var sme=Object.defineProperty;var pL=e=>{throw TypeError(e)};var lme=(e,t,n)=>t in e?sme(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Pr=(e,t,n)=>lme(e,typeof t!="symbol"?t+"":t,n),dM=(e,t,n)=>t.has(e)||pL("Cannot "+n);var Ae=(e,t,n)=>(dM(e,t,"read from private field"),n?n.call(e):t.get(e)),Tn=(e,t,n)=>t.has(e)?pL("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),cn=(e,t,n,r)=>(dM(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),wn=(e,t,n)=>(dM(e,t,"access private method"),n);var Yf=(e,t,n,r)=>({set _(o){cn(e,t,o,n)},get _(){return Ae(e,t,r)}});function UE(e,t){for(var n=0;nr[o]})}}}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 o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var ro=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Fr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function y1(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var YG={exports:{}},WE={},XG={exports:{}},mr={};/** * @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 b1=Symbol.for("react.element"),cme=Symbol.for("react.portal"),ume=Symbol.for("react.fragment"),dme=Symbol.for("react.strict_mode"),fme=Symbol.for("react.profiler"),hme=Symbol.for("react.provider"),pme=Symbol.for("react.context"),mme=Symbol.for("react.forward_ref"),gme=Symbol.for("react.suspense"),vme=Symbol.for("react.memo"),yme=Symbol.for("react.lazy"),mL=Symbol.iterator;function bme(e){return e===null||typeof e!="object"?null:(e=mL&&e[mL]||e["@@iterator"],typeof e=="function"?e:null)}var QG={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},JG=Object.assign,ZG={};function fv(e,t,n){this.props=e,this.context=t,this.refs=ZG,this.updater=n||QG}fv.prototype.isReactComponent={};fv.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")};fv.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function eY(){}eY.prototype=fv.prototype;function gN(e,t,n){this.props=e,this.context=t,this.refs=ZG,this.updater=n||QG}var vN=gN.prototype=new eY;vN.constructor=gN;JG(vN,fv.prototype);vN.isPureReactComponent=!0;var gL=Array.isArray,tY=Object.prototype.hasOwnProperty,yN={current:null},nY={key:!0,ref:!0,__self:!0,__source:!0};function rY(e,t,n){var r,o={},i=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)tY.call(t,r)&&!nY.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1>>1,L=F[K];if(0>>1;Ko(re,W))ieo(G,re)?(F[K]=G,F[ie]=W,K=ie):(F[K]=re,F[ee]=W,K=ee);else if(ieo(G,W))F[K]=G,F[ie]=W,K=ie;else break e}}return V}function o(F,V){var W=F.sortIndex-V.sortIndex;return W!==0?W:F.id-V.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],c=[],u=1,f=null,h=3,p=!1,m=!1,g=!1,v=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function S(F){for(var V=n(c);V!==null;){if(V.callback===null)r(c);else if(V.startTime<=F)r(c),V.sortIndex=V.expirationTime,t(l,V);else break;V=n(c)}}function w(F){if(g=!1,S(F),!m)if(n(l)!==null)m=!0,j(E);else{var V=n(c);V!==null&&k(w,V.startTime-F)}}function E(F,V){m=!1,g&&(g=!1,b(_),_=-1),p=!0;var W=h;try{for(S(V),f=n(l);f!==null&&(!(f.expirationTime>V)||F&&!I());){var K=f.callback;if(typeof K=="function"){f.callback=null,h=f.priorityLevel;var L=K(f.expirationTime<=V);V=e.unstable_now(),typeof L=="function"?f.callback=L:f===n(l)&&r(l),S(V)}else r(l);f=n(l)}if(f!==null)var Q=!0;else{var ee=n(c);ee!==null&&k(w,ee.startTime-V),Q=!1}return Q}finally{f=null,h=W,p=!1}}var C=!1,x=null,_=-1,P=5,O=-1;function I(){return!(e.unstable_now()-OF||125K?(F.sortIndex=W,t(c,F),n(l)===null&&F===n(c)&&(g?(b(_),_=-1):g=!0,k(w,W-K))):(F.sortIndex=L,t(l,F),m||p||(m=!0,j(E))),F},e.unstable_shouldYield=I,e.unstable_wrapCallback=function(F){var V=h;return function(){var W=h;h=V;try{return F.apply(this,arguments)}finally{h=W}}}})(lY);sY.exports=lY;var Tme=sY.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 Rme=d,_s=Tme;function nn(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),gI=Object.prototype.hasOwnProperty,Ime=/^[: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]*$/,yL={},bL={};function kme(e){return gI.call(bL,e)?!0:gI.call(yL,e)?!1:Ime.test(e)?bL[e]=!0:(yL[e]=!0,!1)}function Nme(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 Ame(e,t,n,r){if(t===null||typeof t>"u"||Nme(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 $a(e,t,n,r,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var Di={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Di[e]=new $a(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Di[t]=new $a(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Di[e]=new $a(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Di[e]=new $a(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){Di[e]=new $a(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Di[e]=new $a(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Di[e]=new $a(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Di[e]=new $a(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Di[e]=new $a(e,5,!1,e.toLowerCase(),null,!1,!1)});var SN=/[\-:]([a-z])/g;function CN(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(SN,CN);Di[t]=new $a(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(SN,CN);Di[t]=new $a(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(SN,CN);Di[t]=new $a(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Di[e]=new $a(e,1,!1,e.toLowerCase(),null,!1,!1)});Di.xlinkHref=new $a("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Di[e]=new $a(e,1,!1,e.toLowerCase(),null,!0,!0)});function wN(e,t,n,r){var o=Di.hasOwnProperty(t)?Di[t]:null;(o!==null?o.type!==0:r||!(2s||o[a]!==i[s]){var l=` `+o[a].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{pM=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ty(e):""}function Dme(e){switch(e.tag){case 5:return ty(e.type);case 16:return ty("Lazy");case 13:return ty("Suspense");case 19:return ty("SuspenseList");case 0:case 2:case 15:return e=mM(e.type,!1),e;case 11:return e=mM(e.type.render,!1),e;case 1:return e=mM(e.type,!0),e;default:return""}}function SI(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 Mm:return"Fragment";case Om:return"Portal";case vI:return"Profiler";case xN:return"StrictMode";case yI:return"Suspense";case bI:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case dY:return(e.displayName||"Context")+".Consumer";case uY:return(e._context.displayName||"Context")+".Provider";case EN:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case _N:return t=e.displayName||null,t!==null?t:SI(e.type)||"Memo";case Fd:t=e._payload,e=e._init;try{return SI(e(t))}catch{}}return null}function jme(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 SI(t);case 8:return t===xN?"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 Cf(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function hY(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Fme(e){var t=hY(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,i.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 rC(e){e._valueTracker||(e._valueTracker=Fme(e))}function pY(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=hY(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function kx(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 CI(e,t){var n=t.checked;return Ro({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function CL(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Cf(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 mY(e,t){t=t.checked,t!=null&&wN(e,"checked",t,!1)}function wI(e,t){mY(e,t);var n=Cf(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")?xI(e,t.type,n):t.hasOwnProperty("defaultValue")&&xI(e,t.type,Cf(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function wL(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 xI(e,t,n){(t!=="number"||kx(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ny=Array.isArray;function qm(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=oC.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function rb(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var wy={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},Lme=["Webkit","ms","Moz","O"];Object.keys(wy).forEach(function(e){Lme.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),wy[t]=wy[e]})});function bY(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||wy.hasOwnProperty(e)&&wy[e]?(""+t).trim():t+"px"}function SY(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=bY(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Bme=Ro({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 $I(e,t){if(t){if(Bme[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(nn(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(nn(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(nn(61))}if(t.style!=null&&typeof t.style!="object")throw Error(nn(62))}}function PI(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 OI=null;function $N(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var MI=null,Gm=null,Ym=null;function _L(e){if(e=x1(e)){if(typeof MI!="function")throw Error(nn(280));var t=e.stateNode;t&&(t=YE(t),MI(e.stateNode,e.type,t))}}function CY(e){Gm?Ym?Ym.push(e):Ym=[e]:Gm=e}function wY(){if(Gm){var e=Gm,t=Ym;if(Ym=Gm=null,_L(e),t)for(e=0;e>>=0,e===0?32:31-(Qme(e)/Jme|0)|0}var iC=64,aC=4194304;function ry(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 jx(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~o;s!==0?r=ry(s):(i&=a,i!==0&&(r=ry(i)))}else a=n&~o,a!==0?r=ry(a):i!==0&&(r=ry(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function C1(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ul(t),e[t]=n}function nge(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=Ey),NL=" ",AL=!1;function HY(e,t){switch(e){case"keyup":return Tge.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function UY(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Tm=!1;function Ige(e,t){switch(e){case"compositionend":return UY(t);case"keypress":return t.which!==32?null:(AL=!0,NL);case"textInput":return e=t.data,e===NL&&AL?null:e;default:return null}}function kge(e,t){if(Tm)return e==="compositionend"||!NN&&HY(e,t)?(e=BY(),Sw=RN=Yd=null,Tm=!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)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=LL(n)}}function qY(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?qY(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function GY(){for(var e=window,t=kx();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=kx(e.document)}return t}function AN(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 Hge(e){var t=GY(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&qY(n.ownerDocument.documentElement,n)){if(r!==null&&AN(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=BL(n,i);var a=BL(n,r);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>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=document.documentMode,Rm=null,AI=null,$y=null,DI=!1;function zL(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;DI||Rm==null||Rm!==kx(r)||(r=Rm,"selectionStart"in r&&AN(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}),$y&&cb($y,r)||($y=r,r=Bx(AI,"onSelect"),0Nm||(e.current=HI[Nm],HI[Nm]=null,Nm--)}function io(e,t){Nm++,HI[Nm]=e.current,e.current=t}var wf={},ra=If(wf),za=If(!1),ep=wf;function $g(e,t){var n=e.type.contextTypes;if(!n)return wf;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ha(e){return e=e.childContextTypes,e!=null}function Hx(){ho(za),ho(ra)}function GL(e,t,n){if(ra.current!==wf)throw Error(nn(168));io(ra,t),io(za,n)}function rX(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(nn(108,jme(e)||"Unknown",o));return Ro({},n,r)}function Ux(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||wf,ep=ra.current,io(ra,e),io(za,za.current),!0}function YL(e,t,n){var r=e.stateNode;if(!r)throw Error(nn(169));n?(e=rX(e,t,ep),r.__reactInternalMemoizedMergedChildContext=e,ho(za),ho(ra),io(ra,e)):ho(za),io(za,n)}var Mu=null,XE=!1,MM=!1;function oX(e){Mu===null?Mu=[e]:Mu.push(e)}function eve(e){XE=!0,oX(e)}function kf(){if(!MM&&Mu!==null){MM=!0;var e=0,t=Br;try{var n=Mu;for(Br=1;e>=a,o-=a,Iu=1<<32-Ul(t)+o|n<_?(P=x,x=null):P=x.sibling;var O=h(b,x,S[_],w);if(O===null){x===null&&(x=P);break}e&&x&&O.alternate===null&&t(b,x),y=i(O,y,_),C===null?E=O:C.sibling=O,C=O,x=P}if(_===S.length)return n(b,x),xo&&lh(b,_),E;if(x===null){for(;__?(P=x,x=null):P=x.sibling;var I=h(b,x,O.value,w);if(I===null){x===null&&(x=P);break}e&&x&&I.alternate===null&&t(b,x),y=i(I,y,_),C===null?E=I:C.sibling=I,C=I,x=P}if(O.done)return n(b,x),xo&&lh(b,_),E;if(x===null){for(;!O.done;_++,O=S.next())O=f(b,O.value,w),O!==null&&(y=i(O,y,_),C===null?E=O:C.sibling=O,C=O);return xo&&lh(b,_),E}for(x=r(b,x);!O.done;_++,O=S.next())O=p(x,b,_,O.value,w),O!==null&&(e&&O.alternate!==null&&x.delete(O.key===null?_:O.key),y=i(O,y,_),C===null?E=O:C.sibling=O,C=O);return e&&x.forEach(function(M){return t(b,M)}),xo&&lh(b,_),E}function v(b,y,S,w){if(typeof S=="object"&&S!==null&&S.type===Mm&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case nC:e:{for(var E=S.key,C=y;C!==null;){if(C.key===E){if(E=S.type,E===Mm){if(C.tag===7){n(b,C.sibling),y=o(C,S.props.children),y.return=b,b=y;break e}}else if(C.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Fd&&JL(E)===C.type){n(b,C.sibling),y=o(C,S.props),y.ref=w0(b,C,S),y.return=b,b=y;break e}n(b,C);break}else t(b,C);C=C.sibling}S.type===Mm?(y=Bh(S.props.children,b.mode,w,S.key),y.return=b,b=y):(w=Ow(S.type,S.key,S.props,null,b.mode,w),w.ref=w0(b,y,S),w.return=b,b=w)}return a(b);case Om:e:{for(C=S.key;y!==null;){if(y.key===C)if(y.tag===4&&y.stateNode.containerInfo===S.containerInfo&&y.stateNode.implementation===S.implementation){n(b,y.sibling),y=o(y,S.children||[]),y.return=b,b=y;break e}else{n(b,y);break}else t(b,y);y=y.sibling}y=jM(S,b.mode,w),y.return=b,b=y}return a(b);case Fd:return C=S._init,v(b,y,C(S._payload),w)}if(ny(S))return m(b,y,S,w);if(v0(S))return g(b,y,S,w);hC(b,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,y!==null&&y.tag===6?(n(b,y.sibling),y=o(y,S),y.return=b,b=y):(n(b,y),y=DM(S,b.mode,w),y.return=b,b=y),a(b)):n(b,y)}return v}var Og=lX(!0),cX=lX(!1),Kx=If(null),qx=null,jm=null,LN=null;function BN(){LN=jm=qx=null}function zN(e){var t=Kx.current;ho(Kx),e._currentValue=t}function VI(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 Qm(e,t){qx=e,LN=jm=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ba=!0),e.firstContext=null)}function sl(e){var t=e._currentValue;if(LN!==e)if(e={context:e,memoizedValue:t,next:null},jm===null){if(qx===null)throw Error(nn(308));jm=e,qx.dependencies={lanes:0,firstContext:e}}else jm=jm.next=e;return t}var Ch=null;function HN(e){Ch===null?Ch=[e]:Ch.push(e)}function uX(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,HN(t)):(n.next=o.next,o.next=n),t.interleaved=n,Gu(e,r)}function Gu(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 Ld=!1;function UN(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function dX(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 Lu(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function uf(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Or&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Gu(e,n)}return o=r.interleaved,o===null?(t.next=t,HN(r)):(t.next=o.next,o.next=t),r.interleaved=t,Gu(e,n)}function ww(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,ON(e,n)}}function ZL(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=a:i=i.next=a,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Gx(e,t,n,r){var o=e.updateQueue;Ld=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var l=s,c=l.next;l.next=null,a===null?i=c:a.next=c,a=l;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==a&&(s===null?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(i!==null){var f=o.baseState;a=0,u=c=l=null,s=i;do{var h=s.lane,p=s.eventTime;if((r&h)===h){u!==null&&(u=u.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var m=e,g=s;switch(h=t,p=n,g.tag){case 1:if(m=g.payload,typeof m=="function"){f=m.call(p,f,h);break e}f=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=g.payload,h=typeof m=="function"?m.call(p,f,h):m,h==null)break e;f=Ro({},f,h);break e;case 2:Ld=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,h=o.effects,h===null?o.effects=[s]:h.push(s))}else p={eventTime:p,lane:h,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(c=u=p,l=f):u=u.next=p,a|=h;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;h=s,s=h.next,h.next=null,o.lastBaseUpdate=h,o.shared.pending=null}}while(!0);if(u===null&&(l=f),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=u,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);rp|=a,e.lanes=a,e.memoizedState=f}}function e7(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=RM.transition;RM.transition={};try{e(!1),t()}finally{Br=n,RM.transition=r}}function OX(){return ll().memoizedState}function ove(e,t,n){var r=ff(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},MX(e))TX(t,n);else if(n=uX(e,t,n,r),n!==null){var o=Sa();Wl(n,e,r,o),RX(n,t,r)}}function ive(e,t,n){var r=ff(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(MX(e))TX(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,Jl(s,a)){var l=t.interleaved;l===null?(o.next=o,HN(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=uX(e,t,o,r),n!==null&&(o=Sa(),Wl(n,e,r,o),RX(n,t,r))}}function MX(e){var t=e.alternate;return e===To||t!==null&&t===To}function TX(e,t){Py=Xx=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function RX(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ON(e,n)}}var Qx={readContext:sl,useCallback:Ki,useContext:Ki,useEffect:Ki,useImperativeHandle:Ki,useInsertionEffect:Ki,useLayoutEffect:Ki,useMemo:Ki,useReducer:Ki,useRef:Ki,useState:Ki,useDebugValue:Ki,useDeferredValue:Ki,useTransition:Ki,useMutableSource:Ki,useSyncExternalStore:Ki,useId:Ki,unstable_isNewReconciler:!1},ave={readContext:sl,useCallback:function(e,t){return $c().memoizedState=[e,t===void 0?null:t],e},useContext:sl,useEffect:n7,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ew(4194308,4,xX.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ew(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ew(4,2,e,t)},useMemo:function(e,t){var n=$c();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=$c();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=ove.bind(null,To,e),[r.memoizedState,e]},useRef:function(e){var t=$c();return e={current:e},t.memoizedState=e},useState:t7,useDebugValue:QN,useDeferredValue:function(e){return $c().memoizedState=e},useTransition:function(){var e=t7(!1),t=e[0];return e=rve.bind(null,e[1]),$c().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=To,o=$c();if(xo){if(n===void 0)throw Error(nn(407));n=n()}else{if(n=t(),$i===null)throw Error(nn(349));np&30||mX(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,n7(vX.bind(null,r,i,e),[e]),r.flags|=2048,vb(9,gX.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=$c(),t=$i.identifierPrefix;if(xo){var n=ku,r=Iu;n=(r&~(1<<32-Ul(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=mb++,0<\/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[Ic]=t,e[fb]=r,zX(e,t,!1,!1),t.stateNode=e;e:{switch(a=PI(n,r),n){case"dialog":lo("cancel",e),lo("close",e),o=r;break;case"iframe":case"object":case"embed":lo("load",e),o=r;break;case"video":case"audio":for(o=0;oRg&&(t.flags|=128,r=!0,x0(i,!1),t.lanes=4194304)}else{if(!r)if(e=Yx(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),x0(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!xo)return qi(t),null}else 2*Xo()-i.renderingStartTime>Rg&&n!==1073741824&&(t.flags|=128,r=!0,x0(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Xo(),t.sibling=null,n=Oo.current,io(Oo,r?n&1|2:n&1),t):(qi(t),null);case 22:case 23:return r5(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ps&1073741824&&(qi(t),t.subtreeFlags&6&&(t.flags|=8192)):qi(t),null;case 24:return null;case 25:return null}throw Error(nn(156,t.tag))}function pve(e,t){switch(jN(t),t.tag){case 1:return Ha(t.type)&&Hx(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Mg(),ho(za),ho(ra),KN(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return VN(t),null;case 13:if(ho(Oo),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(nn(340));Pg()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ho(Oo),null;case 4:return Mg(),null;case 10:return zN(t.type._context),null;case 22:case 23:return r5(),null;case 24:return null;default:return null}}var mC=!1,Zi=!1,mve=typeof WeakSet=="function"?WeakSet:Set,On=null;function Fm(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Lo(e,t,r)}else n.current=null}function ek(e,t,n){try{n()}catch(r){Lo(e,t,r)}}var h7=!1;function gve(e,t){if(jI=Fx,e=GY(),AN(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,s=-1,l=-1,c=0,u=0,f=e,h=null;t:for(;;){for(var p;f!==n||o!==0&&f.nodeType!==3||(s=a+o),f!==i||r!==0&&f.nodeType!==3||(l=a+r),f.nodeType===3&&(a+=f.nodeValue.length),(p=f.firstChild)!==null;)h=f,f=p;for(;;){if(f===e)break t;if(h===n&&++c===o&&(s=a),h===i&&++u===r&&(l=a),(p=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=p}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(FI={focusedElem:e,selectionRange:n},Fx=!1,On=t;On!==null;)if(t=On,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,On=e;else for(;On!==null;){t=On;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var g=m.memoizedProps,v=m.memoizedState,b=t.stateNode,y=b.getSnapshotBeforeUpdate(t.elementType===t.type?g:Ol(t.type,g),v);b.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var S=t.stateNode.containerInfo;S.nodeType===1?S.textContent="":S.nodeType===9&&S.documentElement&&S.removeChild(S.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(nn(163))}}catch(w){Lo(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,On=e;break}On=t.return}return m=h7,h7=!1,m}function Oy(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&ek(t,n,i)}o=o.next}while(o!==r)}}function ZE(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 tk(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 WX(e){var t=e.alternate;t!==null&&(e.alternate=null,WX(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ic],delete t[fb],delete t[zI],delete t[Jge],delete t[Zge])),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 VX(e){return e.tag===5||e.tag===3||e.tag===4}function p7(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||VX(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 nk(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=zx));else if(r!==4&&(e=e.child,e!==null))for(nk(e,t,n),e=e.sibling;e!==null;)nk(e,t,n),e=e.sibling}function rk(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(rk(e,t,n),e=e.sibling;e!==null;)rk(e,t,n),e=e.sibling}var ki=null,Rl=!1;function Ed(e,t,n){for(n=n.child;n!==null;)KX(e,t,n),n=n.sibling}function KX(e,t,n){if(Hc&&typeof Hc.onCommitFiberUnmount=="function")try{Hc.onCommitFiberUnmount(VE,n)}catch{}switch(n.tag){case 5:Zi||Fm(n,t);case 6:var r=ki,o=Rl;ki=null,Ed(e,t,n),ki=r,Rl=o,ki!==null&&(Rl?(e=ki,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ki.removeChild(n.stateNode));break;case 18:ki!==null&&(Rl?(e=ki,n=n.stateNode,e.nodeType===8?OM(e.parentNode,n):e.nodeType===1&&OM(e,n),sb(e)):OM(ki,n.stateNode));break;case 4:r=ki,o=Rl,ki=n.stateNode.containerInfo,Rl=!0,Ed(e,t,n),ki=r,Rl=o;break;case 0:case 11:case 14:case 15:if(!Zi&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&ek(n,t,a),o=o.next}while(o!==r)}Ed(e,t,n);break;case 1:if(!Zi&&(Fm(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Lo(n,t,s)}Ed(e,t,n);break;case 21:Ed(e,t,n);break;case 22:n.mode&1?(Zi=(r=Zi)||n.memoizedState!==null,Ed(e,t,n),Zi=r):Ed(e,t,n);break;default:Ed(e,t,n)}}function m7(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new mve),t.forEach(function(r){var o=_ve.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Cl(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=a),r&=~i}if(r=o,r=Xo()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*yve(r/1960))-r,10e?16:e,Xd===null)var r=!1;else{if(e=Xd,Xd=null,e2=0,Or&6)throw Error(nn(331));var o=Or;for(Or|=4,On=e.current;On!==null;){var i=On,a=i.child;if(On.flags&16){var s=i.deletions;if(s!==null){for(var l=0;lXo()-t5?Lh(e,0):e5|=n),Ua(e,t)}function eQ(e,t){t===0&&(e.mode&1?(t=aC,aC<<=1,!(aC&130023424)&&(aC=4194304)):t=1);var n=Sa();e=Gu(e,t),e!==null&&(C1(e,t,n),Ua(e,n))}function Eve(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),eQ(e,n)}function _ve(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(nn(314))}r!==null&&r.delete(t),eQ(e,n)}var tQ;tQ=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||za.current)Ba=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ba=!1,fve(e,t,n);Ba=!!(e.flags&131072)}else Ba=!1,xo&&t.flags&1048576&&iX(t,Vx,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;_w(e,t),e=t.pendingProps;var o=$g(t,ra.current);Qm(t,n),o=GN(null,t,r,e,o,n);var i=YN();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ha(r)?(i=!0,Ux(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,UN(t),o.updater=JE,t.stateNode=o,o._reactInternals=t,qI(t,r,e,n),t=XI(null,t,r,!0,i,n)):(t.tag=0,xo&&i&&DN(t),ha(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(_w(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Pve(r),e=Ol(r,e),o){case 0:t=YI(null,t,r,e,n);break e;case 1:t=u7(null,t,r,e,n);break e;case 11:t=l7(null,t,r,e,n);break e;case 14:t=c7(null,t,r,Ol(r.type,e),n);break e}throw Error(nn(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ol(r,o),YI(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ol(r,o),u7(e,t,r,o,n);case 3:e:{if(FX(t),e===null)throw Error(nn(387));r=t.pendingProps,i=t.memoizedState,o=i.element,dX(e,t),Gx(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Tg(Error(nn(423)),t),t=d7(e,t,r,n,o);break e}else if(r!==o){o=Tg(Error(nn(424)),t),t=d7(e,t,r,n,o);break e}else for(bs=cf(t.stateNode.containerInfo.firstChild),xs=t,xo=!0,Al=null,n=cX(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Pg(),r===o){t=Yu(e,t,n);break e}ha(e,t,r,n)}t=t.child}return t;case 5:return fX(t),e===null&&WI(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,LI(r,o)?a=null:i!==null&&LI(r,i)&&(t.flags|=32),jX(e,t),ha(e,t,a,n),t.child;case 6:return e===null&&WI(t),null;case 13:return LX(e,t,n);case 4:return WN(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Og(t,null,r,n):ha(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ol(r,o),l7(e,t,r,o,n);case 7:return ha(e,t,t.pendingProps,n),t.child;case 8:return ha(e,t,t.pendingProps.children,n),t.child;case 12:return ha(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,io(Kx,r._currentValue),r._currentValue=a,i!==null)if(Jl(i.value,a)){if(i.children===o.children&&!za.current){t=Yu(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){a=i.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Lu(-1,n&-n),l.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),VI(i.return,n,t),s.lanes|=n;break}l=l.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(nn(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),VI(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}ha(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Qm(t,n),o=sl(o),r=r(o),t.flags|=1,ha(e,t,r,n),t.child;case 14:return r=t.type,o=Ol(r,t.pendingProps),o=Ol(r.type,o),c7(e,t,r,o,n);case 15:return AX(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ol(r,o),_w(e,t),t.tag=1,Ha(r)?(e=!0,Ux(t)):e=!1,Qm(t,n),IX(t,r,o),qI(t,r,o,n),XI(null,t,r,!0,e,n);case 19:return BX(e,t,n);case 22:return DX(e,t,n)}throw Error(nn(156,t.tag))};function nQ(e,t){return MY(e,t)}function $ve(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 el(e,t,n,r){return new $ve(e,t,n,r)}function i5(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Pve(e){if(typeof e=="function")return i5(e)?1:0;if(e!=null){if(e=e.$$typeof,e===EN)return 11;if(e===_N)return 14}return 2}function hf(e,t){var n=e.alternate;return n===null?(n=el(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 Ow(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")i5(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Mm:return Bh(n.children,o,i,t);case xN:a=8,o|=8;break;case vI:return e=el(12,n,t,o|2),e.elementType=vI,e.lanes=i,e;case yI:return e=el(13,n,t,o),e.elementType=yI,e.lanes=i,e;case bI:return e=el(19,n,t,o),e.elementType=bI,e.lanes=i,e;case fY:return t_(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case uY:a=10;break e;case dY:a=9;break e;case EN:a=11;break e;case _N:a=14;break e;case Fd:a=16,r=null;break e}throw Error(nn(130,e==null?e:typeof e,""))}return t=el(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Bh(e,t,n,r){return e=el(7,e,r,t),e.lanes=n,e}function t_(e,t,n,r){return e=el(22,e,r,t),e.elementType=fY,e.lanes=n,e.stateNode={isHidden:!1},e}function DM(e,t,n){return e=el(6,e,null,t),e.lanes=n,e}function jM(e,t,n){return t=el(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ove(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=vM(0),this.expirationTimes=vM(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vM(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function a5(e,t,n,r,o,i,a,s,l){return e=new Ove(e,t,n,s,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=el(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},UN(i),e}function Mve(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(aQ)}catch(e){console.error(e)}}aQ(),aY.exports=Ts;var _i=aY.exports;const bb=Fr(_i),sQ=UE({__proto__:null,default:bb},[_i]);var x7=_i;mI.createRoot=x7.createRoot,mI.hydrateRoot=x7.hydrateRoot;const Nve={BASE_URL:"/kanban",DEV:!1,MODE:"open",PROD:!0,SSR:!1,VITE_CONFIG_ENV:"prod-open"},E7=e=>{let t;const n=new Set,r=(u,f)=>{const h=typeof u=="function"?u(t):u;if(!Object.is(h,t)){const p=t;t=f??(typeof h!="object"||h===null)?h:Object.assign({},t,h),n.forEach(m=>m(t,p))}},o=()=>t,l={setState:r,getState:o,getInitialState:()=>c,subscribe:u=>(n.add(u),()=>n.delete(u)),destroy:()=>{(Nve?"open":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()}},c=t=e(r,o,l);return l},Ave=e=>e?E7(e):E7;var lQ={exports:{}},cQ={},uQ={exports:{}},dQ={};/** * @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 Ig=d;function Dve(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var jve=typeof Object.is=="function"?Object.is:Dve,Fve=Ig.useState,Lve=Ig.useEffect,Bve=Ig.useLayoutEffect,zve=Ig.useDebugValue;function Hve(e,t){var n=t(),r=Fve({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return Bve(function(){o.value=n,o.getSnapshot=t,FM(o)&&i({inst:o})},[e,n,t]),Lve(function(){return FM(o)&&i({inst:o}),e(function(){FM(o)&&i({inst:o})})},[e]),zve(n),n}function FM(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!jve(e,n)}catch{return!0}}function Uve(e,t){return t()}var Wve=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Uve:Hve;dQ.useSyncExternalStore=Ig.useSyncExternalStore!==void 0?Ig.useSyncExternalStore:Wve;uQ.exports=dQ;var fQ=uQ.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 a_=d,Vve=fQ;function Kve(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var qve=typeof Object.is=="function"?Object.is:Kve,Gve=Vve.useSyncExternalStore,Yve=a_.useRef,Xve=a_.useEffect,Qve=a_.useMemo,Jve=a_.useDebugValue;cQ.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var i=Yve(null);if(i.current===null){var a={hasValue:!1,value:null};i.current=a}else a=i.current;i=Qve(function(){function l(p){if(!c){if(c=!0,u=p,p=r(p),o!==void 0&&a.hasValue){var m=a.value;if(o(m,p))return f=m}return f=p}if(m=f,qve(u,p))return m;var g=r(p);return o!==void 0&&o(m,g)?m:(u=p,f=g)}var c=!1,u,f,h=n===void 0?null:n;return[function(){return l(t())},h===null?void 0:function(){return l(h())}]},[t,n,r,o]);var s=Gve(e,i[0],i[1]);return Xve(function(){a.hasValue=!0,a.value=s},[s]),Jve(s),s};lQ.exports=cQ;var Zve=lQ.exports;const e0e=Fr(Zve),hQ={BASE_URL:"/kanban",DEV:!1,MODE:"open",PROD:!0,SSR:!1,VITE_CONFIG_ENV:"prod-open"},{useDebugValue:t0e}=de,{useSyncExternalStoreWithSelector:n0e}=e0e;let _7=!1;const r0e=e=>e;function o0e(e,t=r0e,n){(hQ?"open":void 0)!=="production"&&n&&!_7&&(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"),_7=!0);const r=n0e(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return t0e(r),r}const $7=e=>{(hQ?"open":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"?Ave(e):e,n=(r,o)=>o0e(t,r,o);return Object.assign(n,t),n},hl=e=>e?$7(e):$7,Mw={BASE_URL:"/kanban",DEV:!1,MODE:"open",PROD:!0,SSR:!1,VITE_CONFIG_ENV:"prod-open"},lk=new Map,yC=e=>{const t=lk.get(e);return t?Object.fromEntries(Object.entries(t.stores).map(([n,r])=>[n,r.getState()])):{}},i0e=(e,t,n)=>{if(e===void 0)return{type:"untracked",connection:t.connect(n)};const r=lk.get(n.name);if(r)return{type:"tracked",store:e,...r};const o={connection:t.connect(n),stores:{}};return lk.set(n.name,o),{type:"tracked",store:e,...o}},a0e=(e,t={})=>(n,r,o)=>{const{enabled:i,anonymousActionType:a,store:s,...l}=t;let c;try{c=(i??(Mw?"open":void 0)!=="production")&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!c)return(Mw?"open":void 0)!=="production"&&i&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),e(n,r,o);const{connection:u,...f}=i0e(s,c,l);let h=!0;o.setState=(g,v,b)=>{const y=n(g,v);if(!h)return y;const S=b===void 0?{type:a||"anonymous"}:typeof b=="string"?{type:b}:b;return s===void 0?(u==null||u.send(S,r()),y):(u==null||u.send({...S,type:`${s}/${S.type}`},{...yC(l.name),[s]:o.getState()}),y)};const p=(...g)=>{const v=h;h=!1,n(...g),h=v},m=e(o.setState,r,o);if(f.type==="untracked"?u==null||u.init(m):(f.stores[f.store]=o,u==null||u.init(Object.fromEntries(Object.entries(f.stores).map(([g,v])=>[g,g===f.store?m:v.getState()])))),o.dispatchFromDevtools&&typeof o.dispatch=="function"){let g=!1;const v=o.dispatch;o.dispatch=(...b)=>{(Mw?"open":void 0)!=="production"&&b[0].type==="__setState"&&!g&&(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),g=!0),v(...b)}}return u.subscribe(g=>{var v;switch(g.type){case"ACTION":if(typeof g.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return LM(g.payload,b=>{if(b.type==="__setState"){if(s===void 0){p(b.state);return}Object.keys(b.state).length!==1&&console.error(` [zustand devtools middleware] Unsupported __setState action format. When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(), and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } } `);const y=b.state[s];if(y==null)return;JSON.stringify(o.getState())!==JSON.stringify(y)&&p(y);return}o.dispatchFromDevtools&&typeof o.dispatch=="function"&&o.dispatch(b)});case"DISPATCH":switch(g.payload.type){case"RESET":return p(m),s===void 0?u==null?void 0:u.init(o.getState()):u==null?void 0:u.init(yC(l.name));case"COMMIT":if(s===void 0){u==null||u.init(o.getState());return}return u==null?void 0:u.init(yC(l.name));case"ROLLBACK":return LM(g.state,b=>{if(s===void 0){p(b),u==null||u.init(o.getState());return}p(b[s]),u==null||u.init(yC(l.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return LM(g.state,b=>{if(s===void 0){p(b);return}JSON.stringify(o.getState())!==JSON.stringify(b[s])&&p(b[s])});case"IMPORT_STATE":{const{nextLiftedState:b}=g.payload,y=(v=b.computedStates.slice(-1)[0])==null?void 0:v.state;if(!y)return;p(s===void 0?y:y[s]),u==null||u.send(null,b);return}case"PAUSE_RECORDING":return h=!h}return}}),m},uc=a0e,LM=(e,t)=>{let n;try{n=JSON.parse(e)}catch(r){console.error("[zustand devtools middleware] Could not parse the received json",r)}n!==void 0&&t(n)};function s0e(e,t){let n;try{n=e()}catch{return}return{getItem:o=>{var i;const a=l=>l===null?null:JSON.parse(l,void 0),s=(i=n.getItem(o))!=null?i:null;return s instanceof Promise?s.then(a):a(s)},setItem:(o,i)=>n.setItem(o,JSON.stringify(i,void 0)),removeItem:o=>n.removeItem(o)}}const Sb=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(r){return Sb(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return Sb(r)(n)}}}},l0e=(e,t)=>(n,r,o)=>{let i={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:v=>v,version:0,merge:(v,b)=>({...b,...v}),...t},a=!1;const s=new Set,l=new Set;let c;try{c=i.getStorage()}catch{}if(!c)return e((...v)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),n(...v)},r,o);const u=Sb(i.serialize),f=()=>{const v=i.partialize({...r()});let b;const y=u({state:v,version:i.version}).then(S=>c.setItem(i.name,S)).catch(S=>{b=S});if(b)throw b;return y},h=o.setState;o.setState=(v,b)=>{h(v,b),f()};const p=e((...v)=>{n(...v),f()},r,o);let m;const g=()=>{var v;if(!c)return;a=!1,s.forEach(y=>y(r()));const b=((v=i.onRehydrateStorage)==null?void 0:v.call(i,r()))||void 0;return Sb(c.getItem.bind(c))(i.name).then(y=>{if(y)return i.deserialize(y)}).then(y=>{if(y)if(typeof y.version=="number"&&y.version!==i.version){if(i.migrate)return i.migrate(y.state,y.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return y.state}).then(y=>{var S;return m=i.merge(y,(S=r())!=null?S:p),n(m,!0),f()}).then(()=>{b==null||b(m,void 0),a=!0,l.forEach(y=>y(m))}).catch(y=>{b==null||b(void 0,y)})};return o.persist={setOptions:v=>{i={...i,...v},v.getStorage&&(c=v.getStorage())},clearStorage:()=>{c==null||c.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>g(),hasHydrated:()=>a,onHydrate:v=>(s.add(v),()=>{s.delete(v)}),onFinishHydration:v=>(l.add(v),()=>{l.delete(v)})},g(),m||p},c0e=(e,t)=>(n,r,o)=>{let i={storage:s0e(()=>localStorage),partialize:g=>g,version:0,merge:(g,v)=>({...v,...g}),...t},a=!1;const s=new Set,l=new Set;let c=i.storage;if(!c)return e((...g)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),n(...g)},r,o);const u=()=>{const g=i.partialize({...r()});return c.setItem(i.name,{state:g,version:i.version})},f=o.setState;o.setState=(g,v)=>{f(g,v),u()};const h=e((...g)=>{n(...g),u()},r,o);o.getInitialState=()=>h;let p;const m=()=>{var g,v;if(!c)return;a=!1,s.forEach(y=>{var S;return y((S=r())!=null?S:h)});const b=((v=i.onRehydrateStorage)==null?void 0:v.call(i,(g=r())!=null?g:h))||void 0;return Sb(c.getItem.bind(c))(i.name).then(y=>{if(y)if(typeof y.version=="number"&&y.version!==i.version){if(i.migrate)return[!0,i.migrate(y.state,y.version)];console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,y.state];return[!1,void 0]}).then(y=>{var S;const[w,E]=y;if(p=i.merge(E,(S=r())!=null?S:h),n(p,!0),w)return u()}).then(()=>{b==null||b(p,void 0),p=r(),a=!0,l.forEach(y=>y(p))}).catch(y=>{b==null||b(void 0,y)})};return o.persist={setOptions:g=>{i={...i,...g},g.storage&&(c=g.storage)},clearStorage:()=>{c==null||c.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>m(),hasHydrated:()=>a,onHydrate:g=>(s.add(g),()=>{s.delete(g)}),onFinishHydration:g=>(l.add(g),()=>{l.delete(g)})},i.skipHydration||m(),p||h},u0e=(e,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?((Mw?"open":void 0)!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),l0e(e,t)):c0e(e,t),dc=u0e;var pQ=Symbol.for("immer-nothing"),P7=Symbol.for("immer-draftable"),$s=Symbol.for("immer-state");function Dl(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var kg=Object.getPrototypeOf;function Ng(e){return!!e&&!!e[$s]}function ip(e){var t;return e?mQ(e)||Array.isArray(e)||!!e[P7]||!!((t=e.constructor)!=null&&t[P7])||l_(e)||c_(e):!1}var d0e=Object.prototype.constructor.toString();function mQ(e){if(!e||typeof e!="object")return!1;const t=kg(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===d0e}function r2(e,t){s_(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function s_(e){const t=e[$s];return t?t.type_:Array.isArray(e)?1:l_(e)?2:c_(e)?3:0}function ck(e,t){return s_(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function gQ(e,t,n){const r=s_(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function f0e(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function l_(e){return e instanceof Map}function c_(e){return e instanceof Set}function uh(e){return e.copy_||e.base_}function uk(e,t){if(l_(e))return new Map(e);if(c_(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=mQ(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[$s];let o=Reflect.ownKeys(r);for(let i=0;i1&&(e.set=e.add=e.clear=e.delete=h0e),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>u5(r,!0))),e}function h0e(){Dl(2)}function u_(e){return Object.isFrozen(e)}var p0e={};function ap(e){const t=p0e[e];return t||Dl(0,e),t}var Cb;function vQ(){return Cb}function m0e(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function O7(e,t){t&&(ap("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function dk(e){fk(e),e.drafts_.forEach(g0e),e.drafts_=null}function fk(e){e===Cb&&(Cb=e.parent_)}function M7(e){return Cb=m0e(Cb,e)}function g0e(e){const t=e[$s];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function T7(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[$s].modified_&&(dk(t),Dl(4)),ip(e)&&(e=o2(t,e),t.parent_||i2(t,e)),t.patches_&&ap("Patches").generateReplacementPatches_(n[$s].base_,e,t.patches_,t.inversePatches_)):e=o2(t,n,[]),dk(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==pQ?e:void 0}function o2(e,t,n){if(u_(t))return t;const r=t[$s];if(!r)return r2(t,(o,i)=>R7(e,r,t,o,i,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return i2(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const o=r.copy_;let i=o,a=!1;r.type_===3&&(i=new Set(o),o.clear(),a=!0),r2(i,(s,l)=>R7(e,r,o,s,l,n,a)),i2(e,o,!1),n&&e.patches_&&ap("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function R7(e,t,n,r,o,i,a){if(Ng(o)){const s=i&&t&&t.type_!==3&&!ck(t.assigned_,r)?i.concat(r):void 0,l=o2(e,o,s);if(gQ(n,r,l),Ng(l))e.canAutoFreeze_=!1;else return}else a&&n.add(o);if(ip(o)&&!u_(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;o2(e,o),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&i2(e,o)}}function i2(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&u5(t,n)}function v0e(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:vQ(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,i=d5;n&&(o=[r],i=wb);const{revoke:a,proxy:s}=Proxy.revocable(o,i);return r.draft_=s,r.revoke_=a,s}var d5={get(e,t){if(t===$s)return e;const n=uh(e);if(!ck(n,t))return y0e(e,n,t);const r=n[t];return e.finalized_||!ip(r)?r:r===BM(e.base_,t)?(zM(e),e.copy_[t]=pk(r,e)):r},has(e,t){return t in uh(e)},ownKeys(e){return Reflect.ownKeys(uh(e))},set(e,t,n){const r=yQ(uh(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const o=BM(uh(e),t),i=o==null?void 0:o[$s];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(f0e(n,o)&&(n!==void 0||ck(e.base_,t)))return!0;zM(e),hk(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return BM(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,zM(e),hk(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=uh(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){Dl(11)},getPrototypeOf(e){return kg(e.base_)},setPrototypeOf(){Dl(12)}},wb={};r2(d5,(e,t)=>{wb[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});wb.deleteProperty=function(e,t){return wb.set.call(this,e,t,void 0)};wb.set=function(e,t,n){return d5.set.call(this,e[0],t,n,e[0])};function BM(e,t){const n=e[$s];return(n?uh(n):e)[t]}function y0e(e,t,n){var o;const r=yQ(t,n);return r?"value"in r?r.value:(o=r.get)==null?void 0:o.call(e.draft_):void 0}function yQ(e,t){if(!(t in e))return;let n=kg(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=kg(n)}}function hk(e){e.modified_||(e.modified_=!0,e.parent_&&hk(e.parent_))}function zM(e){e.copy_||(e.copy_=uk(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var b0e=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const i=n;n=t;const a=this;return function(l=i,...c){return a.produce(l,u=>n.call(this,u,...c))}}typeof n!="function"&&Dl(6),r!==void 0&&typeof r!="function"&&Dl(7);let o;if(ip(t)){const i=M7(this),a=pk(t,void 0);let s=!0;try{o=n(a),s=!1}finally{s?dk(i):fk(i)}return O7(i,r),T7(o,i)}else if(!t||typeof t!="object"){if(o=n(t),o===void 0&&(o=t),o===pQ&&(o=void 0),this.autoFreeze_&&u5(o,!0),r){const i=[],a=[];ap("Patches").generateReplacementPatches_(t,o,i,a),r(i,a)}return o}else Dl(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(a,...s)=>this.produceWithPatches(a,l=>t(l,...s));let r,o;return[this.produce(t,n,(a,s)=>{r=a,o=s}),r,o]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){ip(e)||Dl(8),Ng(e)&&(e=S0e(e));const t=M7(this),n=pk(e,void 0);return n[$s].isManual_=!0,fk(t),n}finishDraft(e,t){const n=e&&e[$s];(!n||!n.isManual_)&&Dl(9);const{scope_:r}=n;return O7(r,t),T7(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const o=t[n];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}n>-1&&(t=t.slice(n+1));const r=ap("Patches").applyPatches_;return Ng(e)?r(e,t):this.produce(e,o=>r(o,t))}};function pk(e,t){const n=l_(e)?ap("MapSet").proxyMap_(e,t):c_(e)?ap("MapSet").proxySet_(e,t):v0e(e,t);return(t?t.scope_:vQ()).drafts_.push(n),n}function S0e(e){return Ng(e)||Dl(10,e),bQ(e)}function bQ(e){if(!ip(e)||u_(e))return e;const t=e[$s];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=uk(e,t.scope_.immer_.useStrictShallowCopy_)}else n=uk(e,!0);return r2(n,(r,o)=>{gQ(n,r,bQ(o))}),t&&(t.finalized_=!1),n}var Ps=new b0e,C0e=Ps.produce;Ps.produceWithPatches.bind(Ps);Ps.setAutoFreeze.bind(Ps);Ps.setUseStrictShallowCopy.bind(Ps);Ps.applyPatches.bind(Ps);Ps.createDraft.bind(Ps);Ps.finishDraft.bind(Ps);const w0e=e=>(t,n,r)=>(r.setState=(o,i,...a)=>{const s=typeof o=="function"?C0e(o):o;return t(s,i,...a)},e(r.setState,n,r)),fc=w0e,x0e="dev",SQ="open",I7="prod",E0e="quanjing",CQ="prod-open";console.log("Current VITE_CONFIG_ENV:","prod-open");let Qs;switch(CQ){case"dev":Qs={API_URL:"http://127.0.0.1:9003",MQTT_URL:"ws://127.0.0.1:9885/websocket",HTML_URL:"http://127.0.0.1:9006",IS_DEBUG:!0,SERVER_MODE:x0e,CLIENT:"WEB"};break;case"prod-open":Qs={API_URL:"http://127.0.0.1:9003",MQTT_URL:"ws://127.0.0.1:9885/websocket",HTML_URL:"http://127.0.0.1:9003",IS_DEBUG:!1,SERVER_MODE:SQ,CLIENT:"WEB"};break;case"prod-quanjing":Qs={API_URL:"http://127.0.0.1:9003",MQTT_URL:"ws://127.0.0.1:9885/websocket",HTML_URL:"http://127.0.0.1:9003",IS_DEBUG:!1,SERVER_MODE:E0e,CLIENT:"WEB"};break;case"prod-web":Qs={API_URL:"https://api.weiyuai.cn",MQTT_URL:"wss://api.weiyuai.cn/websocket",HTML_URL:"https://www.weiyuai.cn",IS_DEBUG:!1,SERVER_MODE:I7,CLIENT:"WEB"};break;default:Qs={API_URL:"https://api.weiyuai.cn",MQTT_URL:"wss://api.weiyuai.cn/websocket",HTML_URL:"https://www.weiyuai.cn",IS_DEBUG:!1,SERVER_MODE:I7,CLIENT:"ELECTRON"}}console.log("config.API_BASE_URL: ",CQ,Qs);const Pi=navigator.userAgent.toLowerCase().indexOf("electron")>-1,HM=Qs.API_URL,k7=Qs.MQTT_URL;Qs.HTML_URL;const Ag=Qs.IS_DEBUG,_0e=Qs.SERVER_MODE,po=Qs.CLIENT,cl="BYTEDESK",N7="locale",A7="mode",Zm="team",sp="agent",a2="personal",D7="i18n.",bC="i18n.new.message",wQ="ANONYMOUS",ms="bytedesk_login_credentials",j7="THEME_MODE_TYPE",F7="THEME_NAME_TYPE",Tw="PLAY_AUDIO",Ry="NETWORK_STATUS_NOTIFICATION",Iy="CONFIG_ENABLED_AGENT",Rw="CONFIG_API_URL_AGENT",Iw="CONFIG_WEBSOCKET_URL_AGENT",UM="CONFIG_HTML_URL_AGENT",Bm="CONFIG_CUSTOM_ENABLED_AGENT",iy="CONFIG_CUSTOM_API_URL_AGENT",ay="CONFIG_CUSTOM_WEBSOCKET_URL_AGENT",$0e="CONFIG_PROPERTIES",P0e="SCREENSHOT_OK",O0e="EVENT_BUS_SERVER_ERROR_500",pf="EVENT_BUS_TOKEN_INVALID",xb="EVENT_BUS_MQTT_MESSAGE",mk="EVENT_BUS_MQTT_CONNECTED",gk="EVENT_BUS_MQTT_OFFLINE",vk="EVENT_BUS_MQTT_CLOSE",yk="EVENT_BUS_MQTT_DISCONNECTED",bk="EVENT_BUS_MQTT_ERROR",Sk="EVENT_BUS_MQTT_END",xQ="EVENT_BUS_MESSAGE_TYPE_STATUS",M0e="EVENT_BUS_MESSAGE_TYPE_TYPING",T0e="EVENT_BUS_MESSAGE_TYPE_PROCESSING",R0e="EVENT_BUS_MESSAGE_TYPE_STREAM",I0e="EVENT_BUS_MESSAGE_TYPE_PREVIEW",Ck="EVENT_BUS_MESSAGE_TYPE_TRANSFER",wk="EVENT_BUS_MESSAGE_TYPE_TRANSFER_ACCEPT",xk="EVENT_BUS_MESSAGE_TYPE_TRANSFER_REJECT",k0e="EVENT_BUS_SCREEN_CAPTURE_IMAGE",N0e="AUTH_STORE",Eb="ACCESS_TOKEN",A0e="ORGANIZATION_STORE",D0e="MEMBER_STORE",j0e="MESSAGE_STORE",F0e="CONTACT_STORE",L0e="USER_STORE",B0e="SETTINGS_STORE",z0e="THREAD_STORE",H0e="DEVICE_STORE",U0e="AGENT_STORE",W0e="WORKGROUP_STORE",V0e="member",EQ="device",K0e="MOBILE_LOGIN",q0e="MOBILE_RESET",G0e="MOBILE_VERIFY",Y0e="EMAIL_RESET",X0e="EMAIL_VERIFY",Q0e="PENDING",J0e="SCANNED",Z0e="CONFIRMED",eye="EXPIRED",tye="https://cdn.weiyuai.cn/agent/assets/sound/dingdong.wav",nye="https://cdn.weiyuai.cn/agent/assets/css/scrollbar.css",rye="https://www.weiyuai.cn/download.html",L7="AGENT",B7="USER",z7="AGENT",H7="WORKGROUP",U7="QUEUING",W7="CLOSED",V7="SENDING",Ek="SUCCESS",oye="TRANSFER_ACCEPT",iye="TRANSFER_REJECT",_k="CONTINUE",_Q="SYSTEM",aye="QUEUE",sye="TEXT",lye="IMAGE",cye="FILE",uye="AUDIO",dye="VIDEO",$k="TYPING",Pk="PROCESSING",_b="STREAM",K7="PREVIEW",q7="RECALL",Ok="DELIVERED",Mk="READ",fye="FAQ_UP",hye="FAQ_DOWN",pye="ROBOT_UP",mye="ROBOT_DOWN",gye="RATE_SUBMIT",vye="RATE_CANCEL",$b="AUTO_CLOSED",Pb="AGENT_CLOSED",G7="TRANSFER",Y7="TRANSFER_ACCEPT",X7="TRANSFER_REJECT",Q7="AVAILABLE",WM="OFFLINE",J7="REST",yye="org/group/",bye="CHAT",Z7="lastPath",Sye="ROLE_SUPER",Cye="ROLE_ADMIN",wye="ROLE_MEMBER",xye="ROLE_AGENT",_1=hl()(uc(dc(fc((e,t)=>({accessToken:"",setAccessToken(n){localStorage.setItem(Eb,n),e({accessToken:n})},getAccessToken(){return t().accessToken},removeAccessToken(){localStorage.removeItem(Eb),e({accessToken:""})}})),{name:N0e}))),Eye=hl()(uc(dc(fc(e=>({settings:{playSound:!0,showNotifications:!0,openAtStartup:!1,colors:!1,proLayoutCollapsed:!0},currentMenu:"chat",setCurrentMenu(t){e({currentMenu:t})},setProLayoutCollapsed(t){e(n=>({settings:{...n.settings,proLayoutCollapsed:t}}))}})),{name:B0e})));var Op={},$Q={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})($Q);var ir=$Q.exports,d_={};Object.defineProperty(d_,"__esModule",{value:!0});d_.default=void 0;var _ye={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"};d_.default=_ye;var f_={},$1={},h_={},PQ={exports:{}},OQ={exports:{}},MQ={exports:{}},TQ={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})(TQ);var Mp=TQ.exports,RQ={exports:{}};(function(e){var t=Mp.default;function n(r,o){if(t(r)!="object"||!r)return r;var i=r[Symbol.toPrimitive];if(i!==void 0){var a=i.call(r,o||"default");if(t(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(RQ);var $ye=RQ.exports;(function(e){var t=Mp.default,n=$ye;function r(o){var i=n(o,"string");return t(i)=="symbol"?i:i+""}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(MQ);var Pye=MQ.exports;(function(e){var t=Pye;function n(r,o,i){return(o=t(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i,r}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(OQ);var IQ=OQ.exports;(function(e){var t=IQ;function n(o,i){var a=Object.keys(o);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(o);i&&(s=s.filter(function(l){return Object.getOwnPropertyDescriptor(o,l).enumerable})),a.push.apply(a,s)}return a}function r(o){for(var i=1;i{r==="system"&&(window.matchMedia("(prefers-color-scheme: dark)").matches?n("dark"):n("light"),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",a=>{a.matches?n("dark"):n("light")}))},[]),d.useEffect(()=>{localStorage.setItem(j7,o),o==="light"?n("light"):o==="dark"?n("dark"):o==="system"&&(window.matchMedia("(prefers-color-scheme: dark)").matches?n("dark"):n("light"))},[o]),d.useEffect(()=>{localStorage.setItem(F7,t)},[t]),{themeName:t,setThemeName:n,themeMode:o,setThemeMode:i,isDarkMode:t==="dark",isLightMode:t==="light"}}function LQ(e,t){return function(){return e.apply(t,arguments)}}const{toString:Sbe}=Object.prototype,{getPrototypeOf:f5}=Object,__=(e=>t=>{const n=Sbe.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),hc=e=>(e=e.toLowerCase(),t=>__(t)===e),$_=e=>t=>typeof t===e,{isArray:gv}=Array,Ob=$_("undefined");function Cbe(e){return e!==null&&!Ob(e)&&e.constructor!==null&&!Ob(e.constructor)&&Es(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const BQ=hc("ArrayBuffer");function wbe(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&BQ(e.buffer),t}const xbe=$_("string"),Es=$_("function"),zQ=$_("number"),P_=e=>e!==null&&typeof e=="object",Ebe=e=>e===!0||e===!1,kw=e=>{if(__(e)!=="object")return!1;const t=f5(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},_be=hc("Date"),$be=hc("File"),Pbe=hc("Blob"),Obe=hc("FileList"),Mbe=e=>P_(e)&&Es(e.pipe),Tbe=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Es(e.append)&&((t=__(e))==="formdata"||t==="object"&&Es(e.toString)&&e.toString()==="[object FormData]"))},Rbe=hc("URLSearchParams"),[Ibe,kbe,Nbe,Abe]=["ReadableStream","Request","Response","Headers"].map(hc),Dbe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function I1(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),gv(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const xh=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,UQ=e=>!Ob(e)&&e!==xh;function Tk(){const{caseless:e}=UQ(this)&&this||{},t={},n=(r,o)=>{const i=e&&HQ(t,o)||o;kw(t[i])&&kw(r)?t[i]=Tk(t[i],r):kw(r)?t[i]=Tk({},r):gv(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r(I1(t,(o,i)=>{n&&Es(o)?e[i]=LQ(o,n):e[i]=o},{allOwnKeys:r}),e),Fbe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Lbe=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Bbe=(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!r||r(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=n!==!1&&f5(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},zbe=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Hbe=e=>{if(!e)return null;if(gv(e))return e;let t=e.length;if(!zQ(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Ube=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&f5(Uint8Array)),Wbe=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},Vbe=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Kbe=hc("HTMLFormElement"),qbe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),oB=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Gbe=hc("RegExp"),WQ=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};I1(n,(o,i)=>{let a;(a=t(o,i,e))!==!1&&(r[i]=a||o)}),Object.defineProperties(e,r)},Ybe=e=>{WQ(e,(t,n)=>{if(Es(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Es(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Xbe=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return gv(e)?r(e):r(String(e).split(t)),n},Qbe=()=>{},Jbe=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,VM="abcdefghijklmnopqrstuvwxyz",iB="0123456789",VQ={DIGIT:iB,ALPHA:VM,ALPHA_DIGIT:VM+VM.toUpperCase()+iB},Zbe=(e=16,t=VQ.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function e1e(e){return!!(e&&Es(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const t1e=e=>{const t=new Array(10),n=(r,o)=>{if(P_(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=gv(r)?[]:{};return I1(r,(a,s)=>{const l=n(a,o+1);!Ob(l)&&(i[s]=l)}),t[o]=void 0,i}}return r};return n(e,0)},n1e=hc("AsyncFunction"),r1e=e=>e&&(P_(e)||Es(e))&&Es(e.then)&&Es(e.catch),KQ=((e,t)=>e?setImmediate:t?((n,r)=>(xh.addEventListener("message",({source:o,data:i})=>{o===xh&&i===n&&r.length&&r.shift()()},!1),o=>{r.push(o),xh.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Es(xh.postMessage)),o1e=typeof queueMicrotask<"u"?queueMicrotask.bind(xh):typeof process<"u"&&process.nextTick||KQ,zt={isArray:gv,isArrayBuffer:BQ,isBuffer:Cbe,isFormData:Tbe,isArrayBufferView:wbe,isString:xbe,isNumber:zQ,isBoolean:Ebe,isObject:P_,isPlainObject:kw,isReadableStream:Ibe,isRequest:kbe,isResponse:Nbe,isHeaders:Abe,isUndefined:Ob,isDate:_be,isFile:$be,isBlob:Pbe,isRegExp:Gbe,isFunction:Es,isStream:Mbe,isURLSearchParams:Rbe,isTypedArray:Ube,isFileList:Obe,forEach:I1,merge:Tk,extend:jbe,trim:Dbe,stripBOM:Fbe,inherits:Lbe,toFlatObject:Bbe,kindOf:__,kindOfTest:hc,endsWith:zbe,toArray:Hbe,forEachEntry:Wbe,matchAll:Vbe,isHTMLForm:Kbe,hasOwnProperty:oB,hasOwnProp:oB,reduceDescriptors:WQ,freezeMethods:Ybe,toObjectSet:Xbe,toCamelCase:qbe,noop:Qbe,toFiniteNumber:Jbe,findKey:HQ,global:xh,isContextDefined:UQ,ALPHABET:VQ,generateString:Zbe,isSpecCompliantForm:e1e,toJSONObject:t1e,isAsyncFn:n1e,isThenable:r1e,setImmediate:KQ,asap:o1e};function sr(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}zt.inherits(sr,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:zt.toJSONObject(this.config),code:this.code,status:this.status}}});const qQ=sr.prototype,GQ={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{GQ[e]={value:e}});Object.defineProperties(sr,GQ);Object.defineProperty(qQ,"isAxiosError",{value:!0});sr.from=(e,t,n,r,o,i)=>{const a=Object.create(qQ);return zt.toFlatObject(e,a,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),sr.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const i1e=null;function Rk(e){return zt.isPlainObject(e)||zt.isArray(e)}function YQ(e){return zt.endsWith(e,"[]")?e.slice(0,-2):e}function aB(e,t,n){return e?e.concat(t).map(function(o,i){return o=YQ(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function a1e(e){return zt.isArray(e)&&!e.some(Rk)}const s1e=zt.toFlatObject(zt,{},null,function(t){return/^is[A-Z]/.test(t)});function O_(e,t,n){if(!zt.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=zt.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,v){return!zt.isUndefined(v[g])});const r=n.metaTokens,o=n.visitor||u,i=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&zt.isSpecCompliantForm(t);if(!zt.isFunction(o))throw new TypeError("visitor must be a function");function c(m){if(m===null)return"";if(zt.isDate(m))return m.toISOString();if(!l&&zt.isBlob(m))throw new sr("Blob is not supported. Use a Buffer instead.");return zt.isArrayBuffer(m)||zt.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function u(m,g,v){let b=m;if(m&&!v&&typeof m=="object"){if(zt.endsWith(g,"{}"))g=r?g:g.slice(0,-2),m=JSON.stringify(m);else if(zt.isArray(m)&&a1e(m)||(zt.isFileList(m)||zt.endsWith(g,"[]"))&&(b=zt.toArray(m)))return g=YQ(g),b.forEach(function(S,w){!(zt.isUndefined(S)||S===null)&&t.append(a===!0?aB([g],w,i):a===null?g:g+"[]",c(S))}),!1}return Rk(m)?!0:(t.append(aB(v,g,i),c(m)),!1)}const f=[],h=Object.assign(s1e,{defaultVisitor:u,convertValue:c,isVisitable:Rk});function p(m,g){if(!zt.isUndefined(m)){if(f.indexOf(m)!==-1)throw Error("Circular reference detected in "+g.join("."));f.push(m),zt.forEach(m,function(b,y){(!(zt.isUndefined(b)||b===null)&&o.call(t,b,zt.isString(y)?y.trim():y,g,h))===!0&&p(b,g?g.concat(y):[y])}),f.pop()}}if(!zt.isObject(e))throw new TypeError("data must be an object");return p(e),t}function sB(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function h5(e,t){this._pairs=[],e&&O_(e,this,t)}const XQ=h5.prototype;XQ.append=function(t,n){this._pairs.push([t,n])};XQ.toString=function(t){const n=t?function(r){return t.call(this,r,sB)}:sB;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function l1e(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function QQ(e,t,n){if(!t)return e;const r=n&&n.encode||l1e;zt.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(o?i=o(t,n):i=zt.isURLSearchParams(t)?t.toString():new h5(t,n).toString(r),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class lB{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){zt.forEach(this.handlers,function(r){r!==null&&t(r)})}}const JQ={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},c1e=typeof URLSearchParams<"u"?URLSearchParams:h5,u1e=typeof FormData<"u"?FormData:null,d1e=typeof Blob<"u"?Blob:null,f1e={isBrowser:!0,classes:{URLSearchParams:c1e,FormData:u1e,Blob:d1e},protocols:["http","https","file","blob","url","data"]},p5=typeof window<"u"&&typeof document<"u",Ik=typeof navigator=="object"&&navigator||void 0,h1e=p5&&(!Ik||["ReactNative","NativeScript","NS"].indexOf(Ik.product)<0),p1e=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",m1e=p5&&window.location.href||"http://localhost",g1e=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:p5,hasStandardBrowserEnv:h1e,hasStandardBrowserWebWorkerEnv:p1e,navigator:Ik,origin:m1e},Symbol.toStringTag,{value:"Module"})),ea={...g1e,...f1e};function v1e(e,t){return O_(e,new ea.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return ea.isNode&&zt.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function y1e(e){return zt.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function b1e(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r=n.length;return a=!a&&zt.isArray(o)?o.length:a,l?(zt.hasOwnProp(o,a)?o[a]=[o[a],r]:o[a]=r,!s):((!o[a]||!zt.isObject(o[a]))&&(o[a]=[]),t(n,r,o[a],i)&&zt.isArray(o[a])&&(o[a]=b1e(o[a])),!s)}if(zt.isFormData(e)&&zt.isFunction(e.entries)){const n={};return zt.forEachEntry(e,(r,o)=>{t(y1e(r),o,n,0)}),n}return null}function S1e(e,t,n){if(zt.isString(e))try{return(t||JSON.parse)(e),zt.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(e)}const k1={transitional:JQ,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=zt.isObject(t);if(i&&zt.isHTMLForm(t)&&(t=new FormData(t)),zt.isFormData(t))return o?JSON.stringify(ZQ(t)):t;if(zt.isArrayBuffer(t)||zt.isBuffer(t)||zt.isStream(t)||zt.isFile(t)||zt.isBlob(t)||zt.isReadableStream(t))return t;if(zt.isArrayBufferView(t))return t.buffer;if(zt.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return v1e(t,this.formSerializer).toString();if((s=zt.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return O_(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),S1e(t)):t}],transformResponse:[function(t){const n=this.transitional||k1.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(zt.isResponse(t)||zt.isReadableStream(t))return t;if(t&&zt.isString(t)&&(r&&!this.responseType||o)){const a=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?sr.from(s,sr.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ea.classes.FormData,Blob:ea.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};zt.forEach(["delete","get","head","post","put","patch"],e=>{k1.headers[e]={}});const C1e=zt.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),w1e=e=>{const t={};let n,r,o;return e&&e.split(` `).forEach(function(a){o=a.indexOf(":"),n=a.substring(0,o).trim().toLowerCase(),r=a.substring(o+1).trim(),!(!n||t[n]&&C1e[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},cB=Symbol("internals");function _0(e){return e&&String(e).trim().toLowerCase()}function Nw(e){return e===!1||e==null?e:zt.isArray(e)?e.map(Nw):String(e)}function x1e(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const E1e=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function KM(e,t,n,r,o){if(zt.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!zt.isString(t)){if(zt.isString(r))return t.indexOf(r)!==-1;if(zt.isRegExp(r))return r.test(t)}}function _1e(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function $1e(e,t){const n=zt.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,a){return this[r].call(this,t,o,i,a)},configurable:!0})})}class Wa{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(s,l,c){const u=_0(l);if(!u)throw new Error("header name must be a non-empty string");const f=zt.findKey(o,u);(!f||o[f]===void 0||c===!0||c===void 0&&o[f]!==!1)&&(o[f||l]=Nw(s))}const a=(s,l)=>zt.forEach(s,(c,u)=>i(c,u,l));if(zt.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(zt.isString(t)&&(t=t.trim())&&!E1e(t))a(w1e(t),n);else if(zt.isHeaders(t))for(const[s,l]of t.entries())i(l,s,r);else t!=null&&i(n,t,r);return this}get(t,n){if(t=_0(t),t){const r=zt.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return x1e(o);if(zt.isFunction(n))return n.call(this,o,r);if(zt.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=_0(t),t){const r=zt.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||KM(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(a){if(a=_0(a),a){const s=zt.findKey(r,a);s&&(!n||KM(r,r[s],s,n))&&(delete r[s],o=!0)}}return zt.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||KM(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return zt.forEach(this,(o,i)=>{const a=zt.findKey(r,i);if(a){n[a]=Nw(o),delete n[i];return}const s=t?_1e(i):String(i).trim();s!==i&&delete n[i],n[s]=Nw(o),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return zt.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&zt.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[cB]=this[cB]={accessors:{}}).accessors,o=this.prototype;function i(a){const s=_0(a);r[s]||($1e(o,a),r[s]=!0)}return zt.isArray(t)?t.forEach(i):i(t),this}}Wa.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);zt.reduceDescriptors(Wa.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});zt.freezeMethods(Wa);function qM(e,t){const n=this||k1,r=t||n,o=Wa.from(r.headers);let i=r.data;return zt.forEach(e,function(s){i=s.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function eJ(e){return!!(e&&e.__CANCEL__)}function vv(e,t,n){sr.call(this,e??"canceled",sr.ERR_CANCELED,t,n),this.name="CanceledError"}zt.inherits(vv,sr,{__CANCEL__:!0});function tJ(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new sr("Request failed with status code "+n.status,[sr.ERR_BAD_REQUEST,sr.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function P1e(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function O1e(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=r[i];a||(a=c),n[o]=l,r[o]=c;let f=i,h=0;for(;f!==o;)h+=n[f++],f=f%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),c-a{n=u,o=null,i&&(clearTimeout(i),i=null),e.apply(null,c)};return[(...c)=>{const u=Date.now(),f=u-n;f>=r?a(c,u):(o=c,i||(i=setTimeout(()=>{i=null,a(o)},r-f)))},()=>o&&a(o)]}const s2=(e,t,n=3)=>{let r=0;const o=O1e(50,250);return M1e(i=>{const a=i.loaded,s=i.lengthComputable?i.total:void 0,l=a-r,c=o(l),u=a<=s;r=a;const f={loaded:a,total:s,progress:s?a/s:void 0,bytes:l,rate:c||void 0,estimated:c&&s&&u?(s-a)/c:void 0,event:i,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(f)},n)},uB=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},dB=e=>(...t)=>zt.asap(()=>e(...t)),T1e=ea.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,ea.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(ea.origin),ea.navigator&&/(msie|trident)/i.test(ea.navigator.userAgent)):()=>!0,R1e=ea.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];zt.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),zt.isString(r)&&a.push("path="+r),zt.isString(o)&&a.push("domain="+o),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function I1e(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function k1e(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function nJ(e,t){return e&&!I1e(t)?k1e(e,t):t}const fB=e=>e instanceof Wa?{...e}:e;function lp(e,t){t=t||{};const n={};function r(c,u,f,h){return zt.isPlainObject(c)&&zt.isPlainObject(u)?zt.merge.call({caseless:h},c,u):zt.isPlainObject(u)?zt.merge({},u):zt.isArray(u)?u.slice():u}function o(c,u,f,h){if(zt.isUndefined(u)){if(!zt.isUndefined(c))return r(void 0,c,f,h)}else return r(c,u,f,h)}function i(c,u){if(!zt.isUndefined(u))return r(void 0,u)}function a(c,u){if(zt.isUndefined(u)){if(!zt.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function s(c,u,f){if(f in t)return r(c,u);if(f in e)return r(void 0,c)}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(c,u,f)=>o(fB(c),fB(u),f,!0)};return zt.forEach(Object.keys(Object.assign({},e,t)),function(u){const f=l[u]||o,h=f(e[u],t[u],u);zt.isUndefined(h)&&f!==s||(n[u]=h)}),n}const rJ=e=>{const t=lp({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:s}=t;t.headers=a=Wa.from(a),t.url=QQ(nJ(t.baseURL,t.url),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(zt.isFormData(n)){if(ea.hasStandardBrowserEnv||ea.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((l=a.getContentType())!==!1){const[c,...u]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];a.setContentType([c||"multipart/form-data",...u].join("; "))}}if(ea.hasStandardBrowserEnv&&(r&&zt.isFunction(r)&&(r=r(t)),r||r!==!1&&T1e(t.url))){const c=o&&i&&R1e.read(i);c&&a.set(o,c)}return t},N1e=typeof XMLHttpRequest<"u",A1e=N1e&&function(e){return new Promise(function(n,r){const o=rJ(e);let i=o.data;const a=Wa.from(o.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:c}=o,u,f,h,p,m;function g(){p&&p(),m&&m(),o.cancelToken&&o.cancelToken.unsubscribe(u),o.signal&&o.signal.removeEventListener("abort",u)}let v=new XMLHttpRequest;v.open(o.method.toUpperCase(),o.url,!0),v.timeout=o.timeout;function b(){if(!v)return;const S=Wa.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),E={data:!s||s==="text"||s==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:S,config:e,request:v};tJ(function(x){n(x),g()},function(x){r(x),g()},E),v=null}"onloadend"in v?v.onloadend=b:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(b)},v.onabort=function(){v&&(r(new sr("Request aborted",sr.ECONNABORTED,e,v)),v=null)},v.onerror=function(){r(new sr("Network Error",sr.ERR_NETWORK,e,v)),v=null},v.ontimeout=function(){let w=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const E=o.transitional||JQ;o.timeoutErrorMessage&&(w=o.timeoutErrorMessage),r(new sr(w,E.clarifyTimeoutError?sr.ETIMEDOUT:sr.ECONNABORTED,e,v)),v=null},i===void 0&&a.setContentType(null),"setRequestHeader"in v&&zt.forEach(a.toJSON(),function(w,E){v.setRequestHeader(E,w)}),zt.isUndefined(o.withCredentials)||(v.withCredentials=!!o.withCredentials),s&&s!=="json"&&(v.responseType=o.responseType),c&&([h,m]=s2(c,!0),v.addEventListener("progress",h)),l&&v.upload&&([f,p]=s2(l),v.upload.addEventListener("progress",f),v.upload.addEventListener("loadend",p)),(o.cancelToken||o.signal)&&(u=S=>{v&&(r(!S||S.type?new vv(null,e,v):S),v.abort(),v=null)},o.cancelToken&&o.cancelToken.subscribe(u),o.signal&&(o.signal.aborted?u():o.signal.addEventListener("abort",u)));const y=P1e(o.url);if(y&&ea.protocols.indexOf(y)===-1){r(new sr("Unsupported protocol "+y+":",sr.ERR_BAD_REQUEST,e));return}v.send(i||null)})},D1e=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const i=function(c){if(!o){o=!0,s();const u=c instanceof Error?c:this.reason;r.abort(u instanceof sr?u:new vv(u instanceof Error?u.message:u))}};let a=t&&setTimeout(()=>{a=null,i(new sr(`timeout ${t} of ms exceeded`,sr.ETIMEDOUT))},t);const s=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(i):c.removeEventListener("abort",i)}),e=null)};e.forEach(c=>c.addEventListener("abort",i));const{signal:l}=r;return l.unsubscribe=()=>zt.asap(s),l}},j1e=function*(e,t){let n=e.byteLength;if(n{const o=F1e(e,t);let i=0,a,s=l=>{a||(a=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:c,value:u}=await o.next();if(c){s(),l.close();return}let f=u.byteLength;if(n){let h=i+=f;n(h)}l.enqueue(new Uint8Array(u))}catch(c){throw s(c),c}},cancel(l){return s(l),o.return()}},{highWaterMark:2})},M_=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",oJ=M_&&typeof ReadableStream=="function",B1e=M_&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),iJ=(e,...t)=>{try{return!!e(...t)}catch{return!1}},z1e=oJ&&iJ(()=>{let e=!1;const t=new Request(ea.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),pB=64*1024,kk=oJ&&iJ(()=>zt.isReadableStream(new Response("").body)),l2={stream:kk&&(e=>e.body)};M_&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!l2[t]&&(l2[t]=zt.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new sr(`Response type '${t}' is not supported`,sr.ERR_NOT_SUPPORT,r)})})})(new Response);const H1e=async e=>{if(e==null)return 0;if(zt.isBlob(e))return e.size;if(zt.isSpecCompliantForm(e))return(await new Request(ea.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(zt.isArrayBufferView(e)||zt.isArrayBuffer(e))return e.byteLength;if(zt.isURLSearchParams(e)&&(e=e+""),zt.isString(e))return(await B1e(e)).byteLength},U1e=async(e,t)=>{const n=zt.toFiniteNumber(e.getContentLength());return n??H1e(t)},W1e=M_&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:f="same-origin",fetchOptions:h}=rJ(e);c=c?(c+"").toLowerCase():"text";let p=D1e([o,i&&i.toAbortSignal()],a),m;const g=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let v;try{if(l&&z1e&&n!=="get"&&n!=="head"&&(v=await U1e(u,r))!==0){let E=new Request(t,{method:"POST",body:r,duplex:"half"}),C;if(zt.isFormData(r)&&(C=E.headers.get("content-type"))&&u.setContentType(C),E.body){const[x,_]=uB(v,s2(dB(l)));r=hB(E.body,pB,x,_)}}zt.isString(f)||(f=f?"include":"omit");const b="credentials"in Request.prototype;m=new Request(t,{...h,signal:p,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:b?f:void 0});let y=await fetch(m);const S=kk&&(c==="stream"||c==="response");if(kk&&(s||S&&g)){const E={};["status","statusText","headers"].forEach(P=>{E[P]=y[P]});const C=zt.toFiniteNumber(y.headers.get("content-length")),[x,_]=s&&uB(C,s2(dB(s),!0))||[];y=new Response(hB(y.body,pB,x,()=>{_&&_(),g&&g()}),E)}c=c||"text";let w=await l2[zt.findKey(l2,c)||"text"](y,e);return!S&&g&&g(),await new Promise((E,C)=>{tJ(E,C,{data:w,headers:Wa.from(y.headers),status:y.status,statusText:y.statusText,config:e,request:m})})}catch(b){throw g&&g(),b&&b.name==="TypeError"&&/fetch/i.test(b.message)?Object.assign(new sr("Network Error",sr.ERR_NETWORK,e,m),{cause:b.cause||b}):sr.from(b,b&&b.code,e,m)}}),Nk={http:i1e,xhr:A1e,fetch:W1e};zt.forEach(Nk,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const mB=e=>`- ${e}`,V1e=e=>zt.isFunction(e)||e===null||e===!1,aJ={getAdapter:e=>{e=zt.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=t?i.length>1?`since : `+i.map(mB).join(` `):" "+mB(i[0]):"as no adapter specified";throw new sr("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:Nk};function GM(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new vv(null,e)}function gB(e){return GM(e),e.headers=Wa.from(e.headers),e.data=qM.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),aJ.getAdapter(e.adapter||k1.adapter)(e).then(function(r){return GM(e),r.data=qM.call(e,e.transformResponse,r),r.headers=Wa.from(r.headers),r},function(r){return eJ(r)||(GM(e),r&&r.response&&(r.response.data=qM.call(e,e.transformResponse,r.response),r.response.headers=Wa.from(r.response.headers))),Promise.reject(r)})}const sJ="1.7.9",T_={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{T_[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const vB={};T_.transitional=function(t,n,r){function o(i,a){return"[Axios v"+sJ+"] Transitional option '"+i+"'"+a+(r?". "+r:"")}return(i,a,s)=>{if(t===!1)throw new sr(o(a," has been removed"+(n?" in "+n:"")),sr.ERR_DEPRECATED);return n&&!vB[a]&&(vB[a]=!0,console.warn(o(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,a,s):!0}};T_.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function K1e(e,t,n){if(typeof e!="object")throw new sr("options must be an object",sr.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const s=e[i],l=s===void 0||a(s,i,e);if(l!==!0)throw new sr("option "+i+" must be "+l,sr.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new sr("Unknown option "+i,sr.ERR_BAD_OPTION)}}const Aw={assertOptions:K1e,validators:T_},Cc=Aw.validators;class zh{constructor(t){this.defaults=t,this.interceptors={request:new lB,response:new lB}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=` `+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=lp(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&Aw.assertOptions(r,{silentJSONParsing:Cc.transitional(Cc.boolean),forcedJSONParsing:Cc.transitional(Cc.boolean),clarifyTimeoutError:Cc.transitional(Cc.boolean)},!1),o!=null&&(zt.isFunction(o)?n.paramsSerializer={serialize:o}:Aw.assertOptions(o,{encode:Cc.function,serialize:Cc.function},!0)),Aw.assertOptions(n,{baseUrl:Cc.spelling("baseURL"),withXsrfToken:Cc.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=i&&zt.merge(i.common,i[n.method]);i&&zt.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),n.headers=Wa.concat(a,i);const s=[];let l=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(l=l&&g.synchronous,s.unshift(g.fulfilled,g.rejected))});const c=[];this.interceptors.response.forEach(function(g){c.push(g.fulfilled,g.rejected)});let u,f=0,h;if(!l){const m=[gB.bind(this),void 0];for(m.unshift.apply(m,s),m.push.apply(m,c),h=m.length,u=Promise.resolve(n);f{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(s=>{r.subscribe(s),i=s}).then(o);return a.cancel=function(){r.unsubscribe(i)},a},t(function(i,a,s){r.reason||(r.reason=new vv(i,a,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new m5(function(o){t=o}),cancel:t}}}function q1e(e){return function(n){return e.apply(null,n)}}function G1e(e){return zt.isObject(e)&&e.isAxiosError===!0}const Ak={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ak).forEach(([e,t])=>{Ak[t]=e});function lJ(e){const t=new zh(e),n=LQ(zh.prototype.request,t);return zt.extend(n,zh.prototype,t,{allOwnKeys:!0}),zt.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return lJ(lp(e,o))},n}const Qo=lJ(k1);Qo.Axios=zh;Qo.CanceledError=vv;Qo.CancelToken=m5;Qo.isCancel=eJ;Qo.VERSION=sJ;Qo.toFormData=O_;Qo.AxiosError=sr;Qo.Cancel=Qo.CanceledError;Qo.all=function(t){return Promise.all(t)};Qo.spread=q1e;Qo.isAxiosError=G1e;Qo.mergeConfig=lp;Qo.AxiosHeaders=Wa;Qo.formToJSON=e=>ZQ(zt.isHTMLForm(e)?new FormData(e):e);Qo.getAdapter=aJ.getAdapter;Qo.HttpStatusCode=Ak;Qo.default=Qo;function Y1e(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(o){o(n)}),(r=e.get("*"))&&r.slice().map(function(o){o(t,n)})}}}const Jn=Y1e();async function X1e(){return ko("/config/bytedesk/properties",{method:"GET",params:{client:po}})}async function cJ(){try{const t=(await Qo.get("/agent/config.json")).data;if(t.enabled)console.log("config enabled: ",t),localStorage.setItem(Iy,"true"),localStorage.setItem(Rw,t.apiUrl),localStorage.setItem(Iw,t.websocketUrl),localStorage.setItem(UM,t.htmlUrl);else if(_0e===SQ){console.log("config opensource");const n=window.location.port,r=window.location.protocol+"//"+window.location.hostname+":"+n,o="ws://"+window.location.hostname+":9885/websocket";console.log("apiUrl: ",r," port:",n," websocketUrl:",o),localStorage.setItem(Iy,"true"),localStorage.setItem(Rw,r),localStorage.setItem(Iw,o),localStorage.setItem(UM,r)}else console.log("config disabled"),localStorage.setItem(Iy,"false"),localStorage.removeItem(Rw),localStorage.removeItem(Iw),localStorage.removeItem(UM)}catch(e){console.log("loadConfig error: ",e)}}function R_(){const e=localStorage.getItem(Bm);if(console.log("custom_enabled: ",e),e==="true"){const n=localStorage.getItem(iy);return n===null?HM:n}if(localStorage.getItem(Iy)==="true"){const n=localStorage.getItem(Rw);return n===null?HM:n}return HM}function uJ(){return R_()+"/api/v1/upload/file"}function Q1e(){const e=localStorage.getItem(Bm);if(console.log("custom_enabled: ",e),e==="true"){const r=localStorage.getItem(ay);return r===null?k7:r}const t=localStorage.getItem(Iy),n=localStorage.getItem(Iw);return t==="true"?n:k7}async function dJ(){const e=await X1e();return console.log("getConfigProperties response: ",e.data.data),e.data.code===200?(localStorage.setItem($0e,JSON.stringify(e.data.data)),e.data.data):null}const ko=Qo.create({timeout:2e4,baseURL:R_(),paramsSerializer:{indexes:null}});ko.interceptors.request.use(e=>{e.baseURL=R_();const t=localStorage.getItem(Eb);return t&&t.length>10&&e.url.startsWith("/api")&&(e.headers.Authorization=`Bearer ${t}`),!t&&e.url.startsWith("/api")?Promise.reject(J1e):e},e=>(console.debug("request error",e),e.response.status===403&&Jn.emit(pf,"403"),e.response.status===401&&Jn.emit(pf,"401"),Promise.reject(e)));ko.interceptors.response.use(e=>e,e=>{var t,n,r;if(console.debug("response error",e),e!=null&&e.response)switch((t=e==null?void 0:e.response)==null?void 0:t.status){case 400:console.log("axios interception error 400"),Jn.emit(pf,"400");break;case 401:console.log("axios interception error 401"),Jn.emit(pf,"401");break;case 403:console.log("axios interception error 403"),Jn.emit(pf,"403");break;case 500:console.log("axios interception error 500"),Jn.emit(O0e,"500");break;case 601:console.log("axios interception error 601",e.message);break}return Promise.resolve({message:e==null?void 0:e.message,code:(n=e==null?void 0:e.response)==null?void 0:n.status,data:{message:e==null?void 0:e.message,code:(r=e==null?void 0:e.response)==null?void 0:r.status,data:!1}})});const YM={data:null,status:601,statusText:wQ,headers:{},config:{headers:void 0},request:null},J1e={message:"匿名用户,无需访问服务器接口",name:wQ,code:"601",config:YM.config,request:YM.request,response:YM,isAxiosError:!0,toJSON:function(){return{message:this.message,name:this.name,code:this.code,config:this.config,request:this.request,response:this.response}}};async function Z1e(e){return ko("/api/v1/agent/query",{method:"GET",params:{orgUid:e,client:po}})}async function eSe(e){return ko("/api/v1/agent/update",{method:"POST",data:{...e,client:po}})}async function tSe(e){return ko("/api/v1/agent/update/status",{method:"POST",data:{...e,client:po}})}async function nSe(e){return ko("/api/v1/message_unread/query",{method:"GET",params:{userUid:e,client:po}})}async function rSe(e){return ko("/api/v1/message/rest/send",{method:"POST",data:{json:e,client:po}})}var g5=Object.defineProperty,oSe=Object.getOwnPropertyDescriptor,iSe=Object.getOwnPropertyNames,aSe=Object.prototype.hasOwnProperty,Fi=(e,t)=>()=>(e&&(t=e(e=0)),t),Zt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Rp=(e,t)=>{for(var n in t)g5(e,n,{get:t[n],enumerable:!0})},sSe=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of iSe(t))!aSe.call(e,o)&&o!==n&&g5(e,o,{get:()=>t[o],enumerable:!(r=oSe(t,o))||r.enumerable});return e},Qr=e=>sSe(g5({},"__esModule",{value:!0}),e),Vt=Fi(()=>{}),jr={};Rp(jr,{_debugEnd:()=>p4,_debugProcess:()=>h4,_events:()=>M4,_eventsCount:()=>T4,_exiting:()=>Zk,_fatalExceptions:()=>u4,_getActiveHandles:()=>yJ,_getActiveRequests:()=>vJ,_kill:()=>n4,_linkedBinding:()=>mJ,_maxListeners:()=>O4,_preload_modules:()=>$4,_rawDebug:()=>Xk,_startProfilerIdleNotifier:()=>m4,_stopProfilerIdleNotifier:()=>g4,_tickCallback:()=>f4,abort:()=>S4,addListener:()=>R4,allowedNodeEnvironmentFlags:()=>l4,arch:()=>jk,argv:()=>Bk,argv0:()=>_4,assert:()=>bJ,binding:()=>Vk,chdir:()=>Gk,config:()=>e4,cpuUsage:()=>sy,cwd:()=>qk,debugPort:()=>E4,default:()=>y5,dlopen:()=>gJ,domain:()=>Jk,emit:()=>D4,emitWarning:()=>Wk,env:()=>Lk,execArgv:()=>zk,execPath:()=>x4,exit:()=>a4,features:()=>c4,hasUncaughtExceptionCaptureCallback:()=>SJ,hrtime:()=>Dw,kill:()=>i4,listeners:()=>wJ,memoryUsage:()=>o4,moduleLoadList:()=>Qk,nextTick:()=>hJ,off:()=>k4,on:()=>bu,once:()=>I4,openStdin:()=>s4,pid:()=>C4,platform:()=>Fk,ppid:()=>w4,prependListener:()=>j4,prependOnceListener:()=>F4,reallyExit:()=>t4,release:()=>Yk,removeAllListeners:()=>A4,removeListener:()=>N4,resourceUsage:()=>r4,setSourceMapsEnabled:()=>P4,setUncaughtExceptionCaptureCallback:()=>d4,stderr:()=>y4,stdin:()=>b4,stdout:()=>v4,title:()=>Dk,umask:()=>Kk,uptime:()=>CJ,version:()=>Hk,versions:()=>Uk});function v5(e){throw new Error("Node.js process "+e+" is not supported by JSPM core outside of Node.js")}function lSe(){!Hh||!Eh||(Hh=!1,Eh.length?Ac=Eh.concat(Ac):ky=-1,Ac.length&&fJ())}function fJ(){if(!Hh){var e=setTimeout(lSe,0);Hh=!0;for(var t=Ac.length;t;){for(Eh=Ac,Ac=[];++ky1)for(var n=1;n{Vt(),qt(),Kt(),Ac=[],Hh=!1,ky=-1,pJ.prototype.run=function(){this.fun.apply(null,this.array)},Dk="browser",jk="x64",Fk="browser",Lk={PATH:"/usr/bin",LANG:navigator.language+".UTF-8",PWD:"/",HOME:"/home",TMP:"/tmp"},Bk=["/usr/bin/node"],zk=[],Hk="v16.8.0",Uk={},Wk=function(e,t){console.warn((t?t+": ":"")+e)},Vk=function(e){v5("binding")},Kk=function(e){return 0},qk=function(){return"/"},Gk=function(e){},Yk={name:"node",sourceUrl:"",headersUrl:"",libUrl:""},Xk=Gi,Qk=[],Jk={},Zk=!1,e4={},t4=Gi,n4=Gi,sy=function(){return{}},r4=sy,o4=sy,i4=Gi,a4=Gi,s4=Gi,l4={},c4={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},u4=Gi,d4=Gi,f4=Gi,h4=Gi,p4=Gi,m4=Gi,g4=Gi,v4=void 0,y4=void 0,b4=void 0,S4=Gi,C4=2,w4=1,x4="/bin/usr/node",E4=9229,_4="node",$4=[],P4=Gi,Tu={now:typeof performance<"u"?performance.now.bind(performance):void 0,timing:typeof performance<"u"?performance.timing:void 0},Tu.now===void 0&&(XM=Date.now(),Tu.timing&&Tu.timing.navigationStart&&(XM=Tu.timing.navigationStart),Tu.now=()=>Date.now()-XM),jw=1e9,Dw.bigint=function(e){var t=Dw(e);return typeof BigInt>"u"?t[0]*jw+t[1]:BigInt(t[0]*jw)+BigInt(t[1])},O4=10,M4={},T4=0,R4=bu,I4=bu,k4=bu,N4=bu,A4=bu,D4=Gi,j4=bu,F4=bu,y5={version:Hk,versions:Uk,arch:jk,platform:Fk,release:Yk,_rawDebug:Xk,moduleLoadList:Qk,binding:Vk,_linkedBinding:mJ,_events:M4,_eventsCount:T4,_maxListeners:O4,on:bu,addListener:R4,once:I4,off:k4,removeListener:N4,removeAllListeners:A4,emit:D4,prependListener:j4,prependOnceListener:F4,listeners:wJ,domain:Jk,_exiting:Zk,config:e4,dlopen:gJ,uptime:CJ,_getActiveRequests:vJ,_getActiveHandles:yJ,reallyExit:t4,_kill:n4,cpuUsage:sy,resourceUsage:r4,memoryUsage:o4,kill:i4,exit:a4,openStdin:s4,allowedNodeEnvironmentFlags:l4,assert:bJ,features:c4,_fatalExceptions:u4,setUncaughtExceptionCaptureCallback:d4,hasUncaughtExceptionCaptureCallback:SJ,emitWarning:Wk,nextTick:hJ,_tickCallback:f4,_debugProcess:h4,_debugEnd:p4,_startProfilerIdleNotifier:m4,_stopProfilerIdleNotifier:g4,stdout:v4,stdin:b4,stderr:y4,abort:S4,umask:Kk,chdir:Gk,cwd:qk,env:Lk,title:Dk,argv:Bk,execArgv:zk,pid:C4,ppid:w4,execPath:x4,debugPort:E4,hrtime:Dw,argv0:_4,_preload_modules:$4,setSourceMapsEnabled:P4}}),Kt=Fi(()=>{cSe()}),Li={};Rp(Li,{Buffer:()=>c2,INSPECT_MAX_BYTES:()=>xJ,default:()=>Su,kMaxLength:()=>EJ});function uSe(){if(L4)return _m;L4=!0,_m.byteLength=s,_m.toByteArray=c,_m.fromByteArray=h;for(var e=[],t=[],n=typeof Uint8Array<"u"?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,i=r.length;o0)throw new Error("Invalid string. Length must be a multiple of 4");var g=p.indexOf("=");g===-1&&(g=m);var v=g===m?0:4-g%4;return[g,v]}function s(p){var m=a(p),g=m[0],v=m[1];return(g+v)*3/4-v}function l(p,m,g){return(m+g)*3/4-g}function c(p){var m,g=a(p),v=g[0],b=g[1],y=new n(l(p,v,b)),S=0,w=b>0?v-4:v,E;for(E=0;E>16&255,y[S++]=m>>8&255,y[S++]=m&255;return b===2&&(m=t[p.charCodeAt(E)]<<2|t[p.charCodeAt(E+1)]>>4,y[S++]=m&255),b===1&&(m=t[p.charCodeAt(E)]<<10|t[p.charCodeAt(E+1)]<<4|t[p.charCodeAt(E+2)]>>2,y[S++]=m>>8&255,y[S++]=m&255),y}function u(p){return e[p>>18&63]+e[p>>12&63]+e[p>>6&63]+e[p&63]}function f(p,m,g){for(var v,b=[],y=m;yw?w:S+y));return v===1?(m=p[g-1],b.push(e[m>>2]+e[m<<4&63]+"==")):v===2&&(m=(p[g-2]<<8)+p[g-1],b.push(e[m>>10]+e[m>>4&63]+e[m<<2&63]+"=")),b.join("")}return _m}function dSe(){return B4?ly:(B4=!0,ly.read=function(e,t,n,r,o){var i,a,s=o*8-r-1,l=(1<>1,u=-7,f=n?o-1:0,h=n?-1:1,p=e[t+f];for(f+=h,i=p&(1<<-u)-1,p>>=-u,u+=s;u>0;i=i*256+e[t+f],f+=h,u-=8);for(a=i&(1<<-u)-1,i>>=-u,u+=r;u>0;a=a*256+e[t+f],f+=h,u-=8);if(i===0)i=1-c;else{if(i===l)return a?NaN:(p?-1:1)*(1/0);a=a+Math.pow(2,r),i=i-c}return(p?-1:1)*a*Math.pow(2,i-r)},ly.write=function(e,t,n,r,o,i){var a,s,l,c=i*8-o-1,u=(1<>1,h=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,m=r?1:-1,g=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),a+f>=1?t+=h/l:t+=h*Math.pow(2,1-f),t*l>=2&&(a++,l/=2),a+f>=u?(s=0,a=u):a+f>=1?(s=(t*l-1)*Math.pow(2,o),a=a+f):(s=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[n+p]=s&255,p+=m,s/=256,o-=8);for(a=a<0;e[n+p]=a&255,p+=m,a/=256,c-=8);e[n+p-m]|=g*128},ly)}function fSe(){if(z4)return Od;z4=!0;let e=uSe(),t=dSe(),n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Od.Buffer=a,Od.SlowBuffer=b,Od.INSPECT_MAX_BYTES=50;let r=2147483647;Od.kMaxLength=r,a.TYPED_ARRAY_SUPPORT=o(),!a.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function o(){try{let U=new Uint8Array(1),H={foo:function(){return 42}};return Object.setPrototypeOf(H,Uint8Array.prototype),Object.setPrototypeOf(U,H),U.foo()===42}catch{return!1}}Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}});function i(U){if(U>r)throw new RangeError('The value "'+U+'" is invalid for option "size"');let H=new Uint8Array(U);return Object.setPrototypeOf(H,a.prototype),H}function a(U,H,q){if(typeof U=="number"){if(typeof H=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return u(U)}return s(U,H,q)}a.poolSize=8192;function s(U,H,q){if(typeof U=="string")return f(U,H);if(ArrayBuffer.isView(U))return p(U);if(U==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof U);if(ye(U,ArrayBuffer)||U&&ye(U.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ye(U,SharedArrayBuffer)||U&&ye(U.buffer,SharedArrayBuffer)))return m(U,H,q);if(typeof U=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let me=U.valueOf&&U.valueOf();if(me!=null&&me!==U)return a.from(me,H,q);let Ce=g(U);if(Ce)return Ce;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof U[Symbol.toPrimitive]=="function")return a.from(U[Symbol.toPrimitive]("string"),H,q);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof U)}a.from=function(U,H,q){return s(U,H,q)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array);function l(U){if(typeof U!="number")throw new TypeError('"size" argument must be of type number');if(U<0)throw new RangeError('The value "'+U+'" is invalid for option "size"')}function c(U,H,q){return l(U),U<=0?i(U):H!==void 0?typeof q=="string"?i(U).fill(H,q):i(U).fill(H):i(U)}a.alloc=function(U,H,q){return c(U,H,q)};function u(U){return l(U),i(U<0?0:v(U)|0)}a.allocUnsafe=function(U){return u(U)},a.allocUnsafeSlow=function(U){return u(U)};function f(U,H){if((typeof H!="string"||H==="")&&(H="utf8"),!a.isEncoding(H))throw new TypeError("Unknown encoding: "+H);let q=y(U,H)|0,me=i(q),Ce=me.write(U,H);return Ce!==q&&(me=me.slice(0,Ce)),me}function h(U){let H=U.length<0?0:v(U.length)|0,q=i(H);for(let me=0;me=r)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return U|0}function b(U){return+U!=U&&(U=0),a.alloc(+U)}a.isBuffer=function(U){return U!=null&&U._isBuffer===!0&&U!==a.prototype},a.compare=function(U,H){if(ye(U,Uint8Array)&&(U=a.from(U,U.offset,U.byteLength)),ye(H,Uint8Array)&&(H=a.from(H,H.offset,H.byteLength)),!a.isBuffer(U)||!a.isBuffer(H))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(U===H)return 0;let q=U.length,me=H.length;for(let Ce=0,ue=Math.min(q,me);Ceme.length?(a.isBuffer(ue)||(ue=a.from(ue)),ue.copy(me,Ce)):Uint8Array.prototype.set.call(me,ue,Ce);else if(a.isBuffer(ue))ue.copy(me,Ce);else throw new TypeError('"list" argument must be an Array of Buffers');Ce+=ue.length}return me};function y(U,H){if(a.isBuffer(U))return U.length;if(ArrayBuffer.isView(U)||ye(U,ArrayBuffer))return U.byteLength;if(typeof U!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof U);let q=U.length,me=arguments.length>2&&arguments[2]===!0;if(!me&&q===0)return 0;let Ce=!1;for(;;)switch(H){case"ascii":case"latin1":case"binary":return q;case"utf8":case"utf-8":return he(U).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return q*2;case"hex":return q>>>1;case"base64":return Me(U).length;default:if(Ce)return me?-1:he(U).length;H=(""+H).toLowerCase(),Ce=!0}}a.byteLength=y;function S(U,H,q){let me=!1;if((H===void 0||H<0)&&(H=0),H>this.length||((q===void 0||q>this.length)&&(q=this.length),q<=0)||(q>>>=0,H>>>=0,q<=H))return"";for(U||(U="utf8");;)switch(U){case"hex":return F(this,H,q);case"utf8":case"utf-8":return T(this,H,q);case"ascii":return j(this,H,q);case"latin1":case"binary":return k(this,H,q);case"base64":return M(this,H,q);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return V(this,H,q);default:if(me)throw new TypeError("Unknown encoding: "+U);U=(U+"").toLowerCase(),me=!0}}a.prototype._isBuffer=!0;function w(U,H,q){let me=U[H];U[H]=U[q],U[q]=me}a.prototype.swap16=function(){let U=this.length;if(U%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let H=0;HH&&(U+=" ... "),""},n&&(a.prototype[n]=a.prototype.inspect),a.prototype.compare=function(U,H,q,me,Ce){if(ye(U,Uint8Array)&&(U=a.from(U,U.offset,U.byteLength)),!a.isBuffer(U))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof U);if(H===void 0&&(H=0),q===void 0&&(q=U?U.length:0),me===void 0&&(me=0),Ce===void 0&&(Ce=this.length),H<0||q>U.length||me<0||Ce>this.length)throw new RangeError("out of range index");if(me>=Ce&&H>=q)return 0;if(me>=Ce)return-1;if(H>=q)return 1;if(H>>>=0,q>>>=0,me>>>=0,Ce>>>=0,this===U)return 0;let ue=Ce-me,Le=q-H,He=Math.min(ue,Le),ge=this.slice(me,Ce),De=U.slice(H,q);for(let qe=0;qe2147483647?q=2147483647:q<-2147483648&&(q=-2147483648),q=+q,ve(q)&&(q=Ce?0:U.length-1),q<0&&(q=U.length+q),q>=U.length){if(Ce)return-1;q=U.length-1}else if(q<0)if(Ce)q=0;else return-1;if(typeof H=="string"&&(H=a.from(H,me)),a.isBuffer(H))return H.length===0?-1:C(U,H,q,me,Ce);if(typeof H=="number")return H=H&255,typeof Uint8Array.prototype.indexOf=="function"?Ce?Uint8Array.prototype.indexOf.call(U,H,q):Uint8Array.prototype.lastIndexOf.call(U,H,q):C(U,[H],q,me,Ce);throw new TypeError("val must be string, number or Buffer")}function C(U,H,q,me,Ce){let ue=1,Le=U.length,He=H.length;if(me!==void 0&&(me=String(me).toLowerCase(),me==="ucs2"||me==="ucs-2"||me==="utf16le"||me==="utf-16le")){if(U.length<2||H.length<2)return-1;ue=2,Le/=2,He/=2,q/=2}function ge(qe,Fe){return ue===1?qe[Fe]:qe.readUInt16BE(Fe*ue)}let De;if(Ce){let qe=-1;for(De=q;DeLe&&(q=Le-He),De=q;De>=0;De--){let qe=!0;for(let Fe=0;FeCe&&(me=Ce)):me=Ce;let ue=H.length;me>ue/2&&(me=ue/2);let Le;for(Le=0;Le>>0,isFinite(q)?(q=q>>>0,me===void 0&&(me="utf8")):(me=q,q=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let Ce=this.length-H;if((q===void 0||q>Ce)&&(q=Ce),U.length>0&&(q<0||H<0)||H>this.length)throw new RangeError("Attempt to write outside buffer bounds");me||(me="utf8");let ue=!1;for(;;)switch(me){case"hex":return x(this,U,H,q);case"utf8":case"utf-8":return _(this,U,H,q);case"ascii":case"latin1":case"binary":return P(this,U,H,q);case"base64":return O(this,U,H,q);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,U,H,q);default:if(ue)throw new TypeError("Unknown encoding: "+me);me=(""+me).toLowerCase(),ue=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function M(U,H,q){return H===0&&q===U.length?e.fromByteArray(U):e.fromByteArray(U.slice(H,q))}function T(U,H,q){q=Math.min(U.length,q);let me=[],Ce=H;for(;Ce239?4:ue>223?3:ue>191?2:1;if(Ce+He<=q){let ge,De,qe,Fe;switch(He){case 1:ue<128&&(Le=ue);break;case 2:ge=U[Ce+1],(ge&192)===128&&(Fe=(ue&31)<<6|ge&63,Fe>127&&(Le=Fe));break;case 3:ge=U[Ce+1],De=U[Ce+2],(ge&192)===128&&(De&192)===128&&(Fe=(ue&15)<<12|(ge&63)<<6|De&63,Fe>2047&&(Fe<55296||Fe>57343)&&(Le=Fe));break;case 4:ge=U[Ce+1],De=U[Ce+2],qe=U[Ce+3],(ge&192)===128&&(De&192)===128&&(qe&192)===128&&(Fe=(ue&15)<<18|(ge&63)<<12|(De&63)<<6|qe&63,Fe>65535&&Fe<1114112&&(Le=Fe))}}Le===null?(Le=65533,He=1):Le>65535&&(Le-=65536,me.push(Le>>>10&1023|55296),Le=56320|Le&1023),me.push(Le),Ce+=He}return A(me)}let D=4096;function A(U){let H=U.length;if(H<=D)return String.fromCharCode.apply(String,U);let q="",me=0;for(;meme)&&(q=me);let Ce="";for(let ue=H;ueq&&(U=q),H<0?(H+=q,H<0&&(H=0)):H>q&&(H=q),Hq)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(U,H,q){U=U>>>0,H=H>>>0,q||W(U,H,this.length);let me=this[U],Ce=1,ue=0;for(;++ue>>0,H=H>>>0,q||W(U,H,this.length);let me=this[U+--H],Ce=1;for(;H>0&&(Ce*=256);)me+=this[U+--H]*Ce;return me},a.prototype.readUint8=a.prototype.readUInt8=function(U,H){return U=U>>>0,H||W(U,1,this.length),this[U]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(U,H){return U=U>>>0,H||W(U,2,this.length),this[U]|this[U+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(U,H){return U=U>>>0,H||W(U,2,this.length),this[U]<<8|this[U+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(U,H){return U=U>>>0,H||W(U,4,this.length),(this[U]|this[U+1]<<8|this[U+2]<<16)+this[U+3]*16777216},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(U,H){return U=U>>>0,H||W(U,4,this.length),this[U]*16777216+(this[U+1]<<16|this[U+2]<<8|this[U+3])},a.prototype.readBigUInt64LE=Pe(function(U){U=U>>>0,oe(U,"offset");let H=this[U],q=this[U+7];(H===void 0||q===void 0)&&se(U,this.length-8);let me=H+this[++U]*2**8+this[++U]*2**16+this[++U]*2**24,Ce=this[++U]+this[++U]*2**8+this[++U]*2**16+q*2**24;return BigInt(me)+(BigInt(Ce)<>>0,oe(U,"offset");let H=this[U],q=this[U+7];(H===void 0||q===void 0)&&se(U,this.length-8);let me=H*2**24+this[++U]*2**16+this[++U]*2**8+this[++U],Ce=this[++U]*2**24+this[++U]*2**16+this[++U]*2**8+q;return(BigInt(me)<>>0,H=H>>>0,q||W(U,H,this.length);let me=this[U],Ce=1,ue=0;for(;++ue=Ce&&(me-=Math.pow(2,8*H)),me},a.prototype.readIntBE=function(U,H,q){U=U>>>0,H=H>>>0,q||W(U,H,this.length);let me=H,Ce=1,ue=this[U+--me];for(;me>0&&(Ce*=256);)ue+=this[U+--me]*Ce;return Ce*=128,ue>=Ce&&(ue-=Math.pow(2,8*H)),ue},a.prototype.readInt8=function(U,H){return U=U>>>0,H||W(U,1,this.length),this[U]&128?(255-this[U]+1)*-1:this[U]},a.prototype.readInt16LE=function(U,H){U=U>>>0,H||W(U,2,this.length);let q=this[U]|this[U+1]<<8;return q&32768?q|4294901760:q},a.prototype.readInt16BE=function(U,H){U=U>>>0,H||W(U,2,this.length);let q=this[U+1]|this[U]<<8;return q&32768?q|4294901760:q},a.prototype.readInt32LE=function(U,H){return U=U>>>0,H||W(U,4,this.length),this[U]|this[U+1]<<8|this[U+2]<<16|this[U+3]<<24},a.prototype.readInt32BE=function(U,H){return U=U>>>0,H||W(U,4,this.length),this[U]<<24|this[U+1]<<16|this[U+2]<<8|this[U+3]},a.prototype.readBigInt64LE=Pe(function(U){U=U>>>0,oe(U,"offset");let H=this[U],q=this[U+7];(H===void 0||q===void 0)&&se(U,this.length-8);let me=this[U+4]+this[U+5]*2**8+this[U+6]*2**16+(q<<24);return(BigInt(me)<>>0,oe(U,"offset");let H=this[U],q=this[U+7];(H===void 0||q===void 0)&&se(U,this.length-8);let me=(H<<24)+this[++U]*2**16+this[++U]*2**8+this[++U];return(BigInt(me)<>>0,H||W(U,4,this.length),t.read(this,U,!0,23,4)},a.prototype.readFloatBE=function(U,H){return U=U>>>0,H||W(U,4,this.length),t.read(this,U,!1,23,4)},a.prototype.readDoubleLE=function(U,H){return U=U>>>0,H||W(U,8,this.length),t.read(this,U,!0,52,8)},a.prototype.readDoubleBE=function(U,H){return U=U>>>0,H||W(U,8,this.length),t.read(this,U,!1,52,8)};function K(U,H,q,me,Ce,ue){if(!a.isBuffer(U))throw new TypeError('"buffer" argument must be a Buffer instance');if(H>Ce||HU.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(U,H,q,me){if(U=+U,H=H>>>0,q=q>>>0,!me){let Le=Math.pow(2,8*q)-1;K(this,U,H,q,Le,0)}let Ce=1,ue=0;for(this[H]=U&255;++ue>>0,q=q>>>0,!me){let Le=Math.pow(2,8*q)-1;K(this,U,H,q,Le,0)}let Ce=q-1,ue=1;for(this[H+Ce]=U&255;--Ce>=0&&(ue*=256);)this[H+Ce]=U/ue&255;return H+q},a.prototype.writeUint8=a.prototype.writeUInt8=function(U,H,q){return U=+U,H=H>>>0,q||K(this,U,H,1,255,0),this[H]=U&255,H+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(U,H,q){return U=+U,H=H>>>0,q||K(this,U,H,2,65535,0),this[H]=U&255,this[H+1]=U>>>8,H+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(U,H,q){return U=+U,H=H>>>0,q||K(this,U,H,2,65535,0),this[H]=U>>>8,this[H+1]=U&255,H+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(U,H,q){return U=+U,H=H>>>0,q||K(this,U,H,4,4294967295,0),this[H+3]=U>>>24,this[H+2]=U>>>16,this[H+1]=U>>>8,this[H]=U&255,H+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(U,H,q){return U=+U,H=H>>>0,q||K(this,U,H,4,4294967295,0),this[H]=U>>>24,this[H+1]=U>>>16,this[H+2]=U>>>8,this[H+3]=U&255,H+4};function L(U,H,q,me,Ce){ce(H,me,Ce,U,q,7);let ue=Number(H&BigInt(4294967295));U[q++]=ue,ue=ue>>8,U[q++]=ue,ue=ue>>8,U[q++]=ue,ue=ue>>8,U[q++]=ue;let Le=Number(H>>BigInt(32)&BigInt(4294967295));return U[q++]=Le,Le=Le>>8,U[q++]=Le,Le=Le>>8,U[q++]=Le,Le=Le>>8,U[q++]=Le,q}function Q(U,H,q,me,Ce){ce(H,me,Ce,U,q,7);let ue=Number(H&BigInt(4294967295));U[q+7]=ue,ue=ue>>8,U[q+6]=ue,ue=ue>>8,U[q+5]=ue,ue=ue>>8,U[q+4]=ue;let Le=Number(H>>BigInt(32)&BigInt(4294967295));return U[q+3]=Le,Le=Le>>8,U[q+2]=Le,Le=Le>>8,U[q+1]=Le,Le=Le>>8,U[q]=Le,q+8}a.prototype.writeBigUInt64LE=Pe(function(U,H=0){return L(this,U,H,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeBigUInt64BE=Pe(function(U,H=0){return Q(this,U,H,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeIntLE=function(U,H,q,me){if(U=+U,H=H>>>0,!me){let He=Math.pow(2,8*q-1);K(this,U,H,q,He-1,-He)}let Ce=0,ue=1,Le=0;for(this[H]=U&255;++Ce>0)-Le&255;return H+q},a.prototype.writeIntBE=function(U,H,q,me){if(U=+U,H=H>>>0,!me){let He=Math.pow(2,8*q-1);K(this,U,H,q,He-1,-He)}let Ce=q-1,ue=1,Le=0;for(this[H+Ce]=U&255;--Ce>=0&&(ue*=256);)U<0&&Le===0&&this[H+Ce+1]!==0&&(Le=1),this[H+Ce]=(U/ue>>0)-Le&255;return H+q},a.prototype.writeInt8=function(U,H,q){return U=+U,H=H>>>0,q||K(this,U,H,1,127,-128),U<0&&(U=255+U+1),this[H]=U&255,H+1},a.prototype.writeInt16LE=function(U,H,q){return U=+U,H=H>>>0,q||K(this,U,H,2,32767,-32768),this[H]=U&255,this[H+1]=U>>>8,H+2},a.prototype.writeInt16BE=function(U,H,q){return U=+U,H=H>>>0,q||K(this,U,H,2,32767,-32768),this[H]=U>>>8,this[H+1]=U&255,H+2},a.prototype.writeInt32LE=function(U,H,q){return U=+U,H=H>>>0,q||K(this,U,H,4,2147483647,-2147483648),this[H]=U&255,this[H+1]=U>>>8,this[H+2]=U>>>16,this[H+3]=U>>>24,H+4},a.prototype.writeInt32BE=function(U,H,q){return U=+U,H=H>>>0,q||K(this,U,H,4,2147483647,-2147483648),U<0&&(U=4294967295+U+1),this[H]=U>>>24,this[H+1]=U>>>16,this[H+2]=U>>>8,this[H+3]=U&255,H+4},a.prototype.writeBigInt64LE=Pe(function(U,H=0){return L(this,U,H,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),a.prototype.writeBigInt64BE=Pe(function(U,H=0){return Q(this,U,H,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function ee(U,H,q,me,Ce,ue){if(q+me>U.length)throw new RangeError("Index out of range");if(q<0)throw new RangeError("Index out of range")}function re(U,H,q,me,Ce){return H=+H,q=q>>>0,Ce||ee(U,H,q,4),t.write(U,H,q,me,23,4),q+4}a.prototype.writeFloatLE=function(U,H,q){return re(this,U,H,!0,q)},a.prototype.writeFloatBE=function(U,H,q){return re(this,U,H,!1,q)};function ie(U,H,q,me,Ce){return H=+H,q=q>>>0,Ce||ee(U,H,q,8),t.write(U,H,q,me,52,8),q+8}a.prototype.writeDoubleLE=function(U,H,q){return ie(this,U,H,!0,q)},a.prototype.writeDoubleBE=function(U,H,q){return ie(this,U,H,!1,q)},a.prototype.copy=function(U,H,q,me){if(!a.isBuffer(U))throw new TypeError("argument should be a Buffer");if(q||(q=0),!me&&me!==0&&(me=this.length),H>=U.length&&(H=U.length),H||(H=0),me>0&&me=this.length)throw new RangeError("Index out of range");if(me<0)throw new RangeError("sourceEnd out of bounds");me>this.length&&(me=this.length),U.length-H>>0,q=q===void 0?this.length:q>>>0,U||(U=0);let Ce;if(typeof U=="number")for(Ce=H;Ce2**32?Ce=ne(String(q)):typeof q=="bigint"&&(Ce=String(q),(q>BigInt(2)**BigInt(32)||q<-(BigInt(2)**BigInt(32)))&&(Ce=ne(Ce)),Ce+="n"),me+=` It must be ${H}. Received ${Ce}`,me},RangeError);function ne(U){let H="",q=U.length,me=U[0]==="-"?1:0;for(;q>=me+4;q-=3)H=`_${U.slice(q-3,q)}${H}`;return`${U.slice(0,q)}${H}`}function le(U,H,q){oe(H,"offset"),(U[H]===void 0||U[H+q]===void 0)&&se(H,U.length-(q+1))}function ce(U,H,q,me,Ce,ue){if(U>q||U= 0${Le} and < 2${Le} ** ${(ue+1)*8}${Le}`:He=`>= -(2${Le} ** ${(ue+1)*8-1}${Le}) and < 2 ** ${(ue+1)*8-1}${Le}`,new G.ERR_OUT_OF_RANGE("value",He,U)}le(me,Ce,ue)}function oe(U,H){if(typeof U!="number")throw new G.ERR_INVALID_ARG_TYPE(H,"number",U)}function se(U,H,q){throw Math.floor(U)!==U?(oe(U,q),new G.ERR_OUT_OF_RANGE("offset","an integer",U)):H<0?new G.ERR_BUFFER_OUT_OF_BOUNDS:new G.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${H}`,U)}let fe=/[^+/0-9A-Za-z-_]/g;function te(U){if(U=U.split("=")[0],U=U.trim().replace(fe,""),U.length<2)return"";for(;U.length%4!==0;)U=U+"=";return U}function he(U,H){H=H||1/0;let q,me=U.length,Ce=null,ue=[];for(let Le=0;Le55295&&q<57344){if(!Ce){if(q>56319){(H-=3)>-1&&ue.push(239,191,189);continue}else if(Le+1===me){(H-=3)>-1&&ue.push(239,191,189);continue}Ce=q;continue}if(q<56320){(H-=3)>-1&&ue.push(239,191,189),Ce=q;continue}q=(Ce-55296<<10|q-56320)+65536}else Ce&&(H-=3)>-1&&ue.push(239,191,189);if(Ce=null,q<128){if((H-=1)<0)break;ue.push(q)}else if(q<2048){if((H-=2)<0)break;ue.push(q>>6|192,q&63|128)}else if(q<65536){if((H-=3)<0)break;ue.push(q>>12|224,q>>6&63|128,q&63|128)}else if(q<1114112){if((H-=4)<0)break;ue.push(q>>18|240,q>>12&63|128,q>>6&63|128,q&63|128)}else throw new Error("Invalid code point")}return ue}function pe(U){let H=[];for(let q=0;q>8,Ce=q%256,ue.push(Ce),ue.push(me);return ue}function Me(U){return e.toByteArray(te(U))}function Se(U,H,q,me){let Ce;for(Ce=0;Ce=H.length||Ce>=U.length);++Ce)H[Ce+q]=U[Ce];return Ce}function ye(U,H){return U instanceof H||U!=null&&U.constructor!=null&&U.constructor.name!=null&&U.constructor.name===H.name}function ve(U){return U!==U}let be=function(){let U="0123456789abcdef",H=new Array(256);for(let q=0;q<16;++q){let me=q*16;for(let Ce=0;Ce<16;++Ce)H[me+Ce]=U[q]+U[Ce]}return H}();function Pe(U){return typeof BigInt>"u"?Ne:U}function Ne(){throw new Error("BigInt not supported")}return Od}var _m,L4,ly,B4,Od,z4,Su,c2,xJ,EJ,Bi=Fi(()=>{Vt(),qt(),Kt(),_m={},L4=!1,ly={},B4=!1,Od={},z4=!1,Su=fSe(),Su.Buffer,Su.SlowBuffer,Su.INSPECT_MAX_BYTES,Su.kMaxLength,c2=Su.Buffer,xJ=Su.INSPECT_MAX_BYTES,EJ=Su.kMaxLength}),qt=Fi(()=>{Bi()}),hSe=Zt(e=>{Vt(),qt(),Kt(),Object.defineProperty(e,"__esModule",{value:!0});var t=class{constructor(n){this.aliasToTopic={},this.max=n}put(n,r){return r===0||r>this.max?!1:(this.aliasToTopic[r]=n,this.length=Object.keys(this.aliasToTopic).length,!0)}getTopicByAlias(n){return this.aliasToTopic[n]}clear(){this.aliasToTopic={}}};e.default=t}),gi=Zt((e,t)=>{Vt(),qt(),Kt(),t.exports={ArrayIsArray(n){return Array.isArray(n)},ArrayPrototypeIncludes(n,r){return n.includes(r)},ArrayPrototypeIndexOf(n,r){return n.indexOf(r)},ArrayPrototypeJoin(n,r){return n.join(r)},ArrayPrototypeMap(n,r){return n.map(r)},ArrayPrototypePop(n,r){return n.pop(r)},ArrayPrototypePush(n,r){return n.push(r)},ArrayPrototypeSlice(n,r,o){return n.slice(r,o)},Error,FunctionPrototypeCall(n,r,...o){return n.call(r,...o)},FunctionPrototypeSymbolHasInstance(n,r){return Function.prototype[Symbol.hasInstance].call(n,r)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(n,r){return Object.defineProperties(n,r)},ObjectDefineProperty(n,r,o){return Object.defineProperty(n,r,o)},ObjectGetOwnPropertyDescriptor(n,r){return Object.getOwnPropertyDescriptor(n,r)},ObjectKeys(n){return Object.keys(n)},ObjectSetPrototypeOf(n,r){return Object.setPrototypeOf(n,r)},Promise,PromisePrototypeCatch(n,r){return n.catch(r)},PromisePrototypeThen(n,r,o){return n.then(r,o)},PromiseReject(n){return Promise.reject(n)},ReflectApply:Reflect.apply,RegExpPrototypeTest(n,r){return n.test(r)},SafeSet:Set,String,StringPrototypeSlice(n,r,o){return n.slice(r,o)},StringPrototypeToLowerCase(n){return n.toLowerCase()},StringPrototypeToUpperCase(n){return n.toUpperCase()},StringPrototypeTrim(n){return n.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,TypedArrayPrototypeSet(n,r,o){return n.set(r,o)},Uint8Array}}),Xu=Zt((e,t)=>{Vt(),qt(),Kt();var n=(Bi(),Qr(Li)),r=Object.getPrototypeOf(async function(){}).constructor,o=globalThis.Blob||n.Blob,i=typeof o<"u"?function(s){return s instanceof o}:function(s){return!1},a=class extends Error{constructor(s){if(!Array.isArray(s))throw new TypeError(`Expected input to be an Array, got ${typeof s}`);let l="";for(let c=0;c{s=c,l=u}),resolve:s,reject:l}},promisify(s){return new Promise((l,c)=>{s((u,...f)=>u?c(u):l(...f))})},debuglog(){return function(){}},format(s,...l){return s.replace(/%([sdifj])/g,function(...[c,u]){let f=l.shift();return u==="f"?f.toFixed(6):u==="j"?JSON.stringify(f):u==="s"&&typeof f=="object"?`${f.constructor!==Object?f.constructor.name:""} {}`.trim():f.toString()})},inspect(s){switch(typeof s){case"string":if(s.includes("'"))if(s.includes('"')){if(!s.includes("`")&&!s.includes("${"))return`\`${s}\``}else return`"${s}"`;return`'${s}'`;case"number":return isNaN(s)?"NaN":Object.is(s,-0)?String(s):s;case"bigint":return`${String(s)}n`;case"boolean":case"undefined":return String(s);case"object":return"{}"}},types:{isAsyncFunction(s){return s instanceof r},isArrayBufferView(s){return ArrayBuffer.isView(s)}},isBlob:i},t.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")}),b5=Zt((e,t)=>{Vt(),qt(),Kt();var{AbortController:n,AbortSignal:r}=typeof self<"u"?self:typeof window<"u"?window:void 0;t.exports=n,t.exports.AbortSignal=r,t.exports.default=n}),Ga=Zt((e,t)=>{Vt(),qt(),Kt();var{format:n,inspect:r,AggregateError:o}=Xu(),i=globalThis.AggregateError||o,a=Symbol("kIsNodeError"),s=["string","function","number","object","Function","Object","boolean","bigint","symbol"],l=/^([A-Z][a-z0-9]*)+$/,c="__node_internal_",u={};function f(y,S){if(!y)throw new u.ERR_INTERNAL_ASSERTION(S)}function h(y){let S="",w=y.length,E=y[0]==="-"?1:0;for(;w>=E+4;w-=3)S=`_${y.slice(w-3,w)}${S}`;return`${y.slice(0,w)}${S}`}function p(y,S,w){if(typeof S=="function")return f(S.length<=w.length,`Code: ${y}; The provided arguments length (${w.length}) does not match the required ones (${S.length}).`),S(...w);let E=(S.match(/%[dfijoOs]/g)||[]).length;return f(E===w.length,`Code: ${y}; The provided arguments length (${w.length}) does not match the required ones (${E}).`),w.length===0?S:n(S,...w)}function m(y,S,w){w||(w=Error);class E extends w{constructor(...x){super(p(y,S,x))}toString(){return`${this.name} [${y}]: ${this.message}`}}Object.defineProperties(E.prototype,{name:{value:w.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${y}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),E.prototype.code=y,E.prototype[a]=!0,u[y]=E}function g(y){let S=c+y.name;return Object.defineProperty(y,"name",{value:S}),y}function v(y,S){if(y&&S&&y!==S){if(Array.isArray(S.errors))return S.errors.push(y),S;let w=new i([S,y],S.message);return w.code=S.code,w}return y||S}var b=class extends Error{constructor(y="The operation was aborted",S=void 0){if(S!==void 0&&typeof S!="object")throw new u.ERR_INVALID_ARG_TYPE("options","Object",S);super(y,S),this.code="ABORT_ERR",this.name="AbortError"}};m("ERR_ASSERTION","%s",Error),m("ERR_INVALID_ARG_TYPE",(y,S,w)=>{f(typeof y=="string","'name' must be a string"),Array.isArray(S)||(S=[S]);let E="The ";y.endsWith(" argument")?E+=`${y} `:E+=`"${y}" ${y.includes(".")?"property":"argument"} `,E+="must be ";let C=[],x=[],_=[];for(let O of S)f(typeof O=="string","All expected entries have to be of type string"),s.includes(O)?C.push(O.toLowerCase()):l.test(O)?x.push(O):(f(O!=="object",'The value "object" should be written as "Object"'),_.push(O));if(x.length>0){let O=C.indexOf("object");O!==-1&&(C.splice(C,O,1),x.push("Object"))}if(C.length>0){switch(C.length){case 1:E+=`of type ${C[0]}`;break;case 2:E+=`one of type ${C[0]} or ${C[1]}`;break;default:{let O=C.pop();E+=`one of type ${C.join(", ")}, or ${O}`}}(x.length>0||_.length>0)&&(E+=" or ")}if(x.length>0){switch(x.length){case 1:E+=`an instance of ${x[0]}`;break;case 2:E+=`an instance of ${x[0]} or ${x[1]}`;break;default:{let O=x.pop();E+=`an instance of ${x.join(", ")}, or ${O}`}}_.length>0&&(E+=" or ")}switch(_.length){case 0:break;case 1:_[0].toLowerCase()!==_[0]&&(E+="an "),E+=`${_[0]}`;break;case 2:E+=`one of ${_[0]} or ${_[1]}`;break;default:{let O=_.pop();E+=`one of ${_.join(", ")}, or ${O}`}}if(w==null)E+=`. Received ${w}`;else if(typeof w=="function"&&w.name)E+=`. Received function ${w.name}`;else if(typeof w=="object"){var P;if((P=w.constructor)!==null&&P!==void 0&&P.name)E+=`. Received an instance of ${w.constructor.name}`;else{let O=r(w,{depth:-1});E+=`. Received ${O}`}}else{let O=r(w,{colors:!1});O.length>25&&(O=`${O.slice(0,25)}...`),E+=`. Received type ${typeof w} (${O})`}return E},TypeError),m("ERR_INVALID_ARG_VALUE",(y,S,w="is invalid")=>{let E=r(S);return E.length>128&&(E=E.slice(0,128)+"..."),`The ${y.includes(".")?"property":"argument"} '${y}' ${w}. Received ${E}`},TypeError),m("ERR_INVALID_RETURN_VALUE",(y,S,w)=>{var E;let C=w!=null&&(E=w.constructor)!==null&&E!==void 0&&E.name?`instance of ${w.constructor.name}`:`type ${typeof w}`;return`Expected ${y} to be returned from the "${S}" function but got ${C}.`},TypeError),m("ERR_MISSING_ARGS",(...y)=>{f(y.length>0,"At least one arg needs to be specified");let S,w=y.length;switch(y=(Array.isArray(y)?y:[y]).map(E=>`"${E}"`).join(" or "),w){case 1:S+=`The ${y[0]} argument`;break;case 2:S+=`The ${y[0]} and ${y[1]} arguments`;break;default:{let E=y.pop();S+=`The ${y.join(", ")}, and ${E} arguments`}break}return`${S} must be specified`},TypeError),m("ERR_OUT_OF_RANGE",(y,S,w)=>{f(S,'Missing "range" argument');let E;return Number.isInteger(w)&&Math.abs(w)>2**32?E=h(String(w)):typeof w=="bigint"?(E=String(w),(w>2n**32n||w<-(2n**32n))&&(E=h(E)),E+="n"):E=r(w),`The value of "${y}" is out of range. It must be ${S}. Received ${E}`},RangeError),m("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),m("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),m("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),m("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),m("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),m("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),m("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),m("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),m("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),m("ERR_STREAM_WRITE_AFTER_END","write after end",Error),m("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),t.exports={AbortError:b,aggregateTwoErrors:g(v),hideStackFrames:g,codes:u}}),I_=Zt((e,t)=>{Vt(),qt(),Kt();var{ArrayIsArray:n,ArrayPrototypeIncludes:r,ArrayPrototypeJoin:o,ArrayPrototypeMap:i,NumberIsInteger:a,NumberIsNaN:s,NumberMAX_SAFE_INTEGER:l,NumberMIN_SAFE_INTEGER:c,NumberParseInt:u,ObjectPrototypeHasOwnProperty:f,RegExpPrototypeExec:h,String:p,StringPrototypeToUpperCase:m,StringPrototypeTrim:g}=gi(),{hideStackFrames:v,codes:{ERR_SOCKET_BAD_PORT:b,ERR_INVALID_ARG_TYPE:y,ERR_INVALID_ARG_VALUE:S,ERR_OUT_OF_RANGE:w,ERR_UNKNOWN_SIGNAL:E}}=Ga(),{normalizeEncoding:C}=Xu(),{isAsyncFunction:x,isArrayBufferView:_}=Xu().types,P={};function O(Se){return Se===(Se|0)}function I(Se){return Se===Se>>>0}var M=/^[0-7]+$/,T="must be a 32-bit unsigned integer or an octal string";function D(Se,ye,ve){if(typeof Se>"u"&&(Se=ve),typeof Se=="string"){if(h(M,Se)===null)throw new S(ye,Se,T);Se=u(Se,8)}return k(Se,ye),Se}var A=v((Se,ye,ve=c,be=l)=>{if(typeof Se!="number")throw new y(ye,"number",Se);if(!a(Se))throw new w(ye,"an integer",Se);if(Sebe)throw new w(ye,`>= ${ve} && <= ${be}`,Se)}),j=v((Se,ye,ve=-2147483648,be=2147483647)=>{if(typeof Se!="number")throw new y(ye,"number",Se);if(!a(Se))throw new w(ye,"an integer",Se);if(Sebe)throw new w(ye,`>= ${ve} && <= ${be}`,Se)}),k=v((Se,ye,ve=!1)=>{if(typeof Se!="number")throw new y(ye,"number",Se);if(!a(Se))throw new w(ye,"an integer",Se);let be=ve?1:0,Pe=4294967295;if(SePe)throw new w(ye,`>= ${be} && <= ${Pe}`,Se)});function F(Se,ye){if(typeof Se!="string")throw new y(ye,"string",Se)}function V(Se,ye,ve=void 0,be){if(typeof Se!="number")throw new y(ye,"number",Se);if(ve!=null&&Sebe||(ve!=null||be!=null)&&s(Se))throw new w(ye,`${ve!=null?`>= ${ve}`:""}${ve!=null&&be!=null?" && ":""}${be!=null?`<= ${be}`:""}`,Se)}var W=v((Se,ye,ve)=>{if(!r(ve,Se)){let be="must be one of: "+o(i(ve,Pe=>typeof Pe=="string"?`'${Pe}'`:p(Pe)),", ");throw new S(ye,Se,be)}});function K(Se,ye){if(typeof Se!="boolean")throw new y(ye,"boolean",Se)}function L(Se,ye,ve){return Se==null||!f(Se,ye)?ve:Se[ye]}var Q=v((Se,ye,ve=null)=>{let be=L(ve,"allowArray",!1),Pe=L(ve,"allowFunction",!1);if(!L(ve,"nullable",!1)&&Se===null||!be&&n(Se)||typeof Se!="object"&&(!Pe||typeof Se!="function"))throw new y(ye,"Object",Se)}),ee=v((Se,ye)=>{if(Se!=null&&typeof Se!="object"&&typeof Se!="function")throw new y(ye,"a dictionary",Se)}),re=v((Se,ye,ve=0)=>{if(!n(Se))throw new y(ye,"Array",Se);if(Se.length{if(!_(Se))throw new y(ye,["Buffer","TypedArray","DataView"],Se)});function le(Se,ye){let ve=C(ye),be=Se.length;if(ve==="hex"&&be%2!==0)throw new S("encoding",ye,`is invalid for data of length ${be}`)}function ce(Se,ye="Port",ve=!0){if(typeof Se!="number"&&typeof Se!="string"||typeof Se=="string"&&g(Se).length===0||+Se!==+Se>>>0||Se>65535||Se===0&&!ve)throw new b(ye,Se,ve);return Se|0}var oe=v((Se,ye)=>{if(Se!==void 0&&(Se===null||typeof Se!="object"||!("aborted"in Se)))throw new y(ye,"AbortSignal",Se)}),se=v((Se,ye)=>{if(typeof Se!="function")throw new y(ye,"Function",Se)}),fe=v((Se,ye)=>{if(typeof Se!="function"||x(Se))throw new y(ye,"Function",Se)}),te=v((Se,ye)=>{if(Se!==void 0)throw new y(ye,"undefined",Se)});function he(Se,ye,ve){if(!r(ve,Se))throw new y(ye,`('${o(ve,"|")}')`,Se)}var pe=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function Oe(Se,ye){if(typeof Se>"u"||!h(pe,Se))throw new S(ye,Se,'must be an array or string of format "; rel=preload; as=style"')}function Me(Se){if(typeof Se=="string")return Oe(Se,"hints"),Se;if(n(Se)){let ye=Se.length,ve="";if(ye===0)return ve;for(let be=0;be; rel=preload; as=style"')}t.exports={isInt32:O,isUint32:I,parseFileMode:D,validateArray:re,validateStringArray:ie,validateBooleanArray:G,validateBoolean:K,validateBuffer:ne,validateDictionary:ee,validateEncoding:le,validateFunction:se,validateInt32:j,validateInteger:A,validateNumber:V,validateObject:Q,validateOneOf:W,validatePlainFunction:fe,validatePort:ce,validateSignalName:X,validateString:F,validateUint32:k,validateUndefined:te,validateUnion:he,validateAbortSignal:oe,validateLinkHeaderValue:Me}}),Ip=Zt((e,t)=>{Vt(),qt(),Kt();var n=t.exports={},r,o;function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?r=setTimeout:r=i}catch{r=i}try{typeof clearTimeout=="function"?o=clearTimeout:o=a}catch{o=a}})();function s(b){if(r===setTimeout)return setTimeout(b,0);if((r===i||!r)&&setTimeout)return r=setTimeout,setTimeout(b,0);try{return r(b,0)}catch{try{return r.call(null,b,0)}catch{return r.call(this,b,0)}}}function l(b){if(o===clearTimeout)return clearTimeout(b);if((o===a||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(b);try{return o(b)}catch{try{return o.call(null,b)}catch{return o.call(this,b)}}}var c=[],u=!1,f,h=-1;function p(){!u||!f||(u=!1,f.length?c=f.concat(c):h=-1,c.length&&m())}function m(){if(!u){var b=s(p);u=!0;for(var y=c.length;y;){for(f=c,c=[];++h1)for(var S=1;S{Vt(),qt(),Kt();var{Symbol:n,SymbolAsyncIterator:r,SymbolIterator:o,SymbolFor:i}=gi(),a=n("kDestroyed"),s=n("kIsErrored"),l=n("kIsReadable"),c=n("kIsDisturbed"),u=i("nodejs.webstream.isClosedPromise"),f=i("nodejs.webstream.controllerErrorFunction");function h(L,Q=!1){var ee;return!!(L&&typeof L.pipe=="function"&&typeof L.on=="function"&&(!Q||typeof L.pause=="function"&&typeof L.resume=="function")&&(!L._writableState||((ee=L._readableState)===null||ee===void 0?void 0:ee.readable)!==!1)&&(!L._writableState||L._readableState))}function p(L){var Q;return!!(L&&typeof L.write=="function"&&typeof L.on=="function"&&(!L._readableState||((Q=L._writableState)===null||Q===void 0?void 0:Q.writable)!==!1))}function m(L){return!!(L&&typeof L.pipe=="function"&&L._readableState&&typeof L.on=="function"&&typeof L.write=="function")}function g(L){return L&&(L._readableState||L._writableState||typeof L.write=="function"&&typeof L.on=="function"||typeof L.pipe=="function"&&typeof L.on=="function")}function v(L){return!!(L&&!g(L)&&typeof L.pipeThrough=="function"&&typeof L.getReader=="function"&&typeof L.cancel=="function")}function b(L){return!!(L&&!g(L)&&typeof L.getWriter=="function"&&typeof L.abort=="function")}function y(L){return!!(L&&!g(L)&&typeof L.readable=="object"&&typeof L.writable=="object")}function S(L){return v(L)||b(L)||y(L)}function w(L,Q){return L==null?!1:Q===!0?typeof L[r]=="function":Q===!1?typeof L[o]=="function":typeof L[r]=="function"||typeof L[o]=="function"}function E(L){if(!g(L))return null;let Q=L._writableState,ee=L._readableState,re=Q||ee;return!!(L.destroyed||L[a]||re!=null&&re.destroyed)}function C(L){if(!p(L))return null;if(L.writableEnded===!0)return!0;let Q=L._writableState;return Q!=null&&Q.errored?!1:typeof(Q==null?void 0:Q.ended)!="boolean"?null:Q.ended}function x(L,Q){if(!p(L))return null;if(L.writableFinished===!0)return!0;let ee=L._writableState;return ee!=null&&ee.errored?!1:typeof(ee==null?void 0:ee.finished)!="boolean"?null:!!(ee.finished||Q===!1&&ee.ended===!0&&ee.length===0)}function _(L){if(!h(L))return null;if(L.readableEnded===!0)return!0;let Q=L._readableState;return!Q||Q.errored?!1:typeof(Q==null?void 0:Q.ended)!="boolean"?null:Q.ended}function P(L,Q){if(!h(L))return null;let ee=L._readableState;return ee!=null&&ee.errored?!1:typeof(ee==null?void 0:ee.endEmitted)!="boolean"?null:!!(ee.endEmitted||Q===!1&&ee.ended===!0&&ee.length===0)}function O(L){return L&&L[l]!=null?L[l]:typeof(L==null?void 0:L.readable)!="boolean"?null:E(L)?!1:h(L)&&L.readable&&!P(L)}function I(L){return typeof(L==null?void 0:L.writable)!="boolean"?null:E(L)?!1:p(L)&&L.writable&&!C(L)}function M(L,Q){return g(L)?E(L)?!0:!((Q==null?void 0:Q.readable)!==!1&&O(L)||(Q==null?void 0:Q.writable)!==!1&&I(L)):null}function T(L){var Q,ee;return g(L)?L.writableErrored?L.writableErrored:(Q=(ee=L._writableState)===null||ee===void 0?void 0:ee.errored)!==null&&Q!==void 0?Q:null:null}function D(L){var Q,ee;return g(L)?L.readableErrored?L.readableErrored:(Q=(ee=L._readableState)===null||ee===void 0?void 0:ee.errored)!==null&&Q!==void 0?Q:null:null}function A(L){if(!g(L))return null;if(typeof L.closed=="boolean")return L.closed;let Q=L._writableState,ee=L._readableState;return typeof(Q==null?void 0:Q.closed)=="boolean"||typeof(ee==null?void 0:ee.closed)=="boolean"?(Q==null?void 0:Q.closed)||(ee==null?void 0:ee.closed):typeof L._closed=="boolean"&&j(L)?L._closed:null}function j(L){return typeof L._closed=="boolean"&&typeof L._defaultKeepAlive=="boolean"&&typeof L._removedConnection=="boolean"&&typeof L._removedContLen=="boolean"}function k(L){return typeof L._sent100=="boolean"&&j(L)}function F(L){var Q;return typeof L._consuming=="boolean"&&typeof L._dumped=="boolean"&&((Q=L.req)===null||Q===void 0?void 0:Q.upgradeOrConnect)===void 0}function V(L){if(!g(L))return null;let Q=L._writableState,ee=L._readableState,re=Q||ee;return!re&&k(L)||!!(re&&re.autoDestroy&&re.emitClose&&re.closed===!1)}function W(L){var Q;return!!(L&&((Q=L[c])!==null&&Q!==void 0?Q:L.readableDidRead||L.readableAborted))}function K(L){var Q,ee,re,ie,G,X,ne,le,ce,oe;return!!(L&&((Q=(ee=(re=(ie=(G=(X=L[s])!==null&&X!==void 0?X:L.readableErrored)!==null&&G!==void 0?G:L.writableErrored)!==null&&ie!==void 0?ie:(ne=L._readableState)===null||ne===void 0?void 0:ne.errorEmitted)!==null&&re!==void 0?re:(le=L._writableState)===null||le===void 0?void 0:le.errorEmitted)!==null&&ee!==void 0?ee:(ce=L._readableState)===null||ce===void 0?void 0:ce.errored)!==null&&Q!==void 0?Q:!((oe=L._writableState)===null||oe===void 0)&&oe.errored))}t.exports={kDestroyed:a,isDisturbed:W,kIsDisturbed:c,isErrored:K,kIsErrored:s,isReadable:O,kIsReadable:l,kIsClosedPromise:u,kControllerErrorFunction:f,isClosed:A,isDestroyed:E,isDuplexNodeStream:m,isFinished:M,isIterable:w,isReadableNodeStream:h,isReadableStream:v,isReadableEnded:_,isReadableFinished:P,isReadableErrored:D,isNodeStream:g,isWebStream:S,isWritable:I,isWritableNodeStream:p,isWritableStream:b,isWritableEnded:C,isWritableFinished:x,isWritableErrored:T,isServerRequest:F,isServerResponse:k,willEmitClose:V,isTransformStream:y}}),Nf=Zt((e,t)=>{Vt(),qt(),Kt();var n=Ip(),{AbortError:r,codes:o}=Ga(),{ERR_INVALID_ARG_TYPE:i,ERR_STREAM_PREMATURE_CLOSE:a}=o,{kEmptyObject:s,once:l}=Xu(),{validateAbortSignal:c,validateFunction:u,validateObject:f,validateBoolean:h}=I_(),{Promise:p,PromisePrototypeThen:m}=gi(),{isClosed:g,isReadable:v,isReadableNodeStream:b,isReadableStream:y,isReadableFinished:S,isReadableErrored:w,isWritable:E,isWritableNodeStream:C,isWritableStream:x,isWritableFinished:_,isWritableErrored:P,isNodeStream:O,willEmitClose:I,kIsClosedPromise:M}=ld();function T(F){return F.setHeader&&typeof F.abort=="function"}var D=()=>{};function A(F,V,W){var K,L;if(arguments.length===2?(W=V,V=s):V==null?V=s:f(V,"options"),u(W,"callback"),c(V.signal,"options.signal"),W=l(W),y(F)||x(F))return j(F,V,W);if(!O(F))throw new i("stream",["ReadableStream","WritableStream","Stream"],F);let Q=(K=V.readable)!==null&&K!==void 0?K:b(F),ee=(L=V.writable)!==null&&L!==void 0?L:C(F),re=F._writableState,ie=F._readableState,G=()=>{F.writable||le()},X=I(F)&&b(F)===Q&&C(F)===ee,ne=_(F,!1),le=()=>{ne=!0,F.destroyed&&(X=!1),!(X&&(!F.readable||Q))&&(!Q||ce)&&W.call(F)},ce=S(F,!1),oe=()=>{ce=!0,F.destroyed&&(X=!1),!(X&&(!F.writable||ee))&&(!ee||ne)&&W.call(F)},se=Me=>{W.call(F,Me)},fe=g(F),te=()=>{fe=!0;let Me=P(F)||w(F);if(Me&&typeof Me!="boolean")return W.call(F,Me);if(Q&&!ce&&b(F,!0)&&!S(F,!1))return W.call(F,new a);if(ee&&!ne&&!_(F,!1))return W.call(F,new a);W.call(F)},he=()=>{fe=!0;let Me=P(F)||w(F);if(Me&&typeof Me!="boolean")return W.call(F,Me);W.call(F)},pe=()=>{F.req.on("finish",le)};T(F)?(F.on("complete",le),X||F.on("abort",te),F.req?pe():F.on("request",pe)):ee&&!re&&(F.on("end",G),F.on("close",G)),!X&&typeof F.aborted=="boolean"&&F.on("aborted",te),F.on("end",oe),F.on("finish",le),V.error!==!1&&F.on("error",se),F.on("close",te),fe?n.nextTick(te):re!=null&&re.errorEmitted||ie!=null&&ie.errorEmitted?X||n.nextTick(he):(!Q&&(!X||v(F))&&(ne||E(F)===!1)||!ee&&(!X||E(F))&&(ce||v(F)===!1)||ie&&F.req&&F.aborted)&&n.nextTick(he);let Oe=()=>{W=D,F.removeListener("aborted",te),F.removeListener("complete",le),F.removeListener("abort",te),F.removeListener("request",pe),F.req&&F.req.removeListener("finish",le),F.removeListener("end",G),F.removeListener("close",G),F.removeListener("finish",le),F.removeListener("end",oe),F.removeListener("error",se),F.removeListener("close",te)};if(V.signal&&!fe){let Me=()=>{let Se=W;Oe(),Se.call(F,new r(void 0,{cause:V.signal.reason}))};if(V.signal.aborted)n.nextTick(Me);else{let Se=W;W=l((...ye)=>{V.signal.removeEventListener("abort",Me),Se.apply(F,ye)}),V.signal.addEventListener("abort",Me)}}return Oe}function j(F,V,W){let K=!1,L=D;if(V.signal)if(L=()=>{K=!0,W.call(F,new r(void 0,{cause:V.signal.reason}))},V.signal.aborted)n.nextTick(L);else{let ee=W;W=l((...re)=>{V.signal.removeEventListener("abort",L),ee.apply(F,re)}),V.signal.addEventListener("abort",L)}let Q=(...ee)=>{K||n.nextTick(()=>W.apply(F,ee))};return m(F[M].promise,Q,Q),D}function k(F,V){var W;let K=!1;return V===null&&(V=s),(W=V)!==null&&W!==void 0&&W.cleanup&&(h(V.cleanup,"cleanup"),K=V.cleanup),new p((L,Q)=>{let ee=A(F,V,re=>{K&&ee(),re?Q(re):L()})})}t.exports=A,t.exports.finished=k}),yv=Zt((e,t)=>{Vt(),qt(),Kt();var n=Ip(),{aggregateTwoErrors:r,codes:{ERR_MULTIPLE_CALLBACK:o},AbortError:i}=Ga(),{Symbol:a}=gi(),{kDestroyed:s,isDestroyed:l,isFinished:c,isServerRequest:u}=ld(),f=a("kDestroy"),h=a("kConstruct");function p(M,T,D){M&&(M.stack,T&&!T.errored&&(T.errored=M),D&&!D.errored&&(D.errored=M))}function m(M,T){let D=this._readableState,A=this._writableState,j=A||D;return A!=null&&A.destroyed||D!=null&&D.destroyed?(typeof T=="function"&&T(),this):(p(M,A,D),A&&(A.destroyed=!0),D&&(D.destroyed=!0),j.constructed?g(this,M,T):this.once(f,function(k){g(this,r(k,M),T)}),this)}function g(M,T,D){let A=!1;function j(k){if(A)return;A=!0;let F=M._readableState,V=M._writableState;p(k,V,F),V&&(V.closed=!0),F&&(F.closed=!0),typeof D=="function"&&D(k),k?n.nextTick(v,M,k):n.nextTick(b,M)}try{M._destroy(T||null,j)}catch(k){j(k)}}function v(M,T){y(M,T),b(M)}function b(M){let T=M._readableState,D=M._writableState;D&&(D.closeEmitted=!0),T&&(T.closeEmitted=!0),(D!=null&&D.emitClose||T!=null&&T.emitClose)&&M.emit("close")}function y(M,T){let D=M._readableState,A=M._writableState;A!=null&&A.errorEmitted||D!=null&&D.errorEmitted||(A&&(A.errorEmitted=!0),D&&(D.errorEmitted=!0),M.emit("error",T))}function S(){let M=this._readableState,T=this._writableState;M&&(M.constructed=!0,M.closed=!1,M.closeEmitted=!1,M.destroyed=!1,M.errored=null,M.errorEmitted=!1,M.reading=!1,M.ended=M.readable===!1,M.endEmitted=M.readable===!1),T&&(T.constructed=!0,T.destroyed=!1,T.closed=!1,T.closeEmitted=!1,T.errored=null,T.errorEmitted=!1,T.finalCalled=!1,T.prefinished=!1,T.ended=T.writable===!1,T.ending=T.writable===!1,T.finished=T.writable===!1)}function w(M,T,D){let A=M._readableState,j=M._writableState;if(j!=null&&j.destroyed||A!=null&&A.destroyed)return this;A!=null&&A.autoDestroy||j!=null&&j.autoDestroy?M.destroy(T):T&&(T.stack,j&&!j.errored&&(j.errored=T),A&&!A.errored&&(A.errored=T),D?n.nextTick(y,M,T):y(M,T))}function E(M,T){if(typeof M._construct!="function")return;let D=M._readableState,A=M._writableState;D&&(D.constructed=!1),A&&(A.constructed=!1),M.once(h,T),!(M.listenerCount(h)>1)&&n.nextTick(C,M)}function C(M){let T=!1;function D(A){if(T){w(M,A??new o);return}T=!0;let j=M._readableState,k=M._writableState,F=k||j;j&&(j.constructed=!0),k&&(k.constructed=!0),F.destroyed?M.emit(f,A):A?w(M,A,!0):n.nextTick(x,M)}try{M._construct(A=>{n.nextTick(D,A)})}catch(A){n.nextTick(D,A)}}function x(M){M.emit(h)}function _(M){return(M==null?void 0:M.setHeader)&&typeof M.abort=="function"}function P(M){M.emit("close")}function O(M,T){M.emit("error",T),n.nextTick(P,M)}function I(M,T){!M||l(M)||(!T&&!c(M)&&(T=new i),u(M)?(M.socket=null,M.destroy(T)):_(M)?M.abort():_(M.req)?M.req.abort():typeof M.destroy=="function"?M.destroy(T):typeof M.close=="function"?M.close():T?n.nextTick(O,M,T):n.nextTick(P,M),M.destroyed||(M[s]=!0))}t.exports={construct:E,destroyer:I,destroy:m,undestroy:S,errorOrDestroy:w}});function Vr(){Vr.init.call(this)}function Fw(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function _J(e){return e._maxListeners===void 0?Vr.defaultMaxListeners:e._maxListeners}function yB(e,t,n,r){var o,i,a,s;if(Fw(n),(i=e._events)===void 0?(i=e._events=Object.create(null),e._eventsCount=0):(i.newListener!==void 0&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),a=i[t]),a===void 0)a=i[t]=n,++e._eventsCount;else if(typeof a=="function"?a=i[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(o=_J(e))>0&&a.length>o&&!a.warned){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,s=l,console&&console.warn&&console.warn(s)}return e}function pSe(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function bB(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=pSe.bind(r);return o.listener=n,r.wrapFn=o,o}function SB(e,t,n){var r=e._events;if(r===void 0)return[];var o=r[t];return o===void 0?[]:typeof o=="function"?n?[o.listener||o]:[o]:n?function(i){for(var a=new Array(i.length),s=0;s{Vt(),qt(),Kt(),Xf=typeof Reflect=="object"?Reflect:null,QM=Xf&&typeof Xf.apply=="function"?Xf.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)},xB=Xf&&typeof Xf.ownKeys=="function"?Xf.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)},JM=Number.isNaN||function(e){return e!=e},wB=Vr,Vr.EventEmitter=Vr,Vr.prototype._events=void 0,Vr.prototype._eventsCount=0,Vr.prototype._maxListeners=void 0,ZM=10,Object.defineProperty(Vr,"defaultMaxListeners",{enumerable:!0,get:function(){return ZM},set:function(e){if(typeof e!="number"||e<0||JM(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");ZM=e}}),Vr.init=function(){this._events!==void 0&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},Vr.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||JM(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},Vr.prototype.getMaxListeners=function(){return _J(this)},Vr.prototype.emit=function(e){for(var t=[],n=1;n0&&(i=t[0]),i instanceof Error)throw i;var a=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw a.context=i,a}var s=o[e];if(s===void 0)return!1;if(typeof s=="function")QM(s,this,t);else{var l=s.length,c=$J(s,l);for(n=0;n=0;i--)if(n[i]===t||n[i].listener===t){a=n[i].listener,o=i;break}if(o<0)return this;o===0?n.shift():function(s,l){for(;l+1=0;r--)this.removeListener(e,t[r]);return this},Vr.prototype.listeners=function(e){return SB(this,e,!0)},Vr.prototype.rawListeners=function(e){return SB(this,e,!1)},Vr.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):CB.call(e,t)},Vr.prototype.listenerCount=CB,Vr.prototype.eventNames=function(){return this._eventsCount>0?xB(this._events):[]},hs=wB,hs.EventEmitter,hs.defaultMaxListeners,hs.init,hs.listenerCount,hs.EventEmitter,hs.defaultMaxListeners,hs.init,hs.listenerCount}),kp={};Rp(kp,{EventEmitter:()=>PJ,default:()=>hs,defaultMaxListeners:()=>OJ,init:()=>MJ,listenerCount:()=>TJ,on:()=>RJ,once:()=>IJ});var PJ,OJ,MJ,TJ,RJ,IJ,bv=Fi(()=>{Vt(),qt(),Kt(),EB(),EB(),hs.once=function(e,t){return new Promise((n,r)=>{function o(...a){i!==void 0&&e.removeListener("error",i),n(a)}let i;t!=="error"&&(i=a=>{e.removeListener(name,o),r(a)},e.once("error",i)),e.once(t,o)})},hs.on=function(e,t){let n=[],r=[],o=null,i=!1,a={async next(){let c=n.shift();if(c)return createIterResult(c,!1);if(o){let u=Promise.reject(o);return o=null,u}return i?createIterResult(void 0,!0):new Promise((u,f)=>r.push({resolve:u,reject:f}))},async return(){e.removeListener(t,s),e.removeListener("error",l),i=!0;for(let c of r)c.resolve(createIterResult(void 0,!0));return createIterResult(void 0,!0)},throw(c){o=c,e.removeListener(t,s),e.removeListener("error",l)},[Symbol.asyncIterator](){return this}};return e.on(t,s),e.on("error",l),a;function s(...c){let u=r.shift();u?u.resolve(createIterResult(c,!1)):n.push(c)}function l(c){i=!0;let u=r.shift();u?u.reject(c):o=c,a.return()}},{EventEmitter:PJ,defaultMaxListeners:OJ,init:MJ,listenerCount:TJ,on:RJ,once:IJ}=hs}),S5=Zt((e,t)=>{Vt(),qt(),Kt();var{ArrayIsArray:n,ObjectSetPrototypeOf:r}=gi(),{EventEmitter:o}=(bv(),Qr(kp));function i(s){o.call(this,s)}r(i.prototype,o.prototype),r(i,o),i.prototype.pipe=function(s,l){let c=this;function u(b){s.writable&&s.write(b)===!1&&c.pause&&c.pause()}c.on("data",u);function f(){c.readable&&c.resume&&c.resume()}s.on("drain",f),!s._isStdio&&(!l||l.end!==!1)&&(c.on("end",p),c.on("close",m));let h=!1;function p(){h||(h=!0,s.end())}function m(){h||(h=!0,typeof s.destroy=="function"&&s.destroy())}function g(b){v(),o.listenerCount(this,"error")===0&&this.emit("error",b)}a(c,"error",g),a(s,"error",g);function v(){c.removeListener("data",u),s.removeListener("drain",f),c.removeListener("end",p),c.removeListener("close",m),c.removeListener("error",g),s.removeListener("error",g),c.removeListener("end",v),c.removeListener("close",v),s.removeListener("close",v)}return c.on("end",v),c.on("close",v),s.on("close",v),s.emit("pipe",c),s};function a(s,l,c){if(typeof s.prependListener=="function")return s.prependListener(l,c);!s._events||!s._events[l]?s.on(l,c):n(s._events[l])?s._events[l].unshift(c):s._events[l]=[c,s._events[l]]}t.exports={Stream:i,prependListener:a}}),k_=Zt((e,t)=>{Vt(),qt(),Kt();var{AbortError:n,codes:r}=Ga(),{isNodeStream:o,isWebStream:i,kControllerErrorFunction:a}=ld(),s=Nf(),{ERR_INVALID_ARG_TYPE:l}=r,c=(u,f)=>{if(typeof u!="object"||!("aborted"in u))throw new l(f,"AbortSignal",u)};t.exports.addAbortSignal=function(u,f){if(c(u,"signal"),!o(f)&&!i(f))throw new l("stream",["ReadableStream","WritableStream","Stream"],f);return t.exports.addAbortSignalNoValidate(u,f)},t.exports.addAbortSignalNoValidate=function(u,f){if(typeof u!="object"||!("aborted"in u))return f;let h=o(f)?()=>{f.destroy(new n(void 0,{cause:u.reason}))}:()=>{f[a](new n(void 0,{cause:u.reason}))};return u.aborted?h():(u.addEventListener("abort",h),s(f,()=>u.removeEventListener("abort",h))),f}}),mSe=Zt((e,t)=>{Vt(),qt(),Kt();var{StringPrototypeSlice:n,SymbolIterator:r,TypedArrayPrototypeSet:o,Uint8Array:i}=gi(),{Buffer:a}=(Bi(),Qr(Li)),{inspect:s}=Xu();t.exports=class{constructor(){this.head=null,this.tail=null,this.length=0}push(l){let c={data:l,next:null};this.length>0?this.tail.next=c:this.head=c,this.tail=c,++this.length}unshift(l){let c={data:l,next:this.head};this.length===0&&(this.tail=c),this.head=c,++this.length}shift(){if(this.length===0)return;let l=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,l}clear(){this.head=this.tail=null,this.length=0}join(l){if(this.length===0)return"";let c=this.head,u=""+c.data;for(;(c=c.next)!==null;)u+=l+c.data;return u}concat(l){if(this.length===0)return a.alloc(0);let c=a.allocUnsafe(l>>>0),u=this.head,f=0;for(;u;)o(c,u.data,f),f+=u.data.length,u=u.next;return c}consume(l,c){let u=this.head.data;if(lh.length)c+=h,l-=h.length;else{l===h.length?(c+=h,++f,u.next?this.head=u.next:this.head=this.tail=null):(c+=n(h,0,l),this.head=u,u.data=n(h,l));break}++f}while((u=u.next)!==null);return this.length-=f,c}_getBuffer(l){let c=a.allocUnsafe(l),u=l,f=this.head,h=0;do{let p=f.data;if(l>p.length)o(c,p,u-l),l-=p.length;else{l===p.length?(o(c,p,u-l),++h,f.next?this.head=f.next:this.head=this.tail=null):(o(c,new i(p.buffer,p.byteOffset,l),u-l),this.head=f,f.data=p.slice(l));break}++h}while((f=f.next)!==null);return this.length-=h,c}[Symbol.for("nodejs.util.inspect.custom")](l,c){return s(this,{...c,depth:0,customInspect:!1})}}}),C5=Zt((e,t)=>{Vt(),qt(),Kt();var{MathFloor:n,NumberIsInteger:r}=gi(),{ERR_INVALID_ARG_VALUE:o}=Ga().codes;function i(l,c,u){return l.highWaterMark!=null?l.highWaterMark:c?l[u]:null}function a(l){return l?16:16*1024}function s(l,c,u,f){let h=i(c,f,u);if(h!=null){if(!r(h)||h<0){let p=f?`options.${u}`:"options.highWaterMark";throw new o(p,h)}return n(h)}return a(l.objectMode)}t.exports={getHighWaterMark:s,getDefaultHighWaterMark:a}});function _B(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return n===-1&&(n=t),[n,n===t?0:4-n%4]}function gSe(e,t,n){for(var r,o,i=[],a=t;a>18&63]+Il[o>>12&63]+Il[o>>6&63]+Il[63&o]);return i.join("")}function Nu(e){if(e>2147483647)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,Xt.prototype),t}function Xt(e,t,n){if(typeof e=="number"){if(typeof t=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return H4(e)}return kJ(e,t,n)}function kJ(e,t,n){if(typeof e=="string")return function(i,a){if(typeof a=="string"&&a!==""||(a="utf8"),!Xt.isEncoding(a))throw new TypeError("Unknown encoding: "+a);var s=0|AJ(i,a),l=Nu(s),c=l.write(i,a);return c!==s&&(l=l.slice(0,c)),l}(e,t);if(ArrayBuffer.isView(e))return eT(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Au(e,ArrayBuffer)||e&&Au(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Au(e,SharedArrayBuffer)||e&&Au(e.buffer,SharedArrayBuffer)))return vSe(e,t,n);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(r!=null&&r!==e)return Xt.from(r,t,n);var o=function(i){if(Xt.isBuffer(i)){var a=0|w5(i.length),s=Nu(a);return s.length===0||i.copy(s,0,0,a),s}if(i.length!==void 0)return typeof i.length!="number"||x5(i.length)?Nu(0):eT(i);if(i.type==="Buffer"&&Array.isArray(i.data))return eT(i.data)}(e);if(o)return o;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return Xt.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function NJ(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function H4(e){return NJ(e),Nu(e<0?0:0|w5(e))}function eT(e){for(var t=e.length<0?0:0|w5(e.length),n=Nu(t),r=0;r=2147483647)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function AJ(e,t){if(Xt.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Au(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&arguments[2]===!0;if(!r&&n===0)return 0;for(var o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return U4(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return LJ(e).length;default:if(o)return r?-1:U4(e).length;t=(""+t).toLowerCase(),o=!0}}function ySe(e,t,n){var r=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return PSe(this,t,n);case"utf8":case"utf-8":return jJ(this,t,n);case"ascii":return _Se(this,t,n);case"latin1":case"binary":return $Se(this,t,n);case"base64":return ESe(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return OSe(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function Qf(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function $B(e,t,n,r,o){if(e.length===0)return-1;if(typeof n=="string"?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),x5(n=+n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if(typeof t=="string"&&(t=Xt.from(t,r)),Xt.isBuffer(t))return t.length===0?-1:PB(e,t,n,r,o);if(typeof t=="number")return t&=255,typeof Uint8Array.prototype.indexOf=="function"?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):PB(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function PB(e,t,n,r,o){var i,a=1,s=e.length,l=t.length;if(r!==void 0&&((r=String(r).toLowerCase())==="ucs2"||r==="ucs-2"||r==="utf16le"||r==="utf-16le")){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function c(p,m){return a===1?p[m]:p.readUInt16BE(m*a)}if(o){var u=-1;for(i=n;is&&(n=s-l),i=n;i>=0;i--){for(var f=!0,h=0;ho&&(r=o):r=o;var i=t.length;r>i/2&&(r=i/2);for(var a=0;a>8,l=a%256,c.push(l),c.push(s);return c}(t,e.length-n),e,n,r)}function ESe(e,t,n){return t===0&&n===e.length?u2.fromByteArray(e):u2.fromByteArray(e.slice(t,n))}function jJ(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o239?4:c>223?3:c>191?2:1;if(o+f<=n)switch(f){case 1:c<128&&(u=c);break;case 2:(192&(i=e[o+1]))==128&&(l=(31&c)<<6|63&i)>127&&(u=l);break;case 3:i=e[o+1],a=e[o+2],(192&i)==128&&(192&a)==128&&(l=(15&c)<<12|(63&i)<<6|63&a)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:i=e[o+1],a=e[o+2],s=e[o+3],(192&i)==128&&(192&a)==128&&(192&s)==128&&(l=(15&c)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(u=l)}u===null?(u=65533,f=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),o+=f}return function(h){var p=h.length;if(p<=4096)return String.fromCharCode.apply(String,h);for(var m="",g=0;gr)&&(n=r);for(var o="",i=t;in)throw new RangeError("Trying to access beyond buffer length")}function Ma(e,t,n,r,o,i){if(!Xt.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||te.length)throw new RangeError("Index out of range")}function FJ(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function OB(e,t,n,r,o){return t=+t,n>>>=0,o||FJ(e,0,n,4),ph.write(e,t,n,r,23,4),n+4}function MB(e,t,n,r,o){return t=+t,n>>>=0,o||FJ(e,0,n,8),ph.write(e,t,n,r,52,8),n+8}function U4(e,t){var n;t=t||1/0;for(var r=e.length,o=null,i=[],a=0;a55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function LJ(e){return u2.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(BJ,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(e))}function N_(e,t,n,r){for(var o=0;o=t.length||o>=e.length);++o)t[o+n]=e[o];return o}function Au(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function x5(e){return e!=e}function TB(e,t){for(var n in e)t[n]=e[n]}function Jf(e,t,n){return xl(e,t,n)}function $0(e){var t;switch(this.encoding=function(n){var r=function(o){if(!o)return"utf8";for(var i;;)switch(o){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return o;default:if(i)return;o=(""+o).toLowerCase(),i=!0}}(n);if(typeof r!="string"&&(d2.isEncoding===W4||!W4(n)))throw new Error("Unknown encoding: "+n);return r||n}(e),this.encoding){case"utf16le":this.text=TSe,this.end=RSe,t=4;break;case"utf8":this.fillLast=MSe,t=4;break;case"base64":this.text=ISe,this.end=kSe,t=3;break;default:return this.write=NSe,this.end=ASe,void 0}this.lastNeed=0,this.lastTotal=0,this.lastChar=d2.allocUnsafe(t)}function tT(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function MSe(e){var t=this.lastTotal-this.lastNeed,n=function(r,o,i){if((192&o[0])!=128)return r.lastNeed=0,"�";if(r.lastNeed>1&&o.length>1){if((192&o[1])!=128)return r.lastNeed=1,"�";if(r.lastNeed>2&&o.length>2&&(192&o[2])!=128)return r.lastNeed=2,"�"}}(this,e);return n!==void 0?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length,void 0)}function TSe(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function RSe(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function ISe(e,t){var n=(e.length-t)%3;return n===0?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,n===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function kSe(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function NSe(e){return e.toString(this.encoding)}function ASe(e){return e&&e.length?this.write(e):""}var RB,Il,ns,IB,CC,Zf,kB,NB,wc,u2,ph,nT,BJ,zJ,P0,O0,xl,AB,zm,d2,W4,DB=Fi(()=>{for(Vt(),qt(),Kt(),RB={byteLength:function(e){var t=_B(e),n=t[0],r=t[1];return 3*(n+r)/4-r},toByteArray:function(e){var t,n,r=_B(e),o=r[0],i=r[1],a=new IB(function(c,u,f){return 3*(u+f)/4-f}(0,o,i)),s=0,l=i>0?o-4:o;for(n=0;n>16&255,a[s++]=t>>8&255,a[s++]=255&t;return i===2&&(t=ns[e.charCodeAt(n)]<<2|ns[e.charCodeAt(n+1)]>>4,a[s++]=255&t),i===1&&(t=ns[e.charCodeAt(n)]<<10|ns[e.charCodeAt(n+1)]<<4|ns[e.charCodeAt(n+2)]>>2,a[s++]=t>>8&255,a[s++]=255&t),a},fromByteArray:function(e){for(var t,n=e.length,r=n%3,o=[],i=0,a=n-r;ia?a:i+16383));return r===1?(t=e[n-1],o.push(Il[t>>2]+Il[t<<4&63]+"==")):r===2&&(t=(e[n-2]<<8)+e[n-1],o.push(Il[t>>10]+Il[t>>4&63]+Il[t<<2&63]+"=")),o.join("")}},Il=[],ns=[],IB=typeof Uint8Array<"u"?Uint8Array:Array,CC="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Zf=0,kB=CC.length;Zf>1,u=-7,f=n?o-1:0,h=n?-1:1,p=e[t+f];for(f+=h,i=p&(1<<-u)-1,p>>=-u,u+=s;u>0;i=256*i+e[t+f],f+=h,u-=8);for(a=i&(1<<-u)-1,i>>=-u,u+=r;u>0;a=256*a+e[t+f],f+=h,u-=8);if(i===0)i=1-c;else{if(i===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),i-=c}return(p?-1:1)*a*Math.pow(2,i-r)},write:function(e,t,n,r,o,i){var a,s,l,c=8*i-o-1,u=(1<>1,h=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,m=r?1:-1,g=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+f>=1?h/l:h*Math.pow(2,1-f))*l>=2&&(a++,l/=2),a+f>=u?(s=0,a=u):a+f>=1?(s=(t*l-1)*Math.pow(2,o),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[n+p]=255&s,p+=m,s/=256,o-=8);for(a=a<0;e[n+p]=255&a,p+=m,a/=256,c-=8);e[n+p-m]|=128*g}},wc={},u2=RB,ph=NB,nT=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null,wc.Buffer=Xt,wc.SlowBuffer=function(e){return+e!=e&&(e=0),Xt.alloc(+e)},wc.INSPECT_MAX_BYTES=50,wc.kMaxLength=2147483647,Xt.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}(),Xt.TYPED_ARRAY_SUPPORT||typeof console>"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(Xt.prototype,"parent",{enumerable:!0,get:function(){if(Xt.isBuffer(this))return this.buffer}}),Object.defineProperty(Xt.prototype,"offset",{enumerable:!0,get:function(){if(Xt.isBuffer(this))return this.byteOffset}}),Xt.poolSize=8192,Xt.from=function(e,t,n){return kJ(e,t,n)},Object.setPrototypeOf(Xt.prototype,Uint8Array.prototype),Object.setPrototypeOf(Xt,Uint8Array),Xt.alloc=function(e,t,n){return function(r,o,i){return NJ(r),r<=0?Nu(r):o!==void 0?typeof i=="string"?Nu(r).fill(o,i):Nu(r).fill(o):Nu(r)}(e,t,n)},Xt.allocUnsafe=function(e){return H4(e)},Xt.allocUnsafeSlow=function(e){return H4(e)},Xt.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==Xt.prototype},Xt.compare=function(e,t){if(Au(e,Uint8Array)&&(e=Xt.from(e,e.offset,e.byteLength)),Au(t,Uint8Array)&&(t=Xt.from(t,t.offset,t.byteLength)),!Xt.isBuffer(e)||!Xt.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);ot&&(e+=" ... "),""},nT&&(Xt.prototype[nT]=Xt.prototype.inspect),Xt.prototype.compare=function(e,t,n,r,o){if(Au(e,Uint8Array)&&(e=Xt.from(e,e.offset,e.byteLength)),!Xt.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(t===void 0&&(t=0),n===void 0&&(n=e?e.length:0),r===void 0&&(r=0),o===void 0&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(i,a),l=this.slice(r,o),c=e.slice(t,n),u=0;u>>=0,isFinite(n)?(n>>>=0,r===void 0&&(r="utf8")):(r=n,n=void 0)}var o=this.length-t;if((n===void 0||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return bSe(this,e,t,n);case"utf8":case"utf-8":return SSe(this,e,t,n);case"ascii":return DJ(this,e,t,n);case"latin1":case"binary":return CSe(this,e,t,n);case"base64":return wSe(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return xSe(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},Xt.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},Xt.prototype.slice=function(e,t){var n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=t===void 0?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t>>=0,t>>>=0,n||Si(e,t,this.length);for(var r=this[e],o=1,i=0;++i>>=0,t>>>=0,n||Si(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},Xt.prototype.readUInt8=function(e,t){return e>>>=0,t||Si(e,1,this.length),this[e]},Xt.prototype.readUInt16LE=function(e,t){return e>>>=0,t||Si(e,2,this.length),this[e]|this[e+1]<<8},Xt.prototype.readUInt16BE=function(e,t){return e>>>=0,t||Si(e,2,this.length),this[e]<<8|this[e+1]},Xt.prototype.readUInt32LE=function(e,t){return e>>>=0,t||Si(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},Xt.prototype.readUInt32BE=function(e,t){return e>>>=0,t||Si(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},Xt.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||Si(e,t,this.length);for(var r=this[e],o=1,i=0;++i=(o*=128)&&(r-=Math.pow(2,8*t)),r},Xt.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||Si(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},Xt.prototype.readInt8=function(e,t){return e>>>=0,t||Si(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},Xt.prototype.readInt16LE=function(e,t){e>>>=0,t||Si(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},Xt.prototype.readInt16BE=function(e,t){e>>>=0,t||Si(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},Xt.prototype.readInt32LE=function(e,t){return e>>>=0,t||Si(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},Xt.prototype.readInt32BE=function(e,t){return e>>>=0,t||Si(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},Xt.prototype.readFloatLE=function(e,t){return e>>>=0,t||Si(e,4,this.length),ph.read(this,e,!0,23,4)},Xt.prototype.readFloatBE=function(e,t){return e>>>=0,t||Si(e,4,this.length),ph.read(this,e,!1,23,4)},Xt.prototype.readDoubleLE=function(e,t){return e>>>=0,t||Si(e,8,this.length),ph.read(this,e,!0,52,8)},Xt.prototype.readDoubleBE=function(e,t){return e>>>=0,t||Si(e,8,this.length),ph.read(this,e,!1,52,8)},Xt.prototype.writeUIntLE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||Ma(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i>>=0,n>>>=0,r||Ma(this,e,t,n,Math.pow(2,8*n)-1,0);var o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},Xt.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||Ma(this,e,t,1,255,0),this[t]=255&e,t+1},Xt.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||Ma(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},Xt.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||Ma(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},Xt.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||Ma(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},Xt.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||Ma(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},Xt.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var o=Math.pow(2,8*n-1);Ma(this,e,t,n,o-1,-o)}var i=0,a=1,s=0;for(this[t]=255&e;++i>0)-s&255;return t+n},Xt.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var o=Math.pow(2,8*n-1);Ma(this,e,t,n,o-1,-o)}var i=n-1,a=1,s=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&s===0&&this[t+i+1]!==0&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+n},Xt.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||Ma(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},Xt.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||Ma(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},Xt.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||Ma(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},Xt.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||Ma(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},Xt.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||Ma(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},Xt.prototype.writeFloatLE=function(e,t,n){return OB(this,e,t,!0,n)},Xt.prototype.writeFloatBE=function(e,t,n){return OB(this,e,t,!1,n)},Xt.prototype.writeDoubleLE=function(e,t,n){return MB(this,e,t,!0,n)},Xt.prototype.writeDoubleBE=function(e,t,n){return MB(this,e,t,!1,n)},Xt.prototype.copy=function(e,t,n,r){if(!Xt.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||r===0||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,r),t);return o},Xt.prototype.fill=function(e,t,n,r){if(typeof e=="string"){if(typeof t=="string"?(r=t,t=0,n=this.length):typeof n=="string"&&(r=n,n=this.length),r!==void 0&&typeof r!="string")throw new TypeError("encoding must be a string");if(typeof r=="string"&&!Xt.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(e.length===1){var o=e.charCodeAt(0);(r==="utf8"&&o<128||r==="latin1")&&(e=o)}}else typeof e=="number"?e&=255:typeof e=="boolean"&&(e=Number(e));if(t<0||this.length>>=0,n=n===void 0?this.length:n>>>0,e||(e=0),typeof e=="number")for(i=t;i=0?(l>0&&(o.lastNeed=l-1),l):--s=0?(l>0&&(o.lastNeed=l-2),l):--s=0?(l>0&&(l===2?l=0:o.lastNeed=l-3),l):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},$0.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length},zm.StringDecoder,zm.StringDecoder}),HJ={};Rp(HJ,{StringDecoder:()=>UJ,default:()=>zm});var UJ,DSe=Fi(()=>{Vt(),qt(),Kt(),DB(),DB(),UJ=zm.StringDecoder}),WJ=Zt((e,t)=>{Vt(),qt(),Kt();var n=Ip(),{PromisePrototypeThen:r,SymbolAsyncIterator:o,SymbolIterator:i}=gi(),{Buffer:a}=(Bi(),Qr(Li)),{ERR_INVALID_ARG_TYPE:s,ERR_STREAM_NULL_VALUES:l}=Ga().codes;function c(u,f,h){let p;if(typeof f=="string"||f instanceof a)return new u({objectMode:!0,...h,read(){this.push(f),this.push(null)}});let m;if(f&&f[o])m=!0,p=f[o]();else if(f&&f[i])m=!1,p=f[i]();else throw new s("iterable",["Iterable"],f);let g=new u({objectMode:!0,highWaterMark:1,...h}),v=!1;g._read=function(){v||(v=!0,y())},g._destroy=function(S,w){r(b(S),()=>n.nextTick(w,S),E=>n.nextTick(w,E||S))};async function b(S){let w=S!=null,E=typeof p.throw=="function";if(w&&E){let{value:C,done:x}=await p.throw(S);if(await C,x)return}if(typeof p.return=="function"){let{value:C}=await p.return();await C}}async function y(){for(;;){try{let{value:S,done:w}=m?await p.next():p.next();if(w)g.push(null);else{let E=S&&typeof S.then=="function"?await S:S;if(E===null)throw v=!1,new l;if(g.push(E))continue;v=!1}}catch(S){g.destroy(S)}break}}return g}t.exports=c}),A_=Zt((e,t)=>{Vt(),qt(),Kt();var n=Ip(),{ArrayPrototypeIndexOf:r,NumberIsInteger:o,NumberIsNaN:i,NumberParseInt:a,ObjectDefineProperties:s,ObjectKeys:l,ObjectSetPrototypeOf:c,Promise:u,SafeSet:f,SymbolAsyncIterator:h,Symbol:p}=gi();t.exports=L,L.ReadableState=K;var{EventEmitter:m}=(bv(),Qr(kp)),{Stream:g,prependListener:v}=S5(),{Buffer:b}=(Bi(),Qr(Li)),{addAbortSignal:y}=k_(),S=Nf(),w=Xu().debuglog("stream",H=>{w=H}),E=mSe(),C=yv(),{getHighWaterMark:x,getDefaultHighWaterMark:_}=C5(),{aggregateTwoErrors:P,codes:{ERR_INVALID_ARG_TYPE:O,ERR_METHOD_NOT_IMPLEMENTED:I,ERR_OUT_OF_RANGE:M,ERR_STREAM_PUSH_AFTER_EOF:T,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:D}}=Ga(),{validateObject:A}=I_(),j=p("kPaused"),{StringDecoder:k}=(DSe(),Qr(HJ)),F=WJ();c(L.prototype,g.prototype),c(L,g);var V=()=>{},{errorOrDestroy:W}=C;function K(H,q,me){typeof me!="boolean"&&(me=q instanceof Qu()),this.objectMode=!!(H&&H.objectMode),me&&(this.objectMode=this.objectMode||!!(H&&H.readableObjectMode)),this.highWaterMark=H?x(this,H,"readableHighWaterMark",me):_(!1),this.buffer=new E,this.length=0,this.pipes=[],this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.constructed=!0,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this[j]=null,this.errorEmitted=!1,this.emitClose=!H||H.emitClose!==!1,this.autoDestroy=!H||H.autoDestroy!==!1,this.destroyed=!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this.defaultEncoding=H&&H.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.multiAwaitDrain=!1,this.readingMore=!1,this.dataEmitted=!1,this.decoder=null,this.encoding=null,H&&H.encoding&&(this.decoder=new k(H.encoding),this.encoding=H.encoding)}function L(H){if(!(this instanceof L))return new L(H);let q=this instanceof Qu();this._readableState=new K(H,this,q),H&&(typeof H.read=="function"&&(this._read=H.read),typeof H.destroy=="function"&&(this._destroy=H.destroy),typeof H.construct=="function"&&(this._construct=H.construct),H.signal&&!q&&y(H.signal,this)),g.call(this,H),C.construct(this,()=>{this._readableState.needReadable&&ce(this,this._readableState)})}L.prototype.destroy=C.destroy,L.prototype._undestroy=C.undestroy,L.prototype._destroy=function(H,q){q(H)},L.prototype[m.captureRejectionSymbol]=function(H){this.destroy(H)},L.prototype.push=function(H,q){return Q(this,H,q,!1)},L.prototype.unshift=function(H,q){return Q(this,H,q,!0)};function Q(H,q,me,Ce){w("readableAddChunk",q);let ue=H._readableState,Le;if(ue.objectMode||(typeof q=="string"?(me=me||ue.defaultEncoding,ue.encoding!==me&&(Ce&&ue.encoding?q=b.from(q,me).toString(ue.encoding):(q=b.from(q,me),me=""))):q instanceof b?me="":g._isUint8Array(q)?(q=g._uint8ArrayToBuffer(q),me=""):q!=null&&(Le=new O("chunk",["string","Buffer","Uint8Array"],q))),Le)W(H,Le);else if(q===null)ue.reading=!1,X(H,ue);else if(ue.objectMode||q&&q.length>0)if(Ce)if(ue.endEmitted)W(H,new D);else{if(ue.destroyed||ue.errored)return!1;ee(H,ue,q,!0)}else if(ue.ended)W(H,new T);else{if(ue.destroyed||ue.errored)return!1;ue.reading=!1,ue.decoder&&!me?(q=ue.decoder.write(q),ue.objectMode||q.length!==0?ee(H,ue,q,!1):ce(H,ue)):ee(H,ue,q,!1)}else Ce||(ue.reading=!1,ce(H,ue));return!ue.ended&&(ue.length0?(q.multiAwaitDrain?q.awaitDrainWriters.clear():q.awaitDrainWriters=null,q.dataEmitted=!0,H.emit("data",me)):(q.length+=q.objectMode?1:me.length,Ce?q.buffer.unshift(me):q.buffer.push(me),q.needReadable&&ne(H)),ce(H,q)}L.prototype.isPaused=function(){let H=this._readableState;return H[j]===!0||H.flowing===!1},L.prototype.setEncoding=function(H){let q=new k(H);this._readableState.decoder=q,this._readableState.encoding=this._readableState.decoder.encoding;let me=this._readableState.buffer,Ce="";for(let ue of me)Ce+=q.write(ue);return me.clear(),Ce!==""&&me.push(Ce),this._readableState.length=Ce.length,this};var re=1073741824;function ie(H){if(H>re)throw new M("size","<= 1GiB",H);return H--,H|=H>>>1,H|=H>>>2,H|=H>>>4,H|=H>>>8,H|=H>>>16,H++,H}function G(H,q){return H<=0||q.length===0&&q.ended?0:q.objectMode?1:i(H)?q.flowing&&q.length?q.buffer.first().length:q.length:H<=q.length?H:q.ended?q.length:0}L.prototype.read=function(H){w("read",H),H===void 0?H=NaN:o(H)||(H=a(H,10));let q=this._readableState,me=H;if(H>q.highWaterMark&&(q.highWaterMark=ie(H)),H!==0&&(q.emittedReadable=!1),H===0&&q.needReadable&&((q.highWaterMark!==0?q.length>=q.highWaterMark:q.length>0)||q.ended))return w("read: emitReadable",q.length,q.ended),q.length===0&&q.ended?ve(this):ne(this),null;if(H=G(H,q),H===0&&q.ended)return q.length===0&&ve(this),null;let Ce=q.needReadable;if(w("need readable",Ce),(q.length===0||q.length-H0?ue=ye(H,q):ue=null,ue===null?(q.needReadable=q.length<=q.highWaterMark,H=0):(q.length-=H,q.multiAwaitDrain?q.awaitDrainWriters.clear():q.awaitDrainWriters=null),q.length===0&&(q.ended||(q.needReadable=!0),me!==H&&q.ended&&ve(this)),ue!==null&&!q.errorEmitted&&!q.closeEmitted&&(q.dataEmitted=!0,this.emit("data",ue)),ue};function X(H,q){if(w("onEofChunk"),!q.ended){if(q.decoder){let me=q.decoder.end();me&&me.length&&(q.buffer.push(me),q.length+=q.objectMode?1:me.length)}q.ended=!0,q.sync?ne(H):(q.needReadable=!1,q.emittedReadable=!0,le(H))}}function ne(H){let q=H._readableState;w("emitReadable",q.needReadable,q.emittedReadable),q.needReadable=!1,q.emittedReadable||(w("emitReadable",q.flowing),q.emittedReadable=!0,n.nextTick(le,H))}function le(H){let q=H._readableState;w("emitReadable_",q.destroyed,q.length,q.ended),!q.destroyed&&!q.errored&&(q.length||q.ended)&&(H.emit("readable"),q.emittedReadable=!1),q.needReadable=!q.flowing&&!q.ended&&q.length<=q.highWaterMark,Oe(H)}function ce(H,q){!q.readingMore&&q.constructed&&(q.readingMore=!0,n.nextTick(oe,H,q))}function oe(H,q){for(;!q.reading&&!q.ended&&(q.length1&&Ce.pipes.includes(H)&&(w("false write response, pause",Ce.awaitDrainWriters.size),Ce.awaitDrainWriters.add(H)),me.pause()),ge||(ge=se(me,H),H.on("drain",ge))}me.on("data",Ke);function Ke(st){w("ondata");let yt=H.write(st);w("dest.write",yt),yt===!1&&Fe()}function Ue(st){if(w("onerror",st),et(),H.removeListener("error",Ue),H.listenerCount("error")===0){let yt=H._writableState||H._readableState;yt&&!yt.errorEmitted?W(H,st):H.emit("error",st)}}v(H,"error",Ue);function Ve(){H.removeListener("finish",Tt),et()}H.once("close",Ve);function Tt(){w("onfinish"),H.removeListener("close",Ve),et()}H.once("finish",Tt);function et(){w("unpipe"),me.unpipe(H)}return H.emit("pipe",me),H.writableNeedDrain===!0?Ce.flowing&&Fe():Ce.flowing||(w("pipe resume"),me.resume()),H};function se(H,q){return function(){let me=H._readableState;me.awaitDrainWriters===q?(w("pipeOnDrain",1),me.awaitDrainWriters=null):me.multiAwaitDrain&&(w("pipeOnDrain",me.awaitDrainWriters.size),me.awaitDrainWriters.delete(q)),(!me.awaitDrainWriters||me.awaitDrainWriters.size===0)&&H.listenerCount("data")&&H.resume()}}L.prototype.unpipe=function(H){let q=this._readableState,me={hasUnpiped:!1};if(q.pipes.length===0)return this;if(!H){let ue=q.pipes;q.pipes=[],this.pause();for(let Le=0;Le0,Ce.flowing!==!1&&this.resume()):H==="readable"&&!Ce.endEmitted&&!Ce.readableListening&&(Ce.readableListening=Ce.needReadable=!0,Ce.flowing=!1,Ce.emittedReadable=!1,w("on readable",Ce.length,Ce.reading),Ce.length?ne(this):Ce.reading||n.nextTick(te,this)),me},L.prototype.addListener=L.prototype.on,L.prototype.removeListener=function(H,q){let me=g.prototype.removeListener.call(this,H,q);return H==="readable"&&n.nextTick(fe,this),me},L.prototype.off=L.prototype.removeListener,L.prototype.removeAllListeners=function(H){let q=g.prototype.removeAllListeners.apply(this,arguments);return(H==="readable"||H===void 0)&&n.nextTick(fe,this),q};function fe(H){let q=H._readableState;q.readableListening=H.listenerCount("readable")>0,q.resumeScheduled&&q[j]===!1?q.flowing=!0:H.listenerCount("data")>0?H.resume():q.readableListening||(q.flowing=null)}function te(H){w("readable nexttick read 0"),H.read(0)}L.prototype.resume=function(){let H=this._readableState;return H.flowing||(w("resume"),H.flowing=!H.readableListening,he(this,H)),H[j]=!1,this};function he(H,q){q.resumeScheduled||(q.resumeScheduled=!0,n.nextTick(pe,H,q))}function pe(H,q){w("resume",q.reading),q.reading||H.read(0),q.resumeScheduled=!1,H.emit("resume"),Oe(H),q.flowing&&!q.reading&&H.read(0)}L.prototype.pause=function(){return w("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(w("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[j]=!0,this};function Oe(H){let q=H._readableState;for(w("flow",q.flowing);q.flowing&&H.read()!==null;);}L.prototype.wrap=function(H){let q=!1;H.on("data",Ce=>{!this.push(Ce)&&H.pause&&(q=!0,H.pause())}),H.on("end",()=>{this.push(null)}),H.on("error",Ce=>{W(this,Ce)}),H.on("close",()=>{this.destroy()}),H.on("destroy",()=>{this.destroy()}),this._read=()=>{q&&H.resume&&(q=!1,H.resume())};let me=l(H);for(let Ce=1;Ce{ue=He?P(ue,He):null,me(),me=V});try{for(;;){let He=H.destroyed?null:H.read();if(He!==null)yield He;else{if(ue)throw ue;if(ue===null)return;await new u(Ce)}}}catch(He){throw ue=P(ue,He),ue}finally{(ue||(q==null?void 0:q.destroyOnReturn)!==!1)&&(ue===void 0||H._readableState.autoDestroy)?C.destroyer(H,null):(H.off("readable",Ce),Le())}}s(L.prototype,{readable:{__proto__:null,get(){let H=this._readableState;return!!H&&H.readable!==!1&&!H.destroyed&&!H.errorEmitted&&!H.endEmitted},set(H){this._readableState&&(this._readableState.readable=!!H)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._readableState.readable!==!1&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(H){this._readableState&&(this._readableState.flowing=H)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.objectMode:!1}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return this._readableState?this._readableState.closed:!1}},destroyed:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.destroyed:!1},set(H){this._readableState&&(this._readableState.destroyed=H)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),s(K.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[j]!==!1},set(H){this[j]=!!H}}}),L._fromList=ye;function ye(H,q){if(q.length===0)return null;let me;return q.objectMode?me=q.buffer.shift():!H||H>=q.length?(q.decoder?me=q.buffer.join(""):q.buffer.length===1?me=q.buffer.first():me=q.buffer.concat(q.length),q.buffer.clear()):me=q.buffer.consume(H,q.decoder),me}function ve(H){let q=H._readableState;w("endReadable",q.endEmitted),q.endEmitted||(q.ended=!0,n.nextTick(be,q,H))}function be(H,q){if(w("endReadableNT",H.endEmitted,H.length),!H.errored&&!H.closeEmitted&&!H.endEmitted&&H.length===0){if(H.endEmitted=!0,q.emit("end"),q.writable&&q.allowHalfOpen===!1)n.nextTick(Pe,q);else if(H.autoDestroy){let me=q._writableState;(!me||me.autoDestroy&&(me.finished||me.writable===!1))&&q.destroy()}}}function Pe(H){H.writable&&!H.writableEnded&&!H.destroyed&&H.end()}L.from=function(H,q){return F(L,H,q)};var Ne;function U(){return Ne===void 0&&(Ne={}),Ne}L.fromWeb=function(H,q){return U().newStreamReadableFromReadableStream(H,q)},L.toWeb=function(H,q){return U().newReadableStreamFromStreamReadable(H,q)},L.wrap=function(H,q){var me,Ce;return new L({objectMode:(me=(Ce=H.readableObjectMode)!==null&&Ce!==void 0?Ce:H.objectMode)!==null&&me!==void 0?me:!0,...q,destroy(ue,Le){C.destroyer(H,ue),Le(ue)}}).wrap(H)}}),VJ=Zt((e,t)=>{Vt(),qt(),Kt();var n=Ip(),{ArrayPrototypeSlice:r,Error:o,FunctionPrototypeSymbolHasInstance:i,ObjectDefineProperty:a,ObjectDefineProperties:s,ObjectSetPrototypeOf:l,StringPrototypeToLowerCase:c,Symbol:u,SymbolHasInstance:f}=gi();t.exports=k,k.WritableState=A;var{EventEmitter:h}=(bv(),Qr(kp)),p=S5().Stream,{Buffer:m}=(Bi(),Qr(Li)),g=yv(),{addAbortSignal:v}=k_(),{getHighWaterMark:b,getDefaultHighWaterMark:y}=C5(),{ERR_INVALID_ARG_TYPE:S,ERR_METHOD_NOT_IMPLEMENTED:w,ERR_MULTIPLE_CALLBACK:E,ERR_STREAM_CANNOT_PIPE:C,ERR_STREAM_DESTROYED:x,ERR_STREAM_ALREADY_FINISHED:_,ERR_STREAM_NULL_VALUES:P,ERR_STREAM_WRITE_AFTER_END:O,ERR_UNKNOWN_ENCODING:I}=Ga().codes,{errorOrDestroy:M}=g;l(k.prototype,p.prototype),l(k,p);function T(){}var D=u("kOnFinished");function A(te,he,pe){typeof pe!="boolean"&&(pe=he instanceof Qu()),this.objectMode=!!(te&&te.objectMode),pe&&(this.objectMode=this.objectMode||!!(te&&te.writableObjectMode)),this.highWaterMark=te?b(this,te,"writableHighWaterMark",pe):y(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;let Oe=!!(te&&te.decodeStrings===!1);this.decodeStrings=!Oe,this.defaultEncoding=te&&te.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=L.bind(void 0,he),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,j(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!te||te.emitClose!==!1,this.autoDestroy=!te||te.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[D]=[]}function j(te){te.buffered=[],te.bufferedIndex=0,te.allBuffers=!0,te.allNoop=!0}A.prototype.getBuffer=function(){return r(this.buffered,this.bufferedIndex)},a(A.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function k(te){let he=this instanceof Qu();if(!he&&!i(k,this))return new k(te);this._writableState=new A(te,this,he),te&&(typeof te.write=="function"&&(this._write=te.write),typeof te.writev=="function"&&(this._writev=te.writev),typeof te.destroy=="function"&&(this._destroy=te.destroy),typeof te.final=="function"&&(this._final=te.final),typeof te.construct=="function"&&(this._construct=te.construct),te.signal&&v(te.signal,this)),p.call(this,te),g.construct(this,()=>{let pe=this._writableState;pe.writing||ie(this,pe),le(this,pe)})}a(k,f,{__proto__:null,value:function(te){return i(this,te)?!0:this!==k?!1:te&&te._writableState instanceof A}}),k.prototype.pipe=function(){M(this,new C)};function F(te,he,pe,Oe){let Me=te._writableState;if(typeof pe=="function")Oe=pe,pe=Me.defaultEncoding;else{if(!pe)pe=Me.defaultEncoding;else if(pe!=="buffer"&&!m.isEncoding(pe))throw new I(pe);typeof Oe!="function"&&(Oe=T)}if(he===null)throw new P;if(!Me.objectMode)if(typeof he=="string")Me.decodeStrings!==!1&&(he=m.from(he,pe),pe="buffer");else if(he instanceof m)pe="buffer";else if(p._isUint8Array(he))he=p._uint8ArrayToBuffer(he),pe="buffer";else throw new S("chunk",["string","Buffer","Uint8Array"],he);let Se;return Me.ending?Se=new O:Me.destroyed&&(Se=new x("write")),Se?(n.nextTick(Oe,Se),M(te,Se,!0),Se):(Me.pendingcb++,V(te,Me,he,pe,Oe))}k.prototype.write=function(te,he,pe){return F(this,te,he,pe)===!0},k.prototype.cork=function(){this._writableState.corked++},k.prototype.uncork=function(){let te=this._writableState;te.corked&&(te.corked--,te.writing||ie(this,te))},k.prototype.setDefaultEncoding=function(te){if(typeof te=="string"&&(te=c(te)),!m.isEncoding(te))throw new I(te);return this._writableState.defaultEncoding=te,this};function V(te,he,pe,Oe,Me){let Se=he.objectMode?1:pe.length;he.length+=Se;let ye=he.lengthpe.bufferedIndex&&ie(te,pe),Oe?pe.afterWriteTickInfo!==null&&pe.afterWriteTickInfo.cb===Me?pe.afterWriteTickInfo.count++:(pe.afterWriteTickInfo={count:1,cb:Me,stream:te,state:pe},n.nextTick(Q,pe.afterWriteTickInfo)):ee(te,pe,1,Me))}function Q({stream:te,state:he,count:pe,cb:Oe}){return he.afterWriteTickInfo=null,ee(te,he,pe,Oe)}function ee(te,he,pe,Oe){for(!he.ending&&!te.destroyed&&he.length===0&&he.needDrain&&(he.needDrain=!1,te.emit("drain"));pe-- >0;)he.pendingcb--,Oe();he.destroyed&&re(he),le(te,he)}function re(te){if(te.writing)return;for(let Me=te.bufferedIndex;Me1&&te._writev){he.pendingcb-=Se-1;let ve=he.allNoop?T:Pe=>{for(let Ne=ye;Ne256?(pe.splice(0,ye),he.bufferedIndex=0):he.bufferedIndex=ye}he.bufferProcessing=!1}k.prototype._write=function(te,he,pe){if(this._writev)this._writev([{chunk:te,encoding:he}],pe);else throw new w("_write()")},k.prototype._writev=null,k.prototype.end=function(te,he,pe){let Oe=this._writableState;typeof te=="function"?(pe=te,te=null,he=null):typeof he=="function"&&(pe=he,he=null);let Me;if(te!=null){let Se=F(this,te,he);Se instanceof o&&(Me=Se)}return Oe.corked&&(Oe.corked=1,this.uncork()),Me||(!Oe.errored&&!Oe.ending?(Oe.ending=!0,le(this,Oe,!0),Oe.ended=!0):Oe.finished?Me=new _("end"):Oe.destroyed&&(Me=new x("end"))),typeof pe=="function"&&(Me||Oe.finished?n.nextTick(pe,Me):Oe[D].push(pe)),this};function G(te){return te.ending&&!te.destroyed&&te.constructed&&te.length===0&&!te.errored&&te.buffered.length===0&&!te.finished&&!te.writing&&!te.errorEmitted&&!te.closeEmitted}function X(te,he){let pe=!1;function Oe(Me){if(pe){M(te,Me??E());return}if(pe=!0,he.pendingcb--,Me){let Se=he[D].splice(0);for(let ye=0;ye{G(Me)?ce(Oe,Me):Me.pendingcb--},te,he)):G(he)&&(he.pendingcb++,ce(te,he))))}function ce(te,he){he.pendingcb--,he.finished=!0;let pe=he[D].splice(0);for(let Oe=0;Oe{Vt(),qt(),Kt();var n=Ip(),r=(Bi(),Qr(Li)),{isReadable:o,isWritable:i,isIterable:a,isNodeStream:s,isReadableNodeStream:l,isWritableNodeStream:c,isDuplexNodeStream:u}=ld(),f=Nf(),{AbortError:h,codes:{ERR_INVALID_ARG_TYPE:p,ERR_INVALID_RETURN_VALUE:m}}=Ga(),{destroyer:g}=yv(),v=Qu(),b=A_(),{createDeferredPromise:y}=Xu(),S=WJ(),w=globalThis.Blob||r.Blob,E=typeof w<"u"?function(I){return I instanceof w}:function(I){return!1},C=globalThis.AbortController||b5().AbortController,{FunctionPrototypeCall:x}=gi(),_=class extends v{constructor(I){super(I),(I==null?void 0:I.readable)===!1&&(this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0),(I==null?void 0:I.writable)===!1&&(this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0)}};t.exports=function I(M,T){if(u(M))return M;if(l(M))return O({readable:M});if(c(M))return O({writable:M});if(s(M))return O({writable:!1,readable:!1});if(typeof M=="function"){let{value:A,write:j,final:k,destroy:F}=P(M);if(a(A))return S(_,A,{objectMode:!0,write:j,final:k,destroy:F});let V=A==null?void 0:A.then;if(typeof V=="function"){let W,K=x(V,A,L=>{if(L!=null)throw new m("nully","body",L)},L=>{g(W,L)});return W=new _({objectMode:!0,readable:!1,write:j,final(L){k(async()=>{try{await K,n.nextTick(L,null)}catch(Q){n.nextTick(L,Q)}})},destroy:F})}throw new m("Iterable, AsyncIterable or AsyncFunction",T,A)}if(E(M))return I(M.arrayBuffer());if(a(M))return S(_,M,{objectMode:!0,writable:!1});if(typeof(M==null?void 0:M.writable)=="object"||typeof(M==null?void 0:M.readable)=="object"){let A=M!=null&&M.readable?l(M==null?void 0:M.readable)?M==null?void 0:M.readable:I(M.readable):void 0,j=M!=null&&M.writable?c(M==null?void 0:M.writable)?M==null?void 0:M.writable:I(M.writable):void 0;return O({readable:A,writable:j})}let D=M==null?void 0:M.then;if(typeof D=="function"){let A;return x(D,M,j=>{j!=null&&A.push(j),A.push(null)},j=>{g(A,j)}),A=new _({objectMode:!0,writable:!1,read(){}})}throw new p(T,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],M)};function P(I){let{promise:M,resolve:T}=y(),D=new C,A=D.signal;return{value:I(async function*(){for(;;){let j=M;M=null;let{chunk:k,done:F,cb:V}=await j;if(n.nextTick(V),F)return;if(A.aborted)throw new h(void 0,{cause:A.reason});({promise:M,resolve:T}=y()),yield k}}(),{signal:A}),write(j,k,F){let V=T;T=null,V({chunk:j,done:!1,cb:F})},final(j){let k=T;T=null,k({done:!0,cb:j})},destroy(j,k){D.abort(),k(j)}}}function O(I){let M=I.readable&&typeof I.readable.read!="function"?b.wrap(I.readable):I.readable,T=I.writable,D=!!o(M),A=!!i(T),j,k,F,V,W;function K(L){let Q=V;V=null,Q?Q(L):L&&W.destroy(L)}return W=new _({readableObjectMode:!!(M!=null&&M.readableObjectMode),writableObjectMode:!!(T!=null&&T.writableObjectMode),readable:D,writable:A}),A&&(f(T,L=>{A=!1,L&&g(M,L),K(L)}),W._write=function(L,Q,ee){T.write(L,Q)?ee():j=ee},W._final=function(L){T.end(),k=L},T.on("drain",function(){if(j){let L=j;j=null,L()}}),T.on("finish",function(){if(k){let L=k;k=null,L()}})),D&&(f(M,L=>{D=!1,L&&g(M,L),K(L)}),M.on("readable",function(){if(F){let L=F;F=null,L()}}),M.on("end",function(){W.push(null)}),W._read=function(){for(;;){let L=M.read();if(L===null){F=W._read;return}if(!W.push(L))return}}),W._destroy=function(L,Q){!L&&V!==null&&(L=new h),F=null,j=null,k=null,V===null?Q(L):(V=Q,g(T,L),g(M,L))},W}}),Qu=Zt((e,t)=>{Vt(),qt(),Kt();var{ObjectDefineProperties:n,ObjectGetOwnPropertyDescriptor:r,ObjectKeys:o,ObjectSetPrototypeOf:i}=gi();t.exports=l;var a=A_(),s=VJ();i(l.prototype,a.prototype),i(l,a);{let h=o(s.prototype);for(let p=0;p{Vt(),qt(),Kt();var{ObjectSetPrototypeOf:n,Symbol:r}=gi();t.exports=l;var{ERR_METHOD_NOT_IMPLEMENTED:o}=Ga().codes,i=Qu(),{getHighWaterMark:a}=C5();n(l.prototype,i.prototype),n(l,i);var s=r("kCallback");function l(f){if(!(this instanceof l))return new l(f);let h=f?a(this,f,"readableHighWaterMark",!0):null;h===0&&(f={...f,highWaterMark:null,readableHighWaterMark:h,writableHighWaterMark:f.writableHighWaterMark||0}),i.call(this,f),this._readableState.sync=!1,this[s]=null,f&&(typeof f.transform=="function"&&(this._transform=f.transform),typeof f.flush=="function"&&(this._flush=f.flush)),this.on("prefinish",u)}function c(f){typeof this._flush=="function"&&!this.destroyed?this._flush((h,p)=>{if(h){f?f(h):this.destroy(h);return}p!=null&&this.push(p),this.push(null),f&&f()}):(this.push(null),f&&f())}function u(){this._final!==c&&c.call(this)}l.prototype._final=c,l.prototype._transform=function(f,h,p){throw new o("_transform()")},l.prototype._write=function(f,h,p){let m=this._readableState,g=this._writableState,v=m.length;this._transform(f,h,(b,y)=>{if(b){p(b);return}y!=null&&this.push(y),g.ended||v===m.length||m.length{Vt(),qt(),Kt();var{ObjectSetPrototypeOf:n}=gi();t.exports=o;var r=KJ();n(o.prototype,r.prototype),n(o,r);function o(i){if(!(this instanceof o))return new o(i);r.call(this,i)}o.prototype._transform=function(i,a,s){s(null,i)}}),E5=Zt((e,t)=>{Vt(),qt(),Kt();var n=Ip(),{ArrayIsArray:r,Promise:o,SymbolAsyncIterator:i}=gi(),a=Nf(),{once:s}=Xu(),l=yv(),c=Qu(),{aggregateTwoErrors:u,codes:{ERR_INVALID_ARG_TYPE:f,ERR_INVALID_RETURN_VALUE:h,ERR_MISSING_ARGS:p,ERR_STREAM_DESTROYED:m,ERR_STREAM_PREMATURE_CLOSE:g},AbortError:v}=Ga(),{validateFunction:b,validateAbortSignal:y}=I_(),{isIterable:S,isReadable:w,isReadableNodeStream:E,isNodeStream:C,isTransformStream:x,isWebStream:_,isReadableStream:P,isReadableEnded:O}=ld(),I=globalThis.AbortController||b5().AbortController,M,T;function D(Q,ee,re){let ie=!1;Q.on("close",()=>{ie=!0});let G=a(Q,{readable:ee,writable:re},X=>{ie=!X});return{destroy:X=>{ie||(ie=!0,l.destroyer(Q,X||new m("pipe")))},cleanup:G}}function A(Q){return b(Q[Q.length-1],"streams[stream.length - 1]"),Q.pop()}function j(Q){if(S(Q))return Q;if(E(Q))return k(Q);throw new f("val",["Readable","Iterable","AsyncIterable"],Q)}async function*k(Q){T||(T=A_()),yield*T.prototype[i].call(Q)}async function F(Q,ee,re,{end:ie}){let G,X=null,ne=oe=>{if(oe&&(G=oe),X){let se=X;X=null,se()}},le=()=>new o((oe,se)=>{G?se(G):X=()=>{G?se(G):oe()}});ee.on("drain",ne);let ce=a(ee,{readable:!1},ne);try{ee.writableNeedDrain&&await le();for await(let oe of Q)ee.write(oe)||await le();ie&&ee.end(),await le(),re()}catch(oe){re(G!==oe?u(G,oe):oe)}finally{ce(),ee.off("drain",ne)}}async function V(Q,ee,re,{end:ie}){x(ee)&&(ee=ee.writable);let G=ee.getWriter();try{for await(let X of Q)await G.ready,G.write(X).catch(()=>{});await G.ready,ie&&await G.close(),re()}catch(X){try{await G.abort(X),re(X)}catch(ne){re(ne)}}}function W(...Q){return K(Q,s(A(Q)))}function K(Q,ee,re){if(Q.length===1&&r(Q[0])&&(Q=Q[0]),Q.length<2)throw new p("streams");let ie=new I,G=ie.signal,X=re==null?void 0:re.signal,ne=[];y(X,"options.signal");function le(){he(new v)}X==null||X.addEventListener("abort",le);let ce,oe,se=[],fe=0;function te(Se){he(Se,--fe===0)}function he(Se,ye){if(Se&&(!ce||ce.code==="ERR_STREAM_PREMATURE_CLOSE")&&(ce=Se),!(!ce&&!ye)){for(;se.length;)se.shift()(ce);X==null||X.removeEventListener("abort",le),ie.abort(),ye&&(ce||ne.forEach(ve=>ve()),n.nextTick(ee,ce,oe))}}let pe;for(let Se=0;Se0,Pe=ve||(re==null?void 0:re.end)!==!1,Ne=Se===Q.length-1;if(C(ye)){let U=function(H){H&&H.name!=="AbortError"&&H.code!=="ERR_STREAM_PREMATURE_CLOSE"&&te(H)};if(Pe){let{destroy:H,cleanup:q}=D(ye,ve,be);se.push(H),w(ye)&&Ne&&ne.push(q)}ye.on("error",U),w(ye)&&Ne&&ne.push(()=>{ye.removeListener("error",U)})}if(Se===0)if(typeof ye=="function"){if(pe=ye({signal:G}),!S(pe))throw new h("Iterable, AsyncIterable or Stream","source",pe)}else S(ye)||E(ye)||x(ye)?pe=ye:pe=c.from(ye);else if(typeof ye=="function"){if(x(pe)){var Oe;pe=j((Oe=pe)===null||Oe===void 0?void 0:Oe.readable)}else pe=j(pe);if(pe=ye(pe,{signal:G}),ve){if(!S(pe,!0))throw new h("AsyncIterable",`transform[${Se-1}]`,pe)}else{var Me;M||(M=qJ());let U=new M({objectMode:!0}),H=(Me=pe)===null||Me===void 0?void 0:Me.then;if(typeof H=="function")fe++,H.call(pe,Ce=>{oe=Ce,Ce!=null&&U.write(Ce),Pe&&U.end(),n.nextTick(te)},Ce=>{U.destroy(Ce),n.nextTick(te,Ce)});else if(S(pe,!0))fe++,F(pe,U,te,{end:Pe});else if(P(pe)||x(pe)){let Ce=pe.readable||pe;fe++,F(Ce,U,te,{end:Pe})}else throw new h("AsyncIterable or Promise","destination",pe);pe=U;let{destroy:q,cleanup:me}=D(pe,!1,!0);se.push(q),Ne&&ne.push(me)}}else if(C(ye)){if(E(pe)){fe+=2;let U=L(pe,ye,te,{end:Pe});w(ye)&&Ne&&ne.push(U)}else if(x(pe)||P(pe)){let U=pe.readable||pe;fe++,F(U,ye,te,{end:Pe})}else if(S(pe))fe++,F(pe,ye,te,{end:Pe});else throw new f("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],pe);pe=ye}else if(_(ye)){if(E(pe))fe++,V(j(pe),ye,te,{end:Pe});else if(P(pe)||S(pe))fe++,V(pe,ye,te,{end:Pe});else if(x(pe))fe++,V(pe.readable,ye,te,{end:Pe});else throw new f("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],pe);pe=ye}else pe=c.from(ye)}return(G!=null&&G.aborted||X!=null&&X.aborted)&&n.nextTick(le),pe}function L(Q,ee,re,{end:ie}){let G=!1;if(ee.on("close",()=>{G||re(new g)}),Q.pipe(ee,{end:!1}),ie){let X=function(){G=!0,ee.end()};O(Q)?n.nextTick(X):Q.once("end",X)}else re();return a(Q,{readable:!0,writable:!1},X=>{let ne=Q._readableState;X&&X.code==="ERR_STREAM_PREMATURE_CLOSE"&&ne&&ne.ended&&!ne.errored&&!ne.errorEmitted?Q.once("end",re).once("error",re):re(X)}),a(ee,{readable:!1,writable:!0},re)}t.exports={pipelineImpl:K,pipeline:W}}),GJ=Zt((e,t)=>{Vt(),qt(),Kt();var{pipeline:n}=E5(),r=Qu(),{destroyer:o}=yv(),{isNodeStream:i,isReadable:a,isWritable:s,isWebStream:l,isTransformStream:c,isWritableStream:u,isReadableStream:f}=ld(),{AbortError:h,codes:{ERR_INVALID_ARG_VALUE:p,ERR_MISSING_ARGS:m}}=Ga(),g=Nf();t.exports=function(...v){if(v.length===0)throw new m("streams");if(v.length===1)return r.from(v[0]);let b=[...v];if(typeof v[0]=="function"&&(v[0]=r.from(v[0])),typeof v[v.length-1]=="function"){let M=v.length-1;v[M]=r.from(v[M])}for(let M=0;M0&&!(s(v[M])||u(v[M])||c(v[M])))throw new p(`streams[${M}]`,b[M],"must be writable")}let y,S,w,E,C;function x(M){let T=E;E=null,T?T(M):M?C.destroy(M):!I&&!O&&C.destroy()}let _=v[0],P=n(v,x),O=!!(s(_)||u(_)||c(_)),I=!!(a(P)||f(P)||c(P));if(C=new r({writableObjectMode:!!(_!=null&&_.writableObjectMode),readableObjectMode:!!(P!=null&&P.writableObjectMode),writable:O,readable:I}),O){if(i(_))C._write=function(T,D,A){_.write(T,D)?A():y=A},C._final=function(T){_.end(),S=T},_.on("drain",function(){if(y){let T=y;y=null,T()}});else if(l(_)){let T=(c(_)?_.writable:_).getWriter();C._write=async function(D,A,j){try{await T.ready,T.write(D).catch(()=>{}),j()}catch(k){j(k)}},C._final=async function(D){try{await T.ready,T.close().catch(()=>{}),S=D}catch(A){D(A)}}}let M=c(P)?P.readable:P;g(M,()=>{if(S){let T=S;S=null,T()}})}if(I){if(i(P))P.on("readable",function(){if(w){let M=w;w=null,M()}}),P.on("end",function(){C.push(null)}),C._read=function(){for(;;){let M=P.read();if(M===null){w=C._read;return}if(!C.push(M))return}};else if(l(P)){let M=(c(P)?P.readable:P).getReader();C._read=async function(){for(;;)try{let{value:T,done:D}=await M.read();if(!C.push(T))return;if(D){C.push(null);return}}catch{return}}}}return C._destroy=function(M,T){!M&&E!==null&&(M=new h),w=null,y=null,S=null,E===null?T(M):(E=T,i(P)&&o(P,M))},C}}),FSe=Zt((e,t)=>{Vt(),qt(),Kt();var n=globalThis.AbortController||b5().AbortController,{codes:{ERR_INVALID_ARG_VALUE:r,ERR_INVALID_ARG_TYPE:o,ERR_MISSING_ARGS:i,ERR_OUT_OF_RANGE:a},AbortError:s}=Ga(),{validateAbortSignal:l,validateInteger:c,validateObject:u}=I_(),f=gi().Symbol("kWeak"),{finished:h}=Nf(),p=GJ(),{addAbortSignalNoValidate:m}=k_(),{isWritable:g,isNodeStream:v}=ld(),{ArrayPrototypePush:b,MathFloor:y,Number:S,NumberIsNaN:w,Promise:E,PromiseReject:C,PromisePrototypeThen:x,Symbol:_}=gi(),P=_("kEmpty"),O=_("kEof");function I(ie,G){if(G!=null&&u(G,"options"),(G==null?void 0:G.signal)!=null&&l(G.signal,"options.signal"),v(ie)&&!g(ie))throw new r("stream",ie,"must be writable");let X=p(this,ie);return G!=null&&G.signal&&m(G.signal,X),X}function M(ie,G){if(typeof ie!="function")throw new o("fn",["Function","AsyncFunction"],ie);G!=null&&u(G,"options"),(G==null?void 0:G.signal)!=null&&l(G.signal,"options.signal");let X=1;return(G==null?void 0:G.concurrency)!=null&&(X=y(G.concurrency)),c(X,"concurrency",1),(async function*(){var ne,le;let ce=new n,oe=this,se=[],fe=ce.signal,te={signal:fe},he=()=>ce.abort();G!=null&&(ne=G.signal)!==null&&ne!==void 0&&ne.aborted&&he(),G==null||(le=G.signal)===null||le===void 0||le.addEventListener("abort",he);let pe,Oe,Me=!1;function Se(){Me=!0}async function ye(){try{for await(let Pe of oe){var ve;if(Me)return;if(fe.aborted)throw new s;try{Pe=ie(Pe,te)}catch(Ne){Pe=C(Ne)}Pe!==P&&(typeof((ve=Pe)===null||ve===void 0?void 0:ve.catch)=="function"&&Pe.catch(Se),se.push(Pe),pe&&(pe(),pe=null),!Me&&se.length&&se.length>=X&&await new E(Ne=>{Oe=Ne}))}se.push(O)}catch(Pe){let Ne=C(Pe);x(Ne,void 0,Se),se.push(Ne)}finally{var be;Me=!0,pe&&(pe(),pe=null),G==null||(be=G.signal)===null||be===void 0||be.removeEventListener("abort",he)}}ye();try{for(;;){for(;se.length>0;){let ve=await se[0];if(ve===O)return;if(fe.aborted)throw new s;ve!==P&&(yield ve),se.shift(),Oe&&(Oe(),Oe=null)}await new E(ve=>{pe=ve})}}finally{ce.abort(),Me=!0,Oe&&(Oe(),Oe=null)}}).call(this)}function T(ie=void 0){return ie!=null&&u(ie,"options"),(ie==null?void 0:ie.signal)!=null&&l(ie.signal,"options.signal"),(async function*(){let G=0;for await(let ne of this){var X;if(ie!=null&&(X=ie.signal)!==null&&X!==void 0&&X.aborted)throw new s({cause:ie.signal.reason});yield[G++,ne]}}).call(this)}async function D(ie,G=void 0){for await(let X of F.call(this,ie,G))return!0;return!1}async function A(ie,G=void 0){if(typeof ie!="function")throw new o("fn",["Function","AsyncFunction"],ie);return!await D.call(this,async(...X)=>!await ie(...X),G)}async function j(ie,G){for await(let X of F.call(this,ie,G))return X}async function k(ie,G){if(typeof ie!="function")throw new o("fn",["Function","AsyncFunction"],ie);async function X(ne,le){return await ie(ne,le),P}for await(let ne of M.call(this,X,G));}function F(ie,G){if(typeof ie!="function")throw new o("fn",["Function","AsyncFunction"],ie);async function X(ne,le){return await ie(ne,le)?ne:P}return M.call(this,X,G)}var V=class extends i{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}};async function W(ie,G,X){var ne;if(typeof ie!="function")throw new o("reducer",["Function","AsyncFunction"],ie);X!=null&&u(X,"options"),(X==null?void 0:X.signal)!=null&&l(X.signal,"options.signal");let le=arguments.length>1;if(X!=null&&(ne=X.signal)!==null&&ne!==void 0&&ne.aborted){let te=new s(void 0,{cause:X.signal.reason});throw this.once("error",()=>{}),await h(this.destroy(te)),te}let ce=new n,oe=ce.signal;if(X!=null&&X.signal){let te={once:!0,[f]:this};X.signal.addEventListener("abort",()=>ce.abort(),te)}let se=!1;try{for await(let te of this){var fe;if(se=!0,X!=null&&(fe=X.signal)!==null&&fe!==void 0&&fe.aborted)throw new s;le?G=await ie(G,te,{signal:oe}):(G=te,le=!0)}if(!se&&!le)throw new V}finally{ce.abort()}return G}async function K(ie){ie!=null&&u(ie,"options"),(ie==null?void 0:ie.signal)!=null&&l(ie.signal,"options.signal");let G=[];for await(let ne of this){var X;if(ie!=null&&(X=ie.signal)!==null&&X!==void 0&&X.aborted)throw new s(void 0,{cause:ie.signal.reason});b(G,ne)}return G}function L(ie,G){let X=M.call(this,ie,G);return(async function*(){for await(let ne of X)yield*ne}).call(this)}function Q(ie){if(ie=S(ie),w(ie))return 0;if(ie<0)throw new a("number",">= 0",ie);return ie}function ee(ie,G=void 0){return G!=null&&u(G,"options"),(G==null?void 0:G.signal)!=null&&l(G.signal,"options.signal"),ie=Q(ie),(async function*(){var X;if(G!=null&&(X=G.signal)!==null&&X!==void 0&&X.aborted)throw new s;for await(let le of this){var ne;if(G!=null&&(ne=G.signal)!==null&&ne!==void 0&&ne.aborted)throw new s;ie--<=0&&(yield le)}}).call(this)}function re(ie,G=void 0){return G!=null&&u(G,"options"),(G==null?void 0:G.signal)!=null&&l(G.signal,"options.signal"),ie=Q(ie),(async function*(){var X;if(G!=null&&(X=G.signal)!==null&&X!==void 0&&X.aborted)throw new s;for await(let le of this){var ne;if(G!=null&&(ne=G.signal)!==null&&ne!==void 0&&ne.aborted)throw new s;if(ie-- >0)yield le;else return}}).call(this)}t.exports.streamReturningOperators={asIndexedPairs:T,drop:ee,filter:F,flatMap:L,map:M,take:re,compose:I},t.exports.promiseReturningOperators={every:A,forEach:k,reduce:W,toArray:K,some:D,find:j}}),YJ=Zt((e,t)=>{Vt(),qt(),Kt();var{ArrayPrototypePop:n,Promise:r}=gi(),{isIterable:o,isNodeStream:i,isWebStream:a}=ld(),{pipelineImpl:s}=E5(),{finished:l}=Nf();XJ();function c(...u){return new r((f,h)=>{let p,m,g=u[u.length-1];if(g&&typeof g=="object"&&!i(g)&&!o(g)&&!a(g)){let v=n(u);p=v.signal,m=v.end}s(u,(v,b)=>{v?h(v):f(b)},{signal:p,end:m})})}t.exports={finished:l,pipeline:c}}),XJ=Zt((e,t)=>{Vt(),qt(),Kt();var{Buffer:n}=(Bi(),Qr(Li)),{ObjectDefineProperty:r,ObjectKeys:o,ReflectApply:i}=gi(),{promisify:{custom:a}}=Xu(),{streamReturningOperators:s,promiseReturningOperators:l}=FSe(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:c}}=Ga(),u=GJ(),{pipeline:f}=E5(),{destroyer:h}=yv(),p=Nf(),m=YJ(),g=ld(),v=t.exports=S5().Stream;v.isDisturbed=g.isDisturbed,v.isErrored=g.isErrored,v.isReadable=g.isReadable,v.Readable=A_();for(let y of o(s)){let S=function(...E){if(new.target)throw c();return v.Readable.from(i(w,this,E))},w=s[y];r(S,"name",{__proto__:null,value:w.name}),r(S,"length",{__proto__:null,value:w.length}),r(v.Readable.prototype,y,{__proto__:null,value:S,enumerable:!1,configurable:!0,writable:!0})}for(let y of o(l)){let S=function(...E){if(new.target)throw c();return i(w,this,E)},w=l[y];r(S,"name",{__proto__:null,value:w.name}),r(S,"length",{__proto__:null,value:w.length}),r(v.Readable.prototype,y,{__proto__:null,value:S,enumerable:!1,configurable:!0,writable:!0})}v.Writable=VJ(),v.Duplex=Qu(),v.Transform=KJ(),v.PassThrough=qJ(),v.pipeline=f;var{addAbortSignal:b}=k_();v.addAbortSignal=b,v.finished=p,v.destroy=h,v.compose=u,r(v,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return m}}),r(f,a,{__proto__:null,enumerable:!0,get(){return m.pipeline}}),r(p,a,{__proto__:null,enumerable:!0,get(){return m.finished}}),v.Stream=v,v._isUint8Array=function(y){return y instanceof Uint8Array},v._uint8ArrayToBuffer=function(y){return n.from(y.buffer,y.byteOffset,y.byteLength)}}),Np=Zt((e,t)=>{Vt(),qt(),Kt();var n=XJ(),r=YJ(),o=n.Readable.destroy;t.exports=n.Readable,t.exports._uint8ArrayToBuffer=n._uint8ArrayToBuffer,t.exports._isUint8Array=n._isUint8Array,t.exports.isDisturbed=n.isDisturbed,t.exports.isErrored=n.isErrored,t.exports.isReadable=n.isReadable,t.exports.Readable=n.Readable,t.exports.Writable=n.Writable,t.exports.Duplex=n.Duplex,t.exports.Transform=n.Transform,t.exports.PassThrough=n.PassThrough,t.exports.addAbortSignal=n.addAbortSignal,t.exports.finished=n.finished,t.exports.destroy=n.destroy,t.exports.destroy=o,t.exports.pipeline=n.pipeline,t.exports.compose=n.compose,Object.defineProperty(n,"promises",{configurable:!0,enumerable:!0,get(){return r}}),t.exports.Stream=n.Stream,t.exports.default=t.exports}),LSe=Zt((e,t)=>{Vt(),qt(),Kt(),typeof Object.create=="function"?t.exports=function(n,r){r&&(n.super_=r,n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(n,r){if(r){n.super_=r;var o=function(){};o.prototype=r.prototype,n.prototype=new o,n.prototype.constructor=n}}}),BSe=Zt((e,t)=>{Vt(),qt(),Kt();var{Buffer:n}=(Bi(),Qr(Li)),r=Symbol.for("BufferList");function o(i){if(!(this instanceof o))return new o(i);o._init.call(this,i)}o._init=function(i){Object.defineProperty(this,r,{value:!0}),this._bufs=[],this.length=0,i&&this.append(i)},o.prototype._new=function(i){return new o(i)},o.prototype._offset=function(i){if(i===0)return[0,0];let a=0;for(let s=0;sthis.length||i<0)return;let a=this._offset(i);return this._bufs[a[0]][a[1]]},o.prototype.slice=function(i,a){return typeof i=="number"&&i<0&&(i+=this.length),typeof a=="number"&&a<0&&(a+=this.length),this.copy(null,0,i,a)},o.prototype.copy=function(i,a,s,l){if((typeof s!="number"||s<0)&&(s=0),(typeof l!="number"||l>this.length)&&(l=this.length),s>=this.length||l<=0)return i||n.alloc(0);let c=!!i,u=this._offset(s),f=l-s,h=f,p=c&&a||0,m=u[1];if(s===0&&l===this.length){if(!c)return this._bufs.length===1?this._bufs[0]:n.concat(this._bufs,this.length);for(let g=0;gv)this._bufs[g].copy(i,p,m),p+=v;else{this._bufs[g].copy(i,p,m,m+h),p+=v;break}h-=v,m&&(m=0)}return i.length>p?i.slice(0,p):i},o.prototype.shallowSlice=function(i,a){if(i=i||0,a=typeof a!="number"?this.length:a,i<0&&(i+=this.length),a<0&&(a+=this.length),i===a)return this._new();let s=this._offset(i),l=this._offset(a),c=this._bufs.slice(s[0],l[0]+1);return l[1]===0?c.pop():c[c.length-1]=c[c.length-1].slice(0,l[1]),s[1]!==0&&(c[0]=c[0].slice(s[1])),this._new(c)},o.prototype.toString=function(i,a,s){return this.slice(a,s).toString(i)},o.prototype.consume=function(i){if(i=Math.trunc(i),Number.isNaN(i)||i<=0)return this;for(;this._bufs.length;)if(i>=this._bufs[0].length)i-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift();else{this._bufs[0]=this._bufs[0].slice(i),this.length-=i;break}return this},o.prototype.duplicate=function(){let i=this._new();for(let a=0;athis.length?this.length:a;let l=this._offset(a),c=l[0],u=l[1];for(;c=i.length){let h=f.indexOf(i,u);if(h!==-1)return this._reverseOffset([c,h]);u=f.length-i.length+1}else{let h=this._reverseOffset([c,u]);if(this._match(h,i))return h;u++}u=0}return-1},o.prototype._match=function(i,a){if(this.length-i{Vt(),qt(),Kt();var n=Np().Duplex,r=LSe(),o=BSe();function i(a){if(!(this instanceof i))return new i(a);if(typeof a=="function"){this._callback=a;let s=(function(l){this._callback&&(this._callback(l),this._callback=null)}).bind(this);this.on("pipe",function(l){l.on("error",s)}),this.on("unpipe",function(l){l.removeListener("error",s)}),a=null}o._init.call(this,a),n.call(this)}r(i,n),Object.assign(i.prototype,o.prototype),i.prototype._new=function(a){return new i(a)},i.prototype._write=function(a,s,l){this._appendBuffer(a),typeof l=="function"&&l()},i.prototype._read=function(a){if(!this.length)return this.push(null);a=Math.min(a,this.length),this.push(this.slice(0,a)),this.consume(a)},i.prototype.end=function(a){n.prototype.end.call(this,a),this._callback&&(this._callback(null,this.slice()),this._callback=null)},i.prototype._destroy=function(a,s){this._bufs.length=0,this.length=0,s(a)},i.prototype._isBufferList=function(a){return a instanceof i||a instanceof o||i.isBufferList(a)},i.isBufferList=o.isBufferList,t.exports=i,t.exports.BufferListStream=i,t.exports.BufferList=o}),HSe=Zt((e,t)=>{Vt(),qt(),Kt();var n=class{constructor(){this.cmd=null,this.retain=!1,this.qos=0,this.dup=!1,this.length=-1,this.topic=null,this.payload=null}};t.exports=n}),QJ=Zt((e,t)=>{Vt(),qt(),Kt();var n=t.exports,{Buffer:r}=(Bi(),Qr(Li));n.types={0:"reserved",1:"connect",2:"connack",3:"publish",4:"puback",5:"pubrec",6:"pubrel",7:"pubcomp",8:"subscribe",9:"suback",10:"unsubscribe",11:"unsuback",12:"pingreq",13:"pingresp",14:"disconnect",15:"auth"},n.requiredHeaderFlags={1:0,2:0,4:0,5:0,6:2,7:0,8:2,9:0,10:2,11:0,12:0,13:0,14:0,15:0},n.requiredHeaderFlagsErrors={};for(let i in n.requiredHeaderFlags){let a=n.requiredHeaderFlags[i];n.requiredHeaderFlagsErrors[i]="Invalid header flag bits, must be 0x"+a.toString(16)+" for "+n.types[i]+" packet"}n.codes={};for(let i in n.types){let a=n.types[i];n.codes[a]=i}n.CMD_SHIFT=4,n.CMD_MASK=240,n.DUP_MASK=8,n.QOS_MASK=3,n.QOS_SHIFT=1,n.RETAIN_MASK=1,n.VARBYTEINT_MASK=127,n.VARBYTEINT_FIN_MASK=128,n.VARBYTEINT_MAX=268435455,n.SESSIONPRESENT_MASK=1,n.SESSIONPRESENT_HEADER=r.from([n.SESSIONPRESENT_MASK]),n.CONNACK_HEADER=r.from([n.codes.connack<[0,1].map(s=>[0,1].map(l=>{let c=r.alloc(1);return c.writeUInt8(n.codes[i]<r.from([i])),n.EMPTY={pingreq:r.from([n.codes.pingreq<<4,0]),pingresp:r.from([n.codes.pingresp<<4,0]),disconnect:r.from([n.codes.disconnect<<4,0])},n.MQTT5_PUBACK_PUBREC_CODES={0:"Success",16:"No matching subscribers",128:"Unspecified error",131:"Implementation specific error",135:"Not authorized",144:"Topic Name invalid",145:"Packet identifier in use",151:"Quota exceeded",153:"Payload format invalid"},n.MQTT5_PUBREL_PUBCOMP_CODES={0:"Success",146:"Packet Identifier not found"},n.MQTT5_SUBACK_CODES={0:"Granted QoS 0",1:"Granted QoS 1",2:"Granted QoS 2",128:"Unspecified error",131:"Implementation specific error",135:"Not authorized",143:"Topic Filter invalid",145:"Packet Identifier in use",151:"Quota exceeded",158:"Shared Subscriptions not supported",161:"Subscription Identifiers not supported",162:"Wildcard Subscriptions not supported"},n.MQTT5_UNSUBACK_CODES={0:"Success",17:"No subscription existed",128:"Unspecified error",131:"Implementation specific error",135:"Not authorized",143:"Topic Filter invalid",145:"Packet Identifier in use"},n.MQTT5_DISCONNECT_CODES={0:"Normal disconnection",4:"Disconnect with Will Message",128:"Unspecified error",129:"Malformed Packet",130:"Protocol Error",131:"Implementation specific error",135:"Not authorized",137:"Server busy",139:"Server shutting down",141:"Keep Alive timeout",142:"Session taken over",143:"Topic Filter invalid",144:"Topic Name invalid",147:"Receive Maximum exceeded",148:"Topic Alias invalid",149:"Packet too large",150:"Message rate too high",151:"Quota exceeded",152:"Administrative action",153:"Payload format invalid",154:"Retain not supported",155:"QoS not supported",156:"Use another server",157:"Server moved",158:"Shared Subscriptions not supported",159:"Connection rate exceeded",160:"Maximum connect time",161:"Subscription Identifiers not supported",162:"Wildcard Subscriptions not supported"},n.MQTT5_AUTH_CODES={0:"Success",24:"Continue authentication",25:"Re-authenticate"}}),USe=Zt((e,t)=>{Vt(),qt(),Kt();var n=1e3,r=n*60,o=r*60,i=o*24,a=i*7,s=i*365.25;t.exports=function(h,p){p=p||{};var m=typeof h;if(m==="string"&&h.length>0)return l(h);if(m==="number"&&isFinite(h))return p.long?u(h):c(h);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(h))};function l(h){if(h=String(h),!(h.length>100)){var p=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(h);if(p){var m=parseFloat(p[1]),g=(p[2]||"ms").toLowerCase();switch(g){case"years":case"year":case"yrs":case"yr":case"y":return m*s;case"weeks":case"week":case"w":return m*a;case"days":case"day":case"d":return m*i;case"hours":case"hour":case"hrs":case"hr":case"h":return m*o;case"minutes":case"minute":case"mins":case"min":case"m":return m*r;case"seconds":case"second":case"secs":case"sec":case"s":return m*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return m;default:return}}}}function c(h){var p=Math.abs(h);return p>=i?Math.round(h/i)+"d":p>=o?Math.round(h/o)+"h":p>=r?Math.round(h/r)+"m":p>=n?Math.round(h/n)+"s":h+"ms"}function u(h){var p=Math.abs(h);return p>=i?f(h,p,i,"day"):p>=o?f(h,p,o,"hour"):p>=r?f(h,p,r,"minute"):p>=n?f(h,p,n,"second"):h+" ms"}function f(h,p,m,g){var v=p>=m*1.5;return Math.round(h/m)+" "+g+(v?"s":"")}}),WSe=Zt((e,t)=>{Vt(),qt(),Kt();function n(r){i.debug=i,i.default=i,i.coerce=f,i.disable=l,i.enable=s,i.enabled=c,i.humanize=USe(),i.destroy=h,Object.keys(r).forEach(p=>{i[p]=r[p]}),i.names=[],i.skips=[],i.formatters={};function o(p){let m=0;for(let g=0;g{if(_==="%%")return"%";x++;let O=i.formatters[P];if(typeof O=="function"){let I=S[x];_=O.call(w,I),S.splice(x,1),x--}return _}),i.formatArgs.call(w,S),(w.log||i.log).apply(w,S)}return y.namespace=p,y.useColors=i.useColors(),y.color=i.selectColor(p),y.extend=a,y.destroy=i.destroy,Object.defineProperty(y,"enabled",{enumerable:!0,configurable:!1,get:()=>g!==null?g:(v!==i.namespaces&&(v=i.namespaces,b=i.enabled(p)),b),set:S=>{g=S}}),typeof i.init=="function"&&i.init(y),y}function a(p,m){let g=i(this.namespace+(typeof m>"u"?":":m)+p);return g.log=this.log,g}function s(p){i.save(p),i.namespaces=p,i.names=[],i.skips=[];let m,g=(typeof p=="string"?p:"").split(/[\s,]+/),v=g.length;for(m=0;m"-"+m)].join(",");return i.enable(""),p}function c(p){if(p[p.length-1]==="*")return!0;let m,g;for(m=0,g=i.skips.length;m{Vt(),qt(),Kt(),e.formatArgs=r,e.save=o,e.load=i,e.useColors=n,e.storage=a(),e.destroy=(()=>{let l=!1;return()=>{l||(l=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function n(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function r(l){if(l[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+l[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;let c="color: "+this.color;l.splice(1,0,c,"color: inherit");let u=0,f=0;l[0].replace(/%[a-zA-Z%]/g,h=>{h!=="%%"&&(u++,h==="%c"&&(f=u))}),l.splice(f,0,c)}e.log=console.debug||console.log||(()=>{});function o(l){try{l?e.storage.setItem("debug",l):e.storage.removeItem("debug")}catch{}}function i(){let l;try{l=e.storage.getItem("debug")}catch{}return!l&&typeof jr<"u"&&"env"in jr&&(l=jr.env.DEBUG),l}function a(){try{return localStorage}catch{}}t.exports=WSe()(e);var{formatters:s}=t.exports;s.j=function(l){try{return JSON.stringify(l)}catch(c){return"[UnexpectedJSONParseError]: "+c.message}}}),VSe=Zt((e,t)=>{Vt(),qt(),Kt();var n=zSe(),{EventEmitter:r}=(bv(),Qr(kp)),o=HSe(),i=QJ(),a=Ju()("mqtt-packet:parser"),s=class V4 extends r{constructor(){super(),this.parser=this.constructor.parser}static parser(c){return this instanceof V4?(this.settings=c||{},this._states=["_parseHeader","_parseLength","_parsePayload","_newPacket"],this._resetState(),this):new V4().parser(c)}_resetState(){a("_resetState: resetting packet, error, _list, and _stateCounter"),this.packet=new o,this.error=null,this._list=n(),this._stateCounter=0}parse(c){for(this.error&&this._resetState(),this._list.append(c),a("parse: current state: %s",this._states[this._stateCounter]);(this.packet.length!==-1||this._list.length>0)&&this[this._states[this._stateCounter]]()&&!this.error;)this._stateCounter++,a("parse: state complete. _stateCounter is now: %d",this._stateCounter),a("parse: packet.length: %d, buffer list length: %d",this.packet.length,this._list.length),this._stateCounter>=this._states.length&&(this._stateCounter=0);return a("parse: exited while loop. packet: %d, buffer list length: %d",this.packet.length,this._list.length),this._list.length}_parseHeader(){let c=this._list.readUInt8(0),u=c>>i.CMD_SHIFT;this.packet.cmd=i.types[u];let f=c&15,h=i.requiredHeaderFlags[u];return h!=null&&f!==h?this._emitError(new Error(i.requiredHeaderFlagsErrors[u])):(this.packet.retain=(c&i.RETAIN_MASK)!==0,this.packet.qos=c>>i.QOS_SHIFT&i.QOS_MASK,this.packet.qos>2?this._emitError(new Error("Packet must not have both QoS bits set to 1")):(this.packet.dup=(c&i.DUP_MASK)!==0,a("_parseHeader: packet: %o",this.packet),this._list.consume(1),!0))}_parseLength(){let c=this._parseVarByteNum(!0);return c&&(this.packet.length=c.value,this._list.consume(c.bytes)),a("_parseLength %d",c.value),!!c}_parsePayload(){a("_parsePayload: payload %O",this._list);let c=!1;if(this.packet.length===0||this._list.length>=this.packet.length){switch(this._pos=0,this.packet.cmd){case"connect":this._parseConnect();break;case"connack":this._parseConnack();break;case"publish":this._parsePublish();break;case"puback":case"pubrec":case"pubrel":case"pubcomp":this._parseConfirmation();break;case"subscribe":this._parseSubscribe();break;case"suback":this._parseSuback();break;case"unsubscribe":this._parseUnsubscribe();break;case"unsuback":this._parseUnsuback();break;case"pingreq":case"pingresp":break;case"disconnect":this._parseDisconnect();break;case"auth":this._parseAuth();break;default:this._emitError(new Error("Not supported"))}c=!0}return a("_parsePayload complete result: %s",c),c}_parseConnect(){a("_parseConnect");let c,u,f,h,p={},m=this.packet,g=this._parseString();if(g===null)return this._emitError(new Error("Cannot parse protocolId"));if(g!=="MQTT"&&g!=="MQIsdp")return this._emitError(new Error("Invalid protocolId"));if(m.protocolId=g,this._pos>=this._list.length)return this._emitError(new Error("Packet too short"));if(m.protocolVersion=this._list.readUInt8(this._pos),m.protocolVersion>=128&&(m.bridgeMode=!0,m.protocolVersion=m.protocolVersion-128),m.protocolVersion!==3&&m.protocolVersion!==4&&m.protocolVersion!==5)return this._emitError(new Error("Invalid protocol version"));if(this._pos++,this._pos>=this._list.length)return this._emitError(new Error("Packet too short"));if(this._list.readUInt8(this._pos)&1)return this._emitError(new Error("Connect flag bit 0 must be 0, but got 1"));p.username=this._list.readUInt8(this._pos)&i.USERNAME_MASK,p.password=this._list.readUInt8(this._pos)&i.PASSWORD_MASK,p.will=this._list.readUInt8(this._pos)&i.WILL_FLAG_MASK;let v=!!(this._list.readUInt8(this._pos)&i.WILL_RETAIN_MASK),b=(this._list.readUInt8(this._pos)&i.WILL_QOS_MASK)>>i.WILL_QOS_SHIFT;if(p.will)m.will={},m.will.retain=v,m.will.qos=b;else{if(v)return this._emitError(new Error("Will Retain Flag must be set to zero when Will Flag is set to 0"));if(b)return this._emitError(new Error("Will QoS must be set to zero when Will Flag is set to 0"))}if(m.clean=(this._list.readUInt8(this._pos)&i.CLEAN_SESSION_MASK)!==0,this._pos++,m.keepalive=this._parseNum(),m.keepalive===-1)return this._emitError(new Error("Packet too short"));if(m.protocolVersion===5){let S=this._parseProperties();Object.getOwnPropertyNames(S).length&&(m.properties=S)}let y=this._parseString();if(y===null)return this._emitError(new Error("Packet too short"));if(m.clientId=y,a("_parseConnect: packet.clientId: %s",m.clientId),p.will){if(m.protocolVersion===5){let S=this._parseProperties();Object.getOwnPropertyNames(S).length&&(m.will.properties=S)}if(c=this._parseString(),c===null)return this._emitError(new Error("Cannot parse will topic"));if(m.will.topic=c,a("_parseConnect: packet.will.topic: %s",m.will.topic),u=this._parseBuffer(),u===null)return this._emitError(new Error("Cannot parse will payload"));m.will.payload=u,a("_parseConnect: packet.will.paylaod: %s",m.will.payload)}if(p.username){if(h=this._parseString(),h===null)return this._emitError(new Error("Cannot parse username"));m.username=h,a("_parseConnect: packet.username: %s",m.username)}if(p.password){if(f=this._parseBuffer(),f===null)return this._emitError(new Error("Cannot parse password"));m.password=f}return this.settings=m,a("_parseConnect: complete"),m}_parseConnack(){a("_parseConnack");let c=this.packet;if(this._list.length<1)return null;let u=this._list.readUInt8(this._pos++);if(u>1)return this._emitError(new Error("Invalid connack flags, bits 7-1 must be set to 0"));if(c.sessionPresent=!!(u&i.SESSIONPRESENT_MASK),this.settings.protocolVersion===5)this._list.length>=2?c.reasonCode=this._list.readUInt8(this._pos++):c.reasonCode=0;else{if(this._list.length<2)return null;c.returnCode=this._list.readUInt8(this._pos++)}if(c.returnCode===-1||c.reasonCode===-1)return this._emitError(new Error("Cannot parse return code"));if(this.settings.protocolVersion===5){let f=this._parseProperties();Object.getOwnPropertyNames(f).length&&(c.properties=f)}a("_parseConnack: complete")}_parsePublish(){a("_parsePublish");let c=this.packet;if(c.topic=this._parseString(),c.topic===null)return this._emitError(new Error("Cannot parse topic"));if(!(c.qos>0&&!this._parseMessageId())){if(this.settings.protocolVersion===5){let u=this._parseProperties();Object.getOwnPropertyNames(u).length&&(c.properties=u)}c.payload=this._list.slice(this._pos,c.length),a("_parsePublish: payload from buffer list: %o",c.payload)}}_parseSubscribe(){a("_parseSubscribe");let c=this.packet,u,f,h,p,m,g,v;if(c.subscriptions=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){let b=this._parseProperties();Object.getOwnPropertyNames(b).length&&(c.properties=b)}if(c.length<=0)return this._emitError(new Error("Malformed subscribe, no payload specified"));for(;this._pos=c.length)return this._emitError(new Error("Malformed Subscribe Payload"));if(f=this._parseByte(),this.settings.protocolVersion===5){if(f&192)return this._emitError(new Error("Invalid subscribe topic flag bits, bits 7-6 must be 0"))}else if(f&252)return this._emitError(new Error("Invalid subscribe topic flag bits, bits 7-2 must be 0"));if(h=f&i.SUBSCRIBE_OPTIONS_QOS_MASK,h>2)return this._emitError(new Error("Invalid subscribe QoS, must be <= 2"));if(g=(f>>i.SUBSCRIBE_OPTIONS_NL_SHIFT&i.SUBSCRIBE_OPTIONS_NL_MASK)!==0,m=(f>>i.SUBSCRIBE_OPTIONS_RAP_SHIFT&i.SUBSCRIBE_OPTIONS_RAP_MASK)!==0,p=f>>i.SUBSCRIBE_OPTIONS_RH_SHIFT&i.SUBSCRIBE_OPTIONS_RH_MASK,p>2)return this._emitError(new Error("Invalid retain handling, must be <= 2"));v={topic:u,qos:h},this.settings.protocolVersion===5?(v.nl=g,v.rap=m,v.rh=p):this.settings.bridgeMode&&(v.rh=0,v.rap=!0,v.nl=!0),a("_parseSubscribe: push subscription `%s` to subscription",v),c.subscriptions.push(v)}}}_parseSuback(){a("_parseSuback");let c=this.packet;if(this.packet.granted=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){let u=this._parseProperties();Object.getOwnPropertyNames(u).length&&(c.properties=u)}if(c.length<=0)return this._emitError(new Error("Malformed suback, no payload specified"));for(;this._pos2&&u!==128)return this._emitError(new Error("Invalid suback QoS, must be 0, 1, 2 or 128"));this.packet.granted.push(u)}}}_parseUnsubscribe(){a("_parseUnsubscribe");let c=this.packet;if(c.unsubscriptions=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){let u=this._parseProperties();Object.getOwnPropertyNames(u).length&&(c.properties=u)}if(c.length<=0)return this._emitError(new Error("Malformed unsubscribe, no payload specified"));for(;this._pos2){switch(c.reasonCode=this._parseByte(),this.packet.cmd){case"puback":case"pubrec":if(!i.MQTT5_PUBACK_PUBREC_CODES[c.reasonCode])return this._emitError(new Error("Invalid "+this.packet.cmd+" reason code"));break;case"pubrel":case"pubcomp":if(!i.MQTT5_PUBREL_PUBCOMP_CODES[c.reasonCode])return this._emitError(new Error("Invalid "+this.packet.cmd+" reason code"));break}a("_parseConfirmation: packet.reasonCode `%d`",c.reasonCode)}else c.reasonCode=0;if(c.length>3){let u=this._parseProperties();Object.getOwnPropertyNames(u).length&&(c.properties=u)}}return!0}_parseDisconnect(){let c=this.packet;if(a("_parseDisconnect"),this.settings.protocolVersion===5){this._list.length>0?(c.reasonCode=this._parseByte(),i.MQTT5_DISCONNECT_CODES[c.reasonCode]||this._emitError(new Error("Invalid disconnect reason code"))):c.reasonCode=0;let u=this._parseProperties();Object.getOwnPropertyNames(u).length&&(c.properties=u)}return a("_parseDisconnect result: true"),!0}_parseAuth(){a("_parseAuth");let c=this.packet;if(this.settings.protocolVersion!==5)return this._emitError(new Error("Not supported auth packet for this version MQTT"));if(c.reasonCode=this._parseByte(),!i.MQTT5_AUTH_CODES[c.reasonCode])return this._emitError(new Error("Invalid auth reason code"));let u=this._parseProperties();return Object.getOwnPropertyNames(u).length&&(c.properties=u),a("_parseAuth: result: true"),!0}_parseMessageId(){let c=this.packet;return c.messageId=this._parseNum(),c.messageId===null?(this._emitError(new Error("Cannot parse messageId")),!1):(a("_parseMessageId: packet.messageId %d",c.messageId),!0)}_parseString(c){let u=this._parseNum(),f=u+this._pos;if(u===-1||f>this._list.length||f>this.packet.length)return null;let h=this._list.toString("utf8",this._pos,f);return this._pos+=u,a("_parseString: result: %s",h),h}_parseStringPair(){return a("_parseStringPair"),{name:this._parseString(),value:this._parseString()}}_parseBuffer(){let c=this._parseNum(),u=c+this._pos;if(c===-1||u>this._list.length||u>this.packet.length)return null;let f=this._list.slice(this._pos,u);return this._pos+=c,a("_parseBuffer: result: %o",f),f}_parseNum(){if(this._list.length-this._pos<2)return-1;let c=this._list.readUInt16BE(this._pos);return this._pos+=2,a("_parseNum: result: %s",c),c}_parse4ByteNum(){if(this._list.length-this._pos<4)return-1;let c=this._list.readUInt32BE(this._pos);return this._pos+=4,a("_parse4ByteNum: result: %s",c),c}_parseVarByteNum(c){a("_parseVarByteNum");let u=4,f=0,h=1,p=0,m=!1,g,v=this._pos?this._pos:0;for(;f=f&&this._emitError(new Error("Invalid variable byte integer")),v&&(this._pos+=f),m?c?m={bytes:f,value:p}:m=p:m=!1,a("_parseVarByteNum: result: %o",m),m}_parseByte(){let c;return this._pos{Vt(),qt(),Kt();var{Buffer:n}=(Bi(),Qr(Li)),r=65536,o={},i=n.isBuffer(n.from([1,2]).subarray(0,1));function a(u){let f=n.allocUnsafe(2);return f.writeUInt8(u>>8,0),f.writeUInt8(u&255,1),f}function s(){for(let u=0;u0&&(f=f|128),p.writeUInt8(f,h++);while(u>0&&h<4);return u>0&&(h=0),i?p.subarray(0,h):p.slice(0,h)}function c(u){let f=n.allocUnsafe(4);return f.writeUInt32BE(u,0),f}t.exports={cache:o,generateCache:s,generateNumber:a,genBufVariableByteInt:l,generate4ByteBuffer:c}}),qSe=Zt((e,t)=>{Vt(),qt(),Kt(),typeof jr>"u"||!jr.version||jr.version.indexOf("v0.")===0||jr.version.indexOf("v1.")===0&&jr.version.indexOf("v1.8.")!==0?t.exports={nextTick:n}:t.exports=jr;function n(r,o,i,a){if(typeof r!="function")throw new TypeError('"callback" argument must be a function');var s=arguments.length,l,c;switch(s){case 0:case 1:return jr.nextTick(r);case 2:return jr.nextTick(function(){r.call(null,o)});case 3:return jr.nextTick(function(){r.call(null,o,i)});case 4:return jr.nextTick(function(){r.call(null,o,i,a)});default:for(l=new Array(s-1),c=0;c{Vt(),qt(),Kt();var n=QJ(),{Buffer:r}=(Bi(),Qr(Li)),o=r.allocUnsafe(0),i=r.from([0]),a=KSe(),s=qSe().nextTick,l=Ju()("mqtt-packet:writeToStream"),c=a.cache,u=a.generateNumber,f=a.generateCache,h=a.genBufVariableByteInt,p=a.generate4ByteBuffer,m=k,g=!0;function v(G,X,ne){switch(l("generate called"),X.cork&&(X.cork(),s(b,X)),g&&(g=!1,f()),l("generate: packet.cmd: %s",G.cmd),G.cmd){case"connect":return y(G,X);case"connack":return S(G,X,ne);case"publish":return w(G,X,ne);case"puback":case"pubrec":case"pubrel":case"pubcomp":return E(G,X,ne);case"subscribe":return C(G,X,ne);case"suback":return x(G,X,ne);case"unsubscribe":return _(G,X,ne);case"unsuback":return P(G,X,ne);case"pingreq":case"pingresp":return O(G,X);case"disconnect":return I(G,X,ne);case"auth":return M(G,X,ne);default:return X.destroy(new Error("Unknown command")),!1}}Object.defineProperty(v,"cacheNumbers",{get(){return m===k},set(G){G?((!c||Object.keys(c).length===0)&&(g=!0),m=k):(g=!1,m=F)}});function b(G){G.uncork()}function y(G,X,ne){let le=G||{},ce=le.protocolId||"MQTT",oe=le.protocolVersion||4,se=le.will,fe=le.clean,te=le.keepalive||0,he=le.clientId||"",pe=le.username,Oe=le.password,Me=le.properties;fe===void 0&&(fe=!0);let Se=0;if(!ce||typeof ce!="string"&&!r.isBuffer(ce))return X.destroy(new Error("Invalid protocolId")),!1;if(Se+=ce.length+2,oe!==3&&oe!==4&&oe!==5)return X.destroy(new Error("Invalid protocol version")),!1;if(Se+=1,(typeof he=="string"||r.isBuffer(he))&&(he||oe>=4)&&(he||fe))Se+=r.byteLength(he)+2;else{if(oe<4)return X.destroy(new Error("clientId must be supplied before 3.1.1")),!1;if(fe*1===0)return X.destroy(new Error("clientId must be given if cleanSession set to 0")),!1}if(typeof te!="number"||te<0||te>65535||te%1!==0)return X.destroy(new Error("Invalid keepalive")),!1;Se+=2,Se+=1;let ye,ve;if(oe===5){if(ye=K(X,Me),!ye)return!1;Se+=ye.length}if(se){if(typeof se!="object")return X.destroy(new Error("Invalid will")),!1;if(!se.topic||typeof se.topic!="string")return X.destroy(new Error("Invalid will topic")),!1;if(Se+=r.byteLength(se.topic)+2,Se+=2,se.payload)if(se.payload.length>=0)typeof se.payload=="string"?Se+=r.byteLength(se.payload):Se+=se.payload.length;else return X.destroy(new Error("Invalid will payload")),!1;if(ve={},oe===5){if(ve=K(X,se.properties),!ve)return!1;Se+=ve.length}}let be=!1;if(pe!=null)if(ie(pe))be=!0,Se+=r.byteLength(pe)+2;else return X.destroy(new Error("Invalid username")),!1;if(Oe!=null){if(!be)return X.destroy(new Error("Username is required to use password")),!1;if(ie(Oe))Se+=re(Oe)+2;else return X.destroy(new Error("Invalid password")),!1}X.write(n.CONNECT_HEADER),D(X,Se),W(X,ce),le.bridgeMode&&(oe+=128),X.write(oe===131?n.VERSION131:oe===132?n.VERSION132:oe===4?n.VERSION4:oe===5?n.VERSION5:n.VERSION3);let Pe=0;return Pe|=pe!=null?n.USERNAME_MASK:0,Pe|=Oe!=null?n.PASSWORD_MASK:0,Pe|=se&&se.retain?n.WILL_RETAIN_MASK:0,Pe|=se&&se.qos?se.qos<0&&m(X,he),Me==null||Me.write(),l("publish: payload: %o",te),X.write(te)}function E(G,X,ne){let le=ne?ne.protocolVersion:4,ce=G||{},oe=ce.cmd||"puback",se=ce.messageId,fe=ce.dup&&oe==="pubrel"?n.DUP_MASK:0,te=0,he=ce.reasonCode,pe=ce.properties,Oe=le===5?3:2;if(oe==="pubrel"&&(te=1),typeof se!="number")return X.destroy(new Error("Invalid messageId")),!1;let Me=null;if(le===5&&typeof pe=="object"){if(Me=L(X,pe,ne,Oe),!Me)return!1;Oe+=Me.length}return X.write(n.ACKS[oe][te][fe][0]),Oe===3&&(Oe+=he!==0?1:-1),D(X,Oe),m(X,se),le===5&&Oe!==2&&X.write(r.from([he])),Me!==null?Me.write():Oe===4&&X.write(r.from([0])),!0}function C(G,X,ne){l("subscribe: packet: ");let le=ne?ne.protocolVersion:4,ce=G||{},oe=ce.dup?n.DUP_MASK:0,se=ce.messageId,fe=ce.subscriptions,te=ce.properties,he=0;if(typeof se!="number")return X.destroy(new Error("Invalid messageId")),!1;he+=2;let pe=null;if(le===5){if(pe=K(X,te),!pe)return!1;he+=pe.length}if(typeof fe=="object"&&fe.length)for(let Me=0;Me2)return X.destroy(new Error("Invalid subscriptions - invalid Retain Handling")),!1}he+=r.byteLength(Se)+2+1}else return X.destroy(new Error("Invalid subscriptions")),!1;l("subscribe: writing to stream: %o",n.SUBSCRIBE_HEADER),X.write(n.SUBSCRIBE_HEADER[1][oe?1:0][0]),D(X,he),m(X,se),pe!==null&&pe.write();let Oe=!0;for(let Me of fe){let Se=Me.topic,ye=Me.qos,ve=+Me.nl,be=+Me.rap,Pe=Me.rh,Ne;A(X,Se),Ne=n.SUBSCRIBE_OPTIONS_QOS[ye],le===5&&(Ne|=ve?n.SUBSCRIBE_OPTIONS_NL:0,Ne|=be?n.SUBSCRIBE_OPTIONS_RAP:0,Ne|=Pe?n.SUBSCRIBE_OPTIONS_RH[Pe]:0),Oe=X.write(r.from([Ne]))}return Oe}function x(G,X,ne){let le=ne?ne.protocolVersion:4,ce=G||{},oe=ce.messageId,se=ce.granted,fe=ce.properties,te=0;if(typeof oe!="number")return X.destroy(new Error("Invalid messageId")),!1;if(te+=2,typeof se=="object"&&se.length)for(let pe=0;pen.VARBYTEINT_MAX)return G.destroy(new Error(`Invalid variable byte integer: ${X}`)),!1;let ne=T[X];return ne||(ne=h(X),X<16384&&(T[X]=ne)),l("writeVarByteInt: writing to stream: %o",ne),G.write(ne)}function A(G,X){let ne=r.byteLength(X);return m(G,ne),l("writeString: %s",X),G.write(X,"utf8")}function j(G,X,ne){A(G,X),A(G,ne)}function k(G,X){return l("writeNumberCached: number: %d",X),l("writeNumberCached: %o",c[X]),G.write(c[X])}function F(G,X){let ne=u(X);return l("writeNumberGenerated: %o",ne),G.write(ne)}function V(G,X){let ne=p(X);return l("write4ByteNumber: %o",ne),G.write(ne)}function W(G,X){typeof X=="string"?A(G,X):X?(m(G,X.length),G.write(X)):m(G,0)}function K(G,X){if(typeof X!="object"||X.length!=null)return{length:1,write(){ee(G,{},0)}};let ne=0;function le(ce,oe){let se=n.propertiesTypes[ce],fe=0;switch(se){case"byte":{if(typeof oe!="boolean")return G.destroy(new Error(`Invalid ${ce}: ${oe}`)),!1;fe+=2;break}case"int8":{if(typeof oe!="number"||oe<0||oe>255)return G.destroy(new Error(`Invalid ${ce}: ${oe}`)),!1;fe+=2;break}case"binary":{if(oe&&oe===null)return G.destroy(new Error(`Invalid ${ce}: ${oe}`)),!1;fe+=1+r.byteLength(oe)+2;break}case"int16":{if(typeof oe!="number"||oe<0||oe>65535)return G.destroy(new Error(`Invalid ${ce}: ${oe}`)),!1;fe+=3;break}case"int32":{if(typeof oe!="number"||oe<0||oe>4294967295)return G.destroy(new Error(`Invalid ${ce}: ${oe}`)),!1;fe+=5;break}case"var":{if(typeof oe!="number"||oe<0||oe>268435455)return G.destroy(new Error(`Invalid ${ce}: ${oe}`)),!1;fe+=1+r.byteLength(h(oe));break}case"string":{if(typeof oe!="string")return G.destroy(new Error(`Invalid ${ce}: ${oe}`)),!1;fe+=3+r.byteLength(oe.toString());break}case"pair":{if(typeof oe!="object")return G.destroy(new Error(`Invalid ${ce}: ${oe}`)),!1;fe+=Object.getOwnPropertyNames(oe).reduce((te,he)=>{let pe=oe[he];return Array.isArray(pe)?te+=pe.reduce((Oe,Me)=>(Oe+=3+r.byteLength(he.toString())+2+r.byteLength(Me.toString()),Oe),0):te+=3+r.byteLength(he.toString())+2+r.byteLength(oe[he].toString()),te},0);break}default:return G.destroy(new Error(`Invalid property ${ce}: ${oe}`)),!1}return fe}if(X)for(let ce in X){let oe=0,se=0,fe=X[ce];if(Array.isArray(fe))for(let te=0;teoe;){let fe=ce.shift();if(fe&&X[fe])delete X[fe],se=K(G,X);else return!1}return se}function Q(G,X,ne){switch(n.propertiesTypes[X]){case"byte":{G.write(r.from([n.properties[X]])),G.write(r.from([+ne]));break}case"int8":{G.write(r.from([n.properties[X]])),G.write(r.from([ne]));break}case"binary":{G.write(r.from([n.properties[X]])),W(G,ne);break}case"int16":{G.write(r.from([n.properties[X]])),m(G,ne);break}case"int32":{G.write(r.from([n.properties[X]])),V(G,ne);break}case"var":{G.write(r.from([n.properties[X]])),D(G,ne);break}case"string":{G.write(r.from([n.properties[X]])),A(G,ne);break}case"pair":{Object.getOwnPropertyNames(ne).forEach(le=>{let ce=ne[le];Array.isArray(ce)?ce.forEach(oe=>{G.write(r.from([n.properties[X]])),j(G,le.toString(),oe.toString())}):(G.write(r.from([n.properties[X]])),j(G,le.toString(),ce.toString()))});break}default:return G.destroy(new Error(`Invalid property ${X} value: ${ne}`)),!1}}function ee(G,X,ne){D(G,ne);for(let le in X)if(Object.prototype.hasOwnProperty.call(X,le)&&X[le]!==null){let ce=X[le];if(Array.isArray(ce))for(let oe=0;oe{Vt(),qt(),Kt();var n=JJ(),{EventEmitter:r}=(bv(),Qr(kp)),{Buffer:o}=(Bi(),Qr(Li));function i(s,l){let c=new a;return n(s,c,l),c.concat()}var a=class extends r{constructor(){super(),this._array=new Array(20),this._i=0}write(s){return this._array[this._i++]=s,!0}concat(){let s=0,l=new Array(this._array.length),c=this._array,u=0,f;for(f=0;f{Vt(),qt(),Kt(),e.parser=VSe().parser,e.generate=GSe(),e.writeToStream=JJ()}),ZJ=Zt(e=>{Vt(),qt(),Kt(),Object.defineProperty(e,"__esModule",{value:!0});var t=class{constructor(){this.nextId=Math.max(1,Math.floor(Math.random()*65535))}allocate(){let n=this.nextId++;return this.nextId===65536&&(this.nextId=1),n}getLastAllocated(){return this.nextId===1?65535:this.nextId-1}register(n){return!0}deallocate(n){}clear(){}};e.default=t}),XSe=Zt((e,t)=>{Vt(),qt(),Kt(),t.exports=r;function n(i){return i instanceof c2?c2.from(i):new i.constructor(i.buffer.slice(),i.byteOffset,i.length)}function r(i){if(i=i||{},i.circles)return o(i);return i.proto?l:s;function a(c,u){for(var f=Object.keys(c),h=new Array(f.length),p=0;p{Vt(),qt(),Kt(),t.exports=XSe()()}),JSe=Zt(e=>{Vt(),qt(),Kt(),Object.defineProperty(e,"__esModule",{value:!0}),e.validateTopics=e.validateTopic=void 0;function t(r){let o=r.split("/");for(let i=0;i{Vt(),qt(),Kt(),Object.defineProperty(e,"__esModule",{value:!0});var t=Np(),n={objectMode:!0},r={clean:!0},o=class{constructor(i){this.options=i||{},this.options=Object.assign(Object.assign({},r),i),this._inflights=new Map}put(i,a){return this._inflights.set(i.messageId,i),a&&a(),this}createStream(){let i=new t.Readable(n),a=[],s=!1,l=0;return this._inflights.forEach((c,u)=>{a.push(c)}),i._read=()=>{!s&&l{if(!s)return s=!0,setTimeout(()=>{i.emit("close")},0),i},i}del(i,a){let s=this._inflights.get(i.messageId);return s?(this._inflights.delete(i.messageId),a(null,s)):a&&a(new Error("missing packet")),this}get(i,a){let s=this._inflights.get(i.messageId);return s?a(null,s):a&&a(new Error("missing packet")),this}close(i){this.options.clean&&(this._inflights=null),i&&i()}};e.default=o}),ZSe=Zt(e=>{Vt(),qt(),Kt(),Object.defineProperty(e,"__esModule",{value:!0});var t=[0,16,128,131,135,144,145,151,153],n=(r,o,i)=>{r.log("handlePublish: packet %o",o),i=typeof i<"u"?i:r.noop;let a=o.topic.toString(),s=o.payload,{qos:l}=o,{messageId:c}=o,{options:u}=r;if(r.options.protocolVersion===5){let f;if(o.properties&&(f=o.properties.topicAlias),typeof f<"u")if(a.length===0)if(f>0&&f<=65535){let h=r.topicAliasRecv.getTopicByAlias(f);if(h)a=h,r.log("handlePublish :: topic complemented by alias. topic: %s - alias: %d",a,f);else{r.log("handlePublish :: unregistered topic alias. alias: %d",f),r.emit("error",new Error("Received unregistered Topic Alias"));return}}else{r.log("handlePublish :: topic alias out of range. alias: %d",f),r.emit("error",new Error("Received Topic Alias is out of range"));return}else if(r.topicAliasRecv.put(a,f))r.log("handlePublish :: registered topic: %s - alias: %d",a,f);else{r.log("handlePublish :: topic alias out of range. alias: %d",f),r.emit("error",new Error("Received Topic Alias is out of range"));return}}switch(r.log("handlePublish: qos %d",l),l){case 2:{u.customHandleAcks(a,s,o,(f,h)=>{if(typeof f=="number"&&(h=f,f=null),f)return r.emit("error",f);if(t.indexOf(h)===-1)return r.emit("error",new Error("Wrong reason code for pubrec"));h?r._sendPacket({cmd:"pubrec",messageId:c,reasonCode:h},i):r.incomingStore.put(o,()=>{r._sendPacket({cmd:"pubrec",messageId:c},i)})});break}case 1:{u.customHandleAcks(a,s,o,(f,h)=>{if(typeof f=="number"&&(h=f,f=null),f)return r.emit("error",f);if(t.indexOf(h)===-1)return r.emit("error",new Error("Wrong reason code for puback"));h||r.emit("message",a,s,o),r.handleMessage(o,p=>{if(p)return i&&i(p);r._sendPacket({cmd:"puback",messageId:c,reasonCode:h},i)})});break}case 0:r.emit("message",a,s,o),r.handleMessage(o,i);break;default:r.log("handlePublish: unknown QoS. Doing nothing.");break}};e.default=n}),eCe=Zt((e,t)=>{t.exports={version:"5.10.3"}}),Sv=Zt(e=>{Vt(),qt(),Kt(),Object.defineProperty(e,"__esModule",{value:!0}),e.MQTTJS_VERSION=e.nextTick=e.applyMixin=e.ErrorWithReasonCode=void 0;var t=class tZ extends Error{constructor(o,i){super(o),this.code=i,Object.setPrototypeOf(this,tZ.prototype),Object.getPrototypeOf(this).name="ErrorWithReasonCode"}};e.ErrorWithReasonCode=t;function n(r,o,i=!1){var a;let s=[o];for(;;){let l=s[0],c=Object.getPrototypeOf(l);if(c!=null&&c.prototype)s.unshift(c);else break}for(let l of s)for(let c of Object.getOwnPropertyNames(l.prototype))(i||c!=="constructor")&&Object.defineProperty(r.prototype,c,(a=Object.getOwnPropertyDescriptor(l.prototype,c))!==null&&a!==void 0?a:Object.create(null))}e.applyMixin=n,e.nextTick=typeof(jr==null?void 0:jr.nextTick)=="function"?jr.nextTick:r=>{setTimeout(r,0)},e.MQTTJS_VERSION=eCe().version}),D_=Zt(e=>{Vt(),qt(),Kt(),Object.defineProperty(e,"__esModule",{value:!0}),e.ReasonCodes=void 0;var t=Sv();e.ReasonCodes={0:"",1:"Unacceptable protocol version",2:"Identifier rejected",3:"Server unavailable",4:"Bad username or password",5:"Not authorized",16:"No matching subscribers",17:"No subscription existed",128:"Unspecified error",129:"Malformed Packet",130:"Protocol Error",131:"Implementation specific error",132:"Unsupported Protocol Version",133:"Client Identifier not valid",134:"Bad User Name or Password",135:"Not authorized",136:"Server unavailable",137:"Server busy",138:"Banned",139:"Server shutting down",140:"Bad authentication method",141:"Keep Alive timeout",142:"Session taken over",143:"Topic Filter invalid",144:"Topic Name invalid",145:"Packet identifier in use",146:"Packet Identifier not found",147:"Receive Maximum exceeded",148:"Topic Alias invalid",149:"Packet too large",150:"Message rate too high",151:"Quota exceeded",152:"Administrative action",153:"Payload format invalid",154:"Retain not supported",155:"QoS not supported",156:"Use another server",157:"Server moved",158:"Shared Subscriptions not supported",159:"Connection rate exceeded",160:"Maximum connect time",161:"Subscription Identifiers not supported",162:"Wildcard Subscriptions not supported"};var n=(r,o)=>{let{messageId:i}=o,a=o.cmd,s=null,l=r.outgoing[i]?r.outgoing[i].cb:null,c=null;if(!l){r.log("_handleAck :: Server sent an ack in error. Ignoring.");return}switch(r.log("_handleAck :: packet type",a),a){case"pubcomp":case"puback":{let u=o.reasonCode;u&&u>0&&u!==16?(c=new t.ErrorWithReasonCode(`Publish error: ${e.ReasonCodes[u]}`,u),r._removeOutgoingAndStoreMessage(i,()=>{l(c,o)})):r._removeOutgoingAndStoreMessage(i,l);break}case"pubrec":{s={cmd:"pubrel",qos:2,messageId:i};let u=o.reasonCode;u&&u>0&&u!==16?(c=new t.ErrorWithReasonCode(`Publish error: ${e.ReasonCodes[u]}`,u),r._removeOutgoingAndStoreMessage(i,()=>{l(c,o)})):r._sendPacket(s);break}case"suback":{delete r.outgoing[i],r.messageIdProvider.deallocate(i);let u=o.granted;for(let f=0;f{delete r._resubscribeTopics[m]})}}delete r.messageIdToTopic[i],r._invokeStoreProcessingQueue(),l(c,o);break}case"unsuback":{delete r.outgoing[i],r.messageIdProvider.deallocate(i),r._invokeStoreProcessingQueue(),l(null,o);break}default:r.emit("error",new Error("unrecognized packet type"))}r.disconnecting&&Object.keys(r.outgoing).length===0&&r.emit("outgoingEmpty")};e.default=n}),tCe=Zt(e=>{Vt(),qt(),Kt(),Object.defineProperty(e,"__esModule",{value:!0});var t=Sv(),n=D_(),r=(o,i)=>{let{options:a}=o,s=a.protocolVersion,l=s===5?i.reasonCode:i.returnCode;if(s!==5){let c=new t.ErrorWithReasonCode(`Protocol error: Auth packets are only supported in MQTT 5. Your version:${s}`,l);o.emit("error",c);return}o.handleAuth(i,(c,u)=>{if(c){o.emit("error",c);return}if(l===24)o.reconnecting=!1,o._sendPacket(u);else{let f=new t.ErrorWithReasonCode(`Connection refused: ${n.ReasonCodes[l]}`,l);o.emit("error",f)}})};e.default=r}),nCe=Zt(e=>{var p,m,g,v,b,y,S,w,E,C,x,_,P,O,I,M,T,D,A,j,k,F,V,W,K,L,K4,ee,re,ie,G,nZ,ne,le,ce,Md,Td,q4,Lw,Bw,vo,G4,cy,Se;Vt(),qt(),Kt(),Object.defineProperty(e,"__esModule",{value:!0}),e.LRUCache=void 0;var t=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,n=new Set,r=typeof jr=="object"&&jr?jr:{},o=(ye,ve,be,Pe)=>{typeof r.emitWarning=="function"?r.emitWarning(ye,ve,be,Pe):console.error(`[${be}] ${ve}: ${ye}`)},i=globalThis.AbortController,a=globalThis.AbortSignal;if(typeof i>"u"){a=class{constructor(){Pr(this,"onabort");Pr(this,"_onabort",[]);Pr(this,"reason");Pr(this,"aborted",!1)}addEventListener(be,Pe){this._onabort.push(Pe)}},i=class{constructor(){Pr(this,"signal",new a);ve()}abort(be){var Pe,Ne;if(!this.signal.aborted){this.signal.reason=be,this.signal.aborted=!0;for(let U of this.signal._onabort)U(be);(Ne=(Pe=this.signal).onabort)==null||Ne.call(Pe,be)}}};let ye=((p=r.env)==null?void 0:p.LRU_CACHE_IGNORE_AC_WARNING)!=="1",ve=()=>{ye&&(ye=!1,o("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",ve))}}var s=ye=>!n.has(ye),l=ye=>ye&&ye===Math.floor(ye)&&ye>0&&isFinite(ye),c=ye=>l(ye)?ye<=Math.pow(2,8)?Uint8Array:ye<=Math.pow(2,16)?Uint16Array:ye<=Math.pow(2,32)?Uint32Array:ye<=Number.MAX_SAFE_INTEGER?u:null:null,u=class extends Array{constructor(ye){super(ye),this.fill(0)}},f=(m=class{constructor(ve,be){Pr(this,"heap");Pr(this,"length");if(!Ae(m,g))throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new be(ve),this.length=0}static create(ve){let be=c(ve);if(!be)return[];cn(m,g,!0);let Pe=new m(ve,be);return cn(m,g,!1),Pe}push(ve){this.heap[this.length++]=ve}pop(){return this.heap[--this.length]}},g=new WeakMap,Tn(m,g,!1),m),h=(Se=class{constructor(ve){Tn(this,L);Tn(this,v);Tn(this,b);Tn(this,y);Tn(this,S);Tn(this,w);Pr(this,"ttl");Pr(this,"ttlResolution");Pr(this,"ttlAutopurge");Pr(this,"updateAgeOnGet");Pr(this,"updateAgeOnHas");Pr(this,"allowStale");Pr(this,"noDisposeOnSet");Pr(this,"noUpdateTTL");Pr(this,"maxEntrySize");Pr(this,"sizeCalculation");Pr(this,"noDeleteOnFetchRejection");Pr(this,"noDeleteOnStaleGet");Pr(this,"allowStaleOnFetchAbort");Pr(this,"allowStaleOnFetchRejection");Pr(this,"ignoreFetchAbort");Tn(this,E);Tn(this,C);Tn(this,x);Tn(this,_);Tn(this,P);Tn(this,O);Tn(this,I);Tn(this,M);Tn(this,T);Tn(this,D);Tn(this,A);Tn(this,j);Tn(this,k);Tn(this,F);Tn(this,V);Tn(this,W);Tn(this,K);Tn(this,ee,()=>{});Tn(this,re,()=>{});Tn(this,ie,()=>{});Tn(this,G,()=>!1);Tn(this,ne,ve=>{});Tn(this,le,(ve,be,Pe)=>{});Tn(this,ce,(ve,be,Pe,Ne)=>{if(Pe||Ne)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0});let{max:be=0,ttl:Pe,ttlResolution:Ne=1,ttlAutopurge:U,updateAgeOnGet:H,updateAgeOnHas:q,allowStale:me,dispose:Ce,disposeAfter:ue,noDisposeOnSet:Le,noUpdateTTL:He,maxSize:ge=0,maxEntrySize:De=0,sizeCalculation:qe,fetchMethod:Fe,noDeleteOnFetchRejection:Ke,noDeleteOnStaleGet:Ue,allowStaleOnFetchRejection:Ve,allowStaleOnFetchAbort:Tt,ignoreFetchAbort:et}=ve;if(be!==0&&!l(be))throw new TypeError("max option must be a nonnegative integer");let st=be?c(be):Array;if(!st)throw new Error("invalid max value: "+be);if(cn(this,v,be),cn(this,b,ge),this.maxEntrySize=De||Ae(this,b),this.sizeCalculation=qe,this.sizeCalculation){if(!Ae(this,b)&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(Fe!==void 0&&typeof Fe!="function")throw new TypeError("fetchMethod must be a function if specified");if(cn(this,w,Fe),cn(this,W,!!Fe),cn(this,x,new Map),cn(this,_,new Array(be).fill(void 0)),cn(this,P,new Array(be).fill(void 0)),cn(this,O,new st(be)),cn(this,I,new st(be)),cn(this,M,0),cn(this,T,0),cn(this,D,f.create(be)),cn(this,E,0),cn(this,C,0),typeof Ce=="function"&&cn(this,y,Ce),typeof ue=="function"?(cn(this,S,ue),cn(this,A,[])):(cn(this,S,void 0),cn(this,A,void 0)),cn(this,V,!!Ae(this,y)),cn(this,K,!!Ae(this,S)),this.noDisposeOnSet=!!Le,this.noUpdateTTL=!!He,this.noDeleteOnFetchRejection=!!Ke,this.allowStaleOnFetchRejection=!!Ve,this.allowStaleOnFetchAbort=!!Tt,this.ignoreFetchAbort=!!et,this.maxEntrySize!==0){if(Ae(this,b)!==0&&!l(Ae(this,b)))throw new TypeError("maxSize must be a positive integer if specified");if(!l(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");wn(this,L,nZ).call(this)}if(this.allowStale=!!me,this.noDeleteOnStaleGet=!!Ue,this.updateAgeOnGet=!!H,this.updateAgeOnHas=!!q,this.ttlResolution=l(Ne)||Ne===0?Ne:1,this.ttlAutopurge=!!U,this.ttl=Pe||0,this.ttl){if(!l(this.ttl))throw new TypeError("ttl must be a positive integer if specified");wn(this,L,K4).call(this)}if(Ae(this,v)===0&&this.ttl===0&&Ae(this,b)===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!Ae(this,v)&&!Ae(this,b)){let yt="LRU_CACHE_UNBOUNDED";s(yt)&&(n.add(yt),o("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",yt,Se))}}static unsafeExposeInternals(ve){return{starts:Ae(ve,k),ttls:Ae(ve,F),sizes:Ae(ve,j),keyMap:Ae(ve,x),keyList:Ae(ve,_),valList:Ae(ve,P),next:Ae(ve,O),prev:Ae(ve,I),get head(){return Ae(ve,M)},get tail(){return Ae(ve,T)},free:Ae(ve,D),isBackgroundFetch:be=>{var Pe;return wn(Pe=ve,L,vo).call(Pe,be)},backgroundFetch:(be,Pe,Ne,U)=>{var H;return wn(H=ve,L,Bw).call(H,be,Pe,Ne,U)},moveToTail:be=>{var Pe;return wn(Pe=ve,L,cy).call(Pe,be)},indexes:be=>{var Pe;return wn(Pe=ve,L,Md).call(Pe,be)},rindexes:be=>{var Pe;return wn(Pe=ve,L,Td).call(Pe,be)},isStale:be=>{var Pe;return Ae(Pe=ve,G).call(Pe,be)}}}get max(){return Ae(this,v)}get maxSize(){return Ae(this,b)}get calculatedSize(){return Ae(this,C)}get size(){return Ae(this,E)}get fetchMethod(){return Ae(this,w)}get dispose(){return Ae(this,y)}get disposeAfter(){return Ae(this,S)}getRemainingTTL(ve){return Ae(this,x).has(ve)?1/0:0}*entries(){for(let ve of wn(this,L,Md).call(this))Ae(this,P)[ve]!==void 0&&Ae(this,_)[ve]!==void 0&&!wn(this,L,vo).call(this,Ae(this,P)[ve])&&(yield[Ae(this,_)[ve],Ae(this,P)[ve]])}*rentries(){for(let ve of wn(this,L,Td).call(this))Ae(this,P)[ve]!==void 0&&Ae(this,_)[ve]!==void 0&&!wn(this,L,vo).call(this,Ae(this,P)[ve])&&(yield[Ae(this,_)[ve],Ae(this,P)[ve]])}*keys(){for(let ve of wn(this,L,Md).call(this)){let be=Ae(this,_)[ve];be!==void 0&&!wn(this,L,vo).call(this,Ae(this,P)[ve])&&(yield be)}}*rkeys(){for(let ve of wn(this,L,Td).call(this)){let be=Ae(this,_)[ve];be!==void 0&&!wn(this,L,vo).call(this,Ae(this,P)[ve])&&(yield be)}}*values(){for(let ve of wn(this,L,Md).call(this))Ae(this,P)[ve]!==void 0&&!wn(this,L,vo).call(this,Ae(this,P)[ve])&&(yield Ae(this,P)[ve])}*rvalues(){for(let ve of wn(this,L,Td).call(this))Ae(this,P)[ve]!==void 0&&!wn(this,L,vo).call(this,Ae(this,P)[ve])&&(yield Ae(this,P)[ve])}[Symbol.iterator](){return this.entries()}find(ve,be={}){for(let Pe of wn(this,L,Md).call(this)){let Ne=Ae(this,P)[Pe],U=wn(this,L,vo).call(this,Ne)?Ne.__staleWhileFetching:Ne;if(U!==void 0&&ve(U,Ae(this,_)[Pe],this))return this.get(Ae(this,_)[Pe],be)}}forEach(ve,be=this){for(let Pe of wn(this,L,Md).call(this)){let Ne=Ae(this,P)[Pe],U=wn(this,L,vo).call(this,Ne)?Ne.__staleWhileFetching:Ne;U!==void 0&&ve.call(be,U,Ae(this,_)[Pe],this)}}rforEach(ve,be=this){for(let Pe of wn(this,L,Td).call(this)){let Ne=Ae(this,P)[Pe],U=wn(this,L,vo).call(this,Ne)?Ne.__staleWhileFetching:Ne;U!==void 0&&ve.call(be,U,Ae(this,_)[Pe],this)}}purgeStale(){let ve=!1;for(let be of wn(this,L,Td).call(this,{allowStale:!0}))Ae(this,G).call(this,be)&&(this.delete(Ae(this,_)[be]),ve=!0);return ve}dump(){let ve=[];for(let be of wn(this,L,Md).call(this,{allowStale:!0})){let Pe=Ae(this,_)[be],Ne=Ae(this,P)[be],U=wn(this,L,vo).call(this,Ne)?Ne.__staleWhileFetching:Ne;if(U===void 0||Pe===void 0)continue;let H={value:U};if(Ae(this,F)&&Ae(this,k)){H.ttl=Ae(this,F)[be];let q=t.now()-Ae(this,k)[be];H.start=Math.floor(Date.now()-q)}Ae(this,j)&&(H.size=Ae(this,j)[be]),ve.unshift([Pe,H])}return ve}load(ve){this.clear();for(let[be,Pe]of ve){if(Pe.start){let Ne=Date.now()-Pe.start;Pe.start=t.now()-Ne}this.set(be,Pe.value,Pe)}}set(ve,be,Pe={}){var He,ge,De,qe,Fe;if(be===void 0)return this.delete(ve),this;let{ttl:Ne=this.ttl,start:U,noDisposeOnSet:H=this.noDisposeOnSet,sizeCalculation:q=this.sizeCalculation,status:me}=Pe,{noUpdateTTL:Ce=this.noUpdateTTL}=Pe,ue=Ae(this,ce).call(this,ve,be,Pe.size||0,q);if(this.maxEntrySize&&ue>this.maxEntrySize)return me&&(me.set="miss",me.maxEntrySizeExceeded=!0),this.delete(ve),this;let Le=Ae(this,E)===0?void 0:Ae(this,x).get(ve);if(Le===void 0)Le=Ae(this,E)===0?Ae(this,T):Ae(this,D).length!==0?Ae(this,D).pop():Ae(this,E)===Ae(this,v)?wn(this,L,Lw).call(this,!1):Ae(this,E),Ae(this,_)[Le]=ve,Ae(this,P)[Le]=be,Ae(this,x).set(ve,Le),Ae(this,O)[Ae(this,T)]=Le,Ae(this,I)[Le]=Ae(this,T),cn(this,T,Le),Yf(this,E)._++,Ae(this,le).call(this,Le,ue,me),me&&(me.set="add"),Ce=!1;else{wn(this,L,cy).call(this,Le);let Ke=Ae(this,P)[Le];if(be!==Ke){if(Ae(this,W)&&wn(this,L,vo).call(this,Ke)){Ke.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:Ue}=Ke;Ue!==void 0&&!H&&(Ae(this,V)&&((He=Ae(this,y))==null||He.call(this,Ue,ve,"set")),Ae(this,K)&&((ge=Ae(this,A))==null||ge.push([Ue,ve,"set"])))}else H||(Ae(this,V)&&((De=Ae(this,y))==null||De.call(this,Ke,ve,"set")),Ae(this,K)&&((qe=Ae(this,A))==null||qe.push([Ke,ve,"set"])));if(Ae(this,ne).call(this,Le),Ae(this,le).call(this,Le,ue,me),Ae(this,P)[Le]=be,me){me.set="replace";let Ue=Ke&&wn(this,L,vo).call(this,Ke)?Ke.__staleWhileFetching:Ke;Ue!==void 0&&(me.oldValue=Ue)}}else me&&(me.set="update")}if(Ne!==0&&!Ae(this,F)&&wn(this,L,K4).call(this),Ae(this,F)&&(Ce||Ae(this,ie).call(this,Le,Ne,U),me&&Ae(this,re).call(this,me,Le)),!H&&Ae(this,K)&&Ae(this,A)){let Ke=Ae(this,A),Ue;for(;Ue=Ke==null?void 0:Ke.shift();)(Fe=Ae(this,S))==null||Fe.call(this,...Ue)}return this}pop(){var ve;try{for(;Ae(this,E);){let be=Ae(this,P)[Ae(this,M)];if(wn(this,L,Lw).call(this,!0),wn(this,L,vo).call(this,be)){if(be.__staleWhileFetching)return be.__staleWhileFetching}else if(be!==void 0)return be}}finally{if(Ae(this,K)&&Ae(this,A)){let be=Ae(this,A),Pe;for(;Pe=be==null?void 0:be.shift();)(ve=Ae(this,S))==null||ve.call(this,...Pe)}}}has(ve,be={}){let{updateAgeOnHas:Pe=this.updateAgeOnHas,status:Ne}=be,U=Ae(this,x).get(ve);if(U!==void 0){let H=Ae(this,P)[U];if(wn(this,L,vo).call(this,H)&&H.__staleWhileFetching===void 0)return!1;if(Ae(this,G).call(this,U))Ne&&(Ne.has="stale",Ae(this,re).call(this,Ne,U));else return Pe&&Ae(this,ee).call(this,U),Ne&&(Ne.has="hit",Ae(this,re).call(this,Ne,U)),!0}else Ne&&(Ne.has="miss");return!1}peek(ve,be={}){let{allowStale:Pe=this.allowStale}=be,Ne=Ae(this,x).get(ve);if(Ne!==void 0&&(Pe||!Ae(this,G).call(this,Ne))){let U=Ae(this,P)[Ne];return wn(this,L,vo).call(this,U)?U.__staleWhileFetching:U}}async fetch(ve,be={}){let{allowStale:Pe=this.allowStale,updateAgeOnGet:Ne=this.updateAgeOnGet,noDeleteOnStaleGet:U=this.noDeleteOnStaleGet,ttl:H=this.ttl,noDisposeOnSet:q=this.noDisposeOnSet,size:me=0,sizeCalculation:Ce=this.sizeCalculation,noUpdateTTL:ue=this.noUpdateTTL,noDeleteOnFetchRejection:Le=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:He=this.allowStaleOnFetchRejection,ignoreFetchAbort:ge=this.ignoreFetchAbort,allowStaleOnFetchAbort:De=this.allowStaleOnFetchAbort,context:qe,forceRefresh:Fe=!1,status:Ke,signal:Ue}=be;if(!Ae(this,W))return Ke&&(Ke.fetch="get"),this.get(ve,{allowStale:Pe,updateAgeOnGet:Ne,noDeleteOnStaleGet:U,status:Ke});let Ve={allowStale:Pe,updateAgeOnGet:Ne,noDeleteOnStaleGet:U,ttl:H,noDisposeOnSet:q,size:me,sizeCalculation:Ce,noUpdateTTL:ue,noDeleteOnFetchRejection:Le,allowStaleOnFetchRejection:He,allowStaleOnFetchAbort:De,ignoreFetchAbort:ge,status:Ke,signal:Ue},Tt=Ae(this,x).get(ve);if(Tt===void 0){Ke&&(Ke.fetch="miss");let et=wn(this,L,Bw).call(this,ve,Tt,Ve,qe);return et.__returned=et}else{let et=Ae(this,P)[Tt];if(wn(this,L,vo).call(this,et)){let Lt=Pe&&et.__staleWhileFetching!==void 0;return Ke&&(Ke.fetch="inflight",Lt&&(Ke.returnedStale=!0)),Lt?et.__staleWhileFetching:et.__returned=et}let st=Ae(this,G).call(this,Tt);if(!Fe&&!st)return Ke&&(Ke.fetch="hit"),wn(this,L,cy).call(this,Tt),Ne&&Ae(this,ee).call(this,Tt),Ke&&Ae(this,re).call(this,Ke,Tt),et;let yt=wn(this,L,Bw).call(this,ve,Tt,Ve,qe),gt=yt.__staleWhileFetching!==void 0&&Pe;return Ke&&(Ke.fetch=st?"stale":"refresh",gt&&st&&(Ke.returnedStale=!0)),gt?yt.__staleWhileFetching:yt.__returned=yt}}get(ve,be={}){let{allowStale:Pe=this.allowStale,updateAgeOnGet:Ne=this.updateAgeOnGet,noDeleteOnStaleGet:U=this.noDeleteOnStaleGet,status:H}=be,q=Ae(this,x).get(ve);if(q!==void 0){let me=Ae(this,P)[q],Ce=wn(this,L,vo).call(this,me);return H&&Ae(this,re).call(this,H,q),Ae(this,G).call(this,q)?(H&&(H.get="stale"),Ce?(H&&Pe&&me.__staleWhileFetching!==void 0&&(H.returnedStale=!0),Pe?me.__staleWhileFetching:void 0):(U||this.delete(ve),H&&Pe&&(H.returnedStale=!0),Pe?me:void 0)):(H&&(H.get="hit"),Ce?me.__staleWhileFetching:(wn(this,L,cy).call(this,q),Ne&&Ae(this,ee).call(this,q),me))}else H&&(H.get="miss")}delete(ve){var Pe,Ne,U,H;let be=!1;if(Ae(this,E)!==0){let q=Ae(this,x).get(ve);if(q!==void 0)if(be=!0,Ae(this,E)===1)this.clear();else{Ae(this,ne).call(this,q);let me=Ae(this,P)[q];wn(this,L,vo).call(this,me)?me.__abortController.abort(new Error("deleted")):(Ae(this,V)||Ae(this,K))&&(Ae(this,V)&&((Pe=Ae(this,y))==null||Pe.call(this,me,ve,"delete")),Ae(this,K)&&((Ne=Ae(this,A))==null||Ne.push([me,ve,"delete"]))),Ae(this,x).delete(ve),Ae(this,_)[q]=void 0,Ae(this,P)[q]=void 0,q===Ae(this,T)?cn(this,T,Ae(this,I)[q]):q===Ae(this,M)?cn(this,M,Ae(this,O)[q]):(Ae(this,O)[Ae(this,I)[q]]=Ae(this,O)[q],Ae(this,I)[Ae(this,O)[q]]=Ae(this,I)[q]),Yf(this,E)._--,Ae(this,D).push(q)}}if(Ae(this,K)&&((U=Ae(this,A))!=null&&U.length)){let q=Ae(this,A),me;for(;me=q==null?void 0:q.shift();)(H=Ae(this,S))==null||H.call(this,...me)}return be}clear(){var ve,be,Pe;for(let Ne of wn(this,L,Td).call(this,{allowStale:!0})){let U=Ae(this,P)[Ne];if(wn(this,L,vo).call(this,U))U.__abortController.abort(new Error("deleted"));else{let H=Ae(this,_)[Ne];Ae(this,V)&&((ve=Ae(this,y))==null||ve.call(this,U,H,"delete")),Ae(this,K)&&((be=Ae(this,A))==null||be.push([U,H,"delete"]))}}if(Ae(this,x).clear(),Ae(this,P).fill(void 0),Ae(this,_).fill(void 0),Ae(this,F)&&Ae(this,k)&&(Ae(this,F).fill(0),Ae(this,k).fill(0)),Ae(this,j)&&Ae(this,j).fill(0),cn(this,M,0),cn(this,T,0),Ae(this,D).length=0,cn(this,C,0),cn(this,E,0),Ae(this,K)&&Ae(this,A)){let Ne=Ae(this,A),U;for(;U=Ne==null?void 0:Ne.shift();)(Pe=Ae(this,S))==null||Pe.call(this,...U)}}},v=new WeakMap,b=new WeakMap,y=new WeakMap,S=new WeakMap,w=new WeakMap,E=new WeakMap,C=new WeakMap,x=new WeakMap,_=new WeakMap,P=new WeakMap,O=new WeakMap,I=new WeakMap,M=new WeakMap,T=new WeakMap,D=new WeakMap,A=new WeakMap,j=new WeakMap,k=new WeakMap,F=new WeakMap,V=new WeakMap,W=new WeakMap,K=new WeakMap,L=new WeakSet,K4=function(){let ve=new u(Ae(this,v)),be=new u(Ae(this,v));cn(this,F,ve),cn(this,k,be),cn(this,ie,(U,H,q=t.now())=>{if(be[U]=H!==0?q:0,ve[U]=H,H!==0&&this.ttlAutopurge){let me=setTimeout(()=>{Ae(this,G).call(this,U)&&this.delete(Ae(this,_)[U])},H+1);me.unref&&me.unref()}}),cn(this,ee,U=>{be[U]=ve[U]!==0?t.now():0}),cn(this,re,(U,H)=>{if(ve[H]){let q=ve[H],me=be[H];U.ttl=q,U.start=me,U.now=Pe||Ne();let Ce=U.now-me;U.remainingTTL=q-Ce}});let Pe=0,Ne=()=>{let U=t.now();if(this.ttlResolution>0){Pe=U;let H=setTimeout(()=>Pe=0,this.ttlResolution);H.unref&&H.unref()}return U};this.getRemainingTTL=U=>{let H=Ae(this,x).get(U);if(H===void 0)return 0;let q=ve[H],me=be[H];if(q===0||me===0)return 1/0;let Ce=(Pe||Ne())-me;return q-Ce},cn(this,G,U=>ve[U]!==0&&be[U]!==0&&(Pe||Ne())-be[U]>ve[U])},ee=new WeakMap,re=new WeakMap,ie=new WeakMap,G=new WeakMap,nZ=function(){let ve=new u(Ae(this,v));cn(this,C,0),cn(this,j,ve),cn(this,ne,be=>{cn(this,C,Ae(this,C)-ve[be]),ve[be]=0}),cn(this,ce,(be,Pe,Ne,U)=>{if(wn(this,L,vo).call(this,Pe))return 0;if(!l(Ne))if(U){if(typeof U!="function")throw new TypeError("sizeCalculation must be a function");if(Ne=U(Pe,be),!l(Ne))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return Ne}),cn(this,le,(be,Pe,Ne)=>{if(ve[be]=Pe,Ae(this,b)){let U=Ae(this,b)-ve[be];for(;Ae(this,C)>U;)wn(this,L,Lw).call(this,!0)}cn(this,C,Ae(this,C)+ve[be]),Ne&&(Ne.entrySize=Pe,Ne.totalCalculatedSize=Ae(this,C))})},ne=new WeakMap,le=new WeakMap,ce=new WeakMap,Md=function*({allowStale:ve=this.allowStale}={}){if(Ae(this,E))for(let be=Ae(this,T);!(!wn(this,L,q4).call(this,be)||((ve||!Ae(this,G).call(this,be))&&(yield be),be===Ae(this,M)));)be=Ae(this,I)[be]},Td=function*({allowStale:ve=this.allowStale}={}){if(Ae(this,E))for(let be=Ae(this,M);!(!wn(this,L,q4).call(this,be)||((ve||!Ae(this,G).call(this,be))&&(yield be),be===Ae(this,T)));)be=Ae(this,O)[be]},q4=function(ve){return ve!==void 0&&Ae(this,x).get(Ae(this,_)[ve])===ve},Lw=function(ve){var U,H;let be=Ae(this,M),Pe=Ae(this,_)[be],Ne=Ae(this,P)[be];return Ae(this,W)&&wn(this,L,vo).call(this,Ne)?Ne.__abortController.abort(new Error("evicted")):(Ae(this,V)||Ae(this,K))&&(Ae(this,V)&&((U=Ae(this,y))==null||U.call(this,Ne,Pe,"evict")),Ae(this,K)&&((H=Ae(this,A))==null||H.push([Ne,Pe,"evict"]))),Ae(this,ne).call(this,be),ve&&(Ae(this,_)[be]=void 0,Ae(this,P)[be]=void 0,Ae(this,D).push(be)),Ae(this,E)===1?(cn(this,M,cn(this,T,0)),Ae(this,D).length=0):cn(this,M,Ae(this,O)[be]),Ae(this,x).delete(Pe),Yf(this,E)._--,be},Bw=function(ve,be,Pe,Ne){let U=be===void 0?void 0:Ae(this,P)[be];if(wn(this,L,vo).call(this,U))return U;let H=new i,{signal:q}=Pe;q==null||q.addEventListener("abort",()=>H.abort(q.reason),{signal:H.signal});let me={signal:H.signal,options:Pe,context:Ne},Ce=(qe,Fe=!1)=>{let{aborted:Ke}=H.signal,Ue=Pe.ignoreFetchAbort&&qe!==void 0;if(Pe.status&&(Ke&&!Fe?(Pe.status.fetchAborted=!0,Pe.status.fetchError=H.signal.reason,Ue&&(Pe.status.fetchAbortIgnored=!0)):Pe.status.fetchResolved=!0),Ke&&!Ue&&!Fe)return Le(H.signal.reason);let Ve=ge;return Ae(this,P)[be]===ge&&(qe===void 0?Ve.__staleWhileFetching?Ae(this,P)[be]=Ve.__staleWhileFetching:this.delete(ve):(Pe.status&&(Pe.status.fetchUpdated=!0),this.set(ve,qe,me.options))),qe},ue=qe=>(Pe.status&&(Pe.status.fetchRejected=!0,Pe.status.fetchError=qe),Le(qe)),Le=qe=>{let{aborted:Fe}=H.signal,Ke=Fe&&Pe.allowStaleOnFetchAbort,Ue=Ke||Pe.allowStaleOnFetchRejection,Ve=Ue||Pe.noDeleteOnFetchRejection,Tt=ge;if(Ae(this,P)[be]===ge&&(!Ve||Tt.__staleWhileFetching===void 0?this.delete(ve):Ke||(Ae(this,P)[be]=Tt.__staleWhileFetching)),Ue)return Pe.status&&Tt.__staleWhileFetching!==void 0&&(Pe.status.returnedStale=!0),Tt.__staleWhileFetching;if(Tt.__returned===Tt)throw qe},He=(qe,Fe)=>{var Ue;let Ke=(Ue=Ae(this,w))==null?void 0:Ue.call(this,ve,U,me);Ke&&Ke instanceof Promise&&Ke.then(Ve=>qe(Ve===void 0?void 0:Ve),Fe),H.signal.addEventListener("abort",()=>{(!Pe.ignoreFetchAbort||Pe.allowStaleOnFetchAbort)&&(qe(void 0),Pe.allowStaleOnFetchAbort&&(qe=Ve=>Ce(Ve,!0)))})};Pe.status&&(Pe.status.fetchDispatched=!0);let ge=new Promise(He).then(Ce,ue),De=Object.assign(ge,{__abortController:H,__staleWhileFetching:U,__returned:void 0});return be===void 0?(this.set(ve,De,{...me.options,status:void 0}),be=Ae(this,x).get(ve)):Ae(this,P)[be]=De,De},vo=function(ve){if(!Ae(this,W))return!1;let be=ve;return!!be&&be instanceof Promise&&be.hasOwnProperty("__staleWhileFetching")&&be.__abortController instanceof i},G4=function(ve,be){Ae(this,I)[be]=ve,Ae(this,O)[ve]=be},cy=function(ve){ve!==Ae(this,T)&&(ve===Ae(this,M)?cn(this,M,Ae(this,O)[ve]):wn(this,L,G4).call(this,Ae(this,I)[ve],Ae(this,O)[ve]),wn(this,L,G4).call(this,Ae(this,T),ve),cn(this,T,ve))},Se);e.LRUCache=h}),cd=Zt(e=>{Vt(),qt(),Kt(),Object.defineProperty(e,"t",{value:!0}),e.ContainerIterator=e.Container=e.Base=void 0;var t=class{constructor(o=0){this.iteratorType=o}equals(o){return this.o===o.o}};e.ContainerIterator=t;var n=class{constructor(){this.i=0}get length(){return this.i}size(){return this.i}empty(){return this.i===0}};e.Base=n;var r=class extends n{};e.Container=r}),rCe=Zt(e=>{Vt(),qt(),Kt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=cd(),n=class extends t.Base{constructor(o=[]){super(),this.S=[];let i=this;o.forEach(function(a){i.push(a)})}clear(){this.i=0,this.S=[]}push(o){return this.S.push(o),this.i+=1,this.i}pop(){if(this.i!==0)return this.i-=1,this.S.pop()}top(){return this.S[this.i-1]}},r=n;e.default=r}),oCe=Zt(e=>{Vt(),qt(),Kt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=cd(),n=class extends t.Base{constructor(o=[]){super(),this.j=0,this.q=[];let i=this;o.forEach(function(a){i.push(a)})}clear(){this.q=[],this.i=this.j=0}push(o){let i=this.q.length;if(this.j/i>.5&&this.j+this.i>=i&&i>4096){let a=this.i;for(let s=0;s{Vt(),qt(),Kt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=cd(),n=class extends t.Base{constructor(o=[],i=function(s,l){return s>l?-1:s>1;for(let l=this.i-1>>1;l>=0;--l)this.k(l,s)}m(o){let i=this.C[o];for(;o>0;){let a=o-1>>1,s=this.C[a];if(this.v(s,i)<=0)break;this.C[o]=s,o=a}this.C[o]=i}k(o,i){let a=this.C[o];for(;o0&&(s=l,c=this.C[l]),this.v(c,a)>=0)break;this.C[o]=c,o=s}this.C[o]=a}clear(){this.i=0,this.C.length=0}push(o){this.C.push(o),this.m(this.i),this.i+=1}pop(){if(this.i===0)return;let o=this.C[0],i=this.C.pop();return this.i-=1,this.i&&(this.C[0]=i,this.k(0,this.i>>1)),o}top(){return this.C[0]}find(o){return this.C.indexOf(o)>=0}remove(o){let i=this.C.indexOf(o);return i<0?!1:(i===0?this.pop():i===this.i-1?(this.C.pop(),this.i-=1):(this.C.splice(i,1,this.C.pop()),this.i-=1,this.m(i),this.k(i,this.i>>1)),!0)}updateItem(o){let i=this.C.indexOf(o);return i<0?!1:(this.m(i),this.k(i,this.i>>1),!0)}toArray(){return[...this.C]}},r=n;e.default=r}),_5=Zt(e=>{Vt(),qt(),Kt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=cd(),n=class extends t.Container{},r=n;e.default=r}),ud=Zt(e=>{Vt(),qt(),Kt(),Object.defineProperty(e,"t",{value:!0}),e.throwIteratorAccessError=t;function t(){throw new RangeError("Iterator access denied!")}}),rZ=Zt(e=>{Vt(),qt(),Kt(),Object.defineProperty(e,"t",{value:!0}),e.RandomIterator=void 0;var t=cd(),n=ud(),r=class extends t.ContainerIterator{constructor(o,i){super(i),this.o=o,this.iteratorType===0?(this.pre=function(){return this.o===0&&(0,n.throwIteratorAccessError)(),this.o-=1,this},this.next=function(){return this.o===this.container.size()&&(0,n.throwIteratorAccessError)(),this.o+=1,this}):(this.pre=function(){return this.o===this.container.size()-1&&(0,n.throwIteratorAccessError)(),this.o+=1,this},this.next=function(){return this.o===-1&&(0,n.throwIteratorAccessError)(),this.o-=1,this})}get pointer(){return this.container.getElementByPos(this.o)}set pointer(o){this.container.setElementByPos(this.o,o)}};e.RandomIterator=r}),aCe=Zt(e=>{Vt(),qt(),Kt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=r(_5()),n=rZ();function r(s){return s&&s.t?s:{default:s}}var o=class oZ extends n.RandomIterator{constructor(l,c,u){super(l,u),this.container=c}copy(){return new oZ(this.o,this.container,this.iteratorType)}},i=class extends t.default{constructor(s=[],l=!0){if(super(),Array.isArray(s))this.J=l?[...s]:s,this.i=s.length;else{this.J=[];let c=this;s.forEach(function(u){c.pushBack(u)})}}clear(){this.i=0,this.J.length=0}begin(){return new o(0,this)}end(){return new o(this.i,this)}rBegin(){return new o(this.i-1,this,1)}rEnd(){return new o(-1,this,1)}front(){return this.J[0]}back(){return this.J[this.i-1]}getElementByPos(s){if(s<0||s>this.i-1)throw new RangeError;return this.J[s]}eraseElementByPos(s){if(s<0||s>this.i-1)throw new RangeError;return this.J.splice(s,1),this.i-=1,this.i}eraseElementByValue(s){let l=0;for(let c=0;cthis.i-1)throw new RangeError;this.J[s]=l}insert(s,l,c=1){if(s<0||s>this.i)throw new RangeError;return this.J.splice(s,0,...new Array(c).fill(l)),this.i+=c,this.i}find(s){for(let l=0;l{Vt(),qt(),Kt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=o(_5()),n=cd(),r=ud();function o(l){return l&&l.t?l:{default:l}}var i=class iZ extends n.ContainerIterator{constructor(c,u,f,h){super(h),this.o=c,this.h=u,this.container=f,this.iteratorType===0?(this.pre=function(){return this.o.L===this.h&&(0,r.throwIteratorAccessError)(),this.o=this.o.L,this},this.next=function(){return this.o===this.h&&(0,r.throwIteratorAccessError)(),this.o=this.o.B,this}):(this.pre=function(){return this.o.B===this.h&&(0,r.throwIteratorAccessError)(),this.o=this.o.B,this},this.next=function(){return this.o===this.h&&(0,r.throwIteratorAccessError)(),this.o=this.o.L,this})}get pointer(){return this.o===this.h&&(0,r.throwIteratorAccessError)(),this.o.l}set pointer(c){this.o===this.h&&(0,r.throwIteratorAccessError)(),this.o.l=c}copy(){return new iZ(this.o,this.h,this.container,this.iteratorType)}},a=class extends t.default{constructor(l=[]){super(),this.h={},this.p=this._=this.h.L=this.h.B=this.h;let c=this;l.forEach(function(u){c.pushBack(u)})}V(l){let{L:c,B:u}=l;c.B=u,u.L=c,l===this.p&&(this.p=u),l===this._&&(this._=c),this.i-=1}G(l,c){let u=c.B,f={l,L:c,B:u};c.B=f,u.L=f,c===this.h&&(this.p=f),u===this.h&&(this._=f),this.i+=1}clear(){this.i=0,this.p=this._=this.h.L=this.h.B=this.h}begin(){return new i(this.p,this.h,this)}end(){return new i(this.h,this.h,this)}rBegin(){return new i(this._,this.h,this,1)}rEnd(){return new i(this.h,this.h,this,1)}front(){return this.p.l}back(){return this._.l}getElementByPos(l){if(l<0||l>this.i-1)throw new RangeError;let c=this.p;for(;l--;)c=c.B;return c.l}eraseElementByPos(l){if(l<0||l>this.i-1)throw new RangeError;let c=this.p;for(;l--;)c=c.B;return this.V(c),this.i}eraseElementByValue(l){let c=this.p;for(;c!==this.h;)c.l===l&&this.V(c),c=c.B;return this.i}eraseElementByIterator(l){let c=l.o;return c===this.h&&(0,r.throwIteratorAccessError)(),l=l.next(),this.V(c),l}pushBack(l){return this.G(l,this._),this.i}popBack(){if(this.i===0)return;let l=this._.l;return this.V(this._),l}pushFront(l){return this.G(l,this.h),this.i}popFront(){if(this.i===0)return;let l=this.p.l;return this.V(this.p),l}setElementByPos(l,c){if(l<0||l>this.i-1)throw new RangeError;let u=this.p;for(;l--;)u=u.B;u.l=c}insert(l,c,u=1){if(l<0||l>this.i)throw new RangeError;if(u<=0)return this.i;if(l===0)for(;u--;)this.pushFront(c);else if(l===this.i)for(;u--;)this.pushBack(c);else{let f=this.p;for(let p=1;p{Vt(),qt(),Kt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=r(_5()),n=rZ();function r(s){return s&&s.t?s:{default:s}}var o=class aZ extends n.RandomIterator{constructor(l,c,u){super(l,u),this.container=c}copy(){return new aZ(this.o,this.container,this.iteratorType)}},i=class extends t.default{constructor(s=[],l=4096){super(),this.j=0,this.D=0,this.R=0,this.N=0,this.P=0,this.A=[];let c=(()=>{if(typeof s.length=="number")return s.length;if(typeof s.size=="number")return s.size;if(typeof s.size=="function")return s.size();throw new TypeError("Cannot get the length or size of the container")})();this.F=l,this.P=Math.max(Math.ceil(c/this.F),1);for(let h=0;h>1)-(u>>1),this.D=this.N=this.F-c%this.F>>1;let f=this;s.forEach(function(h){f.pushBack(h)})}T(){let s=[],l=Math.max(this.P>>1,1);for(let c=0;c>1}begin(){return new o(0,this)}end(){return new o(this.i,this)}rBegin(){return new o(this.i-1,this,1)}rEnd(){return new o(-1,this,1)}front(){if(this.i!==0)return this.A[this.j][this.D]}back(){if(this.i!==0)return this.A[this.R][this.N]}pushBack(s){return this.i&&(this.N0?this.N-=1:this.R>0?(this.R-=1,this.N=this.F-1):(this.R=this.P-1,this.N=this.F-1)),this.i-=1,s}pushFront(s){return this.i&&(this.D>0?this.D-=1:this.j>0?(this.j-=1,this.D=this.F-1):(this.j=this.P-1,this.D=this.F-1),this.j===this.R&&this.D===this.N&&this.T()),this.i+=1,this.A[this.j][this.D]=s,this.i}popFront(){if(this.i===0)return;let s=this.A[this.j][this.D];return this.i!==1&&(this.Dthis.i-1)throw new RangeError;let{curNodeBucketIndex:l,curNodePointerIndex:c}=this.O(s);return this.A[l][c]}setElementByPos(s,l){if(s<0||s>this.i-1)throw new RangeError;let{curNodeBucketIndex:c,curNodePointerIndex:u}=this.O(s);this.A[c][u]=l}insert(s,l,c=1){if(s<0||s>this.i)throw new RangeError;if(s===0)for(;c--;)this.pushFront(l);else if(s===this.i)for(;c--;)this.pushBack(l);else{let u=[];for(let f=s;fthis.i-1)throw new RangeError;if(s===0)this.popFront();else if(s===this.i-1)this.popBack();else{let l=[];for(let u=s+1;us;)this.popBack();return this.i}sort(s){let l=[];for(let c=0;c{Vt(),qt(),Kt(),Object.defineProperty(e,"t",{value:!0}),e.TreeNodeEnableIndex=e.TreeNode=void 0;var t=class{constructor(r,o){this.ee=1,this.u=void 0,this.l=void 0,this.U=void 0,this.W=void 0,this.tt=void 0,this.u=r,this.l=o}L(){let r=this;if(r.ee===1&&r.tt.tt===r)r=r.W;else if(r.U)for(r=r.U;r.W;)r=r.W;else{let o=r.tt;for(;o.U===r;)r=o,o=r.tt;r=o}return r}B(){let r=this;if(r.W){for(r=r.W;r.U;)r=r.U;return r}else{let o=r.tt;for(;o.W===r;)r=o,o=r.tt;return r.W!==o?o:r}}te(){let r=this.tt,o=this.W,i=o.U;return r.tt===this?r.tt=o:r.U===this?r.U=o:r.W=o,o.tt=r,o.U=this,this.tt=o,this.W=i,i&&(i.tt=this),o}se(){let r=this.tt,o=this.U,i=o.W;return r.tt===this?r.tt=o:r.U===this?r.U=o:r.W=o,o.tt=r,o.W=this,this.tt=o,this.U=i,i&&(i.tt=this),o}};e.TreeNode=t;var n=class extends t{constructor(){super(...arguments),this.rt=1}te(){let r=super.te();return this.ie(),r.ie(),r}se(){let r=super.se();return this.ie(),r.ie(),r}ie(){this.rt=1,this.U&&(this.rt+=this.U.rt),this.W&&(this.rt+=this.W.rt)}};e.TreeNodeEnableIndex=n}),sZ=Zt(e=>{Vt(),qt(),Kt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=cCe(),n=cd(),r=ud(),o=class extends n.Container{constructor(a=function(l,c){return lc?1:0},s=!1){super(),this.Y=void 0,this.v=a,s?(this.re=t.TreeNodeEnableIndex,this.M=function(l,c,u){let f=this.ne(l,c,u);if(f){let h=f.tt;for(;h!==this.h;)h.rt+=1,h=h.tt;let p=this.he(f);if(p){let{parentNode:m,grandParent:g,curNode:v}=p;m.ie(),g.ie(),v.ie()}}return this.i},this.V=function(l){let c=this.fe(l);for(;c!==this.h;)c.rt-=1,c=c.tt}):(this.re=t.TreeNode,this.M=function(l,c,u){let f=this.ne(l,c,u);return f&&this.he(f),this.i},this.V=this.fe),this.h=new this.re}X(a,s){let l=this.h;for(;a;){let c=this.v(a.u,s);if(c<0)a=a.W;else if(c>0)l=a,a=a.U;else return a}return l}Z(a,s){let l=this.h;for(;a;)this.v(a.u,s)<=0?a=a.W:(l=a,a=a.U);return l}$(a,s){let l=this.h;for(;a;){let c=this.v(a.u,s);if(c<0)l=a,a=a.W;else if(c>0)a=a.U;else return a}return l}rr(a,s){let l=this.h;for(;a;)this.v(a.u,s)<0?(l=a,a=a.W):a=a.U;return l}ue(a){for(;;){let s=a.tt;if(s===this.h)return;if(a.ee===1){a.ee=0;return}if(a===s.U){let l=s.W;if(l.ee===1)l.ee=0,s.ee=1,s===this.Y?this.Y=s.te():s.te();else if(l.W&&l.W.ee===1){l.ee=s.ee,s.ee=0,l.W.ee=0,s===this.Y?this.Y=s.te():s.te();return}else l.U&&l.U.ee===1?(l.ee=1,l.U.ee=0,l.se()):(l.ee=1,a=s)}else{let l=s.U;if(l.ee===1)l.ee=0,s.ee=1,s===this.Y?this.Y=s.se():s.se();else if(l.U&&l.U.ee===1){l.ee=s.ee,s.ee=0,l.U.ee=0,s===this.Y?this.Y=s.se():s.se();return}else l.W&&l.W.ee===1?(l.ee=1,l.W.ee=0,l.te()):(l.ee=1,a=s)}}}fe(a){if(this.i===1)return this.clear(),this.h;let s=a;for(;s.U||s.W;){if(s.W)for(s=s.W;s.U;)s=s.U;else s=s.U;[a.u,s.u]=[s.u,a.u],[a.l,s.l]=[s.l,a.l],a=s}this.h.U===s?this.h.U=s.tt:this.h.W===s&&(this.h.W=s.tt),this.ue(s);let l=s.tt;return s===l.U?l.U=void 0:l.W=void 0,this.i-=1,this.Y.ee=0,l}oe(a,s){return a===void 0?!1:this.oe(a.U,s)||s(a)?!0:this.oe(a.W,s)}he(a){for(;;){let s=a.tt;if(s.ee===0)return;let l=s.tt;if(s===l.U){let c=l.W;if(c&&c.ee===1){if(c.ee=s.ee=0,l===this.Y)return;l.ee=1,a=l;continue}else if(a===s.W){if(a.ee=0,a.U&&(a.U.tt=s),a.W&&(a.W.tt=l),s.W=a.U,l.U=a.W,a.U=s,a.W=l,l===this.Y)this.Y=a,this.h.tt=a;else{let u=l.tt;u.U===l?u.U=a:u.W=a}return a.tt=l.tt,s.tt=a,l.tt=a,l.ee=1,{parentNode:s,grandParent:l,curNode:a}}else s.ee=0,l===this.Y?this.Y=l.se():l.se(),l.ee=1}else{let c=l.U;if(c&&c.ee===1){if(c.ee=s.ee=0,l===this.Y)return;l.ee=1,a=l;continue}else if(a===s.U){if(a.ee=0,a.U&&(a.U.tt=l),a.W&&(a.W.tt=s),l.W=a.U,s.U=a.W,a.U=l,a.W=s,l===this.Y)this.Y=a,this.h.tt=a;else{let u=l.tt;u.U===l?u.U=a:u.W=a}return a.tt=l.tt,s.tt=a,l.tt=a,l.ee=1,{parentNode:s,grandParent:l,curNode:a}}else s.ee=0,l===this.Y?this.Y=l.te():l.te(),l.ee=1}return}}ne(a,s,l){if(this.Y===void 0){this.i+=1,this.Y=new this.re(a,s),this.Y.ee=0,this.Y.tt=this.h,this.h.tt=this.Y,this.h.U=this.Y,this.h.W=this.Y;return}let c,u=this.h.U,f=this.v(u.u,a);if(f===0){u.l=s;return}else if(f>0)u.U=new this.re(a,s),u.U.tt=u,c=u.U,this.h.U=c;else{let h=this.h.W,p=this.v(h.u,a);if(p===0){h.l=s;return}else if(p<0)h.W=new this.re(a,s),h.W.tt=h,c=h.W,this.h.W=c;else{if(l!==void 0){let m=l.o;if(m!==this.h){let g=this.v(m.u,a);if(g===0){m.l=s;return}else if(g>0){let v=m.L(),b=this.v(v.u,a);if(b===0){v.l=s;return}else b<0&&(c=new this.re(a,s),v.W===void 0?(v.W=c,c.tt=v):(m.U=c,c.tt=m))}}}if(c===void 0)for(c=this.Y;;){let m=this.v(c.u,a);if(m>0){if(c.U===void 0){c.U=new this.re(a,s),c.U.tt=c,c=c.U;break}c=c.U}else if(m<0){if(c.W===void 0){c.W=new this.re(a,s),c.W.tt=c,c=c.W;break}c=c.W}else{c.l=s;return}}}}return this.i+=1,c}I(a,s){for(;a;){let l=this.v(a.u,s);if(l<0)a=a.W;else if(l>0)a=a.U;else return a}return a||this.h}clear(){this.i=0,this.Y=void 0,this.h.tt=void 0,this.h.U=this.h.W=void 0}updateKeyByIterator(a,s){let l=a.o;if(l===this.h&&(0,r.throwIteratorAccessError)(),this.i===1)return l.u=s,!0;if(l===this.h.U)return this.v(l.B().u,s)>0?(l.u=s,!0):!1;if(l===this.h.W)return this.v(l.L().u,s)<0?(l.u=s,!0):!1;let c=l.L().u;if(this.v(c,s)>=0)return!1;let u=l.B().u;return this.v(u,s)<=0?!1:(l.u=s,!0)}eraseElementByPos(a){if(a<0||a>this.i-1)throw new RangeError;let s=0,l=this;return this.oe(this.Y,function(c){return a===s?(l.V(c),!0):(s+=1,!1)}),this.i}eraseElementByKey(a){if(this.i===0)return!1;let s=this.I(this.Y,a);return s===this.h?!1:(this.V(s),!0)}eraseElementByIterator(a){let s=a.o;s===this.h&&(0,r.throwIteratorAccessError)();let l=s.W===void 0;return a.iteratorType===0?l&&a.next():(!l||s.U===void 0)&&a.next(),this.V(s),a}forEach(a){let s=0;for(let l of this)a(l,s++,this)}getElementByPos(a){if(a<0||a>this.i-1)throw new RangeError;let s,l=0;for(let c of this){if(l===a){s=c;break}l+=1}return s}getHeight(){if(this.i===0)return 0;let a=function(s){return s?Math.max(a(s.U),a(s.W))+1:0};return a(this.Y)}},i=o;e.default=i}),lZ=Zt(e=>{Vt(),qt(),Kt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=cd(),n=ud(),r=class extends t.ContainerIterator{constructor(i,a,s){super(s),this.o=i,this.h=a,this.iteratorType===0?(this.pre=function(){return this.o===this.h.U&&(0,n.throwIteratorAccessError)(),this.o=this.o.L(),this},this.next=function(){return this.o===this.h&&(0,n.throwIteratorAccessError)(),this.o=this.o.B(),this}):(this.pre=function(){return this.o===this.h.W&&(0,n.throwIteratorAccessError)(),this.o=this.o.B(),this},this.next=function(){return this.o===this.h&&(0,n.throwIteratorAccessError)(),this.o=this.o.L(),this})}get index(){let i=this.o,a=this.h.tt;if(i===this.h)return a?a.rt-1:0;let s=0;for(i.U&&(s+=i.U.rt);i!==a;){let l=i.tt;i===l.W&&(s+=1,l.U&&(s+=l.U.rt)),i=l}return s}},o=r;e.default=o}),uCe=Zt(e=>{Vt(),qt(),Kt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=o(sZ()),n=o(lZ()),r=ud();function o(l){return l&&l.t?l:{default:l}}var i=class cZ extends n.default{constructor(c,u,f,h){super(c,u,h),this.container=f}get pointer(){return this.o===this.h&&(0,r.throwIteratorAccessError)(),this.o.u}copy(){return new cZ(this.o,this.h,this.container,this.iteratorType)}},a=class extends t.default{constructor(l=[],c,u){super(c,u);let f=this;l.forEach(function(h){f.insert(h)})}*K(l){l!==void 0&&(yield*this.K(l.U),yield l.u,yield*this.K(l.W))}begin(){return new i(this.h.U||this.h,this.h,this)}end(){return new i(this.h,this.h,this)}rBegin(){return new i(this.h.W||this.h,this.h,this,1)}rEnd(){return new i(this.h,this.h,this,1)}front(){return this.h.U?this.h.U.u:void 0}back(){return this.h.W?this.h.W.u:void 0}insert(l,c){return this.M(l,void 0,c)}find(l){let c=this.I(this.Y,l);return new i(c,this.h,this)}lowerBound(l){let c=this.X(this.Y,l);return new i(c,this.h,this)}upperBound(l){let c=this.Z(this.Y,l);return new i(c,this.h,this)}reverseLowerBound(l){let c=this.$(this.Y,l);return new i(c,this.h,this)}reverseUpperBound(l){let c=this.rr(this.Y,l);return new i(c,this.h,this)}union(l){let c=this;return l.forEach(function(u){c.insert(u)}),this.i}[Symbol.iterator](){return this.K(this.Y)}},s=a;e.default=s}),dCe=Zt(e=>{Vt(),qt(),Kt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=o(sZ()),n=o(lZ()),r=ud();function o(l){return l&&l.t?l:{default:l}}var i=class uZ extends n.default{constructor(c,u,f,h){super(c,u,h),this.container=f}get pointer(){this.o===this.h&&(0,r.throwIteratorAccessError)();let c=this;return new Proxy([],{get(u,f){if(f==="0")return c.o.u;if(f==="1")return c.o.l},set(u,f,h){if(f!=="1")throw new TypeError("props must be 1");return c.o.l=h,!0}})}copy(){return new uZ(this.o,this.h,this.container,this.iteratorType)}},a=class extends t.default{constructor(l=[],c,u){super(c,u);let f=this;l.forEach(function(h){f.setElement(h[0],h[1])})}*K(l){l!==void 0&&(yield*this.K(l.U),yield[l.u,l.l],yield*this.K(l.W))}begin(){return new i(this.h.U||this.h,this.h,this)}end(){return new i(this.h,this.h,this)}rBegin(){return new i(this.h.W||this.h,this.h,this,1)}rEnd(){return new i(this.h,this.h,this,1)}front(){if(this.i===0)return;let l=this.h.U;return[l.u,l.l]}back(){if(this.i===0)return;let l=this.h.W;return[l.u,l.l]}lowerBound(l){let c=this.X(this.Y,l);return new i(c,this.h,this)}upperBound(l){let c=this.Z(this.Y,l);return new i(c,this.h,this)}reverseLowerBound(l){let c=this.$(this.Y,l);return new i(c,this.h,this)}reverseUpperBound(l){let c=this.rr(this.Y,l);return new i(c,this.h,this)}setElement(l,c,u){return this.M(l,c,u)}find(l){let c=this.I(this.Y,l);return new i(c,this.h,this)}getElementByKey(l){return this.I(this.Y,l).l}union(l){let c=this;return l.forEach(function(u){c.setElement(u[0],u[1])}),this.i}[Symbol.iterator](){return this.K(this.Y)}},s=a;e.default=s}),dZ=Zt(e=>{Vt(),qt(),Kt(),Object.defineProperty(e,"t",{value:!0}),e.default=t;function t(n){let r=typeof n;return r==="object"&&n!==null||r==="function"}}),fZ=Zt(e=>{Vt(),qt(),Kt(),Object.defineProperty(e,"t",{value:!0}),e.HashContainerIterator=e.HashContainer=void 0;var t=cd(),n=o(dZ()),r=ud();function o(s){return s&&s.t?s:{default:s}}var i=class extends t.ContainerIterator{constructor(s,l,c){super(c),this.o=s,this.h=l,this.iteratorType===0?(this.pre=function(){return this.o.L===this.h&&(0,r.throwIteratorAccessError)(),this.o=this.o.L,this},this.next=function(){return this.o===this.h&&(0,r.throwIteratorAccessError)(),this.o=this.o.B,this}):(this.pre=function(){return this.o.B===this.h&&(0,r.throwIteratorAccessError)(),this.o=this.o.B,this},this.next=function(){return this.o===this.h&&(0,r.throwIteratorAccessError)(),this.o=this.o.L,this})}};e.HashContainerIterator=i;var a=class extends t.Container{constructor(){super(),this.H=[],this.g={},this.HASH_TAG=Symbol("@@HASH_TAG"),Object.setPrototypeOf(this.g,null),this.h={},this.h.L=this.h.B=this.p=this._=this.h}V(s){let{L:l,B:c}=s;l.B=c,c.L=l,s===this.p&&(this.p=c),s===this._&&(this._=l),this.i-=1}M(s,l,c){c===void 0&&(c=(0,n.default)(s));let u;if(c){let f=s[this.HASH_TAG];if(f!==void 0)return this.H[f].l=l,this.i;Object.defineProperty(s,this.HASH_TAG,{value:this.H.length,configurable:!0}),u={u:s,l,L:this._,B:this.h},this.H.push(u)}else{let f=this.g[s];if(f)return f.l=l,this.i;u={u:s,l,L:this._,B:this.h},this.g[s]=u}return this.i===0?(this.p=u,this.h.B=u):this._.B=u,this._=u,this.h.L=u,++this.i}I(s,l){if(l===void 0&&(l=(0,n.default)(s)),l){let c=s[this.HASH_TAG];return c===void 0?this.h:this.H[c]}else return this.g[s]||this.h}clear(){let s=this.HASH_TAG;this.H.forEach(function(l){delete l.u[s]}),this.H=[],this.g={},Object.setPrototypeOf(this.g,null),this.i=0,this.p=this._=this.h.L=this.h.B=this.h}eraseElementByKey(s,l){let c;if(l===void 0&&(l=(0,n.default)(s)),l){let u=s[this.HASH_TAG];if(u===void 0)return!1;delete s[this.HASH_TAG],c=this.H[u],delete this.H[u]}else{if(c=this.g[s],c===void 0)return!1;delete this.g[s]}return this.V(c),!0}eraseElementByIterator(s){let l=s.o;return l===this.h&&(0,r.throwIteratorAccessError)(),this.V(l),s.next()}eraseElementByPos(s){if(s<0||s>this.i-1)throw new RangeError;let l=this.p;for(;s--;)l=l.B;return this.V(l),this.i}};e.HashContainer=a}),fCe=Zt(e=>{Vt(),qt(),Kt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=fZ(),n=ud(),r=class hZ extends t.HashContainerIterator{constructor(s,l,c,u){super(s,l,u),this.container=c}get pointer(){return this.o===this.h&&(0,n.throwIteratorAccessError)(),this.o.u}copy(){return new hZ(this.o,this.h,this.container,this.iteratorType)}},o=class extends t.HashContainer{constructor(a=[]){super();let s=this;a.forEach(function(l){s.insert(l)})}begin(){return new r(this.p,this.h,this)}end(){return new r(this.h,this.h,this)}rBegin(){return new r(this._,this.h,this,1)}rEnd(){return new r(this.h,this.h,this,1)}front(){return this.p.u}back(){return this._.u}insert(a,s){return this.M(a,void 0,s)}getElementByPos(a){if(a<0||a>this.i-1)throw new RangeError;let s=this.p;for(;a--;)s=s.B;return s.u}find(a,s){let l=this.I(a,s);return new r(l,this.h,this)}forEach(a){let s=0,l=this.p;for(;l!==this.h;)a(l.u,s++,this),l=l.B}[Symbol.iterator](){return(function*(){let a=this.p;for(;a!==this.h;)yield a.u,a=a.B}).bind(this)()}},i=o;e.default=i}),hCe=Zt(e=>{Vt(),qt(),Kt(),Object.defineProperty(e,"t",{value:!0}),e.default=void 0;var t=fZ(),n=o(dZ()),r=ud();function o(l){return l&&l.t?l:{default:l}}var i=class pZ extends t.HashContainerIterator{constructor(c,u,f,h){super(c,u,h),this.container=f}get pointer(){this.o===this.h&&(0,r.throwIteratorAccessError)();let c=this;return new Proxy([],{get(u,f){if(f==="0")return c.o.u;if(f==="1")return c.o.l},set(u,f,h){if(f!=="1")throw new TypeError("props must be 1");return c.o.l=h,!0}})}copy(){return new pZ(this.o,this.h,this.container,this.iteratorType)}},a=class extends t.HashContainer{constructor(l=[]){super();let c=this;l.forEach(function(u){c.setElement(u[0],u[1])})}begin(){return new i(this.p,this.h,this)}end(){return new i(this.h,this.h,this)}rBegin(){return new i(this._,this.h,this,1)}rEnd(){return new i(this.h,this.h,this,1)}front(){if(this.i!==0)return[this.p.u,this.p.l]}back(){if(this.i!==0)return[this._.u,this._.l]}setElement(l,c,u){return this.M(l,c,u)}getElementByKey(l,c){if(c===void 0&&(c=(0,n.default)(l)),c){let f=l[this.HASH_TAG];return f!==void 0?this.H[f].l:void 0}let u=this.g[l];return u?u.l:void 0}getElementByPos(l){if(l<0||l>this.i-1)throw new RangeError;let c=this.p;for(;l--;)c=c.B;return[c.u,c.l]}find(l,c){let u=this.I(l,c);return new i(u,this.h,this)}forEach(l){let c=0,u=this.p;for(;u!==this.h;)l([u.u,u.l],c++,this),u=u.B}[Symbol.iterator](){return(function*(){let l=this.p;for(;l!==this.h;)yield[l.u,l.l],l=l.B}).bind(this)()}},s=a;e.default=s}),pCe=Zt(e=>{Vt(),qt(),Kt(),Object.defineProperty(e,"t",{value:!0}),Object.defineProperty(e,"Deque",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"HashMap",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"HashSet",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"LinkList",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"OrderedMap",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"OrderedSet",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"PriorityQueue",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"Queue",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"Stack",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"Vector",{enumerable:!0,get:function(){return o.default}});var t=f(rCe()),n=f(oCe()),r=f(iCe()),o=f(aCe()),i=f(sCe()),a=f(lCe()),s=f(uCe()),l=f(dCe()),c=f(fCe()),u=f(hCe());function f(h){return h&&h.t?h:{default:h}}}),mCe=Zt((e,t)=>{Vt(),qt(),Kt();var n=pCe().OrderedSet,r=Ju()("number-allocator:trace"),o=Ju()("number-allocator:error");function i(s,l){this.low=s,this.high=l}i.prototype.equals=function(s){return this.low===s.low&&this.high===s.high},i.prototype.compare=function(s){return this.lowc.compare(u)),r("Create"),this.clear()}a.prototype.firstVacant=function(){return this.ss.size()===0?null:this.ss.front().low},a.prototype.alloc=function(){if(this.ss.size()===0)return r("alloc():empty"),null;let s=this.ss.begin(),l=s.pointer.low,c=s.pointer.high,u=l;return u+1<=c?this.ss.updateKeyByIterator(s,new i(l+1,c)):this.ss.eraseElementByPos(0),r("alloc():"+u),u},a.prototype.use=function(s){let l=new i(s,s),c=this.ss.lowerBound(l);if(!c.equals(this.ss.end())){let u=c.pointer.low,f=c.pointer.high;return c.pointer.equals(l)?(this.ss.eraseElementByIterator(c),r("use():"+s),!0):u>s?!1:u===s?(this.ss.updateKeyByIterator(c,new i(u+1,f)),r("use():"+s),!0):f===s?(this.ss.updateKeyByIterator(c,new i(u,f-1)),r("use():"+s),!0):(this.ss.updateKeyByIterator(c,new i(s+1,f)),this.ss.insert(new i(u,s-1)),r("use():"+s),!0)}return r("use():failed"),!1},a.prototype.free=function(s){if(sthis.max){o("free():"+s+" is out of range");return}let l=new i(s,s),c=this.ss.upperBound(l);if(c.equals(this.ss.end())){if(c.equals(this.ss.begin())){this.ss.insert(l);return}c.pre();let u=c.pointer.high;c.pointer.high+1===s?this.ss.updateKeyByIterator(c,new i(u,s)):this.ss.insert(l)}else if(c.equals(this.ss.begin()))if(s+1===c.pointer.low){let u=c.pointer.high;this.ss.updateKeyByIterator(c,new i(s,u))}else this.ss.insert(l);else{let u=c.pointer.low,f=c.pointer.high;c.pre();let h=c.pointer.low;c.pointer.high+1===s?s+1===u?(this.ss.eraseElementByIterator(c),this.ss.updateKeyByIterator(c,new i(h,f))):this.ss.updateKeyByIterator(c,new i(h,s)):s+1===u?(this.ss.eraseElementByIterator(c.next()),this.ss.insert(new i(s,f))):this.ss.insert(l)}r("free():"+s)},a.prototype.clear=function(){r("clear()"),this.ss.clear(),this.ss.insert(new i(this.min,this.max))},a.prototype.intervalCount=function(){return this.ss.size()},a.prototype.dump=function(){console.log("length:"+this.ss.size());for(let s of this.ss)console.log(s)},t.exports=a}),mZ=Zt((e,t)=>{Vt(),qt(),Kt();var n=mCe();t.exports.NumberAllocator=n}),gCe=Zt(e=>{Vt(),qt(),Kt(),Object.defineProperty(e,"__esModule",{value:!0});var t=nCe(),n=mZ(),r=class{constructor(o){o>0&&(this.aliasToTopic=new t.LRUCache({max:o}),this.topicToAlias={},this.numberAllocator=new n.NumberAllocator(1,o),this.max=o,this.length=0)}put(o,i){if(i===0||i>this.max)return!1;let a=this.aliasToTopic.get(i);return a&&delete this.topicToAlias[a],this.aliasToTopic.set(i,o),this.topicToAlias[o]=i,this.numberAllocator.use(i),this.length=this.aliasToTopic.size,!0}getTopicByAlias(o){return this.aliasToTopic.get(o)}getAliasByTopic(o){let i=this.topicToAlias[o];return typeof i<"u"&&this.aliasToTopic.get(i),i}clear(){this.aliasToTopic.clear(),this.topicToAlias={},this.numberAllocator.clear(),this.length=0}getLruAlias(){return this.numberAllocator.firstVacant()||[...this.aliasToTopic.keys()][this.aliasToTopic.size-1]}};e.default=r}),vCe=Zt(e=>{Vt(),qt(),Kt();var t=e&&e.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(e,"__esModule",{value:!0});var n=D_(),r=t(gCe()),o=Sv(),i=(a,s)=>{a.log("_handleConnack");let{options:l}=a,c=l.protocolVersion===5?s.reasonCode:s.returnCode;if(clearTimeout(a.connackTimer),delete a.topicAliasSend,s.properties){if(s.properties.topicAliasMaximum){if(s.properties.topicAliasMaximum>65535){a.emit("error",new Error("topicAliasMaximum from broker is out of range"));return}s.properties.topicAliasMaximum>0&&(a.topicAliasSend=new r.default(s.properties.topicAliasMaximum))}s.properties.serverKeepAlive&&l.keepalive&&(l.keepalive=s.properties.serverKeepAlive),s.properties.maximumPacketSize&&(l.properties||(l.properties={}),l.properties.maximumPacketSize=s.properties.maximumPacketSize)}if(c===0)a.reconnecting=!1,a._onConnect(s);else if(c>0){let u=new o.ErrorWithReasonCode(`Connection refused: ${n.ReasonCodes[c]}`,c);a.emit("error",u),a.options.reconnectOnConnackError&&a._cleanUp(!0)}};e.default=i}),yCe=Zt(e=>{Vt(),qt(),Kt(),Object.defineProperty(e,"__esModule",{value:!0});var t=(n,r,o)=>{n.log("handling pubrel packet");let i=typeof o<"u"?o:n.noop,{messageId:a}=r,s={cmd:"pubcomp",messageId:a};n.incomingStore.get(r,(l,c)=>{l?n._sendPacket(s,i):(n.emit("message",c.topic,c.payload,c),n.handleMessage(c,u=>{if(u)return i(u);n.incomingStore.del(c,n.noop),n._sendPacket(s,i)}))})};e.default=t}),bCe=Zt(e=>{Vt(),qt(),Kt();var t=e&&e.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(e,"__esModule",{value:!0});var n=t(ZSe()),r=t(tCe()),o=t(vCe()),i=t(D_()),a=t(yCe()),s=(l,c,u)=>{let{options:f}=l;if(f.protocolVersion===5&&f.properties&&f.properties.maximumPacketSize&&f.properties.maximumPacketSize{Vt(),qt(),Kt();var t=e&&e.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(e,"__esModule",{value:!0}),e.TypedEventEmitter=void 0;var n=t((bv(),Qr(kp))),r=Sv(),o=class{};e.TypedEventEmitter=o,(0,r.applyMixin)(o,n.default)}),j_=Zt(e=>{Vt(),qt(),Kt(),Object.defineProperty(e,"__esModule",{value:!0}),e.isReactNativeBrowser=e.isWebWorker=void 0;var t=()=>{var i;return typeof window<"u"?typeof navigator<"u"&&((i=navigator.userAgent)===null||i===void 0?void 0:i.toLowerCase().indexOf(" electron/"))>-1&&jr!=null&&jr.versions?!Object.prototype.hasOwnProperty.call(jr.versions,"electron"):typeof window.document<"u":!1},n=()=>{var i,a;return!!(typeof self=="object"&&!((a=(i=self==null?void 0:self.constructor)===null||i===void 0?void 0:i.name)===null||a===void 0)&&a.includes("WorkerGlobalScope"))},r=()=>typeof navigator<"u"&&navigator.product==="ReactNative",o=t()||n()||r();e.isWebWorker=n(),e.isReactNativeBrowser=r(),e.default=o}),CCe=Zt((e,t)=>{Vt(),qt(),Kt(),function(n,r){typeof e=="object"&&typeof t<"u"?r(e):typeof define=="function"&&define.amd?define(["exports"],r):(n=typeof globalThis<"u"?globalThis:n||self,r(n.fastUniqueNumbers={}))}(e,function(n){var r=function(p){return function(m){var g=p(m);return m.add(g),g}},o=function(p){return function(m,g){return p.set(m,g),g}},i=Number.MAX_SAFE_INTEGER===void 0?9007199254740991:Number.MAX_SAFE_INTEGER,a=536870912,s=a*2,l=function(p,m){return function(g){var v=m.get(g),b=v===void 0?g.size:vi)throw new Error("Congratulations, you created a collection of unique numbers which uses all available integers!");for(;g.has(b);)b=Math.floor(Math.random()*i);return p(g,b)}},c=new WeakMap,u=o(c),f=l(u,c),h=r(f);n.addUniqueNumber=h,n.generateUniqueNumber=f})}),wCe=Zt((e,t)=>{Vt(),qt(),Kt(),function(n,r){typeof e=="object"&&typeof t<"u"?r(e,CCe()):typeof define=="function"&&define.amd?define(["exports","fast-unique-numbers"],r):(n=typeof globalThis<"u"?globalThis:n||self,r(n.workerTimersBroker={},n.fastUniqueNumbers))}(e,function(n,r){var o=function(s){return s.method!==void 0&&s.method==="call"},i=function(s){return s.error===null&&typeof s.id=="number"},a=function(s){var l=new Map([[0,function(){}]]),c=new Map([[0,function(){}]]),u=new Map,f=new Worker(s);f.addEventListener("message",function(v){var b=v.data;if(o(b)){var y=b.params,S=y.timerId,w=y.timerType;if(w==="interval"){var E=l.get(S);if(typeof E=="number"){var C=u.get(E);if(C===void 0||C.timerId!==S||C.timerType!==w)throw new Error("The timer is in an undefined state.")}else if(typeof E<"u")E();else throw new Error("The timer is in an undefined state.")}else if(w==="timeout"){var x=c.get(S);if(typeof x=="number"){var _=u.get(x);if(_===void 0||_.timerId!==S||_.timerType!==w)throw new Error("The timer is in an undefined state.")}else if(typeof x<"u")x(),c.delete(S);else throw new Error("The timer is in an undefined state.")}}else if(i(b)){var P=b.id,O=u.get(P);if(O===void 0)throw new Error("The timer is in an undefined state.");var I=O.timerId,M=O.timerType;u.delete(P),M==="interval"?l.delete(I):c.delete(I)}else{var T=b.error.message;throw new Error(T)}});var h=function(v){var b=r.generateUniqueNumber(u);u.set(b,{timerId:v,timerType:"interval"}),l.set(v,b),f.postMessage({id:b,method:"clear",params:{timerId:v,timerType:"interval"}})},p=function(v){var b=r.generateUniqueNumber(u);u.set(b,{timerId:v,timerType:"timeout"}),c.set(v,b),f.postMessage({id:b,method:"clear",params:{timerId:v,timerType:"timeout"}})},m=function(v){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,y=r.generateUniqueNumber(l);return l.set(y,function(){v(),typeof l.get(y)=="function"&&f.postMessage({id:null,method:"set",params:{delay:b,now:performance.now(),timerId:y,timerType:"interval"}})}),f.postMessage({id:null,method:"set",params:{delay:b,now:performance.now(),timerId:y,timerType:"interval"}}),y},g=function(v){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,y=r.generateUniqueNumber(c);return c.set(y,v),f.postMessage({id:null,method:"set",params:{delay:b,now:performance.now(),timerId:y,timerType:"timeout"}}),y};return{clearInterval:h,clearTimeout:p,setInterval:m,setTimeout:g}};n.load=a})}),xCe=Zt((e,t)=>{Vt(),qt(),Kt(),function(n,r){typeof e=="object"&&typeof t<"u"?r(e,wCe()):typeof define=="function"&&define.amd?define(["exports","worker-timers-broker"],r):(n=typeof globalThis<"u"?globalThis:n||self,r(n.workerTimers={},n.workerTimersBroker))}(e,function(n,r){var o=function(f,h){var p=null;return function(){if(p!==null)return p;var m=new Blob([h],{type:"application/javascript; charset=utf-8"}),g=URL.createObjectURL(m);return p=f(g),setTimeout(function(){return URL.revokeObjectURL(g)}),p}},i=`(()=>{var e={472:(e,t,r)=>{var o,i;void 0===(i="function"==typeof(o=function(){"use strict";var e=new Map,t=new Map,r=function(t){var r=e.get(t);if(void 0===r)throw new Error('There is no interval scheduled with the given id "'.concat(t,'".'));clearTimeout(r),e.delete(t)},o=function(e){var r=t.get(e);if(void 0===r)throw new Error('There is no timeout scheduled with the given id "'.concat(e,'".'));clearTimeout(r),t.delete(e)},i=function(e,t){var r,o=performance.now();return{expected:o+(r=e-Math.max(0,o-t)),remainingDelay:r}},n=function e(t,r,o,i){var n=performance.now();n>o?postMessage({id:null,method:"call",params:{timerId:r,timerType:i}}):t.set(r,setTimeout(e,o-n,t,r,o,i))},a=function(t,r,o){var a=i(t,o),s=a.expected,d=a.remainingDelay;e.set(r,setTimeout(n,d,e,r,s,"interval"))},s=function(e,r,o){var a=i(e,o),s=a.expected,d=a.remainingDelay;t.set(r,setTimeout(n,d,t,r,s,"timeout"))};addEventListener("message",(function(e){var t=e.data;try{if("clear"===t.method){var i=t.id,n=t.params,d=n.timerId,c=n.timerType;if("interval"===c)r(d),postMessage({error:null,id:i});else{if("timeout"!==c)throw new Error('The given type "'.concat(c,'" is not supported'));o(d),postMessage({error:null,id:i})}}else{if("set"!==t.method)throw new Error('The given method "'.concat(t.method,'" is not supported'));var u=t.params,l=u.delay,p=u.now,m=u.timerId,v=u.timerType;if("interval"===v)a(l,m,p);else{if("timeout"!==v)throw new Error('The given type "'.concat(v,'" is not supported'));s(l,m,p)}}}catch(e){postMessage({error:{message:e.message},id:t.id,result:null})}}))})?o.call(t,r,t,e):o)||(e.exports=i)}},t={};function r(o){var i=t[o];if(void 0!==i)return i.exports;var n=t[o]={exports:{}};return e[o](n,n.exports,r),n.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";r(472)})()})();`,a=o(r.load,i),s=function(f){return a().clearInterval(f)},l=function(f){return a().clearTimeout(f)},c=function(){var f;return(f=a()).setInterval.apply(f,arguments)},u=function(){var f;return(f=a()).setTimeout.apply(f,arguments)};n.clearInterval=s,n.clearTimeout=l,n.setInterval=c,n.setTimeout=u})}),ECe=Zt(e=>{Vt(),qt(),Kt();var t=e&&e.__createBinding||(Object.create?function(c,u,f,h){h===void 0&&(h=f);var p=Object.getOwnPropertyDescriptor(u,f);(!p||("get"in p?!u.__esModule:p.writable||p.configurable))&&(p={enumerable:!0,get:function(){return u[f]}}),Object.defineProperty(c,h,p)}:function(c,u,f,h){h===void 0&&(h=f),c[h]=u[f]}),n=e&&e.__setModuleDefault||(Object.create?function(c,u){Object.defineProperty(c,"default",{enumerable:!0,value:u})}:function(c,u){c.default=u}),r=e&&e.__importStar||function(c){if(c&&c.__esModule)return c;var u={};if(c!=null)for(var f in c)f!=="default"&&Object.prototype.hasOwnProperty.call(c,f)&&t(u,c,f);return n(u,c),u};Object.defineProperty(e,"__esModule",{value:!0});var o=r(j_()),i=xCe(),a={set:i.setInterval,clear:i.clearInterval},s={set:(c,u)=>setInterval(c,u),clear:c=>clearInterval(c)},l=c=>{switch(c){case"native":return s;case"worker":return a;case"auto":default:return o.default&&!o.isWebWorker&&!o.isReactNativeBrowser?a:s}};e.default=l}),gZ=Zt(e=>{Vt(),qt(),Kt();var t=e&&e.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(e,"__esModule",{value:!0});var n=t(ECe()),r=class{get keepaliveTimeoutTimestamp(){return this._keepaliveTimeoutTimestamp}get intervalEvery(){return this._intervalEvery}get keepalive(){return this._keepalive}constructor(o,i){this.destroyed=!1,this.client=o,this.timer=typeof i=="object"&&"set"in i&&"clear"in i?i:(0,n.default)(i),this.setKeepalive(o.options.keepalive)}clear(){this.timerId&&(this.timer.clear(this.timerId),this.timerId=null)}setKeepalive(o){if(o*=1e3,isNaN(o)||o<=0||o>2147483647)throw new Error(`Keepalive value must be an integer between 0 and 2147483647. Provided value is ${o}`);this._keepalive=o,this.reschedule(),this.client.log(`KeepaliveManager: set keepalive to ${o}ms`)}destroy(){this.clear(),this.destroyed=!0}reschedule(){if(this.destroyed)return;this.clear(),this.counter=0;let o=Math.ceil(this._keepalive*1.5);this._keepaliveTimeoutTimestamp=Date.now()+o,this._intervalEvery=Math.ceil(this._keepalive/2),this.timerId=this.timer.set(()=>{this.destroyed||(this.counter+=1,this.counter===2?this.client.sendPing():this.counter>2&&this.client.onKeepaliveTimeout())},this._intervalEvery)}};e.default=r}),Y4=Zt(e=>{Vt(),qt(),Kt();var t=e&&e.__createBinding||(Object.create?function(E,C,x,_){_===void 0&&(_=x);var P=Object.getOwnPropertyDescriptor(C,x);(!P||("get"in P?!C.__esModule:P.writable||P.configurable))&&(P={enumerable:!0,get:function(){return C[x]}}),Object.defineProperty(E,_,P)}:function(E,C,x,_){_===void 0&&(_=x),E[_]=C[x]}),n=e&&e.__setModuleDefault||(Object.create?function(E,C){Object.defineProperty(E,"default",{enumerable:!0,value:C})}:function(E,C){E.default=C}),r=e&&e.__importStar||function(E){if(E&&E.__esModule)return E;var C={};if(E!=null)for(var x in E)x!=="default"&&Object.prototype.hasOwnProperty.call(E,x)&&t(C,E,x);return n(C,E),C},o=e&&e.__importDefault||function(E){return E&&E.__esModule?E:{default:E}};Object.defineProperty(e,"__esModule",{value:!0});var i=o(hSe()),a=o(YSe()),s=o(ZJ()),l=Np(),c=o(QSe()),u=r(JSe()),f=o(Ju()),h=o(eZ()),p=o(bCe()),m=Sv(),g=SCe(),v=o(gZ()),b=r(j_()),y=globalThis.setImmediate||((...E)=>{let C=E.shift();(0,m.nextTick)(()=>{C(...E)})}),S={keepalive:60,reschedulePings:!0,protocolId:"MQTT",protocolVersion:4,reconnectPeriod:1e3,connectTimeout:30*1e3,clean:!0,resubscribe:!0,writeCache:!0,timerVariant:"auto"},w=class X4 extends g.TypedEventEmitter{static defaultId(){return`mqttjs_${Math.random().toString(16).substr(2,8)}`}constructor(C,x){super(),this.options=x||{};for(let _ in S)typeof this.options[_]>"u"?this.options[_]=S[_]:this.options[_]=x[_];this.log=this.options.log||(0,f.default)("mqttjs:client"),this.noop=this._noop.bind(this),this.log("MqttClient :: version:",X4.VERSION),b.isWebWorker?this.log("MqttClient :: environment","webworker"):this.log("MqttClient :: environment",b.default?"browser":"node"),this.log("MqttClient :: options.protocol",x.protocol),this.log("MqttClient :: options.protocolVersion",x.protocolVersion),this.log("MqttClient :: options.username",x.username),this.log("MqttClient :: options.keepalive",x.keepalive),this.log("MqttClient :: options.reconnectPeriod",x.reconnectPeriod),this.log("MqttClient :: options.rejectUnauthorized",x.rejectUnauthorized),this.log("MqttClient :: options.properties.topicAliasMaximum",x.properties?x.properties.topicAliasMaximum:void 0),this.options.clientId=typeof x.clientId=="string"?x.clientId:X4.defaultId(),this.log("MqttClient :: clientId",this.options.clientId),this.options.customHandleAcks=x.protocolVersion===5&&x.customHandleAcks?x.customHandleAcks:(..._)=>{_[3](null,0)},this.options.writeCache||(a.default.writeToStream.cacheNumbers=!1),this.streamBuilder=C,this.messageIdProvider=typeof this.options.messageIdProvider>"u"?new s.default:this.options.messageIdProvider,this.outgoingStore=x.outgoingStore||new h.default,this.incomingStore=x.incomingStore||new h.default,this.queueQoSZero=x.queueQoSZero===void 0?!0:x.queueQoSZero,this._resubscribeTopics={},this.messageIdToTopic={},this.keepaliveManager=null,this.connected=!1,this.disconnecting=!1,this.reconnecting=!1,this.queue=[],this.connackTimer=null,this.reconnectTimer=null,this._storeProcessing=!1,this._packetIdsDuringStoreProcessing={},this._storeProcessingQueue=[],this.outgoing={},this._firstConnection=!0,x.properties&&x.properties.topicAliasMaximum>0&&(x.properties.topicAliasMaximum>65535?this.log("MqttClient :: options.properties.topicAliasMaximum is out of range"):this.topicAliasRecv=new i.default(x.properties.topicAliasMaximum)),this.on("connect",()=>{let{queue:_}=this,P=()=>{let O=_.shift();this.log("deliver :: entry %o",O);let I=null;if(!O){this._resubscribe();return}I=O.packet,this.log("deliver :: call _sendPacket for %o",I);let M=!0;I.messageId&&I.messageId!==0&&(this.messageIdProvider.register(I.messageId)||(M=!1)),M?this._sendPacket(I,T=>{O.cb&&O.cb(T),P()}):(this.log("messageId: %d has already used. The message is skipped and removed.",I.messageId),P())};this.log("connect :: sending queued packets"),P()}),this.on("close",()=>{this.log("close :: connected set to `false`"),this.connected=!1,this.log("close :: clearing connackTimer"),clearTimeout(this.connackTimer),this._destroyKeepaliveManager(),this.topicAliasRecv&&this.topicAliasRecv.clear(),this.log("close :: calling _setupReconnect"),this._setupReconnect()}),this.options.manualConnect||(this.log("MqttClient :: setting up stream"),this.connect())}handleAuth(C,x){x()}handleMessage(C,x){x()}_nextId(){return this.messageIdProvider.allocate()}getLastMessageId(){return this.messageIdProvider.getLastAllocated()}connect(){var C;let x=new l.Writable,_=a.default.parser(this.options),P=null,O=[];this.log("connect :: calling method to clear reconnect"),this._clearReconnect(),this.disconnected&&!this.reconnecting&&(this.incomingStore=this.options.incomingStore||new h.default,this.outgoingStore=this.options.outgoingStore||new h.default,this.disconnecting=!1,this.disconnected=!1),this.log("connect :: using streamBuilder provided to client to create stream"),this.stream=this.streamBuilder(this),_.on("packet",A=>{this.log("parser :: on packet push to packets array."),O.push(A)});let I=()=>{this.log("work :: getting next packet in queue");let A=O.shift();if(A)this.log("work :: packet pulled from queue"),(0,p.default)(this,A,M);else{this.log("work :: no packets in queue");let j=P;P=null,this.log("work :: done flag is %s",!!j),j&&j()}},M=()=>{if(O.length)(0,m.nextTick)(I);else{let A=P;P=null,A()}};x._write=(A,j,k)=>{P=k,this.log("writable stream :: parsing buffer"),_.parse(A),I()};let T=A=>{this.log("streamErrorHandler :: error",A.message),A.code?(this.log("streamErrorHandler :: emitting error"),this.emit("error",A)):this.noop(A)};this.log("connect :: pipe stream to writable stream"),this.stream.pipe(x),this.stream.on("error",T),this.stream.on("close",()=>{this.log("(%s)stream :: on close",this.options.clientId),this._flushVolatile(),this.log("stream: emit close to MqttClient"),this.emit("close")}),this.log("connect: sending packet `connect`");let D={cmd:"connect",protocolId:this.options.protocolId,protocolVersion:this.options.protocolVersion,clean:this.options.clean,clientId:this.options.clientId,keepalive:this.options.keepalive,username:this.options.username,password:this.options.password,properties:this.options.properties};if(this.options.will&&(D.will=Object.assign(Object.assign({},this.options.will),{payload:(C=this.options.will)===null||C===void 0?void 0:C.payload})),this.topicAliasRecv&&(D.properties||(D.properties={}),this.topicAliasRecv&&(D.properties.topicAliasMaximum=this.topicAliasRecv.max)),this._writePacket(D),_.on("error",this.emit.bind(this,"error")),this.options.properties){if(!this.options.properties.authenticationMethod&&this.options.properties.authenticationData)return this.end(()=>this.emit("error",new Error("Packet has no Authentication Method"))),this;if(this.options.properties.authenticationMethod&&this.options.authPacket&&typeof this.options.authPacket=="object"){let A=Object.assign({cmd:"auth",reasonCode:0},this.options.authPacket);this._writePacket(A)}}return this.stream.setMaxListeners(1e3),clearTimeout(this.connackTimer),this.connackTimer=setTimeout(()=>{this.log("!!connectTimeout hit!! Calling _cleanUp with force `true`"),this.emit("error",new Error("connack timeout")),this._cleanUp(!0)},this.options.connectTimeout),this}publish(C,x,_,P){this.log("publish :: message `%s` to topic `%s`",x,C);let{options:O}=this;typeof _=="function"&&(P=_,_=null),_=_||{},_=Object.assign(Object.assign({},{qos:0,retain:!1,dup:!1}),_);let{qos:I,retain:M,dup:T,properties:D,cbStorePut:A}=_;if(this._checkDisconnecting(P))return this;let j=()=>{let k=0;if((I===1||I===2)&&(k=this._nextId(),k===null))return this.log("No messageId left"),!1;let F={cmd:"publish",topic:C,payload:x,qos:I,retain:M,messageId:k,dup:T};switch(O.protocolVersion===5&&(F.properties=D),this.log("publish :: qos",I),I){case 1:case 2:this.outgoing[F.messageId]={volatile:!1,cb:P||this.noop},this.log("MqttClient:publish: packet cmd: %s",F.cmd),this._sendPacket(F,void 0,A);break;default:this.log("MqttClient:publish: packet cmd: %s",F.cmd),this._sendPacket(F,P,A);break}return!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!j())&&this._storeProcessingQueue.push({invoke:j,cbStorePut:_.cbStorePut,callback:P}),this}publishAsync(C,x,_){return new Promise((P,O)=>{this.publish(C,x,_,(I,M)=>{I?O(I):P(M)})})}subscribe(C,x,_){let P=this.options.protocolVersion;typeof x=="function"&&(_=x),_=_||this.noop;let O=!1,I=[];typeof C=="string"?(C=[C],I=C):Array.isArray(C)?I=C:typeof C=="object"&&(O=C.resubscribe,delete C.resubscribe,I=Object.keys(C));let M=u.validateTopics(I);if(M!==null)return y(_,new Error(`Invalid topic ${M}`)),this;if(this._checkDisconnecting(_))return this.log("subscribe: discconecting true"),this;let T={qos:0};P===5&&(T.nl=!1,T.rap=!1,T.rh=0),x=Object.assign(Object.assign({},T),x);let D=x.properties,A=[],j=(F,V)=>{if(V=V||x,!Object.prototype.hasOwnProperty.call(this._resubscribeTopics,F)||this._resubscribeTopics[F].qos{this.log("subscribe: array topic %s",F),j(F)}):Object.keys(C).forEach(F=>{this.log("subscribe: object topic %s, %o",F,C[F]),j(F,C[F])}),!A.length)return _(null,[]),this;let k=()=>{let F=this._nextId();if(F===null)return this.log("No messageId left"),!1;let V={cmd:"subscribe",subscriptions:A,messageId:F};if(D&&(V.properties=D),this.options.resubscribe){this.log("subscribe :: resubscribe true");let W=[];A.forEach(K=>{if(this.options.reconnectPeriod>0){let L={qos:K.qos};P===5&&(L.nl=K.nl||!1,L.rap=K.rap||!1,L.rh=K.rh||0,L.properties=K.properties),this._resubscribeTopics[K.topic]=L,W.push(K.topic)}}),this.messageIdToTopic[V.messageId]=W}return this.outgoing[V.messageId]={volatile:!0,cb(W,K){if(!W){let{granted:L}=K;for(let Q=0;Q0||!k())&&this._storeProcessingQueue.push({invoke:k,callback:_}),this}subscribeAsync(C,x){return new Promise((_,P)=>{this.subscribe(C,x,(O,I)=>{O?P(O):_(I)})})}unsubscribe(C,x,_){typeof C=="string"&&(C=[C]),typeof x=="function"&&(_=x),_=_||this.noop;let P=u.validateTopics(C);if(P!==null)return y(_,new Error(`Invalid topic ${P}`)),this;if(this._checkDisconnecting(_))return this;let O=()=>{let I=this._nextId();if(I===null)return this.log("No messageId left"),!1;let M={cmd:"unsubscribe",messageId:I,unsubscriptions:[]};return typeof C=="string"?M.unsubscriptions=[C]:Array.isArray(C)&&(M.unsubscriptions=C),this.options.resubscribe&&M.unsubscriptions.forEach(T=>{delete this._resubscribeTopics[T]}),typeof x=="object"&&x.properties&&(M.properties=x.properties),this.outgoing[M.messageId]={volatile:!0,cb:_},this.log("unsubscribe: call _sendPacket"),this._sendPacket(M),!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!O())&&this._storeProcessingQueue.push({invoke:O,callback:_}),this}unsubscribeAsync(C,x){return new Promise((_,P)=>{this.unsubscribe(C,x,(O,I)=>{O?P(O):_(I)})})}end(C,x,_){this.log("end :: (%s)",this.options.clientId),(C==null||typeof C!="boolean")&&(_=_||x,x=C,C=!1),typeof x!="object"&&(_=_||x,x=null),this.log("end :: cb? %s",!!_),(!_||typeof _!="function")&&(_=this.noop);let P=()=>{this.log("end :: closeStores: closing incoming and outgoing stores"),this.disconnected=!0,this.incomingStore.close(I=>{this.outgoingStore.close(M=>{if(this.log("end :: closeStores: emitting end"),this.emit("end"),_){let T=I||M;this.log("end :: closeStores: invoking callback with args"),_(T)}})}),this._deferredReconnect?this._deferredReconnect():(this.options.reconnectPeriod===0||this.options.manualConnect)&&(this.disconnecting=!1)},O=()=>{this.log("end :: (%s) :: finish :: calling _cleanUp with force %s",this.options.clientId,C),this._cleanUp(C,()=>{this.log("end :: finish :: calling process.nextTick on closeStores"),(0,m.nextTick)(P)},x)};return this.disconnecting?(_(),this):(this._clearReconnect(),this.disconnecting=!0,!C&&Object.keys(this.outgoing).length>0?(this.log("end :: (%s) :: calling finish in 10ms once outgoing is empty",this.options.clientId),this.once("outgoingEmpty",setTimeout.bind(null,O,10))):(this.log("end :: (%s) :: immediately calling finish",this.options.clientId),O()),this)}endAsync(C,x){return new Promise((_,P)=>{this.end(C,x,O=>{O?P(O):_()})})}removeOutgoingMessage(C){if(this.outgoing[C]){let{cb:x}=this.outgoing[C];this._removeOutgoingAndStoreMessage(C,()=>{x(new Error("Message removed"))})}return this}reconnect(C){this.log("client reconnect");let x=()=>{C?(this.options.incomingStore=C.incomingStore,this.options.outgoingStore=C.outgoingStore):(this.options.incomingStore=null,this.options.outgoingStore=null),this.incomingStore=this.options.incomingStore||new h.default,this.outgoingStore=this.options.outgoingStore||new h.default,this.disconnecting=!1,this.disconnected=!1,this._deferredReconnect=null,this._reconnect()};return this.disconnecting&&!this.disconnected?this._deferredReconnect=x:x(),this}_flushVolatile(){this.outgoing&&(this.log("_flushVolatile :: deleting volatile messages from the queue and setting their callbacks as error function"),Object.keys(this.outgoing).forEach(C=>{this.outgoing[C].volatile&&typeof this.outgoing[C].cb=="function"&&(this.outgoing[C].cb(new Error("Connection closed")),delete this.outgoing[C])}))}_flush(){this.outgoing&&(this.log("_flush: queue exists? %b",!!this.outgoing),Object.keys(this.outgoing).forEach(C=>{typeof this.outgoing[C].cb=="function"&&(this.outgoing[C].cb(new Error("Connection closed")),delete this.outgoing[C])}))}_removeTopicAliasAndRecoverTopicName(C){let x;C.properties&&(x=C.properties.topicAlias);let _=C.topic.toString();if(this.log("_removeTopicAliasAndRecoverTopicName :: alias %d, topic %o",x,_),_.length===0){if(typeof x>"u")return new Error("Unregistered Topic Alias");if(_=this.topicAliasSend.getTopicByAlias(x),typeof _>"u")return new Error("Unregistered Topic Alias");C.topic=_}x&&delete C.properties.topicAlias}_checkDisconnecting(C){return this.disconnecting&&(C&&C!==this.noop?C(new Error("client disconnecting")):this.emit("error",new Error("client disconnecting"))),this.disconnecting}_reconnect(){this.log("_reconnect: emitting reconnect to client"),this.emit("reconnect"),this.connected?(this.end(()=>{this.connect()}),this.log("client already connected. disconnecting first.")):(this.log("_reconnect: calling connect"),this.connect())}_setupReconnect(){!this.disconnecting&&!this.reconnectTimer&&this.options.reconnectPeriod>0?(this.reconnecting||(this.log("_setupReconnect :: emit `offline` state"),this.emit("offline"),this.log("_setupReconnect :: set `reconnecting` to `true`"),this.reconnecting=!0),this.log("_setupReconnect :: setting reconnectTimer for %d ms",this.options.reconnectPeriod),this.reconnectTimer=setInterval(()=>{this.log("reconnectTimer :: reconnect triggered!"),this._reconnect()},this.options.reconnectPeriod)):this.log("_setupReconnect :: doing nothing...")}_clearReconnect(){this.log("_clearReconnect : clearing reconnect timer"),this.reconnectTimer&&(clearInterval(this.reconnectTimer),this.reconnectTimer=null)}_cleanUp(C,x,_={}){if(x&&(this.log("_cleanUp :: done callback provided for on stream close"),this.stream.on("close",x)),this.log("_cleanUp :: forced? %s",C),C)this.options.reconnectPeriod===0&&this.options.clean&&this._flush(),this.log("_cleanUp :: (%s) :: destroying stream",this.options.clientId),this.stream.destroy();else{let P=Object.assign({cmd:"disconnect"},_);this.log("_cleanUp :: (%s) :: call _sendPacket with disconnect packet",this.options.clientId),this._sendPacket(P,()=>{this.log("_cleanUp :: (%s) :: destroying stream",this.options.clientId),y(()=>{this.stream.end(()=>{this.log("_cleanUp :: (%s) :: stream destroyed",this.options.clientId)})})})}!this.disconnecting&&!this.reconnecting&&(this.log("_cleanUp :: client not disconnecting/reconnecting. Clearing and resetting reconnect."),this._clearReconnect(),this._setupReconnect()),this._destroyKeepaliveManager(),x&&!this.connected&&(this.log("_cleanUp :: (%s) :: removing stream `done` callback `close` listener",this.options.clientId),this.stream.removeListener("close",x),x())}_storeAndSend(C,x,_){this.log("storeAndSend :: store packet with cmd %s to outgoingStore",C.cmd);let P=C,O;if(P.cmd==="publish"&&(P=(0,c.default)(C),O=this._removeTopicAliasAndRecoverTopicName(P),O))return x&&x(O);this.outgoingStore.put(P,I=>{if(I)return x&&x(I);_(),this._writePacket(C,x)})}_applyTopicAlias(C){if(this.options.protocolVersion===5&&C.cmd==="publish"){let x;C.properties&&(x=C.properties.topicAlias);let _=C.topic.toString();if(this.topicAliasSend)if(x){if(_.length!==0&&(this.log("applyTopicAlias :: register topic: %s - alias: %d",_,x),!this.topicAliasSend.put(_,x)))return this.log("applyTopicAlias :: error out of range. topic: %s - alias: %d",_,x),new Error("Sending Topic Alias out of range")}else _.length!==0&&(this.options.autoAssignTopicAlias?(x=this.topicAliasSend.getAliasByTopic(_),x?(C.topic="",C.properties=Object.assign(Object.assign({},C.properties),{topicAlias:x}),this.log("applyTopicAlias :: auto assign(use) topic: %s - alias: %d",_,x)):(x=this.topicAliasSend.getLruAlias(),this.topicAliasSend.put(_,x),C.properties=Object.assign(Object.assign({},C.properties),{topicAlias:x}),this.log("applyTopicAlias :: auto assign topic: %s - alias: %d",_,x))):this.options.autoUseTopicAlias&&(x=this.topicAliasSend.getAliasByTopic(_),x&&(C.topic="",C.properties=Object.assign(Object.assign({},C.properties),{topicAlias:x}),this.log("applyTopicAlias :: auto use topic: %s - alias: %d",_,x))));else if(x)return this.log("applyTopicAlias :: error out of range. topic: %s - alias: %d",_,x),new Error("Sending Topic Alias out of range")}}_noop(C){this.log("noop ::",C)}_writePacket(C,x){this.log("_writePacket :: packet: %O",C),this.log("_writePacket :: emitting `packetsend`"),this.emit("packetsend",C),this.log("_writePacket :: writing to stream");let _=a.default.writeToStream(C,this.stream,this.options);this.log("_writePacket :: writeToStream result %s",_),!_&&x&&x!==this.noop?(this.log("_writePacket :: handle events on `drain` once through callback."),this.stream.once("drain",x)):x&&(this.log("_writePacket :: invoking cb"),x())}_sendPacket(C,x,_,P){this.log("_sendPacket :: (%s) :: start",this.options.clientId),_=_||this.noop,x=x||this.noop;let O=this._applyTopicAlias(C);if(O){x(O);return}if(!this.connected){if(C.cmd==="auth"){this._writePacket(C,x);return}this.log("_sendPacket :: client not connected. Storing packet offline."),this._storePacket(C,x,_);return}if(P){this._writePacket(C,x);return}switch(C.cmd){case"publish":break;case"pubrel":this._storeAndSend(C,x,_);return;default:this._writePacket(C,x);return}switch(C.qos){case 2:case 1:this._storeAndSend(C,x,_);break;case 0:default:this._writePacket(C,x);break}this.log("_sendPacket :: (%s) :: end",this.options.clientId)}_storePacket(C,x,_){this.log("_storePacket :: packet: %o",C),this.log("_storePacket :: cb? %s",!!x),_=_||this.noop;let P=C;if(P.cmd==="publish"){P=(0,c.default)(C);let I=this._removeTopicAliasAndRecoverTopicName(P);if(I)return x&&x(I)}let O=P.qos||0;O===0&&this.queueQoSZero||P.cmd!=="publish"?this.queue.push({packet:P,cb:x}):O>0?(x=this.outgoing[P.messageId]?this.outgoing[P.messageId].cb:null,this.outgoingStore.put(P,I=>{if(I)return x&&x(I);_()})):x&&x(new Error("No connection to broker"))}_setupKeepaliveManager(){this.log("_setupKeepaliveManager :: keepalive %d (seconds)",this.options.keepalive),!this.keepaliveManager&&this.options.keepalive&&(this.keepaliveManager=new v.default(this,this.options.timerVariant))}_destroyKeepaliveManager(){this.keepaliveManager&&(this.log("_destroyKeepaliveManager :: destroying keepalive manager"),this.keepaliveManager.destroy(),this.keepaliveManager=null)}reschedulePing(C=!1){this.keepaliveManager&&this.options.keepalive&&(C||this.options.reschedulePings)&&this._reschedulePing()}_reschedulePing(){this.log("_reschedulePing :: rescheduling ping"),this.keepaliveManager.reschedule()}sendPing(){this.log("_sendPing :: sending pingreq"),this._sendPacket({cmd:"pingreq"})}onKeepaliveTimeout(){this.emit("error",new Error("Keepalive timeout")),this.log("onKeepaliveTimeout :: calling _cleanUp with force true"),this._cleanUp(!0)}_resubscribe(){this.log("_resubscribe");let C=Object.keys(this._resubscribeTopics);if(!this._firstConnection&&(this.options.clean||this.options.protocolVersion>=4&&!this.connackPacket.sessionPresent)&&C.length>0)if(this.options.resubscribe)if(this.options.protocolVersion===5){this.log("_resubscribe: protocolVersion 5");for(let x=0;x{let _=this.outgoingStore.createStream(),P=()=>{_.destroy(),_=null,this._flushStoreProcessingQueue(),O()},O=()=>{this._storeProcessing=!1,this._packetIdsDuringStoreProcessing={}};this.once("close",P),_.on("error",M=>{O(),this._flushStoreProcessingQueue(),this.removeListener("close",P),this.emit("error",M)});let I=()=>{if(!_)return;let M=_.read(1),T;if(!M){_.once("readable",I);return}if(this._storeProcessing=!0,this._packetIdsDuringStoreProcessing[M.messageId]){I();return}!this.disconnecting&&!this.reconnectTimer?(T=this.outgoing[M.messageId]?this.outgoing[M.messageId].cb:null,this.outgoing[M.messageId]={volatile:!1,cb(D,A){T&&T(D,A),I()}},this._packetIdsDuringStoreProcessing[M.messageId]=!0,this.messageIdProvider.register(M.messageId)?this._sendPacket(M,void 0,void 0,!0):this.log("messageId: %d has already used.",M.messageId)):_.destroy&&_.destroy()};_.on("end",()=>{let M=!0;for(let T in this._packetIdsDuringStoreProcessing)if(!this._packetIdsDuringStoreProcessing[T]){M=!1;break}this.removeListener("close",P),M?(O(),this._invokeAllStoreProcessingQueue(),this.emit("connect",C)):x()}),I()};x()}_invokeStoreProcessingQueue(){if(!this._storeProcessing&&this._storeProcessingQueue.length>0){let C=this._storeProcessingQueue[0];if(C&&C.invoke())return this._storeProcessingQueue.shift(),!0}return!1}_invokeAllStoreProcessingQueue(){for(;this._invokeStoreProcessingQueue(););}_flushStoreProcessingQueue(){for(let C of this._storeProcessingQueue)C.cbStorePut&&C.cbStorePut(new Error("Connection closed")),C.callback&&C.callback(new Error("Connection closed"));this._storeProcessingQueue.splice(0)}_removeOutgoingAndStoreMessage(C,x){delete this.outgoing[C],this.outgoingStore.del({messageId:C},(_,P)=>{x(_,P),this.messageIdProvider.deallocate(C),this._invokeStoreProcessingQueue()})}};w.VERSION=m.MQTTJS_VERSION,e.default=w}),_Ce=Zt(e=>{Vt(),qt(),Kt(),Object.defineProperty(e,"__esModule",{value:!0});var t=mZ(),n=class{constructor(){this.numberAllocator=new t.NumberAllocator(1,65535)}allocate(){return this.lastId=this.numberAllocator.alloc(),this.lastId}getLastAllocated(){return this.lastId}register(r){return this.numberAllocator.use(r)}deallocate(r){this.numberAllocator.free(r)}clear(){this.numberAllocator.clear()}};e.default=n});function eh(e){throw new RangeError(yZ[e])}function jB(e,t){let n=e.split("@"),r="";n.length>1&&(r=n[0]+"@",e=n[1]);let o=function(i,a){let s=[],l=i.length;for(;l--;)s[l]=a(i[l]);return s}((e=e.replace(vZ,".")).split("."),t).join(".");return r+o}function FB(e){let t=[],n=0,r=e.length;for(;n=55296&&o<=56319&&n{Vt(),qt(),Kt(),LB=/^xn--/,BB=/[^\0-\x7E]/,vZ=/[\x2E\u3002\uFF0E\uFF61]/g,yZ={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},wl=Math.floor,wC=String.fromCharCode,rT=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},oT=function(e,t,n){let r=0;for(e=n?wl(e/700):e>>1,e+=wl(e/t);e>455;r+=36)e=wl(e/35);return wl(r+36*e/(e+38))},iT=function(e){let t=[],n=e.length,r=0,o=128,i=72,a=e.lastIndexOf("-");a<0&&(a=0);for(let l=0;l=128&&eh("not-basic"),t.push(e.charCodeAt(l));for(let l=a>0?a+1:0;l=n&&eh("invalid-input");let p=(s=e.charCodeAt(l++))-48<10?s-22:s-65<26?s-65:s-97<26?s-97:36;(p>=36||p>wl((2147483647-r)/f))&&eh("overflow"),r+=p*f;let m=h<=i?1:h>=i+26?26:h-i;if(pwl(2147483647/g)&&eh("overflow"),f*=g}let u=t.length+1;i=oT(r-c,u,c==0),wl(r/u)>2147483647-o&&eh("overflow"),o+=wl(r/u),r%=u,t.splice(r++,0,o)}var s;return String.fromCodePoint(...t)},aT=function(e){let t=[],n=(e=FB(e)).length,r=128,o=0,i=72;for(let l of e)l<128&&t.push(wC(l));let a=t.length,s=a;for(a&&t.push("-");s=r&&uwl((2147483647-o)/c)&&eh("overflow"),o+=(l-r)*c,r=l;for(let u of e)if(u2147483647&&eh("overflow"),u==r){let f=o;for(let h=36;;h+=36){let p=h<=i?1:h>=i+26?26:h-i;if(fString.fromCodePoint(...e)},decode:iT,encode:aT,toASCII:function(e){return jB(e,function(t){return BB.test(t)?"xn--"+aT(t):t})},toUnicode:function(e){return jB(e,function(t){return LB.test(t)?iT(t.slice(4).toLowerCase()):t})}},Rd.decode,Rd.encode,Rd.toASCII,Rd.toUnicode,Rd.ucs2,Rd.version});function PCe(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var zB,om,HB,Ec,OCe=Fi(()=>{Vt(),qt(),Kt(),zB=function(e,t,n,r){t=t||"&",n=n||"=";var o={};if(typeof e!="string"||e.length===0)return o;var i=/\+/g;e=e.split(t);var a=1e3;r&&typeof r.maxKeys=="number"&&(a=r.maxKeys);var s=e.length;a>0&&s>a&&(s=a);for(var l=0;l=0?(c=p.substr(0,m),u=p.substr(m+1)):(c=p,u=""),f=decodeURIComponent(c),h=decodeURIComponent(u),PCe(o,f)?Array.isArray(o[f])?o[f].push(h):o[f]=[o[f],h]:o[f]=h}return o},om=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}},HB=function(e,t,n,r){return t=t||"&",n=n||"=",e===null&&(e=void 0),typeof e=="object"?Object.keys(e).map(function(o){var i=encodeURIComponent(om(o))+n;return Array.isArray(e[o])?e[o].map(function(a){return i+encodeURIComponent(om(a))}).join(t):i+encodeURIComponent(om(e[o]))}).join(t):r?encodeURIComponent(om(r))+n+encodeURIComponent(om(e)):""},Ec={},Ec.decode=Ec.parse=zB,Ec.encode=Ec.stringify=HB,Ec.decode,Ec.encode,Ec.parse,Ec.stringify});function Q4(){throw new Error("setTimeout has not been defined")}function J4(){throw new Error("clearTimeout has not been defined")}function bZ(e){if(_u===setTimeout)return setTimeout(e,0);if((_u===Q4||!_u)&&setTimeout)return _u=setTimeout,setTimeout(e,0);try{return _u(e,0)}catch{try{return _u.call(null,e,0)}catch{return _u.call(this||Uh,e,0)}}}function MCe(){Wh&&_h&&(Wh=!1,_h.length?Dc=_h.concat(Dc):Ny=-1,Dc.length&&SZ())}function SZ(){if(!Wh){var e=bZ(MCe);Wh=!0;for(var t=Dc.length;t;){for(_h=Dc,Dc=[];++Ny{Vt(),qt(),Kt(),Uh=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,Ao=WB={},function(){try{_u=typeof setTimeout=="function"?setTimeout:Q4}catch{_u=Q4}try{$u=typeof clearTimeout=="function"?clearTimeout:J4}catch{$u=J4}}(),Dc=[],Wh=!1,Ny=-1,Ao.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n1)for(var b=1;b{Vt(),qt(),Kt(),zw={},Z4=!1,dh=typeof globalThis<"u"?globalThis:typeof self<"u"?self:global,yo=RCe(),yo.platform="browser",yo.addListener,yo.argv,yo.binding,yo.browser,yo.chdir,yo.cwd,yo.emit,yo.env,yo.listeners,yo.nextTick,yo.off,yo.on,yo.once,yo.prependListener,yo.prependOnceListener,yo.removeAllListeners,yo.removeListener,yo.title,yo.umask,yo.version,yo.versions});function ICe(){if(e3)return Hw;e3=!0;var e=yo;function t(i){if(typeof i!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(i))}function n(i,a){for(var s="",l=0,c=-1,u=0,f,h=0;h<=i.length;++h){if(h2){var p=s.lastIndexOf("/");if(p!==s.length-1){p===-1?(s="",l=0):(s=s.slice(0,p),l=s.length-1-s.lastIndexOf("/")),c=h,u=0;continue}}else if(s.length===2||s.length===1){s="",l=0,c=h,u=0;continue}}a&&(s.length>0?s+="/..":s="..",l=2)}else s.length>0?s+="/"+i.slice(c+1,h):s=i.slice(c+1,h),l=h-c-1;c=h,u=0}else f===46&&u!==-1?++u:u=-1}return s}function r(i,a){var s=a.dir||a.root,l=a.base||(a.name||"")+(a.ext||"");return s?s===a.root?s+l:s+i+l:l}var o={resolve:function(){for(var i="",a=!1,s,l=arguments.length-1;l>=-1&&!a;l--){var c;l>=0?c=arguments[l]:(s===void 0&&(s=e.cwd()),c=s),t(c),c.length!==0&&(i=c+"/"+i,a=c.charCodeAt(0)===47)}return i=n(i,!a),a?i.length>0?"/"+i:"/":i.length>0?i:"."},normalize:function(i){if(t(i),i.length===0)return".";var a=i.charCodeAt(0)===47,s=i.charCodeAt(i.length-1)===47;return i=n(i,!a),i.length===0&&!a&&(i="."),i.length>0&&s&&(i+="/"),a?"/"+i:i},isAbsolute:function(i){return t(i),i.length>0&&i.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var i,a=0;a0&&(i===void 0?i=s:i+="/"+s)}return i===void 0?".":o.normalize(i)},relative:function(i,a){if(t(i),t(a),i===a||(i=o.resolve(i),a=o.resolve(a),i===a))return"";for(var s=1;sp){if(a.charCodeAt(u+g)===47)return a.slice(u+g+1);if(g===0)return a.slice(u+g)}else c>p&&(i.charCodeAt(s+g)===47?m=g:g===0&&(m=0));break}var v=i.charCodeAt(s+g),b=a.charCodeAt(u+g);if(v!==b)break;v===47&&(m=g)}var y="";for(g=s+m+1;g<=l;++g)(g===l||i.charCodeAt(g)===47)&&(y.length===0?y+="..":y+="/..");return y.length>0?y+a.slice(u+m):(u+=m,a.charCodeAt(u)===47&&++u,a.slice(u))},_makeLong:function(i){return i},dirname:function(i){if(t(i),i.length===0)return".";for(var a=i.charCodeAt(0),s=a===47,l=-1,c=!0,u=i.length-1;u>=1;--u)if(a=i.charCodeAt(u),a===47){if(!c){l=u;break}}else c=!1;return l===-1?s?"/":".":s&&l===1?"//":i.slice(0,l)},basename:function(i,a){if(a!==void 0&&typeof a!="string")throw new TypeError('"ext" argument must be a string');t(i);var s=0,l=-1,c=!0,u;if(a!==void 0&&a.length>0&&a.length<=i.length){if(a.length===i.length&&a===i)return"";var f=a.length-1,h=-1;for(u=i.length-1;u>=0;--u){var p=i.charCodeAt(u);if(p===47){if(!c){s=u+1;break}}else h===-1&&(c=!1,h=u+1),f>=0&&(p===a.charCodeAt(f)?--f===-1&&(l=u):(f=-1,l=h))}return s===l?l=h:l===-1&&(l=i.length),i.slice(s,l)}else{for(u=i.length-1;u>=0;--u)if(i.charCodeAt(u)===47){if(!c){s=u+1;break}}else l===-1&&(c=!1,l=u+1);return l===-1?"":i.slice(s,l)}},extname:function(i){t(i);for(var a=-1,s=0,l=-1,c=!0,u=0,f=i.length-1;f>=0;--f){var h=i.charCodeAt(f);if(h===47){if(!c){s=f+1;break}continue}l===-1&&(c=!1,l=f+1),h===46?a===-1?a=f:u!==1&&(u=1):a!==-1&&(u=-1)}return a===-1||l===-1||u===0||u===1&&a===l-1&&a===s+1?"":i.slice(a,l)},format:function(i){if(i===null||typeof i!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof i);return r("/",i)},parse:function(i){t(i);var a={root:"",dir:"",base:"",ext:"",name:""};if(i.length===0)return a;var s=i.charCodeAt(0),l=s===47,c;l?(a.root="/",c=1):c=0;for(var u=-1,f=0,h=-1,p=!0,m=i.length-1,g=0;m>=c;--m){if(s=i.charCodeAt(m),s===47){if(!p){f=m+1;break}continue}h===-1&&(p=!1,h=m+1),s===46?u===-1?u=m:g!==1&&(g=1):u!==-1&&(g=-1)}return u===-1||h===-1||g===0||g===1&&u===h-1&&u===f+1?h!==-1&&(f===0&&l?a.base=a.name=i.slice(1,h):a.base=a.name=i.slice(f,h)):(f===0&&l?(a.name=i.slice(1,u),a.base=i.slice(1,h)):(a.name=i.slice(f,u),a.base=i.slice(f,h)),a.ext=i.slice(u,h)),f>0?a.dir=i.slice(0,f-1):l&&(a.dir="/"),a},sep:"/",delimiter:":",win32:null,posix:null};return o.posix=o,Hw=o,Hw}var Hw,e3,t3,kCe=Fi(()=>{Vt(),qt(),Kt(),CZ(),Hw={},e3=!1,t3=ICe()}),wZ={};Rp(wZ,{URL:()=>BZ,Url:()=>AZ,default:()=>Wr,fileURLToPath:()=>xZ,format:()=>DZ,parse:()=>LZ,pathToFileURL:()=>EZ,resolve:()=>jZ,resolveObject:()=>FZ});function zs(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function M0(e,t,n){if(e&&El.isObject(e)&&e instanceof zs)return e;var r=new zs;return r.parse(e,t,n),r}function NCe(){if(n3)return Uw;n3=!0;var e=$o;function t(i){if(typeof i!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(i))}function n(i,a){for(var s="",l=0,c=-1,u=0,f,h=0;h<=i.length;++h){if(h2){var p=s.lastIndexOf("/");if(p!==s.length-1){p===-1?(s="",l=0):(s=s.slice(0,p),l=s.length-1-s.lastIndexOf("/")),c=h,u=0;continue}}else if(s.length===2||s.length===1){s="",l=0,c=h,u=0;continue}}a&&(s.length>0?s+="/..":s="..",l=2)}else s.length>0?s+="/"+i.slice(c+1,h):s=i.slice(c+1,h),l=h-c-1;c=h,u=0}else f===46&&u!==-1?++u:u=-1}return s}function r(i,a){var s=a.dir||a.root,l=a.base||(a.name||"")+(a.ext||"");return s?s===a.root?s+l:s+i+l:l}var o={resolve:function(){for(var i="",a=!1,s,l=arguments.length-1;l>=-1&&!a;l--){var c;l>=0?c=arguments[l]:(s===void 0&&(s=e.cwd()),c=s),t(c),c.length!==0&&(i=c+"/"+i,a=c.charCodeAt(0)===47)}return i=n(i,!a),a?i.length>0?"/"+i:"/":i.length>0?i:"."},normalize:function(i){if(t(i),i.length===0)return".";var a=i.charCodeAt(0)===47,s=i.charCodeAt(i.length-1)===47;return i=n(i,!a),i.length===0&&!a&&(i="."),i.length>0&&s&&(i+="/"),a?"/"+i:i},isAbsolute:function(i){return t(i),i.length>0&&i.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var i,a=0;a0&&(i===void 0?i=s:i+="/"+s)}return i===void 0?".":o.normalize(i)},relative:function(i,a){if(t(i),t(a),i===a||(i=o.resolve(i),a=o.resolve(a),i===a))return"";for(var s=1;sp){if(a.charCodeAt(u+g)===47)return a.slice(u+g+1);if(g===0)return a.slice(u+g)}else c>p&&(i.charCodeAt(s+g)===47?m=g:g===0&&(m=0));break}var v=i.charCodeAt(s+g),b=a.charCodeAt(u+g);if(v!==b)break;v===47&&(m=g)}var y="";for(g=s+m+1;g<=l;++g)(g===l||i.charCodeAt(g)===47)&&(y.length===0?y+="..":y+="/..");return y.length>0?y+a.slice(u+m):(u+=m,a.charCodeAt(u)===47&&++u,a.slice(u))},_makeLong:function(i){return i},dirname:function(i){if(t(i),i.length===0)return".";for(var a=i.charCodeAt(0),s=a===47,l=-1,c=!0,u=i.length-1;u>=1;--u)if(a=i.charCodeAt(u),a===47){if(!c){l=u;break}}else c=!1;return l===-1?s?"/":".":s&&l===1?"//":i.slice(0,l)},basename:function(i,a){if(a!==void 0&&typeof a!="string")throw new TypeError('"ext" argument must be a string');t(i);var s=0,l=-1,c=!0,u;if(a!==void 0&&a.length>0&&a.length<=i.length){if(a.length===i.length&&a===i)return"";var f=a.length-1,h=-1;for(u=i.length-1;u>=0;--u){var p=i.charCodeAt(u);if(p===47){if(!c){s=u+1;break}}else h===-1&&(c=!1,h=u+1),f>=0&&(p===a.charCodeAt(f)?--f===-1&&(l=u):(f=-1,l=h))}return s===l?l=h:l===-1&&(l=i.length),i.slice(s,l)}else{for(u=i.length-1;u>=0;--u)if(i.charCodeAt(u)===47){if(!c){s=u+1;break}}else l===-1&&(c=!1,l=u+1);return l===-1?"":i.slice(s,l)}},extname:function(i){t(i);for(var a=-1,s=0,l=-1,c=!0,u=0,f=i.length-1;f>=0;--f){var h=i.charCodeAt(f);if(h===47){if(!c){s=f+1;break}continue}l===-1&&(c=!1,l=f+1),h===46?a===-1?a=f:u!==1&&(u=1):a!==-1&&(u=-1)}return a===-1||l===-1||u===0||u===1&&a===l-1&&a===s+1?"":i.slice(a,l)},format:function(i){if(i===null||typeof i!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof i);return r("/",i)},parse:function(i){t(i);var a={root:"",dir:"",base:"",ext:"",name:""};if(i.length===0)return a;var s=i.charCodeAt(0),l=s===47,c;l?(a.root="/",c=1):c=0;for(var u=-1,f=0,h=-1,p=!0,m=i.length-1,g=0;m>=c;--m){if(s=i.charCodeAt(m),s===47){if(!p){f=m+1;break}continue}h===-1&&(p=!1,h=m+1),s===46?u===-1?u=m:g!==1&&(g=1):u!==-1&&(g=-1)}return u===-1||h===-1||g===0||g===1&&u===h-1&&u===f+1?h!==-1&&(f===0&&l?a.base=a.name=i.slice(1,h):a.base=a.name=i.slice(f,h)):(f===0&&l?(a.name=i.slice(1,u),a.base=i.slice(1,h)):(a.name=i.slice(f,u),a.base=i.slice(f,h)),a.ext=i.slice(u,h)),f>0?a.dir=i.slice(0,f-1):l&&(a.dir="/"),a},sep:"/",delimiter:":",win32:null,posix:null};return o.posix=o,Uw=o,Uw}function ACe(e){if(typeof e=="string")e=new URL(e);else if(!(e instanceof URL))throw new Deno.errors.InvalidData("invalid argument path , must be a string or URL");if(e.protocol!=="file:")throw new Deno.errors.InvalidData("invalid url scheme");return f2?DCe(e):jCe(e)}function DCe(e){let t=e.hostname,n=e.pathname;for(let r=0;rOZ||o!==":")throw new Deno.errors.InvalidData("file url path must be absolute");return n.slice(1)}}function jCe(e){if(e.hostname!=="")throw new Deno.errors.InvalidData("invalid file url hostname");let t=e.pathname;for(let n=0;nWZ||o!==":")throw new Deno.errors.InvalidData("file url path must be absolute");return n.slice(1)}}function BCe(e){if(e.hostname!=="")throw new Deno.errors.InvalidData("invalid file url hostname");let t=e.pathname;for(let n=0;n{Vt(),qt(),Kt(),$Ce(),OCe(),TCe(),kCe(),CZ(),Wr={},VB=Rd,El={isString:function(e){return typeof e=="string"},isObject:function(e){return typeof e=="object"&&e!==null},isNull:function(e){return e===null},isNullOrUndefined:function(e){return e==null}},Wr.parse=M0,Wr.resolve=function(e,t){return M0(e,!1,!0).resolve(t)},Wr.resolveObject=function(e,t){return e?M0(e,!1,!0).resolveObject(t):t},Wr.format=function(e){return El.isString(e)&&(e=M0(e)),e instanceof zs?e.format():zs.prototype.format.call(e)},Wr.Url=zs,KB=/^([a-z0-9.+-]+:)/i,qB=/:[0-9]*$/,GB=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,YB=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r",` `," "]),xC=["'"].concat(YB),sT=["%","/","?",";","#"].concat(xC),lT=["/","?","#"],cT=/^[+a-z0-9A-Z_-]{0,63}$/,XB=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,QB={javascript:!0,"javascript:":!0},EC={javascript:!0,"javascript:":!0},th={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},_C=Ec,zs.prototype.parse=function(e,t,n){if(!El.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var r=e.indexOf("?"),o=r!==-1&&r127?w+="x":w+=S[E];if(!w.match(cT)){var x=b.slice(0,m),_=b.slice(m+1),P=S.match(XB);P&&(x.push(P[1]),_.unshift(P[2])),_.length&&(a="/"+_.join(".")+a),this.hostname=x.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),v||(this.hostname=VB.toASCII(this.hostname));var O=this.port?":"+this.port:"",I=this.hostname||"";this.host=I+O,this.href+=this.host,v&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),a[0]!=="/"&&(a="/"+a))}if(!QB[c])for(m=0,y=xC.length;m0)&&n.host.split("@"))&&(n.auth=P.shift(),n.host=n.hostname=P.shift())),n.search=e.search,n.query=e.query,El.isNull(n.pathname)&&El.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n;if(!S.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var E=S.slice(-1)[0],C=(n.host||e.host||S.length>1)&&(E==="."||E==="..")||E==="",x=0,_=S.length;_>=0;_--)(E=S[_])==="."?S.splice(_,1):E===".."?(S.splice(_,1),x++):x&&(S.splice(_,1),x--);if(!b&&!y)for(;x--;x)S.unshift("..");!b||S[0]===""||S[0]&&S[0].charAt(0)==="/"||S.unshift(""),C&&S.join("/").substr(-1)!=="/"&&S.push("");var P,O=S[0]===""||S[0]&&S[0].charAt(0)==="/";return w&&(n.hostname=n.host=O?"":S.length?S.shift():"",(P=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=P.shift(),n.host=n.hostname=P.shift())),(b=b||n.host&&S.length)&&!O&&S.unshift(""),S.length?n.pathname=S.join("/"):(n.pathname=null,n.path=null),El.isNull(n.pathname)&&El.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},zs.prototype.parseHost=function(){var e=this.host,t=qB.exec(e);t&&((t=t[0])!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},Wr.Url,Wr.format,Wr.resolve,Wr.resolveObject,Uw={},n3=!1,r3=NCe(),JB=typeof Deno<"u"?Deno.build.os==="windows"?"win32":Deno.build.os:void 0,Wr.URL=typeof URL<"u"?URL:null,Wr.pathToFileURL=FCe,Wr.fileURLToPath=ACe,Wr.Url,Wr.format,Wr.resolve,Wr.resolveObject,Wr.URL,_Z=92,$Z=47,PZ=97,OZ=122,f2=JB==="win32",MZ=/\//g,TZ=/%/g,RZ=/\\/g,IZ=/\n/g,kZ=/\r/g,NZ=/\t/g,ZB=typeof Deno<"u"?Deno.build.os==="windows"?"win32":Deno.build.os:void 0,Wr.URL=typeof URL<"u"?URL:null,Wr.pathToFileURL=EZ,Wr.fileURLToPath=xZ,AZ=Wr.Url,DZ=Wr.format,jZ=Wr.resolve,FZ=Wr.resolveObject,LZ=Wr.parse,BZ=Wr.URL,zZ=92,HZ=47,UZ=97,WZ=122,h2=ZB==="win32",VZ=/\//g,KZ=/%/g,qZ=/\\/g,GZ=/\n/g,YZ=/\r/g,XZ=/\t/g}),HCe=Zt((e,t)=>{Vt(),qt(),Kt(),t.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}}),$5=Zt(e=>{Vt(),qt(),Kt(),Object.defineProperty(e,"__esModule",{value:!0}),e.BufferedDuplex=e.writev=void 0;var t=Np(),n=(Bi(),Qr(Li));function r(i,a){let s=new Array(i.length);for(let l=0;l{this.destroyed||this.push(l)})}_read(i){this.proxy.read(i)}_write(i,a,s){this.isSocketOpen?this.writeToProxy(i,a,s):this.writeQueue.push({chunk:i,encoding:a,cb:s})}_final(i){this.writeQueue=[],this.proxy.end(i)}_destroy(i,a){this.writeQueue=[],this.proxy.destroy(),a(i)}socketReady(){this.emit("connect"),this.isSocketOpen=!0,this.processWriteQueue()}writeToProxy(i,a,s){this.proxy.write(i,a)===!1?this.proxy.once("drain",s):s()}processWriteQueue(){for(;this.writeQueue.length>0;){let{chunk:i,encoding:a,cb:s}=this.writeQueue.shift();this.writeToProxy(i,a,s)}}};e.BufferedDuplex=o}),$C=Zt(e=>{Vt(),qt(),Kt();var t=e&&e.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(e,"__esModule",{value:!0}),e.streamBuilder=e.browserStreamBuilder=void 0;var n=(Bi(),Qr(Li)),r=t(HCe()),o=t(Ju()),i=Np(),a=t(j_()),s=$5(),l=(0,o.default)("mqttjs:ws"),c=["rejectUnauthorized","ca","cert","key","pfx","passphrase"];function u(b,y){let S=`${b.protocol}://${b.hostname}:${b.port}${b.path}`;return typeof b.transformWsUrl=="function"&&(S=b.transformWsUrl(S,b,y)),S}function f(b){let y=b;return b.port||(b.protocol==="wss"?y.port=443:y.port=80),b.path||(y.path="/"),b.wsOptions||(y.wsOptions={}),!a.default&&!b.forceNativeWebSocket&&b.protocol==="wss"&&c.forEach(S=>{Object.prototype.hasOwnProperty.call(b,S)&&!Object.prototype.hasOwnProperty.call(b.wsOptions,S)&&(y.wsOptions[S]=b[S])}),y}function h(b){let y=f(b);if(y.hostname||(y.hostname=y.host),!y.hostname){if(typeof document>"u")throw new Error("Could not determine host. Specify host manually.");let S=new URL(document.URL);y.hostname=S.hostname,y.port||(y.port=Number(S.port))}return y.objectMode===void 0&&(y.objectMode=!(y.binary===!0||y.binary===void 0)),y}function p(b,y,S){l("createWebSocket"),l(`protocol: ${S.protocolId} ${S.protocolVersion}`);let w=S.protocolId==="MQIsdp"&&S.protocolVersion===3?"mqttv3.1":"mqtt";l(`creating new Websocket for url: ${y} and protocol: ${w}`);let E;return S.createWebsocket?E=S.createWebsocket(y,[w],S):E=new r.default(y,[w],S.wsOptions),E}function m(b,y){let S=y.protocolId==="MQIsdp"&&y.protocolVersion===3?"mqttv3.1":"mqtt",w=u(y,b),E;return y.createWebsocket?E=y.createWebsocket(w,[S],y):E=new WebSocket(w,[S]),E.binaryType="arraybuffer",E}var g=(b,y)=>{l("streamBuilder");let S=f(y);S.hostname=S.hostname||S.host||"localhost";let w=u(S,b),E=p(b,w,S),C=r.default.createWebSocketStream(E,S.wsOptions);return C.url=w,E.on("close",()=>{C.destroy()}),C};e.streamBuilder=g;var v=(b,y)=>{l("browserStreamBuilder");let S,w=h(y).browserBufferSize||1024*512,E=y.browserBufferTimeout||1e3,C=!y.objectMode,x=m(b,y),_=O(y,A,j);y.objectMode||(_._writev=s.writev.bind(_)),_.on("close",()=>{x.close()});let P=typeof x.addEventListener<"u";x.readyState===x.OPEN?(S=_,S.socket=x):(S=new s.BufferedDuplex(y,_,x),P?x.addEventListener("open",I):x.onopen=I),P?(x.addEventListener("close",M),x.addEventListener("error",T),x.addEventListener("message",D)):(x.onclose=M,x.onerror=T,x.onmessage=D);function O(k,F,V){let W=new i.Transform({objectMode:k.objectMode});return W._write=F,W._flush=V,W}function I(){l("WebSocket onOpen"),S instanceof s.BufferedDuplex&&S.socketReady()}function M(k){l("WebSocket onClose",k),S.end(),S.destroy()}function T(k){l("WebSocket onError",k);let F=new Error("WebSocket error");F.event=k,S.destroy(F)}async function D(k){let{data:F}=k;F instanceof ArrayBuffer?F=n.Buffer.from(F):F instanceof Blob?F=n.Buffer.from(await new Response(F).arrayBuffer()):F=n.Buffer.from(F,"utf8"),_&&!_.destroyed&&_.push(F)}function A(k,F,V){if(x.bufferedAmount>w){setTimeout(A,E,k,F,V);return}C&&typeof k=="string"&&(k=n.Buffer.from(k,"utf8"));try{x.send(k)}catch(W){return V(W)}V()}function j(k){x.close(),k()}return S};e.browserStreamBuilder=v}),P5={};Rp(P5,{Server:()=>So,Socket:()=>So,Stream:()=>So,_createServerHandle:()=>So,_normalizeArgs:()=>So,_setSimultaneousAccepts:()=>So,connect:()=>So,createConnection:()=>So,createServer:()=>So,default:()=>QZ,isIP:()=>So,isIPv4:()=>So,isIPv6:()=>So});function So(){throw new Error("Node.js net module is not supported by JSPM core outside of Node.js")}var QZ,JZ=Fi(()=>{Vt(),qt(),Kt(),QZ={_createServerHandle:So,_normalizeArgs:So,_setSimultaneousAccepts:So,connect:So,createConnection:So,createServer:So,isIP:So,isIPv4:So,isIPv6:So,Server:So,Socket:So,Stream:So}}),e9=Zt(e=>{Vt(),qt(),Kt();var t=e&&e.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(e,"__esModule",{value:!0});var n=t((JZ(),Qr(P5))),r=t(Ju()),o=(0,r.default)("mqttjs:tcp"),i=(a,s)=>{s.port=s.port||1883,s.hostname=s.hostname||s.host||"localhost";let{port:l,path:c}=s,u=s.hostname;return o("port %d and host %s",l,u),n.default.createConnection({port:l,host:u,path:c})};e.default=i}),ZZ={};Rp(ZZ,{default:()=>eee});var eee,UCe=Fi(()=>{Vt(),qt(),Kt(),eee={}}),t9=Zt(e=>{Vt(),qt(),Kt();var t=e&&e.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(e,"__esModule",{value:!0});var n=t((UCe(),Qr(ZZ))),r=t((JZ(),Qr(P5))),o=t(Ju()),i=(0,o.default)("mqttjs:tls"),a=(s,l)=>{l.port=l.port||8883,l.host=l.hostname||l.host||"localhost",r.default.isIP(l.host)===0&&(l.servername=l.host),l.rejectUnauthorized=l.rejectUnauthorized!==!1,delete l.path,i("port %d host %s rejectUnauthorized %b",l.port,l.host,l.rejectUnauthorized);let c=n.default.connect(l);c.on("secureConnect",()=>{l.rejectUnauthorized&&!c.authorized?c.emit("error",new Error("TLS not authorized")):c.removeListener("error",u)});function u(f){l.rejectUnauthorized&&s.emit("error",f),c.end()}return c.on("error",u),c};e.default=a}),n9=Zt(e=>{Vt(),qt(),Kt(),Object.defineProperty(e,"__esModule",{value:!0});var t=(Bi(),Qr(Li)),n=Np(),r=$5(),o,i,a;function s(){let h=new n.Transform;return h._write=(p,m,g)=>{o.send({data:p.buffer,success(){g()},fail(v){g(new Error(v))}})},h._flush=p=>{o.close({success(){p()}})},h}function l(h){h.hostname||(h.hostname="localhost"),h.path||(h.path="/"),h.wsOptions||(h.wsOptions={})}function c(h,p){let m=h.protocol==="wxs"?"wss":"ws",g=`${m}://${h.hostname}${h.path}`;return h.port&&h.port!==80&&h.port!==443&&(g=`${m}://${h.hostname}:${h.port}${h.path}`),typeof h.transformWsUrl=="function"&&(g=h.transformWsUrl(g,h,p)),g}function u(){o.onOpen(()=>{a.socketReady()}),o.onMessage(h=>{let{data:p}=h;p instanceof ArrayBuffer?p=t.Buffer.from(p):p=t.Buffer.from(p,"utf8"),i.push(p)}),o.onClose(()=>{a.emit("close"),a.end(),a.destroy()}),o.onError(h=>{let p=new Error(h.errMsg);a.destroy(p)})}var f=(h,p)=>{if(p.hostname=p.hostname||p.host,!p.hostname)throw new Error("Could not determine host. Specify host manually.");let m=p.protocolId==="MQIsdp"&&p.protocolVersion===3?"mqttv3.1":"mqtt";l(p);let g=c(p,h);o=wx.connectSocket({url:g,protocols:[m]}),i=s(),a=new r.BufferedDuplex(p,i,o),a._destroy=(b,y)=>{o.close({success(){y&&y(b)}})};let v=a.destroy;return a.destroy=(b,y)=>(a.destroy=v,setTimeout(()=>{o.close({fail(){a._destroy(b,y)}})},0),a),u(),a};e.default=f}),r9=Zt(e=>{Vt(),qt(),Kt(),Object.defineProperty(e,"__esModule",{value:!0});var t=(Bi(),Qr(Li)),n=Np(),r=$5(),o,i,a,s=!1;function l(){let p=new n.Transform;return p._write=(m,g,v)=>{o.sendSocketMessage({data:m.buffer,success(){v()},fail(){v(new Error)}})},p._flush=m=>{o.closeSocket({success(){m()}})},p}function c(p){p.hostname||(p.hostname="localhost"),p.path||(p.path="/"),p.wsOptions||(p.wsOptions={})}function u(p,m){let g=p.protocol==="alis"?"wss":"ws",v=`${g}://${p.hostname}${p.path}`;return p.port&&p.port!==80&&p.port!==443&&(v=`${g}://${p.hostname}:${p.port}${p.path}`),typeof p.transformWsUrl=="function"&&(v=p.transformWsUrl(v,p,m)),v}function f(){s||(s=!0,o.onSocketOpen(()=>{a.socketReady()}),o.onSocketMessage(p=>{if(typeof p.data=="string"){let m=t.Buffer.from(p.data,"base64");i.push(m)}else{let m=new FileReader;m.addEventListener("load",()=>{let g=m.result;g instanceof ArrayBuffer?g=t.Buffer.from(g):g=t.Buffer.from(g,"utf8"),i.push(g)}),m.readAsArrayBuffer(p.data)}}),o.onSocketClose(()=>{a.end(),a.destroy()}),o.onSocketError(p=>{a.destroy(p)}))}var h=(p,m)=>{if(m.hostname=m.hostname||m.host,!m.hostname)throw new Error("Could not determine host. Specify host manually.");let g=m.protocolId==="MQIsdp"&&m.protocolVersion===3?"mqttv3.1":"mqtt";c(m);let v=u(m,p);return o=m.my,o.connectSocket({url:v,protocols:g}),i=l(),a=new r.BufferedDuplex(m,i,o),f(),a};e.default=h}),WCe=Zt(e=>{Vt(),qt(),Kt();var t=e&&e.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(e,"__esModule",{value:!0}),e.connectAsync=void 0;var n=t(Ju()),r=t((zCe(),Qr(wZ))),o=t(Y4()),i=t(j_());typeof(jr==null?void 0:jr.nextTick)!="function"&&(jr.nextTick=setImmediate);var a=(0,n.default)("mqttjs"),s=null;function l(f){let h;f.auth&&(h=f.auth.match(/^(.+):(.+)$/),h?(f.username=h[1],f.password=h[2]):f.username=f.auth)}function c(f,h){var p,m,g,v;if(a("connecting to an MQTT broker..."),typeof f=="object"&&!h&&(h=f,f=""),h=h||{},f&&typeof f=="string"){let S=r.default.parse(f,!0),w={};if(S.port!=null&&(w.port=Number(S.port)),w.host=S.hostname,w.query=S.query,w.auth=S.auth,w.protocol=S.protocol,w.path=S.path,w.protocol=(p=w.protocol)===null||p===void 0?void 0:p.replace(/:$/,""),h=Object.assign(Object.assign({},w),h),!h.protocol)throw new Error("Missing protocol")}if(h.unixSocket=h.unixSocket||((m=h.protocol)===null||m===void 0?void 0:m.includes("+unix")),h.unixSocket?h.protocol=h.protocol.replace("+unix",""):!(!((g=h.protocol)===null||g===void 0)&&g.startsWith("ws"))&&!(!((v=h.protocol)===null||v===void 0)&&v.startsWith("wx"))&&delete h.path,l(h),h.query&&typeof h.query.clientId=="string"&&(h.clientId=h.query.clientId),h.cert&&h.key)if(h.protocol){if(["mqtts","wss","wxs","alis"].indexOf(h.protocol)===-1)switch(h.protocol){case"mqtt":h.protocol="mqtts";break;case"ws":h.protocol="wss";break;case"wx":h.protocol="wxs";break;case"ali":h.protocol="alis";break;default:throw new Error(`Unknown protocol for secure connection: "${h.protocol}"!`)}}else throw new Error("Missing secure protocol key");if(s||(s={},!i.default&&!h.forceNativeWebSocket?(s.ws=$C().streamBuilder,s.wss=$C().streamBuilder,s.mqtt=e9().default,s.tcp=e9().default,s.ssl=t9().default,s.tls=s.ssl,s.mqtts=t9().default):(s.ws=$C().browserStreamBuilder,s.wss=$C().browserStreamBuilder,s.wx=n9().default,s.wxs=n9().default,s.ali=r9().default,s.alis=r9().default)),!s[h.protocol]){let S=["mqtts","wss"].indexOf(h.protocol)!==-1;h.protocol=["mqtt","mqtts","ws","wss","wx","wxs","ali","alis"].filter((w,E)=>S&&E%2===0?!1:typeof s[w]=="function")[0]}if(h.clean===!1&&!h.clientId)throw new Error("Missing clientId for unclean clients");h.protocol&&(h.defaultProtocol=h.protocol);function b(S){return h.servers&&((!S._reconnectCount||S._reconnectCount===h.servers.length)&&(S._reconnectCount=0),h.host=h.servers[S._reconnectCount].host,h.port=h.servers[S._reconnectCount].port,h.protocol=h.servers[S._reconnectCount].protocol?h.servers[S._reconnectCount].protocol:h.defaultProtocol,h.hostname=h.host,S._reconnectCount++),a("calling streambuilder for",h.protocol),s[h.protocol](S,h)}let y=new o.default(b,h);return y.on("error",()=>{}),y}function u(f,h,p=!0){return new Promise((m,g)=>{let v=c(f,h),b={connect:S=>{y(),m(v)},end:()=>{y(),m(v)},error:S=>{y(),v.end(),g(S)}};p===!1&&(b.close=()=>{b.error(new Error("Couldn't connect to server"))});function y(){Object.keys(b).forEach(S=>{v.off(S,b[S])})}Object.keys(b).forEach(S=>{v.on(S,b[S])})})}e.connectAsync=u,e.default=c}),o9=Zt(e=>{Vt(),qt(),Kt();var t=e&&e.__createBinding||(Object.create?function(p,m,g,v){v===void 0&&(v=g);var b=Object.getOwnPropertyDescriptor(m,g);(!b||("get"in b?!m.__esModule:b.writable||b.configurable))&&(b={enumerable:!0,get:function(){return m[g]}}),Object.defineProperty(p,v,b)}:function(p,m,g,v){v===void 0&&(v=g),p[v]=m[g]}),n=e&&e.__setModuleDefault||(Object.create?function(p,m){Object.defineProperty(p,"default",{enumerable:!0,value:m})}:function(p,m){p.default=m}),r=e&&e.__importStar||function(p){if(p&&p.__esModule)return p;var m={};if(p!=null)for(var g in p)g!=="default"&&Object.prototype.hasOwnProperty.call(p,g)&&t(m,p,g);return n(m,p),m},o=e&&e.__exportStar||function(p,m){for(var g in p)g!=="default"&&!Object.prototype.hasOwnProperty.call(m,g)&&t(m,p,g)},i=e&&e.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(e,"__esModule",{value:!0}),e.ReasonCodes=e.KeepaliveManager=e.UniqueMessageIdProvider=e.DefaultMessageIdProvider=e.Store=e.MqttClient=e.connectAsync=e.connect=e.Client=void 0;var a=i(Y4());e.MqttClient=a.default;var s=i(ZJ());e.DefaultMessageIdProvider=s.default;var l=i(_Ce());e.UniqueMessageIdProvider=l.default;var c=i(eZ());e.Store=c.default;var u=r(WCe());e.connect=u.default,Object.defineProperty(e,"connectAsync",{enumerable:!0,get:function(){return u.connectAsync}});var f=i(gZ());e.KeepaliveManager=f.default,e.Client=a.default,o(Y4(),e),o(Sv(),e);var h=D_();Object.defineProperty(e,"ReasonCodes",{enumerable:!0,get:function(){return h.ReasonCodes}})}),VCe=Zt(e=>{Vt(),qt(),Kt();var t=e&&e.__createBinding||(Object.create?function(a,s,l,c){c===void 0&&(c=l);var u=Object.getOwnPropertyDescriptor(s,l);(!u||("get"in u?!s.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return s[l]}}),Object.defineProperty(a,c,u)}:function(a,s,l,c){c===void 0&&(c=l),a[c]=s[l]}),n=e&&e.__setModuleDefault||(Object.create?function(a,s){Object.defineProperty(a,"default",{enumerable:!0,value:s})}:function(a,s){a.default=s}),r=e&&e.__importStar||function(a){if(a&&a.__esModule)return a;var s={};if(a!=null)for(var l in a)l!=="default"&&Object.prototype.hasOwnProperty.call(a,l)&&t(s,a,l);return n(s,a),s},o=e&&e.__exportStar||function(a,s){for(var l in a)l!=="default"&&!Object.prototype.hasOwnProperty.call(s,l)&&t(s,a,l)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(o9());e.default=i,o(o9(),e)});const KCe=VCe();/*! Bundled license information: @jspm/core/nodelibs/browser/buffer.js: (*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh *) */var vn={};(function(e){var t=typeof Object.defineProperties=="function"?Object.defineProperty:function($,R,J){$!=Array.prototype&&$!=Object.prototype&&($[R]=J.value)},n=(typeof window<"u"&&window===ro||typeof ro<"u"&&ro!=null,ro);function r($,R){if(R){var J=n;$=$.split(".");for(var Ee=0;Ee<$.length-1;Ee++){var ke=$[Ee];ke in J||(J[ke]={}),J=J[ke]}$=$[$.length-1],Ee=J[$],R=R(Ee),R!=Ee&&R!=null&&t(J,$,{configurable:!0,writable:!0,value:R})}}function o($){var R=0;return function(){return R<$.length?{done:!1,value:$[R++]}:{done:!0}}}function i(){i=function(){},n.Symbol||(n.Symbol=s)}function a($,R){this.a=$,t(this,"description",{configurable:!0,writable:!0,value:R})}a.prototype.toString=function(){return this.a};var s=function(){function $(J){if(this instanceof $)throw new TypeError("Symbol is not a constructor");return new a("jscomp_symbol_"+(J||"")+"_"+R++,J)}var R=0;return $}();function l(){i();var $=n.Symbol.iterator;$||($=n.Symbol.iterator=n.Symbol("Symbol.iterator")),typeof Array.prototype[$]!="function"&&t(Array.prototype,$,{configurable:!0,writable:!0,value:function(){return c(o(this))}}),l=function(){}}function c($){return l(),$={next:$},$[n.Symbol.iterator]=function(){return this},$}function u($,R){l(),$ instanceof String&&($+="");var J=0,Ee={next:function(){if(J<$.length){var ke=J++;return{value:R(ke,$[ke]),done:!1}}return Ee.next=function(){return{done:!0,value:void 0}},Ee.next()}};return Ee[Symbol.iterator]=function(){return Ee},Ee}r("Array.prototype.entries",function($){return $||function(){return u(this,function(R,J){return[R,J]})}});var f=ro||self;function h($,R,J){$=$.split("."),J=J||f,$[0]in J||typeof J.execScript>"u"||J.execScript("var "+$[0]);for(var Ee;$.length&&(Ee=$.shift());)$.length||R===void 0?J[Ee]&&J[Ee]!==Object.prototype[Ee]?J=J[Ee]:J=J[Ee]={}:J[Ee]=R}function p($){var R=typeof $;if(R=="object")if($){if($ instanceof Array)return"array";if($ instanceof Object)return R;var J=Object.prototype.toString.call($);if(J=="[object Window]")return"object";if(J=="[object Array]"||typeof $.length=="number"&&typeof $.splice<"u"&&typeof $.propertyIsEnumerable<"u"&&!$.propertyIsEnumerable("splice"))return"array";if(J=="[object Function]"||typeof $.call<"u"&&typeof $.propertyIsEnumerable<"u"&&!$.propertyIsEnumerable("call"))return"function"}else return"null";else if(R=="function"&&typeof $.call>"u")return"object";return R}function m($){var R=typeof $;return R=="object"&&$!=null||R=="function"}function g($,R,J){h($,R,J)}function v($,R){function J(){}J.prototype=R.prototype,$.prototype=new J,$.prototype.constructor=$}var b="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function y($,R){for(var J,Ee,ke=1;ke=arguments.length?Array.prototype.slice.call($,R):Array.prototype.slice.call($,R,J)}function C($,R,J,Ee){var ke="Assertion failed";if(J){ke+=": "+J;var Je=Ee}else $&&(ke+=": "+$,Je=R);throw Error(ke,Je||[])}function x($,R,J){for(var Ee=[],ke=2;ke=$.length)return String.fromCharCode.apply(null,$);for(var R="",J=0;J<$.length;J+=8192)R+=String.fromCharCode.apply(null,E($,J,J+8192));return R}var V={"\0":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\x0B",'"':'\\"',"\\":"\\\\","<":"\\u003C"},W={"'":"\\'"},K={},L=null;function Q($,R){R===void 0&&(R=0),ie(),R=K[R];for(var J=[],Ee=0;Ee<$.length;Ee+=3){var ke=$[Ee],Je=Ee+1<$.length,Dt=Je?$[Ee+1]:0,an=Ee+2<$.length,En=an?$[Ee+2]:0,Cr=ke>>2;ke=(ke&3)<<4|Dt>>4,Dt=(Dt&15)<<2|En>>6,En&=63,an||(En=64,Je||(Dt=64)),J.push(R[Cr],R[ke],R[Dt]||"",R[En]||"")}return J.join("")}function ee($){var R=$.length,J=3*R/4;J%3?J=Math.floor(J):"=.".indexOf($[R-1])!=-1&&(J="=.".indexOf($[R-2])!=-1?J-2:J-1);var Ee=new Uint8Array(J),ke=0;return re($,function(Je){Ee[ke++]=Je}),Ee.subarray(0,ke)}function re($,R){function J(En){for(;Ee<$.length;){var Cr=$.charAt(Ee++),ur=L[Cr];if(ur!=null)return ur;if(!/^[\s\xa0]*$/.test(Cr))throw Error("Unknown base64 encoding at char: "+Cr)}return En}ie();for(var Ee=0;;){var ke=J(-1),Je=J(0),Dt=J(64),an=J(64);if(an===64&&ke===-1)break;R(ke<<2|Je>>4),Dt!=64&&(R(Je<<4&240|Dt>>2),an!=64&&R(Dt<<6&192|an))}}function ie(){if(!L){L={};for(var $="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),R=["+/=","+/","-_=","-_.","-_"],J=0;5>J;J++){var Ee=$.concat(R[J].split(""));K[J]=Ee;for(var ke=0;ke>>0;$=Math.floor(($-R)/4294967296)>>>0,G=R,X=$}h("jspb.utils.splitUint64",ne,void 0);function le($){var R=0>$;$=Math.abs($);var J=$>>>0;$=Math.floor(($-J)/4294967296),$>>>=0,R&&($=~$>>>0,J=(~J>>>0)+1,4294967295$;$=2*Math.abs($),ne($),$=G;var J=X;R&&($==0?J==0?J=$=4294967295:(J--,$=4294967295):$--),G=$,X=J}h("jspb.utils.splitZigzag64",ce,void 0);function oe($){var R=0>$?1:0;if($=R?-$:$,$===0)0<1/$?G=X=0:(X=0,G=2147483648);else if(isNaN($))X=0,G=2147483647;else if(34028234663852886e22<$)X=0,G=(R<<31|2139095040)>>>0;else if(11754943508222875e-54>$)$=Math.round($/Math.pow(2,-149)),X=0,G=(R<<31|$)>>>0;else{var J=Math.floor(Math.log($)/Math.LN2);$*=Math.pow(2,-J),$=Math.round(8388608*$),16777216<=$&&++J,X=0,G=(R<<31|J+127<<23|$&8388607)>>>0}}h("jspb.utils.splitFloat32",oe,void 0);function se($){var R=0>$?1:0;if($=R?-$:$,$===0)X=0<1/$?0:2147483648,G=0;else if(isNaN($))X=2147483647,G=4294967295;else if(17976931348623157e292<$)X=(R<<31|2146435072)>>>0,G=0;else if(22250738585072014e-324>$)$/=Math.pow(2,-1074),X=(R<<31|$/4294967296)>>>0,G=$>>>0;else{var J=$,Ee=0;if(2<=J)for(;2<=J&&1023>Ee;)Ee++,J/=2;else for(;1>J&&-1022>>0,G=4503599627370496*$>>>0}}h("jspb.utils.splitFloat64",se,void 0);function fe($){var R=$.charCodeAt(4),J=$.charCodeAt(5),Ee=$.charCodeAt(6),ke=$.charCodeAt(7);G=$.charCodeAt(0)+($.charCodeAt(1)<<8)+($.charCodeAt(2)<<16)+($.charCodeAt(3)<<24)>>>0,X=R+(J<<8)+(Ee<<16)+(ke<<24)>>>0}h("jspb.utils.splitHash64",fe,void 0);function te($,R){return 4294967296*R+($>>>0)}h("jspb.utils.joinUint64",te,void 0);function he($,R){var J=R&2147483648;return J&&($=~$+1>>>0,R=~R>>>0,$==0&&(R=R+1>>>0)),$=te($,R),J?-$:$}h("jspb.utils.joinInt64",he,void 0);function pe($,R,J){var Ee=R>>31;return J($<<1^Ee,(R<<1|$>>>31)^Ee)}h("jspb.utils.toZigzag64",pe,void 0);function Oe($,R){return Me($,R,he)}h("jspb.utils.joinZigzag64",Oe,void 0);function Me($,R,J){var Ee=-($&1);return J(($>>>1|R<<31)^Ee,R>>>1^Ee)}h("jspb.utils.fromZigzag64",Me,void 0);function Se($){var R=2*($>>31)+1,J=$>>>23&255;return $&=8388607,J==255?$?NaN:1/0*R:J==0?R*Math.pow(2,-149)*$:R*Math.pow(2,J-150)*($+Math.pow(2,23))}h("jspb.utils.joinFloat32",Se,void 0);function ye($,R){var J=2*(R>>31)+1,Ee=R>>>20&2047;return $=4294967296*(R&1048575)+$,Ee==2047?$?NaN:1/0*J:Ee==0?J*Math.pow(2,-1074)*$:J*Math.pow(2,Ee-1075)*($+4503599627370496)}h("jspb.utils.joinFloat64",ye,void 0);function ve($,R){return String.fromCharCode($>>>0&255,$>>>8&255,$>>>16&255,$>>>24&255,R>>>0&255,R>>>8&255,R>>>16&255,R>>>24&255)}h("jspb.utils.joinHash64",ve,void 0),h("jspb.utils.DIGITS","0123456789abcdef".split(""),void 0);function be($,R){function J(ke,Je){return ke=ke?String(ke):"",Je?"0000000".slice(ke.length)+ke:ke}if(2097151>=R)return""+te($,R);var Ee=($>>>24|R<<8)>>>0&16777215;return R=R>>16&65535,$=($&16777215)+6777216*Ee+6710656*R,Ee+=8147497*R,R*=2,1e7<=$&&(Ee+=Math.floor($/1e7),$%=1e7),1e7<=Ee&&(R+=Math.floor(Ee/1e7),Ee%=1e7),J(R,0)+J(Ee,R)+J($,1)}h("jspb.utils.joinUnsignedDecimalString",be,void 0);function Pe($,R){var J=R&2147483648;return J&&($=~$+1>>>0,R=~R+($==0?1:0)>>>0),$=be($,R),J?"-"+$:$}h("jspb.utils.joinSignedDecimalString",Pe,void 0);function Ne($,R){fe($),$=G;var J=X;return R?Pe($,J):be($,J)}h("jspb.utils.hash64ToDecimalString",Ne,void 0),h("jspb.utils.hash64ArrayToDecimalStrings",function($,R){for(var J=Array($.length),Ee=0;Ee<$.length;Ee++)J[Ee]=Ne($[Ee],R);return J},void 0);function U($){function R(Dt,an){for(var En=0;8>En&&(Dt!==1||0>>=8}function J(){for(var Dt=0;8>Dt;Dt++)ke[Dt]=~ke[Dt]&255}x(0<$.length);var Ee=!1;$[0]==="-"&&(Ee=!0,$=$.slice(1));for(var ke=[0,0,0,0,0,0,0,0],Je=0;Je<$.length;Je++)R(10,$.charCodeAt(Je)-48);return Ee&&(J(),R(1,1)),F(ke)}h("jspb.utils.decimalStringToHash64",U,void 0),h("jspb.utils.splitDecimalString",function($){fe(U($))},void 0);function H($){return String.fromCharCode(10>$?48+$:87+$)}function q($){return 97<=$?$-97+10:$-48}h("jspb.utils.hash64ToHexString",function($){var R=Array(18);R[0]="0",R[1]="x";for(var J=0;8>J;J++){var Ee=$.charCodeAt(7-J);R[2*J+2]=H(Ee>>4),R[2*J+3]=H(Ee&15)}return R.join("")},void 0),h("jspb.utils.hexStringToHash64",function($){$=$.toLowerCase(),x($.length==18),x($[0]=="0"),x($[1]=="x");for(var R="",J=0;8>J;J++)R=String.fromCharCode(16*q($.charCodeAt(2*J+2))+q($.charCodeAt(2*J+3)))+R;return R},void 0),h("jspb.utils.hash64ToNumber",function($,R){fe($),$=G;var J=X;return R?he($,J):te($,J)},void 0),h("jspb.utils.numberToHash64",function($){return le($),ve(G,X)},void 0),h("jspb.utils.countVarints",function($,R,J){for(var Ee=0,ke=R;ke>7;return J-R-Ee},void 0),h("jspb.utils.countVarintFields",function($,R,J,Ee){var ke=0;if(Ee*=8,128>Ee)for(;R>=7}if($[R++]!=Je)break;for(ke++;Je=$[R++],(Je&128)!=0;);}return ke},void 0);function me($,R,J,Ee,ke){var Je=0;if(128>Ee)for(;R>=7}if($[R++]!=Dt)break;Je++,R+=ke}return Je}h("jspb.utils.countFixed32Fields",function($,R,J,Ee){return me($,R,J,8*Ee+5,4)},void 0),h("jspb.utils.countFixed64Fields",function($,R,J,Ee){return me($,R,J,8*Ee+1,8)},void 0),h("jspb.utils.countDelimitedFields",function($,R,J,Ee){var ke=0;for(Ee=8*Ee+2;R>=7}if($[R++]!=Je)break;ke++;for(var Dt=0,an=1;Je=$[R++],Dt+=(Je&127)*an,an*=128,(Je&128)!=0;);R+=Dt}return ke},void 0),h("jspb.utils.debugBytesToTextFormat",function($){var R='"';if($){$=Ce($);for(var J=0;J<$.length;J++)R+="\\x",16>$[J]&&(R+="0"),R+=$[J].toString(16)}return R+'"'},void 0),h("jspb.utils.debugScalarToTextFormat",function($){if(typeof $=="string"){$=String($);for(var R=['"'],J=0;J<$.length;J++){var Ee=$.charAt(J),ke=Ee.charCodeAt(0),Je=J+1,Dt;(Dt=V[Ee])||(31ke||(ke=Ee,ke in W?Ee=W[ke]:ke in V?Ee=W[ke]=V[ke]:(Dt=ke.charCodeAt(0),31Dt?Ee=ke:(256>Dt?(Ee="\\x",(16>Dt||256Dt&&(Ee+="0")),Ee+=Dt.toString(16).toUpperCase()),Ee=W[ke]=Ee)),Dt=Ee),R[Je]=Dt}R.push('"'),$=R.join("")}else $=$.toString();return $},void 0),h("jspb.utils.stringToByteArray",function($){for(var R=new Uint8Array($.length),J=0;J<$.length;J++){var Ee=$.charCodeAt(J);if(255Le.length&&Le.push(this)},ue.prototype.free=ue.prototype.Ca,ue.prototype.clone=function(){return He(this.b,this.h,this.c-this.h)},ue.prototype.clone=ue.prototype.clone,ue.prototype.clear=function(){this.b=null,this.a=this.c=this.h=0,this.v=!1},ue.prototype.clear=ue.prototype.clear,ue.prototype.Y=function(){return this.b},ue.prototype.getBuffer=ue.prototype.Y,ue.prototype.H=function($,R,J){this.b=Ce($),this.h=R!==void 0?R:0,this.c=J!==void 0?this.h+J:this.b.length,this.a=this.h},ue.prototype.setBlock=ue.prototype.H,ue.prototype.Db=function(){return this.c},ue.prototype.getEnd=ue.prototype.Db,ue.prototype.setEnd=function($){this.c=$},ue.prototype.setEnd=ue.prototype.setEnd,ue.prototype.reset=function(){this.a=this.h},ue.prototype.reset=ue.prototype.reset,ue.prototype.B=function(){return this.a},ue.prototype.getCursor=ue.prototype.B,ue.prototype.Ma=function($){this.a=$},ue.prototype.setCursor=ue.prototype.Ma,ue.prototype.advance=function($){this.a+=$,x(this.a<=this.c)},ue.prototype.advance=ue.prototype.advance,ue.prototype.ya=function(){return this.a==this.c},ue.prototype.atEnd=ue.prototype.ya,ue.prototype.Qb=function(){return this.a>this.c},ue.prototype.pastEnd=ue.prototype.Qb,ue.prototype.getError=function(){return this.v||0>this.a||this.a>this.c},ue.prototype.getError=ue.prototype.getError,ue.prototype.w=function($){for(var R=128,J=0,Ee=0,ke=0;4>ke&&128<=R;ke++)R=this.b[this.a++],J|=(R&127)<<7*ke;if(128<=R&&(R=this.b[this.a++],J|=(R&127)<<28,Ee|=(R&127)>>4),128<=R)for(ke=0;5>ke&&128<=R;ke++)R=this.b[this.a++],Ee|=(R&127)<<7*ke+3;if(128>R)return $(J>>>0,Ee>>>0);O("Failed to read varint, encoding is invalid."),this.v=!0},ue.prototype.readSplitVarint64=ue.prototype.w,ue.prototype.ea=function($){return this.w(function(R,J){return Me(R,J,$)})},ue.prototype.readSplitZigzagVarint64=ue.prototype.ea,ue.prototype.ta=function($){var R=this.b,J=this.a;this.a+=8;for(var Ee=0,ke=0,Je=J+7;Je>=J;Je--)Ee=Ee<<8|R[Je],ke=ke<<8|R[Je+4];return $(Ee,ke)},ue.prototype.readSplitFixed64=ue.prototype.ta,ue.prototype.kb=function(){for(;this.b[this.a]&128;)this.a++;this.a++},ue.prototype.skipVarint=ue.prototype.kb,ue.prototype.mb=function($){for(;128<$;)this.a--,$>>>=7;this.a--},ue.prototype.unskipVarint=ue.prototype.mb,ue.prototype.o=function(){var $=this.b,R=$[this.a],J=R&127;return 128>R?(this.a+=1,x(this.a<=this.c),J):(R=$[this.a+1],J|=(R&127)<<7,128>R?(this.a+=2,x(this.a<=this.c),J):(R=$[this.a+2],J|=(R&127)<<14,128>R?(this.a+=3,x(this.a<=this.c),J):(R=$[this.a+3],J|=(R&127)<<21,128>R?(this.a+=4,x(this.a<=this.c),J):(R=$[this.a+4],J|=(R&15)<<28,128>R?(this.a+=5,x(this.a<=this.c),J>>>0):(this.a+=5,128<=$[this.a++]&&128<=$[this.a++]&&128<=$[this.a++]&&128<=$[this.a++]&&128<=$[this.a++]&&x(!1),x(this.a<=this.c),J)))))},ue.prototype.readUnsignedVarint32=ue.prototype.o,ue.prototype.da=function(){return~~this.o()},ue.prototype.readSignedVarint32=ue.prototype.da,ue.prototype.O=function(){return this.o().toString()},ue.prototype.Ea=function(){return this.da().toString()},ue.prototype.readSignedVarint32String=ue.prototype.Ea,ue.prototype.Ia=function(){var $=this.o();return $>>>1^-($&1)},ue.prototype.readZigzagVarint32=ue.prototype.Ia,ue.prototype.Ga=function(){return this.w(te)},ue.prototype.readUnsignedVarint64=ue.prototype.Ga,ue.prototype.Ha=function(){return this.w(be)},ue.prototype.readUnsignedVarint64String=ue.prototype.Ha,ue.prototype.sa=function(){return this.w(he)},ue.prototype.readSignedVarint64=ue.prototype.sa,ue.prototype.Fa=function(){return this.w(Pe)},ue.prototype.readSignedVarint64String=ue.prototype.Fa,ue.prototype.Ja=function(){return this.w(Oe)},ue.prototype.readZigzagVarint64=ue.prototype.Ja,ue.prototype.fb=function(){return this.ea(ve)},ue.prototype.readZigzagVarintHash64=ue.prototype.fb,ue.prototype.Ka=function(){return this.ea(Pe)},ue.prototype.readZigzagVarint64String=ue.prototype.Ka,ue.prototype.Gc=function(){var $=this.b[this.a];return this.a+=1,x(this.a<=this.c),$},ue.prototype.readUint8=ue.prototype.Gc,ue.prototype.Ec=function(){var $=this.b[this.a],R=this.b[this.a+1];return this.a+=2,x(this.a<=this.c),$<<0|R<<8},ue.prototype.readUint16=ue.prototype.Ec,ue.prototype.m=function(){var $=this.b[this.a],R=this.b[this.a+1],J=this.b[this.a+2],Ee=this.b[this.a+3];return this.a+=4,x(this.a<=this.c),($<<0|R<<8|J<<16|Ee<<24)>>>0},ue.prototype.readUint32=ue.prototype.m,ue.prototype.ga=function(){var $=this.m(),R=this.m();return te($,R)},ue.prototype.readUint64=ue.prototype.ga,ue.prototype.ha=function(){var $=this.m(),R=this.m();return be($,R)},ue.prototype.readUint64String=ue.prototype.ha,ue.prototype.Xb=function(){var $=this.b[this.a];return this.a+=1,x(this.a<=this.c),$<<24>>24},ue.prototype.readInt8=ue.prototype.Xb,ue.prototype.Vb=function(){var $=this.b[this.a],R=this.b[this.a+1];return this.a+=2,x(this.a<=this.c),($<<0|R<<8)<<16>>16},ue.prototype.readInt16=ue.prototype.Vb,ue.prototype.P=function(){var $=this.b[this.a],R=this.b[this.a+1],J=this.b[this.a+2],Ee=this.b[this.a+3];return this.a+=4,x(this.a<=this.c),$<<0|R<<8|J<<16|Ee<<24},ue.prototype.readInt32=ue.prototype.P,ue.prototype.ba=function(){var $=this.m(),R=this.m();return he($,R)},ue.prototype.readInt64=ue.prototype.ba,ue.prototype.ca=function(){var $=this.m(),R=this.m();return Pe($,R)},ue.prototype.readInt64String=ue.prototype.ca,ue.prototype.aa=function(){var $=this.m();return Se($)},ue.prototype.readFloat=ue.prototype.aa,ue.prototype.Z=function(){var $=this.m(),R=this.m();return ye($,R)},ue.prototype.readDouble=ue.prototype.Z,ue.prototype.pa=function(){return!!this.b[this.a++]},ue.prototype.readBool=ue.prototype.pa,ue.prototype.ra=function(){return this.da()},ue.prototype.readEnum=ue.prototype.ra,ue.prototype.fa=function($){var R=this.b,J=this.a;$=J+$;for(var Ee=[],ke="";J<$;){var Je=R[J++];if(128>Je)Ee.push(Je);else{if(192>Je)continue;if(224>Je){var Dt=R[J++];Ee.push((Je&31)<<6|Dt&63)}else if(240>Je){Dt=R[J++];var an=R[J++];Ee.push((Je&15)<<12|(Dt&63)<<6|an&63)}else if(248>Je){Dt=R[J++],an=R[J++];var En=R[J++];Je=(Je&7)<<18|(Dt&63)<<12|(an&63)<<6|En&63,Je-=65536,Ee.push((Je>>10&1023)+55296,(Je&1023)+56320)}}8192<=Ee.length&&(ke+=String.fromCharCode.apply(null,Ee),Ee.length=0)}return ke+=F(Ee),this.a=J,ke},ue.prototype.readString=ue.prototype.fa,ue.prototype.Dc=function(){var $=this.o();return this.fa($)},ue.prototype.readStringWithLength=ue.prototype.Dc,ue.prototype.qa=function($){if(0>$||this.a+$>this.b.length)return this.v=!0,O("Invalid byte length!"),new Uint8Array(0);var R=this.b.subarray(this.a,this.a+$);return this.a+=$,x(this.a<=this.c),R},ue.prototype.readBytes=ue.prototype.qa,ue.prototype.ia=function(){return this.w(ve)},ue.prototype.readVarintHash64=ue.prototype.ia,ue.prototype.$=function(){var $=this.b,R=this.a,J=$[R],Ee=$[R+1],ke=$[R+2],Je=$[R+3],Dt=$[R+4],an=$[R+5],En=$[R+6];return $=$[R+7],this.a+=8,String.fromCharCode(J,Ee,ke,Je,Dt,an,En,$)},ue.prototype.readFixedHash64=ue.prototype.$;function ge($,R,J){this.a=He($,R,J),this.O=this.a.B(),this.b=this.c=-1,this.h=!1,this.v=null}h("jspb.BinaryReader",ge,void 0);var De=[];ge.clearInstanceCache=function(){De=[]},ge.getInstanceCacheLength=function(){return De.length};function qe($,R,J){if(De.length){var Ee=De.pop();return $&&Ee.a.H($,R,J),Ee}return new ge($,R,J)}ge.alloc=qe,ge.prototype.zb=qe,ge.prototype.alloc=ge.prototype.zb,ge.prototype.Ca=function(){this.a.clear(),this.b=this.c=-1,this.h=!1,this.v=null,100>De.length&&De.push(this)},ge.prototype.free=ge.prototype.Ca,ge.prototype.Fb=function(){return this.O},ge.prototype.getFieldCursor=ge.prototype.Fb,ge.prototype.B=function(){return this.a.B()},ge.prototype.getCursor=ge.prototype.B,ge.prototype.Y=function(){return this.a.Y()},ge.prototype.getBuffer=ge.prototype.Y,ge.prototype.Hb=function(){return this.c},ge.prototype.getFieldNumber=ge.prototype.Hb,ge.prototype.Lb=function(){return this.b},ge.prototype.getWireType=ge.prototype.Lb,ge.prototype.Mb=function(){return this.b==2},ge.prototype.isDelimited=ge.prototype.Mb,ge.prototype.bb=function(){return this.b==4},ge.prototype.isEndGroup=ge.prototype.bb,ge.prototype.getError=function(){return this.h||this.a.getError()},ge.prototype.getError=ge.prototype.getError,ge.prototype.H=function($,R,J){this.a.H($,R,J),this.b=this.c=-1},ge.prototype.setBlock=ge.prototype.H,ge.prototype.reset=function(){this.a.reset(),this.b=this.c=-1},ge.prototype.reset=ge.prototype.reset,ge.prototype.advance=function($){this.a.advance($)},ge.prototype.advance=ge.prototype.advance,ge.prototype.oa=function(){if(this.a.ya())return!1;if(this.getError())return O("Decoder hit an error"),!1;this.O=this.a.B();var $=this.a.o(),R=$>>>3;return $&=7,$!=0&&$!=5&&$!=1&&$!=2&&$!=3&&$!=4?(O("Invalid wire type: %s (at position %s)",$,this.O),this.h=!0,!1):(this.c=R,this.b=$,!0)},ge.prototype.nextField=ge.prototype.oa,ge.prototype.Oa=function(){this.a.mb(this.c<<3|this.b)},ge.prototype.unskipHeader=ge.prototype.Oa,ge.prototype.Lc=function(){var $=this.c;for(this.Oa();this.oa()&&this.c==$;)this.C();this.a.ya()||this.Oa()},ge.prototype.skipMatchingFields=ge.prototype.Lc,ge.prototype.lb=function(){this.b!=0?(O("Invalid wire type for skipVarintField"),this.C()):this.a.kb()},ge.prototype.skipVarintField=ge.prototype.lb,ge.prototype.gb=function(){if(this.b!=2)O("Invalid wire type for skipDelimitedField"),this.C();else{var $=this.a.o();this.a.advance($)}},ge.prototype.skipDelimitedField=ge.prototype.gb,ge.prototype.hb=function(){this.b!=5?(O("Invalid wire type for skipFixed32Field"),this.C()):this.a.advance(4)},ge.prototype.skipFixed32Field=ge.prototype.hb,ge.prototype.ib=function(){this.b!=1?(O("Invalid wire type for skipFixed64Field"),this.C()):this.a.advance(8)},ge.prototype.skipFixed64Field=ge.prototype.ib,ge.prototype.jb=function(){var $=this.c;do{if(!this.oa()){O("Unmatched start-group tag: stream EOF"),this.h=!0;break}if(this.b==4){this.c!=$&&(O("Unmatched end-group tag"),this.h=!0);break}this.C()}while(!0)},ge.prototype.skipGroup=ge.prototype.jb,ge.prototype.C=function(){switch(this.b){case 0:this.lb();break;case 1:this.ib();break;case 2:this.gb();break;case 5:this.hb();break;case 3:this.jb();break;default:O("Invalid wire encoding for field.")}},ge.prototype.skipField=ge.prototype.C,ge.prototype.Hc=function($,R){this.v===null&&(this.v={}),x(!this.v[$]),this.v[$]=R},ge.prototype.registerReadCallback=ge.prototype.Hc,ge.prototype.Ic=function($){return x(this.v!==null),$=this.v[$],x($),$(this)},ge.prototype.runReadCallback=ge.prototype.Ic,ge.prototype.Yb=function($,R){x(this.b==2);var J=this.a.c,Ee=this.a.o();Ee=this.a.B()+Ee,this.a.setEnd(Ee),R($,this),this.a.Ma(Ee),this.a.setEnd(J)},ge.prototype.readMessage=ge.prototype.Yb,ge.prototype.Ub=function($,R,J){x(this.b==3),x(this.c==$),J(R,this),this.h||this.b==4||(O("Group submessage did not end with an END_GROUP tag"),this.h=!0)},ge.prototype.readGroup=ge.prototype.Ub,ge.prototype.Gb=function(){x(this.b==2);var $=this.a.o(),R=this.a.B(),J=R+$;return $=He(this.a.Y(),R,$),this.a.Ma(J),$},ge.prototype.getFieldDecoder=ge.prototype.Gb,ge.prototype.P=function(){return x(this.b==0),this.a.da()},ge.prototype.readInt32=ge.prototype.P,ge.prototype.Wb=function(){return x(this.b==0),this.a.Ea()},ge.prototype.readInt32String=ge.prototype.Wb,ge.prototype.ba=function(){return x(this.b==0),this.a.sa()},ge.prototype.readInt64=ge.prototype.ba,ge.prototype.ca=function(){return x(this.b==0),this.a.Fa()},ge.prototype.readInt64String=ge.prototype.ca,ge.prototype.m=function(){return x(this.b==0),this.a.o()},ge.prototype.readUint32=ge.prototype.m,ge.prototype.Fc=function(){return x(this.b==0),this.a.O()},ge.prototype.readUint32String=ge.prototype.Fc,ge.prototype.ga=function(){return x(this.b==0),this.a.Ga()},ge.prototype.readUint64=ge.prototype.ga,ge.prototype.ha=function(){return x(this.b==0),this.a.Ha()},ge.prototype.readUint64String=ge.prototype.ha,ge.prototype.zc=function(){return x(this.b==0),this.a.Ia()},ge.prototype.readSint32=ge.prototype.zc,ge.prototype.Ac=function(){return x(this.b==0),this.a.Ja()},ge.prototype.readSint64=ge.prototype.Ac,ge.prototype.Bc=function(){return x(this.b==0),this.a.Ka()},ge.prototype.readSint64String=ge.prototype.Bc,ge.prototype.Rb=function(){return x(this.b==5),this.a.m()},ge.prototype.readFixed32=ge.prototype.Rb,ge.prototype.Sb=function(){return x(this.b==1),this.a.ga()},ge.prototype.readFixed64=ge.prototype.Sb,ge.prototype.Tb=function(){return x(this.b==1),this.a.ha()},ge.prototype.readFixed64String=ge.prototype.Tb,ge.prototype.vc=function(){return x(this.b==5),this.a.P()},ge.prototype.readSfixed32=ge.prototype.vc,ge.prototype.wc=function(){return x(this.b==5),this.a.P().toString()},ge.prototype.readSfixed32String=ge.prototype.wc,ge.prototype.xc=function(){return x(this.b==1),this.a.ba()},ge.prototype.readSfixed64=ge.prototype.xc,ge.prototype.yc=function(){return x(this.b==1),this.a.ca()},ge.prototype.readSfixed64String=ge.prototype.yc,ge.prototype.aa=function(){return x(this.b==5),this.a.aa()},ge.prototype.readFloat=ge.prototype.aa,ge.prototype.Z=function(){return x(this.b==1),this.a.Z()},ge.prototype.readDouble=ge.prototype.Z,ge.prototype.pa=function(){return x(this.b==0),!!this.a.o()},ge.prototype.readBool=ge.prototype.pa,ge.prototype.ra=function(){return x(this.b==0),this.a.sa()},ge.prototype.readEnum=ge.prototype.ra,ge.prototype.fa=function(){x(this.b==2);var $=this.a.o();return this.a.fa($)},ge.prototype.readString=ge.prototype.fa,ge.prototype.qa=function(){x(this.b==2);var $=this.a.o();return this.a.qa($)},ge.prototype.readBytes=ge.prototype.qa,ge.prototype.ia=function(){return x(this.b==0),this.a.ia()},ge.prototype.readVarintHash64=ge.prototype.ia,ge.prototype.Cc=function(){return x(this.b==0),this.a.fb()},ge.prototype.readSintHash64=ge.prototype.Cc,ge.prototype.w=function($){return x(this.b==0),this.a.w($)},ge.prototype.readSplitVarint64=ge.prototype.w,ge.prototype.ea=function($){return x(this.b==0),this.a.w(function(R,J){return Me(R,J,$)})},ge.prototype.readSplitZigzagVarint64=ge.prototype.ea,ge.prototype.$=function(){return x(this.b==1),this.a.$()},ge.prototype.readFixedHash64=ge.prototype.$,ge.prototype.ta=function($){return x(this.b==1),this.a.ta($)},ge.prototype.readSplitFixed64=ge.prototype.ta;function Fe($,R){x($.b==2);var J=$.a.o();J=$.a.B()+J;for(var Ee=[];$.a.B()R.length?J.length:R.length;for($.b&&(Ee[0]=$.b,ke=1);ke$),x(0<=R&&4294967296>R);0>>7|R<<25)>>>0,R>>>=7;this.a.push($)},at.prototype.writeSplitVarint64=at.prototype.l,at.prototype.A=function($,R){x($==Math.floor($)),x(R==Math.floor(R)),x(0<=$&&4294967296>$),x(0<=R&&4294967296>R),this.s($),this.s(R)},at.prototype.writeSplitFixed64=at.prototype.A,at.prototype.j=function($){for(x($==Math.floor($)),x(0<=$&&4294967296>$);127<$;)this.a.push($&127|128),$>>>=7;this.a.push($)},at.prototype.writeUnsignedVarint32=at.prototype.j,at.prototype.M=function($){if(x($==Math.floor($)),x(-2147483648<=$&&2147483648>$),0<=$)this.j($);else{for(var R=0;9>R;R++)this.a.push($&127|128),$>>=7;this.a.push(1)}},at.prototype.writeSignedVarint32=at.prototype.M,at.prototype.va=function($){x($==Math.floor($)),x(0<=$&&18446744073709552e3>$),le($),this.l(G,X)},at.prototype.writeUnsignedVarint64=at.prototype.va,at.prototype.ua=function($){x($==Math.floor($)),x(-9223372036854776e3<=$&&9223372036854776e3>$),le($),this.l(G,X)},at.prototype.writeSignedVarint64=at.prototype.ua,at.prototype.wa=function($){x($==Math.floor($)),x(-2147483648<=$&&2147483648>$),this.j(($<<1^$>>31)>>>0)},at.prototype.writeZigzagVarint32=at.prototype.wa,at.prototype.xa=function($){x($==Math.floor($)),x(-9223372036854776e3<=$&&9223372036854776e3>$),ce($),this.l(G,X)},at.prototype.writeZigzagVarint64=at.prototype.xa,at.prototype.Ta=function($){this.W(U($))},at.prototype.writeZigzagVarint64String=at.prototype.Ta,at.prototype.W=function($){var R=this;fe($),pe(G,X,function(J,Ee){R.l(J>>>0,Ee>>>0)})},at.prototype.writeZigzagVarintHash64=at.prototype.W,at.prototype.be=function($){x($==Math.floor($)),x(0<=$&&256>$),this.a.push($>>>0&255)},at.prototype.writeUint8=at.prototype.be,at.prototype.ae=function($){x($==Math.floor($)),x(0<=$&&65536>$),this.a.push($>>>0&255),this.a.push($>>>8&255)},at.prototype.writeUint16=at.prototype.ae,at.prototype.s=function($){x($==Math.floor($)),x(0<=$&&4294967296>$),this.a.push($>>>0&255),this.a.push($>>>8&255),this.a.push($>>>16&255),this.a.push($>>>24&255)},at.prototype.writeUint32=at.prototype.s,at.prototype.V=function($){x($==Math.floor($)),x(0<=$&&18446744073709552e3>$),ne($),this.s(G),this.s(X)},at.prototype.writeUint64=at.prototype.V,at.prototype.Qc=function($){x($==Math.floor($)),x(-128<=$&&128>$),this.a.push($>>>0&255)},at.prototype.writeInt8=at.prototype.Qc,at.prototype.Pc=function($){x($==Math.floor($)),x(-32768<=$&&32768>$),this.a.push($>>>0&255),this.a.push($>>>8&255)},at.prototype.writeInt16=at.prototype.Pc,at.prototype.S=function($){x($==Math.floor($)),x(-2147483648<=$&&2147483648>$),this.a.push($>>>0&255),this.a.push($>>>8&255),this.a.push($>>>16&255),this.a.push($>>>24&255)},at.prototype.writeInt32=at.prototype.S,at.prototype.T=function($){x($==Math.floor($)),x(-9223372036854776e3<=$&&9223372036854776e3>$),le($),this.A(G,X)},at.prototype.writeInt64=at.prototype.T,at.prototype.ka=function($){x($==Math.floor($)),x(-9223372036854776e3<=+$&&9223372036854776e3>+$),fe(U($)),this.A(G,X)},at.prototype.writeInt64String=at.prototype.ka,at.prototype.L=function($){x($===1/0||$===-1/0||isNaN($)||-34028234663852886e22<=$&&34028234663852886e22>=$),oe($),this.s(G)},at.prototype.writeFloat=at.prototype.L,at.prototype.J=function($){x($===1/0||$===-1/0||isNaN($)||-17976931348623157e292<=$&&17976931348623157e292>=$),se($),this.s(G),this.s(X)},at.prototype.writeDouble=at.prototype.J,at.prototype.I=function($){x(typeof $=="boolean"||typeof $=="number"),this.a.push($?1:0)},at.prototype.writeBool=at.prototype.I,at.prototype.R=function($){x($==Math.floor($)),x(-2147483648<=$&&2147483648>$),this.M($)},at.prototype.writeEnum=at.prototype.R,at.prototype.ja=function($){this.a.push.apply(this.a,$)},at.prototype.writeBytes=at.prototype.ja,at.prototype.N=function($){fe($),this.l(G,X)},at.prototype.writeVarintHash64=at.prototype.N,at.prototype.K=function($){fe($),this.s(G),this.s(X)},at.prototype.writeFixedHash64=at.prototype.K,at.prototype.U=function($){var R=this.a.length;_($);for(var J=0;J<$.length;J++){var Ee=$.charCodeAt(J);if(128>Ee)this.a.push(Ee);else if(2048>Ee)this.a.push(Ee>>6|192),this.a.push(Ee&63|128);else if(65536>Ee)if(55296<=Ee&&56319>=Ee&&J+1<$.length){var ke=$.charCodeAt(J+1);56320<=ke&&57343>=ke&&(Ee=1024*(Ee-55296)+ke-56320+65536,this.a.push(Ee>>18|240),this.a.push(Ee>>12&63|128),this.a.push(Ee>>6&63|128),this.a.push(Ee&63|128),J++)}else this.a.push(Ee>>12|224),this.a.push(Ee>>6&63|128),this.a.push(Ee&63|128)}return this.a.length-R},at.prototype.writeString=at.prototype.U;function $t($,R){this.lo=$,this.hi=R}h("jspb.arith.UInt64",$t,void 0),$t.prototype.cmp=function($){return this.hi<$.hi||this.hi==$.hi&&this.lo<$.lo?-1:this.hi==$.hi&&this.lo==$.lo?0:1},$t.prototype.cmp=$t.prototype.cmp,$t.prototype.La=function(){return new $t((this.lo>>>1|(this.hi&1)<<31)>>>0,this.hi>>>1>>>0)},$t.prototype.rightShift=$t.prototype.La,$t.prototype.Da=function(){return new $t(this.lo<<1>>>0,(this.hi<<1|this.lo>>>31)>>>0)},$t.prototype.leftShift=$t.prototype.Da,$t.prototype.cb=function(){return!!(this.hi&2147483648)},$t.prototype.msb=$t.prototype.cb,$t.prototype.Ob=function(){return!!(this.lo&1)},$t.prototype.lsb=$t.prototype.Ob,$t.prototype.Ua=function(){return this.lo==0&&this.hi==0},$t.prototype.zero=$t.prototype.Ua,$t.prototype.add=function($){return new $t((this.lo+$.lo&4294967295)>>>0>>>0,((this.hi+$.hi&4294967295)>>>0)+(4294967296<=this.lo+$.lo?1:0)>>>0)},$t.prototype.add=$t.prototype.add,$t.prototype.sub=function($){return new $t((this.lo-$.lo&4294967295)>>>0>>>0,((this.hi-$.hi&4294967295)>>>0)-(0>this.lo-$.lo?1:0)>>>0)},$t.prototype.sub=$t.prototype.sub;function Bt($,R){var J=$&65535;$>>>=16;var Ee=R&65535,ke=R>>>16;for(R=J*Ee+65536*(J*ke&65535)+65536*($*Ee&65535),J=$*ke+(J*ke>>>16)+($*Ee>>>16);4294967296<=R;)R-=4294967296,J+=1;return new $t(R>>>0,J>>>0)}$t.mul32x32=Bt,$t.prototype.eb=function($){var R=Bt(this.lo,$);return $=Bt(this.hi,$),$.hi=$.lo,$.lo=0,R.add($)},$t.prototype.mul=$t.prototype.eb,$t.prototype.Xa=function($){if($==0)return[];var R=new $t(0,0),J=new $t(this.lo,this.hi);$=new $t($,0);for(var Ee=new $t(1,0);!$.cb();)$=$.Da(),Ee=Ee.Da();for(;!Ee.Ua();)0>=$.cmp(J)&&(R=R.add(Ee),J=J.sub($)),$=$.La(),Ee=Ee.La();return[R,J]},$t.prototype.div=$t.prototype.Xa,$t.prototype.toString=function(){for(var $="",R=this;!R.Ua();){R=R.Xa(10);var J=R[0];$=R[1].lo+$,R=J}return $==""&&($="0"),$},$t.prototype.toString=$t.prototype.toString;function xt($){for(var R=new $t(0,0),J=new $t(0,0),Ee=0;Ee<$.length;Ee++){if("0">$[Ee]||"9"<$[Ee])return null;J.lo=parseInt($[Ee],10),R=R.eb(10).add(J)}return R}$t.fromString=xt,$t.prototype.clone=function(){return new $t(this.lo,this.hi)},$t.prototype.clone=$t.prototype.clone;function bt($,R){this.lo=$,this.hi=R}h("jspb.arith.Int64",bt,void 0),bt.prototype.add=function($){return new bt((this.lo+$.lo&4294967295)>>>0>>>0,((this.hi+$.hi&4294967295)>>>0)+(4294967296<=this.lo+$.lo?1:0)>>>0)},bt.prototype.add=bt.prototype.add,bt.prototype.sub=function($){return new bt((this.lo-$.lo&4294967295)>>>0>>>0,((this.hi-$.hi&4294967295)>>>0)-(0>this.lo-$.lo?1:0)>>>0)},bt.prototype.sub=bt.prototype.sub,bt.prototype.clone=function(){return new bt(this.lo,this.hi)},bt.prototype.clone=bt.prototype.clone,bt.prototype.toString=function(){var $=(this.hi&2147483648)!=0,R=new $t(this.lo,this.hi);return $&&(R=new $t(0,0).sub(R)),($?"-":"")+R.toString()},bt.prototype.toString=bt.prototype.toString;function Ft($){var R=0<$.length&&$[0]=="-";return R&&($=$.substring(1)),$=xt($),$===null?null:(R&&($=new $t(0,0).sub($)),new bt($.lo,$.hi))}bt.fromString=Ft;function Re(){this.c=[],this.b=0,this.a=new at,this.h=[]}h("jspb.BinaryWriter",Re,void 0);function It($,R){var J=$.a.end();$.c.push(J),$.c.push(R),$.b+=J.length+R.length}function tt($,R){return Pt($,R,2),R=$.a.end(),$.c.push(R),$.b+=R.length,R.push($.b),R}function Ot($,R){var J=R.pop();for(J=$.b+$.a.length()-J,x(0<=J);127>>=7,$.b++;R.push(J),$.b++}Re.prototype.pb=function($,R,J){It(this,$.subarray(R,J))},Re.prototype.writeSerializedMessage=Re.prototype.pb,Re.prototype.Pb=function($,R,J){$!=null&&R!=null&&J!=null&&this.pb($,R,J)},Re.prototype.maybeWriteSerializedMessage=Re.prototype.Pb,Re.prototype.reset=function(){this.c=[],this.a.end(),this.b=0,this.h=[]},Re.prototype.reset=Re.prototype.reset,Re.prototype.ab=function(){x(this.h.length==0);for(var $=new Uint8Array(this.b+this.a.length()),R=this.c,J=R.length,Ee=0,ke=0;keR),Pn(this,$,R))},Re.prototype.writeInt32=Re.prototype.S,Re.prototype.ob=function($,R){R!=null&&(R=parseInt(R,10),x(-2147483648<=R&&2147483648>R),Pn(this,$,R))},Re.prototype.writeInt32String=Re.prototype.ob,Re.prototype.T=function($,R){R!=null&&(x(-9223372036854776e3<=R&&9223372036854776e3>R),R!=null&&(Pt(this,$,0),this.a.ua(R)))},Re.prototype.writeInt64=Re.prototype.T,Re.prototype.ka=function($,R){R!=null&&(R=Ft(R),Pt(this,$,0),this.a.l(R.lo,R.hi))},Re.prototype.writeInt64String=Re.prototype.ka,Re.prototype.s=function($,R){R!=null&&(x(0<=R&&4294967296>R),pn(this,$,R))},Re.prototype.writeUint32=Re.prototype.s,Re.prototype.ub=function($,R){R!=null&&(R=parseInt(R,10),x(0<=R&&4294967296>R),pn(this,$,R))},Re.prototype.writeUint32String=Re.prototype.ub,Re.prototype.V=function($,R){R!=null&&(x(0<=R&&18446744073709552e3>R),R!=null&&(Pt(this,$,0),this.a.va(R)))},Re.prototype.writeUint64=Re.prototype.V,Re.prototype.vb=function($,R){R!=null&&(R=xt(R),Pt(this,$,0),this.a.l(R.lo,R.hi))},Re.prototype.writeUint64String=Re.prototype.vb,Re.prototype.rb=function($,R){R!=null&&(x(-2147483648<=R&&2147483648>R),R!=null&&(Pt(this,$,0),this.a.wa(R)))},Re.prototype.writeSint32=Re.prototype.rb,Re.prototype.sb=function($,R){R!=null&&(x(-9223372036854776e3<=R&&9223372036854776e3>R),R!=null&&(Pt(this,$,0),this.a.xa(R)))},Re.prototype.writeSint64=Re.prototype.sb,Re.prototype.$d=function($,R){R!=null&&R!=null&&(Pt(this,$,0),this.a.W(R))},Re.prototype.writeSintHash64=Re.prototype.$d,Re.prototype.Zd=function($,R){R!=null&&R!=null&&(Pt(this,$,0),this.a.Ta(R))},Re.prototype.writeSint64String=Re.prototype.Zd,Re.prototype.Pa=function($,R){R!=null&&(x(0<=R&&4294967296>R),Pt(this,$,5),this.a.s(R))},Re.prototype.writeFixed32=Re.prototype.Pa,Re.prototype.Qa=function($,R){R!=null&&(x(0<=R&&18446744073709552e3>R),Pt(this,$,1),this.a.V(R))},Re.prototype.writeFixed64=Re.prototype.Qa,Re.prototype.nb=function($,R){R!=null&&(R=xt(R),Pt(this,$,1),this.a.A(R.lo,R.hi))},Re.prototype.writeFixed64String=Re.prototype.nb,Re.prototype.Ra=function($,R){R!=null&&(x(-2147483648<=R&&2147483648>R),Pt(this,$,5),this.a.S(R))},Re.prototype.writeSfixed32=Re.prototype.Ra,Re.prototype.Sa=function($,R){R!=null&&(x(-9223372036854776e3<=R&&9223372036854776e3>R),Pt(this,$,1),this.a.T(R))},Re.prototype.writeSfixed64=Re.prototype.Sa,Re.prototype.qb=function($,R){R!=null&&(R=Ft(R),Pt(this,$,1),this.a.A(R.lo,R.hi))},Re.prototype.writeSfixed64String=Re.prototype.qb,Re.prototype.L=function($,R){R!=null&&(Pt(this,$,5),this.a.L(R))},Re.prototype.writeFloat=Re.prototype.L,Re.prototype.J=function($,R){R!=null&&(Pt(this,$,1),this.a.J(R))},Re.prototype.writeDouble=Re.prototype.J,Re.prototype.I=function($,R){R!=null&&(x(typeof R=="boolean"||typeof R=="number"),Pt(this,$,0),this.a.I(R))},Re.prototype.writeBool=Re.prototype.I,Re.prototype.R=function($,R){R!=null&&(x(-2147483648<=R&&2147483648>R),Pt(this,$,0),this.a.M(R))},Re.prototype.writeEnum=Re.prototype.R,Re.prototype.U=function($,R){R!=null&&($=tt(this,$),this.a.U(R),Ot(this,$))},Re.prototype.writeString=Re.prototype.U,Re.prototype.ja=function($,R){R!=null&&(R=Ce(R),Pt(this,$,2),this.a.j(R.length),It(this,R))},Re.prototype.writeBytes=Re.prototype.ja,Re.prototype.Rc=function($,R,J){R!=null&&($=tt(this,$),J(R,this),Ot(this,$))},Re.prototype.writeMessage=Re.prototype.Rc,Re.prototype.Sc=function($,R,J){R!=null&&(Pt(this,1,3),Pt(this,2,0),this.a.M($),$=tt(this,3),J(R,this),Ot(this,$),Pt(this,1,4))},Re.prototype.writeMessageSet=Re.prototype.Sc,Re.prototype.Oc=function($,R,J){R!=null&&(Pt(this,$,3),J(R,this),Pt(this,$,4))},Re.prototype.writeGroup=Re.prototype.Oc,Re.prototype.K=function($,R){R!=null&&(x(R.length==8),Pt(this,$,1),this.a.K(R))},Re.prototype.writeFixedHash64=Re.prototype.K,Re.prototype.N=function($,R){R!=null&&(x(R.length==8),Pt(this,$,0),this.a.N(R))},Re.prototype.writeVarintHash64=Re.prototype.N,Re.prototype.A=function($,R,J){Pt(this,$,1),this.a.A(R,J)},Re.prototype.writeSplitFixed64=Re.prototype.A,Re.prototype.l=function($,R,J){Pt(this,$,0),this.a.l(R,J)},Re.prototype.writeSplitVarint64=Re.prototype.l,Re.prototype.tb=function($,R,J){Pt(this,$,0);var Ee=this.a;pe(R,J,function(ke,Je){Ee.l(ke>>>0,Je>>>0)})},Re.prototype.writeSplitZigzagVarint64=Re.prototype.tb,Re.prototype.Ed=function($,R){if(R!=null)for(var J=0;J>>0,an>>>0)});Ot(this,$)}},Re.prototype.writePackedSplitZigzagVarint64=Re.prototype.od,Re.prototype.dd=function($,R){if(R!=null&&R.length){$=tt(this,$);for(var J=0;J0&&t.writeString(1,n),n=e.getNickname(),n.length>0&&t.writeString(2,n),n=e.getAvatar(),n.length>0&&t.writeString(3,n),n=e.getType(),n.length>0&&t.writeString(4,n),n=e.getExtra(),n.length>0&&t.writeString(5,n)};proto.User.prototype.getUid=function(){return vn.Message.getFieldWithDefault(this,1,"")};proto.User.prototype.setUid=function(e){return vn.Message.setProto3StringField(this,1,e)};proto.User.prototype.getNickname=function(){return vn.Message.getFieldWithDefault(this,2,"")};proto.User.prototype.setNickname=function(e){return vn.Message.setProto3StringField(this,2,e)};proto.User.prototype.getAvatar=function(){return vn.Message.getFieldWithDefault(this,3,"")};proto.User.prototype.setAvatar=function(e){return vn.Message.setProto3StringField(this,3,e)};proto.User.prototype.getType=function(){return vn.Message.getFieldWithDefault(this,4,"")};proto.User.prototype.setType=function(e){return vn.Message.setProto3StringField(this,4,e)};proto.User.prototype.getExtra=function(){return vn.Message.getFieldWithDefault(this,5,"")};proto.User.prototype.setExtra=function(e){return vn.Message.setProto3StringField(this,5,e)};const i9=proto;var T5=O5,i3=(function(){return this?this:typeof window<"u"?window:typeof i3<"u"?i3:typeof self<"u"?self:Function("return this")()}).call(null);T5.exportSymbol("proto.Thread",null,i3);proto.Thread=function(e){vn.Message.initialize(this,e,0,-1,null,null)};T5.inherits(proto.Thread,vn.Message);T5.DEBUG&&!COMPILED&&(proto.Thread.displayName="proto.Thread");vn.Message.GENERATE_TO_OBJECT&&(proto.Thread.prototype.toObject=function(e){return proto.Thread.toObject(e,this)},proto.Thread.toObject=function(e,t){var n,r={uid:vn.Message.getFieldWithDefault(t,1,""),topic:vn.Message.getFieldWithDefault(t,2,""),type:vn.Message.getFieldWithDefault(t,3,""),state:vn.Message.getFieldWithDefault(t,4,""),user:(n=t.getUser())&&proto.User.toObject(e,n),extra:vn.Message.getFieldWithDefault(t,6,"")};return e&&(r.$jspbMessageInstance=t),r});proto.Thread.deserializeBinary=function(e){var t=new vn.BinaryReader(e),n=new proto.Thread;return proto.Thread.deserializeBinaryFromReader(n,t)};proto.Thread.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){var n=t.getFieldNumber();switch(n){case 1:var r=t.readString();e.setUid(r);break;case 2:var r=t.readString();e.setTopic(r);break;case 3:var r=t.readString();e.setType(r);break;case 4:var r=t.readString();e.setState(r);break;case 5:var r=new proto.User;t.readMessage(r,proto.User.deserializeBinaryFromReader),e.setUser(r);break;case 6:var r=t.readString();e.setExtra(r);break;default:t.skipField();break}}return e};proto.Thread.prototype.serializeBinary=function(){var e=new vn.BinaryWriter;return proto.Thread.serializeBinaryToWriter(this,e),e.getResultBuffer()};proto.Thread.serializeBinaryToWriter=function(e,t){var n=void 0;n=e.getUid(),n.length>0&&t.writeString(1,n),n=e.getTopic(),n.length>0&&t.writeString(2,n),n=e.getType(),n.length>0&&t.writeString(3,n),n=e.getState(),n.length>0&&t.writeString(4,n),n=e.getUser(),n!=null&&t.writeMessage(5,n,proto.User.serializeBinaryToWriter),n=e.getExtra(),n.length>0&&t.writeString(6,n)};proto.Thread.prototype.getUid=function(){return vn.Message.getFieldWithDefault(this,1,"")};proto.Thread.prototype.setUid=function(e){return vn.Message.setProto3StringField(this,1,e)};proto.Thread.prototype.getTopic=function(){return vn.Message.getFieldWithDefault(this,2,"")};proto.Thread.prototype.setTopic=function(e){return vn.Message.setProto3StringField(this,2,e)};proto.Thread.prototype.getType=function(){return vn.Message.getFieldWithDefault(this,3,"")};proto.Thread.prototype.setType=function(e){return vn.Message.setProto3StringField(this,3,e)};proto.Thread.prototype.getState=function(){return vn.Message.getFieldWithDefault(this,4,"")};proto.Thread.prototype.setState=function(e){return vn.Message.setProto3StringField(this,4,e)};proto.Thread.prototype.getUser=function(){return vn.Message.getWrapperField(this,proto.User,5)};proto.Thread.prototype.setUser=function(e){return vn.Message.setWrapperField(this,5,e)};proto.Thread.prototype.clearUser=function(){return this.setUser(void 0)};proto.Thread.prototype.hasUser=function(){return vn.Message.getField(this,5)!=null};proto.Thread.prototype.getExtra=function(){return vn.Message.getFieldWithDefault(this,6,"")};proto.Thread.prototype.setExtra=function(e){return vn.Message.setProto3StringField(this,6,e)};const GCe=proto;var R5=O5,a3=(function(){return this?this:typeof window<"u"?window:typeof a3<"u"?a3:typeof self<"u"?self:Function("return this")()}).call(null);R5.exportSymbol("proto.Message",null,a3);proto.Message=function(e){vn.Message.initialize(this,e,0,-1,null,null)};R5.inherits(proto.Message,vn.Message);R5.DEBUG&&!COMPILED&&(proto.Message.displayName="proto.Message");vn.Message.GENERATE_TO_OBJECT&&(proto.Message.prototype.toObject=function(e){return proto.Message.toObject(e,this)},proto.Message.toObject=function(e,t){var n,r={uid:vn.Message.getFieldWithDefault(t,1,""),type:vn.Message.getFieldWithDefault(t,2,""),content:vn.Message.getFieldWithDefault(t,3,""),status:vn.Message.getFieldWithDefault(t,4,""),createdat:vn.Message.getFieldWithDefault(t,5,""),client:vn.Message.getFieldWithDefault(t,6,""),thread:(n=t.getThread())&&proto.Thread.toObject(e,n),user:(n=t.getUser())&&proto.User.toObject(e,n),extra:vn.Message.getFieldWithDefault(t,9,"")};return e&&(r.$jspbMessageInstance=t),r});proto.Message.deserializeBinary=function(e){var t=new vn.BinaryReader(e),n=new proto.Message;return proto.Message.deserializeBinaryFromReader(n,t)};proto.Message.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){var n=t.getFieldNumber();switch(n){case 1:var r=t.readString();e.setUid(r);break;case 2:var r=t.readString();e.setType(r);break;case 3:var r=t.readString();e.setContent(r);break;case 4:var r=t.readString();e.setStatus(r);break;case 5:var r=t.readString();e.setCreatedat(r);break;case 6:var r=t.readString();e.setClient(r);break;case 7:var r=new proto.Thread;t.readMessage(r,proto.Thread.deserializeBinaryFromReader),e.setThread(r);break;case 8:var r=new proto.User;t.readMessage(r,proto.User.deserializeBinaryFromReader),e.setUser(r);break;case 9:var r=t.readString();e.setExtra(r);break;default:t.skipField();break}}return e};proto.Message.prototype.serializeBinary=function(){var e=new vn.BinaryWriter;return proto.Message.serializeBinaryToWriter(this,e),e.getResultBuffer()};proto.Message.serializeBinaryToWriter=function(e,t){var n=void 0;n=e.getUid(),n.length>0&&t.writeString(1,n),n=e.getType(),n.length>0&&t.writeString(2,n),n=e.getContent(),n.length>0&&t.writeString(3,n),n=e.getStatus(),n.length>0&&t.writeString(4,n),n=e.getCreatedat(),n.length>0&&t.writeString(5,n),n=e.getClient(),n.length>0&&t.writeString(6,n),n=e.getThread(),n!=null&&t.writeMessage(7,n,proto.Thread.serializeBinaryToWriter),n=e.getUser(),n!=null&&t.writeMessage(8,n,proto.User.serializeBinaryToWriter),n=e.getExtra(),n.length>0&&t.writeString(9,n)};proto.Message.prototype.getUid=function(){return vn.Message.getFieldWithDefault(this,1,"")};proto.Message.prototype.setUid=function(e){return vn.Message.setProto3StringField(this,1,e)};proto.Message.prototype.getType=function(){return vn.Message.getFieldWithDefault(this,2,"")};proto.Message.prototype.setType=function(e){return vn.Message.setProto3StringField(this,2,e)};proto.Message.prototype.getContent=function(){return vn.Message.getFieldWithDefault(this,3,"")};proto.Message.prototype.setContent=function(e){return vn.Message.setProto3StringField(this,3,e)};proto.Message.prototype.getStatus=function(){return vn.Message.getFieldWithDefault(this,4,"")};proto.Message.prototype.setStatus=function(e){return vn.Message.setProto3StringField(this,4,e)};proto.Message.prototype.getCreatedat=function(){return vn.Message.getFieldWithDefault(this,5,"")};proto.Message.prototype.setCreatedat=function(e){return vn.Message.setProto3StringField(this,5,e)};proto.Message.prototype.getClient=function(){return vn.Message.getFieldWithDefault(this,6,"")};proto.Message.prototype.setClient=function(e){return vn.Message.setProto3StringField(this,6,e)};proto.Message.prototype.getThread=function(){return vn.Message.getWrapperField(this,proto.Thread,7)};proto.Message.prototype.setThread=function(e){return vn.Message.setWrapperField(this,7,e)};proto.Message.prototype.clearThread=function(){return this.setThread(void 0)};proto.Message.prototype.hasThread=function(){return vn.Message.getField(this,7)!=null};proto.Message.prototype.getUser=function(){return vn.Message.getWrapperField(this,proto.User,8)};proto.Message.prototype.setUser=function(e){return vn.Message.setWrapperField(this,8,e)};proto.Message.prototype.clearUser=function(){return this.setUser(void 0)};proto.Message.prototype.hasUser=function(){return vn.Message.getField(this,8)!=null};proto.Message.prototype.getExtra=function(){return vn.Message.getFieldWithDefault(this,9,"")};proto.Message.prototype.setExtra=function(e){return vn.Message.setProto3StringField(this,9,e)};const tee=proto,YCe="modulepreload",XCe=function(e){return"/kanban/"+e},a9={},QCe=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),s=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));o=Promise.allSettled(n.map(l=>{if(l=XCe(l),l in a9)return;a9[l]=!0;const c=l.endsWith(".css"),u=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${u}`))return;const f=document.createElement("link");if(f.rel=c?"stylesheet":YCe,c||(f.as="script"),f.crossOrigin="",f.href=l,s&&f.setAttribute("nonce",s),document.head.appendChild(f),c)return new Promise((h,p)=>{f.addEventListener("load",h),f.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${l}`)))})}))}function i(a){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=a,window.dispatchEvent(s),!s.defaultPrevented)throw a}return o.then(a=>{for(const s of a||[])s.status==="rejected"&&i(s.reason);return t().catch(i)})};//! moment.js //! version : 2.30.1 //! authors : Tim Wood, Iskren Chernev, Moment.js contributors //! license : MIT //! momentjs.com var nee;function yn(){return nee.apply(null,arguments)}function JCe(e){nee=e}function Zl(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function Vh(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function Rr(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function I5(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(Rr(e,t))return!1;return!0}function ka(e){return e===void 0}function Zu(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function N1(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function ree(e,t){var n=[],r,o=e.length;for(r=0;r>>0,r;for(r=0;r0)for(n=0;n=0;return(i?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}var D5=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,PC=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,dT={},eg={};function Wn(e,t,n,r){var o=r;typeof r=="string"&&(o=function(){return this[r]()}),e&&(eg[e]=o),t&&(eg[t[0]]=function(){return qc(o.apply(this,arguments),t[1],t[2])}),n&&(eg[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function rwe(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function owe(e){var t=e.match(D5),n,r;for(n=0,r=t.length;n=0&&PC.test(e);)e=e.replace(PC,r),PC.lastIndex=0,n-=1;return e}var iwe={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function awe(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(D5).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var swe="Invalid date";function lwe(){return this._invalidDate}var cwe="%d",uwe=/\d{1,2}/;function dwe(e){return this._ordinal.replace("%d",e)}var fwe={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function hwe(e,t,n,r){var o=this._relativeTime[n];return tu(o)?o(e,t,n,r):o.replace(/%d/i,e)}function pwe(e,t){var n=this._relativeTime[e>0?"future":"past"];return tu(n)?n(t):n.replace(/%s/i,t)}var c9={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function ml(e){return typeof e=="string"?c9[e]||c9[e.toLowerCase()]:void 0}function j5(e){var t={},n,r;for(r in e)Rr(e,r)&&(n=ml(r),n&&(t[n]=e[r]));return t}var mwe={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function gwe(e){var t=[],n;for(n in e)Rr(e,n)&&t.push({unit:n,priority:mwe[n]});return t.sort(function(r,o){return r.priority-o.priority}),t}var see=/\d/,Is=/\d\d/,lee=/\d{3}/,F5=/\d{4}/,L_=/[+-]?\d{6}/,go=/\d\d?/,cee=/\d\d\d\d?/,uee=/\d\d\d\d\d\d?/,B_=/\d{1,3}/,L5=/\d{1,4}/,z_=/[+-]?\d{1,6}/,Cv=/\d+/,H_=/[+-]?\d+/,vwe=/Z|[+-]\d\d:?\d\d/gi,U_=/Z|[+-]\d\d(?::?\d\d)?/gi,ywe=/[+-]?\d+(\.\d{1,3})?/,D1=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,wv=/^[1-9]\d?/,B5=/^([1-9]\d|\d)/,p2;p2={};function $n(e,t,n){p2[e]=tu(t)?t:function(r,o){return r&&n?n:t}}function bwe(e,t){return Rr(p2,e)?p2[e](t._strict,t._locale):new RegExp(Swe(e))}function Swe(e){return Bu(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,o,i){return n||r||o||i}))}function Bu(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Xs(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function gr(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=Xs(t)),n}var u3={};function Gr(e,t){var n,r=t,o;for(typeof e=="string"&&(e=[e]),Zu(t)&&(r=function(i,a){a[t]=gr(i)}),o=e.length,n=0;n68?1900:2e3)};var dee=xv("FullYear",!0);function Ewe(){return W_(this.year())}function xv(e,t){return function(n){return n!=null?(fee(this,e,n),yn.updateOffset(this,t),this):Mb(this,e)}}function Mb(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function fee(e,t,n){var r,o,i,a,s;if(!(!e.isValid()||isNaN(n))){switch(r=e._d,o=e._isUTC,t){case"Milliseconds":return void(o?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(o?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(o?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(o?r.setUTCHours(n):r.setHours(n));case"Date":return void(o?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}i=n,a=e.month(),s=e.date(),s=s===29&&a===1&&!W_(i)?28:s,o?r.setUTCFullYear(i,a,s):r.setFullYear(i,a,s)}}function _we(e){return e=ml(e),tu(this[e])?this[e]():this}function $we(e,t){if(typeof e=="object"){e=j5(e);var n=gwe(e),r,o=n.length;for(r=0;r=0?(s=new Date(e+400,t,n,r,o,i,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,o,i,a),s}function Tb(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function m2(e,t,n){var r=7+t-n,o=(7+Tb(e,0,r).getUTCDay()-t)%7;return-o+r-1}function yee(e,t,n,r,o){var i=(7+n-r)%7,a=m2(e,r,o),s=1+7*(t-1)+i+a,l,c;return s<=0?(l=e-1,c=Ay(l)+s):s>Ay(e)?(l=e+1,c=s-Ay(e)):(l=e,c=s),{year:l,dayOfYear:c}}function Rb(e,t,n){var r=m2(e.year(),t,n),o=Math.floor((e.dayOfYear()-r-1)/7)+1,i,a;return o<1?(a=e.year()-1,i=o+zu(a,t,n)):o>zu(e.year(),t,n)?(i=o-zu(e.year(),t,n),a=e.year()+1):(a=e.year(),i=o),{week:i,year:a}}function zu(e,t,n){var r=m2(e,t,n),o=m2(e+1,t,n);return(Ay(e)-r+o)/7}Wn("w",["ww",2],"wo","week");Wn("W",["WW",2],"Wo","isoWeek");$n("w",go,wv);$n("ww",go,Is);$n("W",go,wv);$n("WW",go,Is);j1(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=gr(e)});function Lwe(e){return Rb(e,this._week.dow,this._week.doy).week}var Bwe={dow:0,doy:6};function zwe(){return this._week.dow}function Hwe(){return this._week.doy}function Uwe(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function Wwe(e){var t=Rb(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}Wn("d",0,"do","day");Wn("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});Wn("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});Wn("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});Wn("e",0,0,"weekday");Wn("E",0,0,"isoWeekday");$n("d",go);$n("e",go);$n("E",go);$n("dd",function(e,t){return t.weekdaysMinRegex(e)});$n("ddd",function(e,t){return t.weekdaysShortRegex(e)});$n("dddd",function(e,t){return t.weekdaysRegex(e)});j1(["dd","ddd","dddd"],function(e,t,n,r){var o=n._locale.weekdaysParse(e,r,n._strict);o!=null?t.d=o:lr(n).invalidWeekday=e});j1(["d","e","E"],function(e,t,n,r){t[r]=gr(e)});function Vwe(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function Kwe(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function H5(e,t){return e.slice(t,7).concat(e.slice(0,t))}var qwe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),bee="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Gwe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ywe=D1,Xwe=D1,Qwe=D1;function Jwe(e,t){var n=Zl(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?H5(n,this._week.dow):e?n[e.day()]:n}function Zwe(e){return e===!0?H5(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function exe(e){return e===!0?H5(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function txe(e,t,n){var r,o,i,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=eu([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?t==="dddd"?(o=Go.call(this._weekdaysParse,a),o!==-1?o:null):t==="ddd"?(o=Go.call(this._shortWeekdaysParse,a),o!==-1?o:null):(o=Go.call(this._minWeekdaysParse,a),o!==-1?o:null):t==="dddd"?(o=Go.call(this._weekdaysParse,a),o!==-1||(o=Go.call(this._shortWeekdaysParse,a),o!==-1)?o:(o=Go.call(this._minWeekdaysParse,a),o!==-1?o:null)):t==="ddd"?(o=Go.call(this._shortWeekdaysParse,a),o!==-1||(o=Go.call(this._weekdaysParse,a),o!==-1)?o:(o=Go.call(this._minWeekdaysParse,a),o!==-1?o:null)):(o=Go.call(this._minWeekdaysParse,a),o!==-1||(o=Go.call(this._weekdaysParse,a),o!==-1)?o:(o=Go.call(this._shortWeekdaysParse,a),o!==-1?o:null))}function nxe(e,t,n){var r,o,i;if(this._weekdaysParseExact)return txe.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(o=eu([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(n&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(n&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function rxe(e){if(!this.isValid())return e!=null?this:NaN;var t=Mb(this,"Day");return e!=null?(e=Vwe(e,this.localeData()),this.add(e-t,"d")):t}function oxe(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function ixe(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=Kwe(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function axe(e){return this._weekdaysParseExact?(Rr(this,"_weekdaysRegex")||U5.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(Rr(this,"_weekdaysRegex")||(this._weekdaysRegex=Ywe),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function sxe(e){return this._weekdaysParseExact?(Rr(this,"_weekdaysRegex")||U5.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Rr(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Xwe),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function lxe(e){return this._weekdaysParseExact?(Rr(this,"_weekdaysRegex")||U5.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Rr(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Qwe),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function U5(){function e(u,f){return f.length-u.length}var t=[],n=[],r=[],o=[],i,a,s,l,c;for(i=0;i<7;i++)a=eu([2e3,1]).day(i),s=Bu(this.weekdaysMin(a,"")),l=Bu(this.weekdaysShort(a,"")),c=Bu(this.weekdays(a,"")),t.push(s),n.push(l),r.push(c),o.push(s),o.push(l),o.push(c);t.sort(e),n.sort(e),r.sort(e),o.sort(e),this._weekdaysRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function W5(){return this.hours()%12||12}function cxe(){return this.hours()||24}Wn("H",["HH",2],0,"hour");Wn("h",["hh",2],0,W5);Wn("k",["kk",2],0,cxe);Wn("hmm",0,0,function(){return""+W5.apply(this)+qc(this.minutes(),2)});Wn("hmmss",0,0,function(){return""+W5.apply(this)+qc(this.minutes(),2)+qc(this.seconds(),2)});Wn("Hmm",0,0,function(){return""+this.hours()+qc(this.minutes(),2)});Wn("Hmmss",0,0,function(){return""+this.hours()+qc(this.minutes(),2)+qc(this.seconds(),2)});function See(e,t){Wn(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}See("a",!0);See("A",!1);function Cee(e,t){return t._meridiemParse}$n("a",Cee);$n("A",Cee);$n("H",go,B5);$n("h",go,wv);$n("k",go,wv);$n("HH",go,Is);$n("hh",go,Is);$n("kk",go,Is);$n("hmm",cee);$n("hmmss",uee);$n("Hmm",cee);$n("Hmmss",uee);Gr(["H","HH"],pi);Gr(["k","kk"],function(e,t,n){var r=gr(e);t[pi]=r===24?0:r});Gr(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});Gr(["h","hh"],function(e,t,n){t[pi]=gr(e),lr(n).bigHour=!0});Gr("hmm",function(e,t,n){var r=e.length-2;t[pi]=gr(e.substr(0,r)),t[Fl]=gr(e.substr(r)),lr(n).bigHour=!0});Gr("hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[pi]=gr(e.substr(0,r)),t[Fl]=gr(e.substr(r,2)),t[ju]=gr(e.substr(o)),lr(n).bigHour=!0});Gr("Hmm",function(e,t,n){var r=e.length-2;t[pi]=gr(e.substr(0,r)),t[Fl]=gr(e.substr(r))});Gr("Hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[pi]=gr(e.substr(0,r)),t[Fl]=gr(e.substr(r,2)),t[ju]=gr(e.substr(o))});function uxe(e){return(e+"").toLowerCase().charAt(0)==="p"}var dxe=/[ap]\.?m?\.?/i,fxe=xv("Hours",!0);function hxe(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var wee={calendar:twe,longDateFormat:iwe,invalidDate:swe,ordinal:cwe,dayOfMonthOrdinalParse:uwe,relativeTime:fwe,months:Owe,monthsShort:hee,week:Bwe,weekdays:qwe,weekdaysMin:Gwe,weekdaysShort:bee,meridiemParse:dxe},bo={},T0={},Ib;function pxe(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n0;){if(o=V_(i.slice(0,n).join("-")),o)return o;if(r&&r.length>=n&&pxe(i,r)>=n-1)break;n--}t++}return Ib}function gxe(e){return!!(e&&e.match("^[^/\\\\]*$"))}function V_(e){var t=null,n;if(bo[e]===void 0&&typeof module<"u"&&module&&module.exports&&gxe(e))try{t=Ib._abbr,n=require,n("./locale/"+e),mf(t)}catch{bo[e]=null}return bo[e]}function mf(e,t){var n;return e&&(ka(t)?n=dd(e):n=V5(e,t),n?Ib=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Ib._abbr}function V5(e,t){if(t!==null){var n,r=wee;if(t.abbr=e,bo[e]!=null)iee("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=bo[e]._config;else if(t.parentLocale!=null)if(bo[t.parentLocale]!=null)r=bo[t.parentLocale]._config;else if(n=V_(t.parentLocale),n!=null)r=n._config;else return T0[t.parentLocale]||(T0[t.parentLocale]=[]),T0[t.parentLocale].push({name:e,config:t}),null;return bo[e]=new A5(l3(r,t)),T0[e]&&T0[e].forEach(function(o){V5(o.name,o.config)}),mf(e),bo[e]}else return delete bo[e],null}function vxe(e,t){if(t!=null){var n,r,o=wee;bo[e]!=null&&bo[e].parentLocale!=null?bo[e].set(l3(bo[e]._config,t)):(r=V_(e),r!=null&&(o=r._config),t=l3(o,t),r==null&&(t.abbr=e),n=new A5(t),n.parentLocale=bo[e],bo[e]=n),mf(e)}else bo[e]!=null&&(bo[e].parentLocale!=null?(bo[e]=bo[e].parentLocale,e===mf()&&mf(e)):bo[e]!=null&&delete bo[e]);return bo[e]}function dd(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ib;if(!Zl(e)){if(t=V_(e),t)return t;e=[e]}return mxe(e)}function yxe(){return c3(bo)}function K5(e){var t,n=e._a;return n&&lr(e).overflow===-2&&(t=n[Du]<0||n[Du]>11?Du:n[kc]<1||n[kc]>z5(n[na],n[Du])?kc:n[pi]<0||n[pi]>24||n[pi]===24&&(n[Fl]!==0||n[ju]!==0||n[$h]!==0)?pi:n[Fl]<0||n[Fl]>59?Fl:n[ju]<0||n[ju]>59?ju:n[$h]<0||n[$h]>999?$h:-1,lr(e)._overflowDayOfYear&&(tkc)&&(t=kc),lr(e)._overflowWeeks&&t===-1&&(t=wwe),lr(e)._overflowWeekday&&t===-1&&(t=xwe),lr(e).overflow=t),e}var bxe=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Sxe=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Cxe=/Z|[+-]\d\d(?::?\d\d)?/,OC=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],fT=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],wxe=/^\/?Date\((-?\d+)/i,xxe=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Exe={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function xee(e){var t,n,r=e._i,o=bxe.exec(r)||Sxe.exec(r),i,a,s,l,c=OC.length,u=fT.length;if(o){for(lr(e).iso=!0,t=0,n=c;tAy(a)||e._dayOfYear===0)&&(lr(e)._overflowDayOfYear=!0),n=Tb(a,0,e._dayOfYear),e._a[Du]=n.getUTCMonth(),e._a[kc]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=o[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[pi]===24&&e._a[Fl]===0&&e._a[ju]===0&&e._a[$h]===0&&(e._nextDay=!0,e._a[pi]=0),e._d=(e._useUTC?Tb:Fwe).apply(null,r),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[pi]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==i&&(lr(e).weekdayMismatch=!0)}}function Ixe(e){var t,n,r,o,i,a,s,l,c;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(i=1,a=4,n=$m(t.GG,e._a[na],Rb(mo(),1,4).year),r=$m(t.W,1),o=$m(t.E,1),(o<1||o>7)&&(l=!0)):(i=e._locale._week.dow,a=e._locale._week.doy,c=Rb(mo(),i,a),n=$m(t.gg,e._a[na],c.year),r=$m(t.w,c.week),t.d!=null?(o=t.d,(o<0||o>6)&&(l=!0)):t.e!=null?(o=t.e+i,(t.e<0||t.e>6)&&(l=!0)):o=i),r<1||r>zu(n,i,a)?lr(e)._overflowWeeks=!0:l!=null?lr(e)._overflowWeekday=!0:(s=yee(n,r,o,i,a),e._a[na]=s.year,e._dayOfYear=s.dayOfYear)}yn.ISO_8601=function(){};yn.RFC_2822=function(){};function G5(e){if(e._f===yn.ISO_8601){xee(e);return}if(e._f===yn.RFC_2822){Eee(e);return}e._a=[],lr(e).empty=!0;var t=""+e._i,n,r,o,i,a,s=t.length,l=0,c,u;for(o=aee(e._f,e._locale).match(D5)||[],u=o.length,n=0;n0&&lr(e).unusedInput.push(a),t=t.slice(t.indexOf(r)+r.length),l+=r.length),eg[i]?(r?lr(e).empty=!1:lr(e).unusedTokens.push(i),Cwe(i,r,e)):e._strict&&!r&&lr(e).unusedTokens.push(i);lr(e).charsLeftOver=s-l,t.length>0&&lr(e).unusedInput.push(t),e._a[pi]<=12&&lr(e).bigHour===!0&&e._a[pi]>0&&(lr(e).bigHour=void 0),lr(e).parsedDateParts=e._a.slice(0),lr(e).meridiem=e._meridiem,e._a[pi]=kxe(e._locale,e._a[pi],e._meridiem),c=lr(e).era,c!==null&&(e._a[na]=e._locale.erasConvertYear(c,e._a[na])),q5(e),K5(e)}function kxe(e,t,n){var r;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(r=e.isPM(n),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function Nxe(e){var t,n,r,o,i,a,s=!1,l=e._f.length;if(l===0){lr(e).invalidFormat=!0,e._d=new Date(NaN);return}for(o=0;othis?this:e:F_()});function Pee(e,t){var n,r;if(t.length===1&&Zl(t[0])&&(t=t[0]),!t.length)return mo();for(n=t[0],r=1;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function t2e(){if(!ka(this._isDSTShifted))return this._isDSTShifted;var e={},t;return N5(e,this),e=_ee(e),e._a?(t=e._isUTC?eu(e._a):mo(e._a),this._isDSTShifted=this.isValid()&&Kxe(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function n2e(){return this.isValid()?!this._isUTC:!1}function r2e(){return this.isValid()?this._isUTC:!1}function Mee(){return this.isValid()?this._isUTC&&this._offset===0:!1}var o2e=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,i2e=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function pc(e,t){var n=e,r=null,o,i,a;return Vw(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:Zu(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=o2e.exec(e))?(o=r[1]==="-"?-1:1,n={y:0,d:gr(r[kc])*o,h:gr(r[pi])*o,m:gr(r[Fl])*o,s:gr(r[ju])*o,ms:gr(d3(r[$h]*1e3))*o}):(r=i2e.exec(e))?(o=r[1]==="-"?-1:1,n={y:nh(r[2],o),M:nh(r[3],o),w:nh(r[4],o),d:nh(r[5],o),h:nh(r[6],o),m:nh(r[7],o),s:nh(r[8],o)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(a=a2e(mo(n.from),mo(n.to)),n={},n.ms=a.milliseconds,n.M=a.months),i=new K_(n),Vw(e)&&Rr(e,"_locale")&&(i._locale=e._locale),Vw(e)&&Rr(e,"_isValid")&&(i._isValid=e._isValid),i}pc.fn=K_.prototype;pc.invalid=Vxe;function nh(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function d9(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function a2e(e,t){var n;return e.isValid()&&t.isValid()?(t=X5(t,e),e.isBefore(t)?n=d9(e,t):(n=d9(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Tee(e,t){return function(n,r){var o,i;return r!==null&&!isNaN(+r)&&(iee(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),o=pc(n,r),Ree(this,o,e),this}}function Ree(e,t,n,r){var o=t._milliseconds,i=d3(t._days),a=d3(t._months);e.isValid()&&(r=r??!0,a&&mee(e,Mb(e,"Month")+a*n),i&&fee(e,"Date",Mb(e,"Date")+i*n),o&&e._d.setTime(e._d.valueOf()+o*n),r&&yn.updateOffset(e,i||a))}var s2e=Tee(1,"add"),l2e=Tee(-1,"subtract");function Iee(e){return typeof e=="string"||e instanceof String}function c2e(e){return ec(e)||N1(e)||Iee(e)||Zu(e)||d2e(e)||u2e(e)||e===null||e===void 0}function u2e(e){var t=Vh(e)&&!I5(e),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],o,i,a=r.length;for(o=0;on.valueOf():n.valueOf()9999?Ww(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):tu(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Ww(n,"Z")):Ww(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function _2e(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,o,i;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",o="-MM-DD[T]HH:mm:ss.SSS",i=t+'[")]',this.format(n+r+o+i)}function $2e(e){e||(e=this.isUtc()?yn.defaultFormatUtc:yn.defaultFormat);var t=Ww(this,e);return this.localeData().postformat(t)}function P2e(e,t){return this.isValid()&&(ec(e)&&e.isValid()||mo(e).isValid())?pc({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function O2e(e){return this.from(mo(),e)}function M2e(e,t){return this.isValid()&&(ec(e)&&e.isValid()||mo(e).isValid())?pc({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function T2e(e){return this.to(mo(),e)}function kee(e){var t;return e===void 0?this._locale._abbr:(t=dd(e),t!=null&&(this._locale=t),this)}var Nee=pl("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function Aee(){return this._locale}var g2=1e3,tg=60*g2,v2=60*tg,Dee=(365*400+97)*24*v2;function ng(e,t){return(e%t+t)%t}function jee(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-Dee:new Date(e,t,n).valueOf()}function Fee(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-Dee:Date.UTC(e,t,n)}function R2e(e){var t,n;if(e=ml(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?Fee:jee,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=ng(t+(this._isUTC?0:this.utcOffset()*tg),v2);break;case"minute":t=this._d.valueOf(),t-=ng(t,tg);break;case"second":t=this._d.valueOf(),t-=ng(t,g2);break}return this._d.setTime(t),yn.updateOffset(this,!0),this}function I2e(e){var t,n;if(e=ml(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?Fee:jee,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=v2-ng(t+(this._isUTC?0:this.utcOffset()*tg),v2)-1;break;case"minute":t=this._d.valueOf(),t+=tg-ng(t,tg)-1;break;case"second":t=this._d.valueOf(),t+=g2-ng(t,g2)-1;break}return this._d.setTime(t),yn.updateOffset(this,!0),this}function k2e(){return this._d.valueOf()-(this._offset||0)*6e4}function N2e(){return Math.floor(this.valueOf()/1e3)}function A2e(){return new Date(this.valueOf())}function D2e(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function j2e(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function F2e(){return this.isValid()?this.toISOString():null}function L2e(){return k5(this)}function B2e(){return Qd({},lr(this))}function z2e(){return lr(this).overflow}function H2e(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Wn("N",0,0,"eraAbbr");Wn("NN",0,0,"eraAbbr");Wn("NNN",0,0,"eraAbbr");Wn("NNNN",0,0,"eraName");Wn("NNNNN",0,0,"eraNarrow");Wn("y",["y",1],"yo","eraYear");Wn("y",["yy",2],0,"eraYear");Wn("y",["yyy",3],0,"eraYear");Wn("y",["yyyy",4],0,"eraYear");$n("N",Q5);$n("NN",Q5);$n("NNN",Q5);$n("NNNN",Z2e);$n("NNNNN",eEe);Gr(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var o=n._locale.erasParse(e,r,n._strict);o?lr(n).era=o:lr(n).invalidEra=e});$n("y",Cv);$n("yy",Cv);$n("yyy",Cv);$n("yyyy",Cv);$n("yo",tEe);Gr(["y","yy","yyy","yyyy"],na);Gr(["yo"],function(e,t,n,r){var o;n._locale._eraYearOrdinalRegex&&(o=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[na]=n._locale.eraYearOrdinalParse(e,o):t[na]=parseInt(e,10)});function U2e(e,t){var n,r,o,i=this._eras||dd("en")._eras;for(n=0,r=i.length;n=0)return i[r]}function V2e(e,t){var n=e.since<=e.until?1:-1;return t===void 0?yn(e.since).year():yn(e.since).year()+(t-e.offset)*n}function K2e(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;ei&&(t=i),lEe.call(this,e,t,n,r,o))}function lEe(e,t,n,r,o){var i=yee(e,t,n,r,o),a=Tb(i.year,0,i.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}Wn("Q",0,"Qo","quarter");$n("Q",see);Gr("Q",function(e,t){t[Du]=(gr(e)-1)*3});function cEe(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}Wn("D",["DD",2],"Do","date");$n("D",go,wv);$n("DD",go,Is);$n("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});Gr(["D","DD"],kc);Gr("Do",function(e,t){t[kc]=gr(e.match(go)[0])});var Bee=xv("Date",!0);Wn("DDD",["DDDD",3],"DDDo","dayOfYear");$n("DDD",B_);$n("DDDD",lee);Gr(["DDD","DDDD"],function(e,t,n){n._dayOfYear=gr(e)});function uEe(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}Wn("m",["mm",2],0,"minute");$n("m",go,B5);$n("mm",go,Is);Gr(["m","mm"],Fl);var dEe=xv("Minutes",!1);Wn("s",["ss",2],0,"second");$n("s",go,B5);$n("ss",go,Is);Gr(["s","ss"],ju);var fEe=xv("Seconds",!1);Wn("S",0,0,function(){return~~(this.millisecond()/100)});Wn(0,["SS",2],0,function(){return~~(this.millisecond()/10)});Wn(0,["SSS",3],0,"millisecond");Wn(0,["SSSS",4],0,function(){return this.millisecond()*10});Wn(0,["SSSSS",5],0,function(){return this.millisecond()*100});Wn(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});Wn(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});Wn(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});Wn(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});$n("S",B_,see);$n("SS",B_,Is);$n("SSS",B_,lee);var Jd,zee;for(Jd="SSSS";Jd.length<=9;Jd+="S")$n(Jd,Cv);function hEe(e,t){t[$h]=gr(("0."+e)*1e3)}for(Jd="S";Jd.length<=9;Jd+="S")Gr(Jd,hEe);zee=xv("Milliseconds",!1);Wn("z",0,0,"zoneAbbr");Wn("zz",0,0,"zoneName");function pEe(){return this._isUTC?"UTC":""}function mEe(){return this._isUTC?"Coordinated Universal Time":""}var on=A1.prototype;on.add=s2e;on.calendar=p2e;on.clone=m2e;on.diff=w2e;on.endOf=I2e;on.format=$2e;on.from=P2e;on.fromNow=O2e;on.to=M2e;on.toNow=T2e;on.get=_we;on.invalidAt=z2e;on.isAfter=g2e;on.isBefore=v2e;on.isBetween=y2e;on.isSame=b2e;on.isSameOrAfter=S2e;on.isSameOrBefore=C2e;on.isValid=L2e;on.lang=Nee;on.locale=kee;on.localeData=Aee;on.max=Lxe;on.min=Fxe;on.parsingFlags=B2e;on.set=$we;on.startOf=R2e;on.subtract=l2e;on.toArray=D2e;on.toObject=j2e;on.toDate=A2e;on.toISOString=E2e;on.inspect=_2e;typeof Symbol<"u"&&Symbol.for!=null&&(on[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});on.toJSON=F2e;on.toString=x2e;on.unix=N2e;on.valueOf=k2e;on.creationData=H2e;on.eraName=K2e;on.eraNarrow=q2e;on.eraAbbr=G2e;on.eraYear=Y2e;on.year=dee;on.isLeapYear=Ewe;on.weekYear=nEe;on.isoWeekYear=rEe;on.quarter=on.quarters=cEe;on.month=gee;on.daysInMonth=Awe;on.week=on.weeks=Uwe;on.isoWeek=on.isoWeeks=Wwe;on.weeksInYear=aEe;on.weeksInWeekYear=sEe;on.isoWeeksInYear=oEe;on.isoWeeksInISOWeekYear=iEe;on.date=Bee;on.day=on.days=rxe;on.weekday=oxe;on.isoWeekday=ixe;on.dayOfYear=uEe;on.hour=on.hours=fxe;on.minute=on.minutes=dEe;on.second=on.seconds=fEe;on.millisecond=on.milliseconds=zee;on.utcOffset=Gxe;on.utc=Xxe;on.local=Qxe;on.parseZone=Jxe;on.hasAlignedHourOffset=Zxe;on.isDST=e2e;on.isLocal=n2e;on.isUtcOffset=r2e;on.isUtc=Mee;on.isUTC=Mee;on.zoneAbbr=pEe;on.zoneName=mEe;on.dates=pl("dates accessor is deprecated. Use date instead.",Bee);on.months=pl("months accessor is deprecated. Use month instead",gee);on.years=pl("years accessor is deprecated. Use year instead",dee);on.zone=pl("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Yxe);on.isDSTShifted=pl("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",t2e);function gEe(e){return mo(e*1e3)}function vEe(){return mo.apply(null,arguments).parseZone()}function Hee(e){return e}var Ir=A5.prototype;Ir.calendar=nwe;Ir.longDateFormat=awe;Ir.invalidDate=lwe;Ir.ordinal=dwe;Ir.preparse=Hee;Ir.postformat=Hee;Ir.relativeTime=hwe;Ir.pastFuture=pwe;Ir.set=ewe;Ir.eras=U2e;Ir.erasParse=W2e;Ir.erasConvertYear=V2e;Ir.erasAbbrRegex=Q2e;Ir.erasNameRegex=X2e;Ir.erasNarrowRegex=J2e;Ir.months=Rwe;Ir.monthsShort=Iwe;Ir.monthsParse=Nwe;Ir.monthsRegex=jwe;Ir.monthsShortRegex=Dwe;Ir.week=Lwe;Ir.firstDayOfYear=Hwe;Ir.firstDayOfWeek=zwe;Ir.weekdays=Jwe;Ir.weekdaysMin=exe;Ir.weekdaysShort=Zwe;Ir.weekdaysParse=nxe;Ir.weekdaysRegex=axe;Ir.weekdaysShortRegex=sxe;Ir.weekdaysMinRegex=lxe;Ir.isPM=uxe;Ir.meridiem=hxe;function y2(e,t,n,r){var o=dd(),i=eu().set(r,t);return o[n](i,e)}function Uee(e,t,n){if(Zu(e)&&(t=e,e=void 0),e=e||"",t!=null)return y2(e,t,n,"month");var r,o=[];for(r=0;r<12;r++)o[r]=y2(e,r,n,"month");return o}function Z5(e,t,n,r){typeof e=="boolean"?(Zu(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,Zu(t)&&(n=t,t=void 0),t=t||"");var o=dd(),i=e?o._week.dow:0,a,s=[];if(n!=null)return y2(t,(n+i)%7,r,"day");for(a=0;a<7;a++)s[a]=y2(t,(a+i)%7,r,"day");return s}function yEe(e,t){return Uee(e,t,"months")}function bEe(e,t){return Uee(e,t,"monthsShort")}function SEe(e,t,n){return Z5(e,t,n,"weekdays")}function CEe(e,t,n){return Z5(e,t,n,"weekdaysShort")}function wEe(e,t,n){return Z5(e,t,n,"weekdaysMin")}mf("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=gr(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}});yn.lang=pl("moment.lang is deprecated. Use moment.locale instead.",mf);yn.langData=pl("moment.langData is deprecated. Use moment.localeData instead.",dd);var mu=Math.abs;function xEe(){var e=this._data;return this._milliseconds=mu(this._milliseconds),this._days=mu(this._days),this._months=mu(this._months),e.milliseconds=mu(e.milliseconds),e.seconds=mu(e.seconds),e.minutes=mu(e.minutes),e.hours=mu(e.hours),e.months=mu(e.months),e.years=mu(e.years),this}function Wee(e,t,n,r){var o=pc(t,n);return e._milliseconds+=r*o._milliseconds,e._days+=r*o._days,e._months+=r*o._months,e._bubble()}function EEe(e,t){return Wee(this,e,t,1)}function _Ee(e,t){return Wee(this,e,t,-1)}function f9(e){return e<0?Math.floor(e):Math.ceil(e)}function $Ee(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,o,i,a,s,l;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=f9(h3(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,o=Xs(e/1e3),r.seconds=o%60,i=Xs(o/60),r.minutes=i%60,a=Xs(i/60),r.hours=a%24,t+=Xs(a/24),l=Xs(Vee(t)),n+=l,t-=f9(h3(l)),s=Xs(n/12),n%=12,r.days=t,r.months=n,r.years=s,this}function Vee(e){return e*4800/146097}function h3(e){return e*146097/4800}function PEe(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=ml(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+Vee(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(h3(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}function fd(e){return function(){return this.as(e)}}var Kee=fd("ms"),OEe=fd("s"),MEe=fd("m"),TEe=fd("h"),REe=fd("d"),IEe=fd("w"),kEe=fd("M"),NEe=fd("Q"),AEe=fd("y"),DEe=Kee;function jEe(){return pc(this)}function FEe(e){return e=ml(e),this.isValid()?this[e+"s"]():NaN}function Ap(e){return function(){return this.isValid()?this._data[e]:NaN}}var LEe=Ap("milliseconds"),BEe=Ap("seconds"),zEe=Ap("minutes"),HEe=Ap("hours"),UEe=Ap("days"),WEe=Ap("months"),VEe=Ap("years");function KEe(){return Xs(this.days()/7)}var Pu=Math.round,Hm={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function qEe(e,t,n,r,o){return o.relativeTime(t||1,!!n,e,r)}function GEe(e,t,n,r){var o=pc(e).abs(),i=Pu(o.as("s")),a=Pu(o.as("m")),s=Pu(o.as("h")),l=Pu(o.as("d")),c=Pu(o.as("M")),u=Pu(o.as("w")),f=Pu(o.as("y")),h=i<=n.ss&&["s",i]||i0,h[4]=r,qEe.apply(null,h)}function YEe(e){return e===void 0?Pu:typeof e=="function"?(Pu=e,!0):!1}function XEe(e,t){return Hm[e]===void 0?!1:t===void 0?Hm[e]:(Hm[e]=t,e==="s"&&(Hm.ss=t-1),!0)}function QEe(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=Hm,o,i;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},Hm,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),o=this.localeData(),i=GEe(this,!n,r,o),n&&(i=o.pastFuture(+this,i)),o.postformat(i)}var hT=Math.abs;function im(e){return(e>0)-(e<0)||+e}function G_(){if(!this.isValid())return this.localeData().invalidDate();var e=hT(this._milliseconds)/1e3,t=hT(this._days),n=hT(this._months),r,o,i,a,s=this.asSeconds(),l,c,u,f;return s?(r=Xs(e/60),o=Xs(r/60),e%=60,r%=60,i=Xs(n/12),n%=12,a=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=s<0?"-":"",c=im(this._months)!==im(s)?"-":"",u=im(this._days)!==im(s)?"-":"",f=im(this._milliseconds)!==im(s)?"-":"",l+"P"+(i?c+i+"Y":"")+(n?c+n+"M":"")+(t?u+t+"D":"")+(o||r||e?"T":"")+(o?f+o+"H":"")+(r?f+r+"M":"")+(e?f+a+"S":"")):"P0D"}var _r=K_.prototype;_r.isValid=Wxe;_r.abs=xEe;_r.add=EEe;_r.subtract=_Ee;_r.as=PEe;_r.asMilliseconds=Kee;_r.asSeconds=OEe;_r.asMinutes=MEe;_r.asHours=TEe;_r.asDays=REe;_r.asWeeks=IEe;_r.asMonths=kEe;_r.asQuarters=NEe;_r.asYears=AEe;_r.valueOf=DEe;_r._bubble=$Ee;_r.clone=jEe;_r.get=FEe;_r.milliseconds=LEe;_r.seconds=BEe;_r.minutes=zEe;_r.hours=HEe;_r.days=UEe;_r.weeks=KEe;_r.months=WEe;_r.years=VEe;_r.humanize=QEe;_r.toISOString=G_;_r.toString=G_;_r.toJSON=G_;_r.locale=kee;_r.localeData=Aee;_r.toIsoString=pl("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",G_);_r.lang=Nee;Wn("X",0,0,"unix");Wn("x",0,0,"valueOf");$n("x",H_);$n("X",ywe);Gr("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});Gr("x",function(e,t,n){n._d=new Date(gr(e))});//! moment.js yn.version="2.30.1";JCe(mo);yn.fn=on;yn.min=Bxe;yn.max=zxe;yn.now=Hxe;yn.utc=eu;yn.unix=gEe;yn.months=yEe;yn.isDate=N1;yn.locale=mf;yn.invalid=F_;yn.duration=pc;yn.isMoment=ec;yn.weekdays=SEe;yn.parseZone=vEe;yn.localeData=dd;yn.isDuration=Vw;yn.monthsShort=bEe;yn.weekdaysMin=wEe;yn.defineLocale=V5;yn.updateLocale=vxe;yn.locales=yxe;yn.weekdaysShort=CEe;yn.normalizeUnits=ml;yn.relativeTimeRounding=YEe;yn.relativeTimeThreshold=XEe;yn.calendarFormat=h2e;yn.prototype=on;yn.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};let MC;const JEe=new Uint8Array(16);function ZEe(){if(!MC&&(MC=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!MC))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return MC(JEe)}const Ii=[];for(let e=0;e<256;++e)Ii.push((e+256).toString(16).slice(1));function e_e(e,t=0){return Ii[e[t+0]]+Ii[e[t+1]]+Ii[e[t+2]]+Ii[e[t+3]]+"-"+Ii[e[t+4]]+Ii[e[t+5]]+"-"+Ii[e[t+6]]+Ii[e[t+7]]+"-"+Ii[e[t+8]]+Ii[e[t+9]]+"-"+Ii[e[t+10]]+Ii[e[t+11]]+Ii[e[t+12]]+Ii[e[t+13]]+Ii[e[t+14]]+Ii[e[t+15]]}const t_e=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),h9={randomUUID:t_e};function n_e(e,t,n){if(h9.randomUUID&&!t&&!e)return h9.randomUUID();e=e||{};const r=e.random||(e.rng||ZEe)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,e_e(r)}const r_e="1.0.2";function o_e(){return r_e}function i_e(){const e=localStorage.getItem(Tw);(e===null||e==="true")&&new Audio(tye).play()}function a_e(){return yn().format("YYYY-MM-DD HH:mm:ss")}function Y_(){return n_e().replaceAll(/-/g,"")}function am(e){return e.endsWith("/")?e.slice(0,-1):e}function p9(e,t){return e.length>t?e.slice(0,t-3)+"...":e}function s_e(e){if(sye===e||lye===e||cye===e||uye===e||dye===e)return!0}function l_e(e){return e===$b||e===Pb}function c_e(e){return e===$b||e===Pb}function u_e(e){return e.startsWith(yye)}function qee(){console.log("%cWelcome to Bytedesk","font-family:Arial; color:#3370ff ; font-size:18px; font-weight:bold;","GitHub:https://github.com/bytedesk/bytedesk")}const Dp=hl()(uc(dc(fc(e=>({orgTree:[],currentOrg:{uid:"",name:"",logo:"",description:""},setCurrentOrg(t){e({currentOrg:t})},deleteOrg:()=>e({currentOrg:{uid:"",name:"",logo:"",description:""}})})),{name:A0e}))),Ll=hl()(uc(dc(fc((e,t)=>({threads:[],queuingThreads:[],currentThread:{uid:"",user:{uid:"",nickname:"",avatar:""},topic:"",content:"",type:"",unreadCount:0,extra:"",updatedAt:""},currentQueuingThread:{uid:"",user:{uid:"",nickname:"",avatar:""}},threadResult:{data:{content:[],last:!0}},showQueueButton:!1,showQueueList:!1,showRightPanel:!1,loading:!1,error:null,searchText:"",pagination:{pageNumber:0,pageSize:100,total:0},filters:{},addThread(n){var o,i;if(n.state===U7)return t().addQueuingThread(n),0;if(t().threads.some(a=>a.topic===n.topic))if(((o=t().currentThread)==null?void 0:o.topic)===""||((i=t().currentThread)==null?void 0:i.topic)!==n.topic){for(let a=0;aa.topic!==n.topic)]}),n.unreadCount}else{const a=t().threads.map(s=>s.topic===n.topic?(n.top=s.top,n.mute=s.mute,n.unread=s.unread,n.agent=s.agent,n):s);return e({threads:a}),0}else return n.unreadCount=1,e({threads:[n,...t().threads]}),n.unreadCount},addThreadWithMessage(n,r){var s,l;if(r.type===aye)return t().addQueuingThread(n),0;const o=t().threads.some(c=>c.topic===n.topic),i=!l_e(r.type);if(c_e(r.type)&&(n.state=W7),o)if(((s=t().currentThread)==null?void 0:s.topic)===""||((l=t().currentThread)==null?void 0:l.topic)!==n.topic){for(let c=0;cc.topic!==n.topic)]}),n.unreadCount}else{const c=t().threads.map(u=>u.topic===n.topic?(n.top=u.top,n.mute=u.mute,n.unread=u.unread,n.agent=u.agent,n):u);return e({threads:c}),0}else return i&&(n.unreadCount=1),e({threads:[n,...t().threads]}),n.unreadCount},addQueuingThread(n){t().queuingThreads.some(o=>o.topic===n.topic)||e({queuingThreads:[n,...t().queuingThreads]})},updateThreadContent(n,r){let o=null;const i=t().threads.map(a=>a.topic===n?(o={...a,unreadCount:a.unreadCount+1,content:r},o):a);return e({threads:i}),o},updateThreadStatus(n,r){let o=null;const i=t().threads.map(a=>a.topic===n?(o={...a,state:r},o):a);return e({threads:i}),o},removeThread(n){e({threads:[...t().threads.filter(r=>(r==null?void 0:r.uid)!==(n==null?void 0:n.uid))]})},closeThread(n){const r=t().threads.map(o=>o.topic===n?{...o,state:W7}:o);e({threads:r})},addThreads(n){for(let r=0;ra.topic===o.topic))e({threads:[...t().threads,o]});else{const a=t().threads.map(s=>s.topic===o.topic?{...o,unreadCount:s.unreadCount}:s);e({threads:a})}}},setThreads(n){e(r=>{r.threads=n})},setQueuingThreads(n){e(r=>{r.queuingThreads=n})},setCurrentThread(n){e(i=>{i.showQueueList=!1});const r={...n,unreadCount:0},o=t().threads.map(i=>i.topic===r.topic?r:i);e(i=>{i.currentThread=r,i.threads=o})},setCurrentQueuingThread(n){e(r=>{r.currentQueuingThread=n})},setThreadResult(n){e(r=>{r.threadResult=n})},getUnreadCount(){return t().threads.reduce((n,r)=>{var o;return r.unreadCount>0&&r.topic!==((o=t().currentThread)==null?void 0:o.topic)?n+r.unreadCount:n},0)},setShowQueueButton(n){e(r=>{r.showQueueButton=n})},setShowQueueList(n){e(r=>{r.showQueueList=n,r.showRightPanel=!1})},setShowRightPanel(n){e(r=>{r.showRightPanel=n})},resetThreads(){e(n=>{n.threads=[],n.queuingThreads=[],n.currentThread={uid:"",user:{uid:"",nickname:"",avatar:""},topic:"",content:"",type:"",unreadCount:0,extra:"",updatedAt:""},n.currentQueuingThread={uid:"",user:{uid:"",nickname:"",avatar:""}},n.threadResult={data:{content:[],last:!0}},n.showQueueButton=!1,n.showQueueList=!1,n.showRightPanel=!1})},setLoading:n=>e({loading:n}),setError:n=>e({error:n}),setSearchText:n=>e({searchText:n}),setFilter:(n,r)=>e(o=>{o.filters[n]=r}),clearFilters:()=>e({filters:{}}),refreshThreads:async()=>{const{currentOrg:n}=Dp.getState();if(n!=null&&n.uid){const{threadService:r}=await QCe(async()=>{const{threadService:o}=await import("./threadService-D4_peaIE.js");return{threadService:o}},[]);await r.loadThreads(n.uid)}},setPagination:n=>e({pagination:n})})),{name:z0e}))),hd=hl()(uc(dc(fc((e,t)=>({messageList:[],addMessage(n){if(t().messageList.some(o=>o.uid===n.uid)){if(n.type===_b){const i=t().messageList.findIndex(a=>a.type===_b&&a.uid===n.uid);if(i!==-1){const a=[...t().messageList];a[i].content+=n.content,e({messageList:a});return}}const o=t().messageList.findIndex(i=>i.uid===n.uid);if(o!==-1){const i=[...t().messageList];i[o]=n,e({messageList:i})}}else{const o=t().messageList[t().messageList.length-1];if(o&&n.type===_k&&o.type===_k){const i=t().messageList.findIndex(s=>s.uid===o.uid),a=[...t().messageList];a[i]=n,e({messageList:a})}else e({messageList:[...t().messageList,n]})}t().sortMessageList()},addMessageList(n){const r=[];for(let i=0;il.uid===a.uid)||r.unshift(a)}const o=[...r,...t().messageList].sort((i,a)=>{const s=yn(i.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf(),l=yn(a.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf();return s-l});console.log("sortedMessageList",o),e({messageList:o})},updateMessageStatus(n,r){const o=t().messageList.findIndex(i=>i.uid===n);if(o!==-1){const i=[...t().messageList];i[o].status=r,e({messageList:i})}},updateMessage(n){const r=t().messageList.findIndex(o=>o.uid===n.uid);if(r!==-1){const o=[...t().messageList];o[r].content=n.content,e({messageList:o})}else console.log("找不到该消息")},deleteMessage(n){const r=t().messageList.findIndex(o=>o.uid===n);if(r!==-1){const o=[...t().messageList];o.splice(r,1),e({messageList:o})}},recallMessage(n){const r=t().messageList.findIndex(o=>o.uid===n);if(r!==-1){const o=[...t().messageList];o[r].type=_Q,o[r].content="该消息已被撤回",e({messageList:o})}},sortMessageList(){const n=t().messageList.sort((r,o)=>{const i=yn(r.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf(),a=yn(o.createdAt,"YYYY-MM-DD HH:mm:ss").valueOf();return i-a});e({messageList:n})},resetMessageList(){e({messageList:[]})}})),{name:j0e}))),vi=hl()(uc(dc(fc((e,t)=>({userInfo:{uid:"",nickname:"",avatar:""},deviceUid:"",setUserInfo:n=>{e({userInfo:n})},setDeviceUid(n){e({deviceUid:n})},resetUserInfo(){e({userInfo:{uid:t().userInfo.uid,nickname:"",avatar:""}})}})),{name:L0e}))),jp=hl()(uc(dc(fc((e,t)=>({agentResult:{data:{content:[]}},agentInfo:{uid:"",orgUid:""},insertAgent(n){e(r=>{r.agentResult.data.content.unshift(n)})},updateAgent(n){e(r=>{const o=r.agentResult.data.content,i=o.findIndex(a=>a.uid===n.uid);i!==-1?o[i]=n:console.warn(`Agent with uid ${n.uid} not found.`)})},deleteAgent(n){e(r=>{const o=r.agentResult.data.content,i=o.findIndex(a=>a.uid===n.uid);i!==-1?o.splice(i,1):console.warn(`Agent with uid ${n.uid} not found.`)})},setAgentResult:n=>{e({agentResult:n})},setAgentInfo(n){e({agentInfo:n})},deleteAgentInfo(n){const r=t().agentResult.data.content,o=r.findIndex(i=>i.uid===n);o!==-1?e({agentResult:{...t().agentResult,data:{content:[...r.slice(0,o),...r.slice(o+1)]}}}):console.warn("Agent not found in cache:",n),t().agentInfo.uid===n&&e({agentInfo:{uid:"",orgUid:""}})},resetAgentInfo(){e({agentResult:{data:{content:[]}},agentInfo:{uid:"",orgUid:""}})}})),{name:U0e})));var Gee={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 i="",a=0;a1&&arguments[1]!==void 0?arguments[1]:{},n=[];return de.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(ai(r)):Yee(r)&&r.props?n=n.concat(ai(r.props.children,t)):n.push(r))}),n}var p3={},p_e=function(t){};function m_e(e,t){}function g_e(e,t){}function v_e(){p3={}}function Xee(e,t,n){!t&&!p3[n]&&(e(!1,n),p3[n]=!0)}function yr(e,t){Xee(m_e,e,t)}function b2(e,t){Xee(g_e,e,t)}yr.preMessage=p_e;yr.resetWarned=v_e;yr.noteOnce=b2;function y_e(e,t){if(Ht(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ht(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Qee(e){var t=y_e(e,"string");return Ht(t)=="symbol"?t:t+""}function Z(e,t,n){return(t=Qee(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function z(e){for(var t=1;t0},e.prototype.connect_=function(){!g3||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),O_e?(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(){!g3||!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,o=P_e.some(function(i){return!!~r.indexOf(i)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),tte=function(e,t){for(var n=0,r=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof Dg(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new j_e(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 Dg(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 F_e(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}(),rte=typeof WeakMap<"u"?new WeakMap:new ete,ote=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=M_e.getInstance(),r=new L_e(t,n,this);rte.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){ote.prototype[e]=function(){var t;return(t=rte.get(this))[e].apply(t,arguments)}});var B_e=function(){return typeof S2.ResizeObserver<"u"?S2.ResizeObserver:ote}(),Zd=new Map;function z_e(e){e.forEach(function(t){var n,r=t.target;(n=Zd.get(r))===null||n===void 0||n.forEach(function(o){return o(r)})})}var ite=new B_e(z_e);function H_e(e,t){Zd.has(e)||(Zd.set(e,new Set),ite.observe(e)),Zd.get(e).add(t)}function U_e(e,t){Zd.has(e)&&(Zd.get(e).delete(t),Zd.get(e).size||(ite.unobserve(e),Zd.delete(e)))}function br(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v9(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&arguments[1]!==void 0?arguments[1]:1;y9+=1;var r=y9;function o(i){if(i===0)ute(r),t();else{var a=lte(function(){o(i-1)});rA.set(r,a)}}return o(n),r};zn.cancel=function(e){var t=rA.get(e);return ute(e),cte(t)};function dte(e){if(Array.isArray(e))return e}function Q_e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function fte(){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 dte(e)||Q_e(e,t)||u$(e,t)||fte()}function Db(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=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(o){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 Ev(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function J_e(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 b9="data-rc-order",S9="data-rc-priority",Z_e="rc-util-key",y3=new Map;function hte(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):Z_e}function d$(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function e$e(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function oA(e){return Array.from((y3.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function pte(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Ev())return null;var n=t.csp,r=t.prepend,o=t.priority,i=o===void 0?0:o,a=e$e(r),s=a==="prependQueue",l=document.createElement("style");l.setAttribute(b9,a),s&&i&&l.setAttribute(S9,"".concat(i)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;var c=d$(t),u=c.firstChild;if(r){if(s){var f=(t.styles||oA(c)).filter(function(h){if(!["prepend","prependQueue"].includes(h.getAttribute(b9)))return!1;var p=Number(h.getAttribute(S9)||0);return i>=p});if(f.length)return c.insertBefore(l,f[f.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function mte(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=d$(t);return(t.styles||oA(n)).find(function(r){return r.getAttribute(hte(t))===e})}function iA(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=mte(e,t);if(n){var r=d$(t);r.removeChild(n)}}function t$e(e,t){var n=y3.get(e);if(!n||!J_e(document,n)){var r=pte("",t),o=r.parentNode;y3.set(e,o),e.removeChild(r)}}function rg(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=d$(n),o=oA(r),i=z(z({},n),{},{styles:o});t$e(r,i);var a=mte(t,i);if(a){var s,l;if((s=i.csp)!==null&&s!==void 0&&s.nonce&&a.nonce!==((l=i.csp)===null||l===void 0?void 0:l.nonce)){var c;a.nonce=(c=i.csp)===null||c===void 0?void 0:c.nonce}return a.innerHTML!==e&&(a.innerHTML=e),a}var u=pte(e,i);return u.setAttribute(hte(i),t),u}function n$e(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 At(e,t){if(e==null)return{};var n,r,o=n$e(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(i,a){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(i);if(F1(!l,"Warning: There may be circular references"),l)return!1;if(i===a)return!0;if(n&&s>1)return!1;r.add(i);var c=s+1;if(Array.isArray(i)){if(!Array.isArray(a)||i.length!==a.length)return!1;for(var u=0;u1&&arguments[1]!==void 0?arguments[1]:!1,a={map:this.cache};return n.forEach(function(s){if(!a)a=void 0;else{var l;a=(l=a)===null||l===void 0||(l=l.map)===null||l===void 0?void 0:l.get(s)}}),(r=a)!==null&&r!==void 0&&r.value&&i&&(a.value[1]=this.cacheCallTimes++),(o=a)===null||o===void 0?void 0:o.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 o=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var i=this.keys.reduce(function(c,u){var f=$e(c,2),h=f[1];return o.internalGet(u)[1]0,void 0),w9+=1}return Sr(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e}(),gT=new sA;function up(e){var t=Array.isArray(e)?e:[e];return gT.has(t)||gT.set(t,new lA(t)),gT.get(t)}var y$e=new WeakMap,vT={};function b$e(e,t){for(var n=y$e,r=0;r3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(i)return e;var a=z(z({},o),{},(r={},Z(r,jg,t),Z(r,Vl,n),r)),s=Object.keys(a).map(function(l){var c=a[l];return c?"".concat(l,'="').concat(c,'"'):null}).filter(function(l){return l}).join(" ");return"")}var Fy=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()},w$e=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(o){var i=$e(o,2),a=i[0],s=i[1];return"".concat(a,":").concat(s,";")}).join(""),"}"):""},Cte=function(t,n,r){var o={},i={};return Object.entries(t).forEach(function(a){var s,l,c=$e(a,2),u=c[0],f=c[1];if(r!=null&&(s=r.preserve)!==null&&s!==void 0&&s[u])i[u]=f;else if((typeof f=="string"||typeof f=="number")&&!(r!=null&&(l=r.ignore)!==null&&l!==void 0&&l[u])){var h,p=Fy(u,r==null?void 0:r.prefix);o[p]=typeof f=="number"&&!(r!=null&&(h=r.unitless)!==null&&h!==void 0&&h[u])?"".concat(f,"px"):String(f),i[u]="var(".concat(p,")")}}),[i,w$e(o,n,{scope:r==null?void 0:r.scope})]},_9=Ev()?d.useLayoutEffect:d.useEffect,x$e=function(t,n){var r=d.useRef(!0);_9(function(){return t(r.current)},n),_9(function(){return r.current=!1,function(){r.current=!0}},[])},E$e=z({},S1),$9=E$e.useInsertionEffect,_$e=function(t,n,r){d.useMemo(t,r),x$e(function(){return n(!0)},r)},$$e=$9?function(e,t,n){return $9(function(){return e(),t()},n)}:_$e,P$e=z({},S1),O$e=P$e.useInsertionEffect,M$e=function(t){var n=[],r=!1;function o(i){r||n.push(i)}return d.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(i){return i()})}},t),o},T$e=function(){return function(t){t()}},R$e=typeof O$e<"u"?M$e:T$e;function cA(e,t,n,r,o){var i=d.useContext(Fg),a=i.cache,s=[e].concat(Ze(t)),l=S3(s),c=R$e([l]),u=function(m){a.opUpdate(l,function(g){var v=g||[void 0,void 0],b=$e(v,2),y=b[0],S=y===void 0?0:y,w=b[1],E=w,C=E||n(),x=[S,C];return m?m(x):x})};d.useMemo(function(){u()},[l]);var f=a.opGet(l),h=f[1];return $$e(function(){o==null||o(h)},function(p){return u(function(m){var g=$e(m,2),v=g[0],b=g[1];return p&&v===0&&(o==null||o(h)),[v+1,b]}),function(){a.opUpdate(l,function(m){var g=m||[],v=$e(g,2),b=v[0],y=b===void 0?0:b,S=v[1],w=y-1;return w===0?(c(function(){(p||!a.opGet(l))&&(r==null||r(S,!1))}),null):[y-1,S]})}},[l]),h}var I$e={},k$e="css",mh=new Map;function N$e(e){mh.set(e,(mh.get(e)||0)+1)}function A$e(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(jg,'="').concat(e,'"]'));n.forEach(function(r){if(r[ef]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r)}})}}var D$e=0;function j$e(e,t){mh.set(e,(mh.get(e)||0)-1);var n=Array.from(mh.keys()),r=n.filter(function(o){var i=mh.get(o)||0;return i<=0});n.length-r.length>D$e&&r.forEach(function(o){A$e(o,t),mh.delete(o)})}var uA=function(t,n,r,o){var i=r.getDerivativeToken(t),a=z(z({},i),n);return o&&(a=o(a)),a},wte="token";function dA(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=d.useContext(Fg),o=r.cache.instanceId,i=r.container,a=n.salt,s=a===void 0?"":a,l=n.override,c=l===void 0?I$e:l,u=n.formatToken,f=n.getComputedToken,h=n.cssVar,p=b$e(function(){return Object.assign.apply(Object,[{}].concat(Ze(t)))},t),m=jy(p),g=jy(c),v=h?jy(h):"",b=cA(wte,[s,e.id,m,g,v],function(){var y,S=f?f(p,c,e):uA(p,c,e,u),w=z({},S),E="";if(h){var C=Cte(S,h.key,{prefix:h.prefix,ignore:h.ignore,unitless:h.unitless,preserve:h.preserve}),x=$e(C,2);S=x[0],E=x[1]}var _=E9(S,s);S._tokenKey=_,w._tokenKey=E9(w,s);var P=(y=h==null?void 0:h.key)!==null&&y!==void 0?y:_;S._themeKey=P,N$e(P);var O="".concat(k$e,"-").concat(Db(_));return S._hashId=O,[S,O,w,E,(h==null?void 0:h.key)||""]},function(y){j$e(y[0]._themeKey,o)},function(y){var S=$e(y,4),w=S[0],E=S[3];if(h&&E){var C=rg(E,Db("css-variables-".concat(w._themeKey)),{mark:Vl,prepend:"queue",attachTo:i,priority:-999});C[ef]=o,C.setAttribute(jg,w._themeKey)}});return b}var F$e=function(t,n,r){var o=$e(t,5),i=o[2],a=o[3],s=o[4],l=r||{},c=l.plain;if(!a)return null;var u=i._tokenKey,f=-999,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},p=jb(a,s,u,h,c);return[f,u,p]},xte={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},Ete="comm",_te="rule",$te="decl",L$e="@import",B$e="@keyframes",z$e="@layer",Pte=Math.abs,fA=String.fromCharCode;function Ote(e){return e.trim()}function qw(e,t,n){return e.replace(t,n)}function H$e(e,t,n){return e.indexOf(t,n)}function Fb(e,t){return e.charCodeAt(t)|0}function Bg(e,t,n){return e.slice(t,n)}function Pc(e){return e.length}function U$e(e){return e.length}function TC(e,t){return t.push(e),e}var f$=1,zg=1,Mte=0,ul=0,oi=0,_v="";function hA(e,t,n,r,o,i,a,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:f$,column:zg,length:a,return:"",siblings:s}}function W$e(){return oi}function V$e(){return oi=ul>0?Fb(_v,--ul):0,zg--,oi===10&&(zg=1,f$--),oi}function Kl(){return oi=ul2||Lb(oi)>3?"":" "}function Y$e(e,t){for(;--t&&Kl()&&!(oi<48||oi>102||oi>57&&oi<65||oi>70&&oi<97););return h$(e,Gw()+(t<6&&tf()==32&&Kl()==32))}function w3(e){for(;Kl();)switch(oi){case e:return ul;case 34:case 39:e!==34&&e!==39&&w3(oi);break;case 40:e===41&&w3(e);break;case 92:Kl();break}return ul}function X$e(e,t){for(;Kl()&&e+oi!==57;)if(e+oi===84&&tf()===47)break;return"/*"+h$(t,ul-1)+"*"+fA(e===47?e:Kl())}function Q$e(e){for(;!Lb(tf());)Kl();return h$(e,ul)}function J$e(e){return q$e(Yw("",null,null,null,[""],e=K$e(e),0,[0],e))}function Yw(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,f=a,h=0,p=0,m=0,g=1,v=1,b=1,y=0,S="",w=o,E=i,C=r,x=S;v;)switch(m=y,y=Kl()){case 40:if(m!=108&&Fb(x,f-1)==58){H$e(x+=qw(ST(y),"&","&\f"),"&\f",Pte(c?s[c-1]:0))!=-1&&(b=-1);break}case 34:case 39:case 91:x+=ST(y);break;case 9:case 10:case 13:case 32:x+=G$e(m);break;case 92:x+=Y$e(Gw()-1,7);continue;case 47:switch(tf()){case 42:case 47:TC(Z$e(X$e(Kl(),Gw()),t,n,l),l),(Lb(m||1)==5||Lb(tf()||1)==5)&&Pc(x)&&Bg(x,-1,void 0)!==" "&&(x+=" ");break;default:x+="/"}break;case 123*g:s[c++]=Pc(x)*b;case 125*g:case 59:case 0:switch(y){case 0:case 125:v=0;case 59+u:b==-1&&(x=qw(x,/\f/g,"")),p>0&&(Pc(x)-f||g===0&&m===47)&&TC(p>32?O9(x+";",r,n,f-1,l):O9(qw(x," ","")+";",r,n,f-2,l),l);break;case 59:x+=";";default:if(TC(C=P9(x,t,n,c,u,o,s,S,w=[],E=[],f,i),i),y===123)if(u===0)Yw(x,t,C,C,w,i,f,s,E);else switch(h===99&&Fb(x,3)===110?100:h){case 100:case 108:case 109:case 115:Yw(e,C,C,r&&TC(P9(e,C,C,0,0,o,s,S,o,w=[],f,E),E),o,E,f,s,r?w:E);break;default:Yw(x,C,C,C,[""],E,0,s,E)}}c=u=p=0,g=b=1,S=x="",f=a;break;case 58:f=1+Pc(x),p=m;default:if(g<1){if(y==123)--g;else if(y==125&&g++==0&&V$e()==125)continue}switch(x+=fA(y),y*g){case 38:b=u>0?1:(x+="\f",-1);break;case 44:s[c++]=(Pc(x)-1)*b,b=1;break;case 64:tf()===45&&(x+=ST(Kl())),h=tf(),u=f=Pc(S=x+=Q$e(Gw())),y++;break;case 45:m===45&&Pc(x)==2&&(g=0)}}return i}function P9(e,t,n,r,o,i,a,s,l,c,u,f){for(var h=o-1,p=o===0?i:[""],m=U$e(p),g=0,v=0,b=0;g0?p[y]+" "+S:qw(S,/&\f/g,p[y])))&&(l[b++]=w);return hA(e,t,n,o===0?_te:s,l,c,u,f)}function Z$e(e,t,n,r){return hA(e,t,n,Ete,fA(W$e()),Bg(e,2,-2),0,r)}function O9(e,t,n,r,o){return hA(e,t,n,$te,Bg(e,0,r),Bg(e,r+1,-1),r,o)}function x3(e,t){for(var n="",r=0;r1}function nPe(e){return e.parentSelectors.reduce(function(t,n){return t?n.includes("&")?n.replace(/&/g,t):"".concat(t," ").concat(n):n},"")}var rPe=function(t,n,r){var o=nPe(r),i=o.match(/:not\([^)]*\)/g)||[];i.length>0&&i.some(tPe)&&Ph("Concat ':not' selector not support in legacy browsers.",r)},oPe=function(t,n,r){switch(t){case"marginLeft":case"marginRight":case"paddingLeft":case"paddingRight":case"left":case"right":case"borderLeft":case"borderLeftWidth":case"borderLeftStyle":case"borderLeftColor":case"borderRight":case"borderRightWidth":case"borderRightStyle":case"borderRightColor":case"borderTopLeftRadius":case"borderTopRightRadius":case"borderBottomLeftRadius":case"borderBottomRightRadius":Ph("You seem to be using non-logical property '".concat(t,"' which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),r);return;case"margin":case"padding":case"borderWidth":case"borderStyle":if(typeof n=="string"){var o=n.split(" ").map(function(s){return s.trim()});o.length===4&&o[1]!==o[3]&&Ph("You seem to be using '".concat(t,"' property with different left ").concat(t," and right ").concat(t,", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),r)}return;case"clear":case"textAlign":(n==="left"||n==="right")&&Ph("You seem to be using non-logical value '".concat(n,"' of ").concat(t,", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),r);return;case"borderRadius":if(typeof n=="string"){var i=n.split("/").map(function(s){return s.trim()}),a=i.reduce(function(s,l){if(s)return s;var c=l.split(" ").map(function(u){return u.trim()});return c.length>=2&&c[0]!==c[1]||c.length===3&&c[1]!==c[2]||c.length===4&&c[2]!==c[3]?!0:s},!1);a&&Ph("You seem to be using non-logical value '".concat(n,"' of ").concat(t,", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),r)}return}},iPe=function(t,n,r){(typeof n=="string"&&/NaN/g.test(n)||Number.isNaN(n))&&Ph("Unexpected 'NaN' in property '".concat(t,": ").concat(n,"'."),r)},aPe=function(t,n,r){r.parentSelectors.some(function(o){var i=o.split(",");return i.some(function(a){return a.split("&").length>2})})&&Ph("Should not use more than one `&` in a selector.",r)},Ly="data-ant-cssinjs-cache-path",Tte="_FILE_STYLE__";function sPe(e){return Object.keys(e).map(function(t){var n=e[t];return"".concat(t,":").concat(n)}).join(";")}var Kh,Rte=!0;function lPe(){if(!Kh&&(Kh={},Ev())){var e=document.createElement("div");e.className=Ly,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(o){var i=o.split(":"),a=$e(i,2),s=a[0],l=a[1];Kh[s]=l});var n=document.querySelector("style[".concat(Ly,"]"));if(n){var r;Rte=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function cPe(e){return lPe(),!!Kh[e]}function uPe(e){var t=Kh[e],n=null;if(t&&Ev())if(Rte)n=Tte;else{var r=document.querySelector("style[".concat(Vl,'="').concat(Kh[e],'"]'));r?n=r.innerHTML:delete Kh[e]}return[n,t]}var dPe="_skip_check_",Ite="_multi_value_";function Xw(e){var t=x3(J$e(e),ePe);return t.replace(/\{%%%\:[^;];}/g,";")}function fPe(e){return Ht(e)==="object"&&e&&(dPe in e||Ite in e)}function M9(e,t,n){if(!t)return e;var r=".".concat(t),o=n==="low"?":where(".concat(r,")"):r,i=e.split(",").map(function(a){var s,l=a.trim().split(/\s+/),c=l[0]||"",u=((s=c.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return c="".concat(u).concat(o).concat(c.slice(u.length)),[c].concat(Ze(l.slice(1))).join(" ")});return i.join(",")}var hPe=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:[]},o=r.root,i=r.injectHash,a=r.parentSelectors,s=n.hashId,l=n.layer;n.path;var c=n.hashPriority,u=n.transformers,f=u===void 0?[]:u;n.linters;var h="",p={};function m(b){var y=b.getName(s);if(!p[y]){var S=e(b.style,n,{root:!1,parentSelectors:a}),w=$e(S,1),E=w[0];p[y]="@keyframes ".concat(b.getName(s)).concat(E)}}function g(b){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return b.forEach(function(S){Array.isArray(S)?g(S,y):S&&y.push(S)}),y}var v=g(Array.isArray(t)?t:[t]);return v.forEach(function(b){var y=typeof b=="string"&&!o?{}:b;if(typeof y=="string")h+="".concat(y,` `);else if(y._keyframe)m(y);else{var S=f.reduce(function(w,E){var C;return(E==null||(C=E.visit)===null||C===void 0?void 0:C.call(E,w))||w},y);Object.keys(S).forEach(function(w){var E=S[w];if(Ht(E)==="object"&&E&&(w!=="animationName"||!E._keyframe)&&!fPe(E)){var C=!1,x=w.trim(),_=!1;(o||i)&&s?x.startsWith("@")?C=!0:x==="&"?x=M9("",s,c):x=M9(w,s,c):o&&!s&&(x==="&"||x==="")&&(x="",_=!0);var P=e(E,n,{root:_,injectHash:C,parentSelectors:[].concat(Ze(a),[x])}),O=$e(P,2),I=O[0],M=O[1];p=z(z({},p),M),h+="".concat(x).concat(I)}else{let A=function(j,k){var F=j.replace(/[A-Z]/g,function(W){return"-".concat(W.toLowerCase())}),V=k;!xte[j]&&typeof V=="number"&&V!==0&&(V="".concat(V,"px")),j==="animationName"&&k!==null&&k!==void 0&&k._keyframe&&(m(k),V=k.getName(s)),h+="".concat(F,":").concat(V,";")};var T,D=(T=E==null?void 0:E.value)!==null&&T!==void 0?T:E;Ht(E)==="object"&&E!==null&&E!==void 0&&E[Ite]&&Array.isArray(D)?D.forEach(function(j){A(w,j)}):A(w,D)}})}}),o?l&&(h="@layer ".concat(l.name," {").concat(h,"}"),l.dependencies&&(p["@layer ".concat(l.name)]=l.dependencies.map(function(b){return"@layer ".concat(b,", ").concat(l.name,";")}).join(` `))):h="{".concat(h,"}"),[h,p]};function kte(e,t){return Db("".concat(e.join("%")).concat(t))}function pPe(){return null}var Nte="style";function Bb(e,t){var n=e.token,r=e.path,o=e.hashId,i=e.layer,a=e.nonce,s=e.clientOnly,l=e.order,c=l===void 0?0:l,u=d.useContext(Fg),f=u.autoClear;u.mock;var h=u.defaultCache,p=u.hashPriority,m=u.container,g=u.ssrInline,v=u.transformers,b=u.linters,y=u.cache,S=u.layer,w=n._tokenKey,E=[w];S&&E.push("layer"),E.push.apply(E,Ze(r));var C=C3,x=cA(Nte,E,function(){var M=E.join("|");if(cPe(M)){var T=uPe(M),D=$e(T,2),A=D[0],j=D[1];if(A)return[A,w,j,{},s,c]}var k=t(),F=hPe(k,{hashId:o,hashPriority:p,layer:S?i:void 0,path:r.join("-"),transformers:v,linters:b}),V=$e(F,2),W=V[0],K=V[1],L=Xw(W),Q=kte(E,L);return[L,w,Q,K,s,c]},function(M,T){var D=$e(M,3),A=D[2];(T||f)&&C3&&iA(A,{mark:Vl})},function(M){var T=$e(M,4),D=T[0];T[1];var A=T[2],j=T[3];if(C&&D!==Tte){var k={mark:Vl,prepend:S?!1:"queue",attachTo:m,priority:c},F=typeof a=="function"?a():a;F&&(k.csp={nonce:F});var V=[],W=[];Object.keys(j).forEach(function(L){L.startsWith("@layer")?V.push(L):W.push(L)}),V.forEach(function(L){rg(Xw(j[L]),"_layer-".concat(L),z(z({},k),{},{prepend:!0}))});var K=rg(D,A,k);K[ef]=y.instanceId,K.setAttribute(jg,w),W.forEach(function(L){rg(Xw(j[L]),"_effect-".concat(L),k)})}}),_=$e(x,3),P=_[0],O=_[1],I=_[2];return function(M){var T;if(!g||C||!h)T=d.createElement(pPe,null);else{var D;T=d.createElement("style",Ge({},(D={},Z(D,jg,O),Z(D,Vl,I),D),{dangerouslySetInnerHTML:{__html:P}}))}return d.createElement(d.Fragment,null,T,M)}}var mPe=function(t,n,r){var o=$e(t,6),i=o[0],a=o[1],s=o[2],l=o[3],c=o[4],u=o[5],f=r||{},h=f.plain;if(c)return null;var p=i,m={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return p=jb(i,a,s,m,h),l&&Object.keys(l).forEach(function(g){if(!n[g]){n[g]=!0;var v=Xw(l[g]),b=jb(v,a,"_effect-".concat(g),m,h);g.startsWith("@layer")?p=b+p:p+=b}}),[u,s,p]},Ate="cssVar",Dte=function(t,n){var r=t.key,o=t.prefix,i=t.unitless,a=t.ignore,s=t.token,l=t.scope,c=l===void 0?"":l,u=d.useContext(Fg),f=u.cache.instanceId,h=u.container,p=s._tokenKey,m=[].concat(Ze(t.path),[r,c,p]),g=cA(Ate,m,function(){var v=n(),b=Cte(v,r,{prefix:o,unitless:i,ignore:a,scope:c}),y=$e(b,2),S=y[0],w=y[1],E=kte(m,w);return[S,w,E,r]},function(v){var b=$e(v,3),y=b[2];C3&&iA(y,{mark:Vl})},function(v){var b=$e(v,3),y=b[1],S=b[2];if(y){var w=rg(y,S,{mark:Vl,prepend:"queue",attachTo:h,priority:-999});w[ef]=f,w.setAttribute(jg,r)}});return g},gPe=function(t,n,r){var o=$e(t,4),i=o[1],a=o[2],s=o[3],l=r||{},c=l.plain;if(!i)return null;var u=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)},h=jb(i,s,a,f,c);return[u,a,h]},I0,vPe=(I0={},Z(I0,Nte,mPe),Z(I0,wte,F$e),Z(I0,Ate,gPe),I0);function yPe(e){return e!==null}function bPe(e,t){var n=typeof t=="boolean"?{plain:t}:t||{},r=n.plain,o=r===void 0?!1:r,i=n.types,a=i===void 0?["style","token","cssVar"]:i,s=new RegExp("^(".concat((typeof a=="string"?[a]:a).join("|"),")%")),l=Array.from(e.cache.keys()).filter(function(h){return s.test(h)}),c={},u={},f="";return l.map(function(h){var p=h.replace(s,"").replace(/%/g,"|"),m=h.split("%"),g=$e(m,1),v=g[0],b=vPe[v],y=b(e.cache.get(h)[1],c,{plain:o});if(!y)return null;var S=$e(y,3),w=S[0],E=S[1],C=S[2];return h.startsWith("style")&&(u[p]=E),[w,C]}).filter(yPe).sort(function(h,p){var m=$e(h,1),g=m[0],v=$e(p,1),b=v[0];return g-b}).forEach(function(h){var p=$e(h,2),m=p[1];f+=m}),f+=jb(".".concat(Ly,'{content:"').concat(sPe(u),'";}'),void 0,void 0,Z({},Ly,Ly),o),f}var Gn=function(){function e(t,n){br(this,e),Z(this,"name",void 0),Z(this,"style",void 0),Z(this,"_keyframe",!0),this.name=t,this.style=n}return Sr(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 SPe(e){if(typeof e=="number")return[[e],!1];var t=String(e).trim(),n=t.match(/(.*)(!important)/),r=(n?n[1]:t).trim().split(/\s+/),o=[],i=0;return[r.reduce(function(a,s){if(s.includes("(")||s.includes(")")){var l=s.split("(").length-1,c=s.split(")").length-1;i+=l-c}return i>=0&&o.push(s),i===0&&(a.push(o.join(" ")),o=[]),a},[]),!!n]}function sm(e){return e.notSplit=!0,e}var CPe={inset:["top","right","bottom","left"],insetBlock:["top","bottom"],insetBlockStart:["top"],insetBlockEnd:["bottom"],insetInline:["left","right"],insetInlineStart:["left"],insetInlineEnd:["right"],marginBlock:["marginTop","marginBottom"],marginBlockStart:["marginTop"],marginBlockEnd:["marginBottom"],marginInline:["marginLeft","marginRight"],marginInlineStart:["marginLeft"],marginInlineEnd:["marginRight"],paddingBlock:["paddingTop","paddingBottom"],paddingBlockStart:["paddingTop"],paddingBlockEnd:["paddingBottom"],paddingInline:["paddingLeft","paddingRight"],paddingInlineStart:["paddingLeft"],paddingInlineEnd:["paddingRight"],borderBlock:sm(["borderTop","borderBottom"]),borderBlockStart:sm(["borderTop"]),borderBlockEnd:sm(["borderBottom"]),borderInline:sm(["borderLeft","borderRight"]),borderInlineStart:sm(["borderLeft"]),borderInlineEnd:sm(["borderRight"]),borderBlockWidth:["borderTopWidth","borderBottomWidth"],borderBlockStartWidth:["borderTopWidth"],borderBlockEndWidth:["borderBottomWidth"],borderInlineWidth:["borderLeftWidth","borderRightWidth"],borderInlineStartWidth:["borderLeftWidth"],borderInlineEndWidth:["borderRightWidth"],borderBlockStyle:["borderTopStyle","borderBottomStyle"],borderBlockStartStyle:["borderTopStyle"],borderBlockEndStyle:["borderBottomStyle"],borderInlineStyle:["borderLeftStyle","borderRightStyle"],borderInlineStartStyle:["borderLeftStyle"],borderInlineEndStyle:["borderRightStyle"],borderBlockColor:["borderTopColor","borderBottomColor"],borderBlockStartColor:["borderTopColor"],borderBlockEndColor:["borderBottomColor"],borderInlineColor:["borderLeftColor","borderRightColor"],borderInlineStartColor:["borderLeftColor"],borderInlineEndColor:["borderRightColor"],borderStartStartRadius:["borderTopLeftRadius"],borderStartEndRadius:["borderTopRightRadius"],borderEndStartRadius:["borderBottomLeftRadius"],borderEndEndRadius:["borderBottomRightRadius"]};function RC(e,t){var n=e;return t&&(n="".concat(n," !important")),{_skip_check_:!0,value:n}}var wPe={visit:function(t){var n={};return Object.keys(t).forEach(function(r){var o=t[r],i=CPe[r];if(i&&(typeof o=="number"||typeof o=="string")){var a=SPe(o),s=$e(a,2),l=s[0],c=s[1];i.length&&i.notSplit?i.forEach(function(u){n[u]=RC(o,c)}):i.length===1?n[i[0]]=RC(l[0],c):i.length===2?i.forEach(function(u,f){var h;n[u]=RC((h=l[f])!==null&&h!==void 0?h:l[0],c)}):i.length===4?i.forEach(function(u,f){var h,p;n[u]=RC((h=(p=l[f])!==null&&p!==void 0?p:l[f-2])!==null&&h!==void 0?h:l[0],c)}):n[r]=o}else n[r]=o}),n}},CT=/url\([^)]+\)|var\([^)]+\)|(\d*\.?\d+)px/g;function xPe(e,t){var n=Math.pow(10,t+1),r=Math.floor(e*n);return Math.round(r/10)*10/n}var EPe=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.rootValue,r=n===void 0?16:n,o=t.precision,i=o===void 0?5:o,a=t.mediaQuery,s=a===void 0?!1:a,l=function(f,h){if(!h)return f;var p=parseFloat(h);if(p<=1)return f;var m=xPe(p/r,i);return"".concat(m,"rem")},c=function(f){var h=z({},f);return Object.entries(f).forEach(function(p){var m=$e(p,2),g=m[0],v=m[1];if(typeof v=="string"&&v.includes("px")){var b=v.replace(CT,l);h[g]=b}!xte[g]&&typeof v=="number"&&v!==0&&(h[g]="".concat(v,"px").replace(CT,l));var y=g.trim();if(y.startsWith("@")&&y.includes("px")&&s){var S=g.replace(CT,l);h[S]=h[g],delete h[g]}}),h};return{visit:c}},_Pe={supportModernCSS:function(){return S$e()&&C$e()}};const $Pe=Object.freeze(Object.defineProperty({__proto__:null,Keyframes:Gn,NaNLinter:iPe,StyleProvider:f$e,Theme:lA,_experimental:_Pe,createCache:aA,createTheme:up,extractStyle:bPe,genCalc:g$e,getComputedToken:uA,legacyLogicalPropertiesTransformer:wPe,legacyNotSelectorLinter:rPe,logicalPropertiesLinter:oPe,parentSelectorLinter:aPe,px2remTransformer:EPe,token2CSSVar:Fy,unit:_e,useCSSVarRegister:Dte,useCacheToken:dA,useStyleRegister:Bb},Symbol.toStringTag,{value:"Module"}));var p$=d.createContext({});function jte(e){return dte(e)||ste(e)||u$(e)||fte()}function Mo(e,t){for(var n=e,r=0;r3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Mo(e,t.slice(0,-1))?e:Fte(e,t,n,r)}function PPe(e){return Ht(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function T9(e){return Array.isArray(e)?[]:{}}var OPe=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Um(){for(var e=arguments.length,t=new Array(e),n=0;n{const e=()=>{};return e.deprecated=MPe,e},Lte=d.createContext(void 0);var Bte={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"},zte={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},RPe=z(z({},zte),{},{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 Hte={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},zb={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"]},RPe),timePickerLocale:Object.assign({},Hte)},rs="${label} is not a valid ${type}",Os={locale:"en",Pagination:Bte,DatePicker:zb,TimePicker:Hte,Calendar:zb,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:rs,method:rs,array:rs,object:rs,number:rs,date:rs,boolean:rs,integer:rs,float:rs,regexp:rs,email:rs,url:rs,hex:rs},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 Qw=Object.assign({},Os.Modal),Jw=[];const R9=()=>Jw.reduce((e,t)=>Object.assign(Object.assign({},e),t),Os.Modal);function IPe(e){if(e){const t=Object.assign({},e);return Jw.push(t),Qw=R9(),()=>{Jw=Jw.filter(n=>n!==t),Qw=R9()}}Qw=Object.assign({},Os.Modal)}function Ute(){return Qw}const pA=d.createContext(void 0),zi=(e,t)=>{const n=d.useContext(pA),r=d.useMemo(()=>{var i;const a=t||Os[e],s=(i=n==null?void 0:n[e])!==null&&i!==void 0?i:{};return Object.assign(Object.assign({},typeof a=="function"?a():a),s||{})},[e,t,n]),o=d.useMemo(()=>{const i=n==null?void 0:n.locale;return n!=null&&n.exist&&!i?Os.locale:i},[n]);return[r,o]},kPe="internalMark",NPe=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;d.useEffect(()=>IPe(t==null?void 0:t.Modal),[t]);const o=d.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return d.createElement(pA.Provider,{value:o},n)},Ci=Math.round;function wT(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(o=>parseFloat(o));for(let o=0;o<3;o+=1)r[o]=t(r[o]||0,n[o]||"",o);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const I9=(e,t,n)=>n===0?e:e/100;function k0(e,t){const n=t||255;return e>n?n:e<0?0:e}class Un{constructor(t){Z(this,"isValid",!0),Z(this,"r",0),Z(this,"g",0),Z(this,"b",0),Z(this,"a",1),Z(this,"_h",void 0),Z(this,"_s",void 0),Z(this,"_l",void 0),Z(this,"_v",void 0),Z(this,"_max",void 0),Z(this,"_min",void 0),Z(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 o=function(i){return r.startsWith(i)};const r=t.trim();/^#?[A-F\d]{3,8}$/i.test(r)?this.fromHexString(r):o("rgb")?this.fromRgbString(r):o("hsl")?this.fromHslString(r):(o("hsv")||o("hsb"))&&this.fromHsvString(r)}else if(t instanceof Un)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=k0(t.r),this.g=k0(t.g),this.b=k0(t.b),this.a=typeof t.a=="number"?k0(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(i){const a=i/255;return a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4)}const n=t(this.r),r=t(this.g),o=t(this.b);return .2126*n+.7152*r+.0722*o}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=Ci(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g"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 o=this.getLightness()-t/100;return o<0&&(o=0),this._c({h:n,s:r,l:o,a:this.a})}lighten(t=10){const n=this.getHue(),r=this.getSaturation();let o=this.getLightness()+t/100;return o>1&&(o=1),this._c({h:n,s:r,l:o,a:this.a})}mix(t,n=50){const r=this._c(t),o=n/100,i=s=>(r[s]-this[s])*o+this[s],a={r:Ci(i("r")),g:Ci(i("g")),b:Ci(i("b")),a:Ci(i("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),o=i=>Ci((this[i]*this.a+n[i]*n.a*(1-this.a))/r);return this._c({r:o("r"),g:o("g"),b:o("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 o=(this.b||0).toString(16);if(t+=o.length===2?o:"0"+o,typeof this.a=="number"&&this.a>=0&&this.a<1){const i=Ci(this.a*255).toString(16);t+=i.length===2?i:"0"+i}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=Ci(this.getSaturation()*100),r=Ci(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 o=this.clone();return o[t]=k0(n,r),o}_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(o,i){return parseInt(n[o]+n[i||o],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:o}){if(this._h=t%360,this._s=n,this._l=r,this.a=typeof o=="number"?o:1,n<=0){const h=Ci(r*255);this.r=h,this.g=h,this.b=h}let i=0,a=0,s=0;const l=t/60,c=(1-Math.abs(2*r-1))*n,u=c*(1-Math.abs(l%2-1));l>=0&&l<1?(i=c,a=u):l>=1&&l<2?(i=u,a=c):l>=2&&l<3?(a=c,s=u):l>=3&&l<4?(a=u,s=c):l>=4&&l<5?(i=u,s=c):l>=5&&l<6&&(i=c,s=u);const f=r-c/2;this.r=Ci((i+f)*255),this.g=Ci((a+f)*255),this.b=Ci((s+f)*255)}fromHsv({h:t,s:n,v:r,a:o}){this._h=t%360,this._s=n,this._v=r,this.a=typeof o=="number"?o:1;const i=Ci(r*255);if(this.r=i,this.g=i,this.b=i,n<=0)return;const a=t/60,s=Math.floor(a),l=a-s,c=Ci(r*(1-n)*255),u=Ci(r*(1-n*l)*255),f=Ci(r*(1-n*(1-l))*255);switch(s){case 0:this.g=f,this.b=c;break;case 1:this.r=u,this.b=c;break;case 2:this.r=c,this.b=f;break;case 3:this.r=c,this.g=u;break;case 4:this.r=f,this.g=c;break;case 5:default:this.g=c,this.b=u;break}}fromHsvString(t){const n=wT(t,I9);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=wT(t,I9);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=wT(t,(r,o)=>o.includes("%")?Ci(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}const APe=Object.freeze(Object.defineProperty({__proto__:null,FastColor:Un},Symbol.toStringTag,{value:"Module"}));var IC=2,k9=.16,DPe=.05,jPe=.05,FPe=.15,Wte=5,Vte=4,LPe=[{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 N9(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-IC*t:Math.round(e.h)+IC*t:r=n?Math.round(e.h)+IC*t:Math.round(e.h)-IC*t,r<0?r+=360:r>=360&&(r-=360),r}function A9(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-k9*t:t===Vte?r=e.s+k9:r=e.s+DPe*t,r>1&&(r=1),n&&t===Wte&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function D9(e,t,n){var r;return n?r=e.v+jPe*t:r=e.v-FPe*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function xf(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new Un(e),o=r.toHsv(),i=Wte;i>0;i-=1){var a=new Un({h:N9(o,i,!0),s:A9(o,i,!0),v:D9(o,i,!0)});n.push(a)}n.push(r);for(var s=1;s<=Vte;s+=1){var l=new Un({h:N9(o,s),s:A9(o,s),v:D9(o,s)});n.push(l)}return t.theme==="dark"?LPe.map(function(c){var u=c.index,f=c.amount;return new Un(t.backgroundColor||"#141414").mix(n[u],f).toHexString()}):n.map(function(c){return c.toHexString()})}var qh={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"},w2=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];w2.primary=w2[5];var x2=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];x2.primary=x2[5];var E2=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];E2.primary=E2[5];var _2=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];_2.primary=_2[5];var $2=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];$2.primary=$2[5];var P2=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];P2.primary=P2[5];var O2=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];O2.primary=O2[5];var M2=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];M2.primary=M2[5];var dp=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];dp.primary=dp[5];var T2=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];T2.primary=T2[5];var R2=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];R2.primary=R2[5];var I2=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];I2.primary=I2[5];var Hb=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Hb.primary=Hb[5];var BPe=Hb,Zw={red:w2,volcano:x2,orange:E2,gold:_2,yellow:$2,lime:P2,green:O2,cyan:M2,blue:dp,geekblue:T2,purple:R2,magenta:I2,grey:Hb},k2=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];k2.primary=k2[5];var N2=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];N2.primary=N2[5];var A2=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];A2.primary=A2[5];var D2=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];D2.primary=D2[5];var j2=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];j2.primary=j2[5];var F2=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];F2.primary=F2[5];var L2=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];L2.primary=L2[5];var B2=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];B2.primary=B2[5];var z2=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];z2.primary=z2[5];var H2=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];H2.primary=H2[5];var U2=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];U2.primary=U2[5];var W2=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];W2.primary=W2[5];var V2=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];V2.primary=V2[5];var zPe={red:k2,volcano:N2,orange:A2,gold:D2,yellow:j2,lime:F2,green:L2,cyan:B2,blue:z2,geekblue:H2,purple:U2,magenta:W2,grey:V2};const HPe=Object.freeze(Object.defineProperty({__proto__:null,blue:dp,blueDark:z2,cyan:M2,cyanDark:B2,geekblue:T2,geekblueDark:H2,generate:xf,gold:_2,goldDark:D2,gray:BPe,green:O2,greenDark:L2,grey:Hb,greyDark:V2,lime:P2,limeDark:F2,magenta:I2,magentaDark:W2,orange:E2,orangeDark:A2,presetDarkPalettes:zPe,presetPalettes:Zw,presetPrimaryColors:qh,purple:R2,purpleDark:U2,red:w2,redDark:k2,volcano:x2,volcanoDark:N2,yellow:$2,yellowDark:j2},Symbol.toStringTag,{value:"Module"})),mA={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"},Hg=Object.assign(Object.assign({},mA),{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 Kte(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:u}=e,f=n(l),h=n(o),p=n(i),m=n(a),g=n(s),v=r(c,u),b=e.colorLink||e.colorInfo,y=n(b),S=new Un(m[1]).mix(new Un(m[3]),50).toHexString();return Object.assign(Object.assign({},v),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[10],colorSuccessBg:h[1],colorSuccessBgHover:h[2],colorSuccessBorder:h[3],colorSuccessBorderHover:h[4],colorSuccessHover:h[4],colorSuccess:h[6],colorSuccessActive:h[7],colorSuccessTextHover:h[8],colorSuccessText:h[9],colorSuccessTextActive:h[10],colorErrorBg:m[1],colorErrorBgHover:m[2],colorErrorBgFilledHover:S,colorErrorBgActive:m[3],colorErrorBorder:m[3],colorErrorBorderHover:m[4],colorErrorHover:m[5],colorError:m[6],colorErrorActive:m[7],colorErrorTextHover:m[8],colorErrorText:m[9],colorErrorTextActive:m[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:g[1],colorInfoBgHover:g[2],colorInfoBorder:g[3],colorInfoBorderHover:g[4],colorInfoHover:g[4],colorInfo:g[6],colorInfoActive:g[7],colorInfoTextHover:g[8],colorInfoText:g[9],colorInfoTextActive:g[10],colorLinkHover:y[4],colorLink:y[6],colorLinkActive:y[7],colorBgMask:new Un("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const UPe=e=>{let t=e,n=e,r=e,o=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?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}};function WPe(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=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:o+1},UPe(r))}const qte=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function ex(e){return(e+8)/e}function VPe(e){const t=new Array(10).fill(null).map((n,r)=>{const o=r-1,i=e*Math.pow(Math.E,o/5),a=r>1?Math.floor(i):Math.ceil(i);return Math.floor(a/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:ex(n)}))}const Gte=e=>{const t=VPe(e),n=t.map(u=>u.size),r=t.map(u=>u.lineHeight),o=n[1],i=n[0],a=n[2],s=r[1],l=r[0],c=r[2];return{fontSizeSM:i,fontSize:o,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(s*o),fontHeightLG:Math.round(c*a),fontHeightSM:Math.round(l*i),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function KPe(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 Ds=(e,t)=>new Un(e).setA(t).toRgbString(),N0=(e,t)=>new Un(e).darken(t).toHexString(),qPe=e=>{const t=xf(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]}},GPe=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Ds(r,.88),colorTextSecondary:Ds(r,.65),colorTextTertiary:Ds(r,.45),colorTextQuaternary:Ds(r,.25),colorFill:Ds(r,.15),colorFillSecondary:Ds(r,.06),colorFillTertiary:Ds(r,.04),colorFillQuaternary:Ds(r,.02),colorBgSolid:Ds(r,1),colorBgSolidHover:Ds(r,.75),colorBgSolidActive:Ds(r,.95),colorBgLayout:N0(n,4),colorBgContainer:N0(n,0),colorBgElevated:N0(n,0),colorBgSpotlight:Ds(r,.85),colorBgBlur:"transparent",colorBorder:N0(n,15),colorBorderSecondary:N0(n,6)}};function L1(e){qh.pink=qh.magenta,Zw.pink=Zw.magenta;const t=Object.keys(mA).map(n=>{const r=e[n]===qh[n]?Zw[n]:xf(e[n]);return new Array(10).fill(1).reduce((o,i,a)=>(o[`${n}-${a+1}`]=r[a],o[`${n}${a+1}`]=r[a],o),{})}).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),Kte(e,{generateColorPalettes:qPe,generateNeutralColorPalettes:GPe})),Gte(e.fontSize)),KPe(e)),qte(e)),WPe(e))}const Yte=up(L1),Ub={token:Hg,override:{override:Hg},hashed:!0},gA=de.createContext(Ub),Wb="ant",m$="anticon",YPe=["outlined","borderless","filled"],XPe=(e,t)=>t||(e?`${Wb}-${e}`:Wb),Yt=d.createContext({getPrefixCls:XPe,iconPrefixCls:m$});function Ca(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function E3(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 j9="data-rc-order",F9="data-rc-priority",QPe="rc-util-key",_3=new Map;function Xte(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):QPe}function g$(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function JPe(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function vA(e){return Array.from((_3.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function Qte(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Ca())return null;var n=t.csp,r=t.prepend,o=t.priority,i=o===void 0?0:o,a=JPe(r),s=a==="prependQueue",l=document.createElement("style");l.setAttribute(j9,a),s&&i&&l.setAttribute(F9,"".concat(i)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;var c=g$(t),u=c.firstChild;if(r){if(s){var f=(t.styles||vA(c)).filter(function(h){if(!["prepend","prependQueue"].includes(h.getAttribute(j9)))return!1;var p=Number(h.getAttribute(F9)||0);return i>=p});if(f.length)return c.insertBefore(l,f[f.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function Jte(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=g$(t);return(t.styles||vA(n)).find(function(r){return r.getAttribute(Xte(t))===e})}function $3(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Jte(e,t);if(n){var r=g$(t);r.removeChild(n)}}function ZPe(e,t){var n=_3.get(e);if(!n||!E3(document,n)){var r=Qte("",t),o=r.parentNode;_3.set(e,o),e.removeChild(r)}}function v$(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=g$(n),o=vA(r),i=z(z({},n),{},{styles:o});ZPe(r,i);var a=Jte(t,i);if(a){var s,l;if((s=i.csp)!==null&&s!==void 0&&s.nonce&&a.nonce!==((l=i.csp)===null||l===void 0?void 0:l.nonce)){var c;a.nonce=(c=i.csp)===null||c===void 0?void 0:c.nonce}return a.innerHTML!==e&&(a.innerHTML=e),a}var u=Qte(e,i);return u.setAttribute(Xte(i),t),u}const eOe=`-ant-${Date.now()}-${Math.random()}`;function tOe(e,t){const n={},r=(a,s)=>{let l=a.clone();return l=(s==null?void 0:s(l))||l,l.toRgbString()},o=(a,s)=>{const l=new Un(a),c=xf(l.toRgbString());n[`${s}-color`]=r(l),n[`${s}-color-disabled`]=c[1],n[`${s}-color-hover`]=c[4],n[`${s}-color-active`]=c[6],n[`${s}-color-outline`]=l.clone().setA(.2).toRgbString(),n[`${s}-color-deprecated-bg`]=c[0],n[`${s}-color-deprecated-border`]=c[2]};if(t.primaryColor){o(t.primaryColor,"primary");const a=new Un(t.primaryColor),s=xf(a.toRgbString());s.forEach((c,u)=>{n[`primary-${u+1}`]=c}),n["primary-color-deprecated-l-35"]=r(a,c=>c.lighten(35)),n["primary-color-deprecated-l-20"]=r(a,c=>c.lighten(20)),n["primary-color-deprecated-t-20"]=r(a,c=>c.tint(20)),n["primary-color-deprecated-t-50"]=r(a,c=>c.tint(50)),n["primary-color-deprecated-f-12"]=r(a,c=>c.setA(c.a*.12));const l=new Un(s[0]);n["primary-color-active-deprecated-f-30"]=r(l,c=>c.setA(c.a*.3)),n["primary-color-active-deprecated-d-02"]=r(l,c=>c.darken(2))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),` :root { ${Object.keys(n).map(a=>`--${e}-${a}: ${n[a]};`).join(` `)} } `.trim()}function nOe(e,t){const n=tOe(e,t);Ca()&&v$(n,`${eOe}-dynamic-theme`)}const zo=d.createContext(!1),yA=e=>{let{children:t,disabled:n}=e;const r=d.useContext(zo);return d.createElement(zo.Provider,{value:n??r},t)},fp=d.createContext(void 0),rOe=e=>{let{children:t,size:n}=e;const r=d.useContext(fp);return d.createElement(fp.Provider,{value:n||r},t)};function oOe(){const e=d.useContext(zo),t=d.useContext(fp);return{componentDisabled:e,componentSize:t}}function dl(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(i,a){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(i);if(yr(!l,"Warning: There may be circular references"),l)return!1;if(i===a)return!0;if(n&&s>1)return!1;r.add(i);var c=s+1;if(Array.isArray(i)){if(!Array.isArray(a)||i.length!==a.length)return!1;for(var u=0;u1e4){var r=Date.now();this.lastAccessBeat.forEach(function(o,i){r-o>uOe&&(n.map.delete(i),n.lastAccessBeat.delete(i))}),this.accessBeat=0}}}]),e}(),U9=new dOe;function fOe(e,t){return de.useMemo(function(){var n=U9.get(t);if(n)return n;var r=e();return U9.set(t,r),r},t)}var hOe=function(){return{}};function one(e){var t=e.useCSP,n=t===void 0?hOe:t,r=e.useToken,o=e.usePrefix,i=e.getResetStyles,a=e.getCommonStyle,s=e.getCompUnitless;function l(h,p,m,g){var v=Array.isArray(h)?h[0]:h;function b(_){return"".concat(String(v)).concat(_.slice(0,1).toUpperCase()).concat(_.slice(1))}var y=(g==null?void 0:g.unitless)||{},S=typeof s=="function"?s(h):{},w=z(z({},S),{},Z({},b("zIndexPopup"),!0));Object.keys(y).forEach(function(_){w[b(_)]=y[_]});var E=z(z({},g),{},{unitless:w,prefixToken:b}),C=u(h,p,m,E),x=c(v,m,E);return function(_){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_,O=C(_,P),I=$e(O,2),M=I[1],T=x(P),D=$e(T,2),A=D[0],j=D[1];return[A,M,j]}}function c(h,p,m){var g=m.unitless,v=m.injectStyle,b=v===void 0?!0:v,y=m.prefixToken,S=m.ignore,w=function(x){var _=x.rootCls,P=x.cssVar,O=P===void 0?{}:P,I=r(),M=I.realToken;return Dte({path:[h],prefix:O.prefix,key:O.key,unitless:g,ignore:S,token:M,scope:_},function(){var T=H9(h,M,p),D=z9(h,M,T,{deprecatedTokens:m==null?void 0:m.deprecatedTokens});return Object.keys(T).forEach(function(A){D[y(A)]=D[A],delete D[A]}),D}),null},E=function(x){var _=r(),P=_.cssVar;return[function(O){return b&&P?de.createElement(de.Fragment,null,de.createElement(w,{rootCls:x,cssVar:P,component:h}),O):O},P==null?void 0:P.key]};return E}function u(h,p,m){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},v=Array.isArray(h)?h:[h,h],b=$e(v,1),y=b[0],S=v.join("-"),w=e.layer||{name:"antd"};return function(E){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:E,x=r(),_=x.theme,P=x.realToken,O=x.hashId,I=x.token,M=x.cssVar,T=o(),D=T.rootPrefixCls,A=T.iconPrefixCls,j=n(),k=M?"css":"js",F=fOe(function(){var ee=new Set;return M&&Object.keys(g.unitless||{}).forEach(function(re){ee.add(Fy(re,M.prefix)),ee.add(Fy(re,L9(y,M.prefix)))}),tne(k,ee)},[k,y,M==null?void 0:M.prefix]),V=cOe(k),W=V.max,K=V.min,L={theme:_,token:I,hashId:O,nonce:function(){return j.nonce},clientOnly:g.clientOnly,layer:w,order:g.order||-999};typeof i=="function"&&Bb(z(z({},L),{},{clientOnly:!1,path:["Shared",D]}),function(){return i(I,{prefix:{rootPrefixCls:D,iconPrefixCls:A},csp:j})});var Q=Bb(z(z({},L),{},{path:[S,E,A]}),function(){if(g.injectStyle===!1)return[];var ee=rne(I),re=ee.token,ie=ee.flush,G=H9(y,P,m),X=".".concat(E),ne=z9(y,P,G,{deprecatedTokens:g.deprecatedTokens});M&&G&&Ht(G)==="object"&&Object.keys(G).forEach(function(se){G[se]="var(".concat(Fy(se,L9(y,M.prefix)),")")});var le=kn(re,{componentCls:X,prefixCls:E,iconCls:".".concat(A),antCls:".".concat(D),calc:F,max:W,min:K},M?G:ne),ce=p(le,{hashId:O,prefixCls:E,rootPrefixCls:D,iconPrefixCls:A});ie(y,ne);var oe=typeof a=="function"?a(le,E,C,g.resetFont):null;return[g.resetStyle===!1?null:oe,ce]});return[Q,O]}}function f(h,p,m){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},v=u(h,p,m,z({resetStyle:!1,order:-998},g)),b=function(S){var w=S.prefixCls,E=S.rootCls,C=E===void 0?w:E;return v(w,C),null};return b}return{genStyleHooks:l,genSubStyleComponent:f,genComponentStyleHook:u}}const pOe=Object.freeze(Object.defineProperty({__proto__:null,genCalc:tne,genStyleUtils:one,mergeToken:kn,statistic:O3,statisticToken:rne},Symbol.toStringTag,{value:"Module"})),pp=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],td="5.23.2";function _T(e){return e>=0&&e<=255}function kC(e,t){const{r:n,g:r,b:o,a:i}=new Un(e).toRgb();if(i<1)return e;const{r:a,g:s,b:l}=new Un(t).toRgb();for(let c=.01;c<=1;c+=.01){const u=Math.round((n-a*(1-c))/c),f=Math.round((r-s*(1-c))/c),h=Math.round((o-l*(1-c))/c);if(_T(u)&&_T(f)&&_T(h))return new Un({r:u,g:f,b:h,a:Math.round(c*100)/100}).toRgbString()}return new Un({r:n,g:r,b:o,a:1}).toRgbString()}var mOe=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 o=0,r=Object.getOwnPropertySymbols(e);o{delete r[h]});const o=Object.assign(Object.assign({},n),r),i=480,a=576,s=768,l=992,c=1200,u=1600;if(o.motion===!1){const h="0s";o.motionDurationFast=h,o.motionDurationMid=h,o.motionDurationSlow=h}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:kC(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:kC(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:kC(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:o.lineWidth*3,lineWidth:o.lineWidth,controlOutlineWidth:o.lineWidth*2,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:kC(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.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:i,screenXSMin:i,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:l-1,screenLG:l,screenLGMin:l,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:u-1,screenXXL:u,screenXXLMin:u,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:` 0 1px 2px -2px ${new Un("rgba(0, 0, 0, 0.16)").toRgbString()}, 0 3px 6px 0 ${new Un("rgba(0, 0, 0, 0.12)").toRgbString()}, 0 5px 12px 4px ${new Un("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 W9=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 o=0,r=Object.getOwnPropertySymbols(e);o{const r=n.getDerivativeToken(e),{override:o}=t,i=W9(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=bA(a),i&&Object.entries(i).forEach(s=>{let[l,c]=s;const{theme:u}=c,f=W9(c,["theme"]);let h=f;u&&(h=ane(Object.assign(Object.assign({},a),f),{override:f},u)),a[l]=h}),a};function Ho(){const{token:e,hashed:t,theme:n,override:r,cssVar:o}=de.useContext(gA),i=`${td}-${t||""}`,a=n||Yte,[s,l,c]=dA(a,[Hg,e],{salt:i,override:r,getComputedToken:ane,formatToken:bA,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:ine,ignore:gOe,preserve:vOe}});return[a,c,t?l:"",s,o]}const wa={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Qn=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}},Fp=()=>({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"}}),nc=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),yOe=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"}}}),bOe=(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,i=n?`.${n}`:o,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return r!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},s),a),{[o]:a})}},rc=(e,t)=>({outline:`${_e(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),Ka=(e,t)=>({"&:focus-visible":Object.assign({},rc(e,t))}),sne=e=>({[`.${e}`]:Object.assign(Object.assign({},Fp()),{[`.${e} .${e}-icon`]:{display:"block"}})}),SOe=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"},Ka(e)),{"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),{genStyleHooks:Kn,genComponentStyleHook:lne,genSubStyleComponent:$v}=one({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=d.useContext(Yt);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,o]=Ho();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o}},useCSP:()=>{const{csp:e}=d.useContext(Yt);return e??{}},getResetStyles:(e,t)=>{var n;return[{"&":yOe(e)},sne((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:m$)]},getCommonStyle:bOe,getCompUnitless:()=>ine});function y$(e,t){return pp.reduce((n,r)=>{const o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:s}))},{})}const COe=(e,t)=>{const[n,r]=Ho();return Bb({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[sne(e)])},wOe=Object.assign({},S1),{useId:V9}=wOe,xOe=()=>"",EOe=typeof V9>"u"?xOe:V9;function _Oe(e,t,n){var r;nu();const o=e||{},i=o.inherit===!1||!t?Object.assign(Object.assign({},Ub),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:Ub.hashed,cssVar:t==null?void 0:t.cssVar}):t,a=EOe();return ed(()=>{var s,l;if(!e)return t;const c=Object.assign({},i.components);Object.keys(e.components||{}).forEach(h=>{c[h]=Object.assign(Object.assign({},c[h]),e.components[h])});const u=`css-var-${a.replace(/:/g,"")}`,f=((s=o.cssVar)!==null&&s!==void 0?s:i.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof i.cssVar=="object"?i.cssVar:{}),typeof o.cssVar=="object"?o.cssVar:{}),{key:typeof o.cssVar=="object"&&((l=o.cssVar)===null||l===void 0?void 0:l.key)||u});return Object.assign(Object.assign(Object.assign({},i),o),{token:Object.assign(Object.assign({},i.token),o.token),components:c,cssVar:f})},[o,i],(s,l)=>s.some((c,u)=>{const f=l[u];return!dl(c,f,!0)}))}var $Oe=["children"],cne=d.createContext({});function une(e){var t=e.children,n=At(e,$Oe);return d.createElement(cne.Provider,{value:n},t)}var POe=function(e){la(n,e);var t=Pa(n);function n(){return br(this,n),t.apply(this,arguments)}return Sr(n,[{key:"render",value:function(){return this.props.children}}]),n}(d.Component);function OOe(e){var t=d.useReducer(function(s){return s+1},0),n=$e(t,2),r=n[1],o=d.useRef(e),i=An(function(){return o.current}),a=An(function(s){o.current=typeof s=="function"?s(o.current):s,r()});return[i,a]}var Id="none",NC="appear",AC="enter",DC="leave",K9="none",kl="prepare",Wm="start",Vm="active",SA="end",dne="prepared";function q9(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 MOe(e,t){var n={animationend:q9("Animation","AnimationEnd"),transitionend:q9("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var TOe=MOe(Ca(),typeof window<"u"?window:{}),fne={};if(Ca()){var ROe=document.createElement("div");fne=ROe.style}var jC={};function hne(e){if(jC[e])return jC[e];var t=TOe[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o1&&arguments[1]!==void 0?arguments[1]:2;t();var i=zn(function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)});e.current=i}return d.useEffect(function(){return function(){t()}},[]),[n,t]};var NOe=[kl,Wm,Vm,SA],AOe=[kl,dne],yne=!1,DOe=!0;function bne(e){return e===Vm||e===SA}const jOe=function(e,t,n){var r=hp(K9),o=$e(r,2),i=o[0],a=o[1],s=kOe(),l=$e(s,2),c=l[0],u=l[1];function f(){a(kl,!0)}var h=t?AOe:NOe;return vne(function(){if(i!==K9&&i!==SA){var p=h.indexOf(i),m=h[p+1],g=n(i);g===yne?a(m,!0):m&&c(function(v){function b(){v.isCanceled()||a(m,!0)}g===!0?b():Promise.resolve(g).then(b)})}},[e,i]),d.useEffect(function(){return function(){u()}},[]),[f,i]};function FOe(e,t,n,r){var o=r.motionEnter,i=o===void 0?!0:o,a=r.motionAppear,s=a===void 0?!0:a,l=r.motionLeave,c=l===void 0?!0:l,u=r.motionDeadline,f=r.motionLeaveImmediately,h=r.onAppearPrepare,p=r.onEnterPrepare,m=r.onLeavePrepare,g=r.onAppearStart,v=r.onEnterStart,b=r.onLeaveStart,y=r.onAppearActive,S=r.onEnterActive,w=r.onLeaveActive,E=r.onAppearEnd,C=r.onEnterEnd,x=r.onLeaveEnd,_=r.onVisibleChanged,P=hp(),O=$e(P,2),I=O[0],M=O[1],T=OOe(Id),D=$e(T,2),A=D[0],j=D[1],k=hp(null),F=$e(k,2),V=F[0],W=F[1],K=A(),L=d.useRef(!1),Q=d.useRef(null);function ee(){return n()}var re=d.useRef(!1);function ie(){j(Id),W(null,!0)}var G=An(function(ye){var ve=A();if(ve!==Id){var be=ee();if(!(ye&&!ye.deadline&&ye.target!==be)){var Pe=re.current,Ne;ve===NC&&Pe?Ne=E==null?void 0:E(be,ye):ve===AC&&Pe?Ne=C==null?void 0:C(be,ye):ve===DC&&Pe&&(Ne=x==null?void 0:x(be,ye)),Pe&&Ne!==!1&&ie()}}}),X=IOe(G),ne=$e(X,1),le=ne[0],ce=function(ve){switch(ve){case NC:return Z(Z(Z({},kl,h),Wm,g),Vm,y);case AC:return Z(Z(Z({},kl,p),Wm,v),Vm,S);case DC:return Z(Z(Z({},kl,m),Wm,b),Vm,w);default:return{}}},oe=d.useMemo(function(){return ce(K)},[K]),se=jOe(K,!e,function(ye){if(ye===kl){var ve=oe[kl];return ve?ve(ee()):yne}if(he in oe){var be;W(((be=oe[he])===null||be===void 0?void 0:be.call(oe,ee(),null))||null)}return he===Vm&&K!==Id&&(le(ee()),u>0&&(clearTimeout(Q.current),Q.current=setTimeout(function(){G({deadline:!0})},u))),he===dne&&ie(),DOe}),fe=$e(se,2),te=fe[0],he=fe[1],pe=bne(he);re.current=pe;var Oe=d.useRef(null);vne(function(){if(!(L.current&&Oe.current===t)){M(t);var ye=L.current;L.current=!0;var ve;!ye&&t&&s&&(ve=NC),ye&&t&&i&&(ve=AC),(ye&&!t&&c||!ye&&f&&!t&&c)&&(ve=DC);var be=ce(ve);ve&&(e||be[kl])?(j(ve),te()):j(Id),Oe.current=t}},[t]),d.useEffect(function(){(K===NC&&!s||K===AC&&!i||K===DC&&!c)&&j(Id)},[s,i,c]),d.useEffect(function(){return function(){L.current=!1,clearTimeout(Q.current)}},[]);var Me=d.useRef(!1);d.useEffect(function(){I&&(Me.current=!0),I!==void 0&&K===Id&&((Me.current||I)&&(_==null||_(I)),Me.current=!0)},[I,K]);var Se=V;return oe[kl]&&he===Wm&&(Se=z({transition:"none"},Se)),[K,he,Se,I??t]}function LOe(e){var t=e;Ht(e)==="object"&&(t=e.transitionSupport);function n(o,i){return!!(o.motionName&&t&&i!==!1)}var r=d.forwardRef(function(o,i){var a=o.visible,s=a===void 0?!0:a,l=o.removeOnLeave,c=l===void 0?!0:l,u=o.forceRender,f=o.children,h=o.motionName,p=o.leavedClassName,m=o.eventProps,g=d.useContext(cne),v=g.motion,b=n(o,v),y=d.useRef(),S=d.useRef();function w(){try{return y.current instanceof HTMLElement?y.current:Dy(S.current)}catch{return null}}var E=FOe(b,s,w,o),C=$e(E,4),x=C[0],_=C[1],P=C[2],O=C[3],I=d.useRef(O);O&&(I.current=!0);var M=d.useCallback(function(F){y.current=F,Nb(i,F)},[i]),T,D=z(z({},m),{},{visible:s});if(!f)T=null;else if(x===Id)O?T=f(z({},D),M):!c&&I.current&&p?T=f(z(z({},D),{},{className:p}),M):u||!c&&!p?T=f(z(z({},D),{},{style:{display:"none"}}),M):T=null;else{var A;_===kl?A="prepare":bne(_)?A="active":_===Wm&&(A="start");var j=X9(h,"".concat(x,"-").concat(A));T=f(z(z({},D),{},{className:xe(X9(h,x),Z(Z({},j,j&&A),h,typeof h=="string")),style:P}),M)}if(d.isValidElement(T)&&tc(T)){var k=Af(T);k||(T=d.cloneElement(T,{ref:M}))}return d.createElement(POe,{ref:S},T)});return r.displayName="CSSMotion",r}const Jo=LOe(gne);var M3="add",T3="keep",R3="remove",$T="removed";function BOe(e){var t;return e&&Ht(e)==="object"&&"key"in e?t=e:t={key:e},z(z({},t),{},{key:String(t.key)})}function I3(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(BOe)}function zOe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,o=t.length,i=I3(e),a=I3(t);i.forEach(function(c){for(var u=!1,f=r;f1});return l.forEach(function(c){n=n.filter(function(u){var f=u.key,h=u.status;return f!==c||h!==R3}),n.forEach(function(u){u.key===c&&(u.status=T3)})}),n}var HOe=["component","children","onVisibleChanged","onAllRemoved"],UOe=["status"],WOe=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function VOe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Jo,n=function(r){la(i,r);var o=Pa(i);function i(){var a;br(this,i);for(var s=arguments.length,l=new Array(s),c=0;cnull;var YOe=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 o=0,r=Object.getOwnPropertySymbols(e);ot.endsWith("Color"))}const ZOe=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;t!==void 0&&(K2=t),n!==void 0&&(Sne=n),"holderRender"in e&&(wne=o),r&&(JOe(r)?nOe(tx(),r):Cne=r)},xne=()=>({getPrefixCls:(e,t)=>t||(e?`${tx()}-${e}`:tx()),getIconPrefixCls:QOe,getRootPrefixCls:()=>K2||tx(),getTheme:()=>Cne,holderRender:wne}),eMe=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:i,form:a,locale:s,componentSize:l,direction:c,space:u,splitter:f,virtual:h,dropdownMatchSelectWidth:p,popupMatchSelectWidth:m,popupOverflow:g,legacyLocale:v,parentContext:b,iconPrefixCls:y,theme:S,componentDisabled:w,segmented:E,statistic:C,spin:x,calendar:_,carousel:P,cascader:O,collapse:I,typography:M,checkbox:T,descriptions:D,divider:A,drawer:j,skeleton:k,steps:F,image:V,layout:W,list:K,mentions:L,modal:Q,progress:ee,result:re,slider:ie,breadcrumb:G,menu:X,pagination:ne,input:le,textArea:ce,empty:oe,badge:se,radio:fe,rate:te,switch:he,transfer:pe,avatar:Oe,message:Me,tag:Se,table:ye,card:ve,tabs:be,timeline:Pe,timePicker:Ne,upload:U,notification:H,tree:q,colorPicker:me,datePicker:Ce,rangePicker:ue,flex:Le,wave:He,dropdown:ge,warning:De,tour:qe,tooltip:Fe,popover:Ke,popconfirm:Ue,floatButtonGroup:Ve,variant:Tt,inputNumber:et,treeSelect:st}=e,yt=d.useCallback((vt,Mt)=>{const{prefixCls:Et}=e;if(Mt)return Mt;const ft=Et||b.getPrefixCls("");return vt?`${ft}-${vt}`:ft},[b.getPrefixCls,e.prefixCls]),gt=y||b.iconPrefixCls||m$,Lt=n||b.csp;COe(gt,Lt);const St=_Oe(S,b.theme,{prefixCls:yt("")}),wt={csp:Lt,autoInsertSpaceInButton:r,alert:o,anchor:i,locale:s||v,direction:c,space:u,splitter:f,virtual:h,popupMatchSelectWidth:m??p,popupOverflow:g,getPrefixCls:yt,iconPrefixCls:gt,theme:St,segmented:E,statistic:C,spin:x,calendar:_,carousel:P,cascader:O,collapse:I,typography:M,checkbox:T,descriptions:D,divider:A,drawer:j,skeleton:k,steps:F,image:V,input:le,textArea:ce,layout:W,list:K,mentions:L,modal:Q,progress:ee,result:re,slider:ie,breadcrumb:G,menu:X,pagination:ne,empty:oe,badge:se,radio:fe,rate:te,switch:he,transfer:pe,avatar:Oe,message:Me,tag:Se,table:ye,card:ve,tabs:be,timeline:Pe,timePicker:Ne,upload:U,notification:H,tree:q,colorPicker:me,datePicker:Ce,rangePicker:ue,flex:Le,wave:He,dropdown:ge,warning:De,tour:qe,tooltip:Fe,popover:Ke,popconfirm:Ue,floatButtonGroup:Ve,variant:Tt,inputNumber:et,treeSelect:st},Nt=Object.assign({},b);Object.keys(wt).forEach(vt=>{wt[vt]!==void 0&&(Nt[vt]=wt[vt])}),XOe.forEach(vt=>{const Mt=e[vt];Mt&&(Nt[vt]=Mt)}),typeof r<"u"&&(Nt.button=Object.assign({autoInsertSpace:r},Nt.button));const Be=ed(()=>Nt,Nt,(vt,Mt)=>{const Et=Object.keys(vt),ft=Object.keys(Mt);return Et.length!==ft.length||Et.some(dt=>vt[dt]!==Mt[dt])}),We=d.useMemo(()=>({prefixCls:gt,csp:Lt}),[gt,Lt]);let je=d.createElement(d.Fragment,null,d.createElement(GOe,{dropdownMatchSelectWidth:p}),t);const Xe=d.useMemo(()=>{var vt,Mt,Et,ft;return Um(((vt=Os.Form)===null||vt===void 0?void 0:vt.defaultValidateMessages)||{},((Et=(Mt=Be.locale)===null||Mt===void 0?void 0:Mt.Form)===null||Et===void 0?void 0:Et.defaultValidateMessages)||{},((ft=Be.form)===null||ft===void 0?void 0:ft.validateMessages)||{},(a==null?void 0:a.validateMessages)||{})},[Be,a==null?void 0:a.validateMessages]);Object.keys(Xe).length>0&&(je=d.createElement(Lte.Provider,{value:Xe},je)),s&&(je=d.createElement(NPe,{locale:s,_ANT_MARK__:kPe},je)),(gt||Lt)&&(je=d.createElement(p$.Provider,{value:We},je)),l&&(je=d.createElement(rOe,{size:l},je)),je=d.createElement(qOe,null,je);const pt=d.useMemo(()=>{const vt=St||{},{algorithm:Mt,token:Et,components:ft,cssVar:dt}=vt,Rt=YOe(vt,["algorithm","token","components","cssVar"]),Ct=Mt&&(!Array.isArray(Mt)||Mt.length>0)?up(Mt):Yte,Wt={};Object.entries(ft||{}).forEach($t=>{let[Bt,xt]=$t;const bt=Object.assign({},xt);"algorithm"in bt&&(bt.algorithm===!0?bt.theme=Ct:(Array.isArray(bt.algorithm)||typeof bt.algorithm=="function")&&(bt.theme=up(bt.algorithm)),delete bt.algorithm),Wt[Bt]=bt});const at=Object.assign(Object.assign({},Hg),Et);return Object.assign(Object.assign({},Rt),{theme:Ct,token:at,components:Wt,override:Object.assign({override:at},Wt),cssVar:dt})},[St]);return S&&(je=d.createElement(gA.Provider,{value:pt},je)),Be.warning&&(je=d.createElement(TPe.Provider,{value:Be.warning},je)),w!==void 0&&(je=d.createElement(yA,{disabled:w},je)),d.createElement(Yt.Provider,{value:Be},je)},Mn=e=>{const t=d.useContext(Yt),n=d.useContext(pA);return d.createElement(eMe,Object.assign({parentContext:t,legacyLocale:n},e))};Mn.ConfigContext=Yt;Mn.SizeContext=fp;Mn.config=ZOe;Mn.useConfig=oOe;Object.defineProperty(Mn,"SizeContext",{get:()=>fp});var tMe={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 Ene(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function nMe(e){return Ene(e)instanceof ShadowRoot}function q2(e){return nMe(e)?Ene(e):null}function rMe(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function k3(e,t){yr(e,"[@ant-design/icons] ".concat(t))}function Q9(e){return Ht(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(Ht(e.icon)==="object"||typeof e.icon=="function")}function J9(){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[rMe(n)]=r}return t},{})}function N3(e,t,n){return n?de.createElement(e.tag,z(z({key:t},J9(e.attrs)),n),(e.children||[]).map(function(r,o){return N3(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):de.createElement(e.tag,z({key:t},J9(e.attrs)),(e.children||[]).map(function(r,o){return N3(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function _ne(e){return xf(e)[0]}function $ne(e){return e?Array.isArray(e)?e:[e]:[]}var oMe={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},iMe=` .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); } } `,Pne=function(t){var n=d.useContext(p$),r=n.csp,o=n.prefixCls,i=n.layer,a=iMe;o&&(a=a.replace(/anticon/g,o)),i&&(a="@layer ".concat(i,` { `).concat(a,` }`)),d.useEffect(function(){var s=t.current,l=q2(s);v$(a,"@ant-design-icons",{prepend:!i,csp:r,attachTo:l})},[])},aMe=["icon","className","onClick","style","primaryColor","secondaryColor"],By={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function sMe(e){var t=e.primaryColor,n=e.secondaryColor;By.primaryColor=t,By.secondaryColor=n||_ne(t),By.calculated=!!n}function lMe(){return z({},By)}var Pv=function(t){var n=t.icon,r=t.className,o=t.onClick,i=t.style,a=t.primaryColor,s=t.secondaryColor,l=At(t,aMe),c=d.useRef(),u=By;if(a&&(u={primaryColor:a,secondaryColor:s||_ne(a)}),Pne(c),k3(Q9(n),"icon should be icon definiton, but got ".concat(n)),!Q9(n))return null;var f=n;return f&&typeof f.icon=="function"&&(f=z(z({},f),{},{icon:f.icon(u.primaryColor,u.secondaryColor)})),N3(f.icon,"svg-".concat(f.name),z(z({className:r,onClick:o,style:i,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};Pv.displayName="IconReact";Pv.getTwoToneColors=lMe;Pv.setTwoToneColors=sMe;function One(e){var t=$ne(e),n=$e(t,2),r=n[0],o=n[1];return Pv.setTwoToneColors({primaryColor:r,secondaryColor:o})}function cMe(){var e=Pv.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var uMe=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];One(dp.primary);var Nn=d.forwardRef(function(e,t){var n=e.className,r=e.icon,o=e.spin,i=e.rotate,a=e.tabIndex,s=e.onClick,l=e.twoToneColor,c=At(e,uMe),u=d.useContext(p$),f=u.prefixCls,h=f===void 0?"anticon":f,p=u.rootClassName,m=xe(p,h,Z(Z({},"".concat(h,"-").concat(r.name),!!r.name),"".concat(h,"-spin"),!!o||r.name==="loading"),n),g=a;g===void 0&&s&&(g=-1);var v=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,b=$ne(l),y=$e(b,2),S=y[0],w=y[1];return d.createElement("span",Ge({role:"img","aria-label":r.name},c,{ref:t,tabIndex:g,onClick:s,className:m}),d.createElement(Pv,{icon:r,primaryColor:S,secondaryColor:w,style:v}))});Nn.displayName="AntdIcon";Nn.getTwoToneColor=cMe;Nn.setTwoToneColor=One;var dMe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:tMe}))},Lp=d.forwardRef(dMe),fMe={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"},hMe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:fMe}))},ru=d.forwardRef(hMe),pMe={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"},mMe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:pMe}))},ou=d.forwardRef(mMe),gMe={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"},vMe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:gMe}))},Df=d.forwardRef(vMe),yMe={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"},bMe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:yMe}))},S$=d.forwardRef(bMe),SMe=`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`,CMe=`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`,wMe="".concat(SMe," ").concat(CMe).split(/[\s\n]+/),xMe="aria-",EMe="data-";function Z9(e,t){return e.indexOf(t)===0}function Jr(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=z({},t);var r={};return Object.keys(e).forEach(function(o){(n.aria&&(o==="role"||Z9(o,xMe))||n.data&&Z9(o,EMe)||n.attr&&wMe.includes(o))&&(r[o]=e[o])}),r}function Mne(e){return e&&de.isValidElement(e)&&e.type===de.Fragment}const CA=(e,t,n)=>de.isValidElement(e)?de.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function Zo(e,t){return CA(e,e,t)}const FC=(e,t,n,r,o)=>({background:e,border:`${_e(r.lineWidth)} ${r.lineType} ${t}`,[`${o}-icon`]:{color:n}}),_Me=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:r,marginSM:o,fontSize:i,fontSizeLG:a,lineHeight:s,borderRadiusLG:l,motionEaseInOutCirc:c,withDescriptionIconSize:u,colorText:f,colorTextHeading:h,withDescriptionPadding:p,defaultPadding:m}=e;return{[t]:Object.assign(Object.assign({},Qn(e)),{position:"relative",display:"flex",alignItems:"center",padding:m,wordWrap:"break-word",borderRadius:l,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:r,lineHeight:0},"&-description":{display:"none",fontSize:i,lineHeight:s},"&-message":{color:h},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${c}, opacity ${n} ${c}, padding-top ${n} ${c}, padding-bottom ${n} ${c}, margin-bottom ${n} ${c}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",padding:p,[`${t}-icon`]:{marginInlineEnd:o,fontSize:u,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:r,color:h,fontSize:a},[`${t}-description`]:{display:"block",color:f}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},$Me=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:r,colorSuccessBg:o,colorWarning:i,colorWarningBorder:a,colorWarningBg:s,colorError:l,colorErrorBorder:c,colorErrorBg:u,colorInfo:f,colorInfoBorder:h,colorInfoBg:p}=e;return{[t]:{"&-success":FC(o,r,n,e,t),"&-info":FC(p,h,f,e,t),"&-warning":FC(s,a,i,e,t),"&-error":Object.assign(Object.assign({},FC(u,c,l,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},PMe=e=>{const{componentCls:t,iconCls:n,motionDurationMid:r,marginXS:o,fontSizeIcon:i,colorIcon:a,colorIconHover:s}=e;return{[t]:{"&-action":{marginInlineStart:o},[`${t}-close-icon`]:{marginInlineStart:o,padding:0,overflow:"hidden",fontSize:i,lineHeight:_e(i),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:a,transition:`color ${r}`,"&:hover":{color:s}}},"&-close-text":{color:a,transition:`color ${r}`,"&:hover":{color:s}}}}},OMe=e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}),MMe=Kn("Alert",e=>[_Me(e),$Me(e),PMe(e)],OMe);var ez=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 o=0,r=Object.getOwnPropertySymbols(e);o{const{icon:t,prefixCls:n,type:r}=e,o=TMe[r]||null;return t?CA(t,d.createElement("span",{className:`${n}-icon`},t),()=>({className:xe(`${n}-icon`,t.props.className)})):d.createElement(o,{className:`${n}-icon`})},IMe=e=>{const{isClosable:t,prefixCls:n,closeIcon:r,handleClose:o,ariaProps:i}=e,a=r===!0||r===void 0?d.createElement(ou,null):r;return t?d.createElement("button",Object.assign({type:"button",onClick:o,className:`${n}-close-icon`,tabIndex:0},i),a):null},Tne=d.forwardRef((e,t)=>{const{description:n,prefixCls:r,message:o,banner:i,className:a,rootClassName:s,style:l,onMouseEnter:c,onMouseLeave:u,onClick:f,afterClose:h,showIcon:p,closable:m,closeText:g,closeIcon:v,action:b,id:y}=e,S=ez(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action","id"]),[w,E]=d.useState(!1),C=d.useRef(null);d.useImperativeHandle(t,()=>({nativeElement:C.current}));const{getPrefixCls:x,direction:_,alert:P}=d.useContext(Yt),O=x("alert",r),[I,M,T]=MMe(O),D=L=>{var Q;E(!0),(Q=e.onClose)===null||Q===void 0||Q.call(e,L)},A=d.useMemo(()=>e.type!==void 0?e.type:i?"warning":"info",[e.type,i]),j=d.useMemo(()=>typeof m=="object"&&m.closeIcon||g?!0:typeof m=="boolean"?m:v!==!1&&v!==null&&v!==void 0?!0:!!(P!=null&&P.closable),[g,v,m,P==null?void 0:P.closable]),k=i&&p===void 0?!0:p,F=xe(O,`${O}-${A}`,{[`${O}-with-description`]:!!n,[`${O}-no-icon`]:!k,[`${O}-banner`]:!!i,[`${O}-rtl`]:_==="rtl"},P==null?void 0:P.className,a,s,T,M),V=Jr(S,{aria:!0,data:!0}),W=d.useMemo(()=>{var L,Q;return typeof m=="object"&&m.closeIcon?m.closeIcon:g||(v!==void 0?v:typeof(P==null?void 0:P.closable)=="object"&&(!((L=P==null?void 0:P.closable)===null||L===void 0)&&L.closeIcon)?(Q=P==null?void 0:P.closable)===null||Q===void 0?void 0:Q.closeIcon:P==null?void 0:P.closeIcon)},[v,m,g,P==null?void 0:P.closeIcon]),K=d.useMemo(()=>{const L=m??(P==null?void 0:P.closable);return typeof L=="object"?ez(L,["closeIcon"]):{}},[m,P==null?void 0:P.closable]);return I(d.createElement(Jo,{visible:!w,motionName:`${O}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:L=>({maxHeight:L.offsetHeight}),onLeaveEnd:h},(L,Q)=>{let{className:ee,style:re}=L;return d.createElement("div",Object.assign({id:y,ref:bi(C,Q),"data-show":!w,className:xe(F,ee),style:Object.assign(Object.assign(Object.assign({},P==null?void 0:P.style),l),re),onMouseEnter:c,onMouseLeave:u,onClick:f,role:"alert"},V),k?d.createElement(RMe,{description:n,icon:e.icon,prefixCls:O,type:A}):null,d.createElement("div",{className:`${O}-content`},o?d.createElement("div",{className:`${O}-message`},o):null,n?d.createElement("div",{className:`${O}-description`},n):null),b?d.createElement("div",{className:`${O}-action`},b):null,d.createElement(IMe,{isClosable:j,prefixCls:O,closeIcon:W,handleClose:D,ariaProps:K}))}))});function kMe(e,t,n){return t=cp(t),ate(e,c$()?Reflect.construct(t,n||[],cp(e).constructor):t.apply(e,n))}let NMe=function(e){function t(){var n;return br(this,t),n=kMe(this,t,arguments),n.state={error:void 0,info:{componentStack:""}},n}return la(t,e),Sr(t,[{key:"componentDidCatch",value:function(r,o){this.setState({error:r,info:o})}},{key:"render",value:function(){const{message:r,description:o,id:i,children:a}=this.props,{error:s,info:l}=this.state,c=(l==null?void 0:l.componentStack)||null,u=typeof r>"u"?(s||"").toString():r,f=typeof o>"u"?c:o;return s?d.createElement(Tne,{id:i,type:"error",message:u,description:d.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},f)}):a}}])}(d.Component);const Rne=Tne;Rne.ErrorBoundary=NMe;const tz=e=>typeof e=="object"&&e!=null&&e.nodeType===1,nz=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",PT=(e,t)=>{if(e.clientHeight{const o=(i=>{if(!i.ownerDocument||!i.ownerDocument.defaultView)return null;try{return i.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!o&&(o.clientHeightit||i>e&&a=t&&s>=n?i-e-r:a>t&&sn?a-t+o:0,AMe=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},rz=(e,t)=>{var n,r,o,i;if(typeof document>"u")return[];const{scrollMode:a,block:s,inline:l,boundary:c,skipOverflowHiddenElements:u}=t,f=typeof c=="function"?c:j=>j!==c;if(!tz(e))throw new TypeError("Invalid target");const h=document.scrollingElement||document.documentElement,p=[];let m=e;for(;tz(m)&&f(m);){if(m=AMe(m),m===h){p.push(m);break}m!=null&&m===document.body&&PT(m)&&!PT(document.documentElement)||m!=null&&PT(m,u)&&p.push(m)}const g=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,v=(i=(o=window.visualViewport)==null?void 0:o.height)!=null?i:innerHeight,{scrollX:b,scrollY:y}=window,{height:S,width:w,top:E,right:C,bottom:x,left:_}=e.getBoundingClientRect(),{top:P,right:O,bottom:I,left:M}=(j=>{const k=window.getComputedStyle(j);return{top:parseFloat(k.scrollMarginTop)||0,right:parseFloat(k.scrollMarginRight)||0,bottom:parseFloat(k.scrollMarginBottom)||0,left:parseFloat(k.scrollMarginLeft)||0}})(e);let T=s==="start"||s==="nearest"?E-P:s==="end"?x+I:E+S/2-P+I,D=l==="center"?_+w/2-M+O:l==="end"?C+O:_-M;const A=[];for(let j=0;j=0&&_>=0&&x<=v&&C<=g&&E>=W&&x<=L&&_>=Q&&C<=K)return A;const ee=getComputedStyle(k),re=parseInt(ee.borderLeftWidth,10),ie=parseInt(ee.borderTopWidth,10),G=parseInt(ee.borderRightWidth,10),X=parseInt(ee.borderBottomWidth,10);let ne=0,le=0;const ce="offsetWidth"in k?k.offsetWidth-k.clientWidth-re-G:0,oe="offsetHeight"in k?k.offsetHeight-k.clientHeight-ie-X:0,se="offsetWidth"in k?k.offsetWidth===0?0:V/k.offsetWidth:0,fe="offsetHeight"in k?k.offsetHeight===0?0:F/k.offsetHeight:0;if(h===k)ne=s==="start"?T:s==="end"?T-v:s==="nearest"?LC(y,y+v,v,ie,X,y+T,y+T+S,S):T-v/2,le=l==="start"?D:l==="center"?D-g/2:l==="end"?D-g:LC(b,b+g,g,re,G,b+D,b+D+w,w),ne=Math.max(0,ne+y),le=Math.max(0,le+b);else{ne=s==="start"?T-W-ie:s==="end"?T-L+X+oe:s==="nearest"?LC(W,L,F,ie,X+oe,T,T+S,S):T-(W+F/2)+oe/2,le=l==="start"?D-Q-re:l==="center"?D-(Q+V/2)+ce/2:l==="end"?D-K+G+ce:LC(Q,K,V,re,G+ce,D,D+w,w);const{scrollLeft:te,scrollTop:he}=k;ne=fe===0?0:Math.max(0,Math.min(he+ne/fe,k.scrollHeight-F/fe+oe)),le=se===0?0:Math.max(0,Math.min(te+le/se,k.scrollWidth-V/se+ce)),T+=he-ne,D+=te-le}A.push({el:k,top:ne,left:le})}return A},DMe=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function jMe(e,t){if(!e.isConnected||!(o=>{let i=o;for(;i&&i.parentNode;){if(i.parentNode===document)return!0;i=i.parentNode instanceof ShadowRoot?i.parentNode.host:i.parentNode}return!1})(e))return;const n=(o=>{const i=window.getComputedStyle(o);return{top:parseFloat(i.scrollMarginTop)||0,right:parseFloat(i.scrollMarginRight)||0,bottom:parseFloat(i.scrollMarginBottom)||0,left:parseFloat(i.scrollMarginLeft)||0}})(e);if((o=>typeof o=="object"&&typeof o.behavior=="function")(t))return t.behavior(rz(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:o,top:i,left:a}of rz(e,DMe(t))){const s=i-n.top+n.bottom,l=a-n.left+n.right;o.scroll({top:s,left:l,behavior:r})}}function A3(e){return e!=null&&e===e.window}const FMe=e=>{var t,n;if(typeof window>"u")return 0;let r=0;return A3(e)?r=e.pageYOffset:e instanceof Document?r=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(r=e.scrollTop),e&&!A3(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 LMe(e,t,n,r){const o=n-t;return e/=r/2,e<1?o/2*e*e*e+t:o/2*((e-=2)*e*e+2)+t}function BMe(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:n=()=>window,callback:r,duration:o=450}=t,i=n(),a=FMe(i),s=Date.now(),l=()=>{const u=Date.now()-s,f=LMe(u>o?o:u,a,e,o);A3(i)?i.scrollTo(window.pageXOffset,f):i instanceof Document||i.constructor.name==="HTMLDocument"?i.documentElement.scrollTop=f:i.scrollTop=f,u{const[,,,,t]=Ho();return t?`${e}-css-var`:""};var ut={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>=ut.F1&&n<=ut.F12)return!1;switch(n){case ut.ALT:case ut.CAPS_LOCK:case ut.CONTEXT_MENU:case ut.CTRL:case ut.DOWN:case ut.END:case ut.ESC:case ut.HOME:case ut.INSERT:case ut.LEFT:case ut.MAC_FF_META:case ut.META:case ut.NUMLOCK:case ut.NUM_CENTER:case ut.PAGE_DOWN:case ut.PAGE_UP:case ut.PAUSE:case ut.PRINT_SCREEN:case ut.RIGHT:case ut.SHIFT:case ut.UP:case ut.WIN_KEY:case ut.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=ut.ZERO&&t<=ut.NINE||t>=ut.NUM_ZERO&&t<=ut.NUM_MULTIPLY||t>=ut.A&&t<=ut.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case ut.SPACE:case ut.QUESTION_MARK:case ut.NUM_PLUS:case ut.NUM_MINUS:case ut.NUM_PERIOD:case ut.NUM_DIVISION:case ut.SEMICOLON:case ut.DASH:case ut.EQUALS:case ut.COMMA:case ut.PERIOD:case ut.SLASH:case ut.APOSTROPHE:case ut.SINGLE_QUOTE:case ut.OPEN_SQUARE_BRACKET:case ut.BACKSLASH:case ut.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Ine=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,o=e.className,i=e.duration,a=i===void 0?4.5:i,s=e.showProgress,l=e.pauseOnHover,c=l===void 0?!0:l,u=e.eventKey,f=e.content,h=e.closable,p=e.closeIcon,m=p===void 0?"x":p,g=e.props,v=e.onClick,b=e.onNoticeClose,y=e.times,S=e.hovering,w=d.useState(!1),E=$e(w,2),C=E[0],x=E[1],_=d.useState(0),P=$e(_,2),O=P[0],I=P[1],M=d.useState(0),T=$e(M,2),D=T[0],A=T[1],j=S||C,k=a>0&&s,F=function(){b(u)},V=function(re){(re.key==="Enter"||re.code==="Enter"||re.keyCode===ut.ENTER)&&F()};d.useEffect(function(){if(!j&&a>0){var ee=Date.now()-D,re=setTimeout(function(){F()},a*1e3-D);return function(){c&&clearTimeout(re),A(Date.now()-ee)}}},[a,j,y]),d.useEffect(function(){if(!j&&k&&(c||D===0)){var ee=performance.now(),re,ie=function G(){cancelAnimationFrame(re),re=requestAnimationFrame(function(X){var ne=X+D-ee,le=Math.min(ne/(a*1e3),1);I(le*100),le<1&&G()})};return ie(),function(){c&&cancelAnimationFrame(re)}}},[a,D,j,k,y]);var W=d.useMemo(function(){return Ht(h)==="object"&&h!==null?h:h?{closeIcon:m}:{}},[h,m]),K=Jr(W,!0),L=100-(!O||O<0?0:O>100?100:O),Q="".concat(n,"-notice");return d.createElement("div",Ge({},g,{ref:t,className:xe(Q,o,Z({},"".concat(Q,"-closable"),h)),style:r,onMouseEnter:function(re){var ie;x(!0),g==null||(ie=g.onMouseEnter)===null||ie===void 0||ie.call(g,re)},onMouseLeave:function(re){var ie;x(!1),g==null||(ie=g.onMouseLeave)===null||ie===void 0||ie.call(g,re)},onClick:v}),d.createElement("div",{className:"".concat(Q,"-content")},f),h&&d.createElement("a",Ge({tabIndex:0,className:"".concat(Q,"-close"),onKeyDown:V,"aria-label":"Close"},K,{onClick:function(re){re.preventDefault(),re.stopPropagation(),F()}}),W.closeIcon),k&&d.createElement("progress",{className:"".concat(Q,"-progress"),max:"100",value:L},L+"%"))}),kne=de.createContext({}),Nne=function(t){var n=t.children,r=t.classNames;return de.createElement(kne.Provider,{value:{classNames:r}},n)},oz=8,iz=3,az=16,zMe=function(t){var n={offset:oz,threshold:iz,gap:az};if(t&&Ht(t)==="object"){var r,o,i;n.offset=(r=t.offset)!==null&&r!==void 0?r:oz,n.threshold=(o=t.threshold)!==null&&o!==void 0?o:iz,n.gap=(i=t.gap)!==null&&i!==void 0?i:az}return[!!t,n]},HMe=["className","style","classNames","styles"],UMe=function(t){var n=t.configList,r=t.placement,o=t.prefixCls,i=t.className,a=t.style,s=t.motion,l=t.onAllNoticeRemoved,c=t.onNoticeClose,u=t.stack,f=d.useContext(kne),h=f.classNames,p=d.useRef({}),m=d.useState(null),g=$e(m,2),v=g[0],b=g[1],y=d.useState([]),S=$e(y,2),w=S[0],E=S[1],C=n.map(function(j){return{config:j,key:String(j.key)}}),x=zMe(u),_=$e(x,2),P=_[0],O=_[1],I=O.offset,M=O.threshold,T=O.gap,D=P&&(w.length>0||C.length<=M),A=typeof s=="function"?s(r):s;return d.useEffect(function(){P&&w.length>1&&E(function(j){return j.filter(function(k){return C.some(function(F){var V=F.key;return k===V})})})},[w,C,P]),d.useEffect(function(){var j;if(P&&p.current[(j=C[C.length-1])===null||j===void 0?void 0:j.key]){var k;b(p.current[(k=C[C.length-1])===null||k===void 0?void 0:k.key])}},[C,P]),de.createElement(b$,Ge({key:r,className:xe(o,"".concat(o,"-").concat(r),h==null?void 0:h.list,i,Z(Z({},"".concat(o,"-stack"),!!P),"".concat(o,"-stack-expanded"),D)),style:a,keys:C,motionAppear:!0},A,{onAllRemoved:function(){l(r)}}),function(j,k){var F=j.config,V=j.className,W=j.style,K=j.index,L=F,Q=L.key,ee=L.times,re=String(Q),ie=F,G=ie.className,X=ie.style,ne=ie.classNames,le=ie.styles,ce=At(ie,HMe),oe=C.findIndex(function(Pe){return Pe.key===re}),se={};if(P){var fe=C.length-1-(oe>-1?oe:K-1),te=r==="top"||r==="bottom"?"-50%":"0";if(fe>0){var he,pe,Oe;se.height=D?(he=p.current[re])===null||he===void 0?void 0:he.offsetHeight:v==null?void 0:v.offsetHeight;for(var Me=0,Se=0;Se-1?p.current[re]=Ne:delete p.current[re]},prefixCls:o,classNames:ne,styles:le,className:xe(G,h==null?void 0:h.notice),style:X,times:ee,key:Q,eventKey:Q,onNoticeClose:c,hovering:P&&w.length>0})))})},WMe=d.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,o=e.container,i=e.motion,a=e.maxCount,s=e.className,l=e.style,c=e.onAllRemoved,u=e.stack,f=e.renderNotifications,h=d.useState([]),p=$e(h,2),m=p[0],g=p[1],v=function(P){var O,I=m.find(function(M){return M.key===P});I==null||(O=I.onClose)===null||O===void 0||O.call(I),g(function(M){return M.filter(function(T){return T.key!==P})})};d.useImperativeHandle(t,function(){return{open:function(P){g(function(O){var I=Ze(O),M=I.findIndex(function(A){return A.key===P.key}),T=z({},P);if(M>=0){var D;T.times=(((D=O[M])===null||D===void 0?void 0:D.times)||0)+1,I[M]=T}else T.times=0,I.push(T);return a>0&&I.length>a&&(I=I.slice(-a)),I})},close:function(P){v(P)},destroy:function(){g([])}}});var b=d.useState({}),y=$e(b,2),S=y[0],w=y[1];d.useEffect(function(){var _={};m.forEach(function(P){var O=P.placement,I=O===void 0?"topRight":O;I&&(_[I]=_[I]||[],_[I].push(P))}),Object.keys(S).forEach(function(P){_[P]=_[P]||[]}),w(_)},[m]);var E=function(P){w(function(O){var I=z({},O),M=I[P]||[];return M.length||delete I[P],I})},C=d.useRef(!1);if(d.useEffect(function(){Object.keys(S).length>0?C.current=!0:C.current&&(c==null||c(),C.current=!1)},[S]),!o)return null;var x=Object.keys(S);return _i.createPortal(d.createElement(d.Fragment,null,x.map(function(_){var P=S[_],O=d.createElement(UMe,{key:_,configList:P,placement:_,prefixCls:r,className:s==null?void 0:s(_),style:l==null?void 0:l(_),motion:i,onNoticeClose:v,onAllNoticeRemoved:E,stack:u});return f?f(O,{prefixCls:r,key:_}):O})),o)}),VMe=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],KMe=function(){return document.body},sz=0;function qMe(){for(var e={},t=arguments.length,n=new Array(t),r=0;r0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?KMe:t,r=e.motion,o=e.prefixCls,i=e.maxCount,a=e.className,s=e.style,l=e.onAllRemoved,c=e.stack,u=e.renderNotifications,f=At(e,VMe),h=d.useState(),p=$e(h,2),m=p[0],g=p[1],v=d.useRef(),b=d.createElement(WMe,{container:m,ref:v,prefixCls:o,motion:r,maxCount:i,className:a,style:s,onAllRemoved:l,stack:c,renderNotifications:u}),y=d.useState([]),S=$e(y,2),w=S[0],E=S[1],C=d.useMemo(function(){return{open:function(_){var P=qMe(f,_);(P.key===null||P.key===void 0)&&(P.key="rc-notification-".concat(sz),sz+=1),E(function(O){return[].concat(Ze(O),[{type:"open",config:P}])})},close:function(_){E(function(P){return[].concat(Ze(P),[{type:"close",key:_}])})},destroy:function(){E(function(_){return[].concat(Ze(_),[{type:"destroy"}])})}}},[]);return d.useEffect(function(){g(n())}),d.useEffect(function(){v.current&&w.length&&(w.forEach(function(x){switch(x.type){case"open":v.current.open(x.config);break;case"close":v.current.close(x.key);break;case"destroy":v.current.destroy();break}}),E(function(x){return x.filter(function(_){return!w.includes(_)})}))},[w]),[C,b]}var GMe={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"},YMe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:GMe}))},Gc=d.forwardRef(YMe);const B1=de.createContext(void 0),kd=100,XMe=10,wA=kd*XMe,Dne={Modal:kd,Drawer:kd,Popover:kd,Popconfirm:kd,Tooltip:kd,Tour:kd,FloatButton:kd},QMe={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function JMe(e){return e in Dne}const vl=(e,t)=>{const[,n]=Ho(),r=de.useContext(B1),o=JMe(e);let i;if(t!==void 0)i=[t,t];else{let a=r??0;o?a+=(r?0:n.zIndexPopupBase)+Dne[e]:a+=QMe[e],i=[r===void 0?t:a,a]}return i},ZMe=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:o,colorSuccess:i,colorError:a,colorWarning:s,colorInfo:l,fontSizeLG:c,motionEaseInOutCirc:u,motionDurationSlow:f,marginXS:h,paddingXS:p,borderRadiusLG:m,zIndexPopup:g,contentPadding:v,contentBg:b}=e,y=`${t}-notice`,S=new Gn("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:p,transform:"translateY(0)",opacity:1}}),w=new Gn("MessageMoveOut",{"0%":{maxHeight:e.height,padding:p,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),E={padding:p,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:h,fontSize:c},[`${y}-content`]:{display:"inline-block",padding:v,background:b,borderRadius:m,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:i},[`${t}-error > ${n}`]:{color:a},[`${t}-warning > ${n}`]:{color:s},[`${t}-info > ${n}, ${t}-loading > ${n}`]:{color:l}};return[{[t]:Object.assign(Object.assign({},Qn(e)),{color:o,position:"fixed",top:h,width:"100%",pointerEvents:"none",zIndex:g,[`${t}-move-up`]:{animationFillMode:"forwards"},[` ${t}-move-up-appear, ${t}-move-up-enter `]:{animationName:S,animationDuration:f,animationPlayState:"paused",animationTimingFunction:u},[` ${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:w,animationDuration:f,animationPlayState:"paused",animationTimingFunction:u},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${y}-wrapper`]:Object.assign({},E)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},E),{padding:0,textAlign:"start"})}]},eTe=e=>({zIndexPopup:e.zIndexPopupBase+wA+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),jne=Kn("Message",e=>{const t=kn(e,{height:150});return[ZMe(t)]},eTe);var tTe=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 o=0,r=Object.getOwnPropertySymbols(e);o{let{prefixCls:t,type:n,icon:r,children:o}=e;return d.createElement("div",{className:xe(`${t}-custom-content`,`${t}-${n}`)},r||nTe[n],d.createElement("span",null,o))},rTe=e=>{const{prefixCls:t,className:n,type:r,icon:o,content:i}=e,a=tTe(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:s}=d.useContext(Yt),l=t||s("message"),c=Mr(l),[u,f,h]=jne(l,c);return u(d.createElement(Ine,Object.assign({},a,{prefixCls:l,className:xe(n,f,`${l}-notice-pure-panel`,h,c),eventKey:"pure",duration:null,content:d.createElement(Fne,{prefixCls:l,type:r,icon:o},i)})))};function oTe(e,t){return{motionName:t??`${e}-move-up`}}function xA(e){let t;const n=new Promise(o=>{t=e(()=>{o(!0)})}),r=()=>{t==null||t()};return r.then=(o,i)=>n.then(o,i),r.promise=n,r}var iTe=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 o=0,r=Object.getOwnPropertySymbols(e);o{let{children:t,prefixCls:n}=e;const r=Mr(n),[o,i,a]=jne(n,r);return o(d.createElement(Nne,{classNames:{list:xe(i,a,r)}},t))},cTe=(e,t)=>{let{prefixCls:n,key:r}=t;return d.createElement(lTe,{prefixCls:n,key:r},e)},uTe=d.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:o,maxCount:i,duration:a=sTe,rtl:s,transitionName:l,onAllRemoved:c}=e,{getPrefixCls:u,getPopupContainer:f,message:h,direction:p}=d.useContext(Yt),m=r||u("message"),g=()=>({left:"50%",transform:"translateX(-50%)",top:n??aTe}),v=()=>xe({[`${m}-rtl`]:s??p==="rtl"}),b=()=>oTe(m,l),y=d.createElement("span",{className:`${m}-close-x`},d.createElement(ou,{className:`${m}-close-icon`})),[S,w]=Ane({prefixCls:m,style:g,className:v,motion:b,closable:!1,closeIcon:y,duration:a,getContainer:()=>(o==null?void 0:o())||(f==null?void 0:f())||document.body,maxCount:i,onAllRemoved:c,renderNotifications:cTe});return d.useImperativeHandle(t,()=>Object.assign(Object.assign({},S),{prefixCls:m,message:h})),w});let lz=0;function Lne(e){const t=d.useRef(null);return nu(),[d.useMemo(()=>{const r=l=>{var c;(c=t.current)===null||c===void 0||c.close(l)},o=l=>{if(!t.current){const C=()=>{};return C.then=()=>{},C}const{open:c,prefixCls:u,message:f}=t.current,h=`${u}-notice`,{content:p,icon:m,type:g,key:v,className:b,style:y,onClose:S}=l,w=iTe(l,["content","icon","type","key","className","style","onClose"]);let E=v;return E==null&&(lz+=1,E=`antd-message-${lz}`),xA(C=>(c(Object.assign(Object.assign({},w),{key:E,content:d.createElement(Fne,{prefixCls:u,type:g,icon:m},p),placement:"top",className:xe(g&&`${h}-${g}`,b,f==null?void 0:f.className),style:Object.assign(Object.assign({},f==null?void 0:f.style),y),onClose:()=>{S==null||S(),C()}})),()=>{r(E)}))},a={open:o,destroy:l=>{var c;l!==void 0?r(l):(c=t.current)===null||c===void 0||c.destroy()}};return["info","success","warning","error","loading"].forEach(l=>{const c=(u,f,h)=>{let p;u&&typeof u=="object"&&"content"in u?p=u:p={content:u};let m,g;typeof f=="function"?g=f:(m=f,g=h);const v=Object.assign(Object.assign({onClose:g,duration:m},p),{type:l});return o(v)};a[l]=c}),a},[]),d.createElement(uTe,Object.assign({key:"message-holder"},e,{ref:t}))]}function Bne(e){return Lne(e)}function dTe(){const[e,t]=d.useState([]),n=d.useCallback(r=>(t(o=>[].concat(Ze(o),[r])),()=>{t(o=>o.filter(i=>i!==r))}),[]);return[e,n]}function nr(){nr=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(j,k,F){j[k]=F.value},i=typeof Symbol=="function"?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(j,k,F){return Object.defineProperty(j,k,{value:F,enumerable:!0,configurable:!0,writable:!0}),j[k]}try{c({},"")}catch{c=function(F,V,W){return F[V]=W}}function u(j,k,F,V){var W=k&&k.prototype instanceof b?k:b,K=Object.create(W.prototype),L=new D(V||[]);return o(K,"_invoke",{value:O(j,F,L)}),K}function f(j,k,F){try{return{type:"normal",arg:j.call(k,F)}}catch(V){return{type:"throw",arg:V}}}t.wrap=u;var h="suspendedStart",p="suspendedYield",m="executing",g="completed",v={};function b(){}function y(){}function S(){}var w={};c(w,a,function(){return this});var E=Object.getPrototypeOf,C=E&&E(E(A([])));C&&C!==n&&r.call(C,a)&&(w=C);var x=S.prototype=b.prototype=Object.create(w);function _(j){["next","throw","return"].forEach(function(k){c(j,k,function(F){return this._invoke(k,F)})})}function P(j,k){function F(W,K,L,Q){var ee=f(j[W],j,K);if(ee.type!=="throw"){var re=ee.arg,ie=re.value;return ie&&Ht(ie)=="object"&&r.call(ie,"__await")?k.resolve(ie.__await).then(function(G){F("next",G,L,Q)},function(G){F("throw",G,L,Q)}):k.resolve(ie).then(function(G){re.value=G,L(re)},function(G){return F("throw",G,L,Q)})}Q(ee.arg)}var V;o(this,"_invoke",{value:function(K,L){function Q(){return new k(function(ee,re){F(K,L,ee,re)})}return V=V?V.then(Q,Q):Q()}})}function O(j,k,F){var V=h;return function(W,K){if(V===m)throw Error("Generator is already running");if(V===g){if(W==="throw")throw K;return{value:e,done:!0}}for(F.method=W,F.arg=K;;){var L=F.delegate;if(L){var Q=I(L,F);if(Q){if(Q===v)continue;return Q}}if(F.method==="next")F.sent=F._sent=F.arg;else if(F.method==="throw"){if(V===h)throw V=g,F.arg;F.dispatchException(F.arg)}else F.method==="return"&&F.abrupt("return",F.arg);V=m;var ee=f(j,k,F);if(ee.type==="normal"){if(V=F.done?g:p,ee.arg===v)continue;return{value:ee.arg,done:F.done}}ee.type==="throw"&&(V=g,F.method="throw",F.arg=ee.arg)}}}function I(j,k){var F=k.method,V=j.iterator[F];if(V===e)return k.delegate=null,F==="throw"&&j.iterator.return&&(k.method="return",k.arg=e,I(j,k),k.method==="throw")||F!=="return"&&(k.method="throw",k.arg=new TypeError("The iterator does not provide a '"+F+"' method")),v;var W=f(V,j.iterator,k.arg);if(W.type==="throw")return k.method="throw",k.arg=W.arg,k.delegate=null,v;var K=W.arg;return K?K.done?(k[j.resultName]=K.value,k.next=j.nextLoc,k.method!=="return"&&(k.method="next",k.arg=e),k.delegate=null,v):K:(k.method="throw",k.arg=new TypeError("iterator result is not an object"),k.delegate=null,v)}function M(j){var k={tryLoc:j[0]};1 in j&&(k.catchLoc=j[1]),2 in j&&(k.finallyLoc=j[2],k.afterLoc=j[3]),this.tryEntries.push(k)}function T(j){var k=j.completion||{};k.type="normal",delete k.arg,j.completion=k}function D(j){this.tryEntries=[{tryLoc:"root"}],j.forEach(M,this),this.reset(!0)}function A(j){if(j||j===""){var k=j[a];if(k)return k.call(j);if(typeof j.next=="function")return j;if(!isNaN(j.length)){var F=-1,V=function W(){for(;++F=0;--W){var K=this.tryEntries[W],L=K.completion;if(K.tryLoc==="root")return V("end");if(K.tryLoc<=this.prev){var Q=r.call(K,"catchLoc"),ee=r.call(K,"finallyLoc");if(Q&&ee){if(this.prev=0;--V){var W=this.tryEntries[V];if(W.tryLoc<=this.prev&&r.call(W,"finallyLoc")&&this.prev=0;--F){var V=this.tryEntries[F];if(V.finallyLoc===k)return this.complete(V.completion,V.afterLoc),T(V),v}},catch:function(k){for(var F=this.tryEntries.length-1;F>=0;--F){var V=this.tryEntries[F];if(V.tryLoc===k){var W=V.completion;if(W.type==="throw"){var K=W.arg;T(V)}return K}}throw Error("illegal catch attempt")},delegateYield:function(k,F,V){return this.delegate={iterator:A(k),resultName:F,nextLoc:V},this.method==="next"&&(this.arg=e),v}},t}function cz(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(c){return void n(c)}s.done?t(l):Promise.resolve(l).then(r,o)}function Bo(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(l){cz(i,r,o,a,s,"next",l)}function s(l){cz(i,r,o,a,s,"throw",l)}a(void 0)})}}var z1=z({},sQ),fTe=z1.version,OT=z1.render,hTe=z1.unmountComponentAtNode,C$;try{var pTe=Number((fTe||"").split(".")[0]);pTe>=18&&(C$=z1.createRoot)}catch{}function uz(e){var t=z1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&Ht(t)==="object"&&(t.usingClientEntryPoint=e)}var G2="__rc_react_root__";function mTe(e,t){uz(!0);var n=t[G2]||C$(t);uz(!1),n.render(e),t[G2]=n}function gTe(e,t){OT==null||OT(e,t)}function vTe(e,t){if(C$){mTe(e,t);return}gTe(e,t)}function yTe(e){return D3.apply(this,arguments)}function D3(){return D3=Bo(nr().mark(function e(t){return nr().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var o;(o=t[G2])===null||o===void 0||o.unmount(),delete t[G2]}));case 1:case"end":return r.stop()}},e)})),D3.apply(this,arguments)}function bTe(e){hTe(e)}function STe(e){return j3.apply(this,arguments)}function j3(){return j3=Bo(nr().mark(function e(t){return nr().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(C$===void 0){r.next=2;break}return r.abrupt("return",yTe(t));case 2:bTe(t);case 3:case"end":return r.stop()}},e)})),j3.apply(this,arguments)}const CTe=(e,t)=>(vTe(e,t),()=>STe(t));let wTe=CTe;function EA(){return wTe}const MT=()=>({height:0,opacity:0}),dz=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},xTe=e=>({height:e?e.offsetHeight:0}),TT=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",Ug=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:Wb}-motion-collapse`,onAppearStart:MT,onEnterStart:MT,onAppearActive:dz,onEnterActive:dz,onLeaveStart:xTe,onLeaveActive:MT,onAppearEnd:TT,onEnterEnd:TT,onLeaveEnd:TT,motionDeadline:500}},Mi=(e,t,n)=>n!==void 0?n:`${e}-${t}`,Ov=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 o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1},ETe=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(",")}}}}},_Te=lne("Wave",e=>[ETe(e)]),w$=`${Wb}-wave-target`;function RT(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 $Te(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return RT(t)?t:RT(n)?n:RT(r)?r:null}function IT(e){return Number.isNaN(e)?0:e}const PTe=e=>{const{className:t,target:n,component:r,registerUnmount:o}=e,i=d.useRef(null),a=d.useRef(null);d.useEffect(()=>{a.current=o()},[]);const[s,l]=d.useState(null),[c,u]=d.useState([]),[f,h]=d.useState(0),[p,m]=d.useState(0),[g,v]=d.useState(0),[b,y]=d.useState(0),[S,w]=d.useState(!1),E={left:f,top:p,width:g,height:b,borderRadius:c.map(_=>`${_}px`).join(" ")};s&&(E["--wave-color"]=s);function C(){const _=getComputedStyle(n);l($Te(n));const P=_.position==="static",{borderLeftWidth:O,borderTopWidth:I}=_;h(P?n.offsetLeft:IT(-parseFloat(O))),m(P?n.offsetTop:IT(-parseFloat(I))),v(n.offsetWidth),y(n.offsetHeight);const{borderTopLeftRadius:M,borderTopRightRadius:T,borderBottomLeftRadius:D,borderBottomRightRadius:A}=_;u([M,T,A,D].map(j=>IT(parseFloat(j))))}if(d.useEffect(()=>{if(n){const _=zn(()=>{C(),w(!0)});let P;return typeof ResizeObserver<"u"&&(P=new ResizeObserver(C),P.observe(n)),()=>{zn.cancel(_),P==null||P.disconnect()}}},[]),!S)return null;const x=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(w$));return d.createElement(Jo,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(_,P)=>{var O,I;if(P.deadline||P.propertyName==="opacity"){const M=(O=i.current)===null||O===void 0?void 0:O.parentElement;(I=a.current)===null||I===void 0||I.call(a).then(()=>{M==null||M.remove()})}return!1}},(_,P)=>{let{className:O}=_;return d.createElement("div",{ref:bi(i,P),className:xe(t,O,{"wave-quick":x}),style:E})})},OTe=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.checked))return;const o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",e==null||e.insertBefore(o,e==null?void 0:e.firstChild);const i=EA();let a=null;function s(){return a}a=i(d.createElement(PTe,Object.assign({},t,{target:e,registerUnmount:s})),o)},MTe=(e,t,n)=>{const{wave:r}=d.useContext(Yt),[,o,i]=Ho(),a=An(c=>{const u=e.current;if(r!=null&&r.disabled||!u)return;const f=u.querySelector(`.${w$}`)||u,{showEffect:h}=r||{};(h||OTe)(f,{className:t,token:o,component:n,event:c,hashId:i})}),s=d.useRef(null);return c=>{zn.cancel(s.current),s.current=zn(()=>{a(c)})}},H1=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=d.useContext(Yt),i=d.useRef(null),a=o("wave"),[,s]=_Te(a),l=MTe(i,xe(a,s),r);if(de.useEffect(()=>{const u=i.current;if(!u||u.nodeType!==1||n)return;const f=h=>{!Ov(h.target)||!u.getAttribute||u.getAttribute("disabled")||u.disabled||u.className.includes("disabled")||u.className.includes("-leave")||l(h)};return u.addEventListener("click",f,!0),()=>{u.removeEventListener("click",f,!0)}},[n]),!de.isValidElement(t))return t??null;const c=tc(t)?bi(Af(t),i):i;return Zo(t,{ref:c})},Eo=e=>{const t=de.useContext(fp);return de.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},TTe=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},RTe=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"}}}},ITe=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}}}},zne=Kn("Space",e=>{const t=kn(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[RTe(t),ITe(t),TTe(t)]},()=>({}),{resetStyle:!1});var Hne=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 o=0,r=Object.getOwnPropertySymbols(e);o{const n=d.useContext(x$),r=d.useMemo(()=>{if(!n)return"";const{compactDirection:o,isFirstItem:i,isLastItem:a}=n,s=o==="vertical"?"-vertical-":"-";return xe(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:i,[`${e}-compact${s}last-item`]:a,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},kTe=e=>{let{children:t}=e;return d.createElement(x$.Provider,{value:null},t)},NTe=e=>{var{children:t}=e,n=Hne(e,["children"]);return d.createElement(x$.Provider,{value:n},t)},ATe=e=>{const{getPrefixCls:t,direction:n}=d.useContext(Yt),{size:r,direction:o,block:i,prefixCls:a,className:s,rootClassName:l,children:c}=e,u=Hne(e,["size","direction","block","prefixCls","className","rootClassName","children"]),f=Eo(S=>r??S),h=t("space-compact",a),[p,m]=zne(h),g=xe(h,m,{[`${h}-rtl`]:n==="rtl",[`${h}-block`]:i,[`${h}-vertical`]:o==="vertical"},s,l),v=d.useContext(x$),b=ai(c),y=d.useMemo(()=>b.map((S,w)=>{const E=(S==null?void 0:S.key)||`${h}-item-${w}`;return d.createElement(NTe,{key:E,compactSize:f,compactDirection:o,isFirstItem:w===0&&(!v||(v==null?void 0:v.isFirstItem)),isLastItem:w===b.length-1&&(!v||(v==null?void 0:v.isLastItem))},S)}),[r,b,v]);return b.length===0?null:p(d.createElement("div",Object.assign({className:g},u),y))};var DTe=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 o=0,r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:t,direction:n}=d.useContext(Yt),{prefixCls:r,size:o,className:i}=e,a=DTe(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,l]=Ho();let c="";switch(o){case"large":c="lg";break;case"small":c="sm";break}const u=xe(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:n==="rtl"},i,l);return d.createElement(Une.Provider,{value:o},d.createElement("div",Object.assign({},a,{className:u})))},fz=/^[\u4E00-\u9FA5]{2}$/,F3=fz.test.bind(fz);function _A(e){return e==="danger"?{danger:!0}:{type:e}}function hz(e){return typeof e=="string"}function kT(e){return e==="text"||e==="link"}function FTe(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&hz(e.type)&&F3(e.props.children)?Zo(e,{children:e.props.children.split("").join(n)}):hz(e)?F3(e)?de.createElement("span",null,e.split("").join(n)):de.createElement("span",null,e):Mne(e)?de.createElement("span",null,e):e}function LTe(e,t){let n=!1;const r=[];return de.Children.forEach(e,o=>{const i=typeof o,a=i==="string"||i==="number";if(n&&a){const s=r.length-1,l=r[s];r[s]=`${l}${o}`}else r.push(o);n=a}),de.Children.map(r,o=>FTe(o,t))}["default","primary","danger"].concat(Ze(pp));const L3=d.forwardRef((e,t)=>{const{className:n,style:r,children:o,prefixCls:i}=e,a=xe(`${i}-icon`,n);return de.createElement("span",{ref:t,className:a,style:r},o)}),pz=d.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:o,iconClassName:i}=e,a=xe(`${n}-loading-icon`,r);return de.createElement(L3,{prefixCls:n,className:a,style:o,ref:t},de.createElement(Gc,{className:i}))}),NT=()=>({width:0,opacity:0,transform:"scale(0)"}),AT=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),BTe=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:i,mount:a}=e,s=!!n;return r?de.createElement(pz,{prefixCls:t,className:o,style:i}):de.createElement(Jo,{visible:s,motionName:`${t}-loading-icon-motion`,motionAppear:!a,motionEnter:!a,motionLeave:!a,removeOnLeave:!0,onAppearStart:NT,onAppearActive:AT,onEnterStart:NT,onEnterActive:AT,onLeaveStart:AT,onLeaveActive:NT},(l,c)=>{let{className:u,style:f}=l;const h=Object.assign(Object.assign({},i),f);return de.createElement(pz,{prefixCls:t,className:xe(o,u),style:h,ref:c})})},mz=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),zTe=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:i}=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}},mz(`${t}-primary`,o),mz(`${t}-danger`,i)]}};var HTe=["b"],UTe=["v"],DT=function(t){return Math.round(Number(t||0))},WTe=function(t){if(t instanceof Un)return t;if(t&&Ht(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,o=At(n,HTe);return z(z({},o),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},oc=function(e){la(n,e);var t=Pa(n);function n(r){return br(this,n),t.call(this,WTe(r))}return Sr(n,[{key:"toHsbString",value:function(){var o=this.toHsb(),i=DT(o.s*100),a=DT(o.b*100),s=DT(o.h),l=o.a,c="hsb(".concat(s,", ").concat(i,"%, ").concat(a,"%)"),u="hsba(".concat(s,", ").concat(i,"%, ").concat(a,"%, ").concat(l.toFixed(l===0?0:2),")");return l===1?c:u}},{key:"toHsb",value:function(){var o=this.toHsv(),i=o.v,a=At(o,UTe);return z(z({},a),{},{b:i,a:this.a})}}]),n}(Un),VTe="rc-color-picker",og=function(t){return t instanceof oc?t:new oc(t)},KTe=og("#1677ff"),Wne=function(t){var n=t.offset,r=t.targetRef,o=t.containerRef,i=t.color,a=t.type,s=o.current.getBoundingClientRect(),l=s.width,c=s.height,u=r.current.getBoundingClientRect(),f=u.width,h=u.height,p=f/2,m=h/2,g=(n.x+p)/l,v=1-(n.y+m)/c,b=i.toHsb(),y=g,S=(n.x+p)/l*360;if(a)switch(a){case"hue":return og(z(z({},b),{},{h:S<=0?0:S}));case"alpha":return og(z(z({},b),{},{a:y<=0?0:y}))}return og({h:b.h,s:g<=0?0:g,b:v>=1?1:v,a:b.a})},Vne=function(t,n){var r=t.toHsb();switch(n){case"hue":return{x:r.h/360*100,y:50};case"alpha":return{x:t.a*100,y:50};default:return{x:r.s*100,y:(1-r.b)*100}}},$A=function(t){var n=t.color,r=t.prefixCls,o=t.className,i=t.style,a=t.onClick,s="".concat(r,"-color-block");return de.createElement("div",{className:xe(s,o),style:i,onClick:a},de.createElement("div",{className:"".concat(s,"-inner"),style:{background:n}}))};function qTe(e){var t="touches"in e?e.touches[0]:e,n=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,r=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:t.pageX-n,pageY:t.pageY-r}}function Kne(e){var t=e.targetRef,n=e.containerRef,r=e.direction,o=e.onDragChange,i=e.onDragChangeComplete,a=e.calculate,s=e.color,l=e.disabledDrag,c=d.useState({x:0,y:0}),u=$e(c,2),f=u[0],h=u[1],p=d.useRef(null),m=d.useRef(null);d.useEffect(function(){h(a())},[s]),d.useEffect(function(){return function(){document.removeEventListener("mousemove",p.current),document.removeEventListener("mouseup",m.current),document.removeEventListener("touchmove",p.current),document.removeEventListener("touchend",m.current),p.current=null,m.current=null}},[]);var g=function(w){var E=qTe(w),C=E.pageX,x=E.pageY,_=n.current.getBoundingClientRect(),P=_.x,O=_.y,I=_.width,M=_.height,T=t.current.getBoundingClientRect(),D=T.width,A=T.height,j=D/2,k=A/2,F=Math.max(0,Math.min(C-P,I))-j,V=Math.max(0,Math.min(x-O,M))-k,W={x:F,y:r==="x"?f.y:V};if(D===0&&A===0||D!==A)return!1;o==null||o(W)},v=function(w){w.preventDefault(),g(w)},b=function(w){w.preventDefault(),document.removeEventListener("mousemove",p.current),document.removeEventListener("mouseup",m.current),document.removeEventListener("touchmove",p.current),document.removeEventListener("touchend",m.current),p.current=null,m.current=null,i==null||i()},y=function(w){document.removeEventListener("mousemove",p.current),document.removeEventListener("mouseup",m.current),!l&&(g(w),document.addEventListener("mousemove",v),document.addEventListener("mouseup",b),document.addEventListener("touchmove",v),document.addEventListener("touchend",b),p.current=v,m.current=b)};return[f,y]}var qne=function(t){var n=t.size,r=n===void 0?"default":n,o=t.color,i=t.prefixCls;return de.createElement("div",{className:xe("".concat(i,"-handler"),Z({},"".concat(i,"-handler-sm"),r==="small")),style:{backgroundColor:o}})},Gne=function(t){var n=t.children,r=t.style,o=t.prefixCls;return de.createElement("div",{className:"".concat(o,"-palette"),style:z({position:"relative"},r)},n)},Yne=d.forwardRef(function(e,t){var n=e.children,r=e.x,o=e.y;return de.createElement("div",{ref:t,style:{position:"absolute",left:"".concat(r,"%"),top:"".concat(o,"%"),zIndex:1,transform:"translate(-50%, -50%)"}},n)}),GTe=function(t){var n=t.color,r=t.onChange,o=t.prefixCls,i=t.onChangeComplete,a=t.disabled,s=d.useRef(),l=d.useRef(),c=d.useRef(n),u=An(function(g){var v=Wne({offset:g,targetRef:l,containerRef:s,color:n});c.current=v,r(v)}),f=Kne({color:n,containerRef:s,targetRef:l,calculate:function(){return Vne(n)},onDragChange:u,onDragChangeComplete:function(){return i==null?void 0:i(c.current)},disabledDrag:a}),h=$e(f,2),p=h[0],m=h[1];return de.createElement("div",{ref:s,className:"".concat(o,"-select"),onMouseDown:m,onTouchStart:m},de.createElement(Gne,{prefixCls:o},de.createElement(Yne,{x:p.x,y:p.y,ref:l},de.createElement(qne,{color:n.toRgbString(),prefixCls:o})),de.createElement("div",{className:"".concat(o,"-saturation"),style:{backgroundColor:"hsl(".concat(n.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},YTe=function(t,n){var r=xn(t,{value:n}),o=$e(r,2),i=o[0],a=o[1],s=d.useMemo(function(){return og(i)},[i]);return[s,a]},XTe=function(t){var n=t.colors,r=t.children,o=t.direction,i=o===void 0?"to right":o,a=t.type,s=t.prefixCls,l=d.useMemo(function(){return n.map(function(c,u){var f=og(c);return a==="alpha"&&u===n.length-1&&(f=new oc(f.setA(1))),f.toRgbString()}).join(",")},[n,a]);return de.createElement("div",{className:"".concat(s,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(i,", ").concat(l,")")}},r)},QTe=function(t){var n=t.prefixCls,r=t.colors,o=t.disabled,i=t.onChange,a=t.onChangeComplete,s=t.color,l=t.type,c=d.useRef(),u=d.useRef(),f=d.useRef(s),h=function(E){return l==="hue"?E.getHue():E.a*100},p=An(function(w){var E=Wne({offset:w,targetRef:u,containerRef:c,color:s,type:l});f.current=E,i(h(E))}),m=Kne({color:s,targetRef:u,containerRef:c,calculate:function(){return Vne(s,l)},onDragChange:p,onDragChangeComplete:function(){a(h(f.current))},direction:"x",disabledDrag:o}),g=$e(m,2),v=g[0],b=g[1],y=de.useMemo(function(){if(l==="hue"){var w=s.toHsb();w.s=1,w.b=1,w.a=1;var E=new oc(w);return E}return s},[s,l]),S=de.useMemo(function(){return r.map(function(w){return"".concat(w.color," ").concat(w.percent,"%")})},[r]);return de.createElement("div",{ref:c,className:xe("".concat(n,"-slider"),"".concat(n,"-slider-").concat(l)),onMouseDown:b,onTouchStart:b},de.createElement(Gne,{prefixCls:n},de.createElement(Yne,{x:v.x,y:v.y,ref:u},de.createElement(qne,{size:"small",color:y.toHexString(),prefixCls:n})),de.createElement(XTe,{colors:S,type:l,prefixCls:n})))};function JTe(e){return d.useMemo(function(){var t=e||{},n=t.slider;return[n||QTe]},[e])}var ZTe=[{color:"rgb(255, 0, 0)",percent:0},{color:"rgb(255, 255, 0)",percent:17},{color:"rgb(0, 255, 0)",percent:33},{color:"rgb(0, 255, 255)",percent:50},{color:"rgb(0, 0, 255)",percent:67},{color:"rgb(255, 0, 255)",percent:83},{color:"rgb(255, 0, 0)",percent:100}],eRe=d.forwardRef(function(e,t){var n=e.value,r=e.defaultValue,o=e.prefixCls,i=o===void 0?VTe:o,a=e.onChange,s=e.onChangeComplete,l=e.className,c=e.style,u=e.panelRender,f=e.disabledAlpha,h=f===void 0?!1:f,p=e.disabled,m=p===void 0?!1:p,g=e.components,v=JTe(g),b=$e(v,1),y=b[0],S=YTe(r||KTe,n),w=$e(S,2),E=w[0],C=w[1],x=d.useMemo(function(){return E.setA(1).toRgbString()},[E]),_=function(V,W){n||C(V),a==null||a(V,W)},P=function(V){return new oc(E.setHue(V))},O=function(V){return new oc(E.setA(V/100))},I=function(V){_(P(V),{type:"hue",value:V})},M=function(V){_(O(V),{type:"alpha",value:V})},T=function(V){s&&s(P(V))},D=function(V){s&&s(O(V))},A=xe("".concat(i,"-panel"),l,Z({},"".concat(i,"-panel-disabled"),m)),j={prefixCls:i,disabled:m,color:E},k=de.createElement(de.Fragment,null,de.createElement(GTe,Ge({onChange:_},j,{onChangeComplete:s})),de.createElement("div",{className:"".concat(i,"-slider-container")},de.createElement("div",{className:xe("".concat(i,"-slider-group"),Z({},"".concat(i,"-slider-group-disabled-alpha"),h))},de.createElement(y,Ge({},j,{type:"hue",colors:ZTe,min:0,max:359,value:E.getHue(),onChange:I,onChangeComplete:T})),!h&&de.createElement(y,Ge({},j,{type:"alpha",colors:[{percent:0,color:"rgba(255, 0, 4, 0)"},{percent:100,color:x}],min:0,max:100,value:E.a*100,onChange:M,onChangeComplete:D}))),de.createElement($A,{color:E.toRgbString(),prefixCls:i})));return de.createElement("div",{className:A,style:c,ref:t},typeof u=="function"?u(k):k)});const uy=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"",tRe=(e,t)=>e?uy(e,t):"";let Ss=function(){function e(t){br(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(o=>({color:new e(o.color),percent:o.percent})),this.cleared=t.cleared;return}const r=Array.isArray(t);r&&t.length?(this.colors=t.map(o=>{let{color:i,percent:a}=o;return{color:new e(i),percent:a}}),this.metaColor=new oc(this.colors[0].color.metaColor)):this.metaColor=new oc(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return Sr(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return tRe(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(o=>`${o.color.toRgbString()} ${o.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,o)=>{const i=n.colors[o];return r.percent===i.percent&&r.color.equals(i.color)}):this.toHexString()===n.toHexString()}}])}();var nRe={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"},rRe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:nRe}))},nd=d.forwardRef(rRe),Xne=de.forwardRef(function(e,t){var n=e.prefixCls,r=e.forceRender,o=e.className,i=e.style,a=e.children,s=e.isActive,l=e.role,c=e.classNames,u=e.styles,f=de.useState(s||r),h=$e(f,2),p=h[0],m=h[1];return de.useEffect(function(){(r||s)&&m(!0)},[r,s]),p?de.createElement("div",{ref:t,className:xe("".concat(n,"-content"),Z(Z({},"".concat(n,"-content-active"),s),"".concat(n,"-content-inactive"),!s),o),style:i,role:l},de.createElement("div",{className:xe("".concat(n,"-content-box"),c==null?void 0:c.body),style:u==null?void 0:u.body},a)):null});Xne.displayName="PanelContent";var oRe=["showArrow","headerClass","isActive","onItemClick","forceRender","className","classNames","styles","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],Qne=de.forwardRef(function(e,t){var n=e.showArrow,r=n===void 0?!0:n,o=e.headerClass,i=e.isActive,a=e.onItemClick,s=e.forceRender,l=e.className,c=e.classNames,u=c===void 0?{}:c,f=e.styles,h=f===void 0?{}:f,p=e.prefixCls,m=e.collapsible,g=e.accordion,v=e.panelKey,b=e.extra,y=e.header,S=e.expandIcon,w=e.openMotion,E=e.destroyInactivePanel,C=e.children,x=At(e,oRe),_=m==="disabled",P=b!=null&&typeof b!="boolean",O=Z(Z(Z({onClick:function(){a==null||a(v)},onKeyDown:function(k){(k.key==="Enter"||k.keyCode===ut.ENTER||k.which===ut.ENTER)&&(a==null||a(v))},role:g?"tab":"button"},"aria-expanded",i),"aria-disabled",_),"tabIndex",_?-1:0),I=typeof S=="function"?S(e):de.createElement("i",{className:"arrow"}),M=I&&de.createElement("div",Ge({className:"".concat(p,"-expand-icon")},["header","icon"].includes(m)?O:{}),I),T=xe("".concat(p,"-item"),Z(Z({},"".concat(p,"-item-active"),i),"".concat(p,"-item-disabled"),_),l),D=xe(o,"".concat(p,"-header"),Z({},"".concat(p,"-collapsible-").concat(m),!!m),u.header),A=z({className:D,style:h.header},["header","icon"].includes(m)?{}:O);return de.createElement("div",Ge({},x,{ref:t,className:T}),de.createElement("div",A,r&&M,de.createElement("span",Ge({className:"".concat(p,"-header-text")},m==="header"?O:{}),y),P&&de.createElement("div",{className:"".concat(p,"-extra")},b)),de.createElement(Jo,Ge({visible:i,leavedClassName:"".concat(p,"-content-hidden")},w,{forceRender:s,removeOnLeave:E}),function(j,k){var F=j.className,V=j.style;return de.createElement(Xne,{ref:k,prefixCls:p,className:F,classNames:u,style:V,styles:h,isActive:i,forceRender:s,role:g?"tabpanel":void 0},C)}))}),iRe=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],aRe=function(t,n){var r=n.prefixCls,o=n.accordion,i=n.collapsible,a=n.destroyInactivePanel,s=n.onItemClick,l=n.activeKey,c=n.openMotion,u=n.expandIcon;return t.map(function(f,h){var p=f.children,m=f.label,g=f.key,v=f.collapsible,b=f.onItemClick,y=f.destroyInactivePanel,S=At(f,iRe),w=String(g??h),E=v??i,C=y??a,x=function(O){E!=="disabled"&&(s(O),b==null||b(O))},_=!1;return o?_=l[0]===w:_=l.indexOf(w)>-1,de.createElement(Qne,Ge({},S,{prefixCls:r,key:w,panelKey:w,isActive:_,accordion:o,openMotion:c,expandIcon:u,header:m,collapsible:E,onItemClick:x,destroyInactivePanel:C}),p)})},sRe=function(t,n,r){if(!t)return null;var o=r.prefixCls,i=r.accordion,a=r.collapsible,s=r.destroyInactivePanel,l=r.onItemClick,c=r.activeKey,u=r.openMotion,f=r.expandIcon,h=t.key||String(n),p=t.props,m=p.header,g=p.headerClass,v=p.destroyInactivePanel,b=p.collapsible,y=p.onItemClick,S=!1;i?S=c[0]===h:S=c.indexOf(h)>-1;var w=b??a,E=function(_){w!=="disabled"&&(l(_),y==null||y(_))},C={key:h,panelKey:h,header:m,headerClass:g,isActive:S,prefixCls:o,destroyInactivePanel:v??s,openMotion:u,accordion:i,children:t.props.children,onItemClick:E,expandIcon:f,collapsible:w};return typeof t.type=="string"?t:(Object.keys(C).forEach(function(x){typeof C[x]>"u"&&delete C[x]}),de.cloneElement(t,C))};function lRe(e,t,n){return Array.isArray(e)?aRe(e,n):ai(t).map(function(r,o){return sRe(r,o,n)})}function cRe(e){var t=e;if(!Array.isArray(t)){var n=Ht(t);t=n==="number"||n==="string"?[t]:[]}return t.map(function(r){return String(r)})}var uRe=de.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-collapse":n,o=e.destroyInactivePanel,i=o===void 0?!1:o,a=e.style,s=e.accordion,l=e.className,c=e.children,u=e.collapsible,f=e.openMotion,h=e.expandIcon,p=e.activeKey,m=e.defaultActiveKey,g=e.onChange,v=e.items,b=xe(r,l),y=xn([],{value:p,onChange:function(P){return g==null?void 0:g(P)},defaultValue:m,postState:cRe}),S=$e(y,2),w=S[0],E=S[1],C=function(P){return E(function(){if(s)return w[0]===P?[]:[P];var O=w.indexOf(P),I=O>-1;return I?w.filter(function(M){return M!==P}):[].concat(Ze(w),[P])})};yr(!c,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var x=lRe(v,c,{prefixCls:r,accordion:s,openMotion:f,expandIcon:h,collapsible:u,destroyInactivePanel:i,onItemClick:C,activeKey:w});return de.createElement("div",Ge({ref:t,className:b,style:a,role:s?"tablist":void 0},Jr(e,{aria:!0,data:!0})),x)});const PA=Object.assign(uRe,{Panel:Qne});PA.Panel;const dRe=d.forwardRef((e,t)=>{const{getPrefixCls:n}=d.useContext(Yt),{prefixCls:r,className:o,showArrow:i=!0}=e,a=n("collapse",r),s=xe({[`${a}-no-arrow`]:!i},o);return d.createElement(PA.Panel,Object.assign({ref:t},e,{prefixCls:a,className:s}))}),U1=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`}}}),fRe=e=>({animationDuration:e,animationFillMode:"both"}),hRe=e=>({animationDuration:e,animationFillMode:"both"}),E$=function(e,t,n,r){const i=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[` ${i}${e}-enter, ${i}${e}-appear `]:Object.assign(Object.assign({},fRe(r)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},hRe(r)),{animationPlayState:"paused"}),[` ${i}${e}-enter${e}-enter-active, ${i}${e}-appear${e}-appear-active `]:{animationName:t,animationPlayState:"running"},[`${i}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},pRe=new Gn("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),mRe=new Gn("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),OA=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return[E$(r,pRe,mRe,e.motionDurationMid,t),{[` ${o}${r}-enter, ${o}${r}-appear `]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]},gRe=new Gn("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),vRe=new Gn("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),yRe=new Gn("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),bRe=new Gn("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),SRe=new Gn("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),CRe=new Gn("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),wRe=new Gn("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),xRe=new Gn("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),ERe={"move-up":{inKeyframes:wRe,outKeyframes:xRe},"move-down":{inKeyframes:gRe,outKeyframes:vRe},"move-left":{inKeyframes:yRe,outKeyframes:bRe},"move-right":{inKeyframes:SRe,outKeyframes:CRe}},Wg=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=ERe[t];return[E$(r,o,i,e.motionDurationMid),{[` ${r}-enter, ${r}-appear `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},_$=new Gn("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),$$=new Gn("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),P$=new Gn("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),O$=new Gn("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),_Re=new Gn("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),$Re=new Gn("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),PRe=new Gn("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),ORe=new Gn("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),MRe={"slide-up":{inKeyframes:_$,outKeyframes:$$},"slide-down":{inKeyframes:P$,outKeyframes:O$},"slide-left":{inKeyframes:_Re,outKeyframes:$Re},"slide-right":{inKeyframes:PRe,outKeyframes:ORe}},Yc=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=MRe[t];return[E$(r,o,i,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}}]},MA=new Gn("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),TRe=new Gn("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),gz=new Gn("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),vz=new Gn("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),RRe=new Gn("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),IRe=new Gn("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),kRe=new Gn("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),NRe=new Gn("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),ARe=new Gn("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),DRe=new Gn("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),jRe=new Gn("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),FRe=new Gn("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),LRe={zoom:{inKeyframes:MA,outKeyframes:TRe},"zoom-big":{inKeyframes:gz,outKeyframes:vz},"zoom-big-fast":{inKeyframes:gz,outKeyframes:vz},"zoom-left":{inKeyframes:kRe,outKeyframes:NRe},"zoom-right":{inKeyframes:ARe,outKeyframes:DRe},"zoom-up":{inKeyframes:RRe,outKeyframes:IRe},"zoom-down":{inKeyframes:jRe,outKeyframes:FRe}},Mv=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=LRe[t];return[E$(r,o,i,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}}]},BRe=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:o,headerPadding:i,collapseHeaderPaddingSM:a,collapseHeaderPaddingLG:s,collapsePanelBorderRadius:l,lineWidth:c,lineType:u,colorBorder:f,colorText:h,colorTextHeading:p,colorTextDisabled:m,fontSizeLG:g,lineHeight:v,lineHeightLG:b,marginSM:y,paddingSM:S,paddingLG:w,paddingXS:E,motionDurationSlow:C,fontSizeIcon:x,contentPadding:_,fontHeight:P,fontHeightLG:O}=e,I=`${_e(c)} ${u} ${f}`;return{[t]:Object.assign(Object.assign({},Qn(e)),{backgroundColor:o,border:I,borderRadius:l,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:I,"&:first-child":{[` &, & > ${t}-header`]:{borderRadius:`${_e(l)} ${_e(l)} 0 0`}},"&:last-child":{[` &, & > ${t}-header`]:{borderRadius:`0 0 ${_e(l)} ${_e(l)}`}},[`> ${t}-header`]:Object.assign(Object.assign({position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:i,color:p,lineHeight:v,cursor:"pointer",transition:`all ${C}, visibility 0s`},Ka(e)),{[`> ${t}-header-text`]:{flex:"auto"},[`${t}-expand-icon`]:{height:P,display:"flex",alignItems:"center",paddingInlineEnd:y},[`${t}-arrow`]:Object.assign(Object.assign({},Fp()),{fontSize:x,transition:`transform ${C}`,svg:{transition:`transform ${C}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}}),[`${t}-collapsible-header`]:{cursor:"default",[`${t}-header-text`]:{flex:"none",cursor:"pointer"}},[`${t}-collapsible-icon`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:h,backgroundColor:n,borderTop:I,[`& > ${t}-content-box`]:{padding:_},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:a,paddingInlineStart:E,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(S).sub(E).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:S}}},"&-large":{[`> ${t}-item`]:{fontSize:g,lineHeight:b,[`> ${t}-header`]:{padding:s,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:O,marginInlineStart:e.calc(w).sub(r).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:w}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-content`]:{borderRadius:`0 0 ${_e(l)} ${_e(l)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:m,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:y}}}}})}},zRe=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},HRe=e=>{const{componentCls:t,headerBg:n,paddingXXS:r,colorBorder:o}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${o}`},[` > ${t}-item:last-child, > ${t}-item:last-child ${t}-header `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:r}}}},URe=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}},WRe=e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer}),VRe=Kn("Collapse",e=>{const t=kn(e,{collapseHeaderPaddingSM:`${_e(e.paddingXS)} ${_e(e.paddingSM)}`,collapseHeaderPaddingLG:`${_e(e.padding)} ${_e(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[BRe(t),HRe(t),URe(t),zRe(t),U1(t)]},WRe),KRe=d.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,collapse:o}=d.useContext(Yt),{prefixCls:i,className:a,rootClassName:s,style:l,bordered:c=!0,ghost:u,size:f,expandIconPosition:h="start",children:p,expandIcon:m}=e,g=Eo(I=>{var M;return(M=f??I)!==null&&M!==void 0?M:"middle"}),v=n("collapse",i),b=n(),[y,S,w]=VRe(v),E=d.useMemo(()=>h==="left"?"start":h==="right"?"end":h,[h]),C=m??(o==null?void 0:o.expandIcon),x=d.useCallback(function(){let I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const M=typeof C=="function"?C(I):d.createElement(nd,{rotate:I.isActive?r==="rtl"?-90:90:void 0,"aria-label":I.isActive?"expanded":"collapsed"});return Zo(M,()=>{var T;return{className:xe((T=M==null?void 0:M.props)===null||T===void 0?void 0:T.className,`${v}-arrow`)}})},[C,v]),_=xe(`${v}-icon-position-${E}`,{[`${v}-borderless`]:!c,[`${v}-rtl`]:r==="rtl",[`${v}-ghost`]:!!u,[`${v}-${g}`]:g!=="middle"},o==null?void 0:o.className,a,s,S,w),P=Object.assign(Object.assign({},Ug(b)),{motionAppear:!1,leavedClassName:`${v}-content-hidden`}),O=d.useMemo(()=>p?ai(p).map((I,M)=>{var T,D;const A=I.props;if(A!=null&&A.disabled){const j=(T=I.key)!==null&&T!==void 0?T:String(M),k=Object.assign(Object.assign({},Yn(I.props,["disabled"])),{key:j,collapsible:(D=A.collapsible)!==null&&D!==void 0?D:"disabled"});return Zo(I,k)}return I}):null,[p]);return y(d.createElement(PA,Object.assign({ref:t,openMotion:P},Yn(e,["rootClassName"]),{expandIcon:x,prefixCls:v,className:_,style:Object.assign(Object.assign({},o==null?void 0:o.style),l)}),O))}),qRe=Object.assign(KRe,{Panel:dRe}),oa=e=>e instanceof Ss?e:new Ss(e),nx=e=>Math.round(Number(e||0)),TA=e=>nx(e.toHsb().a*100),rx=(e,t)=>{const n=e.toRgb();if(!n.r&&!n.g&&!n.b){const r=e.toHsb();return r.a=1,oa(r)}return n.a=1,oa(n)},Jne=(e,t)=>{const n=[{percent:0,color:e[0].color}].concat(Ze(e),[{percent:100,color:e[e.length-1].color}]);for(let r=0;re.map(t=>(t.colors=t.colors.map(oa),t)),Zne=(e,t)=>{const{r:n,g:r,b:o,a:i}=e.toRgb(),a=new oc(e.toRgbString()).onBackground(t).toHsv();return i<=.5?a.v>.5:n*.299+r*.587+o*.114>192},yz=(e,t)=>{var n;return`panel-${(n=e.key)!==null&&n!==void 0?n:t}`},GRe=e=>{let{prefixCls:t,presets:n,value:r,onChange:o}=e;const[i]=zi("ColorPicker"),[,a]=Ho(),[s]=xn(jT(n),{value:jT(n),postState:jT}),l=`${t}-presets`,c=d.useMemo(()=>s.reduce((h,p,m)=>{const{defaultOpen:g=!0}=p;return g&&h.push(yz(p,m)),h},[]),[s]),u=h=>{o==null||o(h)},f=s.map((h,p)=>{var m;return{key:yz(h,p),label:de.createElement("div",{className:`${l}-label`},h==null?void 0:h.label),children:de.createElement("div",{className:`${l}-items`},Array.isArray(h==null?void 0:h.colors)&&((m=h.colors)===null||m===void 0?void 0:m.length)>0?h.colors.map((g,v)=>de.createElement($A,{key:`preset-${v}-${g.toHexString()}`,color:oa(g).toRgbString(),prefixCls:t,className:xe(`${l}-color`,{[`${l}-color-checked`]:g.toHexString()===(r==null?void 0:r.toHexString()),[`${l}-color-bright`]:Zne(g,a.colorBgElevated)}),onClick:()=>u(g)})):de.createElement("span",{className:`${l}-empty`},i.presetEmpty))}});return de.createElement("div",{className:l},de.createElement(qRe,{defaultActiveKey:c,ghost:!0,items:f}))},ere=e=>{const{paddingInline:t,onlyIconSize:n}=e;return kn(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},tre=e=>{var t,n,r,o,i,a;const s=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,l=(n=e.contentFontSizeSM)!==null&&n!==void 0?n:e.fontSize,c=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,u=(o=e.contentLineHeight)!==null&&o!==void 0?o:ex(s),f=(i=e.contentLineHeightSM)!==null&&i!==void 0?i:ex(l),h=(a=e.contentLineHeightLG)!==null&&a!==void 0?a:ex(c),p=Zne(new Ss(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:p,contentFontSize:s,contentFontSizeSM:l,contentFontSizeLG:c,contentLineHeight:u,contentLineHeightSM:f,contentLineHeightLG:h,paddingBlock:Math.max((e.controlHeight-s*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-l*f)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*h)/2-e.lineWidth,0)}},YRe=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:o,motionDurationSlow:i,motionEaseInOut:a,marginXS:s,calc:l}=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:`${_e(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`]:Fp(),"> a":{color:"currentColor"},"&:not(:disabled)":Ka(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:o,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(c=>`${c} ${i} ${a}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:l(s).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:l(s).mul(-1).equal()}}}}}},nre=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),XRe=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),QRe=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),JRe=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),RA=(e,t,n,r,o,i,a,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},nre(e,Object.assign({background:t},a),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),ZRe=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},JRe(e))}),eIe=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),M$=(e,t,n,r)=>{const i=r&&["link","text"].includes(r)?eIe:ZRe;return Object.assign(Object.assign({},i(e)),nre(e.componentCls,t,n))},T$=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},M$(e,r,o))}),R$=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},M$(e,r,o))}),I$=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),k$=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},M$(e,n,r))}),Ef=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},M$(e,r,o,n))}),tIe=e=>{const{componentCls:t}=e;return pp.reduce((n,r)=>{const o=e[`${r}6`],i=e[`${r}1`],a=e[`${r}5`],s=e[`${r}2`],l=e[`${r}3`],c=e[`${r}7`],u=`0 ${_e(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:o,boxShadow:u},T$(e,e.colorTextLightSolid,o,{background:a},{background:c})),R$(e,o,e.colorBgContainer,{color:a,borderColor:a,background:e.colorBgContainer},{color:c,borderColor:c,background:e.colorBgContainer})),I$(e)),k$(e,i,{background:s},{background:l})),Ef(e,o,"link",{color:a},{color:c})),Ef(e,o,"text",{color:a,background:i},{color:c,background:l}))})},{})},nIe=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},T$(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),I$(e)),k$(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill})),Ef(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),RA(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),rIe=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},R$(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),I$(e)),k$(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder})),Ef(e,e.colorLink,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),RA(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),oIe=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},T$(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),R$(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),I$(e)),k$(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive})),Ef(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),Ef(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),RA(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),iIe=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:nIe(e),[`${t}-color-primary`]:rIe(e),[`${t}-color-dangerous`]:oIe(e)},tIe(e))},aIe=e=>Object.assign(Object.assign(Object.assign(Object.assign({},R$(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Ef(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),T$(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),Ef(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),IA=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:o,borderRadius:i,buttonPaddingHorizontal:a,iconCls:s,buttonPaddingVertical:l,buttonIconOnlyFontSize:c}=e;return[{[t]:{fontSize:o,height:r,padding:`${_e(l)} ${_e(a)}`,borderRadius:i,[`&${n}-icon-only`]:{width:r,[s]:{fontSize:c}}}},{[`${n}${n}-circle${t}`]:XRe(e)},{[`${n}${n}-round${t}`]:QRe(e)}]},sIe=e=>{const t=kn(e,{fontSize:e.contentFontSize});return IA(t,e.componentCls)},lIe=e=>{const t=kn(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return IA(t,`${e.componentCls}-sm`)},cIe=e=>{const t=kn(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return IA(t,`${e.componentCls}-lg`)},uIe=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},dIe=Kn("Button",e=>{const t=ere(e);return[YRe(t),sIe(t),lIe(t),cIe(t),uIe(t),iIe(t),aIe(t),zTe(t)]},tre,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function fIe(e,t,n){const{focusElCls:r,focus:o,borderElCls:i}=n,a=i?"> *":"",s=["hover",o?"focus":null,"active"].filter(Boolean).map(l=>`&:${l} ${a}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function hIe(e,t,n){const{borderElCls:r}=n,o=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Bp(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({},fIe(e,r,t)),hIe(n,r,t))}}function pIe(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 mIe(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 gIe(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},pIe(e,t)),mIe(e.componentCls,t))}}const vIe=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:o}=e,i=o(r).mul(-1).equal(),a=s=>{const l=`${t}-compact${s?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${l} + ${l}::before`]:{position:"absolute",top:s?i:0,insetInlineStart:s?0:i,backgroundColor:n,content:'""',width:s?"100%":r,height:s?r:"100%"}}};return Object.assign(Object.assign({},a()),a(!0))},yIe=$v(["Button","compact"],e=>{const t=ere(e);return[Bp(t),gIe(t),vIe(t)]},tre);var bIe=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 o=0,r=Object.getOwnPropertySymbols(e);o{var n,r,o,i;const{loading:a=!1,prefixCls:s,color:l,variant:c,type:u,danger:f=!1,shape:h="default",size:p,styles:m,disabled:g,className:v,rootClassName:b,children:y,icon:S,iconPosition:w="start",ghost:E=!1,block:C=!1,htmlType:x="button",classNames:_,style:P={},autoInsertSpace:O,autoFocus:I}=e,M=bIe(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),T=u||"default",[D,A]=d.useMemo(()=>{if(l&&c)return[l,c];const He=CIe[T]||[];return f?["danger",He[1]]:He},[u,l,c,f]),k=D==="danger"?"dangerous":D,{getPrefixCls:F,direction:V,button:W}=d.useContext(Yt),K=(n=O??(W==null?void 0:W.autoInsertSpace))!==null&&n!==void 0?n:!0,L=F("btn",s),[Q,ee,re]=dIe(L),ie=d.useContext(zo),G=g??ie,X=d.useContext(Une),ne=d.useMemo(()=>SIe(a),[a]),[le,ce]=d.useState(ne.loading),[oe,se]=d.useState(!1),fe=d.useRef(null),te=mc(t,fe),he=d.Children.count(y)===1&&!S&&!kT(A),pe=d.useRef(!0);de.useEffect(()=>(pe.current=!1,()=>{pe.current=!0}),[]),d.useEffect(()=>{let He=null;ne.delay>0?He=setTimeout(()=>{He=null,ce(!0)},ne.delay):ce(ne.loading);function ge(){He&&(clearTimeout(He),He=null)}return ge},[ne]),d.useEffect(()=>{if(!fe.current||!K)return;const He=fe.current.textContent||"";he&&F3(He)?oe||se(!0):oe&&se(!1)}),d.useEffect(()=>{I&&fe.current&&fe.current.focus()},[]);const Oe=de.useCallback(He=>{var ge;if(le||G){He.preventDefault();return}(ge=e.onClick)===null||ge===void 0||ge.call(e,He)},[e.onClick,le,G]),{compactSize:Me,compactItemClassnames:Se}=gc(L,V),ye={large:"lg",small:"sm",middle:void 0},ve=Eo(He=>{var ge,De;return(De=(ge=p??Me)!==null&&ge!==void 0?ge:X)!==null&&De!==void 0?De:He}),be=ve&&(r=ye[ve])!==null&&r!==void 0?r:"",Pe=le?"loading":S,Ne=Yn(M,["navigate"]),U=xe(L,ee,re,{[`${L}-${h}`]:h!=="default"&&h,[`${L}-${T}`]:T,[`${L}-dangerous`]:f,[`${L}-color-${k}`]:k,[`${L}-variant-${A}`]:A,[`${L}-${be}`]:be,[`${L}-icon-only`]:!y&&y!==0&&!!Pe,[`${L}-background-ghost`]:E&&!kT(A),[`${L}-loading`]:le,[`${L}-two-chinese-chars`]:oe&&K&&!le,[`${L}-block`]:C,[`${L}-rtl`]:V==="rtl",[`${L}-icon-end`]:w==="end"},Se,v,b,W==null?void 0:W.className),H=Object.assign(Object.assign({},W==null?void 0:W.style),P),q=xe(_==null?void 0:_.icon,(o=W==null?void 0:W.classNames)===null||o===void 0?void 0:o.icon),me=Object.assign(Object.assign({},(m==null?void 0:m.icon)||{}),((i=W==null?void 0:W.styles)===null||i===void 0?void 0:i.icon)||{}),Ce=S&&!le?de.createElement(L3,{prefixCls:L,className:q,style:me},S):typeof a=="object"&&a.icon?de.createElement(L3,{prefixCls:L,className:q,style:me},a.icon):de.createElement(BTe,{existIcon:!!S,prefixCls:L,loading:le,mount:pe.current}),ue=y||y===0?LTe(y,he&&K):null;if(Ne.href!==void 0)return Q(de.createElement("a",Object.assign({},Ne,{className:xe(U,{[`${L}-disabled`]:G}),href:G?void 0:Ne.href,style:H,onClick:Oe,ref:te,tabIndex:G?-1:0}),Ce,ue));let Le=de.createElement("button",Object.assign({},M,{type:x,className:U,style:H,onClick:Oe,disabled:G,ref:te}),Ce,ue,Se&&de.createElement(yIe,{prefixCls:L}));return kT(A)||(Le=de.createElement(H1,{component:"Button",disabled:le},Le)),Q(Le)}),Hn=wIe;Hn.Group=jTe;Hn.__ANT_BUTTON=!0;function FT(e){return!!(e!=null&&e.then)}const kA=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:i,autoFocus:a,emitEvent:s,isSilent:l,quitOnNullishReturnValue:c,actionFn:u}=e,f=d.useRef(!1),h=d.useRef(null),[p,m]=hp(!1),g=function(){i==null||i.apply(void 0,arguments)};d.useEffect(()=>{let y=null;return a&&(y=setTimeout(()=>{var S;(S=h.current)===null||S===void 0||S.focus({preventScroll:!0})})),()=>{y&&clearTimeout(y)}},[]);const v=y=>{FT(y)&&(m(!0),y.then(function(){m(!1,!0),g.apply(void 0,arguments),f.current=!1},S=>{if(m(!1,!0),f.current=!1,!(l!=null&&l()))return Promise.reject(S)}))},b=y=>{if(f.current)return;if(f.current=!0,!u){g();return}let S;if(s){if(S=u(y),c&&!FT(S)){f.current=!1,g(y);return}}else if(u.length)S=u(i),f.current=!1;else if(S=u(),!FT(S)){g();return}v(S)};return d.createElement(Hn,Object.assign({},_A(t),{onClick:b,loading:p,prefixCls:r},o,{ref:h}),n)},W1=de.createContext({}),{Provider:rre}=W1,bz=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:o,rootPrefixCls:i,close:a,onCancel:s,onConfirm:l}=d.useContext(W1);return o?de.createElement(kA,{isSilent:r,actionFn:s,close:function(){a==null||a.apply(void 0,arguments),l==null||l(!1)},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${i}-btn`},n):null},Sz=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:o,okTextLocale:i,okType:a,onConfirm:s,onOk:l}=d.useContext(W1);return de.createElement(kA,{isSilent:n,type:a||"primary",actionFn:l,close:function(){t==null||t.apply(void 0,arguments),s==null||s(!0)},autoFocus:e==="ok",buttonProps:r,prefixCls:`${o}-btn`},i)};var ore=d.createContext(null),Cz=[];function xIe(e,t){var n=d.useState(function(){if(!Ca())return null;var m=document.createElement("div");return m}),r=$e(n,1),o=r[0],i=d.useRef(!1),a=d.useContext(ore),s=d.useState(Cz),l=$e(s,2),c=l[0],u=l[1],f=a||(i.current?void 0:function(m){u(function(g){var v=[m].concat(Ze(g));return v})});function h(){o.parentElement||document.body.appendChild(o),i.current=!0}function p(){var m;(m=o.parentElement)===null||m===void 0||m.removeChild(o),i.current=!1}return Zn(function(){return e?a?a(h):h():p(),p},[e]),Zn(function(){c.length&&(c.forEach(function(m){return m()}),u(Cz))},[c]),[o,f]}var LT;function ire(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 o,i;if(e){var a=getComputedStyle(e);r.scrollbarColor=a.scrollbarColor,r.scrollbarWidth=a.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(s.width,10),c=parseInt(s.height,10);try{var u=l?"width: ".concat(s.width,";"):"",f=c?"height: ".concat(s.height,";"):"";v$(` #`.concat(t,`::-webkit-scrollbar { `).concat(u,` `).concat(f,` }`),t)}catch(m){console.error(m),o=l,i=c}}document.body.appendChild(n);var h=e&&o&&!isNaN(o)?o:n.offsetWidth-n.clientWidth,p=e&&i&&!isNaN(i)?i:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),$3(t),{width:h,height:p}}function wz(e){return typeof document>"u"?0:(LT===void 0&&(LT=ire()),LT.width)}function B3(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:ire(e)}function EIe(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var _Ie="rc-util-locker-".concat(Date.now()),xz=0;function $Ie(e){var t=!!e,n=d.useState(function(){return xz+=1,"".concat(_Ie,"_").concat(xz)}),r=$e(n,1),o=r[0];Zn(function(){if(t){var i=B3(document.body).width,a=EIe();v$(` html body { overflow-y: hidden; `.concat(a?"width: calc(100% - ".concat(i,"px);"):"",` }`),o)}else $3(o);return function(){$3(o)}},[t,o])}var PIe=!1;function OIe(e){return PIe}var Ez=function(t){return t===!1?!1:!Ca()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},V1=d.forwardRef(function(e,t){var n=e.open,r=e.autoLock,o=e.getContainer;e.debug;var i=e.autoDestroy,a=i===void 0?!0:i,s=e.children,l=d.useState(n),c=$e(l,2),u=c[0],f=c[1],h=u||n;d.useEffect(function(){(a||n)&&f(n)},[n,a]);var p=d.useState(function(){return Ez(o)}),m=$e(p,2),g=m[0],v=m[1];d.useEffect(function(){var I=Ez(o);v(I??null)});var b=xIe(h&&!g),y=$e(b,2),S=y[0],w=y[1],E=g??S;$Ie(r&&n&&Ca()&&(E===S||E===document.body));var C=null;if(s&&tc(s)&&t){var x=s;C=x.ref}var _=mc(C,t);if(!h||!Ca()||g===void 0)return null;var P=E===!1||OIe(),O=s;return t&&(O=d.cloneElement(s,{ref:_})),d.createElement(ore.Provider,{value:w},P?O:_i.createPortal(O,E))}),are=d.createContext({});function MIe(){var e=z({},S1);return e.useId}var _z=0,$z=MIe();const N$=$z?function(t){var n=$z();return t||n}:function(t){var n=d.useState("ssr-id"),r=$e(n,2),o=r[0],i=r[1];return d.useEffect(function(){var a=_z;_z+=1,i("rc_unique_".concat(a))},[]),t||o};function Pz(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function Oz(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if(typeof n!="number"){var o=e.document;n=o.documentElement[r],typeof n!="number"&&(n=o.body[r])}return n}function TIe(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow;return n.left+=Oz(o),n.top+=Oz(o,!0),n}const RIe=d.memo(function(e){var t=e.children;return t},function(e,t){var n=t.shouldUpdate;return!n});var IIe={width:0,height:0,overflow:"hidden",outline:"none"},kIe={outline:"none"},sre=de.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.title,a=e.ariaId,s=e.footer,l=e.closable,c=e.closeIcon,u=e.onClose,f=e.children,h=e.bodyStyle,p=e.bodyProps,m=e.modalRender,g=e.onMouseDown,v=e.onMouseUp,b=e.holderRef,y=e.visible,S=e.forceRender,w=e.width,E=e.height,C=e.classNames,x=e.styles,_=de.useContext(are),P=_.panel,O=mc(b,P),I=d.useRef(),M=d.useRef();de.useImperativeHandle(t,function(){return{focus:function(){var L;(L=I.current)===null||L===void 0||L.focus({preventScroll:!0})},changeActive:function(L){var Q=document,ee=Q.activeElement;L&&ee===M.current?I.current.focus({preventScroll:!0}):!L&&ee===I.current&&M.current.focus({preventScroll:!0})}}});var T={};w!==void 0&&(T.width=w),E!==void 0&&(T.height=E);var D=s?de.createElement("div",{className:xe("".concat(n,"-footer"),C==null?void 0:C.footer),style:z({},x==null?void 0:x.footer)},s):null,A=i?de.createElement("div",{className:xe("".concat(n,"-header"),C==null?void 0:C.header),style:z({},x==null?void 0:x.header)},de.createElement("div",{className:"".concat(n,"-title"),id:a},i)):null,j=d.useMemo(function(){return Ht(l)==="object"&&l!==null?l:l?{closeIcon:c??de.createElement("span",{className:"".concat(n,"-close-x")})}:{}},[l,c,n]),k=Jr(j,!0),F=Ht(l)==="object"&&l.disabled,V=l?de.createElement("button",Ge({type:"button",onClick:u,"aria-label":"Close"},k,{className:"".concat(n,"-close"),disabled:F}),j.closeIcon):null,W=de.createElement("div",{className:xe("".concat(n,"-content"),C==null?void 0:C.content),style:x==null?void 0:x.content},V,A,de.createElement("div",Ge({className:xe("".concat(n,"-body"),C==null?void 0:C.body),style:z(z({},h),x==null?void 0:x.body)},p),f),D);return de.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":i?a:null,"aria-modal":"true",ref:O,style:z(z({},o),T),className:xe(n,r),onMouseDown:g,onMouseUp:v},de.createElement("div",{ref:I,tabIndex:0,style:kIe},de.createElement(RIe,{shouldUpdate:y||S},m?m(W):W)),de.createElement("div",{tabIndex:0,ref:M,style:IIe}))}),lre=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,o=e.style,i=e.className,a=e.visible,s=e.forceRender,l=e.destroyOnClose,c=e.motionName,u=e.ariaId,f=e.onVisibleChanged,h=e.mousePosition,p=d.useRef(),m=d.useState(),g=$e(m,2),v=g[0],b=g[1],y={};v&&(y.transformOrigin=v);function S(){var w=TIe(p.current);b(h&&(h.x||h.y)?"".concat(h.x-w.left,"px ").concat(h.y-w.top,"px"):"")}return d.createElement(Jo,{visible:a,onVisibleChanged:f,onAppearPrepare:S,onEnterPrepare:S,forceRender:s,motionName:c,removeOnLeave:l,ref:p},function(w,E){var C=w.className,x=w.style;return d.createElement(sre,Ge({},e,{ref:t,title:r,ariaId:u,prefixCls:n,holderRef:E,style:z(z(z({},x),o),y),className:xe(i,C)}))})});lre.displayName="Content";var NIe=function(t){var n=t.prefixCls,r=t.style,o=t.visible,i=t.maskProps,a=t.motionName,s=t.className;return d.createElement(Jo,{key:"mask",visible:o,motionName:a,leavedClassName:"".concat(n,"-mask-hidden")},function(l,c){var u=l.className,f=l.style;return d.createElement("div",Ge({ref:c,style:z(z({},f),r),className:xe("".concat(n,"-mask"),u,s)},i))})},AIe=function(t){var n=t.prefixCls,r=n===void 0?"rc-dialog":n,o=t.zIndex,i=t.visible,a=i===void 0?!1:i,s=t.keyboard,l=s===void 0?!0:s,c=t.focusTriggerAfterClose,u=c===void 0?!0:c,f=t.wrapStyle,h=t.wrapClassName,p=t.wrapProps,m=t.onClose,g=t.afterOpenChange,v=t.afterClose,b=t.transitionName,y=t.animation,S=t.closable,w=S===void 0?!0:S,E=t.mask,C=E===void 0?!0:E,x=t.maskTransitionName,_=t.maskAnimation,P=t.maskClosable,O=P===void 0?!0:P,I=t.maskStyle,M=t.maskProps,T=t.rootClassName,D=t.classNames,A=t.styles,j=d.useRef(),k=d.useRef(),F=d.useRef(),V=d.useState(a),W=$e(V,2),K=W[0],L=W[1],Q=N$();function ee(){E3(k.current,document.activeElement)||(j.current=document.activeElement)}function re(){if(!E3(k.current,document.activeElement)){var te;(te=F.current)===null||te===void 0||te.focus()}}function ie(te){if(te)re();else{if(L(!1),C&&j.current&&u){try{j.current.focus({preventScroll:!0})}catch{}j.current=null}K&&(v==null||v())}g==null||g(te)}function G(te){m==null||m(te)}var X=d.useRef(!1),ne=d.useRef(),le=function(){clearTimeout(ne.current),X.current=!0},ce=function(){ne.current=setTimeout(function(){X.current=!1})},oe=null;O&&(oe=function(he){X.current?X.current=!1:k.current===he.target&&G(he)});function se(te){if(l&&te.keyCode===ut.ESC){te.stopPropagation(),G(te);return}a&&te.keyCode===ut.TAB&&F.current.changeActive(!te.shiftKey)}d.useEffect(function(){a&&(L(!0),ee())},[a]),d.useEffect(function(){return function(){clearTimeout(ne.current)}},[]);var fe=z(z(z({zIndex:o},f),A==null?void 0:A.wrapper),{},{display:K?null:"none"});return d.createElement("div",Ge({className:xe("".concat(r,"-root"),T)},Jr(t,{data:!0})),d.createElement(NIe,{prefixCls:r,visible:C&&a,motionName:Pz(r,x,_),style:z(z({zIndex:o},I),A==null?void 0:A.mask),maskProps:M,className:D==null?void 0:D.mask}),d.createElement("div",Ge({tabIndex:-1,onKeyDown:se,className:xe("".concat(r,"-wrap"),h,D==null?void 0:D.wrapper),ref:k,onClick:oe,style:fe},p),d.createElement(lre,Ge({},t,{onMouseDown:le,onMouseUp:ce,ref:F,closable:w,ariaId:Q,prefixCls:r,visible:a&&K,onClose:G,onVisibleChanged:ie,motionName:Pz(r,b,y)}))))},NA=function(t){var n=t.visible,r=t.getContainer,o=t.forceRender,i=t.destroyOnClose,a=i===void 0?!1:i,s=t.afterClose,l=t.panelRef,c=d.useState(n),u=$e(c,2),f=u[0],h=u[1],p=d.useMemo(function(){return{panel:l}},[l]);return d.useEffect(function(){n&&h(!0)},[n]),!o&&a&&!f?null:d.createElement(are.Provider,{value:p},d.createElement(V1,{open:n||o||f,autoDestroy:!1,getContainer:r,autoLock:n||f},d.createElement(AIe,Ge({},t,{destroyOnClose:a,afterClose:function(){s==null||s(),h(!1)}}))))};NA.displayName="Dialog";var Oh="RC_FORM_INTERNAL_HOOKS",Ur=function(){yr(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},_f=d.createContext({getFieldValue:Ur,getFieldsValue:Ur,getFieldError:Ur,getFieldWarning:Ur,getFieldsError:Ur,isFieldsTouched:Ur,isFieldTouched:Ur,isFieldValidating:Ur,isFieldsValidating:Ur,resetFields:Ur,setFields:Ur,setFieldValue:Ur,setFieldsValue:Ur,validateFields:Ur,submit:Ur,getInternalHooks:function(){return Ur(),{dispatch:Ur,initEntityValue:Ur,registerField:Ur,useSubscribe:Ur,setInitialValues:Ur,destroyForm:Ur,setCallbacks:Ur,registerWatch:Ur,getFields:Ur,setValidateMessages:Ur,setPreserve:Ur,getInitialValue:Ur}}}),Vb=d.createContext(null);function z3(e){return e==null?[]:Array.isArray(e)?e:[e]}function DIe(e){return e&&!!e._init}function H3(){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 U3=H3();function jIe(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function FIe(e,t,n){if(c$())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&Ab(o,n.prototype),o}function W3(e){var t=typeof Map=="function"?new Map:void 0;return W3=function(r){if(r===null||!jIe(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,o)}function o(){return FIe(r,arguments,cp(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Ab(o,r)},W3(e)}var LIe=/%[sdj%]/g,BIe=function(){};function V3(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 Cs(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=i)return s;switch(s){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return"[Circular]"}break;default:return s}});return a}return e}function zIe(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||zIe(t)&&typeof e=="string"&&!e)}function HIe(e,t,n){var r=[],o=0,i=e.length;function a(s){r.push.apply(r,Ze(s||[])),o++,o===i&&n(r)}e.forEach(function(s){t(s,a)})}function Mz(e,t,n){var r=0,o=e.length;function i(a){if(a&&a.length){n(a);return}var s=r;r=r+1,st.max?o.push(Cs(i.messages[f].max,t.fullField,t.max)):s&&l&&(ut.max)&&o.push(Cs(i.messages[f].range,t.fullField,t.min,t.max))},cre=function(t,n,r,o,i,a){t.required&&(!r.hasOwnProperty(t.field)||yi(n,a||t.type))&&o.push(Cs(i.messages.required,t.fullField))},BC;const XIe=function(){if(BC)return BC;var e="[a-fA-F\\d:]",t=function(C){return C&&C.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}",o=["(?:".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}|:))")],i="(?:%[0-9a-zA-Z]{1,})?",a="(?:".concat(o.join("|"),")").concat(i),s=new RegExp("(?:^".concat(n,"$)|(?:^").concat(a,"$)")),l=new RegExp("^".concat(n,"$")),c=new RegExp("^".concat(a,"$")),u=function(C){return C&&C.exact?s:new RegExp("(?:".concat(t(C)).concat(n).concat(t(C),")|(?:").concat(t(C)).concat(a).concat(t(C),")"),"g")};u.v4=function(E){return E&&E.exact?l:new RegExp("".concat(t(E)).concat(n).concat(t(E)),"g")},u.v6=function(E){return E&&E.exact?c:new RegExp("".concat(t(E)).concat(a).concat(t(E)),"g")};var f="(?:(?:[a-z]+:)?//)",h="(?:\\S+(?::\\S*)?@)?",p=u.v4().source,m=u.v6().source,g="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",v="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",b="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",y="(?::\\d{2,5})?",S='(?:[/?#][^\\s"]*)?',w="(?:".concat(f,"|www\\.)").concat(h,"(?:localhost|").concat(p,"|").concat(m,"|").concat(g).concat(v).concat(b,")").concat(y).concat(S);return BC=new RegExp("(?:^".concat(w,"$)"),"i"),BC};var kz={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},dy={integer:function(t){return dy.number(t)&&parseInt(t,10)===t},float:function(t){return dy.number(t)&&!dy.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 Ht(t)==="object"&&!dy.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(kz.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(XIe())},hex:function(t){return typeof t=="string"&&!!t.match(kz.hex)}},QIe=function(t,n,r,o,i){if(t.required&&n===void 0){cre(t,n,r,o,i);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;a.indexOf(s)>-1?dy[s](n)||o.push(Cs(i.messages.types[s],t.fullField,t.type)):s&&Ht(n)!==t.type&&o.push(Cs(i.messages.types[s],t.fullField,t.type))},JIe=function(t,n,r,o,i){(/^\s+$/.test(n)||n==="")&&o.push(Cs(i.messages.whitespace,t.fullField))};const vr={required:cre,whitespace:JIe,type:QIe,range:YIe,enum:qIe,pattern:GIe};var ZIe=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(yi(n)&&!t.required)return r();vr.required(t,n,o,a,i)}r(a)},eke=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return r();vr.required(t,n,o,a,i,"array"),n!=null&&(vr.type(t,n,o,a,i),vr.range(t,n,o,a,i))}r(a)},tke=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(yi(n)&&!t.required)return r();vr.required(t,n,o,a,i),n!==void 0&&vr.type(t,n,o,a,i)}r(a)},nke=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(yi(n,"date")&&!t.required)return r();if(vr.required(t,n,o,a,i),!yi(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),vr.type(t,l,o,a,i),l&&vr.range(t,l.getTime(),o,a,i)}}r(a)},rke="enum",oke=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(yi(n)&&!t.required)return r();vr.required(t,n,o,a,i),n!==void 0&&vr[rke](t,n,o,a,i)}r(a)},ike=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(yi(n)&&!t.required)return r();vr.required(t,n,o,a,i),n!==void 0&&(vr.type(t,n,o,a,i),vr.range(t,n,o,a,i))}r(a)},ake=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(yi(n)&&!t.required)return r();vr.required(t,n,o,a,i),n!==void 0&&(vr.type(t,n,o,a,i),vr.range(t,n,o,a,i))}r(a)},ske=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(yi(n)&&!t.required)return r();vr.required(t,n,o,a,i),n!==void 0&&vr.type(t,n,o,a,i)}r(a)},lke=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),yi(n)&&!t.required)return r();vr.required(t,n,o,a,i),n!==void 0&&(vr.type(t,n,o,a,i),vr.range(t,n,o,a,i))}r(a)},cke=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(yi(n)&&!t.required)return r();vr.required(t,n,o,a,i),n!==void 0&&vr.type(t,n,o,a,i)}r(a)},uke=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(yi(n,"string")&&!t.required)return r();vr.required(t,n,o,a,i),yi(n,"string")||vr.pattern(t,n,o,a,i)}r(a)},dke=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(yi(n)&&!t.required)return r();vr.required(t,n,o,a,i),yi(n)||vr.type(t,n,o,a,i)}r(a)},fke=function(t,n,r,o,i){var a=[],s=Array.isArray(n)?"array":Ht(n);vr.required(t,n,o,a,i,s),r(a)},hke=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(yi(n,"string")&&!t.required)return r();vr.required(t,n,o,a,i,"string"),yi(n,"string")||(vr.type(t,n,o,a,i),vr.range(t,n,o,a,i),vr.pattern(t,n,o,a,i),t.whitespace===!0&&vr.whitespace(t,n,o,a,i))}r(a)},BT=function(t,n,r,o,i){var a=t.type,s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(yi(n,a)&&!t.required)return r();vr.required(t,n,o,s,i,a),yi(n,a)||vr.type(t,n,o,s,i)}r(s)};const zy={string:hke,method:ske,number:lke,boolean:tke,regexp:dke,integer:ake,float:ike,array:eke,object:cke,enum:oke,pattern:uke,date:nke,url:BT,hex:BT,email:BT,required:fke,any:ZIe};var K1=function(){function e(t){br(this,e),Z(this,"rules",null),Z(this,"_messages",U3),this.define(t)}return Sr(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(Ht(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(o){var i=n[o];r.rules[o]=Array.isArray(i)?i:[i]})}},{key:"messages",value:function(n){return n&&(this._messages=Iz(H3(),n)),this._messages}},{key:"validate",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},a=n,s=o,l=i;if(typeof s=="function"&&(l=s,s={}),!this.rules||Object.keys(this.rules).length===0)return l&&l(null,a),Promise.resolve(a);function c(m){var g=[],v={};function b(S){if(Array.isArray(S)){var w;g=(w=g).concat.apply(w,Ze(S))}else g.push(S)}for(var y=0;y0&&arguments[0]!==void 0?arguments[0]:[],_=Array.isArray(x)?x:[x];!s.suppressWarning&&_.length&&e.warning("async-validator:",_),_.length&&v.message!==void 0&&(_=[].concat(v.message));var P=_.map(Rz(v,a));if(s.first&&P.length)return p[v.field]=1,g(P);if(!b)g(P);else{if(v.required&&!m.value)return v.message!==void 0?P=[].concat(v.message).map(Rz(v,a)):s.error&&(P=[s.error(v,Cs(s.messages.required,v.field))]),g(P);var O={};v.defaultField&&Object.keys(m.value).map(function(T){O[T]=v.defaultField}),O=z(z({},O),m.rule.fields);var I={};Object.keys(O).forEach(function(T){var D=O[T],A=Array.isArray(D)?D:[D];I[T]=A.map(y.bind(null,T))});var M=new e(I);M.messages(s.messages),m.rule.options&&(m.rule.options.messages=s.messages,m.rule.options.error=s.error),M.validate(m.value,m.rule.options||s,function(T){var D=[];P&&P.length&&D.push.apply(D,Ze(P)),T&&T.length&&D.push.apply(D,Ze(T)),g(D.length?D:null)})}}var w;if(v.asyncValidator)w=v.asyncValidator(v,m.value,S,m.source,s);else if(v.validator){try{w=v.validator(v,m.value,S,m.source,s)}catch(x){var E,C;(E=(C=console).error)===null||E===void 0||E.call(C,x),s.suppressValidatorError||setTimeout(function(){throw x},0),S(x.message)}w===!0?S():w===!1?S(typeof v.message=="function"?v.message(v.fullField||v.field):v.message||"".concat(v.fullField||v.field," fails")):w instanceof Array?S(w):w instanceof Error&&S(w.message)}w&&w.then&&w.then(function(){return S()},function(x){return S(x)})},function(m){c(m)},a)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!zy.hasOwnProperty(n.type))throw new Error(Cs("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),o=r.indexOf("message");return o!==-1&&r.splice(o,1),r.length===1&&r[0]==="required"?zy.required:zy[this.getType(n)]||void 0}}]),e}();Z(K1,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");zy[t]=n});Z(K1,"warning",BIe);Z(K1,"messages",U3);Z(K1,"validators",zy);var os="'${name}' is not a valid ${type}",ure={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:os,method:os,array:os,object:os,number:os,date:os,boolean:os,integer:os,float:os,regexp:os,email:os,url:os,hex:os},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}"}},Nz=K1;function pke(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 Az="CODE_LOGIC_ERROR";function K3(e,t,n,r,o){return q3.apply(this,arguments)}function q3(){return q3=Bo(nr().mark(function e(t,n,r,o,i){var a,s,l,c,u,f,h,p,m;return nr().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return a=z({},r),delete a.ruleIndex,Nz.warning=function(){},a.validator&&(s=a.validator,a.validator=function(){try{return s.apply(void 0,arguments)}catch(b){return console.error(b),Promise.reject(Az)}}),l=null,a&&a.type==="array"&&a.defaultField&&(l=a.defaultField,delete a.defaultField),c=new Nz(Z({},t,[a])),u=Um(ure,o.validateMessages),c.messages(u),f=[],v.prev=10,v.next=13,Promise.resolve(c.validate(Z({},t,n),z({},o)));case 13:v.next=18;break;case 15:v.prev=15,v.t0=v.catch(10),v.t0.errors&&(f=v.t0.errors.map(function(b,y){var S=b.message,w=S===Az?u.default:S;return d.isValidElement(w)?d.cloneElement(w,{key:"error_".concat(y)}):w}));case 18:if(!(!f.length&&l)){v.next=23;break}return v.next=21,Promise.all(n.map(function(b,y){return K3("".concat(t,".").concat(y),b,l,o,i)}));case 21:return h=v.sent,v.abrupt("return",h.reduce(function(b,y){return[].concat(Ze(b),Ze(y))},[]));case 23:return p=z(z({},r),{},{name:t,enum:(r.enum||[]).join(", ")},i),m=f.map(function(b){return typeof b=="string"?pke(b,p):b}),v.abrupt("return",m);case 26:case"end":return v.stop()}},e,null,[[10,15]])})),q3.apply(this,arguments)}function mke(e,t,n,r,o,i){var a=e.join("."),s=n.map(function(u,f){var h=u.validator,p=z(z({},u),{},{ruleIndex:f});return h&&(p.validator=function(m,g,v){var b=!1,y=function(){for(var E=arguments.length,C=new Array(E),x=0;x2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return dre(t,r,n)})}function dre(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,o){return e[o]===r})}function yke(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||Ht(e)!=="object"||Ht(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),o=new Set([].concat(n,r));return Ze(o).every(function(i){var a=e[i],s=t[i];return typeof a=="function"&&typeof s=="function"?!0:a===s})}function bke(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&Ht(t.target)==="object"&&e in t.target?t.target[e]:t}function jz(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],i=t-n;return i>0?[].concat(Ze(e.slice(0,n)),[o],Ze(e.slice(n,t)),Ze(e.slice(t+1,r))):i<0?[].concat(Ze(e.slice(0,t)),Ze(e.slice(t+1,n+1)),[o],Ze(e.slice(n+1,r))):e}var Ske=["name"],js=[];function zT(e,t,n,r,o,i){return typeof e=="function"?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var AA=function(e){la(n,e);var t=Pa(n);function n(r){var o;if(br(this,n),o=t.call(this,r),Z(tn(o),"state",{resetCount:0}),Z(tn(o),"cancelRegisterFunc",null),Z(tn(o),"mounted",!1),Z(tn(o),"touched",!1),Z(tn(o),"dirty",!1),Z(tn(o),"validatePromise",void 0),Z(tn(o),"prevValidating",void 0),Z(tn(o),"errors",js),Z(tn(o),"warnings",js),Z(tn(o),"cancelRegister",function(){var l=o.props,c=l.preserve,u=l.isListField,f=l.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(u,c,Ko(f)),o.cancelRegisterFunc=null}),Z(tn(o),"getNamePath",function(){var l=o.props,c=l.name,u=l.fieldContext,f=u.prefixName,h=f===void 0?[]:f;return c!==void 0?[].concat(Ze(h),Ze(c)):[]}),Z(tn(o),"getRules",function(){var l=o.props,c=l.rules,u=c===void 0?[]:c,f=l.fieldContext;return u.map(function(h){return typeof h=="function"?h(f):h})}),Z(tn(o),"refresh",function(){o.mounted&&o.setState(function(l){var c=l.resetCount;return{resetCount:c+1}})}),Z(tn(o),"metaCache",null),Z(tn(o),"triggerMetaEvent",function(l){var c=o.props.onMetaChange;if(c){var u=z(z({},o.getMeta()),{},{destroy:l});dl(o.metaCache,u)||c(u),o.metaCache=u}else o.metaCache=null}),Z(tn(o),"onStoreChange",function(l,c,u){var f=o.props,h=f.shouldUpdate,p=f.dependencies,m=p===void 0?[]:p,g=f.onReset,v=u.store,b=o.getNamePath(),y=o.getValue(l),S=o.getValue(v),w=c&&ig(c,b);switch(u.type==="valueUpdate"&&u.source==="external"&&!dl(y,S)&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=js,o.warnings=js,o.triggerMetaEvent()),u.type){case"reset":if(!c||w){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=js,o.warnings=js,o.triggerMetaEvent(),g==null||g(),o.refresh();return}break;case"remove":{if(h&&zT(h,l,v,y,S,u)){o.reRender();return}break}case"setField":{var E=u.data;if(w){"touched"in E&&(o.touched=E.touched),"validating"in E&&!("originRCField"in E)&&(o.validatePromise=E.validating?Promise.resolve([]):null),"errors"in E&&(o.errors=E.errors||js),"warnings"in E&&(o.warnings=E.warnings||js),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in E&&ig(c,b,!0)){o.reRender();return}if(h&&!b.length&&zT(h,l,v,y,S,u)){o.reRender();return}break}case"dependenciesUpdate":{var C=m.map(Ko);if(C.some(function(x){return ig(u.relatedFields,x)})){o.reRender();return}break}default:if(w||(!m.length||b.length||h)&&zT(h,l,v,y,S,u)){o.reRender();return}break}h===!0&&o.reRender()}),Z(tn(o),"validateRules",function(l){var c=o.getNamePath(),u=o.getValue(),f=l||{},h=f.triggerName,p=f.validateOnly,m=p===void 0?!1:p,g=Promise.resolve().then(Bo(nr().mark(function v(){var b,y,S,w,E,C,x;return nr().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:if(o.mounted){P.next=2;break}return P.abrupt("return",[]);case 2:if(b=o.props,y=b.validateFirst,S=y===void 0?!1:y,w=b.messageVariables,E=b.validateDebounce,C=o.getRules(),h&&(C=C.filter(function(O){return O}).filter(function(O){var I=O.validateTrigger;if(!I)return!0;var M=z3(I);return M.includes(h)})),!(E&&h)){P.next=10;break}return P.next=8,new Promise(function(O){setTimeout(O,E)});case 8:if(o.validatePromise===g){P.next=10;break}return P.abrupt("return",[]);case 10:return x=mke(c,u,C,l,S,w),x.catch(function(O){return O}).then(function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:js;if(o.validatePromise===g){var I;o.validatePromise=null;var M=[],T=[];(I=O.forEach)===null||I===void 0||I.call(O,function(D){var A=D.rule.warningOnly,j=D.errors,k=j===void 0?js:j;A?T.push.apply(T,Ze(k)):M.push.apply(M,Ze(k))}),o.errors=M,o.warnings=T,o.triggerMetaEvent(),o.reRender()}}),P.abrupt("return",x);case 13:case"end":return P.stop()}},v)})));return m||(o.validatePromise=g,o.dirty=!0,o.errors=js,o.warnings=js,o.triggerMetaEvent(),o.reRender()),g}),Z(tn(o),"isFieldValidating",function(){return!!o.validatePromise}),Z(tn(o),"isFieldTouched",function(){return o.touched}),Z(tn(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return!0;var l=o.props.fieldContext,c=l.getInternalHooks(Oh),u=c.getInitialValue;return u(o.getNamePath())!==void 0}),Z(tn(o),"getErrors",function(){return o.errors}),Z(tn(o),"getWarnings",function(){return o.warnings}),Z(tn(o),"isListField",function(){return o.props.isListField}),Z(tn(o),"isList",function(){return o.props.isList}),Z(tn(o),"isPreserve",function(){return o.props.preserve}),Z(tn(o),"getMeta",function(){o.prevValidating=o.isFieldValidating();var l={touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:o.validatePromise===null};return l}),Z(tn(o),"getOnlyChild",function(l){if(typeof l=="function"){var c=o.getMeta();return z(z({},o.getOnlyChild(l(o.getControlled(),c,o.props.fieldContext))),{},{isFunction:!0})}var u=ai(l);return u.length!==1||!d.isValidElement(u[0])?{child:u,isFunction:!1}:{child:u[0],isFunction:!1}}),Z(tn(o),"getValue",function(l){var c=o.props.fieldContext.getFieldsValue,u=o.getNamePath();return Mo(l||c(!0),u)}),Z(tn(o),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=o.props,u=c.name,f=c.trigger,h=c.validateTrigger,p=c.getValueFromEvent,m=c.normalize,g=c.valuePropName,v=c.getValueProps,b=c.fieldContext,y=h!==void 0?h:b.validateTrigger,S=o.getNamePath(),w=b.getInternalHooks,E=b.getFieldsValue,C=w(Oh),x=C.dispatch,_=o.getValue(),P=v||function(D){return Z({},g,D)},O=l[f],I=u!==void 0?P(_):{},M=z(z({},l),I);M[f]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var D,A=arguments.length,j=new Array(A),k=0;k=0&&O<=I.length?(u.keys=[].concat(Ze(u.keys.slice(0,O)),[u.id],Ze(u.keys.slice(O))),S([].concat(Ze(I.slice(0,O)),[P],Ze(I.slice(O))))):(u.keys=[].concat(Ze(u.keys),[u.id]),S([].concat(Ze(I),[P]))),u.id+=1},remove:function(P){var O=E(),I=new Set(Array.isArray(P)?P:[P]);I.size<=0||(u.keys=u.keys.filter(function(M,T){return!I.has(T)}),S(O.filter(function(M,T){return!I.has(T)})))},move:function(P,O){if(P!==O){var I=E();P<0||P>=I.length||O<0||O>=I.length||(u.keys=jz(u.keys,P,O),S(jz(I,P,O)))}}},x=y||[];return Array.isArray(x)||(x=[]),r(x.map(function(_,P){var O=u.keys[P];return O===void 0&&(u.keys[P]=u.id,O=u.keys[P],u.id+=1),{name:P,key:O,isListField:!0}}),C,v)})))}function Cke(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(o,i){e.forEach(function(a,s){a.catch(function(l){return t=!0,l}).then(function(l){n-=1,r[s]=l,!(n>0)&&(t&&i(r),o(r))})})}):Promise.resolve([])}var hre="__@field_split__";function HT(e){return e.map(function(t){return"".concat(Ht(t),":").concat(t)}).join(hre)}var cm=function(){function e(){br(this,e),Z(this,"kvs",new Map)}return Sr(e,[{key:"set",value:function(n,r){this.kvs.set(HT(n),r)}},{key:"get",value:function(n){return this.kvs.get(HT(n))}},{key:"update",value:function(n,r){var o=this.get(n),i=r(o);i?this.set(n,i):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(HT(n))}},{key:"map",value:function(n){return Ze(this.kvs.entries()).map(function(r){var o=$e(r,2),i=o[0],a=o[1],s=i.split(hre);return n({key:s.map(function(l){var c=l.match(/^([^:]*):(.*)$/),u=$e(c,3),f=u[1],h=u[2];return f==="number"?Number(h):h}),value:a})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var o=r.key,i=r.value;return n[o.join(".")]=i,null}),n}}]),e}(),wke=["name"],xke=Sr(function e(t){var n=this;br(this,e),Z(this,"formHooked",!1),Z(this,"forceRootUpdate",void 0),Z(this,"subscribable",!0),Z(this,"store",{}),Z(this,"fieldEntities",[]),Z(this,"initialValues",{}),Z(this,"callbacks",{}),Z(this,"validateMessages",null),Z(this,"preserve",null),Z(this,"lastValidatePromise",null),Z(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}}),Z(this,"getInternalHooks",function(r){return r===Oh?(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}):(yr(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),Z(this,"useSubscribe",function(r){n.subscribable=r}),Z(this,"prevWithoutPreserves",null),Z(this,"setInitialValues",function(r,o){if(n.initialValues=r||{},o){var i,a=Um(r,n.store);(i=n.prevWithoutPreserves)===null||i===void 0||i.map(function(s){var l=s.key;a=Yo(a,l,Mo(r,l))}),n.prevWithoutPreserves=null,n.updateStore(a)}}),Z(this,"destroyForm",function(r){if(r)n.updateStore({});else{var o=new cm;n.getFieldEntities(!0).forEach(function(i){n.isMergedPreserve(i.isPreserve())||o.set(i.getNamePath(),!0)}),n.prevWithoutPreserves=o}}),Z(this,"getInitialValue",function(r){var o=Mo(n.initialValues,r);return r.length?Um(o):o}),Z(this,"setCallbacks",function(r){n.callbacks=r}),Z(this,"setValidateMessages",function(r){n.validateMessages=r}),Z(this,"setPreserve",function(r){n.preserve=r}),Z(this,"watchList",[]),Z(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(o){return o!==r})}}),Z(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var o=n.getFieldsValue(),i=n.getFieldsValue(!0);n.watchList.forEach(function(a){a(o,i,r)})}}),Z(this,"timeoutId",null),Z(this,"warningUnhooked",function(){}),Z(this,"updateStore",function(r){n.store=r}),Z(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(o){return o.getNamePath().length}):n.fieldEntities}),Z(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new cm;return n.getFieldEntities(r).forEach(function(i){var a=i.getNamePath();o.set(a,i)}),o}),Z(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var o=n.getFieldsMap(!0);return r.map(function(i){var a=Ko(i);return o.get(a)||{INVALIDATE_NAME_PATH:Ko(i)}})}),Z(this,"getFieldsValue",function(r,o){n.warningUnhooked();var i,a,s;if(r===!0||Array.isArray(r)?(i=r,a=o):r&&Ht(r)==="object"&&(s=r.strict,a=r.filter),i===!0&&!a)return n.store;var l=n.getFieldEntitiesForNamePathList(Array.isArray(i)?i:null),c=[];return l.forEach(function(u){var f,h,p="INVALIDATE_NAME_PATH"in u?u.INVALIDATE_NAME_PATH:u.getNamePath();if(s){var m,g;if((m=(g=u).isList)!==null&&m!==void 0&&m.call(g))return}else if(!i&&(f=(h=u).isListField)!==null&&f!==void 0&&f.call(h))return;if(!a)c.push(p);else{var v="getMeta"in u?u.getMeta():null;a(v)&&c.push(p)}}),Dz(n.store,c.map(Ko))}),Z(this,"getFieldValue",function(r){n.warningUnhooked();var o=Ko(r);return Mo(n.store,o)}),Z(this,"getFieldsError",function(r){n.warningUnhooked();var o=n.getFieldEntitiesForNamePathList(r);return o.map(function(i,a){return i&&!("INVALIDATE_NAME_PATH"in i)?{name:i.getNamePath(),errors:i.getErrors(),warnings:i.getWarnings()}:{name:Ko(r[a]),errors:[],warnings:[]}})}),Z(this,"getFieldError",function(r){n.warningUnhooked();var o=Ko(r),i=n.getFieldsError([o])[0];return i.errors}),Z(this,"getFieldWarning",function(r){n.warningUnhooked();var o=Ko(r),i=n.getFieldsError([o])[0];return i.warnings}),Z(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,o=new Array(r),i=0;i0&&arguments[0]!==void 0?arguments[0]:{},o=new cm,i=n.getFieldEntities(!0);i.forEach(function(l){var c=l.props.initialValue,u=l.getNamePath();if(c!==void 0){var f=o.get(u)||new Set;f.add({entity:l,value:c}),o.set(u,f)}});var a=function(c){c.forEach(function(u){var f=u.props.initialValue;if(f!==void 0){var h=u.getNamePath(),p=n.getInitialValue(h);if(p!==void 0)yr(!1,"Form already set 'initialValues' with path '".concat(h.join("."),"'. Field can not overwrite it."));else{var m=o.get(h);if(m&&m.size>1)yr(!1,"Multiple Field with path '".concat(h.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(m){var g=n.getFieldValue(h),v=u.isListField();!v&&(!r.skipExist||g===void 0)&&n.updateStore(Yo(n.store,h,Ze(m)[0].value))}}}})},s;r.entities?s=r.entities:r.namePathList?(s=[],r.namePathList.forEach(function(l){var c=o.get(l);if(c){var u;(u=s).push.apply(u,Ze(Ze(c).map(function(f){return f.entity})))}})):s=i,a(s)}),Z(this,"resetFields",function(r){n.warningUnhooked();var o=n.store;if(!r){n.updateStore(Um(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(o,null,{type:"reset"}),n.notifyWatch();return}var i=r.map(Ko);i.forEach(function(a){var s=n.getInitialValue(a);n.updateStore(Yo(n.store,a,s))}),n.resetWithFieldInitialValue({namePathList:i}),n.notifyObservers(o,i,{type:"reset"}),n.notifyWatch(i)}),Z(this,"setFields",function(r){n.warningUnhooked();var o=n.store,i=[];r.forEach(function(a){var s=a.name,l=At(a,wke),c=Ko(s);i.push(c),"value"in l&&n.updateStore(Yo(n.store,c,l.value)),n.notifyObservers(o,[c],{type:"setField",data:a})}),n.notifyWatch(i)}),Z(this,"getFields",function(){var r=n.getFieldEntities(!0),o=r.map(function(i){var a=i.getNamePath(),s=i.getMeta(),l=z(z({},s),{},{name:a,value:n.getFieldValue(a)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return o}),Z(this,"initEntityValue",function(r){var o=r.props.initialValue;if(o!==void 0){var i=r.getNamePath(),a=Mo(n.store,i);a===void 0&&n.updateStore(Yo(n.store,i,o))}}),Z(this,"isMergedPreserve",function(r){var o=r!==void 0?r:n.preserve;return o??!0}),Z(this,"registerField",function(r){n.fieldEntities.push(r);var o=r.getNamePath();if(n.notifyWatch([o]),r.props.initialValue!==void 0){var i=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(i,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(a,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(f){return f!==r}),!n.isMergedPreserve(s)&&(!a||l.length>1)){var c=a?void 0:n.getInitialValue(o);if(o.length&&n.getFieldValue(o)!==c&&n.fieldEntities.every(function(f){return!dre(f.getNamePath(),o)})){var u=n.store;n.updateStore(Yo(u,o,c,!0)),n.notifyObservers(u,[o],{type:"remove"}),n.triggerDependenciesUpdate(u,o)}}n.notifyWatch([o])}}),Z(this,"dispatch",function(r){switch(r.type){case"updateValue":{var o=r.namePath,i=r.value;n.updateValue(o,i);break}case"validateField":{var a=r.namePath,s=r.triggerName;n.validateFields([a],{triggerName:s});break}}}),Z(this,"notifyObservers",function(r,o,i){if(n.subscribable){var a=z(z({},i),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(r,o,a)})}else n.forceRootUpdate()}),Z(this,"triggerDependenciesUpdate",function(r,o){var i=n.getDependencyChildrenFields(o);return i.length&&n.validateFields(i),n.notifyObservers(r,i,{type:"dependenciesUpdate",relatedFields:[o].concat(Ze(i))}),i}),Z(this,"updateValue",function(r,o){var i=Ko(r),a=n.store;n.updateStore(Yo(n.store,i,o)),n.notifyObservers(a,[i],{type:"valueUpdate",source:"internal"}),n.notifyWatch([i]);var s=n.triggerDependenciesUpdate(a,i),l=n.callbacks.onValuesChange;if(l){var c=Dz(n.store,[i]);l(c,n.getFieldsValue())}n.triggerOnFieldsChange([i].concat(Ze(s)))}),Z(this,"setFieldsValue",function(r){n.warningUnhooked();var o=n.store;if(r){var i=Um(n.store,r);n.updateStore(i)}n.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),Z(this,"setFieldValue",function(r,o){n.setFields([{name:r,value:o,errors:[],warnings:[]}])}),Z(this,"getDependencyChildrenFields",function(r){var o=new Set,i=[],a=new cm;n.getFieldEntities().forEach(function(l){var c=l.props.dependencies;(c||[]).forEach(function(u){var f=Ko(u);a.update(f,function(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return h.add(l),h})})});var s=function l(c){var u=a.get(c)||new Set;u.forEach(function(f){if(!o.has(f)){o.add(f);var h=f.getNamePath();f.isFieldDirty()&&h.length&&(i.push(h),l(h))}})};return s(r),i}),Z(this,"triggerOnFieldsChange",function(r,o){var i=n.callbacks.onFieldsChange;if(i){var a=n.getFields();if(o){var s=new cm;o.forEach(function(c){var u=c.name,f=c.errors;s.set(u,f)}),a.forEach(function(c){c.errors=s.get(c.name)||c.errors})}var l=a.filter(function(c){var u=c.name;return ig(r,u)});l.length&&i(l,a)}}),Z(this,"validateFields",function(r,o){n.warningUnhooked();var i,a;Array.isArray(r)||typeof r=="string"||typeof o=="string"?(i=r,a=o):a=r;var s=!!i,l=s?i.map(Ko):[],c=[],u=String(Date.now()),f=new Set,h=a||{},p=h.recursive,m=h.dirty;n.getFieldEntities(!0).forEach(function(y){if(s||l.push(y.getNamePath()),!(!y.props.rules||!y.props.rules.length)&&!(m&&!y.isFieldDirty())){var S=y.getNamePath();if(f.add(S.join(u)),!s||ig(l,S,p)){var w=y.validateRules(z({validateMessages:z(z({},ure),n.validateMessages)},a));c.push(w.then(function(){return{name:S,errors:[],warnings:[]}}).catch(function(E){var C,x=[],_=[];return(C=E.forEach)===null||C===void 0||C.call(E,function(P){var O=P.rule.warningOnly,I=P.errors;O?_.push.apply(_,Ze(I)):x.push.apply(x,Ze(I))}),x.length?Promise.reject({name:S,errors:x,warnings:_}):{name:S,errors:x,warnings:_}}))}}});var g=Cke(c);n.lastValidatePromise=g,g.catch(function(y){return y}).then(function(y){var S=y.map(function(w){var E=w.name;return E});n.notifyObservers(n.store,S,{type:"validateFinish"}),n.triggerOnFieldsChange(S,y)});var v=g.then(function(){return n.lastValidatePromise===g?Promise.resolve(n.getFieldsValue(l)):Promise.reject([])}).catch(function(y){var S=y.filter(function(w){return w&&w.errors.length});return Promise.reject({values:n.getFieldsValue(l),errorFields:S,outOfDate:n.lastValidatePromise!==g})});v.catch(function(y){return y});var b=l.filter(function(y){return f.has(y.join(u))});return n.triggerOnFieldsChange(b),v}),Z(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var o=n.callbacks.onFinish;if(o)try{o(r)}catch(i){console.error(i)}}).catch(function(r){var o=n.callbacks.onFinishFailed;o&&o(r)})}),this.forceRootUpdate=t});function jA(e){var t=d.useRef(),n=d.useState({}),r=$e(n,2),o=r[1];if(!t.current)if(e)t.current=e;else{var i=function(){o({})},a=new xke(i);t.current=a.getForm()}return[t.current]}var X3=d.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),pre=function(t){var n=t.validateMessages,r=t.onFormChange,o=t.onFormFinish,i=t.children,a=d.useContext(X3),s=d.useRef({});return d.createElement(X3.Provider,{value:z(z({},a),{},{validateMessages:z(z({},a.validateMessages),n),triggerFormChange:function(c,u){r&&r(c,{changedFields:u,forms:s.current}),a.triggerFormChange(c,u)},triggerFormFinish:function(c,u){o&&o(c,{values:u,forms:s.current}),a.triggerFormFinish(c,u)},registerForm:function(c,u){c&&(s.current=z(z({},s.current),{},Z({},c,u))),a.registerForm(c,u)},unregisterForm:function(c){var u=z({},s.current);delete u[c],s.current=u,a.unregisterForm(c)}})},i)},Eke=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],_ke=function(t,n){var r=t.name,o=t.initialValues,i=t.fields,a=t.form,s=t.preserve,l=t.children,c=t.component,u=c===void 0?"form":c,f=t.validateMessages,h=t.validateTrigger,p=h===void 0?"onChange":h,m=t.onValuesChange,g=t.onFieldsChange,v=t.onFinish,b=t.onFinishFailed,y=t.clearOnDestroy,S=At(t,Eke),w=d.useRef(null),E=d.useContext(X3),C=jA(a),x=$e(C,1),_=x[0],P=_.getInternalHooks(Oh),O=P.useSubscribe,I=P.setInitialValues,M=P.setCallbacks,T=P.setValidateMessages,D=P.setPreserve,A=P.destroyForm;d.useImperativeHandle(n,function(){return z(z({},_),{},{nativeElement:w.current})}),d.useEffect(function(){return E.registerForm(r,_),function(){E.unregisterForm(r)}},[E,_,r]),T(z(z({},E.validateMessages),f)),M({onValuesChange:m,onFieldsChange:function(ee){if(E.triggerFormChange(r,ee),g){for(var re=arguments.length,ie=new Array(re>1?re-1:0),G=1;G{}}),gre=d.createContext(null),vre=e=>{const t=Yn(e,["prefixCls"]);return d.createElement(pre,Object.assign({},t))},FA=d.createContext({prefixCls:""}),Io=d.createContext({}),Pke=e=>{let{children:t,status:n,override:r}=e;const o=d.useContext(Io),i=d.useMemo(()=>{const a=Object.assign({},o);return r&&delete a.isFormItemInput,n&&(delete a.status,delete a.hasFeedback,delete a.feedbackIcon),a},[n,r,o]);return d.createElement(Io.Provider,{value:i},t)},yre=d.createContext(void 0),ic=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let o=r;return n&&(o=de.createElement(Pke,{override:!0,status:!0},o)),t&&(o=de.createElement(kTe,null,o)),o};function Vg(e){if(e)return{closable:e.closable,closeIcon:e.closeIcon}}function Lz(e){const{closable:t,closeIcon:n}=e||{};return de.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 Bz(){const e={};for(var t=arguments.length,n=new Array(t),r=0;r{o&&Object.keys(o).forEach(i=>{o[i]!==void 0&&(e[i]=o[i])})}),e}const Oke={};function LA(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Oke;const r=Lz(e),o=Lz(t),i=typeof r!="boolean"?!!(r!=null&&r.disabled):!1,a=de.useMemo(()=>Object.assign({closeIcon:de.createElement(ou,null)},n),[n]),s=de.useMemo(()=>r===!1?!1:r?Bz(a,o,r):o===!1?!1:o?Bz(a,o):a.closable?a:!1,[r,o,a]);return de.useMemo(()=>{if(s===!1)return[!1,null,i];const{closeIconRender:l}=a,{closeIcon:c}=s;let u=c;if(u!=null){l&&(u=l(c));const f=Jr(s,!0);Object.keys(f).length&&(u=de.isValidElement(u)?de.cloneElement(u,f):de.createElement("span",Object.assign({},f),u))}return[!0,u,i]},[s,a])}var bre=function(t){if(Ca()&&window.document.documentElement){var n=Array.isArray(t)?t:[t],r=window.document.documentElement;return n.some(function(o){return o in r.style})}return!1},Mke=function(t,n){if(!bre(t))return!1;var r=document.createElement("div"),o=r.style[t];return r.style[t]=n,r.style[t]!==o};function Tke(e,t){return!Array.isArray(e)&&t!==void 0?Mke(e,t):bre(e)}const Rke=()=>Ca()&&window.document.documentElement,A$=e=>{const{prefixCls:t,className:n,style:r,size:o,shape:i}=e,a=xe({[`${t}-lg`]:o==="large",[`${t}-sm`]:o==="small"}),s=xe({[`${t}-circle`]:i==="circle",[`${t}-square`]:i==="square",[`${t}-round`]:i==="round"}),l=d.useMemo(()=>typeof o=="number"?{width:o,height:o,lineHeight:`${o}px`}:{},[o]);return d.createElement("span",{className:xe(t,a,s,n),style:Object.assign(Object.assign({},l),r)})},Ike=new Gn("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),D$=e=>({height:e,lineHeight:_e(e)}),ag=e=>Object.assign({width:e},D$(e)),kke=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:Ike,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),UT=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},D$(e)),Nke=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},ag(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},ag(o)),[`${t}${t}-sm`]:Object.assign({},ag(i))}},Ake=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a,calc:s}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:n},UT(t,s)),[`${r}-lg`]:Object.assign({},UT(o,s)),[`${r}-sm`]:Object.assign({},UT(i,s))}},zz=e=>Object.assign({width:e},D$(e)),Dke=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:o,calc:i}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:r,borderRadius:o},zz(i(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},zz(n)),{maxWidth:i(n).mul(4).equal(),maxHeight:i(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},WT=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},VT=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},D$(e)),jke=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a,calc:s}=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:s(r).mul(2).equal(),minWidth:s(r).mul(2).equal()},VT(r,s))},WT(e,r,n)),{[`${n}-lg`]:Object.assign({},VT(o,s))}),WT(e,o,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},VT(i,s))}),WT(e,i,`${n}-sm`))},Fke=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:o,skeletonButtonCls:i,skeletonInputCls:a,skeletonImageCls:s,controlHeight:l,controlHeightLG:c,controlHeightSM:u,gradientFromColor:f,padding:h,marginSM:p,borderRadius:m,titleHeight:g,blockRadius:v,paragraphLiHeight:b,controlHeightXS:y,paragraphMarginTop:S}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:h,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:f},ag(l)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},ag(c)),[`${n}-sm`]:Object.assign({},ag(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:g,background:f,borderRadius:v,[`+ ${o}`]:{marginBlockStart:u}},[o]:{padding:0,"> li":{width:"100%",height:b,listStyle:"none",background:f,borderRadius:v,"+ li":{marginBlockStart:y}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${o} > li`]:{borderRadius:m}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:p,[`+ ${o}`]:{marginBlockStart:S}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},jke(e)),Nke(e)),Ake(e)),Dke(e)),[`${t}${t}-block`]:{width:"100%",[i]:{width:"100%"},[a]:{width:"100%"}},[`${t}${t}-active`]:{[` ${r}, ${o} > li, ${n}, ${i}, ${a}, ${s} `]:Object.assign({},kke(e))}}},Lke=e=>{const{colorFillContent:t,colorFill:n}=e,r=t,o=n;return{color:r,colorGradientEnd:o,gradientFromColor:r,gradientToColor:o,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},Rv=Kn("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=kn(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[Fke(r)]},Lke,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),Bke=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,shape:i="circle",size:a="default"}=e,{getPrefixCls:s}=d.useContext(Yt),l=s("skeleton",t),[c,u,f]=Rv(l),h=Yn(e,["prefixCls","className"]),p=xe(l,`${l}-element`,{[`${l}-active`]:o},n,r,u,f);return c(d.createElement("div",{className:p},d.createElement(A$,Object.assign({prefixCls:`${l}-avatar`,shape:i,size:a},h))))},zke=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:i=!1,size:a="default"}=e,{getPrefixCls:s}=d.useContext(Yt),l=s("skeleton",t),[c,u,f]=Rv(l),h=Yn(e,["prefixCls"]),p=xe(l,`${l}-element`,{[`${l}-active`]:o,[`${l}-block`]:i},n,r,u,f);return c(d.createElement("div",{className:p},d.createElement(A$,Object.assign({prefixCls:`${l}-button`,size:a},h))))},Hke="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",Uke=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:i}=e,{getPrefixCls:a}=d.useContext(Yt),s=a("skeleton",t),[l,c,u]=Rv(s),f=xe(s,`${s}-element`,{[`${s}-active`]:i},n,r,c,u);return l(d.createElement("div",{className:f},d.createElement("div",{className:xe(`${s}-image`,n),style:o},d.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${s}-image-svg`},d.createElement("title",null,"Image placeholder"),d.createElement("path",{d:Hke,className:`${s}-image-path`})))))},Wke=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:i,size:a="default"}=e,{getPrefixCls:s}=d.useContext(Yt),l=s("skeleton",t),[c,u,f]=Rv(l),h=Yn(e,["prefixCls"]),p=xe(l,`${l}-element`,{[`${l}-active`]:o,[`${l}-block`]:i},n,r,u,f);return c(d.createElement("div",{className:p},d.createElement(A$,Object.assign({prefixCls:`${l}-input`,size:a},h))))},Vke=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:i,children:a}=e,{getPrefixCls:s}=d.useContext(Yt),l=s("skeleton",t),[c,u,f]=Rv(l),h=xe(l,`${l}-element`,{[`${l}-active`]:i},u,n,r,f);return c(d.createElement("div",{className:h},d.createElement("div",{className:xe(`${l}-image`,n),style:o},a)))},Kke=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},qke=e=>{const{prefixCls:t,className:n,style:r,rows:o}=e,i=Ze(new Array(o)).map((a,s)=>d.createElement("li",{key:s,style:{width:Kke(s,e)}}));return d.createElement("ul",{className:xe(t,n),style:r},i)},Gke=e=>{let{prefixCls:t,className:n,width:r,style:o}=e;return d.createElement("h3",{className:xe(t,n),style:Object.assign({width:r},o)})};function KT(e){return e&&typeof e=="object"?e:{}}function Yke(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Xke(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function Qke(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const pd=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:o,style:i,children:a,avatar:s=!1,title:l=!0,paragraph:c=!0,active:u,round:f}=e,{getPrefixCls:h,direction:p,skeleton:m}=d.useContext(Yt),g=h("skeleton",t),[v,b,y]=Rv(g);if(n||!("loading"in e)){const S=!!s,w=!!l,E=!!c;let C;if(S){const P=Object.assign(Object.assign({prefixCls:`${g}-avatar`},Yke(w,E)),KT(s));C=d.createElement("div",{className:`${g}-header`},d.createElement(A$,Object.assign({},P)))}let x;if(w||E){let P;if(w){const I=Object.assign(Object.assign({prefixCls:`${g}-title`},Xke(S,E)),KT(l));P=d.createElement(Gke,Object.assign({},I))}let O;if(E){const I=Object.assign(Object.assign({prefixCls:`${g}-paragraph`},Qke(S,w)),KT(c));O=d.createElement(qke,Object.assign({},I))}x=d.createElement("div",{className:`${g}-content`},P,O)}const _=xe(g,{[`${g}-with-avatar`]:S,[`${g}-active`]:u,[`${g}-rtl`]:p==="rtl",[`${g}-round`]:f},m==null?void 0:m.className,r,o,b,y);return v(d.createElement("div",{className:_,style:Object.assign(Object.assign({},m==null?void 0:m.style),i)},C,x))}return a??null};pd.Button=zke;pd.Avatar=Bke;pd.Input=Wke;pd.Image=Uke;pd.Node=Vke;function Hz(){}const Jke=d.createContext({add:Hz,remove:Hz});function Sre(e){const t=d.useContext(Jke),n=d.useRef(null);return An(o=>{if(o){const i=e?o.querySelector(e):o;t.add(i),n.current=i}else t.remove(n.current)})}const Uz=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=d.useContext(W1);return de.createElement(Hn,Object.assign({onClick:n},e),t)},Wz=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:o}=d.useContext(W1);return de.createElement(Hn,Object.assign({},_A(n),{loading:e,onClick:o},t),r)};function Cre(e,t){return de.createElement("span",{className:`${e}-close-x`},t||de.createElement(ou,{className:`${e}-close-icon`}))}const wre=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:o,onOk:i,onCancel:a,okButtonProps:s,cancelButtonProps:l,footer:c}=e,[u]=zi("Modal",Ute()),f=t||(u==null?void 0:u.okText),h=r||(u==null?void 0:u.cancelText),p={confirmLoading:o,okButtonProps:s,cancelButtonProps:l,okTextLocale:f,cancelTextLocale:h,okType:n,onOk:i,onCancel:a},m=de.useMemo(()=>p,Ze(Object.values(p)));let g;return typeof c=="function"||typeof c>"u"?(g=de.createElement(de.Fragment,null,de.createElement(Uz,null),de.createElement(Wz,null)),typeof c=="function"&&(g=c(g,{OkBtn:Wz,CancelBtn:Uz})),g=de.createElement(rre,{value:m},g)):g=c,de.createElement(yA,{disabled:!1},g)},Zke=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"}}}},e4e=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},t4e=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:o}=e,i={};for(let a=o;a>=0;a--)a===0?(i[`${r}${t}-${a}`]={display:"none"},i[`${r}-push-${a}`]={insetInlineStart:"auto"},i[`${r}-pull-${a}`]={insetInlineEnd:"auto"},i[`${r}${t}-push-${a}`]={insetInlineStart:"auto"},i[`${r}${t}-pull-${a}`]={insetInlineEnd:"auto"},i[`${r}${t}-offset-${a}`]={marginInlineStart:0},i[`${r}${t}-order-${a}`]={order:0}):(i[`${r}${t}-${a}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${a/o*100}%`,maxWidth:`${a/o*100}%`}],i[`${r}${t}-push-${a}`]={insetInlineStart:`${a/o*100}%`},i[`${r}${t}-pull-${a}`]={insetInlineEnd:`${a/o*100}%`},i[`${r}${t}-offset-${a}`]={marginInlineStart:`${a/o*100}%`},i[`${r}${t}-order-${a}`]={order:a});return i[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},i},Q3=(e,t)=>t4e(e,t),n4e=(e,t,n)=>({[`@media (min-width: ${_e(t)})`]:Object.assign({},Q3(e,n))}),r4e=()=>({}),o4e=()=>({}),i4e=Kn("Grid",Zke,r4e),xre=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),a4e=Kn("Grid",e=>{const t=kn(e,{gridColumns:24}),n=xre(t);return delete n.xs,[e4e(t),Q3(t,""),Q3(t,"-xs"),Object.keys(n).map(r=>n4e(t,n[r],`-${r}`)).reduce((r,o)=>Object.assign(Object.assign({},r),o),{})]},o4e);function Vz(e){return{position:e,inset:0}}const Ere=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({},Vz("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},Vz("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:OA(e)}]},s4e=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:`${_e(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},Qn(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${_e(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:_e(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},Ka(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${_e(e.borderRadiusLG)} ${_e(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:`${_e(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"}}}]},l4e=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},c4e=e=>{const{componentCls:t}=e,n=xre(e);delete n.xs;const r=Object.keys(n).map(o=>({[`@media (min-width: ${_e(n[o])})`]:{width:`var(--${t.replace(".","")}-${o}-width)`}}));return{[`${t}-root`]:{[t]:[{width:`var(--${t.replace(".","")}-xs-width)`}].concat(Ze(r))}}},_re=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return kn(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()})},$re=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${_e(e.paddingMD)} ${_e(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${_e(e.padding)} ${_e(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${_e(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${_e(e.paddingXS)} ${_e(e.padding)}`:0,footerBorderTop:e.wireframe?`${_e(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${_e(e.borderRadiusLG)} ${_e(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${_e(e.padding*2)} ${_e(e.padding*2)} ${_e(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),Pre=Kn("Modal",e=>{const t=_re(e);return[s4e(t),l4e(t),Ere(t),Mv(t,"zoom"),c4e(t)]},$re,{unitless:{titleLineHeight:!0}});var u4e=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 o=0,r=Object.getOwnPropertySymbols(e);o{J3={x:e.pageX,y:e.pageY},setTimeout(()=>{J3=null},100)};Rke()&&document.documentElement.addEventListener("click",d4e,!0);const Ore=e=>{var t;const{getPopupContainer:n,getPrefixCls:r,direction:o,modal:i}=d.useContext(Yt),a=ie=>{const{onCancel:G}=e;G==null||G(ie)},s=ie=>{const{onOk:G}=e;G==null||G(ie)},{prefixCls:l,className:c,rootClassName:u,open:f,wrapClassName:h,centered:p,getContainer:m,focusTriggerAfterClose:g=!0,style:v,visible:b,width:y=520,footer:S,classNames:w,styles:E,children:C,loading:x}=e,_=u4e(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading"]),P=r("modal",l),O=r(),I=Mr(P),[M,T,D]=Pre(P,I),A=xe(h,{[`${P}-centered`]:!!p,[`${P}-wrap-rtl`]:o==="rtl"}),j=S!==null&&!x?d.createElement(wre,Object.assign({},e,{onOk:s,onCancel:a})):null,[k,F,V]=LA(Vg(e),Vg(i),{closable:!0,closeIcon:d.createElement(ou,{className:`${P}-close-icon`}),closeIconRender:ie=>Cre(P,ie)}),W=Sre(`.${P}-content`),[K,L]=vl("Modal",_.zIndex),[Q,ee]=d.useMemo(()=>y&&typeof y=="object"?[void 0,y]:[y,void 0],[y]),re=d.useMemo(()=>{const ie={};return ee&&Object.keys(ee).forEach(G=>{const X=ee[G];X!==void 0&&(ie[`--${P}-${G}-width`]=typeof X=="number"?`${X}px`:X)}),ie},[ee]);return M(d.createElement(ic,{form:!0,space:!0},d.createElement(B1.Provider,{value:L},d.createElement(NA,Object.assign({width:Q},_,{zIndex:K,getContainer:m===void 0?n:m,prefixCls:P,rootClassName:xe(T,u,D,I),footer:j,visible:f??b,mousePosition:(t=_.mousePosition)!==null&&t!==void 0?t:J3,onClose:a,closable:k&&{disabled:V,closeIcon:F},closeIcon:F,focusTriggerAfterClose:g,transitionName:Mi(O,"zoom",e.transitionName),maskTransitionName:Mi(O,"fade",e.maskTransitionName),className:xe(T,c,i==null?void 0:i.className),style:Object.assign(Object.assign(Object.assign({},i==null?void 0:i.style),v),re),classNames:Object.assign(Object.assign(Object.assign({},i==null?void 0:i.classNames),w),{wrapper:xe(A,w==null?void 0:w.wrapper)}),styles:Object.assign(Object.assign({},i==null?void 0:i.styles),E),panelRef:W}),x?d.createElement(pd,{active:!0,title:!1,paragraph:{rows:4},className:`${P}-body-skeleton`}):C))))},f4e=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:o,fontSize:i,lineHeight:a,modalTitleHeight:s,fontHeight:l,confirmBodyPadding:c}=e,u=`${t}-confirm`;return{[u]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${u}-body-wrapper`]:Object.assign({},nc()),[`&${t} ${t}-body`]:{padding:c},[`${u}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:o,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(l).sub(o).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(s).sub(o).equal()).div(2).equal()}},[`${u}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${_e(e.marginSM)})`},[`${e.iconCls} + ${u}-paragraph`]:{maxWidth:`calc(100% - ${_e(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${u}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${u}-content`]:{color:e.colorText,fontSize:i,lineHeight:a},[`${u}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${u}-error ${u}-body > ${e.iconCls}`]:{color:e.colorError},[`${u}-warning ${u}-body > ${e.iconCls}, ${u}-confirm ${u}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${u}-info ${u}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${u}-success ${u}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},h4e=$v(["Modal","confirm"],e=>{const t=_re(e);return[f4e(t)]},$re,{order:-1e3});var p4e=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 o=0,r=Object.getOwnPropertySymbols(e);oy,Ze(Object.values(y))),w=d.createElement(d.Fragment,null,d.createElement(bz,null),d.createElement(Sz,null)),E=e.title!==void 0&&e.title!==null,C=`${i}-body`;return d.createElement("div",{className:`${i}-body-wrapper`},d.createElement("div",{className:xe(C,{[`${C}-has-title`]:E})},f,d.createElement("div",{className:`${i}-paragraph`},E&&d.createElement("span",{className:`${i}-title`},e.title),d.createElement("div",{className:`${i}-content`},e.content))),l===void 0||typeof l=="function"?d.createElement(rre,{value:S},d.createElement("div",{className:`${i}-btns`},typeof l=="function"?l(w,{OkBtn:Sz,CancelBtn:bz}):w)):l,d.createElement(h4e,{prefixCls:t}))}const m4e=e=>{const{close:t,zIndex:n,maskStyle:r,direction:o,prefixCls:i,wrapClassName:a,rootPrefixCls:s,bodyStyle:l,closable:c=!1,onConfirm:u,styles:f}=e,h=`${i}-confirm`,p=e.width||416,m=e.style||{},g=e.mask===void 0?!0:e.mask,v=e.maskClosable===void 0?!1:e.maskClosable,b=xe(h,`${h}-${e.type}`,{[`${h}-rtl`]:o==="rtl"},e.className),[,y]=Ho(),S=d.useMemo(()=>n!==void 0?n:y.zIndexPopupBase+wA,[n,y]);return d.createElement(Ore,Object.assign({},e,{className:b,wrapClassName:xe({[`${h}-centered`]:!!e.centered},a),onCancel:()=>{t==null||t({triggerCancel:!0}),u==null||u(!1)},title:"",footer:null,transitionName:Mi(s||"","zoom",e.transitionName),maskTransitionName:Mi(s||"","fade",e.maskTransitionName),mask:g,maskClosable:v,style:m,styles:Object.assign({body:l,mask:r},f),width:p,zIndex:S,closable:c}),d.createElement(Mre,Object.assign({},e,{confirmPrefixCls:h})))},Tre=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:o}=e;return d.createElement(Mn,{prefixCls:t,iconPrefixCls:n,direction:r,theme:o},d.createElement(m4e,Object.assign({},e)))},Mh=[];let Rre="";function Ire(){return Rre}const g4e=e=>{var t,n;const{prefixCls:r,getContainer:o,direction:i}=e,a=Ute(),s=d.useContext(Yt),l=Ire()||s.getPrefixCls(),c=r||`${l}-modal`;let u=o;return u===!1&&(u=void 0),de.createElement(Tre,Object.assign({},e,{rootPrefixCls:l,prefixCls:c,iconPrefixCls:s.iconPrefixCls,theme:s.theme,direction:i??s.direction,locale:(n=(t=s.locale)===null||t===void 0?void 0:t.Modal)!==null&&n!==void 0?n:a,getContainer:u}))};function q1(e){const t=xne(),n=document.createDocumentFragment();let r=Object.assign(Object.assign({},e),{close:l,open:!0}),o,i;function a(){for(var u,f=arguments.length,h=new Array(f),p=0;pv==null?void 0:v.triggerCancel)){var g;(u=e.onCancel)===null||u===void 0||(g=u).call.apply(g,[e,()=>{}].concat(Ze(h.slice(1))))}for(let v=0;v{const f=t.getPrefixCls(void 0,Ire()),h=t.getIconPrefixCls(),p=t.getTheme(),m=de.createElement(g4e,Object.assign({},u));i=EA()(de.createElement(Mn,{prefixCls:f,iconPrefixCls:h,theme:p},t.holderRender?t.holderRender(m):m),n)})}function l(){for(var u=arguments.length,f=new Array(u),h=0;h{typeof e.afterClose=="function"&&e.afterClose(),a.apply(this,f)}}),r.visible&&delete r.visible,s(r)}function c(u){typeof u=="function"?r=u(r):r=Object.assign(Object.assign({},r),u),s(r)}return s(r),Mh.push(l),{destroy:l,update:c}}function kre(e){return Object.assign(Object.assign({},e),{type:"warning"})}function Nre(e){return Object.assign(Object.assign({},e),{type:"info"})}function Are(e){return Object.assign(Object.assign({},e),{type:"success"})}function Dre(e){return Object.assign(Object.assign({},e),{type:"error"})}function jre(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function v4e(e){let{rootPrefixCls:t}=e;Rre=t}var y4e=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 o=0,r=Object.getOwnPropertySymbols(e);o{var n,{afterClose:r,config:o}=e,i=y4e(e,["afterClose","config"]);const[a,s]=d.useState(!0),[l,c]=d.useState(o),{direction:u,getPrefixCls:f}=d.useContext(Yt),h=f("modal"),p=f(),m=()=>{var y;r(),(y=l.afterClose)===null||y===void 0||y.call(l)},g=function(){var y;s(!1);for(var S=arguments.length,w=new Array(S),E=0;E_==null?void 0:_.triggerCancel)){var x;(y=l.onCancel)===null||y===void 0||(x=y).call.apply(x,[l,()=>{}].concat(Ze(w.slice(1))))}};d.useImperativeHandle(t,()=>({destroy:g,update:y=>{c(S=>Object.assign(Object.assign({},S),y))}}));const v=(n=l.okCancel)!==null&&n!==void 0?n:l.type==="confirm",[b]=zi("Modal",Os.Modal);return d.createElement(Tre,Object.assign({prefixCls:h,rootPrefixCls:p},l,{close:g,open:a,afterClose:m,okText:l.okText||(v?b==null?void 0:b.okText:b==null?void 0:b.justOkText),direction:l.direction||u,cancelText:l.cancelText||(b==null?void 0:b.cancelText)},i))},S4e=d.forwardRef(b4e);let Kz=0;const C4e=d.memo(d.forwardRef((e,t)=>{const[n,r]=dTe();return d.useImperativeHandle(t,()=>({patchElement:r}),[]),d.createElement(d.Fragment,null,n)}));function Fre(){const e=d.useRef(null),[t,n]=d.useState([]);d.useEffect(()=>{t.length&&(Ze(t).forEach(a=>{a()}),n([]))},[t]);const r=d.useCallback(i=>function(s){var l;Kz+=1;const c=d.createRef();let u;const f=new Promise(v=>{u=v});let h=!1,p;const m=d.createElement(S4e,{key:`modal-${Kz}`,config:i(s),ref:c,afterClose:()=>{p==null||p()},isSilent:()=>h,onConfirm:v=>{u(v)}});return p=(l=e.current)===null||l===void 0?void 0:l.patchElement(m),p&&Mh.push(p),{destroy:()=>{function v(){var b;(b=c.current)===null||b===void 0||b.destroy()}c.current?v():n(b=>[].concat(Ze(b),[v]))},update:v=>{function b(){var y;(y=c.current)===null||y===void 0||y.update(v)}c.current?b():n(y=>[].concat(Ze(y),[b]))},then:v=>(h=!0,f.then(v))}},[]);return[d.useMemo(()=>({info:r(Nre),success:r(Are),error:r(Dre),warning:r(kre),confirm:r(jre)}),[]),d.createElement(C4e,{key:"modal-holder",ref:e})]}const w4e=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,o=`${t}-notice`,i=new Gn("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),a=new Gn("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),s=new Gn("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),l=new Gn("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[t]:{[`&${t}-top, &${t}-bottom`]:{marginInline:0,[o]:{marginInline:"auto auto"}},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:a}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:s}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:i}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:n,_skip_check_:!0},[o]:{marginInlineEnd:"auto",marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:l}}}}},x4e=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],E4e={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},_4e=(e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[E4e[t]]:{value:0,_skip_check_:!0}}}}},$4e=e=>{const t={};for(let n=1;n ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return Object.assign({[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"}},t)},P4e=e=>{const t={};for(let n=1;n{const{componentCls:t}=e;return Object.assign({[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:Object.assign({transition:`all ${e.motionDurationSlow}, backdrop-filter 0s`,position:"absolute"},$4e(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},P4e(e))},[`${t}-stack${t}-stack-expanded`]:{[`& > ${t}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:e.calc(e.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}}},x4e.map(n=>_4e(e,n)).reduce((n,r)=>Object.assign(Object.assign({},n),r),{}))},M4e=e=>{const{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:o,notificationMarginBottom:i,borderRadiusLG:a,colorSuccess:s,colorInfo:l,colorWarning:c,colorError:u,colorTextHeading:f,notificationBg:h,notificationPadding:p,notificationMarginEdge:m,notificationProgressBg:g,notificationProgressHeight:v,fontSize:b,lineHeight:y,width:S,notificationIconSize:w,colorText:E}=e,C=`${n}-notice`;return{position:"relative",marginBottom:i,marginInlineStart:"auto",background:h,borderRadius:a,boxShadow:r,[C]:{padding:p,width:S,maxWidth:`calc(100vw - ${_e(e.calc(m).mul(2).equal())})`,overflow:"hidden",lineHeight:y,wordWrap:"break-word"},[`${C}-message`]:{marginBottom:e.marginXS,color:f,fontSize:o,lineHeight:e.lineHeightLG},[`${C}-description`]:{fontSize:b,color:E},[`${C}-closable ${C}-message`]:{paddingInlineEnd:e.paddingLG},[`${C}-with-icon ${C}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.calc(e.marginSM).add(w).equal(),fontSize:o},[`${C}-with-icon ${C}-description`]:{marginInlineStart:e.calc(e.marginSM).add(w).equal(),fontSize:b},[`${C}-icon`]:{position:"absolute",fontSize:w,lineHeight:1,[`&-success${t}`]:{color:s},[`&-info${t}`]:{color:l},[`&-warning${t}`]:{color:c},[`&-error${t}`]:{color:u}},[`${C}-close`]:Object.assign({position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},Ka(e)),[`${C}-progress`]:{position:"absolute",display:"block",appearance:"none",WebkitAppearance:"none",inlineSize:`calc(100% - ${_e(a)} * 2)`,left:{_skip_check_:!0,value:a},right:{_skip_check_:!0,value:a},bottom:0,blockSize:v,border:0,"&, &::-webkit-progress-bar":{borderRadius:a,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:g},"&::-webkit-progress-value":{borderRadius:a,background:g}},[`${C}-btn`]:{float:"right",marginTop:e.marginSM}}},T4e=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:o,motionEaseInOut:i}=e,a=`${t}-notice`,s=new Gn("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},Qn(e)),{position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:r,_skip_check_:!0},[`${t}-hook-holder`]:{position:"relative"},[`${t}-fade-appear-prepare`]:{opacity:"0 !important"},[`${t}-fade-enter, ${t}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:i,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:i,animationFillMode:"both",animationDuration:o,animationPlayState:"paused"},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationPlayState:"running"},[`${t}-fade-leave${t}-fade-leave-active`]:{animationName:s,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${a}-btn`]:{float:"left"}}})},{[t]:{[`${a}-wrapper`]:Object.assign({},M4e(e))}}]},R4e=e=>({zIndexPopup:e.zIndexPopupBase+wA+50,width:384}),I4e=e=>{const t=e.paddingMD,n=e.paddingLG;return kn(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${_e(e.paddingMD)} ${_e(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2,notificationProgressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`})},k4e=Kn("Notification",e=>{const t=I4e(e);return[T4e(t),w4e(t),O4e(t)]},R4e);function Lre(e,t){return t===null||t===!1?null:t||d.createElement(ou,{className:`${e}-close-icon`})}const N4e={success:Lp,info:S$,error:ru,warning:Df},A4e=e=>{const{prefixCls:t,icon:n,type:r,message:o,description:i,btn:a,role:s="alert"}=e;let l=null;return n?l=d.createElement("span",{className:`${t}-icon`},n):r&&(l=d.createElement(N4e[r]||null,{className:xe(`${t}-icon`,`${t}-icon-${r}`)})),d.createElement("div",{className:xe({[`${t}-with-icon`]:l}),role:s},l,d.createElement("div",{className:`${t}-message`},o),d.createElement("div",{className:`${t}-description`},i),a&&d.createElement("div",{className:`${t}-btn`},a))};function D4e(e,t,n){let r;switch(e){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":r={left:0,top:t,bottom:"auto"};break;case"topRight":r={right:0,top:t,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n};break}return r}function j4e(e){return{motionName:`${e}-fade`}}var F4e=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 o=0,r=Object.getOwnPropertySymbols(e);o{let{children:t,prefixCls:n}=e;const r=Mr(n),[o,i,a]=k4e(n,r);return o(de.createElement(Nne,{classNames:{list:xe(i,a,r)}},t))},H4e=(e,t)=>{let{prefixCls:n,key:r}=t;return de.createElement(z4e,{prefixCls:n,key:r},e)},U4e=de.forwardRef((e,t)=>{const{top:n,bottom:r,prefixCls:o,getContainer:i,maxCount:a,rtl:s,onAllRemoved:l,stack:c,duration:u,pauseOnHover:f=!0,showProgress:h}=e,{getPrefixCls:p,getPopupContainer:m,notification:g,direction:v}=d.useContext(Yt),[,b]=Ho(),y=o||p("notification"),S=_=>D4e(_,n??qz,r??qz),w=()=>xe({[`${y}-rtl`]:s??v==="rtl"}),E=()=>j4e(y),[C,x]=Ane({prefixCls:y,style:S,className:w,motion:E,closable:!0,closeIcon:Lre(y),duration:u??L4e,getContainer:()=>(i==null?void 0:i())||(m==null?void 0:m())||document.body,maxCount:a,pauseOnHover:f,showProgress:h,onAllRemoved:l,renderNotifications:H4e,stack:c===!1?!1:{threshold:typeof c=="object"?c==null?void 0:c.threshold:void 0,offset:8,gap:b.margin}});return de.useImperativeHandle(t,()=>Object.assign(Object.assign({},C),{prefixCls:y,notification:g})),x});function W4e(e){const t=de.useRef(null);return nu(),[de.useMemo(()=>{const r=s=>{var l;if(!t.current)return;const{open:c,prefixCls:u,notification:f}=t.current,h=`${u}-notice`,{message:p,description:m,icon:g,type:v,btn:b,className:y,style:S,role:w="alert",closeIcon:E,closable:C}=s,x=F4e(s,["message","description","icon","type","btn","className","style","role","closeIcon","closable"]),_=Lre(h,typeof E<"u"?E:f==null?void 0:f.closeIcon);return c(Object.assign(Object.assign({placement:(l=e==null?void 0:e.placement)!==null&&l!==void 0?l:B4e},x),{content:de.createElement(A4e,{prefixCls:h,icon:g,type:v,message:p,description:m,btn:b,role:w}),className:xe(v&&`${h}-${v}`,y,f==null?void 0:f.className),style:Object.assign(Object.assign({},f==null?void 0:f.style),S),closeIcon:_,closable:C??!!_}))},i={open:r,destroy:s=>{var l,c;s!==void 0?(l=t.current)===null||l===void 0||l.close(s):(c=t.current)===null||c===void 0||c.destroy()}};return["success","info","warning","error"].forEach(s=>{i[s]=l=>r(Object.assign(Object.assign({},l),{type:s}))}),i},[]),de.createElement(U4e,Object.assign({key:"notification-holder"},e,{ref:t}))]}function V4e(e){return W4e(e)}const Z3=de.createContext({}),Bre=de.createContext({message:{},notification:{},modal:{}}),K4e=e=>{const{componentCls:t,colorText:n,fontSize:r,lineHeight:o,fontFamily:i}=e;return{[t]:{color:n,fontSize:r,lineHeight:o,fontFamily:i,[`&${t}-rtl`]:{direction:"rtl"}}}},q4e=()=>({}),G4e=Kn("App",K4e,q4e),Y4e=()=>de.useContext(Bre),j$=e=>{const{prefixCls:t,children:n,className:r,rootClassName:o,message:i,notification:a,style:s,component:l="div"}=e,{direction:c,getPrefixCls:u}=d.useContext(Yt),f=u("app",t),[h,p,m]=G4e(f),g=xe(p,f,r,o,m,{[`${f}-rtl`]:c==="rtl"}),v=d.useContext(Z3),b=de.useMemo(()=>({message:Object.assign(Object.assign({},v.message),i),notification:Object.assign(Object.assign({},v.notification),a)}),[i,a,v.message,v.notification]),[y,S]=Bne(b.message),[w,E]=V4e(b.notification),[C,x]=Fre(),_=de.useMemo(()=>({message:y,notification:w,modal:C}),[y,w,C]);nu()(!(m&&l===!1),"usage","When using cssVar, ensure `component` is assigned a valid React component string.");const P=l===!1?de.Fragment:l,O={className:g,style:s};return h(de.createElement(Bre.Provider,{value:_},de.createElement(Z3.Provider,{value:b},de.createElement(P,Object.assign({},l===!1?void 0:O),x,S,E,n))))};j$.useApp=Y4e;function zre(e){return t=>d.createElement(Mn,{theme:{token:{motion:!1,zIndexPopupBase:0}}},d.createElement(e,Object.assign({},t)))}const jf=(e,t,n,r,o)=>zre(a=>{const{prefixCls:s,style:l}=a,c=d.useRef(null),[u,f]=d.useState(0),[h,p]=d.useState(0),[m,g]=xn(!1,{value:a.open}),{getPrefixCls:v}=d.useContext(Yt),b=v(r||"select",s);d.useEffect(()=>{if(g(!0),typeof ResizeObserver<"u"){const w=new ResizeObserver(C=>{const x=C[0].target;f(x.offsetHeight+8),p(x.offsetWidth)}),E=setInterval(()=>{var C;const x=o?`.${o(b)}`:`.${b}-dropdown`,_=(C=c.current)===null||C===void 0?void 0:C.querySelector(x);_&&(clearInterval(E),w.observe(_))},10);return()=>{clearInterval(E),w.disconnect()}}},[]);let y=Object.assign(Object.assign({},a),{style:Object.assign(Object.assign({},l),{margin:0}),open:m,visible:m,getPopupContainer:()=>c.current});n&&(y=n(y)),t&&Object.assign(y,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const S={paddingBottom:u,position:"relative",minWidth:h};return d.createElement("div",{ref:c,style:S},d.createElement(e,Object.assign({},y)))}),F$=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 L$=function(t){var n=t.className,r=t.customizeIcon,o=t.customizeIconProps,i=t.children,a=t.onMouseDown,s=t.onClick,l=typeof r=="function"?r(o):r;return d.createElement("span",{className:n,onMouseDown:function(u){u.preventDefault(),a==null||a(u)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:s,"aria-hidden":!0},l!==void 0?l:d.createElement("span",{className:xe(n.split(/\s+/).map(function(c){return"".concat(c,"-icon")}))},i))},X4e=function(t,n,r,o,i){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,s=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0,c=de.useMemo(function(){if(Ht(o)==="object")return o.clearIcon;if(i)return i},[o,i]),u=de.useMemo(function(){return!!(!a&&o&&(r.length||s)&&!(l==="combobox"&&s===""))},[o,a,r.length,s,l]);return{allowClear:u,clearIcon:de.createElement(L$,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:c},"×")}},Hre=d.createContext(null);function BA(){return d.useContext(Hre)}function Q4e(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=d.useState(!1),n=$e(t,2),r=n[0],o=n[1],i=d.useRef(null),a=function(){window.clearTimeout(i.current)};d.useEffect(function(){return a},[]);var s=function(c,u){a(),i.current=window.setTimeout(function(){o(c),u&&u()},e)};return[r,s,a]}function Ure(){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(o){(o||t.current===null)&&(t.current=o),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},r]}function J4e(e,t,n,r){var o=d.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},d.useEffect(function(){function i(a){var s;if(!((s=o.current)!==null&&s!==void 0&&s.customizedTrigger)){var l=a.target;l.shadowRoot&&a.composed&&(l=a.composedPath()[0]||l),o.current.open&&e().filter(function(c){return c}).every(function(c){return!c.contains(l)&&c!==l})&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",i),function(){return window.removeEventListener("mousedown",i)}},[])}function Z4e(e){return e&&![ut.ESC,ut.SHIFT,ut.BACKSPACE,ut.TAB,ut.WIN_KEY,ut.ALT,ut.META,ut.WIN_KEY_RIGHT,ut.CTRL,ut.SEMICOLON,ut.EQUALS,ut.CAPS_LOCK,ut.CONTEXT_MENU,ut.F1,ut.F2,ut.F3,ut.F4,ut.F5,ut.F6,ut.F7,ut.F8,ut.F9,ut.F10,ut.F11,ut.F12].includes(e)}var e3e=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],um=void 0;function t3e(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,i=e.renderItem,a=e.responsive,s=e.responsiveDisabled,l=e.registerSize,c=e.itemKey,u=e.className,f=e.style,h=e.children,p=e.display,m=e.order,g=e.component,v=g===void 0?"div":g,b=At(e,e3e),y=a&&!p;function S(_){l(c,_)}d.useEffect(function(){return function(){S(null)}},[]);var w=i&&o!==um?i(o):h,E;r||(E={opacity:y?0:1,height:y?0:um,overflowY:y?"hidden":um,order:a?m:um,pointerEvents:y?"none":um,position:y?"absolute":um});var C={};y&&(C["aria-hidden"]=!0);var x=d.createElement(v,Ge({className:xe(!r&&n,u),style:z(z({},E),f)},C,b,{ref:t}),w);return a&&(x=d.createElement(Oi,{onResize:function(P){var O=P.offsetWidth;S(O)},disabled:s},x)),x}var Hy=d.forwardRef(t3e);Hy.displayName="Item";function n3e(e){if(typeof MessageChannel>"u")zn(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function r3e(){var e=d.useRef(null),t=function(r){e.current||(e.current=[],n3e(function(){_i.unstable_batchedUpdates(function(){e.current.forEach(function(o){o()}),e.current=null})})),e.current.push(r)};return t}function A0(e,t){var n=d.useState(t),r=$e(n,2),o=r[0],i=r[1],a=An(function(s){e(function(){i(s)})});return[o,a]}var Y2=de.createContext(null),o3e=["component"],i3e=["className"],a3e=["className"],s3e=function(t,n){var r=d.useContext(Y2);if(!r){var o=t.component,i=o===void 0?"div":o,a=At(t,o3e);return d.createElement(i,Ge({},a,{ref:n}))}var s=r.className,l=At(r,i3e),c=t.className,u=At(t,a3e);return d.createElement(Y2.Provider,{value:null},d.createElement(Hy,Ge({ref:n,className:xe(s,c)},l,u)))},Wre=d.forwardRef(s3e);Wre.displayName="RawItem";var l3e=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Vre="responsive",Kre="invalidate";function c3e(e){return"+ ".concat(e.length," ...")}function u3e(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,o=e.data,i=o===void 0?[]:o,a=e.renderItem,s=e.renderRawItem,l=e.itemKey,c=e.itemWidth,u=c===void 0?10:c,f=e.ssr,h=e.style,p=e.className,m=e.maxCount,g=e.renderRest,v=e.renderRawRest,b=e.suffix,y=e.component,S=y===void 0?"div":y,w=e.itemComponent,E=e.onVisibleChange,C=At(e,l3e),x=f==="full",_=r3e(),P=A0(_,null),O=$e(P,2),I=O[0],M=O[1],T=I||0,D=A0(_,new Map),A=$e(D,2),j=A[0],k=A[1],F=A0(_,0),V=$e(F,2),W=V[0],K=V[1],L=A0(_,0),Q=$e(L,2),ee=Q[0],re=Q[1],ie=A0(_,0),G=$e(ie,2),X=G[0],ne=G[1],le=d.useState(null),ce=$e(le,2),oe=ce[0],se=ce[1],fe=d.useState(null),te=$e(fe,2),he=te[0],pe=te[1],Oe=d.useMemo(function(){return he===null&&x?Number.MAX_SAFE_INTEGER:he||0},[he,I]),Me=d.useState(!1),Se=$e(Me,2),ye=Se[0],ve=Se[1],be="".concat(r,"-item"),Pe=Math.max(W,ee),Ne=m===Vre,U=i.length&&Ne,H=m===Kre,q=U||typeof m=="number"&&i.length>m,me=d.useMemo(function(){var St=i;return U?I===null&&x?St=i:St=i.slice(0,Math.min(i.length,T/u)):typeof m=="number"&&(St=i.slice(0,m)),St},[i,u,I,m,U]),Ce=d.useMemo(function(){return U?i.slice(Oe+1):i.slice(me.length)},[i,me,U,Oe]),ue=d.useCallback(function(St,wt){var Nt;return typeof l=="function"?l(St):(Nt=l&&(St==null?void 0:St[l]))!==null&&Nt!==void 0?Nt:wt},[l]),Le=d.useCallback(a||function(St){return St},[a]);function He(St,wt,Nt){he===St&&(wt===void 0||wt===oe)||(pe(St),Nt||(ve(StT){He(Be-1,St-We-X+ee);break}}b&&Ke(0)+X>T&&se(null)}},[T,j,ee,X,ue,me]);var Ue=ye&&!!Ce.length,Ve={};oe!==null&&U&&(Ve={position:"absolute",left:oe,top:0});var Tt={prefixCls:be,responsive:U,component:w,invalidate:H},et=s?function(St,wt){var Nt=ue(St,wt);return d.createElement(Y2.Provider,{key:Nt,value:z(z({},Tt),{},{order:wt,item:St,itemKey:Nt,registerSize:De,display:wt<=Oe})},s(St,wt))}:function(St,wt){var Nt=ue(St,wt);return d.createElement(Hy,Ge({},Tt,{order:wt,key:Nt,item:St,renderItem:Le,itemKey:Nt,registerSize:De,display:wt<=Oe}))},st,yt={order:Ue?Oe:Number.MAX_SAFE_INTEGER,className:"".concat(be,"-rest"),registerSize:qe,display:Ue};if(v)v&&(st=d.createElement(Y2.Provider,{value:z(z({},Tt),yt)},v(Ce)));else{var gt=g||c3e;st=d.createElement(Hy,Ge({},Tt,yt),typeof gt=="function"?gt(Ce):gt)}var Lt=d.createElement(S,Ge({className:xe(!H&&r,p),style:h,ref:t},C),me.map(et),q?st:null,b&&d.createElement(Hy,Ge({},Tt,{responsive:Ne,responsiveDisabled:!U,order:Oe,className:"".concat(be,"-suffix"),registerSize:Fe,display:!0,style:Ve}),b));return Ne&&(Lt=d.createElement(Oi,{onResize:ge,disabled:!U},Lt)),Lt}var ql=d.forwardRef(u3e);ql.displayName="Overflow";ql.Item=Wre;ql.RESPONSIVE=Vre;ql.INVALIDATE=Kre;var d3e=function(t,n){var r,o=t.prefixCls,i=t.id,a=t.inputElement,s=t.disabled,l=t.tabIndex,c=t.autoFocus,u=t.autoComplete,f=t.editable,h=t.activeDescendantId,p=t.value,m=t.maxLength,g=t.onKeyDown,v=t.onMouseDown,b=t.onChange,y=t.onPaste,S=t.onCompositionStart,w=t.onCompositionEnd,E=t.onBlur,C=t.open,x=t.attrs,_=a||d.createElement("input",null),P=_,O=P.ref,I=P.props,M=I.onKeyDown,T=I.onChange,D=I.onMouseDown,A=I.onCompositionStart,j=I.onCompositionEnd,k=I.onBlur,F=I.style;return"maxLength"in _.props,_=d.cloneElement(_,z(z(z({type:"search"},I),{},{id:i,ref:bi(n,O),disabled:s,tabIndex:l,autoComplete:u||"off",autoFocus:c,className:xe("".concat(o,"-selection-search-input"),(r=_)===null||r===void 0||(r=r.props)===null||r===void 0?void 0:r.className),role:"combobox","aria-expanded":C||!1,"aria-haspopup":"listbox","aria-owns":"".concat(i,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(i,"_list"),"aria-activedescendant":C?h:void 0},x),{},{value:f?p:"",maxLength:m,readOnly:!f,unselectable:f?null:"on",style:z(z({},F),{},{opacity:f?null:0}),onKeyDown:function(W){g(W),M&&M(W)},onMouseDown:function(W){v(W),D&&D(W)},onChange:function(W){b(W),T&&T(W)},onCompositionStart:function(W){S(W),A&&A(W)},onCompositionEnd:function(W){w(W),j&&j(W)},onPaste:y,onBlur:function(W){E(W),k&&k(W)}})),_},qre=d.forwardRef(d3e);function Gre(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var f3e=typeof window<"u"&&window.document&&window.document.documentElement,h3e=f3e;function p3e(e){return e!=null}function m3e(e){return!e&&e!==0}function Gz(e){return["string","number"].includes(Ht(e))}function Yre(e){var t=void 0;return e&&(Gz(e.title)?t=e.title.toString():Gz(e.label)&&(t=e.label.toString())),t}function g3e(e,t){h3e?d.useLayoutEffect(e,t):d.useEffect(e,t)}function v3e(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var Yz=function(t){t.preventDefault(),t.stopPropagation()},y3e=function(t){var n=t.id,r=t.prefixCls,o=t.values,i=t.open,a=t.searchValue,s=t.autoClearSearchValue,l=t.inputRef,c=t.placeholder,u=t.disabled,f=t.mode,h=t.showSearch,p=t.autoFocus,m=t.autoComplete,g=t.activeDescendantId,v=t.tabIndex,b=t.removeIcon,y=t.maxTagCount,S=t.maxTagTextLength,w=t.maxTagPlaceholder,E=w===void 0?function(fe){return"+ ".concat(fe.length," ...")}:w,C=t.tagRender,x=t.onToggleOpen,_=t.onRemove,P=t.onInputChange,O=t.onInputPaste,I=t.onInputKeyDown,M=t.onInputMouseDown,T=t.onInputCompositionStart,D=t.onInputCompositionEnd,A=t.onInputBlur,j=d.useRef(null),k=d.useState(0),F=$e(k,2),V=F[0],W=F[1],K=d.useState(!1),L=$e(K,2),Q=L[0],ee=L[1],re="".concat(r,"-selection"),ie=i||f==="multiple"&&s===!1||f==="tags"?a:"",G=f==="tags"||f==="multiple"&&s===!1||h&&(i||Q);g3e(function(){W(j.current.scrollWidth)},[ie]);var X=function(te,he,pe,Oe,Me){return d.createElement("span",{title:Yre(te),className:xe("".concat(re,"-item"),Z({},"".concat(re,"-item-disabled"),pe))},d.createElement("span",{className:"".concat(re,"-item-content")},he),Oe&&d.createElement(L$,{className:"".concat(re,"-item-remove"),onMouseDown:Yz,onClick:Me,customizeIcon:b},"×"))},ne=function(te,he,pe,Oe,Me,Se){var ye=function(be){Yz(be),x(!i)};return d.createElement("span",{onMouseDown:ye},C({label:he,value:te,disabled:pe,closable:Oe,onClose:Me,isMaxTag:!!Se}))},le=function(te){var he=te.disabled,pe=te.label,Oe=te.value,Me=!u&&!he,Se=pe;if(typeof S=="number"&&(typeof pe=="string"||typeof pe=="number")){var ye=String(Se);ye.length>S&&(Se="".concat(ye.slice(0,S),"..."))}var ve=function(Pe){Pe&&Pe.stopPropagation(),_(te)};return typeof C=="function"?ne(Oe,Se,he,Me,ve):X(te,Se,he,Me,ve)},ce=function(te){if(!o.length)return null;var he=typeof E=="function"?E(te):E;return typeof C=="function"?ne(void 0,he,!1,!1,void 0,!0):X({title:he},he,!1)},oe=d.createElement("div",{className:"".concat(re,"-search"),style:{width:V},onFocus:function(){ee(!0)},onBlur:function(){ee(!1)}},d.createElement(qre,{ref:l,open:i,prefixCls:r,id:n,inputElement:null,disabled:u,autoFocus:p,autoComplete:m,editable:G,activeDescendantId:g,value:ie,onKeyDown:I,onMouseDown:M,onChange:P,onPaste:O,onCompositionStart:T,onCompositionEnd:D,onBlur:A,tabIndex:v,attrs:Jr(t,!0)}),d.createElement("span",{ref:j,className:"".concat(re,"-search-mirror"),"aria-hidden":!0},ie," ")),se=d.createElement(ql,{prefixCls:"".concat(re,"-overflow"),data:o,renderItem:le,renderRest:ce,suffix:oe,itemKey:v3e,maxCount:y});return d.createElement("span",{className:"".concat(re,"-wrap")},se,!o.length&&!ie&&d.createElement("span",{className:"".concat(re,"-placeholder")},c))},b3e=function(t){var n=t.inputElement,r=t.prefixCls,o=t.id,i=t.inputRef,a=t.disabled,s=t.autoFocus,l=t.autoComplete,c=t.activeDescendantId,u=t.mode,f=t.open,h=t.values,p=t.placeholder,m=t.tabIndex,g=t.showSearch,v=t.searchValue,b=t.activeValue,y=t.maxLength,S=t.onInputKeyDown,w=t.onInputMouseDown,E=t.onInputChange,C=t.onInputPaste,x=t.onInputCompositionStart,_=t.onInputCompositionEnd,P=t.onInputBlur,O=t.title,I=d.useState(!1),M=$e(I,2),T=M[0],D=M[1],A=u==="combobox",j=A||g,k=h[0],F=v||"";A&&b&&!T&&(F=b),d.useEffect(function(){A&&D(!1)},[A,b]);var V=u!=="combobox"&&!f&&!g?!1:!!F,W=O===void 0?Yre(k):O,K=d.useMemo(function(){return k?null:d.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:V?{visibility:"hidden"}:void 0},p)},[k,V,p,r]);return d.createElement("span",{className:"".concat(r,"-selection-wrap")},d.createElement("span",{className:"".concat(r,"-selection-search")},d.createElement(qre,{ref:i,prefixCls:r,id:o,open:f,inputElement:n,disabled:a,autoFocus:s,autoComplete:l,editable:j,activeDescendantId:c,value:F,onKeyDown:S,onMouseDown:w,onChange:function(Q){D(!0),E(Q)},onPaste:C,onCompositionStart:x,onCompositionEnd:_,onBlur:P,tabIndex:m,attrs:Jr(t,!0),maxLength:A?y:void 0})),!A&&k?d.createElement("span",{className:"".concat(r,"-selection-item"),title:W,style:V?{visibility:"hidden"}:void 0},k.label):null,K)},S3e=function(t,n){var r=d.useRef(null),o=d.useRef(!1),i=t.prefixCls,a=t.open,s=t.mode,l=t.showSearch,c=t.tokenWithEnter,u=t.disabled,f=t.prefix,h=t.autoClearSearchValue,p=t.onSearch,m=t.onSearchSubmit,g=t.onToggleOpen,v=t.onInputKeyDown,b=t.onInputBlur,y=t.domRef;d.useImperativeHandle(n,function(){return{focus:function(W){r.current.focus(W)},blur:function(){r.current.blur()}}});var S=Ure(0),w=$e(S,2),E=w[0],C=w[1],x=function(W){var K=W.which,L=r.current instanceof HTMLTextAreaElement;!L&&a&&(K===ut.UP||K===ut.DOWN)&&W.preventDefault(),v&&v(W),K===ut.ENTER&&s==="tags"&&!o.current&&!a&&(m==null||m(W.target.value)),!(L&&!a&&~[ut.UP,ut.DOWN,ut.LEFT,ut.RIGHT].indexOf(K))&&Z4e(K)&&g(!0)},_=function(){C(!0)},P=d.useRef(null),O=function(W){p(W,!0,o.current)!==!1&&g(!0)},I=function(){o.current=!0},M=function(W){o.current=!1,s!=="combobox"&&O(W.target.value)},T=function(W){var K=W.target.value;if(c&&P.current&&/[\r\n]/.test(P.current)){var L=P.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");K=K.replace(L,P.current)}P.current=null,O(K)},D=function(W){var K=W.clipboardData,L=K==null?void 0:K.getData("text");P.current=L||""},A=function(W){var K=W.target;if(K!==r.current){var L=document.body.style.msTouchAction!==void 0;L?setTimeout(function(){r.current.focus()}):r.current.focus()}},j=function(W){var K=E();W.target!==r.current&&!K&&!(s==="combobox"&&u)&&W.preventDefault(),(s!=="combobox"&&(!l||!K)||!a)&&(a&&h!==!1&&p("",!0,!1),g())},k={inputRef:r,onInputKeyDown:x,onInputMouseDown:_,onInputChange:T,onInputPaste:D,onInputCompositionStart:I,onInputCompositionEnd:M,onInputBlur:b},F=s==="multiple"||s==="tags"?d.createElement(y3e,Ge({},t,k)):d.createElement(b3e,Ge({},t,k));return d.createElement("div",{ref:y,className:"".concat(i,"-selector"),onClick:A,onMouseDown:j},f&&d.createElement("div",{className:"".concat(i,"-prefix")},f),F)},C3e=d.forwardRef(S3e);function w3e(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,i=r||{},a=i.className,s=i.content,l=o.x,c=l===void 0?0:l,u=o.y,f=u===void 0?0:u,h=d.useRef();if(!n||!n.points)return null;var p={position:"absolute"};if(n.autoArrow!==!1){var m=n.points[0],g=n.points[1],v=m[0],b=m[1],y=g[0],S=g[1];v===y||!["t","b"].includes(v)?p.top=f:v==="t"?p.top=0:p.bottom=0,b===S||!["l","r"].includes(b)?p.left=c:b==="l"?p.left=0:p.right=0}return d.createElement("div",{ref:h,className:xe("".concat(t,"-arrow"),a),style:p},s)}function x3e(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,i=e.motion;return o?d.createElement(Jo,Ge({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(a){var s=a.className;return d.createElement("div",{style:{zIndex:r},className:xe("".concat(t,"-mask"),s)})}):null}var E3e=d.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),_3e=d.forwardRef(function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,i=e.style,a=e.target,s=e.onVisibleChanged,l=e.open,c=e.keepDom,u=e.fresh,f=e.onClick,h=e.mask,p=e.arrow,m=e.arrowPos,g=e.align,v=e.motion,b=e.maskMotion,y=e.forceRender,S=e.getPopupContainer,w=e.autoDestroy,E=e.portal,C=e.zIndex,x=e.onMouseEnter,_=e.onMouseLeave,P=e.onPointerEnter,O=e.onPointerDownCapture,I=e.ready,M=e.offsetX,T=e.offsetY,D=e.offsetR,A=e.offsetB,j=e.onAlign,k=e.onPrepare,F=e.stretch,V=e.targetWidth,W=e.targetHeight,K=typeof n=="function"?n():n,L=l||c,Q=(S==null?void 0:S.length)>0,ee=d.useState(!S||!Q),re=$e(ee,2),ie=re[0],G=re[1];if(Zn(function(){!ie&&Q&&a&&G(!0)},[ie,Q,a]),!ie)return null;var X="auto",ne={left:"-1000vw",top:"-1000vh",right:X,bottom:X};if(I||!l){var le,ce=g.points,oe=g.dynamicInset||((le=g._experimental)===null||le===void 0?void 0:le.dynamicInset),se=oe&&ce[0][1]==="r",fe=oe&&ce[0][0]==="b";se?(ne.right=D,ne.left=X):(ne.left=M,ne.right=X),fe?(ne.bottom=A,ne.top=X):(ne.top=T,ne.bottom=X)}var te={};return F&&(F.includes("height")&&W?te.height=W:F.includes("minHeight")&&W&&(te.minHeight=W),F.includes("width")&&V?te.width=V:F.includes("minWidth")&&V&&(te.minWidth=V)),l||(te.pointerEvents="none"),d.createElement(E,{open:y||L,getContainer:S&&function(){return S(a)},autoDestroy:w},d.createElement(x3e,{prefixCls:o,open:l,zIndex:C,mask:h,motion:b}),d.createElement(Oi,{onResize:j,disabled:!l},function(he){return d.createElement(Jo,Ge({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:y,leavedClassName:"".concat(o,"-hidden")},v,{onAppearPrepare:k,onEnterPrepare:k,visible:l,onVisibleChanged:function(Oe){var Me;v==null||(Me=v.onVisibleChanged)===null||Me===void 0||Me.call(v,Oe),s(Oe)}}),function(pe,Oe){var Me=pe.className,Se=pe.style,ye=xe(o,Me,r);return d.createElement("div",{ref:bi(he,t,Oe),className:ye,style:z(z(z(z({"--arrow-x":"".concat(m.x||0,"px"),"--arrow-y":"".concat(m.y||0,"px")},ne),te),Se),{},{boxSizing:"border-box",zIndex:C},i),onMouseEnter:x,onMouseLeave:_,onPointerEnter:P,onClick:f,onPointerDownCapture:O},p&&d.createElement(w3e,{prefixCls:o,arrow:p,arrowPos:m,align:g}),d.createElement(E3e,{cache:!l&&!u},K))})}))}),$3e=d.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=tc(n),i=d.useCallback(function(s){Nb(t,r?r(s):s)},[r]),a=mc(i,Af(n));return o?d.cloneElement(n,{ref:a}):n}),Xz=d.createContext(null);function Qz(e){return e?Array.isArray(e)?e:[e]:[]}function P3e(e,t,n,r){return d.useMemo(function(){var o=Qz(n??t),i=Qz(r??t),a=new Set(o),s=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]},[e,t,n,r])}function O3e(){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 M3e(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function D0(e){return Kb(parseFloat(e),0)}function Zz(e,t){var n=z({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var o=G1(r).getComputedStyle(r),i=o.overflow,a=o.overflowClipMargin,s=o.borderTopWidth,l=o.borderBottomWidth,c=o.borderLeftWidth,u=o.borderRightWidth,f=r.getBoundingClientRect(),h=r.offsetHeight,p=r.clientHeight,m=r.offsetWidth,g=r.clientWidth,v=D0(s),b=D0(l),y=D0(c),S=D0(u),w=Kb(Math.round(f.width/m*1e3)/1e3),E=Kb(Math.round(f.height/h*1e3)/1e3),C=(m-g-y-S)*w,x=(h-p-v-b)*E,_=v*E,P=b*E,O=y*w,I=S*w,M=0,T=0;if(i==="clip"){var D=D0(a);M=D*w,T=D*E}var A=f.x+O-M,j=f.y+_-T,k=A+f.width+2*M-O-I-C,F=j+f.height+2*T-_-P-x;n.left=Math.max(n.left,A),n.top=Math.max(n.top,j),n.right=Math.min(n.right,k),n.bottom=Math.min(n.bottom,F)}}),n}function eH(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 tH(e,t){var n=t||[],r=$e(n,2),o=r[0],i=r[1];return[eH(e.width,o),eH(e.height,i)]}function nH(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function dm(e,t){var n=t[0],r=t[1],o,i;return n==="t"?i=e.y:n==="b"?i=e.y+e.height:i=e.y+e.height/2,r==="l"?o=e.x:r==="r"?o=e.x+e.width:o=e.x+e.width/2,{x:o,y:i}}function _d(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,o){return o===t?n[r]||"c":r}).join("")}function T3e(e,t,n,r,o,i,a){var s=d.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),l=$e(s,2),c=l[0],u=l[1],f=d.useRef(0),h=d.useMemo(function(){return t?e6(t):[]},[t]),p=d.useRef({}),m=function(){p.current={}};e||m();var g=An(function(){if(t&&n&&e){let Sn=function(cr,Uo){var si=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Pe,Ar=ee.x+cr,li=ee.y+Uo,uu=Ar+se,du=li+oe,Wf=Math.max(Ar,si.left),Cn=Math.max(li,si.top),Xn=Math.min(uu,si.right),wr=Math.min(du,si.bottom);return Math.max(0,(Xn-Wf)*(wr-Cn))},Dn=function(){Wt=ee.y+Nt,at=Wt+oe,$t=ee.x+wt,Bt=$t+se};var y,S,w,E,C=t,x=C.ownerDocument,_=G1(C),P=_.getComputedStyle(C),O=P.width,I=P.height,M=P.position,T=C.style.left,D=C.style.top,A=C.style.right,j=C.style.bottom,k=C.style.overflow,F=z(z({},o[r]),i),V=x.createElement("div");(y=C.parentElement)===null||y===void 0||y.appendChild(V),V.style.left="".concat(C.offsetLeft,"px"),V.style.top="".concat(C.offsetTop,"px"),V.style.position=M,V.style.height="".concat(C.offsetHeight,"px"),V.style.width="".concat(C.offsetWidth,"px"),C.style.left="0",C.style.top="0",C.style.right="auto",C.style.bottom="auto",C.style.overflow="hidden";var W;if(Array.isArray(n))W={x:n[0],y:n[1],width:0,height:0};else{var K,L,Q=n.getBoundingClientRect();Q.x=(K=Q.x)!==null&&K!==void 0?K:Q.left,Q.y=(L=Q.y)!==null&&L!==void 0?L:Q.top,W={x:Q.x,y:Q.y,width:Q.width,height:Q.height}}var ee=C.getBoundingClientRect();ee.x=(S=ee.x)!==null&&S!==void 0?S:ee.left,ee.y=(w=ee.y)!==null&&w!==void 0?w:ee.top;var re=x.documentElement,ie=re.clientWidth,G=re.clientHeight,X=re.scrollWidth,ne=re.scrollHeight,le=re.scrollTop,ce=re.scrollLeft,oe=ee.height,se=ee.width,fe=W.height,te=W.width,he={left:0,top:0,right:ie,bottom:G},pe={left:-ce,top:-le,right:X-ce,bottom:ne-le},Oe=F.htmlRegion,Me="visible",Se="visibleFirst";Oe!=="scroll"&&Oe!==Se&&(Oe=Me);var ye=Oe===Se,ve=Zz(pe,h),be=Zz(he,h),Pe=Oe===Me?be:ve,Ne=ye?be:Pe;C.style.left="auto",C.style.top="auto",C.style.right="0",C.style.bottom="0";var U=C.getBoundingClientRect();C.style.left=T,C.style.top=D,C.style.right=A,C.style.bottom=j,C.style.overflow=k,(E=C.parentElement)===null||E===void 0||E.removeChild(V);var H=Kb(Math.round(se/parseFloat(O)*1e3)/1e3),q=Kb(Math.round(oe/parseFloat(I)*1e3)/1e3);if(H===0||q===0||kb(n)&&!Ov(n))return;var me=F.offset,Ce=F.targetOffset,ue=tH(ee,me),Le=$e(ue,2),He=Le[0],ge=Le[1],De=tH(W,Ce),qe=$e(De,2),Fe=qe[0],Ke=qe[1];W.x-=Fe,W.y-=Ke;var Ue=F.points||[],Ve=$e(Ue,2),Tt=Ve[0],et=Ve[1],st=nH(et),yt=nH(Tt),gt=dm(W,st),Lt=dm(ee,yt),St=z({},F),wt=gt.x-Lt.x+He,Nt=gt.y-Lt.y+ge,Be=Sn(wt,Nt),We=Sn(wt,Nt,be),je=dm(W,["t","l"]),Xe=dm(ee,["t","l"]),pt=dm(W,["b","r"]),vt=dm(ee,["b","r"]),Mt=F.overflow||{},Et=Mt.adjustX,ft=Mt.adjustY,dt=Mt.shiftX,Rt=Mt.shiftY,Ct=function(Uo){return typeof Uo=="boolean"?Uo:Uo>=0},Wt,at,$t,Bt;Dn();var xt=Ct(ft),bt=yt[0]===st[0];if(xt&&yt[0]==="t"&&(at>Ne.bottom||p.current.bt)){var Ft=Nt;bt?Ft-=oe-fe:Ft=je.y-vt.y-ge;var Re=Sn(wt,Ft),It=Sn(wt,Ft,be);Re>Be||Re===Be&&(!ye||It>=We)?(p.current.bt=!0,Nt=Ft,ge=-ge,St.points=[_d(yt,0),_d(st,0)]):p.current.bt=!1}if(xt&&yt[0]==="b"&&(WtBe||Ot===Be&&(!ye||Pt>=We)?(p.current.tb=!0,Nt=tt,ge=-ge,St.points=[_d(yt,0),_d(st,0)]):p.current.tb=!1}var pn=Ct(Et),Pn=yt[1]===st[1];if(pn&&yt[1]==="l"&&(Bt>Ne.right||p.current.rl)){var $=wt;Pn?$-=se-te:$=je.x-vt.x-He;var R=Sn($,Nt),J=Sn($,Nt,be);R>Be||R===Be&&(!ye||J>=We)?(p.current.rl=!0,wt=$,He=-He,St.points=[_d(yt,1),_d(st,1)]):p.current.rl=!1}if(pn&&yt[1]==="r"&&($tBe||ke===Be&&(!ye||Je>=We)?(p.current.lr=!0,wt=Ee,He=-He,St.points=[_d(yt,1),_d(st,1)]):p.current.lr=!1}Dn();var Dt=dt===!0?0:dt;typeof Dt=="number"&&($tbe.right&&(wt-=Bt-be.right-He,W.x>be.right-Dt&&(wt+=W.x-be.right+Dt)));var an=Rt===!0?0:Rt;typeof an=="number"&&(Wtbe.bottom&&(Nt-=at-be.bottom-ge,W.y>be.bottom-an&&(Nt+=W.y-be.bottom+an)));var En=ee.x+wt,Cr=En+se,ur=ee.y+Nt,Nr=ur+oe,tr=W.x,en=tr+te,un=W.y,rr=un+fe,Qt=Math.max(En,tr),Jt=Math.min(Cr,en),Rn=(Qt+Jt)/2,er=Rn-En,$r=Math.max(ur,un),ao=Math.min(Nr,rr),Bn=($r+ao)/2,Yr=Bn-ur;a==null||a(t,St);var Fn=U.right-ee.x-(wt+ee.width),rn=U.bottom-ee.y-(Nt+ee.height);H===1&&(wt=Math.round(wt),Fn=Math.round(Fn)),q===1&&(Nt=Math.round(Nt),rn=Math.round(rn));var fn={ready:!0,offsetX:wt/H,offsetY:Nt/q,offsetR:Fn/H,offsetB:rn/q,arrowX:er/H,arrowY:Yr/q,scaleX:H,scaleY:q,align:St};u(fn)}}),v=function(){f.current+=1;var S=f.current;Promise.resolve().then(function(){f.current===S&&g()})},b=function(){u(function(S){return z(z({},S),{},{ready:!1})})};return Zn(b,[r]),Zn(function(){e||b()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,v]}function R3e(e,t,n,r,o){Zn(function(){if(e&&t&&n){let f=function(){r(),o()};var i=t,a=n,s=e6(i),l=e6(a),c=G1(a),u=new Set([c].concat(Ze(s),Ze(l)));return u.forEach(function(h){h.addEventListener("scroll",f,{passive:!0})}),c.addEventListener("resize",f,{passive:!0}),r(),function(){u.forEach(function(h){h.removeEventListener("scroll",f),c.removeEventListener("resize",f)})}}},[e,t,n])}function I3e(e,t,n,r,o,i,a,s){var l=d.useRef(e);l.current=e;var c=d.useRef(!1);d.useEffect(function(){if(t&&r&&(!o||i)){var f=function(){c.current=!1},h=function(v){var b;l.current&&!a(((b=v.composedPath)===null||b===void 0||(b=b.call(v))===null||b===void 0?void 0:b[0])||v.target)&&!c.current&&s(!1)},p=G1(r);p.addEventListener("pointerdown",f,!0),p.addEventListener("mousedown",h,!0),p.addEventListener("contextmenu",h,!0);var m=q2(n);return m&&(m.addEventListener("mousedown",h,!0),m.addEventListener("contextmenu",h,!0)),function(){p.removeEventListener("pointerdown",f,!0),p.removeEventListener("mousedown",h,!0),p.removeEventListener("contextmenu",h,!0),m&&(m.removeEventListener("mousedown",h,!0),m.removeEventListener("contextmenu",h,!0))}}},[t,n,r,o,i]);function u(){c.current=!0}return u}var k3e=["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 N3e(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:V1,t=d.forwardRef(function(n,r){var o=n.prefixCls,i=o===void 0?"rc-trigger-popup":o,a=n.children,s=n.action,l=s===void 0?"hover":s,c=n.showAction,u=n.hideAction,f=n.popupVisible,h=n.defaultPopupVisible,p=n.onPopupVisibleChange,m=n.afterPopupVisibleChange,g=n.mouseEnterDelay,v=n.mouseLeaveDelay,b=v===void 0?.1:v,y=n.focusDelay,S=n.blurDelay,w=n.mask,E=n.maskClosable,C=E===void 0?!0:E,x=n.getPopupContainer,_=n.forceRender,P=n.autoDestroy,O=n.destroyPopupOnHide,I=n.popup,M=n.popupClassName,T=n.popupStyle,D=n.popupPlacement,A=n.builtinPlacements,j=A===void 0?{}:A,k=n.popupAlign,F=n.zIndex,V=n.stretch,W=n.getPopupClassNameFromAlign,K=n.fresh,L=n.alignPoint,Q=n.onPopupClick,ee=n.onPopupAlign,re=n.arrow,ie=n.popupMotion,G=n.maskMotion,X=n.popupTransitionName,ne=n.popupAnimation,le=n.maskTransitionName,ce=n.maskAnimation,oe=n.className,se=n.getTriggerDOMNode,fe=At(n,k3e),te=P||O||!1,he=d.useState(!1),pe=$e(he,2),Oe=pe[0],Me=pe[1];Zn(function(){Me(F$())},[]);var Se=d.useRef({}),ye=d.useContext(Xz),ve=d.useMemo(function(){return{registerSubPopup:function(Xn,wr){Se.current[Xn]=wr,ye==null||ye.registerSubPopup(Xn,wr)}}},[ye]),be=N$(),Pe=d.useState(null),Ne=$e(Pe,2),U=Ne[0],H=Ne[1],q=d.useRef(null),me=An(function(Cn){q.current=Cn,kb(Cn)&&U!==Cn&&H(Cn),ye==null||ye.registerSubPopup(be,Cn)}),Ce=d.useState(null),ue=$e(Ce,2),Le=ue[0],He=ue[1],ge=d.useRef(null),De=An(function(Cn){kb(Cn)&&Le!==Cn&&(He(Cn),ge.current=Cn)}),qe=d.Children.only(a),Fe=(qe==null?void 0:qe.props)||{},Ke={},Ue=An(function(Cn){var Xn,wr,_o=Le;return(_o==null?void 0:_o.contains(Cn))||((Xn=q2(_o))===null||Xn===void 0?void 0:Xn.host)===Cn||Cn===_o||(U==null?void 0:U.contains(Cn))||((wr=q2(U))===null||wr===void 0?void 0:wr.host)===Cn||Cn===U||Object.values(Se.current).some(function(so){return(so==null?void 0:so.contains(Cn))||Cn===so})}),Ve=Jz(i,ie,ne,X),Tt=Jz(i,G,ce,le),et=d.useState(h||!1),st=$e(et,2),yt=st[0],gt=st[1],Lt=f??yt,St=An(function(Cn){f===void 0&>(Cn)});Zn(function(){gt(f||!1)},[f]);var wt=d.useRef(Lt);wt.current=Lt;var Nt=d.useRef([]);Nt.current=[];var Be=An(function(Cn){var Xn;St(Cn),((Xn=Nt.current[Nt.current.length-1])!==null&&Xn!==void 0?Xn:Lt)!==Cn&&(Nt.current.push(Cn),p==null||p(Cn))}),We=d.useRef(),je=function(){clearTimeout(We.current)},Xe=function(Xn){var wr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;je(),wr===0?Be(Xn):We.current=setTimeout(function(){Be(Xn)},wr*1e3)};d.useEffect(function(){return je},[]);var pt=d.useState(!1),vt=$e(pt,2),Mt=vt[0],Et=vt[1];Zn(function(Cn){(!Cn||Lt)&&Et(!0)},[Lt]);var ft=d.useState(null),dt=$e(ft,2),Rt=dt[0],Ct=dt[1],Wt=d.useState(null),at=$e(Wt,2),$t=at[0],Bt=at[1],xt=function(Xn){Bt([Xn.clientX,Xn.clientY])},bt=T3e(Lt,U,L&&$t!==null?$t:Le,D,j,k,ee),Ft=$e(bt,11),Re=Ft[0],It=Ft[1],tt=Ft[2],Ot=Ft[3],Pt=Ft[4],pn=Ft[5],Pn=Ft[6],$=Ft[7],R=Ft[8],J=Ft[9],Ee=Ft[10],ke=P3e(Oe,l,c,u),Je=$e(ke,2),Dt=Je[0],an=Je[1],En=Dt.has("click"),Cr=an.has("click")||an.has("contextMenu"),ur=An(function(){Mt||Ee()}),Nr=function(){wt.current&&L&&Cr&&Xe(!1)};R3e(Lt,Le,U,ur,Nr),Zn(function(){ur()},[$t,D]),Zn(function(){Lt&&!(j!=null&&j[D])&&ur()},[JSON.stringify(k)]);var tr=d.useMemo(function(){var Cn=M3e(j,i,J,L);return xe(Cn,W==null?void 0:W(J))},[J,W,j,i,L]);d.useImperativeHandle(r,function(){return{nativeElement:ge.current,popupElement:q.current,forceAlign:ur}});var en=d.useState(0),un=$e(en,2),rr=un[0],Qt=un[1],Jt=d.useState(0),Rn=$e(Jt,2),er=Rn[0],$r=Rn[1],ao=function(){if(V&&Le){var Xn=Le.getBoundingClientRect();Qt(Xn.width),$r(Xn.height)}},Bn=function(){ao(),ur()},Yr=function(Xn){Et(!1),Ee(),m==null||m(Xn)},Fn=function(){return new Promise(function(Xn){ao(),Ct(function(){return Xn})})};Zn(function(){Rt&&(Ee(),Rt(),Ct(null))},[Rt]);function rn(Cn,Xn,wr,_o){Ke[Cn]=function(so){var wd;_o==null||_o(so),Xe(Xn,wr);for(var fu=arguments.length,tm=new Array(fu>1?fu-1:0),Vf=1;Vf1?wr-1:0),so=1;so1?wr-1:0),so=1;so1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],i=Xre(n,!1),a=i.label,s=i.value,l=i.options,c=i.groupLabel;function u(f,h){Array.isArray(f)&&f.forEach(function(p){if(h||!(l in p)){var m=p[s];o.push({key:rH(p,o.length),groupOption:h,data:p,label:p[a],value:m})}else{var g=p[c];g===void 0&&r&&(g=p.label),o.push({key:rH(p,o.length),group:!0,data:p,label:g}),u(p[l],!0)}})}return u(e,!1),o}function n6(e){var t=z({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return yr(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var B3e=function(t,n,r){if(!n||!n.length)return null;var o=!1,i=function s(l,c){var u=jte(c),f=u[0],h=u.slice(1);if(!f)return[l];var p=l.split(f);return o=o||p.length>1,p.reduce(function(m,g){return[].concat(Ze(m),Ze(s(g,h)))},[]).filter(Boolean)},a=i(t,n);return o?typeof r<"u"?a.slice(0,r):a:null},zA=d.createContext(null);function z3e(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(o){var i=o.label,a=o.value;return["number","string"].includes(Ht(i))?i:a}).join(", ")),n.length>r?", ...":null)}var H3e=["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"],U3e=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],r6=function(t){return t==="tags"||t==="multiple"},HA=d.forwardRef(function(e,t){var n,r=e.id,o=e.prefixCls,i=e.className,a=e.showSearch,s=e.tagRender,l=e.direction,c=e.omitDomProps,u=e.displayValues,f=e.onDisplayValuesChange,h=e.emptyOptions,p=e.notFoundContent,m=p===void 0?"Not Found":p,g=e.onClear,v=e.mode,b=e.disabled,y=e.loading,S=e.getInputElement,w=e.getRawInputElement,E=e.open,C=e.defaultOpen,x=e.onDropdownVisibleChange,_=e.activeValue,P=e.onActiveValueChange,O=e.activeDescendantId,I=e.searchValue,M=e.autoClearSearchValue,T=e.onSearch,D=e.onSearchSplit,A=e.tokenSeparators,j=e.allowClear,k=e.prefix,F=e.suffixIcon,V=e.clearIcon,W=e.OptionList,K=e.animation,L=e.transitionName,Q=e.dropdownStyle,ee=e.dropdownClassName,re=e.dropdownMatchSelectWidth,ie=e.dropdownRender,G=e.dropdownAlign,X=e.placement,ne=e.builtinPlacements,le=e.getPopupContainer,ce=e.showAction,oe=ce===void 0?[]:ce,se=e.onFocus,fe=e.onBlur,te=e.onKeyUp,he=e.onKeyDown,pe=e.onMouseDown,Oe=At(e,H3e),Me=r6(v),Se=(a!==void 0?a:Me)||v==="combobox",ye=z({},Oe);U3e.forEach(function(en){delete ye[en]}),c==null||c.forEach(function(en){delete ye[en]});var ve=d.useState(!1),be=$e(ve,2),Pe=be[0],Ne=be[1];d.useEffect(function(){Ne(F$())},[]);var U=d.useRef(null),H=d.useRef(null),q=d.useRef(null),me=d.useRef(null),Ce=d.useRef(null),ue=d.useRef(!1),Le=Q4e(),He=$e(Le,3),ge=He[0],De=He[1],qe=He[2];d.useImperativeHandle(t,function(){var en,un;return{focus:(en=me.current)===null||en===void 0?void 0:en.focus,blur:(un=me.current)===null||un===void 0?void 0:un.blur,scrollTo:function(Qt){var Jt;return(Jt=Ce.current)===null||Jt===void 0?void 0:Jt.scrollTo(Qt)},nativeElement:U.current||H.current}});var Fe=d.useMemo(function(){var en;if(v!=="combobox")return I;var un=(en=u[0])===null||en===void 0?void 0:en.value;return typeof un=="string"||typeof un=="number"?String(un):""},[I,v,u]),Ke=v==="combobox"&&typeof S=="function"&&S()||null,Ue=typeof w=="function"&&w(),Ve=mc(H,Ue==null||(n=Ue.props)===null||n===void 0?void 0:n.ref),Tt=d.useState(!1),et=$e(Tt,2),st=et[0],yt=et[1];Zn(function(){yt(!0)},[]);var gt=xn(!1,{defaultValue:C,value:E}),Lt=$e(gt,2),St=Lt[0],wt=Lt[1],Nt=st?St:!1,Be=!m&&h;(b||Be&&Nt&&v==="combobox")&&(Nt=!1);var We=Be?!1:Nt,je=d.useCallback(function(en){var un=en!==void 0?en:!Nt;b||(wt(un),Nt!==un&&(x==null||x(un)))},[b,Nt,wt,x]),Xe=d.useMemo(function(){return(A||[]).some(function(en){return[` `,`\r `].includes(en)})},[A]),pt=d.useContext(zA)||{},vt=pt.maxCount,Mt=pt.rawValues,Et=function(un,rr,Qt){if(!(Me&&t6(vt)&&(Mt==null?void 0:Mt.size)>=vt)){var Jt=!0,Rn=un;P==null||P(null);var er=B3e(un,A,t6(vt)?vt-Mt.size:void 0),$r=Qt?null:er;return v!=="combobox"&&$r&&(Rn="",D==null||D($r),je(!1),Jt=!1),T&&Fe!==Rn&&T(Rn,{source:rr?"typing":"effect"}),Jt}},ft=function(un){!un||!un.trim()||T(un,{source:"submit"})};d.useEffect(function(){!Nt&&!Me&&v!=="combobox"&&Et("",!1,!1)},[Nt]),d.useEffect(function(){St&&b&&wt(!1),b&&!ue.current&&De(!1)},[b]);var dt=Ure(),Rt=$e(dt,2),Ct=Rt[0],Wt=Rt[1],at=d.useRef(!1),$t=function(un){var rr=Ct(),Qt=un.key,Jt=Qt==="Enter";if(Jt&&(v!=="combobox"&&un.preventDefault(),Nt||je(!0)),Wt(!!Fe),Qt==="Backspace"&&!rr&&Me&&!Fe&&u.length){for(var Rn=Ze(u),er=null,$r=Rn.length-1;$r>=0;$r-=1){var ao=Rn[$r];if(!ao.disabled){Rn.splice($r,1),er=ao;break}}er&&f(Rn,{type:"remove",values:[er]})}for(var Bn=arguments.length,Yr=new Array(Bn>1?Bn-1:0),Fn=1;Fn1?rr-1:0),Jt=1;Jt1?er-1:0),ao=1;ao"u"?"undefined":Ht(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const Jre=function(e,t,n,r){var o=d.useRef(!1),i=d.useRef(null);function a(){clearTimeout(i.current),o.current=!0,i.current=setTimeout(function(){o.current=!1},50)}var s=d.useRef({top:e,bottom:t,left:n,right:r});return s.current.top=e,s.current.bottom=t,s.current.left=n,s.current.right=r,function(l,c){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,f=l?c<0&&s.current.left||c>0&&s.current.right:c<0&&s.current.top||c>0&&s.current.bottom;return u&&f?(clearTimeout(i.current),o.current=!1):(!f||o.current)&&a(),!o.current&&f}};function G3e(e,t,n,r,o,i,a){var s=d.useRef(0),l=d.useRef(null),c=d.useRef(null),u=d.useRef(!1),f=Jre(t,n,r,o);function h(y,S){if(zn.cancel(l.current),!f(!1,S)){var w=y;if(!w._virtualHandled)w._virtualHandled=!0;else return;s.current+=S,c.current=S,oH||w.preventDefault(),l.current=zn(function(){var E=u.current?10:1;a(s.current*E,!1),s.current=0})}}function p(y,S){a(S,!0),oH||y.preventDefault()}var m=d.useRef(null),g=d.useRef(null);function v(y){if(e){zn.cancel(g.current),g.current=zn(function(){m.current=null},2);var S=y.deltaX,w=y.deltaY,E=y.shiftKey,C=S,x=w;(m.current==="sx"||!m.current&&E&&w&&!S)&&(C=w,x=0,m.current="sx");var _=Math.abs(C),P=Math.abs(x);m.current===null&&(m.current=i&&_>P?"x":"y"),m.current==="y"?h(y,x):p(y,C)}}function b(y){e&&(u.current=y.detail===c.current)}return[v,b]}function Y3e(e,t,n,r){var o=d.useMemo(function(){return[new Map,[]]},[e,n.id,r]),i=$e(o,2),a=i[0],s=i[1],l=function(u){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:u,h=a.get(u),p=a.get(f);if(h===void 0||p===void 0)for(var m=e.length,g=s.length;g0&&arguments[0]!==void 0?arguments[0]:!1;u();var m=function(){s.current.forEach(function(v,b){if(v&&v.offsetParent){var y=Dy(v),S=y.offsetHeight,w=getComputedStyle(y),E=w.marginTop,C=w.marginBottom,x=iH(E),_=iH(C),P=S+x+_;l.current.get(b)!==P&&l.current.set(b,P)}}),a(function(v){return v+1})};p?m():c.current=zn(m)}function h(p,m){var g=e(p);s.current.get(g),m?(s.current.set(g,m),f()):s.current.delete(g)}return d.useEffect(function(){return u},[]),[h,f,l.current,i]}var aH=14/15;function J3e(e,t,n){var r=d.useRef(!1),o=d.useRef(0),i=d.useRef(0),a=d.useRef(null),s=d.useRef(null),l,c=function(p){if(r.current){var m=Math.ceil(p.touches[0].pageX),g=Math.ceil(p.touches[0].pageY),v=o.current-m,b=i.current-g,y=Math.abs(v)>Math.abs(b);y?o.current=m:i.current=g;var S=n(y,y?v:b,!1,p);S&&p.preventDefault(),clearInterval(s.current),S&&(s.current=setInterval(function(){y?v*=aH:b*=aH;var w=Math.floor(y?v:b);(!n(y,w,!0)||Math.abs(w)<=.1)&&clearInterval(s.current)},16))}},u=function(){r.current=!1,l()},f=function(p){l(),p.touches.length===1&&!r.current&&(r.current=!0,o.current=Math.ceil(p.touches[0].pageX),i.current=Math.ceil(p.touches[0].pageY),a.current=p.target,a.current.addEventListener("touchmove",c,{passive:!1}),a.current.addEventListener("touchend",u,{passive:!0}))};l=function(){a.current&&(a.current.removeEventListener("touchmove",c),a.current.removeEventListener("touchend",u))},Zn(function(){return e&&t.current.addEventListener("touchstart",f,{passive:!0}),function(){var h;(h=t.current)===null||h===void 0||h.removeEventListener("touchstart",f),l(),clearInterval(s.current)}},[e])}var Z3e=10;function e6e(e,t,n,r,o,i,a,s){var l=d.useRef(),c=d.useState(null),u=$e(c,2),f=u[0],h=u[1];return Zn(function(){if(f&&f.times=0;D-=1){var A=o(t[D]),j=n.get(A);if(j===void 0){y=!0;break}if(T-=j,T<=0)break}switch(E){case"top":w=x-v;break;case"bottom":w=_-b+v;break;default:{var k=e.current.scrollTop,F=k+b;xF&&(S="bottom")}}w!==null&&a(w),w!==f.lastTop&&(y=!0)}y&&h(z(z({},f),{},{times:f.times+1,targetAlign:S,lastTop:w}))}},[f,e.current]),function(p){if(p==null){s();return}if(zn.cancel(l.current),typeof p=="number")a(p);else if(p&&Ht(p)==="object"){var m,g=p.align;"index"in p?m=p.index:m=t.findIndex(function(y){return o(y)===p.key});var v=p.offset,b=v===void 0?0:v;h({times:0,index:m,offset:b,originAlign:g})}}}function sH(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]}var lH=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,o=e.scrollOffset,i=e.scrollRange,a=e.onStartMove,s=e.onStopMove,l=e.onScroll,c=e.horizontal,u=e.spinSize,f=e.containerSize,h=e.style,p=e.thumbStyle,m=d.useState(!1),g=$e(m,2),v=g[0],b=g[1],y=d.useState(null),S=$e(y,2),w=S[0],E=S[1],C=d.useState(null),x=$e(C,2),_=x[0],P=x[1],O=!r,I=d.useRef(),M=d.useRef(),T=d.useState(!1),D=$e(T,2),A=D[0],j=D[1],k=d.useRef(),F=function(){clearTimeout(k.current),j(!0),k.current=setTimeout(function(){j(!1)},3e3)},V=i-f||0,W=f-u||0,K=d.useMemo(function(){if(o===0||V===0)return 0;var le=o/V;return le*W},[o,V,W]),L=function(ce){ce.stopPropagation(),ce.preventDefault()},Q=d.useRef({top:K,dragging:v,pageY:w,startTop:_});Q.current={top:K,dragging:v,pageY:w,startTop:_};var ee=function(ce){b(!0),E(sH(ce,c)),P(Q.current.top),a(),ce.stopPropagation(),ce.preventDefault()};d.useEffect(function(){var le=function(fe){fe.preventDefault()},ce=I.current,oe=M.current;return ce.addEventListener("touchstart",le,{passive:!1}),oe.addEventListener("touchstart",ee,{passive:!1}),function(){ce.removeEventListener("touchstart",le),oe.removeEventListener("touchstart",ee)}},[]);var re=d.useRef();re.current=V;var ie=d.useRef();ie.current=W,d.useEffect(function(){if(v){var le,ce=function(fe){var te=Q.current,he=te.dragging,pe=te.pageY,Oe=te.startTop;zn.cancel(le);var Me=I.current.getBoundingClientRect(),Se=f/(c?Me.width:Me.height);if(he){var ye=(sH(fe,c)-pe)*Se,ve=Oe;!O&&c?ve-=ye:ve+=ye;var be=re.current,Pe=ie.current,Ne=Pe?ve/Pe:0,U=Math.ceil(Ne*be);U=Math.max(U,0),U=Math.min(U,be),le=zn(function(){l(U,c)})}},oe=function(){b(!1),s()};return window.addEventListener("mousemove",ce,{passive:!0}),window.addEventListener("touchmove",ce,{passive:!0}),window.addEventListener("mouseup",oe,{passive:!0}),window.addEventListener("touchend",oe,{passive:!0}),function(){window.removeEventListener("mousemove",ce),window.removeEventListener("touchmove",ce),window.removeEventListener("mouseup",oe),window.removeEventListener("touchend",oe),zn.cancel(le)}}},[v]),d.useEffect(function(){return F(),function(){clearTimeout(k.current)}},[o]),d.useImperativeHandle(t,function(){return{delayHidden:F}});var G="".concat(n,"-scrollbar"),X={position:"absolute",visibility:A?null:"hidden"},ne={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return c?(X.height=8,X.left=0,X.right=0,X.bottom=0,ne.height="100%",ne.width=u,O?ne.left=K:ne.right=K):(X.width=8,X.top=0,X.bottom=0,O?X.right=0:X.left=0,ne.width="100%",ne.height=u,ne.top=K),d.createElement("div",{ref:I,className:xe(G,Z(Z(Z({},"".concat(G,"-horizontal"),c),"".concat(G,"-vertical"),!c),"".concat(G,"-visible"),A)),style:z(z({},X),h),onMouseDown:L,onMouseMove:F},d.createElement("div",{ref:M,className:xe("".concat(G,"-thumb"),Z({},"".concat(G,"-thumb-moving"),v)),style:z(z({},ne),p),onMouseDown:ee}))}),t6e=20;function cH(){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,t6e),Math.floor(n)}var n6e=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],r6e=[],o6e={overflowY:"auto",overflowAnchor:"none"};function i6e(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,o=e.className,i=e.height,a=e.itemHeight,s=e.fullHeight,l=s===void 0?!0:s,c=e.style,u=e.data,f=e.children,h=e.itemKey,p=e.virtual,m=e.direction,g=e.scrollWidth,v=e.component,b=v===void 0?"div":v,y=e.onScroll,S=e.onVirtualScroll,w=e.onVisibleChange,E=e.innerProps,C=e.extraRender,x=e.styles,_=At(e,n6e),P=d.useCallback(function(xt){return typeof h=="function"?h(xt):xt==null?void 0:xt[h]},[h]),O=Q3e(P),I=$e(O,4),M=I[0],T=I[1],D=I[2],A=I[3],j=!!(p!==!1&&i&&a),k=d.useMemo(function(){return Object.values(D.maps).reduce(function(xt,bt){return xt+bt},0)},[D.id,D.maps]),F=j&&u&&(Math.max(a*u.length,k)>i||!!g),V=m==="rtl",W=xe(r,Z({},"".concat(r,"-rtl"),V),o),K=u||r6e,L=d.useRef(),Q=d.useRef(),ee=d.useRef(),re=d.useState(0),ie=$e(re,2),G=ie[0],X=ie[1],ne=d.useState(0),le=$e(ne,2),ce=le[0],oe=le[1],se=d.useState(!1),fe=$e(se,2),te=fe[0],he=fe[1],pe=function(){he(!0)},Oe=function(){he(!1)},Me={getKey:P};function Se(xt){X(function(bt){var Ft;typeof xt=="function"?Ft=xt(bt):Ft=xt;var Re=et(Ft);return L.current.scrollTop=Re,Re})}var ye=d.useRef({start:0,end:K.length}),ve=d.useRef(),be=q3e(K,P),Pe=$e(be,1),Ne=Pe[0];ve.current=Ne;var U=d.useMemo(function(){if(!j)return{scrollHeight:void 0,start:0,end:K.length-1,offset:void 0};if(!F){var xt;return{scrollHeight:((xt=Q.current)===null||xt===void 0?void 0:xt.offsetHeight)||0,start:0,end:K.length-1,offset:void 0}}for(var bt=0,Ft,Re,It,tt=K.length,Ot=0;Ot=G&&Ft===void 0&&(Ft=Ot,Re=bt),$>G+i&&It===void 0&&(It=Ot),bt=$}return Ft===void 0&&(Ft=0,Re=0,It=Math.ceil(i/a)),It===void 0&&(It=K.length-1),It=Math.min(It+1,K.length-1),{scrollHeight:bt,start:Ft,end:It,offset:Re}},[F,j,G,K,A,i]),H=U.scrollHeight,q=U.start,me=U.end,Ce=U.offset;ye.current.start=q,ye.current.end=me;var ue=d.useState({width:0,height:i}),Le=$e(ue,2),He=Le[0],ge=Le[1],De=function(bt){ge({width:bt.offsetWidth,height:bt.offsetHeight})},qe=d.useRef(),Fe=d.useRef(),Ke=d.useMemo(function(){return cH(He.width,g)},[He.width,g]),Ue=d.useMemo(function(){return cH(He.height,H)},[He.height,H]),Ve=H-i,Tt=d.useRef(Ve);Tt.current=Ve;function et(xt){var bt=xt;return Number.isNaN(Tt.current)||(bt=Math.min(bt,Tt.current)),bt=Math.max(bt,0),bt}var st=G<=0,yt=G>=Ve,gt=ce<=0,Lt=ce>=g,St=Jre(st,yt,gt,Lt),wt=function(){return{x:V?-ce:ce,y:G}},Nt=d.useRef(wt()),Be=An(function(xt){if(S){var bt=z(z({},wt()),xt);(Nt.current.x!==bt.x||Nt.current.y!==bt.y)&&(S(bt),Nt.current=bt)}});function We(xt,bt){var Ft=xt;bt?(_i.flushSync(function(){oe(Ft)}),Be()):Se(Ft)}function je(xt){var bt=xt.currentTarget.scrollTop;bt!==G&&Se(bt),y==null||y(xt),Be()}var Xe=function(bt){var Ft=bt,Re=g?g-He.width:0;return Ft=Math.max(Ft,0),Ft=Math.min(Ft,Re),Ft},pt=An(function(xt,bt){bt?(_i.flushSync(function(){oe(function(Ft){var Re=Ft+(V?-xt:xt);return Xe(Re)})}),Be()):Se(function(Ft){var Re=Ft+xt;return Re})}),vt=G3e(j,st,yt,gt,Lt,!!g,pt),Mt=$e(vt,2),Et=Mt[0],ft=Mt[1];J3e(j,L,function(xt,bt,Ft,Re){var It=Re;return St(xt,bt,Ft)?!1:!It||!It._virtualHandled?(It&&(It._virtualHandled=!0),Et({preventDefault:function(){},deltaX:xt?bt:0,deltaY:xt?0:bt}),!0):!1}),Zn(function(){function xt(Ft){var Re=st&&Ft.detail<0,It=yt&&Ft.detail>0;j&&!Re&&!It&&Ft.preventDefault()}var bt=L.current;return bt.addEventListener("wheel",Et,{passive:!1}),bt.addEventListener("DOMMouseScroll",ft,{passive:!0}),bt.addEventListener("MozMousePixelScroll",xt,{passive:!1}),function(){bt.removeEventListener("wheel",Et),bt.removeEventListener("DOMMouseScroll",ft),bt.removeEventListener("MozMousePixelScroll",xt)}},[j,st,yt]),Zn(function(){if(g){var xt=Xe(ce);oe(xt),Be({x:xt})}},[He.width,g]);var dt=function(){var bt,Ft;(bt=qe.current)===null||bt===void 0||bt.delayHidden(),(Ft=Fe.current)===null||Ft===void 0||Ft.delayHidden()},Rt=e6e(L,K,D,a,P,function(){return T(!0)},Se,dt);d.useImperativeHandle(t,function(){return{nativeElement:ee.current,getScrollInfo:wt,scrollTo:function(bt){function Ft(Re){return Re&&Ht(Re)==="object"&&("left"in Re||"top"in Re)}Ft(bt)?(bt.left!==void 0&&oe(Xe(bt.left)),Rt(bt.top)):Rt(bt)}}}),Zn(function(){if(w){var xt=K.slice(q,me+1);w(xt,K)}},[q,me,K]);var Ct=Y3e(K,P,D,a),Wt=C==null?void 0:C({start:q,end:me,virtual:F,offsetX:ce,offsetY:Ce,rtl:V,getSize:Ct}),at=V3e(K,q,me,g,ce,M,f,Me),$t=null;i&&($t=z(Z({},l?"height":"maxHeight",i),o6e),j&&($t.overflowY="hidden",g&&($t.overflowX="hidden"),te&&($t.pointerEvents="none")));var Bt={};return V&&(Bt.dir="rtl"),d.createElement("div",Ge({ref:ee,style:z(z({},c),{},{position:"relative"}),className:W},Bt,_),d.createElement(Oi,{onResize:De},d.createElement(b,{className:"".concat(r,"-holder"),style:$t,ref:L,onScroll:je,onMouseEnter:dt},d.createElement(Qre,{prefixCls:r,height:H,offsetX:ce,offsetY:Ce,scrollWidth:g,onInnerResize:T,ref:Q,innerProps:E,rtl:V,extra:Wt},at))),F&&H>i&&d.createElement(lH,{ref:qe,prefixCls:r,scrollOffset:G,scrollRange:H,rtl:V,onScroll:We,onStartMove:pe,onStopMove:Oe,spinSize:Ue,containerSize:He.height,style:x==null?void 0:x.verticalScrollBar,thumbStyle:x==null?void 0:x.verticalScrollBarThumb}),F&&g>He.width&&d.createElement(lH,{ref:Fe,prefixCls:r,scrollOffset:ce,scrollRange:g,rtl:V,onScroll:We,onStartMove:pe,onStopMove:Oe,spinSize:Ke,containerSize:He.width,horizontal:!0,style:x==null?void 0:x.horizontalScrollBar,thumbStyle:x==null?void 0:x.horizontalScrollBarThumb}))}var B$=d.forwardRef(i6e);B$.displayName="List";function a6e(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var s6e=["disabled","title","children","style","className"];function uH(e){return typeof e=="string"||typeof e=="number"}var l6e=function(t,n){var r=BA(),o=r.prefixCls,i=r.id,a=r.open,s=r.multiple,l=r.mode,c=r.searchValue,u=r.toggleOpen,f=r.notFoundContent,h=r.onPopupScroll,p=d.useContext(zA),m=p.maxCount,g=p.flattenOptions,v=p.onActiveValue,b=p.defaultActiveFirstOption,y=p.onSelect,S=p.menuItemSelectedIcon,w=p.rawValues,E=p.fieldNames,C=p.virtual,x=p.direction,_=p.listHeight,P=p.listItemHeight,O=p.optionRender,I="".concat(o,"-item"),M=ed(function(){return g},[a,g],function(ce,oe){return oe[0]&&ce[1]!==oe[1]}),T=d.useRef(null),D=d.useMemo(function(){return s&&t6(m)&&(w==null?void 0:w.size)>=m},[s,m,w==null?void 0:w.size]),A=function(oe){oe.preventDefault()},j=function(oe){var se;(se=T.current)===null||se===void 0||se.scrollTo(typeof oe=="number"?{index:oe}:oe)},k=d.useCallback(function(ce){return l==="combobox"?!1:w.has(ce)},[l,Ze(w).toString(),w.size]),F=function(oe){for(var se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,fe=M.length,te=0;te1&&arguments[1]!==void 0?arguments[1]:!1;L(oe);var fe={source:se?"keyboard":"mouse"},te=M[oe];if(!te){v(null,-1,fe);return}v(te.value,oe,fe)};d.useEffect(function(){Q(b!==!1?F(0):-1)},[M.length,c]);var ee=d.useCallback(function(ce){return l==="combobox"?String(ce).toLowerCase()===c.toLowerCase():w.has(ce)},[l,c,Ze(w).toString(),w.size]);d.useEffect(function(){var ce=setTimeout(function(){if(!s&&a&&w.size===1){var se=Array.from(w)[0],fe=M.findIndex(function(te){var he=te.data;return he.value===se});fe!==-1&&(Q(fe),j(fe))}});if(a){var oe;(oe=T.current)===null||oe===void 0||oe.scrollTo(void 0)}return function(){return clearTimeout(ce)}},[a,c]);var re=function(oe){oe!==void 0&&y(oe,{selected:!w.has(oe)}),s||u(!1)};if(d.useImperativeHandle(n,function(){return{onKeyDown:function(oe){var se=oe.which,fe=oe.ctrlKey;switch(se){case ut.N:case ut.P:case ut.UP:case ut.DOWN:{var te=0;if(se===ut.UP?te=-1:se===ut.DOWN?te=1:a6e()&&fe&&(se===ut.N?te=1:se===ut.P&&(te=-1)),te!==0){var he=F(K+te,te);j(he),Q(he,!0)}break}case ut.TAB:case ut.ENTER:{var pe,Oe=M[K];Oe&&!(Oe!=null&&(pe=Oe.data)!==null&&pe!==void 0&&pe.disabled)&&!D?re(Oe.value):re(void 0),a&&oe.preventDefault();break}case ut.ESC:u(!1),a&&oe.stopPropagation()}},onKeyUp:function(){},scrollTo:function(oe){j(oe)}}}),M.length===0)return d.createElement("div",{role:"listbox",id:"".concat(i,"_list"),className:"".concat(I,"-empty"),onMouseDown:A},f);var ie=Object.keys(E).map(function(ce){return E[ce]}),G=function(oe){return oe.label};function X(ce,oe){var se=ce.group;return{role:se?"presentation":"option",id:"".concat(i,"_list_").concat(oe)}}var ne=function(oe){var se=M[oe];if(!se)return null;var fe=se.data||{},te=fe.value,he=se.group,pe=Jr(fe,!0),Oe=G(se);return se?d.createElement("div",Ge({"aria-label":typeof Oe=="string"&&!he?Oe:null},pe,{key:oe},X(se,oe),{"aria-selected":ee(te)}),te):null},le={role:"listbox",id:"".concat(i,"_list")};return d.createElement(d.Fragment,null,C&&d.createElement("div",Ge({},le,{style:{height:0,width:0,overflow:"hidden"}}),ne(K-1),ne(K),ne(K+1)),d.createElement(B$,{itemKey:"key",ref:T,data:M,height:_,itemHeight:P,fullHeight:!1,onMouseDown:A,onScroll:h,virtual:C,direction:x,innerProps:C?null:le},function(ce,oe){var se=ce.group,fe=ce.groupOption,te=ce.data,he=ce.label,pe=ce.value,Oe=te.key;if(se){var Me,Se=(Me=te.title)!==null&&Me!==void 0?Me:uH(he)?he.toString():void 0;return d.createElement("div",{className:xe(I,"".concat(I,"-group"),te.className),title:Se},he!==void 0?he:Oe)}var ye=te.disabled,ve=te.title;te.children;var be=te.style,Pe=te.className,Ne=At(te,s6e),U=Yn(Ne,ie),H=k(pe),q=ye||!H&&D,me="".concat(I,"-option"),Ce=xe(I,me,Pe,Z(Z(Z(Z({},"".concat(me,"-grouped"),fe),"".concat(me,"-active"),K===oe&&!q),"".concat(me,"-disabled"),q),"".concat(me,"-selected"),H)),ue=G(ce),Le=!S||typeof S=="function"||H,He=typeof ue=="number"?ue:ue||pe,ge=uH(He)?He.toString():void 0;return ve!==void 0&&(ge=ve),d.createElement("div",Ge({},Jr(U),C?{}:X(ce,oe),{"aria-selected":ee(pe),className:Ce,title:ge,onMouseMove:function(){K===oe||q||Q(oe)},onClick:function(){q||re(pe)},style:be}),d.createElement("div",{className:"".concat(me,"-content")},typeof O=="function"?O(ce,{index:oe}):He),d.isValidElement(S)||H,Le&&d.createElement(L$,{className:"".concat(I,"-option-state"),customizeIcon:S,customizeIconProps:{value:pe,disabled:q,isSelected:H}},H?"✓":null))}))},c6e=d.forwardRef(l6e);const u6e=function(e,t){var n=d.useRef({values:new Map,options:new Map}),r=d.useMemo(function(){var i=n.current,a=i.values,s=i.options,l=e.map(function(f){if(f.label===void 0){var h;return z(z({},f),{},{label:(h=a.get(f.value))===null||h===void 0?void 0:h.label})}return f}),c=new Map,u=new Map;return l.forEach(function(f){c.set(f.value,f),u.set(f.value,t.get(f.value)||s.get(f.value))}),n.current.values=c,n.current.options=u,l},[e,t]),o=d.useCallback(function(i){return t.get(i)||n.current.options.get(i)},[t]);return[r,o]};function qT(e,t){return Gre(e).join("").toUpperCase().includes(t)}const d6e=function(e,t,n,r,o){return d.useMemo(function(){if(!n||r===!1)return e;var i=t.options,a=t.label,s=t.value,l=[],c=typeof r=="function",u=n.toUpperCase(),f=c?r:function(p,m){return o?qT(m[o],u):m[i]?qT(m[a!=="children"?a:"label"],u):qT(m[s],u)},h=c?function(p){return n6(p)}:function(p){return p};return e.forEach(function(p){if(p[i]){var m=f(n,h(p));if(m)l.push(p);else{var g=p[i].filter(function(v){return f(n,h(v))});g.length&&l.push(z(z({},p),{},Z({},i,g)))}return}f(n,h(p))&&l.push(p)}),l},[e,r,o,n,t])};var dH=0,f6e=Ca();function h6e(){var e;return f6e?(e=dH,dH+=1):e="TEST_OR_SSR",e}function VA(e){var t=d.useState(),n=$e(t,2),r=n[0],o=n[1];return d.useEffect(function(){o("rc_select_".concat(h6e()))},[]),e||r}var p6e=["children","value"],m6e=["children"];function g6e(e){var t=e,n=t.key,r=t.props,o=r.children,i=r.value,a=At(r,p6e);return z({key:n,value:i!==void 0?i:n,children:o},a)}function Zre(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return ai(e).map(function(n,r){if(!d.isValidElement(n)||!n.type)return null;var o=n,i=o.type.isSelectOptGroup,a=o.key,s=o.props,l=s.children,c=At(s,m6e);return t||!i?g6e(n):z(z({key:"__RC_SELECT_GRP__".concat(a===null?r:a,"__"),label:a},c),{},{options:Zre(l)})}).filter(function(n){return n})}var v6e=function(t,n,r,o,i){return d.useMemo(function(){var a=t,s=!t;s&&(a=Zre(n));var l=new Map,c=new Map,u=function(p,m,g){g&&typeof g=="string"&&p.set(m[g],m)},f=function h(p){for(var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,g=0;g0?je(vt.options):vt.options}):vt})},He=d.useMemo(function(){return y?Le(ue):ue},[ue,y,le]),ge=d.useMemo(function(){return L3e(He,{fieldNames:G,childrenAsData:re})},[He,G,re]),De=function(Xe){var pt=he(Xe);if(Se(pt),W&&(pt.length!==Pe.length||pt.some(function(Et,ft){var dt;return((dt=Pe[ft])===null||dt===void 0?void 0:dt.value)!==(Et==null?void 0:Et.value)}))){var vt=V?pt:pt.map(function(Et){return Et.value}),Mt=pt.map(function(Et){return n6(Ne(Et.value))});W(ee?vt:vt[0],ee?Mt:Mt[0])}},qe=d.useState(null),Fe=$e(qe,2),Ke=Fe[0],Ue=Fe[1],Ve=d.useState(0),Tt=$e(Ve,2),et=Tt[0],st=Tt[1],yt=_!==void 0?_:r!=="combobox",gt=d.useCallback(function(je,Xe){var pt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},vt=pt.source,Mt=vt===void 0?"keyboard":vt;st(Xe),a&&r==="combobox"&&je!==null&&Mt==="keyboard"&&Ue(String(je))},[a,r]),Lt=function(Xe,pt,vt){var Mt=function(){var xt,bt=Ne(Xe);return[V?{label:bt==null?void 0:bt[G.label],value:Xe,key:(xt=bt==null?void 0:bt.key)!==null&&xt!==void 0?xt:Xe}:Xe,n6(bt)]};if(pt&&p){var Et=Mt(),ft=$e(Et,2),dt=ft[0],Rt=ft[1];p(dt,Rt)}else if(!pt&&m&&vt!=="clear"){var Ct=Mt(),Wt=$e(Ct,2),at=Wt[0],$t=Wt[1];m(at,$t)}},St=fH(function(je,Xe){var pt,vt=ee?Xe.selected:!0;vt?pt=ee?[].concat(Ze(Pe),[je]):[je]:pt=Pe.filter(function(Mt){return Mt.value!==je}),De(pt),Lt(je,vt),r==="combobox"?Ue(""):(!r6||h)&&(ce(""),Ue(""))}),wt=function(Xe,pt){De(Xe);var vt=pt.type,Mt=pt.values;(vt==="remove"||vt==="clear")&&Mt.forEach(function(Et){Lt(Et.value,!1,vt)})},Nt=function(Xe,pt){if(ce(Xe),Ue(null),pt.source==="submit"){var vt=(Xe||"").trim();if(vt){var Mt=Array.from(new Set([].concat(Ze(H),[vt])));De(Mt),Lt(vt,!0),ce("")}return}pt.source!=="blur"&&(r==="combobox"&&De(Xe),u==null||u(Xe))},Be=function(Xe){var pt=Xe;r!=="tags"&&(pt=Xe.map(function(Mt){var Et=fe.get(Mt);return Et==null?void 0:Et.value}).filter(function(Mt){return Mt!==void 0}));var vt=Array.from(new Set([].concat(Ze(H),Ze(pt))));De(vt),vt.forEach(function(Mt){Lt(Mt,!0)})},We=d.useMemo(function(){var je=O!==!1&&v!==!1;return z(z({},oe),{},{flattenOptions:ge,onActiveValue:gt,defaultActiveFirstOption:yt,onSelect:St,menuItemSelectedIcon:P,rawValues:H,fieldNames:G,virtual:je,direction:I,listHeight:T,listItemHeight:A,childrenAsData:re,maxCount:K,optionRender:C})},[K,oe,ge,gt,yt,St,P,H,G,O,v,I,T,A,re,C]);return d.createElement(zA.Provider,{value:We},d.createElement(HA,Ge({},L,{id:Q,prefixCls:i,ref:t,omitDomProps:b6e,mode:r,displayValues:U,onDisplayValuesChange:wt,direction:I,searchValue:le,onSearch:Nt,autoClearSearchValue:h,onSearchSplit:Be,dropdownMatchSelectWidth:v,OptionList:c6e,emptyOptions:!ge.length,activeValue:Ke,activeDescendantId:"".concat(Q,"_list_").concat(et)})))}),KA=C6e;KA.Option=WA;KA.OptGroup=UA;function ac(e,t,n){return xe({[`${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 md=(e,t)=>t||e,w6e=()=>{const[,e]=Ho(),[t]=zi("Empty"),r=new Un(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"}))))},x6e=()=>{const[,e]=Ho(),[t]=zi("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:o,colorBgContainer:i}=e,{borderColor:a,shadowColor:s,contentColor:l}=d.useMemo(()=>({borderColor:new Un(n).onBackground(i).toHexString(),shadowColor:new Un(r).onBackground(i).toHexString(),contentColor:new Un(o).onBackground(i).toHexString()}),[n,r,o,i]);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:s,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:l}))))},E6e=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:i,lineHeight:a}=e;return{[t]:{marginInline:r,fontSize:i,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:o,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},_6e=Kn("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,o=kn(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return[E6e(o)]});var $6e=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 o=0,r=Object.getOwnPropertySymbols(e);o{var t,n,r,o,i,a,s,l;const{className:c,rootClassName:u,prefixCls:f,image:h=eoe,description:p,children:m,imageStyle:g,style:v,classNames:b,styles:y}=e,S=$6e(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:w,direction:E,empty:C}=d.useContext(Yt),x=w("empty",f),[_,P,O]=_6e(x),[I]=zi("Empty"),M=typeof p<"u"?p:I==null?void 0:I.description,T=typeof M=="string"?M:"empty";let D=null;return typeof h=="string"?D=d.createElement("img",{alt:T,src:h}):D=h,_(d.createElement("div",Object.assign({className:xe(P,O,x,C==null?void 0:C.className,{[`${x}-normal`]:h===toe,[`${x}-rtl`]:E==="rtl"},c,u,(t=C==null?void 0:C.classNames)===null||t===void 0?void 0:t.root,b==null?void 0:b.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},(n=C==null?void 0:C.styles)===null||n===void 0?void 0:n.root),C==null?void 0:C.style),y==null?void 0:y.root),v)},S),d.createElement("div",{className:xe(`${x}-image`,(r=C==null?void 0:C.classNames)===null||r===void 0?void 0:r.image,b==null?void 0:b.image),style:Object.assign(Object.assign(Object.assign({},g),(o=C==null?void 0:C.styles)===null||o===void 0?void 0:o.image),y==null?void 0:y.image)},D),M&&d.createElement("div",{className:xe(`${x}-description`,(i=C==null?void 0:C.classNames)===null||i===void 0?void 0:i.description,b==null?void 0:b.description),style:Object.assign(Object.assign({},(a=C==null?void 0:C.styles)===null||a===void 0?void 0:a.description),y==null?void 0:y.description)},M),m&&d.createElement("div",{className:xe(`${x}-footer`,(s=C==null?void 0:C.classNames)===null||s===void 0?void 0:s.footer,b==null?void 0:b.footer),style:Object.assign(Object.assign({},(l=C==null?void 0:C.styles)===null||l===void 0?void 0:l.footer),y==null?void 0:y.footer)},m)))};Nc.PRESENTED_IMAGE_DEFAULT=eoe;Nc.PRESENTED_IMAGE_SIMPLE=toe;const X1=e=>{const{componentName:t}=e,{getPrefixCls:n}=d.useContext(Yt),r=n("empty");switch(t){case"Table":case"List":return de.createElement(Nc,{image:Nc.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return de.createElement(Nc,{image:Nc.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return de.createElement(Nc,null)}},gd=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var r,o;const{variant:i,[e]:a}=d.useContext(Yt),s=d.useContext(yre),l=a==null?void 0:a.variant;let c;typeof t<"u"?c=t:n===!1?c="borderless":c=(o=(r=s??l)!==null&&r!==void 0?r:i)!==null&&o!==void 0?o:"outlined";const u=YPe.includes(c);return[c,u]},P6e=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 qA(e,t){return e||P6e(t)}const hH=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:o}=e;return{position:"relative",display:"block",minHeight:t,padding:o,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},O6e=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,i=`&${t}-slide-up-appear${t}-slide-up-appear-active`,a=`&${t}-slide-up-leave${t}-slide-up-leave-active`,s=`${n}-dropdown-placement-`,l=`${r}-option-selected`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},Qn(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,[` ${o}${s}bottomLeft, ${i}${s}bottomLeft `]:{animationName:_$},[` ${o}${s}topLeft, ${i}${s}topLeft, ${o}${s}topRight, ${i}${s}topRight `]:{animationName:P$},[`${a}${s}bottomLeft`]:{animationName:$$},[` ${a}${s}topLeft, ${a}${s}topRight `]:{animationName:O$},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},hH(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"},wa),"&-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({},hH(e)),{color:e.colorTextDisabled})}),[`${l}:has(+ ${l})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${l}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},Yc(e,"slide-up"),Yc(e,"slide-down"),Wg(e,"move-up"),Wg(e,"move-down")]},noe=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:o}=e,i=e.max(e.calc(n).sub(r).equal(),0),a=e.max(e.calc(i).sub(o).equal(),0);return{basePadding:i,containerPadding:a,itemHeight:_e(t),itemLineHeight:_e(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},M6e=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},roe=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:o,paddingXS:i,multipleItemColorDisabled:a,multipleItemBorderColorDisabled:s,colorIcon:l,colorIconHover:c,INTERNAL_FIXED_ITEM_MARGIN:u}=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:u,borderRadius:r,cursor:"default",transition:`font-size ${o}, line-height ${o}, height ${o}`,marginInlineEnd:e.calc(u).mul(2).equal(),paddingInlineStart:i,paddingInlineEnd:e.calc(i).div(2).equal(),[`${t}-disabled&`]:{color:a,borderColor:s,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(i).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},Fp()),{display:"inline-flex",alignItems:"center",color:l,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:c}})}}}},T6e=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,o=`${n}-selection-overflow`,i=e.multipleSelectItemHeight,a=M6e(e),s=t?`${n}-${t}`:"",l=noe(e);return{[`${n}-multiple${s}`]:Object.assign(Object.assign({},roe(e)),{[`${n}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:l.basePadding,paddingBlock:l.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${_e(r)} 0`,lineHeight:_e(i),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:l.itemHeight,lineHeight:_e(l.itemLineHeight)},[`${n}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:_e(i),marginBlock:r}},[`${n}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(l.basePadding).equal()},[`${o}-item + ${o}-item, ${n}-prefix + ${n}-selection-wrap `]:{[`${n}-selection-search`]:{marginInlineStart:0},[`${n}-selection-placeholder`]:{insetInlineStart:0}},[`${o}-item-suffix`]:{minHeight:l.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:i,fontFamily:e.fontFamily,lineHeight:_e(i),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(l.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function GT(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",o={[`${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[T6e(e,t),o]}const R6e=e=>{const{componentCls:t}=e,n=kn(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=kn(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[GT(e),GT(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},GT(r,"lg")]};function YT(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,i=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({},Qn(e,!0)),{display:"flex",borderRadius:o,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:_e(i),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 ${_e(r)}`,[`${n}-selection-search-input`]:{height:i},"&:after":{lineHeight:_e(i)}}},[`&${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 ${_e(r)}`,"&:after":{display:"none"}}}}}}}function I6e(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[YT(e),YT(kn(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${_e(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()}}}},YT(kn(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const k6e=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:o,controlHeightSM:i,controlHeightLG:a,paddingXXS:s,controlPaddingHorizontal:l,zIndexPopupBase:c,colorText:u,fontWeightStrong:f,controlItemBgActive:h,controlItemBgHover:p,colorBgContainer:m,colorFillSecondary:g,colorBgContainerDisabled:v,colorTextDisabled:b,colorPrimaryHover:y,colorPrimary:S,controlOutline:w}=e,E=s*2,C=r*2,x=Math.min(o-E,o-C),_=Math.min(i-E,i-C),P=Math.min(a-E,a-C);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:c+50,optionSelectedColor:u,optionSelectedFontWeight:f,optionSelectedBg:h,optionActiveBg:p,optionPadding:`${(o-t*n)/2}px ${l}px`,optionFontSize:t,optionLineHeight:n,optionHeight:o,selectorBg:m,clearBg:m,singleItemHeightLG:a,multipleItemBg:g,multipleItemBorderColor:"transparent",multipleItemHeight:x,multipleItemHeightSM:_,multipleItemHeightLG:P,multipleSelectorBgDisabled:v,multipleItemColorDisabled:b,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:y,activeBorderColor:S,activeOutlineColor:w,selectAffixPadding:s}},ooe=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${_e(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 ${_e(o)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},pH=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},ooe(e,t))}),N6e=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},ooe(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),pH(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),pH(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:`${_e(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),ioe=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${_e(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}}}},mH=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},ioe(e,t))}),A6e=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},ioe(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),mH(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),mH(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:`${_e(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),D6e=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${_e(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:`${_e(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}}}}),j6e=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},N6e(e)),A6e(e)),D6e(e))}),F6e=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"}}}},L6e=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"}}}},B6e=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e;return{[n]:Object.assign(Object.assign({},Qn(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},F6e(e)),L6e(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},wa),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},wa),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},Fp()),{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`,[o]:{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()}}}}}},z6e=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},B6e(e),I6e(e),R6e(e),O6e(e),{[`${t}-rtl`]:{direction:"rtl"}},Bp(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},GA=Kn("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=kn(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[z6e(r),j6e(r)]},k6e,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var H6e={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"},U6e=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:H6e}))},gf=d.forwardRef(U6e),W6e={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"},V6e=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:W6e}))},z$=d.forwardRef(V6e),K6e={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"},q6e=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:K6e}))},H$=d.forwardRef(q6e);function U$(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:o,loading:i,multiple:a,hasFeedback:s,prefixCls:l,showSuffixIcon:c,feedbackIcon:u,showArrow:f,componentName:h}=e;const p=n??d.createElement(ru,null),m=y=>t===null&&!s&&!f?null:d.createElement(d.Fragment,null,c!==!1&&y,s&&u);let g=null;if(t!==void 0)g=m(t);else if(i)g=m(d.createElement(Gc,{spin:!0}));else{const y=`${l}-suffix`;g=S=>{let{open:w,showSearch:E}=S;return m(w&&E?d.createElement(H$,{className:y}):d.createElement(z$,{className:y}))}}let v=null;r!==void 0?v=r:a?v=d.createElement(gf,null):v=null;let b=null;return o!==void 0?b=o:b=d.createElement(ou,null),{clearIcon:p,suffixIcon:g,itemIcon:v,removeIcon:b}}function YA(e,t){return t!==void 0?t:e!==null}var G6e=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 o=0,r=Object.getOwnPropertySymbols(e);o{var n;const{prefixCls:r,bordered:o,className:i,rootClassName:a,getPopupContainer:s,popupClassName:l,dropdownClassName:c,listHeight:u=256,placement:f,listItemHeight:h,size:p,disabled:m,notFoundContent:g,status:v,builtinPlacements:b,dropdownMatchSelectWidth:y,popupMatchSelectWidth:S,direction:w,style:E,allowClear:C,variant:x,dropdownStyle:_,transitionName:P,tagRender:O,maxCount:I,prefix:M}=e,T=G6e(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:D,getPrefixCls:A,renderEmpty:j,direction:k,virtual:F,popupMatchSelectWidth:V,popupOverflow:W,select:K}=d.useContext(Yt),[,L]=Ho(),Q=h??(L==null?void 0:L.controlHeight),ee=A("select",r),re=A(),ie=w??k,{compactSize:G,compactItemClassnames:X}=gc(ee,ie),[ne,le]=gd("select",x,o),ce=Mr(ee),[oe,se,fe]=GA(ee,ce),te=d.useMemo(()=>{const{mode:Ke}=e;if(Ke!=="combobox")return Ke===aoe?"combobox":Ke},[e.mode]),he=te==="multiple"||te==="tags",pe=YA(e.suffixIcon,e.showArrow),Oe=(n=S??y)!==null&&n!==void 0?n:V,{status:Me,hasFeedback:Se,isFormItemInput:ye,feedbackIcon:ve}=d.useContext(Io),be=md(Me,v);let Pe;g!==void 0?Pe=g:te==="combobox"?Pe=null:Pe=(j==null?void 0:j("Select"))||d.createElement(X1,{componentName:"Select"});const{suffixIcon:Ne,itemIcon:U,removeIcon:H,clearIcon:q}=U$(Object.assign(Object.assign({},T),{multiple:he,hasFeedback:Se,feedbackIcon:ve,showSuffixIcon:pe,prefixCls:ee,componentName:"Select"})),me=C===!0?{clearIcon:q}:C,Ce=Yn(T,["suffixIcon","itemIcon"]),ue=xe(l||c,{[`${ee}-dropdown-${ie}`]:ie==="rtl"},a,fe,ce,se),Le=Eo(Ke=>{var Ue;return(Ue=p??G)!==null&&Ue!==void 0?Ue:Ke}),He=d.useContext(zo),ge=m??He,De=xe({[`${ee}-lg`]:Le==="large",[`${ee}-sm`]:Le==="small",[`${ee}-rtl`]:ie==="rtl",[`${ee}-${ne}`]:le,[`${ee}-in-form-item`]:ye},ac(ee,be,Se),X,K==null?void 0:K.className,i,a,fe,ce,se),qe=d.useMemo(()=>f!==void 0?f:ie==="rtl"?"bottomRight":"bottomLeft",[f,ie]),[Fe]=vl("SelectLike",_==null?void 0:_.zIndex);return oe(d.createElement(KA,Object.assign({ref:t,virtual:F,showSearch:K==null?void 0:K.showSearch},Ce,{style:Object.assign(Object.assign({},K==null?void 0:K.style),E),dropdownMatchSelectWidth:Oe,transitionName:Mi(re,"slide-up",P),builtinPlacements:qA(b,W),listHeight:u,listItemHeight:Q,mode:te,prefixCls:ee,placement:qe,direction:ie,prefix:M,suffixIcon:Ne,menuItemSelectedIcon:U,removeIcon:H,allowClear:me,notFoundContent:Pe,className:De,getPopupContainer:s||D,dropdownClassName:ue,disabled:ge,dropdownStyle:Object.assign(Object.assign({},_),{zIndex:Fe}),maxCount:he?I:void 0,tagRender:he?O:void 0})))},Va=d.forwardRef(Y6e),X6e=jf(Va,"dropdownAlign");Va.SECRET_COMBOBOX_MODE_DO_NOT_USE=aoe;Va.Option=WA;Va.OptGroup=UA;Va._InternalPanelDoNotUseOrYouWillBeFired=X6e;const $f=["xxl","xl","lg","md","sm","xs"],Q6e=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)`}),J6e=e=>{const t=e,n=[].concat($f).reverse();return n.forEach((r,o)=>{const i=r.toUpperCase(),a=`screen${i}Min`,s=`screen${i}`;if(!(t[a]<=t[s]))throw new Error(`${a}<=${s} fails : !(${t[a]}<=${t[s]})`);if(o{const n=new Map;let r=-1,o={};return{matchHandlers:{},dispatch(i){return o=i,n.forEach(a=>a(o)),n.size>=1},subscribe(i){return n.size||this.register(),r+=1,n.set(r,i),i(o),r},unsubscribe(i){n.delete(i),n.size||this.unregister()},unregister(){Object.keys(t).forEach(i=>{const a=t[i],s=this.matchHandlers[a];s==null||s.mql.removeListener(s==null?void 0:s.listener)}),n.clear()},register(){Object.keys(t).forEach(i=>{const a=t[i],s=c=>{let{matches:u}=c;this.dispatch(Object.assign(Object.assign({},o),{[i]:u}))},l=window.matchMedia(a);l.addListener(s),this.matchHandlers[a]={mql:l,listener:s},s(l)})},responsiveMap:t}},[e])}const loe=(e,t)=>{if(t&&typeof t=="object")for(let n=0;n<$f.length;n++){const r=$f[n];if(e[r]&&t[r]!==void 0)return t[r]}};function XA(){const[,e]=d.useReducer(t=>t+1,0);return e}function W$(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const t=d.useRef({}),n=XA(),r=soe();return Zn(()=>{const o=r.subscribe(i=>{t.current=i,e&&n()});return()=>r.unsubscribe(o)},[]),t.current}const o6=d.createContext({}),Z6e=e=>{const{antCls:t,componentCls:n,iconCls:r,avatarBg:o,avatarColor:i,containerSize:a,containerSizeLG:s,containerSizeSM:l,textFontSize:c,textFontSizeLG:u,textFontSizeSM:f,borderRadius:h,borderRadiusLG:p,borderRadiusSM:m,lineWidth:g,lineType:v}=e,b=(y,S,w)=>({width:y,height:y,borderRadius:"50%",[`&${n}-square`]:{borderRadius:w},[`&${n}-icon`]:{fontSize:S,[`> ${r}`]:{margin:0}}});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},Qn(e)),{position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:i,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:o,border:`${_e(g)} ${v} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),b(a,c,h)),{"&-lg":Object.assign({},b(s,u,p)),"&-sm":Object.assign({},b(l,f,m)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},e8e=e=>{const{componentCls:t,groupBorderColor:n,groupOverlapping:r,groupSpace:o}=e;return{[`${t}-group`]:{display:"inline-flex",[t]:{borderColor:n},"> *:not(:first-child)":{marginInlineStart:r}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:o}}}},t8e=e=>{const{controlHeight:t,controlHeightLG:n,controlHeightSM:r,fontSize:o,fontSizeLG:i,fontSizeXL:a,fontSizeHeading3:s,marginXS:l,marginXXS:c,colorBorderBg:u}=e;return{containerSize:t,containerSizeLG:n,containerSizeSM:r,textFontSize:Math.round((i+a)/2),textFontSizeLG:s,textFontSizeSM:o,groupSpace:c,groupOverlapping:-l,groupBorderColor:u}},coe=Kn("Avatar",e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,r=kn(e,{avatarBg:n,avatarColor:t});return[Z6e(r),e8e(r)]},t8e);var n8e=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 o=0,r=Object.getOwnPropertySymbols(e);o{const[n,r]=d.useState(1),[o,i]=d.useState(!1),[a,s]=d.useState(!0),l=d.useRef(null),c=d.useRef(null),u=bi(t,l),{getPrefixCls:f,avatar:h}=d.useContext(Yt),p=d.useContext(o6),m=()=>{if(!c.current||!l.current)return;const X=c.current.offsetWidth,ne=l.current.offsetWidth;if(X!==0&&ne!==0){const{gap:le=4}=e;le*2{i(!0)},[]),d.useEffect(()=>{s(!0),r(1)},[e.src]),d.useEffect(m,[e.gap]);const g=()=>{const{onError:X}=e;(X==null?void 0:X())!==!1&&s(!1)},{prefixCls:v,shape:b,size:y,src:S,srcSet:w,icon:E,className:C,rootClassName:x,alt:_,draggable:P,children:O,crossOrigin:I}=e,M=n8e(e,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","alt","draggable","children","crossOrigin"]),T=Eo(X=>{var ne,le;return(le=(ne=y??(p==null?void 0:p.size))!==null&&ne!==void 0?ne:X)!==null&&le!==void 0?le:"default"}),D=Object.keys(typeof T=="object"?T||{}:{}).some(X=>["xs","sm","md","lg","xl","xxl"].includes(X)),A=W$(D),j=d.useMemo(()=>{if(typeof T!="object")return{};const X=$f.find(le=>A[le]),ne=T[X];return ne?{width:ne,height:ne,fontSize:ne&&(E||O)?ne/2:18}:{}},[A,T]),k=f("avatar",v),F=Mr(k),[V,W,K]=coe(k,F),L=xe({[`${k}-lg`]:T==="large",[`${k}-sm`]:T==="small"}),Q=d.isValidElement(S),ee=b||(p==null?void 0:p.shape)||"circle",re=xe(k,L,h==null?void 0:h.className,`${k}-${ee}`,{[`${k}-image`]:Q||S&&a,[`${k}-icon`]:!!E},K,F,C,x,W),ie=typeof T=="number"?{width:T,height:T,fontSize:E?T/2:18}:{};let G;if(typeof S=="string"&&a)G=d.createElement("img",{src:S,draggable:P,srcSet:w,onError:g,alt:_,crossOrigin:I});else if(Q)G=S;else if(E)G=E;else if(o||n!==1){const X=`scale(${n})`,ne={msTransform:X,WebkitTransform:X,transform:X};G=d.createElement(Oi,{onResize:m},d.createElement("span",{className:`${k}-string`,ref:c,style:Object.assign({},ne)},O))}else G=d.createElement("span",{className:`${k}-string`,style:{opacity:0},ref:c},O);return delete M.onError,delete M.gap,V(d.createElement("span",Object.assign({},M,{style:Object.assign(Object.assign(Object.assign(Object.assign({},ie),j),h==null?void 0:h.style),M.style),className:re,ref:u}),G))},uoe=d.forwardRef(r8e),Kg=e=>e?typeof e=="function"?e():e:null;function QA(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,i=e.bodyClassName,a=e.className,s=e.style;return d.createElement("div",{className:xe("".concat(n,"-content"),a),style:s},d.createElement("div",{className:xe("".concat(n,"-inner"),i),id:r,role:"tooltip",style:o},typeof t=="function"?t():t))}var fm={shiftX:64,adjustY:1},hm={adjustX:1,shiftY:!0},Fs=[0,0],o8e={left:{points:["cr","cl"],overflow:hm,offset:[-4,0],targetOffset:Fs},right:{points:["cl","cr"],overflow:hm,offset:[4,0],targetOffset:Fs},top:{points:["bc","tc"],overflow:fm,offset:[0,-4],targetOffset:Fs},bottom:{points:["tc","bc"],overflow:fm,offset:[0,4],targetOffset:Fs},topLeft:{points:["bl","tl"],overflow:fm,offset:[0,-4],targetOffset:Fs},leftTop:{points:["tr","tl"],overflow:hm,offset:[-4,0],targetOffset:Fs},topRight:{points:["br","tr"],overflow:fm,offset:[0,-4],targetOffset:Fs},rightTop:{points:["tl","tr"],overflow:hm,offset:[4,0],targetOffset:Fs},bottomRight:{points:["tr","br"],overflow:fm,offset:[0,4],targetOffset:Fs},rightBottom:{points:["bl","br"],overflow:hm,offset:[4,0],targetOffset:Fs},bottomLeft:{points:["tl","bl"],overflow:fm,offset:[0,4],targetOffset:Fs},leftBottom:{points:["br","bl"],overflow:hm,offset:[-4,0],targetOffset:Fs}},i8e=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],a8e=function(t,n){var r=t.overlayClassName,o=t.trigger,i=o===void 0?["hover"]:o,a=t.mouseEnterDelay,s=a===void 0?0:a,l=t.mouseLeaveDelay,c=l===void 0?.1:l,u=t.overlayStyle,f=t.prefixCls,h=f===void 0?"rc-tooltip":f,p=t.children,m=t.onVisibleChange,g=t.afterVisibleChange,v=t.transitionName,b=t.animation,y=t.motion,S=t.placement,w=S===void 0?"right":S,E=t.align,C=E===void 0?{}:E,x=t.destroyTooltipOnHide,_=x===void 0?!1:x,P=t.defaultVisible,O=t.getTooltipContainer,I=t.overlayInnerStyle;t.arrowContent;var M=t.overlay,T=t.id,D=t.showArrow,A=D===void 0?!0:D,j=t.classNames,k=t.styles,F=At(t,i8e),V=d.useRef(null);d.useImperativeHandle(n,function(){return V.current});var W=z({},F);"visible"in t&&(W.popupVisible=t.visible);var K=function(){return d.createElement(QA,{key:"content",prefixCls:h,id:T,bodyClassName:j==null?void 0:j.body,overlayInnerStyle:z(z({},I),k==null?void 0:k.body)},M)};return d.createElement(Y1,Ge({popupClassName:xe(r,j==null?void 0:j.root),prefixCls:h,popup:K,action:i,builtinPlacements:o8e,popupPlacement:w,ref:V,popupAlign:C,getPopupContainer:O,onPopupVisibleChange:m,afterPopupVisibleChange:g,popupTransitionName:v,popupAnimation:b,popupMotion:y,defaultPopupVisible:P,autoDestroy:_,mouseLeaveDelay:c,popupStyle:z(z({},u),k==null?void 0:k.root),mouseEnterDelay:s,arrow:A},W),p)};const s8e=d.forwardRef(a8e);function V$(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,i=0,a=o,s=r*1/Math.sqrt(2),l=o-r*(1-1/Math.sqrt(2)),c=o-n*(1/Math.sqrt(2)),u=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),f=2*o-c,h=u,p=2*o-s,m=l,g=2*o-i,v=a,b=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),y=r*(Math.sqrt(2)-1),S=`polygon(${y}px 100%, 50% ${y}px, ${2*o-y}px 100%, ${y}px 100%)`,w=`path('M ${i} ${a} A ${r} ${r} 0 0 0 ${s} ${l} L ${c} ${u} A ${n} ${n} 0 0 1 ${f} ${h} L ${p} ${m} A ${r} ${r} 0 0 0 ${g} ${v} Z')`;return{arrowShadowWidth:b,arrowPath:w,arrowPolygon:S}}const doe=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:s,calc:l}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:l(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${_e(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},foe=8;function K$(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?foe:r}}function zC(e,t){return e?t:{}}function JA(e,t,n){const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:i,arrowOffsetHorizontal:a}=e,{arrowDistance:s=0,arrowPlacement:l={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"},doe(e,t,o)),{"&:before":{background:t}})]},zC(!!l.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:s,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% - ${_e(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),zC(!!l.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:s,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% - ${_e(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),zC(!!l.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},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:i},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:i}})),zC(!!l.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},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:i},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:i}}))}}function l8e(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const o=r&&typeof r=="object"?r:{},i={};switch(e){case"top":case"bottom":i.shiftX=t.arrowOffsetHorizontal*2+n,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=t.arrowOffsetVertical*2+n,i.shiftX=!0,i.adjustX=!0;break}const a=Object.assign(Object.assign({},i),o);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}const gH={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"]}},c8e={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"]}},u8e=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function hoe(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:a}=e,s=t/2,l={};return Object.keys(gH).forEach(c=>{const u=r&&c8e[c]||gH[c],f=Object.assign(Object.assign({},u),{offset:[0,0],dynamicInset:!0});switch(l[c]=f,u8e.has(c)&&(f.autoArrow=!1),c){case"top":case"topLeft":case"topRight":f.offset[1]=-s-o;break;case"bottom":case"bottomLeft":case"bottomRight":f.offset[1]=s+o;break;case"left":case"leftTop":case"leftBottom":f.offset[0]=-s-o;break;case"right":case"rightTop":case"rightBottom":f.offset[0]=s+o;break}const h=K$({contentRadius:i,limitVerticalRadius:!0});if(r)switch(c){case"topLeft":case"bottomLeft":f.offset[0]=-h.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":f.offset[0]=h.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":f.offset[1]=-h.arrowOffsetHorizontal*2+s;break;case"leftBottom":case"rightBottom":f.offset[1]=h.arrowOffsetHorizontal*2-s;break}f.overflow=l8e(c,h,t,n),a&&(f.htmlRegion="visibleFirst")}),l}const d8e=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:o,tooltipBg:i,tooltipBorderRadius:a,zIndexPopup:s,controlHeight:l,boxShadowSecondary:c,paddingSM:u,paddingXS:f,arrowOffsetHorizontal:h,sizePopupArrow:p}=e,m=t(a).add(p).add(h).equal(),g=t(a).mul(2).add(p).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},Qn(e)),{position:"absolute",zIndex:s,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":i,[`${n}-inner`]:{minWidth:g,minHeight:l,padding:`${_e(e.calc(u).div(2).equal())} ${_e(f)}`,color:o,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:a,boxShadow:c,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:m},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(a,foe)}},[`${n}-content`]:{position:"relative"}}),y$(e,(v,b)=>{let{darkColor:y}=b;return{[`&${n}-${v}`]:{[`${n}-inner`]:{backgroundColor:y},[`${n}-arrow`]:{"--antd-arrow-background-color":y}}}})),{"&-rtl":{direction:"rtl"}})},JA(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},f8e=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},K$({contentRadius:e.borderRadius,limitVerticalRadius:!0})),V$(kn(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),poe=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Kn("Tooltip",r=>{const{borderRadius:o,colorTextLightSolid:i,colorBgSpotlight:a}=r,s=kn(r,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:o,tooltipBg:a});return[d8e(s),Mv(r,"zoom-big-fast")]},f8e,{resetStyle:!1,injectStyle:t})(e)},h8e=pp.map(e=>`${e}-inverse`),p8e=["success","processing","error","default","warning"];function q$(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(Ze(h8e),Ze(pp)).includes(e):pp.includes(e)}function m8e(e){return p8e.includes(e)}function moe(e,t){const n=q$(t),r=xe({[`${e}-${t}`]:t&&n}),o={},i={};return t&&!n&&(o.background=t,i["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:i}}const g8e=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:i,overlayInnerStyle:a}=e,{getPrefixCls:s}=d.useContext(Yt),l=s("tooltip",t),[c,u,f]=poe(l),h=moe(l,i),p=h.arrowStyle,m=Object.assign(Object.assign({},a),h.overlayStyle),g=xe(u,f,l,`${l}-pure`,`${l}-placement-${r}`,n,h.className);return c(d.createElement("div",{className:g,style:p},d.createElement("div",{className:`${l}-arrow`}),d.createElement(QA,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:m}),o)))};var v8e=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 o=0,r=Object.getOwnPropertySymbols(e);o{var n,r,o,i,a,s;const{prefixCls:l,openClassName:c,getTooltipContainer:u,color:f,overlayInnerStyle:h,children:p,afterOpenChange:m,afterVisibleChange:g,destroyTooltipOnHide:v,arrow:b=!0,title:y,overlay:S,builtinPlacements:w,arrowPointAtCenter:E=!1,autoAdjustOverflow:C=!0}=e,x=!!b,[,_]=Ho(),{getPopupContainer:P,getPrefixCls:O,direction:I,tooltip:M}=d.useContext(Yt),T=nu(),D=d.useRef(null),A=()=>{var Ce;(Ce=D.current)===null||Ce===void 0||Ce.forceAlign()};d.useImperativeHandle(t,()=>{var Ce;return{forceAlign:A,forcePopupAlign:()=>{T.deprecated(!1,"forcePopupAlign","forceAlign"),A()},nativeElement:(Ce=D.current)===null||Ce===void 0?void 0:Ce.nativeElement}});const[j,k]=xn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),F=!y&&!S&&y!==0,V=Ce=>{var ue,Le;k(F?!1:Ce),F||((ue=e.onOpenChange)===null||ue===void 0||ue.call(e,Ce),(Le=e.onVisibleChange)===null||Le===void 0||Le.call(e,Ce))},W=d.useMemo(()=>{var Ce,ue;let Le=E;return typeof b=="object"&&(Le=(ue=(Ce=b.pointAtCenter)!==null&&Ce!==void 0?Ce:b.arrowPointAtCenter)!==null&&ue!==void 0?ue:E),w||hoe({arrowPointAtCenter:Le,autoAdjustOverflow:C,arrowWidth:x?_.sizePopupArrow:0,borderRadius:_.borderRadius,offset:_.marginXXS,visibleFirst:!0})},[E,b,w,_]),K=d.useMemo(()=>y===0?y:S||y||"",[S,y]),L=d.createElement(ic,{space:!0},typeof K=="function"?K():K),{getPopupContainer:Q,placement:ee="top",mouseEnterDelay:re=.1,mouseLeaveDelay:ie=.1,overlayStyle:G,rootClassName:X,overlayClassName:ne,styles:le,classNames:ce}=e,oe=v8e(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),se=O("tooltip",l),fe=O(),te=e["data-popover-inject"];let he=j;!("open"in e)&&!("visible"in e)&&F&&(he=!1);const pe=d.isValidElement(p)&&!Mne(p)?p:d.createElement("span",null,p),Oe=pe.props,Me=!Oe.className||typeof Oe.className=="string"?xe(Oe.className,c||`${se}-open`):Oe.className,[Se,ye,ve]=poe(se,!te),be=moe(se,f),Pe=be.arrowStyle,Ne=xe(ne,{[`${se}-rtl`]:I==="rtl"},be.className,X,ye,ve,M==null?void 0:M.className,(o=M==null?void 0:M.classNames)===null||o===void 0?void 0:o.root,ce==null?void 0:ce.root),U=xe((i=M==null?void 0:M.classNames)===null||i===void 0?void 0:i.body,ce==null?void 0:ce.body),[H,q]=vl("Tooltip",oe.zIndex),me=d.createElement(s8e,Object.assign({},oe,{zIndex:H,showArrow:x,placement:ee,mouseEnterDelay:re,mouseLeaveDelay:ie,prefixCls:se,classNames:{root:Ne,body:U},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Pe),(a=M==null?void 0:M.styles)===null||a===void 0?void 0:a.root),M==null?void 0:M.style),G),le==null?void 0:le.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},(s=M==null?void 0:M.styles)===null||s===void 0?void 0:s.body),h),le==null?void 0:le.body),be.overlayStyle)},getTooltipContainer:Q||u||P,ref:D,builtinPlacements:W,overlay:L,visible:he,onVisibleChange:V,afterVisibleChange:m??g,arrowContent:d.createElement("span",{className:`${se}-arrow-content`}),motion:{motionName:Mi(fe,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!v}),he?Zo(pe,{className:Me}):pe);return Se(d.createElement(B1.Provider,{value:q},me))}),xa=y8e;xa._InternalPanelDoNotUseOrYouWillBeFired=g8e;const b8e=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:o,innerPadding:i,boxShadowSecondary:a,colorTextHeading:s,borderRadiusLG:l,zIndexPopup:c,titleMarginBottom:u,colorBgElevated:f,popoverBg:h,titleBorderBottom:p,innerContentPadding:m,titlePadding:g}=e;return[{[t]:Object.assign(Object.assign({},Qn(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:c,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":f,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:h,backgroundClip:"padding-box",borderRadius:l,boxShadow:a,padding:i},[`${t}-title`]:{minWidth:r,marginBottom:u,color:s,fontWeight:o,borderBottom:p,padding:g},[`${t}-inner-content`]:{color:n,padding:m}})},JA(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},S8e=e=>{const{componentCls:t}=e;return{[t]:pp.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},C8e=e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:o,wireframe:i,zIndexPopupBase:a,borderRadiusLG:s,marginXS:l,lineType:c,colorSplit:u,paddingSM:f}=e,h=n-r,p=h/2,m=h/2-t,g=o;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:a+30},V$(e)),K$({contentRadius:s,limitVerticalRadius:!0})),{innerPadding:i?0:12,titleMarginBottom:i?0:l,titlePadding:i?`${p}px ${g}px ${m}px`:0,titleBorderBottom:i?`${t}px ${c} ${u}`:"none",innerContentPadding:i?`${f}px ${g}px`:0})},goe=Kn("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=kn(e,{popoverBg:t,popoverColor:n});return[b8e(r),S8e(r),Mv(r,"zoom-big")]},C8e,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var w8e=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 o=0,r=Object.getOwnPropertySymbols(e);o{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))},x8e=e=>{const{hashId:t,prefixCls:n,className:r,style:o,placement:i="top",title:a,content:s,children:l}=e,c=Kg(a),u=Kg(s),f=xe(t,n,`${n}-pure`,`${n}-placement-${i}`,r);return d.createElement("div",{className:f,style:o},d.createElement("div",{className:`${n}-arrow`}),d.createElement(QA,Object.assign({},e,{className:t,prefixCls:n}),l||d.createElement(voe,{prefixCls:n,title:c,content:u})))},yoe=e=>{const{prefixCls:t,className:n}=e,r=w8e(e,["prefixCls","className"]),{getPrefixCls:o}=d.useContext(Yt),i=o("popover",t),[a,s,l]=goe(i);return a(d.createElement(x8e,Object.assign({},r,{prefixCls:i,hashId:s,className:xe(n,l)})))};var E8e=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 o=0,r=Object.getOwnPropertySymbols(e);o{var n,r,o,i,a,s;const{prefixCls:l,title:c,content:u,overlayClassName:f,placement:h="top",trigger:p="hover",children:m,mouseEnterDelay:g=.1,mouseLeaveDelay:v=.1,onOpenChange:b,overlayStyle:y={},styles:S,classNames:w}=e,E=E8e(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{popover:C,getPrefixCls:x}=d.useContext(Yt),_=x("popover",l),[P,O,I]=goe(_),M=x(),T=xe(f,O,I,(n=C==null?void 0:C.classNames)===null||n===void 0?void 0:n.root,w==null?void 0:w.root),D=xe((r=C==null?void 0:C.classNames)===null||r===void 0?void 0:r.body,w==null?void 0:w.body),[A,j]=xn(!1,{value:(o=e.open)!==null&&o!==void 0?o:e.visible,defaultValue:(i=e.defaultOpen)!==null&&i!==void 0?i:e.defaultVisible}),k=(L,Q)=>{j(L,!0),b==null||b(L,Q)},F=L=>{L.keyCode===ut.ESC&&k(!1,L)},V=L=>{k(L)},W=Kg(c),K=Kg(u);return P(d.createElement(xa,Object.assign({placement:h,trigger:p,mouseEnterDelay:g,mouseLeaveDelay:v},E,{prefixCls:_,classNames:{root:T,body:D},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},(a=C==null?void 0:C.styles)===null||a===void 0?void 0:a.root),C==null?void 0:C.style),y),S==null?void 0:S.root),body:Object.assign(Object.assign({},(s=C==null?void 0:C.styles)===null||s===void 0?void 0:s.body),S==null?void 0:S.body)},ref:t,open:A,onOpenChange:V,overlay:W||K?d.createElement(voe,{prefixCls:_,title:W,content:K}):null,transitionName:Mi(M,"zoom-big",E.transitionName),"data-popover-inject":!0}),Zo(m,{onKeyDown:L=>{var Q,ee;d.isValidElement(m)&&((ee=m==null?void 0:(Q=m.props).onKeyDown)===null||ee===void 0||ee.call(Q,L)),F(L)}})))}),fl=_8e;fl._InternalPanelDoNotUseOrYouWillBeFired=yoe;const vH=e=>{const{size:t,shape:n}=d.useContext(o6),r=d.useMemo(()=>({size:e.size||t,shape:e.shape||n}),[e.size,e.shape,t,n]);return d.createElement(o6.Provider,{value:r},e.children)},$8e=e=>{var t,n,r,o;const{getPrefixCls:i,direction:a}=d.useContext(Yt),{prefixCls:s,className:l,rootClassName:c,style:u,maxCount:f,maxStyle:h,size:p,shape:m,maxPopoverPlacement:g,maxPopoverTrigger:v,children:b,max:y}=e,S=i("avatar",s),w=`${S}-group`,E=Mr(S),[C,x,_]=coe(S,E),P=xe(w,{[`${w}-rtl`]:a==="rtl"},_,E,l,c,x),O=ai(b).map((T,D)=>Zo(T,{key:`avatar-key-${D}`})),I=(y==null?void 0:y.count)||f,M=O.length;if(I&&I{const{componentCls:t,iconCls:n,antCls:r,badgeShadowSize:o,textFontSize:i,textFontSizeSM:a,statusSize:s,dotSize:l,textFontWeight:c,indicatorHeight:u,indicatorHeightSM:f,marginXS:h,calc:p}=e,m=`${r}-scroll-number`,g=y$(e,(v,b)=>{let{darkColor:y}=b;return{[`&${t} ${t}-color-${v}`]:{background:y,[`&:not(${t}-count)`]:{color:y},"a:hover &":{background:y}}}});return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Qn(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{display:"inline-flex",justifyContent:"center",zIndex:e.indicatorZIndex,minWidth:u,height:u,color:e.badgeTextColor,fontWeight:c,fontSize:i,lineHeight:_e(u),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:p(u).div(2).equal(),boxShadow:`0 0 0 ${_e(o)} ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:f,height:f,fontSize:a,lineHeight:_e(f),borderRadius:p(f).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${_e(e.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:l,minWidth:l,height:l,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${_e(o)} ${e.badgeShadowColor}`},[`${t}-count, ${t}-dot, ${m}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:I8e,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:s,height:s,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorInfo,backgroundColor:e.colorInfo,borderColor:"currentcolor","&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:o,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:P8e,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:h,color:e.colorText,fontSize:e.fontSize}}}),g),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:O8e,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:M8e,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:T8e,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:R8e,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${m}-custom-component, ${t}-count`]:{transform:"none"},[`${m}-custom-component, ${m}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[m]:{overflow:"hidden",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack}`,[`${m}-only`]:{position:"relative",display:"inline-block",height:u,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${m}-only-unit`]:{height:u,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${m}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${m}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}},boe=e=>{const{fontHeight:t,lineWidth:n,marginXS:r,colorBorderBg:o}=e,i=t,a=n,s=e.colorTextLightSolid,l=e.colorError,c=e.colorErrorHover;return kn(e,{badgeFontHeight:i,badgeShadowSize:a,badgeTextColor:s,badgeColor:l,badgeColorHover:c,badgeShadowColor:o,badgeProcessingDuration:"1.2s",badgeRibbonOffset:r,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},Soe=e=>{const{fontSize:t,lineHeight:n,fontSizeSM:r,lineWidth:o}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(t*n)-2*o,indicatorHeightSM:t,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:"normal",statusSize:r/2}},N8e=Kn("Badge",e=>{const t=boe(e);return k8e(t)},Soe),A8e=e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:o,calc:i}=e,a=`${t}-ribbon`,s=`${t}-ribbon-wrapper`,l=y$(e,(c,u)=>{let{darkColor:f}=u;return{[`&${a}-color-${c}`]:{background:f,color:f}}});return{[s]:{position:"relative"},[a]:Object.assign(Object.assign(Object.assign(Object.assign({},Qn(e)),{position:"absolute",top:r,padding:`0 ${_e(e.paddingXS)}`,color:e.colorPrimary,lineHeight:_e(n),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${a}-text`]:{color:e.badgeTextColor},[`${a}-corner`]:{position:"absolute",top:"100%",width:o,height:o,color:"currentcolor",border:`${_e(i(o).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),l),{[`&${a}-placement-end`]:{insetInlineEnd:i(o).mul(-1).equal(),borderEndEndRadius:0,[`${a}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${a}-placement-start`]:{insetInlineStart:i(o).mul(-1).equal(),borderEndStartRadius:0,[`${a}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},D8e=Kn(["Badge","Ribbon"],e=>{const t=boe(e);return A8e(t)},Soe),j8e=e=>{const{className:t,prefixCls:n,style:r,color:o,children:i,text:a,placement:s="end",rootClassName:l}=e,{getPrefixCls:c,direction:u}=d.useContext(Yt),f=c("ribbon",n),h=`${f}-wrapper`,[p,m,g]=D8e(f,h),v=q$(o,!1),b=xe(f,`${f}-placement-${s}`,{[`${f}-rtl`]:u==="rtl",[`${f}-color-${o}`]:v},t),y={},S={};return o&&!v&&(y.background=o,S.color=o),p(d.createElement("div",{className:xe(h,l,m,g)},i,d.createElement("div",{className:xe(b,m),style:Object.assign(Object.assign({},y),r)},d.createElement("span",{className:`${f}-text`},a),d.createElement("div",{className:`${f}-corner`,style:S}))))},yH=e=>{const{prefixCls:t,value:n,current:r,offset:o=0}=e;let i;return o&&(i={position:"absolute",top:`${o}00%`,left:0}),d.createElement("span",{style:i,className:xe(`${t}-only-unit`,{current:r})},n)};function F8e(e,t,n){let r=e,o=0;for(;(r+10)%10!==t;)r+=n,o+=n;return o}const L8e=e=>{const{prefixCls:t,count:n,value:r}=e,o=Number(r),i=Math.abs(n),[a,s]=d.useState(o),[l,c]=d.useState(i),u=()=>{s(o),c(i)};d.useEffect(()=>{const p=setTimeout(u,1e3);return()=>clearTimeout(p)},[o]);let f,h;if(a===o||Number.isNaN(o)||Number.isNaN(a))f=[d.createElement(yH,Object.assign({},e,{key:o,current:!0}))],h={transition:"none"};else{f=[];const p=o+10,m=[];for(let y=o;y<=p;y+=1)m.push(y);const g=ly%10===a);f=(g<0?m.slice(0,v+1):m.slice(v)).map((y,S)=>{const w=y%10;return d.createElement(yH,Object.assign({},e,{key:y,value:w,offset:g<0?S-v:S,current:S===v}))}),h={transform:`translateY(${-F8e(a,o,g)}00%)`}}return d.createElement("span",{className:`${t}-only`,style:h,onTransitionEnd:u},f)};var B8e=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 o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,count:r,className:o,motionClassName:i,style:a,title:s,show:l,component:c="sup",children:u}=e,f=B8e(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:h}=d.useContext(Yt),p=h("scroll-number",n),m=Object.assign(Object.assign({},f),{"data-show":l,style:a,className:xe(p,o,i),title:s});let g=r;if(r&&Number(r)%1===0){const v=String(r).split("");g=d.createElement("bdi",null,v.map((b,y)=>d.createElement(L8e,{prefixCls:p,count:Number(r),value:b,key:v.length-y})))}return a!=null&&a.borderColor&&(m.style=Object.assign(Object.assign({},a),{boxShadow:`0 0 0 1px ${a.borderColor} inset`})),u?Zo(u,v=>({className:xe(`${p}-custom-component`,v==null?void 0:v.className,i)})):d.createElement(c,Object.assign({},m,{ref:t}),g)});var H8e=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 o=0,r=Object.getOwnPropertySymbols(e);o{var n,r,o,i,a;const{prefixCls:s,scrollNumberPrefixCls:l,children:c,status:u,text:f,color:h,count:p=null,overflowCount:m=99,dot:g=!1,size:v="default",title:b,offset:y,style:S,className:w,rootClassName:E,classNames:C,styles:x,showZero:_=!1}=e,P=H8e(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:O,direction:I,badge:M}=d.useContext(Yt),T=O("badge",s),[D,A,j]=N8e(T),k=p>m?`${m}+`:p,F=k==="0"||k===0,V=p===null||F&&!_,W=(u!=null||h!=null)&&V,K=g&&!F,L=K?"":k,Q=d.useMemo(()=>(L==null||L===""||F&&!_)&&!K,[L,F,_,K]),ee=d.useRef(p);Q||(ee.current=p);const re=ee.current,ie=d.useRef(L);Q||(ie.current=L);const G=ie.current,X=d.useRef(K);Q||(X.current=K);const ne=d.useMemo(()=>{if(!y)return Object.assign(Object.assign({},M==null?void 0:M.style),S);const pe={marginTop:y[1]};return I==="rtl"?pe.left=parseInt(y[0],10):pe.right=-parseInt(y[0],10),Object.assign(Object.assign(Object.assign({},pe),M==null?void 0:M.style),S)},[I,y,S,M==null?void 0:M.style]),le=b??(typeof re=="string"||typeof re=="number"?re:void 0),ce=Q||!f?null:d.createElement("span",{className:`${T}-status-text`},f),oe=!re||typeof re!="object"?void 0:Zo(re,pe=>({style:Object.assign(Object.assign({},ne),pe.style)})),se=q$(h,!1),fe=xe(C==null?void 0:C.indicator,(n=M==null?void 0:M.classNames)===null||n===void 0?void 0:n.indicator,{[`${T}-status-dot`]:W,[`${T}-status-${u}`]:!!u,[`${T}-color-${h}`]:se}),te={};h&&!se&&(te.color=h,te.background=h);const he=xe(T,{[`${T}-status`]:W,[`${T}-not-a-wrapper`]:!c,[`${T}-rtl`]:I==="rtl"},w,E,M==null?void 0:M.className,(r=M==null?void 0:M.classNames)===null||r===void 0?void 0:r.root,C==null?void 0:C.root,A,j);if(!c&&W){const pe=ne.color;return D(d.createElement("span",Object.assign({},P,{className:he,style:Object.assign(Object.assign(Object.assign({},x==null?void 0:x.root),(o=M==null?void 0:M.styles)===null||o===void 0?void 0:o.root),ne)}),d.createElement("span",{className:fe,style:Object.assign(Object.assign(Object.assign({},x==null?void 0:x.indicator),(i=M==null?void 0:M.styles)===null||i===void 0?void 0:i.indicator),te)}),f&&d.createElement("span",{style:{color:pe},className:`${T}-status-text`},f)))}return D(d.createElement("span",Object.assign({ref:t},P,{className:he,style:Object.assign(Object.assign({},(a=M==null?void 0:M.styles)===null||a===void 0?void 0:a.root),x==null?void 0:x.root)}),c,d.createElement(Jo,{visible:!Q,motionName:`${T}-zoom`,motionAppear:!1,motionDeadline:1e3},pe=>{let{className:Oe}=pe;var Me,Se;const ye=O("scroll-number",l),ve=X.current,be=xe(C==null?void 0:C.indicator,(Me=M==null?void 0:M.classNames)===null||Me===void 0?void 0:Me.indicator,{[`${T}-dot`]:ve,[`${T}-count`]:!ve,[`${T}-count-sm`]:v==="small",[`${T}-multiple-words`]:!ve&&G&&G.toString().length>1,[`${T}-status-${u}`]:!!u,[`${T}-color-${h}`]:se});let Pe=Object.assign(Object.assign(Object.assign({},x==null?void 0:x.indicator),(Se=M==null?void 0:M.styles)===null||Se===void 0?void 0:Se.indicator),ne);return h&&!se&&(Pe=Pe||{},Pe.background=h),d.createElement(z8e,{prefixCls:ye,show:!Q,motionClassName:Oe,className:be,count:G,title:le,style:Pe,key:"scrollNumber"},oe)}),ce))}),Xi=U8e;Xi.Ribbon=j8e;var W8e=ut.ESC,V8e=ut.TAB;function K8e(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,i=e.overlayRef,a=d.useRef(!1),s=function(){if(t){var f,h;(f=n.current)===null||f===void 0||(h=f.focus)===null||h===void 0||h.call(f),r==null||r(!1)}},l=function(){var f;return(f=i.current)!==null&&f!==void 0&&f.focus?(i.current.focus(),a.current=!0,!0):!1},c=function(f){switch(f.keyCode){case W8e:s();break;case V8e:{var h=!1;a.current||(h=l()),h?f.preventDefault():s();break}}};d.useEffect(function(){return t?(window.addEventListener("keydown",c),o&&zn(l,3),function(){window.removeEventListener("keydown",c),a.current=!1}):function(){a.current=!1}},[t])}var q8e=d.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,i=d.useMemo(function(){var s;return typeof n=="function"?s=n():s=n,s},[n]),a=bi(t,Af(i));return de.createElement(de.Fragment,null,r&&de.createElement("div",{className:"".concat(o,"-arrow")}),de.cloneElement(i,{ref:tc(i)?a:void 0}))}),pm={adjustX:1,adjustY:1},mm=[0,0],G8e={topLeft:{points:["bl","tl"],overflow:pm,offset:[0,-4],targetOffset:mm},top:{points:["bc","tc"],overflow:pm,offset:[0,-4],targetOffset:mm},topRight:{points:["br","tr"],overflow:pm,offset:[0,-4],targetOffset:mm},bottomLeft:{points:["tl","bl"],overflow:pm,offset:[0,4],targetOffset:mm},bottom:{points:["tc","bc"],overflow:pm,offset:[0,4],targetOffset:mm},bottomRight:{points:["tr","br"],overflow:pm,offset:[0,4],targetOffset:mm}},Y8e=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function X8e(e,t){var n,r=e.arrow,o=r===void 0?!1:r,i=e.prefixCls,a=i===void 0?"rc-dropdown":i,s=e.transitionName,l=e.animation,c=e.align,u=e.placement,f=u===void 0?"bottomLeft":u,h=e.placements,p=h===void 0?G8e:h,m=e.getPopupContainer,g=e.showAction,v=e.hideAction,b=e.overlayClassName,y=e.overlayStyle,S=e.visible,w=e.trigger,E=w===void 0?["hover"]:w,C=e.autoFocus,x=e.overlay,_=e.children,P=e.onVisibleChange,O=At(e,Y8e),I=de.useState(),M=$e(I,2),T=M[0],D=M[1],A="visible"in e?S:T,j=de.useRef(null),k=de.useRef(null),F=de.useRef(null);de.useImperativeHandle(t,function(){return j.current});var V=function(X){D(X),P==null||P(X)};K8e({visible:A,triggerRef:F,onVisibleChange:V,autoFocus:C,overlayRef:k});var W=function(X){var ne=e.onOverlayClick;D(!1),ne&&ne(X)},K=function(){return de.createElement(q8e,{ref:k,overlay:x,prefixCls:a,arrow:o})},L=function(){return typeof x=="function"?K:K()},Q=function(){var X=e.minOverlayWidthMatchTrigger,ne=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?X:!ne},ee=function(){var X=e.openClassName;return X!==void 0?X:"".concat(a,"-open")},re=de.cloneElement(_,{className:xe((n=_.props)===null||n===void 0?void 0:n.className,A&&ee()),ref:tc(_)?bi(F,Af(_)):void 0}),ie=v;return!ie&&E.indexOf("contextMenu")!==-1&&(ie=["click"]),de.createElement(Y1,Ge({builtinPlacements:p},O,{prefixCls:a,ref:j,popupClassName:xe(b,Z({},"".concat(a,"-show-arrow"),o)),popupStyle:y,action:E,showAction:g,hideAction:ie,popupPlacement:f,popupAlign:c,popupTransitionName:s,popupAnimation:l,popupVisible:A,stretch:Q()?"minWidth":"",popup:L(),onPopupVisibleChange:V,onPopupClick:W,getPopupContainer:m}),re)}const Coe=de.forwardRef(X8e),Q8e=e=>typeof e!="object"&&typeof e!="function"||e===null;var woe=d.createContext(null);function xoe(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function Eoe(e){var t=d.useContext(woe);return xoe(t,e)}var J8e=["children","locked"],sc=d.createContext(null);function Z8e(e,t){var n=z({},e);return Object.keys(t).forEach(function(r){var o=t[r];o!==void 0&&(n[r]=o)}),n}function qb(e){var t=e.children,n=e.locked,r=At(e,J8e),o=d.useContext(sc),i=ed(function(){return Z8e(o,r)},[o,r],function(a,s){return!n&&(a[0]!==s[0]||!dl(a[1],s[1],!0))});return d.createElement(sc.Provider,{value:i},t)}var eNe=[],_oe=d.createContext(null);function G$(){return d.useContext(_oe)}var $oe=d.createContext(eNe);function Iv(e){var t=d.useContext($oe);return d.useMemo(function(){return e!==void 0?[].concat(Ze(t),[e]):t},[t,e])}var Poe=d.createContext(null),ZA=d.createContext({});function bH(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Ov(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),i=Number(o),a=null;return o&&!Number.isNaN(i)?a=i:r&&a===null&&(a=0),r&&e.disabled&&(a=null),a!==null&&(a>=0||t&&a<0)}return!1}function tNe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Ze(e.querySelectorAll("*")).filter(function(r){return bH(r,t)});return bH(e,t)&&n.unshift(e),n}var i6=ut.LEFT,a6=ut.RIGHT,s6=ut.UP,ox=ut.DOWN,ix=ut.ENTER,Ooe=ut.ESC,j0=ut.HOME,F0=ut.END,SH=[s6,ox,i6,a6];function nNe(e,t,n,r){var o,i="prev",a="next",s="children",l="parent";if(e==="inline"&&r===ix)return{inlineTrigger:!0};var c=Z(Z({},s6,i),ox,a),u=Z(Z(Z(Z({},i6,n?a:i),a6,n?i:a),ox,s),ix,s),f=Z(Z(Z(Z(Z(Z({},s6,i),ox,a),ix,s),Ooe,l),i6,n?s:l),a6,n?l:s),h={inline:c,horizontal:u,vertical:f,inlineSub:c,horizontalSub:f,verticalSub:f},p=(o=h["".concat(e).concat(t?"":"Sub")])===null||o===void 0?void 0:o[r];switch(p){case i:return{offset:-1,sibling:!0};case a:return{offset:1,sibling:!0};case l:return{offset:-1,sibling:!1};case s:return{offset:1,sibling:!1};default:return null}}function rNe(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function oNe(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function eD(e,t){var n=tNe(e,!0);return n.filter(function(r){return t.has(r)})}function CH(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var o=eD(e,t),i=o.length,a=o.findIndex(function(s){return n===s});return r<0?a===-1?a=i-1:a-=1:r>0&&(a+=1),a=(a+i)%i,o[a]}var l6=function(t,n){var r=new Set,o=new Map,i=new Map;return t.forEach(function(a){var s=document.querySelector("[data-menu-id='".concat(xoe(n,a),"']"));s&&(r.add(s),i.set(s,a),o.set(a,s))}),{elements:r,key2element:o,element2key:i}};function iNe(e,t,n,r,o,i,a,s,l,c){var u=d.useRef(),f=d.useRef();f.current=t;var h=function(){zn.cancel(u.current)};return d.useEffect(function(){return function(){h()}},[]),function(p){var m=p.which;if([].concat(SH,[ix,Ooe,j0,F0]).includes(m)){var g=i(),v=l6(g,r),b=v,y=b.elements,S=b.key2element,w=b.element2key,E=S.get(t),C=oNe(E,y),x=w.get(C),_=nNe(e,a(x,!0).length===1,n,m);if(!_&&m!==j0&&m!==F0)return;(SH.includes(m)||[j0,F0].includes(m))&&p.preventDefault();var P=function(k){if(k){var F=k,V=k.querySelector("a");V!=null&&V.getAttribute("href")&&(F=V);var W=w.get(k);s(W),h(),u.current=zn(function(){f.current===W&&F.focus()})}};if([j0,F0].includes(m)||_.sibling||!C){var O;!C||e==="inline"?O=o.current:O=rNe(C);var I,M=eD(O,y);m===j0?I=M[0]:m===F0?I=M[M.length-1]:I=CH(O,y,C,_.offset),P(I)}else if(_.inlineTrigger)l(x);else if(_.offset>0)l(x,!0),h(),u.current=zn(function(){v=l6(g,r);var j=C.getAttribute("aria-controls"),k=document.getElementById(j),F=CH(k,v.elements);P(F)},5);else if(_.offset<0){var T=a(x,!0),D=T[T.length-2],A=S.get(D);l(D,!1),P(A)}}c==null||c(p)}}function aNe(e){Promise.resolve().then(e)}var tD="__RC_UTIL_PATH_SPLIT__",wH=function(t){return t.join(tD)},sNe=function(t){return t.split(tD)},c6="rc-menu-more";function lNe(){var e=d.useState({}),t=$e(e,2),n=t[1],r=d.useRef(new Map),o=d.useRef(new Map),i=d.useState([]),a=$e(i,2),s=a[0],l=a[1],c=d.useRef(0),u=d.useRef(!1),f=function(){u.current||n({})},h=d.useCallback(function(S,w){var E=wH(w);o.current.set(E,S),r.current.set(S,E),c.current+=1;var C=c.current;aNe(function(){C===c.current&&f()})},[]),p=d.useCallback(function(S,w){var E=wH(w);o.current.delete(E),r.current.delete(S)},[]),m=d.useCallback(function(S){l(S)},[]),g=d.useCallback(function(S,w){var E=r.current.get(S)||"",C=sNe(E);return w&&s.includes(C[0])&&C.unshift(c6),C},[s]),v=d.useCallback(function(S,w){return S.filter(function(E){return E!==void 0}).some(function(E){var C=g(E,!0);return C.includes(w)})},[g]),b=function(){var w=Ze(r.current.keys());return s.length&&w.push(c6),w},y=d.useCallback(function(S){var w="".concat(r.current.get(S)).concat(tD),E=new Set;return Ze(o.current.keys()).forEach(function(C){C.startsWith(w)&&E.add(o.current.get(C))}),E},[]);return d.useEffect(function(){return function(){u.current=!0}},[]),{registerPath:h,unregisterPath:p,refreshOverflowKeys:m,isSubPathKey:v,getKeyPath:g,getKeys:b,getSubPathKeys:y}}function fy(e){var t=d.useRef(e);t.current=e;var n=d.useCallback(function(){for(var r,o=arguments.length,i=new Array(o),a=0;a1&&(y.motionAppear=!1);var S=y.onVisibleChanged;return y.onVisibleChanged=function(w){return!h.current&&!w&&v(!0),S==null?void 0:S(w)},g?null:d.createElement(qb,{mode:i,locked:!h.current},d.createElement(Jo,Ge({visible:b},y,{forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(w){var E=w.className,C=w.style;return d.createElement(nD,{id:t,className:E,style:C},o)}))}var _Ne=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],$Ne=["active"],PNe=d.forwardRef(function(e,t){var n=e.style,r=e.className,o=e.title,i=e.eventKey;e.warnKey;var a=e.disabled,s=e.internalPopupClose,l=e.children,c=e.itemIcon,u=e.expandIcon,f=e.popupClassName,h=e.popupOffset,p=e.popupStyle,m=e.onClick,g=e.onMouseEnter,v=e.onMouseLeave,b=e.onTitleClick,y=e.onTitleMouseEnter,S=e.onTitleMouseLeave,w=At(e,_Ne),E=Eoe(i),C=d.useContext(sc),x=C.prefixCls,_=C.mode,P=C.openKeys,O=C.disabled,I=C.overflowDisabled,M=C.activeKey,T=C.selectedKeys,D=C.itemIcon,A=C.expandIcon,j=C.onItemClick,k=C.onOpenChange,F=C.onActive,V=d.useContext(ZA),W=V._internalRenderSubMenuItem,K=d.useContext(Poe),L=K.isSubPathKey,Q=Iv(),ee="".concat(x,"-submenu"),re=O||a,ie=d.useRef(),G=d.useRef(),X=c??D,ne=u??A,le=P.includes(i),ce=!I&&le,oe=L(T,i),se=Moe(i,re,y,S),fe=se.active,te=At(se,$Ne),he=d.useState(!1),pe=$e(he,2),Oe=pe[0],Me=pe[1],Se=function(De){re||Me(De)},ye=function(De){Se(!0),g==null||g({key:i,domEvent:De})},ve=function(De){Se(!1),v==null||v({key:i,domEvent:De})},be=d.useMemo(function(){return fe||(_!=="inline"?Oe||L([M],i):!1)},[_,fe,M,Oe,i,L]),Pe=Toe(Q.length),Ne=function(De){re||(b==null||b({key:i,domEvent:De}),_==="inline"&&k(i,!le))},U=fy(function(ge){m==null||m(X2(ge)),j(ge)}),H=function(De){_!=="inline"&&k(i,De)},q=function(){F(i)},me=E&&"".concat(E,"-popup"),Ce=d.createElement("div",Ge({role:"menuitem",style:Pe,className:"".concat(ee,"-title"),tabIndex:re?null:-1,ref:ie,title:typeof o=="string"?o:null,"data-menu-id":I&&E?null:E,"aria-expanded":ce,"aria-haspopup":!0,"aria-controls":me,"aria-disabled":re,onClick:Ne,onFocus:q},te),o,d.createElement(Roe,{icon:_!=="horizontal"?ne:void 0,props:z(z({},e),{},{isOpen:ce,isSubMenu:!0})},d.createElement("i",{className:"".concat(ee,"-arrow")}))),ue=d.useRef(_);if(_!=="inline"&&Q.length>1?ue.current="vertical":ue.current=_,!I){var Le=ue.current;Ce=d.createElement(xNe,{mode:Le,prefixCls:ee,visible:!s&&ce&&_!=="inline",popupClassName:f,popupOffset:h,popupStyle:p,popup:d.createElement(qb,{mode:Le==="horizontal"?"vertical":Le},d.createElement(nD,{id:me,ref:G},l)),disabled:re,onVisibleChange:H},Ce)}var He=d.createElement(ql.Item,Ge({ref:t,role:"none"},w,{component:"li",style:n,className:xe(ee,"".concat(ee,"-").concat(_),r,Z(Z(Z(Z({},"".concat(ee,"-open"),ce),"".concat(ee,"-active"),be),"".concat(ee,"-selected"),oe),"".concat(ee,"-disabled"),re)),onMouseEnter:ye,onMouseLeave:ve}),Ce,!I&&d.createElement(ENe,{id:me,open:ce,keyPath:Q},l));return W&&(He=W(He,e,{selected:oe,active:be,open:ce,disabled:re})),d.createElement(qb,{onItemClick:U,mode:_==="horizontal"?"vertical":_,itemIcon:X,expandIcon:ne},He)}),Y$=d.forwardRef(function(e,t){var n=e.eventKey,r=e.children,o=Iv(n),i=rD(r,o),a=G$();d.useEffect(function(){if(a)return a.registerPath(n,o),function(){a.unregisterPath(n,o)}},[o]);var s;return a?s=i:s=d.createElement(PNe,Ge({ref:t},e),i),d.createElement($oe.Provider,{value:o},s)});function oD(e){var t=e.className,n=e.style,r=d.useContext(sc),o=r.prefixCls,i=G$();return i?null:d.createElement("li",{role:"separator",className:xe("".concat(o,"-item-divider"),t),style:n})}var ONe=["className","title","eventKey","children"],MNe=d.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var o=e.children,i=At(e,ONe),a=d.useContext(sc),s=a.prefixCls,l="".concat(s,"-item-group");return d.createElement("li",Ge({ref:t,role:"presentation"},i,{onClick:function(u){return u.stopPropagation()},className:xe(l,n)}),d.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:typeof r=="string"?r:void 0},r),d.createElement("ul",{role:"group",className:"".concat(l,"-list")},o))}),iD=d.forwardRef(function(e,t){var n=e.eventKey,r=e.children,o=Iv(n),i=rD(r,o),a=G$();return a?i:d.createElement(MNe,Ge({ref:t},Yn(e,["warnKey"])),i)}),TNe=["label","children","key","type","extra"];function u6(e,t,n){var r=t.item,o=t.group,i=t.submenu,a=t.divider;return(e||[]).map(function(s,l){if(s&&Ht(s)==="object"){var c=s,u=c.label,f=c.children,h=c.key,p=c.type,m=c.extra,g=At(c,TNe),v=h??"tmp-".concat(l);return f||p==="group"?p==="group"?d.createElement(o,Ge({key:v},g,{title:u}),u6(f,t,n)):d.createElement(i,Ge({key:v},g,{title:u}),u6(f,t,n)):p==="divider"?d.createElement(a,Ge({key:v},g)):d.createElement(r,Ge({key:v},g,{extra:m}),u,(!!m||m===0)&&d.createElement("span",{className:"".concat(n,"-item-extra")},m))}return null}).filter(function(s){return s})}function EH(e,t,n,r,o){var i=e,a=z({divider:oD,item:Q1,group:iD,submenu:Y$},r);return t&&(i=u6(t,a,o)),rD(i,n)}var RNe=["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"],rh=[],INe=d.forwardRef(function(e,t){var n,r=e,o=r.prefixCls,i=o===void 0?"rc-menu":o,a=r.rootClassName,s=r.style,l=r.className,c=r.tabIndex,u=c===void 0?0:c,f=r.items,h=r.children,p=r.direction,m=r.id,g=r.mode,v=g===void 0?"vertical":g,b=r.inlineCollapsed,y=r.disabled,S=r.disabledOverflow,w=r.subMenuOpenDelay,E=w===void 0?.1:w,C=r.subMenuCloseDelay,x=C===void 0?.1:C,_=r.forceSubMenuRender,P=r.defaultOpenKeys,O=r.openKeys,I=r.activeKey,M=r.defaultActiveFirst,T=r.selectable,D=T===void 0?!0:T,A=r.multiple,j=A===void 0?!1:A,k=r.defaultSelectedKeys,F=r.selectedKeys,V=r.onSelect,W=r.onDeselect,K=r.inlineIndent,L=K===void 0?24:K,Q=r.motion,ee=r.defaultMotions,re=r.triggerSubMenuAction,ie=re===void 0?"hover":re,G=r.builtinPlacements,X=r.itemIcon,ne=r.expandIcon,le=r.overflowedIndicator,ce=le===void 0?"...":le,oe=r.overflowedIndicatorPopupClassName,se=r.getPopupContainer,fe=r.onClick,te=r.onOpenChange,he=r.onKeyDown;r.openAnimation,r.openTransitionName;var pe=r._internalRenderMenuItem,Oe=r._internalRenderSubMenuItem,Me=r._internalComponents,Se=At(r,RNe),ye=d.useMemo(function(){return[EH(h,f,rh,Me,i),EH(h,f,rh,{},i)]},[h,f,Me]),ve=$e(ye,2),be=ve[0],Pe=ve[1],Ne=d.useState(!1),U=$e(Ne,2),H=U[0],q=U[1],me=d.useRef(),Ce=uNe(m),ue=p==="rtl",Le=xn(P,{value:O,postState:function(en){return en||rh}}),He=$e(Le,2),ge=He[0],De=He[1],qe=function(en){var un=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function rr(){De(en),te==null||te(en)}un?_i.flushSync(rr):rr()},Fe=d.useState(ge),Ke=$e(Fe,2),Ue=Ke[0],Ve=Ke[1],Tt=d.useRef(!1),et=d.useMemo(function(){return(v==="inline"||v==="vertical")&&b?["vertical",b]:[v,!1]},[v,b]),st=$e(et,2),yt=st[0],gt=st[1],Lt=yt==="inline",St=d.useState(yt),wt=$e(St,2),Nt=wt[0],Be=wt[1],We=d.useState(gt),je=$e(We,2),Xe=je[0],pt=je[1];d.useEffect(function(){Be(yt),pt(gt),Tt.current&&(Lt?De(Ue):qe(rh))},[yt,gt]);var vt=d.useState(0),Mt=$e(vt,2),Et=Mt[0],ft=Mt[1],dt=Et>=be.length-1||Nt!=="horizontal"||S;d.useEffect(function(){Lt&&Ve(ge)},[ge]),d.useEffect(function(){return Tt.current=!0,function(){Tt.current=!1}},[]);var Rt=lNe(),Ct=Rt.registerPath,Wt=Rt.unregisterPath,at=Rt.refreshOverflowKeys,$t=Rt.isSubPathKey,Bt=Rt.getKeyPath,xt=Rt.getKeys,bt=Rt.getSubPathKeys,Ft=d.useMemo(function(){return{registerPath:Ct,unregisterPath:Wt}},[Ct,Wt]),Re=d.useMemo(function(){return{isSubPathKey:$t}},[$t]);d.useEffect(function(){at(dt?rh:be.slice(Et+1).map(function(tr){return tr.key}))},[Et,dt]);var It=xn(I||M&&((n=be[0])===null||n===void 0?void 0:n.key),{value:I}),tt=$e(It,2),Ot=tt[0],Pt=tt[1],pn=fy(function(tr){Pt(tr)}),Pn=fy(function(){Pt(void 0)});d.useImperativeHandle(t,function(){return{list:me.current,focus:function(en){var un,rr=xt(),Qt=l6(rr,Ce),Jt=Qt.elements,Rn=Qt.key2element,er=Qt.element2key,$r=eD(me.current,Jt),ao=Ot??($r[0]?er.get($r[0]):(un=be.find(function(Fn){return!Fn.props.disabled}))===null||un===void 0?void 0:un.key),Bn=Rn.get(ao);if(ao&&Bn){var Yr;Bn==null||(Yr=Bn.focus)===null||Yr===void 0||Yr.call(Bn,en)}}}});var $=xn(k||[],{value:F,postState:function(en){return Array.isArray(en)?en:en==null?rh:[en]}}),R=$e($,2),J=R[0],Ee=R[1],ke=function(en){if(D){var un=en.key,rr=J.includes(un),Qt;j?rr?Qt=J.filter(function(Rn){return Rn!==un}):Qt=[].concat(Ze(J),[un]):Qt=[un],Ee(Qt);var Jt=z(z({},en),{},{selectedKeys:Qt});rr?W==null||W(Jt):V==null||V(Jt)}!j&&ge.length&&Nt!=="inline"&&qe(rh)},Je=fy(function(tr){fe==null||fe(X2(tr)),ke(tr)}),Dt=fy(function(tr,en){var un=ge.filter(function(Qt){return Qt!==tr});if(en)un.push(tr);else if(Nt!=="inline"){var rr=bt(tr);un=un.filter(function(Qt){return!rr.has(Qt)})}dl(ge,un,!0)||qe(un,!0)}),an=function(en,un){var rr=un??!ge.includes(en);Dt(en,rr)},En=iNe(Nt,Ot,ue,Ce,me,xt,Bt,Pt,an,he);d.useEffect(function(){q(!0)},[]);var Cr=d.useMemo(function(){return{_internalRenderMenuItem:pe,_internalRenderSubMenuItem:Oe}},[pe,Oe]),ur=Nt!=="horizontal"||S?be:be.map(function(tr,en){return d.createElement(qb,{key:tr.key,overflowDisabled:en>Et},tr)}),Nr=d.createElement(ql,Ge({id:m,ref:me,prefixCls:"".concat(i,"-overflow"),component:"ul",itemComponent:Q1,className:xe(i,"".concat(i,"-root"),"".concat(i,"-").concat(Nt),l,Z(Z({},"".concat(i,"-inline-collapsed"),Xe),"".concat(i,"-rtl"),ue),a),dir:p,style:s,role:"menu",tabIndex:u,data:ur,renderRawItem:function(en){return en},renderRawRest:function(en){var un=en.length,rr=un?be.slice(-un):null;return d.createElement(Y$,{eventKey:c6,title:ce,disabled:dt,internalPopupClose:un===0,popupClassName:oe},rr)},maxCount:Nt!=="horizontal"||S?ql.INVALIDATE:ql.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(en){ft(en)},onKeyDown:En},Se));return d.createElement(ZA.Provider,{value:Cr},d.createElement(woe.Provider,{value:Ce},d.createElement(qb,{prefixCls:i,rootClassName:a,mode:Nt,openKeys:ge,rtl:ue,disabled:y,motion:H?Q:null,defaultMotions:H?ee:null,activeKey:Ot,onActive:pn,onInactive:Pn,selectedKeys:J,inlineIndent:L,subMenuOpenDelay:E,subMenuCloseDelay:x,forceSubMenuRender:_,builtinPlacements:G,triggerSubMenuAction:ie,getPopupContainer:se,itemIcon:X,expandIcon:ne,onItemClick:Je,onOpenChange:Dt},d.createElement(Poe.Provider,{value:Re},Nr),d.createElement("div",{style:{display:"none"},"aria-hidden":!0},d.createElement(_oe.Provider,{value:Ft},Pe)))))}),kv=INe;kv.Item=Q1;kv.SubMenu=Y$;kv.ItemGroup=iD;kv.Divider=oD;var kNe={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"},NNe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:kNe}))},ANe=d.forwardRef(NNe),DNe={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"},jNe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:DNe}))},qg=d.forwardRef(jNe);const koe=d.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),FNe=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:o,headerHeight:i,headerPadding:a,headerColor:s,footerPadding:l,fontSize:c,bodyBg:u,headerBg:f}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:u,"&, *":{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:i,padding:a,color:s,lineHeight:_e(i),background:f,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:l,color:r,fontSize:c,background:o},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},Noe=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:o,controlHeightSM:i,marginXXS:a,colorTextLightSolid:s,colorBgContainer:l}=e,c=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${c}px`,headerColor:o,footerPadding:`${i}px ${c}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+a*2,triggerBg:"#002140",triggerColor:s,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:l,lightTriggerBg:l,lightTriggerColor:o}},Aoe=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],Doe=Kn("Layout",e=>[FNe(e)],Noe,{deprecatedTokens:Aoe}),LNe=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:o,antCls:i,triggerHeight:a,triggerColor:s,triggerBg:l,headerHeight:c,zeroTriggerWidth:u,zeroTriggerHeight:f,borderRadiusLG:h,lightSiderBg:p,lightTriggerColor:m,lightTriggerBg:g,bodyBg:v}=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,[`${i}-menu${i}-menu-inline-collapsed`]:{width:"auto"}},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:a,color:s,lineHeight:_e(a),textAlign:"center",background:l,cursor:"pointer",transition:`all ${r}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:c,insetInlineEnd:e.calc(u).mul(-1).equal(),zIndex:1,width:u,height:f,color:s,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderRadius:`0 ${_e(h)} ${_e(h)} 0`,cursor:"pointer",transition:`background ${o} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${o}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(u).mul(-1).equal(),borderRadius:`${_e(h)} 0 0 ${_e(h)}`}}},"&-light":{background:p,[`${t}-trigger`]:{color:m,background:g},[`${t}-zero-width-trigger`]:{color:m,background:g,border:`1px solid ${v}`,borderInlineStart:0}}}}},BNe=Kn(["Layout","Sider"],e=>[LNe(e)],Noe,{deprecatedTokens:Aoe});var zNe=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 o=0,r=Object.getOwnPropertySymbols(e);o!Number.isNaN(Number.parseFloat(e))&&isFinite(e),X$=d.createContext({}),UNe=(()=>{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})(),joe=d.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:o,children:i,defaultCollapsed:a=!1,theme:s="dark",style:l={},collapsible:c=!1,reverseArrow:u=!1,width:f=200,collapsedWidth:h=80,zeroWidthTriggerStyle:p,breakpoint:m,onCollapse:g,onBreakpoint:v}=e,b=zNe(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:y}=d.useContext(koe),[S,w]=d.useState("collapsed"in e?e.collapsed:a),[E,C]=d.useState(!1);d.useEffect(()=>{"collapsed"in e&&w(e.collapsed)},[e.collapsed]);const x=(X,ne)=>{"collapsed"in e||w(X),g==null||g(X,ne)},{getPrefixCls:_,direction:P}=d.useContext(Yt),O=_("layout-sider",n),[I,M,T]=BNe(O),D=d.useRef(null);D.current=X=>{C(X.matches),v==null||v(X.matches),S!==X.matches&&x(X.matches,"responsive")},d.useEffect(()=>{function X(le){return D.current(le)}let ne;if(typeof window<"u"){const{matchMedia:le}=window;if(le&&m&&m in _H){ne=le(`screen and (max-width: ${_H[m]})`);try{ne.addEventListener("change",X)}catch{ne.addListener(X)}X(ne)}}return()=>{try{ne==null||ne.removeEventListener("change",X)}catch{ne==null||ne.removeListener(X)}}},[m]),d.useEffect(()=>{const X=UNe("ant-sider-");return y.addSider(X),()=>y.removeSider(X)},[]);const A=()=>{x(!S,"clickTrigger")},j=Yn(b,["collapsed"]),k=S?h:f,F=HNe(k)?`${k}px`:String(k),V=parseFloat(String(h||0))===0?d.createElement("span",{onClick:A,className:xe(`${O}-zero-width-trigger`,`${O}-zero-width-trigger-${u?"right":"left"}`),style:p},o||d.createElement(ANe,null)):null,W=P==="rtl"==!u,Q={expanded:W?d.createElement(nd,null):d.createElement(qg,null),collapsed:W?d.createElement(qg,null):d.createElement(nd,null)}[S?"collapsed":"expanded"],ee=o!==null?V||d.createElement("div",{className:`${O}-trigger`,onClick:A,style:{width:F}},o||Q):null,re=Object.assign(Object.assign({},l),{flex:`0 0 ${F}`,maxWidth:F,minWidth:F,width:F}),ie=xe(O,`${O}-${s}`,{[`${O}-collapsed`]:!!S,[`${O}-has-trigger`]:c&&o!==null&&!V,[`${O}-below`]:!!E,[`${O}-zero-width`]:parseFloat(F)===0},r,M,T),G=d.useMemo(()=>({siderCollapsed:S}),[S]);return I(d.createElement(X$.Provider,{value:G},d.createElement("aside",Object.assign({className:ie},j,{style:re,ref:t}),d.createElement("div",{className:`${O}-children`},i),c||E&&V?ee:null)))});var WNe={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"},VNe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:WNe}))},aD=d.forwardRef(VNe);const Q2=d.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var KNe=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 o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,className:n,dashed:r}=e,o=KNe(e,["prefixCls","className","dashed"]),{getPrefixCls:i}=d.useContext(Yt),a=i("menu",t),s=xe({[`${a}-item-divider-dashed`]:!!r},n);return d.createElement(oD,Object.assign({className:s},o))},Loe=e=>{var t;const{className:n,children:r,icon:o,title:i,danger:a,extra:s}=e,{prefixCls:l,firstLevel:c,direction:u,disableMenuItemTitleTooltip:f,inlineCollapsed:h}=d.useContext(Q2),p=S=>{const w=r==null?void 0:r[0],E=d.createElement("span",{className:xe(`${l}-title-content`,{[`${l}-title-content-with-extra`]:!!s||s===0})},r);return(!o||d.isValidElement(r)&&r.type==="span")&&r&&S&&c&&typeof w=="string"?d.createElement("div",{className:`${l}-inline-collapsed-noicon`},w.charAt(0)):E},{siderCollapsed:m}=d.useContext(X$);let g=i;typeof i>"u"?g=c?r:"":i===!1&&(g="");const v={title:g};!m&&!h&&(v.title=null,v.open=!1);const b=ai(r).length;let y=d.createElement(Q1,Object.assign({},Yn(e,["title","icon","danger"]),{className:xe({[`${l}-item-danger`]:a,[`${l}-item-only-child`]:(o?b+1:b)===1},n),title:typeof i=="string"?i:void 0}),Zo(o,{className:xe(d.isValidElement(o)?(t=o.props)===null||t===void 0?void 0:t.className:"",`${l}-item-icon`)}),p(h));return f||(y=d.createElement(xa,Object.assign({},v,{placement:u==="rtl"?"left":"right",classNames:{root:`${l}-inline-collapsed-tooltip`}}),y)),y};var qNe=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 o=0,r=Object.getOwnPropertySymbols(e);o{const{children:n}=e,r=qNe(e,["children"]),o=d.useContext(J2),i=d.useMemo(()=>Object.assign(Object.assign({},o),r),[o,r.prefixCls,r.mode,r.selectable,r.rootClassName]),a=C_e(n),s=mc(t,a?Af(n):null);return d.createElement(J2.Provider,{value:i},d.createElement(ic,{space:!0},a?d.cloneElement(n,{ref:s}):n))}),GNe=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:i,lineType:a,itemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${_e(i)} ${a} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:s},[`> ${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"}}}},YNe=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(${_e(r(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${_e(n)})`}}}}},$H=e=>Object.assign({},rc(e)),PH=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,subMenuItemSelectedColor:i,groupTitleColor:a,itemBg:s,subMenuItemBg:l,itemSelectedBg:c,activeBarHeight:u,activeBarWidth:f,activeBarBorderWidth:h,motionDurationSlow:p,motionEaseInOut:m,motionEaseOut:g,itemPaddingInline:v,motionDurationMid:b,itemHoverColor:y,lineType:S,colorSplit:w,itemDisabledColor:E,dangerItemColor:C,dangerItemHoverColor:x,dangerItemSelectedColor:_,dangerItemActiveBg:P,dangerItemSelectedBg:O,popupBg:I,itemHoverBg:M,itemActiveBg:T,menuSubMenuBg:D,horizontalItemSelectedColor:A,horizontalItemSelectedBg:j,horizontalItemBorderRadius:k,horizontalItemHoverBg:F}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:s,[`&${n}-root:focus-visible`]:Object.assign({},$H(e)),[`${n}-item`]:{"&-group-title, &-extra":{color:a}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:i},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},$H(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${E} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:y}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:M},"&:active":{backgroundColor:T}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:M},"&:active":{backgroundColor:T}}},[`${n}-item-danger`]:{color:C,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:x}},[`&${n}-item:active`]:{background:P}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:_},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:c,[`&${n}-item-danger`]:{backgroundColor:O}},[`&${n}-submenu > ${n}`]:{backgroundColor:D},[`&${n}-popup > ${n}`]:{backgroundColor:I},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:I},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:h,marginTop:e.calc(h).mul(-1).equal(),marginBottom:0,borderRadius:k,"&::after":{position:"absolute",insetInline:v,bottom:0,borderBottom:`${_e(u)} solid transparent`,transition:`border-color ${p} ${m}`,content:'""'},"&:hover, &-active, &-open":{background:F,"&::after":{borderBottomWidth:u,borderBottomColor:A}},"&-selected":{color:A,backgroundColor:j,"&:hover":{backgroundColor:j},"&::after":{borderBottomWidth:u,borderBottomColor:A}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${_e(h)} ${S} ${w}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:l},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${_e(f)} solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${b} ${g}`,`opacity ${b} ${g}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:_}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${b} ${m}`,`opacity ${b} ${m}`].join(",")}}}}}},OH=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:i,marginXS:a,itemMarginBlock:s,itemWidth:l,itemPaddingInline:c}=e,u=e.calc(i).add(o).add(a).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:_e(n),paddingInline:c,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:s,width:l},[`> ${t}-item, > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:_e(n)},[`${t}-item-group-list ${t}-submenu-title, ${t}-submenu-title`]:{paddingInlineEnd:u}}},XNe=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:i,controlHeightLG:a,motionEaseOut:s,paddingXL:l,itemMarginInline:c,fontSizeLG:u,motionDurationFast:f,motionDurationSlow:h,paddingXS:p,boxShadowSecondary:m,collapsedWidth:g,collapsedIconSize:v}=e,b={height:r,lineHeight:_e(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},OH(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},OH(e)),{boxShadow:m})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${_e(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 ${h}`,`background ${h}`,`padding ${f} ${s}`].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`]:b,[`& ${t}-item-group-title`]:{paddingInlineStart:l}},[`${t}-item`]:b}},{[`${t}-inline-collapsed`]:{width:g,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:u,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% - ${_e(e.calc(v).div(2).equal())} - ${_e(c)})`,textOverflow:"clip",[` ${t}-submenu-arrow, ${t}-submenu-expand-icon `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:v,lineHeight:_e(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:o}},[`${t}-item-group-title`]:Object.assign(Object.assign({},wa),{paddingInline:p})}}]},MH=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:i,iconCls:a,iconSize:s,iconMarginInlineEnd:l}=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) ${o}`].join(","),[`${t}-item-icon, ${a}`]:{minWidth:s,fontSize:s,transition:[`font-size ${r} ${i}`,`margin ${n} ${o}`,`color ${n}`].join(","),"+ span":{marginInlineStart:l,opacity:1,transition:[`opacity ${n} ${o}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},Fp()),[`&${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"}}}},TH=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:i,menuArrowOffset:a}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:i,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(i).mul(.6).equal(),height:e.calc(i).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:o,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${_e(e.calc(a).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${_e(a)})`}}}}},QNe=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:i,motionEaseInOut:a,paddingXS:s,padding:l,colorSplit:c,lineWidth:u,zIndexPopup:f,borderRadiusLG:h,subMenuItemBorderRadius:p,menuArrowSize:m,menuArrowOffset:g,lineType:v,groupTitleLineHeight:b,groupTitleFontSize:y}=e;return[{"":{[n]:Object.assign(Object.assign({},nc()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Qn(e)),nc()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${o} 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:`${_e(s)} ${_e(l)}`,fontSize:y,lineHeight:b,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`,`padding ${i} ${a}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${o} ${a}`,`padding ${o} ${a}`].join(",")},[`${n}-title-content`]:{transition:`color ${o}`,"&-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:c,borderStyle:v,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),MH(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${_e(e.calc(r).mul(2).equal())} ${_e(l)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:f,borderRadius:h,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:h},MH(e)),TH(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:p},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${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}}}),TH(e)),{[`&-inline-collapsed ${n}-submenu-arrow, &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${_e(g)})`},"&::after":{transform:`rotate(45deg) translateX(${_e(e.calc(g).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${_e(e.calc(m).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${_e(e.calc(g).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${_e(g)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},JNe=e=>{var t,n,r;const{colorPrimary:o,colorError:i,colorTextDisabled:a,colorErrorBg:s,colorText:l,colorTextDescription:c,colorBgContainer:u,colorFillAlter:f,colorFillContent:h,lineWidth:p,lineWidthBold:m,controlItemBgActive:g,colorBgTextHover:v,controlHeightLG:b,lineHeight:y,colorBgElevated:S,marginXXS:w,padding:E,fontSize:C,controlHeightSM:x,fontSizeLG:_,colorTextLightSolid:P,colorErrorHover:O}=e,I=(t=e.activeBarWidth)!==null&&t!==void 0?t:0,M=(n=e.activeBarBorderWidth)!==null&&n!==void 0?n:p,T=(r=e.itemMarginInline)!==null&&r!==void 0?r:e.marginXXS,D=new Un(P).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:l,itemColor:l,colorItemTextHover:l,itemHoverColor:l,colorItemTextHoverHorizontal:o,horizontalItemHoverColor:o,colorGroupTitle:c,groupTitleColor:c,colorItemTextSelected:o,itemSelectedColor:o,subMenuItemSelectedColor:o,colorItemTextSelectedHorizontal:o,horizontalItemSelectedColor:o,colorItemBg:u,itemBg:u,colorItemBgHover:v,itemHoverBg:v,colorItemBgActive:h,itemActiveBg:g,colorSubItemBg:f,subMenuItemBg:f,colorItemBgSelected:g,itemSelectedBg:g,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:I,colorActiveBarHeight:m,activeBarHeight:m,colorActiveBarBorderSize:p,activeBarBorderWidth:M,colorItemTextDisabled:a,itemDisabledColor:a,colorDangerItemText:i,dangerItemColor:i,colorDangerItemTextHover:i,dangerItemHoverColor:i,colorDangerItemTextSelected:i,dangerItemSelectedColor:i,colorDangerItemBgActive:s,dangerItemActiveBg:s,colorDangerItemBgSelected:s,dangerItemSelectedBg:s,itemMarginInline:T,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:b,groupTitleLineHeight:y,collapsedWidth:b*2,popupBg:S,itemMarginBlock:w,itemPaddingInline:E,horizontalLineHeight:`${b*1.15}px`,iconSize:C,iconMarginInlineEnd:x-C,collapsedIconSize:_,groupTitleFontSize:C,darkItemDisabledColor:new Un(P).setA(.25).toRgbString(),darkItemColor:D,darkDangerItemColor:i,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:P,darkItemSelectedBg:o,darkDangerItemSelectedBg:i,darkItemHoverBg:"transparent",darkGroupTitleColor:D,darkItemHoverColor:P,darkDangerItemHoverColor:O,darkDangerItemSelectedColor:P,darkDangerItemActiveBg:i,itemWidth:I?`calc(100% + ${M}px)`:`calc(100% - ${T*2}px)`}},ZNe=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 Kn("Menu",o=>{const{colorBgElevated:i,controlHeightLG:a,fontSize:s,darkItemColor:l,darkDangerItemColor:c,darkItemBg:u,darkSubMenuItemBg:f,darkItemSelectedColor:h,darkItemSelectedBg:p,darkDangerItemSelectedBg:m,darkItemHoverBg:g,darkGroupTitleColor:v,darkItemHoverColor:b,darkItemDisabledColor:y,darkDangerItemHoverColor:S,darkDangerItemSelectedColor:w,darkDangerItemActiveBg:E,popupBg:C,darkPopupBg:x}=o,_=o.calc(s).div(7).mul(5).equal(),P=kn(o,{menuArrowSize:_,menuHorizontalHeight:o.calc(a).mul(1.15).equal(),menuArrowOffset:o.calc(_).mul(.25).equal(),menuSubMenuBg:i,calc:o.calc,popupBg:C}),O=kn(P,{itemColor:l,itemHoverColor:b,groupTitleColor:v,itemSelectedColor:h,itemBg:u,popupBg:x,subMenuItemBg:f,itemActiveBg:"transparent",itemSelectedBg:p,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:g,itemDisabledColor:y,dangerItemColor:c,dangerItemHoverColor:S,dangerItemSelectedColor:w,dangerItemActiveBg:E,dangerItemSelectedBg:m,menuSubMenuBg:f,horizontalItemSelectedColor:h,horizontalItemSelectedBg:p});return[QNe(P),GNe(P),XNe(P),PH(P,"light"),PH(O,"dark"),YNe(P),U1(P),Yc(P,"slide-up"),Yc(P,"slide-down"),Mv(P,"zoom-big")]},JNe,{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)},zoe=e=>{var t;const{popupClassName:n,icon:r,title:o,theme:i}=e,a=d.useContext(Q2),{prefixCls:s,inlineCollapsed:l,theme:c}=a,u=Iv();let f;if(!r)f=l&&!u.length&&o&&typeof o=="string"?d.createElement("div",{className:`${s}-inline-collapsed-noicon`},o.charAt(0)):d.createElement("span",{className:`${s}-title-content`},o);else{const m=d.isValidElement(o)&&o.type==="span";f=d.createElement(d.Fragment,null,Zo(r,{className:xe(d.isValidElement(r)?(t=r.props)===null||t===void 0?void 0:t.className:"",`${s}-item-icon`)}),m?o:d.createElement("span",{className:`${s}-title-content`},o))}const h=d.useMemo(()=>Object.assign(Object.assign({},a),{firstLevel:!1}),[a]),[p]=vl("Menu");return d.createElement(Q2.Provider,{value:h},d.createElement(Y$,Object.assign({},Yn(e,["icon"]),{title:f,popupClassName:xe(s,n,`${s}-${i||c}`),popupStyle:Object.assign({zIndex:p},e.popupStyle)})))};var e5e=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 o=0,r=Object.getOwnPropertySymbols(e);o{var n;const r=d.useContext(J2),o=r||{},{getPrefixCls:i,getPopupContainer:a,direction:s,menu:l}=d.useContext(Yt),c=i(),{prefixCls:u,className:f,style:h,theme:p="light",expandIcon:m,_internalDisableMenuItemTitleTooltip:g,inlineCollapsed:v,siderCollapsed:b,rootClassName:y,mode:S,selectable:w,onClick:E,overflowedIndicatorPopupClassName:C}=e,x=e5e(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),_=Yn(x,["collapsedWidth"]);(n=o.validator)===null||n===void 0||n.call(o,{mode:S});const P=An(function(){var L;E==null||E.apply(void 0,arguments),(L=o.onClick)===null||L===void 0||L.call(o)}),O=o.mode||S,I=w??o.selectable,M=v??b,T={horizontal:{motionName:`${c}-slide-up`},inline:Ug(c),other:{motionName:`${c}-zoom-big`}},D=i("menu",u||o.prefixCls),A=Mr(D),[j,k,F]=ZNe(D,A,!r),V=xe(`${D}-${p}`,l==null?void 0:l.className,f),W=d.useMemo(()=>{var L,Q;if(typeof m=="function"||XT(m))return m||null;if(typeof o.expandIcon=="function"||XT(o.expandIcon))return o.expandIcon||null;if(typeof(l==null?void 0:l.expandIcon)=="function"||XT(l==null?void 0:l.expandIcon))return(l==null?void 0:l.expandIcon)||null;const ee=(L=m??(o==null?void 0:o.expandIcon))!==null&&L!==void 0?L:l==null?void 0:l.expandIcon;return Zo(ee,{className:xe(`${D}-submenu-expand-icon`,d.isValidElement(ee)?(Q=ee.props)===null||Q===void 0?void 0:Q.className:void 0)})},[m,o==null?void 0:o.expandIcon,l==null?void 0:l.expandIcon,D]),K=d.useMemo(()=>({prefixCls:D,inlineCollapsed:M||!1,direction:s,firstLevel:!0,theme:p,mode:O,disableMenuItemTitleTooltip:g}),[D,M,s,g,p]);return j(d.createElement(J2.Provider,{value:null},d.createElement(Q2.Provider,{value:K},d.createElement(kv,Object.assign({getPopupContainer:a,overflowedIndicator:d.createElement(aD,null),overflowedIndicatorPopupClassName:xe(D,`${D}-${p}`,C),mode:O,selectable:I,onClick:P},_,{inlineCollapsed:M,style:Object.assign(Object.assign({},l==null?void 0:l.style),h),className:V,prefixCls:D,direction:s,defaultMotions:T,expandIcon:W,ref:t,rootClassName:xe(y,k,o.rootClassName,F,A),_internalComponents:t5e})))))}),vc=d.forwardRef((e,t)=>{const n=d.useRef(null),r=d.useContext(X$);return d.useImperativeHandle(t,()=>({menu:n.current,focus:o=>{var i;(i=n.current)===null||i===void 0||i.focus(o)}})),d.createElement(n5e,Object.assign({ref:n},e,r))});vc.Item=Loe;vc.SubMenu=zoe;vc.Divider=Foe;vc.ItemGroup=iD;const r5e=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:o}=e,i=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${i}`]:{[`&${i}-danger:not(${i}-disabled)`]:{color:r,"&:hover":{color:o,backgroundColor:r}}}}}},o5e=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:o,sizePopupArrow:i,antCls:a,iconCls:s,motionDurationMid:l,paddingBlock:c,fontSize:u,dropdownEdgeChildPadding:f,colorTextDisabled:h,fontSizeIcon:p,controlPaddingHorizontal:m,colorBgElevated:g}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(i).div(2).sub(o).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${a}-btn`]:{[`& > ${s}-down, & > ${a}-btn-icon > ${s}-down`]:{fontSize:p}},[`${t}-wrap`]:{position:"relative",[`${a}-btn > ${s}-down`]:{fontSize:p},[`${s}-down::before`]:{transition:`transform ${l}`}},[`${t}-wrap-open`]:{[`${s}-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:_$},[`&${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:P$},[`&${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:$$},[`&${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:O$}}},JA(e,g,{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({},Qn(e)),{[n]:Object.assign(Object.assign({padding:f,listStyleType:"none",backgroundColor:g,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},Ka(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${_e(c)} ${_e(m)}`,color:e.colorTextDescription,transition:`all ${l}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:u,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 ${l}`,"&: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:`${_e(c)} ${_e(m)}`,color:e.colorText,fontWeight:"normal",fontSize:u,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${l}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},Ka(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:h,cursor:"not-allowed","&:hover":{color:h,backgroundColor:g,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${_e(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:p,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${_e(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(m).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:h,backgroundColor:g,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[Yc(e,"slide-up"),Yc(e,"slide-down"),Wg(e,"move-up"),Wg(e,"move-down"),Mv(e,"zoom-big")]]},i5e=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},K$({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),V$(e)),a5e=Kn("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:o}=e,i=kn(e,{menuCls:`${o}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[o5e(i),r5e(i)]},i5e,{resetStyle:!1}),Q$=e=>{var t;const{menu:n,arrow:r,prefixCls:o,children:i,trigger:a,disabled:s,dropdownRender:l,getPopupContainer:c,overlayClassName:u,rootClassName:f,overlayStyle:h,open:p,onOpenChange:m,visible:g,onVisibleChange:v,mouseEnterDelay:b=.15,mouseLeaveDelay:y=.1,autoAdjustOverflow:S=!0,placement:w="",overlay:E,transitionName:C}=e,{getPopupContainer:x,getPrefixCls:_,direction:P,dropdown:O}=d.useContext(Yt);nu();const I=d.useMemo(()=>{const se=_();return C!==void 0?C:w.includes("top")?`${se}-slide-down`:`${se}-slide-up`},[_,w,C]),M=d.useMemo(()=>w?w.includes("Center")?w.slice(0,w.indexOf("Center")):w:P==="rtl"?"bottomRight":"bottomLeft",[w,P]),T=_("dropdown",o),D=Mr(T),[A,j,k]=a5e(T,D),[,F]=Ho(),V=d.Children.only(Q8e(i)?d.createElement("span",null,i):i),W=Zo(V,{className:xe(`${T}-trigger`,{[`${T}-rtl`]:P==="rtl"},V.props.className),disabled:(t=V.props.disabled)!==null&&t!==void 0?t:s}),K=s?[]:a,L=!!(K!=null&&K.includes("contextMenu")),[Q,ee]=xn(!1,{value:p??g}),re=An(se=>{m==null||m(se,{source:"trigger"}),v==null||v(se),ee(se)}),ie=xe(u,f,j,k,D,O==null?void 0:O.className,{[`${T}-rtl`]:P==="rtl"}),G=hoe({arrowPointAtCenter:typeof r=="object"&&r.pointAtCenter,autoAdjustOverflow:S,offset:F.marginXXS,arrowWidth:r?F.sizePopupArrow:0,borderRadius:F.borderRadius}),X=d.useCallback(()=>{n!=null&&n.selectable&&(n!=null&&n.multiple)||(m==null||m(!1,{source:"menu"}),ee(!1))},[n==null?void 0:n.selectable,n==null?void 0:n.multiple]),ne=()=>{let se;return n!=null&&n.items?se=d.createElement(vc,Object.assign({},n)):typeof E=="function"?se=E():se=E,l&&(se=l(se)),se=d.Children.only(typeof se=="string"?d.createElement("span",null,se):se),d.createElement(Boe,{prefixCls:`${T}-menu`,rootClassName:xe(k,D),expandIcon:d.createElement("span",{className:`${T}-menu-submenu-arrow`},d.createElement(nd,{className:`${T}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:X,validator:fe=>{}},se)},[le,ce]=vl("Dropdown",h==null?void 0:h.zIndex);let oe=d.createElement(Coe,Object.assign({alignPoint:L},Yn(e,["rootClassName"]),{mouseEnterDelay:b,mouseLeaveDelay:y,visible:Q,builtinPlacements:G,arrow:!!r,overlayClassName:ie,prefixCls:T,getPopupContainer:c||x,transitionName:I,trigger:K,overlay:ne,placement:M,onVisibleChange:re,overlayStyle:Object.assign(Object.assign(Object.assign({},O==null?void 0:O.style),h),{zIndex:le})}),W);return le&&(oe=d.createElement(B1.Provider,{value:ce},oe)),A(oe)},s5e=jf(Q$,"align",void 0,"dropdown",e=>e),l5e=e=>d.createElement(s5e,Object.assign({},e),d.createElement("span",null));Q$._InternalPanelDoNotUseOrYouWillBeFired=l5e;var Hoe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ro,function(){var n=1e3,r=6e4,o=36e5,i="millisecond",a="second",s="minute",l="hour",c="day",u="week",f="month",h="quarter",p="year",m="date",g="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(D){var A=["th","st","nd","rd"],j=D%100;return"["+D+(A[(j-20)%10]||A[j]||A[0])+"]"}},S=function(D,A,j){var k=String(D);return!k||k.length>=A?D:""+Array(A+1-k.length).join(j)+D},w={s:S,z:function(D){var A=-D.utcOffset(),j=Math.abs(A),k=Math.floor(j/60),F=j%60;return(A<=0?"+":"-")+S(k,2,"0")+":"+S(F,2,"0")},m:function D(A,j){if(A.date()1)return D(W[0])}else{var K=A.name;C[K]=A,F=K}return!k&&F&&(E=F),F||!k&&E},O=function(D,A){if(_(D))return D.clone();var j=typeof A=="object"?A:{};return j.date=D,j.args=arguments,new M(j)},I=w;I.l=P,I.i=_,I.w=function(D,A){return O(D,{locale:A.$L,utc:A.$u,x:A.$x,$offset:A.$offset})};var M=function(){function D(j){this.$L=P(j.locale,null,!0),this.parse(j),this.$x=this.$x||j.x||{},this[x]=!0}var A=D.prototype;return A.parse=function(j){this.$d=function(k){var F=k.date,V=k.utc;if(F===null)return new Date(NaN);if(I.u(F))return new Date;if(F instanceof Date)return new Date(F);if(typeof F=="string"&&!/Z$/i.test(F)){var W=F.match(v);if(W){var K=W[2]-1||0,L=(W[7]||"0").substring(0,3);return V?new Date(Date.UTC(W[1],K,W[3]||1,W[4]||0,W[5]||0,W[6]||0,L)):new Date(W[1],K,W[3]||1,W[4]||0,W[5]||0,W[6]||0,L)}}return new Date(F)}(j),this.init()},A.init=function(){var j=this.$d;this.$y=j.getFullYear(),this.$M=j.getMonth(),this.$D=j.getDate(),this.$W=j.getDay(),this.$H=j.getHours(),this.$m=j.getMinutes(),this.$s=j.getSeconds(),this.$ms=j.getMilliseconds()},A.$utils=function(){return I},A.isValid=function(){return this.$d.toString()!==g},A.isSame=function(j,k){var F=O(j);return this.startOf(k)<=F&&F<=this.endOf(k)},A.isAfter=function(j,k){return O(j)25){var u=a(this).startOf(r).add(1,r).date(c),f=a(this).endOf(n);if(u.isBefore(f))return 1}var h=a(this).startOf(r).date(c).startOf(n).subtract(1,"millisecond"),p=this.diff(h,n,!0);return p<0?a(this).startOf("week").week():Math.ceil(p)},s.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}})})(Goe);var d5e=Goe.exports;const sD=Fr(d5e);var Yoe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ro,function(){return function(n,r){r.prototype.weekYear=function(){var o=this.month(),i=this.week(),a=this.year();return i===1&&o===11?a+1:o===0&&i>=52?a-1:a}}})})(Yoe);var f5e=Yoe.exports;const h5e=Fr(f5e);var Xoe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ro,function(){return function(n,r){var o=r.prototype,i=o.format;o.format=function(a){var s=this,l=this.$locale();if(!this.isValid())return i.bind(this)(a);var c=this.$utils(),u=(a||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(f){switch(f){case"Q":return Math.ceil((s.$M+1)/3);case"Do":return l.ordinal(s.$D);case"gggg":return s.weekYear();case"GGGG":return s.isoWeekYear();case"wo":return l.ordinal(s.week(),"W");case"w":case"ww":return c.s(s.week(),f==="w"?1:2,"0");case"W":case"WW":return c.s(s.isoWeek(),f==="W"?1:2,"0");case"k":case"kk":return c.s(String(s.$H===0?24:s.$H),f==="k"?1:2,"0");case"X":return Math.floor(s.$d.getTime()/1e3);case"x":return s.$d.getTime();case"z":return"["+s.offsetName()+"]";case"zzz":return"["+s.offsetName("long")+"]";default:return f}});return i.bind(this)(u)}}})})(Xoe);var p5e=Xoe.exports;const Qoe=Fr(p5e);var Joe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ro,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d/,i=/\d\d/,a=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,l={},c=function(v){return(v=+v)+(v>68?1900:2e3)},u=function(v){return function(b){this[v]=+b}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=function(b){if(!b||b==="Z")return 0;var y=b.match(/([+-]|\d\d)/g),S=60*y[1]+(+y[2]||0);return S===0?0:y[0]==="+"?-S:S}(v)}],h=function(v){var b=l[v];return b&&(b.indexOf?b:b.s.concat(b.f))},p=function(v,b){var y,S=l.meridiem;if(S){for(var w=1;w<=24;w+=1)if(v.indexOf(S(w,0,b))>-1){y=w>12;break}}else y=v===(b?"pm":"PM");return y},m={A:[s,function(v){this.afternoon=p(v,!1)}],a:[s,function(v){this.afternoon=p(v,!0)}],Q:[o,function(v){this.month=3*(v-1)+1}],S:[o,function(v){this.milliseconds=100*+v}],SS:[i,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[a,u("seconds")],ss:[a,u("seconds")],m:[a,u("minutes")],mm:[a,u("minutes")],H:[a,u("hours")],h:[a,u("hours")],HH:[a,u("hours")],hh:[a,u("hours")],D:[a,u("day")],DD:[i,u("day")],Do:[s,function(v){var b=l.ordinal,y=v.match(/\d+/);if(this.day=y[0],b)for(var S=1;S<=31;S+=1)b(S).replace(/\[|\]/g,"")===v&&(this.day=S)}],w:[a,u("week")],ww:[i,u("week")],M:[a,u("month")],MM:[i,u("month")],MMM:[s,function(v){var b=h("months"),y=(h("monthsShort")||b.map(function(S){return S.slice(0,3)})).indexOf(v)+1;if(y<1)throw new Error;this.month=y%12||y}],MMMM:[s,function(v){var b=h("months").indexOf(v)+1;if(b<1)throw new Error;this.month=b%12||b}],Y:[/[+-]?\d+/,u("year")],YY:[i,function(v){this.year=c(v)}],YYYY:[/\d{4}/,u("year")],Z:f,ZZ:f};function g(v){var b,y;b=v,y=l&&l.formats;for(var S=(v=b.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(O,I,M){var T=M&&M.toUpperCase();return I||y[M]||n[M]||y[T].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(D,A,j){return A||j.slice(1)})})).match(r),w=S.length,E=0;E-1)return new Date((F==="X"?1e3:1)*k);var K=g(F)(k),L=K.year,Q=K.month,ee=K.day,re=K.hours,ie=K.minutes,G=K.seconds,X=K.milliseconds,ne=K.zone,le=K.week,ce=new Date,oe=ee||(L||Q?1:ce.getDate()),se=L||ce.getFullYear(),fe=0;L&&!Q||(fe=Q>0?Q-1:ce.getMonth());var te,he=re||0,pe=ie||0,Oe=G||0,Me=X||0;return ne?new Date(Date.UTC(se,fe,oe,he,pe,Oe,Me+60*ne.offset*1e3)):V?new Date(Date.UTC(se,fe,oe,he,pe,Oe,Me)):(te=new Date(se,fe,oe,he,pe,Oe,Me),le&&(te=W(te).week(le).toDate()),te)}catch{return new Date("")}}(C,P,x,y),this.init(),T&&T!==!0&&(this.$L=this.locale(T).$L),M&&C!=this.format(P)&&(this.$d=new Date("")),l={}}else if(P instanceof Array)for(var D=P.length,A=1;A<=D;A+=1){_[1]=P[A-1];var j=y.apply(this,_);if(j.isValid()){this.$d=j.$d,this.$L=j.$L,this.init();break}A===D&&(this.$d=new Date(""))}else w.call(this,E)}}})})(Joe);var m5e=Joe.exports;const Zoe=Fr(m5e);qn.extend(Zoe);qn.extend(Qoe);qn.extend(Voe);qn.extend(qoe);qn.extend(sD);qn.extend(h5e);qn.extend(function(e,t){var n=t.prototype,r=n.format;n.format=function(i){var a=(i||"").replace("Wo","wo");return r.bind(this)(a)}});var g5e={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},oh=function(t){var n=g5e[t];return n||t.split("_")[0]},eie={getNow:function(){var t=qn();return typeof t.tz=="function"?t.tz():t},getFixedDate:function(t){return qn(t,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(t){return t.endOf("month")},getWeekDay:function(t){var n=t.locale("en");return n.weekday()+n.localeData().firstDayOfWeek()},getYear:function(t){return t.year()},getMonth:function(t){return t.month()},getDate:function(t){return t.date()},getHour:function(t){return t.hour()},getMinute:function(t){return t.minute()},getSecond:function(t){return t.second()},getMillisecond:function(t){return t.millisecond()},addYear:function(t,n){return t.add(n,"year")},addMonth:function(t,n){return t.add(n,"month")},addDate:function(t,n){return t.add(n,"day")},setYear:function(t,n){return t.year(n)},setMonth:function(t,n){return t.month(n)},setDate:function(t,n){return t.date(n)},setHour:function(t,n){return t.hour(n)},setMinute:function(t,n){return t.minute(n)},setSecond:function(t,n){return t.second(n)},setMillisecond:function(t,n){return t.millisecond(n)},isAfter:function(t,n){return t.isAfter(n)},isValidate:function(t){return t.isValid()},locale:{getWeekFirstDay:function(t){return qn().locale(oh(t)).localeData().firstDayOfWeek()},getWeekFirstDate:function(t,n){return n.locale(oh(t)).weekday(0)},getWeek:function(t,n){return n.locale(oh(t)).week()},getShortWeekDays:function(t){return qn().locale(oh(t)).localeData().weekdaysMin()},getShortMonths:function(t){return qn().locale(oh(t)).localeData().monthsShort()},format:function(t,n,r){return n.locale(oh(t)).format(r)},parse:function(t,n,r){for(var o=oh(t),i=0;i2&&arguments[2]!==void 0?arguments[2]:"0",r=String(e);r.length2&&arguments[2]!==void 0?arguments[2]:[],r=d.useState([!1,!1]),o=$e(r,2),i=o[0],a=o[1],s=function(u,f){a(function(h){return Uy(h,f,u)})},l=d.useMemo(function(){return i.map(function(c,u){if(c)return!0;var f=e[u];return f?!!(!n[u]&&!f||f&&t(f,{activeIndex:u})):!1})},[e,i,t,n]);return[l,s]}function sie(e,t,n,r,o){var i="",a=[];return e&&a.push(o?"hh":"HH"),t&&a.push("mm"),n&&a.push("ss"),i=a.join(":"),r&&(i+=".SSS"),o&&(i+=" A"),i}function y5e(e,t,n,r,o,i){var a=e.fieldDateTimeFormat,s=e.fieldDateFormat,l=e.fieldTimeFormat,c=e.fieldMonthFormat,u=e.fieldYearFormat,f=e.fieldWeekFormat,h=e.fieldQuarterFormat,p=e.yearFormat,m=e.cellYearFormat,g=e.cellQuarterFormat,v=e.dayFormat,b=e.cellDateFormat,y=sie(t,n,r,o,i);return z(z({},e),{},{fieldDateTimeFormat:a||"YYYY-MM-DD ".concat(y),fieldDateFormat:s||"YYYY-MM-DD",fieldTimeFormat:l||y,fieldMonthFormat:c||"YYYY-MM",fieldYearFormat:u||"YYYY",fieldWeekFormat:f||"gggg-wo",fieldQuarterFormat:h||"YYYY-[Q]Q",yearFormat:p||"YYYY",cellYearFormat:m||"YYYY",cellQuarterFormat:g||"[Q]Q",cellDateFormat:b||v||"D"})}function lie(e,t){var n=t.showHour,r=t.showMinute,o=t.showSecond,i=t.showMillisecond,a=t.use12Hours;return de.useMemo(function(){return y5e(e,n,r,o,i,a)},[e,n,r,o,i,a])}function L0(e,t,n){return n??t.some(function(r){return e.includes(r)})}var b5e=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function S5e(e){var t=Z$(e,b5e),n=e.format,r=e.picker,o=null;return n&&(o=n,Array.isArray(o)&&(o=o[0]),o=Ht(o)==="object"?o.format:o),r==="time"&&(t.format=o),[t,o]}function C5e(e){return e&&typeof e=="string"}function cie(e,t,n,r){return[e,t,n,r].some(function(o){return o!==void 0})}function uie(e,t,n,r,o){var i=t,a=n,s=r;if(!e&&!i&&!a&&!s&&!o)i=!0,a=!0,s=!0;else if(e){var l,c,u,f=[i,a,s].some(function(m){return m===!1}),h=[i,a,s].some(function(m){return m===!0}),p=f?!0:!h;i=(l=i)!==null&&l!==void 0?l:p,a=(c=a)!==null&&c!==void 0?c:p,s=(u=s)!==null&&u!==void 0?u:p}return[i,a,s,o]}function die(e){var t=e.showTime,n=S5e(e),r=$e(n,2),o=r[0],i=r[1],a=t&&Ht(t)==="object"?t:{},s=z(z({defaultOpenValue:a.defaultOpenValue||a.defaultValue},o),a),l=s.showMillisecond,c=s.showHour,u=s.showMinute,f=s.showSecond,h=cie(c,u,f,l),p=uie(h,c,u,f,l),m=$e(p,3);return c=m[0],u=m[1],f=m[2],[s,z(z({},s),{},{showHour:c,showMinute:u,showSecond:f,showMillisecond:l}),s.format,i]}function fie(e,t,n,r,o){var i=e==="time";if(e==="datetime"||i){for(var a=r,s=rie(e,o,null),l=s,c=[t,n],u=0;u1&&(a=t.addDate(a,-7)),a}function mi(e,t){var n=t.generateConfig,r=t.locale,o=t.format;return e?typeof o=="function"?o(e):n.locale.format(r.locale,e,o):""}function Z2(e,t,n){var r=t,o=["getHour","getMinute","getSecond","getMillisecond"],i=["setHour","setMinute","setSecond","setMillisecond"];return i.forEach(function(a,s){n?r=e[a](r,e[o[s]](n)):r=e[a](r,0)}),r}function _5e(e,t,n,r,o){var i=An(function(a,s){return!!(n&&n(a,s)||r&&e.isAfter(r,a)&&!ta(e,t,r,a,s.type)||o&&e.isAfter(a,o)&&!ta(e,t,o,a,s.type))});return i}function $5e(e,t,n){return d.useMemo(function(){var r=rie(e,t,n),o=zp(r),i=o[0],a=Ht(i)==="object"&&i.type==="mask"?i.format:null;return[o.map(function(s){return typeof s=="string"||typeof s=="function"?s:s.format}),a]},[e,t,n])}function P5e(e,t,n){return typeof e[0]=="function"||n?!0:t}function O5e(e,t,n,r){var o=An(function(i,a){var s=z({type:t},a);if(delete s.activeIndex,!e.isValidate(i)||n&&n(i,s))return!0;if((t==="date"||t==="time")&&r){var l,c=a&&a.activeIndex===1?"end":"start",u=((l=r.disabledTime)===null||l===void 0?void 0:l.call(r,i,c,{from:s.from}))||{},f=u.disabledHours,h=u.disabledMinutes,p=u.disabledSeconds,m=u.disabledMilliseconds,g=r.disabledHours,v=r.disabledMinutes,b=r.disabledSeconds,y=f||g,S=h||v,w=p||b,E=e.getHour(i),C=e.getMinute(i),x=e.getSecond(i),_=e.getMillisecond(i);if(y&&y().includes(E)||S&&S(E).includes(C)||w&&w(E,C).includes(x)||m&&m(E,C,x).includes(_))return!0}return!1});return o}function UC(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=d.useMemo(function(){var r=e&&zp(e);return t&&r&&(r[1]=r[1]||r[0]),r},[e,t]);return n}function mie(e,t){var n=e.generateConfig,r=e.locale,o=e.picker,i=o===void 0?"date":o,a=e.prefixCls,s=a===void 0?"rc-picker":a,l=e.styles,c=l===void 0?{}:l,u=e.classNames,f=u===void 0?{}:u,h=e.order,p=h===void 0?!0:h,m=e.components,g=m===void 0?{}:m,v=e.inputRender,b=e.allowClear,y=e.clearIcon,S=e.needConfirm,w=e.multiple,E=e.format,C=e.inputReadOnly,x=e.disabledDate,_=e.minDate,P=e.maxDate,O=e.showTime,I=e.value,M=e.defaultValue,T=e.pickerValue,D=e.defaultPickerValue,A=UC(I),j=UC(M),k=UC(T),F=UC(D),V=i==="date"&&O?"datetime":i,W=V==="time"||V==="datetime",K=W||w,L=S??W,Q=die(e),ee=$e(Q,4),re=ee[0],ie=ee[1],G=ee[2],X=ee[3],ne=lie(r,ie),le=d.useMemo(function(){return fie(V,G,X,re,ne)},[V,G,X,re,ne]),ce=d.useMemo(function(){return z(z({},e),{},{prefixCls:s,locale:ne,picker:i,styles:c,classNames:f,order:p,components:z({input:v},g),clearIcon:w5e(s,b,y),showTime:le,value:A,defaultValue:j,pickerValue:k,defaultPickerValue:F},t==null?void 0:t())},[e]),oe=$5e(V,ne,E),se=$e(oe,2),fe=se[0],te=se[1],he=P5e(fe,C,w),pe=_5e(n,r,x,_,P),Oe=O5e(n,i,pe,le),Me=d.useMemo(function(){return z(z({},ce),{},{needConfirm:L,inputReadOnly:he,disabledDate:pe})},[ce,L,he,pe]);return[Me,V,K,fe,te,Oe]}function M5e(e,t,n){var r=xn(t,{value:e}),o=$e(r,2),i=o[0],a=o[1],s=de.useRef(e),l=de.useRef(),c=function(){zn.cancel(l.current)},u=An(function(){a(s.current),n&&i!==s.current&&n(s.current)}),f=An(function(h,p){c(),s.current=h,h||p?u():l.current=zn(u)});return de.useEffect(function(){return c},[]),[i,f]}function gie(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,o=n.every(function(u){return u})?!1:e,i=M5e(o,t||!1,r),a=$e(i,2),s=a[0],l=a[1];function c(u){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!f.inherit||s)&&l(u,f.force)}return[s,c]}function vie(e){var t=d.useRef();return d.useImperativeHandle(e,function(){var n;return{nativeElement:(n=t.current)===null||n===void 0?void 0:n.nativeElement,focus:function(o){var i;(i=t.current)===null||i===void 0||i.focus(o)},blur:function(){var o;(o=t.current)===null||o===void 0||o.blur()}}}),t}function yie(e,t){return d.useMemo(function(){return e||(t?(yr(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(function(n){var r=$e(n,2),o=r[0],i=r[1];return{label:o,value:i}})):[])},[e,t])}function fD(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=d.useRef(t);r.current=t,Gh(function(){if(e)r.current(e);else{var o=zn(function(){r.current(e)},n);return function(){zn.cancel(o)}}},[e])}function bie(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=d.useState(0),o=$e(r,2),i=o[0],a=o[1],s=d.useState(!1),l=$e(s,2),c=l[0],u=l[1],f=d.useRef([]),h=d.useRef(null),p=d.useRef(null),m=function(w){h.current=w},g=function(w){return h.current===w},v=function(w){u(w)},b=function(w){return w&&(p.current=w),p.current},y=function(w){var E=f.current,C=new Set(E.filter(function(_){return w[_]||t[_]})),x=E[E.length-1]===0?1:0;return C.size>=2||e[x]?null:x};return fD(c||n,function(){c||(f.current=[],m(null))}),d.useEffect(function(){c&&f.current.push(i)},[c,i]),[c,v,b,i,a,y,f.current,m,g]}function T5e(e,t,n,r,o,i){var a=n[n.length-1],s=function(c,u){var f=$e(e,2),h=f[0],p=f[1],m=z(z({},u),{},{from:oie(e,n)});return a===1&&t[0]&&h&&!ta(r,o,h,c,m.type)&&r.isAfter(h,c)||a===0&&t[1]&&p&&!ta(r,o,p,c,m.type)&&r.isAfter(c,p)?!0:i==null?void 0:i(c,m)};return s}function py(e,t,n,r){switch(t){case"date":case"week":return e.addMonth(n,r);case"month":case"quarter":return e.addYear(n,r);case"year":return e.addYear(n,r*10);case"decade":return e.addYear(n,r*100);default:return n}}var JT=[];function Sie(e,t,n,r,o,i,a,s){var l=arguments.length>8&&arguments[8]!==void 0?arguments[8]:JT,c=arguments.length>9&&arguments[9]!==void 0?arguments[9]:JT,u=arguments.length>10&&arguments[10]!==void 0?arguments[10]:JT,f=arguments.length>11?arguments[11]:void 0,h=arguments.length>12?arguments[12]:void 0,p=arguments.length>13?arguments[13]:void 0,m=a==="time",g=i||0,v=function(k){var F=e.getNow();return m&&(F=Z2(e,F)),l[k]||n[k]||F},b=$e(c,2),y=b[0],S=b[1],w=xn(function(){return v(0)},{value:y}),E=$e(w,2),C=E[0],x=E[1],_=xn(function(){return v(1)},{value:S}),P=$e(_,2),O=P[0],I=P[1],M=d.useMemo(function(){var j=[C,O][g];return m?j:Z2(e,j,u[g])},[m,C,O,g,e,u]),T=function(k){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",V=[x,I][g];V(k);var W=[C,O];W[g]=k,f&&(!ta(e,t,C,W[0],a)||!ta(e,t,O,W[1],a))&&f(W,{source:F,range:g===1?"end":"start",mode:r})},D=function(k,F){if(s){var V={date:"month",week:"month",month:"year",quarter:"year"},W=V[a];if(W&&!ta(e,t,k,F,W))return py(e,a,F,-1);if(a==="year"&&k){var K=Math.floor(e.getYear(k)/10),L=Math.floor(e.getYear(F)/10);if(K!==L)return py(e,a,F,-1)}}return F},A=d.useRef(null);return Zn(function(){if(o&&!l[g]){var j=m?null:e.getNow();if(A.current!==null&&A.current!==g?j=[C,O][g^1]:n[g]?j=g===0?n[0]:D(n[0],n[1]):n[g^1]&&(j=n[g^1]),j){h&&e.isAfter(h,j)&&(j=h);var k=s?py(e,a,j,1):j;p&&e.isAfter(k,p)&&(j=s?py(e,a,p,-1):p),T(j,"reset")}}},[o,g,n[g]]),d.useEffect(function(){o?A.current=g:A.current=null},[o,g]),Zn(function(){o&&l&&l[g]&&T(l[g],"reset")},[o,g]),[M,T]}function Cie(e,t){var n=d.useRef(e),r=d.useState({}),o=$e(r,2),i=o[1],a=function(c){return c&&t!==void 0?t:n.current},s=function(c){n.current=c,i({})};return[a,s,a(!0)]}var R5e=[];function wie(e,t,n){var r=function(a){return a.map(function(s){return mi(s,{generateConfig:e,locale:t,format:n[0]})})},o=function(a,s){for(var l=Math.max(a.length,s.length),c=-1,u=0;u2&&arguments[2]!==void 0?arguments[2]:1,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,a=[],s=n>=1?n|0:1,l=e;l<=t;l+=s){var c=o.includes(l);(!c||!r)&&a.push({label:lD(l,i),value:l,disabled:c})}return a}function hD(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t||{},o=r.use12Hours,i=r.hourStep,a=i===void 0?1:i,s=r.minuteStep,l=s===void 0?1:s,c=r.secondStep,u=c===void 0?1:c,f=r.millisecondStep,h=f===void 0?100:f,p=r.hideDisabledOptions,m=r.disabledTime,g=r.disabledHours,v=r.disabledMinutes,b=r.disabledSeconds,y=d.useMemo(function(){return n||e.getNow()},[n,e]),S=d.useCallback(function(F){var V=(m==null?void 0:m(F))||{};return[V.disabledHours||g||WC,V.disabledMinutes||v||WC,V.disabledSeconds||b||WC,V.disabledMilliseconds||WC]},[m,g,v,b]),w=d.useMemo(function(){return S(y)},[y,S]),E=$e(w,4),C=E[0],x=E[1],_=E[2],P=E[3],O=d.useCallback(function(F,V,W,K){var L=VC(0,23,a,p,F()),Q=o?L.map(function(G){return z(z({},G),{},{label:lD(G.value%12||12,2)})}):L,ee=function(X){return VC(0,59,l,p,V(X))},re=function(X,ne){return VC(0,59,u,p,W(X,ne))},ie=function(X,ne,le){return VC(0,999,h,p,K(X,ne,le),3)};return[Q,ee,re,ie]},[p,a,o,h,l,u]),I=d.useMemo(function(){return O(C,x,_,P)},[O,C,x,_,P]),M=$e(I,4),T=M[0],D=M[1],A=M[2],j=M[3],k=function(V,W){var K=function(){return T},L=D,Q=A,ee=j;if(W){var re=S(W),ie=$e(re,4),G=ie[0],X=ie[1],ne=ie[2],le=ie[3],ce=O(G,X,ne,le),oe=$e(ce,4),se=oe[0],fe=oe[1],te=oe[2],he=oe[3];K=function(){return se},L=fe,Q=te,ee=he}var pe=k5e(V,K,L,Q,ee,e);return pe};return[k,T,D,A,j]}function N5e(e){var t=e.mode,n=e.internalMode,r=e.renderExtraFooter,o=e.showNow,i=e.showTime,a=e.onSubmit,s=e.onNow,l=e.invalid,c=e.needConfirm,u=e.generateConfig,f=e.disabledDate,h=d.useContext(yc),p=h.prefixCls,m=h.locale,g=h.button,v=g===void 0?"button":g,b=u.getNow(),y=hD(u,i,b),S=$e(y,1),w=S[0],E=r==null?void 0:r(t),C=f(b,{type:t}),x=function(){if(!C){var D=w(b);s(D)}},_="".concat(p,"-now"),P="".concat(_,"-btn"),O=o&&d.createElement("li",{className:_},d.createElement("a",{className:xe(P,C&&"".concat(P,"-disabled")),"aria-disabled":C,onClick:x},n==="date"?m.today:m.now)),I=c&&d.createElement("li",{className:"".concat(p,"-ok")},d.createElement(v,{disabled:l,onClick:a},m.ok)),M=(O||I)&&d.createElement("ul",{className:"".concat(p,"-ranges")},O,I);return!E&&!M?null:d.createElement("div",{className:"".concat(p,"-footer")},E&&d.createElement("div",{className:"".concat(p,"-footer-extra")},E),M)}function Pie(e,t,n){function r(o,i){var a=o.findIndex(function(l){return ta(e,t,l,i,n)});if(a===-1)return[].concat(Ze(o),[i]);var s=Ze(o);return s.splice(a,1),s}return r}var Hp=d.createContext(null);function tP(){return d.useContext(Hp)}function Nv(e,t){var n=e.prefixCls,r=e.generateConfig,o=e.locale,i=e.disabledDate,a=e.minDate,s=e.maxDate,l=e.cellRender,c=e.hoverValue,u=e.hoverRangeValue,f=e.onHover,h=e.values,p=e.pickerValue,m=e.onSelect,g=e.prevIcon,v=e.nextIcon,b=e.superPrevIcon,y=e.superNextIcon,S=r.getNow(),w={now:S,values:h,pickerValue:p,prefixCls:n,disabledDate:i,minDate:a,maxDate:s,cellRender:l,hoverValue:c,hoverRangeValue:u,onHover:f,locale:o,generateConfig:r,onSelect:m,panelType:t,prevIcon:g,nextIcon:v,superPrevIcon:b,superNextIcon:y};return[w,S]}var vf=d.createContext({});function J1(e){for(var t=e.rowNum,n=e.colNum,r=e.baseDate,o=e.getCellDate,i=e.prefixColumn,a=e.rowClassName,s=e.titleFormat,l=e.getCellText,c=e.getCellClassName,u=e.headerCells,f=e.cellSelection,h=f===void 0?!0:f,p=e.disabledDate,m=tP(),g=m.prefixCls,v=m.panelType,b=m.now,y=m.disabledDate,S=m.cellRender,w=m.onHover,E=m.hoverValue,C=m.hoverRangeValue,x=m.generateConfig,_=m.values,P=m.locale,O=m.onSelect,I=p||y,M="".concat(g,"-cell"),T=d.useContext(vf),D=T.onCellDblClick,A=function(Q){return _.some(function(ee){return ee&&ta(x,P,Q,ee,v)})},j=[],k=0;k1&&arguments[1]!==void 0?arguments[1]:!1;ve(De),v==null||v(De),qe&&be(De)},Ne=function(De,qe){ne(De),qe&&Pe(qe),be(qe,De)},U=function(De){if(Oe(De),Pe(De),X!==w){var qe=["decade","year"],Fe=[].concat(qe,["month"]),Ke={quarter:[].concat(qe,["quarter"]),week:[].concat(Ze(Fe),["week"]),date:[].concat(Ze(Fe),["date"])},Ue=Ke[w]||Fe,Ve=Ue.indexOf(X),Tt=Ue[Ve+1];Tt&&Ne(Tt,De)}},H=d.useMemo(function(){var ge,De;if(Array.isArray(x)){var qe=$e(x,2);ge=qe[0],De=qe[1]}else ge=x;return!ge&&!De?null:(ge=ge||De,De=De||ge,o.isAfter(ge,De)?[De,ge]:[ge,De])},[x,o]),q=cD(_,P,O),me=M[le]||K5e[le]||nP,Ce=d.useContext(vf),ue=d.useMemo(function(){return z(z({},Ce),{},{hideHeader:T})},[Ce,T]),Le="".concat(D,"-panel"),He=Z$(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return d.createElement(vf.Provider,{value:ue},d.createElement("div",{ref:A,tabIndex:l,className:xe(Le,Z({},"".concat(Le,"-rtl"),i==="rtl"))},d.createElement(me,Ge({},He,{showTime:ee,prefixCls:D,locale:L,generateConfig:o,onModeChange:Ne,pickerValue:ye,onPickerValueChange:function(De){Pe(De,!0)},value:he[0],onSelect:U,values:he,cellRender:q,hoverRangeValue:H,hoverValue:C}))))}var ax=d.memo(d.forwardRef(q5e));function G5e(e){var t=e.picker,n=e.multiplePanel,r=e.pickerValue,o=e.onPickerValueChange,i=e.needConfirm,a=e.onSubmit,s=e.range,l=e.hoverValue,c=d.useContext(yc),u=c.prefixCls,f=c.generateConfig,h=d.useCallback(function(y,S){return py(f,t,y,S)},[f,t]),p=d.useMemo(function(){return h(r,1)},[r,h]),m=function(S){o(h(S,-1))},g={onCellDblClick:function(){i&&a()}},v=t==="time",b=z(z({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:v});return s?b.hoverRangeValue=l:b.hoverValue=l,n?d.createElement("div",{className:"".concat(u,"-panels")},d.createElement(vf.Provider,{value:z(z({},g),{},{hideNext:!0})},d.createElement(ax,b)),d.createElement(vf.Provider,{value:z(z({},g),{},{hidePrev:!0})},d.createElement(ax,Ge({},b,{pickerValue:p,onPickerValueChange:m})))):d.createElement(vf.Provider,{value:z({},g)},d.createElement(ax,b))}function IH(e){return typeof e=="function"?e():e}function Y5e(e){var t=e.prefixCls,n=e.presets,r=e.onClick,o=e.onHover;return n.length?d.createElement("div",{className:"".concat(t,"-presets")},d.createElement("ul",null,n.map(function(i,a){var s=i.label,l=i.value;return d.createElement("li",{key:a,onClick:function(){r(IH(l))},onMouseEnter:function(){o(IH(l))},onMouseLeave:function(){o(null)}},s)}))):null}function Mie(e){var t=e.panelRender,n=e.internalMode,r=e.picker,o=e.showNow,i=e.range,a=e.multiple,s=e.activeOffset,l=s===void 0?0:s,c=e.placement,u=e.presets,f=e.onPresetHover,h=e.onPresetSubmit,p=e.onFocus,m=e.onBlur,g=e.onPanelMouseDown,v=e.direction,b=e.value,y=e.onSelect,S=e.isInvalid,w=e.defaultOpenValue,E=e.onOk,C=e.onSubmit,x=d.useContext(yc),_=x.prefixCls,P="".concat(_,"-panel"),O=v==="rtl",I=d.useRef(null),M=d.useRef(null),T=d.useState(0),D=$e(T,2),A=D[0],j=D[1],k=d.useState(0),F=$e(k,2),V=F[0],W=F[1],K=function(pe){pe.offsetWidth&&j(pe.offsetWidth)};d.useEffect(function(){if(i){var he,pe=((he=I.current)===null||he===void 0?void 0:he.offsetWidth)||0,Oe=A-pe;l<=Oe?W(0):W(l+pe-A)}},[A,l,i]);function L(he){return he.filter(function(pe){return pe})}var Q=d.useMemo(function(){return L(zp(b))},[b]),ee=r==="time"&&!Q.length,re=d.useMemo(function(){return ee?L([w]):Q},[ee,Q,w]),ie=ee?w:Q,G=d.useMemo(function(){return re.length?re.some(function(he){return S(he)}):!0},[re,S]),X=function(){ee&&y(w),E(),C()},ne=d.createElement("div",{className:"".concat(_,"-panel-layout")},d.createElement(Y5e,{prefixCls:_,presets:u,onClick:h,onHover:f}),d.createElement("div",null,d.createElement(G5e,Ge({},e,{value:ie})),d.createElement(N5e,Ge({},e,{showNow:a?!1:o,invalid:G,onSubmit:X}))));t&&(ne=t(ne));var le="".concat(P,"-container"),ce="marginLeft",oe="marginRight",se=d.createElement("div",{onMouseDown:g,tabIndex:-1,className:xe(le,"".concat(_,"-").concat(n,"-panel-container")),style:Z(Z({},O?oe:ce,V),O?ce:oe,"auto"),onFocus:p,onBlur:m},ne);if(i){var fe=J$(c,O),te=tie(fe,O);se=d.createElement("div",{onMouseDown:g,ref:M,className:xe("".concat(_,"-range-wrapper"),"".concat(_,"-").concat(r,"-range-wrapper"))},d.createElement("div",{ref:I,className:"".concat(_,"-range-arrow"),style:Z({},te,l)}),d.createElement(Oi,{onResize:K},se))}return se}function Tie(e,t){var n=e.format,r=e.maskFormat,o=e.generateConfig,i=e.locale,a=e.preserveInvalidOnBlur,s=e.inputReadOnly,l=e.required,c=e["aria-required"],u=e.onSubmit,f=e.onFocus,h=e.onBlur,p=e.onInputChange,m=e.onInvalid,g=e.open,v=e.onOpenChange,b=e.onKeyDown,y=e.onChange,S=e.activeHelp,w=e.name,E=e.autoComplete,C=e.id,x=e.value,_=e.invalid,P=e.placeholder,O=e.disabled,I=e.activeIndex,M=e.allHelp,T=e.picker,D=function(L,Q){var ee=o.locale.parse(i.locale,L,[Q]);return ee&&o.isValidate(ee)?ee:null},A=n[0],j=d.useCallback(function(K){return mi(K,{locale:i,format:A,generateConfig:o})},[i,o,A]),k=d.useMemo(function(){return x.map(j)},[x,j]),F=d.useMemo(function(){var K=T==="time"?8:10,L=typeof A=="function"?A(o.getNow()).length:A.length;return Math.max(K,L)+2},[A,T,o]),V=function(L){for(var Q=0;Q=s&&n<=l)return i;var c=Math.min(Math.abs(n-s),Math.abs(n-l));c0?St:wt));var je=We+yt,Xe=wt-St+1;return String(St+(Xe+je-St)%Xe)};switch(De){case"Backspace":case"Delete":qe="",Fe=Ue;break;case"ArrowLeft":qe="",Ve(-1);break;case"ArrowRight":qe="",Ve(1);break;case"ArrowUp":qe="",Fe=Tt(1);break;case"ArrowDown":qe="",Fe=Tt(-1);break;default:isNaN(Number(De))||(qe=K+De,Fe=qe);break}if(qe!==null&&(L(qe),qe.length>=Ke&&(Ve(1),L(""))),Fe!==null){var et=ce.slice(0,pe)+lD(Fe,Ke)+ce.slice(Oe);Se(et.slice(0,a.length))}le({})},ue=d.useRef();Zn(function(){if(!(!T||!a||be.current)){if(!fe.match(ce)){Se(a);return}return se.current.setSelectionRange(pe,Oe),ue.current=zn(function(){se.current.setSelectionRange(pe,Oe)}),function(){zn.cancel(ue.current)}}},[fe,a,T,ce,re,pe,Oe,ne,Se]);var Le=a?{onFocus:U,onBlur:q,onKeyDown:Ce,onMouseDown:Pe,onMouseUp:Ne,onPaste:ve}:{};return d.createElement("div",{ref:oe,className:xe(O,Z(Z({},"".concat(O,"-active"),n&&o),"".concat(O,"-placeholder"),c))},d.createElement(P,Ge({ref:se,"aria-invalid":g,autoComplete:"off"},b,{onKeyDown:me,onBlur:H},Le,{value:ce,onChange:ye})),d.createElement(rP,{type:"suffix",icon:i}),v)}),nAe=["id","prefix","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveOffset","placement","onMouseDown","required","aria-required","autoFocus","tabIndex"],rAe=["index"],oAe=["insetInlineStart","insetInlineEnd"];function iAe(e,t){var n=e.id,r=e.prefix,o=e.clearIcon,i=e.suffixIcon,a=e.separator,s=a===void 0?"~":a,l=e.activeIndex;e.activeHelp,e.allHelp;var c=e.focused;e.onFocus,e.onBlur,e.onKeyDown,e.locale,e.generateConfig;var u=e.placeholder,f=e.className,h=e.style,p=e.onClick,m=e.onClear,g=e.value;e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var v=e.disabled,b=e.invalid;e.inputReadOnly;var y=e.direction;e.onOpenChange;var S=e.onActiveOffset,w=e.placement,E=e.onMouseDown;e.required,e["aria-required"];var C=e.autoFocus,x=e.tabIndex,_=At(e,nAe),P=y==="rtl",O=d.useContext(yc),I=O.prefixCls,M=d.useMemo(function(){if(typeof n=="string")return[n];var se=n||{};return[se.start,se.end]},[n]),T=d.useRef(),D=d.useRef(),A=d.useRef(),j=function(fe){var te;return(te=[D,A][fe])===null||te===void 0?void 0:te.current};d.useImperativeHandle(t,function(){return{nativeElement:T.current,focus:function(fe){if(Ht(fe)==="object"){var te,he=fe||{},pe=he.index,Oe=pe===void 0?0:pe,Me=At(he,rAe);(te=j(Oe))===null||te===void 0||te.focus(Me)}else{var Se;(Se=j(fe??0))===null||Se===void 0||Se.focus()}},blur:function(){var fe,te;(fe=j(0))===null||fe===void 0||fe.blur(),(te=j(1))===null||te===void 0||te.blur()}}});var k=Rie(_),F=d.useMemo(function(){return Array.isArray(u)?u:[u,u]},[u]),V=Tie(z(z({},e),{},{id:M,placeholder:F})),W=$e(V,1),K=W[0],L=J$(w,P),Q=tie(L,P),ee=L==null?void 0:L.toLowerCase().endsWith("right"),re=d.useState({position:"absolute",width:0}),ie=$e(re,2),G=ie[0],X=ie[1],ne=An(function(){var se=j(l);if(se){var fe=se.nativeElement,te=fe.offsetWidth,he=fe.offsetLeft,pe=fe.offsetParent,Oe=(pe==null?void 0:pe.offsetWidth)||0,Me=ee?Oe-te-he:he;X(function(Se){Se.insetInlineStart,Se.insetInlineEnd;var ye=At(Se,oAe);return z(z({},ye),{},Z({width:te},Q,Me))}),S(Me)}});d.useEffect(function(){ne()},[l]);var le=o&&(g[0]&&!v[0]||g[1]&&!v[1]),ce=C&&!v[0],oe=C&&!ce&&!v[1];return d.createElement(Oi,{onResize:ne},d.createElement("div",Ge({},k,{className:xe(I,"".concat(I,"-range"),Z(Z(Z(Z({},"".concat(I,"-focused"),c),"".concat(I,"-disabled"),v.every(function(se){return se})),"".concat(I,"-invalid"),b.some(function(se){return se})),"".concat(I,"-rtl"),P),f),style:h,ref:T,onClick:p,onMouseDown:function(fe){var te=fe.target;te!==D.current.inputElement&&te!==A.current.inputElement&&fe.preventDefault(),E==null||E(fe)}}),r&&d.createElement("div",{className:"".concat(I,"-prefix")},r),d.createElement(h6,Ge({ref:D},K(0),{autoFocus:ce,tabIndex:x,"date-range":"start"})),d.createElement("div",{className:"".concat(I,"-range-separator")},s),d.createElement(h6,Ge({ref:A},K(1),{autoFocus:oe,tabIndex:x,"date-range":"end"})),d.createElement("div",{className:"".concat(I,"-active-bar"),style:G}),d.createElement(rP,{type:"suffix",icon:i}),le&&d.createElement(f6,{icon:o,onClear:m})))}var aAe=d.forwardRef(iAe);function NH(e,t){var n=e??t;return Array.isArray(n)?n:[n,n]}function qC(e){return e===1?"end":"start"}function sAe(e,t){var n=mie(e,function(){var rn=e.disabled,fn=e.allowEmpty,Sn=NH(rn,!1),Dn=NH(fn,!1);return{disabled:Sn,allowEmpty:Dn}}),r=$e(n,6),o=r[0],i=r[1],a=r[2],s=r[3],l=r[4],c=r[5],u=o.prefixCls,f=o.styles,h=o.classNames,p=o.placement,m=o.defaultValue,g=o.value,v=o.needConfirm,b=o.onKeyDown,y=o.disabled,S=o.allowEmpty,w=o.disabledDate,E=o.minDate,C=o.maxDate,x=o.defaultOpen,_=o.open,P=o.onOpenChange,O=o.locale,I=o.generateConfig,M=o.picker,T=o.showNow,D=o.showToday,A=o.showTime,j=o.mode,k=o.onPanelChange,F=o.onCalendarChange,V=o.onOk,W=o.defaultPickerValue,K=o.pickerValue,L=o.onPickerValueChange,Q=o.inputReadOnly,ee=o.suffixIcon,re=o.onFocus,ie=o.onBlur,G=o.presets,X=o.ranges,ne=o.components,le=o.cellRender,ce=o.dateRender,oe=o.monthCellRender,se=o.onClick,fe=vie(t),te=gie(_,x,y,P),he=$e(te,2),pe=he[0],Oe=he[1],Me=function(fn,Sn){(y.some(function(Dn){return!Dn})||!fn)&&Oe(fn,Sn)},Se=Eie(I,O,s,!0,!1,m,g,F,V),ye=$e(Se,5),ve=ye[0],be=ye[1],Pe=ye[2],Ne=ye[3],U=ye[4],H=Pe(),q=bie(y,S,pe),me=$e(q,9),Ce=me[0],ue=me[1],Le=me[2],He=me[3],ge=me[4],De=me[5],qe=me[6],Fe=me[7],Ke=me[8],Ue=function(fn,Sn){ue(!0),re==null||re(fn,{range:qC(Sn??He)})},Ve=function(fn,Sn){ue(!1),ie==null||ie(fn,{range:qC(Sn??He)})},Tt=d.useMemo(function(){if(!A)return null;var rn=A.disabledTime,fn=rn?function(Sn){var Dn=qC(He),cr=oie(H,qe,He);return rn(Sn,Dn,{from:cr})}:void 0;return z(z({},A),{},{disabledTime:fn})},[A,He,H,qe]),et=xn([M,M],{value:j}),st=$e(et,2),yt=st[0],gt=st[1],Lt=yt[He]||M,St=Lt==="date"&&Tt?"datetime":Lt,wt=St===M&&St!=="time",Nt=$ie(M,Lt,T,D,!0),Be=_ie(o,ve,be,Pe,Ne,y,s,Ce,pe,c),We=$e(Be,2),je=We[0],Xe=We[1],pt=T5e(H,y,qe,I,O,w),vt=aie(H,c,S),Mt=$e(vt,2),Et=Mt[0],ft=Mt[1],dt=Sie(I,O,H,yt,pe,He,i,wt,W,K,Tt==null?void 0:Tt.defaultOpenValue,L,E,C),Rt=$e(dt,2),Ct=Rt[0],Wt=Rt[1],at=An(function(rn,fn,Sn){var Dn=Uy(yt,He,fn);if((Dn[0]!==yt[0]||Dn[1]!==yt[1])&>(Dn),k&&Sn!==!1){var cr=Ze(H);rn&&(cr[He]=rn),k(cr,Dn)}}),$t=function(fn,Sn){return Uy(H,Sn,fn)},Bt=function(fn,Sn){var Dn=H;fn&&(Dn=$t(fn,He)),Fe(He);var cr=De(Dn);Ne(Dn),je(He,cr===null),cr===null?Me(!1,{force:!0}):Sn||fe.current.focus({index:cr})},xt=function(fn){var Sn,Dn=fn.target.getRootNode();if(!fe.current.nativeElement.contains((Sn=Dn.activeElement)!==null&&Sn!==void 0?Sn:document.activeElement)){var cr=y.findIndex(function(Uo){return!Uo});cr>=0&&fe.current.focus({index:cr})}Me(!0),se==null||se(fn)},bt=function(){Xe(null),Me(!1,{force:!0})},Ft=d.useState(null),Re=$e(Ft,2),It=Re[0],tt=Re[1],Ot=d.useState(null),Pt=$e(Ot,2),pn=Pt[0],Pn=Pt[1],$=d.useMemo(function(){return pn||H},[H,pn]);d.useEffect(function(){pe||Pn(null)},[pe]);var R=d.useState(0),J=$e(R,2),Ee=J[0],ke=J[1],Je=yie(G,X),Dt=function(fn){Pn(fn),tt("preset")},an=function(fn){var Sn=Xe(fn);Sn&&Me(!1,{force:!0})},En=function(fn){Bt(fn)},Cr=function(fn){Pn(fn?$t(fn,He):null),tt("cell")},ur=function(fn){Me(!0),Ue(fn)},Nr=function(){Le("panel")},tr=function(fn){var Sn=Uy(H,He,fn);Ne(Sn),!v&&!a&&i===St&&Bt(fn)},en=function(){Me(!1)},un=cD(le,ce,oe,qC(He)),rr=H[He]||null,Qt=An(function(rn){return c(rn,{activeIndex:He})}),Jt=d.useMemo(function(){var rn=Jr(o,!1),fn=Yn(o,[].concat(Ze(Object.keys(rn)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]));return fn},[o]),Rn=d.createElement(Mie,Ge({},Jt,{showNow:Nt,showTime:Tt,range:!0,multiplePanel:wt,activeOffset:Ee,placement:p,disabledDate:pt,onFocus:ur,onBlur:Ve,onPanelMouseDown:Nr,picker:M,mode:Lt,internalMode:St,onPanelChange:at,format:l,value:rr,isInvalid:Qt,onChange:null,onSelect:tr,pickerValue:Ct,defaultOpenValue:zp(A==null?void 0:A.defaultOpenValue)[He],onPickerValueChange:Wt,hoverValue:$,onHover:Cr,needConfirm:v,onSubmit:Bt,onOk:U,presets:Je,onPresetHover:Dt,onPresetSubmit:an,onNow:En,cellRender:un})),er=function(fn,Sn){var Dn=$t(fn,Sn);Ne(Dn)},$r=function(){Le("input")},ao=function(fn,Sn){var Dn=qe.length,cr=qe[Dn-1];if(Dn&&cr!==Sn&&v&&!S[cr]&&!Ke(cr)&&H[cr]){fe.current.focus({index:cr});return}Le("input"),Me(!0,{inherit:!0}),He!==Sn&&pe&&!v&&a&&Bt(null,!0),ge(Sn),Ue(fn,Sn)},Bn=function(fn,Sn){if(Me(!1),!v&&Le()==="input"){var Dn=De(H);je(He,Dn===null)}Ve(fn,Sn)},Yr=function(fn,Sn){fn.key==="Tab"&&Bt(null,!0),b==null||b(fn,Sn)},Fn=d.useMemo(function(){return{prefixCls:u,locale:O,generateConfig:I,button:ne.button,input:ne.input}},[u,O,I,ne.button,ne.input]);return Zn(function(){pe&&He!==void 0&&at(null,M,!1)},[pe,He,M]),Zn(function(){var rn=Le();!pe&&rn==="input"&&(Me(!1),Bt(null,!0)),!pe&&a&&!v&&rn==="panel"&&(Me(!0),Bt())},[pe]),d.createElement(yc.Provider,{value:Fn},d.createElement(nie,Ge({},iie(o),{popupElement:Rn,popupStyle:f.popup,popupClassName:h.popup,visible:pe,onClose:en,range:!0}),d.createElement(aAe,Ge({},o,{ref:fe,suffixIcon:ee,activeIndex:Ce||pe?He:null,activeHelp:!!pn,allHelp:!!pn&&It==="preset",focused:Ce,onFocus:ao,onBlur:Bn,onKeyDown:Yr,onSubmit:Bt,value:$,maskFormat:l,onChange:er,onInputChange:$r,format:s,inputReadOnly:Q,disabled:y,open:pe,onOpenChange:Me,onClick:xt,onClear:bt,invalid:Et,onInvalid:ft,onActiveOffset:ke}))))}var lAe=d.forwardRef(sAe);function cAe(e){var t=e.prefixCls,n=e.value,r=e.onRemove,o=e.removeIcon,i=o===void 0?"×":o,a=e.formatDate,s=e.disabled,l=e.maxTagCount,c=e.placeholder,u="".concat(t,"-selector"),f="".concat(t,"-selection"),h="".concat(f,"-overflow");function p(v,b){return d.createElement("span",{className:xe("".concat(f,"-item")),title:typeof v=="string"?v:null},d.createElement("span",{className:"".concat(f,"-item-content")},v),!s&&b&&d.createElement("span",{onMouseDown:function(S){S.preventDefault()},onClick:b,className:"".concat(f,"-item-remove")},i))}function m(v){var b=a(v),y=function(w){w&&w.stopPropagation(),r(v)};return p(b,y)}function g(v){var b="+ ".concat(v.length," ...");return p(b)}return d.createElement("div",{className:u},d.createElement(ql,{prefixCls:h,data:n,renderItem:m,renderRest:g,itemKey:function(b){return a(b)},maxCount:l}),!n.length&&d.createElement("span",{className:"".concat(t,"-selection-placeholder")},c))}var uAe=["id","open","prefix","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","tabIndex","removeIcon"];function dAe(e,t){e.id;var n=e.open,r=e.prefix,o=e.clearIcon,i=e.suffixIcon;e.activeHelp,e.allHelp;var a=e.focused;e.onFocus,e.onBlur,e.onKeyDown;var s=e.locale,l=e.generateConfig,c=e.placeholder,u=e.className,f=e.style,h=e.onClick,p=e.onClear,m=e.internalPicker,g=e.value,v=e.onChange,b=e.onSubmit;e.onInputChange;var y=e.multiple,S=e.maxTagCount;e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var w=e.disabled,E=e.invalid;e.inputReadOnly;var C=e.direction;e.onOpenChange;var x=e.onMouseDown;e.required,e["aria-required"];var _=e.autoFocus,P=e.tabIndex,O=e.removeIcon,I=At(e,uAe),M=C==="rtl",T=d.useContext(yc),D=T.prefixCls,A=d.useRef(),j=d.useRef();d.useImperativeHandle(t,function(){return{nativeElement:A.current,focus:function(G){var X;(X=j.current)===null||X===void 0||X.focus(G)},blur:function(){var G;(G=j.current)===null||G===void 0||G.blur()}}});var k=Rie(I),F=function(G){v([G])},V=function(G){var X=g.filter(function(ne){return ne&&!ta(l,s,ne,G,m)});v(X),n||b()},W=Tie(z(z({},e),{},{onChange:F}),function(ie){var G=ie.valueTexts;return{value:G[0]||"",active:a}}),K=$e(W,2),L=K[0],Q=K[1],ee=!!(o&&g.length&&!w),re=y?d.createElement(d.Fragment,null,d.createElement(cAe,{prefixCls:D,value:g,onRemove:V,formatDate:Q,maxTagCount:S,disabled:w,removeIcon:O,placeholder:c}),d.createElement("input",{className:"".concat(D,"-multiple-input"),value:g.map(Q).join(","),ref:j,readOnly:!0,autoFocus:_,tabIndex:P}),d.createElement(rP,{type:"suffix",icon:i}),ee&&d.createElement(f6,{icon:o,onClear:p})):d.createElement(h6,Ge({ref:j},L(),{autoFocus:_,tabIndex:P,suffixIcon:i,clearIcon:ee&&d.createElement(f6,{icon:o,onClear:p}),showActiveCls:!1}));return d.createElement("div",Ge({},k,{className:xe(D,Z(Z(Z(Z(Z({},"".concat(D,"-multiple"),y),"".concat(D,"-focused"),a),"".concat(D,"-disabled"),w),"".concat(D,"-invalid"),E),"".concat(D,"-rtl"),M),u),style:f,ref:A,onClick:h,onMouseDown:function(G){var X,ne=G.target;ne!==((X=j.current)===null||X===void 0?void 0:X.inputElement)&&G.preventDefault(),x==null||x(G)}}),r&&d.createElement("div",{className:"".concat(D,"-prefix")},r),re)}var fAe=d.forwardRef(dAe);function hAe(e,t){var n=mie(e),r=$e(n,6),o=r[0],i=r[1],a=r[2],s=r[3],l=r[4],c=r[5],u=o,f=u.prefixCls,h=u.styles,p=u.classNames,m=u.order,g=u.defaultValue,v=u.value,b=u.needConfirm,y=u.onChange,S=u.onKeyDown,w=u.disabled,E=u.disabledDate,C=u.minDate,x=u.maxDate,_=u.defaultOpen,P=u.open,O=u.onOpenChange,I=u.locale,M=u.generateConfig,T=u.picker,D=u.showNow,A=u.showToday,j=u.showTime,k=u.mode,F=u.onPanelChange,V=u.onCalendarChange,W=u.onOk,K=u.multiple,L=u.defaultPickerValue,Q=u.pickerValue,ee=u.onPickerValueChange,re=u.inputReadOnly,ie=u.suffixIcon,G=u.removeIcon,X=u.onFocus,ne=u.onBlur,le=u.presets,ce=u.components,oe=u.cellRender,se=u.dateRender,fe=u.monthCellRender,te=u.onClick,he=vie(t);function pe(Qt){return Qt===null?null:K?Qt:Qt[0]}var Oe=Pie(M,I,i),Me=gie(P,_,[w],O),Se=$e(Me,2),ye=Se[0],ve=Se[1],be=function(Jt,Rn,er){if(V){var $r=z({},er);delete $r.range,V(pe(Jt),pe(Rn),$r)}},Pe=function(Jt){W==null||W(pe(Jt))},Ne=Eie(M,I,s,!1,m,g,v,be,Pe),U=$e(Ne,5),H=U[0],q=U[1],me=U[2],Ce=U[3],ue=U[4],Le=me(),He=bie([w]),ge=$e(He,4),De=ge[0],qe=ge[1],Fe=ge[2],Ke=ge[3],Ue=function(Jt){qe(!0),X==null||X(Jt,{})},Ve=function(Jt){qe(!1),ne==null||ne(Jt,{})},Tt=xn(T,{value:k}),et=$e(Tt,2),st=et[0],yt=et[1],gt=st==="date"&&j?"datetime":st,Lt=$ie(T,st,D,A),St=y&&function(Qt,Jt){y(pe(Qt),pe(Jt))},wt=_ie(z(z({},o),{},{onChange:St}),H,q,me,Ce,[],s,De,ye,c),Nt=$e(wt,2),Be=Nt[1],We=aie(Le,c),je=$e(We,2),Xe=je[0],pt=je[1],vt=d.useMemo(function(){return Xe.some(function(Qt){return Qt})},[Xe]),Mt=function(Jt,Rn){if(ee){var er=z(z({},Rn),{},{mode:Rn.mode[0]});delete er.range,ee(Jt[0],er)}},Et=Sie(M,I,Le,[st],ye,Ke,i,!1,L,Q,zp(j==null?void 0:j.defaultOpenValue),Mt,C,x),ft=$e(Et,2),dt=ft[0],Rt=ft[1],Ct=An(function(Qt,Jt,Rn){if(yt(Jt),F&&Rn!==!1){var er=Qt||Le[Le.length-1];F(er,Jt)}}),Wt=function(){Be(me()),ve(!1,{force:!0})},at=function(Jt){!w&&!he.current.nativeElement.contains(document.activeElement)&&he.current.focus(),ve(!0),te==null||te(Jt)},$t=function(){Be(null),ve(!1,{force:!0})},Bt=d.useState(null),xt=$e(Bt,2),bt=xt[0],Ft=xt[1],Re=d.useState(null),It=$e(Re,2),tt=It[0],Ot=It[1],Pt=d.useMemo(function(){var Qt=[tt].concat(Ze(Le)).filter(function(Jt){return Jt});return K?Qt:Qt.slice(0,1)},[Le,tt,K]),pn=d.useMemo(function(){return!K&&tt?[tt]:Le.filter(function(Qt){return Qt})},[Le,tt,K]);d.useEffect(function(){ye||Ot(null)},[ye]);var Pn=yie(le),$=function(Jt){Ot(Jt),Ft("preset")},R=function(Jt){var Rn=K?Oe(me(),Jt):[Jt],er=Be(Rn);er&&!K&&ve(!1,{force:!0})},J=function(Jt){R(Jt)},Ee=function(Jt){Ot(Jt),Ft("cell")},ke=function(Jt){ve(!0),Ue(Jt)},Je=function(Jt){if(Fe("panel"),!(K&>!==T)){var Rn=K?Oe(me(),Jt):[Jt];Ce(Rn),!b&&!a&&i===gt&&Wt()}},Dt=function(){ve(!1)},an=cD(oe,se,fe),En=d.useMemo(function(){var Qt=Jr(o,!1),Jt=Yn(o,[].concat(Ze(Object.keys(Qt)),["onChange","onCalendarChange","style","className","onPanelChange"]));return z(z({},Jt),{},{multiple:o.multiple})},[o]),Cr=d.createElement(Mie,Ge({},En,{showNow:Lt,showTime:j,disabledDate:E,onFocus:ke,onBlur:Ve,picker:T,mode:st,internalMode:gt,onPanelChange:Ct,format:l,value:Le,isInvalid:c,onChange:null,onSelect:Je,pickerValue:dt,defaultOpenValue:j==null?void 0:j.defaultOpenValue,onPickerValueChange:Rt,hoverValue:Pt,onHover:Ee,needConfirm:b,onSubmit:Wt,onOk:ue,presets:Pn,onPresetHover:$,onPresetSubmit:R,onNow:J,cellRender:an})),ur=function(Jt){Ce(Jt)},Nr=function(){Fe("input")},tr=function(Jt){Fe("input"),ve(!0,{inherit:!0}),Ue(Jt)},en=function(Jt){ve(!1),Ve(Jt)},un=function(Jt,Rn){Jt.key==="Tab"&&Wt(),S==null||S(Jt,Rn)},rr=d.useMemo(function(){return{prefixCls:f,locale:I,generateConfig:M,button:ce.button,input:ce.input}},[f,I,M,ce.button,ce.input]);return Zn(function(){ye&&Ke!==void 0&&Ct(null,T,!1)},[ye,Ke,T]),Zn(function(){var Qt=Fe();!ye&&Qt==="input"&&(ve(!1),Wt()),!ye&&a&&!b&&Qt==="panel"&&(ve(!0),Wt())},[ye]),d.createElement(yc.Provider,{value:rr},d.createElement(nie,Ge({},iie(o),{popupElement:Cr,popupStyle:h.popup,popupClassName:p.popup,visible:ye,onClose:Dt}),d.createElement(fAe,Ge({},o,{ref:he,suffixIcon:ie,removeIcon:G,activeHelp:!!tt,allHelp:!!tt&&bt==="preset",focused:De,onFocus:tr,onBlur:en,onKeyDown:un,onSubmit:Wt,value:pn,maskFormat:l,onChange:ur,onInputChange:Nr,internalPicker:i,format:s,inputReadOnly:re,disabled:w,open:ye,onOpenChange:ve,onClick:at,onClear:$t,invalid:vt,onInvalid:function(Jt){pt(Jt,0)}}))))}var pAe=d.forwardRef(hAe);const Iie=d.createContext(null),mAe=Iie.Provider,kie=d.createContext(null),gAe=kie.Provider;var vAe=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],Nie=d.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-checkbox":n,o=e.className,i=e.style,a=e.checked,s=e.disabled,l=e.defaultChecked,c=l===void 0?!1:l,u=e.type,f=u===void 0?"checkbox":u,h=e.title,p=e.onChange,m=At(e,vAe),g=d.useRef(null),v=d.useRef(null),b=xn(c,{value:a}),y=$e(b,2),S=y[0],w=y[1];d.useImperativeHandle(t,function(){return{focus:function(_){var P;(P=g.current)===null||P===void 0||P.focus(_)},blur:function(){var _;(_=g.current)===null||_===void 0||_.blur()},input:g.current,nativeElement:v.current}});var E=xe(r,o,Z(Z({},"".concat(r,"-checked"),S),"".concat(r,"-disabled"),s)),C=function(_){s||("checked"in e||w(_.target.checked),p==null||p({target:z(z({},e),{},{type:f,checked:_.target.checked}),stopPropagation:function(){_.stopPropagation()},preventDefault:function(){_.preventDefault()},nativeEvent:_.nativeEvent}))};return d.createElement("span",{className:E,title:h,style:i,ref:v},d.createElement("input",Ge({},m,{className:"".concat(r,"-input"),ref:g,onChange:C,disabled:s,checked:!!S,type:f})),d.createElement("span",{className:"".concat(r,"-inner")}))});function Aie(e){const t=de.useRef(null),n=()=>{zn.cancel(t.current),t.current=null};return[()=>{n(),t.current=zn(()=>{t.current=null})},i=>{t.current&&(i.stopPropagation(),n()),e==null||e(i)}]}const yAe=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},Qn(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"}})}},bAe=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:o,motionDurationSlow:i,motionDurationMid:a,motionEaseInOutCirc:s,colorBgContainer:l,colorBorder:c,lineWidth:u,colorBgContainerDisabled:f,colorTextDisabled:h,paddingXS:p,dotColorDisabled:m,lineType:g,radioColor:v,radioBgColor:b,calc:y}=e,S=`${t}-inner`,E=y(o).sub(y(4).mul(2)),C=y(1).mul(o).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},Qn(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:`${_e(u)} ${g} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},Qn(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &, &:hover ${S}`]:{borderColor:r},[`${t}-input:focus-visible + ${S}`]:Object.assign({},rc(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:C,height:C,marginBlockStart:y(1).mul(o).div(-2).equal({unit:!0}),marginInlineStart:y(1).mul(o).div(-2).equal({unit:!0}),backgroundColor:v,borderBlockStart:0,borderInlineStart:0,borderRadius:C,transform:"scale(0)",opacity:0,transition:`all ${i} ${s}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:C,height:C,backgroundColor:l,borderColor:c,borderStyle:"solid",borderWidth:u,borderRadius:"50%",transition:`all ${a}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[S]:{borderColor:r,backgroundColor:b,"&::after":{transform:`scale(${e.calc(e.dotSize).div(o).equal()})`,opacity:1,transition:`all ${i} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[S]:{backgroundColor:f,borderColor:c,cursor:"not-allowed","&::after":{backgroundColor:m}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:h,cursor:"not-allowed"},[`&${t}-checked`]:{[S]:{"&::after":{transform:`scale(${y(E).div(o).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:p,paddingInlineEnd:p}})}},SAe=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:o,lineType:i,colorBorder:a,motionDurationSlow:s,motionDurationMid:l,buttonPaddingInline:c,fontSize:u,buttonBg:f,fontSizeLG:h,controlHeightLG:p,controlHeightSM:m,paddingXS:g,borderRadius:v,borderRadiusSM:b,borderRadiusLG:y,buttonCheckedBg:S,buttonSolidCheckedColor:w,colorTextDisabled:E,colorBgContainerDisabled:C,buttonCheckedBgDisabled:x,buttonCheckedColorDisabled:_,colorPrimary:P,colorPrimaryHover:O,colorPrimaryActive:I,buttonSolidCheckedBg:M,buttonSolidCheckedHoverBg:T,buttonSolidCheckedActiveBg:D,calc:A}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:c,paddingBlock:0,color:t,fontSize:u,lineHeight:_e(A(n).sub(A(o).mul(2)).equal()),background:f,border:`${_e(o)} ${i} ${a}`,borderBlockStartWidth:A(o).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:o,cursor:"pointer",transition:[`color ${l}`,`background ${l}`,`box-shadow ${l}`].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:A(o).mul(-1).equal(),insetInlineStart:A(o).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:o,paddingInline:0,backgroundColor:a,transition:`background-color ${s}`,content:'""'}},"&:first-child":{borderInlineStart:`${_e(o)} ${i} ${a}`,borderStartStartRadius:v,borderEndStartRadius:v},"&:last-child":{borderStartEndRadius:v,borderEndEndRadius:v},"&:first-child:last-child":{borderRadius:v},[`${r}-group-large &`]:{height:p,fontSize:h,lineHeight:_e(A(p).sub(A(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y}},[`${r}-group-small &`]:{height:m,paddingInline:A(g).sub(o).equal(),paddingBlock:0,lineHeight:_e(A(m).sub(A(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},"&:hover":{position:"relative",color:P},"&:has(:focus-visible)":Object.assign({},rc(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:P,background:S,borderColor:P,"&::before":{backgroundColor:P},"&:first-child":{borderColor:P},"&:hover":{color:O,borderColor:O,"&::before":{backgroundColor:O}},"&:active":{color:I,borderColor:I,"&::before":{backgroundColor:I}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:w,background:M,borderColor:M,"&:hover":{color:w,background:T,borderColor:T},"&:active":{color:w,background:D,borderColor:D}},"&-disabled":{color:E,backgroundColor:C,borderColor:a,cursor:"not-allowed","&:first-child, &:hover":{color:E,backgroundColor:C,borderColor:a}},[`&-disabled${r}-button-wrapper-checked`]:{color:_,backgroundColor:x,borderColor:a,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},CAe=e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:o,fontSizeLG:i,colorText:a,colorBgContainer:s,colorTextDisabled:l,controlItemBgActiveDisabled:c,colorTextLightSolid:u,colorPrimary:f,colorPrimaryHover:h,colorPrimaryActive:p,colorWhite:m}=e,g=4,v=i,b=t?v-g*2:v-(g+o)*2;return{radioSize:v,dotSize:b,dotColorDisabled:l,buttonSolidCheckedColor:u,buttonSolidCheckedBg:f,buttonSolidCheckedHoverBg:h,buttonSolidCheckedActiveBg:p,buttonBg:s,buttonCheckedBg:s,buttonColor:a,buttonCheckedBgDisabled:c,buttonCheckedColorDisabled:l,buttonPaddingInline:n-o,wrapperMarginInlineEnd:r,radioColor:t?f:m,radioBgColor:t?s:f}},Die=Kn("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${_e(n)} ${t}`,i=kn(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[yAe(i),bAe(i),SAe(i)]},CAe,{unitless:{radioSize:!0,dotSize:!0}});var wAe=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 o=0,r=Object.getOwnPropertySymbols(e);o{var n,r;const o=d.useContext(Iie),i=d.useContext(kie),{getPrefixCls:a,direction:s,radio:l}=d.useContext(Yt),c=d.useRef(null),u=bi(t,c),{isFormItemInput:f}=d.useContext(Io),h=j=>{var k,F;(k=e.onChange)===null||k===void 0||k.call(e,j),(F=o==null?void 0:o.onChange)===null||F===void 0||F.call(o,j)},{prefixCls:p,className:m,rootClassName:g,children:v,style:b,title:y}=e,S=wAe(e,["prefixCls","className","rootClassName","children","style","title"]),w=a("radio",p),E=((o==null?void 0:o.optionType)||i)==="button",C=E?`${w}-button`:w,x=Mr(w),[_,P,O]=Die(w,x),I=Object.assign({},S),M=d.useContext(zo);o&&(I.name=o.name,I.onChange=h,I.checked=e.value===o.value,I.disabled=(n=I.disabled)!==null&&n!==void 0?n:o.disabled),I.disabled=(r=I.disabled)!==null&&r!==void 0?r:M;const T=xe(`${C}-wrapper`,{[`${C}-wrapper-checked`]:I.checked,[`${C}-wrapper-disabled`]:I.disabled,[`${C}-wrapper-rtl`]:s==="rtl",[`${C}-wrapper-in-form-item`]:f,[`${C}-wrapper-block`]:!!(o!=null&&o.block)},l==null?void 0:l.className,m,g,P,O,x),[D,A]=Aie(I.onClick);return _(d.createElement(H1,{component:"Radio",disabled:I.disabled},d.createElement("label",{className:T,style:Object.assign(Object.assign({},l==null?void 0:l.style),b),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:y,onClick:D},d.createElement(Nie,Object.assign({},I,{className:xe(I.className,{[w$]:!E}),type:"radio",prefixCls:C,ref:u,onClick:A})),v!==void 0?d.createElement("span",null,v):null)))},eE=d.forwardRef(xAe),EAe=d.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=d.useContext(Yt),o=N$(),{prefixCls:i,className:a,rootClassName:s,options:l,buttonStyle:c="outline",disabled:u,children:f,size:h,style:p,id:m,optionType:g,name:v=o,defaultValue:b,value:y,block:S=!1,onChange:w,onMouseEnter:E,onMouseLeave:C,onFocus:x,onBlur:_}=e,[P,O]=xn(b,{value:y}),I=d.useCallback(L=>{const Q=P,ee=L.target.value;"value"in e||O(ee),ee!==Q&&(w==null||w(L))},[P,O,w]),M=n("radio",i),T=`${M}-group`,D=Mr(M),[A,j,k]=Die(M,D);let F=f;l&&l.length>0&&(F=l.map(L=>typeof L=="string"||typeof L=="number"?d.createElement(eE,{key:L.toString(),prefixCls:M,disabled:u,value:L,checked:P===L},L):d.createElement(eE,{key:`radio-group-value-options-${L.value}`,prefixCls:M,disabled:L.disabled||u,value:L.value,checked:P===L.value,title:L.title,style:L.style,id:L.id,required:L.required},L.label)));const V=Eo(h),W=xe(T,`${T}-${c}`,{[`${T}-${V}`]:V,[`${T}-rtl`]:r==="rtl",[`${T}-block`]:S},a,s,j,k,D),K=d.useMemo(()=>({onChange:I,value:P,disabled:u,name:v,optionType:g,block:S}),[I,P,u,v,g,S]);return A(d.createElement("div",Object.assign({},Jr(e,{aria:!0,data:!0}),{className:W,style:p,onMouseEnter:E,onMouseLeave:C,onFocus:x,onBlur:_,id:m,ref:t}),d.createElement(mAe,{value:K},F)))}),jie=d.memo(EAe);var _Ae=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 o=0,r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:n}=d.useContext(Yt),{prefixCls:r}=e,o=_Ae(e,["prefixCls"]),i=n("radio",r);return d.createElement(gAe,{value:"button"},d.createElement(eE,Object.assign({prefixCls:i},o,{type:"radio",ref:t})))},p6=d.forwardRef($Ae),qo=eE;qo.Button=p6;qo.Group=jie;qo.__ANT_RADIO=!0;const PAe=10,OAe=20;function MAe(e){const{fullscreen:t,validRange:n,generateConfig:r,locale:o,prefixCls:i,value:a,onChange:s,divRef:l}=e,c=r.getYear(a||r.getNow());let u=c-PAe,f=u+OAe;n&&(u=r.getYear(n[0]),f=r.getYear(n[1])+1);const h=o&&o.year==="年"?"年":"",p=[];for(let m=u;m{let g=r.setYear(a,m);if(n){const[v,b]=n,y=r.getYear(g),S=r.getMonth(g);y===r.getYear(b)&&S>r.getMonth(b)&&(g=r.setMonth(g,r.getMonth(b))),y===r.getYear(v)&&Sl.current})}function TAe(e){const{prefixCls:t,fullscreen:n,validRange:r,value:o,generateConfig:i,locale:a,onChange:s,divRef:l}=e,c=i.getMonth(o||i.getNow());let u=0,f=11;if(r){const[m,g]=r,v=i.getYear(o);i.getYear(g)===v&&(f=i.getMonth(g)),i.getYear(m)===v&&(u=i.getMonth(m))}const h=a.shortMonths||i.locale.getShortMonths(a.locale),p=[];for(let m=u;m<=f;m+=1)p.push({label:h[m],value:m});return d.createElement(Va,{size:n?void 0:"small",className:`${t}-month-select`,value:c,options:p,onChange:m=>{s(i.setMonth(o,m))},getPopupContainer:()=>l.current})}function RAe(e){const{prefixCls:t,locale:n,mode:r,fullscreen:o,onModeChange:i}=e;return d.createElement(jie,{onChange:a=>{let{target:{value:s}}=a;i(s)},value:r,size:o?void 0:"small",className:`${t}-mode-switch`},d.createElement(p6,{value:"month"},n.month),d.createElement(p6,{value:"year"},n.year))}function IAe(e){const{prefixCls:t,fullscreen:n,mode:r,onChange:o,onModeChange:i}=e,a=d.useRef(null),s=d.useContext(Io),l=d.useMemo(()=>Object.assign(Object.assign({},s),{isFormItemInput:!1}),[s]),c=Object.assign(Object.assign({},e),{fullscreen:n,divRef:a});return d.createElement("div",{className:`${t}-header`,ref:a},d.createElement(Io.Provider,{value:l},d.createElement(MAe,Object.assign({},c,{onChange:u=>{o(u,"year")}})),r==="month"&&d.createElement(TAe,Object.assign({},c,{onChange:u=>{o(u,"month")}}))),d.createElement(RAe,Object.assign({},c,{onModeChange:i})))}function Z1(e){return kn(e,{inputAffixPadding:e.paddingXXS})}const eS=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:i,controlHeightLG:a,fontSizeLG:s,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:f,colorFillAlter:h,colorPrimaryHover:p,colorPrimary:m,controlOutlineWidth:g,controlOutline:v,colorErrorOutline:b,colorWarningOutline:y,colorBgContainer:S}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-o,0),paddingBlockSM:Math.max(Math.round((i-n*r)/2*10)/10-o,0),paddingBlockLG:Math.ceil((a-s*l)/2*10)/10-o,paddingInline:c-o,paddingInlineSM:u-o,paddingInlineLG:f-o,addonBg:h,activeBorderColor:m,hoverBorderColor:p,activeShadow:`0 0 0 ${g}px ${v}`,errorActiveShadow:`0 0 0 ${g}px ${b}`,warningActiveShadow:`0 0 0 ${g}px ${y}`,hoverBg:S,activeBg:S,inputFontSize:n,inputFontSizeLG:s,inputFontSizeSM:n}},kAe=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),oP=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({},kAe(kn(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),pD=(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}}),AH=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},pD(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),mD=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},pD(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},oP(e))}),AH(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),AH(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),DH=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),Fie=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${_e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},DH(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),DH(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},oP(e))}})}),gD=(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)}},Lie=(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}}),jH=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Lie(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),vD=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Lie(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},oP(e))}),jH(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),jH(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),FH=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),Bie=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:`${_e(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${_e(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},FH(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),FH(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:`${_e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${_e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${_e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${_e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${_e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${_e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),yD=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),zie=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${_e(t)} ${_e(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},bD=e=>({padding:`${_e(e.paddingBlockSM)} ${_e(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),tS=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${_e(e.paddingBlock)} ${_e(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},yD(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({},zie(e)),"&-sm":Object.assign({},bD(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),Hie=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({},zie(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},bD(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 ${_e(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${_e(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${_e(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:`${_e(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${_e(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"},nc()),{[`${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}}}})}},NAe=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:o}=e,a=o(n).sub(o(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Qn(e)),tS(e)),mD(e)),vD(e)),gD(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"}})}},AAe=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 ${_e(e.inputAffixPadding)}`}}}},DAe=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:s}=e,l=`${t}-affix-wrapper`,c=`${t}-affix-wrapper-disabled`;return{[l]:Object.assign(Object.assign(Object.assign(Object.assign({},tS(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}}}),AAe(e)),{[`${s}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}}),[c]:{[`${s}${t}-password-icon`]:{color:i,cursor:"not-allowed","&:hover":{color:i}}}}},jAe=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Qn(e)),Hie(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}}},Fie(e)),Bie(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}}})})}},FAe=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}}}}},LAe=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}}}}}},BAe=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},SD=Kn("Input",e=>{const t=kn(e,Z1(e));return[NAe(t),LAe(t),DAe(t),jAe(t),FAe(t),BAe(t),Bp(t)]},eS,{resetFont:!1}),eR=(e,t)=>{const{componentCls:n,controlHeight:r}=e,o=t?`${n}-${t}`:"",i=noe(e);return[{[`${n}-multiple${o}`]:{paddingBlock:i.containerPadding,paddingInlineStart:i.basePadding,minHeight:r,[`${n}-selection-item`]:{height:i.itemHeight,lineHeight:_e(i.itemLineHeight)}}}]},zAe=e=>{const{componentCls:t,calc:n,lineWidth:r}=e,o=kn(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),i=kn(e,{fontHeight:n(e.multipleItemHeightLG).sub(n(r).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return[eR(o,"small"),eR(e),eR(i,"large"),{[`${t}${t}-multiple`]:Object.assign(Object.assign({width:"100%",cursor:"text",[`${t}-selector`]:{flex:"auto",padding:0,position:"relative","&:after":{margin:0},[`${t}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:0,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}}},roe(e)),{[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]},HAe=e=>{const{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:o,motionDurationMid:i,cellHoverBg:a,lineWidth:s,lineType:l,colorPrimary:c,cellActiveWithRangeBg:u,colorTextLightSolid:f,colorTextDisabled:h,cellBgDisabled:p,colorFillSecondary:m}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:"translateY(-50%)",content:'""',pointerEvents:"none"},[n]:{position:"relative",zIndex:2,display:"inline-block",minWidth:r,height:r,lineHeight:_e(r),borderRadius:o,transition:`background ${i}`},[`&:hover:not(${t}-in-view):not(${t}-disabled), &:hover:not(${t}-selected):not(${t}-range-start):not(${t}-range-end):not(${t}-disabled)`]:{[n]:{background:a}},[`&-in-view${t}-today ${n}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${_e(s)} ${l} ${c}`,borderRadius:o,content:'""'}},[`&-in-view${t}-in-range, &-in-view${t}-range-start, &-in-view${t}-range-end`]:{position:"relative",[`&:not(${t}-disabled):before`]:{background:u}},[`&-in-view${t}-selected, &-in-view${t}-range-start, &-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${n}`]:{color:f,background:c},[`&${t}-disabled ${n}`]:{background:m}},[`&-in-view${t}-range-start:not(${t}-disabled):before`]:{insetInlineStart:"50%"},[`&-in-view${t}-range-end:not(${t}-disabled):before`]:{insetInlineEnd:"50%"},[`&-in-view${t}-range-start:not(${t}-range-end) ${n}`]:{borderStartStartRadius:o,borderEndStartRadius:o,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o},"&-disabled":{color:h,cursor:"not-allowed",[n]:{background:"transparent"},"&::before":{background:p}},[`&-disabled${t}-today ${n}::before`]:{borderColor:h}}},Uie=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:o,pickerControlIconSize:i,cellWidth:a,paddingSM:s,paddingXS:l,paddingXXS:c,colorBgContainer:u,lineWidth:f,lineType:h,borderRadiusLG:p,colorPrimary:m,colorTextHeading:g,colorSplit:v,pickerControlIconBorderWidth:b,colorIcon:y,textHeight:S,motionDurationMid:w,colorIconHover:E,fontWeightStrong:C,cellHeight:x,pickerCellPaddingVertical:_,colorTextDisabled:P,colorText:O,fontSize:I,motionDurationSlow:M,withoutTimeCellHeight:T,pickerQuarterPanelContentHeight:D,borderRadiusSM:A,colorTextLightSolid:j,cellHoverBg:k,timeColumnHeight:F,timeColumnWidth:V,timeCellHeight:W,controlItemBgActive:K,marginXXS:L,pickerDatePanelPaddingHorizontal:Q,pickerControlIconMargin:ee}=e,re=e.calc(a).mul(7).add(e.calc(Q).mul(2)).equal();return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:u,borderRadius:p,outline:"none","&-focused":{borderColor:m},"&-rtl":{[`${t}-prev-icon, ${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon, ${t}-super-next-icon`]:{transform:"rotate(-135deg)"},[`${t}-time-panel`]:{[`${t}-content`]:{direction:"ltr","> *":{direction:"rtl"}}}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:re},"&-header":{display:"flex",padding:`0 ${_e(l)}`,color:g,borderBottom:`${_e(f)} ${h} ${v}`,"> *":{flex:"none"},button:{padding:0,color:y,lineHeight:_e(S),background:"transparent",border:0,cursor:"pointer",transition:`color ${w}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center","&:empty":{display:"none"}},"> button":{minWidth:"1.6em",fontSize:I,"&:hover":{color:E},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:C,lineHeight:_e(S),"> button":{color:"inherit",fontWeight:"inherit","&:not(:first-child)":{marginInlineStart:l},"&:hover":{color:m}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",width:i,height:i,"&::before":{position:"absolute",top:0,insetInlineStart:0,width:i,height:i,border:"0 solid currentcolor",borderBlockWidth:`${_e(b)} 0`,borderInlineWidth:`${_e(b)} 0`,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:ee,insetInlineStart:ee,display:"inline-block",width:i,height:i,border:"0 solid currentcolor",borderBlockWidth:`${_e(b)} 0`,borderInlineWidth:`${_e(b)} 0`,content:'""'}},"&-prev-icon, &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon, &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:x,fontWeight:"normal"},th:{height:e.calc(x).add(e.calc(_).mul(2)).equal(),color:O,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${_e(_)} 0`,color:P,cursor:"pointer","&-in-view":{color:O}},HAe(e)),"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:e.calc(T).mul(4).equal()},[r]:{padding:`0 ${_e(l)}`}},"&-quarter-panel":{[`${t}-content`]:{height:D}},"&-decade-panel":{[r]:{padding:`0 ${_e(e.calc(l).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${_e(l)}`},[r]:{width:o}},"&-date-panel":{[`${t}-body`]:{padding:`${_e(l)} ${_e(Q)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel":{[`${t}-cell`]:{[`&:hover ${r}, &-selected ${r}, ${r}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${w}`},"&:first-child:before":{borderStartStartRadius:A,borderEndStartRadius:A},"&:last-child:before":{borderStartEndRadius:A,borderEndEndRadius:A}},"&:hover td:before":{background:k},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${n}`]:{"&:before":{background:m},[`&${t}-cell-week`]:{color:new Un(j).setA(.5).toHexString()},[r]:{color:j}}},"&-range-hover td:before":{background:K}}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${_e(l)} ${_e(s)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${_e(f)} ${h} ${v}`},[`${t}-date-panel, ${t}-time-panel`]:{transition:`opacity ${M}`},"&-active":{[`${t}-date-panel, ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",[`${t}-content`]:{display:"flex",flex:"auto",height:F},"&-column":{flex:"1 0 auto",width:V,margin:`${_e(c)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${w}`,overflowX:"hidden","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:e.borderRadiusSM},"&":{scrollbarWidth:"thin",scrollbarColor:`${e.colorTextTertiary} transparent`},"&::after":{display:"block",height:`calc(100% - ${_e(W)})`,content:'""'},"&:not(:first-child)":{borderInlineStart:`${_e(f)} ${h} ${v}`},"&-active":{background:new Un(K).setA(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:L,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(V).sub(e.calc(L).mul(2)).equal(),height:W,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(V).sub(W).div(2).equal(),color:O,lineHeight:_e(W),borderRadius:A,cursor:"pointer",transition:`background ${w}`,"&:hover":{background:k}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:K}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:P,background:"transparent",cursor:"not-allowed"}}}}}}}}},UAe=e=>{const{componentCls:t,textHeight:n,lineWidth:r,paddingSM:o,antCls:i,colorPrimary:a,cellActiveWithRangeBg:s,colorPrimaryBorder:l,lineType:c,colorSplit:u}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${_e(r)} ${c} ${u}`,"&-extra":{padding:`0 ${_e(o)}`,lineHeight:_e(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${_e(r)} ${c} ${u}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:_e(o),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:_e(e.calc(n).sub(e.calc(r).mul(2)).equal()),display:"inline-block"},[`${t}-now-btn-disabled`]:{pointerEvents:"none",color:e.colorTextDisabled},[`${t}-preset > ${i}-tag-blue`]:{color:a,background:s,borderColor:l,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:"auto"}}}}},Wie=e=>{const{componentCls:t,controlHeightLG:n,paddingXXS:r,padding:o}=e;return{pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerYearMonthCellWidth:e.calc(n).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(n).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(r).add(e.calc(r).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(o).add(e.calc(r).div(2)).equal()}},Vie=e=>{const{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:r,controlHeightLG:o,paddingXXS:i,lineWidth:a}=e,s=i*2,l=a*2,c=Math.min(n-s,n-l),u=Math.min(r-s,r-l),f=Math.min(o-s,o-l);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(i/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new Un(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new Un(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:o*1.4,timeColumnHeight:28*8,timeCellHeight:28,cellWidth:r*1.5,cellHeight:r,textHeight:o,withoutTimeCellHeight:o*1.65,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:c,multipleItemHeightSM:u,multipleItemHeightLG:f,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}},WAe=e=>Object.assign(Object.assign(Object.assign(Object.assign({},eS(e)),Vie(e)),V$(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}),VAe=e=>{const{componentCls:t}=e;return{[t]:[Object.assign(Object.assign(Object.assign({},mD(e)),vD(e)),gD(e)),{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${_e(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${_e(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${_e(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},tR=(e,t,n,r)=>{const o=e.calc(n).add(2).equal(),i=e.max(e.calc(t).sub(o).div(2).equal(),0),a=e.max(e.calc(t).sub(o).sub(i).equal(),0);return{padding:`${_e(i)} ${_e(r)} ${_e(a)}`}},KAe=e=>{const{componentCls:t,colorError:n,colorWarning:r}=e;return{[`${t}:not(${t}-disabled):not([disabled])`]:{[`&${t}-status-error`]:{[`${t}-active-bar`]:{background:n}},[`&${t}-status-warning`]:{[`${t}-active-bar`]:{background:r}}}}},qAe=e=>{const{componentCls:t,antCls:n,controlHeight:r,paddingInline:o,lineWidth:i,lineType:a,colorBorder:s,borderRadius:l,motionDurationMid:c,colorTextDisabled:u,colorTextPlaceholder:f,controlHeightLG:h,fontSizeLG:p,controlHeightSM:m,paddingInlineSM:g,paddingXS:v,marginXS:b,colorTextDescription:y,lineWidthBold:S,colorPrimary:w,motionDurationSlow:E,zIndexPopup:C,paddingXXS:x,sizePopupArrow:_,colorBgElevated:P,borderRadiusLG:O,boxShadowSecondary:I,borderRadiusSM:M,colorSplit:T,cellHoverBg:D,presetsWidth:A,presetsMaxWidth:j,boxShadowPopoverArrow:k,fontHeight:F,fontHeightLG:V,lineHeightLG:W}=e;return[{[t]:Object.assign(Object.assign(Object.assign({},Qn(e)),tR(e,r,F,o)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:l,transition:`border ${c}, box-shadow ${c}, background ${c}`,[`${t}-prefix`]:{marginInlineEnd:e.inputAffixPadding},[`${t}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",color:"inherit",fontSize:e.fontSize,lineHeight:e.lineHeight,transition:`all ${c}`},yD(f)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:u,cursor:"not-allowed"}}),"&-placeholder":{"> input":{color:f}}},"&-large":Object.assign(Object.assign({},tR(e,h,V,o)),{[`${t}-input > input`]:{fontSize:p,lineHeight:W}}),"&-small":Object.assign({},tR(e,m,F,g)),[`${t}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(v).div(2).equal(),color:u,lineHeight:1,pointerEvents:"none",transition:`opacity ${c}, color ${c}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:b}}},[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:u,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${c}, color ${c}`,"> *":{verticalAlign:"top"},"&:hover":{color:y}},"&:hover":{[`${t}-clear`]:{opacity:1},[`${t}-suffix:not(:last-child)`]:{opacity:0}},[`${t}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:p,color:u,fontSize:p,verticalAlign:"top",cursor:"default",[`${t}-focused &`]:{color:y},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${t}-active-bar`]:{bottom:e.calc(i).mul(-1).equal(),height:S,background:w,opacity:0,transition:`all ${E} ease-out`,pointerEvents:"none"},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:"center",padding:`0 ${_e(v)}`,lineHeight:1}},"&-range, &-multiple":{[`${t}-clear`]:{insetInlineEnd:o},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:g}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},Qn(e)),Uie(e)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:C,[`&${t}-dropdown-hidden`]:{display:"none"},"&-rtl":{direction:"rtl"},[`&${t}-dropdown-placement-bottomLeft, &${t}-dropdown-placement-bottomRight`]:{[`${t}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${t}-dropdown-placement-topLeft, &${t}-dropdown-placement-topRight`]:{[`${t}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topLeft, &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topRight, &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topLeft, &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topRight`]:{animationName:P$},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomLeft, &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomRight, &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomLeft, &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomRight`]:{animationName:_$},[`&${n}-slide-up-leave ${t}-panel-container`]:{pointerEvents:"none"},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topLeft, &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topRight`]:{animationName:O$},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomLeft, &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:$$},[`${t}-panel > ${t}-time-panel`]:{paddingTop:x},[`${t}-range-wrapper`]:{display:"flex",position:"relative"},[`${t}-range-arrow`]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(o).mul(1.5).equal(),boxSizing:"content-box",transition:`all ${E} ease-out`},doe(e,P,k)),{"&:before":{insetInlineStart:e.calc(o).mul(1.5).equal()}}),[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:P,borderRadius:O,boxShadow:I,transition:`margin ${E}`,display:"inline-block",pointerEvents:"auto",[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:A,maxWidth:j,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:v,borderInlineEnd:`${_e(i)} ${a} ${T}`,li:Object.assign(Object.assign({},wa),{borderRadius:M,paddingInline:v,paddingBlock:e.calc(m).sub(F).div(2).equal(),cursor:"pointer",transition:`all ${E}`,"+ li":{marginTop:b},"&:hover":{background:D}})}},[`${t}-panels`]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${t}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:s}}}}),"&-dropdown-range":{padding:`${_e(e.calc(_).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"rotate(180deg)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}})},Yc(e,"slide-up"),Yc(e,"slide-down"),Wg(e,"move-up"),Wg(e,"move-down")]},Kie=Kn("DatePicker",e=>{const t=kn(Z1(e),Wie(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[UAe(t),qAe(t),VAe(t),KAe(t),zAe(t),Bp(e,{focusElCls:`${e.componentCls}-focused`})]},WAe),GAe=e=>{const{calendarCls:t,componentCls:n,fullBg:r,fullPanelBg:o,itemActiveBg:i}=e;return{[t]:Object.assign(Object.assign(Object.assign({},Uie(e)),Qn(e)),{background:r,"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",justifyContent:"flex-end",padding:`${_e(e.paddingSM)} 0`,[`${t}-year-select`]:{minWidth:e.yearControlWidth},[`${t}-month-select`]:{minWidth:e.monthControlWidth,marginInlineStart:e.marginXS},[`${t}-mode-switch`]:{marginInlineStart:e.marginXS}}}),[`${t} ${n}-panel`]:{background:o,border:0,borderTop:`${_e(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,borderRadius:0,[`${n}-month-panel, ${n}-date-panel`]:{width:"auto"},[`${n}-body`]:{padding:`${_e(e.paddingXS)} 0`},[`${n}-content`]:{width:"100%"}},[`${t}-mini`]:{borderRadius:e.borderRadiusLG,[`${t}-header`]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS},[`${n}-panel`]:{borderRadius:`0 0 ${_e(e.borderRadiusLG)} ${_e(e.borderRadiusLG)}`},[`${n}-content`]:{height:e.miniContentHeight,th:{height:"auto",padding:0,lineHeight:_e(e.weekHeight)}},[`${n}-cell::before`]:{pointerEvents:"none"}},[`${t}${t}-full`]:{[`${n}-panel`]:{display:"block",width:"100%",textAlign:"end",background:r,border:0,[`${n}-body`]:{"th, td":{padding:0},th:{height:"auto",paddingInlineEnd:e.paddingSM,paddingBottom:e.paddingXXS,lineHeight:_e(e.weekHeight)}}},[`${n}-cell-week ${n}-cell-inner`]:{display:"block",borderRadius:0,borderTop:`${_e(e.lineWidthBold)} ${e.lineType} ${e.colorSplit}`,width:"100%",height:e.calc(e.dateValueHeight).add(e.dateContentHeight).add(e.calc(e.paddingXS).div(2)).add(e.lineWidthBold).equal()},[`${n}-cell`]:{"&::before":{display:"none"},"&:hover":{[`${t}-date`]:{background:e.controlItemBgHover}},[`${t}-date-today::before`]:{display:"none"},[`&-in-view${n}-cell-selected`]:{[`${t}-date, ${t}-date-today`]:{background:i}},"&-selected, &-selected:hover":{[`${t}-date, ${t}-date-today`]:{[`${t}-date-value`]:{color:e.colorPrimary}}}},[`${t}-date`]:{display:"block",width:"auto",height:"auto",margin:`0 ${_e(e.calc(e.marginXS).div(2).equal())}`,padding:`${_e(e.calc(e.paddingXS).div(2).equal())} ${_e(e.paddingXS)} 0`,border:0,borderTop:`${_e(e.lineWidthBold)} ${e.lineType} ${e.colorSplit}`,borderRadius:0,transition:`background ${e.motionDurationSlow}`,"&-value":{lineHeight:_e(e.dateValueHeight),transition:`color ${e.motionDurationSlow}`},"&-content":{position:"static",width:"auto",height:e.dateContentHeight,overflowY:"auto",color:e.colorText,lineHeight:e.lineHeight,textAlign:"start"},"&-today":{borderColor:e.colorPrimary,[`${t}-date-value`]:{color:e.colorText}}}},[`@media only screen and (max-width: ${_e(e.screenXS)}) `]:{[t]:{[`${t}-header`]:{display:"block",[`${t}-year-select`]:{width:"50%"},[`${t}-month-select`]:{width:`calc(50% - ${_e(e.paddingXS)})`},[`${t}-mode-switch`]:{width:"100%",marginTop:e.marginXS,marginInlineStart:0,"> label":{width:"50%",textAlign:"center"}}}}}}},YAe=e=>Object.assign({fullBg:e.colorBgContainer,fullPanelBg:e.colorBgContainer,itemActiveBg:e.controlItemBgActive,yearControlWidth:80,monthControlWidth:70,miniContentHeight:256},Vie(e)),XAe=Kn("Calendar",e=>{const t=`${e.componentCls}-calendar`,n=kn(e,Wie(e),{calendarCls:t,pickerCellInnerCls:`${e.componentCls}-cell-inner`,dateValueHeight:e.controlHeightSM,weekHeight:e.calc(e.controlHeightSM).mul(.75).equal(),dateContentHeight:e.calc(e.calc(e.fontHeightSM).add(e.marginXS)).mul(3).add(e.calc(e.lineWidth).mul(2)).equal()});return[GAe(n)]},YAe),qie=(e,t,n)=>{const{getYear:r}=n;return e&&t&&r(e)===r(t)},m6=(e,t,n)=>{const{getMonth:r}=n;return qie(e,t,n)&&r(e)===r(t)},LH=(e,t,n)=>{const{getDate:r}=n;return m6(e,t,n)&&r(e)===r(t)},Gie=e=>n=>{const{prefixCls:r,className:o,rootClassName:i,style:a,dateFullCellRender:s,dateCellRender:l,monthFullCellRender:c,monthCellRender:u,cellRender:f,fullCellRender:h,headerRender:p,value:m,defaultValue:g,disabledDate:v,mode:b,validRange:y,fullscreen:S=!0,showWeek:w,onChange:E,onPanelChange:C,onSelect:x}=n,{getPrefixCls:_,direction:P,calendar:O}=d.useContext(Yt),I=_("picker",r),M=`${I}-calendar`,[T,D,A]=XAe(I,M),j=e.getNow(),[k,F]=xn(()=>m||e.getNow(),{defaultValue:g,value:m}),[V,W]=xn("month",{value:b}),K=d.useMemo(()=>V==="year"?"month":"date",[V]),L=d.useCallback(oe=>(y?e.isAfter(y[0],oe)||e.isAfter(oe,y[1]):!1)||!!(v!=null&&v(oe)),[v,y]),Q=(oe,se)=>{C==null||C(oe,se)},ee=oe=>{F(oe),LH(oe,k,e)||((K==="date"&&!m6(oe,k,e)||K==="month"&&!qie(oe,k,e))&&Q(oe,V),E==null||E(oe))},re=oe=>{W(oe),Q(k,oe)},ie=(oe,se)=>{ee(oe),x==null||x(oe,{source:se})},G=d.useCallback((oe,se)=>h?h(oe,se):s?s(oe):d.createElement("div",{className:xe(`${I}-cell-inner`,`${M}-date`,{[`${M}-date-today`]:LH(j,oe,e)})},d.createElement("div",{className:`${M}-date-value`},String(e.getDate(oe)).padStart(2,"0")),d.createElement("div",{className:`${M}-date-content`},f?f(oe,se):l==null?void 0:l(oe))),[s,l,f,h]),X=d.useCallback((oe,se)=>{if(h)return h(oe,se);if(c)return c(oe);const fe=se.locale.shortMonths||e.locale.getShortMonths(se.locale.locale);return d.createElement("div",{className:xe(`${I}-cell-inner`,`${M}-date`,{[`${M}-date-today`]:m6(j,oe,e)})},d.createElement("div",{className:`${M}-date-value`},fe[e.getMonth(oe)]),d.createElement("div",{className:`${M}-date-content`},f?f(oe,se):u==null?void 0:u(oe)))},[c,u,f,h]),[ne]=zi("Calendar",zb),le=Object.assign(Object.assign({},ne),n.locale),ce=(oe,se)=>{if(se.type==="date")return G(oe,se);if(se.type==="month")return X(oe,Object.assign(Object.assign({},se),{locale:le==null?void 0:le.lang}))};return T(d.createElement("div",{className:xe(M,{[`${M}-full`]:S,[`${M}-mini`]:!S,[`${M}-rtl`]:P==="rtl"},O==null?void 0:O.className,o,i,D,A),style:Object.assign(Object.assign({},O==null?void 0:O.style),a)},p?p({value:k,type:V,onChange:oe=>{ie(oe,"customize")},onTypeChange:re}):d.createElement(IAe,{prefixCls:M,value:k,generateConfig:e,mode:V,fullscreen:S,locale:le==null?void 0:le.lang,validRange:y,onChange:ie,onModeChange:re}),d.createElement(ax,{value:k,prefixCls:I,locale:le==null?void 0:le.lang,generateConfig:e,cellRender:ce,onSelect:oe=>{ie(oe,K)},mode:K,picker:K,disabledDate:L,hideHeader:!0,showWeek:w})))},Yie=Gie(eie);Yie.generateCalendar=Gie;var QAe={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"},JAe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:QAe}))},Hu=d.forwardRef(JAe);const iP=d.createContext(null);var ZAe=function(t){var n=t.activeTabOffset,r=t.horizontal,o=t.rtl,i=t.indicator,a=i===void 0?{}:i,s=a.size,l=a.align,c=l===void 0?"center":l,u=d.useState(),f=$e(u,2),h=f[0],p=f[1],m=d.useRef(),g=de.useCallback(function(b){return typeof s=="function"?s(b):typeof s=="number"?s:b},[s]);function v(){zn.cancel(m.current)}return d.useEffect(function(){var b={};if(n)if(r){b.width=g(n.width);var y=o?"right":"left";c==="start"&&(b[y]=n[y]),c==="center"&&(b[y]=n[y]+n.width/2,b.transform=o?"translateX(50%)":"translateX(-50%)"),c==="end"&&(b[y]=n[y]+n.width,b.transform="translateX(-100%)")}else b.height=g(n.height),c==="start"&&(b.top=n.top),c==="center"&&(b.top=n.top+n.height/2,b.transform="translateY(-50%)"),c==="end"&&(b.top=n.top+n.height,b.transform="translateY(-100%)");return v(),m.current=zn(function(){p(b)}),v},[n,r,o,c,g]),{style:h}},BH={width:0,height:0,left:0,top:0};function eDe(e,t,n){return d.useMemo(function(){for(var r,o=new Map,i=t.get((r=e[0])===null||r===void 0?void 0:r.key)||BH,a=i.left+i.width,s=0;sD?(M=O,C.current="x"):(M=I,C.current="y"),t(-M,-M)&&P.preventDefault()}var _=d.useRef(null);_.current={onTouchStart:S,onTouchMove:w,onTouchEnd:E,onWheel:x},d.useEffect(function(){function P(T){_.current.onTouchStart(T)}function O(T){_.current.onTouchMove(T)}function I(T){_.current.onTouchEnd(T)}function M(T){_.current.onWheel(T)}return document.addEventListener("touchmove",O,{passive:!1}),document.addEventListener("touchend",I,{passive:!0}),e.current.addEventListener("touchstart",P,{passive:!0}),e.current.addEventListener("wheel",M,{passive:!1}),function(){document.removeEventListener("touchmove",O),document.removeEventListener("touchend",I)}},[])}function Xie(e){var t=d.useState(0),n=$e(t,2),r=n[0],o=n[1],i=d.useRef(0),a=d.useRef();return a.current=e,Gh(function(){var s;(s=a.current)===null||s===void 0||s.call(a)},[r]),function(){i.current===r&&(i.current+=1,o(i.current))}}function rDe(e){var t=d.useRef([]),n=d.useState({}),r=$e(n,2),o=r[1],i=d.useRef(typeof e=="function"?e():e),a=Xie(function(){var l=i.current;t.current.forEach(function(c){l=c(l)}),t.current=[],i.current=l,o({})});function s(l){t.current.push(l),a()}return[i.current,s]}var WH={width:0,height:0,left:0,top:0,right:0};function oDe(e,t,n,r,o,i,a){var s=a.tabs,l=a.tabPosition,c=a.rtl,u,f,h;return["top","bottom"].includes(l)?(u="width",f=c?"right":"left",h=Math.abs(n)):(u="height",f="top",h=-n),d.useMemo(function(){if(!s.length)return[0,0];for(var p=s.length,m=p,g=0;gMath.floor(h+t)){m=g-1;break}}for(var b=0,y=p-1;y>=0;y-=1){var S=e.get(s[y].key)||WH;if(S[f]=m?[0,0]:[b,m]},[e,t,r,o,i,h,l,s.map(function(p){return p.key}).join("_"),c])}function VH(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var iDe="TABS_DQ";function Qie(e){return String(e).replace(/"/g,iDe)}function CD(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var Jie=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,o=e.locale,i=e.style;return!r||r.showAdd===!1?null:d.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:i,"aria-label":(o==null?void 0:o.addAriaLabel)||"Add tab",onClick:function(s){r.onEdit("add",{event:s})}},r.addIcon||"+")}),KH=d.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,o=e.extra;if(!o)return null;var i,a={};return Ht(o)==="object"&&!d.isValidElement(o)?a=o:a.right=o,n==="right"&&(i=a.right),n==="left"&&(i=a.left),i?d.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},i):null}),aDe=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,o=e.tabs,i=e.locale,a=e.mobile,s=e.more,l=s===void 0?{}:s,c=e.style,u=e.className,f=e.editable,h=e.tabBarGutter,p=e.rtl,m=e.removeAriaLabel,g=e.onTabClick,v=e.getPopupContainer,b=e.popupClassName,y=d.useState(!1),S=$e(y,2),w=S[0],E=S[1],C=d.useState(null),x=$e(C,2),_=x[0],P=x[1],O=l.icon,I=O===void 0?"More":O,M="".concat(r,"-more-popup"),T="".concat(n,"-dropdown"),D=_!==null?"".concat(M,"-").concat(_):null,A=i==null?void 0:i.dropdownAriaLabel;function j(Q,ee){Q.preventDefault(),Q.stopPropagation(),f.onEdit("remove",{key:ee,event:Q})}var k=d.createElement(kv,{onClick:function(ee){var re=ee.key,ie=ee.domEvent;g(re,ie),E(!1)},prefixCls:"".concat(T,"-menu"),id:M,tabIndex:-1,role:"listbox","aria-activedescendant":D,selectedKeys:[_],"aria-label":A!==void 0?A:"expanded dropdown"},o.map(function(Q){var ee=Q.closable,re=Q.disabled,ie=Q.closeIcon,G=Q.key,X=Q.label,ne=CD(ee,ie,f,re);return d.createElement(Q1,{key:G,id:"".concat(M,"-").concat(G),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(G),disabled:re},d.createElement("span",null,X),ne&&d.createElement("button",{type:"button","aria-label":m||"remove",tabIndex:0,className:"".concat(T,"-menu-item-remove"),onClick:function(ce){ce.stopPropagation(),j(ce,G)}},ie||f.removeIcon||"×"))}));function F(Q){for(var ee=o.filter(function(ne){return!ne.disabled}),re=ee.findIndex(function(ne){return ne.key===_})||0,ie=ee.length,G=0;Gtt?"left":"right"})}),T=$e(M,2),D=T[0],A=T[1],j=zH(0,function(It,tt){!I&&g&&g({direction:It>tt?"top":"bottom"})}),k=$e(j,2),F=k[0],V=k[1],W=d.useState([0,0]),K=$e(W,2),L=K[0],Q=K[1],ee=d.useState([0,0]),re=$e(ee,2),ie=re[0],G=re[1],X=d.useState([0,0]),ne=$e(X,2),le=ne[0],ce=ne[1],oe=d.useState([0,0]),se=$e(oe,2),fe=se[0],te=se[1],he=rDe(new Map),pe=$e(he,2),Oe=pe[0],Me=pe[1],Se=eDe(S,Oe,ie[0]),ye=GC(L,I),ve=GC(ie,I),be=GC(le,I),Pe=GC(fe,I),Ne=Math.floor(ye)me?me:It}var ue=d.useRef(null),Le=d.useState(),He=$e(Le,2),ge=He[0],De=He[1];function qe(){De(Date.now())}function Fe(){ue.current&&clearTimeout(ue.current)}nDe(x,function(It,tt){function Ot(Pt,pn){Pt(function(Pn){var $=Ce(Pn+pn);return $})}return Ne?(I?Ot(A,It):Ot(V,tt),Fe(),qe(),!0):!1}),d.useEffect(function(){return Fe(),ge&&(ue.current=setTimeout(function(){De(0)},100)),Fe},[ge]);var Ke=oDe(Se,U,I?D:F,ve,be,Pe,z(z({},e),{},{tabs:S})),Ue=$e(Ke,2),Ve=Ue[0],Tt=Ue[1],et=An(function(){var It=arguments.length>0&&arguments[0]!==void 0?arguments[0]:a,tt=Se.get(It)||{width:0,height:0,left:0,right:0,top:0};if(I){var Ot=D;s?tt.rightD+U&&(Ot=tt.right+tt.width-U):tt.left<-D?Ot=-tt.left:tt.left+tt.width>-D+U&&(Ot=-(tt.left+tt.width-U)),V(0),A(Ce(Ot))}else{var Pt=F;tt.top<-F?Pt=-tt.top:tt.top+tt.height>-F+U&&(Pt=-(tt.top+tt.height-U)),A(0),V(Ce(Pt))}}),st=d.useState(),yt=$e(st,2),gt=yt[0],Lt=yt[1],St=d.useState(!1),wt=$e(St,2),Nt=wt[0],Be=wt[1],We=S.filter(function(It){return!It.disabled}).map(function(It){return It.key}),je=function(tt){var Ot=We.indexOf(gt||a),Pt=We.length,pn=(Ot+tt+Pt)%Pt,Pn=We[pn];Lt(Pn)},Xe=function(tt){var Ot=tt.code,Pt=s&&I,pn=We[0],Pn=We[We.length-1];switch(Ot){case"ArrowLeft":{I&&je(Pt?1:-1);break}case"ArrowRight":{I&&je(Pt?-1:1);break}case"ArrowUp":{tt.preventDefault(),I||je(-1);break}case"ArrowDown":{tt.preventDefault(),I||je(1);break}case"Home":{tt.preventDefault(),Lt(pn);break}case"End":{tt.preventDefault(),Lt(Pn);break}case"Enter":case"Space":{tt.preventDefault(),m(gt,tt);break}case"Backspace":case"Delete":{var $=We.indexOf(gt),R=S.find(function(Ee){return Ee.key===gt}),J=CD(R==null?void 0:R.closable,R==null?void 0:R.closeIcon,c,R==null?void 0:R.disabled);J&&(tt.preventDefault(),tt.stopPropagation(),c.onEdit("remove",{key:gt,event:tt}),$===We.length-1?je(-1):je(1));break}}},pt={};I?pt[s?"marginRight":"marginLeft"]=h:pt.marginTop=h;var vt=S.map(function(It,tt){var Ot=It.key;return d.createElement(lDe,{id:o,prefixCls:y,key:Ot,tab:It,style:tt===0?void 0:pt,closable:It.closable,editable:c,active:Ot===a,focus:Ot===gt,renderWrapper:p,removeAriaLabel:u==null?void 0:u.removeAriaLabel,tabCount:We.length,currentPosition:tt+1,onClick:function(pn){m(Ot,pn)},onKeyDown:Xe,onFocus:function(){Nt||Lt(Ot),et(Ot),qe(),x.current&&(s||(x.current.scrollLeft=0),x.current.scrollTop=0)},onBlur:function(){Lt(void 0)},onMouseDown:function(){Be(!0)},onMouseUp:function(){Be(!1)}})}),Mt=function(){return Me(function(){var tt,Ot=new Map,Pt=(tt=_.current)===null||tt===void 0?void 0:tt.getBoundingClientRect();return S.forEach(function(pn){var Pn,$=pn.key,R=(Pn=_.current)===null||Pn===void 0?void 0:Pn.querySelector('[data-node-key="'.concat(Qie($),'"]'));if(R){var J=cDe(R,Pt),Ee=$e(J,4),ke=Ee[0],Je=Ee[1],Dt=Ee[2],an=Ee[3];Ot.set($,{width:ke,height:Je,left:Dt,top:an})}}),Ot})};d.useEffect(function(){Mt()},[S.map(function(It){return It.key}).join("_")]);var Et=Xie(function(){var It=gm(w),tt=gm(E),Ot=gm(C);Q([It[0]-tt[0]-Ot[0],It[1]-tt[1]-Ot[1]]);var Pt=gm(O);ce(Pt);var pn=gm(P);te(pn);var Pn=gm(_);G([Pn[0]-Pt[0],Pn[1]-Pt[1]]),Mt()}),ft=S.slice(0,Ve),dt=S.slice(Tt+1),Rt=[].concat(Ze(ft),Ze(dt)),Ct=Se.get(a),Wt=ZAe({activeTabOffset:Ct,horizontal:I,indicator:v,rtl:s}),at=Wt.style;d.useEffect(function(){et()},[a,q,me,VH(Ct),VH(Se),I]),d.useEffect(function(){Et()},[s]);var $t=!!Rt.length,Bt="".concat(y,"-nav-wrap"),xt,bt,Ft,Re;return I?s?(bt=D>0,xt=D!==me):(xt=D<0,bt=D!==q):(Ft=F<0,Re=F!==q),d.createElement(Oi,{onResize:Et},d.createElement("div",{ref:mc(t,w),role:"tablist","aria-orientation":I?"horizontal":"vertical",className:xe("".concat(y,"-nav"),n),style:r,onKeyDown:function(){qe()}},d.createElement(KH,{ref:E,position:"left",extra:l,prefixCls:y}),d.createElement(Oi,{onResize:Et},d.createElement("div",{className:xe(Bt,Z(Z(Z(Z({},"".concat(Bt,"-ping-left"),xt),"".concat(Bt,"-ping-right"),bt),"".concat(Bt,"-ping-top"),Ft),"".concat(Bt,"-ping-bottom"),Re)),ref:x},d.createElement(Oi,{onResize:Et},d.createElement("div",{ref:_,className:"".concat(y,"-nav-list"),style:{transform:"translate(".concat(D,"px, ").concat(F,"px)"),transition:ge?"none":void 0}},vt,d.createElement(Jie,{ref:O,prefixCls:y,locale:u,editable:c,style:z(z({},vt.length===0?void 0:pt),{},{visibility:$t?"hidden":null})}),d.createElement("div",{className:xe("".concat(y,"-ink-bar"),Z({},"".concat(y,"-ink-bar-animated"),i.inkBar)),style:at}))))),d.createElement(sDe,Ge({},e,{removeAriaLabel:u==null?void 0:u.removeAriaLabel,ref:P,prefixCls:y,tabs:Rt,className:!$t&&H,tabMoving:!!ge})),d.createElement(KH,{ref:C,position:"right",extra:l,prefixCls:y})))}),Zie=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.id,a=e.active,s=e.tabKey,l=e.children;return d.createElement("div",{id:i&&"".concat(i,"-panel-").concat(s),role:"tabpanel",tabIndex:a?0:-1,"aria-labelledby":i&&"".concat(i,"-tab-").concat(s),"aria-hidden":!a,style:o,className:xe(n,a&&"".concat(n,"-active"),r),ref:t},l)}),uDe=["renderTabBar"],dDe=["label","key"],fDe=function(t){var n=t.renderTabBar,r=At(t,uDe),o=d.useContext(iP),i=o.tabs;if(n){var a=z(z({},r),{},{panes:i.map(function(s){var l=s.label,c=s.key,u=At(s,dDe);return d.createElement(Zie,Ge({tab:l,key:c,tabKey:c},u))})});return n(a,qH)}return d.createElement(qH,r)},hDe=["key","forceRender","style","className","destroyInactiveTabPane"],pDe=function(t){var n=t.id,r=t.activeKey,o=t.animated,i=t.tabPosition,a=t.destroyInactiveTabPane,s=d.useContext(iP),l=s.prefixCls,c=s.tabs,u=o.tabPane,f="".concat(l,"-tabpane");return d.createElement("div",{className:xe("".concat(l,"-content-holder"))},d.createElement("div",{className:xe("".concat(l,"-content"),"".concat(l,"-content-").concat(i),Z({},"".concat(l,"-content-animated"),u))},c.map(function(h){var p=h.key,m=h.forceRender,g=h.style,v=h.className,b=h.destroyInactiveTabPane,y=At(h,hDe),S=p===r;return d.createElement(Jo,Ge({key:p,visible:S,forceRender:m,removeOnLeave:!!(a||b),leavedClassName:"".concat(f,"-hidden")},o.tabPaneMotion),function(w,E){var C=w.style,x=w.className;return d.createElement(Zie,Ge({},y,{prefixCls:f,id:n,tabKey:p,animated:u,active:S,style:z(z({},g),C),className:xe(v,x),ref:E}))})})))};function mDe(){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=z({inkBar:!0},Ht(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var gDe=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],GH=0,vDe=d.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,o=r===void 0?"rc-tabs":r,i=e.className,a=e.items,s=e.direction,l=e.activeKey,c=e.defaultActiveKey,u=e.editable,f=e.animated,h=e.tabPosition,p=h===void 0?"top":h,m=e.tabBarGutter,g=e.tabBarStyle,v=e.tabBarExtraContent,b=e.locale,y=e.more,S=e.destroyInactiveTabPane,w=e.renderTabBar,E=e.onChange,C=e.onTabClick,x=e.onTabScroll,_=e.getPopupContainer,P=e.popupClassName,O=e.indicator,I=At(e,gDe),M=d.useMemo(function(){return(a||[]).filter(function(fe){return fe&&Ht(fe)==="object"&&"key"in fe})},[a]),T=s==="rtl",D=mDe(f),A=d.useState(!1),j=$e(A,2),k=j[0],F=j[1];d.useEffect(function(){F(F$())},[]);var V=xn(function(){var fe;return(fe=M[0])===null||fe===void 0?void 0:fe.key},{value:l,defaultValue:c}),W=$e(V,2),K=W[0],L=W[1],Q=d.useState(function(){return M.findIndex(function(fe){return fe.key===K})}),ee=$e(Q,2),re=ee[0],ie=ee[1];d.useEffect(function(){var fe=M.findIndex(function(he){return he.key===K});if(fe===-1){var te;fe=Math.max(0,Math.min(re,M.length-1)),L((te=M[fe])===null||te===void 0?void 0:te.key)}ie(fe)},[M.map(function(fe){return fe.key}).join("_"),K,re]);var G=xn(null,{value:n}),X=$e(G,2),ne=X[0],le=X[1];d.useEffect(function(){n||(le("rc-tabs-".concat(GH)),GH+=1)},[]);function ce(fe,te){C==null||C(fe,te);var he=fe!==K;L(fe),he&&(E==null||E(fe))}var oe={id:ne,activeKey:K,animated:D,tabPosition:p,rtl:T,mobile:k},se=z(z({},oe),{},{editable:u,locale:b,more:y,tabBarGutter:m,onTabClick:ce,onTabScroll:x,extra:v,style:g,panes:null,getPopupContainer:_,popupClassName:P,indicator:O});return d.createElement(iP.Provider,{value:{tabs:M,prefixCls:o}},d.createElement("div",Ge({ref:t,id:n,className:xe(o,"".concat(o,"-").concat(p),Z(Z(Z({},"".concat(o,"-mobile"),k),"".concat(o,"-editable"),u),"".concat(o,"-rtl"),T),i)},I),d.createElement(fDe,Ge({},se,{renderTabBar:w})),d.createElement(pDe,Ge({destroyInactiveTabPane:S},oe,{animated:D}))))});const yDe={motionAppear:!1,motionEnter:!0,motionLeave:!0};function bDe(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({},yDe),{motionName:Mi(e,"switch")})),n}var 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 o=0,r=Object.getOwnPropertySymbols(e);ot)}function wDe(e,t){if(e)return e;const n=ai(t).map(r=>{if(d.isValidElement(r)){const{key:o,props:i}=r,a=i||{},{tab:s}=a,l=SDe(a,["tab"]);return Object.assign(Object.assign({key:String(o)},l),{label:s})}return null});return CDe(n)}const xDe=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}`}}}}},[Yc(e,"slide-up"),Yc(e,"slide-down")]]},EDe=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:i,itemSelectedColor:a}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${_e(e.lineWidth)} ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,background:e.colorBgContainer},[`${t}-tab-focus`]:Object.assign({},rc(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:_e(o)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${_e(e.borderRadiusLG)} ${_e(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${_e(e.borderRadiusLG)} ${_e(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:_e(o)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${_e(e.borderRadiusLG)} 0 0 ${_e(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 ${_e(e.borderRadiusLG)} ${_e(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},_De=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},Qn(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:`${_e(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({},wa),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${_e(e.paddingXXS)} ${_e(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"}}})}})}},$De=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:i,verticalItemMargin:a,calc:s}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${_e(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:s(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:i,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:_e(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${_e(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:s(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${_e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},PDe=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:o,horizontalItemPaddingLG:i}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${_e(e.borderRadius)} ${_e(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${_e(e.borderRadius)} ${_e(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${_e(e.borderRadius)} ${_e(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${_e(e.borderRadius)} 0 0 ${_e(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},ODe=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:i,horizontalItemPadding:a,itemSelectedColor:s,itemColor:l}=e,c=`${t}-tab`;return{[c]:{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:l,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${c}-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}},Ka(e)),"&:hover":{color:r},[`&${c}-active ${c}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${c}-focus ${c}-btn`]:Object.assign({},rc(e)),[`&${c}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${c}-disabled ${c}-btn, &${c}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${c}-remove ${o}`]:{margin:0},[`${o}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${c} + ${c}`]:{margin:{_skip_check_:!0,value:i}}}},MDe=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o,calc:i}=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:_e(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:_e(e.marginXS)},marginLeft:{_skip_check_:!0,value:_e(i(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:o},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},TDe=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:i,itemActiveColor:a,colorBorderSecondary:s}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Qn(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:o},padding:_e(e.paddingXS),background:"transparent",border:`${_e(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${_e(e.borderRadiusLG)} ${_e(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:a}},Ka(e,-3))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),ODe(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:Object.assign(Object.assign({},Ka(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"}}}}}},RDe=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}},IDe=Kn("Tabs",e=>{const t=kn(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${_e(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${_e(e.horizontalItemGutter)}`});return[PDe(t),MDe(t),$De(t),_De(t),EDe(t),TDe(t),xDe(t)]},RDe),kDe=()=>null;var NDe=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 o=0,r=Object.getOwnPropertySymbols(e);o{var t,n,r,o,i,a,s,l,c,u,f;const{type:h,className:p,rootClassName:m,size:g,onEdit:v,hideAdd:b,centered:y,addIcon:S,removeIcon:w,moreIcon:E,more:C,popupClassName:x,children:_,items:P,animated:O,style:I,indicatorSize:M,indicator:T}=e,D=NDe(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:A}=D,{direction:j,tabs:k,getPrefixCls:F,getPopupContainer:V}=d.useContext(Yt),W=F("tabs",A),K=Mr(W),[L,Q,ee]=IDe(W,K);let re;h==="editable-card"&&(re={onEdit:(oe,se)=>{let{key:fe,event:te}=se;v==null||v(oe==="add"?te:fe,oe)},removeIcon:(t=w??(k==null?void 0:k.removeIcon))!==null&&t!==void 0?t:d.createElement(ou,null),addIcon:(S??(k==null?void 0:k.addIcon))||d.createElement(Hu,null),showAdd:b!==!0});const ie=F(),G=Eo(g),X=wDe(P,_),ne=bDe(W,O),le=Object.assign(Object.assign({},k==null?void 0:k.style),I),ce={align:(n=T==null?void 0:T.align)!==null&&n!==void 0?n:(r=k==null?void 0:k.indicator)===null||r===void 0?void 0:r.align,size:(s=(i=(o=T==null?void 0:T.size)!==null&&o!==void 0?o:M)!==null&&i!==void 0?i:(a=k==null?void 0:k.indicator)===null||a===void 0?void 0:a.size)!==null&&s!==void 0?s:k==null?void 0:k.indicatorSize};return L(d.createElement(vDe,Object.assign({direction:j,getPopupContainer:V},D,{items:X,className:xe({[`${W}-${G}`]:G,[`${W}-card`]:["card","editable-card"].includes(h),[`${W}-editable-card`]:h==="editable-card",[`${W}-centered`]:y},k==null?void 0:k.className,p,m,Q,ee,K),popupClassName:xe(x,Q,ee,K),style:le,editable:re,more:Object.assign({icon:(f=(u=(c=(l=k==null?void 0:k.more)===null||l===void 0?void 0:l.icon)!==null&&c!==void 0?c:k==null?void 0:k.moreIcon)!==null&&u!==void 0?u:E)!==null&&f!==void 0?f:d.createElement(aD,null),transitionName:`${ie}-slide-up`},C),prefixCls:W,animated:ne,indicator:ce})))};nS.TabPane=kDe;var ADe=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 o=0,r=Object.getOwnPropertySymbols(e);o{var{prefixCls:t,className:n,hoverable:r=!0}=e,o=ADe(e,["prefixCls","className","hoverable"]);const{getPrefixCls:i}=d.useContext(Yt),a=i("card",t),s=xe(`${a}-grid`,n,{[`${a}-grid-hoverable`]:r});return d.createElement("div",Object.assign({},o,{className:s}))},DDe=e=>{const{antCls:t,componentCls:n,headerHeight:r,headerPadding:o,tabsMarginBottom:i}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${_e(o)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${_e(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${_e(e.borderRadiusLG)} ${_e(e.borderRadiusLG)} 0 0`},nc()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},wa),{[` > ${n}-typography, > ${n}-typography-edit-content `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:i,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${_e(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},jDe=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:o}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:` ${_e(o)} 0 0 0 ${n}, 0 ${_e(o)} 0 0 ${n}, ${_e(o)} ${_e(o)} 0 0 ${n}, ${_e(o)} 0 0 0 ${n} inset, 0 ${_e(o)} 0 0 ${n} inset; `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},FDe=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:o,colorBorderSecondary:i,actionsBg:a}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:a,borderTop:`${_e(e.lineWidth)} ${e.lineType} ${i}`,display:"flex",borderRadius:`0 0 ${_e(e.borderRadiusLG)} ${_e(e.borderRadiusLG)}`},nc()),{"& > 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:_e(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:o,lineHeight:_e(e.calc(o).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${_e(e.lineWidth)} ${e.lineType} ${i}`}}})},LDe=e=>Object.assign(Object.assign({margin:`${_e(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},nc()),{"&-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},wa),"&-description":{color:e.colorTextDescription}}),BDe=e=>{const{componentCls:t,colorFillAlter:n,headerPadding:r,bodyPadding:o}=e;return{[`${t}-head`]:{padding:`0 ${_e(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${_e(e.padding)} ${_e(o)}`}}},zDe=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},HDe=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:o,boxShadowTertiary:i,bodyPadding:a,extraColor:s}=e;return{[t]:Object.assign(Object.assign({},Qn(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:i},[`${t}-head`]:DDe(e),[`${t}-extra`]:{marginInlineStart:"auto",color:s,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:Object.assign({padding:a,borderRadius:`0 0 ${_e(e.borderRadiusLG)} ${_e(e.borderRadiusLG)}`},nc()),[`${t}-grid`]:jDe(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${_e(e.borderRadiusLG)} ${_e(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:FDe(e),[`${t}-meta`]:LDe(e)}),[`${t}-bordered`]:{border:`${_e(e.lineWidth)} ${e.lineType} ${o}`,[`${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:`${_e(e.borderRadiusLG)} ${_e(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`]:BDe(e),[`${t}-loading`]:zDe(e),[`${t}-rtl`]:{direction:"rtl"}}},UDe=e=>{const{componentCls:t,bodyPaddingSM:n,headerPaddingSM:r,headerHeightSM:o,headerFontSizeSM:i}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:o,padding:`0 ${_e(r)}`,fontSize:i,[`> ${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"}}}}},WDe=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}},VDe=Kn("Card",e=>{const t=kn(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[HDe(t),UDe(t)]},WDe);var YH=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 o=0,r=Object.getOwnPropertySymbols(e);o{const{actionClasses:t,actions:n=[],actionStyle:r}=e;return d.createElement("ul",{className:t,style:r},n.map((o,i)=>{const a=`action-${i}`;return d.createElement("li",{style:{width:`${100/n.length}%`},key:a},d.createElement("span",null,o))}))},qDe=d.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:i,extra:a,headStyle:s={},bodyStyle:l={},title:c,loading:u,bordered:f=!0,size:h,type:p,cover:m,actions:g,tabList:v,children:b,activeTabKey:y,defaultActiveTabKey:S,tabBarExtraContent:w,hoverable:E,tabProps:C={},classNames:x,styles:_}=e,P=YH(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:O,direction:I,card:M}=d.useContext(Yt),T=Oe=>{var Me;(Me=e.onTabChange)===null||Me===void 0||Me.call(e,Oe)},D=Oe=>{var Me;return xe((Me=M==null?void 0:M.classNames)===null||Me===void 0?void 0:Me[Oe],x==null?void 0:x[Oe])},A=Oe=>{var Me;return Object.assign(Object.assign({},(Me=M==null?void 0:M.styles)===null||Me===void 0?void 0:Me[Oe]),_==null?void 0:_[Oe])},j=d.useMemo(()=>{let Oe=!1;return d.Children.forEach(b,Me=>{(Me==null?void 0:Me.type)===eae&&(Oe=!0)}),Oe},[b]),k=O("card",n),[F,V,W]=VDe(k),K=d.createElement(pd,{loading:!0,active:!0,paragraph:{rows:4},title:!1},b),L=y!==void 0,Q=Object.assign(Object.assign({},C),{[L?"activeKey":"defaultActiveKey"]:L?y:S,tabBarExtraContent:w});let ee;const re=Eo(h),ie=!re||re==="default"?"large":re,G=v?d.createElement(nS,Object.assign({size:ie},Q,{className:`${k}-head-tabs`,onChange:T,items:v.map(Oe=>{var{tab:Me}=Oe,Se=YH(Oe,["tab"]);return Object.assign({label:Me},Se)})})):null;if(c||a||G){const Oe=xe(`${k}-head`,D("header")),Me=xe(`${k}-head-title`,D("title")),Se=xe(`${k}-extra`,D("extra")),ye=Object.assign(Object.assign({},s),A("header"));ee=d.createElement("div",{className:Oe,style:ye},d.createElement("div",{className:`${k}-head-wrapper`},c&&d.createElement("div",{className:Me,style:A("title")},c),a&&d.createElement("div",{className:Se,style:A("extra")},a)),G)}const X=xe(`${k}-cover`,D("cover")),ne=m?d.createElement("div",{className:X,style:A("cover")},m):null,le=xe(`${k}-body`,D("body")),ce=Object.assign(Object.assign({},l),A("body")),oe=d.createElement("div",{className:le,style:ce},u?K:b),se=xe(`${k}-actions`,D("actions")),fe=g!=null&&g.length?d.createElement(KDe,{actionClasses:se,actionStyle:A("actions"),actions:g}):null,te=Yn(P,["onTabChange"]),he=xe(k,M==null?void 0:M.className,{[`${k}-loading`]:u,[`${k}-bordered`]:f,[`${k}-hoverable`]:E,[`${k}-contain-grid`]:j,[`${k}-contain-tabs`]:v==null?void 0:v.length,[`${k}-${re}`]:re,[`${k}-type-${p}`]:!!p,[`${k}-rtl`]:I==="rtl"},r,o,V,W),pe=Object.assign(Object.assign({},M==null?void 0:M.style),i);return F(d.createElement("div",Object.assign({ref:t},te,{className:he,style:pe}),ee,ne,oe,fe))});var GDe=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 o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,className:n,avatar:r,title:o,description:i}=e,a=GDe(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:s}=d.useContext(Yt),l=s("card",t),c=xe(`${l}-meta`,n),u=r?d.createElement("div",{className:`${l}-meta-avatar`},r):null,f=o?d.createElement("div",{className:`${l}-meta-title`},o):null,h=i?d.createElement("div",{className:`${l}-meta-description`},i):null,p=f||h?d.createElement("div",{className:`${l}-meta-detail`},f,h):null;return d.createElement("div",Object.assign({},a,{className:c}),u,p)},ol=qDe;ol.Grid=eae;ol.Meta=YDe;function XDe(e,t,n){var r=n||{},o=r.noTrailing,i=o===void 0?!1:o,a=r.noLeading,s=a===void 0?!1:a,l=r.debounceMode,c=l===void 0?void 0:l,u,f=!1,h=0;function p(){u&&clearTimeout(u)}function m(v){var b=v||{},y=b.upcomingOnly,S=y===void 0?!1:y;p(),f=!S}function g(){for(var v=arguments.length,b=new Array(v),y=0;ye?s?(h=Date.now(),i||(u=setTimeout(c?C:E,e))):E():i!==!0&&(u=setTimeout(c?C:E,c===void 0?e-w:e))}return g.cancel=m,g}function QDe(e,t,n){var r={},o=r.atBegin,i=o===void 0?!1:o;return XDe(e,t,{debounceMode:i!==!1})}var Dv=d.createContext({}),sg="__rc_cascader_search_mark__",JDe=function(t,n,r){var o=r.label,i=o===void 0?"":o;return n.some(function(a){return String(a[i]).toLowerCase().includes(t.toLowerCase())})},ZDe=function(t,n,r,o){return n.map(function(i){return i[o.label]}).join(" / ")},eje=function(t,n,r,o,i,a){var s=i.filter,l=s===void 0?JDe:s,c=i.render,u=c===void 0?ZDe:c,f=i.limit,h=f===void 0?50:f,p=i.sort;return d.useMemo(function(){var m=[];if(!t)return[];function g(v,b){var y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;v.forEach(function(S){if(!(!p&&h!==!1&&h>0&&m.length>=h)){var w=[].concat(Ze(b),[S]),E=S[r.children],C=y||S.disabled;if((!E||E.length===0||a)&&l(t,w,{label:r.label})){var x;m.push(z(z({},S),{},(x={disabled:C},Z(x,r.label,u(t,w,o,r)),Z(x,sg,w),Z(x,r.children,void 0),x)))}E&&g(S[r.children],w,C)}})}return g(n,[]),p&&m.sort(function(v,b){return p(v[sg],b[sg],t,r)}),h!==!1&&h>0?m.slice(0,h):m},[t,n,r,o,u,a,l,p,h])},wD="__RC_CASCADER_SPLIT__",tae="SHOW_PARENT",nae="SHOW_CHILD";function Gl(e){return e.join(wD)}function Gg(e){return e.map(Gl)}function tje(e){return e.split(wD)}function rae(e){var t=e||{},n=t.label,r=t.value,o=t.children,i=r||"value";return{label:n||"label",value:i,key:i,children:o||"children"}}function my(e,t){var n,r;return(n=e.isLeaf)!==null&&n!==void 0?n:!((r=e[t.children])!==null&&r!==void 0&&r.length)}function nje(e){var t=e.parentElement;if(t){var n=e.offsetTop-t.offsetTop;n-t.scrollTop<0?t.scrollTo({top:n}):n+e.offsetHeight-t.scrollTop>t.offsetHeight&&t.scrollTo({top:n+e.offsetHeight-t.offsetHeight})}}function oae(e,t){return e.map(function(n){var r;return(r=n[sg])===null||r===void 0?void 0:r.map(function(o){return o[t.value]})})}function rje(e){return Array.isArray(e)&&Array.isArray(e[0])}function tE(e){return e?rje(e)?e:(e.length===0?[]:[e]).map(function(t){return Array.isArray(t)?t:[t]}):[]}function iae(e,t,n){var r=new Set(e),o=t();return e.filter(function(i){var a=o[i],s=a?a.parent:null,l=a?a.children:null;return a&&a.node.disabled?!0:n===nae?!(l&&l.some(function(c){return c.key&&r.has(c.key)})):!(s&&!s.node.disabled&&r.has(s.key))})}function Yg(e,t,n){for(var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,o=t,i=[],a=function(){var c,u,f,h=e[s],p=(c=o)===null||c===void 0?void 0:c.findIndex(function(g){var v=g[n.value];return r?String(v)===String(h):v===h}),m=p!==-1?(u=o)===null||u===void 0?void 0:u[p]:null;i.push({value:(f=m==null?void 0:m[n.value])!==null&&f!==void 0?f:h,index:p,option:m}),o=m==null?void 0:m[n.children]},s=0;s1&&arguments[1]!==void 0?arguments[1]:null;return u.map(function(h,p){for(var m=sae(f?f.pos:"0",p),g=rS(h[i],m),v,b=0;b1&&arguments[1]!==void 0?arguments[1]:{},n=t.initWrapper,r=t.processEntity,o=t.onProcessFinished,i=t.externalGetKey,a=t.childrenPropName,s=t.fieldNames,l=arguments.length>2?arguments[2]:void 0,c=i||l,u={},f={},h={posEntities:u,keyEntities:f};return n&&(h=n(h)||h),sje(e,function(p){var m=p.node,g=p.index,v=p.pos,b=p.key,y=p.parentPos,S=p.level,w=p.nodes,E={node:m,nodes:w,index:g,key:b,pos:v,level:S},C=rS(b,v);u[v]=E,f[C]=E,E.parent=u[y],E.parent&&(E.parent.children=E.parent.children||[],E.parent.children.push(E)),r&&r(E,h)},{externalGetKey:c,childrenPropName:a,fieldNames:s}),o&&o(h),h}function Wy(e,t){var n=t.expandedKeys,r=t.selectedKeys,o=t.loadedKeys,i=t.loadingKeys,a=t.checkedKeys,s=t.halfCheckedKeys,l=t.dragOverNodeKey,c=t.dropPosition,u=t.keyEntities,f=La(u,e),h={eventKey:e,expanded:n.indexOf(e)!==-1,selected:r.indexOf(e)!==-1,loaded:o.indexOf(e)!==-1,loading:i.indexOf(e)!==-1,checked:a.indexOf(e)!==-1,halfChecked:s.indexOf(e)!==-1,pos:String(f?f.pos:""),dragOver:l===e&&c===0,dragOverGapTop:l===e&&c===-1,dragOverGapBottom:l===e&&c===1};return h}function ri(e){var t=e.data,n=e.expanded,r=e.selected,o=e.checked,i=e.loaded,a=e.loading,s=e.halfChecked,l=e.dragOver,c=e.dragOverGapTop,u=e.dragOverGapBottom,f=e.pos,h=e.active,p=e.eventKey,m=z(z({},t),{},{expanded:n,selected:r,checked:o,loaded:i,loading:a,halfChecked:s,dragOver:l,dragOverGapTop:c,dragOverGapBottom:u,pos:f,active:h,key:p});return"props"in m||Object.defineProperty(m,"props",{get:function(){return yr(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),m}const lje=function(e,t){var n=d.useRef({options:[],info:{keyEntities:{},pathKeyEntities:{}}}),r=d.useCallback(function(){return n.current.options!==e&&(n.current.options=e,n.current.info=oS(e,{fieldNames:t,initWrapper:function(i){return z(z({},i),{},{pathKeyEntities:{}})},processEntity:function(i,a){var s=i.nodes.map(function(l){return l[t.value]}).join(wD);a.pathKeyEntities[s]=i,i.key=s}})),n.current.info.pathKeyEntities},[t,e]);return r};function cae(e,t){var n=d.useMemo(function(){return t||[]},[t]),r=lje(n,e),o=d.useCallback(function(i){var a=r();return i.map(function(s){var l=a[s].nodes;return l.map(function(c){return c[e.value]})})},[r,e]);return[n,r,o]}function cje(e){return d.useMemo(function(){if(!e)return[!1,{}];var t={matchInputWidth:!0,limit:50};return e&&Ht(e)==="object"&&(t=z(z({},t),e)),t.limit<=0&&(t.limit=!1),[!0,t]},[e])}function uae(e,t){var n=new Set;return e.forEach(function(r){t.has(r)||n.add(r)}),n}function uje(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,o=t.checkable;return!!(n||r)||o===!1}function dje(e,t,n,r){for(var o=new Set(e),i=new Set,a=0;a<=n;a+=1){var s=t.get(a)||new Set;s.forEach(function(f){var h=f.key,p=f.node,m=f.children,g=m===void 0?[]:m;o.has(h)&&!r(p)&&g.filter(function(v){return!r(v.node)}).forEach(function(v){o.add(v.key)})})}for(var l=new Set,c=n;c>=0;c-=1){var u=t.get(c)||new Set;u.forEach(function(f){var h=f.parent,p=f.node;if(!(r(p)||!f.parent||l.has(f.parent.key))){if(r(f.parent.node)){l.add(h.key);return}var m=!0,g=!1;(h.children||[]).filter(function(v){return!r(v.node)}).forEach(function(v){var b=v.key,y=o.has(b);m&&!y&&(m=!1),!g&&(y||i.has(b))&&(g=!0)}),m&&o.add(h.key),g&&i.add(h.key),l.add(h.key)}})}return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(uae(i,o))}}function fje(e,t,n,r,o){for(var i=new Set(e),a=new Set(t),s=0;s<=r;s+=1){var l=n.get(s)||new Set;l.forEach(function(h){var p=h.key,m=h.node,g=h.children,v=g===void 0?[]:g;!i.has(p)&&!a.has(p)&&!o(m)&&v.filter(function(b){return!o(b.node)}).forEach(function(b){i.delete(b.key)})})}a=new Set;for(var c=new Set,u=r;u>=0;u-=1){var f=n.get(u)||new Set;f.forEach(function(h){var p=h.parent,m=h.node;if(!(o(m)||!h.parent||c.has(h.parent.key))){if(o(h.parent.node)){c.add(p.key);return}var g=!0,v=!1;(p.children||[]).filter(function(b){return!o(b.node)}).forEach(function(b){var y=b.key,S=i.has(y);g&&!S&&(g=!1),!v&&(S||a.has(y))&&(v=!0)}),g||i.delete(p.key),v&&a.add(p.key),c.add(p.key)}})}return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(uae(a,i))}}function il(e,t,n,r){var o=[],i;r?i=r:i=uje;var a=new Set(e.filter(function(u){var f=!!La(n,u);return f||o.push(u),f})),s=new Map,l=0;Object.keys(n).forEach(function(u){var f=n[u],h=f.level,p=s.get(h);p||(p=new Set,s.set(h,p)),p.add(f),l=Math.max(l,h)}),yr(!o.length,"Tree missing follow keys: ".concat(o.slice(0,100).map(function(u){return"'".concat(u,"'")}).join(", ")));var c;return t===!0?c=dje(a,s,l,i):c=fje(a,t.halfCheckedKeys,s,l,i),c}function dae(e,t,n,r,o,i,a,s){return function(l){if(!e)t(l);else{var c=Gl(l),u=Gg(n),f=Gg(r),h=u.includes(c),p=o.some(function(C){return Gl(C)===c}),m=n,g=o;if(p&&!h)g=o.filter(function(C){return Gl(C)!==c});else{var v=h?u.filter(function(C){return C!==c}):[].concat(Ze(u),[c]),b=i(),y;if(h){var S=il(v,{checked:!1,halfCheckedKeys:f},b);y=S.checkedKeys}else{var w=il(v,!0,b);y=w.checkedKeys}var E=iae(y,i,s);m=a(E)}t([].concat(Ze(g),Ze(m)))}}}function fae(e,t,n,r,o){return d.useMemo(function(){var i=o(t),a=$e(i,2),s=a[0],l=a[1];if(!e||!t.length)return[s,[],l];var c=Gg(s),u=n(),f=il(c,!0,u),h=f.checkedKeys,p=f.halfCheckedKeys;return[r(h),r(p),l]},[e,t,n,r,o])}var hje=d.memo(function(e){var t=e.children;return t},function(e,t){return!t.open});function pje(e){var t,n=e.prefixCls,r=e.checked,o=e.halfChecked,i=e.disabled,a=e.onClick,s=e.disableCheckbox,l=d.useContext(Dv),c=l.checkable,u=typeof c!="boolean"?c:null;return d.createElement("span",{className:xe("".concat(n),(t={},Z(t,"".concat(n,"-checked"),r),Z(t,"".concat(n,"-indeterminate"),!r&&o),Z(t,"".concat(n,"-disabled"),i||s),t)),onClick:a},u)}var hae="__cascader_fix_label__";function mje(e){var t=e.prefixCls,n=e.multiple,r=e.options,o=e.activeValue,i=e.prevValuePath,a=e.onToggleOpen,s=e.onSelect,l=e.onActive,c=e.checkedSet,u=e.halfCheckedSet,f=e.loadingKeys,h=e.isSelectable,p=e.disabled,m="".concat(t,"-menu"),g="".concat(t,"-menu-item"),v=d.useContext(Dv),b=v.fieldNames,y=v.changeOnSelect,S=v.expandTrigger,w=v.expandIcon,E=v.loadingIcon,C=v.dropdownMenuColumnStyle,x=v.optionRender,_=S==="hover",P=function(M){return p||M},O=d.useMemo(function(){return r.map(function(I){var M,T=I.disabled,D=I.disableCheckbox,A=I[sg],j=(M=I[hae])!==null&&M!==void 0?M:I[b.label],k=I[b.value],F=my(I,b),V=A?A.map(function(ee){return ee[b.value]}):[].concat(Ze(i),[k]),W=Gl(V),K=f.includes(W),L=c.has(W),Q=u.has(W);return{disabled:T,label:j,value:k,isLeaf:F,isLoading:K,checked:L,halfChecked:Q,option:I,disableCheckbox:D,fullPath:V,fullPathKey:W}})},[r,c,b,u,f,i]);return d.createElement("ul",{className:m,role:"menu"},O.map(function(I){var M,T=I.disabled,D=I.label,A=I.value,j=I.isLeaf,k=I.isLoading,F=I.checked,V=I.halfChecked,W=I.option,K=I.fullPath,L=I.fullPathKey,Q=I.disableCheckbox,ee=function(){if(!P(T)){var X=Ze(K);_&&j&&X.pop(),l(X)}},re=function(){h(W)&&!P(T)&&s(K,j)},ie;return typeof W.title=="string"?ie=W.title:typeof D=="string"&&(ie=D),d.createElement("li",{key:L,className:xe(g,(M={},Z(M,"".concat(g,"-expand"),!j),Z(M,"".concat(g,"-active"),o===A||o===L),Z(M,"".concat(g,"-disabled"),P(T)),Z(M,"".concat(g,"-loading"),k),M)),style:C,role:"menuitemcheckbox",title:ie,"aria-checked":F,"data-path-key":L,onClick:function(){ee(),!Q&&(!n||j)&&re()},onDoubleClick:function(){y&&a(!1)},onMouseEnter:function(){_&&ee()},onMouseDown:function(X){X.preventDefault()}},n&&d.createElement(pje,{prefixCls:"".concat(t,"-checkbox"),checked:F,halfChecked:V,disabled:P(T)||Q,disableCheckbox:Q,onClick:function(X){Q||(X.stopPropagation(),re())}}),d.createElement("div",{className:"".concat(g,"-content")},x?x(W):D),!k&&w&&!j&&d.createElement("div",{className:"".concat(g,"-expand-icon")},w),k&&E&&d.createElement("div",{className:"".concat(g,"-loading-icon")},E))}))}var gje=function(t,n){var r=d.useContext(Dv),o=r.values,i=o[0],a=d.useState([]),s=$e(a,2),l=s[0],c=s[1];return d.useEffect(function(){t||c(i||[])},[n,i]),[l,c]};const vje=function(e,t,n,r,o,i,a){var s=a.direction,l=a.searchValue,c=a.toggleOpen,u=a.open,f=s==="rtl",h=d.useMemo(function(){for(var C=-1,x=t,_=[],P=[],O=r.length,I=oae(t,n),M=function(k){var F=x.findIndex(function(V,W){return(I[W]?Gl(I[W]):V[n.value])===r[k]});if(F===-1)return 1;C=F,_.push(C),P.push(r[k]),x=x[C][n.children]},T=0;T1){var x=m.slice(0,-1);y(x)}else c(!1)},E=function(){var x,_=((x=v[g])===null||x===void 0?void 0:x[n.children])||[],P=_.find(function(I){return!I.disabled});if(P){var O=[].concat(Ze(m),[P[n.value]]);y(O)}};d.useImperativeHandle(e,function(){return{onKeyDown:function(x){var _=x.which;switch(_){case ut.UP:case ut.DOWN:{var P=0;_===ut.UP?P=-1:_===ut.DOWN&&(P=1),P!==0&&S(P);break}case ut.LEFT:{if(l)break;f?E():w();break}case ut.RIGHT:{if(l)break;f?w():E();break}case ut.BACKSPACE:{l||w();break}case ut.ENTER:{if(m.length){var O=v[g],I=(O==null?void 0:O[sg])||[];I.length?i(I.map(function(M){return M[n.value]}),I[I.length-1]):i(m,v[g])}break}case ut.ESC:c(!1),u&&x.stopPropagation()}},onKeyUp:function(){}}})};var pae=d.forwardRef(function(e,t){var n,r,o,i=e.prefixCls,a=e.multiple,s=e.searchValue,l=e.toggleOpen,c=e.notFoundContent,u=e.direction,f=e.open,h=e.disabled,p=d.useRef(null),m=u==="rtl",g=d.useContext(Dv),v=g.options,b=g.values,y=g.halfValues,S=g.fieldNames,w=g.changeOnSelect,E=g.onSelect,C=g.searchOptions,x=g.dropdownPrefixCls,_=g.loadData,P=g.expandTrigger,O=x||i,I=d.useState([]),M=$e(I,2),T=M[0],D=M[1],A=function(fe){if(!(!_||s)){var te=Yg(fe,v,S),he=te.map(function(Me){var Se=Me.option;return Se}),pe=he[he.length-1];if(pe&&!my(pe,S)){var Oe=Gl(fe);D(function(Me){return[].concat(Ze(Me),[Oe])}),_(he)}}};d.useEffect(function(){T.length&&T.forEach(function(se){var fe=tje(se),te=Yg(fe,v,S,!0).map(function(pe){var Oe=pe.option;return Oe}),he=te[te.length-1];(!he||he[S.children]||my(he,S))&&D(function(pe){return pe.filter(function(Oe){return Oe!==se})})})},[v,T,S]);var j=d.useMemo(function(){return new Set(Gg(b))},[b]),k=d.useMemo(function(){return new Set(Gg(y))},[y]),F=gje(a,f),V=$e(F,2),W=V[0],K=V[1],L=function(fe){K(fe),A(fe)},Q=function(fe){if(h)return!1;var te=fe.disabled,he=my(fe,S);return!te&&(he||w||a)},ee=function(fe,te){var he=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;E(fe),!a&&(te||w&&(P==="hover"||he))&&l(!1)},re=d.useMemo(function(){return s?C:v},[s,C,v]),ie=d.useMemo(function(){for(var se=[{options:re}],fe=re,te=oae(fe,S),he=function(){var Me=W[pe],Se=fe.find(function(ve,be){return(te[be]?Gl(te[be]):ve[S.value])===Me}),ye=Se==null?void 0:Se[S.children];if(!(ye!=null&&ye.length))return 1;fe=ye,se.push({options:ye})},pe=0;pe":b,S=n.loadingIcon,w=n.direction,E=n.notFoundContent,C=E===void 0?"Not Found":E,x=n.disabled,_=!!l,P=xn(c,{value:u,postState:tE}),O=$e(P,2),I=O[0],M=O[1],T=d.useMemo(function(){return rae(f)},[JSON.stringify(f)]),D=cae(T,s),A=$e(D,3),j=A[0],k=A[1],F=A[2],V=aae(j,T),W=fae(_,I,k,F,V),K=$e(W,3),L=K[0],Q=K[1],ee=K[2],re=An(function(ce){if(M(ce),p){var oe=tE(ce),se=oe.map(function(he){return Yg(he,j,T).map(function(pe){return pe.option})}),fe=_?oe:oe[0],te=_?se:se[0];p(fe,te)}}),ie=dae(_,re,L,Q,ee,k,F,m),G=An(function(ce){ie(ce)}),X=d.useMemo(function(){return{options:j,fieldNames:T,values:L,halfValues:Q,changeOnSelect:h,onSelect:G,checkable:l,searchOptions:[],dropdownPrefixCls:void 0,loadData:g,expandTrigger:v,expandIcon:y,loadingIcon:S,dropdownMenuColumnStyle:void 0}},[j,T,L,Q,h,G,l,g,v,y,S]),ne="".concat(o,"-panel"),le=!j.length;return d.createElement(Dv.Provider,{value:X},d.createElement("div",{className:xe(ne,(t={},Z(t,"".concat(ne,"-rtl"),w==="rtl"),Z(t,"".concat(ne,"-empty"),le),t),a),style:i},le?C:d.createElement(pae,{prefixCls:o,searchValue:"",multiple:_,toggleOpen:bje,open:!0,direction:w,disabled:x})))}var Sje=["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","autoClearSearchValue","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","dropdownStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","children","dropdownMatchSelectWidth","showCheckedStrategy","optionRender"],iS=d.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,o=r===void 0?"rc-cascader":r,i=e.fieldNames,a=e.defaultValue,s=e.value,l=e.changeOnSelect,c=e.onChange,u=e.displayRender,f=e.checkable,h=e.autoClearSearchValue,p=h===void 0?!0:h,m=e.searchValue,g=e.onSearch,v=e.showSearch,b=e.expandTrigger,y=e.options,S=e.dropdownPrefixCls,w=e.loadData,E=e.popupVisible,C=e.open,x=e.popupClassName,_=e.dropdownClassName,P=e.dropdownMenuColumnStyle,O=e.dropdownStyle,I=e.popupPlacement,M=e.placement,T=e.onDropdownVisibleChange,D=e.onPopupVisibleChange,A=e.expandIcon,j=A===void 0?">":A,k=e.loadingIcon,F=e.children,V=e.dropdownMatchSelectWidth,W=V===void 0?!1:V,K=e.showCheckedStrategy,L=K===void 0?tae:K,Q=e.optionRender,ee=At(e,Sje),re=VA(n),ie=!!f,G=xn(a,{value:s,postState:tE}),X=$e(G,2),ne=X[0],le=X[1],ce=d.useMemo(function(){return rae(i)},[JSON.stringify(i)]),oe=cae(ce,y),se=$e(oe,3),fe=se[0],te=se[1],he=se[2],pe=xn("",{value:m,postState:function(St){return St||""}}),Oe=$e(pe,2),Me=Oe[0],Se=Oe[1],ye=function(St,wt){Se(St),wt.source!=="blur"&&g&&g(St)},ve=cje(v),be=$e(ve,2),Pe=be[0],Ne=be[1],U=eje(Me,fe,ce,S||o,Ne,l||ie),H=aae(fe,ce),q=fae(ie,ne,te,he,H),me=$e(q,3),Ce=me[0],ue=me[1],Le=me[2],He=d.useMemo(function(){var Lt=Gg(Ce),St=iae(Lt,te,L);return[].concat(Ze(Le),Ze(he(St)))},[Ce,te,he,Le,L]),ge=oje(He,fe,ce,ie,u),De=An(function(Lt){if(le(Lt),c){var St=tE(Lt),wt=St.map(function(We){return Yg(We,fe,ce).map(function(je){return je.option})}),Nt=ie?St:St[0],Be=ie?wt:wt[0];c(Nt,Be)}}),qe=dae(ie,De,Ce,ue,Le,te,he,L),Fe=An(function(Lt){(!ie||p)&&Se(""),qe(Lt)}),Ke=function(St,wt){if(wt.type==="clear"){De([]);return}var Nt=wt.values[0],Be=Nt.valueCells;Fe(Be)},Ue=C!==void 0?C:E,Ve=_||x,Tt=M||I,et=function(St){T==null||T(St),D==null||D(St)},st=d.useMemo(function(){return{options:fe,fieldNames:ce,values:Ce,halfValues:ue,changeOnSelect:l,onSelect:Fe,checkable:f,searchOptions:U,dropdownPrefixCls:S,loadData:w,expandTrigger:b,expandIcon:j,loadingIcon:k,dropdownMenuColumnStyle:P,optionRender:Q}},[fe,ce,Ce,ue,l,Fe,f,U,S,w,b,j,k,P,Q]),yt=!(Me?U:fe).length,gt=Me&&Ne.matchInputWidth||yt?{}:{minWidth:"auto"};return d.createElement(Dv.Provider,{value:st},d.createElement(HA,Ge({},ee,{ref:t,id:re,prefixCls:o,autoClearSearchValue:p,dropdownMatchSelectWidth:W,dropdownStyle:z(z({},gt),O),displayValues:ge,onDisplayValuesChange:Ke,mode:ie?"multiple":void 0,searchValue:Me,onSearch:ye,showSearch:Pe,OptionList:yje,emptyOptions:yt,open:Ue,dropdownClassName:Ve,placement:Tt,onDropdownVisibleChange:et,getRawInputElement:function(){return F}})))});iS.SHOW_PARENT=tae;iS.SHOW_CHILD=nae;iS.Panel=mae;function gae(e,t){const{getPrefixCls:n,direction:r,renderEmpty:o}=d.useContext(Yt),i=t||r,a=n("select",e),s=n("cascader",e);return[a,s,i,o]}function vae(e,t){return d.useMemo(()=>t?d.createElement("span",{className:`${e}-checkbox-inner`}):!1,[t])}const yae=(e,t,n)=>{let r=n;n||(r=t?d.createElement(qg,null):d.createElement(nd,null));const o=d.createElement("span",{className:`${e}-menu-item-loading-icon`},d.createElement(Gc,{spin:!0}));return d.useMemo(()=>[r,o],[r])},Cje=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},Qn(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},Qn(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({},Qn(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({},rc(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${_e(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:`${_e(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 aP(e,t){const n=kn(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[Cje(n)]}const bae=Kn("Checkbox",(e,t)=>{let{prefixCls:n}=t;return[aP(n,e)]}),Sae=e=>{const{prefixCls:t,componentCls:n}=e,r=`${n}-menu-item`,o=` &${r}-expand ${r}-expand-icon, ${r}-loading-icon `;return[aP(`${t}-checkbox`,e),{[n]:{"&-checkbox":{top:0,marginInlineEnd:e.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${n}-menu-empty`]:{[`${n}-menu`]:{width:"100%",height:"auto",[r]:{color:e.colorTextDisabled}}}},"&-menu":{flexGrow:1,flexShrink:0,minWidth:e.controlItemWidth,height:e.dropdownHeight,margin:0,padding:e.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${_e(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&-item":Object.assign(Object.assign({},wa),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:e.optionPadding,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationMid}`,borderRadius:e.borderRadiusSM,"&:hover":{background:e.controlItemBgHover},"&-disabled":{color:e.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[o]:{color:e.colorTextDisabled}},[`&-active:not(${r}-disabled)`]:{"&, &:hover":{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg}},"&-content":{flex:"auto"},[o]:{marginInlineStart:e.paddingXXS,color:e.colorTextDescription,fontSize:e.fontSizeIcon},"&-keyword":{color:e.colorHighlight}})}}}]},wje=e=>{const{componentCls:t,antCls:n}=e;return[{[t]:{width:e.controlWidth}},{[`${t}-dropdown`]:[{[`&${n}-select-dropdown`]:{padding:0}},Sae(e)]},{[`${t}-dropdown-rtl`]:{direction:"rtl"}},Bp(e)]},Cae=e=>{const t=Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:e.controlItemBgActive,optionSelectedFontWeight:e.fontWeightStrong,optionPadding:`${t}px ${e.paddingSM}px`,menuPadding:e.paddingXXS,optionSelectedColor:e.colorText}},wae=Kn("Cascader",e=>[wje(e)],Cae),xje=e=>{const{componentCls:t}=e;return{[`${t}-panel`]:[Sae(e),{display:"inline-flex",border:`${_e(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,borderRadius:e.borderRadiusLG,overflowX:"auto",maxWidth:"100%",[`${t}-menus`]:{alignItems:"stretch"},[`${t}-menu`]:{height:"auto"},"&-empty":{padding:e.paddingXXS}}]}},Eje=lne(["Cascader","Panel"],e=>xje(e),Cae);function _je(e){const{prefixCls:t,className:n,multiple:r,rootClassName:o,notFoundContent:i,direction:a,expandIcon:s,disabled:l}=e,c=d.useContext(zo),u=l??c,[f,h,p,m]=gae(t,a),g=Mr(h),[v,b,y]=wae(h,g);Eje(h);const S=p==="rtl",[w,E]=yae(f,S,s),C=i||(m==null?void 0:m("Cascader"))||d.createElement(X1,{componentName:"Cascader"}),x=vae(h,r);return v(d.createElement(mae,Object.assign({},e,{checkable:x,prefixCls:h,className:xe(n,b,o,y,g),notFoundContent:C,direction:p,expandIcon:w,loadingIcon:E,disabled:u})))}var $je=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 o=0,r=Object.getOwnPropertySymbols(e);ol===0?[s]:[].concat(Ze(a),[t,s]),[]),o=[];let i=0;return r.forEach((a,s)=>{const l=i+a.length;let c=e.slice(i,l);i=l,s%2===1&&(c=d.createElement("span",{className:`${n}-menu-item-keyword`,key:`separator-${s}`},c)),o.push(c)}),o}const Tje=(e,t,n,r)=>{const o=[],i=e.toLowerCase();return t.forEach((a,s)=>{s!==0&&o.push(" / ");let l=a[r.label];const c=typeof l;(c==="string"||c==="number")&&(l=Mje(String(l),i,n)),o.push(l)}),o},jv=d.forwardRef((e,t)=>{var n;const{prefixCls:r,size:o,disabled:i,className:a,rootClassName:s,multiple:l,bordered:c=!0,transitionName:u,choiceTransitionName:f="",popupClassName:h,dropdownClassName:p,expandIcon:m,placement:g,showSearch:v,allowClear:b=!0,notFoundContent:y,direction:S,getPopupContainer:w,status:E,showArrow:C,builtinPlacements:x,style:_,variant:P}=e,O=$je(e,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style","variant"]),I=Yn(O,["suffixIcon"]),{getPopupContainer:M,getPrefixCls:T,popupOverflow:D,cascader:A}=d.useContext(Yt),{status:j,hasFeedback:k,isFormItemInput:F,feedbackIcon:V}=d.useContext(Io),W=md(j,E),[K,L,Q,ee]=gae(r,S),re=Q==="rtl",ie=T(),G=Mr(K),[X,ne,le]=GA(K,G),ce=Mr(L),[oe]=wae(L,ce),{compactSize:se,compactItemClassnames:fe}=gc(K,S),[te,he]=gd("cascader",P,c),pe=y||(ee==null?void 0:ee("Cascader"))||d.createElement(X1,{componentName:"Cascader"}),Oe=xe(h||p,`${L}-dropdown`,{[`${L}-dropdown-rtl`]:Q==="rtl"},s,G,ce,ne,le),Me=d.useMemo(()=>{if(!v)return v;let ge={render:Tje};return typeof v=="object"&&(ge=Object.assign(Object.assign({},ge),v)),ge},[v]),Se=Eo(ge=>{var De;return(De=o??se)!==null&&De!==void 0?De:ge}),ye=d.useContext(zo),ve=i??ye,[be,Pe]=yae(K,re,m),Ne=vae(L,l),U=YA(e.suffixIcon,C),{suffixIcon:H,removeIcon:q,clearIcon:me}=U$(Object.assign(Object.assign({},e),{hasFeedback:k,feedbackIcon:V,showSuffixIcon:U,multiple:l,prefixCls:K,componentName:"Cascader"})),Ce=d.useMemo(()=>g!==void 0?g:re?"bottomRight":"bottomLeft",[g,re]),ue=b===!0?{clearIcon:me}:b,[Le]=vl("SelectLike",(n=I.dropdownStyle)===null||n===void 0?void 0:n.zIndex),He=d.createElement(iS,Object.assign({prefixCls:K,className:xe(!r&&L,{[`${K}-lg`]:Se==="large",[`${K}-sm`]:Se==="small",[`${K}-rtl`]:re,[`${K}-${te}`]:he,[`${K}-in-form-item`]:F},ac(K,W,k),fe,A==null?void 0:A.className,a,s,G,ce,ne,le),disabled:ve,style:Object.assign(Object.assign({},A==null?void 0:A.style),_)},I,{builtinPlacements:qA(x,D),direction:Q,placement:Ce,notFoundContent:pe,allowClear:ue,showSearch:Me,expandIcon:be,suffixIcon:H,removeIcon:q,loadingIcon:Pe,checkable:Ne,dropdownClassName:Oe,dropdownPrefixCls:r||L,dropdownStyle:Object.assign(Object.assign({},I.dropdownStyle),{zIndex:Le}),choiceTransitionName:Mi(ie,"",f),transitionName:Mi(ie,"slide-up",u),getPopupContainer:w||M,ref:t}));return oe(X(He))}),Rje=jf(jv,"dropdownAlign",e=>Yn(e,["visible"]));jv.SHOW_PARENT=Oje;jv.SHOW_CHILD=Pje;jv.Panel=_je;jv._InternalPanelDoNotUseOrYouWillBeFired=Rje;const xae=de.createContext(null);var Ije=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 o=0,r=Object.getOwnPropertySymbols(e);o{var n;const{prefixCls:r,className:o,rootClassName:i,children:a,indeterminate:s=!1,style:l,onMouseEnter:c,onMouseLeave:u,skipGroup:f=!1,disabled:h}=e,p=Ije(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:m,direction:g,checkbox:v}=d.useContext(Yt),b=d.useContext(xae),{isFormItemInput:y}=d.useContext(Io),S=d.useContext(zo),w=(n=(b==null?void 0:b.disabled)||h)!==null&&n!==void 0?n:S,E=d.useRef(p.value),C=d.useRef(null),x=bi(t,C);d.useEffect(()=>{b==null||b.registerValue(p.value)},[]),d.useEffect(()=>{if(!f)return p.value!==E.current&&(b==null||b.cancelValue(E.current),b==null||b.registerValue(p.value),E.current=p.value),()=>b==null?void 0:b.cancelValue(p.value)},[p.value]),d.useEffect(()=>{var F;!((F=C.current)===null||F===void 0)&&F.input&&(C.current.input.indeterminate=s)},[s]);const _=m("checkbox",r),P=Mr(_),[O,I,M]=bae(_,P),T=Object.assign({},p);b&&!f&&(T.onChange=function(){p.onChange&&p.onChange.apply(p,arguments),b.toggleOption&&b.toggleOption({label:a,value:p.value})},T.name=b.name,T.checked=b.value.includes(p.value));const D=xe(`${_}-wrapper`,{[`${_}-rtl`]:g==="rtl",[`${_}-wrapper-checked`]:T.checked,[`${_}-wrapper-disabled`]:w,[`${_}-wrapper-in-form-item`]:y},v==null?void 0:v.className,o,i,M,P,I),A=xe({[`${_}-indeterminate`]:s},w$,I),[j,k]=Aie(T.onClick);return O(d.createElement(H1,{component:"Checkbox",disabled:w},d.createElement("label",{className:D,style:Object.assign(Object.assign({},v==null?void 0:v.style),l),onMouseEnter:c,onMouseLeave:u,onClick:j},d.createElement(Nie,Object.assign({},T,{onClick:k,prefixCls:_,className:A,disabled:w,ref:x})),a!==void 0&&d.createElement("span",null,a))))},Eae=d.forwardRef(kje);var Nje=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 o=0,r=Object.getOwnPropertySymbols(e);o{const{defaultValue:n,children:r,options:o=[],prefixCls:i,className:a,rootClassName:s,style:l,onChange:c}=e,u=Nje(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:f,direction:h}=d.useContext(Yt),[p,m]=d.useState(u.value||n||[]),[g,v]=d.useState([]);d.useEffect(()=>{"value"in u&&m(u.value||[])},[u.value]);const b=d.useMemo(()=>o.map(A=>typeof A=="string"||typeof A=="number"?{label:A,value:A}:A),[o]),y=A=>{v(j=>j.filter(k=>k!==A))},S=A=>{v(j=>[].concat(Ze(j),[A]))},w=A=>{const j=p.indexOf(A.value),k=Ze(p);j===-1?k.push(A.value):k.splice(j,1),"value"in u||m(k),c==null||c(k.filter(F=>g.includes(F)).sort((F,V)=>{const W=b.findIndex(L=>L.value===F),K=b.findIndex(L=>L.value===V);return W-K}))},E=f("checkbox",i),C=`${E}-group`,x=Mr(E),[_,P,O]=bae(E,x),I=Yn(u,["value","disabled"]),M=o.length?b.map(A=>d.createElement(Eae,{prefixCls:E,key:A.value.toString(),disabled:"disabled"in A?A.disabled:u.disabled,value:A.value,checked:p.includes(A.value),onChange:A.onChange,className:`${C}-item`,style:A.style,title:A.title,id:A.id,required:A.required},A.label)):r,T={toggleOption:w,value:p,disabled:u.disabled,name:u.name,registerValue:S,cancelValue:y},D=xe(C,{[`${C}-rtl`]:h==="rtl"},a,s,O,x,P);return _(d.createElement("div",Object.assign({className:D,style:l},I,{ref:t}),d.createElement(xae.Provider,{value:T},M)))}),od=Eae;od.Group=Aje;od.__ANT_CHECKBOX=!0;const _ae=d.createContext({});var Dje=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 o=0,r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:n,direction:r}=d.useContext(Yt),{gutter:o,wrap:i}=d.useContext(_ae),{prefixCls:a,span:s,order:l,offset:c,push:u,pull:f,className:h,children:p,flex:m,style:g}=e,v=Dje(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),b=n("col",a),[y,S,w]=a4e(b),E={};let C={};jje.forEach(P=>{let O={};const I=e[P];typeof I=="number"?O.span=I:typeof I=="object"&&(O=I||{}),delete v[P],C=Object.assign(Object.assign({},C),{[`${b}-${P}-${O.span}`]:O.span!==void 0,[`${b}-${P}-order-${O.order}`]:O.order||O.order===0,[`${b}-${P}-offset-${O.offset}`]:O.offset||O.offset===0,[`${b}-${P}-push-${O.push}`]:O.push||O.push===0,[`${b}-${P}-pull-${O.pull}`]:O.pull||O.pull===0,[`${b}-rtl`]:r==="rtl"}),O.flex&&(C[`${b}-${P}-flex`]=!0,E[`--${b}-${P}-flex`]=XH(O.flex))});const x=xe(b,{[`${b}-${s}`]:s!==void 0,[`${b}-order-${l}`]:l,[`${b}-offset-${c}`]:c,[`${b}-push-${u}`]:u,[`${b}-pull-${f}`]:f},h,C,S,w),_={};if(o&&o[0]>0){const P=o[0]/2;_.paddingLeft=P,_.paddingRight=P}return m&&(_.flex=XH(m),i===!1&&!_.minWidth&&(_.minWidth=0)),y(d.createElement("div",Object.assign({},v,{style:Object.assign(Object.assign(Object.assign({},_),g),E),className:x,ref:t}),p))});var Fje=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 o=0,r=Object.getOwnPropertySymbols(e);o{if(typeof e=="string"&&r(e),typeof e=="object")for(let i=0;i<$f.length;i++){const a=$f[i];if(!t[a])continue;const s=e[a];if(s!==void 0){r(s);return}}};return d.useEffect(()=>{o()},[JSON.stringify(e),t]),n}const sP=d.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:o,className:i,style:a,children:s,gutter:l=0,wrap:c}=e,u=Fje(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:h}=d.useContext(Yt),[p,m]=d.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[g,v]=d.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),b=QH(o,g),y=QH(r,g),S=d.useRef(l),w=soe();d.useEffect(()=>{const k=w.subscribe(F=>{v(F);const V=S.current||0;(!Array.isArray(V)&&typeof V=="object"||Array.isArray(V)&&(typeof V[0]=="object"||typeof V[1]=="object"))&&m(F)});return()=>w.unsubscribe(k)},[]);const E=()=>{const k=[void 0,void 0];return(Array.isArray(l)?l:[l,void 0]).forEach((V,W)=>{if(typeof V=="object")for(let K=0;K<$f.length;K++){const L=$f[K];if(p[L]&&V[L]!==void 0){k[W]=V[L];break}}else k[W]=V}),k},C=f("row",n),[x,_,P]=i4e(C),O=E(),I=xe(C,{[`${C}-no-wrap`]:c===!1,[`${C}-${y}`]:y,[`${C}-${b}`]:b,[`${C}-rtl`]:h==="rtl"},i,_,P),M={},T=O[0]!=null&&O[0]>0?O[0]/-2:void 0;T&&(M.marginLeft=T,M.marginRight=T);const[D,A]=O;M.rowGap=A;const j=d.useMemo(()=>({gutter:[D,A],wrap:c}),[D,A,c]);return x(d.createElement(_ae.Provider,{value:j},d.createElement("div",Object.assign({},u,{className:I,style:Object.assign(Object.assign({},M),a),ref:t}),s)))}),Lje=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o,textPaddingInline:i,orientationMargin:a,verticalMarginInline:s}=e;return{[t]:Object.assign(Object.assign({},Qn(e)),{borderBlockStart:`${_e(o)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:s,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${_e(o)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${_e(e.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${_e(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${_e(o)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:`calc(${a} * 100%)`},"&::after":{width:`calc(100% - ${a} * 100%)`}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:`calc(100% - ${a} * 100%)`},"&::after":{width:`calc(${a} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:i},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${_e(o)} 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:r,borderStyle:"dotted",borderWidth:`${_e(o)} 0 0`},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},Bje=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),zje=Kn("Divider",e=>{const t=kn(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[Lje(t)]},Bje,{unitless:{orientationMargin:!0}});var Hje=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 o=0,r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:t,direction:n,divider:r}=d.useContext(Yt),{prefixCls:o,type:i="horizontal",orientation:a="center",orientationMargin:s,className:l,rootClassName:c,children:u,dashed:f,variant:h="solid",plain:p,style:m}=e,g=Hje(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style"]),v=t("divider",o),[b,y,S]=zje(v),w=!!u,E=a==="left"&&s!=null,C=a==="right"&&s!=null,x=xe(v,r==null?void 0:r.className,y,S,`${v}-${i}`,{[`${v}-with-text`]:w,[`${v}-with-text-${a}`]:w,[`${v}-dashed`]:!!f,[`${v}-${h}`]:h!=="solid",[`${v}-plain`]:!!p,[`${v}-rtl`]:n==="rtl",[`${v}-no-default-orientation-margin-left`]:E,[`${v}-no-default-orientation-margin-right`]:C},l,c),_=d.useMemo(()=>typeof s=="number"?s:/^\d+$/.test(s)?Number(s):s,[s]),P=Object.assign(Object.assign({},E&&{marginLeft:_}),C&&{marginRight:_});return b(d.createElement("div",Object.assign({className:x,style:Object.assign(Object.assign({},r==null?void 0:r.style),m)},g,{role:"separator"}),u&&i!=="vertical"&&d.createElement("span",{className:`${v}-inner-text`,style:P},u)))};var JH=function(t,n){if(!t)return null;var r={left:t.offsetLeft,right:t.parentElement.clientWidth-t.clientWidth-t.offsetLeft,width:t.clientWidth,top:t.offsetTop,bottom:t.parentElement.clientHeight-t.clientHeight-t.offsetTop,height:t.clientHeight};return n?{left:0,right:0,width:0,top:r.top,bottom:r.bottom,height:r.height}:{left:r.left,right:r.right,width:r.width,top:0,bottom:0,height:0}},xc=function(t){return t!==void 0?"".concat(t,"px"):void 0};function Wje(e){var t=e.prefixCls,n=e.containerRef,r=e.value,o=e.getValueIndex,i=e.motionName,a=e.onMotionStart,s=e.onMotionEnd,l=e.direction,c=e.vertical,u=c===void 0?!1:c,f=d.useRef(null),h=d.useState(r),p=$e(h,2),m=p[0],g=p[1],v=function(A){var j,k=o(A),F=(j=n.current)===null||j===void 0?void 0:j.querySelectorAll(".".concat(t,"-item"))[k];return(F==null?void 0:F.offsetParent)&&F},b=d.useState(null),y=$e(b,2),S=y[0],w=y[1],E=d.useState(null),C=$e(E,2),x=C[0],_=C[1];Zn(function(){if(m!==r){var D=v(m),A=v(r),j=JH(D,u),k=JH(A,u);g(r),w(j),_(k),D&&A?a():s()}},[r]);var P=d.useMemo(function(){if(u){var D;return xc((D=S==null?void 0:S.top)!==null&&D!==void 0?D:0)}return xc(l==="rtl"?-(S==null?void 0:S.right):S==null?void 0:S.left)},[u,l,S]),O=d.useMemo(function(){if(u){var D;return xc((D=x==null?void 0:x.top)!==null&&D!==void 0?D:0)}return xc(l==="rtl"?-(x==null?void 0:x.right):x==null?void 0:x.left)},[u,l,x]),I=function(){return u?{transform:"translateY(var(--thumb-start-top))",height:"var(--thumb-start-height)"}:{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"}},M=function(){return u?{transform:"translateY(var(--thumb-active-top))",height:"var(--thumb-active-height)"}:{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"}},T=function(){w(null),_(null),s()};return!S||!x?null:d.createElement(Jo,{visible:!0,motionName:i,motionAppear:!0,onAppearStart:I,onAppearActive:M,onVisibleChanged:T},function(D,A){var j=D.className,k=D.style,F=z(z({},k),{},{"--thumb-start-left":P,"--thumb-start-width":xc(S==null?void 0:S.width),"--thumb-active-left":O,"--thumb-active-width":xc(x==null?void 0:x.width),"--thumb-start-top":P,"--thumb-start-height":xc(S==null?void 0:S.height),"--thumb-active-top":O,"--thumb-active-height":xc(x==null?void 0:x.height)}),V={ref:bi(f,A),style:F,className:xe("".concat(t,"-thumb"),j)};return d.createElement("div",V)})}var Vje=["prefixCls","direction","vertical","options","disabled","defaultValue","value","name","onChange","className","motionName"];function Kje(e){if(typeof e.title<"u")return e.title;if(Ht(e.label)!=="object"){var t;return(t=e.label)===null||t===void 0?void 0:t.toString()}}function qje(e){return e.map(function(t){if(Ht(t)==="object"&&t!==null){var n=Kje(t);return z(z({},t),{},{title:n})}return{label:t==null?void 0:t.toString(),title:t==null?void 0:t.toString(),value:t}})}var Gje=function(t){var n=t.prefixCls,r=t.className,o=t.disabled,i=t.checked,a=t.label,s=t.title,l=t.value,c=t.name,u=t.onChange,f=t.onFocus,h=t.onBlur,p=t.onKeyDown,m=t.onKeyUp,g=t.onMouseDown,v=function(y){o||u(y,l)};return d.createElement("label",{className:xe(r,Z({},"".concat(n,"-item-disabled"),o)),onMouseDown:g},d.createElement("input",{name:c,className:"".concat(n,"-item-input"),type:"radio",disabled:o,checked:i,onChange:v,onFocus:f,onBlur:h,onKeyDown:p,onKeyUp:m}),d.createElement("div",{className:"".concat(n,"-item-label"),title:s,"aria-selected":i},a))},Yje=d.forwardRef(function(e,t){var n,r,o=e.prefixCls,i=o===void 0?"rc-segmented":o,a=e.direction,s=e.vertical,l=e.options,c=l===void 0?[]:l,u=e.disabled,f=e.defaultValue,h=e.value,p=e.name,m=e.onChange,g=e.className,v=g===void 0?"":g,b=e.motionName,y=b===void 0?"thumb-motion":b,S=At(e,Vje),w=d.useRef(null),E=d.useMemo(function(){return bi(w,t)},[w,t]),C=d.useMemo(function(){return qje(c)},[c]),x=xn((n=C[0])===null||n===void 0?void 0:n.value,{value:h,defaultValue:f}),_=$e(x,2),P=_[0],O=_[1],I=d.useState(!1),M=$e(I,2),T=M[0],D=M[1],A=function(oe,se){O(se),m==null||m(se)},j=Yn(S,["children"]),k=d.useState(!1),F=$e(k,2),V=F[0],W=F[1],K=d.useState(!1),L=$e(K,2),Q=L[0],ee=L[1],re=function(){ee(!0)},ie=function(){ee(!1)},G=function(){W(!1)},X=function(oe){oe.key==="Tab"&&W(!0)},ne=function(oe){var se=C.findIndex(function(pe){return pe.value===P}),fe=C.length,te=(se+oe+fe)%fe,he=C[te];he&&(O(he.value),m==null||m(he.value))},le=function(oe){switch(oe.key){case"ArrowLeft":case"ArrowUp":ne(-1);break;case"ArrowRight":case"ArrowDown":ne(1);break}};return d.createElement("div",Ge({role:"radiogroup","aria-label":"segmented control",tabIndex:u?void 0:0},j,{className:xe(i,(r={},Z(r,"".concat(i,"-rtl"),a==="rtl"),Z(r,"".concat(i,"-disabled"),u),Z(r,"".concat(i,"-vertical"),s),r),v),ref:E}),d.createElement("div",{className:"".concat(i,"-group")},d.createElement(Wje,{vertical:s,prefixCls:i,value:P,containerRef:w,motionName:"".concat(i,"-").concat(y),direction:a,getValueIndex:function(oe){return C.findIndex(function(se){return se.value===oe})},onMotionStart:function(){D(!0)},onMotionEnd:function(){D(!1)}}),C.map(function(ce){var oe;return d.createElement(Gje,Ge({},ce,{name:p,key:ce.value,prefixCls:i,className:xe(ce.className,"".concat(i,"-item"),(oe={},Z(oe,"".concat(i,"-item-selected"),ce.value===P&&!T),Z(oe,"".concat(i,"-item-focused"),Q&&V&&ce.value===P),oe)),checked:ce.value===P,onChange:A,onFocus:re,onBlur:ie,onKeyDown:le,onKeyUp:X,onMouseDown:G,disabled:!!u||!!ce.disabled}))})))}),Xje=Yje;function ZH(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function eU(e){return{backgroundColor:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}}const Qje=Object.assign({overflow:"hidden"},wa),Jje=e=>{const{componentCls:t}=e,n=e.calc(e.controlHeight).sub(e.calc(e.trackPadding).mul(2)).equal(),r=e.calc(e.controlHeightLG).sub(e.calc(e.trackPadding).mul(2)).equal(),o=e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Qn(e)),{display:"inline-block",padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`}),Ka(e)),{[`${t}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",flexDirection:"row",width:"100%"},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-vertical`]:{[`${t}-group`]:{flexDirection:"column"},[`${t}-thumb`]:{width:"100%",height:0,padding:`0 ${_e(e.paddingXXS)}`}},[`&${t}-block`]:{display:"flex"},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${e.motionDurationMid} ${e.motionEaseInOut}`,borderRadius:e.borderRadiusSM,transform:"translateZ(0)","&-selected":Object.assign(Object.assign({},eU(e)),{color:e.itemSelectedColor}),"&-focused":Object.assign({},rc(e)),"&::after":{content:'""',position:"absolute",zIndex:-1,width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",transition:`background-color ${e.motionDurationMid}`,pointerEvents:"none"},[`&:hover:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.itemHoverColor,"&::after":{backgroundColor:e.itemHoverBg}},[`&:active:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.itemHoverColor,"&::after":{backgroundColor:e.itemActiveBg}},"&-label":Object.assign({minHeight:n,lineHeight:_e(n),padding:`0 ${_e(e.segmentedPaddingHorizontal)}`},Qje),"&-icon + *":{marginInlineStart:e.calc(e.marginSM).div(2).equal()},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${t}-thumb`]:Object.assign(Object.assign({},eU(e)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${_e(e.paddingXXS)} 0`,borderRadius:e.borderRadiusSM,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, height ${e.motionDurationSlow} ${e.motionEaseInOut}`,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:"transparent"}}),[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:r,lineHeight:_e(r),padding:`0 ${_e(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:o,lineHeight:_e(o),padding:`0 ${_e(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}}}),ZH(`&-disabled ${t}-item`,e)),ZH(`${t}-item-disabled`,e)),{[`${t}-thumb-motion-appear-active`]:{transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,willChange:"transform, width"}})}},Zje=e=>{const{colorTextLabel:t,colorText:n,colorFillSecondary:r,colorBgElevated:o,colorFill:i,lineWidthBold:a,colorBgLayout:s}=e;return{trackPadding:a,trackBg:s,itemColor:t,itemHoverColor:n,itemHoverBg:r,itemSelectedBg:o,itemActiveBg:i,itemSelectedColor:n}},eFe=Kn("Segmented",e=>{const{lineWidth:t,calc:n}=e,r=kn(e,{segmentedPaddingHorizontal:n(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:n(e.controlPaddingHorizontalSM).sub(t).equal()});return[Jje(r)]},Zje);var tU=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 o=0,r=Object.getOwnPropertySymbols(e);o{const n=N$(),{prefixCls:r,className:o,rootClassName:i,block:a,options:s=[],size:l="middle",style:c,vertical:u,name:f=n}=e,h=tU(e,["prefixCls","className","rootClassName","block","options","size","style","vertical","name"]),{getPrefixCls:p,direction:m,segmented:g}=d.useContext(Yt),v=p("segmented",r),[b,y,S]=eFe(v),w=Eo(l),E=d.useMemo(()=>s.map(_=>{if(tFe(_)){const{icon:P,label:O}=_,I=tU(_,["icon","label"]);return Object.assign(Object.assign({},I),{label:d.createElement(d.Fragment,null,d.createElement("span",{className:`${v}-item-icon`},P),O&&d.createElement("span",null,O))})}return _}),[s,v]),C=xe(o,i,g==null?void 0:g.className,{[`${v}-block`]:a,[`${v}-sm`]:w==="small",[`${v}-lg`]:w==="large",[`${v}-vertical`]:u},y,S),x=Object.assign(Object.assign({},g==null?void 0:g.style),c);return b(d.createElement(Xje,Object.assign({},h,{name:f,className:C,style:x,options:E,ref:t,prefixCls:v,direction:m,vertical:u})))}),$ae=nFe,Pae=de.createContext({}),Oae=de.createContext({}),Mae=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=()=>{if(r&&n&&!n.cleared){const i=n.toHsb();i.a=0;const a=oa(i);a.cleared=!0,r(a)}};return de.createElement("div",{className:`${t}-clear`,onClick:o})};var yf;(function(e){e.hex="hex",e.rgb="rgb",e.hsb="hsb"})(yf||(yf={}));var rFe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},oFe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:rFe}))},iFe=d.forwardRef(oFe);function g6(){return typeof BigInt=="function"}function Tae(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function Yh(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var r=t||"0",o=r.split("."),i=o[0]||"0",a=o[1]||"0";i==="0"&&a==="0"&&(n=!1);var s=n?"-":"";return{negative:n,negativeStr:s,trimStr:r,integerStr:i,decimalStr:a,fullStr:"".concat(s).concat(r)}}function xD(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function Th(e){var t=String(e);if(xD(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return r!=null&&r[1]&&(n+=r[1].length),n}return t.includes(".")&&ED(t)?t.length-t.indexOf(".")-1:0}function lP(e){var t=String(e);if(xD(e)){if(e>Number.MAX_SAFE_INTEGER)return String(g6()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":Yh("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),sFe=function(){function e(t){if(br(this,e),Z(this,"origin",""),Z(this,"number",void 0),Z(this,"empty",void 0),Tae(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return Sr(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=Number(n);if(Number.isNaN(r))return this;var o=this.number+r;if(o>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(oNumber.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(o0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":lP(this.number):this.origin}}]),e}();function Pl(e){return g6()?new aFe(e):new sFe(e)}function lx(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var o=Yh(e),i=o.negativeStr,a=o.integerStr,s=o.decimalStr,l="".concat(t).concat(s),c="".concat(i).concat(a);if(n>=0){var u=Number(s[n]);if(u>=5&&!r){var f=Pl(e).add("".concat(i,"0.").concat("0".repeat(n)).concat(10-u));return lx(f.toString(),t,n,r)}return n===0?c:"".concat(c).concat(t).concat(s.padEnd(n,"0").slice(0,n))}return l===".0"?c:"".concat(c).concat(l)}function lFe(e){return!!(e.addonBefore||e.addonAfter)}function cFe(e){return!!(e.prefix||e.suffix||e.allowClear)}function nU(e,t,n){var r=t.cloneNode(!0),o=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)},o}function nE(e,t,n,r){if(n){var o=t;if(t.type==="click"){o=nU(t,e,""),n(o);return}if(e.type!=="file"&&r!==void 0){o=nU(t,e,r),n(o);return}n(o)}}function _D(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var o=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(o,o);break;default:e.setSelectionRange(0,o)}}}}var $D=de.forwardRef(function(e,t){var n,r,o,i=e.inputElement,a=e.children,s=e.prefixCls,l=e.prefix,c=e.suffix,u=e.addonBefore,f=e.addonAfter,h=e.className,p=e.style,m=e.disabled,g=e.readOnly,v=e.focused,b=e.triggerFocus,y=e.allowClear,S=e.value,w=e.handleReset,E=e.hidden,C=e.classes,x=e.classNames,_=e.dataAttrs,P=e.styles,O=e.components,I=e.onClear,M=a??i,T=(O==null?void 0:O.affixWrapper)||"span",D=(O==null?void 0:O.groupWrapper)||"span",A=(O==null?void 0:O.wrapper)||"span",j=(O==null?void 0:O.groupAddon)||"span",k=d.useRef(null),F=function(te){var he;(he=k.current)!==null&&he!==void 0&&he.contains(te.target)&&(b==null||b())},V=cFe(e),W=d.cloneElement(M,{value:S,className:xe((n=M.props)===null||n===void 0?void 0:n.className,!V&&(x==null?void 0:x.variant))||null}),K=d.useRef(null);if(de.useImperativeHandle(t,function(){return{nativeElement:K.current||k.current}}),V){var L=null;if(y){var Q=!m&&!g&&S,ee="".concat(s,"-clear-icon"),re=Ht(y)==="object"&&y!==null&&y!==void 0&&y.clearIcon?y.clearIcon:"✖";L=de.createElement("button",{type:"button",onClick:function(te){w==null||w(te),I==null||I()},onMouseDown:function(te){return te.preventDefault()},className:xe(ee,Z(Z({},"".concat(ee,"-hidden"),!Q),"".concat(ee,"-has-suffix"),!!c))},re)}var ie="".concat(s,"-affix-wrapper"),G=xe(ie,Z(Z(Z(Z(Z({},"".concat(s,"-disabled"),m),"".concat(ie,"-disabled"),m),"".concat(ie,"-focused"),v),"".concat(ie,"-readonly"),g),"".concat(ie,"-input-with-clear-btn"),c&&y&&S),C==null?void 0:C.affixWrapper,x==null?void 0:x.affixWrapper,x==null?void 0:x.variant),X=(c||y)&&de.createElement("span",{className:xe("".concat(s,"-suffix"),x==null?void 0:x.suffix),style:P==null?void 0:P.suffix},L,c);W=de.createElement(T,Ge({className:G,style:P==null?void 0:P.affixWrapper,onClick:F},_==null?void 0:_.affixWrapper,{ref:k}),l&&de.createElement("span",{className:xe("".concat(s,"-prefix"),x==null?void 0:x.prefix),style:P==null?void 0:P.prefix},l),W,X)}if(lFe(e)){var ne="".concat(s,"-group"),le="".concat(ne,"-addon"),ce="".concat(ne,"-wrapper"),oe=xe("".concat(s,"-wrapper"),ne,C==null?void 0:C.wrapper,x==null?void 0:x.wrapper),se=xe(ce,Z({},"".concat(ce,"-disabled"),m),C==null?void 0:C.group,x==null?void 0:x.groupWrapper);W=de.createElement(D,{className:se,ref:K},de.createElement(A,{className:oe},u&&de.createElement(j,{className:le},u),W,f&&de.createElement(j,{className:le},f)))}return de.cloneElement(W,{className:xe((r=W.props)===null||r===void 0?void 0:r.className,h)||null,style:z(z({},(o=W.props)===null||o===void 0?void 0:o.style),p),hidden:E})}),uFe=["show"];function Rae(e,t){return d.useMemo(function(){var n={};t&&(n.show=Ht(t)==="object"&&t.formatter?t.formatter:!!t),n=z(z({},n),e);var r=n,o=r.show,i=At(r,uFe);return z(z({},i),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:i.strategy||function(a){return a.length}})},[e,t])}var dFe=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],fFe=d.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,o=e.onFocus,i=e.onBlur,a=e.onPressEnter,s=e.onKeyDown,l=e.onKeyUp,c=e.prefixCls,u=c===void 0?"rc-input":c,f=e.disabled,h=e.htmlSize,p=e.className,m=e.maxLength,g=e.suffix,v=e.showCount,b=e.count,y=e.type,S=y===void 0?"text":y,w=e.classes,E=e.classNames,C=e.styles,x=e.onCompositionStart,_=e.onCompositionEnd,P=At(e,dFe),O=d.useState(!1),I=$e(O,2),M=I[0],T=I[1],D=d.useRef(!1),A=d.useRef(!1),j=d.useRef(null),k=d.useRef(null),F=function(Pe){j.current&&_D(j.current,Pe)},V=xn(e.defaultValue,{value:e.value}),W=$e(V,2),K=W[0],L=W[1],Q=K==null?"":String(K),ee=d.useState(null),re=$e(ee,2),ie=re[0],G=re[1],X=Rae(b,v),ne=X.max||m,le=X.strategy(Q),ce=!!ne&&le>ne;d.useImperativeHandle(t,function(){var be;return{focus:F,blur:function(){var Ne;(Ne=j.current)===null||Ne===void 0||Ne.blur()},setSelectionRange:function(Ne,U,H){var q;(q=j.current)===null||q===void 0||q.setSelectionRange(Ne,U,H)},select:function(){var Ne;(Ne=j.current)===null||Ne===void 0||Ne.select()},input:j.current,nativeElement:((be=k.current)===null||be===void 0?void 0:be.nativeElement)||j.current}}),d.useEffect(function(){A.current&&(A.current=!1),T(function(be){return be&&f?!1:be})},[f]);var oe=function(Pe,Ne,U){var H=Ne;if(!D.current&&X.exceedFormatter&&X.max&&X.strategy(Ne)>X.max){if(H=X.exceedFormatter(Ne,{max:X.max}),Ne!==H){var q,me;G([((q=j.current)===null||q===void 0?void 0:q.selectionStart)||0,((me=j.current)===null||me===void 0?void 0:me.selectionEnd)||0])}}else if(U.source==="compositionEnd")return;L(H),j.current&&nE(j.current,Pe,r,H)};d.useEffect(function(){if(ie){var be;(be=j.current)===null||be===void 0||be.setSelectionRange.apply(be,Ze(ie))}},[ie]);var se=function(Pe){oe(Pe,Pe.target.value,{source:"change"})},fe=function(Pe){D.current=!1,oe(Pe,Pe.currentTarget.value,{source:"compositionEnd"}),_==null||_(Pe)},te=function(Pe){a&&Pe.key==="Enter"&&!A.current&&(A.current=!0,a(Pe)),s==null||s(Pe)},he=function(Pe){Pe.key==="Enter"&&(A.current=!1),l==null||l(Pe)},pe=function(Pe){T(!0),o==null||o(Pe)},Oe=function(Pe){A.current&&(A.current=!1),T(!1),i==null||i(Pe)},Me=function(Pe){L(""),F(),j.current&&nE(j.current,Pe,r)},Se=ce&&"".concat(u,"-out-of-range"),ye=function(){var Pe=Yn(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return de.createElement("input",Ge({autoComplete:n},Pe,{onChange:se,onFocus:pe,onBlur:Oe,onKeyDown:te,onKeyUp:he,className:xe(u,Z({},"".concat(u,"-disabled"),f),E==null?void 0:E.input),style:C==null?void 0:C.input,ref:j,size:h,type:S,onCompositionStart:function(U){D.current=!0,x==null||x(U)},onCompositionEnd:fe}))},ve=function(){var Pe=Number(ne)>0;if(g||X.show){var Ne=X.showFormatter?X.showFormatter({value:Q,count:le,maxLength:ne}):"".concat(le).concat(Pe?" / ".concat(ne):"");return de.createElement(de.Fragment,null,X.show&&de.createElement("span",{className:xe("".concat(u,"-show-count-suffix"),Z({},"".concat(u,"-show-count-has-suffix"),!!g),E==null?void 0:E.count),style:z({},C==null?void 0:C.count)},Ne),g)}return null};return de.createElement($D,Ge({},P,{prefixCls:u,className:xe(p,Se),handleReset:Me,value:Q,focused:M,triggerFocus:F,suffix:ve(),disabled:f,classes:w,classNames:E,styles:C}),ye())});function hFe(e,t){return typeof Proxy<"u"&&e?new Proxy(e,{get:function(r,o){if(t[o])return t[o];var i=r[o];return typeof i=="function"?i.bind(r):i}}):e}function pFe(e,t){var n=d.useRef(null);function r(){try{var i=e.selectionStart,a=e.selectionEnd,s=e.value,l=s.substring(0,i),c=s.substring(a);n.current={start:i,end:a,value:s,beforeTxt:l,afterTxt:c}}catch{}}function o(){if(e&&n.current&&t)try{var i=e.value,a=n.current,s=a.beforeTxt,l=a.afterTxt,c=a.start,u=i.length;if(i.startsWith(s))u=s.length;else if(i.endsWith(l))u=i.length-n.current.afterTxt.length;else{var f=s[c-1],h=i.indexOf(f,c-1);h!==-1&&(u=h+1)}e.setSelectionRange(u,u)}catch(p){yr(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(p.message))}}return[r,o]}var mFe=function(){var t=d.useState(!1),n=$e(t,2),r=n[0],o=n[1];return Zn(function(){o(F$())},[]),r},gFe=200,vFe=600;function yFe(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,o=e.upDisabled,i=e.downDisabled,a=e.onStep,s=d.useRef(),l=d.useRef([]),c=d.useRef();c.current=a;var u=function(){clearTimeout(s.current)},f=function(S,w){S.preventDefault(),u(),c.current(w);function E(){c.current(w),s.current=setTimeout(E,gFe)}s.current=setTimeout(E,vFe)};d.useEffect(function(){return function(){u(),l.current.forEach(function(y){return zn.cancel(y)})}},[]);var h=mFe();if(h)return null;var p="".concat(t,"-handler"),m=xe(p,"".concat(p,"-up"),Z({},"".concat(p,"-up-disabled"),o)),g=xe(p,"".concat(p,"-down"),Z({},"".concat(p,"-down-disabled"),i)),v=function(){return l.current.push(zn(u))},b={unselectable:"on",role:"button",onMouseUp:v,onMouseLeave:v};return d.createElement("div",{className:"".concat(p,"-wrap")},d.createElement("span",Ge({},b,{onMouseDown:function(S){f(S,!0)},"aria-label":"Increase Value","aria-disabled":o,className:m}),n||d.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),d.createElement("span",Ge({},b,{onMouseDown:function(S){f(S,!1)},"aria-label":"Decrease Value","aria-disabled":i,className:g}),r||d.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function rU(e){var t=typeof e=="number"?lP(e):Yh(e).fullStr,n=t.includes(".");return n?Yh(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const bFe=function(){var e=d.useRef(0),t=function(){zn.cancel(e.current)};return d.useEffect(function(){return t},[]),function(n){t(),e.current=zn(function(){n()})}};var SFe=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],CFe=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],oU=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},iU=function(t){var n=Pl(t);return n.isInvalidate()?null:n},wFe=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.min,a=e.max,s=e.step,l=s===void 0?1:s,c=e.defaultValue,u=e.value,f=e.disabled,h=e.readOnly,p=e.upHandler,m=e.downHandler,g=e.keyboard,v=e.changeOnWheel,b=v===void 0?!1:v,y=e.controls,S=y===void 0?!0:y;e.classNames;var w=e.stringMode,E=e.parser,C=e.formatter,x=e.precision,_=e.decimalSeparator,P=e.onChange,O=e.onInput,I=e.onPressEnter,M=e.onStep,T=e.changeOnBlur,D=T===void 0?!0:T,A=e.domRef,j=At(e,SFe),k="".concat(n,"-input"),F=d.useRef(null),V=d.useState(!1),W=$e(V,2),K=W[0],L=W[1],Q=d.useRef(!1),ee=d.useRef(!1),re=d.useRef(!1),ie=d.useState(function(){return Pl(u??c)}),G=$e(ie,2),X=G[0],ne=G[1];function le(et){u===void 0&&ne(et)}var ce=d.useCallback(function(et,st){if(!st)return x>=0?x:Math.max(Th(et),Th(l))},[x,l]),oe=d.useCallback(function(et){var st=String(et);if(E)return E(st);var yt=st;return _&&(yt=yt.replace(_,".")),yt.replace(/[^\w.-]+/g,"")},[E,_]),se=d.useRef(""),fe=d.useCallback(function(et,st){if(C)return C(et,{userTyping:st,input:String(se.current)});var yt=typeof et=="number"?lP(et):et;if(!st){var gt=ce(yt,st);if(ED(yt)&&(_||gt>=0)){var Lt=_||".";yt=lx(yt,Lt,gt)}}return yt},[C,ce,_]),te=d.useState(function(){var et=c??u;return X.isInvalidate()&&["string","number"].includes(Ht(et))?Number.isNaN(et)?"":et:fe(X.toString(),!1)}),he=$e(te,2),pe=he[0],Oe=he[1];se.current=pe;function Me(et,st){Oe(fe(et.isInvalidate()?et.toString(!1):et.toString(!st),st))}var Se=d.useMemo(function(){return iU(a)},[a,x]),ye=d.useMemo(function(){return iU(i)},[i,x]),ve=d.useMemo(function(){return!Se||!X||X.isInvalidate()?!1:Se.lessEquals(X)},[Se,X]),be=d.useMemo(function(){return!ye||!X||X.isInvalidate()?!1:X.lessEquals(ye)},[ye,X]),Pe=pFe(F.current,K),Ne=$e(Pe,2),U=Ne[0],H=Ne[1],q=function(st){return Se&&!st.lessEquals(Se)?Se:ye&&!ye.lessEquals(st)?ye:null},me=function(st){return!q(st)},Ce=function(st,yt){var gt=st,Lt=me(gt)||gt.isEmpty();if(!gt.isEmpty()&&!yt&&(gt=q(gt)||gt,Lt=!0),!h&&!f&&Lt){var St=gt.toString(),wt=ce(St,yt);return wt>=0&&(gt=Pl(lx(St,".",wt)),me(gt)||(gt=Pl(lx(St,".",wt,!0)))),gt.equals(X)||(le(gt),P==null||P(gt.isEmpty()?null:oU(w,gt)),u===void 0&&Me(gt,yt)),gt}return X},ue=bFe(),Le=function et(st){if(U(),se.current=st,Oe(st),!ee.current){var yt=oe(st),gt=Pl(yt);gt.isNaN()||Ce(gt,!0)}O==null||O(st),ue(function(){var Lt=st;E||(Lt=st.replace(/。/g,".")),Lt!==st&&et(Lt)})},He=function(){ee.current=!0},ge=function(){ee.current=!1,Le(F.current.value)},De=function(st){Le(st.target.value)},qe=function(st){var yt;if(!(st&&ve||!st&&be)){Q.current=!1;var gt=Pl(re.current?rU(l):l);st||(gt=gt.negate());var Lt=(X||Pl(0)).add(gt.toString()),St=Ce(Lt,!1);M==null||M(oU(w,St),{offset:re.current?rU(l):l,type:st?"up":"down"}),(yt=F.current)===null||yt===void 0||yt.focus()}},Fe=function(st){var yt=Pl(oe(pe)),gt;yt.isNaN()?gt=Ce(X,st):gt=Ce(yt,st),u!==void 0?Me(X,!1):gt.isNaN()||Me(gt,!1)},Ke=function(){Q.current=!0},Ue=function(st){var yt=st.key,gt=st.shiftKey;Q.current=!0,re.current=gt,yt==="Enter"&&(ee.current||(Q.current=!1),Fe(!1),I==null||I(st)),g!==!1&&!ee.current&&["Up","ArrowUp","Down","ArrowDown"].includes(yt)&&(qe(yt==="Up"||yt==="ArrowUp"),st.preventDefault())},Ve=function(){Q.current=!1,re.current=!1};d.useEffect(function(){if(b&&K){var et=function(gt){qe(gt.deltaY<0),gt.preventDefault()},st=F.current;if(st)return st.addEventListener("wheel",et,{passive:!1}),function(){return st.removeEventListener("wheel",et)}}});var Tt=function(){D&&Fe(!1),L(!1),Q.current=!1};return Gh(function(){X.isInvalidate()||Me(X,!1)},[x,C]),Gh(function(){var et=Pl(u);ne(et);var st=Pl(oe(pe));(!et.equals(st)||!Q.current||C)&&Me(et,Q.current)},[u]),Gh(function(){C&&H()},[pe]),d.createElement("div",{ref:A,className:xe(n,r,Z(Z(Z(Z(Z({},"".concat(n,"-focused"),K),"".concat(n,"-disabled"),f),"".concat(n,"-readonly"),h),"".concat(n,"-not-a-number"),X.isNaN()),"".concat(n,"-out-of-range"),!X.isInvalidate()&&!me(X))),style:o,onFocus:function(){L(!0)},onBlur:Tt,onKeyDown:Ue,onKeyUp:Ve,onCompositionStart:He,onCompositionEnd:ge,onBeforeInput:Ke},S&&d.createElement(yFe,{prefixCls:n,upNode:p,downNode:m,upDisabled:ve,downDisabled:be,onStep:qe}),d.createElement("div",{className:"".concat(k,"-wrap")},d.createElement("input",Ge({autoComplete:"off",role:"spinbutton","aria-valuemin":i,"aria-valuemax":a,"aria-valuenow":X.isInvalidate()?null:X.toString(),step:l},j,{ref:bi(F,t),className:k,value:pe,onChange:De,disabled:f,readOnly:h}))))}),xFe=d.forwardRef(function(e,t){var n=e.disabled,r=e.style,o=e.prefixCls,i=o===void 0?"rc-input-number":o,a=e.value,s=e.prefix,l=e.suffix,c=e.addonBefore,u=e.addonAfter,f=e.className,h=e.classNames,p=At(e,CFe),m=d.useRef(null),g=d.useRef(null),v=d.useRef(null),b=function(S){v.current&&_D(v.current,S)};return d.useImperativeHandle(t,function(){return hFe(v.current,{focus:b,nativeElement:m.current.nativeElement||g.current})}),d.createElement($D,{className:f,triggerFocus:b,prefixCls:i,value:a,disabled:n,style:r,prefix:s,suffix:l,addonAfter:u,addonBefore:c,classNames:h,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:m},d.createElement(wFe,Ge({prefixCls:i,disabled:n,ref:v,domRef:g,className:h==null?void 0:h.input},p)))});const EFe=e=>{var t;const n=(t=e.handleVisible)!==null&&t!==void 0?t:"auto",r=e.controlHeightSM-e.lineWidth*2;return Object.assign(Object.assign({},eS(e)),{controlWidth:90,handleWidth:r,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new Un(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:n===!0?1:0,handleVisibleWidth:n===!0?r:0})},aU=(e,t)=>{let{componentCls:n,borderRadiusSM:r,borderRadiusLG:o}=e;const i=t==="lg"?o:r;return{[`&-${t}`]:{[`${n}-handler-wrap`]:{borderStartEndRadius:i,borderEndEndRadius:i},[`${n}-handler-up`]:{borderStartEndRadius:i},[`${n}-handler-down`]:{borderEndEndRadius:i}}}},_Fe=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:o,inputFontSizeSM:i,inputFontSizeLG:a,controlHeightLG:s,controlHeightSM:l,colorError:c,paddingInlineSM:u,paddingBlockSM:f,paddingBlockLG:h,paddingInlineLG:p,colorTextDescription:m,motionDurationMid:g,handleHoverColor:v,handleOpacity:b,paddingInline:y,paddingBlock:S,handleBg:w,handleActiveBg:E,colorTextDisabled:C,borderRadiusSM:x,borderRadiusLG:_,controlWidth:P,handleBorderColor:O,filledHandleBg:I,lineHeightLG:M,calc:T}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Qn(e)),tS(e)),{display:"inline-block",width:P,margin:0,padding:0,borderRadius:o}),mD(e,{[`${t}-handler-wrap`]:{background:w,[`${t}-handler-down`]:{borderBlockStart:`${_e(n)} ${r} ${O}`}}})),vD(e,{[`${t}-handler-wrap`]:{background:I,[`${t}-handler-down`]:{borderBlockStart:`${_e(n)} ${r} ${O}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:w}}})),gD(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,lineHeight:M,borderRadius:_,[`input${t}-input`]:{height:T(s).sub(T(n).mul(2)).equal(),padding:`${_e(h)} ${_e(p)}`}},"&-sm":{padding:0,fontSize:i,borderRadius:x,[`input${t}-input`]:{height:T(l).sub(T(n).mul(2)).equal(),padding:`${_e(f)} ${_e(u)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},Qn(e)),Hie(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:_,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:x}}},Fie(e)),Bie(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}}})}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},Qn(e)),{width:"100%",padding:`${_e(S)} ${_e(y)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:o,outline:0,transition:`all ${g} linear`,appearance:"textfield",fontSize:"inherit"}),yD(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1}})},{[t]:Object.assign(Object.assign(Object.assign({[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleVisibleWidth,opacity:b,height:"100%",borderStartStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${g}`,overflow:"hidden",[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` ${t}-handler-up-inner, ${t}-handler-down-inner `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:m,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${_e(n)} ${r} ${O}`,transition:`all ${g} linear`,"&:active":{background:E},"&:hover":{height:"60%",[` ${t}-handler-up-inner, ${t}-handler-down-inner `]:{color:v}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},Fp()),{color:m,transition:`all ${g} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:o},[`${t}-handler-down`]:{borderEndEndRadius:o}},aU(e,"lg")),aU(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[` ${t}-handler-up-disabled, ${t}-handler-down-disabled `]:{cursor:"not-allowed"},[` ${t}-handler-up-disabled:hover &-handler-up-inner, ${t}-handler-down-disabled:hover &-handler-down-inner `]:{color:C}})}]},$Fe=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:o,controlWidth:i,borderRadiusLG:a,borderRadiusSM:s,paddingInlineLG:l,paddingInlineSM:c,paddingBlockLG:u,paddingBlockSM:f,motionDurationMid:h}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${_e(n)} 0`}},tS(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:i,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:a,paddingInlineStart:l,[`input${t}-input`]:{padding:`${_e(u)} 0`}},"&-sm":{borderRadius:s,paddingInlineStart:c,[`input${t}-input`]:{padding:`${_e(f)} 0`}},[`&:not(${t}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:o},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:r,marginInlineStart:o,transition:`margin ${h}`}},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1},[`&:not(${t}-affix-wrapper-without-controls):hover ${t}-suffix`]:{marginInlineEnd:e.calc(e.handleWidth).add(r).equal()}})}},PFe=Kn("InputNumber",e=>{const t=kn(e,Z1(e));return[_Fe(t),$Fe(t),Bp(t)]},EFe,{unitless:{handleOpacity:!0}});var OFe=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 o=0,r=Object.getOwnPropertySymbols(e);o{const{getPrefixCls:n,direction:r}=d.useContext(Yt),o=d.useRef(null);d.useImperativeHandle(t,()=>o.current);const{className:i,rootClassName:a,size:s,disabled:l,prefixCls:c,addonBefore:u,addonAfter:f,prefix:h,suffix:p,bordered:m,readOnly:g,status:v,controls:b,variant:y}=e,S=OFe(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),w=n("input-number",c),E=Mr(w),[C,x,_]=PFe(w,E),{compactSize:P,compactItemClassnames:O}=gc(w,r);let I=d.createElement(iFe,{className:`${w}-handler-up-inner`}),M=d.createElement(z$,{className:`${w}-handler-down-inner`});const T=typeof b=="boolean"?b:void 0;typeof b=="object"&&(I=typeof b.upIcon>"u"?I:d.createElement("span",{className:`${w}-handler-up-inner`},b.upIcon),M=typeof b.downIcon>"u"?M:d.createElement("span",{className:`${w}-handler-down-inner`},b.downIcon));const{hasFeedback:D,status:A,isFormItemInput:j,feedbackIcon:k}=d.useContext(Io),F=md(A,v),V=Eo(X=>{var ne;return(ne=s??P)!==null&&ne!==void 0?ne:X}),W=d.useContext(zo),K=l??W,[L,Q]=gd("inputNumber",y,m),ee=D&&d.createElement(d.Fragment,null,k),re=xe({[`${w}-lg`]:V==="large",[`${w}-sm`]:V==="small",[`${w}-rtl`]:r==="rtl",[`${w}-in-form-item`]:j},x),ie=`${w}-group`,G=d.createElement(xFe,Object.assign({ref:o,disabled:K,className:xe(_,E,i,a,O),upHandler:I,downHandler:M,prefixCls:w,readOnly:g,controls:T,prefix:h,suffix:ee||p,addonBefore:u&&d.createElement(ic,{form:!0,space:!0},u),addonAfter:f&&d.createElement(ic,{form:!0,space:!0},f),classNames:{input:re,variant:xe({[`${w}-${L}`]:Q},ac(w,F,D)),affixWrapper:xe({[`${w}-affix-wrapper-sm`]:V==="small",[`${w}-affix-wrapper-lg`]:V==="large",[`${w}-affix-wrapper-rtl`]:r==="rtl",[`${w}-affix-wrapper-without-controls`]:b===!1},x),wrapper:xe({[`${ie}-rtl`]:r==="rtl"},x),groupWrapper:xe({[`${w}-group-wrapper-sm`]:V==="small",[`${w}-group-wrapper-lg`]:V==="large",[`${w}-group-wrapper-rtl`]:r==="rtl",[`${w}-group-wrapper-${L}`]:Q},ac(`${w}-group-wrapper`,F,D),x)}},S));return C(G)}),lc=Iae,MFe=e=>d.createElement(Mn,{theme:{components:{InputNumber:{handleVisible:!0}}}},d.createElement(Iae,Object.assign({},e)));lc._InternalPanelDoNotUseOrYouWillBeFired=MFe;const Xh=e=>{let{prefixCls:t,min:n=0,max:r=100,value:o,onChange:i,className:a,formatter:s}=e;const l=`${t}-steppers`,[c,u]=d.useState(o);return d.useEffect(()=>{Number.isNaN(o)||u(o)},[o]),de.createElement(lc,{className:xe(l,a),min:n,max:r,value:c,formatter:s,size:"small",onChange:f=>{o||u(f||0),i==null||i(f)}})},TFe=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-alpha-input`,[i,a]=d.useState(oa(n||"#000"));d.useEffect(()=>{n&&a(n)},[n]);const s=l=>{const c=i.toHsb();c.a=(l||0)/100;const u=oa(c);n||a(u),r==null||r(u)};return de.createElement(Xh,{value:TA(i),prefixCls:t,formatter:l=>`${l}%`,className:o,onChange:s})},RFe=e=>{const{getPrefixCls:t,direction:n}=d.useContext(Yt),{prefixCls:r,className:o}=e,i=t("input-group",r),a=t("input"),[s,l]=SD(a),c=xe(i,{[`${i}-lg`]:e.size==="large",[`${i}-sm`]:e.size==="small",[`${i}-compact`]:e.compact,[`${i}-rtl`]:n==="rtl"},l,o),u=d.useContext(Io),f=d.useMemo(()=>Object.assign(Object.assign({},u),{isFormItemInput:!1}),[u]);return s(d.createElement("span",{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},d.createElement(Io.Provider,{value:f},e.children)))},kae=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:de.createElement(ru,null)}),t};function Nae(e,t){const n=d.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var o,i,a,s;!((o=e.current)===null||o===void 0)&&o.input&&((i=e.current)===null||i===void 0?void 0:i.input.getAttribute("type"))==="password"&&(!((a=e.current)===null||a===void 0)&&a.input.hasAttribute("value"))&&((s=e.current)===null||s===void 0||s.input.removeAttribute("value"))}))};return d.useEffect(()=>(t&&r(),()=>n.current.forEach(o=>{o&&clearTimeout(o)})),[]),r}function IFe(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var kFe=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 o=0,r=Object.getOwnPropertySymbols(e);o{var n;const{prefixCls:r,bordered:o=!0,status:i,size:a,disabled:s,onBlur:l,onFocus:c,suffix:u,allowClear:f,addonAfter:h,addonBefore:p,className:m,style:g,styles:v,rootClassName:b,onChange:y,classNames:S,variant:w}=e,E=kFe(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:C,direction:x,input:_}=de.useContext(Yt),P=C("input",r),O=d.useRef(null),I=Mr(P),[M,T,D]=SD(P,I),{compactSize:A,compactItemClassnames:j}=gc(P,x),k=Eo(se=>{var fe;return(fe=a??A)!==null&&fe!==void 0?fe:se}),F=de.useContext(zo),V=s??F,{status:W,hasFeedback:K,feedbackIcon:L}=d.useContext(Io),Q=md(W,i),ee=IFe(e)||!!K;d.useRef(ee);const re=Nae(O,!0),ie=se=>{re(),l==null||l(se)},G=se=>{re(),c==null||c(se)},X=se=>{re(),y==null||y(se)},ne=(K||u)&&de.createElement(de.Fragment,null,u,K&&L),le=kae(f??(_==null?void 0:_.allowClear)),[ce,oe]=gd("input",w,o);return M(de.createElement(fFe,Object.assign({ref:bi(t,O),prefixCls:P,autoComplete:_==null?void 0:_.autoComplete},E,{disabled:V,onBlur:ie,onFocus:G,style:Object.assign(Object.assign({},_==null?void 0:_.style),g),styles:Object.assign(Object.assign({},_==null?void 0:_.styles),v),suffix:ne,allowClear:le,className:xe(m,b,D,I,j,_==null?void 0:_.className),onChange:X,addonBefore:p&&de.createElement(ic,{form:!0,space:!0},p),addonAfter:h&&de.createElement(ic,{form:!0,space:!0},h),classNames:Object.assign(Object.assign(Object.assign({},S),_==null?void 0:_.classNames),{input:xe({[`${P}-sm`]:k==="small",[`${P}-lg`]:k==="large",[`${P}-rtl`]:x==="rtl"},S==null?void 0:S.input,(n=_==null?void 0:_.classNames)===null||n===void 0?void 0:n.input,T),variant:xe({[`${P}-${ce}`]:oe},ac(P,Q)),affixWrapper:xe({[`${P}-affix-wrapper-sm`]:k==="small",[`${P}-affix-wrapper-lg`]:k==="large",[`${P}-affix-wrapper-rtl`]:x==="rtl"},T),wrapper:xe({[`${P}-group-rtl`]:x==="rtl"},T),groupWrapper:xe({[`${P}-group-wrapper-sm`]:k==="small",[`${P}-group-wrapper-lg`]:k==="large",[`${P}-group-wrapper-rtl`]:x==="rtl",[`${P}-group-wrapper-${ce}`]:oe},ac(`${P}-group-wrapper`,Q,K),T)})})))}),NFe=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}}}},AFe=Kn(["Input","OTP"],e=>{const t=kn(e,Z1(e));return[NFe(t)]},eS);var DFe=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 o=0,r=Object.getOwnPropertySymbols(e);o{const{value:n,onChange:r,onActiveChange:o,index:i,mask:a}=e,s=DFe(e,["value","onChange","onActiveChange","index","mask"]),l=n&&typeof a=="string"?a:n,c=m=>{r(i,m.target.value)},u=d.useRef(null);d.useImperativeHandle(t,()=>u.current);const f=()=>{zn(()=>{var m;const g=(m=u.current)===null||m===void 0?void 0:m.input;document.activeElement===g&&g&&g.select()})},h=m=>{const{key:g,ctrlKey:v,metaKey:b}=m;g==="ArrowLeft"?o(i-1):g==="ArrowRight"?o(i+1):g==="z"&&(v||b)&&m.preventDefault(),f()},p=m=>{m.key==="Backspace"&&!n&&o(i-1),f()};return d.createElement(cP,Object.assign({type:a===!0?"password":"text"},s,{ref:u,value:l,onInput:c,onFocus:f,onKeyDown:h,onKeyUp:p,onMouseDown:f,onMouseUp:f}))});var 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 o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,length:r=6,size:o,defaultValue:i,value:a,onChange:s,formatter:l,variant:c,disabled:u,status:f,autoFocus:h,mask:p,type:m,onInput:g,inputMode:v}=e,b=FFe(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:y,direction:S}=d.useContext(Yt),w=y("otp",n),E=Jr(b,{aria:!0,data:!0,attr:!0}),C=Mr(w),[x,_,P]=AFe(w,C),O=Eo(ee=>o??ee),I=d.useContext(Io),M=md(I.status,f),T=d.useMemo(()=>Object.assign(Object.assign({},I),{status:M,hasFeedback:!1,feedbackIcon:null}),[I,M]),D=d.useRef(null),A=d.useRef({});d.useImperativeHandle(t,()=>({focus:()=>{var ee;(ee=A.current[0])===null||ee===void 0||ee.focus()},blur:()=>{var ee;for(let re=0;rel?l(ee):ee,[k,F]=d.useState(YC(j(i||"")));d.useEffect(()=>{a!==void 0&&F(YC(a))},[a]);const V=An(ee=>{F(ee),g&&g(ee),s&&ee.length===r&&ee.every(re=>re)&&ee.some((re,ie)=>k[ie]!==re)&&s(ee.join(""))}),W=An((ee,re)=>{let ie=Ze(k);for(let X=0;X=0&&!ie[X];X-=1)ie.pop();const G=j(ie.map(X=>X||" ").join(""));return ie=YC(G).map((X,ne)=>X===" "&&!ie[ne]?ie[ne]:X),ie}),K=(ee,re)=>{var ie;const G=W(ee,re),X=Math.min(ee+re.length,r-1);X!==ee&&G[ee]!==void 0&&((ie=A.current[X])===null||ie===void 0||ie.focus()),V(G)},L=ee=>{var re;(re=A.current[ee])===null||re===void 0||re.focus()},Q={variant:c,disabled:u,status:M,mask:p,type:m,inputMode:v};return x(d.createElement("div",Object.assign({},E,{ref:D,className:xe(w,{[`${w}-sm`]:O==="small",[`${w}-lg`]:O==="large",[`${w}-rtl`]:S==="rtl"},P,_)}),d.createElement(Io.Provider,{value:T},Array.from({length:r}).map((ee,re)=>{const ie=`otp-${re}`,G=k[re]||"";return d.createElement(jFe,Object.assign({ref:X=>{A.current[re]=X},key:ie,index:re,size:O,htmlSize:1,className:`${w}-input`,onChange:K,value:G,onActiveChange:L,autoFocus:re===0&&h},Q))}))))});var BFe={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"},zFe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:BFe}))},Aae=d.forwardRef(zFe),HFe={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"},UFe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:HFe}))},uP=d.forwardRef(UFe),WFe=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 o=0,r=Object.getOwnPropertySymbols(e);oe?d.createElement(uP,null):d.createElement(Aae,null),KFe={click:"onClick",hover:"onMouseOver"},qFe=d.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:o=!0,iconRender:i=VFe}=e,a=d.useContext(zo),s=n??a,l=typeof o=="object"&&o.visible!==void 0,[c,u]=d.useState(()=>l?o.visible:!1),f=d.useRef(null);d.useEffect(()=>{l&&u(o.visible)},[l,o]);const h=Nae(f),p=()=>{var O;if(s)return;c&&h();const I=!c;u(I),typeof o=="object"&&((O=o.onVisibleChange)===null||O===void 0||O.call(o,I))},m=O=>{const I=KFe[r]||"",M=i(c),T={[I]:p,className:`${O}-icon`,key:"passwordIcon",onMouseDown:D=>{D.preventDefault()},onMouseUp:D=>{D.preventDefault()}};return d.cloneElement(d.isValidElement(M)?M:d.createElement("span",null,M),T)},{className:g,prefixCls:v,inputPrefixCls:b,size:y}=e,S=WFe(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:w}=d.useContext(Yt),E=w("input",b),C=w("input-password",v),x=o&&m(C),_=xe(C,g,{[`${C}-${y}`]:!!y}),P=Object.assign(Object.assign({},Yn(S,["suffix","iconRender","visibilityToggle"])),{type:c?"text":"password",className:_,prefixCls:E,suffix:x});return y&&(P.size=y),d.createElement(cP,Object.assign({ref:bi(t,f)},P))});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 o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,inputPrefixCls:r,className:o,size:i,suffix:a,enterButton:s=!1,addonAfter:l,loading:c,disabled:u,onSearch:f,onChange:h,onCompositionStart:p,onCompositionEnd:m}=e,g=GFe(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:v,direction:b}=d.useContext(Yt),y=d.useRef(!1),S=v("input-search",n),w=v("input",r),{compactSize:E}=gc(S,b),C=Eo(K=>{var L;return(L=i??E)!==null&&L!==void 0?L:K}),x=d.useRef(null),_=K=>{K!=null&&K.target&&K.type==="click"&&f&&f(K.target.value,K,{source:"clear"}),h==null||h(K)},P=K=>{var L;document.activeElement===((L=x.current)===null||L===void 0?void 0:L.input)&&K.preventDefault()},O=K=>{var L,Q;f&&f((Q=(L=x.current)===null||L===void 0?void 0:L.input)===null||Q===void 0?void 0:Q.value,K,{source:"input"})},I=K=>{y.current||c||O(K)},M=typeof s=="boolean"?d.createElement(H$,null):null,T=`${S}-button`;let D;const A=s||{},j=A.type&&A.type.__ANT_BUTTON===!0;j||A.type==="button"?D=Zo(A,Object.assign({onMouseDown:P,onClick:K=>{var L,Q;(Q=(L=A==null?void 0:A.props)===null||L===void 0?void 0:L.onClick)===null||Q===void 0||Q.call(L,K),O(K)},key:"enterButton"},j?{className:T,size:C}:{})):D=d.createElement(Hn,{className:T,type:s?"primary":void 0,size:C,disabled:u,key:"enterButton",onMouseDown:P,onClick:O,loading:c,icon:M},s),l&&(D=[D,Zo(l,{key:"addonAfter"})]);const k=xe(S,{[`${S}-rtl`]:b==="rtl",[`${S}-${C}`]:!!C,[`${S}-with-button`]:!!s},o),F=Object.assign(Object.assign({},g),{className:k,prefixCls:w,type:"search"}),V=K=>{y.current=!0,p==null||p(K)},W=K=>{y.current=!1,m==null||m(K)};return d.createElement(cP,Object.assign({ref:bi(x,t),onPressEnter:I},F,{size:C,onCompositionStart:V,onCompositionEnd:W,addonAfter:D,suffix:a,onChange:_,disabled:u}))});var XFe=` 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; `,QFe=["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"],rR={},is;function JFe(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&&rR[n])return rR[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),i=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s=QFe.map(function(c){return"".concat(c,":").concat(r.getPropertyValue(c))}).join(";"),l={sizingStyle:s,paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(rR[n]=l),l}function ZFe(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;is||(is=document.createElement("textarea"),is.setAttribute("tab-index","-1"),is.setAttribute("aria-hidden","true"),is.setAttribute("name","hiddenTextarea"),document.body.appendChild(is)),e.getAttribute("wrap")?is.setAttribute("wrap",e.getAttribute("wrap")):is.removeAttribute("wrap");var o=JFe(e,t),i=o.paddingSize,a=o.borderSize,s=o.boxSizing,l=o.sizingStyle;is.setAttribute("style","".concat(l,";").concat(XFe)),is.value=e.value||e.placeholder||"";var c=void 0,u=void 0,f,h=is.scrollHeight;if(s==="border-box"?h+=a:s==="content-box"&&(h-=i),n!==null||r!==null){is.value=" ";var p=is.scrollHeight-i;n!==null&&(c=p*n,s==="border-box"&&(c=c+i+a),h=Math.max(c,h)),r!==null&&(u=p*r,s==="border-box"&&(u=u+i+a),f=h>u?"":"hidden",h=Math.min(u,h))}var m={height:h,overflowY:f,resize:"none"};return c&&(m.minHeight=c),u&&(m.maxHeight=u),m}var eLe=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],oR=0,iR=1,aR=2,tLe=d.forwardRef(function(e,t){var n=e,r=n.prefixCls,o=n.defaultValue,i=n.value,a=n.autoSize,s=n.onResize,l=n.className,c=n.style,u=n.disabled,f=n.onChange;n.onInternalAutoSize;var h=At(n,eLe),p=xn(o,{value:i,postState:function(ee){return ee??""}}),m=$e(p,2),g=m[0],v=m[1],b=function(ee){v(ee.target.value),f==null||f(ee)},y=d.useRef();d.useImperativeHandle(t,function(){return{textArea:y.current}});var S=d.useMemo(function(){return a&&Ht(a)==="object"?[a.minRows,a.maxRows]:[]},[a]),w=$e(S,2),E=w[0],C=w[1],x=!!a,_=function(){try{if(document.activeElement===y.current){var ee=y.current,re=ee.selectionStart,ie=ee.selectionEnd,G=ee.scrollTop;y.current.setSelectionRange(re,ie),y.current.scrollTop=G}}catch{}},P=d.useState(aR),O=$e(P,2),I=O[0],M=O[1],T=d.useState(),D=$e(T,2),A=D[0],j=D[1],k=function(){M(oR)};Zn(function(){x&&k()},[i,E,C,x]),Zn(function(){if(I===oR)M(iR);else if(I===iR){var Q=ZFe(y.current,!1,E,C);M(aR),j(Q)}else _()},[I]);var F=d.useRef(),V=function(){zn.cancel(F.current)},W=function(ee){I===aR&&(s==null||s(ee),a&&(V(),F.current=zn(function(){k()})))};d.useEffect(function(){return V},[]);var K=x?A:null,L=z(z({},c),K);return(I===oR||I===iR)&&(L.overflowY="hidden",L.overflowX="hidden"),d.createElement(Oi,{onResize:W,disabled:!(a||s)},d.createElement("textarea",Ge({},h,{ref:y,style:L,className:xe(r,l,Z({},"".concat(r,"-disabled"),u)),disabled:u,value:g,onChange:b})))}),nLe=["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"],rLe=de.forwardRef(function(e,t){var n,r=e.defaultValue,o=e.value,i=e.onFocus,a=e.onBlur,s=e.onChange,l=e.allowClear,c=e.maxLength,u=e.onCompositionStart,f=e.onCompositionEnd,h=e.suffix,p=e.prefixCls,m=p===void 0?"rc-textarea":p,g=e.showCount,v=e.count,b=e.className,y=e.style,S=e.disabled,w=e.hidden,E=e.classNames,C=e.styles,x=e.onResize,_=e.onClear,P=e.onPressEnter,O=e.readOnly,I=e.autoSize,M=e.onKeyDown,T=At(e,nLe),D=xn(r,{value:o,defaultValue:r}),A=$e(D,2),j=A[0],k=A[1],F=j==null?"":String(j),V=de.useState(!1),W=$e(V,2),K=W[0],L=W[1],Q=de.useRef(!1),ee=de.useState(null),re=$e(ee,2),ie=re[0],G=re[1],X=d.useRef(null),ne=d.useRef(null),le=function(){var ge;return(ge=ne.current)===null||ge===void 0?void 0:ge.textArea},ce=function(){le().focus()};d.useImperativeHandle(t,function(){var He;return{resizableTextArea:ne.current,focus:ce,blur:function(){le().blur()},nativeElement:((He=X.current)===null||He===void 0?void 0:He.nativeElement)||le()}}),d.useEffect(function(){L(function(He){return!S&&He})},[S]);var oe=de.useState(null),se=$e(oe,2),fe=se[0],te=se[1];de.useEffect(function(){if(fe){var He;(He=le()).setSelectionRange.apply(He,Ze(fe))}},[fe]);var he=Rae(v,g),pe=(n=he.max)!==null&&n!==void 0?n:c,Oe=Number(pe)>0,Me=he.strategy(F),Se=!!pe&&Me>pe,ye=function(ge,De){var qe=De;!Q.current&&he.exceedFormatter&&he.max&&he.strategy(De)>he.max&&(qe=he.exceedFormatter(De,{max:he.max}),De!==qe&&te([le().selectionStart||0,le().selectionEnd||0])),k(qe),nE(ge.currentTarget,ge,s,qe)},ve=function(ge){Q.current=!0,u==null||u(ge)},be=function(ge){Q.current=!1,ye(ge,ge.currentTarget.value),f==null||f(ge)},Pe=function(ge){ye(ge,ge.target.value)},Ne=function(ge){ge.key==="Enter"&&P&&P(ge),M==null||M(ge)},U=function(ge){L(!0),i==null||i(ge)},H=function(ge){L(!1),a==null||a(ge)},q=function(ge){k(""),ce(),nE(le(),ge,s)},me=h,Ce;he.show&&(he.showFormatter?Ce=he.showFormatter({value:F,count:Me,maxLength:pe}):Ce="".concat(Me).concat(Oe?" / ".concat(pe):""),me=de.createElement(de.Fragment,null,me,de.createElement("span",{className:xe("".concat(m,"-data-count"),E==null?void 0:E.count),style:C==null?void 0:C.count},Ce)));var ue=function(ge){var De;x==null||x(ge),(De=le())!==null&&De!==void 0&&De.style.height&&G(!0)},Le=!I&&!g&&!l;return de.createElement($D,{ref:X,value:F,allowClear:l,handleReset:q,suffix:me,prefixCls:m,classNames:z(z({},E),{},{affixWrapper:xe(E==null?void 0:E.affixWrapper,Z(Z({},"".concat(m,"-show-count"),g),"".concat(m,"-textarea-allow-clear"),l))}),disabled:S,focused:K,className:xe(b,Se&&"".concat(m,"-out-of-range")),style:z(z({},y),ie&&!Le?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Ce=="string"?Ce:void 0}},hidden:w,readOnly:O,onClear:_},de.createElement(tLe,Ge({},T,{autoSize:I,maxLength:c,onKeyDown:Ne,onChange:Pe,onFocus:U,onBlur:H,onCompositionStart:ve,onCompositionEnd:be,className:xe(E==null?void 0:E.textarea),style:z(z({},C==null?void 0:C.textarea),{},{resize:y==null?void 0:y.resize}),disabled:S,prefixCls:m,onResize:ue,ref:ne,readOnly:O})))}),oLe=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 o=0,r=Object.getOwnPropertySymbols(e);o{var n,r;const{prefixCls:o,bordered:i=!0,size:a,disabled:s,status:l,allowClear:c,classNames:u,rootClassName:f,className:h,style:p,styles:m,variant:g}=e,v=oLe(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant"]),{getPrefixCls:b,direction:y,textArea:S}=d.useContext(Yt),w=Eo(a),E=d.useContext(zo),C=s??E,{status:x,hasFeedback:_,feedbackIcon:P}=d.useContext(Io),O=md(x,l),I=d.useRef(null);d.useImperativeHandle(t,()=>{var W;return{resizableTextArea:(W=I.current)===null||W===void 0?void 0:W.resizableTextArea,focus:K=>{var L,Q;_D((Q=(L=I.current)===null||L===void 0?void 0:L.resizableTextArea)===null||Q===void 0?void 0:Q.textArea,K)},blur:()=>{var K;return(K=I.current)===null||K===void 0?void 0:K.blur()}}});const M=b("input",o),T=Mr(M),[D,A,j]=SD(M,T),[k,F]=gd("textArea",g,i),V=kae(c??(S==null?void 0:S.allowClear));return D(d.createElement(rLe,Object.assign({autoComplete:S==null?void 0:S.autoComplete},v,{style:Object.assign(Object.assign({},S==null?void 0:S.style),p),styles:Object.assign(Object.assign({},S==null?void 0:S.styles),m),disabled:C,allowClear:V,className:xe(j,T,h,f,S==null?void 0:S.className),classNames:Object.assign(Object.assign(Object.assign({},u),S==null?void 0:S.classNames),{textarea:xe({[`${M}-sm`]:w==="small",[`${M}-lg`]:w==="large"},A,u==null?void 0:u.textarea,(n=S==null?void 0:S.classNames)===null||n===void 0?void 0:n.textarea),variant:xe({[`${M}-${k}`]:F},ac(M,O)),affixWrapper:xe(`${M}-textarea-affix-wrapper`,{[`${M}-affix-wrapper-rtl`]:y==="rtl",[`${M}-affix-wrapper-sm`]:w==="small",[`${M}-affix-wrapper-lg`]:w==="large",[`${M}-textarea-show-count`]:e.showCount||((r=e.count)===null||r===void 0?void 0:r.show)},A)}),prefixCls:M,suffix:_&&d.createElement("span",{className:`${M}-textarea-suffix`},P),ref:I})))}),qr=cP;qr.Group=RFe;qr.Search=YFe;qr.TextArea=iLe;qr.Password=qFe;qr.OTP=LFe;const aLe=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,sLe=e=>aLe.test(`#${e}`),lLe=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-hex-input`,[i,a]=d.useState(()=>n?uy(n.toHexString()):void 0);d.useEffect(()=>{n&&a(uy(n.toHexString()))},[n]);const s=l=>{const c=l.target.value;a(uy(c)),sLe(uy(c,!0))&&(r==null||r(oa(c)))};return de.createElement(qr,{className:o,value:i,prefix:"#",onChange:s,size:"small"})},cLe=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-hsb-input`,[i,a]=d.useState(oa(n||"#000"));d.useEffect(()=>{n&&a(n)},[n]);const s=(l,c)=>{const u=i.toHsb();u[c]=c==="h"?l:(l||0)/100;const f=oa(u);n||a(f),r==null||r(f)};return de.createElement("div",{className:o},de.createElement(Xh,{max:360,min:0,value:Number(i.toHsb().h),prefixCls:t,className:o,formatter:l=>nx(l||0).toString(),onChange:l=>s(Number(l),"h")}),de.createElement(Xh,{max:100,min:0,value:Number(i.toHsb().s)*100,prefixCls:t,className:o,formatter:l=>`${nx(l||0)}%`,onChange:l=>s(Number(l),"s")}),de.createElement(Xh,{max:100,min:0,value:Number(i.toHsb().b)*100,prefixCls:t,className:o,formatter:l=>`${nx(l||0)}%`,onChange:l=>s(Number(l),"b")}))},uLe=e=>{let{prefixCls:t,value:n,onChange:r}=e;const o=`${t}-rgb-input`,[i,a]=d.useState(oa(n||"#000"));d.useEffect(()=>{n&&a(n)},[n]);const s=(l,c)=>{const u=i.toRgb();u[c]=l||0;const f=oa(u);n||a(f),r==null||r(f)};return de.createElement("div",{className:o},de.createElement(Xh,{max:255,min:0,value:Number(i.toRgb().r),prefixCls:t,className:o,onChange:l=>s(Number(l),"r")}),de.createElement(Xh,{max:255,min:0,value:Number(i.toRgb().g),prefixCls:t,className:o,onChange:l=>s(Number(l),"g")}),de.createElement(Xh,{max:255,min:0,value:Number(i.toRgb().b),prefixCls:t,className:o,onChange:l=>s(Number(l),"b")}))},dLe=[yf.hex,yf.hsb,yf.rgb].map(e=>({value:e,label:e.toLocaleUpperCase()})),fLe=e=>{const{prefixCls:t,format:n,value:r,disabledAlpha:o,onFormatChange:i,onChange:a,disabledFormat:s}=e,[l,c]=xn(yf.hex,{value:n,onChange:i}),u=`${t}-input`,f=p=>{c(p)},h=d.useMemo(()=>{const p={value:r,prefixCls:t,onChange:a};switch(l){case yf.hsb:return de.createElement(cLe,Object.assign({},p));case yf.rgb:return de.createElement(uLe,Object.assign({},p));default:return de.createElement(lLe,Object.assign({},p))}},[l,t,r,a]);return de.createElement("div",{className:`${u}-container`},!s&&de.createElement(Va,{value:l,variant:"borderless",getPopupContainer:p=>p,popupMatchSelectWidth:68,placement:"bottomRight",onChange:f,className:`${t}-format-select`,size:"small",options:dLe}),de.createElement("div",{className:u},h),!o&&de.createElement(TFe,{prefixCls:t,value:r,onChange:a}))};function v6(e,t,n){return(e-t)/(n-t)}function PD(e,t,n,r){var o=v6(t,n,r),i={};switch(e){case"rtl":i.right="".concat(o*100,"%"),i.transform="translateX(50%)";break;case"btt":i.bottom="".concat(o*100,"%"),i.transform="translateY(50%)";break;case"ttb":i.top="".concat(o*100,"%"),i.transform="translateY(-50%)";break;default:i.left="".concat(o*100,"%"),i.transform="translateX(-50%)";break}return i}function gh(e,t){return Array.isArray(e)?e[t]:e}var Up=d.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),Dae=d.createContext({}),hLe=["prefixCls","value","valueIndex","onStartMove","onDelete","style","render","dragging","draggingDelete","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"],sU=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.value,o=e.valueIndex,i=e.onStartMove,a=e.onDelete,s=e.style,l=e.render,c=e.dragging,u=e.draggingDelete,f=e.onOffsetChange,h=e.onChangeComplete,p=e.onFocus,m=e.onMouseEnter,g=At(e,hLe),v=d.useContext(Up),b=v.min,y=v.max,S=v.direction,w=v.disabled,E=v.keyboard,C=v.range,x=v.tabIndex,_=v.ariaLabelForHandle,P=v.ariaLabelledByForHandle,O=v.ariaRequired,I=v.ariaValueTextFormatterForHandle,M=v.styles,T=v.classNames,D="".concat(n,"-handle"),A=function(re){w||i(re,o)},j=function(re){p==null||p(re,o)},k=function(re){m(re,o)},F=function(re){if(!w&&E){var ie=null;switch(re.which||re.keyCode){case ut.LEFT:ie=S==="ltr"||S==="btt"?-1:1;break;case ut.RIGHT:ie=S==="ltr"||S==="btt"?1:-1;break;case ut.UP:ie=S!=="ttb"?1:-1;break;case ut.DOWN:ie=S!=="ttb"?-1:1;break;case ut.HOME:ie="min";break;case ut.END:ie="max";break;case ut.PAGE_UP:ie=2;break;case ut.PAGE_DOWN:ie=-2;break;case ut.BACKSPACE:case ut.DELETE:a(o);break}ie!==null&&(re.preventDefault(),f(ie,o))}},V=function(re){switch(re.which||re.keyCode){case ut.LEFT:case ut.RIGHT:case ut.UP:case ut.DOWN:case ut.HOME:case ut.END:case ut.PAGE_UP:case ut.PAGE_DOWN:h==null||h();break}},W=PD(S,r,b,y),K={};if(o!==null){var L;K={tabIndex:w?null:gh(x,o),role:"slider","aria-valuemin":b,"aria-valuemax":y,"aria-valuenow":r,"aria-disabled":w,"aria-label":gh(_,o),"aria-labelledby":gh(P,o),"aria-required":gh(O,o),"aria-valuetext":(L=gh(I,o))===null||L===void 0?void 0:L(r),"aria-orientation":S==="ltr"||S==="rtl"?"horizontal":"vertical",onMouseDown:A,onTouchStart:A,onFocus:j,onMouseEnter:k,onKeyDown:F,onKeyUp:V}}var Q=d.createElement("div",Ge({ref:t,className:xe(D,Z(Z(Z({},"".concat(D,"-").concat(o+1),o!==null&&C),"".concat(D,"-dragging"),c),"".concat(D,"-dragging-delete"),u),T.handle),style:z(z(z({},W),s),M.handle)},K,g));return l&&(Q=l(Q,{index:o,prefixCls:n,value:r,dragging:c,draggingDelete:u})),Q}),pLe=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","draggingDelete","onFocus"],mLe=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,o=e.onStartMove,i=e.onOffsetChange,a=e.values,s=e.handleRender,l=e.activeHandleRender,c=e.draggingIndex,u=e.draggingDelete,f=e.onFocus,h=At(e,pLe),p=d.useRef({}),m=d.useState(!1),g=$e(m,2),v=g[0],b=g[1],y=d.useState(-1),S=$e(y,2),w=S[0],E=S[1],C=function(I){E(I),b(!0)},x=function(I,M){C(M),f==null||f(I)},_=function(I,M){C(M)};d.useImperativeHandle(t,function(){return{focus:function(I){var M;(M=p.current[I])===null||M===void 0||M.focus()},hideHelp:function(){_i.flushSync(function(){b(!1)})}}});var P=z({prefixCls:n,onStartMove:o,onOffsetChange:i,render:s,onFocus:x,onMouseEnter:_},h);return d.createElement(d.Fragment,null,a.map(function(O,I){var M=c===I;return d.createElement(sU,Ge({ref:function(D){D?p.current[I]=D:delete p.current[I]},dragging:M,draggingDelete:M&&u,style:gh(r,I),key:I,value:O,valueIndex:I},P))}),l&&v&&d.createElement(sU,Ge({key:"a11y"},P,{value:a[w],valueIndex:null,dragging:c!==-1,draggingDelete:u,render:l,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))}),gLe=function(t){var n=t.prefixCls,r=t.style,o=t.children,i=t.value,a=t.onClick,s=d.useContext(Up),l=s.min,c=s.max,u=s.direction,f=s.includedStart,h=s.includedEnd,p=s.included,m="".concat(n,"-text"),g=PD(u,i,l,c);return d.createElement("span",{className:xe(m,Z({},"".concat(m,"-active"),p&&f<=i&&i<=h)),style:z(z({},g),r),onMouseDown:function(b){b.stopPropagation()},onClick:function(){a(i)}},o)},vLe=function(t){var n=t.prefixCls,r=t.marks,o=t.onClick,i="".concat(n,"-mark");return r.length?d.createElement("div",{className:i},r.map(function(a){var s=a.value,l=a.style,c=a.label;return d.createElement(gLe,{key:s,prefixCls:i,style:l,value:s,onClick:o},c)})):null},yLe=function(t){var n=t.prefixCls,r=t.value,o=t.style,i=t.activeStyle,a=d.useContext(Up),s=a.min,l=a.max,c=a.direction,u=a.included,f=a.includedStart,h=a.includedEnd,p="".concat(n,"-dot"),m=u&&f<=r&&r<=h,g=z(z({},PD(c,r,s,l)),typeof o=="function"?o(r):o);return m&&(g=z(z({},g),typeof i=="function"?i(r):i)),d.createElement("span",{className:xe(p,Z({},"".concat(p,"-active"),m)),style:g})},bLe=function(t){var n=t.prefixCls,r=t.marks,o=t.dots,i=t.style,a=t.activeStyle,s=d.useContext(Up),l=s.min,c=s.max,u=s.step,f=d.useMemo(function(){var h=new Set;if(r.forEach(function(m){h.add(m.value)}),o&&u!==null)for(var p=l;p<=c;)h.add(p),p+=u;return Array.from(h)},[l,c,u,o,r]);return d.createElement("div",{className:"".concat(n,"-step")},f.map(function(h){return d.createElement(yLe,{prefixCls:n,key:h,value:h,style:i,activeStyle:a})}))},lU=function(t){var n=t.prefixCls,r=t.style,o=t.start,i=t.end,a=t.index,s=t.onStartMove,l=t.replaceCls,c=d.useContext(Up),u=c.direction,f=c.min,h=c.max,p=c.disabled,m=c.range,g=c.classNames,v="".concat(n,"-track"),b=v6(o,f,h),y=v6(i,f,h),S=function(x){!p&&s&&s(x,-1)},w={};switch(u){case"rtl":w.right="".concat(b*100,"%"),w.width="".concat(y*100-b*100,"%");break;case"btt":w.bottom="".concat(b*100,"%"),w.height="".concat(y*100-b*100,"%");break;case"ttb":w.top="".concat(b*100,"%"),w.height="".concat(y*100-b*100,"%");break;default:w.left="".concat(b*100,"%"),w.width="".concat(y*100-b*100,"%")}var E=l||xe(v,Z(Z({},"".concat(v,"-").concat(a+1),a!==null&&m),"".concat(n,"-track-draggable"),s),g.track);return d.createElement("div",{className:E,style:z(z({},w),r),onMouseDown:S,onTouchStart:S})},SLe=function(t){var n=t.prefixCls,r=t.style,o=t.values,i=t.startPoint,a=t.onStartMove,s=d.useContext(Up),l=s.included,c=s.range,u=s.min,f=s.styles,h=s.classNames,p=d.useMemo(function(){if(!c){if(o.length===0)return[];var g=i??u,v=o[0];return[{start:Math.min(g,v),end:Math.max(g,v)}]}for(var b=[],y=0;yCLe&&u3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof g=="number"){var y,S=m[v],w=S+g,E=[];r.forEach(function(O){E.push(O.value)}),E.push(e,t),E.push(s(S));var C=g>0?1:-1;b==="unit"?E.push(s(S+C*n)):E.push(s(w)),E=E.filter(function(O){return O!==null}).filter(function(O){return g<0?O<=S:O>=S}),b==="unit"&&(E=E.filter(function(O){return O!==S}));var x=b==="unit"?S:w;y=E[0];var _=Math.abs(y-x);if(E.forEach(function(O){var I=Math.abs(O-x);I<_&&(y=O,_=I)}),y===void 0)return g<0?e:t;if(b==="dist")return y;if(Math.abs(g)>1){var P=Ze(m);return P[v]=y,p(P,g-C,v,b)}return y}else{if(g==="min")return e;if(g==="max")return t}},u=function(m,g,v){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",y=m[v],S=c(m,g,v,b);return{value:S,changed:S!==y}},f=function(m){return i===null&&m===0||typeof i=="number"&&m3&&arguments[3]!==void 0?arguments[3]:"unit",y=m.map(l),S=y[v],w=c(y,g,v,b);if(y[v]=w,o===!1){var E=i||0;v>0&&y[v-1]!==S&&(y[v]=Math.max(y[v],y[v-1]+E)),v0;P-=1)for(var O=!0;f(y[P]-y[P-1])&&O;){var I=u(y,-1,P-1);y[P-1]=I.value,O=I.changed}for(var M=y.length-1;M>0;M-=1)for(var T=!0;f(y[M]-y[M-1])&&T;){var D=u(y,-1,M-1);y[M-1]=D.value,T=D.changed}for(var A=0;A=0?k:!1},[k,ue]),He=d.useMemo(function(){return Object.keys(X||{}).map(function(It){var tt=X[It],Ot={value:Number(It)};return tt&&Ht(tt)==="object"&&!d.isValidElement(tt)&&("label"in tt||"style"in tt)?(Ot.style=tt.style,Ot.label=tt.label):Ot.label=tt,Ot}).filter(function(It){var tt=It.label;return tt||typeof tt=="number"}).sort(function(It,tt){return It.value-tt.value})},[X]),ge=xLe(me,Ce,ue,He,A,Le),De=$e(ge,2),qe=De[0],Fe=De[1],Ke=xn(x,{value:C}),Ue=$e(Ke,2),Ve=Ue[0],Tt=Ue[1],et=d.useMemo(function(){var It=Ve==null?[]:Array.isArray(Ve)?Ve:[Ve],tt=$e(It,1),Ot=tt[0],Pt=Ot===void 0?me:Ot,pn=Ve===null?[]:[Pt];if(Pe){if(pn=Ze(It),P||Ve===void 0){var Pn=P>=0?P+1:2;for(pn=pn.slice(0,Pn);pn.length=0&&Me.current.focus(It)}dt(null)},[ft]);var Ct=d.useMemo(function(){return U&&ue===null?!1:U},[U,ue]),Wt=An(function(It,tt){Xe(It,tt),I==null||I(st(et))}),at=Nt!==-1;d.useEffect(function(){if(!at){var It=et.lastIndexOf(Be);Me.current.focus(It)}},[at]);var $t=d.useMemo(function(){return Ze(je).sort(function(It,tt){return It-tt})},[je]),Bt=d.useMemo(function(){return Pe?[$t[0],$t[$t.length-1]]:[me,$t[0]]},[$t,Pe,me]),xt=$e(Bt,2),bt=xt[0],Ft=xt[1];d.useImperativeHandle(t,function(){return{focus:function(){Me.current.focus(0)},blur:function(){var tt,Ot=document,Pt=Ot.activeElement;(tt=Se.current)!==null&&tt!==void 0&&tt.contains(Pt)&&(Pt==null||Pt.blur())}}}),d.useEffect(function(){p&&Me.current.focus(0)},[]);var Re=d.useMemo(function(){return{min:me,max:Ce,direction:ye,disabled:u,keyboard:h,step:ue,included:K,includedStart:bt,includedEnd:Ft,range:Pe,tabIndex:fe,ariaLabelForHandle:te,ariaLabelledByForHandle:he,ariaRequired:pe,ariaValueTextFormatterForHandle:Oe,styles:s||{},classNames:a||{}}},[me,Ce,ye,u,h,ue,K,bt,Ft,Pe,fe,te,he,pe,Oe,s,a]);return d.createElement(Up.Provider,{value:Re},d.createElement("div",{ref:Se,className:xe(r,o,Z(Z(Z(Z({},"".concat(r,"-disabled"),u),"".concat(r,"-vertical"),V),"".concat(r,"-horizontal"),!V),"".concat(r,"-with-marks"),He.length)),style:i,onMouseDown:vt,id:l},d.createElement("div",{className:xe("".concat(r,"-rail"),a==null?void 0:a.rail),style:z(z({},re),s==null?void 0:s.rail)}),oe!==!1&&d.createElement(SLe,{prefixCls:r,style:Q,values:et,startPoint:L,onStartMove:Ct?Wt:void 0}),d.createElement(bLe,{prefixCls:r,marks:He,dots:ne,style:ie,activeStyle:G}),d.createElement(mLe,{ref:Me,prefixCls:r,style:ee,values:je,draggingIndex:Nt,draggingDelete:We,onStartMove:Wt,onOffsetChange:Rt,onFocus:m,onBlur:g,handleRender:le,activeHandleRender:ce,onChangeComplete:gt,onDelete:Ne?Lt:void 0}),d.createElement(vLe,{prefixCls:r,marks:He,onClick:pt})))});const jae=d.createContext({}),uU=d.forwardRef((e,t)=>{const{open:n,draggingDelete:r}=e,o=d.useRef(null),i=n&&!r,a=d.useRef(null);function s(){zn.cancel(a.current),a.current=null}function l(){a.current=zn(()=>{var c;(c=o.current)===null||c===void 0||c.forceAlign(),a.current=null})}return d.useEffect(()=>(i?l():s(),s),[i,e.title]),d.createElement(xa,Object.assign({ref:bi(o,t)},e,{open:i}))}),$Le=e=>{const{componentCls:t,antCls:n,controlSize:r,dotSize:o,marginFull:i,marginPart:a,colorFillContentHover:s,handleColorDisabled:l,calc:c,handleSize:u,handleSizeHover:f,handleActiveColor:h,handleActiveOutlineColor:p,handleLineWidth:m,handleLineWidthHover:g,motionDurationMid:v}=e;return{[t]:Object.assign(Object.assign({},Qn(e)),{position:"relative",height:r,margin:`${_e(a)} ${_e(i)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${_e(i)} ${_e(a)}`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${v}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${v}`},[`${t}-track`]:{backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS},[`${t}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:s},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${_e(m)} ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:u,height:u,outline:"none",userSelect:"none","&-dragging-delete":{opacity:0},"&::before":{content:'""',position:"absolute",insetInlineStart:c(m).mul(-1).equal(),insetBlockStart:c(m).mul(-1).equal(),width:c(u).add(c(m).mul(2)).equal(),height:c(u).add(c(m).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:u,height:u,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${_e(m)} ${e.handleColor}`,outline:"0px solid transparent",borderRadius:"50%",cursor:"pointer",transition:` inset-inline-start ${v}, inset-block-start ${v}, width ${v}, height ${v}, box-shadow ${v}, outline ${v} `},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:c(f).sub(u).div(2).add(g).mul(-1).equal(),insetBlockStart:c(f).sub(u).div(2).add(g).mul(-1).equal(),width:c(f).add(c(g).mul(2)).equal(),height:c(f).add(c(g).mul(2)).equal()},"&::after":{boxShadow:`0 0 0 ${_e(g)} ${h}`,outline:`6px solid ${p}`,width:f,height:f,insetInlineStart:e.calc(u).sub(f).div(2).equal(),insetBlockStart:e.calc(u).sub(f).div(2).equal()}}},[`&-lock ${t}-handle`]:{"&::before, &::after":{transition:"none"}},[`${t}-mark`]:{position:"absolute",fontSize:e.fontSize},[`${t}-mark-text`]:{position:"absolute",display:"inline-block",color:e.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:e.colorText}},[`${t}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${t}-dot`]:{position:"absolute",width:o,height:o,backgroundColor:e.colorBgElevated,border:`${_e(m)} solid ${e.dotBorderColor}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:e.dotActiveBorderColor}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.railBg} !important`},[`${t}-track`]:{backgroundColor:`${e.trackBgDisabled} !important`},[` ${t}-dot `]:{backgroundColor:e.colorBgElevated,borderColor:e.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:u,height:u,boxShadow:`0 0 0 ${_e(m)} ${l}`,insetInlineStart:0,insetBlockStart:0},[` ${t}-mark-text, ${t}-dot `]:{cursor:"not-allowed !important"}},[`&-tooltip ${n}-tooltip-inner`]:{minWidth:"unset"}})}},Fae=(e,t)=>{const{componentCls:n,railSize:r,handleSize:o,dotSize:i,marginFull:a,calc:s}=e,l=t?"paddingBlock":"paddingInline",c=t?"width":"height",u=t?"height":"width",f=t?"insetBlockStart":"insetInlineStart",h=t?"top":"insetInlineStart",p=s(r).mul(3).sub(o).div(2).equal(),m=s(o).sub(r).div(2).equal(),g=t?{borderWidth:`${_e(m)} 0`,transform:`translateY(${_e(s(m).mul(-1).equal())})`}:{borderWidth:`0 ${_e(m)}`,transform:`translateX(${_e(e.calc(m).mul(-1).equal())})`};return{[l]:r,[u]:s(r).mul(3).equal(),[`${n}-rail`]:{[c]:"100%",[u]:r},[`${n}-track,${n}-tracks`]:{[u]:r},[`${n}-track-draggable`]:Object.assign({},g),[`${n}-handle`]:{[f]:p},[`${n}-mark`]:{insetInlineStart:0,top:0,[h]:s(r).mul(3).add(t?0:a).equal(),[c]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[h]:r,[c]:"100%",[u]:r},[`${n}-dot`]:{position:"absolute",[f]:s(r).sub(i).div(2).equal()}}},PLe=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},Fae(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},OLe=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},Fae(e,!1)),{height:"100%"})}},MLe=e=>{const n=e.controlHeightLG/4,r=e.controlHeightSM/2,o=e.lineWidth+1,i=e.lineWidth+1*1.5,a=e.colorPrimary,s=new Un(a).setA(.2).toRgbString();return{controlSize:n,railSize:4,handleSize:n,handleSizeHover:r,dotSize:8,handleLineWidth:o,handleLineWidthHover:i,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:a,handleActiveOutlineColor:s,handleColorDisabled:new Un(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}},TLe=Kn("Slider",e=>{const t=kn(e,{marginPart:e.calc(e.controlHeight).sub(e.controlSize).div(2).equal(),marginFull:e.calc(e.controlSize).div(2).equal(),marginPartWithMark:e.calc(e.controlHeightLG).sub(e.controlSize).equal()});return[$Le(t),PLe(t),OLe(t)]},MLe);function sR(){const[e,t]=d.useState(!1),n=d.useRef(null),r=()=>{zn.cancel(n.current)},o=i=>{r(),i?t(i):n.current=zn(()=>{t(i)})};return d.useEffect(()=>r,[]),[e,o]}var RLe=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 o=0,r=Object.getOwnPropertySymbols(e);otypeof n=="number"?n.toString():""}const Lae=de.forwardRef((e,t)=>{var n,r,o,i,a,s,l,c,u,f;const{prefixCls:h,range:p,className:m,rootClassName:g,style:v,disabled:b,tooltipPrefixCls:y,tipFormatter:S,tooltipVisible:w,getTooltipPopupContainer:E,tooltipPlacement:C,tooltip:x={},onChangeComplete:_,classNames:P,styles:O}=e,I=RLe(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement","tooltip","onChangeComplete","classNames","styles"]),{vertical:M}=e,{direction:T,slider:D,getPrefixCls:A,getPopupContainer:j}=de.useContext(Yt),k=de.useContext(zo),F=b??k,{handleRender:V,direction:W}=de.useContext(jae),L=(W||T)==="rtl",[Q,ee]=sR(),[re,ie]=sR(),G=Object.assign({},x),{open:X,placement:ne,getPopupContainer:le,prefixCls:ce,formatter:oe}=G,se=X??w,fe=(Q||re)&&se!==!1,te=ILe(oe,S),[he,pe]=sR(),Oe=ue=>{_==null||_(ue),pe(!1)},Me=(ue,Le)=>ue||(Le?L?"left":"right":"top"),Se=A("slider",h),[ye,ve,be]=TLe(Se),Pe=xe(m,D==null?void 0:D.className,(n=D==null?void 0:D.classNames)===null||n===void 0?void 0:n.root,P==null?void 0:P.root,g,{[`${Se}-rtl`]:L,[`${Se}-lock`]:he},ve,be);L&&!I.vertical&&(I.reverse=!I.reverse),de.useEffect(()=>{const ue=()=>{zn(()=>{ie(!1)},1)};return document.addEventListener("mouseup",ue),()=>{document.removeEventListener("mouseup",ue)}},[]);const Ne=p&&!se,U=V||((ue,Le)=>{const{index:He}=Le,ge=ue.props;function De(Ue,Ve,Tt){var et,st,yt,gt;Tt&&((st=(et=I)[Ue])===null||st===void 0||st.call(et,Ve)),(gt=(yt=ge)[Ue])===null||gt===void 0||gt.call(yt,Ve)}const qe=Object.assign(Object.assign({},ge),{onMouseEnter:Ue=>{ee(!0),De("onMouseEnter",Ue)},onMouseLeave:Ue=>{ee(!1),De("onMouseLeave",Ue)},onMouseDown:Ue=>{ie(!0),pe(!0),De("onMouseDown",Ue)},onFocus:Ue=>{var Ve;ie(!0),(Ve=I.onFocus)===null||Ve===void 0||Ve.call(I,Ue),De("onFocus",Ue,!0)},onBlur:Ue=>{var Ve;ie(!1),(Ve=I.onBlur)===null||Ve===void 0||Ve.call(I,Ue),De("onBlur",Ue,!0)}}),Fe=de.cloneElement(ue,qe),Ke=(!!se||fe)&&te!==null;return Ne?Fe:de.createElement(uU,Object.assign({},G,{prefixCls:A("tooltip",ce??y),title:te?te(Le.value):"",open:Ke,placement:Me(ne??C,M),key:He,classNames:{root:`${Se}-tooltip`},getPopupContainer:le||E||j}),Fe)}),H=Ne?(ue,Le)=>{const He=de.cloneElement(ue,{style:Object.assign(Object.assign({},ue.props.style),{visibility:"hidden"})});return de.createElement(uU,Object.assign({},G,{prefixCls:A("tooltip",ce??y),title:te?te(Le.value):"",open:te!==null&&fe,placement:Me(ne??C,M),key:"tooltip",classNames:{root:`${Se}-tooltip`},getPopupContainer:le||E||j,draggingDelete:Le.draggingDelete}),He)}:void 0,q=Object.assign(Object.assign(Object.assign(Object.assign({},(r=D==null?void 0:D.styles)===null||r===void 0?void 0:r.root),D==null?void 0:D.style),O==null?void 0:O.root),v),me=Object.assign(Object.assign({},(o=D==null?void 0:D.styles)===null||o===void 0?void 0:o.tracks),O==null?void 0:O.tracks),Ce=xe((i=D==null?void 0:D.classNames)===null||i===void 0?void 0:i.tracks,P==null?void 0:P.tracks);return ye(de.createElement(_Le,Object.assign({},I,{classNames:Object.assign({handle:xe((a=D==null?void 0:D.classNames)===null||a===void 0?void 0:a.handle,P==null?void 0:P.handle),rail:xe((s=D==null?void 0:D.classNames)===null||s===void 0?void 0:s.rail,P==null?void 0:P.rail),track:xe((l=D==null?void 0:D.classNames)===null||l===void 0?void 0:l.track,P==null?void 0:P.track)},Ce?{tracks:Ce}:{}),styles:Object.assign({handle:Object.assign(Object.assign({},(c=D==null?void 0:D.styles)===null||c===void 0?void 0:c.handle),O==null?void 0:O.handle),rail:Object.assign(Object.assign({},(u=D==null?void 0:D.styles)===null||u===void 0?void 0:u.rail),O==null?void 0:O.rail),track:Object.assign(Object.assign({},(f=D==null?void 0:D.styles)===null||f===void 0?void 0:f.track),O==null?void 0:O.track)},Object.keys(me).length?{tracks:me}:{}),step:I.step,range:p,className:Pe,style:q,disabled:F,ref:t,prefixCls:Se,handleRender:U,activeHandleRender:H,onChangeComplete:Oe})))});var kLe=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 o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,colors:n,type:r,color:o,range:i=!1,className:a,activeIndex:s,onActive:l,onDragStart:c,onDragChange:u,onKeyDelete:f}=e,h=kLe(e,["prefixCls","colors","type","color","range","className","activeIndex","onActive","onDragStart","onDragChange","onKeyDelete"]),p=Object.assign(Object.assign({},h),{track:!1}),m=d.useMemo(()=>`linear-gradient(90deg, ${n.map(C=>`${C.color} ${C.percent}%`).join(", ")})`,[n]),g=d.useMemo(()=>!o||!r?null:r==="alpha"?o.toRgbString():`hsl(${o.toHsb().h}, 100%, 50%)`,[o,r]),v=An(c),b=An(u),y=d.useMemo(()=>({onDragStart:v,onDragChange:b}),[]),S=An((E,C)=>{const{onFocus:x,style:_,className:P,onKeyDown:O}=E.props,I=Object.assign({},_);return r==="gradient"&&(I.background=Jne(n,C.value)),d.cloneElement(E,{onFocus:M=>{l==null||l(C.index),x==null||x(M)},style:I,className:xe(P,{[`${t}-slider-handle-active`]:s===C.index}),onKeyDown:M=>{(M.key==="Delete"||M.key==="Backspace")&&f&&f(C.index),O==null||O(M)}})}),w=d.useMemo(()=>({direction:"ltr",handleRender:S}),[]);return d.createElement(jae.Provider,{value:w},d.createElement(Dae.Provider,{value:y},d.createElement(Lae,Object.assign({},p,{className:xe(a,`${t}-slider`),tooltip:{open:!1},range:{editable:i,minCount:2},styles:{rail:{background:m},handle:g?{background:g}:{}},classNames:{rail:`${t}-slider-rail`,handle:`${t}-slider-handle`}}))))},NLe=e=>{const{value:t,onChange:n,onChangeComplete:r}=e,o=a=>n(a[0]),i=a=>r(a[0]);return d.createElement(Bae,Object.assign({},e,{value:[t],onChange:o,onChangeComplete:i}))};function dU(e){return Ze(e).sort((t,n)=>t.percent-n.percent)}const ALe=e=>{const{prefixCls:t,mode:n,onChange:r,onChangeComplete:o,onActive:i,activeIndex:a,onGradientDragging:s,colors:l}=e,c=n==="gradient",u=d.useMemo(()=>l.map(b=>({percent:b.percent,color:b.color.toRgbString()})),[l]),f=d.useMemo(()=>u.map(b=>b.percent),[u]),h=d.useRef(u),p=b=>{let{rawValues:y,draggingIndex:S,draggingValue:w}=b;if(y.length>u.length){const E=Jne(u,w),C=Ze(u);C.splice(S,0,{percent:w,color:E}),h.current=C}else h.current=u;s(!0),r(new Ss(dU(h.current)),!0)},m=b=>{let{deleteIndex:y,draggingIndex:S,draggingValue:w}=b,E=Ze(h.current);y!==-1?E.splice(y,1):(E[S]=Object.assign(Object.assign({},E[S]),{percent:w}),E=dU(E)),r(new Ss(E),!0)},g=b=>{const y=Ze(u);y.splice(b,1);const S=new Ss(y);r(S),o(S)},v=b=>{o(new Ss(u)),a>=b.length&&i(b.length-1),s(!1)};return c?d.createElement(Bae,{min:0,max:100,prefixCls:t,className:`${t}-gradient-slider`,colors:u,color:null,value:f,range:!0,onChangeComplete:v,disabled:!1,type:"gradient",activeIndex:a,onActive:i,onDragStart:p,onDragChange:m,onKeyDelete:g}):null},DLe=d.memo(ALe);var jLe=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 o=0,r=Object.getOwnPropertySymbols(e);o{const e=d.useContext(Pae),{mode:t,onModeChange:n,modeOptions:r,prefixCls:o,allowClear:i,value:a,disabledAlpha:s,onChange:l,onClear:c,onChangeComplete:u,activeIndex:f,gradientDragging:h}=e,p=jLe(e,["mode","onModeChange","modeOptions","prefixCls","allowClear","value","disabledAlpha","onChange","onClear","onChangeComplete","activeIndex","gradientDragging"]),m=de.useMemo(()=>a.cleared?[{percent:0,color:new Ss("")},{percent:100,color:new Ss("")}]:a.getColors(),[a]),g=!a.isGradient(),[v,b]=de.useState(a);Zn(()=>{var D;g||b((D=m[f])===null||D===void 0?void 0:D.color)},[h,f]);const y=de.useMemo(()=>{var D;return g?a:h?v:(D=m[f])===null||D===void 0?void 0:D.color},[a,f,g,v,h]),[S,w]=de.useState(y),[E,C]=de.useState(0),x=S!=null&&S.equals(y)?y:S;Zn(()=>{w(y)},[E,y==null?void 0:y.toHexString()]);const _=(D,A)=>{let j=oa(D);if(a.cleared){const F=j.toRgb();if(!F.r&&!F.g&&!F.b&&A){const{type:V,value:W=0}=A;j=new Ss({h:V==="hue"?W:0,s:1,b:1,a:V==="alpha"?W/100:1})}else j=rx(j)}if(t==="single")return j;const k=Ze(m);return k[f]=Object.assign(Object.assign({},k[f]),{color:j}),new Ss(k)},P=(D,A,j)=>{const k=_(D,j);w(k.isGradient()?k.getColors()[f].color:k),l(k,A)},O=(D,A)=>{u(_(D,A)),C(j=>j+1)},I=D=>{l(_(D))};let M=null;const T=r.length>1;return(i||T)&&(M=de.createElement("div",{className:`${o}-operation`},T&&de.createElement($ae,{size:"small",options:r,value:t,onChange:n}),de.createElement(Mae,Object.assign({prefixCls:o,value:a,onChange:D=>{l(D),c==null||c()}},p)))),de.createElement(de.Fragment,null,M,de.createElement(DLe,Object.assign({},e,{colors:m})),de.createElement(eRe,{prefixCls:o,value:x==null?void 0:x.toHsb(),disabledAlpha:s,onChange:(D,A)=>{P(D,!0,A)},onChangeComplete:(D,A)=>{O(D,A)},components:FLe}),de.createElement(fLe,Object.assign({value:y,onChange:I,prefixCls:o,disabledAlpha:s},p)))},hU=()=>{const{prefixCls:e,value:t,presets:n,onChange:r}=d.useContext(Oae);return Array.isArray(n)?de.createElement(GRe,{value:t,presets:n,prefixCls:e,onChange:r}):null},LLe=e=>{const{prefixCls:t,presets:n,panelRender:r,value:o,onChange:i,onClear:a,allowClear:s,disabledAlpha:l,mode:c,onModeChange:u,modeOptions:f,onChangeComplete:h,activeIndex:p,onActive:m,format:g,onFormatChange:v,gradientDragging:b,onGradientDragging:y,disabledFormat:S}=e,w=`${t}-inner`,E=de.useMemo(()=>({prefixCls:t,value:o,onChange:i,onClear:a,allowClear:s,disabledAlpha:l,mode:c,onModeChange:u,modeOptions:f,onChangeComplete:h,activeIndex:p,onActive:m,format:g,onFormatChange:v,gradientDragging:b,onGradientDragging:y,disabledFormat:S}),[t,o,i,a,s,l,c,u,f,h,p,m,g,v,b,y,S]),C=de.useMemo(()=>({prefixCls:t,value:o,presets:n,onChange:i}),[t,o,n,i]),x=de.createElement("div",{className:`${w}-content`},de.createElement(fU,null),Array.isArray(n)&&de.createElement(Uje,null),de.createElement(hU,null));return de.createElement(Pae.Provider,{value:E},de.createElement(Oae.Provider,{value:C},de.createElement("div",{className:w},typeof r=="function"?r(x,{components:{Picker:fU,Presets:hU}}):x)))};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 o=0,r=Object.getOwnPropertySymbols(e);o{const{color:n,prefixCls:r,open:o,disabled:i,format:a,className:s,showText:l,activeIndex:c}=e,u=BLe(e,["color","prefixCls","open","disabled","format","className","showText","activeIndex"]),f=`${r}-trigger`,h=`${f}-text`,p=`${h}-cell`,[m]=zi("ColorPicker"),g=de.useMemo(()=>{if(!l)return"";if(typeof l=="function")return l(n);if(n.cleared)return m.transparent;if(n.isGradient())return n.getColors().map((S,w)=>{const E=c!==-1&&c!==w;return de.createElement("span",{key:w,className:xe(p,E&&`${p}-inactive`)},S.color.toRgbString()," ",S.percent,"%")});const b=n.toHexString().toUpperCase(),y=TA(n);switch(a){case"rgb":return n.toRgbString();case"hsb":return n.toHsbString();default:return y<100?`${b.slice(0,7)},${y}%`:b}},[n,a,l,c]),v=d.useMemo(()=>n.cleared?de.createElement(Mae,{prefixCls:r}):de.createElement($A,{prefixCls:r,color:n.toCssString()}),[n,r]);return de.createElement("div",Object.assign({ref:t,className:xe(f,s,{[`${f}-active`]:o,[`${f}-disabled`]:i})},Jr(u)),v,l&&de.createElement("div",{className:h},g))});function HLe(e,t,n){const[r]=zi("ColorPicker"),[o,i]=xn(e,{value:t}),[a,s]=d.useState("single"),[l,c]=d.useMemo(()=>{const g=(Array.isArray(n)?n:[n]).filter(S=>S);g.length||g.push("single");const v=new Set(g),b=[],y=(S,w)=>{v.has(S)&&b.push({label:w,value:S})};return y("single",r.singleColor),y("gradient",r.gradientColor),[b,v]},[n]),[u,f]=d.useState(null),h=An(g=>{f(g),i(g)}),p=d.useMemo(()=>{const g=oa(o||"");return g.equals(u)?u:g},[o,u]),m=d.useMemo(()=>{var g;return c.has(a)?a:(g=l[0])===null||g===void 0?void 0:g.value},[c,a,l]);return d.useEffect(()=>{s(p.isGradient()?"gradient":"single")},[p]),[p,h,m,s,l]}const zae=(e,t)=>({backgroundImage:`conic-gradient(${t} 0 25%, transparent 0 50%, ${t} 0 75%, transparent 0)`,backgroundSize:`${e} ${e}`}),pU=(e,t)=>{const{componentCls:n,borderRadiusSM:r,colorPickerInsetShadow:o,lineWidth:i,colorFillSecondary:a}=e;return{[`${n}-color-block`]:Object.assign(Object.assign({position:"relative",borderRadius:r,width:t,height:t,boxShadow:o,flex:"none"},zae("50%",e.colorFillSecondary)),{[`${n}-color-block-inner`]:{width:"100%",height:"100%",boxShadow:`inset 0 0 0 ${_e(i)} ${a}`,borderRadius:"inherit"}})}},ULe=e=>{const{componentCls:t,antCls:n,fontSizeSM:r,lineHeightSM:o,colorPickerAlphaInputWidth:i,marginXXS:a,paddingXXS:s,controlHeightSM:l,marginXS:c,fontSizeIcon:u,paddingXS:f,colorTextPlaceholder:h,colorPickerInputNumberHandleWidth:p,lineWidth:m}=e;return{[`${t}-input-container`]:{display:"flex",[`${t}-steppers${n}-input-number`]:{fontSize:r,lineHeight:o,[`${n}-input-number-input`]:{paddingInlineStart:s,paddingInlineEnd:0},[`${n}-input-number-handler-wrap`]:{width:p}},[`${t}-steppers${t}-alpha-input`]:{flex:`0 0 ${_e(i)}`,marginInlineStart:a},[`${t}-format-select${n}-select`]:{marginInlineEnd:c,width:"auto","&-single":{[`${n}-select-selector`]:{padding:0,border:0},[`${n}-select-arrow`]:{insetInlineEnd:0},[`${n}-select-selection-item`]:{paddingInlineEnd:e.calc(u).add(a).equal(),fontSize:r,lineHeight:_e(l)},[`${n}-select-item-option-content`]:{fontSize:r,lineHeight:o},[`${n}-select-dropdown`]:{[`${n}-select-item`]:{minHeight:"auto"}}}},[`${t}-input`]:{gap:a,alignItems:"center",flex:1,width:0,[`${t}-hsb-input,${t}-rgb-input`]:{display:"flex",gap:a,alignItems:"center"},[`${t}-steppers`]:{flex:1},[`${t}-hex-input${n}-input-affix-wrapper`]:{flex:1,padding:`0 ${_e(f)}`,[`${n}-input`]:{fontSize:r,textTransform:"uppercase",lineHeight:_e(e.calc(l).sub(e.calc(m).mul(2)).equal())},[`${n}-input-prefix`]:{color:h}}}}}},WLe=e=>{const{componentCls:t,controlHeightLG:n,borderRadiusSM:r,colorPickerInsetShadow:o,marginSM:i,colorBgElevated:a,colorFillSecondary:s,lineWidthBold:l,colorPickerHandlerSize:c}=e;return{userSelect:"none",[`${t}-select`]:{[`${t}-palette`]:{minHeight:e.calc(n).mul(4).equal(),overflow:"hidden",borderRadius:r},[`${t}-saturation`]:{position:"absolute",borderRadius:"inherit",boxShadow:o,inset:0},marginBottom:i},[`${t}-handler`]:{width:c,height:c,border:`${_e(l)} solid ${a}`,position:"relative",borderRadius:"50%",cursor:"pointer",boxShadow:`${o}, 0 0 0 1px ${s}`}}},VLe=e=>{const{componentCls:t,antCls:n,colorTextQuaternary:r,paddingXXS:o,colorPickerPresetColorSize:i,fontSizeSM:a,colorText:s,lineHeightSM:l,lineWidth:c,borderRadius:u,colorFill:f,colorWhite:h,marginXXS:p,paddingXS:m,fontHeightSM:g}=e;return{[`${t}-presets`]:{[`${n}-collapse-item > ${n}-collapse-header`]:{padding:0,[`${n}-collapse-expand-icon`]:{height:g,color:r,paddingInlineEnd:o}},[`${n}-collapse`]:{display:"flex",flexDirection:"column",gap:p},[`${n}-collapse-item > ${n}-collapse-content > ${n}-collapse-content-box`]:{padding:`${_e(m)} 0`},"&-label":{fontSize:a,color:s,lineHeight:l},"&-items":{display:"flex",flexWrap:"wrap",gap:e.calc(p).mul(1.5).equal(),[`${t}-presets-color`]:{position:"relative",cursor:"pointer",width:i,height:i,"&::before":{content:'""',pointerEvents:"none",width:e.calc(i).add(e.calc(c).mul(4)).equal(),height:e.calc(i).add(e.calc(c).mul(4)).equal(),position:"absolute",top:e.calc(c).mul(-2).equal(),insetInlineStart:e.calc(c).mul(-2).equal(),borderRadius:u,border:`${_e(c)} solid transparent`,transition:`border-color ${e.motionDurationMid} ${e.motionEaseInBack}`},"&:hover::before":{borderColor:f},"&::after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.calc(i).div(13).mul(5).equal(),height:e.calc(i).div(13).mul(8).equal(),border:`${_e(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}`},[`&${t}-presets-color-checked`]:{"&::after":{opacity:1,borderColor:h,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`transform ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`},[`&${t}-presets-color-bright`]:{"&::after":{borderColor:"rgba(0, 0, 0, 0.45)"}}}}},"&-empty":{fontSize:a,color:r}}}},KLe=e=>{const{componentCls:t,colorPickerInsetShadow:n,colorBgElevated:r,colorFillSecondary:o,lineWidthBold:i,colorPickerHandlerSizeSM:a,colorPickerSliderHeight:s,marginSM:l,marginXS:c}=e,u=e.calc(a).sub(e.calc(i).mul(2).equal()).equal(),f=e.calc(a).add(e.calc(i).mul(2).equal()).equal(),h={"&:after":{transform:"scale(1)",boxShadow:`${n}, 0 0 0 1px ${e.colorPrimaryActive}`}};return{[`${t}-slider`]:[zae(_e(s),e.colorFillSecondary),{margin:0,padding:0,height:s,borderRadius:e.calc(s).div(2).equal(),"&-rail":{height:s,borderRadius:e.calc(s).div(2).equal(),boxShadow:n},[`& ${t}-slider-handle`]:{width:u,height:u,top:0,borderRadius:"100%","&:before":{display:"block",position:"absolute",background:"transparent",left:{_skip_check_:!0,value:"50%"},top:"50%",transform:"translate(-50%, -50%)",width:f,height:f,borderRadius:"100%"},"&:after":{width:a,height:a,border:`${_e(i)} solid ${r}`,boxShadow:`${n}, 0 0 0 1px ${o}`,outline:"none",insetInlineStart:e.calc(i).mul(-1).equal(),top:e.calc(i).mul(-1).equal(),background:"transparent",transition:"none"},"&:focus":h}}],[`${t}-slider-container`]:{display:"flex",gap:l,marginBottom:l,[`${t}-slider-group`]:{flex:1,flexDirection:"column",justifyContent:"space-between",display:"flex","&-disabled-alpha":{justifyContent:"center"}}},[`${t}-gradient-slider`]:{marginBottom:c,[`& ${t}-slider-handle`]:{"&:after":{transform:"scale(0.8)"},"&-active, &:focus":h}}}},y6=(e,t,n)=>({borderInlineEndWidth:e.lineWidth,borderColor:t,boxShadow:`0 0 0 ${_e(e.controlOutlineWidth)} ${n}`,outline:0}),qLe=e=>{const{componentCls:t}=e;return{"&-rtl":{[`${t}-presets-color`]:{"&::after":{direction:"ltr"}},[`${t}-clear`]:{"&::after":{direction:"ltr"}}}}},mU=(e,t,n)=>{const{componentCls:r,borderRadiusSM:o,lineWidth:i,colorSplit:a,colorBorder:s,red6:l}=e;return{[`${r}-clear`]:Object.assign(Object.assign({width:t,height:t,borderRadius:o,border:`${_e(i)} solid ${a}`,position:"relative",overflow:"hidden",cursor:"inherit",transition:`all ${e.motionDurationFast}`},n),{"&::after":{content:'""',position:"absolute",insetInlineEnd:e.calc(i).mul(-1).equal(),top:e.calc(i).mul(-1).equal(),display:"block",width:40,height:2,transformOrigin:"calc(100% - 1px) 1px",transform:"rotate(-45deg)",backgroundColor:l},"&:hover":{borderColor:s}})}},GLe=e=>{const{componentCls:t,colorError:n,colorWarning:r,colorErrorHover:o,colorWarningHover:i,colorErrorOutline:a,colorWarningOutline:s}=e;return{[`&${t}-status-error`]:{borderColor:n,"&:hover":{borderColor:o},[`&${t}-trigger-active`]:Object.assign({},y6(e,n,a))},[`&${t}-status-warning`]:{borderColor:r,"&:hover":{borderColor:i},[`&${t}-trigger-active`]:Object.assign({},y6(e,r,s))}}},YLe=e=>{const{componentCls:t,controlHeightLG:n,controlHeightSM:r,controlHeight:o,controlHeightXS:i,borderRadius:a,borderRadiusSM:s,borderRadiusXS:l,borderRadiusLG:c,fontSizeLG:u}=e;return{[`&${t}-lg`]:{minWidth:n,minHeight:n,borderRadius:c,[`${t}-color-block, ${t}-clear`]:{width:o,height:o,borderRadius:a},[`${t}-trigger-text`]:{fontSize:u}},[`&${t}-sm`]:{minWidth:r,minHeight:r,borderRadius:s,[`${t}-color-block, ${t}-clear`]:{width:i,height:i,borderRadius:l},[`${t}-trigger-text`]:{lineHeight:_e(i)}}}},XLe=e=>{const{antCls:t,componentCls:n,colorPickerWidth:r,colorPrimary:o,motionDurationMid:i,colorBgElevated:a,colorTextDisabled:s,colorText:l,colorBgContainerDisabled:c,borderRadius:u,marginXS:f,marginSM:h,controlHeight:p,controlHeightSM:m,colorBgTextActive:g,colorPickerPresetColorSize:v,colorPickerPreviewSize:b,lineWidth:y,colorBorder:S,paddingXXS:w,fontSize:E,colorPrimaryHover:C,controlOutline:x}=e;return[{[n]:Object.assign({[`${n}-inner`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({"&-content":{display:"flex",flexDirection:"column",width:r,[`& > ${t}-divider`]:{margin:`${_e(h)} 0 ${_e(f)}`}},[`${n}-panel`]:Object.assign({},WLe(e))},KLe(e)),pU(e,b)),ULe(e)),VLe(e)),mU(e,v,{marginInlineStart:"auto"})),{[`${n}-operation`]:{display:"flex",justifyContent:"space-between",marginBottom:f}}),"&-trigger":Object.assign(Object.assign(Object.assign(Object.assign({minWidth:p,minHeight:p,borderRadius:u,border:`${_e(y)} solid ${S}`,cursor:"pointer",display:"inline-flex",alignItems:"flex-start",justifyContent:"center",transition:`all ${i}`,background:a,padding:e.calc(w).sub(y).equal(),[`${n}-trigger-text`]:{marginInlineStart:f,marginInlineEnd:e.calc(f).sub(e.calc(w).sub(y)).equal(),fontSize:E,color:l,alignSelf:"center","&-cell":{"&:not(:last-child):after":{content:'", "'},"&-inactive":{color:s}}},"&:hover":{borderColor:C},[`&${n}-trigger-active`]:Object.assign({},y6(e,o,x)),"&-disabled":{color:s,background:c,cursor:"not-allowed","&:hover":{borderColor:g},[`${n}-trigger-text`]:{color:s}}},mU(e,m)),pU(e,m)),GLe(e)),YLe(e))},qLe(e))},Bp(e,{focusElCls:`${n}-trigger-active`})]},QLe=Kn("ColorPicker",e=>{const{colorTextQuaternary:t,marginSM:n}=e,r=8,o=kn(e,{colorPickerWidth:234,colorPickerHandlerSize:16,colorPickerHandlerSizeSM:12,colorPickerAlphaInputWidth:44,colorPickerInputNumberHandleWidth:16,colorPickerPresetColorSize:24,colorPickerInsetShadow:`inset 0 0 1px 0 ${t}`,colorPickerSliderHeight:r,colorPickerPreviewSize:e.calc(r).mul(2).add(n).equal()});return[XLe(o)]});var JLe=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 o=0,r=Object.getOwnPropertySymbols(e);o{const{mode:t,value:n,defaultValue:r,format:o,defaultFormat:i,allowClear:a=!1,presets:s,children:l,trigger:c="click",open:u,disabled:f,placement:h="bottomLeft",arrow:p=!0,panelRender:m,showText:g,style:v,className:b,size:y,rootClassName:S,prefixCls:w,styles:E,disabledAlpha:C=!1,onFormatChange:x,onChange:_,onClear:P,onOpenChange:O,onChangeComplete:I,getPopupContainer:M,autoAdjustOverflow:T=!0,destroyTooltipOnHide:D,disabledFormat:A}=e,j=JLe(e,["mode","value","defaultValue","format","defaultFormat","allowClear","presets","children","trigger","open","disabled","placement","arrow","panelRender","showText","style","className","size","rootClassName","prefixCls","styles","disabledAlpha","onFormatChange","onChange","onClear","onOpenChange","onChangeComplete","getPopupContainer","autoAdjustOverflow","destroyTooltipOnHide","disabledFormat"]),{getPrefixCls:k,direction:F,colorPicker:V}=d.useContext(Yt),W=d.useContext(zo),K=f??W,[L,Q]=xn(!1,{value:u,postState:qe=>!K&&qe,onChange:O}),[ee,re]=xn(o,{value:o,defaultValue:i,onChange:x}),ie=k("color-picker",w),[G,X,ne,le,ce]=HLe(r,n,t),oe=d.useMemo(()=>TA(G)<100,[G]),[se,fe]=de.useState(null),te=qe=>{if(I){let Fe=oa(qe);C&&oe&&(Fe=rx(qe)),I(Fe)}},he=(qe,Fe)=>{let Ke=oa(qe);C&&oe&&(Ke=rx(Ke)),X(Ke),fe(null),_&&_(Ke,Ke.toCssString()),Fe||te(Ke)},[pe,Oe]=de.useState(0),[Me,Se]=de.useState(!1),ye=qe=>{if(le(qe),qe==="single"&&G.isGradient())Oe(0),he(new Ss(G.getColors()[0].color)),fe(G);else if(qe==="gradient"&&!G.isGradient()){const Fe=oe?rx(G):G;he(new Ss(se||[{percent:0,color:Fe},{percent:100,color:Fe}]))}},{status:ve}=de.useContext(Io),{compactSize:be,compactItemClassnames:Pe}=gc(ie,F),Ne=Eo(qe=>{var Fe;return(Fe=y??be)!==null&&Fe!==void 0?Fe:qe}),U=Mr(ie),[H,q,me]=QLe(ie,U),Ce={[`${ie}-rtl`]:F},ue=xe(S,me,U,Ce),Le=xe(ac(ie,ve),{[`${ie}-sm`]:Ne==="small",[`${ie}-lg`]:Ne==="large"},Pe,V==null?void 0:V.className,ue,b,q),He=xe(ie,ue),ge={open:L,trigger:c,placement:h,arrow:p,rootClassName:S,getPopupContainer:M,autoAdjustOverflow:T,destroyTooltipOnHide:D},De=Object.assign(Object.assign({},V==null?void 0:V.style),v);return H(de.createElement(fl,Object.assign({style:E==null?void 0:E.popup,styles:{body:E==null?void 0:E.popupOverlayInner},onOpenChange:qe=>{(!qe||!K)&&Q(qe)},content:de.createElement(ic,{form:!0},de.createElement(LLe,{mode:ne,onModeChange:ye,modeOptions:ce,prefixCls:ie,value:G,allowClear:a,disabled:K,disabledAlpha:C,presets:s,panelRender:m,format:ee,onFormatChange:re,onChange:he,onChangeComplete:te,onClear:P,activeIndex:pe,onActive:Oe,gradientDragging:Me,onGradientDragging:Se,disabledFormat:A})),classNames:{root:He}},ge),l||de.createElement(zLe,Object.assign({activeIndex:L?pe:-1,open:L,className:Le,style:De,prefixCls:ie,disabled:K,showText:g,format:ee},j,{color:G}))))},ZLe=jf(OD,void 0,e=>Object.assign(Object.assign({},e),{placement:"bottom",autoAdjustOverflow:!1}),"color-picker",e=>e);OD._InternalPanelDoNotUseOrYouWillBeFired=ZLe;var e7e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"},t7e=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:e7e}))},Hae=d.forwardRef(t7e),n7e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"},r7e=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:n7e}))},MD=d.forwardRef(r7e),o7e={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"},i7e=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:o7e}))},a7e=d.forwardRef(i7e);function s7e(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function l7e(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.rangeQuarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function Uae(e,t){const{allowClear:n=!0}=e,{clearIcon:r,removeIcon:o}=U$(Object.assign(Object.assign({},e),{prefixCls:t,componentName:"DatePicker"}));return[d.useMemo(()=>n===!1?!1:Object.assign({clearIcon:r},n===!0?{}:n),[n,r]),o]}const[c7e,u7e]=["week","WeekPicker"],[d7e,f7e]=["month","MonthPicker"],[h7e,p7e]=["year","YearPicker"],[m7e,g7e]=["quarter","QuarterPicker"],[Wae,gU]=["time","TimePicker"],v7e=e=>d.createElement(Hn,Object.assign({size:"small",type:"primary"},e));function Vae(e){return d.useMemo(()=>Object.assign({button:v7e},e),[e])}var y7e=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 o=0,r=Object.getOwnPropertySymbols(e);od.forwardRef((n,r)=>{var o;const{prefixCls:i,getPopupContainer:a,components:s,className:l,style:c,placement:u,size:f,disabled:h,bordered:p=!0,placeholder:m,popupClassName:g,dropdownClassName:v,status:b,rootClassName:y,variant:S,picker:w}=n,E=y7e(n,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","rootClassName","variant","picker"]),C=d.useRef(null),{getPrefixCls:x,direction:_,getPopupContainer:P,rangePicker:O}=d.useContext(Yt),I=x("picker",i),{compactSize:M,compactItemClassnames:T}=gc(I,_),D=x(),[A,j]=gd("rangePicker",S,p),k=Mr(I),[F,V,W]=Kie(I,k),[K]=Uae(n,I),L=Vae(s),Q=Eo(fe=>{var te;return(te=f??M)!==null&&te!==void 0?te:fe}),ee=d.useContext(zo),re=h??ee,ie=d.useContext(Io),{hasFeedback:G,status:X,feedbackIcon:ne}=ie,le=d.createElement(d.Fragment,null,w===Wae?d.createElement(MD,null):d.createElement(Hae,null),G&&ne);d.useImperativeHandle(r,()=>C.current);const[ce]=zi("Calendar",zb),oe=Object.assign(Object.assign({},ce),n.locale),[se]=vl("DatePicker",(o=n.popupStyle)===null||o===void 0?void 0:o.zIndex);return F(d.createElement(ic,{space:!0},d.createElement(lAe,Object.assign({separator:d.createElement("span",{"aria-label":"to",className:`${I}-separator`},d.createElement(a7e,null)),disabled:re,ref:C,placement:u,placeholder:l7e(oe,w,m),suffixIcon:le,prevIcon:d.createElement("span",{className:`${I}-prev-icon`}),nextIcon:d.createElement("span",{className:`${I}-next-icon`}),superPrevIcon:d.createElement("span",{className:`${I}-super-prev-icon`}),superNextIcon:d.createElement("span",{className:`${I}-super-next-icon`}),transitionName:`${D}-slide-up`,picker:w},E,{className:xe({[`${I}-${Q}`]:Q,[`${I}-${A}`]:j},ac(I,md(X,b),G),V,T,l,O==null?void 0:O.className,W,k,y),style:Object.assign(Object.assign({},O==null?void 0:O.style),c),locale:oe.lang,prefixCls:I,getPopupContainer:a||P,generateConfig:e,components:L,direction:_,classNames:{popup:xe(V,g||v,W,k,y)},styles:{popup:Object.assign(Object.assign({},n.popupStyle),{zIndex:se})},allowClear:K}))))});var S7e=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 o=0,r=Object.getOwnPropertySymbols(e);o{const t=(l,c)=>{const u=c===gU?"timePicker":"datePicker";return d.forwardRef((h,p)=>{var m;const{prefixCls:g,getPopupContainer:v,components:b,style:y,className:S,rootClassName:w,size:E,bordered:C,placement:x,placeholder:_,popupClassName:P,dropdownClassName:O,disabled:I,status:M,variant:T,onCalendarChange:D}=h,A=S7e(h,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange"]),{getPrefixCls:j,direction:k,getPopupContainer:F,[u]:V}=d.useContext(Yt),W=j("picker",g),{compactSize:K,compactItemClassnames:L}=gc(W,k),Q=d.useRef(null),[ee,re]=gd("datePicker",T,C),ie=Mr(W),[G,X,ne]=Kie(W,ie);d.useImperativeHandle(p,()=>Q.current);const le={showToday:!0},ce=l||h.picker,oe=j(),{onSelect:se,multiple:fe}=A,te=se&&l==="time"&&!fe,he=(ue,Le,He)=>{D==null||D(ue,Le,He),te&&se(ue)},[pe,Oe]=Uae(h,W),Me=Vae(b),Se=Eo(ue=>{var Le;return(Le=E??K)!==null&&Le!==void 0?Le:ue}),ye=d.useContext(zo),ve=I??ye,be=d.useContext(Io),{hasFeedback:Pe,status:Ne,feedbackIcon:U}=be,H=d.createElement(d.Fragment,null,ce==="time"?d.createElement(MD,null):d.createElement(Hae,null),Pe&&U),[q]=zi("DatePicker",zb),me=Object.assign(Object.assign({},q),h.locale),[Ce]=vl("DatePicker",(m=h.popupStyle)===null||m===void 0?void 0:m.zIndex);return G(d.createElement(ic,{space:!0},d.createElement(pAe,Object.assign({ref:Q,placeholder:s7e(me,ce,_),suffixIcon:H,placement:x,prevIcon:d.createElement("span",{className:`${W}-prev-icon`}),nextIcon:d.createElement("span",{className:`${W}-next-icon`}),superPrevIcon:d.createElement("span",{className:`${W}-super-prev-icon`}),superNextIcon:d.createElement("span",{className:`${W}-super-next-icon`}),transitionName:`${oe}-slide-up`,picker:l,onCalendarChange:he},le,A,{locale:me.lang,className:xe({[`${W}-${Se}`]:Se,[`${W}-${ee}`]:re},ac(W,md(Ne,M),Pe),X,L,V==null?void 0:V.className,S,ne,ie,w),style:Object.assign(Object.assign({},V==null?void 0:V.style),y),prefixCls:W,getPopupContainer:v||F,generateConfig:e,components:Me,direction:k,disabled:ve,classNames:{popup:xe(X,ne,ie,w,P||O)},styles:{popup:Object.assign(Object.assign({},h.popupStyle),{zIndex:Ce})},allowClear:pe,removeIcon:Oe}))))})},n=t(),r=t(c7e,u7e),o=t(d7e,f7e),i=t(h7e,p7e),a=t(m7e,g7e),s=t(Wae,gU);return{DatePicker:n,WeekPicker:r,MonthPicker:o,YearPicker:i,TimePicker:s,QuarterPicker:a}},Kae=e=>{const{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:o,TimePicker:i,QuarterPicker:a}=C7e(e),s=b7e(e),l=t;return l.WeekPicker=n,l.MonthPicker=r,l.YearPicker=o,l.RangePicker=s,l.TimePicker=i,l.QuarterPicker=a,l},qa=Kae(eie),w7e=jf(qa,"popupAlign",void 0,"picker");qa._InternalPanelDoNotUseOrYouWillBeFired=w7e;const x7e=jf(qa.RangePicker,"popupAlign",void 0,"picker");qa._InternalRangePanelDoNotUseOrYouWillBeFired=x7e;qa.generatePicker=Kae;const E7e={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1},TD=de.createContext({});var _7e=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 o=0,r=Object.getOwnPropertySymbols(e);oai(e).map(t=>Object.assign(Object.assign({},t==null?void 0:t.props),{key:t.key}));function P7e(e,t,n){const r=d.useMemo(()=>t||$7e(n),[t,n]);return d.useMemo(()=>r.map(i=>{var{span:a}=i,s=_7e(i,["span"]);return a==="filled"?Object.assign(Object.assign({},s),{filled:!0}):Object.assign(Object.assign({},s),{span:typeof a=="number"?a:loe(e,a)})}),[r,e])}var O7e=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 o=0,r=Object.getOwnPropertySymbols(e);oa).forEach(a=>{const{filled:s}=a,l=O7e(a,["filled"]);if(s){r.push(l),n.push(r),r=[],i=0;return}const c=t-i;i+=a.span||1,i>=t?(i>t?(o=!0,r.push(Object.assign(Object.assign({},l),{span:c}))):r.push(l),n.push(r),r=[],i=0):r.push(l)}),r.length>0&&n.push(r),n=n.map(a=>{const s=a.reduce((l,c)=>l+(c.span||1),0);if(s{const[n,r]=d.useMemo(()=>M7e(t,e),[t,e]);return n},R7e=e=>{let{children:t}=e;return t};function vU(e){return e!=null}const lR=e=>{const{itemPrefixCls:t,component:n,span:r,className:o,style:i,labelStyle:a,contentStyle:s,bordered:l,label:c,content:u,colon:f,type:h,styles:p}=e,m=n,g=d.useContext(TD),{classNames:v}=g;return l?d.createElement(m,{className:xe({[`${t}-item-label`]:h==="label",[`${t}-item-content`]:h==="content",[`${v==null?void 0:v.label}`]:h==="label",[`${v==null?void 0:v.content}`]:h==="content"},o),style:i,colSpan:r},vU(c)&&d.createElement("span",{style:Object.assign(Object.assign({},a),p==null?void 0:p.label)},c),vU(u)&&d.createElement("span",{style:Object.assign(Object.assign({},a),p==null?void 0:p.content)},u)):d.createElement(m,{className:xe(`${t}-item`,o),style:i,colSpan:r},d.createElement("div",{className:`${t}-item-container`},(c||c===0)&&d.createElement("span",{className:xe(`${t}-item-label`,v==null?void 0:v.label,{[`${t}-item-no-colon`]:!f}),style:Object.assign(Object.assign({},a),p==null?void 0:p.label)},c),(u||u===0)&&d.createElement("span",{className:xe(`${t}-item-content`,v==null?void 0:v.content),style:Object.assign(Object.assign({},s),p==null?void 0:p.content)},u)))};function cR(e,t,n){let{colon:r,prefixCls:o,bordered:i}=t,{component:a,type:s,showLabel:l,showContent:c,labelStyle:u,contentStyle:f,styles:h}=n;return e.map((p,m)=>{let{label:g,children:v,prefixCls:b=o,className:y,style:S,labelStyle:w,contentStyle:E,span:C=1,key:x,styles:_}=p;return typeof a=="string"?d.createElement(lR,{key:`${s}-${x||m}`,className:y,style:S,styles:{label:Object.assign(Object.assign(Object.assign(Object.assign({},u),h==null?void 0:h.label),w),_==null?void 0:_.label),content:Object.assign(Object.assign(Object.assign(Object.assign({},f),h==null?void 0:h.content),E),_==null?void 0:_.content)},span:C,colon:r,component:a,itemPrefixCls:b,bordered:i,label:l?g:null,content:c?v:null,type:s}):[d.createElement(lR,{key:`label-${x||m}`,className:y,style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},u),h==null?void 0:h.label),S),w),_==null?void 0:_.label),span:1,colon:r,component:a[0],itemPrefixCls:b,bordered:i,label:g,type:"label"}),d.createElement(lR,{key:`content-${x||m}`,className:y,style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},f),h==null?void 0:h.content),S),E),_==null?void 0:_.content),span:C*2-1,component:a[1],itemPrefixCls:b,bordered:i,content:v,type:"content"})]})}const I7e=e=>{const t=d.useContext(TD),{prefixCls:n,vertical:r,row:o,index:i,bordered:a}=e;return r?d.createElement(d.Fragment,null,d.createElement("tr",{key:`label-${i}`,className:`${n}-row`},cR(o,e,Object.assign({component:"th",type:"label",showLabel:!0},t))),d.createElement("tr",{key:`content-${i}`,className:`${n}-row`},cR(o,e,Object.assign({component:"td",type:"content",showContent:!0},t)))):d.createElement("tr",{key:i,className:`${n}-row`},cR(o,e,Object.assign({component:a?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},t)))},k7e=e=>{const{componentCls:t,labelBg:n}=e;return{[`&${t}-bordered`]:{[`> ${t}-view`]:{border:`${_e(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"> table":{tableLayout:"auto"},[`${t}-row`]:{borderBottom:`${_e(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBottom:"none"},[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${_e(e.padding)} ${_e(e.paddingLG)}`,borderInlineEnd:`${_e(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:`${_e(e.paddingSM)} ${_e(e.paddingLG)}`}}},[`&${t}-small`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${_e(e.paddingXS)} ${_e(e.padding)}`}}}}}},N7e=e=>{const{componentCls:t,extraColor:n,itemPaddingBottom:r,itemPaddingEnd:o,colonMarginRight:i,colonMarginLeft:a,titleMarginBottom:s}=e;return{[t]:Object.assign(Object.assign(Object.assign({},Qn(e)),k7e(e)),{"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",alignItems:"center",marginBottom:s},[`${t}-title`]:Object.assign(Object.assign({},wa),{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:o},"> 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:`${_e(a)} ${_e(i)}`},[`&${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}}}})}},A7e=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}),D7e=Kn("Descriptions",e=>{const t=kn(e,{});return N7e(t)},A7e);var j7e=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 o=0,r=Object.getOwnPropertySymbols(e);o{var t,n,r,o,i,a,s,l;const{prefixCls:c,title:u,extra:f,column:h,colon:p=!0,bordered:m,layout:g,children:v,className:b,rootClassName:y,style:S,size:w,labelStyle:E,contentStyle:C,styles:x,items:_,classNames:P}=e,O=j7e(e,["prefixCls","title","extra","column","colon","bordered","layout","children","className","rootClassName","style","size","labelStyle","contentStyle","styles","items","classNames"]),{getPrefixCls:I,direction:M,descriptions:T}=d.useContext(Yt),D=I("descriptions",c),A=W$(),j=d.useMemo(()=>{var ee;return typeof h=="number"?h:(ee=loe(A,Object.assign(Object.assign({},E7e),h)))!==null&&ee!==void 0?ee:3},[A,h]),k=P7e(A,_,v),F=Eo(w),V=T7e(j,k),[W,K,L]=D7e(D),Q=d.useMemo(()=>{var ee,re,ie,G;return{labelStyle:E,contentStyle:C,styles:{content:Object.assign(Object.assign({},(ee=T==null?void 0:T.styles)===null||ee===void 0?void 0:ee.content),x==null?void 0:x.content),label:Object.assign(Object.assign({},(re=T==null?void 0:T.styles)===null||re===void 0?void 0:re.label),x==null?void 0:x.label)},classNames:{label:xe((ie=T==null?void 0:T.classNames)===null||ie===void 0?void 0:ie.label,P==null?void 0:P.label),content:xe((G=T==null?void 0:T.classNames)===null||G===void 0?void 0:G.content,P==null?void 0:P.content)}}},[E,C,x,P,T]);return W(d.createElement(TD.Provider,{value:Q},d.createElement("div",Object.assign({className:xe(D,T==null?void 0:T.className,(t=T==null?void 0:T.classNames)===null||t===void 0?void 0:t.root,P==null?void 0:P.root,{[`${D}-${F}`]:F&&F!=="default",[`${D}-bordered`]:!!m,[`${D}-rtl`]:M==="rtl"},b,y,K,L),style:Object.assign(Object.assign(Object.assign(Object.assign({},T==null?void 0:T.style),(n=T==null?void 0:T.styles)===null||n===void 0?void 0:n.root),x==null?void 0:x.root),S)},O),(u||f)&&d.createElement("div",{className:xe(`${D}-header`,(r=T==null?void 0:T.classNames)===null||r===void 0?void 0:r.header,P==null?void 0:P.header),style:Object.assign(Object.assign({},(o=T==null?void 0:T.styles)===null||o===void 0?void 0:o.header),x==null?void 0:x.header)},u&&d.createElement("div",{className:xe(`${D}-title`,(i=T==null?void 0:T.classNames)===null||i===void 0?void 0:i.title,P==null?void 0:P.title),style:Object.assign(Object.assign({},(a=T==null?void 0:T.styles)===null||a===void 0?void 0:a.title),x==null?void 0:x.title)},u),f&&d.createElement("div",{className:xe(`${D}-extra`,(s=T==null?void 0:T.classNames)===null||s===void 0?void 0:s.extra,P==null?void 0:P.extra),style:Object.assign(Object.assign({},(l=T==null?void 0:T.styles)===null||l===void 0?void 0:l.extra),x==null?void 0:x.extra)},f)),d.createElement("div",{className:`${D}-view`},d.createElement("table",null,d.createElement("tbody",null,V.map((ee,re)=>d.createElement(I7e,{key:re,index:re,colon:p,prefixCls:D,vertical:g==="vertical",bordered:m,row:ee}))))))))};Bs.Item=R7e;var yU=d.createContext(null),qae=d.createContext({}),F7e=["prefixCls","className","containerRef"],L7e=function(t){var n=t.prefixCls,r=t.className,o=t.containerRef,i=At(t,F7e),a=d.useContext(qae),s=a.panel,l=mc(s,o);return d.createElement("div",Ge({className:xe("".concat(n,"-content"),r),role:"dialog",ref:l},Jr(t,{aria:!0}),{"aria-modal":"true"},i))};function bU(e){return typeof e=="string"&&String(Number(e))===e?(yr(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}var SU={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function B7e(e,t){var n,r,o,i=e.prefixCls,a=e.open,s=e.placement,l=e.inline,c=e.push,u=e.forceRender,f=e.autoFocus,h=e.keyboard,p=e.classNames,m=e.rootClassName,g=e.rootStyle,v=e.zIndex,b=e.className,y=e.id,S=e.style,w=e.motion,E=e.width,C=e.height,x=e.children,_=e.mask,P=e.maskClosable,O=e.maskMotion,I=e.maskClassName,M=e.maskStyle,T=e.afterOpenChange,D=e.onClose,A=e.onMouseEnter,j=e.onMouseOver,k=e.onMouseLeave,F=e.onClick,V=e.onKeyDown,W=e.onKeyUp,K=e.styles,L=e.drawerRender,Q=d.useRef(),ee=d.useRef(),re=d.useRef();d.useImperativeHandle(t,function(){return Q.current});var ie=function(ve){var be=ve.keyCode,Pe=ve.shiftKey;switch(be){case ut.TAB:{if(be===ut.TAB){if(!Pe&&document.activeElement===re.current){var Ne;(Ne=ee.current)===null||Ne===void 0||Ne.focus({preventScroll:!0})}else if(Pe&&document.activeElement===ee.current){var U;(U=re.current)===null||U===void 0||U.focus({preventScroll:!0})}}break}case ut.ESC:{D&&h&&(ve.stopPropagation(),D(ve));break}}};d.useEffect(function(){if(a&&f){var ye;(ye=Q.current)===null||ye===void 0||ye.focus({preventScroll:!0})}},[a]);var G=d.useState(!1),X=$e(G,2),ne=X[0],le=X[1],ce=d.useContext(yU),oe;typeof c=="boolean"?oe=c?{}:{distance:0}:oe=c||{};var se=(n=(r=(o=oe)===null||o===void 0?void 0:o.distance)!==null&&r!==void 0?r:ce==null?void 0:ce.pushDistance)!==null&&n!==void 0?n:180,fe=d.useMemo(function(){return{pushDistance:se,push:function(){le(!0)},pull:function(){le(!1)}}},[se]);d.useEffect(function(){if(a){var ye;ce==null||(ye=ce.push)===null||ye===void 0||ye.call(ce)}else{var ve;ce==null||(ve=ce.pull)===null||ve===void 0||ve.call(ce)}},[a]),d.useEffect(function(){return function(){var ye;ce==null||(ye=ce.pull)===null||ye===void 0||ye.call(ce)}},[]);var te=_&&d.createElement(Jo,Ge({key:"mask"},O,{visible:a}),function(ye,ve){var be=ye.className,Pe=ye.style;return d.createElement("div",{className:xe("".concat(i,"-mask"),be,p==null?void 0:p.mask,I),style:z(z(z({},Pe),M),K==null?void 0:K.mask),onClick:P&&a?D:void 0,ref:ve})}),he=typeof w=="function"?w(s):w,pe={};if(ne&&se)switch(s){case"top":pe.transform="translateY(".concat(se,"px)");break;case"bottom":pe.transform="translateY(".concat(-se,"px)");break;case"left":pe.transform="translateX(".concat(se,"px)");break;default:pe.transform="translateX(".concat(-se,"px)");break}s==="left"||s==="right"?pe.width=bU(E):pe.height=bU(C);var Oe={onMouseEnter:A,onMouseOver:j,onMouseLeave:k,onClick:F,onKeyDown:V,onKeyUp:W},Me=d.createElement(Jo,Ge({key:"panel"},he,{visible:a,forceRender:u,onVisibleChanged:function(ve){T==null||T(ve)},removeOnLeave:!1,leavedClassName:"".concat(i,"-content-wrapper-hidden")}),function(ye,ve){var be=ye.className,Pe=ye.style,Ne=d.createElement(L7e,Ge({id:y,containerRef:ve,prefixCls:i,className:xe(b,p==null?void 0:p.content),style:z(z({},S),K==null?void 0:K.content)},Jr(e,{aria:!0}),Oe),x);return d.createElement("div",Ge({className:xe("".concat(i,"-content-wrapper"),p==null?void 0:p.wrapper,be),style:z(z(z({},pe),Pe),K==null?void 0:K.wrapper)},Jr(e,{data:!0})),L?L(Ne):Ne)}),Se=z({},g);return v&&(Se.zIndex=v),d.createElement(yU.Provider,{value:fe},d.createElement("div",{className:xe(i,"".concat(i,"-").concat(s),m,Z(Z({},"".concat(i,"-open"),a),"".concat(i,"-inline"),l)),style:Se,tabIndex:-1,ref:Q,onKeyDown:ie},te,d.createElement("div",{tabIndex:0,ref:ee,style:SU,"aria-hidden":"true","data-sentinel":"start"}),Me,d.createElement("div",{tabIndex:0,ref:re,style:SU,"aria-hidden":"true","data-sentinel":"end"})))}var z7e=d.forwardRef(B7e),H7e=function(t){var n=t.open,r=n===void 0?!1:n,o=t.prefixCls,i=o===void 0?"rc-drawer":o,a=t.placement,s=a===void 0?"right":a,l=t.autoFocus,c=l===void 0?!0:l,u=t.keyboard,f=u===void 0?!0:u,h=t.width,p=h===void 0?378:h,m=t.mask,g=m===void 0?!0:m,v=t.maskClosable,b=v===void 0?!0:v,y=t.getContainer,S=t.forceRender,w=t.afterOpenChange,E=t.destroyOnClose,C=t.onMouseEnter,x=t.onMouseOver,_=t.onMouseLeave,P=t.onClick,O=t.onKeyDown,I=t.onKeyUp,M=t.panelRef,T=d.useState(!1),D=$e(T,2),A=D[0],j=D[1],k=d.useState(!1),F=$e(k,2),V=F[0],W=F[1];Zn(function(){W(!0)},[]);var K=V?r:!1,L=d.useRef(),Q=d.useRef();Zn(function(){K&&(Q.current=document.activeElement)},[K]);var ee=function(ne){var le;if(j(ne),w==null||w(ne),!ne&&Q.current&&!((le=L.current)!==null&&le!==void 0&&le.contains(Q.current))){var ce;(ce=Q.current)===null||ce===void 0||ce.focus({preventScroll:!0})}},re=d.useMemo(function(){return{panel:M}},[M]);if(!S&&!A&&!K&&E)return null;var ie={onMouseEnter:C,onMouseOver:x,onMouseLeave:_,onClick:P,onKeyDown:O,onKeyUp:I},G=z(z({},t),{},{open:K,prefixCls:i,placement:s,autoFocus:c,keyboard:f,width:p,mask:g,maskClosable:b,inline:y===!1,afterOpenChange:ee,ref:L},ie);return d.createElement(qae.Provider,{value:re},d.createElement(V1,{open:K||S||A,autoDestroy:!1,getContainer:y,autoLock:g&&(K||A)},d.createElement(z7e,G)))};const Gae=e=>{var t,n;const{prefixCls:r,title:o,footer:i,extra:a,loading:s,onClose:l,headerStyle:c,bodyStyle:u,footerStyle:f,children:h,classNames:p,styles:m}=e,{drawer:g}=d.useContext(Yt),v=d.useCallback(E=>d.createElement("button",{type:"button",onClick:l,"aria-label":"Close",className:`${r}-close`},E),[l]),[b,y]=LA(Vg(e),Vg(g),{closable:!0,closeIconRender:v}),S=d.useMemo(()=>{var E,C;return!o&&!b?null:d.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(E=g==null?void 0:g.styles)===null||E===void 0?void 0:E.header),c),m==null?void 0:m.header),className:xe(`${r}-header`,{[`${r}-header-close-only`]:b&&!o&&!a},(C=g==null?void 0:g.classNames)===null||C===void 0?void 0:C.header,p==null?void 0:p.header)},d.createElement("div",{className:`${r}-header-title`},y,o&&d.createElement("div",{className:`${r}-title`},o)),a&&d.createElement("div",{className:`${r}-extra`},a))},[b,y,a,c,r,o]),w=d.useMemo(()=>{var E,C;if(!i)return null;const x=`${r}-footer`;return d.createElement("div",{className:xe(x,(E=g==null?void 0:g.classNames)===null||E===void 0?void 0:E.footer,p==null?void 0:p.footer),style:Object.assign(Object.assign(Object.assign({},(C=g==null?void 0:g.styles)===null||C===void 0?void 0:C.footer),f),m==null?void 0:m.footer)},i)},[i,f,r]);return d.createElement(d.Fragment,null,S,d.createElement("div",{className:xe(`${r}-body`,p==null?void 0:p.body,(t=g==null?void 0:g.classNames)===null||t===void 0?void 0:t.body),style:Object.assign(Object.assign(Object.assign({},(n=g==null?void 0:g.styles)===null||n===void 0?void 0:n.body),u),m==null?void 0:m.body)},s?d.createElement(pd,{active:!0,title:!1,paragraph:{rows:5},className:`${r}-body-skeleton`}):h),w)},U7e=e=>{const t="100%";return{left:`translateX(-${t})`,right:`translateX(${t})`,top:`translateY(-${t})`,bottom:`translateY(${t})`}[e]},Yae=(e,t)=>({"&-enter, &-appear":Object.assign(Object.assign({},e),{"&-active":t}),"&-leave":Object.assign(Object.assign({},t),{"&-active":e})}),Xae=(e,t)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${t}`}}},Yae({opacity:e},{opacity:1})),W7e=(e,t)=>[Xae(.7,t),Yae({transform:U7e(e)},{transform:"none"})],V7e=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[t]:{[`${t}-mask-motion`]:Xae(0,n),[`${t}-panel-motion`]:["left","right","top","bottom"].reduce((r,o)=>Object.assign(Object.assign({},r),{[`&-${o}`]:W7e(o,n)}),{})}}},K7e=e=>{const{borderRadiusSM:t,componentCls:n,zIndexPopup:r,colorBgMask:o,colorBgElevated:i,motionDurationSlow:a,motionDurationMid:s,paddingXS:l,padding:c,paddingLG:u,fontSizeLG:f,lineHeightLG:h,lineWidth:p,lineType:m,colorSplit:g,marginXS:v,colorIcon:b,colorIconHover:y,colorBgTextHover:S,colorBgTextActive:w,colorText:E,fontWeightStrong:C,footerPaddingBlock:x,footerPaddingInline:_,calc:P}=e,O=`${n}-content-wrapper`;return{[n]:{position:"fixed",inset:0,zIndex:r,pointerEvents:"none",color:E,"&-pure":{position:"relative",background:i,display:"flex",flexDirection:"column",[`&${n}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${n}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${n}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${n}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${n}-mask`]:{position:"absolute",inset:0,zIndex:r,background:o,pointerEvents:"auto"},[O]:{position:"absolute",zIndex:r,maxWidth:"100vw",transition:`all ${a}`,"&-hidden":{display:"none"}},[`&-left > ${O}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${O}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${O}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${O}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${n}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:i,pointerEvents:"auto"},[`${n}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${_e(c)} ${_e(u)}`,fontSize:f,lineHeight:h,borderBottom:`${_e(p)} ${m} ${g}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${n}-extra`]:{flex:"none"},[`${n}-close`]:Object.assign({display:"inline-flex",width:P(f).add(l).equal(),height:P(f).add(l).equal(),borderRadius:t,justifyContent:"center",alignItems:"center",marginInlineEnd:v,color:b,fontWeight:C,fontSize:f,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${s}`,textRendering:"auto","&:hover":{color:y,backgroundColor:S,textDecoration:"none"},"&:active":{backgroundColor:w}},Ka(e)),[`${n}-title`]:{flex:1,margin:0,fontWeight:e.fontWeightStrong,fontSize:f,lineHeight:h},[`${n}-body`]:{flex:1,minWidth:0,minHeight:0,padding:u,overflow:"auto",[`${n}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${n}-footer`]:{flexShrink:0,padding:`${_e(x)} ${_e(_)}`,borderTop:`${_e(p)} ${m} ${g}`},"&-rtl":{direction:"rtl"}}}},q7e=e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding}),Qae=Kn("Drawer",e=>{const t=kn(e,{});return[K7e(t),V7e(t)]},q7e);var Jae=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 o=0,r=Object.getOwnPropertySymbols(e);o{const{rootClassName:t,width:n,height:r,size:o="default",mask:i=!0,push:a=G7e,open:s,afterOpenChange:l,onClose:c,prefixCls:u,getContainer:f,style:h,className:p,visible:m,afterVisibleChange:g,maskStyle:v,drawerStyle:b,contentWrapperStyle:y}=e,S=Jae(e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:w,getPrefixCls:E,direction:C,drawer:x}=d.useContext(Yt),_=E("drawer",u),[P,O,I]=Qae(_),M=f===void 0&&w?()=>w(document.body):f,T=xe({"no-mask":!i,[`${_}-rtl`]:C==="rtl"},t,O,I),D=d.useMemo(()=>n??(o==="large"?736:378),[n,o]),A=d.useMemo(()=>r??(o==="large"?736:378),[r,o]),j={motionName:Mi(_,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},k=re=>({motionName:Mi(_,`panel-motion-${re}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),F=Sre(),[V,W]=vl("Drawer",S.zIndex),{classNames:K={},styles:L={}}=S,{classNames:Q={},styles:ee={}}=x||{};return P(d.createElement(ic,{form:!0,space:!0},d.createElement(B1.Provider,{value:W},d.createElement(H7e,Object.assign({prefixCls:_,onClose:c,maskMotion:j,motion:k},S,{classNames:{mask:xe(K.mask,Q.mask),content:xe(K.content,Q.content),wrapper:xe(K.wrapper,Q.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},L.mask),v),ee.mask),content:Object.assign(Object.assign(Object.assign({},L.content),b),ee.content),wrapper:Object.assign(Object.assign(Object.assign({},L.wrapper),y),ee.wrapper)},open:s??m,mask:i,push:a,width:D,height:A,style:Object.assign(Object.assign({},x==null?void 0:x.style),h),className:xe(x==null?void 0:x.className,p),rootClassName:T,getContainer:M,afterOpenChange:l??g,panelRef:F,zIndex:V}),d.createElement(Gae,Object.assign({prefixCls:_},S,{onClose:c}))))))},Y7e=e=>{const{prefixCls:t,style:n,className:r,placement:o="right"}=e,i=Jae(e,["prefixCls","style","className","placement"]),{getPrefixCls:a}=d.useContext(Yt),s=a("drawer",t),[l,c,u]=Qae(s),f=xe(s,`${s}-pure`,`${s}-${o}`,c,u,r);return l(d.createElement("div",{className:f,style:n},d.createElement(Gae,Object.assign({prefixCls:s},i))))};dP._InternalPanelDoNotUseOrYouWillBeFired=Y7e;function CU(e){return["small","middle","large"].includes(e)}function wU(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const Zae=de.createContext({latestIndex:0}),X7e=Zae.Provider,Q7e=e=>{let{className:t,index:n,children:r,split:o,style:i}=e;const{latestIndex:a}=d.useContext(Zae);return r==null?null:d.createElement(d.Fragment,null,d.createElement("div",{className:t,style:i},r),n{var n,r,o;const{getPrefixCls:i,space:a,direction:s}=d.useContext(Yt),{size:l=(n=a==null?void 0:a.size)!==null&&n!==void 0?n:"small",align:c,className:u,rootClassName:f,children:h,direction:p="horizontal",prefixCls:m,split:g,style:v,wrap:b=!1,classNames:y,styles:S}=e,w=J7e(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[E,C]=Array.isArray(l)?l:[l,l],x=CU(C),_=CU(E),P=wU(C),O=wU(E),I=ai(h,{keepEmpty:!0}),M=c===void 0&&p==="horizontal"?"center":c,T=i("space",m),[D,A,j]=zne(T),k=xe(T,a==null?void 0:a.className,A,`${T}-${p}`,{[`${T}-rtl`]:s==="rtl",[`${T}-align-${M}`]:M,[`${T}-gap-row-${C}`]:x,[`${T}-gap-col-${E}`]:_},u,f,j),F=xe(`${T}-item`,(r=y==null?void 0:y.item)!==null&&r!==void 0?r:(o=a==null?void 0:a.classNames)===null||o===void 0?void 0:o.item);let V=0;const W=I.map((Q,ee)=>{var re,ie;Q!=null&&(V=ee);const G=(Q==null?void 0:Q.key)||`${F}-${ee}`;return d.createElement(Q7e,{className:F,key:G,index:ee,split:g,style:(re=S==null?void 0:S.item)!==null&&re!==void 0?re:(ie=a==null?void 0:a.styles)===null||ie===void 0?void 0:ie.item},Q)}),K=d.useMemo(()=>({latestIndex:V}),[V]);if(I.length===0)return null;const L={};return b&&(L.flexWrap="wrap"),!_&&O&&(L.columnGap=E),!x&&P&&(L.rowGap=C),D(d.createElement("div",Object.assign({ref:t,className:k,style:Object.assign(Object.assign(Object.assign({},L),a==null?void 0:a.style),v)},w),d.createElement(X7e,{value:K},W)))}),oo=Z7e;oo.Compact=ATe;var eBe=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 o=0,r=Object.getOwnPropertySymbols(e);o{const{getPopupContainer:t,getPrefixCls:n,direction:r}=d.useContext(Yt),{prefixCls:o,type:i="default",danger:a,disabled:s,loading:l,onClick:c,htmlType:u,children:f,className:h,menu:p,arrow:m,autoFocus:g,overlay:v,trigger:b,align:y,open:S,onOpenChange:w,placement:E,getPopupContainer:C,href:x,icon:_=d.createElement(aD,null),title:P,buttonsRender:O=X=>X,mouseEnterDelay:I,mouseLeaveDelay:M,overlayClassName:T,overlayStyle:D,destroyPopupOnHide:A,dropdownRender:j}=e,k=eBe(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"]),F=n("dropdown",o),V=`${F}-button`,W={menu:p,arrow:m,autoFocus:g,align:y,disabled:s,trigger:s?[]:b,onOpenChange:w,getPopupContainer:C||t,mouseEnterDelay:I,mouseLeaveDelay:M,overlayClassName:T,overlayStyle:D,destroyPopupOnHide:A,dropdownRender:j},{compactSize:K,compactItemClassnames:L}=gc(F,r),Q=xe(V,L,h);"overlay"in e&&(W.overlay=v),"open"in e&&(W.open=S),"placement"in e?W.placement=E:W.placement=r==="rtl"?"bottomLeft":"bottomRight";const ee=d.createElement(Hn,{type:i,danger:a,disabled:s,loading:l,onClick:c,htmlType:u,href:x,title:P},f),re=d.createElement(Hn,{type:i,danger:a,icon:_}),[ie,G]=O([ee,re]);return d.createElement(oo.Compact,Object.assign({className:Q,size:K,block:!0},k),ie,d.createElement(Q$,Object.assign({},W),G))};ese.__ANT_BUTTON=!0;const RD=Q$;RD.Button=ese;function rE(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 tBe=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)"}}}}},nBe=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${_e(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 ${_e(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),xU=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},rBe=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},Qn(e)),nBe(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},xU(e,e.controlHeightSM)),"&-large":Object.assign({},xU(e,e.controlHeightLG))})}},oBe=e=>{const{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:o,antCls:i,labelRequiredMarkColor:a,labelColor:s,labelFontSize:l,labelHeight:c,labelColonMarginInlineStart:u,labelColonMarginInlineEnd:f,itemMarginBottom:h}=e;return{[t]:Object.assign(Object.assign({},Qn(e)),{marginBottom:h,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, &-hidden${i}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:c,color:s,fontSize:l,[`> ${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:u,marginInlineEnd:f},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${o}-col-'"]):not([class*="' ${o}-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:MA,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},EU=(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"}}}}},iBe=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"}}}}},jl=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),tse=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:jl(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},aBe=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`]:jl(e)}},[`@media (max-width: ${_e(e.screenXSMax)})`]:[tse(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:jl(e)}}}],[`@media (max-width: ${_e(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:jl(e)}}},[`@media (max-width: ${_e(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:jl(e)}}},[`@media (max-width: ${_e(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:jl(e)}}}}},sBe=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`]:jl(e),[`@media (max-width: ${_e(e.screenXSMax)})`]:[tse(e),{[t]:{[`${n}-col-xs-24${t}-label`]:jl(e)}}],[`@media (max-width: ${_e(e.screenSMMax)})`]:{[t]:{[`${n}-col-sm-24${t}-label`]:jl(e)}},[`@media (max-width: ${_e(e.screenMDMax)})`]:{[t]:{[`${n}-col-md-24${t}-label`]:jl(e)}},[`@media (max-width: ${_e(e.screenLGMax)})`]:{[t]:{[`${n}-col-lg-24${t}-label`]:jl(e)}}}},lBe=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}),nse=(e,t)=>kn(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),ID=Kn("Form",(e,t)=>{let{rootPrefixCls:n}=t;const r=nse(e,n);return[rBe(r),oBe(r),tBe(r),EU(r,r.componentCls),EU(r,r.formItemCls),iBe(r),aBe(r),sBe(r),U1(r),MA]},lBe,{order:-1e3}),_U=[];function uR(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 rse=e=>{let{help:t,helpStatus:n,errors:r=_U,warnings:o=_U,className:i,fieldId:a,onVisibleChanged:s}=e;const{prefixCls:l}=d.useContext(FA),c=`${l}-item-explain`,u=Mr(l),[f,h,p]=ID(l,u),m=d.useMemo(()=>Ug(l),[l]),g=rE(r),v=rE(o),b=d.useMemo(()=>t!=null?[uR(t,"help",n)]:[].concat(Ze(g.map((w,E)=>uR(w,"error","error",E))),Ze(v.map((w,E)=>uR(w,"warning","warning",E)))),[t,n,g,v]),y=d.useMemo(()=>{const w={};return b.forEach(E=>{let{key:C}=E;w[C]=(w[C]||0)+1}),b.map((E,C)=>Object.assign(Object.assign({},E),{key:w[E.key]>1?`${E.key}-fallback-${C}`:E.key}))},[b]),S={};return a&&(S.id=`${a}_help`),f(d.createElement(Jo,{motionDeadline:m.motionDeadline,motionName:`${l}-show-help`,visible:!!y.length,onVisibleChanged:s},w=>{const{className:E,style:C}=w;return d.createElement("div",Object.assign({},S,{className:xe(c,E,p,u,i,h),style:C,role:"alert"}),d.createElement(b$,Object.assign({keys:y},Ug(l),{motionName:`${l}-show-help-item`,component:!1}),x=>{const{key:_,error:P,errorStatus:O,className:I,style:M}=x;return d.createElement("div",{key:_,className:xe(I,{[`${c}-${O}`]:O}),style:M},P)}))}))},cBe=["parentNode"],uBe="form_item";function Vy(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function ose(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:cBe.includes(n)?`${uBe}_${n}`:n}function ise(e,t,n,r,o,i){let a=r;return i!==void 0?a=i:n.validating?a="validating":e.length?a="error":t.length?a="warning":(n.touched||o&&n.validated)&&(a="success"),a}function $U(e){return Vy(e).join("_")}function PU(e,t){const n=t.getFieldInstance(e),r=Q_(n);if(r)return r;const o=ose(Vy(e),t.__INTERNAL__.name);if(o)return document.getElementById(o)}function ase(e){const[t]=jA(),n=d.useRef({}),r=d.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:o=>i=>{const a=$U(o);i?n.current[a]=i:delete n.current[a]}},scrollToField:function(o){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const a=PU(o,r);a&&jMe(a,Object.assign({scrollMode:"if-needed",block:"nearest"},i))},focusField:o=>{var i;const a=PU(o,r);a&&((i=a.focus)===null||i===void 0||i.call(a))},getFieldInstance:o=>{const i=$U(o);return n.current[i]}}),[e,t]);return[r]}var dBe=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 o=0,r=Object.getOwnPropertySymbols(e);o{const n=d.useContext(zo),{getPrefixCls:r,direction:o,form:i}=d.useContext(Yt),{prefixCls:a,className:s,rootClassName:l,size:c,disabled:u=n,form:f,colon:h,labelAlign:p,labelWrap:m,labelCol:g,wrapperCol:v,hideRequiredMark:b,layout:y="horizontal",scrollToFirstError:S,requiredMark:w,onFinishFailed:E,name:C,style:x,feedbackIcons:_,variant:P}=e,O=dBe(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),I=Eo(c),M=d.useContext(Lte),T=d.useMemo(()=>w!==void 0?w:b?!1:i&&i.requiredMark!==void 0?i.requiredMark:!0,[b,w,i]),D=h??(i==null?void 0:i.colon),A=r("form",a),j=Mr(A),[k,F,V]=ID(A,j),W=xe(A,`${A}-${y}`,{[`${A}-hide-required-mark`]:T===!1,[`${A}-rtl`]:o==="rtl",[`${A}-${I}`]:I},V,j,F,i==null?void 0:i.className,s,l),[K]=ase(f),{__INTERNAL__:L}=K;L.name=C;const Q=d.useMemo(()=>({name:C,labelAlign:p,labelCol:g,labelWrap:m,wrapperCol:v,vertical:y==="vertical",colon:D,requiredMark:T,itemRef:L.itemRef,form:K,feedbackIcons:_}),[C,p,g,v,y,D,T,K,_]),ee=d.useRef(null);d.useImperativeHandle(t,()=>{var G;return Object.assign(Object.assign({},K),{nativeElement:(G=ee.current)===null||G===void 0?void 0:G.nativeElement})});const re=(G,X)=>{if(G){let ne={block:"nearest"};typeof G=="object"&&(ne=Object.assign(Object.assign({},ne),G)),K.scrollToField(X,ne),ne.focus&&K.focusField(X)}},ie=G=>{if(E==null||E(G),G.errorFields.length){const X=G.errorFields[0].name;if(S!==void 0){re(S,X);return}i&&i.scrollToFirstError!==void 0&&re(i.scrollToFirstError,X)}};return k(d.createElement(yre.Provider,{value:P},d.createElement(yA,{disabled:u},d.createElement(fp.Provider,{value:I},d.createElement(vre,{validateMessages:M},d.createElement(rd.Provider,{value:Q},d.createElement(Tv,Object.assign({id:C},O,{name:C,onFinishFailed:ie,form:K,ref:ee,style:Object.assign(Object.assign({},i==null?void 0:i.style),x),className:W}))))))))},hBe=d.forwardRef(fBe);function pBe(e){if(typeof e=="function")return e;const t=ai(e);return t.length<=1?t[0]:t}const sse=()=>{const{status:e,errors:t=[],warnings:n=[]}=d.useContext(Io);return{status:e,errors:t,warnings:n}};sse.Context=Io;function mBe(e){const[t,n]=d.useState(e),r=d.useRef(null),o=d.useRef([]),i=d.useRef(!1);d.useEffect(()=>(i.current=!1,()=>{i.current=!0,zn.cancel(r.current),r.current=null}),[]);function a(s){i.current||(r.current===null&&(o.current=[],r.current=zn(()=>{r.current=null,n(l=>{let c=l;return o.current.forEach(u=>{c=u(c)}),c})})),o.current.push(s))}return[t,a]}function gBe(){const{itemRef:e}=d.useContext(rd),t=d.useRef({});function n(r,o){const i=o&&typeof o=="object"&&Af(o),a=r.join("_");return(t.current.name!==a||t.current.originRef!==i)&&(t.current.name=a,t.current.originRef=i,t.current.ref=bi(e(r),i)),t.current.ref}return n}const vBe=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},yBe=$v(["Form","item-item"],(e,t)=>{let{rootPrefixCls:n}=t;const r=nse(e,n);return[vBe(r)]});var bBe=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 o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,status:n,labelCol:r,wrapperCol:o,children:i,errors:a,warnings:s,_internalItemRender:l,extra:c,help:u,fieldId:f,marginBottom:h,onErrorVisibleChanged:p,label:m}=e,g=`${t}-item`,v=d.useContext(rd),b=d.useMemo(()=>{let D=Object.assign({},o||v.wrapperCol||{});return m===null&&!r&&!o&&v.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(j=>{const k=j?[j]:[],F=Mo(v.labelCol,k),V=typeof F=="object"?F:{},W=Mo(D,k),K=typeof W=="object"?W:{};"span"in V&&!("offset"in K)&&V.spanbBe(v,["labelCol","wrapperCol"]),[v]),w=d.useRef(null),[E,C]=d.useState(0);Zn(()=>{c&&w.current?C(w.current.clientHeight):C(0)},[c]);const x=d.createElement("div",{className:`${g}-control-input`},d.createElement("div",{className:`${g}-control-input-content`},i)),_=d.useMemo(()=>({prefixCls:t,status:n}),[t,n]),P=h!==null||a.length||s.length?d.createElement(FA.Provider,{value:_},d.createElement(rse,{fieldId:f,errors:a,warnings:s,help:u,helpStatus:n,className:`${g}-explain-connected`,onVisibleChanged:p})):null,O={};f&&(O.id=`${f}_extra`);const I=c?d.createElement("div",Object.assign({},O,{className:`${g}-extra`,ref:w}),c):null,M=P||I?d.createElement("div",{className:`${g}-additional`,style:h?{minHeight:h+E}:{}},P,I):null,T=l&&l.mark==="pro_table_render"&&l.render?l.render(e,{input:x,errorList:P,extra:I}):d.createElement(d.Fragment,null,x,M);return d.createElement(rd.Provider,{value:S},d.createElement(gp,Object.assign({},b,{className:y}),T),d.createElement(yBe,{prefixCls:t}))};var wBe={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"},xBe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:wBe}))},EBe=d.forwardRef(xBe),_Be=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 o=0,r=Object.getOwnPropertySymbols(e);o{let{prefixCls:t,label:n,htmlFor:r,labelCol:o,labelAlign:i,colon:a,required:s,requiredMark:l,tooltip:c,vertical:u}=e;var f;const[h]=zi("Form"),{labelAlign:p,labelCol:m,labelWrap:g,colon:v}=d.useContext(rd);if(!n)return null;const b=o||m||{},y=i||p,S=`${t}-item-label`,w=xe(S,y==="left"&&`${S}-left`,b.className,{[`${S}-wrap`]:!!g});let E=n;const C=a===!0||v!==!1&&a!==!1;C&&!u&&typeof n=="string"&&n.trim()&&(E=n.replace(/[:|:]\s*$/,""));const _=$Be(c);if(_){const{icon:M=d.createElement(EBe,null)}=_,T=_Be(_,["icon"]),D=d.createElement(xa,Object.assign({},T),d.cloneElement(M,{className:`${t}-item-tooltip`,title:"",onClick:A=>{A.preventDefault()},tabIndex:null}));E=d.createElement(d.Fragment,null,E,D)}const P=l==="optional",O=typeof l=="function";O?E=l(E,{required:!!s}):P&&!s&&(E=d.createElement(d.Fragment,null,E,d.createElement("span",{className:`${t}-item-optional`,title:""},(h==null?void 0:h.optional)||((f=Os.Form)===null||f===void 0?void 0:f.optional))));const I=xe({[`${t}-item-required`]:s,[`${t}-item-required-mark-optional`]:P||O,[`${t}-item-no-colon`]:!C});return d.createElement(gp,Object.assign({},b,{className:w}),d.createElement("label",{htmlFor:r,className:I,title:typeof n=="string"?n:""},E))},OBe={success:Lp,warning:Df,error:ru,validating:Gc};function lse(e){let{children:t,errors:n,warnings:r,hasFeedback:o,validateStatus:i,prefixCls:a,meta:s,noStyle:l}=e;const c=`${a}-item`,{feedbackIcons:u}=d.useContext(rd),f=ise(n,r,s,null,!!o,i),{isFormItemInput:h,status:p,hasFeedback:m,feedbackIcon:g}=d.useContext(Io),v=d.useMemo(()=>{var b;let y;if(o){const w=o!==!0&&o.icons||u,E=f&&((b=w==null?void 0:w({status:f,errors:n,warnings:r}))===null||b===void 0?void 0:b[f]),C=f&&OBe[f];y=E!==!1&&C?d.createElement("span",{className:xe(`${c}-feedback-icon`,`${c}-feedback-icon-${f}`)},E||d.createElement(C,null)):null}const S={status:f||"",errors:n,warnings:r,hasFeedback:!!o,feedbackIcon:y,isFormItemInput:!0};return l&&(S.status=(f??p)||"",S.isFormItemInput=h,S.hasFeedback=!!(o??m),S.feedbackIcon=o!==void 0?S.feedbackIcon:g),S},[f,o,l,h,p]);return d.createElement(Io.Provider,{value:v},t)}var MBe=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 o=0,r=Object.getOwnPropertySymbols(e);o{if(I&&x.current){const V=getComputedStyle(x.current);D(parseInt(V.marginBottom,10))}},[I,M]);const A=V=>{V||D(null)},k=function(){let V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const W=V?_:c.errors,K=V?P:c.warnings;return ise(W,K,c,"",!!u,l)}(),F=xe(S,n,r,{[`${S}-with-help`]:O||_.length||P.length,[`${S}-has-feedback`]:k&&u,[`${S}-has-success`]:k==="success",[`${S}-has-warning`]:k==="warning",[`${S}-has-error`]:k==="error",[`${S}-is-validating`]:k==="validating",[`${S}-hidden`]:f,[`${S}-${b}`]:b});return d.createElement("div",{className:F,style:o,ref:x},d.createElement(sP,Object.assign({className:`${S}-row`},Yn(y,["_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(PBe,Object.assign({htmlFor:p},e,{requiredMark:w,required:m??g,prefixCls:t,vertical:C})),d.createElement(CBe,Object.assign({},e,c,{errors:_,warnings:P,prefixCls:t,status:k,help:i,marginBottom:T,onErrorVisibleChanged:A}),d.createElement(gre.Provider,{value:v},d.createElement(lse,{prefixCls:t,meta:c,errors:c.errors,warnings:c.warnings,hasFeedback:u,validateStatus:k},h)))),!!T&&d.createElement("div",{className:`${S}-margin-offset`,style:{marginBottom:-T}}))}const RBe="__SPLIT__";function IBe(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(o=>{const i=e[o],a=t[o];return i===a||typeof i=="function"||typeof a=="function"})}const kBe=d.memo(e=>{let{children:t}=e;return t},(e,t)=>IBe(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function OU(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function NBe(e){const{name:t,noStyle:n,className:r,dependencies:o,prefixCls:i,shouldUpdate:a,rules:s,children:l,required:c,label:u,messageVariables:f,trigger:h="onChange",validateTrigger:p,hidden:m,help:g,layout:v}=e,{getPrefixCls:b}=d.useContext(Yt),{name:y}=d.useContext(rd),S=pBe(l),w=typeof S=="function",E=d.useContext(gre),{validateTrigger:C}=d.useContext(_f),x=p!==void 0?p:C,_=t!=null,P=b("form",i),O=Mr(P),[I,M,T]=ID(P,O);nu();const D=d.useContext(Vb),A=d.useRef(null),[j,k]=mBe({}),[F,V]=hp(()=>OU()),W=G=>{const X=D==null?void 0:D.getKey(G.name);if(V(G.destroy?OU():G,!0),n&&g!==!1&&E){let ne=G.name;if(G.destroy)ne=A.current||ne;else if(X!==void 0){const[le,ce]=X;ne=[le].concat(Ze(ce)),A.current=ne}E(G,ne)}},K=(G,X)=>{k(ne=>{const le=Object.assign({},ne),oe=[].concat(Ze(G.name.slice(0,-1)),Ze(X)).join(RBe);return G.destroy?delete le[oe]:le[oe]=G,le})},[L,Q]=d.useMemo(()=>{const G=Ze(F.errors),X=Ze(F.warnings);return Object.values(j).forEach(ne=>{G.push.apply(G,Ze(ne.errors||[])),X.push.apply(X,Ze(ne.warnings||[]))}),[G,X]},[j,F.errors,F.warnings]),ee=gBe();function re(G,X,ne){return n&&!m?d.createElement(lse,{prefixCls:P,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:F,errors:L,warnings:Q,noStyle:!0},G):d.createElement(TBe,Object.assign({key:"row"},e,{className:xe(r,T,O,M),prefixCls:P,fieldId:X,isRequired:ne,errors:L,warnings:Q,meta:F,onSubItemMetaChange:K,layout:v}),G)}if(!_&&!w&&!o)return I(re(S));let ie={};return typeof u=="string"?ie.label=u:t&&(ie.label=String(t)),f&&(ie=Object.assign(Object.assign({},ie),f)),I(d.createElement(DA,Object.assign({},e,{messageVariables:ie,trigger:h,validateTrigger:x,onMetaChange:W}),(G,X,ne)=>{const le=Vy(t).length&&X?X.name:[],ce=ose(le,y),oe=c!==void 0?c:!!(s!=null&&s.some(te=>{if(te&&typeof te=="object"&&te.required&&!te.warningOnly)return!0;if(typeof te=="function"){const he=te(ne);return(he==null?void 0:he.required)&&!(he!=null&&he.warningOnly)}return!1})),se=Object.assign({},G);let fe=null;if(Array.isArray(S)&&_)fe=S;else if(!(w&&(!(a||o)||_))){if(!(o&&!w&&!_))if(d.isValidElement(S)){const te=Object.assign(Object.assign({},S.props),se);if(te.id||(te.id=ce),g||L.length>0||Q.length>0||e.extra){const Oe=[];(g||L.length>0)&&Oe.push(`${ce}_help`),e.extra&&Oe.push(`${ce}_extra`),te["aria-describedby"]=Oe.join(" ")}L.length>0&&(te["aria-invalid"]="true"),oe&&(te["aria-required"]="true"),tc(S)&&(te.ref=ee(le,S)),new Set([].concat(Ze(Vy(h)),Ze(Vy(x)))).forEach(Oe=>{te[Oe]=function(){for(var Me,Se,ye,ve,be,Pe=arguments.length,Ne=new Array(Pe),U=0;U{var{prefixCls:t,children:n}=e,r=ABe(e,["prefixCls","children"]);const{getPrefixCls:o}=d.useContext(Yt),i=o("form",t),a=d.useMemo(()=>({prefixCls:i,status:"error"}),[i]);return d.createElement(fre,Object.assign({},r),(s,l,c)=>d.createElement(FA.Provider,{value:a},n(s.map(u=>Object.assign(Object.assign({},u),{fieldKey:u.key})),l,{errors:c.errors,warnings:c.warnings})))};function jBe(){const{form:e}=d.useContext(rd);return e}const Vn=hBe;Vn.Item=cse;Vn.List=DBe;Vn.ErrorList=rse;Vn.useForm=ase;Vn.useFormInstance=jBe;Vn.useWatch=mre;Vn.Provider=vre;Vn.create=()=>{};function use(){var e=document.documentElement.clientWidth,t=window.innerHeight||document.documentElement.clientHeight;return{width:e,height:t}}function FBe(e){var t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}function jc(e,t,n,r){var o=bb.unstable_batchedUpdates?function(a){bb.unstable_batchedUpdates(n,a)}:n;return e!=null&&e.addEventListener&&e.addEventListener(t,o,r),{remove:function(){e!=null&&e.removeEventListener&&e.removeEventListener(t,o,r)}}}var aS=d.createContext(null),LBe=function(t){var n=t.visible,r=t.maskTransitionName,o=t.getContainer,i=t.prefixCls,a=t.rootClassName,s=t.icons,l=t.countRender,c=t.showSwitch,u=t.showProgress,f=t.current,h=t.transform,p=t.count,m=t.scale,g=t.minScale,v=t.maxScale,b=t.closeIcon,y=t.onActive,S=t.onClose,w=t.onZoomIn,E=t.onZoomOut,C=t.onRotateRight,x=t.onRotateLeft,_=t.onFlipX,P=t.onFlipY,O=t.onReset,I=t.toolbarRender,M=t.zIndex,T=t.image,D=d.useContext(aS),A=s.rotateLeft,j=s.rotateRight,k=s.zoomIn,F=s.zoomOut,V=s.close,W=s.left,K=s.right,L=s.flipX,Q=s.flipY,ee="".concat(i,"-operations-operation");d.useEffect(function(){var he=function(Oe){Oe.keyCode===ut.ESC&&S()};return n&&window.addEventListener("keydown",he),function(){window.removeEventListener("keydown",he)}},[n]);var re=function(pe,Oe){pe.preventDefault(),pe.stopPropagation(),y(Oe)},ie=d.useCallback(function(he){var pe=he.type,Oe=he.disabled,Me=he.onClick,Se=he.icon;return d.createElement("div",{key:pe,className:xe(ee,"".concat(i,"-operations-operation-").concat(pe),Z({},"".concat(i,"-operations-operation-disabled"),!!Oe)),onClick:Me},Se)},[ee,i]),G=c?ie({icon:W,onClick:function(pe){return re(pe,-1)},type:"prev",disabled:f===0}):void 0,X=c?ie({icon:K,onClick:function(pe){return re(pe,1)},type:"next",disabled:f===p-1}):void 0,ne=ie({icon:Q,onClick:P,type:"flipY"}),le=ie({icon:L,onClick:_,type:"flipX"}),ce=ie({icon:A,onClick:x,type:"rotateLeft"}),oe=ie({icon:j,onClick:C,type:"rotateRight"}),se=ie({icon:F,onClick:E,type:"zoomOut",disabled:m<=g}),fe=ie({icon:k,onClick:w,type:"zoomIn",disabled:m===v}),te=d.createElement("div",{className:"".concat(i,"-operations")},ne,le,ce,oe,se,fe);return d.createElement(Jo,{visible:n,motionName:r},function(he){var pe=he.className,Oe=he.style;return d.createElement(V1,{open:!0,getContainer:o??document.body},d.createElement("div",{className:xe("".concat(i,"-operations-wrapper"),pe,a),style:z(z({},Oe),{},{zIndex:M})},b===null?null:d.createElement("button",{className:"".concat(i,"-close"),onClick:S},b||V),c&&d.createElement(d.Fragment,null,d.createElement("div",{className:xe("".concat(i,"-switch-left"),Z({},"".concat(i,"-switch-left-disabled"),f===0)),onClick:function(Se){return re(Se,-1)}},W),d.createElement("div",{className:xe("".concat(i,"-switch-right"),Z({},"".concat(i,"-switch-right-disabled"),f===p-1)),onClick:function(Se){return re(Se,1)}},K)),d.createElement("div",{className:"".concat(i,"-footer")},u&&d.createElement("div",{className:"".concat(i,"-progress")},l?l(f+1,p):"".concat(f+1," / ").concat(p)),I?I(te,z(z({icons:{prevIcon:G,nextIcon:X,flipYIcon:ne,flipXIcon:le,rotateLeftIcon:ce,rotateRightIcon:oe,zoomOutIcon:se,zoomInIcon:fe},actions:{onActive:y,onFlipY:P,onFlipX:_,onRotateLeft:x,onRotateRight:C,onZoomOut:E,onZoomIn:w,onReset:O,onClose:S},transform:h},D?{current:f,total:p}:{}),{},{image:T})):te)))})},XC={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function BBe(e,t,n,r){var o=d.useRef(null),i=d.useRef([]),a=d.useState(XC),s=$e(a,2),l=s[0],c=s[1],u=function(m){c(XC),dl(XC,l)||r==null||r({transform:XC,action:m})},f=function(m,g){o.current===null&&(i.current=[],o.current=zn(function(){c(function(v){var b=v;return i.current.forEach(function(y){b=z(z({},b),y)}),o.current=null,r==null||r({transform:b,action:g}),b})})),i.current.push(z(z({},l),m))},h=function(m,g,v,b,y){var S=e.current,w=S.width,E=S.height,C=S.offsetWidth,x=S.offsetHeight,_=S.offsetLeft,P=S.offsetTop,O=m,I=l.scale*m;I>n?(I=n,O=n/l.scale):Ir){if(t>0)return Z({},e,i);if(t<0&&or)return Z({},e,t<0?i:-i);return{}}function dse(e,t,n,r){var o=use(),i=o.width,a=o.height,s=null;return e<=i&&t<=a?s={x:0,y:0}:(e>i||t>a)&&(s=z(z({},MU("x",n,e,i)),MU("y",r,t,a))),s}var Km=1,zBe=1;function HBe(e,t,n,r,o,i,a){var s=o.rotate,l=o.scale,c=o.x,u=o.y,f=d.useState(!1),h=$e(f,2),p=h[0],m=h[1],g=d.useRef({diffX:0,diffY:0,transformX:0,transformY:0}),v=function(E){!t||E.button!==0||(E.preventDefault(),E.stopPropagation(),g.current={diffX:E.pageX-c,diffY:E.pageY-u,transformX:c,transformY:u},m(!0))},b=function(E){n&&p&&i({x:E.pageX-g.current.diffX,y:E.pageY-g.current.diffY},"move")},y=function(){if(n&&p){m(!1);var E=g.current,C=E.transformX,x=E.transformY,_=c!==C&&u!==x;if(!_)return;var P=e.current.offsetWidth*l,O=e.current.offsetHeight*l,I=e.current.getBoundingClientRect(),M=I.left,T=I.top,D=s%180!==0,A=dse(D?O:P,D?P:O,M,T);A&&i(z({},A),"dragRebound")}},S=function(E){if(!(!n||E.deltaY==0)){var C=Math.abs(E.deltaY/100),x=Math.min(C,zBe),_=Km+x*r;E.deltaY>0&&(_=Km/_),a(_,"wheel",E.clientX,E.clientY)}};return d.useEffect(function(){var w,E,C,x;if(t){C=jc(window,"mouseup",y,!1),x=jc(window,"mousemove",b,!1);try{window.top!==window.self&&(w=jc(window.top,"mouseup",y,!1),E=jc(window.top,"mousemove",b,!1))}catch{}}return function(){var _,P,O,I;(_=C)===null||_===void 0||_.remove(),(P=x)===null||P===void 0||P.remove(),(O=w)===null||O===void 0||O.remove(),(I=E)===null||I===void 0||I.remove()}},[n,p,c,u,s,t]),{isMoving:p,onMouseDown:v,onMouseMove:b,onMouseUp:y,onWheel:S}}function UBe(e){return new Promise(function(t){var n=document.createElement("img");n.onerror=function(){return t(!1)},n.onload=function(){return t(!0)},n.src=e})}function fse(e){var t=e.src,n=e.isCustomPlaceholder,r=e.fallback,o=d.useState(n?"loading":"normal"),i=$e(o,2),a=i[0],s=i[1],l=d.useRef(!1),c=a==="error";d.useEffect(function(){var p=!0;return UBe(t).then(function(m){!m&&p&&s("error")}),function(){p=!1}},[t]),d.useEffect(function(){n&&!l.current?s("loading"):c&&s("normal")},[t]);var u=function(){s("normal")},f=function(m){l.current=!1,a==="loading"&&m!==null&&m!==void 0&&m.complete&&(m.naturalWidth||m.naturalHeight)&&(l.current=!0,u())},h=c&&r?{src:r}:{onLoad:u,src:t};return[f,h,a]}function oE(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.hypot(n,r)}function WBe(e,t,n,r){var o=oE(e,n),i=oE(t,r);if(o===0&&i===0)return[e.x,e.y];var a=o/(o+i),s=e.x+a*(t.x-e.x),l=e.y+a*(t.y-e.y);return[s,l]}function VBe(e,t,n,r,o,i,a){var s=o.rotate,l=o.scale,c=o.x,u=o.y,f=d.useState(!1),h=$e(f,2),p=h[0],m=h[1],g=d.useRef({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),v=function(E){g.current=z(z({},g.current),E)},b=function(E){if(t){E.stopPropagation(),m(!0);var C=E.touches,x=C===void 0?[]:C;x.length>1?v({point1:{x:x[0].clientX,y:x[0].clientY},point2:{x:x[1].clientX,y:x[1].clientY},eventType:"touchZoom"}):v({point1:{x:x[0].clientX-c,y:x[0].clientY-u},eventType:"move"})}},y=function(E){var C=E.touches,x=C===void 0?[]:C,_=g.current,P=_.point1,O=_.point2,I=_.eventType;if(x.length>1&&I==="touchZoom"){var M={x:x[0].clientX,y:x[0].clientY},T={x:x[1].clientX,y:x[1].clientY},D=WBe(P,O,M,T),A=$e(D,2),j=A[0],k=A[1],F=oE(M,T)/oE(P,O);a(F,"touchZoom",j,k,!0),v({point1:M,point2:T,eventType:"touchZoom"})}else I==="move"&&(i({x:x[0].clientX-P.x,y:x[0].clientY-P.y},"move"),v({eventType:"move"}))},S=function(){if(n){if(p&&m(!1),v({eventType:"none"}),r>l)return i({x:0,y:0,scale:r},"touchZoom");var E=e.current.offsetWidth*l,C=e.current.offsetHeight*l,x=e.current.getBoundingClientRect(),_=x.left,P=x.top,O=s%180!==0,I=dse(O?C:E,O?E:C,_,P);I&&i(z({},I),"dragRebound")}};return d.useEffect(function(){var w;return n&&t&&(w=jc(window,"touchmove",function(E){return E.preventDefault()},{passive:!1})),function(){var E;(E=w)===null||E===void 0||E.remove()}},[n,t]),{isTouching:p,onTouchStart:b,onTouchMove:y,onTouchEnd:S}}var KBe=["fallback","src","imgRef"],qBe=["prefixCls","src","alt","imageInfo","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],GBe=function(t){var n=t.fallback,r=t.src,o=t.imgRef,i=At(t,KBe),a=fse({src:r,fallback:n}),s=$e(a,2),l=s[0],c=s[1];return de.createElement("img",Ge({ref:function(f){o.current=f,l(f)}},i,c))},hse=function(t){var n=t.prefixCls,r=t.src,o=t.alt,i=t.imageInfo,a=t.fallback,s=t.movable,l=s===void 0?!0:s,c=t.onClose,u=t.visible,f=t.icons,h=f===void 0?{}:f,p=t.rootClassName,m=t.closeIcon,g=t.getContainer,v=t.current,b=v===void 0?0:v,y=t.count,S=y===void 0?1:y,w=t.countRender,E=t.scaleStep,C=E===void 0?.5:E,x=t.minScale,_=x===void 0?1:x,P=t.maxScale,O=P===void 0?50:P,I=t.transitionName,M=I===void 0?"zoom":I,T=t.maskTransitionName,D=T===void 0?"fade":T,A=t.imageRender,j=t.imgCommonProps,k=t.toolbarRender,F=t.onTransform,V=t.onChange,W=At(t,qBe),K=d.useRef(),L=d.useContext(aS),Q=L&&S>1,ee=L&&S>=1,re=d.useState(!0),ie=$e(re,2),G=ie[0],X=ie[1],ne=BBe(K,_,O,F),le=ne.transform,ce=ne.resetTransform,oe=ne.updateTransform,se=ne.dispatchZoomChange,fe=HBe(K,l,u,C,le,oe,se),te=fe.isMoving,he=fe.onMouseDown,pe=fe.onWheel,Oe=VBe(K,l,u,_,le,oe,se),Me=Oe.isTouching,Se=Oe.onTouchStart,ye=Oe.onTouchMove,ve=Oe.onTouchEnd,be=le.rotate,Pe=le.scale,Ne=xe(Z({},"".concat(n,"-moving"),te));d.useEffect(function(){G||X(!0)},[G]);var U=function(){ce("close")},H=function(){se(Km+C,"zoomIn")},q=function(){se(Km/(Km+C),"zoomOut")},me=function(){oe({rotate:be+90},"rotateRight")},Ce=function(){oe({rotate:be-90},"rotateLeft")},ue=function(){oe({flipX:!le.flipX},"flipX")},Le=function(){oe({flipY:!le.flipY},"flipY")},He=function(){ce("reset")},ge=function(Ve){var Tt=b+Ve;!Number.isInteger(Tt)||Tt<0||Tt>S-1||(X(!1),ce(Ve<0?"prev":"next"),V==null||V(Tt,b))},De=function(Ve){!u||!Q||(Ve.keyCode===ut.LEFT?ge(-1):Ve.keyCode===ut.RIGHT&&ge(1))},qe=function(Ve){u&&(Pe!==1?oe({x:0,y:0,scale:1},"doubleClick"):se(Km+C,"doubleClick",Ve.clientX,Ve.clientY))};d.useEffect(function(){var Ue=jc(window,"keydown",De,!1);return function(){Ue.remove()}},[u,Q,b]);var Fe=de.createElement(GBe,Ge({},j,{width:t.width,height:t.height,imgRef:K,className:"".concat(n,"-img"),alt:o,style:{transform:"translate3d(".concat(le.x,"px, ").concat(le.y,"px, 0) scale3d(").concat(le.flipX?"-":"").concat(Pe,", ").concat(le.flipY?"-":"").concat(Pe,", 1) rotate(").concat(be,"deg)"),transitionDuration:(!G||Me)&&"0s"},fallback:a,src:r,onWheel:pe,onMouseDown:he,onDoubleClick:qe,onTouchStart:Se,onTouchMove:ye,onTouchEnd:ve,onTouchCancel:ve})),Ke=z({url:r,alt:o},i);return de.createElement(de.Fragment,null,de.createElement(NA,Ge({transitionName:M,maskTransitionName:D,closable:!1,keyboard:!0,prefixCls:n,onClose:c,visible:u,classNames:{wrapper:Ne},rootClassName:p,getContainer:g},W,{afterClose:U}),de.createElement("div",{className:"".concat(n,"-img-wrapper")},A?A(Fe,z({transform:le,image:Ke},L?{current:b}:{})):Fe)),de.createElement(LBe,{visible:u,transform:le,maskTransitionName:D,closeIcon:m,getContainer:g,prefixCls:n,rootClassName:p,icons:h,countRender:w,showSwitch:Q,showProgress:ee,current:b,count:S,scale:Pe,minScale:_,maxScale:O,toolbarRender:k,onActive:ge,onZoomIn:H,onZoomOut:q,onRotateRight:me,onRotateLeft:Ce,onFlipX:ue,onFlipY:Le,onClose:c,onReset:He,zIndex:W.zIndex!==void 0?W.zIndex+1:void 0,image:Ke}))},b6=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"];function YBe(e){var t=d.useState({}),n=$e(t,2),r=n[0],o=n[1],i=d.useCallback(function(s,l){return o(function(c){return z(z({},c),{},Z({},s,l))}),function(){o(function(c){var u=z({},c);return delete u[s],u})}},[]),a=d.useMemo(function(){return e?e.map(function(s){if(typeof s=="string")return{data:{src:s}};var l={};return Object.keys(s).forEach(function(c){["src"].concat(Ze(b6)).includes(c)&&(l[c]=s[c])}),{data:l}}):Object.keys(r).reduce(function(s,l){var c=r[l],u=c.canPreview,f=c.data;return u&&s.push({data:f,id:l}),s},[])},[e,r]);return[a,i,!!e]}var XBe=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],QBe=["src"],JBe=function(t){var n,r=t.previewPrefixCls,o=r===void 0?"rc-image-preview":r,i=t.children,a=t.icons,s=a===void 0?{}:a,l=t.items,c=t.preview,u=t.fallback,f=Ht(c)==="object"?c:{},h=f.visible,p=f.onVisibleChange,m=f.getContainer,g=f.current,v=f.movable,b=f.minScale,y=f.maxScale,S=f.countRender,w=f.closeIcon,E=f.onChange,C=f.onTransform,x=f.toolbarRender,_=f.imageRender,P=At(f,XBe),O=YBe(l),I=$e(O,3),M=I[0],T=I[1],D=I[2],A=xn(0,{value:g}),j=$e(A,2),k=j[0],F=j[1],V=d.useState(!1),W=$e(V,2),K=W[0],L=W[1],Q=((n=M[k])===null||n===void 0?void 0:n.data)||{},ee=Q.src,re=At(Q,QBe),ie=xn(!!h,{value:h,onChange:function(Me,Se){p==null||p(Me,Se,k)}}),G=$e(ie,2),X=G[0],ne=G[1],le=d.useState(null),ce=$e(le,2),oe=ce[0],se=ce[1],fe=d.useCallback(function(Oe,Me,Se,ye){var ve=D?M.findIndex(function(be){return be.data.src===Me}):M.findIndex(function(be){return be.id===Oe});F(ve<0?0:ve),ne(!0),se({x:Se,y:ye}),L(!0)},[M,D]);d.useEffect(function(){X?K||F(0):L(!1)},[X]);var te=function(Me,Se){F(Me),E==null||E(Me,Se)},he=function(){ne(!1),se(null)},pe=d.useMemo(function(){return{register:T,onPreview:fe}},[T,fe]);return d.createElement(aS.Provider,{value:pe},i,d.createElement(hse,Ge({"aria-hidden":!X,movable:v,visible:X,prefixCls:o,closeIcon:w,onClose:he,mousePosition:oe,imgCommonProps:re,src:ee,fallback:u,icons:s,minScale:b,maxScale:y,getContainer:m,current:k,count:M.length,countRender:S,onTransform:C,toolbarRender:x,imageRender:_,onChange:te},P)))},TU=0;function ZBe(e,t){var n=d.useState(function(){return TU+=1,String(TU)}),r=$e(n,1),o=r[0],i=d.useContext(aS),a={data:t,canPreview:e};return d.useEffect(function(){if(i)return i.register(o,a)},[]),d.useEffect(function(){i&&i.register(o,a)},[e,t]),o}var e9e=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],t9e=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],kD=function(t){var n=t.src,r=t.alt,o=t.onPreviewClose,i=t.prefixCls,a=i===void 0?"rc-image":i,s=t.previewPrefixCls,l=s===void 0?"".concat(a,"-preview"):s,c=t.placeholder,u=t.fallback,f=t.width,h=t.height,p=t.style,m=t.preview,g=m===void 0?!0:m,v=t.className,b=t.onClick,y=t.onError,S=t.wrapperClassName,w=t.wrapperStyle,E=t.rootClassName,C=At(t,e9e),x=c&&c!==!0,_=Ht(g)==="object"?g:{},P=_.src,O=_.visible,I=O===void 0?void 0:O,M=_.onVisibleChange,T=M===void 0?o:M,D=_.getContainer,A=D===void 0?void 0:D,j=_.mask,k=_.maskClassName,F=_.movable,V=_.icons,W=_.scaleStep,K=_.minScale,L=_.maxScale,Q=_.imageRender,ee=_.toolbarRender,re=At(_,t9e),ie=P??n,G=xn(!!I,{value:I,onChange:T}),X=$e(G,2),ne=X[0],le=X[1],ce=fse({src:n,isCustomPlaceholder:x,fallback:u}),oe=$e(ce,3),se=oe[0],fe=oe[1],te=oe[2],he=d.useState(null),pe=$e(he,2),Oe=pe[0],Me=pe[1],Se=d.useContext(aS),ye=!!g,ve=function(){le(!1),Me(null)},be=xe(a,S,E,Z({},"".concat(a,"-error"),te==="error")),Pe=d.useMemo(function(){var q={};return b6.forEach(function(me){t[me]!==void 0&&(q[me]=t[me])}),q},b6.map(function(q){return t[q]})),Ne=d.useMemo(function(){return z(z({},Pe),{},{src:ie})},[ie,Pe]),U=ZBe(ye,Ne),H=function(me){var Ce=FBe(me.target),ue=Ce.left,Le=Ce.top;Se?Se.onPreview(U,ie,ue,Le):(Me({x:ue,y:Le}),le(!0)),b==null||b(me)};return d.createElement(d.Fragment,null,d.createElement("div",Ge({},C,{className:be,onClick:ye?H:b,style:z({width:f,height:h},w)}),d.createElement("img",Ge({},Pe,{className:xe("".concat(a,"-img"),Z({},"".concat(a,"-img-placeholder"),c===!0),v),style:z({height:h},p),ref:se},fe,{width:f,height:h,onError:y})),te==="loading"&&d.createElement("div",{"aria-hidden":"true",className:"".concat(a,"-placeholder")},c),j&&ye&&d.createElement("div",{className:xe("".concat(a,"-mask"),k),style:{display:(p==null?void 0:p.display)==="none"?"none":void 0}},j)),!Se&&ye&&d.createElement(hse,Ge({"aria-hidden":!ne,visible:ne,prefixCls:l,onClose:ve,mousePosition:Oe,src:ie,alt:r,imageInfo:{width:f,height:h},fallback:u,getContainer:A,icons:V,movable:F,scaleStep:W,minScale:K,maxScale:L,rootClassName:E,imageRender:Q,imgCommonProps:Pe,toolbarRender:ee},re)))};kD.PreviewGroup=JBe;var n9e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"},r9e=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:n9e}))},o9e=d.forwardRef(r9e),i9e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"},a9e=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:i9e}))},s9e=d.forwardRef(a9e),l9e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"},c9e=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:l9e}))},RU=d.forwardRef(c9e),u9e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"},d9e=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:u9e}))},f9e=d.forwardRef(d9e),h9e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"},p9e=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:h9e}))},m9e=d.forwardRef(p9e);const S6=e=>({position:e||"absolute",inset:0}),g9e=e=>{const{iconCls:t,motionDurationSlow:n,paddingXXS:r,marginXXS:o,prefixCls:i,colorTextLightSolid:a}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:a,background:new Un("#000").setA(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${i}-mask-info`]:Object.assign(Object.assign({},wa),{padding:`0 ${_e(r)}`,[t]:{marginInlineEnd:o,svg:{verticalAlign:"baseline"}}})}},v9e=e=>{const{previewCls:t,modalMaskBg:n,paddingSM:r,marginXL:o,margin:i,paddingLG:a,previewOperationColorDisabled:s,previewOperationHoverColor:l,motionDurationSlow:c,iconCls:u,colorTextLightSolid:f}=e,h=new Un(n).setA(.1),p=h.clone().setA(.2);return{[`${t}-footer`]:{position:"fixed",bottom:o,left:{_skip_check_:!0,value:"50%"},display:"flex",flexDirection:"column",alignItems:"center",color:e.previewOperationColor,transform:"translateX(-50%)"},[`${t}-progress`]:{marginBottom:i},[`${t}-close`]:{position:"fixed",top:o,right:{_skip_check_:!0,value:o},display:"flex",color:f,backgroundColor:h.toRgbString(),borderRadius:"50%",padding:r,outline:0,border:0,cursor:"pointer",transition:`all ${c}`,"&:hover":{backgroundColor:p.toRgbString()},[`& > ${u}`]:{fontSize:e.previewOperationSize}},[`${t}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${_e(a)}`,backgroundColor:h.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:r,padding:r,cursor:"pointer",transition:`all ${c}`,userSelect:"none",[`&:not(${t}-operations-operation-disabled):hover > ${u}`]:{color:l},"&-disabled":{color:s,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${u}`]:{fontSize:e.previewOperationSize}}}}},y9e=e=>{const{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:r,previewCls:o,zIndexPopup:i,motionDurationSlow:a}=e,s=new Un(t).setA(.1),l=s.clone().setA(.2);return{[`${o}-switch-left, ${o}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:e.calc(i).add(1).equal(),display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:e.calc(e.imagePreviewSwitchSize).mul(-1).div(2).equal(),color:e.previewOperationColor,background:s.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${a}`,userSelect:"none","&:hover":{background:l.toRgbString()},"&-disabled":{"&, &:hover":{color:r,background:"transparent",cursor:"not-allowed",[`> ${n}`]:{cursor:"not-allowed"}}},[`> ${n}`]:{fontSize:e.previewOperationSize}},[`${o}-switch-left`]:{insetInlineStart:e.marginSM},[`${o}-switch-right`]:{insetInlineEnd:e.marginSM}}},b9e=e=>{const{motionEaseOut:t,previewCls:n,motionDurationSlow:r,componentCls:o}=e;return[{[`${o}-preview-root`]:{[n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${n}-body`]:Object.assign(Object.assign({},S6()),{overflow:"hidden"}),[`${n}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${r} ${t} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},S6()),{transition:`transform ${r} ${t} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${n}-moving`]:{[`${n}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${o}-preview-root`]:{[`${n}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${o}-preview-operations-wrapper`]:{position:"fixed",zIndex:e.calc(e.zIndexPopup).add(1).equal()},"&":[v9e(e),y9e(e)]}]},S9e=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",display:"inline-block",[`${t}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${t}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${t}-mask`]:Object.assign({},g9e(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:Object.assign({},S6())}}},C9e=e=>{const{previewCls:t}=e;return{[`${t}-root`]:Mv(e,"zoom"),"&":OA(e,!0)}},w9e=e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new Un(e.colorTextLightSolid).setA(.65).toRgbString(),previewOperationHoverColor:new Un(e.colorTextLightSolid).setA(.85).toRgbString(),previewOperationColorDisabled:new Un(e.colorTextLightSolid).setA(.25).toRgbString(),previewOperationSize:e.fontSizeIcon*1.5}),pse=Kn("Image",e=>{const t=`${e.componentCls}-preview`,n=kn(e,{previewCls:t,modalMaskBg:new Un("#000").setA(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[S9e(n),b9e(n),Ere(kn(n,{componentCls:t})),C9e(n)]},w9e);var x9e=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 o=0,r=Object.getOwnPropertySymbols(e);o{var{previewPrefixCls:t,preview:n}=e,r=x9e(e,["previewPrefixCls","preview"]);const{getPrefixCls:o}=d.useContext(Yt),i=o("image",t),a=`${i}-preview`,s=o(),l=Mr(i),[c,u,f]=pse(i,l),[h]=vl("ImagePreview",typeof n=="object"?n.zIndex:void 0),p=d.useMemo(()=>{var m;if(n===!1)return n;const g=typeof n=="object"?n:{},v=xe(u,f,l,(m=g.rootClassName)!==null&&m!==void 0?m:"");return Object.assign(Object.assign({},g),{transitionName:Mi(s,"zoom",g.transitionName),maskTransitionName:Mi(s,"fade",g.maskTransitionName),rootClassName:v,zIndex:h})},[n]);return c(d.createElement(kD.PreviewGroup,Object.assign({preview:p,previewPrefixCls:a,icons:mse},r)))};var IU=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 o=0,r=Object.getOwnPropertySymbols(e);o{var t;const{prefixCls:n,preview:r,className:o,rootClassName:i,style:a}=e,s=IU(e,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:l,locale:c=Os,getPopupContainer:u,image:f}=d.useContext(Yt),h=l("image",n),p=l(),m=c.Image||Os.Image,g=Mr(h),[v,b,y]=pse(h,g),S=xe(i,b,y,g),w=xe(o,b,f==null?void 0:f.className),[E]=vl("ImagePreview",typeof r=="object"?r.zIndex:void 0),C=d.useMemo(()=>{var _;if(r===!1)return r;const P=typeof r=="object"?r:{},{getContainer:O,closeIcon:I,rootClassName:M}=P,T=IU(P,["getContainer","closeIcon","rootClassName"]);return Object.assign(Object.assign({mask:d.createElement("div",{className:`${h}-mask-info`},d.createElement(uP,null),m==null?void 0:m.preview),icons:mse},T),{rootClassName:xe(S,M),getContainer:O??u,transitionName:Mi(p,"zoom",P.transitionName),maskTransitionName:Mi(p,"fade",P.maskTransitionName),zIndex:E,closeIcon:I??((_=f==null?void 0:f.preview)===null||_===void 0?void 0:_.closeIcon)})},[r,m,(t=f==null?void 0:f.preview)===null||t===void 0?void 0:t.closeIcon]),x=Object.assign(Object.assign({},f==null?void 0:f.style),a);return v(d.createElement(kD,Object.assign({prefixCls:h,preview:C,rootClassName:S,className:w,style:x},s)))};gse.PreviewGroup=E9e;function _9e(e,t,n){return typeof n=="boolean"?n:e.length?!0:ai(t).some(o=>o.type===joe)}var vse=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 o=0,r=Object.getOwnPropertySymbols(e);od.forwardRef((a,s)=>d.createElement(o,Object.assign({ref:s,suffixCls:t,tagName:n},a)))}const ND=d.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:o,tagName:i}=e,a=vse(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:s}=d.useContext(Yt),l=s("layout",n),[c,u,f]=Doe(l),h=r?`${l}-${r}`:l;return c(d.createElement(i,Object.assign({className:xe(n||h,o,u,f),ref:t},a)))}),$9e=d.forwardRef((e,t)=>{const{direction:n}=d.useContext(Yt),[r,o]=d.useState([]),{prefixCls:i,className:a,rootClassName:s,children:l,hasSider:c,tagName:u,style:f}=e,h=vse(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),p=Yn(h,["suffixCls"]),{getPrefixCls:m,layout:g}=d.useContext(Yt),v=m("layout",i),b=_9e(r,l,c),[y,S,w]=Doe(v),E=xe(v,{[`${v}-has-sider`]:b,[`${v}-rtl`]:n==="rtl"},g==null?void 0:g.className,a,s,S,w),C=d.useMemo(()=>({siderHook:{addSider:x=>{o(_=>[].concat(Ze(_),[x]))},removeSider:x=>{o(_=>_.filter(P=>P!==x))}}}),[]);return y(d.createElement(koe.Provider,{value:C},d.createElement(u,Object.assign({ref:t,className:E,style:Object.assign(Object.assign({},g==null?void 0:g.style),f)},p),l)))}),P9e=fP({tagName:"div",displayName:"Layout"})($9e),iE=fP({suffixCls:"header",tagName:"header",displayName:"Header"})(ND),O9e=fP({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(ND),M9e=fP({suffixCls:"content",tagName:"main",displayName:"Content"})(ND),ei=P9e;ei.Header=iE;ei.Footer=O9e;ei.Content=M9e;ei.Sider=joe;ei._InternalSiderContext=X$;const yse=function(){const e=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t{const o=n[r];o!==void 0&&(e[r]=o)})}return e};var T9e={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"},R9e=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:T9e}))},kU=d.forwardRef(R9e),I9e={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"},k9e=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:I9e}))},NU=d.forwardRef(k9e),bse={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:"页码"},N9e=[10,20,50,100],A9e=function(t){var n=t.pageSizeOptions,r=n===void 0?N9e:n,o=t.locale,i=t.changeSize,a=t.pageSize,s=t.goButton,l=t.quickGo,c=t.rootPrefixCls,u=t.disabled,f=t.buildOptionText,h=t.showSizeChanger,p=t.sizeChangerRender,m=de.useState(""),g=$e(m,2),v=g[0],b=g[1],y=function(){return!v||Number.isNaN(v)?void 0:Number(v)},S=typeof f=="function"?f:function(M){return"".concat(M," ").concat(o.items_per_page)},w=function(T){b(T.target.value)},E=function(T){s||v===""||(b(""),!(T.relatedTarget&&(T.relatedTarget.className.indexOf("".concat(c,"-item-link"))>=0||T.relatedTarget.className.indexOf("".concat(c,"-item"))>=0))&&(l==null||l(y())))},C=function(T){v!==""&&(T.keyCode===ut.ENTER||T.type==="click")&&(b(""),l==null||l(y()))},x=function(){return r.some(function(T){return T.toString()===a.toString()})?r:r.concat([a]).sort(function(T,D){var A=Number.isNaN(Number(T))?0:Number(T),j=Number.isNaN(Number(D))?0:Number(D);return A-j})},_="".concat(c,"-options");if(!h&&!l)return null;var P=null,O=null,I=null;return h&&p&&(P=p({disabled:u,size:a,onSizeChange:function(T){i==null||i(Number(T))},"aria-label":o.page_size,className:"".concat(_,"-size-changer"),options:x().map(function(M){return{label:S(M),value:M}})})),l&&(s&&(I=typeof s=="boolean"?de.createElement("button",{type:"button",onClick:C,onKeyUp:C,disabled:u,className:"".concat(_,"-quick-jumper-button")},o.jump_to_confirm):de.createElement("span",{onClick:C,onKeyUp:C},s)),O=de.createElement("div",{className:"".concat(_,"-quick-jumper")},o.jump_to,de.createElement("input",{disabled:u,type:"text",value:v,onChange:w,onKeyUp:C,onBlur:E,"aria-label":o.page}),o.page,I)),de.createElement("li",{className:_},P,O)},z0=function(t){var n,r=t.rootPrefixCls,o=t.page,i=t.active,a=t.className,s=t.showTitle,l=t.onClick,c=t.onKeyPress,u=t.itemRender,f="".concat(r,"-item"),h=xe(f,"".concat(f,"-").concat(o),(n={},Z(n,"".concat(f,"-active"),i),Z(n,"".concat(f,"-disabled"),!o),n),a),p=function(){l(o)},m=function(b){c(b,l,o)},g=u(o,"page",de.createElement("a",{rel:"nofollow"},o));return g?de.createElement("li",{title:s?String(o):null,className:h,onClick:p,onKeyDown:m,tabIndex:0},g):null},D9e=function(t,n,r){return r};function AU(){}function DU(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function ih(e,t,n){var r=typeof e>"u"?t:e;return Math.floor((n-1)/r)+1}var j9e=function(t){var n,r=t.prefixCls,o=r===void 0?"rc-pagination":r,i=t.selectPrefixCls,a=i===void 0?"rc-select":i,s=t.className,l=t.current,c=t.defaultCurrent,u=c===void 0?1:c,f=t.total,h=f===void 0?0:f,p=t.pageSize,m=t.defaultPageSize,g=m===void 0?10:m,v=t.onChange,b=v===void 0?AU:v,y=t.hideOnSinglePage,S=t.align,w=t.showPrevNextJumpers,E=w===void 0?!0:w,C=t.showQuickJumper,x=t.showLessItems,_=t.showTitle,P=_===void 0?!0:_,O=t.onShowSizeChange,I=O===void 0?AU:O,M=t.locale,T=M===void 0?bse:M,D=t.style,A=t.totalBoundaryShowSizeChanger,j=A===void 0?50:A,k=t.disabled,F=t.simple,V=t.showTotal,W=t.showSizeChanger,K=W===void 0?h>j:W,L=t.sizeChangerRender,Q=t.pageSizeOptions,ee=t.itemRender,re=ee===void 0?D9e:ee,ie=t.jumpPrevIcon,G=t.jumpNextIcon,X=t.prevIcon,ne=t.nextIcon,le=de.useRef(null),ce=xn(10,{value:p,defaultValue:g}),oe=$e(ce,2),se=oe[0],fe=oe[1],te=xn(1,{value:l,defaultValue:u,postState:function(J){return Math.max(1,Math.min(J,ih(void 0,se,h)))}}),he=$e(te,2),pe=he[0],Oe=he[1],Me=de.useState(pe),Se=$e(Me,2),ye=Se[0],ve=Se[1];d.useEffect(function(){ve(pe)},[pe]);var be=Math.max(1,pe-(x?3:5)),Pe=Math.min(ih(void 0,se,h),pe+(x?3:5));function Ne(R,J){var Ee=R||de.createElement("button",{type:"button","aria-label":J,className:"".concat(o,"-item-link")});return typeof R=="function"&&(Ee=de.createElement(R,z({},t))),Ee}function U(R){var J=R.target.value,Ee=ih(void 0,se,h),ke;return J===""?ke=J:Number.isNaN(Number(J))?ke=ye:J>=Ee?ke=Ee:ke=Number(J),ke}function H(R){return DU(R)&&R!==pe&&DU(h)&&h>0}var q=h>se?C:!1;function me(R){(R.keyCode===ut.UP||R.keyCode===ut.DOWN)&&R.preventDefault()}function Ce(R){var J=U(R);switch(J!==ye&&ve(J),R.keyCode){case ut.ENTER:He(J);break;case ut.UP:He(J-1);break;case ut.DOWN:He(J+1);break}}function ue(R){He(U(R))}function Le(R){var J=ih(R,se,h),Ee=pe>J&&J!==0?J:pe;fe(R),ve(Ee),I==null||I(pe,R),Oe(Ee),b==null||b(Ee,R)}function He(R){if(H(R)&&!k){var J=ih(void 0,se,h),Ee=R;return R>J?Ee=J:R<1&&(Ee=1),Ee!==ye&&ve(Ee),Oe(Ee),b==null||b(Ee,se),Ee}return pe}var ge=pe>1,De=pe2?Ee-2:0),Je=2;Jeh?h:pe*se])),We=null,je=ih(void 0,se,h);if(y&&h<=se)return null;var Xe=[],pt={rootPrefixCls:o,onClick:He,onKeyPress:Ve,showTitle:P,itemRender:re,page:-1},vt=pe-1>0?pe-1:0,Mt=pe+1=Ct*2&&pe!==3&&(Xe[0]=de.cloneElement(Xe[0],{className:xe("".concat(o,"-item-after-jump-prev"),Xe[0].props.className)}),Xe.unshift(wt)),je-pe>=Ct*2&&pe!==je-2){var It=Xe[Xe.length-1];Xe[Xe.length-1]=de.cloneElement(It,{className:xe("".concat(o,"-item-before-jump-next"),It.props.className)}),Xe.push(We)}bt!==1&&Xe.unshift(de.createElement(z0,Ge({},pt,{key:1,page:1}))),Ft!==je&&Xe.push(de.createElement(z0,Ge({},pt,{key:je,page:je})))}var tt=gt(vt);if(tt){var Ot=!ge||!je;tt=de.createElement("li",{title:P?T.prev_page:null,onClick:qe,tabIndex:Ot?null:0,onKeyDown:Tt,className:xe("".concat(o,"-prev"),Z({},"".concat(o,"-disabled"),Ot)),"aria-disabled":Ot},tt)}var Pt=Lt(Mt);if(Pt){var pn,Pn;F?(pn=!De,Pn=ge?0:null):(pn=!De||!je,Pn=pn?null:0),Pt=de.createElement("li",{title:P?T.next_page:null,onClick:Fe,tabIndex:Pn,onKeyDown:et,className:xe("".concat(o,"-next"),Z({},"".concat(o,"-disabled"),pn)),"aria-disabled":pn},Pt)}var $=xe(o,s,(n={},Z(n,"".concat(o,"-start"),S==="start"),Z(n,"".concat(o,"-center"),S==="center"),Z(n,"".concat(o,"-end"),S==="end"),Z(n,"".concat(o,"-simple"),F),Z(n,"".concat(o,"-disabled"),k),n));return de.createElement("ul",Ge({className:$,style:D,ref:le},Nt),Be,tt,F?Rt:Xe,Pt,de.createElement(A9e,{locale:T,rootPrefixCls:o,disabled:k,selectPrefixCls:a,changeSize:Le,pageSize:se,pageSizeOptions:Q,quickGo:q?He:null,goButton:dt,showSizeChanger:K,sizeChangerRender:L}))};const F9e=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"}}}}}},L9e=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:_e(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:_e(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:_e(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:_e(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:_e(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:_e(e.itemSizeSM),input:Object.assign(Object.assign({},bD(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},B9e=e=>{const{componentCls:t}=e;return{[` &${t}-simple ${t}-prev, &${t}-simple ${t}-next `]:{height:e.itemSizeSM,lineHeight:_e(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:_e(e.itemSizeSM)}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${_e(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${_e(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:`${_e(e.inputOutlineOffset)} 0 ${_e(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},z9e=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:_e(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:`${_e(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:_e(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},tS(e)),pD(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},oP(e)),width:e.calc(e.controlHeightLG).mul(1.25).equal(),height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},H9e=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:_e(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${_e(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${_e(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}}}}},U9e=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Qn(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:_e(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),H9e(e)),z9e(e)),B9e(e)),L9e(e)),F9e(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"}}},W9e=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},Ka(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},rc(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},rc(e))}}}},Sse=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},eS(e)),Cse=e=>kn(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"},Z1(e)),V9e=Kn("Pagination",e=>{const t=Cse(e);return[U9e(t),W9e(t)]},Sse),K9e=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:`${_e(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}}}}},q9e=$v(["Pagination","bordered"],e=>{const t=Cse(e);return[K9e(t)]},Sse);function jU(e){return d.useMemo(()=>typeof e=="boolean"?[e,{}]:e&&typeof e=="object"?[!0,e]:[void 0,void 0],[e])}var G9e=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 o=0,r=Object.getOwnPropertySymbols(e);o{const{align:t,prefixCls:n,selectPrefixCls:r,className:o,rootClassName:i,style:a,size:s,locale:l,responsive:c,showSizeChanger:u,selectComponentClass:f,pageSizeOptions:h}=e,p=G9e(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:m}=W$(c),[,g]=Ho(),{getPrefixCls:v,direction:b,pagination:y={}}=d.useContext(Yt),S=v("pagination",n),[w,E,C]=V9e(S),x=Eo(s),_=x==="small"||!!(m&&!x&&c),[P]=zi("Pagination",Bte),O=Object.assign(Object.assign({},P),l),[I,M]=jU(u),[T,D]=jU(y.showSizeChanger),A=I??T,j=M??D,k=f||Va,F=d.useMemo(()=>h?h.map(ee=>Number(ee)):void 0,[h]),V=ee=>{var re;const{disabled:ie,size:G,onSizeChange:X,"aria-label":ne,className:le,options:ce}=ee,{className:oe,onChange:se}=j||{},fe=(re=ce.find(te=>String(te.value)===String(G)))===null||re===void 0?void 0:re.value;return d.createElement(k,Object.assign({disabled:ie,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:te=>te.parentNode,"aria-label":ne,options:ce},j,{value:fe,onChange:(te,he)=>{X==null||X(te),se==null||se(te,he)},size:_?"small":"middle",className:xe(le,oe)}))},W=d.useMemo(()=>{const ee=d.createElement("span",{className:`${S}-item-ellipsis`},"•••"),re=d.createElement("button",{className:`${S}-item-link`,type:"button",tabIndex:-1},b==="rtl"?d.createElement(nd,null):d.createElement(qg,null)),ie=d.createElement("button",{className:`${S}-item-link`,type:"button",tabIndex:-1},b==="rtl"?d.createElement(qg,null):d.createElement(nd,null)),G=d.createElement("a",{className:`${S}-item-link`},d.createElement("div",{className:`${S}-item-container`},b==="rtl"?d.createElement(NU,{className:`${S}-item-link-icon`}):d.createElement(kU,{className:`${S}-item-link-icon`}),ee)),X=d.createElement("a",{className:`${S}-item-link`},d.createElement("div",{className:`${S}-item-container`},b==="rtl"?d.createElement(kU,{className:`${S}-item-link-icon`}):d.createElement(NU,{className:`${S}-item-link-icon`}),ee));return{prevIcon:re,nextIcon:ie,jumpPrevIcon:G,jumpNextIcon:X}},[b,S]),K=v("select",r),L=xe({[`${S}-${t}`]:!!t,[`${S}-mini`]:_,[`${S}-rtl`]:b==="rtl",[`${S}-bordered`]:g.wireframe},y==null?void 0:y.className,o,i,E,C),Q=Object.assign(Object.assign({},y==null?void 0:y.style),a);return w(d.createElement(d.Fragment,null,g.wireframe&&d.createElement(q9e,{prefixCls:S}),d.createElement(j9e,Object.assign({},W,p,{style:Q,prefixCls:S,selectPrefixCls:K,className:L,locale:O,pageSizeOptions:F,showSizeChanger:A,sizeChangerRender:V}))))},aE=100,wse=aE/5,xse=aE/2-wse/2,dR=xse*2*Math.PI,FU=50,LU=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return d.createElement("circle",{className:xe(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:xse,cx:FU,cy:FU,strokeWidth:wse,style:n})},X9e=e=>{let{percent:t,prefixCls:n}=e;const r=`${n}-dot`,o=`${r}-holder`,i=`${o}-hidden`,[a,s]=d.useState(!1);Zn(()=>{t!==0&&s(!0)},[t!==0]);const l=Math.max(Math.min(t,100),0);if(!a)return null;const c={strokeDashoffset:`${dR/4}`,strokeDasharray:`${dR*l/100} ${dR*(100-l)/100}`};return d.createElement("span",{className:xe(o,`${r}-progress`,l<=0&&i)},d.createElement("svg",{viewBox:`0 0 ${aE} ${aE}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":l},d.createElement(LU,{dotClassName:r,hasCircleCls:!0}),d.createElement(LU,{dotClassName:r,style:c})))};function Q9e(e){const{prefixCls:t,percent:n=0}=e,r=`${t}-dot`,o=`${r}-holder`,i=`${o}-hidden`;return d.createElement(d.Fragment,null,d.createElement("span",{className:xe(o,n>0&&i)},d.createElement("span",{className:xe(r,`${t}-dot-spin`)},[1,2,3,4].map(a=>d.createElement("i",{className:`${t}-dot-item`,key:a})))),d.createElement(X9e,{prefixCls:t,percent:n}))}function J9e(e){const{prefixCls:t,indicator:n,percent:r}=e,o=`${t}-dot`;return n&&d.isValidElement(n)?Zo(n,{className:xe(n.props.className,o),percent:r}):d.createElement(Q9e,{prefixCls:t,percent:r})}const Z9e=new Gn("antSpinMove",{to:{opacity:1}}),eze=new Gn("antRotate",{to:{transform:"rotate(405deg)"}}),tze=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},Qn(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:Z9e,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:eze,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"}})}},nze=e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},rze=Kn("Spin",e=>{const t=kn(e,{spinDotDefault:e.colorTextDescription});return[tze(t)]},nze),oze=200,BU=[[30,.05],[70,.03],[96,.01]];function ize(e,t){const[n,r]=d.useState(0),o=d.useRef(null),i=t==="auto";return d.useEffect(()=>(i&&e&&(r(0),o.current=setInterval(()=>{r(a=>{const s=100-a;for(let l=0;l{clearInterval(o.current)}),[i,e]),i?n:t}var aze=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 o=0,r=Object.getOwnPropertySymbols(e);o{var t;const{prefixCls:n,spinning:r=!0,delay:o=0,className:i,rootClassName:a,size:s="default",tip:l,wrapperClassName:c,style:u,children:f,fullscreen:h=!1,indicator:p,percent:m}=e,g=aze(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:v,direction:b,spin:y}=d.useContext(Yt),S=v("spin",n),[w,E,C]=rze(S),[x,_]=d.useState(()=>r&&!sze(r,o)),P=ize(x,m);d.useEffect(()=>{if(r){const j=QDe(o,()=>{_(!0)});return j(),()=>{var k;(k=j==null?void 0:j.cancel)===null||k===void 0||k.call(j)}}_(!1)},[o,r]);const O=d.useMemo(()=>typeof f<"u"&&!h,[f,h]),I=xe(S,y==null?void 0:y.className,{[`${S}-sm`]:s==="small",[`${S}-lg`]:s==="large",[`${S}-spinning`]:x,[`${S}-show-text`]:!!l,[`${S}-rtl`]:b==="rtl"},i,!h&&a,E,C),M=xe(`${S}-container`,{[`${S}-blur`]:x}),T=(t=p??(y==null?void 0:y.indicator))!==null&&t!==void 0?t:Ese,D=Object.assign(Object.assign({},y==null?void 0:y.style),u),A=d.createElement("div",Object.assign({},g,{style:D,className:I,"aria-live":"polite","aria-busy":x}),d.createElement(J9e,{prefixCls:S,indicator:T,percent:P}),l&&(O||h)?d.createElement("div",{className:`${S}-text`},l):null);return w(O?d.createElement("div",Object.assign({},g,{className:xe(`${S}-nested-loading`,c,E,C)}),x&&d.createElement("div",{key:"loading"},A),d.createElement("div",{className:M,key:"container"},f)):h?d.createElement("div",{className:xe(`${S}-fullscreen`,{[`${S}-fullscreen-show`]:x},a,E,C)},A):A)};iu.setDefaultIndicator=e=>{Ese=e};let Vs=null,Rh=e=>e(),Gb=[],Yb={};function zU(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:o}=Yb,i=(e==null?void 0:e())||document.body;return{getContainer:()=>i,duration:t,rtl:n,maxCount:r,top:o}}const lze=de.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:o}=d.useContext(Yt),i=Yb.prefixCls||o("message"),a=d.useContext(Z3),[s,l]=Lne(Object.assign(Object.assign(Object.assign({},n),{prefixCls:i}),a.message));return de.useImperativeHandle(t,()=>{const c=Object.assign({},s);return Object.keys(c).forEach(u=>{c[u]=function(){return r(),s[u].apply(s,arguments)}}),{instance:c,sync:r}}),l}),cze=de.forwardRef((e,t)=>{const[n,r]=de.useState(zU),o=()=>{r(zU)};de.useEffect(o,[]);const i=xne(),a=i.getRootPrefixCls(),s=i.getIconPrefixCls(),l=i.getTheme(),c=de.createElement(lze,{ref:t,sync:o,messageConfig:n});return de.createElement(Mn,{prefixCls:a,iconPrefixCls:s,theme:l},i.holderRender?i.holderRender(c):c)});function hP(){if(!Vs){const e=document.createDocumentFragment(),t={fragment:e};Vs=t,Rh(()=>{EA()(de.createElement(cze,{ref:r=>{const{instance:o,sync:i}=r||{};Promise.resolve().then(()=>{!t.instance&&o&&(t.instance=o,t.sync=i,hP())})}}),e)});return}Vs.instance&&(Gb.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{Rh(()=>{const r=Vs.instance.open(Object.assign(Object.assign({},Yb),e.config));r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":Rh(()=>{Vs==null||Vs.instance.destroy(e.key)});break;default:Rh(()=>{var r;const o=(r=Vs.instance)[t].apply(r,Ze(e.args));o==null||o.then(e.resolve),e.setCloseFn(o)})}}),Gb=[])}function uze(e){Yb=Object.assign(Object.assign({},Yb),e),Rh(()=>{var t;(t=Vs==null?void 0:Vs.sync)===null||t===void 0||t.call(Vs)})}function dze(e){const t=xA(n=>{let r;const o={type:"open",config:e,resolve:n,setCloseFn:i=>{r=i}};return Gb.push(o),()=>{r?Rh(()=>{r()}):o.skipped=!0}});return hP(),t}function fze(e,t){const n=xA(r=>{let o;const i={type:e,args:t,resolve:r,setCloseFn:a=>{o=a}};return Gb.push(i),()=>{o?Rh(()=>{o()}):i.skipped=!0}});return hP(),n}const hze=e=>{Gb.push({type:"destroy",key:e}),hP()},pze=["success","info","warning","error","loading"],mze={open:dze,destroy:hze,config:uze,useMessage:Bne,_InternalPanelDoNotUseOrYouWillBeFired:rTe},_se=mze;pze.forEach(e=>{_se[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r{const{prefixCls:t,className:n,closeIcon:r,closable:o,type:i,title:a,children:s,footer:l}=e,c=gze(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:u}=d.useContext(Yt),f=u(),h=t||u("modal"),p=Mr(f),[m,g,v]=Pre(h,p),b=`${h}-confirm`;let y={};return i?y={closable:o??!1,title:"",footer:"",children:d.createElement(Mre,Object.assign({},e,{prefixCls:h,confirmPrefixCls:b,rootPrefixCls:f,content:s}))}:y={closable:o??!0,title:a,footer:l!==null&&d.createElement(wre,Object.assign({},e)),children:s},m(d.createElement(sre,Object.assign({prefixCls:h,className:xe(g,`${h}-pure-panel`,i&&b,i&&`${b}-${i}`,n,v,p)},c,{closeIcon:Cre(h,r),closable:o},y)))},yze=zre(vze);function $se(e){return q1(kre(e))}const Hi=Ore;Hi.useModal=Fre;Hi.info=function(t){return q1(Nre(t))};Hi.success=function(t){return q1(Are(t))};Hi.error=function(t){return q1(Dre(t))};Hi.warning=$se;Hi.warn=$se;Hi.confirm=function(t){return q1(jre(t))};Hi.destroyAll=function(){for(;Mh.length;){const t=Mh.pop();t&&t()}};Hi.config=v4e;Hi._InternalPanelDoNotUseOrYouWillBeFired=yze;const bze=e=>{const{componentCls:t,iconCls:n,antCls:r,zIndexPopup:o,colorText:i,colorWarning:a,marginXXS:s,marginXS:l,fontSize:c,fontWeightStrong:u,colorTextHeading:f}=e;return{[t]:{zIndex:o,[`&${r}-popover`]:{fontSize:c},[`${t}-message`]:{marginBottom:l,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:a,fontSize:c,lineHeight:1,marginInlineEnd:l},[`${t}-title`]:{fontWeight:u,color:f,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:s,color:i}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:l}}}}},Sze=e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}},Pse=Kn("Popconfirm",e=>bze(e),Sze,{resetStyle:!1});var Cze=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 o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:o,description:i,cancelText:a,okText:s,okType:l="primary",icon:c=d.createElement(Df,null),showCancel:u=!0,close:f,onConfirm:h,onCancel:p,onPopupClick:m}=e,{getPrefixCls:g}=d.useContext(Yt),[v]=zi("Popconfirm",Os.Popconfirm),b=Kg(o),y=Kg(i);return d.createElement("div",{className:`${t}-inner-content`,onClick:m},d.createElement("div",{className:`${t}-message`},c&&d.createElement("span",{className:`${t}-message-icon`},c),d.createElement("div",{className:`${t}-message-text`},b&&d.createElement("div",{className:`${t}-title`},b),y&&d.createElement("div",{className:`${t}-description`},y))),d.createElement("div",{className:`${t}-buttons`},u&&d.createElement(Hn,Object.assign({onClick:p,size:"small"},r),a||(v==null?void 0:v.cancelText)),d.createElement(kA,{buttonProps:Object.assign(Object.assign({size:"small"},_A(l)),n),actionFn:h,close:f,prefixCls:g("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},s||(v==null?void 0:v.okText))))},wze=e=>{const{prefixCls:t,placement:n,className:r,style:o}=e,i=Cze(e,["prefixCls","placement","className","style"]),{getPrefixCls:a}=d.useContext(Yt),s=a("popconfirm",t),[l]=Pse(s);return l(d.createElement(yoe,{placement:n,className:xe(s,r),style:o,content:d.createElement(Ose,Object.assign({prefixCls:s},i))}))};var xze=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 o=0,r=Object.getOwnPropertySymbols(e);o{var n,r,o,i,a,s;const{prefixCls:l,placement:c="top",trigger:u="click",okType:f="primary",icon:h=d.createElement(Df,null),children:p,overlayClassName:m,onOpenChange:g,onVisibleChange:v,overlayStyle:b,styles:y,classNames:S}=e,w=xze(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange","overlayStyle","styles","classNames"]),{getPrefixCls:E,popconfirm:C}=d.useContext(Yt),[x,_]=xn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),P=(F,V)=>{_(F,!0),v==null||v(F),g==null||g(F,V)},O=F=>{P(!1,F)},I=F=>{var V;return(V=e.onConfirm)===null||V===void 0?void 0:V.call(void 0,F)},M=F=>{var V;P(!1,F),(V=e.onCancel)===null||V===void 0||V.call(void 0,F)},T=(F,V)=>{const{disabled:W=!1}=e;W||P(F,V)},D=E("popconfirm",l),A=xe(D,m,(o=C==null?void 0:C.classNames)===null||o===void 0?void 0:o.root,S==null?void 0:S.root),j=xe((i=C==null?void 0:C.classNames)===null||i===void 0?void 0:i.body,S==null?void 0:S.body),[k]=Pse(D);return k(d.createElement(fl,Object.assign({},Yn(w,["title"]),{trigger:u,placement:c,onOpenChange:T,open:x,ref:t,classNames:{root:A,body:j},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},(a=C==null?void 0:C.styles)===null||a===void 0?void 0:a.root),C==null?void 0:C.style),b),y==null?void 0:y.root),body:Object.assign(Object.assign({},(s=C==null?void 0:C.styles)===null||s===void 0?void 0:s.body),y==null?void 0:y.body)},content:d.createElement(Ose,Object.assign({okType:f,icon:h},e,{prefixCls:D,close:O,onConfirm:I,onCancel:M})),"data-popover-inject":!0}),p))}),Mse=Eze;Mse._InternalPanelDoNotUseOrYouWillBeFired=wze;var _ze={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},$ze=function(){var t=d.useRef([]),n=d.useRef(null);return d.useEffect(function(){var r=Date.now(),o=!1;t.current.forEach(function(i){if(i){o=!0;var a=i.style;a.transitionDuration=".3s, .3s, .3s, .06s",n.current&&r-n.current<100&&(a.transitionDuration="0s, 0s")}}),o&&(n.current=Date.now())}),t.current},HU=0,Pze=Ca();function Oze(){var e;return Pze?(e=HU,HU+=1):e="TEST_OR_SSR",e}const Mze=function(e){var t=d.useState(),n=$e(t,2),r=n[0],o=n[1];return d.useEffect(function(){o("rc_progress_".concat(Oze()))},[]),e||r};var UU=function(t){var n=t.bg,r=t.children;return d.createElement("div",{style:{width:"100%",height:"100%",background:n}},r)};function WU(e,t){return Object.keys(e).map(function(n){var r=parseFloat(n),o="".concat(Math.floor(r*t),"%");return"".concat(e[n]," ").concat(o)})}var Tze=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.color,o=e.gradientId,i=e.radius,a=e.style,s=e.ptg,l=e.strokeLinecap,c=e.strokeWidth,u=e.size,f=e.gapDegree,h=r&&Ht(r)==="object",p=h?"#FFF":void 0,m=u/2,g=d.createElement("circle",{className:"".concat(n,"-circle-path"),r:i,cx:m,cy:m,stroke:p,strokeLinecap:l,strokeWidth:c,opacity:s===0?0:1,style:a,ref:t});if(!h)return g;var v="".concat(o,"-conic"),b=f?"".concat(180+f/2,"deg"):"0deg",y=WU(r,(360-f)/360),S=WU(r,1),w="conic-gradient(from ".concat(b,", ").concat(y.join(", "),")"),E="linear-gradient(to ".concat(f?"bottom":"top",", ").concat(S.join(", "),")");return d.createElement(d.Fragment,null,d.createElement("mask",{id:v},g),d.createElement("foreignObject",{x:0,y:0,width:u,height:u,mask:"url(#".concat(v,")")},d.createElement(UU,{bg:E},d.createElement(UU,{bg:w}))))}),gy=100,fR=function(t,n,r,o,i,a,s,l,c,u){var f=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,h=r/100*360*((360-a)/360),p=a===0?0:{bottom:0,top:180,left:90,right:-90}[s],m=(100-o)/100*n;c==="round"&&o!==100&&(m+=u/2,m>=n&&(m=n-.01));var g=gy/2;return{stroke:typeof l=="string"?l:void 0,strokeDasharray:"".concat(n,"px ").concat(t),strokeDashoffset:m+f,transform:"rotate(".concat(i+h+p,"deg)"),transformOrigin:"".concat(g,"px ").concat(g,"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}},Rze=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function VU(e){var t=e??[];return Array.isArray(t)?t:[t]}var Ize=function(t){var n=z(z({},_ze),t),r=n.id,o=n.prefixCls,i=n.steps,a=n.strokeWidth,s=n.trailWidth,l=n.gapDegree,c=l===void 0?0:l,u=n.gapPosition,f=n.trailColor,h=n.strokeLinecap,p=n.style,m=n.className,g=n.strokeColor,v=n.percent,b=At(n,Rze),y=gy/2,S=Mze(r),w="".concat(S,"-gradient"),E=y-a/2,C=Math.PI*2*E,x=c>0?90+c/2:-90,_=C*((360-c)/360),P=Ht(i)==="object"?i:{count:i,gap:2},O=P.count,I=P.gap,M=VU(v),T=VU(g),D=T.find(function(K){return K&&Ht(K)==="object"}),A=D&&Ht(D)==="object",j=A?"butt":h,k=fR(C,_,0,100,x,c,u,f,j,a),F=$ze(),V=function(){var L=0;return M.map(function(Q,ee){var re=T[ee]||T[T.length-1],ie=fR(C,_,L,Q,x,c,u,re,j,a);return L+=Q,d.createElement(Tze,{key:ee,color:re,ptg:Q,radius:E,prefixCls:o,gradientId:w,style:ie,strokeLinecap:j,strokeWidth:a,gapDegree:c,ref:function(X){F[ee]=X},size:gy})}).reverse()},W=function(){var L=Math.round(O*(M[0]/100)),Q=100/O,ee=0;return new Array(O).fill(null).map(function(re,ie){var G=ie<=L-1?T[0]:f,X=G&&Ht(G)==="object"?"url(#".concat(w,")"):void 0,ne=fR(C,_,ee,Q,x,c,u,G,"butt",a,I);return ee+=(_-ne.strokeDashoffset+I)*100/_,d.createElement("circle",{key:ie,className:"".concat(o,"-circle-path"),r:E,cx:y,cy:y,stroke:X,strokeWidth:a,opacity:1,style:ne,ref:function(ce){F[ie]=ce}})})};return d.createElement("svg",Ge({className:xe("".concat(o,"-circle"),m),viewBox:"0 0 ".concat(gy," ").concat(gy),style:p,id:r,role:"presentation"},b),!O&&d.createElement("circle",{className:"".concat(o,"-circle-trail"),r:E,cx:y,cy:y,stroke:f,strokeLinecap:j,strokeWidth:s||a,style:k}),O?W():V())};function bf(e){return!e||e<0?0:e>100?100:e}function sE(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 kze=e=>{let{percent:t,success:n,successPercent:r}=e;const o=bf(sE({success:n,successPercent:r}));return[o,bf(bf(t)-o)]},Nze=e=>{let{success:t={},strokeColor:n}=e;const{strokeColor:r}=t;return[r||qh.green,n||null]},pP=(e,t,n)=>{var r,o,i,a;let s=-1,l=-1;if(t==="step"){const c=n.steps,u=n.strokeWidth;typeof e=="string"||typeof e>"u"?(s=e==="small"?2:14,l=u??8):typeof e=="number"?[s,l]=[e,e]:[s=14,l=8]=Array.isArray(e)?e:[e.width,e.height],s*=c}else if(t==="line"){const c=n==null?void 0:n.strokeWidth;typeof e=="string"||typeof e>"u"?l=c||(e==="small"?6:8):typeof e=="number"?[s,l]=[e,e]:[s=-1,l=8]=Array.isArray(e)?e:[e.width,e.height]}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[s,l]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[s,l]=[e,e]:Array.isArray(e)&&(s=(o=(r=e[0])!==null&&r!==void 0?r:e[1])!==null&&o!==void 0?o:120,l=(a=(i=e[0])!==null&&i!==void 0?i:e[1])!==null&&a!==void 0?a:120));return[s,l]},Aze=3,Dze=e=>Aze/e*100,jze=e=>{const{prefixCls:t,trailColor:n=null,strokeLinecap:r="round",gapPosition:o,gapDegree:i,width:a=120,type:s,children:l,success:c,size:u=a,steps:f}=e,[h,p]=pP(u,"circle");let{strokeWidth:m}=e;m===void 0&&(m=Math.max(Dze(h),6));const g={width:h,height:p,fontSize:h*.15+6},v=d.useMemo(()=>{if(i||i===0)return i;if(s==="dashboard")return 75},[i,s]),b=kze(e),y=o||s==="dashboard"&&"bottom"||void 0,S=Object.prototype.toString.call(e.strokeColor)==="[object Object]",w=Nze({success:c,strokeColor:e.strokeColor}),E=xe(`${t}-inner`,{[`${t}-circle-gradient`]:S}),C=d.createElement(Ize,{steps:f,percent:f?b[1]:b,strokeWidth:m,trailWidth:m,strokeColor:f?w[1]:w,strokeLinecap:r,trailColor:n,prefixCls:t,gapDegree:v,gapPosition:y}),x=h<=20,_=d.createElement("div",{className:E,style:g},C,!x&&l);return x?d.createElement(xa,{title:l},_):_},lE="--progress-line-stroke-color",Tse="--progress-percent",KU=e=>{const t=e?"100%":"-100%";return new Gn(`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}})},Fze=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},Qn(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(${lE})`]},height:"100%",width:`calc(1 / var(${Tse}) * 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 ${_e(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:KU(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:KU(!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}}})}},Lze=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"}}}},Bze=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}}}}}},zze=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},Hze=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),Uze=Kn("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=kn(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[Fze(n),Lze(n),Bze(n),zze(n)]},Hze);var Wze=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 o=0,r=Object.getOwnPropertySymbols(e);o{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:o}=n;return`${o} ${r}%`}).join(", ")},Kze=(e,t)=>{const{from:n=qh.blue,to:r=qh.blue,direction:o=t==="rtl"?"to left":"to right"}=e,i=Wze(e,["from","to","direction"]);if(Object.keys(i).length!==0){const s=Vze(i),l=`linear-gradient(${o}, ${s})`;return{background:l,[lE]:l}}const a=`linear-gradient(${o}, ${n}, ${r})`;return{background:a,[lE]:a}},qze=e=>{const{prefixCls:t,direction:n,percent:r,size:o,strokeWidth:i,strokeColor:a,strokeLinecap:s="round",children:l,trailColor:c=null,percentPosition:u,success:f}=e,{align:h,type:p}=u,m=a&&typeof a!="string"?Kze(a,n):{[lE]:a,background:a},g=s==="square"||s==="butt"?0:void 0,v=o??[-1,i||(o==="small"?6:8)],[b,y]=pP(v,"line",{strokeWidth:i}),S={backgroundColor:c||void 0,borderRadius:g},w=Object.assign(Object.assign({width:`${bf(r)}%`,height:y,borderRadius:g},m),{[Tse]:bf(r)/100}),E=sE(e),C={width:`${bf(E)}%`,height:y,borderRadius:g,backgroundColor:f==null?void 0:f.strokeColor},x={width:b<0?"100%":b},_=d.createElement("div",{className:`${t}-inner`,style:S},d.createElement("div",{className:xe(`${t}-bg`,`${t}-bg-${p}`),style:w},p==="inner"&&l),E!==void 0&&d.createElement("div",{className:`${t}-success-bg`,style:C})),P=p==="outer"&&h==="start",O=p==="outer"&&h==="end";return p==="outer"&&h==="center"?d.createElement("div",{className:`${t}-layout-bottom`},_,l):d.createElement("div",{className:`${t}-outer`,style:x},P&&l,_,O&&l)},Gze=e=>{const{size:t,steps:n,percent:r=0,strokeWidth:o=8,strokeColor:i,trailColor:a=null,prefixCls:s,children:l}=e,c=Math.round(n*(r/100)),f=t??[t==="small"?2:14,o],[h,p]=pP(f,"step",{steps:n,strokeWidth:o}),m=h/n,g=new Array(n);for(let v=0;v{const{prefixCls:n,className:r,rootClassName:o,steps:i,strokeColor:a,percent:s=0,size:l="default",showInfo:c=!0,type:u="line",status:f,format:h,style:p,percentPosition:m={}}=e,g=Yze(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:v="end",type:b="outer"}=m,y=Array.isArray(a)?a[0]:a,S=typeof a=="string"||Array.isArray(a)?a:void 0,w=d.useMemo(()=>{if(y){const V=typeof y=="string"?y:Object.values(y)[0];return new Un(V).isLight()}return!1},[a]),E=d.useMemo(()=>{var V,W;const K=sE(e);return parseInt(K!==void 0?(V=K??0)===null||V===void 0?void 0:V.toString():(W=s??0)===null||W===void 0?void 0:W.toString(),10)},[s,e.success,e.successPercent]),C=d.useMemo(()=>!Xze.includes(f)&&E>=100?"success":f||"normal",[f,E]),{getPrefixCls:x,direction:_,progress:P}=d.useContext(Yt),O=x("progress",n),[I,M,T]=Uze(O),D=u==="line",A=D&&!i,j=d.useMemo(()=>{if(!c)return null;const V=sE(e);let W;const K=h||(Q=>`${Q}%`),L=D&&w&&b==="inner";return b==="inner"||h||C!=="exception"&&C!=="success"?W=K(bf(s),bf(V)):C==="exception"?W=D?d.createElement(ru,null):d.createElement(ou,null):C==="success"&&(W=D?d.createElement(Lp,null):d.createElement(gf,null)),d.createElement("span",{className:xe(`${O}-text`,{[`${O}-text-bright`]:L,[`${O}-text-${v}`]:A,[`${O}-text-${b}`]:A}),title:typeof W=="string"?W:void 0},W)},[c,s,E,C,u,O,h]);let k;u==="line"?k=i?d.createElement(Gze,Object.assign({},e,{strokeColor:S,prefixCls:O,steps:typeof i=="object"?i.count:i}),j):d.createElement(qze,Object.assign({},e,{strokeColor:y,prefixCls:O,direction:_,percentPosition:{align:v,type:b}}),j):(u==="circle"||u==="dashboard")&&(k=d.createElement(jze,Object.assign({},e,{strokeColor:y,prefixCls:O,progressStatus:C}),j));const F=xe(O,`${O}-status-${C}`,{[`${O}-${u==="dashboard"&&"circle"||u}`]:u!=="line",[`${O}-inline-circle`]:u==="circle"&&pP(l,"circle")[0]<=20,[`${O}-line`]:A,[`${O}-line-align-${v}`]:A,[`${O}-line-position-${b}`]:A,[`${O}-steps`]:i,[`${O}-show-info`]:c,[`${O}-${l}`]:typeof l=="string",[`${O}-rtl`]:_==="rtl"},P==null?void 0:P.className,r,o,M,T);return I(d.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},P==null?void 0:P.style),p),className:F,role:"progressbar","aria-valuenow":E,"aria-valuemin":0,"aria-valuemax":100},Yn(g,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),k))});function Fc(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=u$(e))||t){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var c=n.next();return a=c.done,c},e:function(c){s=!0,i=c},f:function(){try{a||n.return==null||n.return()}finally{if(s)throw i}}}}var Fv,sS;function ja(e,t,n){if(t<0||t>31||e>>>t)throw new RangeError("Value out of range");for(var r=t-1;r>=0;r--)n.push(e>>>r&1)}function gu(e,t){return(e>>>t&1)!=0}function as(e){if(!e)throw new Error("Assertion error")}var Lc=function(){function e(t,n){br(this,e),Z(this,"modeBits",void 0),Z(this,"numBitsCharCount",void 0),this.modeBits=t,this.numBitsCharCount=n}return Sr(e,[{key:"numCharCountBits",value:function(n){return this.numBitsCharCount[Math.floor((n+7)/17)]}}]),e}();Fv=Lc;Z(Lc,"NUMERIC",new Fv(1,[10,12,14]));Z(Lc,"ALPHANUMERIC",new Fv(2,[9,11,13]));Z(Lc,"BYTE",new Fv(4,[8,16,16]));Z(Lc,"KANJI",new Fv(8,[8,10,12]));Z(Lc,"ECI",new Fv(7,[0,0,0]));var tl=Sr(function e(t,n){br(this,e),Z(this,"ordinal",void 0),Z(this,"formatBits",void 0),this.ordinal=t,this.formatBits=n});sS=tl;Z(tl,"LOW",new sS(0,1));Z(tl,"MEDIUM",new sS(1,0));Z(tl,"QUARTILE",new sS(2,3));Z(tl,"HIGH",new sS(3,2));var Qh=function(){function e(t,n,r){if(br(this,e),Z(this,"mode",void 0),Z(this,"numChars",void 0),Z(this,"bitData",void 0),this.mode=t,this.numChars=n,this.bitData=r,n<0)throw new RangeError("Invalid argument");this.bitData=r.slice()}return Sr(e,[{key:"getData",value:function(){return this.bitData.slice()}}],[{key:"makeBytes",value:function(n){var r=[],o=Fc(n),i;try{for(o.s();!(i=o.n()).done;){var a=i.value;ja(a,8,r)}}catch(s){o.e(s)}finally{o.f()}return new e(Lc.BYTE,n.length,r)}},{key:"makeNumeric",value:function(n){if(!e.isNumeric(n))throw new RangeError("String contains non-numeric characters");for(var r=[],o=0;o=1<e.MAX_VERSION)throw new RangeError("Version value out of range");if(i<-1||i>7)throw new RangeError("Mask value out of range");this.size=t*4+17;for(var a=[],s=0;s>>9)*1335;var a=(r<<10|o)^21522;as(a>>>15==0);for(var s=0;s<=5;s++)this.setFunctionModule(8,s,gu(a,s));this.setFunctionModule(8,7,gu(a,6)),this.setFunctionModule(8,8,gu(a,7)),this.setFunctionModule(7,8,gu(a,8));for(var l=9;l<15;l++)this.setFunctionModule(14-l,8,gu(a,l));for(var c=0;c<8;c++)this.setFunctionModule(this.size-1-c,8,gu(a,c));for(var u=8;u<15;u++)this.setFunctionModule(8,this.size-15+u,gu(a,u));this.setFunctionModule(8,this.size-8,!0)}},{key:"drawVersion",value:function(){if(!(this.version<7)){for(var n=this.version,r=0;r<12;r++)n=n<<1^(n>>>11)*7973;var o=this.version<<12|n;as(o>>>18==0);for(var i=0;i<18;i++){var a=gu(o,i),s=this.size-11+i%3,l=Math.floor(i/3);this.setFunctionModule(s,l,a),this.setFunctionModule(l,s,a)}}}},{key:"drawFinderPattern",value:function(n,r){for(var o=-4;o<=4;o++)for(var i=-4;i<=4;i++){var a=Math.max(Math.abs(i),Math.abs(o)),s=n+i,l=r+o;0<=s&&s=l)&&v.push(E[w])})},y=0;y=1;o-=2){o==6&&(o=5);for(var i=0;i>>3],7-(r&7)),r++)}}as(r==n.length*8)}},{key:"applyMask",value:function(n){if(n<0||n>7)throw new RangeError("Mask value out of range");for(var r=0;r5&&n++):(this.finderPenaltyAddHistory(i,a),o||(n+=this.finderPenaltyCountPatterns(a)*e.PENALTY_N3),o=this.modules[r][s],i=1);n+=this.finderPenaltyTerminateAndCount(o,i,a)*e.PENALTY_N3}for(var l=0;l5&&n++):(this.finderPenaltyAddHistory(u,f),c||(n+=this.finderPenaltyCountPatterns(f)*e.PENALTY_N3),c=this.modules[h][l],u=1);n+=this.finderPenaltyTerminateAndCount(c,u,f)*e.PENALTY_N3}for(var p=0;p0&&n[2]==r&&n[3]==r*3&&n[4]==r&&n[5]==r;return(o&&n[0]>=r*4&&n[6]>=r?1:0)+(o&&n[6]>=r*4&&n[0]>=r?1:0)}},{key:"finderPenaltyTerminateAndCount",value:function(n,r,o){var i=r;return n&&(this.finderPenaltyAddHistory(i,o),i=0),i+=this.size,this.finderPenaltyAddHistory(i,o),this.finderPenaltyCountPatterns(o)}},{key:"finderPenaltyAddHistory",value:function(n,r){var o=n;r[0]==0&&(o+=this.size),r.pop(),r.unshift(o)}}],[{key:"encodeText",value:function(n,r){var o=Qh.makeSegments(n);return e.encodeSegments(o,r)}},{key:"encodeBinary",value:function(n,r){var o=Qh.makeBytes(n);return e.encodeSegments([o],r)}},{key:"encodeSegments",value:function(n,r){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:40,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1,s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;if(!(e.MIN_VERSION<=o&&o<=i&&i<=e.MAX_VERSION)||a<-1||a>7)throw new RangeError("Invalid value");var l,c;for(l=o;;l++){var u=e.getNumDataCodewords(l,r)*8,f=Qh.getTotalBits(n,l);if(f<=u){c=f;break}if(l>=i)throw new RangeError("Data too long")}for(var h=r,p=0,m=[tl.MEDIUM,tl.QUARTILE,tl.HIGH];p>>3]|=O<<7-(I&7)}),new e(l,h,P,a)}},{key:"getNumRawDataModules",value:function(n){if(ne.MAX_VERSION)throw new RangeError("Version number out of range");var r=(16*n+128)*n+64;if(n>=2){var o=Math.floor(n/7)+2;r-=(25*o-10)*o-55,n>=7&&(r-=36)}return as(208<=r&&r<=29648),r}},{key:"getNumDataCodewords",value:function(n,r){return Math.floor(e.getNumRawDataModules(n)/8)-e.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n]*e.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][n]}},{key:"reedSolomonComputeDivisor",value:function(n){if(n<1||n>255)throw new RangeError("Degree out of range");for(var r=[],o=0;o>>8||r>>>8)throw new RangeError("Byte out of range");for(var o=0,i=7;i>=0;i--)o=o<<1^(o>>>7)*285,o^=(r>>>i&1)*n;return as(o>>>8==0),o}}]),e}();Z(vd,"MIN_VERSION",1);Z(vd,"MAX_VERSION",40);Z(vd,"PENALTY_N1",3);Z(vd,"PENALTY_N2",3);Z(vd,"PENALTY_N3",40);Z(vd,"PENALTY_N4",10);Z(vd,"ECC_CODEWORDS_PER_BLOCK",[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]]);Z(vd,"NUM_ERROR_CORRECTION_BLOCKS",[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]]);var Qze={L:tl.LOW,M:tl.MEDIUM,Q:tl.QUARTILE,H:tl.HIGH},Rse=128,Ise="L",kse="#FFFFFF",Nse="#000000",Ase=!1,Dse=1,Jze=4,Zze=0,eHe=.1;function jse(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=[];return e.forEach(function(r,o){var i=null;r.forEach(function(a,s){if(!a&&i!==null){n.push("M".concat(i+t," ").concat(o+t,"h").concat(s-i,"v1H").concat(i+t,"z")),i=null;return}if(s===r.length-1){if(!a)return;i===null?n.push("M".concat(s+t,",").concat(o+t," h1v1H").concat(s+t,"z")):n.push("M".concat(i+t,",").concat(o+t," h").concat(s+1-i,"v1H").concat(i+t,"z"));return}a&&i===null&&(i=s)})}),n.join("")}function Fse(e,t){return e.slice().map(function(n,r){return r=t.y+t.h?n:n.map(function(o,i){return i=t.x+t.w?o:!1})})}function tHe(e,t,n,r){if(r==null)return null;var o=e.length+n*2,i=Math.floor(t*eHe),a=o/t,s=(r.width||i)*a,l=(r.height||i)*a,c=r.x==null?e.length/2-s/2:r.x*a,u=r.y==null?e.length/2-l/2:r.y*a,f=r.opacity==null?1:r.opacity,h=null;if(r.excavate){var p=Math.floor(c),m=Math.floor(u),g=Math.ceil(s+c-p),v=Math.ceil(l+u-m);h={x:p,y:m,w:g,h:v}}var b=r.crossOrigin;return{x:c,y:u,h:l,w:s,excavation:h,opacity:f,crossOrigin:b}}function nHe(e,t){return t!=null?Math.floor(t):e?Jze:Zze}var rHe=function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0}();function Lse(e){var t=e.value,n=e.level,r=e.minVersion,o=e.includeMargin,i=e.marginSize,a=e.imageSettings,s=e.size,l=d.useMemo(function(){var m=Qh.makeSegments(t);return vd.encodeSegments(m,Qze[n],r)},[t,n,r]),c=d.useMemo(function(){var m=l.getModules(),g=nHe(o,i),v=m.length+g*2,b=tHe(m,s,g,a);return{cells:m,margin:g,numCells:v,calculatedImageSettings:b}},[l,s,a,o,i]),u=c.cells,f=c.margin,h=c.numCells,p=c.calculatedImageSettings;return{qrcode:l,margin:f,cells:u,numCells:h,calculatedImageSettings:p}}var oHe=["value","size","level","bgColor","fgColor","includeMargin","minVersion","marginSize","style","imageSettings"],Bse=de.forwardRef(function(t,n){var r=t.value,o=t.size,i=o===void 0?Rse:o,a=t.level,s=a===void 0?Ise:a,l=t.bgColor,c=l===void 0?kse:l,u=t.fgColor,f=u===void 0?Nse:u,h=t.includeMargin,p=h===void 0?Ase:h,m=t.minVersion,g=m===void 0?Dse:m,v=t.marginSize,b=t.style,y=t.imageSettings,S=At(t,oHe),w=y==null?void 0:y.src,E=d.useRef(null),C=d.useRef(null),x=d.useCallback(function(F){E.current=F,typeof n=="function"?n(F):n&&(n.current=F)},[n]),_=d.useState(!1),P=$e(_,2),O=P[1],I=Lse({value:r,level:s,minVersion:g,includeMargin:p,marginSize:v,imageSettings:y,size:i}),M=I.margin,T=I.cells,D=I.numCells,A=I.calculatedImageSettings;d.useEffect(function(){if(E.current!=null){var F=E.current,V=F.getContext("2d");if(!V)return;var W=T,K=C.current,L=A!=null&&K!==null&&K.complete&&K.naturalHeight!==0&&K.naturalWidth!==0;L&&A.excavation!=null&&(W=Fse(T,A.excavation));var Q=window.devicePixelRatio||1;F.height=F.width=i*Q;var ee=i/D*Q;V.scale(ee,ee),V.fillStyle=c,V.fillRect(0,0,D,D),V.fillStyle=f,rHe?V.fill(new Path2D(jse(W,M))):T.forEach(function(re,ie){re.forEach(function(G,X){G&&V.fillRect(X+M,ie+M,1,1)})}),A&&(V.globalAlpha=A.opacity),L&&V.drawImage(K,A.x+M,A.y+M,A.w,A.h)}}),d.useEffect(function(){O(!1)},[w]);var j=z({height:i,width:i},b),k=null;return w!=null&&(k=de.createElement("img",{src:w,key:w,style:{display:"none"},onLoad:function(){O(!0)},ref:C,crossOrigin:A==null?void 0:A.crossOrigin})),de.createElement(de.Fragment,null,de.createElement("canvas",Ge({style:j,height:i,width:i,ref:x,role:"img"},S)),k)});Bse.displayName="QRCodeCanvas";var iHe=["value","size","level","bgColor","fgColor","includeMargin","minVersion","title","marginSize","imageSettings"],zse=de.forwardRef(function(t,n){var r=t.value,o=t.size,i=o===void 0?Rse:o,a=t.level,s=a===void 0?Ise:a,l=t.bgColor,c=l===void 0?kse:l,u=t.fgColor,f=u===void 0?Nse:u,h=t.includeMargin,p=h===void 0?Ase:h,m=t.minVersion,g=m===void 0?Dse:m,v=t.title,b=t.marginSize,y=t.imageSettings,S=At(t,iHe),w=Lse({value:r,level:s,minVersion:g,includeMargin:p,marginSize:b,imageSettings:y,size:i}),E=w.margin,C=w.cells,x=w.numCells,_=w.calculatedImageSettings,P=C,O=null;y!=null&&_!=null&&(_.excavation!=null&&(P=Fse(C,_.excavation)),O=de.createElement("image",{href:y.src,height:_.h,width:_.w,x:_.x+E,y:_.y+E,preserveAspectRatio:"none",opacity:_.opacity,crossOrigin:_.crossOrigin}));var I=jse(P,E);return de.createElement("svg",Ge({height:i,width:i,viewBox:"0 0 ".concat(x," ").concat(x),ref:n,role:"img"},S),!!v&&de.createElement("title",null,v),de.createElement("path",{fill:c,d:"M0,0 h".concat(x,"v").concat(x,"H0z"),shapeRendering:"crispEdges"}),de.createElement("path",{fill:f,d:I,shapeRendering:"crispEdges"}),O)});zse.displayName="QRCodeSVG";var aHe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"},sHe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:aHe}))},lHe=d.forwardRef(sHe),cHe={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"},uHe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:cHe}))},dHe=d.forwardRef(uHe),fHe={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"},hHe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:fHe}))},pHe=d.forwardRef(hHe),mHe={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"},gHe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:mHe}))},vHe=d.forwardRef(gHe),yHe={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 372zm5.6-532.7c53 0 89 33.8 93 83.4.3 4.2 3.8 7.4 8 7.4h56.7c2.6 0 4.7-2.1 4.7-4.7 0-86.7-68.4-147.4-162.7-147.4C407.4 290 344 364.2 344 486.8v52.3C344 660.8 407.4 734 517.3 734c94 0 162.7-58.8 162.7-141.4 0-2.6-2.1-4.7-4.7-4.7h-56.8c-4.2 0-7.6 3.2-8 7.3-4.2 46.1-40.1 77.8-93 77.8-65.3 0-102.1-47.9-102.1-133.6v-52.6c.1-87 37-135.5 102.2-135.5z"}}]},name:"copyright",theme:"outlined"},bHe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:yHe}))},SHe=d.forwardRef(bHe),CHe={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"},wHe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:CHe}))},xHe=d.forwardRef(wHe),EHe={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"},_He=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:EHe}))},$He=d.forwardRef(_He),PHe={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"},OHe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:PHe}))},Hse=d.forwardRef(OHe),MHe={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"},THe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:MHe}))},RHe=d.forwardRef(THe),IHe={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"},kHe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:IHe}))},NHe=d.forwardRef(kHe),AHe={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"},DHe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:AHe}))},jHe=d.forwardRef(DHe),FHe={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"},LHe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:FHe}))},BHe=d.forwardRef(LHe),zHe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.4 800.9c.2-.3.5-.6.7-.9C920.6 722.1 960 621.7 960 512s-39.4-210.1-104.8-288c-.2-.3-.5-.5-.7-.8-1.1-1.3-2.1-2.5-3.2-3.7-.4-.5-.8-.9-1.2-1.4l-4.1-4.7-.1-.1c-1.5-1.7-3.1-3.4-4.6-5.1l-.1-.1c-3.2-3.4-6.4-6.8-9.7-10.1l-.1-.1-4.8-4.8-.3-.3c-1.5-1.5-3-2.9-4.5-4.3-.5-.5-1-1-1.6-1.5-1-1-2-1.9-3-2.8-.3-.3-.7-.6-1-1C736.4 109.2 629.5 64 512 64s-224.4 45.2-304.3 119.2c-.3.3-.7.6-1 1-1 .9-2 1.9-3 2.9-.5.5-1 1-1.6 1.5-1.5 1.4-3 2.9-4.5 4.3l-.3.3-4.8 4.8-.1.1c-3.3 3.3-6.5 6.7-9.7 10.1l-.1.1c-1.6 1.7-3.1 3.4-4.6 5.1l-.1.1c-1.4 1.5-2.8 3.1-4.1 4.7-.4.5-.8.9-1.2 1.4-1.1 1.2-2.1 2.5-3.2 3.7-.2.3-.5.5-.7.8C103.4 301.9 64 402.3 64 512s39.4 210.1 104.8 288c.2.3.5.6.7.9l3.1 3.7c.4.5.8.9 1.2 1.4l4.1 4.7c0 .1.1.1.1.2 1.5 1.7 3 3.4 4.6 5l.1.1c3.2 3.4 6.4 6.8 9.6 10.1l.1.1c1.6 1.6 3.1 3.2 4.7 4.7l.3.3c3.3 3.3 6.7 6.5 10.1 9.6 80.1 74 187 119.2 304.5 119.2s224.4-45.2 304.3-119.2a300 300 0 0010-9.6l.3-.3c1.6-1.6 3.2-3.1 4.7-4.7l.1-.1c3.3-3.3 6.5-6.7 9.6-10.1l.1-.1c1.5-1.7 3.1-3.3 4.6-5 0-.1.1-.1.1-.2 1.4-1.5 2.8-3.1 4.1-4.7.4-.5.8-.9 1.2-1.4a99 99 0 003.3-3.7zm4.1-142.6c-13.8 32.6-32 62.8-54.2 90.2a444.07 444.07 0 00-81.5-55.9c11.6-46.9 18.8-98.4 20.7-152.6H887c-3 40.9-12.6 80.6-28.5 118.3zM887 484H743.5c-1.9-54.2-9.1-105.7-20.7-152.6 29.3-15.6 56.6-34.4 81.5-55.9A373.86 373.86 0 01887 484zM658.3 165.5c39.7 16.8 75.8 40 107.6 69.2a394.72 394.72 0 01-59.4 41.8c-15.7-45-35.8-84.1-59.2-115.4 3.7 1.4 7.4 2.9 11 4.4zm-90.6 700.6c-9.2 7.2-18.4 12.7-27.7 16.4V697a389.1 389.1 0 01115.7 26.2c-8.3 24.6-17.9 47.3-29 67.8-17.4 32.4-37.8 58.3-59 75.1zm59-633.1c11 20.6 20.7 43.3 29 67.8A389.1 389.1 0 01540 327V141.6c9.2 3.7 18.5 9.1 27.7 16.4 21.2 16.7 41.6 42.6 59 75zM540 640.9V540h147.5c-1.6 44.2-7.1 87.1-16.3 127.8l-.3 1.2A445.02 445.02 0 00540 640.9zm0-156.9V383.1c45.8-2.8 89.8-12.5 130.9-28.1l.3 1.2c9.2 40.7 14.7 83.5 16.3 127.8H540zm-56 56v100.9c-45.8 2.8-89.8 12.5-130.9 28.1l-.3-1.2c-9.2-40.7-14.7-83.5-16.3-127.8H484zm-147.5-56c1.6-44.2 7.1-87.1 16.3-127.8l.3-1.2c41.1 15.6 85 25.3 130.9 28.1V484H336.5zM484 697v185.4c-9.2-3.7-18.5-9.1-27.7-16.4-21.2-16.7-41.7-42.7-59.1-75.1-11-20.6-20.7-43.3-29-67.8 37.2-14.6 75.9-23.3 115.8-26.1zm0-370a389.1 389.1 0 01-115.7-26.2c8.3-24.6 17.9-47.3 29-67.8 17.4-32.4 37.8-58.4 59.1-75.1 9.2-7.2 18.4-12.7 27.7-16.4V327zM365.7 165.5c3.7-1.5 7.3-3 11-4.4-23.4 31.3-43.5 70.4-59.2 115.4-21-12-40.9-26-59.4-41.8 31.8-29.2 67.9-52.4 107.6-69.2zM165.5 365.7c13.8-32.6 32-62.8 54.2-90.2 24.9 21.5 52.2 40.3 81.5 55.9-11.6 46.9-18.8 98.4-20.7 152.6H137c3-40.9 12.6-80.6 28.5-118.3zM137 540h143.5c1.9 54.2 9.1 105.7 20.7 152.6a444.07 444.07 0 00-81.5 55.9A373.86 373.86 0 01137 540zm228.7 318.5c-39.7-16.8-75.8-40-107.6-69.2 18.5-15.8 38.4-29.7 59.4-41.8 15.7 45 35.8 84.1 59.2 115.4-3.7-1.4-7.4-2.9-11-4.4zm292.6 0c-3.7 1.5-7.3 3-11 4.4 23.4-31.3 43.5-70.4 59.2-115.4 21 12 40.9 26 59.4 41.8a373.81 373.81 0 01-107.6 69.2z"}}]},name:"global",theme:"outlined"},HHe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:zHe}))},UHe=d.forwardRef(HHe),WHe={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"},VHe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:WHe}))},KHe=d.forwardRef(VHe),qHe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"},GHe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:qHe}))},YHe=d.forwardRef(GHe),XHe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"lock",theme:"outlined"},QHe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:XHe}))},Wp=d.forwardRef(QHe),JHe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z"}}]},name:"menu",theme:"outlined"},ZHe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:JHe}))},eUe=d.forwardRef(ZHe),tUe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 512a48 48 0 1096 0 48 48 0 10-96 0zm200 0a48 48 0 1096 0 48 48 0 10-96 0zm-400 0a48 48 0 1096 0 48 48 0 10-96 0zm661.2-173.6c-22.6-53.7-55-101.9-96.3-143.3a444.35 444.35 0 00-143.3-96.3C630.6 75.7 572.2 64 512 64h-2c-60.6.3-119.3 12.3-174.5 35.9a445.35 445.35 0 00-142 96.5c-40.9 41.3-73 89.3-95.2 142.8-23 55.4-34.6 114.3-34.3 174.9A449.4 449.4 0 00112 714v152a46 46 0 0046 46h152.1A449.4 449.4 0 00510 960h2.1c59.9 0 118-11.6 172.7-34.3a444.48 444.48 0 00142.8-95.2c41.3-40.9 73.8-88.7 96.5-142 23.6-55.2 35.6-113.9 35.9-174.5.3-60.9-11.5-120-34.8-175.6zm-151.1 438C704 845.8 611 884 512 884h-1.7c-60.3-.3-120.2-15.3-173.1-43.5l-8.4-4.5H188V695.2l-4.5-8.4C155.3 633.9 140.3 574 140 513.7c-.4-99.7 37.7-193.3 107.6-263.8 69.8-70.5 163.1-109.5 262.8-109.9h1.7c50 0 98.5 9.7 144.2 28.9 44.6 18.7 84.6 45.6 119 80 34.3 34.3 61.3 74.4 80 119 19.4 46.2 29.1 95.2 28.9 145.8-.6 99.6-39.7 192.9-110.1 262.7z"}}]},name:"message",theme:"outlined"},nUe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:tUe}))},vy=d.forwardRef(nUe),rUe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"minus-circle",theme:"outlined"},oUe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:rUe}))},lg=d.forwardRef(oUe),iUe={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"},aUe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:iUe}))},sUe=d.forwardRef(aUe),lUe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M744 62H280c-35.3 0-64 28.7-64 64v768c0 35.3 28.7 64 64 64h464c35.3 0 64-28.7 64-64V126c0-35.3-28.7-64-64-64zm-8 824H288V134h448v752zM472 784a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"mobile",theme:"outlined"},cUe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:lUe}))},lS=d.forwardRef(cUe),uUe={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"},dUe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:uUe}))},fUe=d.forwardRef(dUe),hUe={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"},pUe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:hUe}))},mUe=d.forwardRef(pUe),gUe={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"},vUe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:gUe}))},yUe=d.forwardRef(vUe),bUe={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 708c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40zm62.9-219.5a48.3 48.3 0 00-30.9 44.8V620c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-21.5c0-23.1 6.7-45.9 19.9-64.9 12.9-18.6 30.9-32.8 52.1-40.9 34-13.1 56-41.6 56-72.7 0-44.1-43.1-80-96-80s-96 35.9-96 80v7.6c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V420c0-39.3 17.2-76 48.4-103.3C430.4 290.4 470 276 512 276s81.6 14.5 111.6 40.7C654.8 344 672 380.7 672 420c0 57.8-38.1 109.8-97.1 132.5z"}}]},name:"question-circle",theme:"filled"},SUe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:bUe}))},Use=d.forwardRef(SUe),CUe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"},wUe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:CUe}))},xUe=d.forwardRef(wUe),EUe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 328a60 60 0 10120 0 60 60 0 10-120 0zM852 64H172c-17.7 0-32 14.3-32 32v660c0 17.7 14.3 32 32 32h680c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-32 660H204V128h616v596zM604 328a60 60 0 10120 0 60 60 0 10-120 0zm250.2 556H169.8c-16.5 0-29.8 14.3-29.8 32v36c0 4.4 3.3 8 7.4 8h729.1c4.1 0 7.4-3.6 7.4-8v-36c.1-17.7-13.2-32-29.7-32zM664 508H360c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"robot",theme:"outlined"},_Ue=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:EUe}))},$Ue=d.forwardRef(_Ue),PUe={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"},OUe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:PUe}))},Wse=d.forwardRef(OUe),MUe={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"},TUe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:MUe}))},RUe=d.forwardRef(TUe),IUe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 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:"upload",theme:"outlined"},kUe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:IUe}))},DD=d.forwardRef(kUe),NUe={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"},AUe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:NUe}))},Vse=d.forwardRef(AUe),DUe={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"},jUe=function(t,n){return d.createElement(Nn,Ge({},t,{ref:n,icon:DUe}))},FUe=d.forwardRef(jUe),LUe=["className","component","viewBox","spin","rotate","tabIndex","onClick","children"],Kse=d.forwardRef(function(e,t){var n=e.className,r=e.component,o=e.viewBox,i=e.spin,a=e.rotate,s=e.tabIndex,l=e.onClick,c=e.children,u=At(e,LUe),f=d.useRef(),h=mc(f,t);k3(!!(r||c),"Should have `component` prop or `children`."),Pne(f);var p=d.useContext(p$),m=p.prefixCls,g=m===void 0?"anticon":m,v=p.rootClassName,b=xe(v,g,Z({},"".concat(g,"-spin"),!!i&&!!r),n),y=xe(Z({},"".concat(g,"-spin"),!!i)),S=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,w=z(z({},oMe),{},{className:y,style:S,viewBox:o});o||delete w.viewBox;var E=function(){return r?d.createElement(r,w,c):c?(k3(!!o||d.Children.count(c)===1&&d.isValidElement(c)&&d.Children.only(c).type==="use","Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."),d.createElement("svg",Ge({},w,{viewBox:o}),c)):null},C=s;return C===void 0&&l&&(C=-1),d.createElement("span",Ge({role:"img"},u,{ref:h,tabIndex:C,onClick:l,className:b}),E())});Kse.displayName="AntdIcon";var BUe=["type","children"],qse=new Set;function zUe(e){return!!(typeof e=="string"&&e.length&&!qse.has(e))}function cE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e[t];if(zUe(n)){var r=document.createElement("script");r.setAttribute("src",n),r.setAttribute("data-namespace",n),e.length>t+1&&(r.onload=function(){cE(e,t+1)},r.onerror=function(){cE(e,t+1)}),qse.add(n),document.body.appendChild(r)}}function Gse(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.scriptUrl,n=e.extraCommonProps,r=n===void 0?{}:n;t&&typeof document<"u"&&typeof window<"u"&&typeof document.createElement=="function"&&(Array.isArray(t)?cE(t.reverse()):cE([t]));var o=d.forwardRef(function(i,a){var s=i.type,l=i.children,c=At(i,BUe),u=null;return i.type&&(u=d.createElement("use",{xlinkHref:"#".concat(s)})),l&&(u=l),d.createElement(Kse,Ge({},r,c,{ref:a}),u)});return o.displayName="Iconfont",o}const HUe=de.createElement(iu,null);function UUe(e){let{prefixCls:t,locale:n,onRefresh:r,statusRender:o,status:i}=e;const a=de.createElement(de.Fragment,null,de.createElement("p",{className:`${t}-expired`},n==null?void 0:n.expired),r&&de.createElement(Hn,{type:"link",icon:de.createElement(xUe,null),onClick:r},n==null?void 0:n.refresh)),s=de.createElement("p",{className:`${t}-scanned`},n==null?void 0:n.scanned),l={expired:a,loading:HUe,scanned:s};return(o??(f=>l[f.status]))({status:i,locale:n,onRefresh:r})}const WUe=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorSplit:o}=e;return{[t]:Object.assign(Object.assign({},Qn(e)),{display:"flex",justifyContent:"center",alignItems:"center",padding:e.paddingSM,backgroundColor:e.colorWhite,borderRadius:e.borderRadiusLG,border:`${_e(n)} ${r} ${o}`,position:"relative",overflow:"hidden",[`& > ${t}-mask`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:10,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",color:e.colorText,lineHeight:e.lineHeight,background:e.QRCodeMaskBackgroundColor,textAlign:"center",[`& > ${t}-expired, & > ${t}-scanned`]:{color:e.QRCodeTextColor}},"> canvas":{alignSelf:"stretch",flex:"auto",minWidth:0},"&-icon":{marginBlockEnd:e.marginXS,fontSize:e.controlHeight}}),[`${t}-borderless`]:{borderColor:"transparent",padding:0,borderRadius:0}}},VUe=e=>({QRCodeMaskBackgroundColor:new Un(e.colorBgContainer).setA(.96).toRgbString()}),KUe=Kn("QRCode",e=>{const t=kn(e,{QRCodeTextColor:e.colorText});return WUe(t)},VUe);var qUe=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 o=0,r=Object.getOwnPropertySymbols(e);o{var t,n,r,o;const[,i]=Ho(),{value:a,type:s="canvas",icon:l="",size:c=160,iconSize:u,color:f=i.colorText,errorLevel:h="M",status:p="active",bordered:m=!0,onRefresh:g,style:v,className:b,rootClassName:y,prefixCls:S,bgColor:w="transparent",statusRender:E}=e,C=qUe(e,["value","type","icon","size","iconSize","color","errorLevel","status","bordered","onRefresh","style","className","rootClassName","prefixCls","bgColor","statusRender"]),{getPrefixCls:x}=d.useContext(Yt),_=x("qrcode",S),[P,O,I]=KUe(_),M={src:l,x:void 0,y:void 0,height:typeof u=="number"?u:(t=u==null?void 0:u.height)!==null&&t!==void 0?t:40,width:typeof u=="number"?u:(n=u==null?void 0:u.width)!==null&&n!==void 0?n:40,excavate:!0,crossOrigin:"anonymous"},T=Jr(C,!0),D=Yn(C,Object.keys(T)),A=Object.assign({value:a,size:c,level:h,bgColor:w,fgColor:f,style:{width:v==null?void 0:v.width,height:v==null?void 0:v.height},imageSettings:l?M:void 0},T),[j]=zi("QRCode");if(!a)return null;const k=xe(_,b,y,O,I,{[`${_}-borderless`]:!m}),F=Object.assign(Object.assign({backgroundColor:w},v),{width:(r=v==null?void 0:v.width)!==null&&r!==void 0?r:c,height:(o=v==null?void 0:v.height)!==null&&o!==void 0?o:c});return P(de.createElement("div",Object.assign({},D,{className:k,style:F}),p!=="active"&&de.createElement("div",{className:`${_}-mask`},de.createElement(UUe,{prefixCls:_,locale:j,status:p,onRefresh:g,statusRender:E})),s==="canvas"?de.createElement(Bse,Object.assign({},A)):de.createElement(zse,Object.assign({},A))))};function GUe(e,t){var n=e.disabled,r=e.prefixCls,o=e.character,i=e.characterRender,a=e.index,s=e.count,l=e.value,c=e.allowHalf,u=e.focused,f=e.onHover,h=e.onClick,p=function(E){f(E,a)},m=function(E){h(E,a)},g=function(E){E.keyCode===ut.ENTER&&h(E,a)},v=a+1,b=new Set([r]);l===0&&a===0&&u?b.add("".concat(r,"-focused")):c&&l+.5>=v&&la?"true":"false","aria-posinset":a+1,"aria-setsize":s,tabIndex:n?-1:0},de.createElement("div",{className:"".concat(r,"-first")},y),de.createElement("div",{className:"".concat(r,"-second")},y)));return i&&(S=i(S,e)),S}const YUe=de.forwardRef(GUe);function XUe(){var e=d.useRef({});function t(r){return e.current[r]}function n(r){return function(o){e.current[r]=o}}return[t,n]}function QUe(e){var t=e.pageXOffset,n="scrollLeft";if(typeof t!="number"){var r=e.document;t=r.documentElement[n],typeof t!="number"&&(t=r.body[n])}return t}function JUe(e){var t,n,r=e.ownerDocument,o=r.body,i=r&&r.documentElement,a=e.getBoundingClientRect();return t=a.left,n=a.top,t-=i.clientLeft||o.clientLeft||0,n-=i.clientTop||o.clientTop||0,{left:t,top:n}}function ZUe(e){var t=JUe(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=QUe(r),t.left}var eWe=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function tWe(e,t){var n=e.prefixCls,r=n===void 0?"rc-rate":n,o=e.className,i=e.defaultValue,a=e.value,s=e.count,l=s===void 0?5:s,c=e.allowHalf,u=c===void 0?!1:c,f=e.allowClear,h=f===void 0?!0:f,p=e.keyboard,m=p===void 0?!0:p,g=e.character,v=g===void 0?"★":g,b=e.characterRender,y=e.disabled,S=e.direction,w=S===void 0?"ltr":S,E=e.tabIndex,C=E===void 0?0:E,x=e.autoFocus,_=e.onHoverChange,P=e.onChange,O=e.onFocus,I=e.onBlur,M=e.onKeyDown,T=e.onMouseLeave,D=At(e,eWe),A=XUe(),j=$e(A,2),k=j[0],F=j[1],V=de.useRef(null),W=function(){if(!y){var q;(q=V.current)===null||q===void 0||q.focus()}};de.useImperativeHandle(t,function(){return{focus:W,blur:function(){if(!y){var q;(q=V.current)===null||q===void 0||q.blur()}}}});var K=xn(i||0,{value:a}),L=$e(K,2),Q=L[0],ee=L[1],re=xn(null),ie=$e(re,2),G=ie[0],X=ie[1],ne=function(q,me){var Ce=w==="rtl",ue=q+1;if(u){var Le=k(q),He=ZUe(Le),ge=Le.clientWidth;(Ce&&me-He>ge/2||!Ce&&me-He0&&!Ce||me===ut.RIGHT&&Q>0&&Ce?(le(Q-ue),q.preventDefault()):me===ut.LEFT&&Q{const{componentCls:t}=e;return{[`${t}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:e.marginXS},"> div":{transition:`all ${e.motionDurationMid}, outline 0s`,"&:hover":{transform:e.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${_e(e.lineWidth)} dashed ${e.starColor}`,transform:e.starHoverScale}},"&-first, &-second":{color:e.starBg,transition:`all ${e.motionDurationMid}`,userSelect:"none"},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${t}-star-first, &-half ${t}-star-second`]:{opacity:1},[`&-half ${t}-star-first, &-full ${t}-star-second`]:{color:"inherit"}}}},oWe=e=>({[`&-rtl${e.componentCls}`]:{direction:"rtl"}}),iWe=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Qn(e)),{display:"inline-block",margin:0,padding:0,color:e.starColor,fontSize:e.starSize,lineHeight:1,listStyle:"none",outline:"none",[`&-disabled${t} ${t}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),rWe(e)),oWe(e))}},aWe=e=>({starColor:e.yellow6,starSize:e.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:e.colorFillContent}),sWe=Kn("Rate",e=>{const t=kn(e,{});return[iWe(t)]},aWe);var lWe=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 o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,className:r,rootClassName:o,style:i,tooltips:a,character:s=d.createElement(RUe,null),disabled:l}=e,c=lWe(e,["prefixCls","className","rootClassName","style","tooltips","character","disabled"]),u=(E,C)=>{let{index:x}=C;return a?d.createElement(xa,{title:a[x]},E):E},{getPrefixCls:f,direction:h,rate:p}=d.useContext(Yt),m=f("rate",n),[g,v,b]=sWe(m),y=Object.assign(Object.assign({},p==null?void 0:p.style),i),S=d.useContext(zo),w=l??S;return g(d.createElement(nWe,Object.assign({ref:t,character:s,characterRender:u,disabled:w},c,{className:xe(r,o,v,b,p==null?void 0:p.className),style:y,prefixCls:m,direction:h})))}),cWe=()=>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"}))),uWe=()=>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)"}))),dWe=e=>{const{componentCls:t,lineHeightHeading3:n,iconCls:r,padding:o,paddingXL:i,paddingXS:a,paddingLG:s,marginXS:l,lineHeight:c}=e;return{[t]:{padding:`${_e(e.calc(s).mul(2).equal())} ${_e(i)}`,"&-rtl":{direction:"rtl"}},[`${t} ${t}-image`]:{width:e.imageWidth,height:e.imageHeight,margin:"auto"},[`${t} ${t}-icon`]:{marginBottom:s,textAlign:"center",[`& > ${r}`]:{fontSize:e.iconFontSize}},[`${t} ${t}-title`]:{color:e.colorTextHeading,fontSize:e.titleFontSize,lineHeight:n,marginBlock:l,textAlign:"center"},[`${t} ${t}-subtitle`]:{color:e.colorTextDescription,fontSize:e.subtitleFontSize,lineHeight:c,textAlign:"center"},[`${t} ${t}-content`]:{marginTop:s,padding:`${_e(s)} ${_e(e.calc(o).mul(2.5).equal())}`,backgroundColor:e.colorFillAlter},[`${t} ${t}-extra`]:{margin:e.extraMargin,textAlign:"center","& > *":{marginInlineEnd:a,"&:last-child":{marginInlineEnd:0}}}}},fWe=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}}},hWe=e=>[dWe(e),fWe(e)],pWe=e=>hWe(e),mWe=e=>({titleFontSize:e.fontSizeHeading3,subtitleFontSize:e.fontSize,iconFontSize:e.fontSizeHeading3*3,extraMargin:`${e.paddingLG}px 0 0 0`}),gWe=Kn("Result",e=>{const t=e.colorInfo,n=e.colorError,r=e.colorSuccess,o=e.colorWarning,i=kn(e,{resultInfoIconColor:t,resultErrorIconColor:n,resultSuccessIconColor:r,resultWarningIconColor:o,imageWidth:250,imageHeight:295});return[pWe(i)]},mWe),vWe=()=>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"}))),yWe={success:Lp,error:ru,info:Df,warning:FUe},cS={404:cWe,500:uWe,403:vWe},bWe=Object.keys(cS),SWe=e=>{let{prefixCls:t,icon:n,status:r}=e;const o=xe(`${t}-icon`);if(bWe.includes(`${r}`)){const a=cS[r];return d.createElement("div",{className:`${o} ${t}-image`},d.createElement(a,null))}const i=d.createElement(yWe[r]);return n===null||n===!1?null:d.createElement("div",{className:o},n||i)},CWe=e=>{let{prefixCls:t,extra:n}=e;return n?d.createElement("div",{className:`${t}-extra`},n):null},uS=e=>{let{prefixCls:t,className:n,rootClassName:r,subTitle:o,title:i,style:a,children:s,status:l="info",icon:c,extra:u}=e;const{getPrefixCls:f,direction:h,result:p}=d.useContext(Yt),m=f("result",t),[g,v,b]=gWe(m),y=xe(m,`${m}-${l}`,n,p==null?void 0:p.className,r,{[`${m}-rtl`]:h==="rtl"},v,b),S=Object.assign(Object.assign({},p==null?void 0:p.style),a);return g(d.createElement("div",{className:y,style:S},d.createElement(SWe,{prefixCls:m,status:l,icon:c}),d.createElement("div",{className:`${m}-title`},i),o&&d.createElement("div",{className:`${m}-subtitle`},o),d.createElement(CWe,{prefixCls:m,extra:u}),s&&d.createElement("div",{className:`${m}-content`},s)))};uS.PRESENTED_IMAGE_403=cS[403];uS.PRESENTED_IMAGE_404=cS[404];uS.PRESENTED_IMAGE_500=cS[500];var wWe=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Xse=d.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-switch":r,i=e.className,a=e.checked,s=e.defaultChecked,l=e.disabled,c=e.loadingIcon,u=e.checkedChildren,f=e.unCheckedChildren,h=e.onClick,p=e.onChange,m=e.onKeyDown,g=At(e,wWe),v=xn(!1,{value:a,defaultValue:s}),b=$e(v,2),y=b[0],S=b[1];function w(_,P){var O=y;return l||(O=_,S(O),p==null||p(O,P)),O}function E(_){_.which===ut.LEFT?w(!1,_):_.which===ut.RIGHT&&w(!0,_),m==null||m(_)}function C(_){var P=w(!y,_);h==null||h(P,_)}var x=xe(o,i,(n={},Z(n,"".concat(o,"-checked"),y),Z(n,"".concat(o,"-disabled"),l),n));return d.createElement("button",Ge({},g,{type:"button",role:"switch","aria-checked":y,disabled:l,className:x,ref:t,onKeyDown:E,onClick:C}),c,d.createElement("span",{className:"".concat(o,"-inner")},d.createElement("span",{className:"".concat(o,"-inner-checked")},u),d.createElement("span",{className:"".concat(o,"-inner-unchecked")},f)))});Xse.displayName="Switch";const xWe=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:o,innerMinMarginSM:i,innerMaxMarginSM:a,handleSizeSM:s,calc:l}=e,c=`${t}-inner`,u=_e(l(s).add(l(r).mul(2)).equal()),f=_e(l(a).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:o,height:n,lineHeight:_e(n),[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:i,[`${c}-checked, ${c}-unchecked`]:{minHeight:n},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${f})`,marginInlineEnd:`calc(100% - ${u} + ${f})`},[`${c}-unchecked`]:{marginTop:l(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:s,height:s},[`${t}-loading-icon`]:{top:l(l(s).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${f})`,marginInlineEnd:`calc(-100% + ${u} - ${f})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${_e(l(s).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:l(e.marginXXS).div(2).equal(),marginInlineEnd:l(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:l(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:l(e.marginXXS).div(2).equal()}}}}}}},EWe=e=>{const{componentCls:t,handleSize:n,calc:r}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},_We=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:o,handleSize:i,calc:a}=e,s=`${t}-handle`;return{[t]:{[s]:{position:"absolute",top:n,insetInlineStart:n,width:i,height:i,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:a(i).div(2).equal(),boxShadow:o,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${s}`]:{insetInlineStart:`calc(100% - ${_e(a(i).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${s}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${s}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},$We=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:o,innerMaxMargin:i,handleSize:a,calc:s}=e,l=`${t}-inner`,c=_e(s(a).add(s(r).mul(2)).equal()),u=_e(s(i).mul(2).equal());return{[t]:{[l]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:i,paddingInlineEnd:o,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${l}-checked, ${l}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:n},[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${c} - ${u})`,marginInlineEnd:`calc(100% - ${c} + ${u})`},[`${l}-unchecked`]:{marginTop:s(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${l}`]:{paddingInlineStart:o,paddingInlineEnd:i,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${c} + ${u})`,marginInlineEnd:`calc(-100% + ${c} - ${u})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:s(r).mul(2).equal(),marginInlineEnd:s(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:s(r).mul(-1).mul(2).equal(),marginInlineEnd:s(r).mul(2).equal()}}}}}},PWe=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Qn(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:_e(n),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),Ka(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},OWe=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:o}=e,i=t*n,a=r/2,s=2,l=i-s*2,c=a-s*2;return{trackHeight:i,trackHeightSM:a,trackMinWidth:l*2+s*4,trackMinWidthSM:c*2+s*2,trackPadding:s,handleBg:o,handleSize:l,handleSizeSM:c,handleShadow:`0 2px 4px 0 ${new Un("#00230b").setA(.2).toRgbString()}`,innerMinMargin:l/2,innerMaxMargin:l+s+s*2,innerMinMarginSM:c/2,innerMaxMarginSM:c+s+s*2}},MWe=Kn("Switch",e=>{const t=kn(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[PWe(t),$We(t),_We(t),EWe(t),xWe(t)]},OWe);var TWe=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 o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,size:r,disabled:o,loading:i,className:a,rootClassName:s,style:l,checked:c,value:u,defaultChecked:f,defaultValue:h,onChange:p}=e,m=TWe(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[g,v]=xn(!1,{value:c??u,defaultValue:f??h}),{getPrefixCls:b,direction:y,switch:S}=d.useContext(Yt),w=d.useContext(zo),E=(o??w)||i,C=b("switch",n),x=d.createElement("div",{className:`${C}-handle`},i&&d.createElement(Gc,{className:`${C}-loading-icon`})),[_,P,O]=MWe(C),I=Eo(r),M=xe(S==null?void 0:S.className,{[`${C}-small`]:I==="small",[`${C}-loading`]:i,[`${C}-rtl`]:y==="rtl"},a,s,P,O),T=Object.assign(Object.assign({},S==null?void 0:S.style),l),D=function(){v(arguments.length<=0?void 0:arguments[0]),p==null||p.apply(void 0,arguments)};return _(d.createElement(H1,{component:"Switch"},d.createElement(Xse,Object.assign({},m,{checked:g,onChange:D,prefixCls:C,className:M,style:T,disabled:E,ref:t,loadingIcon:x}))))}),uE=RWe;uE.__ANT_SWITCH=!0;var Ou={},dS="rc-table-internal-hook";function jD(e){var t=d.createContext(void 0),n=function(o){var i=o.value,a=o.children,s=d.useRef(i);s.current=i;var l=d.useState(function(){return{getValue:function(){return s.current},listeners:new Set}}),c=$e(l,1),u=c[0];return Zn(function(){_i.unstable_batchedUpdates(function(){u.listeners.forEach(function(f){f(i)})})},[i]),d.createElement(t.Provider,{value:u},a)};return{Context:t,Provider:n,defaultValue:e}}function ji(e,t){var n=An(typeof t=="function"?t:function(f){if(t===void 0)return f;if(!Array.isArray(t))return f[t];var h={};return t.forEach(function(p){h[p]=f[p]}),h}),r=d.useContext(e==null?void 0:e.Context),o=r||{},i=o.listeners,a=o.getValue,s=d.useRef();s.current=n(r?a():e==null?void 0:e.defaultValue);var l=d.useState({}),c=$e(l,2),u=c[1];return Zn(function(){if(!r)return;function f(h){var p=n(h);dl(s.current,p,!0)||u({})}return i.add(f),function(){i.delete(f)}},[r]),s.current}function IWe(){var e=d.createContext(null);function t(){return d.useContext(e)}function n(o,i){var a=tc(o),s=function(c,u){var f=a?{ref:u}:{},h=d.useRef(0),p=d.useRef(c),m=t();return m!==null?d.createElement(o,Ge({},c,f)):((!i||i(p.current,c))&&(h.current+=1),p.current=c,d.createElement(e.Provider,{value:h.current},d.createElement(o,Ge({},c,f))))};return a?d.forwardRef(s):s}function r(o,i){var a=tc(o),s=function(c,u){var f=a?{ref:u}:{};return t(),d.createElement(o,Ge({},c,f))};return a?d.memo(d.forwardRef(s),i):d.memo(s,i)}return{makeImmutable:n,responseImmutable:r,useImmutableMark:t}}var FD=IWe(),Qse=FD.makeImmutable,Lv=FD.responseImmutable,kWe=FD.useImmutableMark,Oa=jD(),Jse=d.createContext({renderWithProps:!1}),NWe="RC_TABLE_KEY";function AWe(e){return e==null?[]:Array.isArray(e)?e:[e]}function mP(e){var t=[],n={};return e.forEach(function(r){for(var o=r||{},i=o.key,a=o.dataIndex,s=i||AWe(a).join("-")||NWe;n[s];)s="".concat(s,"_next");n[s]=!0,t.push(s)}),t}function C6(e){return e!=null}function DWe(e){return typeof e=="number"&&!Number.isNaN(e)}function jWe(e){return e&&Ht(e)==="object"&&!Array.isArray(e)&&!d.isValidElement(e)}function FWe(e,t,n,r,o,i){var a=d.useContext(Jse),s=kWe(),l=ed(function(){if(C6(r))return[r];var c=t==null||t===""?[]:Array.isArray(t)?t:[t],u=Mo(e,c),f=u,h=void 0;if(o){var p=o(u,e,n);jWe(p)?(f=p.children,h=p.props,a.renderWithProps=!0):f=p}return[f,h]},[s,e,r,t,o,n],function(c,u){if(i){var f=$e(c,2),h=f[1],p=$e(u,2),m=p[1];return i(m,h)}return a.renderWithProps?!0:!dl(c,u,!0)});return l}function LWe(e,t,n,r){var o=e+t-1;return e<=r&&o>=n}function BWe(e,t){return ji(Oa,function(n){var r=LWe(e,t||1,n.hoverStartRow,n.hoverEndRow);return[r,n.onHover]})}var zWe=function(t){var n=t.ellipsis,r=t.rowType,o=t.children,i,a=n===!0?{showTitle:!0}:n;return a&&(a.showTitle||r==="header")&&(typeof o=="string"||typeof o=="number"?i=o.toString():d.isValidElement(o)&&typeof o.props.children=="string"&&(i=o.props.children)),i};function HWe(e){var t,n,r,o,i,a,s,l,c=e.component,u=e.children,f=e.ellipsis,h=e.scope,p=e.prefixCls,m=e.className,g=e.align,v=e.record,b=e.render,y=e.dataIndex,S=e.renderIndex,w=e.shouldCellUpdate,E=e.index,C=e.rowType,x=e.colSpan,_=e.rowSpan,P=e.fixLeft,O=e.fixRight,I=e.firstFixLeft,M=e.lastFixLeft,T=e.firstFixRight,D=e.lastFixRight,A=e.appendNode,j=e.additionalProps,k=j===void 0?{}:j,F=e.isSticky,V="".concat(p,"-cell"),W=ji(Oa,["supportSticky","allColumnsFixedLeft","rowHoverable"]),K=W.supportSticky,L=W.allColumnsFixedLeft,Q=W.rowHoverable,ee=FWe(v,y,S,u,b,w),re=$e(ee,2),ie=re[0],G=re[1],X={},ne=typeof P=="number"&&K,le=typeof O=="number"&&K;ne&&(X.position="sticky",X.left=P),le&&(X.position="sticky",X.right=O);var ce=(t=(n=(r=G==null?void 0:G.colSpan)!==null&&r!==void 0?r:k.colSpan)!==null&&n!==void 0?n:x)!==null&&t!==void 0?t:1,oe=(o=(i=(a=G==null?void 0:G.rowSpan)!==null&&a!==void 0?a:k.rowSpan)!==null&&i!==void 0?i:_)!==null&&o!==void 0?o:1,se=BWe(E,oe),fe=$e(se,2),te=fe[0],he=fe[1],pe=An(function(Pe){var Ne;v&&he(E,E+oe-1),k==null||(Ne=k.onMouseEnter)===null||Ne===void 0||Ne.call(k,Pe)}),Oe=An(function(Pe){var Ne;v&&he(-1,-1),k==null||(Ne=k.onMouseLeave)===null||Ne===void 0||Ne.call(k,Pe)});if(ce===0||oe===0)return null;var Me=(s=k.title)!==null&&s!==void 0?s:zWe({rowType:C,ellipsis:f,children:ie}),Se=xe(V,m,(l={},Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(l,"".concat(V,"-fix-left"),ne&&K),"".concat(V,"-fix-left-first"),I&&K),"".concat(V,"-fix-left-last"),M&&K),"".concat(V,"-fix-left-all"),M&&L&&K),"".concat(V,"-fix-right"),le&&K),"".concat(V,"-fix-right-first"),T&&K),"".concat(V,"-fix-right-last"),D&&K),"".concat(V,"-ellipsis"),f),"".concat(V,"-with-append"),A),"".concat(V,"-fix-sticky"),(ne||le)&&F&&K),Z(l,"".concat(V,"-row-hover"),!G&&te)),k.className,G==null?void 0:G.className),ye={};g&&(ye.textAlign=g);var ve=z(z(z(z({},G==null?void 0:G.style),X),ye),k.style),be=ie;return Ht(be)==="object"&&!Array.isArray(be)&&!d.isValidElement(be)&&(be=null),f&&(M||T)&&(be=d.createElement("span",{className:"".concat(V,"-content")},be)),d.createElement(c,Ge({},G,k,{className:Se,style:ve,title:Me,scope:h,onMouseEnter:Q?pe:void 0,onMouseLeave:Q?Oe:void 0,colSpan:ce!==1?ce:null,rowSpan:oe!==1?oe:null}),A,be)}const Bv=d.memo(HWe);function LD(e,t,n,r,o){var i=n[e]||{},a=n[t]||{},s,l;i.fixed==="left"?s=r.left[o==="rtl"?t:e]:a.fixed==="right"&&(l=r.right[o==="rtl"?e:t]);var c=!1,u=!1,f=!1,h=!1,p=n[t+1],m=n[e-1],g=p&&!p.fixed||m&&!m.fixed||n.every(function(w){return w.fixed==="left"});if(o==="rtl"){if(s!==void 0){var v=m&&m.fixed==="left";h=!v&&g}else if(l!==void 0){var b=p&&p.fixed==="right";f=!b&&g}}else if(s!==void 0){var y=p&&p.fixed==="left";c=!y&&g}else if(l!==void 0){var S=m&&m.fixed==="right";u=!S&&g}return{fixLeft:s,fixRight:l,lastFixLeft:c,firstFixRight:u,lastFixRight:f,firstFixLeft:h,isSticky:r.isSticky}}var Zse=d.createContext({});function UWe(e){var t=e.className,n=e.index,r=e.children,o=e.colSpan,i=o===void 0?1:o,a=e.rowSpan,s=e.align,l=ji(Oa,["prefixCls","direction"]),c=l.prefixCls,u=l.direction,f=d.useContext(Zse),h=f.scrollColumnIndex,p=f.stickyOffsets,m=f.flattenColumns,g=n+i-1,v=g+1===h?i+1:i,b=LD(n,n+v-1,m,p,u);return d.createElement(Bv,Ge({className:t,index:n,component:"td",prefixCls:c,record:null,dataIndex:null,align:s,colSpan:v,rowSpan:a,render:function(){return r}},b))}var WWe=["children"];function VWe(e){var t=e.children,n=At(e,WWe);return d.createElement("tr",n,t)}function gP(e){var t=e.children;return t}gP.Row=VWe;gP.Cell=UWe;function KWe(e){var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,o=ji(Oa,"prefixCls"),i=r.length-1,a=r[i],s=d.useMemo(function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:a!=null&&a.scrollbar?i:null}},[a,r,i,n]);return d.createElement(Zse.Provider,{value:s},d.createElement("tfoot",{className:"".concat(o,"-summary")},t))}const QC=Lv(KWe);var ele=gP;function qWe(e){return null}function GWe(e){return null}function tle(e,t,n,r,o,i,a){e.push({record:t,indent:n,index:a});var s=i(t),l=o==null?void 0:o.has(s);if(t&&Array.isArray(t[r])&&l)for(var c=0;c1?I-1:0),T=1;T=1)),style:z(z({},n),b==null?void 0:b.style)}),m.map(function(P,O){var I=P.render,M=P.dataIndex,T=P.className,D=ale(h,P,O,l,o),A=D.key,j=D.fixedInfo,k=D.appendCellNode,F=D.additionalCellProps;return d.createElement(Bv,Ge({className:T,ellipsis:P.ellipsis,align:P.align,scope:P.rowScope,component:P.rowScope?f:u,prefixCls:p,key:A,record:r,index:o,renderIndex:i,dataIndex:M,render:I,shouldCellUpdate:P.shouldCellUpdate},j,{appendNode:k,additionalProps:F}))})),x;if(S&&(w.current||y)){var _=v(r,o,l+1,y);x=d.createElement(ole,{expanded:y,className:xe("".concat(p,"-expanded-row"),"".concat(p,"-expanded-row-level-").concat(l+1),E),prefixCls:p,component:c,cellComponent:u,colSpan:m.length,isEmpty:!1},_)}return d.createElement(d.Fragment,null,C,x)}const JWe=Lv(QWe);function ZWe(e){var t=e.columnKey,n=e.onColumnResize,r=d.useRef();return d.useEffect(function(){r.current&&n(t,r.current.offsetWidth)},[]),d.createElement(Oi,{data:t},d.createElement("td",{ref:r,style:{padding:0,border:0,height:0}},d.createElement("div",{style:{height:0,overflow:"hidden"}}," ")))}function eVe(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(Oi.Collection,{onBatchResize:function(i){i.forEach(function(a){var s=a.data,l=a.size;r(s,l.offsetWidth)})}},n.map(function(o){return d.createElement(ZWe,{key:o,columnKey:o,onColumnResize:r})})))}function tVe(e){var t=e.data,n=e.measureColumnWidth,r=ji(Oa,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),o=r.prefixCls,i=r.getComponent,a=r.onColumnResize,s=r.flattenColumns,l=r.getRowKey,c=r.expandedKeys,u=r.childrenColumnName,f=r.emptyNode,h=nle(t,u,c,l),p=d.useRef({renderWithProps:!1}),m=i(["body","wrapper"],"tbody"),g=i(["body","row"],"tr"),v=i(["body","cell"],"td"),b=i(["body","cell"],"th"),y;t.length?y=h.map(function(w,E){var C=w.record,x=w.indent,_=w.index,P=l(C,E);return d.createElement(JWe,{key:P,rowKey:P,record:C,index:E,renderIndex:_,rowComponent:g,cellComponent:v,scopeCellComponent:b,indent:x})}):y=d.createElement(ole,{expanded:!0,className:"".concat(o,"-placeholder"),prefixCls:o,component:g,cellComponent:v,colSpan:s.length,isEmpty:!0},f);var S=mP(s);return d.createElement(Jse.Provider,{value:p.current},d.createElement(m,{className:"".concat(o,"-tbody")},n&&d.createElement(eVe,{prefixCls:o,columnsKey:S,onColumnResize:a}),y))}const nVe=Lv(tVe);var rVe=["expandable"],Ky="RC_TABLE_INTERNAL_COL_DEFINE";function oVe(e){var t=e.expandable,n=At(e,rVe),r;return"expandable"in e?r=z(z({},n),t):r=n,r.showExpandColumn===!1&&(r.expandIconColumnIndex=-1),r}var iVe=["columnType"];function sle(e){for(var t=e.colWidths,n=e.columns,r=e.columCount,o=ji(Oa,["tableLayout"]),i=o.tableLayout,a=[],s=r||n.length,l=!1,c=s-1;c>=0;c-=1){var u=t[c],f=n&&n[c],h=void 0,p=void 0;if(f&&(h=f[Ky],i==="auto"&&(p=f.minWidth)),u||p||h||l){var m=h||{};m.columnType;var g=At(m,iVe);a.unshift(d.createElement("col",Ge({key:c,style:{width:u,minWidth:p}},g))),l=!0}}return d.createElement("colgroup",null,a)}var aVe=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function sVe(e,t){return d.useMemo(function(){for(var n=[],r=0;r1?"colgroup":"col":null,ellipsis:v.ellipsis,align:v.align,component:a,prefixCls:u,key:p[g]},b,{additionalProps:y,rowType:"header"}))}))};function uVe(e){var t=[];function n(a,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;t[l]=t[l]||[];var c=s,u=a.filter(Boolean).map(function(f){var h={key:f.key,className:f.className||"",children:f.title,column:f,colStart:c},p=1,m=f.children;return m&&m.length>0&&(p=n(m,c,l+1).reduce(function(g,v){return g+v},0),h.hasSubColumns=!0),"colSpan"in f&&(p=f.colSpan),"rowSpan"in f&&(h.rowSpan=f.rowSpan),h.colSpan=p,h.colEnd=h.colStart+p-1,t[l].push(h),c+=p,p});return u}n(e,0);for(var r=t.length,o=function(s){t[s].forEach(function(l){!("rowSpan"in l)&&!l.hasSubColumns&&(l.rowSpan=r-s)})},i=0;i1&&arguments[1]!==void 0?arguments[1]:"";return typeof t=="number"?t:t.endsWith("%")?e*parseFloat(t)/100:null}function fVe(e,t,n){return d.useMemo(function(){if(t&&t>0){var r=0,o=0;e.forEach(function(h){var p=XU(t,h.width);p?r+=p:o+=1});var i=Math.max(t,n),a=Math.max(i-r,o),s=o,l=a/o,c=0,u=e.map(function(h){var p=z({},h),m=XU(t,p.width);if(m)p.width=m;else{var g=Math.floor(l);p.width=s===1?a:g,a-=g,s-=1}return c+=p.width,p});if(c0?z(z({},t),{},{children:lle(n)}):t})}function w6(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return e.filter(function(n){return n&&Ht(n)==="object"}).reduce(function(n,r,o){var i=r.fixed,a=i===!0?"left":i,s="".concat(t,"-").concat(o),l=r.children;return l&&l.length>0?[].concat(Ze(n),Ze(w6(l,s).map(function(c){return z({fixed:a},c)}))):[].concat(Ze(n),[z(z({key:s},r),{},{fixed:a})])},[])}function mVe(e){return e.map(function(t){var n=t.fixed,r=At(t,pVe),o=n;return n==="left"?o="right":n==="right"&&(o="left"),z({fixed:o},r)})}function gVe(e,t){var n=e.prefixCls,r=e.columns,o=e.children,i=e.expandable,a=e.expandedKeys,s=e.columnTitle,l=e.getRowKey,c=e.onTriggerExpand,u=e.expandIcon,f=e.rowExpandable,h=e.expandIconColumnIndex,p=e.direction,m=e.expandRowByClick,g=e.columnWidth,v=e.fixed,b=e.scrollWidth,y=e.clientWidth,S=d.useMemo(function(){var M=r||BD(o)||[];return lle(M.slice())},[r,o]),w=d.useMemo(function(){if(i){var M=S.slice();if(!M.includes(Ou)){var T=h||0;T>=0&&(T||v==="left"||!v)&&M.splice(T,0,Ou),v==="right"&&M.splice(S.length,0,Ou)}var D=M.indexOf(Ou);M=M.filter(function(F,V){return F!==Ou||V===D});var A=S[D],j;v?j=v:j=A?A.fixed:null;var k=Z(Z(Z(Z(Z(Z({},Ky,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",s),"fixed",j),"className","".concat(n,"-row-expand-icon-cell")),"width",g),"render",function(V,W,K){var L=l(W,K),Q=a.has(L),ee=f?f(W):!0,re=u({prefixCls:n,expanded:Q,expandable:ee,record:W,onExpand:c});return m?d.createElement("span",{onClick:function(G){return G.stopPropagation()}},re):re});return M.map(function(F){return F===Ou?k:F})}return S.filter(function(F){return F!==Ou})},[i,S,l,a,u,p]),E=d.useMemo(function(){var M=w;return t&&(M=t(M)),M.length||(M=[{render:function(){return null}}]),M},[t,w,p]),C=d.useMemo(function(){return p==="rtl"?mVe(w6(E)):w6(E)},[E,p,b]),x=d.useMemo(function(){for(var M=-1,T=C.length-1;T>=0;T-=1){var D=C[T].fixed;if(D==="left"||D===!0){M=T;break}}if(M>=0)for(var A=0;A<=M;A+=1){var j=C[A].fixed;if(j!=="left"&&j!==!0)return!0}var k=C.findIndex(function(W){var K=W.fixed;return K==="right"});if(k>=0)for(var F=k;F=k-s?y(function(F){return z(z({},F),{},{isHiddenScrollBar:!0})}):y(function(F){return z(z({},F),{},{isHiddenScrollBar:!1})})}})},T=function(A){y(function(j){return z(z({},j),{},{scrollLeft:A/f*h||0})})};return d.useImperativeHandle(n,function(){return{setScrollLeft:T,checkScrollBarVisible:M}}),d.useEffect(function(){var D=jc(document.body,"mouseup",P,!1),A=jc(document.body,"mousemove",I,!1);return M(),function(){D.remove(),A.remove()}},[p,C]),d.useEffect(function(){var D=jc(l,"scroll",M,!1),A=jc(window,"resize",M,!1);return function(){D.remove(),A.remove()}},[l]),d.useEffect(function(){b.isHiddenScrollBar||y(function(D){var A=i.current;return A?z(z({},D),{},{scrollLeft:A.scrollLeft/A.scrollWidth*A.clientWidth}):D})},[b.isHiddenScrollBar]),f<=h||!p||b.isHiddenScrollBar?null:d.createElement("div",{style:{height:wz(),width:h,bottom:s},className:"".concat(u,"-sticky-scroll")},d.createElement("div",{onMouseDown:O,ref:m,className:xe("".concat(u,"-sticky-scroll-bar"),Z({},"".concat(u,"-sticky-scroll-bar-active"),C)),style:{width:"".concat(p,"px"),transform:"translate3d(".concat(b.scrollLeft,"px, 0, 0)")}}))};const EVe=d.forwardRef(xVe);var ule="rc-table",_Ve=[],$Ve={};function PVe(){return"No Data"}function OVe(e,t){var n=z({rowKey:"key",prefixCls:ule,emptyText:PVe},e),r=n.prefixCls,o=n.className,i=n.rowClassName,a=n.style,s=n.data,l=n.rowKey,c=n.scroll,u=n.tableLayout,f=n.direction,h=n.title,p=n.footer,m=n.summary,g=n.caption,v=n.id,b=n.showHeader,y=n.components,S=n.emptyText,w=n.onRow,E=n.onHeaderRow,C=n.onScroll,x=n.internalHooks,_=n.transformColumns,P=n.internalRefs,O=n.tailor,I=n.getContainerWidth,M=n.sticky,T=n.rowHoverable,D=T===void 0?!0:T,A=s||_Ve,j=!!A.length,k=x===dS,F=d.useCallback(function(Fn,rn){return Mo(y,Fn)||rn},[y]),V=d.useMemo(function(){return typeof l=="function"?l:function(Fn){var rn=Fn&&Fn[l];return rn}},[l]),W=F(["body"]),K=SVe(),L=$e(K,3),Q=L[0],ee=L[1],re=L[2],ie=vVe(n,A,V),G=$e(ie,6),X=G[0],ne=G[1],le=G[2],ce=G[3],oe=G[4],se=G[5],fe=c==null?void 0:c.x,te=d.useState(0),he=$e(te,2),pe=he[0],Oe=he[1],Me=gVe(z(z(z({},n),X),{},{expandable:!!X.expandedRowRender,columnTitle:X.columnTitle,expandedKeys:le,getRowKey:V,onTriggerExpand:se,expandIcon:ce,expandIconColumnIndex:X.expandIconColumnIndex,direction:f,scrollWidth:k&&O&&typeof fe=="number"?fe:null,clientWidth:pe}),k?_:null),Se=$e(Me,4),ye=Se[0],ve=Se[1],be=Se[2],Pe=Se[3],Ne=be??fe,U=d.useMemo(function(){return{columns:ye,flattenColumns:ve}},[ye,ve]),H=d.useRef(),q=d.useRef(),me=d.useRef(),Ce=d.useRef();d.useImperativeHandle(t,function(){return{nativeElement:H.current,scrollTo:function(rn){var fn;if(me.current instanceof HTMLElement){var Sn=rn.index,Dn=rn.top,cr=rn.key;if(DWe(Dn)){var Uo;(Uo=me.current)===null||Uo===void 0||Uo.scrollTo({top:Dn})}else{var si,Ar=cr??V(A[Sn]);(si=me.current.querySelector('[data-row-key="'.concat(Ar,'"]')))===null||si===void 0||si.scrollIntoView()}}else(fn=me.current)!==null&&fn!==void 0&&fn.scrollTo&&me.current.scrollTo(rn)}}});var ue=d.useRef(),Le=d.useState(!1),He=$e(Le,2),ge=He[0],De=He[1],qe=d.useState(!1),Fe=$e(qe,2),Ke=Fe[0],Ue=Fe[1],Ve=cle(new Map),Tt=$e(Ve,2),et=Tt[0],st=Tt[1],yt=mP(ve),gt=yt.map(function(Fn){return et.get(Fn)}),Lt=d.useMemo(function(){return gt},[gt.join("_")]),St=wVe(Lt,ve,f),wt=c&&C6(c.y),Nt=c&&C6(Ne)||!!X.fixed,Be=Nt&&ve.some(function(Fn){var rn=Fn.fixed;return rn}),We=d.useRef(),je=CVe(M,r),Xe=je.isSticky,pt=je.offsetHeader,vt=je.offsetSummary,Mt=je.offsetScroll,Et=je.stickyClassName,ft=je.container,dt=d.useMemo(function(){return m==null?void 0:m(A)},[m,A]),Rt=(wt||Xe)&&d.isValidElement(dt)&&dt.type===gP&&dt.props.fixed,Ct,Wt,at;wt&&(Wt={overflowY:j?"scroll":"auto",maxHeight:c.y}),Nt&&(Ct={overflowX:"auto"},wt||(Wt={overflowY:"hidden"}),at={width:Ne===!0?"auto":Ne,minWidth:"100%"});var $t=d.useCallback(function(Fn,rn){Ov(H.current)&&st(function(fn){if(fn.get(Fn)!==rn){var Sn=new Map(fn);return Sn.set(Fn,rn),Sn}return fn})},[]),Bt=bVe(),xt=$e(Bt,2),bt=xt[0],Ft=xt[1];function Re(Fn,rn){rn&&(typeof rn=="function"?rn(Fn):rn.scrollLeft!==Fn&&(rn.scrollLeft=Fn,rn.scrollLeft!==Fn&&setTimeout(function(){rn.scrollLeft=Fn},0)))}var It=An(function(Fn){var rn=Fn.currentTarget,fn=Fn.scrollLeft,Sn=f==="rtl",Dn=typeof fn=="number"?fn:rn.scrollLeft,cr=rn||$Ve;if(!Ft()||Ft()===cr){var Uo;bt(cr),Re(Dn,q.current),Re(Dn,me.current),Re(Dn,ue.current),Re(Dn,(Uo=We.current)===null||Uo===void 0?void 0:Uo.setScrollLeft)}var si=rn||q.current;if(si){var Ar=k&&O&&typeof Ne=="number"?Ne:si.scrollWidth,li=si.clientWidth;if(Ar===li){De(!1),Ue(!1);return}Sn?(De(-Dn0)):(De(Dn>0),Ue(Dn1?v-D:0,j=z(z(z({},_),c),{},{flex:"0 0 ".concat(D,"px"),width:"".concat(D,"px"),marginRight:A,pointerEvents:"auto"}),k=d.useMemo(function(){return f?M<=1:O===0||M===0||M>1},[M,O,f]);k?j.visibility="hidden":f&&(j.height=h==null?void 0:h(M));var F=k?function(){return null}:p,V={};return(M===0||O===0)&&(V.rowSpan=1,V.colSpan=1),d.createElement(Bv,Ge({className:xe(g,u),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:a,prefixCls:t.prefixCls,key:w,record:l,index:i,renderIndex:s,dataIndex:m,render:F,shouldCellUpdate:n.shouldCellUpdate},E,{appendNode:C,additionalProps:z(z({},x),{},{style:j},V)}))}var IVe=["data","index","className","rowKey","style","extra","getHeight"],kVe=d.forwardRef(function(e,t){var n=e.data,r=e.index,o=e.className,i=e.rowKey,a=e.style,s=e.extra,l=e.getHeight,c=At(e,IVe),u=n.record,f=n.indent,h=n.index,p=ji(Oa,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),m=p.scrollX,g=p.flattenColumns,v=p.prefixCls,b=p.fixColumn,y=p.componentWidth,S=ji(zD,["getComponent"]),w=S.getComponent,E=rle(u,i,r,f),C=w(["body","row"],"div"),x=w(["body","cell"],"div"),_=E.rowSupportExpand,P=E.expanded,O=E.rowProps,I=E.expandedRowRender,M=E.expandedRowClassName,T;if(_&&P){var D=I(u,r,f+1,P),A=ile(M,u,r,f),j={};b&&(j={style:Z({},"--virtual-width","".concat(y,"px"))});var k="".concat(v,"-expanded-row-cell");T=d.createElement(C,{className:xe("".concat(v,"-expanded-row"),"".concat(v,"-expanded-row-level-").concat(f+1),A)},d.createElement(Bv,{component:x,prefixCls:v,className:xe(k,Z({},"".concat(k,"-fixed"),b)),additionalProps:j},D))}var F=z(z({},a),{},{width:m});s&&(F.position="absolute",F.pointerEvents="none");var V=d.createElement(C,Ge({},O,c,{"data-row-key":i,ref:_?null:t,className:xe(o,"".concat(v,"-row"),O==null?void 0:O.className,Z({},"".concat(v,"-row-extra"),s)),style:z(z({},F),O==null?void 0:O.style)}),g.map(function(W,K){return d.createElement(RVe,{key:K,component:x,rowInfo:E,column:W,colIndex:K,indent:f,index:r,renderIndex:h,record:u,inverse:s,getHeight:l})}));return _?d.createElement("div",{ref:t},V,T):V}),eW=Lv(kVe),NVe=d.forwardRef(function(e,t){var n=e.data,r=e.onScroll,o=ji(Oa,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),i=o.flattenColumns,a=o.onColumnResize,s=o.getRowKey,l=o.expandedKeys,c=o.prefixCls,u=o.childrenColumnName,f=o.scrollX,h=o.direction,p=ji(zD),m=p.sticky,g=p.scrollY,v=p.listItemHeight,b=p.getComponent,y=p.onScroll,S=d.useRef(),w=nle(n,u,l,s),E=d.useMemo(function(){var T=0;return i.map(function(D){var A=D.width,j=D.key;return T+=A,[j,A,T]})},[i]),C=d.useMemo(function(){return E.map(function(T){return T[2]})},[E]);d.useEffect(function(){E.forEach(function(T){var D=$e(T,2),A=D[0],j=D[1];a(A,j)})},[E]),d.useImperativeHandle(t,function(){var T,D={scrollTo:function(j){var k;(k=S.current)===null||k===void 0||k.scrollTo(j)},nativeElement:(T=S.current)===null||T===void 0?void 0:T.nativeElement};return Object.defineProperty(D,"scrollLeft",{get:function(){var j;return((j=S.current)===null||j===void 0?void 0:j.getScrollInfo().x)||0},set:function(j){var k;(k=S.current)===null||k===void 0||k.scrollTo({left:j})}}),D});var x=function(D,A){var j,k=(j=w[A])===null||j===void 0?void 0:j.record,F=D.onCell;if(F){var V,W=F(k,A);return(V=W==null?void 0:W.rowSpan)!==null&&V!==void 0?V:1}return 1},_=function(D){var A=D.start,j=D.end,k=D.getSize,F=D.offsetY;if(j<0)return null;for(var V=i.filter(function(ce){return x(ce,A)===0}),W=A,K=function(oe){if(V=V.filter(function(se){return x(se,oe)===0}),!V.length)return W=oe,1},L=A;L>=0&&!K(L);L-=1);for(var Q=i.filter(function(ce){return x(ce,j)!==1}),ee=j,re=function(oe){if(Q=Q.filter(function(se){return x(se,oe)!==1}),!Q.length)return ee=Math.max(oe-1,j),1},ie=j;ie1})&&G.push(oe)},ne=W;ne<=ee;ne+=1)X(ne);var le=G.map(function(ce){var oe=w[ce],se=s(oe.record,ce),fe=function(pe){var Oe=ce+pe-1,Me=s(w[Oe].record,Oe),Se=k(se,Me);return Se.bottom-Se.top},te=k(se);return d.createElement(eW,{key:ce,data:oe,rowKey:se,index:ce,style:{top:-F+te.top},extra:!0,getHeight:fe})});return le},P=d.useMemo(function(){return{columnsOffset:C}},[C]),O="".concat(c,"-tbody"),I=b(["body","wrapper"]),M={};return m&&(M.position="sticky",M.bottom=0,Ht(m)==="object"&&m.offsetScroll&&(M.bottom=m.offsetScroll)),d.createElement(fle.Provider,{value:P},d.createElement(B$,{fullHeight:!1,ref:S,prefixCls:"".concat(O,"-virtual"),styles:{horizontalScrollBar:M},className:O,height:g,itemHeight:v||24,data:w,itemKey:function(D){return s(D.record)},component:I,scrollWidth:f,direction:h,onVirtualScroll:function(D){var A,j=D.x;r({currentTarget:(A=S.current)===null||A===void 0?void 0:A.nativeElement,scrollLeft:j})},onScroll:y,extraRender:_},function(T,D,A){var j=s(T.record,D);return d.createElement(eW,{data:T,rowKey:j,index:D,style:A.style})}))}),AVe=Lv(NVe),DVe=function(t,n){var r=n.ref,o=n.onScroll;return d.createElement(AVe,{ref:r,data:t,onScroll:o})};function jVe(e,t){var n=e.data,r=e.columns,o=e.scroll,i=e.sticky,a=e.prefixCls,s=a===void 0?ule:a,l=e.className,c=e.listItemHeight,u=e.components,f=e.onScroll,h=o||{},p=h.x,m=h.y;typeof p!="number"&&(p=1),typeof m!="number"&&(m=500);var g=An(function(y,S){return Mo(u,y)||S}),v=An(f),b=d.useMemo(function(){return{sticky:i,scrollY:m,listItemHeight:c,getComponent:g,onScroll:v}},[i,m,c,g,v]);return d.createElement(zD.Provider,{value:b},d.createElement(zv,Ge({},e,{className:xe(l,"".concat(s,"-virtual")),scroll:z(z({},o),{},{x:p}),components:z(z({},u),{},{body:n!=null&&n.length?DVe:void 0}),columns:r,internalHooks:dS,tailor:!0,ref:t})))}var FVe=d.forwardRef(jVe);function hle(e){return Qse(FVe,e)}hle();const LVe=e=>null,BVe=e=>null;var HD=d.createContext(null),ple=d.createContext({}),zVe=function(t){for(var n=t.prefixCls,r=t.level,o=t.isStart,i=t.isEnd,a="".concat(n,"-indent-unit"),s=[],l=0;l=0&&n.splice(r,1),n}function Cu(e,t){var n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function UD(e){return e.split("-")}function VVe(e,t){var n=[],r=La(t,e);function o(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];i.forEach(function(a){var s=a.key,l=a.children;n.push(s),o(l)})}return o(r.children),n}function KVe(e){if(e.parent){var t=UD(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function qVe(e){var t=UD(e.pos);return Number(t[t.length-1])===0}function rW(e,t,n,r,o,i,a,s,l,c){var u,f=e.clientX,h=e.clientY,p=e.target.getBoundingClientRect(),m=p.top,g=p.height,v=(c==="rtl"?-1:1)*(((o==null?void 0:o.x)||0)-f),b=(v-12)/r,y=l.filter(function(j){var k;return(k=s[j])===null||k===void 0||(k=k.children)===null||k===void 0?void 0:k.length}),S=La(s,n.eventKey);if(h-1.5?i({dragNode:T,dropNode:D,dropPosition:1})?O=1:A=!1:i({dragNode:T,dropNode:D,dropPosition:0})?O=0:i({dragNode:T,dropNode:D,dropPosition:1})?O=1:A=!1:i({dragNode:T,dropNode:D,dropPosition:1})?O=1:A=!1,{dropPosition:O,dropLevelOffset:I,dropTargetKey:S.key,dropTargetPos:S.pos,dragOverNodeKey:P,dropContainerKey:O===0?null:((u=S.parent)===null||u===void 0?void 0:u.key)||null,dropAllowed:A}}function oW(e,t){if(e){var n=t.multiple;return n?e.slice():e.length?[e[0]]:e}}function hR(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(Ht(e)==="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return yr(!1,"`checkedKeys` is not an array or an object"),null;return t}function x6(e,t){var n=new Set;function r(o){if(!n.has(o)){var i=La(t,o);if(i){n.add(o);var a=i.parent,s=i.node;s.disabled||a&&r(a.key)}}}return(e||[]).forEach(function(o){r(o)}),Ze(n)}function GVe(e){const[t,n]=d.useState(null);return[d.useCallback((i,a,s)=>{const l=t??i,c=Math.min(l||0,i),u=Math.max(l||0,i),f=a.slice(c,u+1).map(m=>e(m)),h=f.some(m=>!s.has(m)),p=[];return f.forEach(m=>{h?(s.has(m)||p.push(m),s.add(m)):(s.delete(m),p.push(m))}),n(h?u:null),p},[t]),i=>{n(i)}]}const Nd={},E6="SELECT_ALL",_6="SELECT_INVERT",$6="SELECT_NONE",iW=[],mle=(e,t)=>{let n=[];return(t||[]).forEach(r=>{n.push(r),r&&typeof r=="object"&&e in r&&(n=[].concat(Ze(n),Ze(mle(e,r[e]))))}),n},YVe=(e,t)=>{const{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:o,getCheckboxProps:i,onChange:a,onSelect:s,onSelectAll:l,onSelectInvert:c,onSelectNone:u,onSelectMultiple:f,columnWidth:h,type:p,selections:m,fixed:g,renderCell:v,hideSelectAll:b,checkStrictly:y=!0}=t||{},{prefixCls:S,data:w,pageData:E,getRecordByKey:C,getRowKey:x,expandType:_,childrenColumnName:P,locale:O,getPopupContainer:I}=e,M=nu(),[T,D]=GVe(ce=>ce),[A,j]=xn(r||o||iW,{value:r}),k=d.useRef(new Map),F=d.useCallback(ce=>{if(n){const oe=new Map;ce.forEach(se=>{let fe=C(se);!fe&&k.current.has(se)&&(fe=k.current.get(se)),oe.set(se,fe)}),k.current=oe}},[C,n]);d.useEffect(()=>{F(A)},[A]);const V=d.useMemo(()=>mle(P,E),[P,E]),{keyEntities:W}=d.useMemo(()=>{if(y)return{keyEntities:null};let ce=w;if(n){const oe=new Set(V.map((fe,te)=>x(fe,te))),se=Array.from(k.current).reduce((fe,te)=>{let[he,pe]=te;return oe.has(he)?fe:fe.concat(pe)},[]);ce=[].concat(Ze(ce),Ze(se))}return oS(ce,{externalGetKey:x,childrenPropName:P})},[w,x,y,P,n,V]),K=d.useMemo(()=>{const ce=new Map;return V.forEach((oe,se)=>{const fe=x(oe,se),te=(i?i(oe):null)||{};ce.set(fe,te)}),ce},[V,x,i]),L=d.useCallback(ce=>{const oe=x(ce);let se;return K.has(oe)?se=K.get(x(ce)):se=i?i(ce):void 0,!!(se!=null&&se.disabled)},[K,x]),[Q,ee]=d.useMemo(()=>{if(y)return[A||[],[]];const{checkedKeys:ce,halfCheckedKeys:oe}=il(A,!0,W,L);return[ce||[],oe]},[A,y,W,L]),re=d.useMemo(()=>{const ce=p==="radio"?Q.slice(0,1):Q;return new Set(ce)},[Q,p]),ie=d.useMemo(()=>p==="radio"?new Set:new Set(ee),[ee,p]);d.useEffect(()=>{t||j(iW)},[!!t]);const G=d.useCallback((ce,oe)=>{let se,fe;F(ce),n?(se=ce,fe=ce.map(te=>k.current.get(te))):(se=[],fe=[],ce.forEach(te=>{const he=C(te);he!==void 0&&(se.push(te),fe.push(he))})),j(se),a==null||a(se,fe,{type:oe})},[j,C,a,n]),X=d.useCallback((ce,oe,se,fe)=>{if(s){const te=se.map(he=>C(he));s(C(ce),oe,te,fe)}G(se,"single")},[s,C,G]),ne=d.useMemo(()=>!m||b?null:(m===!0?[E6,_6,$6]:m).map(oe=>oe===E6?{key:"all",text:O.selectionAll,onSelect(){G(w.map((se,fe)=>x(se,fe)).filter(se=>{const fe=K.get(se);return!(fe!=null&&fe.disabled)||re.has(se)}),"all")}}:oe===_6?{key:"invert",text:O.selectInvert,onSelect(){const se=new Set(re);E.forEach((te,he)=>{const pe=x(te,he),Oe=K.get(pe);Oe!=null&&Oe.disabled||(se.has(pe)?se.delete(pe):se.add(pe))});const fe=Array.from(se);c&&(M.deprecated(!1,"onSelectInvert","onChange"),c(fe)),G(fe,"invert")}}:oe===$6?{key:"none",text:O.selectNone,onSelect(){u==null||u(),G(Array.from(re).filter(se=>{const fe=K.get(se);return fe==null?void 0:fe.disabled}),"none")}}:oe).map(oe=>Object.assign(Object.assign({},oe),{onSelect:function(){for(var se,fe,te=arguments.length,he=new Array(te),pe=0;pe{var oe;if(!t)return ce.filter(Ce=>Ce!==Nd);let se=Ze(ce);const fe=new Set(re),te=V.map(x).filter(Ce=>!K.get(Ce).disabled),he=te.every(Ce=>fe.has(Ce)),pe=te.some(Ce=>fe.has(Ce)),Oe=()=>{const Ce=[];he?te.forEach(Le=>{fe.delete(Le),Ce.push(Le)}):te.forEach(Le=>{fe.has(Le)||(fe.add(Le),Ce.push(Le))});const ue=Array.from(fe);l==null||l(!he,ue.map(Le=>C(Le)),Ce.map(Le=>C(Le))),G(ue,"all"),D(null)};let Me,Se;if(p!=="radio"){let Ce;if(ne){const De={getPopupContainer:I,items:ne.map((qe,Fe)=>{const{key:Ke,text:Ue,onSelect:Ve}=qe;return{key:Ke??Fe,onClick:()=>{Ve==null||Ve(te)},label:Ue}})};Ce=d.createElement("div",{className:`${S}-selection-extra`},d.createElement(RD,{menu:De,getPopupContainer:I},d.createElement("span",null,d.createElement(z$,null))))}const ue=V.map((De,qe)=>{const Fe=x(De,qe),Ke=K.get(Fe)||{};return Object.assign({checked:fe.has(Fe)},Ke)}).filter(De=>{let{disabled:qe}=De;return qe}),Le=!!ue.length&&ue.length===V.length,He=Le&&ue.every(De=>{let{checked:qe}=De;return qe}),ge=Le&&ue.some(De=>{let{checked:qe}=De;return qe});Se=d.createElement(od,{checked:Le?He:!!V.length&&he,indeterminate:Le?!He&&ge:!he&&pe,onChange:Oe,disabled:V.length===0||Le,"aria-label":Ce?"Custom selection":"Select all",skipGroup:!0}),Me=!b&&d.createElement("div",{className:`${S}-selection`},Se,Ce)}let ye;p==="radio"?ye=(Ce,ue,Le)=>{const He=x(ue,Le),ge=fe.has(He),De=K.get(He);return{node:d.createElement(qo,Object.assign({},De,{checked:ge,onClick:qe=>{var Fe;qe.stopPropagation(),(Fe=De==null?void 0:De.onClick)===null||Fe===void 0||Fe.call(De,qe)},onChange:qe=>{var Fe;fe.has(He)||X(He,!0,[He],qe.nativeEvent),(Fe=De==null?void 0:De.onChange)===null||Fe===void 0||Fe.call(De,qe)}})),checked:ge}}:ye=(Ce,ue,Le)=>{var He;const ge=x(ue,Le),De=fe.has(ge),qe=ie.has(ge),Fe=K.get(ge);let Ke;return _==="nest"?Ke=qe:Ke=(He=Fe==null?void 0:Fe.indeterminate)!==null&&He!==void 0?He:qe,{node:d.createElement(od,Object.assign({},Fe,{indeterminate:Ke,checked:De,skipGroup:!0,onClick:Ue=>{var Ve;Ue.stopPropagation(),(Ve=Fe==null?void 0:Fe.onClick)===null||Ve===void 0||Ve.call(Fe,Ue)},onChange:Ue=>{var Ve;const{nativeEvent:Tt}=Ue,{shiftKey:et}=Tt,st=te.findIndex(gt=>gt===ge),yt=Q.some(gt=>te.includes(gt));if(et&&y&&yt){const gt=T(st,te,fe),Lt=Array.from(fe);f==null||f(!De,Lt.map(St=>C(St)),gt.map(St=>C(St))),G(Lt,"multiple")}else{const gt=Q;if(y){const Lt=De?_c(gt,ge):Cu(gt,ge);X(ge,!De,Lt,Tt)}else{const Lt=il([].concat(Ze(gt),[ge]),!0,W,L),{checkedKeys:St,halfCheckedKeys:wt}=Lt;let Nt=St;if(De){const Be=new Set(St);Be.delete(ge),Nt=il(Array.from(Be),{checked:!1,halfCheckedKeys:wt},W,L).checkedKeys}X(ge,!De,Nt,Tt)}}D(De?null:st),(Ve=Fe==null?void 0:Fe.onChange)===null||Ve===void 0||Ve.call(Fe,Ue)}})),checked:De}};const ve=(Ce,ue,Le)=>{const{node:He,checked:ge}=ye(Ce,ue,Le);return v?v(ge,ue,Le,He):He};if(!se.includes(Nd))if(se.findIndex(Ce=>{var ue;return((ue=Ce[Ky])===null||ue===void 0?void 0:ue.columnType)==="EXPAND_COLUMN"})===0){const[Ce,...ue]=se;se=[Ce,Nd].concat(Ze(ue))}else se=[Nd].concat(Ze(se));const be=se.indexOf(Nd);se=se.filter((Ce,ue)=>Ce!==Nd||ue===be);const Pe=se[be-1],Ne=se[be+1];let U=g;U===void 0&&((Ne==null?void 0:Ne.fixed)!==void 0?U=Ne.fixed:(Pe==null?void 0:Pe.fixed)!==void 0&&(U=Pe.fixed)),U&&Pe&&((oe=Pe[Ky])===null||oe===void 0?void 0:oe.columnType)==="EXPAND_COLUMN"&&Pe.fixed===void 0&&(Pe.fixed=U);const H=xe(`${S}-selection-col`,{[`${S}-selection-col-with-dropdown`]:m&&p==="checkbox"}),q=()=>t!=null&&t.columnTitle?typeof t.columnTitle=="function"?t.columnTitle(Se):t.columnTitle:Me,me={fixed:U,width:h,className:`${S}-selection-column`,title:q(),render:ve,onCell:t.onCell,[Ky]:{className:H}};return se.map(Ce=>Ce===Nd?me:Ce)},[x,V,t,Q,re,ie,h,ne,_,K,f,X,L]),re]};function XVe(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 QVe(e,t){return d.useImperativeHandle(e,()=>{const n=t(),{nativeElement:r}=n;return typeof Proxy<"u"?new Proxy(r,{get(o,i){return n[i]?n[i]:Reflect.get(o,i)}}):XVe(r,n)})}function JVe(e){return t=>{const{prefixCls:n,onExpand:r,record:o,expanded:i,expandable:a}=t,s=`${n}-row-expand-icon`;return d.createElement("button",{type:"button",onClick:l=>{r(o,l),l.stopPropagation()},className:xe(s,{[`${s}-spaced`]:!a,[`${s}-expanded`]:a&&i,[`${s}-collapsed`]:a&&!i}),"aria-label":i?e.collapse:e.expand,"aria-expanded":i})}}function ZVe(e){return(n,r)=>{const o=n.querySelector(`.${e}-container`);let i=r;if(o){const a=getComputedStyle(o),s=parseInt(a.borderLeftWidth,10),l=parseInt(a.borderRightWidth,10);i=r-s-l}return i}}const Pf=(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 Hv(e,t){return t?`${t}-${e}`:`${e}`}const vP=(e,t)=>typeof e=="function"?e(t):e,eKe=(e,t)=>{const n=vP(e,t);return Object.prototype.toString.call(n)==="[object Object]"?"":n};function tKe(e){const t=d.useRef(e),n=XA();return[()=>t.current,r=>{t.current=r,n()}]}var nKe=function(t){var n=t.dropPosition,r=t.dropLevelOffset,o=t.indent,i={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(n){case-1:i.top=0,i.left=-r*o;break;case 1:i.bottom=0,i.left=-r*o;break;case 0:i.bottom=0,i.left=o;break}return de.createElement("div",{style:i})};function gle(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function rKe(e,t){var n=d.useState(!1),r=$e(n,2),o=r[0],i=r[1];Zn(function(){if(o)return e(),function(){t()}},[o]),Zn(function(){return i(!0),function(){i(!1)}},[])}var oKe=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],iKe=d.forwardRef(function(e,t){var n=e.className,r=e.style,o=e.motion,i=e.motionNodes,a=e.motionType,s=e.onMotionStart,l=e.onMotionEnd,c=e.active,u=e.treeNodeRequiredProps,f=At(e,oKe),h=d.useState(!0),p=$e(h,2),m=p[0],g=p[1],v=d.useContext(HD),b=v.prefixCls,y=i&&a!=="hide";Zn(function(){i&&y!==m&&g(y)},[i]);var S=function(){i&&s()},w=d.useRef(!1),E=function(){i&&!w.current&&(w.current=!0,l())};rKe(S,E);var C=function(_){y===_&&E()};return i?d.createElement(Jo,Ge({ref:t,visible:m},o,{motionAppear:a==="show",onVisibleChanged:C}),function(x,_){var P=x.className,O=x.style;return d.createElement("div",{ref:_,className:xe("".concat(b,"-treenode-motion"),P),style:O},i.map(function(I){var M=Object.assign({},(gle(I.data),I.data)),T=I.title,D=I.key,A=I.isStart,j=I.isEnd;delete M.children;var k=Wy(D,u);return d.createElement(Xb,Ge({},M,k,{title:T,active:c,data:I.data,key:D,isStart:A,isEnd:j}))}))}):d.createElement(Xb,Ge({domRef:t,className:n,style:r},f,{active:c}))});function aKe(){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 o(i,a){var s=new Map;i.forEach(function(c){s.set(c,!0)});var l=a.filter(function(c){return!s.has(c)});return l.length===1?l[0]:null}return n ").concat(t);return t}var uKe=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.data;e.selectable,e.checkable;var o=e.expandedKeys,i=e.selectedKeys,a=e.checkedKeys,s=e.loadedKeys,l=e.loadingKeys,c=e.halfCheckedKeys,u=e.keyEntities,f=e.disabled,h=e.dragging,p=e.dragOverNodeKey,m=e.dropPosition,g=e.motion,v=e.height,b=e.itemHeight,y=e.virtual,S=e.scrollWidth,w=e.focusable,E=e.activeItem,C=e.focused,x=e.tabIndex,_=e.onKeyDown,P=e.onFocus,O=e.onBlur,I=e.onActiveChange,M=e.onListChangeStart,T=e.onListChangeEnd,D=At(e,sKe),A=d.useRef(null),j=d.useRef(null);d.useImperativeHandle(t,function(){return{scrollTo:function(ve){A.current.scrollTo(ve)},getIndentWidth:function(){return j.current.offsetWidth}}});var k=d.useState(o),F=$e(k,2),V=F[0],W=F[1],K=d.useState(r),L=$e(K,2),Q=L[0],ee=L[1],re=d.useState(r),ie=$e(re,2),G=ie[0],X=ie[1],ne=d.useState([]),le=$e(ne,2),ce=le[0],oe=le[1],se=d.useState(null),fe=$e(se,2),te=fe[0],he=fe[1],pe=d.useRef(r);pe.current=r;function Oe(){var ye=pe.current;ee(ye),X(ye),oe([]),he(null),T()}Zn(function(){W(o);var ye=aKe(V,o);if(ye.key!==null)if(ye.add){var ve=Q.findIndex(function(q){var me=q.key;return me===ye.key}),be=cW(aW(Q,r,ye.key),y,v,b),Pe=Q.slice();Pe.splice(ve+1,0,lW),X(Pe),oe(be),he("show")}else{var Ne=r.findIndex(function(q){var me=q.key;return me===ye.key}),U=cW(aW(r,Q,ye.key),y,v,b),H=r.slice();H.splice(Ne+1,0,lW),X(H),oe(U),he("hide")}else Q!==r&&(ee(r),X(r))},[o,r]),d.useEffect(function(){h||Oe()},[h]);var Me=g?G:r,Se={expandedKeys:o,selectedKeys:i,loadedKeys:s,loadingKeys:l,checkedKeys:a,halfCheckedKeys:c,dragOverNodeKey:p,dropPosition:m,keyEntities:u};return d.createElement(d.Fragment,null,C&&E&&d.createElement("span",{style:sW,"aria-live":"assertive"},cKe(E)),d.createElement("div",null,d.createElement("input",{style:sW,disabled:w===!1||f,tabIndex:w!==!1?x:null,onKeyDown:_,onFocus:P,onBlur:O,value:"",onChange:lKe,"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:j,className:"".concat(n,"-indent-unit")}))),d.createElement(B$,Ge({},D,{data:Me,itemKey:uW,height:v,fullHeight:!1,virtual:y,itemHeight:b,scrollWidth:S,prefixCls:"".concat(n,"-list"),ref:A,role:"tree",onVisibleChange:function(ve){ve.every(function(be){return uW(be)!==vp})&&Oe()}}),function(ye){var ve=ye.pos,be=Object.assign({},(gle(ye.data),ye.data)),Pe=ye.title,Ne=ye.key,U=ye.isStart,H=ye.isEnd,q=rS(Ne,ve);delete be.key,delete be.children;var me=Wy(q,Se);return d.createElement(iKe,Ge({},be,me,{title:Pe,active:!!E&&Ne===E.key,pos:ve,data:ye.data,isStart:U,isEnd:H,motion:g,motionNodes:Ne===vp?ce:null,motionType:te,onMotionStart:M,onMotionEnd:Oe,treeNodeRequiredProps:Se,onMouseMove:function(){I(null)}}))}))}),dKe=10,yP=function(e){la(n,e);var t=Pa(n);function n(){var r;br(this,n);for(var o=arguments.length,i=new Array(o),a=0;a2&&arguments[2]!==void 0?arguments[2]:!1,f=r.state,h=f.dragChildrenKeys,p=f.dropPosition,m=f.dropTargetKey,g=f.dropTargetPos,v=f.dropAllowed;if(v){var b=r.props.onDrop;if(r.setState({dragOverNodeKey:null}),r.cleanDragState(),m!==null){var y=z(z({},Wy(m,r.getTreeNodeRequiredProps())),{},{active:((c=r.getActiveItem())===null||c===void 0?void 0:c.key)===m,data:La(r.state.keyEntities,m).node}),S=h.includes(m);yr(!S,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var w=UD(g),E={event:s,node:ri(y),dragNode:r.dragNodeProps?ri(r.dragNodeProps):null,dragNodesKeys:[r.dragNodeProps.eventKey].concat(h),dropToGap:p!==0,dropPosition:p+Number(w[w.length-1])};u||b==null||b(E),r.dragNodeProps=null}}}),Z(tn(r),"cleanDragState",function(){var s=r.state.draggingNodeKey;s!==null&&r.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),r.dragStartMousePosition=null,r.currentMouseOverDroppableNodeKey=null}),Z(tn(r),"triggerExpandActionExpand",function(s,l){var c=r.state,u=c.expandedKeys,f=c.flattenNodes,h=l.expanded,p=l.key,m=l.isLeaf;if(!(m||s.shiftKey||s.metaKey||s.ctrlKey)){var g=f.filter(function(b){return b.key===p})[0],v=ri(z(z({},Wy(p,r.getTreeNodeRequiredProps())),{},{data:g.data}));r.setExpandedKeys(h?_c(u,p):Cu(u,p)),r.onNodeExpand(s,v)}}),Z(tn(r),"onNodeClick",function(s,l){var c=r.props,u=c.onClick,f=c.expandAction;f==="click"&&r.triggerExpandActionExpand(s,l),u==null||u(s,l)}),Z(tn(r),"onNodeDoubleClick",function(s,l){var c=r.props,u=c.onDoubleClick,f=c.expandAction;f==="doubleClick"&&r.triggerExpandActionExpand(s,l),u==null||u(s,l)}),Z(tn(r),"onNodeSelect",function(s,l){var c=r.state.selectedKeys,u=r.state,f=u.keyEntities,h=u.fieldNames,p=r.props,m=p.onSelect,g=p.multiple,v=l.selected,b=l[h.key],y=!v;y?g?c=Cu(c,b):c=[b]:c=_c(c,b);var S=c.map(function(w){var E=La(f,w);return E?E.node:null}).filter(Boolean);r.setUncontrolledState({selectedKeys:c}),m==null||m(c,{event:"select",selected:y,node:l,selectedNodes:S,nativeEvent:s.nativeEvent})}),Z(tn(r),"onNodeCheck",function(s,l,c){var u=r.state,f=u.keyEntities,h=u.checkedKeys,p=u.halfCheckedKeys,m=r.props,g=m.checkStrictly,v=m.onCheck,b=l.key,y,S={event:"check",node:l,checked:c,nativeEvent:s.nativeEvent};if(g){var w=c?Cu(h,b):_c(h,b),E=_c(p,b);y={checked:w,halfChecked:E},S.checkedNodes=w.map(function(I){return La(f,I)}).filter(Boolean).map(function(I){return I.node}),r.setUncontrolledState({checkedKeys:w})}else{var C=il([].concat(Ze(h),[b]),!0,f),x=C.checkedKeys,_=C.halfCheckedKeys;if(!c){var P=new Set(x);P.delete(b);var O=il(Array.from(P),{checked:!1,halfCheckedKeys:_},f);x=O.checkedKeys,_=O.halfCheckedKeys}y=x,S.checkedNodes=[],S.checkedNodesPositions=[],S.halfCheckedKeys=_,x.forEach(function(I){var M=La(f,I);if(M){var T=M.node,D=M.pos;S.checkedNodes.push(T),S.checkedNodesPositions.push({node:T,pos:D})}}),r.setUncontrolledState({checkedKeys:x},!1,{halfCheckedKeys:_})}v==null||v(y,S)}),Z(tn(r),"onNodeLoad",function(s){var l,c=s.key,u=r.state.keyEntities,f=La(u,c);if(!(f!=null&&(l=f.children)!==null&&l!==void 0&&l.length)){var h=new Promise(function(p,m){r.setState(function(g){var v=g.loadedKeys,b=v===void 0?[]:v,y=g.loadingKeys,S=y===void 0?[]:y,w=r.props,E=w.loadData,C=w.onLoad;if(!E||b.includes(c)||S.includes(c))return null;var x=E(s);return x.then(function(){var _=r.state.loadedKeys,P=Cu(_,c);C==null||C(P,{event:"load",node:s}),r.setUncontrolledState({loadedKeys:P}),r.setState(function(O){return{loadingKeys:_c(O.loadingKeys,c)}}),p()}).catch(function(_){if(r.setState(function(O){return{loadingKeys:_c(O.loadingKeys,c)}}),r.loadingRetryTimes[c]=(r.loadingRetryTimes[c]||0)+1,r.loadingRetryTimes[c]>=dKe){var P=r.state.loadedKeys;yr(!1,"Retry for `loadData` many times but still failed. No more retry."),r.setUncontrolledState({loadedKeys:Cu(P,c)}),p()}m(_)}),{loadingKeys:Cu(S,c)}})});return h.catch(function(){}),h}}),Z(tn(r),"onNodeMouseEnter",function(s,l){var c=r.props.onMouseEnter;c==null||c({event:s,node:l})}),Z(tn(r),"onNodeMouseLeave",function(s,l){var c=r.props.onMouseLeave;c==null||c({event:s,node:l})}),Z(tn(r),"onNodeContextMenu",function(s,l){var c=r.props.onRightClick;c&&(s.preventDefault(),c({event:s,node:l}))}),Z(tn(r),"onFocus",function(){var s=r.props.onFocus;r.setState({focused:!0});for(var l=arguments.length,c=new Array(l),u=0;u1&&arguments[1]!==void 0?arguments[1]:!1,c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!r.destroyed){var u=!1,f=!0,h={};Object.keys(s).forEach(function(p){if(r.props.hasOwnProperty(p)){f=!1;return}u=!0,h[p]=s[p]}),u&&(!l||f)&&r.setState(z(z({},h),c))}}),Z(tn(r),"scrollTo",function(s){r.listRef.current.scrollTo(s)}),r}return Sr(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var o=this.props,i=o.activeKey,a=o.itemScrollOffset,s=a===void 0?0:a;i!==void 0&&i!==this.state.activeKey&&(this.setState({activeKey:i}),i!==null&&this.scrollTo({key:i,offset:s}))}},{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 o=this.state,i=o.focused,a=o.flattenNodes,s=o.keyEntities,l=o.draggingNodeKey,c=o.activeKey,u=o.dropLevelOffset,f=o.dropContainerKey,h=o.dropTargetKey,p=o.dropPosition,m=o.dragOverNodeKey,g=o.indent,v=this.props,b=v.prefixCls,y=v.className,S=v.style,w=v.showLine,E=v.focusable,C=v.tabIndex,x=C===void 0?0:C,_=v.selectable,P=v.showIcon,O=v.icon,I=v.switcherIcon,M=v.draggable,T=v.checkable,D=v.checkStrictly,A=v.disabled,j=v.motion,k=v.loadData,F=v.filterTreeNode,V=v.height,W=v.itemHeight,K=v.scrollWidth,L=v.virtual,Q=v.titleRender,ee=v.dropIndicatorRender,re=v.onContextMenu,ie=v.onScroll,G=v.direction,X=v.rootClassName,ne=v.rootStyle,le=Jr(this.props,{aria:!0,data:!0}),ce;M&&(Ht(M)==="object"?ce=M:typeof M=="function"?ce={nodeDraggable:M}:ce={});var oe={prefixCls:b,selectable:_,showIcon:P,icon:O,switcherIcon:I,draggable:ce,draggingNodeKey:l,checkable:T,checkStrictly:D,disabled:A,keyEntities:s,dropLevelOffset:u,dropContainerKey:f,dropTargetKey:h,dropPosition:p,dragOverNodeKey:m,indent:g,direction:G,dropIndicatorRender:ee,loadData:k,filterTreeNode:F,titleRender:Q,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(HD.Provider,{value:oe},d.createElement("div",{className:xe(b,y,X,Z(Z(Z({},"".concat(b,"-show-line"),w),"".concat(b,"-focused"),i),"".concat(b,"-active-focused"),c!==null)),style:ne},d.createElement(uKe,Ge({ref:this.listRef,prefixCls:b,style:S,data:a,disabled:A,selectable:_,checkable:!!T,motion:j,dragging:l!==null,height:V,itemHeight:W,virtual:L,focusable:E,focused:i,tabIndex:x,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:re,onScroll:ie,scrollWidth:K},this.getTreeNodeRequiredProps(),le))))}}],[{key:"getDerivedStateFromProps",value:function(o,i){var a=i.prevProps,s={prevProps:o};function l(x){return!a&&o.hasOwnProperty(x)||a&&a[x]!==o[x]}var c,u=i.fieldNames;if(l("fieldNames")&&(u=Xg(o.fieldNames),s.fieldNames=u),l("treeData")?c=o.treeData:l("children")&&(yr(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),c=lae(o.children)),c){s.treeData=c;var f=oS(c,{fieldNames:u});s.keyEntities=z(Z({},vp,vle),f.keyEntities)}var h=s.keyEntities||i.keyEntities;if(l("expandedKeys")||a&&l("autoExpandParent"))s.expandedKeys=o.autoExpandParent||!a&&o.defaultExpandParent?x6(o.expandedKeys,h):o.expandedKeys;else if(!a&&o.defaultExpandAll){var p=z({},h);delete p[vp];var m=[];Object.keys(p).forEach(function(x){var _=p[x];_.children&&_.children.length&&m.push(_.key)}),s.expandedKeys=m}else!a&&o.defaultExpandedKeys&&(s.expandedKeys=o.autoExpandParent||o.defaultExpandParent?x6(o.defaultExpandedKeys,h):o.defaultExpandedKeys);if(s.expandedKeys||delete s.expandedKeys,c||s.expandedKeys){var g=nR(c||i.treeData,s.expandedKeys||i.expandedKeys,u);s.flattenNodes=g}if(o.selectable&&(l("selectedKeys")?s.selectedKeys=oW(o.selectedKeys,o):!a&&o.defaultSelectedKeys&&(s.selectedKeys=oW(o.defaultSelectedKeys,o))),o.checkable){var v;if(l("checkedKeys")?v=hR(o.checkedKeys)||{}:!a&&o.defaultCheckedKeys?v=hR(o.defaultCheckedKeys)||{}:c&&(v=hR(o.checkedKeys)||{checkedKeys:i.checkedKeys,halfCheckedKeys:i.halfCheckedKeys}),v){var b=v,y=b.checkedKeys,S=y===void 0?[]:y,w=b.halfCheckedKeys,E=w===void 0?[]:w;if(!o.checkStrictly){var C=il(S,!0,h);S=C.checkedKeys,E=C.halfCheckedKeys}s.checkedKeys=S,s.halfCheckedKeys=E}}return l("loadedKeys")&&(s.loadedKeys=o.loadedKeys),s}}]),n}(d.Component);Z(yP,"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:nKe,allowDrop:function(){return!0},expandAction:!1});Z(yP,"TreeNode",Xb);const fKe=e=>{let{treeCls:t,treeNodeCls:n,directoryNodeSelectedBg:r,directoryNodeSelectedColor:o,motionDurationMid:i,borderRadius:a,controlItemBgHover:s}=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 ${i}`,content:'""',borderRadius:a},"&:hover:before":{background:s}},[`${t}-switcher, ${t}-checkbox, ${t}-draggable-icon`]:{zIndex:1},"&-selected":{[`${t}-switcher, ${t}-draggable-icon`]:{color:o},[`${t}-node-content-wrapper`]:{color:o,background:"transparent","&:before, &:hover:before":{background:r}}}}}},hKe=new Gn("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),pKe=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),mKe=(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:`${_e(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),gKe=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:o,titleHeight:i,indentSize:a,nodeSelectedBg:s,nodeHoverBg:l,colorTextQuaternary:c,controlItemBgActiveDisabled:u}=t;return{[n]:Object.assign(Object.assign({},Qn(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({},rc(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:hKe,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:t.borderRadius}}},[r]:{display:"flex",alignItems:"flex-start",marginBottom:o,lineHeight:_e(i),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:o},[`&-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:u},[`&: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:i,textAlign:"center",visibility:"visible",color:c},[`&${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(i).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-switcher`]:Object.assign(Object.assign({},pKe(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:i,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:i,height:i,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(i).div(2).equal(),bottom:t.calc(o).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(i).div(2).equal()).mul(.8).equal(),height:t.calc(i).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:i,paddingBlock:0,paddingInline:t.paddingXS,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},mKe(e,t)),{"&:hover":{backgroundColor:l},[`&${n}-node-selected`]:{color:t.nodeSelectedColor,backgroundColor:s},[`${n}-iconEle`]:{display:"inline-block",width:i,height:i,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(i).div(2).equal(),bottom:t.calc(o).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:`${_e(t.calc(i).div(2).equal())} !important`}})}},yle=(e,t)=>{const n=`.${e}`,r=`${n}-treenode`,o=t.calc(t.paddingXS).div(2).equal(),i=kn(t,{treeCls:n,treeNodeCls:r,treeNodePadding:o});return[gKe(e,i),fKe(i)]},ble=e=>{const{controlHeightSM:t,controlItemBgHover:n,controlItemBgActive:r}=e,o=t;return{titleHeight:o,indentSize:o,nodeHoverBg:n,nodeHoverColor:e.colorText,nodeSelectedBg:r,nodeSelectedColor:e.colorText}},vKe=e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},ble(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})},yKe=Kn("Tree",(e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:aP(`${n}-checkbox`,e)},yle(n,e),U1(e)]},vKe),dW=4;function bKe(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:o,direction:i="ltr"}=e,a=i==="ltr"?"left":"right",s=i==="ltr"?"right":"left",l={[a]:-n*o+dW,[s]:0};switch(t){case-1:l.top=-3;break;case 1:l.bottom=-3;break;default:l.bottom=-3,l[a]=o+dW;break}return de.createElement("div",{style:l,className:`${r}-drop-indicator`})}const Sle=e=>{const{prefixCls:t,switcherIcon:n,treeNodeProps:r,showLine:o,switcherLoadingIcon:i}=e,{isLeaf:a,expanded:s,loading:l}=r;if(l)return d.isValidElement(i)?i:d.createElement(Gc,{className:`${t}-switcher-loading-icon`});let c;if(o&&typeof o=="object"&&(c=o.showLeafIcon),a){if(!o)return null;if(typeof c!="boolean"&&c){const h=typeof c=="function"?c(r):c,p=`${t}-switcher-line-custom-icon`;return d.isValidElement(h)?Zo(h,{className:xe(h.props.className||"",p)}):h}return c?d.createElement(Hse,{className:`${t}-switcher-line-icon`}):d.createElement("span",{className:`${t}-switcher-leaf-line`})}const u=`${t}-switcher-icon`,f=typeof n=="function"?n(r):n;return d.isValidElement(f)?Zo(f,{className:xe(f.props.className||"",u)}):f!==void 0?f:o?s?d.createElement(sUe,{className:`${t}-switcher-line-icon`}):d.createElement(yUe,{className:`${t}-switcher-line-icon`}):d.createElement(dHe,{className:u})},Cle=de.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:o,virtual:i,tree:a}=de.useContext(Yt),{prefixCls:s,className:l,showIcon:c=!1,showLine:u,switcherIcon:f,switcherLoadingIcon:h,blockNode:p=!1,children:m,checkable:g=!1,selectable:v=!0,draggable:b,motion:y,style:S}=e,w=r("tree",s),E=r(),C=y??Object.assign(Object.assign({},Ug(E)),{motionAppear:!1}),x=Object.assign(Object.assign({},e),{checkable:g,selectable:v,showIcon:c,motion:C,blockNode:p,showLine:!!u,dropIndicatorRender:bKe}),[_,P,O]=yKe(w),[,I]=Ho(),M=I.paddingXS/2+(((n=I.Tree)===null||n===void 0?void 0:n.titleHeight)||I.controlHeightSM),T=de.useMemo(()=>{if(!b)return!1;let A={};switch(typeof b){case"function":A.nodeDraggable=b;break;case"object":A=Object.assign({},b);break}return A.icon!==!1&&(A.icon=A.icon||de.createElement(KHe,null)),A},[b]),D=A=>de.createElement(Sle,{prefixCls:w,switcherIcon:f,switcherLoadingIcon:h,treeNodeProps:A,showLine:u});return _(de.createElement(yP,Object.assign({itemHeight:M,ref:t,virtual:i},x,{style:Object.assign(Object.assign({},a==null?void 0:a.style),S),prefixCls:w,className:xe({[`${w}-icon-hide`]:!c,[`${w}-block-node`]:p,[`${w}-unselectable`]:!v,[`${w}-rtl`]:o==="rtl"},a==null?void 0:a.className,l,P,O),direction:o,checkable:g&&de.createElement("span",{className:`${w}-checkbox-inner`}),selectable:v,switcherIcon:D,draggable:T}),m))}),fW=0,pR=1,hW=2;function WD(e,t,n){const{key:r,children:o}=n;function i(a){const s=a[r],l=a[o];t(s,a)!==!1&&WD(l||[],t,n)}e.forEach(i)}function SKe(e){let{treeData:t,expandedKeys:n,startKey:r,endKey:o,fieldNames:i}=e;const a=[];let s=fW;if(r&&r===o)return[r];if(!r||!o)return[];function l(c){return c===r||c===o}return WD(t,c=>{if(s===hW)return!1;if(l(c)){if(a.push(c),s===fW)s=pR;else if(s===pR)return s=hW,!1}else s===pR&&a.push(c);return n.includes(c)},Xg(i)),a}function mR(e,t,n){const r=Ze(t),o=[];return WD(e,(i,a)=>{const s=r.indexOf(i);return s!==-1&&(o.push(a),r.splice(s,1)),!!r.length},Xg(n)),o}var pW=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 o=0,r=Object.getOwnPropertySymbols(e);o{var{defaultExpandAll:n,defaultExpandParent:r,defaultExpandedKeys:o}=e,i=pW(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const a=d.useRef(null),s=d.useRef(null),l=()=>{const{keyEntities:_}=oS(mW(i));let P;return n?P=Object.keys(_):r?P=x6(i.expandedKeys||o||[],_):P=i.expandedKeys||o||[],P},[c,u]=d.useState(i.selectedKeys||i.defaultSelectedKeys||[]),[f,h]=d.useState(()=>l());d.useEffect(()=>{"selectedKeys"in i&&u(i.selectedKeys)},[i.selectedKeys]),d.useEffect(()=>{"expandedKeys"in i&&h(i.expandedKeys)},[i.expandedKeys]);const p=(_,P)=>{var O;return"expandedKeys"in i||h(_),(O=i.onExpand)===null||O===void 0?void 0:O.call(i,_,P)},m=(_,P)=>{var O;const{multiple:I,fieldNames:M}=i,{node:T,nativeEvent:D}=P,{key:A=""}=T,j=mW(i),k=Object.assign(Object.assign({},P),{selected:!0}),F=(D==null?void 0:D.ctrlKey)||(D==null?void 0:D.metaKey),V=D==null?void 0:D.shiftKey;let W;I&&F?(W=_,a.current=A,s.current=W,k.selectedNodes=mR(j,W,M)):I&&V?(W=Array.from(new Set([].concat(Ze(s.current||[]),Ze(SKe({treeData:j,expandedKeys:f,startKey:A,endKey:a.current,fieldNames:M}))))),k.selectedNodes=mR(j,W,M)):(W=[A],a.current=A,s.current=W,k.selectedNodes=mR(j,W,M)),(O=i.onSelect)===null||O===void 0||O.call(i,W,k),"selectedKeys"in i||u(W)},{getPrefixCls:g,direction:v}=d.useContext(Yt),{prefixCls:b,className:y,showIcon:S=!0,expandAction:w="click"}=i,E=pW(i,["prefixCls","className","showIcon","expandAction"]),C=g("tree",b),x=xe(`${C}-directory`,{[`${C}-directory-rtl`]:v==="rtl"},y);return d.createElement(Cle,Object.assign({icon:CKe,ref:t,blockNode:!0},E,{showIcon:S,expandAction:w,prefixCls:C,className:x,expandedKeys:f,selectedKeys:c,onSelect:m,onExpand:p}))},xKe=d.forwardRef(wKe),VD=Cle;VD.DirectoryTree=xKe;VD.TreeNode=Xb;const gW=e=>{const{value:t,filterSearch:n,tablePrefixCls:r,locale:o,onChange:i}=e;return n?d.createElement("div",{className:`${r}-filter-dropdown-search`},d.createElement(qr,{prefix:d.createElement(H$,null),placeholder:o.filterSearchPlaceholder,onChange:i,value:t,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null},EKe=e=>{const{keyCode:t}=e;t===ut.ENTER&&e.stopPropagation()},_Ke=d.forwardRef((e,t)=>d.createElement("div",{className:e.className,onClick:n=>n.stopPropagation(),onKeyDown:EKe,ref:t},e.children));function cg(e){let t=[];return(e||[]).forEach(n=>{let{value:r,children:o}=n;t.push(r),o&&(t=[].concat(Ze(t),Ze(cg(o))))}),t}function $Ke(e){return e.some(t=>{let{children:n}=t;return n})}function wle(e,t){return typeof t=="string"||typeof t=="number"?t==null?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()):!1}function xle(e){let{filters:t,prefixCls:n,filteredKeys:r,filterMultiple:o,searchValue:i,filterSearch:a}=e;return t.map((s,l)=>{const c=String(s.value);if(s.children)return{key:c||l,label:s.text,popupClassName:`${n}-dropdown-submenu`,children:xle({filters:s.children,prefixCls:n,filteredKeys:r,filterMultiple:o,searchValue:i,filterSearch:a})};const u=o?od:qo,f={key:s.value!==void 0?c:l,label:d.createElement(d.Fragment,null,d.createElement(u,{checked:r.includes(c)}),d.createElement("span",null,s.text))};return i.trim()?typeof a=="function"?a(i,s)?f:null:wle(i,s.text)?f:null:f})}function gR(e){return e||[]}const PKe=e=>{var t,n,r,o;const{tablePrefixCls:i,prefixCls:a,column:s,dropdownPrefixCls:l,columnKey:c,filterOnClose:u,filterMultiple:f,filterMode:h="menu",filterSearch:p=!1,filterState:m,triggerFilter:g,locale:v,children:b,getPopupContainer:y,rootClassName:S}=e,{filterResetToDefaultFilteredValue:w,defaultFilteredValue:E,filterDropdownProps:C={},filterDropdownOpen:x,filterDropdownVisible:_,onFilterDropdownVisibleChange:P,onFilterDropdownOpenChange:O}=s,[I,M]=d.useState(!1),T=!!(m&&(!((t=m.filteredKeys)===null||t===void 0)&&t.length||m.forceFiltered)),D=ye=>{var ve;M(ye),(ve=C.onOpenChange)===null||ve===void 0||ve.call(C,ye),O==null||O(ye),P==null||P(ye)},A=(o=(r=(n=C.open)!==null&&n!==void 0?n:x)!==null&&r!==void 0?r:_)!==null&&o!==void 0?o:I,j=m==null?void 0:m.filteredKeys,[k,F]=tKe(gR(j)),V=ye=>{let{selectedKeys:ve}=ye;F(ve)},W=(ye,ve)=>{let{node:be,checked:Pe}=ve;V(f?{selectedKeys:ye}:{selectedKeys:Pe&&be.key?[be.key]:[]})};d.useEffect(()=>{I&&V({selectedKeys:gR(j)})},[j]);const[K,L]=d.useState([]),Q=ye=>{L(ye)},[ee,re]=d.useState(""),ie=ye=>{const{value:ve}=ye.target;re(ve)};d.useEffect(()=>{I||re("")},[I]);const G=ye=>{const ve=ye!=null&&ye.length?ye:null;if(ve===null&&(!m||!m.filteredKeys)||dl(ve,m==null?void 0:m.filteredKeys,!0))return null;g({column:s,key:c,filteredKeys:ve})},X=()=>{D(!1),G(k())},ne=function(){let{confirm:ye,closeDropdown:ve}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};ye&&G([]),ve&&D(!1),re(""),F(w?(E||[]).map(be=>String(be)):[])},le=function(){let{closeDropdown:ye}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};ye&&D(!1),G(k())},ce=(ye,ve)=>{ve.source==="trigger"&&(ye&&j!==void 0&&F(gR(j)),D(ye),!ye&&!s.filterDropdown&&u&&X())},oe=xe({[`${l}-menu-without-submenu`]:!$Ke(s.filters||[])}),se=ye=>{if(ye.target.checked){const ve=cg(s==null?void 0:s.filters).map(be=>String(be));F(ve)}else F([])},fe=ye=>{let{filters:ve}=ye;return(ve||[]).map((be,Pe)=>{const Ne=String(be.value),U={title:be.text,key:be.value!==void 0?Ne:String(Pe)};return be.children&&(U.children=fe({filters:be.children})),U})},te=ye=>{var ve;return Object.assign(Object.assign({},ye),{text:ye.title,value:ye.key,children:((ve=ye.children)===null||ve===void 0?void 0:ve.map(be=>te(be)))||[]})};let he;const{direction:pe,renderEmpty:Oe}=d.useContext(Yt);if(typeof s.filterDropdown=="function")he=s.filterDropdown({prefixCls:`${l}-custom`,setSelectedKeys:ye=>V({selectedKeys:ye}),selectedKeys:k(),confirm:le,clearFilters:ne,filters:s.filters,visible:A,close:()=>{D(!1)}});else if(s.filterDropdown)he=s.filterDropdown;else{const ye=k()||[],ve=()=>{var Pe;const Ne=(Pe=Oe==null?void 0:Oe("Table.filter"))!==null&&Pe!==void 0?Pe:d.createElement(Nc,{image:Nc.PRESENTED_IMAGE_SIMPLE,description:v.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if((s.filters||[]).length===0)return Ne;if(h==="tree")return d.createElement(d.Fragment,null,d.createElement(gW,{filterSearch:p,value:ee,onChange:ie,tablePrefixCls:i,locale:v}),d.createElement("div",{className:`${i}-filter-dropdown-tree`},f?d.createElement(od,{checked:ye.length===cg(s.filters).length,indeterminate:ye.length>0&&ye.lengthtypeof p=="function"?p(ee,te(q)):wle(ee,q.title):void 0})));const U=xle({filters:s.filters||[],filterSearch:p,prefixCls:a,filteredKeys:k(),filterMultiple:f,searchValue:ee}),H=U.every(q=>q===null);return d.createElement(d.Fragment,null,d.createElement(gW,{filterSearch:p,value:ee,onChange:ie,tablePrefixCls:i,locale:v}),H?Ne:d.createElement(vc,{selectable:!0,multiple:f,prefixCls:`${l}-menu`,className:oe,onSelect:V,onDeselect:V,selectedKeys:ye,getPopupContainer:y,openKeys:K,onOpenChange:Q,items:U}))},be=()=>w?dl((E||[]).map(Pe=>String(Pe)),ye,!0):ye.length===0;he=d.createElement(d.Fragment,null,ve(),d.createElement("div",{className:`${a}-dropdown-btns`},d.createElement(Hn,{type:"link",size:"small",disabled:be(),onClick:()=>ne()},v.filterReset),d.createElement(Hn,{type:"primary",size:"small",onClick:X},v.filterConfirm)))}s.filterDropdown&&(he=d.createElement(Boe,{selectable:void 0},he)),he=d.createElement(_Ke,{className:`${a}-dropdown`},he);const Se=yse({trigger:["click"],placement:pe==="rtl"?"bottomLeft":"bottomRight",children:(()=>{let ye;return typeof s.filterIcon=="function"?ye=s.filterIcon(T):s.filterIcon?ye=s.filterIcon:ye=d.createElement(NHe,null),d.createElement("span",{role:"button",tabIndex:-1,className:xe(`${a}-trigger`,{active:T}),onClick:ve=>{ve.stopPropagation()}},ye)})(),getPopupContainer:y},Object.assign(Object.assign({},C),{rootClassName:xe(S,C.rootClassName),open:A,onOpenChange:ce,dropdownRender:()=>typeof(C==null?void 0:C.dropdownRender)=="function"?C.dropdownRender(he):he}));return d.createElement("div",{className:`${a}-column`},d.createElement("span",{className:`${i}-column-title`},b),d.createElement(RD,Object.assign({},Se)))},O6=(e,t,n)=>{let r=[];return(e||[]).forEach((o,i)=>{var a;const s=Hv(i,n);if(o.filters||"filterDropdown"in o||"onFilter"in o)if("filteredValue"in o){let l=o.filteredValue;"filterDropdown"in o||(l=(a=l==null?void 0:l.map(String))!==null&&a!==void 0?a:l),r.push({column:o,key:Pf(o,s),filteredKeys:l,forceFiltered:o.filtered})}else r.push({column:o,key:Pf(o,s),filteredKeys:t&&o.defaultFilteredValue?o.defaultFilteredValue:void 0,forceFiltered:o.filtered});"children"in o&&(r=[].concat(Ze(r),Ze(O6(o.children,t,s))))}),r};function Ele(e,t,n,r,o,i,a,s,l){return n.map((c,u)=>{const f=Hv(u,s),{filterOnClose:h=!0,filterMultiple:p=!0,filterMode:m,filterSearch:g}=c;let v=c;if(v.filters||v.filterDropdown){const b=Pf(v,f),y=r.find(S=>{let{key:w}=S;return b===w});v=Object.assign(Object.assign({},v),{title:S=>d.createElement(PKe,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:v,columnKey:b,filterState:y,filterOnClose:h,filterMultiple:p,filterMode:m,filterSearch:g,triggerFilter:i,locale:o,getPopupContainer:a,rootClassName:l},vP(c.title,S))})}return"children"in v&&(v=Object.assign(Object.assign({},v),{children:Ele(e,t,v.children,r,o,i,a,f,l)})),v})}const vW=e=>{const t={};return e.forEach(n=>{let{key:r,filteredKeys:o,column:i}=n;const a=r,{filters:s,filterDropdown:l}=i;if(l)t[a]=o||null;else if(Array.isArray(o)){const c=cg(s);t[a]=c.filter(u=>o.includes(String(u)))}else t[a]=null}),t},M6=(e,t,n)=>t.reduce((o,i)=>{const{column:{onFilter:a,filters:s},filteredKeys:l}=i;return a&&l&&l.length?o.map(c=>Object.assign({},c)).filter(c=>l.some(u=>{const f=cg(s),h=f.findIndex(m=>String(m)===String(u)),p=h!==-1?f[h]:u;return c[n]&&(c[n]=M6(c[n],t,n)),a(p,c)})):o},e),_le=e=>e.flatMap(t=>"children"in t?[t].concat(Ze(_le(t.children||[]))):[t]),OKe=e=>{const{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:o,getPopupContainer:i,locale:a,rootClassName:s}=e;nu();const l=d.useMemo(()=>_le(r||[]),[r]),[c,u]=d.useState(()=>O6(l,!0)),f=d.useMemo(()=>{const g=O6(l,!1);if(g.length===0)return g;let v=!0;if(g.forEach(b=>{let{filteredKeys:y}=b;y!==void 0&&(v=!1)}),v){const b=(l||[]).map((y,S)=>Pf(y,Hv(S)));return c.filter(y=>{let{key:S}=y;return b.includes(S)}).map(y=>{const S=l[b.findIndex(w=>w===y.key)];return Object.assign(Object.assign({},y),{column:Object.assign(Object.assign({},y.column),S),forceFiltered:S.filtered})})}return g},[l,c]),h=d.useMemo(()=>vW(f),[f]),p=g=>{const v=f.filter(b=>{let{key:y}=b;return y!==g.key});v.push(g),u(v),o(vW(v),v)};return[g=>Ele(t,n,g,f,a,p,i,void 0,s),f,h]},MKe=(e,t,n)=>{const r=d.useRef({});function o(i){var a;if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){let l=function(c){c.forEach((u,f)=>{const h=n(u,f);s.set(h,u),u&&typeof u=="object"&&t in u&&l(u[t]||[])})};const s=new Map;l(e),r.current={data:e,childrenColumnName:t,kvMap:s,getRowKey:n}}return(a=r.current.kvMap)===null||a===void 0?void 0:a.get(i)}return[o]};var TKe=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 o=0,r=Object.getOwnPropertySymbols(e);o{const i=e[o];typeof i!="function"&&(n[o]=i)}),n}function IKe(e,t,n){const r=n&&typeof n=="object"?n:{},{total:o=0}=r,i=TKe(r,["total"]),[a,s]=d.useState(()=>({current:"defaultCurrent"in i?i.defaultCurrent:1,pageSize:"defaultPageSize"in i?i.defaultPageSize:$le})),l=yse(a,i,{total:o>0?o:e}),c=Math.ceil((o||e)/l.pageSize);l.current>c&&(l.current=c||1);const u=(h,p)=>{s({current:h??1,pageSize:p||l.pageSize})},f=(h,p)=>{var m;n&&((m=n.onChange)===null||m===void 0||m.call(n,h,p)),u(h,p),t(h,p||(l==null?void 0:l.pageSize))};return n===!1?[{},()=>{}]:[Object.assign(Object.assign({},l),{onChange:f}),u]}const cx="ascend",vR="descend",dE=e=>typeof e.sorter=="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:!1,yW=e=>typeof e=="function"?e:e&&typeof e=="object"&&e.compare?e.compare:!1,kKe=(e,t)=>t?e[e.indexOf(t)+1]:e[0],T6=(e,t,n)=>{let r=[];const o=(i,a)=>{r.push({column:i,key:Pf(i,a),multiplePriority:dE(i),sortOrder:i.sortOrder})};return(e||[]).forEach((i,a)=>{const s=Hv(a,n);i.children?("sortOrder"in i&&o(i,s),r=[].concat(Ze(r),Ze(T6(i.children,t,s)))):i.sorter&&("sortOrder"in i?o(i,s):t&&i.defaultSortOrder&&r.push({column:i,key:Pf(i,s),multiplePriority:dE(i),sortOrder:i.defaultSortOrder}))}),r},Ple=(e,t,n,r,o,i,a,s)=>(t||[]).map((c,u)=>{const f=Hv(u,s);let h=c;if(h.sorter){const p=h.sortDirections||o,m=h.showSorterTooltip===void 0?a:h.showSorterTooltip,g=Pf(h,f),v=n.find(P=>{let{key:O}=P;return O===g}),b=v?v.sortOrder:null,y=kKe(p,b);let S;if(c.sortIcon)S=c.sortIcon({sortOrder:b});else{const P=p.includes(cx)&&d.createElement(vHe,{className:xe(`${e}-column-sorter-up`,{active:b===cx})}),O=p.includes(vR)&&d.createElement(pHe,{className:xe(`${e}-column-sorter-down`,{active:b===vR})});S=d.createElement("span",{className:xe(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(P&&O)})},d.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},P,O))}const{cancelSort:w,triggerAsc:E,triggerDesc:C}=i||{};let x=w;y===vR?x=C:y===cx&&(x=E);const _=typeof m=="object"?Object.assign({title:x},m):{title:x};h=Object.assign(Object.assign({},h),{className:xe(h.className,{[`${e}-column-sort`]:b}),title:P=>{const O=`${e}-column-sorters`,I=d.createElement("span",{className:`${e}-column-title`},vP(c.title,P)),M=d.createElement("div",{className:O},I,S);return m?typeof m!="boolean"&&(m==null?void 0:m.target)==="sorter-icon"?d.createElement("div",{className:`${O} ${e}-column-sorters-tooltip-target-sorter`},I,d.createElement(xa,Object.assign({},_),S)):d.createElement(xa,Object.assign({},_),M):M},onHeaderCell:P=>{var O;const I=((O=c.onHeaderCell)===null||O===void 0?void 0:O.call(c,P))||{},M=I.onClick,T=I.onKeyDown;I.onClick=j=>{r({column:c,key:g,sortOrder:y,multiplePriority:dE(c)}),M==null||M(j)},I.onKeyDown=j=>{j.keyCode===ut.ENTER&&(r({column:c,key:g,sortOrder:y,multiplePriority:dE(c)}),T==null||T(j))};const D=eKe(c.title,{}),A=D==null?void 0:D.toString();return b?I["aria-sort"]=b==="ascend"?"ascending":"descending":I["aria-label"]=A||"",I.className=xe(I.className,`${e}-column-has-sorters`),I.tabIndex=0,c.ellipsis&&(I.title=(D??"").toString()),I}})}return"children"in h&&(h=Object.assign(Object.assign({},h),{children:Ple(e,h.children,n,r,o,i,a,f)})),h}),bW=e=>{const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},SW=e=>{const t=e.filter(n=>{let{sortOrder:r}=n;return r}).map(bW);if(t.length===0&&e.length){const n=e.length-1;return Object.assign(Object.assign({},bW(e[n])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return t.length<=1?t[0]||{}:t},R6=(e,t,n)=>{const r=t.slice().sort((a,s)=>s.multiplePriority-a.multiplePriority),o=e.slice(),i=r.filter(a=>{let{column:{sorter:s},sortOrder:l}=a;return yW(s)&&l});return i.length?o.sort((a,s)=>{for(let l=0;l{const s=a[n];return s?Object.assign(Object.assign({},a),{[n]:R6(s,t,n)}):a}):o},NKe=e=>{const{prefixCls:t,mergedColumns:n,sortDirections:r,tableLocale:o,showSorterTooltip:i,onSorterChange:a}=e,[s,l]=d.useState(T6(n,!0)),c=(g,v)=>{const b=[];return g.forEach((y,S)=>{const w=Hv(S,v);if(b.push(Pf(y,w)),Array.isArray(y.children)){const E=c(y.children,w);b.push.apply(b,Ze(E))}}),b},u=d.useMemo(()=>{let g=!0;const v=T6(n,!1);if(!v.length){const w=c(n);return s.filter(E=>{let{key:C}=E;return w.includes(C)})}const b=[];function y(w){g?b.push(w):b.push(Object.assign(Object.assign({},w),{sortOrder:null}))}let S=null;return v.forEach(w=>{S===null?(y(w),w.sortOrder&&(w.multiplePriority===!1?g=!1:S=!0)):(S&&w.multiplePriority!==!1||(g=!1),y(w))}),b},[n,s]),f=d.useMemo(()=>{var g,v;const b=u.map(y=>{let{column:S,sortOrder:w}=y;return{column:S,order:w}});return{sortColumns:b,sortColumn:(g=b[0])===null||g===void 0?void 0:g.column,sortOrder:(v=b[0])===null||v===void 0?void 0:v.order}},[u]),h=g=>{let v;g.multiplePriority===!1||!u.length||u[0].multiplePriority===!1?v=[g]:v=[].concat(Ze(u.filter(b=>{let{key:y}=b;return y!==g.key})),[g]),l(v),a(SW(v),v)};return[g=>Ple(t,g,u,h,r,o,i),u,f,()=>SW(u)]},Ole=(e,t)=>e.map(r=>{const o=Object.assign({},r);return o.title=vP(r.title,t),"children"in o&&(o.children=Ole(o.children,t)),o}),AKe=e=>[d.useCallback(n=>Ole(n,e),[e])],DKe=dle((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),jKe=hle((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),FKe=e=>{const{componentCls:t,lineWidth:n,lineType:r,tableBorderColor:o,tableHeaderBg:i,tablePaddingVertical:a,tablePaddingHorizontal:s,calc:l}=e,c=`${_e(n)} ${r} ${o}`,u=(f,h,p)=>({[`&${t}-${f}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${_e(l(h).mul(-1).equal())} ${_e(l(l(p).add(n)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${t}-title`]:{border:c,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:c,borderTop:c,[` > ${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:c},"> thead":{"> tr:not(:last-child) > th":{borderBottom:c},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:c}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${_e(l(a).mul(-1).equal())} ${_e(l(l(s).add(n)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:n,bottom:0,borderInlineEnd:c,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[` > tr${t}-expanded-row, > tr${t}-placeholder `]:{"> th, > td":{borderInlineEnd:0}}}}}},u("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),u("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:c,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${_e(n)} 0 ${_e(n)} ${i}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:c}}}},LKe=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},wa),{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"}})}}},BKe=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}}}}},zKe=e=>{const{componentCls:t,antCls:n,motionDurationSlow:r,lineWidth:o,paddingXS:i,lineType:a,tableBorderColor:s,tableExpandIconBg:l,tableExpandColumnWidth:c,borderRadius:u,tablePaddingVertical:f,tablePaddingHorizontal:h,tableExpandedRowBg:p,paddingXXS:m,expandIconMarginTop:g,expandIconSize:v,expandIconHalfInner:b,expandIconScale:y,calc:S}=e,w=`${_e(o)} ${a} ${s}`,E=S(m).sub(o).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:c},[`${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({},SOe(e)),{position:"relative",float:"left",width:v,height:v,color:"inherit",lineHeight:_e(v),background:l,border:w,borderRadius:u,transform:`scale(${y})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:b,insetInlineEnd:E,insetInlineStart:E,height:o},"&::after":{top:E,bottom:E,insetInlineStart:b,width:o,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:g,marginInlineEnd:i},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:p}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${_e(S(f).mul(-1).equal())} ${_e(S(h).mul(-1).equal())}`,padding:`${_e(f)} ${_e(h)}`}}}},HKe=e=>{const{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:o,tableFilterDropdownSearchWidth:i,paddingXXS:a,paddingXS:s,colorText:l,lineWidth:c,lineType:u,tableBorderColor:f,headerIconColor:h,fontSizeSM:p,tablePaddingHorizontal:m,borderRadius:g,motionDurationSlow:v,colorTextDescription:b,colorPrimary:y,tableHeaderFilterActiveBg:S,colorTextDisabled:w,tableFilterDropdownBg:E,tableFilterDropdownHeight:C,controlItemBgHover:x,controlItemBgActive:_,boxShadowSecondary:P,filterDropdownMenuBg:O,calc:I}=e,M=`${n}-dropdown`,T=`${t}-filter-dropdown`,D=`${n}-tree`,A=`${_e(c)} ${u} ${f}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:I(a).mul(-1).equal(),marginInline:`${_e(a)} ${_e(I(m).div(2).mul(-1).equal())}`,padding:`0 ${_e(a)}`,color:h,fontSize:p,borderRadius:g,cursor:"pointer",transition:`all ${v}`,"&:hover":{color:b,background:S},"&.active":{color:y}}}},{[`${n}-dropdown`]:{[T]:Object.assign(Object.assign({},Qn(e)),{minWidth:o,backgroundColor:E,borderRadius:g,boxShadow:P,overflow:"hidden",[`${M}-menu`]:{maxHeight:C,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:O,"&:empty::after":{display:"block",padding:`${_e(s)} 0`,color:w,fontSize:p,textAlign:"center",content:'"Not Found"'}},[`${T}-tree`]:{paddingBlock:`${_e(s)} 0`,paddingInline:s,[D]:{padding:0},[`${D}-treenode ${D}-node-content-wrapper:hover`]:{backgroundColor:x},[`${D}-treenode-checkbox-checked ${D}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:_}}},[`${T}-search`]:{padding:s,borderBottom:A,"&-input":{input:{minWidth:i},[r]:{color:w}}},[`${T}-checkall`]:{width:"100%",marginBottom:a,marginInlineStart:a},[`${T}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${_e(I(s).sub(c).equal())} ${_e(s)}`,overflow:"hidden",borderTop:A}})}},{[`${n}-dropdown ${T}, ${T}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:s,color:l},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},UKe=e=>{const{componentCls:t,lineWidth:n,colorSplit:r,motionDurationSlow:o,zIndexTableFixed:i,tableBg:a,zIndexTableSticky:s,calc:l}=e,c=r;return{[`${t}-wrapper`]:{[` ${t}-cell-fix-left, ${t}-cell-fix-right `]:{position:"sticky !important",zIndex:i,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:l(n).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${o}`,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:l(n).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:l(s).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${o}`,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 ${c}`},[` ${t}-cell-fix-left-first::after, ${t}-cell-fix-left-last::after `]:{boxShadow:`inset 10px 0 8px -8px ${c}`},[`${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 ${c}`},[` ${t}-cell-fix-right-first::after, ${t}-cell-fix-right-last::after `]:{boxShadow:`inset -10px 0 8px -8px ${c}`}},[`${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"}}}}},WKe=e=>{const{componentCls:t,antCls:n,margin:r}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${_e(r)} 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},VKe=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${_e(n)} ${_e(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 ${_e(n)} ${_e(n)}`}}}}},KKe=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"}}}}},qKe=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:o,padding:i,paddingXS:a,headerIconColor:s,headerIconHoverColor:l,tableSelectionColumnWidth:c,tableSelectedRowBg:u,tableSelectedRowHoverBg:f,tableRowHoverBg:h,tablePaddingHorizontal:p,calc:m}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:c,[`&${t}-selection-col-with-dropdown`]:{width:m(c).add(o).add(m(i).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:m(c).add(m(a).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:m(c).add(o).add(m(i).div(4)).add(m(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:m(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:_e(m(p).div(4).equal()),[r]:{color:s,fontSize:o,verticalAlign:"baseline","&:hover":{color:l}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:u,"&-row-hover":{background:f}}},[`> ${t}-cell-row-hover`]:{background:h}}}}}},GKe=e=>{const{componentCls:t,tableExpandColumnWidth:n,calc:r}=e,o=(i,a,s,l)=>({[`${t}${t}-${i}`]:{fontSize:l,[` ${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:`${_e(a)} ${_e(s)}`},[`${t}-filter-trigger`]:{marginInlineEnd:_e(r(s).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${_e(r(a).mul(-1).equal())} ${_e(r(s).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:_e(r(a).mul(-1).equal()),marginInline:`${_e(r(n).sub(s).equal())} ${_e(r(s).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:_e(r(s).div(4).equal())}}});return{[`${t}-wrapper`]:Object.assign(Object.assign({},o("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),o("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},YKe=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:r,headerIconColor:o,headerIconHoverColor:i}=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:o,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:i}}}},XKe=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:o,tableScrollThumbSize:i,tableScrollBg:a,zIndexTableSticky:s,stickyScrollBarBorderRadius:l,lineWidth:c,lineType:u,tableBorderColor:f}=e,h=`${_e(c)} ${u} ${f}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:s,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${_e(i)} !important`,zIndex:s,display:"flex",alignItems:"center",background:a,borderTop:h,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:i,backgroundColor:r,borderRadius:l,transition:`all ${e.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:o}}}}}}},CW=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:r,calc:o}=e,i=`${_e(n)} ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:i}}},[`div${t}-summary`]:{boxShadow:`0 ${_e(o(n).mul(-1).equal())} 0 ${r}`}}}},QKe=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:o,tableBorderColor:i,calc:a}=e,s=`${_e(r)} ${o} ${i}`,l=`${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:s,transition:`background ${n}`},[`${t}-expanded-row`]:{[`${l}${l}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${_e(r)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:s,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:s,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:a(r).mul(-1).equal(),borderInlineStart:s}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:s,borderBottom:s}}}}}},JKe=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:o,tableExpandColumnWidth:i,lineWidth:a,lineType:s,tableBorderColor:l,tableFontSize:c,tableBg:u,tableRadius:f,tableHeaderTextColor:h,motionDurationMid:p,tableHeaderBg:m,tableHeaderCellSplitColor:g,tableFooterTextColor:v,tableFooterBg:b,calc:y}=e,S=`${_e(a)} ${s} ${l}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},nc()),{[t]:Object.assign(Object.assign({},Qn(e)),{fontSize:c,background:u,borderRadius:`${_e(f)} ${_e(f)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${_e(f)} ${_e(f)} 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:`${_e(r)} ${_e(o)}`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${_e(r)} ${_e(o)}`},[`${t}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:h,fontWeight:n,textAlign:"start",background:m,borderBottom:S,transition:`background ${p} 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:g,transform:"translateY(-50%)",transition:`background-color ${p}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${p}, border-color ${p}`,borderBottom:S,[` > ${t}-wrapper:only-child, > ${t}-expanded-row-fixed > ${t}-wrapper:only-child `]:{[t]:{marginBlock:_e(y(r).mul(-1).equal()),marginInline:`${_e(y(i).sub(o).equal())} ${_e(y(o).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:h,fontWeight:n,textAlign:"start",background:m,borderBottom:S,transition:`background ${p} ease`}}},[`${t}-footer`]:{padding:`${_e(r)} ${_e(o)}`,color:v,background:b}})}},ZKe=e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:o,colorFillContent:i,controlItemBgActive:a,controlItemBgActiveHover:s,padding:l,paddingSM:c,paddingXS:u,colorBorderSecondary:f,borderRadiusLG:h,controlHeight:p,colorTextPlaceholder:m,fontSize:g,fontSizeSM:v,lineHeight:b,lineWidth:y,colorIcon:S,colorIconHover:w,opacityLoading:E,controlInteractiveSize:C}=e,x=new Un(o).onBackground(n).toHexString(),_=new Un(i).onBackground(n).toHexString(),P=new Un(t).onBackground(n).toHexString(),O=new Un(S),I=new Un(w),M=C/2-y,T=M*2+y*3;return{headerBg:P,headerColor:r,headerSortActiveBg:x,headerSortHoverBg:_,bodySortBg:P,rowHoverBg:P,rowSelectedBg:a,rowSelectedHoverBg:s,rowExpandedBg:t,cellPaddingBlock:l,cellPaddingInline:l,cellPaddingBlockMD:c,cellPaddingInlineMD:u,cellPaddingBlockSM:u,cellPaddingInlineSM:u,borderColor:f,headerBorderRadius:h,footerBg:P,footerColor:r,cellFontSize:g,cellFontSizeMD:g,cellFontSizeSM:g,headerSplitColor:f,fixedHeaderSortActiveBg:x,headerFilterHoverBg:i,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:p,stickyScrollBarBg:m,stickyScrollBarBorderRadius:100,expandIconMarginTop:(g*b-y*3)/2-Math.ceil((v*1.4-y*3)/2),headerIconColor:O.clone().setA(O.a*E).toRgbString(),headerIconHoverColor:I.clone().setA(I.a*E).toRgbString(),expandIconHalfInner:M,expandIconSize:T,expandIconScale:C/T}},wW=2,eqe=Kn("Table",e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:o,headerBg:i,headerColor:a,headerSortActiveBg:s,headerSortHoverBg:l,bodySortBg:c,rowHoverBg:u,rowSelectedBg:f,rowSelectedHoverBg:h,rowExpandedBg:p,cellPaddingBlock:m,cellPaddingInline:g,cellPaddingBlockMD:v,cellPaddingInlineMD:b,cellPaddingBlockSM:y,cellPaddingInlineSM:S,borderColor:w,footerBg:E,footerColor:C,headerBorderRadius:x,cellFontSize:_,cellFontSizeMD:P,cellFontSizeSM:O,headerSplitColor:I,fixedHeaderSortActiveBg:M,headerFilterHoverBg:T,filterDropdownBg:D,expandIconBg:A,selectionColumnWidth:j,stickyScrollBarBg:k,calc:F}=e,V=kn(e,{tableFontSize:_,tableBg:r,tableRadius:x,tablePaddingVertical:m,tablePaddingHorizontal:g,tablePaddingVerticalMiddle:v,tablePaddingHorizontalMiddle:b,tablePaddingVerticalSmall:y,tablePaddingHorizontalSmall:S,tableBorderColor:w,tableHeaderTextColor:a,tableHeaderBg:i,tableFooterTextColor:C,tableFooterBg:E,tableHeaderCellSplitColor:I,tableHeaderSortBg:s,tableHeaderSortHoverBg:l,tableBodySortBg:c,tableFixedHeaderSortActiveBg:M,tableHeaderFilterActiveBg:T,tableFilterDropdownBg:D,tableRowHoverBg:u,tableSelectedRowBg:f,tableSelectedRowHoverBg:h,zIndexTableFixed:wW,zIndexTableSticky:F(wW).add(1).equal({unit:!1}),tableFontSizeMiddle:P,tableFontSizeSmall:O,tableSelectionColumnWidth:j,tableExpandIconBg:A,tableExpandColumnWidth:F(o).add(F(e.padding).mul(2)).equal(),tableExpandedRowBg:p,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:k,tableScrollThumbBgHover:t,tableScrollBg:n});return[JKe(V),WKe(V),CW(V),YKe(V),HKe(V),FKe(V),VKe(V),zKe(V),CW(V),BKe(V),qKe(V),UKe(V),XKe(V),LKe(V),GKe(V),KKe(V),QKe(V)]},ZKe,{unitless:{expandIconScale:!0}}),tqe=[],nqe=(e,t)=>{var n,r;const{prefixCls:o,className:i,rootClassName:a,style:s,size:l,bordered:c,dropdownPrefixCls:u,dataSource:f,pagination:h,rowSelection:p,rowKey:m="key",rowClassName:g,columns:v,children:b,childrenColumnName:y,onChange:S,getPopupContainer:w,loading:E,expandIcon:C,expandable:x,expandedRowRender:_,expandIconColumnIndex:P,indentSize:O,scroll:I,sortDirections:M,locale:T,showSorterTooltip:D={target:"full-header"},virtual:A}=e;nu();const j=d.useMemo(()=>v||BD(b),[v,b]),k=d.useMemo(()=>j.some(ft=>ft.responsive),[j]),F=W$(k),V=d.useMemo(()=>{const ft=new Set(Object.keys(F).filter(dt=>F[dt]));return j.filter(dt=>!dt.responsive||dt.responsive.some(Rt=>ft.has(Rt)))},[j,F]),W=Yn(e,["className","style","columns"]),{locale:K=Os,direction:L,table:Q,renderEmpty:ee,getPrefixCls:re,getPopupContainer:ie}=d.useContext(Yt),G=Eo(l),X=Object.assign(Object.assign({},K.Table),T),ne=f||tqe,le=re("table",o),ce=re("dropdown",u),[,oe]=Ho(),se=Mr(le),[fe,te,he]=eqe(le,se),pe=Object.assign(Object.assign({childrenColumnName:y,expandIconColumnIndex:P},x),{expandIcon:(n=x==null?void 0:x.expandIcon)!==null&&n!==void 0?n:(r=Q==null?void 0:Q.expandable)===null||r===void 0?void 0:r.expandIcon}),{childrenColumnName:Oe="children"}=pe,Me=d.useMemo(()=>ne.some(ft=>ft==null?void 0:ft[Oe])?"nest":_||x!=null&&x.expandedRowRender?"row":null,[ne]),Se={body:d.useRef(null)},ye=ZVe(le),ve=d.useRef(null),be=d.useRef(null);QVe(t,()=>Object.assign(Object.assign({},be.current),{nativeElement:ve.current}));const Pe=d.useMemo(()=>typeof m=="function"?m:ft=>ft==null?void 0:ft[m],[m]),[Ne]=MKe(ne,Oe,Pe),U={},H=function(ft,dt){let Rt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Ct,Wt,at,$t;const Bt=Object.assign(Object.assign({},U),ft);Rt&&((Ct=U.resetPagination)===null||Ct===void 0||Ct.call(U),!((Wt=Bt.pagination)===null||Wt===void 0)&&Wt.current&&(Bt.pagination.current=1),h&&((at=h.onChange)===null||at===void 0||at.call(h,1,($t=Bt.pagination)===null||$t===void 0?void 0:$t.pageSize))),I&&I.scrollToFirstRowOnChange!==!1&&Se.body.current&&BMe(0,{getContainer:()=>Se.body.current}),S==null||S(Bt.pagination,Bt.filters,Bt.sorter,{currentDataSource:M6(R6(ne,Bt.sorterStates,Oe),Bt.filterStates,Oe),action:dt})},q=(ft,dt)=>{H({sorter:ft,sorterStates:dt},"sort",!1)},[me,Ce,ue,Le]=NKe({prefixCls:le,mergedColumns:V,onSorterChange:q,sortDirections:M||["ascend","descend"],tableLocale:X,showSorterTooltip:D}),He=d.useMemo(()=>R6(ne,Ce,Oe),[ne,Ce]);U.sorter=Le(),U.sorterStates=Ce;const ge=(ft,dt)=>{H({filters:ft,filterStates:dt},"filter",!0)},[De,qe,Fe]=OKe({prefixCls:le,locale:X,dropdownPrefixCls:ce,mergedColumns:V,onFilterChange:ge,getPopupContainer:w||ie,rootClassName:xe(a,se)}),Ke=M6(He,qe,Oe);U.filters=Fe,U.filterStates=qe;const Ue=d.useMemo(()=>{const ft={};return Object.keys(Fe).forEach(dt=>{Fe[dt]!==null&&(ft[dt]=Fe[dt])}),Object.assign(Object.assign({},ue),{filters:ft})},[ue,Fe]),[Ve]=AKe(Ue),Tt=(ft,dt)=>{H({pagination:Object.assign(Object.assign({},U.pagination),{current:ft,pageSize:dt})},"paginate")},[et,st]=IKe(Ke.length,Tt,h);U.pagination=h===!1?{}:RKe(et,h),U.resetPagination=st;const yt=d.useMemo(()=>{if(h===!1||!et.pageSize)return Ke;const{current:ft=1,total:dt,pageSize:Rt=$le}=et;return Ke.lengthRt?Ke.slice((ft-1)*Rt,ft*Rt):Ke:Ke.slice((ft-1)*Rt,ft*Rt)},[!!h,Ke,et==null?void 0:et.current,et==null?void 0:et.pageSize,et==null?void 0:et.total]),[gt,Lt]=YVe({prefixCls:le,data:Ke,pageData:yt,getRowKey:Pe,getRecordByKey:Ne,expandType:Me,childrenColumnName:Oe,locale:X,getPopupContainer:w||ie},p),St=(ft,dt,Rt)=>{let Ct;return typeof g=="function"?Ct=xe(g(ft,dt,Rt)):Ct=xe(g),xe({[`${le}-row-selected`]:Lt.has(Pe(ft,dt))},Ct)};pe.__PARENT_RENDER_ICON__=pe.expandIcon,pe.expandIcon=pe.expandIcon||C||JVe(X),Me==="nest"&&pe.expandIconColumnIndex===void 0?pe.expandIconColumnIndex=p?1:0:pe.expandIconColumnIndex>0&&p&&(pe.expandIconColumnIndex-=1),typeof pe.indentSize!="number"&&(pe.indentSize=typeof O=="number"?O:15);const wt=d.useCallback(ft=>Ve(gt(De(me(ft)))),[me,De,gt]);let Nt,Be;if(h!==!1&&(et!=null&&et.total)){let ft;et.size?ft=et.size:ft=G==="small"||G==="middle"?"small":void 0;const dt=Wt=>d.createElement(Y9e,Object.assign({},et,{className:xe(`${le}-pagination ${le}-pagination-${Wt}`,et.className),size:ft})),Rt=L==="rtl"?"left":"right",{position:Ct}=et;if(Ct!==null&&Array.isArray(Ct)){const Wt=Ct.find(Bt=>Bt.includes("top")),at=Ct.find(Bt=>Bt.includes("bottom")),$t=Ct.every(Bt=>`${Bt}`=="none");!Wt&&!at&&!$t&&(Be=dt(Rt)),Wt&&(Nt=dt(Wt.toLowerCase().replace("top",""))),at&&(Be=dt(at.toLowerCase().replace("bottom","")))}else Be=dt(Rt)}let We;typeof E=="boolean"?We={spinning:E}:typeof E=="object"&&(We=Object.assign({spinning:!0},E));const je=xe(he,se,`${le}-wrapper`,Q==null?void 0:Q.className,{[`${le}-wrapper-rtl`]:L==="rtl"},i,a,te),Xe=Object.assign(Object.assign({},Q==null?void 0:Q.style),s),pt=typeof(T==null?void 0:T.emptyText)<"u"?T.emptyText:(ee==null?void 0:ee("Table"))||d.createElement(X1,{componentName:"Table"}),vt=A?jKe:DKe,Mt={},Et=d.useMemo(()=>{const{fontSize:ft,lineHeight:dt,lineWidth:Rt,padding:Ct,paddingXS:Wt,paddingSM:at}=oe,$t=Math.floor(ft*dt);switch(G){case"middle":return at*2+$t+Rt;case"small":return Wt*2+$t+Rt;default:return Ct*2+$t+Rt}},[oe,G]);return A&&(Mt.listItemHeight=Et),fe(d.createElement("div",{ref:ve,className:je,style:Xe},d.createElement(iu,Object.assign({spinning:!1},We),Nt,d.createElement(vt,Object.assign({},Mt,W,{ref:be,columns:V,direction:L,expandable:pe,prefixCls:le,className:xe({[`${le}-middle`]:G==="middle",[`${le}-small`]:G==="small",[`${le}-bordered`]:c,[`${le}-empty`]:ne.length===0},he,se,te),data:yt,rowKey:Pe,rowClassName:St,emptyText:pt,internalHooks:dS,internalRefs:Se,transformColumns:wt,getContainerWidth:ye})),Be)))},rqe=d.forwardRef(nqe),oqe=(e,t)=>{const n=d.useRef(0);return n.current+=1,d.createElement(rqe,Object.assign({},e,{ref:t,_renderTimes:n.current}))},au=d.forwardRef(oqe);au.SELECTION_COLUMN=Nd;au.EXPAND_COLUMN=Ou;au.SELECTION_ALL=E6;au.SELECTION_INVERT=_6;au.SELECTION_NONE=$6;au.Column=LVe;au.ColumnGroup=BVe;au.Summary=ele;const iqe=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o,calc:i}=e,a=i(r).sub(n).equal(),s=i(t).sub(n).equal();return{[o]:Object.assign(Object.assign({},Qn(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:a,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${_e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${o}-close-icon`]:{marginInlineStart:s,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${o}-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(${o}-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}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},KD=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,o=e.fontSizeSM;return kn(e,{tagFontSize:o,tagLineHeight:_e(r(e.lineHeightSM).mul(o).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},qD=e=>({defaultBg:new Un(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),Mle=Kn("Tag",e=>{const t=KD(e);return iqe(t)},qD);var aqe=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 o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,style:r,className:o,checked:i,onChange:a,onClick:s}=e,l=aqe(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:c,tag:u}=d.useContext(Yt),f=b=>{a==null||a(!i),s==null||s(b)},h=c("tag",n),[p,m,g]=Mle(h),v=xe(h,`${h}-checkable`,{[`${h}-checkable-checked`]:i},u==null?void 0:u.className,o,m,g);return p(d.createElement("span",Object.assign({},l,{ref:t,style:Object.assign(Object.assign({},r),u==null?void 0:u.style),className:v,onClick:f})))}),lqe=e=>y$(e,(t,n)=>{let{textColor:r,lightBorderColor:o,lightColor:i,darkColor:a}=n;return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:r,background:i,borderColor:o,"&-inverse":{color:e.colorTextLightSolid,background:a,borderColor:a},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}}),cqe=$v(["Tag","preset"],e=>{const t=KD(e);return lqe(t)},qD);function uqe(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const JC=(e,t,n)=>{const r=uqe(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"}}}},dqe=$v(["Tag","status"],e=>{const t=KD(e);return[JC(t,"success","Success"),JC(t,"processing","Info"),JC(t,"error","Error"),JC(t,"warning","Warning")]},qD);var fqe=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 o=0,r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,className:r,rootClassName:o,style:i,children:a,icon:s,color:l,onClose:c,bordered:u=!0,visible:f}=e,h=fqe(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:p,direction:m,tag:g}=d.useContext(Yt),[v,b]=d.useState(!0),y=Yn(h,["closeIcon","closable"]);d.useEffect(()=>{f!==void 0&&b(f)},[f]);const S=q$(l),w=m8e(l),E=S||w,C=Object.assign(Object.assign({backgroundColor:l&&!E?l:void 0},g==null?void 0:g.style),i),x=p("tag",n),[_,P,O]=Mle(x),I=xe(x,g==null?void 0:g.className,{[`${x}-${l}`]:E,[`${x}-has-color`]:l&&!E,[`${x}-hidden`]:!v,[`${x}-rtl`]:m==="rtl",[`${x}-borderless`]:!u},r,o,P,O),M=F=>{F.stopPropagation(),c==null||c(F),!F.defaultPrevented&&b(!1)},[,T]=LA(Vg(e),Vg(g),{closable:!1,closeIconRender:F=>{const V=d.createElement("span",{className:`${x}-close-icon`,onClick:M},F);return CA(F,V,W=>({onClick:K=>{var L;(L=W==null?void 0:W.onClick)===null||L===void 0||L.call(W,K),M(K)},className:xe(W==null?void 0:W.className,`${x}-close-icon`)}))}}),D=typeof h.onClick=="function"||a&&a.type==="a",A=s||null,j=A?d.createElement(d.Fragment,null,A,a&&d.createElement("span",null,a)):a,k=d.createElement("span",Object.assign({},y,{ref:t,className:I,style:C}),j,T,S&&d.createElement(cqe,{key:"preset",prefixCls:x}),w&&d.createElement(dqe,{key:"status",prefixCls:x}));return _(D?d.createElement(H1,{component:"Tag"},k):k)}),Uu=hqe;Uu.CheckableTag=sqe;const pqe=e=>{const t=e!=null&&e.algorithm?up(e.algorithm):up(L1),n=Object.assign(Object.assign({},Hg),e==null?void 0:e.token);return uA(n,{override:e==null?void 0:e.token},t,bA)};function mqe(e){const{sizeUnit:t,sizeStep:n}=e,r=n-2;return{sizeXXL:t*(r+10),sizeXL:t*(r+6),sizeLG:t*(r+2),sizeMD:t*(r+2),sizeMS:t*(r+1),size:t*r,sizeSM:t*r,sizeXS:t*(r-1),sizeXXS:t*(r-1)}}const gqe=(e,t)=>{const n=t??L1(e),r=n.fontSizeSM,o=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),mqe(t??e)),Gte(r)),{controlHeight:o}),qte(Object.assign(Object.assign({},n),{controlHeight:o})))},Ls=(e,t)=>new Un(e).setA(t).toRgbString(),vm=(e,t)=>new Un(e).lighten(t).toHexString(),vqe=e=>{const t=xf(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},yqe=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:Ls(r,.85),colorTextSecondary:Ls(r,.65),colorTextTertiary:Ls(r,.45),colorTextQuaternary:Ls(r,.25),colorFill:Ls(r,.18),colorFillSecondary:Ls(r,.12),colorFillTertiary:Ls(r,.08),colorFillQuaternary:Ls(r,.04),colorBgSolid:Ls(r,.95),colorBgSolidHover:Ls(r,1),colorBgSolidActive:Ls(r,.9),colorBgElevated:vm(n,12),colorBgContainer:vm(n,8),colorBgLayout:vm(n,0),colorBgSpotlight:vm(n,26),colorBgBlur:Ls(r,.04),colorBorder:vm(n,26),colorBorderSecondary:vm(n,19)}},bqe=(e,t)=>{const n=Object.keys(mA).map(o=>{const i=xf(e[o],{theme:"dark"});return new Array(10).fill(1).reduce((a,s,l)=>(a[`${o}-${l+1}`]=i[l],a[`${o}${l+1}`]=i[l],a),{})}).reduce((o,i)=>(o=Object.assign(Object.assign({},o),i),o),{}),r=t??L1(e);return Object.assign(Object.assign(Object.assign({},r),n),Kte(e,{generateColorPalettes:vqe,generateNeutralColorPalettes:yqe}))};function Sqe(){const[e,t,n]=Ho();return{theme:e,token:t,hashId:n}}const pa={defaultSeed:Ub.token,useToken:Sqe,defaultAlgorithm:L1,darkAlgorithm:bqe,compactAlgorithm:gqe,getDesignToken:pqe,defaultConfig:Ub,_internalContext:gA};var Cqe=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 o=0,r=Object.getOwnPropertySymbols(e);od.createElement(xqe,Object.assign({},e,{picker:"time",mode:void 0,ref:t}))),yp=d.forwardRef((e,t)=>{var{addon:n,renderExtraFooter:r,variant:o,bordered:i}=e,a=Cqe(e,["addon","renderExtraFooter","variant","bordered"]);const[s]=gd("timePicker",o,i),l=d.useMemo(()=>{if(r)return r;if(n)return n},[n,r]);return d.createElement(wqe,Object.assign({},a,{mode:void 0,ref:t,renderExtraFooter:l,variant:s}))}),Tle=jf(yp,"popupAlign",void 0,"picker");yp._InternalPanelDoNotUseOrYouWillBeFired=Tle;yp.RangePicker=Eqe;yp._InternalPanelDoNotUseOrYouWillBeFired=Tle;const _qe=function(e){var t=d.useRef({valueLabels:new Map});return d.useMemo(function(){var n=t.current.valueLabels,r=new Map,o=e.map(function(i){var a=i.value,s=i.label,l=s??n.get(a);return r.set(a,l),z(z({},i),{},{label:l})});return t.current.valueLabels=r,[o]},[e])};var $qe=function(t,n,r,o){return d.useMemo(function(){var i=function(p){return p.map(function(m){var g=m.value;return g})},a=i(t),s=i(n),l=a.filter(function(h){return!o[h]}),c=a,u=s;if(r){var f=il(a,!0,o);c=f.checkedKeys,u=f.halfCheckedKeys}return[Array.from(new Set([].concat(Ze(l),Ze(c)))),u]},[t,n,r,o])},Pqe=function(t){return Array.isArray(t)?t:t!==void 0?[t]:[]},Oqe=function(t){var n=t||{},r=n.label,o=n.value,i=n.children;return{_title:r?[r]:["title","label"],value:o||"value",key:o||"value",children:i||"children"}},I6=function(t){return!t||t.disabled||t.disableCheckbox||t.checkable===!1},Mqe=function(t,n){var r=[],o=function i(a){a.forEach(function(s){var l=s[n.children];l&&(r.push(s[n.value]),i(l))})};return o(t),r},xW=function(t){return t==null};const Tqe=function(e,t){return d.useMemo(function(){var n=oS(e,{fieldNames:t,initWrapper:function(o){return z(z({},o),{},{valueEntities:new Map})},processEntity:function(o,i){var a=o.node[t.value];i.valueEntities.set(a,o)}});return n},[e,t])};var GD=function(){return null},Rqe=["children","value"];function Rle(e){return ai(e).map(function(t){if(!d.isValidElement(t)||!t.type)return null;var n=t,r=n.key,o=n.props,i=o.children,a=o.value,s=At(o,Rqe),l=z({key:r,value:a},s),c=Rle(i);return c.length&&(l.children=c),l}).filter(function(t){return t})}function k6(e){if(!e)return e;var t=z({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return yr(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),t}}),t}function Iqe(e,t,n,r,o,i){var a=null,s=null;function l(){function c(u){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return u.map(function(p,m){var g="".concat(f,"-").concat(m),v=p[i.value],b=n.includes(v),y=c(p[i.children]||[],g,b),S=d.createElement(GD,p,y.map(function(E){return E.node}));if(t===v&&(a=S),b){var w={pos:g,node:S,children:y};return h||s.push(w),w}return null}).filter(function(p){return p})}s||(s=[],c(r),s.sort(function(u,f){var h=u.node.props.value,p=f.node.props.value,m=n.indexOf(h),g=n.indexOf(p);return m-g}))}Object.defineProperty(e,"triggerNode",{get:function(){return yr(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),l(),a}}),Object.defineProperty(e,"allCheckedNodes",{get:function(){return yr(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),l(),o?s:s.map(function(u){var f=u.node;return f})}})}var kqe=function(t,n,r){var o=r.fieldNames,i=r.treeNodeFilterProp,a=r.filterTreeNode,s=o.children;return d.useMemo(function(){if(!n||a===!1)return t;var l=typeof a=="function"?a:function(u,f){return String(f[i]).toUpperCase().includes(n.toUpperCase())},c=function u(f){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return f.reduce(function(p,m){var g=m[s],v=h||l(n,k6(m)),b=u(g||[],v);return(v||b.length)&&p.push(z(z({},m),{},Z({isLeaf:void 0},s,b))),p},[])};return c(t)},[t,n,s,i,a])};function EW(e){var t=d.useRef();t.current=e;var n=d.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}function Nqe(e,t){var n=t.id,r=t.pId,o=t.rootPId,i=new Map,a=[];return e.forEach(function(s){var l=s[n],c=z(z({},s),{},{key:s.key||l});i.set(l,c)}),i.forEach(function(s){var l=s[r],c=i.get(l);c?(c.children=c.children||[],c.children.push(s)):(l===o||o===null)&&a.push(s)}),a}function Aqe(e,t,n){return d.useMemo(function(){if(e){if(n){var r=z({id:"id",pId:"pId",rootPId:null},Ht(n)==="object"?n:{});return Nqe(e,r)}return e}return Rle(t)},[t,n,e])}var Ile=d.createContext(null),kle=d.createContext(null),Dqe={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},jqe=function(t,n){var r=BA(),o=r.prefixCls,i=r.multiple,a=r.searchValue,s=r.toggleOpen,l=r.open,c=r.notFoundContent,u=d.useContext(kle),f=u.virtual,h=u.listHeight,p=u.listItemHeight,m=u.listItemScrollOffset,g=u.treeData,v=u.fieldNames,b=u.onSelect,y=u.dropdownMatchSelectWidth,S=u.treeExpandAction,w=u.treeTitleRender,E=u.onPopupScroll,C=u.leftMaxCount,x=u.leafCountOnly,_=u.valueEntities,P=d.useContext(Ile),O=P.checkable,I=P.checkedKeys,M=P.halfCheckedKeys,T=P.treeExpandedKeys,D=P.treeDefaultExpandAll,A=P.treeDefaultExpandedKeys,j=P.onTreeExpand,k=P.treeIcon,F=P.showTreeIcon,V=P.switcherIcon,W=P.treeLine,K=P.treeNodeFilterProp,L=P.loadData,Q=P.treeLoadedKeys,ee=P.treeMotion,re=P.onTreeLoad,ie=P.keyEntities,G=d.useRef(),X=ed(function(){return g},[l,g],function(Ue,Ve){return Ve[0]&&Ue[1]!==Ve[1]}),ne=d.useMemo(function(){return O?{checked:I,halfChecked:M}:null},[O,I,M]);d.useEffect(function(){if(l&&!i&&I.length){var Ue;(Ue=G.current)===null||Ue===void 0||Ue.scrollTo({key:I[0]})}},[l]);var le=function(Ve){Ve.preventDefault()},ce=function(Ve,Tt){var et=Tt.node;O&&I6(et)||(b(et.key,{selected:!I.includes(et.key)}),i||s(!1))},oe=d.useState(A),se=$e(oe,2),fe=se[0],te=se[1],he=d.useState(null),pe=$e(he,2),Oe=pe[0],Me=pe[1],Se=d.useMemo(function(){return T?Ze(T):a?Oe:fe},[fe,Oe,T,a]),ye=function(Ve){te(Ve),Me(Ve),j&&j(Ve)},ve=String(a).toLowerCase(),be=function(Ve){return ve?String(Ve[K]).toLowerCase().includes(ve):!1};d.useEffect(function(){a&&Me(Mqe(g,v))},[a]);var Pe=d.useState(function(){return new Map}),Ne=$e(Pe,2),U=Ne[0],H=Ne[1];d.useEffect(function(){C&&H(new Map)},[C]);function q(Ue){var Ve=Ue[v.value];if(!U.has(Ve)){var Tt=_.get(Ve),et=(Tt.children||[]).length===0;if(et)U.set(Ve,!1);else{var st=Tt.children.filter(function(gt){return!gt.node.disabled&&!gt.node.disableCheckbox&&!I.includes(gt.node[v.value])}),yt=st.length;U.set(Ve,yt>C)}}return U.get(Ve)}var me=An(function(Ue){var Ve=Ue[v.value];return I.includes(Ve)||C===null?!1:C<=0?!0:x&&C?q(Ue):!1}),Ce=function Ue(Ve){var Tt=Fc(Ve),et;try{for(Tt.s();!(et=Tt.n()).done;){var st=et.value;if(!(st.disabled||st.selectable===!1)){if(a){if(be(st))return st}else return st;if(st[v.children]){var yt=Ue(st[v.children]);if(yt)return yt}}}}catch(gt){Tt.e(gt)}finally{Tt.f()}return null},ue=d.useState(null),Le=$e(ue,2),He=Le[0],ge=Le[1],De=ie[He];d.useEffect(function(){if(l){var Ue=null,Ve=function(){var et=Ce(X);return et?et[v.value]:null};!i&&I.length&&!a?Ue=I[0]:Ue=Ve(),ge(Ue)}},[l,a]),d.useImperativeHandle(n,function(){var Ue;return{scrollTo:(Ue=G.current)===null||Ue===void 0?void 0:Ue.scrollTo,onKeyDown:function(Tt){var et,st=Tt.which;switch(st){case ut.UP:case ut.DOWN:case ut.LEFT:case ut.RIGHT:(et=G.current)===null||et===void 0||et.onKeyDown(Tt);break;case ut.ENTER:{if(De){var yt=me(De.node),gt=(De==null?void 0:De.node)||{},Lt=gt.selectable,St=gt.value,wt=gt.disabled;Lt!==!1&&!wt&&!yt&&ce(null,{node:{key:He},selected:!I.includes(St)})}break}case ut.ESC:s(!1)}},onKeyUp:function(){}}});var qe=ed(function(){return!a},[a,T||fe],function(Ue,Ve){var Tt=$e(Ue,1),et=Tt[0],st=$e(Ve,2),yt=st[0],gt=st[1];return et!==yt&&!!(yt||gt)}),Fe=qe?L:null;if(X.length===0)return d.createElement("div",{role:"listbox",className:"".concat(o,"-empty"),onMouseDown:le},c);var Ke={fieldNames:v};return Q&&(Ke.loadedKeys=Q),Se&&(Ke.expandedKeys=Se),d.createElement("div",{onMouseDown:le},De&&l&&d.createElement("span",{style:Dqe,"aria-live":"assertive"},De.node.value),d.createElement(ple.Provider,{value:{nodeDisabled:me}},d.createElement(yP,Ge({ref:G,focusable:!1,prefixCls:"".concat(o,"-tree"),treeData:X,height:h,itemHeight:p,itemScrollOffset:m,virtual:f!==!1&&y!==!1,multiple:i,icon:k,showIcon:F,switcherIcon:V,showLine:W,loadData:Fe,motion:ee,activeKey:He,checkable:O,checkStrictly:!0,checkedKeys:ne,selectedKeys:O?[]:I,defaultExpandAll:D,titleRender:w},Ke,{onActiveChange:ge,onSelect:ce,onCheck:ce,onExpand:ye,onLoad:re,filterTreeNode:be,expandAction:S,onScroll:E}))))},Fqe=d.forwardRef(jqe),YD="SHOW_ALL",XD="SHOW_PARENT",bP="SHOW_CHILD";function _W(e,t,n,r){var o=new Set(e);return t===bP?e.filter(function(i){var a=n[i];return!a||!a.children||!a.children.some(function(s){var l=s.node;return o.has(l[r.value])})||!a.children.every(function(s){var l=s.node;return I6(l)||o.has(l[r.value])})}):t===XD?e.filter(function(i){var a=n[i],s=a?a.parent:null;return!s||I6(s.node)||!o.has(s.key)}):e}var Lqe=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","maxCount","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","listItemScrollOffset","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion","treeTitleRender","onPopupScroll"];function Bqe(e){return!e||Ht(e)!=="object"}var zqe=d.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,o=r===void 0?"rc-tree-select":r,i=e.value,a=e.defaultValue,s=e.onChange,l=e.onSelect,c=e.onDeselect,u=e.searchValue,f=e.inputValue,h=e.onSearch,p=e.autoClearSearchValue,m=p===void 0?!0:p,g=e.filterTreeNode,v=e.treeNodeFilterProp,b=v===void 0?"value":v,y=e.showCheckedStrategy,S=e.treeNodeLabelProp,w=e.multiple,E=e.treeCheckable,C=e.treeCheckStrictly,x=e.labelInValue,_=e.maxCount,P=e.fieldNames,O=e.treeDataSimpleMode,I=e.treeData,M=e.children,T=e.loadData,D=e.treeLoadedKeys,A=e.onTreeLoad,j=e.treeDefaultExpandAll,k=e.treeExpandedKeys,F=e.treeDefaultExpandedKeys,V=e.onTreeExpand,W=e.treeExpandAction,K=e.virtual,L=e.listHeight,Q=L===void 0?200:L,ee=e.listItemHeight,re=ee===void 0?20:ee,ie=e.listItemScrollOffset,G=ie===void 0?0:ie,X=e.onDropdownVisibleChange,ne=e.dropdownMatchSelectWidth,le=ne===void 0?!0:ne,ce=e.treeLine,oe=e.treeIcon,se=e.showTreeIcon,fe=e.switcherIcon,te=e.treeMotion,he=e.treeTitleRender,pe=e.onPopupScroll,Oe=At(e,Lqe),Me=VA(n),Se=E&&!C,ye=E||C,ve=C||x,be=ye||w,Pe=xn(a,{value:i}),Ne=$e(Pe,2),U=Ne[0],H=Ne[1],q=d.useMemo(function(){return E?y||bP:YD},[y,E]),me=d.useMemo(function(){return Oqe(P)},[JSON.stringify(P)]),Ce=xn("",{value:u!==void 0?u:f,postState:function(xt){return xt||""}}),ue=$e(Ce,2),Le=ue[0],He=ue[1],ge=function(xt){He(xt),h==null||h(xt)},De=Aqe(I,M,O),qe=Tqe(De,me),Fe=qe.keyEntities,Ke=qe.valueEntities,Ue=d.useCallback(function(Bt){var xt=[],bt=[];return Bt.forEach(function(Ft){Ke.has(Ft)?bt.push(Ft):xt.push(Ft)}),{missingRawValues:xt,existRawValues:bt}},[Ke]),Ve=kqe(De,Le,{fieldNames:me,treeNodeFilterProp:b,filterTreeNode:g}),Tt=d.useCallback(function(Bt){if(Bt){if(S)return Bt[S];for(var xt=me._title,bt=0;btft)){var Re=st(Bt);if(H(Re),m&&He(""),s){var It=Bt;Se&&(It=Ft.map(function(ke){var Je=Ke.get(ke);return Je?Je.node[me.value]:ke}));var tt=xt||{triggerValue:void 0,selected:void 0},Ot=tt.triggerValue,Pt=tt.selected,pn=It;if(C){var Pn=wt.filter(function(ke){return!It.includes(ke.value)});pn=[].concat(Ze(pn),Ze(Pn))}var $=st(pn),R={preValue:St,triggerValue:Ot},J=!0;(C||bt==="selection"&&!Pt)&&(J=!1),Iqe(R,Ot,Bt,De,J,me),ye?R.checked=Pt:R.selected=Pt;var Ee=ve?$:$.map(function(ke){return ke.value});s(be?Ee:Ee[0],ve?null:$.map(function(ke){return ke.label}),R)}}}),Rt=d.useCallback(function(Bt,xt){var bt,Ft=xt.selected,Re=xt.source,It=Fe[Bt],tt=It==null?void 0:It.node,Ot=(bt=tt==null?void 0:tt[me.value])!==null&&bt!==void 0?bt:Bt;if(!be)dt([Ot],{selected:!0,triggerValue:Ot},"option");else{var Pt=Ft?[].concat(Ze(Nt),[Ot]):je.filter(function(Je){return Je!==Ot});if(Se){var pn=Ue(Pt),Pn=pn.missingRawValues,$=pn.existRawValues,R=$.map(function(Je){return Ke.get(Je).key}),J;if(Ft){var Ee=il(R,!0,Fe);J=Ee.checkedKeys}else{var ke=il(R,{checked:!1,halfCheckedKeys:Xe},Fe);J=ke.checkedKeys}Pt=[].concat(Ze(Pn),Ze(J.map(function(Je){return Fe[Je].node[me.value]})))}dt(Pt,{selected:Ft,triggerValue:Ot},Re||"option")}Ft||!be?l==null||l(Ot,k6(tt)):c==null||c(Ot,k6(tt))},[Ue,Ke,Fe,me,be,Nt,dt,Se,l,c,je,Xe,_]),Ct=d.useCallback(function(Bt){if(X){var xt={};Object.defineProperty(xt,"documentClickClose",{get:function(){return yr(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),X(Bt,xt)}},[X]),Wt=EW(function(Bt,xt){var bt=Bt.map(function(Ft){return Ft.value});if(xt.type==="clear"){dt(bt,{},"selection");return}xt.values.length&&Rt(xt.values[0].value,{selected:!1,source:"selection"})}),at=d.useMemo(function(){return{virtual:K,dropdownMatchSelectWidth:le,listHeight:Q,listItemHeight:re,listItemScrollOffset:G,treeData:Ve,fieldNames:me,onSelect:Rt,treeExpandAction:W,treeTitleRender:he,onPopupScroll:pe,leftMaxCount:_===void 0?null:_-Et.length,leafCountOnly:q==="SHOW_CHILD"&&!C&&!!E,valueEntities:Ke}},[K,le,Q,re,G,Ve,me,Rt,W,he,pe,_,Et.length,q,C,E,Ke]),$t=d.useMemo(function(){return{checkable:ye,loadData:T,treeLoadedKeys:D,onTreeLoad:A,checkedKeys:je,halfCheckedKeys:Xe,treeDefaultExpandAll:j,treeExpandedKeys:k,treeDefaultExpandedKeys:F,onTreeExpand:V,treeIcon:oe,treeMotion:te,showTreeIcon:se,switcherIcon:fe,treeLine:ce,treeNodeFilterProp:b,keyEntities:Fe}},[ye,T,D,A,je,Xe,j,k,F,V,oe,te,se,fe,ce,b,Fe]);return d.createElement(kle.Provider,{value:at},d.createElement(Ile.Provider,{value:$t},d.createElement(HA,Ge({ref:t},Oe,{id:Me,prefixCls:o,mode:be?"multiple":void 0,displayValues:Et,onDisplayValuesChange:Wt,searchValue:Le,onSearch:ge,OptionList:Fqe,emptyOptions:!De.length,onDropdownVisibleChange:Ct,dropdownMatchSelectWidth:le}))))}),fS=zqe;fS.TreeNode=GD;fS.SHOW_ALL=YD;fS.SHOW_PARENT=XD;fS.SHOW_CHILD=bP;const Hqe=e=>{const{componentCls:t,treePrefixCls:n,colorBgElevated:r}=e,o=`.${n}`;return[{[`${t}-dropdown`]:[{padding:`${_e(e.paddingXS)} ${_e(e.calc(e.paddingXS).div(2).equal())}`},yle(n,kn(e,{colorBgContainer:r})),{[o]:{borderRadius:0,[`${o}-list-holder-inner`]:{alignItems:"stretch",[`${o}-treenode`]:{[`${o}-node-content-wrapper`]:{flex:"auto"}}}}},aP(`${n}-checkbox`,e),{"&-rtl":{direction:"rtl",[`${o}-switcher${o}-switcher_close`]:{[`${o}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]};function Uqe(e,t,n){return Kn("TreeSelect",r=>{const o=kn(r,{treePrefixCls:t});return[Hqe(o)]},ble)(e,n)}var Wqe=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 o=0,r=Object.getOwnPropertySymbols(e);o{var n;const{prefixCls:r,size:o,disabled:i,bordered:a=!0,className:s,rootClassName:l,treeCheckable:c,multiple:u,listHeight:f=256,listItemHeight:h,placement:p,notFoundContent:m,switcherIcon:g,treeLine:v,getPopupContainer:b,popupClassName:y,dropdownClassName:S,treeIcon:w=!1,transitionName:E,choiceTransitionName:C="",status:x,treeExpandAction:_,builtinPlacements:P,dropdownMatchSelectWidth:O,popupMatchSelectWidth:I,allowClear:M,variant:T,dropdownStyle:D,tagRender:A,maxCount:j,showCheckedStrategy:k,treeCheckStrictly:F}=e,V=Wqe(e,["prefixCls","size","disabled","bordered","className","rootClassName","treeCheckable","multiple","listHeight","listItemHeight","placement","notFoundContent","switcherIcon","treeLine","getPopupContainer","popupClassName","dropdownClassName","treeIcon","transitionName","choiceTransitionName","status","treeExpandAction","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","allowClear","variant","dropdownStyle","tagRender","maxCount","showCheckedStrategy","treeCheckStrictly"]),{getPopupContainer:W,getPrefixCls:K,renderEmpty:L,direction:Q,virtual:ee,popupMatchSelectWidth:re,popupOverflow:ie}=d.useContext(Yt),[,G]=Ho(),X=h??(G==null?void 0:G.controlHeightSM)+(G==null?void 0:G.paddingXXS),ne=K(),le=K("select",r),ce=K("select-tree",r),oe=K("tree-select",r),{compactSize:se,compactItemClassnames:fe}=gc(le,Q),te=Mr(le),he=Mr(oe),[pe,Oe,Me]=GA(le,te),[Se]=Uqe(oe,ce,he),[ye,ve]=gd("treeSelect",T,a),be=xe(y||S,`${oe}-dropdown`,{[`${oe}-dropdown-rtl`]:Q==="rtl"},l,Me,te,he,Oe),Pe=!!(c||u),Ne=d.useMemo(()=>{if(!(j&&(k==="SHOW_ALL"&&!F||k==="SHOW_PARENT")))return j},[j,k,F]),U=YA(e.suffixIcon,e.showArrow),H=(n=I??O)!==null&&n!==void 0?n:re,{status:q,hasFeedback:me,isFormItemInput:Ce,feedbackIcon:ue}=d.useContext(Io),Le=md(q,x),{suffixIcon:He,removeIcon:ge,clearIcon:De}=U$(Object.assign(Object.assign({},V),{multiple:Pe,showSuffixIcon:U,hasFeedback:me,feedbackIcon:ue,prefixCls:le,componentName:"TreeSelect"})),qe=M===!0?{clearIcon:De}:M;let Fe;m!==void 0?Fe=m:Fe=(L==null?void 0:L("Select"))||d.createElement(X1,{componentName:"Select"});const Ke=Yn(V,["suffixIcon","removeIcon","clearIcon","itemIcon","switcherIcon"]),Ue=d.useMemo(()=>p!==void 0?p:Q==="rtl"?"bottomRight":"bottomLeft",[p,Q]),Ve=Eo(St=>{var wt;return(wt=o??se)!==null&&wt!==void 0?wt:St}),Tt=d.useContext(zo),et=i??Tt,st=xe(!r&&oe,{[`${le}-lg`]:Ve==="large",[`${le}-sm`]:Ve==="small",[`${le}-rtl`]:Q==="rtl",[`${le}-${ye}`]:ve,[`${le}-in-form-item`]:Ce},ac(le,Le,me),fe,s,l,Me,te,he,Oe),yt=St=>d.createElement(Sle,{prefixCls:ce,switcherIcon:g,treeNodeProps:St,showLine:v}),[gt]=vl("SelectLike",D==null?void 0:D.zIndex),Lt=d.createElement(fS,Object.assign({virtual:ee,disabled:et},Ke,{dropdownMatchSelectWidth:H,builtinPlacements:qA(P,ie),ref:t,prefixCls:le,className:st,listHeight:f,listItemHeight:X,treeCheckable:c&&d.createElement("span",{className:`${le}-tree-checkbox-inner`}),treeLine:!!v,suffixIcon:He,multiple:Pe,placement:Ue,removeIcon:ge,allowClear:qe,switcherIcon:yt,showTreeIcon:w,notFoundContent:Fe,getPopupContainer:b||W,treeMotion:null,dropdownClassName:be,dropdownStyle:Object.assign(Object.assign({},D),{zIndex:gt}),choiceTransitionName:Mi(ne,"",C),transitionName:Mi(ne,"slide-up",E),treeExpandAction:_,tagRender:Pe?A:void 0,maxCount:Ne,showCheckedStrategy:k,treeCheckStrictly:F}));return pe(Se(Lt))},Kqe=d.forwardRef(Vqe),Vp=Kqe,qqe=jf(Vp,"dropdownAlign",e=>Yn(e,["visible"]));Vp.TreeNode=GD;Vp.SHOW_ALL=YD;Vp.SHOW_PARENT=XD;Vp.SHOW_CHILD=bP;Vp._InternalPanelDoNotUseOrYouWillBeFired=qqe;const yR=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",o=e.type||"",i=o.replace(/\/.*$/,"");return n.some(function(a){var s=a.trim();if(/^\*(\/\*)?$/.test(a))return!0;if(s.charAt(0)==="."){var l=r.toLowerCase(),c=s.toLowerCase(),u=[c];return(c===".jpg"||c===".jpeg")&&(u=[".jpg",".jpeg"]),u.some(function(f){return l.endsWith(f)})}return/\/\*$/.test(s)?i===s.replace(/\/.*$/,""):o===s?!0:/^\w+$/.test(s)?(yr(!1,"Upload takes an invalidate 'accept' type '".concat(s,"'.Skip for check.")),!0):!1})}return!0};function Gqe(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 $W(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function Yqe(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(i){i.total>0&&(i.percent=i.loaded/i.total*100),e.onProgress(i)});var n=new FormData;e.data&&Object.keys(e.data).forEach(function(o){var i=e.data[o];if(Array.isArray(i)){i.forEach(function(a){n.append("".concat(o,"[]"),a)});return}n.append(o,i)}),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(i){e.onError(i)},t.onload=function(){return t.status<200||t.status>=300?e.onError(Gqe(e,t),$W(t)):e.onSuccess($W(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(o){r[o]!==null&&t.setRequestHeader(o,r[o])}),t.send(n),{abort:function(){t.abort()}}}var Xqe=function(){var e=Bo(nr().mark(function t(n,r){var o,i,a,s,l,c,u,f;return nr().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:c=function(){return c=Bo(nr().mark(function g(v){return nr().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return y.abrupt("return",new Promise(function(S){v.file(function(w){r(w)?(v.fullPath&&!w.webkitRelativePath&&(Object.defineProperties(w,{webkitRelativePath:{writable:!0}}),w.webkitRelativePath=v.fullPath.replace(/^\//,""),Object.defineProperties(w,{webkitRelativePath:{writable:!1}})),S(w)):S(null)})}));case 1:case"end":return y.stop()}},g)})),c.apply(this,arguments)},l=function(g){return c.apply(this,arguments)},s=function(){return s=Bo(nr().mark(function g(v){var b,y,S,w,E;return nr().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:b=v.createReader(),y=[];case 2:return x.next=5,new Promise(function(_){b.readEntries(_,function(){return _([])})});case 5:if(S=x.sent,w=S.length,w){x.next=9;break}return x.abrupt("break",12);case 9:for(E=0;E{const{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${_e(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:`${_e(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 ${_e(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}}}}}},nGe=e=>{const{componentCls:t,iconCls:n,fontSize:r,lineHeight:o,calc:i}=e,a=`${t}-list-item`,s=`${a}-actions`,l=`${a}-action`;return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},nc()),{lineHeight:e.lineHeight,[a]:{position:"relative",height:i(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({},wa),{padding:`0 ${_e(e.paddingXS)}`,lineHeight:o,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[s]:{whiteSpace:"nowrap",[l]:{opacity:0},[n]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[` ${l}:focus-visible, &.picture ${l} `]:{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:i(r).add(e.paddingXS).equal(),fontSize:r,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${a}:hover ${l}`]:{opacity:1},[`${a}-error`]:{color:e.colorError,[`${a}-name, ${t}-icon ${n}`]:{color:e.colorError},[s]:{[`${n}, ${n}:hover`]:{color:e.colorError},[l]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},rGe=e=>{const{componentCls:t}=e,n=new Gn("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),r=new Gn("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),o=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${o}-appear, ${o}-enter, ${o}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${o}-appear, ${o}-enter`]:{animationName:n},[`${o}-leave`]:{animationName:r}}},{[`${t}-wrapper`]:OA(e)},n,r]},oGe=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:r,uploadProgressOffset:o,calc:i}=e,a=`${t}-list`,s=`${a}-item`;return{[`${t}-wrapper`]:{[` ${a}${a}-picture, ${a}${a}-picture-card, ${a}${a}-picture-circle `]:{[s]:{position:"relative",height:i(r).add(i(e.lineWidth).mul(2)).add(i(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${_e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${s}-thumbnail`]:Object.assign(Object.assign({},wa),{width:r,height:r,lineHeight:_e(i(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"}}),[`${s}-progress`]:{bottom:o,width:`calc(100% - ${_e(i(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:i(r).add(e.paddingXS).equal()}},[`${s}-error`]:{borderColor:e.colorError,[`${s}-thumbnail ${n}`]:{[`svg path[fill='${dp[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${dp.primary}']`]:{fill:e.colorError}}},[`${s}-uploading`]:{borderStyle:"dashed",[`${s}-name`]:{marginBottom:o}}},[`${a}${a}-picture-circle ${s}`]:{[`&, &::before, ${s}-thumbnail`]:{borderRadius:"50%"}}}}},iGe=e=>{const{componentCls:t,iconCls:n,fontSizeLG:r,colorTextLightSolid:o,calc:i}=e,a=`${t}-list`,s=`${a}-item`,l=e.uploadPicCardSize;return{[` ${t}-wrapper${t}-picture-card-wrapper, ${t}-wrapper${t}-picture-circle-wrapper `]:Object.assign(Object.assign({},nc()),{display:"block",[`${t}${t}-select`]:{width:l,height:l,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${_e(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:l,height:l,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[s]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${_e(i(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${_e(i(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${s}:hover`]:{[`&::before, ${s}-actions`]:{opacity:1}},[`${s}-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 ${_e(e.marginXXS)}`,fontSize:r,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:o,"&:hover":{color:o},svg:{verticalAlign:"baseline"}}},[`${s}-thumbnail, ${s}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${s}-name`]:{display:"none",textAlign:"center"},[`${s}-file + ${s}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${_e(i(e.paddingXS).mul(2).equal())})`},[`${s}-uploading`]:{[`&${s}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${s}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${_e(i(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}},aGe=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},sGe=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},Qn(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"}})}},lGe=e=>({actionsColor:e.colorTextDescription}),cGe=Kn("Upload",e=>{const{fontSizeHeading3:t,fontHeight:n,lineWidth:r,controlHeightLG:o,calc:i}=e,a=kn(e,{uploadThumbnailSize:i(t).mul(2).equal(),uploadProgressOffset:i(i(n).div(2)).add(r).equal(),uploadPicCardSize:i(o).mul(2.55).equal()});return[sGe(a),tGe(a),oGe(a),iGe(a),nGe(a),rGe(a),aGe(a),U1(a)]},lGe);function ZC(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 ew(e,t){const n=Ze(t),r=n.findIndex(o=>{let{uid:i}=o;return i===e.uid});return r===-1?n.push(e):n[r]=e,n}function CR(e,t){const n=e.uid!==void 0?"uid":"name";return t.filter(r=>r[n]===e[n])[0]}function uGe(e,t){const n=e.uid!==void 0?"uid":"name",r=t.filter(o=>o[n]!==e[n]);return r.length===t.length?null:r}const dGe=function(){const t=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),r=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]},Nle=e=>e.indexOf("image/")===0,fGe=e=>{if(e.type&&!e.thumbUrl)return Nle(e.type);const t=e.thumbUrl||e.url||"",n=dGe(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)},Pd=200;function hGe(e){return new Promise(t=>{if(!e.type||!Nle(e.type)){t("");return}const n=document.createElement("canvas");n.width=Pd,n.height=Pd,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${Pd}px; height: ${Pd}px; z-index: 9999; display: none;`,document.body.appendChild(n);const r=n.getContext("2d"),o=new Image;if(o.onload=()=>{const{width:i,height:a}=o;let s=Pd,l=Pd,c=0,u=0;i>a?(l=a*(Pd/i),u=-(l-s)/2):(s=i*(Pd/a),c=-(s-l)/2),r.drawImage(o,c,u,s,l);const f=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(o.src),t(f)},o.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const i=new FileReader;i.onload=()=>{i.result&&typeof i.result=="string"&&(o.src=i.result)},i.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const i=new FileReader;i.onload=()=>{i.result&&t(i.result)},i.readAsDataURL(e)}else o.src=window.URL.createObjectURL(e)})}const pGe=d.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:o,locale:i,listType:a,file:s,items:l,progress:c,iconRender:u,actionIconRender:f,itemRender:h,isImgUrl:p,showPreviewIcon:m,showRemoveIcon:g,showDownloadIcon:v,previewIcon:b,removeIcon:y,downloadIcon:S,extra:w,onPreview:E,onDownload:C,onClose:x}=e;var _,P;const{status:O}=s,[I,M]=d.useState(O);d.useEffect(()=>{O!=="removed"&&M(O)},[O]);const[T,D]=d.useState(!1);d.useEffect(()=>{const se=setTimeout(()=>{D(!0)},300);return()=>{clearTimeout(se)}},[]);const A=u(s);let j=d.createElement("div",{className:`${n}-icon`},A);if(a==="picture"||a==="picture-card"||a==="picture-circle")if(I==="uploading"||!s.thumbUrl&&!s.url){const se=xe(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:I!=="uploading"});j=d.createElement("div",{className:se},A)}else{const se=p!=null&&p(s)?d.createElement("img",{src:s.thumbUrl||s.url,alt:s.name,className:`${n}-list-item-image`,crossOrigin:s.crossOrigin}):A,fe=xe(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:p&&!p(s)});j=d.createElement("a",{className:fe,onClick:te=>E(s,te),href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer"},se)}const k=xe(`${n}-list-item`,`${n}-list-item-${I}`),F=typeof s.linkProps=="string"?JSON.parse(s.linkProps):s.linkProps,V=(typeof g=="function"?g(s):g)?f((typeof y=="function"?y(s):y)||d.createElement(xHe,null),()=>x(s),n,i.removeFile,!0):null,W=(typeof v=="function"?v(s):v)&&I==="done"?f((typeof S=="function"?S(s):S)||d.createElement($He,null),()=>C(s),n,i.downloadFile):null,K=a!=="picture-card"&&a!=="picture-circle"&&d.createElement("span",{key:"download-delete",className:xe(`${n}-list-item-actions`,{picture:a==="picture"})},W,V),L=typeof w=="function"?w(s):w,Q=L&&d.createElement("span",{className:`${n}-list-item-extra`},L),ee=xe(`${n}-list-item-name`),re=s.url?d.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:ee,title:s.name},F,{href:s.url,onClick:se=>E(s,se)}),s.name,Q):d.createElement("span",{key:"view",className:ee,onClick:se=>E(s,se),title:s.name},s.name,Q),ie=(typeof m=="function"?m(s):m)&&(s.url||s.thumbUrl)?d.createElement("a",{href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:se=>E(s,se),title:i.previewFile},typeof b=="function"?b(s):b||d.createElement(uP,null)):null,G=(a==="picture-card"||a==="picture-circle")&&I!=="uploading"&&d.createElement("span",{className:`${n}-list-item-actions`},ie,I==="done"&&W,V),{getPrefixCls:X}=d.useContext(Yt),ne=X(),le=d.createElement("div",{className:k},j,re,K,G,T&&d.createElement(Jo,{motionName:`${ne}-fade`,visible:I==="uploading",motionDeadline:2e3},se=>{let{className:fe}=se;const te="percent"in s?d.createElement(AD,Object.assign({},c,{type:"line",percent:s.percent,"aria-label":s["aria-label"],"aria-labelledby":s["aria-labelledby"]})):null;return d.createElement("div",{className:xe(`${n}-list-item-progress`,fe)},te)})),ce=s.response&&typeof s.response=="string"?s.response:((_=s.error)===null||_===void 0?void 0:_.statusText)||((P=s.error)===null||P===void 0?void 0:P.message)||i.uploadError,oe=I==="error"?d.createElement(xa,{title:ce,getPopupContainer:se=>se.parentNode},le):le;return d.createElement("div",{className:xe(`${n}-list-item-container`,r),style:o,ref:t},h?h(oe,s,l,{download:C.bind(null,s),preview:E.bind(null,s),remove:x.bind(null,s)}):oe)}),mGe=(e,t)=>{const{listType:n="text",previewFile:r=hGe,onPreview:o,onDownload:i,onRemove:a,locale:s,iconRender:l,isImageUrl:c=fGe,prefixCls:u,items:f=[],showPreviewIcon:h=!0,showRemoveIcon:p=!0,showDownloadIcon:m=!1,removeIcon:g,previewIcon:v,downloadIcon:b,extra:y,progress:S={size:[-1,2],showInfo:!1},appendAction:w,appendActionVisible:E=!0,itemRender:C,disabled:x}=e,_=XA(),[P,O]=d.useState(!1),I=["picture-card","picture-circle"].includes(n);d.useEffect(()=>{n.startsWith("picture")&&(f||[]).forEach(Q=>{!(Q.originFileObj instanceof File||Q.originFileObj instanceof Blob)||Q.thumbUrl!==void 0||(Q.thumbUrl="",r==null||r(Q.originFileObj).then(ee=>{Q.thumbUrl=ee||"",_()}))})},[n,f,r]),d.useEffect(()=>{O(!0)},[]);const M=(Q,ee)=>{if(o)return ee==null||ee.preventDefault(),o(Q)},T=Q=>{typeof i=="function"?i(Q):Q.url&&window.open(Q.url)},D=Q=>{a==null||a(Q)},A=Q=>{if(l)return l(Q,n);const ee=Q.status==="uploading";if(n.startsWith("picture")){const re=n==="picture"?d.createElement(Gc,null):s.uploading,ie=c!=null&&c(Q)?d.createElement(mUe,null):d.createElement(RHe,null);return ee?re:ie}return ee?d.createElement(Gc,null):d.createElement(fUe,null)},j=(Q,ee,re,ie,G)=>{const X={type:"text",size:"small",title:ie,onClick:ne=>{var le,ce;ee(),d.isValidElement(Q)&&((ce=(le=Q.props).onClick)===null||ce===void 0||ce.call(le,ne))},className:`${re}-list-item-action`};return G&&(X.disabled=x),d.isValidElement(Q)?d.createElement(Hn,Object.assign({},X,{icon:Zo(Q,Object.assign(Object.assign({},Q.props),{onClick:()=>{}}))})):d.createElement(Hn,Object.assign({},X),d.createElement("span",null,Q))};d.useImperativeHandle(t,()=>({handlePreview:M,handleDownload:T}));const{getPrefixCls:k}=d.useContext(Yt),F=k("upload",u),V=k(),W=xe(`${F}-list`,`${F}-list-${n}`),K=d.useMemo(()=>Yn(Ug(V),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[V]),L=Object.assign(Object.assign({},I?{}:K),{motionDeadline:2e3,motionName:`${F}-${I?"animate-inline":"animate"}`,keys:Ze(f.map(Q=>({key:Q.uid,file:Q}))),motionAppear:P});return d.createElement("div",{className:W},d.createElement(b$,Object.assign({},L,{component:!1}),Q=>{let{key:ee,file:re,className:ie,style:G}=Q;return d.createElement(pGe,{key:ee,locale:s,prefixCls:F,className:ie,style:G,file:re,items:f,progress:S,listType:n,isImgUrl:c,showPreviewIcon:h,showRemoveIcon:p,showDownloadIcon:m,removeIcon:g,previewIcon:v,downloadIcon:b,extra:y,iconRender:A,actionIconRender:j,itemRender:C,onPreview:M,onDownload:T,onClose:D})}),w&&d.createElement(Jo,Object.assign({},L,{visible:E,forceRender:!0}),Q=>{let{className:ee,style:re}=Q;return Zo(w,ie=>({className:xe(ie.className,ee),style:Object.assign(Object.assign(Object.assign({},re),{pointerEvents:ee?"none":void 0}),ie.style)}))}))},gGe=d.forwardRef(mGe);var vGe=function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function s(u){try{c(r.next(u))}catch(f){a(f)}}function l(u){try{c(r.throw(u))}catch(f){a(f)}}function c(u){u.done?i(u.value):o(u.value).then(s,l)}c((r=r.apply(e,[])).next())})};const yy=`__LIST_IGNORE_${Date.now()}__`,yGe=(e,t)=>{const{fileList:n,defaultFileList:r,onRemove:o,showUploadList:i=!0,listType:a="text",onPreview:s,onDownload:l,onChange:c,onDrop:u,previewFile:f,disabled:h,locale:p,iconRender:m,isImageUrl:g,progress:v,prefixCls:b,className:y,type:S="select",children:w,style:E,itemRender:C,maxCount:x,data:_={},multiple:P=!1,hasControlInside:O=!0,action:I="",accept:M="",supportServerRender:T=!0,rootClassName:D}=e,A=d.useContext(zo),j=h??A,[k,F]=xn(r||[],{value:n,postState:ge=>ge??[]}),[V,W]=d.useState("drop"),K=d.useRef(null),L=d.useRef(null);d.useMemo(()=>{const ge=Date.now();(n||[]).forEach((De,qe)=>{!De.uid&&!Object.isFrozen(De)&&(De.uid=`__AUTO__${ge}_${qe}__`)})},[n]);const Q=(ge,De,qe)=>{let Fe=Ze(De),Ke=!1;x===1?Fe=Fe.slice(-1):x&&(Ke=Fe.length>x,Fe=Fe.slice(0,x)),_i.flushSync(()=>{F(Fe)});const Ue={file:ge,fileList:Fe};qe&&(Ue.event=qe),(!Ke||ge.status==="removed"||Fe.some(Ve=>Ve.uid===ge.uid))&&_i.flushSync(()=>{c==null||c(Ue)})},ee=(ge,De)=>vGe(void 0,void 0,void 0,function*(){const{beforeUpload:qe,transformFile:Fe}=e;let Ke=ge;if(qe){const Ue=yield qe(ge,De);if(Ue===!1)return!1;if(delete ge[yy],Ue===yy)return Object.defineProperty(ge,yy,{value:!0,configurable:!0}),!1;typeof Ue=="object"&&Ue&&(Ke=Ue)}return Fe&&(Ke=yield Fe(Ke)),Ke}),re=ge=>{const De=ge.filter(Ke=>!Ke.file[yy]);if(!De.length)return;const qe=De.map(Ke=>ZC(Ke.file));let Fe=Ze(k);qe.forEach(Ke=>{Fe=ew(Ke,Fe)}),qe.forEach((Ke,Ue)=>{let Ve=Ke;if(De[Ue].parsedFile)Ke.status="uploading";else{const{originFileObj:Tt}=Ke;let et;try{et=new File([Tt],Tt.name,{type:Tt.type})}catch{et=new Blob([Tt],{type:Tt.type}),et.name=Tt.name,et.lastModifiedDate=new Date,et.lastModified=new Date().getTime()}et.uid=Ke.uid,Ve=et}Q(Ve,Fe)})},ie=(ge,De,qe)=>{try{typeof ge=="string"&&(ge=JSON.parse(ge))}catch{}if(!CR(De,k))return;const Fe=ZC(De);Fe.status="done",Fe.percent=100,Fe.response=ge,Fe.xhr=qe;const Ke=ew(Fe,k);Q(Fe,Ke)},G=(ge,De)=>{if(!CR(De,k))return;const qe=ZC(De);qe.status="uploading",qe.percent=ge.percent;const Fe=ew(qe,k);Q(qe,Fe,ge)},X=(ge,De,qe)=>{if(!CR(qe,k))return;const Fe=ZC(qe);Fe.error=ge,Fe.response=De,Fe.status="error";const Ke=ew(Fe,k);Q(Fe,Ke)},ne=ge=>{let De;Promise.resolve(typeof o=="function"?o(ge):o).then(qe=>{var Fe;if(qe===!1)return;const Ke=uGe(ge,k);Ke&&(De=Object.assign(Object.assign({},ge),{status:"removed"}),k==null||k.forEach(Ue=>{const Ve=De.uid!==void 0?"uid":"name";Ue[Ve]===De[Ve]&&!Object.isFrozen(Ue)&&(Ue.status="removed")}),(Fe=K.current)===null||Fe===void 0||Fe.abort(De),Q(De,Ke))})},le=ge=>{W(ge.type),ge.type==="drop"&&(u==null||u(ge))};d.useImperativeHandle(t,()=>({onBatchStart:re,onSuccess:ie,onProgress:G,onError:X,fileList:k,upload:K.current,nativeElement:L.current}));const{getPrefixCls:ce,direction:oe,upload:se}=d.useContext(Yt),fe=ce("upload",b),te=Object.assign(Object.assign({onBatchStart:re,onError:X,onProgress:G,onSuccess:ie},e),{data:_,multiple:P,action:I,accept:M,supportServerRender:T,prefixCls:fe,disabled:j,beforeUpload:ee,onChange:void 0,hasControlInside:O});delete te.className,delete te.style,(!w||j)&&delete te.id;const he=`${fe}-wrapper`,[pe,Oe,Me]=cGe(fe,he),[Se]=zi("Upload",Os.Upload),{showRemoveIcon:ye,showPreviewIcon:ve,showDownloadIcon:be,removeIcon:Pe,previewIcon:Ne,downloadIcon:U,extra:H}=typeof i=="boolean"?{}:i,q=typeof ye>"u"?!j:ye,me=(ge,De)=>i?d.createElement(gGe,{prefixCls:fe,listType:a,items:k,previewFile:f,onPreview:s,onDownload:l,onRemove:ne,showRemoveIcon:q,showPreviewIcon:ve,showDownloadIcon:be,removeIcon:Pe,previewIcon:Ne,downloadIcon:U,iconRender:m,extra:H,locale:Object.assign(Object.assign({},Se),p),isImageUrl:g,progress:v,appendAction:ge,appendActionVisible:De,itemRender:C,disabled:j}):ge,Ce=xe(he,y,D,Oe,Me,se==null?void 0:se.className,{[`${fe}-rtl`]:oe==="rtl",[`${fe}-picture-card-wrapper`]:a==="picture-card",[`${fe}-picture-circle-wrapper`]:a==="picture-circle"}),ue=Object.assign(Object.assign({},se==null?void 0:se.style),E);if(S==="drag"){const ge=xe(Oe,fe,`${fe}-drag`,{[`${fe}-drag-uploading`]:k.some(De=>De.status==="uploading"),[`${fe}-drag-hover`]:V==="dragover",[`${fe}-disabled`]:j,[`${fe}-rtl`]:oe==="rtl"});return pe(d.createElement("span",{className:Ce,ref:L},d.createElement("div",{className:ge,style:ue,onDrop:le,onDragOver:le,onDragLeave:le},d.createElement(N6,Object.assign({},te,{ref:K,className:`${fe}-btn`}),d.createElement("div",{className:`${fe}-drag-container`},w))),me()))}const Le=xe(fe,`${fe}-select`,{[`${fe}-disabled`]:j,[`${fe}-hidden`]:!w}),He=d.createElement("div",{className:Le},d.createElement(N6,Object.assign({},te,{ref:K})));return pe(a==="picture-card"||a==="picture-circle"?d.createElement("span",{className:Ce,ref:L},me(He,!!w)):d.createElement("span",{className:Ce,ref:L},He,me()))},Ale=d.forwardRef(yGe);var bGe=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 o=0,r=Object.getOwnPropertySymbols(e);o{var{style:n,height:r,hasControlInside:o=!1}=e,i=bGe(e,["style","height","hasControlInside"]);return d.createElement(Ale,Object.assign({ref:t,hasControlInside:o},i,{type:"drag",style:Object.assign(Object.assign({},n),{height:r})}))}),SP=Ale;SP.Dragger=SGe;SP.LIST_IGNORE=yy;let gn;const CGe=()=>{const e=j$.useApp();return gn=e.message,e.modal,e.notification,null};var Dle={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ro,function(){var n=function(B,Y){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ae,we){ae.__proto__=we}||function(ae,we){for(var Te in we)Object.prototype.hasOwnProperty.call(we,Te)&&(ae[Te]=we[Te])})(B,Y)},r=function(){return(r=Object.assign||function(B){for(var Y,ae=1,we=arguments.length;ae"u"||i.Promise||(i.Promise=Promise);var c=Object.getPrototypeOf,u={}.hasOwnProperty;function f(B,Y){return u.call(B,Y)}function h(B,Y){typeof Y=="function"&&(Y=Y(c(B))),(typeof Reflect>"u"?a:Reflect.ownKeys)(Y).forEach(function(ae){m(B,ae,Y[ae])})}var p=Object.defineProperty;function m(B,Y,ae,we){p(B,Y,l(ae&&f(ae,"get")&&typeof ae.get=="function"?{get:ae.get,set:ae.set,configurable:!0}:{value:ae,configurable:!0,writable:!0},we))}function g(B){return{from:function(Y){return B.prototype=Object.create(Y.prototype),m(B.prototype,"constructor",B),{extend:h.bind(null,B.prototype)}}}}var v=Object.getOwnPropertyDescriptor,b=[].slice;function y(B,Y,ae){return b.call(B,Y,ae)}function S(B,Y){return Y(B)}function w(B){if(!B)throw new Error("Assertion Failed")}function E(B){i.setImmediate?setImmediate(B):setTimeout(B,0)}function C(B,Y){if(typeof Y=="string"&&f(B,Y))return B[Y];if(!Y)return B;if(typeof Y!="string"){for(var ae=[],we=0,Te=Y.length;we"u"?[]:function(){var B=Promise.resolve();if(typeof crypto>"u"||!crypto.subtle)return[B,c(B),B];var Y=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[Y,c(Y),B]}(),Ne=Rn[0],As=Rn[1],Rn=Rn[2],As=As&&As.then,U=Ne&&Ne.constructor,H=!!Rn,q=function(B,Y){qe.push([B,Y]),Ce&&(queueMicrotask(Lt),Ce=!1)},me=!0,Ce=!0,ue=[],Le=[],He=se,ge={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:oe,pgp:!1,env:{},finalize:oe},De=ge,qe=[],Fe=0,Ke=[];function Ue(B){if(typeof this!="object")throw new TypeError("Promises must be constructed via new");this._listeners=[],this._lib=!1;var Y=this._PSD=De;if(typeof B!="function"){if(B!==be)throw new TypeError("Not a function");return this._state=arguments[1],this._value=arguments[2],void(this._state===!1&&et(this,this._value))}this._state=null,this._value=null,++Y.ref,function ae(we,Te){try{Te(function(Ie){if(we._state===null){if(Ie===we)throw new TypeError("A promise cannot be resolved with itself.");var ze=we._lib&&St();Ie&&typeof Ie.then=="function"?ae(we,function(Ye,nt){Ie instanceof Ue?Ie._then(Ye,nt):Ie.then(Ye,nt)}):(we._state=!0,we._value=Ie,st(we)),ze&&wt()}},et.bind(null,we))}catch(Ie){et(we,Ie)}}(this,B)}var Ve={get:function(){var B=De,Y=Mt;function ae(we,Te){var Ie=this,ze=!B.global&&(B!==De||Y!==Mt),Ye=ze&&!Rt(),nt=new Ue(function(ot,ct){yt(Ie,new Tt(xt(we,B,ze,Ye),xt(Te,B,ze,Ye),ot,ct,B))});return this._consoleTask&&(nt._consoleTask=this._consoleTask),nt}return ae.prototype=be,ae},set:function(B){m(this,"then",B&&B.prototype===be?Ve:{get:function(){return B},set:Ve.set})}};function Tt(B,Y,ae,we,Te){this.onFulfilled=typeof B=="function"?B:null,this.onRejected=typeof Y=="function"?Y:null,this.resolve=ae,this.reject=we,this.psd=Te}function et(B,Y){var ae,we;Le.push(Y),B._state===null&&(ae=B._lib&&St(),Y=He(Y),B._state=!1,B._value=Y,we=B,ue.some(function(Te){return Te._value===we._value})||ue.push(we),st(B),ae&&wt())}function st(B){var Y=B._listeners;B._listeners=[];for(var ae=0,we=Y.length;ae.",tt="String expected.",Ot=[],Pt="__dbnames",pn="readonly",Pn="readwrite";function $(B,Y){return B?Y?function(){return B.apply(this,arguments)&&Y.apply(this,arguments)}:B:Y}var R={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function J(B){return typeof B!="string"||/\./.test(B)?function(Y){return Y}:function(Y){return Y[B]===void 0&&B in Y&&delete(Y=T(Y))[B],Y}}function Ee(){throw ne.Type()}function ke(B,Y){try{var ae=Je(B),we=Je(Y);if(ae!==we)return ae==="Array"?1:we==="Array"?-1:ae==="binary"?1:we==="binary"?-1:ae==="string"?1:we==="string"?-1:ae==="Date"?1:we!=="Date"?NaN:-1;switch(ae){case"number":case"Date":case"string":return Yjt+Ut&&_t(jt+ct)})})}var kt=Nr(ae)&&ae.limit===1/0&&(typeof B!="function"||B===Yr)&&{index:ae.index,range:ae.range};return _t(0).then(function(){if(0=mt})).length!==0?(ct.forEach(function(_t){ht.push(function(){var kt=it,jt=_t._cfg.dbschema;KS(Qe,kt,lt),KS(Qe,jt,lt),it=Qe._dbSchema=jt;var Ut=GO(kt,jt);Ut.add.forEach(function(bn){YO(lt,bn[0],bn[1].primKey,bn[1].indexes)}),Ut.change.forEach(function(bn){if(bn.recreate)throw new ne.Upgrade("Not yet support for changing primary key");var hn=lt.objectStore(bn.name);bn.add.forEach(function(_n){return WS(hn,_n)}),bn.change.forEach(function(_n){hn.deleteIndex(_n.name),WS(hn,_n)}),bn.del.forEach(function(_n){return hn.deleteIndex(_n)})});var sn=_t._cfg.contentUpgrade;if(sn&&_t._cfg.version>mt){HS(Qe,lt),rt._memoizedTables={};var mn=_(jt);Ut.del.forEach(function(bn){mn[bn]=kt[bn]}),qO(Qe,[Qe.Transaction.prototype]),US(Qe,[Qe.Transaction.prototype],a(mn),mn),rt.schema=mn;var ln,dn=K(sn);return dn&&dt(),Ut=Ue.follow(function(){var bn;(ln=sn(rt))&&dn&&(bn=Rt.bind(null,null),ln.then(bn,bn))}),ln&&typeof ln.then=="function"?Ue.resolve(ln):Ut.then(function(){return ln})}}),ht.push(function(kt){var jt,Ut,sn=_t._cfg.dbschema;jt=sn,Ut=kt,[].slice.call(Ut.db.objectStoreNames).forEach(function(mn){return jt[mn]==null&&Ut.db.deleteObjectStore(mn)}),qO(Qe,[Qe.Transaction.prototype]),US(Qe,[Qe.Transaction.prototype],Qe._storeNames,Qe._dbSchema),rt.schema=Qe._dbSchema}),ht.push(function(kt){Qe.idbdb.objectStoreNames.contains("$meta")&&(Math.ceil(Qe.idbdb.version/10)===_t._cfg.version?(Qe.idbdb.deleteObjectStore("$meta"),delete Qe._dbSchema.$meta,Qe._storeNames=Qe._storeNames.filter(function(jt){return jt!=="$meta"})):kt.objectStore("$meta").put(_t._cfg.version,"version"))})}),function _t(){return ht.length?Ue.resolve(ht.shift()(rt.idbtrans)).then(_t):Ue.resolve()}().then(function(){eL(it,lt)})):Ue.resolve();var Qe,mt,rt,lt,ht,it}).catch(ze)):(a(Te).forEach(function(ct){YO(ae,ct,Te[ct].primKey,Te[ct].indexes)}),HS(B,ae),void Ue.follow(function(){return B.on.populate.fire(Ie)}).catch(ze));var nt,ot})}function Xpe(B,Y){eL(B._dbSchema,Y),Y.db.version%10!=0||Y.objectStoreNames.contains("$meta")||Y.db.createObjectStore("$meta").add(Math.ceil(Y.db.version/10-1),"version");var ae=VS(0,B.idbdb,Y);KS(B,B._dbSchema,Y);for(var we=0,Te=GO(ae,B._dbSchema).change;weMath.pow(2,62)?0:it.oldVersion,Qe=it<1,B.idbdb=ht.result,Ie&&Xpe(B,ct),Ype(B,it/10,ct,rt))},rt),ht.onsuccess=We(function(){ct=null;var it,_t,kt,jt,Ut,sn=B.idbdb=ht.result,mn=y(sn.objectStoreNames);if(0"u"?Ue.resolve():!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent)&&indexedDB.databases?new Promise(function(mt){function rt(){return indexedDB.databases().finally(mt)}nt=setInterval(rt,100),rt()}).finally(function(){return clearInterval(nt)}):Promise.resolve()).then(Ye)]).then(function(){return ze(),Y.onReadyBeingFired=[],Ue.resolve(JO(function(){return B.on.ready.fire(B.vip)})).then(function mt(){if(0Y.limit?mt.length=Y.limit:B.length===Y.limit&&mt.length=_t.limit&&(!_t.values||sn.req.values)&&rme(sn.req.query.range,_t.query.range)}),!1,kt,jt];case"count":return Ut=jt.find(function(sn){return dL(sn.req.query.range,_t.query.range)}),[Ut,!!Ut,kt,jt]}}(Y,ae,"query",Ie),ct=ot[0],Qe=ot[1],mt=ot[2],rt=ot[3];return ct&&Qe?ct.obsSet=Ie.obsSet:(Qe=we.query(Ie).then(function(lt){var ht=lt.result;if(ct&&(ct.res=ht),ze){for(var it=0,_t=ht.length;it<_t;++it)Object.freeze(ht[it]);Object.freeze(ht)}else lt.result=T(ht);return lt}).catch(function(lt){return rt&&ct&&F(rt,ct),Promise.reject(lt)}),ct={obsSet:Ie.obsSet,promise:Qe,subscribers:new Set,type:"query",req:Ie,dirty:!1},rt?rt.push(ct):(rt=[ct],(mt=mt||(Kf["idb://".concat(Y,"/").concat(ae)]={queries:{query:{},count:{}},objs:new Map,optimisticOps:[],unsignaledParts:{}})).queries.query[Ie.query.index.name||""]=rt)),ome(ct,rt,Ye,nt),ct.promise.then(function(lt){return{result:uL(lt.result,Ie,mt==null?void 0:mt.optimisticOps,we,ct,ze)}})}})}})}};function JS(B,Y){return new Proxy(B,{get:function(ae,we,Te){return we==="db"?Y:Reflect.get(ae,we,Te)}})}var hu=(Wo.prototype.version=function(B){if(isNaN(B)||B<.1)throw new ne.Type("Given version is not a positive number");if(B=Math.round(10*B)/10,this.idbdb||this._state.isBeingOpened)throw new ne.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,B);var Y=this._versions,ae=Y.filter(function(we){return we._cfg.version===B})[0];return ae||(ae=new this.Version(B),Y.push(ae),Y.sort(Gpe),ae.stores({}),this._state.autoSchema=!1,ae)},Wo.prototype._whenReady=function(B){var Y=this;return this.idbdb&&(this._state.openComplete||De.letThrough||this._vip)?B():new Ue(function(ae,we){if(Y._state.openComplete)return we(new ne.DatabaseClosed(Y._state.dbOpenError));if(!Y._state.isBeingOpened){if(!Y._state.autoOpen)return void we(new ne.DatabaseClosed);Y.open().catch(oe)}Y._state.dbReadyPromise.then(ae,we)}).then(B)},Wo.prototype.use=function(B){var Y=B.stack,ae=B.create,we=B.level,Te=B.name;return Te&&this.unuse({stack:Y,name:Te}),B=this._middlewares[Y]||(this._middlewares[Y]=[]),B.push({stack:Y,create:ae,level:we??10,name:Te}),B.sort(function(Ie,ze){return Ie.level-ze.level}),this},Wo.prototype.unuse=function(B){var Y=B.stack,ae=B.name,we=B.create;return Y&&this._middlewares[Y]&&(this._middlewares[Y]=this._middlewares[Y].filter(function(Te){return we?Te.create!==we:!!ae&&Te.name!==ae})),this},Wo.prototype.open=function(){var B=this;return Bt(ge,function(){return Jpe(B)})},Wo.prototype._close=function(){var B=this._state,Y=Ot.indexOf(this);if(0<=Y&&Ot.splice(Y,1),this.idbdb){try{this.idbdb.close()}catch{}this.idbdb=null}B.isBeingOpened||(B.dbReadyPromise=new Ue(function(ae){B.dbReadyResolve=ae}),B.openCanceller=new Ue(function(ae,we){B.cancelOpen=we}))},Wo.prototype.close=function(ae){var Y=(ae===void 0?{disableAutoOpen:!0}:ae).disableAutoOpen,ae=this._state;Y?(ae.isBeingOpened&&ae.cancelOpen(new ne.DatabaseClosed),this._close(),ae.autoOpen=!1,ae.dbOpenError=new ne.DatabaseClosed):(this._close(),ae.autoOpen=this._options.autoOpen||ae.isBeingOpened,ae.openComplete=!1,ae.dbOpenError=null)},Wo.prototype.delete=function(B){var Y=this;B===void 0&&(B={disableAutoOpen:!0});var ae=0({uid:r.uid||"",type:r.type||"",content:r.content||"",client:r.client||"",createdAt:r.createdAt||"",status:r.status||"",threadTopic:r.threadTopic||"",user:{uid:r.userUid||"",nickname:r.userNickname||"",avatar:r.userAvatar||""}}))}async getMessage(n){return await Hs.messages.get(n)}async updateMessage(n,r){return await Hs.messages.update(n,{content:r})}async deleteMessage(n){return await Hs.messages.delete(n)}subscribeMessages(){xGe(()=>this.messages.toArray()).subscribe({next:r=>{const o=r.map(i=>i.uid);console.log("messagesObservable message uids",o)}})}async createThread(n){var r,o,i;return console.log("useIndexedDB createThread",n.topic),await Hs.threads.put({uid:n.uid,type:n.type,topic:n.topic,state:n.state,extra:n.extra,updatedAt:n.updatedAt,userUid:(r=n.user)==null?void 0:r.uid,userNickname:(o=n.user)==null?void 0:o.nickname,userAvatar:(i=n.user)==null?void 0:i.avatar})}async getAllThreads(){return(await Hs.threads.toArray()).map(r=>({uid:r.uid||"",type:r.type||"",topic:r.topic||"",status:r.state||"",extra:r.extra||"",createdAt:r.updatedAt||"",user:{uid:r.userUid||"",nickname:r.userNickname||"",avatar:r.userAvatar||""}}))}async getThread(n){return await Hs.threads.get(n)}async updateThread(n,r){return await Hs.threads.update(n,r)}async deleteThread(n){return await Hs.threads.delete(n)}}const Hs=new jle;let jo,Ra,Ia,ym=!1;const EGe=({uid:e,username:t,accessToken:n})=>{if(n===""||n==null){console.log("accessToken is empty, don't connect mqtt");return}if(Ra=vi.getState().userInfo,Ia=jp.getState().agentInfo,ym){console.log("mqtt is connecting");return}if(jo&&jo.connected){console.log("mqtt already connected");return}if(jo&&jo.reconnecting){console.log("mqtt already reconnecting");return}ym=!0;const r=vi.getState().deviceUid,i={keepalive:30,clientId:e+"/"+po+"/"+r,username:t,password:n,clean:!1,path:"/websocket",reconnectPeriod:5e3,connectTimeout:30*1e3,reschedulePings:!0,rejectUnauthorized:!1,log(...a){Ag&&console.log("mqtt debug log",...a)}};console.log("mqtt start connect:",i),jo=KCe.connect(Q1e(),i),jo.on("connect",()=>{console.log("mqtt event connected"),ym=!1,Jn.emit(mk)}),jo.on("message",async function(a,s,l){console.log("mqtt receive message topic:",a,l);const c=tee.Message.deserializeBinary(s),u=Ll.getState().currentThread,f={uid:c.getThread().getUid(),type:c.getThread().getType(),topic:c.getThread().getTopic(),content:c.getContent(),updatedAt:c.getCreatedat(),unreadCount:0,user:{uid:c.getThread().getUser().getUid(),nickname:c.getThread().getUser().getNickname(),avatar:c.getThread().getUser().getAvatar()}},h={uid:c.getUid(),createdAt:c.getCreatedat(),client:c.getClient(),type:c.getType(),status:c.getStatus(),user:{uid:c.getUser().getUid(),nickname:c.getUser().getNickname(),avatar:c.getUser().getAvatar()},content:c.getContent(),threadTopic:c.getThread().getTopic()};if(OGe(c,Ra,Ia))switch(c.getType()){case Mk:case Ok:xR(c);return;case $k:case Pk:return;case K7:return;case G7:console.log("self transfer message"),RW(h,f);break;case Y7:console.log("self transfer accept message"),IW(h,f);return;case X7:console.log("self transfer reject message"),kW(h,f);return;case q7:console.log("self recall message"),NW(h);return;case Pb:console.log("thread closed message"),Ll.getState().closeThread(f.topic);break;default:c.setStatus(Ek)}else switch(c.getType()){case Mk:case Ok:xR(c);return;case $k:case Pk:TW(u,f,c.getType());return;case _b:TW(u,f,c.getType());break;case K7:MGe(c,u,f);return;case fye:case hye:case pye:case mye:case gye:case vye:xR(c);return;case G7:console.log("transfer message"),RW(h,f);break;case Y7:console.log("transfer accept message"),IW(h,f);return;case X7:console.log("transfer reject message"),kW(h,f);return;case q7:console.log("recall message"),NW(h);return;case $b:case Pb:console.log("thread closed message"),Ll.getState().closeThread(f.topic);break;default:console.log("send receive message type",c.getType()),TGe(c,u,f)}console.log("mqtt message received",a,h,f),hd.getState().addMessage(h),Jn.emit(xb,h);const p=Ll.getState().addThreadWithMessage(f,h);console.log("unreadCount",p);try{await Hs.createMessage(h),console.log("Sent message stored in IndexedDB:",h)}catch(m){console.error("Error storing sent message in IndexedDB:",m)}}),jo.on("packetsend",a=>{console.log("mqtt event packetsend",a)}),jo.on("packetreceive",a=>{console.log("mqtt event packetreceive",a,a.cmd),a.cmd==="publish"||a.cmd==="pingresp"&&console.log("mqtt event packetreceive pingresp")}),jo.on("reconnect",()=>{console.log("mqtt event reconnect")}),jo.on("close",()=>{console.log("mqtt event close"),ym=!1,Jn.emit(vk)}),jo.on("disconnect",()=>{console.error("mqtt event disconnected"),ym=!1,Jn.emit(yk)}),jo.on("offline",()=>{console.log("mqtt event offline"),ym=!1,Jn.emit(gk)}),jo.on("error",()=>{console.log("mqtt event error"),Jn.emit(bk)}),jo.on("end",()=>{console.log("mqtt event end"),Jn.emit(Sk)})},OW=new Set,Fle=(e,t)=>{console.log("mqtt mqttSendReceiptReceivedMessage",e),OW.has(e)||(OW.add(e),Lle(Y_(),Ok,e,t))},MW=new Set,_Ge=(e,t)=>{console.log("mqtt mqttSendReceiptReadMessage",e),MW.has(e)||(MW.add(e),Lle(Y_(),Mk,e,t))},Lle=async(e,t,n,r)=>{var i,a,s,l,c,u,f,h;console.log("mqtt mqttSendMessage",n);const o=a_e();if(jo&&jo.connected){const p=new GCe.Thread;p.setUid(r.uid),p.setType(r.type),p.setTopic(r.topic);const m=new i9.User;m.setUid((i=r.user)==null?void 0:i.uid),m.setNickname((a=r.user)==null?void 0:a.nickname),m.setAvatar((s=r.user)==null?void 0:s.avatar),p.setUser(m);const g=new i9.User;(Ia==null?void 0:Ia.uid)!=""&&((r==null?void 0:r.type)===z7||(r==null?void 0:r.type)===H7)?(g.setUid(Ia.uid),g.setNickname(Ia.nickname),g.setAvatar(Ia.avatar),g.setType(L7)):(g.setUid(Ra.uid),g.setNickname(Ra.nickname),g.setAvatar(Ra.avatar),g.setType(B7));const v={orgUid:(l=Ra==null?void 0:Ra.currentOrganization)==null?void 0:l.uid},b=new tee.Message;b.setUid(e),b.setType(t),b.setStatus(V7),b.setCreatedat(o),b.setClient(po),b.setContent(n),b.setUser(g),b.setThread(p),b.setExtra(JSON.stringify(v));const y=b.serializeBinary();jo.publish(r.topic,y);try{const S={uid:b.getUid(),type:b.getType(),content:b.getContent(),client:b.getClient(),createdAt:b.getCreatedat(),status:b.getStatus(),threadTopic:b.getThread().getTopic(),user:{uid:b.getUser().getUid(),nickname:b.getUser().getNickname(),avatar:b.getUser().getAvatar()}};await Hs.createMessage(S),console.log("Sent message stored in IndexedDB:",S)}catch(S){console.error("Error storing sent message in IndexedDB:",S)}}else{console.log("mqttClient is disconnect, use http rest api");const p={uid:r.uid,type:r.type,topic:r.topic,user:{uid:(c=r.user)==null?void 0:c.uid,nickname:(u=r.user)==null?void 0:u.nickname,avatar:(f=r.user)==null?void 0:f.avatar}};let m;(Ia==null?void 0:Ia.uid)!=""&&((r==null?void 0:r.type)===z7||(r==null?void 0:r.type)===H7)?m={uid:Ia.uid,nickname:Ia.nickname,avatar:Ia.avatar,type:L7}:m={uid:Ra.uid,nickname:Ra.nickname,avatar:Ra.avatar,type:B7};const g={orgUid:(h=Ra==null?void 0:Ra.currentOrganization)==null?void 0:h.uid},v={uid:e,type:t,status:V7,createdAt:o,client:po,content:n,extra:JSON.stringify(g),user:m,thread:p};PGe(v)}},wR=()=>{jo?jo.end():console.log("mqttClient is null")},$Ge=()=>jo&&jo.connected,PGe=async e=>{const t=JSON.stringify(e),n=await rSe(t);if(console.log("sendHttpMessage:",n.data),n.data.code===200){hd.getState().updateMessageStatus(e==null?void 0:e.uid,Ek);const r={uid:e==null?void 0:e.uid,type:Ek};Jn.emit(xQ,JSON.stringify(r))}else gn.error(n.data.message)},OGe=(e,t,n)=>e.getUser().getUid()===(t==null?void 0:t.uid)||e.getUser().getUid()===(n==null?void 0:n.uid);function xR(e){console.log("update message status:",e.getContent(),e.getType()),hd.getState().updateMessageStatus(e.getContent(),e.getType());const t={uid:e.getContent(),type:e.getType()};Jn.emit(xQ,JSON.stringify(t))}function TW(e,t,n){(e==null?void 0:e.topic)===(t==null?void 0:t.topic)&&(n===$k?Jn.emit(M0e):n===Pk?Jn.emit(T0e):n===_b&&Jn.emit(R0e))}function MGe(e,t,n){(t==null?void 0:t.topic)===(n==null?void 0:n.topic)&&Jn.emit(I0e,e.getContent())}function RW(e,t){const n={message:e,thread:t};Jn.emit(Ck,JSON.stringify(n))}function IW(e,t){const n=JSON.parse(e==null?void 0:e.content);hd.getState().updateMessageStatus(n.uid,oye);const r={message:e,thread:t};Jn.emit(wk,JSON.stringify(r))}function kW(e,t){const n=JSON.parse(e==null?void 0:e.content);hd.getState().updateMessageStatus(n.uid,iye);const r={message:e,thread:t};Jn.emit(xk,JSON.stringify(r))}function NW(e){console.log("handleRecallMessage",e==null?void 0:e.uid,e==null?void 0:e.content),hd.getState().recallMessage(e==null?void 0:e.content)}function TGe(e,t,n){if(!u_e(n==null?void 0:n.topic)&&s_e(e==null?void 0:e.getType())){const r=e==null?void 0:e.getUid();Fle(r,n),(t==null?void 0:t.topic)===(n==null?void 0:n.topic)&&_Ge(r,n)}}const RGe=hl()(uc(dc(fc(e=>({devices:[],currentDevice:{uid:""},myDevice:{uid:""},addDevice(t){console.log("addDevice",t)},setCurrentDevice:t=>{e({currentDevice:t})},setMyDevice(t){e({myDevice:t})},resetDeviceInfo(){}})),{name:H0e}))),Ble=()=>{Qb("https://www.weiyuai.cn/docs/zh-CN/")},Qb=e=>{Pi?window.electronAPI.openUrl(e):window.open(e,"_blank")},IGe=async()=>{if(Pi){const e=await window.electronAPI.getSystemInfo();console.log("systemInfo:",e)}else return console.log("not electron"),{platform:"web"}},zle=async()=>Pi?await window.electronAPI.getIpAddress():(console.log("not electron"),[]),kGe=async()=>{if(Pi){const e=await window.electronAPI.isWindowActive();return console.log("isWindowActive:",e),e}return null},NGe=(e,t)=>{Pi&&window.electronAPI.showElectronNotification(e,t)},AGe=e=>{Pi?window.electronAPI.setThemeMode(e):console.log("not electron")},D6=()=>{Pi&&window.electronAPI.loginSuccess()},DGe=()=>{Pi&&window.electronAPI.logoutSuccess()};function Hle(){console.debug("useUserInfo");const[e,t]=d.useState(""),{myDevice:n,setMyDevice:r}=RGe(_=>({myDevice:_.myDevice,setMyDevice:_.setMyDevice})),{userInfo:o,deviceUid:i,setUserInfo:a,setDeviceUid:s}=vi(_=>({userInfo:_.userInfo,deviceUid:_.deviceUid,setUserInfo:_.setUserInfo,setDeviceUid:_.setDeviceUid})),{agentInfo:l}=jp(_=>({agentInfo:_.agentInfo})),c=hd(_=>_.addMessage),u=Ll(_=>_.updateThreadContent),f=d.useRef(!1),[h,p]=d.useState(!1);d.useEffect(()=>{p(!1),o.userOrganizationRoles&&o.userOrganizationRoles.forEach(_=>{_.roles.forEach(P=>{P.name===Sye&&p(!0)})})},[o.userOrganizationRoles]);const[m,g]=d.useState(!1);d.useEffect(()=>{g(!1),o.userOrganizationRoles&&o.userOrganizationRoles.forEach(_=>{_.roles.forEach(P=>{P.name===Cye&&g(!0)})})},[o.userOrganizationRoles]);const[v,b]=d.useState(!1);d.useEffect(()=>{b(!1),o.userOrganizationRoles&&o.userOrganizationRoles.forEach(_=>{_.roles.forEach(P=>{P.name===wye&&b(!0)})})},[o.userOrganizationRoles]);const[y,S]=d.useState(!1);d.useEffect(()=>{S(!1),o.userOrganizationRoles&&o.userOrganizationRoles.forEach(_=>{_.roles.forEach(P=>{P.name===xye&&S(!0)})})},[o.userOrganizationRoles]);const w="",E=async()=>{const _=await zle();console.log("ipAddress",e,_),_.length>0&&(t(_[0]),n.ip=_[0],r(n))},C=async()=>{var P,O;if(f.current)return;f.current=!0;const _=await nSe(l==null?void 0:l.uid);console.log("getAgentMessageUnread response:",_==null?void 0:_.data),(O=(P=_==null?void 0:_.data)==null?void 0:P.data)==null||O.forEach(I=>{console.log("getAgentMessageUnread item:",I),c(I);const M=u(I.threadTopic,I.content);M&&Fle(I==null?void 0:I.uid,M)}),f.current=!1};return d.useEffect(()=>{y&&C()},[y]),d.useEffect(()=>{console.log("useUserInfo useEffect"),(i===void 0||i==="")&&s(Y_()),E()},[]),{userInfo:o,setUserInfo:a,agentInfo:l,handleUpdateAgentStatus:async _=>{const P={...l,status:_};gn.loading("正在更新状态");const O=await tSe(P);console.log("updateAgentStatus:",_,O.data),O.data.code===200?(gn.destroy(),gn.success("状态更新成功")):(gn.destroy(),gn.error("状态更新失败"))},avatar:w,hasRoleAgent:y,hasRoleSuper:h,hasRoleAdmin:m,hasRoleMember:v}}const ia=d.createContext({}),jGe=({children:e})=>{const[t,n]=d.useState(!1),[r,o]=d.useState(!1),i=_1(P=>P.accessToken),a=Eye(P=>P.settings),{userInfo:s,setUserInfo:l,agentInfo:c,handleUpdateAgentStatus:u,hasRoleAgent:f,hasRoleSuper:h,hasRoleAdmin:p,hasRoleMember:m}=Hle(),g=d.useMemo(()=>!!i&&i.trim().length>0,[i]),{themeMode:v,setThemeMode:b,isDarkMode:y}=FQ(),[S,w]=d.useState(SC),E=P=>{let O;P==="en"?O=tB:P==="zh-cn"?O=SC:P==="zh-tw"?O=bbe:O=SC,console.log("changeLocale localeValue:",O),w(O),localStorage.setItem(N7,O.locale)},[C,x]=d.useState(Zm),_=P=>{x(P),localStorage.setItem(A7,P)};return d.useEffect(()=>{const P=localStorage.getItem(N7);w(P==="en"?tB:SC);const O=localStorage.getItem(A7);x(O===Zm?Zm:O===sp?sp:a2)},[]),N.jsx(ia.Provider,{value:{isCustomServer:t,setIsCustomServer:n,isLoggedIn:g,settings:a,isDarkMode:y,themeMode:v,setThemeMode:b,locale:S,changeLocale:E,mode:C,changeMode:_,isPingLoading:r,setPingLoading:o,userInfo:s,setUserInfo:l,agentInfo:c,handleUpdateAgentStatus:u,hasRoleAgent:f,hasRoleSuper:h,hasRoleAdmin:p,hasRoleMember:m},children:e})};var CP=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},wP=typeof window>"u"||"Deno"in globalThis;function Ml(){}function FGe(e,t){return typeof e=="function"?e(t):e}function LGe(e){return typeof e=="number"&&e>=0&&e!==1/0}function BGe(e,t){return Math.max(e+(t||0)-Date.now(),0)}function AW(e,t){return typeof e=="function"?e(t):e}function zGe(e,t){return typeof e=="function"?e(t):e}function DW(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:a,stale:s}=e;if(a){if(r){if(t.queryHash!==QD(a,t.options))return!1}else if(!Zb(t.queryKey,a))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||o&&o!==t.state.fetchStatus||i&&!i(t))}function jW(e,t){const{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(Jb(t.options.mutationKey)!==Jb(i))return!1}else if(!Zb(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function QD(e,t){return((t==null?void 0:t.queryKeyHashFn)||Jb)(e)}function Jb(e){return JSON.stringify(e,(t,n)=>j6(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function Zb(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Zb(e[n],t[n])):!1}function Ule(e,t){if(e===t)return e;const n=FW(e)&&FW(t);if(n||j6(e)&&j6(t)){const r=n?e:Object.keys(e),o=r.length,i=n?t:Object.keys(t),a=i.length,s=n?[]:{};let l=0;for(let c=0;c{setTimeout(t,e)})}function UGe(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Ule(e,t):t}function WGe(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function VGe(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var JD=Symbol();function Wle(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===JD?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Nh,Wd,gg,zG,KGe=(zG=class extends CP{constructor(){super();Tn(this,Nh);Tn(this,Wd);Tn(this,gg);cn(this,gg,t=>{if(!wP&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){Ae(this,Wd)||this.setEventListener(Ae(this,gg))}onUnsubscribe(){var t;this.hasListeners()||((t=Ae(this,Wd))==null||t.call(this),cn(this,Wd,void 0))}setEventListener(t){var n;cn(this,gg,t),(n=Ae(this,Wd))==null||n.call(this),cn(this,Wd,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){Ae(this,Nh)!==t&&(cn(this,Nh,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof Ae(this,Nh)=="boolean"?Ae(this,Nh):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Nh=new WeakMap,Wd=new WeakMap,gg=new WeakMap,zG),Vle=new KGe,vg,Vd,yg,HG,qGe=(HG=class extends CP{constructor(){super();Tn(this,vg,!0);Tn(this,Vd);Tn(this,yg);cn(this,yg,t=>{if(!wP&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){Ae(this,Vd)||this.setEventListener(Ae(this,yg))}onUnsubscribe(){var t;this.hasListeners()||((t=Ae(this,Vd))==null||t.call(this),cn(this,Vd,void 0))}setEventListener(t){var n;cn(this,yg,t),(n=Ae(this,Vd))==null||n.call(this),cn(this,Vd,t(this.setOnline.bind(this)))}setOnline(t){Ae(this,vg)!==t&&(cn(this,vg,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return Ae(this,vg)}},vg=new WeakMap,Vd=new WeakMap,yg=new WeakMap,HG),hE=new qGe;function GGe(){let e,t;const n=new Promise((o,i)=>{e=o,t=i});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}function YGe(e){return Math.min(1e3*2**e,3e4)}function Kle(e){return(e??"online")==="online"?hE.isOnline():!0}var qle=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function ER(e){return e instanceof qle}function Gle(e){let t=!1,n=0,r=!1,o;const i=GGe(),a=g=>{var v;r||(h(new qle(g)),(v=e.abort)==null||v.call(e))},s=()=>{t=!0},l=()=>{t=!1},c=()=>Vle.isFocused()&&(e.networkMode==="always"||hE.isOnline())&&e.canRun(),u=()=>Kle(e.networkMode)&&e.canRun(),f=g=>{var v;r||(r=!0,(v=e.onSuccess)==null||v.call(e,g),o==null||o(),i.resolve(g))},h=g=>{var v;r||(r=!0,(v=e.onError)==null||v.call(e,g),o==null||o(),i.reject(g))},p=()=>new Promise(g=>{var v;o=b=>{(r||c())&&g(b)},(v=e.onPause)==null||v.call(e)}).then(()=>{var g;o=void 0,r||(g=e.onContinue)==null||g.call(e)}),m=()=>{if(r)return;let g;const v=n===0?e.initialPromise:void 0;try{g=v??e.fn()}catch(b){g=Promise.reject(b)}Promise.resolve(g).then(f).catch(b=>{var C;if(r)return;const y=e.retry??(wP?0:3),S=e.retryDelay??YGe,w=typeof S=="function"?S(n,b):S,E=y===!0||typeof y=="number"&&nc()?void 0:p()).then(()=>{t?h(b):m()})})};return{promise:i,cancel:a,continue:()=>(o==null||o(),i),cancelRetry:s,continueRetry:l,canStart:u,start:()=>(u()?m():p().then(m),i)}}function XGe(){let e=[],t=0,n=s=>{s()},r=s=>{s()},o=s=>setTimeout(s,0);const i=s=>{t?e.push(s):o(()=>{n(s)})},a=()=>{const s=e;e=[],s.length&&o(()=>{r(()=>{s.forEach(l=>{n(l)})})})};return{batch:s=>{let l;t++;try{l=s()}finally{t--,t||a()}return l},batchCalls:s=>(...l)=>{i(()=>{s(...l)})},schedule:i,setNotifyFunction:s=>{n=s},setBatchNotifyFunction:s=>{r=s},setScheduler:s=>{o=s}}}var ya=XGe(),Ah,UG,Yle=(UG=class{constructor(){Tn(this,Ah)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),LGe(this.gcTime)&&cn(this,Ah,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(wP?1/0:5*60*1e3))}clearGcTimeout(){Ae(this,Ah)&&(clearTimeout(Ae(this,Ah)),cn(this,Ah,void 0))}},Ah=new WeakMap,UG),bg,Sg,Ws,Yi,g1,Dh,Tl,wu,WG,QGe=(WG=class extends Yle{constructor(t){super();Tn(this,Tl);Tn(this,bg);Tn(this,Sg);Tn(this,Ws);Tn(this,Yi);Tn(this,g1);Tn(this,Dh);cn(this,Dh,!1),cn(this,g1,t.defaultOptions),this.setOptions(t.options),this.observers=[],cn(this,Ws,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,cn(this,bg,ZGe(this.options)),this.state=t.state??Ae(this,bg),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=Ae(this,Yi))==null?void 0:t.promise}setOptions(t){this.options={...Ae(this,g1),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&Ae(this,Ws).remove(this)}setData(t,n){const r=UGe(this.state.data,t,this.options);return wn(this,Tl,wu).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){wn(this,Tl,wu).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=Ae(this,Yi))==null?void 0:r.promise;return(o=Ae(this,Yi))==null||o.cancel(t),n?n.then(Ml).catch(Ml):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(Ae(this,bg))}isActive(){return this.observers.some(t=>zGe(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===JD||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!BGe(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=Ae(this,Yi))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=Ae(this,Yi))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),Ae(this,Ws).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(Ae(this,Yi)&&(Ae(this,Dh)?Ae(this,Yi).cancel({revert:!0}):Ae(this,Yi).cancelRetry()),this.scheduleGc()),Ae(this,Ws).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||wn(this,Tl,wu).call(this,{type:"invalidate"})}fetch(t,n){var l,c,u;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(Ae(this,Yi))return Ae(this,Yi).continueRetry(),Ae(this,Yi).promise}if(t&&this.setOptions(t),!this.options.queryFn){const f=this.observers.find(h=>h.options.queryFn);f&&this.setOptions(f.options)}const r=new AbortController,o=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(cn(this,Dh,!0),r.signal)})},i=()=>{const f=Wle(this.options,n),h={queryKey:this.queryKey,meta:this.meta};return o(h),cn(this,Dh,!1),this.options.persister?this.options.persister(f,h,this):f(h)},a={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:i};o(a),(l=this.options.behavior)==null||l.onFetch(a,this),cn(this,Sg,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=a.fetchOptions)==null?void 0:c.meta))&&wn(this,Tl,wu).call(this,{type:"fetch",meta:(u=a.fetchOptions)==null?void 0:u.meta});const s=f=>{var h,p,m,g;ER(f)&&f.silent||wn(this,Tl,wu).call(this,{type:"error",error:f}),ER(f)||((p=(h=Ae(this,Ws).config).onError)==null||p.call(h,f,this),(g=(m=Ae(this,Ws).config).onSettled)==null||g.call(m,this.state.data,f,this)),this.scheduleGc()};return cn(this,Yi,Gle({initialPromise:n==null?void 0:n.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:f=>{var h,p,m,g;if(f===void 0){s(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(v){s(v);return}(p=(h=Ae(this,Ws).config).onSuccess)==null||p.call(h,f,this),(g=(m=Ae(this,Ws).config).onSettled)==null||g.call(m,f,this.state.error,this),this.scheduleGc()},onError:s,onFail:(f,h)=>{wn(this,Tl,wu).call(this,{type:"failed",failureCount:f,error:h})},onPause:()=>{wn(this,Tl,wu).call(this,{type:"pause"})},onContinue:()=>{wn(this,Tl,wu).call(this,{type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0})),Ae(this,Yi).start()}},bg=new WeakMap,Sg=new WeakMap,Ws=new WeakMap,Yi=new WeakMap,g1=new WeakMap,Dh=new WeakMap,Tl=new WeakSet,wu=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...JGe(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=t.error;return ER(o)&&o.revert&&Ae(this,Sg)?{...Ae(this,Sg),fetchStatus:"idle"}:{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),ya.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),Ae(this,Ws).notify({query:this,type:"updated",action:t})})},WG);function JGe(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Kle(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function ZGe(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Mc,VG,eYe=(VG=class extends CP{constructor(t={}){super();Tn(this,Mc);this.config=t,cn(this,Mc,new Map)}build(t,n,r){const o=n.queryKey,i=n.queryHash??QD(o,n);let a=this.get(i);return a||(a=new QGe({cache:this,queryKey:o,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(a)),a}add(t){Ae(this,Mc).has(t.queryHash)||(Ae(this,Mc).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=Ae(this,Mc).get(t.queryHash);n&&(t.destroy(),n===t&&Ae(this,Mc).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){ya.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return Ae(this,Mc).get(t)}getAll(){return[...Ae(this,Mc).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>DW(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>DW(t,r)):n}notify(t){ya.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){ya.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){ya.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Mc=new WeakMap,VG),Tc,da,jh,Rc,Ad,KG,tYe=(KG=class extends Yle{constructor(t){super();Tn(this,Rc);Tn(this,Tc);Tn(this,da);Tn(this,jh);this.mutationId=t.mutationId,cn(this,da,t.mutationCache),cn(this,Tc,[]),this.state=t.state||nYe(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){Ae(this,Tc).includes(t)||(Ae(this,Tc).push(t),this.clearGcTimeout(),Ae(this,da).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){cn(this,Tc,Ae(this,Tc).filter(n=>n!==t)),this.scheduleGc(),Ae(this,da).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){Ae(this,Tc).length||(this.state.status==="pending"?this.scheduleGc():Ae(this,da).remove(this))}continue(){var t;return((t=Ae(this,jh))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,i,a,s,l,c,u,f,h,p,m,g,v,b,y,S,w,E,C,x;cn(this,jh,Gle({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(_,P)=>{wn(this,Rc,Ad).call(this,{type:"failed",failureCount:_,error:P})},onPause:()=>{wn(this,Rc,Ad).call(this,{type:"pause"})},onContinue:()=>{wn(this,Rc,Ad).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>Ae(this,da).canRun(this)}));const n=this.state.status==="pending",r=!Ae(this,jh).canStart();try{if(!n){wn(this,Rc,Ad).call(this,{type:"pending",variables:t,isPaused:r}),await((i=(o=Ae(this,da).config).onMutate)==null?void 0:i.call(o,t,this));const P=await((s=(a=this.options).onMutate)==null?void 0:s.call(a,t));P!==this.state.context&&wn(this,Rc,Ad).call(this,{type:"pending",context:P,variables:t,isPaused:r})}const _=await Ae(this,jh).start();return await((c=(l=Ae(this,da).config).onSuccess)==null?void 0:c.call(l,_,t,this.state.context,this)),await((f=(u=this.options).onSuccess)==null?void 0:f.call(u,_,t,this.state.context)),await((p=(h=Ae(this,da).config).onSettled)==null?void 0:p.call(h,_,null,this.state.variables,this.state.context,this)),await((g=(m=this.options).onSettled)==null?void 0:g.call(m,_,null,t,this.state.context)),wn(this,Rc,Ad).call(this,{type:"success",data:_}),_}catch(_){try{throw await((b=(v=Ae(this,da).config).onError)==null?void 0:b.call(v,_,t,this.state.context,this)),await((S=(y=this.options).onError)==null?void 0:S.call(y,_,t,this.state.context)),await((E=(w=Ae(this,da).config).onSettled)==null?void 0:E.call(w,void 0,_,this.state.variables,this.state.context,this)),await((x=(C=this.options).onSettled)==null?void 0:x.call(C,void 0,_,t,this.state.context)),_}finally{wn(this,Rc,Ad).call(this,{type:"error",error:_})}}finally{Ae(this,da).runNext(this)}}},Tc=new WeakMap,da=new WeakMap,jh=new WeakMap,Rc=new WeakSet,Ad=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),ya.batch(()=>{Ae(this,Tc).forEach(r=>{r.onMutationUpdate(t)}),Ae(this,da).notify({mutation:this,type:"updated",action:t})})},KG);function nYe(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var fs,v1,qG,rYe=(qG=class extends CP{constructor(t={}){super();Tn(this,fs);Tn(this,v1);this.config=t,cn(this,fs,new Map),cn(this,v1,Date.now())}build(t,n,r){const o=new tYe({mutationCache:this,mutationId:++Yf(this,v1)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){const n=tw(t),r=Ae(this,fs).get(n)??[];r.push(t),Ae(this,fs).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=tw(t);if(Ae(this,fs).has(n)){const o=(r=Ae(this,fs).get(n))==null?void 0:r.filter(i=>i!==t);o&&(o.length===0?Ae(this,fs).delete(n):Ae(this,fs).set(n,o))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=Ae(this,fs).get(tw(t)))==null?void 0:r.find(o=>o.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=Ae(this,fs).get(tw(t)))==null?void 0:r.find(o=>o!==t&&o.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){ya.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...Ae(this,fs).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(r=>jW(n,r))}findAll(t={}){return this.getAll().filter(n=>jW(t,n))}notify(t){ya.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return ya.batch(()=>Promise.all(t.map(n=>n.continue().catch(Ml))))}},fs=new WeakMap,v1=new WeakMap,qG);function tw(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function BW(e){return{onFetch:(t,n)=>{var u,f,h,p,m;const r=t.options,o=(h=(f=(u=t.fetchOptions)==null?void 0:u.meta)==null?void 0:f.fetchMore)==null?void 0:h.direction,i=((p=t.state.data)==null?void 0:p.pages)||[],a=((m=t.state.data)==null?void 0:m.pageParams)||[];let s={pages:[],pageParams:[]},l=0;const c=async()=>{let g=!1;const v=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>(t.signal.aborted?g=!0:t.signal.addEventListener("abort",()=>{g=!0}),t.signal)})},b=Wle(t.options,t.fetchOptions),y=async(S,w,E)=>{if(g)return Promise.reject();if(w==null&&S.pages.length)return Promise.resolve(S);const C={queryKey:t.queryKey,pageParam:w,direction:E?"backward":"forward",meta:t.options.meta};v(C);const x=await b(C),{maxPages:_}=t.options,P=E?VGe:WGe;return{pages:P(S.pages,x,_),pageParams:P(S.pageParams,w,_)}};if(o&&i.length){const S=o==="backward",w=S?oYe:zW,E={pages:i,pageParams:a},C=w(r,E);s=await y(E,C,S)}else{const S=e??i.length;do{const w=l===0?a[0]??r.initialPageParam:zW(r,s);if(l>0&&w==null)break;s=await y(s,w),l++}while(l{var g,v;return(v=(g=t.options).persister)==null?void 0:v.call(g,c,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=c}}}function zW(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function oYe(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var Do,Kd,qd,Cg,wg,Gd,xg,Eg,GG,iYe=(GG=class{constructor(e={}){Tn(this,Do);Tn(this,Kd);Tn(this,qd);Tn(this,Cg);Tn(this,wg);Tn(this,Gd);Tn(this,xg);Tn(this,Eg);cn(this,Do,e.queryCache||new eYe),cn(this,Kd,e.mutationCache||new rYe),cn(this,qd,e.defaultOptions||{}),cn(this,Cg,new Map),cn(this,wg,new Map),cn(this,Gd,0)}mount(){Yf(this,Gd)._++,Ae(this,Gd)===1&&(cn(this,xg,Vle.subscribe(async e=>{e&&(await this.resumePausedMutations(),Ae(this,Do).onFocus())})),cn(this,Eg,hE.subscribe(async e=>{e&&(await this.resumePausedMutations(),Ae(this,Do).onOnline())})))}unmount(){var e,t;Yf(this,Gd)._--,Ae(this,Gd)===0&&((e=Ae(this,xg))==null||e.call(this),cn(this,xg,void 0),(t=Ae(this,Eg))==null||t.call(this),cn(this,Eg,void 0))}isFetching(e){return Ae(this,Do).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return Ae(this,Kd).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=Ae(this,Do).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=Ae(this,Do).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(AW(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return Ae(this,Do).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=Ae(this,Do).get(r.queryHash),i=o==null?void 0:o.state.data,a=FGe(t,i);if(a!==void 0)return Ae(this,Do).build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return ya.batch(()=>Ae(this,Do).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=Ae(this,Do).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=Ae(this,Do);ya.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=Ae(this,Do),r={type:"active",...e};return ya.batch(()=>(n.findAll(e).forEach(o=>{o.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=ya.batch(()=>Ae(this,Do).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(Ml).catch(Ml)}invalidateQueries(e={},t={}){return ya.batch(()=>{if(Ae(this,Do).findAll(e).forEach(r=>{r.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},r=ya.batch(()=>Ae(this,Do).findAll(e).filter(o=>!o.isDisabled()).map(o=>{let i=o.fetch(void 0,n);return n.throwOnError||(i=i.catch(Ml)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(Ml)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=Ae(this,Do).build(this,t);return n.isStaleByTime(AW(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ml).catch(Ml)}fetchInfiniteQuery(e){return e.behavior=BW(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ml).catch(Ml)}ensureInfiniteQueryData(e){return e.behavior=BW(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return hE.isOnline()?Ae(this,Kd).resumePausedMutations():Promise.resolve()}getQueryCache(){return Ae(this,Do)}getMutationCache(){return Ae(this,Kd)}getDefaultOptions(){return Ae(this,qd)}setDefaultOptions(e){cn(this,qd,e)}setQueryDefaults(e,t){Ae(this,Cg).set(Jb(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...Ae(this,Cg).values()];let n={};return t.forEach(r=>{Zb(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){Ae(this,wg).set(Jb(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...Ae(this,wg).values()];let n={};return t.forEach(r=>{Zb(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...Ae(this,qd).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=QD(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===JD&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...Ae(this,qd).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){Ae(this,Do).clear(),Ae(this,Kd).clear()}},Do=new WeakMap,Kd=new WeakMap,qd=new WeakMap,Cg=new WeakMap,wg=new WeakMap,Gd=new WeakMap,xg=new WeakMap,Eg=new WeakMap,GG),aYe=d.createContext(void 0),sYe=({client:e,children:t})=>(d.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),N.jsx(aYe.Provider,{value:e,children:t}));/** * @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 Co(){return Co=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function bp(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function uYe(){return Math.random().toString(36).substr(2,8)}function UW(e,t){return{usr:e.state,key:e.key,idx:t}}function Qg(e,t,n,r){return n===void 0&&(n=null),Co({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?yd(t):t,{state:n,key:t&&t.key||r||uYe()})}function Of(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 yd(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 Xle(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,s=ni.Pop,l=null,c=u();c==null&&(c=0,a.replaceState(Co({},a.state,{idx:c}),""));function u(){return(a.state||{idx:null}).idx}function f(){s=ni.Pop;let v=u(),b=v==null?null:v-c;c=v,l&&l({action:s,location:g.location,delta:b})}function h(v,b){s=ni.Push;let y=Qg(g.location,v,b);n&&n(y,v),c=u()+1;let S=UW(y,c),w=g.createHref(y);try{a.pushState(S,"",w)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;o.location.assign(w)}i&&l&&l({action:s,location:g.location,delta:1})}function p(v,b){s=ni.Replace;let y=Qg(g.location,v,b);n&&n(y,v),c=u();let S=UW(y,c),w=g.createHref(y);a.replaceState(S,"",w),i&&l&&l({action:s,location:g.location,delta:0})}function m(v){let b=o.location.origin!=="null"?o.location.origin:o.location.href,y=typeof v=="string"?v:Of(v);return y=y.replace(/ $/,"%20"),hr(b,"No window.location.(origin|href) available to create URL for href: "+y),new URL(y,b)}let g={get action(){return s},get location(){return e(o,a)},listen(v){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(HW,f),l=v,()=>{o.removeEventListener(HW,f),l=null}},createHref(v){return t(o,v)},createURL:m,encodeLocation(v){let b=m(v);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:h,replace:p,go(v){return a.go(v)}};return g}var Kr;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Kr||(Kr={}));const dYe=new Set(["lazy","caseSensitive","path","id","index","children"]);function fYe(e){return e.index===!0}function pE(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((o,i)=>{let a=[...n,String(i)],s=typeof o.id=="string"?o.id:a.join("-");if(hr(o.index!==!0||!o.children,"Cannot specify children on an index route"),hr(!r[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),fYe(o)){let l=Co({},o,t(o),{id:s});return r[s]=l,l}else{let l=Co({},o,t(o),{id:s,children:void 0});return r[s]=l,o.children&&(l.children=pE(o.children,t,a,r)),l}})}function vh(e,t,n){return n===void 0&&(n="/"),ux(e,t,n,!1)}function ux(e,t,n,r){let o=typeof t=="string"?yd(t):t,i=Uv(o.pathname||"/",n);if(i==null)return null;let a=Qle(e);pYe(a);let s=null;for(let l=0;s==null&&l{let l={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};l.relativePath.startsWith("/")&&(hr(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=Wu([r,l.relativePath]),u=n.concat(l);i.children&&i.children.length>0&&(hr(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Qle(i.children,t,u,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:CYe(c,i.index),routesMeta:u})};return e.forEach((i,a)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))o(i,a);else for(let l of Jle(i.path))o(i,a,l)}),t}function Jle(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let a=Jle(r.join("/")),s=[];return s.push(...a.map(l=>l===""?i:[i,l].join("/"))),o&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function pYe(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:wYe(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const mYe=/^:[\w-]+$/,gYe=3,vYe=2,yYe=1,bYe=10,SYe=-2,WW=e=>e==="*";function CYe(e,t){let n=e.split("/"),r=n.length;return n.some(WW)&&(r+=SYe),t&&(r+=vYe),n.filter(o=>!WW(o)).reduce((o,i)=>o+(mYe.test(i)?gYe:i===""?yYe:bYe),r)}function wYe(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function xYe(e,t,n){n===void 0&&(n=!1);let{routesMeta:r}=e,o={},i="/",a=[];for(let s=0;s{let{paramName:h,isOptional:p}=u;if(h==="*"){let g=s[f]||"";a=i.slice(0,i.length-g.length).replace(/(.)\/+$/,"$1")}const m=s[f];return p&&!m?c[h]=void 0:c[h]=(m||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:a,pattern:e}}function EYe(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),bp(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=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,s,l)=>(r.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function _Ye(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return bp(!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 Uv(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 $Ye(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?yd(e):e;return{pathname:n?n.startsWith("/")?n:PYe(n,t):t,search:MYe(r),hash:TYe(o)}}function PYe(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function _R(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 and the router will parse it for you.'}function Zle(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function xP(e,t){let n=Zle(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function EP(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=yd(e):(o=Co({},e),hr(!o.pathname||!o.pathname.includes("?"),_R("?","pathname","search",o)),hr(!o.pathname||!o.pathname.includes("#"),_R("#","pathname","hash",o)),hr(!o.search||!o.search.includes("#"),_R("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,s;if(a==null)s=n;else{let f=t.length-1;if(!r&&a.startsWith("..")){let h=a.split("/");for(;h[0]==="..";)h.shift(),f-=1;o.pathname=h.join("/")}s=f>=0?t[f]:"/"}let l=$Ye(o,s),c=a&&a!=="/"&&a.endsWith("/"),u=(i||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const Wu=e=>e.join("/").replace(/\/\/+/g,"/"),OYe=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),MYe=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,TYe=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class mE{constructor(t,n,r,o){o===void 0&&(o=!1),this.status=t,this.statusText=n||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function _P(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const ece=["post","put","patch","delete"],RYe=new Set(ece),IYe=["get",...ece],kYe=new Set(IYe),NYe=new Set([301,302,303,307,308]),AYe=new Set([307,308]),$R={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},DYe={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},H0={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},ZD=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,jYe=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),tce="remix-router-transitions";function nce(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;hr(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let Be=e.detectErrorBoundary;o=We=>({hasErrorBoundary:Be(We)})}else o=jYe;let i={},a=pE(e.routes,o,void 0,i),s,l=e.basename||"/",c=e.dataStrategy||zYe,u=e.patchRoutesOnNavigation,f=Co({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),h=null,p=new Set,m=null,g=null,v=null,b=e.hydrationData!=null,y=vh(a,e.history.location,l),S=null;if(y==null&&!u){let Be=Aa(404,{pathname:e.history.location.pathname}),{matches:We,route:je}=nV(a);y=We,S={[je.id]:Be}}y&&!e.hydrationData&&Lt(y,a,e.history.location.pathname).active&&(y=null);let w;if(y)if(y.some(Be=>Be.route.lazy))w=!1;else if(!y.some(Be=>Be.route.loader))w=!0;else if(f.v7_partialHydration){let Be=e.hydrationData?e.hydrationData.loaderData:null,We=e.hydrationData?e.hydrationData.errors:null;if(We){let je=y.findIndex(Xe=>We[Xe.route.id]!==void 0);w=y.slice(0,je+1).every(Xe=>!L6(Xe.route,Be,We))}else w=y.every(je=>!L6(je.route,Be,We))}else w=e.hydrationData!=null;else if(w=!1,y=[],f.v7_partialHydration){let Be=Lt(null,a,e.history.location.pathname);Be.active&&Be.matches&&(y=Be.matches)}let E,C={historyAction:e.history.action,location:e.history.location,matches:y,initialized:w,navigation:$R,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||S,fetchers:new Map,blockers:new Map},x=ni.Pop,_=!1,P,O=!1,I=new Map,M=null,T=!1,D=!1,A=[],j=new Set,k=new Map,F=0,V=-1,W=new Map,K=new Set,L=new Map,Q=new Map,ee=new Set,re=new Map,ie=new Map,G;function X(){if(h=e.history.listen(Be=>{let{action:We,location:je,delta:Xe}=Be;if(G){G(),G=void 0;return}bp(ie.size===0||Xe!=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 pt=Ue({currentLocation:C.location,nextLocation:je,historyAction:We});if(pt&&Xe!=null){let vt=new Promise(Mt=>{G=Mt});e.history.go(Xe*-1),Ke(pt,{state:"blocked",location:je,proceed(){Ke(pt,{state:"proceeding",proceed:void 0,reset:void 0,location:je}),vt.then(()=>e.history.go(Xe))},reset(){let Mt=new Map(C.blockers);Mt.set(pt,H0),ce({blockers:Mt})}});return}return te(We,je)}),n){tXe(t,I);let Be=()=>nXe(t,I);t.addEventListener("pagehide",Be),M=()=>t.removeEventListener("pagehide",Be)}return C.initialized||te(ni.Pop,C.location,{initialHydration:!0}),E}function ne(){h&&h(),M&&M(),p.clear(),P&&P.abort(),C.fetchers.forEach((Be,We)=>Ce(We)),C.blockers.forEach((Be,We)=>Fe(We))}function le(Be){return p.add(Be),()=>p.delete(Be)}function ce(Be,We){We===void 0&&(We={}),C=Co({},C,Be);let je=[],Xe=[];f.v7_fetcherPersist&&C.fetchers.forEach((pt,vt)=>{pt.state==="idle"&&(ee.has(vt)?Xe.push(vt):je.push(vt))}),[...p].forEach(pt=>pt(C,{deletedFetchers:Xe,viewTransitionOpts:We.viewTransitionOpts,flushSync:We.flushSync===!0})),f.v7_fetcherPersist&&(je.forEach(pt=>C.fetchers.delete(pt)),Xe.forEach(pt=>Ce(pt)))}function oe(Be,We,je){var Xe,pt;let{flushSync:vt}=je===void 0?{}:je,Mt=C.actionData!=null&&C.navigation.formMethod!=null&&Nl(C.navigation.formMethod)&&C.navigation.state==="loading"&&((Xe=Be.state)==null?void 0:Xe._isRedirect)!==!0,Et;We.actionData?Object.keys(We.actionData).length>0?Et=We.actionData:Et=null:Mt?Et=C.actionData:Et=null;let ft=We.loaderData?eV(C.loaderData,We.loaderData,We.matches||[],We.errors):C.loaderData,dt=C.blockers;dt.size>0&&(dt=new Map(dt),dt.forEach((Wt,at)=>dt.set(at,H0)));let Rt=_===!0||C.navigation.formMethod!=null&&Nl(C.navigation.formMethod)&&((pt=Be.state)==null?void 0:pt._isRedirect)!==!0;s&&(a=s,s=void 0),T||x===ni.Pop||(x===ni.Push?e.history.push(Be,Be.state):x===ni.Replace&&e.history.replace(Be,Be.state));let Ct;if(x===ni.Pop){let Wt=I.get(C.location.pathname);Wt&&Wt.has(Be.pathname)?Ct={currentLocation:C.location,nextLocation:Be}:I.has(Be.pathname)&&(Ct={currentLocation:Be,nextLocation:C.location})}else if(O){let Wt=I.get(C.location.pathname);Wt?Wt.add(Be.pathname):(Wt=new Set([Be.pathname]),I.set(C.location.pathname,Wt)),Ct={currentLocation:C.location,nextLocation:Be}}ce(Co({},We,{actionData:Et,loaderData:ft,historyAction:x,location:Be,initialized:!0,navigation:$R,revalidation:"idle",restoreScrollPosition:gt(Be,We.matches||C.matches),preventScrollReset:Rt,blockers:dt}),{viewTransitionOpts:Ct,flushSync:vt===!0}),x=ni.Pop,_=!1,O=!1,T=!1,D=!1,A=[]}async function se(Be,We){if(typeof Be=="number"){e.history.go(Be);return}let je=F6(C.location,C.matches,l,f.v7_prependBasename,Be,f.v7_relativeSplatPath,We==null?void 0:We.fromRouteId,We==null?void 0:We.relative),{path:Xe,submission:pt,error:vt}=KW(f.v7_normalizeFormMethod,!1,je,We),Mt=C.location,Et=Qg(C.location,Xe,We&&We.state);Et=Co({},Et,e.history.encodeLocation(Et));let ft=We&&We.replace!=null?We.replace:void 0,dt=ni.Push;ft===!0?dt=ni.Replace:ft===!1||pt!=null&&Nl(pt.formMethod)&&pt.formAction===C.location.pathname+C.location.search&&(dt=ni.Replace);let Rt=We&&"preventScrollReset"in We?We.preventScrollReset===!0:void 0,Ct=(We&&We.flushSync)===!0,Wt=Ue({currentLocation:Mt,nextLocation:Et,historyAction:dt});if(Wt){Ke(Wt,{state:"blocked",location:Et,proceed(){Ke(Wt,{state:"proceeding",proceed:void 0,reset:void 0,location:Et}),se(Be,We)},reset(){let at=new Map(C.blockers);at.set(Wt,H0),ce({blockers:at})}});return}return await te(dt,Et,{submission:pt,pendingError:vt,preventScrollReset:Rt,replace:We&&We.replace,enableViewTransition:We&&We.viewTransition,flushSync:Ct})}function fe(){if(U(),ce({revalidation:"loading"}),C.navigation.state!=="submitting"){if(C.navigation.state==="idle"){te(C.historyAction,C.location,{startUninterruptedRevalidation:!0});return}te(x||C.historyAction,C.navigation.location,{overrideNavigation:C.navigation,enableViewTransition:O===!0})}}async function te(Be,We,je){P&&P.abort(),P=null,x=Be,T=(je&&je.startUninterruptedRevalidation)===!0,yt(C.location,C.matches),_=(je&&je.preventScrollReset)===!0,O=(je&&je.enableViewTransition)===!0;let Xe=s||a,pt=je&&je.overrideNavigation,vt=vh(Xe,We,l),Mt=(je&&je.flushSync)===!0,Et=Lt(vt,Xe,We.pathname);if(Et.active&&Et.matches&&(vt=Et.matches),!vt){let{error:$t,notFoundMatches:Bt,route:xt}=Ve(We.pathname);oe(We,{matches:Bt,loaderData:{},errors:{[xt.id]:$t}},{flushSync:Mt});return}if(C.initialized&&!D&&qYe(C.location,We)&&!(je&&je.submission&&Nl(je.submission.formMethod))){oe(We,{matches:vt},{flushSync:Mt});return}P=new AbortController;let ft=bm(e.history,We,P.signal,je&&je.submission),dt;if(je&&je.pendingError)dt=[yh(vt).route.id,{type:Kr.error,error:je.pendingError}];else if(je&&je.submission&&Nl(je.submission.formMethod)){let $t=await he(ft,We,je.submission,vt,Et.active,{replace:je.replace,flushSync:Mt});if($t.shortCircuited)return;if($t.pendingActionResult){let[Bt,xt]=$t.pendingActionResult;if(gs(xt)&&_P(xt.error)&&xt.error.status===404){P=null,oe(We,{matches:$t.matches,loaderData:{},errors:{[Bt]:xt.error}});return}}vt=$t.matches||vt,dt=$t.pendingActionResult,pt=PR(We,je.submission),Mt=!1,Et.active=!1,ft=bm(e.history,ft.url,ft.signal)}let{shortCircuited:Rt,matches:Ct,loaderData:Wt,errors:at}=await pe(ft,We,vt,Et.active,pt,je&&je.submission,je&&je.fetcherSubmission,je&&je.replace,je&&je.initialHydration===!0,Mt,dt);Rt||(P=null,oe(We,Co({matches:Ct||vt},tV(dt),{loaderData:Wt,errors:at})))}async function he(Be,We,je,Xe,pt,vt){vt===void 0&&(vt={}),U();let Mt=ZYe(We,je);if(ce({navigation:Mt},{flushSync:vt.flushSync===!0}),pt){let dt=await St(Xe,We.pathname,Be.signal);if(dt.type==="aborted")return{shortCircuited:!0};if(dt.type==="error"){let Rt=yh(dt.partialMatches).route.id;return{matches:dt.partialMatches,pendingActionResult:[Rt,{type:Kr.error,error:dt.error}]}}else if(dt.matches)Xe=dt.matches;else{let{notFoundMatches:Rt,error:Ct,route:Wt}=Ve(We.pathname);return{matches:Rt,pendingActionResult:[Wt.id,{type:Kr.error,error:Ct}]}}}let Et,ft=by(Xe,We);if(!ft.route.action&&!ft.route.lazy)Et={type:Kr.error,error:Aa(405,{method:Be.method,pathname:We.pathname,routeId:ft.route.id})};else if(Et=(await Pe("action",C,Be,[ft],Xe,null))[ft.route.id],Be.signal.aborted)return{shortCircuited:!0};if(Ih(Et)){let dt;return vt&&vt.replace!=null?dt=vt.replace:dt=QW(Et.response.headers.get("Location"),new URL(Be.url),l)===C.location.pathname+C.location.search,await be(Be,Et,!0,{submission:je,replace:dt}),{shortCircuited:!0}}if(nf(Et))throw Aa(400,{type:"defer-action"});if(gs(Et)){let dt=yh(Xe,ft.route.id);return(vt&&vt.replace)!==!0&&(x=ni.Push),{matches:Xe,pendingActionResult:[dt.route.id,Et]}}return{matches:Xe,pendingActionResult:[ft.route.id,Et]}}async function pe(Be,We,je,Xe,pt,vt,Mt,Et,ft,dt,Rt){let Ct=pt||PR(We,vt),Wt=vt||Mt||oV(Ct),at=!T&&(!f.v7_partialHydration||!ft);if(Xe){if(at){let R=Oe(Rt);ce(Co({navigation:Ct},R!==void 0?{actionData:R}:{}),{flushSync:dt})}let $=await St(je,We.pathname,Be.signal);if($.type==="aborted")return{shortCircuited:!0};if($.type==="error"){let R=yh($.partialMatches).route.id;return{matches:$.partialMatches,loaderData:{},errors:{[R]:$.error}}}else if($.matches)je=$.matches;else{let{error:R,notFoundMatches:J,route:Ee}=Ve(We.pathname);return{matches:J,loaderData:{},errors:{[Ee.id]:R}}}}let $t=s||a,[Bt,xt]=GW(e.history,C,je,Wt,We,f.v7_partialHydration&&ft===!0,f.v7_skipActionErrorRevalidation,D,A,j,ee,L,K,$t,l,Rt);if(Tt($=>!(je&&je.some(R=>R.route.id===$))||Bt&&Bt.some(R=>R.route.id===$)),V=++F,Bt.length===0&&xt.length===0){let $=ge();return oe(We,Co({matches:je,loaderData:{},errors:Rt&&gs(Rt[1])?{[Rt[0]]:Rt[1].error}:null},tV(Rt),$?{fetchers:new Map(C.fetchers)}:{}),{flushSync:dt}),{shortCircuited:!0}}if(at){let $={};if(!Xe){$.navigation=Ct;let R=Oe(Rt);R!==void 0&&($.actionData=R)}xt.length>0&&($.fetchers=Me(xt)),ce($,{flushSync:dt})}xt.forEach($=>{Le($.key),$.controller&&k.set($.key,$.controller)});let bt=()=>xt.forEach($=>Le($.key));P&&P.signal.addEventListener("abort",bt);let{loaderResults:Ft,fetcherResults:Re}=await Ne(C,je,Bt,xt,Be);if(Be.signal.aborted)return{shortCircuited:!0};P&&P.signal.removeEventListener("abort",bt),xt.forEach($=>k.delete($.key));let It=nw(Ft);if(It)return await be(Be,It.result,!0,{replace:Et}),{shortCircuited:!0};if(It=nw(Re),It)return K.add(It.key),await be(Be,It.result,!0,{replace:Et}),{shortCircuited:!0};let{loaderData:tt,errors:Ot}=ZW(C,je,Ft,Rt,xt,Re,re);re.forEach(($,R)=>{$.subscribe(J=>{(J||$.done)&&re.delete(R)})}),f.v7_partialHydration&&ft&&C.errors&&(Ot=Co({},C.errors,Ot));let Pt=ge(),pn=De(V),Pn=Pt||pn||xt.length>0;return Co({matches:je,loaderData:tt,errors:Ot},Pn?{fetchers:new Map(C.fetchers)}:{})}function Oe(Be){if(Be&&!gs(Be[1]))return{[Be[0]]:Be[1].data};if(C.actionData)return Object.keys(C.actionData).length===0?null:C.actionData}function Me(Be){return Be.forEach(We=>{let je=C.fetchers.get(We.key),Xe=U0(void 0,je?je.data:void 0);C.fetchers.set(We.key,Xe)}),new Map(C.fetchers)}function Se(Be,We,je,Xe){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.");Le(Be);let pt=(Xe&&Xe.flushSync)===!0,vt=s||a,Mt=F6(C.location,C.matches,l,f.v7_prependBasename,je,f.v7_relativeSplatPath,We,Xe==null?void 0:Xe.relative),Et=vh(vt,Mt,l),ft=Lt(Et,vt,Mt);if(ft.active&&ft.matches&&(Et=ft.matches),!Et){q(Be,We,Aa(404,{pathname:Mt}),{flushSync:pt});return}let{path:dt,submission:Rt,error:Ct}=KW(f.v7_normalizeFormMethod,!0,Mt,Xe);if(Ct){q(Be,We,Ct,{flushSync:pt});return}let Wt=by(Et,dt),at=(Xe&&Xe.preventScrollReset)===!0;if(Rt&&Nl(Rt.formMethod)){ye(Be,We,dt,Wt,Et,ft.active,pt,at,Rt);return}L.set(Be,{routeId:We,path:dt}),ve(Be,We,dt,Wt,Et,ft.active,pt,at,Rt)}async function ye(Be,We,je,Xe,pt,vt,Mt,Et,ft){U(),L.delete(Be);function dt(ke){if(!ke.route.action&&!ke.route.lazy){let Je=Aa(405,{method:ft.formMethod,pathname:je,routeId:We});return q(Be,We,Je,{flushSync:Mt}),!0}return!1}if(!vt&&dt(Xe))return;let Rt=C.fetchers.get(Be);H(Be,eXe(ft,Rt),{flushSync:Mt});let Ct=new AbortController,Wt=bm(e.history,je,Ct.signal,ft);if(vt){let ke=await St(pt,je,Wt.signal);if(ke.type==="aborted")return;if(ke.type==="error"){q(Be,We,ke.error,{flushSync:Mt});return}else if(ke.matches){if(pt=ke.matches,Xe=by(pt,je),dt(Xe))return}else{q(Be,We,Aa(404,{pathname:je}),{flushSync:Mt});return}}k.set(Be,Ct);let at=F,Bt=(await Pe("action",C,Wt,[Xe],pt,Be))[Xe.route.id];if(Wt.signal.aborted){k.get(Be)===Ct&&k.delete(Be);return}if(f.v7_fetcherPersist&&ee.has(Be)){if(Ih(Bt)||gs(Bt)){H(Be,Dd(void 0));return}}else{if(Ih(Bt))if(k.delete(Be),V>at){H(Be,Dd(void 0));return}else return K.add(Be),H(Be,U0(ft)),be(Wt,Bt,!1,{fetcherSubmission:ft,preventScrollReset:Et});if(gs(Bt)){q(Be,We,Bt.error);return}}if(nf(Bt))throw Aa(400,{type:"defer-action"});let xt=C.navigation.location||C.location,bt=bm(e.history,xt,Ct.signal),Ft=s||a,Re=C.navigation.state!=="idle"?vh(Ft,C.navigation.location,l):C.matches;hr(Re,"Didn't find any matches after fetcher action");let It=++F;W.set(Be,It);let tt=U0(ft,Bt.data);C.fetchers.set(Be,tt);let[Ot,Pt]=GW(e.history,C,Re,ft,xt,!1,f.v7_skipActionErrorRevalidation,D,A,j,ee,L,K,Ft,l,[Xe.route.id,Bt]);Pt.filter(ke=>ke.key!==Be).forEach(ke=>{let Je=ke.key,Dt=C.fetchers.get(Je),an=U0(void 0,Dt?Dt.data:void 0);C.fetchers.set(Je,an),Le(Je),ke.controller&&k.set(Je,ke.controller)}),ce({fetchers:new Map(C.fetchers)});let pn=()=>Pt.forEach(ke=>Le(ke.key));Ct.signal.addEventListener("abort",pn);let{loaderResults:Pn,fetcherResults:$}=await Ne(C,Re,Ot,Pt,bt);if(Ct.signal.aborted)return;Ct.signal.removeEventListener("abort",pn),W.delete(Be),k.delete(Be),Pt.forEach(ke=>k.delete(ke.key));let R=nw(Pn);if(R)return be(bt,R.result,!1,{preventScrollReset:Et});if(R=nw($),R)return K.add(R.key),be(bt,R.result,!1,{preventScrollReset:Et});let{loaderData:J,errors:Ee}=ZW(C,Re,Pn,void 0,Pt,$,re);if(C.fetchers.has(Be)){let ke=Dd(Bt.data);C.fetchers.set(Be,ke)}De(It),C.navigation.state==="loading"&&It>V?(hr(x,"Expected pending action"),P&&P.abort(),oe(C.navigation.location,{matches:Re,loaderData:J,errors:Ee,fetchers:new Map(C.fetchers)})):(ce({errors:Ee,loaderData:eV(C.loaderData,J,Re,Ee),fetchers:new Map(C.fetchers)}),D=!1)}async function ve(Be,We,je,Xe,pt,vt,Mt,Et,ft){let dt=C.fetchers.get(Be);H(Be,U0(ft,dt?dt.data:void 0),{flushSync:Mt});let Rt=new AbortController,Ct=bm(e.history,je,Rt.signal);if(vt){let Bt=await St(pt,je,Ct.signal);if(Bt.type==="aborted")return;if(Bt.type==="error"){q(Be,We,Bt.error,{flushSync:Mt});return}else if(Bt.matches)pt=Bt.matches,Xe=by(pt,je);else{q(Be,We,Aa(404,{pathname:je}),{flushSync:Mt});return}}k.set(Be,Rt);let Wt=F,$t=(await Pe("loader",C,Ct,[Xe],pt,Be))[Xe.route.id];if(nf($t)&&($t=await ej($t,Ct.signal,!0)||$t),k.get(Be)===Rt&&k.delete(Be),!Ct.signal.aborted){if(ee.has(Be)){H(Be,Dd(void 0));return}if(Ih($t))if(V>Wt){H(Be,Dd(void 0));return}else{K.add(Be),await be(Ct,$t,!1,{preventScrollReset:Et});return}if(gs($t)){q(Be,We,$t.error);return}hr(!nf($t),"Unhandled fetcher deferred data"),H(Be,Dd($t.data))}}async function be(Be,We,je,Xe){let{submission:pt,fetcherSubmission:vt,preventScrollReset:Mt,replace:Et}=Xe===void 0?{}:Xe;We.response.headers.has("X-Remix-Revalidate")&&(D=!0);let ft=We.response.headers.get("Location");hr(ft,"Expected a Location header on the redirect Response"),ft=QW(ft,new URL(Be.url),l);let dt=Qg(C.location,ft,{_isRedirect:!0});if(n){let Bt=!1;if(We.response.headers.has("X-Remix-Reload-Document"))Bt=!0;else if(ZD.test(ft)){const xt=e.history.createURL(ft);Bt=xt.origin!==t.location.origin||Uv(xt.pathname,l)==null}if(Bt){Et?t.location.replace(ft):t.location.assign(ft);return}}P=null;let Rt=Et===!0||We.response.headers.has("X-Remix-Replace")?ni.Replace:ni.Push,{formMethod:Ct,formAction:Wt,formEncType:at}=C.navigation;!pt&&!vt&&Ct&&Wt&&at&&(pt=oV(C.navigation));let $t=pt||vt;if(AYe.has(We.response.status)&&$t&&Nl($t.formMethod))await te(Rt,dt,{submission:Co({},$t,{formAction:ft}),preventScrollReset:Mt||_,enableViewTransition:je?O:void 0});else{let Bt=PR(dt,pt);await te(Rt,dt,{overrideNavigation:Bt,fetcherSubmission:vt,preventScrollReset:Mt||_,enableViewTransition:je?O:void 0})}}async function Pe(Be,We,je,Xe,pt,vt){let Mt,Et={};try{Mt=await HYe(c,Be,We,je,Xe,pt,vt,i,o)}catch(ft){return Xe.forEach(dt=>{Et[dt.route.id]={type:Kr.error,error:ft}}),Et}for(let[ft,dt]of Object.entries(Mt))if(GYe(dt)){let Rt=dt.result;Et[ft]={type:Kr.redirect,response:VYe(Rt,je,ft,pt,l,f.v7_relativeSplatPath)}}else Et[ft]=await WYe(dt);return Et}async function Ne(Be,We,je,Xe,pt){let vt=Be.matches,Mt=Pe("loader",Be,pt,je,We,null),Et=Promise.all(Xe.map(async Rt=>{if(Rt.matches&&Rt.match&&Rt.controller){let Wt=(await Pe("loader",Be,bm(e.history,Rt.path,Rt.controller.signal),[Rt.match],Rt.matches,Rt.key))[Rt.match.route.id];return{[Rt.key]:Wt}}else return Promise.resolve({[Rt.key]:{type:Kr.error,error:Aa(404,{pathname:Rt.path})}})})),ft=await Mt,dt=(await Et).reduce((Rt,Ct)=>Object.assign(Rt,Ct),{});return await Promise.all([QYe(We,ft,pt.signal,vt,Be.loaderData),JYe(We,dt,Xe)]),{loaderResults:ft,fetcherResults:dt}}function U(){D=!0,A.push(...Tt()),L.forEach((Be,We)=>{k.has(We)&&j.add(We),Le(We)})}function H(Be,We,je){je===void 0&&(je={}),C.fetchers.set(Be,We),ce({fetchers:new Map(C.fetchers)},{flushSync:(je&&je.flushSync)===!0})}function q(Be,We,je,Xe){Xe===void 0&&(Xe={});let pt=yh(C.matches,We);Ce(Be),ce({errors:{[pt.route.id]:je},fetchers:new Map(C.fetchers)},{flushSync:(Xe&&Xe.flushSync)===!0})}function me(Be){return f.v7_fetcherPersist&&(Q.set(Be,(Q.get(Be)||0)+1),ee.has(Be)&&ee.delete(Be)),C.fetchers.get(Be)||DYe}function Ce(Be){let We=C.fetchers.get(Be);k.has(Be)&&!(We&&We.state==="loading"&&W.has(Be))&&Le(Be),L.delete(Be),W.delete(Be),K.delete(Be),ee.delete(Be),j.delete(Be),C.fetchers.delete(Be)}function ue(Be){if(f.v7_fetcherPersist){let We=(Q.get(Be)||0)-1;We<=0?(Q.delete(Be),ee.add(Be)):Q.set(Be,We)}else Ce(Be);ce({fetchers:new Map(C.fetchers)})}function Le(Be){let We=k.get(Be);We&&(We.abort(),k.delete(Be))}function He(Be){for(let We of Be){let je=me(We),Xe=Dd(je.data);C.fetchers.set(We,Xe)}}function ge(){let Be=[],We=!1;for(let je of K){let Xe=C.fetchers.get(je);hr(Xe,"Expected fetcher: "+je),Xe.state==="loading"&&(K.delete(je),Be.push(je),We=!0)}return He(Be),We}function De(Be){let We=[];for(let[je,Xe]of W)if(Xe0}function qe(Be,We){let je=C.blockers.get(Be)||H0;return ie.get(Be)!==We&&ie.set(Be,We),je}function Fe(Be){C.blockers.delete(Be),ie.delete(Be)}function Ke(Be,We){let je=C.blockers.get(Be)||H0;hr(je.state==="unblocked"&&We.state==="blocked"||je.state==="blocked"&&We.state==="blocked"||je.state==="blocked"&&We.state==="proceeding"||je.state==="blocked"&&We.state==="unblocked"||je.state==="proceeding"&&We.state==="unblocked","Invalid blocker state transition: "+je.state+" -> "+We.state);let Xe=new Map(C.blockers);Xe.set(Be,We),ce({blockers:Xe})}function Ue(Be){let{currentLocation:We,nextLocation:je,historyAction:Xe}=Be;if(ie.size===0)return;ie.size>1&&bp(!1,"A router only supports one blocker at a time");let pt=Array.from(ie.entries()),[vt,Mt]=pt[pt.length-1],Et=C.blockers.get(vt);if(!(Et&&Et.state==="proceeding")&&Mt({currentLocation:We,nextLocation:je,historyAction:Xe}))return vt}function Ve(Be){let We=Aa(404,{pathname:Be}),je=s||a,{matches:Xe,route:pt}=nV(je);return Tt(),{notFoundMatches:Xe,route:pt,error:We}}function Tt(Be){let We=[];return re.forEach((je,Xe)=>{(!Be||Be(Xe))&&(je.cancel(),We.push(Xe),re.delete(Xe))}),We}function et(Be,We,je){if(m=Be,v=We,g=je||null,!b&&C.navigation===$R){b=!0;let Xe=gt(C.location,C.matches);Xe!=null&&ce({restoreScrollPosition:Xe})}return()=>{m=null,v=null,g=null}}function st(Be,We){return g&&g(Be,We.map(Xe=>hYe(Xe,C.loaderData)))||Be.key}function yt(Be,We){if(m&&v){let je=st(Be,We);m[je]=v()}}function gt(Be,We){if(m){let je=st(Be,We),Xe=m[je];if(typeof Xe=="number")return Xe}return null}function Lt(Be,We,je){if(u)if(Be){if(Object.keys(Be[0].params).length>0)return{active:!0,matches:ux(We,je,l,!0)}}else return{active:!0,matches:ux(We,je,l,!0)||[]};return{active:!1,matches:null}}async function St(Be,We,je){if(!u)return{type:"success",matches:Be};let Xe=Be;for(;;){let pt=s==null,vt=s||a,Mt=i;try{await u({path:We,matches:Xe,patch:(dt,Rt)=>{je.aborted||XW(dt,Rt,vt,Mt,o)}})}catch(dt){return{type:"error",error:dt,partialMatches:Xe}}finally{pt&&!je.aborted&&(a=[...a])}if(je.aborted)return{type:"aborted"};let Et=vh(vt,We,l);if(Et)return{type:"success",matches:Et};let ft=ux(vt,We,l,!0);if(!ft||Xe.length===ft.length&&Xe.every((dt,Rt)=>dt.route.id===ft[Rt].route.id))return{type:"success",matches:null};Xe=ft}}function wt(Be){i={},s=pE(Be,o,void 0,i)}function Nt(Be,We){let je=s==null;XW(Be,We,s||a,i,o),je&&(a=[...a],ce({}))}return E={get basename(){return l},get future(){return f},get state(){return C},get routes(){return a},get window(){return t},initialize:X,subscribe:le,enableScrollRestoration:et,navigate:se,fetch:Se,revalidate:fe,createHref:Be=>e.history.createHref(Be),encodeLocation:Be=>e.history.encodeLocation(Be),getFetcher:me,deleteFetcher:ue,dispose:ne,getBlocker:qe,deleteBlocker:Fe,patchRoutes:Nt,_internalFetchControllers:k,_internalActiveDeferreds:re,_internalSetRoutes:wt},E}function FYe(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function F6(e,t,n,r,o,i,a,s){let l,c;if(a){l=[];for(let f of t)if(l.push(f),f.route.id===a){c=f;break}}else l=t,c=t[t.length-1];let u=EP(o||".",xP(l,i),Uv(e.pathname,n)||e.pathname,s==="path");if(o==null&&(u.search=e.search,u.hash=e.hash),(o==null||o===""||o===".")&&c){let f=tj(u.search);if(c.route.index&&!f)u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index";else if(!c.route.index&&f){let h=new URLSearchParams(u.search),p=h.getAll("index");h.delete("index"),p.filter(g=>g).forEach(g=>h.append("index",g));let m=h.toString();u.search=m?"?"+m:""}}return r&&n!=="/"&&(u.pathname=u.pathname==="/"?n:Wu([n,u.pathname])),Of(u)}function KW(e,t,n,r){if(!r||!FYe(r))return{path:n};if(r.formMethod&&!XYe(r.formMethod))return{path:n,error:Aa(405,{method:r.formMethod})};let o=()=>({path:n,error:Aa(400,{type:"invalid-body"})}),i=r.formMethod||"get",a=e?i.toUpperCase():i.toLowerCase(),s=ice(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!Nl(a))return o();let h=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((p,m)=>{let[g,v]=m;return""+p+g+"="+v+` `},""):String(r.body);return{path:n,submission:{formMethod:a,formAction:s,formEncType:r.formEncType,formData:void 0,json:void 0,text:h}}}else if(r.formEncType==="application/json"){if(!Nl(a))return o();try{let h=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:a,formAction:s,formEncType:r.formEncType,formData:void 0,json:h,text:void 0}}}catch{return o()}}}hr(typeof FormData=="function","FormData is not available in this environment");let l,c;if(r.formData)l=B6(r.formData),c=r.formData;else if(r.body instanceof FormData)l=B6(r.body),c=r.body;else if(r.body instanceof URLSearchParams)l=r.body,c=JW(l);else if(r.body==null)l=new URLSearchParams,c=new FormData;else try{l=new URLSearchParams(r.body),c=JW(l)}catch{return o()}let u={formMethod:a,formAction:s,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:c,json:void 0,text:void 0};if(Nl(u.formMethod))return{path:n,submission:u};let f=yd(n);return t&&f.search&&tj(f.search)&&l.append("index",""),f.search="?"+l,{path:Of(f),submission:u}}function qW(e,t,n){n===void 0&&(n=!1);let r=e.findIndex(o=>o.route.id===t);return r>=0?e.slice(0,n?r+1:r):e}function GW(e,t,n,r,o,i,a,s,l,c,u,f,h,p,m,g){let v=g?gs(g[1])?g[1].error:g[1].data:void 0,b=e.createURL(t.location),y=e.createURL(o),S=n;i&&t.errors?S=qW(n,Object.keys(t.errors)[0],!0):g&&gs(g[1])&&(S=qW(n,g[0]));let w=g?g[1].statusCode:void 0,E=a&&w&&w>=400,C=S.filter((_,P)=>{let{route:O}=_;if(O.lazy)return!0;if(O.loader==null)return!1;if(i)return L6(O,t.loaderData,t.errors);if(LYe(t.loaderData,t.matches[P],_)||l.some(T=>T===_.route.id))return!0;let I=t.matches[P],M=_;return YW(_,Co({currentUrl:b,currentParams:I.params,nextUrl:y,nextParams:M.params},r,{actionResult:v,actionStatus:w,defaultShouldRevalidate:E?!1:s||b.pathname+b.search===y.pathname+y.search||b.search!==y.search||rce(I,M)}))}),x=[];return f.forEach((_,P)=>{if(i||!n.some(D=>D.route.id===_.routeId)||u.has(P))return;let O=vh(p,_.path,m);if(!O){x.push({key:P,routeId:_.routeId,path:_.path,matches:null,match:null,controller:null});return}let I=t.fetchers.get(P),M=by(O,_.path),T=!1;h.has(P)?T=!1:c.has(P)?(c.delete(P),T=!0):I&&I.state!=="idle"&&I.data===void 0?T=s:T=YW(M,Co({currentUrl:b,currentParams:t.matches[t.matches.length-1].params,nextUrl:y,nextParams:n[n.length-1].params},r,{actionResult:v,actionStatus:w,defaultShouldRevalidate:E?!1:s})),T&&x.push({key:P,routeId:_.routeId,path:_.path,matches:O,match:M,controller:new AbortController})}),[C,x]}function L6(e,t,n){if(e.lazy)return!0;if(!e.loader)return!1;let r=t!=null&&t[e.id]!==void 0,o=n!=null&&n[e.id]!==void 0;return!r&&o?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!r&&!o}function LYe(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function rce(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function YW(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}function XW(e,t,n,r,o){var i;let a;if(e){let c=r[e];hr(c,"No route found to patch children into: routeId = "+e),c.children||(c.children=[]),a=c.children}else a=n;let s=t.filter(c=>!a.some(u=>oce(c,u))),l=pE(s,o,[e||"_","patch",String(((i=a)==null?void 0:i.length)||"0")],r);a.push(...l)}function oce(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 o;return(o=t.children)==null?void 0:o.some(i=>oce(n,i))}):!1}async function BYe(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];hr(o,"No route found in manifest");let i={};for(let a in r){let l=o[a]!==void 0&&a!=="hasErrorBoundary";bp(!l,'Route "'+o.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.')),!l&&!dYe.has(a)&&(i[a]=r[a])}Object.assign(o,i),Object.assign(o,Co({},t(o),{lazy:void 0}))}async function zYe(e){let{matches:t}=e,n=t.filter(o=>o.shouldLoad);return(await Promise.all(n.map(o=>o.resolve()))).reduce((o,i,a)=>Object.assign(o,{[n[a].route.id]:i}),{})}async function HYe(e,t,n,r,o,i,a,s,l,c){let u=i.map(p=>p.route.lazy?BYe(p.route,l,s):void 0),f=i.map((p,m)=>{let g=u[m],v=o.some(y=>y.route.id===p.route.id);return Co({},p,{shouldLoad:v,resolve:async y=>(y&&r.method==="GET"&&(p.route.lazy||p.route.loader)&&(v=!0),v?UYe(t,r,p,g,y,c):Promise.resolve({type:Kr.data,result:void 0}))})}),h=await e({matches:f,request:r,params:i[0].params,fetcherKey:a,context:c});try{await Promise.all(u)}catch{}return h}async function UYe(e,t,n,r,o,i){let a,s,l=c=>{let u,f=new Promise((m,g)=>u=g);s=()=>u(),t.signal.addEventListener("abort",s);let h=m=>typeof c!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+n.route.id+"]"))):c({request:t,params:n.params,context:i},...m!==void 0?[m]:[]),p=(async()=>{try{return{type:"data",result:await(o?o(g=>h(g)):h())}}catch(m){return{type:"error",result:m}}})();return Promise.race([p,f])};try{let c=n.route[e];if(r)if(c){let u,[f]=await Promise.all([l(c).catch(h=>{u=h}),r]);if(u!==void 0)throw u;a=f}else if(await r,c=n.route[e],c)a=await l(c);else if(e==="action"){let u=new URL(t.url),f=u.pathname+u.search;throw Aa(405,{method:t.method,pathname:f,routeId:n.route.id})}else return{type:Kr.data,result:void 0};else if(c)a=await l(c);else{let u=new URL(t.url),f=u.pathname+u.search;throw Aa(404,{pathname:f})}hr(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(c){return{type:Kr.error,result:c}}finally{s&&t.signal.removeEventListener("abort",s)}return a}async function WYe(e){let{result:t,type:n}=e;if(ace(t)){let c;try{let u=t.headers.get("Content-Type");u&&/\bapplication\/json\b/.test(u)?t.body==null?c=null:c=await t.json():c=await t.text()}catch(u){return{type:Kr.error,error:u}}return n===Kr.error?{type:Kr.error,error:new mE(t.status,t.statusText,c),statusCode:t.status,headers:t.headers}:{type:Kr.data,data:c,statusCode:t.status,headers:t.headers}}if(n===Kr.error){if(rV(t)){var r;if(t.data instanceof Error){var o;return{type:Kr.error,error:t.data,statusCode:(o=t.init)==null?void 0:o.status}}t=new mE(((r=t.init)==null?void 0:r.status)||500,void 0,t.data)}return{type:Kr.error,error:t,statusCode:_P(t)?t.status:void 0}}if(YYe(t)){var i,a;return{type:Kr.deferred,deferredData:t,statusCode:(i=t.init)==null?void 0:i.status,headers:((a=t.init)==null?void 0:a.headers)&&new Headers(t.init.headers)}}if(rV(t)){var s,l;return{type:Kr.data,data:t.data,statusCode:(s=t.init)==null?void 0:s.status,headers:(l=t.init)!=null&&l.headers?new Headers(t.init.headers):void 0}}return{type:Kr.data,data:t}}function VYe(e,t,n,r,o,i){let a=e.headers.get("Location");if(hr(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!ZD.test(a)){let s=r.slice(0,r.findIndex(l=>l.route.id===n)+1);a=F6(new URL(t.url),s,o,!0,a,i),e.headers.set("Location",a)}return e}function QW(e,t,n){if(ZD.test(e)){let r=e,o=r.startsWith("//")?new URL(t.protocol+r):new URL(r),i=Uv(o.pathname,n)!=null;if(o.origin===t.origin&&i)return o.pathname+o.search+o.hash}return e}function bm(e,t,n,r){let o=e.createURL(ice(t)).toString(),i={signal:n};if(r&&Nl(r.formMethod)){let{formMethod:a,formEncType:s}=r;i.method=a.toUpperCase(),s==="application/json"?(i.headers=new Headers({"Content-Type":s}),i.body=JSON.stringify(r.json)):s==="text/plain"?i.body=r.text:s==="application/x-www-form-urlencoded"&&r.formData?i.body=B6(r.formData):i.body=r.formData}return new Request(o,i)}function B6(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function JW(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function KYe(e,t,n,r,o){let i={},a=null,s,l=!1,c={},u=n&&gs(n[1])?n[1].error:void 0;return e.forEach(f=>{if(!(f.route.id in t))return;let h=f.route.id,p=t[h];if(hr(!Ih(p),"Cannot handle redirect results in processLoaderData"),gs(p)){let m=p.error;u!==void 0&&(m=u,u=void 0),a=a||{};{let g=yh(e,h);a[g.route.id]==null&&(a[g.route.id]=m)}i[h]=void 0,l||(l=!0,s=_P(p.error)?p.error.status:500),p.headers&&(c[h]=p.headers)}else nf(p)?(r.set(h,p.deferredData),i[h]=p.deferredData.data,p.statusCode!=null&&p.statusCode!==200&&!l&&(s=p.statusCode),p.headers&&(c[h]=p.headers)):(i[h]=p.data,p.statusCode&&p.statusCode!==200&&!l&&(s=p.statusCode),p.headers&&(c[h]=p.headers))}),u!==void 0&&n&&(a={[n[0]]:u},i[n[0]]=void 0),{loaderData:i,errors:a,statusCode:s||200,loaderHeaders:c}}function ZW(e,t,n,r,o,i,a){let{loaderData:s,errors:l}=KYe(t,n,r,a);return o.forEach(c=>{let{key:u,match:f,controller:h}=c,p=i[u];if(hr(p,"Did not find corresponding fetcher result"),!(h&&h.signal.aborted))if(gs(p)){let m=yh(e.matches,f==null?void 0:f.route.id);l&&l[m.route.id]||(l=Co({},l,{[m.route.id]:p.error})),e.fetchers.delete(u)}else if(Ih(p))hr(!1,"Unhandled fetcher revalidation redirect");else if(nf(p))hr(!1,"Unhandled fetcher deferred data");else{let m=Dd(p.data);e.fetchers.set(u,m)}}),{loaderData:s,errors:l}}function eV(e,t,n,r){let o=Co({},t);for(let i of n){let a=i.route.id;if(t.hasOwnProperty(a)?t[a]!==void 0&&(o[a]=t[a]):e[a]!==void 0&&i.route.loader&&(o[a]=e[a]),r&&r.hasOwnProperty(a))break}return o}function tV(e){return e?gs(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function yh(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 nV(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 Aa(e,t){let{pathname:n,routeId:r,method:o,type:i,message:a}=t===void 0?{}:t,s="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(s="Bad Request",o&&n&&r?l="You made a "+o+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":i==="defer-action"?l="defer() is not supported in actions":i==="invalid-body"&&(l="Unable to encode submission body")):e===403?(s="Forbidden",l='Route "'+r+'" does not match URL "'+n+'"'):e===404?(s="Not Found",l='No route matches URL "'+n+'"'):e===405&&(s="Method Not Allowed",o&&n&&r?l="You made a "+o.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":o&&(l='Invalid request method "'+o.toUpperCase()+'"')),new mE(e||500,s,new Error(l),!0)}function nw(e){let t=Object.entries(e);for(let n=t.length-1;n>=0;n--){let[r,o]=t[n];if(Ih(o))return{key:r,result:o}}}function ice(e){let t=typeof e=="string"?yd(e):e;return Of(Co({},t,{hash:""}))}function qYe(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function GYe(e){return ace(e.result)&&NYe.has(e.result.status)}function nf(e){return e.type===Kr.deferred}function gs(e){return e.type===Kr.error}function Ih(e){return(e&&e.type)===Kr.redirect}function rV(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function YYe(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 ace(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function XYe(e){return kYe.has(e.toLowerCase())}function Nl(e){return RYe.has(e.toLowerCase())}async function QYe(e,t,n,r,o){let i=Object.entries(t);for(let a=0;a(h==null?void 0:h.route.id)===s);if(!c)continue;let u=r.find(h=>h.route.id===c.route.id),f=u!=null&&!rce(u,c)&&(o&&o[c.route.id])!==void 0;nf(l)&&f&&await ej(l,n,!1).then(h=>{h&&(t[s]=h)})}}async function JYe(e,t,n){for(let r=0;r(c==null?void 0:c.route.id)===i)&&nf(s)&&(hr(a,"Expected an AbortController for revalidating fetcher deferred result"),await ej(s,a.signal,!0).then(c=>{c&&(t[o]=c)}))}}async function ej(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:Kr.data,data:e.deferredData.unwrappedData}}catch(o){return{type:Kr.error,error:o}}return{type:Kr.data,data:e.deferredData.data}}}function tj(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function by(e,t){let n=typeof t=="string"?yd(t).search:t.search;if(e[e.length-1].route.index&&tj(n||""))return e[e.length-1];let r=Zle(e);return r[r.length-1]}function oV(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:i,json:a}=e;if(!(!t||!n||!r)){if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o};if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:i,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 PR(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 ZYe(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 U0(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 eXe(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 Dd(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 tXe(e,t){try{let n=e.sessionStorage.getItem(tce);if(n){let r=JSON.parse(n);for(let[o,i]of Object.entries(r||{}))i&&Array.isArray(i)&&t.set(o,new Set(i||[]))}}catch{}}function nXe(e,t){if(t.size>0){let n={};for(let[r,o]of t)n[r]=[...o];try{e.sessionStorage.setItem(tce,JSON.stringify(n))}catch(r){bp(!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 gE(){return gE=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),d.useCallback(function(c,u){if(u===void 0&&(u={}),!s.current)return;if(typeof c=="number"){r.go(c);return}let f=EP(c,JSON.parse(a),i,u.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:Wu([t,f.pathname])),(u.replace?r.replace:r.push)(f,u.state,u)},[t,r,a,i,e])}const iXe=d.createContext(null);function aXe(e){let t=d.useContext(su).outlet;return t&&d.createElement(iXe.Provider,{value:e},t)}function sXe(){let{matches:e}=d.useContext(su),t=e[e.length-1];return t?t.params:{}}function uce(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=d.useContext(Lf),{matches:o}=d.useContext(su),{pathname:i}=Vv(),a=JSON.stringify(xP(o,r.v7_relativeSplatPath));return d.useMemo(()=>EP(e,JSON.parse(a),i,n==="path"),[e,a,i,n])}function lXe(e,t,n,r){Wv()||hr(!1);let{navigator:o}=d.useContext(Lf),{matches:i}=d.useContext(su),a=i[i.length-1],s=a?a.params:{};a&&a.pathname;let l=a?a.pathnameBase:"/";a&&a.route;let c=Vv(),u;u=c;let f=u.pathname||"/",h=f;if(l!=="/"){let g=l.replace(/^\//,"").split("/");h="/"+f.replace(/^\//,"").split("/").slice(g.length).join("/")}let p=vh(e,{pathname:h});return hXe(p&&p.map(g=>Object.assign({},g,{params:Object.assign({},s,g.params),pathname:Wu([l,o.encodeLocation?o.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?l:Wu([l,o.encodeLocation?o.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),i,n,r)}function cXe(){let e=vXe(),t=_P(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={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:o},n):null,null)}const uXe=d.createElement(cXe,null);class dXe 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(su.Provider,{value:this.props.routeContext},d.createElement(lce.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function fXe(e){let{routeContext:t,match:n,children:r}=e,o=d.useContext($P);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),d.createElement(su.Provider,{value:t},r)}function hXe(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,s=(o=n)==null?void 0:o.errors;if(s!=null){let u=a.findIndex(f=>f.route.id&&(s==null?void 0:s[f.route.id])!==void 0);u>=0||hr(!1),a=a.slice(0,Math.min(a.length,u+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u=0?a=a.slice(0,c+1):a=[a[0]];break}}}return a.reduceRight((u,f,h)=>{let p,m=!1,g=null,v=null;n&&(p=s&&f.route.id?s[f.route.id]:void 0,g=f.route.errorElement||uXe,l&&(c<0&&h===0?(m=!0,v=null):c===h&&(m=!0,v=f.route.hydrateFallbackElement||null)));let b=t.concat(a.slice(0,h+1)),y=()=>{let S;return p?S=g:m?S=v:f.route.Component?S=d.createElement(f.route.Component,null):f.route.element?S=f.route.element:S=u,d.createElement(fXe,{match:f,routeContext:{outlet:u,matches:b,isDataRoute:n!=null},children:S})};return n&&(f.route.ErrorBoundary||f.route.errorElement||h===0)?d.createElement(dXe,{location:n.location,revalidation:n.revalidation,component:g,error:p,children:y(),routeContext:{outlet:null,matches:b,isDataRoute:!0}}):y()},null)}var dce=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(dce||{}),vE=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}(vE||{});function pXe(e){let t=d.useContext($P);return t||hr(!1),t}function mXe(e){let t=d.useContext(sce);return t||hr(!1),t}function gXe(e){let t=d.useContext(su);return t||hr(!1),t}function fce(e){let t=gXe(),n=t.matches[t.matches.length-1];return n.route.id||hr(!1),n.route.id}function vXe(){var e;let t=d.useContext(lce),n=mXe(vE.UseRouteError),r=fce(vE.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function yXe(){let{router:e}=pXe(dce.UseNavigateStable),t=fce(vE.UseNavigateStable),n=d.useRef(!1);return cce(()=>{n.current=!0}),d.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,gE({fromRouteId:t},i)))},[e,t])}const iV={};function bXe(e,t){iV[t]||(iV[t]=!0,console.warn(t))}const Sm=(e,t,n)=>bXe(e,"⚠️ React Router Future Flag Warning: "+t+". "+("You can use the `"+e+"` future flag to opt-in early. ")+("For more information, see "+n+"."));function SXe(e,t){e!=null&&e.v7_startTransition||Sm("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)&&Sm("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath"),t&&(t.v7_fetcherPersist||Sm("v7_fetcherPersist","The persistence behavior of fetchers is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist"),t.v7_normalizeFormMethod||Sm("v7_normalizeFormMethod","Casing of `formMethod` fields is being normalized to uppercase in v7","https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod"),t.v7_partialHydration||Sm("v7_partialHydration","`RouterProvider` hydration behavior is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_partialhydration"),t.v7_skipActionErrorRevalidation||Sm("v7_skipActionErrorRevalidation","The revalidation behavior after 4xx/5xx `action` responses is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation"))}function CXe(e){let{to:t,replace:n,state:r,relative:o}=e;Wv()||hr(!1);let{future:i,static:a}=d.useContext(Lf),{matches:s}=d.useContext(su),{pathname:l}=Vv(),c=Ya(),u=EP(t,xP(s,i.v7_relativeSplatPath),l,o==="path"),f=JSON.stringify(u);return d.useEffect(()=>c(JSON.parse(f),{replace:n,state:r,relative:o}),[c,f,o,n,r]),null}function PP(e){return aXe(e.context)}function wXe(e){let{basename:t="/",children:n=null,location:r,navigationType:o=ni.Pop,navigator:i,static:a=!1,future:s}=e;Wv()&&hr(!1);let l=t.replace(/^\/*/,"/"),c=d.useMemo(()=>({basename:l,navigator:i,static:a,future:gE({v7_relativeSplatPath:!1},s)}),[l,s,i,a]);typeof r=="string"&&(r=yd(r));let{pathname:u="/",search:f="",hash:h="",state:p=null,key:m="default"}=r,g=d.useMemo(()=>{let v=Uv(u,l);return v==null?null:{location:{pathname:v,search:f,hash:h,state:p,key:m},navigationType:o}},[l,u,f,h,p,m,o]);return g==null?null:d.createElement(Lf.Provider,{value:c},d.createElement(nj.Provider,{children:n,value:g}))}new Promise(()=>{});function hce(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 Jg(){return Jg=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function EXe(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function _Xe(e,t){return e.button===0&&(!t||t==="_self")&&!EXe(e)}const $Xe=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],PXe="6";try{window.__reactRouterVersion=PXe}catch{}function OXe(e,t){return nce({basename:t==null?void 0:t.basename,future:Jg({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:lYe({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||pce(),routes:e,mapRouteProperties:hce,dataStrategy:t==null?void 0:t.dataStrategy,patchRoutesOnNavigation:t==null?void 0:t.patchRoutesOnNavigation,window:t==null?void 0:t.window}).initialize()}function MXe(e,t){return nce({basename:t==null?void 0:t.basename,future:Jg({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:cYe({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||pce(),routes:e,mapRouteProperties:hce,dataStrategy:t==null?void 0:t.dataStrategy,patchRoutesOnNavigation:t==null?void 0:t.patchRoutesOnNavigation,window:t==null?void 0:t.window}).initialize()}function pce(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=Jg({},t,{errors:TXe(t.errors)})),t}function TXe(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,o]of t)if(o&&o.__type==="RouteErrorResponse")n[r]=new mE(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let i=window[o.__subType];if(typeof i=="function")try{let a=new i(o.message);a.stack="",n[r]=a}catch{}}if(n[r]==null){let i=new Error(o.message);i.stack="",n[r]=i}}else n[r]=o;return n}const RXe=d.createContext({isTransitioning:!1}),IXe=d.createContext(new Map),kXe="startTransition",aV=S1[kXe],NXe="flushSync",sV=sQ[NXe];function AXe(e){aV?aV(e):e()}function W0(e){sV?sV(e):e()}class DXe{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 jXe(e){let{fallbackElement:t,router:n,future:r}=e,[o,i]=d.useState(n.state),[a,s]=d.useState(),[l,c]=d.useState({isTransitioning:!1}),[u,f]=d.useState(),[h,p]=d.useState(),[m,g]=d.useState(),v=d.useRef(new Map),{v7_startTransition:b}=r||{},y=d.useCallback(_=>{b?AXe(_):_()},[b]),S=d.useCallback((_,P)=>{let{deletedFetchers:O,flushSync:I,viewTransitionOpts:M}=P;O.forEach(D=>v.current.delete(D)),_.fetchers.forEach((D,A)=>{D.data!==void 0&&v.current.set(A,D.data)});let T=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!M||T){I?W0(()=>i(_)):y(()=>i(_));return}if(I){W0(()=>{h&&(u&&u.resolve(),h.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:M.currentLocation,nextLocation:M.nextLocation})});let D=n.window.document.startViewTransition(()=>{W0(()=>i(_))});D.finished.finally(()=>{W0(()=>{f(void 0),p(void 0),s(void 0),c({isTransitioning:!1})})}),W0(()=>p(D));return}h?(u&&u.resolve(),h.skipTransition(),g({state:_,currentLocation:M.currentLocation,nextLocation:M.nextLocation})):(s(_),c({isTransitioning:!0,flushSync:!1,currentLocation:M.currentLocation,nextLocation:M.nextLocation}))},[n.window,h,u,v,y]);d.useLayoutEffect(()=>n.subscribe(S),[n,S]),d.useEffect(()=>{l.isTransitioning&&!l.flushSync&&f(new DXe)},[l]),d.useEffect(()=>{if(u&&a&&n.window){let _=a,P=u.promise,O=n.window.document.startViewTransition(async()=>{y(()=>i(_)),await P});O.finished.finally(()=>{f(void 0),p(void 0),s(void 0),c({isTransitioning:!1})}),p(O)}},[y,a,u,n.window]),d.useEffect(()=>{u&&a&&o.location.key===a.location.key&&u.resolve()},[u,h,o.location,a]),d.useEffect(()=>{!l.isTransitioning&&m&&(s(m.state),c({isTransitioning:!0,flushSync:!1,currentLocation:m.currentLocation,nextLocation:m.nextLocation}),g(void 0))},[l.isTransitioning,m]),d.useEffect(()=>{},[]);let w=d.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:_=>n.navigate(_),push:(_,P,O)=>n.navigate(_,{state:P,preventScrollReset:O==null?void 0:O.preventScrollReset}),replace:(_,P,O)=>n.navigate(_,{replace:!0,state:P,preventScrollReset:O==null?void 0:O.preventScrollReset})}),[n]),E=n.basename||"/",C=d.useMemo(()=>({router:n,navigator:w,static:!1,basename:E}),[n,w,E]),x=d.useMemo(()=>({v7_relativeSplatPath:n.future.v7_relativeSplatPath}),[n.future.v7_relativeSplatPath]);return d.useEffect(()=>SXe(r,n.future),[r,n.future]),d.createElement(d.Fragment,null,d.createElement($P.Provider,{value:C},d.createElement(sce.Provider,{value:o},d.createElement(IXe.Provider,{value:v.current},d.createElement(RXe.Provider,{value:l},d.createElement(wXe,{basename:E,location:o.location,navigationType:o.historyAction,navigator:w,future:x},o.initialized||n.future.v7_partialHydration?d.createElement(FXe,{routes:n.routes,future:n.future,state:o}):t))))),null)}const FXe=d.memo(LXe);function LXe(e){let{routes:t,future:n,state:r}=e;return lXe(t,void 0,r,n)}const BXe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",zXe=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,HXe=d.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:a,state:s,target:l,to:c,preventScrollReset:u,viewTransition:f}=t,h=xXe(t,$Xe),{basename:p}=d.useContext(Lf),m,g=!1;if(typeof c=="string"&&zXe.test(c)&&(m=c,BXe))try{let S=new URL(window.location.href),w=c.startsWith("//")?new URL(S.protocol+c):new URL(c),E=Uv(w.pathname,p);w.origin===S.origin&&E!=null?c=E+w.search+w.hash:g=!0}catch{}let v=rXe(c,{relative:o}),b=UXe(c,{replace:a,state:s,target:l,preventScrollReset:u,relative:o,viewTransition:f});function y(S){r&&r(S),S.defaultPrevented||b(S)}return d.createElement("a",Jg({},h,{href:m||v,onClick:g||i?r:y,ref:n,target:l}))});var lV;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(lV||(lV={}));var cV;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(cV||(cV={}));function UXe(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:a,viewTransition:s}=t===void 0?{}:t,l=Ya(),c=Vv(),u=uce(e,{relative:a});return d.useCallback(f=>{if(_Xe(f,n)){f.preventDefault();let h=r!==void 0?r:Of(c)===Of(u);l(e,{replace:h,state:o,preventScrollReset:i,relative:a,viewTransition:s})}},[c,l,u,r,o,n,e,i,a,s])}var WXe=z(z({},zte),{},{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});const mce={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]},z6={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},WXe),timePickerLocale:Object.assign({},mce)};z6.lang.ok="确定";const ss="${label}不是一个有效的${type}",VXe={locale:"zh-cn",Pagination:bse,DatePicker:z6,TimePicker:mce,Calendar:z6,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:ss,method:ss,array:ss,object:ss,number:ss,date:ss,boolean:ss,integer:ss,float:ss,regexp:ss,email:ss,url:ss,hex:ss},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:"渐变色"}},rf=()=>{},vs=rf(),dx=Object,Tr=e=>e===vs,Bc=e=>typeof e=="function",id=(e,t)=>({...e,...t}),KXe=e=>Bc(e.then),rw=new WeakMap;let qXe=0;const e1=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let o,i;if(dx(e)===e&&!r&&n!=RegExp){if(o=rw.get(e),o)return o;if(o=++qXe+"~",rw.set(e,o),n==Array){for(o="@",i=0;iOP&&typeof window.requestAnimationFrame!=rj,gce=(e,t)=>{const n=Ru.get(e);return[()=>!Tr(t)&&e.get(t)||OR,r=>{if(!Tr(t)){const o=e.get(t);t in ow||(ow[t]=o),n[5](t,id(o,r),o||OR)}},n[6],()=>!Tr(t)&&t in ow?ow[t]:!Tr(t)&&e.get(t)||OR]};let U6=!0;const YXe=()=>U6,[W6,V6]=OP&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[rf,rf],XXe=()=>{const e=H6&&document.visibilityState;return Tr(e)||e!=="hidden"},QXe=e=>(H6&&document.addEventListener("visibilitychange",e),W6("focus",e),()=>{H6&&document.removeEventListener("visibilitychange",e),V6("focus",e)}),JXe=e=>{const t=()=>{U6=!0,e()},n=()=>{U6=!1};return W6("online",t),W6("offline",n),()=>{V6("online",t),V6("offline",n)}},ZXe={isOnline:YXe,isVisible:XXe},eQe={initFocus:QXe,initReconnect:JXe},uV=!de.useId,t1=!OP||"Deno"in window,tQe=e=>GXe()?window.requestAnimationFrame(e):setTimeout(e,1),fx=t1?d.useEffect:d.useLayoutEffect,MR=typeof navigator<"u"&&navigator.connection,dV=!t1&&MR&&(["slow-2g","2g"].includes(MR.effectiveType)||MR.saveData),oj=e=>{if(Bc(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?e1(e):"",[e,t]};let nQe=0;const K6=()=>++nQe,vce=0,yce=1,bce=2,rQe=3;var V0={__proto__:null,ERROR_REVALIDATE_EVENT:rQe,FOCUS_EVENT:vce,MUTATE_EVENT:bce,RECONNECT_EVENT:yce};async function Sce(...e){const[t,n,r,o]=e,i=id({populateCache:!0,throwOnError:!0},typeof o=="boolean"?{revalidate:o}:o||{});let a=i.populateCache;const s=i.rollbackOnError;let l=i.optimisticData;const c=i.revalidate!==!1,u=p=>typeof s=="function"?s(p):s!==!1,f=i.throwOnError;if(Bc(n)){const p=n,m=[],g=t.keys();for(const v of g)!/^\$(inf|sub)\$/.test(v)&&p(t.get(v)._k)&&m.push(v);return Promise.all(m.map(h))}return h(n);async function h(p){const[m]=oj(p);if(!m)return;const[g,v]=gce(t,m),[b,y,S,w]=Ru.get(t),E=b[m],C=()=>c&&(delete S[m],delete w[m],E&&E[0])?E[0](bce).then(()=>g().data):g().data;if(e.length<3)return C();let x=r,_;const P=K6();y[m]=[P,0];const O=!Tr(l),I=g(),M=I.data,T=I._c,D=Tr(T)?M:T;if(O&&(l=Bc(l)?l(D,M):l,v({data:l,_c:D})),Bc(x))try{x=x(D)}catch(j){_=j}if(x&&KXe(x))if(x=await x.catch(j=>{_=j}),P!==y[m][0]){if(_)throw _;return x}else _&&O&&u(_)&&(a=!0,x=D,v({data:x,_c:vs}));a&&(_||(Bc(a)&&(x=a(x,D)),v({data:x,error:vs,_c:vs}))),y[m][1]=K6();const A=await C();if(v({_c:vs}),_){if(f)throw _;return}return a?A:x}}const fV=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},Cce=(e,t)=>{if(!Ru.has(e)){const n=id(eQe,t),r={},o=Sce.bind(vs,e);let i=rf;const a={},s=(u,f)=>{const h=a[u]||[];return a[u]=h,h.push(f),()=>h.splice(h.indexOf(f),1)},l=(u,f,h)=>{e.set(u,f);const p=a[u];if(p)for(const m of p)m(f,h)},c=()=>{if(!Ru.has(e)&&(Ru.set(e,[r,{},{},{},o,l,s]),!t1)){const u=n.initFocus(setTimeout.bind(vs,fV.bind(vs,r,vce))),f=n.initReconnect(setTimeout.bind(vs,fV.bind(vs,r,yce)));i=()=>{u&&u(),f&&f(),Ru.delete(e)}}};return c(),[e,o,c,i]}return[e,Ru.get(e)[4]]},oQe=(e,t,n,r,o)=>{const i=n.errorRetryCount,a=o.retryCount,s=~~((Math.random()+.5)*(1<<(a<8?a:8)))*n.errorRetryInterval;!Tr(i)&&a>i||setTimeout(r,s,o)},iQe=(e,t)=>e1(e)==e1(t),[ij,aQe]=Cce(new Map),wce=id({onLoadingSlow:rf,onSuccess:rf,onError:rf,onErrorRetry:oQe,onDiscarded:rf,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:dV?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:dV?5e3:3e3,compare:iQe,isPaused:()=>!1,cache:ij,mutate:aQe,fallback:{}},ZXe),xce=(e,t)=>{const n=id(e,t);if(t){const{use:r,fallback:o}=e,{use:i,fallback:a}=t;r&&i&&(n.use=r.concat(i)),o&&a&&(n.fallback=id(o,a))}return n},q6=d.createContext({}),sQe=e=>{const{value:t}=e,n=d.useContext(q6),r=Bc(t),o=d.useMemo(()=>r?t(n):t,[r,n,t]),i=d.useMemo(()=>r?o:xce(n,o),[r,n,o]),a=o&&o.provider,s=d.useRef(vs);a&&!s.current&&(s.current=Cce(a(i.cache||ij),o));const l=s.current;return l&&(i.cache=l[0],i.mutate=l[1]),fx(()=>{if(l)return l[2]&&l[2](),l[3]},[]),d.createElement(q6.Provider,id(e,{value:i}))},Ece=OP&&window.__SWR_DEVTOOLS_USE__,lQe=Ece?window.__SWR_DEVTOOLS_USE__:[],cQe=()=>{Ece&&(window.__SWR_DEVTOOLS_REACT__=de)},uQe=e=>Bc(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],aj=()=>id(wce,d.useContext(q6)),dQe=e=>(t,n,r)=>e(t,n&&((...i)=>{const[a]=oj(t),[,,,s]=Ru.get(ij),l=s[a];return Tr(l)?n(...i):(delete s[a],l)}),r),fQe=lQe.concat(dQe),hQe=e=>function(...n){const r=aj(),[o,i,a]=uQe(n),s=xce(r,a);let l=e;const{use:c}=s,u=(c||[]).concat(fQe);for(let f=u.length;f--;)l=u[f](l);return l(o,i||s.fetcher||null,s)},pQe=(e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const o=r.indexOf(n);o>=0&&(r[o]=r[r.length-1],r.pop())}};cQe();const hV=de.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)}),TR={dedupe:!0},mQe=(e,t,n)=>{const{cache:r,compare:o,suspense:i,fallbackData:a,revalidateOnMount:s,revalidateIfStale:l,refreshInterval:c,refreshWhenHidden:u,refreshWhenOffline:f,keepPreviousData:h}=n,[p,m,g,v]=Ru.get(r),[b,y]=oj(e),S=d.useRef(!1),w=d.useRef(!1),E=d.useRef(b),C=d.useRef(t),x=d.useRef(n),_=()=>x.current,P=()=>_().isVisible()&&_().isOnline(),[O,I,M,T]=gce(r,b),D=d.useRef({}).current,A=Tr(a)?n.fallback[b]:a,j=(oe,se)=>{for(const fe in D){const te=fe;if(te==="data"){if(!o(oe[te],se[te])&&(!Tr(oe[te])||!o(re,se[te])))return!1}else if(se[te]!==oe[te])return!1}return!0},k=d.useMemo(()=>{const oe=!b||!t?!1:Tr(s)?_().isPaused()||i?!1:Tr(l)?!0:l:s,se=Me=>{const Se=id(Me);return delete Se._k,oe?{isValidating:!0,isLoading:!0,...Se}:Se},fe=O(),te=T(),he=se(fe),pe=fe===te?he:se(te);let Oe=he;return[()=>{const Me=se(O());return j(Me,Oe)?(Oe.data=Me.data,Oe.isLoading=Me.isLoading,Oe.isValidating=Me.isValidating,Oe.error=Me.error,Oe):(Oe=Me,Me)},()=>pe]},[r,b]),F=fQ.useSyncExternalStore(d.useCallback(oe=>M(b,(se,fe)=>{j(fe,se)||oe()}),[r,b]),k[0],k[1]),V=!S.current,W=p[b]&&p[b].length>0,K=F.data,L=Tr(K)?A:K,Q=F.error,ee=d.useRef(L),re=h?Tr(K)?ee.current:K:L,ie=W&&!Tr(Q)?!1:V&&!Tr(s)?s:_().isPaused()?!1:i?Tr(L)?!1:l:Tr(L)||l,G=!!(b&&t&&V&&ie),X=Tr(F.isValidating)?G:F.isValidating,ne=Tr(F.isLoading)?G:F.isLoading,le=d.useCallback(async oe=>{const se=C.current;if(!b||!se||w.current||_().isPaused())return!1;let fe,te,he=!0;const pe=oe||{},Oe=!g[b]||!pe.dedupe,Me=()=>uV?!w.current&&b===E.current&&S.current:b===E.current,Se={isValidating:!1,isLoading:!1},ye=()=>{I(Se)},ve=()=>{const Pe=g[b];Pe&&Pe[1]===te&&delete g[b]},be={isValidating:!0};Tr(O().data)&&(be.isLoading=!0);try{if(Oe&&(I(be),n.loadingTimeout&&Tr(O().data)&&setTimeout(()=>{he&&Me()&&_().onLoadingSlow(b,n)},n.loadingTimeout),g[b]=[se(y),K6()]),[fe,te]=g[b],fe=await fe,Oe&&setTimeout(ve,n.dedupingInterval),!g[b]||g[b][1]!==te)return Oe&&Me()&&_().onDiscarded(b),!1;Se.error=vs;const Pe=m[b];if(!Tr(Pe)&&(te<=Pe[0]||te<=Pe[1]||Pe[1]===0))return ye(),Oe&&Me()&&_().onDiscarded(b),!1;const Ne=O().data;Se.data=o(Ne,fe)?Ne:fe,Oe&&Me()&&_().onSuccess(fe,b,n)}catch(Pe){ve();const Ne=_(),{shouldRetryOnError:U}=Ne;Ne.isPaused()||(Se.error=Pe,Oe&&Me()&&(Ne.onError(Pe,b,Ne),(U===!0||Bc(U)&&U(Pe))&&P()&&Ne.onErrorRetry(Pe,b,Ne,H=>{const q=p[b];q&&q[0]&&q[0](V0.ERROR_REVALIDATE_EVENT,H)},{retryCount:(pe.retryCount||0)+1,dedupe:!0})))}return he=!1,ye(),!0},[b,r]),ce=d.useCallback((...oe)=>Sce(r,E.current,...oe),[]);if(fx(()=>{C.current=t,x.current=n,Tr(K)||(ee.current=K)}),fx(()=>{if(!b)return;const oe=le.bind(vs,TR);let se=0;const te=pQe(b,p,(he,pe={})=>{if(he==V0.FOCUS_EVENT){const Oe=Date.now();_().revalidateOnFocus&&Oe>se&&P()&&(se=Oe+_().focusThrottleInterval,oe())}else if(he==V0.RECONNECT_EVENT)_().revalidateOnReconnect&&P()&&oe();else{if(he==V0.MUTATE_EVENT)return le();if(he==V0.ERROR_REVALIDATE_EVENT)return le(pe)}});return w.current=!1,E.current=b,S.current=!0,I({_k:y}),ie&&(Tr(L)||t1?oe():tQe(oe)),()=>{w.current=!0,te()}},[b]),fx(()=>{let oe;function se(){const te=Bc(c)?c(O().data):c;te&&oe!==-1&&(oe=setTimeout(fe,te))}function fe(){!O().error&&(u||_().isVisible())&&(f||_().isOnline())?le(TR).then(se):se()}return se(),()=>{oe&&(clearTimeout(oe),oe=-1)}},[c,u,f,b]),d.useDebugValue(re),i&&Tr(L)&&b){if(!uV&&t1)throw new Error("Fallback data is required when using suspense in SSR.");C.current=t,x.current=n,w.current=!1;const oe=v[b];if(!Tr(oe)){const se=ce(oe);hV(se)}if(Tr(Q)){const se=le(TR);Tr(re)||(se.status="fulfilled",se.value=!0),hV(se)}else throw Q}return{mutate:ce,get data(){return D.data=!0,re},get error(){return D.error=!0,Q},get isValidating(){return D.isValidating=!0,X},get isLoading(){return D.isLoading=!0,ne}}},gQe=dx.defineProperty(sQe,"defaultValue",{value:wce}),sj=hQe(mQe),vQe={moneySymbol:"$",form:{lightFilter:{more:"المزيد",clear:"نظف",confirm:"تأكيد",itemUnit:"عناصر"}},tableForm:{search:"ابحث",reset:"إعادة تعيين",submit:"ارسال",collapsed:"مُقلص",expand:"مُوسع",inputPlaceholder:"الرجاء الإدخال",selectPlaceholder:"الرجاء الإختيار"},alert:{clear:"نظف",selected:"محدد",item:"عنصر"},pagination:{total:{range:" ",total:"من",item:"عناصر"}},tableToolBar:{leftPin:"ثبت على اليسار",rightPin:"ثبت على اليمين",noPin:"الغاء التثبيت",leftFixedTitle:"لصق على اليسار",rightFixedTitle:"لصق على اليمين",noFixedTitle:"إلغاء الإلصاق",reset:"إعادة تعيين",columnDisplay:"الأعمدة المعروضة",columnSetting:"الإعدادات",fullScreen:"وضع كامل الشاشة",exitFullScreen:"الخروج من وضع كامل الشاشة",reload:"تحديث",density:"الكثافة",densityDefault:"افتراضي",densityLarger:"أكبر",densityMiddle:"وسط",densitySmall:"مدمج"},stepsForm:{next:"التالي",prev:"السابق",submit:"أنهى"},loginForm:{submitText:"تسجيل الدخول"},editableTable:{action:{save:"أنقذ",cancel:"إلغاء الأمر",delete:"حذف",add:"إضافة صف من البيانات"}},switch:{open:"مفتوح",close:"غلق"}},yQe={moneySymbol:"€",form:{lightFilter:{more:"Més",clear:"Netejar",confirm:"Confirmar",itemUnit:"Elements"}},tableForm:{search:"Cercar",reset:"Netejar",submit:"Enviar",collapsed:"Expandir",expand:"Col·lapsar",inputPlaceholder:"Introduïu valor",selectPlaceholder:"Seleccioneu valor"},alert:{clear:"Netejar",selected:"Seleccionat",item:"Article"},pagination:{total:{range:" ",total:"de",item:"articles"}},tableToolBar:{leftPin:"Pin a l'esquerra",rightPin:"Pin a la dreta",noPin:"Sense Pin",leftFixedTitle:"Fixat a l'esquerra",rightFixedTitle:"Fixat a la dreta",noFixedTitle:"Sense fixar",reset:"Reiniciar",columnDisplay:"Mostrar Columna",columnSetting:"Configuració",fullScreen:"Pantalla Completa",exitFullScreen:"Sortir Pantalla Completa",reload:"Refrescar",density:"Densitat",densityDefault:"Per Defecte",densityLarger:"Llarg",densityMiddle:"Mitjà",densitySmall:"Compacte"},stepsForm:{next:"Següent",prev:"Anterior",submit:"Finalizar"},loginForm:{submitText:"Entrar"},editableTable:{action:{save:"Guardar",cancel:"Cancel·lar",delete:"Eliminar",add:"afegir una fila de dades"}},switch:{open:"obert",close:"tancat"}},bQe={moneySymbol:"Kč",deleteThisLine:"Smazat tento řádek",copyThisLine:"Kopírovat tento řádek",form:{lightFilter:{more:"Víc",clear:"Vymazat",confirm:"Potvrdit",itemUnit:"Položky"}},tableForm:{search:"Dotaz",reset:"Resetovat",submit:"Odeslat",collapsed:"Zvětšit",expand:"Zmenšit",inputPlaceholder:"Zadejte prosím",selectPlaceholder:"Vyberte prosím"},alert:{clear:"Vymazat",selected:"Vybraný",item:"Položka"},pagination:{total:{range:" ",total:"z",item:"položek"}},tableToolBar:{leftPin:"Připnout doleva",rightPin:"Připnout doprava",noPin:"Odepnuto",leftFixedTitle:"Fixováno nalevo",rightFixedTitle:"Fixováno napravo",noFixedTitle:"Neopraveno",reset:"Resetovat",columnDisplay:"Zobrazení sloupců",columnSetting:"Nastavení",fullScreen:"Celá obrazovka",exitFullScreen:"Ukončete celou obrazovku",reload:"Obnovit",density:"Hustota",densityDefault:"Výchozí",densityLarger:"Větší",densityMiddle:"Střední",densitySmall:"Kompaktní"},stepsForm:{next:"Další",prev:"Předchozí",submit:"Dokončit"},loginForm:{submitText:"Přihlásit se"},editableTable:{onlyOneLineEditor:"Upravit lze pouze jeden řádek",action:{save:"Uložit",cancel:"Zrušit",delete:"Vymazat",add:"přidat řádek dat"}},switch:{open:"otevřít",close:"zavřít"}},SQe={moneySymbol:"€",form:{lightFilter:{more:"Mehr",clear:"Zurücksetzen",confirm:"Bestätigen",itemUnit:"Einträge"}},tableForm:{search:"Suchen",reset:"Zurücksetzen",submit:"Absenden",collapsed:"Zeige mehr",expand:"Zeige weniger",inputPlaceholder:"Bitte eingeben",selectPlaceholder:"Bitte auswählen"},alert:{clear:"Zurücksetzen",selected:"Ausgewählt",item:"Eintrag"},pagination:{total:{range:" ",total:"von",item:"Einträgen"}},tableToolBar:{leftPin:"Links anheften",rightPin:"Rechts anheften",noPin:"Nicht angeheftet",leftFixedTitle:"Links fixiert",rightFixedTitle:"Rechts fixiert",noFixedTitle:"Nicht fixiert",reset:"Zurücksetzen",columnDisplay:"Angezeigte Reihen",columnSetting:"Einstellungen",fullScreen:"Vollbild",exitFullScreen:"Vollbild verlassen",reload:"Aktualisieren",density:"Abstand",densityDefault:"Standard",densityLarger:"Größer",densityMiddle:"Mittel",densitySmall:"Kompakt"},stepsForm:{next:"Weiter",prev:"Zurück",submit:"Abschließen"},loginForm:{submitText:"Anmelden"},editableTable:{action:{save:"Retten",cancel:"Abbrechen",delete:"Löschen",add:"Hinzufügen einer Datenzeile"}},switch:{open:"offen",close:"schließen"}},CQe={moneySymbol:"£",form:{lightFilter:{more:"More",clear:"Clear",confirm:"Confirm",itemUnit:"Items"}},tableForm:{search:"Query",reset:"Reset",submit:"Submit",collapsed:"Expand",expand:"Collapse",inputPlaceholder:"Please enter",selectPlaceholder:"Please select"},alert:{clear:"Clear",selected:"Selected",item:"Item"},pagination:{total:{range:" ",total:"of",item:"items"}},tableToolBar:{leftPin:"Pin to left",rightPin:"Pin to right",noPin:"Unpinned",leftFixedTitle:"Fixed to the left",rightFixedTitle:"Fixed to the right",noFixedTitle:"Not Fixed",reset:"Reset",columnDisplay:"Column Display",columnSetting:"Table Settings",fullScreen:"Full Screen",exitFullScreen:"Exit Full Screen",reload:"Refresh",density:"Density",densityDefault:"Default",densityLarger:"Larger",densityMiddle:"Middle",densitySmall:"Compact"},stepsForm:{next:"Next",prev:"Previous",submit:"Finish"},loginForm:{submitText:"Login"},editableTable:{onlyOneLineEditor:"Only one line can be edited",onlyAddOneLine:"Only one line can be added",action:{save:"Save",cancel:"Cancel",delete:"Delete",add:"add a row of data"}},switch:{open:"open",close:"close"}},wQe={moneySymbol:"$",deleteThisLine:"Delete this line",copyThisLine:"Copy this line",form:{lightFilter:{more:"More",clear:"Clear",confirm:"Confirm",itemUnit:"Items"}},tableForm:{search:"Query",reset:"Reset",submit:"Submit",collapsed:"Expand",expand:"Collapse",inputPlaceholder:"Please enter",selectPlaceholder:"Please select"},alert:{clear:"Clear",selected:"Selected",item:"Item"},pagination:{total:{range:" ",total:"of",item:"items"}},tableToolBar:{leftPin:"Pin to left",rightPin:"Pin to right",noPin:"Unpinned",leftFixedTitle:"Fixed to the left",rightFixedTitle:"Fixed to the right",noFixedTitle:"Not Fixed",reset:"Reset",columnDisplay:"Column Display",columnSetting:"Table Settings",fullScreen:"Full Screen",exitFullScreen:"Exit Full Screen",reload:"Refresh",density:"Density",densityDefault:"Default",densityLarger:"Larger",densityMiddle:"Middle",densitySmall:"Compact"},stepsForm:{next:"Next",prev:"Previous",submit:"Finish"},loginForm:{submitText:"Login"},editableTable:{onlyOneLineEditor:"Only one line can be edited",onlyAddOneLine:"Only one line can be added",action:{save:"Save",cancel:"Cancel",delete:"Delete",add:"add a row of data"}},switch:{open:"open",close:"close"}},xQe={moneySymbol:"€",form:{lightFilter:{more:"Más",clear:"Limpiar",confirm:"Confirmar",itemUnit:"artículos"}},tableForm:{search:"Buscar",reset:"Limpiar",submit:"Submit",collapsed:"Expandir",expand:"Colapsar",inputPlaceholder:"Ingrese valor",selectPlaceholder:"Seleccione valor"},alert:{clear:"Limpiar",selected:"Seleccionado",item:"Articulo"},pagination:{total:{range:" ",total:"de",item:"artículos"}},tableToolBar:{leftPin:"Pin a la izquierda",rightPin:"Pin a la derecha",noPin:"Sin Pin",leftFixedTitle:"Fijado a la izquierda",rightFixedTitle:"Fijado a la derecha",noFixedTitle:"Sin Fijar",reset:"Reiniciar",columnDisplay:"Mostrar Columna",columnSetting:"Configuración",fullScreen:"Pantalla Completa",exitFullScreen:"Salir Pantalla Completa",reload:"Refrescar",density:"Densidad",densityDefault:"Por Defecto",densityLarger:"Largo",densityMiddle:"Medio",densitySmall:"Compacto"},stepsForm:{next:"Siguiente",prev:"Anterior",submit:"Finalizar"},loginForm:{submitText:"Entrar"},editableTable:{action:{save:"Guardar",cancel:"Descartar",delete:"Borrar",add:"añadir una fila de datos"}},switch:{open:"abrir",close:"cerrar"}},EQe={moneySymbol:"تومان",form:{lightFilter:{more:"بیشتر",clear:"پاک کردن",confirm:"تایید",itemUnit:"مورد"}},tableForm:{search:"جستجو",reset:"بازنشانی",submit:"تایید",collapsed:"نمایش بیشتر",expand:"نمایش کمتر",inputPlaceholder:"پیدا کنید",selectPlaceholder:"انتخاب کنید"},alert:{clear:"پاک سازی",selected:"انتخاب",item:"مورد"},pagination:{total:{range:" ",total:"از",item:"مورد"}},tableToolBar:{leftPin:"سنجاق به چپ",rightPin:"سنجاق به راست",noPin:"سنجاق نشده",leftFixedTitle:"ثابت شده در چپ",rightFixedTitle:"ثابت شده در راست",noFixedTitle:"شناور",reset:"بازنشانی",columnDisplay:"نمایش همه",columnSetting:"تنظیمات",fullScreen:"تمام صفحه",exitFullScreen:"خروج از حالت تمام صفحه",reload:"تازه سازی",density:"تراکم",densityDefault:"پیش فرض",densityLarger:"بزرگ",densityMiddle:"متوسط",densitySmall:"کوچک"},stepsForm:{next:"بعدی",prev:"قبلی",submit:"اتمام"},loginForm:{submitText:"ورود"},editableTable:{action:{save:"ذخیره",cancel:"لغو",delete:"حذف",add:"یک ردیف داده اضافه کنید"}},switch:{open:"باز",close:"نزدیک"}},_Qe={moneySymbol:"€",form:{lightFilter:{more:"Plus",clear:"Effacer",confirm:"Confirmer",itemUnit:"Items"}},tableForm:{search:"Rechercher",reset:"Réinitialiser",submit:"Envoyer",collapsed:"Agrandir",expand:"Réduire",inputPlaceholder:"Entrer une valeur",selectPlaceholder:"Sélectionner une valeur"},alert:{clear:"Réinitialiser",selected:"Sélectionné",item:"Item"},pagination:{total:{range:" ",total:"sur",item:"éléments"}},tableToolBar:{leftPin:"Épingler à gauche",rightPin:"Épingler à gauche",noPin:"Sans épingle",leftFixedTitle:"Fixer à gauche",rightFixedTitle:"Fixer à droite",noFixedTitle:"Non fixé",reset:"Réinitialiser",columnDisplay:"Affichage colonne",columnSetting:"Réglages",fullScreen:"Plein écran",exitFullScreen:"Quitter Plein écran",reload:"Rafraichir",density:"Densité",densityDefault:"Par défaut",densityLarger:"Larger",densityMiddle:"Moyenne",densitySmall:"Compacte"},stepsForm:{next:"Suivante",prev:"Précédente",submit:"Finaliser"},loginForm:{submitText:"Se connecter"},editableTable:{action:{save:"Sauvegarder",cancel:"Annuler",delete:"Supprimer",add:"ajouter une ligne de données"}},switch:{open:"ouvert",close:"près"}},$Qe={moneySymbol:"₪",deleteThisLine:"מחק שורה זו",copyThisLine:"העתק שורה זו",form:{lightFilter:{more:"יותר",clear:"נקה",confirm:"אישור",itemUnit:"פריטים"}},tableForm:{search:"חיפוש",reset:"איפוס",submit:"שלח",collapsed:"הרחב",expand:"כווץ",inputPlaceholder:"אנא הכנס",selectPlaceholder:"אנא בחר"},alert:{clear:"נקה",selected:"נבחר",item:"פריט"},pagination:{total:{range:" ",total:"מתוך",item:"פריטים"}},tableToolBar:{leftPin:"הצמד לשמאל",rightPin:"הצמד לימין",noPin:"לא מצורף",leftFixedTitle:"מוצמד לשמאל",rightFixedTitle:"מוצמד לימין",noFixedTitle:"לא מוצמד",reset:"איפוס",columnDisplay:"תצוגת עמודות",columnSetting:"הגדרות",fullScreen:"מסך מלא",exitFullScreen:"צא ממסך מלא",reload:"רענן",density:"רזולוציה",densityDefault:"ברירת מחדל",densityLarger:"גדול",densityMiddle:"בינוני",densitySmall:"קטן"},stepsForm:{next:"הבא",prev:"קודם",submit:"סיום"},loginForm:{submitText:"כניסה"},editableTable:{onlyOneLineEditor:"ניתן לערוך רק שורה אחת",action:{save:"שמור",cancel:"ביטול",delete:"מחיקה",add:"הוסף שורת נתונים"}},switch:{open:"פתח",close:"סגור"}},PQe={moneySymbol:"kn",form:{lightFilter:{more:"Više",clear:"Očisti",confirm:"Potvrdi",itemUnit:"Stavke"}},tableForm:{search:"Pretraži",reset:"Poništi",submit:"Potvrdi",collapsed:"Raširi",expand:"Skupi",inputPlaceholder:"Unesite",selectPlaceholder:"Odaberite"},alert:{clear:"Očisti",selected:"Odaberi",item:"stavke"},pagination:{total:{range:" ",total:"od",item:"stavke"}},tableToolBar:{leftPin:"Prikači lijevo",rightPin:"Prikači desno",noPin:"Bez prikačenja",leftFixedTitle:"Fiksiraj lijevo",rightFixedTitle:"Fiksiraj desno",noFixedTitle:"Bez fiksiranja",reset:"Resetiraj",columnDisplay:"Prikaz stupaca",columnSetting:"Postavke",fullScreen:"Puni zaslon",exitFullScreen:"Izađi iz punog zaslona",reload:"Ponovno učitaj",density:"Veličina",densityDefault:"Zadano",densityLarger:"Veliko",densityMiddle:"Srednje",densitySmall:"Malo"},stepsForm:{next:"Sljedeći",prev:"Prethodni",submit:"Kraj"},loginForm:{submitText:"Prijava"},editableTable:{action:{save:"Spremi",cancel:"Odustani",delete:"Obriši",add:"dodajte red podataka"}},switch:{open:"otvori",close:"zatvori"}},OQe={moneySymbol:"RP",form:{lightFilter:{more:"Lebih",clear:"Hapus",confirm:"Konfirmasi",itemUnit:"Unit"}},tableForm:{search:"Cari",reset:"Atur ulang",submit:"Kirim",collapsed:"Lebih sedikit",expand:"Lebih banyak",inputPlaceholder:"Masukkan pencarian",selectPlaceholder:"Pilih"},alert:{clear:"Hapus",selected:"Dipilih",item:"Butir"},pagination:{total:{range:" ",total:"Dari",item:"Butir"}},tableToolBar:{leftPin:"Pin kiri",rightPin:"Pin kanan",noPin:"Tidak ada pin",leftFixedTitle:"Rata kiri",rightFixedTitle:"Rata kanan",noFixedTitle:"Tidak tetap",reset:"Atur ulang",columnDisplay:"Tampilan kolom",columnSetting:"Pengaturan",fullScreen:"Layar penuh",exitFullScreen:"Keluar layar penuh",reload:"Atur ulang",density:"Kerapatan",densityDefault:"Standar",densityLarger:"Lebih besar",densityMiddle:"Sedang",densitySmall:"Rapat"},stepsForm:{next:"Selanjutnya",prev:"Sebelumnya",submit:"Selesai"},loginForm:{submitText:"Login"},editableTable:{action:{save:"simpan",cancel:"batal",delete:"hapus",add:"Tambahkan baris data"}},switch:{open:"buka",close:"tutup"}},MQe={moneySymbol:"€",form:{lightFilter:{more:"più",clear:"pulisci",confirm:"conferma",itemUnit:"elementi"}},tableForm:{search:"Filtra",reset:"Pulisci",submit:"Invia",collapsed:"Espandi",expand:"Contrai",inputPlaceholder:"Digita",selectPlaceholder:"Seleziona"},alert:{clear:"Rimuovi",selected:"Selezionati",item:"elementi"},pagination:{total:{range:" ",total:"di",item:"elementi"}},tableToolBar:{leftPin:"Fissa a sinistra",rightPin:"Fissa a destra",noPin:"Ripristina posizione",leftFixedTitle:"Fissato a sinistra",rightFixedTitle:"Fissato a destra",noFixedTitle:"Non fissato",reset:"Ripristina",columnDisplay:"Disposizione colonne",columnSetting:"Impostazioni",fullScreen:"Modalità schermo intero",exitFullScreen:"Esci da modalità schermo intero",reload:"Ricarica",density:"Grandezza tabella",densityDefault:"predefinito",densityLarger:"Grande",densityMiddle:"Media",densitySmall:"Compatta"},stepsForm:{next:"successivo",prev:"precedente",submit:"finisci"},loginForm:{submitText:"Accedi"},editableTable:{action:{save:"salva",cancel:"annulla",delete:"Delete",add:"add a row of data"}},switch:{open:"open",close:"chiudi"}},TQe={moneySymbol:"¥",form:{lightFilter:{more:"更に",clear:"クリア",confirm:"確認",itemUnit:"アイテム"}},tableForm:{search:"検索",reset:"リセット",submit:"送信",collapsed:"拡大",expand:"折畳",inputPlaceholder:"入力してください",selectPlaceholder:"選択してください"},alert:{clear:"クリア",selected:"選択した",item:"アイテム"},pagination:{total:{range:"レコード",total:"/合計",item:" "}},tableToolBar:{leftPin:"左に固定",rightPin:"右に固定",noPin:"キャンセル",leftFixedTitle:"左に固定された項目",rightFixedTitle:"右に固定された項目",noFixedTitle:"固定されてない項目",reset:"リセット",columnDisplay:"表示列",columnSetting:"列表示設定",fullScreen:"フルスクリーン",exitFullScreen:"終了",reload:"更新",density:"行高",densityDefault:"デフォルト",densityLarger:"大",densityMiddle:"中",densitySmall:"小"},stepsForm:{next:"次へ",prev:"前へ",submit:"送信"},loginForm:{submitText:"ログイン"},editableTable:{action:{save:"保存",cancel:"キャンセル",delete:"削除",add:"追加"}},switch:{open:"開く",close:"閉じる"}},RQe={moneySymbol:"₩",form:{lightFilter:{more:"더보기",clear:"초기화",confirm:"확인",itemUnit:"건수"}},tableForm:{search:"조회",reset:"초기화",submit:"제출",collapsed:"확장",expand:"닫기",inputPlaceholder:"입력해 주세요",selectPlaceholder:"선택해 주세요"},alert:{clear:"취소",selected:"선택",item:"건"},pagination:{total:{range:" ",total:"/ 총",item:"건"}},tableToolBar:{leftPin:"왼쪽으로 핀",rightPin:"오른쪽으로 핀",noPin:"핀 제거",leftFixedTitle:"왼쪽으로 고정",rightFixedTitle:"오른쪽으로 고정",noFixedTitle:"비고정",reset:"초기화",columnDisplay:"컬럼 표시",columnSetting:"설정",fullScreen:"전체 화면",exitFullScreen:"전체 화면 취소",reload:"새로 고침",density:"여백",densityDefault:"기본",densityLarger:"많은 여백",densityMiddle:"중간 여백",densitySmall:"좁은 여백"},stepsForm:{next:"다음",prev:"이전",submit:"종료"},loginForm:{submitText:"로그인"},editableTable:{action:{save:"저장",cancel:"취소",delete:"삭제",add:"데이터 행 추가"}},switch:{open:"열",close:"가까 운"}},IQe={moneySymbol:"₮",form:{lightFilter:{more:"Илүү",clear:"Цэвэрлэх",confirm:"Баталгаажуулах",itemUnit:"Нэгжүүд"}},tableForm:{search:"Хайх",reset:"Шинэчлэх",submit:"Илгээх",collapsed:"Өргөтгөх",expand:"Хураах",inputPlaceholder:"Утга оруулна уу",selectPlaceholder:"Утга сонгоно уу"},alert:{clear:"Цэвэрлэх",selected:"Сонгогдсон",item:"Нэгж"},pagination:{total:{range:" ",total:"Нийт",item:"мөр"}},tableToolBar:{leftPin:"Зүүн тийш бэхлэх",rightPin:"Баруун тийш бэхлэх",noPin:"Бэхлэхгүй",leftFixedTitle:"Зүүн зэрэгцүүлэх",rightFixedTitle:"Баруун зэрэгцүүлэх",noFixedTitle:"Зэрэгцүүлэхгүй",reset:"Шинэчлэх",columnDisplay:"Баганаар харуулах",columnSetting:"Тохиргоо",fullScreen:"Бүтэн дэлгэцээр",exitFullScreen:"Бүтэн дэлгэц цуцлах",reload:"Шинэчлэх",density:"Хэмжээ",densityDefault:"Хэвийн",densityLarger:"Том",densityMiddle:"Дунд",densitySmall:"Жижиг"},stepsForm:{next:"Дараах",prev:"Өмнөх",submit:"Дуусгах"},loginForm:{submitText:"Нэвтрэх"},editableTable:{action:{save:"Хадгалах",cancel:"Цуцлах",delete:"Устгах",add:"Мөр нэмэх"}},switch:{open:"Нээх",close:"Хаах"}},kQe={moneySymbol:"RM",form:{lightFilter:{more:"Lebih banyak",clear:"Jelas",confirm:"Mengesahkan",itemUnit:"Item"}},tableForm:{search:"Cari",reset:"Menetapkan semula",submit:"Hantar",collapsed:"Kembang",expand:"Kuncup",inputPlaceholder:"Sila masuk",selectPlaceholder:"Sila pilih"},alert:{clear:"Padam",selected:"Dipilih",item:"Item"},pagination:{total:{range:" ",total:"daripada",item:"item"}},tableToolBar:{leftPin:"Pin ke kiri",rightPin:"Pin ke kanan",noPin:"Tidak pin",leftFixedTitle:"Tetap ke kiri",rightFixedTitle:"Tetap ke kanan",noFixedTitle:"Tidak Tetap",reset:"Menetapkan semula",columnDisplay:"Lajur",columnSetting:"Settings",fullScreen:"Full Screen",exitFullScreen:"Keluar Full Screen",reload:"Muat Semula",density:"Densiti",densityDefault:"Biasa",densityLarger:"Besar",densityMiddle:"Tengah",densitySmall:"Kecil"},stepsForm:{next:"Seterusnya",prev:"Sebelumnya",submit:"Selesai"},loginForm:{submitText:"Log Masuk"},editableTable:{action:{save:"Simpan",cancel:"Membatalkan",delete:"Menghapuskan",add:"tambah baris data"}},switch:{open:"Terbuka",close:"Tutup"}},NQe={moneySymbol:"€",deleteThisLine:"Verwijder deze regel",copyThisLine:"Kopieer deze regel",form:{lightFilter:{more:"Meer filters",clear:"Wissen",confirm:"Bevestigen",itemUnit:"item"}},tableForm:{search:"Zoeken",reset:"Resetten",submit:"Indienen",collapsed:"Uitvouwen",expand:"Inklappen",inputPlaceholder:"Voer in",selectPlaceholder:"Selecteer"},alert:{clear:"Selectie annuleren",selected:"Geselecteerd",item:"item"},pagination:{total:{range:"Van",total:"items/totaal",item:"items"}},tableToolBar:{leftPin:"Vastzetten aan begin",rightPin:"Vastzetten aan einde",noPin:"Niet vastzetten",leftFixedTitle:"Vastzetten aan de linkerkant",rightFixedTitle:"Vastzetten aan de rechterkant",noFixedTitle:"Niet vastzetten",reset:"Resetten",columnDisplay:"Kolomweergave",columnSetting:"Kolominstellingen",fullScreen:"Volledig scherm",exitFullScreen:"Verlaat volledig scherm",reload:"Vernieuwen",density:"Dichtheid",densityDefault:"Normaal",densityLarger:"Ruim",densityMiddle:"Gemiddeld",densitySmall:"Compact"},stepsForm:{next:"Volgende stap",prev:"Vorige stap",submit:"Indienen"},loginForm:{submitText:"Inloggen"},editableTable:{onlyOneLineEditor:"Slechts één regel tegelijk bewerken",action:{save:"Opslaan",cancel:"Annuleren",delete:"Verwijderen",add:"Een regel toevoegen"}},switch:{open:"Openen",close:"Sluiten"}},AQe={moneySymbol:"zł",form:{lightFilter:{more:"Więcej",clear:"Wyczyść",confirm:"Potwierdź",itemUnit:"Ilość"}},tableForm:{search:"Szukaj",reset:"Reset",submit:"Zatwierdź",collapsed:"Pokaż wiecej",expand:"Pokaż mniej",inputPlaceholder:"Proszę podać",selectPlaceholder:"Proszę wybrać"},alert:{clear:"Wyczyść",selected:"Wybrane",item:"Wpis"},pagination:{total:{range:" ",total:"z",item:"Wpisów"}},tableToolBar:{leftPin:"Przypnij do lewej",rightPin:"Przypnij do prawej",noPin:"Odepnij",leftFixedTitle:"Przypięte do lewej",rightFixedTitle:"Przypięte do prawej",noFixedTitle:"Nieprzypięte",reset:"Reset",columnDisplay:"Wyświetlane wiersze",columnSetting:"Ustawienia",fullScreen:"Pełen ekran",exitFullScreen:"Zamknij pełen ekran",reload:"Odśwież",density:"Odstęp",densityDefault:"Standard",densityLarger:"Wiekszy",densityMiddle:"Sredni",densitySmall:"Kompaktowy"},stepsForm:{next:"Weiter",prev:"Zurück",submit:"Abschließen"},loginForm:{submitText:"Zaloguj się"},editableTable:{action:{save:"Zapisać",cancel:"Anuluj",delete:"Usunąć",add:"dodawanie wiersza danych"}},switch:{open:"otwierać",close:"zamykać"}},DQe={moneySymbol:"R$",form:{lightFilter:{more:"Mais",clear:"Limpar",confirm:"Confirmar",itemUnit:"Itens"}},tableForm:{search:"Filtrar",reset:"Limpar",submit:"Confirmar",collapsed:"Expandir",expand:"Colapsar",inputPlaceholder:"Por favor insira",selectPlaceholder:"Por favor selecione"},alert:{clear:"Limpar",selected:"Selecionado(s)",item:"Item(s)"},pagination:{total:{range:" ",total:"de",item:"itens"}},tableToolBar:{leftPin:"Fixar à esquerda",rightPin:"Fixar à direita",noPin:"Desfixado",leftFixedTitle:"Fixado à esquerda",rightFixedTitle:"Fixado à direita",noFixedTitle:"Não fixado",reset:"Limpar",columnDisplay:"Mostrar Coluna",columnSetting:"Configurações",fullScreen:"Tela Cheia",exitFullScreen:"Sair da Tela Cheia",reload:"Atualizar",density:"Densidade",densityDefault:"Padrão",densityLarger:"Largo",densityMiddle:"Médio",densitySmall:"Compacto"},stepsForm:{next:"Próximo",prev:"Anterior",submit:"Enviar"},loginForm:{submitText:"Entrar"},editableTable:{action:{save:"Salvar",cancel:"Cancelar",delete:"Apagar",add:"adicionar uma linha de dados"}},switch:{open:"abrir",close:"fechar"}},jQe={moneySymbol:"RON",deleteThisLine:"Șterge acest rând",copyThisLine:"Copiază acest rând",form:{lightFilter:{more:"Mai multe filtre",clear:"Curăță",confirm:"Confirmă",itemUnit:"elemente"}},tableForm:{search:"Caută",reset:"Resetează",submit:"Trimite",collapsed:"Extinde",expand:"Restrânge",inputPlaceholder:"Introduceți",selectPlaceholder:"Selectați"},alert:{clear:"Anulează selecția",selected:"Selectat",item:"elemente"},pagination:{total:{range:"De la",total:"elemente/total",item:"elemente"}},tableToolBar:{leftPin:"Fixează la început",rightPin:"Fixează la sfârșit",noPin:"Nu fixa",leftFixedTitle:"Fixează în stânga",rightFixedTitle:"Fixează în dreapta",noFixedTitle:"Nu fixa",reset:"Resetează",columnDisplay:"Afișare coloane",columnSetting:"Setări coloane",fullScreen:"Ecran complet",exitFullScreen:"Ieși din ecran complet",reload:"Reîncarcă",density:"Densitate",densityDefault:"Normal",densityLarger:"Larg",densityMiddle:"Mediu",densitySmall:"Compact"},stepsForm:{next:"Pasul următor",prev:"Pasul anterior",submit:"Trimite"},loginForm:{submitText:"Autentificare"},editableTable:{onlyOneLineEditor:"Se poate edita doar un rând simultan",action:{save:"Salvează",cancel:"Anulează",delete:"Șterge",add:"Adaugă un rând"}},switch:{open:"Deschide",close:"Închide"}},FQe={moneySymbol:"₽",form:{lightFilter:{more:"Еще",clear:"Очистить",confirm:"ОК",itemUnit:"Позиции"}},tableForm:{search:"Найти",reset:"Сброс",submit:"Отправить",collapsed:"Развернуть",expand:"Свернуть",inputPlaceholder:"Введите значение",selectPlaceholder:"Выберите значение"},alert:{clear:"Очистить",selected:"Выбрано",item:"элементов"},pagination:{total:{range:" ",total:"из",item:"элементов"}},tableToolBar:{leftPin:"Закрепить слева",rightPin:"Закрепить справа",noPin:"Открепить",leftFixedTitle:"Закреплено слева",rightFixedTitle:"Закреплено справа",noFixedTitle:"Не закреплено",reset:"Сброс",columnDisplay:"Отображение столбца",columnSetting:"Настройки",fullScreen:"Полный экран",exitFullScreen:"Выйти из полноэкранного режима",reload:"Обновить",density:"Размер",densityDefault:"По умолчанию",densityLarger:"Большой",densityMiddle:"Средний",densitySmall:"Сжатый"},stepsForm:{next:"Следующий",prev:"Предыдущий",submit:"Завершить"},loginForm:{submitText:"Вход"},editableTable:{action:{save:"Сохранить",cancel:"Отменить",delete:"Удалить",add:"добавить ряд данных"}},switch:{open:"Открытый чемпионат мира по теннису",close:"По адресу:"}},LQe={moneySymbol:"€",deleteThisLine:"Odstrániť tento riadok",copyThisLine:"Skopírujte tento riadok",form:{lightFilter:{more:"Viac",clear:"Vyčistiť",confirm:"Potvrďte",itemUnit:"Položky"}},tableForm:{search:"Vyhladať",reset:"Resetovať",submit:"Odoslať",collapsed:"Rozbaliť",expand:"Zbaliť",inputPlaceholder:"Prosím, zadajte",selectPlaceholder:"Prosím, vyberte"},alert:{clear:"Vyčistiť",selected:"Vybraný",item:"Položka"},pagination:{total:{range:" ",total:"z",item:"položiek"}},tableToolBar:{leftPin:"Pripnúť vľavo",rightPin:"Pripnúť vpravo",noPin:"Odopnuté",leftFixedTitle:"Fixované na ľavo",rightFixedTitle:"Fixované na pravo",noFixedTitle:"Nefixované",reset:"Resetovať",columnDisplay:"Zobrazenie stĺpcov",columnSetting:"Nastavenia",fullScreen:"Celá obrazovka",exitFullScreen:"Ukončiť celú obrazovku",reload:"Obnoviť",density:"Hustota",densityDefault:"Predvolené",densityLarger:"Väčšie",densityMiddle:"Stredné",densitySmall:"Kompaktné"},stepsForm:{next:"Ďalšie",prev:"Predchádzajúce",submit:"Potvrdiť"},loginForm:{submitText:"Prihlásiť sa"},editableTable:{onlyOneLineEditor:"Upravovať možno iba jeden riadok",action:{save:"Uložiť",cancel:"Zrušiť",delete:"Odstrániť",add:"pridať riadok údajov"}},switch:{open:"otvoriť",close:"zavrieť"}},BQe={moneySymbol:"RSD",form:{lightFilter:{more:"Više",clear:"Očisti",confirm:"Potvrdi",itemUnit:"Stavke"}},tableForm:{search:"Pronađi",reset:"Resetuj",submit:"Pošalji",collapsed:"Proširi",expand:"Skupi",inputPlaceholder:"Molimo unesite",selectPlaceholder:"Molimo odaberite"},alert:{clear:"Očisti",selected:"Odabrano",item:"Stavka"},pagination:{total:{range:" ",total:"od",item:"stavki"}},tableToolBar:{leftPin:"Zakači levo",rightPin:"Zakači desno",noPin:"Nije zakačeno",leftFixedTitle:"Fiksirano levo",rightFixedTitle:"Fiksirano desno",noFixedTitle:"Nije fiksirano",reset:"Resetuj",columnDisplay:"Prikaz kolona",columnSetting:"Podešavanja",fullScreen:"Pun ekran",exitFullScreen:"Zatvori pun ekran",reload:"Osveži",density:"Veličina",densityDefault:"Podrazumevana",densityLarger:"Veća",densityMiddle:"Srednja",densitySmall:"Kompaktna"},stepsForm:{next:"Dalje",prev:"Nazad",submit:"Gotovo"},loginForm:{submitText:"Prijavi se"},editableTable:{action:{save:"Sačuvaj",cancel:"Poništi",delete:"Obriši",add:"dodajte red podataka"}},switch:{open:"Отворите",close:"Затворите"}},zQe={moneySymbol:"SEK",deleteThisLine:"Radera denna rad",copyThisLine:"Kopiera denna rad",form:{lightFilter:{more:"Fler filter",clear:"Rensa",confirm:"Bekräfta",itemUnit:"objekt"}},tableForm:{search:"Sök",reset:"Återställ",submit:"Skicka",collapsed:"Expandera",expand:"Fäll ihop",inputPlaceholder:"Vänligen ange",selectPlaceholder:"Vänligen välj"},alert:{clear:"Avbryt val",selected:"Vald",item:"objekt"},pagination:{total:{range:"Från",total:"objekt/totalt",item:"objekt"}},tableToolBar:{leftPin:"Fäst till vänster",rightPin:"Fäst till höger",noPin:"Inte fäst",leftFixedTitle:"Fäst till vänster",rightFixedTitle:"Fäst till höger",noFixedTitle:"Inte fäst",reset:"Återställ",columnDisplay:"Kolumnvisning",columnSetting:"Kolumninställningar",fullScreen:"Fullskärm",exitFullScreen:"Avsluta fullskärm",reload:"Ladda om",density:"Täthet",densityDefault:"Normal",densityLarger:"Lös",densityMiddle:"Medium",densitySmall:"Kompakt"},stepsForm:{next:"Nästa steg",prev:"Föregående steg",submit:"Skicka"},loginForm:{submitText:"Logga in"},editableTable:{onlyOneLineEditor:"Endast en rad kan redigeras åt gången",action:{save:"Spara",cancel:"Avbryt",delete:"Radera",add:"Lägg till en rad"}},switch:{open:"Öppna",close:"Stäng"}},HQe={moneySymbol:"฿",deleteThisLine:"ลบบรรทัดนี้",copyThisLine:"คัดลอกบรรทัดนี้",form:{lightFilter:{more:"มากกว่า",clear:"ชัดเจน",confirm:"ยืนยัน",itemUnit:"รายการ"}},tableForm:{search:"สอบถาม",reset:"รีเซ็ต",submit:"ส่ง",collapsed:"ขยาย",expand:"ทรุด",inputPlaceholder:"กรุณาป้อน",selectPlaceholder:"โปรดเลือก"},alert:{clear:"ชัดเจน",selected:"เลือกแล้ว",item:"รายการ"},pagination:{total:{range:" ",total:"ของ",item:"รายการ"}},tableToolBar:{leftPin:"ปักหมุดไปทางซ้าย",rightPin:"ปักหมุดไปทางขวา",noPin:"เลิกตรึงแล้ว",leftFixedTitle:"แก้ไขด้านซ้าย",rightFixedTitle:"แก้ไขด้านขวา",noFixedTitle:"ไม่คงที่",reset:"รีเซ็ต",columnDisplay:"การแสดงคอลัมน์",columnSetting:"การตั้งค่า",fullScreen:"เต็มจอ",exitFullScreen:"ออกจากโหมดเต็มหน้าจอ",reload:"รีเฟรช",density:"ความหนาแน่น",densityDefault:"ค่าเริ่มต้น",densityLarger:"ขนาดใหญ่ขึ้น",densityMiddle:"กลาง",densitySmall:"กะทัดรัด"},stepsForm:{next:"ถัดไป",prev:"ก่อนหน้า",submit:"เสร็จ"},loginForm:{submitText:"เข้าสู่ระบบ"},editableTable:{onlyOneLineEditor:"แก้ไขได้เพียงบรรทัดเดียวเท่านั้น",action:{save:"บันทึก",cancel:"ยกเลิก",delete:"ลบ",add:"เพิ่มแถวของข้อมูล"}},switch:{open:"เปิด",close:"ปิด"}},UQe={moneySymbol:"₺",form:{lightFilter:{more:"Daha Fazla",clear:"Temizle",confirm:"Onayla",itemUnit:"Öğeler"}},tableForm:{search:"Filtrele",reset:"Sıfırla",submit:"Gönder",collapsed:"Daha fazla",expand:"Daha az",inputPlaceholder:"Filtrelemek için bir değer girin",selectPlaceholder:"Filtrelemek için bir değer seçin"},alert:{clear:"Temizle",selected:"Seçili",item:"Öğe"},pagination:{total:{range:" ",total:"Toplam",item:"Öğe"}},tableToolBar:{leftPin:"Sola sabitle",rightPin:"Sağa sabitle",noPin:"Sabitlemeyi kaldır",leftFixedTitle:"Sola sabitlendi",rightFixedTitle:"Sağa sabitlendi",noFixedTitle:"Sabitlenmedi",reset:"Sıfırla",columnDisplay:"Kolon Görünümü",columnSetting:"Ayarlar",fullScreen:"Tam Ekran",exitFullScreen:"Tam Ekrandan Çık",reload:"Yenile",density:"Kalınlık",densityDefault:"Varsayılan",densityLarger:"Büyük",densityMiddle:"Orta",densitySmall:"Küçük"},stepsForm:{next:"Sıradaki",prev:"Önceki",submit:"Gönder"},loginForm:{submitText:"Giriş Yap"},editableTable:{action:{save:"Kaydet",cancel:"Vazgeç",delete:"Sil",add:"foegje in rige gegevens ta"}},switch:{open:"açık",close:"kapatmak"}},WQe={moneySymbol:"₴",deleteThisLine:"Видатили рядок",copyThisLine:"Скопіювати рядок",form:{lightFilter:{more:"Ще",clear:"Очистити",confirm:"Ок",itemUnit:"Позиції"}},tableForm:{search:"Пошук",reset:"Очистити",submit:"Відправити",collapsed:"Розгорнути",expand:"Згорнути",inputPlaceholder:"Введіть значення",selectPlaceholder:"Оберіть значення"},alert:{clear:"Очистити",selected:"Обрано",item:"елементів"},pagination:{total:{range:" ",total:"з",item:"елементів"}},tableToolBar:{leftPin:"Закріпити зліва",rightPin:"Закріпити справа",noPin:"Відкріпити",leftFixedTitle:"Закріплено зліва",rightFixedTitle:"Закріплено справа",noFixedTitle:"Не закріплено",reset:"Скинути",columnDisplay:"Відображення стовпців",columnSetting:"Налаштування",fullScreen:"Повноекранний режим",exitFullScreen:"Вийти з повноекранного режиму",reload:"Оновити",density:"Розмір",densityDefault:"За замовчуванням",densityLarger:"Великий",densityMiddle:"Середній",densitySmall:"Стислий"},stepsForm:{next:"Наступний",prev:"Попередній",submit:"Завершити"},loginForm:{submitText:"Вхіх"},editableTable:{onlyOneLineEditor:"Тільки один рядок може бути редагований одночасно",action:{save:"Зберегти",cancel:"Відмінити",delete:"Видалити",add:"додати рядок"}},switch:{open:"Відкрито",close:"Закрито"}},VQe={moneySymbol:"UZS",form:{lightFilter:{more:"Yana",clear:"Tozalash",confirm:"OK",itemUnit:"Pozitsiyalar"}},tableForm:{search:"Qidirish",reset:"Qayta tiklash",submit:"Yuborish",collapsed:"Yig‘ish",expand:"Kengaytirish",inputPlaceholder:"Qiymatni kiriting",selectPlaceholder:"Qiymatni tanlang"},alert:{clear:"Tozalash",selected:"Tanlangan",item:"elementlar"},pagination:{total:{range:" ",total:"dan",item:"elementlar"}},tableToolBar:{leftPin:"Chapga mahkamlash",rightPin:"O‘ngga mahkamlash",noPin:"Mahkamlashni olib tashlash",leftFixedTitle:"Chapga mahkamlangan",rightFixedTitle:"O‘ngga mahkamlangan",noFixedTitle:"Mahkamlashsiz",reset:"Qayta tiklash",columnDisplay:"Ustunni ko‘rsatish",columnSetting:"Sozlamalar",fullScreen:"To‘liq ekran",exitFullScreen:"To‘liq ekrandan chiqish",reload:"Yangilash",density:"O‘lcham",densityDefault:"Standart",densityLarger:"Katta",densityMiddle:"O‘rtacha",densitySmall:"Kichik"},stepsForm:{next:"Keyingi",prev:"Oldingi",submit:"Tugatish"},loginForm:{submitText:"Kirish"},editableTable:{action:{save:"Saqlash",cancel:"Bekor qilish",delete:"O‘chirish",add:"maʼlumotlar qatorini qo‘shish"}},switch:{open:"Ochish",close:"Yopish"}},KQe={moneySymbol:"₫",form:{lightFilter:{more:"Nhiều hơn",clear:"Trong",confirm:"Xác nhận",itemUnit:"Mục"}},tableForm:{search:"Tìm kiếm",reset:"Làm lại",submit:"Gửi đi",collapsed:"Mở rộng",expand:"Thu gọn",inputPlaceholder:"nhập dữ liệu",selectPlaceholder:"Vui lòng chọn"},alert:{clear:"Xóa",selected:"đã chọn",item:"mục"},pagination:{total:{range:" ",total:"trên",item:"mặt hàng"}},tableToolBar:{leftPin:"Ghim trái",rightPin:"Ghim phải",noPin:"Bỏ ghim",leftFixedTitle:"Cố định trái",rightFixedTitle:"Cố định phải",noFixedTitle:"Chưa cố định",reset:"Làm lại",columnDisplay:"Cột hiển thị",columnSetting:"Cấu hình",fullScreen:"Chế độ toàn màn hình",exitFullScreen:"Thoát chế độ toàn màn hình",reload:"Làm mới",density:"Mật độ hiển thị",densityDefault:"Mặc định",densityLarger:"Mặc định",densityMiddle:"Trung bình",densitySmall:"Chật"},stepsForm:{next:"Sau",prev:"Trước",submit:"Kết thúc"},loginForm:{submitText:"Đăng nhập"},editableTable:{action:{save:"Cứu",cancel:"Hủy",delete:"Xóa",add:"thêm một hàng dữ liệu"}},switch:{open:"mở",close:"đóng"}},qQe={moneySymbol:"¥",deleteThisLine:"删除此项",copyThisLine:"复制此项",form:{lightFilter:{more:"更多筛选",clear:"清除",confirm:"确认",itemUnit:"项"}},tableForm:{search:"查询",reset:"重置",submit:"提交",collapsed:"展开",expand:"收起",inputPlaceholder:"请输入",selectPlaceholder:"请选择"},alert:{clear:"取消选择",selected:"已选择",item:"项"},pagination:{total:{range:"第",total:"条/总共",item:"条"}},tableToolBar:{leftPin:"固定在列首",rightPin:"固定在列尾",noPin:"不固定",leftFixedTitle:"固定在左侧",rightFixedTitle:"固定在右侧",noFixedTitle:"不固定",reset:"重置",columnDisplay:"列展示",columnSetting:"列设置",fullScreen:"全屏",exitFullScreen:"退出全屏",reload:"刷新",density:"密度",densityDefault:"正常",densityLarger:"宽松",densityMiddle:"中等",densitySmall:"紧凑"},stepsForm:{next:"下一步",prev:"上一步",submit:"提交"},loginForm:{submitText:"登录"},editableTable:{onlyOneLineEditor:"只能同时编辑一行",action:{save:"保存",cancel:"取消",delete:"删除",add:"添加一行数据"}},switch:{open:"打开",close:"关闭"}},GQe={moneySymbol:"NT$",deleteThisLine:"刪除此项",copyThisLine:"複製此项",form:{lightFilter:{more:"更多篩選",clear:"清除",confirm:"確認",itemUnit:"項"}},tableForm:{search:"查詢",reset:"重置",submit:"提交",collapsed:"展開",expand:"收起",inputPlaceholder:"請輸入",selectPlaceholder:"請選擇"},alert:{clear:"取消選擇",selected:"已選擇",item:"項"},pagination:{total:{range:"第",total:"條/總共",item:"條"}},tableToolBar:{leftPin:"固定到左邊",rightPin:"固定到右邊",noPin:"不固定",leftFixedTitle:"固定在左側",rightFixedTitle:"固定在右側",noFixedTitle:"不固定",reset:"重置",columnDisplay:"列展示",columnSetting:"列設置",fullScreen:"全屏",exitFullScreen:"退出全屏",reload:"刷新",density:"密度",densityDefault:"正常",densityLarger:"寬鬆",densityMiddle:"中等",densitySmall:"緊湊"},stepsForm:{next:"下一步",prev:"上一步",submit:"完成"},loginForm:{submitText:"登入"},editableTable:{onlyOneLineEditor:"只能同時編輯一行",action:{save:"保存",cancel:"取消",delete:"刪除",add:"新增一行資料"}},switch:{open:"打開",close:"關閉"}};var kr=function(t,n){return{getMessage:function(o,i){var a=Mo(n,o.replace(/\[(\d+)\]/g,".$1").split("."))||"";if(a)return a;var s=t.replace("_","-");if(s==="zh-CN")return i;var l=Sp["zh-CN"];return l?l.getMessage(o,i):i},locale:t}},YQe=kr("mn_MN",IQe),XQe=kr("ar_EG",vQe),ug=kr("zh_CN",qQe),QQe=kr("en_US",wQe),JQe=kr("en_GB",CQe),ZQe=kr("vi_VN",KQe),eJe=kr("it_IT",MQe),tJe=kr("ja_JP",TQe),nJe=kr("es_ES",xQe),rJe=kr("ca_ES",yQe),oJe=kr("ru_RU",FQe),iJe=kr("sr_RS",BQe),aJe=kr("ms_MY",kQe),sJe=kr("zh_TW",GQe),lJe=kr("fr_FR",_Qe),cJe=kr("pt_BR",DQe),uJe=kr("ko_KR",RQe),dJe=kr("id_ID",OQe),fJe=kr("de_DE",SQe),hJe=kr("fa_IR",EQe),pJe=kr("tr_TR",UQe),mJe=kr("pl_PL",AQe),gJe=kr("hr_",PQe),vJe=kr("th_TH",HQe),yJe=kr("cs_cz",bQe),bJe=kr("sk_SK",LQe),SJe=kr("he_IL",$Qe),CJe=kr("uk_UA",WQe),wJe=kr("uz_UZ",VQe),xJe=kr("nl_NL",NQe),EJe=kr("ro_RO",jQe),_Je=kr("sv_SE",zQe),Sp={"mn-MN":YQe,"ar-EG":XQe,"zh-CN":ug,"en-US":QQe,"en-GB":JQe,"vi-VN":ZQe,"it-IT":eJe,"ja-JP":tJe,"es-ES":nJe,"ca-ES":rJe,"ru-RU":oJe,"sr-RS":iJe,"ms-MY":aJe,"zh-TW":sJe,"fr-FR":lJe,"pt-BR":cJe,"ko-KR":uJe,"id-ID":dJe,"de-DE":fJe,"fa-IR":hJe,"tr-TR":pJe,"pl-PL":mJe,"hr-HR":gJe,"th-TH":vJe,"cs-CZ":yJe,"sk-SK":bJe,"he-IL":SJe,"uk-UA":CJe,"uz-UZ":wJe,"nl-NL":xJe,"ro-RO":EJe,"sv-SE":_Je},$Je=Object.keys(Sp),_ce=function(t){var n=(t||"zh-CN").toLocaleLowerCase();return $Je.find(function(r){var o=r.toLocaleLowerCase();return o.includes(n)})};function Ai(e,t){PJe(e)&&(e="100%");var n=OJe(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 iw(e){return Math.min(1,Math.max(0,e))}function PJe(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function OJe(e){return typeof e=="string"&&e.indexOf("%")!==-1}function $ce(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function aw(e){return e<=1?"".concat(Number(e)*100,"%"):e}function kh(e){return e.length===1?"0"+e:String(e)}function MJe(e,t,n){return{r:Ai(e,255)*255,g:Ai(t,255)*255,b:Ai(n,255)*255}}function pV(e,t,n){e=Ai(e,255),t=Ai(t,255),n=Ai(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=0,s=(r+o)/2;if(r===o)a=0,i=0;else{var l=r-o;switch(a=s>.5?l/(2-r-o):l/(r+o),r){case e:i=(t-n)/l+(t1&&(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 TJe(e,t,n){var r,o,i;if(e=Ai(e,360),t=Ai(t,100),n=Ai(n,100),t===0)o=n,i=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,s=2*n-a;r=RR(s,a,e+1/3),o=RR(s,a,e),i=RR(s,a,e-1/3)}return{r:r*255,g:o*255,b:i*255}}function mV(e,t,n){e=Ai(e,255),t=Ai(t,255),n=Ai(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i=0,a=r,s=r-o,l=r===0?0:s/r;if(r===o)i=0;else{switch(r){case e:i=(t-n)/s+(t>16,g:(e&65280)>>8,b:e&255}}var G6={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 AJe(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,i=null,a=!1,s=!1;return typeof e=="string"&&(e=FJe(e)),typeof e=="object"&&(vu(e.r)&&vu(e.g)&&vu(e.b)?(t=MJe(e.r,e.g,e.b),a=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):vu(e.h)&&vu(e.s)&&vu(e.v)?(r=aw(e.s),o=aw(e.v),t=RJe(e.h,r,o),a=!0,s="hsv"):vu(e.h)&&vu(e.s)&&vu(e.l)&&(r=aw(e.s),i=aw(e.l),t=TJe(e.h,r,i),a=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=$ce(n),{ok:a,format:e.format||s,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 DJe="[-\\+]?\\d+%?",jJe="[-\\+]?\\d*\\.\\d+%?",of="(?:".concat(jJe,")|(?:").concat(DJe,")"),IR="[\\s|\\(]+(".concat(of,")[,|\\s]+(").concat(of,")[,|\\s]+(").concat(of,")\\s*\\)?"),kR="[\\s|\\(]+(".concat(of,")[,|\\s]+(").concat(of,")[,|\\s]+(").concat(of,")[,|\\s]+(").concat(of,")\\s*\\)?"),_l={CSS_UNIT:new RegExp(of),rgb:new RegExp("rgb"+IR),rgba:new RegExp("rgba"+kR),hsl:new RegExp("hsl"+IR),hsla:new RegExp("hsla"+kR),hsv:new RegExp("hsv"+IR),hsva:new RegExp("hsva"+kR),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 FJe(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(G6[e])e=G6[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=_l.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=_l.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=_l.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=_l.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=_l.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=_l.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=_l.hex8.exec(e),n?{r:ls(n[1]),g:ls(n[2]),b:ls(n[3]),a:vV(n[4]),format:t?"name":"hex8"}:(n=_l.hex6.exec(e),n?{r:ls(n[1]),g:ls(n[2]),b:ls(n[3]),format:t?"name":"hex"}:(n=_l.hex4.exec(e),n?{r:ls(n[1]+n[1]),g:ls(n[2]+n[2]),b:ls(n[3]+n[3]),a:vV(n[4]+n[4]),format:t?"name":"hex8"}:(n=_l.hex3.exec(e),n?{r:ls(n[1]+n[1]),g:ls(n[2]+n[2]),b:ls(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function vu(e){return!!_l.CSS_UNIT.exec(String(e))}var LJe=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=NJe(t)),this.originalInput=t;var o=AJe(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,o,i=t.r/255,a=t.g/255,s=t.b/255;return i<=.03928?n=i/12.92:n=Math.pow((i+.055)/1.055,2.4),a<=.03928?r=a/12.92:r=Math.pow((a+.055)/1.055,2.4),s<=.03928?o=s/12.92:o=Math.pow((s+.055)/1.055,2.4),.2126*n+.7152*r+.0722*o},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=$ce(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=mV(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=mV(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=pV(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=pV(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),gV(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),IJe(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(Ai(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(Ai(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+gV(this.r,this.g,this.b,!1),n=0,r=Object.entries(G6);n=0,i=!n&&o&&(t.startsWith("hex")||t==="name");return i?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=iw(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=iw(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=iw(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=iw(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100,a={r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a};return new e(a)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,i=n.v,a=[],s=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+s)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],i=360/t,a=1;a1&&arguments[1]!==void 0?arguments[1]:1,r=3735928559^n,o=1103547991^n,i=0,a;i>>16,2246822507)^Math.imul(o^o>>>13,3266489909),o=Math.imul(o^o>>>16,2246822507)^Math.imul(r^r>>>13,3266489909),4294967296*(2097151&o)+(r>>>0)},lj=up(function(e){return e}),Oce={theme:lj,token:z(z({},n1),pa==null||(NR=pa.defaultAlgorithm)===null||NR===void 0?void 0:NR.call(pa,pa==null?void 0:pa.defaultSeed)),hashId:"pro-".concat(Pce(JSON.stringify(n1)))},BJe=function(){return Oce};const zJe=Object.freeze(Object.defineProperty({__proto__:null,defaultToken:n1,emptyTheme:lj,hashCode:Pce,token:Oce,useToken:BJe},Symbol.toStringTag,{value:"Module"}));var cs=function(t,n){return new LJe(t).setAlpha(n).toRgbString()},HJe=function(){return typeof pa>"u"||!pa?zJe:pa},Qc=HJe(),hx=Qc.useToken,AR=function(t){return{boxSizing:"border-box",margin:0,padding:0,color:t.colorText,fontSize:t.fontSize,lineHeight:t.lineHeight,listStyle:"none"}};function Zr(e,t){var n,r=d.useContext(Yl),o=r.token,i=o===void 0?{}:o,a=d.useContext(Yl),s=a.hashed,l=hx(),c=l.token,u=l.hashId,f=d.useContext(Yl),h=f.theme,p=d.useContext(Mn.ConfigContext),m=p.getPrefixCls,g=p.csp;return i.layout||(i=z({},c)),i.proComponentsCls=(n=i.proComponentsCls)!==null&&n!==void 0?n:".".concat(m("pro")),i.antCls=".".concat(m()),{wrapSSR:Bb({theme:h,token:i,path:[e],nonce:g==null?void 0:g.nonce,layer:{name:"antd-pro",dependencies:["antd"]}},function(){return t(i)}),hashId:s?u:""}}var UJe=function(t,n){var r,o,i,a,s,l=z({},t);return z(z({bgLayout:"linear-gradient(".concat(n.colorBgContainer,", ").concat(n.colorBgLayout," 28%)"),colorTextAppListIcon:n.colorTextSecondary,appListIconHoverBgColor:l==null||(r=l.sider)===null||r===void 0?void 0:r.colorBgMenuItemSelected,colorBgAppListIconHover:cs(n.colorTextBase,.04),colorTextAppListIconHover:n.colorTextBase},l),{},{header:z({colorBgHeader:cs(n.colorBgElevated,.6),colorBgScrollHeader:cs(n.colorBgElevated,.8),colorHeaderTitle:n.colorText,colorBgMenuItemHover:cs(n.colorTextBase,.03),colorBgMenuItemSelected:"transparent",colorBgMenuElevated:(l==null||(o=l.header)===null||o===void 0?void 0:o.colorBgHeader)!=="rgba(255, 255, 255, 0.6)"?(i=l.header)===null||i===void 0?void 0:i.colorBgHeader:n.colorBgElevated,colorTextMenuSelected:cs(n.colorTextBase,.95),colorBgRightActionsItemHover:cs(n.colorTextBase,.03),colorTextRightActionsItem:n.colorTextTertiary,heightLayoutHeader:56,colorTextMenu:n.colorTextSecondary,colorTextMenuSecondary:n.colorTextTertiary,colorTextMenuTitle:n.colorText,colorTextMenuActive:n.colorText},l.header),sider:z({paddingInlineLayoutMenu:8,paddingBlockLayoutMenu:0,colorBgCollapsedButton:n.colorBgElevated,colorTextCollapsedButtonHover:n.colorTextSecondary,colorTextCollapsedButton:cs(n.colorTextBase,.25),colorMenuBackground:"transparent",colorMenuItemDivider:cs(n.colorTextBase,.06),colorBgMenuItemHover:cs(n.colorTextBase,.03),colorBgMenuItemSelected:cs(n.colorTextBase,.04),colorTextMenuItemHover:n.colorText,colorTextMenuSelected:cs(n.colorTextBase,.95),colorTextMenuActive:n.colorText,colorTextMenu:n.colorTextSecondary,colorTextMenuSecondary:n.colorTextTertiary,colorTextMenuTitle:n.colorText,colorTextSubMenuSelected:cs(n.colorTextBase,.95)},l.sider),pageContainer:z({colorBgPageContainer:"transparent",paddingInlinePageContainerContent:((a=l.pageContainer)===null||a===void 0?void 0:a.marginInlinePageContainerContent)||40,paddingBlockPageContainerContent:((s=l.pageContainer)===null||s===void 0?void 0:s.marginBlockPageContainerContent)||32,colorBgPageContainerFixed:n.colorBgElevated},l.pageContainer)})},WJe=function(){for(var t={},n=arguments.length,r=new Array(n),o=0;o1,oe=A.getMessage("form.lightFilter.itemUnit","项");return typeof G=="string"&&G.length>E&&ce?"...".concat(Q.length).concat(oe):""},ne=X();return N.jsxs("span",{title:typeof G=="string"?G:void 0,style:{display:"inline-flex",alignItems:"center"},children:[ie,N.jsx("span",{style:{paddingInlineStart:4,display:"flex"},children:typeof G=="string"?G==null||(ee=G.toString())===null||ee===void 0||(re=ee.slice)===null||re===void 0?void 0:re.call(ee,0,E):G}),ne]})}return L||h};return T(N.jsxs("span",{className:xe(I,D,"".concat(I,"-").concat((o=(i=t.size)!==null&&i!==void 0?i:_)!==null&&o!==void 0?o:"middle"),Z(Z(Z(Z({},"".concat(I,"-active"),(Array.isArray(l)?l.length>0:!!l)||l===0),"".concat(I,"-disabled"),c),"".concat(I,"-bordered"),g),"".concat(I,"-allow-clear"),S),p),style:v,ref:k,onClick:function(){var L;t==null||(L=t.onClick)===null||L===void 0||L.call(t)},children:[W(a,l),(l||l===0)&&S&&N.jsx(ru,{role:"button",title:A.getMessage("form.lightFilter.clear","清除"),className:xe("".concat(I,"-icon"),D,"".concat(I,"-close")),onClick:function(L){c||s==null||s(),L.stopPropagation()},ref:j}),b!==!1?b??N.jsx(z$,{className:xe("".concat(I,"-icon"),D,"".concat(I,"-arrow"))}):null]}))},bd=de.forwardRef(rZe),Js=function(t){var n={};if(Object.keys(t||{}).forEach(function(r){t[r]!==void 0&&(n[r]=t[r])}),!(Object.keys(n).length<1))return n},oZe=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,yV=function(t){return t==="*"||t==="x"||t==="X"},bV=function(t){var n=parseInt(t,10);return isNaN(n)?t:n},iZe=function(t,n){return Ht(t)!==Ht(n)?[String(t),String(n)]:[t,n]},aZe=function(t,n){if(yV(t)||yV(n))return 0;var r=iZe(bV(t),bV(n)),o=$e(r,2),i=o[0],a=o[1];return i>a?1:i"u"?td:((t=process)===null||t===void 0||(t=t.env)===null||t===void 0?void 0:t.ANTD_VERSION)||td},TP=function(t,n){var r=hS(Mce(),"4.23.0")>-1?{open:t,onOpenChange:n}:{visible:t,onVisibleChange:n};return Js(r)},lZe=function(t){return Z(Z(Z({},"".concat(t.componentCls,"-label"),{cursor:"pointer"}),"".concat(t.componentCls,"-overlay"),{minWidth:"200px",marginBlockStart:"4px"}),"".concat(t.componentCls,"-content"),{paddingBlock:16,paddingInline:16})};function cZe(e){return Zr("FilterDropdown",function(t){var n=z(z({},t),{},{componentCls:".".concat(e)});return[lZe(n)]})}var uZe=function(t){var n=t.children,r=t.label,o=t.footer,i=t.open,a=t.onOpenChange,s=t.disabled,l=t.onVisibleChange,c=t.visible,u=t.footerRender,f=t.placement,h=d.useContext(Mn.ConfigContext),p=h.getPrefixCls,m=p("pro-core-field-dropdown"),g=cZe(m),v=g.wrapSSR,b=g.hashId,y=TP(i||c||!1,a||l),S=d.useRef(null);return v(N.jsx(fl,z(z({placement:f,trigger:["click"]},y),{},{overlayInnerStyle:{padding:0},content:N.jsxs("div",{ref:S,className:xe("".concat(m,"-overlay"),Z(Z({},"".concat(m,"-overlay-").concat(f),f),"hashId",b)),children:[N.jsx(Mn,{getPopupContainer:function(){return S.current||document.body},children:N.jsx("div",{className:"".concat(m,"-content ").concat(b).trim(),children:n})}),o&&N.jsx(ZJe,z({disabled:s,footerRender:u},o))]}),children:N.jsx("span",{className:"".concat(m,"-label ").concat(b).trim(),children:r})})))},dZe=function(t){return Z({},t.componentCls,{display:"inline-flex",alignItems:"center",maxWidth:"100%","&-icon":{display:"block",marginInlineStart:"4px",cursor:"pointer","&:hover":{color:t.colorPrimary}},"&-title":{display:"inline-flex",flex:"1"},"&-subtitle ":{marginInlineStart:8,color:t.colorTextSecondary,fontWeight:"normal",fontSize:t.fontSize,whiteSpace:"nowrap"},"&-title-ellipsis":{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",wordBreak:"keep-all"}})};function fZe(e){return Zr("LabelIconTip",function(t){var n=z(z({},t),{},{componentCls:".".concat(e)});return[dZe(n)]})}var hZe=de.memo(function(e){var t=e.label,n=e.tooltip,r=e.ellipsis,o=e.subTitle,i=d.useContext(Mn.ConfigContext),a=i.getPrefixCls,s=a("pro-core-label-tip"),l=fZe(s),c=l.wrapSSR,u=l.hashId;if(!n&&!o)return N.jsx(N.Fragment,{children:t});var f=typeof n=="string"||de.isValidElement(n)?{title:n}:n,h=(f==null?void 0:f.icon)||N.jsx(YHe,{});return c(N.jsxs("div",{className:xe(s,u),onMouseDown:function(m){return m.stopPropagation()},onMouseLeave:function(m){return m.stopPropagation()},onMouseMove:function(m){return m.stopPropagation()},children:[N.jsx("div",{className:xe("".concat(s,"-title"),u,Z({},"".concat(s,"-title-ellipsis"),r)),children:t}),o&&N.jsx("div",{className:"".concat(s,"-subtitle ").concat(u).trim(),children:o}),n&&N.jsx(xa,z(z({},f),{},{children:N.jsx("span",{className:"".concat(s,"-icon ").concat(u).trim(),children:h})}))]}))}),Tce=de.createContext({}),Rce={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ro,function(){var n="month",r="quarter";return function(o,i){var a=i.prototype;a.quarter=function(c){return this.$utils().u(c)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(c-1))};var s=a.add;a.add=function(c,u){return c=Number(c),this.$utils().p(u)===r?this.add(3*c,n):s.bind(this)(c,u)};var l=a.startOf;a.startOf=function(c,u){var f=this.$utils(),h=!!f.u(u)||u;if(f.p(c)===r){var p=this.quarter()-1;return h?this.month(3*p).startOf(n).startOf("day"):this.month(3*p+2).endOf(n).endOf("day")}return l.bind(this)(c,u)}}})})(Rce);var pZe=Rce.exports;const mZe=Fr(pZe);var Cp=function(t){return t==null};qn.extend(mZe);var Ice={time:"HH:mm:ss",timeRange:"HH:mm:ss",date:"YYYY-MM-DD",dateWeek:"YYYY-wo",dateMonth:"YYYY-MM",dateQuarter:"YYYY-[Q]Q",dateYear:"YYYY",dateRange:"YYYY-MM-DD",dateTime:"YYYY-MM-DD HH:mm:ss",dateTimeRange:"YYYY-MM-DD HH:mm:ss"};function CV(e){return Object.prototype.toString.call(e)==="[object Object]"}function gZe(e){if(CV(e)===!1)return!1;var t=e.constructor;if(t===void 0)return!0;var n=t.prototype;return!(CV(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)}var Y6=function(t){return!!(t!=null&&t._isAMomentObject)},wV=function(t,n,r){if(!n)return t;if(qn.isDayjs(t)||Y6(t)){if(n==="number")return t.valueOf();if(n==="string")return t.format(Ice[r]||"YYYY-MM-DD HH:mm:ss");if(typeof n=="string"&&n!=="string")return t.format(n);if(typeof n=="function")return n(t,r)}return t},vZe=function e(t,n,r,o,i){var a={};return typeof window>"u"||Ht(t)!=="object"||Cp(t)||t instanceof Blob||Array.isArray(t)?t:(Object.keys(t).forEach(function(s){var l=i?[i,s].flat(1):[s],c=Mo(r,l)||"text",u="text",f;typeof c=="string"?u=c:c&&(u=c.valueType,f=c.dateFormat);var h=t[s];if(!(Cp(h)&&o)){if(gZe(h)&&!Array.isArray(h)&&!qn.isDayjs(h)&&!Y6(h)){a[s]=e(h,n,r,o,l);return}if(Array.isArray(h)){a[s]=h.map(function(p,m){return qn.isDayjs(p)||Y6(p)?wV(p,f||n,u):e(p,n,r,o,[s,"".concat(m)].flat(1))});return}a[s]=wV(h,f||n,u)}}),a)},xV=function(t,n){return typeof n=="function"?n(qn(t)):qn(t).format(n)},yZe=function(t,n){var r=Array.isArray(t)?t:[],o=$e(r,2),i=o[0],a=o[1],s,l;Array.isArray(n)?(s=n[0],l=n[1]):Ht(n)==="object"&&n.type==="mask"?(s=n.format,l=n.format):(s=n,l=n);var c=i?xV(i,s):"",u=a?xV(a,l):"",f=c&&u?"".concat(c," ~ ").concat(u):"";return f};function Zg(e){if(typeof e=="function"){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1&&arguments[1]!==void 0?arguments[1]:100,n=arguments.length>2?arguments[2]:void 0,r=d.useState(e),o=$e(r,2),i=o[0],a=o[1],s=SZe(e);return d.useEffect(function(){var l=setTimeout(function(){a(s.current)},t);return function(){return clearTimeout(l)}},n?[t].concat(Ze(n)):void 0),i}function Jh(e,t,n,r){if(e===t)return!0;if(e&&t&&Ht(e)==="object"&&Ht(t)==="object"){if(e.constructor!==t.constructor)return!1;var o,i,a;if(Array.isArray(e)){if(o=e.length,o!=t.length)return!1;for(i=o;i--!==0;)if(!Jh(e[i],t[i],n,r))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;var s=Fc(e.entries()),l;try{for(s.s();!(l=s.n()).done;)if(i=l.value,!t.has(i[0]))return!1}catch(m){s.e(m)}finally{s.f()}var c=Fc(e.entries()),u;try{for(c.s();!(u=c.n()).done;)if(i=u.value,!Jh(i[1],t.get(i[0]),n,r))return!1}catch(m){c.e(m)}finally{c.f()}return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;var f=Fc(e.entries()),h;try{for(f.s();!(h=f.n()).done;)if(i=h.value,!t.has(i[0]))return!1}catch(m){f.e(m)}finally{f.f()}return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(o=e.length,o!=t.length)return!1;for(i=o;i--!==0;)if(e[i]!==t[i])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&e.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&e.toString)return e.toString()===t.toString();if(a=Object.keys(e),o=a.length,o!==Object.keys(t).length)return!1;for(i=o;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,a[i]))return!1;for(i=o;i--!==0;){var p=a[i];if(!(n!=null&&n.includes(p))&&!(p==="_owner"&&e.$$typeof)&&!Jh(e[p],t[p],n,r))return!1}return!0}return e!==e&&t!==t}var wZe=function(t,n,r){return Jh(t,n,r)};function Nce(e,t){var n=d.useRef();return wZe(e,n.current,t)||(n.current=e),n.current}function xZe(e,t,n){d.useEffect(e,Nce(t||[],n))}function Na(e,t){return de.useMemo(e,Nce(t))}var EZe=typeof process<"u"&&process.versions!=null&&process.versions.node!=null,cj=function(){return typeof process<"u",typeof window<"u"&&typeof window.document<"u"&&typeof window.matchMedia<"u"&&!EZe};function _Ze(e,t){var n=typeof e.pageName=="string"?e.title:t;d.useEffect(function(){cj()&&n&&(document.title=n)},[e.title,n])}var DR=0;function $Ze(e){var t=d.useRef(null),n=d.useState(function(){return e.proFieldKey?e.proFieldKey.toString():(DR+=1,DR.toString())}),r=$e(n,1),o=r[0],i=d.useRef(o),a=function(){var u=Bo(nr().mark(function f(){var h,p,m,g;return nr().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return(h=t.current)===null||h===void 0||h.abort(),m=new AbortController,t.current=m,b.next=5,Promise.race([(p=e.request)===null||p===void 0?void 0:p.call(e,e.params,e),new Promise(function(y,S){var w;(w=t.current)===null||w===void 0||(w=w.signal)===null||w===void 0||w.addEventListener("abort",function(){S(new Error("aborted"))})})]);case 5:return g=b.sent,b.abrupt("return",g);case 7:case"end":return b.stop()}},f)}));return function(){return u.apply(this,arguments)}}();d.useEffect(function(){return function(){DR+=1}},[]);var s=sj([i.current,e.params],a,{revalidateOnFocus:!1,shouldRetryOnError:!1,revalidateOnReconnect:!1}),l=s.data,c=s.error;return[l||c]}var PZe=function(t){var n=d.useRef();return d.useEffect(function(){n.current=t}),n.current},OZe=function(t){var n=!1;return(typeof t=="string"&&t.startsWith("date")&&!t.endsWith("Range")||t==="select"||t==="time")&&(n=!0),n};function MZe(e){return/\w.(png|jpg|jpeg|svg|webp|gif|bmp)$/i.test(e)}var uj=function(t){if(!t||!t.startsWith("http"))return!1;try{var n=new URL(t);return!!n}catch{return!1}},Ace=function(){for(var t={},n=arguments.length,r=new Array(n),o=0;o0&&arguments[0]!==void 0?arguments[0]:21;if(typeof window>"u"||!window.crypto)return(EV+=1).toFixed(0);for(var n="",r=crypto.getRandomValues(new Uint8Array(t));t--;){var o=63&r[t];n+=o<36?o.toString(36):o<62?(o-26).toString(36).toUpperCase():o<63?"_":"-"}return n},yE=function(){return typeof window>"u"?_V():window.crypto&&window.crypto.randomUUID&&typeof crypto.randomUUID=="function"?crypto.randomUUID():_V()};qn.extend(Zoe);var $V=function(t){return!!(t!=null&&t._isAMomentObject)},pS=function e(t,n){return Cp(t)||qn.isDayjs(t)||$V(t)?$V(t)?qn(t):t:Array.isArray(t)?t.map(function(r){return e(r,n)}):typeof t=="number"?qn(t):qn(t,n)},TZe=["colon","dependencies","extra","getValueFromEvent","getValueProps","hasFeedback","help","htmlFor","initialValue","noStyle","label","labelAlign","labelCol","name","preserve","normalize","required","rules","shouldUpdate","trigger","validateFirst","validateStatus","validateTrigger","valuePropName","wrapperCol","hidden","addonBefore","addonAfter","addonWarpStyle"];function RZe(e){var t={};return TZe.forEach(function(n){e[n]!==void 0&&(t[n]=e[n])}),t}var IZe="valueType request plain renderFormItem render text formItemProps valueEnum",kZe="fieldProps isDefaultDom groupProps contentRender submitterProps submitter";function Dce(e){var t="".concat(IZe," ").concat(kZe).split(/[\s\n]+/),n={};return Object.keys(e||{}).forEach(function(r){t.includes(r)||(n[r]=e[r])}),n}function NZe(e){var t=Object.prototype.toString.call(e).match(/^\[object (.*)\]$/)[1].toLowerCase();return t==="string"&&Ht(e)==="object"?"object":e===null?"null":e===void 0?"undefined":t}var AZe=function(t){var n=t.color,r=t.children;return N.jsx(Xi,{color:n,text:r})},Sd=function(t){return NZe(t)==="map"?t:new Map(Object.entries(t||{}))},DZe={Success:function(t){var n=t.children;return N.jsx(Xi,{status:"success",text:n})},Error:function(t){var n=t.children;return N.jsx(Xi,{status:"error",text:n})},Default:function(t){var n=t.children;return N.jsx(Xi,{status:"default",text:n})},Processing:function(t){var n=t.children;return N.jsx(Xi,{status:"processing",text:n})},Warning:function(t){var n=t.children;return N.jsx(Xi,{status:"warning",text:n})},success:function(t){var n=t.children;return N.jsx(Xi,{status:"success",text:n})},error:function(t){var n=t.children;return N.jsx(Xi,{status:"error",text:n})},default:function(t){var n=t.children;return N.jsx(Xi,{status:"default",text:n})},processing:function(t){var n=t.children;return N.jsx(Xi,{status:"processing",text:n})},warning:function(t){var n=t.children;return N.jsx(Xi,{status:"warning",text:n})}},Kv=function e(t,n,r){if(Array.isArray(t))return N.jsx(oo,{split:",",size:2,wrap:!0,children:t.map(function(c,u){return e(c,n,u)})},r);var o=Sd(n);if(!o.has(t)&&!o.has("".concat(t)))return(t==null?void 0:t.label)||t;var i=o.get(t)||o.get("".concat(t));if(!i)return N.jsx(de.Fragment,{children:(t==null?void 0:t.label)||t},r);var a=i.status,s=i.color,l=DZe[a||"Init"];return l?N.jsx(l,{children:i.text},r):s?N.jsx(AZe,{color:s,children:i.text},r):N.jsx(de.Fragment,{children:i.text||i},r)},X6={exports:{}};(function(e,t){const{hasOwnProperty:n}=Object.prototype,r=b();r.configure=b,r.stringify=r,r.default=r,t.stringify=r,t.configure=b,e.exports=r;const o=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]/;function i(y){return y.length<5e3&&!o.test(y)?`"${y}"`:JSON.stringify(y)}function a(y,S){if(y.length>200||S)return y.sort(S);for(let w=1;wE;)y[C]=y[C-1],C--;y[C]=E}return y}const s=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function l(y){return s.call(y)!==void 0&&y.length!==0}function c(y,S,w){y.length= 1`)}return w===void 0?1/0:w}function m(y){return y===1?"1 item":`${y} items`}function g(y){const S=new Set;for(const w of y)(typeof w=="string"||typeof w=="number")&&S.add(String(w));return S}function v(y){if(n.call(y,"strict")){const S=y.strict;if(typeof S!="boolean")throw new TypeError('The "strict" argument must be of type boolean');if(S)return w=>{let E=`Object can not safely be stringified. Received type ${typeof w}`;throw typeof w!="function"&&(E+=` (${w.toString()})`),new Error(E)}}}function b(y){y={...y};const S=v(y);S&&(y.bigint===void 0&&(y.bigint=!1),"circularValue"in y||(y.circularValue=Error));const w=u(y),E=h(y,"bigint"),C=f(y),x=typeof C=="function"?C:void 0,_=p(y,"maximumDepth"),P=p(y,"maximumBreadth");function O(A,j,k,F,V,W){let K=j[A];switch(typeof K=="object"&&K!==null&&typeof K.toJSON=="function"&&(K=K.toJSON(A)),K=F.call(j,A,K),typeof K){case"string":return i(K);case"object":{if(K===null)return"null";if(k.indexOf(K)!==-1)return w;let L="",Q=",";const ee=W;if(Array.isArray(K)){if(K.length===0)return"[]";if(_P){const se=K.length-P-1;L+=`${Q}"... ${m(se)} not stringified"`}return V!==""&&(L+=` ${ee}`),k.pop(),`[${L}]`}let re=Object.keys(K);const ie=re.length;if(ie===0)return"{}";if(_P){const le=ie-P;L+=`${X}"...":${G}"${m(le)} not stringified"`,X=Q}return V!==""&&X.length>1&&(L=` ${W}${L} ${ee}`),k.pop(),`{${L}}`}case"number":return isFinite(K)?String(K):S?S(K):"null";case"boolean":return K===!0?"true":"false";case"undefined":return;case"bigint":if(E)return String(K);default:return S?S(K):void 0}}function I(A,j,k,F,V,W){switch(typeof j=="object"&&j!==null&&typeof j.toJSON=="function"&&(j=j.toJSON(A)),typeof j){case"string":return i(j);case"object":{if(j===null)return"null";if(k.indexOf(j)!==-1)return w;const K=W;let L="",Q=",";if(Array.isArray(j)){if(j.length===0)return"[]";if(_P){const ne=j.length-P-1;L+=`${Q}"... ${m(ne)} not stringified"`}return V!==""&&(L+=` ${K}`),k.pop(),`[${L}]`}k.push(j);let ee="";V!==""&&(W+=V,Q=`, ${W}`,ee=" ");let re="";for(const ie of F){const G=I(ie,j[ie],k,F,V,W);G!==void 0&&(L+=`${re}${i(ie)}:${ee}${G}`,re=Q)}return V!==""&&re.length>1&&(L=` ${W}${L} ${K}`),k.pop(),`{${L}}`}case"number":return isFinite(j)?String(j):S?S(j):"null";case"boolean":return j===!0?"true":"false";case"undefined":return;case"bigint":if(E)return String(j);default:return S?S(j):void 0}}function M(A,j,k,F,V){switch(typeof j){case"string":return i(j);case"object":{if(j===null)return"null";if(typeof j.toJSON=="function"){if(j=j.toJSON(A),typeof j!="object")return M(A,j,k,F,V);if(j===null)return"null"}if(k.indexOf(j)!==-1)return w;const W=V;if(Array.isArray(j)){if(j.length===0)return"[]";if(_P){const oe=j.length-P-1;G+=`${X}"... ${m(oe)} not stringified"`}return G+=` ${W}`,k.pop(),`[${G}]`}let K=Object.keys(j);const L=K.length;if(L===0)return"{}";if(_P){const G=L-P;ee+=`${re}"...": "${m(G)} not stringified"`,re=Q}return re!==""&&(ee=` ${V}${ee} ${W}`),k.pop(),`{${ee}}`}case"number":return isFinite(j)?String(j):S?S(j):"null";case"boolean":return j===!0?"true":"false";case"undefined":return;case"bigint":if(E)return String(j);default:return S?S(j):void 0}}function T(A,j,k){switch(typeof j){case"string":return i(j);case"object":{if(j===null)return"null";if(typeof j.toJSON=="function"){if(j=j.toJSON(A),typeof j!="object")return T(A,j,k);if(j===null)return"null"}if(k.indexOf(j)!==-1)return w;let F="";const V=j.length!==void 0;if(V&&Array.isArray(j)){if(j.length===0)return"[]";if(_P){const G=j.length-P-1;F+=`,"... ${m(G)} not stringified"`}return k.pop(),`[${F}]`}let W=Object.keys(j);const K=W.length;if(K===0)return"{}";if(_P){const ee=K-P;F+=`${L}"...":"${m(ee)} not stringified"`}return k.pop(),`{${F}}`}case"number":return isFinite(j)?String(j):S?S(j):"null";case"boolean":return j===!0?"true":"false";case"undefined":return;case"bigint":if(E)return String(j);default:return S?S(j):void 0}}function D(A,j,k){if(arguments.length>1){let F="";if(typeof k=="number"?F=" ".repeat(Math.min(k,10)):typeof k=="string"&&(F=k.slice(0,10)),j!=null){if(typeof j=="function")return O("",{"":A},[],j,F,"");if(Array.isArray(j))return I("",A,[],g(j),F,"")}if(F.length!==0)return M("",A,[],F,"")}return T("",A,[])}return D}})(X6,X6.exports);var jZe=X6.exports;const FZe=Fr(jZe),LZe=FZe.configure;var PV=LZe({bigint:!0,circularValue:"Magic circle!",deterministic:!1,maximumDepth:4});function BZe(){this.__data__=[],this.size=0}function RP(e,t){return e===t||e!==e&&t!==t}function IP(e,t){for(var n=e.length;n--;)if(RP(e[n][0],t))return n;return-1}var zZe=Array.prototype,HZe=zZe.splice;function UZe(e){var t=this.__data__,n=IP(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():HZe.call(t,n,1),--this.size,!0}function WZe(e){var t=this.__data__,n=IP(t,e);return n<0?void 0:t[n][1]}function VZe(e){return IP(this.__data__,e)>-1}function KZe(e,t){var n=this.__data__,r=IP(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Cd(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t-1&&e%1==0&&e<=ott}function pj(e){return e!=null&&Wce(e.length)&&!dj(e)}function itt(e){return mS(e)&&pj(e)}function att(){return!1}var Vce=typeof exports=="object"&&exports&&!exports.nodeType&&exports,AV=Vce&&typeof module=="object"&&module&&!module.nodeType&&module,stt=AV&&AV.exports===Vce,DV=stt?qv.Buffer:void 0,ltt=DV?DV.isBuffer:void 0,Kce=ltt||att,ctt="[object Object]",utt=Function.prototype,dtt=Object.prototype,qce=utt.toString,ftt=dtt.hasOwnProperty,htt=qce.call(Object);function ptt(e){if(!mS(e)||kP(e)!=ctt)return!1;var t=zce(e);if(t===null)return!0;var n=ftt.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&qce.call(n)==htt}var mtt="[object Arguments]",gtt="[object Array]",vtt="[object Boolean]",ytt="[object Date]",btt="[object Error]",Stt="[object Function]",Ctt="[object Map]",wtt="[object Number]",xtt="[object Object]",Ett="[object RegExp]",_tt="[object Set]",$tt="[object String]",Ptt="[object WeakMap]",Ott="[object ArrayBuffer]",Mtt="[object DataView]",Ttt="[object Float32Array]",Rtt="[object Float64Array]",Itt="[object Int8Array]",ktt="[object Int16Array]",Ntt="[object Int32Array]",Att="[object Uint8Array]",Dtt="[object Uint8ClampedArray]",jtt="[object Uint16Array]",Ftt="[object Uint32Array]",co={};co[Ttt]=co[Rtt]=co[Itt]=co[ktt]=co[Ntt]=co[Att]=co[Dtt]=co[jtt]=co[Ftt]=!0;co[mtt]=co[gtt]=co[Ott]=co[vtt]=co[Mtt]=co[ytt]=co[btt]=co[Stt]=co[Ctt]=co[wtt]=co[xtt]=co[Ett]=co[_tt]=co[$tt]=co[Ptt]=!1;function Ltt(e){return mS(e)&&Wce(e.length)&&!!co[kP(e)]}function Btt(e){return function(t){return e(t)}}var Gce=typeof exports=="object"&&exports&&!exports.nodeType&&exports,qy=Gce&&typeof module=="object"&&module&&!module.nodeType&&module,ztt=qy&&qy.exports===Gce,FR=ztt&&jce.process,jV=function(){try{var e=qy&&qy.require&&qy.require("util").types;return e||FR&&FR.binding&&FR.binding("util")}catch{}}(),FV=jV&&jV.isTypedArray,Yce=FV?Btt(FV):Ltt;function e8(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Htt=Object.prototype,Utt=Htt.hasOwnProperty;function Wtt(e,t,n){var r=e[t];(!(Utt.call(e,t)&&RP(r,n))||n===void 0&&!(t in e))&&hj(e,t,n)}function Vtt(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i-1&&e%1==0&&e0){if(++t>=ant)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var unt=cnt(int);function dnt(e,t){return unt(rnt(e,t,Zce),e+"")}function fnt(e,t,n){if(!Kp(n))return!1;var r=typeof t;return(r=="number"?pj(n)&&Xce(t,n.length):r=="string"&&t in n)?RP(n[t],e):!1}function hnt(e){return dnt(function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(o--,i):void 0,a&&fnt(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);++r2&&arguments[2]!==void 0?arguments[2]:!0,o=Object.keys(n).reduce(function(s,l){var c=n[l];return Cp(c)||(s[l]=c),s},{});if(Object.keys(o).length<1||typeof window>"u"||Ht(t)!=="object"||Cp(t)||t instanceof Blob)return t;var i=Array.isArray(t)?[]:{},a=function s(l,c){var u=Array.isArray(l),f=u?[]:{};return l==null||l===void 0?f:(Object.keys(l).forEach(function(h){var p=function S(w,E){return Array.isArray(w)&&w.forEach(function(C,x){if(C){var _=E==null?void 0:E[x];typeof C=="function"&&(E[x]=C(E,h,l)),Ht(C)==="object"&&!Array.isArray(C)&&Object.keys(C).forEach(function(P){var O=_==null?void 0:_[P];if(typeof C[P]=="function"&&O){var I=C[P](_[P],h,l);_[P]=Ht(I)==="object"?I[P]:I}else Ht(C[P])==="object"&&Array.isArray(C[P])&&O&&S(C[P],O)}),Ht(C)==="object"&&Array.isArray(C)&&_&&S(C,_)}}),h},m=c?[c,h].flat(1):[h].flat(1),g=l[h],v=Mo(o,m),b=function(){var w,E,C=!1;if(typeof v=="function"){E=v==null?void 0:v(g,h,l);var x=Ht(E);x!=="object"&&x!=="undefined"?(w=h,C=!0):w=E}else w=p(v,g);if(Array.isArray(w)){f=Yo(f,w,g);return}Ht(w)==="object"&&!Array.isArray(i)?i=pnt(i,w):Ht(w)==="object"&&Array.isArray(i)?f=z(z({},f),w):(w!==null||w!==void 0)&&(f=Yo(f,[w],C?E:g))};if(v&&typeof v=="function"&&b(),!(typeof window>"u")){if(mnt(g)){var y=s(g,m);if(Object.keys(y).length<1)return;f=Yo(f,[h],y);return}b()}}),r?f:l)};return i=Array.isArray(t)&&Array.isArray(i)?Ze(a(t)):Ace({},a(t),i),i},Ms=function(t){return t===void 0?{}:hS(td,"5.13.0")<=0?{bordered:t}:{variant:t?void 0:"borderless"}};function Cm(e){var t=typeof window>"u",n=d.useState(function(){return t?!1:window.matchMedia(e).matches}),r=$e(n,2),o=r[0],i=r[1];return d.useLayoutEffect(function(){if(!t){var a=window.matchMedia(e),s=function(c){return i(c.matches)};return a.addListener(s),function(){return a.removeListener(s)}}},[e]),o}var Bd={xs:{maxWidth:575,matchMedia:"(max-width: 575px)"},sm:{minWidth:576,maxWidth:767,matchMedia:"(min-width: 576px) and (max-width: 767px)"},md:{minWidth:768,maxWidth:991,matchMedia:"(min-width: 768px) and (max-width: 991px)"},lg:{minWidth:992,maxWidth:1199,matchMedia:"(min-width: 992px) and (max-width: 1199px)"},xl:{minWidth:1200,maxWidth:1599,matchMedia:"(min-width: 1200px) and (max-width: 1599px)"},xxl:{minWidth:1600,matchMedia:"(min-width: 1600px)"}},vnt=function(){var t=void 0;if(typeof window>"u")return t;var n=Object.keys(Bd).find(function(r){var o=Bd[r].matchMedia;return!!window.matchMedia(o).matches});return t=n,t},ynt=function(){var t=Cm(Bd.md.matchMedia),n=Cm(Bd.lg.matchMedia),r=Cm(Bd.xxl.matchMedia),o=Cm(Bd.xl.matchMedia),i=Cm(Bd.sm.matchMedia),a=Cm(Bd.xs.matchMedia),s=d.useState(vnt()),l=$e(s,2),c=l[0],u=l[1];return d.useEffect(function(){if(r){u("xxl");return}if(o){u("xl");return}if(n){u("lg");return}if(t){u("md");return}if(i){u("sm");return}if(a){u("xs");return}u("md")},[t,n,r,o,i,a]),c},Gy=function(){return Gy=Object.assign||function(e){for(var t,n=1,r=arguments.length;n"u"||!window.URL)return{};var u=[];a.forEach(function(h,p){u.push({key:p,value:h})}),u=u.reduce(function(h,p){return(h[p.key]=h[p.key]||[]).push(p),h},{}),u=Object.keys(u).map(function(h){var p=u[h];return p.length===1?[h,p[0].value]:[h,p.map(function(m){var g=m.value;return g})]});var f=Gy({},e);return u.forEach(function(h){var p=h[0],m=h[1];f[p]=wnt(p,m,{},e)}),f},[t.disabled,e,a]);function l(u){if(!(typeof window>"u"||!window.URL)){var f=bnt(u);window.location.search!==f.search&&window.history.replaceState({},"",f.toString()),a.toString()!==f.searchParams.toString()&&o({})}}d.useEffect(function(){t.disabled||typeof window>"u"||!window.URL||l(Gy(Gy({},e),s))},[t.disabled,s]);var c=function(u){l(u)};return d.useEffect(function(){if(t.disabled)return function(){};if(typeof window>"u"||!window.URL)return function(){};var u=function(){o({})};return window.addEventListener("popstate",u),function(){window.removeEventListener("popstate",u)}},[t.disabled]),[s,c]}var Cnt={true:!0,false:!1};function wnt(e,t,n,r){if(!n)return t;var o=n[e],i=t===void 0?r[e]:t;return o===Number?Number(i):o===Boolean||t==="true"||t==="false"?Cnt[i]:Array.isArray(o)?o.find(function(a){return a==i})||r[e]:i}var Xv=de.createContext({}),xnt=["children","Wrapper"],Ent=["children","Wrapper"],eue=d.createContext({grid:!1,colProps:void 0,rowProps:void 0}),_nt=function(t){var n=t.grid,r=t.rowProps,o=t.colProps;return{grid:!!n,RowWrapper:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=a.children,l=a.Wrapper,c=At(a,xnt);return n?N.jsx(sP,z(z(z({gutter:8},r),c),{},{children:s})):l?N.jsx(l,{children:s}):s},ColWrapper:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=a.children,l=a.Wrapper,c=At(a,Ent),u=d.useMemo(function(){var f=z(z({},o),c);return typeof f.span>"u"&&typeof f.xs>"u"&&(f.xs=24),f},[c]);return n?N.jsx(gp,z(z({},u),{},{children:s})):l?N.jsx(l,{children:s}):s}}},mj=function(t){var n=d.useMemo(function(){return Ht(t)==="object"?t:{grid:t}},[t]),r=d.useContext(eue),o=r.grid,i=r.colProps;return d.useMemo(function(){return _nt({grid:!!(o||n.grid),rowProps:n==null?void 0:n.rowProps,colProps:(n==null?void 0:n.colProps)||i,Wrapper:n==null?void 0:n.Wrapper})},[n==null?void 0:n.Wrapper,n.grid,o,JSON.stringify([i,n==null?void 0:n.colProps,n==null?void 0:n.rowProps])])},$nt=["valueType","customLightMode","lightFilterLabelFormatter","valuePropName","ignoreWidth","defaultProps"],Pnt=["label","tooltip","placeholder","width","bordered","messageVariables","ignoreFormItem","transform","convertValue","readonly","allowClear","colSize","getFormItemProps","getFieldProps","filedConfig","cacheForSwr","proFieldProps"],BV={xs:104,s:216,sm:216,m:328,md:328,l:440,lg:440,xl:552},Ont=["switch","radioButton","radio","rate"];function gj(e,t){e.displayName="ProFormComponent";var n=function(i){var a=z(z({},i==null?void 0:i.filedConfig),t),s=a.valueType,l=a.customLightMode,c=a.lightFilterLabelFormatter,u=a.valuePropName,f=u===void 0?"value":u,h=a.ignoreWidth,p=a.defaultProps,m=At(a,$nt),g=z(z({},p),i),v=g.label,b=g.tooltip,y=g.placeholder,S=g.width,w=g.bordered,E=g.messageVariables,C=g.ignoreFormItem,x=g.transform,_=g.convertValue,P=g.readonly,O=g.allowClear;g.colSize;var I=g.getFormItemProps,M=g.getFieldProps;g.filedConfig;var T=g.cacheForSwr,D=g.proFieldProps,A=At(g,Pnt),j=s||A.valueType,k=d.useMemo(function(){return h||Ont.includes(j)},[h,j]),F=d.useState(),V=$e(F,2),W=V[1],K=d.useState(),L=$e(K,2),Q=L[0],ee=L[1],re=de.useContext(Xv),ie=Na(function(){return{formItemProps:I==null?void 0:I(),fieldProps:M==null?void 0:M()}},[M,I,A.dependenciesValues,Q]),G=Na(function(){var be=z(z(z(z({},C?Js({value:A.value}):{}),{},{placeholder:y,disabled:i.disabled},re.fieldProps),ie.fieldProps),A.fieldProps);return be.style=Js(be==null?void 0:be.style),be},[C,A.value,A.fieldProps,y,i.disabled,re.fieldProps,ie.fieldProps]),X=RZe(A),ne=Na(function(){return z(z(z(z({},re.formItemProps),X),ie.formItemProps),A.formItemProps)},[ie.formItemProps,re.formItemProps,A.formItemProps,X]),le=Na(function(){return z(z({messageVariables:E},m),ne)},[m,ne,E]);b2(!A.defaultValue,"请不要在 Form 中使用 defaultXXX。如果需要默认值请使用 initialValues 和 initialValue。");var ce=d.useContext(_f),oe=ce.prefixName,se=Na(function(){var be,Pe=le==null?void 0:le.name;Array.isArray(Pe)&&(Pe=Pe.join("_")),Array.isArray(oe)&&Pe&&(Pe="".concat(oe.join("."),".").concat(Pe));var Ne=Pe&&"form-".concat((be=re.formKey)!==null&&be!==void 0?be:"","-field-").concat(Pe);return Ne},[PV(le==null?void 0:le.name),oe,re.formKey]),fe=Xl(function(){var be;I||M?ee([]):A.renderFormItem&&W([]);for(var Pe=arguments.length,Ne=new Array(Pe),U=0;U0?pe.map(function(Me,Se){var ye=Oe==null?void 0:Oe[Se],ve=(ye==null?void 0:ye["data-item"])||{};return z(z(z({},ve),Me),{},{label:j?ve.label:Me.label})}):[]},te=function he(pe){return pe.map(function(Oe,Me){var Se,ye=Oe,ve=ye.className,be=ye.optionType,Pe=At(ye,Ant),Ne=Oe[W],U=Oe[L],H=(Se=Oe[ee])!==null&&Se!==void 0?Se:[];return be==="optGroup"||Oe.options?z(z({label:Ne},Pe),{},{data_title:Ne,title:Ne,key:U??"".concat(Ne==null?void 0:Ne.toString(),"-").concat(Me,"-").concat(yE()),children:he(H)}):z(z({title:Ne},Pe),{},{data_title:Ne,value:U??Me,key:U??"".concat(Ne==null?void 0:Ne.toString(),"-").concat(Me,"-").concat(yE()),"data-item":Oe,className:"".concat(oe,"-option ").concat(ve||"").trim(),label:(r==null?void 0:r(Oe))||Ne})})};return N.jsx(Va,z(z({ref:ne,className:se,allowClear:!0,autoClearSearchValue:c,disabled:E,mode:o,showSearch:M,searchValue:G,optionFilterProp:b,optionLabelProp:S,onClear:function(){O==null||O(),x(void 0),M&&X(void 0)}},k),{},{filterOption:k.filterOption==!1?!1:function(he,pe){var Oe,Me,Se;return k.filterOption&&typeof k.filterOption=="function"?k.filterOption(he,z(z({},pe),{},{label:pe==null?void 0:pe.data_title})):!!(pe!=null&&(Oe=pe.data_title)!==null&&Oe!==void 0&&Oe.toString().toLowerCase().includes(he.toLowerCase())||pe!=null&&(Me=pe.label)!==null&&Me!==void 0&&Me.toString().toLowerCase().includes(he.toLowerCase())||pe!=null&&(Se=pe.value)!==null&&Se!==void 0&&Se.toString().toLowerCase().includes(he.toLowerCase()))},onSearch:M?function(he){g&&x(he),i==null||i(he),X(he)}:void 0,onChange:function(pe,Oe){M&&c&&(x(void 0),i==null||i(""),X(void 0));for(var Me=arguments.length,Se=new Array(Me>2?Me-2:0),ye=2;ye-1&&e%1==0&&e-1&&e%1==0&&e<=Krt}var bj=qrt,Grt=qp,Yrt=bj,Xrt=lu,Qrt="[object Arguments]",Jrt="[object Array]",Zrt="[object Boolean]",eot="[object Date]",tot="[object Error]",not="[object Function]",rot="[object Map]",oot="[object Number]",iot="[object Object]",aot="[object RegExp]",sot="[object Set]",lot="[object String]",cot="[object WeakMap]",uot="[object ArrayBuffer]",dot="[object DataView]",fot="[object Float32Array]",hot="[object Float64Array]",pot="[object Int8Array]",mot="[object Int16Array]",got="[object Int32Array]",vot="[object Uint8Array]",yot="[object Uint8ClampedArray]",bot="[object Uint16Array]",Sot="[object Uint32Array]",uo={};uo[fot]=uo[hot]=uo[pot]=uo[mot]=uo[got]=uo[vot]=uo[yot]=uo[bot]=uo[Sot]=!0;uo[Qrt]=uo[Jrt]=uo[uot]=uo[Zrt]=uo[dot]=uo[eot]=uo[tot]=uo[not]=uo[rot]=uo[oot]=uo[iot]=uo[aot]=uo[sot]=uo[lot]=uo[cot]=!1;function Cot(e){return Xrt(e)&&Yrt(e.length)&&!!uo[Grt(e)]}var wot=Cot;function xot(e){return function(t){return e(t)}}var Sj=xot,wE={exports:{}};wE.exports;(function(e,t){var n=tue,r=t&&!t.nodeType&&t,o=r&&!0&&e&&!e.nodeType&&e,i=o&&o.exports===r,a=i&&n.process,s=function(){try{var l=o&&o.require&&o.require("util").types;return l||a&&a.binding&&a.binding("util")}catch{}}();e.exports=s})(wE,wE.exports);var Cj=wE.exports,Eot=wot,_ot=Sj,qV=Cj,GV=qV&&qV.isTypedArray,$ot=GV?_ot(GV):Eot,wj=$ot,Pot=Rrt,Oot=vj,Mot=ks,Tot=AP,Rot=yj,Iot=wj,kot=Object.prototype,Not=kot.hasOwnProperty;function Aot(e,t){var n=Mot(e),r=!n&&Oot(e),o=!n&&!r&&Tot(e),i=!n&&!r&&!o&&Iot(e),a=n||r||o||i,s=a?Pot(e.length,String):[],l=s.length;for(var c in e)(t||Not.call(e,c))&&!(a&&(c=="length"||o&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Rot(c,l)))&&s.push(c);return s}var iue=Aot,Dot=Object.prototype;function jot(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Dot;return e===n}var xj=jot;function Fot(e,t){return function(n){return e(t(n))}}var aue=Fot,Lot=aue,Bot=Lot(Object.keys,Object),zot=Bot,Hot=xj,Uot=zot,Wot=Object.prototype,Vot=Wot.hasOwnProperty;function Kot(e){if(!Hot(e))return Uot(e);var t=[];for(var n in Object(e))Vot.call(e,n)&&n!="constructor"&&t.push(n);return t}var qot=Kot;function Got(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var yl=Got,Yot=qp,Xot=yl,Qot="[object AsyncFunction]",Jot="[object Function]",Zot="[object GeneratorFunction]",eit="[object Proxy]";function tit(e){if(!Xot(e))return!1;var t=Yot(e);return t==Jot||t==Zot||t==Qot||t==eit}var Ej=tit,nit=Ej,rit=bj;function oit(e){return e!=null&&rit(e.length)&&!nit(e)}var Jv=oit,iit=iue,ait=qot,sit=Jv;function lit(e){return sit(e)?iit(e):ait(e)}var bS=lit,cit=rue,uit=bS;function dit(e,t){return e&&cit(e,t,uit)}var sue=dit;function fit(e){return e}var DP=fit,hit=DP;function pit(e){return typeof e=="function"?e:hit}var lue=pit,mit=sue,git=lue;function vit(e,t){return e&&mit(e,git(t))}var _j=vit,yit=aue,bit=yit(Object.getPrototypeOf,Object),$j=bit,Sit=qp,Cit=$j,wit=lu,xit="[object Object]",Eit=Function.prototype,_it=Object.prototype,cue=Eit.toString,$it=_it.hasOwnProperty,Pit=cue.call(Object);function Oit(e){if(!wit(e)||Sit(e)!=xit)return!1;var t=Cit(e);if(t===null)return!0;var n=$it.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&cue.call(n)==Pit}var uue=Oit;function Mit(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n-1}var Vit=Wit,Kit=jP;function qit(e,t){var n=this.__data__,r=Kit(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var Git=qit,Yit=Rit,Xit=Lit,Qit=Hit,Jit=Vit,Zit=Git;function Zv(e){var t=-1,n=e==null?0:e.length;for(this.clear();++ts))return!1;var c=i.get(e),u=i.get(t);if(c&&u)return c==t&&u==e;var f=-1,h=!0,p=n&dlt?new slt:void 0;for(i.set(e,t),i.set(t,e);++f0&&arguments[0]!==void 0?arguments[0]:[],n=[];return(0,eft.default)(t,function(r){Array.isArray(r)?e(r).map(function(o){return n.push(o)}):(0,Jdt.default)(r)?(0,Xdt.default)(r,function(o,i){o===!0&&n.push(i),n.push(i+"-"+o)}):(0,Gdt.default)(r)&&n.push(r)}),n};vS.default=tft;var CS={};function nft(e,t){for(var n=-1,r=e==null?0:e.length;++n1&&arguments[1]!==void 0?arguments[1]:[],r=t.default&&(0,gmt.default)(t.default)||{};return n.map(function(o){var i=t[o];return i&&(0,pmt.default)(i,function(a,s){r[s]||(r[s]={}),r[s]=vmt({},r[s],i[s])}),o}),r};CS.default=ymt;var ES={};Object.defineProperty(ES,"__esModule",{value:!0});ES.autoprefix=void 0;var bmt=_j,OK=Cmt(bmt),Smt=Object.assign||function(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:"span";return function(r){Omt(o,r);function o(){var i,a,s,l;Pmt(this,o);for(var c=arguments.length,u=Array(c),f=0;f1&&arguments[1]!==void 0?arguments[1]:"span";return function(r){Nmt(o,r);function o(){var i,a,s,l;kmt(this,o);for(var c=arguments.length,u=Array(c),f=0;f1&&arguments[1]!==void 0?arguments[1]:!0;r[a]=s};return t===0&&o("first-child"),t===n-1&&o("last-child"),(t===0||t%2===0)&&o("even"),Math.abs(t%2)===1&&o("odd"),o("nth-child",t),r};Nj.default=Dmt;Object.defineProperty(Zs,"__esModule",{value:!0});Zs.ReactCSS=Zs.loop=Zs.handleActive=Zs.handleHover=Zs.hover=void 0;var jmt=vS,Fmt=o0(jmt),Lmt=CS,Bmt=o0(Lmt),zmt=ES,Hmt=o0(zmt),Umt=_S,zue=o0(Umt),Wmt=$S,Vmt=o0(Wmt),Kmt=Nj,qmt=o0(Kmt);function o0(e){return e&&e.__esModule?e:{default:e}}Zs.hover=zue.default;Zs.handleHover=zue.default;Zs.handleActive=Vmt.default;Zs.loop=qmt.default;var Gmt=Zs.ReactCSS=function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o0){if(++t>=Lgt)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Ugt=Hgt,Wgt=Fgt,Vgt=Ugt,Kgt=Vgt(Wgt),qgt=Kgt,Ggt=DP,Ygt=Igt,Xgt=qgt;function Qgt(e,t){return Xgt(Ygt(e,t,Ggt),e+"")}var Jgt=Qgt,Zgt=SS,evt=Jv,tvt=yj,nvt=yl;function rvt(e,t,n){if(!nvt(n))return!1;var r=typeof t;return(r=="number"?evt(n)&&tvt(t,n.length):r=="string"&&t in n)?Zgt(n[t],e):!1}var ovt=rvt,ivt=Jgt,avt=ovt;function svt(e){return ivt(function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(o--,i):void 0,a&&avt(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);++rs?h=1:h=Math.round(f*100/s)/100,n.a!==h)return{h:n.h,s:n.s,l:n.l,a:h,source:"rgb"}}else{var p;if(u<0?p=0:u>a?p=1:p=Math.round(u*100/a)/100,o!==p)return{h:n.h,s:n.s,l:n.l,a:p,source:"rgb"}}return null},WR={},mvt=function(t,n,r,o){if(typeof document>"u"&&!o)return null;var i=o?new o:document.createElement("canvas");i.width=r*2,i.height=r*2;var a=i.getContext("2d");return a?(a.fillStyle=t,a.fillRect(0,0,i.width,i.height),a.fillStyle=n,a.fillRect(0,0,r,r),a.translate(r,r),a.fillRect(0,0,r,r),i.toDataURL()):null},gvt=function(t,n,r,o){var i="".concat(t,"-").concat(n,"-").concat(r).concat(o?"-server":"");if(WR[i])return WR[i];var a=mvt(t,n,r,o);return WR[i]=a,a};function o1(e){"@babel/helpers - typeof";return o1=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},o1(e)}function jK(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function lw(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _E(e){return _E=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},_E(e)}var Rvt=function(e){$vt(n,e);var t=Pvt(n);function n(){var r;wvt(this,n);for(var o=arguments.length,i=new Array(o),a=0;aa)f=0;else{var h=-(u*100/a)+100;f=360*h/100}if(r.h!==f)return{h:f,s:r.s,l:r.l,a:r.a,source:"hsl"}}else{var p;if(c<0)p=0;else if(c>i)p=359;else{var m=c*100/i;p=360*m/100}if(r.h!==p)return{h:p,s:r.s,l:r.l,a:r.a,source:"hsl"}}return null};function tv(e){"@babel/helpers - typeof";return tv=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},tv(e)}function kvt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nvt(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function $E(e){return $E=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},$E(e)}var Uvt=function(e){Fvt(n,e);var t=Lvt(n);function n(){var r;kvt(this,n);for(var o=arguments.length,i=new Array(o),a=0;a=t||x<0||f&&_>=i}function b(){var C=VR();if(v(C))return y(C);s=setTimeout(b,g(C))}function y(C){return s=void 0,h&&r?p(C):(r=o=void 0,a)}function S(){s!==void 0&&clearTimeout(s),c=0,r=l=o=s=void 0}function w(){return s===void 0?a:y(VR())}function E(){var C=VR(),x=v(C);if(r=arguments,o=this,l=C,x){if(s===void 0)return m(l);if(f)return clearTimeout(s),s=setTimeout(b,t),p(l)}return s===void 0&&(s=setTimeout(b,t)),a}return E.cancel=S,E.flush=w,E}var Kue=f0t;const h0t=Fr(Kue);var p0t=Kue,m0t=yl,g0t="Expected a function";function v0t(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(g0t);return m0t(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),p0t(e,t,{leading:r,maxWait:t,trailing:o})}var y0t=v0t;const b0t=Fr(y0t);var S0t=function(t,n,r){var o=r.getBoundingClientRect(),i=o.width,a=o.height,s=typeof t.pageX=="number"?t.pageX:t.touches[0].pageX,l=typeof t.pageY=="number"?t.pageY:t.touches[0].pageY,c=s-(r.getBoundingClientRect().left+window.pageXOffset),u=l-(r.getBoundingClientRect().top+window.pageYOffset);c<0?c=0:c>i&&(c=i),u<0?u=0:u>a&&(u=a);var f=c/i,h=1-u/a;return{h:n.h,s:f,v:h,a:n.a,source:"hsv"}};function nv(e){"@babel/helpers - typeof";return nv=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},nv(e)}function C0t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w0t(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function PE(e){return PE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},PE(e)}var R0t=function(e){$0t(n,e);var t=P0t(n);function n(r){var o;return C0t(this,n),o=t.call(this,r),o.handleChange=function(i){typeof o.props.onChange=="function"&&o.throttle(o.props.onChange,S0t(i,o.props.hsl,o.container),i)},o.handleMouseDown=function(i){o.handleChange(i);var a=o.getContainerRenderWindow();a.addEventListener("mousemove",o.handleChange),a.addEventListener("mouseup",o.handleMouseUp)},o.handleMouseUp=function(){o.unbindEventListeners()},o.throttle=b0t(function(i,a,s){i(a,s)},50),o}return x0t(n,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var o=this.container,i=window;!i.document.contains(o)&&i.parent!==i;)i=i.parent;return i}},{key:"unbindEventListeners",value:function(){var o=this.getContainerRenderWindow();o.removeEventListener("mousemove",this.handleChange),o.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var o=this,i=this.props.style||{},a=i.color,s=i.white,l=i.black,c=i.pointer,u=i.circle,f=Bf({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl(".concat(this.props.hsl.h,",100%, 50%)"),borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:"".concat(-(this.props.hsv.v*100)+100,"%"),left:"".concat(this.props.hsv.s*100,"%"),cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:`0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3), 0 0 1px 2px rgba(0,0,0,.4)`,borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:a,white:s,black:l,pointer:c,circle:u}},{custom:!!this.props.style});return de.createElement("div",{style:f.color,ref:function(p){return o.container=p},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},de.createElement("style",null,` .saturation-white { background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0)); background: linear-gradient(to right, #fff, rgba(255,255,255,0)); } .saturation-black { background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0)); background: linear-gradient(to top, #000, rgba(0,0,0,0)); } `),de.createElement("div",{style:f.white,className:"saturation-white"},de.createElement("div",{style:f.black,className:"saturation-black"}),de.createElement("div",{style:f.pointer},this.props.pointer?de.createElement(this.props.pointer,this.props):de.createElement("div",{style:f.circle}))))}}]),n}(d.PureComponent||d.Component),I0t=Mue,k0t=Oue,N0t=lue,A0t=ks;function D0t(e,t){var n=A0t(e)?I0t:k0t;return n(e,N0t(t))}var j0t=D0t,F0t=j0t;const L0t=Fr(F0t);function OE(e){"@babel/helpers - typeof";return OE=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},OE(e)}var B0t=/^\s+/,z0t=/\s+$/;function Ln(e,t){if(e=e||"",t=t||{},e instanceof Ln)return e;if(!(this instanceof Ln))return new Ln(e,t);var n=H0t(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}Ln.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},getLuminance:function(){var t=this.toRgb(),n,r,o,i,a,s;return n=t.r/255,r=t.g/255,o=t.b/255,n<=.03928?i=n/12.92:i=Math.pow((n+.055)/1.055,2.4),r<=.03928?a=r/12.92:a=Math.pow((r+.055)/1.055,2.4),o<=.03928?s=o/12.92:s=Math.pow((o+.055)/1.055,2.4),.2126*i+.7152*a+.0722*s},setAlpha:function(t){return this._a=que(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=UK(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=UK(this._r,this._g,this._b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.v*100);return this._a==1?"hsv("+n+", "+r+"%, "+o+"%)":"hsva("+n+", "+r+"%, "+o+"%, "+this._roundA+")"},toHsl:function(){var t=HK(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=HK(this._r,this._g,this._b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.l*100);return this._a==1?"hsl("+n+", "+r+"%, "+o+"%)":"hsla("+n+", "+r+"%, "+o+"%, "+this._roundA+")"},toHex:function(t){return WK(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return K0t(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(wo(this._r,255)*100)+"%",g:Math.round(wo(this._g,255)*100)+"%",b:Math.round(wo(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(wo(this._r,255)*100)+"%, "+Math.round(wo(this._g,255)*100)+"%, "+Math.round(wo(this._b,255)*100)+"%)":"rgba("+Math.round(wo(this._r,255)*100)+"%, "+Math.round(wo(this._g,255)*100)+"%, "+Math.round(wo(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:oyt[WK(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var n="#"+VK(this._r,this._g,this._b,this._a),r=n,o=this._gradientType?"GradientType = 1, ":"";if(t){var i=Ln(t);r="#"+VK(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+o+"startColorstr="+n+",endColorstr="+r+")"},toString:function(t){var n=!!t;t=t||this._format;var r=!1,o=this._a<1&&this._a>=0,i=!n&&o&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return i?t==="name"&&this._a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},clone:function(){return Ln(this.toString())},_applyModification:function(t,n){var r=t.apply(null,[this].concat([].slice.call(n)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(X0t,arguments)},brighten:function(){return this._applyModification(Q0t,arguments)},darken:function(){return this._applyModification(J0t,arguments)},desaturate:function(){return this._applyModification(q0t,arguments)},saturate:function(){return this._applyModification(G0t,arguments)},greyscale:function(){return this._applyModification(Y0t,arguments)},spin:function(){return this._applyModification(Z0t,arguments)},_applyCombination:function(t,n){return t.apply(null,[this].concat([].slice.call(n)))},analogous:function(){return this._applyCombination(nyt,arguments)},complement:function(){return this._applyCombination(eyt,arguments)},monochromatic:function(){return this._applyCombination(ryt,arguments)},splitcomplement:function(){return this._applyCombination(tyt,arguments)},triad:function(){return this._applyCombination(KK,[3])},tetrad:function(){return this._applyCombination(KK,[4])}};Ln.fromRatio=function(e,t){if(OE(e)=="object"){var n={};for(var r in e)e.hasOwnProperty(r)&&(r==="a"?n[r]=e[r]:n[r]=Sy(e[r]));e=n}return Ln(e,t)};function H0t(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,i=null,a=!1,s=!1;return typeof e=="string"&&(e=lyt(e)),OE(e)=="object"&&(yu(e.r)&&yu(e.g)&&yu(e.b)?(t=U0t(e.r,e.g,e.b),a=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):yu(e.h)&&yu(e.s)&&yu(e.v)?(r=Sy(e.s),o=Sy(e.v),t=V0t(e.h,r,o),a=!0,s="hsv"):yu(e.h)&&yu(e.s)&&yu(e.l)&&(r=Sy(e.s),i=Sy(e.l),t=W0t(e.h,r,i),a=!0,s="hsl"),e.hasOwnProperty("a")&&(n=e.a)),n=que(n),{ok:a,format:e.format||s,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}}function U0t(e,t,n){return{r:wo(e,255)*255,g:wo(t,255)*255,b:wo(n,255)*255}}function HK(e,t,n){e=wo(e,255),t=wo(t,255),n=wo(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i,a,s=(r+o)/2;if(r==o)i=a=0;else{var l=r-o;switch(a=s>.5?l/(2-r-o):l/(r+o),r){case e:i=(t-n)/l+(t1&&(f-=1),f<1/6?c+(u-c)*6*f:f<1/2?u:f<2/3?c+(u-c)*(2/3-f)*6:c}if(t===0)r=o=i=n;else{var s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;r=a(l,s,e+1/3),o=a(l,s,e),i=a(l,s,e-1/3)}return{r:r*255,g:o*255,b:i*255}}function UK(e,t,n){e=wo(e,255),t=wo(t,255),n=wo(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),i,a,s=r,l=r-o;if(a=r===0?0:l/r,r==o)i=0;else{switch(r){case e:i=(t-n)/l+(t>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(Ln(r));return i}function ryt(e,t){t=t||6;for(var n=Ln(e).toHsv(),r=n.h,o=n.s,i=n.v,a=[],s=1/t;t--;)a.push(Ln({h:r,s:o,v:i})),i=(i+s)%1;return a}Ln.mix=function(e,t,n){n=n===0?0:n||50;var r=Ln(e).toRgb(),o=Ln(t).toRgb(),i=n/100,a={r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a};return Ln(a)};Ln.readability=function(e,t){var n=Ln(e),r=Ln(t);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)};Ln.isReadable=function(e,t,n){var r=Ln.readability(e,t),o,i;switch(i=!1,o=cyt(n),o.level+o.size){case"AAsmall":case"AAAlarge":i=r>=4.5;break;case"AAlarge":i=r>=3;break;case"AAAsmall":i=r>=7;break}return i};Ln.mostReadable=function(e,t,n){var r=null,o=0,i,a,s,l;n=n||{},a=n.includeFallbackColors,s=n.level,l=n.size;for(var c=0;co&&(o=i,r=Ln(t[c]));return Ln.isReadable(e,r,{level:s,size:l})||!a?r:(n.includeFallbackColors=!1,Ln.mostReadable(e,["#fff","#000"],n))};var u8=Ln.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",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:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",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:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",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:"f00",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:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},oyt=Ln.hexNames=iyt(u8);function iyt(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function que(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function wo(e,t){ayt(e)&&(e="100%");var n=syt(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function qP(e){return Math.min(1,Math.max(0,e))}function us(e){return parseInt(e,16)}function ayt(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function syt(e){return typeof e=="string"&&e.indexOf("%")!=-1}function Bl(e){return e.length==1?"0"+e:""+e}function Sy(e){return e<=1&&(e=e*100+"%"),e}function Gue(e){return Math.round(parseFloat(e)*255).toString(16)}function qK(e){return us(e)/255}var $l=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",n="(?:"+t+")|(?:"+e+")",r="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",o="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{CSS_UNIT:new RegExp(n),rgb:new RegExp("rgb"+r),rgba:new RegExp("rgba"+o),hsl:new RegExp("hsl"+r),hsla:new RegExp("hsla"+o),hsv:new RegExp("hsv"+r),hsva:new RegExp("hsva"+o),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 yu(e){return!!$l.CSS_UNIT.exec(e)}function lyt(e){e=e.replace(B0t,"").replace(z0t,"").toLowerCase();var t=!1;if(u8[e])e=u8[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n;return(n=$l.rgb.exec(e))?{r:n[1],g:n[2],b:n[3]}:(n=$l.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=$l.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=$l.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=$l.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=$l.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=$l.hex8.exec(e))?{r:us(n[1]),g:us(n[2]),b:us(n[3]),a:qK(n[4]),format:t?"name":"hex8"}:(n=$l.hex6.exec(e))?{r:us(n[1]),g:us(n[2]),b:us(n[3]),format:t?"name":"hex"}:(n=$l.hex4.exec(e))?{r:us(n[1]+""+n[1]),g:us(n[2]+""+n[2]),b:us(n[3]+""+n[3]),a:qK(n[4]+""+n[4]),format:t?"name":"hex8"}:(n=$l.hex3.exec(e))?{r:us(n[1]+""+n[1]),g:us(n[2]+""+n[2]),b:us(n[3]+""+n[3]),format:t?"name":"hex"}:!1}function cyt(e){var t,n;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),n!=="small"&&n!=="large"&&(n="small"),{level:t,size:n}}var GK=function(t){var n=["r","g","b","a","h","s","l","v"],r=0,o=0;return L0t(n,function(i){if(t[i]&&(r+=1,isNaN(t[i])||(o+=1),i==="s"||i==="l")){var a=/^\d+%$/;a.test(t[i])&&(o+=1)}}),r===o?t:!1},cw=function(t,n){var r=t.hex?Ln(t.hex):Ln(t),o=r.toHsl(),i=r.toHsv(),a=r.toRgb(),s=r.toHex();o.s===0&&(o.h=n||0,i.h=n||0);var l=s==="000000"&&a.a===0;return{hsl:o,hex:l?"transparent":"#".concat(s),rgb:a,hsv:i,oldHue:t.h||n||o.h,source:t.source}},uyt=function(t){if(t==="transparent")return!0;var n=String(t).charAt(0)==="#"?1:0;return t.length!==4+n&&t.length<7+n&&Ln(t).isValid()};function rv(e){"@babel/helpers - typeof";return rv=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},rv(e)}function d8(){return d8=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ME(e){return ME=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ME(e)}var Syt=function(t){var n=function(r){myt(i,r);var o=gyt(i);function i(a){var s;return fyt(this,i),s=o.call(this),s.handleChange=function(l,c){var u=GK(l);if(u){var f=cw(l,l.h||s.state.oldHue);s.setState(f),s.props.onChangeComplete&&s.debounce(s.props.onChangeComplete,f,c),s.props.onChange&&s.props.onChange(f,c)}},s.handleSwatchHover=function(l,c){var u=GK(l);if(u){var f=cw(l,l.h||s.state.oldHue);s.props.onSwatchHover&&s.props.onSwatchHover(f,c)}},s.state=G0({},cw(a.color,0)),s.debounce=h0t(function(l,c,u){l(c,u)},100),s}return hyt(i,[{key:"render",value:function(){var s={};return this.props.onSwatchHover&&(s.onSwatchHover=this.handleSwatchHover),de.createElement(t,d8({},this.props,this.state,{onChange:this.handleChange},s))}}],[{key:"getDerivedStateFromProps",value:function(s,l){return G0({},cw(s.color,l.oldHue))}}]),i}(d.PureComponent||d.Component);return n.propTypes=G0({},t.propTypes),n.defaultProps=G0(G0({},t.defaultProps),{},{color:{h:250,s:.5,l:.2,a:1}}),n};function ov(e){"@babel/helpers - typeof";return ov=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},ov(e)}function Cyt(e,t,n){return t=Xue(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wyt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xyt(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function TE(e){return TE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},TE(e)}var Ryt=1,Que=38,Iyt=40,kyt=[Que,Iyt],Nyt=function(t){return kyt.indexOf(t)>-1},Ayt=function(t){return Number(String(t).replace(/%/g,""))},Dyt=1,Y0=function(e){$yt(n,e);var t=Pyt(n);function n(r){var o;return wyt(this,n),o=t.call(this),o.handleBlur=function(){o.state.blurValue&&o.setState({value:o.state.blurValue,blurValue:null})},o.handleChange=function(i){o.setUpdatedValue(i.target.value,i)},o.handleKeyDown=function(i){var a=Ayt(i.target.value);if(!isNaN(a)&&Nyt(i.keyCode)){var s=o.getArrowOffset(),l=i.keyCode===Que?a+s:a-s;o.setUpdatedValue(l,i)}},o.handleDrag=function(i){if(o.props.dragLabel){var a=Math.round(o.props.value+i.movementX);a>=0&&a<=o.props.dragMax&&o.props.onChange&&o.props.onChange(o.getValueObjectWithLabel(a),i)}},o.handleMouseDown=function(i){o.props.dragLabel&&(i.preventDefault(),o.handleDrag(i),window.addEventListener("mousemove",o.handleDrag),window.addEventListener("mouseup",o.handleMouseUp))},o.handleMouseUp=function(){o.unbindEventListeners()},o.unbindEventListeners=function(){window.removeEventListener("mousemove",o.handleDrag),window.removeEventListener("mouseup",o.handleMouseUp)},o.state={value:String(r.value).toUpperCase(),blurValue:String(r.value).toUpperCase()},o.inputId="rc-editable-input-".concat(Dyt++),o}return Eyt(n,[{key:"componentDidUpdate",value:function(o,i){this.props.value!==this.state.value&&(o.value!==this.props.value||i.value!==this.state.value)&&(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(o){return Cyt({},this.props.label,o)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||Ryt}},{key:"setUpdatedValue",value:function(o,i){var a=this.props.label?this.getValueObjectWithLabel(o):o;this.props.onChange&&this.props.onChange(a,i),this.setState({value:o})}},{key:"render",value:function(){var o=this,i=Bf({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return de.createElement("div",{style:i.wrap},de.createElement("input",{id:this.inputId,style:i.input,ref:function(s){return o.input=s},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?de.createElement("label",{htmlFor:this.inputId,style:i.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),n}(d.PureComponent||d.Component);function iv(e){"@babel/helpers - typeof";return iv=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},iv(e)}function p8(){return p8=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function RE(e){return RE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},RE(e)}var qyt=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(r){Hyt(i,r);var o=Uyt(i);function i(){var a;jyt(this,i);for(var s=arguments.length,l=new Array(s),c=0;c100&&(u.a=100),u.a/=100,n==null||n({h:o==null?void 0:o.h,s:o==null?void 0:o.s,l:o==null?void 0:o.l,a:u.a,source:"rgb"},f))};return de.createElement("div",{style:s.fields,className:"flexbox-fix"},de.createElement("div",{style:s.double},de.createElement(Y0,{style:{input:s.input,label:s.label},label:"hex",value:i==null?void 0:i.replace("#",""),onChange:l})),de.createElement("div",{style:s.single},de.createElement(Y0,{style:{input:s.input,label:s.label},label:"r",value:r==null?void 0:r.r,onChange:l,dragLabel:"true",dragMax:"255"})),de.createElement("div",{style:s.single},de.createElement(Y0,{style:{input:s.input,label:s.label},label:"g",value:r==null?void 0:r.g,onChange:l,dragLabel:"true",dragMax:"255"})),de.createElement("div",{style:s.single},de.createElement(Y0,{style:{input:s.input,label:s.label},label:"b",value:r==null?void 0:r.b,onChange:l,dragLabel:"true",dragMax:"255"})),de.createElement("div",{style:s.alpha},de.createElement(Y0,{style:{input:s.input,label:s.label},label:"a",value:Math.round(((r==null?void 0:r.a)||0)*100),onChange:l,dragLabel:"true",dragMax:"100"})))};function a1(e){"@babel/helpers - typeof";return a1=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},a1(e)}function ZK(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function eq(e){for(var t=1;t-1}function pbt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return(typeof e>"u"||e===!1)&&Zue()?OD:fbt}var mbt=function(t,n){var r=t.text,o=t.mode,i=t.render,a=t.renderFormItem,s=t.fieldProps,l=t.old,c=d.useContext(Mn.ConfigContext),u=c.getPrefixCls,f=de.useMemo(function(){return pbt(l)},[l]),h=u("pro-field-color-picker"),p=d.useMemo(function(){return l?"":xe(Z({},h,Zue()))},[h,l]);if(o==="read"){var m=N.jsx(f,{value:r,mode:"read",ref:n,className:p,open:!1});return i?i(r,z({mode:o},s),m):m}if(o==="edit"||o==="update"){var g=z({display:"table-cell"},s.style),v=N.jsx(f,z(z({ref:n,presets:[hbt]},s),{},{style:g,className:p}));return a?a(r,z(z({mode:o},s),{},{style:g}),v):v}return null};const gbt=de.forwardRef(mbt);qn.extend(sD);var vbt=function(t,n){return t?typeof n=="function"?n(qn(t)):qn(t).format((Array.isArray(n)?n[0]:n)||"YYYY-MM-DD"):"-"},ybt=function(t,n){var r=t.text,o=t.mode,i=t.format,a=t.label,s=t.light,l=t.render,c=t.renderFormItem,u=t.plain,f=t.showTime,h=t.fieldProps,p=t.picker,m=t.bordered,g=t.lightLabel,v=No(),b=d.useState(!1),y=$e(b,2),S=y[0],w=y[1];if(o==="read"){var E=vbt(r,h.format||i);return l?l(r,z({mode:o},h),N.jsx(N.Fragment,{children:E})):N.jsx(N.Fragment,{children:E})}if(o==="edit"||o==="update"){var C,x=h.disabled,_=h.value,P=h.placeholder,O=P===void 0?v.getMessage("tableForm.selectPlaceholder","请选择"):P,I=pS(_);return s?C=N.jsx(bd,{label:a,onClick:function(){var T;h==null||(T=h.onOpenChange)===null||T===void 0||T.call(h,!0),w(!0)},style:I?{paddingInlineEnd:0}:void 0,disabled:x,value:I||S?N.jsx(qa,z(z(z({picker:p,showTime:f,format:i,ref:n},h),{},{value:I,onOpenChange:function(T){var D;w(T),h==null||(D=h.onOpenChange)===null||D===void 0||D.call(h,T)}},Ms(!1)),{},{open:S})):void 0,allowClear:!1,downIcon:I||S?!1:void 0,bordered:m,ref:g}):C=N.jsx(qa,z(z(z({picker:p,showTime:f,format:i,placeholder:O},Ms(u===void 0?!0:!u)),{},{ref:n},h),{},{value:I})),c?c(r,z({mode:o},h),C):C}return null};const wm=de.forwardRef(ybt);var bbt=function(t,n){var r=t.text,o=t.mode,i=t.render,a=t.placeholder,s=t.renderFormItem,l=t.fieldProps,c=No(),u=a||c.getMessage("tableForm.inputPlaceholder","请输入"),f=d.useCallback(function(b){var y=b??void 0;return!l.stringMode&&typeof y=="string"&&(y=Number(y)),typeof y=="number"&&!Cp(y)&&!Cp(l.precision)&&(y=Number(y.toFixed(l.precision))),y},[l]);if(o==="read"){var h,p={};l!=null&&l.precision&&(p={minimumFractionDigits:Number(l.precision),maximumFractionDigits:Number(l.precision)});var m=new Intl.NumberFormat(void 0,z(z({},p),(l==null?void 0:l.intlProps)||{})).format(Number(r)),g=l!=null&&l.stringMode?N.jsx("span",{children:r}):N.jsx("span",{ref:n,children:(l==null||(h=l.formatter)===null||h===void 0?void 0:h.call(l,m))||m});return i?i(r,z({mode:o},l),g):g}if(o==="edit"||o==="update"){var v=N.jsx(lc,z(z({ref:n,min:0,placeholder:u},Yn(l,["onChange","onBlur"])),{},{onChange:function(y){var S;return l==null||(S=l.onChange)===null||S===void 0?void 0:S.call(l,f(y))},onBlur:function(y){var S;return l==null||(S=l.onBlur)===null||S===void 0?void 0:S.call(l,f(y.target.value))}}));return s?s(r,z({mode:o},l),v):v}return null};const Sbt=de.forwardRef(bbt);var Cbt=function(t,n){var r=t.text,o=t.mode,i=t.render,a=t.placeholder,s=t.renderFormItem,l=t.fieldProps,c=t.separator,u=c===void 0?"~":c,f=t.separatorWidth,h=f===void 0?30:f,p=l.value,m=l.defaultValue,g=l.onChange,v=l.id,b=No(),y=Qc.useToken(),S=y.token,w=xn(function(){return m},{value:p,onChange:g}),E=$e(w,2),C=E[0],x=E[1];if(o==="read"){var _=function(F){var V,W=new Intl.NumberFormat(void 0,z({minimumSignificantDigits:2},(l==null?void 0:l.intlProps)||{})).format(Number(F));return(l==null||(V=l.formatter)===null||V===void 0?void 0:V.call(l,W))||W},P=N.jsxs("span",{ref:n,children:[_(r[0])," ",u," ",_(r[1])]});return i?i(r,z({mode:o},l),P):P}if(o==="edit"||o==="update"){var O=function(){if(Array.isArray(C)){var F=$e(C,2),V=F[0],W=F[1];typeof V=="number"&&typeof W=="number"&&V>W?x([W,V]):V===void 0&&W===void 0&&x(void 0)}},I=function(F,V){var W=Ze(C||[]);W[F]=V===null?void 0:V,x(W)},M=(l==null?void 0:l.placeholder)||a||[b.getMessage("tableForm.inputPlaceholder","请输入"),b.getMessage("tableForm.inputPlaceholder","请输入")],T=function(F){return Array.isArray(M)?M[F]:M},D=oo.Compact||qr.Group,A=oo.Compact?{}:{compact:!0},j=N.jsxs(D,z(z({},A),{},{onBlur:O,children:[N.jsx(lc,z(z({},l),{},{placeholder:T(0),id:v??"".concat(v,"-0"),style:{width:"calc((100% - ".concat(h,"px) / 2)")},value:C==null?void 0:C[0],defaultValue:m==null?void 0:m[0],onChange:function(F){return I(0,F)}})),N.jsx(qr,{style:{width:h,textAlign:"center",borderInlineStart:0,borderInlineEnd:0,pointerEvents:"none",backgroundColor:S==null?void 0:S.colorBgContainer},placeholder:u,disabled:!0}),N.jsx(lc,z(z({},l),{},{placeholder:T(1),id:v??"".concat(v,"-1"),style:{width:"calc((100% - ".concat(h,"px) / 2)"),borderInlineStart:0},value:C==null?void 0:C[1],defaultValue:m==null?void 0:m[1],onChange:function(F){return I(1,F)}}))]}));return s?s(r,z({mode:o},l),j):j}return null};const wbt=de.forwardRef(Cbt);var ede={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ro,function(){return function(n,r,o){n=n||{};var i=r.prototype,a={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function s(c,u,f,h){return i.fromToBase(c,u,f,h)}o.en.relativeTime=a,i.fromToBase=function(c,u,f,h,p){for(var m,g,v,b=f.$locale().relativeTime||a,y=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],S=y.length,w=0;w0,C<=E.r||!E.r){C<=1&&w>0&&(E=y[w-1]);var x=b[E.l];p&&(C=p(""+C)),g=typeof x=="string"?x.replace("%d",C):x(C,u,E.l,v);break}}if(u)return g;var _=v?b.future:b.past;return typeof _=="function"?_(g):_.replace("%s",g)},i.to=function(c,u){return s(c,u,this,!0)},i.from=function(c,u){return s(c,u,this)};var l=function(c){return c.$u?o.utc():o()};i.toNow=function(c){return this.to(l(this),c)},i.fromNow=function(c){return this.from(l(this),c)}}})})(ede);var xbt=ede.exports;const Ebt=Fr(xbt);qn.extend(Ebt);var _bt=function(t,n){var r=t.text,o=t.mode,i=t.plain,a=t.render,s=t.renderFormItem,l=t.format,c=t.fieldProps,u=No();if(o==="read"){var f=N.jsx(xa,{title:qn(r).format((c==null?void 0:c.format)||l||"YYYY-MM-DD HH:mm:ss"),children:qn(r).fromNow()});return a?a(r,z({mode:o},c),N.jsx(N.Fragment,{children:f})):N.jsx(N.Fragment,{children:f})}if(o==="edit"||o==="update"){var h=u.getMessage("tableForm.selectPlaceholder","请选择"),p=pS(c.value),m=N.jsx(qa,z(z(z({ref:n,placeholder:h,showTime:!0},Ms(i===void 0?!0:!i)),c),{},{value:p}));return s?s(r,z({mode:o},c),m):m}return null};const $bt=de.forwardRef(_bt);var tde=de.forwardRef(function(e,t){var n=e.text,r=e.mode,o=e.render,i=e.renderFormItem,a=e.fieldProps,s=e.placeholder,l=e.width,c=No(),u=s||c.getMessage("tableForm.inputPlaceholder","请输入");if(r==="read"){var f=N.jsx(gse,z({ref:t,width:l||32,src:n},a));return o?o(n,z({mode:r},a),f):f}if(r==="edit"||r==="update"){var h=N.jsx(qr,z({ref:t,placeholder:u},a));return i?i(n,z({mode:r},a),h):h}return null}),Pbt=function(t,n){var r=t.border,o=r===void 0?!1:r,i=t.children,a=d.useContext(Mn.ConfigContext),s=a.getPrefixCls,l=s("pro-field-index-column"),c=Zr("IndexColumn",function(){return Z({},".".concat(l),{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"18px",height:"18px","&-border":{color:"#fff",fontSize:"12px",lineHeight:"12px",backgroundColor:"#314659",borderRadius:"9px","&.top-three":{backgroundColor:"#979797"}}})}),u=c.wrapSSR,f=c.hashId;return u(N.jsx("div",{ref:n,className:xe(l,f,Z(Z({},"".concat(l,"-border"),o),"top-three",i>3)),children:i}))};const nq=de.forwardRef(Pbt);var Obt=["contentRender","numberFormatOptions","numberPopoverRender","open"],Mbt=["text","mode","render","renderFormItem","fieldProps","proFieldKey","plain","valueEnum","placeholder","locale","customSymbol","numberFormatOptions","numberPopoverRender"],nde=new Intl.NumberFormat("zh-Hans-CN",{currency:"CNY",style:"currency"}),Tbt={style:"currency",currency:"USD"},Rbt={style:"currency",currency:"RUB"},Ibt={style:"currency",currency:"RSD"},kbt={style:"currency",currency:"MYR"},Nbt={style:"currency",currency:"BRL"},Abt={default:nde,"zh-Hans-CN":{currency:"CNY",style:"currency"},"en-US":Tbt,"ru-RU":Rbt,"ms-MY":kbt,"sr-RS":Ibt,"pt-BR":Nbt},rq=function(t,n,r,o){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"",a=n==null?void 0:n.toString().replaceAll(",","");if(typeof a=="string"){var s=Number(a);if(Number.isNaN(s))return a;a=s}if(!a&&a!==0)return"";var l=!1;try{l=t!==!1&&Intl.NumberFormat.supportedLocalesOf([t.replace("_","-")],{localeMatcher:"lookup"}).length>0}catch{}try{var c=new Intl.NumberFormat(l&&t!==!1&&(t==null?void 0:t.replace("_","-"))||"zh-Hans-CN",z(z({},Abt[t||"zh-Hans-CN"]||nde),{},{maximumFractionDigits:r},o)),u=c.format(a),f=function(b){var y=b.match(/\d+/);if(y){var S=y[0];return b.slice(b.indexOf(S))}else return b},h=f(u),p=u||"",m=$e(p,1),g=m[0];return["+","-"].includes(g)?"".concat(i||"").concat(g).concat(h):"".concat(i||"").concat(h)}catch{return a}},KR=2,Dbt=de.forwardRef(function(e,t){var n=e.contentRender;e.numberFormatOptions,e.numberPopoverRender;var r=e.open,o=At(e,Obt),i=xn(function(){return o.defaultValue},{value:o.value,onChange:o.onChange}),a=$e(i,2),s=a[0],l=a[1],c=n==null?void 0:n(z(z({},o),{},{value:s})),u=TP(c?r:!1);return N.jsx(fl,z(z({placement:"topLeft"},u),{},{trigger:["focus","click"],content:c,getPopupContainer:function(h){return(h==null?void 0:h.parentElement)||document.body},children:N.jsx(lc,z(z({ref:t},o),{},{value:s,onChange:l}))}))}),jbt=function(t,n){var r,o=t.text,i=t.mode,a=t.render,s=t.renderFormItem,l=t.fieldProps;t.proFieldKey,t.plain,t.valueEnum;var c=t.placeholder,u=t.locale,f=t.customSymbol,h=f===void 0?l.customSymbol:f,p=t.numberFormatOptions,m=p===void 0?l==null?void 0:l.numberFormatOptions:p,g=t.numberPopoverRender,v=g===void 0?(l==null?void 0:l.numberPopoverRender)||!1:g,b=At(t,Mbt),y=(r=l==null?void 0:l.precision)!==null&&r!==void 0?r:KR,S=No();u&&Sp[u]&&(S=Sp[u]);var w=c||S.getMessage("tableForm.inputPlaceholder","请输入"),E=d.useMemo(function(){if(h)return h;if(!(b.moneySymbol===!1||l.moneySymbol===!1))return S.getMessage("moneySymbol","¥")},[h,l.moneySymbol,S,b.moneySymbol]),C=d.useCallback(function(P){var O=new RegExp("\\B(?=(\\d{".concat(3+Math.max(y-KR,0),"})+(?!\\d))"),"g"),I=String(P).split("."),M=$e(I,2),T=M[0],D=M[1],A=T.replace(O,","),j="";return D&&y>0&&(j=".".concat(D.slice(0,y===void 0?KR:y))),"".concat(A).concat(j)},[y]);if(i==="read"){var x=N.jsx("span",{ref:n,children:rq(u||!1,o,y,m??l.numberFormatOptions,E)});return a?a(o,z({mode:i},l),x):x}if(i==="edit"||i==="update"){var _=N.jsx(Dbt,z(z({contentRender:function(O){if(v===!1||!O.value)return null;var I=rq(E||u||!1,"".concat(C(O.value)),y,z(z({},m),{},{notation:"compact"}),E);return typeof v=="function"?v==null?void 0:v(O,I):I},ref:n,precision:y,formatter:function(O){return O&&E?"".concat(E," ").concat(C(O)):O==null?void 0:O.toString()},parser:function(O){return E&&O?O.replace(new RegExp("\\".concat(E,"\\s?|(,*)"),"g"),""):O},placeholder:w},Yn(l,["numberFormatOptions","precision","numberPopoverRender","customSymbol","moneySymbol","visible","open"])),{},{onBlur:l.onBlur?function(P){var O,I=P.target.value;E&&I&&(I=I.replace(new RegExp("\\".concat(E,"\\s?|(,*)"),"g"),"")),(O=l.onBlur)===null||O===void 0||O.call(l,I)}:void 0}));return s?s(o,z({mode:i},l),_):_}return null};const rde=de.forwardRef(jbt);var oq=function(t){return t.map(function(n,r){var o;return de.isValidElement(n)?de.cloneElement(n,z(z({key:r},n==null?void 0:n.props),{},{style:z({},n==null||(o=n.props)===null||o===void 0?void 0:o.style)})):N.jsx(de.Fragment,{children:n},r)})},Fbt=function(t,n){var r=t.text,o=t.mode,i=t.render,a=t.fieldProps,s=d.useContext(Mn.ConfigContext),l=s.getPrefixCls,c=l("pro-field-option"),u=Qc.useToken(),f=u.token;if(d.useImperativeHandle(n,function(){return{}}),i){var h=i(r,z({mode:o},a),N.jsx(N.Fragment,{}));return!h||(h==null?void 0:h.length)<1||!Array.isArray(h)?null:N.jsx("div",{style:{display:"flex",gap:f.margin,alignItems:"center"},className:c,children:oq(h)})}return!r||!Array.isArray(r)?de.isValidElement(r)?r:null:N.jsx("div",{style:{display:"flex",gap:f.margin,alignItems:"center"},className:c,children:oq(r)})};const Lbt=de.forwardRef(Fbt);var Bbt=["text","mode","render","renderFormItem","fieldProps","proFieldKey"],zbt=function(t,n){var r=t.text,o=t.mode,i=t.render,a=t.renderFormItem,s=t.fieldProps;t.proFieldKey;var l=At(t,Bbt),c=No(),u=xn(function(){return l.open||l.visible||!1},{value:l.open||l.visible,onChange:l.onOpenChange||l.onVisible}),f=$e(u,2),h=f[0],p=f[1];if(o==="read"){var m=N.jsx(N.Fragment,{children:"-"});return r&&(m=N.jsxs(oo,{children:[N.jsx("span",{ref:n,children:h?r:"********"}),N.jsx("a",{onClick:function(){return p(!h)},children:h?N.jsx(uP,{}):N.jsx(Aae,{})})]})),i?i(r,z({mode:o},s),m):m}if(o==="edit"||o==="update"){var g=N.jsx(qr.Password,z({placeholder:c.getMessage("tableForm.inputPlaceholder","请输入"),ref:n},s));return a?a(r,z({mode:o},s),g):g}return null};const Hbt=de.forwardRef(zbt);function Ubt(e){return e===0?null:e>0?"+":"-"}function Wbt(e){return e===0?"#595959":e>0?"#ff4d4f":"#52c41a"}function Vbt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;return t>=0?e==null?void 0:e.toFixed(t):e}function IE(e){return Ht(e)==="symbol"||e instanceof Symbol?NaN:Number(e)}var Kbt=function(t,n){var r=t.text,o=t.prefix,i=t.precision,a=t.suffix,s=a===void 0?"%":a,l=t.mode,c=t.showColor,u=c===void 0?!1:c,f=t.render,h=t.renderFormItem,p=t.fieldProps,m=t.placeholder,g=t.showSymbol,v=No(),b=m||v.getMessage("tableForm.inputPlaceholder","请输入"),y=d.useMemo(function(){return typeof r=="string"&&r.includes("%")?IE(r.replace("%","")):IE(r)},[r]),S=d.useMemo(function(){return typeof g=="function"?g==null?void 0:g(r):g},[g,r]);if(l==="read"){var w=u?{color:Wbt(y)}:{},E=N.jsxs("span",{style:w,ref:n,children:[o&&N.jsx("span",{children:o}),S&&N.jsxs(d.Fragment,{children:[Ubt(y)," "]}),Vbt(Math.abs(y),i),s&&s]});return f?f(r,z(z({mode:l},p),{},{prefix:o,precision:i,showSymbol:S,suffix:s}),E):E}if(l==="edit"||l==="update"){var C=N.jsx(lc,z({ref:n,formatter:function(_){return _&&o?"".concat(o," ").concat(_).replace(/\B(?=(\d{3})+(?!\d)$)/g,","):_},parser:function(_){return _?_.replace(/.*\s|,/g,""):""},placeholder:b},p));return h?h(r,z({mode:l},p),C):C}return null};const ode=de.forwardRef(Kbt);function qbt(e){return e===100?"success":e<0?"exception":e<100?"active":"normal"}var Gbt=function(t,n){var r=t.text,o=t.mode,i=t.render,a=t.plain,s=t.renderFormItem,l=t.fieldProps,c=t.placeholder,u=No(),f=c||u.getMessage("tableForm.inputPlaceholder","请输入"),h=d.useMemo(function(){return typeof r=="string"&&r.includes("%")?IE(r.replace("%","")):IE(r)},[r]);if(o==="read"){var p=N.jsx(AD,z({ref:n,size:"small",style:{minWidth:100,maxWidth:320},percent:h,steps:a?10:void 0,status:qbt(h)},l));return i?i(h,z({mode:o},l),p):p}if(o==="edit"||o==="update"){var m=N.jsx(lc,z({ref:n,placeholder:f},l));return s?s(r,z({mode:o},l),m):m}return null};const ide=de.forwardRef(Gbt);var Ybt=["radioType","renderFormItem","mode","render"],Xbt=function(t,n){var r,o,i=t.radioType,a=t.renderFormItem,s=t.mode,l=t.render,c=At(t,Ybt),u=d.useContext(Mn.ConfigContext),f=u.getPrefixCls,h=f("pro-field-radio"),p=Qv(c),m=$e(p,3),g=m[0],v=m[1],b=m[2],y=d.useRef(),S=(r=Vn.Item)===null||r===void 0||(o=r.useStatus)===null||o===void 0?void 0:o.call(r);d.useImperativeHandle(n,function(){return z(z({},y.current||{}),{},{fetchData:function(D){return b(D)}})},[b]);var w=Zr("FieldRadioRadio",function(T){return Z(Z(Z({},".".concat(h,"-error"),{span:{color:T.colorError}}),".".concat(h,"-warning"),{span:{color:T.colorWarning}}),".".concat(h,"-vertical"),Z({},"".concat(T.antCls,"-radio-wrapper"),{display:"flex",marginInlineEnd:0}))}),E=w.wrapSSR,C=w.hashId;if(g)return N.jsx(iu,{size:"small"});if(s==="read"){var x=v!=null&&v.length?v==null?void 0:v.reduce(function(T,D){var A;return z(z({},T),{},Z({},(A=D.value)!==null&&A!==void 0?A:"",D.label))},{}):void 0,_=N.jsx(N.Fragment,{children:Kv(c.text,Sd(c.valueEnum||x))});if(l){var P;return(P=l(c.text,z({mode:s},c.fieldProps),_))!==null&&P!==void 0?P:null}return _}if(s==="edit"){var O,I=E(N.jsx(qo.Group,z(z({ref:y,optionType:i},c.fieldProps),{},{className:xe((O=c.fieldProps)===null||O===void 0?void 0:O.className,Z(Z({},"".concat(h,"-error"),(S==null?void 0:S.status)==="error"),"".concat(h,"-warning"),(S==null?void 0:S.status)==="warning"),C,"".concat(h,"-").concat(c.fieldProps.layout||"horizontal")),options:v})));if(a){var M;return(M=a(c.text,z(z({mode:s},c.fieldProps),{},{options:v,loading:g}),I))!==null&&M!==void 0?M:null}return I}return null};const iq=de.forwardRef(Xbt);var Qbt=function(t,n){var r=t.text,o=t.mode,i=t.light,a=t.label,s=t.format,l=t.render,c=t.picker,u=t.renderFormItem,f=t.plain,h=t.showTime,p=t.lightLabel,m=t.bordered,g=t.fieldProps,v=No(),b=Array.isArray(r)?r:[],y=$e(b,2),S=y[0],w=y[1],E=de.useState(!1),C=$e(E,2),x=C[0],_=C[1],P=d.useCallback(function(j){if(typeof(g==null?void 0:g.format)=="function"){var k;return g==null||(k=g.format)===null||k===void 0?void 0:k.call(g,j)}return(g==null?void 0:g.format)||s||"YYYY-MM-DD"},[g,s]),O=S?qn(S).format(P(qn(S))):"",I=w?qn(w).format(P(qn(w))):"";if(o==="read"){var M=N.jsxs("div",{ref:n,style:{display:"flex",flexWrap:"wrap",gap:8,alignItems:"center"},children:[N.jsx("div",{children:O||"-"}),N.jsx("div",{children:I||"-"})]});return l?l(r,z({mode:o},g),N.jsx("span",{children:M})):M}if(o==="edit"||o==="update"){var T=pS(g.value),D;if(i){var A;D=N.jsx(bd,{label:a,onClick:function(){var k;g==null||(k=g.onOpenChange)===null||k===void 0||k.call(g,!0),_(!0)},style:T?{paddingInlineEnd:0}:void 0,disabled:g.disabled,value:T||x?N.jsx(qa.RangePicker,z(z(z({picker:c,showTime:h,format:s},Ms(!1)),g),{},{placeholder:(A=g.placeholder)!==null&&A!==void 0?A:[v.getMessage("tableForm.selectPlaceholder","请选择"),v.getMessage("tableForm.selectPlaceholder","请选择")],onClear:function(){var k;_(!1),g==null||(k=g.onClear)===null||k===void 0||k.call(g)},value:T,onOpenChange:function(k){var F;T&&_(k),g==null||(F=g.onOpenChange)===null||F===void 0||F.call(g,k)}})):null,allowClear:!1,bordered:m,ref:p,downIcon:T||x?!1:void 0})}else D=N.jsx(qa.RangePicker,z(z(z({ref:n,format:s,showTime:h,placeholder:[v.getMessage("tableForm.selectPlaceholder","请选择"),v.getMessage("tableForm.selectPlaceholder","请选择")]},Ms(f===void 0?!0:!f)),g),{},{value:T}));return u?u(r,z({mode:o},g),D):D}return null};const xm=de.forwardRef(Qbt);var Jbt=function(t,n){var r=t.text,o=t.mode,i=t.render,a=t.renderFormItem,s=t.fieldProps;if(o==="read"){var l=N.jsx(qU,z(z({allowHalf:!0,disabled:!0,ref:n},s),{},{value:r}));return i?i(r,z({mode:o},s),N.jsx(N.Fragment,{children:l})):l}if(o==="edit"||o==="update"){var c=N.jsx(qU,z({allowHalf:!0,ref:n},s));return a?a(r,z({mode:o},s),c):c}return null};const Zbt=de.forwardRef(Jbt);function e1t(e){var t=e,n="",r=!1;t<0&&(t=-t,r=!0);var o=Math.floor(t/(3600*24)),i=Math.floor(t/3600%24),a=Math.floor(t/60%60),s=Math.floor(t%60);return n="".concat(s,"秒"),a>0&&(n="".concat(a,"分钟").concat(n)),i>0&&(n="".concat(i,"小时").concat(n)),o>0&&(n="".concat(o,"天").concat(n)),r&&(n+="前"),n}var t1t=function(t,n){var r=t.text,o=t.mode,i=t.render,a=t.renderFormItem,s=t.fieldProps,l=t.placeholder,c=No(),u=l||c.getMessage("tableForm.inputPlaceholder","请输入");if(o==="read"){var f=e1t(Number(r)),h=N.jsx("span",{ref:n,children:f});return i?i(r,z({mode:o},s),h):h}if(o==="edit"||o==="update"){var p=N.jsx(lc,z({ref:n,min:0,style:{width:"100%"},placeholder:u},s));return a?a(r,z({mode:o},s),p):p}return null};const n1t=de.forwardRef(t1t);var r1t=["mode","render","renderFormItem","fieldProps","emptyText"],o1t=function(t,n){var r=t.mode,o=t.render,i=t.renderFormItem,a=t.fieldProps,s=t.emptyText,l=s===void 0?"-":s,c=At(t,r1t),u=d.useRef(),f=Qv(t),h=$e(f,3),p=h[0],m=h[1],g=h[2];if(d.useImperativeHandle(n,function(){return z(z({},u.current||{}),{},{fetchData:function(E){return g(E)}})},[g]),p)return N.jsx(iu,{size:"small"});if(r==="read"){var v=m!=null&&m.length?m==null?void 0:m.reduce(function(w,E){var C;return z(z({},w),{},Z({},(C=E.value)!==null&&C!==void 0?C:"",E.label))},{}):void 0,b=N.jsx(N.Fragment,{children:Kv(c.text,Sd(c.valueEnum||v))});if(o){var y;return(y=o(c.text,z({mode:r},a),N.jsx(N.Fragment,{children:b})))!==null&&y!==void 0?y:l}return b}if(r==="edit"||r==="update"){var S=N.jsx($ae,z(z({ref:u},Yn(a||{},["allowClear"])),{},{options:m}));return i?i(c.text,z(z({mode:r},a),{},{options:m,loading:p}),S):S}return null};const i1t=de.forwardRef(o1t);var a1t=function(t,n){var r=t.text,o=t.mode,i=t.render,a=t.renderFormItem,s=t.fieldProps;if(o==="read"){var l=r;return i?i(r,z({mode:o},s),N.jsx(N.Fragment,{children:l})):N.jsx(N.Fragment,{children:l})}if(o==="edit"||o==="update"){var c=N.jsx(Lae,z(z({ref:n},s),{},{style:z({minWidth:120},s==null?void 0:s.style)}));return a?a(r,z({mode:o},s),c):c}return null};const s1t=de.forwardRef(a1t);var l1t=function(t,n){var r=t.text,o=t.mode,i=t.render,a=t.light,s=t.label,l=t.renderFormItem,c=t.fieldProps,u=No(),f=d.useMemo(function(){var v,b;return r==null||"".concat(r).length<1?"-":r?(v=c==null?void 0:c.checkedChildren)!==null&&v!==void 0?v:u.getMessage("switch.open","打开"):(b=c==null?void 0:c.unCheckedChildren)!==null&&b!==void 0?b:u.getMessage("switch.close","关闭")},[c==null?void 0:c.checkedChildren,c==null?void 0:c.unCheckedChildren,r]);if(o==="read")return i?i(r,z({mode:o},c),N.jsx(N.Fragment,{children:f})):f??"-";if(o==="edit"||o==="update"){var h,p=N.jsx(uE,z(z({ref:n,size:a?"small":void 0},Yn(c,["value"])),{},{checked:(h=c==null?void 0:c.checked)!==null&&h!==void 0?h:c==null?void 0:c.value}));if(a){var m=c.disabled,g=c.bordered;return N.jsx(bd,{label:s,disabled:m,bordered:g,downIcon:!1,value:N.jsx("div",{style:{paddingLeft:8},children:p}),allowClear:!1})}return l?l(r,z({mode:o},c),p):p}return null};const c1t=de.forwardRef(l1t);var u1t=function(t,n){var r=t.text,o=t.mode,i=t.render,a=t.renderFormItem,s=t.fieldProps,l=t.emptyText,c=l===void 0?"-":l,u=s||{},f=u.autoFocus,h=u.prefix,p=h===void 0?"":h,m=u.suffix,g=m===void 0?"":m,v=No(),b=d.useRef();if(d.useImperativeHandle(n,function(){return b.current},[]),d.useEffect(function(){if(f){var C;(C=b.current)===null||C===void 0||C.focus()}},[f]),o==="read"){var y=N.jsxs(N.Fragment,{children:[p,r??c,g]});if(i){var S;return(S=i(r,z({mode:o},s),y))!==null&&S!==void 0?S:c}return y}if(o==="edit"||o==="update"){var w=v.getMessage("tableForm.inputPlaceholder","请输入"),E=N.jsx(qr,z({ref:b,placeholder:w,allowClear:!0},s));return a?a(r,z({mode:o},s),E):E}return null};const d1t=de.forwardRef(u1t);var f1t=function(t,n){var r=t.text,o=t.fieldProps,i=d.useContext(Mn.ConfigContext),a=i.getPrefixCls,s=a("pro-field-readonly"),l="".concat(s,"-textarea"),c=Zr("TextArea",function(){return Z({},".".concat(l),{display:"inline-block",lineHeight:"1.5715",maxWidth:"100%",whiteSpace:"pre-wrap"})}),u=c.wrapSSR,f=c.hashId;return u(N.jsx("span",z(z({ref:n,className:xe(f,s,l)},Yn(o,["autoSize","classNames","styles"])),{},{children:r??"-"})))};const h1t=de.forwardRef(f1t);var p1t=function(t,n){var r=t.text,o=t.mode,i=t.render,a=t.renderFormItem,s=t.fieldProps,l=No();if(o==="read"){var c=N.jsx(h1t,z(z({},t),{},{ref:n}));return i?i(r,z({mode:o},Yn(s,["showCount"])),c):c}if(o==="edit"||o==="update"){var u=N.jsx(qr.TextArea,z({ref:n,rows:3,onKeyPress:function(h){h.key==="Enter"&&h.stopPropagation()},placeholder:l.getMessage("tableForm.inputPlaceholder","请输入")},s));return a?a(r,z({mode:o},s),u):u}return null};const m1t=de.forwardRef(p1t);var g1t=function(t,n){var r=t.text,o=t.mode,i=t.light,a=t.label,s=t.format,l=t.render,c=t.renderFormItem,u=t.plain,f=t.fieldProps,h=t.lightLabel,p=d.useState(!1),m=$e(p,2),g=m[0],v=m[1],b=No(),y=(f==null?void 0:f.format)||s||"HH:mm:ss",S=qn.isDayjs(r)||typeof r=="number";if(o==="read"){var w=N.jsx("span",{ref:n,children:r?qn(r,S?void 0:y).format(y):"-"});return l?l(r,z({mode:o},f),N.jsx("span",{children:w})):w}if(o==="edit"||o==="update"){var E,C=f.disabled,x=f.value,_=pS(x,y);if(i){var P;E=N.jsx(bd,{onClick:function(){var I;f==null||(I=f.onOpenChange)===null||I===void 0||I.call(f,!0),v(!0)},style:_?{paddingInlineEnd:0}:void 0,label:a,disabled:C,value:_||g?N.jsx(yp,z(z(z({},Ms(!1)),{},{format:s,ref:n},f),{},{placeholder:(P=f.placeholder)!==null&&P!==void 0?P:b.getMessage("tableForm.selectPlaceholder","请选择"),value:_,onOpenChange:function(I){var M;v(I),f==null||(M=f.onOpenChange)===null||M===void 0||M.call(f,I)},open:g})):null,downIcon:_||g?!1:void 0,allowClear:!1,ref:h})}else E=N.jsx(qa.TimePicker,z(z(z({ref:n,format:s},Ms(u===void 0?!0:!u)),f),{},{value:_}));return c?c(r,z({mode:o},f),E):E}return null},v1t=function(t,n){var r=t.text,o=t.light,i=t.label,a=t.mode,s=t.lightLabel,l=t.format,c=t.render,u=t.renderFormItem,f=t.plain,h=t.fieldProps,p=No(),m=d.useState(!1),g=$e(m,2),v=g[0],b=g[1],y=(h==null?void 0:h.format)||l||"HH:mm:ss",S=Array.isArray(r)?r:[],w=$e(S,2),E=w[0],C=w[1],x=qn.isDayjs(E)||typeof E=="number",_=qn.isDayjs(C)||typeof C=="number",P=E?qn(E,x?void 0:y).format(y):"",O=C?qn(C,_?void 0:y).format(y):"";if(a==="read"){var I=N.jsxs("div",{ref:n,children:[N.jsx("div",{children:P||"-"}),N.jsx("div",{children:O||"-"})]});return c?c(r,z({mode:a},h),N.jsx("span",{children:I})):I}if(a==="edit"||a==="update"){var M=pS(h.value,y),T;if(o){var D=h.disabled,A=h.placeholder,j=A===void 0?[p.getMessage("tableForm.selectPlaceholder","请选择"),p.getMessage("tableForm.selectPlaceholder","请选择")]:A;T=N.jsx(bd,{onClick:function(){var F;h==null||(F=h.onOpenChange)===null||F===void 0||F.call(h,!0),b(!0)},style:M?{paddingInlineEnd:0}:void 0,label:i,disabled:D,placeholder:j,value:M||v?N.jsx(yp.RangePicker,z(z(z({},Ms(!1)),{},{format:l,ref:n},h),{},{placeholder:j,value:M,onOpenChange:function(F){var V;b(F),h==null||(V=h.onOpenChange)===null||V===void 0||V.call(h,F)},open:v})):null,downIcon:M||v?!1:void 0,allowClear:!1,ref:s})}else T=N.jsx(yp.RangePicker,z(z(z({ref:n,format:l},Ms(f===void 0?!0:!f)),h),{},{value:M}));return u?u(r,z({mode:a},h),T):T}return null},y1t=de.forwardRef(v1t);const b1t=de.forwardRef(g1t);var S1t=["radioType","renderFormItem","mode","light","label","render"],C1t=["onSearch","onClear","onChange","onBlur","showSearch","autoClearSearchValue","treeData","fetchDataOnSearch","searchValue"],w1t=function(t,n){t.radioType;var r=t.renderFormItem,o=t.mode,i=t.light,a=t.label,s=t.render,l=At(t,S1t),c=d.useContext(Mn.ConfigContext),u=c.getPrefixCls,f=u("pro-field-tree-select"),h=d.useRef(null),p=d.useState(!1),m=$e(p,2),g=m[0],v=m[1],b=l.fieldProps,y=b.onSearch,S=b.onClear,w=b.onChange,E=b.onBlur,C=b.showSearch,x=b.autoClearSearchValue;b.treeData;var _=b.fetchDataOnSearch,P=b.searchValue,O=At(b,C1t),I=No(),M=Qv(z(z({},l),{},{defaultKeyWords:P})),T=$e(M,3),D=T[0],A=T[1],j=T[2],k=xn(void 0,{onChange:y,value:P}),F=$e(k,2),V=F[0],W=F[1];d.useImperativeHandle(n,function(){return z(z({},h.current||{}),{},{fetchData:function(fe){return j(fe)}})});var K=d.useMemo(function(){if(o==="read"){var se=(O==null?void 0:O.fieldNames)||{},fe=se.value,te=fe===void 0?"value":fe,he=se.label,pe=he===void 0?"label":he,Oe=se.children,Me=Oe===void 0?"children":Oe,Se=new Map,ye=function ve(be){if(!(be!=null&&be.length))return Se;for(var Pe=be.length,Ne=0;Ne4&&(p+=7),h.add(p,n));return m.diff(g,"week")+1},s.isoWeekday=function(c){return this.$utils().u(c)?this.day()||7:this.day(this.day()%7?c:c-7)};var l=s.startOf;s.startOf=function(c,u){var f=this.$utils(),h=!!f.u(u)||u;return f.p(c)==="isoweek"?h?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):l.bind(this)(c,u)}}})})(ade);var E1t=ade.exports;const _1t=Fr(E1t);var sde={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ro,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,o,i){var a=o.prototype,s=a.format;i.en.formats=n,a.format=function(l){l===void 0&&(l="YYYY-MM-DDTHH:mm:ssZ");var c=this.$locale().formats,u=function(f,h){return f.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(p,m,g){var v=g&&g.toUpperCase();return m||h[g]||n[g]||h[v].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(b,y,S){return y||S.slice(1)})})}(l,c===void 0?{}:c);return s.call(this,u)}}})})(sde);var $1t=sde.exports;const P1t=Fr($1t);var O1t=["fieldProps"],M1t=["fieldProps"],T1t=["fieldProps"],R1t=["fieldProps"],I1t=["text","valueType","mode","onChange","renderFormItem","value","readonly","fieldProps"],k1t=["placeholder"];qn.extend(qoe);qn.extend(Qoe);qn.extend(_1t);qn.extend(sD);qn.extend(Voe);qn.extend(P1t);var N1t=function(t,n,r){var o=Dce(r.fieldProps);return n.type==="progress"?N.jsx(ide,z(z({},r),{},{text:t,fieldProps:z({status:n.status?n.status:void 0},o)})):n.type==="money"?N.jsx(rde,z(z({locale:n.locale},r),{},{fieldProps:o,text:t,moneySymbol:n.moneySymbol})):n.type==="percent"?N.jsx(ode,z(z({},r),{},{text:t,showSymbol:n.showSymbol,precision:n.precision,fieldProps:o,showColor:n.showColor})):n.type==="image"?N.jsx(tde,z(z({},r),{},{text:t,width:n.width})):t},A1t=function(t,n,r,o){var i=r.mode,a=i===void 0?"read":i,s=r.emptyText,l=s===void 0?"-":s;if(l!==!1&&a==="read"&&n!=="option"&&n!=="switch"&&typeof t!="boolean"&&typeof t!="number"&&!t){var c=r.fieldProps,u=r.render;return u?u(t,z({mode:a},c),N.jsx(N.Fragment,{children:l})):N.jsx(N.Fragment,{children:l})}if(delete r.emptyText,Ht(n)==="object")return N1t(t,n,r);var f=o&&o[n];if(f){if(delete r.ref,a==="read"){var h;return(h=f.render)===null||h===void 0?void 0:h.call(f,t,z(z({text:t},r),{},{mode:a||"read"}),N.jsx(N.Fragment,{children:t}))}if(a==="update"||a==="edit"){var p;return(p=f.renderFormItem)===null||p===void 0?void 0:p.call(f,t,z({text:t},r),N.jsx(N.Fragment,{children:t}))}}if(n==="money")return N.jsx(rde,z(z({},r),{},{text:t}));if(n==="date")return N.jsx(Ta,{isLight:r.light,children:N.jsx(wm,z({text:t,format:"YYYY-MM-DD"},r))});if(n==="dateWeek")return N.jsx(Ta,{isLight:r.light,children:N.jsx(wm,z({text:t,format:"YYYY-wo",picker:"week"},r))});if(n==="dateWeekRange"){var m=r.fieldProps,g=At(r,O1t);return N.jsx(Ta,{isLight:r.light,children:N.jsx(xm,z({text:t,format:"YYYY-W",showTime:!0,fieldProps:z({picker:"week"},m)},g))})}if(n==="dateMonthRange"){var v=r.fieldProps,b=At(r,M1t);return N.jsx(Ta,{isLight:r.light,children:N.jsx(xm,z({text:t,format:"YYYY-MM",showTime:!0,fieldProps:z({picker:"month"},v)},b))})}if(n==="dateQuarterRange"){var y=r.fieldProps,S=At(r,T1t);return N.jsx(Ta,{isLight:r.light,children:N.jsx(xm,z({text:t,format:"YYYY-Q",showTime:!0,fieldProps:z({picker:"quarter"},y)},S))})}if(n==="dateYearRange"){var w=r.fieldProps,E=At(r,R1t);return N.jsx(Ta,{isLight:r.light,children:N.jsx(xm,z({text:t,format:"YYYY",showTime:!0,fieldProps:z({picker:"year"},w)},E))})}return n==="dateMonth"?N.jsx(Ta,{isLight:r.light,children:N.jsx(wm,z({text:t,format:"YYYY-MM",picker:"month"},r))}):n==="dateQuarter"?N.jsx(Ta,{isLight:r.light,children:N.jsx(wm,z({text:t,format:"YYYY-[Q]Q",picker:"quarter"},r))}):n==="dateYear"?N.jsx(Ta,{isLight:r.light,children:N.jsx(wm,z({text:t,format:"YYYY",picker:"year"},r))}):n==="dateRange"?N.jsx(xm,z({text:t,format:"YYYY-MM-DD"},r)):n==="dateTime"?N.jsx(Ta,{isLight:r.light,children:N.jsx(wm,z({text:t,format:"YYYY-MM-DD HH:mm:ss",showTime:!0},r))}):n==="dateTimeRange"?N.jsx(Ta,{isLight:r.light,children:N.jsx(xm,z({text:t,format:"YYYY-MM-DD HH:mm:ss",showTime:!0},r))}):n==="time"?N.jsx(Ta,{isLight:r.light,children:N.jsx(b1t,z({text:t,format:"HH:mm:ss"},r))}):n==="timeRange"?N.jsx(Ta,{isLight:r.light,children:N.jsx(y1t,z({text:t,format:"HH:mm:ss"},r))}):n==="fromNow"?N.jsx($bt,z({text:t},r)):n==="index"?N.jsx(nq,{children:t+1}):n==="indexBorder"?N.jsx(nq,{border:!0,children:t+1}):n==="progress"?N.jsx(ide,z(z({},r),{},{text:t})):n==="percent"?N.jsx(ode,z({text:t},r)):n==="avatar"&&typeof t=="string"&&r.mode==="read"?N.jsx(Xc,{src:t,size:22,shape:"circle"}):n==="code"?N.jsx(HV,z({text:t},r)):n==="jsonCode"?N.jsx(HV,z({text:t,language:"json"},r)):n==="textarea"?N.jsx(m1t,z({text:t},r)):n==="digit"?N.jsx(Sbt,z({text:t},r)):n==="digitRange"?N.jsx(wbt,z({text:t},r)):n==="second"?N.jsx(n1t,z({text:t},r)):n==="select"||n==="text"&&(r.valueEnum||r.request)?N.jsx(Ta,{isLight:r.light,children:N.jsx(Unt,z({text:t},r))}):n==="checkbox"?N.jsx(Xnt,z({text:t},r)):n==="radio"?N.jsx(iq,z({text:t},r)):n==="radioButton"?N.jsx(iq,z({radioType:"button",text:t},r)):n==="rate"?N.jsx(Zbt,z({text:t},r)):n==="slider"?N.jsx(s1t,z({text:t},r)):n==="switch"?N.jsx(c1t,z({text:t},r)):n==="option"?N.jsx(Lbt,z({text:t},r)):n==="password"?N.jsx(Hbt,z({text:t},r)):n==="image"?N.jsx(tde,z({text:t},r)):n==="cascader"?N.jsx(Knt,z({text:t},r)):n==="treeSelect"?N.jsx(x1t,z({text:t},r)):n==="color"?N.jsx(gbt,z({text:t},r)):n==="segmented"?N.jsx(i1t,z({text:t},r)):N.jsx(d1t,z({text:t},r))},D1t=function(t,n){var r,o,i,a,s,l=t.text,c=t.valueType,u=c===void 0?"text":c,f=t.mode,h=f===void 0?"read":f,p=t.onChange,m=t.renderFormItem,g=t.value,v=t.readonly,b=t.fieldProps,y=At(t,I1t),S=d.useContext(Mf),w=Xl(function(){for(var x,_=arguments.length,P=new Array(_),O=0;O<_;O++)P[O]=arguments[O];b==null||(x=b.onChange)===null||x===void 0||x.call.apply(x,[b].concat(P)),p==null||p.apply(void 0,P)}),E=Na(function(){return(g!==void 0||b)&&z(z({value:g},Js(b)),{},{onChange:w})},[g,b,w]),C=A1t(h==="edit"?(r=(o=E==null?void 0:E.value)!==null&&o!==void 0?o:l)!==null&&r!==void 0?r:"":(i=l??(E==null?void 0:E.value))!==null&&i!==void 0?i:"",u||"text",Js(z(z({ref:n},y),{},{mode:v?"read":h,renderFormItem:m?function(x,_,P){_.placeholder;var O=At(_,k1t),I=m(x,O,P);return de.isValidElement(I)?de.cloneElement(I,z(z({},E),I.props||{})):I}:void 0,placeholder:m?void 0:(a=y==null?void 0:y.placeholder)!==null&&a!==void 0?a:E==null?void 0:E.placeholder,fieldProps:Dce(Js(z(z({},E),{},{placeholder:m?void 0:(s=y==null?void 0:y.placeholder)!==null&&s!==void 0?s:E==null?void 0:E.placeholder})))})),S.valueTypeMap||{});return N.jsx(de.Fragment,{children:C})},j1t=de.forwardRef(D1t),Aj=de.createContext({mode:"edit"}),F1t=["fieldProps","children","labelCol","label","autoFocus","isDefaultDom","render","proFieldProps","renderFormItem","valueType","initialValue","onChange","valueEnum","params","name","dependenciesValues","cacheForSwr","valuePropName"],L1t=function(t){var n=t.fieldProps,r=t.children;t.labelCol,t.label;var o=t.autoFocus;t.isDefaultDom;var i=t.render,a=t.proFieldProps,s=t.renderFormItem,l=t.valueType;t.initialValue;var c=t.onChange,u=t.valueEnum,f=t.params;t.name;var h=t.dependenciesValues,p=t.cacheForSwr,m=p===void 0?!1:p,g=t.valuePropName,v=g===void 0?"value":g,b=At(t,F1t),y=d.useContext(Aj),S=d.useMemo(function(){return h&&b.request?z(z({},f),h||{}):f},[h,f,b.request]),w=Xl(function(){if(n!=null&&n.onChange){for(var x,_=arguments.length,P=new Array(_),O=0;O<_;O++)P[O]=arguments[O];n==null||(x=n.onChange)===null||x===void 0||x.call.apply(x,[n].concat(P));return}}),E=d.useMemo(function(){return z(z({autoFocus:o},n),{},{onChange:w})},[o,n,w]),C=d.useMemo(function(){if(r)return de.isValidElement(r)?de.cloneElement(r,z(z({},b),{},{onChange:function(){for(var _=arguments.length,P=new Array(_),O=0;O<_;O++)P[O]=arguments[O];if(n!=null&&n.onChange){var I;n==null||(I=n.onChange)===null||I===void 0||I.call.apply(I,[n].concat(P));return}c==null||c.apply(void 0,P)}},(r==null?void 0:r.props)||{})):N.jsx(N.Fragment,{children:r})},[r,n==null?void 0:n.onChange,c,b]);return C||N.jsx(j1t,z(z(z({text:n==null?void 0:n[v],render:i,renderFormItem:s,valueType:l||"text",cacheForSwr:m,fieldProps:E,valueEnum:Zg(u)},a),b),{},{mode:(a==null?void 0:a.mode)||y.mode||"edit",params:S}))},Tf=gj(d.memo(L1t,function(e,t){return Jh(t,e,["onChange","onBlur"])})),B1t=["options","fieldProps","proFieldProps","valueEnum"],z1t=de.forwardRef(function(e,t){var n=e.options,r=e.fieldProps,o=e.proFieldProps,i=e.valueEnum,a=At(e,B1t);return N.jsx(Tf,z({ref:t,valueType:"checkbox",valueEnum:Zg(i,void 0),fieldProps:z({options:n},r),lightProps:z({labelFormatter:function(){return N.jsx(Tf,z({ref:t,valueType:"checkbox",mode:"read",valueEnum:Zg(i,void 0),filedConfig:{customLightMode:!0},fieldProps:z({options:n},r),proFieldProps:o},a))}},a.lightProps),proFieldProps:o},a))}),H1t=de.forwardRef(function(e,t){var n=e.fieldProps,r=e.children;return N.jsx(od,z(z({ref:t},n),{},{children:r}))}),U1t=gj(H1t,{valuePropName:"checked"}),Dj=U1t;Dj.Group=z1t;var jj=de.createContext({}),W1t=["name","originDependencies","children","ignoreFormListField"],lde=function(t){var n=t.name,r=t.originDependencies,o=r===void 0?n:r,i=t.children,a=t.ignoreFormListField,s=At(t,W1t),l=d.useContext(Tce),c=d.useContext(jj),u=d.useMemo(function(){return n.map(function(f){var h,p=[f];return!a&&c.name!==void 0&&(h=c.listName)!==null&&h!==void 0&&h.length&&p.unshift(c.listName),p.flat(1)})},[c.listName,c.name,a,n==null?void 0:n.toString()]);return N.jsx(Vn.Item,z(z({},s),{},{noStyle:!0,shouldUpdate:function(h,p,m){if(typeof s.shouldUpdate=="boolean")return s.shouldUpdate;if(typeof s.shouldUpdate=="function"){var g;return(g=s.shouldUpdate)===null||g===void 0?void 0:g.call(s,h,p,m)}return u.some(function(v){return!Jh(Mo(h,v),Mo(p,v))})},children:function(h){for(var p={},m=0;m div".concat(t.antCls,"-space-item"),{maxWidth:"100%"}),"&-twoLine":Z(Z(Z(Z({display:"block",width:"100%"},"".concat(t.componentCls,"-title"),{width:"100%",margin:"8px 0"}),"".concat(t.componentCls,"-container"),{paddingInlineStart:16}),"".concat(t.antCls,"-space-item,").concat(t.antCls,"-form-item"),{width:"100%"}),"".concat(t.antCls,"-form-item"),{"&-control":{display:"flex",alignItems:"center",justifyContent:"flex-end","&-input":{alignItems:"center",justifyContent:"flex-end","&-content":{flex:"none"}}}})})};function Q1t(e){return Zr("ProFormGroup",function(t){var n=z(z({},t),{},{componentCls:".".concat(e)});return[X1t(n)]})}var ude=de.forwardRef(function(e,t){var n=de.useContext(Xv),r=n.groupProps,o=z(z({},r),e),i=o.children,a=o.collapsible,s=o.defaultCollapsed,l=o.style,c=o.labelLayout,u=o.title,f=u===void 0?e.label:u,h=o.tooltip,p=o.align,m=p===void 0?"start":p,g=o.direction,v=o.size,b=v===void 0?32:v,y=o.titleStyle,S=o.titleRender,w=o.spaceProps,E=o.extra,C=o.autoFocus,x=xn(function(){return s||!1},{value:e.collapsed,onChange:e.onCollapse}),_=$e(x,2),P=_[0],O=_[1],I=d.useContext(Mn.ConfigContext),M=I.getPrefixCls,T=mj(e),D=T.ColWrapper,A=T.RowWrapper,j=M("pro-form-group"),k=Q1t(j),F=k.wrapSSR,V=k.hashId,W=a&&N.jsx(nd,{style:{marginInlineEnd:8},rotate:P?void 0:90}),K=N.jsx(hZe,{label:W?N.jsxs("div",{children:[W,f]}):f,tooltip:h}),L=d.useCallback(function(X){var ne=X.children;return N.jsx(oo,z(z({},w),{},{className:xe("".concat(j,"-container ").concat(V),w==null?void 0:w.className),size:b,align:m,direction:g,style:z({rowGap:0},w==null?void 0:w.style),children:ne}))},[m,j,g,V,b,w]),Q=S?S(K,e):K,ee=d.useMemo(function(){var X=[],ne=de.Children.toArray(i).map(function(le,ce){var oe;return de.isValidElement(le)&&le!==null&&le!==void 0&&(oe=le.props)!==null&&oe!==void 0&&oe.hidden?(X.push(le),null):ce===0&&de.isValidElement(le)&&C?de.cloneElement(le,z(z({},le.props),{},{autoFocus:C})):le});return[N.jsx(A,{Wrapper:L,children:ne},"children"),X.length>0?N.jsx("div",{style:{display:"none"},children:X}):null]},[i,A,L,C]),re=$e(ee,2),ie=re[0],G=re[1];return F(N.jsx(D,{children:N.jsxs("div",{className:xe(j,V,Z({},"".concat(j,"-twoLine"),c==="twoLine")),style:l,ref:t,children:[G,(f||h||E)&&N.jsx("div",{className:"".concat(j,"-title ").concat(V).trim(),style:y,onClick:function(){O(!P)},children:E?N.jsxs("div",{style:{display:"flex",width:"100%",alignItems:"center",justifyContent:"space-between"},children:[Q,N.jsx("span",{onClick:function(ne){return ne.stopPropagation()},children:E})]}):Q}),N.jsx("div",{style:{display:a&&P?"none":void 0},children:ie})]})}))});ude.displayName="ProForm-Group";var J1t=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],Z1t=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],eSt=function(t,n){var r=t.fieldProps,o=t.children,i=t.params,a=t.proFieldProps,s=t.mode,l=t.valueEnum,c=t.request,u=t.showSearch,f=t.options,h=At(t,J1t),p=d.useContext(Xv);return N.jsx(Tf,z(z({valueEnum:Zg(l),request:c,params:i,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:z({options:f,mode:s,showSearch:u,getPopupContainer:p.getPopupContainer},r),ref:n,proFieldProps:a},h),{},{children:o}))},tSt=de.forwardRef(function(e,t){var n=e.fieldProps,r=e.children,o=e.params,i=e.proFieldProps,a=e.mode,s=e.valueEnum,l=e.request,c=e.options,u=At(e,Z1t),f=z({options:c,mode:a||"multiple",labelInValue:!0,showSearch:!0,suffixIcon:null,autoClearSearchValue:!0,optionLabelProp:"label"},n),h=d.useContext(Xv);return N.jsx(Tf,z(z({valueEnum:Zg(s),request:l,params:o,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:z({getPopupContainer:h.getPopupContainer},f),ref:t,proFieldProps:i},u),{},{children:r}))}),nSt=de.forwardRef(eSt),rSt=tSt,Fj=nSt;Fj.SearchSelect=rSt;Fj.displayName="ProFormComponent";var oSt=function(t){var n=No(),r=Vn.useFormInstance();if(t.render===!1)return null;var o=t.onSubmit,i=t.render,a=t.onReset,s=t.searchConfig,l=s===void 0?{}:s,c=t.submitButtonProps,u=t.resetButtonProps,f=Qc.useToken(),h=f.token,p=function(){r.submit(),o==null||o()},m=function(){r.resetFields(),a==null||a()},g=l.submitText,v=g===void 0?n.getMessage("tableForm.submit","提交"):g,b=l.resetText,y=b===void 0?n.getMessage("tableForm.reset","重置"):b,S=[];u!==!1&&S.push(d.createElement(Hn,z(z({},Yn(u??{},["preventDefault"])),{},{key:"rest",onClick:function(C){var x;u!=null&&u.preventDefault||m(),u==null||(x=u.onClick)===null||x===void 0||x.call(u,C)}}),y)),c!==!1&&S.push(d.createElement(Hn,z(z({type:"primary"},Yn(c||{},["preventDefault"])),{},{key:"submit",onClick:function(C){var x;c!=null&&c.preventDefault||p(),c==null||(x=c.onClick)===null||x===void 0||x.call(c,C)}}),v));var w=i?i(z(z({},t),{},{form:r,submit:p,reset:m}),S):S;return w?Array.isArray(w)?(w==null?void 0:w.length)<1?null:(w==null?void 0:w.length)===1?w[0]:N.jsx("div",{style:{display:"flex",gap:h.marginXS,alignItems:"center"},children:w}):w:null},iSt=["fieldProps","proFieldProps"],aSt=["fieldProps","proFieldProps"],kE="text",sSt=function(t){var n=t.fieldProps,r=t.proFieldProps,o=At(t,iSt);return N.jsx(Tf,z({valueType:kE,fieldProps:n,filedConfig:{valueType:kE},proFieldProps:r},o))},lSt=function(t){var n=xn(t.open||!1,{value:t.open,onChange:t.onOpenChange}),r=$e(n,2),o=r[0],i=r[1];return N.jsx(Vn.Item,{shouldUpdate:!0,noStyle:!0,children:function(s){var l,c=s.getFieldValue(t.name||[]);return N.jsx(fl,z(z({getPopupContainer:function(f){return f&&f.parentNode?f.parentNode:f},onOpenChange:function(f){return i(f)},content:N.jsxs("div",{style:{padding:"4px 0"},children:[(l=t.statusRender)===null||l===void 0?void 0:l.call(t,c),t.strengthText?N.jsx("div",{style:{marginTop:10},children:N.jsx("span",{children:t.strengthText})}):null]}),overlayStyle:{width:240},placement:"rightTop"},t.popoverProps),{},{open:o,children:t.children}))}})},cSt=function(t){var n=t.fieldProps,r=t.proFieldProps,o=At(t,aSt),i=d.useState(!1),a=$e(i,2),s=a[0],l=a[1];return n!=null&&n.statusRender&&o.name?N.jsx(lSt,{name:o.name,statusRender:n==null?void 0:n.statusRender,popoverProps:n==null?void 0:n.popoverProps,strengthText:n==null?void 0:n.strengthText,open:s,onOpenChange:l,children:N.jsx("div",{children:N.jsx(Tf,z({valueType:"password",fieldProps:z(z({},Yn(n,["statusRender","popoverProps","strengthText"])),{},{onBlur:function(u){var f;n==null||(f=n.onBlur)===null||f===void 0||f.call(n,u),l(!1)},onClick:function(u){var f;n==null||(f=n.onClick)===null||f===void 0||f.call(n,u),l(!0)}}),proFieldProps:r,filedConfig:{valueType:kE}},o))})}):N.jsx(Tf,z({valueType:"password",fieldProps:n,proFieldProps:r,filedConfig:{valueType:kE}},o))},Lr=sSt;Lr.Password=cSt;Lr.displayName="ProFormComponent";var uSt=["fieldProps","proFieldProps"],dSt=function(t,n){var r=t.fieldProps,o=t.proFieldProps,i=At(t,uSt);return N.jsx(Tf,z({ref:n,valueType:"textarea",fieldProps:r,proFieldProps:o},i))};const Lj=de.forwardRef(dSt);var fSt=["children","contentRender","submitter","fieldProps","formItemProps","groupProps","transformKey","formRef","onInit","form","loading","formComponentType","extraUrlParams","syncToUrl","onUrlSearchChange","onReset","omitNil","isKeyPressSubmit","autoFocusFirstInput","grid","rowProps","colProps"],hSt=["extraUrlParams","syncToUrl","isKeyPressSubmit","syncToUrlAsImportant","syncToInitialValues","children","contentRender","submitter","fieldProps","proFieldProps","formItemProps","groupProps","dateFormatter","formRef","onInit","form","formComponentType","onReset","grid","rowProps","colProps","omitNil","request","params","initialValues","formKey","readonly","onLoadingChange","loading"],mx=function(t,n,r){return t===!0?n:Zg(t,n,r)},sq=function(t){return!t||Array.isArray(t)?t:[t]};function pSt(e){var t,n=e.children,r=e.contentRender,o=e.submitter;e.fieldProps,e.formItemProps,e.groupProps;var i=e.transformKey,a=e.formRef,s=e.onInit,l=e.form,c=e.loading;e.formComponentType;var u=e.extraUrlParams,f=u===void 0?{}:u,h=e.syncToUrl,p=e.onUrlSearchChange,m=e.onReset,g=e.omitNil,v=g===void 0?!0:g;e.isKeyPressSubmit;var b=e.autoFocusFirstInput,y=b===void 0?!0:b,S=e.grid,w=e.rowProps,E=e.colProps,C=At(e,fSt),x=Vn.useFormInstance(),_=(Mn==null||(t=Mn.useConfig)===null||t===void 0?void 0:t.call(Mn))||{componentSize:"middle"},P=_.componentSize,O=d.useRef(l||x),I=mj({grid:S,rowProps:w}),M=I.RowWrapper,T=Xl(function(){return x}),D=d.useMemo(function(){return{getFieldsFormatValue:function(K){var L;return i((L=T())===null||L===void 0?void 0:L.getFieldsValue(K),v)},getFieldFormatValue:function(){var K,L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Q=sq(L);if(!Q)throw new Error("nameList is require");var ee=(K=T())===null||K===void 0?void 0:K.getFieldValue(Q),re=Q?Yo({},Q,ee):ee,ie=Ze(Q);return ie.shift(),Mo(i(re,v,ie),Q)},getFieldFormatValueObject:function(K){var L,Q=sq(K),ee=(L=T())===null||L===void 0?void 0:L.getFieldValue(Q),re=Q?Yo({},Q,ee):ee;return i(re,v,Q)},validateFieldsReturnFormatValue:function(){var W=Bo(nr().mark(function L(Q){var ee,re,ie;return nr().wrap(function(X){for(;;)switch(X.prev=X.next){case 0:if(!(!Array.isArray(Q)&&Q)){X.next=2;break}throw new Error("nameList must be array");case 2:return X.next=4,(ee=T())===null||ee===void 0?void 0:ee.validateFields(Q);case 4:return re=X.sent,ie=i(re,v),X.abrupt("return",ie||{});case 7:case"end":return X.stop()}},L)}));function K(L){return W.apply(this,arguments)}return K}()}},[v,i]),A=d.useMemo(function(){return de.Children.toArray(n).map(function(W,K){return K===0&&de.isValidElement(W)&&y?de.cloneElement(W,z(z({},W.props),{},{autoFocus:y})):W})},[y,n]),j=d.useMemo(function(){return typeof o=="boolean"||!o?{}:o},[o]),k=d.useMemo(function(){if(o!==!1)return N.jsx(oSt,z(z({},j),{},{onReset:function(){var K,L,Q=i((K=O.current)===null||K===void 0?void 0:K.getFieldsValue(),v);if(j==null||(L=j.onReset)===null||L===void 0||L.call(j,Q),m==null||m(Q),h){var ee,re=Object.keys(i((ee=O.current)===null||ee===void 0?void 0:ee.getFieldsValue(),!1)).reduce(function(ie,G){return z(z({},ie),{},Z({},G,Q[G]||void 0))},f);p(mx(h,re||{},"set"))}},submitButtonProps:z({loading:c},j.submitButtonProps)}),"submitter")},[o,j,c,i,v,m,h,f,p]),F=d.useMemo(function(){var W=S?N.jsx(M,{children:A}):A;return r?r(W,k,O.current):W},[S,M,A,r,k]),V=PZe(e.initialValues);return d.useEffect(function(){if(!(h||!e.initialValues||!V||C.request)){var W=Jh(e.initialValues,V);b2(W,"initialValues 只在 form 初始化时生效,如果你需要异步加载推荐使用 request,或者 initialValues ?
: null "),b2(W,"The initialValues only take effect when the form is initialized, if you need to load asynchronously recommended request, or the initialValues ? : null ")}},[e.initialValues]),d.useImperativeHandle(a,function(){return z(z({},O.current),D)},[D,O.current]),d.useEffect(function(){var W,K,L=i((W=O.current)===null||W===void 0||(K=W.getFieldsValue)===null||K===void 0?void 0:K.call(W,!0),v);s==null||s(L,z(z({},O.current),D))},[]),N.jsx(Tce.Provider,{value:z(z({},D),{},{formRef:O}),children:N.jsx(Mn,{componentSize:C.size||P,children:N.jsxs(eue.Provider,{value:{grid:S,colProps:E},children:[C.component!==!1&&N.jsx("input",{type:"text",style:{display:"none"}}),F]})})})}var lq=0;function mSt(e){var t=e.extraUrlParams,n=t===void 0?{}:t,r=e.syncToUrl,o=e.isKeyPressSubmit,i=e.syncToUrlAsImportant,a=i===void 0?!1:i,s=e.syncToInitialValues,l=s===void 0?!0:s;e.children,e.contentRender,e.submitter;var c=e.fieldProps,u=e.proFieldProps,f=e.formItemProps,h=e.groupProps,p=e.dateFormatter,m=p===void 0?"string":p,g=e.formRef;e.onInit;var v=e.form,b=e.formComponentType;e.onReset,e.grid,e.rowProps,e.colProps;var y=e.omitNil,S=y===void 0?!0:y,w=e.request,E=e.params,C=e.initialValues,x=e.formKey,_=x===void 0?lq:x;e.readonly;var P=e.onLoadingChange,O=e.loading,I=At(e,hSt),M=d.useRef({}),T=xn(!1,{onChange:P,value:O}),D=$e(T,2),A=D[0],j=D[1],k=Snt({},{disabled:!r}),F=$e(k,2),V=F[0],W=F[1],K=d.useRef(yE());d.useEffect(function(){lq+=0},[]);var L=$Ze({request:w,params:E,proFieldKey:_}),Q=$e(L,1),ee=Q[0],re=d.useContext(Mn.ConfigContext),ie=re.getPrefixCls,G=ie("pro-form"),X=Zr("ProForm",function(ye){return Z({},".".concat(G),Z({},"> div:not(".concat(ye.proComponentsCls,"-form-light-filter)"),{".pro-field":{maxWidth:"100%","@media screen and (max-width: 575px)":{maxWidth:"calc(93vw - 48px)"},"&-xs":{width:104},"&-s":{width:216},"&-sm":{width:216},"&-m":{width:328},"&-md":{width:328},"&-l":{width:440},"&-lg":{width:440},"&-xl":{width:552}}}))}),ne=X.wrapSSR,le=X.hashId,ce=d.useState(function(){return r?mx(r,V,"get"):{}}),oe=$e(ce,2),se=oe[0],fe=oe[1],te=d.useRef({}),he=d.useRef({}),pe=Xl(function(ye,ve,be){return gnt(vZe(ye,m,he.current,ve,be),te.current,ve)});d.useEffect(function(){l||fe({})},[l]);var Oe=Xl(function(){return z(z({},V),n)});d.useEffect(function(){r&&W(mx(r,Oe(),"set"))},[n,Oe,r]);var Me=d.useMemo(function(){if(!(typeof window>"u")&&b&&["DrawerForm"].includes(b))return function(ye){return ye.parentNode||document.body}},[b]),Se=Xl(Bo(nr().mark(function ye(){var ve,be,Pe,Ne,U,H,q;return nr().wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:if(I.onFinish){Ce.next=2;break}return Ce.abrupt("return");case 2:if(!A){Ce.next=4;break}return Ce.abrupt("return");case 4:return Ce.prev=4,Pe=M==null||(ve=M.current)===null||ve===void 0||(be=ve.getFieldsFormatValue)===null||be===void 0?void 0:be.call(ve),Ne=I.onFinish(Pe),Ne instanceof Promise&&j(!0),Ce.next=10,Ne;case 10:r&&(q=Object.keys(M==null||(U=M.current)===null||U===void 0||(H=U.getFieldsFormatValue)===null||H===void 0?void 0:H.call(U,void 0,!1)).reduce(function(ue,Le){var He;return z(z({},ue),{},Z({},Le,(He=Pe[Le])!==null&&He!==void 0?He:void 0))},n),Object.keys(V).forEach(function(ue){q[ue]!==!1&&q[ue]!==0&&!q[ue]&&(q[ue]=void 0)}),W(mx(r,q,"set"))),j(!1),Ce.next=18;break;case 14:Ce.prev=14,Ce.t0=Ce.catch(4),console.log(Ce.t0),j(!1);case 18:case"end":return Ce.stop()}},ye,null,[[4,14]])})));return d.useImperativeHandle(g,function(){return M.current},[!ee]),!ee&&e.request?N.jsx("div",{style:{paddingTop:50,paddingBottom:50,textAlign:"center"},children:N.jsx(iu,{})}):ne(N.jsx(Aj.Provider,{value:{mode:e.readonly?"read":"edit"},children:N.jsx(MP,{needDeps:!0,children:N.jsx(Xv.Provider,{value:{formRef:M,fieldProps:c,proFieldProps:u,formItemProps:f,groupProps:h,formComponentType:b,getPopupContainer:Me,formKey:K.current,setFieldValueType:function(ve,be){var Pe=be.valueType,Ne=Pe===void 0?"text":Pe,U=be.dateFormat,H=be.transform;Array.isArray(ve)&&(te.current=Yo(te.current,ve,H),he.current=Yo(he.current,ve,{valueType:Ne,dateFormat:U}))}},children:N.jsx(jj.Provider,{value:{},children:N.jsx(Vn,z(z({onKeyPress:function(ve){if(o&&ve.key==="Enter"){var be;(be=M.current)===null||be===void 0||be.submit()}},autoComplete:"off",form:v},Yn(I,["ref","labelWidth","autoFocusFirstInput"])),{},{ref:function(ve){M.current&&(M.current.nativeElement=ve==null?void 0:ve.nativeElement)},initialValues:a?z(z(z({},C),ee),se):z(z(z({},se),C),ee),onValuesChange:function(ve,be){var Pe;I==null||(Pe=I.onValuesChange)===null||Pe===void 0||Pe.call(I,pe(ve,!!S),pe(be,!!S))},className:xe(e.className,G,le),onFinish:Se,children:N.jsx(pSt,z(z({transformKey:pe,autoComplete:"off",loading:A,onUrlSearchChange:W},e),{},{formRef:M,initialValues:z(z({},C),ee)}))}))})})})}))}var gSt=function(t){return Z(Z({},"".concat(t.componentCls,"-collapse-label"),{paddingInline:1,paddingBlock:1}),"".concat(t.componentCls,"-container"),Z({},"".concat(t.antCls,"-form-item"),{marginBlockEnd:0}))};function vSt(e){return Zr("LightWrapper",function(t){var n=z(z({},t),{},{componentCls:".".concat(e)});return[gSt(n)]})}var ySt=["label","size","disabled","onChange","className","style","children","valuePropName","placeholder","labelFormatter","bordered","footerRender","allowClear","otherFieldProps","valueType","placement"],bSt=function(t){var n=t.label,r=t.size,o=t.disabled,i=t.onChange,a=t.className,s=t.style,l=t.children,c=t.valuePropName,u=t.placeholder,f=t.labelFormatter,h=t.bordered,p=t.footerRender,m=t.allowClear,g=t.otherFieldProps,v=t.valueType,b=t.placement,y=At(t,ySt),S=d.useContext(Mn.ConfigContext),w=S.getPrefixCls,E=w("pro-field-light-wrapper"),C=vSt(E),x=C.wrapSSR,_=C.hashId,P=d.useState(t[c]),O=$e(P,2),I=O[0],M=O[1],T=xn(!1),D=$e(T,2),A=D[0],j=D[1],k=function(){for(var K,L=arguments.length,Q=new Array(L),ee=0;een.length)&&(r=n.length);for(var o=0,i=Array(r);o0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):RSt}function XP(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function ISt(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Uj(e){return Array.from((NE.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function Wj(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!(0,MSt.default)())return null;var n=t.csp,r=t.prepend,o=t.priority,i=o===void 0?0:o,a=ISt(r),s=a==="prependQueue",l=document.createElement("style");l.setAttribute(dq,a),s&&i&&l.setAttribute(fq,"".concat(i)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;var c=XP(t),u=c.firstChild;if(r){if(s){var f=(t.styles||Uj(c)).filter(function(h){if(!["prepend","prependQueue"].includes(h.getAttribute(dq)))return!1;var p=Number(h.getAttribute(fq)||0);return i>=p});if(f.length)return c.insertBefore(l,f[f.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function Ode(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=XP(t);return(t.styles||Uj(n)).find(function(r){return r.getAttribute(Pde(t))===e})}function kSt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Ode(e,t);if(n){var r=XP(t);r.removeChild(n)}}function NSt(e,t){var n=NE.get(e);if(!n||!(0,TSt.default)(document,n)){var r=Wj("",t),o=r.parentNode;NE.set(e,o),e.removeChild(r)}}function ASt(){NE.clear()}function DSt(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=XP(n),o=Uj(r),i=(0,uq.default)((0,uq.default)({},n),{},{styles:o});NSt(r,i);var a=Ode(t,i);if(a){var s,l;if((s=i.csp)!==null&&s!==void 0&&s.nonce&&a.nonce!==((l=i.csp)===null||l===void 0?void 0:l.nonce)){var c;a.nonce=(c=i.csp)===null||c===void 0?void 0:c.nonce}return a.innerHTML!==e&&(a.innerHTML=e),a}var u=Wj(e,i);return u.setAttribute(Pde(i),t),u}var QP={};Object.defineProperty(QP,"__esModule",{value:!0});QP.getShadowRoot=jSt;QP.inShadow=Tde;function Mde(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function Tde(e){return Mde(e)instanceof ShadowRoot}function jSt(e){return Tde(e)?Mde(e):null}var Xa={};Object.defineProperty(Xa,"__esModule",{value:!0});Xa.call=Vj;Xa.default=void 0;Xa.note=Ide;Xa.noteOnce=Nde;Xa.preMessage=void 0;Xa.resetWarned=kde;Xa.warning=Rde;Xa.warningOnce=MS;var v8={},FSt=Xa.preMessage=function(t){};function Rde(e,t){}function Ide(e,t){}function kde(){v8={}}function Vj(e,t,n){!t&&!v8[n]&&(e(!1,n),v8[n]=!0)}function MS(e,t){Vj(Rde,e,t)}function Nde(e,t){Vj(Ide,e,t)}MS.preMessage=FSt;MS.resetWarned=kde;MS.noteOnce=Nde;Xa.default=MS;var LSt=ti.default,JP=ir.default;Object.defineProperty(aa,"__esModule",{value:!0});aa.generate=b8;aa.getSecondaryColor=GSt;aa.iconStyles=void 0;aa.isIconDefinition=qSt;aa.normalizeAttrs=y8;aa.normalizeTwoToneColors=YSt;aa.useInsertStyles=aa.svgBaseProps=void 0;aa.warning=KSt;var qR=JP(Tp),hq=JP(Mp),BSt=PS,zSt=Yp,HSt=QP,USt=JP(Xa),AE=LSt(d),WSt=JP(a0);function VSt(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function KSt(e,t){(0,USt.default)(e,"[@ant-design/icons] ".concat(t))}function qSt(e){return(0,hq.default)(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&((0,hq.default)(e.icon)==="object"||typeof e.icon=="function")}function y8(){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[VSt(n)]=r}return t},{})}function b8(e,t,n){return n?AE.default.createElement(e.tag,(0,qR.default)((0,qR.default)({key:t},y8(e.attrs)),n),(e.children||[]).map(function(r,o){return b8(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):AE.default.createElement(e.tag,(0,qR.default)({key:t},y8(e.attrs)),(e.children||[]).map(function(r,o){return b8(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function GSt(e){return(0,BSt.generate)(e)[0]}function YSt(e){return e?Array.isArray(e)?e:[e]:[]}aa.svgBaseProps={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"};var XSt=aa.iconStyles=` .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); } } `;aa.useInsertStyles=function(t){var n=(0,AE.useContext)(WSt.default),r=n.csp,o=n.prefixCls,i=n.layer,a=XSt;o&&(a=a.replace(/anticon/g,o)),i&&(a="@layer ".concat(i,` { `).concat(a,` }`)),(0,AE.useEffect)(function(){var s=t.current,l=(0,HSt.getShadowRoot)(s);(0,zSt.updateCSS)(a,"@ant-design-icons",{prepend:!i,csp:r,attachTo:l})},[])};var Ade=ir.default,QSt=ti.default;Object.defineProperty(OS,"__esModule",{value:!0});OS.default=void 0;var JSt=Ade($de),Cy=Ade(Tp),ZSt=QSt(d),hh=aa,eCt=["icon","className","onClick","style","primaryColor","secondaryColor"],Yy={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function tCt(e){var t=e.primaryColor,n=e.secondaryColor;Yy.primaryColor=t,Yy.secondaryColor=n||(0,hh.getSecondaryColor)(t),Yy.calculated=!!n}function nCt(){return(0,Cy.default)({},Yy)}var ZP=function(t){var n=t.icon,r=t.className,o=t.onClick,i=t.style,a=t.primaryColor,s=t.secondaryColor,l=(0,JSt.default)(t,eCt),c=ZSt.useRef(),u=Yy;if(a&&(u={primaryColor:a,secondaryColor:s||(0,hh.getSecondaryColor)(a)}),(0,hh.useInsertStyles)(c),(0,hh.warning)((0,hh.isIconDefinition)(n),"icon should be icon definiton, but got ".concat(n)),!(0,hh.isIconDefinition)(n))return null;var f=n;return f&&typeof f.icon=="function"&&(f=(0,Cy.default)((0,Cy.default)({},f),{},{icon:f.icon(u.primaryColor,u.secondaryColor)})),(0,hh.generate)(f.icon,"svg-".concat(f.name),(0,Cy.default)((0,Cy.default)({className:r,onClick:o,style:i,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};ZP.displayName="IconReact";ZP.getTwoToneColors=nCt;ZP.setTwoToneColors=tCt;OS.default=ZP;var eO={},Dde=ir.default;Object.defineProperty(eO,"__esModule",{value:!0});eO.getTwoToneColor=aCt;eO.setTwoToneColor=iCt;var rCt=Dde(xde),jde=Dde(OS),oCt=aa;function iCt(e){var t=(0,oCt.normalizeTwoToneColors)(e),n=(0,rCt.default)(t,2),r=n[0],o=n[1];return jde.default.setTwoToneColors({primaryColor:r,secondaryColor:o})}function aCt(){var e=jde.default.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var Xp=ir.default,sCt=ti.default;Object.defineProperty(i0,"__esModule",{value:!0});i0.default=void 0;var lCt=Xp(GP),cCt=Xp(xde),pq=Xp(IQ),uCt=Xp($de),uw=sCt(d),dCt=Xp(X_),fCt=PS,hCt=Xp(a0),pCt=Xp(OS),Kj=eO,mCt=aa,gCt=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];(0,Kj.setTwoToneColor)(fCt.blue.primary);var tO=uw.forwardRef(function(e,t){var n=e.className,r=e.icon,o=e.spin,i=e.rotate,a=e.tabIndex,s=e.onClick,l=e.twoToneColor,c=(0,uCt.default)(e,gCt),u=uw.useContext(hCt.default),f=u.prefixCls,h=f===void 0?"anticon":f,p=u.rootClassName,m=(0,dCt.default)(p,h,(0,pq.default)((0,pq.default)({},"".concat(h,"-").concat(r.name),!!r.name),"".concat(h,"-spin"),!!o||r.name==="loading"),n),g=a;g===void 0&&s&&(g=-1);var v=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,b=(0,mCt.normalizeTwoToneColors)(l),y=(0,cCt.default)(b,2),S=y[0],w=y[1];return uw.createElement("span",(0,lCt.default)({role:"img","aria-label":r.name},c,{ref:t,tabIndex:g,onClick:s,className:m}),uw.createElement(pCt.default,{icon:r,primaryColor:S,secondaryColor:w,style:v}))});tO.displayName="AntdIcon";tO.getTwoToneColor=Kj.getTwoToneColor;tO.setTwoToneColor=Kj.setTwoToneColor;i0.default=tO;var vCt=["isLoading","pastDelay","timedOut","error","retry"],yCt=function(t){t.isLoading,t.pastDelay,t.timedOut,t.error,t.retry;var n=At(t,vCt);return N.jsx("div",{style:{paddingBlockStart:100,textAlign:"center"},children:N.jsx(iu,z({size:"large"},n))})},bCt=function(t){return Z({},t.componentCls,{marginBlock:0,marginBlockStart:48,marginBlockEnd:24,marginInline:0,paddingBlock:0,paddingInline:16,textAlign:"center","&-list":{marginBlockEnd:8,color:t.colorTextSecondary,"&-link":{color:t.colorTextSecondary,textDecoration:t.linkDecoration},"*:not(:last-child)":{marginInlineEnd:8},"&:hover":{color:t.colorPrimary}},"&-copyright":{fontSize:"14px",color:t.colorText}})};function SCt(e){return Zr("ProLayoutFooter",function(t){var n=z(z({},t),{},{componentCls:".".concat(e)});return[bCt(n)]})}var CCt=function(t){var n=t.className,r=t.prefixCls,o=t.links,i=t.copyright,a=t.style,s=d.useContext(Mn.ConfigContext),l=s.getPrefixCls(r||"pro-global-footer"),c=SCt(l),u=c.wrapSSR,f=c.hashId;return(o==null||o===!1||Array.isArray(o)&&o.length===0)&&(i==null||i===!1)?null:u(N.jsxs("div",{className:xe(l,f,n),style:a,children:[o&&N.jsx("div",{className:"".concat(l,"-list ").concat(f).trim(),children:o.map(function(h){return N.jsx("a",{className:"".concat(l,"-list-link ").concat(f).trim(),title:h.key,target:h.blankTarget?"_blank":"_self",href:h.href,rel:"noreferrer",children:h.title},h.key)})}),i&&N.jsx("div",{className:"".concat(l,"-copyright ").concat(f).trim(),children:i})]}))},wCt=ei.Footer,xCt=function(t){var n=t.links,r=t.copyright,o=t.style,i=t.className,a=t.prefixCls;return N.jsx(wCt,{className:i,style:z({padding:0},o),children:N.jsx(CCt,{links:n,prefixCls:a,copyright:r===!1?null:N.jsxs(d.Fragment,{children:[N.jsx(SHe,{})," ",r]})})})},mq=function e(t){return(t||[]).reduce(function(n,r){if(r.key&&n.push(r.key),r.children||r.routes){var o=n.concat(e(r.children||r.routes)||[]);return o}return n},[])};function nO(e){return e.map(function(t){var n=t.children||[],r=z({},t);if(!r.children&&r.routes&&(r.children=r.routes),!r.name||r.hideInMenu)return null;if(r&&r!==null&&r!==void 0&&r.children){if(!r.hideChildrenInMenu&&n.some(function(o){return o&&o.name&&!o.hideInMenu}))return z(z({},t),{},{children:nO(n)});delete r.children}return delete r.routes,r}).filter(function(t){return t})}var ECt=function(){return N.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor","aria-hidden":"true",children:N.jsx("path",{d:"M0 0h3v3H0V0zm4.5 0h3v3h-3V0zM9 0h3v3H9V0zM0 4.5h3v3H0v-3zm4.503 0h3v3h-3v-3zM9 4.5h3v3H9v-3zM0 9h3v3H0V9zm4.503 0h3v3h-3V9zM9 9h3v3H9V9z"})})},_Ct=function e(t){var n=t.appList,r=t.baseClassName,o=t.hashId,i=t.itemClick;return N.jsx("div",{className:"".concat(r,"-content ").concat(o).trim(),children:N.jsx("ul",{className:"".concat(r,"-content-list ").concat(o).trim(),children:n==null?void 0:n.map(function(a,s){var l;return a!=null&&(l=a.children)!==null&&l!==void 0&&l.length?N.jsxs("div",{className:"".concat(r,"-content-list-item-group ").concat(o).trim(),children:[N.jsx("div",{className:"".concat(r,"-content-list-item-group-title ").concat(o).trim(),children:a.title}),N.jsx(e,{hashId:o,itemClick:i,appList:a==null?void 0:a.children,baseClassName:r})]},s):N.jsx("li",{className:"".concat(r,"-content-list-item ").concat(o).trim(),onClick:function(u){u.stopPropagation(),i==null||i(a)},children:N.jsxs("a",{href:i?void 0:a.url,target:a.target,rel:"noreferrer",children:[qj(a.icon),N.jsxs("div",{children:[N.jsx("div",{children:a.title}),a.desc?N.jsx("span",{children:a.desc}):null]})]})},s)})})})},$Ct=function(t,n){if(t&&typeof t=="string"&&uj(t))return N.jsx("img",{src:t,alt:"logo"});if(typeof t=="function")return t();if(t&&typeof t=="string")return N.jsx("div",{id:"avatarLogo",children:t});if(!t&&n&&typeof n=="string"){var r=n.substring(0,1);return N.jsx("div",{id:"avatarLogo",children:r})}return t},PCt=function e(t){var n=t.appList,r=t.baseClassName,o=t.hashId,i=t.itemClick;return N.jsx("div",{className:"".concat(r,"-content ").concat(o).trim(),children:N.jsx("ul",{className:"".concat(r,"-content-list ").concat(o).trim(),children:n==null?void 0:n.map(function(a,s){var l;return a!=null&&(l=a.children)!==null&&l!==void 0&&l.length?N.jsxs("div",{className:"".concat(r,"-content-list-item-group ").concat(o).trim(),children:[N.jsx("div",{className:"".concat(r,"-content-list-item-group-title ").concat(o).trim(),children:a.title}),N.jsx(e,{hashId:o,itemClick:i,appList:a==null?void 0:a.children,baseClassName:r})]},s):N.jsx("li",{className:"".concat(r,"-content-list-item ").concat(o).trim(),onClick:function(u){u.stopPropagation(),i==null||i(a)},children:N.jsxs("a",{href:i?"javascript:;":a.url,target:a.target,rel:"noreferrer",children:[$Ct(a.icon,a.title),N.jsx("div",{children:N.jsx("div",{children:a.title})})]})},s)})})})},OCt=function(t){return{"&-content":{maxHeight:"calc(100vh - 48px)",overflow:"auto","&-list":{boxSizing:"content-box",maxWidth:656,marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0,listStyle:"none","&-item":{position:"relative",display:"inline-block",width:328,height:72,paddingInline:16,paddingBlock:16,verticalAlign:"top",listStyleType:"none",transition:"transform 0.2s cubic-bezier(0.333, 0, 0, 1)",borderRadius:t.borderRadius,"&-group":{marginBottom:16,"&-title":{margin:"16px 0 8px 12px",fontWeight:600,color:"rgba(0, 0, 0, 0.88)",fontSize:16,opacity:.85,lineHeight:1.5,"&:first-child":{marginTop:12}}},"&:hover":{backgroundColor:t.colorBgTextHover},"* div":AR==null?void 0:AR(t),a:{display:"flex",height:"100%",fontSize:12,textDecoration:"none","& > img":{width:40,height:40},"& > div":{marginInlineStart:14,color:t.colorTextHeading,fontSize:14,lineHeight:"22px",whiteSpace:"nowrap",textOverflow:"ellipsis"},"& > div > span":{color:t.colorTextSecondary,fontSize:12,lineHeight:"20px"}}}}}}},MCt=function(t){return{"&-content":{maxHeight:"calc(100vh - 48px)",overflow:"auto","&-list":{boxSizing:"border-box",maxWidth:376,marginBlock:0,marginInline:0,paddingBlock:0,paddingInline:0,listStyle:"none","&-item":{position:"relative",display:"inline-block",width:104,height:104,marginBlock:8,marginInline:8,paddingInline:24,paddingBlock:24,verticalAlign:"top",listStyleType:"none",transition:"transform 0.2s cubic-bezier(0.333, 0, 0, 1)",borderRadius:t.borderRadius,"&-group":{marginBottom:16,"&-title":{margin:"16px 0 8px 12px",fontWeight:600,color:"rgba(0, 0, 0, 0.88)",fontSize:16,opacity:.85,lineHeight:1.5,"&:first-child":{marginTop:12}}},"&:hover":{backgroundColor:t.colorBgTextHover},a:{display:"flex",flexDirection:"column",alignItems:"center",height:"100%",fontSize:12,textDecoration:"none","& > #avatarLogo":{width:40,height:40,margin:"0 auto",color:t.colorPrimary,fontSize:22,lineHeight:"40px",textAlign:"center",backgroundImage:"linear-gradient(180deg, #E8F0FB 0%, #F6F8FC 100%)",borderRadius:t.borderRadius},"& > img":{width:40,height:40},"& > div":{marginBlockStart:5,marginInlineStart:0,color:t.colorTextHeading,fontSize:14,lineHeight:"22px",whiteSpace:"nowrap",textOverflow:"ellipsis"},"& > div > span":{color:t.colorTextSecondary,fontSize:12,lineHeight:"20px"}}}}}}},TCt=function(t){var n,r,o,i,a;return Z({},t.componentCls,{"&-icon":{display:"inline-flex",alignItems:"center",justifyContent:"center",paddingInline:4,paddingBlock:0,fontSize:14,lineHeight:"14px",height:28,width:28,cursor:"pointer",color:(n=t.layout)===null||n===void 0?void 0:n.colorTextAppListIcon,borderRadius:t.borderRadius,"&:hover":{color:(r=t.layout)===null||r===void 0?void 0:r.colorTextAppListIconHover,backgroundColor:(o=t.layout)===null||o===void 0?void 0:o.colorBgAppListIconHover},"&-active":{color:(i=t.layout)===null||i===void 0?void 0:i.colorTextAppListIconHover,backgroundColor:(a=t.layout)===null||a===void 0?void 0:a.colorBgAppListIconHover}},"&-item-title":{marginInlineStart:"16px",marginInlineEnd:"8px",marginBlockStart:0,marginBlockEnd:"12px",fontWeight:600,color:"rgba(0, 0, 0, 0.88)",fontSize:16,opacity:.85,lineHeight:1.5,"&:first-child":{marginBlockStart:12}},"&-popover":Z({},"".concat(t.antCls,"-popover-arrow"),{display:"none"}),"&-simple":MCt(t),"&-default":OCt(t)})};function RCt(e){return Zr("AppsLogoComponents",function(t){var n=z(z({},t),{},{componentCls:".".concat(e)});return[TCt(n)]})}var qj=function(t){return typeof t=="string"?N.jsx("img",{width:"auto",height:22,src:t,alt:"logo"}):typeof t=="function"?t():t},Gj=function(t){var n,r=t.appList,o=t.appListRender,i=t.prefixCls,a=i===void 0?"ant-pro":i,s=t.onItemClick,l=de.useRef(null),c=de.useRef(null),u="".concat(a,"-layout-apps"),f=RCt(u),h=f.wrapSSR,p=f.hashId,m=d.useState(!1),g=$e(m,2),v=g[0],b=g[1],y=function(x){s==null||s(x,c)},S=d.useMemo(function(){var C=r==null?void 0:r.some(function(x){return!(x!=null&&x.desc)});return C?N.jsx(PCt,{hashId:p,appList:r,itemClick:s?y:void 0,baseClassName:"".concat(u,"-simple")}):N.jsx(_Ct,{hashId:p,appList:r,itemClick:s?y:void 0,baseClassName:"".concat(u,"-default")})},[r,u,p]);if(!(t!=null&&(n=t.appList)!==null&&n!==void 0&&n.length))return null;var w=o?o(t==null?void 0:t.appList,S):S,E=TP(void 0,function(C){return b(C)});return h(N.jsxs(N.Fragment,{children:[N.jsx("div",{ref:l,onClick:function(x){x.stopPropagation(),x.preventDefault()}}),N.jsx(fl,z(z({placement:"bottomRight",trigger:["click"],zIndex:9999,arrow:!1},E),{},{overlayClassName:"".concat(u,"-popover ").concat(p).trim(),content:w,getPopupContainer:function(){return l.current||document.body},children:N.jsx("span",{ref:c,onClick:function(x){x.stopPropagation()},className:xe("".concat(u,"-icon"),p,Z({},"".concat(u,"-icon-active"),v)),children:N.jsx(ECt,{})})}))]}))};function ICt(){return N.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor","aria-hidden":"true",children:N.jsx("path",{d:"M6.432 7.967a.448.448 0 01-.318.133h-.228a.46.46 0 01-.318-.133L2.488 4.85a.305.305 0 010-.43l.427-.43a.293.293 0 01.42 0L6 6.687l2.665-2.699a.299.299 0 01.426 0l.42.431a.305.305 0 010 .43L6.432 7.967z"})})}var kCt=function(t){var n,r,o;return Z({},t.componentCls,{position:"absolute",insetBlockStart:"18px",zIndex:"101",width:"24px",height:"24px",fontSize:["14px","16px"],textAlign:"center",borderRadius:"40px",insetInlineEnd:"-13px",transition:"transform 0.3s",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",color:(n=t.layout)===null||n===void 0||(n=n.sider)===null||n===void 0?void 0:n.colorTextCollapsedButton,backgroundColor:(r=t.layout)===null||r===void 0||(r=r.sider)===null||r===void 0?void 0:r.colorBgCollapsedButton,boxShadow:"0 2px 8px -2px rgba(0,0,0,0.05), 0 1px 4px -1px rgba(25,15,15,0.07), 0 0 1px 0 rgba(0,0,0,0.08)","&:hover":{color:(o=t.layout)===null||o===void 0||(o=o.sider)===null||o===void 0?void 0:o.colorTextCollapsedButtonHover,boxShadow:"0 4px 16px -4px rgba(0,0,0,0.05), 0 2px 8px -2px rgba(25,15,15,0.07), 0 1px 2px 0 rgba(0,0,0,0.08)"},".anticon":{fontSize:"14px"},"& > svg":{transition:"transform 0.3s",transform:"rotate(90deg)"},"&-collapsed":{"& > svg":{transform:"rotate(-90deg)"}}})};function NCt(e){return Zr("SiderMenuCollapsedIcon",function(t){var n=z(z({},t),{},{componentCls:".".concat(e)});return[kCt(n)]})}var ACt=["isMobile","collapsed"],DCt=function(t){var n=t.isMobile,r=t.collapsed,o=At(t,ACt),i=NCt(t.className),a=i.wrapSSR,s=i.hashId;return n&&r?null:a(N.jsx("div",z(z({},o),{},{className:xe(t.className,s,Z(Z({},"".concat(t.className,"-collapsed"),r),"".concat(t.className,"-is-mobile"),n)),children:N.jsx(ICt,{})})))},Fde={navTheme:"light",layout:"side",contentWidth:"Fluid",fixedHeader:!1,fixSiderbar:!0,iconfontUrl:"",colorPrimary:"#1677FF",splitMenus:!1},jCt=function(t,n){var r,o,i=n.includes("horizontal")?(r=t.layout)===null||r===void 0?void 0:r.header:(o=t.layout)===null||o===void 0?void 0:o.sider;return z(z(Z({},"".concat(t.componentCls),Z(Z(Z(Z(Z(Z(Z(Z(Z({background:"transparent",color:i==null?void 0:i.colorTextMenu,border:"none"},"".concat(t.componentCls,"-menu-item"),{transition:"none !important"}),"".concat(t.componentCls,"-submenu-has-icon"),Z({},"> ".concat(t.antCls,"-menu-sub"),{paddingInlineStart:10})),"".concat(t.antCls,"-menu-title-content"),{width:"100%",height:"100%",display:"inline-flex"}),"".concat(t.antCls,"-menu-title-content"),{"&:first-child":{width:"100%"}}),"".concat(t.componentCls,"-item-icon"),{display:"flex",alignItems:"center"}),"&&-collapsed",Z(Z(Z({},"".concat(t.antCls,`-menu-item, `).concat(t.antCls,"-menu-item-group > ").concat(t.antCls,"-menu-item-group-list > ").concat(t.antCls,`-menu-item, `).concat(t.antCls,"-menu-item-group > ").concat(t.antCls,"-menu-item-group-list > ").concat(t.antCls,"-menu-submenu > ").concat(t.antCls,`-menu-submenu-title, `).concat(t.antCls,"-menu-submenu > ").concat(t.antCls,"-menu-submenu-title"),{paddingInline:"0 !important",marginBlock:"4px !important"}),"".concat(t.antCls,"-menu-item-group > ").concat(t.antCls,"-menu-item-group-list > ").concat(t.antCls,"-menu-submenu-selected > ").concat(t.antCls,`-menu-submenu-title, `).concat(t.antCls,"-menu-submenu-selected > ").concat(t.antCls,"-menu-submenu-title"),{backgroundColor:i==null?void 0:i.colorBgMenuItemSelected,borderRadius:t.borderRadiusLG}),"".concat(t.componentCls,"-group"),Z({},"".concat(t.antCls,"-menu-item-group-title"),{paddingInline:0}))),"&-item-title",Z(Z(Z(Z(Z({display:"flex",flexDirection:"row",alignItems:"center",gap:t.marginXS},"".concat(t.componentCls,"-item-text"),{maxWidth:"100%",textOverflow:"ellipsis",overflow:"hidden",wordBreak:"break-all",whiteSpace:"nowrap"}),"&-collapsed",Z(Z({minWidth:40,height:40},"".concat(t.componentCls,"-item-icon"),{height:"16px",width:"16px",lineHeight:"16px !important",".anticon":{lineHeight:"16px !important",height:"16px"}}),"".concat(t.componentCls,"-item-text-has-icon"),{display:"none !important"})),"&-collapsed-level-0",{flexDirection:"column",justifyContent:"center"}),"&".concat(t.componentCls,"-group-item-title"),{gap:t.marginXS,height:18,overflow:"hidden"}),"&".concat(t.componentCls,"-item-collapsed-show-title"),Z({lineHeight:"16px",gap:0},"&".concat(t.componentCls,"-item-title-collapsed"),Z(Z({display:"flex"},"".concat(t.componentCls,"-item-icon"),{height:"16px",width:"16px",lineHeight:"16px !important",".anticon":{lineHeight:"16px!important",height:"16px"}}),"".concat(t.componentCls,"-item-text"),{opacity:"1 !important",display:"inline !important",textAlign:"center",fontSize:12,height:12,lineHeight:"12px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",width:"100%",margin:0,padding:0,marginBlockStart:4})))),"&-group",Z({},"".concat(t.antCls,"-menu-item-group-title"),{fontSize:12,color:t.colorTextLabel,".anticon":{marginInlineEnd:8}})),"&-group-divider",{color:t.colorTextSecondary,fontSize:12,lineHeight:20})),n.includes("horizontal")?{}:Z({},"".concat(t.antCls,"-menu-submenu").concat(t.antCls,"-menu-submenu-popup"),Z({},"".concat(t.componentCls,"-item-title"),{alignItems:"flex-start"}))),{},Z({},"".concat(t.antCls,"-menu-submenu-popup"),{backgroundColor:"rgba(255, 255, 255, 0.42)","-webkit-backdrop-filter":"blur(8px)",backdropFilter:"blur(8px)"}))};function FCt(e,t){return Zr("ProLayoutBaseMenu"+t,function(n){var r=z(z({},n),{},{componentCls:".".concat(e)});return[jCt(r,t||"inline")]})}var gq=function(t){var n=d.useState(t.collapsed),r=$e(n,2),o=r[0],i=r[1],a=d.useState(!1),s=$e(a,2),l=s[0],c=s[1];return d.useEffect(function(){c(!1),setTimeout(function(){i(t.collapsed)},400)},[t.collapsed]),t.disable?t.children:N.jsx(xa,{title:t.title,open:o&&t.collapsed?l:!1,placement:"right",onOpenChange:c,children:t.children})},Lde=Gse({scriptUrl:Fde.iconfontUrl}),vq=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"icon-",r=arguments.length>2?arguments[2]:void 0;if(typeof t=="string"&&t!==""){if(uj(t)||MZe(t))return N.jsx("img",{width:16,src:t,alt:"icon",className:r},t);if(t.startsWith(n))return N.jsx(Lde,{type:t})}return t},yq=function(t){if(t&&typeof t=="string"){var n=t.substring(0,1).toUpperCase();return n}return null},LCt=Sr(function e(t){var n=this;br(this,e),Z(this,"props",void 0),Z(this,"getNavMenuItems",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],o=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0;return r.map(function(a){return n.getSubMenuOrItem(a,o,i)}).filter(function(a){return a}).flat(1)}),Z(this,"getSubMenuOrItem",function(r,o,i){var a=n.props,s=a.subMenuItemRender,l=a.baseClassName,c=a.prefixCls,u=a.collapsed,f=a.menu,h=a.iconPrefixes,p=a.layout,m=(f==null?void 0:f.type)==="group"&&p!=="top",g=n.props.token,v=n.getIntlName(r),b=(r==null?void 0:r.children)||(r==null?void 0:r.routes),y=m&&o===0?"group":void 0;if(Array.isArray(b)&&b.length>0){var S,w,E,C,x,_=o===0||m&&o===1,P=vq(r.icon,h,"".concat(l,"-icon ").concat((S=n.props)===null||S===void 0?void 0:S.hashId)),O=u&&_?yq(v):null,I=N.jsxs("div",{className:xe("".concat(l,"-item-title"),(w=n.props)===null||w===void 0?void 0:w.hashId,Z(Z(Z(Z({},"".concat(l,"-item-title-collapsed"),u),"".concat(l,"-item-title-collapsed-level-").concat(i),u),"".concat(l,"-group-item-title"),y==="group"),"".concat(l,"-item-collapsed-show-title"),(f==null?void 0:f.collapsedShowTitle)&&u)),children:[y==="group"&&u?null:_&&P?N.jsx("span",{className:"".concat(l,"-item-icon ").concat((E=n.props)===null||E===void 0?void 0:E.hashId).trim(),children:P}):O,N.jsx("span",{className:xe("".concat(l,"-item-text"),(C=n.props)===null||C===void 0?void 0:C.hashId,Z({},"".concat(l,"-item-text-has-icon"),y!=="group"&&_&&(P||O))),children:v})]}),M=s?s(z(z({},r),{},{isUrl:!1}),I,n.props):I;if(m&&o===0&&n.props.collapsed&&!f.collapsedShowGroupTitle)return n.getNavMenuItems(b,o+1,o);var T=n.getNavMenuItems(b,o+1,m&&o===0&&n.props.collapsed?o:o+1);return[{type:y,key:r.key||r.path,label:M,onClick:m?void 0:r.onTitleClick,children:T,className:xe(Z(Z(Z({},"".concat(l,"-group"),y==="group"),"".concat(l,"-submenu"),y!=="group"),"".concat(l,"-submenu-has-icon"),y!=="group"&&_&&P))},m&&o===0?{type:"divider",prefixCls:c,className:"".concat(l,"-divider"),key:(r.key||r.path)+"-group-divider",style:{padding:0,borderBlockEnd:0,margin:n.props.collapsed?"4px":"6px 16px",marginBlockStart:n.props.collapsed?4:8,borderColor:g==null||(x=g.layout)===null||x===void 0||(x=x.sider)===null||x===void 0?void 0:x.colorMenuItemDivider}}:void 0].filter(Boolean)}return{className:"".concat(l,"-menu-item"),disabled:r.disabled,key:r.key||r.path,onClick:r.onTitleClick,label:n.getMenuItemPath(r,o,i)}}),Z(this,"getIntlName",function(r){var o=r.name,i=r.locale,a=n.props,s=a.menu,l=a.formatMessage,c=o;return i&&(s==null?void 0:s.locale)!==!1&&(c=l==null?void 0:l({id:i,defaultMessage:o})),n.props.menuTextRender?n.props.menuTextRender(r,c,n.props):c}),Z(this,"getMenuItemPath",function(r,o,i){var a,s,l,c,u=n.conversionPath(r.path||"/"),f=n.props,h=f.location,p=h===void 0?{pathname:"/"}:h,m=f.isMobile,g=f.onCollapse,v=f.menuItemRender,b=f.iconPrefixes,y=n.getIntlName(r),S=n.props,w=S.baseClassName,E=S.menu,C=S.collapsed,x=(E==null?void 0:E.type)==="group",_=o===0||x&&o===1,P=_?vq(r.icon,b,"".concat(w,"-icon ").concat((a=n.props)===null||a===void 0?void 0:a.hashId)):null,O=C&&_?yq(y):null,I=N.jsxs("div",{className:xe("".concat(w,"-item-title"),(s=n.props)===null||s===void 0?void 0:s.hashId,Z(Z(Z({},"".concat(w,"-item-title-collapsed"),C),"".concat(w,"-item-title-collapsed-level-").concat(i),C),"".concat(w,"-item-collapsed-show-title"),(E==null?void 0:E.collapsedShowTitle)&&C)),children:[N.jsx("span",{className:"".concat(w,"-item-icon ").concat((l=n.props)===null||l===void 0?void 0:l.hashId).trim(),style:{display:O===null&&!P?"none":""},children:P||N.jsx("span",{className:"anticon",children:O})}),N.jsx("span",{className:xe("".concat(w,"-item-text"),(c=n.props)===null||c===void 0?void 0:c.hashId,Z({},"".concat(w,"-item-text-has-icon"),_&&(P||O))),children:y})]},u),M=uj(u);if(M){var T,D,A;I=N.jsxs("span",{onClick:function(){var F,V;(F=window)===null||F===void 0||(V=F.open)===null||V===void 0||V.call(F,u,"_blank")},className:xe("".concat(w,"-item-title"),(T=n.props)===null||T===void 0?void 0:T.hashId,Z(Z(Z(Z({},"".concat(w,"-item-title-collapsed"),C),"".concat(w,"-item-title-collapsed-level-").concat(i),C),"".concat(w,"-item-link"),!0),"".concat(w,"-item-collapsed-show-title"),(E==null?void 0:E.collapsedShowTitle)&&C)),children:[N.jsx("span",{className:"".concat(w,"-item-icon ").concat((D=n.props)===null||D===void 0?void 0:D.hashId).trim(),style:{display:O===null&&!P?"none":""},children:P||N.jsx("span",{className:"anticon",children:O})}),N.jsx("span",{className:xe("".concat(w,"-item-text"),(A=n.props)===null||A===void 0?void 0:A.hashId,Z({},"".concat(w,"-item-text-has-icon"),_&&(P||O))),children:y})]},u)}if(v){var j=z(z({},r),{},{isUrl:M,itemPath:u,isMobile:m,replace:u===p.pathname,onClick:function(){return g&&g(!0)},children:void 0});return o===0?N.jsx(gq,{collapsed:C,title:y,disable:r.disabledTooltip,children:v(j,I,n.props)}):v(j,I,n.props)}return o===0?N.jsx(gq,{collapsed:C,title:y,disable:r.disabledTooltip,children:I}):I}),Z(this,"conversionPath",function(r){return r&&r.indexOf("http")===0?r:"/".concat(r||"").replace(/\/+/g,"/")}),this.props=t}),BCt=function(t,n){var r=n.layout,o=n.collapsed,i={};return t&&!o&&["side","mix"].includes(r||"mix")&&(i={openKeys:t}),i},Bde=function(t){var n=t.mode,r=t.className,o=t.handleOpenChange,i=t.style,a=t.menuData,s=t.prefixCls,l=t.menu,c=t.matchMenuKeys,u=t.iconfontUrl,f=t.selectedKeys,h=t.onSelect,p=t.menuRenderType,m=t.openKeys,g=d.useContext(Yl),v=g.dark,b=g.token,y="".concat(s,"-base-menu-").concat(n),S=d.useRef([]),w=xn(l==null?void 0:l.defaultOpenAll),E=$e(w,2),C=E[0],x=E[1],_=xn(function(){return l!=null&&l.defaultOpenAll?mq(a)||[]:m===!1?!1:[]},{value:m===!1?void 0:m,onChange:o}),P=$e(_,2),O=P[0],I=P[1],M=xn([],{value:f,onChange:h?function(L){h&&L&&h(L)}:void 0}),T=$e(M,2),D=T[0],A=T[1];d.useEffect(function(){l!=null&&l.defaultOpenAll||m===!1||c&&(I(c),A(c))},[c.join("-")]),d.useEffect(function(){u&&(Lde=Gse({scriptUrl:u}))},[u]),d.useEffect(function(){if(c.join("-")!==(D||[]).join("-")&&A(c),!C&&m!==!1&&c.join("-")!==(O||[]).join("-")){var L=c;(l==null?void 0:l.autoClose)===!1&&(L=Array.from(new Set([].concat(Ze(c),Ze(O||[]))))),I(L)}else l!=null&&l.ignoreFlatMenu&&C?I(mq(a)):x(!1)},[c.join("-")]);var j=d.useMemo(function(){return BCt(O,t)},[O&&O.join(","),t.layout,t.collapsed]),k=FCt(y,n),F=k.wrapSSR,V=k.hashId,W=d.useMemo(function(){return new LCt(z(z({},t),{},{token:b,menuRenderType:p,baseClassName:y,hashId:V}))},[t,b,p,y,V]);if(l!=null&&l.loading)return N.jsx("div",{style:n!=null&&n.includes("inline")?{padding:24}:{marginBlockStart:16},children:N.jsx(pd,{active:!0,title:!1,paragraph:{rows:n!=null&&n.includes("inline")?6:1}})});t.openKeys===!1&&!t.handleOpenChange&&(S.current=c);var K=t.postMenuData?t.postMenuData(a):a;return K&&(K==null?void 0:K.length)<1?null:F(d.createElement(vc,z(z({},j),{},{_internalDisableMenuItemTitleTooltip:!0,key:"Menu",mode:n,inlineIndent:16,defaultOpenKeys:S.current,theme:v?"dark":"light",selectedKeys:D,style:z({backgroundColor:"transparent",border:"none"},i),className:xe(r,V,y,Z(Z({},"".concat(y,"-horizontal"),n==="horizontal"),"".concat(y,"-collapsed"),t.collapsed)),items:W.getNavMenuItems(K,0,0),onOpenChange:function(Q){t.collapsed||I(Q)}},t.menuProps)))};function zCt(e,t){var n=t.stylish,r=t.proLayoutCollapsedWidth;return Zr("ProLayoutSiderMenuStylish",function(o){var i=z(z({},o),{},{componentCls:".".concat(e),proLayoutCollapsedWidth:r});return n?[Z({},"div".concat(o.proComponentsCls,"-layout"),Z({},"".concat(i.componentCls),n==null?void 0:n(i)))]:[]})}var HCt=["title","render"],UCt=de.memo(function(e){return N.jsx(N.Fragment,{children:e.children})}),WCt=ei.Sider,bq=ei._InternalSiderContext,VCt=bq===void 0?{Provider:UCt}:bq,Yj=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"menuHeaderRender",r=t.logo,o=t.title,i=t.layout,a=t[n];if(a===!1)return null;var s=qj(r),l=N.jsx("h1",{children:o??"Ant Design Pro"});return a?a(s,t.collapsed?null:l,t):t.isMobile?null:i==="mix"&&n==="menuHeaderRender"?!1:t.collapsed?N.jsx("a",{children:s},"title"):N.jsxs("a",{children:[s,l]},"title")},Sq=function(t){var n,r=t.collapsed,o=t.originCollapsed,i=t.fixSiderbar,a=t.menuFooterRender,s=t.onCollapse,l=t.theme,c=t.siderWidth,u=t.isMobile,f=t.onMenuHeaderClick,h=t.breakpoint,p=h===void 0?"lg":h,m=t.style,g=t.layout,v=t.menuExtraRender,b=v===void 0?!1:v,y=t.links,S=t.menuContentRender,w=t.collapsedButtonRender,E=t.prefixCls,C=t.avatarProps,x=t.rightContentRender,_=t.actionsRender,P=t.onOpenChange,O=t.stylish,I=t.logoStyle,M=d.useContext(Yl),T=M.hashId,D=d.useMemo(function(){return!(u||g==="mix")},[u,g]),A="".concat(E,"-sider"),j=64,k=zCt("".concat(A,".").concat(A,"-stylish"),{stylish:O,proLayoutCollapsedWidth:j}),F=xe("".concat(A),T,Z(Z(Z(Z(Z(Z(Z({},"".concat(A,"-fixed"),i),"".concat(A,"-fixed-mix"),g==="mix"&&!u&&i),"".concat(A,"-collapsed"),t.collapsed),"".concat(A,"-layout-").concat(g),g&&!u),"".concat(A,"-light"),l!=="dark"),"".concat(A,"-mix"),g==="mix"&&!u),"".concat(A,"-stylish"),!!O)),V=Yj(t),W=b&&b(t),K=d.useMemo(function(){return S!==!1&&d.createElement(Bde,z(z({},t),{},{key:"base-menu",mode:r&&!u?"vertical":"inline",handleOpenChange:P,style:{width:"100%"},className:"".concat(A,"-menu ").concat(T).trim()}))},[A,T,S,P,t]),L=(y||[]).map(function(oe,se){return{className:"".concat(A,"-link"),label:oe,key:se}}),Q=d.useMemo(function(){return S?S(t,K):K},[S,K,t]),ee=d.useMemo(function(){if(!C)return null;var oe=C.title,se=C.render,fe=At(C,HCt),te=N.jsxs("div",{className:"".concat(A,"-actions-avatar"),children:[fe!=null&&fe.src||fe!=null&&fe.srcSet||fe.icon||fe.children?N.jsx(Xc,z({size:28},fe)):null,C.title&&!r&&N.jsx("span",{children:oe})]});return se?se(C,te,t):te},[C,A,r]),re=d.useMemo(function(){return _?N.jsx(oo,{align:"center",size:4,direction:r?"vertical":"horizontal",className:xe(["".concat(A,"-actions-list"),r&&"".concat(A,"-actions-list-collapsed"),T]),children:[_==null?void 0:_(t)].flat(1).map(function(oe,se){return N.jsx("div",{className:"".concat(A,"-actions-list-item ").concat(T).trim(),children:oe},se)})}):null},[_,A,r]),ie=d.useMemo(function(){return N.jsx(Gj,{onItemClick:t.itemClick,appListRender:t.appListRender,appList:t.appList,prefixCls:t.prefixCls})},[t.appList,t.appListRender,t.prefixCls]),G=d.useMemo(function(){if(w===!1)return null;var oe=N.jsx(DCt,{isMobile:u,collapsed:o,className:"".concat(A,"-collapsed-button"),onClick:function(){s==null||s(!o)}});return w?w(r,oe):oe},[w,u,o,A,r,s]),X=d.useMemo(function(){return!ee&&!re?null:N.jsxs("div",{className:xe("".concat(A,"-actions"),T,r&&"".concat(A,"-actions-collapsed")),children:[ee,re]})},[re,ee,A,r,T]),ne=d.useMemo(function(){var oe;return t!=null&&(oe=t.menu)!==null&&oe!==void 0&&oe.hideMenuWhenCollapsed&&r?"".concat(A,"-hide-menu-collapsed"):null},[A,r,t==null||(n=t.menu)===null||n===void 0?void 0:n.hideMenuWhenCollapsed]),le=a&&(a==null?void 0:a(t)),ce=N.jsxs(N.Fragment,{children:[V&&N.jsxs("div",{className:xe([xe("".concat(A,"-logo"),T,Z({},"".concat(A,"-logo-collapsed"),r))]),onClick:D?f:void 0,id:"logo",style:I,children:[V,ie]}),W&&N.jsx("div",{className:xe(["".concat(A,"-extra"),!V&&"".concat(A,"-extra-no-logo"),T]),children:W}),N.jsx("div",{style:{flex:1,overflowY:"auto",overflowX:"hidden"},children:Q}),N.jsxs(VCt.Provider,{value:{},children:[y?N.jsx("div",{className:"".concat(A,"-links ").concat(T).trim(),children:N.jsx(vc,{inlineIndent:16,className:"".concat(A,"-link-menu ").concat(T).trim(),selectedKeys:[],openKeys:[],theme:l,mode:"inline",items:L})}):null,D&&N.jsxs(N.Fragment,{children:[X,!re&&x?N.jsx("div",{className:xe("".concat(A,"-actions"),T,Z({},"".concat(A,"-actions-collapsed"),r)),children:x==null?void 0:x(t)}):null]}),le&&N.jsx("div",{className:xe(["".concat(A,"-footer"),T,Z({},"".concat(A,"-footer-collapsed"),r)]),children:le})]})]});return k.wrapSSR(N.jsxs(N.Fragment,{children:[i&&!u&&!ne&&N.jsx("div",{style:z({width:r?j:c,overflow:"hidden",flex:"0 0 ".concat(r?j:c,"px"),maxWidth:r?j:c,minWidth:r?j:c,transition:"all 0.2s ease 0s"},m)}),N.jsxs(WCt,{collapsible:!0,trigger:null,collapsed:r,breakpoint:p===!1?void 0:p,onCollapse:function(se){u||s==null||s(se)},collapsedWidth:j,style:m,theme:l,width:c,className:xe(F,T,ne),children:[ne?N.jsx("div",{className:"".concat(A,"-hide-when-collapsed ").concat(T).trim(),style:{height:"100%",width:"100%",opacity:ne?0:1},children:ce}):ce,G]})]}))},KCt=function(t){var n,r,o,i,a;return Z({},t.componentCls,{"&-header-actions":{display:"flex",height:"100%",alignItems:"center","&-item":{display:"inline-flex",alignItems:"center",justifyContent:"center",paddingBlock:0,paddingInline:2,color:(n=t.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.colorTextRightActionsItem,fontSize:"16px",cursor:"pointer",borderRadius:t.borderRadius,"> *":{paddingInline:6,paddingBlock:6,borderRadius:t.borderRadius,"&:hover":{backgroundColor:(r=t.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.colorBgRightActionsItemHover}}},"&-avatar":{display:"inline-flex",alignItems:"center",justifyContent:"center",paddingInlineStart:t.padding,paddingInlineEnd:t.padding,cursor:"pointer",color:(o=t.layout)===null||o===void 0||(o=o.header)===null||o===void 0?void 0:o.colorTextRightActionsItem,"> div":{height:"44px",color:(i=t.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.colorTextRightActionsItem,paddingInline:8,paddingBlock:8,cursor:"pointer",display:"flex",alignItems:"center",lineHeight:"44px",borderRadius:t.borderRadius,"&:hover":{backgroundColor:(a=t.layout)===null||a===void 0||(a=a.header)===null||a===void 0?void 0:a.colorBgRightActionsItemHover}}}}})};function qCt(e){return Zr("ProLayoutRightContent",function(t){var n=z(z({},t),{},{componentCls:".".concat(e)});return[KCt(n)]})}var GCt=["rightContentRender","avatarProps","actionsRender","headerContentRender"],YCt=["title","render"],zde=function(t){var n=t.rightContentRender,r=t.avatarProps,o=t.actionsRender;t.headerContentRender;var i=At(t,GCt),a=d.useContext(Mn.ConfigContext),s=a.getPrefixCls,l="".concat(s(),"-pro-global-header"),c=qCt(l),u=c.wrapSSR,f=c.hashId,h=d.useState("auto"),p=$e(h,2),m=p[0],g=p[1],v=d.useMemo(function(){if(!r)return null;var w=r.title,E=r.render,C=At(r,YCt),x=[C!=null&&C.src||C!=null&&C.srcSet||C.icon||C.children?d.createElement(Xc,z(z({},C),{},{size:28,key:"avatar"})):null,w?N.jsx("span",{style:{marginInlineStart:8},children:w},"name"):void 0];return E?E(r,N.jsx("div",{children:x}),i):N.jsx("div",{children:x})},[r]),b=o||v?function(w){var E=o&&(o==null?void 0:o(w));return!E&&!v?null:Array.isArray(E)?u(N.jsxs("div",{className:"".concat(l,"-header-actions ").concat(f).trim(),children:[E.filter(Boolean).map(function(C,x){var _=!1;if(de.isValidElement(C)){var P;_=!!(C!=null&&(P=C.props)!==null&&P!==void 0&&P["aria-hidden"])}return N.jsx("div",{className:xe("".concat(l,"-header-actions-item ").concat(f),Z({},"".concat(l,"-header-actions-hover"),!_)),children:C},x)}),v&&N.jsx("span",{className:"".concat(l,"-header-actions-avatar ").concat(f).trim(),children:v})]})):u(N.jsxs("div",{className:"".concat(l,"-header-actions ").concat(f).trim(),children:[E,v&&N.jsx("span",{className:"".concat(l,"-header-actions-avatar ").concat(f).trim(),children:v})]}))}:void 0,y=bZe(function(){var w=Bo(nr().mark(function E(C){return nr().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:g(C);case 1:case"end":return _.stop()}},E)}));return function(E){return w.apply(this,arguments)}}(),160),S=b||n;return N.jsx("div",{className:"".concat(l,"-right-content ").concat(f).trim(),style:{minWidth:m,height:"100%"},children:N.jsx("div",{style:{height:"100%"},children:N.jsx(Oi,{onResize:function(E){var C=E.width;y.run(C)},children:S?N.jsx("div",{style:{display:"flex",alignItems:"center",height:"100%",justifyContent:"flex-end"},children:S(z(z({},i),{},{rightContentSize:m}))}):null})})})},XCt=function(t){var n,r;return Z({},t.componentCls,{position:"relative",width:"100%",height:"100%",backgroundColor:"transparent",".anticon":{color:"inherit"},"&-main":{display:"flex",height:"100%",paddingInlineStart:"16px","&-left":Z({display:"flex",alignItems:"center"},"".concat(t.proComponentsCls,"-layout-apps-icon"),{marginInlineEnd:16,marginInlineStart:-8})},"&-wide":{maxWidth:1152,margin:"0 auto"},"&-logo":{position:"relative",display:"flex",height:"100%",alignItems:"center",overflow:"hidden","> *:first-child":{display:"flex",alignItems:"center",minHeight:"22px",fontSize:"22px"},"> *:first-child > img":{display:"inline-block",height:"32px",verticalAlign:"middle"},"> *:first-child > h1":{display:"inline-block",marginBlock:0,marginInline:0,lineHeight:"24px",marginInlineStart:6,fontWeight:"600",fontSize:"16px",color:(n=t.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.colorHeaderTitle,verticalAlign:"top"}},"&-menu":{minWidth:0,display:"flex",alignItems:"center",paddingInline:6,paddingBlock:6,lineHeight:"".concat(Math.max((((r=t.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.heightLayoutHeader)||56)-12,40),"px")}})};function QCt(e){return Zr("ProLayoutTopNavHeader",function(t){var n=z(z({},t),{},{componentCls:".".concat(e)});return[XCt(n)]})}var Hde=function(t){var n,r,o,i,a,s,l,c=d.useRef(null),u=t.onMenuHeaderClick,f=t.contentWidth,h=t.rightContentRender,p=t.className,m=t.style,g=t.headerContentRender,v=t.layout,b=t.actionsRender,y=d.useContext(Mn.ConfigContext),S=y.getPrefixCls,w=d.useContext(Yl),E=w.dark,C="".concat(t.prefixCls||S("pro"),"-top-nav-header"),x=QCt(C),_=x.wrapSSR,P=x.hashId,O=void 0;t.menuHeaderRender!==void 0?O="menuHeaderRender":(v==="mix"||v==="top")&&(O="headerTitleRender");var I=Yj(z(z({},t),{},{collapsed:!1}),O),M=d.useContext(Yl),T=M.token,D=d.useMemo(function(){var A,j,k,F,V,W,K,L,Q,ee,re,ie,G,X=N.jsx(Mn,{theme:{hashed:dg(),components:{Layout:{headerBg:"transparent",bodyBg:"transparent"},Menu:z({},kce({colorItemBg:((A=T.layout)===null||A===void 0||(A=A.header)===null||A===void 0?void 0:A.colorBgHeader)||"transparent",colorSubItemBg:((j=T.layout)===null||j===void 0||(j=j.header)===null||j===void 0?void 0:j.colorBgHeader)||"transparent",radiusItem:T.borderRadius,colorItemBgSelected:((k=T.layout)===null||k===void 0||(k=k.header)===null||k===void 0?void 0:k.colorBgMenuItemSelected)||(T==null?void 0:T.colorBgTextHover),itemHoverBg:((F=T.layout)===null||F===void 0||(F=F.header)===null||F===void 0?void 0:F.colorBgMenuItemHover)||(T==null?void 0:T.colorBgTextHover),colorItemBgSelectedHorizontal:((V=T.layout)===null||V===void 0||(V=V.header)===null||V===void 0?void 0:V.colorBgMenuItemSelected)||(T==null?void 0:T.colorBgTextHover),colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemText:((W=T.layout)===null||W===void 0||(W=W.header)===null||W===void 0?void 0:W.colorTextMenu)||(T==null?void 0:T.colorTextSecondary),colorItemTextHoverHorizontal:((K=T.layout)===null||K===void 0||(K=K.header)===null||K===void 0?void 0:K.colorTextMenuActive)||(T==null?void 0:T.colorText),colorItemTextSelectedHorizontal:((L=T.layout)===null||L===void 0||(L=L.header)===null||L===void 0?void 0:L.colorTextMenuSelected)||(T==null?void 0:T.colorTextBase),horizontalItemBorderRadius:4,colorItemTextHover:((Q=T.layout)===null||Q===void 0||(Q=Q.header)===null||Q===void 0?void 0:Q.colorTextMenuActive)||"rgba(0, 0, 0, 0.85)",horizontalItemHoverBg:((ee=T.layout)===null||ee===void 0||(ee=ee.header)===null||ee===void 0?void 0:ee.colorBgMenuItemHover)||"rgba(0, 0, 0, 0.04)",colorItemTextSelected:((re=T.layout)===null||re===void 0||(re=re.header)===null||re===void 0?void 0:re.colorTextMenuSelected)||"rgba(0, 0, 0, 1)",popupBg:T==null?void 0:T.colorBgElevated,subMenuItemBg:T==null?void 0:T.colorBgElevated,darkSubMenuItemBg:"transparent",darkPopupBg:T==null?void 0:T.colorBgElevated}))},token:{colorBgElevated:((ie=T.layout)===null||ie===void 0||(ie=ie.header)===null||ie===void 0?void 0:ie.colorBgHeader)||"transparent"}},children:N.jsx(Bde,z(z(z({theme:E?"dark":"light"},t),{},{className:"".concat(C,"-base-menu ").concat(P).trim()},t.menuProps),{},{style:z({width:"100%"},(G=t.menuProps)===null||G===void 0?void 0:G.style),collapsed:!1,menuRenderType:"header",mode:"horizontal"}))});return g?g(t,X):X},[(n=T.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.colorBgHeader,(r=T.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.colorBgMenuItemSelected,(o=T.layout)===null||o===void 0||(o=o.header)===null||o===void 0?void 0:o.colorBgMenuItemHover,(i=T.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.colorTextMenu,(a=T.layout)===null||a===void 0||(a=a.header)===null||a===void 0?void 0:a.colorTextMenuActive,(s=T.layout)===null||s===void 0||(s=s.header)===null||s===void 0?void 0:s.colorTextMenuSelected,(l=T.layout)===null||l===void 0||(l=l.header)===null||l===void 0?void 0:l.colorBgMenuElevated,T.borderRadius,T==null?void 0:T.colorBgTextHover,T==null?void 0:T.colorTextSecondary,T==null?void 0:T.colorText,T==null?void 0:T.colorTextBase,T.colorBgElevated,E,t,C,P,g]);return _(N.jsx("div",{className:xe(C,P,p,Z({},"".concat(C,"-light"),!0)),style:m,children:N.jsxs("div",{ref:c,className:xe("".concat(C,"-main"),P,Z({},"".concat(C,"-wide"),f==="Fixed"&&v==="top")),children:[I&&N.jsxs("div",{className:xe("".concat(C,"-main-left ").concat(P)),onClick:u,children:[N.jsx(Gj,z({},t)),N.jsx("div",{className:"".concat(C,"-logo ").concat(P).trim(),id:"logo",children:I},"logo")]}),N.jsx("div",{style:{flex:1},className:"".concat(C,"-menu ").concat(P).trim(),children:D}),(h||b||t.avatarProps)&&N.jsx(zde,z(z({rightContentRender:h},t),{},{prefixCls:C}))]})}))},JCt=function(t){var n,r,o;return Z({},t.componentCls,Z(Z(Z(Z({position:"relative",background:"transparent",display:"flex",alignItems:"center",marginBlock:0,marginInline:16,height:((n=t.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.heightLayoutHeader)||56,boxSizing:"border-box","> a":{height:"100%"}},"".concat(t.proComponentsCls,"-layout-apps-icon"),{marginInlineEnd:16}),"&-collapsed-button",{minHeight:"22px",color:(r=t.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.colorHeaderTitle,fontSize:"18px",marginInlineEnd:"16px"}),"&-logo",{position:"relative",marginInlineEnd:"16px",a:{display:"flex",alignItems:"center",height:"100%",minHeight:"22px",fontSize:"20px"},img:{height:"28px"},h1:{height:"32px",marginBlock:0,marginInline:0,marginInlineStart:8,fontWeight:"600",color:((o=t.layout)===null||o===void 0||(o=o.header)===null||o===void 0?void 0:o.colorHeaderTitle)||t.colorTextHeading,fontSize:"18px",lineHeight:"32px"},"&-mix":{display:"flex",alignItems:"center"}}),"&-logo-mobile",{minWidth:"24px",marginInlineEnd:0}))};function ZCt(e){return Zr("ProLayoutGlobalHeader",function(t){var n=z(z({},t),{},{componentCls:".".concat(e)});return[JCt(n)]})}var ewt=function(t,n){return t===!1?null:t?t(n,null):n},twt=function(t){var n=t.isMobile,r=t.logo,o=t.collapsed,i=t.onCollapse,a=t.rightContentRender,s=t.menuHeaderRender,l=t.onMenuHeaderClick,c=t.className,u=t.style,f=t.layout,h=t.children,p=t.splitMenus,m=t.menuData,g=t.prefixCls,v=d.useContext(Mn.ConfigContext),b=v.getPrefixCls,y=v.direction,S="".concat(g||b("pro"),"-global-header"),w=ZCt(S),E=w.wrapSSR,C=w.hashId,x=xe(c,S,C);if(f==="mix"&&!n&&p){var _=(m||[]).map(function(M){return z(z({},M),{},{children:void 0,routes:void 0})}),P=nO(_);return N.jsx(Hde,z(z({mode:"horizontal"},t),{},{splitMenus:!1,menuData:P}))}var O=xe("".concat(S,"-logo"),C,Z(Z(Z({},"".concat(S,"-logo-rtl"),y==="rtl"),"".concat(S,"-logo-mix"),f==="mix"),"".concat(S,"-logo-mobile"),n)),I=N.jsx("span",{className:O,children:N.jsx("a",{children:qj(r)})},"logo");return E(N.jsxs("div",{className:x,style:z({},u),children:[n&&N.jsx("span",{className:"".concat(S,"-collapsed-button ").concat(C).trim(),onClick:function(){i==null||i(!o)},children:N.jsx(eUe,{})}),n&&ewt(s,I),f==="mix"&&!n&&N.jsxs(N.Fragment,{children:[N.jsx(Gj,z({},t)),N.jsx("div",{className:O,onClick:l,children:Yj(z(z({},t),{},{collapsed:!1}),"headerTitleRender")})]}),N.jsx("div",{style:{flex:1},children:h}),(a||t.actionsRender||t.avatarProps)&&N.jsx(zde,z({rightContentRender:a},t))]}))},nwt=function(t){var n,r,o,i;return Z({},"".concat(t.proComponentsCls,"-layout"),Z({},"".concat(t.antCls,"-layout-header").concat(t.componentCls),{height:((n=t.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.heightLayoutHeader)||56,lineHeight:"".concat(((r=t.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.heightLayoutHeader)||56,"px"),zIndex:19,width:"100%",paddingBlock:0,paddingInline:0,borderBlockEnd:"1px solid ".concat(t.colorSplit),backgroundColor:((o=t.layout)===null||o===void 0||(o=o.header)===null||o===void 0?void 0:o.colorBgHeader)||"rgba(255, 255, 255, 0.4)",WebkitBackdropFilter:"blur(8px)",backdropFilter:"blur(8px)",transition:"background-color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)","&-fixed-header":{position:"fixed",insetBlockStart:0,width:"100%",zIndex:100,insetInlineEnd:0},"&-fixed-header-scroll":{backgroundColor:((i=t.layout)===null||i===void 0||(i=i.header)===null||i===void 0?void 0:i.colorBgScrollHeader)||"rgba(255, 255, 255, 0.8)"},"&-header-actions":{display:"flex",alignItems:"center",fontSize:"16",cursor:"pointer","& &-item":{paddingBlock:0,paddingInline:8,"&:hover":{color:t.colorText}}},"&-header-realDark":{boxShadow:"0 2px 8px 0 rgba(0, 0, 0, 65%)"},"&-header-actions-header-action":{transition:"width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)"}}))};function rwt(e){return Zr("ProLayoutHeader",function(t){var n=z(z({},t),{},{componentCls:".".concat(e)});return[nwt(n)]})}function owt(e,t){var n=t.stylish,r=t.proLayoutCollapsedWidth;return Zr("ProLayoutHeaderStylish",function(o){var i=z(z({},o),{},{componentCls:".".concat(e),proLayoutCollapsedWidth:r});return n?[Z({},"div".concat(o.proComponentsCls,"-layout"),Z({},"".concat(i.componentCls),n==null?void 0:n(i)))]:[]})}var Cq=ei.Header,iwt=function(t){var n,r,o,i=t.isMobile,a=t.fixedHeader,s=t.className,l=t.style,c=t.collapsed,u=t.prefixCls,f=t.onCollapse,h=t.layout,p=t.headerRender,m=t.headerContentRender,g=d.useContext(Yl),v=g.token,b=d.useContext(Mn.ConfigContext),y=d.useState(!1),S=$e(y,2),w=S[0],E=S[1],C=a||h==="mix",x=d.useCallback(function(){var A=h==="top",j=nO(t.menuData||[]),k=N.jsx(twt,z(z({onCollapse:f},t),{},{menuData:j,children:m&&m(t,null)}));return A&&!i&&(k=N.jsx(Hde,z(z({mode:"horizontal",onCollapse:f},t),{},{menuData:j}))),p&&typeof p=="function"?p(t,k):k},[m,p,i,h,f,t]);d.useEffect(function(){var A,j=(b==null||(A=b.getTargetContainer)===null||A===void 0?void 0:A.call(b))||document.body,k=function(){var V,W=j.scrollTop;return W>(((V=v.layout)===null||V===void 0||(V=V.header)===null||V===void 0?void 0:V.heightLayoutHeader)||56)&&!w?(E(!0),!0):(w&&E(!1),!1)};if(C&&!(typeof window>"u"))return j.addEventListener("scroll",k,{passive:!0}),function(){j.removeEventListener("scroll",k)}},[(n=v.layout)===null||n===void 0||(n=n.header)===null||n===void 0?void 0:n.heightLayoutHeader,C,w]);var _=h==="top",P="".concat(u,"-layout-header"),O=rwt(P),I=O.wrapSSR,M=O.hashId,T=owt("".concat(P,".").concat(P,"-stylish"),{proLayoutCollapsedWidth:64,stylish:t.stylish}),D=xe(s,M,P,Z(Z(Z(Z(Z(Z(Z({},"".concat(P,"-fixed-header"),C),"".concat(P,"-fixed-header-scroll"),w),"".concat(P,"-mix"),h==="mix"),"".concat(P,"-fixed-header-action"),!c),"".concat(P,"-top-menu"),_),"".concat(P,"-header"),!0),"".concat(P,"-stylish"),!!t.stylish));return h==="side"&&!i?null:T.wrapSSR(I(N.jsx(N.Fragment,{children:N.jsxs(Mn,{theme:{hashed:dg(),components:{Layout:{headerBg:"transparent",bodyBg:"transparent"}}},children:[C&&N.jsx(Cq,{style:z({height:((r=v.layout)===null||r===void 0||(r=r.header)===null||r===void 0?void 0:r.heightLayoutHeader)||56,lineHeight:"".concat(((o=v.layout)===null||o===void 0||(o=o.header)===null||o===void 0?void 0:o.heightLayoutHeader)||56,"px"),backgroundColor:"transparent",zIndex:19},l)}),N.jsx(Cq,{className:D,style:l,children:x()})]})})))};const awt={"app.setting.pagestyle":"Page style setting","app.setting.pagestyle.dark":"Dark Menu style","app.setting.pagestyle.light":"Light Menu style","app.setting.pagestyle.realdark":"Dark style (Beta)","app.setting.content-width":"Content Width","app.setting.content-width.fixed":"Fixed","app.setting.content-width.fluid":"Fluid","app.setting.themecolor":"Theme Color","app.setting.themecolor.dust":"Dust Red","app.setting.themecolor.volcano":"Volcano","app.setting.themecolor.sunset":"Sunset Orange","app.setting.themecolor.cyan":"Cyan","app.setting.themecolor.green":"Polar Green","app.setting.themecolor.techBlue":"Tech Blue (default)","app.setting.themecolor.daybreak":"Daybreak Blue","app.setting.themecolor.geekblue":"Geek Blue","app.setting.themecolor.purple":"Golden Purple","app.setting.sidermenutype":"SideMenu Type","app.setting.sidermenutype-sub":"Classic","app.setting.sidermenutype-group":"Grouping","app.setting.navigationmode":"Navigation Mode","app.setting.regionalsettings":"Regional Settings","app.setting.regionalsettings.header":"Header","app.setting.regionalsettings.menu":"Menu","app.setting.regionalsettings.footer":"Footer","app.setting.regionalsettings.menuHeader":"Menu Header","app.setting.sidemenu":"Side Menu Layout","app.setting.topmenu":"Top Menu Layout","app.setting.mixmenu":"Mix Menu Layout","app.setting.splitMenus":"Split Menus","app.setting.fixedheader":"Fixed Header","app.setting.fixedsidebar":"Fixed Sidebar","app.setting.fixedsidebar.hint":"Works on Side Menu Layout","app.setting.hideheader":"Hidden Header when scrolling","app.setting.hideheader.hint":"Works when Hidden Header is enabled","app.setting.othersettings":"Other Settings","app.setting.weakmode":"Weak Mode","app.setting.copy":"Copy Setting","app.setting.loading":"Loading theme","app.setting.copyinfo":"copy success,please replace defaultSettings in src/models/setting.js","app.setting.production.hint":"Setting panel shows in development environment only, please manually modify"},swt=z({},awt),lwt={"app.setting.pagestyle":"Impostazioni di stile","app.setting.pagestyle.dark":"Tema scuro","app.setting.pagestyle.light":"Tema chiaro","app.setting.content-width":"Largezza contenuto","app.setting.content-width.fixed":"Fissa","app.setting.content-width.fluid":"Fluida","app.setting.themecolor":"Colore del tema","app.setting.themecolor.dust":"Rosso polvere","app.setting.themecolor.volcano":"Vulcano","app.setting.themecolor.sunset":"Arancione tramonto","app.setting.themecolor.cyan":"Ciano","app.setting.themecolor.green":"Verde polare","app.setting.themecolor.techBlue":"Tech Blu (default)","app.setting.themecolor.daybreak":"Blu cielo mattutino","app.setting.themecolor.geekblue":"Blu geek","app.setting.themecolor.purple":"Viola dorato","app.setting.navigationmode":"Modalità di navigazione","app.setting.sidemenu":"Menu laterale","app.setting.topmenu":"Menu in testata","app.setting.mixmenu":"Menu misto","app.setting.splitMenus":"Menu divisi","app.setting.fixedheader":"Testata fissa","app.setting.fixedsidebar":"Menu laterale fisso","app.setting.fixedsidebar.hint":"Solo se selezionato Menu laterale","app.setting.hideheader":"Nascondi testata durante lo scorrimento","app.setting.hideheader.hint":"Solo se abilitato Nascondi testata durante lo scorrimento","app.setting.othersettings":"Altre impostazioni","app.setting.weakmode":"Inverti colori","app.setting.copy":"Copia impostazioni","app.setting.loading":"Carico tema...","app.setting.copyinfo":"Impostazioni copiate con successo! Incolla il contenuto in config/defaultSettings.js","app.setting.production.hint":"Questo pannello è visibile solo durante lo sviluppo. Le impostazioni devono poi essere modificate manulamente"},cwt=z({},lwt),uwt={"app.setting.pagestyle":"스타일 설정","app.setting.pagestyle.dark":"다크 모드","app.setting.pagestyle.light":"라이트 모드","app.setting.content-width":"컨텐츠 너비","app.setting.content-width.fixed":"고정","app.setting.content-width.fluid":"흐름","app.setting.themecolor":"테마 색상","app.setting.themecolor.dust":"Dust Red","app.setting.themecolor.volcano":"Volcano","app.setting.themecolor.sunset":"Sunset Orange","app.setting.themecolor.cyan":"Cyan","app.setting.themecolor.green":"Polar Green","app.setting.themecolor.techBlue":"Tech Blu (default)","app.setting.themecolor.daybreak":"Daybreak Blue","app.setting.themecolor.geekblue":"Geek Blue","app.setting.themecolor.purple":"Golden Purple","app.setting.navigationmode":"네비게이션 모드","app.setting.regionalsettings":"영역별 설정","app.setting.regionalsettings.header":"헤더","app.setting.regionalsettings.menu":"메뉴","app.setting.regionalsettings.footer":"바닥글","app.setting.regionalsettings.menuHeader":"메뉴 헤더","app.setting.sidemenu":"메뉴 사이드 배치","app.setting.topmenu":"메뉴 상단 배치","app.setting.mixmenu":"혼합형 배치","app.setting.splitMenus":"메뉴 분리","app.setting.fixedheader":"헤더 고정","app.setting.fixedsidebar":"사이드바 고정","app.setting.fixedsidebar.hint":"'메뉴 사이드 배치'를 선택했을 때 동작함","app.setting.hideheader":"스크롤 중 헤더 감추기","app.setting.hideheader.hint":"'헤더 감추기 옵션'을 선택했을 때 동작함","app.setting.othersettings":"다른 설정","app.setting.weakmode":"고대비 모드","app.setting.copy":"설정값 복사","app.setting.loading":"테마 로딩 중","app.setting.copyinfo":"복사 성공. src/models/settings.js에 있는 defaultSettings를 교체해 주세요.","app.setting.production.hint":"설정 판넬은 개발 환경에서만 보여집니다. 직접 수동으로 변경바랍니다."},dwt=z({},uwt),fwt={"app.setting.pagestyle":"整体风格设置","app.setting.pagestyle.dark":"暗色菜单风格","app.setting.pagestyle.light":"亮色菜单风格","app.setting.pagestyle.realdark":"暗色风格(实验功能)","app.setting.content-width":"内容区域宽度","app.setting.content-width.fixed":"定宽","app.setting.content-width.fluid":"流式","app.setting.themecolor":"主题色","app.setting.themecolor.dust":"薄暮","app.setting.themecolor.volcano":"火山","app.setting.themecolor.sunset":"日暮","app.setting.themecolor.cyan":"明青","app.setting.themecolor.green":"极光绿","app.setting.themecolor.techBlue":"科技蓝(默认)","app.setting.themecolor.daybreak":"拂晓","app.setting.themecolor.geekblue":"极客蓝","app.setting.themecolor.purple":"酱紫","app.setting.navigationmode":"导航模式","app.setting.sidermenutype":"侧边菜单类型","app.setting.sidermenutype-sub":"经典模式","app.setting.sidermenutype-group":"分组模式","app.setting.regionalsettings":"内容区域","app.setting.regionalsettings.header":"顶栏","app.setting.regionalsettings.menu":"菜单","app.setting.regionalsettings.footer":"页脚","app.setting.regionalsettings.menuHeader":"菜单头","app.setting.sidemenu":"侧边菜单布局","app.setting.topmenu":"顶部菜单布局","app.setting.mixmenu":"混合菜单布局","app.setting.splitMenus":"自动分割菜单","app.setting.fixedheader":"固定 Header","app.setting.fixedsidebar":"固定侧边菜单","app.setting.fixedsidebar.hint":"侧边菜单布局时可配置","app.setting.hideheader":"下滑时隐藏 Header","app.setting.hideheader.hint":"固定 Header 时可配置","app.setting.othersettings":"其他设置","app.setting.weakmode":"色弱模式","app.setting.copy":"拷贝设置","app.setting.loading":"正在加载主题","app.setting.copyinfo":"拷贝成功,请到 src/defaultSettings.js 中替换默认配置","app.setting.production.hint":"配置栏只在开发环境用于预览,生产环境不会展现,请拷贝后手动修改配置文件"},hwt=z({},fwt),pwt={"app.setting.pagestyle":"整體風格設置","app.setting.pagestyle.dark":"暗色菜單風格","app.setting.pagestyle.realdark":"暗色風格(实验功能)","app.setting.pagestyle.light":"亮色菜單風格","app.setting.content-width":"內容區域寬度","app.setting.content-width.fixed":"定寬","app.setting.content-width.fluid":"流式","app.setting.themecolor":"主題色","app.setting.themecolor.dust":"薄暮","app.setting.themecolor.volcano":"火山","app.setting.themecolor.sunset":"日暮","app.setting.themecolor.cyan":"明青","app.setting.themecolor.green":"極光綠","app.setting.themecolor.techBlue":"科技蓝(默認)","app.setting.themecolor.daybreak":"拂曉藍","app.setting.themecolor.geekblue":"極客藍","app.setting.themecolor.purple":"醬紫","app.setting.navigationmode":"導航模式","app.setting.sidemenu":"側邊菜單布局","app.setting.topmenu":"頂部菜單布局","app.setting.mixmenu":"混合菜單布局","app.setting.splitMenus":"自动分割菜单","app.setting.fixedheader":"固定 Header","app.setting.fixedsidebar":"固定側邊菜單","app.setting.fixedsidebar.hint":"側邊菜單布局時可配置","app.setting.hideheader":"下滑時隱藏 Header","app.setting.hideheader.hint":"固定 Header 時可配置","app.setting.othersettings":"其他設置","app.setting.weakmode":"色弱模式","app.setting.copy":"拷貝設置","app.setting.loading":"正在加載主題","app.setting.copyinfo":"拷貝成功,請到 src/defaultSettings.js 中替換默認配置","app.setting.production.hint":"配置欄只在開發環境用於預覽,生產環境不會展現,請拷貝後手動修改配置文件"},mwt=z({},pwt);var wq={"zh-CN":hwt,"zh-TW":mwt,"en-US":swt,"it-IT":cwt,"ko-KR":dwt},gwt=function(){if(!cj())return"zh-CN";var t=window.localStorage.getItem("umi_locale");return t||window.g_locale||navigator.language},vwt=function(){var t=gwt();return wq[t]||wq["zh-CN"]},zf={};Object.defineProperty(zf,"__esModule",{value:!0});zf.TokenData=void 0;zf.parse=Zj;zf.compile=wwt;var S8=zf.match=Ewt;zf.pathToRegexp=Vde;zf.stringify=Pwt;const Xj="/",Qj=e=>e,Ude=/^[$_\p{ID_Start}]$/u,Jj=/^[$\u200c\u200d\p{ID_Continue}]$/u,DE="https://git.new/pathToRegexpError",ywt={"{":"{","}":"}","(":"(",")":")","[":"[","]":"]","+":"+","?":"?","!":"!"};function bwt(e){return e.replace(/[{}()\[\]+?!:*]/g,"\\$&")}function Oc(e){return e.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}function*Swt(e){const t=[...e];let n=0;function r(){let o="";if(Ude.test(t[++n]))for(o+=t[n];Jj.test(t[++n]);)o+=t[n];else if(t[n]==='"'){let i=n;for(;nxwt(o,t,n));return o=>{const i=[""];for(const a of r){const[s,...l]=a(o);i[0]+=s,i.push(...l)}return i}}function xwt(e,t,n){if(e.type==="text")return()=>[e.value];if(e.type==="group"){const o=Wde(e.tokens,t,n);return i=>{const[a,...s]=o(i);return s.length?[""]:[a]}}const r=n||Qj;return e.type==="wildcard"&&n!==!1?o=>{const i=o[e.name];if(i==null)return["",e.name];if(!Array.isArray(i)||i.length===0)throw new TypeError(`Expected "${e.name}" to be a non-empty array`);return[i.map((a,s)=>{if(typeof a!="string")throw new TypeError(`Expected "${e.name}/${s}" to be a string`);return r(a)}).join(t)]}:o=>{const i=o[e.name];if(i==null)return["",e.name];if(typeof i!="string")throw new TypeError(`Expected "${e.name}" to be a string`);return[r(i)]}}function Ewt(e,t={}){const{decode:n=decodeURIComponent,delimiter:r=Xj}=t,{regexp:o,keys:i}=Vde(e,t),a=i.map(s=>n===!1?Qj:s.type==="param"?n:l=>l.split(r).map(n));return function(l){const c=o.exec(l);if(!c)return!1;const u=c[0],f=Object.create(null);for(let h=1;hp instanceof rO?p:Zj(p,t));for(const{tokens:p}of u)for(const m of gx(p,0,[])){const g=_wt(m,n,a);s.push(g)}let f=`^(?:${s.join("|")})`;return i&&(f+=`(?:${Oc(n)}$)?`),f+=r?"$":`(?=${Oc(n)}|$)`,{regexp:new RegExp(f,l),keys:a}}function*gx(e,t,n){if(t===e.length)return yield n;const r=e[t];if(r.type==="group"){const o=n.slice();for(const i of gx(r.tokens,0,o))yield*gx(e,t+1,i)}else n.push(r);yield*gx(e,t+1,n)}function _wt(e,t,n){let r="",o="",i=!0;for(let a=0;aJj.test(r)):!1}function Mwt(e){return(e==null?void 0:e.type)!=="text"?!0:!Jj.test(e.value[0])}var Twt=function(t,n,r){if(r){var o=Ze(r.keys()).find(function(a){try{return a.startsWith("http")?!1:S8(a)(t)}catch(s){return console.log("key",a,s),!1}});if(o)return r.get(o)}if(n){var i=Object.keys(n).find(function(a){try{return a!=null&&a.startsWith("http")?!1:S8(a)(t)}catch(s){return console.log("key",a,s),!1}});if(i)return n[i]}return{path:""}},xq=function(t,n){var r=t.pathname,o=r===void 0?"/":r,i=t.breadcrumb,a=t.breadcrumbMap,s=t.formatMessage,l=t.title,c=t.menu,u=c===void 0?{locale:!1}:c,f=n?"":l||"",h=Twt(o,i,a);if(!h)return{title:f,id:"",pageName:f};var p=h.name;return u.locale!==!1&&h.locale&&s&&(p=s({id:h.locale||"",defaultMessage:h.name})),p?n||!l?{title:p,id:h.locale||"",pageName:p}:{title:"".concat(p," - ").concat(l),id:h.locale||"",pageName:p}:{title:f,id:h.locale||"",pageName:f}},ma={};function C8(e){"@babel/helpers - typeof";return C8=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},C8(e)}Object.defineProperty(ma,"__esModule",{value:!0});var Xy=ma.pathToRegexp=ma.tokensToRegexp=ma.regexpToFunction=ma.match=ma.tokensToFunction=ma.compile=ma.parse=void 0;function Rwt(e){for(var t=[],n=0;n=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122||a===95){o+=e[i++];continue}break}if(!o)throw new TypeError("Missing parameter name at "+n);t.push({type:"NAME",index:n,value:o}),n=i;continue}if(r==="("){var s=1,l="",i=n+1;if(e[i]==="?")throw new TypeError('Pattern cannot start with "?" at '+i);for(;i-1:w===void 0;o||(p+="(?:"+h+"(?="+f+"))?"),E||(p+="(?="+h+"|"+f+")")}return new RegExp(p,tF(n))}ma.tokensToRegexp=Gde;function nF(e,t,n){return e instanceof RegExp?Nwt(e,t):Array.isArray(e)?Awt(e,t,n):Dwt(e,t,n)}Xy=ma.pathToRegexp=nF;function Wc(e,t){return t>>>e|t<<32-e}function jwt(e,t,n){return e&t^~e&n}function Fwt(e,t,n){return e&t^e&n^t&n}function Lwt(e){return Wc(2,e)^Wc(13,e)^Wc(22,e)}function Bwt(e){return Wc(6,e)^Wc(11,e)^Wc(25,e)}function zwt(e){return Wc(7,e)^Wc(18,e)^e>>>3}function Hwt(e){return Wc(17,e)^Wc(19,e)^e>>>10}function Uwt(e,t){return e[t&15]+=Hwt(e[t+14&15])+e[t+9&15]+zwt(e[t+1&15])}var Wwt=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],no,Qi,ci,Vwt="0123456789abcdef";function Eq(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function Kwt(){no=new Array(8),Qi=new Array(2),ci=new Array(64),Qi[0]=Qi[1]=0,no[0]=1779033703,no[1]=3144134277,no[2]=1013904242,no[3]=2773480762,no[4]=1359893119,no[5]=2600822924,no[6]=528734635,no[7]=1541459225}function w8(){var e,t,n,r,o,i,a,s,l,c,u=new Array(16);e=no[0],t=no[1],n=no[2],r=no[3],o=no[4],i=no[5],a=no[6],s=no[7];for(var f=0;f<16;f++)u[f]=ci[(f<<2)+3]|ci[(f<<2)+2]<<8|ci[(f<<2)+1]<<16|ci[f<<2]<<24;for(var h=0;h<64;h++)l=s+Bwt(o)+jwt(o,i,a)+Wwt[h],h<16?l+=u[h]:l+=Uwt(u,h),c=Lwt(e)+Fwt(e,t,n),s=a,a=i,i=o,o=Eq(r,l),r=n,n=t,t=e,e=Eq(l,c);no[0]+=e,no[1]+=t,no[2]+=n,no[3]+=r,no[4]+=o,no[5]+=i,no[6]+=a,no[7]+=s}function qwt(e,t){var n,r,o=0;r=Qi[0]>>3&63;var i=t&63;for((Qi[0]+=t<<3)>29,n=0;n+63>3&63;if(ci[e++]=128,e<=56)for(var t=e;t<56;t++)ci[t]=0;else{for(var n=e;n<64;n++)ci[n]=0;w8();for(var r=0;r<56;r++)ci[r]=0}ci[56]=Qi[1]>>>24&255,ci[57]=Qi[1]>>>16&255,ci[58]=Qi[1]>>>8&255,ci[59]=Qi[1]&255,ci[60]=Qi[0]>>>24&255,ci[61]=Qi[0]>>>16&255,ci[62]=Qi[0]>>>8&255,ci[63]=Qi[0]&255,w8()}function Ywt(){for(var e=new String,t=0;t<8;t++)for(var n=28;n>=0;n-=4)e+=Vwt.charAt(no[t]>>>n&15);return e}function Xwt(e){return Kwt(),qwt(e,e.length),Gwt(),Ywt()}function x8(e){"@babel/helpers - typeof";return x8=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},x8(e)}var Qwt=["pro_layout_parentKeys","children","icon","flatMenu","indexRoute","routes"];function Jwt(e,t){return txt(e)||ext(e,t)||rF(e,t)||Zwt()}function Zwt(){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 ext(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,i=!1,a,s;try{for(n=n.call(e);!(o=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));o=!0);}catch(l){i=!0,s=l}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw s}}return r}}function txt(e){if(Array.isArray(e))return e}function nxt(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=rF(e))||t){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,a=!1,s;return{s:function(){n=n.call(e)},n:function(){var c=n.next();return i=c.done,c},e:function(c){a=!0,s=c},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(a)throw s}}}}function rxt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oxt(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function uxt(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function l1(e,t){return l1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},l1(e,t)}function c1(e){return c1=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},c1(e)}function _q(e){return hxt(e)||fxt(e)||rF(e)||dxt()}function dxt(){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 rF(e,t){if(e){if(typeof e=="string")return _8(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _8(e,t)}}function fxt(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function hxt(e){if(Array.isArray(e))return _8(e)}function _8(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function mxt(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}function $q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ui(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"/";return t.endsWith("/*")?t.replace("/*","/"):(t||n).startsWith("/")||oF(t)?t:"/".concat(n,"/").concat(t).replace(/\/\//g,"/").replace(/\/\//g,"/")},bxt=function(t,n){var r=t.menu,o=r===void 0?{}:r,i=t.indexRoute,a=t.path,s=a===void 0?"":a,l=t.children||[],c=o.name,u=c===void 0?t.name:c,f=o.icon,h=f===void 0?t.icon:f,p=o.hideChildren,m=p===void 0?t.hideChildren:p,g=o.flatMenu,v=g===void 0?t.flatMenu:g,b=i&&Object.keys(i).join(",")!=="redirect"?[ui({path:s,menu:o},i)].concat(l||[]):l,y=ui({},t);if(u&&(y.name=u),h&&(y.icon=h),b&&b.length){if(m)return delete y.children,y;var S=iF(ui(ui({},n),{},{data:b}),t);if(v)return S;delete y[ws]}return y},Zh=function(t){return Array.isArray(t)&&t.length>0};function iF(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{path:"/"},n=e.data,r=e.formatMessage,o=e.parentName,i=e.locale;return!n||!Array.isArray(n)?[]:n.filter(function(a){return a?Zh(a.children)||a.path||a.originPath||a.layout?!0:(a.redirect||a.unaccessible,!1):!1}).filter(function(a){var s,l;return!(a==null||(s=a.menu)===null||s===void 0)&&s.name||a!=null&&a.flatMenu||!(a==null||(l=a.menu)===null||l===void 0)&&l.flatMenu?!0:a.menu!==!1}).map(function(a){var s=ui(ui({},a),{},{path:a.path||a.originPath});return!s.children&&s[ws]&&(s.children=s[ws],delete s[ws]),s.unaccessible&&delete s.name,s.path==="*"&&(s.path="."),s.path==="/*"&&(s.path="."),!s.path&&s.originPath&&(s.path=s.originPath),s}).map(function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{path:"/"},s=a.children||a[ws]||[],l=Xde(a.path,t?t.path:"/"),c=a.name,u=yxt(a,o||"menu"),f=u!==!1&&i!==!1&&r&&u?r({id:u,defaultMessage:c}):c,h=t.pro_layout_parentKeys,p=h===void 0?[]:h;t.children,t.icon,t.flatMenu,t.indexRoute,t.routes;var m=pxt(t,Qwt),g=new Set([].concat(_q(p),_q(a.parentKeys||[])));t.key&&g.add(t.key);var v=ui(ui(ui({},m),{},{menu:void 0},a),{},{path:l,locale:u,key:a.key||vxt(ui(ui({},a),{},{path:l})),pro_layout_parentKeys:Array.from(g).filter(function(y){return y&&y!=="/"})});if(f?v.name=f:delete v.name,v.menu===void 0&&delete v.menu,Zh(s)){var b=iF(ui(ui({},e),{},{data:s,parentName:u||""}),v);Zh(b)&&(v.children=b)}return bxt(v,e)}).flat(1)}var Sxt=function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return t.filter(function(n){return n&&(n.name||Zh(n.children))&&!n.hideInMenu&&!n.redirect}).map(function(n){var r=ui({},n),o=r.children||n[ws]||[];if(delete r[ws],Zh(o)&&!r.hideChildrenInMenu&&o.some(function(a){return a&&!!a.name})){var i=e(o);if(i.length)return ui(ui({},r),{},{children:i})}return ui({},n)}).filter(function(n){return n})},Cxt=function(e){axt(n,e);var t=sxt(n);function n(){return rxt(this,n),t.apply(this,arguments)}return ixt(n,[{key:"get",value:function(o){var i;try{var a=nxt(this.entries()),s;try{for(a.s();!(s=a.n()).done;){var l=Jwt(s.value,2),c=l[0],u=l[1],f=TS(c);if(!oF(c)&&Xy(f,[]).test(o)){i=u;break}}}catch(h){a.e(h)}finally{a.f()}}catch{i=void 0}return i}}]),n}(E8(Map)),wxt=function(t){var n=new Cxt,r=function o(i,a){i.forEach(function(s){var l=s.children||s[ws]||[];Zh(l)&&o(l,s);var c=Xde(s.path,a?a.path:"/");n.set(TS(c),s)})};return r(t),n},xxt=function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return t.map(function(n){var r=n.children||n[ws];if(Zh(r)){var o=e(r);if(o.length)return ui({},n)}var i=ui({},n);return delete i[ws],delete i.children,i}).filter(function(n){return n})},Ext=function(t,n,r,o){var i=iF({data:t,formatMessage:r,locale:n}),a=o?xxt(i):Sxt(i),s=wxt(i);return{breadcrumb:s,menuData:a}};function Pq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function X0(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:[],n={};return t.forEach(function(r){var o=X0({},r);if(!(!o||!o.key)){!o.children&&o[ws]&&(o.children=o[ws],delete o[ws]);var i=o.children||[];n[TS(o.path||o.key||"/")]=X0({},o),n[o.key||o.path||"/"]=X0({},o),i&&(n=X0(X0({},n),e(i)))}}),n},Pxt=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;return t.filter(function(o){if(o==="/"&&n==="/")return!0;if(o!=="/"&&o!=="/*"&&o&&!oF(o)){var i=TS(o);try{if(r&&Xy("".concat(i)).test(n)||Xy("".concat(i),[]).test(n)||Xy("".concat(i,"/(.*)")).test(n))return!0}catch{}}return!1}).sort(function(o,i){return o===n?10:i===n?-10:o.substr(1).split("/").length-i.substr(1).split("/").length})},Oxt=function(t,n,r,o){var i=$xt(n),a=Object.keys(i),s=Pxt(a,t||"/",o);return!s||s.length<1?[]:s.map(function(l){var c=i[l]||{pro_layout_parentKeys:"",key:""},u=new Map,f=(c.pro_layout_parentKeys||[]).map(function(h){return u.has(h)?null:(u.set(h,!0),i[h])}).filter(function(h){return h});return c.key&&f.push(c),f}).flat(1)},Mxt=function(t){var n=d.useContext(Yl),r=n.hashId,o=t.style,i=t.prefixCls,a=t.children,s=t.hasPageContainer,l=s===void 0?0:s,c=xe("".concat(i,"-content"),r,Z(Z({},"".concat(i,"-has-header"),t.hasHeader),"".concat(i,"-content-has-page-container"),l>0)),u=t.ErrorBoundary||eZe;return t.ErrorBoundary===!1?N.jsx(ei.Content,{className:c,style:o,children:a}):N.jsx(u,{children:N.jsx(ei.Content,{className:c,style:o,children:a})})},Txt=function(){return N.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 200 200",children:[N.jsxs("defs",{children:[N.jsxs("linearGradient",{x1:"62.1023273%",y1:"0%",x2:"108.19718%",y2:"37.8635764%",id:"linearGradient-1",children:[N.jsx("stop",{stopColor:"#4285EB",offset:"0%"}),N.jsx("stop",{stopColor:"#2EC7FF",offset:"100%"})]}),N.jsxs("linearGradient",{x1:"69.644116%",y1:"0%",x2:"54.0428975%",y2:"108.456714%",id:"linearGradient-2",children:[N.jsx("stop",{stopColor:"#29CDFF",offset:"0%"}),N.jsx("stop",{stopColor:"#148EFF",offset:"37.8600687%"}),N.jsx("stop",{stopColor:"#0A60FF",offset:"100%"})]}),N.jsxs("linearGradient",{x1:"69.6908165%",y1:"-12.9743587%",x2:"16.7228981%",y2:"117.391248%",id:"linearGradient-3",children:[N.jsx("stop",{stopColor:"#FA816E",offset:"0%"}),N.jsx("stop",{stopColor:"#F74A5C",offset:"41.472606%"}),N.jsx("stop",{stopColor:"#F51D2C",offset:"100%"})]}),N.jsxs("linearGradient",{x1:"68.1279872%",y1:"-35.6905737%",x2:"30.4400914%",y2:"114.942679%",id:"linearGradient-4",children:[N.jsx("stop",{stopColor:"#FA8E7D",offset:"0%"}),N.jsx("stop",{stopColor:"#F74A5C",offset:"51.2635191%"}),N.jsx("stop",{stopColor:"#F51D2C",offset:"100%"})]})]}),N.jsx("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd",children:N.jsx("g",{transform:"translate(-20.000000, -20.000000)",children:N.jsx("g",{transform:"translate(20.000000, 20.000000)",children:N.jsxs("g",{children:[N.jsxs("g",{fillRule:"nonzero",children:[N.jsxs("g",{children:[N.jsx("path",{d:"M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C99.2571609,26.9692191 101.032305,26.9692191 102.20193,28.1378823 L129.985225,55.8983314 C134.193707,60.1033528 141.017005,60.1033528 145.225487,55.8983314 C149.433969,51.69331 149.433969,44.8756232 145.225487,40.6706018 L108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z",fill:"url(#linearGradient-1)"}),N.jsx("path",{d:"M91.5880863,4.17652823 L4.17996544,91.5127728 C-0.519240605,96.2081146 -0.519240605,103.791885 4.17996544,108.487227 L91.5880863,195.823472 C96.2872923,200.518814 103.877304,200.518814 108.57651,195.823472 L145.225487,159.204632 C149.433969,154.999611 149.433969,148.181924 145.225487,143.976903 C141.017005,139.771881 134.193707,139.771881 129.985225,143.976903 L102.20193,171.737352 C101.032305,172.906015 99.2571609,172.906015 98.0875359,171.737352 L28.285908,101.993122 C27.1162831,100.824459 27.1162831,99.050775 28.285908,97.8821118 L98.0875359,28.1378823 C100.999864,25.6271836 105.751642,20.541824 112.729652,19.3524487 C117.915585,18.4685261 123.585219,20.4140239 129.738554,25.1889424 C125.624663,21.0784292 118.571995,14.0340304 108.58055,4.05574592 C103.862049,-0.537986846 96.2692618,-0.500797906 91.5880863,4.17652823 Z",fill:"url(#linearGradient-2)"})]}),N.jsx("path",{d:"M153.685633,135.854579 C157.894115,140.0596 164.717412,140.0596 168.925894,135.854579 L195.959977,108.842726 C200.659183,104.147384 200.659183,96.5636133 195.960527,91.8688194 L168.690777,64.7181159 C164.472332,60.5180858 157.646868,60.5241425 153.435895,64.7316526 C149.227413,68.936674 149.227413,75.7543607 153.435895,79.9593821 L171.854035,98.3623765 C173.02366,99.5310396 173.02366,101.304724 171.854035,102.473387 L153.685633,120.626849 C149.47715,124.83187 149.47715,131.649557 153.685633,135.854579 Z",fill:"url(#linearGradient-3)"})]}),N.jsx("ellipse",{fill:"url(#linearGradient-4)",cx:"100.519339",cy:"100.436681",rx:"23.6001926",ry:"23.580786"})]})})})})]})},Oq=new Gn("antBadgeLoadingCircle",{"0%":{display:"none",opacity:0,overflow:"hidden"},"80%":{overflow:"hidden"},"100%":{display:"unset",opacity:1}}),Rxt=function(t){var n,r,o,i,a,s,l,c,u,f,h,p;return Z({},"".concat(t.proComponentsCls,"-layout"),Z(Z(Z({},"".concat(t.antCls,"-layout-sider").concat(t.componentCls),{background:((n=t.layout)===null||n===void 0||(n=n.sider)===null||n===void 0?void 0:n.colorMenuBackground)||"transparent"}),t.componentCls,Z(Z(Z(Z(Z(Z(Z(Z(Z({position:"relative",boxSizing:"border-box","&-menu":{position:"relative",zIndex:10,minHeight:"100%"}},"& ".concat(t.antCls,"-layout-sider-children"),{position:"relative",display:"flex",flexDirection:"column",height:"100%",paddingInline:(r=t.layout)===null||r===void 0||(r=r.sider)===null||r===void 0?void 0:r.paddingInlineLayoutMenu,paddingBlock:(o=t.layout)===null||o===void 0||(o=o.sider)===null||o===void 0?void 0:o.paddingBlockLayoutMenu,borderInlineEnd:"1px solid ".concat(t.colorSplit),marginInlineEnd:-1}),"".concat(t.antCls,"-menu"),Z(Z({},"".concat(t.antCls,"-menu-item-group-title"),{fontSize:t.fontSizeSM,paddingBottom:4}),"".concat(t.antCls,"-menu-item:not(").concat(t.antCls,"-menu-item-selected):hover"),{color:(i=t.layout)===null||i===void 0||(i=i.sider)===null||i===void 0?void 0:i.colorTextMenuItemHover})),"&-logo",{position:"relative",display:"flex",alignItems:"center",justifyContent:"space-between",paddingInline:12,paddingBlock:16,color:(a=t.layout)===null||a===void 0||(a=a.sider)===null||a===void 0?void 0:a.colorTextMenu,cursor:"pointer",borderBlockEnd:"1px solid ".concat((s=t.layout)===null||s===void 0||(s=s.sider)===null||s===void 0?void 0:s.colorMenuItemDivider),"> a":{display:"flex",alignItems:"center",justifyContent:"center",minHeight:22,fontSize:22,"> img":{display:"inline-block",height:22,verticalAlign:"middle"},"> h1":{display:"inline-block",height:22,marginBlock:0,marginInlineEnd:0,marginInlineStart:6,color:(l=t.layout)===null||l===void 0||(l=l.sider)===null||l===void 0?void 0:l.colorTextMenuTitle,animationName:Oq,animationDuration:".4s",animationTimingFunction:"ease",fontWeight:600,fontSize:16,lineHeight:"22px",verticalAlign:"middle"}},"&-collapsed":Z({flexDirection:"column-reverse",margin:0,padding:12},"".concat(t.proComponentsCls,"-layout-apps-icon"),{marginBlockEnd:8,fontSize:16,transition:"font-size 0.2s ease-in-out,color 0.2s ease-in-out"})}),"&-actions",{display:"flex",alignItems:"center",justifyContent:"space-between",marginBlock:4,marginInline:0,color:(c=t.layout)===null||c===void 0||(c=c.sider)===null||c===void 0?void 0:c.colorTextMenu,"&-collapsed":{flexDirection:"column-reverse",paddingBlock:0,paddingInline:8,fontSize:16,transition:"font-size 0.3s ease-in-out"},"&-list":{color:(u=t.layout)===null||u===void 0||(u=u.sider)===null||u===void 0?void 0:u.colorTextMenuSecondary,"&-collapsed":{marginBlockEnd:8,animationName:"none"},"&-item":{paddingInline:6,paddingBlock:6,lineHeight:"16px",fontSize:16,cursor:"pointer",borderRadius:t.borderRadius,"&:hover":{background:t.colorBgTextHover}}},"&-avatar":{fontSize:14,paddingInline:8,paddingBlock:8,display:"flex",alignItems:"center",gap:t.marginXS,borderRadius:t.borderRadius,"& *":{cursor:"pointer"},"&:hover":{background:t.colorBgTextHover}}}),"&-hide-menu-collapsed",{insetInlineStart:"-".concat(t.proLayoutCollapsedWidth-12,"px"),position:"absolute"}),"&-extra",{marginBlockEnd:16,marginBlock:0,marginInline:16,"&-no-logo":{marginBlockStart:16}}),"&-links",{width:"100%",ul:{height:"auto"}}),"&-link-menu",{border:"none",boxShadow:"none",background:"transparent"}),"&-footer",{color:(f=t.layout)===null||f===void 0||(f=f.sider)===null||f===void 0?void 0:f.colorTextMenuSecondary,paddingBlockEnd:16,fontSize:t.fontSize,animationName:Oq,animationDuration:".4s",animationTimingFunction:"ease"})),"".concat(t.componentCls).concat(t.componentCls,"-fixed"),{position:"fixed",insetBlockStart:0,insetInlineStart:0,zIndex:"100",height:"100%","&-mix":{height:"calc(100% - ".concat(((h=t.layout)===null||h===void 0||(h=h.header)===null||h===void 0?void 0:h.heightLayoutHeader)||56,"px)"),insetBlockStart:"".concat(((p=t.layout)===null||p===void 0||(p=p.header)===null||p===void 0?void 0:p.heightLayoutHeader)||56,"px")}}))};function Ixt(e,t){var n=t.proLayoutCollapsedWidth;return Zr("ProLayoutSiderMenu",function(r){var o=z(z({},r),{},{componentCls:".".concat(e),proLayoutCollapsedWidth:n});return[Rxt(o)]})}var Mq=function(t){var n,r=t.isMobile,o=t.siderWidth,i=t.collapsed,a=t.onCollapse,s=t.style,l=t.className,c=t.hide,u=t.prefixCls,f=t.getContainer,h=d.useContext(Yl),p=h.token;d.useEffect(function(){r===!0&&(a==null||a(!0))},[r]);var m=Yn(t,["className","style"]),g=de.useContext(Mn.ConfigContext),v=g.direction,b=Ixt("".concat(u,"-sider"),{proLayoutCollapsedWidth:64}),y=b.wrapSSR,S=b.hashId,w=xe("".concat(u,"-sider"),l,S);if(c)return null;var E=TP(!i,function(){return a==null?void 0:a(!0)});return y(r?N.jsx(dP,z(z({placement:v==="rtl"?"right":"left",className:xe("".concat(u,"-drawer-sider"),l)},E),{},{style:z({padding:0,height:"100vh"},s),onClose:function(){a==null||a(!0)},maskClosable:!0,closable:!1,getContainer:f||!1,width:o,styles:{body:{height:"100vh",padding:0,display:"flex",flexDirection:"row",backgroundColor:(n=p.layout)===null||n===void 0||(n=n.sider)===null||n===void 0?void 0:n.colorMenuBackground}},children:N.jsx(Sq,z(z({},m),{},{isMobile:!0,className:w,collapsed:r?!1:i,splitMenus:!1,originCollapsed:i}))})):N.jsx(Sq,z(z({className:w,originCollapsed:i},m),{},{style:s})))},kxt=function(){var t;return typeof process>"u"?td:((t=process)===null||t===void 0||(t=t.env)===null||t===void 0?void 0:t.ANTD_VERSION)||td},Nxt=function(t){var n,r,o,i,a,s,l,c,u,f,h,p,m,g,v,b,y,S,w,E,C,x,_,P,O,I,M,T,D,A,j,k;return(n=kxt())!==null&&n!==void 0&&n.startsWith("5")?{}:Z(Z(Z({},t.componentCls,Z(Z({width:"100%",height:"100%"},"".concat(t.proComponentsCls,"-base-menu"),(C={color:(r=t.layout)===null||r===void 0||(r=r.sider)===null||r===void 0?void 0:r.colorTextMenu},Z(Z(Z(Z(Z(Z(Z(Z(Z(Z(C,"".concat(t.antCls,"-menu-sub"),{backgroundColor:"transparent!important",color:(o=t.layout)===null||o===void 0||(o=o.sider)===null||o===void 0?void 0:o.colorTextMenu}),"& ".concat(t.antCls,"-layout"),{backgroundColor:"transparent",width:"100%"}),"".concat(t.antCls,"-menu-submenu-expand-icon, ").concat(t.antCls,"-menu-submenu-arrow"),{color:"inherit"}),"&".concat(t.antCls,"-menu"),Z(Z({color:(i=t.layout)===null||i===void 0||(i=i.sider)===null||i===void 0?void 0:i.colorTextMenu},"".concat(t.antCls,"-menu-item"),{"*":{transition:"none !important"}}),"".concat(t.antCls,"-menu-item a"),{color:"inherit"})),"&".concat(t.antCls,"-menu-inline"),Z({},"".concat(t.antCls,"-menu-selected::after,").concat(t.antCls,"-menu-item-selected::after"),{display:"none"})),"".concat(t.antCls,"-menu-sub ").concat(t.antCls,"-menu-inline"),{backgroundColor:"transparent!important"}),"".concat(t.antCls,`-menu-item:active, `).concat(t.antCls,"-menu-submenu-title:active"),{backgroundColor:"transparent!important"}),"&".concat(t.antCls,"-menu-light"),Z({},"".concat(t.antCls,`-menu-item:hover, `).concat(t.antCls,`-menu-item-active, `).concat(t.antCls,`-menu-submenu-active, `).concat(t.antCls,"-menu-submenu-title:hover"),Z({color:(a=t.layout)===null||a===void 0||(a=a.sider)===null||a===void 0?void 0:a.colorTextMenuActive,borderRadius:t.borderRadius},"".concat(t.antCls,"-menu-submenu-arrow"),{color:(s=t.layout)===null||s===void 0||(s=s.sider)===null||s===void 0?void 0:s.colorTextMenuActive}))),"&".concat(t.antCls,"-menu:not(").concat(t.antCls,"-menu-horizontal)"),Z(Z({},"".concat(t.antCls,"-menu-item-selected"),{backgroundColor:(l=t.layout)===null||l===void 0||(l=l.sider)===null||l===void 0?void 0:l.colorBgMenuItemSelected,borderRadius:t.borderRadius}),"".concat(t.antCls,`-menu-item:hover, `).concat(t.antCls,`-menu-item-active, `).concat(t.antCls,"-menu-submenu-title:hover"),Z({color:(c=t.layout)===null||c===void 0||(c=c.sider)===null||c===void 0?void 0:c.colorTextMenuActive,borderRadius:t.borderRadius,backgroundColor:"".concat((u=t.layout)===null||u===void 0||(u=u.header)===null||u===void 0?void 0:u.colorBgMenuItemHover," !important")},"".concat(t.antCls,"-menu-submenu-arrow"),{color:(f=t.layout)===null||f===void 0||(f=f.sider)===null||f===void 0?void 0:f.colorTextMenuActive}))),"".concat(t.antCls,"-menu-item-selected"),{color:(h=t.layout)===null||h===void 0||(h=h.sider)===null||h===void 0?void 0:h.colorTextMenuSelected}),Z(Z(Z(Z(Z(C,"".concat(t.antCls,"-menu-submenu-selected"),{color:(p=t.layout)===null||p===void 0||(p=p.sider)===null||p===void 0?void 0:p.colorTextMenuSelected}),"&".concat(t.antCls,"-menu:not(").concat(t.antCls,"-menu-inline) ").concat(t.antCls,"-menu-submenu-open"),{color:(m=t.layout)===null||m===void 0||(m=m.sider)===null||m===void 0?void 0:m.colorTextMenuSelected}),"&".concat(t.antCls,"-menu-vertical"),Z({},"".concat(t.antCls,"-menu-submenu-selected"),{borderRadius:t.borderRadius,color:(g=t.layout)===null||g===void 0||(g=g.sider)===null||g===void 0?void 0:g.colorTextMenuSelected})),"".concat(t.antCls,"-menu-submenu:hover > ").concat(t.antCls,"-menu-submenu-title > ").concat(t.antCls,"-menu-submenu-arrow"),{color:(v=t.layout)===null||v===void 0||(v=v.sider)===null||v===void 0?void 0:v.colorTextMenuActive}),"&".concat(t.antCls,"-menu-horizontal"),Z(Z(Z(Z({},"".concat(t.antCls,`-menu-item:hover, `).concat(t.antCls,`-menu-submenu:hover, `).concat(t.antCls,`-menu-item-active, `).concat(t.antCls,"-menu-submenu-active"),{borderRadius:4,transition:"none",color:(b=t.layout)===null||b===void 0||(b=b.header)===null||b===void 0?void 0:b.colorTextMenuActive,backgroundColor:"".concat((y=t.layout)===null||y===void 0||(y=y.header)===null||y===void 0?void 0:y.colorBgMenuItemHover," !important")}),"".concat(t.antCls,`-menu-item-open, `).concat(t.antCls,`-menu-submenu-open, `).concat(t.antCls,`-menu-item-selected, `).concat(t.antCls,"-menu-submenu-selected"),Z({backgroundColor:(S=t.layout)===null||S===void 0||(S=S.header)===null||S===void 0?void 0:S.colorBgMenuItemSelected,borderRadius:t.borderRadius,transition:"none",color:"".concat((w=t.layout)===null||w===void 0||(w=w.header)===null||w===void 0?void 0:w.colorTextMenuSelected," !important")},"".concat(t.antCls,"-menu-submenu-arrow"),{color:"".concat((E=t.layout)===null||E===void 0||(E=E.header)===null||E===void 0?void 0:E.colorTextMenuSelected," !important")})),"> ".concat(t.antCls,"-menu-item, > ").concat(t.antCls,"-menu-submenu"),{paddingInline:16,marginInline:4}),"> ".concat(t.antCls,"-menu-item::after, > ").concat(t.antCls,"-menu-submenu::after"),{display:"none"})))),"".concat(t.proComponentsCls,"-top-nav-header-base-menu"),Z(Z({},"&".concat(t.antCls,"-menu"),Z({color:(x=t.layout)===null||x===void 0||(x=x.header)===null||x===void 0?void 0:x.colorTextMenu},"".concat(t.antCls,"-menu-item a"),{color:"inherit"})),"&".concat(t.antCls,"-menu-light"),Z(Z({},"".concat(t.antCls,`-menu-item:hover, `).concat(t.antCls,`-menu-item-active, `).concat(t.antCls,`-menu-submenu-active, `).concat(t.antCls,"-menu-submenu-title:hover"),Z({color:(_=t.layout)===null||_===void 0||(_=_.header)===null||_===void 0?void 0:_.colorTextMenuActive,borderRadius:t.borderRadius,transition:"none",backgroundColor:(P=t.layout)===null||P===void 0||(P=P.header)===null||P===void 0?void 0:P.colorBgMenuItemSelected},"".concat(t.antCls,"-menu-submenu-arrow"),{color:(O=t.layout)===null||O===void 0||(O=O.header)===null||O===void 0?void 0:O.colorTextMenuActive})),"".concat(t.antCls,"-menu-item-selected"),{color:(I=t.layout)===null||I===void 0||(I=I.header)===null||I===void 0?void 0:I.colorTextMenuSelected,borderRadius:t.borderRadius,backgroundColor:(M=t.layout)===null||M===void 0||(M=M.header)===null||M===void 0?void 0:M.colorBgMenuItemSelected})))),"".concat(t.antCls,"-menu-sub").concat(t.antCls,"-menu-inline"),{backgroundColor:"transparent!important"}),"".concat(t.antCls,"-menu-submenu-popup"),Z(Z(Z(Z({backgroundColor:"rgba(255, 255, 255, 0.42)","-webkit-backdrop-filter":"blur(8px)",backdropFilter:"blur(8px)"},"".concat(t.antCls,"-menu"),Z({background:"transparent !important",backgroundColor:"transparent !important"},"".concat(t.antCls,`-menu-item:active, `).concat(t.antCls,"-menu-submenu-title:active"),{backgroundColor:"transparent!important"})),"".concat(t.antCls,"-menu-item-selected"),{color:(T=t.layout)===null||T===void 0||(T=T.sider)===null||T===void 0?void 0:T.colorTextMenuSelected}),"".concat(t.antCls,"-menu-submenu-selected"),{color:(D=t.layout)===null||D===void 0||(D=D.sider)===null||D===void 0?void 0:D.colorTextMenuSelected}),"".concat(t.antCls,"-menu:not(").concat(t.antCls,"-menu-horizontal)"),Z(Z({},"".concat(t.antCls,"-menu-item-selected"),{backgroundColor:"rgba(0, 0, 0, 0.04)",borderRadius:t.borderRadius,color:(A=t.layout)===null||A===void 0||(A=A.sider)===null||A===void 0?void 0:A.colorTextMenuSelected}),"".concat(t.antCls,`-menu-item:hover, `).concat(t.antCls,`-menu-item-active, `).concat(t.antCls,"-menu-submenu-title:hover"),Z({color:(j=t.layout)===null||j===void 0||(j=j.sider)===null||j===void 0?void 0:j.colorTextMenuActive,borderRadius:t.borderRadius},"".concat(t.antCls,"-menu-submenu-arrow"),{color:(k=t.layout)===null||k===void 0||(k=k.sider)===null||k===void 0?void 0:k.colorTextMenuActive}))))},Axt=function(t){var n,r,o,i;return Z(Z({},"".concat(t.antCls,"-layout"),{backgroundColor:"transparent !important"}),t.componentCls,Z(Z(Z(Z({},"& ".concat(t.antCls,"-layout"),{display:"flex",backgroundColor:"transparent",width:"100%"}),"".concat(t.componentCls,"-content"),{display:"flex",flexDirection:"column",width:"100%",backgroundColor:((n=t.layout)===null||n===void 0||(n=n.pageContainer)===null||n===void 0?void 0:n.colorBgPageContainer)||"transparent",position:"relative",paddingBlock:(r=t.layout)===null||r===void 0||(r=r.pageContainer)===null||r===void 0?void 0:r.paddingBlockPageContainerContent,paddingInline:(o=t.layout)===null||o===void 0||(o=o.pageContainer)===null||o===void 0?void 0:o.paddingInlinePageContainerContent,"&-has-page-container":{padding:0}}),"".concat(t.componentCls,"-container"),{width:"100%",display:"flex",flexDirection:"column",minWidth:0,minHeight:0,backgroundColor:"transparent"}),"".concat(t.componentCls,"-bg-list"),{pointerEvents:"none",position:"fixed",overflow:"hidden",insetBlockStart:0,insetInlineStart:0,zIndex:0,height:"100%",width:"100%",background:(i=t.layout)===null||i===void 0?void 0:i.bgLayout}))};function Dxt(e){return Zr("ProLayout",function(t){var n=z(z({},t),{},{componentCls:".".concat(e)});return[Axt(n),Nxt(n)]})}function jxt(e){if(!e||e==="/")return["/"];var t=e.split("/").filter(function(n){return n});return t.map(function(n,r){return"/".concat(t.slice(0,r+1).join("/"))})}var Fxt=function(){var t;return typeof process>"u"?td:((t=process)===null||t===void 0||(t=t.env)===null||t===void 0?void 0:t.ANTD_VERSION)||td},Lxt=function(t,n,r){var o=t,i=o.breadcrumbName,a=o.title,s=o.path,l=r.findIndex(function(c){return c.linkPath===t.path})===r.length-1;return l?N.jsx("span",{children:a||i}):N.jsx("span",{onClick:s?function(){return location.href=s}:void 0,children:a||i})},Bxt=function(t,n){var r=n.formatMessage,o=n.menu;return t.locale&&r&&(o==null?void 0:o.locale)!==!1?r({id:t.locale,defaultMessage:t.name}):t.name},zxt=function(t,n){var r=t.get(n);if(!r){var o=Array.from(t.keys())||[],i=o.find(function(a){try{return a!=null&&a.startsWith("http")?!1:S8(a.replace("?",""))(n)}catch(s){return console.log("path",a,s),!1}});i&&(r=t.get(i))}return r||{path:""}},Hxt=function(t){var n=t.location,r=t.breadcrumbMap;return{location:n,breadcrumbMap:r}},Uxt=function(t,n,r){var o=jxt(t==null?void 0:t.pathname),i=o.map(function(a){var s=zxt(n,a),l=Bxt(s,r),c=s.hideInBreadcrumb;return l&&!c?{linkPath:a,breadcrumbName:l,title:l,component:s.component}:{linkPath:"",breadcrumbName:"",title:""}}).filter(function(a){return a&&a.linkPath});return i},Wxt=function(t){var n=Hxt(t),r=n.location,o=n.breadcrumbMap;return r&&r.pathname&&o?Uxt(r,o,t):[]},Vxt=function(t,n){var r=t.breadcrumbRender,o=t.itemRender,i=n.breadcrumbProps||{},a=i.minLength,s=a===void 0?2:a,l=Wxt(t),c=function(h){for(var p=o||Lxt,m=arguments.length,g=new Array(m>1?m-1:0),v=1;v-1?{items:u,itemRender:c}:{routes:u,itemRender:c}};function Kxt(e){return Ze(e).reduce(function(t,n){var r=$e(n,2),o=r[0],i=r[1];return t[o]=i,t},{})}var qxt=function e(t,n,r,o){var i=Ext(t,(n==null?void 0:n.locale)||!1,r,!0),a=i.menuData,s=i.breadcrumb;return o?e(o(a),n,r,void 0):{breadcrumb:Kxt(s),breadcrumbMap:s,menuData:a}},Gxt=function(t){var n=d.useState({}),r=$e(n,2),o=r[0],i=r[1];return d.useEffect(function(){i(Js({layout:Ht(t.layout)!=="object"?t.layout:void 0,navTheme:t.navTheme,menuRender:t.menuRender,footerRender:t.footerRender,menuHeaderRender:t.menuHeaderRender,headerRender:t.headerRender,fixSiderbar:t.fixSiderbar}))},[t.layout,t.navTheme,t.menuRender,t.footerRender,t.menuHeaderRender,t.headerRender,t.fixSiderbar]),o},Yxt=["id","defaultMessage"],Xxt=["fixSiderbar","navTheme","layout"],Tq=0,Qxt=function(t,n){var r;return t.headerRender===!1||t.pure?null:N.jsx(iwt,z(z({matchMenuKeys:n},t),{},{stylish:(r=t.stylish)===null||r===void 0?void 0:r.header}))},Jxt=function(t){return t.footerRender===!1||t.pure?null:t.footerRender?t.footerRender(z({},t),N.jsx(xCt,{})):null},Zxt=function(t,n){var r,o=t.layout,i=t.isMobile,a=t.selectedKeys,s=t.openKeys,l=t.splitMenus,c=t.suppressSiderWhenMenuEmpty,u=t.menuRender;if(t.menuRender===!1||t.pure)return null;var f=t.menuData;if(l&&(s!==!1||o==="mix")&&!i){var h=a||n,p=$e(h,1),m=p[0];if(m){var g;f=((g=t.menuData)===null||g===void 0||(g=g.find(function(S){return S.key===m}))===null||g===void 0?void 0:g.children)||[]}else f=[]}var v=nO(f||[]);if(v&&(v==null?void 0:v.length)<1&&(l||c))return null;if(o==="top"&&!i){var b;return N.jsx(Mq,z(z({matchMenuKeys:n},t),{},{hide:!0,stylish:(b=t.stylish)===null||b===void 0?void 0:b.sider}))}var y=N.jsx(Mq,z(z({matchMenuKeys:n},t),{},{menuData:v,stylish:(r=t.stylish)===null||r===void 0?void 0:r.sider}));return u?u(t,y):y},e2t=function(t,n){var r=n.pageTitleRender,o=xq(t);if(r===!1)return{title:n.title||"",id:"",pageName:""};if(r){var i=r(t,o.title,o);if(typeof i=="string")return xq(z(z({},o),{},{title:i}));yr(typeof i=="string","pro-layout: renderPageTitle return value should be a string")}return o},t2t=function(t,n,r){return t?n?64:r:0},n2t=function(t){var n,r,o,i,a,s,l,c,u,f,h,p,m,g,v=t||{},b=v.children,y=v.onCollapse,S=v.location,w=S===void 0?{pathname:"/"}:S,E=v.contentStyle,C=v.route,x=v.defaultCollapsed,_=v.style,P=v.siderWidth,O=v.menu,I=v.siderMenuType,M=v.isChildrenLayout,T=v.menuDataRender,D=v.actionRef,A=v.bgLayoutImgList,j=v.formatMessage,k=v.loading,F=d.useMemo(function(){return P||(t.layout==="mix"?215:256)},[t.layout,P]),V=d.useContext(Mn.ConfigContext),W=(n=t.prefixCls)!==null&&n!==void 0?n:V.getPrefixCls("pro"),K=xn(!1,{value:O==null?void 0:O.loading,onChange:O==null?void 0:O.onLoadingChange}),L=$e(K,2),Q=L[0],ee=L[1],re=d.useState(function(){return Tq+=1,"pro-layout-".concat(Tq)}),ie=$e(re,1),G=ie[0],X=d.useCallback(function(at){var $t=at.id,Bt=at.defaultMessage,xt=At(at,Yxt);if(j)return j(z({id:$t,defaultMessage:Bt},xt));var bt=vwt();return bt[$t]?bt[$t]:Bt},[j]),ne=sj([G,O==null?void 0:O.params],function(){var at=Bo(nr().mark(function $t(Bt){var xt,bt,Ft,Re;return nr().wrap(function(tt){for(;;)switch(tt.prev=tt.next){case 0:return bt=$e(Bt,2),Ft=bt[1],ee(!0),tt.next=4,O==null||(xt=O.request)===null||xt===void 0?void 0:xt.call(O,Ft||{},(C==null?void 0:C.children)||(C==null?void 0:C.routes)||[]);case 4:return Re=tt.sent,ee(!1),tt.abrupt("return",Re);case 7:case"end":return tt.stop()}},$t)}));return function($t){return at.apply(this,arguments)}}(),{revalidateOnFocus:!1,shouldRetryOnError:!1,revalidateOnReconnect:!1}),le=ne.data,ce=ne.mutate,oe=ne.isLoading;d.useEffect(function(){ee(oe)},[oe]);var se=aj(),fe=se.cache;d.useEffect(function(){return function(){fe instanceof Map&&fe.delete(G)}},[]);var te=d.useMemo(function(){return qxt(le||(C==null?void 0:C.children)||(C==null?void 0:C.routes)||[],O,X,T)},[X,O,T,le,C==null?void 0:C.children,C==null?void 0:C.routes]),he=te||{},pe=he.breadcrumb,Oe=he.breadcrumbMap,Me=he.menuData,Se=Me===void 0?[]:Me;D&&O!==null&&O!==void 0&&O.request&&(D.current={reload:function(){ce()}});var ye=d.useMemo(function(){return Oxt(w.pathname||"/",Se||[])},[w.pathname,Se]),ve=d.useMemo(function(){return Array.from(new Set(ye.map(function(at){return at.key||at.path||""})))},[ye]),be=ye[ye.length-1]||{},Pe=Gxt(be),Ne=z(z({},t),Pe),U=Ne.fixSiderbar;Ne.navTheme;var H=Ne.layout,q=At(Ne,Xxt),me=ynt(),Ce=d.useMemo(function(){return(me==="sm"||me==="xs")&&!t.disableMobile},[me,t.disableMobile]),ue=H!=="top"&&!Ce,Le=xn(function(){return x!==void 0?x:!!(Ce||me==="md")},{value:t.collapsed,onChange:y}),He=$e(Le,2),ge=He[0],De=He[1],qe=Yn(z(z(z({prefixCls:W},t),{},{siderWidth:F},Pe),{},{formatMessage:X,breadcrumb:pe,menu:z(z({},O),{},{type:I||(O==null?void 0:O.type),loading:Q}),layout:H}),["className","style","breadcrumbRender"]),Fe=e2t(z(z({pathname:w.pathname},qe),{},{breadcrumbMap:Oe}),t),Ke=Vxt(z(z({},qe),{},{breadcrumbRender:t.breadcrumbRender,breadcrumbMap:Oe}),t),Ue=Zxt(z(z({},qe),{},{menuData:Se,onCollapse:De,isMobile:Ce,collapsed:ge}),ve),Ve=Qxt(z(z({},qe),{},{children:null,hasSiderMenu:!!Ue,menuData:Se,isMobile:Ce,collapsed:ge,onCollapse:De}),ve),Tt=Jxt(z({isMobile:Ce,collapsed:ge},qe)),et=d.useContext(cq),st=et.isChildrenLayout,yt=M!==void 0?M:st,gt="".concat(W,"-layout"),Lt=Dxt(gt),St=Lt.wrapSSR,wt=Lt.hashId,Nt=xe(t.className,wt,"ant-design-pro",gt,Z(Z(Z(Z(Z({},"screen-".concat(me),me),"".concat(gt,"-top-menu"),H==="top"),"".concat(gt,"-is-children"),yt),"".concat(gt,"-fix-siderbar"),U),"".concat(gt,"-").concat(H),H)),Be=t2t(!!ue,ge,F),We={position:"relative"};(yt||E&&E.minHeight)&&(We.minHeight=0),d.useEffect(function(){var at;(at=t.onPageChange)===null||at===void 0||at.call(t,t.location)},[w.pathname,(r=w.pathname)===null||r===void 0?void 0:r.search]);var je=d.useState(!1),Xe=$e(je,2),pt=Xe[0],vt=Xe[1],Mt=d.useState(0),Et=$e(Mt,2),ft=Et[0],dt=Et[1];_Ze(Fe,t.title||!1);var Rt=d.useContext(Yl),Ct=Rt.token,Wt=d.useMemo(function(){return A&&A.length>0?A==null?void 0:A.map(function(at,$t){return N.jsx("img",{src:at.src,style:z({position:"absolute"},at)},$t)}):null},[A]);return St(N.jsx(cq.Provider,{value:z(z({},qe),{},{breadcrumb:Ke,menuData:Se,isMobile:Ce,collapsed:ge,hasPageContainer:ft,setHasPageContainer:dt,isChildrenLayout:!0,title:Fe.pageName,hasSiderMenu:!!Ue,hasHeader:!!Ve,siderWidth:Be,hasFooter:!!Tt,hasFooterToolbar:pt,setHasFooterToolbar:vt,pageTitleInfo:Fe,matchMenus:ye,matchMenuKeys:ve,currentMenu:be}),children:t.pure?N.jsx(N.Fragment,{children:b}):N.jsxs("div",{className:Nt,children:[Wt||(o=Ct.layout)!==null&&o!==void 0&&o.bgLayout?N.jsx("div",{className:xe("".concat(gt,"-bg-list"),wt),children:Wt}):null,N.jsxs(ei,{style:z({minHeight:"100%",flexDirection:Ue?"row":void 0},_),children:[N.jsx(Mn,{theme:{hashed:dg(),token:{controlHeightLG:((i=Ct.layout)===null||i===void 0||(i=i.sider)===null||i===void 0?void 0:i.menuHeight)||(Ct==null?void 0:Ct.controlHeightLG)},components:{Menu:kce({colorItemBg:((a=Ct.layout)===null||a===void 0||(a=a.sider)===null||a===void 0?void 0:a.colorMenuBackground)||"transparent",colorSubItemBg:((s=Ct.layout)===null||s===void 0||(s=s.sider)===null||s===void 0?void 0:s.colorMenuBackground)||"transparent",radiusItem:Ct.borderRadius,colorItemBgSelected:((l=Ct.layout)===null||l===void 0||(l=l.sider)===null||l===void 0?void 0:l.colorBgMenuItemSelected)||(Ct==null?void 0:Ct.colorBgTextHover),colorItemBgHover:((c=Ct.layout)===null||c===void 0||(c=c.sider)===null||c===void 0?void 0:c.colorBgMenuItemHover)||(Ct==null?void 0:Ct.colorBgTextHover),colorItemBgActive:((u=Ct.layout)===null||u===void 0||(u=u.sider)===null||u===void 0?void 0:u.colorBgMenuItemActive)||(Ct==null?void 0:Ct.colorBgTextActive),colorItemBgSelectedHorizontal:((f=Ct.layout)===null||f===void 0||(f=f.sider)===null||f===void 0?void 0:f.colorBgMenuItemSelected)||(Ct==null?void 0:Ct.colorBgTextHover),colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemText:((h=Ct.layout)===null||h===void 0||(h=h.sider)===null||h===void 0?void 0:h.colorTextMenu)||(Ct==null?void 0:Ct.colorTextSecondary),colorItemTextHover:((p=Ct.layout)===null||p===void 0||(p=p.sider)===null||p===void 0?void 0:p.colorTextMenuItemHover)||"rgba(0, 0, 0, 0.85)",colorItemTextSelected:((m=Ct.layout)===null||m===void 0||(m=m.sider)===null||m===void 0?void 0:m.colorTextMenuSelected)||"rgba(0, 0, 0, 1)",popupBg:Ct==null?void 0:Ct.colorBgElevated,subMenuItemBg:Ct==null?void 0:Ct.colorBgElevated,darkSubMenuItemBg:"transparent",darkPopupBg:Ct==null?void 0:Ct.colorBgElevated})}},children:Ue}),N.jsxs("div",{style:We,className:"".concat(gt,"-container ").concat(wt).trim(),children:[Ve,N.jsx(Mxt,z(z({hasPageContainer:ft,isChildrenLayout:yt},q),{},{hasHeader:!!Ve,prefixCls:gt,style:E,children:k?N.jsx(yCt,{}):b})),Tt,pt&&N.jsx("div",{className:"".concat(gt,"-has-footer"),style:{height:64,marginBlockStart:(g=Ct.layout)===null||g===void 0||(g=g.pageContainer)===null||g===void 0?void 0:g.paddingBlockPageContainerContent}})]})]})]})}))},Qde=function(t){var n=t.colorPrimary,r=t.navTheme!==void 0?{dark:t.navTheme==="realDark"}:{};return N.jsx(Mn,{theme:n?{token:{colorPrimary:n}}:void 0,children:N.jsx(MP,z(z({},r),{},{token:t.token,prefixCls:t.prefixCls,children:N.jsx(n2t,z(z({logo:N.jsx(Txt,{})},Fde),{},{location:cj()?window.location:void 0},t))}))})};function r2t(){for(var e=arguments.length,t=new Array(e),n=0;nr=>{t.forEach(o=>o(r))},t)}const oO=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function s0(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function aF(e){return"nodeType"in e}function Qa(e){var t,n;return e?s0(e)?e:aF(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function sF(e){const{Document:t}=Qa(e);return e instanceof t}function RS(e){return s0(e)?!1:e instanceof Qa(e).HTMLElement}function Jde(e){return e instanceof Qa(e).SVGElement}function l0(e){return e?s0(e)?e.document:aF(e)?sF(e)?e:RS(e)||Jde(e)?e.ownerDocument:document:document:document}const ad=oO?d.useLayoutEffect:d.useEffect;function lF(e){const t=d.useRef(e);return ad(()=>{t.current=e}),d.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o{e.current=setInterval(r,o)},[]),n=d.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function u1(e,t){t===void 0&&(t=[e]);const n=d.useRef(e);return ad(()=>{n.current!==e&&(n.current=e)},t),n}function IS(e,t){const n=d.useRef();return d.useMemo(()=>{const r=e(n.current);return n.current=r,r},[...t])}function jE(e){const t=lF(e),n=d.useRef(null),r=d.useCallback(o=>{o!==n.current&&(t==null||t(o,n.current)),n.current=o},[]);return[n,r]}function $8(e){const t=d.useRef();return d.useEffect(()=>{t.current=e},[e]),t.current}let GR={};function iO(e,t){return d.useMemo(()=>{if(t)return t;const n=GR[e]==null?0:GR[e]+1;return GR[e]=n,e+"-"+n},[e,t])}function Zde(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o{const s=Object.entries(a);for(const[l,c]of s){const u=i[l];u!=null&&(i[l]=u+e*c)}return i},{...t})}}const fg=Zde(1),FE=Zde(-1);function i2t(e){return"clientX"in e&&"clientY"in e}function cF(e){if(!e)return!1;const{KeyboardEvent:t}=Qa(e.target);return t&&e instanceof t}function a2t(e){if(!e)return!1;const{TouchEvent:t}=Qa(e.target);return t&&e instanceof t}function P8(e){if(a2t(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return i2t(e)?{x:e.clientX,y:e.clientY}:null}const d1=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[d1.Translate.toString(e),d1.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),Rq="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function s2t(e){return e.matches(Rq)?e:e.querySelector(Rq)}const l2t={display:"none"};function c2t(e){let{id:t,value:n}=e;return de.createElement("div",{id:t,style:l2t},n)}function u2t(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;const o={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return de.createElement("div",{id:t,style:o,role:"status","aria-live":r,"aria-atomic":!0},n)}function d2t(){const[e,t]=d.useState("");return{announce:d.useCallback(r=>{r!=null&&t(r)},[]),announcement:e}}async function f2t(){return ko("/kaptcha/api/v1/get",{method:"GET",params:{client:po}})}async function h2t(e,t){return ko("/kaptcha/api/v1/check",{method:"POST",data:{captchaUid:e,captchaCode:t,client:po}})}var O8=function(e,t){return O8=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},O8(e,t)};function bl(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");O8(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var jn=function(){return jn=Object.assign||function(t){for(var n,r=1,o=arguments.length;r"u"&&(i=e.call(this,r),t.set(o,i)),i}function tfe(e,t,n){var r=Array.prototype.slice.call(arguments,3),o=n(r),i=t.get(o);return typeof i>"u"&&(i=e.apply(this,r),t.set(o,i)),i}function uF(e,t,n,r,o){return n.bind(t,e,r,o)}function m2t(e,t){var n=e.length===1?efe:tfe;return uF(e,this,n,t.cache.create(),t.serializer)}function g2t(e,t){return uF(e,this,tfe,t.cache.create(),t.serializer)}function v2t(e,t){return uF(e,this,efe,t.cache.create(),t.serializer)}var y2t=function(){return JSON.stringify(arguments)};function dF(){this.cache=Object.create(null)}dF.prototype.get=function(e){return this.cache[e]};dF.prototype.set=function(e,t){this.cache[e]=t};var b2t={create:function(){return new dF}},va={variadic:g2t,monadic:v2t};function nfe(e,t,n){if(n===void 0&&(n=Error),!e)throw new n(t)}ga(function(){for(var e,t=[],n=0;n0}),n=[],r=0,o=t;r1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(P2t,function(l,c,u,f,h,p){if(c)t.minimumIntegerDigits=u.length;else{if(f&&h)throw new Error("We currently do not support maximum integer digits");if(p)throw new Error("We currently do not support exact integer digits")}return""});continue}if(ffe.test(o.stem)){t.minimumIntegerDigits=o.stem.length;continue}if(kq.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(kq,function(l,c,u,f,h,p){return u==="*"?t.minimumFractionDigits=c.length:f&&f[0]==="#"?t.maximumFractionDigits=f.length:h&&p?(t.minimumFractionDigits=h.length,t.maximumFractionDigits=h.length+p.length):(t.minimumFractionDigits=c.length,t.maximumFractionDigits=c.length),""});var i=o.options[0];i==="w"?t=jn(jn({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=jn(jn({},t),Nq(i)));continue}if(dfe.test(o.stem)){t=jn(jn({},t),Nq(o.stem));continue}var a=hfe(o.stem);a&&(t=jn(jn({},t),a));var s=O2t(o.stem);s&&(t=jn(jn({},t),s))}return t}var dw={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function T2t(e,t){for(var n="",r=0;r>1),l="a",c=R2t(t);for((c=="H"||c=="k")&&(s=0);s-- >0;)n+=l;for(;a-- >0;)n=c+n}else o==="J"?n+="H":n+=o}return n}function R2t(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=e.language,r;n!=="root"&&(r=e.maximize().region);var o=dw[r||""]||dw[n||""]||dw["".concat(n,"-001")]||dw["001"];return o[0]}var YR,I2t=new RegExp("^".concat(ufe.source,"*")),k2t=new RegExp("".concat(ufe.source,"*$"));function Er(e,t){return{start:e,end:t}}var N2t=!!String.prototype.startsWith&&"_a".startsWith("a",1),A2t=!!String.fromCodePoint,D2t=!!Object.fromEntries,j2t=!!String.prototype.codePointAt,F2t=!!String.prototype.trimStart,L2t=!!String.prototype.trimEnd,B2t=!!Number.isSafeInteger,z2t=B2t?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},T8=!0;try{var H2t=mfe("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");T8=((YR=H2t.exec("a"))===null||YR===void 0?void 0:YR[0])==="a"}catch{T8=!1}var Dq=N2t?function(t,n,r){return t.startsWith(n,r)}:function(t,n,r){return t.slice(r,r+n.length)===n},R8=A2t?String.fromCodePoint:function(){for(var t=[],n=0;ni;){if(a=t[i++],a>1114111)throw RangeError(a+" is not a valid code point");r+=a<65536?String.fromCharCode(a):String.fromCharCode(((a-=65536)>>10)+55296,a%1024+56320)}return r},jq=D2t?Object.fromEntries:function(t){for(var n={},r=0,o=t;r=r)){var o=t.charCodeAt(n),i;return o<55296||o>56319||n+1===r||(i=t.charCodeAt(n+1))<56320||i>57343?o:(o-55296<<10)+(i-56320)+65536}},U2t=F2t?function(t){return t.trimStart()}:function(t){return t.replace(I2t,"")},W2t=L2t?function(t){return t.trimEnd()}:function(t){return t.replace(k2t,"")};function mfe(e,t){return new RegExp(e,t)}var I8;if(T8){var Fq=mfe("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");I8=function(t,n){var r;Fq.lastIndex=n;var o=Fq.exec(t);return(r=o[1])!==null&&r!==void 0?r:""}}else I8=function(t,n){for(var r=[];;){var o=pfe(t,n);if(o===void 0||gfe(o)||G2t(o))break;r.push(o),n+=o>=65536?2:1}return R8.apply(void 0,r)};var V2t=function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,n,r){for(var o=[];!this.isEOF();){var i=this.char();if(i===123){var a=this.parseArgument(t,r);if(a.err)return a;o.push(a.val)}else{if(i===125&&t>0)break;if(i===35&&(n==="plural"||n==="selectordinal")){var s=this.clonePosition();this.bump(),o.push({type:fo.pound,location:Er(s,this.clonePosition())})}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(xr.UNMATCHED_CLOSING_TAG,Er(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&k8(this.peek()||0)){var a=this.parseTag(t,n);if(a.err)return a;o.push(a.val)}else{var a=this.parseLiteral(t,n);if(a.err)return a;o.push(a.val)}}}return{val:o,err:null}},e.prototype.parseTag=function(t,n){var r=this.clonePosition();this.bump();var o=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:fo.literal,value:"<".concat(o,"/>"),location:Er(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(t+1,n,!0);if(i.err)return i;var a=i.val,s=this.clonePosition();if(this.bumpIf("")?{val:{type:fo.tag,value:o,children:a,location:Er(r,this.clonePosition())},err:null}:this.error(xr.INVALID_TAG,Er(s,this.clonePosition())))}else return this.error(xr.UNCLOSED_TAG,Er(r,this.clonePosition()))}else return this.error(xr.INVALID_TAG,Er(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&q2t(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var r=this.clonePosition(),o="";;){var i=this.tryParseQuote(n);if(i){o+=i;continue}var a=this.tryParseUnquoted(t,n);if(a){o+=a;continue}var s=this.tryParseLeftAngleBracket();if(s){o+=s;continue}break}var l=Er(r,this.clonePosition());return{val:{type:fo.literal,value:o,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!K2t(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(r);this.bump()}return R8.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(n==="plural"||n==="selectordinal")||r===125&&t>0?null:(this.bump(),R8(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(xr.EXPECT_ARGUMENT_CLOSING_BRACE,Er(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(xr.EMPTY_ARGUMENT,Er(r,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(xr.MALFORMED_ARGUMENT,Er(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(xr.EXPECT_ARGUMENT_CLOSING_BRACE,Er(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:fo.argument,value:o,location:Er(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(xr.EXPECT_ARGUMENT_CLOSING_BRACE,Er(r,this.clonePosition())):this.parseArgumentOptions(t,n,o,r);default:return this.error(xr.MALFORMED_ARGUMENT,Er(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=I8(this.message,n),o=n+r.length;this.bumpTo(o);var i=this.clonePosition(),a=Er(t,i);return{value:r,location:a}},e.prototype.parseArgumentOptions=function(t,n,r,o){var i,a=this.clonePosition(),s=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(s){case"":return this.error(xr.EXPECT_ARGUMENT_TYPE,Er(a,l));case"number":case"date":case"time":{this.bumpSpace();var c=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition(),f=this.parseSimpleArgStyleIfPossible();if(f.err)return f;var h=W2t(f.val);if(h.length===0)return this.error(xr.EXPECT_ARGUMENT_STYLE,Er(this.clonePosition(),this.clonePosition()));var p=Er(u,this.clonePosition());c={style:h,styleLocation:p}}var m=this.tryParseArgumentClose(o);if(m.err)return m;var g=Er(o,this.clonePosition());if(c&&Dq(c==null?void 0:c.style,"::",0)){var v=U2t(c.style.slice(2));if(s==="number"){var f=this.parseNumberSkeletonFromString(v,c.styleLocation);return f.err?f:{val:{type:fo.number,value:r,location:g,style:f.val},err:null}}else{if(v.length===0)return this.error(xr.EXPECT_DATE_TIME_SKELETON,g);var b=v;this.locale&&(b=T2t(v,this.locale));var h={type:sv.dateTime,pattern:b,location:c.styleLocation,parsedOptions:this.shouldParseSkeletons?x2t(b):{}},y=s==="date"?fo.date:fo.time;return{val:{type:y,value:r,location:g,style:h},err:null}}}return{val:{type:s==="number"?fo.number:s==="date"?fo.date:fo.time,value:r,location:g,style:(i=c==null?void 0:c.style)!==null&&i!==void 0?i:null},err:null}}case"plural":case"selectordinal":case"select":{var S=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(xr.EXPECT_SELECT_ARGUMENT_OPTIONS,Er(S,jn({},S)));this.bumpSpace();var w=this.parseIdentifierIfPossible(),E=0;if(s!=="select"&&w.value==="offset"){if(!this.bumpIf(":"))return this.error(xr.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Er(this.clonePosition(),this.clonePosition()));this.bumpSpace();var f=this.tryParseDecimalInteger(xr.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,xr.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(f.err)return f;this.bumpSpace(),w=this.parseIdentifierIfPossible(),E=f.val}var C=this.tryParsePluralOrSelectOptions(t,s,n,w);if(C.err)return C;var m=this.tryParseArgumentClose(o);if(m.err)return m;var x=Er(o,this.clonePosition());return s==="select"?{val:{type:fo.select,value:r,options:jq(C.val),location:x},err:null}:{val:{type:fo.plural,value:r,options:jq(C.val),offset:E,pluralType:s==="plural"?"cardinal":"ordinal",location:x},err:null}}default:return this.error(xr.INVALID_ARGUMENT_TYPE,Er(a,l))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(xr.EXPECT_ARGUMENT_CLOSING_BRACE,Er(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var o=this.clonePosition();if(!this.bumpUntil("'"))return this.error(xr.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Er(o,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var r=[];try{r=_2t(t)}catch{return this.error(xr.INVALID_NUMBER_SKELETON,n)}return{val:{type:sv.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?M2t(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,o){for(var i,a=!1,s=[],l=new Set,c=o.value,u=o.location;;){if(c.length===0){var f=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var h=this.tryParseDecimalInteger(xr.EXPECT_PLURAL_ARGUMENT_SELECTOR,xr.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;u=Er(f,this.clonePosition()),c=this.message.slice(f.offset,this.offset())}else break}if(l.has(c))return this.error(n==="select"?xr.DUPLICATE_SELECT_ARGUMENT_SELECTOR:xr.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);c==="other"&&(a=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?xr.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:xr.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Er(this.clonePosition(),this.clonePosition()));var m=this.parseMessage(t+1,n,r);if(m.err)return m;var g=this.tryParseArgumentClose(p);if(g.err)return g;s.push([c,{value:m.val,location:Er(p,this.clonePosition())}]),l.add(c),this.bumpSpace(),i=this.parseIdentifierIfPossible(),c=i.value,u=i.location}return s.length===0?this.error(n==="select"?xr.EXPECT_SELECT_ARGUMENT_SELECTOR:xr.EXPECT_PLURAL_ARGUMENT_SELECTOR,Er(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(xr.MISSING_OTHER_CLAUSE,Er(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var r=1,o=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,a=0;!this.isEOF();){var s=this.char();if(s>=48&&s<=57)i=!0,a=a*10+(s-48),this.bump();else break}var l=Er(o,this.clonePosition());return i?(a*=r,z2t(a)?{val:a,err:null}:this.error(n,l)):this.error(t,l)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=pfe(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(Dq(this.message,t,this.offset())){for(var n=0;n=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var n=this.offset();if(n===t)break;if(n>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&gfe(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),r=this.message.charCodeAt(n+(t>=65536?2:1));return r??null},e}();function k8(e){return e>=97&&e<=122||e>=65&&e<=90}function K2t(e){return k8(e)||e===47}function q2t(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function gfe(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function G2t(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function N8(e){e.forEach(function(t){if(delete t.location,afe(t)||sfe(t))for(var n in t.options)delete t.options[n].location,N8(t.options[n].value);else rfe(t)&&cfe(t.style)||(ofe(t)||ife(t))&&M8(t.style)?delete t.style.location:lfe(t)&&N8(t.children)})}function Y2t(e,t){t===void 0&&(t={}),t=jn({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new V2t(e,t).parse();if(n.err){var r=SyntaxError(xr[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t!=null&&t.captureLocation||N8(n.val),n.val}var Jc;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Jc||(Jc={}));var Hf=function(e){bl(t,e);function t(n,r,o){var i=e.call(this,n)||this;return i.code=r,i.originalMessage=o,i}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Lq=function(e){bl(t,e);function t(n,r,o,i){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(o).join('", "'),'"'),Jc.INVALID_VALUE,i)||this}return t}(Hf),X2t=function(e){bl(t,e);function t(n,r,o){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),Jc.INVALID_VALUE,o)||this}return t}(Hf),Q2t=function(e){bl(t,e);function t(n,r){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(r,'"'),Jc.MISSING_VALUE,r)||this}return t}(Hf),fa;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(fa||(fa={}));function J2t(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==fa.literal||n.type!==fa.literal?t.push(n):r.value+=n.value,t},[])}function vfe(e){return typeof e=="function"}function yx(e,t,n,r,o,i,a){if(e.length===1&&Iq(e[0]))return[{type:fa.literal,value:e[0].value}];for(var s=[],l=0,c=e;l"u")){var n=Intl.NumberFormat.supportedLocalesOf(t);return n.length>0?new Intl.Locale(n[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=Y2t,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}(),xp;(function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"})(xp||(xp={}));var kS=function(e){bl(t,e);function t(n,r,o){var i=this,a=o?o instanceof Error?o:new Error(String(o)):void 0;return i=e.call(this,"[@formatjs/intl Error ".concat(n,"] ").concat(r,` `).concat(a?` `.concat(a.message,` `).concat(a.stack):""))||this,i.code=n,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(i,t),i}return t}(Error),nEt=function(e){bl(t,e);function t(n,r){return e.call(this,xp.UNSUPPORTED_FORMATTER,n,r)||this}return t}(kS),rEt=function(e){bl(t,e);function t(n,r){return e.call(this,xp.INVALID_CONFIG,n,r)||this}return t}(kS),Bq=function(e){bl(t,e);function t(n,r){return e.call(this,xp.MISSING_DATA,n,r)||this}return t}(kS),Sl=function(e){bl(t,e);function t(n,r,o){var i=e.call(this,xp.FORMAT_ERROR,"".concat(n,` Locale: `).concat(r,` `),o)||this;return i.locale=r,i}return t}(kS),QR=function(e){bl(t,e);function t(n,r,o,i){var a=e.call(this,"".concat(n,` MessageID: `).concat(o==null?void 0:o.id,` Default Message: `).concat(o==null?void 0:o.defaultMessage,` Description: `).concat(o==null?void 0:o.description,` `),r,i)||this;return a.descriptor=o,a.locale=r,a}return t}(Sl),oEt=function(e){bl(t,e);function t(n,r){var o=e.call(this,xp.MISSING_TRANSLATION,'Missing message: "'.concat(n.id,'" for locale "').concat(r,'", using ').concat(n.defaultMessage?"default message (".concat(typeof n.defaultMessage=="string"?n.defaultMessage:n.defaultMessage.map(function(i){var a;return(a=i.value)!==null&&a!==void 0?a:JSON.stringify(i)}).join(),")"):"id"," as fallback."))||this;return o.descriptor=n,o}return t}(kS);function Qp(e,t,n){return n===void 0&&(n={}),t.reduce(function(r,o){return o in e?r[o]=e[o]:o in n&&(r[o]=n[o]),r},{})}var iEt=function(e){},aEt=function(e){},bfe={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:iEt,onWarn:aEt};function Sfe(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function ah(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function sEt(e){e===void 0&&(e=Sfe());var t=Intl.RelativeTimeFormat,n=Intl.ListFormat,r=Intl.DisplayNames,o=ga(function(){for(var s,l=[],c=0;c needs to exist in the component ancestry.")}var _fe=jn(jn({},bfe),{textComponent:d.Fragment});function MEt(e){return function(t){return e(d.Children.toArray(t))}}function D8(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=Object.keys(e),r=Object.keys(t),o=n.length;if(r.length!==o)return!1;for(var i=0;i{const n=eo(),[r,o]=d.useState(),[i,a]=d.useState(),s=async()=>{const u=await f2t();u.data.code===200&&(o(u.data.data.captchaUid),a(u.data.data.captchaImage))},l=async(u,f)=>{const h=await h2t(u,f);console.log("checkCaptcha response",h),h.data.code===200?t&&t(!0):t&&t(!1)};d.useEffect(()=>{s()},[]);const c=u=>{e&&(e(r,u.target.value),u.target.value&&u.target.value!==""&&u.target.value.trim().length===4?l(r,u.target.value):t&&t(!1))};return N.jsx(N.Fragment,{children:i&&N.jsxs(N.Fragment,{children:[N.jsx(qr,{onChange:c,prefix:N.jsx($Ue,{}),placeholder:n.formatMessage({id:"captcha",defaultMessage:"captcha"}),style:{width:"65%",float:"left",height:40}}),N.jsx("img",{src:i,alt:"captcha",onClick:s})]})})},UEt=({loginType:e,onKaptchaChange:t,onKaptchaCheck:n,onRememberChange:r})=>{const o=eo();return d.useEffect(()=>{const i=localStorage.getItem(ms);if(i)try{const{username:a,remember:s}=JSON.parse(i);a&&(r==null||r(a,!!s))}catch(a){console.error("Failed to parse saved credentials:",a)}},[r]),N.jsx(N.Fragment,{children:e==="account"&&N.jsxs("div",{children:[N.jsx(Lr,{name:"username",fieldProps:{size:"large",prefix:N.jsx(Vse,{className:"prefixIcon"}),onClear:()=>{console.log("onClear");const i=localStorage.getItem(ms);if(i)try{const a=JSON.parse(i),{username:s,...l}=a;console.log("username",s),console.log("rest",l),localStorage.setItem(ms,JSON.stringify(l))}catch(a){console.error("Failed to parse saved credentials:",a)}}},placeholder:o.formatMessage({id:"pages.login.username.placeholder",defaultMessage:"邮箱"}),rules:[{required:!0,message:N.jsx(zl,{id:"pages.login.username.required",defaultMessage:"请输入邮箱!"})}]}),N.jsx(Lr.Password,{name:"password",fieldProps:{size:"large",prefix:N.jsx(Wp,{className:"prefixIcon"})},placeholder:o.formatMessage({id:"pages.login.password.placeholder",defaultMessage:"密码"}),rules:[{required:!0,message:N.jsx(zl,{id:"pages.login.password.required",defaultMessage:"请输入密码!"})}]}),N.jsx(pr.Item,{name:"captchaCode",rules:[{required:!0,message:o.formatMessage({id:"pages.login.captcha.required",defaultMessage:"请输入验证码!"})}],children:N.jsx(c0,{onKaptchaChange:t,onKaptchaCheck:n})})]})})};async function WEt(e){return ko("/auth/v1/login",{method:"POST",data:{...e,client:po}})}async function vF(e){return ko("/auth/v1/send/mobile",{method:"POST",data:{...e,client:po}})}async function kfe(e){return ko("/auth/v1/send/email",{method:"POST",data:{...e,client:po}})}async function VEt(e){return ko("/auth/v1/login/mobile",{method:"POST",data:{...e,client:po}})}async function KEt(e,t){return ko("/auth/v1/vip/scan/query",{method:"GET",params:{deviceUid:e,forceRefresh:t,client:po}})}async function qEt(e){return ko("/auth/v1/vip/scan/login",{method:"POST",data:{...e,client:po}})}async function GEt(e){return ko("/api/v1/user/logout",{method:"POST",data:{client:po}})}const YEt=({loginType:e,onKaptchaChange:t,onKaptchaCheck:n,onRememberChange:r})=>{const o=eo(),[i,a]=d.useState(""),[s,l]=d.useState(""),[c,u]=d.useState(!1);d.useEffect(()=>{const g=localStorage.getItem(ms);if(g)try{const{mobile:v}=JSON.parse(g);v&&(r==null||r(v))}catch(v){console.error("Failed to parse saved credentials:",v)}},[r]);const f=async(g,v)=>{a(g),l(v),t&&t(g,v)},h=async g=>{u(g),n&&n(g)},p=[{label:o.formatMessage({id:"pages.login.country.china"}),value:"86",icon:"🇨🇳",code:"CN"},{label:o.formatMessage({id:"pages.login.country.hongkong"}),value:"852",icon:"🇭🇰",code:"HK"},{label:o.formatMessage({id:"pages.login.country.taiwan"}),value:"886",icon:"🇹🇼",code:"TW"},{label:o.formatMessage({id:"pages.login.country.macao"}),value:"853",icon:"🇲🇴",code:"MO"},{label:o.formatMessage({id:"pages.login.country.japan"}),value:"81",icon:"🇯🇵",code:"JP"},{label:o.formatMessage({id:"pages.login.country.korea"}),value:"82",icon:"🇰🇷",code:"KR"},{label:o.formatMessage({id:"pages.login.country.singapore"}),value:"65",icon:"🇸🇬",code:"SG"},{label:o.formatMessage({id:"pages.login.country.malaysia"}),value:"60",icon:"🇲🇾",code:"MY"},{label:o.formatMessage({id:"pages.login.country.thailand"}),value:"66",icon:"🇹🇭",code:"TH"},{label:o.formatMessage({id:"pages.login.country.vietnam"}),value:"84",icon:"🇻🇳",code:"VN"},{label:o.formatMessage({id:"pages.login.country.philippines"}),value:"63",icon:"🇵🇭",code:"PH"},{label:o.formatMessage({id:"pages.login.country.indonesia"}),value:"62",icon:"🇮🇩",code:"ID"},{label:o.formatMessage({id:"pages.login.country.usa"}),value:"1-us",icon:"🇺🇸",code:"US"},{label:o.formatMessage({id:"pages.login.country.canada"}),value:"1-ca",icon:"🇨🇦",code:"CA"},{label:o.formatMessage({id:"pages.login.country.uk"}),value:"44",icon:"🇬🇧",code:"GB"},{label:o.formatMessage({id:"pages.login.country.germany"}),value:"49",icon:"🇩🇪",code:"DE"},{label:o.formatMessage({id:"pages.login.country.france"}),value:"33",icon:"🇫🇷",code:"FR"},{label:o.formatMessage({id:"pages.login.country.italy"}),value:"39",icon:"🇮🇹",code:"IT"},{label:o.formatMessage({id:"pages.login.country.spain"}),value:"34",icon:"🇪🇸",code:"ES"},{label:o.formatMessage({id:"pages.login.country.russia"}),value:"7",icon:"🇷🇺",code:"RU"},{label:o.formatMessage({id:"pages.login.country.australia"}),value:"61",icon:"🇦🇺",code:"AU"},{label:o.formatMessage({id:"pages.login.country.newzealand"}),value:"64",icon:"🇳🇿",code:"NZ"}],m=g=>{const v=g.value.includes("-")?g.value.split("-")[0]:g.value;return N.jsxs("div",{children:[N.jsx("span",{role:"img","aria-label":g.label,style:{marginRight:8},children:g.icon}),g.label," (+",v,")"]})};return N.jsx(N.Fragment,{children:e==="mobile"&&N.jsxs(N.Fragment,{children:[N.jsxs(sP,{gutter:16,children:[N.jsx(gp,{span:10,children:N.jsx(Fj,{name:"country",options:p,fieldProps:{size:"large",placeholder:o.formatMessage({id:"pages.login.country.placeholder",defaultMessage:"选择国家/地区"}),optionLabelProp:"label",optionItemRender:m},initialValue:"86"})}),N.jsx(gp,{span:14,children:N.jsx(Lr,{fieldProps:{size:"large",prefix:N.jsx(lS,{className:"prefixIcon"}),onClear:()=>{console.log("onClear");const g=localStorage.getItem(ms);if(g)try{const v=JSON.parse(g),{mobile:b,...y}=v;console.log("saved:",b,v),localStorage.setItem(ms,JSON.stringify(y))}catch(v){console.error("Failed to parse saved credentials:",v)}}},name:"mobile",placeholder:o.formatMessage({id:"pages.login.phoneNumber.placeholder",defaultMessage:"手机号"}),rules:[{required:!0,message:N.jsx(zl,{id:"pages.login.phoneNumber.required",defaultMessage:"请输入手机号!"})},{pattern:/^1\d{10}$/,message:N.jsx(zl,{id:"pages.login.phoneNumber.invalid",defaultMessage:"手机号格式错误!"})}]})})]}),N.jsx(pr.Item,{name:"captchaCode",rules:[{required:!0,message:o.formatMessage({id:"pages.login.captcha.required",defaultMessage:"请输入验证码!"})}],children:N.jsx(c0,{onKaptchaChange:f,onKaptchaCheck:h})}),N.jsx(gS,{fieldProps:{size:"large",prefix:N.jsx(Wp,{className:"prefixIcon"})},captchaProps:{size:"large",disabled:!c},placeholder:o.formatMessage({id:"pages.login.captcha.placeholder",defaultMessage:"请输入验证码"}),captchaTextRender:(g,v)=>g?`${v} ${o.formatMessage({id:"pages.getCaptchaSecondText",defaultMessage:"获取验证码"})}`:o.formatMessage({id:"pages.login.phoneLogin.getVerificationCode",defaultMessage:"获取验证码"}),phoneName:"mobile",name:"code",rules:[{required:!0,message:N.jsx(zl,{id:"pages.login.captcha.required",defaultMessage:"请输入验证码!"})}],onGetCaptcha:async g=>{if(console.log("mobile:",g),g&&g.length===11){const b=await vF({mobile:g,type:K0e,captchaUid:i,captchaCode:s,platform:cl});if(console.log("sendMobileCode:",b.data),b.data.code!==200){gn.error(o.formatMessage({id:b.data.message,defaultMessage:b.data.message}));return}gn.success(o.formatMessage({id:b.data.message,defaultMessage:b.data.message}))}else gn.error("手机号格式错误")}}),N.jsx(Rne,{message:N.jsx(zl,{id:"pages.login.auto.register",defaultMessage:"Mobile will auto register"}),type:"info"})]})})},XEt=({loginType:e})=>{const t=eo(),n=Ya(),r=vi(p=>p.setUserInfo),o=_1(p=>p.setAccessToken),{deviceUid:i,setDeviceUid:a}=vi(p=>({deviceUid:p.deviceUid,setDeviceUid:p.setDeviceUid})),[s,l]=d.useState("login"),[c,u]=d.useState("loading"),f=async p=>{console.log("handleScanLogin values: ",p),gn.loading(t.formatMessage({id:"logging",defaultMessage:"logging..."}));const m=await qEt({...p});console.log("LoginMobileResult scanLogin:",m.data),m.data.code===200?(gn.destroy(),gn.success(t.formatMessage({id:"login.success",defaultMessage:"login success"})),r(m.data.data.user),o(m.data.data.accessToken),n("/chat"),D6()):(gn.destroy(),gn.error(m.data.message))},h=async p=>{if(e!="scan")return;const m=await KEt(i,p);if(m.data.code===200){const g=m.data.data;if(console.log("handleScanQuery status: ",g.status),g.status===Q0e)u("active"),l("deviceUid="+g.deviceUid+"&code="+g.content);else if(g.status===J0e)u("scanned");else if(g.status===eye)u("expired");else if(g.status===Z0e){if(g.receiver===void 0||g.receiver==="")return;let v={mobile:g.receiver,code:g.content,platform:cl};console.log("login scan info:",v),await f(v)}}else gn.error(m.data.message)};return d.useEffect(()=>{console.log("scan deviceUid:",i),(i===void 0||i==="")&&a(Y_()),h(!0);const p=setInterval(()=>{h(!1)},3e3);return()=>{clearInterval(p)}},[e,i]),N.jsx(N.Fragment,{children:e==="scan"&&N.jsx(N.Fragment,{children:N.jsx(Yse,{style:{margin:"auto"},value:s,status:c,onRefresh:()=>{console.log("onRefresh"),h(!0)}})})})},Nfe=()=>{const{token:e}=pa.useToken(),{isCustomServer:t,setIsCustomServer:n}=d.useContext(ia),[r]=pr.useForm(),[o,i]=d.useState(!1),[a,s]=d.useState(""),[l,c]=d.useState(""),u=eo(),f=()=>{console.log("switch server"),n(m=>!m)};d.useEffect(()=>{a&&a.length>0&&(r.setFieldsValue({apiUrl:a}),console.log("apiUrl:",a))},[a]),d.useEffect(()=>{if(t){const m=localStorage.getItem(Bm);m==="true"&&(i(!0),r.setFieldsValue({isCustomServerEnabled:!0})),console.log("isCustomServer customEnabled:",m);const g=localStorage.getItem(iy);g&&r.setFieldsValue({apiUrl:am(g)});const v=localStorage.getItem(ay);v&&r.setFieldsValue({websocketUrl:am(v)})}},[t]);const h=m=>{if(console.log("handleCustomServerChange e:",m),i(m.target.checked),m.target.checked){const g=localStorage.getItem(iy);g&&r.setFieldsValue({apiUrl:am(g)});const v=localStorage.getItem(ay);v&&r.setFieldsValue({websocketUrl:am(v)}),console.log("initData apiUrl:",g,"websocketUrl:",v)}else localStorage.setItem(Bm,"false")},p=(m,g)=>(console.log("props:",m,g),N.jsxs("div",{style:{display:"flex",justifyContent:"center",gap:"8px"},children:[N.jsx(Hn,{icon:N.jsx(lHe,{}),onClick:f,children:u.formatMessage({id:"server.button.back"})},"back"),N.jsx(Hn,{type:"primary",onClick:()=>{let v=m.form.getFieldValue("apiUrl");v=am(v.trim());let b=m.form.getFieldValue("websocketUrl");b=am(b.trim()),v&&v.trim().length>0&&b&&b.trim().length>0?(localStorage.setItem(iy,v),localStorage.setItem(ay,b),localStorage.setItem(Bm,"true"),gn.success(u.formatMessage({id:"server.save.success"}))):gn.error("请输入正确的服务器地址")},children:u.formatMessage({id:"server.button.save"})},"submit"),N.jsx(Hn,{onClick:()=>{var v;(v=m.form)==null||v.resetFields(),s(""),localStorage.setItem(Bm,"false"),localStorage.setItem(iy,""),localStorage.setItem(ay,""),gn.success(u.formatMessage({id:"server.reset.success"}))},children:u.formatMessage({id:"server.button.reset"})},"reset"),N.jsx(Hn,{onClick:()=>{Qb("https://www.weiyuai.cn/docs/zh-CN/docs/manual/agent/auth/login")},children:u.formatMessage({id:"server.button.help"})},"help")]}));return N.jsx("div",{className:"ant-pro-form-server-container",style:{backgroundColor:e.colorBgContainer,display:"flex",justifyContent:"center",flexDirection:"column",height:"100%",width:"80%",marginLeft:"10%"},children:N.jsxs(pr,{className:"ant-pro-form-server-main",form:r,submitter:{render:p},children:[N.jsx(Dj,{name:"isCustomServerEnabled",fieldProps:{onChange:h},children:u.formatMessage({id:"server.custom.enable"})}),o&&N.jsxs(N.Fragment,{children:[N.jsx(Lr,{name:"apiUrl",label:u.formatMessage({id:"server.api.url.label"}),fieldProps:{disabled:!o,placeholder:u.formatMessage({id:"server.api.url.placeholder"}),onChange:m=>s(m.target.value)}}),N.jsx(Lr,{name:"websocketUrl",label:u.formatMessage({id:"server.websocket.url.label"}),fieldProps:{disabled:!o,placeholder:u.formatMessage({id:"server.websocket.url.placeholder"}),onChange:m=>c(m.target.value)}})]})]})})},QEt=({isModel:e=!1})=>{const t=eo(),[n]=pr.useForm(),r=Ya(),{token:o}=pa.useToken(),[i,a]=d.useState("/kanban/icons/logo.png"),[s,l]=d.useState(""),[c,u]=d.useState(""),[f,h]=d.useState("account"),p=vi(k=>k.setUserInfo),m=_1(k=>k.setAccessToken),{isCustomServer:g,setIsCustomServer:v}=d.useContext(ia),[b,y]=d.useState(!1),S=k=>{console.log(`onPrivacyProtocolChange checked = ${k.target.checked}`),y(k.target.checked);const F=localStorage.getItem(ms);if(F)try{const{remember:V}=JSON.parse(F);V&&setTimeout(()=>{n.setFieldsValue({remember:V})},0)}catch(V){console.error("Failed to parse saved credentials:",V)}},w=()=>{Qb("https://www.weiyuai.cn/protocol.html")},[E,C]=d.useState(""),x=async(k,F)=>{C(k),n.setFieldValue("captchaCode",F)},_=async k=>{console.log("handleKaptchaCheck:",k)},P=async k=>{if(console.log("handleSubmit values: ",k,f),!b){gn.error("请阅读并同意隐私协议");return}gn.loading(t.formatMessage({id:"logging",defaultMessage:"logging..."}));const F=localStorage.getItem(ms);let V=!1;if(F)try{V=JSON.parse(F).remember}catch(K){console.error("Failed to parse saved credentials:",K)}localStorage.setItem(ms,JSON.stringify({username:k.username,remember:V}));const W=await WEt({...k});console.log("LoginResult:",W.data),W.data.code===200?(gn.destroy(),gn.success(t.formatMessage({id:"login.success",defaultMessage:"login success"})),V&&localStorage.setItem(ms,JSON.stringify({username:k.username,password:k.password,remember:!0})),p(W.data.data.user),m(W.data.data.accessToken),e||r("/"),D6()):(gn.destroy(),gn.error(t.formatMessage({id:W.data.message,defaultMessage:W.data.message})))},O=k=>{n.setFieldsValue({mobile:k})},I=async k=>{if(!b){gn.error(t.formatMessage({id:"login.privacy.required",defaultMessage:"请阅读并同意隐私协议"}));return}const F=localStorage.getItem(ms);let V={};if(F)try{V=JSON.parse(F)}catch(K){console.error("Failed to parse saved credentials:",K)}localStorage.setItem(ms,JSON.stringify({...V,mobile:k.mobile}));const W=await VEt({...k});console.log("LoginMobileResult:",W),W.data.code===200?(gn.destroy(),gn.success(t.formatMessage({id:"login.success",defaultMessage:"login success"})),p(W.data.data.user),m(W.data.data.accessToken),e||r("/"),D6()):(gn.destroy(),gn.error(t.formatMessage({id:W.data.message,defaultMessage:W.data.message})))},M=()=>{console.log("switch server"),v(k=>!k)},T=()=>{console.log("handleAnonymousLogin"),r("/anonymous")},D=()=>{if(Ag)return{}},A=(k,F)=>{n.setFieldsValue({username:k,remember:F});const V=localStorage.getItem(ms);if(V&&F)try{const{password:W}=JSON.parse(V);W&&n.setFieldsValue({password:W})}catch(W){console.error("Failed to parse saved credentials:",W)}},j=async()=>{var F,V,W,K,L,Q,ee;console.log("getConfig");const k=await dJ();(F=k==null?void 0:k.custom)!=null&&F.enabled?((V=k==null?void 0:k.custom)!=null&&V.logo?a((W=k==null?void 0:k.custom)==null?void 0:W.logo):a("/kanban/icons/logo.png"),(K=k==null?void 0:k.custom)!=null&&K.name?l((L=k==null?void 0:k.custom)==null?void 0:L.name):l(t.formatMessage({id:"app.title"})),(Q=k==null?void 0:k.custom)!=null&&Q.description?u((ee=k==null?void 0:k.custom)==null?void 0:ee.description):u(t.formatMessage({id:"slogan"}))):(a("/kanban/icons/logo.png"),l(t.formatMessage({id:"app.title"})),u(t.formatMessage({id:"slogan"}))),cJ()};return d.useEffect(()=>{qee(),j()},[]),N.jsx(MP,{hashed:!1,children:N.jsxs("div",{style:{backgroundColor:o.colorBgContainer,textAlign:"center",height:"100%"},children:[!g&&N.jsxs(dde,{form:n,contentStyle:{minWidth:400},logo:N.jsx("img",{alt:"logo",src:i}),title:s,subTitle:c,initialValues:D(),onFinish:async k=>{if(console.log("login:",k),f==="account"){const F={username:k.username,password:k.password,captchaUid:E,captchaCode:k.captchaCode,platform:cl};await P(F)}else if(f==="mobile"){const F={mobile:k.mobile,code:k.code,captchaUid:E,captchaCode:k.captchaCode,platform:cl};await I(F)}else console.log("scan login type")},actions:Ag&&N.jsxs(oo,{children:[N.jsx(zl,{id:"pages.login.loginWith",defaultMessage:"其他登录方式"}),N.jsx(Hn,{type:"link",onClick:T,children:t.formatMessage({id:"pages.login.anonymousLogin",defaultMessage:"匿名登录"})})]}),children:[N.jsx(nS,{centered:!0,items:[{key:"account",label:t.formatMessage({id:"pages.login.accountLogin.tab",defaultMessage:"账户密码登录"}),children:N.jsx(UEt,{loginType:f,onKaptchaChange:x,onKaptchaCheck:_,onRememberChange:A})},{key:"mobile",label:t.formatMessage({id:"pages.login.phoneLogin.tab",defaultMessage:"手机号登录"}),children:N.jsx(YEt,{loginType:f,onKaptchaChange:x,onKaptchaCheck:_,onRememberChange:O})},{key:"scan",label:t.formatMessage({id:"pages.login.scanLogin.tab",defaultMessage:"扫码登录"}),children:N.jsx(XEt,{loginType:f})}],activeKey:f,onChange:k=>h(k)}),N.jsxs("div",{style:{marginBlockEnd:24,textAlign:"left",marginTop:10},children:[N.jsx(od,{checked:b,onChange:S,children:N.jsx(Hn,{size:"small",type:"link",onClick:w,children:t.formatMessage({id:"login.privacy.agreement",defaultMessage:"同意《用户隐私&协议》"})})}),N.jsx(Hn,{type:"link",style:{float:"right",marginBottom:24},onClick:M,children:t.formatMessage({id:"login.switch.server",defaultMessage:"切换服务器"})})]})]}),g&&N.jsx(Nfe,{})]})})},L8=({isModel:e=!1})=>N.jsx(j$,{children:N.jsx(QEt,{isModel:e})}),JEt=()=>{Ya();const{token:e}=pa.useToken();return d.useState("phone"),cs(e.colorTextBase,.2),N.jsx(MP,{hashed:!1,children:N.jsx("div",{style:{backgroundColor:e.colorBgContainer,textAlign:"center",height:"100vh"},children:N.jsxs(dde,{logo:"./logo.png",title:"微语",subTitle:"注册账号",children:[N.jsxs(N.Fragment,{children:[N.jsx(Lr,{name:"username",fieldProps:{size:"large",prefix:N.jsx(Vse,{className:"prefixIcon"})},placeholder:"用户名",rules:[{required:!0,message:"请输入用户名!"}]}),N.jsx(Lr.Password,{name:"password",fieldProps:{size:"large",prefix:N.jsx(Wp,{className:"prefixIcon"})},placeholder:"密码",rules:[{required:!0,message:"请输入密码!"}]})]}),N.jsxs("div",{style:{marginBlockEnd:24},children:[N.jsx(Dj,{noStyle:!0,name:"autoLogin",children:"自动登录"}),N.jsx(HXe,{to:"/agent/auth/login",style:{float:"right"},children:"登录"})]})]})})})};function vO(){const[e,t]=d.useState(!0);return d.useEffect(()=>{function n(){console.log("networkStatus online:",navigator.onLine),navigator.onLine&&t(!0)}function r(){console.log("networkStatus offline:",!navigator.onLine),t(!1)}return window.addEventListener("online",n),window.addEventListener("offline",r),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}},[]),e}function cu(){const e=eo();return{translateString:r=>r==null?r:r&&r.startsWith(D7)?e.formatMessage({id:r,defaultMessage:r}):r,translateStringTranct:r=>r==null?r:r!=null&&r.startsWith(D7)?p9(e.formatMessage({id:r}),10):p9(r,10)}}function yF(){const e=vO(),{translateString:t}=cu(),[n,r]=d.useState(!1),[o,i]=d.useState(!1),a=async(l,c)=>{Pi?await kGe()?console.log("handleNewMessage isWindowActive"):NGe(l,c):o?s(l,c):console.log("handleNewMessage not isBrowserTabHidden")},s=(l,c)=>{console.log("showWebNotification");var u=new Notification(l,{body:c,icon:"./logo.png"});u.onshow=function(){console.log("Notification shown")},u.onclick=function(){console.log("notification click")},u.onclose=function(){console.log("notification close")},u.onerror=function(){console.log("notification error")}};return d.useEffect(()=>(Pi||(window.Notification&&Notification.permission!=="granted"?Notification.requestPermission(function(l){r(l==="granted")}):(console.log("已经授权或浏览器不支持通知"),r(!0)),document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"?i(!0):document.visibilityState==="visible"&&i(!1)},!1)),()=>{document.removeEventListener("visibilitychange",()=>{})}),[]),d.useEffect(()=>{if(console.log("useNotification useEffect isNetworkOnline",e),e){const l=localStorage.getItem(Ry);(l==null||l==="true")&&a(t("i18n.tip.title"),t("i18n.tip.network.disconnected"))}else{const l=localStorage.getItem(Ry);(l==null||l==="true")&&a(t("i18n.tip.title"),t("i18n.tip.network.connected"))}},[e]),{isNotificationGranted:n,showWebNotification:s,showNotification:a}}var Fu={},Afe={exports:{}},Dfe={exports:{}};(function(e){var t=Sde;function n(r){if(Array.isArray(r))return t(r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(Dfe);var ZEt=Dfe.exports,jfe={exports:{}};(function(e){function t(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(jfe);var Ffe=jfe.exports,Lfe={exports:{}};(function(e){function t(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Lfe);var e_t=Lfe.exports;(function(e){var t=ZEt,n=Ffe,r=Bj,o=e_t;function i(a){return t(a)||n(a)||r(a)||o()}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports})(Afe);var Bfe=Afe.exports,yO={};Object.defineProperty(yO,"__esModule",{value:!0});yO.default=t_t;function t_t(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}var bF={};const Uf=y1($Pe);var bO={},n_t=ti.default;Object.defineProperty(bO,"__esModule",{value:!0});bO.default=o_t;var r_t=n_t(d);function o_t(e,t,n){var r=r_t.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var SO={},zfe={exports:{}};(function(e){var t=gde,n=Ffe,r=Bj,o=wde;function i(a){return t(a)||n(a)||r(a)||o()}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports})(zfe);var i_t=zfe.exports,SF={};Object.defineProperty(SF,"__esModule",{value:!0});SF.default=a_t;function a_t(e,t){for(var n=e,r=0;r3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!(0,B8.default)(e,t.slice(0,-1))?e:Wfe(e,t,n,r)}function c_t(e){return(0,Hfe.default)(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Kq(e){return Array.isArray(e)?[]:{}}var u_t=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function d_t(){for(var e=arguments.length,t=new Array(e),n=0;n{const e=()=>{};return e.deprecated=CF,e};al.default=m_t;var CO={};Object.defineProperty(CO,"__esModule",{value:!0});CO.default=void 0;var g_t=d;CO.default=(0,g_t.createContext)(void 0);var Kfe={},wO={},v_t=ir.default;Object.defineProperty(wO,"__esModule",{value:!0});wO.changeConfirmLocale=y_t;wO.getConfirmLocale=b_t;var wF=v_t(Op);let Sx=Object.assign({},wF.default.Modal),Cx=[];const qq=()=>Cx.reduce((e,t)=>Object.assign(Object.assign({},e),t),wF.default.Modal);function y_t(e){if(e){const t=Object.assign({},e);return Cx.push(t),Sx=qq(),()=>{Cx=Cx.filter(n=>n!==t),Sx=qq()}}Sx=Object.assign({},wF.default.Modal)}function b_t(){return Sx}var u0={};Object.defineProperty(u0,"__esModule",{value:!0});u0.default=void 0;var S_t=d;const C_t=(0,S_t.createContext)(void 0);u0.default=C_t;var xO={},qfe=ir.default,w_t=ti.default;Object.defineProperty(xO,"__esModule",{value:!0});xO.default=void 0;var ZR=w_t(d),x_t=qfe(u0),Gq=qfe(Op);const E_t=(e,t)=>{const n=ZR.useContext(x_t.default),r=ZR.useMemo(()=>{var i;const a=t||Gq.default[e],s=(i=n==null?void 0:n[e])!==null&&i!==void 0?i:{};return Object.assign(Object.assign({},typeof a=="function"?a():a),s||{})},[e,t,n]),o=ZR.useMemo(()=>{const i=n==null?void 0:n.locale;return n!=null&&n.exist&&!i?Gq.default.locale:i},[n]);return[r,o]};xO.default=E_t;(function(e){"use client";var t=ir.default,n=ti.default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.ANT_MARK=void 0,Object.defineProperty(e,"useLocale",{enumerable:!0,get:function(){return a.default}});var r=n(d),o=wO,i=t(u0),a=t(xO);e.ANT_MARK="internalMark";const s=l=>{const{locale:c={},children:u,_ANT_MARK__:f}=l;r.useEffect(()=>(0,o.changeConfirmLocale)(c==null?void 0:c.Modal),[c]);const h=r.useMemo(()=>Object.assign(Object.assign({},c),{exist:!0}),[c]);return r.createElement(i.default.Provider,{value:h},u)};e.default=s})(Kfe);var Vc={},xF={},Zc={};Object.defineProperty(Zc,"__esModule",{value:!0});Zc.defaultPresetColors=Zc.default=void 0;const __t=Zc.defaultPresetColors={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"},$_t=Object.assign(Object.assign({},__t),{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});Zc.default=$_t;var EF={};const DS=y1(APe);Object.defineProperty(EF,"__esModule",{value:!0});EF.default=P_t;var eI=DS;function P_t(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:u}=e,f=n(l),h=n(o),p=n(i),m=n(a),g=n(s),v=r(c,u),b=e.colorLink||e.colorInfo,y=n(b),S=new eI.FastColor(m[1]).mix(new eI.FastColor(m[3]),50).toHexString();return Object.assign(Object.assign({},v),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[10],colorSuccessBg:h[1],colorSuccessBgHover:h[2],colorSuccessBorder:h[3],colorSuccessBorderHover:h[4],colorSuccessHover:h[4],colorSuccess:h[6],colorSuccessActive:h[7],colorSuccessTextHover:h[8],colorSuccessText:h[9],colorSuccessTextActive:h[10],colorErrorBg:m[1],colorErrorBgHover:m[2],colorErrorBgFilledHover:S,colorErrorBgActive:m[3],colorErrorBorder:m[3],colorErrorBorderHover:m[4],colorErrorHover:m[5],colorError:m[6],colorErrorActive:m[7],colorErrorTextHover:m[8],colorErrorText:m[9],colorErrorTextActive:m[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:g[1],colorInfoBgHover:g[2],colorInfoBorder:g[3],colorInfoBorderHover:g[4],colorInfoHover:g[4],colorInfo:g[6],colorInfoActive:g[7],colorInfoTextHover:g[8],colorInfoText:g[9],colorInfoTextActive:g[10],colorLinkHover:y[4],colorLink:y[6],colorLinkActive:y[7],colorBgMask:new eI.FastColor("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}var _F={},EO={};Object.defineProperty(EO,"__esModule",{value:!0});EO.default=void 0;const O_t=e=>{let t=e,n=e,r=e,o=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?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}};EO.default=O_t;var M_t=ir.default;Object.defineProperty(_F,"__esModule",{value:!0});_F.default=R_t;var T_t=M_t(EO);function R_t(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=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:o+1},(0,T_t.default)(r))}var _O={};Object.defineProperty(_O,"__esModule",{value:!0});_O.default=void 0;const I_t=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};_O.default=I_t;var $O={},jS={};Object.defineProperty(jS,"__esModule",{value:!0});jS.default=k_t;jS.getLineHeight=Gfe;function Gfe(e){return(e+8)/e}function k_t(e){const t=new Array(10).fill(null).map((n,r)=>{const o=r-1,i=e*Math.pow(Math.E,o/5),a=r>1?Math.floor(i):Math.ceil(i);return Math.floor(a/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:Gfe(n)}))}var N_t=ir.default;Object.defineProperty($O,"__esModule",{value:!0});$O.default=void 0;var A_t=N_t(jS);const D_t=e=>{const t=(0,A_t.default)(e),n=t.map(u=>u.size),r=t.map(u=>u.lineHeight),o=n[1],i=n[0],a=n[2],s=r[1],l=r[0],c=r[2];return{fontSizeSM:i,fontSize:o,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(s*o),fontHeightLG:Math.round(c*a),fontHeightSM:Math.round(l*i),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};$O.default=D_t;var $F={};Object.defineProperty($F,"__esModule",{value:!0});$F.default=j_t;function j_t(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)}}var lv={},cv={};Object.defineProperty(cv,"__esModule",{value:!0});cv.getSolidColor=cv.getAlphaColor=void 0;var Yfe=DS;const F_t=(e,t)=>new Yfe.FastColor(e).setA(t).toRgbString();cv.getAlphaColor=F_t;const L_t=(e,t)=>new Yfe.FastColor(e).darken(t).toHexString();cv.getSolidColor=L_t;Object.defineProperty(lv,"__esModule",{value:!0});lv.generateNeutralColorPalettes=lv.generateColorPalettes=void 0;var B_t=PS,Ri=cv;const z_t=e=>{const t=(0,B_t.generate)(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]}};lv.generateColorPalettes=z_t;const H_t=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:(0,Ri.getAlphaColor)(r,.88),colorTextSecondary:(0,Ri.getAlphaColor)(r,.65),colorTextTertiary:(0,Ri.getAlphaColor)(r,.45),colorTextQuaternary:(0,Ri.getAlphaColor)(r,.25),colorFill:(0,Ri.getAlphaColor)(r,.15),colorFillSecondary:(0,Ri.getAlphaColor)(r,.06),colorFillTertiary:(0,Ri.getAlphaColor)(r,.04),colorFillQuaternary:(0,Ri.getAlphaColor)(r,.02),colorBgSolid:(0,Ri.getAlphaColor)(r,1),colorBgSolidHover:(0,Ri.getAlphaColor)(r,.75),colorBgSolidActive:(0,Ri.getAlphaColor)(r,.95),colorBgLayout:(0,Ri.getSolidColor)(n,4),colorBgContainer:(0,Ri.getSolidColor)(n,0),colorBgElevated:(0,Ri.getSolidColor)(n,0),colorBgSpotlight:(0,Ri.getAlphaColor)(r,.85),colorBgBlur:"transparent",colorBorder:(0,Ri.getSolidColor)(n,15),colorBorderSecondary:(0,Ri.getSolidColor)(n,6)}};lv.generateNeutralColorPalettes=H_t;var FS=ir.default;Object.defineProperty(xF,"__esModule",{value:!0});xF.default=Y_t;var sh=PS,U_t=Zc,W_t=FS(EF),V_t=FS(_F),K_t=FS(_O),q_t=FS($O),G_t=FS($F),Yq=lv;function Y_t(e){sh.presetPrimaryColors.pink=sh.presetPrimaryColors.magenta,sh.presetPalettes.pink=sh.presetPalettes.magenta;const t=Object.keys(U_t.defaultPresetColors).map(n=>{const r=e[n]===sh.presetPrimaryColors[n]?sh.presetPalettes[n]:(0,sh.generate)(e[n]);return new Array(10).fill(1).reduce((o,i,a)=>(o[`${n}-${a+1}`]=r[a],o[`${n}${a+1}`]=r[a],o),{})}).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),(0,W_t.default)(e,{generateColorPalettes:Yq.generateColorPalettes,generateNeutralColorPalettes:Yq.generateNeutralColorPalettes})),(0,q_t.default)(e.fontSize)),(0,G_t.default)(e)),(0,K_t.default)(e)),(0,V_t.default)(e))}var PF=ir.default;Object.defineProperty(Vc,"__esModule",{value:!0});Vc.defaultTheme=Vc.defaultConfig=Vc.DesignTokenContext=void 0;var X_t=PF(d),Q_t=Uf,J_t=PF(xF),Xq=PF(Zc);Vc.defaultTheme=(0,Q_t.createTheme)(J_t.default);const Z_t=Vc.defaultConfig={token:Xq.default,override:{override:Xq.default},hashed:!0};Vc.DesignTokenContext=X_t.default.createContext(Z_t);var ys={},e$t=ti.default;Object.defineProperty(ys,"__esModule",{value:!0});ys.defaultPrefixCls=ys.defaultIconPrefixCls=ys.Variants=ys.ConfigContext=ys.ConfigConsumer=void 0;var t$t=e$t(d);const Qq=ys.defaultPrefixCls="ant",n$t=ys.defaultIconPrefixCls="anticon";ys.Variants=["outlined","borderless","filled"];const r$t=(e,t)=>t||(e?`${Qq}-${e}`:Qq),o$t=ys.ConfigContext=t$t.createContext({getPrefixCls:r$t,iconPrefixCls:n$t}),{Consumer:i$t}=o$t;ys.ConfigConsumer=i$t;var PO={},Xfe=ir.default;Object.defineProperty(PO,"__esModule",{value:!0});PO.getStyle=Qfe;PO.registerTheme=c$t;var Jq=PS,tI=DS,a$t=Xfe(YP),s$t=Yp;Xfe(al);const l$t=`-ant-${Date.now()}-${Math.random()}`;function Qfe(e,t){const n={},r=(a,s)=>{let l=a.clone();return l=(s==null?void 0:s(l))||l,l.toRgbString()},o=(a,s)=>{const l=new tI.FastColor(a),c=(0,Jq.generate)(l.toRgbString());n[`${s}-color`]=r(l),n[`${s}-color-disabled`]=c[1],n[`${s}-color-hover`]=c[4],n[`${s}-color-active`]=c[6],n[`${s}-color-outline`]=l.clone().setA(.2).toRgbString(),n[`${s}-color-deprecated-bg`]=c[0],n[`${s}-color-deprecated-border`]=c[2]};if(t.primaryColor){o(t.primaryColor,"primary");const a=new tI.FastColor(t.primaryColor),s=(0,Jq.generate)(a.toRgbString());s.forEach((c,u)=>{n[`primary-${u+1}`]=c}),n["primary-color-deprecated-l-35"]=r(a,c=>c.lighten(35)),n["primary-color-deprecated-l-20"]=r(a,c=>c.lighten(20)),n["primary-color-deprecated-t-20"]=r(a,c=>c.tint(20)),n["primary-color-deprecated-t-50"]=r(a,c=>c.tint(50)),n["primary-color-deprecated-f-12"]=r(a,c=>c.setA(c.a*.12));const l=new tI.FastColor(s[0]);n["primary-color-active-deprecated-f-30"]=r(l,c=>c.setA(c.a*.3)),n["primary-color-active-deprecated-d-02"]=r(l,c=>c.darken(2))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),` :root { ${Object.keys(n).map(a=>`--${e}-${a}: ${n[a]};`).join(` `)} } `.trim()}function c$t(e,t){const n=Qfe(e,t);(0,a$t.default)()&&(0,s$t.updateCSS)(n,`${l$t}-dynamic-theme`)}var Ep={},u$t=ti.default;Object.defineProperty(Ep,"__esModule",{value:!0});Ep.default=Ep.DisabledContextProvider=void 0;var z8=u$t(d);const H8=z8.createContext(!1),d$t=e=>{let{children:t,disabled:n}=e;const r=z8.useContext(H8);return z8.createElement(H8.Provider,{value:n??r},t)};Ep.DisabledContextProvider=d$t;Ep.default=H8;var OO={},_p={},f$t=ti.default;Object.defineProperty(_p,"__esModule",{value:!0});_p.default=_p.SizeContextProvider=void 0;var U8=f$t(d);const W8=U8.createContext(void 0),h$t=e=>{let{children:t,size:n}=e;const r=U8.useContext(W8);return U8.createElement(W8.Provider,{value:n||r},t)};_p.SizeContextProvider=h$t;_p.default=W8;var Jfe=ir.default;Object.defineProperty(OO,"__esModule",{value:!0});OO.default=void 0;var Zq=d,p$t=Jfe(Ep),m$t=Jfe(_p);function g$t(){const e=(0,Zq.useContext)(p$t.default),t=(0,Zq.useContext)(m$t.default);return{componentDisabled:e,componentSize:t}}OO.default=g$t;var OF={},MO={},Zfe=ir.default;Object.defineProperty(MO,"__esModule",{value:!0});MO.default=void 0;var eG=Zfe(Mp),v$t=Zfe(Xa);function y$t(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(i,a){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(i);if((0,v$t.default)(!l,"Warning: There may be circular references"),l)return!1;if(i===a)return!0;if(n&&s>1)return!1;r.add(i);var c=s+1;if(Array.isArray(i)){if(!Array.isArray(a)||i.length!==a.length)return!1;for(var u=0;u=0&&e<=255}function C$t(e,t){const{r:n,g:r,b:o,a:i}=new hw.FastColor(e).toRgb();if(i<1)return e;const{r:a,g:s,b:l}=new hw.FastColor(t).toRgb();for(let c=.01;c<=1;c+=.01){const u=Math.round((n-a*(1-c))/c),f=Math.round((r-s*(1-c))/c),h=Math.round((o-l*(1-c))/c);if(nI(u)&&nI(f)&&nI(h))return new hw.FastColor({r:u,g:f,b:h,a:Math.round(c*100)/100}).toRgbString()}return new hw.FastColor({r:n,g:r,b:o,a:1}).toRgbString()}kO.default=C$t;var the=ir.default;Object.defineProperty(TF,"__esModule",{value:!0});TF.default=E$t;var rI=DS,w$t=the(Zc),pw=the(kO),x$t=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 o=0,r=Object.getOwnPropertySymbols(e);o{delete r[h]});const o=Object.assign(Object.assign({},n),r),i=480,a=576,s=768,l=992,c=1200,u=1600;if(o.motion===!1){const h="0s";o.motionDurationFast=h,o.motionDurationMid=h,o.motionDurationSlow=h}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:(0,pw.default)(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:(0,pw.default)(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:(0,pw.default)(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:o.lineWidth*3,lineWidth:o.lineWidth,controlOutlineWidth:o.lineWidth*2,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:(0,pw.default)(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.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:i,screenXSMin:i,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:l-1,screenLG:l,screenLGMin:l,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:u-1,screenXXL:u,screenXXLMin:u,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:` 0 1px 2px -2px ${new rI.FastColor("rgba(0, 0, 0, 0.16)").toRgbString()}, 0 3px 6px 0 ${new rI.FastColor("rgba(0, 0, 0, 0.12)").toRgbString()}, 0 5px 12px 4px ${new rI.FastColor("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 NO=ir.default;Object.defineProperty(Ql,"__esModule",{value:!0});Ql.default=I$t;Ql.unitless=Ql.ignore=Ql.getComputedToken=void 0;var _$t=NO(d),$$t=Uf,P$t=NO(RO),tG=Vc,O$t=NO(Zc),nhe=NO(TF),nG=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 o=0,r=Object.getOwnPropertySymbols(e);o{const r=n.getDerivativeToken(e),{override:o}=t,i=nG(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=(0,nhe.default)(a),i&&Object.entries(i).forEach(s=>{let[l,c]=s;const{theme:u}=c,f=nG(c,["theme"]);let h=f;u&&(h=RF(Object.assign(Object.assign({},a),f),{override:f},u)),a[l]=h}),a};Ql.getComputedToken=RF;function I$t(){const{token:e,hashed:t,theme:n,override:r,cssVar:o}=_$t.default.useContext(tG.DesignTokenContext),i=`${P$t.default}-${t||""}`,a=n||tG.defaultTheme,[s,l,c]=(0,$$t.useCacheToken)(a,[O$t.default,e],{salt:i,override:r,getComputedToken:RF,formatToken:nhe.default,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:M$t,ignore:T$t,preserve:R$t}});return[a,c,t?l:"",s,o]}var Sf={},Po={};Object.defineProperty(Po,"__esModule",{value:!0});Po.textEllipsis=Po.resetIcon=Po.resetComponent=Po.operationUnit=Po.genLinkStyle=Po.genIconStyle=Po.genFocusStyle=Po.genFocusOutline=Po.genCommonStyle=Po.clearFix=void 0;var k$t=Uf;Po.textEllipsis={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"};const N$t=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}};Po.resetComponent=N$t;const rhe=()=>({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"}});Po.resetIcon=rhe;const A$t=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}});Po.clearFix=A$t;const D$t=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"}}});Po.genLinkStyle=D$t;const j$t=(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,i=n?`.${n}`:o,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return r!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},s),a),{[o]:a})}};Po.genCommonStyle=j$t;const ohe=(e,t)=>({outline:`${(0,k$t.unit)(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"});Po.genFocusOutline=ohe;const ihe=(e,t)=>({"&:focus-visible":Object.assign({},ohe(e,t))});Po.genFocusStyle=ihe;const F$t=e=>({[`.${e}`]:Object.assign(Object.assign({},rhe()),{[`.${e} .${e}-icon`]:{display:"block"}})});Po.genIconStyle=F$t;const L$t=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"},ihe(e)),{"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}});Po.operationUnit=L$t;var B$t=ti.default;Object.defineProperty(Sf,"__esModule",{value:!0});Sf.genSubStyleComponent=Sf.genStyleHooks=Sf.genComponentStyleHook=void 0;var rG=d,z$t=ehe,oI=ys,iI=Po,oG=B$t(Ql);const{genStyleHooks:H$t,genComponentStyleHook:U$t,genSubStyleComponent:W$t}=(0,z$t.genStyleUtils)({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=(0,rG.useContext)(oI.ConfigContext);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,o]=(0,oG.default)();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o}},useCSP:()=>{const{csp:e}=(0,rG.useContext)(oI.ConfigContext);return e??{}},getResetStyles:(e,t)=>{var n;return[{"&":(0,iI.genLinkStyle)(e)},(0,iI.genIconStyle)((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:oI.defaultIconPrefixCls)]},getCommonStyle:iI.genCommonStyle,getCompUnitless:()=>oG.unitless});Sf.genSubStyleComponent=W$t;Sf.genComponentStyleHook=U$t;Sf.genStyleHooks=H$t;var IF={};Object.defineProperty(IF,"__esModule",{value:!0});IF.default=K$t;var V$t=MF;function K$t(e,t){return V$t.PresetColors.reduce((n,r)=>{const o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:s}))},{})}var AO={},q$t=ir.default;Object.defineProperty(AO,"__esModule",{value:!0});AO.default=void 0;var G$t=Uf,Y$t=Po,X$t=q$t(Ql);const Q$t=(e,t)=>{const[n,r]=(0,X$t.default)();return(0,G$t.useStyleRegister)({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[(0,Y$t.genIconStyle)(e)])};AO.default=Q$t;(function(e){var t=ir.default;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DesignTokenContext",{enumerable:!0,get:function(){return u.DesignTokenContext}}),Object.defineProperty(e,"PresetColors",{enumerable:!0,get:function(){return o.PresetColors}}),Object.defineProperty(e,"calc",{enumerable:!0,get:function(){return r.genCalc}}),Object.defineProperty(e,"defaultConfig",{enumerable:!0,get:function(){return u.defaultConfig}}),Object.defineProperty(e,"genComponentStyleHook",{enumerable:!0,get:function(){return s.genComponentStyleHook}}),Object.defineProperty(e,"genPresetColor",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"genStyleHooks",{enumerable:!0,get:function(){return s.genStyleHooks}}),Object.defineProperty(e,"genSubStyleComponent",{enumerable:!0,get:function(){return s.genSubStyleComponent}}),Object.defineProperty(e,"getLineHeight",{enumerable:!0,get:function(){return i.getLineHeight}}),Object.defineProperty(e,"mergeToken",{enumerable:!0,get:function(){return r.mergeToken}}),Object.defineProperty(e,"statistic",{enumerable:!0,get:function(){return r.statistic}}),Object.defineProperty(e,"statisticToken",{enumerable:!0,get:function(){return r.statisticToken}}),Object.defineProperty(e,"useResetIconStyle",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"useStyleRegister",{enumerable:!0,get:function(){return n.useStyleRegister}}),Object.defineProperty(e,"useToken",{enumerable:!0,get:function(){return a.default}});var n=Uf,r=ehe,o=MF,i=jS,a=t(Ql),s=Sf,l=t(IF),c=t(AO),u=Vc})(d0);var DO={},J$t=ti.default;Object.defineProperty(DO,"__esModule",{value:!0});DO.default=void 0;var Z$t=J$t(d);const ePt=Object.assign({},Z$t),{useId:iG}=ePt,tPt=()=>"",nPt=typeof iG>"u"?tPt:iG;DO.default=nPt;var kF=ir.default;Object.defineProperty(OF,"__esModule",{value:!0});OF.default=sPt;var rPt=kF(bO),oPt=kF(MO),iPt=al,aG=d0,aPt=kF(DO);function sPt(e,t,n){var r;(0,iPt.devUseWarning)("ConfigProvider");const o=e||{},i=o.inherit===!1||!t?Object.assign(Object.assign({},aG.defaultConfig),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:aG.defaultConfig.hashed,cssVar:t==null?void 0:t.cssVar}):t,a=(0,aPt.default)();return(0,rPt.default)(()=>{var s,l;if(!e)return t;const c=Object.assign({},i.components);Object.keys(e.components||{}).forEach(h=>{c[h]=Object.assign(Object.assign({},c[h]),e.components[h])});const u=`css-var-${a.replace(/:/g,"")}`,f=((s=o.cssVar)!==null&&s!==void 0?s:i.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof i.cssVar=="object"?i.cssVar:{}),typeof o.cssVar=="object"?o.cssVar:{}),{key:typeof o.cssVar=="object"&&((l=o.cssVar)===null||l===void 0?void 0:l.key)||u});return Object.assign(Object.assign(Object.assign({},i),o),{token:Object.assign(Object.assign({},i.token),o.token),components:c,cssVar:f})},[o,i],(s,l)=>s.some((c,u)=>{const f=l[u];return!(0,oPt.default)(c,f,!0)}))}var NF={};const lPt=y1(KOe);var cPt=ti.default;Object.defineProperty(NF,"__esModule",{value:!0});NF.default=fPt;var sG=cPt(d),uPt=lPt,dPt=d0;function fPt(e){const{children:t}=e,[,n]=(0,dPt.useToken)(),{motion:r}=n,o=sG.useRef(!1);return o.current=o.current||r===!1,o.current?sG.createElement(uPt.Provider,{motion:r},t):t}var jO={},hPt=ti.default;Object.defineProperty(jO,"__esModule",{value:!0});jO.default=void 0;hPt(d);jO.default=()=>null;var ahe={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.useResetIconStyle}});var t=d0})(ahe);(function(e){"use client";var t=ir.default,n=ti.default;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ConfigConsumer",{enumerable:!0,get:function(){return g.ConfigConsumer}}),Object.defineProperty(e,"ConfigContext",{enumerable:!0,get:function(){return g.ConfigContext}}),Object.defineProperty(e,"Variants",{enumerable:!0,get:function(){return g.Variants}}),e.default=e.configConsumerProps=void 0,Object.defineProperty(e,"defaultIconPrefixCls",{enumerable:!0,get:function(){return g.defaultIconPrefixCls}}),Object.defineProperty(e,"defaultPrefixCls",{enumerable:!0,get:function(){return g.defaultPrefixCls}}),e.warnContext=e.globalConfig=void 0;var r=n(d),o=Uf,i=t(a0),a=t(bO),s=SO,l=n(al),c=t(CO),u=n(Kfe),f=t(u0),h=t(Op),p=Vc,m=t(Zc),g=ys,v=PO,b=Ep,y=t(OO),S=t(OF),w=t(NF),E=t(jO),C=n(_p),x=t(ahe),_=function(K,L){var Q={};for(var ee in K)Object.prototype.hasOwnProperty.call(K,ee)&&L.indexOf(ee)<0&&(Q[ee]=K[ee]);if(K!=null&&typeof Object.getOwnPropertySymbols=="function")for(var re=0,ee=Object.getOwnPropertySymbols(K);reL.endsWith("Color"))}const k=K=>{const{prefixCls:L,iconPrefixCls:Q,theme:ee,holderRender:re}=K;L!==void 0&&(O=L),Q!==void 0&&(I=Q),"holderRender"in K&&(T=re),ee&&(j(ee)?(0,v.registerTheme)(D(),ee):M=ee)},F=()=>({getPrefixCls:(K,L)=>L||(K?`${D()}-${K}`:D()),getIconPrefixCls:A,getRootPrefixCls:()=>O||D(),getTheme:()=>M,holderRender:T});e.globalConfig=F;const V=K=>{const{children:L,csp:Q,autoInsertSpaceInButton:ee,alert:re,anchor:ie,form:G,locale:X,componentSize:ne,direction:le,space:ce,splitter:oe,virtual:se,dropdownMatchSelectWidth:fe,popupMatchSelectWidth:te,popupOverflow:he,legacyLocale:pe,parentContext:Oe,iconPrefixCls:Me,theme:Se,componentDisabled:ye,segmented:ve,statistic:be,spin:Pe,calendar:Ne,carousel:U,cascader:H,collapse:q,typography:me,checkbox:Ce,descriptions:ue,divider:Le,drawer:He,skeleton:ge,steps:De,image:qe,layout:Fe,list:Ke,mentions:Ue,modal:Ve,progress:Tt,result:et,slider:st,breadcrumb:yt,menu:gt,pagination:Lt,input:St,textArea:wt,empty:Nt,badge:Be,radio:We,rate:je,switch:Xe,transfer:pt,avatar:vt,message:Mt,tag:Et,table:ft,card:dt,tabs:Rt,timeline:Ct,timePicker:Wt,upload:at,notification:$t,tree:Bt,colorPicker:xt,datePicker:bt,rangePicker:Ft,flex:Re,wave:It,dropdown:tt,warning:Ot,tour:Pt,tooltip:pn,popover:Pn,popconfirm:$,floatButtonGroup:R,variant:J,inputNumber:Ee,treeSelect:ke}=K,Je=r.useCallback((Qt,Jt)=>{const{prefixCls:Rn}=K;if(Jt)return Jt;const er=Rn||Oe.getPrefixCls("");return Qt?`${er}-${Qt}`:er},[Oe.getPrefixCls,K.prefixCls]),Dt=Me||Oe.iconPrefixCls||g.defaultIconPrefixCls,an=Q||Oe.csp;(0,x.default)(Dt,an);const En=(0,S.default)(Se,Oe.theme,{prefixCls:Je("")}),Cr={csp:an,autoInsertSpaceInButton:ee,alert:re,anchor:ie,locale:X||pe,direction:le,space:ce,splitter:oe,virtual:se,popupMatchSelectWidth:te??fe,popupOverflow:he,getPrefixCls:Je,iconPrefixCls:Dt,theme:En,segmented:ve,statistic:be,spin:Pe,calendar:Ne,carousel:U,cascader:H,collapse:q,typography:me,checkbox:Ce,descriptions:ue,divider:Le,drawer:He,skeleton:ge,steps:De,image:qe,input:St,textArea:wt,layout:Fe,list:Ke,mentions:Ue,modal:Ve,progress:Tt,result:et,slider:st,breadcrumb:yt,menu:gt,pagination:Lt,empty:Nt,badge:Be,radio:We,rate:je,switch:Xe,transfer:pt,avatar:vt,message:Mt,tag:Et,table:ft,card:dt,tabs:Rt,timeline:Ct,timePicker:Wt,upload:at,notification:$t,tree:Bt,colorPicker:xt,datePicker:bt,rangePicker:Ft,flex:Re,wave:It,dropdown:tt,warning:Ot,tour:Pt,tooltip:pn,popover:Pn,popconfirm:$,floatButtonGroup:R,variant:J,inputNumber:Ee,treeSelect:ke},ur=Object.assign({},Oe);Object.keys(Cr).forEach(Qt=>{Cr[Qt]!==void 0&&(ur[Qt]=Cr[Qt])}),P.forEach(Qt=>{const Jt=K[Qt];Jt&&(ur[Qt]=Jt)}),typeof ee<"u"&&(ur.button=Object.assign({autoInsertSpace:ee},ur.button));const Nr=(0,a.default)(()=>ur,ur,(Qt,Jt)=>{const Rn=Object.keys(Qt),er=Object.keys(Jt);return Rn.length!==er.length||Rn.some($r=>Qt[$r]!==Jt[$r])}),tr=r.useMemo(()=>({prefixCls:Dt,csp:an}),[Dt,an]);let en=r.createElement(r.Fragment,null,r.createElement(E.default,{dropdownMatchSelectWidth:fe}),L);const un=r.useMemo(()=>{var Qt,Jt,Rn,er;return(0,s.merge)(((Qt=h.default.Form)===null||Qt===void 0?void 0:Qt.defaultValidateMessages)||{},((Rn=(Jt=Nr.locale)===null||Jt===void 0?void 0:Jt.Form)===null||Rn===void 0?void 0:Rn.defaultValidateMessages)||{},((er=Nr.form)===null||er===void 0?void 0:er.validateMessages)||{},(G==null?void 0:G.validateMessages)||{})},[Nr,G==null?void 0:G.validateMessages]);Object.keys(un).length>0&&(en=r.createElement(c.default.Provider,{value:un},en)),X&&(en=r.createElement(u.default,{locale:X,_ANT_MARK__:u.ANT_MARK},en)),(Dt||an)&&(en=r.createElement(i.default.Provider,{value:tr},en)),ne&&(en=r.createElement(C.SizeContextProvider,{size:ne},en)),en=r.createElement(w.default,null,en);const rr=r.useMemo(()=>{const Qt=En||{},{algorithm:Jt,token:Rn,components:er,cssVar:$r}=Qt,ao=_(Qt,["algorithm","token","components","cssVar"]),Bn=Jt&&(!Array.isArray(Jt)||Jt.length>0)?(0,o.createTheme)(Jt):p.defaultTheme,Yr={};Object.entries(er||{}).forEach(rn=>{let[fn,Sn]=rn;const Dn=Object.assign({},Sn);"algorithm"in Dn&&(Dn.algorithm===!0?Dn.theme=Bn:(Array.isArray(Dn.algorithm)||typeof Dn.algorithm=="function")&&(Dn.theme=(0,o.createTheme)(Dn.algorithm)),delete Dn.algorithm),Yr[fn]=Dn});const Fn=Object.assign(Object.assign({},m.default),Rn);return Object.assign(Object.assign({},ao),{theme:Bn,token:Fn,components:Yr,override:Object.assign({override:Fn},Yr),cssVar:$r})},[En]);return Se&&(en=r.createElement(p.DesignTokenContext.Provider,{value:rr},en)),Nr.warning&&(en=r.createElement(l.WarningContext.Provider,{value:Nr.warning},en)),ye!==void 0&&(en=r.createElement(b.DisabledContextProvider,{disabled:ye},en)),r.createElement(g.ConfigContext.Provider,{value:Nr},en)},W=K=>{const L=r.useContext(g.ConfigContext),Q=r.useContext(f.default);return r.createElement(V,Object.assign({parentContext:L,legacyLocale:Q},K))};W.ConfigContext=g.ConfigContext,W.SizeContext=C.default,W.config=k,W.useConfig=y.default,Object.defineProperty(W,"SizeContext",{get:()=>C.default}),e.default=W})(bF);var LS={},pPt=ti.default;Object.defineProperty(LS,"__esModule",{value:!0});LS.LayoutContext=void 0;var mPt=pPt(d);LS.LayoutContext=mPt.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});var AF={},DF={},jF={},gPt=ir.default;Object.defineProperty(jF,"__esModule",{value:!0});jF.default=CPt;var vPt=gPt(Mp),yPt=Symbol.for("react.element"),bPt=Symbol.for("react.transitional.element"),SPt=Symbol.for("react.fragment");function CPt(e){return e&&(0,vPt.default)(e)==="object"&&(e.$$typeof===yPt||e.$$typeof===bPt)&&e.type===SPt}var she=ir.default;Object.defineProperty(DF,"__esModule",{value:!0});DF.default=V8;var wPt=she(jF),xPt=she(d);function V8(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return xPt.default.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(V8(r)):(0,wPt.default)(r)&&r.props?n=n.concat(V8(r.props.children,t)):n.push(r))}),n}var uv={},K8={exports:{}},FO={},FF={};Object.defineProperty(FF,"__esModule",{value:!0});var EPt={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"};FF.default=EPt;var _Pt=ti.default,LF=ir.default;Object.defineProperty(FO,"__esModule",{value:!0});FO.default=void 0;var $Pt=LF(GP),lhe=_Pt(d),PPt=LF(FF),OPt=LF(i0),MPt=function(t,n){return lhe.createElement(OPt.default,(0,$Pt.default)({},t,{ref:n,icon:PPt.default}))},TPt=lhe.forwardRef(MPt);FO.default=TPt;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(FO);function r(i){return i&&i.__esModule?i:{default:i}}const o=n;t.default=o,e.exports=o})(K8,K8.exports);var RPt=K8.exports,q8={exports:{}},LO={},BF={};Object.defineProperty(BF,"__esModule",{value:!0});var IPt={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"};BF.default=IPt;var kPt=ti.default,zF=ir.default;Object.defineProperty(LO,"__esModule",{value:!0});LO.default=void 0;var NPt=zF(GP),che=kPt(d),APt=zF(BF),DPt=zF(i0),jPt=function(t,n){return che.createElement(DPt.default,(0,NPt.default)({},t,{ref:n,icon:APt.default}))},FPt=che.forwardRef(jPt);LO.default=FPt;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(LO);function r(i){return i&&i.__esModule?i:{default:i}}const o=n;t.default=o,e.exports=o})(q8,q8.exports);var LPt=q8.exports,G8={exports:{}},BO={},HF={};Object.defineProperty(HF,"__esModule",{value:!0});var BPt={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"};HF.default=BPt;var zPt=ti.default,UF=ir.default;Object.defineProperty(BO,"__esModule",{value:!0});BO.default=void 0;var HPt=UF(GP),uhe=zPt(d),UPt=UF(HF),WPt=UF(i0),VPt=function(t,n){return uhe.createElement(WPt.default,(0,HPt.default)({},t,{ref:n,icon:UPt.default}))},KPt=uhe.forwardRef(VPt);BO.default=KPt;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const n=r(BO);function r(i){return i&&i.__esModule?i:{default:i}}const o=n;t.default=o,e.exports=o})(G8,G8.exports);var qPt=G8.exports,zO={},Vu={};Object.defineProperty(Vu,"__esModule",{value:!0});Vu.prepareComponentToken=Vu.default=Vu.DEPRECATED_TOKENS=void 0;var GPt=Uf,YPt=d0;const XPt=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:o,headerHeight:i,headerPadding:a,headerColor:s,footerPadding:l,fontSize:c,bodyBg:u,headerBg:f}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:u,"&, *":{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:i,padding:a,color:s,lineHeight:(0,GPt.unit)(i),background:f,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:l,color:r,fontSize:c,background:o},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},dhe=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:o,controlHeightSM:i,marginXXS:a,colorTextLightSolid:s,colorBgContainer:l}=e,c=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${c}px`,headerColor:o,footerPadding:`${i}px ${c}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+a*2,triggerBg:"#002140",triggerColor:s,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:l,lightTriggerBg:l,lightTriggerColor:o}};Vu.prepareComponentToken=dhe;const QPt=Vu.DEPRECATED_TOKENS=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];Vu.default=(0,YPt.genStyleHooks)("Layout",e=>[XPt(e)],dhe,{deprecatedTokens:QPt});Object.defineProperty(zO,"__esModule",{value:!0});zO.default=void 0;var Q0=Uf,lG=Vu,JPt=d0;const ZPt=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:o,antCls:i,triggerHeight:a,triggerColor:s,triggerBg:l,headerHeight:c,zeroTriggerWidth:u,zeroTriggerHeight:f,borderRadiusLG:h,lightSiderBg:p,lightTriggerColor:m,lightTriggerBg:g,bodyBg:v}=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,[`${i}-menu${i}-menu-inline-collapsed`]:{width:"auto"}},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:a,color:s,lineHeight:(0,Q0.unit)(a),textAlign:"center",background:l,cursor:"pointer",transition:`all ${r}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:c,insetInlineEnd:e.calc(u).mul(-1).equal(),zIndex:1,width:u,height:f,color:s,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderRadius:`0 ${(0,Q0.unit)(h)} ${(0,Q0.unit)(h)} 0`,cursor:"pointer",transition:`background ${o} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${o}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(u).mul(-1).equal(),borderRadius:`${(0,Q0.unit)(h)} 0 0 ${(0,Q0.unit)(h)}`}}},"&-light":{background:p,[`${t}-trigger`]:{color:m,background:g},[`${t}-zero-width-trigger`]:{color:m,background:g,border:`1px solid ${v}`,borderInlineStart:0}}}}};zO.default=(0,JPt.genStyleHooks)(["Layout","Sider"],e=>[ZPt(e)],lG.prepareComponentToken,{deprecatedTokens:lG.DEPRECATED_TOKENS});var f0=ir.default,eOt=ti.default;Object.defineProperty(uv,"__esModule",{value:!0});uv.default=uv.SiderContext=void 0;var xu=eOt(d),ds=xu,tOt=f0(RPt),cG=f0(LPt),uG=f0(qPt),dG=f0(X_),nOt=f0(yO),rOt=bF,oOt=LS,iOt=f0(zO),aOt=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 o=0,r=Object.getOwnPropertySymbols(e);o!Number.isNaN(Number.parseFloat(e))&&isFinite(e),lOt=uv.SiderContext=ds.createContext({}),cOt=(()=>{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})(),uOt=ds.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:o,children:i,defaultCollapsed:a=!1,theme:s="dark",style:l={},collapsible:c=!1,reverseArrow:u=!1,width:f=200,collapsedWidth:h=80,zeroWidthTriggerStyle:p,breakpoint:m,onCollapse:g,onBreakpoint:v}=e,b=aOt(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:y}=(0,xu.useContext)(oOt.LayoutContext),[S,w]=(0,xu.useState)("collapsed"in e?e.collapsed:a),[E,C]=(0,xu.useState)(!1);(0,xu.useEffect)(()=>{"collapsed"in e&&w(e.collapsed)},[e.collapsed]);const x=(X,ne)=>{"collapsed"in e||w(X),g==null||g(X,ne)},{getPrefixCls:_,direction:P}=(0,xu.useContext)(rOt.ConfigContext),O=_("layout-sider",n),[I,M,T]=(0,iOt.default)(O),D=(0,xu.useRef)(null);D.current=X=>{C(X.matches),v==null||v(X.matches),S!==X.matches&&x(X.matches,"responsive")},(0,xu.useEffect)(()=>{function X(le){return D.current(le)}let ne;if(typeof window<"u"){const{matchMedia:le}=window;if(le&&m&&m in fG){ne=le(`screen and (max-width: ${fG[m]})`);try{ne.addEventListener("change",X)}catch{ne.addListener(X)}X(ne)}}return()=>{try{ne==null||ne.removeEventListener("change",X)}catch{ne==null||ne.removeListener(X)}}},[m]),(0,xu.useEffect)(()=>{const X=cOt("ant-sider-");return y.addSider(X),()=>y.removeSider(X)},[]);const A=()=>{x(!S,"clickTrigger")},j=(0,nOt.default)(b,["collapsed"]),k=S?h:f,F=sOt(k)?`${k}px`:String(k),V=parseFloat(String(h||0))===0?ds.createElement("span",{onClick:A,className:(0,dG.default)(`${O}-zero-width-trigger`,`${O}-zero-width-trigger-${u?"right":"left"}`),style:p},o||ds.createElement(tOt.default,null)):null,W=P==="rtl"==!u,Q={expanded:W?ds.createElement(uG.default,null):ds.createElement(cG.default,null),collapsed:W?ds.createElement(cG.default,null):ds.createElement(uG.default,null)}[S?"collapsed":"expanded"],ee=o!==null?V||ds.createElement("div",{className:`${O}-trigger`,onClick:A,style:{width:F}},o||Q):null,re=Object.assign(Object.assign({},l),{flex:`0 0 ${F}`,maxWidth:F,minWidth:F,width:F}),ie=(0,dG.default)(O,`${O}-${s}`,{[`${O}-collapsed`]:!!S,[`${O}-has-trigger`]:c&&o!==null&&!V,[`${O}-below`]:!!E,[`${O}-zero-width`]:parseFloat(F)===0},r,M,T),G=ds.useMemo(()=>({siderCollapsed:S}),[S]);return I(ds.createElement(lOt.Provider,{value:G},ds.createElement("aside",Object.assign({className:ie},j,{style:re,ref:t}),ds.createElement("div",{className:`${O}-children`},i),c||E&&V?ee:null)))});uv.default=uOt;var fhe=ir.default;Object.defineProperty(AF,"__esModule",{value:!0});AF.default=hOt;var dOt=fhe(DF),fOt=fhe(uv);function hOt(e,t,n){return typeof n=="boolean"?n:e.length?!0:(0,dOt.default)(t).some(o=>o.type===fOt.default)}var HO,UO,pOt=ti.default,BS=ir.default;Object.defineProperty(Fu,"__esModule",{value:!0});Fu.default=Fu.Header=UO=Fu.Footer=HO=Fu.Content=void 0;var mOt=BS(Bfe),Ks=pOt(d),hhe=BS(X_),gOt=BS(yO),Y8=bF,vOt=LS,yOt=BS(AF),phe=BS(Vu),mhe=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 o=0,r=Object.getOwnPropertySymbols(e);oKs.forwardRef((a,s)=>Ks.createElement(o,Object.assign({ref:s,suffixCls:t,tagName:n},a)))}const WF=Ks.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:o,tagName:i}=e,a=mhe(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:s}=Ks.useContext(Y8.ConfigContext),l=s("layout",n),[c,u,f]=(0,phe.default)(l),h=r?`${l}-${r}`:l;return c(Ks.createElement(i,Object.assign({className:(0,hhe.default)(n||h,o,u,f),ref:t},a)))}),bOt=Ks.forwardRef((e,t)=>{const{direction:n}=Ks.useContext(Y8.ConfigContext),[r,o]=Ks.useState([]),{prefixCls:i,className:a,rootClassName:s,children:l,hasSider:c,tagName:u,style:f}=e,h=mhe(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),p=(0,gOt.default)(h,["suffixCls"]),{getPrefixCls:m,layout:g}=Ks.useContext(Y8.ConfigContext),v=m("layout",i),b=(0,yOt.default)(r,l,c),[y,S,w]=(0,phe.default)(v),E=(0,hhe.default)(v,{[`${v}-has-sider`]:b,[`${v}-rtl`]:n==="rtl"},g==null?void 0:g.className,a,s,S,w),C=Ks.useMemo(()=>({siderHook:{addSider:x=>{o(_=>[].concat((0,mOt.default)(_),[x]))},removeSider:x=>{o(_=>_.filter(P=>P!==x))}}}),[]);return y(Ks.createElement(vOt.LayoutContext.Provider,{value:C},Ks.createElement(u,Object.assign({ref:t,className:E,style:Object.assign(Object.assign({},g==null?void 0:g.style),f)},p),l)))}),SOt=WO({tagName:"div",displayName:"Layout"})(bOt);Fu.Header=WO({suffixCls:"header",tagName:"header",displayName:"Header"})(WF);UO=Fu.Footer=WO({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(WF);HO=Fu.Content=WO({suffixCls:"content",tagName:"main",displayName:"Content"})(WF);Fu.default=SOt;function zS(){const{isDarkMode:e}=FQ(),{token:t}=pa.useToken(),n={borderRight:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#eee"},r=260,o={borderBottom:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#eee"},i={borderLeft:e?"1px solid #333":"1px solid #ccc",background:e?"#141414":"#eee"},a={minHeight:120,overflowY:"auto"},s={height:20,fontSize:12,backgroundColor:t.colorBgContainer,color:t.colorText};return{leftSiderStyle:n,leftSiderWidth:r,headerStyle:o,rightSiderStyle:i,contentStyle:a,footerStyle:s}}const{Header:COt,Sider:wOt,Content:xOt}=ei,ghe=()=>{const e=eo();d.useContext(ia);const t=Ya(),{headerStyle:n,leftSiderStyle:r,leftSiderWidth:o,contentStyle:i}=zS(),[a,s]=d.useState([]);d.useEffect(()=>{const c=[{label:e.formatMessage({id:"setting.menu.title",defaultMessage:"设置"}),key:"setting",children:[{label:e.formatMessage({id:"setting.menu.profile",defaultMessage:"个人信息"}),key:"profile"},{label:e.formatMessage({id:"setting.menu.basic",defaultMessage:"基本设置"}),key:"basic"}]}];s(c)},[e]);const l=c=>{console.log(e.formatMessage({id:"setting.menu.click",defaultMessage:"Menu clicked"}),c),t("/setting/"+c.key)};return N.jsxs(ei,{children:[N.jsx(wOt,{style:r,width:o,children:N.jsx(vc,{mode:"inline",onClick:l,defaultSelectedKeys:["profile"],defaultOpenKeys:["setting"],items:a})}),N.jsxs(ei,{children:[N.jsx(COt,{style:n,children:e.formatMessage({id:"menu.dashboard.mine"})}),N.jsx(xOt,{style:i,children:N.jsx(PP,{})})]})]})},vhe=hl()(uc(dc(fc((e,t)=>({newfriends:[],devices:[],groups:[],channels:[],members:[],friends:[],currentContact:{type:"",device:{uid:""}},memberSelf:{type:"",member:{uid:""}},addNewfriend(n){console.log("addNewfriend",n)},addDevice(n){var r;if(n.type===EQ){const o=t().devices.some(i=>i.device.uid===n.device.uid);e(o?{devices:[n,...t().devices.filter(i=>i.device.uid!==n.device.uid)]}:{devices:[n,...t().devices]}),((r=t().currentContact.device)==null?void 0:r.uid)===n.device.uid&&e({currentContact:n})}},addGroup(n){console.log("addGroup",n)},addChannel(n){console.log("addChannel",n)},addMember(n){if(n.type===V0e){const r=t().members.some(o=>o.member.uid===n.member.uid);e(r?{members:[n,...t().members.filter(o=>o.member.uid!==n.member.uid)]}:{members:[...t().members,n]})}},addFriend(n){console.log("addFriend",n)},setCurrentContact:n=>{e({currentContact:n})},setMemberSelf:n=>{e({memberSelf:n})},resetContactInfo(){e({newfriends:[],devices:[],groups:[],channels:[],members:[],friends:[],currentContact:{type:"",device:{uid:""}},memberSelf:{type:"",member:{uid:""}}})}})),{name:F0e}))),EOt=hl()(uc(dc(fc((e,t)=>({currentMember:{nickname:"",user:{uid:"",avatar:""}},memberSelf:{nickname:"",user:{uid:"",avatar:""}},memberResult:{data:{content:[]}},setCurrentMember(n){e({currentMember:n})},setMemberSelf(n){e({memberSelf:n})},setMemberResult:n=>{e({memberResult:n})},resetMembers:()=>e({currentMember:{nickname:"",user:{uid:"",avatar:""}},memberSelf:{nickname:"",user:{uid:"",avatar:""}}})})),{name:D0e}))),yhe=hl()(uc(dc(fc((e,t)=>({workgroupResult:{data:{content:[]}},workgroupInfo:{uid:"",orgUid:""},insertWorkgroup(n){e(r=>{r.workgroupResult.data.content.unshift(n)})},updateWorkgroup(n){e(r=>{const o=r.workgroupResult.data.content,i=o.findIndex(a=>a.uid===n.uid);i!==-1?o[i]=n:console.warn(`Workgroup with uid ${n.uid} not found.`)})},deleteWorkgroup(n){e(r=>{const o=r.workgroupResult.data.content,i=o.findIndex(a=>a.uid===n.uid);i!==-1?o.splice(i,1):console.warn(`Workgroup with uid ${n.uid} not found.`)})},setWorkgroupResult:n=>{e({workgroupResult:n})},setWorkgroupInfo(n){e({workgroupInfo:n})},deleteWorkgroupInfo(n){const r=t().workgroupResult.data.content,o=r.findIndex(i=>i.uid===n);o!==-1?e({workgroupResult:{...t().workgroupResult,data:{content:[...r.slice(0,o),...r.slice(o+1)]}}}):console.warn("Workgroup not found in cache:",n),t().workgroupInfo.uid===n&&e({workgroupInfo:{uid:"",orgUid:""}})},resetWorkgroupInfo(){e({workgroupResult:{data:{content:[]}},workgroupInfo:{uid:"",orgUid:""}})}})),{name:W0e}))),_Ot=()=>{const e=Dp(u=>u.deleteOrg),t=Ll(u=>u.resetThreads),n=hd(u=>u.resetMessageList),r=EOt(u=>u.resetMembers),o=_1(u=>u.removeAccessToken),i=vi(u=>u.resetUserInfo),a=vhe(u=>u.resetContactInfo),s=jp(u=>u.resetAgentInfo),l=yhe(u=>u.resetWorkgroupInfo);return{clearStorage:()=>{e(),t(),n(),r(),o(),i(),a(),s(),l()}}};function VF(){const e=_1(y=>y.accessToken),t=vi(y=>y.userInfo),n=jp(y=>y.agentInfo),r=vO(),[o,i]=d.useState(!1),{showNotification:a}=yF(),{translateString:s}=cu();hd(y=>y.addMessage),Ll(y=>y.updateThreadContent),d.useContext(ia),d.useRef(!1);const l=Ll(y=>y.threads),[c,u]=d.useState(l),f=d.useCallback(()=>{if(r&&e)return setInterval(()=>{console.log("useMqtt autoCheckConnection"),!$Ge()&&r&&e&&g()},1e4);console.log("useMqtt autoCheckConnection isNetworkOnline:",r," accessToken:",e)},[r,e]),h=async()=>{},p=d.useRef(n==null?void 0:n.uid),m=d.useCallback(()=>{if(!o&&e)return setInterval(async()=>{p.current?h():console.log("useMqtt autoPingMessage currentUidRef.current:",p.current)},1e4);console.log("useMqtt autoPingMessage isNetworkOnline:",r," accessToken:",e)},[o,e,t,n]),g=()=>{console.log("useMqtt doConnect"),EGe({uid:t.uid,username:t.username,accessToken:e})},v=()=>{console.log("useMqtt useEffect doDisconnect"),wR()},b=y=>{var S,w;(y==null?void 0:y.type)!==$b&&((S=y==null?void 0:y.user)==null?void 0:S.uid)!==(t==null?void 0:t.uid)&&((w=y==null?void 0:y.user)==null?void 0:w.uid)!==(n==null?void 0:n.uid)&&(i_e(),console.log("playAudio"))};return d.useEffect(()=>{console.log("useMqtt useEffect isNetworkOnline",r),r?g():wR()},[r]),d.useEffect(()=>{if(n!=null&&n.uid){p.current=n==null?void 0:n.uid;const y=m();return()=>{clearInterval(y)}}else p.current=null},[n]),d.useEffect(()=>{console.log("useMqtt useEffect accessToken"),g();const y=f();return()=>{wR(),clearInterval(y)}},[e,t]),d.useEffect(()=>{console.log("useMqtt threads change"),u(l)},[l]),d.useEffect(()=>{const y=function(S){if(console.log("useMqtt handleNewMessage",S),S.type===_b||S.type===_Q||S.type===_k||S.type===$b||S.type===Pb)return;const w=S.threadTopic,E=c.find(C=>C.topic===w);E?E.mute?console.log("useMqtt matchingThread muted",w):(console.log("useMqtt matchingThread no mute",w),a(s(bC),s(bC)),b(S)):(console.log("useMqtt matchingThread no"),a(s(bC),s(bC)),b(S))};return Jn.on(xb,y),()=>{Jn.off(xb)}},[c]),d.useEffect(()=>{console.log("useMqtt useEffect");const y=function(){console.log("handleMqttConnected"),i(!0)},S=function(){console.log("handleMqttDisconnected"),i(!1)};return Jn.on(mk,y),Jn.on(vk,S),Jn.on(yk,S),Jn.on(gk,S),Jn.on(bk,S),Jn.on(Sk,S),()=>{console.log("un - useEffect mqttDisconnect"),Jn.off(mk),Jn.off(vk),Jn.off(yk),Jn.off(gk),Jn.off(bk),Jn.off(Sk)}},[]),{doConnect:g,doDisconnect:v,isMqttConnected:o}}function bhe(){console.log("useEventBus");const{clearStorage:e}=_Ot(),{doDisconnect:t}=VF(),{setPingLoading:n}=d.useContext(ia),r=d.useCallback(async()=>{try{const o=await GEt();console.log("logout result:",o.data),n(!1),t(),e(),DGe()}catch(o){console.log("logout error:",o)}},[]);return d.useEffect(()=>{console.log("useEventBus useEffect");const o=function(i){console.log("token过期,强制刷新登录",i),Jn.off(pf,o),r()};return Jn.on(pf,o),()=>{console.log("un - useEffect mqttDisconnect"),Jn.off(pf)}},[]),{doLogout:r}}const She=()=>{const e=eo(),{isLoggedIn:t,mode:n}=d.useContext(ia),{doLogout:r}=bhe(),[o,i]=d.useState("✅"),[a,s]=d.useState(e.formatMessage({id:"footbar.network.normal",defaultMessage:"网络正常"})),l=vO();d.useEffect(()=>{l?(i("✅"),s(e.formatMessage({id:"footbar.network.normal",defaultMessage:"网络正常"}))):(i("❌"),s(e.formatMessage({id:"footbar.network.disconnected",defaultMessage:"网络断开"})))},[l,e]);const c=N.jsx("div",{children:N.jsx("p",{children:e.formatMessage({id:"footbar.anonymous.tip",defaultMessage:"匿名状态,仅支持同一个局域网内在线设备之间通信"})})}),u=N.jsx("div",{children:N.jsx("p",{children:e.formatMessage({id:"footbar.login.tip",defaultMessage:"登录后,支持离线消息和更多功能"})})}),[f,h]=d.useState(!1),p=()=>{h(!0)},m=()=>{h(!1)},g=()=>{console.log("handleShowLoginModel"),p()},v=y=>{console.log(y),r()},b=y=>{console.log(y)};return N.jsxs(N.Fragment,{children:[N.jsx(Hi,{open:f&&!t,onOk:m,onCancel:m,footer:[N.jsx(Hn,{onClick:m,children:e.formatMessage({id:"footbar.login.skip",defaultMessage:"暂不登录"})},"back")],children:N.jsx(L8,{isModel:!0})}),N.jsxs("span",{children:[!t&&N.jsxs(N.Fragment,{children:[N.jsx(fl,{content:c,title:e.formatMessage({id:"footbar.anonymous.status",defaultMessage:"匿名状态"}),children:N.jsx("span",{className:"footerLeftButton",children:e.formatMessage({id:"footbar.anonymous.status",defaultMessage:"匿名状态"})})}),N.jsx(fl,{content:u,children:N.jsx("span",{className:"footerLeftButton",onClick:g,children:e.formatMessage({id:"footbar.login",defaultMessage:"登录"})})})]}),t&&N.jsx(N.Fragment,{children:N.jsx(Mse,{title:e.formatMessage({id:"footbar.logout.title",defaultMessage:"退出登录"}),description:e.formatMessage({id:"footbar.logout.confirm",defaultMessage:"确定要退出登录?"}),onConfirm:v,onCancel:b,okText:e.formatMessage({id:"common.confirm",defaultMessage:"确定"}),cancelText:e.formatMessage({id:"common.cancel",defaultMessage:"取消"}),children:N.jsx("span",{className:"footerLeftButton",children:e.formatMessage({id:"footbar.logout",defaultMessage:"退出登录"})})})}),n===sp&&Ag&&N.jsx("span",{style:{marginLeft:10},children:N.jsx(xa,{title:e.formatMessage({id:"footbar.serving.count",defaultMessage:"当前接待人数"}),children:N.jsx("span",{children:e.formatMessage({id:"footbar.serving.text",defaultMessage:"当前接待人数:0"})})})})]}),N.jsxs("span",{className:"footerRightButton",children:[N.jsx(xa,{title:a,children:N.jsx("span",{children:o})}),N.jsxs("span",{style:{marginLeft:"10px"},onClick:()=>Qb(rye),children:["v",o_e()]}),N.jsx("span",{style:{marginLeft:"10px"},onClick:()=>Qb("https://www.weiyuai.cn/chat/iframe.html?org=df_org_uid&t=1&sid=df_wg_uid&"),children:e.formatMessage({id:"i18n.online.chat",defaultMessage:"Chat"})})]})]})},Che=()=>{const e=Ya(),{userInfo:t}=Hle(),{translateString:n}=cu(),{mode:r}=d.useContext(ia),[o,i]=d.useState(""),[a,s]=d.useState(""),[l,c]=d.useState(""),u=()=>{e("/setting")};return d.useEffect(()=>{i(n(t==null?void 0:t.nickname)),s(n(t==null?void 0:t.description)),c(t==null?void 0:t.avatar)},[r,t]),N.jsx(N.Fragment,{children:N.jsx(fl,{title:o,content:a,placement:"rightBottom",children:N.jsx(N.Fragment,{children:N.jsx(Xc,{style:{marginTop:60,cursor:"pointer"},size:40,src:l,onClick:u})})})})};function whe(){console.log("useElectronApi");const e=Ya(),t=vi(r=>r.userInfo),n=vhe(r=>r.addDevice);d.useEffect(()=>(console.log("useElectronApi useEffect"),Pi?(window.electronAPI.loginSuccess(),window.electronAPI.onNewWindowCreated(r=>{console.log("Dashboard onNewWindowCreated content:",r),e("/enlarge",{state:{content:r}})}),window.electronAPI.onMulticastMessage(r=>{const o=JSON.parse(r);if(o.user.uid!==t.uid){console.log("EVENT_BUS_MULTICAST_MESSAGE_RECEIVED",r);const i={type:EQ,device:o.device,user:o.user,createdAt:o.createdAt};n(i)}}),window.electronAPI.onWebSocketMessage(r=>{console.log("Dashboard onWebSocketMessage content:",r)}),window.electronAPI.onHttpMessage(r=>{console.log("Dashboard onHttpMessage content:",r)}),window.electronAPI.onNotificationMessage(r=>{if(console.log("Dashboard onNotificationMessage content:",r),r.type===P0e){gn.success("截图成功");const o=r.data;Jn.emit(k0e,o.toDataURL())}})):console.log("not electron - in browser"),()=>{console.log("un - useEffect"),Pi?(window.electronAPI.offNewWindowCreated(),window.electronAPI.offMulticastMessageAll(),window.electronAPI.offWebSocketMessageAll(),window.electronAPI.offHttpMessageAll(),window.electronAPI.offNotificationMessageAll()):console.log("not electron")}),[])}const $Ot=()=>{const e=eo(),{doLogout:t}=bhe(),{isLoggedIn:n,locale:r,changeLocale:o,mode:i,changeMode:a,handleUpdateAgentStatus:s}=d.useContext(ia),{agentInfo:l}=jp(p=>({agentInfo:p.agentInfo})),c=[{key:"settings",label:e.formatMessage({id:"menu.settings",defaultMessage:"Settings"}),icon:N.jsx(Wse,{}),children:[{key:"logout",label:e.formatMessage({id:"menu.settings.logout",defaultMessage:"Logout"})}]}],[u,f]=d.useState(c);d.useEffect(()=>{if(f(c),l.uid!==""&&i===sp){console.log("agentInfo changed",l);const p=[...c],m={key:"status",label:e.formatMessage({id:"menu.agent.status",defaultMessage:"Agent Status"}),type:"group",children:[{key:Q7,icon:l.status===Q7?N.jsx(gf,{}):N.jsx(N.Fragment,{}),label:e.formatMessage({id:"menu.agent.status.available",defaultMessage:"Available"})},{key:J7,icon:l.status===J7?N.jsx(gf,{}):N.jsx(N.Fragment,{}),label:e.formatMessage({id:"menu.agent.status.rest",defaultMessage:"Rest"})},{key:WM,icon:l.status===WM?N.jsx(gf,{}):N.jsx(N.Fragment,{}),label:e.formatMessage({id:"menu.agent.status.offline",defaultMessage:"Offline"})}]},g=p[0].children,v=g.findIndex(b=>b.key===m.key);v!==-1?g[v]=m:g.splice(0,0,m),p[0].children=g,f(p)}},[l,r,i]);const h=async p=>{console.log("click",p.key),p.key==="logout"?t():p.key==="zh-cn"||p.key==="zh-tw"||p.key==="en"?o(p.key):p.key===Zm||p.key===sp||p.key===a2?(console.log("mode",p.key),a(p.key)):(console.log("status"),p.key===WM&&_se.warning(e.formatMessage({id:"menu.agent.offline.warning",defaultMessage:"Please end all ongoing conversations before going offline"})),s(p.key))};return N.jsx(N.Fragment,{children:n?N.jsx(N.Fragment,{children:N.jsx(vc,{inlineCollapsed:!0,onClick:h,style:{width:64,height:34},mode:"inline",items:u})}):N.jsx(N.Fragment,{})})};async function POt(e){return ko("/api/v1/workgroup/query/org",{method:"GET",params:{...e,client:po}})}const xhe=()=>{const[e,t]=d.useState([]),n=new jle;d.useEffect(()=>{(async()=>{try{const s=await n.getAllMessages();t(s)}catch(s){console.error("Error fetching messages from IndexedDB:",s)}})()},[]);const r=async a=>{try{await n.createMessage(a);const s=await n.getAllMessages();console.log("useIndexedDB createMessage newMessages: ",s),t(s)}catch(s){console.error("Error creating message in IndexedDB:",s)}},o=async(a,s)=>{try{await n.updateMessage(a,s);const l=await n.getAllMessages();t(l)}catch(l){console.error("Error updating message in IndexedDB:",l)}},i=async a=>{try{await n.deleteMessage(a);const s=await n.getAllMessages();t(s)}catch(s){console.error("Error deleting message in IndexedDB:",s)}};return d.useEffect(()=>{console.log("useIndexedDB useEffect");const a=function(s){console.log("useIndexedDB handleNewMessage",s),r(s)};return Jn.on(xb,a),()=>{console.log("useIndexedDB useEffect return"),Jn.off(xb,a)}},[]),{messages:e,createMessage:r,updateMessage:o,deleteMessage:i}};async function Ehe(){return ko("/api/v1/user/profile",{method:"GET",params:{client:po}})}async function _he(e){return ko("/api/v1/user/update",{method:"POST",data:{...e,client:po}})}async function OOt(e){return ko("/api/v1/user/change/password",{method:"POST",data:{...e,client:po}})}async function $he(e){return ko("/api/v1/user/change/email",{method:"POST",data:{...e,client:po}})}async function Phe(e){return ko("/api/v1/user/change/mobile",{method:"POST",data:{...e,client:po}})}const MOt=()=>{const e=eo(),{locale:t,changeLocale:n}=d.useContext(ia),r=[{key:"lang",icon:N.jsx(UHe,{}),label:e.formatMessage({id:"menu.language"}),children:[{key:"zh-cn",icon:t.locale==="zh-cn"?N.jsx(gf,{}):N.jsx(N.Fragment,{}),label:e.formatMessage({id:"i18n.lang.zh-CN"})},{key:"zh-tw",icon:t.locale==="zh-tw"?N.jsx(gf,{}):N.jsx(N.Fragment,{}),label:e.formatMessage({id:"i18n.lang.zh-TW"})},{key:"en",icon:t.locale==="en"?N.jsx(gf,{}):N.jsx(N.Fragment,{}),label:e.formatMessage({id:"i18n.lang.en-US"})}]}],o=i=>{const a=i.key;n(a)};return N.jsx(vc,{inlineCollapsed:!0,onClick:o,style:{width:64,height:34},mode:"inline",items:r})},TOt={id:"1",name:"示例项目",description:"这是一个示例项目",members:[],boards:[{id:"1",name:"主看板",lists:[{id:"list1",name:"待办",cards:[{id:"card1",title:"示例任务1",labels:[{id:"1",name:"优先",color:"red"}],members:[],tasks:[]}]},{id:"list2",name:"进行中",cards:[]},{id:"list3",name:"已完成",cards:[]}]}]},ROt={id:"1",userId:"1",date:"2024-02-08",content:{completed:["完成看板功能","完成日报功能"],inProgress:["周报功能开发中"],problems:["遇到了一些性能问题"],plans:["明天完成周报功能"]},workHours:8,projectId:"1"},IOt={id:"1",userId:"1",weekStart:"2024-02-05",weekEnd:"2024-02-11",content:{completed:["完成项目基础架构","实现核心功能"],nextWeekPlan:["开始开发新功能","优化现有功能"],problems:["需要优化性能"],suggestions:["建议增加自动化测试"]},projectProgress:[{projectId:"1",progress:60,description:"项目进展顺利,已完成主要功能"}]},nl=hl(e=>({projects:[TOt],currentProject:null,dailyReports:[ROt],weeklyReports:[IOt],setProjects:t=>e({projects:t}),setCurrentProject:t=>e({currentProject:t}),addCard:(t,n)=>e(r=>({currentProject:r.currentProject?{...r.currentProject,boards:r.currentProject.boards.map(o=>({...o,lists:o.lists.map(i=>i.id===t?{...i,cards:[...i.cards,n]}:i)}))}:null})),moveCard:(t,n,r,o)=>e(i=>{var s;if(!i.currentProject)return i;const a=(s=i.currentProject.boards.flatMap(l=>l.lists).find(l=>l.id===n))==null?void 0:s.cards.find(l=>l.id===t);return a?{currentProject:{...i.currentProject,boards:i.currentProject.boards.map(l=>({...l,lists:l.lists.map(c=>{if(c.id===n)return{...c,cards:c.cards.filter(u=>u.id!==t)};if(c.id===r){const u=[...c.cards];return u.splice(o,0,a),{...c,cards:u}}return c})}))}}:i}),updateCard:(t,n)=>e(r=>({currentProject:r.currentProject?{...r.currentProject,boards:r.currentProject.boards.map(o=>({...o,lists:o.lists.map(i=>({...i,cards:i.cards.map(a=>a.id===t?{...a,...n}:a)}))}))}:null})),addDailyReport:t=>e(n=>({dailyReports:[...n.dailyReports,t]})),addWeeklyReport:t=>e(n=>({weeklyReports:[...n.weeklyReports,t]}))})),Ohe=()=>{const e=nl(o=>o.projects),t=nl(o=>o.setCurrentProject),n=Ya(),r=o=>{t(o),n(`/project/${o.id}`)};return N.jsxs(sP,{gutter:[16,16],children:[e.map(o=>N.jsx(gp,{xs:24,sm:12,md:8,lg:6,children:N.jsx(ol,{hoverable:!0,cover:o.background&&N.jsx("img",{alt:o.name,src:o.background}),onClick:()=>r(o),children:N.jsx(ol.Meta,{title:o.name,description:o.description})})},o.id)),N.jsx(gp,{xs:24,sm:12,md:8,lg:6,children:N.jsx(ol,{hoverable:!0,style:{height:"100%",display:"flex",alignItems:"center",justifyContent:"center"},children:N.jsx(Hn,{type:"text",icon:N.jsx(Hu,{}),children:"创建项目"})})})]})},Mhe=()=>{const[e]=Vn.useForm(),[t,n]=d.useState(!1),r=nl(s=>s.dailyReports),o=nl(s=>s.addDailyReport),i=[{title:"日期",dataIndex:"date",key:"date",render:s=>qn(s).format("YYYY-MM-DD")},{title:"工作时长",dataIndex:"workHours",key:"workHours",render:s=>`${s}小时`},{title:"已完成工作",dataIndex:["content","completed"],key:"completed",render:s=>N.jsx(oo,{wrap:!0,children:s.map((l,c)=>N.jsx(Uu,{color:"success",children:l},c))})},{title:"进行中工作",dataIndex:["content","inProgress"],key:"inProgress",render:s=>N.jsx(oo,{wrap:!0,children:s.map((l,c)=>N.jsx(Uu,{color:"processing",children:l},c))})}],a=s=>{const l={id:Date.now().toString(),userId:"1",date:s.date.format("YYYY-MM-DD"),content:{completed:s.completed||[],inProgress:s.inProgress||[],problems:s.problems||[],plans:s.plans||[]},workHours:s.workHours,projectId:"1"};o(l),n(!1),e.resetFields()};return N.jsxs(N.Fragment,{children:[N.jsx(ol,{title:"日报",extra:N.jsx(Hn,{type:"primary",onClick:()=>n(!0),children:"新建日报"}),children:N.jsx(au,{columns:i,dataSource:r,rowKey:"id",pagination:{pageSize:10}})}),N.jsx(dP,{title:"新建日报",width:720,open:t,onClose:()=>n(!1),destroyOnClose:!0,children:N.jsxs(Vn,{form:e,layout:"vertical",onFinish:a,initialValues:{workHours:8},children:[N.jsx(Vn.Item,{name:"date",label:"日期",rules:[{required:!0,message:"请选择日期"}],children:N.jsx(qa,{style:{width:"100%"}})}),N.jsx(Vn.List,{name:"completed",children:(s,{add:l,remove:c})=>N.jsx(N.Fragment,{children:N.jsxs(Vn.Item,{label:"已完成工作",children:[s.map((u,f)=>N.jsxs(oo,{align:"baseline",children:[N.jsx(Vn.Item,{...u,rules:[{required:!0,message:"请输入已完成工作"}],children:N.jsx(qr,{placeholder:"请输入已完成工作内容"})}),N.jsx(lg,{onClick:()=>c(f)})]},u.key)),N.jsx(Hn,{type:"dashed",onClick:()=>l(),block:!0,icon:N.jsx(Hu,{}),children:"添加已完成工作"})]})})}),N.jsx(Vn.List,{name:"inProgress",children:(s,{add:l,remove:c})=>N.jsx(N.Fragment,{children:N.jsxs(Vn.Item,{label:"进行中工作",children:[s.map((u,f)=>N.jsxs(oo,{align:"baseline",children:[N.jsx(Vn.Item,{...u,rules:[{required:!0,message:"请输入进行中工作"}],children:N.jsx(qr,{placeholder:"请输入进行中工作内容"})}),N.jsx(lg,{onClick:()=>c(f)})]},u.key)),N.jsx(Hn,{type:"dashed",onClick:()=>l(),block:!0,icon:N.jsx(Hu,{}),children:"添加进行中工作"})]})})}),N.jsx(Vn.List,{name:"problems",children:(s,{add:l,remove:c})=>N.jsx(N.Fragment,{children:N.jsxs(Vn.Item,{label:"遇到的问题",children:[s.map((u,f)=>N.jsxs(oo,{align:"baseline",children:[N.jsx(Vn.Item,{...u,children:N.jsx(qr,{placeholder:"请输入遇到的问题"})}),N.jsx(lg,{onClick:()=>c(f)})]},u.key)),N.jsx(Hn,{type:"dashed",onClick:()=>l(),block:!0,icon:N.jsx(Hu,{}),children:"添加问题"})]})})}),N.jsx(Vn.Item,{name:"workHours",label:"工作时长(小时)",children:N.jsx(lc,{min:0,max:24})}),N.jsx(Vn.Item,{children:N.jsxs(oo,{children:[N.jsx(Hn,{type:"primary",htmlType:"submit",children:"提交"}),N.jsx(Hn,{onClick:()=>n(!1),children:"取消"})]})})]})})]})},{TextArea:kOt}=qr,{RangePicker:NOt}=qa,The=()=>{const[e]=Vn.useForm(),[t,n]=d.useState(!1),r=nl(s=>s.weeklyReports),o=nl(s=>s.addWeeklyReport),i=[{title:"周期",key:"weekRange",render:(s,l)=>`${l.weekStart} 至 ${l.weekEnd}`},{title:"本周完成",dataIndex:["content","completed"],key:"completed",render:s=>N.jsx(oo,{wrap:!0,children:s.map((l,c)=>N.jsx(Uu,{color:"success",children:l},c))})},{title:"项目进展",dataIndex:"projectProgress",key:"projectProgress",render:s=>N.jsx(oo,{direction:"vertical",children:s.map((l,c)=>N.jsxs("div",{children:[N.jsx(Uu,{color:"blue",children:l.projectId}),N.jsxs(Uu,{color:"green",children:[l.progress,"%"]})]},c))})}],a=s=>{const[l,c]=s.weekRange,u={id:Date.now().toString(),userId:"1",weekStart:l.format("YYYY-MM-DD"),weekEnd:c.format("YYYY-MM-DD"),content:{completed:s.completed||[],nextWeekPlan:s.nextWeekPlan||[],problems:s.problems||[],suggestions:s.suggestions||[]},projectProgress:s.projectProgress||[]};o(u),n(!1),e.resetFields()};return N.jsxs(N.Fragment,{children:[N.jsx(ol,{title:"周报",extra:N.jsx(Hn,{type:"primary",onClick:()=>n(!0),children:"新建周报"}),children:N.jsx(au,{columns:i,dataSource:r,rowKey:"id",pagination:{pageSize:10}})}),N.jsx(dP,{title:"新建周报",width:720,open:t,onClose:()=>n(!1),destroyOnClose:!0,children:N.jsxs(Vn,{form:e,layout:"vertical",onFinish:a,children:[N.jsx(Vn.Item,{name:"weekRange",label:"周期",rules:[{required:!0,message:"请选择周期"}],children:N.jsx(NOt,{style:{width:"100%"},picker:"week"})}),N.jsx(Vn.List,{name:"completed",children:(s,{add:l,remove:c})=>N.jsx(N.Fragment,{children:N.jsxs(Vn.Item,{label:"本周完成工作",children:[s.map((u,f)=>N.jsxs(oo,{align:"baseline",children:[N.jsx(Vn.Item,{...u,rules:[{required:!0,message:"请输入完成的工作"}],children:N.jsx(qr,{placeholder:"请输入完成的工作内容"})}),N.jsx(lg,{onClick:()=>c(f)})]},u.key)),N.jsx(Hn,{type:"dashed",onClick:()=>l(),block:!0,icon:N.jsx(Hu,{}),children:"添加完成工作"})]})})}),N.jsx(Vn.List,{name:"nextWeekPlan",children:(s,{add:l,remove:c})=>N.jsx(N.Fragment,{children:N.jsxs(Vn.Item,{label:"下周工作计划",children:[s.map((u,f)=>N.jsxs(oo,{align:"baseline",children:[N.jsx(Vn.Item,{...u,rules:[{required:!0,message:"请输入工作计划"}],children:N.jsx(qr,{placeholder:"请输入工作计划"})}),N.jsx(lg,{onClick:()=>c(f)})]},u.key)),N.jsx(Hn,{type:"dashed",onClick:()=>l(),block:!0,icon:N.jsx(Hu,{}),children:"添加工作计划"})]})})}),N.jsx(Vn.List,{name:"projectProgress",children:(s,{add:l,remove:c})=>N.jsx(N.Fragment,{children:N.jsxs(Vn.Item,{label:"项目进展",children:[s.map((u,f)=>N.jsx("div",{style:{marginBottom:16},children:N.jsxs(oo,{align:"baseline",children:[N.jsx(Vn.Item,{name:[u.name,"projectId"],rules:[{required:!0,message:"请选择项目"}],children:N.jsxs(Va,{placeholder:"选择项目",children:[N.jsx(Va.Option,{value:"1",children:"项目A"}),N.jsx(Va.Option,{value:"2",children:"项目B"})]})}),N.jsx(Vn.Item,{name:[u.name,"progress"],rules:[{required:!0,message:"请输入进度"}],children:N.jsx(lc,{min:0,max:100,formatter:h=>`${h}%`,parser:h=>{const p=parseInt((h==null?void 0:h.replace("%",""))||"0",10);return isNaN(p)||p<=0?0:p>=100?100:p}})}),N.jsx(Vn.Item,{name:[u.name,"description"],children:N.jsx(kOt,{placeholder:"项目进展说明",autoSize:{minRows:2}})}),N.jsx(Hn,{type:"text",danger:!0,icon:N.jsx(lg,{}),onClick:()=>c(f),children:"删除"})]})},u.key)),N.jsx(Hn,{type:"dashed",onClick:()=>l(),block:!0,icon:N.jsx(Hu,{}),children:"添加项目进展"})]})})}),N.jsx(Vn.Item,{children:N.jsxs(oo,{children:[N.jsx(Hn,{type:"primary",htmlType:"submit",children:"提交"}),N.jsx(Hn,{onClick:()=>n(!1),children:"取消"})]})})]})})]})};var Rhe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ro,function(){return function(n,r,o){r.prototype.isBetween=function(i,a,s,l){var c=o(i),u=o(a),f=(l=l||"()")[0]==="(",h=l[1]===")";return(f?this.isAfter(c,s):!this.isBefore(c,s))&&(h?this.isBefore(u,s):!this.isAfter(u,s))||(f?this.isBefore(c,s):!this.isAfter(c,s))&&(h?this.isAfter(u,s):!this.isBefore(u,s))}}})})(Rhe);var AOt=Rhe.exports;const DOt=Fr(AOt);qn.extend(DOt);const jOt=({dailyReports:e,weeklyReports:t})=>{const[n,r]=d.useState(null),[o,i]=d.useState(!1),a=c=>{const u=e.find(p=>p.date===c.format("YYYY-MM-DD")),f=t.find(p=>qn(c).isBetween(p.weekStart,p.weekEnd,"day","[]")),h=c.isSame(qn(),"day");return N.jsx("div",{style:{height:"100%",padding:4,background:h?"rgba(24, 144, 255, 0.1)":"transparent",border:h?"1px solid #1890ff":"none",borderRadius:4},children:N.jsxs("ul",{style:{listStyle:"none",padding:0,margin:0},children:[u&&N.jsx("li",{children:N.jsx(Xi,{status:"success",text:`日报 (${u.workHours}小时)`})}),f&&N.jsx("li",{children:N.jsx(Xi,{status:"processing",text:"周报"})})]})})},s=c=>{r(c),i(!0)},l=()=>{if(!n)return null;const c=e.find(f=>f.date===n.format("YYYY-MM-DD")),u=t.find(f=>n.isBetween(f.weekStart,f.weekEnd,"day","[]"));return N.jsxs(N.Fragment,{children:[c&&N.jsx(ol,{title:"日报详情",style:{marginBottom:16},children:N.jsxs(Bs,{column:1,children:[N.jsx(Bs.Item,{label:"日期",children:c.date}),N.jsxs(Bs.Item,{label:"工作时长",children:[c.workHours,"小时"]}),N.jsx(Bs.Item,{label:"已完成工作",children:N.jsx("ul",{children:c.content.completed.map((f,h)=>N.jsx("li",{children:f},h))})}),N.jsx(Bs.Item,{label:"进行中工作",children:N.jsx("ul",{children:c.content.inProgress.map((f,h)=>N.jsx("li",{children:f},h))})}),c.content.problems.length>0&&N.jsx(Bs.Item,{label:"遇到的问题",children:N.jsx("ul",{children:c.content.problems.map((f,h)=>N.jsx("li",{children:f},h))})})]})}),u&&N.jsx(ol,{title:"周报详情",children:N.jsxs(Bs,{column:1,children:[N.jsxs(Bs.Item,{label:"周期",children:[u.weekStart," 至 ",u.weekEnd]}),N.jsx(Bs.Item,{label:"本周完成",children:N.jsx("ul",{children:u.content.completed.map((f,h)=>N.jsx("li",{children:f},h))})}),N.jsx(Bs.Item,{label:"下周计划",children:N.jsx("ul",{children:u.content.nextWeekPlan.map((f,h)=>N.jsx("li",{children:f},h))})}),N.jsx(Bs.Item,{label:"项目进展",children:u.projectProgress.map((f,h)=>N.jsxs("div",{style:{marginBottom:8},children:[N.jsx(Uu,{color:"blue",children:f.projectId}),N.jsxs(Uu,{color:"green",children:[f.progress,"%"]}),N.jsx("div",{children:f.description})]},h))})]})})]})};return N.jsxs(N.Fragment,{children:[N.jsx(Yie,{onSelect:s,cellRender:a,className:"report-calendar"}),N.jsx(Hi,{title:"报告详情",open:o,onCancel:()=>i(!1),footer:null,width:800,children:l()}),N.jsx("style",{children:` .report-calendar .ant-picker-calendar-date-today { color: #1890ff; font-weight: bold; } .report-calendar .ant-picker-calendar-date-today .ant-picker-calendar-date-value { color: #1890ff; } `})]})},Ihe=()=>{const e=nl(n=>n.dailyReports),t=nl(n=>n.weeklyReports);return N.jsx(ol,{title:"工作报告日历",children:N.jsx(jOt,{dailyReports:e,weeklyReports:t})})},FOt=()=>{const e=eo(),{locale:t}=d.useContext(ia),n=localStorage.getItem(Z7),[r,o]=d.useState(n||"/chat"),i=Ya(),{isLoggedIn:a,hasRoleAgent:s}=d.useContext(ia),{footerStyle:l}=zS(),{currentOrg:c,setCurrentOrg:u}=Dp(P=>({currentOrg:P.currentOrg,setCurrentOrg:P.setCurrentOrg})),{userInfo:f,setUserInfo:h}=vi(P=>({userInfo:P.userInfo,setUserInfo:P.setUserInfo})),{setAgentInfo:p}=jp(P=>({setAgentInfo:P.setAgentInfo})),m=Ll(P=>P.removeThread),g=yhe(P=>P.setWorkgroupResult),[v,b]=d.useState(!1),y=Ll(P=>P.threads);d.useEffect(()=>{const P=y.some(O=>O.unreadCount>0);b(P)},[y]);const[S,w]=d.useState([]);d.useEffect(()=>{const P=[{path:"/",name:e.formatMessage({id:"menu.dashboard.projectList"}),icon:N.jsx(vy,{}),component:N.jsx(Ohe,{})},{path:"daily-report",name:e.formatMessage({id:"menu.dashboard.dailyReport"}),icon:N.jsx(vy,{}),component:N.jsx(Mhe,{})},{path:"weekly-report",name:e.formatMessage({id:"menu.dashboard.weeklyReport"}),icon:N.jsx(vy,{}),component:N.jsx(The,{})},{path:"report-calendar",name:e.formatMessage({id:"menu.dashboard.reportCalendar"}),icon:N.jsx(vy,{}),component:N.jsx(Ihe,{})},{path:"/setting",name:e.formatMessage({id:"menu.dashboard.mine"}),icon:N.jsx(Wse,{}),component:N.jsx(ghe,{})}];w(P)},[e,t]),xhe(),VF(),whe(),yF();const E=async()=>{if(!a||(c==null?void 0:c.uid)===""||!s)return;const P=await Z1e(c==null?void 0:c.uid);console.log("getAgentProfile response:",c==null?void 0:c.uid,P.data),P.data.code===200&&p(P.data.data)},C=async()=>{if(a){if(f.currentOrganization===void 0||f.currentOrganization===null){console.log("before initOrganization",f);return}console.log("after initOrganization"),u(f==null?void 0:f.currentOrganization),E()}};d.useEffect(()=>(C(),()=>{console.log("un - useEffect")}),[a,f]);const x=async()=>{const P=await Ehe();console.log("initProfile response:",P.data),P.data.code===200?h(P.data.data):gn.error(e.formatMessage({id:"dashboard.error.message",defaultMessage:"获取数据失败"}))};d.useEffect(()=>{a&&x()},[a]);const _=async()=>{if(!a||(c==null?void 0:c.uid)===""||!s)return;const P={orgUid:c==null?void 0:c.uid,pageNumber:0,pageSize:20},O=await POt(P);console.log("initWorkgroups",O.data),O.data.code===200?g(O.data):console.log("获取工作组失败")};return d.useEffect(()=>{_()},[a,c]),d.useEffect(()=>{const P=M=>{var D,A;console.log("handleTransfer:",M);const T=JSON.parse(M);if(console.log("handleTransfer contentObject",T.message,T.thread),((A=(D=T.message)==null?void 0:D.user)==null?void 0:A.uid)===(f==null?void 0:f.uid)){gn.success("转接会话发送成功,请等待对方响应");return}},O=M=>{var A,j,k;console.log("handleTransferAccept:",M);const T=JSON.parse(M),D=JSON.parse((A=T.message)==null?void 0:A.content);m(D==null?void 0:D.thread),gn.success(`${(k=(j=T.message)==null?void 0:j.user)==null?void 0:k.nickname} 已接受转接会话`)},I=M=>{var D,A;console.log("handleTransferReject:",M);const T=JSON.parse(M);gn.success(`${(A=(D=T.message)==null?void 0:D.user)==null?void 0:A.nickname} 已拒绝转接会话`)};return Jn.on(Ck,P),Jn.on(wk,O),Jn.on(xk,I),()=>{Jn.off(Ck,P),Jn.off(wk,O),Jn.off(xk,I)}},[]),N.jsxs(Qde,{collapsed:!0,collapsedButtonRender:!1,layout:"side",style:{height:"100vh"},route:{routes:S},location:{pathname:r},menu:{type:"group",collapsedShowTitle:!0},avatarProps:null,actionsRender:P=>P.isMobile?[]:[N.jsx(Use,{onClick:Ble},"QuestionCircleFilled"),N.jsx(MOt,{}),N.jsx($Ot,{})],menuHeaderRender:()=>N.jsx(Che,{}),menuFooterRender:P=>{P!=null&&P.collapsed},onMenuHeaderClick:P=>{console.log("onMenuHeaderClick",P)},menuItemRender:(P,O)=>N.jsx(N.Fragment,{children:N.jsxs("div",{onClick:()=>{o(P.path),i(P.path),localStorage.setItem(Z7,P.path)},children:[v&&N.jsxs(N.Fragment,{children:[P.path==="/chat"&&N.jsx(Xi,{size:"small",dot:v,offset:[-5,5],children:O}),P.path!=="/chat"&&O]}),!v&&N.jsx(N.Fragment,{children:O})]})}),children:[N.jsx(HO,{children:N.jsx(PP,{},t.locale)}),N.jsx(UO,{style:l,children:N.jsx(She,{})}),N.jsx("audio",{id:"audioPlay",src:"soundUrl",hidden:!0})]})},LOt=()=>N.jsx(N.Fragment,{children:N.jsx(PP,{})}),BOt=({open:e,onClose:t})=>{const n=eo(),{translateString:r}=cu(),o=()=>{t()},i=()=>{t()};return N.jsx(N.Fragment,{children:N.jsx(Hi,{title:n.formatMessage({id:"profile.password.change.title",defaultMessage:"Change Password"}),forceRender:!0,open:e,footer:null,onCancel:i,children:N.jsxs(pr,{initialValues:{oldPassword:"",newPassword:"",confirmPassword:""},onFinish:async a=>{if(console.log("changePassword:",a),a.newPassword.trim().length<6){gn.error(n.formatMessage({id:"profile.password.length.error",defaultMessage:"Password must be at least 6 characters"}));return}if(a.newPassword!==a.confirmPassword){gn.error(n.formatMessage({id:"profile.password.mismatch",defaultMessage:"The two passwords do not match"}));return}const s={oldPassword:a.oldPassword,newPassword:a.newPassword},l=await OOt(s);console.log("changePassword response:",l),l.data.code===200?(gn.success(n.formatMessage({id:"profile.password.change.success",defaultMessage:"Password changed successfully!"})),o()):gn.error(r(l.data.message))},children:[N.jsx(Lr.Password,{name:"oldPassword",label:n.formatMessage({id:"profile.password.old",defaultMessage:"Old Password"}),extra:n.formatMessage({id:"profile.password.old.empty",defaultMessage:"Old password can be empty for phone login users"})}),N.jsx(Lr.Password,{name:"newPassword",label:n.formatMessage({id:"profile.password.new",defaultMessage:"New Password"})}),N.jsx(Lr.Password,{name:"confirmPassword",label:n.formatMessage({id:"profile.password.confirm",defaultMessage:"Confirm Password"})})]})})})},khe=({children:e,onSuccess:t,onError:n})=>{const r={file:null,file_name:"test.png",file_type:"image/png",is_avatar:"true",kb_type:bye,category_uid:"",kb_uid:"",client:po},o={name:"file",accept:"image/*",action:uJ(),headers:{Authorization:"Bearer "+localStorage.getItem(Eb)},data:r,showUploadList:!1,beforeUpload(i){console.log("beforeUpload",i);const a=yn(new Date).format("YYYYMMDDHHmmss")+"_"+i.name;r.file=i,r.file_name=a,r.file_type=i.type,console.log("beforeUpload",r)},onChange(i){if(i.file.status!=="uploading"&&console.log("not uploading:",i.file),i.file.status==="done")if(console.log("response: ",i.file.response),i.file.response.code===200){const a=i.file.response.data.fileUrl;t(a),gn.success(`${i.file.name} 上传成功`)}else n(i.file),gn.error(`${i.file.name} 上传失败`);else i.file.status==="error"&&(gn.error(`${i.file.name} 上传失败`),n(i.file))}};return N.jsx(SP,{...o,children:e})},zOt=({open:e,onSubmit:t,onClose:n})=>{const r=eo(),[o]=pr.useForm(),{translateString:i}=cu(),{userInfo:a,deviceUid:s}=vi(C=>({userInfo:C.userInfo,deviceUid:C.deviceUid})),l=Dp(C=>C.currentOrg),c=d.useRef(),[u,f]=d.useState(""),[h,p]=d.useState(""),[m,g]=d.useState(!1),v=async(C,x)=>{console.log("captchaUid",C," captchaValue",x),f(C),p(x)},b=async C=>{console.log("captcha check result",C),g(C)},y=()=>{n()},S=()=>{n()},w=async()=>{o.validateFields().then(async C=>{if(console.log("changeEmail:",C),a.email===C.email){gn.error(r.formatMessage({id:"profile.email.not.changed",defaultMessage:"Email is not changed!"}));return}const x={email:C.email,code:C.code,platform:cl},_=await $he(x);console.log("changeEmail response:",_),_.data.code===200?(gn.success(r.formatMessage({id:"profile.email.change.success",defaultMessage:"Email changed successfully!"})),t(C.email),y()):gn.error(i(_.data.message))})},E=()=>{setTimeout(()=>{var C;console.log("endCaptchaTiming"),(C=c.current)==null||C.endTiming()},2)};return N.jsx(N.Fragment,{children:N.jsx(Hi,{title:r.formatMessage({id:"profile.email.change.title",defaultMessage:"Change Email"}),forceRender:!0,open:e,footer:null,onCancel:S,children:N.jsxs(pr,{form:o,onFinish:async C=>{console.log("changeEmail:",C),w()},children:[N.jsx(Lr,{fieldProps:{size:"large",prefix:N.jsx(lS,{})},name:"email",placeholder:r.formatMessage({id:"profile.email.placeholder",defaultMessage:"Enter email address"}),rules:[{required:!0,message:r.formatMessage({id:"profile.email.required",defaultMessage:"Please enter email address!"})},{pattern:/^[a-zA-Z0-9_.-]+@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.[a-zA-Z0-9]{2,6}$/,message:r.formatMessage({id:"profile.email.format.invalid",defaultMessage:"Invalid email format"})},{max:50,message:r.formatMessage({id:"profile.email.length.limit",defaultMessage:"Email cannot exceed 50 characters"})}]}),N.jsx(pr.Item,{name:"captchaCode",children:N.jsx(c0,{onKaptchaChange:v,onKaptchaCheck:b})}),N.jsx(gS,{fieldProps:{size:"large",prefix:N.jsx(Wp,{})},captchaProps:{size:"large",disabled:!m},placeholder:r.formatMessage({id:"profile.email.verification.code.placeholder",defaultMessage:"Enter verification code"}),captchaTextRender:(C,x)=>C?`${x} ${r.formatMessage({id:"profile.email.verification.code.countdown",defaultMessage:"seconds"})}`:r.formatMessage({id:"profile.email.verification.code.get",defaultMessage:"Get Code"}),phoneName:"email",name:"code",rules:[{required:!0,message:r.formatMessage({id:"profile.email.verification.code.required",defaultMessage:"Please enter verification code!"})}],fieldRef:c,onGetCaptcha:async C=>{if(C){if(a.email===C){gn.error(r.formatMessage({id:"profile.email.not.changed",defaultMessage:"Email is not changed!"})),E();return}const x={email:C,type:Y0e,captchaUid:u,captchaCode:h,deviceUid:s,userUid:a.uid,orgUid:l.uid,platform:cl},_=await kfe(x);if(_.data.code!==200){gn.error(_.data.message),E();return}gn.success(_.data.message)}else gn.error(r.formatMessage({id:"profile.email.format.error",defaultMessage:"Invalid email format"}))}})]})})})},HOt=({open:e,onSubmit:t,onClose:n})=>{const r=eo(),[o]=pr.useForm(),{translateString:i}=cu(),{userInfo:a,deviceUid:s}=vi(C=>({userInfo:C.userInfo,deviceUid:C.deviceUid})),l=Dp(C=>C.currentOrg),c=d.useRef(),[u,f]=d.useState(""),[h,p]=d.useState(""),[m,g]=d.useState(!1),v=async(C,x)=>{console.log("captchaUid",C," captchaValue",x),f(C),p(x)},b=async C=>{console.log("captcha check result",C),g(C)},y=()=>{n()},S=()=>{n()},w=async()=>{o.validateFields().then(async C=>{if(console.log("changeMobile:",C),a.mobile===C.mobile){gn.error(r.formatMessage({id:"profile.mobile.not.changed",defaultMessage:"Mobile number is not changed!"}));return}const x={mobile:C.mobile,code:C.code,platform:cl},_=await Phe(x);console.log("changeMobile response:",_),_.data.code===200?(gn.success(r.formatMessage({id:"profile.mobile.change.success",defaultMessage:"Mobile number changed successfully!"})),t(C.mobile),y()):gn.error(i(_.data.message))})},E=()=>{setTimeout(()=>{var C;console.log("endCaptchaTiming"),(C=c.current)==null||C.endTiming()},2)};return N.jsx(N.Fragment,{children:N.jsx(Hi,{title:r.formatMessage({id:"profile.mobile.change.title",defaultMessage:"Change Mobile"}),forceRender:!0,open:e,footer:null,onCancel:S,children:N.jsxs(pr,{form:o,onFinish:async C=>{console.log("changeMobile:",C),w()},children:[N.jsx(Lr,{fieldProps:{size:"large",prefix:N.jsx(lS,{})},name:"mobile",placeholder:r.formatMessage({id:"profile.mobile.placeholder",defaultMessage:"Enter mobile number"}),rules:[{required:!0,message:r.formatMessage({id:"profile.mobile.required",defaultMessage:"Please enter mobile number!"})},{pattern:/^1\d{10}$/,message:r.formatMessage({id:"profile.mobile.format.invalid",defaultMessage:"Invalid mobile format"})}]}),N.jsx(pr.Item,{name:"captchaCode",children:N.jsx(c0,{onKaptchaChange:v,onKaptchaCheck:b})}),N.jsx(gS,{fieldProps:{size:"large",prefix:N.jsx(Wp,{})},captchaProps:{size:"large",disabled:!m},placeholder:r.formatMessage({id:"profile.mobile.verification.code.placeholder",defaultMessage:"Enter verification code"}),captchaTextRender:(C,x)=>C?`${x} ${r.formatMessage({id:"profile.mobile.verification.code.countdown",defaultMessage:"seconds"})}`:r.formatMessage({id:"profile.mobile.verification.code.get",defaultMessage:"Get Code"}),phoneName:"mobile",name:"code",rules:[{required:!0,message:r.formatMessage({id:"profile.mobile.verification.code.required",defaultMessage:"Please enter verification code!"})}],fieldRef:c,onGetCaptcha:async C=>{if(C&&C.length===11){if(a.mobile===C){gn.error(r.formatMessage({id:"profile.mobile.not.changed",defaultMessage:"Mobile number is not changed!"})),E();return}const x={mobile:C,type:q0e,captchaUid:u,captchaCode:h,deviceUid:s,userUid:a.uid,orgUid:l.uid,platform:cl},_=await vF(x);if(_.data.code!==200){gn.error(_.data.message),E();return}gn.success(_.data.message)}else gn.error(r.formatMessage({id:"profile.mobile.format.error",defaultMessage:"Invalid mobile format"}))}})]})})})},UOt={labelCol:{span:8},wrapperCol:{span:8}},hG=()=>{const e=eo(),[t]=pr.useForm(),{translateString:n}=cu(),{userInfo:r,setUserInfo:o}=vi(O=>({userInfo:O.userInfo,setUserInfo:O.setUserInfo})),[i,a]=d.useState(""),[s,l]=d.useState(!1),[c,u]=d.useState(!1),[f,h]=d.useState(!1),p=()=>{l(!0)},m=()=>{u(!0)},g=()=>{h(!0)},v=()=>{l(!1)},b=()=>{u(!1)},y=O=>{u(!1),r.email=O,o(r),t.setFieldValue("email",O)},S=()=>{h(!1)},w=O=>{h(!1),r.mobile=O,o(r),t.setFieldValue("mobile",O)},E=O=>{console.log("handleUploadSuccess:",O),a(O)},C=O=>{console.log("handleUploadError:",O)},x=async O=>{const I={...r,...O,avatar:i};console.log(I);const M=await _he(I);console.log("updateProfile response:",M.data),M.data.code===200?(gn.success(e.formatMessage({id:"profile.update.success",defaultMessage:"Profile updated successfully"})),o(M.data.data)):gn.error(M.data.message)},_=O=>Array.isArray(O)?O:O==null?void 0:O.fileList;d.useEffect(()=>{r&&a(r.avatar)},[r]);const P=async()=>{const O=await Ehe();console.log("handleRefreshProfile getProfile response:",O.data),O.data.code===200?(o(O.data.data),t.setFieldsValue({uid:O.data.data.uid,username:O.data.data.username,nickname:n(O.data.data.nickname),email:O.data.data.email,mobile:O.data.data.mobile,description:n(O.data.data.description)})):gn.error(O.data.message)};return d.useEffect(()=>{P()},[]),N.jsxs("div",{className:"profile-container",children:[N.jsxs(pr,{...UOt,form:t,onFinish:x,children:[N.jsx(Lr,{name:"uid",label:"UID",readonly:!0}),N.jsx(pr.Item,{name:"avatar",valuePropName:"fileList",getValueFromEvent:_,label:e.formatMessage({id:"profile.form.avatar",defaultMessage:"Avatar"}),children:N.jsxs(khe,{onSuccess:E,onError:C,children:[N.jsx(Xc,{src:i}),N.jsx(Hn,{icon:N.jsx(DD,{}),children:e.formatMessage({id:"profile.form.upload",defaultMessage:"Upload"})})]},"avatar")}),N.jsx(Lr,{name:"username",label:e.formatMessage({id:"profile.form.username",defaultMessage:"Username"}),rules:[{required:!0}]}),N.jsx(Hn,{onClick:p,children:e.formatMessage({id:"profile.button.change.password",defaultMessage:"Change Password"})}),N.jsx(Lr,{name:"nickname",label:e.formatMessage({id:"profile.form.nickname",defaultMessage:"Nickname"}),rules:[{required:!0}]}),N.jsx(Lr,{name:"email",label:r.emailVerified?e.formatMessage({id:"profile.email.verified",defaultMessage:"Email Verified"}):e.formatMessage({id:"profile.email.unverified",defaultMessage:"Email Unverified"}),rules:[{type:"email"}],readonly:!0}),N.jsx(Hn,{onClick:m,children:e.formatMessage({id:"profile.button.change.email",defaultMessage:"Change Email"})}),N.jsx(Lr,{name:"mobile",label:r.mobileVerified?e.formatMessage({id:"profile.mobile.verified",defaultMessage:"Mobile Verified"}):e.formatMessage({id:"profile.mobile.unverified",defaultMessage:"Mobile Unverified"}),readonly:!0}),N.jsx(Hn,{onClick:g,children:e.formatMessage({id:"profile.button.change.mobile",defaultMessage:"Change Mobile"})}),N.jsx(Lj,{name:"description",label:e.formatMessage({id:"profile.form.description",defaultMessage:"Description"})})]}),s&&N.jsx(BOt,{open:s,onClose:v}),c&&N.jsx(zOt,{open:c,onSubmit:y,onClose:b}),f&&N.jsx(HOt,{open:f,onSubmit:w,onClose:S})]})},WOt=()=>{const e=eo(),t=vO(),{isMqttConnected:n}=VF(),[r,o]=d.useState(!0),[i,a]=d.useState(!0),[s,l]=d.useState(!1),c=C=>{console.log("radio checked",C.target.value),l(C.target.value),Pi?window.electronAPI.setOpenAtLogin(C.target.value):console.log("not electron")},u=async()=>{if(Pi){const C=await window.electronAPI.getOpenAtLogin();console.log("openAtLogin:",C),l(C)}};d.useEffect(()=>{u(),IGe(),zle(),console.log("isNetworkOnline:",t);const C=localStorage.getItem(Tw);C===null?(localStorage.setItem(Tw,"true"),o(!0)):o(C==="true");const x=localStorage.getItem(Ry);x===null?(localStorage.setItem(Ry,"true"),a(!0)):a(x==="true")},[]);const{themeMode:f,setThemeMode:h,mode:p,changeMode:m,locale:g,changeLocale:v}=d.useContext(ia),b=C=>{console.log("radio checked",C.target.value),h(C.target.value),AGe(C.target.value)},y=C=>{console.log("language change",C.target.value),v(C.target.value)},S=C=>{console.log("play audio switch",C),localStorage.setItem(Tw,C?"true":"false"),o(C)},w=C=>{console.log("show network status notification",C),localStorage.setItem(Ry,C?"true":"false"),a(C)},E=C=>{console.log("mode change",C.target.value),m(C.target.value)};return N.jsxs("div",{className:"profile-container",children:[N.jsx("p",{children:N.jsx(uE,{checkedChildren:e.formatMessage({id:"setting.basic.sound.on",defaultMessage:"已开启消息提示音"}),unCheckedChildren:e.formatMessage({id:"setting.basic.sound.off",defaultMessage:"已关闭消息提示音"}),value:r,onChange:S})}),N.jsx("p",{children:N.jsx(uE,{checkedChildren:e.formatMessage({id:"setting.basic.notification.on",defaultMessage:"已开启网络状态通知"}),unCheckedChildren:e.formatMessage({id:"setting.basic.notification.off",defaultMessage:"已关闭网络状态通知"}),value:i,onChange:w})}),Ag&&N.jsxs(N.Fragment,{children:[N.jsx("p",{children:e.formatMessage({id:"setting.basic.connection.status",defaultMessage:"长链接状态:"})}),N.jsx("div",{children:n?e.formatMessage({id:"setting.basic.connection.connected",defaultMessage:"✅连接正常"}):e.formatMessage({id:"setting.basic.connection.disconnected",defaultMessage:"❌连接断开"})})]}),Pi&&N.jsxs(N.Fragment,{children:[N.jsx("p",{children:e.formatMessage({id:"setting.basic.startup",defaultMessage:"开机启动:"})}),N.jsxs(qo.Group,{onChange:c,value:s,children:[N.jsx(qo,{value:!0,children:e.formatMessage({id:"setting.basic.startup.on",defaultMessage:"开机启动"})}),N.jsx(qo,{value:!1,children:e.formatMessage({id:"setting.basic.startup.off",defaultMessage:"不开机启动"})})]})]}),N.jsx("p",{children:e.formatMessage({id:"setting.basic.theme",defaultMessage:"颜色主题:"})}),N.jsxs(qo.Group,{onChange:b,value:f,children:[N.jsx(qo,{value:"light",children:N.jsx(zl,{id:"theme.light"})}),N.jsx(qo,{value:"dark",children:N.jsx(zl,{id:"theme.dark"})}),N.jsx(qo,{value:"system",children:N.jsx(zl,{id:"theme.system"})})]}),N.jsxs("div",{children:[N.jsx("p",{children:e.formatMessage({id:"setting.basic.language",defaultMessage:"语言设置:"})}),N.jsxs(qo.Group,{value:g.locale,onChange:y,children:[N.jsx(qo,{value:"en",children:e.formatMessage({id:"i18n.lang.en-US"})},"en"),N.jsx(qo,{value:"zh-cn",children:e.formatMessage({id:"i18n.lang.zh-CN"})},"zh-cn"),N.jsx(qo,{value:"zh-tw",children:e.formatMessage({id:"i18n.lang.zh-TW"})},"zh-tw")]})]}),Ag&&N.jsxs("div",{children:[N.jsx("p",{children:e.formatMessage({id:"setting.basic.mode",defaultMessage:"模式设置:"})}),N.jsxs(qo.Group,{value:p,onChange:E,children:[N.jsx(qo,{value:Zm,children:e.formatMessage({id:"setting.basic.mode.team",defaultMessage:"团队模式"})},Zm),N.jsx(qo,{value:sp,children:e.formatMessage({id:"setting.basic.mode.agent",defaultMessage:"客服模式"})},sp),N.jsx(qo,{value:a2,children:e.formatMessage({id:"setting.basic.mode.personal",defaultMessage:"个人模式"})},a2)]})]})]})},VOt=()=>{const e=vi(n=>n.userInfo),t=()=>{var r;console.log("downloadQRCode");const n=(r=document.getElementById("myqrcode"))==null?void 0:r.querySelector("canvas");if(n){const o=n.toDataURL(),i=document.createElement("a");i.download=e.username+"_profile.png",i.href=o,document.body.appendChild(i),i.click(),document.body.removeChild(i)}else console.log("canvas is null")};return N.jsxs("div",{id:"myqrcode",style:{textAlign:"center",marginTop:"50px"},children:[N.jsx(Yse,{style:{margin:"auto"},errorLevel:"H",value:"https://www.weiyuai.cn/",icon:"/agent/logo.png"}),N.jsx(Hn,{type:"primary",onClick:t,style:{marginTop:"20px"},children:"下载二维码"})]})},KOt=()=>N.jsx(N.Fragment,{children:N.jsx("div",{children:"ShortcutAdmin"})}),qOt=()=>{const e=Ya();return N.jsx(uS,{status:"404",title:"404",subTitle:"Sorry, the page you visited does not exist.",extra:N.jsx(Hn,{type:"primary",onClick:()=>e("/"),children:"返回主页"})})},GOt={labelCol:{span:8},wrapperCol:{span:8}},YOt=()=>{const e=eo(),[t]=pr.useForm(),{userInfo:n,setUserInfo:r}=vi(u=>({userInfo:u.userInfo,setUserInfo:u.setUserInfo})),[o,i]=d.useState(""),a={file:null,file_name:"test.png",file_type:"image/png"},s={name:"file",action:uJ(),headers:{Authorization:"Bearer "+localStorage.getItem(Eb)},showUploadList:!1,data:a,beforeUpload(u){const f=yn(new Date).format("YYYYMMDDHHmmss")+"_"+u.name;a.file=u,a.file_name=f,a.file_type=u.type,console.log("beforeUpload",a)},onChange(u){if(u.file.status!=="uploading"&&console.log(u.file,u.fileList),u.file.status==="done"){const f=u.file.response.data.fileUrl;console.log("url: ",f),i(f),gn.success(`${u.file.name} file uploaded successfully`)}else u.file.status==="error"&&gn.error(`${u.file.name} file upload failed.`)}},l=async u=>{const f={...n,...u,avatar:o};console.log(f);const h=await _he(f);console.log("updateProfile response:",h),h.data.code===200?(gn.success("修改成功"),r(h.data.data)):gn.error("修改失败")},c=u=>Array.isArray(u)?u:u==null?void 0:u.fileList;return d.useEffect(()=>{n&&i(n.avatar)},[n]),N.jsxs("div",{className:"profile-container",children:[N.jsx("p",{children:"员工信息"}),N.jsxs(pr,{...GOt,style:{marginLeft:20},form:t,onFinish:l,initialValues:{nickname:n.nickname,email:n.email,mobile:n.mobile,description:n.description},children:[N.jsx(Vn.Item,{name:"avatar",valuePropName:"fileList",getValueFromEvent:c,label:e.formatMessage({id:"pages.robot.tab.avatar",defaultMessage:"Avatar"}),children:N.jsxs(SP,{...s,children:[N.jsx(Xc,{src:o}),N.jsx(Hn,{icon:N.jsx(DD,{}),children:e.formatMessage({id:"pages.robot.upload",defaultMessage:"Upload"})})]},"avatar")}),N.jsx(Lr,{name:"nickname",label:"昵称",rules:[{required:!0}],children:N.jsx(qr,{})}),N.jsx(Lr,{name:"email",label:"邮箱",rules:[{type:"email"}],disabled:!0,children:N.jsx(qr,{})}),N.jsx(Lr,{name:"mobile",label:"手机号",disabled:!0,children:N.jsx(qr,{})}),N.jsx(Lj,{name:"description",label:"描述",children:N.jsx(qr.TextArea,{})})]})]})},XOt=({open:e,onSubmit:t,onClose:n})=>{const r=eo(),[o]=pr.useForm(),{translateString:i}=cu(),{userInfo:a,deviceUid:s}=vi(C=>({userInfo:C.userInfo,deviceUid:C.deviceUid})),l=Dp(C=>C.currentOrg),c=d.useRef(),[u,f]=d.useState(""),[h,p]=d.useState(""),[m,g]=d.useState(!1);d.useEffect(()=>{e?o.setFieldsValue({email:a==null?void 0:a.email}):(o.resetFields(),E())},[e]);const v=async(C,x)=>{console.log("captchaUid",C," captchaValue",x),f(C),p(x)},b=async C=>{console.log("captcha check result",C),g(C)},y=()=>{n()},S=()=>{n()},w=async()=>{o.validateFields().then(async C=>{console.log("changeEmail:",C);const x={email:C.email,code:C.code,platform:cl},_=await $he(x);console.log("changeEmail response:",_),_.data.code===200?(gn.success("Email verify successfully!"),t(C.email),y()):gn.error(i(_.data.message))})},E=()=>{setTimeout(()=>{var C;console.log("endCaptchaTiming"),(C=c.current)==null||C.endTiming()},2)};return N.jsx(N.Fragment,{children:N.jsx(Hi,{title:r.formatMessage({id:"pages.settings.verify.email",defaultMessage:"验证邮箱"}),forceRender:!0,open:e,footer:null,onCancel:S,children:N.jsxs(pr,{form:o,onFinish:async C=>{console.log("changeEmail:",C),w()},children:[N.jsx(Lr,{fieldProps:{size:"large",prefix:N.jsx(lS,{})},name:"email",placeholder:r.formatMessage({id:"pages.login.email.placeholder",defaultMessage:"邮箱"}),rules:[{required:!0},{pattern:/^[a-zA-Z0-9_.-]+@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.[a-zA-Z0-9]{2,6}$/,message:"邮箱格式不正确"},{max:50,message:"邮箱不得超过50字符"}],readonly:!0}),N.jsx(pr.Item,{name:"captchaCode",rules:[],children:N.jsx(c0,{onKaptchaChange:v,onKaptchaCheck:b})}),N.jsx(gS,{fieldProps:{size:"large",prefix:N.jsx(Wp,{}),allowClear:!0},captchaProps:{size:"large",disabled:!m},placeholder:r.formatMessage({id:"pages.login.captcha.placeholder",defaultMessage:"请输入验证码"}),captchaTextRender:(C,x)=>C?`${x} ${r.formatMessage({id:"pages.getCaptchaSecondText",defaultMessage:"获取验证码"})}`:r.formatMessage({id:"pages.login.phoneLogin.getVerificationCode",defaultMessage:"获取验证码"}),phoneName:"email",name:"code",rules:[{required:!0}],fieldRef:c,onGetCaptcha:async C=>{if(console.log("email:",C),C){const x={email:C,type:X0e,captchaUid:u,captchaCode:h,deviceUid:s,userUid:a==null?void 0:a.uid,orgUid:l.uid,platform:cl},_=await kfe(x);if(console.log("sendEmailCode",_),_.data.code!==200){gn.error(i(_.data.message)),E();return}gn.success(i(_.data.message))}else gn.error("手机号格式错误")}})]})})})},QOt=({open:e,onSubmit:t,onClose:n})=>{const r=eo(),[o]=pr.useForm(),{translateString:i}=cu(),{userInfo:a,deviceUid:s}=vi(C=>({userInfo:C.userInfo,deviceUid:C.deviceUid})),l=Dp(C=>C.currentOrg),c=d.useRef(),[u,f]=d.useState(""),[h,p]=d.useState(""),[m,g]=d.useState(!1);d.useEffect(()=>{e?o.setFieldsValue({mobile:a==null?void 0:a.mobile}):(o.resetFields(),E())},[e]);const v=async(C,x)=>{console.log("captchaUid",C," captchaValue",x),f(C),p(x)},b=async C=>{console.log("captcha check result",C),g(C)},y=()=>{n()},S=()=>{n()},w=async()=>{o.validateFields().then(async C=>{console.log("changeMobile:",C);const x={mobile:C.mobile,code:C.code,platform:cl},_=await Phe(x);console.log("changeMobile response:",_),_.data.code===200?(gn.success("Mobile verify successfully!"),t(C.mobile),y()):gn.error(i(_.data.message))})},E=()=>{setTimeout(()=>{var C;console.log("endCaptchaTiming"),(C=c.current)==null||C.endTiming()},2)};return N.jsx(N.Fragment,{children:N.jsx(Hi,{title:r.formatMessage({id:"pages.settings.verify.mobile",defaultMessage:"验证手机号"}),forceRender:!0,open:e,footer:null,onCancel:S,children:N.jsxs(pr,{form:o,onFinish:async C=>{console.log("changeMobile:",C),w()},children:[N.jsx(Lr,{fieldProps:{size:"large",prefix:N.jsx(lS,{})},name:"mobile",placeholder:r.formatMessage({id:"pages.login.phoneNumber.placeholder",defaultMessage:"手机号"}),rules:[{required:!0},{pattern:/^1\d{10}$/}],readonly:!0}),N.jsx(pr.Item,{name:"captchaCode",rules:[],children:N.jsx(c0,{onKaptchaChange:v,onKaptchaCheck:b})}),N.jsx(gS,{fieldProps:{size:"large",prefix:N.jsx(Wp,{}),allowClear:!0},captchaProps:{size:"large",disabled:!m},placeholder:r.formatMessage({id:"pages.login.captcha.placeholder",defaultMessage:"请输入验证码"}),captchaTextRender:(C,x)=>C?`${x} ${r.formatMessage({id:"pages.getCaptchaSecondText",defaultMessage:"获取验证码"})}`:r.formatMessage({id:"pages.login.phoneLogin.getVerificationCode",defaultMessage:"获取验证码"}),phoneName:"mobile",name:"code",rules:[{required:!0}],fieldRef:c,onGetCaptcha:async C=>{if(console.log("mobile:",C),C&&C.length===11){const x={mobile:C,type:G0e,captchaUid:u,captchaCode:h,deviceUid:s,userUid:a==null?void 0:a.uid,orgUid:l.uid,platform:cl},_=await vF(x);if(console.log("sendMobileCode",_),_.data.code!==200){gn.error(i(_.data.message)),E();return}gn.success(i(_.data.message))}else gn.error("手机号格式错误")}})]})})})},JOt=()=>{const e=eo(),t=Ya(),[n]=pr.useForm(),{userInfo:r,setUserInfo:o}=vi(b=>({userInfo:b.userInfo,setUserInfo:b.setUserInfo})),[i,a]=d.useState(!1),[s,l]=d.useState(!1),c=()=>{a(!0)},u=()=>{l(!0)},f=()=>{a(!1)},h=b=>{a(!1),r.email=b,r.emailVerified=!0,o(r),n.setFieldValue("email",b)},p=()=>{l(!1)},m=b=>{l(!1),r.mobile=b,r.mobileVerified=!0,o(r),n.setFieldValue("mobile",b)};d.useEffect(()=>{n.setFieldsValue({uid:r.uid,username:r.username,nickname:r.nickname,email:r.email,mobile:r.mobile})},[]);const g=()=>{t("/setting/profile")},v=()=>{t("/setting/profile")};return N.jsxs("div",{children:[N.jsxs(pr,{form:n,submitter:!1,children:[N.jsx(Lr,{name:"email",label:r!=null&&r.emailVerified?e.formatMessage({id:"email.verified",defaultMessage:"Email Verified"}):e.formatMessage({id:"email.unverified",defaultMessage:"email unverified"}),readonly:!0}),!(r!=null&&r.emailVerified)&&r.email!=null&&N.jsx(Hn,{onClick:c,children:e.formatMessage({id:"pages.settings.verify.email",defaultMessage:"验证邮箱"})}),N.jsx(Hn,{type:"link",onClick:g,children:"重置邮箱"}),N.jsx(Lr,{name:"mobile",label:r!=null&&r.mobileVerified?e.formatMessage({id:"mobile.verified",defaultMessage:"Mobile Verified"}):e.formatMessage({id:"mobile.unverified",defaultMessage:"mobile unverified"}),readonly:!0}),!(r!=null&&r.mobileVerified)&&r.mobile!=null&&N.jsx(Hn,{onClick:u,children:e.formatMessage({id:"pages.settings.verify.mobile",defaultMessage:"验证手机号"})}),N.jsx(Hn,{type:"link",onClick:v,children:"重置手机号"})]}),i&&N.jsx(XOt,{open:i,onSubmit:h,onClose:f}),s&&N.jsx(QOt,{open:s,onSubmit:m,onClose:p})]})},ZOt=e=>{console.log(e)},eMt=[{key:"personal",label:"个人认证",children:N.jsx(JOt,{})}],tMt=()=>N.jsx("div",{className:"profile-container",children:N.jsx(nS,{defaultActiveKey:"personal",items:eMt,onChange:ZOt})}),nMt=()=>{const[e]=pr.useForm(),t=eo(),{translateString:n}=cu(),{agentInfo:r,setAgentInfo:o}=jp(f=>({agentInfo:f.agentInfo,setAgentInfo:f.setAgentInfo})),[i,a]=d.useState("");d.useEffect(()=>{var f;r&&e.setFieldsValue({nickname:n(r==null?void 0:r.nickname),email:r==null?void 0:r.email,mobile:r==null?void 0:r.mobile,description:n(r==null?void 0:r.description),memberUid:(f=r==null?void 0:r.member)==null?void 0:f.uid})},[r]);const s=f=>{console.log("handleUploadSuccess:",f),a(f)},l=f=>{console.log("handleUploadError:",f),gn.error(f)},c=async f=>{var m,g,v,b,y,S,w,E,C,x,_,P,O,I;console.log("onFinish:",f),gn.loading(t.formatMessage({id:"updating"}));const h={...r,...f,avatar:i,serviceSettings:{...r.serviceSettings,quickFaqUids:(g=(m=r==null?void 0:r.serviceSettings)==null?void 0:m.quickFaqs)==null?void 0:g.map(M=>M.uid),faqUids:(b=(v=r==null?void 0:r.serviceSettings)==null?void 0:v.faqs)==null?void 0:b.map(M=>M.uid),guessFaqUids:(S=(y=r==null?void 0:r.serviceSettings)==null?void 0:y.guessFaqs)==null?void 0:S.map(M=>M.uid),hotFaqUids:(E=(w=r==null?void 0:r.serviceSettings)==null?void 0:w.hotFaqs)==null?void 0:E.map(M=>M.uid),shortcutFaqUids:(x=(C=r==null?void 0:r.serviceSettings)==null?void 0:C.shortcutFaqs)==null?void 0:x.map(M=>M.uid)},robotSettings:{...r.robotSettings,robotUid:(P=(_=r==null?void 0:r.robotSettings)==null?void 0:_.robot)==null?void 0:P.uid},leaveMsgSettings:{...r.leaveMsgSettings,worktimeUids:(I=(O=r==null?void 0:r.leaveMsgSettings)==null?void 0:O.worktimes)==null?void 0:I.map(M=>M.uid)},autoReplySettings:{...r.autoReplySettings}};console.log("agentObject:",h);const p=await eSe(h);console.log("updateAgent response:",p),p.data.code===200?(gn.destroy(),gn.success(t.formatMessage({id:"update.success"})),o(p.data.data)):(gn.destroy(),gn.error(p.data.message))},u=f=>Array.isArray(f)?f:f==null?void 0:f.fileList;return d.useEffect(()=>{var f;r&&(a(r.avatar),e.setFieldsValue({member:(f=r==null?void 0:r.member)==null?void 0:f.nickname}))},[r]),N.jsx(N.Fragment,{children:N.jsxs(pr,{form:e,style:{marginLeft:"20px"},onFinish:c,children:[N.jsx(pr.Item,{name:"avatar",valuePropName:"fileList",getValueFromEvent:u,label:t.formatMessage({id:"pages.robot.tab.avatar",defaultMessage:"Avatar"}),children:N.jsxs(khe,{onSuccess:s,onError:l,children:[N.jsx(Xc,{src:i}),N.jsx(Hn,{icon:N.jsx(DD,{}),children:t.formatMessage({id:"pages.robot.upload",defaultMessage:"Upload"})})]},"avatar")}),N.jsx(Lr,{width:"md",name:"nickname",label:"客服卡片-展示客服昵称",rules:[{required:!0,message:"请输入客服昵称"}]}),N.jsx(Lr,{width:"md",name:"email",label:"客服卡片-展示邮箱",rules:[{required:!0,message:"请输入邮箱"}]}),N.jsx(Lr,{width:"md",name:"mobile",label:"客服卡片-展示手机号",rules:[{required:!0,message:"请输入手机号"}]}),N.jsx(Lj,{width:"md",name:"description",label:"客服卡片-展示描述",rules:[{required:!0,message:"请输入描述"}]})]})})},rMt=()=>{const e=eo(),[t,n]=d.useState([]),r=[{key:"basic",label:e.formatMessage({id:"pages.agent.tab.basic",defaultMessage:"Basic"}),children:N.jsx(nMt,{})}];return d.useEffect(()=>{n(r)},[]),N.jsx(N.Fragment,{children:N.jsx(nS,{style:{marginLeft:20},defaultActiveKey:"basic",items:t})})},{Sider:oMt,Content:iMt}=ei,X8=()=>{const{leftSiderStyle:e,leftSiderWidth:t,headerStyle:n,contentStyle:r}=zS();return N.jsx(N.Fragment,{children:N.jsxs(ei,{children:[N.jsx(oMt,{style:e,width:t,children:N.jsx(iE,{style:n,children:"home"})}),N.jsxs(ei,{children:[N.jsx(iE,{style:n,children:"home"}),N.jsx(iMt,{style:r,children:"home"})]})]})})},aMt=()=>{console.log("useMulticast");const e=()=>setInterval(()=>{},5e3);d.useEffect(()=>{console.log("useMulticast useEffect");const t=e();return()=>{console.log("un - useEffect"),clearInterval(t)}},[])};class sMt{constructor(){this.encoder=new TextEncoder,this._pieces=[],this._parts=[]}append_buffer(t){this.flush(),this._parts.push(t)}append(t){this._pieces.push(t)}flush(){if(this._pieces.length>0){const t=new Uint8Array(this._pieces);this._parts.push(t),this._pieces=[]}}toArrayBuffer(){const t=[];for(const n of this._parts)t.push(n);return lMt(t).buffer}}function lMt(e){let t=0;for(const o of e)t+=o.byteLength;const n=new Uint8Array(t);let r=0;for(const o of e){const i=new Uint8Array(o.buffer,o.byteOffset,o.byteLength);n.set(i,r),r+=o.byteLength}return n}function Nhe(e){return new cMt(e).unpack()}function Ahe(e){const t=new uMt,n=t.pack(e);return n instanceof Promise?n.then(()=>t.getBuffer()):t.getBuffer()}class cMt{constructor(t){this.index=0,this.dataBuffer=t,this.dataView=new Uint8Array(this.dataBuffer),this.length=this.dataBuffer.byteLength}unpack(){const t=this.unpack_uint8();if(t<128)return t;if((t^224)<32)return(t^224)-32;let n;if((n=t^160)<=15)return this.unpack_raw(n);if((n=t^176)<=15)return this.unpack_string(n);if((n=t^144)<=15)return this.unpack_array(n);if((n=t^128)<=15)return this.unpack_map(n);switch(t){case 192:return null;case 193:return;case 194:return!1;case 195:return!0;case 202:return this.unpack_float();case 203:return this.unpack_double();case 204:return this.unpack_uint8();case 205:return this.unpack_uint16();case 206:return this.unpack_uint32();case 207:return this.unpack_uint64();case 208:return this.unpack_int8();case 209:return this.unpack_int16();case 210:return this.unpack_int32();case 211:return this.unpack_int64();case 212:return;case 213:return;case 214:return;case 215:return;case 216:return n=this.unpack_uint16(),this.unpack_string(n);case 217:return n=this.unpack_uint32(),this.unpack_string(n);case 218:return n=this.unpack_uint16(),this.unpack_raw(n);case 219:return n=this.unpack_uint32(),this.unpack_raw(n);case 220:return n=this.unpack_uint16(),this.unpack_array(n);case 221:return n=this.unpack_uint32(),this.unpack_array(n);case 222:return n=this.unpack_uint16(),this.unpack_map(n);case 223:return n=this.unpack_uint32(),this.unpack_map(n)}}unpack_uint8(){const t=this.dataView[this.index]&255;return this.index++,t}unpack_uint16(){const t=this.read(2),n=(t[0]&255)*256+(t[1]&255);return this.index+=2,n}unpack_uint32(){const t=this.read(4),n=((t[0]*256+t[1])*256+t[2])*256+t[3];return this.index+=4,n}unpack_uint64(){const t=this.read(8),n=((((((t[0]*256+t[1])*256+t[2])*256+t[3])*256+t[4])*256+t[5])*256+t[6])*256+t[7];return this.index+=8,n}unpack_int8(){const t=this.unpack_uint8();return t<128?t:t-256}unpack_int16(){const t=this.unpack_uint16();return t<32768?t:t-65536}unpack_int32(){const t=this.unpack_uint32();return t<2**31?t:t-2**32}unpack_int64(){const t=this.unpack_uint64();return t<2**63?t:t-2**64}unpack_raw(t){if(this.length>31,r=(t>>23&255)-127,o=t&8388607|8388608;return(n===0?1:-1)*o*2**(r-23)}unpack_double(){const t=this.unpack_uint32(),n=this.unpack_uint32(),r=t>>31,o=(t>>20&2047)-1023,a=(t&1048575|1048576)*2**(o-20)+n*2**(o-52);return(r===0?1:-1)*a}read(t){const n=this.index;if(n+t<=this.length)return this.dataView.subarray(n,n+t);throw new Error("BinaryPackFailure: read index out of range")}}class uMt{getBuffer(){return this._bufferBuilder.toArrayBuffer()}pack(t){if(typeof t=="string")this.pack_string(t);else if(typeof t=="number")Math.floor(t)===t?this.pack_integer(t):this.pack_double(t);else if(typeof t=="boolean")t===!0?this._bufferBuilder.append(195):t===!1&&this._bufferBuilder.append(194);else if(t===void 0)this._bufferBuilder.append(192);else if(typeof t=="object")if(t===null)this._bufferBuilder.append(192);else{const n=t.constructor;if(t instanceof Array){const r=this.pack_array(t);if(r instanceof Promise)return r.then(()=>this._bufferBuilder.flush())}else if(t instanceof ArrayBuffer)this.pack_bin(new Uint8Array(t));else if("BYTES_PER_ELEMENT"in t){const r=t;this.pack_bin(new Uint8Array(r.buffer,r.byteOffset,r.byteLength))}else if(t instanceof Date)this.pack_string(t.toString());else{if(t instanceof Blob)return t.arrayBuffer().then(r=>{this.pack_bin(new Uint8Array(r)),this._bufferBuilder.flush()});if(n==Object||n.toString().startsWith("class")){const r=this.pack_object(t);if(r instanceof Promise)return r.then(()=>this._bufferBuilder.flush())}else throw new Error(`Type "${n.toString()}" not yet supported`)}}else throw new Error(`Type "${typeof t}" not yet supported`);this._bufferBuilder.flush()}pack_bin(t){const n=t.length;if(n<=15)this.pack_uint8(160+n);else if(n<=65535)this._bufferBuilder.append(218),this.pack_uint16(n);else if(n<=4294967295)this._bufferBuilder.append(219),this.pack_uint32(n);else throw new Error("Invalid length");this._bufferBuilder.append_buffer(t)}pack_string(t){const n=this._textEncoder.encode(t),r=n.length;if(r<=15)this.pack_uint8(176+r);else if(r<=65535)this._bufferBuilder.append(216),this.pack_uint16(r);else if(r<=4294967295)this._bufferBuilder.append(217),this.pack_uint32(r);else throw new Error("Invalid length");this._bufferBuilder.append_buffer(n)}pack_array(t){const n=t.length;if(n<=15)this.pack_uint8(144+n);else if(n<=65535)this._bufferBuilder.append(220),this.pack_uint16(n);else if(n<=4294967295)this._bufferBuilder.append(221),this.pack_uint32(n);else throw new Error("Invalid length");const r=o=>{if(or(o+1)):r(o+1)}};return r(0)}pack_integer(t){if(t>=-32&&t<=127)this._bufferBuilder.append(t&255);else if(t>=0&&t<=255)this._bufferBuilder.append(204),this.pack_uint8(t);else if(t>=-128&&t<=127)this._bufferBuilder.append(208),this.pack_int8(t);else if(t>=0&&t<=65535)this._bufferBuilder.append(205),this.pack_uint16(t);else if(t>=-32768&&t<=32767)this._bufferBuilder.append(209),this.pack_int16(t);else if(t>=0&&t<=4294967295)this._bufferBuilder.append(206),this.pack_uint32(t);else if(t>=-2147483648&&t<=2147483647)this._bufferBuilder.append(210),this.pack_int32(t);else if(t>=-9223372036854776e3&&t<=9223372036854776e3)this._bufferBuilder.append(211),this.pack_int64(t);else if(t>=0&&t<=18446744073709552e3)this._bufferBuilder.append(207),this.pack_uint64(t);else throw new Error("Invalid integer")}pack_double(t){let n=0;t<0&&(n=1,t=-t);const r=Math.floor(Math.log(t)/Math.LN2),o=t/2**r-1,i=Math.floor(o*2**52),a=2**32,s=n<<31|r+1023<<20|i/a&1048575,l=i%a;this._bufferBuilder.append(203),this.pack_int32(s),this.pack_int32(l)}pack_object(t){const n=Object.keys(t),r=n.length;if(r<=15)this.pack_uint8(128+r);else if(r<=65535)this._bufferBuilder.append(222),this.pack_uint16(r);else if(r<=4294967295)this._bufferBuilder.append(223),this.pack_uint32(r);else throw new Error("Invalid length");const o=i=>{if(io(i+1))}return o(i+1)}};return o(0)}pack_uint8(t){this._bufferBuilder.append(t)}pack_uint16(t){this._bufferBuilder.append(t>>8),this._bufferBuilder.append(t&255)}pack_uint32(t){const n=t&4294967295;this._bufferBuilder.append((n&4278190080)>>>24),this._bufferBuilder.append((n&16711680)>>>16),this._bufferBuilder.append((n&65280)>>>8),this._bufferBuilder.append(n&255)}pack_uint64(t){const n=t/4294967296,r=t%2**32;this._bufferBuilder.append((n&4278190080)>>>24),this._bufferBuilder.append((n&16711680)>>>16),this._bufferBuilder.append((n&65280)>>>8),this._bufferBuilder.append(n&255),this._bufferBuilder.append((r&4278190080)>>>24),this._bufferBuilder.append((r&16711680)>>>16),this._bufferBuilder.append((r&65280)>>>8),this._bufferBuilder.append(r&255)}pack_int8(t){this._bufferBuilder.append(t&255)}pack_int16(t){this._bufferBuilder.append((t&65280)>>8),this._bufferBuilder.append(t&255)}pack_int32(t){this._bufferBuilder.append(t>>>24&255),this._bufferBuilder.append((t&16711680)>>>16),this._bufferBuilder.append((t&65280)>>>8),this._bufferBuilder.append(t&255)}pack_int64(t){const n=Math.floor(t/4294967296),r=t%2**32;this._bufferBuilder.append((n&4278190080)>>>24),this._bufferBuilder.append((n&16711680)>>>16),this._bufferBuilder.append((n&65280)>>>8),this._bufferBuilder.append(n&255),this._bufferBuilder.append((r&4278190080)>>>24),this._bufferBuilder.append((r&16711680)>>>16),this._bufferBuilder.append((r&65280)>>>8),this._bufferBuilder.append(r&255)}constructor(){this._bufferBuilder=new sMt,this._textEncoder=new TextEncoder}}let Dhe=!0,jhe=!0;function xx(e,t,n){const r=e.match(t);return r&&r.length>=n&&parseInt(r[n],10)}function Jp(e,t,n){if(!e.RTCPeerConnection)return;const r=e.RTCPeerConnection.prototype,o=r.addEventListener;r.addEventListener=function(a,s){if(a!==t)return o.apply(this,arguments);const l=c=>{const u=n(c);u&&(s.handleEvent?s.handleEvent(u):s(u))};return this._eventMap=this._eventMap||{},this._eventMap[t]||(this._eventMap[t]=new Map),this._eventMap[t].set(s,l),o.apply(this,[a,l])};const i=r.removeEventListener;r.removeEventListener=function(a,s){if(a!==t||!this._eventMap||!this._eventMap[t])return i.apply(this,arguments);if(!this._eventMap[t].has(s))return i.apply(this,arguments);const l=this._eventMap[t].get(s);return this._eventMap[t].delete(s),this._eventMap[t].size===0&&delete this._eventMap[t],Object.keys(this._eventMap).length===0&&delete this._eventMap,i.apply(this,[a,l])},Object.defineProperty(r,"on"+t,{get(){return this["_on"+t]},set(a){this["_on"+t]&&(this.removeEventListener(t,this["_on"+t]),delete this["_on"+t]),a&&this.addEventListener(t,this["_on"+t]=a)},enumerable:!0,configurable:!0})}function dMt(e){return typeof e!="boolean"?new Error("Argument type: "+typeof e+". Please use a boolean."):(Dhe=e,e?"adapter.js logging disabled":"adapter.js logging enabled")}function fMt(e){return typeof e!="boolean"?new Error("Argument type: "+typeof e+". Please use a boolean."):(jhe=!e,"adapter.js deprecation warnings "+(e?"disabled":"enabled"))}function Fhe(){if(typeof window=="object"){if(Dhe)return;typeof console<"u"&&typeof console.log=="function"&&console.log.apply(console,arguments)}}function KF(e,t){jhe&&console.warn(e+" is deprecated, please use "+t+" instead.")}function hMt(e){const t={browser:null,version:null};if(typeof e>"u"||!e.navigator||!e.navigator.userAgent)return t.browser="Not a browser.",t;const{navigator:n}=e;if(n.userAgentData&&n.userAgentData.brands){const r=n.userAgentData.brands.find(o=>o.brand==="Chromium");if(r)return{browser:"chrome",version:parseInt(r.version,10)}}if(n.mozGetUserMedia)t.browser="firefox",t.version=xx(n.userAgent,/Firefox\/(\d+)\./,1);else if(n.webkitGetUserMedia||e.isSecureContext===!1&&e.webkitRTCPeerConnection)t.browser="chrome",t.version=xx(n.userAgent,/Chrom(e|ium)\/(\d+)\./,2);else if(e.RTCPeerConnection&&n.userAgent.match(/AppleWebKit\/(\d+)\./))t.browser="safari",t.version=xx(n.userAgent,/AppleWebKit\/(\d+)\./,1),t.supportsUnifiedPlan=e.RTCRtpTransceiver&&"currentDirection"in e.RTCRtpTransceiver.prototype;else return t.browser="Not a supported browser.",t;return t}function pG(e){return Object.prototype.toString.call(e)==="[object Object]"}function Lhe(e){return pG(e)?Object.keys(e).reduce(function(t,n){const r=pG(e[n]),o=r?Lhe(e[n]):e[n],i=r&&!Object.keys(o).length;return o===void 0||i?t:Object.assign(t,{[n]:o})},{}):e}function Q8(e,t,n){!t||n.has(t.id)||(n.set(t.id,t),Object.keys(t).forEach(r=>{r.endsWith("Id")?Q8(e,e.get(t[r]),n):r.endsWith("Ids")&&t[r].forEach(o=>{Q8(e,e.get(o),n)})}))}function mG(e,t,n){const r=n?"outbound-rtp":"inbound-rtp",o=new Map;if(t===null)return o;const i=[];return e.forEach(a=>{a.type==="track"&&a.trackIdentifier===t.id&&i.push(a)}),i.forEach(a=>{e.forEach(s=>{s.type===r&&s.trackId===a.id&&Q8(e,s,o)})}),o}const gG=Fhe;function Bhe(e,t){const n=e&&e.navigator;if(!n.mediaDevices)return;const r=function(s){if(typeof s!="object"||s.mandatory||s.optional)return s;const l={};return Object.keys(s).forEach(c=>{if(c==="require"||c==="advanced"||c==="mediaSource")return;const u=typeof s[c]=="object"?s[c]:{ideal:s[c]};u.exact!==void 0&&typeof u.exact=="number"&&(u.min=u.max=u.exact);const f=function(h,p){return h?h+p.charAt(0).toUpperCase()+p.slice(1):p==="deviceId"?"sourceId":p};if(u.ideal!==void 0){l.optional=l.optional||[];let h={};typeof u.ideal=="number"?(h[f("min",c)]=u.ideal,l.optional.push(h),h={},h[f("max",c)]=u.ideal,l.optional.push(h)):(h[f("",c)]=u.ideal,l.optional.push(h))}u.exact!==void 0&&typeof u.exact!="number"?(l.mandatory=l.mandatory||{},l.mandatory[f("",c)]=u.exact):["min","max"].forEach(h=>{u[h]!==void 0&&(l.mandatory=l.mandatory||{},l.mandatory[f(h,c)]=u[h])})}),s.advanced&&(l.optional=(l.optional||[]).concat(s.advanced)),l},o=function(s,l){if(t.version>=61)return l(s);if(s=JSON.parse(JSON.stringify(s)),s&&typeof s.audio=="object"){const c=function(u,f,h){f in u&&!(h in u)&&(u[h]=u[f],delete u[f])};s=JSON.parse(JSON.stringify(s)),c(s.audio,"autoGainControl","googAutoGainControl"),c(s.audio,"noiseSuppression","googNoiseSuppression"),s.audio=r(s.audio)}if(s&&typeof s.video=="object"){let c=s.video.facingMode;c=c&&(typeof c=="object"?c:{ideal:c});const u=t.version<66;if(c&&(c.exact==="user"||c.exact==="environment"||c.ideal==="user"||c.ideal==="environment")&&!(n.mediaDevices.getSupportedConstraints&&n.mediaDevices.getSupportedConstraints().facingMode&&!u)){delete s.video.facingMode;let f;if(c.exact==="environment"||c.ideal==="environment"?f=["back","rear"]:(c.exact==="user"||c.ideal==="user")&&(f=["front"]),f)return n.mediaDevices.enumerateDevices().then(h=>{h=h.filter(m=>m.kind==="videoinput");let p=h.find(m=>f.some(g=>m.label.toLowerCase().includes(g)));return!p&&h.length&&f.includes("back")&&(p=h[h.length-1]),p&&(s.video.deviceId=c.exact?{exact:p.deviceId}:{ideal:p.deviceId}),s.video=r(s.video),gG("chrome: "+JSON.stringify(s)),l(s)})}s.video=r(s.video)}return gG("chrome: "+JSON.stringify(s)),l(s)},i=function(s){return t.version>=64?s:{name:{PermissionDeniedError:"NotAllowedError",PermissionDismissedError:"NotAllowedError",InvalidStateError:"NotAllowedError",DevicesNotFoundError:"NotFoundError",ConstraintNotSatisfiedError:"OverconstrainedError",TrackStartError:"NotReadableError",MediaDeviceFailedDueToShutdown:"NotAllowedError",MediaDeviceKillSwitchOn:"NotAllowedError",TabCaptureError:"AbortError",ScreenCaptureError:"AbortError",DeviceCaptureError:"AbortError"}[s.name]||s.name,message:s.message,constraint:s.constraint||s.constraintName,toString(){return this.name+(this.message&&": ")+this.message}}},a=function(s,l,c){o(s,u=>{n.webkitGetUserMedia(u,l,f=>{c&&c(i(f))})})};if(n.getUserMedia=a.bind(n),n.mediaDevices.getUserMedia){const s=n.mediaDevices.getUserMedia.bind(n.mediaDevices);n.mediaDevices.getUserMedia=function(l){return o(l,c=>s(c).then(u=>{if(c.audio&&!u.getAudioTracks().length||c.video&&!u.getVideoTracks().length)throw u.getTracks().forEach(f=>{f.stop()}),new DOMException("","NotFoundError");return u},u=>Promise.reject(i(u))))}}}function zhe(e){e.MediaStream=e.MediaStream||e.webkitMediaStream}function Hhe(e){if(typeof e=="object"&&e.RTCPeerConnection&&!("ontrack"in e.RTCPeerConnection.prototype)){Object.defineProperty(e.RTCPeerConnection.prototype,"ontrack",{get(){return this._ontrack},set(n){this._ontrack&&this.removeEventListener("track",this._ontrack),this.addEventListener("track",this._ontrack=n)},enumerable:!0,configurable:!0});const t=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){return this._ontrackpoly||(this._ontrackpoly=r=>{r.stream.addEventListener("addtrack",o=>{let i;e.RTCPeerConnection.prototype.getReceivers?i=this.getReceivers().find(s=>s.track&&s.track.id===o.track.id):i={track:o.track};const a=new Event("track");a.track=o.track,a.receiver=i,a.transceiver={receiver:i},a.streams=[r.stream],this.dispatchEvent(a)}),r.stream.getTracks().forEach(o=>{let i;e.RTCPeerConnection.prototype.getReceivers?i=this.getReceivers().find(s=>s.track&&s.track.id===o.id):i={track:o};const a=new Event("track");a.track=o,a.receiver=i,a.transceiver={receiver:i},a.streams=[r.stream],this.dispatchEvent(a)})},this.addEventListener("addstream",this._ontrackpoly)),t.apply(this,arguments)}}else Jp(e,"track",t=>(t.transceiver||Object.defineProperty(t,"transceiver",{value:{receiver:t.receiver}}),t))}function Uhe(e){if(typeof e=="object"&&e.RTCPeerConnection&&!("getSenders"in e.RTCPeerConnection.prototype)&&"createDTMFSender"in e.RTCPeerConnection.prototype){const t=function(o,i){return{track:i,get dtmf(){return this._dtmf===void 0&&(i.kind==="audio"?this._dtmf=o.createDTMFSender(i):this._dtmf=null),this._dtmf},_pc:o}};if(!e.RTCPeerConnection.prototype.getSenders){e.RTCPeerConnection.prototype.getSenders=function(){return this._senders=this._senders||[],this._senders.slice()};const o=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(s,l){let c=o.apply(this,arguments);return c||(c=t(this,s),this._senders.push(c)),c};const i=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(s){i.apply(this,arguments);const l=this._senders.indexOf(s);l!==-1&&this._senders.splice(l,1)}}const n=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(i){this._senders=this._senders||[],n.apply(this,[i]),i.getTracks().forEach(a=>{this._senders.push(t(this,a))})};const r=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(i){this._senders=this._senders||[],r.apply(this,[i]),i.getTracks().forEach(a=>{const s=this._senders.find(l=>l.track===a);s&&this._senders.splice(this._senders.indexOf(s),1)})}}else if(typeof e=="object"&&e.RTCPeerConnection&&"getSenders"in e.RTCPeerConnection.prototype&&"createDTMFSender"in e.RTCPeerConnection.prototype&&e.RTCRtpSender&&!("dtmf"in e.RTCRtpSender.prototype)){const t=e.RTCPeerConnection.prototype.getSenders;e.RTCPeerConnection.prototype.getSenders=function(){const r=t.apply(this,[]);return r.forEach(o=>o._pc=this),r},Object.defineProperty(e.RTCRtpSender.prototype,"dtmf",{get(){return this._dtmf===void 0&&(this.track.kind==="audio"?this._dtmf=this._pc.createDTMFSender(this.track):this._dtmf=null),this._dtmf}})}}function Whe(e){if(!(typeof e=="object"&&e.RTCPeerConnection&&e.RTCRtpSender&&e.RTCRtpReceiver))return;if(!("getStats"in e.RTCRtpSender.prototype)){const n=e.RTCPeerConnection.prototype.getSenders;n&&(e.RTCPeerConnection.prototype.getSenders=function(){const i=n.apply(this,[]);return i.forEach(a=>a._pc=this),i});const r=e.RTCPeerConnection.prototype.addTrack;r&&(e.RTCPeerConnection.prototype.addTrack=function(){const i=r.apply(this,arguments);return i._pc=this,i}),e.RTCRtpSender.prototype.getStats=function(){const i=this;return this._pc.getStats().then(a=>mG(a,i.track,!0))}}if(!("getStats"in e.RTCRtpReceiver.prototype)){const n=e.RTCPeerConnection.prototype.getReceivers;n&&(e.RTCPeerConnection.prototype.getReceivers=function(){const o=n.apply(this,[]);return o.forEach(i=>i._pc=this),o}),Jp(e,"track",r=>(r.receiver._pc=r.srcElement,r)),e.RTCRtpReceiver.prototype.getStats=function(){const o=this;return this._pc.getStats().then(i=>mG(i,o.track,!1))}}if(!("getStats"in e.RTCRtpSender.prototype&&"getStats"in e.RTCRtpReceiver.prototype))return;const t=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){if(arguments.length>0&&arguments[0]instanceof e.MediaStreamTrack){const r=arguments[0];let o,i,a;return this.getSenders().forEach(s=>{s.track===r&&(o?a=!0:o=s)}),this.getReceivers().forEach(s=>(s.track===r&&(i?a=!0:i=s),s.track===r)),a||o&&i?Promise.reject(new DOMException("There are more than one sender or receiver for the track.","InvalidAccessError")):o?o.getStats():i?i.getStats():Promise.reject(new DOMException("There is no sender or receiver for the track.","InvalidAccessError"))}return t.apply(this,arguments)}}function Vhe(e){e.RTCPeerConnection.prototype.getLocalStreams=function(){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},Object.keys(this._shimmedLocalStreams).map(a=>this._shimmedLocalStreams[a][0])};const t=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(a,s){if(!s)return t.apply(this,arguments);this._shimmedLocalStreams=this._shimmedLocalStreams||{};const l=t.apply(this,arguments);return this._shimmedLocalStreams[s.id]?this._shimmedLocalStreams[s.id].indexOf(l)===-1&&this._shimmedLocalStreams[s.id].push(l):this._shimmedLocalStreams[s.id]=[s,l],l};const n=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(a){this._shimmedLocalStreams=this._shimmedLocalStreams||{},a.getTracks().forEach(c=>{if(this.getSenders().find(f=>f.track===c))throw new DOMException("Track already exists.","InvalidAccessError")});const s=this.getSenders();n.apply(this,arguments);const l=this.getSenders().filter(c=>s.indexOf(c)===-1);this._shimmedLocalStreams[a.id]=[a].concat(l)};const r=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(a){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},delete this._shimmedLocalStreams[a.id],r.apply(this,arguments)};const o=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(a){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},a&&Object.keys(this._shimmedLocalStreams).forEach(s=>{const l=this._shimmedLocalStreams[s].indexOf(a);l!==-1&&this._shimmedLocalStreams[s].splice(l,1),this._shimmedLocalStreams[s].length===1&&delete this._shimmedLocalStreams[s]}),o.apply(this,arguments)}}function Khe(e,t){if(!e.RTCPeerConnection)return;if(e.RTCPeerConnection.prototype.addTrack&&t.version>=65)return Vhe(e);const n=e.RTCPeerConnection.prototype.getLocalStreams;e.RTCPeerConnection.prototype.getLocalStreams=function(){const u=n.apply(this);return this._reverseStreams=this._reverseStreams||{},u.map(f=>this._reverseStreams[f.id])};const r=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(u){if(this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},u.getTracks().forEach(f=>{if(this.getSenders().find(p=>p.track===f))throw new DOMException("Track already exists.","InvalidAccessError")}),!this._reverseStreams[u.id]){const f=new e.MediaStream(u.getTracks());this._streams[u.id]=f,this._reverseStreams[f.id]=u,u=f}r.apply(this,[u])};const o=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(u){this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},o.apply(this,[this._streams[u.id]||u]),delete this._reverseStreams[this._streams[u.id]?this._streams[u.id].id:u.id],delete this._streams[u.id]},e.RTCPeerConnection.prototype.addTrack=function(u,f){if(this.signalingState==="closed")throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");const h=[].slice.call(arguments,1);if(h.length!==1||!h[0].getTracks().find(g=>g===u))throw new DOMException("The adapter.js addTrack polyfill only supports a single stream which is associated with the specified track.","NotSupportedError");if(this.getSenders().find(g=>g.track===u))throw new DOMException("Track already exists.","InvalidAccessError");this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{};const m=this._streams[f.id];if(m)m.addTrack(u),Promise.resolve().then(()=>{this.dispatchEvent(new Event("negotiationneeded"))});else{const g=new e.MediaStream([u]);this._streams[f.id]=g,this._reverseStreams[g.id]=f,this.addStream(g)}return this.getSenders().find(g=>g.track===u)};function i(c,u){let f=u.sdp;return Object.keys(c._reverseStreams||[]).forEach(h=>{const p=c._reverseStreams[h],m=c._streams[p.id];f=f.replace(new RegExp(m.id,"g"),p.id)}),new RTCSessionDescription({type:u.type,sdp:f})}function a(c,u){let f=u.sdp;return Object.keys(c._reverseStreams||[]).forEach(h=>{const p=c._reverseStreams[h],m=c._streams[p.id];f=f.replace(new RegExp(p.id,"g"),m.id)}),new RTCSessionDescription({type:u.type,sdp:f})}["createOffer","createAnswer"].forEach(function(c){const u=e.RTCPeerConnection.prototype[c],f={[c](){const h=arguments;return arguments.length&&typeof arguments[0]=="function"?u.apply(this,[m=>{const g=i(this,m);h[0].apply(null,[g])},m=>{h[1]&&h[1].apply(null,m)},arguments[2]]):u.apply(this,arguments).then(m=>i(this,m))}};e.RTCPeerConnection.prototype[c]=f[c]});const s=e.RTCPeerConnection.prototype.setLocalDescription;e.RTCPeerConnection.prototype.setLocalDescription=function(){return!arguments.length||!arguments[0].type?s.apply(this,arguments):(arguments[0]=a(this,arguments[0]),s.apply(this,arguments))};const l=Object.getOwnPropertyDescriptor(e.RTCPeerConnection.prototype,"localDescription");Object.defineProperty(e.RTCPeerConnection.prototype,"localDescription",{get(){const c=l.get.apply(this);return c.type===""?c:i(this,c)}}),e.RTCPeerConnection.prototype.removeTrack=function(u){if(this.signalingState==="closed")throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");if(!u._pc)throw new DOMException("Argument 1 of RTCPeerConnection.removeTrack does not implement interface RTCRtpSender.","TypeError");if(!(u._pc===this))throw new DOMException("Sender was not created by this connection.","InvalidAccessError");this._streams=this._streams||{};let h;Object.keys(this._streams).forEach(p=>{this._streams[p].getTracks().find(g=>u.track===g)&&(h=this._streams[p])}),h&&(h.getTracks().length===1?this.removeStream(this._reverseStreams[h.id]):h.removeTrack(u.track),this.dispatchEvent(new Event("negotiationneeded")))}}function J8(e,t){!e.RTCPeerConnection&&e.webkitRTCPeerConnection&&(e.RTCPeerConnection=e.webkitRTCPeerConnection),e.RTCPeerConnection&&t.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(n){const r=e.RTCPeerConnection.prototype[n],o={[n](){return arguments[0]=new(n==="addIceCandidate"?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),r.apply(this,arguments)}};e.RTCPeerConnection.prototype[n]=o[n]})}function qhe(e,t){Jp(e,"negotiationneeded",n=>{const r=n.target;if(!((t.version<72||r.getConfiguration&&r.getConfiguration().sdpSemantics==="plan-b")&&r.signalingState!=="stable"))return n})}const vG=Object.freeze(Object.defineProperty({__proto__:null,fixNegotiationNeeded:qhe,shimAddTrackRemoveTrack:Khe,shimAddTrackRemoveTrackWithNative:Vhe,shimGetSendersWithDtmf:Uhe,shimGetUserMedia:Bhe,shimMediaStream:zhe,shimOnTrack:Hhe,shimPeerConnection:J8,shimSenderReceiverGetStats:Whe},Symbol.toStringTag,{value:"Module"}));function Ghe(e,t){const n=e&&e.navigator,r=e&&e.MediaStreamTrack;if(n.getUserMedia=function(o,i,a){KF("navigator.getUserMedia","navigator.mediaDevices.getUserMedia"),n.mediaDevices.getUserMedia(o).then(i,a)},!(t.version>55&&"autoGainControl"in n.mediaDevices.getSupportedConstraints())){const o=function(a,s,l){s in a&&!(l in a)&&(a[l]=a[s],delete a[s])},i=n.mediaDevices.getUserMedia.bind(n.mediaDevices);if(n.mediaDevices.getUserMedia=function(a){return typeof a=="object"&&typeof a.audio=="object"&&(a=JSON.parse(JSON.stringify(a)),o(a.audio,"autoGainControl","mozAutoGainControl"),o(a.audio,"noiseSuppression","mozNoiseSuppression")),i(a)},r&&r.prototype.getSettings){const a=r.prototype.getSettings;r.prototype.getSettings=function(){const s=a.apply(this,arguments);return o(s,"mozAutoGainControl","autoGainControl"),o(s,"mozNoiseSuppression","noiseSuppression"),s}}if(r&&r.prototype.applyConstraints){const a=r.prototype.applyConstraints;r.prototype.applyConstraints=function(s){return this.kind==="audio"&&typeof s=="object"&&(s=JSON.parse(JSON.stringify(s)),o(s,"autoGainControl","mozAutoGainControl"),o(s,"noiseSuppression","mozNoiseSuppression")),a.apply(this,[s])}}}}function pMt(e,t){e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices||e.navigator.mediaDevices&&(e.navigator.mediaDevices.getDisplayMedia=function(r){if(!(r&&r.video)){const o=new DOMException("getDisplayMedia without video constraints is undefined");return o.name="NotFoundError",o.code=8,Promise.reject(o)}return r.video===!0?r.video={mediaSource:t}:r.video.mediaSource=t,e.navigator.mediaDevices.getUserMedia(r)})}function Yhe(e){typeof e=="object"&&e.RTCTrackEvent&&"receiver"in e.RTCTrackEvent.prototype&&!("transceiver"in e.RTCTrackEvent.prototype)&&Object.defineProperty(e.RTCTrackEvent.prototype,"transceiver",{get(){return{receiver:this.receiver}}})}function Z8(e,t){if(typeof e!="object"||!(e.RTCPeerConnection||e.mozRTCPeerConnection))return;!e.RTCPeerConnection&&e.mozRTCPeerConnection&&(e.RTCPeerConnection=e.mozRTCPeerConnection),t.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(o){const i=e.RTCPeerConnection.prototype[o],a={[o](){return arguments[0]=new(o==="addIceCandidate"?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),i.apply(this,arguments)}};e.RTCPeerConnection.prototype[o]=a[o]});const n={inboundrtp:"inbound-rtp",outboundrtp:"outbound-rtp",candidatepair:"candidate-pair",localcandidate:"local-candidate",remotecandidate:"remote-candidate"},r=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){const[i,a,s]=arguments;return r.apply(this,[i||null]).then(l=>{if(t.version<53&&!a)try{l.forEach(c=>{c.type=n[c.type]||c.type})}catch(c){if(c.name!=="TypeError")throw c;l.forEach((u,f)=>{l.set(f,Object.assign({},u,{type:n[u.type]||u.type}))})}return l}).then(a,s)}}function Xhe(e){if(!(typeof e=="object"&&e.RTCPeerConnection&&e.RTCRtpSender)||e.RTCRtpSender&&"getStats"in e.RTCRtpSender.prototype)return;const t=e.RTCPeerConnection.prototype.getSenders;t&&(e.RTCPeerConnection.prototype.getSenders=function(){const o=t.apply(this,[]);return o.forEach(i=>i._pc=this),o});const n=e.RTCPeerConnection.prototype.addTrack;n&&(e.RTCPeerConnection.prototype.addTrack=function(){const o=n.apply(this,arguments);return o._pc=this,o}),e.RTCRtpSender.prototype.getStats=function(){return this.track?this._pc.getStats(this.track):Promise.resolve(new Map)}}function Qhe(e){if(!(typeof e=="object"&&e.RTCPeerConnection&&e.RTCRtpSender)||e.RTCRtpSender&&"getStats"in e.RTCRtpReceiver.prototype)return;const t=e.RTCPeerConnection.prototype.getReceivers;t&&(e.RTCPeerConnection.prototype.getReceivers=function(){const r=t.apply(this,[]);return r.forEach(o=>o._pc=this),r}),Jp(e,"track",n=>(n.receiver._pc=n.srcElement,n)),e.RTCRtpReceiver.prototype.getStats=function(){return this._pc.getStats(this.track)}}function Jhe(e){!e.RTCPeerConnection||"removeStream"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.removeStream=function(n){KF("removeStream","removeTrack"),this.getSenders().forEach(r=>{r.track&&n.getTracks().includes(r.track)&&this.removeTrack(r)})})}function Zhe(e){e.DataChannel&&!e.RTCDataChannel&&(e.RTCDataChannel=e.DataChannel)}function epe(e){if(!(typeof e=="object"&&e.RTCPeerConnection))return;const t=e.RTCPeerConnection.prototype.addTransceiver;t&&(e.RTCPeerConnection.prototype.addTransceiver=function(){this.setParametersPromises=[];let r=arguments[1]&&arguments[1].sendEncodings;r===void 0&&(r=[]),r=[...r];const o=r.length>0;o&&r.forEach(a=>{if("rid"in a&&!/^[a-z0-9]{0,16}$/i.test(a.rid))throw new TypeError("Invalid RID value provided.");if("scaleResolutionDownBy"in a&&!(parseFloat(a.scaleResolutionDownBy)>=1))throw new RangeError("scale_resolution_down_by must be >= 1.0");if("maxFramerate"in a&&!(parseFloat(a.maxFramerate)>=0))throw new RangeError("max_framerate must be >= 0.0")});const i=t.apply(this,arguments);if(o){const{sender:a}=i,s=a.getParameters();(!("encodings"in s)||s.encodings.length===1&&Object.keys(s.encodings[0]).length===0)&&(s.encodings=r,a.sendEncodings=r,this.setParametersPromises.push(a.setParameters(s).then(()=>{delete a.sendEncodings}).catch(()=>{delete a.sendEncodings})))}return i})}function tpe(e){if(!(typeof e=="object"&&e.RTCRtpSender))return;const t=e.RTCRtpSender.prototype.getParameters;t&&(e.RTCRtpSender.prototype.getParameters=function(){const r=t.apply(this,arguments);return"encodings"in r||(r.encodings=[].concat(this.sendEncodings||[{}])),r})}function npe(e){if(!(typeof e=="object"&&e.RTCPeerConnection))return;const t=e.RTCPeerConnection.prototype.createOffer;e.RTCPeerConnection.prototype.createOffer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then(()=>t.apply(this,arguments)).finally(()=>{this.setParametersPromises=[]}):t.apply(this,arguments)}}function rpe(e){if(!(typeof e=="object"&&e.RTCPeerConnection))return;const t=e.RTCPeerConnection.prototype.createAnswer;e.RTCPeerConnection.prototype.createAnswer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then(()=>t.apply(this,arguments)).finally(()=>{this.setParametersPromises=[]}):t.apply(this,arguments)}}const yG=Object.freeze(Object.defineProperty({__proto__:null,shimAddTransceiver:epe,shimCreateAnswer:rpe,shimCreateOffer:npe,shimGetDisplayMedia:pMt,shimGetParameters:tpe,shimGetUserMedia:Ghe,shimOnTrack:Yhe,shimPeerConnection:Z8,shimRTCDataChannel:Zhe,shimReceiverGetStats:Qhe,shimRemoveStream:Jhe,shimSenderGetStats:Xhe},Symbol.toStringTag,{value:"Module"}));function ope(e){if(!(typeof e!="object"||!e.RTCPeerConnection)){if("getLocalStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getLocalStreams=function(){return this._localStreams||(this._localStreams=[]),this._localStreams}),!("addStream"in e.RTCPeerConnection.prototype)){const t=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addStream=function(r){this._localStreams||(this._localStreams=[]),this._localStreams.includes(r)||this._localStreams.push(r),r.getAudioTracks().forEach(o=>t.call(this,o,r)),r.getVideoTracks().forEach(o=>t.call(this,o,r))},e.RTCPeerConnection.prototype.addTrack=function(r,...o){return o&&o.forEach(i=>{this._localStreams?this._localStreams.includes(i)||this._localStreams.push(i):this._localStreams=[i]}),t.apply(this,arguments)}}"removeStream"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.removeStream=function(n){this._localStreams||(this._localStreams=[]);const r=this._localStreams.indexOf(n);if(r===-1)return;this._localStreams.splice(r,1);const o=n.getTracks();this.getSenders().forEach(i=>{o.includes(i.track)&&this.removeTrack(i)})})}}function ipe(e){if(!(typeof e!="object"||!e.RTCPeerConnection)&&("getRemoteStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getRemoteStreams=function(){return this._remoteStreams?this._remoteStreams:[]}),!("onaddstream"in e.RTCPeerConnection.prototype))){Object.defineProperty(e.RTCPeerConnection.prototype,"onaddstream",{get(){return this._onaddstream},set(n){this._onaddstream&&(this.removeEventListener("addstream",this._onaddstream),this.removeEventListener("track",this._onaddstreampoly)),this.addEventListener("addstream",this._onaddstream=n),this.addEventListener("track",this._onaddstreampoly=r=>{r.streams.forEach(o=>{if(this._remoteStreams||(this._remoteStreams=[]),this._remoteStreams.includes(o))return;this._remoteStreams.push(o);const i=new Event("addstream");i.stream=o,this.dispatchEvent(i)})})}});const t=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){const r=this;return this._onaddstreampoly||this.addEventListener("track",this._onaddstreampoly=function(o){o.streams.forEach(i=>{if(r._remoteStreams||(r._remoteStreams=[]),r._remoteStreams.indexOf(i)>=0)return;r._remoteStreams.push(i);const a=new Event("addstream");a.stream=i,r.dispatchEvent(a)})}),t.apply(r,arguments)}}}function ape(e){if(typeof e!="object"||!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype,n=t.createOffer,r=t.createAnswer,o=t.setLocalDescription,i=t.setRemoteDescription,a=t.addIceCandidate;t.createOffer=function(c,u){const f=arguments.length>=2?arguments[2]:arguments[0],h=n.apply(this,[f]);return u?(h.then(c,u),Promise.resolve()):h},t.createAnswer=function(c,u){const f=arguments.length>=2?arguments[2]:arguments[0],h=r.apply(this,[f]);return u?(h.then(c,u),Promise.resolve()):h};let s=function(l,c,u){const f=o.apply(this,[l]);return u?(f.then(c,u),Promise.resolve()):f};t.setLocalDescription=s,s=function(l,c,u){const f=i.apply(this,[l]);return u?(f.then(c,u),Promise.resolve()):f},t.setRemoteDescription=s,s=function(l,c,u){const f=a.apply(this,[l]);return u?(f.then(c,u),Promise.resolve()):f},t.addIceCandidate=s}function spe(e){const t=e&&e.navigator;if(t.mediaDevices&&t.mediaDevices.getUserMedia){const n=t.mediaDevices,r=n.getUserMedia.bind(n);t.mediaDevices.getUserMedia=o=>r(lpe(o))}!t.getUserMedia&&t.mediaDevices&&t.mediaDevices.getUserMedia&&(t.getUserMedia=(function(r,o,i){t.mediaDevices.getUserMedia(r).then(o,i)}).bind(t))}function lpe(e){return e&&e.video!==void 0?Object.assign({},e,{video:Lhe(e.video)}):e}function cpe(e){if(!e.RTCPeerConnection)return;const t=e.RTCPeerConnection;e.RTCPeerConnection=function(r,o){if(r&&r.iceServers){const i=[];for(let a=0;aa.receiver.track.kind==="audio");r.offerToReceiveAudio===!1&&o?o.direction==="sendrecv"?o.setDirection?o.setDirection("sendonly"):o.direction="sendonly":o.direction==="recvonly"&&(o.setDirection?o.setDirection("inactive"):o.direction="inactive"):r.offerToReceiveAudio===!0&&!o&&this.addTransceiver("audio",{direction:"recvonly"}),typeof r.offerToReceiveVideo<"u"&&(r.offerToReceiveVideo=!!r.offerToReceiveVideo);const i=this.getTransceivers().find(a=>a.receiver.track.kind==="video");r.offerToReceiveVideo===!1&&i?i.direction==="sendrecv"?i.setDirection?i.setDirection("sendonly"):i.direction="sendonly":i.direction==="recvonly"&&(i.setDirection?i.setDirection("inactive"):i.direction="inactive"):r.offerToReceiveVideo===!0&&!i&&this.addTransceiver("video",{direction:"recvonly"})}return t.apply(this,arguments)}}function fpe(e){typeof e!="object"||e.AudioContext||(e.AudioContext=e.webkitAudioContext)}const bG=Object.freeze(Object.defineProperty({__proto__:null,shimAudioContext:fpe,shimCallbacksAPI:ape,shimConstraints:lpe,shimCreateOfferLegacy:dpe,shimGetUserMedia:spe,shimLocalStreamsAPI:ope,shimRTCIceServerUrls:cpe,shimRemoteStreamsAPI:ipe,shimTrackEventTransceiver:upe},Symbol.toStringTag,{value:"Module"}));var hpe={exports:{}};(function(e){const t={};t.generateIdentifier=function(){return Math.random().toString(36).substring(2,12)},t.localCName=t.generateIdentifier(),t.splitLines=function(n){return n.trim().split(` `).map(r=>r.trim())},t.splitSections=function(n){return n.split(` m=`).map((o,i)=>(i>0?"m="+o:o).trim()+`\r `)},t.getDescription=function(n){const r=t.splitSections(n);return r&&r[0]},t.getMediaSections=function(n){const r=t.splitSections(n);return r.shift(),r},t.matchPrefix=function(n,r){return t.splitLines(n).filter(o=>o.indexOf(r)===0)},t.parseCandidate=function(n){let r;n.indexOf("a=candidate:")===0?r=n.substring(12).split(" "):r=n.substring(10).split(" ");const o={foundation:r[0],component:{1:"rtp",2:"rtcp"}[r[1]]||r[1],protocol:r[2].toLowerCase(),priority:parseInt(r[3],10),ip:r[4],address:r[4],port:parseInt(r[5],10),type:r[7]};for(let i=8;i0?r[0].split("/")[1]:"sendrecv",uri:r[1],attributes:r.slice(2).join(" ")}},t.writeExtmap=function(n){return"a=extmap:"+(n.id||n.preferredId)+(n.direction&&n.direction!=="sendrecv"?"/"+n.direction:"")+" "+n.uri+(n.attributes?" "+n.attributes:"")+`\r `},t.parseFmtp=function(n){const r={};let o;const i=n.substring(n.indexOf(" ")+1).split(";");for(let a=0;a{n.parameters[a]!==void 0?i.push(a+"="+n.parameters[a]):i.push(a)}),r+="a=fmtp:"+o+" "+i.join(";")+`\r `}return r},t.parseRtcpFb=function(n){const r=n.substring(n.indexOf(" ")+1).split(" ");return{type:r.shift(),parameter:r.join(" ")}},t.writeRtcpFb=function(n){let r="",o=n.payloadType;return n.preferredPayloadType!==void 0&&(o=n.preferredPayloadType),n.rtcpFeedback&&n.rtcpFeedback.length&&n.rtcpFeedback.forEach(i=>{r+="a=rtcp-fb:"+o+" "+i.type+(i.parameter&&i.parameter.length?" "+i.parameter:"")+`\r `}),r},t.parseSsrcMedia=function(n){const r=n.indexOf(" "),o={ssrc:parseInt(n.substring(7,r),10)},i=n.indexOf(":",r);return i>-1?(o.attribute=n.substring(r+1,i),o.value=n.substring(i+1)):o.attribute=n.substring(r+1),o},t.parseSsrcGroup=function(n){const r=n.substring(13).split(" ");return{semantics:r.shift(),ssrcs:r.map(o=>parseInt(o,10))}},t.getMid=function(n){const r=t.matchPrefix(n,"a=mid:")[0];if(r)return r.substring(6)},t.parseFingerprint=function(n){const r=n.substring(14).split(" ");return{algorithm:r[0].toLowerCase(),value:r[1].toUpperCase()}},t.getDtlsParameters=function(n,r){return{role:"auto",fingerprints:t.matchPrefix(n+r,"a=fingerprint:").map(t.parseFingerprint)}},t.writeDtlsParameters=function(n,r){let o="a=setup:"+r+`\r `;return n.fingerprints.forEach(i=>{o+="a=fingerprint:"+i.algorithm+" "+i.value+`\r `}),o},t.parseCryptoLine=function(n){const r=n.substring(9).split(" ");return{tag:parseInt(r[0],10),cryptoSuite:r[1],keyParams:r[2],sessionParams:r.slice(3)}},t.writeCryptoLine=function(n){return"a=crypto:"+n.tag+" "+n.cryptoSuite+" "+(typeof n.keyParams=="object"?t.writeCryptoKeyParams(n.keyParams):n.keyParams)+(n.sessionParams?" "+n.sessionParams.join(" "):"")+`\r `},t.parseCryptoKeyParams=function(n){if(n.indexOf("inline:")!==0)return null;const r=n.substring(7).split("|");return{keyMethod:"inline",keySalt:r[0],lifeTime:r[1],mkiValue:r[2]?r[2].split(":")[0]:void 0,mkiLength:r[2]?r[2].split(":")[1]:void 0}},t.writeCryptoKeyParams=function(n){return n.keyMethod+":"+n.keySalt+(n.lifeTime?"|"+n.lifeTime:"")+(n.mkiValue&&n.mkiLength?"|"+n.mkiValue+":"+n.mkiLength:"")},t.getCryptoParameters=function(n,r){return t.matchPrefix(n+r,"a=crypto:").map(t.parseCryptoLine)},t.getIceParameters=function(n,r){const o=t.matchPrefix(n+r,"a=ice-ufrag:")[0],i=t.matchPrefix(n+r,"a=ice-pwd:")[0];return o&&i?{usernameFragment:o.substring(12),password:i.substring(10)}:null},t.writeIceParameters=function(n){let r="a=ice-ufrag:"+n.usernameFragment+`\r a=ice-pwd:`+n.password+`\r `;return n.iceLite&&(r+=`a=ice-lite\r `),r},t.parseRtpParameters=function(n){const r={codecs:[],headerExtensions:[],fecMechanisms:[],rtcp:[]},i=t.splitLines(n)[0].split(" ");r.profile=i[2];for(let s=3;s{r.headerExtensions.push(t.parseExtmap(s))});const a=t.matchPrefix(n,"a=rtcp-fb:* ").map(t.parseRtcpFb);return r.codecs.forEach(s=>{a.forEach(l=>{s.rtcpFeedback.find(u=>u.type===l.type&&u.parameter===l.parameter)||s.rtcpFeedback.push(l)})}),r},t.writeRtpDescription=function(n,r){let o="";o+="m="+n+" ",o+=r.codecs.length>0?"9":"0",o+=" "+(r.profile||"UDP/TLS/RTP/SAVPF")+" ",o+=r.codecs.map(a=>a.preferredPayloadType!==void 0?a.preferredPayloadType:a.payloadType).join(" ")+`\r `,o+=`c=IN IP4 0.0.0.0\r `,o+=`a=rtcp:9 IN IP4 0.0.0.0\r `,r.codecs.forEach(a=>{o+=t.writeRtpMap(a),o+=t.writeFmtp(a),o+=t.writeRtcpFb(a)});let i=0;return r.codecs.forEach(a=>{a.maxptime>i&&(i=a.maxptime)}),i>0&&(o+="a=maxptime:"+i+`\r `),r.headerExtensions&&r.headerExtensions.forEach(a=>{o+=t.writeExtmap(a)}),o},t.parseRtpEncodingParameters=function(n){const r=[],o=t.parseRtpParameters(n),i=o.fecMechanisms.indexOf("RED")!==-1,a=o.fecMechanisms.indexOf("ULPFEC")!==-1,s=t.matchPrefix(n,"a=ssrc:").map(h=>t.parseSsrcMedia(h)).filter(h=>h.attribute==="cname"),l=s.length>0&&s[0].ssrc;let c;const u=t.matchPrefix(n,"a=ssrc-group:FID").map(h=>h.substring(17).split(" ").map(m=>parseInt(m,10)));u.length>0&&u[0].length>1&&u[0][0]===l&&(c=u[0][1]),o.codecs.forEach(h=>{if(h.name.toUpperCase()==="RTX"&&h.parameters.apt){let p={ssrc:l,codecPayloadType:parseInt(h.parameters.apt,10)};l&&c&&(p.rtx={ssrc:c}),r.push(p),i&&(p=JSON.parse(JSON.stringify(p)),p.fec={ssrc:l,mechanism:a?"red+ulpfec":"red"},r.push(p))}}),r.length===0&&l&&r.push({ssrc:l});let f=t.matchPrefix(n,"b=");return f.length&&(f[0].indexOf("b=TIAS:")===0?f=parseInt(f[0].substring(7),10):f[0].indexOf("b=AS:")===0?f=parseInt(f[0].substring(5),10)*1e3*.95-50*40*8:f=void 0,r.forEach(h=>{h.maxBitrate=f})),r},t.parseRtcpParameters=function(n){const r={},o=t.matchPrefix(n,"a=ssrc:").map(s=>t.parseSsrcMedia(s)).filter(s=>s.attribute==="cname")[0];o&&(r.cname=o.value,r.ssrc=o.ssrc);const i=t.matchPrefix(n,"a=rtcp-rsize");r.reducedSize=i.length>0,r.compound=i.length===0;const a=t.matchPrefix(n,"a=rtcp-mux");return r.mux=a.length>0,r},t.writeRtcpParameters=function(n){let r="";return n.reducedSize&&(r+=`a=rtcp-rsize\r `),n.mux&&(r+=`a=rtcp-mux\r `),n.ssrc!==void 0&&n.cname&&(r+="a=ssrc:"+n.ssrc+" cname:"+n.cname+`\r `),r},t.parseMsid=function(n){let r;const o=t.matchPrefix(n,"a=msid:");if(o.length===1)return r=o[0].substring(7).split(" "),{stream:r[0],track:r[1]};const i=t.matchPrefix(n,"a=ssrc:").map(a=>t.parseSsrcMedia(a)).filter(a=>a.attribute==="msid");if(i.length>0)return r=i[0].value.split(" "),{stream:r[0],track:r[1]}},t.parseSctpDescription=function(n){const r=t.parseMLine(n),o=t.matchPrefix(n,"a=max-message-size:");let i;o.length>0&&(i=parseInt(o[0].substring(19),10)),isNaN(i)&&(i=65536);const a=t.matchPrefix(n,"a=sctp-port:");if(a.length>0)return{port:parseInt(a[0].substring(12),10),protocol:r.fmt,maxMessageSize:i};const s=t.matchPrefix(n,"a=sctpmap:");if(s.length>0){const l=s[0].substring(10).split(" ");return{port:parseInt(l[0],10),protocol:l[1],maxMessageSize:i}}},t.writeSctpDescription=function(n,r){let o=[];return n.protocol!=="DTLS/SCTP"?o=["m="+n.kind+" 9 "+n.protocol+" "+r.protocol+`\r `,`c=IN IP4 0.0.0.0\r `,"a=sctp-port:"+r.port+`\r `]:o=["m="+n.kind+" 9 "+n.protocol+" "+r.port+`\r `,`c=IN IP4 0.0.0.0\r `,"a=sctpmap:"+r.port+" "+r.protocol+` 65535\r `],r.maxMessageSize!==void 0&&o.push("a=max-message-size:"+r.maxMessageSize+`\r `),o.join("")},t.generateSessionId=function(){return Math.random().toString().substr(2,22)},t.writeSessionBoilerplate=function(n,r,o){let i;const a=r!==void 0?r:2;return n?i=n:i=t.generateSessionId(),`v=0\r o=`+(o||"thisisadapterortc")+" "+i+" "+a+` IN IP4 127.0.0.1\r s=-\r t=0 0\r `},t.getDirection=function(n,r){const o=t.splitLines(n);for(let i=0;i(n.candidate&&Object.defineProperty(n,"candidate",{value:new e.RTCIceCandidate(n.candidate),writable:"false"}),n))}function eN(e){!e.RTCIceCandidate||e.RTCIceCandidate&&"relayProtocol"in e.RTCIceCandidate.prototype||Jp(e,"icecandidate",t=>{if(t.candidate){const n=hg.parseCandidate(t.candidate.candidate);n.type==="relay"&&(t.candidate.relayProtocol={0:"tls",1:"tcp",2:"udp"}[n.priority>>24])}return t})}function _x(e,t){if(!e.RTCPeerConnection)return;"sctp"in e.RTCPeerConnection.prototype||Object.defineProperty(e.RTCPeerConnection.prototype,"sctp",{get(){return typeof this._sctp>"u"?null:this._sctp}});const n=function(s){if(!s||!s.sdp)return!1;const l=hg.splitSections(s.sdp);return l.shift(),l.some(c=>{const u=hg.parseMLine(c);return u&&u.kind==="application"&&u.protocol.indexOf("SCTP")!==-1})},r=function(s){const l=s.sdp.match(/mozilla...THIS_IS_SDPARTA-(\d+)/);if(l===null||l.length<2)return-1;const c=parseInt(l[1],10);return c!==c?-1:c},o=function(s){let l=65536;return t.browser==="firefox"&&(t.version<57?s===-1?l=16384:l=2147483637:t.version<60?l=t.version===57?65535:65536:l=2147483637),l},i=function(s,l){let c=65536;t.browser==="firefox"&&t.version===57&&(c=65535);const u=hg.matchPrefix(s.sdp,"a=max-message-size:");return u.length>0?c=parseInt(u[0].substring(19),10):t.browser==="firefox"&&l!==-1&&(c=2147483637),c},a=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){if(this._sctp=null,t.browser==="chrome"&&t.version>=76){const{sdpSemantics:l}=this.getConfiguration();l==="plan-b"&&Object.defineProperty(this,"sctp",{get(){return typeof this._sctp>"u"?null:this._sctp},enumerable:!0,configurable:!0})}if(n(arguments[0])){const l=r(arguments[0]),c=o(l),u=i(arguments[0],l);let f;c===0&&u===0?f=Number.POSITIVE_INFINITY:c===0||u===0?f=Math.max(c,u):f=Math.min(c,u);const h={};Object.defineProperty(h,"maxMessageSize",{get(){return f}}),this._sctp=h}return a.apply(this,arguments)}}function $x(e){if(!(e.RTCPeerConnection&&"createDataChannel"in e.RTCPeerConnection.prototype))return;function t(r,o){const i=r.send;r.send=function(){const s=arguments[0],l=s.length||s.size||s.byteLength;if(r.readyState==="open"&&o.sctp&&l>o.sctp.maxMessageSize)throw new TypeError("Message too large (can send a maximum of "+o.sctp.maxMessageSize+" bytes)");return i.apply(r,arguments)}}const n=e.RTCPeerConnection.prototype.createDataChannel;e.RTCPeerConnection.prototype.createDataChannel=function(){const o=n.apply(this,arguments);return t(o,this),o},Jp(e,"datachannel",r=>(t(r.channel,r.target),r))}function tN(e){if(!e.RTCPeerConnection||"connectionState"in e.RTCPeerConnection.prototype)return;const t=e.RTCPeerConnection.prototype;Object.defineProperty(t,"connectionState",{get(){return{completed:"connected",checking:"connecting"}[this.iceConnectionState]||this.iceConnectionState},enumerable:!0,configurable:!0}),Object.defineProperty(t,"onconnectionstatechange",{get(){return this._onconnectionstatechange||null},set(n){this._onconnectionstatechange&&(this.removeEventListener("connectionstatechange",this._onconnectionstatechange),delete this._onconnectionstatechange),n&&this.addEventListener("connectionstatechange",this._onconnectionstatechange=n)},enumerable:!0,configurable:!0}),["setLocalDescription","setRemoteDescription"].forEach(n=>{const r=t[n];t[n]=function(){return this._connectionstatechangepoly||(this._connectionstatechangepoly=o=>{const i=o.target;if(i._lastConnectionState!==i.connectionState){i._lastConnectionState=i.connectionState;const a=new Event("connectionstatechange",o);i.dispatchEvent(a)}return o},this.addEventListener("iceconnectionstatechange",this._connectionstatechangepoly)),r.apply(this,arguments)}})}function nN(e,t){if(!e.RTCPeerConnection||t.browser==="chrome"&&t.version>=71||t.browser==="safari"&&t.version>=605)return;const n=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(o){if(o&&o.sdp&&o.sdp.indexOf(` a=extmap-allow-mixed`)!==-1){const i=o.sdp.split(` `).filter(a=>a.trim()!=="a=extmap-allow-mixed").join(` `);e.RTCSessionDescription&&o instanceof e.RTCSessionDescription?arguments[0]=new e.RTCSessionDescription({type:o.type,sdp:i}):o.sdp=i}return n.apply(this,arguments)}}function Px(e,t){if(!(e.RTCPeerConnection&&e.RTCPeerConnection.prototype))return;const n=e.RTCPeerConnection.prototype.addIceCandidate;!n||n.length===0||(e.RTCPeerConnection.prototype.addIceCandidate=function(){return arguments[0]?(t.browser==="chrome"&&t.version<78||t.browser==="firefox"&&t.version<68||t.browser==="safari")&&arguments[0]&&arguments[0].candidate===""?Promise.resolve():n.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve())})}function Ox(e,t){if(!(e.RTCPeerConnection&&e.RTCPeerConnection.prototype))return;const n=e.RTCPeerConnection.prototype.setLocalDescription;!n||n.length===0||(e.RTCPeerConnection.prototype.setLocalDescription=function(){let o=arguments[0]||{};if(typeof o!="object"||o.type&&o.sdp)return n.apply(this,arguments);if(o={type:o.type,sdp:o.sdp},!o.type)switch(this.signalingState){case"stable":case"have-local-offer":case"have-remote-pranswer":o.type="offer";break;default:o.type="answer";break}return o.sdp||o.type!=="offer"&&o.type!=="answer"?n.apply(this,[o]):(o.type==="offer"?this.createOffer:this.createAnswer).apply(this).then(a=>n.apply(this,[a]))})}const gMt=Object.freeze(Object.defineProperty({__proto__:null,removeExtmapAllowMixed:nN,shimAddIceCandidateNullOrEmpty:Px,shimConnectionState:tN,shimMaxMessageSize:_x,shimParameterlessSetLocalDescription:Ox,shimRTCIceCandidate:Ex,shimRTCIceCandidateRelayProtocol:eN,shimSendThrowTypeError:$x},Symbol.toStringTag,{value:"Module"}));function vMt({window:e}={},t={shimChrome:!0,shimFirefox:!0,shimSafari:!0}){const n=Fhe,r=hMt(e),o={browserDetails:r,commonShim:gMt,extractVersion:xx,disableLog:dMt,disableWarnings:fMt,sdp:mMt};switch(r.browser){case"chrome":if(!vG||!J8||!t.shimChrome)return n("Chrome shim is not included in this adapter release."),o;if(r.version===null)return n("Chrome shim can not determine version, not shimming."),o;n("adapter.js shimming chrome."),o.browserShim=vG,Px(e,r),Ox(e),Bhe(e,r),zhe(e),J8(e,r),Hhe(e),Khe(e,r),Uhe(e),Whe(e),qhe(e,r),Ex(e),eN(e),tN(e),_x(e,r),$x(e),nN(e,r);break;case"firefox":if(!yG||!Z8||!t.shimFirefox)return n("Firefox shim is not included in this adapter release."),o;n("adapter.js shimming firefox."),o.browserShim=yG,Px(e,r),Ox(e),Ghe(e,r),Z8(e,r),Yhe(e),Jhe(e),Xhe(e),Qhe(e),Zhe(e),epe(e),tpe(e),npe(e),rpe(e),Ex(e),tN(e),_x(e,r),$x(e);break;case"safari":if(!bG||!t.shimSafari)return n("Safari shim is not included in this adapter release."),o;n("adapter.js shimming safari."),o.browserShim=bG,Px(e,r),Ox(e),cpe(e),dpe(e),ape(e),ope(e),ipe(e),upe(e),spe(e),fpe(e),Ex(e),eN(e),_x(e,r),$x(e),nN(e,r);break;default:n("Unsupported browser!");break}return o}const SG=vMt({window:typeof window>"u"?void 0:window});function Zp(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}class mpe{constructor(){this.chunkedMTU=16300,this._dataCount=1,this.chunk=t=>{const n=[],r=t.byteLength,o=Math.ceil(r/this.chunkedMTU);let i=0,a=0;for(;a=this.minChromeVersion:e==="firefox"?t>=this.minFirefoxVersion:e==="safari"?!this.isIOS&&t>=this.minSafariVersion:!1:!1}getBrowser(){return aI.browserDetails.browser}getVersion(){return aI.browserDetails.version||0}isUnifiedPlanSupported(){const e=this.getBrowser(),t=aI.browserDetails.version||0;if(e==="chrome"&&t=this.minFirefoxVersion)return!0;if(!window.RTCRtpTransceiver||!("currentDirection"in RTCRtpTransceiver.prototype))return!1;let n,r=!1;try{n=new RTCPeerConnection,n.addTransceiver("audio"),r=!0}catch{}finally{n&&n.close()}return r}toString(){return`Supports: browser:${this.getBrowser()} version:${this.getVersion()} isIOS:${this.isIOS} isWebRTCSupported:${this.isWebRTCSupported()} isBrowserSupported:${this.isBrowserSupported()} isUnifiedPlanSupported:${this.isUnifiedPlanSupported()}`}constructor(){this.isIOS=typeof navigator<"u"?["iPad","iPhone","iPod"].includes(navigator.platform):!1,this.supportedBrowsers=["firefox","chrome","safari"],this.minFirefoxVersion=59,this.minChromeVersion=72,this.minSafariVersion=605}},bMt=e=>!e||/^[A-Za-z0-9]+(?:[ _-][A-Za-z0-9]+)*$/.test(e),gpe=()=>Math.random().toString(36).slice(2),CG={iceServers:[{urls:"stun:stun.l.google.com:19302"},{urls:["turn:eu-0.turn.peerjs.com:3478","turn:us-0.turn.peerjs.com:3478"],username:"peerjs",credential:"peerjsp"}],sdpSemantics:"unified-plan"};class SMt extends mpe{noop(){}blobToArrayBuffer(t,n){const r=new FileReader;return r.onload=function(o){o.target&&n(o.target.result)},r.readAsArrayBuffer(t),r}binaryStringToArrayBuffer(t){const n=new Uint8Array(t.length);for(let r=0;r=3&&this._print(3,...t)}warn(...t){this._logLevel>=2&&this._print(2,...t)}error(...t){this._logLevel>=1&&this._print(1,...t)}setLogFunction(t){this._print=t}_print(t,...n){const r=[CMt,...n];for(const o in r)r[o]instanceof Error&&(r[o]="("+r[o].name+") "+r[o].message);t>=3?console.log(...r):t>=2?console.warn("WARNING",...r):t>=1&&console.error("ERROR",...r)}constructor(){this._logLevel=0}}var In=new wMt,qF={},xMt=Object.prototype.hasOwnProperty,Ea="~";function f1(){}Object.create&&(f1.prototype=Object.create(null),new f1().__proto__||(Ea=!1));function EMt(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function vpe(e,t,n,r,o){if(typeof n!="function")throw new TypeError("The listener must be a function");var i=new EMt(n,r||e,o),a=Ea?Ea+t:t;return e._events[a]?e._events[a].fn?e._events[a]=[e._events[a],i]:e._events[a].push(i):(e._events[a]=i,e._eventsCount++),e}function Mx(e,t){--e._eventsCount===0?e._events=new f1:delete e._events[t]}function sa(){this._events=new f1,this._eventsCount=0}sa.prototype.eventNames=function(){var t=[],n,r;if(this._eventsCount===0)return t;for(r in n=this._events)xMt.call(n,r)&&t.push(Ea?r.slice(1):r);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(n)):t};sa.prototype.listeners=function(t){var n=Ea?Ea+t:t,r=this._events[n];if(!r)return[];if(r.fn)return[r.fn];for(var o=0,i=r.length,a=new Array(i);oKc);Zp(em,"PeerErrorType",()=>Fo);Zp(em,"BaseConnectionErrorType",()=>h1);Zp(em,"DataConnectionErrorType",()=>p1);Zp(em,"SerializationType",()=>dv);Zp(em,"SocketEventType",()=>zc);Zp(em,"ServerMessageType",()=>Ei);var Kc;(function(e){e.Data="data",e.Media="media"})(Kc||(Kc={}));var Fo;(function(e){e.BrowserIncompatible="browser-incompatible",e.Disconnected="disconnected",e.InvalidID="invalid-id",e.InvalidKey="invalid-key",e.Network="network",e.PeerUnavailable="peer-unavailable",e.SslUnavailable="ssl-unavailable",e.ServerError="server-error",e.SocketError="socket-error",e.SocketClosed="socket-closed",e.UnavailableID="unavailable-id",e.WebRTC="webrtc"})(Fo||(Fo={}));var h1;(function(e){e.NegotiationFailed="negotiation-failed",e.ConnectionClosed="connection-closed"})(h1||(h1={}));var p1;(function(e){e.NotOpenYet="not-open-yet",e.MessageToBig="message-too-big"})(p1||(p1={}));var dv;(function(e){e.Binary="binary",e.BinaryUTF8="binary-utf8",e.JSON="json",e.None="raw"})(dv||(dv={}));var zc;(function(e){e.Message="message",e.Disconnected="disconnected",e.Error="error",e.Close="close"})(zc||(zc={}));var Ei;(function(e){e.Heartbeat="HEARTBEAT",e.Candidate="CANDIDATE",e.Offer="OFFER",e.Answer="ANSWER",e.Open="OPEN",e.Error="ERROR",e.IdTaken="ID-TAKEN",e.InvalidKey="INVALID-KEY",e.Leave="LEAVE",e.Expire="EXPIRE"})(Ei||(Ei={}));var GF={};GF=JSON.parse('{"name":"peerjs","version":"1.5.4","keywords":["peerjs","webrtc","p2p","rtc"],"description":"PeerJS client","homepage":"https://peerjs.com","bugs":{"url":"https://github.com/peers/peerjs/issues"},"repository":{"type":"git","url":"https://github.com/peers/peerjs"},"license":"MIT","contributors":["Michelle Bu ","afrokick ","ericz ","Jairo ","Jonas Gloning <34194370+jonasgloning@users.noreply.github.com>","Jairo Caro-Accino Viciana ","Carlos Caballero ","hc ","Muhammad Asif ","PrashoonB ","Harsh Bardhan Mishra <47351025+HarshCasper@users.noreply.github.com>","akotynski ","lmb ","Jairooo ","Moritz Stückler ","Simon ","Denis Lukov ","Philipp Hancke ","Hans Oksendahl ","Jess ","khankuan ","DUODVK ","XiZhao ","Matthias Lohr ","=frank tree <=frnktrb@googlemail.com>","Andre Eckardt ","Chris Cowan ","Alex Chuev ","alxnull ","Yemel Jardi ","Ben Parnell ","Benny Lichtner ","fresheneesz ","bob.barstead@exaptive.com ","chandika ","emersion ","Christopher Van ","eddieherm ","Eduardo Pinho ","Evandro Zanatta ","Gardner Bickford ","Gian Luca ","PatrickJS ","jonnyf ","Hizkia Felix ","Hristo Oskov ","Isaac Madwed ","Ilya Konanykhin ","jasonbarry ","Jonathan Burke ","Josh Hamit ","Jordan Austin ","Joel Wetzell ","xizhao ","Alberto Torres ","Jonathan Mayol ","Jefferson Felix ","Rolf Erik Lekang ","Kevin Mai-Husan Chia ","Pepijn de Vos ","JooYoung ","Tobias Speicher ","Steve Blaurock ","Kyrylo Shegeda ","Diwank Singh Tomer ","Sören Balko ","Arpit Solanki ","Yuki Ito ","Artur Zayats "],"funding":{"type":"opencollective","url":"https://opencollective.com/peer"},"collective":{"type":"opencollective","url":"https://opencollective.com/peer"},"files":["dist/*"],"sideEffects":["lib/global.ts","lib/supports.ts"],"main":"dist/bundler.cjs","module":"dist/bundler.mjs","browser-minified":"dist/peerjs.min.js","browser-unminified":"dist/peerjs.js","browser-minified-msgpack":"dist/serializer.msgpack.mjs","types":"dist/types.d.ts","engines":{"node":">= 14"},"targets":{"types":{"source":"lib/exports.ts"},"main":{"source":"lib/exports.ts","sourceMap":{"inlineSources":true}},"module":{"source":"lib/exports.ts","includeNodeModules":["eventemitter3"],"sourceMap":{"inlineSources":true}},"browser-minified":{"context":"browser","outputFormat":"global","optimize":true,"engines":{"browsers":"chrome >= 83, edge >= 83, firefox >= 80, safari >= 15"},"source":"lib/global.ts"},"browser-unminified":{"context":"browser","outputFormat":"global","optimize":false,"engines":{"browsers":"chrome >= 83, edge >= 83, firefox >= 80, safari >= 15"},"source":"lib/global.ts"},"browser-minified-msgpack":{"context":"browser","outputFormat":"esmodule","isLibrary":true,"optimize":true,"engines":{"browsers":"chrome >= 83, edge >= 83, firefox >= 102, safari >= 15"},"source":"lib/dataconnection/StreamConnection/MsgPack.ts"}},"scripts":{"contributors":"git-authors-cli --print=false && prettier --write package.json && git add package.json package-lock.json && git commit -m \\"chore(contributors): update and sort contributors list\\"","check":"tsc --noEmit && tsc -p e2e/tsconfig.json --noEmit","watch":"parcel watch","build":"rm -rf dist && parcel build","prepublishOnly":"npm run build","test":"jest","test:watch":"jest --watch","coverage":"jest --coverage --collectCoverageFrom=\\"./lib/**\\"","format":"prettier --write .","format:check":"prettier --check .","semantic-release":"semantic-release","e2e":"wdio run e2e/wdio.local.conf.ts","e2e:bstack":"wdio run e2e/wdio.bstack.conf.ts"},"devDependencies":{"@parcel/config-default":"^2.9.3","@parcel/packager-ts":"^2.9.3","@parcel/transformer-typescript-tsc":"^2.9.3","@parcel/transformer-typescript-types":"^2.9.3","@semantic-release/changelog":"^6.0.1","@semantic-release/git":"^10.0.1","@swc/core":"^1.3.27","@swc/jest":"^0.2.24","@types/jasmine":"^4.3.4","@wdio/browserstack-service":"^8.11.2","@wdio/cli":"^8.11.2","@wdio/globals":"^8.11.2","@wdio/jasmine-framework":"^8.11.2","@wdio/local-runner":"^8.11.2","@wdio/spec-reporter":"^8.11.2","@wdio/types":"^8.10.4","http-server":"^14.1.1","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","mock-socket":"^9.0.0","parcel":"^2.9.3","prettier":"^3.0.0","semantic-release":"^21.0.0","ts-node":"^10.9.1","typescript":"^5.0.0","wdio-geckodriver-service":"^5.0.1"},"dependencies":{"@msgpack/msgpack":"^2.8.0","eventemitter3":"^4.0.7","peerjs-js-binarypack":"^2.1.0","webrtc-adapter":"^9.0.0"},"alias":{"process":false,"buffer":false}}');class _Mt extends qF.EventEmitter{constructor(t,n,r,o,i,a=5e3){super(),this.pingInterval=a,this._disconnected=!0,this._messagesQueue=[];const s=t?"wss://":"ws://";this._baseUrl=s+n+":"+r+o+"peerjs?key="+i}start(t,n){this._id=t;const r=`${this._baseUrl}&id=${t}&token=${n}`;this._socket||!this._disconnected||(this._socket=new WebSocket(r+"&version="+GF.version),this._disconnected=!1,this._socket.onmessage=o=>{let i;try{i=JSON.parse(o.data),In.log("Server message received:",i)}catch{In.log("Invalid server message",o.data);return}this.emit(zc.Message,i)},this._socket.onclose=o=>{this._disconnected||(In.log("Socket closed.",o),this._cleanup(),this._disconnected=!0,this.emit(zc.Disconnected))},this._socket.onopen=()=>{this._disconnected||(this._sendQueuedMessages(),In.log("Socket open"),this._scheduleHeartbeat())})}_scheduleHeartbeat(){this._wsPingTimer=setTimeout(()=>{this._sendHeartbeat()},this.pingInterval)}_sendHeartbeat(){if(!this._wsOpen()){In.log("Cannot send heartbeat, because socket closed");return}const t=JSON.stringify({type:Ei.Heartbeat});this._socket.send(t),this._scheduleHeartbeat()}_wsOpen(){return!!this._socket&&this._socket.readyState===1}_sendQueuedMessages(){const t=[...this._messagesQueue];this._messagesQueue=[];for(const n of t)this.send(n)}send(t){if(this._disconnected)return;if(!this._id){this._messagesQueue.push(t);return}if(!t.type){this.emit(zc.Error,"Invalid message");return}if(!this._wsOpen())return;const n=JSON.stringify(t);this._socket.send(n)}close(){this._disconnected||(this._cleanup(),this._disconnected=!0)}_cleanup(){this._socket&&(this._socket.onopen=this._socket.onmessage=this._socket.onclose=null,this._socket.close(),this._socket=void 0),clearTimeout(this._wsPingTimer)}}class ype{constructor(t){this.connection=t}startConnection(t){const n=this._startPeerConnection();if(this.connection.peerConnection=n,this.connection.type===Kc.Media&&t._stream&&this._addTracksToConnection(t._stream,n),t.originator){const r=this.connection,o={ordered:!!t.reliable},i=n.createDataChannel(r.label,o);r._initializeDataChannel(i),this._makeOffer()}else this.handleSDP("OFFER",t.sdp)}_startPeerConnection(){In.log("Creating RTCPeerConnection.");const t=new RTCPeerConnection(this.connection.provider.options.config);return this._setupListeners(t),t}_setupListeners(t){const n=this.connection.peer,r=this.connection.connectionId,o=this.connection.type,i=this.connection.provider;In.log("Listening for ICE candidates."),t.onicecandidate=a=>{!a.candidate||!a.candidate.candidate||(In.log(`Received ICE candidates for ${n}:`,a.candidate),i.socket.send({type:Ei.Candidate,payload:{candidate:a.candidate,type:o,connectionId:r},dst:n}))},t.oniceconnectionstatechange=()=>{switch(t.iceConnectionState){case"failed":In.log("iceConnectionState is failed, closing connections to "+n),this.connection.emitError(h1.NegotiationFailed,"Negotiation of connection to "+n+" failed."),this.connection.close();break;case"closed":In.log("iceConnectionState is closed, closing connections to "+n),this.connection.emitError(h1.ConnectionClosed,"Connection to "+n+" closed."),this.connection.close();break;case"disconnected":In.log("iceConnectionState changed to disconnected on the connection with "+n);break;case"completed":t.onicecandidate=()=>{};break}this.connection.emit("iceStateChanged",t.iceConnectionState)},In.log("Listening for data channel"),t.ondatachannel=a=>{In.log("Received data channel");const s=a.channel;i.getConnection(n,r)._initializeDataChannel(s)},In.log("Listening for remote stream"),t.ontrack=a=>{In.log("Received remote stream");const s=a.streams[0],l=i.getConnection(n,r);if(l.type===Kc.Media){const c=l;this._addStreamToMediaConnection(s,c)}}}cleanup(){In.log("Cleaning up PeerConnection to "+this.connection.peer);const t=this.connection.peerConnection;if(!t)return;this.connection.peerConnection=null,t.onicecandidate=t.oniceconnectionstatechange=t.ondatachannel=t.ontrack=()=>{};const n=t.signalingState!=="closed";let r=!1;const o=this.connection.dataChannel;o&&(r=!!o.readyState&&o.readyState!=="closed"),(n||r)&&t.close()}async _makeOffer(){const t=this.connection.peerConnection,n=this.connection.provider;try{const r=await t.createOffer(this.connection.options.constraints);In.log("Created offer."),this.connection.options.sdpTransform&&typeof this.connection.options.sdpTransform=="function"&&(r.sdp=this.connection.options.sdpTransform(r.sdp)||r.sdp);try{await t.setLocalDescription(r),In.log("Set localDescription:",r,`for:${this.connection.peer}`);let o={sdp:r,type:this.connection.type,connectionId:this.connection.connectionId,metadata:this.connection.metadata};if(this.connection.type===Kc.Data){const i=this.connection;o={...o,label:i.label,reliable:i.reliable,serialization:i.serialization}}n.socket.send({type:Ei.Offer,payload:o,dst:this.connection.peer})}catch(o){o!="OperationError: Failed to set local offer sdp: Called in wrong state: kHaveRemoteOffer"&&(n.emitError(Fo.WebRTC,o),In.log("Failed to setLocalDescription, ",o))}}catch(r){n.emitError(Fo.WebRTC,r),In.log("Failed to createOffer, ",r)}}async _makeAnswer(){const t=this.connection.peerConnection,n=this.connection.provider;try{const r=await t.createAnswer();In.log("Created answer."),this.connection.options.sdpTransform&&typeof this.connection.options.sdpTransform=="function"&&(r.sdp=this.connection.options.sdpTransform(r.sdp)||r.sdp);try{await t.setLocalDescription(r),In.log("Set localDescription:",r,`for:${this.connection.peer}`),n.socket.send({type:Ei.Answer,payload:{sdp:r,type:this.connection.type,connectionId:this.connection.connectionId},dst:this.connection.peer})}catch(o){n.emitError(Fo.WebRTC,o),In.log("Failed to setLocalDescription, ",o)}}catch(r){n.emitError(Fo.WebRTC,r),In.log("Failed to create answer, ",r)}}async handleSDP(t,n){n=new RTCSessionDescription(n);const r=this.connection.peerConnection,o=this.connection.provider;In.log("Setting remote description",n);const i=this;try{await r.setRemoteDescription(n),In.log(`Set remoteDescription:${t} for:${this.connection.peer}`),t==="OFFER"&&await i._makeAnswer()}catch(a){o.emitError(Fo.WebRTC,a),In.log("Failed to setRemoteDescription, ",a)}}async handleCandidate(t){In.log("handleCandidate:",t);try{await this.connection.peerConnection.addIceCandidate(t),In.log(`Added ICE candidate for:${this.connection.peer}`)}catch(n){this.connection.provider.emitError(Fo.WebRTC,n),In.log("Failed to handleCandidate, ",n)}}_addTracksToConnection(t,n){if(In.log(`add tracks from stream ${t.id} to peer connection`),!n.addTrack)return In.error("Your browser does't support RTCPeerConnection#addTrack. Ignored.");t.getTracks().forEach(r=>{n.addTrack(r,t)})}_addStreamToMediaConnection(t,n){In.log(`add stream ${t.id} to media connection ${n.connectionId}`),n.addStream(t)}}class bpe extends qF.EventEmitter{emitError(t,n){In.error("Error:",n),this.emit("error",new $Mt(`${t}`,n))}}class $Mt extends Error{constructor(t,n){typeof n=="string"?super(n):(super(),Object.assign(this,n)),this.type=t}}class Spe extends bpe{get open(){return this._open}constructor(t,n,r){super(),this.peer=t,this.provider=n,this.options=r,this._open=!1,this.metadata=r.metadata}}var fN;const eb=class eb extends Spe{get type(){return Kc.Media}get localStream(){return this._localStream}get remoteStream(){return this._remoteStream}constructor(t,n,r){super(t,n,r),this._localStream=this.options._stream,this.connectionId=this.options.connectionId||eb.ID_PREFIX+Da.randomToken(),this._negotiator=new ype(this),this._localStream&&this._negotiator.startConnection({_stream:this._localStream,originator:!0})}_initializeDataChannel(t){this.dataChannel=t,this.dataChannel.onopen=()=>{In.log(`DC#${this.connectionId} dc connection success`),this.emit("willCloseOnRemote")},this.dataChannel.onclose=()=>{In.log(`DC#${this.connectionId} dc closed for:`,this.peer),this.close()}}addStream(t){In.log("Receiving stream",t),this._remoteStream=t,super.emit("stream",t)}handleMessage(t){const n=t.type,r=t.payload;switch(t.type){case Ei.Answer:this._negotiator.handleSDP(n,r.sdp),this._open=!0;break;case Ei.Candidate:this._negotiator.handleCandidate(r.candidate);break;default:In.warn(`Unrecognized message type:${n} from peer:${this.peer}`);break}}answer(t,n={}){if(this._localStream){In.warn("Local stream already exists on this MediaConnection. Are you answering a call twice?");return}this._localStream=t,n&&n.sdpTransform&&(this.options.sdpTransform=n.sdpTransform),this._negotiator.startConnection({...this.options._payload,_stream:t});const r=this.provider._getMessages(this.connectionId);for(const o of r)this.handleMessage(o);this._open=!0}close(){this._negotiator&&(this._negotiator.cleanup(),this._negotiator=null),this._localStream=null,this._remoteStream=null,this.provider&&(this.provider._removeConnection(this),this.provider=null),this.options&&this.options._stream&&(this.options._stream=null),this.open&&(this._open=!1,super.emit("close"))}};fN=new WeakMap,Tn(eb,fN,eb.ID_PREFIX="mc_");let LE=eb;class PMt{constructor(t){this._options=t}_buildRequest(t){const n=this._options.secure?"https":"http",{host:r,port:o,path:i,key:a}=this._options,s=new URL(`${n}://${r}:${o}${i}${a}/${t}`);return s.searchParams.set("ts",`${Date.now()}${Math.random()}`),s.searchParams.set("version",GF.version),fetch(s.href,{referrerPolicy:this._options.referrerPolicy})}async retrieveId(){try{const t=await this._buildRequest("id");if(t.status!==200)throw new Error(`Error. Status:${t.status}`);return t.text()}catch(t){In.error("Error retrieving ID",t);let n="";throw this._options.path==="/"&&this._options.host!==Da.CLOUD_HOST&&(n=" If you passed in a `path` to your self-hosted PeerServer, you'll also need to pass in that same path when creating a new Peer."),new Error("Could not get an ID from the server."+n)}}async listAllPeers(){try{const t=await this._buildRequest("peers");if(t.status!==200){if(t.status===401){let n="";throw this._options.host===Da.CLOUD_HOST?n="It looks like you're using the cloud server. You can email team@peerjs.com to enable peer listing for your API key.":n="You need to enable `allow_discovery` on your self-hosted PeerServer to use this feature.",new Error("It doesn't look like you have permission to list peers IDs. "+n)}throw new Error(`Error. Status:${t.status}`)}return t.json()}catch(t){throw In.error("Error retrieving list peers",t),new Error("Could not get list peers from the server."+t)}}}var hN,pN;const bh=class bh extends Spe{get type(){return Kc.Data}constructor(t,n,r){super(t,n,r),this.connectionId=this.options.connectionId||bh.ID_PREFIX+gpe(),this.label=this.options.label||this.connectionId,this.reliable=!!this.options.reliable,this._negotiator=new ype(this),this._negotiator.startConnection(this.options._payload||{originator:!0,reliable:this.reliable})}_initializeDataChannel(t){this.dataChannel=t,this.dataChannel.onopen=()=>{In.log(`DC#${this.connectionId} dc connection success`),this._open=!0,this.emit("open")},this.dataChannel.onmessage=n=>{In.log(`DC#${this.connectionId} dc onmessage:`,n.data)},this.dataChannel.onclose=()=>{In.log(`DC#${this.connectionId} dc closed for:`,this.peer),this.close()}}close(t){if(t!=null&&t.flush){this.send({__peerData:{type:"close"}});return}this._negotiator&&(this._negotiator.cleanup(),this._negotiator=null),this.provider&&(this.provider._removeConnection(this),this.provider=null),this.dataChannel&&(this.dataChannel.onopen=null,this.dataChannel.onmessage=null,this.dataChannel.onclose=null,this.dataChannel=null),this.open&&(this._open=!1,super.emit("close"))}send(t,n=!1){if(!this.open){this.emitError(p1.NotOpenYet,"Connection is not open. You should listen for the `open` event before sending messages.");return}return this._send(t,n)}async handleMessage(t){const n=t.payload;switch(t.type){case Ei.Answer:await this._negotiator.handleSDP(t.type,n.sdp);break;case Ei.Candidate:await this._negotiator.handleCandidate(n.candidate);break;default:In.warn("Unrecognized message type:",t.type,"from peer:",this.peer);break}}};hN=new WeakMap,pN=new WeakMap,Tn(bh,hN,bh.ID_PREFIX="dc_"),Tn(bh,pN,bh.MAX_BUFFERED_AMOUNT=8388608);let BE=bh;class YF extends BE{get bufferSize(){return this._bufferSize}_initializeDataChannel(t){super._initializeDataChannel(t),this.dataChannel.binaryType="arraybuffer",this.dataChannel.addEventListener("message",n=>this._handleDataMessage(n))}_bufferedSend(t){(this._buffering||!this._trySend(t))&&(this._buffer.push(t),this._bufferSize=this._buffer.length)}_trySend(t){if(!this.open)return!1;if(this.dataChannel.bufferedAmount>BE.MAX_BUFFERED_AMOUNT)return this._buffering=!0,setTimeout(()=>{this._buffering=!1,this._tryBuffer()},50),!1;try{this.dataChannel.send(t)}catch(n){return In.error(`DC#:${this.connectionId} Error when sending:`,n),this._buffering=!0,this.close(),!1}return!0}_tryBuffer(){if(!this.open||this._buffer.length===0)return;const t=this._buffer[0];this._trySend(t)&&(this._buffer.shift(),this._bufferSize=this._buffer.length,this._tryBuffer())}close(t){if(t!=null&&t.flush){this.send({__peerData:{type:"close"}});return}this._buffer=[],this._bufferSize=0,super.close()}constructor(...t){super(...t),this._buffer=[],this._bufferSize=0,this._buffering=!1}}class sI extends YF{close(t){super.close(t),this._chunkedData={}}constructor(t,n,r){super(t,n,r),this.chunker=new mpe,this.serialization=dv.Binary,this._chunkedData={}}_handleDataMessage({data:t}){const n=Nhe(t),r=n.__peerData;if(r){if(r.type==="close"){this.close();return}this._handleChunk(n);return}this.emit("data",n)}_handleChunk(t){const n=t.__peerData,r=this._chunkedData[n]||{data:[],count:0,total:t.total};if(r.data[t.n]=new Uint8Array(t.data),r.count++,this._chunkedData[n]=r,r.total===r.count){delete this._chunkedData[n];const o=yMt(r.data);this._handleDataMessage({data:o})}}_send(t,n){const r=Ahe(t);if(r instanceof Promise)return this._send_blob(r);if(!n&&r.byteLength>this.chunker.chunkedMTU){this._sendChunks(r);return}this._bufferedSend(r)}async _send_blob(t){const n=await t;if(n.byteLength>this.chunker.chunkedMTU){this._sendChunks(n);return}this._bufferedSend(n)}_sendChunks(t){const n=this.chunker.chunk(t);In.log(`DC#${this.connectionId} Try to send ${n.length} chunks...`);for(const r of n)this.send(r,!0)}}class OMt extends YF{_handleDataMessage({data:t}){super.emit("data",t)}_send(t,n){this._bufferedSend(t)}constructor(...t){super(...t),this.serialization=dv.None}}class MMt extends YF{_handleDataMessage({data:t}){const n=this.parse(this.decoder.decode(t)),r=n.__peerData;if(r&&r.type==="close"){this.close();return}this.emit("data",n)}_send(t,n){const r=this.encoder.encode(this.stringify(t));if(r.byteLength>=Da.chunkedMTU){this.emitError(p1.MessageToBig,"Message too big for JSON channel");return}this._bufferedSend(r)}constructor(...t){super(...t),this.serialization=dv.JSON,this.encoder=new TextEncoder,this.decoder=new TextDecoder,this.stringify=JSON.stringify,this.parse=JSON.parse}}var mN;const tb=class tb extends bpe{get id(){return this._id}get options(){return this._options}get open(){return this._open}get socket(){return this._socket}get connections(){const t=Object.create(null);for(const[n,r]of this._connections)t[n]=r;return t}get destroyed(){return this._destroyed}get disconnected(){return this._disconnected}constructor(t,n){super(),this._serializers={raw:OMt,json:MMt,binary:sI,"binary-utf8":sI,default:sI},this._id=null,this._lastServerId=null,this._destroyed=!1,this._disconnected=!1,this._open=!1,this._connections=new Map,this._lostMessages=new Map;let r;if(t&&t.constructor==Object?n=t:t&&(r=t.toString()),n={debug:0,host:Da.CLOUD_HOST,port:Da.CLOUD_PORT,path:"/",key:tb.DEFAULT_KEY,token:Da.randomToken(),config:Da.defaultConfig,referrerPolicy:"strict-origin-when-cross-origin",serializers:{},...n},this._options=n,this._serializers={...this._serializers,...this.options.serializers},this._options.host==="/"&&(this._options.host=window.location.hostname),this._options.path&&(this._options.path[0]!=="/"&&(this._options.path="/"+this._options.path),this._options.path[this._options.path.length-1]!=="/"&&(this._options.path+="/")),this._options.secure===void 0&&this._options.host!==Da.CLOUD_HOST?this._options.secure=Da.isSecure():this._options.host==Da.CLOUD_HOST&&(this._options.secure=!0),this._options.logFunction&&In.setLogFunction(this._options.logFunction),In.logLevel=this._options.debug||0,this._api=new PMt(n),this._socket=this._createServerConnection(),!Da.supports.audioVideo&&!Da.supports.data){this._delayedAbort(Fo.BrowserIncompatible,"The current browser does not support WebRTC");return}if(r&&!Da.validateId(r)){this._delayedAbort(Fo.InvalidID,`ID "${r}" is invalid`);return}r?this._initialize(r):this._api.retrieveId().then(o=>this._initialize(o)).catch(o=>this._abort(Fo.ServerError,o))}_createServerConnection(){const t=new _Mt(this._options.secure,this._options.host,this._options.port,this._options.path,this._options.key,this._options.pingInterval);return t.on(zc.Message,n=>{this._handleMessage(n)}),t.on(zc.Error,n=>{this._abort(Fo.SocketError,n)}),t.on(zc.Disconnected,()=>{this.disconnected||(this.emitError(Fo.Network,"Lost connection to server."),this.disconnect())}),t.on(zc.Close,()=>{this.disconnected||this._abort(Fo.SocketClosed,"Underlying socket is already closed.")}),t}_initialize(t){this._id=t,this.socket.start(t,this._options.token)}_handleMessage(t){const n=t.type,r=t.payload,o=t.src;switch(n){case Ei.Open:this._lastServerId=this.id,this._open=!0,this.emit("open",this.id);break;case Ei.Error:this._abort(Fo.ServerError,r.msg);break;case Ei.IdTaken:this._abort(Fo.UnavailableID,`ID "${this.id}" is taken`);break;case Ei.InvalidKey:this._abort(Fo.InvalidKey,`API KEY "${this._options.key}" is invalid`);break;case Ei.Leave:In.log(`Received leave message from ${o}`),this._cleanupPeer(o),this._connections.delete(o);break;case Ei.Expire:this.emitError(Fo.PeerUnavailable,`Could not connect to peer ${o}`);break;case Ei.Offer:{const i=r.connectionId;let a=this.getConnection(o,i);if(a&&(a.close(),In.warn(`Offer received for existing Connection ID:${i}`)),r.type===Kc.Media){const l=new LE(o,this,{connectionId:i,_payload:r,metadata:r.metadata});a=l,this._addConnection(o,a),this.emit("call",l)}else if(r.type===Kc.Data){const l=new this._serializers[r.serialization](o,this,{connectionId:i,_payload:r,metadata:r.metadata,label:r.label,serialization:r.serialization,reliable:r.reliable});a=l,this._addConnection(o,a),this.emit("connection",l)}else{In.warn(`Received malformed connection type:${r.type}`);return}const s=this._getMessages(i);for(const l of s)a.handleMessage(l);break}default:{if(!r){In.warn(`You received a malformed message from ${o} of type ${n}`);return}const i=r.connectionId,a=this.getConnection(o,i);a&&a.peerConnection?a.handleMessage(t):i?this._storeMessage(i,t):In.warn("You received an unrecognized message:",t);break}}}_storeMessage(t,n){this._lostMessages.has(t)||this._lostMessages.set(t,[]),this._lostMessages.get(t).push(n)}_getMessages(t){const n=this._lostMessages.get(t);return n?(this._lostMessages.delete(t),n):[]}connect(t,n={}){if(n={serialization:"default",...n},this.disconnected){In.warn("You cannot connect to a new Peer because you called .disconnect() on this Peer and ended your connection with the server. You can create a new Peer to reconnect, or call reconnect on this peer if you believe its ID to still be available."),this.emitError(Fo.Disconnected,"Cannot connect to new Peer after disconnecting from server.");return}const r=new this._serializers[n.serialization](t,this,n);return this._addConnection(t,r),r}call(t,n,r={}){if(this.disconnected){In.warn("You cannot connect to a new Peer because you called .disconnect() on this Peer and ended your connection with the server. You can create a new Peer to reconnect."),this.emitError(Fo.Disconnected,"Cannot connect to new Peer after disconnecting from server.");return}if(!n){In.error("To call a peer, you must provide a stream from your browser's `getUserMedia`.");return}const o=new LE(t,this,{...r,_stream:n});return this._addConnection(t,o),o}_addConnection(t,n){In.log(`add connection ${n.type}:${n.connectionId} to peerId:${t}`),this._connections.has(t)||this._connections.set(t,[]),this._connections.get(t).push(n)}_removeConnection(t){const n=this._connections.get(t.peer);if(n){const r=n.indexOf(t);r!==-1&&n.splice(r,1)}this._lostMessages.delete(t.connectionId)}getConnection(t,n){const r=this._connections.get(t);if(!r)return null;for(const o of r)if(o.connectionId===n)return o;return null}_delayedAbort(t,n){setTimeout(()=>{this._abort(t,n)},0)}_abort(t,n){In.error("Aborting!"),this.emitError(t,n),this._lastServerId?this.disconnect():this.destroy()}destroy(){this.destroyed||(In.log(`Destroy peer with ID:${this.id}`),this.disconnect(),this._cleanup(),this._destroyed=!0,this.emit("close"))}_cleanup(){for(const t of this._connections.keys())this._cleanupPeer(t),this._connections.delete(t);this.socket.removeAllListeners()}_cleanupPeer(t){const n=this._connections.get(t);if(n)for(const r of n)r.close()}disconnect(){if(this.disconnected)return;const t=this.id;In.log(`Disconnect peer with ID:${t}`),this._disconnected=!0,this._open=!1,this.socket.close(),this._lastServerId=t,this._id=null,this.emit("disconnected",t)}reconnect(){if(this.disconnected&&!this.destroyed)In.log(`Attempting reconnection to server with ID ${this._lastServerId}`),this._disconnected=!1,this._initialize(this._lastServerId);else{if(this.destroyed)throw new Error("This peer cannot reconnect to the server. It has already been destroyed.");if(!this.disconnected&&!this.open)In.error("In a hurry? We're still trying to make the initial connection!");else throw new Error(`Peer ${this.id} cannot reconnect because it is not disconnected from the server!`)}}listAllPeers(t=n=>{}){this._api.listAllPeers().then(n=>t(n)).catch(n=>this._abort(Fo.ServerError,n))}};mN=new WeakMap,Tn(tb,mN,tb.DEFAULT_KEY="peerjs");let rN=tb,TMt="127.0.0.1",RMt=9e3,IMt="/";function kMt(){console.log("usePeer");const e=vi(a=>a.userInfo);let t=null,n=null;const r=a=>{n=t.connect(a),n.on("open",()=>{console.log("Connected to peer with ID:",a),n.send("hi!")})},o=a=>{n?(console.log("sending message:",a),n.send(a)):console.error("no connection to send message")},i=a=>{navigator.mediaDevices.getUserMedia({audio:!0,video:!0}).then(s=>{t.call(a,s).on("stream",c=>{})}).catch(s=>{console.error("Failed to get local stream",s)})};return d.useEffect(()=>{const a=new rN(e.uid,{host:TMt,port:RMt,path:IMt});console.log("Starting self peer with ID:",e.uid),a.on("open",function(){console.log("self peer opened!")}),a.on("connection",s=>{s.on("data",l=>{console.log("connection data:",l)}),s.on("open",()=>{s.send("connection data open!")})}),a.on("call",s=>{navigator.mediaDevices.getUserMedia({audio:!0,video:!0}).then(l=>{s.answer(l),s.on("stream",c=>{})}).catch(l=>{console.error("Failed to get local stream",l)})})},[e]),{peer:t,connectOtherPeer:r,sendMessage:o,callOtherPeer:i}}const NMt=()=>{const e=eo(),[t,n]=d.useState("/chat"),r=Ya(),{isLoggedIn:o,mode:i}=d.useContext(ia),{footerStyle:a}=zS(),[s,l]=d.useState(!1),c=Ll(p=>p.threads);d.useEffect(()=>{const p=c.some(m=>m.unreadCount>0);l(p)},[c]);const u=[{path:"/anonymous/home",name:e.formatMessage({id:"menu.dashboard.chat"}),icon:N.jsx(vy,{}),component:N.jsx(X8,{})}],[f,h]=d.useState(u);return xhe(),whe(),aMt(),kMt(),yF(),d.useEffect(()=>{h(u)},[i]),d.useEffect(()=>(o&&r("/chat"),()=>{console.log("un - useEffect")}),[o]),N.jsxs(Qde,{collapsed:!0,collapsedButtonRender:!1,layout:"side",style:{height:"100vh"},route:{routes:f},location:{pathname:t},menu:{type:"group",collapsedShowTitle:!0},avatarProps:null,actionsRender:p=>p.isMobile?[]:[N.jsx(Use,{onClick:Ble},"QuestionCircleFilled")],menuHeaderRender:()=>N.jsx(Che,{}),menuFooterRender:p=>{p!=null&&p.collapsed},onMenuHeaderClick:p=>{console.log("onMenuHeaderClick",p)},menuItemRender:(p,m)=>N.jsx(N.Fragment,{children:N.jsxs("a",{onClick:()=>{n(p.path),r(p.path)},children:[s&&N.jsxs(N.Fragment,{children:[p.path==="/anonymous/home"&&N.jsx(Xi,{size:"small",dot:s,offset:[-5,5],children:m}),p.path!=="/anonymous/home"&&m]}),!s&&N.jsx(N.Fragment,{children:m})]})}),children:[N.jsx(HO,{children:N.jsx(PP,{})}),N.jsx(UO,{style:a,children:N.jsx(She,{})}),N.jsx("audio",{id:"audioPlay",src:"soundUrl",hidden:!0})]})},{Sider:AMt,Content:DMt}=ei,jMt=()=>{const{leftSiderStyle:e,leftSiderWidth:t,headerStyle:n,contentStyle:r}=zS();return N.jsx(N.Fragment,{children:N.jsxs(ei,{children:[N.jsx(AMt,{style:e,width:t}),N.jsxs(ei,{children:[N.jsx(iE,{style:n,children:"setting"}),N.jsx(DMt,{style:r,children:"setting"})]})]})})},Cpe=d.createContext(null);function FMt(e){const t=d.useContext(Cpe);d.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of ");return t(e)},[e,t])}function LMt(){const[e]=d.useState(()=>new Set),t=d.useCallback(r=>(e.add(r),()=>e.delete(r)),[e]);return[d.useCallback(r=>{let{type:o,event:i}=r;e.forEach(a=>{var s;return(s=a[o])==null?void 0:s.call(a,i)})},[e]),t]}const BMt={draggable:` To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item. Press space again to drop the item in its new position, or press escape to cancel. `},zMt={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function HMt(e){let{announcements:t=zMt,container:n,hiddenTextDescribedById:r,screenReaderInstructions:o=BMt}=e;const{announce:i,announcement:a}=d2t(),s=iO("DndLiveRegion"),[l,c]=d.useState(!1);if(d.useEffect(()=>{c(!0)},[]),FMt(d.useMemo(()=>({onDragStart(f){let{active:h}=f;i(t.onDragStart({active:h}))},onDragMove(f){let{active:h,over:p}=f;t.onDragMove&&i(t.onDragMove({active:h,over:p}))},onDragOver(f){let{active:h,over:p}=f;i(t.onDragOver({active:h,over:p}))},onDragEnd(f){let{active:h,over:p}=f;i(t.onDragEnd({active:h,over:p}))},onDragCancel(f){let{active:h,over:p}=f;i(t.onDragCancel({active:h,over:p}))}}),[i,t])),!l)return null;const u=de.createElement(de.Fragment,null,de.createElement(c2t,{id:r,value:o.draggable}),de.createElement(u2t,{id:s,announcement:a}));return n?_i.createPortal(u,n):u}var fi;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(fi||(fi={}));function zE(){}const cc=Object.freeze({x:0,y:0});function UMt(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function WMt(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function VMt(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function xG(e){let{left:t,top:n,height:r,width:o}=e;return[{x:t,y:n},{x:t+o,y:n},{x:t,y:n+r},{x:t+o,y:n+r}]}function KMt(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}const qMt=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=xG(t),i=[];for(const a of r){const{id:s}=a,l=n.get(s);if(l){const c=xG(l),u=o.reduce((h,p,m)=>h+UMt(c[m],p),0),f=Number((u/4).toFixed(4));i.push({id:s,data:{droppableContainer:a,value:f}})}}return i.sort(WMt)};function GMt(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),a=o-r,s=i-n;if(r{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=[];for(const i of r){const{id:a}=i,s=n.get(a);if(s){const l=GMt(s,t);l>0&&o.push({id:a,data:{droppableContainer:i,value:l}})}}return o.sort(VMt)};function XMt(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function wpe(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:cc}function QMt(e){return function(n){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i({...a,top:a.top+e*s.y,bottom:a.bottom+e*s.y,left:a.left+e*s.x,right:a.right+e*s.x}),{...n})}}const JMt=QMt(1);function ZMt(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function eTt(e,t,n){const r=ZMt(t);if(!r)return e;const{scaleX:o,scaleY:i,x:a,y:s}=r,l=e.left-a-(1-o)*parseFloat(n),c=e.top-s-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),u=o?e.width/o:e.width,f=i?e.height/i:e.height;return{width:u,height:f,top:c,right:l+u,bottom:c+f,left:l}}const tTt={ignoreTransform:!1};function h0(e,t){t===void 0&&(t=tTt);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:c,transformOrigin:u}=Qa(e).getComputedStyle(e);c&&(n=eTt(n,c,u))}const{top:r,left:o,width:i,height:a,bottom:s,right:l}=n;return{top:r,left:o,width:i,height:a,bottom:s,right:l}}function EG(e){return h0(e,{ignoreTransform:!0})}function nTt(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function rTt(e,t){return t===void 0&&(t=Qa(e).getComputedStyle(e)),t.position==="fixed"}function oTt(e,t){t===void 0&&(t=Qa(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(o=>{const i=t[o];return typeof i=="string"?n.test(i):!1})}function XF(e,t){const n=[];function r(o){if(t!=null&&n.length>=t||!o)return n;if(sF(o)&&o.scrollingElement!=null&&!n.includes(o.scrollingElement))return n.push(o.scrollingElement),n;if(!RS(o)||Jde(o)||n.includes(o))return n;const i=Qa(e).getComputedStyle(o);return o!==e&&oTt(o,i)&&n.push(o),rTt(o,i)?n:r(o.parentNode)}return e?r(e):n}function xpe(e){const[t]=XF(e,1);return t??null}function lI(e){return!oO||!e?null:s0(e)?e:aF(e)?sF(e)||e===l0(e).scrollingElement?window:RS(e)?e:null:null}function Epe(e){return s0(e)?e.scrollX:e.scrollLeft}function _pe(e){return s0(e)?e.scrollY:e.scrollTop}function oN(e){return{x:Epe(e),y:_pe(e)}}var xi;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(xi||(xi={}));function $pe(e){return!oO||!e?!1:e===document.scrollingElement}function Ppe(e){const t={x:0,y:0},n=$pe(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},o=e.scrollTop<=t.y,i=e.scrollLeft<=t.x,a=e.scrollTop>=r.y,s=e.scrollLeft>=r.x;return{isTop:o,isLeft:i,isBottom:a,isRight:s,maxScroll:r,minScroll:t}}const iTt={x:.2,y:.2};function aTt(e,t,n,r,o){let{top:i,left:a,right:s,bottom:l}=n;r===void 0&&(r=10),o===void 0&&(o=iTt);const{isTop:c,isBottom:u,isLeft:f,isRight:h}=Ppe(e),p={x:0,y:0},m={x:0,y:0},g={height:t.height*o.y,width:t.width*o.x};return!c&&i<=t.top+g.height?(p.y=xi.Backward,m.y=r*Math.abs((t.top+g.height-i)/g.height)):!u&&l>=t.bottom-g.height&&(p.y=xi.Forward,m.y=r*Math.abs((t.bottom-g.height-l)/g.height)),!h&&s>=t.right-g.width?(p.x=xi.Forward,m.x=r*Math.abs((t.right-g.width-s)/g.width)):!f&&a<=t.left+g.width&&(p.x=xi.Backward,m.x=r*Math.abs((t.left+g.width-a)/g.width)),{direction:p,speed:m}}function sTt(e){if(e===document.scrollingElement){const{innerWidth:i,innerHeight:a}=window;return{top:0,left:0,right:i,bottom:a,width:i,height:a}}const{top:t,left:n,right:r,bottom:o}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:o,width:e.clientWidth,height:e.clientHeight}}function Ope(e){return e.reduce((t,n)=>fg(t,oN(n)),cc)}function lTt(e){return e.reduce((t,n)=>t+Epe(n),0)}function cTt(e){return e.reduce((t,n)=>t+_pe(n),0)}function uTt(e,t){if(t===void 0&&(t=h0),!e)return;const{top:n,left:r,bottom:o,right:i}=t(e);xpe(e)&&(o<=0||i<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const dTt=[["x",["left","right"],lTt],["y",["top","bottom"],cTt]];class QF{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=XF(n),o=Ope(r);this.rect={...t},this.width=t.width,this.height=t.height;for(const[i,a,s]of dTt)for(const l of a)Object.defineProperty(this,l,{get:()=>{const c=s(r),u=o[i]-c;return this.rect[l]+u},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Qy{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...n)})},this.target=t}add(t,n,r){var o;(o=this.target)==null||o.addEventListener(t,n,r),this.listeners.push([t,n,r])}}function fTt(e){const{EventTarget:t}=Qa(e);return e instanceof t?e:l0(e)}function cI(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t?r>t.y:!1}var qs;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(qs||(qs={}));function _G(e){e.preventDefault()}function hTt(e){e.stopPropagation()}var Dr;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"})(Dr||(Dr={}));const Mpe={start:[Dr.Space,Dr.Enter],cancel:[Dr.Esc],end:[Dr.Space,Dr.Enter]},pTt=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case Dr.Right:return{...n,x:n.x+25};case Dr.Left:return{...n,x:n.x-25};case Dr.Down:return{...n,y:n.y+25};case Dr.Up:return{...n,y:n.y-25}}};class Tpe{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new Qy(l0(n)),this.windowListeners=new Qy(Qa(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(qs.Resize,this.handleCancel),this.windowListeners.add(qs.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(qs.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&uTt(r),n(cc)}handleKeyDown(t){if(cF(t)){const{active:n,context:r,options:o}=this.props,{keyboardCodes:i=Mpe,coordinateGetter:a=pTt,scrollBehavior:s="smooth"}=o,{code:l}=t;if(i.end.includes(l)){this.handleEnd(t);return}if(i.cancel.includes(l)){this.handleCancel(t);return}const{collisionRect:c}=r.current,u=c?{x:c.left,y:c.top}:cc;this.referenceCoordinates||(this.referenceCoordinates=u);const f=a(t,{active:n,context:r.current,currentCoordinates:u});if(f){const h=FE(f,u),p={x:0,y:0},{scrollableAncestors:m}=r.current;for(const g of m){const v=t.code,{isTop:b,isRight:y,isLeft:S,isBottom:w,maxScroll:E,minScroll:C}=Ppe(g),x=sTt(g),_={x:Math.min(v===Dr.Right?x.right-x.width/2:x.right,Math.max(v===Dr.Right?x.left:x.left+x.width/2,f.x)),y:Math.min(v===Dr.Down?x.bottom-x.height/2:x.bottom,Math.max(v===Dr.Down?x.top:x.top+x.height/2,f.y))},P=v===Dr.Right&&!y||v===Dr.Left&&!S,O=v===Dr.Down&&!w||v===Dr.Up&&!b;if(P&&_.x!==f.x){const I=g.scrollLeft+h.x,M=v===Dr.Right&&I<=E.x||v===Dr.Left&&I>=C.x;if(M&&!h.y){g.scrollTo({left:I,behavior:s});return}M?p.x=g.scrollLeft-I:p.x=v===Dr.Right?g.scrollLeft-E.x:g.scrollLeft-C.x,p.x&&g.scrollBy({left:-p.x,behavior:s});break}else if(O&&_.y!==f.y){const I=g.scrollTop+h.y,M=v===Dr.Down&&I<=E.y||v===Dr.Up&&I>=C.y;if(M&&!h.x){g.scrollTo({top:I,behavior:s});return}M?p.y=g.scrollTop-I:p.y=v===Dr.Down?g.scrollTop-E.y:g.scrollTop-C.y,p.y&&g.scrollBy({top:-p.y,behavior:s});break}}this.handleMove(t,fg(FE(f,this.referenceCoordinates),p))}}}handleMove(t,n){const{onMove:r}=this.props;t.preventDefault(),r(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}Tpe.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=Mpe,onActivation:o}=t,{active:i}=n;const{code:a}=e.nativeEvent;if(r.start.includes(a)){const s=i.activatorNode.current;return s&&e.target!==s?!1:(e.preventDefault(),o==null||o({event:e.nativeEvent}),!0)}return!1}}];function $G(e){return!!(e&&"distance"in e)}function PG(e){return!!(e&&"delay"in e)}class JF{constructor(t,n,r){var o;r===void 0&&(r=fTt(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:i}=t,{target:a}=i;this.props=t,this.events=n,this.document=l0(a),this.documentListeners=new Qy(this.document),this.listeners=new Qy(r),this.windowListeners=new Qy(Qa(a)),this.initialCoordinates=(o=P8(i))!=null?o:cc,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:r}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(qs.Resize,this.handleCancel),this.windowListeners.add(qs.DragStart,_G),this.windowListeners.add(qs.VisibilityChange,this.handleCancel),this.windowListeners.add(qs.ContextMenu,_G),this.documentListeners.add(qs.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(PG(n)){this.timeoutId=setTimeout(this.handleStart,n.delay);return}if($G(n))return}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(qs.Click,hTt,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(qs.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:r,initialCoordinates:o,props:i}=this,{onMove:a,options:{activationConstraint:s}}=i;if(!o)return;const l=(n=P8(t))!=null?n:cc,c=FE(o,l);if(!r&&s){if($G(s)){if(s.tolerance!=null&&cI(c,s.tolerance))return this.handleCancel();if(cI(c,s.distance))return this.handleStart()}return PG(s)&&cI(c,s.tolerance)?this.handleCancel():void 0}t.cancelable&&t.preventDefault(),a(l)}handleEnd(){const{onEnd:t}=this.props;this.detach(),t()}handleCancel(){const{onCancel:t}=this.props;this.detach(),t()}handleKeydown(t){t.code===Dr.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const mTt={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class Rpe extends JF{constructor(t){const{event:n}=t,r=l0(n.target);super(t,mTt,r)}}Rpe.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r==null||r({event:n}),!0)}}];const gTt={move:{name:"mousemove"},end:{name:"mouseup"}};var iN;(function(e){e[e.RightClick=2]="RightClick"})(iN||(iN={}));class vTt extends JF{constructor(t){super(t,gTt,l0(t.event.target))}}vTt.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===iN.RightClick?!1:(r==null||r({event:n}),!0)}}];const uI={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class yTt extends JF{constructor(t){super(t,uI)}static setup(){return window.addEventListener(uI.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(uI.move.name,t)};function t(){}}}yTt.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:o}=n;return o.length>1?!1:(r==null||r({event:n}),!0)}}];var Jy;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(Jy||(Jy={}));var HE;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(HE||(HE={}));function bTt(e){let{acceleration:t,activator:n=Jy.Pointer,canScroll:r,draggingRect:o,enabled:i,interval:a=5,order:s=HE.TreeOrder,pointerCoordinates:l,scrollableAncestors:c,scrollableAncestorRects:u,delta:f,threshold:h}=e;const p=CTt({delta:f,disabled:!i}),[m,g]=o2t(),v=d.useRef({x:0,y:0}),b=d.useRef({x:0,y:0}),y=d.useMemo(()=>{switch(n){case Jy.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case Jy.DraggableRect:return o}},[n,o,l]),S=d.useRef(null),w=d.useCallback(()=>{const C=S.current;if(!C)return;const x=v.current.x*b.current.x,_=v.current.y*b.current.y;C.scrollBy(x,_)},[]),E=d.useMemo(()=>s===HE.TreeOrder?[...c].reverse():c,[s,c]);d.useEffect(()=>{if(!i||!c.length||!y){g();return}for(const C of E){if((r==null?void 0:r(C))===!1)continue;const x=c.indexOf(C),_=u[x];if(!_)continue;const{direction:P,speed:O}=aTt(C,_,y,t,h);for(const I of["x","y"])p[I][P[I]]||(O[I]=0,P[I]=0);if(O.x>0||O.y>0){g(),S.current=C,m(w,a),v.current=O,b.current=P;return}}v.current={x:0,y:0},b.current={x:0,y:0},g()},[t,w,r,g,i,a,JSON.stringify(y),JSON.stringify(p),m,c,E,u,JSON.stringify(h)])}const STt={x:{[xi.Backward]:!1,[xi.Forward]:!1},y:{[xi.Backward]:!1,[xi.Forward]:!1}};function CTt(e){let{delta:t,disabled:n}=e;const r=$8(t);return IS(o=>{if(n||!r||!o)return STt;const i={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[xi.Backward]:o.x[xi.Backward]||i.x===-1,[xi.Forward]:o.x[xi.Forward]||i.x===1},y:{[xi.Backward]:o.y[xi.Backward]||i.y===-1,[xi.Forward]:o.y[xi.Forward]||i.y===1}}},[n,t,r])}function wTt(e,t){const n=t!=null?e.get(t):void 0,r=n?n.node.current:null;return IS(o=>{var i;return t==null?null:(i=r??o)!=null?i:null},[r,t])}function xTt(e,t){return d.useMemo(()=>e.reduce((n,r)=>{const{sensor:o}=r,i=o.activators.map(a=>({eventName:a.eventName,handler:t(a.handler,r)}));return[...n,...i]},[]),[e,t])}var m1;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(m1||(m1={}));var aN;(function(e){e.Optimized="optimized"})(aN||(aN={}));const OG=new Map;function ETt(e,t){let{dragging:n,dependencies:r,config:o}=t;const[i,a]=d.useState(null),{frequency:s,measure:l,strategy:c}=o,u=d.useRef(e),f=v(),h=u1(f),p=d.useCallback(function(b){b===void 0&&(b=[]),!h.current&&a(y=>y===null?b:y.concat(b.filter(S=>!y.includes(S))))},[h]),m=d.useRef(null),g=IS(b=>{if(f&&!n)return OG;if(!b||b===OG||u.current!==e||i!=null){const y=new Map;for(let S of e){if(!S)continue;if(i&&i.length>0&&!i.includes(S.id)&&S.rect.current){y.set(S.id,S.rect.current);continue}const w=S.node.current,E=w?new QF(l(w),w):null;S.rect.current=E,E&&y.set(S.id,E)}return y}return b},[e,i,n,f,l]);return d.useEffect(()=>{u.current=e},[e]),d.useEffect(()=>{f||p()},[n,f]),d.useEffect(()=>{i&&i.length>0&&a(null)},[JSON.stringify(i)]),d.useEffect(()=>{f||typeof s!="number"||m.current!==null||(m.current=setTimeout(()=>{p(),m.current=null},s))},[s,f,p,...r]),{droppableRects:g,measureDroppableContainers:p,measuringScheduled:i!=null};function v(){switch(c){case m1.Always:return!1;case m1.BeforeDragging:return n;default:return!n}}}function Ipe(e,t){return IS(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function _Tt(e,t){return Ipe(e,t)}function $Tt(e){let{callback:t,disabled:n}=e;const r=lF(t),o=d.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:i}=window;return new i(r)},[r,n]);return d.useEffect(()=>()=>o==null?void 0:o.disconnect(),[o]),o}function VO(e){let{callback:t,disabled:n}=e;const r=lF(t),o=d.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:i}=window;return new i(r)},[n]);return d.useEffect(()=>()=>o==null?void 0:o.disconnect(),[o]),o}function PTt(e){return new QF(h0(e),e)}function MG(e,t,n){t===void 0&&(t=PTt);const[r,o]=d.useState(null);function i(){o(l=>{if(!e)return null;if(e.isConnected===!1){var c;return(c=l??n)!=null?c:null}const u=t(e);return JSON.stringify(l)===JSON.stringify(u)?l:u})}const a=$Tt({callback(l){if(e)for(const c of l){const{type:u,target:f}=c;if(u==="childList"&&f instanceof HTMLElement&&f.contains(e)){i();break}}}}),s=VO({callback:i});return ad(()=>{i(),e?(s==null||s.observe(e),a==null||a.observe(document.body,{childList:!0,subtree:!0})):(s==null||s.disconnect(),a==null||a.disconnect())},[e]),r}function OTt(e){const t=Ipe(e);return wpe(e,t)}const TG=[];function MTt(e){const t=d.useRef(e),n=IS(r=>e?r&&r!==TG&&e&&t.current&&e.parentNode===t.current.parentNode?r:XF(e):TG,[e]);return d.useEffect(()=>{t.current=e},[e]),n}function TTt(e){const[t,n]=d.useState(null),r=d.useRef(e),o=d.useCallback(i=>{const a=lI(i.target);a&&n(s=>s?(s.set(a,oN(a)),new Map(s)):null)},[]);return d.useEffect(()=>{const i=r.current;if(e!==i){a(i);const s=e.map(l=>{const c=lI(l);return c?(c.addEventListener("scroll",o,{passive:!0}),[c,oN(c)]):null}).filter(l=>l!=null);n(s.length?new Map(s):null),r.current=e}return()=>{a(e),a(i)};function a(s){s.forEach(l=>{const c=lI(l);c==null||c.removeEventListener("scroll",o)})}},[o,e]),d.useMemo(()=>e.length?t?Array.from(t.values()).reduce((i,a)=>fg(i,a),cc):Ope(e):cc,[e,t])}function RG(e,t){t===void 0&&(t=[]);const n=d.useRef(null);return d.useEffect(()=>{n.current=null},t),d.useEffect(()=>{const r=e!==cc;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?FE(e,n.current):cc}function RTt(e){d.useEffect(()=>{if(!oO)return;const t=e.map(n=>{let{sensor:r}=n;return r.setup==null?void 0:r.setup()});return()=>{for(const n of t)n==null||n()}},e.map(t=>{let{sensor:n}=t;return n}))}function ITt(e,t){return d.useMemo(()=>e.reduce((n,r)=>{let{eventName:o,handler:i}=r;return n[o]=a=>{i(a,t)},n},{}),[e,t])}function kpe(e){return d.useMemo(()=>e?nTt(e):null,[e])}const IG=[];function kTt(e,t){t===void 0&&(t=h0);const[n]=e,r=kpe(n?Qa(n):null),[o,i]=d.useState(IG);function a(){i(()=>e.length?e.map(l=>$pe(l)?r:new QF(t(l),l)):IG)}const s=VO({callback:a});return ad(()=>{s==null||s.disconnect(),a(),e.forEach(l=>s==null?void 0:s.observe(l))},[e]),o}function NTt(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return RS(t)?t:e}function ATt(e){let{measure:t}=e;const[n,r]=d.useState(null),o=d.useCallback(c=>{for(const{target:u}of c)if(RS(u)){r(f=>{const h=t(u);return f?{...f,width:h.width,height:h.height}:h});break}},[t]),i=VO({callback:o}),a=d.useCallback(c=>{const u=NTt(c);i==null||i.disconnect(),u&&(i==null||i.observe(u)),r(u?t(u):null)},[t,i]),[s,l]=jE(a);return d.useMemo(()=>({nodeRef:s,rect:n,setRef:l}),[n,s,l])}const DTt=[{sensor:Rpe,options:{}},{sensor:Tpe,options:{}}],jTt={current:{}},Tx={draggable:{measure:EG},droppable:{measure:EG,strategy:m1.WhileDragging,frequency:aN.Optimized},dragOverlay:{measure:h0}};class Zy extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,r;return(n=(r=this.get(t))==null?void 0:r.node.current)!=null?n:void 0}}const FTt={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Zy,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:zE},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Tx,measureDroppableContainers:zE,windowRect:null,measuringScheduled:!1},LTt={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:zE,draggableNodes:new Map,over:null,measureDroppableContainers:zE},KO=d.createContext(LTt),BTt=d.createContext(FTt);function zTt(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Zy}}}function HTt(e,t){switch(t.type){case fi.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case fi.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case fi.DragEnd:case fi.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case fi.RegisterDroppable:{const{element:n}=t,{id:r}=n,o=new Zy(e.droppable.containers);return o.set(r,n),{...e,droppable:{...e.droppable,containers:o}}}case fi.SetDroppableDisabled:{const{id:n,key:r,disabled:o}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const a=new Zy(e.droppable.containers);return a.set(n,{...i,disabled:o}),{...e,droppable:{...e.droppable,containers:a}}}case fi.UnregisterDroppable:{const{id:n,key:r}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const i=new Zy(e.droppable.containers);return i.delete(n),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function UTt(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:o}=d.useContext(KO),i=$8(r),a=$8(n==null?void 0:n.id);return d.useEffect(()=>{if(!t&&!r&&i&&a!=null){if(!cF(i)||document.activeElement===i.target)return;const s=o.get(a);if(!s)return;const{activatorNode:l,node:c}=s;if(!l.current&&!c.current)return;requestAnimationFrame(()=>{for(const u of[l.current,c.current]){if(!u)continue;const f=s2t(u);if(f){f.focus();break}}})}},[r,t,o,a,i]),null}function WTt(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((o,i)=>i({transform:o,...r}),n):n}function VTt(e){return d.useMemo(()=>({draggable:{...Tx.draggable,...e==null?void 0:e.draggable},droppable:{...Tx.droppable,...e==null?void 0:e.droppable},dragOverlay:{...Tx.dragOverlay,...e==null?void 0:e.dragOverlay}}),[e==null?void 0:e.draggable,e==null?void 0:e.droppable,e==null?void 0:e.dragOverlay])}function KTt(e){let{activeNode:t,measure:n,initialRect:r,config:o=!0}=e;const i=d.useRef(!1),{x:a,y:s}=typeof o=="boolean"?{x:o,y:o}:o;ad(()=>{if(!a&&!s||!t){i.current=!1;return}if(i.current||!r)return;const c=t==null?void 0:t.node.current;if(!c||c.isConnected===!1)return;const u=n(c),f=wpe(u,r);if(a||(f.x=0),s||(f.y=0),i.current=!0,Math.abs(f.x)>0||Math.abs(f.y)>0){const h=xpe(c);h&&h.scrollBy({top:f.y,left:f.x})}},[t,a,s,r,n])}const Npe=d.createContext({...cc,scaleX:1,scaleY:1});var zd;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(zd||(zd={}));const qTt=d.memo(function(t){var n,r,o,i;let{id:a,accessibility:s,autoScroll:l=!0,children:c,sensors:u=DTt,collisionDetection:f=YMt,measuring:h,modifiers:p,...m}=t;const g=d.useReducer(HTt,void 0,zTt),[v,b]=g,[y,S]=LMt(),[w,E]=d.useState(zd.Uninitialized),C=w===zd.Initialized,{draggable:{active:x,nodes:_,translate:P},droppable:{containers:O}}=v,I=x!=null?_.get(x):null,M=d.useRef({initial:null,translated:null}),T=d.useMemo(()=>{var et;return x!=null?{id:x,data:(et=I==null?void 0:I.data)!=null?et:jTt,rect:M}:null},[x,I]),D=d.useRef(null),[A,j]=d.useState(null),[k,F]=d.useState(null),V=u1(m,Object.values(m)),W=iO("DndDescribedBy",a),K=d.useMemo(()=>O.getEnabled(),[O]),L=VTt(h),{droppableRects:Q,measureDroppableContainers:ee,measuringScheduled:re}=ETt(K,{dragging:C,dependencies:[P.x,P.y],config:L.droppable}),ie=wTt(_,x),G=d.useMemo(()=>k?P8(k):null,[k]),X=Tt(),ne=_Tt(ie,L.draggable.measure);KTt({activeNode:x!=null?_.get(x):null,config:X.layoutShiftCompensation,initialRect:ne,measure:L.draggable.measure});const le=MG(ie,L.draggable.measure,ne),ce=MG(ie?ie.parentElement:null),oe=d.useRef({activatorEvent:null,active:null,activeNode:ie,collisionRect:null,collisions:null,droppableRects:Q,draggableNodes:_,draggingNode:null,draggingNodeRect:null,droppableContainers:O,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),se=O.getNodeFor((n=oe.current.over)==null?void 0:n.id),fe=ATt({measure:L.dragOverlay.measure}),te=(r=fe.nodeRef.current)!=null?r:ie,he=C?(o=fe.rect)!=null?o:le:null,pe=!!(fe.nodeRef.current&&fe.rect),Oe=OTt(pe?null:le),Me=kpe(te?Qa(te):null),Se=MTt(C?se??ie:null),ye=kTt(Se),ve=WTt(p,{transform:{x:P.x-Oe.x,y:P.y-Oe.y,scaleX:1,scaleY:1},activatorEvent:k,active:T,activeNodeRect:le,containerNodeRect:ce,draggingNodeRect:he,over:oe.current.over,overlayNodeRect:fe.rect,scrollableAncestors:Se,scrollableAncestorRects:ye,windowRect:Me}),be=G?fg(G,P):null,Pe=TTt(Se),Ne=RG(Pe),U=RG(Pe,[le]),H=fg(ve,Ne),q=he?JMt(he,ve):null,me=T&&q?f({active:T,collisionRect:q,droppableRects:Q,droppableContainers:K,pointerCoordinates:be}):null,Ce=KMt(me,"id"),[ue,Le]=d.useState(null),He=pe?ve:fg(ve,U),ge=XMt(He,(i=ue==null?void 0:ue.rect)!=null?i:null,le),De=d.useRef(null),qe=d.useCallback((et,st)=>{let{sensor:yt,options:gt}=st;if(D.current==null)return;const Lt=_.get(D.current);if(!Lt)return;const St=et.nativeEvent,wt=new yt({active:D.current,activeNode:Lt,event:St,options:gt,context:oe,onStart(Be){const We=D.current;if(We==null)return;const je=_.get(We);if(!je)return;const{onDragStart:Xe}=V.current,pt={activatorEvent:St,active:{id:We,data:je.data,rect:M}};_i.unstable_batchedUpdates(()=>{Xe==null||Xe(pt),E(zd.Initializing),b({type:fi.DragStart,initialCoordinates:Be,active:We}),y({type:"onDragStart",event:pt}),j(De.current),F(St)})},onMove(Be){b({type:fi.DragMove,coordinates:Be})},onEnd:Nt(fi.DragEnd),onCancel:Nt(fi.DragCancel)});De.current=wt;function Nt(Be){return async function(){const{active:je,collisions:Xe,over:pt,scrollAdjustedTranslate:vt}=oe.current;let Mt=null;if(je&&vt){const{cancelDrop:Et}=V.current;Mt={activatorEvent:St,active:je,collisions:Xe,delta:vt,over:pt},Be===fi.DragEnd&&typeof Et=="function"&&await Promise.resolve(Et(Mt))&&(Be=fi.DragCancel)}D.current=null,_i.unstable_batchedUpdates(()=>{b({type:Be}),E(zd.Uninitialized),Le(null),j(null),F(null),De.current=null;const Et=Be===fi.DragEnd?"onDragEnd":"onDragCancel";if(Mt){const ft=V.current[Et];ft==null||ft(Mt),y({type:Et,event:Mt})}})}}},[_]),Fe=d.useCallback((et,st)=>(yt,gt)=>{const Lt=yt.nativeEvent,St=_.get(gt);if(D.current!==null||!St||Lt.dndKit||Lt.defaultPrevented)return;const wt={active:St};et(yt,st.options,wt)===!0&&(Lt.dndKit={capturedBy:st.sensor},D.current=gt,qe(yt,st))},[_,qe]),Ke=xTt(u,Fe);RTt(u),ad(()=>{le&&w===zd.Initializing&&E(zd.Initialized)},[le,w]),d.useEffect(()=>{const{onDragMove:et}=V.current,{active:st,activatorEvent:yt,collisions:gt,over:Lt}=oe.current;if(!st||!yt)return;const St={active:st,activatorEvent:yt,collisions:gt,delta:{x:H.x,y:H.y},over:Lt};_i.unstable_batchedUpdates(()=>{et==null||et(St),y({type:"onDragMove",event:St})})},[H.x,H.y]),d.useEffect(()=>{const{active:et,activatorEvent:st,collisions:yt,droppableContainers:gt,scrollAdjustedTranslate:Lt}=oe.current;if(!et||D.current==null||!st||!Lt)return;const{onDragOver:St}=V.current,wt=gt.get(Ce),Nt=wt&&wt.rect.current?{id:wt.id,rect:wt.rect.current,data:wt.data,disabled:wt.disabled}:null,Be={active:et,activatorEvent:st,collisions:yt,delta:{x:Lt.x,y:Lt.y},over:Nt};_i.unstable_batchedUpdates(()=>{Le(Nt),St==null||St(Be),y({type:"onDragOver",event:Be})})},[Ce]),ad(()=>{oe.current={activatorEvent:k,active:T,activeNode:ie,collisionRect:q,collisions:me,droppableRects:Q,draggableNodes:_,draggingNode:te,draggingNodeRect:he,droppableContainers:O,over:ue,scrollableAncestors:Se,scrollAdjustedTranslate:H},M.current={initial:he,translated:q}},[T,ie,me,q,_,te,he,Q,O,ue,Se,H]),bTt({...X,delta:P,draggingRect:q,pointerCoordinates:be,scrollableAncestors:Se,scrollableAncestorRects:ye});const Ue=d.useMemo(()=>({active:T,activeNode:ie,activeNodeRect:le,activatorEvent:k,collisions:me,containerNodeRect:ce,dragOverlay:fe,draggableNodes:_,droppableContainers:O,droppableRects:Q,over:ue,measureDroppableContainers:ee,scrollableAncestors:Se,scrollableAncestorRects:ye,measuringConfiguration:L,measuringScheduled:re,windowRect:Me}),[T,ie,le,k,me,ce,fe,_,O,Q,ue,ee,Se,ye,L,re,Me]),Ve=d.useMemo(()=>({activatorEvent:k,activators:Ke,active:T,activeNodeRect:le,ariaDescribedById:{draggable:W},dispatch:b,draggableNodes:_,over:ue,measureDroppableContainers:ee}),[k,Ke,T,le,b,W,_,ue,ee]);return de.createElement(Cpe.Provider,{value:S},de.createElement(KO.Provider,{value:Ve},de.createElement(BTt.Provider,{value:Ue},de.createElement(Npe.Provider,{value:ge},c)),de.createElement(UTt,{disabled:(s==null?void 0:s.restoreFocus)===!1})),de.createElement(HMt,{...s,hiddenTextDescribedById:W}));function Tt(){const et=(A==null?void 0:A.autoScrollEnabled)===!1,st=typeof l=="object"?l.enabled===!1:l===!1,yt=C&&!et&&!st;return typeof l=="object"?{...l,enabled:yt}:{enabled:yt}}}),GTt=d.createContext(null),kG="button",YTt="Draggable";function XTt(e){let{id:t,data:n,disabled:r=!1,attributes:o}=e;const i=iO(YTt),{activators:a,activatorEvent:s,active:l,activeNodeRect:c,ariaDescribedById:u,draggableNodes:f,over:h}=d.useContext(KO),{role:p=kG,roleDescription:m="draggable",tabIndex:g=0}=o??{},v=(l==null?void 0:l.id)===t,b=d.useContext(v?Npe:GTt),[y,S]=jE(),[w,E]=jE(),C=ITt(a,t),x=u1(n);ad(()=>(f.set(t,{id:t,key:i,node:y,activatorNode:w,data:x}),()=>{const P=f.get(t);P&&P.key===i&&f.delete(t)}),[f,t]);const _=d.useMemo(()=>({role:p,tabIndex:g,"aria-disabled":r,"aria-pressed":v&&p===kG?!0:void 0,"aria-roledescription":m,"aria-describedby":u.draggable}),[r,p,g,v,m,u.draggable]);return{active:l,activatorEvent:s,activeNodeRect:c,attributes:_,isDragging:v,listeners:r?void 0:C,node:y,over:h,setNodeRef:S,setActivatorNodeRef:E,transform:b}}const QTt="Droppable",JTt={timeout:25};function ZTt(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:o}=e;const i=iO(QTt),{active:a,dispatch:s,over:l,measureDroppableContainers:c}=d.useContext(KO),u=d.useRef({disabled:n}),f=d.useRef(!1),h=d.useRef(null),p=d.useRef(null),{disabled:m,updateMeasurementsFor:g,timeout:v}={...JTt,...o},b=u1(g??r),y=d.useCallback(()=>{if(!f.current){f.current=!0;return}p.current!=null&&clearTimeout(p.current),p.current=setTimeout(()=>{c(Array.isArray(b.current)?b.current:[b.current]),p.current=null},v)},[v]),S=VO({callback:y,disabled:m||!a}),w=d.useCallback((_,P)=>{S&&(P&&(S.unobserve(P),f.current=!1),_&&S.observe(_))},[S]),[E,C]=jE(w),x=u1(t);return d.useEffect(()=>{!S||!E.current||(S.disconnect(),f.current=!1,S.observe(E.current))},[E,S]),d.useEffect(()=>(s({type:fi.RegisterDroppable,element:{id:r,key:i,disabled:n,node:E,rect:h,data:x}}),()=>s({type:fi.UnregisterDroppable,key:i,id:r})),[r]),d.useEffect(()=>{n!==u.current.disabled&&(s({type:fi.SetDroppableDisabled,id:r,key:i,disabled:n}),u.current.disabled=n)},[r,i,n,s]),{active:a,rect:h,isOver:(l==null?void 0:l.id)===r,node:E,over:l,setNodeRef:C}}function Ape(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function mw(e){return e!==null&&e>=0}const eRt=e=>{let{rects:t,activeIndex:n,overIndex:r,index:o}=e;const i=Ape(t,r,n),a=t[o],s=i[o];return!s||!a?null:{x:s.left-a.left,y:s.top-a.top,scaleX:s.width/a.width,scaleY:s.height/a.height}},tRt="Sortable",nRt=de.createContext({activeIndex:-1,containerId:tRt,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:eRt,disabled:{draggable:!1,droppable:!1}}),rRt=e=>{let{id:t,items:n,activeIndex:r,overIndex:o}=e;return Ape(n,r,o).indexOf(t)},oRt=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:o,items:i,newIndex:a,previousItems:s,previousContainerId:l,transition:c}=e;return!c||!r||s!==i&&o===a?!1:n?!0:a!==o&&t===l},iRt={duration:200,easing:"ease"},Dpe="transform",aRt=d1.Transition.toString({property:Dpe,duration:0,easing:"linear"}),sRt={roleDescription:"sortable"};function lRt(e){let{disabled:t,index:n,node:r,rect:o}=e;const[i,a]=d.useState(null),s=d.useRef(n);return ad(()=>{if(!t&&n!==s.current&&r.current){const l=o.current;if(l){const c=h0(r.current,{ignoreTransform:!0}),u={x:l.left-c.left,y:l.top-c.top,scaleX:l.width/c.width,scaleY:l.height/c.height};(u.x||u.y)&&a(u)}}n!==s.current&&(s.current=n)},[t,n,r,o]),d.useEffect(()=>{i&&a(null)},[i]),i}function cRt(e){let{animateLayoutChanges:t=oRt,attributes:n,disabled:r,data:o,getNewIndex:i=rRt,id:a,strategy:s,resizeObserverConfig:l,transition:c=iRt}=e;const{items:u,containerId:f,activeIndex:h,disabled:p,disableTransforms:m,sortedRects:g,overIndex:v,useDragOverlay:b,strategy:y}=d.useContext(nRt),S=uRt(r,p),w=u.indexOf(a),E=d.useMemo(()=>({sortable:{containerId:f,index:w,items:u},...o}),[f,o,w,u]),C=d.useMemo(()=>u.slice(u.indexOf(a)),[u,a]),{rect:x,node:_,isOver:P,setNodeRef:O}=ZTt({id:a,data:E,disabled:S.droppable,resizeObserverConfig:{updateMeasurementsFor:C,...l}}),{active:I,activatorEvent:M,activeNodeRect:T,attributes:D,setNodeRef:A,listeners:j,isDragging:k,over:F,setActivatorNodeRef:V,transform:W}=XTt({id:a,data:E,attributes:{...sRt,...n},disabled:S.draggable}),K=r2t(O,A),L=!!I,Q=L&&!m&&mw(h)&&mw(v),ee=!b&&k,re=ee&&Q?W:null,G=Q?re??(s??y)({rects:g,activeNodeRect:T,activeIndex:h,overIndex:v,index:w}):null,X=mw(h)&&mw(v)?i({id:a,items:u,activeIndex:h,overIndex:v}):w,ne=I==null?void 0:I.id,le=d.useRef({activeId:ne,items:u,newIndex:X,containerId:f}),ce=u!==le.current.items,oe=t({active:I,containerId:f,isDragging:k,isSorting:L,id:a,index:w,items:u,newIndex:le.current.newIndex,previousItems:le.current.items,previousContainerId:le.current.containerId,transition:c,wasDragging:le.current.activeId!=null}),se=lRt({disabled:!oe,index:w,node:_,rect:x});return d.useEffect(()=>{L&&le.current.newIndex!==X&&(le.current.newIndex=X),f!==le.current.containerId&&(le.current.containerId=f),u!==le.current.items&&(le.current.items=u)},[L,X,f,u]),d.useEffect(()=>{if(ne===le.current.activeId)return;if(ne&&!le.current.activeId){le.current.activeId=ne;return}const te=setTimeout(()=>{le.current.activeId=ne},50);return()=>clearTimeout(te)},[ne]),{active:I,activeIndex:h,attributes:D,data:E,rect:x,index:w,newIndex:X,items:u,isOver:P,isSorting:L,isDragging:k,listeners:j,node:_,overIndex:v,over:F,setNodeRef:K,setActivatorNodeRef:V,setDroppableNodeRef:O,setDraggableNodeRef:A,transform:se??G,transition:fe()};function fe(){if(se||ce&&le.current.newIndex===w)return aRt;if(!(ee&&!cF(M)||!c)&&(L||oe))return d1.Transition.toString({...c,property:Dpe})}}function uRt(e,t){var n,r;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(n=e==null?void 0:e.draggable)!=null?n:t.draggable,droppable:(r=e==null?void 0:e.droppable)!=null?r:t.droppable}}Dr.Down,Dr.Right,Dr.Up,Dr.Left;const dRt=({card:e})=>{var r,o;const t=((r=e.tasks)==null?void 0:r.filter(i=>i.completed).length)||0,n=((o=e.tasks)==null?void 0:o.length)||0;return N.jsx(ol,{size:"small",style:{marginBottom:8},children:N.jsxs(oo,{direction:"vertical",style:{width:"100%"},children:[N.jsx(oo,{wrap:!0,children:e.labels.map(i=>N.jsx(Uu,{color:i.color,children:i.name},i.id))}),N.jsx("div",{children:e.title}),n>0&&N.jsx(AD,{percent:Math.round(t/n*100),size:"small"}),N.jsxs(oo,{style:{justifyContent:"space-between",width:"100%"},children:[N.jsx(Xc.Group,{children:e.members.map(i=>N.jsx(Xc,{src:i.avatar,size:"small"},i.id))}),e.timer&&N.jsxs(oo,{children:[N.jsx(MD,{}),new Date(e.timer.duration*1e3).toISOString().substr(11,8)]})]})]})})},fRt=({card:e,index:t,listId:n})=>{const{attributes:r,listeners:o,setNodeRef:i,transform:a,transition:s,isDragging:l}=cRt({id:`${e.id}:${n}:${t}`}),c={transform:d1.Transform.toString(a),transition:s,opacity:l?.5:1};return N.jsx("div",{ref:i,style:c,...r,...o,children:N.jsx(dRt,{card:e})})},hRt=({list:e})=>N.jsx("div",{children:e.cards.map((t,n)=>N.jsx(fRt,{card:t,index:n,listId:e.id},t.id))}),pRt=()=>{const{projectId:e}=sXe(),t=Ya(),n=nl(s=>s.currentProject),r=nl(s=>s.projects),o=nl(s=>s.setCurrentProject),i=nl(s=>s.moveCard);d.useEffect(()=>{if(e){const s=r.find(l=>l.id===e);s?o(s):t("/")}},[e,r,o,t]);const a=s=>{const{active:l,over:c}=s;if(!c)return;const u=l.id,f=c.id,[,h]=u.split(":"),[,p]=f.split(":");h!==p&&i(u.split(":")[0],h,p,parseInt(f.split(":")[2]||"0"))};return!n||!n.boards[0]?N.jsx(Nc,{description:"没有找到项目"}):N.jsx(qTt,{onDragEnd:a,collisionDetection:qMt,children:N.jsx(oo,{style:{width:"100%",overflowX:"auto"},size:16,children:n.boards[0].lists.map(s=>N.jsx("div",{style:{width:300},children:N.jsx(ol,{title:s.name,extra:N.jsx(Hn,{type:"text",icon:N.jsx(Hu,{})}),style:{width:"100%"},children:N.jsx(hRt,{list:s})})},s.id))})})};function mRt({children:e}){const{isLoggedIn:t}=d.useContext(ia),n=Vv();return t?e:N.jsx(CXe,{to:"/auth/login",replace:!0,state:{from:n}})}const NG=[{path:"/",element:N.jsx(N.Fragment,{children:N.jsx(mRt,{children:N.jsx(FOt,{})})}),children:[{index:!0,element:N.jsx(Ohe,{})},{path:"project/:projectId",element:N.jsx(pRt,{})},{path:"daily-report",element:N.jsx(Mhe,{})},{path:"weekly-report",element:N.jsx(The,{})},{path:"report-calendar",element:N.jsx(Ihe,{})},{path:"/setting",element:N.jsx(ghe,{}),children:[{path:"/setting",element:N.jsx(hG,{})},{path:"/setting/profile",element:N.jsx(hG,{})},{path:"/setting/agentProfile",element:N.jsx(rMt,{})},{path:"/setting/memberProfile",element:N.jsx(YOt,{})},{path:"/setting/basic",element:N.jsx(WOt,{})},{path:"/setting/certification",element:N.jsx(tMt,{})},{path:"/setting/qrcode",element:N.jsx(VOt,{})},{path:"/setting/shortcut",element:N.jsx(KOt,{})}]}]},{path:"/auth",element:N.jsx(LOt,{}),children:[{path:"/auth",element:N.jsx(L8,{isModel:!1})},{path:"/auth/login",element:N.jsx(L8,{isModel:!1})},{path:"/auth/register",element:N.jsx(JEt,{})},{path:"/auth/server",element:N.jsx(Nfe,{})}]},{path:"/anonymous",element:N.jsx(NMt,{}),children:[{path:"/anonymous",element:N.jsx(X8,{})},{path:"/anonymous/home",element:N.jsx(X8,{})},{path:"/anonymous/setting",element:N.jsx(jMt,{})}]},{path:"*",element:N.jsx(qOt,{})}];let sN;Pi?sN=MXe(NG,{future:{v7_normalizeFormMethod:!0,v7_relativeSplatPath:!0,v7_partialHydration:!0,v7_fetcherPersist:!0,v7_skipActionErrorRevalidation:!0}}):sN=OXe(NG,{basename:"/kanban",future:{v7_normalizeFormMethod:!0,v7_relativeSplatPath:!0,v7_partialHydration:!0,v7_fetcherPersist:!0,v7_skipActionErrorRevalidation:!0}});const gRt=sN;var vRt=typeof Element<"u",yRt=typeof Map=="function",bRt=typeof Set=="function",SRt=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Rx(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,o;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Rx(e[r],t[r]))return!1;return!0}var i;if(yRt&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;for(i=e.entries();!(r=i.next()).done;)if(!Rx(r.value[1],t.get(r.value[0])))return!1;return!0}if(bRt&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(SRt&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;if(vRt&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((o[r]==="_owner"||o[r]==="__v"||o[r]==="__o")&&e.$$typeof)&&!Rx(e[o[r]],t[o[r]]))return!1;return!0}return e!==e&&t!==t}var CRt=function(t,n){try{return Rx(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const wRt=Fr(CRt);var xRt=function(e,t,n,r,o,i,a,s){if(!e){var l;if(t===void 0)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,i,a,s],u=0;l=new Error(t.replace(/%s/g,function(){return c[u++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}},ERt=xRt;const AG=Fr(ERt);var _Rt=function(t,n,r,o){var i=r?r.call(o,t,n):void 0;if(i!==void 0)return!!i;if(t===n)return!0;if(typeof t!="object"||!t||typeof n!="object"||!n)return!1;var a=Object.keys(t),s=Object.keys(n);if(a.length!==s.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(n),c=0;c(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(jpe||{}),dI={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},DG=Object.values(jpe),ZF={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},PRt=Object.entries(ZF).reduce((e,[t,n])=>(e[n]=t,e),{}),Hl="data-rh",pg={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},mg=(e,t)=>{for(let n=e.length-1;n>=0;n-=1){const r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},ORt=e=>{let t=mg(e,"title");const n=mg(e,pg.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,()=>t);const r=mg(e,pg.DEFAULT_TITLE);return t||r||void 0},MRt=e=>mg(e,pg.ON_CHANGE_CLIENT_STATE)||(()=>{}),fI=(e,t)=>t.filter(n=>typeof n[e]<"u").map(n=>n[e]).reduce((n,r)=>({...n,...r}),{}),TRt=(e,t)=>t.filter(n=>typeof n.base<"u").map(n=>n.base).reverse().reduce((n,r)=>{if(!n.length){const o=Object.keys(r);for(let i=0;iconsole&&typeof console.warn=="function"&&console.warn(e),Z0=(e,t,n)=>{const r={};return n.filter(o=>Array.isArray(o[e])?!0:(typeof o[e]<"u"&&RRt(`Helmet: ${e} should be of type "Array". Instead found type "${typeof o[e]}"`),!1)).map(o=>o[e]).reverse().reduce((o,i)=>{const a={};i.filter(l=>{let c;const u=Object.keys(l);for(let h=0;ho.push(l));const s=Object.keys(a);for(let l=0;l{if(Array.isArray(e)&&e.length){for(let n=0;n({baseTag:TRt(["href"],e),bodyAttributes:fI("bodyAttributes",e),defer:mg(e,pg.DEFER),encode:mg(e,pg.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:fI("htmlAttributes",e),linkTags:Z0("link",["rel","href"],e),metaTags:Z0("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:Z0("noscript",["innerHTML"],e),onChangeClientState:MRt(e),scriptTags:Z0("script",["src","innerHTML"],e),styleTags:Z0("style",["cssText"],e),title:ORt(e),titleAttributes:fI("titleAttributes",e),prioritizeSeoTags:IRt(e,pg.PRIORITIZE_SEO_TAGS)}),Fpe=e=>Array.isArray(e)?e.join(""):e,NRt=(e,t)=>{const n=Object.keys(e);for(let r=0;rArray.isArray(e)?e.reduce((n,r)=>(NRt(r,t)?n.priority.push(r):n.default.push(r),n),{priority:[],default:[]}):{default:e,priority:[]},jG=(e,t)=>({...e,[t]:void 0}),ARt=["noscript","script","style"],lN=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'"),Lpe=e=>Object.keys(e).reduce((t,n)=>{const r=typeof e[n]<"u"?`${n}="${e[n]}"`:`${n}`;return t?`${t} ${r}`:r},""),DRt=(e,t,n,r)=>{const o=Lpe(n),i=Fpe(t);return o?`<${e} ${Hl}="true" ${o}>${lN(i,r)}`:`<${e} ${Hl}="true">${lN(i,r)}`},jRt=(e,t,n=!0)=>t.reduce((r,o)=>{const i=o,a=Object.keys(i).filter(c=>!(c==="innerHTML"||c==="cssText")).reduce((c,u)=>{const f=typeof i[u]>"u"?u:`${u}="${lN(i[u],n)}"`;return c?`${c} ${f}`:f},""),s=i.innerHTML||i.cssText||"",l=ARt.indexOf(e)===-1;return`${r}<${e} ${Hl}="true" ${a}${l?"/>":`>${s}`}`},""),Bpe=(e,t={})=>Object.keys(e).reduce((n,r)=>{const o=ZF[r];return n[o||r]=e[r],n},t),FRt=(e,t,n)=>{const r={key:t,[Hl]:!0},o=Bpe(n,r);return[de.createElement("title",o,t)]},Ix=(e,t)=>t.map((n,r)=>{const o={key:r,[Hl]:!0};return Object.keys(n).forEach(i=>{const s=ZF[i]||i;if(s==="innerHTML"||s==="cssText"){const l=n.innerHTML||n.cssText;o.dangerouslySetInnerHTML={__html:l}}else o[s]=n[i]}),de.createElement(e,o)}),Us=(e,t,n=!0)=>{switch(e){case"title":return{toComponent:()=>FRt(e,t.title,t.titleAttributes),toString:()=>DRt(e,t.title,t.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>Bpe(t),toString:()=>Lpe(t)};default:return{toComponent:()=>Ix(e,t),toString:()=>jRt(e,t,n)}}},LRt=({metaTags:e,linkTags:t,scriptTags:n,encode:r})=>{const o=hI(e,dI.meta),i=hI(t,dI.link),a=hI(n,dI.script);return{priorityMethods:{toComponent:()=>[...Ix("meta",o.priority),...Ix("link",i.priority),...Ix("script",a.priority)],toString:()=>`${Us("meta",o.priority,r)} ${Us("link",i.priority,r)} ${Us("script",a.priority,r)}`},metaTags:o.default,linkTags:i.default,scriptTags:a.default}},BRt=e=>{const{baseTag:t,bodyAttributes:n,encode:r=!0,htmlAttributes:o,noscriptTags:i,styleTags:a,title:s="",titleAttributes:l,prioritizeSeoTags:c}=e;let{linkTags:u,metaTags:f,scriptTags:h}=e,p={toComponent:()=>{},toString:()=>""};return c&&({priorityMethods:p,linkTags:u,metaTags:f,scriptTags:h}=LRt(e)),{priority:p,base:Us("base",t,r),bodyAttributes:Us("bodyAttributes",n,r),htmlAttributes:Us("htmlAttributes",o,r),link:Us("link",u,r),meta:Us("meta",f,r),noscript:Us("noscript",i,r),script:Us("script",h,r),style:Us("style",a,r),title:Us("title",{title:s,titleAttributes:l},r)}},cN=BRt,gw=[],zpe=!!(typeof window<"u"&&window.document&&window.document.createElement),uN=class{constructor(e,t){Pr(this,"instances",[]);Pr(this,"canUseDOM",zpe);Pr(this,"context");Pr(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?gw:this.instances,add:e=>{(this.canUseDOM?gw:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?gw:this.instances).indexOf(e);(this.canUseDOM?gw:this.instances).splice(t,1)}}});this.context=e,this.canUseDOM=t||!1,t||(e.helmet=cN({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},zRt={},Hpe=de.createContext(zRt),Fh,Upe=(Fh=class extends d.Component{constructor(n){super(n);Pr(this,"helmetData");this.helmetData=new uN(this.props.context||{},Fh.canUseDOM)}render(){return de.createElement(Hpe.Provider,{value:this.helmetData.value},this.props.children)}},Pr(Fh,"canUseDOM",zpe),Fh),Em=(e,t)=>{const n=document.head||document.querySelector("head"),r=n.querySelectorAll(`${e}[${Hl}]`),o=[].slice.call(r),i=[];let a;return t&&t.length&&t.forEach(s=>{const l=document.createElement(e);for(const c in s)if(Object.prototype.hasOwnProperty.call(s,c))if(c==="innerHTML")l.innerHTML=s.innerHTML;else if(c==="cssText")l.styleSheet?l.styleSheet.cssText=s.cssText:l.appendChild(document.createTextNode(s.cssText));else{const u=c,f=typeof s[u]>"u"?"":s[u];l.setAttribute(c,f)}l.setAttribute(Hl,"true"),o.some((c,u)=>(a=u,l.isEqualNode(c)))?o.splice(a,1):i.push(l)}),o.forEach(s=>{var l;return(l=s.parentNode)==null?void 0:l.removeChild(s)}),i.forEach(s=>n.appendChild(s)),{oldTags:o,newTags:i}},dN=(e,t)=>{const n=document.getElementsByTagName(e)[0];if(!n)return;const r=n.getAttribute(Hl),o=r?r.split(","):[],i=[...o],a=Object.keys(t);for(const s of a){const l=t[s]||"";n.getAttribute(s)!==l&&n.setAttribute(s,l),o.indexOf(s)===-1&&o.push(s);const c=i.indexOf(s);c!==-1&&i.splice(c,1)}for(let s=i.length-1;s>=0;s-=1)n.removeAttribute(i[s]);o.length===i.length?n.removeAttribute(Hl):n.getAttribute(Hl)!==a.join(",")&&n.setAttribute(Hl,a.join(","))},HRt=(e,t)=>{typeof e<"u"&&document.title!==e&&(document.title=Fpe(e)),dN("title",t)},FG=(e,t)=>{const{baseTag:n,bodyAttributes:r,htmlAttributes:o,linkTags:i,metaTags:a,noscriptTags:s,onChangeClientState:l,scriptTags:c,styleTags:u,title:f,titleAttributes:h}=e;dN("body",r),dN("html",o),HRt(f,h);const p={baseTag:Em("base",n),linkTags:Em("link",i),metaTags:Em("meta",a),noscriptTags:Em("noscript",s),scriptTags:Em("script",c),styleTags:Em("style",u)},m={},g={};Object.keys(p).forEach(v=>{const{newTags:b,oldTags:y}=p[v];b.length&&(m[v]=b),y.length&&(g[v]=p[v].oldTags)}),t&&t(),l(e,m,g)},ey=null,URt=e=>{ey&&cancelAnimationFrame(ey),e.defer?ey=requestAnimationFrame(()=>{FG(e,()=>{ey=null})}):(FG(e),ey=null)},WRt=URt,LG=class extends d.Component{constructor(){super(...arguments);Pr(this,"rendered",!1)}shouldComponentUpdate(t){return!$Rt(t,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:t}=this.props.context;t.remove(this),this.emitChange()}emitChange(){const{helmetInstances:t,setHelmet:n}=this.props.context;let r=null;const o=kRt(t.get().map(i=>{const a={...i.props};return delete a.context,a}));Upe.canUseDOM?WRt(o):cN&&(r=cN(o)),n(r)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:t}=this.props.context;t.add(this),this.emitChange()}render(){return this.init(),null}},pI,VRt=(pI=class extends d.Component{shouldComponentUpdate(e){return!wRt(jG(this.props,"helmetData"),jG(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,n,r){return{...t,[e.type]:[...t[e.type]||[],{...n,...this.mapNestedChildrenToProps(e,r)}]}}mapObjectTypeChildren(e,t,n,r){switch(e.type){case"title":return{...t,[e.type]:r,titleAttributes:{...n}};case"body":return{...t,bodyAttributes:{...n}};case"html":return{...t,htmlAttributes:{...n}};default:return{...t,[e.type]:{...n}}}}mapArrayTypeChildrenToProps(e,t){let n={...t};return Object.keys(e).forEach(r=>{n={...n,[r]:e[r]}}),n}warnOnInvalidChildren(e,t){return AG(DG.some(n=>e.type===n),typeof e.type=="function"?"You may be attempting to nest components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${DG.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),AG(!t||typeof t=="string"||Array.isArray(t)&&!t.some(n=>typeof n!="string"),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`} ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let n={};return de.Children.forEach(e,r=>{if(!r||!r.props)return;const{children:o,...i}=r.props,a=Object.keys(i).reduce((l,c)=>(l[PRt[c]||c]=i[c],l),{});let{type:s}=r;switch(typeof s=="symbol"?s=s.toString():this.warnOnInvalidChildren(r,o),s){case"Symbol(react.fragment)":t=this.mapChildrenToProps(o,t);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(r,n,a,o);break;default:t=this.mapObjectTypeChildren(r,t,a,o);break}}),this.mapArrayTypeChildrenToProps(n,t)}render(){const{children:e,...t}=this.props;let n={...t},{helmetData:r}=t;if(e&&(n=this.mapChildrenToProps(e,n)),r&&!(r instanceof uN)){const o=r;r=new uN(o.context,!0),delete n.helmetData}return r?de.createElement(LG,{...n,context:r.value}):de.createElement(Hpe.Consumer,null,o=>de.createElement(LG,{...n,context:o}))}},Pr(pI,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),pI);const KRt={i18_file_assistant:"文件助手",slogan:"对话即服务","menu.dashboard.chat":"消息","menu.dashboard.contact":"通讯录","menu.dashboard.queue":"排队","menu.dashboard.ticket":"工单","menu.dashboard.leavemsg":"留言","menu.dashboard.visitor":"访客","menu.dashboard.monitor":"监控","menu.dashboard.plugins":"插件","menu.dashboard.mine":"我的","chat.toolbar.emoji":"表情","chat.toolbar.image":"图片","chat.toolbar.file":"文件","chat.toolbar.audio":"录音","chat.toolbar.webrtc":"视频","chat.toolbar.history":"历史消息","chat.toolbar.block":"拉黑","chat.toolbar.screenshot":"截图","chat.toolbar.invite.rate":"邀请评价","chat.toolbar.autoreply":"自动回复","chat.toolbar.autoreply.on":"自动回复(已开启)","chat.navbar.transfer":"转接","chat.navbar.ticket":"工单","chat.navbar.crm":"Crm","chat.navbar.close":"结束","chat.navbar.category":"分类","chat.navbar.ai":"AI","chat.navbar.queue":"排队","chat.right.ai":"Copilot","chat.right.quickreply":"快捷回复","chat.right.ticket":"工单","chat.right.userinfo":"用户信息","chat.right.llm":"大模型","chat.right.docview":"文档预览","chat.right.group":"群详情","chat.right.member":"联系人","chat.ai.summary":"会话小结","chat.ai.switch":"切换AI","chat.thread.nomore":"没有更多了","chat.message.loadmore":"加载更多","dashboard.footbar.logout":"退出",SERVICE:"客服机器人(对外)",MARKETING:"营销机器人(对外)",KNOWLEDGEBASE:"知识库机器人(内部)",QA:"问答机器人(直接调用大模型)",AGENT_ASSISTANT:"客服助手(内部)",loading:"加载中",create:"创建",creating:"创建中...","create.success":"创建成功","create.fail":"创建失败",update:"更新",updating:"更新中...","update.success":"更新成功","update.fail":"更新失败",save:"保存",saving:"正在保存...",email:"邮箱","email.verified":"邮箱(已验证)","email.unverified":"邮箱(待验证)",mobile:"手机号","mobile.verified":"手机号(已验证)","mobile.unverified":"手机号(待验证)",captcha:"验证码",logging:"登录中...","login.success":"登录成功","login.error":"登录失败,请稍后重试",registering:"注册中...","register.success":"注册成功","register.error":"注册失败","username.change.tip":"登录用户名(修改用户名之后,需要重新登录)",createKb:"创建知识库",createDept:"创建部门",upload:"上传",import:"导入",export:"导出","download.template":"下载模板",open:"打开",copy:"复制","copy.success":"复制成功",ok:"确定",cancel:"取消",bind:"绑定",edit:"编辑",editing:"修改中...","edit.success":"修改成功","edit.fail":"修改失败",delete:"删除",deleting:"删除中...",deleteTip:"删除提示",deleteAffirm:"确定要删除","delete.success":"删除成功","delete.fail":"删除失败","process.success":"处理成功","process.fail":"处理失败",preview:"预览",close:"关闭",closing:"关闭中...",closeTip:"关闭提示",closeASure:"确定要关闭","close.success":"关闭成功",choose:"选择","leavemsg.enabled":"留言启用",transfer:"转接","transfer.success":"转接成功","transfer.fail":"转接失败","transfer.reason":"转接原因",refresh:"刷新",noAgent:"暂无客服在线"},qRt={"menu.anonymous.title":"Anonymous Mode","menu.anonymous.home":"Messages","menu.anonymous.contact":"Contacts","menu.anonymous.robot":"Robot","menu.anonymous.setting":"Settings","menu.anonymous.status":"Anonymous Status","menu.anonymous.status.tip":"Anonymous mode only supports communication between online devices in the same LAN","menu.anonymous.login.tip":"Login to access offline messages and more features","menu.anonymous.login":"Login","menu.anonymous.current.users":"Current Users","menu.dashboard.chat":"聊天","menu.dashboard.contact":"联系人","menu.dashboard.ai":"AI助手","menu.dashboard.note":"笔记","menu.dashboard.kbase":"知识库","menu.dashboard.mine":"设置","menu.dashboard.queue":"排队","menu.dashboard.ticket":"工单","menu.dashboard.leavemsg":"留言","menu.dashboard.visitor":"访客","menu.dashboard.monitor":"监控","menu.dashboard.plugins":"插件","menu.settings":"Settings","menu.settings.logout":"Logout","menu.agent.status":"Agent Status","menu.agent.status.available":"Available","menu.agent.status.rest":"Rest","menu.agent.status.offline":"Offline","menu.language":"Language","menu.mode":"Mode","menu.mode.team":"Team Mode","menu.mode.agent":"Agent Mode","menu.mode.personal":"Personal Mode","menu.agent.offline.warning":"Please end all ongoing conversations before going offline","menu.mode.personal.coming":"Coming soon...","menu.dashboard.projectList":"项目","menu.dashboard.dailyReport":"日报","menu.dashboard.weeklyReport":"周报","menu.dashboard.reportCalendar":"日历"},GRt={"pages.login.title":"登录","pages.login.subtitle":"欢迎使用微语客服系统","pages.login.accountLogin.tab":"账户密码登录","pages.login.accountLogin.errorMessage":"错误的用户名和密码","pages.login.failure":"登录失败,请检查用户名密码!","pages.login.failureCode":"验证错误","pages.login.success":"登录成功!","pages.login.username.placeholder":"请输入用户名","pages.login.username.required":"用户名是必填项!","pages.login.password.placeholder":"请输入密码","pages.login.repassword.placeholder":"确认密码","pages.login.password.required":"密码是必填项!","pages.login.repassword.required":"确认密码是必填项!","pages.login.phoneLogin.tab":"手机号登录","pages.login.phoneLogin.errorMessage":"验证码错误","pages.login.phoneNumber.placeholder":"请输入手机号!","pages.login.phoneNumber.required":"手机号是必填项!","pages.login.phoneNumber.invalid":"不合法的手机号!","pages.login.captcha.placeholder":"请输入验证码!","pages.login.captcha.required":"验证码是必填项!","pages.login.phoneLogin.getVerificationCode":"获取验证码","pages.login.anonymousLogin":"匿名登录","pages.getCaptchaSecondText":"秒后重新获取","pages.login.scanLogin.tab":"扫码登录","pages.login.rememberMe":"自动登录","pages.login.forgotPassword":"忘记密码","pages.login.submit":"登录","pages.login.loginWith":"其他登录方式 :","pages.login.register":"注册账号","pages.login.registerAccount":"注册账户","pages.login.auto.register":"未注册手机号会自动注册","pages.welcome.link":"欢迎使用","pages.robot.new":"新建","pages.robot.chat":"聊天","pages.robot.edit":"编辑","pages.robot.delete":"删除","pages.robot.upload":"上传","pages.robot.tab.basic":"基本信息","pages.robot.tab.kb":"知识库","pages.robot.tab.channel":"渠道对接","pages.robot.tab.statistic":"数据统计","pages.robot.tab.advanced":"高级设置","pages.robot.tab.flow":"流程设计","pages.robot.tab.avatar":"头像","pages.robot.tab.title":"标题","pages.robot.tab.welcomeTip":"欢迎语","pages.robot.tab.description":"简介","pages.robot.tab.preview":"实时预览","pages.robot.tab.website":"官网","pages.robot.tab.helpdesk":"帮助文档","pages.robot.tab.icp":"京ICP备案 17041763号-1","pages.robot.tab.police":"粤公安备案 44030502008688号","pages.robot.kb.file":"文件","pages.robot.kb.text":"文本","pages.robot.kb.qa":"问答","pages.robot.kb.web":"网站","pages.robot.file.title":"文件名","pages.robot.file.type":"文件类型","pages.robot.file.size":"文件大小","pages.robot.file.action":"操作","pages.robot.file.delete":"删除","pages.robot.file.save":"保存","pages.robot.file.cancel":"取消","pages.robot.file.uploading":"上传中...","pages.robot.file.name_invalid":"文件名不能包含 _ ","pages.robot.file.parse":"解析文件内容","pages.setting":"设置","pages.logout":"退出登录","pages.footer.website":"微语官网","pages.footer.helpcenter":"帮助文档","pages.login.remember":"记住密码","pages.agent.tab.basic":"基本信息","pages.agent.robot":"机器人","pages.agent.service.settings":"服务设置","pages.agent.service.settings.topTip":"顶部提示","pages.agent.service.settings.welcomeTip":"欢迎语","pages.agent.service.settings.leavemsgTip":"离线留言提示","pages.agent.service.settings.autoCloseMin":"自动关闭分钟","pages.agent.service.settings.showLogo":"显示Logo","pages.agent.service.settings.maxThreadCount":"最大线程数","pages.advanced.faq":"常见问题","pages.advanced.quickButton":"快捷按钮","pages.advanced.faqGuess":"智能推荐","pages.advanced.faqHot":"热门问题","pages.advanced.faqShortcut":"快捷回复","pages.advanced.rate":"满意度评价","pages.advanced.autoreply":"自动回复","pages.advanced.leaveMsg":"留言设置","pages.advanced.survey":"调查问卷","pages.advanced.history":"历史记录","pages.advanced.inputAssociation":"输入联想","pages.advanced.antiHarassment":"验证码设置","pages.advanced.captcha":"验证码设置","pages.advanced.showPreForm":"显示预览","pages.advanced.showHistory":"显示历史","pages.advanced.showInputAssociation":"显示输入联想","pages.advanced.showCaptcha":"显示验证码","pages.login.country.placeholder":"选择国家/地区","pages.login.country.china":"中国大陆","pages.login.country.hongkong":"中国香港","pages.login.country.taiwan":"中国台湾","pages.login.country.macao":"中国澳门","pages.login.country.japan":"日本","pages.login.country.korea":"韩国","pages.login.country.usa":"美国","pages.login.country.canada":"加拿大","pages.login.country.uk":"英国","pages.login.country.germany":"德国","pages.login.country.france":"法国","pages.login.country.australia":"澳大利亚","pages.login.country.singapore":"新加坡","pages.login.country.malaysia":"马来西亚","pages.login.country.thailand":"泰国","pages.login.country.vietnam":"越南","pages.login.country.philippines":"菲律宾","pages.login.country.indonesia":"印度尼西亚","pages.login.country.italy":"意大利","pages.login.country.spain":"西班牙","pages.login.country.russia":"俄罗斯","pages.login.country.newzealand":"新西兰","pages.anonymous.title":"匿名模式","pages.anonymous.home":"首页","pages.anonymous.contact":"联系人","pages.anonymous.robot":"机器人","pages.anonymous.setting":"设置","pages.anonymous.welcome":"欢迎使用匿名模式","pages.anonymous.description":"您可以在此模式下匿名使用系统功能","block.title":"拉黑设置","block.type":"拉黑类型","block.user":"拉黑用户","block.ip":"拉黑IP","block.permanent":"永久封禁","block.until":"封禁至","block.until.required":"请选择封禁结束时间","pages.register.title":"注册","pages.register.subtitle":"创建您的账号","pages.register.username":"用户名","pages.register.password":"密码","pages.register.confirm":"确认密码","pages.register.email":"邮箱","pages.register.mobile":"手机号","pages.register.code":"验证码","pages.register.agreement":"我已阅读并同意","pages.register.agreement.terms":"服务条款","pages.register.submit":"注册","pages.register.login":"使用已有账号登录","pages.404.title":"404","pages.404.subtitle":"抱歉,您访问的页面不存在","pages.404.description":"您可以尝试以下操作:","pages.404.actions.back":"返回上一页","pages.404.actions.home":"返回首页","pages.403.title":"403","pages.403.subtitle":"抱歉,您没有访问该页面的权限","pages.403.description":"请联系管理员获取权限","pages.403.actions.back":"返回上一页","pages.500.title":"500","pages.500.subtitle":"抱歉,服务器出错了","pages.500.description":"请稍后再试或联系技术支持","pages.500.actions.back":"返回上一页","pages.500.actions.home":"返回首页","pages.welcome.title":"欢迎","pages.welcome.description":"微语客服系统是一个开源的客服系统","pages.welcome.getting-started":"开始使用","pages.welcome.view-docs":"查看文档"},YRt={"app.title":"微语","app.logout":"登出","app.copyright.produced":"微语出品","app.preview.down.block":"下载此页面到本地项目","app.welcome.link.fetch-blocks":"获取全部区块","app.welcome.link.block-list":"基于 block 开发,快速构建标准页面","navBar.lang":"语言","layout.user.link.help":"帮助","layout.user.link.privacy":"隐私","layout.user.link.terms":"条款","theme.light":"浅色","theme.dark":"深色","theme.system":"自动","setting.lang":"Languages","setting.theme":"主题","app.name":"微语客服","app.description":"新一代智能客服系统","app.welcome":"欢迎使用微语客服系统","app.copyright":"© 2024 微语客服. 保留所有权利.","app.version":"版本","app.action.back":"返回","app.action.confirm":"确认","app.action.cancel":"取消","app.action.save":"保存","app.action.edit":"编辑","app.action.delete":"删除","app.action.refresh":"刷新","app.action.search":"搜索","app.action.more":"更多","app.action.settings":"设置","app.action.help":"帮助","app.tip.loading":"加载中...","app.tip.success":"操作成功","app.tip.error":"操作失败","app.tip.warning":"警告","app.tip.info":"提示","app.tip.confirm":"确认要执行此操作吗?","app.tip.nodata":"暂无数据","app.tip.network.error":"网络连接失败","app.tip.server.error":"服务器错误","app.status.online":"在线","app.status.offline":"离线","app.status.busy":"忙碌","app.status.away":"离开","app.status.invisible":"隐身","app.status.disabled":"已禁用","app.status.expired":"已过期","app.time.today":"今天","app.time.yesterday":"昨天","app.time.tomorrow":"明天","app.time.just":"刚刚","app.time.minutes":"{count} 分钟前","app.time.hours":"{count} 小时前","app.time.days":"{count} 天前","app.file.upload":"上传文件","app.file.download":"下载文件","app.file.preview":"预览文件","app.file.size.limit":"文件大小不能超过 {size}","app.file.type.unsupported":"不支持的文件类型","app.file.upload.success":"上传成功","app.file.upload.failed":"上传失败","app.file.download.success":"下载成功","app.file.download.failed":"下载失败","app.layout.sidebar.collapse":"收起侧边栏","app.layout.sidebar.expand":"展开侧边栏","app.layout.header.profile":"个人中心","app.layout.header.logout":"退出登录","app.layout.footer.copyright":"版权所有","app.layout.footer.terms":"服务条款","app.layout.footer.privacy":"隐私政策"},XRt={"auth.login.title":"登录","auth.login.subtitle":"欢迎使用微语客服系统","auth.login.username":"用户名","auth.login.username.required":"请输入用户名","auth.login.password":"密码","auth.login.password.required":"请输入密码","auth.login.remember":"记住密码","auth.login.forgot":"忘记密码?","auth.login.submit":"登录","auth.login.other":"其他登录方式","auth.login.register":"注册账号","auth.login.success":"登录成功","auth.login.failed":"登录失败","auth.register.title":"注册","auth.register.subtitle":"创建新账号","auth.register.username":"用户名","auth.register.username.required":"请输入用户名","auth.register.email":"邮箱","auth.register.email.required":"请输入邮箱","auth.register.password":"密码","auth.register.password.required":"请输入密码","auth.register.confirm":"确认密码","auth.register.confirm.required":"请确认密码","auth.register.submit":"注册","auth.register.login":"已有账号?登录","auth.register.success":"注册成功","auth.register.failed":"注册失败","auth.forgot.title":"忘记密码","auth.forgot.subtitle":"重置密码","auth.forgot.email":"邮箱","auth.forgot.email.required":"请输入邮箱","auth.forgot.submit":"提交","auth.forgot.back":"返回登录","auth.forgot.success":"重置密码邮件已发送","auth.forgot.failed":"重置密码失败","auth.reset.title":"重置密码","auth.reset.subtitle":"设置新密码","auth.reset.password":"新密码","auth.reset.password.required":"请输入新密码","auth.reset.confirm":"确认密码","auth.reset.confirm.required":"请确认新密码","auth.reset.submit":"提交","auth.reset.success":"密码重置成功","auth.reset.failed":"密码重置失败","auth.verify.code":"验证码","auth.verify.code.required":"请输入验证码","auth.verify.code.send":"发送验证码","auth.verify.code.resend":"重新发送","auth.verify.code.success":"验证码发送成功","auth.verify.code.failed":"验证码发送失败","auth.password.strength.weak":"密码强度:弱","auth.password.strength.medium":"密码强度:中","auth.password.strength.strong":"密码强度:强","auth.agreement.text":"我已阅读并同意","auth.agreement.terms":"服务条款","auth.agreement.privacy":"隐私政策","server.button.back":"返回","server.button.save":"保存","server.button.reset":"重置","server.button.help":"帮助","server.save.success":"保存成功","server.reset.success":"重置成功,已恢复默认云服务器","server.custom.enable":"启用自定义服务器","server.api.url.label":"API服务器地址 (例如: http://127.0.0.1:9003 或 https://api.bytedesk.com)","server.api.url.placeholder":"http://127.0.0.1:9003","server.websocket.url.label":"WebSocket服务器地址 (例如: ws://127.0.0.1:9885/websocket 或 wss://api.bytedesk.com/websocket)","server.websocket.url.placeholder":"ws://127.0.0.1:9885/websocket","server.input.error":"请输入正确的服务器地址"},QRt={"chat.title":"会话","chat.empty":"暂无会话","chat.loading":"加载中...","chat.load.error":"加载失败","chat.load.more":"加载更多","chat.no.more":"没有更多了","chat.refresh":"刷新","chat.status.connecting":"连接中...","chat.status.connected":"已连接","chat.status.disconnected":"连接断开","chat.status.reconnecting":"重新连接中...","chat.network.error":"网络连接失败,请检查网络","chat.thread.closing":"结束会话中...","chat.thread.close.success":"结束会话成功","chat.thread.close.failed":"结束会话失败","chat.thread.close.confirm.title":"确定要结束会话?","chat.rate.invite.confirm.title":"确认要邀请评价?","chat.message.send.failed":"发送失败","chat.message.resend":"重新发送","chat.message.recall":"撤回消息","chat.message.copy.success":"复制成功","chat.copy.success":"复制成功","chat.menu.copy":"复制","chat.menu.translate":"翻译","chat.menu.recall":"撤回","chat.menu.enlarge":"放大阅读","chat.menu.quickreply.add":"添加快捷回复...","chat.menu.browser.open":"浏览器打开","chat.menu.forward":"转发...","chat.menu.collect":"收藏","chat.menu.quote":"引用","chat.input.placeholder":"请输入内容, Ctrl+V 粘贴截图/图片","chat.translation.placeholder":"请输入翻译内容...","chat.input.send":"发送","chat.input.sending":"发送中...","chat.toolbar.emoji":"表情","chat.toolbar.image":"图片","chat.toolbar.file":"文件","chat.toolbar.screenshot":"截图","chat.toolbar.autoreply":"自动回复","chat.toolbar.audio":"录音","chat.toolbar.webrtc":"视频会话","chat.toolbar.history":"历史","chat.toolbar.block":"拉黑","chat.toolbar.invite.rate":"邀请评价","chat.navbar.transfer":"转接","chat.navbar.close":"结束","chat.navbar.note":"笔记","chat.navbar.kbase":"知识库","chat.right.quickreply":"快捷回复","chat.right.userinfo":"访客信息","chat.right.ai":"AI助手","chat.right.ticket":"工单","chat.right.llm":"大模型","chat.right.group":"群组信息","chat.right.member":"成员信息","chat.right.docview":"文档查看","chat.upload.size.limit":"文件大小不能超过 {size}","chat.upload.type.unsupported":"不支持的文件类型","chat.upload.failed":"上传失败","chat.upload.success":"上传成功","chat.upload.progress":"上传中 {progress}%","chat.webrtc.calling":"呼叫中...","chat.webrtc.incoming":"来电...","chat.webrtc.connected":"通话中...","chat.webrtc.ended":"通话结束","chat.webrtc.rejected":"对方拒绝","chat.webrtc.busy":"对方忙","chat.webrtc.failed":"通话失败","chat.webrtc.accept":"接受","chat.webrtc.reject":"拒绝","chat.webrtc.hangup":"挂断","chat.group.notice":"群公告","chat.group.members":"群成员","chat.group.admins":"管理员","chat.group.robots":"机器人","chat.group.qrcode":"二维码","chat.group.uid.error":"群组ID错误"},JRt={"common.confirm":"确认","common.cancel":"取消","common.submit":"提交","common.reset":"重置","common.save":"保存","common.delete":"删除","common.edit":"编辑","common.add":"添加","common.search":"搜索","common.back":"返回","common.next":"下一步","common.previous":"上一步","common.more":"更多","common.loading":"加载中...","common.success":"操作成功","common.failed":"操作失败","common.error":"错误","common.warning":"警告","common.info":"提示","common.status.online":"在线","common.status.offline":"离线","common.status.busy":"忙碌","common.status.away":"离开","common.status.invisible":"隐身","common.operation.success":"操作成功","common.operation.failed":"操作失败","common.operation.confirm":"确认要执行此操作吗?","common.operation.processing":"处理中...","common.operation.completed":"处理完成","common.operation.error":"处理出错","common.form.required":"此项为必填项","common.form.optional":"选填","common.form.invalid":"输入无效","common.form.validate.error":"表单验证失败","common.form.validate.success":"表单验证通过"},ZRt={"customer.list.title":"客户列表","customer.list.empty":"暂无客户","customer.list.loading":"加载中...","customer.list.load.error":"加载失败","customer.list.load.more":"加载更多","customer.list.no.more":"没有更多了","customer.list.refresh":"刷新","customer.info.basic":"基本信息","customer.info.name":"姓名","customer.info.nickname":"昵称","customer.info.gender":"性别","customer.info.age":"年龄","customer.info.birthday":"生日","customer.info.mobile":"手机号","customer.info.email":"邮箱","customer.info.address":"地址","customer.info.company":"公司","customer.info.position":"职位","customer.info.remark":"备注","customer.info.tags":"标签","customer.info.source":"来源","customer.info.created":"创建时间","customer.info.updated":"更新时间","customer.status.online":"在线","customer.status.offline":"离线","customer.status.away":"离开","customer.status.busy":"忙碌","customer.status.blocked":"已拉黑","customer.action.edit":"编辑","customer.action.delete":"删除","customer.action.block":"拉黑","customer.action.unblock":"取消拉黑","customer.action.transfer":"转移","customer.action.merge":"合并","customer.action.export":"导出","customer.form.name":"姓名","customer.form.name.required":"请输入姓名","customer.form.nickname":"昵称","customer.form.gender":"性别","customer.form.age":"年龄","customer.form.birthday":"生日","customer.form.mobile":"手机号","customer.form.email":"邮箱","customer.form.address":"地址","customer.form.company":"公司","customer.form.position":"职位","customer.form.remark":"备注","customer.form.tags":"标签","customer.form.source":"来源","customer.create.success":"客户创建成功","customer.create.failed":"客户创建失败","customer.update.success":"客户更新成功","customer.update.failed":"客户更新失败","customer.delete.success":"客户删除成功","customer.delete.failed":"客户删除失败","customer.block.success":"客户拉黑成功","customer.block.failed":"客户拉黑失败","customer.unblock.success":"取消拉黑成功","customer.unblock.failed":"取消拉黑失败","customer.transfer.success":"客户转移成功","customer.transfer.failed":"客户转移失败","customer.merge.success":"客户合并成功","customer.merge.failed":"客户合并失败","customer.export.success":"客户导出成功","customer.export.failed":"客户导出失败","black.title":"拉黑设置","black.type":"拉黑类型","black.type.required":"请选择至少一种拉黑类型","black.user":"拉黑用户","black.ip":"拉黑IP","black.permanent":"永久拉黑","black.until":"拉黑截至","black.until.required":"请选择拉黑截至时间","black.reason":"拉黑原因","black.reason.required":"请输入拉黑原因","black.reason.placeholder":"请输入拉黑原因","black.success":"拉黑成功"},eIt={"dashboard.error.message":"获取数据失败","dashboard.init.organization":"初始化组织","dashboard.init.profile":"初始化个人信息","dashboard.init.workgroups":"初始化工作组","dashboard.init.agent":"初始化客服信息","dashboard.transfer.accept":"{nickname} 已接受转接","dashboard.transfer.reject":"{nickname} 已拒绝转接","dashboard.transfer.success":"转接请求已发送,等待对方响应"},tIt={"i18n.lang.en-US":"English","i18n.lang.zh-CN":"简体中文","i18n.lang.zh-TW":"繁体中文","i18n.queue.tip":"排队队列","i18n.queue.message.template":"当前排队人数:{0},大约等待时间:{1} 分钟","i18n.queue.empty":"暂无排队用户","i18n.queue.accept":"接入","i18n.system.notification":"系统通知","i18n.old.password.wrong":"旧密码错误","i18n.change.password":"修改密码","i18n.auth.captcha.send.success":"验证码发送成功","i18n.auth.captcha.error":"验证码错误","i18n.auth.captcha.expired":"验证码过期","i18n.auth.captcha.already.send":"验证码已经发送,请等待","i18n.auth.captcha.validate.failed":"验证码验证失败","i18n.faq":"常见问题","i18n.rate":"评价","i18n.input.placeholder":"请输入内容","i18n.loading":"加载中...","i18n.load.more":"加载更多","i18n.load.nomore":"没有更多了","i18n.typing":"正在输入...","i18n.robot":"[机器人]","i18n.agent":"[一对一]","i18n.workgroup":"[技能组]","i18n.group":"[群聊]","i18n.rate.invite":"邀请评价","i18n.ticket":"[工单]","i18n.notice":"通知","i18n.notice.title":"标题","i18n.notice.content":"内容","i18n.notice.ip":"IP","i18n.notice.ipLocation":"IP地址","i18n.notice.parse.file.success":"解析文件成功","i18n.notice.parse.file.error":"解析文件失败","i18n.DEPT.ALL":"全部","i18n.DEPT.ADMIN":"管理员","i18n.DEPT.HR":"人事部","i18n.DEPT.ORG":"行政部","i18n.DEPT.IT":"技术部","i18n.DEPT.MONEY":"财务部","i18n.DEPT.MARKETING":"市场部","i18n.DEPT.SALES":"销售部","i18n.DEPT.CS":"客服部","i18n.new.message":"新消息","i18n.file.assistant":"文件助手","i18n.clipboard.assistant":"剪切板助手","i18n.thread.content.image":"图片","i18n.thread.content.file":"文件","i18n.top.tip":"默认置顶语","i18n.top.make":"置顶","i18n.top.cancel":"取消置顶","i18n.unread.make":"设置未读","i18n.unread.cancel":"取消未读","i18n.star.make":"星标","i18n.star.cancel":"取消星标","i18n.disturb.make":"免打扰","i18n.disturb.cancel":"取消免打扰","i18n.transfer":"转接","i18n.hide":"隐藏","i18n.network.disconnected":"网络已断开","i18n.message.pulling":"消息拉取中...","i18n.leavemsg.tip":"无客服在线,请留言","i18n.welcome.tip":"您好,有什么可以帮您的?","i18n.reenter.tip":"继续会话","i18n.under.development":"开发中...","i18n.user.description":"默认用户描述","i18n.robot.nickname":"默认机器人","i18n.robot.description":"默认机器人描述","i18n.robot.noreply":"未找到相应答案","i18n.robot.agent.assistant.nickname":"默认机器人助手","i18n.llm.prompt":"你是一个聪明、对人类有帮助的人工智能,你可以对人类提出的问题给出有用、详细、礼貌的回答","i18n.agent.nickname":"默认客服","i18n.agent.description":"默认客服描述","i18n.workgroup.nickname":"默认技能组","i18n.workgroup.description":"默认技能组描述","i18n.contact":"询问联系方式","i18n.thanks":"感谢","i18n.welcome":"问候","i18n.bye":"告别","i18n.tip.title":"提示","i18n.tip.network.disconnected":"网络已断开","i18n.tip.network.connected":"网络已连接","i18n.kb.name":"默认知识库","i18n.kb.platform.name":"平台知识库","i18n.kb.helpcenter.name":"帮助文档知识库","i18n.kb.llm.name":"大模型知识库","i18n.kb.keyword.name":"关键词知识库","i18n.kb.faq.name":"常见问题知识库","i18n.kb.autoreply.name":"自动回复知识库","i18n.kb.quickreply.name":"快捷回复知识库","i18n.kb.taboo.name":"敏感词知识库","i18n.kb.description":"知识库默认描述","i18n.agent.nicknameKb":"默认客服知识库","i18n.contact.title":"方便的话请您提供一下您的联系电话","i18n.contact.content":"方便的话请您提供一下您的联系电话,我电话给您沟通一下,这样更加直观","i18n.thanks.title":"感谢光临","i18n.thanks.content":"感谢光临,欢迎再来","i18n.welcome.title":"您好","i18n.welcome.content":"您好,有什么可以帮您的","i18n.bye.title":"您的满意一直是我们的目标","i18n.bye.content":"您的满意一直是我们的目标,如果有任何疑问欢迎您随时联系","i18n.vip.api":"VIP接口,暂无权限,请联系:weiyuai.cn","i18n.faq.category.demo.1":"常见问题分类Demo1","i18n.faq.category.demo.2":"常见问题分类Demo2","i18n.faq.demo.title.1":"常见问题文字Demo1","i18n.faq.demo.content.1":"常见问题文字Demo1","i18n.faq.demo.title.2":"常见问题图片Demo2","i18n.faq.demo.content.2":"https://www.weiyuai.cn/logo.png","i18n.quick.button.demo.title.1":"快捷按钮文字Demo1","i18n.quick.button.demo.content.1":"快捷按钮文字Demo1","i18n.quick.button.demo.title.2":"快捷按钮链接Demo2","i18n.quick.button.demo.content.2":"https://www.weiyuai.cn","i18n.preview.title":"预览","i18n.cancel":"取消","i18n.confirm":"确定","i18n.send":"发送","i18n.transferToAgent":"转人工服务","i18n.auto.closed":"会话自动关闭","i18n.agent.closed":"客服关闭会话","i18n.online.chat":"在线客服","i18n.JOB":"工作","i18n.LANGUAGE":"语言","i18n.TOOL":"工具","i18n.WRITING":"写作","i18n.RAG":"知识库问答","i18n.module.ai":"AI","i18n.module.void":"空白","i18n.module.service":"客服","i18n.module.ticket":"工单","i18n.black.user.already.exists":"用户已拉黑","i18n.ticket.category.technical_support":"技术支持","i18n.ticket.category.service_request":"服务请求","i18n.ticket.category.consultation":"咨询","i18n.ticket.category.complaint_suggestion":"投诉建议","i18n.ticket.category.operation_maintenance":"运维","i18n.ticket.category.other":"其他","i18n.vip.component":"VIP组件, 联系我们了解更多详情","i18n.vip.contactUs":"联系我们","i18n.vip.contactUrl":"https://www.weiyuai.cn/contact.html"},nIt={"message.type.text":"文本消息","message.type.image":"图片消息","message.type.file":"文件消息","message.type.voice":"语音消息","message.type.video":"视频消息","message.type.location":"位置消息","message.type.link":"链接消息","message.type.card":"卡片消息","message.type.system":"系统消息","message.type.notification":"通知消息","message.type.custom":"自定义消息","message.status.sending":"发送中","message.status.sent":"已发送","message.status.delivered":"已送达","message.status.read":"已读","message.status.failed":"发送失败","message.status.recalled":"已撤回","message.status.deleted":"已删除","message.action.send":"发送","message.action.recall":"撤回","message.action.delete":"删除","message.action.resend":"重新发送","message.action.forward":"转发","message.action.quote":"引用","message.action.copy":"复制","message.action.translate":"翻译","message.action.download":"下载","message.action.preview":"预览","message.tip.sending":"消息发送中...","message.tip.sent":"消息已发送","message.tip.delivered":"消息已送达","message.tip.read":"消息已读","message.tip.failed":"消息发送失败","message.tip.recalled":"消息已撤回","message.tip.deleted":"消息已删除","message.tip.copy.success":"复制成功","message.tip.download.start":"开始下载...","message.tip.download.success":"下载成功","message.tip.download.failed":"下载失败","message.input.placeholder":"请输入消息","message.input.send.button":"发送","message.input.emoji.button":"表情","message.input.image.button":"图片","message.input.file.button":"文件","message.input.voice.button":"语音","message.input.video.button":"视频","message.input.location.button":"位置","message.list.load.more":"加载更多","message.list.loading":"加载中...","message.list.no.more":"没有更多消息","message.list.empty":"暂无消息","message.list.search.placeholder":"搜索消息","message.list.search.no.result":"未找到相关消息","message.time.just":"刚刚","message.time.minutes":"{count}分钟前","message.time.hours":"{count}小时前","message.time.days":"{count}天前","message.time.weeks":"{count}周前","message.time.months":"{count}个月前","message.time.years":"{count}年前","message.file.size.limit":"文件大小不能超过 {size}","message.file.type.unsupported":"不支持的文件类型","message.file.uploading":"上传中...","message.file.download":"下载文件","message.file.preview":"预览文件","message.image.loading":"图片加载中","message.image.load.error":"图片加载失败","message.image.save":"保存图片","message.image.save.success":"图片保存成功","message.image.save.failed":"图片保存失败","quickreply.search.placeholder":"搜索","quickreply.button.send":"发送","quickreply.button.copy":"复制","quickreply.button.create.category":"创建分类","quickreply.button.create.reply":"创建快捷回复","quickreply.copy.success":"{content} 已复制到剪贴板","category.form.edit.title":"编辑分类","category.form.create.title":"创建分类","category.form.name":"分类名称","category.form.name.required":"请输入分类名称!","category.form.name.placeholder":"输入分类名称","category.create.failed":"创建分类失败","quickreply.drawer.title":"{isEdit, select, true {编辑快捷回复} other {新建快捷回复}}","quickreply.form.category":"分类","quickreply.form.category.required":"请选择分类","quickreply.form.category.placeholder":"选择分类","quickreply.form.type":"类型","quickreply.form.type.required":"请选择类型","quickreply.form.type.placeholder":"选择类型","quickreply.form.title":"标题","quickreply.form.title.required":"请输入标题","quickreply.form.content":"内容","quickreply.type.text":"文本","quickreply.type.image":"图片","quickreply.type.video":"视频","quickreply.type.audio":"音频","quickreply.type.file":"文件","quickreply.upload.text":"点击或拖拽文件上传","quickreply.upload.success":"{filename} 上传成功","quickreply.upload.error":"{filename} 上传失败","quickreply.upload.uploading":"{filename} 上传中","quickreply.form.validate.error":"请检查表单"},rIt={"profile.update.success":"个人信息更新成功","profile.form.avatar":"头像","profile.form.upload":"上传","profile.form.username":"用户名","profile.form.nickname":"昵称","profile.form.description":"描述","profile.button.change.password":"修改密码","profile.button.change.email":"修改邮箱","profile.button.change.mobile":"修改手机号","profile.email.verified":"邮箱已验证","profile.email.unverified":"邮箱未验证","profile.mobile.verified":"手机已验证","profile.mobile.unverified":"手机未验证","profile.email.change.title":"修改邮箱","profile.email.placeholder":"请输入邮箱地址","profile.email.required":"请输入邮箱地址!","profile.email.format.invalid":"邮箱格式不正确","profile.email.length.limit":"邮箱不得超过50字符","profile.email.verification.code.placeholder":"请输入验证码","profile.email.verification.code.countdown":"秒后重新获取","profile.email.verification.code.get":"获取验证码","profile.email.verification.code.required":"请输入验证码!","profile.email.not.changed":"邮箱未更改!","profile.email.change.success":"邮箱修改成功!","profile.email.format.error":"邮箱格式错误","profile.mobile.change.title":"修改手机号","profile.mobile.placeholder":"请输入手机号","profile.mobile.required":"请输入手机号!","profile.mobile.format.invalid":"手机号格式错误!","profile.mobile.verification.code.placeholder":"请输入验证码","profile.mobile.verification.code.countdown":"秒后重新获取","profile.mobile.verification.code.get":"获取验证码","profile.mobile.verification.code.required":"请输入验证码!","profile.mobile.not.changed":"手机号未更改!","profile.mobile.change.success":"手机号修改成功!","profile.mobile.format.error":"手机号格式错误","profile.password.change.title":"修改密码","profile.password.old":"原密码","profile.password.old.empty":"手机号直接登录用户,可以留空","profile.password.new":"新密码","profile.password.confirm":"确认密码","profile.password.length.error":"密码最小长度不能小于6","profile.password.mismatch":"两次输入密码不一致","profile.password.change.success":"密码修改成功!"},oIt={"setting.menu.title":"设置","setting.menu.profile":"个人信息","setting.menu.basic":"基本设置","setting.menu.agent":"客服设置","setting.menu.model":"大模型","setting.menu.certification":"实名认证","setting.menu.qrcode":"二维码","setting.menu.shortcut":"快捷键","setting.menu.click":"菜单点击","setting.save.success":"设置保存成功","setting.save.error":"设置保存失败","setting.load.error":"设置加载失败","setting.header.profile":"个人信息","setting.header.basic":"基本设置","setting.header.agent":"客服设置","setting.header.model":"大模型设置","setting.basic.sound.on":"已开启消息提示音","setting.basic.sound.off":"已关闭消息提示音","setting.basic.notification.on":"已开启网络状态通知","setting.basic.notification.off":"已关闭网络状态通知","setting.basic.connection.status":"长链接状态:","setting.basic.connection.connected":"✅连接正常","setting.basic.connection.disconnected":"❌连接断开","setting.basic.startup":"开机启动:","setting.basic.startup.on":"开机启动","setting.basic.startup.off":"不开机启动","setting.basic.theme":"颜色主题:","setting.basic.language":"语言设置:","setting.basic.mode":"模式设置:","setting.basic.mode.team":"团队模式","setting.basic.mode.agent":"客服模式","setting.basic.mode.personal":"个人模式"},iIt={"thread.error.message":"获取数据失败","thread.feature.unavailable":"TODO: 该功能暂未开放","thread.menu.top":"置顶","thread.menu.untop":"取消置顶","thread.menu.read":"标记已读","thread.menu.unread":"标记未读","thread.menu.mute":"静音","thread.menu.unmute":"取消静音","thread.menu.transfer":"转接","thread.menu.block":"拉黑","thread.menu.ticket":"创建工单","thread.menu.crm":"查看CRM","thread.menu.summary":"会话总结","thread.status.robot":"[机器人]","thread.status.agent":"[一对一]","thread.status.workgroup":"[工作组]","thread.search.placeholder":"搜索会话...","thread.menu.filter":"会话过滤","thread.menu.groupThread":"群聊会话","thread.menu.robotThread":"机器人会话","thread.menu.workgroupThread":"工作组会话","thread.menu.agentThread":"一对一会话","thread.menu.ticketThread":"工单会话","thread.menu.memberThread":"成员会话","thread.menu.deviceThread":"设备会话","thread.menu.systemThread":"系统会话","thread.dropdown.create.group":"创建群聊","thread.dropdown.create.ai":"创建AI对话","thread.agent.status.online":"😀 - 在线接待","thread.agent.status.offline":"🔻 - 客服下线","thread.agent.status.busy":"🏃‍♀️ - 客服忙碌","thread.refresh.pull":"↓ 下拉刷新","thread.refresh.release":"↑ 松开刷新","thread.list.no.more":"没有更多了","thread.coming.soon":"即将上线,敬请期待","thread.set.success":"设置成功","thread.set.error":"设置失败","thread.menu.star":"星标","thread.menu.star.1":"星标1","thread.menu.star.2":"星标2","thread.menu.star.3":"星标3","thread.menu.star.4":"星标4","thread.menu.hide":"隐藏","thread.status.text":"{status}","thread.status.online":"😀接待","thread.status.offline":"🔻下线","thread.status.busy":"🏃‍♀️忙碌","thread.status.loading":"加载中...","thread.status.empty":"暂无会话","thread.status.error":"加载会话失败","thread.status.queue":"排队({count})","thread.status.network.offline":"网络已断开","thread.status.network.online":"网络已连接","thread.status.message.pulling":"消息拉取中...","thread.status.message.empty":"暂无消息","thread.status.message.error":"加载消息失败","thread.status.message.end":"没有更多消息","thread.status.message.typing":"正在输入...","thread.status.message.transfer":"转接中...","thread.status.message.transferred":"已转接","thread.status.message.closed":"会话已关闭","thread.menu.star.cancel":"取消星标","thread.loading.more":"加载更多..."},aIt={"ticket.create.title":"创建工单","ticket.edit.title":"编辑工单","ticket.form.uid":"编号","ticket.form.title":"标题","ticket.form.title.required":"请输入工单标题","ticket.form.title.placeholder":"请输入工单标题","ticket.form.description":"描述","ticket.form.description.required":"请输入工单描述","ticket.form.description.placeholder":"请输入工单描述","ticket.form.status":"状态","ticket.form.status.required":"请选择工单状态","ticket.form.priority":"优先级","ticket.form.priority.required":"请选择优先级","ticket.form.category":"分类","ticket.form.category.required":"请选择工单分类","ticket.form.category.placeholder":"请选择工单分类","ticket.form.user":"客户","ticket.form.user.placeholder":"请选择客户","ticket.form.assignee":"处理人","ticket.form.assignee.placeholder":"请选择处理人","ticket.form.reporter":"报告人","ticket.form.reporter.placeholder":"请选择报告人","ticket.form.workgroup":"技能组","ticket.form.workgroup.required":"请选择技能组","ticket.form.workgroup.placeholder":"请选择技能组","ticket.workgroup.load.error":"加载技能组失败","ticket.status.all":"全部状态","ticket.status.new":"新建","ticket.status.assigned":"已分配","ticket.status.in_progress":"处理中","ticket.status.pending":"待处理","ticket.status.on_hold":"挂起","ticket.status.reopened":"重新打开","ticket.status.resolved":"已解决","ticket.status.closed":"已关闭","ticket.status.cancelled":"已取消","ticket.priority.all":"全部优先级","ticket.priority.lowest":"最低","ticket.priority.low":"低","ticket.priority.medium":"中","ticket.priority.high":"高","ticket.priority.urgent":"紧急","ticket.priority.critical":"严重","ticket.create.success":"工单创建成功","ticket.create.failed":"工单创建失败","ticket.update.success":"工单更新成功","ticket.update.failed":"工单更新失败","ticket.submit.error":"工单提交失败","ticket.delete.success":"工单删除成功","ticket.delete.error":"工单删除失败","ticket.load.error":"工单数据加载失败","ticket.list.title":"工单列表","ticket.list.empty":"暂无工单","ticket.list.search.placeholder":"搜索工单","ticket.list.filter.all":"全部工单","ticket.list.filter.my":"我的工单","ticket.list.filter.unassigned":"未分配","ticket.list.create":"创建工单","ticket.list.total":"工单总数","ticket.action.edit":"编辑","ticket.action.delete":"删除","ticket.action.assign":"分配","ticket.action.close":"关闭","ticket.action.reopen":"重新打开","ticket.delete.confirm":"确定要删除此工单吗?","ticket.category.load.error":"加载工单分类失败","ticket.conversation.title":"工单对话","ticket.conversation.empty":"请选择工单查看对话","ticket.conversation.input.placeholder":"请输入消息...","ticket.details.title":"工单详情","ticket.details.empty":"请选择工单查看详情","ticket.messages.load.error":"加载工单消息失败","ticket.message.send.error":"发送消息失败","ticket.form.thread":"关联会话","ticket.form.thread.placeholder":"选择关联会话","ticket.form.thread.none":"不关联","ticket.form.createdAt":"创建时间","ticket.form.updatedAt":"更新时间","ticket.type.agent":"指定客服","ticket.type.workgroup":"技能组","ticket.assignee":"处理人","ticket.reporter":"报告人","ticket.type":"类型","ticket.category":"分类","ticket.steps.title":"流转过程","ticket.form.upload.button":"上传附件","ticket.upload.success":"文件上传成功","ticket.upload.failed":"文件上传失败","ticket.current.filters":"当前筛选","ticket.filter.by.status":"按状态筛选","ticket.filter.by.priority":"按优先级筛选","ticket.filter.by.assignment":"按分配筛选","ticket.filter.by.time":"按时间筛选","ticket.filter.status_all":"全部状态","ticket.filter.status_new":"新建","ticket.filter.status_assigned":"已分配","ticket.filter.status_in_progress":"处理中","ticket.filter.status_pending":"待处理","ticket.filter.status_on_hold":"挂起","ticket.filter.status_reopened":"重新打开","ticket.filter.status_resolved":"已解决","ticket.filter.status_closed":"已关闭","ticket.filter.status_cancelled":"已取消","ticket.filter.priority_all":"全部优先级","ticket.filter.priority_lowest":"最低","ticket.filter.priority_low":"低","ticket.filter.priority_medium":"中","ticket.filter.priority_high":"高","ticket.filter.priority_urgent":"紧急","ticket.filter.priority_critical":"严重","ticket.filter.assignment_all":"全部","ticket.filter.assignment_my_tickets":"我的工单","ticket.filter.assignment_unassigned":"未分配","ticket.filter.assignment_my_workgroup":"我的技能组","ticket.filter.assignment_my_created":"我创建的","ticket.filter.assignment_my_assigned":"待我处理","ticket.filter.time_all":"全部时间","ticket.filter.time_today":"今天","ticket.filter.time_yesterday":"昨天","ticket.filter.time_this_week":"本周","ticket.filter.time_last_week":"上周","ticket.filter.time_this_month":"本月","ticket.filter.time_last_month":"上月","ticket.content.title":"工单","ticket.content.number":"编号","ticket.delete.title":"删除工单","ticket.delete.content":"确定要删除此工单吗?","ticket.delete.failed":"工单删除失败","ticket.loading":"加载工单...","ticket.empty":"暂无工单"},sIt={"contact.list.new":"新朋友","contact.list.device":"内网设备","contact.list.group":"群聊","contact.list.channel":"频道","contact.list.company":"企业联系人","contact.list.friend":"联系人","contact.search.placeholder":"搜索联系人...","contact.manager.button":"通讯录管理","contact.manager.coming":"敬请期待","member.detail.nickname":"昵称","member.detail.jobno":"工号","member.detail.seatno":"座位号","member.detail.telephone":"电话","member.detail.loading":"加载中...","member.detail.chat.button":"开始聊天"},lIt={"group.create.title":"发起群聊","group.create.contacts":"好友","group.create.members":"群成员","group.create.members.min":"至少选择2名成员","group.create.creating":"创建群组中...","group.create.org.empty":"未选择组织","group.create.success":"创建群组成功","group.create.failed":"创建群组失败","group.create.loading":"加载成员中...","group.create.error":"加载成员失败"},cIt={"robot.create.title":"创建机器人","robot.create.available":"可选机器人","robot.create.selected":"已选机器人","robot.create.success":"创建机器人成功","robot.create.failed":"创建机器人失败","robot.create.loading":"创建机器人中...","robot.create.error":"加载机器人失败","robot.create.empty":"暂无可用机器人","robot.create.min":"请至少选择一个机器人"},uIt={"autoreply.title":"自动回复","autoreply.enable.label":"是否启用自动回复","autoreply.type.label":"自动回复类型","autoreply.type.fixed":"固定回复","autoreply.type.keyword":"关键字匹配","autoreply.type.llm":"大模型回复","autoreply.fixed.add":"添加固定回复内容","autoreply.fixed.select":"选择固定回复内容","autoreply.fixed.type":"固定回复类型","autoreply.fixed.content":"固定回复内容","autoreply.content.text":"文本","autoreply.content.image":"图片","autoreply.content.video":"视频","autoreply.content.audio":"音频","autoreply.content.file":"文件","autoreply.save.loading":"正在保存,请稍后...","autoreply.save.success":"保存成功","autoreply.save.error":"保存失败","autoreply.keyword.add":"添加关键词知识库","autoreply.keyword.select":"选择关键词知识库","autoreply.llm.add":"添加大模型知识库","autoreply.llm.select":"选择大模型知识库"},dIt={"upload.modal.title":"上传文件","upload.drag.text":"点击或拖拽文件至此处上传","upload.drag.hint":"支持单个或批量上传","upload.uploading":"{filename} 上传中...","upload.success":"{filename} 上传成功","upload.failed":"{filename} 上传失败","upload.delete.confirm":"确定要删除此文件吗?","upload.preview.image":"图片预览","upload.preview.file":"文件预览","upload.button.ok":"确定","upload.button.cancel":"取消"},fIt={...YRt,...XRt,...QRt,...JRt,...ZRt,...eIt,...tIt,...qRt,...nIt,...GRt,...rIt,...oIt,...iIt,...aIt,...KRt,...sIt,...lIt,...cIt,...uIt,...dIt},hIt={i18_file_assistant:"檔案助手",slogan:"对话即服务","menu.dashboard.chat":"消息","menu.dashboard.contact":"通讯录","menu.dashboard.queue":"排队","menu.dashboard.ticket":"工单","menu.dashboard.leavemsg":"留言","menu.dashboard.visitor":"访客","menu.dashboard.monitor":"监控","menu.dashboard.plugins":"插件","menu.dashboard.mine":"我的","chat.toolbar.emoji":"表情","chat.toolbar.image":"图片","chat.toolbar.file":"文件","chat.toolbar.audio":"录音","chat.toolbar.webrtc":"视频","chat.toolbar.history":"历史消息","chat.toolbar.block":"拉黑","chat.toolbar.screenshot":"截图","chat.toolbar.invite.rate":"邀请评价","chat.toolbar.autoreply":"自动回复","chat.toolbar.autoreply.on":"自动回复(已开启)","chat.navbar.transfer":"转接","chat.navbar.ticket":"工单","chat.navbar.crm":"Crm","chat.navbar.close":"结束","chat.navbar.category":"分类","chat.navbar.ai":"AI","chat.navbar.queue":"排队","chat.right.ai":"Copilot","chat.right.quickreply":"快捷回复","chat.right.ticket":"工单","chat.right.userinfo":"用户信息","chat.right.llm":"大模型","chat.right.docview":"文档预览","chat.right.group":"群详情","chat.right.member":"联系人","chat.ai.summary":"会话小结","chat.ai.switch":"切换AI","chat.thread.nomore":"没有更多了","chat.message.loadmore":"加载更多","dashboard.footbar.logout":"退出",SERVICE:"客服機器人",MARKETING:"營銷機器人",KNOWLEDGEBASE:"知識庫機器人(内部)",QA:"問答機器人(直接调用大模型)",AGENT_ASSISTANT:"客服助手(内部)",loading:"載入中",create:"新增",creating:"新增中...","create.success":"新增成功","create.fail":"新增失敗",update:"更新",updating:"更新中...","update.success":"更新成功","update.fail":"更新失敗",save:"儲存",saving:"正在儲存...",email:"電子郵件","email.verified":"電子郵件(已驗證)","email.unverified":"電子郵件(待驗證)",mobile:"手機號碼","mobile.verified":"手機號碼(已驗證)","mobile.unverified":"手機號碼(待驗證)",captcha:"验证码",logging:"登录中...","login.success":"登录成功","login.error":"登录失败,请稍后重试",registering:"注册中...","register.success":"注册成功","register.error":"注册失败","username.change.tip":"登入用戶名(修改用戶名之後,需要重新登入)",createKb:"创建知识库",createDept:"创建部门",upload:"上传",import:"匯入",export:"匯出","download.template":"下载模板",open:"開啟",copy:"複製","copy.success":"複製成功",ok:"確定",cancel:"取消",bind:"綁定",edit:"編輯",editing:"編輯中...","edit.success":"編輯成功","edit.fail":"編輯失敗",delete:"刪除",deleting:"删除中...",deleteTip:"刪除提示",deleteAffirm:"確定要刪除","delete.success":"刪除成功","delete.fail":"删除失败","process.success":"处理成功","process.fail":"处理失败",preview:"預覽",close:"關閉",closing:"關閉中...",closeTip:"關閉提示",closeASure:"確定要關閉","close.success":"關閉成功",choose:"選擇","leavemsg.enabled":"留言啟用",transfer:"转接","transfer.success":"转接成功","transfer.fail":"转接失败","transfer.reason":"转接原因",refresh:"刷新",noAgent:"无客服在线"},pIt={"menu.anonymous.title":"匿名模式","menu.anonymous.home":"訊息","menu.anonymous.contact":"聯絡人","menu.anonymous.robot":"機器人","menu.anonymous.setting":"設定","menu.anonymous.status":"匿名狀態","menu.anonymous.status.tip":"匿名模式僅支援同一區域網內的在線設備之間的通訊","menu.anonymous.login.tip":"登入以訪問離線訊息和更多功能","menu.anonymous.login":"登入","menu.anonymous.current.users":"當前用戶","menu.dashboard.chat":"聊天","menu.dashboard.contact":"聯絡人","menu.dashboard.ai":"AI助手","menu.dashboard.note":"筆記","menu.dashboard.kbase":"知識庫","menu.dashboard.mine":"設定","menu.dashboard.queue":"排隊","menu.dashboard.ticket":"工單","menu.dashboard.leavemsg":"留言","menu.dashboard.visitor":"訪客","menu.dashboard.monitor":"監控","menu.dashboard.plugins":"插件","menu.settings":"設定","menu.settings.logout":"登出","menu.agent.status":"客服狀態","menu.agent.status.available":"可用","menu.agent.status.rest":"休息","menu.agent.status.offline":"離線","menu.language":"語言","menu.mode":"模式","menu.mode.team":"團隊模式","menu.mode.agent":"一對一模式","menu.mode.personal":"個人模式","menu.agent.offline.warning":"請在離線前結束所有正在進行中的會話","menu.mode.personal.coming":"即將推出...","menu.dashboard.projectList":"專案","menu.dashboard.dailyReport":"日報","menu.dashboard.weeklyReport":"週報","menu.dashboard.reportCalendar":"日曆"},mIt={"pages.login.title":"登錄","pages.login.subtitle":"歡迎使用微語客服系統","pages.layouts.userLayout.title":"對話即服務","pages.login.accountLogin.tab":"帳戶密碼登錄","pages.login.accountLogin.errorMessage":"錯誤的用戶名和密碼","pages.login.failure":"登錄失敗,請檢查用戶名密碼!","pages.login.failureCode":"驗證碼錯誤","pages.login.success":"登錄成功!","pages.login.username.placeholder":"請輸入用戶名","pages.login.username.required":"用戶名是必填項!","pages.login.password.placeholder":"請輸入密碼","pages.login.repassword.placeholder":"確認密碼","pages.login.password.required":"密碼是必填項!","pages.login.repassword.required":"確認密碼是必填項!","pages.login.phoneLogin.tab":"手機號登錄","pages.login.phoneLogin.errorMessage":"驗證碼錯誤","pages.login.phoneNumber.placeholder":"請輸入手機號!","pages.login.phoneNumber.required":"手機號是必填項!","pages.login.phoneNumber.invalid":"不合法的手機號!","pages.login.captcha.placeholder":"請輸入驗證碼!","pages.login.captcha.required":"驗證碼是必填項!","pages.login.phoneLogin.getVerificationCode":"獲取驗證碼","pages.login.anonymousLogin":"匿名登錄","pages.getCaptchaSecondText":"秒後重新獲取","pages.login.scanLogin.tab":"掃碼登錄","pages.login.rememberMe":"自動登錄","pages.login.forgot":"忘記密碼","pages.login.submit":"登錄","pages.login.loginWith":"其他登錄方式 :","pages.login.register":"註冊賬號","pages.login.registerAccount":" 註冊帳戶","pages.login.auto.register":"未註冊手機號會自動註冊","pages.welcome.link":"歡迎使用","pages.welcome.title":"歡迎","pages.welcome.description":"微語客服系統是一個開源的客服系統","pages.welcome.getting-started":"開始使用","pages.welcome.view-docs":"查看文檔","pages.robot.new":"新建","pages.robot.chat":"聊天","pages.robot.edit":"编辑","pages.robot.delete":"刪除","pages.robot.upload":"上傳","pages.robot.tab.basic":"基本信息","pages.robot.tab.kb":"知識庫","pages.robot.tab.channel":"渠道對接","pages.robot.tab.statistic":"數據統計","pages.robot.tab.advanced":"高級設置","pages.robot.tab.flow":"流程設計","pages.robot.tab.avatar":"頭像","pages.robot.tab.title":"標題","pages.robot.tab.welcomeTip":"歡迎語","pages.robot.tab.description":"簡介","pages.robot.tab.preview":"實時預覽","pages.robot.tab.website":"官網","pages.robot.tab.helpdesk":"幫助文檔","pages.robot.tab.icp":"京ICP備案 17041763號-1","pages.robot.tab.police":"粵公安備案 44030502008688號","pages.robot.kb.file":"文件","pages.robot.kb.text":"文本","pages.robot.kb.qa":"問答","pages.robot.kb.web":"網站","pages.robot.file.title":"文件名","pages.robot.file.type":"文件類型","pages.robot.file.size":"文件大小","pages.robot.file.action":"操作","pages.robot.file.delete":"刪除","pages.robot.file.save":"保存","pages.robot.file.cancel":"取消","pages.robot.file.uploading":"上傳中...","pages.robot.file.name_invalid":"文件名不能包含 _ ","pages.robot.file.parse":"解析文件內容","pages.setting":"設置","pages.logout":"退出登錄","pages.footer.website":"微語官網","pages.footer.helpcenter":"帮助文档","pages.login.remember":"記住密碼","pages.agent.tab.basic":"基本信息","pages.agent.robot":"機器人","pages.agent.service.settings":"服务设置","pages.agent.service.settings.topTip":"顶部提示","pages.agent.service.settings.welcomeTip":"欢迎语","pages.agent.service.settings.leavemsgTip":"离线留言提示","pages.agent.service.settings.autoCloseMin":"自动关闭分钟","pages.agent.service.settings.showLogo":"显示Logo","pages.agent.service.settings.maxThreadCount":"最大线程数","pages.advanced.faq":"常見問題","pages.advanced.quickButton":"快捷按鈕","pages.advanced.faqGuess":"智能推薦","pages.advanced.faqHot":"熱門問題","pages.advanced.faqShortcut":"快捷回覆","pages.advanced.rate":"滿意度評價","pages.advanced.autoreply":"自動回覆","pages.advanced.leaveMsg":"留言設置","pages.advanced.survey":"調查問卷","pages.advanced.history":"歷史記錄","pages.advanced.inputAssociation":"輸入聯想","pages.advanced.antiHarassment":"驗證碼設置","pages.advanced.captcha":"驗證碼設置","pages.advanced.showPreForm":"顯示預覽","pages.advanced.showHistory":"顯示歷史","pages.advanced.showInputAssociation":"顯示輸入聯想","pages.advanced.showCaptcha":"顯示驗證碼","pages.login.country.placeholder":"選擇國家/地區","pages.login.country.china":"中國大陸","pages.login.country.hongkong":"中國香港","pages.login.country.taiwan":"中國台灣","pages.login.country.macao":"中國澳門","pages.login.country.japan":"日本","pages.login.country.korea":"韓國","pages.login.country.usa":"美國","pages.login.country.canada":"加拿大","pages.login.country.uk":"英國","pages.login.country.germany":"德國","pages.login.country.france":"法國","pages.login.country.australia":"澳大利亞","pages.login.country.singapore":"新加坡","pages.login.country.malaysia":"馬來西亞","pages.login.country.thailand":"泰國","pages.login.country.vietnam":"越南","pages.login.country.philippines":"菲律賓","pages.login.country.indonesia":"印度尼西亞","pages.login.country.italy":"意大利","pages.login.country.spain":"西班牙","pages.login.country.russia":"俄羅斯","pages.login.country.newzealand":"新西蘭","block.title":"拉黑設置","block.type":"拉黑類型","block.user":"拉黑用戶","block.ip":"拉黑IP","block.permanent":"永久封禁","block.until":"封禁至","block.until.required":"請選擇封禁結束時間","pages.register.title":"註冊","pages.register.subtitle":"創建您的賬號","pages.register.username":"用戶名","pages.register.password":"密碼","pages.register.confirm":"確認密碼","pages.register.email":"郵箱","pages.register.mobile":"手機號","pages.register.code":"驗證碼","pages.register.agreement":"我已閱讀並同意","pages.register.agreement.terms":"服務條款","pages.register.submit":"註冊","pages.register.login":"使用已有賬號登錄","pages.404.title":"404","pages.404.subtitle":"抱歉,您訪問的頁面不存在","pages.404.description":"您可以嘗試以下操作:","pages.404.actions.back":"返回上一頁","pages.404.actions.home":"返回首頁","pages.403.title":"403","pages.403.subtitle":"抱歉,您沒有訪問該頁面的權限","pages.403.description":"請聯繫管理員獲取權限","pages.403.actions.back":"返回上一頁","pages.500.title":"500","pages.500.subtitle":"抱歉,服務器出錯了","pages.500.description":"請稍後再試或聯繫技術支持","pages.500.actions.back":"返回上一頁","pages.500.actions.home":"返回首頁"},gIt={"app.title":"微語","app.logout":"登出","app.copyright.produced":"微語出品","app.preview.down.block":"下載此頁面到本地項目","app.welcome.link.fetch-blocks":"獲取全部區塊","app.welcome.link.block-list":"基於 block 開發,快速構建標準頁面","navBar.lang":"語言","layout.user.link.help":"幫助","layout.user.link.privacy":"隱私","layout.user.link.terms":"條款","theme.light":"淺色","theme.dark":"深色","theme.system":"自動","setting.lang":"Languages","setting.theme":"主題","app.name":"微語客服","app.description":"新一代智能客服系統","app.welcome":"歡迎使用微語客服系統","app.copyright":"© 2024 微語客服. 保留所有權利.","app.version":"版本","app.action.back":"返回","app.action.confirm":"確認","app.action.cancel":"取消","app.action.save":"保存","app.action.edit":"編輯","app.action.delete":"刪除","app.action.refresh":"刷新","app.action.search":"搜索","app.action.more":"更多","app.action.settings":"設置","app.action.help":"幫助","app.tip.loading":"加載中...","app.tip.success":"操作成功","app.tip.error":"操作失敗","app.tip.warning":"警告","app.tip.info":"提示","app.tip.confirm":"確認要執行此操作嗎?","app.tip.nodata":"暫無數據","app.tip.network.error":"網絡連接失敗","app.tip.server.error":"服務器錯誤","app.status.online":"在線","app.status.offline":"離線","app.status.busy":"忙碌","app.status.away":"離開","app.status.invisible":"隱身","app.status.disabled":"已禁用","app.status.expired":"已過期","app.time.today":"今天","app.time.yesterday":"昨天","app.time.tomorrow":"明天","app.time.just":"剛剛","app.time.minutes":"{count} 分鐘前","app.time.hours":"{count} 小時前","app.time.days":"{count} 天前","app.file.upload":"上傳文件","app.file.download":"下載文件","app.file.preview":"預覽文件","app.file.size.limit":"文件大小不能超過 {size}","app.file.type.unsupported":"不支持的文件類型","app.file.upload.success":"上傳成功","app.file.upload.failed":"上傳失敗","app.file.download.success":"下載成功","app.file.download.failed":"下載失敗","app.layout.sidebar.collapse":"收起側邊欄","app.layout.sidebar.expand":"展開側邊欄","app.layout.header.profile":"個人中心","app.layout.header.logout":"退出登錄","app.layout.footer.copyright":"版權所有","app.layout.footer.terms":"服務條款","app.layout.footer.privacy":"隱私政策"},vIt={"auth.login.title":"登錄","auth.login.subtitle":"歡迎使用微語客服系統","auth.login.username":"用戶名","auth.login.username.required":"請輸入用戶名","auth.login.password":"密碼","auth.login.password.required":"請輸入密碼","auth.login.remember":"記住密碼","auth.login.forgot":"忘記密碼?","auth.login.submit":"登錄","auth.login.other":"其他登錄方式","auth.login.register":"註冊賬號","auth.login.success":"登錄成功","auth.login.failed":"登錄失敗","auth.register.title":"註冊","auth.register.subtitle":"創建新賬號","auth.register.username":"用戶名","auth.register.username.required":"請輸入用戶名","auth.register.email":"郵箱","auth.register.email.required":"請輸入郵箱","auth.register.password":"密碼","auth.register.password.required":"請輸入密碼","auth.register.confirm":"確認密碼","auth.register.confirm.required":"請確認密碼","auth.register.submit":"註冊","auth.register.login":"已有賬號?登錄","auth.register.success":"註冊成功","auth.register.failed":"註冊失敗","auth.forgot.title":"忘記密碼","auth.forgot.subtitle":"重置密碼","auth.forgot.email":"郵箱","auth.forgot.email.required":"請輸入郵箱","auth.forgot.submit":"提交","auth.forgot.back":"返回登錄","auth.forgot.success":"重置密碼郵件已發送","auth.forgot.failed":"重置密碼失敗","auth.reset.title":"重置密碼","auth.reset.subtitle":"設置新密碼","auth.reset.password":"新密碼","auth.reset.password.required":"請輸入新密碼","auth.reset.confirm":"確認密碼","auth.reset.confirm.required":"請確認新密碼","auth.reset.submit":"提交","auth.reset.success":"密碼重置成功","auth.reset.failed":"密碼重置失敗","auth.verify.code":"驗證碼","auth.verify.code.required":"請輸入驗證碼","auth.verify.code.send":"發送驗證碼","auth.verify.code.resend":"重新發送","auth.verify.code.success":"驗證碼發送成功","auth.verify.code.failed":"驗證碼發送失敗","auth.password.strength.weak":"密碼強度:弱","auth.password.strength.medium":"密碼強度:中","auth.password.strength.strong":"密碼強度:強","auth.agreement.text":"我已閱讀並同意","auth.agreement.terms":"服務條款","auth.agreement.privacy":"隱私政策","server.button.back":"返回","server.button.save":"保存","server.button.reset":"重置","server.button.help":"幫助","server.save.success":"保存成功","server.reset.success":"重置成功,已恢復默認雲服務器","server.custom.enable":"啟用自定義服務器","server.api.url.label":"API服務器地址 (例如: http://127.0.0.1:9003 或 https://api.bytedesk.com)","server.api.url.placeholder":"http://127.0.0.1:9003","server.websocket.url.label":"WebSocket服務器地址 (例如: ws://127.0.0.1:9885/websocket 或 wss://api.bytedesk.com/websocket)","server.websocket.url.placeholder":"ws://127.0.0.1:9885/websocket","server.input.error":"請輸入正確的服務器地址"},yIt={"chat.title":"會話","chat.empty":"暫無會話","chat.loading":"加載中...","chat.load.error":"加載失敗","chat.load.more":"加載更多","chat.no.more":"沒有更多了","chat.refresh":"刷新","chat.status.connecting":"連接中...","chat.status.connected":"已連接","chat.status.disconnected":"連接斷開","chat.status.reconnecting":"重新連接中...","chat.network.error":"網絡連接失敗,請檢查網絡","chat.thread.closing":"結束會話中...","chat.thread.close.success":"結束會話成功","chat.thread.close.failed":"結束會話失敗","chat.thread.close.confirm.title":"確定要結束會話?","chat.rate.invite.confirm.title":"確認要邀請評價?","chat.message.send.failed":"發送失敗","chat.message.resend":"重新發送","chat.message.recall":"撤回消息","chat.message.copy.success":"複製成功","chat.copy.success":"複製成功","chat.menu.copy":"複製","chat.menu.translate":"翻譯","chat.menu.recall":"撤回","chat.menu.enlarge":"放大閱讀","chat.menu.quickreply.add":"添加快捷回復...","chat.menu.browser.open":"瀏覽器打開","chat.menu.forward":"轉發...","chat.menu.collect":"收藏","chat.menu.quote":"引用","chat.input.placeholder":"請輸入內容, Ctrl+V 粘貼截圖/圖片","chat.translation.placeholder":"請輸入翻譯內容...","chat.input.send":"發送","chat.input.sending":"發送中...","chat.toolbar.emoji":"表情","chat.toolbar.image":"圖片","chat.toolbar.file":"文件","chat.toolbar.screenshot":"截圖","chat.toolbar.autoreply":"自動回復","chat.toolbar.audio":"錄音","chat.toolbar.webrtc":"視頻會話","chat.upload.size.limit":"文件大小不能超過 {size}","chat.upload.type.unsupported":"不支持的文件類型","chat.upload.failed":"上傳失敗","chat.upload.success":"上傳成功","chat.upload.progress":"上傳中 {progress}%","chat.webrtc.calling":"呼叫中...","chat.webrtc.incoming":"來電...","chat.webrtc.connected":"通話中...","chat.webrtc.ended":"通話結束","chat.webrtc.rejected":"對方拒絕","chat.webrtc.busy":"對方忙","chat.webrtc.failed":"通話失敗","chat.webrtc.accept":"接受","chat.webrtc.reject":"拒絕","chat.webrtc.hangup":"掛斷","chat.navbar.transfer":"轉接","chat.navbar.close":"結束","chat.navbar.note":"筆記","chat.navbar.kbase":"知識庫","chat.right.quickreply":"快捷回覆","chat.right.userinfo":"訪客信息","chat.right.ai":"AI助手","chat.right.ticket":"工單","chat.right.llm":"大模型","chat.right.docview":"文檔查看","chat.right.group":"群組信息","chat.right.member":"成員信息","chat.group.notice":"群公告","chat.group.members":"群成員","chat.group.admins":"管理員","chat.group.robots":"機器人","chat.group.qrcode":"二維碼","chat.group.uid.error":"群組ID錯誤"},bIt={"common.confirm":"確認","common.cancel":"取消","common.submit":"提交","common.reset":"重置","common.save":"保存","common.delete":"刪除","common.edit":"編輯","common.add":"添加","common.search":"搜索","common.back":"返回","common.next":"下一步","common.previous":"上一步","common.more":"更多","common.loading":"加載中...","common.success":"操作成功","common.failed":"操作失敗","common.error":"錯誤","common.warning":"警告","common.info":"提示","common.status.online":"在線","common.status.offline":"離線","common.status.busy":"忙碌","common.status.away":"離開","common.status.invisible":"隱身","common.operation.success":"操作成功","common.operation.failed":"操作失敗","common.operation.confirm":"確認要執行此操作嗎?","common.operation.processing":"處理中...","common.operation.completed":"處理完成","common.operation.error":"處理出錯","common.form.required":"此項為必填項","common.form.optional":"選填","common.form.invalid":"輸入無效","common.form.validate.error":"表單驗證失敗","common.form.validate.success":"表單驗證通過"},SIt={"customer.list.title":"客戶列表","customer.list.empty":"暫無客戶","customer.list.loading":"加載中...","customer.list.load.error":"加載失敗","customer.list.load.more":"加載更多","customer.list.no.more":"沒有更多了","customer.list.refresh":"刷新","customer.info.basic":"基本信息","customer.info.name":"姓名","customer.info.nickname":"暱稱","customer.info.gender":"性別","customer.info.age":"年齡","customer.info.birthday":"生日","customer.info.mobile":"手機號","customer.info.email":"郵箱","customer.info.address":"地址","customer.info.company":"公司","customer.info.position":"職位","customer.info.remark":"備註","customer.info.tags":"標籤","customer.info.source":"來源","customer.info.created":"創建時間","customer.info.updated":"更新時間","customer.status.online":"在線","customer.status.offline":"離線","customer.status.away":"離開","customer.status.busy":"忙碌","customer.status.blocked":"已拉黑","customer.action.edit":"編輯","customer.action.delete":"刪除","customer.action.block":"拉黑","customer.action.unblock":"取消拉黑","customer.action.transfer":"轉移","customer.action.merge":"合併","customer.action.export":"導出","customer.form.name":"姓名","customer.form.name.required":"請輸入姓名","customer.form.nickname":"暱稱","customer.form.gender":"性別","customer.form.age":"年齡","customer.form.birthday":"生日","customer.form.mobile":"手機號","customer.form.email":"郵箱","customer.form.address":"地址","customer.form.company":"公司","customer.form.position":"職位","customer.form.remark":"備註","customer.form.tags":"標籤","customer.form.source":"來源","customer.create.success":"客戶創建成功","customer.create.failed":"客戶創建失敗","customer.update.success":"客戶更新成功","customer.update.failed":"客戶更新失敗","customer.delete.success":"客戶刪除成功","customer.delete.failed":"客戶刪除失敗","customer.block.success":"客戶拉黑成功","customer.block.failed":"客戶拉黑失敗","customer.unblock.success":"取消拉黑成功","customer.unblock.failed":"取消拉黑失敗","customer.transfer.success":"客戶轉移成功","customer.transfer.failed":"客戶轉移失敗","customer.merge.success":"客戶合併成功","customer.merge.failed":"客戶合併失敗","customer.export.success":"客戶導出成功","customer.export.failed":"客戶導出失敗","black.title":"拉黑設置","black.type":"拉黑類型","black.type.required":"請選擇至少一種拉黑類型","black.user":"拉黑用戶","black.ip":"拉黑IP","black.permanent":"永久拉黑","black.until":"拉黑截至","black.until.required":"請選擇拉黑截至時間","black.reason":"拉黑原因","black.reason.required":"請輸入拉黑原因","black.reason.placeholder":"請輸入拉黑原因","black.success":"拉黑成功"},CIt={"dashboard.menu.overview":"總覽","dashboard.menu.workbench":"工作台","dashboard.menu.monitor":"監控台","dashboard.menu.workplace":"工作區","dashboard.menu.message":"消息中心","dashboard.menu.settings":"系統設置","dashboard.overview.title":"總覽","dashboard.overview.total.conversations":"總會話數","dashboard.overview.total.customers":"總客戶數","dashboard.overview.total.tickets":"總工單數","dashboard.overview.total.agents":"總客服數","dashboard.overview.online.agents":"在線客服","dashboard.overview.waiting.customers":"排隊訪客","dashboard.overview.avg.response.time":"平均響應時間","dashboard.overview.avg.handle.time":"平均處理時間","dashboard.stats.title":"數據統計","dashboard.stats.realtime":"實時數據","dashboard.stats.today":"今日統計","dashboard.stats.yesterday":"昨日統計","dashboard.stats.week":"本週統計","dashboard.stats.month":"本月統計","dashboard.stats.custom":"自定義時段","dashboard.workbench.online":"在線狀態","dashboard.workbench.offline":"離線狀態","dashboard.workbench.busy":"忙碌狀態","dashboard.workbench.away":"離開狀態","dashboard.workbench.auto.distribution":"自動分配","dashboard.workbench.manual.distribution":"手動分配","dashboard.workbench.max.session":"最大會話數","dashboard.workbench.current.session":"當前會話數","dashboard.monitor.system":"系統監控","dashboard.monitor.performance":"性能監控","dashboard.monitor.network":"網絡監控","dashboard.monitor.server":"服務器狀態","dashboard.monitor.database":"數據庫狀態","dashboard.monitor.cache":"緩存狀態","dashboard.monitor.queue":"隊列狀態","dashboard.workplace.quick.start":"快速開始","dashboard.workplace.recent":"最近訪問","dashboard.workplace.todo":"待辦事項","dashboard.workplace.announcement":"系統公告","dashboard.workplace.calendar":"工作日曆","dashboard.workplace.links":"常用鏈接","dashboard.message.all":"全部消息","dashboard.message.unread":"未讀消息","dashboard.message.system":"系統消息","dashboard.message.business":"業務消息","dashboard.message.operation":"運營消息","dashboard.monitor.title":"實時監控","dashboard.monitor.online.status":"在線狀態","dashboard.monitor.conversation.status":"會話狀態","dashboard.monitor.queue.status":"排隊狀態","dashboard.monitor.system.status":"系統狀態","dashboard.monitor.refresh":"刷新","dashboard.monitor.auto.refresh":"自動刷新","dashboard.analysis.title":"數據分析","dashboard.analysis.conversation.trend":"會話趨勢","dashboard.analysis.customer.trend":"客戶趨勢","dashboard.analysis.ticket.trend":"工單趨勢","dashboard.analysis.satisfaction.trend":"滿意度趨勢","dashboard.analysis.time.range":"時間範圍","dashboard.analysis.export":"導出數據","dashboard.workplace.title":"工作台","dashboard.workplace.my.conversations":"我的會話","dashboard.workplace.my.tickets":"我的工單","dashboard.workplace.my.tasks":"我的任務","dashboard.workplace.my.performance":"我的績效","dashboard.workplace.quick.actions":"快捷操作","dashboard.workplace.announcements":"公告通知","dashboard.report.title":"統計報表","dashboard.report.conversation":"會話報表","dashboard.report.customer":"客戶報表","dashboard.report.ticket":"工單報表","dashboard.report.agent":"客服報表","dashboard.report.satisfaction":"滿意度報表","dashboard.report.export":"導出報表","dashboard.chart.today":"今日","dashboard.chart.yesterday":"昨日","dashboard.chart.last7days":"最近7天","dashboard.chart.last30days":"最近30天","dashboard.chart.thisMonth":"本月","dashboard.chart.lastMonth":"上月","dashboard.chart.custom":"自定義","dashboard.chart.loading":"加載中...","dashboard.chart.no.data":"暫無數據","dashboard.tip.refresh.success":"刷新成功","dashboard.tip.refresh.failed":"刷新失敗","dashboard.tip.export.success":"導出成功","dashboard.tip.export.failed":"導出失敗","dashboard.tip.data.loading":"數據加載中...","dashboard.tip.data.load.failed":"數據加載失敗"},wIt={"i18n.lang.en-US":"English","i18n.lang.zh-CN":"简体中文","i18n.lang.zh-TW":"繁體中文","i18n.queue.tip":"排隊隊列","i18n.queue.message.template":"當前排隊人數:{0},大約等待時間:{1} 分鐘","i18n.queue.empty":"隊列為空","i18n.queue.accept":"接入","i18n.system.notification":"系統通知","i18n.system.notification.tip":"系統通知","i18n.old.password.wrong":"舊密碼錯誤","i18n.change.password":"修改密碼","i18n.auth.captcha.send.success":"驗證碼發送成功","i18n.auth.captcha.error":"驗證碼錯誤","i18n.auth.captcha.expired":"驗證碼過期","i18n.auth.captcha.already.send":"驗證碼已發送,請等待","i18n.auth.captcha.validate.failed":"驗證碼驗證失敗","i18n.faq":"常見問題","i18n.rate":"評價","i18n.input.placeholder":"請輸入內容","i18n.loading":"加载中...","i18n.load.more":"加载更多","i18n.load.nomore":"没有更多了","i18n.typing":"正在輸入...","i18n.robot":"[机器人]","i18n.agent":"[一对一]","i18n.workgroup":"[技能组]","i18n.group":"[群聊]","i18n.rate.invite":"邀請評價","i18n.ticket":"[工單]","i18n.notice":"通知","i18n.notice.title":"通知標題","i18n.notice.content":"通知內容","i18n.notice.ip":"IP","i18n.notice.ipLocation":"IP地址","i18n.notice.parse.file.success":"解析文件成功","i18n.notice.parse.file.error":"解析文件失败","i18n.DEPT.ALL":"全部","i18n.DEPT.ADMIN":"管理員","i18n.DEPT.HR":"人事部","i18n.DEPT.ORG":"行政部","i18n.DEPT.IT":"技術部","i18n.DEPT.MONEY":"財務部","i18n.DEPT.MARKETING":"市場部","i18n.DEPT.SALES":"銷售部","i18n.DEPT.CS":"客服部","i18n.new.message":"新消息","i18n.file.assistant":"文件助手","i18n.clipboard.assistant":"剪切板助手","i18n.thread.content.image":"圖片","i18n.thread.content.file":"文件","i18n.top.tip":"默認置顶語","i18n.top.make":"置頂","i18n.top.cancel":"取消置頂","i18n.unread.make":"设置未读","i18n.unread.cancel":"取消未读","i18n.star.make":"星标","i18n.star.cancel":"取消星标","i18n.disturb.make":"免打扰","i18n.disturb.cancel":"取消免打扰","i18n.transfer":"转接","i18n.hide":"隐藏","i18n.network.disconnected":"网络已断开","i18n.message.pulling":"消息拉取中...","i18n.leavemsg.tip":"無客服在線,請留言","i18n.welcome.tip":"您好,有什麼可以幫您的?","i18n.reenter.tip":"继续会话","i18n.under.development":"開發中...","i18n.user.description":"默認用戶描述","i18n.robot.nickname":"默認機器人","i18n.robot.description":"默認機器人描述","i18n.robot.noreply":"未找到相应答案","i18n.robot.agent.assistant.nickname":"默认机器人助手","i18n.llm.prompt":"你是一個聰明、對人類有幫助的人工智能,你可以對人類提出的問題給出有用、詳細、禮貌的回答","i18n.agent.nickname":"默認客服","i18n.agent.description":"默認客服描述","i18n.workgroup.nickname":"預設技能組","i18n.workgroup.description":"預設技能組描述","i18n.contact":"詢問聯繫方式","i18n.thanks":"感謝","i18n.welcome":"問候","i18n.bye":"告別","i18n.tip.title":"提示","i18n.tip.network.disconnected":"网络已断开","i18n.tip.network.connected":"网络已连接","i18n.kb.name":"默认知识库","i18n.kb.platform.name":"平台知识库","i18n.kb.helpcenter.name":"帮助文档知识库","i18n.kb.llm.name":"大模型知识库","i18n.kb.keyword.name":"关键词知识库","i18n.kb.faq.name":"常见问题知识库","i18n.kb.autoreply.name":"自动回复知识库","i18n.kb.quickreply.name":"快捷回复知识库","i18n.kb.taboo.name":"敏感词知识库","i18n.kb.description":"知识库默认描述","i18n.agent.nicknameKb":"默认客服知识库","i18n.contact.title":"方便的話請您提供一下您的聯繫電話","i18n.contact.content":"方便的話請您提供一下您的聯繫電話,我電話給您溝通一下,這樣更加直觀","i18n.thanks.title":"感謝光臨","i18n.thanks.content":"感謝光臨,歡迎再來","i18n.welcome.title":"您好","i18n.welcome.content":"您好,有什麼可以幫您的","i18n.bye.title":"您的滿意一直是我們的目標","i18n.bye.content":"您的滿意一直是我們的目標,如果有任何疑問歡迎您隨時聯繫","i18n.vip.api":"VIP API","i18n.faq.category.demo.1":"常見問題分類Demo1","i18n.faq.category.demo.2":"常見問題分類Demo2","i18n.faq.demo.title.1":"常見問題文字Demo1","i18n.faq.demo.content.1":"常見問題文字Demo1","i18n.faq.demo.title.2":"常見問題圖片Demo2","i18n.faq.demo.content.2":"https://www.weiyuai.cn/logo.png","i18n.quick.button.demo.title.1":"快捷按鈕文字Demo1","i18n.quick.button.demo.content.1":"快捷按鈕文字Demo1","i18n.quick.button.demo.title.2":"快捷按鈕連結Demo2","i18n.quick.button.demo.content.2":"https://www.weiyuai.cn","i18n.preview.title":"預覽","i18n.cancel":"取消","i18n.confirm":"確定","i18n.send":"發送","i18n.transferToAgent":"轉人工服務","i18n.auto.closed":"會話自動關閉","i18n.agent.closed":"客服關閉會話","i18n.online.chat":"在線客服","i18n.JOB":"工作","i18n.LANGUAGE":"語言","i18n.TOOL":"工具","i18n.WRITING":"寫作","i18n.RAG":"知識庫問答","i18n.module.ai":"AI","i18n.module.void":"空白","i18n.module.service":"客服","i18n.module.ticket":"工單","i18n.black.user.already.exists":"用戶已拉黑","i18n.ticket.category.technical_support":"技術支持","i18n.ticket.category.service_request":"服務請求","i18n.ticket.category.consultation":"咨詢","i18n.ticket.category.complaint_suggestion":"投訴建議","i18n.ticket.category.operation_maintenance":"運維","i18n.ticket.category.other":"其他","i18n.vip.component":"VIP組件, 聯繫我們了解更多詳情","i18n.vip.contactUs":"聯繫我們","i18n.vip.contactUrl":"https://www.weiyuai.cn/contact.html"},xIt={"message.type.text":"文本消息","message.type.image":"圖片消息","message.type.file":"文件消息","message.type.voice":"語音消息","message.type.video":"視頻消息","message.type.location":"位置消息","message.type.link":"鏈接消息","message.type.card":"卡片消息","message.type.system":"系統消息","message.type.notification":"通知消息","message.type.custom":"自定義消息","message.status.sending":"發送中","message.status.sent":"已發送","message.status.delivered":"已送達","message.status.read":"已讀","message.status.failed":"發送失敗","message.status.recalled":"已撤回","message.status.deleted":"已刪除","quickreply.search.placeholder":"搜索","quickreply.button.send":"發送","quickreply.button.copy":"複製","quickreply.button.create.category":"創建分類","quickreply.button.create.reply":"創建快捷回復","quickreply.copy.success":"{content} 已複製到剪貼板","category.form.edit.title":"編輯分類","category.form.create.title":"創建分類","category.form.name":"分類名稱","category.form.name.required":"請輸入分類名稱!","category.form.name.placeholder":"輸入分類名稱","category.create.failed":"創建分類失敗","quickreply.drawer.title":"{isEdit, select, true {編輯快捷回復} other {新建快捷回復}}","quickreply.form.category":"分類","quickreply.form.category.required":"請選擇分類","quickreply.form.category.placeholder":"選擇分類","quickreply.form.type":"類型","quickreply.form.type.required":"請選擇類型","quickreply.form.type.placeholder":"選擇類型","quickreply.form.title":"標題","quickreply.form.title.required":"請輸入標題","quickreply.form.content":"內容","quickreply.type.text":"文本","quickreply.type.image":"圖片","quickreply.type.video":"視頻","quickreply.type.audio":"音頻","quickreply.type.file":"文件","quickreply.upload.text":"點擊或拖拽文件上傳","quickreply.upload.success":"{filename} 上傳成功","quickreply.upload.error":"{filename} 上傳失敗","quickreply.upload.uploading":"{filename} 上傳中","quickreply.form.validate.error":"請檢查表單","message.action.send":"發送","message.action.recall":"撤回","message.action.delete":"刪除","message.action.resend":"重新發送","message.action.forward":"轉發","message.action.quote":"引用","message.action.copy":"複製","message.action.translate":"翻譯","message.action.download":"下載","message.action.preview":"預覽","message.tip.sending":"消息發送中...","message.tip.sent":"消息已發送","message.tip.delivered":"消息已送達","message.tip.read":"消息已讀","message.tip.failed":"消息發送失敗","message.tip.recalled":"消息已撤回","message.tip.deleted":"消息已刪除","message.tip.copy.success":"複製成功","message.tip.download.start":"開始下載...","message.tip.download.success":"下載成功","message.tip.download.failed":"下載失敗","message.input.placeholder":"請輸入消息","message.input.send.button":"發送","message.input.emoji.button":"表情","message.input.image.button":"圖片","message.input.file.button":"文件","message.input.voice.button":"語音","message.input.video.button":"視頻","message.input.location.button":"位置","message.list.load.more":"加載更多","message.list.loading":"加載中...","message.list.no.more":"沒有更多消息","message.list.empty":"暫無消息","message.list.search.placeholder":"搜索消息","message.list.search.no.result":"未找到相關消息","message.time.just":"剛剛","message.time.minutes":"{count}分鐘前","message.time.hours":"{count}小時前","message.time.days":"{count}天前","message.time.weeks":"{count}周前","message.time.months":"{count}個月前","message.time.years":"{count}年前","message.file.size.limit":"文件大小不能超過 {size}","message.file.type.unsupported":"不支持的文件類型","message.file.uploading":"上傳中...","message.file.download":"下載文件","message.file.preview":"預覽文件","message.image.loading":"圖片加載中","message.image.load.error":"圖片加載失敗","message.image.save":"保存圖片","message.image.save.success":"圖片保存成功","message.image.save.failed":"圖片保存失敗"},EIt={"profile.update.success":"個人信息更新成功","profile.form.avatar":"頭像","profile.form.upload":"上傳","profile.form.username":"用戶名","profile.form.nickname":"暱稱","profile.form.description":"描述","profile.button.change.password":"修改密碼","profile.button.change.email":"修改郵箱","profile.button.change.mobile":"修改手機號","profile.email.verified":"郵箱已驗證","profile.email.unverified":"郵箱未驗證","profile.mobile.verified":"手機已驗證","profile.mobile.unverified":"手機未驗證","profile.email.change.title":"修改郵箱","profile.email.placeholder":"請輸入郵箱地址","profile.email.required":"請輸入郵箱地址!","profile.email.format.invalid":"郵箱格式不正確","profile.email.length.limit":"郵箱不得超過50字符","profile.email.verification.code.placeholder":"請輸入驗證碼","profile.email.verification.code.countdown":"秒後重新獲取","profile.email.verification.code.get":"獲取驗證碼","profile.email.verification.code.required":"請輸入驗證碼!","profile.email.not.changed":"郵箱未更改!","profile.email.change.success":"郵箱修改成功!","profile.email.format.error":"郵箱格式錯誤","profile.mobile.change.title":"修改手機號","profile.mobile.placeholder":"請輸入手機號","profile.mobile.required":"請輸入手機號!","profile.mobile.format.invalid":"手機號格式錯誤!","profile.mobile.verification.code.placeholder":"請輸入驗證碼","profile.mobile.verification.code.countdown":"秒後重新獲取","profile.mobile.verification.code.get":"獲取驗證碼","profile.mobile.verification.code.required":"請輸入驗證碼!","profile.mobile.not.changed":"手機號未更改!","profile.mobile.change.success":"手機號修改成功!","profile.mobile.format.error":"手機號格式錯誤","profile.password.change.title":"修改密碼","profile.password.old":"原密碼","profile.password.old.empty":"手機號直接登錄用戶,可以留空","profile.password.new":"新密碼","profile.password.confirm":"確認密碼","profile.password.length.error":"密碼最小長度不能小於6","profile.password.mismatch":"兩次輸入密碼不一致","profile.password.change.success":"密碼修改成功!"},_It={"setting.menu.title":"設置","setting.menu.profile":"個人信息","setting.menu.basic":"基本設置","setting.menu.agent":"客服設置","setting.menu.model":"大模型","setting.menu.certification":"實名認證","setting.menu.qrcode":"二維碼","setting.menu.shortcut":"快捷鍵","setting.menu.click":"菜單點擊","setting.save.success":"設置保存成功","setting.save.error":"設置保存失敗","setting.load.error":"設置加載失敗","setting.header.profile":"個人信息","setting.header.basic":"基本設置","setting.header.agent":"客服設置","setting.header.model":"大模型設置","setting.basic.sound.on":"已開啟消息提示音","setting.basic.sound.off":"已關閉消息提示音","setting.basic.notification.on":"已開啟網絡狀態通知","setting.basic.notification.off":"已關閉網絡狀態通知","setting.basic.connection.status":"長鏈接狀態:","setting.basic.connection.connected":"✅連接正常","setting.basic.connection.disconnected":"❌連接斷開","setting.basic.startup":"開機啟動:","setting.basic.startup.on":"開機啟動","setting.basic.startup.off":"不開機啟動","setting.basic.theme":"顏色主題:","setting.basic.language":"語言設置:","setting.basic.mode":"模式設置:","setting.basic.mode.team":"團隊模式","setting.basic.mode.agent":"客服模式","setting.basic.mode.personal":"個人模式"},$It={"thread.error.message":"獲取數據失敗","thread.feature.unavailable":"TODO: 該功能暫未開放","thread.menu.top":"置頂","thread.menu.untop":"取消置頂","thread.menu.read":"標記已讀","thread.menu.unread":"標記未讀","thread.menu.mute":"靜音","thread.menu.unmute":"取消靜音","thread.menu.transfer":"轉接","thread.menu.block":"拉黑","thread.menu.ticket":"創建工單","thread.menu.crm":"查看CRM","thread.menu.summary":"會話總結","thread.menu.filter":"會話過濾","thread.menu.groupThread":"群聊會話","thread.menu.robotThread":"機器人會話","thread.menu.workgroupThread":"工作組會話","thread.menu.agentThread":"一對一會話","thread.menu.ticketThread":"工單會話","thread.menu.memberThread":"成員會話","thread.menu.deviceThread":"設備會話","thread.menu.systemThread":"系統會話","thread.status.robot":"[機器人]","thread.status.agent":"[一對一]","thread.status.workgroup":"[工作組]","thread.search.placeholder":"搜索會話...","thread.dropdown.create.group":"創建群聊","thread.dropdown.create.ai":"創建AI對話","thread.agent.status.online":"😀 - 在線接待","thread.agent.status.offline":"🔻 - 客服下線","thread.agent.status.busy":"🏃‍♀️ - 客服忙碌","thread.refresh.pull":"↓ 下拉刷新","thread.refresh.release":"↑ 鬆開刷新","thread.list.no.more":"沒有更多了","thread.coming.soon":"即將上線,敬請期待","thread.set.success":"設置成功","thread.set.error":"設置失敗","thread.menu.star":"星標","thread.menu.star.1":"星標1","thread.menu.star.2":"星標2","thread.menu.star.3":"星標3","thread.menu.star.4":"星標4","thread.menu.hide":"隱藏","thread.status.text":"{status}","thread.status.online":"😀接待","thread.status.offline":"🔻下線","thread.status.busy":"🏃‍♀️忙碌","thread.status.loading":"加載中...","thread.status.empty":"暫無會話","thread.status.error":"加載會話失敗","thread.status.queue":"排隊({count})","thread.status.network.offline":"網絡已斷開","thread.status.network.online":"網絡已連接","thread.status.message.pulling":"消息拉取中...","thread.status.message.empty":"暫無消息","thread.status.message.error":"加載消息失敗","thread.status.message.end":"沒有更多消息","thread.status.message.typing":"正在輸入...","thread.status.message.transfer":"轉接中...","thread.status.message.transferred":"已轉接","thread.status.message.closed":"會話已關閉","thread.menu.star.cancel":"取消星標","thread.loading.more":"加載更多..."},PIt={"ticket.create.title":"創建工單","ticket.edit.title":"編輯工單","ticket.form.uid":"編號","ticket.form.title":"標題","ticket.form.title.required":"請輸入工單標題","ticket.form.title.placeholder":"請輸入工單標題","ticket.form.description":"描述","ticket.form.description.required":"請輸入工單描述","ticket.form.description.placeholder":"請輸入工單描述","ticket.form.status":"狀態","ticket.form.status.required":"請選擇工單狀態","ticket.form.priority":"優先級","ticket.form.priority.required":"請選擇優先級","ticket.form.category":"分類","ticket.form.category.required":"請選擇工單分類","ticket.form.category.placeholder":"請選擇工單分類","ticket.form.user":"客戶","ticket.form.user.placeholder":"請選擇客戶","ticket.form.assignee":"處理人","ticket.form.assignee.placeholder":"請選擇處理人","ticket.form.reporter":"報告人","ticket.form.reporter.placeholder":"請選擇報告人","ticket.form.workgroup":"技能組","ticket.form.workgroup.required":"請選擇技能組","ticket.form.workgroup.placeholder":"請選擇技能組","ticket.workgroup.load.error":"加載技能組失敗","ticket.status.all":"全部狀態","ticket.status.new":"新建","ticket.status.assigned":"已分配","ticket.status.in_progress":"處理中","ticket.status.pending":"待處理","ticket.status.on_hold":"掛起","ticket.status.reopened":"重新打開","ticket.status.resolved":"已解決","ticket.status.closed":"已關閉","ticket.status.cancelled":"已取消","ticket.priority.all":"全部優先級","ticket.priority.lowest":"最低","ticket.priority.low":"低","ticket.priority.medium":"中","ticket.priority.high":"高","ticket.priority.urgent":"緊急","ticket.priority.critical":"嚴重","ticket.create.success":"工單創建成功","ticket.create.failed":"工單創建失敗","ticket.update.success":"工單更新成功","ticket.update.failed":"工單更新失敗","ticket.submit.error":"工單提交失敗","ticket.delete.success":"工單刪除成功","ticket.delete.error":"工單刪除失敗","ticket.load.error":"工單數據加載失敗","ticket.messages.load.error":"工單消息加載失敗","ticket.message.send.error":"消息發送失敗","ticket.category.load.error":"分類加載失敗","ticket.list.title":"工單列表","ticket.list.empty":"暫無工單","ticket.list.search.placeholder":"搜索工單","ticket.list.create":"創建工單","ticket.list.total":"工單總數","ticket.action.edit":"編輯","ticket.action.delete":"刪除","ticket.action.assign":"分配","ticket.action.close":"關閉","ticket.action.reopen":"重新打開","ticket.delete.confirm":"確定要刪除此工單嗎?","ticket.conversation.title":"工單對話","ticket.conversation.empty":"請選擇工單查看對話","ticket.conversation.input.placeholder":"請輸入消息...","ticket.details.title":"工單詳情","ticket.details.empty":"請選擇工單查看詳情","ticket.category.technical_support":"技術支持","ticket.category.service_request":"服務請求","ticket.category.consultation":"咨詢","ticket.category.complaint_suggestion":"投訴建議","ticket.category.operation_maintenance":"運維","ticket.category.other":"其他","ticket.form.thread":"關聯會話","ticket.form.thread.placeholder":"選擇關聯會話","ticket.form.thread.none":"不關聯","ticket.form.createdAt":"創建時間","ticket.form.updatedAt":"更新時間","ticket.type.agent":"指定客服","ticket.type.workgroup":"技能組","ticket.assignee":"處理人","ticket.reporter":"報告人","ticket.type":"類型","ticket.category":"分類","ticket.steps.title":"轉移過程","ticket.filter.by.status":"按狀態篩選","ticket.filter.by.priority":"按優先級篩選","ticket.filter.by.assignment":"按分配篩選","ticket.filter.by.time":"按時間篩選","ticket.filter.status_all":"全部狀態","ticket.filter.status_new":"新建","ticket.filter.status_assigned":"已分配","ticket.filter.status_in_progress":"處理中","ticket.filter.status_pending":"待處理","ticket.filter.status_on_hold":"掛起","ticket.filter.status_reopened":"重新打開","ticket.filter.status_resolved":"已解決","ticket.filter.status_closed":"已關閉","ticket.filter.status_cancelled":"已取消","ticket.filter.priority_all":"全部優先級","ticket.filter.priority_lowest":"最低","ticket.filter.priority_low":"低","ticket.filter.priority_medium":"中","ticket.filter.priority_high":"高","ticket.filter.priority_urgent":"緊急","ticket.filter.priority_critical":"嚴重","ticket.filter.assignment_all":"全部","ticket.filter.assignment_my_tickets":"我的工單","ticket.filter.assignment_unassigned":"未分配","ticket.filter.assignment_my_workgroup":"我的技能組","ticket.filter.assignment_my_created":"我創建的","ticket.filter.assignment_my_assigned":"待我處理","ticket.filter.time_all":"全部時間","ticket.filter.time_today":"今天","ticket.filter.time_yesterday":"昨天","ticket.filter.time_this_week":"本週","ticket.filter.time_last_week":"上週","ticket.filter.time_this_month":"本月","ticket.filter.time_last_month":"上月","ticket.content.title":"工單","ticket.content.number":"編號","ticket.delete.title":"刪除工單","ticket.delete.content":"確定要刪除此工單嗎?","ticket.delete.failed":"工單刪除失敗","ticket.loading":"加載工單...","ticket.empty":"暫無工單"},OIt={"contact.list.new":"新朋友","contact.list.device":"內網設備","contact.list.group":"群聊","contact.list.channel":"頻道","contact.list.company":"企業聯繫人","contact.list.friend":"聯繫人","contact.search.placeholder":"搜索聯繫人...","contact.manager.button":"通訊錄管理","contact.manager.coming":"敬請期待","member.detail.nickname":"暱稱","member.detail.jobno":"工號","member.detail.seatno":"座位號","member.detail.telephone":"電話","member.detail.loading":"加載中...","member.detail.chat.button":"開始聊天"},MIt={"group.create.title":"發起群聊","group.create.contacts":"好友","group.create.members":"群成員","group.create.members.min":"至少選擇2名成員","group.create.creating":"創建群組中...","group.create.org.empty":"未選擇組織","group.create.success":"創建群組成功","group.create.failed":"創建群組失敗","group.create.loading":"加載成員中...","group.create.error":"加載成員失敗"},TIt={"robot.list.add":"添加智能體","robot.list.loading":"加載中","robot.list.delete.confirm":"刪除【{name}】?","robot.list.deleting":"刪除中","robot.list.delete.success":"刪除成功","robot.list.update.success":"更新成功","robot.list.create.success":"創建成功","robot.list.chat":"對話","robot.list.edit":"編輯","robot.list.delete":"刪除"},RIt={"autoreply.title":"自动回复","autoreply.enable.label":"是否启用自动回复","autoreply.type.label":"自动回复类型","autoreply.type.fixed":"固定回复","autoreply.type.keyword":"关键字匹配","autoreply.type.llm":"大模型回复","autoreply.fixed.add":"添加固定回复内容","autoreply.fixed.select":"选择固定回复内容","autoreply.fixed.type":"固定回复类型","autoreply.fixed.content":"固定回复内容","autoreply.content.text":"文本","autoreply.content.image":"图片","autoreply.content.video":"视频","autoreply.content.audio":"音频","autoreply.content.file":"文件","autoreply.save.loading":"正在保存,请稍后...","autoreply.save.success":"保存成功","autoreply.save.error":"保存失败","autoreply.keyword.add":"添加关键词知识库","autoreply.keyword.select":"选择关键词知识库","autoreply.llm.add":"添加大模型知识库","autoreply.llm.select":"选择大模型知识库"},IIt={"upload.modal.title":"上傳文件","upload.drag.text":"點擊或拖拽文件至此處上傳","upload.drag.hint":"支持單個或批量上傳","upload.uploading":"{filename} 上傳中...","upload.success":"{filename} 上傳成功","upload.failed":"{filename} 上傳失敗","upload.delete.confirm":"確定要刪除此文件嗎?","upload.preview.image":"圖片預覽","upload.preview.file":"文件預覽","upload.button.ok":"確定","upload.button.cancel":"取消"},kIt={...gIt,...vIt,...yIt,...bIt,...SIt,...CIt,...wIt,...pIt,...xIt,...mIt,...EIt,..._It,...$It,...PIt,...hIt,...OIt,...MIt,...TIt,...RIt,...IIt},NIt={"app.title":"Bytedesk","app.logout":"Logout","app.copyright.produced":"Produced by Bytedesk.com","app.preview.down.block":"Download this page to your local project","app.welcome.link.fetch-blocks":"Get all block","app.welcome.link.block-list":"Quickly build standard, pages based on `block` development","footbar.network.normal":"Network Normal","footbar.network.disconnected":"Network Disconnected","footbar.anonymous.tip":"Anonymous mode, only supports communication between online devices in the same LAN","footbar.login.tip":"After login, supports offline messages and more features","footbar.login.skip":"Skip Login","footbar.anonymous.status":"Anonymous","footbar.login":"Login","footbar.logout":"Logout","footbar.logout.title":"Logout","footbar.logout.confirm":"Are you sure to logout?","footbar.serving.count":"Current serving count","footbar.serving.text":"Current serving: 0"},AIt={"common.confirm":"Confirm","common.cancel":"Cancel","navBar.lang":"Languages","layout.user.link.help":"Help","layout.user.link.privacy":"Privacy","layout.user.link.terms":"Terms","theme.light":"Light","theme.dark":"Dark","theme.system":"System"},DIt={"chat.copy.success":"Copy successful","chat.network.error":"Network connection failed, please check network","chat.thread.closing":"Ending conversation...","chat.thread.close.success":"Conversation ended successfully","chat.thread.close.confirm.title":"Are you sure to end the conversation?","chat.rate.invite.confirm.title":"Confirm to invite rating?","chat.menu.copy":"Copy","chat.menu.translate":"Translate","chat.menu.recall":"Recall","chat.menu.enlarge":"Enlarge","chat.menu.quickreply.add":"Add Quick Reply...","chat.menu.browser.open":"Open in Browser","chat.menu.forward":"Forward...","chat.menu.collect":"Collect","chat.menu.quote":"Quote","chat.translation.placeholder":"Please enter translation content...","chat.input.placeholder":"Please enter content, Ctrl+V to paste screenshot/image","chat.toolbar.emoji":"Emoji","chat.toolbar.image":"Image","chat.toolbar.file":"File","chat.toolbar.screenshot":"Screenshot","chat.toolbar.autoreply":"Auto Reply","chat.toolbar.audio":"Audio","chat.toolbar.webrtc":"Video Call","chat.toolbar.history":"History","chat.toolbar.block":"Block","chat.toolbar.invite.rate":"Invite Rating","chat.navbar.transfer":"Transfer","chat.navbar.close":"End","chat.navbar.note":"Notebase","chat.navbar.kbase":"Knowledge Base","chat.right.quickreply":"Quick Reply","chat.right.userinfo":"User Info","chat.right.ai":"Copilot","chat.right.ticket":"Ticket","chat.right.llm":"LLM","chat.right.group":"Group Info","chat.right.member":"Member Info","chat.right.docview":"Doc View","chat.group.notice":"Notice","chat.group.members":"Members","chat.group.admins":"Admins","chat.group.robots":"Robots","chat.group.qrcode":"QR Code","chat.group.uid.error":"Group ID error"},jIt={"dashboard.error.message":"Failed to get data","dashboard.init.organization":"Initializing organization","dashboard.init.profile":"Initializing profile","dashboard.init.workgroups":"Initializing workgroups","dashboard.init.agent":"Initializing agent profile","dashboard.transfer.accept":"{nickname} has accepted the transfer","dashboard.transfer.reject":"{nickname} has rejected the transfer","dashboard.transfer.success":"Transfer request sent successfully, waiting for response"},FIt={"menu.anonymous.title":"Anonymous Mode","menu.anonymous.home":"Messages","menu.anonymous.contact":"Contacts","menu.anonymous.robot":"Robot","menu.anonymous.setting":"Settings","menu.anonymous.status":"Anonymous Status","menu.anonymous.status.tip":"Anonymous mode only supports communication between online devices in the same LAN","menu.anonymous.login.tip":"Login to access offline messages and more features","menu.anonymous.login":"Login","menu.anonymous.current.users":"Current Users","menu.dashboard.chat":"Chat","menu.dashboard.contact":"Contact","menu.dashboard.ai":"AI Assistant","menu.dashboard.note":"Notebase","menu.dashboard.kbase":"Knowledge Base","menu.dashboard.mine":"Settings","menu.dashboard.queue":"Queue","menu.dashboard.ticket":"Tickets","menu.dashboard.leavemsg":"Messages","menu.dashboard.visitor":"Visitors","menu.dashboard.monitor":"Monitor","menu.dashboard.plugins":"Plugins","menu.settings":"Settings","menu.settings.logout":"Logout","menu.agent.status":"Agent Status","menu.agent.status.available":"Available","menu.agent.status.rest":"Rest","menu.agent.status.offline":"Offline","menu.language":"Language","menu.mode":"Mode","menu.mode.team":"Team Mode","menu.mode.agent":"Agent Mode","menu.mode.personal":"Personal Mode","menu.agent.offline.warning":"Please end all ongoing conversations before going offline","menu.mode.personal.coming":"Coming soon...","menu.dashboard.projectList":"Project List","menu.dashboard.dailyReport":"Daily Report","menu.dashboard.weeklyReport":"Weekly Report","menu.dashboard.reportCalendar":"Report Calendar"},LIt={"profile.update.success":"Profile updated successfully","profile.form.avatar":"Avatar","profile.form.upload":"Upload","profile.form.username":"Username","profile.form.nickname":"Nickname","profile.form.description":"Description","profile.button.change.password":"Change Password","profile.button.change.email":"Change Email","profile.button.change.mobile":"Change Mobile","profile.email.verified":"Email Verified","profile.email.unverified":"Email Unverified","profile.mobile.verified":"Mobile Verified","profile.mobile.unverified":"Mobile Unverified","profile.email.change.title":"Change Email","profile.email.placeholder":"Enter email address","profile.email.required":"Please enter email address!","profile.email.format.invalid":"Invalid email format","profile.email.length.limit":"Email cannot exceed 50 characters","profile.email.verification.code.placeholder":"Enter verification code","profile.email.verification.code.countdown":"seconds","profile.email.verification.code.get":"Get Code","profile.email.verification.code.required":"Please enter verification code!","profile.email.not.changed":"Email is not changed!","profile.email.change.success":"Email changed successfully!","profile.email.format.error":"Invalid email format","profile.mobile.change.title":"Change Mobile","profile.mobile.placeholder":"Enter mobile number","profile.mobile.required":"Please enter mobile number!","profile.mobile.format.invalid":"Invalid mobile format","profile.mobile.verification.code.placeholder":"Enter verification code","profile.mobile.verification.code.countdown":"seconds","profile.mobile.verification.code.get":"Get Code","profile.mobile.verification.code.required":"Please enter verification code!","profile.mobile.not.changed":"Mobile number is not changed!","profile.mobile.change.success":"Mobile number changed successfully!","profile.mobile.format.error":"Invalid mobile format","profile.password.change.title":"Change Password","profile.password.old":"Old Password","profile.password.old.empty":"Old password can be empty for phone login users","profile.password.new":"New Password","profile.password.confirm":"Confirm Password","profile.password.length.error":"Password must be at least 6 characters","profile.password.mismatch":"The two passwords do not match","profile.password.change.success":"Password changed successfully!"},BIt={"setting.menu.title":"Settings","setting.menu.profile":"Profile","setting.menu.basic":"Basic Settings","setting.menu.agent":"Agent Settings","setting.menu.model":"AI Model","setting.menu.certification":"Certification","setting.menu.qrcode":"QR Code","setting.menu.shortcut":"Shortcuts","setting.menu.click":"Menu clicked","setting.save.success":"Settings saved successfully","setting.save.error":"Failed to save settings","setting.load.error":"Failed to load settings","setting.header.profile":"Personal Profile","setting.header.basic":"Basic Settings","setting.header.agent":"Agent Settings","setting.header.model":"AI Model Settings","setting.basic.sound.on":"Message Sound On","setting.basic.sound.off":"Message Sound Off","setting.basic.notification.on":"Network Status Notification On","setting.basic.notification.off":"Network Status Notification Off","setting.basic.connection.status":"Connection Status:","setting.basic.connection.connected":"✅Connected","setting.basic.connection.disconnected":"❌Disconnected","setting.basic.startup":"Start on Boot:","setting.basic.startup.on":"Enable","setting.basic.startup.off":"Disable","setting.basic.theme":"Theme:","setting.basic.language":"Language:","setting.basic.mode":"Mode:","setting.basic.mode.team":"Team Mode","setting.basic.mode.agent":"Agent Mode","setting.basic.mode.personal":"Personal Mode"},zIt={"ticket.create.title":"Create Ticket","ticket.edit.title":"Edit Ticket","ticket.form.uid":"UID","ticket.form.title":"Title","ticket.form.title.required":"Please enter ticket title","ticket.form.title.placeholder":"Enter ticket title","ticket.form.description":"Description","ticket.form.description.required":"Please enter ticket description","ticket.form.description.placeholder":"Enter ticket description","ticket.form.status":"Status","ticket.form.status.required":"Please select ticket status","ticket.form.priority":"Priority","ticket.form.priority.required":"Please select priority","ticket.form.category":"Category","ticket.form.category.required":"Please select category","ticket.form.category.placeholder":"Select category","ticket.form.user":"Customer","ticket.form.user.placeholder":"Select customer","ticket.form.assignee":"Assignee","ticket.form.assignee.placeholder":"Select assignee","ticket.form.reporter":"Reporter","ticket.form.reporter.placeholder":"Select reporter","ticket.form.workgroup":"Workgroup","ticket.form.workgroup.required":"Please select workgroup","ticket.form.workgroup.placeholder":"Select workgroup","ticket.form.thread":"Related Conversation","ticket.form.thread.placeholder":"Select related conversation","ticket.form.thread.none":"No Association","ticket.create.success":"Ticket created successfully","ticket.create.failed":"Failed to create ticket","ticket.update.success":"Ticket updated successfully","ticket.update.failed":"Failed to update ticket","ticket.submit.error":"Failed to submit ticket","ticket.delete.success":"Ticket deleted successfully","ticket.delete.error":"Failed to delete ticket","ticket.load.error":"Failed to load tickets","ticket.messages.load.error":"Failed to load ticket messages","ticket.message.send.error":"Failed to send message","ticket.workgroup.load.error":"Failed to load workgroups","ticket.category.load.error":"Failed to load categories","ticket.list.title":"Tickets","ticket.list.empty":"No tickets found","ticket.list.search.placeholder":"Search tickets","ticket.list.create":"Create Ticket","ticket.list.total":"Total","ticket.action.edit":"Edit","ticket.action.delete":"Delete","ticket.action.assign":"Assign","ticket.action.close":"Close","ticket.action.reopen":"Reopen","ticket.delete.confirm":"Are you sure to delete this ticket?","ticket.conversation.title":"Conversation","ticket.conversation.empty":"Select a ticket to view conversation","ticket.conversation.input.placeholder":"Type your message...","ticket.details.title":"Ticket Details","ticket.details.empty":"Select a ticket to view details","ticket.form.createdAt":"Created At","ticket.form.updatedAt":"Updated At","ticket.type.agent":"Agent","ticket.type.workgroup":"Workgroup","ticket.type":"Type","ticket.assignee":"Assignee","ticket.reporter":"Reporter","ticket.category":"Category","ticket.steps.title":"Processing Steps","ticket.form.upload.button":"Upload Attachments","ticket.upload.success":"File uploaded successfully","ticket.upload.failed":"File upload failed","ticket.current.filters":"Current Filters","ticket.filter.by.status":"Filter by Status","ticket.filter.by.priority":"Filter by Priority","ticket.filter.by.assignment":"Filter by Assignment","ticket.filter.by.time":"Filter by Time","ticket.filter.status_all":"All Status","ticket.filter.status_new":"New","ticket.filter.status_assigned":"Assigned","ticket.filter.status_in_progress":"In Progress","ticket.filter.status_pending":"Pending","ticket.filter.status_on_hold":"On Hold","ticket.filter.status_reopened":"Reopened","ticket.filter.status_resolved":"Resolved","ticket.filter.status_closed":"Closed","ticket.filter.status_cancelled":"Cancelled","ticket.filter.priority_all":"All Priority","ticket.filter.priority_lowest":"Lowest","ticket.filter.priority_low":"Low","ticket.filter.priority_medium":"Medium","ticket.filter.priority_high":"High","ticket.filter.priority_urgent":"Urgent","ticket.filter.priority_critical":"Critical","ticket.filter.assignment_all":"All","ticket.filter.assignment_my_tickets":"My Tickets","ticket.filter.assignment_unassigned":"Unassigned","ticket.filter.assignment_my_workgroup":"My Workgroup","ticket.filter.assignment_my_created":"Created by Me","ticket.filter.assignment_my_assigned":"Assigned to Me","ticket.filter.time_all":"All Time","ticket.filter.time_today":"Today","ticket.filter.time_yesterday":"Yesterday","ticket.filter.time_this_week":"This Week","ticket.filter.time_last_week":"Last Week","ticket.filter.time_this_month":"This Month","ticket.filter.time_last_month":"Last Month","ticket.content.title":"Ticket","ticket.content.number":"No.","ticket.delete.title":"Delete Ticket","ticket.delete.content":"Are you sure you want to delete this ticket?","ticket.delete.failed":"Failed to delete ticket","ticket.loading":"Loading tickets...","ticket.empty":"No tickets found"},HIt={i18_file_assistant:"File Assistant",slogan:"Chat As A Service","menu.dashboard.chat":"Chat","menu.dashboard.contact":"Contact","menu.dashboard.queue":"Queue","menu.dashboard.ticket":"Ticket","menu.dashboard.leavemsg":"Leave Msg","menu.dashboard.visitor":"Visitor","menu.dashboard.monitor":"Monitor","menu.dashboard.plugins":"Plugins","menu.dashboard.mine":"Mine","chat.toolbar.emoji":"Emoji","chat.toolbar.image":"Image","chat.toolbar.file":"File","chat.toolbar.audio":"Audio","chat.toolbar.webrtc":"Webrtc","chat.toolbar.history":"History","chat.toolbar.block":"Block","chat.toolbar.screenshot":"Screenshot","chat.toolbar.invite.rate":"InviteRate","chat.toolbar.autoreply":"AutoReply","chat.toolbar.autoreply.on":"AutoReply(On)","chat.navbar.transfer":"Transfer","chat.navbar.ticket":"Ticket","chat.navbar.crm":"Crm","chat.navbar.close":"Close","chat.navbar.category":"Category","chat.navbar.ai":"AI","chat.navbar.queue":"Queue","chat.right.ai":"Copilot","chat.right.quickreply":"QuickReply","chat.right.ticket":"Ticket","chat.right.userinfo":"UserInfo","chat.right.llm":"Llm","chat.right.docview":"DocView","chat.right.group":"Group","chat.right.member":"Member","chat.ai.summary":"Thread Summary","chat.ai.switch":"Switch","chat.thread.nomore":"No More","chat.message.loadmore":"Load More","dashboard.footbar.logout":"Logout",SERVICE:"Customer Service Robot",MARKETING:"Marketing Robot",KNOWLEDGEBASE:"Knowledgebase Robot",QA:"QA Robot",AGENT_ASSISTANT:"Agent Asistant",loading:"Loading",create:"Create",creating:"Creating","create.success":"Create success","create.fail":"Create fail",update:"Update",updating:"Updating","update.success":"Update success","update.fail":"Update fail",save:"Save",saving:"Saving",email:"Email","email.verified":"Email Verified","email.unverified":"Email Unverified",mobile:"Mobile","mobile.verified":"Mobile Verified","mobile.unverified":"Mobile Unverified",captcha:"Captcha",logging:"Logging","login.success":"Login Success","login.error":"Login Failed",registering:"Registering","register.success":"Register Success","register.error":"Register Failed","username.change.tip":"Username(should re login after changed)",createKb:"Create Knowledge Base",createDept:"Create Department",upload:"Upload",import:"Import",export:"Export","download.template":"Download Template",open:"Open",copy:"Copy","copy.success":"Copy success",ok:"OK",cancel:"Cancel",bind:"Bind",edit:"Edit",editing:"Editing","edit.success":"Edit success","edit.fail":"Edit fail",delete:"Delete",deleting:"Deleting",deleteTip:"Delete Tip",deleteAffirm:"Are u sure to delete","delete.success":"Delete success","delete.fail":"Delete fail","process.success":"Process success","process.fail":"Process fail",preview:"Preview",close:"Close",closing:"Closing",closeTip:"Close Tip",closeASure:"Are u sure to close","close.success":"Close success",choose:"Choose","leavemsg.enabled":"Leave Message Enabled",transfer:"Transfer","transfer.success":"Transfer success","transfer.fail":"Transfer fail","transfer.reason":"Transfer Reason",refresh:"Refresh",noAgent:"No Agent Available"},UIt={"pages.login.title":"Bytedesk","pages.layouts.userLayout.title":"Chat As A Service","pages.login.accountLogin.tab":"Account Login","pages.login.accountLogin.errorMessage":"Incorrect username/password(admin/ant.design)","pages.login.failure":"Login failed, please try again!","pages.login.success":"Login successful!","pages.login.username.placeholder":"Email","pages.login.username.required":"Please input your username!","pages.login.password.placeholder":"Password","pages.login.repassword.placeholder":"RePassword","pages.login.password.required":"Please input your password!","pages.login.repassword.required":"Please input your password!","pages.login.phoneLogin.tab":"Phone Login","pages.login.phoneLogin.errorMessage":"Verification Code Error","pages.login.phoneNumber.placeholder":"Phone Number","pages.login.phoneNumber.required":"Please input your phone number!","pages.login.phoneNumber.invalid":"Phone number is invalid!","pages.login.captcha.placeholder":"Verification Code","pages.login.captcha.required":"Please input verification code!","pages.login.phoneLogin.getVerificationCode":"Get Code","pages.login.anonymousLogin":"Anonymous Login","pages.getCaptchaSecondText":"sec(s)","pages.login.scanLogin.tab":"Scan Login","pages.login.rememberMe":"Remember me","pages.login.forgotPassword":"Forgot Password ?","pages.login.submit":"Login","pages.login.loginWith":"Login with :","pages.login.register":"Register","pages.login.registerAccount":"Register Account","pages.login.auto.register":"Unregisterd Mobile will auto register","pages.welcome.link":"Welcome","pages.robot.new":"New","pages.robot.chat":"Chat","pages.robot.edit":"Edit","pages.robot.delete":"Delete","pages.robot.upload":"Upload","pages.robot.tab.basic":"Basic","pages.robot.tab.kb":"Knowledge Base","pages.robot.tab.channel":"Channel","pages.robot.tab.statistic":"Statistic","pages.robot.tab.advanced":"Advanced","pages.robot.tab.flow":"Flow","pages.robot.tab.avatar":"Avatar","pages.robot.tab.title":"Title","pages.robot.tab.welcomeTip":"welcomeTip","pages.robot.tab.description":"Description","pages.robot.tab.preview":"Preview","pages.robot.tab.website":"Website","pages.robot.tab.helpdesk":"Helpdesk","pages.robot.tab.icp":"ICP 17041763-1","pages.robot.tab.police":"44030502008688","pages.robot.kb.file":"File","pages.robot.kb.text":"Text","pages.robot.kb.qa":"Q&A","pages.robot.kb.web":"Website","pages.robot.file.title":"Title","pages.robot.file.content":"Content","pages.robot.file.type":"Type","pages.robot.file.size":"Size","pages.robot.file.action":"Action","pages.robot.file.delete":"Delete","pages.robot.file.save":"Save","pages.robot.file.cancel":"Cancel","pages.robot.file.uploading":"Uploading...","pages.robot.file.name_invalid":"File name should not contain _","pages.robot.file.parse":"Parse File Content","pages.setting":"Settings","pages.logout":"Logout","pages.footer.website":"Bytedesk","pages.footer.helpcenter":"help","pages.login.remember":"remember me","pages.agent.tab.basic":"Basic","pages.agent.robot":"Robot","pages.agent.service.settings":"Service Settings","pages.agent.service.settings.topTip":"Top Tip","pages.agent.service.settings.welcomeTip":"Welcome Tip","pages.agent.service.settings.leavemsgTip":"Leavemsg Tip","pages.agent.service.settings.autoCloseMin":"Auto Close Min","pages.agent.service.settings.showLogo":"Show Logo","pages.agent.service.settings.maxThreadCount":"Max Thread Count","pages.advanced.faq":"FAQ","pages.advanced.quickButton":"Quick Buttons","pages.advanced.faqGuess":"Smart Suggestions","pages.advanced.faqHot":"Hot Questions","pages.advanced.faqShortcut":"Quick Replies","pages.advanced.rate":"Satisfaction Rating","pages.advanced.autoreply":"Auto Reply","pages.advanced.leaveMsg":"Leave Message","pages.advanced.survey":"Survey","pages.advanced.history":"History","pages.advanced.inputAssociation":"Input Association","pages.advanced.antiHarassment":"Captcha Settings","pages.advanced.captcha":"Captcha Settings","pages.advanced.showPreForm":"Show PreForm","pages.advanced.showHistory":"Show History","pages.advanced.showInputAssociation":"Show Input Association","pages.advanced.showCaptcha":"Show Captcha","pages.login.country.placeholder":"Select Country/Region","pages.login.country.china":"China","pages.login.country.hongkong":"Hong Kong","pages.login.country.taiwan":"Taiwan","pages.login.country.macao":"Macao","pages.login.country.japan":"Japan","pages.login.country.korea":"Korea","pages.login.country.usa":"United States","pages.login.country.canada":"Canada","pages.login.country.uk":"United Kingdom","pages.login.country.germany":"Germany","pages.login.country.france":"France","pages.login.country.australia":"Australia","pages.login.country.singapore":"Singapore","pages.login.country.malaysia":"Malaysia","pages.login.country.thailand":"Thailand","pages.login.country.vietnam":"Vietnam","pages.login.country.philippines":"Philippines","pages.login.country.indonesia":"Indonesia","pages.login.country.italy":"Italy","pages.login.country.spain":"Spain","pages.login.country.russia":"Russia","pages.login.country.newzealand":"New Zealand","pages.anonymous.title":"Anonymous Mode","pages.anonymous.home":"Home","pages.anonymous.contact":"Contacts","pages.anonymous.robot":"Robot","pages.anonymous.setting":"Settings","pages.anonymous.welcome":"Welcome to Anonymous Mode","pages.anonymous.description":"You can use system features anonymously in this mode","block.title":"Block Settings","block.type":"Block Type","block.user":"Block User","block.ip":"Block IP","block.permanent":"Permanent Block","block.until":"Block Until","block.until.required":"Please select block end time"},WIt={"i18n.lang.en-US":"English","i18n.lang.zh-CN":"简体中文","i18n.lang.zh-TW":"繁體中文","i18n.queue.tip":"Queue","i18n.queue.message.template":"Current Queuing: {0} people, Wait {1} minutes","i18n.queue.empty":"Queue empty","i18n.queue.accept":"accept","i18n.system.notification":"System Notification","i18n.old.password.wrong":"Old password is incorrect","i18n.change.password":"Change Password","i18n.auth.captcha.send.success":"Captcha Send success","i18n.auth.captcha.error":"Captcha Error","i18n.auth.captcha.expired":"Captcha Expired","i18n.auth.captcha.already.send":"Captcha Already Send","i18n.auth.captcha.validate.failed":"Captcha Validate Failed","i18n.faq":"Faq","i18n.rate":"Rate","i18n.input.placeholder":"Please input","i18n.loading":"Loading","i18n.load.more":"Load more","i18n.load.nomore":"No more","i18n.typing":"Typing","i18n.robot":"Robot","i18n.agent":"Agent","i18n.workgroup":"WorkGroup","i18n.group":"Group","i18n.rate.invite":"Rate Invite","i18n.ticket":"Ticket","i18n.notice":"Notice","i18n.notice.title":"Notice","i18n.notice.content":"Notice Content","i18n.notice.ip":"IP Address","i18n.notice.ipLocation":"IP Location","i18n.notice.parse.file.success":"Parse file success","i18n.notice.parse.file.error":"Parse file error","i18n.DEPT.ALL":"All","i18n.DEPT.ADMIN":"Admin","i18n.DEPT.HR":"HR","i18n.DEPT.ORG":"Org","i18n.DEPT.IT":"IT","i18n.DEPT.MONEY":"Money","i18n.DEPT.MARKETING":"Marketing","i18n.DEPT.SALES":"Sales","i18n.DEPT.CS":"CustomerService","i18n.new.message":"New Message","i18n.file.assistant":"file assistant","i18n.clipboard.assistant":"clipboard assistant","i18n.thread.content.image":"image","i18n.thread.content.file":"file","i18n.top.tip":"Top Tip","i18n.top.make":"Make Top","i18n.top.cancel":"Cancel Top","i18n.unread.make":"Mark as unread","i18n.unread.cancel":"Mark as read","i18n.star.make":"Make Star","i18n.star.cancel":"Cancel Star","i18n.disturb.make":"Make Disturb","i18n.disturb.cancel":"Cancel Disturb","i18n.transfer":"Transfer","i18n.hide":"Hide","i18n.network.disconnected":"Network disconnected","i18n.message.pulling":"Message pulling","i18n.leavemsg.tip":"Leave a message","i18n.welcome.tip":"What can i help you?","i18n.reenter.tip":"continue chat","i18n.under.development":"Under development","i18n.user.description":"User Description","i18n.robot.nickname":"DefaultRobot","i18n.robot.description":"Default Robot Description","i18n.robot.noreply":"Answer Not Found","i18n.robot.agent.assistant.nickname":"DefaultRobotAgent","i18n.llm.prompt":"You are a smart and helpful artificial intelligence, capable of providing useful, detailed, and polite answers to human questions.","i18n.agent.nickname":"DefaultAgent","i18n.agent.description":"Default Agent Description","i18n.workgroup.nickname":"DefaultWorkgroup","i18n.workgroup.description":"Default Workgroup Description","i18n.contact":"Ask Contact","i18n.thanks":"Thanks","i18n.welcome":"Welcome","i18n.bye":"Bye","i18n.tip.title":"Tip","i18n.tip.network.disconnected":"Network disconnected","i18n.tip.network.connected":"Network connected","i18n.kb.name":"KbName","i18n.kb.platform.name":"Platform KbName","i18n.kb.helpcenter.name":"Helpdoc KbName","i18n.kb.llm.name":"Llm KbName","i18n.kb.keyword.name":"Keyword KbName","i18n.kb.faq.name":"Faq KbName","i18n.kb.autoreply.name":"AutoReply KbName","i18n.kb.quickreply.name":"QuickReply KbName","i18n.kb.taboo.name":"Taboo KbName","i18n.kb.description":"KbDescription","i18n.agent.nicknameKb":"DefaultAgentKbName","i18n.contact.title":"If it's convenient, please provide your contact number so that I can communicate with you via phone for a more intuitive conversation.","i18n.contact.content":"If it's convenient, please provide your contact number so that I can communicate with you via phone for a more intuitive conversation.","i18n.thanks.title":"Thank you for visiting, we look forward to seeing you again.","i18n.thanks.content":"Thank you for visiting, we look forward to seeing you again.","i18n.welcome.title":"Hello, how can I assist you?","i18n.welcome.content":"Hello, how can I assist you?","i18n.bye.title":"Your satisfaction is always our goal. If you have any questions, please feel free to contact us.","i18n.bye.content":"Your satisfaction is always our goal. If you have any questions, please feel free to contact us.","i18n.vip.api":"VIP API","i18n.faq.category.demo.1":"CategoryDemo1","i18n.faq.category.demo.2":"CategoryDemo2","i18n.faq.demo.title.1":"FaqTitleText1","i18n.faq.demo.content.1":"FaqContentText1","i18n.faq.demo.title.2":"FaqTitleImage2","i18n.faq.demo.content.2":"https://www.weiyuai.cn/logo.png","i18n.quick.button.demo.title.1":"QuickButtonTitleText1","i18n.quick.button.demo.content.1":"QuickButtonContentText1","i18n.quick.button.demo.title.2":"QuickButtonTitleUrl2","i18n.quick.button.demo.content.2":"https://www.weiyuai.cn","i18n.preview.title":"Preview","i18n.cancel":"Cancel","i18n.confirm":"Confirm","i18n.send":"Send","i18n.transferToAgent":"Transfer to Agent","i18n.auto.closed":"Auto closed","i18n.agent.closed":"Agent closed","i18n.online.chat":"Online Chat","i18n.JOB":"Job","i18n.LANGUAGE":"Language","i18n.TOOL":"Tool","i18n.WRITING":"Writing","i18n.RAG":"RAG","i18n.module.ai":"AI","i18n.module.void":"Void","i18n.module.service":"Service","i18n.module.ticket":"Ticket","i18n.black.user.already.exists":"User already blocked","i18n.ticket.category.technical_support":"Technical Support","i18n.ticket.category.service_request":"Service Request","i18n.ticket.category.consultation":"Consultation","i18n.ticket.category.complaint_suggestion":"Complaint Suggestion","i18n.ticket.category.operation_maintenance":"Operation Maintenance","i18n.ticket.category.other":"Other","i18n.vip.component":"VIP Component, Contact us for more details","i18n.vip.contactUs":"Contact us","i18n.vip.contactUrl":"https://www.bytedesk.com"},VIt={"login.privacy.required":"Please read and agree to the privacy agreement","login.privacy.agreement":"Agree to Privacy Agreement","login.switch.server":"Switch Server","login.success":"Login successful","login.failed":"Login failed","login.anonymous":"Anonymous Login","login.other.methods":"Other login methods","login.remember":"Remember me","login.forgot":"Forgot password?","login.register":"Register account","server.button.back":"Back","server.button.save":"Save","server.button.reset":"Reset","server.button.help":"Help","server.save.success":"Save successfully","server.reset.success":"Reset successfully, restored to default cloud server","server.custom.enable":"Enable Custom Server","server.api.url.label":"API Server URL (e.g. http://127.0.0.1:9003 or https://api.bytedesk.com)","server.api.url.placeholder":"http://127.0.0.1:9003","server.websocket.url.label":"WebSocket Server URL (e.g. ws://127.0.0.1:9885/websocket or wss://api.bytedesk.com/websocket)","server.websocket.url.placeholder":"ws://127.0.0.1:9885/websocket","server.input.error":"Please enter correct server address"},KIt={"thread.error.message":"Failed to get data","thread.feature.unavailable":"TODO: This feature is not available yet","thread.menu.top":"Pin to Top","thread.menu.untop":"Unpin","thread.menu.read":"Mark as Read","thread.menu.unread":"Mark as Unread","thread.menu.mute":"Mute","thread.menu.unmute":"Unmute","thread.menu.transfer":"Transfer","thread.menu.block":"Block","thread.menu.ticket":"Create Ticket","thread.menu.crm":"View in CRM","thread.menu.summary":"Summary","thread.status.robot":"[Robot]","thread.status.agent":"[1-on-1]","thread.status.workgroup":"[Group]","thread.search.placeholder":"Search conversations...","thread.menu.filter":"Filter Threads","thread.menu.groupThread":"Group Thread","thread.menu.robotThread":"Robot Thread","thread.menu.workgroupThread":"Workgroup Thread","thread.menu.agentThread":"Agent Thread","thread.menu.ticketThread":"Ticket Thread","thread.menu.memberThread":"Member Thread","thread.menu.deviceThread":"Device Thread","thread.menu.systemThread":"System Thread","thread.status.loading":"Loading...","thread.status.empty":"No conversations","thread.status.error":"Failed to load conversations","thread.status.queue":"Queue ({count})","thread.status.network.offline":"Network disconnected","thread.status.network.online":"Network connected","thread.status.message.pulling":"Pulling messages...","thread.status.message.empty":"No messages","thread.status.message.error":"Failed to load messages","thread.status.message.end":"No more messages","thread.status.message.typing":"Typing...","thread.status.message.transfer":"Transferring...","thread.status.message.transferred":"Transferred","thread.status.message.closed":"Conversation closed","thread.dropdown.create.group":"Create Group Chat","thread.dropdown.create.ai":"Create AI Chat","thread.agent.status.online":"Online","thread.agent.status.offline":"Offline","thread.agent.status.busy":"Busy","thread.refresh.pull":"↓ Pull to refresh","thread.refresh.release":"↑ Release to refresh","thread.list.no.more":"No more data","thread.set.success":"Set successfully","thread.set.error":"Set failed","thread.menu.star":"Star","thread.menu.star.1":"Star Level 1","thread.menu.star.2":"Star Level 2","thread.menu.star.3":"Star Level 3","thread.menu.star.4":"Star Level 4","thread.menu.hide":"Hide","thread.status.text":"{status}","thread.status.online":"Online","thread.status.offline":"Offline","thread.status.busy":"🏃‍♀️Busy","thread.coming.soon":"Coming soon...","thread.menu.star.cancel":"Remove Star","thread.loading.more":"Loading more..."},qIt={"message.status.read":"Read","message.status.delivered":"Delivered","message.status.sending":"Sending","message.status.sent":"Sent","message.status.failed":"Failed to send","message.status.retry":"Retry","quickreply.search.placeholder":"Search","quickreply.button.send":"Send","quickreply.button.copy":"Copy","quickreply.button.create.category":"Create Category","quickreply.button.create.reply":"Create Quick Reply","quickreply.copy.success":"{content} copied to clipboard","category.form.edit.title":"Edit Category","category.form.create.title":"Create Category","category.form.name":"Category Name","category.form.name.required":"Please enter category name!","category.form.name.placeholder":"Enter category name","category.create.failed":"Failed to create category","quickreply.drawer.title":"{isEdit, select, true {Edit Quick Reply} other {New Quick Reply}}","quickreply.form.category":"Category","quickreply.form.category.required":"Please select a category","quickreply.form.category.placeholder":"Select a category","quickreply.form.type":"Type","quickreply.form.type.required":"Please select a type","quickreply.form.type.placeholder":"Select a type","quickreply.form.title":"Title","quickreply.form.title.required":"Please enter a title","quickreply.form.content":"Content","quickreply.type.text":"Text","quickreply.type.image":"Image","quickreply.type.video":"Video","quickreply.type.audio":"Audio","quickreply.type.file":"File","quickreply.upload.text":"Click or drag file to upload","quickreply.upload.success":"{filename} uploaded successfully","quickreply.upload.error":"{filename} upload failed","quickreply.upload.uploading":"{filename} uploading","quickreply.form.validate.error":"Please check the form"},GIt={"customer.info.basic":"Basic Info","customer.info.browser":"Browser Info","customer.info.os":"OS Info","customer.info.device":"Device Info","customer.info.browse.record":"Browse Record","customer.info.tag":"Tag Info","customer.info.load.error":"Failed to load visitor info","customer.info.add.crm":"Add to CRM","customer.info.add.tag":"Add Tag","customer.basic.nickname":"Nickname","customer.basic.location":"IP Location","customer.basic.note":"Note","customer.basic.client":"Client","customer.basic.status":"Status","customer.basic.empty":"N/A","black.title":"Block Settings","black.type":"Block Type","black.type.required":"Please select at least one block type","black.user":"Block User","black.ip":"Block IP","black.permanent":"Permanent Block","black.until":"Block Until","black.until.required":"Please select block end time","black.reason":"Block Reason","black.reason.required":"Please enter block reason","black.reason.placeholder":"Enter reason for blocking","black.success":"Block successfully"},YIt={"contact.list.new":"New Friends","contact.list.device":"LAN Devices","contact.list.group":"Groups","contact.list.channel":"Channels","contact.list.company":"Company Contacts","contact.list.friend":"Contacts","contact.search.placeholder":"Search contacts...","contact.manager.button":"Contact Manager","contact.manager.coming":"Coming soon...","member.detail.nickname":"Nickname","member.detail.jobno":"Job No.","member.detail.seatno":"Seat No.","member.detail.telephone":"Telephone","member.detail.loading":"Loading...","member.detail.chat.button":"Start Chat"},XIt={"autoreply.title":"Auto Reply","autoreply.enable.label":"Enable Auto Reply","autoreply.type.label":"Auto Reply Type","autoreply.type.fixed":"Fixed Reply","autoreply.type.keyword":"Keyword Match","autoreply.type.llm":"AI Model Reply","autoreply.fixed.add":"Add Fixed Reply","autoreply.fixed.select":"Select Fixed Reply","autoreply.fixed.type":"Fixed Reply Type","autoreply.fixed.content":"Fixed Reply Content","autoreply.content.text":"Text","autoreply.content.image":"Image","autoreply.content.video":"Video","autoreply.content.audio":"Audio","autoreply.content.file":"File","autoreply.save.loading":"Saving...","autoreply.save.success":"Saved successfully","autoreply.save.error":"Failed to save","autoreply.keyword.add":"Add Keyword Knowledge Base","autoreply.keyword.select":"Select Keyword Knowledge Base","autoreply.llm.add":"Add AI Model Knowledge Base","autoreply.llm.select":"Select AI Model Knowledge Base"},QIt={"queue.accepting":"Accepting...","queue.accept.success":"Accepted successfully","queue.accept.failed":"Failed to accept","queue.accept":"Accept","queue.empty":"No queuing visitors","queue.loading":"Loading queue...","queue.error":"Failed to load queue","queue.count":"{count} visitors queuing","queue.wait.time":"Estimated wait time: {minutes} minutes"},JIt={"group.create.title":"Create Group Chat","group.create.contacts":"Contacts","group.create.members":"Members","group.create.members.min":"Please select at least 2 members","group.create.creating":"Creating group...","group.create.org.empty":"No organization selected","group.create.success":"Group created successfully","group.create.failed":"Failed to create group","group.create.loading":"Loading members...","group.create.error":"Failed to load members"},ZIt={"upload.modal.title":"Upload Files","upload.drag.text":"Click or drag files here to upload","upload.drag.hint":"Support for single or bulk upload","upload.uploading":"{filename} uploading...","upload.success":"{filename} uploaded successfully","upload.failed":"{filename} upload failed","upload.delete.confirm":"Are you sure to delete this file?","upload.preview.image":"Image Preview","upload.preview.file":"File Preview","upload.button.ok":"OK","upload.button.cancel":"Cancel"},ekt={...NIt,...AIt,...DIt,...jIt,...FIt,...LIt,...BIt,...zIt,...HIt,...UIt,...WIt,...VIt,...KIt,...qIt,...GIt,...YIt,...XIt,...QIt,...JIt,...ZIt},tkt={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},Wpe={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},Vo={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},ua={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},jd={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"};class Gt{static getFirstMatch(t,n){const r=n.match(t);return r&&r.length>0&&r[1]||""}static getSecondMatch(t,n){const r=n.match(t);return r&&r.length>1&&r[2]||""}static matchAndReturnConst(t,n,r){if(t.test(n))return r}static getWindowsVersionName(t){switch(t){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(t){const n=t.split(".").splice(0,2).map(r=>parseInt(r,10)||0);if(n.push(0),n[0]===10)switch(n[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(t){const n=t.split(".").splice(0,2).map(r=>parseInt(r,10)||0);if(n.push(0),!(n[0]===1&&n[1]<5)){if(n[0]===1&&n[1]<6)return"Cupcake";if(n[0]===1&&n[1]>=6)return"Donut";if(n[0]===2&&n[1]<2)return"Eclair";if(n[0]===2&&n[1]===2)return"Froyo";if(n[0]===2&&n[1]>2)return"Gingerbread";if(n[0]===3)return"Honeycomb";if(n[0]===4&&n[1]<1)return"Ice Cream Sandwich";if(n[0]===4&&n[1]<4)return"Jelly Bean";if(n[0]===4&&n[1]>=4)return"KitKat";if(n[0]===5)return"Lollipop";if(n[0]===6)return"Marshmallow";if(n[0]===7)return"Nougat";if(n[0]===8)return"Oreo";if(n[0]===9)return"Pie"}}static getVersionPrecision(t){return t.split(".").length}static compareVersions(t,n,r=!1){const o=Gt.getVersionPrecision(t),i=Gt.getVersionPrecision(n);let a=Math.max(o,i),s=0;const l=Gt.map([t,n],c=>{const u=a-Gt.getVersionPrecision(c),f=c+new Array(u+1).join(".0");return Gt.map(f.split("."),h=>new Array(20-h.length).join("0")+h).reverse()});for(r&&(s=a-Math.min(o,i)),a-=1;a>=s;){if(l[0][a]>l[1][a])return 1;if(l[0][a]===l[1][a]){if(a===s)return 0;a-=1}else if(l[0][a]{r[l]=a[l]})}return t}static getBrowserAlias(t){return tkt[t]}static getBrowserTypeByAlias(t){return Wpe[t]||""}}const Xr=/version\/(\d+(\.?_?\d+)+)/i,nkt=[{test:[/googlebot/i],describe(e){const t={name:"Googlebot"},n=Gt.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||Gt.getFirstMatch(Xr,e);return n&&(t.version=n),t}},{test:[/opera/i],describe(e){const t={name:"Opera"},n=Gt.getFirstMatch(Xr,e)||Gt.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe(e){const t={name:"Opera"},n=Gt.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||Gt.getFirstMatch(Xr,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe(e){const t={name:"Samsung Internet for Android"},n=Gt.getFirstMatch(Xr,e)||Gt.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe(e){const t={name:"NAVER Whale Browser"},n=Gt.getFirstMatch(Xr,e)||Gt.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe(e){const t={name:"MZ Browser"},n=Gt.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||Gt.getFirstMatch(Xr,e);return n&&(t.version=n),t}},{test:[/focus/i],describe(e){const t={name:"Focus"},n=Gt.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||Gt.getFirstMatch(Xr,e);return n&&(t.version=n),t}},{test:[/swing/i],describe(e){const t={name:"Swing"},n=Gt.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||Gt.getFirstMatch(Xr,e);return n&&(t.version=n),t}},{test:[/coast/i],describe(e){const t={name:"Opera Coast"},n=Gt.getFirstMatch(Xr,e)||Gt.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(e){const t={name:"Opera Touch"},n=Gt.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||Gt.getFirstMatch(Xr,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe(e){const t={name:"Yandex Browser"},n=Gt.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||Gt.getFirstMatch(Xr,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe(e){const t={name:"UC Browser"},n=Gt.getFirstMatch(Xr,e)||Gt.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe(e){const t={name:"Maxthon"},n=Gt.getFirstMatch(Xr,e)||Gt.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe(e){const t={name:"Epiphany"},n=Gt.getFirstMatch(Xr,e)||Gt.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe(e){const t={name:"Puffin"},n=Gt.getFirstMatch(Xr,e)||Gt.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe(e){const t={name:"Sleipnir"},n=Gt.getFirstMatch(Xr,e)||Gt.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe(e){const t={name:"K-Meleon"},n=Gt.getFirstMatch(Xr,e)||Gt.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe(e){const t={name:"WeChat"},n=Gt.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||Gt.getFirstMatch(Xr,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe(e){const t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=Gt.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||Gt.getFirstMatch(Xr,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe(e){const t={name:"Internet Explorer"},n=Gt.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe(e){const t={name:"Microsoft Edge"},n=Gt.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe(e){const t={name:"Microsoft Edge"},n=Gt.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe(e){const t={name:"Vivaldi"},n=Gt.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe(e){const t={name:"SeaMonkey"},n=Gt.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe(e){const t={name:"Sailfish"},n=Gt.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe(e){const t={name:"Amazon Silk"},n=Gt.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe(e){const t={name:"PhantomJS"},n=Gt.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe(e){const t={name:"SlimerJS"},n=Gt.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){const t={name:"BlackBerry"},n=Gt.getFirstMatch(Xr,e)||Gt.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe(e){const t={name:"WebOS Browser"},n=Gt.getFirstMatch(Xr,e)||Gt.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe(e){const t={name:"Bada"},n=Gt.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe(e){const t={name:"Tizen"},n=Gt.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||Gt.getFirstMatch(Xr,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe(e){const t={name:"QupZilla"},n=Gt.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||Gt.getFirstMatch(Xr,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){const t={name:"Firefox"},n=Gt.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe(e){const t={name:"Electron"},n=Gt.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe(e){const t={name:"Miui"},n=Gt.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe(e){const t={name:"Chromium"},n=Gt.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||Gt.getFirstMatch(Xr,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe(e){const t={name:"Chrome"},n=Gt.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe(e){const t={name:"Google Search"},n=Gt.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){const t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){const t={name:"Android Browser"},n=Gt.getFirstMatch(Xr,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe(e){const t={name:"PlayStation 4"},n=Gt.getFirstMatch(Xr,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe(e){const t={name:"Safari"},n=Gt.getFirstMatch(Xr,e);return n&&(t.version=n),t}},{test:[/.*/i],describe(e){const t=/^(.*)\/(.*) /,n=/^(.*)\/(.*)[ \t]\((.*)/,o=e.search("\\(")!==-1?n:t;return{name:Gt.getFirstMatch(o,e),version:Gt.getSecondMatch(o,e)}}}],rkt=[{test:[/Roku\/DVP/],describe(e){const t=Gt.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:ua.Roku,version:t}}},{test:[/windows phone/i],describe(e){const t=Gt.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:ua.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){const t=Gt.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=Gt.getWindowsVersionName(t);return{name:ua.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){const t={name:ua.iOS},n=Gt.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe(e){const t=Gt.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=Gt.getMacOSVersionName(t),r={name:ua.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe(e){const t=Gt.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:ua.iOS,version:t}}},{test(e){const t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){const t=Gt.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=Gt.getAndroidVersionName(t),r={name:ua.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe(e){const t=Gt.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:ua.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){const t=Gt.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||Gt.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||Gt.getFirstMatch(/\bbb(\d+)/i,e);return{name:ua.BlackBerry,version:t}}},{test:[/bada/i],describe(e){const t=Gt.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:ua.Bada,version:t}}},{test:[/tizen/i],describe(e){const t=Gt.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:ua.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:ua.Linux}}},{test:[/CrOS/],describe(){return{name:ua.ChromeOS}}},{test:[/PlayStation 4/],describe(e){const t=Gt.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:ua.PlayStation4,version:t}}}],okt=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(e){const t=Gt.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:Vo.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:Vo.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:Vo.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:Vo.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:Vo.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:Vo.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:Vo.tablet}}},{test(e){const t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe(e){const t=Gt.getFirstMatch(/(ipod|iphone)/i,e);return{type:Vo.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:Vo.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:Vo.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:Vo.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:Vo.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:Vo.mobile,vendor:"Microsoft"}}},{test(e){const t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:Vo.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:Vo.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:Vo.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:Vo.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:Vo.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:Vo.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:Vo.tv}}}],ikt=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:jd.Blink};const n=Gt.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:jd.EdgeHTML,version:n}}},{test:[/trident/i],describe(e){const t={name:jd.Trident},n=Gt.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){return e.test(/presto/i)},describe(e){const t={name:jd.Presto},n=Gt.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){const t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe(e){const t={name:jd.Gecko},n=Gt.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:jd.Blink}}},{test:[/(apple)?webkit/i],describe(e){const t={name:jd.WebKit},n=Gt.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}];class BG{constructor(t,n=!1){if(t==null||t==="")throw new Error("UserAgent parameter can't be empty");this._ua=t,this.parsedResult={},n!==!0&&this.parse()}getUA(){return this._ua}test(t){return t.test(this._ua)}parseBrowser(){this.parsedResult.browser={};const t=Gt.find(nkt,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.browser=t.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(t){return t?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};const t=Gt.find(rkt,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.os=t.describe(this.getUA())),this.parsedResult.os}getOSName(t){const{name:n}=this.getOS();return t?String(n).toLowerCase()||"":n||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(t=!1){const{type:n}=this.getPlatform();return t?String(n).toLowerCase()||"":n||""}parsePlatform(){this.parsedResult.platform={};const t=Gt.find(okt,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.platform=t.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(t){return t?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};const t=Gt.find(ikt,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.engine=t.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return Gt.assign({},this.parsedResult)}satisfies(t){const n={};let r=0;const o={};let i=0;if(Object.keys(t).forEach(s=>{const l=t[s];typeof l=="string"?(o[s]=l,i+=1):typeof l=="object"&&(n[s]=l,r+=1)}),r>0){const s=Object.keys(n),l=Gt.find(s,u=>this.isOS(u));if(l){const u=this.satisfies(n[l]);if(u!==void 0)return u}const c=Gt.find(s,u=>this.isPlatform(u));if(c){const u=this.satisfies(n[c]);if(u!==void 0)return u}}if(i>0){const s=Object.keys(o),l=Gt.find(s,c=>this.isBrowser(c,!0));if(l!==void 0)return this.compareVersion(o[l])}}isBrowser(t,n=!1){const r=this.getBrowserName().toLowerCase();let o=t.toLowerCase();const i=Gt.getBrowserTypeByAlias(o);return n&&i&&(o=i.toLowerCase()),o===r}compareVersion(t){let n=[0],r=t,o=!1;const i=this.getBrowserVersion();if(typeof i=="string")return t[0]===">"||t[0]==="<"?(r=t.substr(1),t[1]==="="?(o=!0,r=t.substr(2)):n=[],t[0]===">"?n.push(1):n.push(-1)):t[0]==="="?r=t.substr(1):t[0]==="~"&&(o=!0,r=t.substr(1)),n.indexOf(Gt.compareVersions(i,r,o))>-1}isOS(t){return this.getOSName(!0)===String(t).toLowerCase()}isPlatform(t){return this.getPlatformType(!0)===String(t).toLowerCase()}isEngine(t){return this.getEngineName(!0)===String(t).toLowerCase()}is(t,n=!1){return this.isBrowser(t,n)||this.isOS(t)||this.isPlatform(t)}some(t=[]){return t.some(n=>this.is(n))}}/*! * Bowser - a browser detector * https://github.com/lancedikson/bowser * MIT License | (c) Dustin Diaz 2012-2015 * MIT License | (c) Denis Demchenko 2015-2019 */class akt{static getParser(t,n=!1){if(typeof t!="string")throw new Error("UserAgent should be a string");return new BG(t,n)}static parse(t){return new BG(t).getResult()}static get BROWSER_MAP(){return Wpe}static get ENGINE_MAP(){return jd}static get OS_MAP(){return ua}static get PLATFORMS_MAP(){return Vo}}const{defaultAlgorithm:skt,darkAlgorithm:lkt}=pa,ckt={"zh-cn":fIt,"zh-tw":kIt,en:ekt},ukt=()=>{const{isDarkMode:e,locale:t}=d.useContext(ia),n=new iYe({defaultOptions:{queries:{refetchOnWindowFocus:!1}}}),[r,o]=d.useState(!1),i=()=>{const s=akt.getParser(window.navigator.userAgent);console.log("browser:",s),Pi?console.log("OsName:",s.getOSName()):console.log("BrowserName:",s.getBrowserName()),s.getOSName().toLocaleLowerCase().indexOf("mac")===-1&&o(!0)},a=async()=>{if(console.log("getConfig"),await dJ(),Pi)console.log("is electron");else{await cJ();const s=R_();console.log("Base URL:",s)}};return d.useEffect(()=>{qee(),i(),a()},[]),N.jsx(Mn,{locale:t,theme:{algorithm:e?lkt:skt},children:N.jsx(sYe,{client:n,children:N.jsx(Upe,{children:N.jsx(d.Suspense,{fallback:N.jsx("div",{children:"loading..."}),children:N.jsxs(zEt,{messages:ckt[t.locale],locale:t.locale,defaultLocale:"zh-cn",children:[r&&N.jsx(VRt,{children:N.jsx("link",{rel:"stylesheet",type:"text/css",href:nye})}),N.jsxs(j$,{children:[N.jsx(CGe,{}),N.jsx(jXe,{router:gRt})]})]})})})})})},dkt=()=>N.jsx("div",{className:"App",children:N.jsx(jGe,{children:N.jsx(ukt,{})})});mI.createRoot(document.getElementById("root")).render(N.jsx(dkt,{}));postMessage({payload:"removeLoading"},"*");export{Dp as a,ko as r,Ll as u};