diff --git a/assets/index-CSTdLcb3.css b/assets/index-8Ocx6oqz.css similarity index 90% rename from assets/index-CSTdLcb3.css rename to assets/index-8Ocx6oqz.css index 9db6781..d1e1fc9 100644 --- a/assets/index-CSTdLcb3.css +++ b/assets/index-8Ocx6oqz.css @@ -1 +1 @@ -*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}.fixed{position:fixed}.mx-auto{margin-left:auto;margin-right:auto}.mb-10{margin-bottom:2.5rem}.max-w-screen-xl{max-width:1280px}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.text-center{text-align:center}.text-3xl{font-size:1.875rem;line-height:2.25rem}.font-bold{font-weight:700} +*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}.fixed{position:fixed}.mx-auto{margin-left:auto;margin-right:auto}.mb-10{margin-bottom:2.5rem}.mb-3{margin-bottom:.75rem}.ml-auto{margin-left:auto}.flex{display:flex}.max-w-screen-xl{max-width:1280px}.items-center{align-items:center}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.text-center{text-align:center}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-bold{font-weight:700}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))} diff --git a/assets/index-CIqO8K3b.js b/assets/index-CIqO8K3b.js deleted file mode 100644 index 98ae0ca..0000000 --- a/assets/index-CIqO8K3b.js +++ /dev/null @@ -1,247 +0,0 @@ -var P_=Object.defineProperty;var T_=(e,t,n)=>t in e?P_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Le=(e,t,n)=>T_(e,typeof t!="symbol"?t+"":t,n);function $_(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();function uf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var n1={exports:{}},ff={},r1={exports:{}},Be={};/** - * @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 Vl=Symbol.for("react.element"),R_=Symbol.for("react.portal"),I_=Symbol.for("react.fragment"),F_=Symbol.for("react.strict_mode"),N_=Symbol.for("react.profiler"),A_=Symbol.for("react.provider"),L_=Symbol.for("react.context"),D_=Symbol.for("react.forward_ref"),z_=Symbol.for("react.suspense"),j_=Symbol.for("react.memo"),H_=Symbol.for("react.lazy"),Bm=Symbol.iterator;function B_(e){return e===null||typeof e!="object"?null:(e=Bm&&e[Bm]||e["@@iterator"],typeof e=="function"?e:null)}var i1={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},o1=Object.assign,a1={};function es(e,t,n){this.props=e,this.context=t,this.refs=a1,this.updater=n||i1}es.prototype.isReactComponent={};es.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")};es.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function s1(){}s1.prototype=es.prototype;function np(e,t,n){this.props=e,this.context=t,this.refs=a1,this.updater=n||i1}var rp=np.prototype=new s1;rp.constructor=np;o1(rp,es.prototype);rp.isPureReactComponent=!0;var Vm=Array.isArray,l1=Object.prototype.hasOwnProperty,ip={current:null},c1={key:!0,ref:!0,__self:!0,__source:!0};function u1(e,t,n){var r,i={},o=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(o=""+t.key),t)l1.call(t,r)&&!c1.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1>>1,U=$[B];if(0>>1;Bi(X,z))tei(G,X)?($[B]=G,$[te]=z,B=te):($[B]=X,$[q]=z,B=q);else if(tei(G,z))$[B]=G,$[te]=z,B=te;else break e}}return F}function i($,F){var z=$.sortIndex-F.sortIndex;return z!==0?z:$.id-F.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],c=[],u=1,f=null,d=3,g=!1,m=!1,y=!1,b=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x($){for(var F=n(c);F!==null;){if(F.callback===null)r(c);else if(F.startTime<=$)r(c),F.sortIndex=F.expirationTime,t(l,F);else break;F=n(c)}}function S($){if(y=!1,x($),!m)if(n(l)!==null)m=!0,N(w);else{var F=n(c);F!==null&&T(S,F.startTime-$)}}function w($,F){m=!1,y&&(y=!1,p(k),k=-1),g=!0;var z=d;try{for(x(F),f=n(l);f!==null&&(!(f.expirationTime>F)||$&&!I());){var B=f.callback;if(typeof B=="function"){f.callback=null,d=f.priorityLevel;var U=B(f.expirationTime<=F);F=e.unstable_now(),typeof U=="function"?f.callback=U:f===n(l)&&r(l),x(F)}else r(l);f=n(l)}if(f!==null)var Y=!0;else{var q=n(c);q!==null&&T(S,q.startTime-F),Y=!1}return Y}finally{f=null,d=z,g=!1}}var _=!1,E=null,k=-1,P=5,O=-1;function I(){return!(e.unstable_now()-O$||125<$?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<$?Math.floor(1e3/$):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function($){switch(d){case 1:case 2:case 3:var F=3;break;default:F=d}var z=d;d=F;try{return $()}finally{d=z}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function($,F){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var z=d;d=$;try{return F()}finally{d=z}},e.unstable_scheduleCallback=function($,F,z){var B=e.unstable_now();switch(typeof z=="object"&&z!==null?(z=z.delay,z=typeof z=="number"&&0B?($.sortIndex=z,t(c,$),n(l)===null&&$===n(c)&&(y?(p(k),k=-1):y=!0,T(S,z-B))):($.sortIndex=U,t(l,$),m||g||(m=!0,N(w))),$},e.unstable_shouldYield=I,e.unstable_wrapCallback=function($){var F=d;return function(){var z=d;d=F;try{return $.apply(this,arguments)}finally{d=z}}}})(p1);g1.exports=p1;var J_=g1.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 eE=v,nr=J_;function J(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"),Jd=Object.prototype.hasOwnProperty,tE=/^[: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]*$/,Um={},qm={};function nE(e){return Jd.call(qm,e)?!0:Jd.call(Um,e)?!1:tE.test(e)?qm[e]=!0:(Um[e]=!0,!1)}function rE(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 iE(e,t,n,r){if(t===null||typeof t>"u"||rE(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 Fn(e,t,n,r,i,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var mn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){mn[e]=new Fn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];mn[t]=new Fn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){mn[e]=new Fn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){mn[e]=new Fn(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){mn[e]=new Fn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){mn[e]=new Fn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){mn[e]=new Fn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){mn[e]=new Fn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){mn[e]=new Fn(e,5,!1,e.toLowerCase(),null,!1,!1)});var ap=/[\-:]([a-z])/g;function sp(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(ap,sp);mn[t]=new Fn(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(ap,sp);mn[t]=new Fn(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(ap,sp);mn[t]=new Fn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){mn[e]=new Fn(e,1,!1,e.toLowerCase(),null,!1,!1)});mn.xlinkHref=new Fn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){mn[e]=new Fn(e,1,!1,e.toLowerCase(),null,!0,!0)});function lp(e,t,n,r){var i=mn.hasOwnProperty(t)?mn[t]:null;(i!==null?i.type!==0:r||!(2s||i[a]!==o[s]){var l=` -`+i[a].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{ed=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ks(e):""}function oE(e){switch(e.tag){case 5:return ks(e.type);case 16:return ks("Lazy");case 13:return ks("Suspense");case 19:return ks("SuspenseList");case 0:case 2:case 15:return e=td(e.type,!1),e;case 11:return e=td(e.type.render,!1),e;case 1:return e=td(e.type,!0),e;default:return""}}function rh(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 ma:return"Fragment";case pa:return"Portal";case eh:return"Profiler";case cp:return"StrictMode";case th:return"Suspense";case nh:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case y1:return(e.displayName||"Context")+".Consumer";case v1:return(e._context.displayName||"Context")+".Provider";case up:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case fp:return t=e.displayName||null,t!==null?t:rh(e.type)||"Memo";case Ii:t=e._payload,e=e._init;try{return rh(e(t))}catch{}}return null}function aE(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 rh(t);case 8:return t===cp?"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 eo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function x1(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function sE(e){var t=x1(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){r=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ac(e){e._valueTracker||(e._valueTracker=sE(e))}function S1(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=x1(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function xu(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 ih(e,t){var n=t.checked;return kt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Xm(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=eo(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 w1(e,t){t=t.checked,t!=null&&lp(e,"checked",t,!1)}function oh(e,t){w1(e,t);var n=eo(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")?ah(e,t.type,n):t.hasOwnProperty("defaultValue")&&ah(e,t.type,eo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Km(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 ah(e,t,n){(t!=="number"||xu(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Os=Array.isArray;function $a(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=sc.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function sl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ls={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},lE=["Webkit","ms","Moz","O"];Object.keys(Ls).forEach(function(e){lE.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ls[t]=Ls[e]})});function M1(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ls.hasOwnProperty(e)&&Ls[e]?(""+t).trim():t+"px"}function k1(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=M1(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var cE=kt({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 ch(e,t){if(t){if(cE[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(J(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(J(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(J(61))}if(t.style!=null&&typeof t.style!="object")throw Error(J(62))}}function uh(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 fh=null;function dp(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var dh=null,Ra=null,Ia=null;function Zm(e){if(e=ql(e)){if(typeof dh!="function")throw Error(J(280));var t=e.stateNode;t&&(t=vf(t),dh(e.stateNode,e.type,t))}}function O1(e){Ra?Ia?Ia.push(e):Ia=[e]:Ra=e}function P1(){if(Ra){var e=Ra,t=Ia;if(Ia=Ra=null,Zm(e),t)for(e=0;e>>=0,e===0?32:31-(xE(e)/SE|0)|0}var lc=64,cc=4194304;function Ps(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 _u(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~i;s!==0?r=Ps(s):(o&=a,o!==0&&(r=Ps(o)))}else a=n&~i,a!==0?r=Ps(a):o!==0&&(r=Ps(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Wl(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-jr(t),e[t]=n}function EE(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=zs),sv=" ",lv=!1;function K1(e,t){switch(e){case"keyup":return JE.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Y1(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var va=!1;function t2(e,t){switch(e){case"compositionend":return Y1(t);case"keypress":return t.which!==32?null:(lv=!0,sv);case"textInput":return e=t.data,e===sv&&lv?null:e;default:return null}}function n2(e,t){if(va)return e==="compositionend"||!xp&&K1(e,t)?(e=G1(),Jc=vp=Di=null,va=!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=dv(n)}}function ex(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ex(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function tx(){for(var e=window,t=xu();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=xu(e.document)}return t}function Sp(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 f2(e){var t=tx(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&ex(n.ownerDocument.documentElement,n)){if(r!==null&&Sp(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=hv(n,o);var a=hv(n,r);i&&a&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,ya=null,yh=null,Hs=null,bh=!1;function gv(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;bh||ya==null||ya!==xu(r)||(r=ya,"selectionStart"in r&&Sp(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}),Hs&&hl(Hs,r)||(Hs=r,r=ku(yh,"onSelect"),0Sa||(e.current=Eh[Sa],Eh[Sa]=null,Sa--)}function ut(e,t){Sa++,Eh[Sa]=e.current,e.current=t}var to={},Mn=ao(to),Vn=ao(!1),Fo=to;function ja(e,t){var n=e.type.contextTypes;if(!n)return to;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Wn(e){return e=e.childContextTypes,e!=null}function Pu(){ht(Vn),ht(Mn)}function Sv(e,t,n){if(Mn.current!==to)throw Error(J(168));ut(Mn,t),ut(Vn,n)}function ux(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(J(108,aE(e)||"Unknown",i));return kt({},n,r)}function Tu(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||to,Fo=Mn.current,ut(Mn,e),ut(Vn,Vn.current),!0}function wv(e,t,n){var r=e.stateNode;if(!r)throw Error(J(169));n?(e=ux(e,t,Fo),r.__reactInternalMemoizedMergedChildContext=e,ht(Vn),ht(Mn),ut(Mn,e)):ht(Vn),ut(Vn,n)}var pi=null,yf=!1,pd=!1;function fx(e){pi===null?pi=[e]:pi.push(e)}function C2(e){yf=!0,fx(e)}function so(){if(!pd&&pi!==null){pd=!0;var e=0,t=it;try{var n=pi;for(it=1;e>=a,i-=a,vi=1<<32-jr(t)+i|n<k?(P=E,E=null):P=E.sibling;var O=d(p,E,x[k],S);if(O===null){E===null&&(E=P);break}e&&E&&O.alternate===null&&t(p,E),h=o(O,h,k),_===null?w=O:_.sibling=O,_=O,E=P}if(k===x.length)return n(p,E),yt&&vo(p,k),w;if(E===null){for(;kk?(P=E,E=null):P=E.sibling;var I=d(p,E,O.value,S);if(I===null){E===null&&(E=P);break}e&&E&&I.alternate===null&&t(p,E),h=o(I,h,k),_===null?w=I:_.sibling=I,_=I,E=P}if(O.done)return n(p,E),yt&&vo(p,k),w;if(E===null){for(;!O.done;k++,O=x.next())O=f(p,O.value,S),O!==null&&(h=o(O,h,k),_===null?w=O:_.sibling=O,_=O);return yt&&vo(p,k),w}for(E=r(p,E);!O.done;k++,O=x.next())O=g(E,p,k,O.value,S),O!==null&&(e&&O.alternate!==null&&E.delete(O.key===null?k:O.key),h=o(O,h,k),_===null?w=O:_.sibling=O,_=O);return e&&E.forEach(function(A){return t(p,A)}),yt&&vo(p,k),w}function b(p,h,x,S){if(typeof x=="object"&&x!==null&&x.type===ma&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case oc:e:{for(var w=x.key,_=h;_!==null;){if(_.key===w){if(w=x.type,w===ma){if(_.tag===7){n(p,_.sibling),h=i(_,x.props.children),h.return=p,p=h;break e}}else if(_.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===Ii&&Ev(w)===_.type){n(p,_.sibling),h=i(_,x.props),h.ref=vs(p,_,x),h.return=p,p=h;break e}n(p,_);break}else t(p,_);_=_.sibling}x.type===ma?(h=To(x.props.children,p.mode,S,x.key),h.return=p,p=h):(S=su(x.type,x.key,x.props,null,p.mode,S),S.ref=vs(p,h,x),S.return=p,p=S)}return a(p);case pa:e:{for(_=x.key;h!==null;){if(h.key===_)if(h.tag===4&&h.stateNode.containerInfo===x.containerInfo&&h.stateNode.implementation===x.implementation){n(p,h.sibling),h=i(h,x.children||[]),h.return=p,p=h;break e}else{n(p,h);break}else t(p,h);h=h.sibling}h=Cd(x,p.mode,S),h.return=p,p=h}return a(p);case Ii:return _=x._init,b(p,h,_(x._payload),S)}if(Os(x))return m(p,h,x,S);if(ds(x))return y(p,h,x,S);mc(p,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,h!==null&&h.tag===6?(n(p,h.sibling),h=i(h,x),h.return=p,p=h):(n(p,h),h=wd(x,p.mode,S),h.return=p,p=h),a(p)):n(p,h)}return b}var Ba=px(!0),mx=px(!1),Iu=ao(null),Fu=null,_a=null,Ep=null;function Mp(){Ep=_a=Fu=null}function kp(e){var t=Iu.current;ht(Iu),e._currentValue=t}function Oh(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 Na(e,t){Fu=e,Ep=_a=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Bn=!0),e.firstContext=null)}function Sr(e){var t=e._currentValue;if(Ep!==e)if(e={context:e,memoizedValue:t,next:null},_a===null){if(Fu===null)throw Error(J(308));_a=e,Fu.dependencies={lanes:0,firstContext:e}}else _a=_a.next=e;return t}var wo=null;function Op(e){wo===null?wo=[e]:wo.push(e)}function vx(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Op(t)):(n.next=i.next,i.next=n),t.interleaved=n,_i(e,r)}function _i(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 Fi=!1;function Pp(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function yx(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 bi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ki(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Je&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,_i(e,n)}return i=r.interleaved,i===null?(t.next=t,Op(r)):(t.next=i.next,i.next=t),r.interleaved=t,_i(e,n)}function tu(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,gp(e,n)}}function Mv(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=a:o=o.next=a,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Nu(e,t,n,r){var i=e.updateQueue;Fi=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var l=s,c=l.next;l.next=null,a===null?o=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(o!==null){var f=i.baseState;a=0,u=c=l=null,s=o;do{var d=s.lane,g=s.eventTime;if((r&d)===d){u!==null&&(u=u.next={eventTime:g,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var m=e,y=s;switch(d=t,g=n,y.tag){case 1:if(m=y.payload,typeof m=="function"){f=m.call(g,f,d);break e}f=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=y.payload,d=typeof m=="function"?m.call(g,f,d):m,d==null)break e;f=kt({},f,d);break e;case 2:Fi=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,d=i.effects,d===null?i.effects=[s]:d.push(s))}else g={eventTime:g,lane:d,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(c=u=g,l=f):u=u.next=g,a|=d;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;d=s,s=d.next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}while(!0);if(u===null&&(l=f),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=u,t=i.shared.interleaved,t!==null){i=t;do a|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);Lo|=a,e.lanes=a,e.memoizedState=f}}function kv(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=vd.transition;vd.transition={};try{e(!1),t()}finally{it=n,vd.transition=r}}function Nx(){return wr().memoizedState}function k2(e,t,n){var r=Qi(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ax(e))Lx(t,n);else if(n=vx(e,t,n,r),n!==null){var i=$n();Hr(n,e,r,i),Dx(n,t,r)}}function O2(e,t,n){var r=Qi(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ax(e))Lx(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,Wr(s,a)){var l=t.interleaved;l===null?(i.next=i,Op(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=vx(e,t,i,r),n!==null&&(i=$n(),Hr(n,e,r,i),Dx(n,t,r))}}function Ax(e){var t=e.alternate;return e===Mt||t!==null&&t===Mt}function Lx(e,t){Bs=Lu=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Dx(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,gp(e,n)}}var Du={readContext:Sr,useCallback:bn,useContext:bn,useEffect:bn,useImperativeHandle:bn,useInsertionEffect:bn,useLayoutEffect:bn,useMemo:bn,useReducer:bn,useRef:bn,useState:bn,useDebugValue:bn,useDeferredValue:bn,useTransition:bn,useMutableSource:bn,useSyncExternalStore:bn,useId:bn,unstable_isNewReconciler:!1},P2={readContext:Sr,useCallback:function(e,t){return Jr().memoizedState=[e,t===void 0?null:t],e},useContext:Sr,useEffect:Pv,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ru(4194308,4,Tx.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ru(4194308,4,e,t)},useInsertionEffect:function(e,t){return ru(4,2,e,t)},useMemo:function(e,t){var n=Jr();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Jr();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=k2.bind(null,Mt,e),[r.memoizedState,e]},useRef:function(e){var t=Jr();return e={current:e},t.memoizedState=e},useState:Ov,useDebugValue:Lp,useDeferredValue:function(e){return Jr().memoizedState=e},useTransition:function(){var e=Ov(!1),t=e[0];return e=M2.bind(null,e[1]),Jr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Mt,i=Jr();if(yt){if(n===void 0)throw Error(J(407));n=n()}else{if(n=t(),an===null)throw Error(J(349));Ao&30||wx(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,Pv(_x.bind(null,r,o,e),[e]),r.flags|=2048,Sl(9,Cx.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Jr(),t=an.identifierPrefix;if(yt){var n=yi,r=vi;n=(r&~(1<<32-jr(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=bl++,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[ri]=t,e[ml]=r,Xx(e,t,!1,!1),t.stateNode=e;e:{switch(a=uh(n,r),n){case"dialog":dt("cancel",e),dt("close",e),i=r;break;case"iframe":case"object":case"embed":dt("load",e),i=r;break;case"video":case"audio":for(i=0;iUa&&(t.flags|=128,r=!0,ys(o,!1),t.lanes=4194304)}else{if(!r)if(e=Au(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ys(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!yt)return xn(t),null}else 2*zt()-o.renderingStartTime>Ua&&n!==1073741824&&(t.flags|=128,r=!0,ys(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(n=o.last,n!==null?n.sibling=a:t.child=a,o.last=a)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=zt(),t.sibling=null,n=Et.current,ut(Et,r?n&1|2:n&1),t):(xn(t),null);case 22:case 23:return Vp(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Zn&1073741824&&(xn(t),t.subtreeFlags&6&&(t.flags|=8192)):xn(t),null;case 24:return null;case 25:return null}throw Error(J(156,t.tag))}function L2(e,t){switch(Cp(t),t.tag){case 1:return Wn(t.type)&&Pu(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Va(),ht(Vn),ht(Mn),Rp(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return $p(t),null;case 13:if(ht(Et),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(J(340));Ha()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ht(Et),null;case 4:return Va(),null;case 10:return kp(t.type._context),null;case 22:case 23:return Vp(),null;case 24:return null;default:return null}}var yc=!1,wn=!1,D2=typeof WeakSet=="function"?WeakSet:Set,ce=null;function Ea(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){It(e,t,r)}else n.current=null}function Lh(e,t,n){try{n()}catch(r){It(e,t,r)}}var jv=!1;function z2(e,t){if(xh=Eu,e=tx(),Sp(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var a=0,s=-1,l=-1,c=0,u=0,f=e,d=null;t:for(;;){for(var g;f!==n||i!==0&&f.nodeType!==3||(s=a+i),f!==o||r!==0&&f.nodeType!==3||(l=a+r),f.nodeType===3&&(a+=f.nodeValue.length),(g=f.firstChild)!==null;)d=f,f=g;for(;;){if(f===e)break t;if(d===n&&++c===i&&(s=a),d===o&&++u===r&&(l=a),(g=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=g}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Sh={focusedElem:e,selectionRange:n},Eu=!1,ce=t;ce!==null;)if(t=ce,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ce=e;else for(;ce!==null;){t=ce;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 y=m.memoizedProps,b=m.memoizedState,p=t.stateNode,h=p.getSnapshotBeforeUpdate(t.elementType===t.type?y:Ir(t.type,y),b);p.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(J(163))}}catch(S){It(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,ce=e;break}ce=t.return}return m=jv,jv=!1,m}function Vs(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&Lh(t,n,o)}i=i.next}while(i!==r)}}function Sf(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 Dh(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 Qx(e){var t=e.alternate;t!==null&&(e.alternate=null,Qx(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ri],delete t[ml],delete t[_h],delete t[S2],delete t[w2])),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 Zx(e){return e.tag===5||e.tag===3||e.tag===4}function Hv(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Zx(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 zh(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=Ou));else if(r!==4&&(e=e.child,e!==null))for(zh(e,t,n),e=e.sibling;e!==null;)zh(e,t,n),e=e.sibling}function jh(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(jh(e,t,n),e=e.sibling;e!==null;)jh(e,t,n),e=e.sibling}var dn=null,Fr=!1;function Oi(e,t,n){for(n=n.child;n!==null;)Jx(e,t,n),n=n.sibling}function Jx(e,t,n){if(oi&&typeof oi.onCommitFiberUnmount=="function")try{oi.onCommitFiberUnmount(hf,n)}catch{}switch(n.tag){case 5:wn||Ea(n,t);case 6:var r=dn,i=Fr;dn=null,Oi(e,t,n),dn=r,Fr=i,dn!==null&&(Fr?(e=dn,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):dn.removeChild(n.stateNode));break;case 18:dn!==null&&(Fr?(e=dn,n=n.stateNode,e.nodeType===8?gd(e.parentNode,n):e.nodeType===1&&gd(e,n),fl(e)):gd(dn,n.stateNode));break;case 4:r=dn,i=Fr,dn=n.stateNode.containerInfo,Fr=!0,Oi(e,t,n),dn=r,Fr=i;break;case 0:case 11:case 14:case 15:if(!wn&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,a!==void 0&&(o&2||o&4)&&Lh(n,t,a),i=i.next}while(i!==r)}Oi(e,t,n);break;case 1:if(!wn&&(Ea(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){It(n,t,s)}Oi(e,t,n);break;case 21:Oi(e,t,n);break;case 22:n.mode&1?(wn=(r=wn)||n.memoizedState!==null,Oi(e,t,n),wn=r):Oi(e,t,n);break;default:Oi(e,t,n)}}function Bv(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new D2),t.forEach(function(r){var i=X2.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Tr(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=a),r&=~o}if(r=i,r=zt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*H2(r/1960))-r,10e?16:e,zi===null)var r=!1;else{if(e=zi,zi=null,Hu=0,Je&6)throw Error(J(331));var i=Je;for(Je|=4,ce=e.current;ce!==null;){var o=ce,a=o.child;if(ce.flags&16){var s=o.deletions;if(s!==null){for(var l=0;lzt()-Hp?Po(e,0):jp|=n),Un(e,t)}function sS(e,t){t===0&&(e.mode&1?(t=cc,cc<<=1,!(cc&130023424)&&(cc=4194304)):t=1);var n=$n();e=_i(e,t),e!==null&&(Wl(e,t,n),Un(e,n))}function G2(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),sS(e,n)}function X2(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(J(314))}r!==null&&r.delete(t),sS(e,n)}var lS;lS=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Vn.current)Bn=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Bn=!1,N2(e,t,n);Bn=!!(e.flags&131072)}else Bn=!1,yt&&t.flags&1048576&&dx(t,Ru,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;iu(e,t),e=t.pendingProps;var i=ja(t,Mn.current);Na(t,n),i=Fp(null,t,r,e,i,n);var o=Np();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Wn(r)?(o=!0,Tu(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Pp(t),i.updater=xf,t.stateNode=i,i._reactInternals=t,Th(t,r,e,n),t=Ih(null,t,r,!0,o,n)):(t.tag=0,yt&&o&&wp(t),Tn(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(iu(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Y2(r),e=Ir(r,e),i){case 0:t=Rh(null,t,r,e,n);break e;case 1:t=Lv(null,t,r,e,n);break e;case 11:t=Nv(null,t,r,e,n);break e;case 14:t=Av(null,t,r,Ir(r.type,e),n);break e}throw Error(J(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ir(r,i),Rh(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ir(r,i),Lv(e,t,r,i,n);case 3:e:{if(Ux(t),e===null)throw Error(J(387));r=t.pendingProps,o=t.memoizedState,i=o.element,yx(e,t),Nu(t,r,null,n);var a=t.memoizedState;if(r=a.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Wa(Error(J(423)),t),t=Dv(e,t,r,n,i);break e}else if(r!==i){i=Wa(Error(J(424)),t),t=Dv(e,t,r,n,i);break e}else for(Jn=Xi(t.stateNode.containerInfo.firstChild),tr=t,yt=!0,Lr=null,n=mx(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ha(),r===i){t=Ei(e,t,n);break e}Tn(e,t,r,n)}t=t.child}return t;case 5:return bx(t),e===null&&kh(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,wh(r,i)?a=null:o!==null&&wh(r,o)&&(t.flags|=32),Wx(e,t),Tn(e,t,a,n),t.child;case 6:return e===null&&kh(t),null;case 13:return qx(e,t,n);case 4:return Tp(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ba(t,null,r,n):Tn(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ir(r,i),Nv(e,t,r,i,n);case 7:return Tn(e,t,t.pendingProps,n),t.child;case 8:return Tn(e,t,t.pendingProps.children,n),t.child;case 12:return Tn(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,ut(Iu,r._currentValue),r._currentValue=a,o!==null)if(Wr(o.value,a)){if(o.children===i.children&&!Vn.current){t=Ei(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){a=o.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=bi(-1,n&-n),l.tag=2;var c=o.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}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),Oh(o.return,n,t),s.lanes|=n;break}l=l.next}}else if(o.tag===10)a=o.type===t.type?null:o.child;else if(o.tag===18){if(a=o.return,a===null)throw Error(J(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),Oh(a,n,t),a=o.sibling}else a=o.child;if(a!==null)a.return=o;else for(a=o;a!==null;){if(a===t){a=null;break}if(o=a.sibling,o!==null){o.return=a.return,a=o;break}a=a.return}o=a}Tn(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Na(t,n),i=Sr(i),r=r(i),t.flags|=1,Tn(e,t,r,n),t.child;case 14:return r=t.type,i=Ir(r,t.pendingProps),i=Ir(r.type,i),Av(e,t,r,i,n);case 15:return Bx(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ir(r,i),iu(e,t),t.tag=1,Wn(r)?(e=!0,Tu(t)):e=!1,Na(t,n),zx(t,r,i),Th(t,r,i,n),Ih(null,t,r,!0,e,n);case 19:return Gx(e,t,n);case 22:return Vx(e,t,n)}throw Error(J(156,t.tag))};function cS(e,t){return A1(e,t)}function K2(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 vr(e,t,n,r){return new K2(e,t,n,r)}function Up(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Y2(e){if(typeof e=="function")return Up(e)?1:0;if(e!=null){if(e=e.$$typeof,e===up)return 11;if(e===fp)return 14}return 2}function Zi(e,t){var n=e.alternate;return n===null?(n=vr(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 su(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")Up(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case ma:return To(n.children,i,o,t);case cp:a=8,i|=8;break;case eh:return e=vr(12,n,t,i|2),e.elementType=eh,e.lanes=o,e;case th:return e=vr(13,n,t,i),e.elementType=th,e.lanes=o,e;case nh:return e=vr(19,n,t,i),e.elementType=nh,e.lanes=o,e;case b1:return Cf(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case v1:a=10;break e;case y1:a=9;break e;case up:a=11;break e;case fp:a=14;break e;case Ii:a=16,r=null;break e}throw Error(J(130,e==null?e:typeof e,""))}return t=vr(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function To(e,t,n,r){return e=vr(7,e,r,t),e.lanes=n,e}function Cf(e,t,n,r){return e=vr(22,e,r,t),e.elementType=b1,e.lanes=n,e.stateNode={isHidden:!1},e}function wd(e,t,n){return e=vr(6,e,null,t),e.lanes=n,e}function Cd(e,t,n){return t=vr(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Q2(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=rd(0),this.expirationTimes=rd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=rd(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function qp(e,t,n,r,i,o,a,s,l){return e=new Q2(e,t,n,s,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=vr(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Pp(o),e}function Z2(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(hS)}catch(e){console.error(e)}}hS(),h1.exports=ir;var Of=h1.exports;const Yv=uf(Of);var gS,Qv=Of;gS=Qv.createRoot,Qv.hydrateRoot;var pS={exports:{}};/*! - Copyright (c) 2018 Jed Watson. - Licensed under the MIT License (MIT), see - http://jedwatson.github.io/classnames -*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var o="",a=0;a1&&arguments[1]!==void 0?arguments[1]:{},n=[];return $e.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(Cl(r)):qs.isFragment(r)&&r.props?n=n.concat(Cl(r.props.children,t)):n.push(r))}),n}var Uh={},aM=function(t){};function sM(e,t){}function lM(e,t){}function cM(){Uh={}}function yS(e,t,n){!t&&!Uh[n]&&(e(!1,n),Uh[n]=!0)}function En(e,t){yS(sM,e,t)}function uM(e,t){yS(lM,e,t)}En.preMessage=aM;En.resetWarned=cM;En.noteOnce=uM;function Te(e){"@babel/helpers - typeof";return Te=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},Te(e)}function fM(e,t){if(Te(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Te(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function bS(e){var t=fM(e,"string");return Te(t)=="symbol"?t:t+""}function L(e,t,n){return(t=bS(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function V(e){for(var t=1;t=19;var qh=v.createContext(null);function dM(e){var t=e.children,n=e.onBatchResize,r=v.useRef(0),i=v.useRef([]),o=v.useContext(qh),a=v.useCallback(function(s,l,c){r.current+=1;var u=r.current;i.current.push({size:s,element:l,data:c}),Promise.resolve().then(function(){u===r.current&&(n==null||n(i.current),i.current=[])}),o==null||o(s,l,c)},[n,o]);return v.createElement(qh.Provider,{value:a},t)}var SS=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(i,o){return i[0]===n?(r=o,!0):!1}),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),i=this.__entries__[r];return i&&i[1]},t.prototype.set=function(n,r){var i=e(this.__entries__,n);~i?this.__entries__[i][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,i=e(r,n);~i&&r.splice(i,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var i=0,o=this.__entries__;i0},e.prototype.connect_=function(){!Gh||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),yM?(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(){!Gh||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,i=vM.some(function(o){return!!~r.indexOf(o)});i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),wS=function(e,t){for(var n=0,r=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof qa(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new kM(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 qa(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 OM(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}(),_S=typeof WeakMap<"u"?new WeakMap:new SS,ES=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=bM.getInstance(),r=new PM(t,n,this);_S.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){ES.prototype[e]=function(){var t;return(t=_S.get(this))[e].apply(t,arguments)}});var TM=function(){return typeof Wu.ResizeObserver<"u"?Wu.ResizeObserver:ES}(),ji=new Map;function $M(e){e.forEach(function(t){var n,r=t.target;(n=ji.get(r))===null||n===void 0||n.forEach(function(i){return i(r)})})}var MS=new TM($M);function RM(e,t){ji.has(e)||(ji.set(e,new Set),MS.observe(e)),ji.get(e).add(t)}function IM(e,t){ji.has(e)&&(ji.get(e).delete(t),ji.get(e).size||(MS.unobserve(e),ji.delete(e)))}function ln(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t0(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;n0+=1;var r=n0;function i(o){if(o===0)$S(r),t();else{var a=PS(function(){i(o-1)});im.set(r,a)}}return i(n),r};qn.cancel=function(e){var t=im.get(e);return $S(e),TS(t)};function RS(e){if(Array.isArray(e))return e}function BM(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}function IS(){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 ee(e,t){return RS(e)||BM(e,t)||rm(e,t)||IS()}function kl(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function rr(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function VM(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 r0="data-rc-order",i0="data-rc-priority",WM="rc-util-key",Kh=new Map;function FS(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):WM}function jf(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function UM(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function om(e){return Array.from((Kh.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function NS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!rr())return null;var n=t.csp,r=t.prepend,i=t.priority,o=i===void 0?0:i,a=UM(r),s=a==="prependQueue",l=document.createElement("style");l.setAttribute(r0,a),s&&o&&l.setAttribute(i0,"".concat(o)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;var c=jf(t),u=c.firstChild;if(r){if(s){var f=(t.styles||om(c)).filter(function(d){if(!["prepend","prependQueue"].includes(d.getAttribute(r0)))return!1;var g=Number(d.getAttribute(i0)||0);return o>=g});if(f.length)return c.insertBefore(l,f[f.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function AS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=jf(t);return(t.styles||om(n)).find(function(r){return r.getAttribute(FS(t))===e})}function Ol(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=AS(e,t);if(n){var r=jf(t);r.removeChild(n)}}function qM(e,t){var n=Kh.get(e);if(!n||!VM(document,n)){var r=NS("",t),i=r.parentNode;Kh.set(e,i),e.removeChild(r)}}function xi(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=jf(n),i=om(r),o=V(V({},n),{},{styles:i});qM(r,o);var a=AS(t,o);if(a){var s,l;if((s=o.csp)!==null&&s!==void 0&&s.nonce&&a.nonce!==((l=o.csp)===null||l===void 0?void 0:l.nonce)){var c;a.nonce=(c=o.csp)===null||c===void 0?void 0:c.nonce}return a.innerHTML!==e&&(a.innerHTML=e),a}var u=NS(e,o);return u.setAttribute(FS(o),t),u}function GM(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 Gn(e,t){if(e==null)return{};var n,r,i=GM(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function i(o,a){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(o);if(En(!l,"Warning: There may be circular references"),l)return!1;if(o===a)return!0;if(n&&s>1)return!1;r.add(o);var c=s+1;if(Array.isArray(o)){if(!Array.isArray(a)||o.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&&o&&(a.value[1]=this.cacheCallTimes++),(i=a)===null||i===void 0?void 0:i.value}},{key:"get",value:function(n){var r;return(r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return!!this.internalGet(n)}},{key:"set",value:function(n,r){var i=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(c,u){var f=ee(c,2),d=f[1];return i.internalGet(u)[1]0,void 0),o0+=1}return cn(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,i){return i(n,r)},void 0)}}]),e}(),_d=new am;function Qh(e){var t=Array.isArray(e)?e:[e];return _d.has(t)||_d.set(t,new LS(t)),_d.get(t)}var ZM=new WeakMap,Ed={};function JM(e,t){for(var n=ZM,r=0;r1&&arguments[1]!==void 0?arguments[1]:!1,n=a0.get(e)||"";return n||(Object.keys(e).forEach(function(r){var i=e[r];n+=r,i instanceof LS?n+=i.id:i&&Te(i)==="object"?n+=Gs(i,t):n+=i}),t&&(n=kl(n)),a0.set(e,n)),n}function s0(e,t){return kl("".concat(t,"_").concat(Gs(e,!0)))}var Zh=rr();function fe(e){return typeof e=="number"?"".concat(e,"px"):e}function Gu(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(i)return e;var o=V(V({},r),{},L(L({},Ga,t),Br,n)),a=Object.keys(o).map(function(s){var l=o[s];return l?"".concat(s,'="').concat(l,'"'):null}).filter(function(s){return s}).join(" ");return"")}var cu=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()},ek=function(t,n,r){return Object.keys(t).length?".".concat(n).concat(r!=null&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(t).map(function(i){var o=ee(i,2),a=o[0],s=o[1];return"".concat(a,":").concat(s,";")}).join(""),"}"):""},DS=function(t,n,r){var i={},o={};return Object.entries(t).forEach(function(a){var s,l,c=ee(a,2),u=c[0],f=c[1];if(r!=null&&(s=r.preserve)!==null&&s!==void 0&&s[u])o[u]=f;else if((typeof f=="string"||typeof f=="number")&&!(r!=null&&(l=r.ignore)!==null&&l!==void 0&&l[u])){var d,g=cu(u,r==null?void 0:r.prefix);i[g]=typeof f=="number"&&!(r!=null&&(d=r.unitless)!==null&&d!==void 0&&d[u])?"".concat(f,"px"):String(f),o[u]="var(".concat(g,")")}}),[o,ek(i,n,{scope:r==null?void 0:r.scope})]},l0=rr()?v.useLayoutEffect:v.useEffect,hn=function(t,n){var r=v.useRef(!0);l0(function(){return t(r.current)},n),l0(function(){return r.current=!1,function(){r.current=!0}},[])},Xs=function(t,n){hn(function(r){if(!r)return t()},n)},tk=V({},df),c0=tk.useInsertionEffect,nk=function(t,n,r){v.useMemo(t,r),hn(function(){return n(!0)},r)},rk=c0?function(e,t,n){return c0(function(){return e(),t()},n)}:nk,ik=V({},df),ok=ik.useInsertionEffect,ak=function(t){var n=[],r=!1;function i(o){r||n.push(o)}return v.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(o){return o()})}},t),i},sk=function(){return function(t){t()}},lk=typeof ok<"u"?ak:sk;function sm(e,t,n,r,i){var o=v.useContext(Hf),a=o.cache,s=[e].concat(se(t)),l=Yh(s),c=lk([l]),u=function(m){a.opUpdate(l,function(y){var b=y||[void 0,void 0],p=ee(b,2),h=p[0],x=h===void 0?0:h,S=p[1],w=S,_=w||n(),E=[x,_];return m?m(E):E})};v.useMemo(function(){u()},[l]);var f=a.opGet(l),d=f[1];return rk(function(){i==null||i(d)},function(g){return u(function(m){var y=ee(m,2),b=y[0],p=y[1];return g&&b===0&&(i==null||i(d)),[b+1,p]}),function(){a.opUpdate(l,function(m){var y=m||[],b=ee(y,2),p=b[0],h=p===void 0?0:p,x=b[1],S=h-1;return S===0?(c(function(){(g||!a.opGet(l))&&(r==null||r(x,!1))}),null):[h-1,x]})}},[l]),d}var ck={},uk="css",xo=new Map;function fk(e){xo.set(e,(xo.get(e)||0)+1)}function dk(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(Ga,'="').concat(e,'"]'));n.forEach(function(r){if(r[Hi]===t){var i;(i=r.parentNode)===null||i===void 0||i.removeChild(r)}})}}var hk=0;function gk(e,t){xo.set(e,(xo.get(e)||0)-1);var n=Array.from(xo.keys()),r=n.filter(function(i){var o=xo.get(i)||0;return o<=0});n.length-r.length>hk&&r.forEach(function(i){dk(i,t),xo.delete(i)})}var pk=function(t,n,r,i){var o=r.getDerivativeToken(t),a=V(V({},o),n);return i&&(a=i(a)),a},zS="token";function mk(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=v.useContext(Hf),i=r.cache.instanceId,o=r.container,a=n.salt,s=a===void 0?"":a,l=n.override,c=l===void 0?ck:l,u=n.formatToken,f=n.getComputedToken,d=n.cssVar,g=JM(function(){return Object.assign.apply(Object,[{}].concat(se(t)))},t),m=Gs(g),y=Gs(c),b=d?Gs(d):"",p=sm(zS,[s,e.id,m,y,b],function(){var h,x=f?f(g,c,e):pk(g,c,e,u),S=V({},x),w="";if(d){var _=DS(x,d.key,{prefix:d.prefix,ignore:d.ignore,unitless:d.unitless,preserve:d.preserve}),E=ee(_,2);x=E[0],w=E[1]}var k=s0(x,s);x._tokenKey=k,S._tokenKey=s0(S,s);var P=(h=d==null?void 0:d.key)!==null&&h!==void 0?h:k;x._themeKey=P,fk(P);var O="".concat(uk,"-").concat(kl(k));return x._hashId=O,[x,O,S,w,(d==null?void 0:d.key)||""]},function(h){gk(h[0]._themeKey,i)},function(h){var x=ee(h,4),S=x[0],w=x[3];if(d&&w){var _=xi(w,kl("css-variables-".concat(S._themeKey)),{mark:Br,prepend:"queue",attachTo:o,priority:-999});_[Hi]=i,_.setAttribute(Ga,S._themeKey)}});return p}var vk=function(t,n,r){var i=ee(t,5),o=i[2],a=i[3],s=i[4],l=r||{},c=l.plain;if(!a)return null;var u=o._tokenKey,f=-999,d={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},g=Gu(a,s,u,d,c);return[f,u,g]},yk={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},jS="comm",HS="rule",BS="decl",bk="@import",xk="@keyframes",Sk="@layer",VS=Math.abs,lm=String.fromCharCode;function WS(e){return e.trim()}function uu(e,t,n){return e.replace(t,n)}function wk(e,t,n){return e.indexOf(t,n)}function Pl(e,t){return e.charCodeAt(t)|0}function Xa(e,t,n){return e.slice(t,n)}function ti(e){return e.length}function Ck(e){return e.length}function Sc(e,t){return t.push(e),e}var Bf=1,Ka=1,US=0,Cr=0,Ut=0,rs="";function cm(e,t,n,r,i,o,a,s){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:Bf,column:Ka,length:a,return:"",siblings:s}}function _k(){return Ut}function Ek(){return Ut=Cr>0?Pl(rs,--Cr):0,Ka--,Ut===10&&(Ka=1,Bf--),Ut}function Vr(){return Ut=Cr2||Tl(Ut)>3?"":" "}function Pk(e,t){for(;--t&&Vr()&&!(Ut<48||Ut>102||Ut>57&&Ut<65||Ut>70&&Ut<97););return Vf(e,fu()+(t<6&&Bi()==32&&Vr()==32))}function Jh(e){for(;Vr();)switch(Ut){case e:return Cr;case 34:case 39:e!==34&&e!==39&&Jh(Ut);break;case 40:e===41&&Jh(e);break;case 92:Vr();break}return Cr}function Tk(e,t){for(;Vr()&&e+Ut!==57;)if(e+Ut===84&&Bi()===47)break;return"/*"+Vf(t,Cr-1)+"*"+lm(e===47?e:Vr())}function $k(e){for(;!Tl(Bi());)Vr();return Vf(e,Cr)}function Rk(e){return kk(du("",null,null,null,[""],e=Mk(e),0,[0],e))}function du(e,t,n,r,i,o,a,s,l){for(var c=0,u=0,f=a,d=0,g=0,m=0,y=1,b=1,p=1,h=0,x="",S=i,w=o,_=r,E=x;b;)switch(m=h,h=Vr()){case 40:if(m!=108&&Pl(E,f-1)==58){wk(E+=uu(Md(h),"&","&\f"),"&\f",VS(c?s[c-1]:0))!=-1&&(p=-1);break}case 34:case 39:case 91:E+=Md(h);break;case 9:case 10:case 13:case 32:E+=Ok(m);break;case 92:E+=Pk(fu()-1,7);continue;case 47:switch(Bi()){case 42:case 47:Sc(Ik(Tk(Vr(),fu()),t,n,l),l),(Tl(m||1)==5||Tl(Bi()||1)==5)&&ti(E)&&Xa(E,-1,void 0)!==" "&&(E+=" ");break;default:E+="/"}break;case 123*y:s[c++]=ti(E)*p;case 125*y:case 59:case 0:switch(h){case 0:case 125:b=0;case 59+u:p==-1&&(E=uu(E,/\f/g,"")),g>0&&(ti(E)-f||y===0&&m===47)&&Sc(g>32?f0(E+";",r,n,f-1,l):f0(uu(E," ","")+";",r,n,f-2,l),l);break;case 59:E+=";";default:if(Sc(_=u0(E,t,n,c,u,i,s,x,S=[],w=[],f,o),o),h===123)if(u===0)du(E,t,_,_,S,o,f,s,w);else switch(d===99&&Pl(E,3)===110?100:d){case 100:case 108:case 109:case 115:du(e,_,_,r&&Sc(u0(e,_,_,0,0,i,s,x,i,S=[],f,w),w),i,w,f,s,r?S:w);break;default:du(E,_,_,_,[""],w,0,s,w)}}c=u=g=0,y=p=1,x=E="",f=a;break;case 58:f=1+ti(E),g=m;default:if(y<1){if(h==123)--y;else if(h==125&&y++==0&&Ek()==125)continue}switch(E+=lm(h),h*y){case 38:p=u>0?1:(E+="\f",-1);break;case 44:s[c++]=(ti(E)-1)*p,p=1;break;case 64:Bi()===45&&(E+=Md(Vr())),d=Bi(),u=f=ti(x=E+=$k(fu())),h++;break;case 45:m===45&&ti(E)==2&&(y=0)}}return o}function u0(e,t,n,r,i,o,a,s,l,c,u,f){for(var d=i-1,g=i===0?o:[""],m=Ck(g),y=0,b=0,p=0;y0?g[h]+" "+x:uu(x,/&\f/g,g[h])))&&(l[p++]=S);return cm(e,t,n,i===0?HS:s,l,c,u,f)}function Ik(e,t,n,r){return cm(e,t,n,jS,lm(_k()),Xa(e,2,-2),0,r)}function f0(e,t,n,r,i){return cm(e,t,n,BS,Xa(e,0,r),Xa(e,r+1,-1),r,i)}function eg(e,t){for(var n="",r=0;r1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},i=r.root,o=r.injectHash,a=r.parentSelectors,s=n.hashId,l=n.layer;n.path;var c=n.hashPriority,u=n.transformers,f=u===void 0?[]:u;n.linters;var d="",g={};function m(p){var h=p.getName(s);if(!g[h]){var x=e(p.style,n,{root:!1,parentSelectors:a}),S=ee(x,1),w=S[0];g[h]="@keyframes ".concat(p.getName(s)).concat(w)}}function y(p){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return p.forEach(function(x){Array.isArray(x)?y(x,h):x&&h.push(x)}),h}var b=y(Array.isArray(t)?t:[t]);return b.forEach(function(p){var h=typeof p=="string"&&!i?{}:p;if(typeof h=="string")d+="".concat(h,` -`);else if(h._keyframe)m(h);else{var x=f.reduce(function(S,w){var _;return(w==null||(_=w.visit)===null||_===void 0?void 0:_.call(w,S))||S},h);Object.keys(x).forEach(function(S){var w=x[S];if(Te(w)==="object"&&w&&(S!=="animationName"||!w._keyframe)&&!zk(w)){var _=!1,E=S.trim(),k=!1;(i||o)&&s?E.startsWith("@")?_=!0:E==="&"?E=h0("",s,c):E=h0(S,s,c):i&&!s&&(E==="&"||E==="")&&(E="",k=!0);var P=e(w,n,{root:k,injectHash:_,parentSelectors:[].concat(se(a),[E])}),O=ee(P,2),I=O[0],A=O[1];g=V(V({},g),A),d+="".concat(E).concat(I)}else{let W=function(N,T){var $=N.replace(/[A-Z]/g,function(z){return"-".concat(z.toLowerCase())}),F=T;!yk[N]&&typeof F=="number"&&F!==0&&(F="".concat(F,"px")),N==="animationName"&&T!==null&&T!==void 0&&T._keyframe&&(m(T),F=T.getName(s)),d+="".concat($,":").concat(F,";")};var D,j=(D=w==null?void 0:w.value)!==null&&D!==void 0?D:w;Te(w)==="object"&&w!==null&&w!==void 0&&w[XS]&&Array.isArray(j)?j.forEach(function(N){W(S,N)}):W(S,j)}})}}),i?l&&(d="@layer ".concat(l.name," {").concat(d,"}"),l.dependencies&&(g["@layer ".concat(l.name)]=l.dependencies.map(function(p){return"@layer ".concat(p,", ").concat(l.name,";")}).join(` -`))):d="{".concat(d,"}"),[d,g]};function KS(e,t){return kl("".concat(e.join("%")).concat(t))}function Hk(){return null}var YS="style";function tg(e,t){var n=e.token,r=e.path,i=e.hashId,o=e.layer,a=e.nonce,s=e.clientOnly,l=e.order,c=l===void 0?0:l,u=v.useContext(Hf),f=u.autoClear;u.mock;var d=u.defaultCache,g=u.hashPriority,m=u.container,y=u.ssrInline,b=u.transformers,p=u.linters,h=u.cache,x=u.layer,S=n._tokenKey,w=[S];x&&w.push("layer"),w.push.apply(w,se(r));var _=Zh,E=sm(YS,w,function(){var A=w.join("|");if(Ak(A)){var D=Lk(A),j=ee(D,2),W=j[0],N=j[1];if(W)return[W,S,N,{},s,c]}var T=t(),$=jk(T,{hashId:i,hashPriority:g,layer:x?o:void 0,path:r.join("-"),transformers:b,linters:p}),F=ee($,2),z=F[0],B=F[1],U=hu(z),Y=KS(w,U);return[U,S,Y,B,s,c]},function(A,D){var j=ee(A,3),W=j[2];(D||f)&&Zh&&Ol(W,{mark:Br})},function(A){var D=ee(A,4),j=D[0];D[1];var W=D[2],N=D[3];if(_&&j!==qS){var T={mark:Br,prepend:x?!1:"queue",attachTo:m,priority:c},$=typeof a=="function"?a():a;$&&(T.csp={nonce:$});var F=[],z=[];Object.keys(N).forEach(function(U){U.startsWith("@layer")?F.push(U):z.push(U)}),F.forEach(function(U){xi(hu(N[U]),"_layer-".concat(U),V(V({},T),{},{prepend:!0}))});var B=xi(j,W,T);B[Hi]=h.instanceId,B.setAttribute(Ga,S),z.forEach(function(U){xi(hu(N[U]),"_effect-".concat(U),T)})}}),k=ee(E,3),P=k[0],O=k[1],I=k[2];return function(A){var D;return!y||_||!d?D=v.createElement(Hk,null):D=v.createElement("style",ft({},L(L({},Ga,O),Br,I),{dangerouslySetInnerHTML:{__html:P}})),v.createElement(v.Fragment,null,D,A)}}var Bk=function(t,n,r){var i=ee(t,6),o=i[0],a=i[1],s=i[2],l=i[3],c=i[4],u=i[5],f=r||{},d=f.plain;if(c)return null;var g=o,m={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return g=Gu(o,a,s,m,d),l&&Object.keys(l).forEach(function(y){if(!n[y]){n[y]=!0;var b=hu(l[y]),p=Gu(b,a,"_effect-".concat(y),m,d);y.startsWith("@layer")?g=p+g:g+=p}}),[u,s,g]},QS="cssVar",Vk=function(t,n){var r=t.key,i=t.prefix,o=t.unitless,a=t.ignore,s=t.token,l=t.scope,c=l===void 0?"":l,u=v.useContext(Hf),f=u.cache.instanceId,d=u.container,g=s._tokenKey,m=[].concat(se(t.path),[r,c,g]),y=sm(QS,m,function(){var b=n(),p=DS(b,r,{prefix:i,unitless:o,ignore:a,scope:c}),h=ee(p,2),x=h[0],S=h[1],w=KS(m,S);return[x,S,w,r]},function(b){var p=ee(b,3),h=p[2];Zh&&Ol(h,{mark:Br})},function(b){var p=ee(b,3),h=p[1],x=p[2];if(h){var S=xi(h,x,{mark:Br,prepend:"queue",attachTo:d,priority:-999});S[Hi]=f,S.setAttribute(Ga,r)}});return y},Wk=function(t,n,r){var i=ee(t,4),o=i[1],a=i[2],s=i[3],l=r||{},c=l.plain;if(!o)return null;var u=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)},d=Gu(o,s,a,f,c);return[u,a,d]};L(L(L({},YS,Bk),zS,vk),QS,Wk);var kr=function(){function e(t,n){ln(this,e),L(this,"name",void 0),L(this,"style",void 0),L(this,"_keyframe",!0),this.name=t,this.style=n}return cn(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 oa(e){return e.notSplit=!0,e}oa(["borderTop","borderBottom"]),oa(["borderTop"]),oa(["borderBottom"]),oa(["borderLeft","borderRight"]),oa(["borderLeft"]),oa(["borderRight"]);var um=v.createContext({});function Uk(e){return RS(e)||OS(e)||rm(e)||IS()}function ii(e,t){for(var n=e,r=0;r3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!ii(e,t.slice(0,-1))?e:ZS(e,t,n,r)}function qk(e){return Te(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function g0(e){return Array.isArray(e)?[]:{}}var Gk=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function ka(){for(var e=arguments.length,t=new Array(e),n=0;n{const e=()=>{};return e.deprecated=Xk,e},JS=v.createContext(void 0);var Yk={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"},Qk={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},Zk=V(V({},Qk),{},{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 ew={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},p0={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"]},Zk),timePickerLocale:Object.assign({},ew)},Kn="${label} is not a valid ${type}",zo={locale:"en",Pagination:Yk,DatePicker:p0,TimePicker:ew,Calendar:p0,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:Kn,method:Kn,array:Kn,object:Kn,number:Kn,date:Kn,boolean:Kn,integer:Kn,float:Kn,regexp:Kn,email:Kn,url:Kn,hex:Kn},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};Object.assign({},zo.Modal);let gu=[];const m0=()=>gu.reduce((e,t)=>Object.assign(Object.assign({},e),t),zo.Modal);function Jk(e){if(e){const t=Object.assign({},e);return gu.push(t),m0(),()=>{gu=gu.filter(n=>n!==t),m0()}}Object.assign({},zo.Modal)}const dm=v.createContext(void 0),eO=(e,t)=>{const n=v.useContext(dm),r=v.useMemo(()=>{var o;const a=zo[e],s=(o=n==null?void 0:n[e])!==null&&o!==void 0?o:{};return Object.assign(Object.assign({},typeof a=="function"?a():a),s||{})},[e,t,n]),i=v.useMemo(()=>{const o=n==null?void 0:n.locale;return n!=null&&n.exist&&!o?zo.locale:o},[n]);return[r,i]},tO="internalMark",nO=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;v.useEffect(()=>Jk(t==null?void 0:t.Modal),[t]);const i=v.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return v.createElement(dm.Provider,{value:i},n)};function pn(e,t){rO(e)&&(e="100%");var n=iO(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 wc(e){return Math.min(1,Math.max(0,e))}function rO(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function iO(e){return typeof e=="string"&&e.indexOf("%")!==-1}function tw(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Cc(e){return e<=1?"".concat(Number(e)*100,"%"):e}function _o(e){return e.length===1?"0"+e:String(e)}function oO(e,t,n){return{r:pn(e,255)*255,g:pn(t,255)*255,b:pn(n,255)*255}}function v0(e,t,n){e=pn(e,255),t=pn(t,255),n=pn(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),o=0,a=0,s=(r+i)/2;if(r===i)a=0,o=0;else{var l=r-i;switch(a=s>.5?l/(2-r-i):l/(r+i),r){case e:o=(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 aO(e,t,n){var r,i,o;if(e=pn(e,360),t=pn(t,100),n=pn(n,100),t===0)i=n,o=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,s=2*n-a;r=kd(s,a,e+1/3),i=kd(s,a,e),o=kd(s,a,e-1/3)}return{r:r*255,g:i*255,b:o*255}}function ng(e,t,n){e=pn(e,255),t=pn(t,255),n=pn(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),o=0,a=r,s=r-i,l=r===0?0:s/r;if(r===i)o=0;else{switch(r){case e:o=(t-n)/s+(t>16,g:(e&65280)>>8,b:e&255}}var ig={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 da(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,o=null,a=!1,s=!1;return typeof e=="string"&&(e=hO(e)),typeof e=="object"&&(ui(e.r)&&ui(e.g)&&ui(e.b)?(t=oO(e.r,e.g,e.b),a=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):ui(e.h)&&ui(e.s)&&ui(e.v)?(r=Cc(e.s),i=Cc(e.v),t=sO(e.h,r,i),a=!0,s="hsv"):ui(e.h)&&ui(e.s)&&ui(e.l)&&(r=Cc(e.s),o=Cc(e.l),t=aO(e.h,r,o),a=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=tw(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 fO="[-\\+]?\\d+%?",dO="[-\\+]?\\d*\\.\\d+%?",Vi="(?:".concat(dO,")|(?:").concat(fO,")"),Od="[\\s|\\(]+(".concat(Vi,")[,|\\s]+(").concat(Vi,")[,|\\s]+(").concat(Vi,")\\s*\\)?"),Pd="[\\s|\\(]+(".concat(Vi,")[,|\\s]+(").concat(Vi,")[,|\\s]+(").concat(Vi,")[,|\\s]+(").concat(Vi,")\\s*\\)?"),$r={CSS_UNIT:new RegExp(Vi),rgb:new RegExp("rgb"+Od),rgba:new RegExp("rgba"+Pd),hsl:new RegExp("hsl"+Od),hsla:new RegExp("hsla"+Pd),hsv:new RegExp("hsv"+Od),hsva:new RegExp("hsva"+Pd),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 hO(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(ig[e])e=ig[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=$r.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=$r.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=$r.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=$r.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=$r.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=$r.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=$r.hex8.exec(e),n?{r:Qn(n[1]),g:Qn(n[2]),b:Qn(n[3]),a:y0(n[4]),format:t?"name":"hex8"}:(n=$r.hex6.exec(e),n?{r:Qn(n[1]),g:Qn(n[2]),b:Qn(n[3]),format:t?"name":"hex"}:(n=$r.hex4.exec(e),n?{r:Qn(n[1]+n[1]),g:Qn(n[2]+n[2]),b:Qn(n[3]+n[3]),a:y0(n[4]+n[4]),format:t?"name":"hex8"}:(n=$r.hex3.exec(e),n?{r:Qn(n[1]+n[1]),g:Qn(n[2]+n[2]),b:Qn(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function ui(e){return!!$r.CSS_UNIT.exec(String(e))}var on=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=uO(t)),this.originalInput=t;var i=da(t);this.originalInput=t,this.r=i.r,this.g=i.g,this.b=i.b,this.a=i.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:i.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=i.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,i,o=t.r/255,a=t.g/255,s=t.b/255;return o<=.03928?n=o/12.92:n=Math.pow((o+.055)/1.055,2.4),a<=.03928?r=a/12.92:r=Math.pow((a+.055)/1.055,2.4),s<=.03928?i=s/12.92:i=Math.pow((s+.055)/1.055,2.4),.2126*n+.7152*r+.0722*i},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=tw(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=ng(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=ng(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=v0(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=v0(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),rg(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),lO(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(pn(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(pn(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="#"+rg(this.r,this.g,this.b,!1),n=0,r=Object.entries(ig);n=0,o=!n&&i&&(t.startsWith("hex")||t==="name");return o?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=wc(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=wc(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=wc(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=wc(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(),i=new e(t).toRgb(),o=n/100,a={r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+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(),i=360/n,o=[this];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,o.push(new e(r));return o},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,i=n.s,o=n.v,a=[],s=1/t;t--;)a.push(new e({h:r,s:i,v:o})),o=(o+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(),i=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/i,g:(n.g*n.a+r.g*r.a*(1-n.a))/i,b:(n.b*n.a+r.b*r.a*(1-n.a))/i,a:i})},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,i=[this],o=360/t,a=1;a=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-_c*t:Math.round(e.h)+_c*t:r=n?Math.round(e.h)+_c*t:Math.round(e.h)-_c*t,r<0?r+=360:r>=360&&(r-=360),r}function w0(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-b0*t:t===rw?r=e.s+b0:r=e.s+gO*t,r>1&&(r=1),n&&t===nw&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function C0(e,t,n){var r;return n?r=e.v+pO*t:r=e.v-mO*t,r>1&&(r=1),Number(r.toFixed(2))}function $l(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=da(e),i=nw;i>0;i-=1){var o=x0(r),a=Ec(da({h:S0(o,i,!0),s:w0(o,i,!0),v:C0(o,i,!0)}));n.push(a)}n.push(Ec(r));for(var s=1;s<=rw;s+=1){var l=x0(r),c=Ec(da({h:S0(l,s),s:w0(l,s),v:C0(l,s)}));n.push(c)}return t.theme==="dark"?vO.map(function(u){var f=u.index,d=u.opacity,g=Ec(yO(da(t.backgroundColor||"#141414"),da(n[f]),d*100));return g}):n}var Td={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"},og=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];og.primary=og[5];var ag=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];ag.primary=ag[5];var sg=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];sg.primary=sg[5];var lg=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];lg.primary=lg[5];var cg=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];cg.primary=cg[5];var ug=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];ug.primary=ug[5];var fg=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];fg.primary=fg[5];var dg=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];dg.primary=dg[5];var Xu=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Xu.primary=Xu[5];var hg=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];hg.primary=hg[5];var gg=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];gg.primary=gg[5];var pg=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];pg.primary=pg[5];var mg=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];mg.primary=mg[5];var $d={red:og,volcano:ag,orange:sg,gold:lg,yellow:cg,lime:ug,green:fg,cyan:dg,blue:Xu,geekblue:hg,purple:gg,magenta:pg,grey:mg};const iw={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"},Rl=Object.assign(Object.assign({},iw),{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 bO(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:i,colorWarning:o,colorError:a,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:u}=e,f=n(l),d=n(i),g=n(o),m=n(a),y=n(s),b=r(c,u),p=e.colorLink||e.colorInfo,h=n(p),x=new on(m[1]).mix(new on(m[3]),50).toHexString();return Object.assign(Object.assign({},b),{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:d[1],colorSuccessBgHover:d[2],colorSuccessBorder:d[3],colorSuccessBorderHover:d[4],colorSuccessHover:d[4],colorSuccess:d[6],colorSuccessActive:d[7],colorSuccessTextHover:d[8],colorSuccessText:d[9],colorSuccessTextActive:d[10],colorErrorBg:m[1],colorErrorBgHover:m[2],colorErrorBgFilledHover:x,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:g[1],colorWarningBgHover:g[2],colorWarningBorder:g[3],colorWarningBorderHover:g[4],colorWarningHover:g[4],colorWarning:g[6],colorWarningActive:g[7],colorWarningTextHover:g[8],colorWarningText:g[9],colorWarningTextActive:g[10],colorInfoBg:y[1],colorInfoBgHover:y[2],colorInfoBorder:y[3],colorInfoBorderHover:y[4],colorInfoHover:y[4],colorInfo:y[6],colorInfoActive:y[7],colorInfoTextHover:y[8],colorInfoText:y[9],colorInfoTextActive:y[10],colorLinkHover:h[4],colorLink:h[6],colorLinkActive:h[7],colorBgMask:new on("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const xO=e=>{let t=e,n=e,r=e,i=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?i=4:e>=8&&(i=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:i}};function SO(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:i}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:i+1},xO(r))}const wO=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function CO(e){return(e+8)/e}function _O(e){const t=new Array(10).fill(null).map((n,r)=>{const i=r-1,o=e*Math.pow(Math.E,i/5),a=r>1?Math.floor(o):Math.ceil(o);return Math.floor(a/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:CO(n)}))}const EO=e=>{const t=_O(e),n=t.map(u=>u.size),r=t.map(u=>u.lineHeight),i=n[1],o=n[0],a=n[2],s=r[1],l=r[0],c=r[2];return{fontSizeSM:o,fontSize:i,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(s*i),fontHeightLG:Math.round(c*a),fontHeightSM:Math.round(l*o),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function MO(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 fr=(e,t)=>new on(e).setAlpha(t).toRgbString(),xs=(e,t)=>new on(e).darken(t).toHexString(),kO=e=>{const t=$l(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]}},OO=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:fr(r,.88),colorTextSecondary:fr(r,.65),colorTextTertiary:fr(r,.45),colorTextQuaternary:fr(r,.25),colorFill:fr(r,.15),colorFillSecondary:fr(r,.06),colorFillTertiary:fr(r,.04),colorFillQuaternary:fr(r,.02),colorBgSolid:fr(r,1),colorBgSolidHover:fr(r,.75),colorBgSolidActive:fr(r,.95),colorBgLayout:xs(n,4),colorBgContainer:xs(n,0),colorBgElevated:xs(n,0),colorBgSpotlight:fr(r,.85),colorBgBlur:"transparent",colorBorder:xs(n,15),colorBorderSecondary:xs(n,6)}};function PO(e){Td.pink=Td.magenta,$d.pink=$d.magenta;const t=Object.keys(iw).map(n=>{const r=e[n]===Td[n]?$d[n]:$l(e[n]);return new Array(10).fill(1).reduce((i,o,a)=>(i[`${n}-${a+1}`]=r[a],i[`${n}${a+1}`]=r[a],i),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),bO(e,{generateColorPalettes:kO,generateNeutralColorPalettes:OO})),EO(e.fontSize)),MO(e)),wO(e)),SO(e))}const ow=Qh(PO),vg={token:Rl,override:{override:Rl},hashed:!0},aw=$e.createContext(vg),Ku="ant",sw="anticon",TO=["outlined","borderless","filled"],$O=(e,t)=>t||(e?`${Ku}-${e}`:Ku),Rn=v.createContext({getPrefixCls:$O,iconPrefixCls:sw}),RO=`-ant-${Date.now()}-${Math.random()}`;function IO(e,t){const n={},r=(a,s)=>{let l=a.clone();return l=(s==null?void 0:s(l))||l,l.toRgbString()},i=(a,s)=>{const l=new on(a),c=$l(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().setAlpha(.2).toRgbString(),n[`${s}-color-deprecated-bg`]=c[0],n[`${s}-color-deprecated-border`]=c[2]};if(t.primaryColor){i(t.primaryColor,"primary");const a=new on(t.primaryColor),s=$l(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.setAlpha(c.getAlpha()*.12));const l=new on(s[0]);n["primary-color-active-deprecated-f-30"]=r(l,c=>c.setAlpha(c.getAlpha()*.3)),n["primary-color-active-deprecated-d-02"]=r(l,c=>c.darken(2))}return t.successColor&&i(t.successColor,"success"),t.warningColor&&i(t.warningColor,"warning"),t.errorColor&&i(t.errorColor,"error"),t.infoColor&&i(t.infoColor,"info"),` - :root { - ${Object.keys(n).map(a=>`--${e}-${a}: ${n[a]};`).join(` -`)} - } - `.trim()}function FO(e,t){const n=IO(e,t);rr()&&xi(n,`${RO}-dynamic-theme`)}const Ya=v.createContext(!1),lw=e=>{let{children:t,disabled:n}=e;const r=v.useContext(Ya);return v.createElement(Ya.Provider,{value:n??r},t)},jo=v.createContext(void 0),NO=e=>{let{children:t,size:n}=e;const r=v.useContext(jo);return v.createElement(jo.Provider,{value:n||r},t)};function AO(){const e=v.useContext(Ya),t=v.useContext(jo);return{componentDisabled:e,componentSize:t}}var cw=cn(function e(){ln(this,e)}),uw="CALC_UNIT",LO=new RegExp(uw,"g");function Rd(e){return typeof e=="number"?"".concat(e).concat(uw):e}var DO=function(e){qo(n,e);var t=Go(n);function n(r,i){var o;ln(this,n),o=t.call(this),L(De(o),"result",""),L(De(o),"unitlessCssVar",void 0),L(De(o),"lowPriority",void 0);var a=Te(r);return o.unitlessCssVar=i,r instanceof n?o.result="(".concat(r.result,")"):a==="number"?o.result=Rd(r):a==="string"&&(o.result=r),o}return cn(n,[{key:"add",value:function(i){return i instanceof n?this.result="".concat(this.result," + ").concat(i.getResult()):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," + ").concat(Rd(i))),this.lowPriority=!0,this}},{key:"sub",value:function(i){return i instanceof n?this.result="".concat(this.result," - ").concat(i.getResult()):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," - ").concat(Rd(i))),this.lowPriority=!0,this}},{key:"mul",value:function(i){return this.lowPriority&&(this.result="(".concat(this.result,")")),i instanceof n?this.result="".concat(this.result," * ").concat(i.getResult(!0)):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," * ").concat(i)),this.lowPriority=!1,this}},{key:"div",value:function(i){return this.lowPriority&&(this.result="(".concat(this.result,")")),i instanceof n?this.result="".concat(this.result," / ").concat(i.getResult(!0)):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," / ").concat(i)),this.lowPriority=!1,this}},{key:"getResult",value:function(i){return this.lowPriority||i?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(i){var o=this,a=i||{},s=a.unit,l=!0;return typeof s=="boolean"?l=s:Array.from(this.unitlessCssVar).some(function(c){return o.result.includes(c)})&&(l=!1),this.result=this.result.replace(LO,l?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n}(cw),zO=function(e){qo(n,e);var t=Go(n);function n(r){var i;return ln(this,n),i=t.call(this),L(De(i),"result",0),r instanceof n?i.result=r.result:typeof r=="number"&&(i.result=r),i}return cn(n,[{key:"add",value:function(i){return i instanceof n?this.result+=i.result:typeof i=="number"&&(this.result+=i),this}},{key:"sub",value:function(i){return i instanceof n?this.result-=i.result:typeof i=="number"&&(this.result-=i),this}},{key:"mul",value:function(i){return i instanceof n?this.result*=i.result:typeof i=="number"&&(this.result*=i),this}},{key:"div",value:function(i){return i instanceof n?this.result/=i.result:typeof i=="number"&&(this.result/=i),this}},{key:"equal",value:function(){return this.result}}]),n}(cw),jO=function(t,n){var r=t==="css"?DO:zO;return function(i){return new r(i,n)}},_0=function(t,n){return"".concat([n,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function Cn(e){var t=v.useRef();t.current=e;var n=v.useCallback(function(){for(var r,i=arguments.length,o=new Array(i),a=0;a1e4){var r=Date.now();this.lastAccessBeat.forEach(function(i,o){r-i>WO&&(n.map.delete(o),n.lastAccessBeat.delete(o))}),this.accessBeat=0}}}]),e}(),O0=new UO;function qO(e,t){return $e.useMemo(function(){var n=O0.get(t);if(n)return n;var r=e();return O0.set(t,r),r},t)}var GO=function(){return{}};function XO(e){var t=e.useCSP,n=t===void 0?GO:t,r=e.useToken,i=e.usePrefix,o=e.getResetStyles,a=e.getCommonStyle,s=e.getCompUnitless;function l(d,g,m,y){var b=Array.isArray(d)?d[0]:d;function p(k){return"".concat(String(b)).concat(k.slice(0,1).toUpperCase()).concat(k.slice(1))}var h=(y==null?void 0:y.unitless)||{},x=typeof s=="function"?s(d):{},S=V(V({},x),{},L({},p("zIndexPopup"),!0));Object.keys(h).forEach(function(k){S[p(k)]=h[k]});var w=V(V({},y),{},{unitless:S,prefixToken:p}),_=u(d,g,m,w),E=c(b,m,w);return function(k){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:k,O=_(k,P),I=ee(O,2),A=I[1],D=E(P),j=ee(D,2),W=j[0],N=j[1];return[W,A,N]}}function c(d,g,m){var y=m.unitless,b=m.injectStyle,p=b===void 0?!0:b,h=m.prefixToken,x=m.ignore,S=function(E){var k=E.rootCls,P=E.cssVar,O=P===void 0?{}:P,I=r(),A=I.realToken;return Vk({path:[d],prefix:O.prefix,key:O.key,unitless:y,ignore:x,token:A,scope:k},function(){var D=k0(d,A,g),j=E0(d,A,D,{deprecatedTokens:m==null?void 0:m.deprecatedTokens});return Object.keys(D).forEach(function(W){j[h(W)]=j[W],delete j[W]}),j}),null},w=function(E){var k=r(),P=k.cssVar;return[function(O){return p&&P?$e.createElement($e.Fragment,null,$e.createElement(S,{rootCls:E,cssVar:P,component:d}),O):O},P==null?void 0:P.key]};return w}function u(d,g,m){var y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},b=Array.isArray(d)?d:[d,d],p=ee(b,1),h=p[0],x=b.join("-"),S=e.layer||{name:"antd"};return function(w){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w,E=r(),k=E.theme,P=E.realToken,O=E.hashId,I=E.token,A=E.cssVar,D=i(),j=D.rootPrefixCls,W=D.iconPrefixCls,N=n(),T=A?"css":"js",$=qO(function(){var q=new Set;return A&&Object.keys(y.unitless||{}).forEach(function(X){q.add(cu(X,A.prefix)),q.add(cu(X,_0(h,A.prefix)))}),jO(T,q)},[T,h,A==null?void 0:A.prefix]),F=VO(T),z=F.max,B=F.min,U={theme:k,token:I,hashId:O,nonce:function(){return N.nonce},clientOnly:y.clientOnly,layer:S,order:y.order||-999};tg(V(V({},U),{},{clientOnly:!1,path:["Shared",j]}),function(){return typeof o=="function"?o(I):[]});var Y=tg(V(V({},U),{},{path:[x,w,W]}),function(){if(y.injectStyle===!1)return[];var q=BO(I),X=q.token,te=q.flush,G=k0(h,P,m),Q=".".concat(w),Z=E0(h,P,G,{deprecatedTokens:y.deprecatedTokens});A&&G&&Te(G)==="object"&&Object.keys(G).forEach(function(Se){G[Se]="var(".concat(cu(Se,_0(h,A.prefix)),")")});var ne=qr(X,{componentCls:Q,prefixCls:w,iconCls:".".concat(W),antCls:".".concat(j),calc:$,max:z,min:B},A?G:Z),pe=g(ne,{hashId:O,prefixCls:w,rootPrefixCls:j,iconPrefixCls:W});te(h,Z);var de=typeof a=="function"?a(ne,w,_,y.resetFont):null;return[y.resetStyle===!1?null:de,pe]});return[Y,O]}}function f(d,g,m){var y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},b=u(d,g,m,V({resetStyle:!1,order:-998},y)),p=function(x){var S=x.prefixCls,w=x.rootCls,_=w===void 0?S:w;return b(S,_),null};return p}return{genStyleHooks:l,genSubStyleComponent:f,genComponentStyleHook:u}}const Yu=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],KO="5.21.0";function Fd(e){return e>=0&&e<=255}function Mc(e,t){const{r:n,g:r,b:i,a:o}=new on(e).toRgb();if(o<1)return e;const{r:a,g:s,b:l}=new on(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),d=Math.round((i-l*(1-c))/c);if(Fd(u)&&Fd(f)&&Fd(d))return new on({r:u,g:f,b:d,a:Math.round(c*100)/100}).toRgbString()}return new on({r:n,g:r,b:i,a:1}).toRgbString()}var YO=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{delete r[d]});const i=Object.assign(Object.assign({},n),r),o=480,a=576,s=768,l=992,c=1200,u=1600;if(i.motion===!1){const d="0s";i.motionDurationFast=d,i.motionDurationMid=d,i.motionDurationSlow=d}return Object.assign(Object.assign(Object.assign({},i),{colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:Mc(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:Mc(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:Mc(i.colorWarningBg,i.colorBgContainer),fontSizeIcon:i.fontSizeSM,lineWidthFocus:i.lineWidth*4,lineWidth:i.lineWidth,controlOutlineWidth:i.lineWidth*2,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:Mc(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.sizeXXL,boxShadow:` - 0 6px 16px 0 rgba(0, 0, 0, 0.08), - 0 3px 6px -4px rgba(0, 0, 0, 0.12), - 0 9px 28px 8px rgba(0, 0, 0, 0.05) - `,boxShadowSecondary:` - 0 6px 16px 0 rgba(0, 0, 0, 0.08), - 0 3px 6px -4px rgba(0, 0, 0, 0.12), - 0 9px 28px 8px rgba(0, 0, 0, 0.05) - `,boxShadowTertiary:` - 0 1px 2px 0 rgba(0, 0, 0, 0.03), - 0 1px 6px -1px rgba(0, 0, 0, 0.02), - 0 2px 4px 0 rgba(0, 0, 0, 0.02) - `,screenXS:o,screenXSMin:o,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax: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 on("rgba(0, 0, 0, 0.16)").toRgbString()}, - 0 3px 6px 0 ${new on("rgba(0, 0, 0, 0.12)").toRgbString()}, - 0 5px 12px 4px ${new on("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 P0=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const r=n.getDerivativeToken(e),{override:i}=t,o=P0(t,["override"]);let a=Object.assign(Object.assign({},r),{override:i});return a=hw(a),o&&Object.entries(o).forEach(s=>{let[l,c]=s;const{theme:u}=c,f=P0(c,["theme"]);let d=f;u&&(d=pw(Object.assign(Object.assign({},a),f),{override:f},u)),a[l]=d}),a};function Xo(){const{token:e,hashed:t,theme:n,override:r,cssVar:i}=$e.useContext(aw),o=`${KO}-${t||""}`,a=n||ow,[s,l,c]=mk(a,[Rl,e],{salt:o,override:r,getComputedToken:pw,formatToken:hw,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:gw,ignore:QO,preserve:ZO}});return[a,c,t?l:"",s,i]}const Si=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}},mw=()=>({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"}}),JO=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),eP=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"}}}),tP=(e,t,n,r)=>{const i=`[class^="${t}"], [class*=" ${t}"]`,o=n?`.${n}`:i,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return r!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[o]:Object.assign(Object.assign(Object.assign({},s),a),{[i]:a})}},vw=(e,t)=>{const[n,r]=Xo();return tg({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[{[`.${e}`]:Object.assign(Object.assign({},mw()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},{genStyleHooks:Ko,genComponentStyleHook:u5,genSubStyleComponent:nP}=XO({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=v.useContext(Rn);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,i]=Xo();return{theme:e,realToken:t,hashId:n,token:r,cssVar:i}},useCSP:()=>{const{csp:e,iconPrefixCls:t}=v.useContext(Rn);return vw(t,e),e??{}},getResetStyles:e=>[{"&":eP(e)}],getCommonStyle:tP,getCompUnitless:()=>gw});function rP(e,t){return Yu.reduce((n,r)=>{const i=e[`${r}1`],o=e[`${r}3`],a=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:i,lightBorderColor:o,darkColor:a,textColor:s}))},{})}const iP=Object.assign({},df),{useId:T0}=iP,oP=()=>"",aP=typeof T0>"u"?oP:T0;function sP(e,t,n){var r;fm();const i=e||{},o=i.inherit===!1||!t?Object.assign(Object.assign({},vg),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:vg.hashed,cssVar:t==null?void 0:t.cssVar}):t,a=aP();return Zp(()=>{var s,l;if(!e)return t;const c=Object.assign({},o.components);Object.keys(e.components||{}).forEach(d=>{c[d]=Object.assign(Object.assign({},c[d]),e.components[d])});const u=`css-var-${a.replace(/:/g,"")}`,f=((s=i.cssVar)!==null&&s!==void 0?s:o.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof o.cssVar=="object"?o.cssVar:{}),typeof i.cssVar=="object"?i.cssVar:{}),{key:typeof i.cssVar=="object"&&((l=i.cssVar)===null||l===void 0?void 0:l.key)||u});return Object.assign(Object.assign(Object.assign({},o),i),{token:Object.assign(Object.assign({},o.token),i.token),components:c,cssVar:f})},[i,o],(s,l)=>s.some((c,u)=>{const f=l[u];return!qu(c,f,!0)}))}var lP=["children"],yw=v.createContext({});function cP(e){var t=e.children,n=Gn(e,lP);return v.createElement(yw.Provider,{value:n},t)}var uP=function(e){qo(n,e);var t=Go(n);function n(){return ln(this,n),t.apply(this,arguments)}return cn(n,[{key:"render",value:function(){return this.props.children}}]),n}(v.Component);function fP(e){var t=v.useReducer(function(s){return s+1},0),n=ee(t,2),r=n[1],i=v.useRef(e),o=Cn(function(){return i.current}),a=Cn(function(s){i.current=typeof s=="function"?s(i.current):s,r()});return[o,a]}var $i="none",kc="appear",Oc="enter",Pc="leave",$0="none",Ar="prepare",Oa="start",Pa="active",hm="end",bw="prepared";function R0(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 dP(e,t){var n={animationend:R0("Animation","AnimationEnd"),transitionend:R0("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var hP=dP(rr(),typeof window<"u"?window:{}),xw={};if(rr()){var gP=document.createElement("div");xw=gP.style}var Tc={};function Sw(e){if(Tc[e])return Tc[e];var t=hP[e];if(t)for(var n=Object.keys(t),r=n.length,i=0;i1&&arguments[1]!==void 0?arguments[1]:2;t();var o=qn(function(){i<=1?r({isCanceled:function(){return o!==e.current}}):n(r,i-1)});e.current=o}return v.useEffect(function(){return function(){t()}},[]),[n,t]};var vP=[Ar,Oa,Pa,hm],yP=[Ar,bw],Mw=!1,bP=!0;function kw(e){return e===Pa||e===hm}const xP=function(e,t,n){var r=Qa($0),i=ee(r,2),o=i[0],a=i[1],s=mP(),l=ee(s,2),c=l[0],u=l[1];function f(){a(Ar,!0)}var d=t?yP:vP;return Ew(function(){if(o!==$0&&o!==hm){var g=d.indexOf(o),m=d[g+1],y=n(o);y===Mw?a(m,!0):m&&c(function(b){function p(){b.isCanceled()||a(m,!0)}y===!0?p():Promise.resolve(y).then(p)})}},[e,o]),v.useEffect(function(){return function(){u()}},[]),[f,o]};function SP(e,t,n,r){var i=r.motionEnter,o=i===void 0?!0:i,a=r.motionAppear,s=a===void 0?!0:a,l=r.motionLeave,c=l===void 0?!0:l,u=r.motionDeadline,f=r.motionLeaveImmediately,d=r.onAppearPrepare,g=r.onEnterPrepare,m=r.onLeavePrepare,y=r.onAppearStart,b=r.onEnterStart,p=r.onLeaveStart,h=r.onAppearActive,x=r.onEnterActive,S=r.onLeaveActive,w=r.onAppearEnd,_=r.onEnterEnd,E=r.onLeaveEnd,k=r.onVisibleChanged,P=Qa(),O=ee(P,2),I=O[0],A=O[1],D=fP($i),j=ee(D,2),W=j[0],N=j[1],T=Qa(null),$=ee(T,2),F=$[0],z=$[1],B=W(),U=v.useRef(!1),Y=v.useRef(null);function q(){return n()}var X=v.useRef(!1);function te(){N($i),z(null,!0)}var G=Cn(function(Me){var ie=W();if(ie!==$i){var Fe=q();if(!(Me&&!Me.deadline&&Me.target!==Fe)){var ae=X.current,Ke;ie===kc&&ae?Ke=w==null?void 0:w(Fe,Me):ie===Oc&&ae?Ke=_==null?void 0:_(Fe,Me):ie===Pc&&ae&&(Ke=E==null?void 0:E(Fe,Me)),ae&&Ke!==!1&&te()}}}),Q=pP(G),Z=ee(Q,1),ne=Z[0],pe=function(ie){switch(ie){case kc:return L(L(L({},Ar,d),Oa,y),Pa,h);case Oc:return L(L(L({},Ar,g),Oa,b),Pa,x);case Pc:return L(L(L({},Ar,m),Oa,p),Pa,S);default:return{}}},de=v.useMemo(function(){return pe(B)},[B]),Se=xP(B,!e,function(Me){if(Me===Ar){var ie=de[Ar];return ie?ie(q()):Mw}if(ve in de){var Fe;z(((Fe=de[ve])===null||Fe===void 0?void 0:Fe.call(de,q(),null))||null)}return ve===Pa&&B!==$i&&(ne(q()),u>0&&(clearTimeout(Y.current),Y.current=setTimeout(function(){G({deadline:!0})},u))),ve===bw&&te(),bP}),me=ee(Se,2),he=me[0],ve=me[1],ge=kw(ve);X.current=ge,Ew(function(){A(t);var Me=U.current;U.current=!0;var ie;!Me&&t&&s&&(ie=kc),Me&&t&&o&&(ie=Oc),(Me&&!t&&c||!Me&&f&&!t&&c)&&(ie=Pc);var Fe=pe(ie);ie&&(e||Fe[Ar])?(N(ie),he()):N($i)},[t]),v.useEffect(function(){(B===kc&&!s||B===Oc&&!o||B===Pc&&!c)&&N($i)},[s,o,c]),v.useEffect(function(){return function(){U.current=!1,clearTimeout(Y.current)}},[]);var xe=v.useRef(!1);v.useEffect(function(){I&&(xe.current=!0),I!==void 0&&B===$i&&((xe.current||I)&&(k==null||k(I)),xe.current=!0)},[I,B]);var ze=F;return de[Ar]&&ve===Oa&&(ze=V({transition:"none"},ze)),[B,ve,ze,I??t]}function wP(e){var t=e;Te(e)==="object"&&(t=e.transitionSupport);function n(i,o){return!!(i.motionName&&t&&o!==!1)}var r=v.forwardRef(function(i,o){var a=i.visible,s=a===void 0?!0:a,l=i.removeOnLeave,c=l===void 0?!0:l,u=i.forceRender,f=i.children,d=i.motionName,g=i.leavedClassName,m=i.eventProps,y=v.useContext(yw),b=y.motion,p=n(i,b),h=v.useRef(),x=v.useRef();function S(){try{return h.current instanceof HTMLElement?h.current:lu(x.current)}catch{return null}}var w=SP(p,s,S,i),_=ee(w,4),E=_[0],k=_[1],P=_[2],O=_[3],I=v.useRef(O);O&&(I.current=!0);var A=v.useCallback(function(F){h.current=F,Jp(o,F)},[o]),D,j=V(V({},m),{},{visible:s});if(!f)D=null;else if(E===$i)O?D=f(V({},j),A):!c&&I.current&&g?D=f(V(V({},j),{},{className:g}),A):u||!c&&!g?D=f(V(V({},j),{},{style:{display:"none"}}),A):D=null;else{var W;k===Ar?W="prepare":kw(k)?W="active":k===Oa&&(W="start");var N=N0(d,"".concat(E,"-").concat(W));D=f(V(V({},j),{},{className:Ce(N0(d,E),L(L({},N,N&&W),d,typeof d=="string")),style:P}),A)}if(v.isValidElement(D)&&Kl(D)){var T=D,$=T.ref;$||(D=v.cloneElement(D,{ref:A}))}return v.createElement(uP,{ref:x},D)});return r.displayName="CSSMotion",r}const Wf=wP(_w);var bg="add",xg="keep",Sg="remove",Nd="removed";function CP(e){var t;return e&&Te(e)==="object"&&"key"in e?t=e:t={key:e},V(V({},t),{},{key:String(t.key)})}function wg(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(CP)}function _P(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,i=t.length,o=wg(e),a=wg(t);o.forEach(function(c){for(var u=!1,f=r;f1});return l.forEach(function(c){n=n.filter(function(u){var f=u.key,d=u.status;return f!==c||d!==Sg}),n.forEach(function(u){u.key===c&&(u.status=xg)})}),n}var EP=["component","children","onVisibleChanged","onAllRemoved"],MP=["status"],kP=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function OP(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Wf,n=function(r){qo(o,r);var i=Go(o);function o(){var a;ln(this,o);for(var s=arguments.length,l=new Array(s),c=0;cnull;var RP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);it.endsWith("Color"))}const AP=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:i}=e;t!==void 0&&(Ow=t),r&&NP(r)&&FO(FP(),r)},LP=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:i,anchor:o,form:a,locale:s,componentSize:l,direction:c,space:u,splitter:f,virtual:d,dropdownMatchSelectWidth:g,popupMatchSelectWidth:m,popupOverflow:y,legacyLocale:b,parentContext:p,iconPrefixCls:h,theme:x,componentDisabled:S,segmented:w,statistic:_,spin:E,calendar:k,carousel:P,cascader:O,collapse:I,typography:A,checkbox:D,descriptions:j,divider:W,drawer:N,skeleton:T,steps:$,image:F,layout:z,list:B,mentions:U,modal:Y,progress:q,result:X,slider:te,breadcrumb:G,menu:Q,pagination:Z,input:ne,textArea:pe,empty:de,badge:Se,radio:me,rate:he,switch:ve,transfer:ge,avatar:xe,message:ze,tag:Me,table:ie,card:Fe,tabs:ae,timeline:Ke,timePicker:Pe,upload:Re,notification:Ve,tree:Qe,colorPicker:gt,datePicker:Zt,rangePicker:Ot,flex:Pt,wave:Bt,dropdown:bt,warning:ar,tour:un,floatButtonGroup:Tt,variant:lt,inputNumber:Or,treeSelect:ct}=e,Jt=v.useCallback((tt,Ye)=>{const{prefixCls:Wt}=e;if(Ye)return Ye;const xt=Wt||p.getPrefixCls("");return tt?`${xt}-${tt}`:xt},[p.getPrefixCls,e.prefixCls]),ye=h||p.iconPrefixCls||sw,oe=n||p.csp;vw(ye,oe);const _e=sP(x,p.theme,{prefixCls:Jt("")}),Ee={csp:oe,autoInsertSpaceInButton:r,alert:i,anchor:o,locale:s||b,direction:c,space:u,splitter:f,virtual:d,popupMatchSelectWidth:m??g,popupOverflow:y,getPrefixCls:Jt,iconPrefixCls:ye,theme:_e,segmented:w,statistic:_,spin:E,calendar:k,carousel:P,cascader:O,collapse:I,typography:A,checkbox:D,descriptions:j,divider:W,drawer:N,skeleton:T,steps:$,image:F,input:ne,textArea:pe,layout:z,list:B,mentions:U,modal:Y,progress:q,result:X,slider:te,breadcrumb:G,menu:Q,pagination:Z,empty:de,badge:Se,radio:me,rate:he,switch:ve,transfer:ge,avatar:xe,message:ze,tag:Me,table:ie,card:Fe,tabs:ae,timeline:Ke,timePicker:Pe,upload:Re,notification:Ve,tree:Qe,colorPicker:gt,datePicker:Zt,rangePicker:Ot,flex:Pt,wave:Bt,dropdown:bt,warning:ar,tour:un,floatButtonGroup:Tt,variant:lt,inputNumber:Or,treeSelect:ct},Ne=Object.assign({},p);Object.keys(Ee).forEach(tt=>{Ee[tt]!==void 0&&(Ne[tt]=Ee[tt])}),IP.forEach(tt=>{const Ye=e[tt];Ye&&(Ne[tt]=Ye)}),typeof r<"u"&&(Ne.button=Object.assign({autoInsertSpace:r},Ne.button));const st=Zp(()=>Ne,Ne,(tt,Ye)=>{const Wt=Object.keys(tt),xt=Object.keys(Ye);return Wt.length!==xt.length||Wt.some(Gt=>tt[Gt]!==Ye[Gt])}),We=v.useMemo(()=>({prefixCls:ye,csp:oe}),[ye,oe]);let Oe=v.createElement(v.Fragment,null,v.createElement($P,{dropdownMatchSelectWidth:g}),t);const Vt=v.useMemo(()=>{var tt,Ye,Wt,xt;return ka(((tt=zo.Form)===null||tt===void 0?void 0:tt.defaultValidateMessages)||{},((Wt=(Ye=st.locale)===null||Ye===void 0?void 0:Ye.Form)===null||Wt===void 0?void 0:Wt.defaultValidateMessages)||{},((xt=st.form)===null||xt===void 0?void 0:xt.validateMessages)||{},(a==null?void 0:a.validateMessages)||{})},[st,a==null?void 0:a.validateMessages]);Object.keys(Vt).length>0&&(Oe=v.createElement(JS.Provider,{value:Vt},Oe)),s&&(Oe=v.createElement(nO,{locale:s,_ANT_MARK__:tO},Oe)),(ye||oe)&&(Oe=v.createElement(um.Provider,{value:We},Oe)),l&&(Oe=v.createElement(NO,{size:l},Oe)),Oe=v.createElement(TP,null,Oe);const fn=v.useMemo(()=>{const tt=_e||{},{algorithm:Ye,token:Wt,components:xt,cssVar:Gt}=tt,sr=RP(tt,["algorithm","token","components","cssVar"]),Gr=Ye&&(!Array.isArray(Ye)||Ye.length>0)?Qh(Ye):ow,Nn={};Object.entries(xt||{}).forEach(Xn=>{let[en,On]=Xn;const nt=Object.assign({},On);"algorithm"in nt&&(nt.algorithm===!0?nt.theme=Gr:(Array.isArray(nt.algorithm)||typeof nt.algorithm=="function")&&(nt.theme=Qh(nt.algorithm)),delete nt.algorithm),Nn[en]=nt});const kn=Object.assign(Object.assign({},Rl),Wt);return Object.assign(Object.assign({},sr),{theme:Gr,token:kn,components:Nn,override:Object.assign({override:kn},Nn),cssVar:Gt})},[_e]);return x&&(Oe=v.createElement(aw.Provider,{value:fn},Oe)),st.warning&&(Oe=v.createElement(Kk.Provider,{value:st.warning},Oe)),S!==void 0&&(Oe=v.createElement(lw,{disabled:S},Oe)),v.createElement(Rn.Provider,{value:st},Oe)},is=e=>{const t=v.useContext(Rn),n=v.useContext(dm);return v.createElement(LP,Object.assign({parentContext:t,legacyLocale:n},e))};is.ConfigContext=Rn;is.SizeContext=jo;is.config=AP;is.useConfig=AO;Object.defineProperty(is,"SizeContext",{get:()=>jo});var DP={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 Pw(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function zP(e){return Pw(e)instanceof ShadowRoot}function Qu(e){return zP(e)?Pw(e):null}function jP(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function HP(e,t){En(e,"[@ant-design/icons] ".concat(t))}function A0(e){return Te(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(Te(e.icon)==="object"||typeof e.icon=="function")}function L0(){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[jP(n)]=r}return t},{})}function Cg(e,t,n){return n?$e.createElement(e.tag,V(V({key:t},L0(e.attrs)),n),(e.children||[]).map(function(r,i){return Cg(r,"".concat(t,"-").concat(e.tag,"-").concat(i))})):$e.createElement(e.tag,V({key:t},L0(e.attrs)),(e.children||[]).map(function(r,i){return Cg(r,"".concat(t,"-").concat(e.tag,"-").concat(i))}))}function Tw(e){return $l(e)[0]}function $w(e){return e?Array.isArray(e)?e:[e]:[]}var BP=` -.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); - } -} -`,VP=function(t){var n=v.useContext(um),r=n.csp,i=n.prefixCls,o=BP;i&&(o=o.replace(/anticon/g,i)),v.useEffect(function(){var a=t.current,s=Qu(a);xi(o,"@ant-design-icons",{prepend:!0,csp:r,attachTo:s})},[])},WP=["icon","className","onClick","style","primaryColor","secondaryColor"],Ks={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function UP(e){var t=e.primaryColor,n=e.secondaryColor;Ks.primaryColor=t,Ks.secondaryColor=n||Tw(t),Ks.calculated=!!n}function qP(){return V({},Ks)}var os=function(t){var n=t.icon,r=t.className,i=t.onClick,o=t.style,a=t.primaryColor,s=t.secondaryColor,l=Gn(t,WP),c=v.useRef(),u=Ks;if(a&&(u={primaryColor:a,secondaryColor:s||Tw(a)}),VP(c),HP(A0(n),"icon should be icon definiton, but got ".concat(n)),!A0(n))return null;var f=n;return f&&typeof f.icon=="function"&&(f=V(V({},f),{},{icon:f.icon(u.primaryColor,u.secondaryColor)})),Cg(f.icon,"svg-".concat(f.name),V(V({className:r,onClick:i,style:o,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};os.displayName="IconReact";os.getTwoToneColors=qP;os.setTwoToneColors=UP;function Rw(e){var t=$w(e),n=ee(t,2),r=n[0],i=n[1];return os.setTwoToneColors({primaryColor:r,secondaryColor:i})}function GP(){var e=os.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var XP=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Rw(Xu.primary);var li=v.forwardRef(function(e,t){var n=e.className,r=e.icon,i=e.spin,o=e.rotate,a=e.tabIndex,s=e.onClick,l=e.twoToneColor,c=Gn(e,XP),u=v.useContext(um),f=u.prefixCls,d=f===void 0?"anticon":f,g=u.rootClassName,m=Ce(g,d,L(L({},"".concat(d,"-").concat(r.name),!!r.name),"".concat(d,"-spin"),!!i||r.name==="loading"),n),y=a;y===void 0&&s&&(y=-1);var b=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,p=$w(l),h=ee(p,2),x=h[0],S=h[1];return v.createElement("span",ft({role:"img","aria-label":r.name},c,{ref:t,tabIndex:y,onClick:s,className:m}),v.createElement(os,{icon:r,primaryColor:x,secondaryColor:S,style:b}))});li.displayName="AntdIcon";li.getTwoToneColor=GP;li.setTwoToneColor=Rw;var KP=function(t,n){return v.createElement(li,ft({},t,{ref:n,icon:DP}))},YP=v.forwardRef(KP),QP={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"},ZP=function(t,n){return v.createElement(li,ft({},t,{ref:n,icon:QP}))},JP=v.forwardRef(ZP),eT={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"},tT=function(t,n){return v.createElement(li,ft({},t,{ref:n,icon:eT}))},nT=v.forwardRef(tT);function rT(e){return e&&$e.isValidElement(e)&&e.type===$e.Fragment}const iT=(e,t,n)=>$e.isValidElement(e)?$e.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function Iw(e,t){return iT(e,e,t)}const D0=e=>typeof e=="object"&&e!=null&&e.nodeType===1,z0=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",Ad=(e,t)=>{if(e.clientHeight{const i=(o=>{if(!o.ownerDocument||!o.ownerDocument.defaultView)return null;try{return o.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!i&&(i.clientHeightot||o>e&&a=t&&s>=n?o-e-r:a>t&&sn?a-t+i:0,oT=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},j0=(e,t)=>{var n,r,i,o;if(typeof document>"u")return[];const{scrollMode:a,block:s,inline:l,boundary:c,skipOverflowHiddenElements:u}=t,f=typeof c=="function"?c:N=>N!==c;if(!D0(e))throw new TypeError("Invalid target");const d=document.scrollingElement||document.documentElement,g=[];let m=e;for(;D0(m)&&f(m);){if(m=oT(m),m===d){g.push(m);break}m!=null&&m===document.body&&Ad(m)&&!Ad(document.documentElement)||m!=null&&Ad(m,u)&&g.push(m)}const y=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,b=(o=(i=window.visualViewport)==null?void 0:i.height)!=null?o:innerHeight,{scrollX:p,scrollY:h}=window,{height:x,width:S,top:w,right:_,bottom:E,left:k}=e.getBoundingClientRect(),{top:P,right:O,bottom:I,left:A}=(N=>{const T=window.getComputedStyle(N);return{top:parseFloat(T.scrollMarginTop)||0,right:parseFloat(T.scrollMarginRight)||0,bottom:parseFloat(T.scrollMarginBottom)||0,left:parseFloat(T.scrollMarginLeft)||0}})(e);let D=s==="start"||s==="nearest"?w-P:s==="end"?E+I:w+x/2-P+I,j=l==="center"?k+S/2-A+O:l==="end"?_+O:k-A;const W=[];for(let N=0;N=0&&k>=0&&E<=b&&_<=y&&w>=z&&E<=U&&k>=Y&&_<=B)return W;const q=getComputedStyle(T),X=parseInt(q.borderLeftWidth,10),te=parseInt(q.borderTopWidth,10),G=parseInt(q.borderRightWidth,10),Q=parseInt(q.borderBottomWidth,10);let Z=0,ne=0;const pe="offsetWidth"in T?T.offsetWidth-T.clientWidth-X-G:0,de="offsetHeight"in T?T.offsetHeight-T.clientHeight-te-Q:0,Se="offsetWidth"in T?T.offsetWidth===0?0:F/T.offsetWidth:0,me="offsetHeight"in T?T.offsetHeight===0?0:$/T.offsetHeight:0;if(d===T)Z=s==="start"?D:s==="end"?D-b:s==="nearest"?$c(h,h+b,b,te,Q,h+D,h+D+x,x):D-b/2,ne=l==="start"?j:l==="center"?j-y/2:l==="end"?j-y:$c(p,p+y,y,X,G,p+j,p+j+S,S),Z=Math.max(0,Z+h),ne=Math.max(0,ne+p);else{Z=s==="start"?D-z-te:s==="end"?D-U+Q+de:s==="nearest"?$c(z,U,$,te,Q+de,D,D+x,x):D-(z+$/2)+de/2,ne=l==="start"?j-Y-X:l==="center"?j-(Y+F/2)+pe/2:l==="end"?j-B+G+pe:$c(Y,B,F,X,G+pe,j,j+S,S);const{scrollLeft:he,scrollTop:ve}=T;Z=me===0?0:Math.max(0,Math.min(ve+Z/me,T.scrollHeight-$/me+de)),ne=Se===0?0:Math.max(0,Math.min(he+ne/Se,T.scrollWidth-F/Se+pe)),D+=ve-Z,j+=he-ne}W.push({el:T,top:Z,left:ne})}return W},aT=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function sT(e,t){if(!e.isConnected||!(i=>{let o=i;for(;o&&o.parentNode;){if(o.parentNode===document)return!0;o=o.parentNode instanceof ShadowRoot?o.parentNode.host:o.parentNode}return!1})(e))return;const n=(i=>{const o=window.getComputedStyle(i);return{top:parseFloat(o.scrollMarginTop)||0,right:parseFloat(o.scrollMarginRight)||0,bottom:parseFloat(o.scrollMarginBottom)||0,left:parseFloat(o.scrollMarginLeft)||0}})(e);if((i=>typeof i=="object"&&typeof i.behavior=="function")(t))return t.behavior(j0(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:i,top:o,left:a}of j0(e,aT(t))){const s=o-n.top+n.bottom,l=a-n.left+n.right;i.scroll({top:s,left:l,behavior:r})}}const Uf=e=>{const[,,,,t]=Xo();return t?`${e}-css-var`:""};var le={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>=le.F1&&n<=le.F12)return!1;switch(n){case le.ALT:case le.CAPS_LOCK:case le.CONTEXT_MENU:case le.CTRL:case le.DOWN:case le.END:case le.ESC:case le.HOME:case le.INSERT:case le.LEFT:case le.MAC_FF_META:case le.META:case le.NUMLOCK:case le.NUM_CENTER:case le.PAGE_DOWN:case le.PAGE_UP:case le.PAUSE:case le.PRINT_SCREEN:case le.RIGHT:case le.SHIFT:case le.UP:case le.WIN_KEY:case le.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=le.ZERO&&t<=le.NINE||t>=le.NUM_ZERO&&t<=le.NUM_MULTIPLY||t>=le.A&&t<=le.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case le.SPACE:case le.QUESTION_MARK:case le.NUM_PLUS:case le.NUM_MINUS:case le.NUM_PERIOD:case le.NUM_DIVISION:case le.SEMICOLON:case le.DASH:case le.EQUALS:case le.COMMA:case le.PERIOD:case le.SLASH:case le.APOSTROPHE:case le.SINGLE_QUOTE:case le.OPEN_SQUARE_BRACKET:case le.BACKSLASH:case le.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},lT={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"},cT=function(t,n){return v.createElement(li,ft({},t,{ref:n,icon:lT}))},uT=v.forwardRef(cT);const Fw=$e.createContext(void 0),ho=100,Nw={Modal:ho,Drawer:ho,Popover:ho,Popconfirm:ho,Tooltip:ho,Tour:ho,FloatButton:ho},fT={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function dT(e){return e in Nw}const hT=(e,t)=>{const[,n]=Xo(),r=$e.useContext(Fw),i=dT(e);let o;if(t!==void 0)o=[t,t];else{let a=r??0;i?a+=(r?0:n.zIndexPopupBase)+Nw[e]:a+=fT[e],o=[r===void 0?t:a,a]}return o};function Ur(){Ur=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(N,T,$){N[T]=$.value},o=typeof Symbol=="function"?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(N,T,$){return Object.defineProperty(N,T,{value:$,enumerable:!0,configurable:!0,writable:!0}),N[T]}try{c({},"")}catch{c=function($,F,z){return $[F]=z}}function u(N,T,$,F){var z=T&&T.prototype instanceof p?T:p,B=Object.create(z.prototype),U=new j(F||[]);return i(B,"_invoke",{value:O(N,$,U)}),B}function f(N,T,$){try{return{type:"normal",arg:N.call(T,$)}}catch(F){return{type:"throw",arg:F}}}t.wrap=u;var d="suspendedStart",g="suspendedYield",m="executing",y="completed",b={};function p(){}function h(){}function x(){}var S={};c(S,a,function(){return this});var w=Object.getPrototypeOf,_=w&&w(w(W([])));_&&_!==n&&r.call(_,a)&&(S=_);var E=x.prototype=p.prototype=Object.create(S);function k(N){["next","throw","return"].forEach(function(T){c(N,T,function($){return this._invoke(T,$)})})}function P(N,T){function $(z,B,U,Y){var q=f(N[z],N,B);if(q.type!=="throw"){var X=q.arg,te=X.value;return te&&Te(te)=="object"&&r.call(te,"__await")?T.resolve(te.__await).then(function(G){$("next",G,U,Y)},function(G){$("throw",G,U,Y)}):T.resolve(te).then(function(G){X.value=G,U(X)},function(G){return $("throw",G,U,Y)})}Y(q.arg)}var F;i(this,"_invoke",{value:function(B,U){function Y(){return new T(function(q,X){$(B,U,q,X)})}return F=F?F.then(Y,Y):Y()}})}function O(N,T,$){var F=d;return function(z,B){if(F===m)throw Error("Generator is already running");if(F===y){if(z==="throw")throw B;return{value:e,done:!0}}for($.method=z,$.arg=B;;){var U=$.delegate;if(U){var Y=I(U,$);if(Y){if(Y===b)continue;return Y}}if($.method==="next")$.sent=$._sent=$.arg;else if($.method==="throw"){if(F===d)throw F=y,$.arg;$.dispatchException($.arg)}else $.method==="return"&&$.abrupt("return",$.arg);F=m;var q=f(N,T,$);if(q.type==="normal"){if(F=$.done?y:g,q.arg===b)continue;return{value:q.arg,done:$.done}}q.type==="throw"&&(F=y,$.method="throw",$.arg=q.arg)}}}function I(N,T){var $=T.method,F=N.iterator[$];if(F===e)return T.delegate=null,$==="throw"&&N.iterator.return&&(T.method="return",T.arg=e,I(N,T),T.method==="throw")||$!=="return"&&(T.method="throw",T.arg=new TypeError("The iterator does not provide a '"+$+"' method")),b;var z=f(F,N.iterator,T.arg);if(z.type==="throw")return T.method="throw",T.arg=z.arg,T.delegate=null,b;var B=z.arg;return B?B.done?(T[N.resultName]=B.value,T.next=N.nextLoc,T.method!=="return"&&(T.method="next",T.arg=e),T.delegate=null,b):B:(T.method="throw",T.arg=new TypeError("iterator result is not an object"),T.delegate=null,b)}function A(N){var T={tryLoc:N[0]};1 in N&&(T.catchLoc=N[1]),2 in N&&(T.finallyLoc=N[2],T.afterLoc=N[3]),this.tryEntries.push(T)}function D(N){var T=N.completion||{};T.type="normal",delete T.arg,N.completion=T}function j(N){this.tryEntries=[{tryLoc:"root"}],N.forEach(A,this),this.reset(!0)}function W(N){if(N||N===""){var T=N[a];if(T)return T.call(N);if(typeof N.next=="function")return N;if(!isNaN(N.length)){var $=-1,F=function z(){for(;++$=0;--z){var B=this.tryEntries[z],U=B.completion;if(B.tryLoc==="root")return F("end");if(B.tryLoc<=this.prev){var Y=r.call(B,"catchLoc"),q=r.call(B,"finallyLoc");if(Y&&q){if(this.prev=0;--F){var z=this.tryEntries[F];if(z.tryLoc<=this.prev&&r.call(z,"finallyLoc")&&this.prev=0;--$){var F=this.tryEntries[$];if(F.finallyLoc===T)return this.complete(F.completion,F.afterLoc),D(F),b}},catch:function(T){for(var $=this.tryEntries.length-1;$>=0;--$){var F=this.tryEntries[$];if(F.tryLoc===T){var z=F.completion;if(z.type==="throw"){var B=z.arg;D(F)}return B}}throw Error("illegal catch attempt")},delegateYield:function(T,$,F){return this.delegate={iterator:W(T),resultName:$,nextLoc:F},this.method==="next"&&(this.arg=e),b}},t}function H0(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(c){return void n(c)}s.done?t(l):Promise.resolve(l).then(r,i)}function Yl(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(l){H0(o,r,i,a,s,"next",l)}function s(l){H0(o,r,i,a,s,"throw",l)}a(void 0)})}}const Ld=()=>({height:0,opacity:0}),B0=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},gT=e=>({height:e?e.offsetHeight:0}),Dd=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",V0=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ku}-motion-collapse`,onAppearStart:Ld,onEnterStart:Ld,onAppearActive:B0,onEnterActive:B0,onLeaveStart:gT,onLeaveActive:Ld,onAppearEnd:Dd,onEnterEnd:Dd,onLeaveEnd:Dd,motionDeadline:500}},pT=(e,t,n)=>n!==void 0?n:`${e}-${t}`,Aw=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var i=e.getBoundingClientRect(),o=i.width,a=i.height;if(o||a)return!0}}return!1},Lw=e=>{const t=$e.useContext(jo);return $e.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},Dw=v.createContext(null),mT=(e,t)=>{const n=v.useContext(Dw),r=v.useMemo(()=>{if(!n)return"";const{compactDirection:i,isFirstItem:o,isLastItem:a}=n,s=i==="vertical"?"-vertical-":"-";return Ce(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:o,[`${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}},vT=e=>{let{children:t}=e;return v.createElement(Dw.Provider,{value:null},t)},yT=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`}}}),bT=e=>({animationDuration:e,animationFillMode:"both"}),xT=e=>({animationDuration:e,animationFillMode:"both"}),ST=function(e,t,n,r){const o=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[` - ${o}${e}-enter, - ${o}${e}-appear - `]:Object.assign(Object.assign({},bT(r)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},xT(r)),{animationPlayState:"paused"}),[` - ${o}${e}-enter${e}-enter-active, - ${o}${e}-appear${e}-appear-active - `]:{animationName:t,animationPlayState:"running"},[`${o}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},gm=new kr("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),wT=new kr("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),W0=new kr("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),U0=new kr("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),CT=new kr("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),_T=new kr("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),ET=new kr("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),MT=new kr("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),kT=new kr("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),OT=new kr("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),PT=new kr("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),TT=new kr("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),$T={zoom:{inKeyframes:gm,outKeyframes:wT},"zoom-big":{inKeyframes:W0,outKeyframes:U0},"zoom-big-fast":{inKeyframes:W0,outKeyframes:U0},"zoom-left":{inKeyframes:ET,outKeyframes:MT},"zoom-right":{inKeyframes:kT,outKeyframes:OT},"zoom-up":{inKeyframes:CT,outKeyframes:_T},"zoom-down":{inKeyframes:PT,outKeyframes:TT}},RT=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:o}=$T[t];return[ST(r,i,o,e.motionDurationFast),{[` - ${r}-enter, - ${r}-appear - `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};function IT(e,t,n){const{focusElCls:r,focus:i,borderElCls:o}=n,a=o?"> *":"",s=["hover",i?"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 FT(e,t,n){const{borderElCls:r}=n,i=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${i}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function zw(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({},IT(e,r,t)),FT(n,r,t))}}var jw=v.createContext(null),q0=[];function NT(e,t){var n=v.useState(function(){if(!rr())return null;var m=document.createElement("div");return m}),r=ee(n,1),i=r[0],o=v.useRef(!1),a=v.useContext(jw),s=v.useState(q0),l=ee(s,2),c=l[0],u=l[1],f=a||(o.current?void 0:function(m){u(function(y){var b=[m].concat(se(y));return b})});function d(){i.parentElement||document.body.appendChild(i),o.current=!0}function g(){var m;(m=i.parentElement)===null||m===void 0||m.removeChild(i),o.current=!1}return hn(function(){return e?a?a(d):d():g(),g},[e]),hn(function(){c.length&&(c.forEach(function(m){return m()}),u(q0))},[c]),[i,f]}function AT(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r=n.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";var i,o;if(e){var a=getComputedStyle(e);r.scrollbarColor=a.scrollbarColor,r.scrollbarWidth=a.scrollbarWidth;var 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,";"):"";xi(` -#`.concat(t,`::-webkit-scrollbar { -`).concat(u,` -`).concat(f,` -}`),t)}catch(m){console.error(m),i=l,o=c}}document.body.appendChild(n);var d=e&&i&&!isNaN(i)?i:n.offsetWidth-n.clientWidth,g=e&&o&&!isNaN(o)?o:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),Ol(t),{width:d,height:g}}function LT(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:AT(e)}function DT(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var zT="rc-util-locker-".concat(Date.now()),G0=0;function jT(e){var t=!!e,n=v.useState(function(){return G0+=1,"".concat(zT,"_").concat(G0)}),r=ee(n,1),i=r[0];hn(function(){if(t){var o=LT(document.body).width,a=DT();xi(` -html body { - overflow-y: hidden; - `.concat(a?"width: calc(100% - ".concat(o,"px);"):"",` -}`),i)}else Ol(i);return function(){Ol(i)}},[t,i])}var HT=!1;function BT(e){return HT}var X0=function(t){return t===!1?!1:!rr()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},Hw=v.forwardRef(function(e,t){var n=e.open,r=e.autoLock,i=e.getContainer;e.debug;var o=e.autoDestroy,a=o===void 0?!0:o,s=e.children,l=v.useState(n),c=ee(l,2),u=c[0],f=c[1],d=u||n;v.useEffect(function(){(a||n)&&f(n)},[n,a]);var g=v.useState(function(){return X0(i)}),m=ee(g,2),y=m[0],b=m[1];v.useEffect(function(){var I=X0(i);b(I??null)});var p=NT(d&&!y),h=ee(p,2),x=h[0],S=h[1],w=y??x;jT(r&&n&&rr()&&(w===x||w===document.body));var _=null;if(s&&Kl(s)&&t){var E=s;_=E.ref}var k=em(_,t);if(!d||!rr()||y===void 0)return null;var P=w===!1||BT(),O=s;return t&&(O=v.cloneElement(s,{ref:k})),v.createElement(jw.Provider,{value:S},P?O:Of.createPortal(O,w))});function VT(){var e=V({},df);return e.useId}var K0=0,Y0=VT();const WT=Y0?function(t){var n=Y0();return t||n}:function(t){var n=v.useState("ssr-id"),r=ee(n,2),i=r[0],o=r[1];return v.useEffect(function(){var a=K0;K0+=1,o("rc_unique_".concat(a))},[]),t||i};var Eo="RC_FORM_INTERNAL_HOOKS",at=function(){En(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Ho=v.createContext({getFieldValue:at,getFieldsValue:at,getFieldError:at,getFieldWarning:at,getFieldsError:at,isFieldsTouched:at,isFieldTouched:at,isFieldValidating:at,isFieldsValidating:at,resetFields:at,setFields:at,setFieldValue:at,setFieldsValue:at,validateFields:at,submit:at,getInternalHooks:function(){return at(),{dispatch:at,initEntityValue:at,registerField:at,useSubscribe:at,setInitialValues:at,destroyForm:at,setCallbacks:at,registerWatch:at,getFields:at,setValidateMessages:at,setPreserve:at,getInitialValue:at}}}),Il=v.createContext(null);function _g(e){return e==null?[]:Array.isArray(e)?e:[e]}function UT(e){return e&&!!e._init}function Eg(){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 Mg=Eg();function qT(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function GT(e,t,n){if(tm())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&El(i,n.prototype),i}function kg(e){var t=typeof Map=="function"?new Map:void 0;return kg=function(r){if(r===null||!qT(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,i)}function i(){return GT(r,arguments,Ml(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),El(i,r)},kg(e)}var XT=/%[sdj%]/g,KT=function(){};function Og(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 er(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=o)return s;switch(s){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch{return"[Circular]"}break;default:return s}});return a}return e}function YT(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Qt(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||YT(t)&&typeof e=="string"&&!e)}function QT(e,t,n){var r=[],i=0,o=e.length;function a(s){r.push.apply(r,se(s||[])),i++,i===o&&n(r)}e.forEach(function(s){t(s,a)})}function Q0(e,t,n){var r=0,i=e.length;function o(a){if(a&&a.length){n(a);return}var s=r;r=r+1,st.max?i.push(er(o.messages[f].max,t.fullField,t.max)):s&&l&&(ut.max)&&i.push(er(o.messages[f].range,t.fullField,t.min,t.max))},Bw=function(t,n,r,i,o,a){t.required&&(!r.hasOwnProperty(t.field)||Qt(n,a||t.type))&&i.push(er(o.messages.required,t.fullField))},Rc;const o$=function(){if(Rc)return Rc;var e="[a-fA-F\\d:]",t=function(_){return _&&_.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",i=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],o="(?:%[0-9a-zA-Z]{1,})?",a="(?:".concat(i.join("|"),")").concat(o),s=new RegExp("(?:^".concat(n,"$)|(?:^").concat(a,"$)")),l=new RegExp("^".concat(n,"$")),c=new RegExp("^".concat(a,"$")),u=function(_){return _&&_.exact?s:new RegExp("(?:".concat(t(_)).concat(n).concat(t(_),")|(?:").concat(t(_)).concat(a).concat(t(_),")"),"g")};u.v4=function(w){return w&&w.exact?l:new RegExp("".concat(t(w)).concat(n).concat(t(w)),"g")},u.v6=function(w){return w&&w.exact?c:new RegExp("".concat(t(w)).concat(a).concat(t(w)),"g")};var f="(?:(?:[a-z]+:)?//)",d="(?:\\S+(?::\\S*)?@)?",g=u.v4().source,m=u.v6().source,y="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",b="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",p="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",h="(?::\\d{2,5})?",x='(?:[/?#][^\\s"]*)?',S="(?:".concat(f,"|www\\.)").concat(d,"(?:localhost|").concat(g,"|").concat(m,"|").concat(y).concat(b).concat(p,")").concat(h).concat(x);return Rc=new RegExp("(?:^".concat(S,"$)"),"i"),Rc};var ty={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},$s={integer:function(t){return $s.number(t)&&parseInt(t,10)===t},float:function(t){return $s.number(t)&&!$s.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 Te(t)==="object"&&!$s.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(ty.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(o$())},hex:function(t){return typeof t=="string"&&!!t.match(ty.hex)}},a$=function(t,n,r,i,o){if(t.required&&n===void 0){Bw(t,n,r,i,o);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;a.indexOf(s)>-1?$s[s](n)||i.push(er(o.messages.types[s],t.fullField,t.type)):s&&Te(n)!==t.type&&i.push(er(o.messages.types[s],t.fullField,t.type))},s$=function(t,n,r,i,o){(/^\s+$/.test(n)||n==="")&&i.push(er(o.messages.whitespace,t.fullField))};const Xe={required:Bw,whitespace:s$,type:a$,range:i$,enum:n$,pattern:r$};var l$=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Qt(n)&&!t.required)return r();Xe.required(t,n,i,a,o)}r(a)},c$=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return r();Xe.required(t,n,i,a,o,"array"),n!=null&&(Xe.type(t,n,i,a,o),Xe.range(t,n,i,a,o))}r(a)},u$=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Qt(n)&&!t.required)return r();Xe.required(t,n,i,a,o),n!==void 0&&Xe.type(t,n,i,a,o)}r(a)},f$=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Qt(n,"date")&&!t.required)return r();if(Xe.required(t,n,i,a,o),!Qt(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),Xe.type(t,l,i,a,o),l&&Xe.range(t,l.getTime(),i,a,o)}}r(a)},d$="enum",h$=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Qt(n)&&!t.required)return r();Xe.required(t,n,i,a,o),n!==void 0&&Xe[d$](t,n,i,a,o)}r(a)},g$=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Qt(n)&&!t.required)return r();Xe.required(t,n,i,a,o),n!==void 0&&(Xe.type(t,n,i,a,o),Xe.range(t,n,i,a,o))}r(a)},p$=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Qt(n)&&!t.required)return r();Xe.required(t,n,i,a,o),n!==void 0&&(Xe.type(t,n,i,a,o),Xe.range(t,n,i,a,o))}r(a)},m$=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Qt(n)&&!t.required)return r();Xe.required(t,n,i,a,o),n!==void 0&&Xe.type(t,n,i,a,o)}r(a)},v$=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),Qt(n)&&!t.required)return r();Xe.required(t,n,i,a,o),n!==void 0&&(Xe.type(t,n,i,a,o),Xe.range(t,n,i,a,o))}r(a)},y$=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Qt(n)&&!t.required)return r();Xe.required(t,n,i,a,o),n!==void 0&&Xe.type(t,n,i,a,o)}r(a)},b$=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Qt(n,"string")&&!t.required)return r();Xe.required(t,n,i,a,o),Qt(n,"string")||Xe.pattern(t,n,i,a,o)}r(a)},x$=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Qt(n)&&!t.required)return r();Xe.required(t,n,i,a,o),Qt(n)||Xe.type(t,n,i,a,o)}r(a)},S$=function(t,n,r,i,o){var a=[],s=Array.isArray(n)?"array":Te(n);Xe.required(t,n,i,a,o,s),r(a)},w$=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Qt(n,"string")&&!t.required)return r();Xe.required(t,n,i,a,o,"string"),Qt(n,"string")||(Xe.type(t,n,i,a,o),Xe.range(t,n,i,a,o),Xe.pattern(t,n,i,a,o),t.whitespace===!0&&Xe.whitespace(t,n,i,a,o))}r(a)},zd=function(t,n,r,i,o){var a=t.type,s=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(Qt(n,a)&&!t.required)return r();Xe.required(t,n,i,s,o,a),Qt(n,a)||Xe.type(t,n,i,s,o)}r(s)};const Ys={string:w$,method:m$,number:v$,boolean:u$,regexp:x$,integer:p$,float:g$,array:c$,object:y$,enum:h$,pattern:b$,date:f$,url:zd,hex:zd,email:zd,required:S$,any:l$};var Ql=function(){function e(t){ln(this,e),L(this,"rules",null),L(this,"_messages",Mg),this.define(t)}return cn(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(Te(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(i){var o=n[i];r.rules[i]=Array.isArray(o)?o:[o]})}},{key:"messages",value:function(n){return n&&(this._messages=ey(Eg(),n)),this._messages}},{key:"validate",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},a=n,s=i,l=o;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 y=[],b={};function p(x){if(Array.isArray(x)){var S;y=(S=y).concat.apply(S,se(x))}else y.push(x)}for(var h=0;h0&&arguments[0]!==void 0?arguments[0]:[],k=Array.isArray(E)?E:[E];!s.suppressWarning&&k.length&&e.warning("async-validator:",k),k.length&&b.message!==void 0&&(k=[].concat(b.message));var P=k.map(J0(b,a));if(s.first&&P.length)return g[b.field]=1,y(P);if(!p)y(P);else{if(b.required&&!m.value)return b.message!==void 0?P=[].concat(b.message).map(J0(b,a)):s.error&&(P=[s.error(b,er(s.messages.required,b.field))]),y(P);var O={};b.defaultField&&Object.keys(m.value).map(function(D){O[D]=b.defaultField}),O=V(V({},O),m.rule.fields);var I={};Object.keys(O).forEach(function(D){var j=O[D],W=Array.isArray(j)?j:[j];I[D]=W.map(h.bind(null,D))});var A=new e(I);A.messages(s.messages),m.rule.options&&(m.rule.options.messages=s.messages,m.rule.options.error=s.error),A.validate(m.value,m.rule.options||s,function(D){var j=[];P&&P.length&&j.push.apply(j,se(P)),D&&D.length&&j.push.apply(j,se(D)),y(j.length?j:null)})}}var S;if(b.asyncValidator)S=b.asyncValidator(b,m.value,x,m.source,s);else if(b.validator){try{S=b.validator(b,m.value,x,m.source,s)}catch(E){var w,_;(w=(_=console).error)===null||w===void 0||w.call(_,E),s.suppressValidatorError||setTimeout(function(){throw E},0),x(E.message)}S===!0?x():S===!1?x(typeof b.message=="function"?b.message(b.fullField||b.field):b.message||"".concat(b.fullField||b.field," fails")):S instanceof Array?x(S):S instanceof Error&&x(S.message)}S&&S.then&&S.then(function(){return x()},function(E){return x(E)})},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&&!Ys.hasOwnProperty(n.type))throw new Error(er("Unknown rule type %s",n.type));return n.type||"string"}},{key:"getValidationMethod",value:function(n){if(typeof n.validator=="function")return n.validator;var r=Object.keys(n),i=r.indexOf("message");return i!==-1&&r.splice(i,1),r.length===1&&r[0]==="required"?Ys.required:Ys[this.getType(n)]||void 0}}]),e}();L(Ql,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");Ys[t]=n});L(Ql,"warning",KT);L(Ql,"messages",Mg);L(Ql,"validators",Ys);var Yn="'${name}' is not a valid ${type}",Vw={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:Yn,method:Yn,array:Yn,object:Yn,number:Yn,date:Yn,boolean:Yn,integer:Yn,float:Yn,regexp:Yn,email:Yn,url:Yn,hex:Yn},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}"}},ny=Ql;function C$(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 ry="CODE_LOGIC_ERROR";function Pg(e,t,n,r,i){return Tg.apply(this,arguments)}function Tg(){return Tg=Yl(Ur().mark(function e(t,n,r,i,o){var a,s,l,c,u,f,d,g,m;return Ur().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return a=V({},r),delete a.ruleIndex,ny.warning=function(){},a.validator&&(s=a.validator,a.validator=function(){try{return s.apply(void 0,arguments)}catch(p){return console.error(p),Promise.reject(ry)}}),l=null,a&&a.type==="array"&&a.defaultField&&(l=a.defaultField,delete a.defaultField),c=new ny(L({},t,[a])),u=ka(Vw,i.validateMessages),c.messages(u),f=[],b.prev=10,b.next=13,Promise.resolve(c.validate(L({},t,n),V({},i)));case 13:b.next=18;break;case 15:b.prev=15,b.t0=b.catch(10),b.t0.errors&&(f=b.t0.errors.map(function(p,h){var x=p.message,S=x===ry?u.default:x;return v.isValidElement(S)?v.cloneElement(S,{key:"error_".concat(h)}):S}));case 18:if(!(!f.length&&l)){b.next=23;break}return b.next=21,Promise.all(n.map(function(p,h){return Pg("".concat(t,".").concat(h),p,l,i,o)}));case 21:return d=b.sent,b.abrupt("return",d.reduce(function(p,h){return[].concat(se(p),se(h))},[]));case 23:return g=V(V({},r),{},{name:t,enum:(r.enum||[]).join(", ")},o),m=f.map(function(p){return typeof p=="string"?C$(p,g):p}),b.abrupt("return",m);case 26:case"end":return b.stop()}},e,null,[[10,15]])})),Tg.apply(this,arguments)}function _$(e,t,n,r,i,o){var a=e.join("."),s=n.map(function(u,f){var d=u.validator,g=V(V({},u),{},{ruleIndex:f});return d&&(g.validator=function(m,y,b){var p=!1,h=function(){for(var w=arguments.length,_=new Array(w),E=0;E2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return Ww(t,r,n)})}function Ww(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!n&&e.length!==t.length?!1:t.every(function(r,i){return e[i]===r})}function k$(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||Te(e)!=="object"||Te(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),i=new Set([].concat(n,r));return se(i).every(function(o){var a=e[o],s=t[o];return typeof a=="function"&&typeof s=="function"?!0:a===s})}function O$(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&Te(t.target)==="object"&&e in t.target?t.target[e]:t}function oy(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var i=e[t],o=t-n;return o>0?[].concat(se(e.slice(0,n)),[i],se(e.slice(n,t)),se(e.slice(t+1,r))):o<0?[].concat(se(e.slice(0,t)),se(e.slice(t+1,n+1)),[i],se(e.slice(n+1,r))):e}var P$=["name"],dr=[];function jd(e,t,n,r,i,o){return typeof e=="function"?e(t,n,"source"in o?{source:o.source}:{}):r!==i}var pm=function(e){qo(n,e);var t=Go(n);function n(r){var i;if(ln(this,n),i=t.call(this,r),L(De(i),"state",{resetCount:0}),L(De(i),"cancelRegisterFunc",null),L(De(i),"mounted",!1),L(De(i),"touched",!1),L(De(i),"dirty",!1),L(De(i),"validatePromise",void 0),L(De(i),"prevValidating",void 0),L(De(i),"errors",dr),L(De(i),"warnings",dr),L(De(i),"cancelRegister",function(){var l=i.props,c=l.preserve,u=l.isListField,f=l.name;i.cancelRegisterFunc&&i.cancelRegisterFunc(u,c,Dt(f)),i.cancelRegisterFunc=null}),L(De(i),"getNamePath",function(){var l=i.props,c=l.name,u=l.fieldContext,f=u.prefixName,d=f===void 0?[]:f;return c!==void 0?[].concat(se(d),se(c)):[]}),L(De(i),"getRules",function(){var l=i.props,c=l.rules,u=c===void 0?[]:c,f=l.fieldContext;return u.map(function(d){return typeof d=="function"?d(f):d})}),L(De(i),"refresh",function(){i.mounted&&i.setState(function(l){var c=l.resetCount;return{resetCount:c+1}})}),L(De(i),"metaCache",null),L(De(i),"triggerMetaEvent",function(l){var c=i.props.onMetaChange;if(c){var u=V(V({},i.getMeta()),{},{destroy:l});qu(i.metaCache,u)||c(u),i.metaCache=u}else i.metaCache=null}),L(De(i),"onStoreChange",function(l,c,u){var f=i.props,d=f.shouldUpdate,g=f.dependencies,m=g===void 0?[]:g,y=f.onReset,b=u.store,p=i.getNamePath(),h=i.getValue(l),x=i.getValue(b),S=c&&La(c,p);switch(u.type==="valueUpdate"&&u.source==="external"&&!qu(h,x)&&(i.touched=!0,i.dirty=!0,i.validatePromise=null,i.errors=dr,i.warnings=dr,i.triggerMetaEvent()),u.type){case"reset":if(!c||S){i.touched=!1,i.dirty=!1,i.validatePromise=void 0,i.errors=dr,i.warnings=dr,i.triggerMetaEvent(),y==null||y(),i.refresh();return}break;case"remove":{if(d&&jd(d,l,b,h,x,u)){i.reRender();return}break}case"setField":{var w=u.data;if(S){"touched"in w&&(i.touched=w.touched),"validating"in w&&!("originRCField"in w)&&(i.validatePromise=w.validating?Promise.resolve([]):null),"errors"in w&&(i.errors=w.errors||dr),"warnings"in w&&(i.warnings=w.warnings||dr),i.dirty=!0,i.triggerMetaEvent(),i.reRender();return}else if("value"in w&&La(c,p,!0)){i.reRender();return}if(d&&!p.length&&jd(d,l,b,h,x,u)){i.reRender();return}break}case"dependenciesUpdate":{var _=m.map(Dt);if(_.some(function(E){return La(u.relatedFields,E)})){i.reRender();return}break}default:if(S||(!m.length||p.length||d)&&jd(d,l,b,h,x,u)){i.reRender();return}break}d===!0&&i.reRender()}),L(De(i),"validateRules",function(l){var c=i.getNamePath(),u=i.getValue(),f=l||{},d=f.triggerName,g=f.validateOnly,m=g===void 0?!1:g,y=Promise.resolve().then(Yl(Ur().mark(function b(){var p,h,x,S,w,_,E;return Ur().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:if(i.mounted){P.next=2;break}return P.abrupt("return",[]);case 2:if(p=i.props,h=p.validateFirst,x=h===void 0?!1:h,S=p.messageVariables,w=p.validateDebounce,_=i.getRules(),d&&(_=_.filter(function(O){return O}).filter(function(O){var I=O.validateTrigger;if(!I)return!0;var A=_g(I);return A.includes(d)})),!(w&&d)){P.next=10;break}return P.next=8,new Promise(function(O){setTimeout(O,w)});case 8:if(i.validatePromise===y){P.next=10;break}return P.abrupt("return",[]);case 10:return E=_$(c,u,_,l,x,S),E.catch(function(O){return O}).then(function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:dr;if(i.validatePromise===y){var I;i.validatePromise=null;var A=[],D=[];(I=O.forEach)===null||I===void 0||I.call(O,function(j){var W=j.rule.warningOnly,N=j.errors,T=N===void 0?dr:N;W?D.push.apply(D,se(T)):A.push.apply(A,se(T))}),i.errors=A,i.warnings=D,i.triggerMetaEvent(),i.reRender()}}),P.abrupt("return",E);case 13:case"end":return P.stop()}},b)})));return m||(i.validatePromise=y,i.dirty=!0,i.errors=dr,i.warnings=dr,i.triggerMetaEvent(),i.reRender()),y}),L(De(i),"isFieldValidating",function(){return!!i.validatePromise}),L(De(i),"isFieldTouched",function(){return i.touched}),L(De(i),"isFieldDirty",function(){if(i.dirty||i.props.initialValue!==void 0)return!0;var l=i.props.fieldContext,c=l.getInternalHooks(Eo),u=c.getInitialValue;return u(i.getNamePath())!==void 0}),L(De(i),"getErrors",function(){return i.errors}),L(De(i),"getWarnings",function(){return i.warnings}),L(De(i),"isListField",function(){return i.props.isListField}),L(De(i),"isList",function(){return i.props.isList}),L(De(i),"isPreserve",function(){return i.props.preserve}),L(De(i),"getMeta",function(){i.prevValidating=i.isFieldValidating();var l={touched:i.isFieldTouched(),validating:i.prevValidating,errors:i.errors,warnings:i.warnings,name:i.getNamePath(),validated:i.validatePromise===null};return l}),L(De(i),"getOnlyChild",function(l){if(typeof l=="function"){var c=i.getMeta();return V(V({},i.getOnlyChild(l(i.getControlled(),c,i.props.fieldContext))),{},{isFunction:!0})}var u=Cl(l);return u.length!==1||!v.isValidElement(u[0])?{child:u,isFunction:!1}:{child:u[0],isFunction:!1}}),L(De(i),"getValue",function(l){var c=i.props.fieldContext.getFieldsValue,u=i.getNamePath();return ii(l||c(!0),u)}),L(De(i),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=i.props,u=c.name,f=c.trigger,d=c.validateTrigger,g=c.getValueFromEvent,m=c.normalize,y=c.valuePropName,b=c.getValueProps,p=c.fieldContext,h=d!==void 0?d:p.validateTrigger,x=i.getNamePath(),S=p.getInternalHooks,w=p.getFieldsValue,_=S(Eo),E=_.dispatch,k=i.getValue(),P=b||function(j){return L({},y,j)},O=l[f],I=u!==void 0?P(k):{},A=V(V({},l),I);A[f]=function(){i.touched=!0,i.dirty=!0,i.triggerMetaEvent();for(var j,W=arguments.length,N=new Array(W),T=0;T=0&&O<=I.length?(u.keys=[].concat(se(u.keys.slice(0,O)),[u.id],se(u.keys.slice(O))),x([].concat(se(I.slice(0,O)),[P],se(I.slice(O))))):(u.keys=[].concat(se(u.keys),[u.id]),x([].concat(se(I),[P]))),u.id+=1},remove:function(P){var O=w(),I=new Set(Array.isArray(P)?P:[P]);I.size<=0||(u.keys=u.keys.filter(function(A,D){return!I.has(D)}),x(O.filter(function(A,D){return!I.has(D)})))},move:function(P,O){if(P!==O){var I=w();P<0||P>=I.length||O<0||O>=I.length||(u.keys=oy(u.keys,P,O),x(oy(I,P,O)))}}},E=h||[];return Array.isArray(E)||(E=[]),r(E.map(function(k,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}}),_,b)})))}function T$(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(i,o){e.forEach(function(a,s){a.catch(function(l){return t=!0,l}).then(function(l){n-=1,r[s]=l,!(n>0)&&(t&&o(r),i(r))})})}):Promise.resolve([])}var qw="__@field_split__";function Hd(e){return e.map(function(t){return"".concat(Te(t),":").concat(t)}).join(qw)}var sa=function(){function e(){ln(this,e),L(this,"kvs",new Map)}return cn(e,[{key:"set",value:function(n,r){this.kvs.set(Hd(n),r)}},{key:"get",value:function(n){return this.kvs.get(Hd(n))}},{key:"update",value:function(n,r){var i=this.get(n),o=r(i);o?this.set(n,o):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(Hd(n))}},{key:"map",value:function(n){return se(this.kvs.entries()).map(function(r){var i=ee(r,2),o=i[0],a=i[1],s=o.split(qw);return n({key:s.map(function(l){var c=l.match(/^([^:]*):(.*)$/),u=ee(c,3),f=u[1],d=u[2];return f==="number"?Number(d):d}),value:a})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var i=r.key,o=r.value;return n[i.join(".")]=o,null}),n}}]),e}(),$$=["name"],R$=cn(function e(t){var n=this;ln(this,e),L(this,"formHooked",!1),L(this,"forceRootUpdate",void 0),L(this,"subscribable",!0),L(this,"store",{}),L(this,"fieldEntities",[]),L(this,"initialValues",{}),L(this,"callbacks",{}),L(this,"validateMessages",null),L(this,"preserve",null),L(this,"lastValidatePromise",null),L(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}}),L(this,"getInternalHooks",function(r){return r===Eo?(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}):(En(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),L(this,"useSubscribe",function(r){n.subscribable=r}),L(this,"prevWithoutPreserves",null),L(this,"setInitialValues",function(r,i){if(n.initialValues=r||{},i){var o,a=ka(r,n.store);(o=n.prevWithoutPreserves)===null||o===void 0||o.map(function(s){var l=s.key;a=Nr(a,l,ii(r,l))}),n.prevWithoutPreserves=null,n.updateStore(a)}}),L(this,"destroyForm",function(r){if(r)n.updateStore({});else{var i=new sa;n.getFieldEntities(!0).forEach(function(o){n.isMergedPreserve(o.isPreserve())||i.set(o.getNamePath(),!0)}),n.prevWithoutPreserves=i}}),L(this,"getInitialValue",function(r){var i=ii(n.initialValues,r);return r.length?ka(i):i}),L(this,"setCallbacks",function(r){n.callbacks=r}),L(this,"setValidateMessages",function(r){n.validateMessages=r}),L(this,"setPreserve",function(r){n.preserve=r}),L(this,"watchList",[]),L(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(i){return i!==r})}}),L(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var i=n.getFieldsValue(),o=n.getFieldsValue(!0);n.watchList.forEach(function(a){a(i,o,r)})}}),L(this,"timeoutId",null),L(this,"warningUnhooked",function(){}),L(this,"updateStore",function(r){n.store=r}),L(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(i){return i.getNamePath().length}):n.fieldEntities}),L(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,i=new sa;return n.getFieldEntities(r).forEach(function(o){var a=o.getNamePath();i.set(a,o)}),i}),L(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var i=n.getFieldsMap(!0);return r.map(function(o){var a=Dt(o);return i.get(a)||{INVALIDATE_NAME_PATH:Dt(o)}})}),L(this,"getFieldsValue",function(r,i){n.warningUnhooked();var o,a,s;if(r===!0||Array.isArray(r)?(o=r,a=i):r&&Te(r)==="object"&&(s=r.strict,a=r.filter),o===!0&&!a)return n.store;var l=n.getFieldEntitiesForNamePathList(Array.isArray(o)?o:null),c=[];return l.forEach(function(u){var f,d,g="INVALIDATE_NAME_PATH"in u?u.INVALIDATE_NAME_PATH:u.getNamePath();if(s){var m,y;if((m=(y=u).isList)!==null&&m!==void 0&&m.call(y))return}else if(!o&&(f=(d=u).isListField)!==null&&f!==void 0&&f.call(d))return;if(!a)c.push(g);else{var b="getMeta"in u?u.getMeta():null;a(b)&&c.push(g)}}),iy(n.store,c.map(Dt))}),L(this,"getFieldValue",function(r){n.warningUnhooked();var i=Dt(r);return ii(n.store,i)}),L(this,"getFieldsError",function(r){n.warningUnhooked();var i=n.getFieldEntitiesForNamePathList(r);return i.map(function(o,a){return o&&!("INVALIDATE_NAME_PATH"in o)?{name:o.getNamePath(),errors:o.getErrors(),warnings:o.getWarnings()}:{name:Dt(r[a]),errors:[],warnings:[]}})}),L(this,"getFieldError",function(r){n.warningUnhooked();var i=Dt(r),o=n.getFieldsError([i])[0];return o.errors}),L(this,"getFieldWarning",function(r){n.warningUnhooked();var i=Dt(r),o=n.getFieldsError([i])[0];return o.warnings}),L(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,i=new Array(r),o=0;o0&&arguments[0]!==void 0?arguments[0]:{},i=new sa,o=n.getFieldEntities(!0);o.forEach(function(l){var c=l.props.initialValue,u=l.getNamePath();if(c!==void 0){var f=i.get(u)||new Set;f.add({entity:l,value:c}),i.set(u,f)}});var a=function(c){c.forEach(function(u){var f=u.props.initialValue;if(f!==void 0){var d=u.getNamePath(),g=n.getInitialValue(d);if(g!==void 0)En(!1,"Form already set 'initialValues' with path '".concat(d.join("."),"'. Field can not overwrite it."));else{var m=i.get(d);if(m&&m.size>1)En(!1,"Multiple Field with path '".concat(d.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(m){var y=n.getFieldValue(d),b=u.isListField();!b&&(!r.skipExist||y===void 0)&&n.updateStore(Nr(n.store,d,se(m)[0].value))}}}})},s;r.entities?s=r.entities:r.namePathList?(s=[],r.namePathList.forEach(function(l){var c=i.get(l);if(c){var u;(u=s).push.apply(u,se(se(c).map(function(f){return f.entity})))}})):s=o,a(s)}),L(this,"resetFields",function(r){n.warningUnhooked();var i=n.store;if(!r){n.updateStore(ka(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(i,null,{type:"reset"}),n.notifyWatch();return}var o=r.map(Dt);o.forEach(function(a){var s=n.getInitialValue(a);n.updateStore(Nr(n.store,a,s))}),n.resetWithFieldInitialValue({namePathList:o}),n.notifyObservers(i,o,{type:"reset"}),n.notifyWatch(o)}),L(this,"setFields",function(r){n.warningUnhooked();var i=n.store,o=[];r.forEach(function(a){var s=a.name,l=Gn(a,$$),c=Dt(s);o.push(c),"value"in l&&n.updateStore(Nr(n.store,c,l.value)),n.notifyObservers(i,[c],{type:"setField",data:a})}),n.notifyWatch(o)}),L(this,"getFields",function(){var r=n.getFieldEntities(!0),i=r.map(function(o){var a=o.getNamePath(),s=o.getMeta(),l=V(V({},s),{},{name:a,value:n.getFieldValue(a)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return i}),L(this,"initEntityValue",function(r){var i=r.props.initialValue;if(i!==void 0){var o=r.getNamePath(),a=ii(n.store,o);a===void 0&&n.updateStore(Nr(n.store,o,i))}}),L(this,"isMergedPreserve",function(r){var i=r!==void 0?r:n.preserve;return i??!0}),L(this,"registerField",function(r){n.fieldEntities.push(r);var i=r.getNamePath();if(n.notifyWatch([i]),r.props.initialValue!==void 0){var o=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(o,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(a,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(i);if(i.length&&n.getFieldValue(i)!==c&&n.fieldEntities.every(function(f){return!Ww(f.getNamePath(),i)})){var u=n.store;n.updateStore(Nr(u,i,c,!0)),n.notifyObservers(u,[i],{type:"remove"}),n.triggerDependenciesUpdate(u,i)}}n.notifyWatch([i])}}),L(this,"dispatch",function(r){switch(r.type){case"updateValue":{var i=r.namePath,o=r.value;n.updateValue(i,o);break}case"validateField":{var a=r.namePath,s=r.triggerName;n.validateFields([a],{triggerName:s});break}}}),L(this,"notifyObservers",function(r,i,o){if(n.subscribable){var a=V(V({},o),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(r,i,a)})}else n.forceRootUpdate()}),L(this,"triggerDependenciesUpdate",function(r,i){var o=n.getDependencyChildrenFields(i);return o.length&&n.validateFields(o),n.notifyObservers(r,o,{type:"dependenciesUpdate",relatedFields:[i].concat(se(o))}),o}),L(this,"updateValue",function(r,i){var o=Dt(r),a=n.store;n.updateStore(Nr(n.store,o,i)),n.notifyObservers(a,[o],{type:"valueUpdate",source:"internal"}),n.notifyWatch([o]);var s=n.triggerDependenciesUpdate(a,o),l=n.callbacks.onValuesChange;if(l){var c=iy(n.store,[o]);l(c,n.getFieldsValue())}n.triggerOnFieldsChange([o].concat(se(s)))}),L(this,"setFieldsValue",function(r){n.warningUnhooked();var i=n.store;if(r){var o=ka(n.store,r);n.updateStore(o)}n.notifyObservers(i,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),L(this,"setFieldValue",function(r,i){n.setFields([{name:r,value:i}])}),L(this,"getDependencyChildrenFields",function(r){var i=new Set,o=[],a=new sa;n.getFieldEntities().forEach(function(l){var c=l.props.dependencies;(c||[]).forEach(function(u){var f=Dt(u);a.update(f,function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return d.add(l),d})})});var s=function l(c){var u=a.get(c)||new Set;u.forEach(function(f){if(!i.has(f)){i.add(f);var d=f.getNamePath();f.isFieldDirty()&&d.length&&(o.push(d),l(d))}})};return s(r),o}),L(this,"triggerOnFieldsChange",function(r,i){var o=n.callbacks.onFieldsChange;if(o){var a=n.getFields();if(i){var s=new sa;i.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 La(r,u)});l.length&&o(l,a)}}),L(this,"validateFields",function(r,i){n.warningUnhooked();var o,a;Array.isArray(r)||typeof r=="string"||typeof i=="string"?(o=r,a=i):a=r;var s=!!o,l=s?o.map(Dt):[],c=[],u=String(Date.now()),f=new Set,d=a||{},g=d.recursive,m=d.dirty;n.getFieldEntities(!0).forEach(function(h){if(s||l.push(h.getNamePath()),!(!h.props.rules||!h.props.rules.length)&&!(m&&!h.isFieldDirty())){var x=h.getNamePath();if(f.add(x.join(u)),!s||La(l,x,g)){var S=h.validateRules(V({validateMessages:V(V({},Vw),n.validateMessages)},a));c.push(S.then(function(){return{name:x,errors:[],warnings:[]}}).catch(function(w){var _,E=[],k=[];return(_=w.forEach)===null||_===void 0||_.call(w,function(P){var O=P.rule.warningOnly,I=P.errors;O?k.push.apply(k,se(I)):E.push.apply(E,se(I))}),E.length?Promise.reject({name:x,errors:E,warnings:k}):{name:x,errors:E,warnings:k}}))}}});var y=T$(c);n.lastValidatePromise=y,y.catch(function(h){return h}).then(function(h){var x=h.map(function(S){var w=S.name;return w});n.notifyObservers(n.store,x,{type:"validateFinish"}),n.triggerOnFieldsChange(x,h)});var b=y.then(function(){return n.lastValidatePromise===y?Promise.resolve(n.getFieldsValue(l)):Promise.reject([])}).catch(function(h){var x=h.filter(function(S){return S&&S.errors.length});return Promise.reject({values:n.getFieldsValue(l),errorFields:x,outOfDate:n.lastValidatePromise!==y})});b.catch(function(h){return h});var p=l.filter(function(h){return f.has(h.join(u))});return n.triggerOnFieldsChange(p),b}),L(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var i=n.callbacks.onFinish;if(i)try{i(r)}catch(o){console.error(o)}}).catch(function(r){var i=n.callbacks.onFinishFailed;i&&i(r)})}),this.forceRootUpdate=t});function vm(e){var t=v.useRef(),n=v.useState({}),r=ee(n,2),i=r[1];if(!t.current)if(e)t.current=e;else{var o=function(){i({})},a=new R$(o);t.current=a.getForm()}return[t.current]}var Ig=v.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),Gw=function(t){var n=t.validateMessages,r=t.onFormChange,i=t.onFormFinish,o=t.children,a=v.useContext(Ig),s=v.useRef({});return v.createElement(Ig.Provider,{value:V(V({},a),{},{validateMessages:V(V({},a.validateMessages),n),triggerFormChange:function(c,u){r&&r(c,{changedFields:u,forms:s.current}),a.triggerFormChange(c,u)},triggerFormFinish:function(c,u){i&&i(c,{values:u,forms:s.current}),a.triggerFormFinish(c,u)},registerForm:function(c,u){c&&(s.current=V(V({},s.current),{},L({},c,u))),a.registerForm(c,u)},unregisterForm:function(c){var u=V({},s.current);delete u[c],s.current=u,a.unregisterForm(c)}})},o)},I$=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],F$=function(t,n){var r=t.name,i=t.initialValues,o=t.fields,a=t.form,s=t.preserve,l=t.children,c=t.component,u=c===void 0?"form":c,f=t.validateMessages,d=t.validateTrigger,g=d===void 0?"onChange":d,m=t.onValuesChange,y=t.onFieldsChange,b=t.onFinish,p=t.onFinishFailed,h=t.clearOnDestroy,x=Gn(t,I$),S=v.useRef(null),w=v.useContext(Ig),_=vm(a),E=ee(_,1),k=E[0],P=k.getInternalHooks(Eo),O=P.useSubscribe,I=P.setInitialValues,A=P.setCallbacks,D=P.setValidateMessages,j=P.setPreserve,W=P.destroyForm;v.useImperativeHandle(n,function(){return V(V({},k),{},{nativeElement:S.current})}),v.useEffect(function(){return w.registerForm(r,k),function(){w.unregisterForm(r)}},[w,k,r]),D(V(V({},w.validateMessages),f)),A({onValuesChange:m,onFieldsChange:function(q){if(w.triggerFormChange(r,q),y){for(var X=arguments.length,te=new Array(X>1?X-1:0),G=1;G{}}),Kw=v.createContext(null),Yw=e=>{const t=kS(e,["prefixCls"]);return v.createElement(Gw,Object.assign({},t))},ym=v.createContext({prefixCls:""}),Bo=v.createContext({}),A$=e=>{let{children:t,status:n,override:r}=e;const i=v.useContext(Bo),o=v.useMemo(()=>{const a=Object.assign({},i);return r&&delete a.isFormItemInput,n&&(delete a.status,delete a.hasFeedback,delete a.feedbackIcon),a},[n,r,i]);return v.createElement(Bo.Provider,{value:o},t)},Qw=v.createContext(void 0),Fg=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let i=r;return n&&(i=$e.createElement(A$,{override:!0,status:!0},i)),t&&(i=$e.createElement(vT,null,i)),i},Zw=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))};function L$(e){var t=e.prefixCls,n=e.align,r=e.arrow,i=e.arrowPos,o=r||{},a=o.className,s=o.content,l=i.x,c=l===void 0?0:l,u=i.y,f=u===void 0?0:u,d=v.useRef();if(!n||!n.points)return null;var g={position:"absolute"};if(n.autoArrow!==!1){var m=n.points[0],y=n.points[1],b=m[0],p=m[1],h=y[0],x=y[1];b===h||!["t","b"].includes(b)?g.top=f:b==="t"?g.top=0:g.bottom=0,p===x||!["l","r"].includes(p)?g.left=c:p==="l"?g.left=0:g.right=0}return v.createElement("div",{ref:d,className:Ce("".concat(t,"-arrow"),a),style:g},s)}function D$(e){var t=e.prefixCls,n=e.open,r=e.zIndex,i=e.mask,o=e.motion;return i?v.createElement(Wf,ft({},o,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(a){var s=a.className;return v.createElement("div",{style:{zIndex:r},className:Ce("".concat(t,"-mask"),s)})}):null}var z$=v.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),j$=v.forwardRef(function(e,t){var n=e.popup,r=e.className,i=e.prefixCls,o=e.style,a=e.target,s=e.onVisibleChanged,l=e.open,c=e.keepDom,u=e.fresh,f=e.onClick,d=e.mask,g=e.arrow,m=e.arrowPos,y=e.align,b=e.motion,p=e.maskMotion,h=e.forceRender,x=e.getPopupContainer,S=e.autoDestroy,w=e.portal,_=e.zIndex,E=e.onMouseEnter,k=e.onMouseLeave,P=e.onPointerEnter,O=e.ready,I=e.offsetX,A=e.offsetY,D=e.offsetR,j=e.offsetB,W=e.onAlign,N=e.onPrepare,T=e.stretch,$=e.targetWidth,F=e.targetHeight,z=typeof n=="function"?n():n,B=l||c,U=(x==null?void 0:x.length)>0,Y=v.useState(!x||!U),q=ee(Y,2),X=q[0],te=q[1];if(hn(function(){!X&&U&&a&&te(!0)},[X,U,a]),!X)return null;var G="auto",Q={left:"-1000vw",top:"-1000vh",right:G,bottom:G};if(O||!l){var Z,ne=y.points,pe=y.dynamicInset||((Z=y._experimental)===null||Z===void 0?void 0:Z.dynamicInset),de=pe&&ne[0][1]==="r",Se=pe&&ne[0][0]==="b";de?(Q.right=D,Q.left=G):(Q.left=I,Q.right=G),Se?(Q.bottom=j,Q.top=G):(Q.top=A,Q.bottom=G)}var me={};return T&&(T.includes("height")&&F?me.height=F:T.includes("minHeight")&&F&&(me.minHeight=F),T.includes("width")&&$?me.width=$:T.includes("minWidth")&&$&&(me.minWidth=$)),l||(me.pointerEvents="none"),v.createElement(w,{open:h||B,getContainer:x&&function(){return x(a)},autoDestroy:S},v.createElement(D$,{prefixCls:i,open:l,zIndex:_,mask:d,motion:p}),v.createElement(nm,{onResize:W,disabled:!l},function(he){return v.createElement(Wf,ft({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:h,leavedClassName:"".concat(i,"-hidden")},b,{onAppearPrepare:N,onEnterPrepare:N,visible:l,onVisibleChanged:function(ge){var xe;b==null||(xe=b.onVisibleChanged)===null||xe===void 0||xe.call(b,ge),s(ge)}}),function(ve,ge){var xe=ve.className,ze=ve.style,Me=Ce(i,xe,r);return v.createElement("div",{ref:Xl(he,t,ge),className:Me,style:V(V(V(V({"--arrow-x":"".concat(m.x||0,"px"),"--arrow-y":"".concat(m.y||0,"px")},Q),me),ze),{},{boxSizing:"border-box",zIndex:_},o),onMouseEnter:E,onMouseLeave:k,onPointerEnter:P,onClick:f},g&&v.createElement(L$,{prefixCls:i,arrow:g,arrowPos:m,align:y}),v.createElement(z$,{cache:!l&&!u},z))})}))}),H$=v.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,i=Kl(n),o=v.useCallback(function(s){Jp(t,r?r(s):s)},[r]),a=em(o,n.ref);return i?v.cloneElement(n,{ref:a}):n}),sy=v.createContext(null);function ly(e){return e?Array.isArray(e)?e:[e]:[]}function B$(e,t,n,r){return v.useMemo(function(){var i=ly(n??t),o=ly(r??t),a=new Set(i),s=new Set(o);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 V$(){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 W$(e,t,n,r){for(var i=n.points,o=Object.keys(e),a=0;a1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function Ss(e){return Fl(parseFloat(e),0)}function uy(e,t){var n=V({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var i=Zl(r).getComputedStyle(r),o=i.overflow,a=i.overflowClipMargin,s=i.borderTopWidth,l=i.borderBottomWidth,c=i.borderLeftWidth,u=i.borderRightWidth,f=r.getBoundingClientRect(),d=r.offsetHeight,g=r.clientHeight,m=r.offsetWidth,y=r.clientWidth,b=Ss(s),p=Ss(l),h=Ss(c),x=Ss(u),S=Fl(Math.round(f.width/m*1e3)/1e3),w=Fl(Math.round(f.height/d*1e3)/1e3),_=(m-y-h-x)*S,E=(d-g-b-p)*w,k=b*w,P=p*w,O=h*S,I=x*S,A=0,D=0;if(o==="clip"){var j=Ss(a);A=j*S,D=j*w}var W=f.x+O-A,N=f.y+k-D,T=W+f.width+2*A-O-I-_,$=N+f.height+2*D-k-P-E;n.left=Math.max(n.left,W),n.top=Math.max(n.top,N),n.right=Math.min(n.right,T),n.bottom=Math.min(n.bottom,$)}}),n}function fy(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 dy(e,t){var n=t||[],r=ee(n,2),i=r[0],o=r[1];return[fy(e.width,i),fy(e.height,o)]}function hy(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function la(e,t){var n=t[0],r=t[1],i,o;return n==="t"?o=e.y:n==="b"?o=e.y+e.height:o=e.y+e.height/2,r==="l"?i=e.x:r==="r"?i=e.x+e.width:i=e.x+e.width/2,{x:i,y:o}}function Pi(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,i){return i===t?n[r]||"c":r}).join("")}function U$(e,t,n,r,i,o,a){var s=v.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[r]||{}}),l=ee(s,2),c=l[0],u=l[1],f=v.useRef(0),d=v.useMemo(function(){return t?Ng(t):[]},[t]),g=v.useRef({}),m=function(){g.current={}};e||m();var y=Cn(function(){if(t&&n&&e){let rt=function(fs,fo){var na=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ke,tc=q.x+fs,nc=q.y+fo,ue=tc+Se,ke=nc+de,mt=Math.max(tc,na.left),Lt=Math.max(nc,na.top),vt=Math.min(ue,na.right),ra=Math.min(ke,na.bottom);return Math.max(0,(vt-mt)*(ra-Lt))},tn=function(){en=q.y+Oe,On=en+de,nt=q.x+We,Pn=nt+Se};var At=rt,Rt=tn,h,x,S,w,_=t,E=_.ownerDocument,k=Zl(_),P=k.getComputedStyle(_),O=P.width,I=P.height,A=P.position,D=_.style.left,j=_.style.top,W=_.style.right,N=_.style.bottom,T=_.style.overflow,$=V(V({},i[r]),o),F=E.createElement("div");(h=_.parentElement)===null||h===void 0||h.appendChild(F),F.style.left="".concat(_.offsetLeft,"px"),F.style.top="".concat(_.offsetTop,"px"),F.style.position=A,F.style.height="".concat(_.offsetHeight,"px"),F.style.width="".concat(_.offsetWidth,"px"),_.style.left="0",_.style.top="0",_.style.right="auto",_.style.bottom="auto",_.style.overflow="hidden";var z;if(Array.isArray(n))z={x:n[0],y:n[1],width:0,height:0};else{var B,U,Y=n.getBoundingClientRect();Y.x=(B=Y.x)!==null&&B!==void 0?B:Y.left,Y.y=(U=Y.y)!==null&&U!==void 0?U:Y.top,z={x:Y.x,y:Y.y,width:Y.width,height:Y.height}}var q=_.getBoundingClientRect();q.x=(x=q.x)!==null&&x!==void 0?x:q.left,q.y=(S=q.y)!==null&&S!==void 0?S:q.top;var X=E.documentElement,te=X.clientWidth,G=X.clientHeight,Q=X.scrollWidth,Z=X.scrollHeight,ne=X.scrollTop,pe=X.scrollLeft,de=q.height,Se=q.width,me=z.height,he=z.width,ve={left:0,top:0,right:te,bottom:G},ge={left:-pe,top:-ne,right:Q-pe,bottom:Z-ne},xe=$.htmlRegion,ze="visible",Me="visibleFirst";xe!=="scroll"&&xe!==Me&&(xe=ze);var ie=xe===Me,Fe=uy(ge,d),ae=uy(ve,d),Ke=xe===ze?ae:Fe,Pe=ie?ae:Ke;_.style.left="auto",_.style.top="auto",_.style.right="0",_.style.bottom="0";var Re=_.getBoundingClientRect();_.style.left=D,_.style.top=j,_.style.right=W,_.style.bottom=N,_.style.overflow=T,(w=_.parentElement)===null||w===void 0||w.removeChild(F);var Ve=Fl(Math.round(Se/parseFloat(O)*1e3)/1e3),Qe=Fl(Math.round(de/parseFloat(I)*1e3)/1e3);if(Ve===0||Qe===0||_l(n)&&!Aw(n))return;var gt=$.offset,Zt=$.targetOffset,Ot=dy(q,gt),Pt=ee(Ot,2),Bt=Pt[0],bt=Pt[1],ar=dy(z,Zt),un=ee(ar,2),Tt=un[0],lt=un[1];z.x-=Tt,z.y-=lt;var Or=$.points||[],ct=ee(Or,2),Jt=ct[0],ye=ct[1],oe=hy(ye),_e=hy(Jt),Ee=la(z,oe),Ne=la(q,_e),st=V({},$),We=Ee.x-Ne.x+Bt,Oe=Ee.y-Ne.y+bt,Vt=rt(We,Oe),fn=rt(We,Oe,ae),tt=la(z,["t","l"]),Ye=la(q,["t","l"]),Wt=la(z,["b","r"]),xt=la(q,["b","r"]),Gt=$.overflow||{},sr=Gt.adjustX,Gr=Gt.adjustY,Nn=Gt.shiftX,kn=Gt.shiftY,Xn=function(fo){return typeof fo=="boolean"?fo:fo>=0},en,On,nt,Pn;tn();var vn=Xn(Gr),Pr=_e[0]===oe[0];if(vn&&_e[0]==="t"&&(On>Pe.bottom||g.current.bt)){var we=Oe;Pr?we-=de-me:we=tt.y-xt.y-bt;var be=rt(We,we),Ze=rt(We,we,ae);be>Vt||be===Vt&&(!ie||Ze>=fn)?(g.current.bt=!0,Oe=we,bt=-bt,st.points=[Pi(_e,0),Pi(oe,0)]):g.current.bt=!1}if(vn&&_e[0]==="b"&&(enVt||qe===Vt&&(!ie||Xt>=fn)?(g.current.tb=!0,Oe=Ue,bt=-bt,st.points=[Pi(_e,0),Pi(oe,0)]):g.current.tb=!1}var St=Xn(sr),pt=_e[1]===oe[1];if(St&&_e[1]==="l"&&(Pn>Pe.right||g.current.rl)){var wt=We;pt?wt-=Se-he:wt=tt.x-xt.x-Bt;var Ct=rt(wt,Oe),_t=rt(wt,Oe,ae);Ct>Vt||Ct===Vt&&(!ie||_t>=fn)?(g.current.rl=!0,We=wt,Bt=-Bt,st.points=[Pi(_e,1),Pi(oe,1)]):g.current.rl=!1}if(St&&_e[1]==="r"&&(ntVt||lr===Vt&&(!ie||cr>=fn)?(g.current.lr=!0,We=Nt,Bt=-Bt,st.points=[Pi(_e,1),Pi(oe,1)]):g.current.lr=!1}tn();var $t=Nn===!0?0:Nn;typeof $t=="number"&&(ntae.right&&(We-=Pn-ae.right-Bt,z.x>ae.right-$t&&(We+=z.x-ae.right+$t)));var yn=kn===!0?0:kn;typeof yn=="number"&&(enae.bottom&&(Oe-=On-ae.bottom-bt,z.y>ae.bottom-yn&&(Oe+=z.y-ae.bottom+yn)));var Xr=q.x+We,Kr=Xr+Se,An=q.y+Oe,lo=An+de,ci=z.x,ur=ci+he,co=z.y,Jo=co+me,uo=Math.max(Xr,ci),ea=Math.min(Kr,ur),ta=(uo+ea)/2,us=ta-Xr,C=Math.max(An,co),M=Math.min(lo,Jo),R=(C+M)/2,H=R-An;a==null||a(t,st);var K=Re.right-q.x-(We+q.width),re=Re.bottom-q.y-(Oe+q.height);Ve===1&&(We=Math.round(We),K=Math.round(K)),Qe===1&&(Oe=Math.round(Oe),re=Math.round(re));var Ae={ready:!0,offsetX:We/Ve,offsetY:Oe/Qe,offsetR:K/Ve,offsetB:re/Qe,arrowX:us/Ve,arrowY:H/Qe,scaleX:Ve,scaleY:Qe,align:st};u(Ae)}}),b=function(){f.current+=1;var x=f.current;Promise.resolve().then(function(){f.current===x&&y()})},p=function(){u(function(x){return V(V({},x),{},{ready:!1})})};return hn(p,[r]),hn(function(){e||p()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,b]}function q$(e,t,n,r,i){hn(function(){if(e&&t&&n){let d=function(){r(),i()};var f=d,o=t,a=n,s=Ng(o),l=Ng(a),c=Zl(a),u=new Set([c].concat(se(s),se(l)));return u.forEach(function(g){g.addEventListener("scroll",d,{passive:!0})}),c.addEventListener("resize",d,{passive:!0}),r(),function(){u.forEach(function(g){g.removeEventListener("scroll",d),c.removeEventListener("resize",d)})}}},[e,t,n])}function G$(e,t,n,r,i,o,a,s){var l=v.useRef(e);l.current=e,v.useEffect(function(){if(t&&r&&(!i||o)){var c=function(g){var m;l.current&&!a(((m=g.composedPath)===null||m===void 0||(m=m.call(g))===null||m===void 0?void 0:m[0])||g.target)&&s(!1)},u=Zl(r);u.addEventListener("mousedown",c,!0),u.addEventListener("contextmenu",c,!0);var f=Qu(n);return f&&(f.addEventListener("mousedown",c,!0),f.addEventListener("contextmenu",c,!0)),function(){u.removeEventListener("mousedown",c,!0),u.removeEventListener("contextmenu",c,!0),f&&(f.removeEventListener("mousedown",c,!0),f.removeEventListener("contextmenu",c,!0))}}},[t,n,r,i,o])}var X$=["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 K$(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Hw,t=v.forwardRef(function(n,r){var i=n.prefixCls,o=i===void 0?"rc-trigger-popup":i,a=n.children,s=n.action,l=s===void 0?"hover":s,c=n.showAction,u=n.hideAction,f=n.popupVisible,d=n.defaultPopupVisible,g=n.onPopupVisibleChange,m=n.afterPopupVisibleChange,y=n.mouseEnterDelay,b=n.mouseLeaveDelay,p=b===void 0?.1:b,h=n.focusDelay,x=n.blurDelay,S=n.mask,w=n.maskClosable,_=w===void 0?!0:w,E=n.getPopupContainer,k=n.forceRender,P=n.autoDestroy,O=n.destroyPopupOnHide,I=n.popup,A=n.popupClassName,D=n.popupStyle,j=n.popupPlacement,W=n.builtinPlacements,N=W===void 0?{}:W,T=n.popupAlign,$=n.zIndex,F=n.stretch,z=n.getPopupClassNameFromAlign,B=n.fresh,U=n.alignPoint,Y=n.onPopupClick,q=n.onPopupAlign,X=n.arrow,te=n.popupMotion,G=n.maskMotion,Q=n.popupTransitionName,Z=n.popupAnimation,ne=n.maskTransitionName,pe=n.maskAnimation,de=n.className,Se=n.getTriggerDOMNode,me=Gn(n,X$),he=P||O||!1,ve=v.useState(!1),ge=ee(ve,2),xe=ge[0],ze=ge[1];hn(function(){ze(Zw())},[]);var Me=v.useRef({}),ie=v.useContext(sy),Fe=v.useMemo(function(){return{registerSubPopup:function(ke,mt){Me.current[ke]=mt,ie==null||ie.registerSubPopup(ke,mt)}}},[ie]),ae=WT(),Ke=v.useState(null),Pe=ee(Ke,2),Re=Pe[0],Ve=Pe[1],Qe=v.useRef(null),gt=Cn(function(ue){Qe.current=ue,_l(ue)&&Re!==ue&&Ve(ue),ie==null||ie.registerSubPopup(ae,ue)}),Zt=v.useState(null),Ot=ee(Zt,2),Pt=Ot[0],Bt=Ot[1],bt=v.useRef(null),ar=Cn(function(ue){_l(ue)&&Pt!==ue&&(Bt(ue),bt.current=ue)}),un=v.Children.only(a),Tt=(un==null?void 0:un.props)||{},lt={},Or=Cn(function(ue){var ke,mt,Lt=Pt;return(Lt==null?void 0:Lt.contains(ue))||((ke=Qu(Lt))===null||ke===void 0?void 0:ke.host)===ue||ue===Lt||(Re==null?void 0:Re.contains(ue))||((mt=Qu(Re))===null||mt===void 0?void 0:mt.host)===ue||ue===Re||Object.values(Me.current).some(function(vt){return(vt==null?void 0:vt.contains(ue))||ue===vt})}),ct=cy(o,te,Z,Q),Jt=cy(o,G,pe,ne),ye=v.useState(d||!1),oe=ee(ye,2),_e=oe[0],Ee=oe[1],Ne=f??_e,st=Cn(function(ue){f===void 0&&Ee(ue)});hn(function(){Ee(f||!1)},[f]);var We=v.useRef(Ne);We.current=Ne;var Oe=v.useRef([]);Oe.current=[];var Vt=Cn(function(ue){var ke;st(ue),((ke=Oe.current[Oe.current.length-1])!==null&&ke!==void 0?ke:Ne)!==ue&&(Oe.current.push(ue),g==null||g(ue))}),fn=v.useRef(),tt=function(){clearTimeout(fn.current)},Ye=function(ke){var mt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;tt(),mt===0?Vt(ke):fn.current=setTimeout(function(){Vt(ke)},mt*1e3)};v.useEffect(function(){return tt},[]);var Wt=v.useState(!1),xt=ee(Wt,2),Gt=xt[0],sr=xt[1];hn(function(ue){(!ue||Ne)&&sr(!0)},[Ne]);var Gr=v.useState(null),Nn=ee(Gr,2),kn=Nn[0],Xn=Nn[1],en=v.useState(null),On=ee(en,2),nt=On[0],Pn=On[1],vn=function(ke){Pn([ke.clientX,ke.clientY])},Pr=U$(Ne,Re,U&&nt!==null?nt:Pt,j,N,T,q),we=ee(Pr,11),be=we[0],Ze=we[1],Ue=we[2],qe=we[3],Xt=we[4],St=we[5],pt=we[6],wt=we[7],Ct=we[8],_t=we[9],Nt=we[10],lr=B$(xe,l,c,u),cr=ee(lr,2),$t=cr[0],yn=cr[1],Xr=$t.has("click"),Kr=yn.has("click")||yn.has("contextMenu"),An=Cn(function(){Gt||Nt()}),lo=function(){We.current&&U&&Kr&&Ye(!1)};q$(Ne,Pt,Re,An,lo),hn(function(){An()},[nt,j]),hn(function(){Ne&&!(N!=null&&N[j])&&An()},[JSON.stringify(T)]);var ci=v.useMemo(function(){var ue=W$(N,o,_t,U);return Ce(ue,z==null?void 0:z(_t))},[_t,z,N,o,U]);v.useImperativeHandle(r,function(){return{nativeElement:bt.current,popupElement:Qe.current,forceAlign:An}});var ur=v.useState(0),co=ee(ur,2),Jo=co[0],uo=co[1],ea=v.useState(0),ta=ee(ea,2),us=ta[0],C=ta[1],M=function(){if(F&&Pt){var ke=Pt.getBoundingClientRect();uo(ke.width),C(ke.height)}},R=function(){M(),An()},H=function(ke){sr(!1),Nt(),m==null||m(ke)},K=function(){return new Promise(function(ke){M(),Xn(function(){return ke})})};hn(function(){kn&&(Nt(),kn(),Xn(null))},[kn]);function re(ue,ke,mt,Lt){lt[ue]=function(vt){var ra;Lt==null||Lt(vt),Ye(ke,mt);for(var Qf=arguments.length,Hm=new Array(Qf>1?Qf-1:0),rc=1;rc1?mt-1:0),vt=1;vt1?mt-1:0),vt=1;vtt||e,Z$=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var r,i;const{variant:o,[e]:a}=v.useContext(Rn),s=v.useContext(Qw),l=a==null?void 0:a.variant;let c;typeof t<"u"?c=t:n===!1?c="borderless":c=(i=(r=s??l)!==null&&r!==void 0?r:o)!==null&&i!==void 0?i:"outlined";const u=TO.includes(c);return[c,u]};var J$={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"},eR=function(t,n){return v.createElement(li,ft({},t,{ref:n,icon:J$}))},tR=v.forwardRef(eR);const Nl=["xxl","xl","lg","md","sm","xs"],nR=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)`}),rR=e=>{const t=e,n=[].concat(Nl).reverse();return n.forEach((r,i)=>{const o=r.toUpperCase(),a=`screen${o}Min`,s=`screen${o}`;if(!(t[a]<=t[s]))throw new Error(`${a}<=${s} fails : !(${t[a]}<=${t[s]})`);if(i{const n=new Map;let r=-1,i={};return{matchHandlers:{},dispatch(o){return i=o,n.forEach(a=>a(i)),n.size>=1},subscribe(o){return n.size||this.register(),r+=1,n.set(r,o),o(i),r},unsubscribe(o){n.delete(o),n.size||this.unregister()},unregister(){Object.keys(t).forEach(o=>{const a=t[o],s=this.matchHandlers[a];s==null||s.mql.removeListener(s==null?void 0:s.listener)}),n.clear()},register(){Object.keys(t).forEach(o=>{const a=t[o],s=c=>{let{matches:u}=c;this.dispatch(Object.assign(Object.assign({},i),{[o]:u}))},l=window.matchMedia(a);l.addListener(s),this.matchHandlers[a]={mql:l,listener:s},s(l)})},responsiveMap:t}},[e])}function Jw(e){var t=e.children,n=e.prefixCls,r=e.id,i=e.overlayInnerStyle,o=e.className,a=e.style;return v.createElement("div",{className:Ce("".concat(n,"-content"),o),style:a},v.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:i},typeof t=="function"?t():t))}var ca={shiftX:64,adjustY:1},ua={adjustX:1,shiftY:!0},hr=[0,0],oR={left:{points:["cr","cl"],overflow:ua,offset:[-4,0],targetOffset:hr},right:{points:["cl","cr"],overflow:ua,offset:[4,0],targetOffset:hr},top:{points:["bc","tc"],overflow:ca,offset:[0,-4],targetOffset:hr},bottom:{points:["tc","bc"],overflow:ca,offset:[0,4],targetOffset:hr},topLeft:{points:["bl","tl"],overflow:ca,offset:[0,-4],targetOffset:hr},leftTop:{points:["tr","tl"],overflow:ua,offset:[-4,0],targetOffset:hr},topRight:{points:["br","tr"],overflow:ca,offset:[0,-4],targetOffset:hr},rightTop:{points:["tl","tr"],overflow:ua,offset:[4,0],targetOffset:hr},bottomRight:{points:["tr","br"],overflow:ca,offset:[0,4],targetOffset:hr},rightBottom:{points:["bl","br"],overflow:ua,offset:[4,0],targetOffset:hr},bottomLeft:{points:["tl","bl"],overflow:ca,offset:[0,4],targetOffset:hr},leftBottom:{points:["br","bl"],overflow:ua,offset:[-4,0],targetOffset:hr}},aR=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],sR=function(t,n){var r=t.overlayClassName,i=t.trigger,o=i===void 0?["hover"]:i,a=t.mouseEnterDelay,s=a===void 0?0:a,l=t.mouseLeaveDelay,c=l===void 0?.1:l,u=t.overlayStyle,f=t.prefixCls,d=f===void 0?"rc-tooltip":f,g=t.children,m=t.onVisibleChange,y=t.afterVisibleChange,b=t.transitionName,p=t.animation,h=t.motion,x=t.placement,S=x===void 0?"right":x,w=t.align,_=w===void 0?{}:w,E=t.destroyTooltipOnHide,k=E===void 0?!1:E,P=t.defaultVisible,O=t.getTooltipContainer,I=t.overlayInnerStyle;t.arrowContent;var A=t.overlay,D=t.id,j=t.showArrow,W=j===void 0?!0:j,N=Gn(t,aR),T=v.useRef(null);v.useImperativeHandle(n,function(){return T.current});var $=V({},N);"visible"in t&&($.popupVisible=t.visible);var F=function(){return v.createElement(Jw,{key:"content",prefixCls:d,id:D,overlayInnerStyle:I},A)};return v.createElement(Y$,ft({popupClassName:r,prefixCls:d,popup:F,action:o,builtinPlacements:oR,popupPlacement:S,ref:T,popupAlign:_,getPopupContainer:O,onPopupVisibleChange:m,afterPopupVisibleChange:y,popupTransitionName:b,popupAnimation:p,popupMotion:h,defaultPopupVisible:P,autoDestroy:k,mouseLeaveDelay:c,popupStyle:u,mouseEnterDelay:s,arrow:W},$),g)};const lR=v.forwardRef(sR);function cR(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,i=t/2,o=0,a=i,s=r*1/Math.sqrt(2),l=i-r*(1-1/Math.sqrt(2)),c=i-n*(1/Math.sqrt(2)),u=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),f=2*i-c,d=u,g=2*i-s,m=l,y=2*i-o,b=a,p=i*Math.sqrt(2)+r*(Math.sqrt(2)-2),h=r*(Math.sqrt(2)-1),x=`polygon(${h}px 100%, 50% ${h}px, ${2*i-h}px 100%, ${h}px 100%)`,S=`path('M ${o} ${a} A ${r} ${r} 0 0 0 ${s} ${l} L ${c} ${u} A ${n} ${n} 0 0 1 ${f} ${d} L ${g} ${m} A ${r} ${r} 0 0 0 ${y} ${b} Z')`;return{arrowShadowWidth:p,arrowPath:S,arrowPolygon:x}}const uR=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:i,arrowPath:o,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:[i,o]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${fe(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},eC=8;function tC(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?eC:r}}function Ic(e,t){return e?t:{}}function fR(e,t,n){const{componentCls:r,boxShadowPopoverArrow:i,arrowOffsetVertical:o,arrowOffsetHorizontal:a}=e,{arrowDistance:s=0,arrowPlacement:l={left:!0,right:!0,top:!0,bottom:!0}}={};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},uR(e,t,i)),{"&:before":{background:t}})]},Ic(!!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% - ${fe(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Ic(!!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% - ${fe(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Ic(!!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:o},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:o}})),Ic(!!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:o},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:o}}))}}function dR(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const i=r&&typeof r=="object"?r:{},o={};switch(e){case"top":case"bottom":o.shiftX=t.arrowOffsetHorizontal*2+n,o.shiftY=!0,o.adjustY=!0;break;case"left":case"right":o.shiftY=t.arrowOffsetVertical*2+n,o.shiftX=!0,o.adjustX=!0;break}const a=Object.assign(Object.assign({},o),i);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}const py={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"]}},hR={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"]}},gR=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function pR(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:i,borderRadius:o,visibleFirst:a}=e,s=t/2,l={};return Object.keys(py).forEach(c=>{const u=r&&hR[c]||py[c],f=Object.assign(Object.assign({},u),{offset:[0,0],dynamicInset:!0});switch(l[c]=f,gR.has(c)&&(f.autoArrow=!1),c){case"top":case"topLeft":case"topRight":f.offset[1]=-s-i;break;case"bottom":case"bottomLeft":case"bottomRight":f.offset[1]=s+i;break;case"left":case"leftTop":case"leftBottom":f.offset[0]=-s-i;break;case"right":case"rightTop":case"rightBottom":f.offset[0]=s+i;break}const d=tC({contentRadius:o,limitVerticalRadius:!0});if(r)switch(c){case"topLeft":case"bottomLeft":f.offset[0]=-d.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":f.offset[0]=d.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":f.offset[1]=-d.arrowOffsetHorizontal*2+s;break;case"leftBottom":case"rightBottom":f.offset[1]=d.arrowOffsetHorizontal*2-s;break}f.overflow=dR(c,d,t,n),a&&(f.htmlRegion="visibleFirst")}),l}const mR=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:i,tooltipBorderRadius:o,zIndexPopup:a,controlHeight:s,boxShadowSecondary:l,paddingSM:c,paddingXS:u}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Si(e)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:n,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,[`${t}-inner`]:{minWidth:"1em",minHeight:s,padding:`${fe(e.calc(c).div(2).equal())} ${fe(u)}`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:o,boxShadow:l,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(o,eC)}},[`${t}-content`]:{position:"relative"}}),rP(e,(f,d)=>{let{darkColor:g}=d;return{[`&${t}-${f}`]:{[`${t}-inner`]:{backgroundColor:g},[`${t}-arrow`]:{"--antd-arrow-background-color":g}}}})),{"&-rtl":{direction:"rtl"}})},fR(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},vR=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},tC({contentRadius:e.borderRadius,limitVerticalRadius:!0})),cR(qr(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),nC=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Ko("Tooltip",r=>{const{borderRadius:i,colorTextLightSolid:o,colorBgSpotlight:a}=r,s=qr(r,{tooltipMaxWidth:250,tooltipColor:o,tooltipBorderRadius:i,tooltipBg:a});return[mR(s),RT(r,"zoom-big-fast")]},vR,{resetStyle:!1,injectStyle:t})(e)},yR=Yu.map(e=>`${e}-inverse`);function bR(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(se(yR),se(Yu)).includes(e):Yu.includes(e)}function rC(e,t){const n=bR(t),r=Ce({[`${e}-${t}`]:t&&n}),i={},o={};return t&&!n&&(i.background=t,o["--antd-arrow-background-color"]=t),{className:r,overlayStyle:i,arrowStyle:o}}const xR=e=>{const{prefixCls:t,className:n,placement:r="top",title:i,color:o,overlayInnerStyle:a}=e,{getPrefixCls:s}=v.useContext(Rn),l=s("tooltip",t),[c,u,f]=nC(l),d=rC(l,o),g=d.arrowStyle,m=Object.assign(Object.assign({},a),d.overlayStyle),y=Ce(u,f,l,`${l}-pure`,`${l}-placement-${r}`,n,d.className);return c(v.createElement("div",{className:y,style:g},v.createElement("div",{className:`${l}-arrow`}),v.createElement(Jw,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:m}),i)))};var SR=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n,r;const{prefixCls:i,openClassName:o,getTooltipContainer:a,overlayClassName:s,color:l,overlayInnerStyle:c,children:u,afterOpenChange:f,afterVisibleChange:d,destroyTooltipOnHide:g,arrow:m=!0,title:y,overlay:b,builtinPlacements:p,arrowPointAtCenter:h=!1,autoAdjustOverflow:x=!0}=e,S=!!m,[,w]=Xo(),{getPopupContainer:_,getPrefixCls:E,direction:k}=v.useContext(Rn),P=fm(),O=v.useRef(null),I=()=>{var ae;(ae=O.current)===null||ae===void 0||ae.forceAlign()};v.useImperativeHandle(t,()=>{var ae;return{forceAlign:I,forcePopupAlign:()=>{P.deprecated(!1,"forcePopupAlign","forceAlign"),I()},nativeElement:(ae=O.current)===null||ae===void 0?void 0:ae.nativeElement}});const[A,D]=fw(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),j=!y&&!b&&y!==0,W=ae=>{var Ke,Pe;D(j?!1:ae),j||((Ke=e.onOpenChange)===null||Ke===void 0||Ke.call(e,ae),(Pe=e.onVisibleChange)===null||Pe===void 0||Pe.call(e,ae))},N=v.useMemo(()=>{var ae,Ke;let Pe=h;return typeof m=="object"&&(Pe=(Ke=(ae=m.pointAtCenter)!==null&&ae!==void 0?ae:m.arrowPointAtCenter)!==null&&Ke!==void 0?Ke:h),p||pR({arrowPointAtCenter:Pe,autoAdjustOverflow:x,arrowWidth:S?w.sizePopupArrow:0,borderRadius:w.borderRadius,offset:w.marginXXS,visibleFirst:!0})},[h,m,p,w]),T=v.useMemo(()=>y===0?y:b||y||"",[b,y]),$=v.createElement(Fg,{space:!0},typeof T=="function"?T():T),{getPopupContainer:F,placement:z="top",mouseEnterDelay:B=.1,mouseLeaveDelay:U=.1,overlayStyle:Y,rootClassName:q}=e,X=SR(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),te=E("tooltip",i),G=E(),Q=e["data-popover-inject"];let Z=A;!("open"in e)&&!("visible"in e)&&j&&(Z=!1);const ne=v.isValidElement(u)&&!rT(u)?u:v.createElement("span",null,u),pe=ne.props,de=!pe.className||typeof pe.className=="string"?Ce(pe.className,o||`${te}-open`):pe.className,[Se,me,he]=nC(te,!Q),ve=rC(te,l),ge=ve.arrowStyle,xe=Object.assign(Object.assign({},c),ve.overlayStyle),ze=Ce(s,{[`${te}-rtl`]:k==="rtl"},ve.className,q,me,he),[Me,ie]=hT("Tooltip",X.zIndex),Fe=v.createElement(lR,Object.assign({},X,{zIndex:Me,showArrow:S,placement:z,mouseEnterDelay:B,mouseLeaveDelay:U,prefixCls:te,overlayClassName:ze,overlayStyle:Object.assign(Object.assign({},ge),Y),getTooltipContainer:F||a||_,ref:O,builtinPlacements:N,overlay:$,visible:Z,onVisibleChange:W,afterVisibleChange:f??d,overlayInnerStyle:xe,arrowContent:v.createElement("span",{className:`${te}-arrow-content`}),motion:{motionName:pT(G,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!g}),Z?Iw(ne,{className:de}):ne);return Se(v.createElement(Fw.Provider,{value:ie},Fe))}),Li=wR;Li._InternalPanelDoNotUseOrYouWillBeFired=xR;function iC(e){return qr(e,{inputAffixPadding:e.paddingXXS})}const oC=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:i,controlHeightSM:o,controlHeightLG:a,fontSizeLG:s,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:f,colorFillAlter:d,colorPrimaryHover:g,colorPrimary:m,controlOutlineWidth:y,controlOutline:b,colorErrorOutline:p,colorWarningOutline:h,colorBgContainer:x}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-i,0),paddingBlockSM:Math.max(Math.round((o-n*r)/2*10)/10-i,0),paddingBlockLG:Math.ceil((a-s*l)/2*10)/10-i,paddingInline:c-i,paddingInlineSM:u-i,paddingInlineLG:f-i,addonBg:d,activeBorderColor:m,hoverBorderColor:g,activeShadow:`0 0 0 ${y}px ${b}`,errorActiveShadow:`0 0 0 ${y}px ${p}`,warningActiveShadow:`0 0 0 ${y}px ${h}`,hoverBg:x,activeBg:x,inputFontSize:n,inputFontSizeLG:s,inputFontSizeSM:n}},CR=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),bm=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({},CR(qr(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),aC=(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}}),my=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},aC(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),sC=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},aC(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},bm(e))}),my(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),my(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),vy=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),lC=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${fe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},vy(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),vy(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},bm(e))}})}),cC=(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},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},uC=(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}}),yy=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},uC(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),fC=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},uC(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},bm(e))}),yy(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),yy(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),by=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),dC=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:`${fe(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${fe(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},by(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),by(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:`${fe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${fe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${fe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${fe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${fe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${fe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),hC=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),gC=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:i}=e;return{padding:`${fe(t)} ${fe(i)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},pC=e=>({padding:`${fe(e.paddingBlockSM)} ${fe(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),qf=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${fe(e.paddingBlock)} ${fe(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},hC(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({},gC(e)),"&-sm":Object.assign({},pC(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),mC=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({},gC(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},pC(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 ${fe(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${fe(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${fe(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:`${fe(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${fe(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"},JO()),{[`${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}}}})}},_R=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:i}=e,a=i(n).sub(i(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Si(e)),qf(e)),sC(e)),fC(e)),cC(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"}})}},ER=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${fe(e.inputAffixPadding)}`}}}},MR=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:i,colorIcon:o,colorIconHover:a,iconCls:s}=e,l=`${t}-affix-wrapper`,c=`${t}-affix-wrapper-disabled`;return{[l]:Object.assign(Object.assign(Object.assign(Object.assign({},qf(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}}}),ER(e)),{[`${s}${t}-password-icon`]:{color:o,cursor:"pointer",transition:`all ${i}`,"&:hover":{color:a}}}),[c]:{[`${s}${t}-password-icon`]:{color:o,cursor:"not-allowed","&:hover":{color:o}}}}},kR=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Si(e)),mC(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}}},lC(e)),dC(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}}})})}},OR=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{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,paddingTop:0,paddingBottom:0,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 ${r}-button`]:{height:e.controlHeightLG},[`&-small ${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}}}}},PR=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}}}}}},TR=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}};Ko("Input",e=>{const t=qr(e,iC(e));return[_R(t),PR(t),MR(t),kR(t),OR(t),TR(t),zw(t)]},oC,{resetFont:!1});const vC=v.createContext({}),$R=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"}}}},RR=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},IR=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:i}=e,o={};for(let a=i;a>=0;a--)a===0?(o[`${r}${t}-${a}`]={display:"none"},o[`${r}-push-${a}`]={insetInlineStart:"auto"},o[`${r}-pull-${a}`]={insetInlineEnd:"auto"},o[`${r}${t}-push-${a}`]={insetInlineStart:"auto"},o[`${r}${t}-pull-${a}`]={insetInlineEnd:"auto"},o[`${r}${t}-offset-${a}`]={marginInlineStart:0},o[`${r}${t}-order-${a}`]={order:0}):(o[`${r}${t}-${a}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${a/i*100}%`,maxWidth:`${a/i*100}%`}],o[`${r}${t}-push-${a}`]={insetInlineStart:`${a/i*100}%`},o[`${r}${t}-pull-${a}`]={insetInlineEnd:`${a/i*100}%`},o[`${r}${t}-offset-${a}`]={marginInlineStart:`${a/i*100}%`},o[`${r}${t}-order-${a}`]={order:a});return o[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},o},Ag=(e,t)=>IR(e,t),FR=(e,t,n)=>({[`@media (min-width: ${fe(t)})`]:Object.assign({},Ag(e,n))}),NR=()=>({}),AR=()=>({}),LR=Ko("Grid",$R,NR),DR=Ko("Grid",e=>{const t=qr(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[RR(t),Ag(t,""),Ag(t,"-xs"),Object.keys(n).map(r=>FR(t,n[r],r)).reduce((r,i)=>Object.assign(Object.assign({},r),i),{})]},AR);var zR=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{getPrefixCls:n,direction:r}=v.useContext(Rn),{gutter:i,wrap:o}=v.useContext(vC),{prefixCls:a,span:s,order:l,offset:c,push:u,pull:f,className:d,children:g,flex:m,style:y}=e,b=zR(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),p=n("col",a),[h,x,S]=DR(p),w={};let _={};jR.forEach(P=>{let O={};const I=e[P];typeof I=="number"?O.span=I:typeof I=="object"&&(O=I||{}),delete b[P],_=Object.assign(Object.assign({},_),{[`${p}-${P}-${O.span}`]:O.span!==void 0,[`${p}-${P}-order-${O.order}`]:O.order||O.order===0,[`${p}-${P}-offset-${O.offset}`]:O.offset||O.offset===0,[`${p}-${P}-push-${O.push}`]:O.push||O.push===0,[`${p}-${P}-pull-${O.pull}`]:O.pull||O.pull===0,[`${p}-rtl`]:r==="rtl"}),O.flex&&(_[`${p}-${P}-flex`]=!0,w[`--${p}-${P}-flex`]=xy(O.flex))});const E=Ce(p,{[`${p}-${s}`]:s!==void 0,[`${p}-order-${l}`]:l,[`${p}-offset-${c}`]:c,[`${p}-push-${u}`]:u,[`${p}-pull-${f}`]:f},d,_,x,S),k={};if(i&&i[0]>0){const P=i[0]/2;k.paddingLeft=P,k.paddingRight=P}return m&&(k.flex=xy(m),o===!1&&!k.minWidth&&(k.minWidth=0)),h(v.createElement("div",Object.assign({},b,{style:Object.assign(Object.assign(Object.assign({},k),y),w),className:E,ref:t}),g))});var HR=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{if(typeof e=="string"&&r(e),typeof e=="object")for(let o=0;o{i()},[JSON.stringify(e),t]),n}const yC=v.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:i,className:o,style:a,children:s,gutter:l=0,wrap:c}=e,u=HR(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:d}=v.useContext(Rn),[g,m]=v.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[y,b]=v.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),p=Sy(i,y),h=Sy(r,y),x=v.useRef(l),S=iR();v.useEffect(()=>{const T=S.subscribe($=>{b($);const F=x.current||0;(!Array.isArray(F)&&typeof F=="object"||Array.isArray(F)&&(typeof F[0]=="object"||typeof F[1]=="object"))&&m($)});return()=>S.unsubscribe(T)},[]);const w=()=>{const T=[void 0,void 0];return(Array.isArray(l)?l:[l,void 0]).forEach((F,z)=>{if(typeof F=="object")for(let B=0;B0?O[0]/-2:void 0;D&&(A.marginLeft=D,A.marginRight=D);const[j,W]=O;A.rowGap=W;const N=v.useMemo(()=>({gutter:[j,W],wrap:c}),[j,W,c]);return E(v.createElement(vC.Provider,{value:N},v.createElement("div",Object.assign({},u,{className:I,style:Object.assign(Object.assign({},A),a),ref:t}),s)))});var BR={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"},VR=function(t,n){return v.createElement(li,ft({},t,{ref:n,icon:BR}))},WR=v.forwardRef(VR);function Lg(){return typeof BigInt=="function"}function bC(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function Ro(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",i=r.split("."),o=i[0]||"0",a=i[1]||"0";o==="0"&&a==="0"&&(n=!1);var s=n?"-":"";return{negative:n,negativeStr:s,trimStr:r,integerStr:o,decimalStr:a,fullStr:"".concat(s).concat(r)}}function xm(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function Mo(e){var t=String(e);if(xm(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(".")&&Sm(t)?t.length-t.indexOf(".")-1:0}function Gf(e){var t=String(e);if(xm(e)){if(e>Number.MAX_SAFE_INTEGER)return String(Lg()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":Ro("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),qR=function(){function e(t){if(ln(this,e),L(this,"origin",""),L(this,"number",void 0),L(this,"empty",void 0),bC(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return cn(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 i=this.number+r;if(i>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(iNumber.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(i0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":Gf(this.number):this.origin}}]),e}();function Rr(e){return Lg()?new UR(e):new qR(e)}function pu(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var i=Ro(e),o=i.negativeStr,a=i.integerStr,s=i.decimalStr,l="".concat(t).concat(s),c="".concat(o).concat(a);if(n>=0){var u=Number(s[n]);if(u>=5&&!r){var f=Rr(e).add("".concat(o,"0.").concat("0".repeat(n)).concat(10-u));return pu(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 GR(e){return!!(e.addonBefore||e.addonAfter)}function XR(e){return!!(e.prefix||e.suffix||e.allowClear)}function KR(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var i=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(i,i);break;default:e.setSelectionRange(0,i)}}}}var YR=$e.forwardRef(function(e,t){var n,r,i=e.inputElement,o=e.children,a=e.prefixCls,s=e.prefix,l=e.suffix,c=e.addonBefore,u=e.addonAfter,f=e.className,d=e.style,g=e.disabled,m=e.readOnly,y=e.focused,b=e.triggerFocus,p=e.allowClear,h=e.value,x=e.handleReset,S=e.hidden,w=e.classes,_=e.classNames,E=e.dataAttrs,k=e.styles,P=e.components,O=e.onClear,I=o??i,A=(P==null?void 0:P.affixWrapper)||"span",D=(P==null?void 0:P.groupWrapper)||"span",j=(P==null?void 0:P.wrapper)||"span",W=(P==null?void 0:P.groupAddon)||"span",N=v.useRef(null),T=function(me){var he;(he=N.current)!==null&&he!==void 0&&he.contains(me.target)&&(b==null||b())},$=XR(e),F=v.cloneElement(I,{value:h,className:Ce(I.props.className,!$&&(_==null?void 0:_.variant))||null}),z=v.useRef(null);if($e.useImperativeHandle(t,function(){return{nativeElement:z.current||N.current}}),$){var B=null;if(p){var U=!g&&!m&&h,Y="".concat(a,"-clear-icon"),q=Te(p)==="object"&&p!==null&&p!==void 0&&p.clearIcon?p.clearIcon:"✖";B=$e.createElement("span",{onClick:function(me){x==null||x(me),O==null||O()},onMouseDown:function(me){return me.preventDefault()},className:Ce(Y,L(L({},"".concat(Y,"-hidden"),!U),"".concat(Y,"-has-suffix"),!!l)),role:"button",tabIndex:-1},q)}var X="".concat(a,"-affix-wrapper"),te=Ce(X,L(L(L(L(L({},"".concat(a,"-disabled"),g),"".concat(X,"-disabled"),g),"".concat(X,"-focused"),y),"".concat(X,"-readonly"),m),"".concat(X,"-input-with-clear-btn"),l&&p&&h),w==null?void 0:w.affixWrapper,_==null?void 0:_.affixWrapper,_==null?void 0:_.variant),G=(l||p)&&$e.createElement("span",{className:Ce("".concat(a,"-suffix"),_==null?void 0:_.suffix),style:k==null?void 0:k.suffix},B,l);F=$e.createElement(A,ft({className:te,style:k==null?void 0:k.affixWrapper,onClick:T},E==null?void 0:E.affixWrapper,{ref:N}),s&&$e.createElement("span",{className:Ce("".concat(a,"-prefix"),_==null?void 0:_.prefix),style:k==null?void 0:k.prefix},s),F,G)}if(GR(e)){var Q="".concat(a,"-group"),Z="".concat(Q,"-addon"),ne="".concat(Q,"-wrapper"),pe=Ce("".concat(a,"-wrapper"),Q,w==null?void 0:w.wrapper,_==null?void 0:_.wrapper),de=Ce(ne,L({},"".concat(ne,"-disabled"),g),w==null?void 0:w.group,_==null?void 0:_.groupWrapper);F=$e.createElement(D,{className:de,ref:z},$e.createElement(j,{className:pe},c&&$e.createElement(W,{className:Z},c),F,u&&$e.createElement(W,{className:Z},u)))}return $e.cloneElement(F,{className:Ce((n=F.props)===null||n===void 0?void 0:n.className,f)||null,style:V(V({},(r=F.props)===null||r===void 0?void 0:r.style),d),hidden:S})});function QR(e,t){return typeof Proxy<"u"&&e?new Proxy(e,{get:function(r,i){if(t[i])return t[i];var o=r[i];return typeof o=="function"?o.bind(r):o}}):e}function ZR(e,t){var n=v.useRef(null);function r(){try{var o=e.selectionStart,a=e.selectionEnd,s=e.value,l=s.substring(0,o),c=s.substring(a);n.current={start:o,end:a,value:s,beforeTxt:l,afterTxt:c}}catch{}}function i(){if(e&&n.current&&t)try{var o=e.value,a=n.current,s=a.beforeTxt,l=a.afterTxt,c=a.start,u=o.length;if(o.startsWith(s))u=s.length;else if(o.endsWith(l))u=o.length-n.current.afterTxt.length;else{var f=s[c-1],d=o.indexOf(f,c-1);d!==-1&&(u=d+1)}e.setSelectionRange(u,u)}catch(g){En(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(g.message))}}return[r,i]}var JR=function(){var t=v.useState(!1),n=ee(t,2),r=n[0],i=n[1];return hn(function(){i(Zw())},[]),r},eI=200,tI=600;function nI(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,i=e.upDisabled,o=e.downDisabled,a=e.onStep,s=v.useRef(),l=v.useRef([]),c=v.useRef();c.current=a;var u=function(){clearTimeout(s.current)},f=function(x,S){x.preventDefault(),u(),c.current(S);function w(){c.current(S),s.current=setTimeout(w,eI)}s.current=setTimeout(w,tI)};v.useEffect(function(){return function(){u(),l.current.forEach(function(h){return qn.cancel(h)})}},[]);var d=JR();if(d)return null;var g="".concat(t,"-handler"),m=Ce(g,"".concat(g,"-up"),L({},"".concat(g,"-up-disabled"),i)),y=Ce(g,"".concat(g,"-down"),L({},"".concat(g,"-down-disabled"),o)),b=function(){return l.current.push(qn(u))},p={unselectable:"on",role:"button",onMouseUp:b,onMouseLeave:b};return v.createElement("div",{className:"".concat(g,"-wrap")},v.createElement("span",ft({},p,{onMouseDown:function(x){f(x,!0)},"aria-label":"Increase Value","aria-disabled":i,className:m}),n||v.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),v.createElement("span",ft({},p,{onMouseDown:function(x){f(x,!1)},"aria-label":"Decrease Value","aria-disabled":o,className:y}),r||v.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function wy(e){var t=typeof e=="number"?Gf(e):Ro(e).fullStr,n=t.includes(".");return n?Ro(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const rI=function(){var e=v.useRef(0),t=function(){qn.cancel(e.current)};return v.useEffect(function(){return t},[]),function(n){t(),e.current=qn(function(){n()})}};var iI=["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"],oI=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],Cy=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},_y=function(t){var n=Rr(t);return n.isInvalidate()?null:n},aI=v.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,i=e.style,o=e.min,a=e.max,s=e.step,l=s===void 0?1:s,c=e.defaultValue,u=e.value,f=e.disabled,d=e.readOnly,g=e.upHandler,m=e.downHandler,y=e.keyboard,b=e.changeOnWheel,p=b===void 0?!1:b,h=e.controls,x=h===void 0?!0:h;e.classNames;var S=e.stringMode,w=e.parser,_=e.formatter,E=e.precision,k=e.decimalSeparator,P=e.onChange,O=e.onInput,I=e.onPressEnter,A=e.onStep,D=e.changeOnBlur,j=D===void 0?!0:D,W=e.domRef,N=Gn(e,iI),T="".concat(n,"-input"),$=v.useRef(null),F=v.useState(!1),z=ee(F,2),B=z[0],U=z[1],Y=v.useRef(!1),q=v.useRef(!1),X=v.useRef(!1),te=v.useState(function(){return Rr(u??c)}),G=ee(te,2),Q=G[0],Z=G[1];function ne(ye){u===void 0&&Z(ye)}var pe=v.useCallback(function(ye,oe){if(!oe)return E>=0?E:Math.max(Mo(ye),Mo(l))},[E,l]),de=v.useCallback(function(ye){var oe=String(ye);if(w)return w(oe);var _e=oe;return k&&(_e=_e.replace(k,".")),_e.replace(/[^\w.-]+/g,"")},[w,k]),Se=v.useRef(""),me=v.useCallback(function(ye,oe){if(_)return _(ye,{userTyping:oe,input:String(Se.current)});var _e=typeof ye=="number"?Gf(ye):ye;if(!oe){var Ee=pe(_e,oe);if(Sm(_e)&&(k||Ee>=0)){var Ne=k||".";_e=pu(_e,Ne,Ee)}}return _e},[_,pe,k]),he=v.useState(function(){var ye=c??u;return Q.isInvalidate()&&["string","number"].includes(Te(ye))?Number.isNaN(ye)?"":ye:me(Q.toString(),!1)}),ve=ee(he,2),ge=ve[0],xe=ve[1];Se.current=ge;function ze(ye,oe){xe(me(ye.isInvalidate()?ye.toString(!1):ye.toString(!oe),oe))}var Me=v.useMemo(function(){return _y(a)},[a,E]),ie=v.useMemo(function(){return _y(o)},[o,E]),Fe=v.useMemo(function(){return!Me||!Q||Q.isInvalidate()?!1:Me.lessEquals(Q)},[Me,Q]),ae=v.useMemo(function(){return!ie||!Q||Q.isInvalidate()?!1:Q.lessEquals(ie)},[ie,Q]),Ke=ZR($.current,B),Pe=ee(Ke,2),Re=Pe[0],Ve=Pe[1],Qe=function(oe){return Me&&!oe.lessEquals(Me)?Me:ie&&!ie.lessEquals(oe)?ie:null},gt=function(oe){return!Qe(oe)},Zt=function(oe,_e){var Ee=oe,Ne=gt(Ee)||Ee.isEmpty();if(!Ee.isEmpty()&&!_e&&(Ee=Qe(Ee)||Ee,Ne=!0),!d&&!f&&Ne){var st=Ee.toString(),We=pe(st,_e);return We>=0&&(Ee=Rr(pu(st,".",We)),gt(Ee)||(Ee=Rr(pu(st,".",We,!0)))),Ee.equals(Q)||(ne(Ee),P==null||P(Ee.isEmpty()?null:Cy(S,Ee)),u===void 0&&ze(Ee,_e)),Ee}return Q},Ot=rI(),Pt=function ye(oe){if(Re(),Se.current=oe,xe(oe),!q.current){var _e=de(oe),Ee=Rr(_e);Ee.isNaN()||Zt(Ee,!0)}O==null||O(oe),Ot(function(){var Ne=oe;w||(Ne=oe.replace(/。/g,".")),Ne!==oe&&ye(Ne)})},Bt=function(){q.current=!0},bt=function(){q.current=!1,Pt($.current.value)},ar=function(oe){Pt(oe.target.value)},un=function(oe){var _e;if(!(oe&&Fe||!oe&&ae)){Y.current=!1;var Ee=Rr(X.current?wy(l):l);oe||(Ee=Ee.negate());var Ne=(Q||Rr(0)).add(Ee.toString()),st=Zt(Ne,!1);A==null||A(Cy(S,st),{offset:X.current?wy(l):l,type:oe?"up":"down"}),(_e=$.current)===null||_e===void 0||_e.focus()}},Tt=function(oe){var _e=Rr(de(ge)),Ee;_e.isNaN()?Ee=Zt(Q,oe):Ee=Zt(_e,oe),u!==void 0?ze(Q,!1):Ee.isNaN()||ze(Ee,!1)},lt=function(){Y.current=!0},Or=function(oe){var _e=oe.key,Ee=oe.shiftKey;Y.current=!0,X.current=Ee,_e==="Enter"&&(q.current||(Y.current=!1),Tt(!1),I==null||I(oe)),y!==!1&&!q.current&&["Up","ArrowUp","Down","ArrowDown"].includes(_e)&&(un(_e==="Up"||_e==="ArrowUp"),oe.preventDefault())},ct=function(){Y.current=!1,X.current=!1};v.useEffect(function(){if(p&&B){var ye=function(Ee){un(Ee.deltaY<0),Ee.preventDefault()},oe=$.current;if(oe)return oe.addEventListener("wheel",ye,{passive:!1}),function(){return oe.removeEventListener("wheel",ye)}}});var Jt=function(){j&&Tt(!1),U(!1),Y.current=!1};return Xs(function(){Q.isInvalidate()||ze(Q,!1)},[E,_]),Xs(function(){var ye=Rr(u);Z(ye);var oe=Rr(de(ge));(!ye.equals(oe)||!Y.current||_)&&ze(ye,Y.current)},[u]),Xs(function(){_&&Ve()},[ge]),v.createElement("div",{ref:W,className:Ce(n,r,L(L(L(L(L({},"".concat(n,"-focused"),B),"".concat(n,"-disabled"),f),"".concat(n,"-readonly"),d),"".concat(n,"-not-a-number"),Q.isNaN()),"".concat(n,"-out-of-range"),!Q.isInvalidate()&&!gt(Q))),style:i,onFocus:function(){U(!0)},onBlur:Jt,onKeyDown:Or,onKeyUp:ct,onCompositionStart:Bt,onCompositionEnd:bt,onBeforeInput:lt},x&&v.createElement(nI,{prefixCls:n,upNode:g,downNode:m,upDisabled:Fe,downDisabled:ae,onStep:un}),v.createElement("div",{className:"".concat(T,"-wrap")},v.createElement("input",ft({autoComplete:"off",role:"spinbutton","aria-valuemin":o,"aria-valuemax":a,"aria-valuenow":Q.isInvalidate()?null:Q.toString(),step:l},N,{ref:Xl($,t),className:T,value:ge,onChange:ar,disabled:f,readOnly:d}))))}),sI=v.forwardRef(function(e,t){var n=e.disabled,r=e.style,i=e.prefixCls,o=i===void 0?"rc-input-number":i,a=e.value,s=e.prefix,l=e.suffix,c=e.addonBefore,u=e.addonAfter,f=e.className,d=e.classNames,g=Gn(e,oI),m=v.useRef(null),y=v.useRef(null),b=v.useRef(null),p=function(x){b.current&&KR(b.current,x)};return v.useImperativeHandle(t,function(){return QR(b.current,{nativeElement:m.current.nativeElement||y.current})}),v.createElement(YR,{className:f,triggerFocus:p,prefixCls:o,value:a,disabled:n,style:r,prefix:s,suffix:l,addonAfter:u,addonBefore:c,classNames:d,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:m},v.createElement(aI,ft({prefixCls:o,disabled:n,ref:b,domRef:y,className:d==null?void 0:d.input},g)))});const lI=e=>{var t;const n=(t=e.handleVisible)!==null&&t!==void 0?t:"auto";return Object.assign(Object.assign({},oC(e)),{controlWidth:90,handleWidth:e.controlHeightSM-e.lineWidth*2,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new on(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:n===!0?1:0})},Ey=(e,t)=>{let{componentCls:n,borderRadiusSM:r,borderRadiusLG:i}=e;const o=t==="lg"?i:r;return{[`&-${t}`]:{[`${n}-handler-wrap`]:{borderStartEndRadius:o,borderEndEndRadius:o},[`${n}-handler-up`]:{borderStartEndRadius:o},[`${n}-handler-down`]:{borderEndEndRadius:o}}}},cI=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:i,inputFontSizeSM:o,inputFontSizeLG:a,controlHeightLG:s,controlHeightSM:l,colorError:c,paddingInlineSM:u,paddingBlockSM:f,paddingBlockLG:d,paddingInlineLG:g,colorTextDescription:m,motionDurationMid:y,handleHoverColor:b,handleOpacity:p,paddingInline:h,paddingBlock:x,handleBg:S,handleActiveBg:w,colorTextDisabled:_,borderRadiusSM:E,borderRadiusLG:k,controlWidth:P,handleBorderColor:O,filledHandleBg:I,lineHeightLG:A,calc:D}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Si(e)),qf(e)),{display:"inline-block",width:P,margin:0,padding:0,borderRadius:i}),sC(e,{[`${t}-handler-wrap`]:{background:S,[`${t}-handler-down`]:{borderBlockStart:`${fe(n)} ${r} ${O}`}}})),fC(e,{[`${t}-handler-wrap`]:{background:I,[`${t}-handler-down`]:{borderBlockStart:`${fe(n)} ${r} ${O}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:S}}})),cC(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,lineHeight:A,borderRadius:k,[`input${t}-input`]:{height:D(s).sub(D(n).mul(2)).equal(),padding:`${fe(d)} ${fe(g)}`}},"&-sm":{padding:0,fontSize:o,borderRadius:E,[`input${t}-input`]:{height:D(l).sub(D(n).mul(2)).equal(),padding:`${fe(f)} ${fe(u)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},Si(e)),mC(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:k,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:E}}},lC(e)),dC(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({},Si(e)),{width:"100%",padding:`${fe(x)} ${fe(h)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:i,outline:0,transition:`all ${y} linear`,appearance:"textfield",fontSize:"inherit"}),hC(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:0,opacity:p,height:"100%",borderStartStartRadius:0,borderStartEndRadius:i,borderEndEndRadius:i,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${y}`,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:`${fe(n)} ${r} ${O}`,transition:`all ${y} linear`,"&:active":{background:w},"&:hover":{height:"60%",[` - ${t}-handler-up-inner, - ${t}-handler-down-inner - `]:{color:b}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},mw()),{color:m,transition:`all ${y} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:i},[`${t}-handler-down`]:{borderEndEndRadius:i}},Ey(e,"lg")),Ey(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:_}})}]},uI=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:i,controlWidth:o,borderRadiusLG:a,borderRadiusSM:s,paddingInlineLG:l,paddingInlineSM:c,paddingBlockLG:u,paddingBlockSM:f,motionDurationMid:d}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${fe(n)} 0`}},qf(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:o,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:a,paddingInlineStart:l,[`input${t}-input`]:{padding:`${fe(u)} 0`}},"&-sm":{borderRadius:s,paddingInlineStart:c,[`input${t}-input`]:{padding:`${fe(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:i},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:r,marginInlineStart:i,transition:`margin ${d}`}},[`&: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()}})}},fI=Ko("InputNumber",e=>{const t=qr(e,iC(e));return[cI(t),uI(t),zw(t)]},lI,{unitless:{handleOpacity:!0}});var dI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{getPrefixCls:n,direction:r}=v.useContext(Rn),i=v.useRef(null);v.useImperativeHandle(t,()=>i.current);const{className:o,rootClassName:a,size:s,disabled:l,prefixCls:c,addonBefore:u,addonAfter:f,prefix:d,suffix:g,bordered:m,readOnly:y,status:b,controls:p,variant:h}=e,x=dI(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),S=n("input-number",c),w=Uf(S),[_,E,k]=fI(S,w),{compactSize:P,compactItemClassnames:O}=mT(S,r);let I=v.createElement(WR,{className:`${S}-handler-up-inner`}),A=v.createElement(tR,{className:`${S}-handler-down-inner`});const D=typeof p=="boolean"?p:void 0;typeof p=="object"&&(I=typeof p.upIcon>"u"?I:v.createElement("span",{className:`${S}-handler-up-inner`},p.upIcon),A=typeof p.downIcon>"u"?A:v.createElement("span",{className:`${S}-handler-down-inner`},p.downIcon));const{hasFeedback:j,status:W,isFormItemInput:N,feedbackIcon:T}=v.useContext(Bo),$=Q$(W,b),F=Lw(Q=>{var Z;return(Z=s??P)!==null&&Z!==void 0?Z:Q}),z=v.useContext(Ya),B=l??z,[U,Y]=Z$("inputNumber",h,m),q=j&&v.createElement(v.Fragment,null,T),X=Ce({[`${S}-lg`]:F==="large",[`${S}-sm`]:F==="small",[`${S}-rtl`]:r==="rtl",[`${S}-in-form-item`]:N},E),te=`${S}-group`,G=v.createElement(sI,Object.assign({ref:i,disabled:B,className:Ce(k,w,o,a,O),upHandler:I,downHandler:A,prefixCls:S,readOnly:y,controls:D,prefix:d,suffix:q||g,addonBefore:u&&v.createElement(Fg,{form:!0,space:!0},u),addonAfter:f&&v.createElement(Fg,{form:!0,space:!0},f),classNames:{input:X,variant:Ce({[`${S}-${U}`]:Y},gy(S,$,j)),affixWrapper:Ce({[`${S}-affix-wrapper-sm`]:F==="small",[`${S}-affix-wrapper-lg`]:F==="large",[`${S}-affix-wrapper-rtl`]:r==="rtl",[`${S}-affix-wrapper-without-controls`]:p===!1},E),wrapper:Ce({[`${te}-rtl`]:r==="rtl"},E),groupWrapper:Ce({[`${S}-group-wrapper-sm`]:F==="small",[`${S}-group-wrapper-lg`]:F==="large",[`${S}-group-wrapper-rtl`]:r==="rtl",[`${S}-group-wrapper-${U}`]:Y},gy(`${S}-group-wrapper`,$,j),E)}},x));return _(G)}),ha=xC,hI=e=>v.createElement(is,{theme:{components:{InputNumber:{handleVisible:!0}}}},v.createElement(xC,Object.assign({},e)));ha._InternalPanelDoNotUseOrYouWillBeFired=hI;function Dg(e,t,n){return(e-t)/(n-t)}function wm(e,t,n,r){var i=Dg(t,n,r),o={};switch(e){case"rtl":o.right="".concat(i*100,"%"),o.transform="translateX(50%)";break;case"btt":o.bottom="".concat(i*100,"%"),o.transform="translateY(50%)";break;case"ttb":o.top="".concat(i*100,"%"),o.transform="translateY(-50%)";break;default:o.left="".concat(i*100,"%"),o.transform="translateX(-50%)";break}return o}function Ta(e,t){return Array.isArray(e)?e[t]:e}var Yo=v.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),gI=v.createContext({}),pI=["prefixCls","value","valueIndex","onStartMove","onDelete","style","render","dragging","draggingDelete","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"],My=v.forwardRef(function(e,t){var n=e.prefixCls,r=e.value,i=e.valueIndex,o=e.onStartMove,a=e.onDelete,s=e.style,l=e.render,c=e.dragging,u=e.draggingDelete,f=e.onOffsetChange,d=e.onChangeComplete,g=e.onFocus,m=e.onMouseEnter,y=Gn(e,pI),b=v.useContext(Yo),p=b.min,h=b.max,x=b.direction,S=b.disabled,w=b.keyboard,_=b.range,E=b.tabIndex,k=b.ariaLabelForHandle,P=b.ariaLabelledByForHandle,O=b.ariaValueTextFormatterForHandle,I=b.styles,A=b.classNames,D="".concat(n,"-handle"),j=function(q){S||o(q,i)},W=function(q){g==null||g(q,i)},N=function(q){m(q,i)},T=function(q){if(!S&&w){var X=null;switch(q.which||q.keyCode){case le.LEFT:X=x==="ltr"||x==="btt"?-1:1;break;case le.RIGHT:X=x==="ltr"||x==="btt"?1:-1;break;case le.UP:X=x!=="ttb"?1:-1;break;case le.DOWN:X=x!=="ttb"?-1:1;break;case le.HOME:X="min";break;case le.END:X="max";break;case le.PAGE_UP:X=2;break;case le.PAGE_DOWN:X=-2;break;case le.BACKSPACE:case le.DELETE:a(i);break}X!==null&&(q.preventDefault(),f(X,i))}},$=function(q){switch(q.which||q.keyCode){case le.LEFT:case le.RIGHT:case le.UP:case le.DOWN:case le.HOME:case le.END:case le.PAGE_UP:case le.PAGE_DOWN:d==null||d();break}},F=wm(x,r,p,h),z={};if(i!==null){var B;z={tabIndex:S?null:Ta(E,i),role:"slider","aria-valuemin":p,"aria-valuemax":h,"aria-valuenow":r,"aria-disabled":S,"aria-label":Ta(k,i),"aria-labelledby":Ta(P,i),"aria-valuetext":(B=Ta(O,i))===null||B===void 0?void 0:B(r),"aria-orientation":x==="ltr"||x==="rtl"?"horizontal":"vertical",onMouseDown:j,onTouchStart:j,onFocus:W,onMouseEnter:N,onKeyDown:T,onKeyUp:$}}var U=v.createElement("div",ft({ref:t,className:Ce(D,L(L(L({},"".concat(D,"-").concat(i+1),i!==null&&_),"".concat(D,"-dragging"),c),"".concat(D,"-dragging-delete"),u),A.handle),style:V(V(V({},F),s),I.handle)},z,y));return l&&(U=l(U,{index:i,prefixCls:n,value:r,dragging:c,draggingDelete:u})),U}),mI=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","draggingDelete","onFocus"],vI=v.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,i=e.onStartMove,o=e.onOffsetChange,a=e.values,s=e.handleRender,l=e.activeHandleRender,c=e.draggingIndex,u=e.draggingDelete,f=e.onFocus,d=Gn(e,mI),g=v.useRef({}),m=v.useState(!1),y=ee(m,2),b=y[0],p=y[1],h=v.useState(-1),x=ee(h,2),S=x[0],w=x[1],_=function(I){w(I),p(!0)},E=function(I,A){_(A),f==null||f(I)},k=function(I,A){_(A)};v.useImperativeHandle(t,function(){return{focus:function(I){var A;(A=g.current[I])===null||A===void 0||A.focus()},hideHelp:function(){Of.flushSync(function(){p(!1)})}}});var P=V({prefixCls:n,onStartMove:i,onOffsetChange:o,render:s,onFocus:E,onMouseEnter:k},d);return v.createElement(v.Fragment,null,a.map(function(O,I){var A=c===I;return v.createElement(My,ft({ref:function(j){j?g.current[I]=j:delete g.current[I]},dragging:A,draggingDelete:A&&u,style:Ta(r,I),key:I,value:O,valueIndex:I},P))}),l&&b&&v.createElement(My,ft({key:"a11y"},P,{value:a[S],valueIndex:null,dragging:c!==-1,draggingDelete:u,render:l,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))}),yI=function(t){var n=t.prefixCls,r=t.style,i=t.children,o=t.value,a=t.onClick,s=v.useContext(Yo),l=s.min,c=s.max,u=s.direction,f=s.includedStart,d=s.includedEnd,g=s.included,m="".concat(n,"-text"),y=wm(u,o,l,c);return v.createElement("span",{className:Ce(m,L({},"".concat(m,"-active"),g&&f<=o&&o<=d)),style:V(V({},y),r),onMouseDown:function(p){p.stopPropagation()},onClick:function(){a(o)}},i)},bI=function(t){var n=t.prefixCls,r=t.marks,i=t.onClick,o="".concat(n,"-mark");return r.length?v.createElement("div",{className:o},r.map(function(a){var s=a.value,l=a.style,c=a.label;return v.createElement(yI,{key:s,prefixCls:o,style:l,value:s,onClick:i},c)})):null},xI=function(t){var n=t.prefixCls,r=t.value,i=t.style,o=t.activeStyle,a=v.useContext(Yo),s=a.min,l=a.max,c=a.direction,u=a.included,f=a.includedStart,d=a.includedEnd,g="".concat(n,"-dot"),m=u&&f<=r&&r<=d,y=V(V({},wm(c,r,s,l)),typeof i=="function"?i(r):i);return m&&(y=V(V({},y),typeof o=="function"?o(r):o)),v.createElement("span",{className:Ce(g,L({},"".concat(g,"-active"),m)),style:y})},SI=function(t){var n=t.prefixCls,r=t.marks,i=t.dots,o=t.style,a=t.activeStyle,s=v.useContext(Yo),l=s.min,c=s.max,u=s.step,f=v.useMemo(function(){var d=new Set;if(r.forEach(function(m){d.add(m.value)}),i&&u!==null)for(var g=l;g<=c;)d.add(g),g+=u;return Array.from(d)},[l,c,u,i,r]);return v.createElement("div",{className:"".concat(n,"-step")},f.map(function(d){return v.createElement(xI,{prefixCls:n,key:d,value:d,style:o,activeStyle:a})}))},ky=function(t){var n=t.prefixCls,r=t.style,i=t.start,o=t.end,a=t.index,s=t.onStartMove,l=t.replaceCls,c=v.useContext(Yo),u=c.direction,f=c.min,d=c.max,g=c.disabled,m=c.range,y=c.classNames,b="".concat(n,"-track"),p=Dg(i,f,d),h=Dg(o,f,d),x=function(E){!g&&s&&s(E,-1)},S={};switch(u){case"rtl":S.right="".concat(p*100,"%"),S.width="".concat(h*100-p*100,"%");break;case"btt":S.bottom="".concat(p*100,"%"),S.height="".concat(h*100-p*100,"%");break;case"ttb":S.top="".concat(p*100,"%"),S.height="".concat(h*100-p*100,"%");break;default:S.left="".concat(p*100,"%"),S.width="".concat(h*100-p*100,"%")}var w=l||Ce(b,L(L({},"".concat(b,"-").concat(a+1),a!==null&&m),"".concat(n,"-track-draggable"),s),y.track);return v.createElement("div",{className:w,style:V(V({},S),r),onMouseDown:x,onTouchStart:x})},wI=function(t){var n=t.prefixCls,r=t.style,i=t.values,o=t.startPoint,a=t.onStartMove,s=v.useContext(Yo),l=s.included,c=s.range,u=s.min,f=s.styles,d=s.classNames,g=v.useMemo(function(){if(!c){if(i.length===0)return[];var y=o??u,b=i[0];return[{start:Math.min(y,b),end:Math.max(y,b)}]}for(var p=[],h=0;hCI&&u3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof y=="number"){var h,x=m[b],S=x+y,w=[];r.forEach(function(O){w.push(O.value)}),w.push(e,t),w.push(s(x));var _=y>0?1:-1;p==="unit"?w.push(s(x+_*n)):w.push(s(S)),w=w.filter(function(O){return O!==null}).filter(function(O){return y<0?O<=x:O>=x}),p==="unit"&&(w=w.filter(function(O){return O!==x}));var E=p==="unit"?x:S;h=w[0];var k=Math.abs(h-E);if(w.forEach(function(O){var I=Math.abs(O-E);I1){var P=se(m);return P[b]=h,g(P,y-_,b,p)}return h}else{if(y==="min")return e;if(y==="max")return t}},u=function(m,y,b){var p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",h=m[b],x=c(m,y,b,p);return{value:x,changed:x!==h}},f=function(m){return o===null&&m===0||typeof o=="number"&&m3&&arguments[3]!==void 0?arguments[3]:"unit",h=m.map(l),x=h[b],S=c(h,y,b,p);if(h[b]=S,i===!1){var w=o||0;b>0&&h[b-1]!==x&&(h[b]=Math.max(h[b],h[b-1]+w)),b0;P-=1)for(var O=!0;f(h[P]-h[P-1])&&O;){var I=u(h,-1,P-1);h[P-1]=I.value,O=I.changed}for(var A=h.length-1;A>0;A-=1)for(var D=!0;f(h[A]-h[A-1])&&D;){var j=u(h,-1,A-1);h[A-1]=j.value,D=j.changed}for(var W=0;W=0?N:!1},[N,gt]),Ot=v.useMemo(function(){return Object.keys(G||{}).map(function(we){var be=G[we],Ze={value:Number(we)};return be&&Te(be)==="object"&&!v.isValidElement(be)&&("label"in be||"style"in be)?(Ze.style=be.style,Ze.label=be.label):Ze.label=be,Ze}).filter(function(we){var be=we.label;return be||typeof be=="number"}).sort(function(we,be){return we.value-be.value})},[G]),Pt=EI(Ve,Qe,gt,Ot,j,Zt),Bt=ee(Pt,2),bt=Bt[0],ar=Bt[1],un=fw(_,{value:w}),Tt=ee(un,2),lt=Tt[0],Or=Tt[1],ct=v.useMemo(function(){var we=lt==null?[]:Array.isArray(lt)?lt:[lt],be=ee(we,1),Ze=be[0],Ue=Ze===void 0?Ve:Ze,qe=lt===null?[]:[Ue];if(Fe){if(qe=se(we),k||lt===void 0){var Xt=k>=0?k+1:2;for(qe=qe.slice(0,Xt);qe.length=0&&ge.current.focus(we)}sr(null)},[Gt]);var Nn=v.useMemo(function(){return Ke&>===null?!1:Ke},[Ke,gt]),kn=Cn(function(we,be){fn(we,be),O==null||O(Jt(ct))}),Xn=st!==-1;v.useEffect(function(){if(!Xn){var we=ct.lastIndexOf(We);ge.current.focus(we)}},[Xn]);var en=v.useMemo(function(){return se(Vt).sort(function(we,be){return we-be})},[Vt]),On=v.useMemo(function(){return Fe?[en[0],en[en.length-1]]:[Ve,en[0]]},[en,Fe,Ve]),nt=ee(On,2),Pn=nt[0],vn=nt[1];v.useImperativeHandle(t,function(){return{focus:function(){ge.current.focus(0)},blur:function(){var be,Ze=document,Ue=Ze.activeElement;(be=xe.current)!==null&&be!==void 0&&be.contains(Ue)&&(Ue==null||Ue.blur())}}}),v.useEffect(function(){d&&ge.current.focus(0)},[]);var Pr=v.useMemo(function(){return{min:Ve,max:Qe,direction:ze,disabled:c,keyboard:f,step:gt,included:z,includedStart:Pn,includedEnd:vn,range:Fe,tabIndex:Se,ariaLabelForHandle:me,ariaLabelledByForHandle:he,ariaValueTextFormatterForHandle:ve,styles:s||{},classNames:a||{}}},[Ve,Qe,ze,c,f,gt,z,Pn,vn,Fe,Se,me,he,ve,s,a]);return v.createElement(Yo.Provider,{value:Pr},v.createElement("div",{ref:xe,className:Ce(r,i,L(L(L(L({},"".concat(r,"-disabled"),c),"".concat(r,"-vertical"),$),"".concat(r,"-horizontal"),!$),"".concat(r,"-with-marks"),Ot.length)),style:o,onMouseDown:Ye},v.createElement("div",{className:Ce("".concat(r,"-rail"),a==null?void 0:a.rail),style:V(V({},q),s==null?void 0:s.rail)}),pe!==!1&&v.createElement(wI,{prefixCls:r,style:U,values:ct,startPoint:B,onStartMove:Nn?kn:void 0}),v.createElement(SI,{prefixCls:r,marks:Ot,dots:Q,style:X,activeStyle:te}),v.createElement(vI,{ref:ge,prefixCls:r,style:Y,values:Vt,draggingIndex:st,draggingDelete:Oe,onStartMove:kn,onOffsetChange:Gr,onFocus:g,onBlur:m,handleRender:Z,activeHandleRender:ne,onChangeComplete:oe,onDelete:ae?_e:void 0}),v.createElement(bI,{prefixCls:r,marks:Ot,onClick:tt})))});const Py=v.forwardRef((e,t)=>{const{open:n,draggingDelete:r}=e,i=v.useRef(null),o=n&&!r,a=v.useRef(null);function s(){qn.cancel(a.current),a.current=null}function l(){a.current=qn(()=>{var c;(c=i.current)===null||c===void 0||c.forceAlign(),a.current=null})}return v.useEffect(()=>(o?l():s(),s),[o,e.title]),v.createElement(Li,Object.assign({ref:Xl(i,t)},e,{open:o}))}),OI=e=>{const{componentCls:t,antCls:n,controlSize:r,dotSize:i,marginFull:o,marginPart:a,colorFillContentHover:s,handleColorDisabled:l,calc:c,handleSize:u,handleSizeHover:f,handleActiveColor:d,handleActiveOutlineColor:g,handleLineWidth:m,handleLineWidthHover:y,motionDurationMid:b}=e;return{[t]:Object.assign(Object.assign({},Si(e)),{position:"relative",height:r,margin:`${fe(a)} ${fe(o)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${fe(o)} ${fe(a)}`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${b}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${b}`},[`${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 ${fe(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 ${fe(m)} ${e.handleColor}`,outline:"0px solid transparent",borderRadius:"50%",cursor:"pointer",transition:` - inset-inline-start ${b}, - inset-block-start ${b}, - width ${b}, - height ${b}, - box-shadow ${b}, - outline ${b} - `},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:c(f).sub(u).div(2).add(y).mul(-1).equal(),insetBlockStart:c(f).sub(u).div(2).add(y).mul(-1).equal(),width:c(f).add(c(y).mul(2)).equal(),height:c(f).add(c(y).mul(2)).equal()},"&::after":{boxShadow:`0 0 0 ${fe(y)} ${d}`,outline:`6px solid ${g}`,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:i,height:i,backgroundColor:e.colorBgElevated,border:`${fe(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 ${fe(m)} ${l}`,insetInlineStart:0,insetBlockStart:0},[` - ${t}-mark-text, - ${t}-dot - `]:{cursor:"not-allowed !important"}},[`&-tooltip ${n}-tooltip-inner`]:{minWidth:"unset"}})}},SC=(e,t)=>{const{componentCls:n,railSize:r,handleSize:i,dotSize:o,marginFull:a,calc:s}=e,l=t?"paddingBlock":"paddingInline",c=t?"width":"height",u=t?"height":"width",f=t?"insetBlockStart":"insetInlineStart",d=t?"top":"insetInlineStart",g=s(r).mul(3).sub(i).div(2).equal(),m=s(i).sub(r).div(2).equal(),y=t?{borderWidth:`${fe(m)} 0`,transform:`translateY(${fe(s(m).mul(-1).equal())})`}:{borderWidth:`0 ${fe(m)}`,transform:`translateX(${fe(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({},y),[`${n}-handle`]:{[f]:g},[`${n}-mark`]:{insetInlineStart:0,top:0,[d]:s(r).mul(3).add(t?0:a).equal(),[c]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[d]:r,[c]:"100%",[u]:r},[`${n}-dot`]:{position:"absolute",[f]:s(r).sub(o).div(2).equal()}}},PI=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},SC(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},TI=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},SC(e,!1)),{height:"100%"})}},$I=e=>{const n=e.controlHeightLG/4,r=e.controlHeightSM/2,i=e.lineWidth+1,o=e.lineWidth+1*1.5,a=e.colorPrimary,s=new on(a).setAlpha(.2).toRgbString();return{controlSize:n,railSize:4,handleSize:n,handleSizeHover:r,dotSize:8,handleLineWidth:i,handleLineWidthHover:o,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:a,handleActiveOutlineColor:s,handleColorDisabled:new on(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexShortString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}},RI=Ko("Slider",e=>{const t=qr(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[OI(t),PI(t),TI(t)]},$I),II=v.createContext({});function Bd(){const[e,t]=v.useState(!1),n=v.useRef(),r=()=>{qn.cancel(n.current)},i=o=>{r(),o?t(o):n.current=qn(()=>{t(o)})};return v.useEffect(()=>r,[]),[e,i]}var FI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);itypeof n=="number"?n.toString():""}const AI=$e.forwardRef((e,t)=>{const{prefixCls:n,range:r,className:i,rootClassName:o,style:a,disabled:s,tooltipPrefixCls:l,tipFormatter:c,tooltipVisible:u,getTooltipPopupContainer:f,tooltipPlacement:d,tooltip:g={},onChangeComplete:m}=e,y=FI(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement","tooltip","onChangeComplete"]),{vertical:b}=e,{direction:p,slider:h,getPrefixCls:x,getPopupContainer:S}=$e.useContext(Rn),w=$e.useContext(Ya),_=s??w,{handleRender:E,direction:k}=$e.useContext(II),O=(k||p)==="rtl",[I,A]=Bd(),[D,j]=Bd(),W=Object.assign({},g),{open:N,placement:T,getPopupContainer:$,prefixCls:F,formatter:z}=W,B=N??u,U=(I||D)&&B!==!1,Y=NI(z,c),[q,X]=Bd(),te=ge=>{m==null||m(ge),X(!1)},G=(ge,xe)=>ge||(xe?O?"left":"right":"top"),Q=x("slider",n),[Z,ne,pe]=RI(Q),de=Ce(i,h==null?void 0:h.className,o,{[`${Q}-rtl`]:O,[`${Q}-lock`]:q},ne,pe);O&&!y.vertical&&(y.reverse=!y.reverse),$e.useEffect(()=>{const ge=()=>{qn(()=>{j(!1)},1)};return document.addEventListener("mouseup",ge),()=>{document.removeEventListener("mouseup",ge)}},[]);const Se=r&&!B,me=E||((ge,xe)=>{const{index:ze}=xe,Me=ge.props;function ie(Pe,Re,Ve){var Qe,gt,Zt,Ot;Ve&&((gt=(Qe=y)[Pe])===null||gt===void 0||gt.call(Qe,Re)),(Ot=(Zt=Me)[Pe])===null||Ot===void 0||Ot.call(Zt,Re)}const Fe=Object.assign(Object.assign({},Me),{onMouseEnter:Pe=>{A(!0),ie("onMouseEnter",Pe)},onMouseLeave:Pe=>{A(!1),ie("onMouseLeave",Pe)},onMouseDown:Pe=>{j(!0),X(!0),ie("onMouseDown",Pe)},onFocus:Pe=>{var Re;j(!0),(Re=y.onFocus)===null||Re===void 0||Re.call(y,Pe),ie("onFocus",Pe,!0)},onBlur:Pe=>{var Re;j(!1),(Re=y.onBlur)===null||Re===void 0||Re.call(y,Pe),ie("onBlur",Pe,!0)}}),ae=$e.cloneElement(ge,Fe),Ke=(!!B||U)&&Y!==null;return Se?ae:$e.createElement(Py,Object.assign({},W,{prefixCls:x("tooltip",F??l),title:Y?Y(xe.value):"",open:Ke,placement:G(T??d,b),key:ze,overlayClassName:`${Q}-tooltip`,getPopupContainer:$||f||S}),ae)}),he=Se?(ge,xe)=>{const ze=$e.cloneElement(ge,{style:Object.assign(Object.assign({},ge.props.style),{visibility:"hidden"})});return $e.createElement(Py,Object.assign({},W,{prefixCls:x("tooltip",F??l),title:Y?Y(xe.value):"",open:Y!==null&&U,placement:G(T??d,b),key:"tooltip",overlayClassName:`${Q}-tooltip`,getPopupContainer:$||f||S,draggingDelete:xe.draggingDelete}),ze)}:void 0,ve=Object.assign(Object.assign({},h==null?void 0:h.style),a);return Z($e.createElement(kI,Object.assign({},y,{step:y.step,range:r,className:de,style:ve,disabled:_,ref:t,prefixCls:Q,handleRender:me,activeHandleRender:he,onChangeComplete:te})))});function Ju(e){const[t,n]=v.useState(e);return v.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}const LI=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationSlow} ${e.motionEaseInOut}, - opacity ${e.motionDurationSlow} ${e.motionEaseInOut}, - transform ${e.motionDurationSlow} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},DI=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${fe(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 ${fe(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),Ty=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},zI=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},Si(e)),DI(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},Ty(e,e.controlHeightSM)),"&-large":Object.assign({},Ty(e,e.controlHeightLG))})}},jI=e=>{const{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:i,antCls:o,labelRequiredMarkColor:a,labelColor:s,labelFontSize:l,labelHeight:c,labelColonMarginInlineStart:u,labelColonMarginInlineEnd:f,itemMarginBottom:d}=e;return{[t]:Object.assign(Object.assign({},Si(e)),{marginBottom:d,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, - &-hidden${o}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height: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^="'${i}-col-'"]):not([class*="' ${i}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-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:gm,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},$y=(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"}}}}},HI=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"}}}}},Dr=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),wC=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:Dr(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},BI=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`]:Dr(e)}},[`@media (max-width: ${fe(e.screenXSMax)})`]:[wC(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:Dr(e)}}}],[`@media (max-width: ${fe(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:Dr(e)}}},[`@media (max-width: ${fe(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:Dr(e)}}},[`@media (max-width: ${fe(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:Dr(e)}}}}},VI=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`]:Dr(e),[`@media (max-width: ${fe(e.screenXSMax)})`]:[wC(e),{[t]:{[`${n}-col-xs-24${t}-label`]:Dr(e)}}],[`@media (max-width: ${fe(e.screenSMMax)})`]:{[t]:{[`${n}-col-sm-24${t}-label`]:Dr(e)}},[`@media (max-width: ${fe(e.screenMDMax)})`]:{[t]:{[`${n}-col-md-24${t}-label`]:Dr(e)}},[`@media (max-width: ${fe(e.screenLGMax)})`]:{[t]:{[`${n}-col-lg-24${t}-label`]:Dr(e)}}}},WI=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}),CC=(e,t)=>qr(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),Cm=Ko("Form",(e,t)=>{let{rootPrefixCls:n}=t;const r=CC(e,n);return[zI(r),jI(r),LI(r),$y(r,r.componentCls),$y(r,r.formItemCls),HI(r),BI(r),VI(r),yT(r),gm]},WI,{order:-1e3}),Ry=[];function Vd(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 _C=e=>{let{help:t,helpStatus:n,errors:r=Ry,warnings:i=Ry,className:o,fieldId:a,onVisibleChanged:s}=e;const{prefixCls:l}=v.useContext(ym),c=`${l}-item-explain`,u=Uf(l),[f,d,g]=Cm(l,u),m=v.useMemo(()=>V0(l),[l]),y=Ju(r),b=Ju(i),p=v.useMemo(()=>t!=null?[Vd(t,"help",n)]:[].concat(se(y.map((x,S)=>Vd(x,"error","error",S))),se(b.map((x,S)=>Vd(x,"warning","warning",S)))),[t,n,y,b]),h={};return a&&(h.id=`${a}_help`),f(v.createElement(Wf,{motionDeadline:m.motionDeadline,motionName:`${l}-show-help`,visible:!!p.length,onVisibleChanged:s},x=>{const{className:S,style:w}=x;return v.createElement("div",Object.assign({},h,{className:Ce(c,S,g,u,o,d),style:w,role:"alert"}),v.createElement(PP,Object.assign({keys:p},V0(l),{motionName:`${l}-show-help-item`,component:!1}),_=>{const{key:E,error:k,errorStatus:P,className:O,style:I}=_;return v.createElement("div",{key:E,className:Ce(O,{[`${c}-${P}`]:P}),style:I},k)}))}))},UI=["parentNode"],qI="form_item";function Qs(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function EC(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:UI.includes(n)?`${qI}_${n}`:n}function MC(e,t,n,r,i,o){let a=r;return o!==void 0?a=o:n.validating?a="validating":e.length?a="error":t.length?a="warning":(n.touched||i&&n.validated)&&(a="success"),a}function Iy(e){return Qs(e).join("_")}function GI(e,t){const n=t.getFieldInstance(e),r=xS(n);if(r)return r;const i=EC(Qs(e),t.__INTERNAL__.name);if(i)return document.getElementById(i)}function kC(e){const[t]=vm(),n=v.useRef({}),r=v.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:i=>o=>{const a=Iy(i);o?n.current[a]=o:delete n.current[a]}},scrollToField:function(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const a=GI(i,r);a&&sT(a,Object.assign({scrollMode:"if-needed",block:"nearest"},o))},getFieldInstance:i=>{const o=Iy(i);return n.current[o]}}),[e,t]);return[r]}var XI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const n=v.useContext(Ya),{getPrefixCls:r,direction:i,form:o}=v.useContext(Rn),{prefixCls:a,className:s,rootClassName:l,size:c,disabled:u=n,form:f,colon:d,labelAlign:g,labelWrap:m,labelCol:y,wrapperCol:b,hideRequiredMark:p,layout:h="horizontal",scrollToFirstError:x,requiredMark:S,onFinishFailed:w,name:_,style:E,feedbackIcons:k,variant:P}=e,O=XI(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),I=Lw(c),A=v.useContext(JS),D=v.useMemo(()=>S!==void 0?S:p?!1:o&&o.requiredMark!==void 0?o.requiredMark:!0,[p,S,o]),j=d??(o==null?void 0:o.colon),W=r("form",a),N=Uf(W),[T,$,F]=Cm(W,N),z=Ce(W,`${W}-${h}`,{[`${W}-hide-required-mark`]:D===!1,[`${W}-rtl`]:i==="rtl",[`${W}-${I}`]:I},F,N,$,o==null?void 0:o.className,s,l),[B]=kC(f),{__INTERNAL__:U}=B;U.name=_;const Y=v.useMemo(()=>({name:_,labelAlign:g,labelCol:y,labelWrap:m,wrapperCol:b,vertical:h==="vertical",colon:j,requiredMark:D,itemRef:U.itemRef,form:B,feedbackIcons:k}),[_,g,y,b,h,j,D,B,k]),q=v.useRef(null);v.useImperativeHandle(t,()=>{var G;return Object.assign(Object.assign({},B),{nativeElement:(G=q.current)===null||G===void 0?void 0:G.nativeElement})});const X=(G,Q)=>{if(G){let Z={block:"nearest"};typeof G=="object"&&(Z=G),B.scrollToField(Q,Z)}},te=G=>{if(w==null||w(G),G.errorFields.length){const Q=G.errorFields[0].name;if(x!==void 0){X(x,Q);return}o&&o.scrollToFirstError!==void 0&&X(o.scrollToFirstError,Q)}};return T(v.createElement(Qw.Provider,{value:P},v.createElement(lw,{disabled:u},v.createElement(jo.Provider,{value:I},v.createElement(Yw,{validateMessages:A},v.createElement(Mi.Provider,{value:Y},v.createElement(as,Object.assign({id:_},O,{name:_,onFinishFailed:te,form:B,ref:q,style:Object.assign(Object.assign({},o==null?void 0:o.style),E),className:z}))))))))},YI=v.forwardRef(KI);function QI(e){if(typeof e=="function")return e;const t=Cl(e);return t.length<=1?t[0]:t}const OC=()=>{const{status:e,errors:t=[],warnings:n=[]}=v.useContext(Bo);return{status:e,errors:t,warnings:n}};OC.Context=Bo;function ZI(e){const[t,n]=v.useState(e),r=v.useRef(null),i=v.useRef([]),o=v.useRef(!1);v.useEffect(()=>(o.current=!1,()=>{o.current=!0,qn.cancel(r.current),r.current=null}),[]);function a(s){o.current||(r.current===null&&(i.current=[],r.current=qn(()=>{r.current=null,n(l=>{let c=l;return i.current.forEach(u=>{c=u(c)}),c})})),i.current.push(s))}return[t,a]}function JI(){const{itemRef:e}=v.useContext(Mi),t=v.useRef({});function n(r,i){const o=i&&typeof i=="object"&&i.ref,a=r.join("_");return(t.current.name!==a||t.current.originRef!==o)&&(t.current.name=a,t.current.originRef=o,t.current.ref=Xl(e(r),o)),t.current.ref}return n}const eF=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},tF=nP(["Form","item-item"],(e,t)=>{let{rootPrefixCls:n}=t;const r=CC(e,n);return[eF(r)]}),nF=e=>{const{prefixCls:t,status:n,wrapperCol:r,children:i,errors:o,warnings:a,_internalItemRender:s,extra:l,help:c,fieldId:u,marginBottom:f,onErrorVisibleChanged:d}=e,g=`${t}-item`,m=v.useContext(Mi),y=r||m.wrapperCol||{},b=Ce(`${g}-control`,y.className),p=v.useMemo(()=>Object.assign({},m),[m]);delete p.labelCol,delete p.wrapperCol;const h=v.createElement("div",{className:`${g}-control-input`},v.createElement("div",{className:`${g}-control-input-content`},i)),x=v.useMemo(()=>({prefixCls:t,status:n}),[t,n]),S=f!==null||o.length||a.length?v.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},v.createElement(ym.Provider,{value:x},v.createElement(_C,{fieldId:u,errors:o,warnings:a,help:c,helpStatus:n,className:`${g}-explain-connected`,onVisibleChanged:d})),!!f&&v.createElement("div",{style:{width:0,height:f}})):null,w={};u&&(w.id=`${u}_extra`);const _=l?v.createElement("div",Object.assign({},w,{className:`${g}-extra`}),l):null,E=s&&s.mark==="pro_table_render"&&s.render?s.render(e,{input:h,errorList:S,extra:_}):v.createElement(v.Fragment,null,h,S,_);return v.createElement(Mi.Provider,{value:p},v.createElement(Zu,Object.assign({},y,{className:b}),E),v.createElement(tF,{prefixCls:t}))};var rF={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"},iF=function(t,n){return v.createElement(li,ft({},t,{ref:n,icon:rF}))},ga=v.forwardRef(iF),oF=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{let{prefixCls:t,label:n,htmlFor:r,labelCol:i,labelAlign:o,colon:a,required:s,requiredMark:l,tooltip:c,vertical:u}=e;var f;const[d]=eO("Form"),{labelAlign:g,labelCol:m,labelWrap:y,colon:b}=v.useContext(Mi);if(!n)return null;const p=i||m||{},h=o||g,x=`${t}-item-label`,S=Ce(x,h==="left"&&`${x}-left`,p.className,{[`${x}-wrap`]:!!y});let w=n;const _=a===!0||b!==!1&&a!==!1;_&&!u&&typeof n=="string"&&n.trim()&&(w=n.replace(/[:|:]\s*$/,""));const k=aF(c);if(k){const{icon:A=v.createElement(ga,null)}=k,D=oF(k,["icon"]),j=v.createElement(Li,Object.assign({},D),v.cloneElement(A,{className:`${t}-item-tooltip`,title:"",onClick:W=>{W.preventDefault()},tabIndex:null}));w=v.createElement(v.Fragment,null,w,j)}const P=l==="optional",O=typeof l=="function";O?w=l(w,{required:!!s}):P&&!s&&(w=v.createElement(v.Fragment,null,w,v.createElement("span",{className:`${t}-item-optional`,title:""},(d==null?void 0:d.optional)||((f=zo.Form)===null||f===void 0?void 0:f.optional))));const I=Ce({[`${t}-item-required`]:s,[`${t}-item-required-mark-optional`]:P||O,[`${t}-item-no-colon`]:!_});return v.createElement(Zu,Object.assign({},p,{className:S}),v.createElement("label",{htmlFor:r,className:I,title:typeof n=="string"?n:""},w))},lF={success:YP,warning:nT,error:JP,validating:uT};function PC(e){let{children:t,errors:n,warnings:r,hasFeedback:i,validateStatus:o,prefixCls:a,meta:s,noStyle:l}=e;const c=`${a}-item`,{feedbackIcons:u}=v.useContext(Mi),f=MC(n,r,s,null,!!i,o),{isFormItemInput:d,status:g,hasFeedback:m,feedbackIcon:y}=v.useContext(Bo),b=v.useMemo(()=>{var p;let h;if(i){const S=i!==!0&&i.icons||u,w=f&&((p=S==null?void 0:S({status:f,errors:n,warnings:r}))===null||p===void 0?void 0:p[f]),_=f&&lF[f];h=w!==!1&&_?v.createElement("span",{className:Ce(`${c}-feedback-icon`,`${c}-feedback-icon-${f}`)},w||v.createElement(_,null)):null}const x={status:f||"",errors:n,warnings:r,hasFeedback:!!i,feedbackIcon:h,isFormItemInput:!0};return l&&(x.status=(f??g)||"",x.isFormItemInput=d,x.hasFeedback=!!(i??m),x.feedbackIcon=i!==void 0?x.feedbackIcon:y),x},[f,i,l,d,g]);return v.createElement(Bo.Provider,{value:b},t)}var cF=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{if(I&&E.current){const F=getComputedStyle(E.current);j(parseInt(F.marginBottom,10))}},[I,A]);const W=F=>{F||j(null)},T=function(){let F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const z=F?k:c.errors,B=F?P:c.warnings;return MC(z,B,c,"",!!u,l)}(),$=Ce(x,n,r,{[`${x}-with-help`]:O||k.length||P.length,[`${x}-has-feedback`]:T&&u,[`${x}-has-success`]:T==="success",[`${x}-has-warning`]:T==="warning",[`${x}-has-error`]:T==="error",[`${x}-is-validating`]:T==="validating",[`${x}-hidden`]:f,[`${x}-${p}`]:p});return v.createElement("div",{className:$,style:i,ref:E},v.createElement(yC,Object.assign({className:`${x}-row`},kS(h,["_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"])),v.createElement(sF,Object.assign({htmlFor:g},e,{requiredMark:S,required:m??y,prefixCls:t,vertical:_})),v.createElement(nF,Object.assign({},e,c,{errors:k,warnings:P,prefixCls:t,status:T,help:o,marginBottom:D,onErrorVisibleChanged:W}),v.createElement(Kw.Provider,{value:b},v.createElement(PC,{prefixCls:t,meta:c,errors:c.errors,warnings:c.warnings,hasFeedback:u,validateStatus:T},d)))),!!D&&v.createElement("div",{className:`${x}-margin-offset`,style:{marginBottom:-D}}))}const fF="__SPLIT__";function dF(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(i=>{const o=e[i],a=t[i];return o===a||typeof o=="function"||typeof a=="function"})}const hF=v.memo(e=>{let{children:t}=e;return t},(e,t)=>dF(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function Fy(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function gF(e){const{name:t,noStyle:n,className:r,dependencies:i,prefixCls:o,shouldUpdate:a,rules:s,children:l,required:c,label:u,messageVariables:f,trigger:d="onChange",validateTrigger:g,hidden:m,help:y,layout:b}=e,{getPrefixCls:p}=v.useContext(Rn),{name:h}=v.useContext(Mi),x=QI(l),S=typeof x=="function",w=v.useContext(Kw),{validateTrigger:_}=v.useContext(Ho),E=g!==void 0?g:_,k=t!=null,P=p("form",o),O=Uf(P),[I,A,D]=Cm(P,O);fm();const j=v.useContext(Il),W=v.useRef(),[N,T]=ZI({}),[$,F]=Qa(()=>Fy()),z=G=>{const Q=j==null?void 0:j.getKey(G.name);if(F(G.destroy?Fy():G,!0),n&&y!==!1&&w){let Z=G.name;if(G.destroy)Z=W.current||Z;else if(Q!==void 0){const[ne,pe]=Q;Z=[ne].concat(se(pe)),W.current=Z}w(G,Z)}},B=(G,Q)=>{T(Z=>{const ne=Object.assign({},Z),de=[].concat(se(G.name.slice(0,-1)),se(Q)).join(fF);return G.destroy?delete ne[de]:ne[de]=G,ne})},[U,Y]=v.useMemo(()=>{const G=se($.errors),Q=se($.warnings);return Object.values(N).forEach(Z=>{G.push.apply(G,se(Z.errors||[])),Q.push.apply(Q,se(Z.warnings||[]))}),[G,Q]},[N,$.errors,$.warnings]),q=JI();function X(G,Q,Z){return n&&!m?v.createElement(PC,{prefixCls:P,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:$,errors:U,warnings:Y,noStyle:!0},G):v.createElement(uF,Object.assign({key:"row"},e,{className:Ce(r,D,O,A),prefixCls:P,fieldId:Q,isRequired:Z,errors:U,warnings:Y,meta:$,onSubItemMetaChange:B,layout:b}),G)}if(!k&&!S&&!i)return I(X(x));let te={};return typeof u=="string"?te.label=u:t&&(te.label=String(t)),f&&(te=Object.assign(Object.assign({},te),f)),I(v.createElement(mm,Object.assign({},e,{messageVariables:te,trigger:d,validateTrigger:E,onMetaChange:z}),(G,Q,Z)=>{const ne=Qs(t).length&&Q?Q.name:[],pe=EC(ne,h),de=c!==void 0?c:!!(s!=null&&s.some(he=>{if(he&&typeof he=="object"&&he.required&&!he.warningOnly)return!0;if(typeof he=="function"){const ve=he(Z);return(ve==null?void 0:ve.required)&&!(ve!=null&&ve.warningOnly)}return!1})),Se=Object.assign({},G);let me=null;if(Array.isArray(x)&&k)me=x;else if(!(S&&(!(a||i)||k))){if(!(i&&!S&&!k))if(v.isValidElement(x)){const he=Object.assign(Object.assign({},x.props),Se);if(he.id||(he.id=pe),y||U.length>0||Y.length>0||e.extra){const xe=[];(y||U.length>0)&&xe.push(`${pe}_help`),e.extra&&xe.push(`${pe}_extra`),he["aria-describedby"]=xe.join(" ")}U.length>0&&(he["aria-invalid"]="true"),de&&(he["aria-required"]="true"),Kl(x)&&(he.ref=q(ne,x)),new Set([].concat(se(Qs(d)),se(Qs(E)))).forEach(xe=>{he[xe]=function(){for(var ze,Me,ie,Fe,ae,Ke=arguments.length,Pe=new Array(Ke),Re=0;Re{var{prefixCls:t,children:n}=e,r=pF(e,["prefixCls","children"]);const{getPrefixCls:i}=v.useContext(Rn),o=i("form",t),a=v.useMemo(()=>({prefixCls:o,status:"error"}),[o]);return v.createElement(Uw,Object.assign({},r),(s,l,c)=>v.createElement(ym.Provider,{value:a},n(s.map(u=>Object.assign(Object.assign({},u),{fieldKey:u.key})),l,{errors:c.errors,warnings:c.warnings})))};function vF(){const{form:e}=v.useContext(Mi);return e}const zn=YI;zn.Item=TC;zn.List=mF;zn.ErrorList=_C;zn.useForm=kC;zn.useFormInstance=vF;zn.useWatch=Xw;zn.Provider=Yw;zn.create=()=>{};/*! - * @kurkle/color v0.3.2 - * https://github.com/kurkle/color#readme - * (c) 2023 Jukka Kurkela - * Released under the MIT License - */function Jl(e){return e+.5|0}const Wi=(e,t,n)=>Math.max(Math.min(e,n),t);function Rs(e){return Wi(Jl(e*2.55),0,255)}function Ji(e){return Wi(Jl(e*255),0,255)}function mi(e){return Wi(Jl(e/2.55)/100,0,1)}function Ny(e){return Wi(Jl(e*100),0,100)}const gr={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},zg=[..."0123456789ABCDEF"],yF=e=>zg[e&15],bF=e=>zg[(e&240)>>4]+zg[e&15],Fc=e=>(e&240)>>4===(e&15),xF=e=>Fc(e.r)&&Fc(e.g)&&Fc(e.b)&&Fc(e.a);function SF(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&gr[e[1]]*17,g:255&gr[e[2]]*17,b:255&gr[e[3]]*17,a:t===5?gr[e[4]]*17:255}:(t===7||t===9)&&(n={r:gr[e[1]]<<4|gr[e[2]],g:gr[e[3]]<<4|gr[e[4]],b:gr[e[5]]<<4|gr[e[6]],a:t===9?gr[e[7]]<<4|gr[e[8]]:255})),n}const wF=(e,t)=>e<255?t(e):"";function CF(e){var t=xF(e)?yF:bF;return e?"#"+t(e.r)+t(e.g)+t(e.b)+wF(e.a,t):void 0}const _F=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function $C(e,t,n){const r=t*Math.min(n,1-n),i=(o,a=(o+e/30)%12)=>n-r*Math.max(Math.min(a-3,9-a,1),-1);return[i(0),i(8),i(4)]}function EF(e,t,n){const r=(i,o=(i+e/60)%6)=>n-n*t*Math.max(Math.min(o,4-o,1),0);return[r(5),r(3),r(1)]}function MF(e,t,n){const r=$C(e,1,.5);let i;for(t+n>1&&(i=1/(t+n),t*=i,n*=i),i=0;i<3;i++)r[i]*=1-t-n,r[i]+=t;return r}function kF(e,t,n,r,i){return e===i?(t-n)/r+(t.5?u/(2-o-a):u/(o+a),l=kF(n,r,i,u,o),l=l*60+.5),[l|0,c||0,s]}function Em(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(Ji)}function Mm(e,t,n){return Em($C,e,t,n)}function OF(e,t,n){return Em(MF,e,t,n)}function PF(e,t,n){return Em(EF,e,t,n)}function RC(e){return(e%360+360)%360}function TF(e){const t=_F.exec(e);let n=255,r;if(!t)return;t[5]!==r&&(n=t[6]?Rs(+t[5]):Ji(+t[5]));const i=RC(+t[2]),o=+t[3]/100,a=+t[4]/100;return t[1]==="hwb"?r=OF(i,o,a):t[1]==="hsv"?r=PF(i,o,a):r=Mm(i,o,a),{r:r[0],g:r[1],b:r[2],a:n}}function $F(e,t){var n=_m(e);n[0]=RC(n[0]+t),n=Mm(n),e.r=n[0],e.g=n[1],e.b=n[2]}function RF(e){if(!e)return;const t=_m(e),n=t[0],r=Ny(t[1]),i=Ny(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${i}%, ${mi(e.a)})`:`hsl(${n}, ${r}%, ${i}%)`}const Ay={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},Ly={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function IF(){const e={},t=Object.keys(Ly),n=Object.keys(Ay);let r,i,o,a,s;for(r=0;r>16&255,o>>8&255,o&255]}return e}let Nc;function FF(e){Nc||(Nc=IF(),Nc.transparent=[0,0,0,0]);const t=Nc[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const NF=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function AF(e){const t=NF.exec(e);let n=255,r,i,o;if(t){if(t[7]!==r){const a=+t[7];n=t[8]?Rs(a):Wi(a*255,0,255)}return r=+t[1],i=+t[3],o=+t[5],r=255&(t[2]?Rs(r):Wi(r,0,255)),i=255&(t[4]?Rs(i):Wi(i,0,255)),o=255&(t[6]?Rs(o):Wi(o,0,255)),{r,g:i,b:o,a:n}}}function LF(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${mi(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const Wd=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,fa=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function DF(e,t,n){const r=fa(mi(e.r)),i=fa(mi(e.g)),o=fa(mi(e.b));return{r:Ji(Wd(r+n*(fa(mi(t.r))-r))),g:Ji(Wd(i+n*(fa(mi(t.g))-i))),b:Ji(Wd(o+n*(fa(mi(t.b))-o))),a:e.a+n*(t.a-e.a)}}function Ac(e,t,n){if(e){let r=_m(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,t===0?360:1)),r=Mm(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function IC(e,t){return e&&Object.assign(t||{},e)}function Dy(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=Ji(e[3]))):(t=IC(e,{r:0,g:0,b:0,a:1}),t.a=Ji(t.a)),t}function zF(e){return e.charAt(0)==="r"?AF(e):TF(e)}class Al{constructor(t){if(t instanceof Al)return t;const n=typeof t;let r;n==="object"?r=Dy(t):n==="string"&&(r=SF(t)||FF(t)||zF(t)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var t=IC(this._rgb);return t&&(t.a=mi(t.a)),t}set rgb(t){this._rgb=Dy(t)}rgbString(){return this._valid?LF(this._rgb):void 0}hexString(){return this._valid?CF(this._rgb):void 0}hslString(){return this._valid?RF(this._rgb):void 0}mix(t,n){if(t){const r=this.rgb,i=t.rgb;let o;const a=n===o?.5:n,s=2*a-1,l=r.a-i.a,c=((s*l===-1?s:(s+l)/(1+s*l))+1)/2;o=1-c,r.r=255&c*r.r+o*i.r+.5,r.g=255&c*r.g+o*i.g+.5,r.b=255&c*r.b+o*i.b+.5,r.a=a*r.a+(1-a)*i.a,this.rgb=r}return this}interpolate(t,n){return t&&(this._rgb=DF(this._rgb,t._rgb,n)),this}clone(){return new Al(this.rgb)}alpha(t){return this._rgb.a=Ji(t),this}clearer(t){const n=this._rgb;return n.a*=1-t,this}greyscale(){const t=this._rgb,n=Jl(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=n,this}opaquer(t){const n=this._rgb;return n.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return Ac(this._rgb,2,t),this}darken(t){return Ac(this._rgb,2,-t),this}saturate(t){return Ac(this._rgb,1,t),this}desaturate(t){return Ac(this._rgb,1,-t),this}rotate(t){return $F(this._rgb,t),this}}/*! - * Chart.js v4.4.4 - * https://www.chartjs.org - * (c) 2024 Chart.js Contributors - * Released under the MIT License - */function fi(){}const jF=(()=>{let e=0;return()=>e++})();function Ft(e){return e===null||typeof e>"u"}function rn(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function et(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function _r(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function Qr(e,t){return _r(e)?e:t}function je(e,t){return typeof e>"u"?t:e}const HF=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function Ie(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function He(e,t,n,r){let i,o,a;if(rn(e))for(o=e.length,i=0;ie,x:e=>e.x,y:e=>e.y};function WF(e){const t=e.split("."),n=[];let r="";for(const i of t)r+=i,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}function UF(e){const t=WF(e);return n=>{for(const r of t){if(r==="")break;n=n&&n[r]}return n}}function nf(e,t){return(zy[t]||(zy[t]=UF(t)))(e)}function km(e){return e.charAt(0).toUpperCase()+e.slice(1)}const rf=e=>typeof e<"u",no=e=>typeof e=="function",jy=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function qF(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const sn=Math.PI,si=2*sn,GF=si+sn,of=Number.POSITIVE_INFINITY,XF=sn/180,zr=sn/2,go=sn/4,Hy=sn*2/3,jg=Math.log10,ro=Math.sign;function Js(e,t,n){return Math.abs(e-t)i-o).pop(),t}function Dl(e){return!isNaN(parseFloat(e))&&isFinite(e)}function YF(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function QF(e,t,n){let r,i,o;for(r=0,i=e.length;rl&&c=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function Om(e,t,n){n=n||(a=>e[a]1;)o=i+r>>1,n(o)?i=o:r=o;return{lo:i,hi:r}}const Oo=(e,t,n,r)=>Om(e,n,r?i=>{const o=e[i][t];return oe[i][t]Om(e,n,r=>e[r][t]>=n);function rN(e,t,n){let r=0,i=e.length;for(;rr&&e[i-1]>n;)i--;return r>0||i{const r="_onData"+km(n),i=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...o){const a=i.apply(this,o);return e._chartjs.listeners.forEach(s=>{typeof s[r]=="function"&&s[r](...o)}),a}})})}function Wy(e,t){const n=e._chartjs;if(!n)return;const r=n.listeners,i=r.indexOf(t);i!==-1&&r.splice(i,1),!(r.length>0)&&(AC.forEach(o=>{delete e[o]}),delete e._chartjs)}function oN(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const LC=function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame}();function DC(e,t){let n=[],r=!1;return function(...i){n=i,r||(r=!0,LC.call(window,()=>{r=!1,e.apply(t,n)}))}}function aN(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}const Pm=e=>e==="start"?"left":e==="end"?"right":"center",Sn=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,sN=(e,t,n,r)=>e===(r?"left":"right")?n:e==="center"?(t+n)/2:t;function lN(e,t,n){const r=t.length;let i=0,o=r;if(e._sorted){const{iScale:a,_parsed:s}=e,l=a.axis,{min:c,max:u,minDefined:f,maxDefined:d}=a.getUserBounds();f&&(i=yr(Math.min(Oo(s,l,c).lo,n?r:Oo(t,l,a.getPixelForValue(c)).lo),0,r-1)),d?o=yr(Math.max(Oo(s,a.axis,u,!0).hi+1,n?0:Oo(t,l,a.getPixelForValue(u),!0).hi+1),i,r)-i:o=r-i}return{start:i,count:o}}function cN(e){const{xScale:t,yScale:n,_scaleRanges:r}=e,i={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!r)return e._scaleRanges=i,!0;const o=r.xmin!==t.min||r.xmax!==t.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,i),o}const Lc=e=>e===0||e===1,Uy=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*si/n)),qy=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*si/n)+1,el={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*zr)+1,easeOutSine:e=>Math.sin(e*zr),easeInOutSine:e=>-.5*(Math.cos(sn*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>Lc(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>Lc(e)?e:Uy(e,.075,.3),easeOutElastic:e=>Lc(e)?e:qy(e,.075,.3),easeInOutElastic(e){return Lc(e)?e:e<.5?.5*Uy(e*2,.1125,.45):.5+.5*qy(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-el.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?el.easeInBounce(e*2)*.5:el.easeOutBounce(e*2-1)*.5+.5};function Tm(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function Gy(e){return Tm(e)?e:new Al(e)}function Ud(e){return Tm(e)?e:new Al(e).saturate(.5).darken(.1).hexString()}const uN=["x","y","borderWidth","radius","tension"],fN=["color","borderColor","backgroundColor"];function dN(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:fN},numbers:{type:"number",properties:uN}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function hN(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const Xy=new Map;function gN(e,t){t=t||{};const n=e+JSON.stringify(t);let r=Xy.get(n);return r||(r=new Intl.NumberFormat(e,t),Xy.set(n,r)),r}function zC(e,t,n){return gN(t,n).format(e)}const jC={values(e){return rn(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";const r=this.chart.options.locale;let i,o=e;if(n.length>1){const c=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(c<1e-4||c>1e15)&&(i="scientific"),o=pN(e,n)}const a=jg(Math.abs(o)),s=isNaN(a)?1:Math.max(Math.min(-1*Math.floor(a),20),0),l={notation:i,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(l,this.options.ticks.format),zC(e,r,l)},logarithmic(e,t,n){if(e===0)return"0";const r=n[t].significand||e/Math.pow(10,Math.floor(jg(e)));return[1,2,3,5,10,15].includes(r)||t>.8*n.length?jC.numeric.call(this,e,t,n):""}};function pN(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var HC={formatters:jC};function mN(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,n)=>n.lineWidth,tickColor:(t,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:HC.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const Vo=Object.create(null),Bg=Object.create(null);function tl(e,t){if(!t)return e;const n=t.split(".");for(let r=0,i=n.length;rr.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(r,i)=>Ud(i.backgroundColor),this.hoverBorderColor=(r,i)=>Ud(i.borderColor),this.hoverColor=(r,i)=>Ud(i.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(n)}set(t,n){return qd(this,t,n)}get(t){return tl(this,t)}describe(t,n){return qd(Bg,t,n)}override(t,n){return qd(Vo,t,n)}route(t,n,r,i){const o=tl(this,t),a=tl(this,r),s="_"+n;Object.defineProperties(o,{[s]:{value:o[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[s],c=a[i];return et(l)?Object.assign({},c,l):je(l,c)},set(l){this[s]=l}}})}apply(t){t.forEach(n=>n(this))}}var jt=new vN({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[dN,hN,mN]);function yN(e){return!e||Ft(e.size)||Ft(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function Ky(e,t,n,r,i){let o=t[i];return o||(o=t[i]=e.measureText(i).width,n.push(i)),o>r&&(r=o),r}function po(e,t,n){const r=e.currentDevicePixelRatio,i=n!==0?Math.max(n/2,.5):0;return Math.round((t-i)*r)/r+i}function Yy(e,t){!t&&!e||(t=t||e.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function Vg(e,t,n,r){BC(e,t,n,r,null)}function BC(e,t,n,r,i){let o,a,s,l,c,u,f,d;const g=t.pointStyle,m=t.rotation,y=t.radius;let b=(m||0)*XF;if(g&&typeof g=="object"&&(o=g.toString(),o==="[object HTMLImageElement]"||o==="[object HTMLCanvasElement]")){e.save(),e.translate(n,r),e.rotate(b),e.drawImage(g,-g.width/2,-g.height/2,g.width,g.height),e.restore();return}if(!(isNaN(y)||y<=0)){switch(e.beginPath(),g){default:i?e.ellipse(n,r,i/2,y,0,0,si):e.arc(n,r,y,0,si),e.closePath();break;case"triangle":u=i?i/2:y,e.moveTo(n+Math.sin(b)*u,r-Math.cos(b)*y),b+=Hy,e.lineTo(n+Math.sin(b)*u,r-Math.cos(b)*y),b+=Hy,e.lineTo(n+Math.sin(b)*u,r-Math.cos(b)*y),e.closePath();break;case"rectRounded":c=y*.516,l=y-c,a=Math.cos(b+go)*l,f=Math.cos(b+go)*(i?i/2-c:l),s=Math.sin(b+go)*l,d=Math.sin(b+go)*(i?i/2-c:l),e.arc(n-f,r-s,c,b-sn,b-zr),e.arc(n+d,r-a,c,b-zr,b),e.arc(n+f,r+s,c,b,b+zr),e.arc(n-d,r+a,c,b+zr,b+sn),e.closePath();break;case"rect":if(!m){l=Math.SQRT1_2*y,u=i?i/2:l,e.rect(n-u,r-l,2*u,2*l);break}b+=go;case"rectRot":f=Math.cos(b)*(i?i/2:y),a=Math.cos(b)*y,s=Math.sin(b)*y,d=Math.sin(b)*(i?i/2:y),e.moveTo(n-f,r-s),e.lineTo(n+d,r-a),e.lineTo(n+f,r+s),e.lineTo(n-d,r+a),e.closePath();break;case"crossRot":b+=go;case"cross":f=Math.cos(b)*(i?i/2:y),a=Math.cos(b)*y,s=Math.sin(b)*y,d=Math.sin(b)*(i?i/2:y),e.moveTo(n-f,r-s),e.lineTo(n+f,r+s),e.moveTo(n+d,r-a),e.lineTo(n-d,r+a);break;case"star":f=Math.cos(b)*(i?i/2:y),a=Math.cos(b)*y,s=Math.sin(b)*y,d=Math.sin(b)*(i?i/2:y),e.moveTo(n-f,r-s),e.lineTo(n+f,r+s),e.moveTo(n+d,r-a),e.lineTo(n-d,r+a),b+=go,f=Math.cos(b)*(i?i/2:y),a=Math.cos(b)*y,s=Math.sin(b)*y,d=Math.sin(b)*(i?i/2:y),e.moveTo(n-f,r-s),e.lineTo(n+f,r+s),e.moveTo(n+d,r-a),e.lineTo(n-d,r+a);break;case"line":a=i?i/2:Math.cos(b)*y,s=Math.sin(b)*y,e.moveTo(n-a,r-s),e.lineTo(n+a,r+s);break;case"dash":e.moveTo(n,r),e.lineTo(n+Math.cos(b)*(i?i/2:y),r+Math.sin(b)*y);break;case!1:e.closePath();break}e.fill(),t.borderWidth>0&&e.stroke()}}function zl(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.xt.top-n&&e.y0&&o.strokeColor!=="";let l,c;for(e.save(),e.font=i.string,SN(e,o),l=0;l+e||0;function VC(e,t){const n={},r=et(t),i=r?Object.keys(t):t,o=et(e)?r?a=>je(e[a],e[t[a]]):a=>e[a]:()=>e;for(const a of i)n[a]=kN(o(a));return n}function ON(e){return VC(e,{top:"y",right:"x",bottom:"y",left:"x"})}function nl(e){return VC(e,["topLeft","topRight","bottomLeft","bottomRight"])}function Er(e){const t=ON(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function _n(e,t){e=e||{},t=t||jt.font;let n=je(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let r=je(e.style,t.style);r&&!(""+r).match(EN)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const i={family:je(e.family,t.family),lineHeight:MN(je(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:je(e.weight,t.weight),string:""};return i.string=yN(i),i}function Dc(e,t,n,r){let i,o,a;for(i=0,o=e.length;in&&s===0?0:s+l;return{min:a(r,-Math.abs(o)),max:a(i,o)}}function Qo(e,t){return Object.assign(Object.create(e),t)}function Im(e,t=[""],n,r,i=()=>e[0]){const o=n||e;typeof r>"u"&&(r=GC("_fallback",e));const a={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:o,_fallback:r,_getTarget:i,override:s=>Im([s,...e],t,o,r)};return new Proxy(a,{deleteProperty(s,l){return delete s[l],delete s._keys,delete e[0][l],!0},get(s,l){return UC(s,l,()=>LN(l,t,e,s))},getOwnPropertyDescriptor(s,l){return Reflect.getOwnPropertyDescriptor(s._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(s,l){return Zy(s).includes(l)},ownKeys(s){return Zy(s)},set(s,l,c){const u=s._storage||(s._storage=i());return s[l]=u[l]=c,delete s._keys,!0}})}function Za(e,t,n,r){const i={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:WC(e,r),setContext:o=>Za(e,o,n,r),override:o=>Za(e.override(o),t,n,r)};return new Proxy(i,{deleteProperty(o,a){return delete o[a],delete e[a],!0},get(o,a,s){return UC(o,a,()=>$N(o,a,s))},getOwnPropertyDescriptor(o,a){return o._descriptors.allKeys?Reflect.has(e,a)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,a)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(o,a){return Reflect.has(e,a)},ownKeys(){return Reflect.ownKeys(e)},set(o,a,s){return e[a]=s,delete o[a],!0}})}function WC(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:i=t.allKeys}=e;return{allKeys:i,scriptable:n,indexable:r,isScriptable:no(n)?n:()=>n,isIndexable:no(r)?r:()=>r}}const TN=(e,t)=>e?e+km(t):t,Fm=(e,t)=>et(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function UC(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t)||t==="constructor")return e[t];const r=n();return e[t]=r,r}function $N(e,t,n){const{_proxy:r,_context:i,_subProxy:o,_descriptors:a}=e;let s=r[t];return no(s)&&a.isScriptable(t)&&(s=RN(t,s,e,n)),rn(s)&&s.length&&(s=IN(t,s,e,a.isIndexable)),Fm(t,s)&&(s=Za(s,i,o&&o[t],a)),s}function RN(e,t,n,r){const{_proxy:i,_context:o,_subProxy:a,_stack:s}=n;if(s.has(e))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+e);s.add(e);let l=t(o,a||r);return s.delete(e),Fm(e,l)&&(l=Nm(i._scopes,i,e,l)),l}function IN(e,t,n,r){const{_proxy:i,_context:o,_subProxy:a,_descriptors:s}=n;if(typeof o.index<"u"&&r(e))return t[o.index%t.length];if(et(t[0])){const l=t,c=i._scopes.filter(u=>u!==l);t=[];for(const u of l){const f=Nm(c,i,e,u);t.push(Za(f,o,a&&a[e],s))}}return t}function qC(e,t,n){return no(e)?e(t,n):e}const FN=(e,t)=>e===!0?t:typeof e=="string"?nf(t,e):void 0;function NN(e,t,n,r,i){for(const o of t){const a=FN(n,o);if(a){e.add(a);const s=qC(a._fallback,n,i);if(typeof s<"u"&&s!==n&&s!==r)return s}else if(a===!1&&typeof r<"u"&&n!==r)return null}return!1}function Nm(e,t,n,r){const i=t._rootScopes,o=qC(t._fallback,n,r),a=[...e,...i],s=new Set;s.add(r);let l=Qy(s,a,n,o||n,r);return l===null||typeof o<"u"&&o!==n&&(l=Qy(s,a,o,l,r),l===null)?!1:Im(Array.from(s),[""],i,o,()=>AN(t,n,r))}function Qy(e,t,n,r,i){for(;n;)n=NN(e,t,n,r,i);return n}function AN(e,t,n){const r=e._getTarget();t in r||(r[t]={});const i=r[t];return rn(i)&&et(n)?n:i||{}}function LN(e,t,n,r){let i;for(const o of t)if(i=GC(TN(o,e),n),typeof i<"u")return Fm(e,i)?Nm(n,r,e,i):i}function GC(e,t){for(const n of t){if(!n)continue;const r=n[e];if(typeof r<"u")return r}}function Zy(e){let t=e._keys;return t||(t=e._keys=DN(e._scopes)),t}function DN(e){const t=new Set;for(const n of e)for(const r of Object.keys(n).filter(i=>!i.startsWith("_")))t.add(r);return Array.from(t)}const zN=Number.EPSILON||1e-14,Ja=(e,t)=>te==="x"?"y":"x";function jN(e,t,n,r){const i=e.skip?t:e,o=t,a=n.skip?t:n,s=Hg(o,i),l=Hg(a,o);let c=s/(s+l),u=l/(s+l);c=isNaN(c)?0:c,u=isNaN(u)?0:u;const f=r*c,d=r*u;return{previous:{x:o.x-f*(a.x-i.x),y:o.y-f*(a.y-i.y)},next:{x:o.x+d*(a.x-i.x),y:o.y+d*(a.y-i.y)}}}function HN(e,t,n){const r=e.length;let i,o,a,s,l,c=Ja(e,0);for(let u=0;u!c.skip)),t.cubicInterpolationMode==="monotone")VN(e,i);else{let c=r?e[e.length-1]:e[0];for(o=0,a=e.length;oe.ownerDocument.defaultView.getComputedStyle(e,null);function qN(e,t){return Xf(e).getPropertyValue(t)}const GN=["top","right","bottom","left"];function Io(e,t,n){const r={};n=n?"-"+n:"";for(let i=0;i<4;i++){const o=GN[i];r[o]=parseFloat(e[t+"-"+o+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const XN=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function KN(e,t){const n=e.touches,r=n&&n.length?n[0]:e,{offsetX:i,offsetY:o}=r;let a=!1,s,l;if(XN(i,o,e.target))s=i,l=o;else{const c=t.getBoundingClientRect();s=r.clientX-c.left,l=r.clientY-c.top,a=!0}return{x:s,y:l,box:a}}function ni(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:r}=t,i=Xf(n),o=i.boxSizing==="border-box",a=Io(i,"padding"),s=Io(i,"border","width"),{x:l,y:c,box:u}=KN(e,n),f=a.left+(u&&s.left),d=a.top+(u&&s.top);let{width:g,height:m}=t;return o&&(g-=a.width+s.width,m-=a.height+s.height),{x:Math.round((l-f)/g*n.width/r),y:Math.round((c-d)/m*n.height/r)}}function YN(e,t,n){let r,i;if(t===void 0||n===void 0){const o=e&&Lm(e);if(!o)t=e.clientWidth,n=e.clientHeight;else{const a=o.getBoundingClientRect(),s=Xf(o),l=Io(s,"border","width"),c=Io(s,"padding");t=a.width-c.width-l.width,n=a.height-c.height-l.height,r=af(s.maxWidth,o,"clientWidth"),i=af(s.maxHeight,o,"clientHeight")}}return{width:t,height:n,maxWidth:r||of,maxHeight:i||of}}const jc=e=>Math.round(e*10)/10;function QN(e,t,n,r){const i=Xf(e),o=Io(i,"margin"),a=af(i.maxWidth,e,"clientWidth")||of,s=af(i.maxHeight,e,"clientHeight")||of,l=YN(e,t,n);let{width:c,height:u}=l;if(i.boxSizing==="content-box"){const d=Io(i,"border","width"),g=Io(i,"padding");c-=g.width+d.width,u-=g.height+d.height}return c=Math.max(0,c-o.width),u=Math.max(0,r?c/r:u-o.height),c=jc(Math.min(c,a,l.maxWidth)),u=jc(Math.min(u,s,l.maxHeight)),c&&!u&&(u=jc(c/2)),(t!==void 0||n!==void 0)&&r&&l.height&&u>l.height&&(u=l.height,c=jc(Math.floor(u*r))),{width:c,height:u}}function Jy(e,t,n){const r=t||1,i=Math.floor(e.height*r),o=Math.floor(e.width*r);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const a=e.canvas;return a.style&&(n||!a.style.height&&!a.style.width)&&(a.style.height=`${e.height}px`,a.style.width=`${e.width}px`),e.currentDevicePixelRatio!==r||a.height!==i||a.width!==o?(e.currentDevicePixelRatio=r,a.height=i,a.width=o,e.ctx.setTransform(r,0,0,r,0,0),!0):!1}const ZN=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};Am()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch{}return e}();function eb(e,t){const n=qN(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function bo(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function JN(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:r==="middle"?n<.5?e.y:t.y:r==="after"?n<1?e.y:t.y:n>0?t.y:e.y}}function eA(e,t,n,r){const i={x:e.cp2x,y:e.cp2y},o={x:t.cp1x,y:t.cp1y},a=bo(e,i,n),s=bo(i,o,n),l=bo(o,t,n),c=bo(a,s,n),u=bo(s,l,n);return bo(c,u,n)}const tA=function(e,t){return{x(n){return e+e+t-n},setWidth(n){t=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,r){return n-r},leftForLtr(n,r){return n-r}}},nA=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function Da(e,t,n){return e?tA(t,n):nA()}function KC(e,t){let n,r;(t==="ltr"||t==="rtl")&&(n=e.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function YC(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function QC(e){return e==="angle"?{between:NC,compare:eN,normalize:Ri}:{between:Is,compare:(t,n)=>t-n,normalize:t=>t}}function tb({start:e,end:t,count:n,loop:r,style:i}){return{start:e%n,end:t%n,loop:r&&(t-e+1)%n===0,style:i}}function rA(e,t,n){const{property:r,start:i,end:o}=n,{between:a,normalize:s}=QC(r),l=t.length;let{start:c,end:u,loop:f}=e,d,g;if(f){for(c+=l,u+=l,d=0,g=l;dl(i,x,p)&&s(i,x)!==0,w=()=>s(o,p)===0||l(o,x,p),_=()=>y||S(),E=()=>!y||w();for(let k=u,P=u;k<=f;++k)h=t[k%a],!h.skip&&(p=c(h[r]),p!==x&&(y=l(p,i,o),b===null&&_()&&(b=s(p,i)===0?k:P),b!==null&&E()&&(m.push(tb({start:b,end:k,loop:d,count:a,style:g})),b=null),P=k,x=p));return b!==null&&m.push(tb({start:b,end:f,loop:d,count:a,style:g})),m}function oA(e,t){const n=[],r=e.segments;for(let i=0;ii&&e[o%t].skip;)o--;return o%=t,{start:i,end:o}}function sA(e,t,n,r){const i=e.length,o=[];let a=t,s=e[t],l;for(l=t+1;l<=n;++l){const c=e[l%i];c.skip||c.stop?s.skip||(r=!1,o.push({start:t%i,end:(l-1)%i,loop:r}),t=a=c.stop?l:null):(a=l,s.skip&&(t=l)),s=c}return a!==null&&o.push({start:t%i,end:a%i,loop:r}),o}function lA(e,t){const n=e.points,r=e.options.spanGaps,i=n.length;if(!i)return[];const o=!!e._loop,{start:a,end:s}=aA(n,i,o,r);if(r===!0)return nb(e,[{start:a,end:s,loop:o}],n,t);const l=ss({chart:t,initial:n.initial,numSteps:a,currentStep:Math.min(r-n.start,a)}))}_refresh(){this._request||(this._running=!0,this._request=LC.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((r,i)=>{if(!r.running||!r.items.length)return;const o=r.items;let a=o.length-1,s=!1,l;for(;a>=0;--a)l=o[a],l._active?(l._total>r.duration&&(r.duration=l._total),l.tick(t),s=!0):(o[a]=o[o.length-1],o.pop());s&&(i.draw(),this._notify(i,r,t,"progress")),o.length||(r.running=!1,this._notify(i,r,t,"complete"),r.initial=!1),n+=o.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){const n=this._charts;let r=n.get(t);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,r)),r}listen(t,n,r){this._getAnims(t).listeners[n].push(r)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){const n=this._charts.get(t);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((r,i)=>Math.max(r,i._duration),0),this._refresh())}running(t){if(!this._running)return!1;const n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){const n=this._charts.get(t);if(!n||!n.items.length)return;const r=n.items;let i=r.length-1;for(;i>=0;--i)r[i].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var di=new fA;const ib="transparent",dA={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const r=Gy(e||ib),i=r.valid&&Gy(t||ib);return i&&i.valid?i.mix(r,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class hA{constructor(t,n,r,i){const o=n[r];i=Dc([t.to,i,o,t.from]);const a=Dc([t.from,o,i]);this._active=!0,this._fn=t.fn||dA[t.type||typeof a],this._easing=el[t.easing]||el.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=r,this._from=a,this._to=i,this._promises=void 0}active(){return this._active}update(t,n,r){if(this._active){this._notify(!1);const i=this._target[this._prop],o=r-this._start,a=this._duration-o;this._start=r,this._duration=Math.floor(Math.max(a,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=Dc([t.to,n,i,t.from]),this._from=Dc([t.from,i,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,r=this._duration,i=this._prop,o=this._from,a=this._loop,s=this._to;let l;if(this._active=o!==s&&(a||n1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[i]=this._fn(o,s,l)}wait(){const t=this._promises||(this._promises=[]);return new Promise((n,r)=>{t.push({res:n,rej:r})})}_notify(t){const n=t?"res":"rej",r=this._promises||[];for(let i=0;i{const o=t[i];if(!et(o))return;const a={};for(const s of n)a[s]=o[s];(rn(o.properties)&&o.properties||[i]).forEach(s=>{(s===i||!r.has(s))&&r.set(s,a)})})}_animateOptions(t,n){const r=n.options,i=pA(t,r);if(!i)return[];const o=this._createAnimations(i,r);return r.$shared&&gA(t.options.$animations,r).then(()=>{t.options=r},()=>{}),o}_createAnimations(t,n){const r=this._properties,i=[],o=t.$animations||(t.$animations={}),a=Object.keys(n),s=Date.now();let l;for(l=a.length-1;l>=0;--l){const c=a[l];if(c.charAt(0)==="$")continue;if(c==="options"){i.push(...this._animateOptions(t,n));continue}const u=n[c];let f=o[c];const d=r.get(c);if(f)if(d&&f.active()){f.update(d,u,s);continue}else f.cancel();if(!d||!d.duration){t[c]=u;continue}o[c]=f=new hA(d,t,c,u),i.push(f)}return i}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}const r=this._createAnimations(t,n);if(r.length)return di.add(this._chart,r),!0}}function gA(e,t){const n=[],r=Object.keys(t);for(let i=0;i0||!n&&o<0)return i.index}return null}function cb(e,t){const{chart:n,_cachedMeta:r}=e,i=n._stacks||(n._stacks={}),{iScale:o,vScale:a,index:s}=r,l=o.axis,c=a.axis,u=bA(o,a,r),f=t.length;let d;for(let g=0;gn[r].axis===t).shift()}function wA(e,t){return Qo(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function CA(e,t,n){return Qo(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function ws(e,t){const n=e.controller.index,r=e.vScale&&e.vScale.axis;if(r){t=t||e._parsed;for(const i of t){const o=i._stacks;if(!o||o[r]===void 0||o[r][n]===void 0)return;delete o[r][n],o[r]._visualValues!==void 0&&o[r]._visualValues[n]!==void 0&&delete o[r]._visualValues[n]}}}const Xd=e=>e==="reset"||e==="none",ub=(e,t)=>t?e:Object.assign({},e),_A=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:JC(n,!0),values:null};class rl{constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=sb(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&ws(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,r=this.getDataset(),i=(f,d,g,m)=>f==="x"?d:f==="r"?m:g,o=n.xAxisID=je(r.xAxisID,Gd(t,"x")),a=n.yAxisID=je(r.yAxisID,Gd(t,"y")),s=n.rAxisID=je(r.rAxisID,Gd(t,"r")),l=n.indexAxis,c=n.iAxisID=i(l,o,a,s),u=n.vAxisID=i(l,a,o,s);n.xScale=this.getScaleForId(o),n.yScale=this.getScaleForId(a),n.rScale=this.getScaleForId(s),n.iScale=this.getScaleForId(c),n.vScale=this.getScaleForId(u)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&Wy(this._data,this),t._stacked&&ws(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),r=this._data;if(et(n)){const i=this._cachedMeta;this._data=yA(n,i)}else if(r!==n){if(r){Wy(r,this);const i=this._cachedMeta;ws(i),i._parsed=[]}n&&Object.isExtensible(n)&&iN(n,this),this._syncList=[],this._data=n}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const n=this._cachedMeta,r=this.getDataset();let i=!1;this._dataCheck();const o=n._stacked;n._stacked=sb(n.vScale,n),n.stack!==r.stack&&(i=!0,ws(n),n.stack=r.stack),this._resyncElements(t),(i||o!==n._stacked)&&cb(this,n._parsed)}configure(){const t=this.chart.config,n=t.datasetScopeKeys(this._type),r=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){const{_cachedMeta:r,_data:i}=this,{iScale:o,_stacked:a}=r,s=o.axis;let l=t===0&&n===i.length?!0:r._sorted,c=t>0&&r._parsed[t-1],u,f,d;if(this._parsing===!1)r._parsed=i,r._sorted=!0,d=i;else{rn(i[t])?d=this.parseArrayData(r,i,t,n):et(i[t])?d=this.parseObjectData(r,i,t,n):d=this.parsePrimitiveData(r,i,t,n);const g=()=>f[s]===null||c&&f[s]y||f=0;--d)if(!m()){this.updateRangeFromParsed(c,t,g,l);break}}return c}getAllParsedValues(t){const n=this._cachedMeta._parsed,r=[];let i,o,a;for(i=0,o=n.length;i=0&&tthis.getContext(r,i,n),y=c.resolveNamedOptions(d,g,m,f);return y.$shared&&(y.$shared=l,o[a]=Object.freeze(ub(y,l))),y}_resolveAnimations(t,n,r){const i=this.chart,o=this._cachedDataOpts,a=`animation-${n}`,s=o[a];if(s)return s;let l;if(i.options.animation!==!1){const u=this.chart.config,f=u.datasetAnimationScopeKeys(this._type,n),d=u.getOptionScopes(this.getDataset(),f);l=u.createResolver(d,this.getContext(t,r,n))}const c=new ZC(i,l&&l.animations);return l&&l._cacheable&&(o[a]=Object.freeze(c)),c}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||Xd(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const r=this.resolveDataElementOptions(t,n),i=this._sharedOptions,o=this.getSharedOptions(r),a=this.includeOptions(n,o)||o!==i;return this.updateSharedOptions(o,n,r),{sharedOptions:o,includeOptions:a}}updateElement(t,n,r,i){Xd(i)?Object.assign(t,r):this._resolveAnimations(n,i).update(t,r)}updateSharedOptions(t,n,r){t&&!Xd(n)&&this._resolveAnimations(void 0,n).update(t,r)}_setStyle(t,n,r,i){t.active=i;const o=this.getStyle(n,i);this._resolveAnimations(n,r,i).update(t,{options:!i&&this.getSharedOptions(o)||o})}removeHoverStyle(t,n,r){this._setStyle(t,r,"active",!1)}setHoverStyle(t,n,r){this._setStyle(t,r,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const n=this._data,r=this._cachedMeta.data;for(const[s,l,c]of this._syncList)this[s](l,c);this._syncList=[];const i=r.length,o=n.length,a=Math.min(o,i);a&&this.parse(0,a),o>i?this._insertElements(i,o-i,t):o{for(c.length+=n,s=c.length-1;s>=a;s--)c[s]=c[s-n]};for(l(o),s=t;s0&&this.getParsed(n-1);for(let w=0;w=h){E.skip=!0;continue}const k=this.getParsed(w),P=Ft(k[g]),O=E[d]=a.getPixelForValue(k[d],w),I=E[g]=o||P?s.getBasePixel():s.getPixelForValue(l?this.applyStack(s,k,l):k[g],w);E.skip=isNaN(O)||isNaN(I)||P,E.stop=w>0&&Math.abs(k[d]-S[d])>b,y&&(E.parsed=k,E.raw=c.data[w]),f&&(E.options=u||this.resolveDataElementOptions(w,_.active?"active":i)),p||this.updateElement(_,w,E,i),S=k}}getMaxOverflow(){const t=this._cachedMeta,n=t.dataset,r=n.options&&n.options.borderWidth||0,i=t.data||[];if(!i.length)return r;const o=i[0].size(this.resolveDataElementOptions(0)),a=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(r,o,a)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}Le(mu,"id","line"),Le(mu,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),Le(mu,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});function mo(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class Dm{constructor(t){Le(this,"options");this.options=t||{}}static override(t){Object.assign(Dm.prototype,t)}init(){}formats(){return mo()}parse(){return mo()}format(){return mo()}add(){return mo()}diff(){return mo()}startOf(){return mo()}endOf(){return mo()}}var EA={_date:Dm};function MA(e,t,n,r){const{controller:i,data:o,_sorted:a}=e,s=i._cachedMeta.iScale;if(s&&t===s.axis&&t!=="r"&&a&&o.length){const l=s._reversePixels?nN:Oo;if(r){if(i._sharedOptions){const c=o[0],u=typeof c.getRange=="function"&&c.getRange(t);if(u){const f=l(o,t,n-u),d=l(o,t,n+u);return{lo:f.lo,hi:d.hi}}}}else return l(o,t,n)}return{lo:0,hi:o.length-1}}function ec(e,t,n,r,i){const o=e.getSortedVisibleDatasetMetas(),a=n[t];for(let s=0,l=o.length;s{l[a]&&l[a](t[n],i)&&(o.push({element:l,datasetIndex:c,index:u}),s=s||l.inRange(t.x,t.y,i))}),r&&!s?[]:o}var TA={evaluateInteractionItems:ec,modes:{index(e,t,n,r){const i=ni(t,e),o=n.axis||"x",a=n.includeInvisible||!1,s=n.intersect?Kd(e,i,o,r,a):Yd(e,i,o,!1,r,a),l=[];return s.length?(e.getSortedVisibleDatasetMetas().forEach(c=>{const u=s[0].index,f=c.data[u];f&&!f.skip&&l.push({element:f,datasetIndex:c.index,index:u})}),l):[]},dataset(e,t,n,r){const i=ni(t,e),o=n.axis||"xy",a=n.includeInvisible||!1;let s=n.intersect?Kd(e,i,o,r,a):Yd(e,i,o,!1,r,a);if(s.length>0){const l=s[0].datasetIndex,c=e.getDatasetMeta(l).data;s=[];for(let u=0;un.pos===t)}function db(e,t){return e.filter(n=>e_.indexOf(n.pos)===-1&&n.box.axis===t)}function _s(e,t){return e.sort((n,r)=>{const i=t?r:n,o=t?n:r;return i.weight===o.weight?i.index-o.index:i.weight-o.weight})}function $A(e){const t=[];let n,r,i,o,a,s;for(n=0,r=(e||[]).length;nc.box.fullSize),!0),r=_s(Cs(t,"left"),!0),i=_s(Cs(t,"right")),o=_s(Cs(t,"top"),!0),a=_s(Cs(t,"bottom")),s=db(t,"x"),l=db(t,"y");return{fullSize:n,leftAndTop:r.concat(o),rightAndBottom:i.concat(l).concat(a).concat(s),chartArea:Cs(t,"chartArea"),vertical:r.concat(i).concat(l),horizontal:o.concat(a).concat(s)}}function hb(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function t_(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function NA(e,t,n,r){const{pos:i,box:o}=n,a=e.maxPadding;if(!et(i)){n.size&&(e[i]-=n.size);const f=r[n.stack]||{size:0,count:1};f.size=Math.max(f.size,n.horizontal?o.height:o.width),n.size=f.size/f.count,e[i]+=n.size}o.getPadding&&t_(a,o.getPadding());const s=Math.max(0,t.outerWidth-hb(a,e,"left","right")),l=Math.max(0,t.outerHeight-hb(a,e,"top","bottom")),c=s!==e.w,u=l!==e.h;return e.w=s,e.h=l,n.horizontal?{same:c,other:u}:{same:u,other:c}}function AA(e){const t=e.maxPadding;function n(r){const i=Math.max(t[r]-e[r],0);return e[r]+=i,i}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function LA(e,t){const n=t.maxPadding;function r(i){const o={left:0,top:0,right:0,bottom:0};return i.forEach(a=>{o[a]=Math.max(t[a],n[a])}),o}return r(e?["left","right"]:["top","bottom"])}function Fs(e,t,n,r){const i=[];let o,a,s,l,c,u;for(o=0,a=e.length,c=0;o{typeof y.beforeLayout=="function"&&y.beforeLayout()});const u=l.reduce((y,b)=>b.box.options&&b.box.options.display===!1?y:y+1,0)||1,f=Object.freeze({outerWidth:t,outerHeight:n,padding:i,availableWidth:o,availableHeight:a,vBoxMaxWidth:o/2/u,hBoxMaxHeight:a/2}),d=Object.assign({},i);t_(d,Er(r));const g=Object.assign({maxPadding:d,w:o,h:a,x:i.left,y:i.top},i),m=IA(l.concat(c),f);Fs(s.fullSize,g,f,m),Fs(l,g,f,m),Fs(c,g,f,m)&&Fs(l,g,f,m),AA(g),gb(s.leftAndTop,g,f,m),g.x+=g.w,g.y+=g.h,gb(s.rightAndBottom,g,f,m),e.chartArea={left:g.left,top:g.top,right:g.left+g.w,bottom:g.top+g.h,height:g.h,width:g.w},He(s.chartArea,y=>{const b=y.box;Object.assign(b,e.chartArea),b.update(g.w,g.h,{left:0,top:0,right:0,bottom:0})})}};class n_{acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,r){}removeEventListener(t,n,r){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,r,i){return n=Math.max(0,n||t.width),r=r||t.height,{width:n,height:Math.max(0,i?Math.floor(n/i):r)}}isAttached(t){return!0}updateConfig(t){}}class DA extends n_{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const vu="$chartjs",zA={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},pb=e=>e===null||e==="";function jA(e,t){const n=e.style,r=e.getAttribute("height"),i=e.getAttribute("width");if(e[vu]={initial:{height:r,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",pb(i)){const o=eb(e,"width");o!==void 0&&(e.width=o)}if(pb(r))if(e.style.height==="")e.height=e.width/(t||2);else{const o=eb(e,"height");o!==void 0&&(e.height=o)}return e}const r_=ZN?{passive:!0}:!1;function HA(e,t,n){e&&e.addEventListener(t,n,r_)}function BA(e,t,n){e&&e.canvas&&e.canvas.removeEventListener(t,n,r_)}function VA(e,t){const n=zA[e.type]||e.type,{x:r,y:i}=ni(e,t);return{type:n,chart:t,native:e,x:r!==void 0?r:null,y:i!==void 0?i:null}}function sf(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function WA(e,t,n){const r=e.canvas,i=new MutationObserver(o=>{let a=!1;for(const s of o)a=a||sf(s.addedNodes,r),a=a&&!sf(s.removedNodes,r);a&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function UA(e,t,n){const r=e.canvas,i=new MutationObserver(o=>{let a=!1;for(const s of o)a=a||sf(s.removedNodes,r),a=a&&!sf(s.addedNodes,r);a&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}const Hl=new Map;let mb=0;function i_(){const e=window.devicePixelRatio;e!==mb&&(mb=e,Hl.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function qA(e,t){Hl.size||window.addEventListener("resize",i_),Hl.set(e,t)}function GA(e){Hl.delete(e),Hl.size||window.removeEventListener("resize",i_)}function XA(e,t,n){const r=e.canvas,i=r&&Lm(r);if(!i)return;const o=DC((s,l)=>{const c=i.clientWidth;n(s,l),c{const l=s[0],c=l.contentRect.width,u=l.contentRect.height;c===0&&u===0||o(c,u)});return a.observe(i),qA(e,o),a}function Qd(e,t,n){n&&n.disconnect(),t==="resize"&&GA(e)}function KA(e,t,n){const r=e.canvas,i=DC(o=>{e.ctx!==null&&n(VA(o,e))},e);return HA(r,t,i),i}class YA extends n_{acquireContext(t,n){const r=t&&t.getContext&&t.getContext("2d");return r&&r.canvas===t?(jA(t,n),r):null}releaseContext(t){const n=t.canvas;if(!n[vu])return!1;const r=n[vu].initial;["height","width"].forEach(o=>{const a=r[o];Ft(a)?n.removeAttribute(o):n.setAttribute(o,a)});const i=r.style||{};return Object.keys(i).forEach(o=>{n.style[o]=i[o]}),n.width=n.width,delete n[vu],!0}addEventListener(t,n,r){this.removeEventListener(t,n);const i=t.$proxies||(t.$proxies={}),a={attach:WA,detach:UA,resize:XA}[n]||KA;i[n]=a(t,n,r)}removeEventListener(t,n){const r=t.$proxies||(t.$proxies={}),i=r[n];if(!i)return;({attach:Qd,detach:Qd,resize:Qd}[n]||BA)(t,n,i),r[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,r,i){return QN(t,n,r,i)}isAttached(t){const n=t&&Lm(t);return!!(n&&n.isConnected)}}function QA(e){return!Am()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?DA:YA}var Kc;let Zo=(Kc=class{constructor(){Le(this,"x");Le(this,"y");Le(this,"active",!1);Le(this,"options");Le(this,"$animations")}tooltipPosition(t){const{x:n,y:r}=this.getProps(["x","y"],t);return{x:n,y:r}}hasValue(){return Dl(this.x)&&Dl(this.y)}getProps(t,n){const r=this.$animations;if(!n||!r)return this;const i={};return t.forEach(o=>{i[o]=r[o]&&r[o].active()?r[o]._to:this[o]}),i}},Le(Kc,"defaults",{}),Le(Kc,"defaultRoutes"),Kc);function ZA(e,t){const n=e.options.ticks,r=JA(e),i=Math.min(n.maxTicksLimit||r,r),o=n.major.enabled?tL(t):[],a=o.length,s=o[0],l=o[a-1],c=[];if(a>i)return nL(t,c,o,a/i),c;const u=eL(o,t,i);if(a>0){let f,d;const g=a>1?Math.round((l-s)/(a-1)):null;for(Bc(t,c,u,Ft(g)?0:s-g,s),f=0,d=a-1;fi)return l}return Math.max(i,1)}function tL(e){const t=[];let n,r;for(n=0,r=e.length;ne==="left"?"right":e==="right"?"left":e,vb=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n,yb=(e,t)=>Math.min(t||e,e);function bb(e,t){const n=[],r=e.length/t,i=e.length;let o=0;for(;oa+s)))return l}function aL(e,t){He(e,n=>{const r=n.gc,i=r.length/2;let o;if(i>t){for(o=0;or?r:n,r=i&&n>r?n:r,{min:Qr(n,Qr(r,n)),max:Qr(r,Qr(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Ie(this.options.beforeUpdate,[this])}update(t,n,r){const{beginAtZero:i,grace:o,ticks:a}=this.options,s=a.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=PN(this,o,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=s=o||r<=1||!this.isHorizontal()){this.labelRotation=i;return}const u=this._getLabelSizes(),f=u.widest.width,d=u.highest.height,g=yr(this.chart.width-f,0,this.maxWidth);s=t.offset?this.maxWidth/r:g/(r-1),f+6>s&&(s=g/(r-(t.offset?.5:1)),l=this.maxHeight-Es(t.grid)-n.padding-xb(t.title,this.chart.options.font),c=Math.sqrt(f*f+d*d),a=ZF(Math.min(Math.asin(yr((u.highest.height+6)/s,-1,1)),Math.asin(yr(l/c,-1,1))-Math.asin(yr(d/c,-1,1)))),a=Math.max(i,Math.min(o,a))),this.labelRotation=a}afterCalculateLabelRotation(){Ie(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Ie(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:r,title:i,grid:o}}=this,a=this._isVisible(),s=this.isHorizontal();if(a){const l=xb(i,n.options.font);if(s?(t.width=this.maxWidth,t.height=Es(o)+l):(t.height=this.maxHeight,t.width=Es(o)+l),r.display&&this.ticks.length){const{first:c,last:u,widest:f,highest:d}=this._getLabelSizes(),g=r.padding*2,m=ko(this.labelRotation),y=Math.cos(m),b=Math.sin(m);if(s){const p=r.mirror?0:b*f.width+y*d.height;t.height=Math.min(this.maxHeight,t.height+p+g)}else{const p=r.mirror?0:y*f.width+b*d.height;t.width=Math.min(this.maxWidth,t.width+p+g)}this._calculatePadding(c,u,b,y)}}this._handleMargins(),s?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,n,r,i){const{ticks:{align:o,padding:a},position:s}=this.options,l=this.labelRotation!==0,c=s!=="top"&&this.axis==="x";if(this.isHorizontal()){const u=this.getPixelForTick(0)-this.left,f=this.right-this.getPixelForTick(this.ticks.length-1);let d=0,g=0;l?c?(d=i*t.width,g=r*n.height):(d=r*t.height,g=i*n.width):o==="start"?g=n.width:o==="end"?d=t.width:o!=="inner"&&(d=t.width/2,g=n.width/2),this.paddingLeft=Math.max((d-u+a)*this.width/(this.width-u),0),this.paddingRight=Math.max((g-f+a)*this.width/(this.width-f),0)}else{let u=n.height/2,f=t.height/2;o==="start"?(u=0,f=t.height):o==="end"&&(u=n.height,f=0),this.paddingTop=u+a,this.paddingBottom=f+a}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Ie(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:n}=this.options;return n==="top"||n==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let n,r;for(n=0,r=t.length;n({width:a[P]||0,height:s[P]||0});return{first:k(0),last:k(n-1),widest:k(_),highest:k(E),widths:a,heights:s}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const n=this._startPixel+t*this._length;return tN(this._alignToPixels?po(this.chart,n,0):n)}getDecimalForPixel(t){const n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){const n=this.ticks||[];if(t>=0&&ts*i?s/r:l/i:l*i0}_computeGridLineItems(t){const n=this.axis,r=this.chart,i=this.options,{grid:o,position:a,border:s}=i,l=o.offset,c=this.isHorizontal(),f=this.ticks.length+(l?1:0),d=Es(o),g=[],m=s.setContext(this.getContext()),y=m.display?m.width:0,b=y/2,p=function(N){return po(r,N,y)};let h,x,S,w,_,E,k,P,O,I,A,D;if(a==="top")h=p(this.bottom),E=this.bottom-d,P=h-b,I=p(t.top)+b,D=t.bottom;else if(a==="bottom")h=p(this.top),I=t.top,D=p(t.bottom)-b,E=h+b,P=this.top+d;else if(a==="left")h=p(this.right),_=this.right-d,k=h-b,O=p(t.left)+b,A=t.right;else if(a==="right")h=p(this.left),O=t.left,A=p(t.right)-b,_=h+b,k=this.left+d;else if(n==="x"){if(a==="center")h=p((t.top+t.bottom)/2+.5);else if(et(a)){const N=Object.keys(a)[0],T=a[N];h=p(this.chart.scales[N].getPixelForValue(T))}I=t.top,D=t.bottom,E=h+b,P=E+d}else if(n==="y"){if(a==="center")h=p((t.left+t.right)/2);else if(et(a)){const N=Object.keys(a)[0],T=a[N];h=p(this.chart.scales[N].getPixelForValue(T))}_=h-b,k=_-d,O=t.left,A=t.right}const j=je(i.ticks.maxTicksLimit,f),W=Math.max(1,Math.ceil(f/j));for(x=0;x0&&(te-=q/2);break}B={left:te,top:X,width:q+U.width,height:Y+U.height,color:W.backdropColor}}b.push({label:S,font:P,textOffset:A,options:{rotation:y,color:T,strokeColor:$,strokeWidth:F,textAlign:z,textBaseline:D,translation:[w,_],backdrop:B}})}return b}_getXAxisLabelAlignment(){const{position:t,ticks:n}=this.options;if(-ko(this.labelRotation))return t==="top"?"left":"right";let i="center";return n.align==="start"?i="left":n.align==="end"?i="right":n.align==="inner"&&(i="inner"),i}_getYAxisLabelAlignment(t){const{position:n,ticks:{crossAlign:r,mirror:i,padding:o}}=this.options,a=this._getLabelSizes(),s=t+o,l=a.widest.width;let c,u;return n==="left"?i?(u=this.right+o,r==="near"?c="left":r==="center"?(c="center",u+=l/2):(c="right",u+=l)):(u=this.right-s,r==="near"?c="right":r==="center"?(c="center",u-=l/2):(c="left",u=this.left)):n==="right"?i?(u=this.left+o,r==="near"?c="right":r==="center"?(c="center",u-=l/2):(c="left",u-=l)):(u=this.left+s,r==="near"?c="left":r==="center"?(c="center",u+=l/2):(c="right",u=this.right)):c="right",{textAlign:c,x:u}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:n},left:r,top:i,width:o,height:a}=this;n&&(t.save(),t.fillStyle=n,t.fillRect(r,i,o,a),t.restore())}getLineWidthForValue(t){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const i=this.ticks.findIndex(o=>o.value===t);return i>=0?n.setContext(this.getContext(i)).lineWidth:0}drawGrid(t){const n=this.options.grid,r=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let o,a;const s=(l,c,u)=>{!u.width||!u.color||(r.save(),r.lineWidth=u.width,r.strokeStyle=u.color,r.setLineDash(u.borderDash||[]),r.lineDashOffset=u.borderDashOffset,r.beginPath(),r.moveTo(l.x,l.y),r.lineTo(c.x,c.y),r.stroke(),r.restore())};if(n.display)for(o=0,a=i.length;o{this.draw(o)}}]:[{z:r,draw:o=>{this.drawBackground(),this.drawGrid(o),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:n,draw:o=>{this.drawLabels(o)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",i=[];let o,a;for(o=0,a=n.length;o{const r=n.split("."),i=r.pop(),o=[e].concat(r).join("."),a=t[n].split("."),s=a.pop(),l=a.join(".");jt.route(o,i,l,s)})}function hL(e){return"id"in e&&"defaults"in e}class gL{constructor(){this.controllers=new Vc(rl,"datasets",!0),this.elements=new Vc(Zo,"elements"),this.plugins=new Vc(Object,"plugins"),this.scales=new Vc(ss,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,n,r){[...n].forEach(i=>{const o=r||this._getRegistryForType(i);r||o.isForType(i)||o===this.plugins&&i.id?this._exec(t,o,i):He(i,a=>{const s=r||this._getRegistryForType(a);this._exec(t,s,a)})})}_exec(t,n,r){const i=km(t);Ie(r["before"+i],[],r),n[t](r),Ie(r["after"+i],[],r)}_getRegistryForType(t){for(let n=0;no.filter(s=>!a.some(l=>s.plugin.id===l.plugin.id));this._notify(i(n,r),t,"stop"),this._notify(i(r,n),t,"start")}}function mL(e){const t={},n=[],r=Object.keys(ei.plugins.items);for(let o=0;o1&&Sb(e[0].toLowerCase());if(r)return r}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function wb(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function CL(e,t){if(t.data&&t.data.datasets){const n=t.data.datasets.filter(r=>r.xAxisID===e||r.yAxisID===e);if(n.length)return wb(e,"x",n[0])||wb(e,"y",n[0])}return{}}function _L(e,t){const n=Vo[e.type]||{scales:{}},r=t.scales||{},i=Ug(e.type,t),o=Object.create(null);return Object.keys(r).forEach(a=>{const s=r[a];if(!et(s))return console.error(`Invalid scale configuration for scale: ${a}`);if(s._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${a}`);const l=qg(a,s,CL(a,e),jt.scales[s.type]),c=SL(l,i),u=n.scales||{};o[a]=Zs(Object.create(null),[{axis:l},s,u[l],u[c]])}),e.data.datasets.forEach(a=>{const s=a.type||e.type,l=a.indexAxis||Ug(s,t),u=(Vo[s]||{}).scales||{};Object.keys(u).forEach(f=>{const d=xL(f,l),g=a[d+"AxisID"]||d;o[g]=o[g]||Object.create(null),Zs(o[g],[{axis:d},r[g],u[f]])})}),Object.keys(o).forEach(a=>{const s=o[a];Zs(s,[jt.scales[s.type],jt.scale])}),o}function o_(e){const t=e.options||(e.options={});t.plugins=je(t.plugins,{}),t.scales=_L(e,t)}function a_(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function EL(e){return e=e||{},e.data=a_(e.data),o_(e),e}const Cb=new Map,s_=new Set;function Wc(e,t){let n=Cb.get(e);return n||(n=t(),Cb.set(e,n),s_.add(n)),n}const Ms=(e,t,n)=>{const r=nf(t,n);r!==void 0&&e.add(r)};class ML{constructor(t){this._config=EL(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=a_(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),o_(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Wc(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return Wc(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return Wc(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,r=this.type;return Wc(`${r}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){const r=this._scopeCache;let i=r.get(t);return(!i||n)&&(i=new Map,r.set(t,i)),i}getOptionScopes(t,n,r){const{options:i,type:o}=this,a=this._cachedScopes(t,r),s=a.get(n);if(s)return s;const l=new Set;n.forEach(u=>{t&&(l.add(t),u.forEach(f=>Ms(l,t,f))),u.forEach(f=>Ms(l,i,f)),u.forEach(f=>Ms(l,Vo[o]||{},f)),u.forEach(f=>Ms(l,jt,f)),u.forEach(f=>Ms(l,Bg,f))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),s_.has(n)&&a.set(n,c),c}chartOptionScopes(){const{options:t,type:n}=this;return[t,Vo[n]||{},jt.datasets[n]||{},{type:n},jt,Bg]}resolveNamedOptions(t,n,r,i=[""]){const o={$shared:!0},{resolver:a,subPrefixes:s}=_b(this._resolverCache,t,i);let l=a;if(OL(a,n)){o.$shared=!1,r=no(r)?r():r;const c=this.createResolver(t,r,s);l=Za(a,r,c)}for(const c of n)o[c]=l[c];return o}createResolver(t,n,r=[""],i){const{resolver:o}=_b(this._resolverCache,t,r);return et(n)?Za(o,n,void 0,i):o}}function _b(e,t,n){let r=e.get(t);r||(r=new Map,e.set(t,r));const i=n.join();let o=r.get(i);return o||(o={resolver:Im(t,n),subPrefixes:n.filter(s=>!s.toLowerCase().includes("hover"))},r.set(i,o)),o}const kL=e=>et(e)&&Object.getOwnPropertyNames(e).some(t=>no(e[t]));function OL(e,t){const{isScriptable:n,isIndexable:r}=WC(e);for(const i of t){const o=n(i),a=r(i),s=(a||o)&&e[i];if(o&&(no(s)||kL(s))||a&&rn(s))return!0}return!1}var PL="4.4.4";const TL=["top","bottom","left","right","chartArea"];function Eb(e,t){return e==="top"||e==="bottom"||TL.indexOf(e)===-1&&t==="x"}function Mb(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function kb(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),Ie(n&&n.onComplete,[e],t)}function $L(e){const t=e.chart,n=t.options.animation;Ie(n&&n.onProgress,[e],t)}function l_(e){return Am()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const yu={},Ob=e=>{const t=l_(e);return Object.values(yu).filter(n=>n.canvas===t).pop()};function RL(e,t,n){const r=Object.keys(e);for(const i of r){const o=+i;if(o>=t){const a=e[i];delete e[i],(n>0||o>t)&&(e[o+n]=a)}}}function IL(e,t,n,r){return!n||e.type==="mouseout"?null:r?t:e}function Uc(e,t,n){return e.options.clip?e[n]:t[n]}function FL(e,t){const{xScale:n,yScale:r}=e;return n&&r?{left:Uc(n,t,"left"),right:Uc(n,t,"right"),top:Uc(r,t,"top"),bottom:Uc(r,t,"bottom")}:t}var Ti;let Kf=(Ti=class{static register(...t){ei.add(...t),Pb()}static unregister(...t){ei.remove(...t),Pb()}constructor(t,n){const r=this.config=new ML(n),i=l_(t),o=Ob(i);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const a=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||QA(i)),this.platform.updateConfig(r);const s=this.platform.acquireContext(i,a.aspectRatio),l=s&&s.canvas,c=l&&l.height,u=l&&l.width;if(this.id=jF(),this.ctx=s,this.canvas=l,this.width=u,this.height=c,this._options=a,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new pL,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=aN(f=>this.update(f),a.resizeDelay||0),this._dataChanges=[],yu[this.id]=this,!s||!l){console.error("Failed to create chart: can't acquire context from the given item");return}di.listen(this,"complete",kb),di.listen(this,"progress",$L),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:r,height:i,_aspectRatio:o}=this;return Ft(t)?n&&o?o:i?r/i:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return ei}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Jy(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Yy(this.canvas,this.ctx),this}stop(){return di.stop(this),this}resize(t,n){di.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){const r=this.options,i=this.canvas,o=r.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(i,t,n,o),s=r.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,Jy(this,s,!0)&&(this.notifyPlugins("resize",{size:a}),Ie(r.onResize,[this,a],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};He(n,(r,i)=>{r.id=i})}buildOrUpdateScales(){const t=this.options,n=t.scales,r=this.scales,i=Object.keys(r).reduce((a,s)=>(a[s]=!1,a),{});let o=[];n&&(o=o.concat(Object.keys(n).map(a=>{const s=n[a],l=qg(a,s),c=l==="r",u=l==="x";return{options:s,dposition:c?"chartArea":u?"bottom":"left",dtype:c?"radialLinear":u?"category":"linear"}}))),He(o,a=>{const s=a.options,l=s.id,c=qg(l,s),u=je(s.type,a.dtype);(s.position===void 0||Eb(s.position,c)!==Eb(a.dposition))&&(s.position=a.dposition),i[l]=!0;let f=null;if(l in r&&r[l].type===u)f=r[l];else{const d=ei.getScale(u);f=new d({id:l,type:u,ctx:this.ctx,chart:this}),r[f.id]=f}f.init(s,t)}),He(i,(a,s)=>{a||delete r[s]}),He(r,a=>{br.configure(this,a,a.options),br.addBox(this,a)})}_updateMetasets(){const t=this._metasets,n=this.data.datasets.length,r=t.length;if(t.sort((i,o)=>i.index-o.index),r>n){for(let i=n;in.length&&delete this._stacks,t.forEach((r,i)=>{n.filter(o=>o===r._dataset).length===0&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){const t=[],n=this.data.datasets;let r,i;for(this._removeUnreferencedMetasets(),r=0,i=n.length;r{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const n=this.config;n.update();const r=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let a=0;for(let c=0,u=this.data.datasets.length;c{c.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(Mb("z","_idx"));const{_active:s,_lastEvent:l}=this;l?this._eventHandler(l,!0):s.length&&this._updateHoverStyles(s,s,!0),this.render()}_updateScales(){He(this.scales,t=>{br.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(t.events);(!jy(n,r)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(const{method:r,start:i,count:o}of n){const a=r==="_removeElements"?-o:o;RL(t,i,a)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,r=o=>new Set(t.filter(a=>a[0]===o).map((a,s)=>s+","+a.splice(1).join(","))),i=r(0);for(let o=1;oo.split(",")).map(o=>({method:o[1],start:+o[2],count:+o[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;br.update(this,this.width,this.height,t);const n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],He(this.boxes,i=>{r&&i.position==="chartArea"||(i.configure&&i.configure(),this._layers.push(...i._layers()))},this),this._layers.forEach((i,o)=>{i._idx=o}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,r=this.data.datasets.length;n=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const n=this.ctx,r=t._clip,i=!r.disabled,o=FL(t,this.chartArea),a={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",a)!==!1&&(i&&$m(n,{left:r.left===!1?0:o.left-r.left,right:r.right===!1?this.width:o.right+r.right,top:r.top===!1?0:o.top-r.top,bottom:r.bottom===!1?this.height:o.bottom+r.bottom}),t.controller.draw(),i&&Rm(n),a.cancelable=!1,this.notifyPlugins("afterDatasetDraw",a))}isPointInArea(t){return zl(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,r,i){const o=TA.modes[n];return typeof o=="function"?o(this,t,r,i):[]}getDatasetMeta(t){const n=this.data.datasets[t],r=this._metasets;let i=r.filter(o=>o&&o._dataset===n).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:t,_dataset:n,_parsed:[],_sorted:!1},r.push(i)),i}getContext(){return this.$context||(this.$context=Qo(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const n=this.data.datasets[t];if(!n)return!1;const r=this.getDatasetMeta(t);return typeof r.hidden=="boolean"?!r.hidden:!n.hidden}setDatasetVisibility(t,n){const r=this.getDatasetMeta(t);r.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,r){const i=r?"show":"hide",o=this.getDatasetMeta(t),a=o.controller._resolveAnimations(void 0,i);rf(n)?(o.data[n].hidden=!r,this.update()):(this.setDatasetVisibility(t,r),a.update(o,{visible:r}),this.update(s=>s.datasetIndex===t?i:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){const n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),di.remove(this),t=0,n=this.data.datasets.length;t{n.addEventListener(this,o,a),t[o]=a},i=(o,a,s)=>{o.offsetX=a,o.offsetY=s,this._eventHandler(o)};He(this.options.events,o=>r(o,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,n=this.platform,r=(l,c)=>{n.addEventListener(this,l,c),t[l]=c},i=(l,c)=>{t[l]&&(n.removeEventListener(this,l,c),delete t[l])},o=(l,c)=>{this.canvas&&this.resize(l,c)};let a;const s=()=>{i("attach",s),this.attached=!0,this.resize(),r("resize",o),r("detach",a)};a=()=>{this.attached=!1,i("resize",o),this._stop(),this._resize(0,0),r("attach",s)},n.isAttached(this.canvas)?s():a()}unbindEvents(){He(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},He(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,r){const i=r?"set":"remove";let o,a,s,l;for(n==="dataset"&&(o=this.getDatasetMeta(t[0].datasetIndex),o.controller["_"+i+"DatasetHoverStyle"]()),s=0,l=t.length;s{const s=this.getDatasetMeta(o);if(!s)throw new Error("No dataset found at index "+o);return{datasetIndex:o,element:s.data[a],index:a}});!ef(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}notifyPlugins(t,n,r){return this._plugins.notify(this,t,n,r)}isPluginEnabled(t){return this._plugins._cache.filter(n=>n.plugin.id===t).length===1}_updateHoverStyles(t,n,r){const i=this.options.hover,o=(l,c)=>l.filter(u=>!c.some(f=>u.datasetIndex===f.datasetIndex&&u.index===f.index)),a=o(n,t),s=r?t:o(t,n);a.length&&this.updateHoverStyle(a,i.mode,!1),s.length&&i.mode&&this.updateHoverStyle(s,i.mode,!0)}_eventHandler(t,n){const r={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},i=a=>(a.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",r,i)===!1)return;const o=this._handleEvent(t,n,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,i),(o||r.changed)&&this.render(),this}_handleEvent(t,n,r){const{_active:i=[],options:o}=this,a=n,s=this._getActiveElements(t,i,r,a),l=qF(t),c=IL(t,this._lastEvent,r,l);r&&(this._lastEvent=null,Ie(o.onHover,[t,s,this],this),l&&Ie(o.onClick,[t,s,this],this));const u=!ef(s,i);return(u||n)&&(this._active=s,this._updateHoverStyles(s,i,n)),this._lastEvent=c,u}_getActiveElements(t,n,r,i){if(t.type==="mouseout")return[];if(!r)return n;const o=this.options.hover;return this.getElementsAtEventForMode(t,o.mode,o,i)}},Le(Ti,"defaults",jt),Le(Ti,"instances",yu),Le(Ti,"overrides",Vo),Le(Ti,"registry",ei),Le(Ti,"version",PL),Le(Ti,"getChart",Ob),Ti);function Pb(){return He(Kf.instances,e=>e._plugins.invalidate())}function c_(e,t,n=t){e.lineCap=je(n.borderCapStyle,t.borderCapStyle),e.setLineDash(je(n.borderDash,t.borderDash)),e.lineDashOffset=je(n.borderDashOffset,t.borderDashOffset),e.lineJoin=je(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=je(n.borderWidth,t.borderWidth),e.strokeStyle=je(n.borderColor,t.borderColor)}function NL(e,t,n){e.lineTo(n.x,n.y)}function AL(e){return e.stepped?bN:e.tension||e.cubicInterpolationMode==="monotone"?xN:NL}function u_(e,t,n={}){const r=e.length,{start:i=0,end:o=r-1}=n,{start:a,end:s}=t,l=Math.max(i,a),c=Math.min(o,s),u=is&&o>s;return{count:r,start:l,loop:t.loop,ilen:c(a+(c?s-S:S))%o,x=()=>{y!==b&&(e.lineTo(u,b),e.lineTo(u,y),e.lineTo(u,p))};for(l&&(g=i[h(0)],e.moveTo(g.x,g.y)),d=0;d<=s;++d){if(g=i[h(d)],g.skip)continue;const S=g.x,w=g.y,_=S|0;_===m?(wb&&(b=w),u=(f*u+S)/++f):(x(),e.lineTo(S,w),m=_,f=0,y=b=w),p=w}x()}function Gg(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!n?DL:LL}function zL(e){return e.stepped?JN:e.tension||e.cubicInterpolationMode==="monotone"?eA:bo}function jL(e,t,n,r){let i=t._path;i||(i=t._path=new Path2D,t.path(i,n,r)&&i.closePath()),c_(e,t.options),e.stroke(i)}function HL(e,t,n,r){const{segments:i,options:o}=t,a=Gg(t);for(const s of i)c_(e,o,s.style),e.beginPath(),a(e,t,s,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}const BL=typeof Path2D=="function";function VL(e,t,n,r){BL&&!t.options.segment?jL(e,t,n,r):HL(e,t,n,r)}class Ns extends Zo{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,n){const r=this.options;if((r.tension||r.cubicInterpolationMode==="monotone")&&!r.stepped&&!this._pointsUpdated){const i=r.spanGaps?this._loop:this._fullLoop;UN(this._points,r,t,i,n),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=lA(this,this.options.segment))}first(){const t=this.segments,n=this.points;return t.length&&n[t[0].start]}last(){const t=this.segments,n=this.points,r=t.length;return r&&n[t[r-1].end]}interpolate(t,n){const r=this.options,i=t[n],o=this.points,a=oA(this,{property:n,start:i,end:i});if(!a.length)return;const s=[],l=zL(r);let c,u;for(c=0,u=a.length;ct!=="borderDash"&&t!=="fill"});function Tb(e,t,n,r){const i=e.options,{[n]:o}=e.getProps([n],r);return Math.abs(t-o){let{boxHeight:n=t,boxWidth:r=t}=e;return e.usePointStyle&&(n=Math.min(n,t),r=e.pointStyleWidth||Math.min(r,t)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(t,n)}},WL=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class Rb extends Zo{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n,r){this.maxWidth=t,this.maxHeight=n,this._margins=r,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let n=Ie(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter(r=>t.filter(r,this.chart.data))),t.sort&&(n=n.sort((r,i)=>t.sort(r,i,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:t,ctx:n}=this;if(!t.display){this.width=this.height=0;return}const r=t.labels,i=_n(r.font),o=i.size,a=this._computeTitleHeight(),{boxWidth:s,itemHeight:l}=$b(r,o);let c,u;n.font=i.string,this.isHorizontal()?(c=this.maxWidth,u=this._fitRows(a,o,s,l)+10):(u=this.maxHeight,c=this._fitCols(a,i,s,l)+10),this.width=Math.min(c,t.maxWidth||this.maxWidth),this.height=Math.min(u,t.maxHeight||this.maxHeight)}_fitRows(t,n,r,i){const{ctx:o,maxWidth:a,options:{labels:{padding:s}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],u=i+s;let f=t;o.textAlign="left",o.textBaseline="middle";let d=-1,g=-u;return this.legendItems.forEach((m,y)=>{const b=r+n/2+o.measureText(m.text).width;(y===0||c[c.length-1]+b+2*s>a)&&(f+=u,c[c.length-(y>0?0:1)]=0,g+=u,d++),l[y]={left:0,top:g,row:d,width:b,height:i},c[c.length-1]+=b+s}),f}_fitCols(t,n,r,i){const{ctx:o,maxHeight:a,options:{labels:{padding:s}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],u=a-t;let f=s,d=0,g=0,m=0,y=0;return this.legendItems.forEach((b,p)=>{const{itemWidth:h,itemHeight:x}=UL(r,n,o,b,i);p>0&&g+x+2*s>u&&(f+=d+s,c.push({width:d,height:g}),m+=d+s,y++,d=g=0),l[p]={left:m,top:g,col:y,width:h,height:x},d=Math.max(d,h),g+=x+s}),f+=d,c.push({width:d,height:g}),f}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:r,labels:{padding:i},rtl:o}}=this,a=Da(o,this.left,this.width);if(this.isHorizontal()){let s=0,l=Sn(r,this.left+i,this.right-this.lineWidths[s]);for(const c of n)s!==c.row&&(s=c.row,l=Sn(r,this.left+i,this.right-this.lineWidths[s])),c.top+=this.top+t+i,c.left=a.leftForLtr(a.x(l),c.width),l+=c.width+i}else{let s=0,l=Sn(r,this.top+t+i,this.bottom-this.columnSizes[s].height);for(const c of n)c.col!==s&&(s=c.col,l=Sn(r,this.top+t+i,this.bottom-this.columnSizes[s].height)),c.top=l,c.left+=this.left+i,c.left=a.leftForLtr(a.x(c.left),c.width),l+=c.height+i}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;$m(t,this),this._draw(),Rm(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:r,ctx:i}=this,{align:o,labels:a}=t,s=jt.color,l=Da(t.rtl,this.left,this.width),c=_n(a.font),{padding:u}=a,f=c.size,d=f/2;let g;this.drawTitle(),i.textAlign=l.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=c.string;const{boxWidth:m,boxHeight:y,itemHeight:b}=$b(a,f),p=function(_,E,k){if(isNaN(m)||m<=0||isNaN(y)||y<0)return;i.save();const P=je(k.lineWidth,1);if(i.fillStyle=je(k.fillStyle,s),i.lineCap=je(k.lineCap,"butt"),i.lineDashOffset=je(k.lineDashOffset,0),i.lineJoin=je(k.lineJoin,"miter"),i.lineWidth=P,i.strokeStyle=je(k.strokeStyle,s),i.setLineDash(je(k.lineDash,[])),a.usePointStyle){const O={radius:y*Math.SQRT2/2,pointStyle:k.pointStyle,rotation:k.rotation,borderWidth:P},I=l.xPlus(_,m/2),A=E+d;BC(i,O,I,A,a.pointStyleWidth&&m)}else{const O=E+Math.max((f-y)/2,0),I=l.leftForLtr(_,m),A=nl(k.borderRadius);i.beginPath(),Object.values(A).some(D=>D!==0)?Wg(i,{x:I,y:O,w:m,h:y,radius:A}):i.rect(I,O,m,y),i.fill(),P!==0&&i.stroke()}i.restore()},h=function(_,E,k){jl(i,k.text,_,E+b/2,c,{strikethrough:k.hidden,textAlign:l.textAlign(k.textAlign)})},x=this.isHorizontal(),S=this._computeTitleHeight();x?g={x:Sn(o,this.left+u,this.right-r[0]),y:this.top+u+S,line:0}:g={x:this.left+u,y:Sn(o,this.top+S+u,this.bottom-n[0].height),line:0},KC(this.ctx,t.textDirection);const w=b+u;this.legendItems.forEach((_,E)=>{i.strokeStyle=_.fontColor,i.fillStyle=_.fontColor;const k=i.measureText(_.text).width,P=l.textAlign(_.textAlign||(_.textAlign=a.textAlign)),O=m+d+k;let I=g.x,A=g.y;l.setWidth(this.width),x?E>0&&I+O+u>this.right&&(A=g.y+=w,g.line++,I=g.x=Sn(o,this.left+u,this.right-r[g.line])):E>0&&A+w>this.bottom&&(I=g.x=I+n[g.line].width+u,g.line++,A=g.y=Sn(o,this.top+S+u,this.bottom-n[g.line].height));const D=l.x(I);if(p(D,A,_),I=sN(P,I+m+d,x?I+O:this.right,t.rtl),h(l.x(I),A,_),x)g.x+=O+u;else if(typeof _.text!="string"){const j=c.lineHeight;g.y+=f_(_,j)+u}else g.y+=w}),YC(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,r=_n(n.font),i=Er(n.padding);if(!n.display)return;const o=Da(t.rtl,this.left,this.width),a=this.ctx,s=n.position,l=r.size/2,c=i.top+l;let u,f=this.left,d=this.width;if(this.isHorizontal())d=Math.max(...this.lineWidths),u=this.top+c,f=Sn(t.align,f,this.right-d);else{const m=this.columnSizes.reduce((y,b)=>Math.max(y,b.height),0);u=c+Sn(t.align,this.top,this.bottom-m-t.labels.padding-this._computeTitleHeight())}const g=Sn(s,f,f+d);a.textAlign=o.textAlign(Pm(s)),a.textBaseline="middle",a.strokeStyle=n.color,a.fillStyle=n.color,a.font=r.string,jl(a,n.text,g,u,r)}_computeTitleHeight(){const t=this.options.title,n=_n(t.font),r=Er(t.padding);return t.display?n.lineHeight+r.height:0}_getLegendItemAt(t,n){let r,i,o;if(Is(t,this.left,this.right)&&Is(n,this.top,this.bottom)){for(o=this.legendHitBoxes,r=0;ro.length>a.length?o:a)),t+n.size/2+r.measureText(i).width}function GL(e,t,n){let r=e;return typeof t.text!="string"&&(r=f_(t,n)),r}function f_(e,t){const n=e.text?e.text.length:0;return t*n}function XL(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var KL={id:"legend",_element:Rb,start(e,t,n){const r=e.legend=new Rb({ctx:e.ctx,options:n,chart:e});br.configure(e,r,n),br.addBox(e,r)},stop(e){br.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const r=e.legend;br.configure(e,r,n),r.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const r=t.datasetIndex,i=n.chart;i.isDatasetVisible(r)?(i.hide(r),t.hidden=!0):(i.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:i,color:o,useBorderRadius:a,borderRadius:s}}=e.legend.options;return e._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(n?0:void 0),u=Er(c.borderWidth);return{text:t[l.index].label,fillStyle:c.backgroundColor,fontColor:o,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(u.width+u.height)/4,strokeStyle:c.borderColor,pointStyle:r||c.pointStyle,rotation:c.rotation,textAlign:i||c.textAlign,borderRadius:a&&(s||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class d_ extends Zo{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n){const r=this.options;if(this.left=0,this.top=0,!r.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=n;const i=rn(r.text)?r.text.length:1;this._padding=Er(r.padding);const o=i*_n(r.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:n,left:r,bottom:i,right:o,options:a}=this,s=a.align;let l=0,c,u,f;return this.isHorizontal()?(u=Sn(s,r,o),f=n+t,c=o-r):(a.position==="left"?(u=r+t,f=Sn(s,i,n),l=sn*-.5):(u=o-t,f=Sn(s,n,i),l=sn*.5),c=i-n),{titleX:u,titleY:f,maxWidth:c,rotation:l}}draw(){const t=this.ctx,n=this.options;if(!n.display)return;const r=_n(n.font),o=r.lineHeight/2+this._padding.top,{titleX:a,titleY:s,maxWidth:l,rotation:c}=this._drawArgs(o);jl(t,n.text,0,0,r,{color:n.color,maxWidth:l,rotation:c,textAlign:Pm(n.align),textBaseline:"middle",translation:[a,s]})}}function YL(e,t){const n=new d_({ctx:e.ctx,options:t,chart:e});br.configure(e,n,t),br.addBox(e,n),e.titleBlock=n}var QL={id:"title",_element:d_,start(e,t,n){YL(e,n)},stop(e){const t=e.titleBlock;br.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const r=e.titleBlock;br.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const As={average(e){if(!e.length)return!1;let t,n,r=new Set,i=0,o=0;for(t=0,n=e.length;ts+l)/r.size,y:i/o}},nearest(e,t){if(!e.length)return!1;let n=t.x,r=t.y,i=Number.POSITIVE_INFINITY,o,a,s;for(o=0,a=e.length;o-1?e.split(` -`):e}function ZL(e,t){const{element:n,datasetIndex:r,index:i}=t,o=e.getDatasetMeta(r).controller,{label:a,value:s}=o.getLabelAndValue(i);return{chart:e,label:a,parsed:o.getParsed(i),raw:e.data.datasets[r].data[i],formattedValue:s,dataset:o.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function Ib(e,t){const n=e.chart.ctx,{body:r,footer:i,title:o}=e,{boxWidth:a,boxHeight:s}=t,l=_n(t.bodyFont),c=_n(t.titleFont),u=_n(t.footerFont),f=o.length,d=i.length,g=r.length,m=Er(t.padding);let y=m.height,b=0,p=r.reduce((S,w)=>S+w.before.length+w.lines.length+w.after.length,0);if(p+=e.beforeBody.length+e.afterBody.length,f&&(y+=f*c.lineHeight+(f-1)*t.titleSpacing+t.titleMarginBottom),p){const S=t.displayColors?Math.max(s,l.lineHeight):l.lineHeight;y+=g*S+(p-g)*l.lineHeight+(p-1)*t.bodySpacing}d&&(y+=t.footerMarginTop+d*u.lineHeight+(d-1)*t.footerSpacing);let h=0;const x=function(S){b=Math.max(b,n.measureText(S).width+h)};return n.save(),n.font=c.string,He(e.title,x),n.font=l.string,He(e.beforeBody.concat(e.afterBody),x),h=t.displayColors?a+2+t.boxPadding:0,He(r,S=>{He(S.before,x),He(S.lines,x),He(S.after,x)}),h=0,n.font=u.string,He(e.footer,x),n.restore(),b+=m.width,{width:b,height:y}}function JL(e,t){const{y:n,height:r}=t;return ne.height-r/2?"bottom":"center"}function eD(e,t,n,r){const{x:i,width:o}=r,a=n.caretSize+n.caretPadding;if(e==="left"&&i+o+a>t.width||e==="right"&&i-o-a<0)return!0}function tD(e,t,n,r){const{x:i,width:o}=n,{width:a,chartArea:{left:s,right:l}}=e;let c="center";return r==="center"?c=i<=(s+l)/2?"left":"right":i<=o/2?c="left":i>=a-o/2&&(c="right"),eD(c,e,t,n)&&(c="center"),c}function Fb(e,t,n){const r=n.yAlign||t.yAlign||JL(e,n);return{xAlign:n.xAlign||t.xAlign||tD(e,t,n,r),yAlign:r}}function nD(e,t){let{x:n,width:r}=e;return t==="right"?n-=r:t==="center"&&(n-=r/2),n}function rD(e,t,n){let{y:r,height:i}=e;return t==="top"?r+=n:t==="bottom"?r-=i+n:r-=i/2,r}function Nb(e,t,n,r){const{caretSize:i,caretPadding:o,cornerRadius:a}=e,{xAlign:s,yAlign:l}=n,c=i+o,{topLeft:u,topRight:f,bottomLeft:d,bottomRight:g}=nl(a);let m=nD(t,s);const y=rD(t,l,c);return l==="center"?s==="left"?m+=c:s==="right"&&(m-=c):s==="left"?m-=Math.max(u,d)+i:s==="right"&&(m+=Math.max(f,g)+i),{x:yr(m,0,r.width-t.width),y:yr(y,0,r.height-t.height)}}function qc(e,t,n){const r=Er(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-r.right:e.x+r.left}function Ab(e){return Zr([],hi(e))}function iD(e,t,n){return Qo(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function Lb(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const h_={beforeTitle:fi,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex"u"?h_[t].call(n,r):i}class Xg extends Zo{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const n=this.chart,r=this.options.setContext(this.getContext()),i=r.enabled&&n.options.animation&&r.animations,o=new ZC(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=iD(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:r}=n,i=Ln(r,"beforeTitle",this,t),o=Ln(r,"title",this,t),a=Ln(r,"afterTitle",this,t);let s=[];return s=Zr(s,hi(i)),s=Zr(s,hi(o)),s=Zr(s,hi(a)),s}getBeforeBody(t,n){return Ab(Ln(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:r}=n,i=[];return He(t,o=>{const a={before:[],lines:[],after:[]},s=Lb(r,o);Zr(a.before,hi(Ln(s,"beforeLabel",this,o))),Zr(a.lines,Ln(s,"label",this,o)),Zr(a.after,hi(Ln(s,"afterLabel",this,o))),i.push(a)}),i}getAfterBody(t,n){return Ab(Ln(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:r}=n,i=Ln(r,"beforeFooter",this,t),o=Ln(r,"footer",this,t),a=Ln(r,"afterFooter",this,t);let s=[];return s=Zr(s,hi(i)),s=Zr(s,hi(o)),s=Zr(s,hi(a)),s}_createItems(t){const n=this._active,r=this.chart.data,i=[],o=[],a=[];let s=[],l,c;for(l=0,c=n.length;lt.filter(u,f,d,r))),t.itemSort&&(s=s.sort((u,f)=>t.itemSort(u,f,r))),He(s,u=>{const f=Lb(t.callbacks,u);i.push(Ln(f,"labelColor",this,u)),o.push(Ln(f,"labelPointStyle",this,u)),a.push(Ln(f,"labelTextColor",this,u))}),this.labelColors=i,this.labelPointStyles=o,this.labelTextColors=a,this.dataPoints=s,s}update(t,n){const r=this.options.setContext(this.getContext()),i=this._active;let o,a=[];if(!i.length)this.opacity!==0&&(o={opacity:0});else{const s=As[r.position].call(this,i,this._eventPosition);a=this._createItems(r),this.title=this.getTitle(a,r),this.beforeBody=this.getBeforeBody(a,r),this.body=this.getBody(a,r),this.afterBody=this.getAfterBody(a,r),this.footer=this.getFooter(a,r);const l=this._size=Ib(this,r),c=Object.assign({},s,l),u=Fb(this.chart,r,c),f=Nb(r,c,u,this.chart);this.xAlign=u.xAlign,this.yAlign=u.yAlign,o={opacity:1,x:f.x,y:f.y,width:l.width,height:l.height,caretX:s.x,caretY:s.y}}this._tooltipItems=a,this.$context=void 0,o&&this._resolveAnimations().update(this,o),t&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,r,i){const o=this.getCaretPosition(t,r,i);n.lineTo(o.x1,o.y1),n.lineTo(o.x2,o.y2),n.lineTo(o.x3,o.y3)}getCaretPosition(t,n,r){const{xAlign:i,yAlign:o}=this,{caretSize:a,cornerRadius:s}=r,{topLeft:l,topRight:c,bottomLeft:u,bottomRight:f}=nl(s),{x:d,y:g}=t,{width:m,height:y}=n;let b,p,h,x,S,w;return o==="center"?(S=g+y/2,i==="left"?(b=d,p=b-a,x=S+a,w=S-a):(b=d+m,p=b+a,x=S-a,w=S+a),h=b):(i==="left"?p=d+Math.max(l,u)+a:i==="right"?p=d+m-Math.max(c,f)-a:p=this.caretX,o==="top"?(x=g,S=x-a,b=p-a,h=p+a):(x=g+y,S=x+a,b=p+a,h=p-a),w=x),{x1:b,x2:p,x3:h,y1:x,y2:S,y3:w}}drawTitle(t,n,r){const i=this.title,o=i.length;let a,s,l;if(o){const c=Da(r.rtl,this.x,this.width);for(t.x=qc(this,r.titleAlign,r),n.textAlign=c.textAlign(r.titleAlign),n.textBaseline="middle",a=_n(r.titleFont),s=r.titleSpacing,n.fillStyle=r.titleColor,n.font=a.string,l=0;lh!==0)?(t.beginPath(),t.fillStyle=o.multiKeyBackground,Wg(t,{x:y,y:m,w:c,h:l,radius:p}),t.fill(),t.stroke(),t.fillStyle=a.backgroundColor,t.beginPath(),Wg(t,{x:b,y:m+1,w:c-2,h:l-2,radius:p}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(y,m,c,l),t.strokeRect(y,m,c,l),t.fillStyle=a.backgroundColor,t.fillRect(b,m+1,c-2,l-2))}t.fillStyle=this.labelTextColors[r]}drawBody(t,n,r){const{body:i}=this,{bodySpacing:o,bodyAlign:a,displayColors:s,boxHeight:l,boxWidth:c,boxPadding:u}=r,f=_n(r.bodyFont);let d=f.lineHeight,g=0;const m=Da(r.rtl,this.x,this.width),y=function(k){n.fillText(k,m.x(t.x+g),t.y+d/2),t.y+=d+o},b=m.textAlign(a);let p,h,x,S,w,_,E;for(n.textAlign=a,n.textBaseline="middle",n.font=f.string,t.x=qc(this,b,r),n.fillStyle=r.bodyColor,He(this.beforeBody,y),g=s&&b!=="right"?a==="center"?c/2+u:c+2+u:0,S=0,_=i.length;S<_;++S){for(p=i[S],h=this.labelTextColors[S],n.fillStyle=h,He(p.before,y),x=p.lines,s&&x.length&&(this._drawColorBox(n,t,S,m,r),d=Math.max(f.lineHeight,l)),w=0,E=x.length;w0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,r=this.$animations,i=r&&r.x,o=r&&r.y;if(i||o){const a=As[t.position].call(this,this._active,this._eventPosition);if(!a)return;const s=this._size=Ib(this,t),l=Object.assign({},a,this._size),c=Fb(n,t,l),u=Nb(t,l,c,n);(i._to!==u.x||o._to!==u.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=s.width,this.height=s.height,this.caretX=a.x,this.caretY=a.y,this._resolveAnimations().update(this,u))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(n);const i={width:this.width,height:this.height},o={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const a=Er(n.padding),s=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&s&&(t.save(),t.globalAlpha=r,this.drawBackground(o,t,i,n),KC(t,n.textDirection),o.y+=a.top,this.drawTitle(o,t,n),this.drawBody(o,t,n),this.drawFooter(o,t,n),YC(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const r=this._active,i=t.map(({datasetIndex:s,index:l})=>{const c=this.chart.getDatasetMeta(s);if(!c)throw new Error("Cannot find a dataset at index "+s);return{datasetIndex:s,element:c.data[l],index:l}}),o=!ef(r,i),a=this._positionChanged(i,n);(o||a)&&(this._active=i,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,o=this._active||[],a=this._getActiveElements(t,o,n,r),s=this._positionChanged(a,t),l=n||!ef(a,o)||s;return l&&(this._active=a,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),l}_getActiveElements(t,n,r,i){const o=this.options;if(t.type==="mouseout")return[];if(!i)return n.filter(s=>this.chart.data.datasets[s.datasetIndex]&&this.chart.getDatasetMeta(s.datasetIndex).controller.getParsed(s.index)!==void 0);const a=this.chart.getElementsAtEventForMode(t,o.mode,o,r);return o.reverse&&a.reverse(),a}_positionChanged(t,n){const{caretX:r,caretY:i,options:o}=this,a=As[o.position].call(this,t,n);return a!==!1&&(r!==a.x||i!==a.y)}}Le(Xg,"positioners",As);var oD={id:"tooltip",_element:Xg,positioners:As,afterInit(e,t,n){n&&(e.tooltip=new Xg({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:h_},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const aD=(e,t,n,r)=>(typeof t=="string"?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function sD(e,t,n,r){const i=e.indexOf(t);if(i===-1)return aD(e,t,n,r);const o=e.lastIndexOf(t);return i!==o?n:i}const lD=(e,t)=>e===null?null:yr(Math.round(e),0,t);function Db(e){const t=this.getLabels();return e>=0&&en.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}Le(Kg,"id","category"),Le(Kg,"defaults",{ticks:{callback:Db}});function cD(e,t){const n=[],{bounds:i,step:o,min:a,max:s,precision:l,count:c,maxTicks:u,maxDigits:f,includeBounds:d}=e,g=o||1,m=u-1,{min:y,max:b}=t,p=!Ft(a),h=!Ft(s),x=!Ft(c),S=(b-y)/(f+1);let w=By((b-y)/m/g)*g,_,E,k,P;if(w<1e-14&&!p&&!h)return[{value:y},{value:b}];P=Math.ceil(b/w)-Math.floor(y/w),P>m&&(w=By(P*w/m/g)*g),Ft(l)||(_=Math.pow(10,l),w=Math.ceil(w*_)/_),i==="ticks"?(E=Math.floor(y/w)*w,k=Math.ceil(b/w)*w):(E=y,k=b),p&&h&&o&&YF((s-a)/o,w/1e3)?(P=Math.round(Math.min((s-a)/w,u)),w=(s-a)/P,E=a,k=s):x?(E=p?a:E,k=h?s:k,P=c-1,w=(k-E)/P):(P=(k-E)/w,Js(P,Math.round(P),w/1e3)?P=Math.round(P):P=Math.ceil(P));const O=Math.max(Vy(w),Vy(E));_=Math.pow(10,Ft(l)?O:l),E=Math.round(E*_)/_,k=Math.round(k*_)/_;let I=0;for(p&&(d&&E!==a?(n.push({value:a}),Es)break;n.push({value:A})}return h&&d&&k!==s?n.length&&Js(n[n.length-1].value,s,zb(s,S,e))?n[n.length-1].value=s:n.push({value:s}):(!h||k===s)&&n.push({value:k}),n}function zb(e,t,{horizontal:n,minRotation:r}){const i=ko(r),o=(n?Math.sin(i):Math.cos(i))||.001,a=.75*t*(""+e).length;return Math.min(t/o,a)}class uD extends ss{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,n){return Ft(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:n,maxDefined:r}=this.getUserBounds();let{min:i,max:o}=this;const a=l=>i=n?i:l,s=l=>o=r?o:l;if(t){const l=ro(i),c=ro(o);l<0&&c<0?s(0):l>0&&c>0&&a(0)}if(i===o){let l=o===0?1:Math.abs(o*.05);s(o+l),t||a(i-l)}this.min=i,this.max=o}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:r}=t,i;return r?(i=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,i>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${i} ticks. Limiting to 1000.`),i=1e3)):(i=this.computeTickLimit(),n=n||11),n&&(i=Math.min(n,i)),i}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,n=t.ticks;let r=this.getTickLimit();r=Math.max(2,r);const i={maxTicks:r,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},o=this._range||this,a=cD(i,o);return t.bounds==="ticks"&&QF(a,this,"value"),t.reverse?(a.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),a}configure(){const t=this.ticks;let n=this.min,r=this.max;if(super.configure(),this.options.offset&&t.length){const i=(r-n)/Math.max(t.length-1,1)/2;n-=i,r+=i}this._startValue=n,this._endValue=r,this._valueRange=r-n}getLabelForValue(t){return zC(t,this.chart.options.locale,this.options.ticks.format)}}class Yg extends uD{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=_r(t)?t:0,this.max=_r(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,r=ko(this.options.ticks.minRotation),i=(t?Math.sin(r):Math.cos(r))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,o.lineHeight/i))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}Le(Yg,"id","linear"),Le(Yg,"defaults",{ticks:{callback:HC.formatters.numeric}});const Yf={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Hn=Object.keys(Yf);function jb(e,t){return e-t}function Hb(e,t){if(Ft(t))return null;const n=e._adapter,{parser:r,round:i,isoWeekday:o}=e._parseOpts;let a=t;return typeof r=="function"&&(a=r(a)),_r(a)||(a=typeof r=="string"?n.parse(a,r):n.parse(a)),a===null?null:(i&&(a=i==="week"&&(Dl(o)||o===!0)?n.startOf(a,"isoWeek",o):n.startOf(a,i)),+a)}function Bb(e,t,n,r){const i=Hn.length;for(let o=Hn.indexOf(e);o=Hn.indexOf(n);o--){const a=Hn[o];if(Yf[a].common&&e._adapter.diff(i,r,a)>=t-1)return a}return Hn[n?Hn.indexOf(n):0]}function dD(e){for(let t=Hn.indexOf(e)+1,n=Hn.length;t=t?n[r]:n[i];e[o]=!0}}function hD(e,t,n,r){const i=e._adapter,o=+i.startOf(t[0].value,r),a=t[t.length-1].value;let s,l;for(s=o;s<=a;s=+i.add(s,1,r))l=n[s],l>=0&&(t[l].major=!0);return t}function Wb(e,t,n){const r=[],i={},o=t.length;let a,s;for(a=0;a+t.value))}initOffsets(t=[]){let n=0,r=0,i,o;this.options.offset&&t.length&&(i=this.getDecimalForValue(t[0]),t.length===1?n=1-i:n=(this.getDecimalForValue(t[1])-i)/2,o=this.getDecimalForValue(t[t.length-1]),t.length===1?r=o:r=(o-this.getDecimalForValue(t[t.length-2]))/2);const a=t.length<3?.5:.25;n=yr(n,0,a),r=yr(r,0,a),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const t=this._adapter,n=this.min,r=this.max,i=this.options,o=i.time,a=o.unit||Bb(o.minUnit,n,r,this._getLabelCapacity(n)),s=je(i.ticks.stepSize,1),l=a==="week"?o.isoWeekday:!1,c=Dl(l)||l===!0,u={};let f=n,d,g;if(c&&(f=+t.startOf(f,"isoWeek",l)),f=+t.startOf(f,c?"day":a),t.diff(r,n,a)>1e5*s)throw new Error(n+" and "+r+" are too far apart with stepSize of "+s+" "+a);const m=i.ticks.source==="data"&&this.getDataTimestamps();for(d=f,g=0;d+y)}getLabelForValue(t){const n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(t,r.tooltipFormat):n.format(t,r.displayFormats.datetime)}format(t,n){const i=this.options.time.displayFormats,o=this._unit,a=n||i[o];return this._adapter.format(t,a)}_tickFormatFunction(t,n,r,i){const o=this.options,a=o.ticks.callback;if(a)return Ie(a,[t,n,r],this);const s=o.time.displayFormats,l=this._unit,c=this._majorUnit,u=l&&s[l],f=c&&s[c],d=r[n],g=c&&f&&d&&d.major;return this._adapter.format(t,i||(g?f:u))}generateTickLabels(t){let n,r,i;for(n=0,r=t.length;n0?s:1}getDataTimestamps(){let t=this._cache.data||[],n,r;if(t.length)return t;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(n=0,r=i.length;n=e[r].pos&&t<=e[i].pos&&({lo:r,hi:i}=Oo(e,"pos",t)),{pos:o,time:s}=e[r],{pos:a,time:l}=e[i]):(t>=e[r].time&&t<=e[i].time&&({lo:r,hi:i}=Oo(e,"time",t)),{time:o,pos:s}=e[r],{time:a,pos:l}=e[i]);const c=a-o;return c?s+(l-s)*(t-o)/c:s}class Ub extends lf{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=Gc(n,this.min),this._tableRange=Gc(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:r}=this,i=[],o=[];let a,s,l,c,u;for(a=0,s=t.length;a=n&&c<=r&&i.push(c);if(i.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(a=0,s=i.length;ai-o)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const n=this.getDataTimestamps(),r=this.getLabelTimestamps();return n.length&&r.length?t=this.normalize(n.concat(r)):t=n.length?n:r,t=this._cache.all=t,t}getDecimalForValue(t){return(Gc(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return Gc(this._table,r*this._tableRange+this._minPos,!0)}}Le(Ub,"id","timeseries"),Le(Ub,"defaults",lf.defaults);const g_="label";function qb(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function gD(e,t){const n=e.options;n&&t&&Object.assign(n,t)}function p_(e,t){e.labels=t}function m_(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:g_;const r=[];e.datasets=t.map(i=>{const o=e.datasets.find(a=>a[n]===i[n]);return!o||!i.data||r.includes(o)?{...i}:(r.push(o),Object.assign(o,i),o)})}function pD(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:g_;const n={labels:[],datasets:[]};return p_(n,e.labels),m_(n,e.datasets,t),n}function mD(e,t){const{height:n=150,width:r=300,redraw:i=!1,datasetIdKey:o,type:a,data:s,options:l,plugins:c=[],fallbackContent:u,updateMode:f,...d}=e,g=v.useRef(null),m=v.useRef(),y=()=>{g.current&&(m.current=new Kf(g.current,{type:a,data:pD(s,o),options:l&&{...l},plugins:c}),qb(t,m.current))},b=()=>{qb(t,null),m.current&&(m.current.destroy(),m.current=null)};return v.useEffect(()=>{!i&&m.current&&l&&gD(m.current,l)},[i,l]),v.useEffect(()=>{!i&&m.current&&p_(m.current.config.data,s.labels)},[i,s.labels]),v.useEffect(()=>{!i&&m.current&&s.datasets&&m_(m.current.config.data,s.datasets,o)},[i,s.datasets]),v.useEffect(()=>{m.current&&(i?(b(),setTimeout(y)):m.current.update(f))},[i,l,s.labels,s.datasets,f]),v.useEffect(()=>{m.current&&(b(),setTimeout(y))},[a]),v.useEffect(()=>(y(),()=>b()),[]),$e.createElement("canvas",Object.assign({ref:g,role:"img",height:n,width:r},d),u)}const vD=v.forwardRef(mD);function yD(e,t){return Kf.register(t),v.forwardRef((n,r)=>$e.createElement(vD,Object.assign({},n,{ref:r,type:e})))}const bD=yD("line",mu);function xD({currency:e,data:t}){if(!t.length)return null;const n=["Today",...Array.from({length:t[0].plan.years*12},(i,o)=>`Year ${Math.floor(o/12)} Month ${o%12+1}`)],r=t.map(i=>({label:i.platform.name,data:i.portfolioValues,borderColor:i.platform.color,backgroundColor:`${i.platform.color}70`}));return Ge.jsx(bD,{data:{labels:n,datasets:[...r,{label:"Invested Amount",data:t[0].investedValues,borderColor:"#d0d0d0",backgroundColor:"#d0d0d070",borderDash:[5,5]}]},options:{animation:!1,interaction:{intersect:!1,mode:"index"},elements:{point:{radius:0}},scales:{x:{ticks:{callback:(i,o)=>o%12===0?`Year ${o/12}`:""}},y:{ticks:{callback:i=>`${i.toLocaleString()} ${e}`}}},plugins:{legend:{position:"bottom"},tooltip:{callbacks:{label:i=>{const o=i.dataset.label,a=i.parsed.y;return`${o}: ${a.toLocaleString()} ${e}`}}},zoom:{zoom:{drag:{enabled:!0},wheel:{enabled:!0},pinch:{enabled:!0},mode:"x"}}}}})}const cf=(e,t,n)=>typeof n=="function"?n(e,t):n,Gb=(e,t,n,r)=>{const i=cf(n,t,r.fixedFee),o=cf(n,t,r.percentageFee)/100;return e*(1-o)-i},SD=(e,t,n)=>{const i=cf(t,e,n.annualPercentageFee)/100/12;return e*(1-i)},wD=(e,t)=>{const n=(1+e.averageAnnualReturn/100)**.08333333333333333,r=[cf(e,0,e.baseInvestment)],i=[Gb(e.baseInvestment,0,e,t)];for(let o=0;o{let n=0;e.years>=15?n=.4:e.years>=10?n=.3:e.years>=7?n=.25:e.years>=5&&(n=.2);let r=1;return t>5e6?r=.4:t>1e6?r=.6:t>5e5&&(r=.8),r-r*n}},patria:{name:"Patria",color:"#f59100",fixedFee:0,percentageFee:.8,annualPercentageFee:0},t212:{name:"T212",color:"#00a7e1",fixedFee:0,percentageFee:.15,annualPercentageFee:0},ibkr:{name:"IBKR",color:"#d91222",fixedFee:e=>e.numberOfProducts*CD,percentageFee:.03,annualPercentageFee:0},nofees:{name:"0% fees",color:"#d0d0d0",fixedFee:0,percentageFee:0,annualPercentageFee:0}};function _D(){const[e,t]=v.useState({years:14,baseInvestment:3e4,monthlyInvestment:8e3,averageAnnualReturn:9.5,numberOfProducts:8}),[n]=v.useState("Kč"),r=v.useMemo(()=>{const o=[];for(const a in Xb){const s=wD(e,Xb[a]);o.push(s)}return o},[e]),i=(o,a)=>{t(s=>({...s,[o]:a}))};return Ge.jsxs("div",{className:"max-w-screen-xl mx-auto py-10",children:[Ge.jsxs("h1",{className:"text-3xl mb-10 font-bold text-center",children:["Investment Growth Over ",e.years," Years"]}),Ge.jsx(xD,{data:r,currency:n}),Ge.jsxs(zn,{layout:"vertical",children:[Ge.jsx(zn.Item,{label:Ge.jsxs("span",{children:["Base Investment"," ",Ge.jsx(Li,{title:"The one-time investment you plan to make.",children:Ge.jsx(ga,{})})]}),children:Ge.jsx(ha,{min:0,step:1e3,value:e.baseInvestment,onChange:o=>o!=null&&i("baseInvestment",o),addonAfter:n})}),Ge.jsx(zn.Item,{label:Ge.jsxs("span",{children:["Monthly Investment"," ",Ge.jsx(Li,{title:"The amount of money you plan to invest each month.",children:Ge.jsx(ga,{})})]}),children:Ge.jsx(ha,{min:0,step:100,value:e.monthlyInvestment,onChange:o=>o!=null&&i("monthlyInvestment",o),addonAfter:n})}),Ge.jsx(zn.Item,{label:Ge.jsxs("span",{children:["Average Annual Return"," ",Ge.jsx(Li,{title:"The expected average annual return rate.",children:Ge.jsx(ga,{})})]}),children:Ge.jsx(ha,{min:0,max:100,step:.1,value:e.averageAnnualReturn,onChange:o=>o!=null&&i("averageAnnualReturn",o),addonAfter:"%"})}),Ge.jsx(zn.Item,{label:Ge.jsxs("span",{children:["Years investing"," ",Ge.jsx(Li,{title:"The number of years you plan to invest. This also affects Portu fees.",children:Ge.jsx(ga,{})})]}),children:Ge.jsxs(yC,{children:[Ge.jsx(Zu,{span:8,children:Ge.jsx(AI,{min:1,max:50,onChange:o=>o!=null&&i("years",o),value:e.years})}),Ge.jsx(Zu,{span:4,children:Ge.jsx(ha,{min:1,max:50,value:e.years,onChange:o=>o!=null&&i("years",o)})})]})}),Ge.jsx(zn.Item,{label:Ge.jsxs("span",{children:["Number of investment products"," ",Ge.jsx(Li,{title:"The number of investment products you plan to have in your portfolio (e.g. number of ETFs). This affects the IBKR fee.",children:Ge.jsx(ga,{})})]}),children:Ge.jsx(ha,{min:1,step:1,value:e.numberOfProducts,onChange:o=>o!=null&&i("numberOfProducts",o)})})]})]})}var v_={exports:{}};/*! Hammer.JS - v2.0.7 - 2016-04-22 - * http://hammerjs.github.io/ - * - * Copyright (c) 2016 Jorik Tangelder; - * Licensed under the MIT license */(function(e){(function(t,n,r,i){var o=["","webkit","Moz","MS","ms","o"],a=n.createElement("div"),s="function",l=Math.round,c=Math.abs,u=Date.now;function f(C,M,R){return setTimeout(x(C,R),M)}function d(C,M,R){return Array.isArray(C)?(g(C,R[M],R),!0):!1}function g(C,M,R){var H;if(C)if(C.forEach)C.forEach(M,R);else if(C.length!==i)for(H=0;H\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",Ae=t.console&&(t.console.warn||t.console.log);return Ae&&Ae.call(t.console,H,re),C.apply(this,arguments)}}var y;typeof Object.assign!="function"?y=function(M){if(M===i||M===null)throw new TypeError("Cannot convert undefined or null to object");for(var R=Object(M),H=1;H-1}function O(C){return C.trim().split(/\s+/g)}function I(C,M,R){if(C.indexOf&&!R)return C.indexOf(M);for(var H=0;Hrt[M]}),H}function j(C,M){for(var R,H,K=M[0].toUpperCase()+M.slice(1),re=0;re1&&!R.firstMultiple?R.firstMultiple=Ve(M):K===1&&(R.firstMultiple=!1);var re=R.firstInput,Ae=R.firstMultiple,At=Ae?Ae.center:re.center,Rt=M.center=Qe(H);M.timeStamp=u(),M.deltaTime=M.timeStamp-re.timeStamp,M.angle=Pt(At,Rt),M.distance=Ot(At,Rt),Pe(R,M),M.offsetDirection=Zt(M.deltaX,M.deltaY);var rt=gt(M.deltaTime,M.deltaX,M.deltaY);M.overallVelocityX=rt.x,M.overallVelocityY=rt.y,M.overallVelocity=c(rt.x)>c(rt.y)?rt.x:rt.y,M.scale=Ae?bt(Ae.pointers,H):1,M.rotation=Ae?Bt(Ae.pointers,H):0,M.maxPointers=R.prevInput?M.pointers.length>R.prevInput.maxPointers?M.pointers.length:R.prevInput.maxPointers:M.pointers.length,Re(R,M);var tn=C.element;k(M.srcEvent.target,tn)&&(tn=M.srcEvent.target),M.target=tn}function Pe(C,M){var R=M.center,H=C.offsetDelta||{},K=C.prevDelta||{},re=C.prevInput||{};(M.eventType===G||re.eventType===Z)&&(K=C.prevDelta={x:re.deltaX||0,y:re.deltaY||0},H=C.offsetDelta={x:R.x,y:R.y}),M.deltaX=K.x+(R.x-H.x),M.deltaY=K.y+(R.y-H.y)}function Re(C,M){var R=C.lastInterval||M,H=M.timeStamp-R.timeStamp,K,re,Ae,At;if(M.eventType!=ne&&(H>te||R.velocity===i)){var Rt=M.deltaX-R.deltaX,rt=M.deltaY-R.deltaY,tn=gt(H,Rt,rt);re=tn.x,Ae=tn.y,K=c(tn.x)>c(tn.y)?tn.x:tn.y,At=Zt(Rt,rt),C.lastInterval=M}else K=R.velocity,re=R.velocityX,Ae=R.velocityY,At=R.direction;M.velocity=K,M.velocityX=re,M.velocityY=Ae,M.direction=At}function Ve(C){for(var M=[],R=0;R=c(M)?C<0?de:Se:M<0?me:he}function Ot(C,M,R){R||(R=ze);var H=M[R[0]]-C[R[0]],K=M[R[1]]-C[R[1]];return Math.sqrt(H*H+K*K)}function Pt(C,M,R){R||(R=ze);var H=M[R[0]]-C[R[0]],K=M[R[1]]-C[R[1]];return Math.atan2(K,H)*180/Math.PI}function Bt(C,M){return Pt(M[1],M[0],Me)+Pt(C[1],C[0],Me)}function bt(C,M){return Ot(M[0],M[1],Me)/Ot(C[0],C[1],Me)}var ar={mousedown:G,mousemove:Q,mouseup:Z},un="mousedown",Tt="mousemove mouseup";function lt(){this.evEl=un,this.evWin=Tt,this.pressed=!1,ie.apply(this,arguments)}h(lt,ie,{handler:function(M){var R=ar[M.type];R&G&&M.button===0&&(this.pressed=!0),R&Q&&M.which!==1&&(R=Z),this.pressed&&(R&Z&&(this.pressed=!1),this.callback(this.manager,R,{pointers:[M],changedPointers:[M],pointerType:q,srcEvent:M}))}});var Or={pointerdown:G,pointermove:Q,pointerup:Z,pointercancel:ne,pointerout:ne},ct={2:U,3:Y,4:q,5:X},Jt="pointerdown",ye="pointermove pointerup pointercancel";t.MSPointerEvent&&!t.PointerEvent&&(Jt="MSPointerDown",ye="MSPointerMove MSPointerUp MSPointerCancel");function oe(){this.evEl=Jt,this.evWin=ye,ie.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}h(oe,ie,{handler:function(M){var R=this.store,H=!1,K=M.type.toLowerCase().replace("ms",""),re=Or[K],Ae=ct[M.pointerType]||M.pointerType,At=Ae==U,Rt=I(R,M.pointerId,"pointerId");re&G&&(M.button===0||At)?Rt<0&&(R.push(M),Rt=R.length-1):re&(Z|ne)&&(H=!0),!(Rt<0)&&(R[Rt]=M,this.callback(this.manager,re,{pointers:R,changedPointers:[M],pointerType:Ae,srcEvent:M}),H&&R.splice(Rt,1))}});var _e={touchstart:G,touchmove:Q,touchend:Z,touchcancel:ne},Ee="touchstart",Ne="touchstart touchmove touchend touchcancel";function st(){this.evTarget=Ee,this.evWin=Ne,this.started=!1,ie.apply(this,arguments)}h(st,ie,{handler:function(M){var R=_e[M.type];if(R===G&&(this.started=!0),!!this.started){var H=We.call(this,M,R);R&(Z|ne)&&H[0].length-H[1].length===0&&(this.started=!1),this.callback(this.manager,R,{pointers:H[0],changedPointers:H[1],pointerType:U,srcEvent:M})}}});function We(C,M){var R=A(C.touches),H=A(C.changedTouches);return M&(Z|ne)&&(R=D(R.concat(H),"identifier")),[R,H]}var Oe={touchstart:G,touchmove:Q,touchend:Z,touchcancel:ne},Vt="touchstart touchmove touchend touchcancel";function fn(){this.evTarget=Vt,this.targetIds={},ie.apply(this,arguments)}h(fn,ie,{handler:function(M){var R=Oe[M.type],H=tt.call(this,M,R);H&&this.callback(this.manager,R,{pointers:H[0],changedPointers:H[1],pointerType:U,srcEvent:M})}});function tt(C,M){var R=A(C.touches),H=this.targetIds;if(M&(G|Q)&&R.length===1)return H[R[0].identifier]=!0,[R,R];var K,re,Ae=A(C.changedTouches),At=[],Rt=this.target;if(re=R.filter(function(rt){return k(rt.target,Rt)}),M===G)for(K=0;K-1&&H.splice(re,1)};setTimeout(K,Ye)}}function Gr(C){for(var M=C.srcEvent.clientX,R=C.srcEvent.clientY,H=0;H-1&&this.requireFail.splice(M,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(C){return!!this.simultaneous[C.id]},emit:function(C){var M=this,R=this.state;function H(K){M.manager.emit(K,C)}R=St&&H(M.options.event+Nt(R))},tryEmit:function(C){if(this.canEmit())return this.emit(C);this.state=Ct},canEmit:function(){for(var C=0;CM.threshold&&K&M.direction},attrTest:function(C){return $t.prototype.attrTest.call(this,C)&&(this.state&qe||!(this.state&qe)&&this.directionTest(C))},emit:function(C){this.pX=C.deltaX,this.pY=C.deltaY;var M=lr(C.direction);M&&(C.additionalEvent=this.options.event+M),this._super.emit.call(this,C)}});function Xr(){$t.apply(this,arguments)}h(Xr,$t,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[nt]},attrTest:function(C){return this._super.attrTest.call(this,C)&&(Math.abs(C.scale-1)>this.options.threshold||this.state&qe)},emit:function(C){if(C.scale!==1){var M=C.scale<1?"in":"out";C.additionalEvent=this.options.event+M}this._super.emit.call(this,C)}});function Kr(){_t.apply(this,arguments),this._timer=null,this._input=null}h(Kr,_t,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[en]},process:function(C){var M=this.options,R=C.pointers.length===M.pointers,H=C.distanceM.time;if(this._input=C,!H||!R||C.eventType&(Z|ne)&&!K)this.reset();else if(C.eventType&G)this.reset(),this._timer=f(function(){this.state=pt,this.tryEmit()},M.time,this);else if(C.eventType&Z)return pt;return Ct},reset:function(){clearTimeout(this._timer)},emit:function(C){this.state===pt&&(C&&C.eventType&Z?this.manager.emit(this.options.event+"up",C):(this._input.timeStamp=u(),this.manager.emit(this.options.event,this._input)))}});function An(){$t.apply(this,arguments)}h(An,$t,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[nt]},attrTest:function(C){return this._super.attrTest.call(this,C)&&(Math.abs(C.rotation)>this.options.threshold||this.state&qe)}});function lo(){$t.apply(this,arguments)}h(lo,$t,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:ve|ge,pointers:1},getTouchAction:function(){return yn.prototype.getTouchAction.call(this)},attrTest:function(C){var M=this.options.direction,R;return M&(ve|ge)?R=C.overallVelocity:M&ve?R=C.overallVelocityX:M&ge&&(R=C.overallVelocityY),this._super.attrTest.call(this,C)&&M&C.offsetDirection&&C.distance>this.options.threshold&&C.maxPointers==this.options.pointers&&c(R)>this.options.velocity&&C.eventType&Z},emit:function(C){var M=lr(C.offsetDirection);M&&this.manager.emit(this.options.event+M,C),this.manager.emit(this.options.event,C)}});function ci(){_t.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}h(ci,_t,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[On]},process:function(C){var M=this.options,R=C.pointers.length===M.pointers,H=C.distancee&&e.enabled&&e.modifierKey,y_=(e,t)=>e&&t[e+"Key"],zm=(e,t)=>e&&!t[e+"Key"];function io(e,t,n){return e===void 0?!0:typeof e=="string"?e.indexOf(t)!==-1:typeof e=="function"?e({chart:n}).indexOf(t)!==-1:!1}function Zd(e,t){return typeof e=="function"&&(e=e({chart:t})),typeof e=="string"?{x:e.indexOf("x")!==-1,y:e.indexOf("y")!==-1}:{x:!1,y:!1}}function MD(e,t){let n;return function(){return clearTimeout(n),n=setTimeout(e,t),t}}function kD({x:e,y:t},n){const r=n.scales,i=Object.keys(r);for(let o=0;o=a.top&&t<=a.bottom&&e>=a.left&&e<=a.right)return a}return null}function b_(e,t,n){const{mode:r="xy",scaleMode:i,overScaleMode:o}=e||{},a=kD(t,n),s=Zd(r,n),l=Zd(i,n);if(o){const u=Zd(o,n);for(const f of["x","y"])u[f]&&(l[f]=s[f],s[f]=!1)}if(a&&l[a.axis])return[a];const c=[];return He(n.scales,function(u){s[u.axis]&&c.push(u)}),c}const Qg=new WeakMap;function Ht(e){let t=Qg.get(e);return t||(t={originalScaleLimits:{},updatedScaleLimits:{},handlers:{},panDelta:{}},Qg.set(e,t)),t}function OD(e){Qg.delete(e)}function x_(e,t,n){const r=e.max-e.min,i=r*(t-1),o=e.isHorizontal()?n.x:n.y,a=Math.max(0,Math.min(1,(e.getValueForPixel(o)-e.min)/r||0)),s=1-a;return{min:i*a,max:i*s}}function Kb(e,t,n,r,i){let o=n[r];if(o==="original"){const a=e.originalScaleLimits[t.id][r];o=je(a.options,a.scale)}return je(o,i)}function PD(e,t,n){const r=e.getValueForPixel(t),i=e.getValueForPixel(n);return{min:Math.min(r,i),max:Math.max(r,i)}}function ls(e,{min:t,max:n},r,i=!1){const o=Ht(e.chart),{id:a,axis:s,options:l}=e,c=r&&(r[a]||r[s])||{},{minRange:u=0}=c,f=Kb(o,e,c,"min",-1/0),d=Kb(o,e,c,"max",1/0),g=i?Math.max(n-t,u):e.max-e.min,m=(g-n+t)/2;return t-=m,n+=m,td&&(n=d,t=Math.max(d-g,f)),l.min=t,l.max=n,o.updatedScaleLimits[e.id]={min:t,max:n},e.parse(t)!==e.min||e.parse(n)!==e.max}function TD(e,t,n,r){const i=x_(e,t,n),o={min:e.min+i.min,max:e.max-i.max};return ls(e,o,r,!0)}function $D(e,t,n,r){ls(e,PD(e,t,n),r,!0)}const Yb=e=>e===0||isNaN(e)?0:e<0?Math.min(Math.round(e),-1):Math.max(Math.round(e),1);function RD(e){const n=e.getLabels().length-1;e.min>0&&(e.min-=1),e.maxl&&(o=Math.max(0,o-c),a=s===1?o:o+s,u=o===0),ls(e,{min:o,max:a},n)||u}const AD={second:500,minute:30*1e3,hour:30*60*1e3,day:12*60*60*1e3,week:3.5*24*60*60*1e3,month:15*24*60*60*1e3,quarter:60*24*60*60*1e3,year:182*24*60*60*1e3};function S_(e,t,n,r=!1){const{min:i,max:o,options:a}=e,s=a.time&&a.time.round,l=AD[s]||0,c=e.getValueForPixel(e.getPixelForValue(i+l)-t),u=e.getValueForPixel(e.getPixelForValue(o+l)-t),{min:f=-1/0,max:d=1/0}=r&&n&&n[e.axis]||{};return isNaN(c)||isNaN(u)||cd?!0:ls(e,{min:c,max:u},n,r)}function Qb(e,t,n){return S_(e,t,n,!0)}const Zg={category:ID,default:TD},Jg={default:$D},ep={category:ND,default:S_,logarithmic:Qb,timeseries:Qb};function LD(e,t,n){const{id:r,options:{min:i,max:o}}=e;if(!t[r]||!n[r])return!0;const a=n[r];return a.min!==i||a.max!==o}function Zb(e,t){He(e,(n,r)=>{t[r]||delete e[r]})}function cs(e,t){const{scales:n}=e,{originalScaleLimits:r,updatedScaleLimits:i}=t;return He(n,function(o){LD(o,r,i)&&(r[o.id]={min:{scale:o.min,options:o.options.min},max:{scale:o.max,options:o.options.max}})}),Zb(r,n),Zb(i,n),r}function Jb(e,t,n,r){const i=Zg[e.type]||Zg.default;Ie(i,[e,t,n,r])}function e1(e,t,n,r,i){const o=Jg[e.type]||Jg.default;Ie(o,[e,t,n,r,i])}function DD(e){const t=e.chartArea;return{x:(t.left+t.right)/2,y:(t.top+t.bottom)/2}}function jm(e,t,n="none"){const{x:r=1,y:i=1,focalPoint:o=DD(e)}=typeof t=="number"?{x:t,y:t}:t,a=Ht(e),{options:{limits:s,zoom:l}}=a;cs(e,a);const c=r!==1,u=i!==1,f=b_(l,o,e);He(f||e.scales,function(d){d.isHorizontal()&&c?Jb(d,r,o,s):!d.isHorizontal()&&u&&Jb(d,i,o,s)}),e.update(n),Ie(l.onZoom,[{chart:e}])}function w_(e,t,n,r="none"){const i=Ht(e),{options:{limits:o,zoom:a}}=i,{mode:s="xy"}=a;cs(e,i);const l=io(s,"x",e),c=io(s,"y",e);He(e.scales,function(u){u.isHorizontal()&&l?e1(u,t.x,n.x,o):!u.isHorizontal()&&c&&e1(u,t.y,n.y,o)}),e.update(r),Ie(a.onZoom,[{chart:e}])}function zD(e,t,n,r="none"){cs(e,Ht(e));const i=e.scales[t];ls(i,n,void 0,!0),e.update(r)}function jD(e,t="default"){const n=Ht(e),r=cs(e,n);He(e.scales,function(i){const o=i.options;r[i.id]?(o.min=r[i.id].min.options,o.max=r[i.id].max.options):(delete o.min,delete o.max)}),e.update(t),Ie(n.options.zoom.onZoomComplete,[{chart:e}])}function HD(e,t){const n=e.originalScaleLimits[t];if(!n)return;const{min:r,max:i}=n;return je(i.options,i.scale)-je(r.options,r.scale)}function BD(e){const t=Ht(e);let n=1,r=1;return He(e.scales,function(i){const o=HD(t,i.id);if(o){const a=Math.round(o/(i.max-i.min)*100)/100;n=Math.min(n,a),r=Math.max(r,a)}}),n<1?n:r}function t1(e,t,n,r){const{panDelta:i}=r,o=i[e.id]||0;ro(o)===ro(t)&&(t+=o);const a=ep[e.type]||ep.default;Ie(a,[e,t,n])?i[e.id]=0:i[e.id]=t}function C_(e,t,n,r="none"){const{x:i=0,y:o=0}=typeof t=="number"?{x:t,y:t}:t,a=Ht(e),{options:{pan:s,limits:l}}=a,{onPan:c}=s||{};cs(e,a);const u=i!==0,f=o!==0;He(n||e.scales,function(d){d.isHorizontal()&&u?t1(d,i,l,a):!d.isHorizontal()&&f&&t1(d,o,l,a)}),e.update(r),Ie(c,[{chart:e}])}function __(e){const t=Ht(e);cs(e,t);const n={};for(const r of Object.keys(e.scales)){const{min:i,max:o}=t.originalScaleLimits[r]||{min:{},max:{}};n[r]={min:i.scale,max:o.scale}}return n}function VD(e){const t=__(e);for(const n of Object.keys(e.scales)){const{min:r,max:i}=t[n];if(r!==void 0&&e.scales[n].min!==r||i!==void 0&&e.scales[n].max!==i)return!0}return!1}function jn(e,t){const{handlers:n}=Ht(e),r=n[t];r&&r.target&&(r.target.removeEventListener(t,r),delete n[t])}function ol(e,t,n,r){const{handlers:i,options:o}=Ht(e),a=i[n];a&&a.target===t||(jn(e,n),i[n]=s=>r(e,s,o),i[n].target=t,t.addEventListener(n,i[n]))}function WD(e,t){const n=Ht(e);n.dragStart&&(n.dragging=!0,n.dragEnd=t,e.update("none"))}function UD(e,t){const n=Ht(e);!n.dragStart||t.key!=="Escape"||(jn(e,"keydown"),n.dragging=!1,n.dragStart=n.dragEnd=null,e.update("none"))}function E_(e,t,n){const{onZoomStart:r,onZoomRejected:i}=n;if(r){const o=ni(t,e);if(Ie(r,[{chart:e,event:t,point:o}])===!1)return Ie(i,[{chart:e,event:t}]),!1}}function qD(e,t){const n=Ht(e),{pan:r,zoom:i={}}=n.options;if(t.button!==0||y_(Bl(r),t)||zm(Bl(i.drag),t))return Ie(i.onZoomRejected,[{chart:e,event:t}]);E_(e,t,i)!==!1&&(n.dragStart=t,ol(e,e.canvas,"mousemove",WD),ol(e,window.document,"keydown",UD))}function M_(e,t,n,r){const i=io(t,"x",e),o=io(t,"y",e);let{top:a,left:s,right:l,bottom:c,width:u,height:f}=e.chartArea;const d=ni(n,e),g=ni(r,e);i&&(s=Math.min(d.x,g.x),l=Math.max(d.x,g.x)),o&&(a=Math.min(d.y,g.y),c=Math.max(d.y,g.y));const m=l-s,y=c-a;return{left:s,top:a,right:l,bottom:c,width:m,height:y,zoomX:i&&m?1+(u-m)/u:1,zoomY:o&&y?1+(f-y)/f:1}}function GD(e,t){const n=Ht(e);if(!n.dragStart)return;jn(e,"mousemove");const{mode:r,onZoomComplete:i,drag:{threshold:o=0}}=n.options.zoom,a=M_(e,r,n.dragStart,t),s=io(r,"x",e)?a.width:0,l=io(r,"y",e)?a.height:0,c=Math.sqrt(s*s+l*l);if(n.dragStart=n.dragEnd=null,c<=o){n.dragging=!1,e.update("none");return}w_(e,{x:a.left,y:a.top},{x:a.right,y:a.bottom},"zoom"),setTimeout(()=>n.dragging=!1,500),Ie(i,[{chart:e}])}function XD(e,t,n){if(zm(Bl(n.wheel),t)){Ie(n.onZoomRejected,[{chart:e,event:t}]);return}if(E_(e,t,n)!==!1&&(t.cancelable&&t.preventDefault(),t.deltaY!==void 0))return!0}function KD(e,t){const{handlers:{onZoomComplete:n},options:{zoom:r}}=Ht(e);if(!XD(e,t,r))return;const i=t.target.getBoundingClientRect(),o=1+(t.deltaY>=0?-r.wheel.speed:r.wheel.speed),a={x:o,y:o,focalPoint:{x:t.clientX-i.left,y:t.clientY-i.top}};jm(e,a),n&&n()}function YD(e,t,n,r){n&&(Ht(e).handlers[t]=MD(()=>Ie(n,[{chart:e}]),r))}function QD(e,t){const n=e.canvas,{wheel:r,drag:i,onZoomComplete:o}=t.zoom;r.enabled?(ol(e,n,"wheel",KD),YD(e,"onZoomComplete",o,250)):jn(e,"wheel"),i.enabled?(ol(e,n,"mousedown",qD),ol(e,n.ownerDocument,"mouseup",GD)):(jn(e,"mousedown"),jn(e,"mousemove"),jn(e,"mouseup"),jn(e,"keydown"))}function ZD(e){jn(e,"mousedown"),jn(e,"mousemove"),jn(e,"mouseup"),jn(e,"wheel"),jn(e,"click"),jn(e,"keydown")}function JD(e,t){return function(n,r){const{pan:i,zoom:o={}}=t.options;if(!i||!i.enabled)return!1;const a=r&&r.srcEvent;return a&&!t.panning&&r.pointerType==="mouse"&&(zm(Bl(i),a)||y_(Bl(o.drag),a))?(Ie(i.onPanRejected,[{chart:e,event:r}]),!1):!0}}function e5(e,t){const n=Math.abs(e.clientX-t.clientX),r=Math.abs(e.clientY-t.clientY),i=n/r;let o,a;return i>.3&&i<1.7?o=a=!0:n>r?o=!0:a=!0,{x:o,y:a}}function k_(e,t,n){if(t.scale){const{center:r,pointers:i}=n,o=1/t.scale*n.scale,a=n.target.getBoundingClientRect(),s=e5(i[0],i[1]),l=t.options.zoom.mode,c={x:s.x&&io(l,"x",e)?o:1,y:s.y&&io(l,"y",e)?o:1,focalPoint:{x:r.x-a.left,y:r.y-a.top}};jm(e,c),t.scale=n.scale}}function t5(e,t){t.options.zoom.pinch.enabled&&(t.scale=1)}function n5(e,t,n){t.scale&&(k_(e,t,n),t.scale=null,Ie(t.options.zoom.onZoomComplete,[{chart:e}]))}function O_(e,t,n){const r=t.delta;r&&(t.panning=!0,C_(e,{x:n.deltaX-r.x,y:n.deltaY-r.y},t.panScales),t.delta={x:n.deltaX,y:n.deltaY})}function r5(e,t,n){const{enabled:r,onPanStart:i,onPanRejected:o}=t.options.pan;if(!r)return;const a=n.target.getBoundingClientRect(),s={x:n.center.x-a.left,y:n.center.y-a.top};if(Ie(i,[{chart:e,event:n,point:s}])===!1)return Ie(o,[{chart:e,event:n}]);t.panScales=b_(t.options.pan,s,e),t.delta={x:0,y:0},clearTimeout(t.panEndTimeout),O_(e,t,n)}function i5(e,t){t.delta=null,t.panning&&(t.panEndTimeout=setTimeout(()=>t.panning=!1,500),Ie(t.options.pan.onPanComplete,[{chart:e}]))}const tp=new WeakMap;function o5(e,t){const n=Ht(e),r=e.canvas,{pan:i,zoom:o}=t,a=new il.Manager(r);o&&o.pinch.enabled&&(a.add(new il.Pinch),a.on("pinchstart",()=>t5(e,n)),a.on("pinch",s=>k_(e,n,s)),a.on("pinchend",s=>n5(e,n,s))),i&&i.enabled&&(a.add(new il.Pan({threshold:i.threshold,enable:JD(e,n)})),a.on("panstart",s=>r5(e,n,s)),a.on("panmove",s=>O_(e,n,s)),a.on("panend",()=>i5(e,n))),tp.set(e,a)}function a5(e){const t=tp.get(e);t&&(t.remove("pinchstart"),t.remove("pinch"),t.remove("pinchend"),t.remove("panstart"),t.remove("pan"),t.remove("panend"),t.destroy(),tp.delete(e))}var s5="2.0.1";function Xc(e,t,n){const r=n.zoom.drag,{dragStart:i,dragEnd:o}=Ht(e);if(r.drawTime!==t||!o)return;const{left:a,top:s,width:l,height:c}=M_(e,n.zoom.mode,i,o),u=e.ctx;u.save(),u.beginPath(),u.fillStyle=r.backgroundColor||"rgba(225,225,225,0.3)",u.fillRect(a,s,l,c),r.borderWidth>0&&(u.lineWidth=r.borderWidth,u.strokeStyle=r.borderColor||"rgba(225,225,225)",u.strokeRect(a,s,l,c)),u.restore()}var l5={id:"zoom",version:s5,defaults:{pan:{enabled:!1,mode:"xy",threshold:10,modifierKey:null},zoom:{wheel:{enabled:!1,speed:.1,modifierKey:null},drag:{enabled:!1,drawTime:"beforeDatasetsDraw",modifierKey:null},pinch:{enabled:!1},mode:"xy"}},start:function(e,t,n){const r=Ht(e);r.options=n,Object.prototype.hasOwnProperty.call(n.zoom,"enabled")&&console.warn("The option `zoom.enabled` is no longer supported. Please use `zoom.wheel.enabled`, `zoom.drag.enabled`, or `zoom.pinch.enabled`."),(Object.prototype.hasOwnProperty.call(n.zoom,"overScaleMode")||Object.prototype.hasOwnProperty.call(n.pan,"overScaleMode"))&&console.warn("The option `overScaleMode` is deprecated. Please use `scaleMode` instead (and update `mode` as desired)."),il&&o5(e,n),e.pan=(i,o,a)=>C_(e,i,o,a),e.zoom=(i,o)=>jm(e,i,o),e.zoomRect=(i,o,a)=>w_(e,i,o,a),e.zoomScale=(i,o,a)=>zD(e,i,o,a),e.resetZoom=i=>jD(e,i),e.getZoomLevel=()=>BD(e),e.getInitialScaleBounds=()=>__(e),e.isZoomedOrPanned=()=>VD(e)},beforeEvent(e){const t=Ht(e);if(t.panning||t.dragging)return!1},beforeUpdate:function(e,t,n){const r=Ht(e);r.options=n,QD(e,n)},beforeDatasetsDraw(e,t,n){Xc(e,"beforeDatasetsDraw",n)},afterDatasetsDraw(e,t,n){Xc(e,"afterDatasetsDraw",n)},beforeDraw(e,t,n){Xc(e,"beforeDraw",n)},afterDraw(e,t,n){Xc(e,"afterDraw",n)},stop:function(e){ZD(e),il&&a5(e),OD(e)},panFunctions:ep,zoomFunctions:Zg,zoomRectFunctions:Jg};Kf.register(Kg,Yg,bu,Ns,QL,oD,KL,l5);gS(document.getElementById("root")).render(Ge.jsx(v.StrictMode,{children:Ge.jsx(_D,{})})); diff --git a/assets/index-DIy-qacd.js b/assets/index-DIy-qacd.js new file mode 100644 index 0000000..61bbf73 --- /dev/null +++ b/assets/index-DIy-qacd.js @@ -0,0 +1,247 @@ +var k_=Object.defineProperty;var I_=(e,t,n)=>t in e?k_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ze=(e,t,n)=>I_(e,typeof t!="symbol"?t+"":t,n);function G1(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();function xd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var q1={exports:{}},Sd={},X1={exports:{}},Ue={};/** + * @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 Jl=Symbol.for("react.element"),F_=Symbol.for("react.portal"),N_=Symbol.for("react.fragment"),A_=Symbol.for("react.strict_mode"),L_=Symbol.for("react.profiler"),D_=Symbol.for("react.provider"),z_=Symbol.for("react.context"),j_=Symbol.for("react.forward_ref"),H_=Symbol.for("react.suspense"),B_=Symbol.for("react.memo"),V_=Symbol.for("react.lazy"),Ev=Symbol.iterator;function W_(e){return e===null||typeof e!="object"?null:(e=Ev&&e[Ev]||e["@@iterator"],typeof e=="function"?e:null)}var K1={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Y1=Object.assign,Q1={};function as(e,t,n){this.props=e,this.context=t,this.refs=Q1,this.updater=n||K1}as.prototype.isReactComponent={};as.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")};as.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Z1(){}Z1.prototype=as.prototype;function Mp(e,t,n){this.props=e,this.context=t,this.refs=Q1,this.updater=n||K1}var Tp=Mp.prototype=new Z1;Tp.constructor=Mp;Y1(Tp,as.prototype);Tp.isPureReactComponent=!0;var _v=Array.isArray,J1=Object.prototype.hasOwnProperty,Pp={current:null},ex={key:!0,ref:!0,__self:!0,__source:!0};function tx(e,t,n){var r,i={},o=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(o=""+t.key),t)J1.call(t,r)&&!ex.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1>>1,G=$[H];if(0>>1;Hi(X,A))eei(q,X)?($[H]=q,$[ee]=A,H=ee):($[H]=X,$[U]=A,H=U);else if(eei(q,A))$[H]=q,$[ee]=A,H=ee;else break e}}return I}function i($,I){var A=$.sortIndex-I.sortIndex;return A!==0?A:$.id-I.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],c=[],u=1,d=null,f=3,p=!1,v=!1,y=!1,b=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x($){for(var I=n(c);I!==null;){if(I.callback===null)r(c);else if(I.startTime<=$)r(c),I.sortIndex=I.expirationTime,t(l,I);else break;I=n(c)}}function S($){if(y=!1,x($),!v)if(n(l)!==null)v=!0,N(w);else{var I=n(c);I!==null&&R(S,I.startTime-$)}}function w($,I){v=!1,y&&(y=!1,m(M),M=-1),p=!0;var A=f;try{for(x(I),d=n(l);d!==null&&(!(d.expirationTime>I)||$&&!F());){var H=d.callback;if(typeof H=="function"){d.callback=null,f=d.priorityLevel;var G=H(d.expirationTime<=I);I=e.unstable_now(),typeof G=="function"?d.callback=G:d===n(l)&&r(l),x(I)}else r(l);d=n(l)}if(d!==null)var Y=!0;else{var U=n(c);U!==null&&R(S,U.startTime-I),Y=!1}return Y}finally{d=null,f=A,p=!1}}var C=!1,_=null,M=-1,T=5,P=-1;function F(){return!(e.unstable_now()-P$||125<$?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<$?Math.floor(1e3/$):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function($){switch(f){case 1:case 2:case 3:var I=3;break;default:I=f}var A=f;f=I;try{return $()}finally{f=A}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function($,I){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var A=f;f=$;try{return I()}finally{f=A}},e.unstable_scheduleCallback=function($,I,A){var H=e.unstable_now();switch(typeof A=="object"&&A!==null?(A=A.delay,A=typeof A=="number"&&0H?($.sortIndex=A,t(c,$),n(l)===null&&$===n(c)&&(y?(m(M),M=-1):y=!0,R(S,A-H))):($.sortIndex=G,t(l,$),v||p||(v=!0,N(w))),$},e.unstable_shouldYield=F,e.unstable_wrapCallback=function($){var I=f;return function(){var A=f;f=I;try{return $.apply(this,arguments)}finally{f=A}}}})(ax);ox.exports=ax;var t2=ox.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 n2=h,ar=t2;function J(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"),xh=Object.prototype.hasOwnProperty,r2=/^[: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]*$/,Mv={},Tv={};function i2(e){return xh.call(Tv,e)?!0:xh.call(Mv,e)?!1:r2.test(e)?Tv[e]=!0:(Mv[e]=!0,!1)}function o2(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 a2(e,t,n,r){if(t===null||typeof t>"u"||o2(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 zn(e,t,n,r,i,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var xn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){xn[e]=new zn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];xn[t]=new zn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){xn[e]=new zn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){xn[e]=new zn(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){xn[e]=new zn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){xn[e]=new zn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){xn[e]=new zn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){xn[e]=new zn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){xn[e]=new zn(e,5,!1,e.toLowerCase(),null,!1,!1)});var Rp=/[\-:]([a-z])/g;function kp(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(Rp,kp);xn[t]=new zn(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(Rp,kp);xn[t]=new zn(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(Rp,kp);xn[t]=new zn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){xn[e]=new zn(e,1,!1,e.toLowerCase(),null,!1,!1)});xn.xlinkHref=new zn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){xn[e]=new zn(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ip(e,t,n,r){var i=xn.hasOwnProperty(t)?xn[t]:null;(i!==null?i.type!==0:r||!(2s||i[a]!==o[s]){var l=` +`+i[a].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{gf=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?As(e):""}function s2(e){switch(e.tag){case 5:return As(e.type);case 16:return As("Lazy");case 13:return As("Suspense");case 19:return As("SuspenseList");case 0:case 2:case 15:return e=pf(e.type,!1),e;case 11:return e=pf(e.type.render,!1),e;case 1:return e=pf(e.type,!0),e;default:return""}}function Eh(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 Sa:return"Fragment";case xa:return"Portal";case Sh:return"Profiler";case Fp:return"StrictMode";case wh:return"Suspense";case Ch:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case cx:return(e.displayName||"Context")+".Consumer";case lx:return(e._context.displayName||"Context")+".Provider";case Np:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ap:return t=e.displayName||null,t!==null?t:Eh(e.type)||"Memo";case Li:t=e._payload,e=e._init;try{return Eh(e(t))}catch{}}return null}function l2(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 Eh(t);case 8:return t===Fp?"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 io(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function dx(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function c2(e){var t=dx(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){r=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function mc(e){e._valueTracker||(e._valueTracker=c2(e))}function fx(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=dx(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ru(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 _h(e,t){var n=t.checked;return $t({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function $v(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=io(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 hx(e,t){t=t.checked,t!=null&&Ip(e,"checked",t,!1)}function Oh(e,t){hx(e,t);var n=io(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")?Mh(e,t.type,n):t.hasOwnProperty("defaultValue")&&Mh(e,t.type,io(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Rv(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 Mh(e,t,n){(t!=="number"||Ru(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ls=Array.isArray;function Aa(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=vc.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ml(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Gs={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},u2=["Webkit","ms","Moz","O"];Object.keys(Gs).forEach(function(e){u2.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Gs[t]=Gs[e]})});function vx(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Gs.hasOwnProperty(e)&&Gs[e]?(""+t).trim():t+"px"}function yx(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=vx(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var d2=$t({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 $h(e,t){if(t){if(d2[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(J(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(J(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(J(61))}if(t.style!=null&&typeof t.style!="object")throw Error(J(62))}}function Rh(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 kh=null;function Lp(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ih=null,La=null,Da=null;function Fv(e){if(e=nc(e)){if(typeof Ih!="function")throw Error(J(280));var t=e.stateNode;t&&(t=Md(t),Ih(e.stateNode,e.type,t))}}function bx(e){La?Da?Da.push(e):Da=[e]:La=e}function xx(){if(La){var e=La,t=Da;if(Da=La=null,Fv(e),t)for(e=0;e>>=0,e===0?32:31-(w2(e)/C2|0)|0}var yc=64,bc=4194304;function Ds(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 Nu(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~i;s!==0?r=Ds(s):(o&=a,o!==0&&(r=Ds(o)))}else a=n&~i,a!==0?r=Ds(a):o!==0&&(r=Ds(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function ec(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Wr(t),e[t]=n}function M2(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=Xs),Vv=" ",Wv=!1;function jx(e,t){switch(e){case"keyup":return tO.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hx(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var wa=!1;function rO(e,t){switch(e){case"compositionend":return Hx(t);case"keypress":return t.which!==32?null:(Wv=!0,Vv);case"textInput":return e=t.data,e===Vv&&Wv?null:e;default:return null}}function iO(e,t){if(wa)return e==="compositionend"||!Up&&jx(e,t)?(e=Dx(),cu=Bp=Bi=null,wa=!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=Xv(n)}}function Ux(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ux(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Gx(){for(var e=window,t=Ru();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ru(e.document)}return t}function Gp(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 hO(e){var t=Gx(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ux(n.ownerDocument.documentElement,n)){if(r!==null&&Gp(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=Kv(n,o);var a=Kv(n,r);i&&a&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Ca=null,zh=null,Ys=null,jh=!1;function Yv(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;jh||Ca==null||Ca!==Ru(r)||(r=Ca,"selectionStart"in r&&Gp(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}),Ys&&wl(Ys,r)||(Ys=r,r=Du(zh,"onSelect"),0Oa||(e.current=Gh[Oa],Gh[Oa]=null,Oa--)}function pt(e,t){Oa++,Gh[Oa]=e.current,e.current=t}var oo={},Pn=uo(oo),Kn=uo(!1),Ho=oo;function Ua(e,t){var n=e.type.contextTypes;if(!n)return oo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Yn(e){return e=e.childContextTypes,e!=null}function ju(){vt(Kn),vt(Pn)}function r0(e,t,n){if(Pn.current!==oo)throw Error(J(168));pt(Pn,t),pt(Kn,n)}function tS(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(J(108,l2(e)||"Unknown",i));return $t({},n,r)}function Hu(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||oo,Ho=Pn.current,pt(Pn,e),pt(Kn,Kn.current),!0}function i0(e,t,n){var r=e.stateNode;if(!r)throw Error(J(169));n?(e=tS(e,t,Ho),r.__reactInternalMemoizedMergedChildContext=e,vt(Kn),vt(Pn),pt(Pn,e)):vt(Kn),pt(Kn,n)}var vi=null,Td=!1,Pf=!1;function nS(e){vi===null?vi=[e]:vi.push(e)}function _O(e){Td=!0,nS(e)}function fo(){if(!Pf&&vi!==null){Pf=!0;var e=0,t=st;try{var n=vi;for(st=1;e>=a,i-=a,bi=1<<32-Wr(t)+i|n<M?(T=_,_=null):T=_.sibling;var P=f(m,_,x[M],S);if(P===null){_===null&&(_=T);break}e&&_&&P.alternate===null&&t(m,_),g=o(P,g,M),C===null?w=P:C.sibling=P,C=P,_=T}if(M===x.length)return n(m,_),St&&Eo(m,M),w;if(_===null){for(;MM?(T=_,_=null):T=_.sibling;var F=f(m,_,P.value,S);if(F===null){_===null&&(_=T);break}e&&_&&F.alternate===null&&t(m,_),g=o(F,g,M),C===null?w=F:C.sibling=F,C=F,_=T}if(P.done)return n(m,_),St&&Eo(m,M),w;if(_===null){for(;!P.done;M++,P=x.next())P=d(m,P.value,S),P!==null&&(g=o(P,g,M),C===null?w=P:C.sibling=P,C=P);return St&&Eo(m,M),w}for(_=r(m,_);!P.done;M++,P=x.next())P=p(_,m,M,P.value,S),P!==null&&(e&&P.alternate!==null&&_.delete(P.key===null?M:P.key),g=o(P,g,M),C===null?w=P:C.sibling=P,C=P);return e&&_.forEach(function(D){return t(m,D)}),St&&Eo(m,M),w}function b(m,g,x,S){if(typeof x=="object"&&x!==null&&x.type===Sa&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case pc:e:{for(var w=x.key,C=g;C!==null;){if(C.key===w){if(w=x.type,w===Sa){if(C.tag===7){n(m,C.sibling),g=i(C,x.props.children),g.return=m,m=g;break e}}else if(C.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===Li&&s0(w)===C.type){n(m,C.sibling),g=i(C,x.props),g.ref=_s(m,C,x),g.return=m,m=g;break e}n(m,C);break}else t(m,C);C=C.sibling}x.type===Sa?(g=Lo(x.props.children,m.mode,S,x.key),g.return=m,m=g):(S=vu(x.type,x.key,x.props,null,m.mode,S),S.ref=_s(m,g,x),S.return=m,m=S)}return a(m);case xa:e:{for(C=x.key;g!==null;){if(g.key===C)if(g.tag===4&&g.stateNode.containerInfo===x.containerInfo&&g.stateNode.implementation===x.implementation){n(m,g.sibling),g=i(g,x.children||[]),g.return=m,m=g;break e}else{n(m,g);break}else t(m,g);g=g.sibling}g=Lf(x,m.mode,S),g.return=m,m=g}return a(m);case Li:return C=x._init,b(m,g,C(x._payload),S)}if(Ls(x))return v(m,g,x,S);if(xs(x))return y(m,g,x,S);Oc(m,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,g!==null&&g.tag===6?(n(m,g.sibling),g=i(g,x),g.return=m,m=g):(n(m,g),g=Af(x,m.mode,S),g.return=m,m=g),a(m)):n(m,g)}return b}var qa=aS(!0),sS=aS(!1),Wu=uo(null),Uu=null,Pa=null,Yp=null;function Qp(){Yp=Pa=Uu=null}function Zp(e){var t=Wu.current;vt(Wu),e._currentValue=t}function Kh(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 ja(e,t){Uu=e,Yp=Pa=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Xn=!0),e.firstContext=null)}function _r(e){var t=e._currentValue;if(Yp!==e)if(e={context:e,memoizedValue:t,next:null},Pa===null){if(Uu===null)throw Error(J(308));Pa=e,Uu.dependencies={lanes:0,firstContext:e}}else Pa=Pa.next=e;return t}var Po=null;function Jp(e){Po===null?Po=[e]:Po.push(e)}function lS(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Jp(t)):(n.next=i.next,i.next=n),t.interleaved=n,Oi(e,r)}function Oi(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 Di=!1;function em(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function cS(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 Si(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ji(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,et&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Oi(e,n)}return i=r.interleaved,i===null?(t.next=t,Jp(r)):(t.next=i.next,i.next=t),r.interleaved=t,Oi(e,n)}function du(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,zp(e,n)}}function l0(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=a:o=o.next=a,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Gu(e,t,n,r){var i=e.updateQueue;Di=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var l=s,c=l.next;l.next=null,a===null?o=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(o!==null){var d=i.baseState;a=0,u=c=l=null,s=o;do{var f=s.lane,p=s.eventTime;if((r&f)===f){u!==null&&(u=u.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var v=e,y=s;switch(f=t,p=n,y.tag){case 1:if(v=y.payload,typeof v=="function"){d=v.call(p,d,f);break e}d=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=y.payload,f=typeof v=="function"?v.call(p,d,f):v,f==null)break e;d=$t({},d,f);break e;case 2:Di=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(c=u=p,l=d):u=u.next=p,a|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;f=s,s=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(!0);if(u===null&&(l=d),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=u,t=i.shared.interleaved,t!==null){i=t;do a|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);Wo|=a,e.lanes=a,e.memoizedState=d}}function c0(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Rf.transition;Rf.transition={};try{e(!1),t()}finally{st=n,Rf.transition=r}}function OS(){return Or().memoizedState}function PO(e,t,n){var r=to(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},MS(e))TS(t,n);else if(n=lS(e,t,n,r),n!==null){var i=An();Ur(n,e,r,i),PS(n,t,r)}}function $O(e,t,n){var r=to(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(MS(e))TS(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,Xr(s,a)){var l=t.interleaved;l===null?(i.next=i,Jp(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=lS(e,t,i,r),n!==null&&(i=An(),Ur(n,e,r,i),PS(n,t,r))}}function MS(e){var t=e.alternate;return e===Pt||t!==null&&t===Pt}function TS(e,t){Qs=Xu=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function PS(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,zp(e,n)}}var Ku={readContext:_r,useCallback:Cn,useContext:Cn,useEffect:Cn,useImperativeHandle:Cn,useInsertionEffect:Cn,useLayoutEffect:Cn,useMemo:Cn,useReducer:Cn,useRef:Cn,useState:Cn,useDebugValue:Cn,useDeferredValue:Cn,useTransition:Cn,useMutableSource:Cn,useSyncExternalStore:Cn,useId:Cn,unstable_isNewReconciler:!1},RO={readContext:_r,useCallback:function(e,t){return ti().memoizedState=[e,t===void 0?null:t],e},useContext:_r,useEffect:d0,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,hu(4194308,4,SS.bind(null,t,e),n)},useLayoutEffect:function(e,t){return hu(4194308,4,e,t)},useInsertionEffect:function(e,t){return hu(4,2,e,t)},useMemo:function(e,t){var n=ti();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ti();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=PO.bind(null,Pt,e),[r.memoizedState,e]},useRef:function(e){var t=ti();return e={current:e},t.memoizedState=e},useState:u0,useDebugValue:lm,useDeferredValue:function(e){return ti().memoizedState=e},useTransition:function(){var e=u0(!1),t=e[0];return e=TO.bind(null,e[1]),ti().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Pt,i=ti();if(St){if(n===void 0)throw Error(J(407));n=n()}else{if(n=t(),un===null)throw Error(J(349));Vo&30||hS(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,d0(pS.bind(null,r,o,e),[e]),r.flags|=2048,$l(9,gS.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=ti(),t=un.identifierPrefix;if(St){var n=xi,r=bi;n=(r&~(1<<32-Wr(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Tl++,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[oi]=t,e[_l]=r,zS(e,t,!1,!1),t.stateNode=e;e:{switch(a=Rh(n,r),n){case"dialog":mt("cancel",e),mt("close",e),i=r;break;case"iframe":case"object":case"embed":mt("load",e),i=r;break;case"video":case"audio":for(i=0;iYa&&(t.flags|=128,r=!0,Os(o,!1),t.lanes=4194304)}else{if(!r)if(e=qu(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Os(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!St)return En(t),null}else 2*Ht()-o.renderingStartTime>Ya&&n!==1073741824&&(t.flags|=128,r=!0,Os(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(n=o.last,n!==null?n.sibling=a:t.child=a,o.last=a)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Ht(),t.sibling=null,n=Tt.current,pt(Tt,r?n&1|2:n&1),t):(En(t),null);case 22:case 23:return gm(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?nr&1073741824&&(En(t),t.subtreeFlags&6&&(t.flags|=8192)):En(t),null;case 24:return null;case 25:return null}throw Error(J(156,t.tag))}function zO(e,t){switch(Xp(t),t.tag){case 1:return Yn(t.type)&&ju(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Xa(),vt(Kn),vt(Pn),rm(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return nm(t),null;case 13:if(vt(Tt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(J(340));Ga()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return vt(Tt),null;case 4:return Xa(),null;case 10:return Zp(t.type._context),null;case 22:case 23:return gm(),null;case 24:return null;default:return null}}var Tc=!1,On=!1,jO=typeof WeakSet=="function"?WeakSet:Set,ue=null;function $a(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Nt(e,t,r)}else n.current=null}function ig(e,t,n){try{n()}catch(r){Nt(e,t,r)}}var w0=!1;function HO(e,t){if(Hh=Au,e=Gx(),Gp(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var a=0,s=-1,l=-1,c=0,u=0,d=e,f=null;t:for(;;){for(var p;d!==n||i!==0&&d.nodeType!==3||(s=a+i),d!==o||r!==0&&d.nodeType!==3||(l=a+r),d.nodeType===3&&(a+=d.nodeValue.length),(p=d.firstChild)!==null;)f=d,d=p;for(;;){if(d===e)break t;if(f===n&&++c===i&&(s=a),f===o&&++u===r&&(l=a),(p=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=p}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Bh={focusedElem:e,selectionRange:n},Au=!1,ue=t;ue!==null;)if(t=ue,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ue=e;else for(;ue!==null;){t=ue;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var y=v.memoizedProps,b=v.memoizedState,m=t.stateNode,g=m.getSnapshotBeforeUpdate(t.elementType===t.type?y:Lr(t.type,y),b);m.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(J(163))}}catch(S){Nt(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,ue=e;break}ue=t.return}return v=w0,w0=!1,v}function Zs(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&ig(t,n,o)}i=i.next}while(i!==r)}}function Rd(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 og(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 BS(e){var t=e.alternate;t!==null&&(e.alternate=null,BS(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[oi],delete t[_l],delete t[Uh],delete t[CO],delete t[EO])),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 VS(e){return e.tag===5||e.tag===3||e.tag===4}function C0(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||VS(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 ag(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=zu));else if(r!==4&&(e=e.child,e!==null))for(ag(e,t,n),e=e.sibling;e!==null;)ag(e,t,n),e=e.sibling}function sg(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(sg(e,t,n),e=e.sibling;e!==null;)sg(e,t,n),e=e.sibling}var pn=null,Dr=!1;function ki(e,t,n){for(n=n.child;n!==null;)WS(e,t,n),n=n.sibling}function WS(e,t,n){if(si&&typeof si.onCommitFiberUnmount=="function")try{si.onCommitFiberUnmount(Cd,n)}catch{}switch(n.tag){case 5:On||$a(n,t);case 6:var r=pn,i=Dr;pn=null,ki(e,t,n),pn=r,Dr=i,pn!==null&&(Dr?(e=pn,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):pn.removeChild(n.stateNode));break;case 18:pn!==null&&(Dr?(e=pn,n=n.stateNode,e.nodeType===8?Tf(e.parentNode,n):e.nodeType===1&&Tf(e,n),xl(e)):Tf(pn,n.stateNode));break;case 4:r=pn,i=Dr,pn=n.stateNode.containerInfo,Dr=!0,ki(e,t,n),pn=r,Dr=i;break;case 0:case 11:case 14:case 15:if(!On&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,a!==void 0&&(o&2||o&4)&&ig(n,t,a),i=i.next}while(i!==r)}ki(e,t,n);break;case 1:if(!On&&($a(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Nt(n,t,s)}ki(e,t,n);break;case 21:ki(e,t,n);break;case 22:n.mode&1?(On=(r=On)||n.memoizedState!==null,ki(e,t,n),On=r):ki(e,t,n);break;default:ki(e,t,n)}}function E0(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new jO),t.forEach(function(r){var i=YO.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Fr(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=a),r&=~o}if(r=i,r=Ht()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*VO(r/1960))-r,10e?16:e,Vi===null)var r=!1;else{if(e=Vi,Vi=null,Zu=0,et&6)throw Error(J(331));var i=et;for(et|=4,ue=e.current;ue!==null;){var o=ue,a=o.child;if(ue.flags&16){var s=o.deletions;if(s!==null){for(var l=0;lHt()-fm?Ao(e,0):dm|=n),Qn(e,t)}function ZS(e,t){t===0&&(e.mode&1?(t=bc,bc<<=1,!(bc&130023424)&&(bc=4194304)):t=1);var n=An();e=Oi(e,t),e!==null&&(ec(e,t,n),Qn(e,n))}function KO(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),ZS(e,n)}function YO(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(J(314))}r!==null&&r.delete(t),ZS(e,n)}var JS;JS=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Kn.current)Xn=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Xn=!1,LO(e,t,n);Xn=!!(e.flags&131072)}else Xn=!1,St&&t.flags&1048576&&rS(t,Vu,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;gu(e,t),e=t.pendingProps;var i=Ua(t,Pn.current);ja(t,n),i=om(null,t,r,e,i,n);var o=am();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Yn(r)?(o=!0,Hu(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,em(t),i.updater=$d,t.stateNode=i,i._reactInternals=t,Qh(t,r,e,n),t=eg(null,t,r,!0,o,n)):(t.tag=0,St&&o&&qp(t),Nn(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(gu(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=ZO(r),e=Lr(r,e),i){case 0:t=Jh(null,t,r,e,n);break e;case 1:t=b0(null,t,r,e,n);break e;case 11:t=v0(null,t,r,e,n);break e;case 14:t=y0(null,t,r,Lr(r.type,e),n);break e}throw Error(J(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Lr(r,i),Jh(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Lr(r,i),b0(e,t,r,i,n);case 3:e:{if(AS(t),e===null)throw Error(J(387));r=t.pendingProps,o=t.memoizedState,i=o.element,cS(e,t),Gu(t,r,null,n);var a=t.memoizedState;if(r=a.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Ka(Error(J(423)),t),t=x0(e,t,r,n,i);break e}else if(r!==i){i=Ka(Error(J(424)),t),t=x0(e,t,r,n,i);break e}else for(rr=Zi(t.stateNode.containerInfo.firstChild),or=t,St=!0,Hr=null,n=sS(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ga(),r===i){t=Mi(e,t,n);break e}Nn(e,t,r,n)}t=t.child}return t;case 5:return uS(t),e===null&&Xh(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,Vh(r,i)?a=null:o!==null&&Vh(r,o)&&(t.flags|=32),NS(e,t),Nn(e,t,a,n),t.child;case 6:return e===null&&Xh(t),null;case 13:return LS(e,t,n);case 4:return tm(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=qa(t,null,r,n):Nn(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Lr(r,i),v0(e,t,r,i,n);case 7:return Nn(e,t,t.pendingProps,n),t.child;case 8:return Nn(e,t,t.pendingProps.children,n),t.child;case 12:return Nn(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,pt(Wu,r._currentValue),r._currentValue=a,o!==null)if(Xr(o.value,a)){if(o.children===i.children&&!Kn.current){t=Mi(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){a=o.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=Si(-1,n&-n),l.tag=2;var c=o.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}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),Kh(o.return,n,t),s.lanes|=n;break}l=l.next}}else if(o.tag===10)a=o.type===t.type?null:o.child;else if(o.tag===18){if(a=o.return,a===null)throw Error(J(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),Kh(a,n,t),a=o.sibling}else a=o.child;if(a!==null)a.return=o;else for(a=o;a!==null;){if(a===t){a=null;break}if(o=a.sibling,o!==null){o.return=a.return,a=o;break}a=a.return}o=a}Nn(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,ja(t,n),i=_r(i),r=r(i),t.flags|=1,Nn(e,t,r,n),t.child;case 14:return r=t.type,i=Lr(r,t.pendingProps),i=Lr(r.type,i),y0(e,t,r,i,n);case 15:return IS(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Lr(r,i),gu(e,t),t.tag=1,Yn(r)?(e=!0,Hu(t)):e=!1,ja(t,n),$S(t,r,i),Qh(t,r,i,n),eg(null,t,r,!0,e,n);case 19:return DS(e,t,n);case 22:return FS(e,t,n)}throw Error(J(156,t.tag))};function ew(e,t){return Mx(e,t)}function QO(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 Sr(e,t,n,r){return new QO(e,t,n,r)}function mm(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ZO(e){if(typeof e=="function")return mm(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Np)return 11;if(e===Ap)return 14}return 2}function no(e,t){var n=e.alternate;return n===null?(n=Sr(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 vu(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")mm(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Sa:return Lo(n.children,i,o,t);case Fp:a=8,i|=8;break;case Sh:return e=Sr(12,n,t,i|2),e.elementType=Sh,e.lanes=o,e;case wh:return e=Sr(13,n,t,i),e.elementType=wh,e.lanes=o,e;case Ch:return e=Sr(19,n,t,i),e.elementType=Ch,e.lanes=o,e;case ux:return Id(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case lx:a=10;break e;case cx:a=9;break e;case Np:a=11;break e;case Ap:a=14;break e;case Li:a=16,r=null;break e}throw Error(J(130,e==null?e:typeof e,""))}return t=Sr(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Lo(e,t,n,r){return e=Sr(7,e,r,t),e.lanes=n,e}function Id(e,t,n,r){return e=Sr(22,e,r,t),e.elementType=ux,e.lanes=n,e.stateNode={isHidden:!1},e}function Af(e,t,n){return e=Sr(6,e,null,t),e.lanes=n,e}function Lf(e,t,n){return t=Sr(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function JO(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=vf(0),this.expirationTimes=vf(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vf(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function vm(e,t,n,r,i,o,a,s,l){return e=new JO(e,t,n,s,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Sr(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},em(o),e}function eM(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(iw)}catch(e){console.error(e)}}iw(),ix.exports=lr;var ic=ix.exports;const fg=xd(ic),oM=G1({__proto__:null,default:fg},[ic]);var ow,k0=ic;ow=k0.createRoot,k0.hydrateRoot;var aw={exports:{}};/*! + Copyright (c) 2018 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var o="",a=0;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(Qa(r)):tl.isFragment(r)&&r.props?n=n.concat(Qa(r.props.children,t)):n.push(r))}),n}var hg={},cM=function(t){};function uM(e,t){}function dM(e,t){}function fM(){hg={}}function cw(e,t,n){!t&&!hg[n]&&(e(!1,n),hg[n]=!0)}function Tn(e,t){cw(uM,e,t)}function hM(e,t){cw(dM,e,t)}Tn.preMessage=cM;Tn.resetWarned=fM;Tn.noteOnce=hM;function Re(e){"@babel/helpers - typeof";return Re=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},Re(e)}function gM(e,t){if(Re(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Re(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function uw(e){var t=gM(e,"string");return Re(t)=="symbol"?t:t+""}function L(e,t,n){return(t=uw(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function I0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function V(e){for(var t=1;t=19;var gg=h.createContext(null);function pM(e){var t=e.children,n=e.onBatchResize,r=h.useRef(0),i=h.useRef([]),o=h.useContext(gg),a=h.useCallback(function(s,l,c){r.current+=1;var u=r.current;i.current.push({size:s,element:l,data:c}),Promise.resolve().then(function(){u===r.current&&(n==null||n(i.current),i.current=[])}),o==null||o(s,l,c)},[n,o]);return h.createElement(gg.Provider,{value:a},t)}var fw=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(i,o){return i[0]===n?(r=o,!0):!1}),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),i=this.__entries__[r];return i&&i[1]},t.prototype.set=function(n,r){var i=e(this.__entries__,n);~i?this.__entries__[i][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,i=e(r,n);~i&&r.splice(i,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var i=0,o=this.__entries__;i0},e.prototype.connect_=function(){!pg||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),SM?(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(){!pg||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,i=xM.some(function(o){return!!~r.indexOf(o)});i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),hw=function(e,t){for(var n=0,r=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof Za(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new $M(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 Za(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 RM(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}(),pw=typeof WeakMap<"u"?new WeakMap:new fw,mw=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=wM.getInstance(),r=new kM(t,n,this);pw.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){mw.prototype[e]=function(){var t;return(t=pw.get(this))[e].apply(t,arguments)}});var IM=function(){return typeof td.ResizeObserver<"u"?td.ResizeObserver:mw}(),Wi=new Map;function FM(e){e.forEach(function(t){var n,r=t.target;(n=Wi.get(r))===null||n===void 0||n.forEach(function(i){return i(r)})})}var vw=new IM(FM);function NM(e,t){Wi.has(e)||(Wi.set(e,new Set),vw.observe(e)),Wi.get(e).add(t)}function AM(e,t){Wi.has(e)&&(Wi.get(e).delete(t),Wi.get(e).size||(vw.unobserve(e),Wi.delete(e)))}function Kt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function A0(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;L0+=1;var r=L0;function i(o){if(o===0)Sw(r),t();else{var a=bw(function(){i(o-1)});Pm.set(r,a)}}return i(n),r};fn.cancel=function(e){var t=Pm.get(e);return Sw(e),xw(t)};function ww(e){if(Array.isArray(e))return e}function UM(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}function Cw(){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 te(e,t){return ww(e)||UM(e,t)||Tm(e,t)||Cw()}function Nl(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function sr(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function GM(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 D0="data-rc-order",z0="data-rc-priority",qM="rc-util-key",vg=new Map;function Ew(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):qM}function Kd(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function XM(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function $m(e){return Array.from((vg.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function _w(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!sr())return null;var n=t.csp,r=t.prepend,i=t.priority,o=i===void 0?0:i,a=XM(r),s=a==="prependQueue",l=document.createElement("style");l.setAttribute(D0,a),s&&o&&l.setAttribute(z0,"".concat(o)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;var c=Kd(t),u=c.firstChild;if(r){if(s){var d=(t.styles||$m(c)).filter(function(f){if(!["prepend","prependQueue"].includes(f.getAttribute(D0)))return!1;var p=Number(f.getAttribute(z0)||0);return o>=p});if(d.length)return c.insertBefore(l,d[d.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function Ow(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Kd(t);return(t.styles||$m(n)).find(function(r){return r.getAttribute(Ew(t))===e})}function Al(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Ow(e,t);if(n){var r=Kd(t);r.removeChild(n)}}function KM(e,t){var n=vg.get(e);if(!n||!GM(document,n)){var r=_w("",t),i=r.parentNode;vg.set(e,i),e.removeChild(r)}}function wi(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Kd(n),i=$m(r),o=V(V({},n),{},{styles:i});KM(r,o);var a=Ow(t,o);if(a){var s,l;if((s=o.csp)!==null&&s!==void 0&&s.nonce&&a.nonce!==((l=o.csp)===null||l===void 0?void 0:l.nonce)){var c;a.nonce=(c=o.csp)===null||c===void 0?void 0:c.nonce}return a.innerHTML!==e&&(a.innerHTML=e),a}var u=_w(e,o);return u.setAttribute(Ew(o),t),u}function YM(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 $n(e,t){if(e==null)return{};var n,r,i=YM(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function i(o,a){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(o);if(Tn(!l,"Warning: There may be circular references"),l)return!1;if(o===a)return!0;if(n&&s>1)return!1;r.add(o);var c=s+1;if(Array.isArray(o)){if(!Array.isArray(a)||o.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&&o&&(a.value[1]=this.cacheCallTimes++),(i=a)===null||i===void 0?void 0:i.value}},{key:"get",value:function(n){var r;return(r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return!!this.internalGet(n)}},{key:"set",value:function(n,r){var i=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(c,u){var d=te(c,2),f=d[1];return i.internalGet(u)[1]0,void 0),j0+=1}return Yt(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,i){return i(n,r)},void 0)}}]),e}(),Df=new Rm;function bg(e){var t=Array.isArray(e)?e:[e];return Df.has(t)||Df.set(t,new Mw(t)),Df.get(t)}var tT=new WeakMap,zf={};function nT(e,t){for(var n=tT,r=0;r1&&arguments[1]!==void 0?arguments[1]:!1,n=H0.get(e)||"";return n||(Object.keys(e).forEach(function(r){var i=e[r];n+=r,i instanceof Mw?n+=i.id:i&&Re(i)==="object"?n+=nl(i,t):n+=i}),t&&(n=Nl(n)),H0.set(e,n)),n}function B0(e,t){return Nl("".concat(t,"_").concat(nl(e,!0)))}var xg=sr();function ae(e){return typeof e=="number"?"".concat(e,"px"):e}function id(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(i)return e;var o=V(V({},r),{},L(L({},Ja,t),Gr,n)),a=Object.keys(o).map(function(s){var l=o[s];return l?"".concat(s,'="').concat(l,'"'):null}).filter(function(s){return s}).join(" ");return"")}var bu=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()},rT=function(t,n,r){return Object.keys(t).length?".".concat(n).concat(r!=null&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(t).map(function(i){var o=te(i,2),a=o[0],s=o[1];return"".concat(a,":").concat(s,";")}).join(""),"}"):""},Tw=function(t,n,r){var i={},o={};return Object.entries(t).forEach(function(a){var s,l,c=te(a,2),u=c[0],d=c[1];if(r!=null&&(s=r.preserve)!==null&&s!==void 0&&s[u])o[u]=d;else if((typeof d=="string"||typeof d=="number")&&!(r!=null&&(l=r.ignore)!==null&&l!==void 0&&l[u])){var f,p=bu(u,r==null?void 0:r.prefix);i[p]=typeof d=="number"&&!(r!=null&&(f=r.unitless)!==null&&f!==void 0&&f[u])?"".concat(d,"px"):String(d),o[u]="var(".concat(p,")")}}),[o,rT(i,n,{scope:r==null?void 0:r.scope})]},V0=sr()?h.useLayoutEffect:h.useEffect,mn=function(t,n){var r=h.useRef(!0);V0(function(){return t(r.current)},n),V0(function(){return r.current=!1,function(){r.current=!0}},[])},rl=function(t,n){mn(function(r){if(!r)return t()},n)},iT=V({},wd),W0=iT.useInsertionEffect,oT=function(t,n,r){h.useMemo(t,r),mn(function(){return n(!0)},r)},aT=W0?function(e,t,n){return W0(function(){return e(),t()},n)}:oT,sT=V({},wd),lT=sT.useInsertionEffect,cT=function(t){var n=[],r=!1;function i(o){r||n.push(o)}return h.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(o){return o()})}},t),i},uT=function(){return function(t){t()}},dT=typeof lT<"u"?cT:uT;function km(e,t,n,r,i){var o=h.useContext(Yd),a=o.cache,s=[e].concat(le(t)),l=yg(s),c=dT([l]),u=function(v){a.opUpdate(l,function(y){var b=y||[void 0,void 0],m=te(b,2),g=m[0],x=g===void 0?0:g,S=m[1],w=S,C=w||n(),_=[x,C];return v?v(_):_})};h.useMemo(function(){u()},[l]);var d=a.opGet(l),f=d[1];return aT(function(){i==null||i(f)},function(p){return u(function(v){var y=te(v,2),b=y[0],m=y[1];return p&&b===0&&(i==null||i(f)),[b+1,m]}),function(){a.opUpdate(l,function(v){var y=v||[],b=te(y,2),m=b[0],g=m===void 0?0:m,x=b[1],S=g-1;return S===0?(c(function(){(p||!a.opGet(l))&&(r==null||r(x,!1))}),null):[g-1,x]})}},[l]),f}var fT={},hT="css",Mo=new Map;function gT(e){Mo.set(e,(Mo.get(e)||0)+1)}function pT(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(Ja,'="').concat(e,'"]'));n.forEach(function(r){if(r[Ui]===t){var i;(i=r.parentNode)===null||i===void 0||i.removeChild(r)}})}}var mT=0;function vT(e,t){Mo.set(e,(Mo.get(e)||0)-1);var n=Array.from(Mo.keys()),r=n.filter(function(i){var o=Mo.get(i)||0;return o<=0});n.length-r.length>mT&&r.forEach(function(i){pT(i,t),Mo.delete(i)})}var yT=function(t,n,r,i){var o=r.getDerivativeToken(t),a=V(V({},o),n);return i&&(a=i(a)),a},Pw="token";function bT(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=h.useContext(Yd),i=r.cache.instanceId,o=r.container,a=n.salt,s=a===void 0?"":a,l=n.override,c=l===void 0?fT:l,u=n.formatToken,d=n.getComputedToken,f=n.cssVar,p=nT(function(){return Object.assign.apply(Object,[{}].concat(le(t)))},t),v=nl(p),y=nl(c),b=f?nl(f):"",m=km(Pw,[s,e.id,v,y,b],function(){var g,x=d?d(p,c,e):yT(p,c,e,u),S=V({},x),w="";if(f){var C=Tw(x,f.key,{prefix:f.prefix,ignore:f.ignore,unitless:f.unitless,preserve:f.preserve}),_=te(C,2);x=_[0],w=_[1]}var M=B0(x,s);x._tokenKey=M,S._tokenKey=B0(S,s);var T=(g=f==null?void 0:f.key)!==null&&g!==void 0?g:M;x._themeKey=T,gT(T);var P="".concat(hT,"-").concat(Nl(M));return x._hashId=P,[x,P,S,w,(f==null?void 0:f.key)||""]},function(g){vT(g[0]._themeKey,i)},function(g){var x=te(g,4),S=x[0],w=x[3];if(f&&w){var C=wi(w,Nl("css-variables-".concat(S._themeKey)),{mark:Gr,prepend:"queue",attachTo:o,priority:-999});C[Ui]=i,C.setAttribute(Ja,S._themeKey)}});return m}var xT=function(t,n,r){var i=te(t,5),o=i[2],a=i[3],s=i[4],l=r||{},c=l.plain;if(!a)return null;var u=o._tokenKey,d=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},p=id(a,s,u,f,c);return[d,u,p]},ST={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},$w="comm",Rw="rule",kw="decl",wT="@import",CT="@keyframes",ET="@layer",Iw=Math.abs,Im=String.fromCharCode;function Fw(e){return e.trim()}function xu(e,t,n){return e.replace(t,n)}function _T(e,t,n){return e.indexOf(t,n)}function Ll(e,t){return e.charCodeAt(t)|0}function es(e,t,n){return e.slice(t,n)}function ri(e){return e.length}function OT(e){return e.length}function Rc(e,t){return t.push(e),e}var Qd=1,ts=1,Nw=0,Mr=0,qt=0,us="";function Fm(e,t,n,r,i,o,a,s){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:Qd,column:ts,length:a,return:"",siblings:s}}function MT(){return qt}function TT(){return qt=Mr>0?Ll(us,--Mr):0,ts--,qt===10&&(ts=1,Qd--),qt}function qr(){return qt=Mr2||Dl(qt)>3?"":" "}function kT(e,t){for(;--t&&qr()&&!(qt<48||qt>102||qt>57&&qt<65||qt>70&&qt<97););return Zd(e,Su()+(t<6&&Gi()==32&&qr()==32))}function Sg(e){for(;qr();)switch(qt){case e:return Mr;case 34:case 39:e!==34&&e!==39&&Sg(qt);break;case 40:e===41&&Sg(e);break;case 92:qr();break}return Mr}function IT(e,t){for(;qr()&&e+qt!==57;)if(e+qt===84&&Gi()===47)break;return"/*"+Zd(t,Mr-1)+"*"+Im(e===47?e:qr())}function FT(e){for(;!Dl(Gi());)qr();return Zd(e,Mr)}function NT(e){return $T(wu("",null,null,null,[""],e=PT(e),0,[0],e))}function wu(e,t,n,r,i,o,a,s,l){for(var c=0,u=0,d=a,f=0,p=0,v=0,y=1,b=1,m=1,g=0,x="",S=i,w=o,C=r,_=x;b;)switch(v=g,g=qr()){case 40:if(v!=108&&Ll(_,d-1)==58){_T(_+=xu(jf(g),"&","&\f"),"&\f",Iw(c?s[c-1]:0))!=-1&&(m=-1);break}case 34:case 39:case 91:_+=jf(g);break;case 9:case 10:case 13:case 32:_+=RT(v);break;case 92:_+=kT(Su()-1,7);continue;case 47:switch(Gi()){case 42:case 47:Rc(AT(IT(qr(),Su()),t,n,l),l),(Dl(v||1)==5||Dl(Gi()||1)==5)&&ri(_)&&es(_,-1,void 0)!==" "&&(_+=" ");break;default:_+="/"}break;case 123*y:s[c++]=ri(_)*m;case 125*y:case 59:case 0:switch(g){case 0:case 125:b=0;case 59+u:m==-1&&(_=xu(_,/\f/g,"")),p>0&&(ri(_)-d||y===0&&v===47)&&Rc(p>32?G0(_+";",r,n,d-1,l):G0(xu(_," ","")+";",r,n,d-2,l),l);break;case 59:_+=";";default:if(Rc(C=U0(_,t,n,c,u,i,s,x,S=[],w=[],d,o),o),g===123)if(u===0)wu(_,t,C,C,S,o,d,s,w);else switch(f===99&&Ll(_,3)===110?100:f){case 100:case 108:case 109:case 115:wu(e,C,C,r&&Rc(U0(e,C,C,0,0,i,s,x,i,S=[],d,w),w),i,w,d,s,r?S:w);break;default:wu(_,C,C,C,[""],w,0,s,w)}}c=u=p=0,y=m=1,x=_="",d=a;break;case 58:d=1+ri(_),p=v;default:if(y<1){if(g==123)--y;else if(g==125&&y++==0&&TT()==125)continue}switch(_+=Im(g),g*y){case 38:m=u>0?1:(_+="\f",-1);break;case 44:s[c++]=(ri(_)-1)*m,m=1;break;case 64:Gi()===45&&(_+=jf(qr())),f=Gi(),u=d=ri(x=_+=FT(Su())),g++;break;case 45:v===45&&ri(_)==2&&(y=0)}}return o}function U0(e,t,n,r,i,o,a,s,l,c,u,d){for(var f=i-1,p=i===0?o:[""],v=OT(p),y=0,b=0,m=0;y0?p[g]+" "+x:xu(x,/&\f/g,p[g])))&&(l[m++]=S);return Fm(e,t,n,i===0?Rw:s,l,c,u,d)}function AT(e,t,n,r){return Fm(e,t,n,$w,Im(MT()),es(e,2,-2),0,r)}function G0(e,t,n,r,i){return Fm(e,t,n,kw,es(e,0,r),es(e,r+1,-1),r,i)}function wg(e,t){for(var n="",r=0;r1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},i=r.root,o=r.injectHash,a=r.parentSelectors,s=n.hashId,l=n.layer;n.path;var c=n.hashPriority,u=n.transformers,d=u===void 0?[]:u;n.linters;var f="",p={};function v(m){var g=m.getName(s);if(!p[g]){var x=e(m.style,n,{root:!1,parentSelectors:a}),S=te(x,1),w=S[0];p[g]="@keyframes ".concat(m.getName(s)).concat(w)}}function y(m){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return m.forEach(function(x){Array.isArray(x)?y(x,g):x&&g.push(x)}),g}var b=y(Array.isArray(t)?t:[t]);return b.forEach(function(m){var g=typeof m=="string"&&!i?{}:m;if(typeof g=="string")f+="".concat(g,` +`);else if(g._keyframe)v(g);else{var x=d.reduce(function(S,w){var C;return(w==null||(C=w.visit)===null||C===void 0?void 0:C.call(w,S))||S},g);Object.keys(x).forEach(function(S){var w=x[S];if(Re(w)==="object"&&w&&(S!=="animationName"||!w._keyframe)&&!BT(w)){var C=!1,_=S.trim(),M=!1;(i||o)&&s?_.startsWith("@")?C=!0:_==="&"?_=X0("",s,c):_=X0(S,s,c):i&&!s&&(_==="&"||_==="")&&(_="",M=!0);var T=e(w,n,{root:M,injectHash:C,parentSelectors:[].concat(le(a),[_])}),P=te(T,2),F=P[0],D=P[1];p=V(V({},p),D),f+="".concat(_).concat(F)}else{let W=function(N,R){var $=N.replace(/[A-Z]/g,function(A){return"-".concat(A.toLowerCase())}),I=R;!ST[N]&&typeof I=="number"&&I!==0&&(I="".concat(I,"px")),N==="animationName"&&R!==null&&R!==void 0&&R._keyframe&&(v(R),I=R.getName(s)),f+="".concat($,":").concat(I,";")};var z,j=(z=w==null?void 0:w.value)!==null&&z!==void 0?z:w;Re(w)==="object"&&w!==null&&w!==void 0&&w[Dw]&&Array.isArray(j)?j.forEach(function(N){W(S,N)}):W(S,j)}})}}),i?l&&(f="@layer ".concat(l.name," {").concat(f,"}"),l.dependencies&&(p["@layer ".concat(l.name)]=l.dependencies.map(function(m){return"@layer ".concat(m,", ").concat(l.name,";")}).join(` +`))):f="{".concat(f,"}"),[f,p]};function zw(e,t){return Nl("".concat(e.join("%")).concat(t))}function WT(){return null}var jw="style";function Cg(e,t){var n=e.token,r=e.path,i=e.hashId,o=e.layer,a=e.nonce,s=e.clientOnly,l=e.order,c=l===void 0?0:l,u=h.useContext(Yd),d=u.autoClear;u.mock;var f=u.defaultCache,p=u.hashPriority,v=u.container,y=u.ssrInline,b=u.transformers,m=u.linters,g=u.cache,x=u.layer,S=n._tokenKey,w=[S];x&&w.push("layer"),w.push.apply(w,le(r));var C=xg,_=km(jw,w,function(){var D=w.join("|");if(zT(D)){var z=jT(D),j=te(z,2),W=j[0],N=j[1];if(W)return[W,S,N,{},s,c]}var R=t(),$=VT(R,{hashId:i,hashPriority:p,layer:x?o:void 0,path:r.join("-"),transformers:b,linters:m}),I=te($,2),A=I[0],H=I[1],G=Cu(A),Y=zw(w,G);return[G,S,Y,H,s,c]},function(D,z){var j=te(D,3),W=j[2];(z||d)&&xg&&Al(W,{mark:Gr})},function(D){var z=te(D,4),j=z[0];z[1];var W=z[2],N=z[3];if(C&&j!==Aw){var R={mark:Gr,prepend:x?!1:"queue",attachTo:v,priority:c},$=typeof a=="function"?a():a;$&&(R.csp={nonce:$});var I=[],A=[];Object.keys(N).forEach(function(G){G.startsWith("@layer")?I.push(G):A.push(G)}),I.forEach(function(G){wi(Cu(N[G]),"_layer-".concat(G),V(V({},R),{},{prepend:!0}))});var H=wi(j,W,R);H[Ui]=g.instanceId,H.setAttribute(Ja,S),A.forEach(function(G){wi(Cu(N[G]),"_effect-".concat(G),R)})}}),M=te(_,3),T=M[0],P=M[1],F=M[2];return function(D){var z;return!y||C||!f?z=h.createElement(WT,null):z=h.createElement("style",nt({},L(L({},Ja,P),Gr,F),{dangerouslySetInnerHTML:{__html:T}})),h.createElement(h.Fragment,null,z,D)}}var UT=function(t,n,r){var i=te(t,6),o=i[0],a=i[1],s=i[2],l=i[3],c=i[4],u=i[5],d=r||{},f=d.plain;if(c)return null;var p=o,v={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return p=id(o,a,s,v,f),l&&Object.keys(l).forEach(function(y){if(!n[y]){n[y]=!0;var b=Cu(l[y]),m=id(b,a,"_effect-".concat(y),v,f);y.startsWith("@layer")?p=m+p:p+=m}}),[u,s,p]},Hw="cssVar",GT=function(t,n){var r=t.key,i=t.prefix,o=t.unitless,a=t.ignore,s=t.token,l=t.scope,c=l===void 0?"":l,u=h.useContext(Yd),d=u.cache.instanceId,f=u.container,p=s._tokenKey,v=[].concat(le(t.path),[r,c,p]),y=km(Hw,v,function(){var b=n(),m=Tw(b,r,{prefix:i,unitless:o,ignore:a,scope:c}),g=te(m,2),x=g[0],S=g[1],w=zw(v,S);return[x,S,w,r]},function(b){var m=te(b,3),g=m[2];xg&&Al(g,{mark:Gr})},function(b){var m=te(b,3),g=m[1],x=m[2];if(g){var S=wi(g,x,{mark:Gr,prepend:"queue",attachTo:f,priority:-999});S[Ui]=d,S.setAttribute(Ja,r)}});return y},qT=function(t,n,r){var i=te(t,4),o=i[1],a=i[2],s=i[3],l=r||{},c=l.plain;if(!o)return null;var u=-999,d={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)},f=id(o,s,a,d,c);return[u,a,f]};L(L(L({},jw,UT),Pw,xT),Hw,qT);var Rr=function(){function e(t,n){Kt(this,e),L(this,"name",void 0),L(this,"style",void 0),L(this,"_keyframe",!0),this.name=t,this.style=n}return Yt(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 ua(e){return e.notSplit=!0,e}ua(["borderTop","borderBottom"]),ua(["borderTop"]),ua(["borderBottom"]),ua(["borderLeft","borderRight"]),ua(["borderLeft"]),ua(["borderRight"]);var Nm=h.createContext({});function XT(e){return ww(e)||yw(e)||Tm(e)||Cw()}function ai(e,t){for(var n=e,r=0;r3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!ai(e,t.slice(0,-1))?e:Bw(e,t,n,r)}function KT(e){return Re(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function K0(e){return Array.isArray(e)?[]:{}}var YT=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function ka(){for(var e=arguments.length,t=new Array(e),n=0;n{const e=()=>{};return e.deprecated=QT,e},Vw=h.createContext(void 0);var JT={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"},eP={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},tP=V(V({},eP),{},{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 Ww={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Y0={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"]},tP),timePickerLocale:Object.assign({},Ww)},Jn="${label} is not a valid ${type}",Go={locale:"en",Pagination:JT,DatePicker:Y0,TimePicker:Ww,Calendar:Y0,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:Jn,method:Jn,array:Jn,object:Jn,number:Jn,date:Jn,boolean:Jn,integer:Jn,float:Jn,regexp:Jn,email:Jn,url:Jn,hex:Jn},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};Object.assign({},Go.Modal);let Eu=[];const Q0=()=>Eu.reduce((e,t)=>Object.assign(Object.assign({},e),t),Go.Modal);function nP(e){if(e){const t=Object.assign({},e);return Eu.push(t),Q0(),()=>{Eu=Eu.filter(n=>n!==t),Q0()}}Object.assign({},Go.Modal)}const Lm=h.createContext(void 0),rP=(e,t)=>{const n=h.useContext(Lm),r=h.useMemo(()=>{var o;const a=Go[e],s=(o=n==null?void 0:n[e])!==null&&o!==void 0?o:{};return Object.assign(Object.assign({},typeof a=="function"?a():a),s||{})},[e,t,n]),i=h.useMemo(()=>{const o=n==null?void 0:n.locale;return n!=null&&n.exist&&!o?Go.locale:o},[n]);return[r,i]},iP="internalMark",oP=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;h.useEffect(()=>nP(t==null?void 0:t.Modal),[t]);const i=h.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return h.createElement(Lm.Provider,{value:i},n)};function bn(e,t){aP(e)&&(e="100%");var n=sP(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 kc(e){return Math.min(1,Math.max(0,e))}function aP(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function sP(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Uw(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Ic(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Ro(e){return e.length===1?"0"+e:String(e)}function lP(e,t,n){return{r:bn(e,255)*255,g:bn(t,255)*255,b:bn(n,255)*255}}function Z0(e,t,n){e=bn(e,255),t=bn(t,255),n=bn(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),o=0,a=0,s=(r+i)/2;if(r===i)a=0,o=0;else{var l=r-i;switch(a=s>.5?l/(2-r-i):l/(r+i),r){case e:o=(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 cP(e,t,n){var r,i,o;if(e=bn(e,360),t=bn(t,100),n=bn(n,100),t===0)i=n,o=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,s=2*n-a;r=Hf(s,a,e+1/3),i=Hf(s,a,e),o=Hf(s,a,e-1/3)}return{r:r*255,g:i*255,b:o*255}}function Eg(e,t,n){e=bn(e,255),t=bn(t,255),n=bn(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),o=0,a=r,s=r-i,l=r===0?0:s/r;if(r===i)o=0;else{switch(r){case e:o=(t-n)/s+(t>16,g:(e&65280)>>8,b:e&255}}var Og={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 va(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,o=null,a=!1,s=!1;return typeof e=="string"&&(e=mP(e)),typeof e=="object"&&(fi(e.r)&&fi(e.g)&&fi(e.b)?(t=lP(e.r,e.g,e.b),a=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):fi(e.h)&&fi(e.s)&&fi(e.v)?(r=Ic(e.s),i=Ic(e.v),t=uP(e.h,r,i),a=!0,s="hsv"):fi(e.h)&&fi(e.s)&&fi(e.l)&&(r=Ic(e.s),o=Ic(e.l),t=cP(e.h,r,o),a=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=Uw(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 gP="[-\\+]?\\d+%?",pP="[-\\+]?\\d*\\.\\d+%?",qi="(?:".concat(pP,")|(?:").concat(gP,")"),Bf="[\\s|\\(]+(".concat(qi,")[,|\\s]+(").concat(qi,")[,|\\s]+(").concat(qi,")\\s*\\)?"),Vf="[\\s|\\(]+(".concat(qi,")[,|\\s]+(").concat(qi,")[,|\\s]+(").concat(qi,")[,|\\s]+(").concat(qi,")\\s*\\)?"),Nr={CSS_UNIT:new RegExp(qi),rgb:new RegExp("rgb"+Bf),rgba:new RegExp("rgba"+Vf),hsl:new RegExp("hsl"+Bf),hsla:new RegExp("hsla"+Vf),hsv:new RegExp("hsv"+Bf),hsva:new RegExp("hsva"+Vf),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 mP(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Og[e])e=Og[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Nr.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Nr.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Nr.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Nr.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Nr.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Nr.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Nr.hex8.exec(e),n?{r:tr(n[1]),g:tr(n[2]),b:tr(n[3]),a:J0(n[4]),format:t?"name":"hex8"}:(n=Nr.hex6.exec(e),n?{r:tr(n[1]),g:tr(n[2]),b:tr(n[3]),format:t?"name":"hex"}:(n=Nr.hex4.exec(e),n?{r:tr(n[1]+n[1]),g:tr(n[2]+n[2]),b:tr(n[3]+n[3]),a:J0(n[4]+n[4]),format:t?"name":"hex8"}:(n=Nr.hex3.exec(e),n?{r:tr(n[1]+n[1]),g:tr(n[2]+n[2]),b:tr(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function fi(e){return!!Nr.CSS_UNIT.exec(String(e))}var cn=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=hP(t)),this.originalInput=t;var i=va(t);this.originalInput=t,this.r=i.r,this.g=i.g,this.b=i.b,this.a=i.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:i.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=i.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,i,o=t.r/255,a=t.g/255,s=t.b/255;return o<=.03928?n=o/12.92:n=Math.pow((o+.055)/1.055,2.4),a<=.03928?r=a/12.92:r=Math.pow((a+.055)/1.055,2.4),s<=.03928?i=s/12.92:i=Math.pow((s+.055)/1.055,2.4),.2126*n+.7152*r+.0722*i},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=Uw(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=Eg(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=Eg(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=Z0(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=Z0(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),_g(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),dP(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(bn(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(bn(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="#"+_g(this.r,this.g,this.b,!1),n=0,r=Object.entries(Og);n=0,o=!n&&i&&(t.startsWith("hex")||t==="name");return o?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=kc(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=kc(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=kc(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=kc(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(),i=new e(t).toRgb(),o=n/100,a={r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+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(),i=360/n,o=[this];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,o.push(new e(r));return o},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,i=n.s,o=n.v,a=[],s=1/t;t--;)a.push(new e({h:r,s:i,v:o})),o=(o+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(),i=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/i,g:(n.g*n.a+r.g*r.a*(1-n.a))/i,b:(n.b*n.a+r.b*r.a*(1-n.a))/i,a:i})},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,i=[this],o=360/t,a=1;a=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-Fc*t:Math.round(e.h)+Fc*t:r=n?Math.round(e.h)+Fc*t:Math.round(e.h)-Fc*t,r<0?r+=360:r>=360&&(r-=360),r}function ry(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-ey*t:t===qw?r=e.s+ey:r=e.s+vP*t,r>1&&(r=1),n&&t===Gw&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function iy(e,t,n){var r;return n?r=e.v+yP*t:r=e.v-bP*t,r>1&&(r=1),Number(r.toFixed(2))}function zl(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=va(e),i=Gw;i>0;i-=1){var o=ty(r),a=Nc(va({h:ny(o,i,!0),s:ry(o,i,!0),v:iy(o,i,!0)}));n.push(a)}n.push(Nc(r));for(var s=1;s<=qw;s+=1){var l=ty(r),c=Nc(va({h:ny(l,s),s:ry(l,s),v:iy(l,s)}));n.push(c)}return t.theme==="dark"?xP.map(function(u){var d=u.index,f=u.opacity,p=Nc(SP(va(t.backgroundColor||"#141414"),va(n[d]),f*100));return p}):n}var Wf={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"},Mg=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Mg.primary=Mg[5];var Tg=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Tg.primary=Tg[5];var Pg=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Pg.primary=Pg[5];var $g=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];$g.primary=$g[5];var Rg=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Rg.primary=Rg[5];var kg=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];kg.primary=kg[5];var Ig=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Ig.primary=Ig[5];var Fg=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Fg.primary=Fg[5];var od=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];od.primary=od[5];var Ng=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Ng.primary=Ng[5];var Ag=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Ag.primary=Ag[5];var Lg=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Lg.primary=Lg[5];var Dg=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Dg.primary=Dg[5];var Uf={red:Mg,volcano:Tg,orange:Pg,gold:$g,yellow:Rg,lime:kg,green:Ig,cyan:Fg,blue:od,geekblue:Ng,purple:Ag,magenta:Lg,grey:Dg};const Xw={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"},jl=Object.assign(Object.assign({},Xw),{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 wP(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:i,colorWarning:o,colorError:a,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:u}=e,d=n(l),f=n(i),p=n(o),v=n(a),y=n(s),b=r(c,u),m=e.colorLink||e.colorInfo,g=n(m),x=new cn(v[1]).mix(new cn(v[3]),50).toHexString();return Object.assign(Object.assign({},b),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:v[1],colorErrorBgHover:v[2],colorErrorBgFilledHover:x,colorErrorBgActive:v[3],colorErrorBorder:v[3],colorErrorBorderHover:v[4],colorErrorHover:v[5],colorError:v[6],colorErrorActive:v[7],colorErrorTextHover:v[8],colorErrorText:v[9],colorErrorTextActive:v[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:y[1],colorInfoBgHover:y[2],colorInfoBorder:y[3],colorInfoBorderHover:y[4],colorInfoHover:y[4],colorInfo:y[6],colorInfoActive:y[7],colorInfoTextHover:y[8],colorInfoText:y[9],colorInfoTextActive:y[10],colorLinkHover:g[4],colorLink:g[6],colorLinkActive:g[7],colorBgMask:new cn("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const CP=e=>{let t=e,n=e,r=e,i=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?i=4:e>=8&&(i=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:i}};function EP(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:i}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:i+1},CP(r))}const _P=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function _u(e){return(e+8)/e}function OP(e){const t=new Array(10).fill(null).map((n,r)=>{const i=r-1,o=e*Math.pow(Math.E,i/5),a=r>1?Math.floor(o):Math.ceil(o);return Math.floor(a/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:_u(n)}))}const MP=e=>{const t=OP(e),n=t.map(u=>u.size),r=t.map(u=>u.lineHeight),i=n[1],o=n[0],a=n[2],s=r[1],l=r[0],c=r[2];return{fontSizeSM:o,fontSize:i,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(s*i),fontHeightLG:Math.round(c*a),fontHeightSM:Math.round(l*o),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function TP(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 pr=(e,t)=>new cn(e).setAlpha(t).toRgbString(),Ts=(e,t)=>new cn(e).darken(t).toHexString(),PP=e=>{const t=zl(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]}},$P=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:pr(r,.88),colorTextSecondary:pr(r,.65),colorTextTertiary:pr(r,.45),colorTextQuaternary:pr(r,.25),colorFill:pr(r,.15),colorFillSecondary:pr(r,.06),colorFillTertiary:pr(r,.04),colorFillQuaternary:pr(r,.02),colorBgSolid:pr(r,1),colorBgSolidHover:pr(r,.75),colorBgSolidActive:pr(r,.95),colorBgLayout:Ts(n,4),colorBgContainer:Ts(n,0),colorBgElevated:Ts(n,0),colorBgSpotlight:pr(r,.85),colorBgBlur:"transparent",colorBorder:Ts(n,15),colorBorderSecondary:Ts(n,6)}};function RP(e){Wf.pink=Wf.magenta,Uf.pink=Uf.magenta;const t=Object.keys(Xw).map(n=>{const r=e[n]===Wf[n]?Uf[n]:zl(e[n]);return new Array(10).fill(1).reduce((i,o,a)=>(i[`${n}-${a+1}`]=r[a],i[`${n}${a+1}`]=r[a],i),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),wP(e,{generateColorPalettes:PP,generateNeutralColorPalettes:$P})),MP(e.fontSize)),TP(e)),_P(e)),EP(e))}const Kw=bg(RP),zg={token:jl,override:{override:jl},hashed:!0},Yw=de.createContext(zg),Hl="ant",Qw="anticon",kP=["outlined","borderless","filled"],IP=(e,t)=>t||(e?`${Hl}-${e}`:Hl),Rt=h.createContext({getPrefixCls:IP,iconPrefixCls:Qw}),FP=`-ant-${Date.now()}-${Math.random()}`;function NP(e,t){const n={},r=(a,s)=>{let l=a.clone();return l=(s==null?void 0:s(l))||l,l.toRgbString()},i=(a,s)=>{const l=new cn(a),c=zl(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().setAlpha(.2).toRgbString(),n[`${s}-color-deprecated-bg`]=c[0],n[`${s}-color-deprecated-border`]=c[2]};if(t.primaryColor){i(t.primaryColor,"primary");const a=new cn(t.primaryColor),s=zl(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.setAlpha(c.getAlpha()*.12));const l=new cn(s[0]);n["primary-color-active-deprecated-f-30"]=r(l,c=>c.setAlpha(c.getAlpha()*.3)),n["primary-color-active-deprecated-d-02"]=r(l,c=>c.darken(2))}return t.successColor&&i(t.successColor,"success"),t.warningColor&&i(t.warningColor,"warning"),t.errorColor&&i(t.errorColor,"error"),t.infoColor&&i(t.infoColor,"info"),` + :root { + ${Object.keys(n).map(a=>`--${e}-${a}: ${n[a]};`).join(` +`)} + } + `.trim()}function AP(e,t){const n=NP(e,t);sr()&&wi(n,`${FP}-dynamic-theme`)}const qo=h.createContext(!1),Zw=e=>{let{children:t,disabled:n}=e;const r=h.useContext(qo);return h.createElement(qo.Provider,{value:n??r},t)},Xo=h.createContext(void 0),LP=e=>{let{children:t,size:n}=e;const r=h.useContext(Xo);return h.createElement(Xo.Provider,{value:n||r},t)};function DP(){const e=h.useContext(qo),t=h.useContext(Xo);return{componentDisabled:e,componentSize:t}}var Jw=Yt(function e(){Kt(this,e)}),eC="CALC_UNIT",zP=new RegExp(eC,"g");function Gf(e){return typeof e=="number"?"".concat(e).concat(eC):e}var jP=function(e){go(n,e);var t=po(n);function n(r,i){var o;Kt(this,n),o=t.call(this),L(He(o),"result",""),L(He(o),"unitlessCssVar",void 0),L(He(o),"lowPriority",void 0);var a=Re(r);return o.unitlessCssVar=i,r instanceof n?o.result="(".concat(r.result,")"):a==="number"?o.result=Gf(r):a==="string"&&(o.result=r),o}return Yt(n,[{key:"add",value:function(i){return i instanceof n?this.result="".concat(this.result," + ").concat(i.getResult()):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," + ").concat(Gf(i))),this.lowPriority=!0,this}},{key:"sub",value:function(i){return i instanceof n?this.result="".concat(this.result," - ").concat(i.getResult()):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," - ").concat(Gf(i))),this.lowPriority=!0,this}},{key:"mul",value:function(i){return this.lowPriority&&(this.result="(".concat(this.result,")")),i instanceof n?this.result="".concat(this.result," * ").concat(i.getResult(!0)):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," * ").concat(i)),this.lowPriority=!1,this}},{key:"div",value:function(i){return this.lowPriority&&(this.result="(".concat(this.result,")")),i instanceof n?this.result="".concat(this.result," / ").concat(i.getResult(!0)):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," / ").concat(i)),this.lowPriority=!1,this}},{key:"getResult",value:function(i){return this.lowPriority||i?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(i){var o=this,a=i||{},s=a.unit,l=!0;return typeof s=="boolean"?l=s:Array.from(this.unitlessCssVar).some(function(c){return o.result.includes(c)})&&(l=!1),this.result=this.result.replace(zP,l?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n}(Jw),HP=function(e){go(n,e);var t=po(n);function n(r){var i;return Kt(this,n),i=t.call(this),L(He(i),"result",0),r instanceof n?i.result=r.result:typeof r=="number"&&(i.result=r),i}return Yt(n,[{key:"add",value:function(i){return i instanceof n?this.result+=i.result:typeof i=="number"&&(this.result+=i),this}},{key:"sub",value:function(i){return i instanceof n?this.result-=i.result:typeof i=="number"&&(this.result-=i),this}},{key:"mul",value:function(i){return i instanceof n?this.result*=i.result:typeof i=="number"&&(this.result*=i),this}},{key:"div",value:function(i){return i instanceof n?this.result/=i.result:typeof i=="number"&&(this.result/=i),this}},{key:"equal",value:function(){return this.result}}]),n}(Jw),BP=function(t,n){var r=t==="css"?jP:HP;return function(i){return new r(i,n)}},oy=function(t,n){return"".concat([n,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function vn(e){var t=h.useRef();t.current=e;var n=h.useCallback(function(){for(var r,i=arguments.length,o=new Array(i),a=0;a1e4){var r=Date.now();this.lastAccessBeat.forEach(function(i,o){r-i>GP&&(n.map.delete(o),n.lastAccessBeat.delete(o))}),this.accessBeat=0}}}]),e}(),cy=new qP;function XP(e,t){return de.useMemo(function(){var n=cy.get(t);if(n)return n;var r=e();return cy.set(t,r),r},t)}var KP=function(){return{}};function YP(e){var t=e.useCSP,n=t===void 0?KP:t,r=e.useToken,i=e.usePrefix,o=e.getResetStyles,a=e.getCommonStyle,s=e.getCompUnitless;function l(f,p,v,y){var b=Array.isArray(f)?f[0]:f;function m(M){return"".concat(String(b)).concat(M.slice(0,1).toUpperCase()).concat(M.slice(1))}var g=(y==null?void 0:y.unitless)||{},x=typeof s=="function"?s(f):{},S=V(V({},x),{},L({},m("zIndexPopup"),!0));Object.keys(g).forEach(function(M){S[m(M)]=g[M]});var w=V(V({},y),{},{unitless:S,prefixToken:m}),C=u(f,p,v,w),_=c(b,v,w);return function(M){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:M,P=C(M,T),F=te(P,2),D=F[1],z=_(T),j=te(z,2),W=j[0],N=j[1];return[W,D,N]}}function c(f,p,v){var y=v.unitless,b=v.injectStyle,m=b===void 0?!0:b,g=v.prefixToken,x=v.ignore,S=function(_){var M=_.rootCls,T=_.cssVar,P=T===void 0?{}:T,F=r(),D=F.realToken;return GT({path:[f],prefix:P.prefix,key:P.key,unitless:y,ignore:x,token:D,scope:M},function(){var z=ly(f,D,p),j=ay(f,D,z,{deprecatedTokens:v==null?void 0:v.deprecatedTokens});return Object.keys(z).forEach(function(W){j[g(W)]=j[W],delete j[W]}),j}),null},w=function(_){var M=r(),T=M.cssVar;return[function(P){return m&&T?de.createElement(de.Fragment,null,de.createElement(S,{rootCls:_,cssVar:T,component:f}),P):P},T==null?void 0:T.key]};return w}function u(f,p,v){var y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},b=Array.isArray(f)?f:[f,f],m=te(b,1),g=m[0],x=b.join("-"),S=e.layer||{name:"antd"};return function(w){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w,_=r(),M=_.theme,T=_.realToken,P=_.hashId,F=_.token,D=_.cssVar,z=i(),j=z.rootPrefixCls,W=z.iconPrefixCls,N=n(),R=D?"css":"js",$=XP(function(){var U=new Set;return D&&Object.keys(y.unitless||{}).forEach(function(X){U.add(bu(X,D.prefix)),U.add(bu(X,oy(g,D.prefix)))}),BP(R,U)},[R,g,D==null?void 0:D.prefix]),I=UP(R),A=I.max,H=I.min,G={theme:M,token:F,hashId:P,nonce:function(){return N.nonce},clientOnly:y.clientOnly,layer:S,order:y.order||-999};Cg(V(V({},G),{},{clientOnly:!1,path:["Shared",j]}),function(){return typeof o=="function"?o(F):[]});var Y=Cg(V(V({},G),{},{path:[x,w,W]}),function(){if(y.injectStyle===!1)return[];var U=WP(F),X=U.token,ee=U.flush,q=ly(g,T,v),K=".".concat(w),Z=ay(g,T,q,{deprecatedTokens:y.deprecatedTokens});D&&q&&Re(q)==="object"&&Object.keys(q).forEach(function(xe){q[xe]="var(".concat(bu(xe,oy(g,D.prefix)),")")});var ne=jn(X,{componentCls:K,prefixCls:w,iconCls:".".concat(W),antCls:".".concat(j),calc:$,max:A,min:H},D?q:Z),pe=p(ne,{hashId:P,prefixCls:w,rootPrefixCls:j,iconPrefixCls:W});ee(g,Z);var ye=typeof a=="function"?a(ne,w,C,y.resetFont):null;return[y.resetStyle===!1?null:ye,pe]});return[Y,P]}}function d(f,p,v){var y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},b=u(f,p,v,V({resetStyle:!1,order:-998},y)),m=function(x){var S=x.prefixCls,w=x.rootCls,C=w===void 0?S:w;return b(S,C),null};return m}return{genStyleHooks:l,genSubStyleComponent:d,genComponentStyleHook:u}}const ad=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],QP="5.21.0";function Xf(e){return e>=0&&e<=255}function Ac(e,t){const{r:n,g:r,b:i,a:o}=new cn(e).toRgb();if(o<1)return e;const{r:a,g:s,b:l}=new cn(t).toRgb();for(let c=.01;c<=1;c+=.01){const u=Math.round((n-a*(1-c))/c),d=Math.round((r-s*(1-c))/c),f=Math.round((i-l*(1-c))/c);if(Xf(u)&&Xf(d)&&Xf(f))return new cn({r:u,g:d,b:f,a:Math.round(c*100)/100}).toRgbString()}return new cn({r:n,g:r,b:i,a:1}).toRgbString()}var ZP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{delete r[f]});const i=Object.assign(Object.assign({},n),r),o=480,a=576,s=768,l=992,c=1200,u=1600;if(i.motion===!1){const f="0s";i.motionDurationFast=f,i.motionDurationMid=f,i.motionDurationSlow=f}return Object.assign(Object.assign(Object.assign({},i),{colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:Ac(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:Ac(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:Ac(i.colorWarningBg,i.colorBgContainer),fontSizeIcon:i.fontSizeSM,lineWidthFocus:i.lineWidth*4,lineWidth:i.lineWidth,controlOutlineWidth:i.lineWidth*2,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:Ac(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.sizeXXL,boxShadow:` + 0 6px 16px 0 rgba(0, 0, 0, 0.08), + 0 3px 6px -4px rgba(0, 0, 0, 0.12), + 0 9px 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowSecondary:` + 0 6px 16px 0 rgba(0, 0, 0, 0.08), + 0 3px 6px -4px rgba(0, 0, 0, 0.12), + 0 9px 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowTertiary:` + 0 1px 2px 0 rgba(0, 0, 0, 0.03), + 0 1px 6px -1px rgba(0, 0, 0, 0.02), + 0 2px 4px 0 rgba(0, 0, 0, 0.02) + `,screenXS:o,screenXSMin:o,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax: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 cn("rgba(0, 0, 0, 0.16)").toRgbString()}, + 0 3px 6px 0 ${new cn("rgba(0, 0, 0, 0.12)").toRgbString()}, + 0 5px 12px 4px ${new cn("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 uy=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const r=n.getDerivativeToken(e),{override:i}=t,o=uy(t,["override"]);let a=Object.assign(Object.assign({},r),{override:i});return a=rC(a),o&&Object.entries(o).forEach(s=>{let[l,c]=s;const{theme:u}=c,d=uy(c,["theme"]);let f=d;u&&(f=oC(Object.assign(Object.assign({},a),d),{override:d},u)),a[l]=f}),a};function Ri(){const{token:e,hashed:t,theme:n,override:r,cssVar:i}=de.useContext(Yw),o=`${QP}-${t||""}`,a=n||Kw,[s,l,c]=bT(a,[jl,e],{salt:o,override:r,getComputedToken:oC,formatToken:rC,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:iC,ignore:JP,preserve:e$}});return[a,c,t?l:"",s,i]}const Ci=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}},aC=()=>({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"}}),t$=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),n$=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"}}}),r$=(e,t,n,r)=>{const i=`[class^="${t}"], [class*=" ${t}"]`,o=n?`.${n}`:i,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return r!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[o]:Object.assign(Object.assign(Object.assign({},s),a),{[i]:a})}},i$=e=>({outline:`${ae(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),o$=e=>({"&:focus-visible":Object.assign({},i$(e))}),sC=(e,t)=>{const[n,r]=Ri();return Cg({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[{[`.${e}`]:Object.assign(Object.assign({},aC()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},{genStyleHooks:ui,genComponentStyleHook:a$,genSubStyleComponent:lC}=YP({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=h.useContext(Rt);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,i]=Ri();return{theme:e,realToken:t,hashId:n,token:r,cssVar:i}},useCSP:()=>{const{csp:e,iconPrefixCls:t}=h.useContext(Rt);return sC(t,e),e??{}},getResetStyles:e=>[{"&":n$(e)}],getCommonStyle:r$,getCompUnitless:()=>iC});function s$(e,t){return ad.reduce((n,r)=>{const i=e[`${r}1`],o=e[`${r}3`],a=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:i,lightBorderColor:o,darkColor:a,textColor:s}))},{})}const l$=Object.assign({},wd),{useId:dy}=l$,c$=()=>"",u$=typeof dy>"u"?c$:dy;function d$(e,t,n){var r;Am();const i=e||{},o=i.inherit===!1||!t?Object.assign(Object.assign({},zg),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:zg.hashed,cssVar:t==null?void 0:t.cssVar}):t,a=u$();return Cm(()=>{var s,l;if(!e)return t;const c=Object.assign({},o.components);Object.keys(e.components||{}).forEach(f=>{c[f]=Object.assign(Object.assign({},c[f]),e.components[f])});const u=`css-var-${a.replace(/:/g,"")}`,d=((s=i.cssVar)!==null&&s!==void 0?s:o.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof o.cssVar=="object"?o.cssVar:{}),typeof i.cssVar=="object"?i.cssVar:{}),{key:typeof i.cssVar=="object"&&((l=i.cssVar)===null||l===void 0?void 0:l.key)||u});return Object.assign(Object.assign(Object.assign({},o),i),{token:Object.assign(Object.assign({},o.token),i.token),components:c,cssVar:d})},[i,o],(s,l)=>s.some((c,u)=>{const d=l[u];return!rd(c,d,!0)}))}var f$=["children"],cC=h.createContext({});function h$(e){var t=e.children,n=$n(e,f$);return h.createElement(cC.Provider,{value:n},t)}var g$=function(e){go(n,e);var t=po(n);function n(){return Kt(this,n),t.apply(this,arguments)}return Yt(n,[{key:"render",value:function(){return this.props.children}}]),n}(h.Component);function p$(e){var t=h.useReducer(function(s){return s+1},0),n=te(t,2),r=n[1],i=h.useRef(e),o=vn(function(){return i.current}),a=vn(function(s){i.current=typeof s=="function"?s(i.current):s,r()});return[o,a]}var Ni="none",Lc="appear",Dc="enter",zc="leave",fy="none",jr="prepare",Ia="start",Fa="active",Dm="end",uC="prepared";function hy(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 m$(e,t){var n={animationend:hy("Animation","AnimationEnd"),transitionend:hy("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var v$=m$(sr(),typeof window<"u"?window:{}),dC={};if(sr()){var y$=document.createElement("div");dC=y$.style}var jc={};function fC(e){if(jc[e])return jc[e];var t=v$[e];if(t)for(var n=Object.keys(t),r=n.length,i=0;i1&&arguments[1]!==void 0?arguments[1]:2;t();var o=fn(function(){i<=1?r({isCanceled:function(){return o!==e.current}}):n(r,i-1)});e.current=o}return h.useEffect(function(){return function(){t()}},[]),[n,t]};var S$=[jr,Ia,Fa,Dm],w$=[jr,uC],vC=!1,C$=!0;function yC(e){return e===Fa||e===Dm}const E$=function(e,t,n){var r=ns(fy),i=te(r,2),o=i[0],a=i[1],s=x$(),l=te(s,2),c=l[0],u=l[1];function d(){a(jr,!0)}var f=t?w$:S$;return mC(function(){if(o!==fy&&o!==Dm){var p=f.indexOf(o),v=f[p+1],y=n(o);y===vC?a(v,!0):v&&c(function(b){function m(){b.isCanceled()||a(v,!0)}y===!0?m():Promise.resolve(y).then(m)})}},[e,o]),h.useEffect(function(){return function(){u()}},[]),[d,o]};function _$(e,t,n,r){var i=r.motionEnter,o=i===void 0?!0:i,a=r.motionAppear,s=a===void 0?!0:a,l=r.motionLeave,c=l===void 0?!0:l,u=r.motionDeadline,d=r.motionLeaveImmediately,f=r.onAppearPrepare,p=r.onEnterPrepare,v=r.onLeavePrepare,y=r.onAppearStart,b=r.onEnterStart,m=r.onLeaveStart,g=r.onAppearActive,x=r.onEnterActive,S=r.onLeaveActive,w=r.onAppearEnd,C=r.onEnterEnd,_=r.onLeaveEnd,M=r.onVisibleChanged,T=ns(),P=te(T,2),F=P[0],D=P[1],z=p$(Ni),j=te(z,2),W=j[0],N=j[1],R=ns(null),$=te(R,2),I=$[0],A=$[1],H=W(),G=h.useRef(!1),Y=h.useRef(null);function U(){return n()}var X=h.useRef(!1);function ee(){N(Ni),A(null,!0)}var q=vn(function(Ee){var ie=W();if(ie!==Ni){var Ie=U();if(!(Ee&&!Ee.deadline&&Ee.target!==Ie)){var oe=X.current,Be;ie===Lc&&oe?Be=w==null?void 0:w(Ie,Ee):ie===Dc&&oe?Be=C==null?void 0:C(Ie,Ee):ie===zc&&oe&&(Be=_==null?void 0:_(Ie,Ee)),oe&&Be!==!1&&ee()}}}),K=b$(q),Z=te(K,1),ne=Z[0],pe=function(ie){switch(ie){case Lc:return L(L(L({},jr,f),Ia,y),Fa,g);case Dc:return L(L(L({},jr,p),Ia,b),Fa,x);case zc:return L(L(L({},jr,v),Ia,m),Fa,S);default:return{}}},ye=h.useMemo(function(){return pe(H)},[H]),xe=E$(H,!e,function(Ee){if(Ee===jr){var ie=ye[jr];return ie?ie(U()):vC}if(be in ye){var Ie;A(((Ie=ye[be])===null||Ie===void 0?void 0:Ie.call(ye,U(),null))||null)}return be===Fa&&H!==Ni&&(ne(U()),u>0&&(clearTimeout(Y.current),Y.current=setTimeout(function(){q({deadline:!0})},u))),be===uC&&ee(),C$}),me=te(xe,2),fe=me[0],be=me[1],he=yC(be);X.current=he,mC(function(){D(t);var Ee=G.current;G.current=!0;var ie;!Ee&&t&&s&&(ie=Lc),Ee&&t&&o&&(ie=Dc),(Ee&&!t&&c||!Ee&&d&&!t&&c)&&(ie=zc);var Ie=pe(ie);ie&&(e||Ie[jr])?(N(ie),fe()):N(Ni)},[t]),h.useEffect(function(){(H===Lc&&!s||H===Dc&&!o||H===zc&&!c)&&N(Ni)},[s,o,c]),h.useEffect(function(){return function(){G.current=!1,clearTimeout(Y.current)}},[]);var we=h.useRef(!1);h.useEffect(function(){F&&(we.current=!0),F!==void 0&&H===Ni&&((we.current||F)&&(M==null||M(F)),we.current=!0)},[F,H]);var Ae=I;return ye[jr]&&be===Ia&&(Ae=V({transition:"none"},Ae)),[H,be,Ae,F??t]}function O$(e){var t=e;Re(e)==="object"&&(t=e.transitionSupport);function n(i,o){return!!(i.motionName&&t&&o!==!1)}var r=h.forwardRef(function(i,o){var a=i.visible,s=a===void 0?!0:a,l=i.removeOnLeave,c=l===void 0?!0:l,u=i.forceRender,d=i.children,f=i.motionName,p=i.leavedClassName,v=i.eventProps,y=h.useContext(cC),b=y.motion,m=n(i,b),g=h.useRef(),x=h.useRef();function S(){try{return g.current instanceof HTMLElement?g.current:yu(x.current)}catch{return null}}var w=_$(m,s,S,i),C=te(w,4),_=C[0],M=C[1],T=C[2],P=C[3],F=h.useRef(P);P&&(F.current=!0);var D=h.useCallback(function(I){g.current=I,Em(o,I)},[o]),z,j=V(V({},v),{},{visible:s});if(!d)z=null;else if(_===Ni)P?z=d(V({},j),D):!c&&F.current&&p?z=d(V(V({},j),{},{className:p}),D):u||!c&&!p?z=d(V(V({},j),{},{style:{display:"none"}}),D):z=null;else{var W;M===jr?W="prepare":yC(M)?W="active":M===Ia&&(W="start");var N=my(f,"".concat(_,"-").concat(W));z=d(V(V({},j),{},{className:ve(my(f,_),L(L({},N,N&&W),f,typeof f=="string")),style:T}),D)}if(h.isValidElement(z)&&cs(z)){var R=z,$=R.ref;$||(z=h.cloneElement(z,{ref:D}))}return h.createElement(g$,{ref:x},z)});return r.displayName="CSSMotion",r}const ds=O$(pC);var Hg="add",Bg="keep",Vg="remove",Kf="removed";function M$(e){var t;return e&&Re(e)==="object"&&"key"in e?t=e:t={key:e},V(V({},t),{},{key:String(t.key)})}function Wg(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(M$)}function T$(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,i=t.length,o=Wg(e),a=Wg(t);o.forEach(function(c){for(var u=!1,d=r;d1});return l.forEach(function(c){n=n.filter(function(u){var d=u.key,f=u.status;return d!==c||f!==Vg}),n.forEach(function(u){u.key===c&&(u.status=Bg)})}),n}var P$=["component","children","onVisibleChanged","onAllRemoved"],$$=["status"],R$=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function k$(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ds,n=function(r){go(o,r);var i=po(o);function o(){var a;Kt(this,o);for(var s=arguments.length,l=new Array(s),c=0;cnull;var A$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);it.endsWith("Color"))}const j$=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:i}=e;t!==void 0&&(bC=t),r&&z$(r)&&AP(D$(),r)},H$=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:i,anchor:o,form:a,locale:s,componentSize:l,direction:c,space:u,splitter:d,virtual:f,dropdownMatchSelectWidth:p,popupMatchSelectWidth:v,popupOverflow:y,legacyLocale:b,parentContext:m,iconPrefixCls:g,theme:x,componentDisabled:S,segmented:w,statistic:C,spin:_,calendar:M,carousel:T,cascader:P,collapse:F,typography:D,checkbox:z,descriptions:j,divider:W,drawer:N,skeleton:R,steps:$,image:I,layout:A,list:H,mentions:G,modal:Y,progress:U,result:X,slider:ee,breadcrumb:q,menu:K,pagination:Z,input:ne,textArea:pe,empty:ye,badge:xe,radio:me,rate:fe,switch:be,transfer:he,avatar:we,message:Ae,tag:Ee,table:ie,card:Ie,tabs:oe,timeline:Be,timePicker:Pe,upload:Fe,notification:je,tree:Ge,colorPicker:ct,datePicker:Qe,rangePicker:tt,flex:ft,wave:Wt,dropdown:wt,warning:ur,tour:hn,floatButtonGroup:kt,variant:ht,inputNumber:kr,treeSelect:gt}=e,nn=h.useCallback((it,Ze)=>{const{prefixCls:Gt}=e;if(Ze)return Ze;const Ct=Gt||m.getPrefixCls("");return it?`${Ct}-${it}`:Ct},[m.getPrefixCls,e.prefixCls]),Se=g||m.iconPrefixCls||Qw,se=n||m.csp;sC(Se,se);const Oe=d$(x,m.theme,{prefixCls:nn("")}),Me={csp:se,autoInsertSpaceInButton:r,alert:i,anchor:o,locale:s||b,direction:c,space:u,splitter:d,virtual:f,popupMatchSelectWidth:v??p,popupOverflow:y,getPrefixCls:nn,iconPrefixCls:Se,theme:Oe,segmented:w,statistic:C,spin:_,calendar:M,carousel:T,cascader:P,collapse:F,typography:D,checkbox:z,descriptions:j,divider:W,drawer:N,skeleton:R,steps:$,image:I,input:ne,textArea:pe,layout:A,list:H,mentions:G,modal:Y,progress:U,result:X,slider:ee,breadcrumb:q,menu:K,pagination:Z,empty:ye,badge:xe,radio:me,rate:fe,switch:be,transfer:he,avatar:we,message:Ae,tag:Ee,table:ie,card:Ie,tabs:oe,timeline:Be,timePicker:Pe,upload:Fe,notification:je,tree:Ge,colorPicker:ct,datePicker:Qe,rangePicker:tt,flex:ft,wave:Wt,dropdown:wt,warning:ur,tour:hn,floatButtonGroup:kt,variant:ht,inputNumber:kr,treeSelect:gt},Le=Object.assign({},m);Object.keys(Me).forEach(it=>{Me[it]!==void 0&&(Le[it]=Me[it])}),L$.forEach(it=>{const Ze=e[it];Ze&&(Le[it]=Ze)}),typeof r<"u"&&(Le.button=Object.assign({autoInsertSpace:r},Le.button));const dt=Cm(()=>Le,Le,(it,Ze)=>{const Gt=Object.keys(it),Ct=Object.keys(Ze);return Gt.length!==Ct.length||Gt.some(Qt=>it[Qt]!==Ze[Qt])}),qe=h.useMemo(()=>({prefixCls:Se,csp:se}),[Se,se]);let ke=h.createElement(h.Fragment,null,h.createElement(N$,{dropdownMatchSelectWidth:p}),t);const Ut=h.useMemo(()=>{var it,Ze,Gt,Ct;return ka(((it=Go.Form)===null||it===void 0?void 0:it.defaultValidateMessages)||{},((Gt=(Ze=dt.locale)===null||Ze===void 0?void 0:Ze.Form)===null||Gt===void 0?void 0:Gt.defaultValidateMessages)||{},((Ct=dt.form)===null||Ct===void 0?void 0:Ct.validateMessages)||{},(a==null?void 0:a.validateMessages)||{})},[dt,a==null?void 0:a.validateMessages]);Object.keys(Ut).length>0&&(ke=h.createElement(Vw.Provider,{value:Ut},ke)),s&&(ke=h.createElement(oP,{locale:s,_ANT_MARK__:iP},ke)),(Se||se)&&(ke=h.createElement(Nm.Provider,{value:qe},ke)),l&&(ke=h.createElement(LP,{size:l},ke)),ke=h.createElement(F$,null,ke);const gn=h.useMemo(()=>{const it=Oe||{},{algorithm:Ze,token:Gt,components:Ct,cssVar:Qt}=it,dr=A$(it,["algorithm","token","components","cssVar"]),Kr=Ze&&(!Array.isArray(Ze)||Ze.length>0)?bg(Ze):Kw,Hn={};Object.entries(Ct||{}).forEach(Zn=>{let[rn,In]=Zn;const ot=Object.assign({},In);"algorithm"in ot&&(ot.algorithm===!0?ot.theme=Kr:(Array.isArray(ot.algorithm)||typeof ot.algorithm=="function")&&(ot.theme=bg(ot.algorithm)),delete ot.algorithm),Hn[rn]=ot});const kn=Object.assign(Object.assign({},jl),Gt);return Object.assign(Object.assign({},dr),{theme:Kr,token:kn,components:Hn,override:Object.assign({override:kn},Hn),cssVar:Qt})},[Oe]);return x&&(ke=h.createElement(Yw.Provider,{value:gn},ke)),dt.warning&&(ke=h.createElement(ZT.Provider,{value:dt.warning},ke)),S!==void 0&&(ke=h.createElement(Zw,{disabled:S},ke)),h.createElement(Rt.Provider,{value:dt},ke)},fs=e=>{const t=h.useContext(Rt),n=h.useContext(Lm);return h.createElement(H$,Object.assign({parentContext:t,legacyLocale:n},e))};fs.ConfigContext=Rt;fs.SizeContext=Xo;fs.config=j$;fs.useConfig=DP;Object.defineProperty(fs,"SizeContext",{get:()=>Xo});var B$={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 xC(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function V$(e){return xC(e)instanceof ShadowRoot}function sd(e){return V$(e)?xC(e):null}function W$(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function U$(e,t){Tn(e,"[@ant-design/icons] ".concat(t))}function vy(e){return Re(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(Re(e.icon)==="object"||typeof e.icon=="function")}function yy(){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[W$(n)]=r}return t},{})}function Ug(e,t,n){return n?de.createElement(e.tag,V(V({key:t},yy(e.attrs)),n),(e.children||[]).map(function(r,i){return Ug(r,"".concat(t,"-").concat(e.tag,"-").concat(i))})):de.createElement(e.tag,V({key:t},yy(e.attrs)),(e.children||[]).map(function(r,i){return Ug(r,"".concat(t,"-").concat(e.tag,"-").concat(i))}))}function SC(e){return zl(e)[0]}function wC(e){return e?Array.isArray(e)?e:[e]:[]}var G$=` +.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); + } +} +`,q$=function(t){var n=h.useContext(Nm),r=n.csp,i=n.prefixCls,o=G$;i&&(o=o.replace(/anticon/g,i)),h.useEffect(function(){var a=t.current,s=sd(a);wi(o,"@ant-design-icons",{prepend:!0,csp:r,attachTo:s})},[])},X$=["icon","className","onClick","style","primaryColor","secondaryColor"],il={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function K$(e){var t=e.primaryColor,n=e.secondaryColor;il.primaryColor=t,il.secondaryColor=n||SC(t),il.calculated=!!n}function Y$(){return V({},il)}var hs=function(t){var n=t.icon,r=t.className,i=t.onClick,o=t.style,a=t.primaryColor,s=t.secondaryColor,l=$n(t,X$),c=h.useRef(),u=il;if(a&&(u={primaryColor:a,secondaryColor:s||SC(a)}),q$(c),U$(vy(n),"icon should be icon definiton, but got ".concat(n)),!vy(n))return null;var d=n;return d&&typeof d.icon=="function"&&(d=V(V({},d),{},{icon:d.icon(u.primaryColor,u.secondaryColor)})),Ug(d.icon,"svg-".concat(d.name),V(V({className:r,onClick:i,style:o,"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};hs.displayName="IconReact";hs.getTwoToneColors=Y$;hs.setTwoToneColors=K$;function CC(e){var t=wC(e),n=te(t,2),r=n[0],i=n[1];return hs.setTwoToneColors({primaryColor:r,secondaryColor:i})}function Q$(){var e=hs.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var Z$=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];CC(od.primary);var Rn=h.forwardRef(function(e,t){var n=e.className,r=e.icon,i=e.spin,o=e.rotate,a=e.tabIndex,s=e.onClick,l=e.twoToneColor,c=$n(e,Z$),u=h.useContext(Nm),d=u.prefixCls,f=d===void 0?"anticon":d,p=u.rootClassName,v=ve(p,f,L(L({},"".concat(f,"-").concat(r.name),!!r.name),"".concat(f,"-spin"),!!i||r.name==="loading"),n),y=a;y===void 0&&s&&(y=-1);var b=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,m=wC(l),g=te(m,2),x=g[0],S=g[1];return h.createElement("span",nt({role:"img","aria-label":r.name},c,{ref:t,tabIndex:y,onClick:s,className:v}),h.createElement(hs,{icon:r,primaryColor:x,secondaryColor:S,style:b}))});Rn.displayName="AntdIcon";Rn.getTwoToneColor=Q$;Rn.setTwoToneColor=CC;var J$=function(t,n){return h.createElement(Rn,nt({},t,{ref:n,icon:B$}))},eR=h.forwardRef(J$),tR={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"},nR=function(t,n){return h.createElement(Rn,nt({},t,{ref:n,icon:tR}))},rR=h.forwardRef(nR),iR={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"},oR=function(t,n){return h.createElement(Rn,nt({},t,{ref:n,icon:iR}))},aR=h.forwardRef(oR);function EC(e){return e&&de.isValidElement(e)&&e.type===de.Fragment}const sR=(e,t,n)=>de.isValidElement(e)?de.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function Jd(e,t){return sR(e,e,t)}const by=e=>typeof e=="object"&&e!=null&&e.nodeType===1,xy=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",Yf=(e,t)=>{if(e.clientHeight{const i=(o=>{if(!o.ownerDocument||!o.ownerDocument.defaultView)return null;try{return o.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!i&&(i.clientHeightot||o>e&&a=t&&s>=n?o-e-r:a>t&&sn?a-t+i:0,lR=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},Sy=(e,t)=>{var n,r,i,o;if(typeof document>"u")return[];const{scrollMode:a,block:s,inline:l,boundary:c,skipOverflowHiddenElements:u}=t,d=typeof c=="function"?c:N=>N!==c;if(!by(e))throw new TypeError("Invalid target");const f=document.scrollingElement||document.documentElement,p=[];let v=e;for(;by(v)&&d(v);){if(v=lR(v),v===f){p.push(v);break}v!=null&&v===document.body&&Yf(v)&&!Yf(document.documentElement)||v!=null&&Yf(v,u)&&p.push(v)}const y=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,b=(o=(i=window.visualViewport)==null?void 0:i.height)!=null?o:innerHeight,{scrollX:m,scrollY:g}=window,{height:x,width:S,top:w,right:C,bottom:_,left:M}=e.getBoundingClientRect(),{top:T,right:P,bottom:F,left:D}=(N=>{const R=window.getComputedStyle(N);return{top:parseFloat(R.scrollMarginTop)||0,right:parseFloat(R.scrollMarginRight)||0,bottom:parseFloat(R.scrollMarginBottom)||0,left:parseFloat(R.scrollMarginLeft)||0}})(e);let z=s==="start"||s==="nearest"?w-T:s==="end"?_+F:w+x/2-T+F,j=l==="center"?M+S/2-D+P:l==="end"?C+P:M-D;const W=[];for(let N=0;N=0&&M>=0&&_<=b&&C<=y&&w>=A&&_<=G&&M>=Y&&C<=H)return W;const U=getComputedStyle(R),X=parseInt(U.borderLeftWidth,10),ee=parseInt(U.borderTopWidth,10),q=parseInt(U.borderRightWidth,10),K=parseInt(U.borderBottomWidth,10);let Z=0,ne=0;const pe="offsetWidth"in R?R.offsetWidth-R.clientWidth-X-q:0,ye="offsetHeight"in R?R.offsetHeight-R.clientHeight-ee-K:0,xe="offsetWidth"in R?R.offsetWidth===0?0:I/R.offsetWidth:0,me="offsetHeight"in R?R.offsetHeight===0?0:$/R.offsetHeight:0;if(f===R)Z=s==="start"?z:s==="end"?z-b:s==="nearest"?Hc(g,g+b,b,ee,K,g+z,g+z+x,x):z-b/2,ne=l==="start"?j:l==="center"?j-y/2:l==="end"?j-y:Hc(m,m+y,y,X,q,m+j,m+j+S,S),Z=Math.max(0,Z+g),ne=Math.max(0,ne+m);else{Z=s==="start"?z-A-ee:s==="end"?z-G+K+ye:s==="nearest"?Hc(A,G,$,ee,K+ye,z,z+x,x):z-(A+$/2)+ye/2,ne=l==="start"?j-Y-X:l==="center"?j-(Y+I/2)+pe/2:l==="end"?j-H+q+pe:Hc(Y,H,I,X,q+pe,j,j+S,S);const{scrollLeft:fe,scrollTop:be}=R;Z=me===0?0:Math.max(0,Math.min(be+Z/me,R.scrollHeight-$/me+ye)),ne=xe===0?0:Math.max(0,Math.min(fe+ne/xe,R.scrollWidth-I/xe+pe)),z+=be-Z,j+=fe-ne}W.push({el:R,top:Z,left:ne})}return W},cR=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function uR(e,t){if(!e.isConnected||!(i=>{let o=i;for(;o&&o.parentNode;){if(o.parentNode===document)return!0;o=o.parentNode instanceof ShadowRoot?o.parentNode.host:o.parentNode}return!1})(e))return;const n=(i=>{const o=window.getComputedStyle(i);return{top:parseFloat(o.scrollMarginTop)||0,right:parseFloat(o.scrollMarginRight)||0,bottom:parseFloat(o.scrollMarginBottom)||0,left:parseFloat(o.scrollMarginLeft)||0}})(e);if((i=>typeof i=="object"&&typeof i.behavior=="function")(t))return t.behavior(Sy(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:i,top:o,left:a}of Sy(e,cR(t))){const s=o-n.top+n.bottom,l=a-n.left+n.right;i.scroll({top:s,left:l,behavior:r})}}const ef=e=>{const[,,,,t]=Ri();return t?`${e}-css-var`:""};var ce={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>=ce.F1&&n<=ce.F12)return!1;switch(n){case ce.ALT:case ce.CAPS_LOCK:case ce.CONTEXT_MENU:case ce.CTRL:case ce.DOWN:case ce.END:case ce.ESC:case ce.HOME:case ce.INSERT:case ce.LEFT:case ce.MAC_FF_META:case ce.META:case ce.NUMLOCK:case ce.NUM_CENTER:case ce.PAGE_DOWN:case ce.PAGE_UP:case ce.PAUSE:case ce.PRINT_SCREEN:case ce.RIGHT:case ce.SHIFT:case ce.UP:case ce.WIN_KEY:case ce.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=ce.ZERO&&t<=ce.NINE||t>=ce.NUM_ZERO&&t<=ce.NUM_MULTIPLY||t>=ce.A&&t<=ce.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case ce.SPACE:case ce.QUESTION_MARK:case ce.NUM_PLUS:case ce.NUM_MINUS:case ce.NUM_PERIOD:case ce.NUM_DIVISION:case ce.SEMICOLON:case ce.DASH:case ce.EQUALS:case ce.COMMA:case ce.PERIOD:case ce.SLASH:case ce.APOSTROPHE:case ce.SINGLE_QUOTE:case ce.OPEN_SQUARE_BRACKET:case ce.BACKSLASH:case ce.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},dR={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"},fR=function(t,n){return h.createElement(Rn,nt({},t,{ref:n,icon:dR}))},_C=h.forwardRef(fR);const OC=de.createContext(void 0),xo=100,MC={Modal:xo,Drawer:xo,Popover:xo,Popconfirm:xo,Tooltip:xo,Tour:xo,FloatButton:xo},hR={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function gR(e){return e in MC}const pR=(e,t)=>{const[,n]=Ri(),r=de.useContext(OC),i=gR(e);let o;if(t!==void 0)o=[t,t];else{let a=r??0;i?a+=(r?0:n.zIndexPopupBase)+MC[e]:a+=hR[e],o=[r===void 0?t:a,a]}return o};function Ln(){Ln=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(N,R,$){N[R]=$.value},o=typeof Symbol=="function"?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(N,R,$){return Object.defineProperty(N,R,{value:$,enumerable:!0,configurable:!0,writable:!0}),N[R]}try{c({},"")}catch{c=function($,I,A){return $[I]=A}}function u(N,R,$,I){var A=R&&R.prototype instanceof m?R:m,H=Object.create(A.prototype),G=new j(I||[]);return i(H,"_invoke",{value:P(N,$,G)}),H}function d(N,R,$){try{return{type:"normal",arg:N.call(R,$)}}catch(I){return{type:"throw",arg:I}}}t.wrap=u;var f="suspendedStart",p="suspendedYield",v="executing",y="completed",b={};function m(){}function g(){}function x(){}var S={};c(S,a,function(){return this});var w=Object.getPrototypeOf,C=w&&w(w(W([])));C&&C!==n&&r.call(C,a)&&(S=C);var _=x.prototype=m.prototype=Object.create(S);function M(N){["next","throw","return"].forEach(function(R){c(N,R,function($){return this._invoke(R,$)})})}function T(N,R){function $(A,H,G,Y){var U=d(N[A],N,H);if(U.type!=="throw"){var X=U.arg,ee=X.value;return ee&&Re(ee)=="object"&&r.call(ee,"__await")?R.resolve(ee.__await).then(function(q){$("next",q,G,Y)},function(q){$("throw",q,G,Y)}):R.resolve(ee).then(function(q){X.value=q,G(X)},function(q){return $("throw",q,G,Y)})}Y(U.arg)}var I;i(this,"_invoke",{value:function(H,G){function Y(){return new R(function(U,X){$(H,G,U,X)})}return I=I?I.then(Y,Y):Y()}})}function P(N,R,$){var I=f;return function(A,H){if(I===v)throw Error("Generator is already running");if(I===y){if(A==="throw")throw H;return{value:e,done:!0}}for($.method=A,$.arg=H;;){var G=$.delegate;if(G){var Y=F(G,$);if(Y){if(Y===b)continue;return Y}}if($.method==="next")$.sent=$._sent=$.arg;else if($.method==="throw"){if(I===f)throw I=y,$.arg;$.dispatchException($.arg)}else $.method==="return"&&$.abrupt("return",$.arg);I=v;var U=d(N,R,$);if(U.type==="normal"){if(I=$.done?y:p,U.arg===b)continue;return{value:U.arg,done:$.done}}U.type==="throw"&&(I=y,$.method="throw",$.arg=U.arg)}}}function F(N,R){var $=R.method,I=N.iterator[$];if(I===e)return R.delegate=null,$==="throw"&&N.iterator.return&&(R.method="return",R.arg=e,F(N,R),R.method==="throw")||$!=="return"&&(R.method="throw",R.arg=new TypeError("The iterator does not provide a '"+$+"' method")),b;var A=d(I,N.iterator,R.arg);if(A.type==="throw")return R.method="throw",R.arg=A.arg,R.delegate=null,b;var H=A.arg;return H?H.done?(R[N.resultName]=H.value,R.next=N.nextLoc,R.method!=="return"&&(R.method="next",R.arg=e),R.delegate=null,b):H:(R.method="throw",R.arg=new TypeError("iterator result is not an object"),R.delegate=null,b)}function D(N){var R={tryLoc:N[0]};1 in N&&(R.catchLoc=N[1]),2 in N&&(R.finallyLoc=N[2],R.afterLoc=N[3]),this.tryEntries.push(R)}function z(N){var R=N.completion||{};R.type="normal",delete R.arg,N.completion=R}function j(N){this.tryEntries=[{tryLoc:"root"}],N.forEach(D,this),this.reset(!0)}function W(N){if(N||N===""){var R=N[a];if(R)return R.call(N);if(typeof N.next=="function")return N;if(!isNaN(N.length)){var $=-1,I=function A(){for(;++$=0;--A){var H=this.tryEntries[A],G=H.completion;if(H.tryLoc==="root")return I("end");if(H.tryLoc<=this.prev){var Y=r.call(H,"catchLoc"),U=r.call(H,"finallyLoc");if(Y&&U){if(this.prev=0;--I){var A=this.tryEntries[I];if(A.tryLoc<=this.prev&&r.call(A,"finallyLoc")&&this.prev=0;--$){var I=this.tryEntries[$];if(I.finallyLoc===R)return this.complete(I.completion,I.afterLoc),z(I),b}},catch:function(R){for(var $=this.tryEntries.length-1;$>=0;--$){var I=this.tryEntries[$];if(I.tryLoc===R){var A=I.completion;if(A.type==="throw"){var H=A.arg;z(I)}return H}}throw Error("illegal catch attempt")},delegateYield:function(R,$,I){return this.delegate={iterator:W(R),resultName:$,nextLoc:I},this.method==="next"&&(this.arg=e),b}},t}function wy(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(c){return void n(c)}s.done?t(l):Promise.resolve(l).then(r,i)}function ea(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(l){wy(o,r,i,a,s,"next",l)}function s(l){wy(o,r,i,a,s,"throw",l)}a(void 0)})}}var ac=V({},oM),mR=ac.version,vR=ac.render,yR=ac.unmountComponentAtNode,tf;try{var bR=Number((mR||"").split(".")[0]);bR>=18&&(tf=ac.createRoot)}catch{}function Cy(e){var t=ac.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&Re(t)==="object"&&(t.usingClientEntryPoint=e)}var ld="__rc_react_root__";function xR(e,t){Cy(!0);var n=t[ld]||tf(t);Cy(!1),n.render(e),t[ld]=n}function SR(e,t){vR(e,t)}function wR(e,t){if(tf){xR(e,t);return}SR(e,t)}function CR(e){return Gg.apply(this,arguments)}function Gg(){return Gg=ea(Ln().mark(function e(t){return Ln().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var i;(i=t[ld])===null||i===void 0||i.unmount(),delete t[ld]}));case 1:case"end":return r.stop()}},e)})),Gg.apply(this,arguments)}function ER(e){yR(e)}function _R(e){return qg.apply(this,arguments)}function qg(){return qg=ea(Ln().mark(function e(t){return Ln().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(tf===void 0){r.next=2;break}return r.abrupt("return",CR(t));case 2:ER(t);case 3:case"end":return r.stop()}},e)})),qg.apply(this,arguments)}const Qf=()=>({height:0,opacity:0}),Ey=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},OR=e=>({height:e?e.offsetHeight:0}),Zf=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",_y=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:Hl}-motion-collapse`,onAppearStart:Qf,onEnterStart:Qf,onAppearActive:Ey,onEnterActive:Ey,onLeaveStart:OR,onLeaveActive:Qf,onAppearEnd:Zf,onEnterEnd:Zf,onLeaveEnd:Zf,motionDeadline:500}},MR=(e,t,n)=>n!==void 0?n:`${e}-${t}`,zm=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var i=e.getBoundingClientRect(),o=i.width,a=i.height;if(o||a)return!0}}return!1},TR=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(",")}}}}},PR=a$("Wave",e=>[TR(e)]),TC=`${Hl}-wave-target`;function Jf(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 $R(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return Jf(t)?t:Jf(n)?n:Jf(r)?r:null}function eh(e){return Number.isNaN(e)?0:e}const RR=e=>{const{className:t,target:n,component:r}=e,i=h.useRef(null),[o,a]=h.useState(null),[s,l]=h.useState([]),[c,u]=h.useState(0),[d,f]=h.useState(0),[p,v]=h.useState(0),[y,b]=h.useState(0),[m,g]=h.useState(!1),x={left:c,top:d,width:p,height:y,borderRadius:s.map(C=>`${C}px`).join(" ")};o&&(x["--wave-color"]=o);function S(){const C=getComputedStyle(n);a($R(n));const _=C.position==="static",{borderLeftWidth:M,borderTopWidth:T}=C;u(_?n.offsetLeft:eh(-parseFloat(M))),f(_?n.offsetTop:eh(-parseFloat(T))),v(n.offsetWidth),b(n.offsetHeight);const{borderTopLeftRadius:P,borderTopRightRadius:F,borderBottomLeftRadius:D,borderBottomRightRadius:z}=C;l([P,F,z,D].map(j=>eh(parseFloat(j))))}if(h.useEffect(()=>{if(n){const C=fn(()=>{S(),g(!0)});let _;return typeof ResizeObserver<"u"&&(_=new ResizeObserver(S),_.observe(n)),()=>{fn.cancel(C),_==null||_.disconnect()}}},[]),!m)return null;const w=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(TC));return h.createElement(ds,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(C,_)=>{var M;if(_.deadline||_.propertyName==="opacity"){const T=(M=i.current)===null||M===void 0?void 0:M.parentElement;_R(T).then(()=>{T==null||T.remove()})}return!1}},(C,_)=>{let{className:M}=C;return h.createElement("div",{ref:ho(i,_),className:ve(t,M,{"wave-quick":w}),style:x})})},kR=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.checked))return;const i=document.createElement("div");i.style.position="absolute",i.style.left="0px",i.style.top="0px",e==null||e.insertBefore(i,e==null?void 0:e.firstChild),wR(h.createElement(RR,Object.assign({},t,{target:e})),i)},IR=(e,t,n)=>{const{wave:r}=h.useContext(Rt),[,i,o]=Ri(),a=vn(c=>{const u=e.current;if(r!=null&&r.disabled||!u)return;const d=u.querySelector(`.${TC}`)||u,{showEffect:f}=r||{};(f||kR)(d,{className:t,token:i,component:n,event:c,hashId:o})}),s=h.useRef();return c=>{fn.cancel(s.current),s.current=fn(()=>{a(c)})}},FR=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:i}=h.useContext(Rt),o=h.useRef(null),a=i("wave"),[,s]=PR(a),l=IR(o,ve(a,s),r);if(de.useEffect(()=>{const u=o.current;if(!u||u.nodeType!==1||n)return;const d=f=>{!zm(f.target)||!u.getAttribute||u.getAttribute("disabled")||u.disabled||u.className.includes("disabled")||u.className.includes("-leave")||l(f)};return u.addEventListener("click",d,!0),()=>{u.removeEventListener("click",d,!0)}},[n]),!de.isValidElement(t))return t??null;const c=cs(t)?ho(t.ref,o):o;return Jd(t,{ref:c})},jm=e=>{const t=de.useContext(Xo);return de.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},PC=h.createContext(null),$C=(e,t)=>{const n=h.useContext(PC),r=h.useMemo(()=>{if(!n)return"";const{compactDirection:i,isFirstItem:o,isLastItem:a}=n,s=i==="vertical"?"-vertical-":"-";return ve(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:o,[`${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}},NR=e=>{let{children:t}=e;return h.createElement(PC.Provider,{value:null},t)};var AR=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{getPrefixCls:t,direction:n}=h.useContext(Rt),{prefixCls:r,size:i,className:o}=e,a=AR(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,l]=Ri();let c="";switch(i){case"large":c="lg";break;case"small":c="sm";break}const u=ve(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:n==="rtl"},o,l);return h.createElement(RC.Provider,{value:i},h.createElement("div",Object.assign({},a,{className:u})))},Oy=/^[\u4E00-\u9FA5]{2}$/,Xg=Oy.test.bind(Oy);function My(e){return typeof e=="string"}function th(e){return e==="text"||e==="link"}function DR(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&My(e.type)&&Xg(e.props.children)?Jd(e,{children:e.props.children.split("").join(n)}):My(e)?Xg(e)?de.createElement("span",null,e.split("").join(n)):de.createElement("span",null,e):EC(e)?de.createElement("span",null,e):e}function zR(e,t){let n=!1;const r=[];return de.Children.forEach(e,i=>{const o=typeof i,a=o==="string"||o==="number";if(n&&a){const s=r.length-1,l=r[s];r[s]=`${l}${i}`}else r.push(i);n=a}),de.Children.map(r,i=>DR(i,t))}const kC=h.forwardRef((e,t)=>{const{className:n,style:r,children:i,prefixCls:o}=e,a=ve(`${o}-icon`,n);return de.createElement("span",{ref:t,className:a,style:r},i)}),Ty=h.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:i,iconClassName:o}=e,a=ve(`${n}-loading-icon`,r);return de.createElement(kC,{prefixCls:n,className:a,style:i,ref:t},de.createElement(_C,{className:o}))}),nh=()=>({width:0,opacity:0,transform:"scale(0)"}),rh=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),jR=e=>{const{prefixCls:t,loading:n,existIcon:r,className:i,style:o}=e,a=!!n;return r?de.createElement(Ty,{prefixCls:t,className:i,style:o}):de.createElement(ds,{visible:a,motionName:`${t}-loading-icon-motion`,motionLeave:a,removeOnLeave:!0,onAppearStart:nh,onAppearActive:rh,onEnterStart:nh,onEnterActive:rh,onLeaveStart:rh,onLeaveActive:nh},(s,l)=>{let{className:c,style:u}=s;return de.createElement(Ty,{prefixCls:t,className:i,style:Object.assign(Object.assign({},o),u),ref:l,iconClassName:c})})},Py=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),HR=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:i,colorErrorHover:o}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},Py(`${t}-primary`,i),Py(`${t}-danger`,o)]}},an=Math.round;function ih(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(i=>parseFloat(i));for(let i=0;i<3;i+=1)r[i]=t(r[i]||0,n[i]||"",i);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const $y=(e,t,n)=>n===0?e:e/100;function Ps(e,t){const n=t||255;return e>n?n:e<0?0:e}class nf{constructor(t){L(this,"isValid",!0),L(this,"r",0),L(this,"g",0),L(this,"b",0),L(this,"a",1),L(this,"_h",void 0),L(this,"_s",void 0),L(this,"_l",void 0),L(this,"_v",void 0),L(this,"_max",void 0),L(this,"_min",void 0),L(this,"_brightness",void 0);function n(i){return i[0]in t&&i[1]in t&&i[2]in t}if(t)if(typeof t=="string"){let o=function(a){return i.startsWith(a)};var r=o;const i=t.trim();/^#?[A-F\d]{3,8}$/i.test(i)?this.fromHexString(i):o("rgb")?this.fromRgbString(i):o("hsl")?this.fromHslString(i):(o("hsv")||o("hsb"))&&this.fromHsvString(i)}else if(t instanceof nf)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=Ps(t.r),this.g=Ps(t.g),this.b=Ps(t.b),this.a=typeof t.a=="number"?Ps(t.a,1):1;else if(n("hsl"))this.fromHsl(t);else if(n("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const n=this.toHsv();return n.h=t,this._c(n)}getLuminance(){function t(o){const a=o/255;return a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4)}const n=t(this.r),r=t(this.g),i=t(this.b);return .2126*n+.7152*r+.0722*i}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=an(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 i=this.getLightness()-t/100;return i<0&&(i=0),this._c({h:n,s:r,l:i,a:this.a})}lighten(t=10){const n=this.getHue(),r=this.getSaturation();let i=this.getLightness()+t/100;return i>1&&(i=1),this._c({h:n,s:r,l:i,a:this.a})}mix(t,n=50){const r=this._c(t),i=n/100,o=s=>(r[s]-this[s])*i+this[s],a={r:an(o("r")),g:an(o("g")),b:an(o("b")),a:an(o("a")*100)/100};return this._c(a)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const n=this._c(t),r=this.a+n.a*(1-this.a),i=o=>an((this[o]*this.a+n[o]*n.a*(1-this.a))/r);return this._c({r:i("r"),g:i("g"),b:i("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const n=(this.r||0).toString(16);t+=n.length===2?n:"0"+n;const r=(this.g||0).toString(16);t+=r.length===2?r:"0"+r;const i=(this.b||0).toString(16);if(t+=i.length===2?i:"0"+i,typeof this.a=="number"&&this.a>=0&&this.a<1){const o=an(this.a*255).toString(16);t+=o.length===2?o:"0"+o}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=an(this.getSaturation()*100),r=an(this.getLightness()*100);return this.a!==1?`hsla(${t},${n}%,${r}%,${this.a})`:`hsl(${t},${n}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,n,r){const i=this.clone();return i[t]=Ps(n,r),i}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const n=t.replace("#","");function r(i,o){return parseInt(n[i]+n[o||i],16)}n.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=n[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=n[6]?r(6,7)/255:1)}fromHsl({h:t,s:n,l:r,a:i}){if(this._h=t%360,this._s=n,this._l=r,this.a=typeof i=="number"?i:1,n<=0){const f=an(r*255);this.r=f,this.g=f,this.b=f}let o=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?(o=c,a=u):l>=1&&l<2?(o=u,a=c):l>=2&&l<3?(a=c,s=u):l>=3&&l<4?(a=u,s=c):l>=4&&l<5?(o=u,s=c):l>=5&&l<6&&(o=c,s=u);const d=r-c/2;this.r=an((o+d)*255),this.g=an((a+d)*255),this.b=an((s+d)*255)}fromHsv({h:t,s:n,v:r,a:i}){this._h=t%360,this._s=n,this._v=r,this.a=typeof i=="number"?i:1;const o=an(r*255);if(this.r=o,this.g=o,this.b=o,n<=0)return;const a=t/60,s=Math.floor(a),l=a-s,c=an(r*(1-n)*255),u=an(r*(1-n*l)*255),d=an(r*(1-n*(1-l))*255);switch(s){case 0:this.g=d,this.b=c;break;case 1:this.r=u,this.b=c;break;case 2:this.r=c,this.b=d;break;case 3:this.r=c,this.g=u;break;case 4:this.r=d,this.g=c;break;case 5:default:this.g=c,this.b=u;break}}fromHsvString(t){const n=ih(t,$y);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=ih(t,$y);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=ih(t,(r,i)=>i.includes("%")?an(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}var BR=["b"],VR=["v"],oh=function(t){return Math.round(Number(t||0))},WR=function(t){if(t instanceof nf)return t;if(t&&Re(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,i=$n(n,BR);return V(V({},i),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},Bl=function(e){go(n,e);var t=po(n);function n(r){return Kt(this,n),t.call(this,WR(r))}return Yt(n,[{key:"toHsbString",value:function(){var i=this.toHsb(),o=oh(i.s*100),a=oh(i.b*100),s=oh(i.h),l=i.a,c="hsb(".concat(s,", ").concat(o,"%, ").concat(a,"%)"),u="hsba(".concat(s,", ").concat(o,"%, ").concat(a,"%, ").concat(l.toFixed(l===0?0:2),")");return l===1?c:u}},{key:"toHsb",value:function(){var i=this.toHsv(),o=i.v,a=$n(i,VR);return V(V({},a),{},{b:o,a:this.a})}}]),n}(nf),UR=function(t){return t instanceof Bl?t:new Bl(t)};UR("#1677ff");const GR=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"",qR=(e,t)=>e?GR(e,t):"";let XR=function(){function e(t){Kt(this,e);var n;if(this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=(n=t.colors)===null||n===void 0?void 0:n.map(i=>({color:new e(i.color),percent:i.percent})),this.cleared=t.cleared;return}const r=Array.isArray(t);r&&t.length?(this.colors=t.map(i=>{let{color:o,percent:a}=i;return{color:new e(o),percent:a}}),this.metaColor=new Bl(this.colors[0].color.metaColor)):this.metaColor=new Bl(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return Yt(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return qR(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:n}=this;return n?`linear-gradient(90deg, ${n.map(i=>`${i.color.toRgbString()} ${i.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(n){return!n||this.isGradient()!==n.isGradient()?!1:this.isGradient()?this.colors.length===n.colors.length&&this.colors.every((r,i)=>{const o=n.colors[i];return r.percent===o.percent&&r.color.equals(o.color)}):this.toHexString()===n.toHexString()}}])}();var KR={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"},YR=function(t,n){return h.createElement(Rn,nt({},t,{ref:n,icon:KR}))},Ry=h.forwardRef(YR);const QR=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`}}}),ZR=e=>({animationDuration:e,animationFillMode:"both"}),JR=e=>({animationDuration:e,animationFillMode:"both"}),ek=function(e,t,n,r){const o=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[` + ${o}${e}-enter, + ${o}${e}-appear + `]:Object.assign(Object.assign({},ZR(r)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},JR(r)),{animationPlayState:"paused"}),[` + ${o}${e}-enter${e}-enter-active, + ${o}${e}-appear${e}-appear-active + `]:{animationName:t,animationPlayState:"running"},[`${o}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},Hm=new Rr("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),tk=new Rr("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),ky=new Rr("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Iy=new Rr("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),nk=new Rr("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),rk=new Rr("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),ik=new Rr("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),ok=new Rr("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),ak=new Rr("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),sk=new Rr("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),lk=new Rr("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),ck=new Rr("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),uk={zoom:{inKeyframes:Hm,outKeyframes:tk},"zoom-big":{inKeyframes:ky,outKeyframes:Iy},"zoom-big-fast":{inKeyframes:ky,outKeyframes:Iy},"zoom-left":{inKeyframes:ik,outKeyframes:ok},"zoom-right":{inKeyframes:ak,outKeyframes:sk},"zoom-up":{inKeyframes:nk,outKeyframes:rk},"zoom-down":{inKeyframes:lk,outKeyframes:ck}},dk=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:o}=uk[t];return[ek(r,i,o,e.motionDurationFast),{[` + ${r}-enter, + ${r}-appear + `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},fk=(e,t)=>{const{r:n,g:r,b:i,a:o}=e.toRgb(),a=new Bl(e.toRgbString()).onBackground(t).toHsv();return o<=.5?a.v>.5:n*.299+r*.587+i*.114>192},IC=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:r}=e;return jn(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:r,buttonIconOnlyFontSize:n})},FC=e=>{var t,n,r,i,o,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=(i=e.contentLineHeight)!==null&&i!==void 0?i:_u(s),d=(o=e.contentLineHeightSM)!==null&&o!==void 0?o:_u(l),f=(a=e.contentLineHeightLG)!==null&&a!==void 0?a:_u(c),p=fk(new XR(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:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorBgTextHover,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:d,contentLineHeightLG:f,paddingBlock:Math.max((e.controlHeight-s*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-l*d)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*f)/2-e.lineWidth,0)}},hk=e=>{const{componentCls:t,iconCls:n,fontWeight:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${ae(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${t}-icon`]:{lineHeight:1},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},o$(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},"&-icon-end":{flexDirection:"row-reverse"}}}},NC=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),gk=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),pk=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),mk=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),Bm=(e,t,n,r,i,o,a,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},NC(e,Object.assign({background:t},a),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:i||void 0,borderColor:o||void 0}})}),vk=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},mk(e))}),yk=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),rf=(e,t,n,r)=>{const o=r&&["link","text"].includes(r)?yk:vk;return Object.assign(Object.assign({},o(e)),NC(e.componentCls,t,n))},Vm=(e,t,n,r,i)=>({[`&${e.componentCls}-solid`]:Object.assign({color:t,background:n},rf(e,r,i))}),Wm=(e,t,n,r,i)=>({[`&${e.componentCls}-outlined, &${e.componentCls}-dashed`]:Object.assign({borderColor:t,background:n},rf(e,r,i))}),Um=e=>({[`&${e.componentCls}-dashed`]:{borderStyle:"dashed"}}),Gm=(e,t,n,r)=>({[`&${e.componentCls}-filled`]:Object.assign({boxShadow:"none",background:t},rf(e,n,r))}),rs=(e,t,n,r,i)=>({[`&${e.componentCls}-${n}`]:Object.assign({color:t,boxShadow:"none"},rf(e,r,i,n))}),bk=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},Vm(e,e.solidTextColor,e.colorBgSolid,{background:e.colorBgSolidHover},{background:e.colorBgSolidActive})),Wm(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Um(e)),Gm(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill})),rs(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),rs(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Bm(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),xk=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},Vm(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover},{background:e.colorPrimaryActive})),Wm(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),Um(e)),Gm(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder})),rs(e,e.colorPrimary,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),rs(e,e.colorPrimary,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),Bm(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),Sk=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},Vm(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),Wm(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Um(e)),Gm(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive})),rs(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),rs(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),Bm(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),wk=e=>{const{componentCls:t}=e;return{[`${t}-default`]:bk(e),[`${t}-primary`]:xk(e),[`${t}-dangerous`]:Sk(e)}},qm=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:i,lineHeight:o,borderRadius:a,buttonPaddingHorizontal:s,iconCls:l,buttonPaddingVertical:c}=e,u=`${n}-icon-only`;return[{[t]:{fontSize:i,lineHeight:o,height:r,padding:`${ae(c)} ${ae(s)}`,borderRadius:a,[`&${u}`]:{width:r,paddingInline:0,[`&${n}-compact-item`]:{flex:"none"},[`&${n}-round`]:{width:"auto"},[l]:{fontSize:e.buttonIconOnlyFontSize}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${n}${n}-circle${t}`]:gk(e)},{[`${n}${n}-round${t}`]:pk(e)}]},Ck=e=>{const t=jn(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return qm(t,e.componentCls)},Ek=e=>{const t=jn(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,lineHeight:e.contentLineHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:e.paddingBlockSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return qm(t,`${e.componentCls}-sm`)},_k=e=>{const t=jn(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return qm(t,`${e.componentCls}-lg`)},Ok=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},Mk=ui("Button",e=>{const t=IC(e);return[hk(t),Ck(t),Ek(t),_k(t),Ok(t),wk(t),HR(t)]},FC,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function Tk(e,t,n){const{focusElCls:r,focus:i,borderElCls:o}=n,a=o?"> *":"",s=["hover",i?"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 Pk(e,t,n){const{borderElCls:r}=n,i=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${i}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Xm(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({},Tk(e,r,t)),Pk(n,r,t))}}function $k(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 Rk(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 kk(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},$k(e,t)),Rk(e.componentCls,t))}}const Ik=e=>{const{componentCls:t,calc:n}=e;return{[t]:{[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:e.lineWidth,height:`calc(100% + ${ae(e.lineWidth)} * 2)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:`calc(100% + ${ae(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},Fk=lC(["Button","compact"],e=>{const t=IC(e);return[Xm(t),kk(t),Ik(t)]},FC);var Nk=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n,r,i;const{loading:o=!1,prefixCls:a,color:s,variant:l,type:c,danger:u=!1,shape:d="default",size:f,styles:p,disabled:v,className:y,rootClassName:b,children:m,icon:g,iconPosition:x="start",ghost:S=!1,block:w=!1,htmlType:C="button",classNames:_,style:M={},autoInsertSpace:T}=e,P=Nk(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace"]),F=c||"default",[D,z]=h.useMemo(()=>{if(s&&l)return[s,l];const Qe=Lk[F]||[];return u?["danger",Qe[1]]:Qe},[c,s,l,u]),W=D==="danger"?"dangerous":D,{getPrefixCls:N,direction:R,button:$}=h.useContext(Rt),I=(n=T??($==null?void 0:$.autoInsertSpace))!==null&&n!==void 0?n:!0,A=N("btn",a),[H,G,Y]=Mk(A),U=h.useContext(qo),X=v??U,ee=h.useContext(RC),q=h.useMemo(()=>Ak(o),[o]),[K,Z]=h.useState(q.loading),[ne,pe]=h.useState(!1),xe=ho(t,h.createRef()),me=h.Children.count(m)===1&&!g&&!th(z);h.useEffect(()=>{let Qe=null;q.delay>0?Qe=setTimeout(()=>{Qe=null,Z(!0)},q.delay):Z(q.loading);function tt(){Qe&&(clearTimeout(Qe),Qe=null)}return tt},[q]),h.useEffect(()=>{if(!xe||!xe.current||!I)return;const Qe=xe.current.textContent;me&&Xg(Qe)?ne||pe(!0):ne&&pe(!1)},[xe]);const fe=Qe=>{const{onClick:tt}=e;if(K||X){Qe.preventDefault();return}tt==null||tt(Qe)},{compactSize:be,compactItemClassnames:he}=$C(A,R),we={large:"lg",small:"sm",middle:void 0},Ae=jm(Qe=>{var tt,ft;return(ft=(tt=f??be)!==null&&tt!==void 0?tt:ee)!==null&&ft!==void 0?ft:Qe}),Ee=Ae&&we[Ae]||"",ie=K?"loading":g,Ie=oc(P,["navigate"]),oe=ve(A,G,Y,{[`${A}-${d}`]:d!=="default"&&d,[`${A}-${W}`]:W,[`${A}-${z}`]:z,[`${A}-${Ee}`]:Ee,[`${A}-icon-only`]:!m&&m!==0&&!!ie,[`${A}-background-ghost`]:S&&!th(z),[`${A}-loading`]:K,[`${A}-two-chinese-chars`]:ne&&I&&!K,[`${A}-block`]:w,[`${A}-rtl`]:R==="rtl",[`${A}-icon-end`]:x==="end"},he,y,b,$==null?void 0:$.className),Be=Object.assign(Object.assign({},$==null?void 0:$.style),M),Pe=ve(_==null?void 0:_.icon,(r=$==null?void 0:$.classNames)===null||r===void 0?void 0:r.icon),Fe=Object.assign(Object.assign({},(p==null?void 0:p.icon)||{}),((i=$==null?void 0:$.styles)===null||i===void 0?void 0:i.icon)||{}),je=g&&!K?de.createElement(kC,{prefixCls:A,className:Pe,style:Fe},g):de.createElement(jR,{existIcon:!!g,prefixCls:A,loading:K}),Ge=m||m===0?zR(m,me&&I):null;if(Ie.href!==void 0)return H(de.createElement("a",Object.assign({},Ie,{className:ve(oe,{[`${A}-disabled`]:X}),href:X?void 0:Ie.href,style:Be,onClick:fe,ref:xe,tabIndex:X?-1:0}),je,Ge));let ct=de.createElement("button",Object.assign({},P,{type:C,className:oe,style:Be,onClick:fe,disabled:X,ref:xe}),je,Ge,!!he&&de.createElement(Fk,{key:"compact",prefixCls:A}));return th(z)||(ct=de.createElement(FR,{component:"Button",disabled:K},ct)),H(ct)}),Km=Dk;Km.Group=LR;Km.__ANT_BUTTON=!0;var AC=h.createContext(null),Fy=[];function zk(e,t){var n=h.useState(function(){if(!sr())return null;var v=document.createElement("div");return v}),r=te(n,1),i=r[0],o=h.useRef(!1),a=h.useContext(AC),s=h.useState(Fy),l=te(s,2),c=l[0],u=l[1],d=a||(o.current?void 0:function(v){u(function(y){var b=[v].concat(le(y));return b})});function f(){i.parentElement||document.body.appendChild(i),o.current=!0}function p(){var v;(v=i.parentElement)===null||v===void 0||v.removeChild(i),o.current=!1}return mn(function(){return e?a?a(f):f():p(),p},[e]),mn(function(){c.length&&(c.forEach(function(v){return v()}),u(Fy))},[c]),[i,d]}function jk(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r=n.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";var i,o;if(e){var a=getComputedStyle(e);r.scrollbarColor=a.scrollbarColor,r.scrollbarWidth=a.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(s.width,10),c=parseInt(s.height,10);try{var u=l?"width: ".concat(s.width,";"):"",d=c?"height: ".concat(s.height,";"):"";wi(` +#`.concat(t,`::-webkit-scrollbar { +`).concat(u,` +`).concat(d,` +}`),t)}catch(v){console.error(v),i=l,o=c}}document.body.appendChild(n);var f=e&&i&&!isNaN(i)?i:n.offsetWidth-n.clientWidth,p=e&&o&&!isNaN(o)?o:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),Al(t),{width:f,height:p}}function Hk(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:jk(e)}function Bk(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var Vk="rc-util-locker-".concat(Date.now()),Ny=0;function Wk(e){var t=!!e,n=h.useState(function(){return Ny+=1,"".concat(Vk,"_").concat(Ny)}),r=te(n,1),i=r[0];mn(function(){if(t){var o=Hk(document.body).width,a=Bk();wi(` +html body { + overflow-y: hidden; + `.concat(a?"width: calc(100% - ".concat(o,"px);"):"",` +}`),i)}else Al(i);return function(){Al(i)}},[t,i])}var Uk=!1;function Gk(e){return Uk}var Ay=function(t){return t===!1?!1:!sr()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},LC=h.forwardRef(function(e,t){var n=e.open,r=e.autoLock,i=e.getContainer;e.debug;var o=e.autoDestroy,a=o===void 0?!0:o,s=e.children,l=h.useState(n),c=te(l,2),u=c[0],d=c[1],f=u||n;h.useEffect(function(){(a||n)&&d(n)},[n,a]);var p=h.useState(function(){return Ay(i)}),v=te(p,2),y=v[0],b=v[1];h.useEffect(function(){var F=Ay(i);b(F??null)});var m=zk(f&&!y),g=te(m,2),x=g[0],S=g[1],w=y??x;Wk(r&&n&&sr()&&(w===x||w===document.body));var C=null;if(s&&cs(s)&&t){var _=s;C=_.ref}var M=_m(C,t);if(!f||!sr()||y===void 0)return null;var T=w===!1||Gk(),P=s;return t&&(P=h.cloneElement(s,{ref:M})),h.createElement(AC.Provider,{value:S},T?P:ic.createPortal(P,w))});function qk(){var e=V({},wd);return e.useId}var Ly=0,Dy=qk();const Xk=Dy?function(t){var n=Dy();return t||n}:function(t){var n=h.useState("ssr-id"),r=te(n,2),i=r[0],o=r[1];return h.useEffect(function(){var a=Ly;Ly+=1,o("rc_unique_".concat(a))},[]),t||i};var ko="RC_FORM_INTERNAL_HOOKS",ut=function(){Tn(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Ko=h.createContext({getFieldValue:ut,getFieldsValue:ut,getFieldError:ut,getFieldWarning:ut,getFieldsError:ut,isFieldsTouched:ut,isFieldTouched:ut,isFieldValidating:ut,isFieldsValidating:ut,resetFields:ut,setFields:ut,setFieldValue:ut,setFieldsValue:ut,validateFields:ut,submit:ut,getInternalHooks:function(){return ut(),{dispatch:ut,initEntityValue:ut,registerField:ut,useSubscribe:ut,setInitialValues:ut,destroyForm:ut,setCallbacks:ut,registerWatch:ut,getFields:ut,setValidateMessages:ut,setPreserve:ut,getInitialValue:ut}}}),Vl=h.createContext(null);function Kg(e){return e==null?[]:Array.isArray(e)?e:[e]}function Kk(e){return e&&!!e._init}function Yg(){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 Qg=Yg();function Yk(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function Qk(e,t,n){if(Om())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&Il(i,n.prototype),i}function Zg(e){var t=typeof Map=="function"?new Map:void 0;return Zg=function(r){if(r===null||!Yk(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,i)}function i(){return Qk(r,arguments,Fl(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Il(i,r)},Zg(e)}var Zk=/%[sdj%]/g,Jk=function(){};function Jg(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 ir(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=o)return s;switch(s){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch{return"[Circular]"}break;default:return s}});return a}return e}function eI(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function tn(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||eI(t)&&typeof e=="string"&&!e)}function tI(e,t,n){var r=[],i=0,o=e.length;function a(s){r.push.apply(r,le(s||[])),i++,i===o&&n(r)}e.forEach(function(s){t(s,a)})}function zy(e,t,n){var r=0,i=e.length;function o(a){if(a&&a.length){n(a);return}var s=r;r=r+1,st.max?i.push(ir(o.messages[d].max,t.fullField,t.max)):s&&l&&(ut.max)&&i.push(ir(o.messages[d].range,t.fullField,t.min,t.max))},DC=function(t,n,r,i,o,a){t.required&&(!r.hasOwnProperty(t.field)||tn(n,a||t.type))&&i.push(ir(o.messages.required,t.fullField))},Bc;const cI=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}",i=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],o="(?:%[0-9a-zA-Z]{1,})?",a="(?:".concat(i.join("|"),")").concat(o),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(w){return w&&w.exact?l:new RegExp("".concat(t(w)).concat(n).concat(t(w)),"g")},u.v6=function(w){return w&&w.exact?c:new RegExp("".concat(t(w)).concat(a).concat(t(w)),"g")};var d="(?:(?:[a-z]+:)?//)",f="(?:\\S+(?::\\S*)?@)?",p=u.v4().source,v=u.v6().source,y="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",b="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",m="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",g="(?::\\d{2,5})?",x='(?:[/?#][^\\s"]*)?',S="(?:".concat(d,"|www\\.)").concat(f,"(?:localhost|").concat(p,"|").concat(v,"|").concat(y).concat(b).concat(m,")").concat(g).concat(x);return Bc=new RegExp("(?:^".concat(S,"$)"),"i"),Bc};var Vy={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},js={integer:function(t){return js.number(t)&&parseInt(t,10)===t},float:function(t){return js.number(t)&&!js.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 Re(t)==="object"&&!js.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Vy.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(cI())},hex:function(t){return typeof t=="string"&&!!t.match(Vy.hex)}},uI=function(t,n,r,i,o){if(t.required&&n===void 0){DC(t,n,r,i,o);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;a.indexOf(s)>-1?js[s](n)||i.push(ir(o.messages.types[s],t.fullField,t.type)):s&&Re(n)!==t.type&&i.push(ir(o.messages.types[s],t.fullField,t.type))},dI=function(t,n,r,i,o){(/^\s+$/.test(n)||n==="")&&i.push(ir(o.messages.whitespace,t.fullField))};const Ye={required:DC,whitespace:dI,type:uI,range:lI,enum:aI,pattern:sI};var fI=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(tn(n)&&!t.required)return r();Ye.required(t,n,i,a,o)}r(a)},hI=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return r();Ye.required(t,n,i,a,o,"array"),n!=null&&(Ye.type(t,n,i,a,o),Ye.range(t,n,i,a,o))}r(a)},gI=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(tn(n)&&!t.required)return r();Ye.required(t,n,i,a,o),n!==void 0&&Ye.type(t,n,i,a,o)}r(a)},pI=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(tn(n,"date")&&!t.required)return r();if(Ye.required(t,n,i,a,o),!tn(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),Ye.type(t,l,i,a,o),l&&Ye.range(t,l.getTime(),i,a,o)}}r(a)},mI="enum",vI=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(tn(n)&&!t.required)return r();Ye.required(t,n,i,a,o),n!==void 0&&Ye[mI](t,n,i,a,o)}r(a)},yI=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(tn(n)&&!t.required)return r();Ye.required(t,n,i,a,o),n!==void 0&&(Ye.type(t,n,i,a,o),Ye.range(t,n,i,a,o))}r(a)},bI=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(tn(n)&&!t.required)return r();Ye.required(t,n,i,a,o),n!==void 0&&(Ye.type(t,n,i,a,o),Ye.range(t,n,i,a,o))}r(a)},xI=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(tn(n)&&!t.required)return r();Ye.required(t,n,i,a,o),n!==void 0&&Ye.type(t,n,i,a,o)}r(a)},SI=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),tn(n)&&!t.required)return r();Ye.required(t,n,i,a,o),n!==void 0&&(Ye.type(t,n,i,a,o),Ye.range(t,n,i,a,o))}r(a)},wI=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(tn(n)&&!t.required)return r();Ye.required(t,n,i,a,o),n!==void 0&&Ye.type(t,n,i,a,o)}r(a)},CI=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(tn(n,"string")&&!t.required)return r();Ye.required(t,n,i,a,o),tn(n,"string")||Ye.pattern(t,n,i,a,o)}r(a)},EI=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(tn(n)&&!t.required)return r();Ye.required(t,n,i,a,o),tn(n)||Ye.type(t,n,i,a,o)}r(a)},_I=function(t,n,r,i,o){var a=[],s=Array.isArray(n)?"array":Re(n);Ye.required(t,n,i,a,o,s),r(a)},OI=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(tn(n,"string")&&!t.required)return r();Ye.required(t,n,i,a,o,"string"),tn(n,"string")||(Ye.type(t,n,i,a,o),Ye.range(t,n,i,a,o),Ye.pattern(t,n,i,a,o),t.whitespace===!0&&Ye.whitespace(t,n,i,a,o))}r(a)},ah=function(t,n,r,i,o){var a=t.type,s=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(tn(n,a)&&!t.required)return r();Ye.required(t,n,i,s,o,a),tn(n,a)||Ye.type(t,n,i,s,o)}r(s)};const ol={string:OI,method:xI,number:SI,boolean:gI,regexp:EI,integer:bI,float:yI,array:hI,object:wI,enum:vI,pattern:CI,date:pI,url:ah,hex:ah,email:ah,required:_I,any:fI};var sc=function(){function e(t){Kt(this,e),L(this,"rules",null),L(this,"_messages",Qg),this.define(t)}return Yt(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(Re(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(i){var o=n[i];r.rules[i]=Array.isArray(o)?o:[o]})}},{key:"messages",value:function(n){return n&&(this._messages=By(Yg(),n)),this._messages}},{key:"validate",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},a=n,s=i,l=o;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(v){var y=[],b={};function m(x){if(Array.isArray(x)){var S;y=(S=y).concat.apply(S,le(x))}else y.push(x)}for(var g=0;g0&&arguments[0]!==void 0?arguments[0]:[],M=Array.isArray(_)?_:[_];!s.suppressWarning&&M.length&&e.warning("async-validator:",M),M.length&&b.message!==void 0&&(M=[].concat(b.message));var T=M.map(Hy(b,a));if(s.first&&T.length)return p[b.field]=1,y(T);if(!m)y(T);else{if(b.required&&!v.value)return b.message!==void 0?T=[].concat(b.message).map(Hy(b,a)):s.error&&(T=[s.error(b,ir(s.messages.required,b.field))]),y(T);var P={};b.defaultField&&Object.keys(v.value).map(function(z){P[z]=b.defaultField}),P=V(V({},P),v.rule.fields);var F={};Object.keys(P).forEach(function(z){var j=P[z],W=Array.isArray(j)?j:[j];F[z]=W.map(g.bind(null,z))});var D=new e(F);D.messages(s.messages),v.rule.options&&(v.rule.options.messages=s.messages,v.rule.options.error=s.error),D.validate(v.value,v.rule.options||s,function(z){var j=[];T&&T.length&&j.push.apply(j,le(T)),z&&z.length&&j.push.apply(j,le(z)),y(j.length?j:null)})}}var S;if(b.asyncValidator)S=b.asyncValidator(b,v.value,x,v.source,s);else if(b.validator){try{S=b.validator(b,v.value,x,v.source,s)}catch(_){var w,C;(w=(C=console).error)===null||w===void 0||w.call(C,_),s.suppressValidatorError||setTimeout(function(){throw _},0),x(_.message)}S===!0?x():S===!1?x(typeof b.message=="function"?b.message(b.fullField||b.field):b.message||"".concat(b.fullField||b.field," fails")):S instanceof Array?x(S):S instanceof Error&&x(S.message)}S&&S.then&&S.then(function(){return x()},function(_){return x(_)})},function(v){c(v)},a)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!ol.hasOwnProperty(n.type))throw new Error(ir("Unknown rule type %s",n.type));return n.type||"string"}},{key:"getValidationMethod",value:function(n){if(typeof n.validator=="function")return n.validator;var r=Object.keys(n),i=r.indexOf("message");return i!==-1&&r.splice(i,1),r.length===1&&r[0]==="required"?ol.required:ol[this.getType(n)]||void 0}}]),e}();L(sc,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");ol[t]=n});L(sc,"warning",Jk);L(sc,"messages",Qg);L(sc,"validators",ol);var er="'${name}' is not a valid ${type}",zC={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:er,method:er,array:er,object:er,number:er,date:er,boolean:er,integer:er,float:er,regexp:er,email:er,url:er,hex:er},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}"}},Wy=sc;function MI(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 Uy="CODE_LOGIC_ERROR";function ep(e,t,n,r,i){return tp.apply(this,arguments)}function tp(){return tp=ea(Ln().mark(function e(t,n,r,i,o){var a,s,l,c,u,d,f,p,v;return Ln().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return a=V({},r),delete a.ruleIndex,Wy.warning=function(){},a.validator&&(s=a.validator,a.validator=function(){try{return s.apply(void 0,arguments)}catch(m){return console.error(m),Promise.reject(Uy)}}),l=null,a&&a.type==="array"&&a.defaultField&&(l=a.defaultField,delete a.defaultField),c=new Wy(L({},t,[a])),u=ka(zC,i.validateMessages),c.messages(u),d=[],b.prev=10,b.next=13,Promise.resolve(c.validate(L({},t,n),V({},i)));case 13:b.next=18;break;case 15:b.prev=15,b.t0=b.catch(10),b.t0.errors&&(d=b.t0.errors.map(function(m,g){var x=m.message,S=x===Uy?u.default:x;return h.isValidElement(S)?h.cloneElement(S,{key:"error_".concat(g)}):S}));case 18:if(!(!d.length&&l)){b.next=23;break}return b.next=21,Promise.all(n.map(function(m,g){return ep("".concat(t,".").concat(g),m,l,i,o)}));case 21:return f=b.sent,b.abrupt("return",f.reduce(function(m,g){return[].concat(le(m),le(g))},[]));case 23:return p=V(V({},r),{},{name:t,enum:(r.enum||[]).join(", ")},o),v=d.map(function(m){return typeof m=="string"?MI(m,p):m}),b.abrupt("return",v);case 26:case"end":return b.stop()}},e,null,[[10,15]])})),tp.apply(this,arguments)}function TI(e,t,n,r,i,o){var a=e.join("."),s=n.map(function(u,d){var f=u.validator,p=V(V({},u),{},{ruleIndex:d});return f&&(p.validator=function(v,y,b){var m=!1,g=function(){for(var w=arguments.length,C=new Array(w),_=0;_2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return jC(t,r,n)})}function jC(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!n&&e.length!==t.length?!1:t.every(function(r,i){return e[i]===r})}function RI(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||Re(e)!=="object"||Re(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),i=new Set([].concat(n,r));return le(i).every(function(o){var a=e[o],s=t[o];return typeof a=="function"&&typeof s=="function"?!0:a===s})}function kI(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&Re(t.target)==="object"&&e in t.target?t.target[e]:t}function qy(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var i=e[t],o=t-n;return o>0?[].concat(le(e.slice(0,n)),[i],le(e.slice(n,t)),le(e.slice(t+1,r))):o<0?[].concat(le(e.slice(0,t)),le(e.slice(t+1,n+1)),[i],le(e.slice(n+1,r))):e}var II=["name"],mr=[];function sh(e,t,n,r,i,o){return typeof e=="function"?e(t,n,"source"in o?{source:o.source}:{}):r!==i}var Ym=function(e){go(n,e);var t=po(n);function n(r){var i;if(Kt(this,n),i=t.call(this,r),L(He(i),"state",{resetCount:0}),L(He(i),"cancelRegisterFunc",null),L(He(i),"mounted",!1),L(He(i),"touched",!1),L(He(i),"dirty",!1),L(He(i),"validatePromise",void 0),L(He(i),"prevValidating",void 0),L(He(i),"errors",mr),L(He(i),"warnings",mr),L(He(i),"cancelRegister",function(){var l=i.props,c=l.preserve,u=l.isListField,d=l.name;i.cancelRegisterFunc&&i.cancelRegisterFunc(u,c,jt(d)),i.cancelRegisterFunc=null}),L(He(i),"getNamePath",function(){var l=i.props,c=l.name,u=l.fieldContext,d=u.prefixName,f=d===void 0?[]:d;return c!==void 0?[].concat(le(f),le(c)):[]}),L(He(i),"getRules",function(){var l=i.props,c=l.rules,u=c===void 0?[]:c,d=l.fieldContext;return u.map(function(f){return typeof f=="function"?f(d):f})}),L(He(i),"refresh",function(){i.mounted&&i.setState(function(l){var c=l.resetCount;return{resetCount:c+1}})}),L(He(i),"metaCache",null),L(He(i),"triggerMetaEvent",function(l){var c=i.props.onMetaChange;if(c){var u=V(V({},i.getMeta()),{},{destroy:l});rd(i.metaCache,u)||c(u),i.metaCache=u}else i.metaCache=null}),L(He(i),"onStoreChange",function(l,c,u){var d=i.props,f=d.shouldUpdate,p=d.dependencies,v=p===void 0?[]:p,y=d.onReset,b=u.store,m=i.getNamePath(),g=i.getValue(l),x=i.getValue(b),S=c&&Ba(c,m);switch(u.type==="valueUpdate"&&u.source==="external"&&!rd(g,x)&&(i.touched=!0,i.dirty=!0,i.validatePromise=null,i.errors=mr,i.warnings=mr,i.triggerMetaEvent()),u.type){case"reset":if(!c||S){i.touched=!1,i.dirty=!1,i.validatePromise=void 0,i.errors=mr,i.warnings=mr,i.triggerMetaEvent(),y==null||y(),i.refresh();return}break;case"remove":{if(f&&sh(f,l,b,g,x,u)){i.reRender();return}break}case"setField":{var w=u.data;if(S){"touched"in w&&(i.touched=w.touched),"validating"in w&&!("originRCField"in w)&&(i.validatePromise=w.validating?Promise.resolve([]):null),"errors"in w&&(i.errors=w.errors||mr),"warnings"in w&&(i.warnings=w.warnings||mr),i.dirty=!0,i.triggerMetaEvent(),i.reRender();return}else if("value"in w&&Ba(c,m,!0)){i.reRender();return}if(f&&!m.length&&sh(f,l,b,g,x,u)){i.reRender();return}break}case"dependenciesUpdate":{var C=v.map(jt);if(C.some(function(_){return Ba(u.relatedFields,_)})){i.reRender();return}break}default:if(S||(!v.length||m.length||f)&&sh(f,l,b,g,x,u)){i.reRender();return}break}f===!0&&i.reRender()}),L(He(i),"validateRules",function(l){var c=i.getNamePath(),u=i.getValue(),d=l||{},f=d.triggerName,p=d.validateOnly,v=p===void 0?!1:p,y=Promise.resolve().then(ea(Ln().mark(function b(){var m,g,x,S,w,C,_;return Ln().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:if(i.mounted){T.next=2;break}return T.abrupt("return",[]);case 2:if(m=i.props,g=m.validateFirst,x=g===void 0?!1:g,S=m.messageVariables,w=m.validateDebounce,C=i.getRules(),f&&(C=C.filter(function(P){return P}).filter(function(P){var F=P.validateTrigger;if(!F)return!0;var D=Kg(F);return D.includes(f)})),!(w&&f)){T.next=10;break}return T.next=8,new Promise(function(P){setTimeout(P,w)});case 8:if(i.validatePromise===y){T.next=10;break}return T.abrupt("return",[]);case 10:return _=TI(c,u,C,l,x,S),_.catch(function(P){return P}).then(function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:mr;if(i.validatePromise===y){var F;i.validatePromise=null;var D=[],z=[];(F=P.forEach)===null||F===void 0||F.call(P,function(j){var W=j.rule.warningOnly,N=j.errors,R=N===void 0?mr:N;W?z.push.apply(z,le(R)):D.push.apply(D,le(R))}),i.errors=D,i.warnings=z,i.triggerMetaEvent(),i.reRender()}}),T.abrupt("return",_);case 13:case"end":return T.stop()}},b)})));return v||(i.validatePromise=y,i.dirty=!0,i.errors=mr,i.warnings=mr,i.triggerMetaEvent(),i.reRender()),y}),L(He(i),"isFieldValidating",function(){return!!i.validatePromise}),L(He(i),"isFieldTouched",function(){return i.touched}),L(He(i),"isFieldDirty",function(){if(i.dirty||i.props.initialValue!==void 0)return!0;var l=i.props.fieldContext,c=l.getInternalHooks(ko),u=c.getInitialValue;return u(i.getNamePath())!==void 0}),L(He(i),"getErrors",function(){return i.errors}),L(He(i),"getWarnings",function(){return i.warnings}),L(He(i),"isListField",function(){return i.props.isListField}),L(He(i),"isList",function(){return i.props.isList}),L(He(i),"isPreserve",function(){return i.props.preserve}),L(He(i),"getMeta",function(){i.prevValidating=i.isFieldValidating();var l={touched:i.isFieldTouched(),validating:i.prevValidating,errors:i.errors,warnings:i.warnings,name:i.getNamePath(),validated:i.validatePromise===null};return l}),L(He(i),"getOnlyChild",function(l){if(typeof l=="function"){var c=i.getMeta();return V(V({},i.getOnlyChild(l(i.getControlled(),c,i.props.fieldContext))),{},{isFunction:!0})}var u=Qa(l);return u.length!==1||!h.isValidElement(u[0])?{child:u,isFunction:!1}:{child:u[0],isFunction:!1}}),L(He(i),"getValue",function(l){var c=i.props.fieldContext.getFieldsValue,u=i.getNamePath();return ai(l||c(!0),u)}),L(He(i),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=i.props,u=c.name,d=c.trigger,f=c.validateTrigger,p=c.getValueFromEvent,v=c.normalize,y=c.valuePropName,b=c.getValueProps,m=c.fieldContext,g=f!==void 0?f:m.validateTrigger,x=i.getNamePath(),S=m.getInternalHooks,w=m.getFieldsValue,C=S(ko),_=C.dispatch,M=i.getValue(),T=b||function(j){return L({},y,j)},P=l[d],F=u!==void 0?T(M):{},D=V(V({},l),F);D[d]=function(){i.touched=!0,i.dirty=!0,i.triggerMetaEvent();for(var j,W=arguments.length,N=new Array(W),R=0;R=0&&P<=F.length?(u.keys=[].concat(le(u.keys.slice(0,P)),[u.id],le(u.keys.slice(P))),x([].concat(le(F.slice(0,P)),[T],le(F.slice(P))))):(u.keys=[].concat(le(u.keys),[u.id]),x([].concat(le(F),[T]))),u.id+=1},remove:function(T){var P=w(),F=new Set(Array.isArray(T)?T:[T]);F.size<=0||(u.keys=u.keys.filter(function(D,z){return!F.has(z)}),x(P.filter(function(D,z){return!F.has(z)})))},move:function(T,P){if(T!==P){var F=w();T<0||T>=F.length||P<0||P>=F.length||(u.keys=qy(u.keys,T,P),x(qy(F,T,P)))}}},_=g||[];return Array.isArray(_)||(_=[]),r(_.map(function(M,T){var P=u.keys[T];return P===void 0&&(u.keys[T]=u.id,P=u.keys[T],u.id+=1),{name:T,key:P,isListField:!0}}),C,b)})))}function FI(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(i,o){e.forEach(function(a,s){a.catch(function(l){return t=!0,l}).then(function(l){n-=1,r[s]=l,!(n>0)&&(t&&o(r),i(r))})})}):Promise.resolve([])}var BC="__@field_split__";function lh(e){return e.map(function(t){return"".concat(Re(t),":").concat(t)}).join(BC)}var fa=function(){function e(){Kt(this,e),L(this,"kvs",new Map)}return Yt(e,[{key:"set",value:function(n,r){this.kvs.set(lh(n),r)}},{key:"get",value:function(n){return this.kvs.get(lh(n))}},{key:"update",value:function(n,r){var i=this.get(n),o=r(i);o?this.set(n,o):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(lh(n))}},{key:"map",value:function(n){return le(this.kvs.entries()).map(function(r){var i=te(r,2),o=i[0],a=i[1],s=o.split(BC);return n({key:s.map(function(l){var c=l.match(/^([^:]*):(.*)$/),u=te(c,3),d=u[1],f=u[2];return d==="number"?Number(f):f}),value:a})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var i=r.key,o=r.value;return n[i.join(".")]=o,null}),n}}]),e}(),NI=["name"],AI=Yt(function e(t){var n=this;Kt(this,e),L(this,"formHooked",!1),L(this,"forceRootUpdate",void 0),L(this,"subscribable",!0),L(this,"store",{}),L(this,"fieldEntities",[]),L(this,"initialValues",{}),L(this,"callbacks",{}),L(this,"validateMessages",null),L(this,"preserve",null),L(this,"lastValidatePromise",null),L(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}}),L(this,"getInternalHooks",function(r){return r===ko?(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}):(Tn(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),L(this,"useSubscribe",function(r){n.subscribable=r}),L(this,"prevWithoutPreserves",null),L(this,"setInitialValues",function(r,i){if(n.initialValues=r||{},i){var o,a=ka(r,n.store);(o=n.prevWithoutPreserves)===null||o===void 0||o.map(function(s){var l=s.key;a=zr(a,l,ai(r,l))}),n.prevWithoutPreserves=null,n.updateStore(a)}}),L(this,"destroyForm",function(r){if(r)n.updateStore({});else{var i=new fa;n.getFieldEntities(!0).forEach(function(o){n.isMergedPreserve(o.isPreserve())||i.set(o.getNamePath(),!0)}),n.prevWithoutPreserves=i}}),L(this,"getInitialValue",function(r){var i=ai(n.initialValues,r);return r.length?ka(i):i}),L(this,"setCallbacks",function(r){n.callbacks=r}),L(this,"setValidateMessages",function(r){n.validateMessages=r}),L(this,"setPreserve",function(r){n.preserve=r}),L(this,"watchList",[]),L(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(i){return i!==r})}}),L(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var i=n.getFieldsValue(),o=n.getFieldsValue(!0);n.watchList.forEach(function(a){a(i,o,r)})}}),L(this,"timeoutId",null),L(this,"warningUnhooked",function(){}),L(this,"updateStore",function(r){n.store=r}),L(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(i){return i.getNamePath().length}):n.fieldEntities}),L(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,i=new fa;return n.getFieldEntities(r).forEach(function(o){var a=o.getNamePath();i.set(a,o)}),i}),L(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var i=n.getFieldsMap(!0);return r.map(function(o){var a=jt(o);return i.get(a)||{INVALIDATE_NAME_PATH:jt(o)}})}),L(this,"getFieldsValue",function(r,i){n.warningUnhooked();var o,a,s;if(r===!0||Array.isArray(r)?(o=r,a=i):r&&Re(r)==="object"&&(s=r.strict,a=r.filter),o===!0&&!a)return n.store;var l=n.getFieldEntitiesForNamePathList(Array.isArray(o)?o:null),c=[];return l.forEach(function(u){var d,f,p="INVALIDATE_NAME_PATH"in u?u.INVALIDATE_NAME_PATH:u.getNamePath();if(s){var v,y;if((v=(y=u).isList)!==null&&v!==void 0&&v.call(y))return}else if(!o&&(d=(f=u).isListField)!==null&&d!==void 0&&d.call(f))return;if(!a)c.push(p);else{var b="getMeta"in u?u.getMeta():null;a(b)&&c.push(p)}}),Gy(n.store,c.map(jt))}),L(this,"getFieldValue",function(r){n.warningUnhooked();var i=jt(r);return ai(n.store,i)}),L(this,"getFieldsError",function(r){n.warningUnhooked();var i=n.getFieldEntitiesForNamePathList(r);return i.map(function(o,a){return o&&!("INVALIDATE_NAME_PATH"in o)?{name:o.getNamePath(),errors:o.getErrors(),warnings:o.getWarnings()}:{name:jt(r[a]),errors:[],warnings:[]}})}),L(this,"getFieldError",function(r){n.warningUnhooked();var i=jt(r),o=n.getFieldsError([i])[0];return o.errors}),L(this,"getFieldWarning",function(r){n.warningUnhooked();var i=jt(r),o=n.getFieldsError([i])[0];return o.warnings}),L(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,i=new Array(r),o=0;o0&&arguments[0]!==void 0?arguments[0]:{},i=new fa,o=n.getFieldEntities(!0);o.forEach(function(l){var c=l.props.initialValue,u=l.getNamePath();if(c!==void 0){var d=i.get(u)||new Set;d.add({entity:l,value:c}),i.set(u,d)}});var a=function(c){c.forEach(function(u){var d=u.props.initialValue;if(d!==void 0){var f=u.getNamePath(),p=n.getInitialValue(f);if(p!==void 0)Tn(!1,"Form already set 'initialValues' with path '".concat(f.join("."),"'. Field can not overwrite it."));else{var v=i.get(f);if(v&&v.size>1)Tn(!1,"Multiple Field with path '".concat(f.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(v){var y=n.getFieldValue(f),b=u.isListField();!b&&(!r.skipExist||y===void 0)&&n.updateStore(zr(n.store,f,le(v)[0].value))}}}})},s;r.entities?s=r.entities:r.namePathList?(s=[],r.namePathList.forEach(function(l){var c=i.get(l);if(c){var u;(u=s).push.apply(u,le(le(c).map(function(d){return d.entity})))}})):s=o,a(s)}),L(this,"resetFields",function(r){n.warningUnhooked();var i=n.store;if(!r){n.updateStore(ka(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(i,null,{type:"reset"}),n.notifyWatch();return}var o=r.map(jt);o.forEach(function(a){var s=n.getInitialValue(a);n.updateStore(zr(n.store,a,s))}),n.resetWithFieldInitialValue({namePathList:o}),n.notifyObservers(i,o,{type:"reset"}),n.notifyWatch(o)}),L(this,"setFields",function(r){n.warningUnhooked();var i=n.store,o=[];r.forEach(function(a){var s=a.name,l=$n(a,NI),c=jt(s);o.push(c),"value"in l&&n.updateStore(zr(n.store,c,l.value)),n.notifyObservers(i,[c],{type:"setField",data:a})}),n.notifyWatch(o)}),L(this,"getFields",function(){var r=n.getFieldEntities(!0),i=r.map(function(o){var a=o.getNamePath(),s=o.getMeta(),l=V(V({},s),{},{name:a,value:n.getFieldValue(a)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return i}),L(this,"initEntityValue",function(r){var i=r.props.initialValue;if(i!==void 0){var o=r.getNamePath(),a=ai(n.store,o);a===void 0&&n.updateStore(zr(n.store,o,i))}}),L(this,"isMergedPreserve",function(r){var i=r!==void 0?r:n.preserve;return i??!0}),L(this,"registerField",function(r){n.fieldEntities.push(r);var i=r.getNamePath();if(n.notifyWatch([i]),r.props.initialValue!==void 0){var o=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(o,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(a,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(d){return d!==r}),!n.isMergedPreserve(s)&&(!a||l.length>1)){var c=a?void 0:n.getInitialValue(i);if(i.length&&n.getFieldValue(i)!==c&&n.fieldEntities.every(function(d){return!jC(d.getNamePath(),i)})){var u=n.store;n.updateStore(zr(u,i,c,!0)),n.notifyObservers(u,[i],{type:"remove"}),n.triggerDependenciesUpdate(u,i)}}n.notifyWatch([i])}}),L(this,"dispatch",function(r){switch(r.type){case"updateValue":{var i=r.namePath,o=r.value;n.updateValue(i,o);break}case"validateField":{var a=r.namePath,s=r.triggerName;n.validateFields([a],{triggerName:s});break}}}),L(this,"notifyObservers",function(r,i,o){if(n.subscribable){var a=V(V({},o),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(r,i,a)})}else n.forceRootUpdate()}),L(this,"triggerDependenciesUpdate",function(r,i){var o=n.getDependencyChildrenFields(i);return o.length&&n.validateFields(o),n.notifyObservers(r,o,{type:"dependenciesUpdate",relatedFields:[i].concat(le(o))}),o}),L(this,"updateValue",function(r,i){var o=jt(r),a=n.store;n.updateStore(zr(n.store,o,i)),n.notifyObservers(a,[o],{type:"valueUpdate",source:"internal"}),n.notifyWatch([o]);var s=n.triggerDependenciesUpdate(a,o),l=n.callbacks.onValuesChange;if(l){var c=Gy(n.store,[o]);l(c,n.getFieldsValue())}n.triggerOnFieldsChange([o].concat(le(s)))}),L(this,"setFieldsValue",function(r){n.warningUnhooked();var i=n.store;if(r){var o=ka(n.store,r);n.updateStore(o)}n.notifyObservers(i,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),L(this,"setFieldValue",function(r,i){n.setFields([{name:r,value:i}])}),L(this,"getDependencyChildrenFields",function(r){var i=new Set,o=[],a=new fa;n.getFieldEntities().forEach(function(l){var c=l.props.dependencies;(c||[]).forEach(function(u){var d=jt(u);a.update(d,function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return f.add(l),f})})});var s=function l(c){var u=a.get(c)||new Set;u.forEach(function(d){if(!i.has(d)){i.add(d);var f=d.getNamePath();d.isFieldDirty()&&f.length&&(o.push(f),l(f))}})};return s(r),o}),L(this,"triggerOnFieldsChange",function(r,i){var o=n.callbacks.onFieldsChange;if(o){var a=n.getFields();if(i){var s=new fa;i.forEach(function(c){var u=c.name,d=c.errors;s.set(u,d)}),a.forEach(function(c){c.errors=s.get(c.name)||c.errors})}var l=a.filter(function(c){var u=c.name;return Ba(r,u)});l.length&&o(l,a)}}),L(this,"validateFields",function(r,i){n.warningUnhooked();var o,a;Array.isArray(r)||typeof r=="string"||typeof i=="string"?(o=r,a=i):a=r;var s=!!o,l=s?o.map(jt):[],c=[],u=String(Date.now()),d=new Set,f=a||{},p=f.recursive,v=f.dirty;n.getFieldEntities(!0).forEach(function(g){if(s||l.push(g.getNamePath()),!(!g.props.rules||!g.props.rules.length)&&!(v&&!g.isFieldDirty())){var x=g.getNamePath();if(d.add(x.join(u)),!s||Ba(l,x,p)){var S=g.validateRules(V({validateMessages:V(V({},zC),n.validateMessages)},a));c.push(S.then(function(){return{name:x,errors:[],warnings:[]}}).catch(function(w){var C,_=[],M=[];return(C=w.forEach)===null||C===void 0||C.call(w,function(T){var P=T.rule.warningOnly,F=T.errors;P?M.push.apply(M,le(F)):_.push.apply(_,le(F))}),_.length?Promise.reject({name:x,errors:_,warnings:M}):{name:x,errors:_,warnings:M}}))}}});var y=FI(c);n.lastValidatePromise=y,y.catch(function(g){return g}).then(function(g){var x=g.map(function(S){var w=S.name;return w});n.notifyObservers(n.store,x,{type:"validateFinish"}),n.triggerOnFieldsChange(x,g)});var b=y.then(function(){return n.lastValidatePromise===y?Promise.resolve(n.getFieldsValue(l)):Promise.reject([])}).catch(function(g){var x=g.filter(function(S){return S&&S.errors.length});return Promise.reject({values:n.getFieldsValue(l),errorFields:x,outOfDate:n.lastValidatePromise!==y})});b.catch(function(g){return g});var m=l.filter(function(g){return d.has(g.join(u))});return n.triggerOnFieldsChange(m),b}),L(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var i=n.callbacks.onFinish;if(i)try{i(r)}catch(o){console.error(o)}}).catch(function(r){var i=n.callbacks.onFinishFailed;i&&i(r)})}),this.forceRootUpdate=t});function Zm(e){var t=h.useRef(),n=h.useState({}),r=te(n,2),i=r[1];if(!t.current)if(e)t.current=e;else{var o=function(){i({})},a=new AI(o);t.current=a.getForm()}return[t.current]}var ip=h.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),VC=function(t){var n=t.validateMessages,r=t.onFormChange,i=t.onFormFinish,o=t.children,a=h.useContext(ip),s=h.useRef({});return h.createElement(ip.Provider,{value:V(V({},a),{},{validateMessages:V(V({},a.validateMessages),n),triggerFormChange:function(c,u){r&&r(c,{changedFields:u,forms:s.current}),a.triggerFormChange(c,u)},triggerFormFinish:function(c,u){i&&i(c,{values:u,forms:s.current}),a.triggerFormFinish(c,u)},registerForm:function(c,u){c&&(s.current=V(V({},s.current),{},L({},c,u))),a.registerForm(c,u)},unregisterForm:function(c){var u=V({},s.current);delete u[c],s.current=u,a.unregisterForm(c)}})},o)},LI=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],DI=function(t,n){var r=t.name,i=t.initialValues,o=t.fields,a=t.form,s=t.preserve,l=t.children,c=t.component,u=c===void 0?"form":c,d=t.validateMessages,f=t.validateTrigger,p=f===void 0?"onChange":f,v=t.onValuesChange,y=t.onFieldsChange,b=t.onFinish,m=t.onFinishFailed,g=t.clearOnDestroy,x=$n(t,LI),S=h.useRef(null),w=h.useContext(ip),C=Zm(a),_=te(C,1),M=_[0],T=M.getInternalHooks(ko),P=T.useSubscribe,F=T.setInitialValues,D=T.setCallbacks,z=T.setValidateMessages,j=T.setPreserve,W=T.destroyForm;h.useImperativeHandle(n,function(){return V(V({},M),{},{nativeElement:S.current})}),h.useEffect(function(){return w.registerForm(r,M),function(){w.unregisterForm(r)}},[w,M,r]),z(V(V({},w.validateMessages),d)),D({onValuesChange:v,onFieldsChange:function(U){if(w.triggerFormChange(r,U),y){for(var X=arguments.length,ee=new Array(X>1?X-1:0),q=1;q{}}),UC=h.createContext(null),GC=e=>{const t=oc(e,["prefixCls"]);return h.createElement(VC,Object.assign({},t))},Jm=h.createContext({prefixCls:""}),Yo=h.createContext({}),jI=e=>{let{children:t,status:n,override:r}=e;const i=h.useContext(Yo),o=h.useMemo(()=>{const a=Object.assign({},i);return r&&delete a.isFormItemInput,n&&(delete a.status,delete a.hasFeedback,delete a.feedbackIcon),a},[n,r,i]);return h.createElement(Yo.Provider,{value:o},t)},qC=h.createContext(void 0),op=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let i=r;return n&&(i=de.createElement(jI,{override:!0,status:!0},i)),t&&(i=de.createElement(NR,null,i)),i},XC=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))};function HI(e){var t=e.prefixCls,n=e.align,r=e.arrow,i=e.arrowPos,o=r||{},a=o.className,s=o.content,l=i.x,c=l===void 0?0:l,u=i.y,d=u===void 0?0:u,f=h.useRef();if(!n||!n.points)return null;var p={position:"absolute"};if(n.autoArrow!==!1){var v=n.points[0],y=n.points[1],b=v[0],m=v[1],g=y[0],x=y[1];b===g||!["t","b"].includes(b)?p.top=d:b==="t"?p.top=0:p.bottom=0,m===x||!["l","r"].includes(m)?p.left=c:m==="l"?p.left=0:p.right=0}return h.createElement("div",{ref:f,className:ve("".concat(t,"-arrow"),a),style:p},s)}function BI(e){var t=e.prefixCls,n=e.open,r=e.zIndex,i=e.mask,o=e.motion;return i?h.createElement(ds,nt({},o,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(a){var s=a.className;return h.createElement("div",{style:{zIndex:r},className:ve("".concat(t,"-mask"),s)})}):null}var VI=h.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),WI=h.forwardRef(function(e,t){var n=e.popup,r=e.className,i=e.prefixCls,o=e.style,a=e.target,s=e.onVisibleChanged,l=e.open,c=e.keepDom,u=e.fresh,d=e.onClick,f=e.mask,p=e.arrow,v=e.arrowPos,y=e.align,b=e.motion,m=e.maskMotion,g=e.forceRender,x=e.getPopupContainer,S=e.autoDestroy,w=e.portal,C=e.zIndex,_=e.onMouseEnter,M=e.onMouseLeave,T=e.onPointerEnter,P=e.ready,F=e.offsetX,D=e.offsetY,z=e.offsetR,j=e.offsetB,W=e.onAlign,N=e.onPrepare,R=e.stretch,$=e.targetWidth,I=e.targetHeight,A=typeof n=="function"?n():n,H=l||c,G=(x==null?void 0:x.length)>0,Y=h.useState(!x||!G),U=te(Y,2),X=U[0],ee=U[1];if(mn(function(){!X&&G&&a&&ee(!0)},[X,G,a]),!X)return null;var q="auto",K={left:"-1000vw",top:"-1000vh",right:q,bottom:q};if(P||!l){var Z,ne=y.points,pe=y.dynamicInset||((Z=y._experimental)===null||Z===void 0?void 0:Z.dynamicInset),ye=pe&&ne[0][1]==="r",xe=pe&&ne[0][0]==="b";ye?(K.right=z,K.left=q):(K.left=F,K.right=q),xe?(K.bottom=j,K.top=q):(K.top=D,K.bottom=q)}var me={};return R&&(R.includes("height")&&I?me.height=I:R.includes("minHeight")&&I&&(me.minHeight=I),R.includes("width")&&$?me.width=$:R.includes("minWidth")&&$&&(me.minWidth=$)),l||(me.pointerEvents="none"),h.createElement(w,{open:g||H,getContainer:x&&function(){return x(a)},autoDestroy:S},h.createElement(BI,{prefixCls:i,open:l,zIndex:C,mask:f,motion:m}),h.createElement(Mm,{onResize:W,disabled:!l},function(fe){return h.createElement(ds,nt({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:g,leavedClassName:"".concat(i,"-hidden")},b,{onAppearPrepare:N,onEnterPrepare:N,visible:l,onVisibleChanged:function(he){var we;b==null||(we=b.onVisibleChanged)===null||we===void 0||we.call(b,he),s(he)}}),function(be,he){var we=be.className,Ae=be.style,Ee=ve(i,we,r);return h.createElement("div",{ref:ho(fe,t,he),className:Ee,style:V(V(V(V({"--arrow-x":"".concat(v.x||0,"px"),"--arrow-y":"".concat(v.y||0,"px")},K),me),Ae),{},{boxSizing:"border-box",zIndex:C},o),onMouseEnter:_,onMouseLeave:M,onPointerEnter:T,onClick:d},p&&h.createElement(HI,{prefixCls:i,arrow:p,arrowPos:v,align:y}),h.createElement(VI,{cache:!l&&!u},A))})}))}),UI=h.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,i=cs(n),o=h.useCallback(function(s){Em(t,r?r(s):s)},[r]),a=_m(o,n.ref);return i?h.cloneElement(n,{ref:a}):n}),Ky=h.createContext(null);function Yy(e){return e?Array.isArray(e)?e:[e]:[]}function GI(e,t,n,r){return h.useMemo(function(){var i=Yy(n??t),o=Yy(r??t),a=new Set(i),s=new Set(o);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 qI(){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 XI(e,t,n,r){for(var i=n.points,o=Object.keys(e),a=0;a1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function $s(e){return Wl(parseFloat(e),0)}function Zy(e,t){var n=V({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var i=lc(r).getComputedStyle(r),o=i.overflow,a=i.overflowClipMargin,s=i.borderTopWidth,l=i.borderBottomWidth,c=i.borderLeftWidth,u=i.borderRightWidth,d=r.getBoundingClientRect(),f=r.offsetHeight,p=r.clientHeight,v=r.offsetWidth,y=r.clientWidth,b=$s(s),m=$s(l),g=$s(c),x=$s(u),S=Wl(Math.round(d.width/v*1e3)/1e3),w=Wl(Math.round(d.height/f*1e3)/1e3),C=(v-y-g-x)*S,_=(f-p-b-m)*w,M=b*w,T=m*w,P=g*S,F=x*S,D=0,z=0;if(o==="clip"){var j=$s(a);D=j*S,z=j*w}var W=d.x+P-D,N=d.y+M-z,R=W+d.width+2*D-P-F-C,$=N+d.height+2*z-M-T-_;n.left=Math.max(n.left,W),n.top=Math.max(n.top,N),n.right=Math.min(n.right,R),n.bottom=Math.min(n.bottom,$)}}),n}function Jy(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 eb(e,t){var n=t||[],r=te(n,2),i=r[0],o=r[1];return[Jy(e.width,i),Jy(e.height,o)]}function tb(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function ha(e,t){var n=t[0],r=t[1],i,o;return n==="t"?o=e.y:n==="b"?o=e.y+e.height:o=e.y+e.height/2,r==="l"?i=e.x:r==="r"?i=e.x+e.width:i=e.x+e.width/2,{x:i,y:o}}function Ii(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,i){return i===t?n[r]||"c":r}).join("")}function KI(e,t,n,r,i,o,a){var s=h.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[r]||{}}),l=te(s,2),c=l[0],u=l[1],d=h.useRef(0),f=h.useMemo(function(){return t?ap(t):[]},[t]),p=h.useRef({}),v=function(){p.current={}};e||v();var y=vn(function(){if(t&&n&&e){let at=function(bs,bo){var sa=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Be,dc=U.x+bs,fc=U.y+bo,ge=dc+xe,$e=fc+ye,bt=Math.max(dc,sa.left),zt=Math.max(fc,sa.top),xt=Math.min(ge,sa.right),la=Math.min($e,sa.bottom);return Math.max(0,(xt-bt)*(la-zt))},on=function(){rn=U.y+ke,In=rn+ye,ot=U.x+qe,Fn=ot+xe};var Dt=at,Ft=on,g,x,S,w,C=t,_=C.ownerDocument,M=lc(C),T=M.getComputedStyle(C),P=T.width,F=T.height,D=T.position,z=C.style.left,j=C.style.top,W=C.style.right,N=C.style.bottom,R=C.style.overflow,$=V(V({},i[r]),o),I=_.createElement("div");(g=C.parentElement)===null||g===void 0||g.appendChild(I),I.style.left="".concat(C.offsetLeft,"px"),I.style.top="".concat(C.offsetTop,"px"),I.style.position=D,I.style.height="".concat(C.offsetHeight,"px"),I.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 A;if(Array.isArray(n))A={x:n[0],y:n[1],width:0,height:0};else{var H,G,Y=n.getBoundingClientRect();Y.x=(H=Y.x)!==null&&H!==void 0?H:Y.left,Y.y=(G=Y.y)!==null&&G!==void 0?G:Y.top,A={x:Y.x,y:Y.y,width:Y.width,height:Y.height}}var U=C.getBoundingClientRect();U.x=(x=U.x)!==null&&x!==void 0?x:U.left,U.y=(S=U.y)!==null&&S!==void 0?S:U.top;var X=_.documentElement,ee=X.clientWidth,q=X.clientHeight,K=X.scrollWidth,Z=X.scrollHeight,ne=X.scrollTop,pe=X.scrollLeft,ye=U.height,xe=U.width,me=A.height,fe=A.width,be={left:0,top:0,right:ee,bottom:q},he={left:-pe,top:-ne,right:K-pe,bottom:Z-ne},we=$.htmlRegion,Ae="visible",Ee="visibleFirst";we!=="scroll"&&we!==Ee&&(we=Ae);var ie=we===Ee,Ie=Zy(he,f),oe=Zy(be,f),Be=we===Ae?oe:Ie,Pe=ie?oe:Be;C.style.left="auto",C.style.top="auto",C.style.right="0",C.style.bottom="0";var Fe=C.getBoundingClientRect();C.style.left=z,C.style.top=j,C.style.right=W,C.style.bottom=N,C.style.overflow=R,(w=C.parentElement)===null||w===void 0||w.removeChild(I);var je=Wl(Math.round(xe/parseFloat(P)*1e3)/1e3),Ge=Wl(Math.round(ye/parseFloat(F)*1e3)/1e3);if(je===0||Ge===0||kl(n)&&!zm(n))return;var ct=$.offset,Qe=$.targetOffset,tt=eb(U,ct),ft=te(tt,2),Wt=ft[0],wt=ft[1],ur=eb(A,Qe),hn=te(ur,2),kt=hn[0],ht=hn[1];A.x-=kt,A.y-=ht;var kr=$.points||[],gt=te(kr,2),nn=gt[0],Se=gt[1],se=tb(Se),Oe=tb(nn),Me=ha(A,se),Le=ha(U,Oe),dt=V({},$),qe=Me.x-Le.x+Wt,ke=Me.y-Le.y+wt,Ut=at(qe,ke),gn=at(qe,ke,oe),it=ha(A,["t","l"]),Ze=ha(U,["t","l"]),Gt=ha(A,["b","r"]),Ct=ha(U,["b","r"]),Qt=$.overflow||{},dr=Qt.adjustX,Kr=Qt.adjustY,Hn=Qt.shiftX,kn=Qt.shiftY,Zn=function(bo){return typeof bo=="boolean"?bo:bo>=0},rn,In,ot,Fn;on();var Sn=Zn(Kr),Ir=Oe[0]===se[0];if(Sn&&Oe[0]==="t"&&(In>Pe.bottom||p.current.bt)){var _e=ke;Ir?_e-=ye-me:_e=it.y-Ct.y-wt;var Ce=at(qe,_e),Je=at(qe,_e,oe);Ce>Ut||Ce===Ut&&(!ie||Je>=gn)?(p.current.bt=!0,ke=_e,wt=-wt,dt.points=[Ii(Oe,0),Ii(se,0)]):p.current.bt=!1}if(Sn&&Oe[0]==="b"&&(rnUt||Ke===Ut&&(!ie||Zt>=gn)?(p.current.tb=!0,ke=Xe,wt=-wt,dt.points=[Ii(Oe,0),Ii(se,0)]):p.current.tb=!1}var Et=Zn(dr),yt=Oe[1]===se[1];if(Et&&Oe[1]==="l"&&(Fn>Pe.right||p.current.rl)){var _t=qe;yt?_t-=xe-fe:_t=it.x-Ct.x-Wt;var Ot=at(_t,ke),Mt=at(_t,ke,oe);Ot>Ut||Ot===Ut&&(!ie||Mt>=gn)?(p.current.rl=!0,qe=_t,Wt=-Wt,dt.points=[Ii(Oe,1),Ii(se,1)]):p.current.rl=!1}if(Et&&Oe[1]==="r"&&(otUt||fr===Ut&&(!ie||hr>=gn)?(p.current.lr=!0,qe=Lt,Wt=-Wt,dt.points=[Ii(Oe,1),Ii(se,1)]):p.current.lr=!1}on();var It=Hn===!0?0:Hn;typeof It=="number"&&(otoe.right&&(qe-=Fn-oe.right-Wt,A.x>oe.right-It&&(qe+=A.x-oe.right+It)));var wn=kn===!0?0:kn;typeof wn=="number"&&(rnoe.bottom&&(ke-=In-oe.bottom-wt,A.y>oe.bottom-wn&&(ke+=A.y-oe.bottom+wn)));var Yr=U.x+qe,Qr=Yr+xe,Bn=U.y+ke,mo=Bn+ye,di=A.x,gr=di+fe,vo=A.y,ia=vo+me,yo=Math.max(Yr,di),oa=Math.min(Qr,gr),aa=(yo+oa)/2,ys=aa-Yr,E=Math.max(Bn,vo),O=Math.min(mo,ia),k=(E+O)/2,B=k-Bn;a==null||a(t,dt);var Q=Fe.right-U.x-(qe+U.width),re=Fe.bottom-U.y-(ke+U.height);je===1&&(qe=Math.round(qe),Q=Math.round(Q)),Ge===1&&(ke=Math.round(ke),re=Math.round(re));var De={ready:!0,offsetX:qe/je,offsetY:ke/Ge,offsetR:Q/je,offsetB:re/Ge,arrowX:ys/je,arrowY:B/Ge,scaleX:je,scaleY:Ge,align:dt};u(De)}}),b=function(){d.current+=1;var x=d.current;Promise.resolve().then(function(){d.current===x&&y()})},m=function(){u(function(x){return V(V({},x),{},{ready:!1})})};return mn(m,[r]),mn(function(){e||m()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,b]}function YI(e,t,n,r,i){mn(function(){if(e&&t&&n){let f=function(){r(),i()};var d=f,o=t,a=n,s=ap(o),l=ap(a),c=lc(a),u=new Set([c].concat(le(s),le(l)));return u.forEach(function(p){p.addEventListener("scroll",f,{passive:!0})}),c.addEventListener("resize",f,{passive:!0}),r(),function(){u.forEach(function(p){p.removeEventListener("scroll",f),c.removeEventListener("resize",f)})}}},[e,t,n])}function QI(e,t,n,r,i,o,a,s){var l=h.useRef(e);l.current=e,h.useEffect(function(){if(t&&r&&(!i||o)){var c=function(p){var v;l.current&&!a(((v=p.composedPath)===null||v===void 0||(v=v.call(p))===null||v===void 0?void 0:v[0])||p.target)&&s(!1)},u=lc(r);u.addEventListener("mousedown",c,!0),u.addEventListener("contextmenu",c,!0);var d=sd(n);return d&&(d.addEventListener("mousedown",c,!0),d.addEventListener("contextmenu",c,!0)),function(){u.removeEventListener("mousedown",c,!0),u.removeEventListener("contextmenu",c,!0),d&&(d.removeEventListener("mousedown",c,!0),d.removeEventListener("contextmenu",c,!0))}}},[t,n,r,i,o])}var ZI=["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 JI(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:LC,t=h.forwardRef(function(n,r){var i=n.prefixCls,o=i===void 0?"rc-trigger-popup":i,a=n.children,s=n.action,l=s===void 0?"hover":s,c=n.showAction,u=n.hideAction,d=n.popupVisible,f=n.defaultPopupVisible,p=n.onPopupVisibleChange,v=n.afterPopupVisibleChange,y=n.mouseEnterDelay,b=n.mouseLeaveDelay,m=b===void 0?.1:b,g=n.focusDelay,x=n.blurDelay,S=n.mask,w=n.maskClosable,C=w===void 0?!0:w,_=n.getPopupContainer,M=n.forceRender,T=n.autoDestroy,P=n.destroyPopupOnHide,F=n.popup,D=n.popupClassName,z=n.popupStyle,j=n.popupPlacement,W=n.builtinPlacements,N=W===void 0?{}:W,R=n.popupAlign,$=n.zIndex,I=n.stretch,A=n.getPopupClassNameFromAlign,H=n.fresh,G=n.alignPoint,Y=n.onPopupClick,U=n.onPopupAlign,X=n.arrow,ee=n.popupMotion,q=n.maskMotion,K=n.popupTransitionName,Z=n.popupAnimation,ne=n.maskTransitionName,pe=n.maskAnimation,ye=n.className,xe=n.getTriggerDOMNode,me=$n(n,ZI),fe=T||P||!1,be=h.useState(!1),he=te(be,2),we=he[0],Ae=he[1];mn(function(){Ae(XC())},[]);var Ee=h.useRef({}),ie=h.useContext(Ky),Ie=h.useMemo(function(){return{registerSubPopup:function($e,bt){Ee.current[$e]=bt,ie==null||ie.registerSubPopup($e,bt)}}},[ie]),oe=Xk(),Be=h.useState(null),Pe=te(Be,2),Fe=Pe[0],je=Pe[1],Ge=h.useRef(null),ct=vn(function(ge){Ge.current=ge,kl(ge)&&Fe!==ge&&je(ge),ie==null||ie.registerSubPopup(oe,ge)}),Qe=h.useState(null),tt=te(Qe,2),ft=tt[0],Wt=tt[1],wt=h.useRef(null),ur=vn(function(ge){kl(ge)&&ft!==ge&&(Wt(ge),wt.current=ge)}),hn=h.Children.only(a),kt=(hn==null?void 0:hn.props)||{},ht={},kr=vn(function(ge){var $e,bt,zt=ft;return(zt==null?void 0:zt.contains(ge))||(($e=sd(zt))===null||$e===void 0?void 0:$e.host)===ge||ge===zt||(Fe==null?void 0:Fe.contains(ge))||((bt=sd(Fe))===null||bt===void 0?void 0:bt.host)===ge||ge===Fe||Object.values(Ee.current).some(function(xt){return(xt==null?void 0:xt.contains(ge))||ge===xt})}),gt=Qy(o,ee,Z,K),nn=Qy(o,q,pe,ne),Se=h.useState(f||!1),se=te(Se,2),Oe=se[0],Me=se[1],Le=d??Oe,dt=vn(function(ge){d===void 0&&Me(ge)});mn(function(){Me(d||!1)},[d]);var qe=h.useRef(Le);qe.current=Le;var ke=h.useRef([]);ke.current=[];var Ut=vn(function(ge){var $e;dt(ge),(($e=ke.current[ke.current.length-1])!==null&&$e!==void 0?$e:Le)!==ge&&(ke.current.push(ge),p==null||p(ge))}),gn=h.useRef(),it=function(){clearTimeout(gn.current)},Ze=function($e){var bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;it(),bt===0?Ut($e):gn.current=setTimeout(function(){Ut($e)},bt*1e3)};h.useEffect(function(){return it},[]);var Gt=h.useState(!1),Ct=te(Gt,2),Qt=Ct[0],dr=Ct[1];mn(function(ge){(!ge||Le)&&dr(!0)},[Le]);var Kr=h.useState(null),Hn=te(Kr,2),kn=Hn[0],Zn=Hn[1],rn=h.useState(null),In=te(rn,2),ot=In[0],Fn=In[1],Sn=function($e){Fn([$e.clientX,$e.clientY])},Ir=KI(Le,Fe,G&&ot!==null?ot:ft,j,N,R,U),_e=te(Ir,11),Ce=_e[0],Je=_e[1],Xe=_e[2],Ke=_e[3],Zt=_e[4],Et=_e[5],yt=_e[6],_t=_e[7],Ot=_e[8],Mt=_e[9],Lt=_e[10],fr=GI(we,l,c,u),hr=te(fr,2),It=hr[0],wn=hr[1],Yr=It.has("click"),Qr=wn.has("click")||wn.has("contextMenu"),Bn=vn(function(){Qt||Lt()}),mo=function(){qe.current&&G&&Qr&&Ze(!1)};YI(Le,ft,Fe,Bn,mo),mn(function(){Bn()},[ot,j]),mn(function(){Le&&!(N!=null&&N[j])&&Bn()},[JSON.stringify(R)]);var di=h.useMemo(function(){var ge=XI(N,o,Mt,G);return ve(ge,A==null?void 0:A(Mt))},[Mt,A,N,o,G]);h.useImperativeHandle(r,function(){return{nativeElement:wt.current,popupElement:Ge.current,forceAlign:Bn}});var gr=h.useState(0),vo=te(gr,2),ia=vo[0],yo=vo[1],oa=h.useState(0),aa=te(oa,2),ys=aa[0],E=aa[1],O=function(){if(I&&ft){var $e=ft.getBoundingClientRect();yo($e.width),E($e.height)}},k=function(){O(),Bn()},B=function($e){dr(!1),Lt(),v==null||v($e)},Q=function(){return new Promise(function($e){O(),Zn(function(){return $e})})};mn(function(){kn&&(Lt(),kn(),Zn(null))},[kn]);function re(ge,$e,bt,zt){ht[ge]=function(xt){var la;zt==null||zt(xt),Ze($e,bt);for(var df=arguments.length,Cv=new Array(df>1?df-1:0),hc=1;hc1?bt-1:0),xt=1;xt1?bt-1:0),xt=1;xtt||e,nF=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var r,i;const{variant:o,[e]:a}=h.useContext(Rt),s=h.useContext(qC),l=a==null?void 0:a.variant;let c;typeof t<"u"?c=t:n===!1?c="borderless":c=(i=(r=s??l)!==null&&r!==void 0?r:o)!==null&&i!==void 0?i:"outlined";const u=kP.includes(c);return[c,u]};var rF={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"},iF=function(t,n){return h.createElement(Rn,nt({},t,{ref:n,icon:rF}))},oF=h.forwardRef(iF);const Ul=["xxl","xl","lg","md","sm","xs"],aF=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)`}),sF=e=>{const t=e,n=[].concat(Ul).reverse();return n.forEach((r,i)=>{const o=r.toUpperCase(),a=`screen${o}Min`,s=`screen${o}`;if(!(t[a]<=t[s]))throw new Error(`${a}<=${s} fails : !(${t[a]}<=${t[s]})`);if(i{const n=new Map;let r=-1,i={};return{matchHandlers:{},dispatch(o){return i=o,n.forEach(a=>a(i)),n.size>=1},subscribe(o){return n.size||this.register(),r+=1,n.set(r,o),o(i),r},unsubscribe(o){n.delete(o),n.size||this.unregister()},unregister(){Object.keys(t).forEach(o=>{const a=t[o],s=this.matchHandlers[a];s==null||s.mql.removeListener(s==null?void 0:s.listener)}),n.clear()},register(){Object.keys(t).forEach(o=>{const a=t[o],s=c=>{let{matches:u}=c;this.dispatch(Object.assign(Object.assign({},i),{[o]:u}))},l=window.matchMedia(a);l.addListener(s),this.matchHandlers[a]={mql:l,listener:s},s(l)})},responsiveMap:t}},[e])}function KC(e){var t=e.children,n=e.prefixCls,r=e.id,i=e.overlayInnerStyle,o=e.className,a=e.style;return h.createElement("div",{className:ve("".concat(n,"-content"),o),style:a},h.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:i},typeof t=="function"?t():t))}var ga={shiftX:64,adjustY:1},pa={adjustX:1,shiftY:!0},vr=[0,0],cF={left:{points:["cr","cl"],overflow:pa,offset:[-4,0],targetOffset:vr},right:{points:["cl","cr"],overflow:pa,offset:[4,0],targetOffset:vr},top:{points:["bc","tc"],overflow:ga,offset:[0,-4],targetOffset:vr},bottom:{points:["tc","bc"],overflow:ga,offset:[0,4],targetOffset:vr},topLeft:{points:["bl","tl"],overflow:ga,offset:[0,-4],targetOffset:vr},leftTop:{points:["tr","tl"],overflow:pa,offset:[-4,0],targetOffset:vr},topRight:{points:["br","tr"],overflow:ga,offset:[0,-4],targetOffset:vr},rightTop:{points:["tl","tr"],overflow:pa,offset:[4,0],targetOffset:vr},bottomRight:{points:["tr","br"],overflow:ga,offset:[0,4],targetOffset:vr},rightBottom:{points:["bl","br"],overflow:pa,offset:[4,0],targetOffset:vr},bottomLeft:{points:["tl","bl"],overflow:ga,offset:[0,4],targetOffset:vr},leftBottom:{points:["br","bl"],overflow:pa,offset:[-4,0],targetOffset:vr}},uF=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],dF=function(t,n){var r=t.overlayClassName,i=t.trigger,o=i===void 0?["hover"]:i,a=t.mouseEnterDelay,s=a===void 0?0:a,l=t.mouseLeaveDelay,c=l===void 0?.1:l,u=t.overlayStyle,d=t.prefixCls,f=d===void 0?"rc-tooltip":d,p=t.children,v=t.onVisibleChange,y=t.afterVisibleChange,b=t.transitionName,m=t.animation,g=t.motion,x=t.placement,S=x===void 0?"right":x,w=t.align,C=w===void 0?{}:w,_=t.destroyTooltipOnHide,M=_===void 0?!1:_,T=t.defaultVisible,P=t.getTooltipContainer,F=t.overlayInnerStyle;t.arrowContent;var D=t.overlay,z=t.id,j=t.showArrow,W=j===void 0?!0:j,N=$n(t,uF),R=h.useRef(null);h.useImperativeHandle(n,function(){return R.current});var $=V({},N);"visible"in t&&($.popupVisible=t.visible);var I=function(){return h.createElement(KC,{key:"content",prefixCls:f,id:z,overlayInnerStyle:F},D)};return h.createElement(eF,nt({popupClassName:r,prefixCls:f,popup:I,action:o,builtinPlacements:cF,popupPlacement:S,ref:R,popupAlign:C,getPopupContainer:P,onPopupVisibleChange:v,afterPopupVisibleChange:y,popupTransitionName:b,popupAnimation:m,popupMotion:g,defaultPopupVisible:T,autoDestroy:M,mouseLeaveDelay:c,popupStyle:u,mouseEnterDelay:s,arrow:W},$),p)};const fF=h.forwardRef(dF);function hF(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,i=t/2,o=0,a=i,s=r*1/Math.sqrt(2),l=i-r*(1-1/Math.sqrt(2)),c=i-n*(1/Math.sqrt(2)),u=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),d=2*i-c,f=u,p=2*i-s,v=l,y=2*i-o,b=a,m=i*Math.sqrt(2)+r*(Math.sqrt(2)-2),g=r*(Math.sqrt(2)-1),x=`polygon(${g}px 100%, 50% ${g}px, ${2*i-g}px 100%, ${g}px 100%)`,S=`path('M ${o} ${a} A ${r} ${r} 0 0 0 ${s} ${l} L ${c} ${u} A ${n} ${n} 0 0 1 ${d} ${f} L ${p} ${v} A ${r} ${r} 0 0 0 ${y} ${b} Z')`;return{arrowShadowWidth:m,arrowPath:S,arrowPolygon:x}}const gF=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:i,arrowPath:o,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:[i,o]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${ae(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},YC=8;function QC(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?YC:r}}function Vc(e,t){return e?t:{}}function pF(e,t,n){const{componentCls:r,boxShadowPopoverArrow:i,arrowOffsetVertical:o,arrowOffsetHorizontal:a}=e,{arrowDistance:s=0,arrowPlacement:l={left:!0,right:!0,top:!0,bottom:!0}}={};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},gF(e,t,i)),{"&:before":{background:t}})]},Vc(!!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% - ${ae(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Vc(!!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% - ${ae(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Vc(!!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:o},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:o}})),Vc(!!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:o},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:o}}))}}function mF(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const i=r&&typeof r=="object"?r:{},o={};switch(e){case"top":case"bottom":o.shiftX=t.arrowOffsetHorizontal*2+n,o.shiftY=!0,o.adjustY=!0;break;case"left":case"right":o.shiftY=t.arrowOffsetVertical*2+n,o.shiftX=!0,o.adjustX=!0;break}const a=Object.assign(Object.assign({},o),i);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}const rb={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"]}},vF={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"]}},yF=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function bF(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:i,borderRadius:o,visibleFirst:a}=e,s=t/2,l={};return Object.keys(rb).forEach(c=>{const u=r&&vF[c]||rb[c],d=Object.assign(Object.assign({},u),{offset:[0,0],dynamicInset:!0});switch(l[c]=d,yF.has(c)&&(d.autoArrow=!1),c){case"top":case"topLeft":case"topRight":d.offset[1]=-s-i;break;case"bottom":case"bottomLeft":case"bottomRight":d.offset[1]=s+i;break;case"left":case"leftTop":case"leftBottom":d.offset[0]=-s-i;break;case"right":case"rightTop":case"rightBottom":d.offset[0]=s+i;break}const f=QC({contentRadius:o,limitVerticalRadius:!0});if(r)switch(c){case"topLeft":case"bottomLeft":d.offset[0]=-f.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":d.offset[0]=f.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":d.offset[1]=-f.arrowOffsetHorizontal*2+s;break;case"leftBottom":case"rightBottom":d.offset[1]=f.arrowOffsetHorizontal*2-s;break}d.overflow=mF(c,f,t,n),a&&(d.htmlRegion="visibleFirst")}),l}const xF=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:i,tooltipBorderRadius:o,zIndexPopup:a,controlHeight:s,boxShadowSecondary:l,paddingSM:c,paddingXS:u}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Ci(e)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:n,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,[`${t}-inner`]:{minWidth:"1em",minHeight:s,padding:`${ae(e.calc(c).div(2).equal())} ${ae(u)}`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:o,boxShadow:l,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(o,YC)}},[`${t}-content`]:{position:"relative"}}),s$(e,(d,f)=>{let{darkColor:p}=f;return{[`&${t}-${d}`]:{[`${t}-inner`]:{backgroundColor:p},[`${t}-arrow`]:{"--antd-arrow-background-color":p}}}})),{"&-rtl":{direction:"rtl"}})},pF(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},SF=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},QC({contentRadius:e.borderRadius,limitVerticalRadius:!0})),hF(jn(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),ZC=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return ui("Tooltip",r=>{const{borderRadius:i,colorTextLightSolid:o,colorBgSpotlight:a}=r,s=jn(r,{tooltipMaxWidth:250,tooltipColor:o,tooltipBorderRadius:i,tooltipBg:a});return[xF(s),dk(r,"zoom-big-fast")]},SF,{resetStyle:!1,injectStyle:t})(e)},wF=ad.map(e=>`${e}-inverse`);function CF(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(le(wF),le(ad)).includes(e):ad.includes(e)}function JC(e,t){const n=CF(t),r=ve({[`${e}-${t}`]:t&&n}),i={},o={};return t&&!n&&(i.background=t,o["--antd-arrow-background-color"]=t),{className:r,overlayStyle:i,arrowStyle:o}}const EF=e=>{const{prefixCls:t,className:n,placement:r="top",title:i,color:o,overlayInnerStyle:a}=e,{getPrefixCls:s}=h.useContext(Rt),l=s("tooltip",t),[c,u,d]=ZC(l),f=JC(l,o),p=f.arrowStyle,v=Object.assign(Object.assign({},a),f.overlayStyle),y=ve(u,d,l,`${l}-pure`,`${l}-placement-${r}`,n,f.className);return c(h.createElement("div",{className:y,style:p},h.createElement("div",{className:`${l}-arrow`}),h.createElement(KC,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:v}),i)))};var _F=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{var n,r;const{prefixCls:i,openClassName:o,getTooltipContainer:a,overlayClassName:s,color:l,overlayInnerStyle:c,children:u,afterOpenChange:d,afterVisibleChange:f,destroyTooltipOnHide:p,arrow:v=!0,title:y,overlay:b,builtinPlacements:m,arrowPointAtCenter:g=!1,autoAdjustOverflow:x=!0}=e,S=!!v,[,w]=Ri(),{getPopupContainer:C,getPrefixCls:_,direction:M}=h.useContext(Rt),T=Am(),P=h.useRef(null),F=()=>{var oe;(oe=P.current)===null||oe===void 0||oe.forceAlign()};h.useImperativeHandle(t,()=>{var oe;return{forceAlign:F,forcePopupAlign:()=>{T.deprecated(!1,"forcePopupAlign","forceAlign"),F()},nativeElement:(oe=P.current)===null||oe===void 0?void 0:oe.nativeElement}});const[D,z]=tC(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),j=!y&&!b&&y!==0,W=oe=>{var Be,Pe;z(j?!1:oe),j||((Be=e.onOpenChange)===null||Be===void 0||Be.call(e,oe),(Pe=e.onVisibleChange)===null||Pe===void 0||Pe.call(e,oe))},N=h.useMemo(()=>{var oe,Be;let Pe=g;return typeof v=="object"&&(Pe=(Be=(oe=v.pointAtCenter)!==null&&oe!==void 0?oe:v.arrowPointAtCenter)!==null&&Be!==void 0?Be:g),m||bF({arrowPointAtCenter:Pe,autoAdjustOverflow:x,arrowWidth:S?w.sizePopupArrow:0,borderRadius:w.borderRadius,offset:w.marginXXS,visibleFirst:!0})},[g,v,m,w]),R=h.useMemo(()=>y===0?y:b||y||"",[b,y]),$=h.createElement(op,{space:!0},typeof R=="function"?R():R),{getPopupContainer:I,placement:A="top",mouseEnterDelay:H=.1,mouseLeaveDelay:G=.1,overlayStyle:Y,rootClassName:U}=e,X=_F(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),ee=_("tooltip",i),q=_(),K=e["data-popover-inject"];let Z=D;!("open"in e)&&!("visible"in e)&&j&&(Z=!1);const ne=h.isValidElement(u)&&!EC(u)?u:h.createElement("span",null,u),pe=ne.props,ye=!pe.className||typeof pe.className=="string"?ve(pe.className,o||`${ee}-open`):pe.className,[xe,me,fe]=ZC(ee,!K),be=JC(ee,l),he=be.arrowStyle,we=Object.assign(Object.assign({},c),be.overlayStyle),Ae=ve(s,{[`${ee}-rtl`]:M==="rtl"},be.className,U,me,fe),[Ee,ie]=pR("Tooltip",X.zIndex),Ie=h.createElement(fF,Object.assign({},X,{zIndex:Ee,showArrow:S,placement:A,mouseEnterDelay:H,mouseLeaveDelay:G,prefixCls:ee,overlayClassName:Ae,overlayStyle:Object.assign(Object.assign({},he),Y),getTooltipContainer:I||a||C,ref:P,builtinPlacements:N,overlay:$,visible:Z,onVisibleChange:W,afterVisibleChange:d??f,overlayInnerStyle:we,arrowContent:h.createElement("span",{className:`${ee}-arrow-content`}),motion:{motionName:MR(q,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!p}),Z?Jd(ne,{className:ye}):ne);return xe(h.createElement(OC.Provider,{value:ie},Ie))}),Hi=OF;Hi._InternalPanelDoNotUseOrYouWillBeFired=EF;var MF={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"},TF=function(t,n){return h.createElement(Rn,nt({},t,{ref:n,icon:MF}))},PF=h.forwardRef(TF),$F={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"},RF=function(t,n){return h.createElement(Rn,nt({},t,{ref:n,icon:$F}))},ib=h.forwardRef(RF);const kF=e=>!isNaN(parseFloat(e))&&isFinite(e),eE=h.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),IF=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:i,headerHeight:o,headerPadding:a,headerColor:s,footerPadding:l,fontSize:c,bodyBg:u,headerBg:d}=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:o,padding:a,color:s,lineHeight:ae(o),background:d,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:l,color:r,fontSize:c,background:i},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},tE=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:i,controlHeightSM:o,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:i,footerPadding:`${o}px ${c}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+a*2,triggerBg:"#002140",triggerColor:s,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:l,lightTriggerBg:l,lightTriggerColor:i}},nE=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],rE=ui("Layout",e=>[IF(e)],tE,{deprecatedTokens:nE}),FF=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:i,antCls:o,triggerHeight:a,triggerColor:s,triggerBg:l,headerHeight:c,zeroTriggerWidth:u,zeroTriggerHeight:d,borderRadius:f,lightSiderBg:p,lightTriggerColor:v,lightTriggerBg:y,bodyBg:b}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:a},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${o}-menu${o}-menu-inline-collapsed`]:{width:"auto"}},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:a,color:s,lineHeight:ae(a),textAlign:"center",background:l,cursor:"pointer",transition:`all ${r}`},"&-zero-width":{"> *":{overflow:"hidden"},[`${t}-trigger`]:{position:"absolute",top:c,insetInlineEnd:e.calc(u).mul(-1).equal(),zIndex:1,width:u,height:d,color:s,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderStartStartRadius:0,borderStartEndRadius:f,borderEndEndRadius:f,borderEndStartRadius:0,cursor:"pointer",transition:`background ${i} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${i}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(u).mul(-1).equal(),borderStartStartRadius:f,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:f}}},"&-light":{background:p,[`${t}-trigger`]:{color:v,background:y},[`${t}-zero-width-trigger`]:{color:v,background:y,border:`1px solid ${b}`,borderInlineStart:0}}}}},NF=ui(["Layout","Sider"],e=>[FF(e)],tE,{deprecatedTokens:nE});var AF=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})(),oE=h.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:i,children:o,defaultCollapsed:a=!1,theme:s="dark",style:l={},collapsible:c=!1,reverseArrow:u=!1,width:d=200,collapsedWidth:f=80,zeroWidthTriggerStyle:p,breakpoint:v,onCollapse:y,onBreakpoint:b}=e,m=AF(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:g}=h.useContext(eE),[x,S]=h.useState("collapsed"in e?e.collapsed:a),[w,C]=h.useState(!1);h.useEffect(()=>{"collapsed"in e&&S(e.collapsed)},[e.collapsed]);const _=(R,$)=>{"collapsed"in e||S(R),y==null||y(R,$)},{getPrefixCls:M}=h.useContext(Rt),T=M("layout-sider",n),[P,F,D]=NF(T),z=h.useRef();z.current=R=>{C(R.matches),b==null||b(R.matches),x!==R.matches&&_(R.matches,"responsive")},h.useEffect(()=>{function R(I){return z.current(I)}let $;if(typeof window<"u"){const{matchMedia:I}=window;if(I&&v&&v in ob){$=I(`screen and (max-width: ${ob[v]})`);try{$.addEventListener("change",R)}catch{$.addListener(R)}R($)}}return()=>{try{$==null||$.removeEventListener("change",R)}catch{$==null||$.removeListener(R)}}},[v]),h.useEffect(()=>{const R=LF("ant-sider-");return g.addSider(R),()=>g.removeSider(R)},[]);const j=()=>{_(!x,"clickTrigger")},W=()=>{const R=oc(m,["collapsed"]),$=x?f:d,I=kF($)?`${$}px`:String($),A=parseFloat(String(f||0))===0?h.createElement("span",{onClick:j,className:ve(`${T}-zero-width-trigger`,`${T}-zero-width-trigger-${u?"right":"left"}`),style:p},i||h.createElement(PF,null)):null,Y={expanded:u?h.createElement(Ry,null):h.createElement(ib,null),collapsed:u?h.createElement(ib,null):h.createElement(Ry,null)}[x?"collapsed":"expanded"],U=i!==null?A||h.createElement("div",{className:`${T}-trigger`,onClick:j,style:{width:I}},i||Y):null,X=Object.assign(Object.assign({},l),{flex:`0 0 ${I}`,maxWidth:I,minWidth:I,width:I}),ee=ve(T,`${T}-${s}`,{[`${T}-collapsed`]:!!x,[`${T}-has-trigger`]:c&&i!==null&&!A,[`${T}-below`]:!!w,[`${T}-zero-width`]:parseFloat(I)===0},r,F,D);return h.createElement("aside",Object.assign({className:ee},R,{style:X,ref:t}),h.createElement("div",{className:`${T}-children`},o),c||w&&A?U:null)},N=h.useMemo(()=>({siderCollapsed:x}),[x]);return P(h.createElement(iE.Provider,{value:N},W()))});function aE(e){return jn(e,{inputAffixPadding:e.paddingXXS})}const sE=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:i,controlHeightSM:o,controlHeightLG:a,fontSizeLG:s,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:f,colorPrimaryHover:p,colorPrimary:v,controlOutlineWidth:y,controlOutline:b,colorErrorOutline:m,colorWarningOutline:g,colorBgContainer:x}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-i,0),paddingBlockSM:Math.max(Math.round((o-n*r)/2*10)/10-i,0),paddingBlockLG:Math.ceil((a-s*l)/2*10)/10-i,paddingInline:c-i,paddingInlineSM:u-i,paddingInlineLG:d-i,addonBg:f,activeBorderColor:v,hoverBorderColor:p,activeShadow:`0 0 0 ${y}px ${b}`,errorActiveShadow:`0 0 0 ${y}px ${m}`,warningActiveShadow:`0 0 0 ${y}px ${g}`,hoverBg:x,activeBg:x,inputFontSize:n,inputFontSizeLG:s,inputFontSizeSM:n}},DF=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),ev=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({},DF(jn(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),lE=(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}}),ab=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},lE(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),cE=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},lE(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},ev(e))}),ab(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),ab(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),sb=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),uE=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},sb(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),sb(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},ev(e))}})}),dE=(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},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},fE=(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}}),lb=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},fE(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),hE=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},fE(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},ev(e))}),lb(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),lb(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),cb=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),gE=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${ae(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${ae(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},cb(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),cb(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),pE=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),mE=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:i}=e;return{padding:`${ae(t)} ${ae(i)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},vE=e=>({padding:`${ae(e.paddingBlockSM)} ${ae(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),of=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${ae(e.paddingBlock)} ${ae(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},pE(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({},mE(e)),"&-sm":Object.assign({},vE(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),yE=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({},mE(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},vE(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${ae(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${ae(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${ae(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${ae(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${ae(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},t$()),{[`${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}}}})}},zF=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:i}=e,a=i(n).sub(i(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ci(e)),of(e)),cE(e)),hE(e)),dE(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"}})}},jF=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${ae(e.inputAffixPadding)}`}}}},HF=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:i,colorIcon:o,colorIconHover:a,iconCls:s}=e,l=`${t}-affix-wrapper`,c=`${t}-affix-wrapper-disabled`;return{[l]:Object.assign(Object.assign(Object.assign(Object.assign({},of(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}}}),jF(e)),{[`${s}${t}-password-icon`]:{color:o,cursor:"pointer",transition:`all ${i}`,"&:hover":{color:a}}}),[c]:{[`${s}${t}-password-icon`]:{color:o,cursor:"not-allowed","&:hover":{color:o}}}}},BF=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Ci(e)),yE(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}}},uE(e)),gE(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}}})})}},VF=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{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,paddingTop:0,paddingBottom:0,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 ${r}-button`]:{height:e.controlHeightLG},[`&-small ${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}}}}},WF=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}}}}}},UF=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}};ui("Input",e=>{const t=jn(e,aE(e));return[zF(t),WF(t),HF(t),BF(t),VF(t),UF(t),Xm(t)]},sE,{resetFont:!1});const bE=h.createContext({}),GF=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},qF=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},XF=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:i}=e,o={};for(let a=i;a>=0;a--)a===0?(o[`${r}${t}-${a}`]={display:"none"},o[`${r}-push-${a}`]={insetInlineStart:"auto"},o[`${r}-pull-${a}`]={insetInlineEnd:"auto"},o[`${r}${t}-push-${a}`]={insetInlineStart:"auto"},o[`${r}${t}-pull-${a}`]={insetInlineEnd:"auto"},o[`${r}${t}-offset-${a}`]={marginInlineStart:0},o[`${r}${t}-order-${a}`]={order:0}):(o[`${r}${t}-${a}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${a/i*100}%`,maxWidth:`${a/i*100}%`}],o[`${r}${t}-push-${a}`]={insetInlineStart:`${a/i*100}%`},o[`${r}${t}-pull-${a}`]={insetInlineEnd:`${a/i*100}%`},o[`${r}${t}-offset-${a}`]={marginInlineStart:`${a/i*100}%`},o[`${r}${t}-order-${a}`]={order:a});return o[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},o},sp=(e,t)=>XF(e,t),KF=(e,t,n)=>({[`@media (min-width: ${ae(t)})`]:Object.assign({},sp(e,n))}),YF=()=>({}),QF=()=>({}),ZF=ui("Grid",GF,YF),JF=ui("Grid",e=>{const t=jn(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[qF(t),sp(t,""),sp(t,"-xs"),Object.keys(n).map(r=>KF(t,n[r],r)).reduce((r,i)=>Object.assign(Object.assign({},r),i),{})]},QF);var eN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{getPrefixCls:n,direction:r}=h.useContext(Rt),{gutter:i,wrap:o}=h.useContext(bE),{prefixCls:a,span:s,order:l,offset:c,push:u,pull:d,className:f,children:p,flex:v,style:y}=e,b=eN(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),m=n("col",a),[g,x,S]=JF(m),w={};let C={};tN.forEach(T=>{let P={};const F=e[T];typeof F=="number"?P.span=F:typeof F=="object"&&(P=F||{}),delete b[T],C=Object.assign(Object.assign({},C),{[`${m}-${T}-${P.span}`]:P.span!==void 0,[`${m}-${T}-order-${P.order}`]:P.order||P.order===0,[`${m}-${T}-offset-${P.offset}`]:P.offset||P.offset===0,[`${m}-${T}-push-${P.push}`]:P.push||P.push===0,[`${m}-${T}-pull-${P.pull}`]:P.pull||P.pull===0,[`${m}-rtl`]:r==="rtl"}),P.flex&&(C[`${m}-${T}-flex`]=!0,w[`--${m}-${T}-flex`]=ub(P.flex))});const _=ve(m,{[`${m}-${s}`]:s!==void 0,[`${m}-order-${l}`]:l,[`${m}-offset-${c}`]:c,[`${m}-push-${u}`]:u,[`${m}-pull-${d}`]:d},f,C,x,S),M={};if(i&&i[0]>0){const T=i[0]/2;M.paddingLeft=T,M.paddingRight=T}return v&&(M.flex=ub(v),o===!1&&!M.minWidth&&(M.minWidth=0)),g(h.createElement("div",Object.assign({},b,{style:Object.assign(Object.assign(Object.assign({},M),y),w),className:_,ref:t}),p))});var nN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{if(typeof e=="string"&&r(e),typeof e=="object")for(let o=0;o{i()},[JSON.stringify(e),t]),n}const xE=h.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:i,className:o,style:a,children:s,gutter:l=0,wrap:c}=e,u=nN(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:d,direction:f}=h.useContext(Rt),[p,v]=h.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[y,b]=h.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),m=db(i,y),g=db(r,y),x=h.useRef(l),S=lF();h.useEffect(()=>{const R=S.subscribe($=>{b($);const I=x.current||0;(!Array.isArray(I)&&typeof I=="object"||Array.isArray(I)&&(typeof I[0]=="object"||typeof I[1]=="object"))&&v($)});return()=>S.unsubscribe(R)},[]);const w=()=>{const R=[void 0,void 0];return(Array.isArray(l)?l:[l,void 0]).forEach((I,A)=>{if(typeof I=="object")for(let H=0;H0?P[0]/-2:void 0;z&&(D.marginLeft=z,D.marginRight=z);const[j,W]=P;D.rowGap=W;const N=h.useMemo(()=>({gutter:[j,W],wrap:c}),[j,W,c]);return _(h.createElement(bE.Provider,{value:N},h.createElement("div",Object.assign({},u,{className:F,style:Object.assign(Object.assign({},D),a),ref:t}),s)))});var rN={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"},iN=function(t,n){return h.createElement(Rn,nt({},t,{ref:n,icon:rN}))},oN=h.forwardRef(iN);function lp(){return typeof BigInt=="function"}function SE(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function zo(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",i=r.split("."),o=i[0]||"0",a=i[1]||"0";o==="0"&&a==="0"&&(n=!1);var s=n?"-":"";return{negative:n,negativeStr:s,trimStr:r,integerStr:o,decimalStr:a,fullStr:"".concat(s).concat(r)}}function tv(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function Io(e){var t=String(e);if(tv(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(".")&&nv(t)?t.length-t.indexOf(".")-1:0}function af(e){var t=String(e);if(tv(e)){if(e>Number.MAX_SAFE_INTEGER)return String(lp()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":zo("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),sN=function(){function e(t){if(Kt(this,e),L(this,"origin",""),L(this,"number",void 0),L(this,"empty",void 0),SE(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return Yt(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 i=this.number+r;if(i>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(iNumber.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(i0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":af(this.number):this.origin}}]),e}();function Ar(e){return lp()?new aN(e):new sN(e)}function Ou(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var i=zo(e),o=i.negativeStr,a=i.integerStr,s=i.decimalStr,l="".concat(t).concat(s),c="".concat(o).concat(a);if(n>=0){var u=Number(s[n]);if(u>=5&&!r){var d=Ar(e).add("".concat(o,"0.").concat("0".repeat(n)).concat(10-u));return Ou(d.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 lN(e){return!!(e.addonBefore||e.addonAfter)}function cN(e){return!!(e.prefix||e.suffix||e.allowClear)}function uN(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var i=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(i,i);break;default:e.setSelectionRange(0,i)}}}}var dN=de.forwardRef(function(e,t){var n,r,i=e.inputElement,o=e.children,a=e.prefixCls,s=e.prefix,l=e.suffix,c=e.addonBefore,u=e.addonAfter,d=e.className,f=e.style,p=e.disabled,v=e.readOnly,y=e.focused,b=e.triggerFocus,m=e.allowClear,g=e.value,x=e.handleReset,S=e.hidden,w=e.classes,C=e.classNames,_=e.dataAttrs,M=e.styles,T=e.components,P=e.onClear,F=o??i,D=(T==null?void 0:T.affixWrapper)||"span",z=(T==null?void 0:T.groupWrapper)||"span",j=(T==null?void 0:T.wrapper)||"span",W=(T==null?void 0:T.groupAddon)||"span",N=h.useRef(null),R=function(me){var fe;(fe=N.current)!==null&&fe!==void 0&&fe.contains(me.target)&&(b==null||b())},$=cN(e),I=h.cloneElement(F,{value:g,className:ve(F.props.className,!$&&(C==null?void 0:C.variant))||null}),A=h.useRef(null);if(de.useImperativeHandle(t,function(){return{nativeElement:A.current||N.current}}),$){var H=null;if(m){var G=!p&&!v&&g,Y="".concat(a,"-clear-icon"),U=Re(m)==="object"&&m!==null&&m!==void 0&&m.clearIcon?m.clearIcon:"✖";H=de.createElement("span",{onClick:function(me){x==null||x(me),P==null||P()},onMouseDown:function(me){return me.preventDefault()},className:ve(Y,L(L({},"".concat(Y,"-hidden"),!G),"".concat(Y,"-has-suffix"),!!l)),role:"button",tabIndex:-1},U)}var X="".concat(a,"-affix-wrapper"),ee=ve(X,L(L(L(L(L({},"".concat(a,"-disabled"),p),"".concat(X,"-disabled"),p),"".concat(X,"-focused"),y),"".concat(X,"-readonly"),v),"".concat(X,"-input-with-clear-btn"),l&&m&&g),w==null?void 0:w.affixWrapper,C==null?void 0:C.affixWrapper,C==null?void 0:C.variant),q=(l||m)&&de.createElement("span",{className:ve("".concat(a,"-suffix"),C==null?void 0:C.suffix),style:M==null?void 0:M.suffix},H,l);I=de.createElement(D,nt({className:ee,style:M==null?void 0:M.affixWrapper,onClick:R},_==null?void 0:_.affixWrapper,{ref:N}),s&&de.createElement("span",{className:ve("".concat(a,"-prefix"),C==null?void 0:C.prefix),style:M==null?void 0:M.prefix},s),I,q)}if(lN(e)){var K="".concat(a,"-group"),Z="".concat(K,"-addon"),ne="".concat(K,"-wrapper"),pe=ve("".concat(a,"-wrapper"),K,w==null?void 0:w.wrapper,C==null?void 0:C.wrapper),ye=ve(ne,L({},"".concat(ne,"-disabled"),p),w==null?void 0:w.group,C==null?void 0:C.groupWrapper);I=de.createElement(z,{className:ye,ref:A},de.createElement(j,{className:pe},c&&de.createElement(W,{className:Z},c),I,u&&de.createElement(W,{className:Z},u)))}return de.cloneElement(I,{className:ve((n=I.props)===null||n===void 0?void 0:n.className,d)||null,style:V(V({},(r=I.props)===null||r===void 0?void 0:r.style),f),hidden:S})});function fN(e,t){return typeof Proxy<"u"&&e?new Proxy(e,{get:function(r,i){if(t[i])return t[i];var o=r[i];return typeof o=="function"?o.bind(r):o}}):e}function hN(e,t){var n=h.useRef(null);function r(){try{var o=e.selectionStart,a=e.selectionEnd,s=e.value,l=s.substring(0,o),c=s.substring(a);n.current={start:o,end:a,value:s,beforeTxt:l,afterTxt:c}}catch{}}function i(){if(e&&n.current&&t)try{var o=e.value,a=n.current,s=a.beforeTxt,l=a.afterTxt,c=a.start,u=o.length;if(o.startsWith(s))u=s.length;else if(o.endsWith(l))u=o.length-n.current.afterTxt.length;else{var d=s[c-1],f=o.indexOf(d,c-1);f!==-1&&(u=f+1)}e.setSelectionRange(u,u)}catch(p){Tn(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(p.message))}}return[r,i]}var gN=function(){var t=h.useState(!1),n=te(t,2),r=n[0],i=n[1];return mn(function(){i(XC())},[]),r},pN=200,mN=600;function vN(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,i=e.upDisabled,o=e.downDisabled,a=e.onStep,s=h.useRef(),l=h.useRef([]),c=h.useRef();c.current=a;var u=function(){clearTimeout(s.current)},d=function(x,S){x.preventDefault(),u(),c.current(S);function w(){c.current(S),s.current=setTimeout(w,pN)}s.current=setTimeout(w,mN)};h.useEffect(function(){return function(){u(),l.current.forEach(function(g){return fn.cancel(g)})}},[]);var f=gN();if(f)return null;var p="".concat(t,"-handler"),v=ve(p,"".concat(p,"-up"),L({},"".concat(p,"-up-disabled"),i)),y=ve(p,"".concat(p,"-down"),L({},"".concat(p,"-down-disabled"),o)),b=function(){return l.current.push(fn(u))},m={unselectable:"on",role:"button",onMouseUp:b,onMouseLeave:b};return h.createElement("div",{className:"".concat(p,"-wrap")},h.createElement("span",nt({},m,{onMouseDown:function(x){d(x,!0)},"aria-label":"Increase Value","aria-disabled":i,className:v}),n||h.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),h.createElement("span",nt({},m,{onMouseDown:function(x){d(x,!1)},"aria-label":"Decrease Value","aria-disabled":o,className:y}),r||h.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function fb(e){var t=typeof e=="number"?af(e):zo(e).fullStr,n=t.includes(".");return n?zo(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const yN=function(){var e=h.useRef(0),t=function(){fn.cancel(e.current)};return h.useEffect(function(){return t},[]),function(n){t(),e.current=fn(function(){n()})}};var bN=["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"],xN=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],hb=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},gb=function(t){var n=Ar(t);return n.isInvalidate()?null:n},SN=h.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,i=e.style,o=e.min,a=e.max,s=e.step,l=s===void 0?1:s,c=e.defaultValue,u=e.value,d=e.disabled,f=e.readOnly,p=e.upHandler,v=e.downHandler,y=e.keyboard,b=e.changeOnWheel,m=b===void 0?!1:b,g=e.controls,x=g===void 0?!0:g;e.classNames;var S=e.stringMode,w=e.parser,C=e.formatter,_=e.precision,M=e.decimalSeparator,T=e.onChange,P=e.onInput,F=e.onPressEnter,D=e.onStep,z=e.changeOnBlur,j=z===void 0?!0:z,W=e.domRef,N=$n(e,bN),R="".concat(n,"-input"),$=h.useRef(null),I=h.useState(!1),A=te(I,2),H=A[0],G=A[1],Y=h.useRef(!1),U=h.useRef(!1),X=h.useRef(!1),ee=h.useState(function(){return Ar(u??c)}),q=te(ee,2),K=q[0],Z=q[1];function ne(Se){u===void 0&&Z(Se)}var pe=h.useCallback(function(Se,se){if(!se)return _>=0?_:Math.max(Io(Se),Io(l))},[_,l]),ye=h.useCallback(function(Se){var se=String(Se);if(w)return w(se);var Oe=se;return M&&(Oe=Oe.replace(M,".")),Oe.replace(/[^\w.-]+/g,"")},[w,M]),xe=h.useRef(""),me=h.useCallback(function(Se,se){if(C)return C(Se,{userTyping:se,input:String(xe.current)});var Oe=typeof Se=="number"?af(Se):Se;if(!se){var Me=pe(Oe,se);if(nv(Oe)&&(M||Me>=0)){var Le=M||".";Oe=Ou(Oe,Le,Me)}}return Oe},[C,pe,M]),fe=h.useState(function(){var Se=c??u;return K.isInvalidate()&&["string","number"].includes(Re(Se))?Number.isNaN(Se)?"":Se:me(K.toString(),!1)}),be=te(fe,2),he=be[0],we=be[1];xe.current=he;function Ae(Se,se){we(me(Se.isInvalidate()?Se.toString(!1):Se.toString(!se),se))}var Ee=h.useMemo(function(){return gb(a)},[a,_]),ie=h.useMemo(function(){return gb(o)},[o,_]),Ie=h.useMemo(function(){return!Ee||!K||K.isInvalidate()?!1:Ee.lessEquals(K)},[Ee,K]),oe=h.useMemo(function(){return!ie||!K||K.isInvalidate()?!1:K.lessEquals(ie)},[ie,K]),Be=hN($.current,H),Pe=te(Be,2),Fe=Pe[0],je=Pe[1],Ge=function(se){return Ee&&!se.lessEquals(Ee)?Ee:ie&&!ie.lessEquals(se)?ie:null},ct=function(se){return!Ge(se)},Qe=function(se,Oe){var Me=se,Le=ct(Me)||Me.isEmpty();if(!Me.isEmpty()&&!Oe&&(Me=Ge(Me)||Me,Le=!0),!f&&!d&&Le){var dt=Me.toString(),qe=pe(dt,Oe);return qe>=0&&(Me=Ar(Ou(dt,".",qe)),ct(Me)||(Me=Ar(Ou(dt,".",qe,!0)))),Me.equals(K)||(ne(Me),T==null||T(Me.isEmpty()?null:hb(S,Me)),u===void 0&&Ae(Me,Oe)),Me}return K},tt=yN(),ft=function Se(se){if(Fe(),xe.current=se,we(se),!U.current){var Oe=ye(se),Me=Ar(Oe);Me.isNaN()||Qe(Me,!0)}P==null||P(se),tt(function(){var Le=se;w||(Le=se.replace(/。/g,".")),Le!==se&&Se(Le)})},Wt=function(){U.current=!0},wt=function(){U.current=!1,ft($.current.value)},ur=function(se){ft(se.target.value)},hn=function(se){var Oe;if(!(se&&Ie||!se&&oe)){Y.current=!1;var Me=Ar(X.current?fb(l):l);se||(Me=Me.negate());var Le=(K||Ar(0)).add(Me.toString()),dt=Qe(Le,!1);D==null||D(hb(S,dt),{offset:X.current?fb(l):l,type:se?"up":"down"}),(Oe=$.current)===null||Oe===void 0||Oe.focus()}},kt=function(se){var Oe=Ar(ye(he)),Me;Oe.isNaN()?Me=Qe(K,se):Me=Qe(Oe,se),u!==void 0?Ae(K,!1):Me.isNaN()||Ae(Me,!1)},ht=function(){Y.current=!0},kr=function(se){var Oe=se.key,Me=se.shiftKey;Y.current=!0,X.current=Me,Oe==="Enter"&&(U.current||(Y.current=!1),kt(!1),F==null||F(se)),y!==!1&&!U.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Oe)&&(hn(Oe==="Up"||Oe==="ArrowUp"),se.preventDefault())},gt=function(){Y.current=!1,X.current=!1};h.useEffect(function(){if(m&&H){var Se=function(Me){hn(Me.deltaY<0),Me.preventDefault()},se=$.current;if(se)return se.addEventListener("wheel",Se,{passive:!1}),function(){return se.removeEventListener("wheel",Se)}}});var nn=function(){j&&kt(!1),G(!1),Y.current=!1};return rl(function(){K.isInvalidate()||Ae(K,!1)},[_,C]),rl(function(){var Se=Ar(u);Z(Se);var se=Ar(ye(he));(!Se.equals(se)||!Y.current||C)&&Ae(Se,Y.current)},[u]),rl(function(){C&&je()},[he]),h.createElement("div",{ref:W,className:ve(n,r,L(L(L(L(L({},"".concat(n,"-focused"),H),"".concat(n,"-disabled"),d),"".concat(n,"-readonly"),f),"".concat(n,"-not-a-number"),K.isNaN()),"".concat(n,"-out-of-range"),!K.isInvalidate()&&!ct(K))),style:i,onFocus:function(){G(!0)},onBlur:nn,onKeyDown:kr,onKeyUp:gt,onCompositionStart:Wt,onCompositionEnd:wt,onBeforeInput:ht},x&&h.createElement(vN,{prefixCls:n,upNode:p,downNode:v,upDisabled:Ie,downDisabled:oe,onStep:hn}),h.createElement("div",{className:"".concat(R,"-wrap")},h.createElement("input",nt({autoComplete:"off",role:"spinbutton","aria-valuemin":o,"aria-valuemax":a,"aria-valuenow":K.isInvalidate()?null:K.toString(),step:l},N,{ref:ho($,t),className:R,value:he,onChange:ur,disabled:d,readOnly:f}))))}),wN=h.forwardRef(function(e,t){var n=e.disabled,r=e.style,i=e.prefixCls,o=i===void 0?"rc-input-number":i,a=e.value,s=e.prefix,l=e.suffix,c=e.addonBefore,u=e.addonAfter,d=e.className,f=e.classNames,p=$n(e,xN),v=h.useRef(null),y=h.useRef(null),b=h.useRef(null),m=function(x){b.current&&uN(b.current,x)};return h.useImperativeHandle(t,function(){return fN(b.current,{nativeElement:v.current.nativeElement||y.current})}),h.createElement(dN,{className:d,triggerFocus:m,prefixCls:o,value:a,disabled:n,style:r,prefix:s,suffix:l,addonAfter:u,addonBefore:c,classNames:f,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:v},h.createElement(SN,nt({prefixCls:o,disabled:n,ref:b,domRef:y,className:f==null?void 0:f.input},p)))});const CN=e=>{var t;const n=(t=e.handleVisible)!==null&&t!==void 0?t:"auto";return Object.assign(Object.assign({},sE(e)),{controlWidth:90,handleWidth:e.controlHeightSM-e.lineWidth*2,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new cn(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:n===!0?1:0})},pb=(e,t)=>{let{componentCls:n,borderRadiusSM:r,borderRadiusLG:i}=e;const o=t==="lg"?i:r;return{[`&-${t}`]:{[`${n}-handler-wrap`]:{borderStartEndRadius:o,borderEndEndRadius:o},[`${n}-handler-up`]:{borderStartEndRadius:o},[`${n}-handler-down`]:{borderEndEndRadius:o}}}},EN=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:i,inputFontSizeSM:o,inputFontSizeLG:a,controlHeightLG:s,controlHeightSM:l,colorError:c,paddingInlineSM:u,paddingBlockSM:d,paddingBlockLG:f,paddingInlineLG:p,colorTextDescription:v,motionDurationMid:y,handleHoverColor:b,handleOpacity:m,paddingInline:g,paddingBlock:x,handleBg:S,handleActiveBg:w,colorTextDisabled:C,borderRadiusSM:_,borderRadiusLG:M,controlWidth:T,handleBorderColor:P,filledHandleBg:F,lineHeightLG:D,calc:z}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ci(e)),of(e)),{display:"inline-block",width:T,margin:0,padding:0,borderRadius:i}),cE(e,{[`${t}-handler-wrap`]:{background:S,[`${t}-handler-down`]:{borderBlockStart:`${ae(n)} ${r} ${P}`}}})),hE(e,{[`${t}-handler-wrap`]:{background:F,[`${t}-handler-down`]:{borderBlockStart:`${ae(n)} ${r} ${P}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:S}}})),dE(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,lineHeight:D,borderRadius:M,[`input${t}-input`]:{height:z(s).sub(z(n).mul(2)).equal(),padding:`${ae(f)} ${ae(p)}`}},"&-sm":{padding:0,fontSize:o,borderRadius:_,[`input${t}-input`]:{height:z(l).sub(z(n).mul(2)).equal(),padding:`${ae(d)} ${ae(u)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},Ci(e)),yE(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:M,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:_}}},uE(e)),gE(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({},Ci(e)),{width:"100%",padding:`${ae(x)} ${ae(g)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:i,outline:0,transition:`all ${y} linear`,appearance:"textfield",fontSize:"inherit"}),pE(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:0,opacity:m,height:"100%",borderStartStartRadius:0,borderStartEndRadius:i,borderEndEndRadius:i,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${y}`,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:v,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${ae(n)} ${r} ${P}`,transition:`all ${y} linear`,"&:active":{background:w},"&:hover":{height:"60%",[` + ${t}-handler-up-inner, + ${t}-handler-down-inner + `]:{color:b}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},aC()),{color:v,transition:`all ${y} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:i},[`${t}-handler-down`]:{borderEndEndRadius:i}},pb(e,"lg")),pb(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}})}]},_N=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:i,controlWidth:o,borderRadiusLG:a,borderRadiusSM:s,paddingInlineLG:l,paddingInlineSM:c,paddingBlockLG:u,paddingBlockSM:d,motionDurationMid:f}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${ae(n)} 0`}},of(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:o,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:a,paddingInlineStart:l,[`input${t}-input`]:{padding:`${ae(u)} 0`}},"&-sm":{borderRadius:s,paddingInlineStart:c,[`input${t}-input`]:{padding:`${ae(d)} 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:i},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:r,marginInlineStart:i,transition:`margin ${f}`}},[`&: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()}})}},ON=ui("InputNumber",e=>{const t=jn(e,aE(e));return[EN(t),_N(t),Xm(t)]},CN,{unitless:{handleOpacity:!0}});var MN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const{getPrefixCls:n,direction:r}=h.useContext(Rt),i=h.useRef(null);h.useImperativeHandle(t,()=>i.current);const{className:o,rootClassName:a,size:s,disabled:l,prefixCls:c,addonBefore:u,addonAfter:d,prefix:f,suffix:p,bordered:v,readOnly:y,status:b,controls:m,variant:g}=e,x=MN(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),S=n("input-number",c),w=ef(S),[C,_,M]=ON(S,w),{compactSize:T,compactItemClassnames:P}=$C(S,r);let F=h.createElement(oN,{className:`${S}-handler-up-inner`}),D=h.createElement(oF,{className:`${S}-handler-down-inner`});const z=typeof m=="boolean"?m:void 0;typeof m=="object"&&(F=typeof m.upIcon>"u"?F:h.createElement("span",{className:`${S}-handler-up-inner`},m.upIcon),D=typeof m.downIcon>"u"?D:h.createElement("span",{className:`${S}-handler-down-inner`},m.downIcon));const{hasFeedback:j,status:W,isFormItemInput:N,feedbackIcon:R}=h.useContext(Yo),$=tF(W,b),I=jm(K=>{var Z;return(Z=s??T)!==null&&Z!==void 0?Z:K}),A=h.useContext(qo),H=l??A,[G,Y]=nF("inputNumber",g,v),U=j&&h.createElement(h.Fragment,null,R),X=ve({[`${S}-lg`]:I==="large",[`${S}-sm`]:I==="small",[`${S}-rtl`]:r==="rtl",[`${S}-in-form-item`]:N},_),ee=`${S}-group`,q=h.createElement(wN,Object.assign({ref:i,disabled:H,className:ve(M,w,o,a,P),upHandler:F,downHandler:D,prefixCls:S,readOnly:y,controls:z,prefix:f,suffix:U||p,addonBefore:u&&h.createElement(op,{form:!0,space:!0},u),addonAfter:d&&h.createElement(op,{form:!0,space:!0},d),classNames:{input:X,variant:ve({[`${S}-${G}`]:Y},nb(S,$,j)),affixWrapper:ve({[`${S}-affix-wrapper-sm`]:I==="small",[`${S}-affix-wrapper-lg`]:I==="large",[`${S}-affix-wrapper-rtl`]:r==="rtl",[`${S}-affix-wrapper-without-controls`]:m===!1},_),wrapper:ve({[`${ee}-rtl`]:r==="rtl"},_),groupWrapper:ve({[`${S}-group-wrapper-sm`]:I==="small",[`${S}-group-wrapper-lg`]:I==="large",[`${S}-group-wrapper-rtl`]:r==="rtl",[`${S}-group-wrapper-${G}`]:Y},nb(`${S}-group-wrapper`,$,j),_)}},x));return C(q)}),ya=wE,TN=e=>h.createElement(fs,{theme:{components:{InputNumber:{handleVisible:!0}}}},h.createElement(wE,Object.assign({},e)));ya._InternalPanelDoNotUseOrYouWillBeFired=TN;function cp(e,t,n){return(e-t)/(n-t)}function rv(e,t,n,r){var i=cp(t,n,r),o={};switch(e){case"rtl":o.right="".concat(i*100,"%"),o.transform="translateX(50%)";break;case"btt":o.bottom="".concat(i*100,"%"),o.transform="translateY(50%)";break;case"ttb":o.top="".concat(i*100,"%"),o.transform="translateY(-50%)";break;default:o.left="".concat(i*100,"%"),o.transform="translateX(-50%)";break}return o}function Na(e,t){return Array.isArray(e)?e[t]:e}var ta=h.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),PN=h.createContext({}),$N=["prefixCls","value","valueIndex","onStartMove","onDelete","style","render","dragging","draggingDelete","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"],mb=h.forwardRef(function(e,t){var n=e.prefixCls,r=e.value,i=e.valueIndex,o=e.onStartMove,a=e.onDelete,s=e.style,l=e.render,c=e.dragging,u=e.draggingDelete,d=e.onOffsetChange,f=e.onChangeComplete,p=e.onFocus,v=e.onMouseEnter,y=$n(e,$N),b=h.useContext(ta),m=b.min,g=b.max,x=b.direction,S=b.disabled,w=b.keyboard,C=b.range,_=b.tabIndex,M=b.ariaLabelForHandle,T=b.ariaLabelledByForHandle,P=b.ariaValueTextFormatterForHandle,F=b.styles,D=b.classNames,z="".concat(n,"-handle"),j=function(U){S||o(U,i)},W=function(U){p==null||p(U,i)},N=function(U){v(U,i)},R=function(U){if(!S&&w){var X=null;switch(U.which||U.keyCode){case ce.LEFT:X=x==="ltr"||x==="btt"?-1:1;break;case ce.RIGHT:X=x==="ltr"||x==="btt"?1:-1;break;case ce.UP:X=x!=="ttb"?1:-1;break;case ce.DOWN:X=x!=="ttb"?-1:1;break;case ce.HOME:X="min";break;case ce.END:X="max";break;case ce.PAGE_UP:X=2;break;case ce.PAGE_DOWN:X=-2;break;case ce.BACKSPACE:case ce.DELETE:a(i);break}X!==null&&(U.preventDefault(),d(X,i))}},$=function(U){switch(U.which||U.keyCode){case ce.LEFT:case ce.RIGHT:case ce.UP:case ce.DOWN:case ce.HOME:case ce.END:case ce.PAGE_UP:case ce.PAGE_DOWN:f==null||f();break}},I=rv(x,r,m,g),A={};if(i!==null){var H;A={tabIndex:S?null:Na(_,i),role:"slider","aria-valuemin":m,"aria-valuemax":g,"aria-valuenow":r,"aria-disabled":S,"aria-label":Na(M,i),"aria-labelledby":Na(T,i),"aria-valuetext":(H=Na(P,i))===null||H===void 0?void 0:H(r),"aria-orientation":x==="ltr"||x==="rtl"?"horizontal":"vertical",onMouseDown:j,onTouchStart:j,onFocus:W,onMouseEnter:N,onKeyDown:R,onKeyUp:$}}var G=h.createElement("div",nt({ref:t,className:ve(z,L(L(L({},"".concat(z,"-").concat(i+1),i!==null&&C),"".concat(z,"-dragging"),c),"".concat(z,"-dragging-delete"),u),D.handle),style:V(V(V({},I),s),F.handle)},A,y));return l&&(G=l(G,{index:i,prefixCls:n,value:r,dragging:c,draggingDelete:u})),G}),RN=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","draggingDelete","onFocus"],kN=h.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,i=e.onStartMove,o=e.onOffsetChange,a=e.values,s=e.handleRender,l=e.activeHandleRender,c=e.draggingIndex,u=e.draggingDelete,d=e.onFocus,f=$n(e,RN),p=h.useRef({}),v=h.useState(!1),y=te(v,2),b=y[0],m=y[1],g=h.useState(-1),x=te(g,2),S=x[0],w=x[1],C=function(F){w(F),m(!0)},_=function(F,D){C(D),d==null||d(F)},M=function(F,D){C(D)};h.useImperativeHandle(t,function(){return{focus:function(F){var D;(D=p.current[F])===null||D===void 0||D.focus()},hideHelp:function(){ic.flushSync(function(){m(!1)})}}});var T=V({prefixCls:n,onStartMove:i,onOffsetChange:o,render:s,onFocus:_,onMouseEnter:M},f);return h.createElement(h.Fragment,null,a.map(function(P,F){var D=c===F;return h.createElement(mb,nt({ref:function(j){j?p.current[F]=j:delete p.current[F]},dragging:D,draggingDelete:D&&u,style:Na(r,F),key:F,value:P,valueIndex:F},T))}),l&&b&&h.createElement(mb,nt({key:"a11y"},T,{value:a[S],valueIndex:null,dragging:c!==-1,draggingDelete:u,render:l,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))}),IN=function(t){var n=t.prefixCls,r=t.style,i=t.children,o=t.value,a=t.onClick,s=h.useContext(ta),l=s.min,c=s.max,u=s.direction,d=s.includedStart,f=s.includedEnd,p=s.included,v="".concat(n,"-text"),y=rv(u,o,l,c);return h.createElement("span",{className:ve(v,L({},"".concat(v,"-active"),p&&d<=o&&o<=f)),style:V(V({},y),r),onMouseDown:function(m){m.stopPropagation()},onClick:function(){a(o)}},i)},FN=function(t){var n=t.prefixCls,r=t.marks,i=t.onClick,o="".concat(n,"-mark");return r.length?h.createElement("div",{className:o},r.map(function(a){var s=a.value,l=a.style,c=a.label;return h.createElement(IN,{key:s,prefixCls:o,style:l,value:s,onClick:i},c)})):null},NN=function(t){var n=t.prefixCls,r=t.value,i=t.style,o=t.activeStyle,a=h.useContext(ta),s=a.min,l=a.max,c=a.direction,u=a.included,d=a.includedStart,f=a.includedEnd,p="".concat(n,"-dot"),v=u&&d<=r&&r<=f,y=V(V({},rv(c,r,s,l)),typeof i=="function"?i(r):i);return v&&(y=V(V({},y),typeof o=="function"?o(r):o)),h.createElement("span",{className:ve(p,L({},"".concat(p,"-active"),v)),style:y})},AN=function(t){var n=t.prefixCls,r=t.marks,i=t.dots,o=t.style,a=t.activeStyle,s=h.useContext(ta),l=s.min,c=s.max,u=s.step,d=h.useMemo(function(){var f=new Set;if(r.forEach(function(v){f.add(v.value)}),i&&u!==null)for(var p=l;p<=c;)f.add(p),p+=u;return Array.from(f)},[l,c,u,i,r]);return h.createElement("div",{className:"".concat(n,"-step")},d.map(function(f){return h.createElement(NN,{prefixCls:n,key:f,value:f,style:o,activeStyle:a})}))},vb=function(t){var n=t.prefixCls,r=t.style,i=t.start,o=t.end,a=t.index,s=t.onStartMove,l=t.replaceCls,c=h.useContext(ta),u=c.direction,d=c.min,f=c.max,p=c.disabled,v=c.range,y=c.classNames,b="".concat(n,"-track"),m=cp(i,d,f),g=cp(o,d,f),x=function(_){!p&&s&&s(_,-1)},S={};switch(u){case"rtl":S.right="".concat(m*100,"%"),S.width="".concat(g*100-m*100,"%");break;case"btt":S.bottom="".concat(m*100,"%"),S.height="".concat(g*100-m*100,"%");break;case"ttb":S.top="".concat(m*100,"%"),S.height="".concat(g*100-m*100,"%");break;default:S.left="".concat(m*100,"%"),S.width="".concat(g*100-m*100,"%")}var w=l||ve(b,L(L({},"".concat(b,"-").concat(a+1),a!==null&&v),"".concat(n,"-track-draggable"),s),y.track);return h.createElement("div",{className:w,style:V(V({},S),r),onMouseDown:x,onTouchStart:x})},LN=function(t){var n=t.prefixCls,r=t.style,i=t.values,o=t.startPoint,a=t.onStartMove,s=h.useContext(ta),l=s.included,c=s.range,u=s.min,d=s.styles,f=s.classNames,p=h.useMemo(function(){if(!c){if(i.length===0)return[];var y=o??u,b=i[0];return[{start:Math.min(y,b),end:Math.max(y,b)}]}for(var m=[],g=0;gDN&&u3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof y=="number"){var g,x=v[b],S=x+y,w=[];r.forEach(function(P){w.push(P.value)}),w.push(e,t),w.push(s(x));var C=y>0?1:-1;m==="unit"?w.push(s(x+C*n)):w.push(s(S)),w=w.filter(function(P){return P!==null}).filter(function(P){return y<0?P<=x:P>=x}),m==="unit"&&(w=w.filter(function(P){return P!==x}));var _=m==="unit"?x:S;g=w[0];var M=Math.abs(g-_);if(w.forEach(function(P){var F=Math.abs(P-_);F1){var T=le(v);return T[b]=g,p(T,y-C,b,m)}return g}else{if(y==="min")return e;if(y==="max")return t}},u=function(v,y,b){var m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",g=v[b],x=c(v,y,b,m);return{value:x,changed:x!==g}},d=function(v){return o===null&&v===0||typeof o=="number"&&v3&&arguments[3]!==void 0?arguments[3]:"unit",g=v.map(l),x=g[b],S=c(g,y,b,m);if(g[b]=S,i===!1){var w=o||0;b>0&&g[b-1]!==x&&(g[b]=Math.max(g[b],g[b-1]+w)),b0;T-=1)for(var P=!0;d(g[T]-g[T-1])&&P;){var F=u(g,-1,T-1);g[T-1]=F.value,P=F.changed}for(var D=g.length-1;D>0;D-=1)for(var z=!0;d(g[D]-g[D-1])&&z;){var j=u(g,-1,D-1);g[D-1]=j.value,z=j.changed}for(var W=0;W=0?N:!1},[N,ct]),tt=h.useMemo(function(){return Object.keys(q||{}).map(function(_e){var Ce=q[_e],Je={value:Number(_e)};return Ce&&Re(Ce)==="object"&&!h.isValidElement(Ce)&&("label"in Ce||"style"in Ce)?(Je.style=Ce.style,Je.label=Ce.label):Je.label=Ce,Je}).filter(function(_e){var Ce=_e.label;return Ce||typeof Ce=="number"}).sort(function(_e,Ce){return _e.value-Ce.value})},[q]),ft=jN(je,Ge,ct,tt,j,Qe),Wt=te(ft,2),wt=Wt[0],ur=Wt[1],hn=tC(C,{value:w}),kt=te(hn,2),ht=kt[0],kr=kt[1],gt=h.useMemo(function(){var _e=ht==null?[]:Array.isArray(ht)?ht:[ht],Ce=te(_e,1),Je=Ce[0],Xe=Je===void 0?je:Je,Ke=ht===null?[]:[Xe];if(Ie){if(Ke=le(_e),M||ht===void 0){var Zt=M>=0?M+1:2;for(Ke=Ke.slice(0,Zt);Ke.length=0&&he.current.focus(_e)}dr(null)},[Qt]);var Hn=h.useMemo(function(){return Be&&ct===null?!1:Be},[Be,ct]),kn=vn(function(_e,Ce){gn(_e,Ce),P==null||P(nn(gt))}),Zn=dt!==-1;h.useEffect(function(){if(!Zn){var _e=gt.lastIndexOf(qe);he.current.focus(_e)}},[Zn]);var rn=h.useMemo(function(){return le(Ut).sort(function(_e,Ce){return _e-Ce})},[Ut]),In=h.useMemo(function(){return Ie?[rn[0],rn[rn.length-1]]:[je,rn[0]]},[rn,Ie,je]),ot=te(In,2),Fn=ot[0],Sn=ot[1];h.useImperativeHandle(t,function(){return{focus:function(){he.current.focus(0)},blur:function(){var Ce,Je=document,Xe=Je.activeElement;(Ce=we.current)!==null&&Ce!==void 0&&Ce.contains(Xe)&&(Xe==null||Xe.blur())}}}),h.useEffect(function(){f&&he.current.focus(0)},[]);var Ir=h.useMemo(function(){return{min:je,max:Ge,direction:Ae,disabled:c,keyboard:d,step:ct,included:A,includedStart:Fn,includedEnd:Sn,range:Ie,tabIndex:xe,ariaLabelForHandle:me,ariaLabelledByForHandle:fe,ariaValueTextFormatterForHandle:be,styles:s||{},classNames:a||{}}},[je,Ge,Ae,c,d,ct,A,Fn,Sn,Ie,xe,me,fe,be,s,a]);return h.createElement(ta.Provider,{value:Ir},h.createElement("div",{ref:we,className:ve(r,i,L(L(L(L({},"".concat(r,"-disabled"),c),"".concat(r,"-vertical"),$),"".concat(r,"-horizontal"),!$),"".concat(r,"-with-marks"),tt.length)),style:o,onMouseDown:Ze},h.createElement("div",{className:ve("".concat(r,"-rail"),a==null?void 0:a.rail),style:V(V({},U),s==null?void 0:s.rail)}),pe!==!1&&h.createElement(LN,{prefixCls:r,style:G,values:gt,startPoint:H,onStartMove:Hn?kn:void 0}),h.createElement(AN,{prefixCls:r,marks:tt,dots:K,style:X,activeStyle:ee}),h.createElement(kN,{ref:he,prefixCls:r,style:Y,values:Ut,draggingIndex:dt,draggingDelete:ke,onStartMove:kn,onOffsetChange:Kr,onFocus:p,onBlur:v,handleRender:Z,activeHandleRender:ne,onChangeComplete:se,onDelete:oe?Oe:void 0}),h.createElement(FN,{prefixCls:r,marks:tt,onClick:it})))});const bb=h.forwardRef((e,t)=>{const{open:n,draggingDelete:r}=e,i=h.useRef(null),o=n&&!r,a=h.useRef(null);function s(){fn.cancel(a.current),a.current=null}function l(){a.current=fn(()=>{var c;(c=i.current)===null||c===void 0||c.forceAlign(),a.current=null})}return h.useEffect(()=>(o?l():s(),s),[o,e.title]),h.createElement(Hi,Object.assign({ref:ho(i,t)},e,{open:o}))}),VN=e=>{const{componentCls:t,antCls:n,controlSize:r,dotSize:i,marginFull:o,marginPart:a,colorFillContentHover:s,handleColorDisabled:l,calc:c,handleSize:u,handleSizeHover:d,handleActiveColor:f,handleActiveOutlineColor:p,handleLineWidth:v,handleLineWidthHover:y,motionDurationMid:b}=e;return{[t]:Object.assign(Object.assign({},Ci(e)),{position:"relative",height:r,margin:`${ae(a)} ${ae(o)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${ae(o)} ${ae(a)}`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${b}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${b}`},[`${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 ${ae(v)} ${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(v).mul(-1).equal(),insetBlockStart:c(v).mul(-1).equal(),width:c(u).add(c(v).mul(2)).equal(),height:c(u).add(c(v).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:u,height:u,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${ae(v)} ${e.handleColor}`,outline:"0px solid transparent",borderRadius:"50%",cursor:"pointer",transition:` + inset-inline-start ${b}, + inset-block-start ${b}, + width ${b}, + height ${b}, + box-shadow ${b}, + outline ${b} + `},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:c(d).sub(u).div(2).add(y).mul(-1).equal(),insetBlockStart:c(d).sub(u).div(2).add(y).mul(-1).equal(),width:c(d).add(c(y).mul(2)).equal(),height:c(d).add(c(y).mul(2)).equal()},"&::after":{boxShadow:`0 0 0 ${ae(y)} ${f}`,outline:`6px solid ${p}`,width:d,height:d,insetInlineStart:e.calc(u).sub(d).div(2).equal(),insetBlockStart:e.calc(u).sub(d).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:i,height:i,backgroundColor:e.colorBgElevated,border:`${ae(v)} 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 ${ae(v)} ${l}`,insetInlineStart:0,insetBlockStart:0},[` + ${t}-mark-text, + ${t}-dot + `]:{cursor:"not-allowed !important"}},[`&-tooltip ${n}-tooltip-inner`]:{minWidth:"unset"}})}},CE=(e,t)=>{const{componentCls:n,railSize:r,handleSize:i,dotSize:o,marginFull:a,calc:s}=e,l=t?"paddingBlock":"paddingInline",c=t?"width":"height",u=t?"height":"width",d=t?"insetBlockStart":"insetInlineStart",f=t?"top":"insetInlineStart",p=s(r).mul(3).sub(i).div(2).equal(),v=s(i).sub(r).div(2).equal(),y=t?{borderWidth:`${ae(v)} 0`,transform:`translateY(${ae(s(v).mul(-1).equal())})`}:{borderWidth:`0 ${ae(v)}`,transform:`translateX(${ae(e.calc(v).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({},y),[`${n}-handle`]:{[d]:p},[`${n}-mark`]:{insetInlineStart:0,top:0,[f]:s(r).mul(3).add(t?0:a).equal(),[c]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[f]:r,[c]:"100%",[u]:r},[`${n}-dot`]:{position:"absolute",[d]:s(r).sub(o).div(2).equal()}}},WN=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},CE(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},UN=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},CE(e,!1)),{height:"100%"})}},GN=e=>{const n=e.controlHeightLG/4,r=e.controlHeightSM/2,i=e.lineWidth+1,o=e.lineWidth+1*1.5,a=e.colorPrimary,s=new cn(a).setAlpha(.2).toRgbString();return{controlSize:n,railSize:4,handleSize:n,handleSizeHover:r,dotSize:8,handleLineWidth:i,handleLineWidthHover:o,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:a,handleActiveOutlineColor:s,handleColorDisabled:new cn(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexShortString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}},qN=ui("Slider",e=>{const t=jn(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[VN(t),WN(t),UN(t)]},GN),XN=h.createContext({});function ch(){const[e,t]=h.useState(!1),n=h.useRef(),r=()=>{fn.cancel(n.current)},i=o=>{r(),o?t(o):n.current=fn(()=>{t(o)})};return h.useEffect(()=>r,[]),[e,i]}var KN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);itypeof n=="number"?n.toString():""}const QN=de.forwardRef((e,t)=>{const{prefixCls:n,range:r,className:i,rootClassName:o,style:a,disabled:s,tooltipPrefixCls:l,tipFormatter:c,tooltipVisible:u,getTooltipPopupContainer:d,tooltipPlacement:f,tooltip:p={},onChangeComplete:v}=e,y=KN(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement","tooltip","onChangeComplete"]),{vertical:b}=e,{direction:m,slider:g,getPrefixCls:x,getPopupContainer:S}=de.useContext(Rt),w=de.useContext(qo),C=s??w,{handleRender:_,direction:M}=de.useContext(XN),P=(M||m)==="rtl",[F,D]=ch(),[z,j]=ch(),W=Object.assign({},p),{open:N,placement:R,getPopupContainer:$,prefixCls:I,formatter:A}=W,H=N??u,G=(F||z)&&H!==!1,Y=YN(A,c),[U,X]=ch(),ee=he=>{v==null||v(he),X(!1)},q=(he,we)=>he||(we?P?"left":"right":"top"),K=x("slider",n),[Z,ne,pe]=qN(K),ye=ve(i,g==null?void 0:g.className,o,{[`${K}-rtl`]:P,[`${K}-lock`]:U},ne,pe);P&&!y.vertical&&(y.reverse=!y.reverse),de.useEffect(()=>{const he=()=>{fn(()=>{j(!1)},1)};return document.addEventListener("mouseup",he),()=>{document.removeEventListener("mouseup",he)}},[]);const xe=r&&!H,me=_||((he,we)=>{const{index:Ae}=we,Ee=he.props;function ie(Pe,Fe,je){var Ge,ct,Qe,tt;je&&((ct=(Ge=y)[Pe])===null||ct===void 0||ct.call(Ge,Fe)),(tt=(Qe=Ee)[Pe])===null||tt===void 0||tt.call(Qe,Fe)}const Ie=Object.assign(Object.assign({},Ee),{onMouseEnter:Pe=>{D(!0),ie("onMouseEnter",Pe)},onMouseLeave:Pe=>{D(!1),ie("onMouseLeave",Pe)},onMouseDown:Pe=>{j(!0),X(!0),ie("onMouseDown",Pe)},onFocus:Pe=>{var Fe;j(!0),(Fe=y.onFocus)===null||Fe===void 0||Fe.call(y,Pe),ie("onFocus",Pe,!0)},onBlur:Pe=>{var Fe;j(!1),(Fe=y.onBlur)===null||Fe===void 0||Fe.call(y,Pe),ie("onBlur",Pe,!0)}}),oe=de.cloneElement(he,Ie),Be=(!!H||G)&&Y!==null;return xe?oe:de.createElement(bb,Object.assign({},W,{prefixCls:x("tooltip",I??l),title:Y?Y(we.value):"",open:Be,placement:q(R??f,b),key:Ae,overlayClassName:`${K}-tooltip`,getPopupContainer:$||d||S}),oe)}),fe=xe?(he,we)=>{const Ae=de.cloneElement(he,{style:Object.assign(Object.assign({},he.props.style),{visibility:"hidden"})});return de.createElement(bb,Object.assign({},W,{prefixCls:x("tooltip",I??l),title:Y?Y(we.value):"",open:Y!==null&&G,placement:q(R??f,b),key:"tooltip",overlayClassName:`${K}-tooltip`,getPopupContainer:$||d||S,draggingDelete:we.draggingDelete}),Ae)}:void 0,be=Object.assign(Object.assign({},g==null?void 0:g.style),a);return Z(de.createElement(BN,Object.assign({},y,{step:y.step,range:r,className:ye,style:be,disabled:C,ref:t,prefixCls:K,handleRender:me,activeHandleRender:fe,onChangeComplete:ee})))});function ud(e){const[t,n]=h.useState(e);return h.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}const ZN=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationSlow} ${e.motionEaseInOut}, + opacity ${e.motionDurationSlow} ${e.motionEaseInOut}, + transform ${e.motionDurationSlow} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},JN=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${ae(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${ae(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),xb=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},eA=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},Ci(e)),JN(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},xb(e,e.controlHeightSM)),"&-large":Object.assign({},xb(e,e.controlHeightLG))})}},tA=e=>{const{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:i,antCls:o,labelRequiredMarkColor:a,labelColor:s,labelFontSize:l,labelHeight:c,labelColonMarginInlineStart:u,labelColonMarginInlineEnd:d,itemMarginBottom:f}=e;return{[t]:Object.assign(Object.assign({},Ci(e)),{marginBottom:f,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, + &-hidden${o}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height: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:d},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${i}-col-'"]):not([class*="' ${i}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-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:Hm,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},Sb=(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"}}}}},nA=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"}}}}},Br=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),EE=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:Br(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},rA=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`]:Br(e)}},[`@media (max-width: ${ae(e.screenXSMax)})`]:[EE(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:Br(e)}}}],[`@media (max-width: ${ae(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:Br(e)}}},[`@media (max-width: ${ae(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:Br(e)}}},[`@media (max-width: ${ae(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:Br(e)}}}}},iA=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`]:Br(e),[`@media (max-width: ${ae(e.screenXSMax)})`]:[EE(e),{[t]:{[`${n}-col-xs-24${t}-label`]:Br(e)}}],[`@media (max-width: ${ae(e.screenSMMax)})`]:{[t]:{[`${n}-col-sm-24${t}-label`]:Br(e)}},[`@media (max-width: ${ae(e.screenMDMax)})`]:{[t]:{[`${n}-col-md-24${t}-label`]:Br(e)}},[`@media (max-width: ${ae(e.screenLGMax)})`]:{[t]:{[`${n}-col-lg-24${t}-label`]:Br(e)}}}},oA=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}),_E=(e,t)=>jn(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),iv=ui("Form",(e,t)=>{let{rootPrefixCls:n}=t;const r=_E(e,n);return[eA(r),tA(r),ZN(r),Sb(r,r.componentCls),Sb(r,r.formItemCls),nA(r),rA(r),iA(r),QR(r),Hm]},oA,{order:-1e3}),wb=[];function uh(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 OE=e=>{let{help:t,helpStatus:n,errors:r=wb,warnings:i=wb,className:o,fieldId:a,onVisibleChanged:s}=e;const{prefixCls:l}=h.useContext(Jm),c=`${l}-item-explain`,u=ef(l),[d,f,p]=iv(l,u),v=h.useMemo(()=>_y(l),[l]),y=ud(r),b=ud(i),m=h.useMemo(()=>t!=null?[uh(t,"help",n)]:[].concat(le(y.map((x,S)=>uh(x,"error","error",S))),le(b.map((x,S)=>uh(x,"warning","warning",S)))),[t,n,y,b]),g={};return a&&(g.id=`${a}_help`),d(h.createElement(ds,{motionDeadline:v.motionDeadline,motionName:`${l}-show-help`,visible:!!m.length,onVisibleChanged:s},x=>{const{className:S,style:w}=x;return h.createElement("div",Object.assign({},g,{className:ve(c,S,p,u,o,f),style:w,role:"alert"}),h.createElement(I$,Object.assign({keys:m},_y(l),{motionName:`${l}-show-help-item`,component:!1}),C=>{const{key:_,error:M,errorStatus:T,className:P,style:F}=C;return h.createElement("div",{key:_,className:ve(P,{[`${c}-${T}`]:T}),style:F},M)}))}))},aA=["parentNode"],sA="form_item";function al(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function ME(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:aA.includes(n)?`${sA}_${n}`:n}function TE(e,t,n,r,i,o){let a=r;return o!==void 0?a=o:n.validating?a="validating":e.length?a="error":t.length?a="warning":(n.touched||i&&n.validated)&&(a="success"),a}function Cb(e){return al(e).join("_")}function lA(e,t){const n=t.getFieldInstance(e),r=dw(n);if(r)return r;const i=ME(al(e),t.__INTERNAL__.name);if(i)return document.getElementById(i)}function PE(e){const[t]=Zm(),n=h.useRef({}),r=h.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:i=>o=>{const a=Cb(i);o?n.current[a]=o:delete n.current[a]}},scrollToField:function(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const a=lA(i,r);a&&uR(a,Object.assign({scrollMode:"if-needed",block:"nearest"},o))},getFieldInstance:i=>{const o=Cb(i);return n.current[o]}}),[e,t]);return[r]}var cA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{const n=h.useContext(qo),{getPrefixCls:r,direction:i,form:o}=h.useContext(Rt),{prefixCls:a,className:s,rootClassName:l,size:c,disabled:u=n,form:d,colon:f,labelAlign:p,labelWrap:v,labelCol:y,wrapperCol:b,hideRequiredMark:m,layout:g="horizontal",scrollToFirstError:x,requiredMark:S,onFinishFailed:w,name:C,style:_,feedbackIcons:M,variant:T}=e,P=cA(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),F=jm(c),D=h.useContext(Vw),z=h.useMemo(()=>S!==void 0?S:m?!1:o&&o.requiredMark!==void 0?o.requiredMark:!0,[m,S,o]),j=f??(o==null?void 0:o.colon),W=r("form",a),N=ef(W),[R,$,I]=iv(W,N),A=ve(W,`${W}-${g}`,{[`${W}-hide-required-mark`]:z===!1,[`${W}-rtl`]:i==="rtl",[`${W}-${F}`]:F},I,N,$,o==null?void 0:o.className,s,l),[H]=PE(d),{__INTERNAL__:G}=H;G.name=C;const Y=h.useMemo(()=>({name:C,labelAlign:p,labelCol:y,labelWrap:v,wrapperCol:b,vertical:g==="vertical",colon:j,requiredMark:z,itemRef:G.itemRef,form:H,feedbackIcons:M}),[C,p,y,b,g,j,z,H,M]),U=h.useRef(null);h.useImperativeHandle(t,()=>{var q;return Object.assign(Object.assign({},H),{nativeElement:(q=U.current)===null||q===void 0?void 0:q.nativeElement})});const X=(q,K)=>{if(q){let Z={block:"nearest"};typeof q=="object"&&(Z=q),H.scrollToField(K,Z)}},ee=q=>{if(w==null||w(q),q.errorFields.length){const K=q.errorFields[0].name;if(x!==void 0){X(x,K);return}o&&o.scrollToFirstError!==void 0&&X(o.scrollToFirstError,K)}};return R(h.createElement(qC.Provider,{value:T},h.createElement(Zw,{disabled:u},h.createElement(Xo.Provider,{value:F},h.createElement(GC,{validateMessages:D},h.createElement(Ti.Provider,{value:Y},h.createElement(gs,Object.assign({id:C},P,{name:C,onFinishFailed:ee,form:H,ref:U,style:Object.assign(Object.assign({},o==null?void 0:o.style),_),className:A}))))))))},dA=h.forwardRef(uA);function fA(e){if(typeof e=="function")return e;const t=Qa(e);return t.length<=1?t[0]:t}const $E=()=>{const{status:e,errors:t=[],warnings:n=[]}=h.useContext(Yo);return{status:e,errors:t,warnings:n}};$E.Context=Yo;function hA(e){const[t,n]=h.useState(e),r=h.useRef(null),i=h.useRef([]),o=h.useRef(!1);h.useEffect(()=>(o.current=!1,()=>{o.current=!0,fn.cancel(r.current),r.current=null}),[]);function a(s){o.current||(r.current===null&&(i.current=[],r.current=fn(()=>{r.current=null,n(l=>{let c=l;return i.current.forEach(u=>{c=u(c)}),c})})),i.current.push(s))}return[t,a]}function gA(){const{itemRef:e}=h.useContext(Ti),t=h.useRef({});function n(r,i){const o=i&&typeof i=="object"&&i.ref,a=r.join("_");return(t.current.name!==a||t.current.originRef!==o)&&(t.current.name=a,t.current.originRef=o,t.current.ref=ho(e(r),o)),t.current.ref}return n}const pA=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},mA=lC(["Form","item-item"],(e,t)=>{let{rootPrefixCls:n}=t;const r=_E(e,n);return[pA(r)]}),vA=e=>{const{prefixCls:t,status:n,wrapperCol:r,children:i,errors:o,warnings:a,_internalItemRender:s,extra:l,help:c,fieldId:u,marginBottom:d,onErrorVisibleChanged:f}=e,p=`${t}-item`,v=h.useContext(Ti),y=r||v.wrapperCol||{},b=ve(`${p}-control`,y.className),m=h.useMemo(()=>Object.assign({},v),[v]);delete m.labelCol,delete m.wrapperCol;const g=h.createElement("div",{className:`${p}-control-input`},h.createElement("div",{className:`${p}-control-input-content`},i)),x=h.useMemo(()=>({prefixCls:t,status:n}),[t,n]),S=d!==null||o.length||a.length?h.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},h.createElement(Jm.Provider,{value:x},h.createElement(OE,{fieldId:u,errors:o,warnings:a,help:c,helpStatus:n,className:`${p}-explain-connected`,onVisibleChanged:f})),!!d&&h.createElement("div",{style:{width:0,height:d}})):null,w={};u&&(w.id=`${u}_extra`);const C=l?h.createElement("div",Object.assign({},w,{className:`${p}-extra`}),l):null,_=s&&s.mark==="pro_table_render"&&s.render?s.render(e,{input:g,errorList:S,extra:C}):h.createElement(h.Fragment,null,g,S,C);return h.createElement(Ti.Provider,{value:m},h.createElement(cd,Object.assign({},y,{className:b}),_),h.createElement(mA,{prefixCls:t}))};var yA={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"},bA=function(t,n){return h.createElement(Rn,nt({},t,{ref:n,icon:yA}))},ba=h.forwardRef(bA),xA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{let{prefixCls:t,label:n,htmlFor:r,labelCol:i,labelAlign:o,colon:a,required:s,requiredMark:l,tooltip:c,vertical:u}=e;var d;const[f]=rP("Form"),{labelAlign:p,labelCol:v,labelWrap:y,colon:b}=h.useContext(Ti);if(!n)return null;const m=i||v||{},g=o||p,x=`${t}-item-label`,S=ve(x,g==="left"&&`${x}-left`,m.className,{[`${x}-wrap`]:!!y});let w=n;const C=a===!0||b!==!1&&a!==!1;C&&!u&&typeof n=="string"&&n.trim()&&(w=n.replace(/[:|:]\s*$/,""));const M=SA(c);if(M){const{icon:D=h.createElement(ba,null)}=M,z=xA(M,["icon"]),j=h.createElement(Hi,Object.assign({},z),h.cloneElement(D,{className:`${t}-item-tooltip`,title:"",onClick:W=>{W.preventDefault()},tabIndex:null}));w=h.createElement(h.Fragment,null,w,j)}const T=l==="optional",P=typeof l=="function";P?w=l(w,{required:!!s}):T&&!s&&(w=h.createElement(h.Fragment,null,w,h.createElement("span",{className:`${t}-item-optional`,title:""},(f==null?void 0:f.optional)||((d=Go.Form)===null||d===void 0?void 0:d.optional))));const F=ve({[`${t}-item-required`]:s,[`${t}-item-required-mark-optional`]:T||P,[`${t}-item-no-colon`]:!C});return h.createElement(cd,Object.assign({},m,{className:S}),h.createElement("label",{htmlFor:r,className:F,title:typeof n=="string"?n:""},w))},CA={success:eR,warning:aR,error:rR,validating:_C};function RE(e){let{children:t,errors:n,warnings:r,hasFeedback:i,validateStatus:o,prefixCls:a,meta:s,noStyle:l}=e;const c=`${a}-item`,{feedbackIcons:u}=h.useContext(Ti),d=TE(n,r,s,null,!!i,o),{isFormItemInput:f,status:p,hasFeedback:v,feedbackIcon:y}=h.useContext(Yo),b=h.useMemo(()=>{var m;let g;if(i){const S=i!==!0&&i.icons||u,w=d&&((m=S==null?void 0:S({status:d,errors:n,warnings:r}))===null||m===void 0?void 0:m[d]),C=d&&CA[d];g=w!==!1&&C?h.createElement("span",{className:ve(`${c}-feedback-icon`,`${c}-feedback-icon-${d}`)},w||h.createElement(C,null)):null}const x={status:d||"",errors:n,warnings:r,hasFeedback:!!i,feedbackIcon:g,isFormItemInput:!0};return l&&(x.status=(d??p)||"",x.isFormItemInput=f,x.hasFeedback=!!(i??v),x.feedbackIcon=i!==void 0?x.feedbackIcon:y),x},[d,i,l,f,p]);return h.createElement(Yo.Provider,{value:b},t)}var EA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i{if(F&&_.current){const I=getComputedStyle(_.current);j(parseInt(I.marginBottom,10))}},[F,D]);const W=I=>{I||j(null)},R=function(){let I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const A=I?M:c.errors,H=I?T:c.warnings;return TE(A,H,c,"",!!u,l)}(),$=ve(x,n,r,{[`${x}-with-help`]:P||M.length||T.length,[`${x}-has-feedback`]:R&&u,[`${x}-has-success`]:R==="success",[`${x}-has-warning`]:R==="warning",[`${x}-has-error`]:R==="error",[`${x}-is-validating`]:R==="validating",[`${x}-hidden`]:d,[`${x}-${m}`]:m});return h.createElement("div",{className:$,style:i,ref:_},h.createElement(xE,Object.assign({className:`${x}-row`},oc(g,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),h.createElement(wA,Object.assign({htmlFor:p},e,{requiredMark:S,required:v??y,prefixCls:t,vertical:C})),h.createElement(vA,Object.assign({},e,c,{errors:M,warnings:T,prefixCls:t,status:R,help:o,marginBottom:z,onErrorVisibleChanged:W}),h.createElement(UC.Provider,{value:b},h.createElement(RE,{prefixCls:t,meta:c,errors:c.errors,warnings:c.warnings,hasFeedback:u,validateStatus:R},f)))),!!z&&h.createElement("div",{className:`${x}-margin-offset`,style:{marginBottom:-z}}))}const OA="__SPLIT__";function MA(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(i=>{const o=e[i],a=t[i];return o===a||typeof o=="function"||typeof a=="function"})}const TA=h.memo(e=>{let{children:t}=e;return t},(e,t)=>MA(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function Eb(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function PA(e){const{name:t,noStyle:n,className:r,dependencies:i,prefixCls:o,shouldUpdate:a,rules:s,children:l,required:c,label:u,messageVariables:d,trigger:f="onChange",validateTrigger:p,hidden:v,help:y,layout:b}=e,{getPrefixCls:m}=h.useContext(Rt),{name:g}=h.useContext(Ti),x=fA(l),S=typeof x=="function",w=h.useContext(UC),{validateTrigger:C}=h.useContext(Ko),_=p!==void 0?p:C,M=t!=null,T=m("form",o),P=ef(T),[F,D,z]=iv(T,P);Am();const j=h.useContext(Vl),W=h.useRef(),[N,R]=hA({}),[$,I]=ns(()=>Eb()),A=q=>{const K=j==null?void 0:j.getKey(q.name);if(I(q.destroy?Eb():q,!0),n&&y!==!1&&w){let Z=q.name;if(q.destroy)Z=W.current||Z;else if(K!==void 0){const[ne,pe]=K;Z=[ne].concat(le(pe)),W.current=Z}w(q,Z)}},H=(q,K)=>{R(Z=>{const ne=Object.assign({},Z),ye=[].concat(le(q.name.slice(0,-1)),le(K)).join(OA);return q.destroy?delete ne[ye]:ne[ye]=q,ne})},[G,Y]=h.useMemo(()=>{const q=le($.errors),K=le($.warnings);return Object.values(N).forEach(Z=>{q.push.apply(q,le(Z.errors||[])),K.push.apply(K,le(Z.warnings||[]))}),[q,K]},[N,$.errors,$.warnings]),U=gA();function X(q,K,Z){return n&&!v?h.createElement(RE,{prefixCls:T,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:$,errors:G,warnings:Y,noStyle:!0},q):h.createElement(_A,Object.assign({key:"row"},e,{className:ve(r,z,P,D),prefixCls:T,fieldId:K,isRequired:Z,errors:G,warnings:Y,meta:$,onSubItemMetaChange:H,layout:b}),q)}if(!M&&!S&&!i)return F(X(x));let ee={};return typeof u=="string"?ee.label=u:t&&(ee.label=String(t)),d&&(ee=Object.assign(Object.assign({},ee),d)),F(h.createElement(Qm,Object.assign({},e,{messageVariables:ee,trigger:f,validateTrigger:_,onMetaChange:A}),(q,K,Z)=>{const ne=al(t).length&&K?K.name:[],pe=ME(ne,g),ye=c!==void 0?c:!!(s!=null&&s.some(fe=>{if(fe&&typeof fe=="object"&&fe.required&&!fe.warningOnly)return!0;if(typeof fe=="function"){const be=fe(Z);return(be==null?void 0:be.required)&&!(be!=null&&be.warningOnly)}return!1})),xe=Object.assign({},q);let me=null;if(Array.isArray(x)&&M)me=x;else if(!(S&&(!(a||i)||M))){if(!(i&&!S&&!M))if(h.isValidElement(x)){const fe=Object.assign(Object.assign({},x.props),xe);if(fe.id||(fe.id=pe),y||G.length>0||Y.length>0||e.extra){const we=[];(y||G.length>0)&&we.push(`${pe}_help`),e.extra&&we.push(`${pe}_extra`),fe["aria-describedby"]=we.join(" ")}G.length>0&&(fe["aria-invalid"]="true"),ye&&(fe["aria-required"]="true"),cs(x)&&(fe.ref=U(ne,x)),new Set([].concat(le(al(f)),le(al(_)))).forEach(we=>{fe[we]=function(){for(var Ae,Ee,ie,Ie,oe,Be=arguments.length,Pe=new Array(Be),Fe=0;Fe{var{prefixCls:t,children:n}=e,r=$A(e,["prefixCls","children"]);const{getPrefixCls:i}=h.useContext(Rt),o=i("form",t),a=h.useMemo(()=>({prefixCls:o,status:"error"}),[o]);return h.createElement(HC,Object.assign({},r),(s,l,c)=>h.createElement(Jm.Provider,{value:a},n(s.map(u=>Object.assign(Object.assign({},u),{fieldKey:u.key})),l,{errors:c.errors,warnings:c.warnings})))};function kA(){const{form:e}=h.useContext(Ti);return e}const Un=dA;Un.Item=kE;Un.List=RA;Un.ErrorList=OE;Un.useForm=PE;Un.useFormInstance=kA;Un.useWatch=WC;Un.Provider=GC;Un.create=()=>{};function IA(e,t,n){return typeof n=="boolean"?n:e.length?!0:Qa(t).some(i=>i.type===oE)}var IE=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);ih.forwardRef((a,s)=>h.createElement(i,Object.assign({ref:s,suffixCls:t,tagName:n},a)))}const ov=h.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:i,tagName:o}=e,a=IE(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:s}=h.useContext(Rt),l=s("layout",n),[c,u,d]=rE(l),f=r?`${l}-${r}`:l;return c(h.createElement(o,Object.assign({className:ve(n||f,i,u,d),ref:t},a)))}),FA=h.forwardRef((e,t)=>{const{direction:n}=h.useContext(Rt),[r,i]=h.useState([]),{prefixCls:o,className:a,rootClassName:s,children:l,hasSider:c,tagName:u,style:d}=e,f=IE(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),p=oc(f,["suffixCls"]),{getPrefixCls:v,layout:y}=h.useContext(Rt),b=v("layout",o),m=IA(r,l,c),[g,x,S]=rE(b),w=ve(b,{[`${b}-has-sider`]:m,[`${b}-rtl`]:n==="rtl"},y==null?void 0:y.className,a,s,x,S),C=h.useMemo(()=>({siderHook:{addSider:_=>{i(M=>[].concat(le(M),[_]))},removeSider:_=>{i(M=>M.filter(T=>T!==_))}}}),[]);return g(h.createElement(eE.Provider,{value:C},h.createElement(u,Object.assign({ref:t,className:w,style:Object.assign(Object.assign({},y==null?void 0:y.style),d)},p),l)))}),NA=sf({tagName:"div",displayName:"Layout"})(FA),AA=sf({suffixCls:"header",tagName:"header",displayName:"Header"})(ov),LA=sf({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(ov),DA=sf({suffixCls:"content",tagName:"main",displayName:"Content"})(ov),Pi=NA;Pi.Header=AA;Pi.Footer=LA;Pi.Content=DA;Pi.Sider=oE;Pi._InternalSiderContext=iE;var zA={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M716.3 313.8c19-18.9 19-49.7 0-68.6l-69.9-69.9.1.1c-18.5-18.5-50.3-50.3-95.3-95.2-21.2-20.7-55.5-20.5-76.5.5L80.9 474.2a53.84 53.84 0 000 76.4L474.6 944a54.14 54.14 0 0076.5 0l165.1-165c19-18.9 19-49.7 0-68.6a48.7 48.7 0 00-68.7 0l-125 125.2c-5.2 5.2-13.3 5.2-18.5 0L189.5 521.4c-5.2-5.2-5.2-13.3 0-18.5l314.4-314.2c.4-.4.9-.7 1.3-1.1 5.2-4.1 12.4-3.7 17.2 1.1l125.2 125.1c19 19 49.8 19 68.7 0zM408.6 514.4a106.3 106.2 0 10212.6 0 106.3 106.2 0 10-212.6 0zm536.2-38.6L821.9 353.5c-19-18.9-49.8-18.9-68.7.1a48.4 48.4 0 000 68.6l83 82.9c5.2 5.2 5.2 13.3 0 18.5l-81.8 81.7a48.4 48.4 0 000 68.6 48.7 48.7 0 0068.7 0l121.8-121.7a53.93 53.93 0 00-.1-76.4z"}}]},name:"ant-design",theme:"outlined"},jA=function(t,n){return h.createElement(Rn,nt({},t,{ref:n,icon:zA}))},HA=h.forwardRef(jA),BA={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M511.6 76.3C264.3 76.2 64 276.4 64 523.5 64 718.9 189.3 885 363.8 946c23.5 5.9 19.9-10.8 19.9-22.2v-77.5c-135.7 15.9-141.2-73.9-150.3-88.9C215 726 171.5 718 184.5 703c30.9-15.9 62.4 4 98.9 57.9 26.4 39.1 77.9 32.5 104 26 5.7-23.5 17.9-44.5 34.7-60.8-140.6-25.2-199.2-111-199.2-213 0-49.5 16.3-95 48.3-131.7-20.4-60.5 1.9-112.3 4.9-120 58.1-5.2 118.5 41.6 123.2 45.3 33-8.9 70.7-13.6 112.9-13.6 42.4 0 80.2 4.9 113.5 13.9 11.3-8.6 67.3-48.8 121.3-43.9 2.9 7.7 24.7 58.3 5.5 118 32.4 36.8 48.9 82.7 48.9 132.3 0 102.2-59 188.1-200 212.9a127.5 127.5 0 0138.1 91v112.5c.8 9 0 17.9 15 17.9 177.1-59.7 304.6-227 304.6-424.1 0-247.2-200.4-447.3-447.5-447.3z"}}]},name:"github",theme:"outlined"},VA=function(t,n){return h.createElement(Rn,nt({},t,{ref:n,icon:BA}))},WA=h.forwardRef(VA),UA={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M416 176H255.54v425.62c0 105.3-36.16 134.71-99.1 134.71-29.5 0-56.05-5.05-76.72-12.14L63 848.79C92.48 858.91 137.73 865 173.13 865 317.63 865 416 797.16 416 602.66zm349.49-16C610.26 160 512 248.13 512 364.6c0 100.32 75.67 163.13 185.7 203.64 79.57 28.36 111.03 53.7 111.03 95.22 0 45.57-36.36 74.96-105.13 74.96-63.87 0-121.85-21.31-161.15-42.58v-.04L512 822.43C549.36 843.73 619.12 865 694.74 865 876.52 865 961 767.75 961 653.3c0-97.25-54.04-160.04-170.94-204.63-86.47-34.44-122.81-53.67-122.81-97.23 0-34.45 31.45-65.84 96.3-65.84 63.83 0 107.73 21.45 133.3 34.64l38.34-128.19C895.1 174.46 841.11 160 765.5 160"}}]},name:"java-script",theme:"outlined"},GA=function(t,n){return h.createElement(Rn,nt({},t,{ref:n,icon:UA}))},qA=h.forwardRef(GA);/*! + * @kurkle/color v0.3.2 + * https://github.com/kurkle/color#readme + * (c) 2023 Jukka Kurkela + * Released under the MIT License + */function cc(e){return e+.5|0}const Xi=(e,t,n)=>Math.max(Math.min(e,n),t);function Hs(e){return Xi(cc(e*2.55),0,255)}function ro(e){return Xi(cc(e*255),0,255)}function yi(e){return Xi(cc(e/2.55)/100,0,1)}function _b(e){return Xi(cc(e*100),0,100)}const yr={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},up=[..."0123456789ABCDEF"],XA=e=>up[e&15],KA=e=>up[(e&240)>>4]+up[e&15],Wc=e=>(e&240)>>4===(e&15),YA=e=>Wc(e.r)&&Wc(e.g)&&Wc(e.b)&&Wc(e.a);function QA(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&yr[e[1]]*17,g:255&yr[e[2]]*17,b:255&yr[e[3]]*17,a:t===5?yr[e[4]]*17:255}:(t===7||t===9)&&(n={r:yr[e[1]]<<4|yr[e[2]],g:yr[e[3]]<<4|yr[e[4]],b:yr[e[5]]<<4|yr[e[6]],a:t===9?yr[e[7]]<<4|yr[e[8]]:255})),n}const ZA=(e,t)=>e<255?t(e):"";function JA(e){var t=YA(e)?XA:KA;return e?"#"+t(e.r)+t(e.g)+t(e.b)+ZA(e.a,t):void 0}const e5=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function FE(e,t,n){const r=t*Math.min(n,1-n),i=(o,a=(o+e/30)%12)=>n-r*Math.max(Math.min(a-3,9-a,1),-1);return[i(0),i(8),i(4)]}function t5(e,t,n){const r=(i,o=(i+e/60)%6)=>n-n*t*Math.max(Math.min(o,4-o,1),0);return[r(5),r(3),r(1)]}function n5(e,t,n){const r=FE(e,1,.5);let i;for(t+n>1&&(i=1/(t+n),t*=i,n*=i),i=0;i<3;i++)r[i]*=1-t-n,r[i]+=t;return r}function r5(e,t,n,r,i){return e===i?(t-n)/r+(t.5?u/(2-o-a):u/(o+a),l=r5(n,r,i,u,o),l=l*60+.5),[l|0,c||0,s]}function sv(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(ro)}function lv(e,t,n){return sv(FE,e,t,n)}function i5(e,t,n){return sv(n5,e,t,n)}function o5(e,t,n){return sv(t5,e,t,n)}function NE(e){return(e%360+360)%360}function a5(e){const t=e5.exec(e);let n=255,r;if(!t)return;t[5]!==r&&(n=t[6]?Hs(+t[5]):ro(+t[5]));const i=NE(+t[2]),o=+t[3]/100,a=+t[4]/100;return t[1]==="hwb"?r=i5(i,o,a):t[1]==="hsv"?r=o5(i,o,a):r=lv(i,o,a),{r:r[0],g:r[1],b:r[2],a:n}}function s5(e,t){var n=av(e);n[0]=NE(n[0]+t),n=lv(n),e.r=n[0],e.g=n[1],e.b=n[2]}function l5(e){if(!e)return;const t=av(e),n=t[0],r=_b(t[1]),i=_b(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${i}%, ${yi(e.a)})`:`hsl(${n}, ${r}%, ${i}%)`}const Ob={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},Mb={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function c5(){const e={},t=Object.keys(Mb),n=Object.keys(Ob);let r,i,o,a,s;for(r=0;r>16&255,o>>8&255,o&255]}return e}let Uc;function u5(e){Uc||(Uc=c5(),Uc.transparent=[0,0,0,0]);const t=Uc[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const d5=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function f5(e){const t=d5.exec(e);let n=255,r,i,o;if(t){if(t[7]!==r){const a=+t[7];n=t[8]?Hs(a):Xi(a*255,0,255)}return r=+t[1],i=+t[3],o=+t[5],r=255&(t[2]?Hs(r):Xi(r,0,255)),i=255&(t[4]?Hs(i):Xi(i,0,255)),o=255&(t[6]?Hs(o):Xi(o,0,255)),{r,g:i,b:o,a:n}}}function h5(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${yi(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const dh=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,ma=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function g5(e,t,n){const r=ma(yi(e.r)),i=ma(yi(e.g)),o=ma(yi(e.b));return{r:ro(dh(r+n*(ma(yi(t.r))-r))),g:ro(dh(i+n*(ma(yi(t.g))-i))),b:ro(dh(o+n*(ma(yi(t.b))-o))),a:e.a+n*(t.a-e.a)}}function Gc(e,t,n){if(e){let r=av(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,t===0?360:1)),r=lv(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function AE(e,t){return e&&Object.assign(t||{},e)}function Tb(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=ro(e[3]))):(t=AE(e,{r:0,g:0,b:0,a:1}),t.a=ro(t.a)),t}function p5(e){return e.charAt(0)==="r"?f5(e):a5(e)}class Gl{constructor(t){if(t instanceof Gl)return t;const n=typeof t;let r;n==="object"?r=Tb(t):n==="string"&&(r=QA(t)||u5(t)||p5(t)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var t=AE(this._rgb);return t&&(t.a=yi(t.a)),t}set rgb(t){this._rgb=Tb(t)}rgbString(){return this._valid?h5(this._rgb):void 0}hexString(){return this._valid?JA(this._rgb):void 0}hslString(){return this._valid?l5(this._rgb):void 0}mix(t,n){if(t){const r=this.rgb,i=t.rgb;let o;const a=n===o?.5:n,s=2*a-1,l=r.a-i.a,c=((s*l===-1?s:(s+l)/(1+s*l))+1)/2;o=1-c,r.r=255&c*r.r+o*i.r+.5,r.g=255&c*r.g+o*i.g+.5,r.b=255&c*r.b+o*i.b+.5,r.a=a*r.a+(1-a)*i.a,this.rgb=r}return this}interpolate(t,n){return t&&(this._rgb=g5(this._rgb,t._rgb,n)),this}clone(){return new Gl(this.rgb)}alpha(t){return this._rgb.a=ro(t),this}clearer(t){const n=this._rgb;return n.a*=1-t,this}greyscale(){const t=this._rgb,n=cc(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=n,this}opaquer(t){const n=this._rgb;return n.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return Gc(this._rgb,2,t),this}darken(t){return Gc(this._rgb,2,-t),this}saturate(t){return Gc(this._rgb,1,t),this}desaturate(t){return Gc(this._rgb,1,-t),this}rotate(t){return s5(this._rgb,t),this}}/*! + * Chart.js v4.4.4 + * https://www.chartjs.org + * (c) 2024 Chart.js Contributors + * Released under the MIT License + */function hi(){}const m5=(()=>{let e=0;return()=>e++})();function At(e){return e===null||typeof e>"u"}function ln(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function rt(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function Tr(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function Jr(e,t){return Tr(e)?e:t}function Ve(e,t){return typeof e>"u"?t:e}const v5=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function Ne(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function We(e,t,n,r){let i,o,a;if(ln(e))for(o=e.length,i=0;ie,x:e=>e.x,y:e=>e.y};function x5(e){const t=e.split("."),n=[];let r="";for(const i of t)r+=i,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}function S5(e){const t=x5(e);return n=>{for(const r of t){if(r==="")break;n=n&&n[r]}return n}}function hd(e,t){return(Pb[t]||(Pb[t]=S5(t)))(e)}function cv(e){return e.charAt(0).toUpperCase()+e.slice(1)}const gd=e=>typeof e<"u",ao=e=>typeof e=="function",$b=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function w5(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const dn=Math.PI,ci=2*dn,C5=ci+dn,pd=Number.POSITIVE_INFINITY,E5=dn/180,Vr=dn/2,So=dn/4,Rb=dn*2/3,dp=Math.log10,so=Math.sign;function ll(e,t,n){return Math.abs(e-t)i-o).pop(),t}function Xl(e){return!isNaN(parseFloat(e))&&isFinite(e)}function O5(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function M5(e,t,n){let r,i,o;for(r=0,i=e.length;rl&&c=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function uv(e,t,n){n=n||(a=>e[a]1;)o=i+r>>1,n(o)?i=o:r=o;return{lo:i,hi:r}}const No=(e,t,n,r)=>uv(e,n,r?i=>{const o=e[i][t];return oe[i][t]uv(e,n,r=>e[r][t]>=n);function I5(e,t,n){let r=0,i=e.length;for(;rr&&e[i-1]>n;)i--;return r>0||i{const r="_onData"+cv(n),i=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...o){const a=i.apply(this,o);return e._chartjs.listeners.forEach(s=>{typeof s[r]=="function"&&s[r](...o)}),a}})})}function Fb(e,t){const n=e._chartjs;if(!n)return;const r=n.listeners,i=r.indexOf(t);i!==-1&&r.splice(i,1),!(r.length>0)&&(zE.forEach(o=>{delete e[o]}),delete e._chartjs)}function N5(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const jE=function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame}();function HE(e,t){let n=[],r=!1;return function(...i){n=i,r||(r=!0,jE.call(window,()=>{r=!1,e.apply(t,n)}))}}function A5(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}const dv=e=>e==="start"?"left":e==="end"?"right":"center",_n=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,L5=(e,t,n,r)=>e===(r?"left":"right")?n:e==="center"?(t+n)/2:t;function D5(e,t,n){const r=t.length;let i=0,o=r;if(e._sorted){const{iScale:a,_parsed:s}=e,l=a.axis,{min:c,max:u,minDefined:d,maxDefined:f}=a.getUserBounds();d&&(i=wr(Math.min(No(s,l,c).lo,n?r:No(t,l,a.getPixelForValue(c)).lo),0,r-1)),f?o=wr(Math.max(No(s,a.axis,u,!0).hi+1,n?0:No(t,l,a.getPixelForValue(u),!0).hi+1),i,r)-i:o=r-i}return{start:i,count:o}}function z5(e){const{xScale:t,yScale:n,_scaleRanges:r}=e,i={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!r)return e._scaleRanges=i,!0;const o=r.xmin!==t.min||r.xmax!==t.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,i),o}const qc=e=>e===0||e===1,Nb=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*ci/n)),Ab=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*ci/n)+1,cl={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*Vr)+1,easeOutSine:e=>Math.sin(e*Vr),easeInOutSine:e=>-.5*(Math.cos(dn*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>qc(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>qc(e)?e:Nb(e,.075,.3),easeOutElastic:e=>qc(e)?e:Ab(e,.075,.3),easeInOutElastic(e){return qc(e)?e:e<.5?.5*Nb(e*2,.1125,.45):.5+.5*Ab(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-cl.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?cl.easeInBounce(e*2)*.5:cl.easeOutBounce(e*2-1)*.5+.5};function fv(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function Lb(e){return fv(e)?e:new Gl(e)}function fh(e){return fv(e)?e:new Gl(e).saturate(.5).darken(.1).hexString()}const j5=["x","y","borderWidth","radius","tension"],H5=["color","borderColor","backgroundColor"];function B5(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:H5},numbers:{type:"number",properties:j5}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function V5(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const Db=new Map;function W5(e,t){t=t||{};const n=e+JSON.stringify(t);let r=Db.get(n);return r||(r=new Intl.NumberFormat(e,t),Db.set(n,r)),r}function BE(e,t,n){return W5(t,n).format(e)}const VE={values(e){return ln(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";const r=this.chart.options.locale;let i,o=e;if(n.length>1){const c=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(c<1e-4||c>1e15)&&(i="scientific"),o=U5(e,n)}const a=dp(Math.abs(o)),s=isNaN(a)?1:Math.max(Math.min(-1*Math.floor(a),20),0),l={notation:i,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(l,this.options.ticks.format),BE(e,r,l)},logarithmic(e,t,n){if(e===0)return"0";const r=n[t].significand||e/Math.pow(10,Math.floor(dp(e)));return[1,2,3,5,10,15].includes(r)||t>.8*n.length?VE.numeric.call(this,e,t,n):""}};function U5(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var WE={formatters:VE};function G5(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,n)=>n.lineWidth,tickColor:(t,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:WE.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const Qo=Object.create(null),hp=Object.create(null);function ul(e,t){if(!t)return e;const n=t.split(".");for(let r=0,i=n.length;rr.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(r,i)=>fh(i.backgroundColor),this.hoverBorderColor=(r,i)=>fh(i.borderColor),this.hoverColor=(r,i)=>fh(i.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(n)}set(t,n){return hh(this,t,n)}get(t){return ul(this,t)}describe(t,n){return hh(hp,t,n)}override(t,n){return hh(Qo,t,n)}route(t,n,r,i){const o=ul(this,t),a=ul(this,r),s="_"+n;Object.defineProperties(o,{[s]:{value:o[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[s],c=a[i];return rt(l)?Object.assign({},c,l):Ve(l,c)},set(l){this[s]=l}}})}apply(t){t.forEach(n=>n(this))}}var Bt=new q5({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[B5,V5,G5]);function X5(e){return!e||At(e.size)||At(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function zb(e,t,n,r,i){let o=t[i];return o||(o=t[i]=e.measureText(i).width,n.push(i)),o>r&&(r=o),r}function wo(e,t,n){const r=e.currentDevicePixelRatio,i=n!==0?Math.max(n/2,.5):0;return Math.round((t-i)*r)/r+i}function jb(e,t){!t&&!e||(t=t||e.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function gp(e,t,n,r){UE(e,t,n,r,null)}function UE(e,t,n,r,i){let o,a,s,l,c,u,d,f;const p=t.pointStyle,v=t.rotation,y=t.radius;let b=(v||0)*E5;if(p&&typeof p=="object"&&(o=p.toString(),o==="[object HTMLImageElement]"||o==="[object HTMLCanvasElement]")){e.save(),e.translate(n,r),e.rotate(b),e.drawImage(p,-p.width/2,-p.height/2,p.width,p.height),e.restore();return}if(!(isNaN(y)||y<=0)){switch(e.beginPath(),p){default:i?e.ellipse(n,r,i/2,y,0,0,ci):e.arc(n,r,y,0,ci),e.closePath();break;case"triangle":u=i?i/2:y,e.moveTo(n+Math.sin(b)*u,r-Math.cos(b)*y),b+=Rb,e.lineTo(n+Math.sin(b)*u,r-Math.cos(b)*y),b+=Rb,e.lineTo(n+Math.sin(b)*u,r-Math.cos(b)*y),e.closePath();break;case"rectRounded":c=y*.516,l=y-c,a=Math.cos(b+So)*l,d=Math.cos(b+So)*(i?i/2-c:l),s=Math.sin(b+So)*l,f=Math.sin(b+So)*(i?i/2-c:l),e.arc(n-d,r-s,c,b-dn,b-Vr),e.arc(n+f,r-a,c,b-Vr,b),e.arc(n+d,r+s,c,b,b+Vr),e.arc(n-f,r+a,c,b+Vr,b+dn),e.closePath();break;case"rect":if(!v){l=Math.SQRT1_2*y,u=i?i/2:l,e.rect(n-u,r-l,2*u,2*l);break}b+=So;case"rectRot":d=Math.cos(b)*(i?i/2:y),a=Math.cos(b)*y,s=Math.sin(b)*y,f=Math.sin(b)*(i?i/2:y),e.moveTo(n-d,r-s),e.lineTo(n+f,r-a),e.lineTo(n+d,r+s),e.lineTo(n-f,r+a),e.closePath();break;case"crossRot":b+=So;case"cross":d=Math.cos(b)*(i?i/2:y),a=Math.cos(b)*y,s=Math.sin(b)*y,f=Math.sin(b)*(i?i/2:y),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+f,r-a),e.lineTo(n-f,r+a);break;case"star":d=Math.cos(b)*(i?i/2:y),a=Math.cos(b)*y,s=Math.sin(b)*y,f=Math.sin(b)*(i?i/2:y),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+f,r-a),e.lineTo(n-f,r+a),b+=So,d=Math.cos(b)*(i?i/2:y),a=Math.cos(b)*y,s=Math.sin(b)*y,f=Math.sin(b)*(i?i/2:y),e.moveTo(n-d,r-s),e.lineTo(n+d,r+s),e.moveTo(n+f,r-a),e.lineTo(n-f,r+a);break;case"line":a=i?i/2:Math.cos(b)*y,s=Math.sin(b)*y,e.moveTo(n-a,r-s),e.lineTo(n+a,r+s);break;case"dash":e.moveTo(n,r),e.lineTo(n+Math.cos(b)*(i?i/2:y),r+Math.sin(b)*y);break;case!1:e.closePath();break}e.fill(),t.borderWidth>0&&e.stroke()}}function Kl(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.xt.top-n&&e.y0&&o.strokeColor!=="";let l,c;for(e.save(),e.font=i.string,Q5(e,o),l=0;l+e||0;function GE(e,t){const n={},r=rt(t),i=r?Object.keys(t):t,o=rt(e)?r?a=>Ve(e[a],e[t[a]]):a=>e[a]:()=>e;for(const a of i)n[a]=rL(o(a));return n}function iL(e){return GE(e,{top:"y",right:"x",bottom:"y",left:"x"})}function dl(e){return GE(e,["topLeft","topRight","bottomLeft","bottomRight"])}function Pr(e){const t=iL(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function Mn(e,t){e=e||{},t=t||Bt.font;let n=Ve(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let r=Ve(e.style,t.style);r&&!(""+r).match(tL)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const i={family:Ve(e.family,t.family),lineHeight:nL(Ve(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:Ve(e.weight,t.weight),string:""};return i.string=X5(i),i}function Xc(e,t,n,r){let i,o,a;for(i=0,o=e.length;in&&s===0?0:s+l;return{min:a(r,-Math.abs(o)),max:a(i,o)}}function na(e,t){return Object.assign(Object.create(e),t)}function pv(e,t=[""],n,r,i=()=>e[0]){const o=n||e;typeof r>"u"&&(r=YE("_fallback",e));const a={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:o,_fallback:r,_getTarget:i,override:s=>pv([s,...e],t,o,r)};return new Proxy(a,{deleteProperty(s,l){return delete s[l],delete s._keys,delete e[0][l],!0},get(s,l){return XE(s,l,()=>hL(l,t,e,s))},getOwnPropertyDescriptor(s,l){return Reflect.getOwnPropertyDescriptor(s._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(s,l){return Bb(s).includes(l)},ownKeys(s){return Bb(s)},set(s,l,c){const u=s._storage||(s._storage=i());return s[l]=u[l]=c,delete s._keys,!0}})}function is(e,t,n,r){const i={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:qE(e,r),setContext:o=>is(e,o,n,r),override:o=>is(e.override(o),t,n,r)};return new Proxy(i,{deleteProperty(o,a){return delete o[a],delete e[a],!0},get(o,a,s){return XE(o,a,()=>sL(o,a,s))},getOwnPropertyDescriptor(o,a){return o._descriptors.allKeys?Reflect.has(e,a)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,a)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(o,a){return Reflect.has(e,a)},ownKeys(){return Reflect.ownKeys(e)},set(o,a,s){return e[a]=s,delete o[a],!0}})}function qE(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:i=t.allKeys}=e;return{allKeys:i,scriptable:n,indexable:r,isScriptable:ao(n)?n:()=>n,isIndexable:ao(r)?r:()=>r}}const aL=(e,t)=>e?e+cv(t):t,mv=(e,t)=>rt(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function XE(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t)||t==="constructor")return e[t];const r=n();return e[t]=r,r}function sL(e,t,n){const{_proxy:r,_context:i,_subProxy:o,_descriptors:a}=e;let s=r[t];return ao(s)&&a.isScriptable(t)&&(s=lL(t,s,e,n)),ln(s)&&s.length&&(s=cL(t,s,e,a.isIndexable)),mv(t,s)&&(s=is(s,i,o&&o[t],a)),s}function lL(e,t,n,r){const{_proxy:i,_context:o,_subProxy:a,_stack:s}=n;if(s.has(e))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+e);s.add(e);let l=t(o,a||r);return s.delete(e),mv(e,l)&&(l=vv(i._scopes,i,e,l)),l}function cL(e,t,n,r){const{_proxy:i,_context:o,_subProxy:a,_descriptors:s}=n;if(typeof o.index<"u"&&r(e))return t[o.index%t.length];if(rt(t[0])){const l=t,c=i._scopes.filter(u=>u!==l);t=[];for(const u of l){const d=vv(c,i,e,u);t.push(is(d,o,a&&a[e],s))}}return t}function KE(e,t,n){return ao(e)?e(t,n):e}const uL=(e,t)=>e===!0?t:typeof e=="string"?hd(t,e):void 0;function dL(e,t,n,r,i){for(const o of t){const a=uL(n,o);if(a){e.add(a);const s=KE(a._fallback,n,i);if(typeof s<"u"&&s!==n&&s!==r)return s}else if(a===!1&&typeof r<"u"&&n!==r)return null}return!1}function vv(e,t,n,r){const i=t._rootScopes,o=KE(t._fallback,n,r),a=[...e,...i],s=new Set;s.add(r);let l=Hb(s,a,n,o||n,r);return l===null||typeof o<"u"&&o!==n&&(l=Hb(s,a,o,l,r),l===null)?!1:pv(Array.from(s),[""],i,o,()=>fL(t,n,r))}function Hb(e,t,n,r,i){for(;n;)n=dL(e,t,n,r,i);return n}function fL(e,t,n){const r=e._getTarget();t in r||(r[t]={});const i=r[t];return ln(i)&&rt(n)?n:i||{}}function hL(e,t,n,r){let i;for(const o of t)if(i=YE(aL(o,e),n),typeof i<"u")return mv(e,i)?vv(n,r,e,i):i}function YE(e,t){for(const n of t){if(!n)continue;const r=n[e];if(typeof r<"u")return r}}function Bb(e){let t=e._keys;return t||(t=e._keys=gL(e._scopes)),t}function gL(e){const t=new Set;for(const n of e)for(const r of Object.keys(n).filter(i=>!i.startsWith("_")))t.add(r);return Array.from(t)}const pL=Number.EPSILON||1e-14,os=(e,t)=>te==="x"?"y":"x";function mL(e,t,n,r){const i=e.skip?t:e,o=t,a=n.skip?t:n,s=fp(o,i),l=fp(a,o);let c=s/(s+l),u=l/(s+l);c=isNaN(c)?0:c,u=isNaN(u)?0:u;const d=r*c,f=r*u;return{previous:{x:o.x-d*(a.x-i.x),y:o.y-d*(a.y-i.y)},next:{x:o.x+f*(a.x-i.x),y:o.y+f*(a.y-i.y)}}}function vL(e,t,n){const r=e.length;let i,o,a,s,l,c=os(e,0);for(let u=0;u!c.skip)),t.cubicInterpolationMode==="monotone")bL(e,i);else{let c=r?e[e.length-1]:e[0];for(o=0,a=e.length;oe.ownerDocument.defaultView.getComputedStyle(e,null);function wL(e,t){return lf(e).getPropertyValue(t)}const CL=["top","right","bottom","left"];function jo(e,t,n){const r={};n=n?"-"+n:"";for(let i=0;i<4;i++){const o=CL[i];r[o]=parseFloat(e[t+"-"+o+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const EL=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function _L(e,t){const n=e.touches,r=n&&n.length?n[0]:e,{offsetX:i,offsetY:o}=r;let a=!1,s,l;if(EL(i,o,e.target))s=i,l=o;else{const c=t.getBoundingClientRect();s=r.clientX-c.left,l=r.clientY-c.top,a=!0}return{x:s,y:l,box:a}}function ii(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:r}=t,i=lf(n),o=i.boxSizing==="border-box",a=jo(i,"padding"),s=jo(i,"border","width"),{x:l,y:c,box:u}=_L(e,n),d=a.left+(u&&s.left),f=a.top+(u&&s.top);let{width:p,height:v}=t;return o&&(p-=a.width+s.width,v-=a.height+s.height),{x:Math.round((l-d)/p*n.width/r),y:Math.round((c-f)/v*n.height/r)}}function OL(e,t,n){let r,i;if(t===void 0||n===void 0){const o=e&&bv(e);if(!o)t=e.clientWidth,n=e.clientHeight;else{const a=o.getBoundingClientRect(),s=lf(o),l=jo(s,"border","width"),c=jo(s,"padding");t=a.width-c.width-l.width,n=a.height-c.height-l.height,r=md(s.maxWidth,o,"clientWidth"),i=md(s.maxHeight,o,"clientHeight")}}return{width:t,height:n,maxWidth:r||pd,maxHeight:i||pd}}const Yc=e=>Math.round(e*10)/10;function ML(e,t,n,r){const i=lf(e),o=jo(i,"margin"),a=md(i.maxWidth,e,"clientWidth")||pd,s=md(i.maxHeight,e,"clientHeight")||pd,l=OL(e,t,n);let{width:c,height:u}=l;if(i.boxSizing==="content-box"){const f=jo(i,"border","width"),p=jo(i,"padding");c-=p.width+f.width,u-=p.height+f.height}return c=Math.max(0,c-o.width),u=Math.max(0,r?c/r:u-o.height),c=Yc(Math.min(c,a,l.maxWidth)),u=Yc(Math.min(u,s,l.maxHeight)),c&&!u&&(u=Yc(c/2)),(t!==void 0||n!==void 0)&&r&&l.height&&u>l.height&&(u=l.height,c=Yc(Math.floor(u*r))),{width:c,height:u}}function Vb(e,t,n){const r=t||1,i=Math.floor(e.height*r),o=Math.floor(e.width*r);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const a=e.canvas;return a.style&&(n||!a.style.height&&!a.style.width)&&(a.style.height=`${e.height}px`,a.style.width=`${e.width}px`),e.currentDevicePixelRatio!==r||a.height!==i||a.width!==o?(e.currentDevicePixelRatio=r,a.height=i,a.width=o,e.ctx.setTransform(r,0,0,r,0,0),!0):!1}const TL=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};yv()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch{}return e}();function Wb(e,t){const n=wL(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function Oo(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function PL(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:r==="middle"?n<.5?e.y:t.y:r==="after"?n<1?e.y:t.y:n>0?t.y:e.y}}function $L(e,t,n,r){const i={x:e.cp2x,y:e.cp2y},o={x:t.cp1x,y:t.cp1y},a=Oo(e,i,n),s=Oo(i,o,n),l=Oo(o,t,n),c=Oo(a,s,n),u=Oo(s,l,n);return Oo(c,u,n)}const RL=function(e,t){return{x(n){return e+e+t-n},setWidth(n){t=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,r){return n-r},leftForLtr(n,r){return n-r}}},kL=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function Va(e,t,n){return e?RL(t,n):kL()}function ZE(e,t){let n,r;(t==="ltr"||t==="rtl")&&(n=e.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function JE(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function e_(e){return e==="angle"?{between:DE,compare:$5,normalize:Ai}:{between:Bs,compare:(t,n)=>t-n,normalize:t=>t}}function Ub({start:e,end:t,count:n,loop:r,style:i}){return{start:e%n,end:t%n,loop:r&&(t-e+1)%n===0,style:i}}function IL(e,t,n){const{property:r,start:i,end:o}=n,{between:a,normalize:s}=e_(r),l=t.length;let{start:c,end:u,loop:d}=e,f,p;if(d){for(c+=l,u+=l,f=0,p=l;fl(i,x,m)&&s(i,x)!==0,w=()=>s(o,m)===0||l(o,x,m),C=()=>y||S(),_=()=>!y||w();for(let M=u,T=u;M<=d;++M)g=t[M%a],!g.skip&&(m=c(g[r]),m!==x&&(y=l(m,i,o),b===null&&C()&&(b=s(m,i)===0?M:T),b!==null&&_()&&(v.push(Ub({start:b,end:M,loop:f,count:a,style:p})),b=null),T=M,x=m));return b!==null&&v.push(Ub({start:b,end:d,loop:f,count:a,style:p})),v}function NL(e,t){const n=[],r=e.segments;for(let i=0;ii&&e[o%t].skip;)o--;return o%=t,{start:i,end:o}}function LL(e,t,n,r){const i=e.length,o=[];let a=t,s=e[t],l;for(l=t+1;l<=n;++l){const c=e[l%i];c.skip||c.stop?s.skip||(r=!1,o.push({start:t%i,end:(l-1)%i,loop:r}),t=a=c.stop?l:null):(a=l,s.skip&&(t=l)),s=c}return a!==null&&o.push({start:t%i,end:a%i,loop:r}),o}function DL(e,t){const n=e.points,r=e.options.spanGaps,i=n.length;if(!i)return[];const o=!!e._loop,{start:a,end:s}=AL(n,i,o,r);if(r===!0)return Gb(e,[{start:a,end:s,loop:o}],n,t);const l=ss({chart:t,initial:n.initial,numSteps:a,currentStep:Math.min(r-n.start,a)}))}_refresh(){this._request||(this._running=!0,this._request=jE.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((r,i)=>{if(!r.running||!r.items.length)return;const o=r.items;let a=o.length-1,s=!1,l;for(;a>=0;--a)l=o[a],l._active?(l._total>r.duration&&(r.duration=l._total),l.tick(t),s=!0):(o[a]=o[o.length-1],o.pop());s&&(i.draw(),this._notify(i,r,t,"progress")),o.length||(r.running=!1,this._notify(i,r,t,"complete"),r.initial=!1),n+=o.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){const n=this._charts;let r=n.get(t);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,r)),r}listen(t,n,r){this._getAnims(t).listeners[n].push(r)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){const n=this._charts.get(t);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((r,i)=>Math.max(r,i._duration),0),this._refresh())}running(t){if(!this._running)return!1;const n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){const n=this._charts.get(t);if(!n||!n.items.length)return;const r=n.items;let i=r.length-1;for(;i>=0;--i)r[i].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var gi=new HL;const Xb="transparent",BL={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const r=Lb(e||Xb),i=r.valid&&Lb(t||Xb);return i&&i.valid?i.mix(r,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class VL{constructor(t,n,r,i){const o=n[r];i=Xc([t.to,i,o,t.from]);const a=Xc([t.from,o,i]);this._active=!0,this._fn=t.fn||BL[t.type||typeof a],this._easing=cl[t.easing]||cl.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=r,this._from=a,this._to=i,this._promises=void 0}active(){return this._active}update(t,n,r){if(this._active){this._notify(!1);const i=this._target[this._prop],o=r-this._start,a=this._duration-o;this._start=r,this._duration=Math.floor(Math.max(a,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=Xc([t.to,n,i,t.from]),this._from=Xc([t.from,i,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,r=this._duration,i=this._prop,o=this._from,a=this._loop,s=this._to;let l;if(this._active=o!==s&&(a||n1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[i]=this._fn(o,s,l)}wait(){const t=this._promises||(this._promises=[]);return new Promise((n,r)=>{t.push({res:n,rej:r})})}_notify(t){const n=t?"res":"rej",r=this._promises||[];for(let i=0;i{const o=t[i];if(!rt(o))return;const a={};for(const s of n)a[s]=o[s];(ln(o.properties)&&o.properties||[i]).forEach(s=>{(s===i||!r.has(s))&&r.set(s,a)})})}_animateOptions(t,n){const r=n.options,i=UL(t,r);if(!i)return[];const o=this._createAnimations(i,r);return r.$shared&&WL(t.options.$animations,r).then(()=>{t.options=r},()=>{}),o}_createAnimations(t,n){const r=this._properties,i=[],o=t.$animations||(t.$animations={}),a=Object.keys(n),s=Date.now();let l;for(l=a.length-1;l>=0;--l){const c=a[l];if(c.charAt(0)==="$")continue;if(c==="options"){i.push(...this._animateOptions(t,n));continue}const u=n[c];let d=o[c];const f=r.get(c);if(d)if(f&&d.active()){d.update(f,u,s);continue}else d.cancel();if(!f||!f.duration){t[c]=u;continue}o[c]=d=new VL(f,t,c,u),i.push(d)}return i}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}const r=this._createAnimations(t,n);if(r.length)return gi.add(this._chart,r),!0}}function WL(e,t){const n=[],r=Object.keys(t);for(let i=0;i0||!n&&o<0)return i.index}return null}function Jb(e,t){const{chart:n,_cachedMeta:r}=e,i=n._stacks||(n._stacks={}),{iScale:o,vScale:a,index:s}=r,l=o.axis,c=a.axis,u=KL(o,a,r),d=t.length;let f;for(let p=0;pn[r].axis===t).shift()}function ZL(e,t){return na(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function JL(e,t,n){return na(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function Rs(e,t){const n=e.controller.index,r=e.vScale&&e.vScale.axis;if(r){t=t||e._parsed;for(const i of t){const o=i._stacks;if(!o||o[r]===void 0||o[r][n]===void 0)return;delete o[r][n],o[r]._visualValues!==void 0&&o[r]._visualValues[n]!==void 0&&delete o[r]._visualValues[n]}}}const ph=e=>e==="reset"||e==="none",e1=(e,t)=>t?e:Object.assign({},e),eD=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:n_(n,!0),values:null};class fl{constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=Qb(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&Rs(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,r=this.getDataset(),i=(d,f,p,v)=>d==="x"?f:d==="r"?v:p,o=n.xAxisID=Ve(r.xAxisID,gh(t,"x")),a=n.yAxisID=Ve(r.yAxisID,gh(t,"y")),s=n.rAxisID=Ve(r.rAxisID,gh(t,"r")),l=n.indexAxis,c=n.iAxisID=i(l,o,a,s),u=n.vAxisID=i(l,a,o,s);n.xScale=this.getScaleForId(o),n.yScale=this.getScaleForId(a),n.rScale=this.getScaleForId(s),n.iScale=this.getScaleForId(c),n.vScale=this.getScaleForId(u)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&Fb(this._data,this),t._stacked&&Rs(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),r=this._data;if(rt(n)){const i=this._cachedMeta;this._data=XL(n,i)}else if(r!==n){if(r){Fb(r,this);const i=this._cachedMeta;Rs(i),i._parsed=[]}n&&Object.isExtensible(n)&&F5(n,this),this._syncList=[],this._data=n}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const n=this._cachedMeta,r=this.getDataset();let i=!1;this._dataCheck();const o=n._stacked;n._stacked=Qb(n.vScale,n),n.stack!==r.stack&&(i=!0,Rs(n),n.stack=r.stack),this._resyncElements(t),(i||o!==n._stacked)&&Jb(this,n._parsed)}configure(){const t=this.chart.config,n=t.datasetScopeKeys(this._type),r=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){const{_cachedMeta:r,_data:i}=this,{iScale:o,_stacked:a}=r,s=o.axis;let l=t===0&&n===i.length?!0:r._sorted,c=t>0&&r._parsed[t-1],u,d,f;if(this._parsing===!1)r._parsed=i,r._sorted=!0,f=i;else{ln(i[t])?f=this.parseArrayData(r,i,t,n):rt(i[t])?f=this.parseObjectData(r,i,t,n):f=this.parsePrimitiveData(r,i,t,n);const p=()=>d[s]===null||c&&d[s]y||d=0;--f)if(!v()){this.updateRangeFromParsed(c,t,p,l);break}}return c}getAllParsedValues(t){const n=this._cachedMeta._parsed,r=[];let i,o,a;for(i=0,o=n.length;i=0&&tthis.getContext(r,i,n),y=c.resolveNamedOptions(f,p,v,d);return y.$shared&&(y.$shared=l,o[a]=Object.freeze(e1(y,l))),y}_resolveAnimations(t,n,r){const i=this.chart,o=this._cachedDataOpts,a=`animation-${n}`,s=o[a];if(s)return s;let l;if(i.options.animation!==!1){const u=this.chart.config,d=u.datasetAnimationScopeKeys(this._type,n),f=u.getOptionScopes(this.getDataset(),d);l=u.createResolver(f,this.getContext(t,r,n))}const c=new t_(i,l&&l.animations);return l&&l._cacheable&&(o[a]=Object.freeze(c)),c}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||ph(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const r=this.resolveDataElementOptions(t,n),i=this._sharedOptions,o=this.getSharedOptions(r),a=this.includeOptions(n,o)||o!==i;return this.updateSharedOptions(o,n,r),{sharedOptions:o,includeOptions:a}}updateElement(t,n,r,i){ph(i)?Object.assign(t,r):this._resolveAnimations(n,i).update(t,r)}updateSharedOptions(t,n,r){t&&!ph(n)&&this._resolveAnimations(void 0,n).update(t,r)}_setStyle(t,n,r,i){t.active=i;const o=this.getStyle(n,i);this._resolveAnimations(n,r,i).update(t,{options:!i&&this.getSharedOptions(o)||o})}removeHoverStyle(t,n,r){this._setStyle(t,r,"active",!1)}setHoverStyle(t,n,r){this._setStyle(t,r,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const n=this._data,r=this._cachedMeta.data;for(const[s,l,c]of this._syncList)this[s](l,c);this._syncList=[];const i=r.length,o=n.length,a=Math.min(o,i);a&&this.parse(0,a),o>i?this._insertElements(i,o-i,t):o{for(c.length+=n,s=c.length-1;s>=a;s--)c[s]=c[s-n]};for(l(o),s=t;s0&&this.getParsed(n-1);for(let w=0;w=g){_.skip=!0;continue}const M=this.getParsed(w),T=At(M[p]),P=_[f]=a.getPixelForValue(M[f],w),F=_[p]=o||T?s.getBasePixel():s.getPixelForValue(l?this.applyStack(s,M,l):M[p],w);_.skip=isNaN(P)||isNaN(F)||T,_.stop=w>0&&Math.abs(M[f]-S[f])>b,y&&(_.parsed=M,_.raw=c.data[w]),d&&(_.options=u||this.resolveDataElementOptions(w,C.active?"active":i)),m||this.updateElement(C,w,_,i),S=M}}getMaxOverflow(){const t=this._cachedMeta,n=t.dataset,r=n.options&&n.options.borderWidth||0,i=t.data||[];if(!i.length)return r;const o=i[0].size(this.resolveDataElementOptions(0)),a=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(r,o,a)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}ze(Mu,"id","line"),ze(Mu,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),ze(Mu,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});function Co(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class xv{constructor(t){ze(this,"options");this.options=t||{}}static override(t){Object.assign(xv.prototype,t)}init(){}formats(){return Co()}parse(){return Co()}format(){return Co()}add(){return Co()}diff(){return Co()}startOf(){return Co()}endOf(){return Co()}}var tD={_date:xv};function nD(e,t,n,r){const{controller:i,data:o,_sorted:a}=e,s=i._cachedMeta.iScale;if(s&&t===s.axis&&t!=="r"&&a&&o.length){const l=s._reversePixels?k5:No;if(r){if(i._sharedOptions){const c=o[0],u=typeof c.getRange=="function"&&c.getRange(t);if(u){const d=l(o,t,n-u),f=l(o,t,n+u);return{lo:d.lo,hi:f.hi}}}}else return l(o,t,n)}return{lo:0,hi:o.length-1}}function uc(e,t,n,r,i){const o=e.getSortedVisibleDatasetMetas(),a=n[t];for(let s=0,l=o.length;s{l[a]&&l[a](t[n],i)&&(o.push({element:l,datasetIndex:c,index:u}),s=s||l.inRange(t.x,t.y,i))}),r&&!s?[]:o}var aD={evaluateInteractionItems:uc,modes:{index(e,t,n,r){const i=ii(t,e),o=n.axis||"x",a=n.includeInvisible||!1,s=n.intersect?mh(e,i,o,r,a):vh(e,i,o,!1,r,a),l=[];return s.length?(e.getSortedVisibleDatasetMetas().forEach(c=>{const u=s[0].index,d=c.data[u];d&&!d.skip&&l.push({element:d,datasetIndex:c.index,index:u})}),l):[]},dataset(e,t,n,r){const i=ii(t,e),o=n.axis||"xy",a=n.includeInvisible||!1;let s=n.intersect?mh(e,i,o,r,a):vh(e,i,o,!1,r,a);if(s.length>0){const l=s[0].datasetIndex,c=e.getDatasetMeta(l).data;s=[];for(let u=0;un.pos===t)}function n1(e,t){return e.filter(n=>r_.indexOf(n.pos)===-1&&n.box.axis===t)}function Is(e,t){return e.sort((n,r)=>{const i=t?r:n,o=t?n:r;return i.weight===o.weight?i.index-o.index:i.weight-o.weight})}function sD(e){const t=[];let n,r,i,o,a,s;for(n=0,r=(e||[]).length;nc.box.fullSize),!0),r=Is(ks(t,"left"),!0),i=Is(ks(t,"right")),o=Is(ks(t,"top"),!0),a=Is(ks(t,"bottom")),s=n1(t,"x"),l=n1(t,"y");return{fullSize:n,leftAndTop:r.concat(o),rightAndBottom:i.concat(l).concat(a).concat(s),chartArea:ks(t,"chartArea"),vertical:r.concat(i).concat(l),horizontal:o.concat(a).concat(s)}}function r1(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function i_(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function dD(e,t,n,r){const{pos:i,box:o}=n,a=e.maxPadding;if(!rt(i)){n.size&&(e[i]-=n.size);const d=r[n.stack]||{size:0,count:1};d.size=Math.max(d.size,n.horizontal?o.height:o.width),n.size=d.size/d.count,e[i]+=n.size}o.getPadding&&i_(a,o.getPadding());const s=Math.max(0,t.outerWidth-r1(a,e,"left","right")),l=Math.max(0,t.outerHeight-r1(a,e,"top","bottom")),c=s!==e.w,u=l!==e.h;return e.w=s,e.h=l,n.horizontal?{same:c,other:u}:{same:u,other:c}}function fD(e){const t=e.maxPadding;function n(r){const i=Math.max(t[r]-e[r],0);return e[r]+=i,i}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function hD(e,t){const n=t.maxPadding;function r(i){const o={left:0,top:0,right:0,bottom:0};return i.forEach(a=>{o[a]=Math.max(t[a],n[a])}),o}return r(e?["left","right"]:["top","bottom"])}function Vs(e,t,n,r){const i=[];let o,a,s,l,c,u;for(o=0,a=e.length,c=0;o{typeof y.beforeLayout=="function"&&y.beforeLayout()});const u=l.reduce((y,b)=>b.box.options&&b.box.options.display===!1?y:y+1,0)||1,d=Object.freeze({outerWidth:t,outerHeight:n,padding:i,availableWidth:o,availableHeight:a,vBoxMaxWidth:o/2/u,hBoxMaxHeight:a/2}),f=Object.assign({},i);i_(f,Pr(r));const p=Object.assign({maxPadding:f,w:o,h:a,x:i.left,y:i.top},i),v=cD(l.concat(c),d);Vs(s.fullSize,p,d,v),Vs(l,p,d,v),Vs(c,p,d,v)&&Vs(l,p,d,v),fD(p),i1(s.leftAndTop,p,d,v),p.x+=p.w,p.y+=p.h,i1(s.rightAndBottom,p,d,v),e.chartArea={left:p.left,top:p.top,right:p.left+p.w,bottom:p.top+p.h,height:p.h,width:p.w},We(s.chartArea,y=>{const b=y.box;Object.assign(b,e.chartArea),b.update(p.w,p.h,{left:0,top:0,right:0,bottom:0})})}};class o_{acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,r){}removeEventListener(t,n,r){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,r,i){return n=Math.max(0,n||t.width),r=r||t.height,{width:n,height:Math.max(0,i?Math.floor(n/i):r)}}isAttached(t){return!0}updateConfig(t){}}class gD extends o_{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Tu="$chartjs",pD={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},o1=e=>e===null||e==="";function mD(e,t){const n=e.style,r=e.getAttribute("height"),i=e.getAttribute("width");if(e[Tu]={initial:{height:r,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",o1(i)){const o=Wb(e,"width");o!==void 0&&(e.width=o)}if(o1(r))if(e.style.height==="")e.height=e.width/(t||2);else{const o=Wb(e,"height");o!==void 0&&(e.height=o)}return e}const a_=TL?{passive:!0}:!1;function vD(e,t,n){e&&e.addEventListener(t,n,a_)}function yD(e,t,n){e&&e.canvas&&e.canvas.removeEventListener(t,n,a_)}function bD(e,t){const n=pD[e.type]||e.type,{x:r,y:i}=ii(e,t);return{type:n,chart:t,native:e,x:r!==void 0?r:null,y:i!==void 0?i:null}}function vd(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function xD(e,t,n){const r=e.canvas,i=new MutationObserver(o=>{let a=!1;for(const s of o)a=a||vd(s.addedNodes,r),a=a&&!vd(s.removedNodes,r);a&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function SD(e,t,n){const r=e.canvas,i=new MutationObserver(o=>{let a=!1;for(const s of o)a=a||vd(s.removedNodes,r),a=a&&!vd(s.addedNodes,r);a&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}const Ql=new Map;let a1=0;function s_(){const e=window.devicePixelRatio;e!==a1&&(a1=e,Ql.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function wD(e,t){Ql.size||window.addEventListener("resize",s_),Ql.set(e,t)}function CD(e){Ql.delete(e),Ql.size||window.removeEventListener("resize",s_)}function ED(e,t,n){const r=e.canvas,i=r&&bv(r);if(!i)return;const o=HE((s,l)=>{const c=i.clientWidth;n(s,l),c{const l=s[0],c=l.contentRect.width,u=l.contentRect.height;c===0&&u===0||o(c,u)});return a.observe(i),wD(e,o),a}function yh(e,t,n){n&&n.disconnect(),t==="resize"&&CD(e)}function _D(e,t,n){const r=e.canvas,i=HE(o=>{e.ctx!==null&&n(bD(o,e))},e);return vD(r,t,i),i}class OD extends o_{acquireContext(t,n){const r=t&&t.getContext&&t.getContext("2d");return r&&r.canvas===t?(mD(t,n),r):null}releaseContext(t){const n=t.canvas;if(!n[Tu])return!1;const r=n[Tu].initial;["height","width"].forEach(o=>{const a=r[o];At(a)?n.removeAttribute(o):n.setAttribute(o,a)});const i=r.style||{};return Object.keys(i).forEach(o=>{n.style[o]=i[o]}),n.width=n.width,delete n[Tu],!0}addEventListener(t,n,r){this.removeEventListener(t,n);const i=t.$proxies||(t.$proxies={}),a={attach:xD,detach:SD,resize:ED}[n]||_D;i[n]=a(t,n,r)}removeEventListener(t,n){const r=t.$proxies||(t.$proxies={}),i=r[n];if(!i)return;({attach:yh,detach:yh,resize:yh}[n]||yD)(t,n,i),r[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,r,i){return ML(t,n,r,i)}isAttached(t){const n=t&&bv(t);return!!(n&&n.isConnected)}}function MD(e){return!yv()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?gD:OD}var ou;let ra=(ou=class{constructor(){ze(this,"x");ze(this,"y");ze(this,"active",!1);ze(this,"options");ze(this,"$animations")}tooltipPosition(t){const{x:n,y:r}=this.getProps(["x","y"],t);return{x:n,y:r}}hasValue(){return Xl(this.x)&&Xl(this.y)}getProps(t,n){const r=this.$animations;if(!n||!r)return this;const i={};return t.forEach(o=>{i[o]=r[o]&&r[o].active()?r[o]._to:this[o]}),i}},ze(ou,"defaults",{}),ze(ou,"defaultRoutes"),ou);function TD(e,t){const n=e.options.ticks,r=PD(e),i=Math.min(n.maxTicksLimit||r,r),o=n.major.enabled?RD(t):[],a=o.length,s=o[0],l=o[a-1],c=[];if(a>i)return kD(t,c,o,a/i),c;const u=$D(o,t,i);if(a>0){let d,f;const p=a>1?Math.round((l-s)/(a-1)):null;for(Zc(t,c,u,At(p)?0:s-p,s),d=0,f=a-1;di)return l}return Math.max(i,1)}function RD(e){const t=[];let n,r;for(n=0,r=e.length;ne==="left"?"right":e==="right"?"left":e,s1=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n,l1=(e,t)=>Math.min(t||e,e);function c1(e,t){const n=[],r=e.length/t,i=e.length;let o=0;for(;oa+s)))return l}function AD(e,t){We(e,n=>{const r=n.gc,i=r.length/2;let o;if(i>t){for(o=0;or?r:n,r=i&&n>r?n:r,{min:Jr(n,Jr(r,n)),max:Jr(r,Jr(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Ne(this.options.beforeUpdate,[this])}update(t,n,r){const{beginAtZero:i,grace:o,ticks:a}=this.options,s=a.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=oL(this,o,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=s=o||r<=1||!this.isHorizontal()){this.labelRotation=i;return}const u=this._getLabelSizes(),d=u.widest.width,f=u.highest.height,p=wr(this.chart.width-d,0,this.maxWidth);s=t.offset?this.maxWidth/r:p/(r-1),d+6>s&&(s=p/(r-(t.offset?.5:1)),l=this.maxHeight-Fs(t.grid)-n.padding-u1(t.title,this.chart.options.font),c=Math.sqrt(d*d+f*f),a=T5(Math.min(Math.asin(wr((u.highest.height+6)/s,-1,1)),Math.asin(wr(l/c,-1,1))-Math.asin(wr(f/c,-1,1)))),a=Math.max(i,Math.min(o,a))),this.labelRotation=a}afterCalculateLabelRotation(){Ne(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Ne(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:r,title:i,grid:o}}=this,a=this._isVisible(),s=this.isHorizontal();if(a){const l=u1(i,n.options.font);if(s?(t.width=this.maxWidth,t.height=Fs(o)+l):(t.height=this.maxHeight,t.width=Fs(o)+l),r.display&&this.ticks.length){const{first:c,last:u,widest:d,highest:f}=this._getLabelSizes(),p=r.padding*2,v=Fo(this.labelRotation),y=Math.cos(v),b=Math.sin(v);if(s){const m=r.mirror?0:b*d.width+y*f.height;t.height=Math.min(this.maxHeight,t.height+m+p)}else{const m=r.mirror?0:y*d.width+b*f.height;t.width=Math.min(this.maxWidth,t.width+m+p)}this._calculatePadding(c,u,b,y)}}this._handleMargins(),s?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,n,r,i){const{ticks:{align:o,padding:a},position:s}=this.options,l=this.labelRotation!==0,c=s!=="top"&&this.axis==="x";if(this.isHorizontal()){const u=this.getPixelForTick(0)-this.left,d=this.right-this.getPixelForTick(this.ticks.length-1);let f=0,p=0;l?c?(f=i*t.width,p=r*n.height):(f=r*t.height,p=i*n.width):o==="start"?p=n.width:o==="end"?f=t.width:o!=="inner"&&(f=t.width/2,p=n.width/2),this.paddingLeft=Math.max((f-u+a)*this.width/(this.width-u),0),this.paddingRight=Math.max((p-d+a)*this.width/(this.width-d),0)}else{let u=n.height/2,d=t.height/2;o==="start"?(u=0,d=t.height):o==="end"&&(u=n.height,d=0),this.paddingTop=u+a,this.paddingBottom=d+a}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Ne(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:n}=this.options;return n==="top"||n==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let n,r;for(n=0,r=t.length;n({width:a[T]||0,height:s[T]||0});return{first:M(0),last:M(n-1),widest:M(C),highest:M(_),widths:a,heights:s}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const n=this._startPixel+t*this._length;return R5(this._alignToPixels?wo(this.chart,n,0):n)}getDecimalForPixel(t){const n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){const n=this.ticks||[];if(t>=0&&ts*i?s/r:l/i:l*i0}_computeGridLineItems(t){const n=this.axis,r=this.chart,i=this.options,{grid:o,position:a,border:s}=i,l=o.offset,c=this.isHorizontal(),d=this.ticks.length+(l?1:0),f=Fs(o),p=[],v=s.setContext(this.getContext()),y=v.display?v.width:0,b=y/2,m=function(N){return wo(r,N,y)};let g,x,S,w,C,_,M,T,P,F,D,z;if(a==="top")g=m(this.bottom),_=this.bottom-f,T=g-b,F=m(t.top)+b,z=t.bottom;else if(a==="bottom")g=m(this.top),F=t.top,z=m(t.bottom)-b,_=g+b,T=this.top+f;else if(a==="left")g=m(this.right),C=this.right-f,M=g-b,P=m(t.left)+b,D=t.right;else if(a==="right")g=m(this.left),P=t.left,D=m(t.right)-b,C=g+b,M=this.left+f;else if(n==="x"){if(a==="center")g=m((t.top+t.bottom)/2+.5);else if(rt(a)){const N=Object.keys(a)[0],R=a[N];g=m(this.chart.scales[N].getPixelForValue(R))}F=t.top,z=t.bottom,_=g+b,T=_+f}else if(n==="y"){if(a==="center")g=m((t.left+t.right)/2);else if(rt(a)){const N=Object.keys(a)[0],R=a[N];g=m(this.chart.scales[N].getPixelForValue(R))}C=g-b,M=C-f,P=t.left,D=t.right}const j=Ve(i.ticks.maxTicksLimit,d),W=Math.max(1,Math.ceil(d/j));for(x=0;x0&&(ee-=U/2);break}H={left:ee,top:X,width:U+G.width,height:Y+G.height,color:W.backdropColor}}b.push({label:S,font:T,textOffset:D,options:{rotation:y,color:R,strokeColor:$,strokeWidth:I,textAlign:A,textBaseline:z,translation:[w,C],backdrop:H}})}return b}_getXAxisLabelAlignment(){const{position:t,ticks:n}=this.options;if(-Fo(this.labelRotation))return t==="top"?"left":"right";let i="center";return n.align==="start"?i="left":n.align==="end"?i="right":n.align==="inner"&&(i="inner"),i}_getYAxisLabelAlignment(t){const{position:n,ticks:{crossAlign:r,mirror:i,padding:o}}=this.options,a=this._getLabelSizes(),s=t+o,l=a.widest.width;let c,u;return n==="left"?i?(u=this.right+o,r==="near"?c="left":r==="center"?(c="center",u+=l/2):(c="right",u+=l)):(u=this.right-s,r==="near"?c="right":r==="center"?(c="center",u-=l/2):(c="left",u=this.left)):n==="right"?i?(u=this.left+o,r==="near"?c="right":r==="center"?(c="center",u-=l/2):(c="left",u-=l)):(u=this.left+s,r==="near"?c="left":r==="center"?(c="center",u+=l/2):(c="right",u=this.right)):c="right",{textAlign:c,x:u}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:n},left:r,top:i,width:o,height:a}=this;n&&(t.save(),t.fillStyle=n,t.fillRect(r,i,o,a),t.restore())}getLineWidthForValue(t){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const i=this.ticks.findIndex(o=>o.value===t);return i>=0?n.setContext(this.getContext(i)).lineWidth:0}drawGrid(t){const n=this.options.grid,r=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let o,a;const s=(l,c,u)=>{!u.width||!u.color||(r.save(),r.lineWidth=u.width,r.strokeStyle=u.color,r.setLineDash(u.borderDash||[]),r.lineDashOffset=u.borderDashOffset,r.beginPath(),r.moveTo(l.x,l.y),r.lineTo(c.x,c.y),r.stroke(),r.restore())};if(n.display)for(o=0,a=i.length;o{this.draw(o)}}]:[{z:r,draw:o=>{this.drawBackground(),this.drawGrid(o),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:n,draw:o=>{this.drawLabels(o)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",i=[];let o,a;for(o=0,a=n.length;o{const r=n.split("."),i=r.pop(),o=[e].concat(r).join("."),a=t[n].split("."),s=a.pop(),l=a.join(".");Bt.route(o,i,l,s)})}function VD(e){return"id"in e&&"defaults"in e}class WD{constructor(){this.controllers=new Jc(fl,"datasets",!0),this.elements=new Jc(ra,"elements"),this.plugins=new Jc(Object,"plugins"),this.scales=new Jc(ps,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,n,r){[...n].forEach(i=>{const o=r||this._getRegistryForType(i);r||o.isForType(i)||o===this.plugins&&i.id?this._exec(t,o,i):We(i,a=>{const s=r||this._getRegistryForType(a);this._exec(t,s,a)})})}_exec(t,n,r){const i=cv(t);Ne(r["before"+i],[],r),n[t](r),Ne(r["after"+i],[],r)}_getRegistryForType(t){for(let n=0;no.filter(s=>!a.some(l=>s.plugin.id===l.plugin.id));this._notify(i(n,r),t,"stop"),this._notify(i(r,n),t,"start")}}function GD(e){const t={},n=[],r=Object.keys(ni.plugins.items);for(let o=0;o1&&d1(e[0].toLowerCase());if(r)return r}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function f1(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function JD(e,t){if(t.data&&t.data.datasets){const n=t.data.datasets.filter(r=>r.xAxisID===e||r.yAxisID===e);if(n.length)return f1(e,"x",n[0])||f1(e,"y",n[0])}return{}}function e4(e,t){const n=Qo[e.type]||{scales:{}},r=t.scales||{},i=mp(e.type,t),o=Object.create(null);return Object.keys(r).forEach(a=>{const s=r[a];if(!rt(s))return console.error(`Invalid scale configuration for scale: ${a}`);if(s._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${a}`);const l=vp(a,s,JD(a,e),Bt.scales[s.type]),c=QD(l,i),u=n.scales||{};o[a]=sl(Object.create(null),[{axis:l},s,u[l],u[c]])}),e.data.datasets.forEach(a=>{const s=a.type||e.type,l=a.indexAxis||mp(s,t),u=(Qo[s]||{}).scales||{};Object.keys(u).forEach(d=>{const f=YD(d,l),p=a[f+"AxisID"]||f;o[p]=o[p]||Object.create(null),sl(o[p],[{axis:f},r[p],u[d]])})}),Object.keys(o).forEach(a=>{const s=o[a];sl(s,[Bt.scales[s.type],Bt.scale])}),o}function l_(e){const t=e.options||(e.options={});t.plugins=Ve(t.plugins,{}),t.scales=e4(e,t)}function c_(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function t4(e){return e=e||{},e.data=c_(e.data),l_(e),e}const h1=new Map,u_=new Set;function eu(e,t){let n=h1.get(e);return n||(n=t(),h1.set(e,n),u_.add(n)),n}const Ns=(e,t,n)=>{const r=hd(t,n);r!==void 0&&e.add(r)};class n4{constructor(t){this._config=t4(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=c_(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),l_(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return eu(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return eu(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return eu(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,r=this.type;return eu(`${r}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){const r=this._scopeCache;let i=r.get(t);return(!i||n)&&(i=new Map,r.set(t,i)),i}getOptionScopes(t,n,r){const{options:i,type:o}=this,a=this._cachedScopes(t,r),s=a.get(n);if(s)return s;const l=new Set;n.forEach(u=>{t&&(l.add(t),u.forEach(d=>Ns(l,t,d))),u.forEach(d=>Ns(l,i,d)),u.forEach(d=>Ns(l,Qo[o]||{},d)),u.forEach(d=>Ns(l,Bt,d)),u.forEach(d=>Ns(l,hp,d))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),u_.has(n)&&a.set(n,c),c}chartOptionScopes(){const{options:t,type:n}=this;return[t,Qo[n]||{},Bt.datasets[n]||{},{type:n},Bt,hp]}resolveNamedOptions(t,n,r,i=[""]){const o={$shared:!0},{resolver:a,subPrefixes:s}=g1(this._resolverCache,t,i);let l=a;if(i4(a,n)){o.$shared=!1,r=ao(r)?r():r;const c=this.createResolver(t,r,s);l=is(a,r,c)}for(const c of n)o[c]=l[c];return o}createResolver(t,n,r=[""],i){const{resolver:o}=g1(this._resolverCache,t,r);return rt(n)?is(o,n,void 0,i):o}}function g1(e,t,n){let r=e.get(t);r||(r=new Map,e.set(t,r));const i=n.join();let o=r.get(i);return o||(o={resolver:pv(t,n),subPrefixes:n.filter(s=>!s.toLowerCase().includes("hover"))},r.set(i,o)),o}const r4=e=>rt(e)&&Object.getOwnPropertyNames(e).some(t=>ao(e[t]));function i4(e,t){const{isScriptable:n,isIndexable:r}=qE(e);for(const i of t){const o=n(i),a=r(i),s=(a||o)&&e[i];if(o&&(ao(s)||r4(s))||a&&ln(s))return!0}return!1}var o4="4.4.4";const a4=["top","bottom","left","right","chartArea"];function p1(e,t){return e==="top"||e==="bottom"||a4.indexOf(e)===-1&&t==="x"}function m1(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function v1(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),Ne(n&&n.onComplete,[e],t)}function s4(e){const t=e.chart,n=t.options.animation;Ne(n&&n.onProgress,[e],t)}function d_(e){return yv()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const Pu={},y1=e=>{const t=d_(e);return Object.values(Pu).filter(n=>n.canvas===t).pop()};function l4(e,t,n){const r=Object.keys(e);for(const i of r){const o=+i;if(o>=t){const a=e[i];delete e[i],(n>0||o>t)&&(e[o+n]=a)}}}function c4(e,t,n,r){return!n||e.type==="mouseout"?null:r?t:e}function tu(e,t,n){return e.options.clip?e[n]:t[n]}function u4(e,t){const{xScale:n,yScale:r}=e;return n&&r?{left:tu(n,t,"left"),right:tu(n,t,"right"),top:tu(r,t,"top"),bottom:tu(r,t,"bottom")}:t}var Fi;let cf=(Fi=class{static register(...t){ni.add(...t),b1()}static unregister(...t){ni.remove(...t),b1()}constructor(t,n){const r=this.config=new n4(n),i=d_(t),o=y1(i);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const a=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||MD(i)),this.platform.updateConfig(r);const s=this.platform.acquireContext(i,a.aspectRatio),l=s&&s.canvas,c=l&&l.height,u=l&&l.width;if(this.id=m5(),this.ctx=s,this.canvas=l,this.width=u,this.height=c,this._options=a,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new UD,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=A5(d=>this.update(d),a.resizeDelay||0),this._dataChanges=[],Pu[this.id]=this,!s||!l){console.error("Failed to create chart: can't acquire context from the given item");return}gi.listen(this,"complete",v1),gi.listen(this,"progress",s4),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:r,height:i,_aspectRatio:o}=this;return At(t)?n&&o?o:i?r/i:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return ni}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Vb(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return jb(this.canvas,this.ctx),this}stop(){return gi.stop(this),this}resize(t,n){gi.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){const r=this.options,i=this.canvas,o=r.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(i,t,n,o),s=r.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,Vb(this,s,!0)&&(this.notifyPlugins("resize",{size:a}),Ne(r.onResize,[this,a],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};We(n,(r,i)=>{r.id=i})}buildOrUpdateScales(){const t=this.options,n=t.scales,r=this.scales,i=Object.keys(r).reduce((a,s)=>(a[s]=!1,a),{});let o=[];n&&(o=o.concat(Object.keys(n).map(a=>{const s=n[a],l=vp(a,s),c=l==="r",u=l==="x";return{options:s,dposition:c?"chartArea":u?"bottom":"left",dtype:c?"radialLinear":u?"category":"linear"}}))),We(o,a=>{const s=a.options,l=s.id,c=vp(l,s),u=Ve(s.type,a.dtype);(s.position===void 0||p1(s.position,c)!==p1(a.dposition))&&(s.position=a.dposition),i[l]=!0;let d=null;if(l in r&&r[l].type===u)d=r[l];else{const f=ni.getScale(u);d=new f({id:l,type:u,ctx:this.ctx,chart:this}),r[d.id]=d}d.init(s,t)}),We(i,(a,s)=>{a||delete r[s]}),We(r,a=>{Cr.configure(this,a,a.options),Cr.addBox(this,a)})}_updateMetasets(){const t=this._metasets,n=this.data.datasets.length,r=t.length;if(t.sort((i,o)=>i.index-o.index),r>n){for(let i=n;in.length&&delete this._stacks,t.forEach((r,i)=>{n.filter(o=>o===r._dataset).length===0&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){const t=[],n=this.data.datasets;let r,i;for(this._removeUnreferencedMetasets(),r=0,i=n.length;r{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const n=this.config;n.update();const r=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let a=0;for(let c=0,u=this.data.datasets.length;c{c.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(m1("z","_idx"));const{_active:s,_lastEvent:l}=this;l?this._eventHandler(l,!0):s.length&&this._updateHoverStyles(s,s,!0),this.render()}_updateScales(){We(this.scales,t=>{Cr.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(t.events);(!$b(n,r)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(const{method:r,start:i,count:o}of n){const a=r==="_removeElements"?-o:o;l4(t,i,a)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,r=o=>new Set(t.filter(a=>a[0]===o).map((a,s)=>s+","+a.splice(1).join(","))),i=r(0);for(let o=1;oo.split(",")).map(o=>({method:o[1],start:+o[2],count:+o[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;Cr.update(this,this.width,this.height,t);const n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],We(this.boxes,i=>{r&&i.position==="chartArea"||(i.configure&&i.configure(),this._layers.push(...i._layers()))},this),this._layers.forEach((i,o)=>{i._idx=o}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,r=this.data.datasets.length;n=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const n=this.ctx,r=t._clip,i=!r.disabled,o=u4(t,this.chartArea),a={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",a)!==!1&&(i&&hv(n,{left:r.left===!1?0:o.left-r.left,right:r.right===!1?this.width:o.right+r.right,top:r.top===!1?0:o.top-r.top,bottom:r.bottom===!1?this.height:o.bottom+r.bottom}),t.controller.draw(),i&&gv(n),a.cancelable=!1,this.notifyPlugins("afterDatasetDraw",a))}isPointInArea(t){return Kl(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,r,i){const o=aD.modes[n];return typeof o=="function"?o(this,t,r,i):[]}getDatasetMeta(t){const n=this.data.datasets[t],r=this._metasets;let i=r.filter(o=>o&&o._dataset===n).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:t,_dataset:n,_parsed:[],_sorted:!1},r.push(i)),i}getContext(){return this.$context||(this.$context=na(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const n=this.data.datasets[t];if(!n)return!1;const r=this.getDatasetMeta(t);return typeof r.hidden=="boolean"?!r.hidden:!n.hidden}setDatasetVisibility(t,n){const r=this.getDatasetMeta(t);r.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,r){const i=r?"show":"hide",o=this.getDatasetMeta(t),a=o.controller._resolveAnimations(void 0,i);gd(n)?(o.data[n].hidden=!r,this.update()):(this.setDatasetVisibility(t,r),a.update(o,{visible:r}),this.update(s=>s.datasetIndex===t?i:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){const n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),gi.remove(this),t=0,n=this.data.datasets.length;t{n.addEventListener(this,o,a),t[o]=a},i=(o,a,s)=>{o.offsetX=a,o.offsetY=s,this._eventHandler(o)};We(this.options.events,o=>r(o,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,n=this.platform,r=(l,c)=>{n.addEventListener(this,l,c),t[l]=c},i=(l,c)=>{t[l]&&(n.removeEventListener(this,l,c),delete t[l])},o=(l,c)=>{this.canvas&&this.resize(l,c)};let a;const s=()=>{i("attach",s),this.attached=!0,this.resize(),r("resize",o),r("detach",a)};a=()=>{this.attached=!1,i("resize",o),this._stop(),this._resize(0,0),r("attach",s)},n.isAttached(this.canvas)?s():a()}unbindEvents(){We(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},We(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,r){const i=r?"set":"remove";let o,a,s,l;for(n==="dataset"&&(o=this.getDatasetMeta(t[0].datasetIndex),o.controller["_"+i+"DatasetHoverStyle"]()),s=0,l=t.length;s{const s=this.getDatasetMeta(o);if(!s)throw new Error("No dataset found at index "+o);return{datasetIndex:o,element:s.data[a],index:a}});!dd(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}notifyPlugins(t,n,r){return this._plugins.notify(this,t,n,r)}isPluginEnabled(t){return this._plugins._cache.filter(n=>n.plugin.id===t).length===1}_updateHoverStyles(t,n,r){const i=this.options.hover,o=(l,c)=>l.filter(u=>!c.some(d=>u.datasetIndex===d.datasetIndex&&u.index===d.index)),a=o(n,t),s=r?t:o(t,n);a.length&&this.updateHoverStyle(a,i.mode,!1),s.length&&i.mode&&this.updateHoverStyle(s,i.mode,!0)}_eventHandler(t,n){const r={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},i=a=>(a.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",r,i)===!1)return;const o=this._handleEvent(t,n,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,i),(o||r.changed)&&this.render(),this}_handleEvent(t,n,r){const{_active:i=[],options:o}=this,a=n,s=this._getActiveElements(t,i,r,a),l=w5(t),c=c4(t,this._lastEvent,r,l);r&&(this._lastEvent=null,Ne(o.onHover,[t,s,this],this),l&&Ne(o.onClick,[t,s,this],this));const u=!dd(s,i);return(u||n)&&(this._active=s,this._updateHoverStyles(s,i,n)),this._lastEvent=c,u}_getActiveElements(t,n,r,i){if(t.type==="mouseout")return[];if(!r)return n;const o=this.options.hover;return this.getElementsAtEventForMode(t,o.mode,o,i)}},ze(Fi,"defaults",Bt),ze(Fi,"instances",Pu),ze(Fi,"overrides",Qo),ze(Fi,"registry",ni),ze(Fi,"version",o4),ze(Fi,"getChart",y1),Fi);function b1(){return We(cf.instances,e=>e._plugins.invalidate())}function f_(e,t,n=t){e.lineCap=Ve(n.borderCapStyle,t.borderCapStyle),e.setLineDash(Ve(n.borderDash,t.borderDash)),e.lineDashOffset=Ve(n.borderDashOffset,t.borderDashOffset),e.lineJoin=Ve(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=Ve(n.borderWidth,t.borderWidth),e.strokeStyle=Ve(n.borderColor,t.borderColor)}function d4(e,t,n){e.lineTo(n.x,n.y)}function f4(e){return e.stepped?K5:e.tension||e.cubicInterpolationMode==="monotone"?Y5:d4}function h_(e,t,n={}){const r=e.length,{start:i=0,end:o=r-1}=n,{start:a,end:s}=t,l=Math.max(i,a),c=Math.min(o,s),u=is&&o>s;return{count:r,start:l,loop:t.loop,ilen:c(a+(c?s-S:S))%o,x=()=>{y!==b&&(e.lineTo(u,b),e.lineTo(u,y),e.lineTo(u,m))};for(l&&(p=i[g(0)],e.moveTo(p.x,p.y)),f=0;f<=s;++f){if(p=i[g(f)],p.skip)continue;const S=p.x,w=p.y,C=S|0;C===v?(wb&&(b=w),u=(d*u+S)/++d):(x(),e.lineTo(S,w),v=C,d=0,y=b=w),m=w}x()}function yp(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!n?g4:h4}function p4(e){return e.stepped?PL:e.tension||e.cubicInterpolationMode==="monotone"?$L:Oo}function m4(e,t,n,r){let i=t._path;i||(i=t._path=new Path2D,t.path(i,n,r)&&i.closePath()),f_(e,t.options),e.stroke(i)}function v4(e,t,n,r){const{segments:i,options:o}=t,a=yp(t);for(const s of i)f_(e,o,s.style),e.beginPath(),a(e,t,s,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}const y4=typeof Path2D=="function";function b4(e,t,n,r){y4&&!t.options.segment?m4(e,t,n,r):v4(e,t,n,r)}class Ws extends ra{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,n){const r=this.options;if((r.tension||r.cubicInterpolationMode==="monotone")&&!r.stepped&&!this._pointsUpdated){const i=r.spanGaps?this._loop:this._fullLoop;SL(this._points,r,t,i,n),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=DL(this,this.options.segment))}first(){const t=this.segments,n=this.points;return t.length&&n[t[0].start]}last(){const t=this.segments,n=this.points,r=t.length;return r&&n[t[r-1].end]}interpolate(t,n){const r=this.options,i=t[n],o=this.points,a=NL(this,{property:n,start:i,end:i});if(!a.length)return;const s=[],l=p4(r);let c,u;for(c=0,u=a.length;ct!=="borderDash"&&t!=="fill"});function x1(e,t,n,r){const i=e.options,{[n]:o}=e.getProps([n],r);return Math.abs(t-o){let{boxHeight:n=t,boxWidth:r=t}=e;return e.usePointStyle&&(n=Math.min(n,t),r=e.pointStyleWidth||Math.min(r,t)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(t,n)}},x4=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class w1 extends ra{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n,r){this.maxWidth=t,this.maxHeight=n,this._margins=r,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let n=Ne(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter(r=>t.filter(r,this.chart.data))),t.sort&&(n=n.sort((r,i)=>t.sort(r,i,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:t,ctx:n}=this;if(!t.display){this.width=this.height=0;return}const r=t.labels,i=Mn(r.font),o=i.size,a=this._computeTitleHeight(),{boxWidth:s,itemHeight:l}=S1(r,o);let c,u;n.font=i.string,this.isHorizontal()?(c=this.maxWidth,u=this._fitRows(a,o,s,l)+10):(u=this.maxHeight,c=this._fitCols(a,i,s,l)+10),this.width=Math.min(c,t.maxWidth||this.maxWidth),this.height=Math.min(u,t.maxHeight||this.maxHeight)}_fitRows(t,n,r,i){const{ctx:o,maxWidth:a,options:{labels:{padding:s}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],u=i+s;let d=t;o.textAlign="left",o.textBaseline="middle";let f=-1,p=-u;return this.legendItems.forEach((v,y)=>{const b=r+n/2+o.measureText(v.text).width;(y===0||c[c.length-1]+b+2*s>a)&&(d+=u,c[c.length-(y>0?0:1)]=0,p+=u,f++),l[y]={left:0,top:p,row:f,width:b,height:i},c[c.length-1]+=b+s}),d}_fitCols(t,n,r,i){const{ctx:o,maxHeight:a,options:{labels:{padding:s}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],u=a-t;let d=s,f=0,p=0,v=0,y=0;return this.legendItems.forEach((b,m)=>{const{itemWidth:g,itemHeight:x}=S4(r,n,o,b,i);m>0&&p+x+2*s>u&&(d+=f+s,c.push({width:f,height:p}),v+=f+s,y++,f=p=0),l[m]={left:v,top:p,col:y,width:g,height:x},f=Math.max(f,g),p+=x+s}),d+=f,c.push({width:f,height:p}),d}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:r,labels:{padding:i},rtl:o}}=this,a=Va(o,this.left,this.width);if(this.isHorizontal()){let s=0,l=_n(r,this.left+i,this.right-this.lineWidths[s]);for(const c of n)s!==c.row&&(s=c.row,l=_n(r,this.left+i,this.right-this.lineWidths[s])),c.top+=this.top+t+i,c.left=a.leftForLtr(a.x(l),c.width),l+=c.width+i}else{let s=0,l=_n(r,this.top+t+i,this.bottom-this.columnSizes[s].height);for(const c of n)c.col!==s&&(s=c.col,l=_n(r,this.top+t+i,this.bottom-this.columnSizes[s].height)),c.top=l,c.left+=this.left+i,c.left=a.leftForLtr(a.x(c.left),c.width),l+=c.height+i}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;hv(t,this),this._draw(),gv(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:r,ctx:i}=this,{align:o,labels:a}=t,s=Bt.color,l=Va(t.rtl,this.left,this.width),c=Mn(a.font),{padding:u}=a,d=c.size,f=d/2;let p;this.drawTitle(),i.textAlign=l.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=c.string;const{boxWidth:v,boxHeight:y,itemHeight:b}=S1(a,d),m=function(C,_,M){if(isNaN(v)||v<=0||isNaN(y)||y<0)return;i.save();const T=Ve(M.lineWidth,1);if(i.fillStyle=Ve(M.fillStyle,s),i.lineCap=Ve(M.lineCap,"butt"),i.lineDashOffset=Ve(M.lineDashOffset,0),i.lineJoin=Ve(M.lineJoin,"miter"),i.lineWidth=T,i.strokeStyle=Ve(M.strokeStyle,s),i.setLineDash(Ve(M.lineDash,[])),a.usePointStyle){const P={radius:y*Math.SQRT2/2,pointStyle:M.pointStyle,rotation:M.rotation,borderWidth:T},F=l.xPlus(C,v/2),D=_+f;UE(i,P,F,D,a.pointStyleWidth&&v)}else{const P=_+Math.max((d-y)/2,0),F=l.leftForLtr(C,v),D=dl(M.borderRadius);i.beginPath(),Object.values(D).some(z=>z!==0)?pp(i,{x:F,y:P,w:v,h:y,radius:D}):i.rect(F,P,v,y),i.fill(),T!==0&&i.stroke()}i.restore()},g=function(C,_,M){Yl(i,M.text,C,_+b/2,c,{strikethrough:M.hidden,textAlign:l.textAlign(M.textAlign)})},x=this.isHorizontal(),S=this._computeTitleHeight();x?p={x:_n(o,this.left+u,this.right-r[0]),y:this.top+u+S,line:0}:p={x:this.left+u,y:_n(o,this.top+S+u,this.bottom-n[0].height),line:0},ZE(this.ctx,t.textDirection);const w=b+u;this.legendItems.forEach((C,_)=>{i.strokeStyle=C.fontColor,i.fillStyle=C.fontColor;const M=i.measureText(C.text).width,T=l.textAlign(C.textAlign||(C.textAlign=a.textAlign)),P=v+f+M;let F=p.x,D=p.y;l.setWidth(this.width),x?_>0&&F+P+u>this.right&&(D=p.y+=w,p.line++,F=p.x=_n(o,this.left+u,this.right-r[p.line])):_>0&&D+w>this.bottom&&(F=p.x=F+n[p.line].width+u,p.line++,D=p.y=_n(o,this.top+S+u,this.bottom-n[p.line].height));const z=l.x(F);if(m(z,D,C),F=L5(T,F+v+f,x?F+P:this.right,t.rtl),g(l.x(F),D,C),x)p.x+=P+u;else if(typeof C.text!="string"){const j=c.lineHeight;p.y+=g_(C,j)+u}else p.y+=w}),JE(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,r=Mn(n.font),i=Pr(n.padding);if(!n.display)return;const o=Va(t.rtl,this.left,this.width),a=this.ctx,s=n.position,l=r.size/2,c=i.top+l;let u,d=this.left,f=this.width;if(this.isHorizontal())f=Math.max(...this.lineWidths),u=this.top+c,d=_n(t.align,d,this.right-f);else{const v=this.columnSizes.reduce((y,b)=>Math.max(y,b.height),0);u=c+_n(t.align,this.top,this.bottom-v-t.labels.padding-this._computeTitleHeight())}const p=_n(s,d,d+f);a.textAlign=o.textAlign(dv(s)),a.textBaseline="middle",a.strokeStyle=n.color,a.fillStyle=n.color,a.font=r.string,Yl(a,n.text,p,u,r)}_computeTitleHeight(){const t=this.options.title,n=Mn(t.font),r=Pr(t.padding);return t.display?n.lineHeight+r.height:0}_getLegendItemAt(t,n){let r,i,o;if(Bs(t,this.left,this.right)&&Bs(n,this.top,this.bottom)){for(o=this.legendHitBoxes,r=0;ro.length>a.length?o:a)),t+n.size/2+r.measureText(i).width}function C4(e,t,n){let r=e;return typeof t.text!="string"&&(r=g_(t,n)),r}function g_(e,t){const n=e.text?e.text.length:0;return t*n}function E4(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var _4={id:"legend",_element:w1,start(e,t,n){const r=e.legend=new w1({ctx:e.ctx,options:n,chart:e});Cr.configure(e,r,n),Cr.addBox(e,r)},stop(e){Cr.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const r=e.legend;Cr.configure(e,r,n),r.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const r=t.datasetIndex,i=n.chart;i.isDatasetVisible(r)?(i.hide(r),t.hidden=!0):(i.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:i,color:o,useBorderRadius:a,borderRadius:s}}=e.legend.options;return e._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(n?0:void 0),u=Pr(c.borderWidth);return{text:t[l.index].label,fillStyle:c.backgroundColor,fontColor:o,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(u.width+u.height)/4,strokeStyle:c.borderColor,pointStyle:r||c.pointStyle,rotation:c.rotation,textAlign:i||c.textAlign,borderRadius:a&&(s||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class p_ extends ra{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n){const r=this.options;if(this.left=0,this.top=0,!r.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=n;const i=ln(r.text)?r.text.length:1;this._padding=Pr(r.padding);const o=i*Mn(r.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:n,left:r,bottom:i,right:o,options:a}=this,s=a.align;let l=0,c,u,d;return this.isHorizontal()?(u=_n(s,r,o),d=n+t,c=o-r):(a.position==="left"?(u=r+t,d=_n(s,i,n),l=dn*-.5):(u=o-t,d=_n(s,n,i),l=dn*.5),c=i-n),{titleX:u,titleY:d,maxWidth:c,rotation:l}}draw(){const t=this.ctx,n=this.options;if(!n.display)return;const r=Mn(n.font),o=r.lineHeight/2+this._padding.top,{titleX:a,titleY:s,maxWidth:l,rotation:c}=this._drawArgs(o);Yl(t,n.text,0,0,r,{color:n.color,maxWidth:l,rotation:c,textAlign:dv(n.align),textBaseline:"middle",translation:[a,s]})}}function O4(e,t){const n=new p_({ctx:e.ctx,options:t,chart:e});Cr.configure(e,n,t),Cr.addBox(e,n),e.titleBlock=n}var M4={id:"title",_element:p_,start(e,t,n){O4(e,n)},stop(e){const t=e.titleBlock;Cr.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const r=e.titleBlock;Cr.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Us={average(e){if(!e.length)return!1;let t,n,r=new Set,i=0,o=0;for(t=0,n=e.length;ts+l)/r.size,y:i/o}},nearest(e,t){if(!e.length)return!1;let n=t.x,r=t.y,i=Number.POSITIVE_INFINITY,o,a,s;for(o=0,a=e.length;o-1?e.split(` +`):e}function T4(e,t){const{element:n,datasetIndex:r,index:i}=t,o=e.getDatasetMeta(r).controller,{label:a,value:s}=o.getLabelAndValue(i);return{chart:e,label:a,parsed:o.getParsed(i),raw:e.data.datasets[r].data[i],formattedValue:s,dataset:o.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function C1(e,t){const n=e.chart.ctx,{body:r,footer:i,title:o}=e,{boxWidth:a,boxHeight:s}=t,l=Mn(t.bodyFont),c=Mn(t.titleFont),u=Mn(t.footerFont),d=o.length,f=i.length,p=r.length,v=Pr(t.padding);let y=v.height,b=0,m=r.reduce((S,w)=>S+w.before.length+w.lines.length+w.after.length,0);if(m+=e.beforeBody.length+e.afterBody.length,d&&(y+=d*c.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),m){const S=t.displayColors?Math.max(s,l.lineHeight):l.lineHeight;y+=p*S+(m-p)*l.lineHeight+(m-1)*t.bodySpacing}f&&(y+=t.footerMarginTop+f*u.lineHeight+(f-1)*t.footerSpacing);let g=0;const x=function(S){b=Math.max(b,n.measureText(S).width+g)};return n.save(),n.font=c.string,We(e.title,x),n.font=l.string,We(e.beforeBody.concat(e.afterBody),x),g=t.displayColors?a+2+t.boxPadding:0,We(r,S=>{We(S.before,x),We(S.lines,x),We(S.after,x)}),g=0,n.font=u.string,We(e.footer,x),n.restore(),b+=v.width,{width:b,height:y}}function P4(e,t){const{y:n,height:r}=t;return ne.height-r/2?"bottom":"center"}function $4(e,t,n,r){const{x:i,width:o}=r,a=n.caretSize+n.caretPadding;if(e==="left"&&i+o+a>t.width||e==="right"&&i-o-a<0)return!0}function R4(e,t,n,r){const{x:i,width:o}=n,{width:a,chartArea:{left:s,right:l}}=e;let c="center";return r==="center"?c=i<=(s+l)/2?"left":"right":i<=o/2?c="left":i>=a-o/2&&(c="right"),$4(c,e,t,n)&&(c="center"),c}function E1(e,t,n){const r=n.yAlign||t.yAlign||P4(e,n);return{xAlign:n.xAlign||t.xAlign||R4(e,t,n,r),yAlign:r}}function k4(e,t){let{x:n,width:r}=e;return t==="right"?n-=r:t==="center"&&(n-=r/2),n}function I4(e,t,n){let{y:r,height:i}=e;return t==="top"?r+=n:t==="bottom"?r-=i+n:r-=i/2,r}function _1(e,t,n,r){const{caretSize:i,caretPadding:o,cornerRadius:a}=e,{xAlign:s,yAlign:l}=n,c=i+o,{topLeft:u,topRight:d,bottomLeft:f,bottomRight:p}=dl(a);let v=k4(t,s);const y=I4(t,l,c);return l==="center"?s==="left"?v+=c:s==="right"&&(v-=c):s==="left"?v-=Math.max(u,f)+i:s==="right"&&(v+=Math.max(d,p)+i),{x:wr(v,0,r.width-t.width),y:wr(y,0,r.height-t.height)}}function nu(e,t,n){const r=Pr(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-r.right:e.x+r.left}function O1(e){return ei([],pi(e))}function F4(e,t,n){return na(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function M1(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const m_={beforeTitle:hi,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex"u"?m_[t].call(n,r):i}class bp extends ra{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const n=this.chart,r=this.options.setContext(this.getContext()),i=r.enabled&&n.options.animation&&r.animations,o=new t_(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=F4(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:r}=n,i=Vn(r,"beforeTitle",this,t),o=Vn(r,"title",this,t),a=Vn(r,"afterTitle",this,t);let s=[];return s=ei(s,pi(i)),s=ei(s,pi(o)),s=ei(s,pi(a)),s}getBeforeBody(t,n){return O1(Vn(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:r}=n,i=[];return We(t,o=>{const a={before:[],lines:[],after:[]},s=M1(r,o);ei(a.before,pi(Vn(s,"beforeLabel",this,o))),ei(a.lines,Vn(s,"label",this,o)),ei(a.after,pi(Vn(s,"afterLabel",this,o))),i.push(a)}),i}getAfterBody(t,n){return O1(Vn(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:r}=n,i=Vn(r,"beforeFooter",this,t),o=Vn(r,"footer",this,t),a=Vn(r,"afterFooter",this,t);let s=[];return s=ei(s,pi(i)),s=ei(s,pi(o)),s=ei(s,pi(a)),s}_createItems(t){const n=this._active,r=this.chart.data,i=[],o=[],a=[];let s=[],l,c;for(l=0,c=n.length;lt.filter(u,d,f,r))),t.itemSort&&(s=s.sort((u,d)=>t.itemSort(u,d,r))),We(s,u=>{const d=M1(t.callbacks,u);i.push(Vn(d,"labelColor",this,u)),o.push(Vn(d,"labelPointStyle",this,u)),a.push(Vn(d,"labelTextColor",this,u))}),this.labelColors=i,this.labelPointStyles=o,this.labelTextColors=a,this.dataPoints=s,s}update(t,n){const r=this.options.setContext(this.getContext()),i=this._active;let o,a=[];if(!i.length)this.opacity!==0&&(o={opacity:0});else{const s=Us[r.position].call(this,i,this._eventPosition);a=this._createItems(r),this.title=this.getTitle(a,r),this.beforeBody=this.getBeforeBody(a,r),this.body=this.getBody(a,r),this.afterBody=this.getAfterBody(a,r),this.footer=this.getFooter(a,r);const l=this._size=C1(this,r),c=Object.assign({},s,l),u=E1(this.chart,r,c),d=_1(r,c,u,this.chart);this.xAlign=u.xAlign,this.yAlign=u.yAlign,o={opacity:1,x:d.x,y:d.y,width:l.width,height:l.height,caretX:s.x,caretY:s.y}}this._tooltipItems=a,this.$context=void 0,o&&this._resolveAnimations().update(this,o),t&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,r,i){const o=this.getCaretPosition(t,r,i);n.lineTo(o.x1,o.y1),n.lineTo(o.x2,o.y2),n.lineTo(o.x3,o.y3)}getCaretPosition(t,n,r){const{xAlign:i,yAlign:o}=this,{caretSize:a,cornerRadius:s}=r,{topLeft:l,topRight:c,bottomLeft:u,bottomRight:d}=dl(s),{x:f,y:p}=t,{width:v,height:y}=n;let b,m,g,x,S,w;return o==="center"?(S=p+y/2,i==="left"?(b=f,m=b-a,x=S+a,w=S-a):(b=f+v,m=b+a,x=S-a,w=S+a),g=b):(i==="left"?m=f+Math.max(l,u)+a:i==="right"?m=f+v-Math.max(c,d)-a:m=this.caretX,o==="top"?(x=p,S=x-a,b=m-a,g=m+a):(x=p+y,S=x+a,b=m+a,g=m-a),w=x),{x1:b,x2:m,x3:g,y1:x,y2:S,y3:w}}drawTitle(t,n,r){const i=this.title,o=i.length;let a,s,l;if(o){const c=Va(r.rtl,this.x,this.width);for(t.x=nu(this,r.titleAlign,r),n.textAlign=c.textAlign(r.titleAlign),n.textBaseline="middle",a=Mn(r.titleFont),s=r.titleSpacing,n.fillStyle=r.titleColor,n.font=a.string,l=0;lg!==0)?(t.beginPath(),t.fillStyle=o.multiKeyBackground,pp(t,{x:y,y:v,w:c,h:l,radius:m}),t.fill(),t.stroke(),t.fillStyle=a.backgroundColor,t.beginPath(),pp(t,{x:b,y:v+1,w:c-2,h:l-2,radius:m}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(y,v,c,l),t.strokeRect(y,v,c,l),t.fillStyle=a.backgroundColor,t.fillRect(b,v+1,c-2,l-2))}t.fillStyle=this.labelTextColors[r]}drawBody(t,n,r){const{body:i}=this,{bodySpacing:o,bodyAlign:a,displayColors:s,boxHeight:l,boxWidth:c,boxPadding:u}=r,d=Mn(r.bodyFont);let f=d.lineHeight,p=0;const v=Va(r.rtl,this.x,this.width),y=function(M){n.fillText(M,v.x(t.x+p),t.y+f/2),t.y+=f+o},b=v.textAlign(a);let m,g,x,S,w,C,_;for(n.textAlign=a,n.textBaseline="middle",n.font=d.string,t.x=nu(this,b,r),n.fillStyle=r.bodyColor,We(this.beforeBody,y),p=s&&b!=="right"?a==="center"?c/2+u:c+2+u:0,S=0,C=i.length;S0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,r=this.$animations,i=r&&r.x,o=r&&r.y;if(i||o){const a=Us[t.position].call(this,this._active,this._eventPosition);if(!a)return;const s=this._size=C1(this,t),l=Object.assign({},a,this._size),c=E1(n,t,l),u=_1(t,l,c,n);(i._to!==u.x||o._to!==u.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=s.width,this.height=s.height,this.caretX=a.x,this.caretY=a.y,this._resolveAnimations().update(this,u))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(n);const i={width:this.width,height:this.height},o={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const a=Pr(n.padding),s=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&s&&(t.save(),t.globalAlpha=r,this.drawBackground(o,t,i,n),ZE(t,n.textDirection),o.y+=a.top,this.drawTitle(o,t,n),this.drawBody(o,t,n),this.drawFooter(o,t,n),JE(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const r=this._active,i=t.map(({datasetIndex:s,index:l})=>{const c=this.chart.getDatasetMeta(s);if(!c)throw new Error("Cannot find a dataset at index "+s);return{datasetIndex:s,element:c.data[l],index:l}}),o=!dd(r,i),a=this._positionChanged(i,n);(o||a)&&(this._active=i,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,o=this._active||[],a=this._getActiveElements(t,o,n,r),s=this._positionChanged(a,t),l=n||!dd(a,o)||s;return l&&(this._active=a,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),l}_getActiveElements(t,n,r,i){const o=this.options;if(t.type==="mouseout")return[];if(!i)return n.filter(s=>this.chart.data.datasets[s.datasetIndex]&&this.chart.getDatasetMeta(s.datasetIndex).controller.getParsed(s.index)!==void 0);const a=this.chart.getElementsAtEventForMode(t,o.mode,o,r);return o.reverse&&a.reverse(),a}_positionChanged(t,n){const{caretX:r,caretY:i,options:o}=this,a=Us[o.position].call(this,t,n);return a!==!1&&(r!==a.x||i!==a.y)}}ze(bp,"positioners",Us);var N4={id:"tooltip",_element:bp,positioners:Us,afterInit(e,t,n){n&&(e.tooltip=new bp({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:m_},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const A4=(e,t,n,r)=>(typeof t=="string"?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function L4(e,t,n,r){const i=e.indexOf(t);if(i===-1)return A4(e,t,n,r);const o=e.lastIndexOf(t);return i!==o?n:i}const D4=(e,t)=>e===null?null:wr(Math.round(e),0,t);function T1(e){const t=this.getLabels();return e>=0&&en.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}ze(xp,"id","category"),ze(xp,"defaults",{ticks:{callback:T1}});function z4(e,t){const n=[],{bounds:i,step:o,min:a,max:s,precision:l,count:c,maxTicks:u,maxDigits:d,includeBounds:f}=e,p=o||1,v=u-1,{min:y,max:b}=t,m=!At(a),g=!At(s),x=!At(c),S=(b-y)/(d+1);let w=kb((b-y)/v/p)*p,C,_,M,T;if(w<1e-14&&!m&&!g)return[{value:y},{value:b}];T=Math.ceil(b/w)-Math.floor(y/w),T>v&&(w=kb(T*w/v/p)*p),At(l)||(C=Math.pow(10,l),w=Math.ceil(w*C)/C),i==="ticks"?(_=Math.floor(y/w)*w,M=Math.ceil(b/w)*w):(_=y,M=b),m&&g&&o&&O5((s-a)/o,w/1e3)?(T=Math.round(Math.min((s-a)/w,u)),w=(s-a)/T,_=a,M=s):x?(_=m?a:_,M=g?s:M,T=c-1,w=(M-_)/T):(T=(M-_)/w,ll(T,Math.round(T),w/1e3)?T=Math.round(T):T=Math.ceil(T));const P=Math.max(Ib(w),Ib(_));C=Math.pow(10,At(l)?P:l),_=Math.round(_*C)/C,M=Math.round(M*C)/C;let F=0;for(m&&(f&&_!==a?(n.push({value:a}),_s)break;n.push({value:D})}return g&&f&&M!==s?n.length&&ll(n[n.length-1].value,s,P1(s,S,e))?n[n.length-1].value=s:n.push({value:s}):(!g||M===s)&&n.push({value:M}),n}function P1(e,t,{horizontal:n,minRotation:r}){const i=Fo(r),o=(n?Math.sin(i):Math.cos(i))||.001,a=.75*t*(""+e).length;return Math.min(t/o,a)}class j4 extends ps{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,n){return At(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:n,maxDefined:r}=this.getUserBounds();let{min:i,max:o}=this;const a=l=>i=n?i:l,s=l=>o=r?o:l;if(t){const l=so(i),c=so(o);l<0&&c<0?s(0):l>0&&c>0&&a(0)}if(i===o){let l=o===0?1:Math.abs(o*.05);s(o+l),t||a(i-l)}this.min=i,this.max=o}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:r}=t,i;return r?(i=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,i>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${i} ticks. Limiting to 1000.`),i=1e3)):(i=this.computeTickLimit(),n=n||11),n&&(i=Math.min(n,i)),i}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,n=t.ticks;let r=this.getTickLimit();r=Math.max(2,r);const i={maxTicks:r,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},o=this._range||this,a=z4(i,o);return t.bounds==="ticks"&&M5(a,this,"value"),t.reverse?(a.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),a}configure(){const t=this.ticks;let n=this.min,r=this.max;if(super.configure(),this.options.offset&&t.length){const i=(r-n)/Math.max(t.length-1,1)/2;n-=i,r+=i}this._startValue=n,this._endValue=r,this._valueRange=r-n}getLabelForValue(t){return BE(t,this.chart.options.locale,this.options.ticks.format)}}class Sp extends j4{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=Tr(t)?t:0,this.max=Tr(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,r=Fo(this.options.ticks.minRotation),i=(t?Math.sin(r):Math.cos(r))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,o.lineHeight/i))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}ze(Sp,"id","linear"),ze(Sp,"defaults",{ticks:{callback:WE.formatters.numeric}});const uf={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},qn=Object.keys(uf);function $1(e,t){return e-t}function R1(e,t){if(At(t))return null;const n=e._adapter,{parser:r,round:i,isoWeekday:o}=e._parseOpts;let a=t;return typeof r=="function"&&(a=r(a)),Tr(a)||(a=typeof r=="string"?n.parse(a,r):n.parse(a)),a===null?null:(i&&(a=i==="week"&&(Xl(o)||o===!0)?n.startOf(a,"isoWeek",o):n.startOf(a,i)),+a)}function k1(e,t,n,r){const i=qn.length;for(let o=qn.indexOf(e);o=qn.indexOf(n);o--){const a=qn[o];if(uf[a].common&&e._adapter.diff(i,r,a)>=t-1)return a}return qn[n?qn.indexOf(n):0]}function B4(e){for(let t=qn.indexOf(e)+1,n=qn.length;t=t?n[r]:n[i];e[o]=!0}}function V4(e,t,n,r){const i=e._adapter,o=+i.startOf(t[0].value,r),a=t[t.length-1].value;let s,l;for(s=o;s<=a;s=+i.add(s,1,r))l=n[s],l>=0&&(t[l].major=!0);return t}function F1(e,t,n){const r=[],i={},o=t.length;let a,s;for(a=0;a+t.value))}initOffsets(t=[]){let n=0,r=0,i,o;this.options.offset&&t.length&&(i=this.getDecimalForValue(t[0]),t.length===1?n=1-i:n=(this.getDecimalForValue(t[1])-i)/2,o=this.getDecimalForValue(t[t.length-1]),t.length===1?r=o:r=(o-this.getDecimalForValue(t[t.length-2]))/2);const a=t.length<3?.5:.25;n=wr(n,0,a),r=wr(r,0,a),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const t=this._adapter,n=this.min,r=this.max,i=this.options,o=i.time,a=o.unit||k1(o.minUnit,n,r,this._getLabelCapacity(n)),s=Ve(i.ticks.stepSize,1),l=a==="week"?o.isoWeekday:!1,c=Xl(l)||l===!0,u={};let d=n,f,p;if(c&&(d=+t.startOf(d,"isoWeek",l)),d=+t.startOf(d,c?"day":a),t.diff(r,n,a)>1e5*s)throw new Error(n+" and "+r+" are too far apart with stepSize of "+s+" "+a);const v=i.ticks.source==="data"&&this.getDataTimestamps();for(f=d,p=0;f+y)}getLabelForValue(t){const n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(t,r.tooltipFormat):n.format(t,r.displayFormats.datetime)}format(t,n){const i=this.options.time.displayFormats,o=this._unit,a=n||i[o];return this._adapter.format(t,a)}_tickFormatFunction(t,n,r,i){const o=this.options,a=o.ticks.callback;if(a)return Ne(a,[t,n,r],this);const s=o.time.displayFormats,l=this._unit,c=this._majorUnit,u=l&&s[l],d=c&&s[c],f=r[n],p=c&&d&&f&&f.major;return this._adapter.format(t,i||(p?d:u))}generateTickLabels(t){let n,r,i;for(n=0,r=t.length;n0?s:1}getDataTimestamps(){let t=this._cache.data||[],n,r;if(t.length)return t;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(n=0,r=i.length;n=e[r].pos&&t<=e[i].pos&&({lo:r,hi:i}=No(e,"pos",t)),{pos:o,time:s}=e[r],{pos:a,time:l}=e[i]):(t>=e[r].time&&t<=e[i].time&&({lo:r,hi:i}=No(e,"time",t)),{time:o,pos:s}=e[r],{time:a,pos:l}=e[i]);const c=a-o;return c?s+(l-s)*(t-o)/c:s}class N1 extends yd{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=ru(n,this.min),this._tableRange=ru(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:r}=this,i=[],o=[];let a,s,l,c,u;for(a=0,s=t.length;a=n&&c<=r&&i.push(c);if(i.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(a=0,s=i.length;ai-o)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const n=this.getDataTimestamps(),r=this.getLabelTimestamps();return n.length&&r.length?t=this.normalize(n.concat(r)):t=n.length?n:r,t=this._cache.all=t,t}getDecimalForValue(t){return(ru(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return ru(this._table,r*this._tableRange+this._minPos,!0)}}ze(N1,"id","timeseries"),ze(N1,"defaults",yd.defaults);const v_="label";function A1(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function W4(e,t){const n=e.options;n&&t&&Object.assign(n,t)}function y_(e,t){e.labels=t}function b_(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:v_;const r=[];e.datasets=t.map(i=>{const o=e.datasets.find(a=>a[n]===i[n]);return!o||!i.data||r.includes(o)?{...i}:(r.push(o),Object.assign(o,i),o)})}function U4(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:v_;const n={labels:[],datasets:[]};return y_(n,e.labels),b_(n,e.datasets,t),n}function G4(e,t){const{height:n=150,width:r=300,redraw:i=!1,datasetIdKey:o,type:a,data:s,options:l,plugins:c=[],fallbackContent:u,updateMode:d,...f}=e,p=h.useRef(null),v=h.useRef(),y=()=>{p.current&&(v.current=new cf(p.current,{type:a,data:U4(s,o),options:l&&{...l},plugins:c}),A1(t,v.current))},b=()=>{A1(t,null),v.current&&(v.current.destroy(),v.current=null)};return h.useEffect(()=>{!i&&v.current&&l&&W4(v.current,l)},[i,l]),h.useEffect(()=>{!i&&v.current&&y_(v.current.config.data,s.labels)},[i,s.labels]),h.useEffect(()=>{!i&&v.current&&s.datasets&&b_(v.current.config.data,s.datasets,o)},[i,s.datasets]),h.useEffect(()=>{v.current&&(i?(b(),setTimeout(y)):v.current.update(d))},[i,l,s.labels,s.datasets,d]),h.useEffect(()=>{v.current&&(b(),setTimeout(y))},[a]),h.useEffect(()=>(y(),()=>b()),[]),de.createElement("canvas",Object.assign({ref:p,role:"img",height:n,width:r},f),u)}const q4=h.forwardRef(G4);function X4(e,t){return cf.register(t),h.forwardRef((n,r)=>de.createElement(q4,Object.assign({},n,{ref:r,type:e})))}const K4=X4("line",Mu);function Y4({currency:e,data:t}){if(!t.length)return null;const n=["Today",...Array.from({length:t[0].plan.years*12},(i,o)=>`Year ${Math.floor(o/12)} Month ${o%12+1}`)],r=t.map(i=>({label:i.platform.name,data:i.portfolioValues,borderColor:i.platform.color,backgroundColor:`${i.platform.color}70`}));return Te.jsx(K4,{data:{labels:n,datasets:[...r,{label:"Invested Amount",data:t[0].investedValues,borderColor:"#d0d0d0",backgroundColor:"#d0d0d070",borderDash:[5,5]}]},options:{animation:!1,interaction:{intersect:!1,mode:"index"},elements:{point:{radius:0}},scales:{x:{ticks:{callback:(i,o)=>o%12===0?`Year ${o/12}`:""}},y:{ticks:{callback:i=>`${i.toLocaleString()} ${e}`}}},plugins:{legend:{position:"bottom"},tooltip:{callbacks:{label:i=>{const o=i.dataset.label,a=i.parsed.y;return`${o}: ${a.toLocaleString()} ${e}`}}},zoom:{zoom:{drag:{enabled:!0},wheel:{enabled:!0},pinch:{enabled:!0},mode:"x"}}}}})}const bd=(e,t,n)=>typeof n=="function"?n(e,t):n,L1=(e,t,n,r)=>{const i=bd(n,t,r.fixedFee),o=bd(n,t,r.percentageFee)/100;return e*(1-o)-i},Q4=(e,t,n)=>{const i=bd(t,e,n.annualPercentageFee)/100/12;return e*(1-i)},Z4=(e,t)=>{const n=(1+e.averageAnnualReturn/100)**.08333333333333333,r=[bd(e,0,e.baseInvestment)],i=[L1(e.baseInvestment,0,e,t)];for(let o=0;o{let n=0;e.years>=15?n=.4:e.years>=10?n=.3:e.years>=7?n=.25:e.years>=5&&(n=.2);let r=1;return t>5e6?r=.4:t>1e6?r=.6:t>5e5&&(r=.8),r*(1-n)}},patria:{name:"Patria",color:"#f59100",fixedFee:0,percentageFee:.8,annualPercentageFee:0},t212:{name:"T212",color:"#00a7e1",fixedFee:0,percentageFee:.15,annualPercentageFee:0},ibkr:{name:"IBKR",color:"#d91222",fixedFee:e=>e.numberOfProducts*J4,percentageFee:.03,annualPercentageFee:0},nofees:{name:"0% fees",color:"#d0d0d0",fixedFee:0,percentageFee:0,annualPercentageFee:0}};function e3(){return Te.jsxs(Pi.Footer,{className:"bg-white",children:[Te.jsx("p",{className:"text-center text-sm text-gray-500 mb-3",children:"Disclaimer: This tool is for illustrative purposes only. The actual returns may vary. The tool does not take into account taxes, inflation, or other factors that may affect the investment. The tool is not investment advice."}),Te.jsxs("p",{className:"text-center text-sm text-gray-500",children:["Built with"," ",Te.jsxs("a",{href:"https://react.dev/",target:"_blank",rel:"noopener noreferrer",children:["React ",Te.jsx(qA,{})]})," ","and"," ",Te.jsxs("a",{href:"https://ant.design/",target:"_blank",rel:"noopener noreferrer",children:["Ant Design ",Te.jsx(HA,{})]}),"."]})]})}function t3(){return Te.jsx(Pi.Header,{className:"flex bg-white items-center",children:Te.jsx(Km,{iconPosition:"end",icon:Te.jsx(WA,{}),href:"https://github.com/sentisso/investment-plan",target:"_blank",className:"ml-auto",children:"See this on GitHub"})})}function n3(){const[e,t]=h.useState({years:14,baseInvestment:3e4,monthlyInvestment:8e3,averageAnnualReturn:9.5,numberOfProducts:8}),[n]=h.useState("Kč"),r=h.useMemo(()=>{const o=[];for(const a in D1){const s=Z4(e,D1[a]);o.push(s)}return o},[e]),i=(o,a)=>{t(s=>({...s,[o]:a}))};return Te.jsxs(Pi,{className:"max-w-screen-xl mx-auto bg-white",children:[Te.jsx(t3,{}),Te.jsxs(Pi.Content,{children:[Te.jsxs("h1",{className:"text-3xl mb-10 font-bold text-center",children:["Investment Growth Over ",e.years," Years"]}),Te.jsx(Y4,{data:r,currency:n}),Te.jsxs(Un,{layout:"vertical",children:[Te.jsx(Un.Item,{label:Te.jsxs("span",{children:["Base Investment"," ",Te.jsx(Hi,{title:"The one-time investment you plan to make.",children:Te.jsx(ba,{})})]}),children:Te.jsx(ya,{min:0,step:1e3,value:e.baseInvestment,onChange:o=>o!=null&&i("baseInvestment",o),addonAfter:n})}),Te.jsx(Un.Item,{label:Te.jsxs("span",{children:["Monthly Investment"," ",Te.jsx(Hi,{title:"The amount of money you plan to invest each month.",children:Te.jsx(ba,{})})]}),children:Te.jsx(ya,{min:0,step:100,value:e.monthlyInvestment,onChange:o=>o!=null&&i("monthlyInvestment",o),addonAfter:n})}),Te.jsx(Un.Item,{label:Te.jsxs("span",{children:["Average Annual Return"," ",Te.jsx(Hi,{title:"The expected average annual return rate.",children:Te.jsx(ba,{})})]}),children:Te.jsx(ya,{min:0,max:100,step:.1,value:e.averageAnnualReturn,onChange:o=>o!=null&&i("averageAnnualReturn",o),addonAfter:"%"})}),Te.jsx(Un.Item,{label:Te.jsxs("span",{children:["Years investing"," ",Te.jsx(Hi,{title:"The number of years you plan to invest. This also affects Portu fees.",children:Te.jsx(ba,{})})]}),children:Te.jsxs(xE,{children:[Te.jsx(cd,{span:8,children:Te.jsx(QN,{min:1,max:50,onChange:o=>o!=null&&i("years",o),value:e.years})}),Te.jsx(cd,{span:4,children:Te.jsx(ya,{min:1,max:50,value:e.years,onChange:o=>o!=null&&i("years",o)})})]})}),Te.jsx(Un.Item,{label:Te.jsxs("span",{children:["Number of investment products"," ",Te.jsx(Hi,{title:"The number of investment products you plan to have in your portfolio (e.g. number of ETFs). This affects the IBKR fee.",children:Te.jsx(ba,{})})]}),children:Te.jsx(ya,{min:1,step:1,value:e.numberOfProducts,onChange:o=>o!=null&&i("numberOfProducts",o)})})]})]}),Te.jsx(e3,{})]})}var x_={exports:{}};/*! Hammer.JS - v2.0.7 - 2016-04-22 + * http://hammerjs.github.io/ + * + * Copyright (c) 2016 Jorik Tangelder; + * Licensed under the MIT license */(function(e){(function(t,n,r,i){var o=["","webkit","Moz","MS","ms","o"],a=n.createElement("div"),s="function",l=Math.round,c=Math.abs,u=Date.now;function d(E,O,k){return setTimeout(x(E,k),O)}function f(E,O,k){return Array.isArray(E)?(p(E,k[O],k),!0):!1}function p(E,O,k){var B;if(E)if(E.forEach)E.forEach(O,k);else if(E.length!==i)for(B=0;B\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",De=t.console&&(t.console.warn||t.console.log);return De&&De.call(t.console,B,re),E.apply(this,arguments)}}var y;typeof Object.assign!="function"?y=function(O){if(O===i||O===null)throw new TypeError("Cannot convert undefined or null to object");for(var k=Object(O),B=1;B-1}function P(E){return E.trim().split(/\s+/g)}function F(E,O,k){if(E.indexOf&&!k)return E.indexOf(O);for(var B=0;Bat[O]}),B}function j(E,O){for(var k,B,Q=O[0].toUpperCase()+O.slice(1),re=0;re1&&!k.firstMultiple?k.firstMultiple=je(O):Q===1&&(k.firstMultiple=!1);var re=k.firstInput,De=k.firstMultiple,Dt=De?De.center:re.center,Ft=O.center=Ge(B);O.timeStamp=u(),O.deltaTime=O.timeStamp-re.timeStamp,O.angle=ft(Dt,Ft),O.distance=tt(Dt,Ft),Pe(k,O),O.offsetDirection=Qe(O.deltaX,O.deltaY);var at=ct(O.deltaTime,O.deltaX,O.deltaY);O.overallVelocityX=at.x,O.overallVelocityY=at.y,O.overallVelocity=c(at.x)>c(at.y)?at.x:at.y,O.scale=De?wt(De.pointers,B):1,O.rotation=De?Wt(De.pointers,B):0,O.maxPointers=k.prevInput?O.pointers.length>k.prevInput.maxPointers?O.pointers.length:k.prevInput.maxPointers:O.pointers.length,Fe(k,O);var on=E.element;M(O.srcEvent.target,on)&&(on=O.srcEvent.target),O.target=on}function Pe(E,O){var k=O.center,B=E.offsetDelta||{},Q=E.prevDelta||{},re=E.prevInput||{};(O.eventType===q||re.eventType===Z)&&(Q=E.prevDelta={x:re.deltaX||0,y:re.deltaY||0},B=E.offsetDelta={x:k.x,y:k.y}),O.deltaX=Q.x+(k.x-B.x),O.deltaY=Q.y+(k.y-B.y)}function Fe(E,O){var k=E.lastInterval||O,B=O.timeStamp-k.timeStamp,Q,re,De,Dt;if(O.eventType!=ne&&(B>ee||k.velocity===i)){var Ft=O.deltaX-k.deltaX,at=O.deltaY-k.deltaY,on=ct(B,Ft,at);re=on.x,De=on.y,Q=c(on.x)>c(on.y)?on.x:on.y,Dt=Qe(Ft,at),E.lastInterval=O}else Q=k.velocity,re=k.velocityX,De=k.velocityY,Dt=k.direction;O.velocity=Q,O.velocityX=re,O.velocityY=De,O.direction=Dt}function je(E){for(var O=[],k=0;k=c(O)?E<0?ye:xe:O<0?me:fe}function tt(E,O,k){k||(k=Ae);var B=O[k[0]]-E[k[0]],Q=O[k[1]]-E[k[1]];return Math.sqrt(B*B+Q*Q)}function ft(E,O,k){k||(k=Ae);var B=O[k[0]]-E[k[0]],Q=O[k[1]]-E[k[1]];return Math.atan2(Q,B)*180/Math.PI}function Wt(E,O){return ft(O[1],O[0],Ee)+ft(E[1],E[0],Ee)}function wt(E,O){return tt(O[0],O[1],Ee)/tt(E[0],E[1],Ee)}var ur={mousedown:q,mousemove:K,mouseup:Z},hn="mousedown",kt="mousemove mouseup";function ht(){this.evEl=hn,this.evWin=kt,this.pressed=!1,ie.apply(this,arguments)}g(ht,ie,{handler:function(O){var k=ur[O.type];k&q&&O.button===0&&(this.pressed=!0),k&K&&O.which!==1&&(k=Z),this.pressed&&(k&Z&&(this.pressed=!1),this.callback(this.manager,k,{pointers:[O],changedPointers:[O],pointerType:U,srcEvent:O}))}});var kr={pointerdown:q,pointermove:K,pointerup:Z,pointercancel:ne,pointerout:ne},gt={2:G,3:Y,4:U,5:X},nn="pointerdown",Se="pointermove pointerup pointercancel";t.MSPointerEvent&&!t.PointerEvent&&(nn="MSPointerDown",Se="MSPointerMove MSPointerUp MSPointerCancel");function se(){this.evEl=nn,this.evWin=Se,ie.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}g(se,ie,{handler:function(O){var k=this.store,B=!1,Q=O.type.toLowerCase().replace("ms",""),re=kr[Q],De=gt[O.pointerType]||O.pointerType,Dt=De==G,Ft=F(k,O.pointerId,"pointerId");re&q&&(O.button===0||Dt)?Ft<0&&(k.push(O),Ft=k.length-1):re&(Z|ne)&&(B=!0),!(Ft<0)&&(k[Ft]=O,this.callback(this.manager,re,{pointers:k,changedPointers:[O],pointerType:De,srcEvent:O}),B&&k.splice(Ft,1))}});var Oe={touchstart:q,touchmove:K,touchend:Z,touchcancel:ne},Me="touchstart",Le="touchstart touchmove touchend touchcancel";function dt(){this.evTarget=Me,this.evWin=Le,this.started=!1,ie.apply(this,arguments)}g(dt,ie,{handler:function(O){var k=Oe[O.type];if(k===q&&(this.started=!0),!!this.started){var B=qe.call(this,O,k);k&(Z|ne)&&B[0].length-B[1].length===0&&(this.started=!1),this.callback(this.manager,k,{pointers:B[0],changedPointers:B[1],pointerType:G,srcEvent:O})}}});function qe(E,O){var k=D(E.touches),B=D(E.changedTouches);return O&(Z|ne)&&(k=z(k.concat(B),"identifier")),[k,B]}var ke={touchstart:q,touchmove:K,touchend:Z,touchcancel:ne},Ut="touchstart touchmove touchend touchcancel";function gn(){this.evTarget=Ut,this.targetIds={},ie.apply(this,arguments)}g(gn,ie,{handler:function(O){var k=ke[O.type],B=it.call(this,O,k);B&&this.callback(this.manager,k,{pointers:B[0],changedPointers:B[1],pointerType:G,srcEvent:O})}});function it(E,O){var k=D(E.touches),B=this.targetIds;if(O&(q|K)&&k.length===1)return B[k[0].identifier]=!0,[k,k];var Q,re,De=D(E.changedTouches),Dt=[],Ft=this.target;if(re=k.filter(function(at){return M(at.target,Ft)}),O===q)for(Q=0;Q-1&&B.splice(re,1)};setTimeout(Q,Ze)}}function Kr(E){for(var O=E.srcEvent.clientX,k=E.srcEvent.clientY,B=0;B-1&&this.requireFail.splice(O,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(E){return!!this.simultaneous[E.id]},emit:function(E){var O=this,k=this.state;function B(Q){O.manager.emit(Q,E)}k=Et&&B(O.options.event+Lt(k))},tryEmit:function(E){if(this.canEmit())return this.emit(E);this.state=Ot},canEmit:function(){for(var E=0;EO.threshold&&Q&O.direction},attrTest:function(E){return It.prototype.attrTest.call(this,E)&&(this.state&Ke||!(this.state&Ke)&&this.directionTest(E))},emit:function(E){this.pX=E.deltaX,this.pY=E.deltaY;var O=fr(E.direction);O&&(E.additionalEvent=this.options.event+O),this._super.emit.call(this,E)}});function Yr(){It.apply(this,arguments)}g(Yr,It,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[ot]},attrTest:function(E){return this._super.attrTest.call(this,E)&&(Math.abs(E.scale-1)>this.options.threshold||this.state&Ke)},emit:function(E){if(E.scale!==1){var O=E.scale<1?"in":"out";E.additionalEvent=this.options.event+O}this._super.emit.call(this,E)}});function Qr(){Mt.apply(this,arguments),this._timer=null,this._input=null}g(Qr,Mt,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[rn]},process:function(E){var O=this.options,k=E.pointers.length===O.pointers,B=E.distanceO.time;if(this._input=E,!B||!k||E.eventType&(Z|ne)&&!Q)this.reset();else if(E.eventType&q)this.reset(),this._timer=d(function(){this.state=yt,this.tryEmit()},O.time,this);else if(E.eventType&Z)return yt;return Ot},reset:function(){clearTimeout(this._timer)},emit:function(E){this.state===yt&&(E&&E.eventType&Z?this.manager.emit(this.options.event+"up",E):(this._input.timeStamp=u(),this.manager.emit(this.options.event,this._input)))}});function Bn(){It.apply(this,arguments)}g(Bn,It,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[ot]},attrTest:function(E){return this._super.attrTest.call(this,E)&&(Math.abs(E.rotation)>this.options.threshold||this.state&Ke)}});function mo(){It.apply(this,arguments)}g(mo,It,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:be|he,pointers:1},getTouchAction:function(){return wn.prototype.getTouchAction.call(this)},attrTest:function(E){var O=this.options.direction,k;return O&(be|he)?k=E.overallVelocity:O&be?k=E.overallVelocityX:O&he&&(k=E.overallVelocityY),this._super.attrTest.call(this,E)&&O&E.offsetDirection&&E.distance>this.options.threshold&&E.maxPointers==this.options.pointers&&c(k)>this.options.velocity&&E.eventType&Z},emit:function(E){var O=fr(E.offsetDirection);O&&this.manager.emit(this.options.event+O,E),this.manager.emit(this.options.event,E)}});function di(){Mt.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}g(di,Mt,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[In]},process:function(E){var O=this.options,k=E.pointers.length===O.pointers,B=E.distancee&&e.enabled&&e.modifierKey,S_=(e,t)=>e&&t[e+"Key"],Sv=(e,t)=>e&&!t[e+"Key"];function lo(e,t,n){return e===void 0?!0:typeof e=="string"?e.indexOf(t)!==-1:typeof e=="function"?e({chart:n}).indexOf(t)!==-1:!1}function bh(e,t){return typeof e=="function"&&(e=e({chart:t})),typeof e=="string"?{x:e.indexOf("x")!==-1,y:e.indexOf("y")!==-1}:{x:!1,y:!1}}function i3(e,t){let n;return function(){return clearTimeout(n),n=setTimeout(e,t),t}}function o3({x:e,y:t},n){const r=n.scales,i=Object.keys(r);for(let o=0;o=a.top&&t<=a.bottom&&e>=a.left&&e<=a.right)return a}return null}function w_(e,t,n){const{mode:r="xy",scaleMode:i,overScaleMode:o}=e||{},a=o3(t,n),s=bh(r,n),l=bh(i,n);if(o){const u=bh(o,n);for(const d of["x","y"])u[d]&&(l[d]=s[d],s[d]=!1)}if(a&&l[a.axis])return[a];const c=[];return We(n.scales,function(u){s[u.axis]&&c.push(u)}),c}const wp=new WeakMap;function Vt(e){let t=wp.get(e);return t||(t={originalScaleLimits:{},updatedScaleLimits:{},handlers:{},panDelta:{}},wp.set(e,t)),t}function a3(e){wp.delete(e)}function C_(e,t,n){const r=e.max-e.min,i=r*(t-1),o=e.isHorizontal()?n.x:n.y,a=Math.max(0,Math.min(1,(e.getValueForPixel(o)-e.min)/r||0)),s=1-a;return{min:i*a,max:i*s}}function z1(e,t,n,r,i){let o=n[r];if(o==="original"){const a=e.originalScaleLimits[t.id][r];o=Ve(a.options,a.scale)}return Ve(o,i)}function s3(e,t,n){const r=e.getValueForPixel(t),i=e.getValueForPixel(n);return{min:Math.min(r,i),max:Math.max(r,i)}}function ms(e,{min:t,max:n},r,i=!1){const o=Vt(e.chart),{id:a,axis:s,options:l}=e,c=r&&(r[a]||r[s])||{},{minRange:u=0}=c,d=z1(o,e,c,"min",-1/0),f=z1(o,e,c,"max",1/0),p=i?Math.max(n-t,u):e.max-e.min,v=(p-n+t)/2;return t-=v,n+=v,tf&&(n=f,t=Math.max(f-p,d)),l.min=t,l.max=n,o.updatedScaleLimits[e.id]={min:t,max:n},e.parse(t)!==e.min||e.parse(n)!==e.max}function l3(e,t,n,r){const i=C_(e,t,n),o={min:e.min+i.min,max:e.max-i.max};return ms(e,o,r,!0)}function c3(e,t,n,r){ms(e,s3(e,t,n),r,!0)}const j1=e=>e===0||isNaN(e)?0:e<0?Math.min(Math.round(e),-1):Math.max(Math.round(e),1);function u3(e){const n=e.getLabels().length-1;e.min>0&&(e.min-=1),e.maxl&&(o=Math.max(0,o-c),a=s===1?o:o+s,u=o===0),ms(e,{min:o,max:a},n)||u}const g3={second:500,minute:30*1e3,hour:30*60*1e3,day:12*60*60*1e3,week:3.5*24*60*60*1e3,month:15*24*60*60*1e3,quarter:60*24*60*60*1e3,year:182*24*60*60*1e3};function E_(e,t,n,r=!1){const{min:i,max:o,options:a}=e,s=a.time&&a.time.round,l=g3[s]||0,c=e.getValueForPixel(e.getPixelForValue(i+l)-t),u=e.getValueForPixel(e.getPixelForValue(o+l)-t),{min:d=-1/0,max:f=1/0}=r&&n&&n[e.axis]||{};return isNaN(c)||isNaN(u)||cf?!0:ms(e,{min:c,max:u},n,r)}function H1(e,t,n){return E_(e,t,n,!0)}const Cp={category:d3,default:l3},Ep={default:c3},_p={category:h3,default:E_,logarithmic:H1,timeseries:H1};function p3(e,t,n){const{id:r,options:{min:i,max:o}}=e;if(!t[r]||!n[r])return!0;const a=n[r];return a.min!==i||a.max!==o}function B1(e,t){We(e,(n,r)=>{t[r]||delete e[r]})}function vs(e,t){const{scales:n}=e,{originalScaleLimits:r,updatedScaleLimits:i}=t;return We(n,function(o){p3(o,r,i)&&(r[o.id]={min:{scale:o.min,options:o.options.min},max:{scale:o.max,options:o.options.max}})}),B1(r,n),B1(i,n),r}function V1(e,t,n,r){const i=Cp[e.type]||Cp.default;Ne(i,[e,t,n,r])}function W1(e,t,n,r,i){const o=Ep[e.type]||Ep.default;Ne(o,[e,t,n,r,i])}function m3(e){const t=e.chartArea;return{x:(t.left+t.right)/2,y:(t.top+t.bottom)/2}}function wv(e,t,n="none"){const{x:r=1,y:i=1,focalPoint:o=m3(e)}=typeof t=="number"?{x:t,y:t}:t,a=Vt(e),{options:{limits:s,zoom:l}}=a;vs(e,a);const c=r!==1,u=i!==1,d=w_(l,o,e);We(d||e.scales,function(f){f.isHorizontal()&&c?V1(f,r,o,s):!f.isHorizontal()&&u&&V1(f,i,o,s)}),e.update(n),Ne(l.onZoom,[{chart:e}])}function __(e,t,n,r="none"){const i=Vt(e),{options:{limits:o,zoom:a}}=i,{mode:s="xy"}=a;vs(e,i);const l=lo(s,"x",e),c=lo(s,"y",e);We(e.scales,function(u){u.isHorizontal()&&l?W1(u,t.x,n.x,o):!u.isHorizontal()&&c&&W1(u,t.y,n.y,o)}),e.update(r),Ne(a.onZoom,[{chart:e}])}function v3(e,t,n,r="none"){vs(e,Vt(e));const i=e.scales[t];ms(i,n,void 0,!0),e.update(r)}function y3(e,t="default"){const n=Vt(e),r=vs(e,n);We(e.scales,function(i){const o=i.options;r[i.id]?(o.min=r[i.id].min.options,o.max=r[i.id].max.options):(delete o.min,delete o.max)}),e.update(t),Ne(n.options.zoom.onZoomComplete,[{chart:e}])}function b3(e,t){const n=e.originalScaleLimits[t];if(!n)return;const{min:r,max:i}=n;return Ve(i.options,i.scale)-Ve(r.options,r.scale)}function x3(e){const t=Vt(e);let n=1,r=1;return We(e.scales,function(i){const o=b3(t,i.id);if(o){const a=Math.round(o/(i.max-i.min)*100)/100;n=Math.min(n,a),r=Math.max(r,a)}}),n<1?n:r}function U1(e,t,n,r){const{panDelta:i}=r,o=i[e.id]||0;so(o)===so(t)&&(t+=o);const a=_p[e.type]||_p.default;Ne(a,[e,t,n])?i[e.id]=0:i[e.id]=t}function O_(e,t,n,r="none"){const{x:i=0,y:o=0}=typeof t=="number"?{x:t,y:t}:t,a=Vt(e),{options:{pan:s,limits:l}}=a,{onPan:c}=s||{};vs(e,a);const u=i!==0,d=o!==0;We(n||e.scales,function(f){f.isHorizontal()&&u?U1(f,i,l,a):!f.isHorizontal()&&d&&U1(f,o,l,a)}),e.update(r),Ne(c,[{chart:e}])}function M_(e){const t=Vt(e);vs(e,t);const n={};for(const r of Object.keys(e.scales)){const{min:i,max:o}=t.originalScaleLimits[r]||{min:{},max:{}};n[r]={min:i.scale,max:o.scale}}return n}function S3(e){const t=M_(e);for(const n of Object.keys(e.scales)){const{min:r,max:i}=t[n];if(r!==void 0&&e.scales[n].min!==r||i!==void 0&&e.scales[n].max!==i)return!0}return!1}function Gn(e,t){const{handlers:n}=Vt(e),r=n[t];r&&r.target&&(r.target.removeEventListener(t,r),delete n[t])}function gl(e,t,n,r){const{handlers:i,options:o}=Vt(e),a=i[n];a&&a.target===t||(Gn(e,n),i[n]=s=>r(e,s,o),i[n].target=t,t.addEventListener(n,i[n]))}function w3(e,t){const n=Vt(e);n.dragStart&&(n.dragging=!0,n.dragEnd=t,e.update("none"))}function C3(e,t){const n=Vt(e);!n.dragStart||t.key!=="Escape"||(Gn(e,"keydown"),n.dragging=!1,n.dragStart=n.dragEnd=null,e.update("none"))}function T_(e,t,n){const{onZoomStart:r,onZoomRejected:i}=n;if(r){const o=ii(t,e);if(Ne(r,[{chart:e,event:t,point:o}])===!1)return Ne(i,[{chart:e,event:t}]),!1}}function E3(e,t){const n=Vt(e),{pan:r,zoom:i={}}=n.options;if(t.button!==0||S_(Zl(r),t)||Sv(Zl(i.drag),t))return Ne(i.onZoomRejected,[{chart:e,event:t}]);T_(e,t,i)!==!1&&(n.dragStart=t,gl(e,e.canvas,"mousemove",w3),gl(e,window.document,"keydown",C3))}function P_(e,t,n,r){const i=lo(t,"x",e),o=lo(t,"y",e);let{top:a,left:s,right:l,bottom:c,width:u,height:d}=e.chartArea;const f=ii(n,e),p=ii(r,e);i&&(s=Math.min(f.x,p.x),l=Math.max(f.x,p.x)),o&&(a=Math.min(f.y,p.y),c=Math.max(f.y,p.y));const v=l-s,y=c-a;return{left:s,top:a,right:l,bottom:c,width:v,height:y,zoomX:i&&v?1+(u-v)/u:1,zoomY:o&&y?1+(d-y)/d:1}}function _3(e,t){const n=Vt(e);if(!n.dragStart)return;Gn(e,"mousemove");const{mode:r,onZoomComplete:i,drag:{threshold:o=0}}=n.options.zoom,a=P_(e,r,n.dragStart,t),s=lo(r,"x",e)?a.width:0,l=lo(r,"y",e)?a.height:0,c=Math.sqrt(s*s+l*l);if(n.dragStart=n.dragEnd=null,c<=o){n.dragging=!1,e.update("none");return}__(e,{x:a.left,y:a.top},{x:a.right,y:a.bottom},"zoom"),setTimeout(()=>n.dragging=!1,500),Ne(i,[{chart:e}])}function O3(e,t,n){if(Sv(Zl(n.wheel),t)){Ne(n.onZoomRejected,[{chart:e,event:t}]);return}if(T_(e,t,n)!==!1&&(t.cancelable&&t.preventDefault(),t.deltaY!==void 0))return!0}function M3(e,t){const{handlers:{onZoomComplete:n},options:{zoom:r}}=Vt(e);if(!O3(e,t,r))return;const i=t.target.getBoundingClientRect(),o=1+(t.deltaY>=0?-r.wheel.speed:r.wheel.speed),a={x:o,y:o,focalPoint:{x:t.clientX-i.left,y:t.clientY-i.top}};wv(e,a),n&&n()}function T3(e,t,n,r){n&&(Vt(e).handlers[t]=i3(()=>Ne(n,[{chart:e}]),r))}function P3(e,t){const n=e.canvas,{wheel:r,drag:i,onZoomComplete:o}=t.zoom;r.enabled?(gl(e,n,"wheel",M3),T3(e,"onZoomComplete",o,250)):Gn(e,"wheel"),i.enabled?(gl(e,n,"mousedown",E3),gl(e,n.ownerDocument,"mouseup",_3)):(Gn(e,"mousedown"),Gn(e,"mousemove"),Gn(e,"mouseup"),Gn(e,"keydown"))}function $3(e){Gn(e,"mousedown"),Gn(e,"mousemove"),Gn(e,"mouseup"),Gn(e,"wheel"),Gn(e,"click"),Gn(e,"keydown")}function R3(e,t){return function(n,r){const{pan:i,zoom:o={}}=t.options;if(!i||!i.enabled)return!1;const a=r&&r.srcEvent;return a&&!t.panning&&r.pointerType==="mouse"&&(Sv(Zl(i),a)||S_(Zl(o.drag),a))?(Ne(i.onPanRejected,[{chart:e,event:r}]),!1):!0}}function k3(e,t){const n=Math.abs(e.clientX-t.clientX),r=Math.abs(e.clientY-t.clientY),i=n/r;let o,a;return i>.3&&i<1.7?o=a=!0:n>r?o=!0:a=!0,{x:o,y:a}}function $_(e,t,n){if(t.scale){const{center:r,pointers:i}=n,o=1/t.scale*n.scale,a=n.target.getBoundingClientRect(),s=k3(i[0],i[1]),l=t.options.zoom.mode,c={x:s.x&&lo(l,"x",e)?o:1,y:s.y&&lo(l,"y",e)?o:1,focalPoint:{x:r.x-a.left,y:r.y-a.top}};wv(e,c),t.scale=n.scale}}function I3(e,t){t.options.zoom.pinch.enabled&&(t.scale=1)}function F3(e,t,n){t.scale&&($_(e,t,n),t.scale=null,Ne(t.options.zoom.onZoomComplete,[{chart:e}]))}function R_(e,t,n){const r=t.delta;r&&(t.panning=!0,O_(e,{x:n.deltaX-r.x,y:n.deltaY-r.y},t.panScales),t.delta={x:n.deltaX,y:n.deltaY})}function N3(e,t,n){const{enabled:r,onPanStart:i,onPanRejected:o}=t.options.pan;if(!r)return;const a=n.target.getBoundingClientRect(),s={x:n.center.x-a.left,y:n.center.y-a.top};if(Ne(i,[{chart:e,event:n,point:s}])===!1)return Ne(o,[{chart:e,event:n}]);t.panScales=w_(t.options.pan,s,e),t.delta={x:0,y:0},clearTimeout(t.panEndTimeout),R_(e,t,n)}function A3(e,t){t.delta=null,t.panning&&(t.panEndTimeout=setTimeout(()=>t.panning=!1,500),Ne(t.options.pan.onPanComplete,[{chart:e}]))}const Op=new WeakMap;function L3(e,t){const n=Vt(e),r=e.canvas,{pan:i,zoom:o}=t,a=new hl.Manager(r);o&&o.pinch.enabled&&(a.add(new hl.Pinch),a.on("pinchstart",()=>I3(e,n)),a.on("pinch",s=>$_(e,n,s)),a.on("pinchend",s=>F3(e,n,s))),i&&i.enabled&&(a.add(new hl.Pan({threshold:i.threshold,enable:R3(e,n)})),a.on("panstart",s=>N3(e,n,s)),a.on("panmove",s=>R_(e,n,s)),a.on("panend",()=>A3(e,n))),Op.set(e,a)}function D3(e){const t=Op.get(e);t&&(t.remove("pinchstart"),t.remove("pinch"),t.remove("pinchend"),t.remove("panstart"),t.remove("pan"),t.remove("panend"),t.destroy(),Op.delete(e))}var z3="2.0.1";function iu(e,t,n){const r=n.zoom.drag,{dragStart:i,dragEnd:o}=Vt(e);if(r.drawTime!==t||!o)return;const{left:a,top:s,width:l,height:c}=P_(e,n.zoom.mode,i,o),u=e.ctx;u.save(),u.beginPath(),u.fillStyle=r.backgroundColor||"rgba(225,225,225,0.3)",u.fillRect(a,s,l,c),r.borderWidth>0&&(u.lineWidth=r.borderWidth,u.strokeStyle=r.borderColor||"rgba(225,225,225)",u.strokeRect(a,s,l,c)),u.restore()}var j3={id:"zoom",version:z3,defaults:{pan:{enabled:!1,mode:"xy",threshold:10,modifierKey:null},zoom:{wheel:{enabled:!1,speed:.1,modifierKey:null},drag:{enabled:!1,drawTime:"beforeDatasetsDraw",modifierKey:null},pinch:{enabled:!1},mode:"xy"}},start:function(e,t,n){const r=Vt(e);r.options=n,Object.prototype.hasOwnProperty.call(n.zoom,"enabled")&&console.warn("The option `zoom.enabled` is no longer supported. Please use `zoom.wheel.enabled`, `zoom.drag.enabled`, or `zoom.pinch.enabled`."),(Object.prototype.hasOwnProperty.call(n.zoom,"overScaleMode")||Object.prototype.hasOwnProperty.call(n.pan,"overScaleMode"))&&console.warn("The option `overScaleMode` is deprecated. Please use `scaleMode` instead (and update `mode` as desired)."),hl&&L3(e,n),e.pan=(i,o,a)=>O_(e,i,o,a),e.zoom=(i,o)=>wv(e,i,o),e.zoomRect=(i,o,a)=>__(e,i,o,a),e.zoomScale=(i,o,a)=>v3(e,i,o,a),e.resetZoom=i=>y3(e,i),e.getZoomLevel=()=>x3(e),e.getInitialScaleBounds=()=>M_(e),e.isZoomedOrPanned=()=>S3(e)},beforeEvent(e){const t=Vt(e);if(t.panning||t.dragging)return!1},beforeUpdate:function(e,t,n){const r=Vt(e);r.options=n,P3(e,n)},beforeDatasetsDraw(e,t,n){iu(e,"beforeDatasetsDraw",n)},afterDatasetsDraw(e,t,n){iu(e,"afterDatasetsDraw",n)},beforeDraw(e,t,n){iu(e,"beforeDraw",n)},afterDraw(e,t,n){iu(e,"afterDraw",n)},stop:function(e){$3(e),hl&&D3(e),a3(e)},panFunctions:_p,zoomFunctions:Cp,zoomRectFunctions:Ep};cf.register(xp,Sp,$u,Ws,M4,N4,_4,j3);ow(document.getElementById("root")).render(Te.jsx(h.StrictMode,{children:Te.jsx(n3,{})})); diff --git a/index.html b/index.html index 7bf3d58..bb58fcb 100644 --- a/index.html +++ b/index.html @@ -5,8 +5,8 @@ Vite + React + TS - - + +