123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624 |
- import{F as dt,b as br,C as kB,T as tm,d as he,r as _t,g as Kn,o as Qe,e as Sr,f as Cr,w as Ne,c as z,i as lt,p as it,a as be,u as xn,s as pe,j as Je,k as st,l as Vi,m as C,h as Eg,n as ht,q as vn,t as HB,v as _n,x as ha,y as Ye,z as ur,A as sS,B as ky,D as Hy,E as sr,G as Xr,H as cn,I as as,J as jB,K as jy,L as AT,M as OT,N as nm,O as rm,P as Vy,Q as VB,R as TT,S as MT,U as Ff,V as Wy,W as uS,X as WB,Y as UB,Z as KB,_ as qB}from"./vue-7f5e2b1b.js";import{c as GB,a as XB,u as YB}from"./vue-router-e2815956.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(o){if(o.ep)return;o.ep=!0;const a=n(o);fetch(o.href,a)}})();function Iu(e){return Iu=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},Iu(e)}function ZB(e,t){if(Iu(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Iu(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function JB(e){var t=ZB(e,"string");return Iu(t)==="symbol"?t:String(t)}function In(e,t,n){return t=JB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function j(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?cS(Object(n),!0).forEach(function(r){In(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function E(){return E=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},E.apply(this,arguments)}const QB=e=>typeof e=="function",eF=Array.isArray,tF=e=>typeof e=="string",nF=e=>e!==null&&typeof e=="object",rF=/^on[^a-z]/,oF=e=>rF.test(e),Uy=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},aF=/-(\w)/g,Zi=Uy(e=>e.replace(aF,(t,n)=>n?n.toUpperCase():"")),iF=/\B([A-Z])/g,lF=Uy(e=>e.replace(iF,"-$1").toLowerCase()),sF=Uy(e=>e.charAt(0).toUpperCase()+e.slice(1)),uF=Object.prototype.hasOwnProperty,dS=(e,t)=>uF.call(e,t);function cF(e,t,n,r){const o=e[n];if(o!=null){const a=dS(o,"default");if(a&&r===void 0){const i=o.default;r=o.type!==Function&&QB(i)?i():i}o.type===Boolean&&(!dS(t,n)&&!a?r=!1:r===""&&(r=!0))}return r}function dF(e){return Object.keys(e).reduce((t,n)=>((n.startsWith("data-")||n.startsWith("aria-"))&&(t[n]=e[n]),t),{})}function Ei(e){return typeof e=="number"?`${e}px`:e}function Bl(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return typeof e=="function"?e(t):e??n}function fF(e){let t;const n=new Promise(o=>{t=e(()=>{o(!0)})}),r=()=>{t==null||t()};return r.then=(o,a)=>n.then(o,a),r.promise=n,r}function ge(){const e=[];for(let t=0;t<arguments.length;t++){const n=t<0||arguments.length<=t?void 0:arguments[t];if(n){if(tF(n))e.push(n);else if(eF(n))for(let r=0;r<n.length;r++){const o=ge(n[r]);o&&e.push(o)}else if(nF(n))for(const r in n)n[r]&&e.push(r)}}return e.join(" ")}var NT=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(o,a){return o[0]===n?(r=a,!0):!1}),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),o=this.__entries__[r];return o&&o[1]},t.prototype.set=function(n,r){var o=e(this.__entries__,n);~o?this.__entries__[o][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,o=e(r,n);~o&&r.splice(o,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 o=0,a=this.__entries__;o<a.length;o++){var i=a[o];n.call(r,i[1],i[0])}},t}()}(),Dg=typeof window<"u"&&typeof document<"u"&&window.document===document,Rf=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),pF=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Rf):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),mF=2;function vF(e,t){var n=!1,r=!1,o=0;function a(){n&&(n=!1,e()),r&&l()}function i(){pF(a)}function l(){var s=Date.now();if(n){if(s-o<mF)return;r=!0}else n=!0,r=!1,setTimeout(i,t);o=s}return l}var hF=20,gF=["top","right","bottom","left","width","height","size","weight"],yF=typeof MutationObserver<"u",bF=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=vF(this.refresh.bind(this),hF)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var n=this.observers_,r=n.indexOf(t);~r&&n.splice(r,1),!n.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return t.forEach(function(n){return n.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!Dg||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),yF?(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(){!Dg||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,o=gF.some(function(a){return!!~r.indexOf(a)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),PT=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},is=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||Rf},IT=om(0,0,0,0);function zf(e){return parseFloat(e)||0}function fS(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,o){var a=e["border-"+o+"-width"];return r+zf(a)},0)}function xF(e){for(var t=["top","right","bottom","left"],n={},r=0,o=t;r<o.length;r++){var a=o[r],i=e["padding-"+a];n[a]=zf(i)}return n}function wF(e){var t=e.getBBox();return om(0,0,t.width,t.height)}function SF(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return IT;var r=is(e).getComputedStyle(e),o=xF(r),a=o.left+o.right,i=o.top+o.bottom,l=zf(r.width),s=zf(r.height);if(r.boxSizing==="border-box"&&(Math.round(l+a)!==t&&(l-=fS(r,"left","right")+a),Math.round(s+i)!==n&&(s-=fS(r,"top","bottom")+i)),!$F(e)){var u=Math.round(l+a)-t,c=Math.round(s+i)-n;Math.abs(u)!==1&&(l-=u),Math.abs(c)!==1&&(s-=c)}return om(o.left,o.top,l,s)}var CF=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof is(e).SVGGraphicsElement}:function(e){return e instanceof is(e).SVGElement&&typeof e.getBBox=="function"}}();function $F(e){return e===is(e).document.documentElement}function EF(e){return Dg?CF(e)?wF(e):SF(e):IT}function DF(e){var t=e.x,n=e.y,r=e.width,o=e.height,a=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,i=Object.create(a.prototype);return PT(i,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),i}function om(e,t,n,r){return{x:e,y:t,width:n,height:r}}var AF=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=om(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=EF(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),OF=function(){function e(t,n){var r=DF(n);PT(this,{target:t,contentRect:r})}return e}(),TF=function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new NT,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=r}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof is(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new AF(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 is(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 OF(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}(),_T=typeof WeakMap<"u"?new WeakMap:new NT,BT=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=bF.getInstance(),r=new TF(t,n,this);_T.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){BT.prototype[e]=function(){var t;return(t=_T.get(this))[e].apply(t,arguments)}});var MF=function(){return typeof Rf.ResizeObserver<"u"?Rf.ResizeObserver:BT}();const Ky=MF;var NF=typeof global=="object"&&global&&global.Object===Object&&global;const FT=NF;var PF=typeof self=="object"&&self&&self.Object===Object&&self,IF=FT||PF||Function("return this")();const So=IF;var _F=So.Symbol;const Jr=_F;var RT=Object.prototype,BF=RT.hasOwnProperty,FF=RT.toString,Gs=Jr?Jr.toStringTag:void 0;function RF(e){var t=BF.call(e,Gs),n=e[Gs];try{e[Gs]=void 0;var r=!0}catch{}var o=FF.call(e);return r&&(t?e[Gs]=n:delete e[Gs]),o}var zF=Object.prototype,LF=zF.toString;function kF(e){return LF.call(e)}var HF="[object Null]",jF="[object Undefined]",pS=Jr?Jr.toStringTag:void 0;function ui(e){return e==null?e===void 0?jF:HF:pS&&pS in Object(e)?RF(e):kF(e)}function zT(e,t){return function(n){return e(t(n))}}var VF=zT(Object.getPrototypeOf,Object);const qy=VF;function go(e){return e!=null&&typeof e=="object"}var WF="[object Object]",UF=Function.prototype,KF=Object.prototype,LT=UF.toString,qF=KF.hasOwnProperty,GF=LT.call(Object);function Gy(e){if(!go(e)||ui(e)!=WF)return!1;var t=qy(e);if(t===null)return!0;var n=qF.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&<.call(n)==GF}const XF=e=>e!=null&&e!=="",Ag=XF,YF=(e,t)=>{const n=E({},e);return Object.keys(t).forEach(r=>{const o=n[r];if(o)o.type||o.default?o.default=t[r]:o.def?o.def(t[r]):n[r]={type:o,default:t[r]};else throw new Error(`not have ${r} prop`)}),n},at=YF,Xy=e=>{const t=Object.keys(e),n={},r={},o={};for(let a=0,i=t.length;a<i;a++){const l=t[a];oF(l)?(n[l[2].toLowerCase()+l.slice(3)]=e[l],r[l]=e[l]):o[l]=e[l]}return{onEvents:r,events:n,extraAttrs:o}},ZF=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;const n={},r=/;(?![^(]*\))/g,o=/:(.+)/;return typeof e=="object"?e:(e.split(r).forEach(function(a){if(a){const i=a.split(o);if(i.length>1){const l=t?Zi(i[0].trim()):i[0].trim();n[l]=i[1].trim()}}}),n)},ia=(e,t)=>e[t]!==void 0,kT=Symbol("skipFlatten"),Lt=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const n=Array.isArray(e)?e:[e],r=[];return n.forEach(o=>{Array.isArray(o)?r.push(...Lt(o,t)):o&&o.type===dt?o.key===kT?r.push(o):r.push(...Lt(o.children,t)):o&&br(o)?t&&!cc(o)?r.push(o):t||r.push(o):Ag(o)&&r.push(o)}),r},am=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"default",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(br(e))return e.type===dt?t==="default"?Lt(e.children):[]:e.children&&e.children[t]?Lt(e.children[t](n)):[];{let r=e.$slots[t]&&e.$slots[t](n);return Lt(r)}},yr=e=>{var t;let n=((t=e==null?void 0:e.vnode)===null||t===void 0?void 0:t.el)||e&&(e.$el||e);for(;n&&!n.tagName;)n=n.nextSibling;return n},HT=e=>{const t={};if(e.$&&e.$.vnode){const n=e.$.vnode.props||{};Object.keys(e.$props).forEach(r=>{const o=e.$props[r],a=lF(r);(o!==void 0||a in n)&&(t[r]=o)})}else if(br(e)&&typeof e.type=="object"){const n=e.props||{},r={};Object.keys(n).forEach(a=>{r[Zi(a)]=n[a]});const o=e.type.props||{};Object.keys(o).forEach(a=>{const i=cF(o,r,a,r[a]);(i!==void 0||a in r)&&(t[a]=i)})}return t},jT=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"default",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,o;if(e.$){const a=e[t];if(a!==void 0)return typeof a=="function"&&r?a(n):a;o=e.$slots[t],o=r&&o?o(n):o}else if(br(e)){const a=e.props&&e.props[t];if(a!==void 0&&e.props!==null)return typeof a=="function"&&r?a(n):a;e.type===dt?o=e.children:e.children&&e.children[t]&&(o=e.children[t],o=r&&o?o(n):o)}return Array.isArray(o)&&(o=Lt(o),o=o.length===1?o[0]:o,o=o.length===0?void 0:o),o};function mS(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,n={};return e.$?n=E(E({},n),e.$attrs):n=E(E({},n),e.props),Xy(n)[t?"onEvents":"events"]}function JF(e){let n=((br(e)?e.props:e.$attrs)||{}).class||{},r={};return typeof n=="string"?n.split(" ").forEach(o=>{r[o.trim()]=!0}):Array.isArray(n)?ge(n).split(" ").forEach(o=>{r[o.trim()]=!0}):r=E(E({},r),n),r}function VT(e,t){let r=((br(e)?e.props:e.$attrs)||{}).style||{};if(typeof r=="string")r=ZF(r,t);else if(t&&r){const o={};return Object.keys(r).forEach(a=>o[Zi(a)]=r[a]),o}return r}function QF(e){return e.length===1&&e[0].type===dt}function eR(e){return e==null||e===""||Array.isArray(e)&&e.length===0}function cc(e){return e&&(e.type===kB||e.type===dt&&e.children.length===0||e.type===tm&&e.children.trim()==="")}function tR(e){return e&&e.type===tm}function nn(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const t=[];return e.forEach(n=>{Array.isArray(n)?t.push(...n):(n==null?void 0:n.type)===dt?t.push(...nn(n.children)):t.push(n)}),t.filter(n=>!cc(n))}function Xs(e){if(e){const t=nn(e);return t.length?t:void 0}else return e}function hn(e){return Array.isArray(e)&&e.length===1&&(e=e[0]),e&&e.__v_isVNode&&typeof e.type!="symbol"}function Sn(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"default";var r,o;return(r=t[n])!==null&&r!==void 0?r:(o=e[n])===null||o===void 0?void 0:o.call(e)}const Qr=he({compatConfig:{MODE:3},name:"ResizeObserver",props:{disabled:Boolean,onResize:Function},emits:["resize"],setup(e,t){let{slots:n}=t;const r=_t({width:0,height:0,offsetHeight:0,offsetWidth:0});let o=null,a=null;const i=()=>{a&&(a.disconnect(),a=null)},l=c=>{const{onResize:d}=e,f=c[0].target,{width:p,height:v}=f.getBoundingClientRect(),{offsetWidth:m,offsetHeight:h}=f,g=Math.floor(p),x=Math.floor(v);if(r.width!==g||r.height!==x||r.offsetWidth!==m||r.offsetHeight!==h){const y={width:g,height:x,offsetWidth:m,offsetHeight:h};E(r,y),d&&Promise.resolve().then(()=>{d(E(E({},y),{offsetWidth:m,offsetHeight:h}),f)})}},s=Kn(),u=()=>{const{disabled:c}=e;if(c){i();return}const d=yr(s);d!==o&&(i(),o=d),!a&&d&&(a=new Ky(l),a.observe(d))};return Qe(()=>{u()}),Sr(()=>{u()}),Cr(()=>{i()}),Ne(()=>e.disabled,()=>{u()},{flush:"post"}),()=>{var c;return(c=n.default)===null||c===void 0?void 0:c.call(n)[0]}}});let WT=e=>setTimeout(e,16),UT=e=>clearTimeout(e);typeof window<"u"&&"requestAnimationFrame"in window&&(WT=e=>window.requestAnimationFrame(e),UT=e=>window.cancelAnimationFrame(e));let vS=0;const Yy=new Map;function KT(e){Yy.delete(e)}function tt(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;vS+=1;const n=vS;function r(o){if(o===0)KT(n),e();else{const a=WT(()=>{r(o-1)});Yy.set(n,a)}}return r(t),n}tt.cancel=e=>{const t=Yy.get(e);return KT(t),UT(t)};function Og(e){let t;const n=o=>()=>{t=null,e(...o)},r=function(){if(t==null){for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];t=tt(n(a))}};return r.cancel=()=>{tt.cancel(t),t=null},r}const Un=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t},nR=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t},rn=e=>{const t=e;return t.install=function(n){n.component(t.displayName||t.name,e)},e};function Wi(){return{type:[Function,Array]}}function We(e){return{type:Object,default:e}}function Pe(e){return{type:Boolean,default:e}}function Oe(e){return{type:Function,default:e}}function jt(e,t){const n={validator:()=>!0,default:e};return n}function Jn(){return{validator:()=>!0}}function bt(e){return{type:Array,default:e}}function Ue(e){return{type:String,default:e}}function Xe(e,t){return e?{type:e,default:t}:jt(t)}let qT=!1;try{let e=Object.defineProperty({},"passive",{get(){qT=!0}});window.addEventListener("testPassive",null,e),window.removeEventListener("testPassive",null,e)}catch{}const An=qT;function en(e,t,n,r){if(e&&e.addEventListener){let o=r;o===void 0&&An&&(t==="touchstart"||t==="touchmove"||t==="wheel")&&(o={passive:!1}),e.addEventListener(t,n,o)}return{remove:()=>{e&&e.removeEventListener&&e.removeEventListener(t,n)}}}function kc(e){return e!==window?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function hS(e,t,n){if(n!==void 0&&t.top>e.top-n)return`${n+t.top}px`}function gS(e,t,n){if(n!==void 0&&t.bottom<e.bottom+n){const r=window.innerHeight-t.bottom;return`${n+r}px`}}const GT=["resize","scroll","touchstart","touchmove","touchend","pageshow","load"];let fu=[];function yS(e,t){if(!e)return;let n=fu.find(r=>r.target===e);n?n.affixList.push(t):(n={target:e,affixList:[t],eventHandlers:{}},fu.push(n),GT.forEach(r=>{n.eventHandlers[r]=en(e,r,()=>{n.affixList.forEach(o=>{const{lazyUpdatePosition:a}=o.exposed;a()},(r==="touchstart"||r==="touchmove")&&An?{passive:!0}:!1)})}))}function bS(e){const t=fu.find(n=>{const r=n.affixList.some(o=>o===e);return r&&(n.affixList=n.affixList.filter(o=>o!==e)),r});t&&t.affixList.length===0&&(fu=fu.filter(n=>n!==t),GT.forEach(n=>{const r=t.eventHandlers[n];r&&r.remove&&r.remove()}))}const Zy="anticon",XT=Symbol("GlobalFormContextKey"),rR=e=>{it(XT,e)},oR=()=>lt(XT,{validateMessages:z(()=>{})}),aR=()=>({iconPrefixCls:String,getTargetContainer:{type:Function},getPopupContainer:{type:Function},prefixCls:String,getPrefixCls:{type:Function},renderEmpty:{type:Function},transformCellText:{type:Function},csp:We(),input:We(),autoInsertSpaceInButton:{type:Boolean,default:void 0},locale:We(),pageHeader:We(),componentSize:{type:String},componentDisabled:{type:Boolean,default:void 0},direction:{type:String},space:We(),virtual:{type:Boolean,default:void 0},dropdownMatchSelectWidth:{type:[Number,Boolean],default:!0},form:We(),pagination:We(),theme:We(),select:We()}),Jy=Symbol("configProvider"),YT={getPrefixCls:(e,t)=>t||(e?`ant-${e}`:"ant"),iconPrefixCls:z(()=>Zy),getPopupContainer:z(()=>()=>document.body)},im=()=>lt(Jy,YT),iR=e=>it(Jy,e),ZT=Symbol("DisabledContextKey"),Fr=()=>lt(ZT,be(void 0)),JT=e=>{const t=Fr();return it(ZT,z(()=>{var n;return(n=e.value)!==null&&n!==void 0?n:t.value})),e},QT={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",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"},lR={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",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,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"},sR=lR,uR={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},eM=uR,cR={lang:E({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"]},sR),timePickerLocale:E({},eM)},_u=cR,Ar="${label} is not a valid ${type}",dR={locale:"en",Pagination:QT,DatePicker:_u,TimePicker:eM,Calendar:_u,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",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"},PageHeader:{back:"Back"},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:Ar,method:Ar,array:Ar,object:Ar,number:Ar,date:Ar,boolean:Ar,integer:Ar,float:Ar,regexp:Ar,email:Ar,url:Ar,hex:Ar},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"}},cr=dR,Ji=he({compatConfig:{MODE:3},name:"LocaleReceiver",props:{componentName:String,defaultLocale:{type:[Object,Function]},children:{type:Function}},setup(e,t){let{slots:n}=t;const r=lt("localeData",{}),o=z(()=>{const{componentName:i="global",defaultLocale:l}=e,s=l||cr[i||"global"],{antLocale:u}=r,c=i&&u?u[i]:{};return E(E({},typeof s=="function"?s():s),c||{})}),a=z(()=>{const{antLocale:i}=r,l=i&&i.locale;return i&&i.exist&&!l?cr.locale:l});return()=>{const i=e.children||n.default,{antLocale:l}=r;return i==null?void 0:i(o.value,a.value,l)}}});function ro(e,t,n){const r=lt("localeData",{});return[z(()=>{const{antLocale:a}=r,i=xn(t)||cr[e||"global"],l=e&&a?a[e]:{};return E(E(E({},typeof i=="function"?i():i),l||{}),xn(n)||{})})]}function Qy(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}class fR{constructor(){this.cache=new Map}get(t){return this.cache.get(Array.isArray(t)?t.join("%"):t)||null}update(t,n){const r=Array.isArray(t)?t.join("%"):t,o=this.cache.get(r),a=n(o);a===null?this.cache.delete(r):this.cache.set(r,a)}}const pR=fR,eb="data-token-hash",Bi="data-css-hash",pu="__cssinjs_instance__",Lf=Math.random().toString(12).slice(2);function tb(){if(typeof document<"u"&&document.head&&document.body){const e=document.body.querySelectorAll(`style[${Bi}]`)||[],{firstChild:t}=document.head;Array.from(e).forEach(r=>{r[pu]=r[pu]||Lf,document.head.insertBefore(r,t)});const n={};Array.from(document.querySelectorAll(`style[${Bi}]`)).forEach(r=>{var o;const a=r.getAttribute(Bi);n[a]?r[pu]===Lf&&((o=r.parentNode)===null||o===void 0||o.removeChild(r)):n[a]=!0})}return new pR}const tM=Symbol("StyleContextKey"),nb={cache:tb(),defaultCache:!0,hashPriority:"low"},lm=()=>lt(tM,pe(E({},nb))),nM=e=>{const t=lm(),n=pe(E({},nb));return Ne([e,t],()=>{const r=E({},t.value),o=xn(e);Object.keys(o).forEach(i=>{const l=o[i];o[i]!==void 0&&(r[i]=l)});const{cache:a}=o;r.cache=r.cache||tb(),r.defaultCache=!a&&t.value.defaultCache,n.value=r},{immediate:!0}),it(tM,n),n},mR=()=>({autoClear:Pe(),mock:Ue(),cache:We(),defaultCache:Pe(),hashPriority:Ue(),container:Xe(),ssrInline:Pe(),transformers:bt(),linters:bt()}),vR=rn(he({name:"AStyleProvider",inheritAttrs:!1,props:at(mR(),nb),setup(e,t){let{slots:n}=t;return nM(e),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}}));function rM(e,t,n,r){const o=lm(),a=pe(""),i=pe();Je(()=>{a.value=[e,...t.value].join("%")});const l=s=>{o.value.cache.update(s,u=>{const[c=0,d]=u||[];return c-1===0?(r==null||r(d,!1),null):[c-1,d]})};return Ne(a,(s,u)=>{u&&l(u),o.value.cache.update(s,c=>{const[d=0,f]=c||[],v=f||n();return[d+1,v]}),i.value=o.value.cache.get(a.value)[1]},{immediate:!0}),st(()=>{l(a.value)}),i}function Co(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Ua(e,t){return e&&e.contains?e.contains(t):!1}const xS="data-vc-order",hR="vc-util-key",Tg=new Map;function oM(){let{mark:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return e?e.startsWith("data-")?e:`data-${e}`:hR}function sm(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function gR(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function aM(e){return Array.from((Tg.get(e)||e).children).filter(t=>t.tagName==="STYLE")}function iM(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Co())return null;const{csp:n,prepend:r}=t,o=document.createElement("style");o.setAttribute(xS,gR(r)),n!=null&&n.nonce&&(o.nonce=n==null?void 0:n.nonce),o.innerHTML=e;const a=sm(t),{firstChild:i}=a;if(r){if(r==="queue"){const l=aM(a).filter(s=>["prepend","prependQueue"].includes(s.getAttribute(xS)));if(l.length)return a.insertBefore(o,l[l.length-1].nextSibling),o}a.insertBefore(o,i)}else a.appendChild(o);return o}function lM(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=sm(t);return aM(n).find(r=>r.getAttribute(oM(t))===e)}function kf(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=lM(e,t);n&&sm(t).removeChild(n)}function yR(e,t){const n=Tg.get(e);if(!n||!Ua(document,n)){const r=iM("",t),{parentNode:o}=r;Tg.set(e,o),e.removeChild(r)}}function Bu(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var r,o,a;const i=sm(n);yR(i,n);const l=lM(t,n);if(l)return!((r=n.csp)===null||r===void 0)&&r.nonce&&l.nonce!==((o=n.csp)===null||o===void 0?void 0:o.nonce)&&(l.nonce=(a=n.csp)===null||a===void 0?void 0:a.nonce),l.innerHTML!==e&&(l.innerHTML=e),l;const s=iM(e,n);return s.setAttribute(oM(n),t),s}function Hf(e){let t="";return Object.keys(e).forEach(n=>{const r=e[n];t+=n,r&&typeof r=="object"?t+=Hf(r):t+=r}),t}function bR(e,t){return Qy(`${t}_${Hf(e)}`)}const mu=`layer-${Date.now()}-${Math.random()}`.replace(/\./g,""),sM="903px";function xR(e,t){var n;if(Co()){Bu(e,mu);const r=document.createElement("div");r.style.position="fixed",r.style.left="0",r.style.top="0",t==null||t(r),document.body.appendChild(r);const o=getComputedStyle(r).width===sM;return(n=r.parentNode)===null||n===void 0||n.removeChild(r),kf(mu),o}return!1}let Yv;function wR(){return Yv===void 0&&(Yv=xR(`@layer ${mu} { .${mu} { width: ${sM}!important; } }`,e=>{e.className=mu})),Yv}const wS={},SR="css",Di=new Map;function CR(e){Di.set(e,(Di.get(e)||0)+1)}function $R(e){typeof document<"u"&&document.querySelectorAll(`style[${eb}="${e}"]`).forEach(n=>{var r;n[pu]===Lf&&((r=n.parentNode)===null||r===void 0||r.removeChild(n))})}function ER(e){Di.set(e,(Di.get(e)||0)-1);const t=Array.from(Di.keys()),n=t.filter(r=>(Di.get(r)||0)<=0);n.length<t.length&&n.forEach(r=>{$R(r),Di.delete(r)})}function uM(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:be({});const r=z(()=>E({},...t.value)),o=z(()=>Hf(r.value)),a=z(()=>Hf(n.value.override||wS));return rM("token",z(()=>[n.value.salt||"",e.value.id,o.value,a.value]),()=>{const{salt:l="",override:s=wS,formatToken:u}=n.value,c=e.value.getDerivativeToken(r.value);let d=E(E({},c),s);u&&(d=u(d));const f=bR(d,l);d._tokenKey=f,CR(f);const p=`${SR}-${Qy(f)}`;return d._hashId=p,[d,p]},l=>{ER(l[0]._tokenKey)})}var DR={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},cM="comm",dM="rule",fM="decl",AR="@import",OR="@keyframes",TR="@layer",MR=Math.abs,rb=String.fromCharCode;function pM(e){return e.trim()}function Hd(e,t,n){return e.replace(t,n)}function NR(e,t){return e.indexOf(t)}function Fu(e,t){return e.charCodeAt(t)|0}function Ru(e,t,n){return e.slice(t,n)}function aa(e){return e.length}function PR(e){return e.length}function Hc(e,t){return t.push(e),e}var um=1,ls=1,mM=0,eo=0,On=0,$s="";function ob(e,t,n,r,o,a,i,l){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:um,column:ls,length:i,return:"",siblings:l}}function IR(){return On}function _R(){return On=eo>0?Fu($s,--eo):0,ls--,On===10&&(ls=1,um--),On}function mo(){return On=eo<mM?Fu($s,eo++):0,ls++,On===10&&(ls=1,um++),On}function Fi(){return Fu($s,eo)}function jd(){return eo}function cm(e,t){return Ru($s,e,t)}function Mg(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function BR(e){return um=ls=1,mM=aa($s=e),eo=0,[]}function FR(e){return $s="",e}function Zv(e){return pM(cm(eo-1,Ng(e===91?e+2:e===40?e+1:e)))}function RR(e){for(;(On=Fi())&&On<33;)mo();return Mg(e)>2||Mg(On)>3?"":" "}function zR(e,t){for(;--t&&mo()&&!(On<48||On>102||On>57&&On<65||On>70&&On<97););return cm(e,jd()+(t<6&&Fi()==32&&mo()==32))}function Ng(e){for(;mo();)switch(On){case e:return eo;case 34:case 39:e!==34&&e!==39&&Ng(On);break;case 40:e===41&&Ng(e);break;case 92:mo();break}return eo}function LR(e,t){for(;mo()&&e+On!==47+10;)if(e+On===42+42&&Fi()===47)break;return"/*"+cm(t,eo-1)+"*"+rb(e===47?e:mo())}function kR(e){for(;!Mg(Fi());)mo();return cm(e,eo)}function HR(e){return FR(Vd("",null,null,null,[""],e=BR(e),0,[0],e))}function Vd(e,t,n,r,o,a,i,l,s){for(var u=0,c=0,d=i,f=0,p=0,v=0,m=1,h=1,g=1,x=0,y="",w=o,b=a,S=r,$=y;h;)switch(v=x,x=mo()){case 40:if(v!=108&&Fu($,d-1)==58){NR($+=Hd(Zv(x),"&","&\f"),"&\f")!=-1&&(g=-1);break}case 34:case 39:case 91:$+=Zv(x);break;case 9:case 10:case 13:case 32:$+=RR(v);break;case 92:$+=zR(jd()-1,7);continue;case 47:switch(Fi()){case 42:case 47:Hc(jR(LR(mo(),jd()),t,n,s),s);break;default:$+="/"}break;case 123*m:l[u++]=aa($)*g;case 125*m:case 59:case 0:switch(x){case 0:case 125:h=0;case 59+c:g==-1&&($=Hd($,/\f/g,"")),p>0&&aa($)-d&&Hc(p>32?CS($+";",r,n,d-1,s):CS(Hd($," ","")+";",r,n,d-2,s),s);break;case 59:$+=";";default:if(Hc(S=SS($,t,n,u,c,o,l,y,w=[],b=[],d,a),a),x===123)if(c===0)Vd($,t,S,S,w,a,d,l,b);else switch(f===99&&Fu($,3)===110?100:f){case 100:case 108:case 109:case 115:Vd(e,S,S,r&&Hc(SS(e,S,S,0,0,o,l,y,o,w=[],d,b),b),o,b,d,l,r?w:b);break;default:Vd($,S,S,S,[""],b,0,l,b)}}u=c=p=0,m=g=1,y=$="",d=i;break;case 58:d=1+aa($),p=v;default:if(m<1){if(x==123)--m;else if(x==125&&m++==0&&_R()==125)continue}switch($+=rb(x),x*m){case 38:g=c>0?1:($+="\f",-1);break;case 44:l[u++]=(aa($)-1)*g,g=1;break;case 64:Fi()===45&&($+=Zv(mo())),f=Fi(),c=d=aa(y=$+=kR(jd())),x++;break;case 45:v===45&&aa($)==2&&(m=0)}}return a}function SS(e,t,n,r,o,a,i,l,s,u,c,d){for(var f=o-1,p=o===0?a:[""],v=PR(p),m=0,h=0,g=0;m<r;++m)for(var x=0,y=Ru(e,f+1,f=MR(h=i[m])),w=e;x<v;++x)(w=pM(h>0?p[x]+" "+y:Hd(y,/&\f/g,p[x])))&&(s[g++]=w);return ob(e,t,n,o===0?dM:l,s,u,c,d)}function jR(e,t,n,r){return ob(e,t,n,cM,rb(IR()),Ru(e,2,-2),0,r)}function CS(e,t,n,r,o){return ob(e,t,n,fM,Ru(e,0,r),Ru(e,r+1,-1),r,o)}function Pg(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function VR(e,t,n,r){switch(e.type){case TR:if(e.children.length)break;case AR:case fM:return e.return=e.return||e.value;case cM:return"";case OR:return e.return=e.value+"{"+Pg(e.children,r)+"}";case dM:if(!aa(e.value=e.props.join(",")))return""}return aa(n=Pg(e.children,r))?e.return=e.value+"{"+n+"}":""}let $S={};function WR(e,t){}function UR(e,t){}function vM(e,t,n){!t&&!$S[n]&&(e(!1,n),$S[n]=!0)}function dm(e,t){vM(WR,e,t)}function KR(e,t){vM(UR,e,t)}function ou(e,t){const{path:n,parentSelectors:r}=t;dm(!1,`[Ant Design Vue CSS-in-JS] ${n?`Error in '${n}': `:""}${e}${r.length?` Selector info: ${r.join(" -> ")}`:""}`)}function qR(e){var t;return(((t=e.match(/:not\(([^)]*)\)/))===null||t===void 0?void 0:t[1])||"").split(/(\[[^[]*])|(?=[.#])/).filter(o=>o).length>1}function GR(e){return e.parentSelectors.reduce((t,n)=>t?n.includes("&")?n.replace(/&/g,t):`${t} ${n}`:n,"")}const XR=(e,t,n)=>{const o=GR(n).match(/:not\([^)]*\)/g)||[];o.length>0&&o.some(qR)&&ou("Concat ':not' selector not support in legacy browsers.",n)},YR=XR,ZR=(e,t,n)=>{switch(e){case"marginLeft":case"marginRight":case"paddingLeft":case"paddingRight":case"left":case"right":case"borderLeft":case"borderLeftWidth":case"borderLeftStyle":case"borderLeftColor":case"borderRight":case"borderRightWidth":case"borderRightStyle":case"borderRightColor":case"borderTopLeftRadius":case"borderTopRightRadius":case"borderBottomLeftRadius":case"borderBottomRightRadius":ou(`You seem to be using non-logical property '${e}' which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties.`,n);return;case"margin":case"padding":case"borderWidth":case"borderStyle":if(typeof t=="string"){const r=t.split(" ").map(o=>o.trim());r.length===4&&r[1]!==r[3]&&ou(`You seem to be using '${e}' property with different left ${e} and right ${e}, which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties.`,n)}return;case"clear":case"textAlign":(t==="left"||t==="right")&&ou(`You seem to be using non-logical value '${t}' of ${e}, which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties.`,n);return;case"borderRadius":typeof t=="string"&&t.split("/").map(a=>a.trim()).reduce((a,i)=>{if(a)return a;const l=i.split(" ").map(s=>s.trim());return l.length>=2&&l[0]!==l[1]||l.length===3&&l[1]!==l[2]||l.length===4&&l[2]!==l[3]?!0:a},!1)&&ou(`You seem to be using non-logical value '${t}' of ${e}, which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties.`,n);return}},JR=ZR,ES=Co(),QR="_skip_check_";function DS(e){return Pg(HR(e),VR).replace(/\{%%%\:[^;];}/g,";")}function e9(e){return typeof e=="object"&&e&&QR in e}function t9(e,t,n){if(!t)return e;const r=`.${t}`,o=n==="low"?`:where(${r})`:r;return e.split(",").map(i=>{var l;const s=i.trim().split(/\s+/);let u=s[0]||"";const c=((l=u.match(/^\w+/))===null||l===void 0?void 0:l[0])||"";return u=`${c}${o}${u.slice(c.length)}`,[u,...s.slice(1)].join(" ")}).join(",")}const AS=new Set,Ig=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{root:n,injectHash:r,parentSelectors:o}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]};const{hashId:a,layer:i,path:l,hashPriority:s,transformers:u=[],linters:c=[]}=t;let d="",f={};function p(h){const g=h.getName(a);if(!f[g]){const[x]=Ig(h.style,t,{root:!1,parentSelectors:o});f[g]=`@keyframes ${h.getName(a)}${x}`}}function v(h){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return h.forEach(x=>{Array.isArray(x)?v(x,g):x&&g.push(x)}),g}if(v(Array.isArray(e)?e:[e]).forEach(h=>{const g=typeof h=="string"&&!n?{}:h;if(typeof g=="string")d+=`${g}
- `;else if(g._keyframe)p(g);else{const x=u.reduce((y,w)=>{var b;return((b=w==null?void 0:w.visit)===null||b===void 0?void 0:b.call(w,y))||y},g);Object.keys(x).forEach(y=>{var w;const b=x[y];if(typeof b=="object"&&b&&(y!=="animationName"||!b._keyframe)&&!e9(b)){let S=!1,$=y.trim(),D=!1;(n||r)&&a?$.startsWith("@")?S=!0:$=t9(y,a,s):n&&!a&&($==="&"||$==="")&&($="",D=!0);const[O,A]=Ig(b,t,{root:D,injectHash:S,parentSelectors:[...o,$]});f=E(E({},f),A),d+=`${$}${O}`}else{const S=(w=b==null?void 0:b.value)!==null&&w!==void 0?w:b,$=y.replace(/[A-Z]/g,O=>`-${O.toLowerCase()}`);let D=S;!DR[y]&&typeof D=="number"&&D!==0&&(D=`${D}px`),y==="animationName"&&(b!=null&&b._keyframe)&&(p(b),D=b.getName(a)),d+=`${$}:${D};`}})}}),!n)d=`{${d}}`;else if(i&&wR()){const h=i.split(",");d=`@layer ${h[h.length-1].trim()} {${d}}`,h.length>1&&(d=`@layer ${i}{%%%:%}${d}`)}return[d,f]};function n9(e,t){return Qy(`${e.join("%")}${t}`)}function jf(e,t){const n=lm(),r=z(()=>e.value.token._tokenKey),o=z(()=>[r.value,...e.value.path]);let a=ES;return rM("style",o,()=>{const i=t(),{hashPriority:l,container:s,transformers:u,linters:c}=n.value,{path:d,hashId:f,layer:p}=e.value,[v,m]=Ig(i,{hashId:f,hashPriority:l,layer:p,path:d.join("-"),transformers:u,linters:c}),h=DS(v),g=n9(o.value,h);if(a){const x=Bu(h,g,{mark:Bi,prepend:"queue",attachTo:s});x[pu]=Lf,x.setAttribute(eb,r.value),Object.keys(m).forEach(y=>{AS.has(y)||(AS.add(y),Bu(DS(m[y]),`_effect-${y}`,{mark:Bi,prepend:"queue",attachTo:s}))})}return[h,r.value,g]},(i,l)=>{let[,,s]=i;(l||n.value.autoClear)&&ES&&kf(s,{mark:Bi})}),i=>i}function r9(e){const t=Array.from(e.cache.keys()).filter(r=>r.startsWith("style%"));let n="";return t.forEach(r=>{const[o,a,i]=e.cache.get(r)[1];n+=`<style ${eb}="${a}" ${Bi}="${i}">${o}</style>`}),n}class o9{constructor(t,n){this._keyframe=!0,this.name=t,this.style=n}getName(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return t?`${t}-${this.name}`:this.name}}const ft=o9;function a9(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}class ss{constructor(){this.cache=new Map,this.keys=[],this.cacheCallTimes=0}size(){return this.keys.length}internalGet(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r={map:this.cache};return t.forEach(o=>{var a;r?r=(a=r==null?void 0:r.map)===null||a===void 0?void 0:a.get(o):r=void 0}),r!=null&&r.value&&n&&(r.value[1]=this.cacheCallTimes++),r==null?void 0:r.value}get(t){var n;return(n=this.internalGet(t,!0))===null||n===void 0?void 0:n[0]}has(t){return!!this.internalGet(t)}set(t,n){if(!this.has(t)){if(this.size()+1>ss.MAX_CACHE_SIZE+ss.MAX_CACHE_OFFSET){const[o]=this.keys.reduce((a,i)=>{const[,l]=a;return this.internalGet(i)[1]<l?[i,this.internalGet(i)[1]]:a},[this.keys[0],this.cacheCallTimes]);this.delete(o)}this.keys.push(t)}let r=this.cache;t.forEach((o,a)=>{if(a===t.length-1)r.set(o,{value:[n,this.cacheCallTimes++]});else{const i=r.get(o);i?i.map||(i.map=new Map):r.set(o,{map:new Map}),r=r.get(o).map}})}deleteByPath(t,n){var r;const o=t.get(n[0]);if(n.length===1)return o.map?t.set(n[0],{map:o.map}):t.delete(n[0]),(r=o.value)===null||r===void 0?void 0:r[0];const a=this.deleteByPath(o.map,n.slice(1));return(!o.map||o.map.size===0)&&!o.value&&t.delete(n[0]),a}delete(t){if(this.has(t))return this.keys=this.keys.filter(n=>!a9(n,t)),this.deleteByPath(this.cache,t)}}ss.MAX_CACHE_SIZE=20;ss.MAX_CACHE_OFFSET=5;function i9(){}let l9=i9;const Jt=l9;let OS=0;class hM{constructor(t){this.derivatives=Array.isArray(t)?t:[t],this.id=OS,t.length===0&&Jt(t.length>0),OS+=1}getDerivativeToken(t){return this.derivatives.reduce((n,r)=>r(t,n),void 0)}}const Jv=new ss;function ab(e){const t=Array.isArray(e)?e:[e];return Jv.has(t)||Jv.set(t,new hM(t)),Jv.get(t)}function s9(e){if(typeof e=="number")return[e];const t=String(e).split(/\s+/);let n="",r=0;return t.reduce((o,a)=>(a.includes("(")?(n+=a,r+=a.split("(").length-1):a.includes(")")?(n+=` ${a}`,r-=a.split(")").length-1,r===0&&(o.push(n),n="")):r>0?n+=` ${a}`:o.push(a),o),[])}function gl(e){return e.notSplit=!0,e}const u9={inset:["top","right","bottom","left"],insetBlock:["top","bottom"],insetBlockStart:["top"],insetBlockEnd:["bottom"],insetInline:["left","right"],insetInlineStart:["left"],insetInlineEnd:["right"],marginBlock:["marginTop","marginBottom"],marginBlockStart:["marginTop"],marginBlockEnd:["marginBottom"],marginInline:["marginLeft","marginRight"],marginInlineStart:["marginLeft"],marginInlineEnd:["marginRight"],paddingBlock:["paddingTop","paddingBottom"],paddingBlockStart:["paddingTop"],paddingBlockEnd:["paddingBottom"],paddingInline:["paddingLeft","paddingRight"],paddingInlineStart:["paddingLeft"],paddingInlineEnd:["paddingRight"],borderBlock:gl(["borderTop","borderBottom"]),borderBlockStart:gl(["borderTop"]),borderBlockEnd:gl(["borderBottom"]),borderInline:gl(["borderLeft","borderRight"]),borderInlineStart:gl(["borderLeft"]),borderInlineEnd:gl(["borderRight"]),borderBlockWidth:["borderTopWidth","borderBottomWidth"],borderBlockStartWidth:["borderTopWidth"],borderBlockEndWidth:["borderBottomWidth"],borderInlineWidth:["borderLeftWidth","borderRightWidth"],borderInlineStartWidth:["borderLeftWidth"],borderInlineEndWidth:["borderRightWidth"],borderBlockStyle:["borderTopStyle","borderBottomStyle"],borderBlockStartStyle:["borderTopStyle"],borderBlockEndStyle:["borderBottomStyle"],borderInlineStyle:["borderLeftStyle","borderRightStyle"],borderInlineStartStyle:["borderLeftStyle"],borderInlineEndStyle:["borderRightStyle"],borderBlockColor:["borderTopColor","borderBottomColor"],borderBlockStartColor:["borderTopColor"],borderBlockEndColor:["borderBottomColor"],borderInlineColor:["borderLeftColor","borderRightColor"],borderInlineStartColor:["borderLeftColor"],borderInlineEndColor:["borderRightColor"],borderStartStartRadius:["borderTopLeftRadius"],borderStartEndRadius:["borderTopRightRadius"],borderEndStartRadius:["borderBottomLeftRadius"],borderEndEndRadius:["borderBottomRightRadius"]};function jc(e){return{_skip_check_:!0,value:e}}const c9={visit:e=>{const t={};return Object.keys(e).forEach(n=>{const r=e[n],o=u9[n];if(o&&(typeof r=="number"||typeof r=="string")){const a=s9(r);o.length&&o.notSplit?o.forEach(i=>{t[i]=jc(r)}):o.length===1?t[o[0]]=jc(r):o.length===2?o.forEach((i,l)=>{var s;t[i]=jc((s=a[l])!==null&&s!==void 0?s:a[0])}):o.length===4?o.forEach((i,l)=>{var s,u;t[i]=jc((u=(s=a[l])!==null&&s!==void 0?s:a[l-2])!==null&&u!==void 0?u:a[0])}):t[n]=r}else t[n]=r}),t}},d9=c9,f9={Theme:hM,createTheme:ab,useStyleRegister:jf,useCacheToken:uM,createCache:tb,useStyleInject:lm,useStyleProvider:nM,Keyframes:ft,extractStyle:r9,legacyLogicalPropertiesTransformer:d9,logicalPropertiesLinter:JR,legacyNotSelectorLinter:YR,StyleProvider:vR},p9=f9,gM="4.0.0",zu=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function Wn(e,t){m9(e)&&(e="100%");var n=v9(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 Vc(e){return Math.min(1,Math.max(0,e))}function m9(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function v9(e){return typeof e=="string"&&e.indexOf("%")!==-1}function yM(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Wc(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Ni(e){return e.length===1?"0"+e:String(e)}function h9(e,t,n){return{r:Wn(e,255)*255,g:Wn(t,255)*255,b:Wn(n,255)*255}}function TS(e,t,n){e=Wn(e,255),t=Wn(t,255),n=Wn(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),a=0,i=0,l=(r+o)/2;if(r===o)i=0,a=0;else{var s=r-o;switch(i=l>.5?s/(2-r-o):s/(r+o),r){case e:a=(t-n)/s+(t<n?6:0);break;case t:a=(n-e)/s+2;break;case n:a=(e-t)/s+4;break}a/=6}return{h:a,s:i,l}}function Qv(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function g9(e,t,n){var r,o,a;if(e=Wn(e,360),t=Wn(t,100),n=Wn(n,100),t===0)o=n,a=n,r=n;else{var i=n<.5?n*(1+t):n+t-n*t,l=2*n-i;r=Qv(l,i,e+1/3),o=Qv(l,i,e),a=Qv(l,i,e-1/3)}return{r:r*255,g:o*255,b:a*255}}function _g(e,t,n){e=Wn(e,255),t=Wn(t,255),n=Wn(n,255);var r=Math.max(e,t,n),o=Math.min(e,t,n),a=0,i=r,l=r-o,s=r===0?0:l/r;if(r===o)a=0;else{switch(r){case e:a=(t-n)/l+(t<n?6:0);break;case t:a=(n-e)/l+2;break;case n:a=(e-t)/l+4;break}a/=6}return{h:a,s,v:i}}function y9(e,t,n){e=Wn(e,360)*6,t=Wn(t,100),n=Wn(n,100);var r=Math.floor(e),o=e-r,a=n*(1-t),i=n*(1-o*t),l=n*(1-(1-o)*t),s=r%6,u=[n,i,a,a,l,n][s],c=[l,n,n,i,a,a][s],d=[a,a,l,n,n,i][s];return{r:u*255,g:c*255,b:d*255}}function Bg(e,t,n,r){var o=[Ni(Math.round(e).toString(16)),Ni(Math.round(t).toString(16)),Ni(Math.round(n).toString(16))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function b9(e,t,n,r,o){var a=[Ni(Math.round(e).toString(16)),Ni(Math.round(t).toString(16)),Ni(Math.round(n).toString(16)),Ni(x9(r))];return o&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))&&a[3].startsWith(a[3].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}function x9(e){return Math.round(parseFloat(e)*255).toString(16)}function MS(e){return Nr(e)/255}function Nr(e){return parseInt(e,16)}function w9(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var Fg={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 Nl(e){var t={r:0,g:0,b:0},n=1,r=null,o=null,a=null,i=!1,l=!1;return typeof e=="string"&&(e=$9(e)),typeof e=="object"&&(Zo(e.r)&&Zo(e.g)&&Zo(e.b)?(t=h9(e.r,e.g,e.b),i=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Zo(e.h)&&Zo(e.s)&&Zo(e.v)?(r=Wc(e.s),o=Wc(e.v),t=y9(e.h,r,o),i=!0,l="hsv"):Zo(e.h)&&Zo(e.s)&&Zo(e.l)&&(r=Wc(e.s),a=Wc(e.l),t=g9(e.h,r,a),i=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=yM(n),{ok:i,format:e.format||l,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var S9="[-\\+]?\\d+%?",C9="[-\\+]?\\d*\\.\\d+%?",Ga="(?:".concat(C9,")|(?:").concat(S9,")"),eh="[\\s|\\(]+(".concat(Ga,")[,|\\s]+(").concat(Ga,")[,|\\s]+(").concat(Ga,")\\s*\\)?"),th="[\\s|\\(]+(".concat(Ga,")[,|\\s]+(").concat(Ga,")[,|\\s]+(").concat(Ga,")[,|\\s]+(").concat(Ga,")\\s*\\)?"),so={CSS_UNIT:new RegExp(Ga),rgb:new RegExp("rgb"+eh),rgba:new RegExp("rgba"+th),hsl:new RegExp("hsl"+eh),hsla:new RegExp("hsla"+th),hsv:new RegExp("hsv"+eh),hsva:new RegExp("hsva"+th),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 $9(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Fg[e])e=Fg[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=so.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=so.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=so.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=so.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=so.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=so.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=so.hex8.exec(e),n?{r:Nr(n[1]),g:Nr(n[2]),b:Nr(n[3]),a:MS(n[4]),format:t?"name":"hex8"}:(n=so.hex6.exec(e),n?{r:Nr(n[1]),g:Nr(n[2]),b:Nr(n[3]),format:t?"name":"hex"}:(n=so.hex4.exec(e),n?{r:Nr(n[1]+n[1]),g:Nr(n[2]+n[2]),b:Nr(n[3]+n[3]),a:MS(n[4]+n[4]),format:t?"name":"hex8"}:(n=so.hex3.exec(e),n?{r:Nr(n[1]+n[1]),g:Nr(n[2]+n[2]),b:Nr(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Zo(e){return Boolean(so.CSS_UNIT.exec(String(e)))}var $t=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=w9(t)),this.originalInput=t;var o=Nl(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:o.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,o,a=t.r/255,i=t.g/255,l=t.b/255;return a<=.03928?n=a/12.92:n=Math.pow((a+.055)/1.055,2.4),i<=.03928?r=i/12.92:r=Math.pow((i+.055)/1.055,2.4),l<=.03928?o=l/12.92:o=Math.pow((l+.055)/1.055,2.4),.2126*n+.7152*r+.0722*o},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=yM(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=_g(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=_g(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=TS(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=TS(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),o=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(o,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),Bg(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),b9(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(Wn(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(Wn(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="#"+Bg(this.r,this.g,this.b,!1),n=0,r=Object.entries(Fg);n<r.length;n++){var o=r[n],a=o[0],i=o[1];if(t===i)return a}return!1},e.prototype.toString=function(t){var n=Boolean(t);t=t??this.format;var r=!1,o=this.a<1&&this.a>=0,a=!n&&o&&(t.startsWith("hex")||t==="name");return a?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=Vc(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=Vc(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=Vc(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=Vc(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),a=n/100,i={r:(o.r-r.r)*a+r.r,g:(o.g-r.g)*a+r.g,b:(o.b-r.b)*a+r.b,a:(o.a-r.a)*a+r.a};return new e(i)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),o=360/n,a=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,a.push(new e(r));return a},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,a=n.v,i=[],l=1/t;t--;)i.push(new e({h:r,s:o,v:a})),a=(a+l)%1;return i},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],a=360/t,i=1;i<t;i++)o.push(new e({h:(r+i*a)%360,s:n.s,l:n.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}(),Uc=2,NS=.16,E9=.05,D9=.05,A9=.15,bM=5,xM=4,O9=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function PS(e){var t=e.r,n=e.g,r=e.b,o=_g(t,n,r);return{h:o.h*360,s:o.s,v:o.v}}function Kc(e){var t=e.r,n=e.g,r=e.b;return"#".concat(Bg(t,n,r,!1))}function T9(e,t,n){var r=n/100,o={r:(t.r-e.r)*r+e.r,g:(t.g-e.g)*r+e.g,b:(t.b-e.b)*r+e.b};return o}function IS(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-Uc*t:Math.round(e.h)+Uc*t:r=n?Math.round(e.h)+Uc*t:Math.round(e.h)-Uc*t,r<0?r+=360:r>=360&&(r-=360),r}function _S(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-NS*t:t===xM?r=e.s+NS:r=e.s+E9*t,r>1&&(r=1),n&&t===bM&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function BS(e,t,n){var r;return n?r=e.v+D9*t:r=e.v-A9*t,r>1&&(r=1),Number(r.toFixed(2))}function ga(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=Nl(e),o=bM;o>0;o-=1){var a=PS(r),i=Kc(Nl({h:IS(a,o,!0),s:_S(a,o,!0),v:BS(a,o,!0)}));n.push(i)}n.push(Kc(r));for(var l=1;l<=xM;l+=1){var s=PS(r),u=Kc(Nl({h:IS(s,l),s:_S(s,l),v:BS(s,l)}));n.push(u)}return t.theme==="dark"?O9.map(function(c){var d=c.index,f=c.opacity,p=Kc(T9(Nl(t.backgroundColor||"#141414"),Nl(n[d]),f*100));return p}):n}var Wl={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Wd={},nh={};Object.keys(Wl).forEach(function(e){Wd[e]=ga(Wl[e]),Wd[e].primary=Wd[e][5],nh[e]=ga(Wl[e],{theme:"dark",backgroundColor:"#141414"}),nh[e].primary=nh[e][5]});var M9=Wd.gold;const N9=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},wM=N9;function P9(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 ib={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"},I9=E(E({},ib),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",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'`,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}),fm=I9;function SM(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:a,colorError:i,colorInfo:l,colorPrimary:s,colorBgBase:u,colorTextBase:c}=e,d=n(s),f=n(o),p=n(a),v=n(i),m=n(l),h=r(u,c);return E(E({},h),{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],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:m[1],colorInfoBgHover:m[2],colorInfoBorder:m[3],colorInfoBorderHover:m[4],colorInfoHover:m[4],colorInfo:m[6],colorInfoActive:m[7],colorInfoTextHover:m[8],colorInfoText:m[9],colorInfoTextActive:m[10],colorBgMask:new $t("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const _9=e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e>16?16:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}},B9=_9;function F9(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return E({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:o+1},B9(r))}const Jo=(e,t)=>new $t(e).setAlpha(t).toRgbString(),Ys=(e,t)=>new $t(e).darken(t).toHexString(),R9=e=>{const t=ga(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]}},z9=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Jo(r,.88),colorTextSecondary:Jo(r,.65),colorTextTertiary:Jo(r,.45),colorTextQuaternary:Jo(r,.25),colorFill:Jo(r,.15),colorFillSecondary:Jo(r,.06),colorFillTertiary:Jo(r,.04),colorFillQuaternary:Jo(r,.02),colorBgLayout:Ys(n,4),colorBgContainer:Ys(n,0),colorBgElevated:Ys(n,0),colorBgSpotlight:Jo(r,.85),colorBorder:Ys(n,15),colorBorderSecondary:Ys(n,6)}};function L9(e){const t=new Array(10).fill(null).map((n,r)=>{const o=r-1,a=e*Math.pow(2.71828,o/5),i=r>1?Math.floor(a):Math.ceil(a);return Math.floor(i/2)*2});return t[1]=e,t.map(n=>{const r=n+8;return{size:n,lineHeight:r/n}})}const k9=e=>{const t=L9(e),n=t.map(o=>o.size),r=t.map(o=>o.lineHeight);return{fontSizeSM:n[0],fontSize:n[1],fontSizeLG:n[2],fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:r[1],lineHeightLG:r[2],lineHeightSM:r[0],lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}},CM=k9;function pm(e){const t=Object.keys(ib).map(n=>{const r=ga(e[n]);return new Array(10).fill(1).reduce((o,a,i)=>(o[`${n}-${i+1}`]=r[i],o),{})}).reduce((n,r)=>(n=E(E({},n),r),n),{});return E(E(E(E(E(E(E({},e),t),SM(e,{generateColorPalettes:R9,generateNeutralColorPalettes:z9})),CM(e.fontSize)),P9(e)),wM(e)),F9(e))}function rh(e){return e>=0&&e<=255}function qc(e,t){const{r:n,g:r,b:o,a}=new $t(e).toRgb();if(a<1)return e;const{r:i,g:l,b:s}=new $t(t).toRgb();for(let u=.01;u<=1;u+=.01){const c=Math.round((n-i*(1-u))/u),d=Math.round((r-l*(1-u))/u),f=Math.round((o-s*(1-u))/u);if(rh(c)&&rh(d)&&rh(f))return new $t({r:c,g:d,b:f,a:Math.round(u*100)/100}).toRgbString()}return new $t({r:n,g:r,b:o,a:1}).toRgbString()}var H9=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function j9(e){const{override:t}=e,n=H9(e,["override"]),r=E({},t);Object.keys(fm).forEach(p=>{delete r[p]});const o=E(E({},n),r),a=480,i=576,l=768,s=992,u=1200,c=1600,d=2e3;return E(E(E({},o),{colorLink:o.colorInfoText,colorLinkHover:o.colorInfoHover,colorLinkActive:o.colorInfoActive,colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:qc(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:qc(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:qc(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidth:o.lineWidth,controlOutlineWidth:o.lineWidth*2,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:qc(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:`
- 0 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)
- `,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:a,screenXSMin:a,screenXSMax:i-1,screenSM:i,screenSMMin:i,screenSMMax:l-1,screenMD:l,screenMDMin:l,screenMDMax:s-1,screenLG:s,screenLGMin:s,screenLGMax:u-1,screenXL:u,screenXLMin:u,screenXLMax:c-1,screenXXL:c,screenXXLMin:c,screenXXLMax:d-1,screenXXXL:d,screenXXXLMin:d,boxShadowPopoverArrow:"3px 3px 7px rgba(0, 0, 0, 0.1)",boxShadowCard:`
- 0 1px 2px -2px ${new $t("rgba(0, 0, 0, 0.16)").toRgbString()},
- 0 3px 6px 0 ${new $t("rgba(0, 0, 0, 0.12)").toRgbString()},
- 0 5px 12px 4px ${new $t("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)}const mm=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),lb=(e,t,n,r,o)=>{const a=e/2,i=a-n*(Math.sqrt(2)-1),l=a,s=a+n*(1-1/Math.sqrt(2)),u=a-n*(1-1/Math.sqrt(2)),c=2*a-t*(1/Math.sqrt(2)),d=t*(1/Math.sqrt(2)),f=4*a-c,p=d,v=4*a-s,m=u,h=4*a-i,g=l;return{borderRadius:{_skip_check_:!0,value:`0 0 ${t}px`},pointerEvents:"none",width:e*2,height:e*2,overflow:"hidden","&::after":{content:'""',position:"absolute",width:e/Math.sqrt(2),height:e/Math.sqrt(2),bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${t}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:o,zIndex:0,background:"transparent"},"&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:e*2,height:e/2,background:r,clipPath:`path('M ${i} ${l} A ${n} ${n} 0 0 0 ${s} ${u} L ${c} ${d} A ${t} ${t} 0 0 1 ${f} ${p} L ${v} ${m} A ${n} ${n} 0 0 0 ${h} ${g} Z')`,content:'""'}}};function Vf(e,t){return zu.reduce((n,r)=>{const o=e[`${r}-1`],a=e[`${r}-3`],i=e[`${r}-6`],l=e[`${r}-7`];return E(E({},n),t(r,{lightColor:o,lightBorderColor:a,darkColor:i,textColor:l}))},{})}const gn={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},rt=e=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:e.fontFamily}),Qi=()=>({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"}}),yo=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),V9=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"}}}),W9=(e,t)=>{const{fontFamily:n,fontSize:r}=e,o=`[class^="${t}"], [class*=" ${t}"]`;return{[o]:{fontFamily:n,fontSize:r,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[o]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},ya=e=>({outline:`${e.lineWidthBold}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),ba=e=>({"&:focus-visible":E({},ya(e))});function nt(e,t,n){return r=>{const o=z(()=>r==null?void 0:r.value),[a,i,l]=$a(),{getPrefixCls:s,iconPrefixCls:u}=im(),c=z(()=>s()),d=z(()=>({theme:a.value,token:i.value,hashId:l.value,path:["Shared",c.value]}));jf(d,()=>[{"&":V9(i.value)}]);const f=z(()=>({theme:a.value,token:i.value,hashId:l.value,path:[e,o.value,u.value]}));return[jf(f,()=>{const{token:p,flush:v}=K9(i.value),m=typeof n=="function"?n(p):n,h=E(E({},m),i.value[e]),g=`.${o.value}`,x=qe(p,{componentCls:g,prefixCls:o.value,iconCls:`.${u.value}`,antCls:`.${c.value}`},h),y=t(x,{hashId:l.value,prefixCls:o.value,rootPrefixCls:c.value,iconPrefixCls:u.value,overrideComponentToken:i.value[e]});return v(e,h),[W9(i.value,o.value),y]}),l]}}const $M=typeof CSSINJS_STATISTIC<"u";let Rg=!0;function qe(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!$M)return E({},...t);Rg=!1;const r={};return t.forEach(o=>{Object.keys(o).forEach(i=>{Object.defineProperty(r,i,{configurable:!0,enumerable:!0,get:()=>o[i]})})}),Rg=!0,r}function U9(){}function K9(e){let t,n=e,r=U9;return $M&&(t=new Set,n=new Proxy(e,{get(o,a){return Rg&&t.add(a),o[a]}}),r=(o,a)=>{Array.from(t)}),{token:n,keys:t,flush:r}}function Lu(e){if(!Vi(e))return _t(e);const t=new Proxy({},{get(n,r,o){return Reflect.get(e.value,r,o)},set(n,r,o){return e.value[r]=o,!0},deleteProperty(n,r){return Reflect.deleteProperty(e.value,r)},has(n,r){return Reflect.has(e.value,r)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return _t(t)}const q9=ab(pm),Wf={token:fm,hashed:!0},EM=Symbol("DesignTokenContext"),DM=be(),G9=e=>{it(EM,e),Je(()=>{DM.value=e})},X9=he({props:{value:We()},setup(e,t){let{slots:n}=t;return G9(Lu(z(()=>e.value))),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}});function $a(){const e=lt(EM,DM.value||Wf),t=z(()=>`${gM}-${e.hashed||""}`),n=z(()=>e.theme||q9),r=uM(n,z(()=>[fm,e.token]),z(()=>({salt:t.value,override:E({override:e.token},e.components),formatToken:j9})));return[n,z(()=>r.value[0]),z(()=>e.hashed?r.value[1]:"")]}const AM=he({compatConfig:{MODE:3},setup(){const[,e]=$a(),t=z(()=>new $t(e.value.colorBgBase).toHsl().l<.5?{opacity:.65}:{});return()=>C("svg",{style:t.value,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},[C("g",{fill:"none","fill-rule":"evenodd"},[C("g",{transform:"translate(24 31.67)"},[C("ellipse",{"fill-opacity":".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"},null),C("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"},null),C("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"},null),C("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"},null),C("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"},null)]),C("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"},null),C("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},[C("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"},null),C("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"},null)])])])}});AM.PRESENTED_IMAGE_DEFAULT=!0;const Y9=AM,OM=he({compatConfig:{MODE:3},setup(){const[,e]=$a(),t=z(()=>{const{colorFill:n,colorFillTertiary:r,colorFillQuaternary:o,colorBgContainer:a}=e.value;return{borderColor:new $t(n).onBackground(a).toHexString(),shadowColor:new $t(r).onBackground(a).toHexString(),contentColor:new $t(o).onBackground(a).toHexString()}});return()=>C("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},[C("g",{transform:"translate(0 1)",fill:"none","fill-rule":"evenodd"},[C("ellipse",{fill:t.value.shadowColor,cx:"32",cy:"33",rx:"32",ry:"7"},null),C("g",{"fill-rule":"nonzero",stroke:t.value.borderColor},[C("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"},null),C("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:t.value.contentColor},null)])])])}});OM.PRESENTED_IMAGE_SIMPLE=!0;const Z9=OM,J9=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:a,lineHeight:i}=e;return{[t]:{marginInline:r,fontSize:a,lineHeight:i,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{height:"100%",margin:"auto"}},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:o,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},Q9=nt("Empty",e=>{const{componentCls:t,controlHeightLG:n}=e,r=qe(e,{emptyImgCls:`${t}-img`,emptyImgHeight:n*2.5,emptyImgHeightMD:n,emptyImgHeightSM:n*.875});return[J9(r)]});var ez=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const TM=C(Y9,null,null),MM=C(Z9,null,null),tz=()=>({prefixCls:String,imageStyle:We(),image:jt(),description:jt()}),sb=he({name:"AEmpty",compatConfig:{MODE:3},inheritAttrs:!1,props:tz(),setup(e,t){let{slots:n={},attrs:r}=t;const{direction:o,prefixCls:a}=He("empty",e),[i,l]=Q9(a);return()=>{var s,u;const c=a.value,d=E(E({},e),r),{image:f=((s=n.image)===null||s===void 0?void 0:s.call(n))||TM,description:p=((u=n.description)===null||u===void 0?void 0:u.call(n))||void 0,imageStyle:v,class:m=""}=d,h=ez(d,["image","description","imageStyle","class"]);return i(C(Ji,{componentName:"Empty",children:g=>{const x=typeof p<"u"?p:g.description,y=typeof x=="string"?x:"empty";let w=null;return typeof f=="string"?w=C("img",{alt:y,src:f},null):w=f,C("div",j({class:ge(c,m,l.value,{[`${c}-normal`]:f===MM,[`${c}-rtl`]:o.value==="rtl"})},h),[C("div",{class:`${c}-image`,style:v},[w]),x&&C("p",{class:`${c}-description`},[x]),n.default&&C("div",{class:`${c}-footer`},[nn(n.default())])])}},null))}}});sb.PRESENTED_IMAGE_DEFAULT=TM;sb.PRESENTED_IMAGE_SIMPLE=MM;const Ka=rn(sb),ub=e=>{const{prefixCls:t}=He("empty",e);return(r=>{switch(r){case"Table":case"List":return C(Ka,{image:Ka.PRESENTED_IMAGE_SIMPLE},null);case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return C(Ka,{image:Ka.PRESENTED_IMAGE_SIMPLE,class:`${t.value}-small`},null);default:return C(Ka,null,null)}})(e.componentName)};function nz(e){return C(ub,{componentName:e},null)}const NM=Symbol("SizeContextKey"),PM=()=>lt(NM,be(void 0)),IM=e=>{const t=PM();return it(NM,z(()=>e.value||t.value)),e},He=(e,t)=>{const n=PM(),r=Fr(),o=lt(Jy,E(E({},YT),{renderEmpty:S=>Eg(ub,{componentName:S})})),a=z(()=>o.getPrefixCls(e,t.prefixCls)),i=z(()=>{var S,$;return(S=t.direction)!==null&&S!==void 0?S:($=o.direction)===null||$===void 0?void 0:$.value}),l=z(()=>{var S;return(S=t.iconPrefixCls)!==null&&S!==void 0?S:o.iconPrefixCls.value}),s=z(()=>o.getPrefixCls()),u=z(()=>{var S;return(S=o.autoInsertSpaceInButton)===null||S===void 0?void 0:S.value}),c=o.renderEmpty,d=o.space,f=o.pageHeader,p=o.form,v=z(()=>{var S,$;return(S=t.getTargetContainer)!==null&&S!==void 0?S:($=o.getTargetContainer)===null||$===void 0?void 0:$.value}),m=z(()=>{var S,$;return(S=t.getPopupContainer)!==null&&S!==void 0?S:($=o.getPopupContainer)===null||$===void 0?void 0:$.value}),h=z(()=>{var S,$;return(S=t.dropdownMatchSelectWidth)!==null&&S!==void 0?S:($=o.dropdownMatchSelectWidth)===null||$===void 0?void 0:$.value}),g=z(()=>{var S;return(t.virtual===void 0?((S=o.virtual)===null||S===void 0?void 0:S.value)!==!1:t.virtual!==!1)&&h.value!==!1}),x=z(()=>t.size||n.value),y=z(()=>{var S,$,D;return(S=t.autocomplete)!==null&&S!==void 0?S:(D=($=o.input)===null||$===void 0?void 0:$.value)===null||D===void 0?void 0:D.autocomplete}),w=z(()=>{var S;return(S=t.disabled)!==null&&S!==void 0?S:r.value}),b=z(()=>{var S;return(S=t.csp)!==null&&S!==void 0?S:o.csp});return{configProvider:o,prefixCls:a,direction:i,size:x,getTargetContainer:v,getPopupContainer:m,space:d,pageHeader:f,form:p,autoInsertSpaceInButton:u,renderEmpty:c,virtual:g,dropdownMatchSelectWidth:h,rootPrefixCls:s,getPrefixCls:o.getPrefixCls,autocomplete:y,csp:b,iconPrefixCls:l,disabled:w,select:o.select}};function pt(e,t){const n=E({},e);for(let r=0;r<t.length;r+=1){const o=t[r];delete n[o]}return n}const rz=e=>{const{componentCls:t}=e;return{[t]:{position:"fixed",zIndex:e.zIndexPopup}}},oz=nt("Affix",e=>{const t=qe(e,{zIndexPopup:e.zIndexBase+10});return[rz(t)]});function az(){return typeof window<"u"?window:null}var Fl;(function(e){e[e.None=0]="None",e[e.Prepare=1]="Prepare"})(Fl||(Fl={}));const iz=()=>({offsetTop:Number,offsetBottom:Number,target:{type:Function,default:az},prefixCls:String,onChange:Function,onTestUpdatePosition:Function}),lz=he({compatConfig:{MODE:3},name:"AAffix",inheritAttrs:!1,props:iz(),setup(e,t){let{slots:n,emit:r,expose:o,attrs:a}=t;const i=pe(),l=pe(),s=_t({affixStyle:void 0,placeholderStyle:void 0,status:Fl.None,lastAffix:!1,prevTarget:null,timeout:null}),u=Kn(),c=z(()=>e.offsetBottom===void 0&&e.offsetTop===void 0?0:e.offsetTop),d=z(()=>e.offsetBottom),f=()=>{const{status:y,lastAffix:w}=s,{target:b}=e;if(y!==Fl.Prepare||!l.value||!i.value||!b)return;const S=b();if(!S)return;const $={status:Fl.None},D=kc(i.value);if(D.top===0&&D.left===0&&D.width===0&&D.height===0)return;const O=kc(S),A=hS(D,O,c.value),T=gS(D,O,d.value);if(!(D.top===0&&D.left===0&&D.width===0&&D.height===0)){if(A!==void 0){const M=`${D.width}px`,B=`${D.height}px`;$.affixStyle={position:"fixed",top:A,width:M,height:B},$.placeholderStyle={width:M,height:B}}else if(T!==void 0){const M=`${D.width}px`,B=`${D.height}px`;$.affixStyle={position:"fixed",bottom:T,width:M,height:B},$.placeholderStyle={width:M,height:B}}$.lastAffix=!!$.affixStyle,w!==$.lastAffix&&r("change",$.lastAffix),E(s,$)}},p=()=>{E(s,{status:Fl.Prepare,affixStyle:void 0,placeholderStyle:void 0}),u.update()},v=Og(()=>{p()}),m=Og(()=>{const{target:y}=e,{affixStyle:w}=s;if(y&&w){const b=y();if(b&&i.value){const S=kc(b),$=kc(i.value),D=hS($,S,c.value),O=gS($,S,d.value);if(D!==void 0&&w.top===D||O!==void 0&&w.bottom===O)return}}p()});o({updatePosition:v,lazyUpdatePosition:m}),Ne(()=>e.target,y=>{const w=(y==null?void 0:y())||null;s.prevTarget!==w&&(bS(u),w&&(yS(w,u),v()),s.prevTarget=w)}),Ne(()=>[e.offsetTop,e.offsetBottom],v),Qe(()=>{const{target:y}=e;y&&(s.timeout=setTimeout(()=>{yS(y(),u),v()}))}),Sr(()=>{f()}),Cr(()=>{clearTimeout(s.timeout),bS(u),v.cancel(),m.cancel()});const{prefixCls:h}=He("affix",e),[g,x]=oz(h);return()=>{var y;const{affixStyle:w,placeholderStyle:b}=s,S=ge({[h.value]:w,[x.value]:!0}),$=pt(e,["prefixCls","offsetTop","offsetBottom","target","onChange","onTestUpdatePosition"]);return g(C(Qr,{onResize:v},{default:()=>[C("div",j(j(j({},$),a),{},{ref:i}),[w&&C("div",{style:b,"aria-hidden":"true"},null),C("div",{class:S,ref:l,style:w},[(y=n.default)===null||y===void 0?void 0:y.call(n)])])]}))}}}),_M=rn(lz);function FS(e){return typeof e=="object"&&e!=null&&e.nodeType===1}function RS(e,t){return(!t||e!=="hidden")&&e!=="visible"&&e!=="clip"}function oh(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return RS(n.overflowY,t)||RS(n.overflowX,t)||function(r){var o=function(a){if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch{return null}}(r);return!!o&&(o.clientHeight<r.scrollHeight||o.clientWidth<r.scrollWidth)}(e)}return!1}function Gc(e,t,n,r,o,a,i,l){return a<e&&i>t||a>e&&i<t?0:a<=e&&l<=n||i>=t&&l>=n?a-e-r:i>t&&l<n||a<e&&l>n?i-t+o:0}var zS=function(e,t){var n=window,r=t.scrollMode,o=t.block,a=t.inline,i=t.boundary,l=t.skipOverflowHiddenElements,s=typeof i=="function"?i:function(Se){return Se!==i};if(!FS(e))throw new TypeError("Invalid target");for(var u,c,d=document.scrollingElement||document.documentElement,f=[],p=e;FS(p)&&s(p);){if((p=(c=(u=p).parentElement)==null?u.getRootNode().host||null:c)===d){f.push(p);break}p!=null&&p===document.body&&oh(p)&&!oh(document.documentElement)||p!=null&&oh(p,l)&&f.push(p)}for(var v=n.visualViewport?n.visualViewport.width:innerWidth,m=n.visualViewport?n.visualViewport.height:innerHeight,h=window.scrollX||pageXOffset,g=window.scrollY||pageYOffset,x=e.getBoundingClientRect(),y=x.height,w=x.width,b=x.top,S=x.right,$=x.bottom,D=x.left,O=o==="start"||o==="nearest"?b:o==="end"?$:b+y/2,A=a==="center"?D+w/2:a==="end"?S:D,T=[],M=0;M<f.length;M++){var B=f[M],F=B.getBoundingClientRect(),P=F.height,I=F.width,N=F.top,R=F.right,_=F.bottom,L=F.left;if(r==="if-needed"&&b>=0&&D>=0&&$<=m&&S<=v&&b>=N&&$<=_&&D>=L&&S<=R)return T;var k=getComputedStyle(B),H=parseInt(k.borderLeftWidth,10),V=parseInt(k.borderTopWidth,10),U=parseInt(k.borderRightWidth,10),q=parseInt(k.borderBottomWidth,10),K=0,X=0,re="offsetWidth"in B?B.offsetWidth-B.clientWidth-H-U:0,ee="offsetHeight"in B?B.offsetHeight-B.clientHeight-V-q:0,G="offsetWidth"in B?B.offsetWidth===0?0:I/B.offsetWidth:0,le="offsetHeight"in B?B.offsetHeight===0?0:P/B.offsetHeight:0;if(d===B)K=o==="start"?O:o==="end"?O-m:o==="nearest"?Gc(g,g+m,m,V,q,g+O,g+O+y,y):O-m/2,X=a==="start"?A:a==="center"?A-v/2:a==="end"?A-v:Gc(h,h+v,v,H,U,h+A,h+A+w,w),K=Math.max(0,K+g),X=Math.max(0,X+h);else{K=o==="start"?O-N-V:o==="end"?O-_+q+ee:o==="nearest"?Gc(N,_,P,V,q+ee,O,O+y,y):O-(N+P/2)+ee/2,X=a==="start"?A-L-H:a==="center"?A-(L+I/2)+re/2:a==="end"?A-R+U+re:Gc(L,R,I,H,U+re,A,A+w,w);var ue=B.scrollLeft,me=B.scrollTop;O+=me-(K=Math.max(0,Math.min(me+K/le,B.scrollHeight-P/le+ee))),A+=ue-(X=Math.max(0,Math.min(ue+X/G,B.scrollWidth-I/G+re)))}T.push({el:B,top:K,left:X})}return T};function BM(e){return e===Object(e)&&Object.keys(e).length!==0}function sz(e,t){t===void 0&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach(function(r){var o=r.el,a=r.top,i=r.left;o.scroll&&n?o.scroll({top:a,left:i,behavior:t}):(o.scrollTop=a,o.scrollLeft=i)})}function uz(e){return e===!1?{block:"end",inline:"nearest"}:BM(e)?e:{block:"start",inline:"nearest"}}function FM(e,t){var n=e.isConnected||e.ownerDocument.documentElement.contains(e);if(BM(t)&&typeof t.behavior=="function")return t.behavior(n?zS(e,t):[]);if(n){var r=uz(t);return sz(zS(e,r),r.behavior)}}function cz(e,t,n,r){const o=n-t;return e/=r/2,e<1?o/2*e*e*e+t:o/2*((e-=2)*e*e+2)+t}function zg(e){return e!=null&&e===e.window}function cb(e,t){var n,r;if(typeof window>"u")return 0;const o=t?"scrollTop":"scrollLeft";let a=0;return zg(e)?a=e[t?"pageYOffset":"pageXOffset"]:e instanceof Document?a=e.documentElement[o]:(e instanceof HTMLElement||e)&&(a=e[o]),e&&!zg(e)&&typeof a!="number"&&(a=(r=((n=e.ownerDocument)!==null&&n!==void 0?n:e).documentElement)===null||r===void 0?void 0:r[o]),a}function db(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:n=()=>window,callback:r,duration:o=450}=t,a=n(),i=cb(a,!0),l=Date.now(),s=()=>{const c=Date.now()-l,d=cz(c>o?o:c,i,e,o);zg(a)?a.scrollTo(window.pageXOffset,d):a instanceof Document||a.constructor.name==="HTMLDocument"?a.documentElement.scrollTop=d:a.scrollTop=d,c<o?tt(s):typeof r=="function"&&r()};tt(s)}function Xc(){}const RM=Symbol("anchorContextKey"),dz=e=>{it(RM,e)},fz=()=>lt(RM,{registerLink:Xc,unregisterLink:Xc,scrollTo:Xc,activeLink:z(()=>""),handleClick:Xc,direction:z(()=>"vertical")}),pz=dz,mz=e=>{const{componentCls:t,holderOffsetBlock:n,motionDurationSlow:r,lineWidthBold:o,colorPrimary:a,lineType:i,colorSplit:l}=e;return{[`${t}-wrapper`]:{marginBlockStart:-n,paddingBlockStart:n,backgroundColor:"transparent",[t]:E(E({},rt(e)),{position:"relative",paddingInlineStart:o,[`${t}-link`]:{paddingBlock:e.anchorPaddingBlock,paddingInline:`${e.anchorPaddingInline}px 0`,"&-title":E(E({},gn),{position:"relative",display:"block",marginBlockEnd:e.anchorTitleBlock,color:e.colorText,transition:`all ${e.motionDurationSlow}`,"&:only-child":{marginBlockEnd:0}}),[`&-active > ${t}-link-title`]:{color:e.colorPrimary},[`${t}-link`]:{paddingBlock:e.anchorPaddingBlockSecondary}}}),[`&:not(${t}-wrapper-horizontal)`]:{[t]:{"&::before":{position:"absolute",left:{_skip_check_:!0,value:0},top:0,height:"100%",borderInlineStart:`${o}px ${i} ${l}`,content:'" "'},[`${t}-ink`]:{position:"absolute",left:{_skip_check_:!0,value:0},display:"none",transform:"translateY(-50%)",transition:`top ${r} ease-in-out`,width:o,backgroundColor:a,[`&${t}-ink-visible`]:{display:"inline-block"}}}},[`${t}-fixed ${t}-ink ${t}-ink`]:{display:"none"}}}},vz=e=>{const{componentCls:t,motionDurationSlow:n,lineWidthBold:r,colorPrimary:o}=e;return{[`${t}-wrapper-horizontal`]:{position:"relative","&::before":{position:"absolute",left:{_skip_check_:!0,value:0},right:{_skip_check_:!0,value:0},bottom:0,borderBottom:`1px ${e.lineType} ${e.colorSplit}`,content:'" "'},[t]:{overflowX:"scroll",position:"relative",display:"flex",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},[`${t}-link:first-of-type`]:{paddingInline:0},[`${t}-ink`]:{position:"absolute",bottom:0,transition:`left ${n} ease-in-out, width ${n} ease-in-out`,height:r,backgroundColor:o}}}}},hz=nt("Anchor",e=>{const{fontSize:t,fontSizeLG:n,padding:r,paddingXXS:o}=e,a=qe(e,{holderOffsetBlock:o,anchorPaddingBlock:o,anchorPaddingBlockSecondary:o/2,anchorPaddingInline:r,anchorTitleBlock:t/14*3,anchorBallSize:n/2});return[mz(a),vz(a)]}),gz=()=>({prefixCls:String,href:String,title:jt(),target:String,customTitleProps:We()}),fb=he({compatConfig:{MODE:3},name:"AAnchorLink",inheritAttrs:!1,props:at(gz(),{href:"#"}),slots:Object,setup(e,t){let{slots:n,attrs:r}=t,o=null;const{handleClick:a,scrollTo:i,unregisterLink:l,registerLink:s,activeLink:u}=fz(),{prefixCls:c}=He("anchor",e),d=f=>{const{href:p}=e;a(f,{title:o,href:p}),i(p)};return Ne(()=>e.href,(f,p)=>{ht(()=>{l(p),s(f)})}),Qe(()=>{s(e.href)}),st(()=>{l(e.href)}),()=>{var f;const{href:p,target:v,title:m=n.title,customTitleProps:h={}}=e,g=c.value;o=typeof m=="function"?m(h):m;const x=u.value===p,y=ge(`${g}-link`,{[`${g}-link-active`]:x},r.class),w=ge(`${g}-link-title`,{[`${g}-link-title-active`]:x});return C("div",j(j({},r),{},{class:y}),[C("a",{class:w,href:p,title:typeof o=="string"?o:"",target:v,onClick:d},[n.customTitle?n.customTitle(h):o]),(f=n.default)===null||f===void 0?void 0:f.call(n)])}}});function LS(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function zM(e,t,n){return t&&LS(e.prototype,t),n&&LS(e,n),e}function Ud(){return(Ud=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function LM(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function kM(e,t){if(e==null)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(o[n]=e[n]);return o}function kS(e){return((t=e)!=null&&typeof t=="object"&&Array.isArray(t)===!1)==1&&Object.prototype.toString.call(e)==="[object Object]";var t}var HM=Object.prototype,jM=HM.toString,yz=HM.hasOwnProperty,VM=/^\s*function (\w+)/;function HS(e){var t,n=(t=e==null?void 0:e.type)!==null&&t!==void 0?t:e;if(n){var r=n.toString().match(VM);return r?r[1]:""}return""}var Ui=function(e){var t,n;return kS(e)!==!1&&typeof(t=e.constructor)=="function"&&kS(n=t.prototype)!==!1&&n.hasOwnProperty("isPrototypeOf")!==!1},bz=function(e){return e},ir=bz,ku=function(e,t){return yz.call(e,t)},xz=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e},us=Array.isArray||function(e){return jM.call(e)==="[object Array]"},cs=function(e){return jM.call(e)==="[object Function]"},Uf=function(e){return Ui(e)&&ku(e,"_vueTypes_name")},WM=function(e){return Ui(e)&&(ku(e,"type")||["_vueTypes_name","validator","default","required"].some(function(t){return ku(e,t)}))};function pb(e,t){return Object.defineProperty(e.bind(t),"__original",{value:e})}function el(e,t,n){var r;n===void 0&&(n=!1);var o=!0,a="";r=Ui(e)?e:{type:e};var i=Uf(r)?r._vueTypes_name+" - ":"";if(WM(r)&&r.type!==null){if(r.type===void 0||r.type===!0||!r.required&&t===void 0)return o;us(r.type)?(o=r.type.some(function(d){return el(d,t,!0)===!0}),a=r.type.map(function(d){return HS(d)}).join(" or ")):o=(a=HS(r))==="Array"?us(t):a==="Object"?Ui(t):a==="String"||a==="Number"||a==="Boolean"||a==="Function"?function(d){if(d==null)return"";var f=d.constructor.toString().match(VM);return f?f[1]:""}(t)===a:t instanceof r.type}if(!o){var l=i+'value "'+t+'" should be of type "'+a+'"';return n===!1?(ir(l),!1):l}if(ku(r,"validator")&&cs(r.validator)){var s=ir,u=[];if(ir=function(d){u.push(d)},o=r.validator(t),ir=s,!o){var c=(u.length>1?"* ":"")+u.join(`
- * `);return u.length=0,n===!1?(ir(c),o):c}}return o}function Rr(e,t){var n=Object.defineProperties(t,{_vueTypes_name:{value:e,writable:!0},isRequired:{get:function(){return this.required=!0,this}},def:{value:function(o){return o!==void 0||this.default?cs(o)||el(this,o,!0)===!0?(this.default=us(o)?function(){return[].concat(o)}:Ui(o)?function(){return Object.assign({},o)}:o,this):(ir(this._vueTypes_name+' - invalid default value: "'+o+'"'),this):this}}}),r=n.validator;return cs(r)&&(n.validator=pb(r,n)),n}function Ho(e,t){var n=Rr(e,t);return Object.defineProperty(n,"validate",{value:function(r){return cs(this.validator)&&ir(this._vueTypes_name+` - calling .validate() will overwrite the current custom validator function. Validator info:
- `+JSON.stringify(this)),this.validator=pb(r,this),this}})}function jS(e,t,n){var r,o,a=(r=t,o={},Object.getOwnPropertyNames(r).forEach(function(d){o[d]=Object.getOwnPropertyDescriptor(r,d)}),Object.defineProperties({},o));if(a._vueTypes_name=e,!Ui(n))return a;var i,l,s=n.validator,u=kM(n,["validator"]);if(cs(s)){var c=a.validator;c&&(c=(l=(i=c).__original)!==null&&l!==void 0?l:i),a.validator=pb(c?function(d){return c.call(this,d)&&s.call(this,d)}:s,a)}return Object.assign(a,u)}function vm(e){return e.replace(/^(?!\s*$)/gm," ")}var wz=function(){return Ho("any",{})},Sz=function(){return Ho("function",{type:Function})},Cz=function(){return Ho("boolean",{type:Boolean})},$z=function(){return Ho("string",{type:String})},Ez=function(){return Ho("number",{type:Number})},Dz=function(){return Ho("array",{type:Array})},Az=function(){return Ho("object",{type:Object})},Oz=function(){return Rr("integer",{type:Number,validator:function(e){return xz(e)}})},Tz=function(){return Rr("symbol",{validator:function(e){return typeof e=="symbol"}})};function Mz(e,t){if(t===void 0&&(t="custom validation failed"),typeof e!="function")throw new TypeError("[VueTypes error]: You must provide a function as argument");return Rr(e.name||"<<anonymous function>>",{validator:function(n){var r=e(n);return r||ir(this._vueTypes_name+" - "+t),r}})}function Nz(e){if(!us(e))throw new TypeError("[VueTypes error]: You must provide an array as argument.");var t='oneOf - value should be one of "'+e.join('", "')+'".',n=e.reduce(function(r,o){if(o!=null){var a=o.constructor;r.indexOf(a)===-1&&r.push(a)}return r},[]);return Rr("oneOf",{type:n.length>0?n:void 0,validator:function(r){var o=e.indexOf(r)!==-1;return o||ir(t),o}})}function Pz(e){if(!us(e))throw new TypeError("[VueTypes error]: You must provide an array as argument");for(var t=!1,n=[],r=0;r<e.length;r+=1){var o=e[r];if(WM(o)){if(Uf(o)&&o._vueTypes_name==="oneOf"){n=n.concat(o.type);continue}if(cs(o.validator)&&(t=!0),o.type!==!0&&o.type){n=n.concat(o.type);continue}}n.push(o)}return n=n.filter(function(a,i){return n.indexOf(a)===i}),Rr("oneOfType",t?{type:n,validator:function(a){var i=[],l=e.some(function(s){var u=el(Uf(s)&&s._vueTypes_name==="oneOf"?s.type||null:s,a,!0);return typeof u=="string"&&i.push(u),u===!0});return l||ir("oneOfType - provided value does not match any of the "+i.length+` passed-in validators:
- `+vm(i.join(`
- `))),l}}:{type:n})}function Iz(e){return Rr("arrayOf",{type:Array,validator:function(t){var n,r=t.every(function(o){return(n=el(e,o,!0))===!0});return r||ir(`arrayOf - value validation error:
- `+vm(n)),r}})}function _z(e){return Rr("instanceOf",{type:e})}function Bz(e){return Rr("objectOf",{type:Object,validator:function(t){var n,r=Object.keys(t).every(function(o){return(n=el(e,t[o],!0))===!0});return r||ir(`objectOf - value validation error:
- `+vm(n)),r}})}function Fz(e){var t=Object.keys(e),n=t.filter(function(o){var a;return!!(!((a=e[o])===null||a===void 0)&&a.required)}),r=Rr("shape",{type:Object,validator:function(o){var a=this;if(!Ui(o))return!1;var i=Object.keys(o);if(n.length>0&&n.some(function(s){return i.indexOf(s)===-1})){var l=n.filter(function(s){return i.indexOf(s)===-1});return ir(l.length===1?'shape - required property "'+l[0]+'" is not defined.':'shape - required properties "'+l.join('", "')+'" are not defined.'),!1}return i.every(function(s){if(t.indexOf(s)===-1)return a._vueTypes_isLoose===!0||(ir('shape - shape definition does not include a "'+s+'" property. Allowed keys: "'+t.join('", "')+'".'),!1);var u=el(e[s],o[s],!0);return typeof u=="string"&&ir('shape - "'+s+`" property validation error:
- `+vm(u)),u===!0})}});return Object.defineProperty(r,"_vueTypes_isLoose",{writable:!0,value:!1}),Object.defineProperty(r,"loose",{get:function(){return this._vueTypes_isLoose=!0,this}}),r}var Mo=function(){function e(){}return e.extend=function(t){var n=this;if(us(t))return t.forEach(function(d){return n.extend(d)}),this;var r=t.name,o=t.validate,a=o!==void 0&&o,i=t.getter,l=i!==void 0&&i,s=kM(t,["name","validate","getter"]);if(ku(this,r))throw new TypeError('[VueTypes error]: Type "'+r+'" already defined');var u,c=s.type;return Uf(c)?(delete s.type,Object.defineProperty(this,r,l?{get:function(){return jS(r,c,s)}}:{value:function(){var d,f=jS(r,c,s);return f.validator&&(f.validator=(d=f.validator).bind.apply(d,[f].concat([].slice.call(arguments)))),f}})):(u=l?{get:function(){var d=Object.assign({},s);return a?Ho(r,d):Rr(r,d)},enumerable:!0}:{value:function(){var d,f,p=Object.assign({},s);return d=a?Ho(r,p):Rr(r,p),p.validator&&(d.validator=(f=p.validator).bind.apply(f,[d].concat([].slice.call(arguments)))),d},enumerable:!0},Object.defineProperty(this,r,u))},zM(e,null,[{key:"any",get:function(){return wz()}},{key:"func",get:function(){return Sz().def(this.defaults.func)}},{key:"bool",get:function(){return Cz().def(this.defaults.bool)}},{key:"string",get:function(){return $z().def(this.defaults.string)}},{key:"number",get:function(){return Ez().def(this.defaults.number)}},{key:"array",get:function(){return Dz().def(this.defaults.array)}},{key:"object",get:function(){return Az().def(this.defaults.object)}},{key:"integer",get:function(){return Oz().def(this.defaults.integer)}},{key:"symbol",get:function(){return Tz()}}]),e}();function UM(e){var t;return e===void 0&&(e={func:function(){},bool:!0,string:"",number:0,array:function(){return[]},object:function(){return{}},integer:0}),(t=function(n){function r(){return n.apply(this,arguments)||this}return LM(r,n),zM(r,null,[{key:"sensibleDefaults",get:function(){return Ud({},this.defaults)},set:function(o){this.defaults=o!==!1?Ud({},o!==!0?o:e):{}}}]),r}(Mo)).defaults=Ud({},e),t}Mo.defaults={},Mo.custom=Mz,Mo.oneOf=Nz,Mo.instanceOf=_z,Mo.oneOfType=Pz,Mo.arrayOf=Iz,Mo.objectOf=Bz,Mo.shape=Fz,Mo.utils={validate:function(e,t){return el(t,e,!0)===!0},toType:function(e,t,n){return n===void 0&&(n=!1),n?Ho(e,t):Rr(e,t)}};(function(e){function t(){return e.apply(this,arguments)||this}return LM(t,e),t})(UM());const KM=UM({func:void 0,bool:void 0,string:void 0,number:void 0,array:void 0,object:void 0,integer:void 0});KM.extend([{name:"looseBool",getter:!0,type:Boolean,default:void 0},{name:"style",getter:!0,type:[String,Object],default:void 0},{name:"VueNode",getter:!0,type:null}]);function qM(e){return e.default=void 0,e}const Z=KM,qt=(e,t,n)=>{dm(e,`[ant-design-vue: ${t}] ${n}`)};function Rz(){return window}function VS(e,t){if(!e.getClientRects().length)return 0;const n=e.getBoundingClientRect();return n.width||n.height?t===window?(t=e.ownerDocument.documentElement,n.top-t.clientTop):n.top-t.getBoundingClientRect().top:n.top}const WS=/#([\S ]+)$/,zz=()=>({prefixCls:String,offsetTop:Number,bounds:Number,affix:{type:Boolean,default:!0},showInkInFixed:{type:Boolean,default:!1},getContainer:Function,wrapperClass:String,wrapperStyle:{type:Object,default:void 0},getCurrentAnchor:Function,targetOffset:Number,items:bt(),direction:Z.oneOf(["vertical","horizontal"]).def("vertical"),onChange:Function,onClick:Function}),Ai=he({compatConfig:{MODE:3},name:"AAnchor",inheritAttrs:!1,props:zz(),setup(e,t){let{emit:n,attrs:r,slots:o,expose:a}=t;const{prefixCls:i,getTargetContainer:l,direction:s}=He("anchor",e),u=z(()=>{var $;return($=e.direction)!==null&&$!==void 0?$:"vertical"}),c=be(null),d=be(),f=_t({links:[],scrollContainer:null,scrollEvent:null,animating:!1}),p=be(null),v=z(()=>{const{getContainer:$}=e;return $||(l==null?void 0:l.value)||Rz}),m=function(){let $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:5;const O=[],A=v.value();return f.links.forEach(T=>{const M=WS.exec(T.toString());if(!M)return;const B=document.getElementById(M[1]);if(B){const F=VS(B,A);F<$+D&&O.push({link:T,top:F})}}),O.length?O.reduce((M,B)=>B.top>M.top?B:M).link:""},h=$=>{const{getCurrentAnchor:D}=e;p.value!==$&&(p.value=typeof D=="function"?D($):$,n("change",$))},g=$=>{const{offsetTop:D,targetOffset:O}=e;h($);const A=WS.exec($);if(!A)return;const T=document.getElementById(A[1]);if(!T)return;const M=v.value(),B=cb(M,!0),F=VS(T,M);let P=B+F;P-=O!==void 0?O:D||0,f.animating=!0,db(P,{callback:()=>{f.animating=!1},getContainer:v.value})};a({scrollTo:g});const x=()=>{if(f.animating)return;const{offsetTop:$,bounds:D,targetOffset:O}=e,A=m(O!==void 0?O:$||0,D);h(A)},y=()=>{const $=d.value.querySelector(`.${i.value}-link-title-active`);if($&&c.value){const D=u.value==="horizontal";c.value.style.top=D?"":`${$.offsetTop+$.clientHeight/2}px`,c.value.style.height=D?"":`${$.clientHeight}px`,c.value.style.left=D?`${$.offsetLeft}px`:"",c.value.style.width=D?`${$.clientWidth}px`:"",D&&FM($,{scrollMode:"if-needed",block:"nearest"})}};pz({registerLink:$=>{f.links.includes($)||f.links.push($)},unregisterLink:$=>{const D=f.links.indexOf($);D!==-1&&f.links.splice(D,1)},activeLink:p,scrollTo:g,handleClick:($,D)=>{n("click",$,D)},direction:u}),Qe(()=>{ht(()=>{const $=v.value();f.scrollContainer=$,f.scrollEvent=en(f.scrollContainer,"scroll",x),x()})}),st(()=>{f.scrollEvent&&f.scrollEvent.remove()}),Sr(()=>{if(f.scrollEvent){const $=v.value();f.scrollContainer!==$&&(f.scrollContainer=$,f.scrollEvent.remove(),f.scrollEvent=en(f.scrollContainer,"scroll",x),x())}y()});const w=$=>Array.isArray($)?$.map(D=>{const{children:O,key:A,href:T,target:M,class:B,style:F,title:P}=D;return C(fb,{key:A,href:T,target:M,class:B,style:F,title:P,customTitleProps:D},{default:()=>[u.value==="vertical"?w(O):null],customTitle:o.customTitle})}):null,[b,S]=hz(i);return()=>{var $;const{offsetTop:D,affix:O,showInkInFixed:A}=e,T=i.value,M=ge(`${T}-ink`,{[`${T}-ink-visible`]:p.value}),B=ge(S.value,e.wrapperClass,`${T}-wrapper`,{[`${T}-wrapper-horizontal`]:u.value==="horizontal",[`${T}-rtl`]:s.value==="rtl"}),F=ge(T,{[`${T}-fixed`]:!O&&!A}),P=E({maxHeight:D?`calc(100vh - ${D}px)`:"100vh"},e.wrapperStyle),I=C("div",{class:B,style:P,ref:d},[C("div",{class:F},[C("span",{class:M,ref:c},null),Array.isArray(e.items)?w(e.items):($=o.default)===null||$===void 0?void 0:$.call(o)])]);return b(O?C(_M,j(j({},r),{},{offsetTop:D,target:v.value}),{default:()=>[I]}):I)}}});Ai.Link=fb;Ai.install=function(e){return e.component(Ai.name,Ai),e.component(Ai.Link.name,Ai.Link),e};function US(e,t){const{key:n}=e;let r;return"value"in e&&({value:r}=e),n??(r!==void 0?r:`rc-index-key-${t}`)}function GM(e,t){const{label:n,value:r,options:o}=e||{};return{label:n||(t?"children":"label"),value:r||"value",options:o||"options"}}function Lz(e){let{fieldNames:t,childrenAsData:n}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=[],{label:o,value:a,options:i}=GM(t,!1);function l(s,u){s.forEach(c=>{const d=c[o];if(u||!(i in c)){const f=c[a];r.push({key:US(c,r.length),groupOption:u,data:c,label:d,value:f})}else{let f=d;f===void 0&&n&&(f=c.label),r.push({key:US(c,r.length),group:!0,data:c,label:f}),l(c[i],!0)}})}return l(e,!1),r}function Lg(e){const t=E({},e);return"props"in t||Object.defineProperty(t,"props",{get(){return t}}),t}function kz(e,t){if(!t||!t.length)return null;let n=!1;function r(a,i){let[l,...s]=i;if(!l)return[a];const u=a.split(l);return n=n||u.length>1,u.reduce((c,d)=>[...c,...r(d,s)],[]).filter(c=>c)}const o=r(e,t);return n?o:null}function Hz(){return""}function jz(e){return e?e.ownerDocument:window.document}function XM(){}const YM=()=>({action:Z.oneOfType([Z.string,Z.arrayOf(Z.string)]).def([]),showAction:Z.any.def([]),hideAction:Z.any.def([]),getPopupClassNameFromAlign:Z.any.def(Hz),onPopupVisibleChange:Function,afterPopupVisibleChange:Z.func.def(XM),popup:Z.any,popupStyle:{type:Object,default:void 0},prefixCls:Z.string.def("rc-trigger-popup"),popupClassName:Z.string.def(""),popupPlacement:String,builtinPlacements:Z.object,popupTransitionName:String,popupAnimation:Z.any,mouseEnterDelay:Z.number.def(0),mouseLeaveDelay:Z.number.def(.1),zIndex:Number,focusDelay:Z.number.def(0),blurDelay:Z.number.def(.15),getPopupContainer:Function,getDocument:Z.func.def(jz),forceRender:{type:Boolean,default:void 0},destroyPopupOnHide:{type:Boolean,default:!1},mask:{type:Boolean,default:!1},maskClosable:{type:Boolean,default:!0},popupAlign:Z.object.def(()=>({})),popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},maskTransitionName:String,maskAnimation:String,stretch:String,alignPoint:{type:Boolean,default:void 0},autoDestroy:{type:Boolean,default:!1},mobile:Object,getTriggerDOMNode:Function}),mb={visible:Boolean,prefixCls:String,zIndex:Number,destroyPopupOnHide:Boolean,forceRender:Boolean,animation:[String,Object],transitionName:String,stretch:{type:String},align:{type:Object},point:{type:Object},getRootDomNode:{type:Function},getClassNameFromAlign:{type:Function},onMouseenter:{type:Function},onMouseleave:{type:Function},onMousedown:{type:Function},onTouchstart:{type:Function}},Vz=E(E({},mb),{mobile:{type:Object}}),Wz=E(E({},mb),{mask:Boolean,mobile:{type:Object},maskAnimation:String,maskTransitionName:String});function vb(e){let{prefixCls:t,animation:n,transitionName:r}=e;return n?{name:`${t}-${n}`}:r?{name:r}:{}}function ZM(e){const{prefixCls:t,visible:n,zIndex:r,mask:o,maskAnimation:a,maskTransitionName:i}=e;if(!o)return null;let l={};return(i||a)&&(l=vb({prefixCls:t,transitionName:i,animation:a})),C(_n,j({appear:!0},l),{default:()=>[vn(C("div",{style:{zIndex:r},class:`${t}-mask`},null),[[HB("if"),n]])]})}ZM.displayName="Mask";const Uz=he({compatConfig:{MODE:3},name:"MobilePopupInner",inheritAttrs:!1,props:Vz,emits:["mouseenter","mouseleave","mousedown","touchstart","align"],setup(e,t){let{expose:n,slots:r}=t;const o=be();return n({forceAlign:()=>{},getElement:()=>o.value}),()=>{var a;const{zIndex:i,visible:l,prefixCls:s,mobile:{popupClassName:u,popupStyle:c,popupMotion:d={},popupRender:f}={}}=e,p=E({zIndex:i},c);let v=Lt((a=r.default)===null||a===void 0?void 0:a.call(r));v.length>1&&(v=C("div",{class:`${s}-content`},[v])),f&&(v=f(v));const m=ge(s,u);return C(_n,j({ref:o},d),{default:()=>[l?C("div",{class:m,style:p},[v]):null]})}}});var Kz=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(a){return a instanceof n?a:new n(function(i){i(a)})}return new(n||(n=Promise))(function(a,i){function l(c){try{u(r.next(c))}catch(d){i(d)}}function s(c){try{u(r.throw(c))}catch(d){i(d)}}function u(c){c.done?a(c.value):o(c.value).then(l,s)}u((r=r.apply(e,t||[])).next())})};const KS=["measure","align",null,"motion"],qz=(e,t)=>{const n=pe(null),r=pe(),o=pe(!1);function a(s){o.value||(n.value=s)}function i(){tt.cancel(r.value)}function l(s){i(),r.value=tt(()=>{let u=n.value;switch(n.value){case"align":u="motion";break;case"motion":u="stable";break}a(u),s==null||s()})}return Ne(e,()=>{a("measure")},{immediate:!0,flush:"post"}),Qe(()=>{Ne(n,()=>{switch(n.value){case"measure":t();break}n.value&&(r.value=tt(()=>Kz(void 0,void 0,void 0,function*(){const s=KS.indexOf(n.value),u=KS[s+1];u&&s!==-1&&a(u)})))},{immediate:!0,flush:"post"})}),st(()=>{o.value=!0,i()}),[n,l]},Gz=e=>{const t=pe({width:0,height:0});function n(o){t.value={width:o.offsetWidth,height:o.offsetHeight}}return[z(()=>{const o={};if(e.value){const{width:a,height:i}=t.value;e.value.indexOf("height")!==-1&&i?o.height=`${i}px`:e.value.indexOf("minHeight")!==-1&&i&&(o.minHeight=`${i}px`),e.value.indexOf("width")!==-1&&a?o.width=`${a}px`:e.value.indexOf("minWidth")!==-1&&a&&(o.minWidth=`${a}px`)}return o}),n]};function qS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function GS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qS(Object(n),!0).forEach(function(r){Xz(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function kg(e){return kg=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},kg(e)}function Xz(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Zs,Yz={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"};function Kf(){if(Zs!==void 0)return Zs;Zs="";var e=document.createElement("p").style,t="Transform";for(var n in Yz)n+t in e&&(Zs=n);return Zs}function JM(){return Kf()?"".concat(Kf(),"TransitionProperty"):"transitionProperty"}function hm(){return Kf()?"".concat(Kf(),"Transform"):"transform"}function XS(e,t){var n=JM();n&&(e.style[n]=t,n!=="transitionProperty"&&(e.style.transitionProperty=t))}function ah(e,t){var n=hm();n&&(e.style[n]=t,n!=="transform"&&(e.style.transform=t))}function Zz(e){return e.style.transitionProperty||e.style[JM()]}function Jz(e){var t=window.getComputedStyle(e,null),n=t.getPropertyValue("transform")||t.getPropertyValue(hm());if(n&&n!=="none"){var r=n.replace(/[^0-9\-.,]/g,"").split(",");return{x:parseFloat(r[12]||r[4],0),y:parseFloat(r[13]||r[5],0)}}return{x:0,y:0}}var Qz=/matrix\((.*)\)/,eL=/matrix3d\((.*)\)/;function tL(e,t){var n=window.getComputedStyle(e,null),r=n.getPropertyValue("transform")||n.getPropertyValue(hm());if(r&&r!=="none"){var o,a=r.match(Qz);if(a)a=a[1],o=a.split(",").map(function(l){return parseFloat(l,10)}),o[4]=t.x,o[5]=t.y,ah(e,"matrix(".concat(o.join(","),")"));else{var i=r.match(eL)[1];o=i.split(",").map(function(l){return parseFloat(l,10)}),o[12]=t.x,o[13]=t.y,ah(e,"matrix3d(".concat(o.join(","),")"))}}else ah(e,"translateX(".concat(t.x,"px) translateY(").concat(t.y,"px) translateZ(0)"))}var nL=/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,dc;function YS(e){var t=e.style.display;e.style.display="none",e.offsetHeight,e.style.display=t}function Ul(e,t,n){var r=n;if(kg(t)==="object"){for(var o in t)t.hasOwnProperty(o)&&Ul(e,o,t[o]);return}if(typeof r<"u"){typeof r=="number"&&(r="".concat(r,"px")),e.style[t]=r;return}return dc(e,t)}function rL(e){var t,n,r,o=e.ownerDocument,a=o.body,i=o&&o.documentElement;return t=e.getBoundingClientRect(),n=Math.floor(t.left),r=Math.floor(t.top),n-=i.clientLeft||a.clientLeft||0,r-=i.clientTop||a.clientTop||0,{left:n,top:r}}function QM(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if(typeof n!="number"){var o=e.document;n=o.documentElement[r],typeof n!="number"&&(n=o.body[r])}return n}function eN(e){return QM(e)}function tN(e){return QM(e,!0)}function Hu(e){var t=rL(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=eN(r),t.top+=tN(r),t}function hb(e){return e!=null&&e==e.window}function nN(e){return hb(e)?e.document:e.nodeType===9?e:e.ownerDocument}function oL(e,t,n){var r=n,o="",a=nN(e);return r=r||a.defaultView.getComputedStyle(e,null),r&&(o=r.getPropertyValue(t)||r[t]),o}var aL=new RegExp("^(".concat(nL,")(?!px)[a-z%]+$"),"i"),iL=/^(top|right|bottom|left)$/,ih="currentStyle",lh="runtimeStyle",gi="left",lL="px";function sL(e,t){var n=e[ih]&&e[ih][t];if(aL.test(n)&&!iL.test(t)){var r=e.style,o=r[gi],a=e[lh][gi];e[lh][gi]=e[ih][gi],r[gi]=t==="fontSize"?"1em":n||0,n=r.pixelLeft+lL,r[gi]=o,e[lh][gi]=a}return n===""?"auto":n}typeof window<"u"&&(dc=window.getComputedStyle?oL:sL);function Yc(e,t){return e==="left"?t.useCssRight?"right":e:t.useCssBottom?"bottom":e}function ZS(e){if(e==="left")return"right";if(e==="right")return"left";if(e==="top")return"bottom";if(e==="bottom")return"top"}function JS(e,t,n){Ul(e,"position")==="static"&&(e.style.position="relative");var r=-999,o=-999,a=Yc("left",n),i=Yc("top",n),l=ZS(a),s=ZS(i);a!=="left"&&(r=999),i!=="top"&&(o=999);var u="",c=Hu(e);("left"in t||"top"in t)&&(u=Zz(e)||"",XS(e,"none")),"left"in t&&(e.style[l]="",e.style[a]="".concat(r,"px")),"top"in t&&(e.style[s]="",e.style[i]="".concat(o,"px")),YS(e);var d=Hu(e),f={};for(var p in t)if(t.hasOwnProperty(p)){var v=Yc(p,n),m=p==="left"?r:o,h=c[p]-d[p];v===p?f[v]=m+h:f[v]=m-h}Ul(e,f),YS(e),("left"in t||"top"in t)&&XS(e,u);var g={};for(var x in t)if(t.hasOwnProperty(x)){var y=Yc(x,n),w=t[x]-c[x];x===y?g[y]=f[y]+w:g[y]=f[y]-w}Ul(e,g)}function uL(e,t){var n=Hu(e),r=Jz(e),o={x:r.x,y:r.y};"left"in t&&(o.x=r.x+t.left-n.left),"top"in t&&(o.y=r.y+t.top-n.top),tL(e,o)}function cL(e,t,n){if(n.ignoreShake){var r=Hu(e),o=r.left.toFixed(0),a=r.top.toFixed(0),i=t.left.toFixed(0),l=t.top.toFixed(0);if(o===i&&a===l)return}n.useCssRight||n.useCssBottom?JS(e,t,n):n.useCssTransform&&hm()in document.body.style?uL(e,t):JS(e,t,n)}function gb(e,t){for(var n=0;n<e.length;n++)t(e[n])}function rN(e){return dc(e,"boxSizing")==="border-box"}var dL=["margin","border","padding"],Hg=-1,fL=2,jg=1,pL=0;function mL(e,t,n){var r={},o=e.style,a;for(a in t)t.hasOwnProperty(a)&&(r[a]=o[a],o[a]=t[a]);n.call(e);for(a in t)t.hasOwnProperty(a)&&(o[a]=r[a])}function au(e,t,n){var r=0,o,a,i;for(a=0;a<t.length;a++)if(o=t[a],o)for(i=0;i<n.length;i++){var l=void 0;o==="border"?l="".concat(o).concat(n[i],"Width"):l=o+n[i],r+=parseFloat(dc(e,l))||0}return r}var Bo={getParent:function(t){var n=t;do n.nodeType===11&&n.host?n=n.host:n=n.parentNode;while(n&&n.nodeType!==1&&n.nodeType!==9);return n}};gb(["Width","Height"],function(e){Bo["doc".concat(e)]=function(t){var n=t.document;return Math.max(n.documentElement["scroll".concat(e)],n.body["scroll".concat(e)],Bo["viewport".concat(e)](n))},Bo["viewport".concat(e)]=function(t){var n="client".concat(e),r=t.document,o=r.body,a=r.documentElement,i=a[n];return r.compatMode==="CSS1Compat"&&i||o&&o[n]||i}});function QS(e,t,n){var r=n;if(hb(e))return t==="width"?Bo.viewportWidth(e):Bo.viewportHeight(e);if(e.nodeType===9)return t==="width"?Bo.docWidth(e):Bo.docHeight(e);var o=t==="width"?["Left","Right"]:["Top","Bottom"],a=Math.floor(t==="width"?e.getBoundingClientRect().width:e.getBoundingClientRect().height),i=rN(e),l=0;(a==null||a<=0)&&(a=void 0,l=dc(e,t),(l==null||Number(l)<0)&&(l=e.style[t]||0),l=Math.floor(parseFloat(l))||0),r===void 0&&(r=i?jg:Hg);var s=a!==void 0||i,u=a||l;return r===Hg?s?u-au(e,["border","padding"],o):l:s?r===jg?u:u+(r===fL?-au(e,["border"],o):au(e,["margin"],o)):l+au(e,dL.slice(r),o)}var vL={position:"absolute",visibility:"hidden",display:"block"};function eC(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,o=t[0];return o.offsetWidth!==0?r=QS.apply(void 0,t):mL(o,vL,function(){r=QS.apply(void 0,t)}),r}gb(["width","height"],function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);Bo["outer".concat(t)]=function(r,o){return r&&eC(r,e,o?pL:jg)};var n=e==="width"?["Left","Right"]:["Top","Bottom"];Bo[e]=function(r,o){var a=o;if(a!==void 0){if(r){var i=rN(r);return i&&(a+=au(r,["padding","border"],n)),Ul(r,e,a)}return}return r&&eC(r,e,Hg)}});function oN(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}var St={getWindow:function(t){if(t&&t.document&&t.setTimeout)return t;var n=t.ownerDocument||t;return n.defaultView||n.parentWindow},getDocument:nN,offset:function(t,n,r){if(typeof n<"u")cL(t,n,r||{});else return Hu(t)},isWindow:hb,each:gb,css:Ul,clone:function(t){var n,r={};for(n in t)t.hasOwnProperty(n)&&(r[n]=t[n]);var o=t.overflow;if(o)for(n in t)t.hasOwnProperty(n)&&(r.overflow[n]=t.overflow[n]);return r},mix:oN,getWindowScrollLeft:function(t){return eN(t)},getWindowScrollTop:function(t){return tN(t)},merge:function(){for(var t={},n=0;n<arguments.length;n++)St.mix(t,n<0||arguments.length<=n?void 0:arguments[n]);return t},viewportWidth:0,viewportHeight:0};oN(St,Bo);var sh=St.getParent;function Vg(e){if(St.isWindow(e)||e.nodeType===9)return null;var t=St.getDocument(e),n=t.body,r,o=St.css(e,"position"),a=o==="fixed"||o==="absolute";if(!a)return e.nodeName.toLowerCase()==="html"?null:sh(e);for(r=sh(e);r&&r!==n&&r.nodeType!==9;r=sh(r))if(o=St.css(r,"position"),o!=="static")return r;return null}var tC=St.getParent;function hL(e){if(St.isWindow(e)||e.nodeType===9)return!1;var t=St.getDocument(e),n=t.body,r=null;for(r=tC(e);r&&r!==n&&r!==t;r=tC(r)){var o=St.css(r,"position");if(o==="fixed")return!0}return!1}function yb(e,t){for(var n={left:0,right:1/0,top:0,bottom:1/0},r=Vg(e),o=St.getDocument(e),a=o.defaultView||o.parentWindow,i=o.body,l=o.documentElement;r;){if((navigator.userAgent.indexOf("MSIE")===-1||r.clientWidth!==0)&&r!==i&&r!==l&&St.css(r,"overflow")!=="visible"){var s=St.offset(r);s.left+=r.clientLeft,s.top+=r.clientTop,n.top=Math.max(n.top,s.top),n.right=Math.min(n.right,s.left+r.clientWidth),n.bottom=Math.min(n.bottom,s.top+r.clientHeight),n.left=Math.max(n.left,s.left)}else if(r===i||r===l)break;r=Vg(r)}var u=null;if(!St.isWindow(e)&&e.nodeType!==9){u=e.style.position;var c=St.css(e,"position");c==="absolute"&&(e.style.position="fixed")}var d=St.getWindowScrollLeft(a),f=St.getWindowScrollTop(a),p=St.viewportWidth(a),v=St.viewportHeight(a),m=l.scrollWidth,h=l.scrollHeight,g=window.getComputedStyle(i);if(g.overflowX==="hidden"&&(m=a.innerWidth),g.overflowY==="hidden"&&(h=a.innerHeight),e.style&&(e.style.position=u),t||hL(e))n.left=Math.max(n.left,d),n.top=Math.max(n.top,f),n.right=Math.min(n.right,d+p),n.bottom=Math.min(n.bottom,f+v);else{var x=Math.max(m,d+p);n.right=Math.min(n.right,x);var y=Math.max(h,f+v);n.bottom=Math.min(n.bottom,y)}return n.top>=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function gL(e,t,n,r){var o=St.clone(e),a={width:t.width,height:t.height};return r.adjustX&&o.left<n.left&&(o.left=n.left),r.resizeWidth&&o.left>=n.left&&o.left+a.width>n.right&&(a.width-=o.left+a.width-n.right),r.adjustX&&o.left+a.width>n.right&&(o.left=Math.max(n.right-a.width,n.left)),r.adjustY&&o.top<n.top&&(o.top=n.top),r.resizeHeight&&o.top>=n.top&&o.top+a.height>n.bottom&&(a.height-=o.top+a.height-n.bottom),r.adjustY&&o.top+a.height>n.bottom&&(o.top=Math.max(n.bottom-a.height,n.top)),St.mix(o,a)}function bb(e){var t,n,r;if(!St.isWindow(e)&&e.nodeType!==9)t=St.offset(e),n=St.outerWidth(e),r=St.outerHeight(e);else{var o=St.getWindow(e);t={left:St.getWindowScrollLeft(o),top:St.getWindowScrollTop(o)},n=St.viewportWidth(o),r=St.viewportHeight(o)}return t.width=n,t.height=r,t}function nC(e,t){var n=t.charAt(0),r=t.charAt(1),o=e.width,a=e.height,i=e.left,l=e.top;return n==="c"?l+=a/2:n==="b"&&(l+=a),r==="c"?i+=o/2:r==="r"&&(i+=o),{left:i,top:l}}function Zc(e,t,n,r,o){var a=nC(t,n[1]),i=nC(e,n[0]),l=[i.left-a.left,i.top-a.top];return{left:Math.round(e.left-l[0]+r[0]-o[0]),top:Math.round(e.top-l[1]+r[1]-o[1])}}function rC(e,t,n){return e.left<n.left||e.left+t.width>n.right}function oC(e,t,n){return e.top<n.top||e.top+t.height>n.bottom}function yL(e,t,n){return e.left>n.right||e.left+t.width<n.left}function bL(e,t,n){return e.top>n.bottom||e.top+t.height<n.top}function Jc(e,t,n){var r=[];return St.each(e,function(o){r.push(o.replace(t,function(a){return n[a]}))}),r}function Qc(e,t){return e[t]=-e[t],e}function aC(e,t){var n;return/%$/.test(e)?n=parseInt(e.substring(0,e.length-1),10)/100*t:n=parseInt(e,10),n||0}function iC(e,t){e[0]=aC(e[0],t.width),e[1]=aC(e[1],t.height)}function aN(e,t,n,r){var o=n.points,a=n.offset||[0,0],i=n.targetOffset||[0,0],l=n.overflow,s=n.source||e;a=[].concat(a),i=[].concat(i),l=l||{};var u={},c=0,d=!!(l&&l.alwaysByViewport),f=yb(s,d),p=bb(s);iC(a,p),iC(i,t);var v=Zc(p,t,o,a,i),m=St.merge(p,v);if(f&&(l.adjustX||l.adjustY)&&r){if(l.adjustX&&rC(v,p,f)){var h=Jc(o,/[lr]/gi,{l:"r",r:"l"}),g=Qc(a,0),x=Qc(i,0),y=Zc(p,t,h,g,x);yL(y,p,f)||(c=1,o=h,a=g,i=x)}if(l.adjustY&&oC(v,p,f)){var w=Jc(o,/[tb]/gi,{t:"b",b:"t"}),b=Qc(a,1),S=Qc(i,1),$=Zc(p,t,w,b,S);bL($,p,f)||(c=1,o=w,a=b,i=S)}c&&(v=Zc(p,t,o,a,i),St.mix(m,v));var D=rC(v,p,f),O=oC(v,p,f);if(D||O){var A=o;D&&(A=Jc(o,/[lr]/gi,{l:"r",r:"l"})),O&&(A=Jc(o,/[tb]/gi,{t:"b",b:"t"})),o=A,a=n.offset||[0,0],i=n.targetOffset||[0,0]}u.adjustX=l.adjustX&&D,u.adjustY=l.adjustY&&O,(u.adjustX||u.adjustY)&&(m=gL(v,p,f,u))}return m.width!==p.width&&St.css(s,"width",St.width(s)+m.width-p.width),m.height!==p.height&&St.css(s,"height",St.height(s)+m.height-p.height),St.offset(s,{left:m.left,top:m.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom,useCssTransform:n.useCssTransform,ignoreShake:n.ignoreShake}),{points:o,offset:a,targetOffset:i,overflow:u}}function xL(e,t){var n=yb(e,t),r=bb(e);return!n||r.left+r.width<=n.left||r.top+r.height<=n.top||r.left>=n.right||r.top>=n.bottom}function xb(e,t,n){var r=n.target||t,o=bb(r),a=!xL(r,n.overflow&&n.overflow.alwaysByViewport);return aN(e,o,n,a)}xb.__getOffsetParent=Vg;xb.__getVisibleRectForElement=yb;function wL(e,t,n){var r,o,a=St.getDocument(e),i=a.defaultView||a.parentWindow,l=St.getWindowScrollLeft(i),s=St.getWindowScrollTop(i),u=St.viewportWidth(i),c=St.viewportHeight(i);"pageX"in t?r=t.pageX:r=l+t.clientX,"pageY"in t?o=t.pageY:o=s+t.clientY;var d={left:r,top:o,width:0,height:0},f=r>=0&&r<=l+u&&o>=0&&o<=s+c,p=[n.points[0],"cc"];return aN(e,d,GS(GS({},n),{},{points:p}),f)}function At(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,o=e;if(Array.isArray(e)&&(o=nn(e)[0]),!o)return null;const a=ha(o,t,r);return a.props=n?E(E({},a.props),t):a.props,Jt(typeof a.props.class!="object"),a}function SL(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return e.map(r=>At(r,t,n))}function vu(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(Array.isArray(e))return e.map(o=>vu(o,t,n,r));{const o=At(e,t,n,r);return Array.isArray(o.children)&&(o.children=vu(o.children)),o}}const gm=e=>{if(!e)return!1;if(e.offsetParent)return!0;if(e.getBBox){const t=e.getBBox();if(t.width||t.height)return!0}if(e.getBoundingClientRect){const t=e.getBoundingClientRect();if(t.width||t.height)return!0}return!1};function CL(e,t){return e===t?!0:!e||!t?!1:"pageX"in t&&"pageY"in t?e.pageX===t.pageX&&e.pageY===t.pageY:"clientX"in t&&"clientY"in t?e.clientX===t.clientX&&e.clientY===t.clientY:!1}function $L(e,t){e!==document.activeElement&&Ua(t,e)&&typeof e.focus=="function"&&e.focus()}function lC(e,t){let n=null,r=null;function o(i){let[{target:l}]=i;if(!document.documentElement.contains(l))return;const{width:s,height:u}=l.getBoundingClientRect(),c=Math.floor(s),d=Math.floor(u);(n!==c||r!==d)&&Promise.resolve().then(()=>{t({width:c,height:d})}),n=c,r=d}const a=new Ky(o);return e&&a.observe(e),()=>{a.disconnect()}}const EL=(e,t)=>{let n=!1,r=null;function o(){clearTimeout(r)}function a(i){if(!n||i===!0){if(e()===!1)return;n=!0,o(),r=setTimeout(()=>{n=!1},t.value)}else o(),r=setTimeout(()=>{n=!1,a()},t.value)}return[a,()=>{n=!1,o()}]};function DL(){this.__data__=[],this.size=0}function wb(e,t){return e===t||e!==e&&t!==t}function ym(e,t){for(var n=e.length;n--;)if(wb(e[n][0],t))return n;return-1}var AL=Array.prototype,OL=AL.splice;function TL(e){var t=this.__data__,n=ym(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():OL.call(t,n,1),--this.size,!0}function ML(e){var t=this.__data__,n=ym(t,e);return n<0?void 0:t[n][1]}function NL(e){return ym(this.__data__,e)>-1}function PL(e,t){var n=this.__data__,r=ym(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Ea(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ea.prototype.clear=DL;Ea.prototype.delete=TL;Ea.prototype.get=ML;Ea.prototype.has=NL;Ea.prototype.set=PL;function IL(){this.__data__=new Ea,this.size=0}function _L(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function BL(e){return this.__data__.get(e)}function FL(e){return this.__data__.has(e)}function bo(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var RL="[object AsyncFunction]",zL="[object Function]",LL="[object GeneratorFunction]",kL="[object Proxy]";function iN(e){if(!bo(e))return!1;var t=ui(e);return t==zL||t==LL||t==RL||t==kL}var HL=So["__core-js_shared__"];const uh=HL;var sC=function(){var e=/[^.]+$/.exec(uh&&uh.keys&&uh.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function jL(e){return!!sC&&sC in e}var VL=Function.prototype,WL=VL.toString;function tl(e){if(e!=null){try{return WL.call(e)}catch{}try{return e+""}catch{}}return""}var UL=/[\\^$.*+?()[\]{}|]/g,KL=/^\[object .+?Constructor\]$/,qL=Function.prototype,GL=Object.prototype,XL=qL.toString,YL=GL.hasOwnProperty,ZL=RegExp("^"+XL.call(YL).replace(UL,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function JL(e){if(!bo(e)||jL(e))return!1;var t=iN(e)?ZL:KL;return t.test(tl(e))}function QL(e,t){return e==null?void 0:e[t]}function nl(e,t){var n=QL(e,t);return JL(n)?n:void 0}var ek=nl(So,"Map");const ju=ek;var tk=nl(Object,"create");const Vu=tk;function nk(){this.__data__=Vu?Vu(null):{},this.size=0}function rk(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var ok="__lodash_hash_undefined__",ak=Object.prototype,ik=ak.hasOwnProperty;function lk(e){var t=this.__data__;if(Vu){var n=t[e];return n===ok?void 0:n}return ik.call(t,e)?t[e]:void 0}var sk=Object.prototype,uk=sk.hasOwnProperty;function ck(e){var t=this.__data__;return Vu?t[e]!==void 0:uk.call(t,e)}var dk="__lodash_hash_undefined__";function fk(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Vu&&t===void 0?dk:t,this}function Ki(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ki.prototype.clear=nk;Ki.prototype.delete=rk;Ki.prototype.get=lk;Ki.prototype.has=ck;Ki.prototype.set=fk;function pk(){this.size=0,this.__data__={hash:new Ki,map:new(ju||Ea),string:new Ki}}function mk(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function bm(e,t){var n=e.__data__;return mk(t)?n[typeof t=="string"?"string":"hash"]:n.map}function vk(e){var t=bm(this,e).delete(e);return this.size-=t?1:0,t}function hk(e){return bm(this,e).get(e)}function gk(e){return bm(this,e).has(e)}function yk(e,t){var n=bm(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Da(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Da.prototype.clear=pk;Da.prototype.delete=vk;Da.prototype.get=hk;Da.prototype.has=gk;Da.prototype.set=yk;var bk=200;function xk(e,t){var n=this.__data__;if(n instanceof Ea){var r=n.__data__;if(!ju||r.length<bk-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Da(r)}return n.set(e,t),this.size=n.size,this}function Ro(e){var t=this.__data__=new Ea(e);this.size=t.size}Ro.prototype.clear=IL;Ro.prototype.delete=_L;Ro.prototype.get=BL;Ro.prototype.has=FL;Ro.prototype.set=xk;var wk="__lodash_hash_undefined__";function Sk(e){return this.__data__.set(e,wk),this}function Ck(e){return this.__data__.has(e)}function ds(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Da;++t<n;)this.add(e[t])}ds.prototype.add=ds.prototype.push=Sk;ds.prototype.has=Ck;function $k(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function qf(e,t){return e.has(t)}var Ek=1,Dk=2;function lN(e,t,n,r,o,a){var i=n&Ek,l=e.length,s=t.length;if(l!=s&&!(i&&s>l))return!1;var u=a.get(e),c=a.get(t);if(u&&c)return u==t&&c==e;var d=-1,f=!0,p=n&Dk?new ds:void 0;for(a.set(e,t),a.set(t,e);++d<l;){var v=e[d],m=t[d];if(r)var h=i?r(m,v,d,t,e,a):r(v,m,d,e,t,a);if(h!==void 0){if(h)continue;f=!1;break}if(p){if(!$k(t,function(g,x){if(!qf(p,x)&&(v===g||o(v,g,n,r,a)))return p.push(x)})){f=!1;break}}else if(!(v===m||o(v,m,n,r,a))){f=!1;break}}return a.delete(e),a.delete(t),f}var Ak=So.Uint8Array;const Gf=Ak;function Ok(e){var t=-1,n=Array(e.size);return e.forEach(function(r,o){n[++t]=[o,r]}),n}function Sb(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var Tk=1,Mk=2,Nk="[object Boolean]",Pk="[object Date]",Ik="[object Error]",_k="[object Map]",Bk="[object Number]",Fk="[object RegExp]",Rk="[object Set]",zk="[object String]",Lk="[object Symbol]",kk="[object ArrayBuffer]",Hk="[object DataView]",uC=Jr?Jr.prototype:void 0,ch=uC?uC.valueOf:void 0;function jk(e,t,n,r,o,a,i){switch(n){case Hk:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case kk:return!(e.byteLength!=t.byteLength||!a(new Gf(e),new Gf(t)));case Nk:case Pk:case Bk:return wb(+e,+t);case Ik:return e.name==t.name&&e.message==t.message;case Fk:case zk:return e==t+"";case _k:var l=Ok;case Rk:var s=r&Tk;if(l||(l=Sb),e.size!=t.size&&!s)return!1;var u=i.get(e);if(u)return u==t;r|=Mk,i.set(e,t);var c=lN(l(e),l(t),r,o,a,i);return i.delete(e),c;case Lk:if(ch)return ch.call(e)==ch.call(t)}return!1}function Cb(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var Vk=Array.isArray;const zr=Vk;function sN(e,t,n){var r=t(e);return zr(e)?r:Cb(r,n(e))}function Wk(e,t){for(var n=-1,r=e==null?0:e.length,o=0,a=[];++n<r;){var i=e[n];t(i,n,e)&&(a[o++]=i)}return a}function uN(){return[]}var Uk=Object.prototype,Kk=Uk.propertyIsEnumerable,cC=Object.getOwnPropertySymbols,qk=cC?function(e){return e==null?[]:(e=Object(e),Wk(cC(e),function(t){return Kk.call(e,t)}))}:uN;const $b=qk;function Gk(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var Xk="[object Arguments]";function dC(e){return go(e)&&ui(e)==Xk}var cN=Object.prototype,Yk=cN.hasOwnProperty,Zk=cN.propertyIsEnumerable,Jk=dC(function(){return arguments}())?dC:function(e){return go(e)&&Yk.call(e,"callee")&&!Zk.call(e,"callee")};const xm=Jk;function Qk(){return!1}var dN=typeof exports=="object"&&exports&&!exports.nodeType&&exports,fC=dN&&typeof module=="object"&&module&&!module.nodeType&&module,eH=fC&&fC.exports===dN,pC=eH?So.Buffer:void 0,tH=pC?pC.isBuffer:void 0,nH=tH||Qk;const Wu=nH;var rH=9007199254740991,oH=/^(?:0|[1-9]\d*)$/;function Eb(e,t){var n=typeof e;return t=t??rH,!!t&&(n=="number"||n!="symbol"&&oH.test(e))&&e>-1&&e%1==0&&e<t}var aH=9007199254740991;function Db(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=aH}var iH="[object Arguments]",lH="[object Array]",sH="[object Boolean]",uH="[object Date]",cH="[object Error]",dH="[object Function]",fH="[object Map]",pH="[object Number]",mH="[object Object]",vH="[object RegExp]",hH="[object Set]",gH="[object String]",yH="[object WeakMap]",bH="[object ArrayBuffer]",xH="[object DataView]",wH="[object Float32Array]",SH="[object Float64Array]",CH="[object Int8Array]",$H="[object Int16Array]",EH="[object Int32Array]",DH="[object Uint8Array]",AH="[object Uint8ClampedArray]",OH="[object Uint16Array]",TH="[object Uint32Array]",sn={};sn[wH]=sn[SH]=sn[CH]=sn[$H]=sn[EH]=sn[DH]=sn[AH]=sn[OH]=sn[TH]=!0;sn[iH]=sn[lH]=sn[bH]=sn[sH]=sn[xH]=sn[uH]=sn[cH]=sn[dH]=sn[fH]=sn[pH]=sn[mH]=sn[vH]=sn[hH]=sn[gH]=sn[yH]=!1;function MH(e){return go(e)&&Db(e.length)&&!!sn[ui(e)]}function wm(e){return function(t){return e(t)}}var fN=typeof exports=="object"&&exports&&!exports.nodeType&&exports,hu=fN&&typeof module=="object"&&module&&!module.nodeType&&module,NH=hu&&hu.exports===fN,dh=NH&&FT.process,PH=function(){try{var e=hu&&hu.require&&hu.require("util").types;return e||dh&&dh.binding&&dh.binding("util")}catch{}}();const fs=PH;var mC=fs&&fs.isTypedArray,IH=mC?wm(mC):MH;const Ab=IH;var _H=Object.prototype,BH=_H.hasOwnProperty;function pN(e,t){var n=zr(e),r=!n&&xm(e),o=!n&&!r&&Wu(e),a=!n&&!r&&!o&&Ab(e),i=n||r||o||a,l=i?Gk(e.length,String):[],s=l.length;for(var u in e)(t||BH.call(e,u))&&!(i&&(u=="length"||o&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Eb(u,s)))&&l.push(u);return l}var FH=Object.prototype;function Sm(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||FH;return e===n}var RH=zT(Object.keys,Object);const zH=RH;var LH=Object.prototype,kH=LH.hasOwnProperty;function mN(e){if(!Sm(e))return zH(e);var t=[];for(var n in Object(e))kH.call(e,n)&&n!="constructor"&&t.push(n);return t}function Es(e){return e!=null&&Db(e.length)&&!iN(e)}function Ds(e){return Es(e)?pN(e):mN(e)}function Wg(e){return sN(e,Ds,$b)}var HH=1,jH=Object.prototype,VH=jH.hasOwnProperty;function WH(e,t,n,r,o,a){var i=n&HH,l=Wg(e),s=l.length,u=Wg(t),c=u.length;if(s!=c&&!i)return!1;for(var d=s;d--;){var f=l[d];if(!(i?f in t:VH.call(t,f)))return!1}var p=a.get(e),v=a.get(t);if(p&&v)return p==t&&v==e;var m=!0;a.set(e,t),a.set(t,e);for(var h=i;++d<s;){f=l[d];var g=e[f],x=t[f];if(r)var y=i?r(x,g,f,t,e,a):r(g,x,f,e,t,a);if(!(y===void 0?g===x||o(g,x,n,r,a):y)){m=!1;break}h||(h=f=="constructor")}if(m&&!h){var w=e.constructor,b=t.constructor;w!=b&&"constructor"in e&&"constructor"in t&&!(typeof w=="function"&&w instanceof w&&typeof b=="function"&&b instanceof b)&&(m=!1)}return a.delete(e),a.delete(t),m}var UH=nl(So,"DataView");const Ug=UH;var KH=nl(So,"Promise");const Kg=KH;var qH=nl(So,"Set");const Kl=qH;var GH=nl(So,"WeakMap");const qg=GH;var vC="[object Map]",XH="[object Object]",hC="[object Promise]",gC="[object Set]",yC="[object WeakMap]",bC="[object DataView]",YH=tl(Ug),ZH=tl(ju),JH=tl(Kg),QH=tl(Kl),ej=tl(qg),Ci=ui;(Ug&&Ci(new Ug(new ArrayBuffer(1)))!=bC||ju&&Ci(new ju)!=vC||Kg&&Ci(Kg.resolve())!=hC||Kl&&Ci(new Kl)!=gC||qg&&Ci(new qg)!=yC)&&(Ci=function(e){var t=ui(e),n=t==XH?e.constructor:void 0,r=n?tl(n):"";if(r)switch(r){case YH:return bC;case ZH:return vC;case JH:return hC;case QH:return gC;case ej:return yC}return t});const ps=Ci;var tj=1,xC="[object Arguments]",wC="[object Array]",ed="[object Object]",nj=Object.prototype,SC=nj.hasOwnProperty;function rj(e,t,n,r,o,a){var i=zr(e),l=zr(t),s=i?wC:ps(e),u=l?wC:ps(t);s=s==xC?ed:s,u=u==xC?ed:u;var c=s==ed,d=u==ed,f=s==u;if(f&&Wu(e)){if(!Wu(t))return!1;i=!0,c=!1}if(f&&!c)return a||(a=new Ro),i||Ab(e)?lN(e,t,n,r,o,a):jk(e,t,s,n,r,o,a);if(!(n&tj)){var p=c&&SC.call(e,"__wrapped__"),v=d&&SC.call(t,"__wrapped__");if(p||v){var m=p?e.value():e,h=v?t.value():t;return a||(a=new Ro),o(m,h,n,r,a)}}return f?(a||(a=new Ro),WH(e,t,n,r,o,a)):!1}function Cm(e,t,n,r,o){return e===t?!0:e==null||t==null||!go(e)&&!go(t)?e!==e&&t!==t:rj(e,t,n,r,Cm,o)}function Ob(e,t){return Cm(e,t)}const oj={align:Object,target:[Object,Function],onAlign:Function,monitorBufferTime:Number,monitorWindowResize:Boolean,disabled:Boolean};function CC(e){return typeof e!="function"?null:e()}function $C(e){return typeof e!="object"||!e?null:e}const aj=he({compatConfig:{MODE:3},name:"Align",props:oj,emits:["align"],setup(e,t){let{expose:n,slots:r}=t;const o=be({}),a=be(),[i,l]=EL(()=>{const{disabled:f,target:p,align:v,onAlign:m}=e;if(!f&&p&&a.value){const h=a.value;let g;const x=CC(p),y=$C(p);o.value.element=x,o.value.point=y,o.value.align=v;const{activeElement:w}=document;return x&&gm(x)?g=xb(h,x,v):y&&(g=wL(h,y,v)),$L(w,h),m&&g&&m(h,g),!0}return!1},z(()=>e.monitorBufferTime)),s=be({cancel:()=>{}}),u=be({cancel:()=>{}}),c=()=>{const f=e.target,p=CC(f),v=$C(f);a.value!==u.value.element&&(u.value.cancel(),u.value.element=a.value,u.value.cancel=lC(a.value,i)),(o.value.element!==p||!CL(o.value.point,v)||!Ob(o.value.align,e.align))&&(i(),s.value.element!==p&&(s.value.cancel(),s.value.element=p,s.value.cancel=lC(p,i)))};Qe(()=>{ht(()=>{c()})}),Sr(()=>{ht(()=>{c()})}),Ne(()=>e.disabled,f=>{f?l():i()},{immediate:!0,flush:"post"});const d=be(null);return Ne(()=>e.monitorWindowResize,f=>{f?d.value||(d.value=en(window,"resize",i)):d.value&&(d.value.remove(),d.value=null)},{flush:"post"}),Cr(()=>{s.value.cancel(),u.value.cancel(),d.value&&d.value.remove(),l()}),n({forceAlign:()=>i(!0)}),()=>{const f=r==null?void 0:r.default();return f?At(f[0],{ref:a},!0,!0):null}}});Un("bottomLeft","bottomRight","topLeft","topRight");const Tb=e=>e!==void 0&&(e==="topLeft"||e==="topRight")?"slide-down":"slide-up",to=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return E(e?{name:e,appear:!0,enterFromClass:`${e}-enter ${e}-enter-prepare ${e}-enter-start`,enterActiveClass:`${e}-enter ${e}-enter-prepare`,enterToClass:`${e}-enter ${e}-enter-active`,leaveFromClass:` ${e}-leave`,leaveActiveClass:`${e}-leave ${e}-leave-active`,leaveToClass:`${e}-leave ${e}-leave-active`}:{css:!1},t)},$m=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return E(e?{name:e,appear:!0,appearActiveClass:`${e}`,appearToClass:`${e}-appear ${e}-appear-active`,enterFromClass:`${e}-appear ${e}-enter ${e}-appear-prepare ${e}-enter-prepare`,enterActiveClass:`${e}`,enterToClass:`${e}-enter ${e}-appear ${e}-appear-active ${e}-enter-active`,leaveActiveClass:`${e} ${e}-leave`,leaveToClass:`${e}-leave-active`}:{css:!1},t)},xr=(e,t,n)=>n!==void 0?n:`${e}-${t}`,ij=he({compatConfig:{MODE:3},name:"PopupInner",inheritAttrs:!1,props:mb,emits:["mouseenter","mouseleave","mousedown","touchstart","align"],setup(e,t){let{expose:n,attrs:r,slots:o}=t;const a=pe(),i=pe(),l=pe(),[s,u]=Gz(Ye(e,"stretch")),c=()=>{e.stretch&&u(e.getRootDomNode())},d=pe(!1);let f;Ne(()=>e.visible,S=>{clearTimeout(f),S?f=setTimeout(()=>{d.value=e.visible}):d.value=!1},{immediate:!0});const[p,v]=qz(d,c),m=pe(),h=()=>e.point?e.point:e.getRootDomNode,g=()=>{var S;(S=a.value)===null||S===void 0||S.forceAlign()},x=(S,$)=>{var D;const O=e.getClassNameFromAlign($),A=l.value;l.value!==O&&(l.value=O),p.value==="align"&&(A!==O?Promise.resolve().then(()=>{g()}):v(()=>{var T;(T=m.value)===null||T===void 0||T.call(m)}),(D=e.onAlign)===null||D===void 0||D.call(e,S,$))},y=z(()=>{const S=typeof e.animation=="object"?e.animation:vb(e);return["onAfterEnter","onAfterLeave"].forEach($=>{const D=S[$];S[$]=O=>{v(),p.value="stable",D==null||D(O)}}),S}),w=()=>new Promise(S=>{m.value=S});Ne([y,p],()=>{!y.value&&p.value==="motion"&&v()},{immediate:!0}),n({forceAlign:g,getElement:()=>i.value.$el||i.value});const b=z(()=>{var S;return!(!((S=e.align)===null||S===void 0)&&S.points&&(p.value==="align"||p.value==="stable"))});return()=>{var S;const{zIndex:$,align:D,prefixCls:O,destroyPopupOnHide:A,onMouseenter:T,onMouseleave:M,onTouchstart:B=()=>{},onMousedown:F}=e,P=p.value,I=[E(E({},s.value),{zIndex:$,opacity:P==="motion"||P==="stable"||!d.value?null:0,pointerEvents:!d.value&&P!=="stable"?"none":null}),r.style];let N=Lt((S=o.default)===null||S===void 0?void 0:S.call(o,{visible:e.visible}));N.length>1&&(N=C("div",{class:`${O}-content`},[N]));const R=ge(O,r.class,l.value),L=d.value||!e.visible?to(y.value.name,y.value):{};return C(_n,j(j({ref:i},L),{},{onBeforeEnter:w}),{default:()=>!A||e.visible?vn(C(aj,{target:h(),key:"popup",ref:a,monitorWindowResize:!0,disabled:b.value,align:D,onAlign:x},{default:()=>C("div",{class:R,onMouseenter:T,onMouseleave:M,onMousedown:sS(F,["capture"]),[An?"onTouchstartPassive":"onTouchstart"]:sS(B,["capture"]),style:I},[N])}),[[ur,d.value]]):null})}}}),lj=he({compatConfig:{MODE:3},name:"Popup",inheritAttrs:!1,props:Wz,setup(e,t){let{attrs:n,slots:r,expose:o}=t;const a=pe(!1),i=pe(!1),l=pe(),s=pe();return Ne([()=>e.visible,()=>e.mobile],()=>{a.value=e.visible,e.visible&&e.mobile&&(i.value=!0)},{immediate:!0,flush:"post"}),o({forceAlign:()=>{var u;(u=l.value)===null||u===void 0||u.forceAlign()},getElement:()=>{var u;return(u=l.value)===null||u===void 0?void 0:u.getElement()}}),()=>{const u=E(E(E({},e),n),{visible:a.value}),c=i.value?C(Uz,j(j({},u),{},{mobile:e.mobile,ref:l}),{default:r.default}):C(ij,j(j({},u),{},{ref:l}),{default:r.default});return C("div",{ref:s},[C(ZM,u,null),c])}}});function sj(e,t,n){return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function EC(e,t,n){const r=e[t]||{};return E(E({},r),n)}function uj(e,t,n,r){const{points:o}=n,a=Object.keys(e);for(let i=0;i<a.length;i+=1){const l=a[i];if(sj(e[l].points,o,r))return`${t}-placement-${l}`}return""}const rl={methods:{setState(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=typeof e=="function"?e(this.$data,this.$props):e;if(this.getDerivedStateFromProps){const r=this.getDerivedStateFromProps(HT(this),E(E({},this.$data),n));if(r===null)return;n=E(E({},n),r||{})}E(this.$data,n),this._.isMounted&&this.$forceUpdate(),ht(()=>{t&&t()})},__emit(){const e=[].slice.call(arguments,0);let t=e[0];t=`on${t[0].toUpperCase()}${t.substring(1)}`;const n=this.$props[t]||this.$attrs[t];if(e.length&&n)if(Array.isArray(n))for(let r=0,o=n.length;r<o;r++)n[r](...e.slice(1));else n(...e.slice(1))}}},vN=Symbol("PortalContextKey"),Mb=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inTriggerContext:!0};it(vN,{inTriggerContext:t.inTriggerContext,shouldRender:z(()=>{const{sPopupVisible:n,popupRef:r,forceRender:o,autoDestroy:a}=e||{};let i=!1;return(n||r||o)&&(i=!0),!n&&a&&(i=!1),i})})},cj=()=>{Mb({},{inTriggerContext:!1});const e=lt(vN,{shouldRender:z(()=>!1),inTriggerContext:!1});return{shouldRender:z(()=>e.shouldRender.value||e.inTriggerContext===!1)}},hN=he({compatConfig:{MODE:3},name:"Portal",inheritAttrs:!1,props:{getContainer:Z.func.isRequired,didUpdate:Function},setup(e,t){let{slots:n}=t,r=!0,o;const{shouldRender:a}=cj();ky(()=>{r=!1,a.value&&(o=e.getContainer())});const i=Ne(a,()=>{a.value&&!o&&(o=e.getContainer()),o&&i()});return Sr(()=>{ht(()=>{var l;a.value&&((l=e.didUpdate)===null||l===void 0||l.call(e,e))})}),st(()=>{o&&o.parentNode&&o.parentNode.removeChild(o)}),()=>{var l;return a.value?r?(l=n.default)===null||l===void 0?void 0:l.call(n):o?C(Hy,{to:o},n):null:null}}});let fh;function Xf(e){if(typeof document>"u")return 0;if(e||fh===void 0){const t=document.createElement("div");t.style.width="100%",t.style.height="200px";const n=document.createElement("div"),r=n.style;r.position="absolute",r.top="0",r.left="0",r.pointerEvents="none",r.visibility="hidden",r.width="200px",r.height="150px",r.overflow="hidden",n.appendChild(t),document.body.appendChild(n);const o=t.offsetWidth;n.style.overflow="scroll";let a=t.offsetWidth;o===a&&(a=n.clientWidth),document.body.removeChild(n),fh=o-a}return fh}function DC(e){const t=e.match(/^(.*)px$/),n=Number(t==null?void 0:t[1]);return Number.isNaN(n)?Xf():n}function dj(e){if(typeof document>"u"||!e||!(e instanceof Element))return{width:0,height:0};const{width:t,height:n}=getComputedStyle(e,"::-webkit-scrollbar");return{width:DC(t),height:DC(n)}}const fj=`vc-util-locker-${Date.now()}`;let AC=0;function pj(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}function mj(e){const t=z(()=>!!e&&!!e.value);AC+=1;const n=`${fj}_${AC}`;Je(r=>{if(t.value){const o=Xf(),a=pj();Bu(`
- html body {
- overflow-y: hidden;
- ${a?`width: calc(100% - ${o}px);`:""}
- }`,n)}else kf(n);r(()=>{kf(n)})},{flush:"post"})}let yi=0;const Kd=Co(),OC=e=>{if(!Kd)return null;if(e){if(typeof e=="string")return document.querySelectorAll(e)[0];if(typeof e=="function")return e();if(typeof e=="object"&&e instanceof window.HTMLElement)return e}return document.body},fc=he({compatConfig:{MODE:3},name:"PortalWrapper",inheritAttrs:!1,props:{wrapperClassName:String,forceRender:{type:Boolean,default:void 0},getContainer:Z.any,visible:{type:Boolean,default:void 0},autoLock:Pe(),didUpdate:Function},setup(e,t){let{slots:n}=t;const r=pe(),o=pe(),a=pe(),i=()=>{var p,v;(v=(p=r.value)===null||p===void 0?void 0:p.parentNode)===null||v===void 0||v.removeChild(r.value),r.value=null};let l=null;const s=function(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)||r.value&&!r.value.parentNode?(l=OC(e.getContainer),l?(l.appendChild(r.value),!0):!1):!0},u=document.createElement("div"),c=()=>Kd?(r.value||(r.value=u,s(!0)),d(),r.value):null,d=()=>{const{wrapperClassName:p}=e;r.value&&p&&p!==r.value.className&&(r.value.className=p)};Sr(()=>{d(),s()});const f=Kn();return mj(z(()=>e.autoLock&&e.visible&&Co()&&(r.value===document.body||r.value===u))),Qe(()=>{let p=!1;Ne([()=>e.visible,()=>e.getContainer],(v,m)=>{let[h,g]=v,[x,y]=m;Kd&&(l=OC(e.getContainer),l===document.body&&(h&&!x?yi+=1:p&&(yi-=1))),p&&(typeof g=="function"&&typeof y=="function"?g.toString()!==y.toString():g!==y)&&i(),p=!0},{immediate:!0,flush:"post"}),ht(()=>{s()||(a.value=tt(()=>{f.update()}))})}),st(()=>{const{visible:p}=e;Kd&&l===document.body&&(yi=p&&yi?yi-1:yi),i(),tt.cancel(a.value)}),()=>{const{forceRender:p,visible:v}=e;let m=null;const h={getOpenCount:()=>yi,getContainer:c};return(p||v||o.value)&&(m=C(hN,{getContainer:c,ref:o,didUpdate:e.didUpdate},{default:()=>{var g;return(g=n.default)===null||g===void 0?void 0:g.call(n,h)}})),m}}}),vj=["onClick","onMousedown","onTouchstart","onMouseenter","onMouseleave","onFocus","onBlur","onContextmenu"],ol=he({compatConfig:{MODE:3},name:"Trigger",mixins:[rl],inheritAttrs:!1,props:YM(),setup(e){const t=z(()=>{const{popupPlacement:o,popupAlign:a,builtinPlacements:i}=e;return o&&i?EC(i,o,a):a}),n=pe(null),r=o=>{n.value=o};return{vcTriggerContext:lt("vcTriggerContext",{}),popupRef:n,setPopupRef:r,triggerRef:pe(null),align:t,focusTime:null,clickOutsideHandler:null,contextmenuOutsideHandler1:null,contextmenuOutsideHandler2:null,touchOutsideHandler:null,attachId:null,delayTimer:null,hasPopupMouseDown:!1,preClickTime:null,preTouchTime:null,mouseDownTimeout:null,childOriginEvents:{}}},data(){const e=this.$props;let t;return this.popupVisible!==void 0?t=!!e.popupVisible:t=!!e.defaultPopupVisible,vj.forEach(n=>{this[`fire${n}`]=r=>{this.fireEvents(n,r)}}),{prevPopupVisible:t,sPopupVisible:t,point:null}},watch:{popupVisible(e){e!==void 0&&(this.prevPopupVisible=this.sPopupVisible,this.sPopupVisible=e)}},created(){it("vcTriggerContext",{onPopupMouseDown:this.onPopupMouseDown,onPopupMouseenter:this.onPopupMouseenter,onPopupMouseleave:this.onPopupMouseleave}),Mb(this)},deactivated(){this.setPopupVisible(!1)},mounted(){this.$nextTick(()=>{this.updatedCal()})},updated(){this.$nextTick(()=>{this.updatedCal()})},beforeUnmount(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),tt.cancel(this.attachId)},methods:{updatedCal(){const e=this.$props;if(this.$data.sPopupVisible){let n;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextmenuToShow())&&(n=e.getDocument(this.getRootDomNode()),this.clickOutsideHandler=en(n,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(n=n||e.getDocument(this.getRootDomNode()),this.touchOutsideHandler=en(n,"touchstart",this.onDocumentClick,An?{passive:!1}:!1)),!this.contextmenuOutsideHandler1&&this.isContextmenuToShow()&&(n=n||e.getDocument(this.getRootDomNode()),this.contextmenuOutsideHandler1=en(n,"scroll",this.onContextmenuClose)),!this.contextmenuOutsideHandler2&&this.isContextmenuToShow()&&(this.contextmenuOutsideHandler2=en(window,"blur",this.onContextmenuClose))}else this.clearOutsideHandler()},onMouseenter(e){const{mouseEnterDelay:t}=this.$props;this.fireEvents("onMouseenter",e),this.delaySetPopupVisible(!0,t,t?null:e)},onMouseMove(e){this.fireEvents("onMousemove",e),this.setPoint(e)},onMouseleave(e){this.fireEvents("onMouseleave",e),this.delaySetPopupVisible(!1,this.$props.mouseLeaveDelay)},onPopupMouseenter(){const{vcTriggerContext:e={}}=this;e.onPopupMouseenter&&e.onPopupMouseenter(),this.clearDelayTimer()},onPopupMouseleave(e){var t;if(e&&e.relatedTarget&&!e.relatedTarget.setTimeout&&Ua((t=this.popupRef)===null||t===void 0?void 0:t.getElement(),e.relatedTarget))return;this.delaySetPopupVisible(!1,this.$props.mouseLeaveDelay);const{vcTriggerContext:n={}}=this;n.onPopupMouseleave&&n.onPopupMouseleave(e)},onFocus(e){this.fireEvents("onFocus",e),this.clearDelayTimer(),this.isFocusToShow()&&(this.focusTime=Date.now(),this.delaySetPopupVisible(!0,this.$props.focusDelay))},onMousedown(e){this.fireEvents("onMousedown",e),this.preClickTime=Date.now()},onTouchstart(e){this.fireEvents("onTouchstart",e),this.preTouchTime=Date.now()},onBlur(e){Ua(e.target,e.relatedTarget||document.activeElement)||(this.fireEvents("onBlur",e),this.clearDelayTimer(),this.isBlurToHide()&&this.delaySetPopupVisible(!1,this.$props.blurDelay))},onContextmenu(e){e.preventDefault(),this.fireEvents("onContextmenu",e),this.setPopupVisible(!0,e)},onContextmenuClose(){this.isContextmenuToShow()&&this.close()},onClick(e){if(this.fireEvents("onClick",e),this.focusTime){let n;if(this.preClickTime&&this.preTouchTime?n=Math.min(this.preClickTime,this.preTouchTime):this.preClickTime?n=this.preClickTime:this.preTouchTime&&(n=this.preTouchTime),Math.abs(n-this.focusTime)<20)return;this.focusTime=0}this.preClickTime=0,this.preTouchTime=0,this.isClickToShow()&&(this.isClickToHide()||this.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault(),e&&e.domEvent&&e.domEvent.preventDefault();const t=!this.$data.sPopupVisible;(this.isClickToHide()&&!t||t&&this.isClickToShow())&&this.setPopupVisible(!this.$data.sPopupVisible,e)},onPopupMouseDown(){const{vcTriggerContext:e={}}=this;this.hasPopupMouseDown=!0,clearTimeout(this.mouseDownTimeout),this.mouseDownTimeout=setTimeout(()=>{this.hasPopupMouseDown=!1},0),e.onPopupMouseDown&&e.onPopupMouseDown(...arguments)},onDocumentClick(e){if(this.$props.mask&&!this.$props.maskClosable)return;const t=e.target,n=this.getRootDomNode(),r=this.getPopupDomNode();(!Ua(n,t)||this.isContextMenuOnly())&&!Ua(r,t)&&!this.hasPopupMouseDown&&this.delaySetPopupVisible(!1,.1)},getPopupDomNode(){var e;return((e=this.popupRef)===null||e===void 0?void 0:e.getElement())||null},getRootDomNode(){var e,t,n,r;const{getTriggerDOMNode:o}=this.$props;if(o){const a=((t=(e=this.triggerRef)===null||e===void 0?void 0:e.$el)===null||t===void 0?void 0:t.nodeName)==="#comment"?null:yr(this.triggerRef);return yr(o(a))}try{const a=((r=(n=this.triggerRef)===null||n===void 0?void 0:n.$el)===null||r===void 0?void 0:r.nodeName)==="#comment"?null:yr(this.triggerRef);if(a)return a}catch{}return yr(this)},handleGetPopupClassFromAlign(e){const t=[],n=this.$props,{popupPlacement:r,builtinPlacements:o,prefixCls:a,alignPoint:i,getPopupClassNameFromAlign:l}=n;return r&&o&&t.push(uj(o,a,e,i)),l&&t.push(l(e)),t.join(" ")},getPopupAlign(){const e=this.$props,{popupPlacement:t,popupAlign:n,builtinPlacements:r}=e;return t&&r?EC(r,t,n):n},getComponent(){const e={};this.isMouseEnterToShow()&&(e.onMouseenter=this.onPopupMouseenter),this.isMouseLeaveToHide()&&(e.onMouseleave=this.onPopupMouseleave),e.onMousedown=this.onPopupMouseDown,e[An?"onTouchstartPassive":"onTouchstart"]=this.onPopupMouseDown;const{handleGetPopupClassFromAlign:t,getRootDomNode:n,$attrs:r}=this,{prefixCls:o,destroyPopupOnHide:a,popupClassName:i,popupAnimation:l,popupTransitionName:s,popupStyle:u,mask:c,maskAnimation:d,maskTransitionName:f,zIndex:p,stretch:v,alignPoint:m,mobile:h,forceRender:g}=this.$props,{sPopupVisible:x,point:y}=this.$data,w=E(E({prefixCls:o,destroyPopupOnHide:a,visible:x,point:m?y:null,align:this.align,animation:l,getClassNameFromAlign:t,stretch:v,getRootDomNode:n,mask:c,zIndex:p,transitionName:s,maskAnimation:d,maskTransitionName:f,class:i,style:u,onAlign:r.onPopupAlign||XM},e),{ref:this.setPopupRef,mobile:h,forceRender:g});return C(lj,w,{default:this.$slots.popup||(()=>jT(this,"popup"))})},attachParent(e){tt.cancel(this.attachId);const{getPopupContainer:t,getDocument:n}=this.$props,r=this.getRootDomNode();let o;t?(r||t.length===0)&&(o=t(r)):o=n(this.getRootDomNode()).body,o?o.appendChild(e):this.attachId=tt(()=>{this.attachParent(e)})},getContainer(){const{$props:e}=this,{getDocument:t}=e,n=t(this.getRootDomNode()).createElement("div");return n.style.position="absolute",n.style.top="0",n.style.left="0",n.style.width="100%",this.attachParent(n),n},setPopupVisible(e,t){const{alignPoint:n,sPopupVisible:r,onPopupVisibleChange:o}=this;this.clearDelayTimer(),r!==e&&(ia(this,"popupVisible")||this.setState({sPopupVisible:e,prevPopupVisible:r}),o&&o(e)),n&&t&&e&&this.setPoint(t)},setPoint(e){const{alignPoint:t}=this.$props;!t||!e||this.setState({point:{pageX:e.pageX,pageY:e.pageY}})},handlePortalUpdate(){this.prevPopupVisible!==this.sPopupVisible&&this.afterPopupVisibleChange(this.sPopupVisible)},delaySetPopupVisible(e,t,n){const r=t*1e3;if(this.clearDelayTimer(),r){const o=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=setTimeout(()=>{this.setPopupVisible(e,o),this.clearDelayTimer()},r)}else this.setPopupVisible(e,n)},clearDelayTimer(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)},clearOutsideHandler(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextmenuOutsideHandler1&&(this.contextmenuOutsideHandler1.remove(),this.contextmenuOutsideHandler1=null),this.contextmenuOutsideHandler2&&(this.contextmenuOutsideHandler2.remove(),this.contextmenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)},createTwoChains(e){let t=()=>{};const n=mS(this);return this.childOriginEvents[e]&&n[e]?this[`fire${e}`]:(t=this.childOriginEvents[e]||n[e]||t,t)},isClickToShow(){const{action:e,showAction:t}=this.$props;return e.indexOf("click")!==-1||t.indexOf("click")!==-1},isContextMenuOnly(){const{action:e}=this.$props;return e==="contextmenu"||e.length===1&&e[0]==="contextmenu"},isContextmenuToShow(){const{action:e,showAction:t}=this.$props;return e.indexOf("contextmenu")!==-1||t.indexOf("contextmenu")!==-1},isClickToHide(){const{action:e,hideAction:t}=this.$props;return e.indexOf("click")!==-1||t.indexOf("click")!==-1},isMouseEnterToShow(){const{action:e,showAction:t}=this.$props;return e.indexOf("hover")!==-1||t.indexOf("mouseenter")!==-1},isMouseLeaveToHide(){const{action:e,hideAction:t}=this.$props;return e.indexOf("hover")!==-1||t.indexOf("mouseleave")!==-1},isFocusToShow(){const{action:e,showAction:t}=this.$props;return e.indexOf("focus")!==-1||t.indexOf("focus")!==-1},isBlurToHide(){const{action:e,hideAction:t}=this.$props;return e.indexOf("focus")!==-1||t.indexOf("blur")!==-1},forcePopupAlign(){var e;this.$data.sPopupVisible&&((e=this.popupRef)===null||e===void 0||e.forceAlign())},fireEvents(e,t){this.childOriginEvents[e]&&this.childOriginEvents[e](t);const n=this.$props[e]||this.$attrs[e];n&&n(t)},close(){this.setPopupVisible(!1)}},render(){const{$attrs:e}=this,t=nn(am(this)),{alignPoint:n,getPopupContainer:r}=this.$props,o=t[0];this.childOriginEvents=mS(o);const a={key:"trigger"};this.isContextmenuToShow()?a.onContextmenu=this.onContextmenu:a.onContextmenu=this.createTwoChains("onContextmenu"),this.isClickToHide()||this.isClickToShow()?(a.onClick=this.onClick,a.onMousedown=this.onMousedown,a[An?"onTouchstartPassive":"onTouchstart"]=this.onTouchstart):(a.onClick=this.createTwoChains("onClick"),a.onMousedown=this.createTwoChains("onMousedown"),a[An?"onTouchstartPassive":"onTouchstart"]=this.createTwoChains("onTouchstart")),this.isMouseEnterToShow()?(a.onMouseenter=this.onMouseenter,n&&(a.onMousemove=this.onMouseMove)):a.onMouseenter=this.createTwoChains("onMouseenter"),this.isMouseLeaveToHide()?a.onMouseleave=this.onMouseleave:a.onMouseleave=this.createTwoChains("onMouseleave"),this.isFocusToShow()||this.isBlurToHide()?(a.onFocus=this.onFocus,a.onBlur=this.onBlur):(a.onFocus=this.createTwoChains("onFocus"),a.onBlur=u=>{u&&(!u.relatedTarget||!Ua(u.target,u.relatedTarget))&&this.createTwoChains("onBlur")(u)});const i=ge(o&&o.props&&o.props.class,e.class);i&&(a.class=i);const l=At(o,E(E({},a),{ref:"triggerRef"}),!0,!0),s=C(fc,{key:"portal",getContainer:r&&(()=>r(this.getRootDomNode())),didUpdate:this.handlePortalUpdate,visible:this.$data.sPopupVisible},{default:this.getComponent});return C(dt,null,[l,s])}});var hj=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const gj=e=>{const t=e===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1}}}},yj=he({name:"SelectTrigger",inheritAttrs:!1,props:{dropdownAlign:Object,visible:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},dropdownClassName:String,dropdownStyle:Z.object,placement:String,empty:{type:Boolean,default:void 0},prefixCls:String,popupClassName:String,animation:String,transitionName:String,getPopupContainer:Function,dropdownRender:Function,containerWidth:Number,dropdownMatchSelectWidth:Z.oneOfType([Number,Boolean]).def(!0),popupElement:Z.any,direction:String,getTriggerDOMNode:Function,onPopupVisibleChange:Function,onPopupMouseEnter:Function},setup(e,t){let{slots:n,attrs:r,expose:o}=t;const a=z(()=>{const{dropdownMatchSelectWidth:l}=e;return gj(l)}),i=be();return o({getPopupElement:()=>i.value}),()=>{const l=E(E({},e),r),{empty:s=!1}=l,u=hj(l,["empty"]),{visible:c,dropdownAlign:d,prefixCls:f,popupElement:p,dropdownClassName:v,dropdownStyle:m,direction:h="ltr",placement:g,dropdownMatchSelectWidth:x,containerWidth:y,dropdownRender:w,animation:b,transitionName:S,getPopupContainer:$,getTriggerDOMNode:D,onPopupVisibleChange:O,onPopupMouseEnter:A}=u,T=`${f}-dropdown`;let M=p;w&&(M=w({menuNode:p,props:e}));const B=b?`${T}-${b}`:S,F=E({minWidth:`${y}px`},m);return typeof x=="number"?F.width=`${x}px`:x&&(F.width=`${y}px`),C(ol,j(j({},e),{},{showAction:O?["click"]:[],hideAction:O?["click"]:[],popupPlacement:g||(h==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:a.value,prefixCls:T,popupTransitionName:B,popupAlign:d,popupVisible:c,getPopupContainer:$,popupClassName:ge(v,{[`${T}-empty`]:s}),popupStyle:F,getTriggerDOMNode:D,onPopupVisibleChange:O}),{default:n.default,popup:()=>C("div",{ref:i,onMouseenter:A},[M])})}}}),bj=yj,yt={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){const{keyCode:n}=t;if(t.altKey&&!t.ctrlKey||t.metaKey||n>=yt.F1&&n<=yt.F12)return!1;switch(n){case yt.ALT:case yt.CAPS_LOCK:case yt.CONTEXT_MENU:case yt.CTRL:case yt.DOWN:case yt.END:case yt.ESC:case yt.HOME:case yt.INSERT:case yt.LEFT:case yt.MAC_FF_META:case yt.META:case yt.NUMLOCK:case yt.NUM_CENTER:case yt.PAGE_DOWN:case yt.PAGE_UP:case yt.PAUSE:case yt.PRINT_SCREEN:case yt.RIGHT:case yt.SHIFT:case yt.UP:case yt.WIN_KEY:case yt.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=yt.ZERO&&t<=yt.NINE||t>=yt.NUM_ZERO&&t<=yt.NUM_MULTIPLY||t>=yt.A&&t<=yt.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case yt.SPACE:case yt.QUESTION_MARK:case yt.NUM_PLUS:case yt.NUM_MINUS:case yt.NUM_PERIOD:case yt.NUM_DIVISION:case yt.SEMICOLON:case yt.DASH:case yt.EQUALS:case yt.COMMA:case yt.PERIOD:case yt.SLASH:case yt.APOSTROPHE:case yt.SINGLE_QUOTE:case yt.OPEN_SQUARE_BRACKET:case yt.BACKSLASH:case yt.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},_e=yt,Em=(e,t)=>{let{slots:n}=t;var r;const{class:o,customizeIcon:a,customizeIconProps:i,onMousedown:l,onClick:s}=e;let u;return typeof a=="function"?u=a(i):u=a,C("span",{class:o,onMousedown:c=>{c.preventDefault(),l&&l(c)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:s,"aria-hidden":!0},[u!==void 0?u:C("span",{class:o.split(/\s+/).map(c=>`${c}-icon`)},[(r=n.default)===null||r===void 0?void 0:r.call(n)])])};Em.inheritAttrs=!1;Em.displayName="TransBtn";Em.props={class:String,customizeIcon:Z.any,customizeIconProps:Z.any,onMousedown:Function,onClick:Function};const Yf=Em;function xj(e){e.target.composing=!0}function TC(e){e.target.composing&&(e.target.composing=!1,wj(e.target,"input"))}function wj(e,t){const n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function ph(e,t,n,r){e.addEventListener(t,n,r)}const Sj={created(e,t){(!t.modifiers||!t.modifiers.lazy)&&(ph(e,"compositionstart",xj),ph(e,"compositionend",TC),ph(e,"change",TC))}},As=Sj,Cj={inputRef:Z.any,prefixCls:String,id:String,inputElement:Z.VueNode,disabled:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,editable:{type:Boolean,default:void 0},activeDescendantId:String,value:String,open:{type:Boolean,default:void 0},tabindex:Z.oneOfType([Z.number,Z.string]),attrs:Z.object,onKeydown:{type:Function},onMousedown:{type:Function},onChange:{type:Function},onPaste:{type:Function},onCompositionstart:{type:Function},onCompositionend:{type:Function},onFocus:{type:Function},onBlur:{type:Function}},$j=he({compatConfig:{MODE:3},name:"Input",inheritAttrs:!1,props:Cj,setup(e){let t=null;const n=lt("VCSelectContainerEvent");return()=>{var r;const{prefixCls:o,id:a,inputElement:i,disabled:l,tabindex:s,autofocus:u,autocomplete:c,editable:d,activeDescendantId:f,value:p,onKeydown:v,onMousedown:m,onChange:h,onPaste:g,onCompositionstart:x,onCompositionend:y,onFocus:w,onBlur:b,open:S,inputRef:$,attrs:D}=e;let O=i||vn(C("input",null,null),[[As]]);const A=O.props||{},{onKeydown:T,onInput:M,onFocus:B,onBlur:F,onMousedown:P,onCompositionstart:I,onCompositionend:N,style:R}=A;return O=At(O,E(E(E(E(E({type:"search"},A),{id:a,ref:$,disabled:l,tabindex:s,autocomplete:c||"off",autofocus:u,class:ge(`${o}-selection-search-input`,(r=O==null?void 0:O.props)===null||r===void 0?void 0:r.class),role:"combobox","aria-expanded":S,"aria-haspopup":"listbox","aria-owns":`${a}_list`,"aria-autocomplete":"list","aria-controls":`${a}_list`,"aria-activedescendant":f}),D),{value:d?p:"",readonly:!d,unselectable:d?null:"on",style:E(E({},R),{opacity:d?null:0}),onKeydown:_=>{v(_),T&&T(_)},onMousedown:_=>{m(_),P&&P(_)},onInput:_=>{h(_),M&&M(_)},onCompositionstart(_){x(_),I&&I(_)},onCompositionend(_){y(_),N&&N(_)},onPaste:g,onFocus:function(){clearTimeout(t),B&&B(arguments.length<=0?void 0:arguments[0]),w&&w(arguments.length<=0?void 0:arguments[0]),n==null||n.focus(arguments.length<=0?void 0:arguments[0])},onBlur:function(){for(var _=arguments.length,L=new Array(_),k=0;k<_;k++)L[k]=arguments[k];t=setTimeout(()=>{F&&F(L[0]),b&&b(L[0]),n==null||n.blur(L[0])},100)}}),O.type==="textarea"?{}:{type:"search"}),!0,!0),O}}}),gN=$j,Ej=`accept acceptcharset accesskey action allowfullscreen allowtransparency
- alt async autocomplete autofocus autoplay capture cellpadding cellspacing challenge
- charset checked classid classname colspan cols content contenteditable contextmenu
- controls coords crossorigin data datetime default defer dir disabled download draggable
- enctype form formaction formenctype formmethod formnovalidate formtarget frameborder
- headers height hidden high href hreflang htmlfor for httpequiv icon id inputmode integrity
- is keyparams keytype kind label lang list loop low manifest marginheight marginwidth max maxlength media
- mediagroup method min minlength multiple muted name novalidate nonce open
- optimum pattern placeholder poster preload radiogroup readonly rel required
- reversed role rowspan rows sandbox scope scoped scrolling seamless selected
- shape size sizes span spellcheck src srcdoc srclang srcset start step style
- summary tabindex target title type usemap value width wmode wrap`,Dj=`onCopy onCut onPaste onCompositionend onCompositionstart onCompositionupdate onKeydown
- onKeypress onKeyup onFocus onBlur onChange onInput onSubmit onClick onContextmenu onDoubleclick onDblclick
- onDrag onDragend onDragenter onDragexit onDragleave onDragover onDragstart onDrop onMousedown
- onMouseenter onMouseleave onMousemove onMouseout onMouseover onMouseup onSelect onTouchcancel
- onTouchend onTouchmove onTouchstart onTouchstartPassive onTouchmovePassive onScroll onWheel onAbort onCanplay onCanplaythrough
- onDurationchange onEmptied onEncrypted onEnded onError onLoadeddata onLoadedmetadata
- onLoadstart onPause onPlay onPlaying onProgress onRatechange onSeeked onSeeking onStalled onSuspend onTimeupdate onVolumechange onWaiting onLoad onError`,MC=`${Ej} ${Dj}`.split(/[\s\n]+/),Aj="aria-",Oj="data-";function NC(e,t){return e.indexOf(t)===0}function ci(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=E({},t);const r={};return Object.keys(e).forEach(o=>{(n.aria&&(o==="role"||NC(o,Aj))||n.data&&NC(o,Oj)||n.attr&&(MC.includes(o)||MC.includes(o.toLowerCase())))&&(r[o]=e[o])}),r}const yN=Symbol("OverflowContextProviderKey"),Gg=he({compatConfig:{MODE:3},name:"OverflowContextProvider",inheritAttrs:!1,props:{value:{type:Object}},setup(e,t){let{slots:n}=t;return it(yN,z(()=>e.value)),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}}),Tj=()=>lt(yN,z(()=>null));var Mj=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const yl=void 0,qd=he({compatConfig:{MODE:3},name:"Item",props:{prefixCls:String,item:Z.any,renderItem:Function,responsive:Boolean,itemKey:{type:[String,Number]},registerSize:Function,display:Boolean,order:Number,component:Z.any,invalidate:Boolean},setup(e,t){let{slots:n,expose:r}=t;const o=z(()=>e.responsive&&!e.display),a=be();r({itemNodeRef:a});function i(l){e.registerSize(e.itemKey,l)}return Cr(()=>{i(null)}),()=>{var l;const{prefixCls:s,invalidate:u,item:c,renderItem:d,responsive:f,registerSize:p,itemKey:v,display:m,order:h,component:g="div"}=e,x=Mj(e,["prefixCls","invalidate","item","renderItem","responsive","registerSize","itemKey","display","order","component"]),y=(l=n.default)===null||l===void 0?void 0:l.call(n),w=d&&c!==yl?d(c):y;let b;u||(b={opacity:o.value?0:1,height:o.value?0:yl,overflowY:o.value?"hidden":yl,order:f?h:yl,pointerEvents:o.value?"none":yl,position:o.value?"absolute":yl});const S={};return o.value&&(S["aria-hidden"]=!0),C(Qr,{disabled:!f,onResize:$=>{let{offsetWidth:D}=$;i(D)}},{default:()=>C(g,j(j(j({class:ge(!u&&s),style:b},S),x),{},{ref:a}),{default:()=>[w]})})}}});var mh=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Nj=he({compatConfig:{MODE:3},name:"RawItem",inheritAttrs:!1,props:{component:Z.any,title:Z.any,id:String,onMouseenter:{type:Function},onMouseleave:{type:Function},onClick:{type:Function},onKeydown:{type:Function},onFocus:{type:Function},role:String,tabindex:Number},setup(e,t){let{slots:n,attrs:r}=t;const o=Tj();return()=>{var a;if(!o.value){const{component:d="div"}=e,f=mh(e,["component"]);return C(d,j(j({},f),r),{default:()=>[(a=n.default)===null||a===void 0?void 0:a.call(n)]})}const i=o.value,{className:l}=i,s=mh(i,["className"]),{class:u}=r,c=mh(r,["class"]);return C(Gg,{value:null},{default:()=>[C(qd,j(j(j({class:ge(l,u)},s),c),e),n)]})}}});var Pj=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const bN="responsive",xN="invalidate";function Ij(e){return`+ ${e.length} ...`}const _j=()=>({id:String,prefixCls:String,data:Array,itemKey:[String,Number,Function],itemWidth:{type:Number,default:10},renderItem:Function,renderRawItem:Function,maxCount:[Number,String],renderRest:Function,renderRawRest:Function,suffix:Z.any,component:String,itemComponent:Z.any,onVisibleChange:Function,ssr:String,onMousedown:Function}),Dm=he({name:"Overflow",inheritAttrs:!1,props:_j(),emits:["visibleChange"],setup(e,t){let{attrs:n,emit:r,slots:o}=t;const a=z(()=>e.ssr==="full"),i=pe(null),l=z(()=>i.value||0),s=pe(new Map),u=pe(0),c=pe(0),d=pe(0),f=pe(null),p=pe(null),v=z(()=>p.value===null&&a.value?Number.MAX_SAFE_INTEGER:p.value||0),m=pe(!1),h=z(()=>`${e.prefixCls}-item`),g=z(()=>Math.max(u.value,c.value)),x=z(()=>!!(e.data.length&&e.maxCount===bN)),y=z(()=>e.maxCount===xN),w=z(()=>x.value||typeof e.maxCount=="number"&&e.data.length>e.maxCount),b=z(()=>{let P=e.data;return x.value?i.value===null&&a.value?P=e.data:P=e.data.slice(0,Math.min(e.data.length,l.value/e.itemWidth)):typeof e.maxCount=="number"&&(P=e.data.slice(0,e.maxCount)),P}),S=z(()=>x.value?e.data.slice(v.value+1):e.data.slice(b.value.length)),$=(P,I)=>{var N;return typeof e.itemKey=="function"?e.itemKey(P):(N=e.itemKey&&(P==null?void 0:P[e.itemKey]))!==null&&N!==void 0?N:I},D=z(()=>e.renderItem||(P=>P)),O=(P,I)=>{p.value=P,I||(m.value=P<e.data.length-1,r("visibleChange",P))},A=(P,I)=>{i.value=I.clientWidth},T=(P,I)=>{const N=new Map(s.value);I===null?N.delete(P):N.set(P,I),s.value=N},M=(P,I)=>{u.value=c.value,c.value=I},B=(P,I)=>{d.value=I},F=P=>s.value.get($(b.value[P],P));return Ne([l,s,c,d,()=>e.itemKey,b],()=>{if(l.value&&g.value&&b.value){let P=d.value;const I=b.value.length,N=I-1;if(!I){O(0),f.value=null;return}for(let R=0;R<I;R+=1){const _=F(R);if(_===void 0){O(R-1,!0);break}if(P+=_,N===0&&P<=l.value||R===N-1&&P+F(N)<=l.value){O(N),f.value=null;break}else if(P+g.value>l.value){O(R-1),f.value=P-_-d.value+c.value;break}}e.suffix&&F(0)+d.value>l.value&&(f.value=null)}}),()=>{const P=m.value&&!!S.value.length,{itemComponent:I,renderRawItem:N,renderRawRest:R,renderRest:_,prefixCls:L="rc-overflow",suffix:k,component:H="div",id:V,onMousedown:U}=e,{class:q,style:K}=n,X=Pj(n,["class","style"]);let re={};f.value!==null&&x.value&&(re={position:"absolute",left:`${f.value}px`,top:0});const ee={prefixCls:h.value,responsive:x.value,component:I,invalidate:y.value},G=N?(Se,Q)=>{const te=$(Se,Q);return C(Gg,{key:te,value:E(E({},ee),{order:Q,item:Se,itemKey:te,registerSize:T,display:Q<=v.value})},{default:()=>[N(Se,Q)]})}:(Se,Q)=>{const te=$(Se,Q);return C(qd,j(j({},ee),{},{order:Q,key:te,item:Se,renderItem:D.value,itemKey:te,registerSize:T,display:Q<=v.value}),null)};let le=()=>null;const ue={order:P?v.value:Number.MAX_SAFE_INTEGER,className:`${h.value} ${h.value}-rest`,registerSize:M,display:P};if(R)R&&(le=()=>C(Gg,{value:E(E({},ee),ue)},{default:()=>[R(S.value)]}));else{const Se=_||Ij;le=()=>C(qd,j(j({},ee),ue),{default:()=>typeof Se=="function"?Se(S.value):Se})}const me=()=>{var Se;return C(H,j({id:V,class:ge(!y.value&&L,q),style:K,onMousedown:U},X),{default:()=>[b.value.map(G),w.value?le():null,k&&C(qd,j(j({},ee),{},{order:v.value,class:`${h.value}-suffix`,registerSize:B,display:!0,style:re}),{default:()=>k}),(Se=o.default)===null||Se===void 0?void 0:Se.call(o)]})};return C(Qr,{disabled:!x.value,onResize:A},{default:me})}}});Dm.Item=Nj;Dm.RESPONSIVE=bN;Dm.INVALIDATE=xN;const ql=Dm,wN=Symbol("TreeSelectLegacyContextPropsKey");function Bj(e){return it(wN,e)}function Am(){return lt(wN,{})}const Fj={id:String,prefixCls:String,values:Z.array,open:{type:Boolean,default:void 0},searchValue:String,inputRef:Z.any,placeholder:Z.any,disabled:{type:Boolean,default:void 0},mode:String,showSearch:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,activeDescendantId:String,tabindex:Z.oneOfType([Z.number,Z.string]),removeIcon:Z.any,choiceTransitionName:String,maxTagCount:Z.oneOfType([Z.number,Z.string]),maxTagTextLength:Number,maxTagPlaceholder:Z.any.def(()=>e=>`+ ${e.length} ...`),tagRender:Function,onToggleOpen:{type:Function},onRemove:Function,onInputChange:Function,onInputPaste:Function,onInputKeyDown:Function,onInputMouseDown:Function,onInputCompositionStart:Function,onInputCompositionEnd:Function},PC=e=>{e.preventDefault(),e.stopPropagation()},Rj=he({name:"MultipleSelectSelector",inheritAttrs:!1,props:Fj,setup(e){const t=pe(),n=pe(0),r=pe(!1),o=Am(),a=z(()=>`${e.prefixCls}-selection`),i=z(()=>e.open||e.mode==="tags"?e.searchValue:""),l=z(()=>e.mode==="tags"||e.showSearch&&(e.open||r.value));Qe(()=>{Ne(i,()=>{n.value=t.value.scrollWidth},{flush:"post",immediate:!0})});function s(f,p,v,m,h){return C("span",{class:ge(`${a.value}-item`,{[`${a.value}-item-disabled`]:v}),title:typeof f=="string"||typeof f=="number"?f.toString():void 0},[C("span",{class:`${a.value}-item-content`},[p]),m&&C(Yf,{class:`${a.value}-item-remove`,onMousedown:PC,onClick:h,customizeIcon:e.removeIcon},{default:()=>[sr("×")]})])}function u(f,p,v,m,h,g){var x;const y=b=>{PC(b),e.onToggleOpen(!open)};let w=g;return o.keyEntities&&(w=((x=o.keyEntities[f])===null||x===void 0?void 0:x.node)||{}),C("span",{key:f,onMousedown:y},[e.tagRender({label:p,value:f,disabled:v,closable:m,onClose:h,option:w})])}function c(f){const{disabled:p,label:v,value:m,option:h}=f,g=!e.disabled&&!p;let x=v;if(typeof e.maxTagTextLength=="number"&&(typeof v=="string"||typeof v=="number")){const w=String(x);w.length>e.maxTagTextLength&&(x=`${w.slice(0,e.maxTagTextLength)}...`)}const y=w=>{var b;w&&w.stopPropagation(),(b=e.onRemove)===null||b===void 0||b.call(e,f)};return typeof e.tagRender=="function"?u(m,x,p,g,y,h):s(v,x,p,g,y)}function d(f){const{maxTagPlaceholder:p=m=>`+ ${m.length} ...`}=e,v=typeof p=="function"?p(f):p;return s(v,v,!1)}return()=>{const{id:f,prefixCls:p,values:v,open:m,inputRef:h,placeholder:g,disabled:x,autofocus:y,autocomplete:w,activeDescendantId:b,tabindex:S,onInputChange:$,onInputPaste:D,onInputKeyDown:O,onInputMouseDown:A,onInputCompositionStart:T,onInputCompositionEnd:M}=e,B=C("div",{class:`${a.value}-search`,style:{width:n.value+"px"},key:"input"},[C(gN,{inputRef:h,open:m,prefixCls:p,id:f,inputElement:null,disabled:x,autofocus:y,autocomplete:w,editable:l.value,activeDescendantId:b,value:i.value,onKeydown:O,onMousedown:A,onChange:$,onPaste:D,onCompositionstart:T,onCompositionend:M,tabindex:S,attrs:ci(e,!0),onFocus:()=>r.value=!0,onBlur:()=>r.value=!1},null),C("span",{ref:t,class:`${a.value}-search-mirror`,"aria-hidden":!0},[i.value,sr(" ")])]),F=C(ql,{prefixCls:`${a.value}-overflow`,data:v,renderItem:c,renderRest:d,suffix:B,itemKey:"key",maxCount:e.maxTagCount,key:"overflow"},null);return C(dt,null,[F,!v.length&&!i.value&&C("span",{class:`${a.value}-placeholder`},[g])])}}}),zj=Rj,Lj={inputElement:Z.any,id:String,prefixCls:String,values:Z.array,open:{type:Boolean,default:void 0},searchValue:String,inputRef:Z.any,placeholder:Z.any,disabled:{type:Boolean,default:void 0},mode:String,showSearch:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,activeDescendantId:String,tabindex:Z.oneOfType([Z.number,Z.string]),activeValue:String,backfill:{type:Boolean,default:void 0},optionLabelRender:Function,onInputChange:Function,onInputPaste:Function,onInputKeyDown:Function,onInputMouseDown:Function,onInputCompositionStart:Function,onInputCompositionEnd:Function},Nb=he({name:"SingleSelector",setup(e){const t=pe(!1),n=z(()=>e.mode==="combobox"),r=z(()=>n.value||e.showSearch),o=z(()=>{let u=e.searchValue||"";return n.value&&e.activeValue&&!t.value&&(u=e.activeValue),u}),a=Am();Ne([n,()=>e.activeValue],()=>{n.value&&(t.value=!1)},{immediate:!0});const i=z(()=>e.mode!=="combobox"&&!e.open&&!e.showSearch?!1:!!o.value),l=z(()=>{const u=e.values[0];return u&&(typeof u.label=="string"||typeof u.label=="number")?u.label.toString():void 0}),s=()=>{if(e.values[0])return null;const u=i.value?{visibility:"hidden"}:void 0;return C("span",{class:`${e.prefixCls}-selection-placeholder`,style:u},[e.placeholder])};return()=>{var u,c,d,f;const{inputElement:p,prefixCls:v,id:m,values:h,inputRef:g,disabled:x,autofocus:y,autocomplete:w,activeDescendantId:b,open:S,tabindex:$,optionLabelRender:D,onInputKeyDown:O,onInputMouseDown:A,onInputChange:T,onInputPaste:M,onInputCompositionStart:B,onInputCompositionEnd:F}=e,P=h[0];let I=null;if(P&&a.customSlots){const N=(u=P.key)!==null&&u!==void 0?u:P.value,R=((c=a.keyEntities[N])===null||c===void 0?void 0:c.node)||{};I=a.customSlots[(d=R.slots)===null||d===void 0?void 0:d.title]||a.customSlots.title||P.label,typeof I=="function"&&(I=I(R))}else I=D&&P?D(P.option):P==null?void 0:P.label;return C(dt,null,[C("span",{class:`${v}-selection-search`},[C(gN,{inputRef:g,prefixCls:v,id:m,open:S,inputElement:p,disabled:x,autofocus:y,autocomplete:w,editable:r.value,activeDescendantId:b,value:o.value,onKeydown:O,onMousedown:A,onChange:N=>{t.value=!0,T(N)},onPaste:M,onCompositionstart:B,onCompositionend:F,tabindex:$,attrs:ci(e,!0)},null)]),!n.value&&P&&!i.value&&C("span",{class:`${v}-selection-item`,title:l.value},[C(dt,{key:(f=P.key)!==null&&f!==void 0?f:P.value},[I])]),s()])}}});Nb.props=Lj;Nb.inheritAttrs=!1;const kj=Nb;function Hj(e){return![_e.ESC,_e.SHIFT,_e.BACKSPACE,_e.TAB,_e.WIN_KEY,_e.ALT,_e.META,_e.WIN_KEY_RIGHT,_e.CTRL,_e.SEMICOLON,_e.EQUALS,_e.CAPS_LOCK,_e.CONTEXT_MENU,_e.F1,_e.F2,_e.F3,_e.F4,_e.F5,_e.F6,_e.F7,_e.F8,_e.F9,_e.F10,_e.F11,_e.F12].includes(e)}function SN(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=null,n;st(()=>{clearTimeout(n)});function r(o){(o||t===null)&&(t=o),clearTimeout(n),n=setTimeout(()=>{t=null},e)}return[()=>t,r]}function Uu(){const e=t=>{e.current=t};return e}const jj=he({name:"Selector",inheritAttrs:!1,props:{id:String,prefixCls:String,showSearch:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},values:Z.array,multiple:{type:Boolean,default:void 0},mode:String,searchValue:String,activeValue:String,inputElement:Z.any,autofocus:{type:Boolean,default:void 0},activeDescendantId:String,tabindex:Z.oneOfType([Z.number,Z.string]),disabled:{type:Boolean,default:void 0},placeholder:Z.any,removeIcon:Z.any,maxTagCount:Z.oneOfType([Z.number,Z.string]),maxTagTextLength:Number,maxTagPlaceholder:Z.any,tagRender:Function,optionLabelRender:Function,tokenWithEnter:{type:Boolean,default:void 0},choiceTransitionName:String,onToggleOpen:{type:Function},onSearch:Function,onSearchSubmit:Function,onRemove:Function,onInputKeyDown:{type:Function},domRef:Function},setup(e,t){let{expose:n}=t;const r=Uu();let o=!1;const[a,i]=SN(0),l=g=>{const{which:x}=g;(x===_e.UP||x===_e.DOWN)&&g.preventDefault(),e.onInputKeyDown&&e.onInputKeyDown(g),x===_e.ENTER&&e.mode==="tags"&&!o&&!e.open&&e.onSearchSubmit(g.target.value),Hj(x)&&e.onToggleOpen(!0)},s=()=>{i(!0)};let u=null;const c=g=>{e.onSearch(g,!0,o)!==!1&&e.onToggleOpen(!0)},d=()=>{o=!0},f=g=>{o=!1,e.mode!=="combobox"&&c(g.target.value)},p=g=>{let{target:{value:x}}=g;if(e.tokenWithEnter&&u&&/[\r\n]/.test(u)){const y=u.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");x=x.replace(y,u)}u=null,c(x)},v=g=>{const{clipboardData:x}=g;u=x.getData("text")},m=g=>{let{target:x}=g;x!==r.current&&(document.body.style.msTouchAction!==void 0?setTimeout(()=>{r.current.focus()}):r.current.focus())},h=g=>{const x=a();g.target!==r.current&&!x&&g.preventDefault(),(e.mode!=="combobox"&&(!e.showSearch||!x)||!e.open)&&(e.open&&e.onSearch("",!0,!1),e.onToggleOpen())};return n({focus:()=>{r.current.focus()},blur:()=>{r.current.blur()}}),()=>{const{prefixCls:g,domRef:x,mode:y}=e,w={inputRef:r,onInputKeyDown:l,onInputMouseDown:s,onInputChange:p,onInputPaste:v,onInputCompositionStart:d,onInputCompositionEnd:f},b=y==="multiple"||y==="tags"?C(zj,j(j({},e),w),null):C(kj,j(j({},e),w),null);return C("div",{ref:x,class:`${g}-selector`,onClick:m,onMousedown:h},[b])}}}),Vj=jj;function Wj(e,t,n){function r(o){var a,i,l;let s=o.target;s.shadowRoot&&o.composed&&(s=o.composedPath()[0]||s);const u=[(a=e[0])===null||a===void 0?void 0:a.value,(l=(i=e[1])===null||i===void 0?void 0:i.value)===null||l===void 0?void 0:l.getPopupElement()];t.value&&u.every(c=>c&&!c.contains(s)&&c!==s)&&n(!1)}Qe(()=>{window.addEventListener("mousedown",r)}),st(()=>{window.removeEventListener("mousedown",r)})}function Uj(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10;const t=pe(!1);let n;const r=()=>{clearTimeout(n)};return Qe(()=>{r()}),[t,(a,i)=>{r(),n=setTimeout(()=>{t.value=a,i&&i()},e)},r]}const CN=Symbol("BaseSelectContextKey");function Kj(e){return it(CN,e)}function pc(){return lt(CN,{})}const Pb=()=>{if(typeof navigator>"u"||typeof window>"u")return!1;const e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))};var qj=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Gj=["value","onChange","removeIcon","placeholder","autofocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabindex","OptionList","notFoundContent"],Xj=()=>({prefixCls:String,id:String,omitDomProps:Array,displayValues:Array,onDisplayValuesChange:Function,activeValue:String,activeDescendantId:String,onActiveValueChange:Function,searchValue:String,onSearch:Function,onSearchSplit:Function,maxLength:Number,OptionList:Z.any,emptyOptions:Boolean}),Om=()=>({showSearch:{type:Boolean,default:void 0},tagRender:{type:Function},optionLabelRender:{type:Function},direction:{type:String},tabindex:Number,autofocus:Boolean,notFoundContent:Z.any,placeholder:Z.any,onClear:Function,choiceTransitionName:String,mode:String,disabled:{type:Boolean,default:void 0},loading:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:void 0},onDropdownVisibleChange:{type:Function},getInputElement:{type:Function},getRawInputElement:{type:Function},maxTagTextLength:Number,maxTagCount:{type:[String,Number]},maxTagPlaceholder:Z.any,tokenSeparators:{type:Array},allowClear:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:void 0},inputIcon:Z.any,clearIcon:Z.any,removeIcon:Z.any,animation:String,transitionName:String,dropdownStyle:{type:Object},dropdownClassName:String,dropdownMatchSelectWidth:{type:[Boolean,Number],default:void 0},dropdownRender:{type:Function},dropdownAlign:Object,placement:{type:String},getPopupContainer:{type:Function},showAction:{type:Array},onBlur:{type:Function},onFocus:{type:Function},onKeyup:Function,onKeydown:Function,onMousedown:Function,onPopupScroll:Function,onInputKeyDown:Function,onMouseenter:Function,onMouseleave:Function,onClick:Function}),Yj=()=>E(E({},Xj()),Om());function $N(e){return e==="tags"||e==="multiple"}const Ib=he({compatConfig:{MODE:3},name:"BaseSelect",inheritAttrs:!1,props:at(Yj(),{showAction:[],notFoundContent:"Not Found"}),setup(e,t){let{attrs:n,expose:r,slots:o}=t;const a=z(()=>$N(e.mode)),i=z(()=>e.showSearch!==void 0?e.showSearch:a.value||e.mode==="combobox"),l=pe(!1);Qe(()=>{l.value=Pb()});const s=Am(),u=pe(null),c=Uu(),d=pe(null),f=pe(null),p=pe(null),[v,m,h]=Uj();r({focus:()=>{var X;(X=f.value)===null||X===void 0||X.focus()},blur:()=>{var X;(X=f.value)===null||X===void 0||X.blur()},scrollTo:X=>{var re;return(re=p.value)===null||re===void 0?void 0:re.scrollTo(X)}});const y=z(()=>{var X;if(e.mode!=="combobox")return e.searchValue;const re=(X=e.displayValues[0])===null||X===void 0?void 0:X.value;return typeof re=="string"||typeof re=="number"?String(re):""}),w=e.open!==void 0?e.open:e.defaultOpen,b=pe(w),S=pe(w),$=X=>{b.value=e.open!==void 0?e.open:X,S.value=b.value};Ne(()=>e.open,()=>{$(e.open)});const D=z(()=>!e.notFoundContent&&e.emptyOptions);Je(()=>{S.value=b.value,(e.disabled||D.value&&S.value&&e.mode==="combobox")&&(S.value=!1)});const O=z(()=>D.value?!1:S.value),A=X=>{const re=X!==void 0?X:!S.value;b.value!==re&&!e.disabled&&($(re),e.onDropdownVisibleChange&&e.onDropdownVisibleChange(re))},T=z(()=>(e.tokenSeparators||[]).some(X=>[`
- `,`\r
- `].includes(X))),M=(X,re,ee)=>{var G,le;let ue=!0,me=X;(G=e.onActiveValueChange)===null||G===void 0||G.call(e,null);const Se=ee?null:kz(X,e.tokenSeparators);return e.mode!=="combobox"&&Se&&(me="",(le=e.onSearchSplit)===null||le===void 0||le.call(e,Se),A(!1),ue=!1),e.onSearch&&y.value!==me&&e.onSearch(me,{source:re?"typing":"effect"}),ue},B=X=>{var re;!X||!X.trim()||(re=e.onSearch)===null||re===void 0||re.call(e,X,{source:"submit"})};Ne(S,()=>{!S.value&&!a.value&&e.mode!=="combobox"&&M("",!1,!1)},{immediate:!0,flush:"post"}),Ne(()=>e.disabled,()=>{b.value&&e.disabled&&$(!1)},{immediate:!0});const[F,P]=SN(),I=function(X){var re;const ee=F(),{which:G}=X;if(G===_e.ENTER&&(e.mode!=="combobox"&&X.preventDefault(),S.value||A(!0)),P(!!y.value),G===_e.BACKSPACE&&!ee&&a.value&&!y.value&&e.displayValues.length){const Se=[...e.displayValues];let Q=null;for(let te=Se.length-1;te>=0;te-=1){const de=Se[te];if(!de.disabled){Se.splice(te,1),Q=de;break}}Q&&e.onDisplayValuesChange(Se,{type:"remove",values:[Q]})}for(var le=arguments.length,ue=new Array(le>1?le-1:0),me=1;me<le;me++)ue[me-1]=arguments[me];S.value&&p.value&&p.value.onKeydown(X,...ue),(re=e.onKeydown)===null||re===void 0||re.call(e,X,...ue)},N=function(X){for(var re=arguments.length,ee=new Array(re>1?re-1:0),G=1;G<re;G++)ee[G-1]=arguments[G];S.value&&p.value&&p.value.onKeyup(X,...ee),e.onKeyup&&e.onKeyup(X,...ee)},R=X=>{const re=e.displayValues.filter(ee=>ee!==X);e.onDisplayValuesChange(re,{type:"remove",values:[X]})},_=pe(!1);it("VCSelectContainerEvent",{focus:function(){m(!0),e.disabled||(e.onFocus&&!_.value&&e.onFocus(...arguments),e.showAction&&e.showAction.includes("focus")&&A(!0)),_.value=!0},blur:function(){if(m(!1,()=>{_.value=!1,A(!1)}),e.disabled)return;const X=y.value;X&&(e.mode==="tags"?e.onSearch(X,{source:"submit"}):e.mode==="multiple"&&e.onSearch("",{source:"blur"})),e.onBlur&&e.onBlur(...arguments)}});const H=[];Qe(()=>{H.forEach(X=>clearTimeout(X)),H.splice(0,H.length)}),st(()=>{H.forEach(X=>clearTimeout(X)),H.splice(0,H.length)});const V=function(X){var re,ee;const{target:G}=X,le=(re=d.value)===null||re===void 0?void 0:re.getPopupElement();if(le&&le.contains(G)){const Q=setTimeout(()=>{var te;const de=H.indexOf(Q);de!==-1&&H.splice(de,1),h(),!l.value&&!le.contains(document.activeElement)&&((te=f.value)===null||te===void 0||te.focus())});H.push(Q)}for(var ue=arguments.length,me=new Array(ue>1?ue-1:0),Se=1;Se<ue;Se++)me[Se-1]=arguments[Se];(ee=e.onMousedown)===null||ee===void 0||ee.call(e,X,...me)},U=pe(null),q=Kn(),K=()=>{q.update()};return Qe(()=>{Ne(O,()=>{var X;if(O.value){const re=Math.ceil((X=u.value)===null||X===void 0?void 0:X.offsetWidth);U.value!==re&&!Number.isNaN(re)&&(U.value=re)}},{immediate:!0,flush:"post"})}),Wj([u,d],O,A),Kj(Lu(E(E({},Xr(e)),{open:S,triggerOpen:O,showSearch:i,multiple:a,toggleOpen:A}))),()=>{const X=E(E({},e),n),{prefixCls:re,id:ee,open:G,defaultOpen:le,mode:ue,showSearch:me,searchValue:Se,onSearch:Q,allowClear:te,clearIcon:de,showArrow:Y,inputIcon:ae,disabled:ce,loading:Ce,getInputElement:ye,getPopupContainer:J,placement:ne,animation:oe,transitionName:ie,dropdownStyle:ve,dropdownClassName:we,dropdownMatchSelectWidth:$e,dropdownRender:Ae,dropdownAlign:xe,showAction:Ee,direction:Te,tokenSeparators:Me,tagRender:ze,optionLabelRender:Be,onPopupScroll:je,onDropdownVisibleChange:W,onFocus:fe,onBlur:De,onKeyup:Ie,onKeydown:Ve,onMousedown:Ge,onClear:Ct,omitDomProps:Nt,getRawInputElement:Wt,displayValues:fn,onDisplayValuesChange:Ln,emptyOptions:Er,activeDescendantId:Oo,activeValue:Xn,OptionList:Xo}=X,Le=qj(X,["prefixCls","id","open","defaultOpen","mode","showSearch","searchValue","onSearch","allowClear","clearIcon","showArrow","inputIcon","disabled","loading","getInputElement","getPopupContainer","placement","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","showAction","direction","tokenSeparators","tagRender","optionLabelRender","onPopupScroll","onDropdownVisibleChange","onFocus","onBlur","onKeyup","onKeydown","onMousedown","onClear","omitDomProps","getRawInputElement","displayValues","onDisplayValuesChange","emptyOptions","activeDescendantId","activeValue","OptionList"]),et=ue==="combobox"&&ye&&ye()||null,Ze=typeof Wt=="function"&&Wt(),Bt=E({},Le);let pn;Ze&&(pn=$n=>{A($n)}),Gj.forEach($n=>{delete Bt[$n]}),Nt==null||Nt.forEach($n=>{delete Bt[$n]});const ln=Y!==void 0?Y:Ce||!a.value&&ue!=="combobox";let rr;ln&&(rr=C(Yf,{class:ge(`${re}-arrow`,{[`${re}-arrow-loading`]:Ce}),customizeIcon:ae,customizeIconProps:{loading:Ce,searchValue:y.value,open:S.value,focused:v.value,showSearch:i.value}},null));let Tn;const ao=()=>{Ct==null||Ct(),Ln([],{type:"clear",values:fn}),M("",!1,!1)};!ce&&te&&(fn.length||y.value)&&(Tn=C(Yf,{class:`${re}-clear`,onMousedown:ao,customizeIcon:de},{default:()=>[sr("×")]}));const mr=C(Xo,{ref:p},E(E({},s.customSlots),{option:o.option})),Dr=ge(re,n.class,{[`${re}-focused`]:v.value,[`${re}-multiple`]:a.value,[`${re}-single`]:!a.value,[`${re}-allow-clear`]:te,[`${re}-show-arrow`]:ln,[`${re}-disabled`]:ce,[`${re}-loading`]:Ce,[`${re}-open`]:S.value,[`${re}-customize-input`]:et,[`${re}-show-search`]:i.value}),Gt=C(bj,{ref:d,disabled:ce,prefixCls:re,visible:O.value,popupElement:mr,containerWidth:U.value,animation:oe,transitionName:ie,dropdownStyle:ve,dropdownClassName:we,direction:Te,dropdownMatchSelectWidth:$e,dropdownRender:Ae,dropdownAlign:xe,placement:ne,getPopupContainer:J,empty:Er,getTriggerDOMNode:()=>c.current,onPopupVisibleChange:pn,onPopupMouseEnter:K},{default:()=>Ze?hn(Ze)&&At(Ze,{ref:c},!1,!0):C(Vj,j(j({},e),{},{domRef:c,prefixCls:re,inputElement:et,ref:f,id:ee,showSearch:i.value,mode:ue,activeDescendantId:Oo,tagRender:ze,optionLabelRender:Be,values:fn,open:S.value,onToggleOpen:A,activeValue:Xn,searchValue:y.value,onSearch:M,onSearchSubmit:B,onRemove:R,tokenWithEnter:T.value}),null)});let or;return Ze?or=Gt:or=C("div",j(j({},Bt),{},{class:Dr,ref:u,onMousedown:V,onKeydown:I,onKeyup:N}),[v.value&&!S.value&&C("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},[`${fn.map($n=>{let{label:To,value:Pa}=$n;return["number","string"].includes(typeof To)?To:Pa}).join(", ")}`]),Gt,rr,Tn]),or}}}),Tm=(e,t)=>{let{height:n,offset:r,prefixCls:o,onInnerResize:a}=e,{slots:i}=t;var l;let s={},u={display:"flex",flexDirection:"column"};return r!==void 0&&(s={height:`${n}px`,position:"relative",overflow:"hidden"},u=E(E({},u),{transform:`translateY(${r}px)`,position:"absolute",left:0,right:0,top:0})),C("div",{style:s},[C(Qr,{onResize:c=>{let{offsetHeight:d}=c;d&&a&&a()}},{default:()=>[C("div",{style:u,class:ge({[`${o}-holder-inner`]:o})},[(l=i.default)===null||l===void 0?void 0:l.call(i)])]})])};Tm.displayName="Filter";Tm.inheritAttrs=!1;Tm.props={prefixCls:String,height:Number,offset:Number,onInnerResize:Function};const Zj=Tm,EN=(e,t)=>{let{setRef:n}=e,{slots:r}=t;var o;const a=Lt((o=r.default)===null||o===void 0?void 0:o.call(r));return a&&a.length?ha(a[0],{ref:n}):a};EN.props={setRef:{type:Function,default:()=>{}}};const Jj=EN,Qj=20;function IC(e){return"touches"in e?e.touches[0].pageY:e.pageY}const eV=he({compatConfig:{MODE:3},name:"ScrollBar",inheritAttrs:!1,props:{prefixCls:String,scrollTop:Number,scrollHeight:Number,height:Number,count:Number,onScroll:{type:Function},onStartMove:{type:Function},onStopMove:{type:Function}},setup(){return{moveRaf:null,scrollbarRef:Uu(),thumbRef:Uu(),visibleTimeout:null,state:_t({dragging:!1,pageY:null,startTop:null,visible:!1})}},watch:{scrollTop:{handler(){this.delayHidden()},flush:"post"}},mounted(){var e,t;(e=this.scrollbarRef.current)===null||e===void 0||e.addEventListener("touchstart",this.onScrollbarTouchStart,An?{passive:!1}:!1),(t=this.thumbRef.current)===null||t===void 0||t.addEventListener("touchstart",this.onMouseDown,An?{passive:!1}:!1)},beforeUnmount(){this.removeEvents(),clearTimeout(this.visibleTimeout)},methods:{delayHidden(){clearTimeout(this.visibleTimeout),this.state.visible=!0,this.visibleTimeout=setTimeout(()=>{this.state.visible=!1},2e3)},onScrollbarTouchStart(e){e.preventDefault()},onContainerMouseDown(e){e.stopPropagation(),e.preventDefault()},patchEvents(){window.addEventListener("mousemove",this.onMouseMove),window.addEventListener("mouseup",this.onMouseUp),this.thumbRef.current.addEventListener("touchmove",this.onMouseMove,An?{passive:!1}:!1),this.thumbRef.current.addEventListener("touchend",this.onMouseUp)},removeEvents(){window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("mouseup",this.onMouseUp),this.scrollbarRef.current.removeEventListener("touchstart",this.onScrollbarTouchStart,An?{passive:!1}:!1),this.thumbRef.current&&(this.thumbRef.current.removeEventListener("touchstart",this.onMouseDown,An?{passive:!1}:!1),this.thumbRef.current.removeEventListener("touchmove",this.onMouseMove,An?{passive:!1}:!1),this.thumbRef.current.removeEventListener("touchend",this.onMouseUp)),tt.cancel(this.moveRaf)},onMouseDown(e){const{onStartMove:t}=this.$props;E(this.state,{dragging:!0,pageY:IC(e),startTop:this.getTop()}),t(),this.patchEvents(),e.stopPropagation(),e.preventDefault()},onMouseMove(e){const{dragging:t,pageY:n,startTop:r}=this.state,{onScroll:o}=this.$props;if(tt.cancel(this.moveRaf),t){const a=IC(e)-n,i=r+a,l=this.getEnableScrollRange(),s=this.getEnableHeightRange(),u=s?i/s:0,c=Math.ceil(u*l);this.moveRaf=tt(()=>{o(c)})}},onMouseUp(){const{onStopMove:e}=this.$props;this.state.dragging=!1,e(),this.removeEvents()},getSpinHeight(){const{height:e,count:t}=this.$props;let n=e/t*10;return n=Math.max(n,Qj),n=Math.min(n,e/2),Math.floor(n)},getEnableScrollRange(){const{scrollHeight:e,height:t}=this.$props;return e-t||0},getEnableHeightRange(){const{height:e}=this.$props,t=this.getSpinHeight();return e-t||0},getTop(){const{scrollTop:e}=this.$props,t=this.getEnableScrollRange(),n=this.getEnableHeightRange();return e===0||t===0?0:e/t*n},showScroll(){const{height:e,scrollHeight:t}=this.$props;return t>e}},render(){const{dragging:e,visible:t}=this.state,{prefixCls:n}=this.$props,r=this.getSpinHeight()+"px",o=this.getTop()+"px",a=this.showScroll(),i=a&&t;return C("div",{ref:this.scrollbarRef,class:ge(`${n}-scrollbar`,{[`${n}-scrollbar-show`]:a}),style:{width:"8px",top:0,bottom:0,right:0,position:"absolute",display:i?void 0:"none"},onMousedown:this.onContainerMouseDown,onMousemove:this.delayHidden},[C("div",{ref:this.thumbRef,class:ge(`${n}-scrollbar-thumb`,{[`${n}-scrollbar-thumb-moving`]:e}),style:{width:"100%",height:r,top:o,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:"99px",cursor:"pointer",userSelect:"none"},onMousedown:this.onMouseDown},null)])}});function tV(e,t,n,r){const o=new Map,a=new Map,i=be(Symbol("update"));Ne(e,()=>{i.value=Symbol("update")});let l;function s(){tt.cancel(l)}function u(){s(),l=tt(()=>{o.forEach((d,f)=>{if(d&&d.offsetParent){const{offsetHeight:p}=d;a.get(f)!==p&&(i.value=Symbol("update"),a.set(f,d.offsetHeight))}})})}function c(d,f){const p=t(d),v=o.get(p);f?(o.set(p,f.$el||f),u()):o.delete(p),!v!=!f&&(f?n==null||n(d):r==null||r(d))}return Cr(()=>{s()}),[c,u,a,i]}function nV(e,t,n,r,o,a,i,l){let s;return u=>{if(u==null){l();return}tt.cancel(s);const c=t.value,d=r.itemHeight;if(typeof u=="number")i(u);else if(u&&typeof u=="object"){let f;const{align:p}=u;"index"in u?{index:f}=u:f=c.findIndex(h=>o(h)===u.key);const{offset:v=0}=u,m=(h,g)=>{if(h<0||!e.value)return;const x=e.value.clientHeight;let y=!1,w=g;if(x){const b=g||p;let S=0,$=0,D=0;const O=Math.min(c.length,f);for(let M=0;M<=O;M+=1){const B=o(c[M]);$=S;const F=n.get(B);D=$+(F===void 0?d:F),S=D,M===f&&F===void 0&&(y=!0)}const A=e.value.scrollTop;let T=null;switch(b){case"top":T=$-v;break;case"bottom":T=D-x+v;break;default:{const M=A+x;$<A?w="top":D>M&&(w="bottom")}}T!==null&&T!==A&&i(T)}s=tt(()=>{y&&a(),m(h-1,w)},2)};m(5)}}}const rV=typeof navigator=="object"&&/Firefox/i.test(navigator.userAgent),oV=rV,DN=(e,t)=>{let n=!1,r=null;function o(){clearTimeout(r),n=!0,r=setTimeout(()=>{n=!1},50)}return function(a){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const l=a<0&&e.value||a>0&&t.value;return i&&l?(clearTimeout(r),n=!1):(!l||n)&&o(),!n&&l}};function aV(e,t,n,r){let o=0,a=null,i=null,l=!1;const s=DN(t,n);function u(d){if(!e.value)return;tt.cancel(a);const{deltaY:f}=d;o+=f,i=f,!s(f)&&(oV||d.preventDefault(),a=tt(()=>{r(o*(l?10:1)),o=0}))}function c(d){e.value&&(l=d.detail===i)}return[u,c]}const iV=14/15;function lV(e,t,n){let r=!1,o=0,a=null,i=null;const l=()=>{a&&(a.removeEventListener("touchmove",s),a.removeEventListener("touchend",u))},s=f=>{if(r){const p=Math.ceil(f.touches[0].pageY);let v=o-p;o=p,n(v)&&f.preventDefault(),clearInterval(i),i=setInterval(()=>{v*=iV,(!n(v,!0)||Math.abs(v)<=.1)&&clearInterval(i)},16)}},u=()=>{r=!1,l()},c=f=>{l(),f.touches.length===1&&!r&&(r=!0,o=Math.ceil(f.touches[0].pageY),a=f.target,a.addEventListener("touchmove",s,{passive:!1}),a.addEventListener("touchend",u))},d=()=>{};Qe(()=>{document.addEventListener("touchmove",d,{passive:!1}),Ne(e,f=>{t.value.removeEventListener("touchstart",c),l(),clearInterval(i),f&&t.value.addEventListener("touchstart",c,{passive:!1})},{immediate:!0})}),st(()=>{document.removeEventListener("touchmove",d)})}var sV=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const uV=[],cV={overflowY:"auto",overflowAnchor:"none"};function dV(e,t,n,r,o,a){let{getKey:i}=a;return e.slice(t,n+1).map((l,s)=>{const u=t+s,c=o(l,u,{}),d=i(l);return C(Jj,{key:d,setRef:f=>r(l,f)},{default:()=>[c]})})}const fV=he({compatConfig:{MODE:3},name:"List",inheritAttrs:!1,props:{prefixCls:String,data:Z.array,height:Number,itemHeight:Number,fullHeight:{type:Boolean,default:void 0},itemKey:{type:[String,Number,Function],required:!0},component:{type:[String,Object]},virtual:{type:Boolean,default:void 0},children:Function,onScroll:Function,onMousedown:Function,onMouseenter:Function,onVisibleChange:Function},setup(e,t){let{expose:n}=t;const r=z(()=>{const{height:R,itemHeight:_,virtual:L}=e;return!!(L!==!1&&R&&_)}),o=z(()=>{const{height:R,itemHeight:_,data:L}=e;return r.value&&L&&_*L.length>R}),a=_t({scrollTop:0,scrollMoving:!1}),i=z(()=>e.data||uV),l=pe([]);Ne(i,()=>{l.value=cn(i.value).slice()},{immediate:!0});const s=pe(R=>{});Ne(()=>e.itemKey,R=>{typeof R=="function"?s.value=R:s.value=_=>_==null?void 0:_[R]},{immediate:!0});const u=pe(),c=pe(),d=pe(),f=R=>s.value(R),p={getKey:f};function v(R){let _;typeof R=="function"?_=R(a.scrollTop):_=R;const L=S(_);u.value&&(u.value.scrollTop=L),a.scrollTop=L}const[m,h,g,x]=tV(l,f,null,null),y=_t({scrollHeight:void 0,start:0,end:0,offset:void 0}),w=pe(0);Qe(()=>{ht(()=>{var R;w.value=((R=c.value)===null||R===void 0?void 0:R.offsetHeight)||0})}),Sr(()=>{ht(()=>{var R;w.value=((R=c.value)===null||R===void 0?void 0:R.offsetHeight)||0})}),Ne([r,l],()=>{r.value||E(y,{scrollHeight:void 0,start:0,end:l.value.length-1,offset:void 0})},{immediate:!0}),Ne([r,l,w,o],()=>{r.value&&!o.value&&E(y,{scrollHeight:w.value,start:0,end:l.value.length-1,offset:void 0}),u.value&&(a.scrollTop=u.value.scrollTop)},{immediate:!0}),Ne([o,r,()=>a.scrollTop,l,x,()=>e.height,w],()=>{if(!r.value||!o.value)return;let R=0,_,L,k;const H=l.value.length,V=l.value,U=a.scrollTop,{itemHeight:q,height:K}=e,X=U+K;for(let re=0;re<H;re+=1){const ee=V[re],G=f(ee);let le=g.get(G);le===void 0&&(le=q);const ue=R+le;_===void 0&&ue>=U&&(_=re,L=R),k===void 0&&ue>X&&(k=re),R=ue}_===void 0&&(_=0,L=0,k=Math.ceil(K/q)),k===void 0&&(k=H-1),k=Math.min(k+1,H),E(y,{scrollHeight:R,start:_,end:k,offset:L})},{immediate:!0});const b=z(()=>y.scrollHeight-e.height);function S(R){let _=R;return Number.isNaN(b.value)||(_=Math.min(_,b.value)),_=Math.max(_,0),_}const $=z(()=>a.scrollTop<=0),D=z(()=>a.scrollTop>=b.value),O=DN($,D);function A(R){v(R)}function T(R){var _;const{scrollTop:L}=R.currentTarget;L!==a.scrollTop&&v(L),(_=e.onScroll)===null||_===void 0||_.call(e,R)}const[M,B]=aV(r,$,D,R=>{v(_=>_+R)});lV(r,u,(R,_)=>O(R,_)?!1:(M({preventDefault(){},deltaY:R}),!0));function F(R){r.value&&R.preventDefault()}const P=()=>{u.value&&(u.value.removeEventListener("wheel",M,An?{passive:!1}:!1),u.value.removeEventListener("DOMMouseScroll",B),u.value.removeEventListener("MozMousePixelScroll",F))};Je(()=>{ht(()=>{u.value&&(P(),u.value.addEventListener("wheel",M,An?{passive:!1}:!1),u.value.addEventListener("DOMMouseScroll",B),u.value.addEventListener("MozMousePixelScroll",F))})}),st(()=>{P()});const I=nV(u,l,g,e,f,h,v,()=>{var R;(R=d.value)===null||R===void 0||R.delayHidden()});n({scrollTo:I});const N=z(()=>{let R=null;return e.height&&(R=E({[e.fullHeight?"height":"maxHeight"]:e.height+"px"},cV),r.value&&(R.overflowY="hidden",a.scrollMoving&&(R.pointerEvents="none"))),R});return Ne([()=>y.start,()=>y.end,l],()=>{if(e.onVisibleChange){const R=l.value.slice(y.start,y.end+1);e.onVisibleChange(R,l.value)}},{flush:"post"}),{state:a,mergedData:l,componentStyle:N,onFallbackScroll:T,onScrollBar:A,componentRef:u,useVirtual:r,calRes:y,collectHeight:h,setInstance:m,sharedConfig:p,scrollBarRef:d,fillerInnerRef:c}},render(){const e=E(E({},this.$props),this.$attrs),{prefixCls:t="rc-virtual-list",height:n,itemHeight:r,fullHeight:o,data:a,itemKey:i,virtual:l,component:s="div",onScroll:u,children:c=this.$slots.default,style:d,class:f}=e,p=sV(e,["prefixCls","height","itemHeight","fullHeight","data","itemKey","virtual","component","onScroll","children","style","class"]),v=ge(t,f),{scrollTop:m}=this.state,{scrollHeight:h,offset:g,start:x,end:y}=this.calRes,{componentStyle:w,onFallbackScroll:b,onScrollBar:S,useVirtual:$,collectHeight:D,sharedConfig:O,setInstance:A,mergedData:T}=this;return C("div",j({style:E(E({},d),{position:"relative"}),class:v},p),[C(s,{class:`${t}-holder`,style:w,ref:"componentRef",onScroll:b},{default:()=>[C(Zj,{prefixCls:t,height:h,offset:g,onInnerResize:D,ref:"fillerInnerRef"},{default:()=>dV(T,x,y,A,c,O)})]}),$&&C(eV,{ref:"scrollBarRef",prefixCls:t,scrollTop:m,height:n,scrollHeight:h,count:T.length,onScroll:S,onStartMove:()=>{this.state.scrollMoving=!0},onStopMove:()=>{this.state.scrollMoving=!1}},null)])}}),AN=fV;function _b(e,t,n){const r=be(e());return Ne(t,(o,a)=>{n?n(o,a)&&(r.value=e()):r.value=e()}),r}function pV(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}const ON=Symbol("SelectContextKey");function mV(e){return it(ON,e)}function vV(){return lt(ON,{})}var hV=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function _C(e){return typeof e=="string"||typeof e=="number"}const gV=he({compatConfig:{MODE:3},name:"OptionList",inheritAttrs:!1,setup(e,t){let{expose:n,slots:r}=t;const o=pc(),a=vV(),i=z(()=>`${o.prefixCls}-item`),l=_b(()=>a.flattenOptions,[()=>o.open,()=>a.flattenOptions],b=>b[0]),s=Uu(),u=b=>{b.preventDefault()},c=b=>{s.current&&s.current.scrollTo(typeof b=="number"?{index:b}:b)},d=function(b){let S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const $=l.value.length;for(let D=0;D<$;D+=1){const O=(b+D*S+$)%$,{group:A,data:T}=l.value[O];if(!A&&!T.disabled)return O}return-1},f=_t({activeIndex:d(0)}),p=function(b){let S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;f.activeIndex=b;const $={source:S?"keyboard":"mouse"},D=l.value[b];if(!D){a.onActiveValue(null,-1,$);return}a.onActiveValue(D.value,b,$)};Ne([()=>l.value.length,()=>o.searchValue],()=>{p(a.defaultActiveFirstOption!==!1?d(0):-1)},{immediate:!0});const v=b=>a.rawValues.has(b)&&o.mode!=="combobox";Ne([()=>o.open,()=>o.searchValue],()=>{if(!o.multiple&&o.open&&a.rawValues.size===1){const b=Array.from(a.rawValues)[0],S=cn(l.value).findIndex($=>{let{data:D}=$;return D[a.fieldNames.value]===b});S!==-1&&(p(S),ht(()=>{c(S)}))}o.open&&ht(()=>{var b;(b=s.current)===null||b===void 0||b.scrollTo(void 0)})},{immediate:!0,flush:"post"});const m=b=>{b!==void 0&&a.onSelect(b,{selected:!a.rawValues.has(b)}),o.multiple||o.toggleOpen(!1)},h=b=>typeof b.label=="function"?b.label():b.label;function g(b){const S=l.value[b];if(!S)return null;const $=S.data||{},{value:D}=$,{group:O}=S,A=ci($,!0),T=h(S);return S?C("div",j(j({"aria-label":typeof T=="string"&&!O?T:null},A),{},{key:b,role:O?"presentation":"option",id:`${o.id}_list_${b}`,"aria-selected":v(D)}),[D]):null}return n({onKeydown:b=>{const{which:S,ctrlKey:$}=b;switch(S){case _e.N:case _e.P:case _e.UP:case _e.DOWN:{let D=0;if(S===_e.UP?D=-1:S===_e.DOWN?D=1:pV()&&$&&(S===_e.N?D=1:S===_e.P&&(D=-1)),D!==0){const O=d(f.activeIndex+D,D);c(O),p(O,!0)}break}case _e.ENTER:{const D=l.value[f.activeIndex];D&&!D.data.disabled?m(D.value):m(void 0),o.open&&b.preventDefault();break}case _e.ESC:o.toggleOpen(!1),o.open&&b.stopPropagation()}},onKeyup:()=>{},scrollTo:b=>{c(b)}}),()=>{const{id:b,notFoundContent:S,onPopupScroll:$}=o,{menuItemSelectedIcon:D,fieldNames:O,virtual:A,listHeight:T,listItemHeight:M}=a,B=r.option,{activeIndex:F}=f,P=Object.keys(O).map(I=>O[I]);return l.value.length===0?C("div",{role:"listbox",id:`${b}_list`,class:`${i.value}-empty`,onMousedown:u},[S]):C(dt,null,[C("div",{role:"listbox",id:`${b}_list`,style:{height:0,width:0,overflow:"hidden"}},[g(F-1),g(F),g(F+1)]),C(AN,{itemKey:"key",ref:s,data:l.value,height:T,itemHeight:M,fullHeight:!1,onMousedown:u,onScroll:$,virtual:A},{default:(I,N)=>{var R;const{group:_,groupOption:L,data:k,value:H}=I,{key:V}=k,U=typeof I.label=="function"?I.label():I.label;if(_){const ce=(R=k.title)!==null&&R!==void 0?R:_C(U)&&U;return C("div",{class:ge(i.value,`${i.value}-group`),title:ce},[B?B(k):U!==void 0?U:V])}const{disabled:q,title:K,children:X,style:re,class:ee,className:G}=k,le=hV(k,["disabled","title","children","style","class","className"]),ue=pt(le,P),me=v(H),Se=`${i.value}-option`,Q=ge(i.value,Se,ee,G,{[`${Se}-grouped`]:L,[`${Se}-active`]:F===N&&!q,[`${Se}-disabled`]:q,[`${Se}-selected`]:me}),te=h(I),de=!D||typeof D=="function"||me,Y=typeof te=="number"?te:te||H;let ae=_C(Y)?Y.toString():void 0;return K!==void 0&&(ae=K),C("div",j(j({},ue),{},{"aria-selected":me,class:Q,title:ae,onMousemove:ce=>{le.onMousemove&&le.onMousemove(ce),!(F===N||q)&&p(N)},onClick:ce=>{q||m(H),le.onClick&&le.onClick(ce)},style:re}),[C("div",{class:`${Se}-content`},[B?B(k):Y]),hn(D)||me,de&&C(Yf,{class:`${i.value}-option-state`,customizeIcon:D,customizeIconProps:{isSelected:me}},{default:()=>[me?"✓":null]})])}})])}}}),yV=gV;var bV=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function xV(e){const t=e,{key:n,children:r}=t,o=t.props,{value:a,disabled:i}=o,l=bV(o,["value","disabled"]),s=r==null?void 0:r.default;return E({key:n,value:a!==void 0?a:n,children:s,disabled:i||i===""},l)}function TN(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Lt(e).map((r,o)=>{var a;if(!hn(r)||!r.type)return null;const{type:{isSelectOptGroup:i},key:l,children:s,props:u}=r;if(t||!i)return xV(r);const c=s&&s.default?s.default():void 0,d=(u==null?void 0:u.label)||((a=s.label)===null||a===void 0?void 0:a.call(s))||l;return E(E({key:`__RC_SELECT_GRP__${l===null?o:String(l)}__`},u),{label:d,options:TN(c||[])})}).filter(r=>r)}function wV(e,t,n){const r=pe(),o=pe(),a=pe(),i=pe([]);return Ne([e,t],()=>{e.value?i.value=cn(e.value).slice():i.value=TN(t.value)},{immediate:!0,deep:!0}),Je(()=>{const l=i.value,s=new Map,u=new Map,c=n.value;function d(f){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;for(let v=0;v<f.length;v+=1){const m=f[v];!m[c.options]||p?(s.set(m[c.value],m),u.set(m[c.label],m)):d(m[c.options],!0)}}d(l),r.value=l,o.value=s,a.value=u}),{options:r,valueOptions:o,labelOptions:a}}let BC=0;const SV=Co();function CV(){let e;return SV?(e=BC,BC+=1):e="TEST_OR_SSR",e}function Bb(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:be("");const t=`rc_select_${CV()}`;return e.value||t}function MN(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}function vh(e,t){return MN(e).join("").toUpperCase().includes(t)}const $V=(e,t,n,r,o)=>z(()=>{const a=n.value,i=o==null?void 0:o.value,l=r==null?void 0:r.value;if(!a||l===!1)return e.value;const{options:s,label:u,value:c}=t.value,d=[],f=typeof l=="function",p=a.toUpperCase(),v=f?l:(h,g)=>i?vh(g[i],p):g[s]?vh(g[u!=="children"?u:"label"],p):vh(g[c],p),m=f?h=>Lg(h):h=>h;return e.value.forEach(h=>{if(h[s]){if(v(a,m(h)))d.push(h);else{const x=h[s].filter(y=>v(a,m(y)));x.length&&d.push(E(E({},h),{[s]:x}))}return}v(a,m(h))&&d.push(h)}),d}),EV=(e,t)=>{const n=pe({values:new Map,options:new Map});return[z(()=>{const{values:a,options:i}=n.value,l=e.value.map(c=>{var d;return c.label===void 0?E(E({},c),{label:(d=a.get(c.value))===null||d===void 0?void 0:d.label}):c}),s=new Map,u=new Map;return l.forEach(c=>{s.set(c.value,c),u.set(c.value,t.value.get(c.value)||i.get(c.value))}),n.value.values=s,n.value.options=u,l}),a=>t.value.get(a)||n.value.options.get(a)]};function Zt(e,t){const{defaultValue:n,value:r=be()}=t||{};let o=typeof e=="function"?e():e;r.value!==void 0&&(o=xn(r)),n!==void 0&&(o=typeof n=="function"?n():n);const a=be(o),i=be(o);Je(()=>{let s=r.value!==void 0?r.value:a.value;t.postState&&(s=t.postState(s)),i.value=s});function l(s){const u=i.value;a.value=s,cn(i.value)!==s&&t.onChange&&t.onChange(s,u)}return Ne(r,()=>{a.value=r.value}),[i,l]}function It(e){const t=typeof e=="function"?e():e,n=be(t);function r(o){n.value=o}return[n,r]}const DV=["inputValue"];function NN(){return E(E({},Om()),{prefixCls:String,id:String,backfill:{type:Boolean,default:void 0},fieldNames:Object,inputValue:String,searchValue:String,onSearch:Function,autoClearSearchValue:{type:Boolean,default:void 0},onSelect:Function,onDeselect:Function,filterOption:{type:[Boolean,Function],default:void 0},filterSort:Function,optionFilterProp:String,optionLabelProp:String,options:Array,defaultActiveFirstOption:{type:Boolean,default:void 0},virtual:{type:Boolean,default:void 0},listHeight:Number,listItemHeight:Number,menuItemSelectedIcon:Z.any,mode:String,labelInValue:{type:Boolean,default:void 0},value:Z.any,defaultValue:Z.any,onChange:Function,children:Array})}function AV(e){return!e||typeof e!="object"}const OV=he({compatConfig:{MODE:3},name:"Select",inheritAttrs:!1,props:at(NN(),{prefixCls:"vc-select",autoClearSearchValue:!0,listHeight:200,listItemHeight:20,dropdownMatchSelectWidth:!0}),setup(e,t){let{expose:n,attrs:r,slots:o}=t;const a=Bb(Ye(e,"id")),i=z(()=>$N(e.mode)),l=z(()=>!!(!e.options&&e.children)),s=z(()=>e.filterOption===void 0&&e.mode==="combobox"?!1:e.filterOption),u=z(()=>GM(e.fieldNames,l.value)),[c,d]=Zt("",{value:z(()=>e.searchValue!==void 0?e.searchValue:e.inputValue),postState:ee=>ee||""}),f=wV(Ye(e,"options"),Ye(e,"children"),u),{valueOptions:p,labelOptions:v,options:m}=f,h=ee=>MN(ee).map(le=>{var ue,me;let Se,Q,te,de;AV(le)?Se=le:(te=le.key,Q=le.label,Se=(ue=le.value)!==null&&ue!==void 0?ue:te);const Y=p.value.get(Se);return Y&&(Q===void 0&&(Q=Y==null?void 0:Y[e.optionLabelProp||u.value.label]),te===void 0&&(te=(me=Y==null?void 0:Y.key)!==null&&me!==void 0?me:Se),de=Y==null?void 0:Y.disabled),{label:Q,value:Se,key:te,disabled:de,option:Y}}),[g,x]=Zt(e.defaultValue,{value:Ye(e,"value")}),y=z(()=>{var ee;const G=h(g.value);return e.mode==="combobox"&&!(!((ee=G[0])===null||ee===void 0)&&ee.value)?[]:G}),[w,b]=EV(y,p),S=z(()=>{if(!e.mode&&w.value.length===1){const ee=w.value[0];if(ee.value===null&&(ee.label===null||ee.label===void 0))return[]}return w.value.map(ee=>{var G;return E(E({},ee),{label:(G=typeof ee.label=="function"?ee.label():ee.label)!==null&&G!==void 0?G:ee.value})})}),$=z(()=>new Set(w.value.map(ee=>ee.value)));Je(()=>{var ee;if(e.mode==="combobox"){const G=(ee=w.value[0])===null||ee===void 0?void 0:ee.value;G!=null&&d(String(G))}},{flush:"post"});const D=(ee,G)=>{const le=G??ee;return{[u.value.value]:ee,[u.value.label]:le}},O=pe();Je(()=>{if(e.mode!=="tags"){O.value=m.value;return}const ee=m.value.slice(),G=le=>p.value.has(le);[...w.value].sort((le,ue)=>le.value<ue.value?-1:1).forEach(le=>{const ue=le.value;G(ue)||ee.push(D(ue,le.label))}),O.value=ee});const A=$V(O,u,c,s,Ye(e,"optionFilterProp")),T=z(()=>e.mode!=="tags"||!c.value||A.value.some(ee=>ee[e.optionFilterProp||"value"]===c.value)?A.value:[D(c.value),...A.value]),M=z(()=>e.filterSort?[...T.value].sort((ee,G)=>e.filterSort(ee,G)):T.value),B=z(()=>Lz(M.value,{fieldNames:u.value,childrenAsData:l.value})),F=ee=>{const G=h(ee);if(x(G),e.onChange&&(G.length!==w.value.length||G.some((le,ue)=>{var me;return((me=w.value[ue])===null||me===void 0?void 0:me.value)!==(le==null?void 0:le.value)}))){const le=e.labelInValue?G.map(me=>E(E({},me),{originLabel:me.label,label:typeof me.label=="function"?me.label():me.label})):G.map(me=>me.value),ue=G.map(me=>Lg(b(me.value)));e.onChange(i.value?le:le[0],i.value?ue:ue[0])}},[P,I]=It(null),[N,R]=It(0),_=z(()=>e.defaultActiveFirstOption!==void 0?e.defaultActiveFirstOption:e.mode!=="combobox"),L=function(ee,G){let{source:le="keyboard"}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};R(G),e.backfill&&e.mode==="combobox"&&ee!==null&&le==="keyboard"&&I(String(ee))},k=(ee,G)=>{const le=()=>{var ue;const me=b(ee),Se=me==null?void 0:me[u.value.label];return[e.labelInValue?{label:typeof Se=="function"?Se():Se,originLabel:Se,value:ee,key:(ue=me==null?void 0:me.key)!==null&&ue!==void 0?ue:ee}:ee,Lg(me)]};if(G&&e.onSelect){const[ue,me]=le();e.onSelect(ue,me)}else if(!G&&e.onDeselect){const[ue,me]=le();e.onDeselect(ue,me)}},H=(ee,G)=>{let le;const ue=i.value?G.selected:!0;ue?le=i.value?[...w.value,ee]:[ee]:le=w.value.filter(me=>me.value!==ee),F(le),k(ee,ue),e.mode==="combobox"?I(""):(!i.value||e.autoClearSearchValue)&&(d(""),I(""))},V=(ee,G)=>{F(ee),(G.type==="remove"||G.type==="clear")&&G.values.forEach(le=>{k(le.value,!1)})},U=(ee,G)=>{var le;if(d(ee),I(null),G.source==="submit"){const ue=(ee||"").trim();if(ue){const me=Array.from(new Set([...$.value,ue]));F(me),k(ue,!0),d("")}return}G.source!=="blur"&&(e.mode==="combobox"&&F(ee),(le=e.onSearch)===null||le===void 0||le.call(e,ee))},q=ee=>{let G=ee;e.mode!=="tags"&&(G=ee.map(ue=>{const me=v.value.get(ue);return me==null?void 0:me.value}).filter(ue=>ue!==void 0));const le=Array.from(new Set([...$.value,...G]));F(le),le.forEach(ue=>{k(ue,!0)})},K=z(()=>e.virtual!==!1&&e.dropdownMatchSelectWidth!==!1);mV(Lu(E(E({},f),{flattenOptions:B,onActiveValue:L,defaultActiveFirstOption:_,onSelect:H,menuItemSelectedIcon:Ye(e,"menuItemSelectedIcon"),rawValues:$,fieldNames:u,virtual:K,listHeight:Ye(e,"listHeight"),listItemHeight:Ye(e,"listItemHeight"),childrenAsData:l})));const X=be();n({focus(){var ee;(ee=X.value)===null||ee===void 0||ee.focus()},blur(){var ee;(ee=X.value)===null||ee===void 0||ee.blur()},scrollTo(ee){var G;(G=X.value)===null||G===void 0||G.scrollTo(ee)}});const re=z(()=>pt(e,["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"]));return()=>C(Ib,j(j(j({},re.value),r),{},{id:a,prefixCls:e.prefixCls,ref:X,omitDomProps:DV,mode:e.mode,displayValues:S.value,onDisplayValuesChange:V,searchValue:c.value,onSearch:U,onSearchSplit:q,dropdownMatchSelectWidth:e.dropdownMatchSelectWidth,OptionList:yV,emptyOptions:!B.value.length,activeValue:P.value,activeDescendantId:`${a}_list_${N.value}`}),o)}}),Fb=()=>null;Fb.isSelectOption=!0;Fb.displayName="ASelectOption";const TV=Fb,Rb=()=>null;Rb.isSelectOptGroup=!0;Rb.displayName="ASelectOptGroup";const MV=Rb;var NV={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"};const PV=NV;var FC=[],Js=[],IV="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function _V(){var e=document.createElement("style");return e.setAttribute("type","text/css"),e}function BV(e,t){if(t=t||{},e===void 0)throw new Error(IV);var n=t.prepend===!0?"prepend":"append",r=t.container!==void 0?t.container:document.querySelector("head"),o=FC.indexOf(r);o===-1&&(o=FC.push(r)-1,Js[o]={});var a;return Js[o]!==void 0&&Js[o][n]!==void 0?a=Js[o][n]:(a=Js[o][n]=_V(),n==="prepend"?r.insertBefore(a,r.childNodes[0]):r.appendChild(a)),e.charCodeAt(0)===65279&&(e=e.substr(1,e.length)),a.styleSheet?a.styleSheet.cssText+=e:a.textContent+=e,a}function RC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){FV(e,o,n[o])})}return e}function FV(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zC(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function Xg(e,t,n){return n?Eg(e.tag,RC({key:t},n,e.attrs),(e.children||[]).map(function(r,o){return Xg(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):Eg(e.tag,RC({key:t},e.attrs),(e.children||[]).map(function(r,o){return Xg(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function PN(e){return ga(e)[0]}function IN(e){return e?Array.isArray(e)?e:[e]:[]}var RV={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},zV=`
- .anticon {
- display: inline-block;
- 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);
- }
- }
- `,LC=!1,_N=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:zV;ht(function(){LC||(typeof window<"u"&&window.document&&window.document.documentElement&&BV(t,{prepend:!0}),LC=!0)})},LV=["icon","primaryColor","secondaryColor"];function kV(e,t){if(e==null)return{};var n=HV(e,t),r,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function HV(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Gd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){jV(e,o,n[o])})}return e}function jV(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gu={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function VV(e){var t=e.primaryColor,n=e.secondaryColor;gu.primaryColor=t,gu.secondaryColor=n||PN(t),gu.calculated=!!n}function WV(){return Gd({},gu)}var Os=function(t,n){var r=Gd({},t,n.attrs),o=r.icon,a=r.primaryColor,i=r.secondaryColor,l=kV(r,LV),s=gu;if(a&&(s={primaryColor:a,secondaryColor:i||PN(a)}),_N(),zC(o),!zC(o))return null;var u=o;return u&&typeof u.icon=="function"&&(u=Gd({},u,{icon:u.icon(s.primaryColor,s.secondaryColor)})),Xg(u.icon,"svg-".concat(u.name),Gd({},l,{"data-icon":u.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}))};Os.props={icon:Object,primaryColor:String,secondaryColor:String,focusable:String};Os.inheritAttrs=!1;Os.displayName="IconBase";Os.getTwoToneColors=WV;Os.setTwoToneColors=VV;const zb=Os;function UV(e,t){return XV(e)||GV(e,t)||qV(e,t)||KV()}function KV(){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 qV(e,t){if(e){if(typeof e=="string")return kC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return kC(e,t)}}function kC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function GV(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,a=!1,i,l;try{for(n=n.call(e);!(o=(i=n.next()).done)&&(r.push(i.value),!(t&&r.length===t));o=!0);}catch(s){a=!0,l=s}finally{try{!o&&n.return!=null&&n.return()}finally{if(a)throw l}}return r}}function XV(e){if(Array.isArray(e))return e}function BN(e){var t=IN(e),n=UV(t,2),r=n[0],o=n[1];return zb.setTwoToneColors({primaryColor:r,secondaryColor:o})}function YV(){var e=zb.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var ZV=["class","icon","spin","rotate","tabindex","twoToneColor","onClick"];function JV(e,t){return nW(e)||tW(e,t)||eW(e,t)||QV()}function QV(){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 eW(e,t){if(e){if(typeof e=="string")return HC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return HC(e,t)}}function HC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function tW(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,a=!1,i,l;try{for(n=n.call(e);!(o=(i=n.next()).done)&&(r.push(i.value),!(t&&r.length===t));o=!0);}catch(s){a=!0,l=s}finally{try{!o&&n.return!=null&&n.return()}finally{if(a)throw l}}return r}}function nW(e){if(Array.isArray(e))return e}function jC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){Yg(e,o,n[o])})}return e}function Yg(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rW(e,t){if(e==null)return{};var n=oW(e,t),r,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function oW(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}BN("#1890ff");var Ts=function(t,n){var r,o=jC({},t,n.attrs),a=o.class,i=o.icon,l=o.spin,s=o.rotate,u=o.tabindex,c=o.twoToneColor,d=o.onClick,f=rW(o,ZV),p=(r={anticon:!0},Yg(r,"anticon-".concat(i.name),Boolean(i.name)),Yg(r,a,a),r),v=l===""||l||i.name==="loading"?"anticon-spin":"",m=u;m===void 0&&d&&(m=-1,f.tabindex=m);var h=s?{msTransform:"rotate(".concat(s,"deg)"),transform:"rotate(".concat(s,"deg)")}:void 0,g=IN(c),x=JV(g,2),y=x[0],w=x[1];return C("span",jC({role:"img","aria-label":i.name},f,{onClick:d,class:p}),[C(zb,{class:v,icon:i,primaryColor:y,secondaryColor:w,style:h},null)])};Ts.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:String};Ts.displayName="AntdIcon";Ts.inheritAttrs=!1;Ts.getTwoToneColor=YV;Ts.setTwoToneColor=BN;const vt=Ts;function VC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){aW(e,o,n[o])})}return e}function aW(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Lb=function(t,n){var r=VC({},t,n.attrs);return C(vt,VC({},r,{icon:PV}),null)};Lb.displayName="DownOutlined";Lb.inheritAttrs=!1;const mc=Lb;var iW={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"};const lW=iW;function WC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){sW(e,o,n[o])})}return e}function sW(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var kb=function(t,n){var r=WC({},t,n.attrs);return C(vt,WC({},r,{icon:lW}),null)};kb.displayName="LoadingOutlined";kb.inheritAttrs=!1;const Lr=kb;var uW={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};const cW=uW;function UC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){dW(e,o,n[o])})}return e}function dW(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Hb=function(t,n){var r=UC({},t,n.attrs);return C(vt,UC({},r,{icon:cW}),null)};Hb.displayName="CheckOutlined";Hb.inheritAttrs=!1;const Mm=Hb;var fW={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"}}]},name:"close",theme:"outlined"};const pW=fW;function KC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){mW(e,o,n[o])})}return e}function mW(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var jb=function(t,n){var r=KC({},t,n.attrs);return C(vt,KC({},r,{icon:pW}),null)};jb.displayName="CloseOutlined";jb.inheritAttrs=!1;const Hr=jb;var vW={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 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 01-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z"}}]},name:"close-circle",theme:"filled"};const hW=vW;function qC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){gW(e,o,n[o])})}return e}function gW(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Vb=function(t,n){var r=qC({},t,n.attrs);return C(vt,qC({},r,{icon:hW}),null)};Vb.displayName="CloseCircleFilled";Vb.inheritAttrs=!1;const $r=Vb;var yW={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};const bW=yW;function GC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){xW(e,o,n[o])})}return e}function xW(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Wb=function(t,n){var r=GC({},t,n.attrs);return C(vt,GC({},r,{icon:bW}),null)};Wb.displayName="SearchOutlined";Wb.inheritAttrs=!1;const Nm=Wb;function Ub(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{loading:n,multiple:r,prefixCls:o,hasFeedback:a,feedbackIcon:i,showArrow:l}=e,s=e.suffixIcon||t.suffixIcon&&t.suffixIcon(),u=e.clearIcon||t.clearIcon&&t.clearIcon(),c=e.menuItemSelectedIcon||t.menuItemSelectedIcon&&t.menuItemSelectedIcon(),d=e.removeIcon||t.removeIcon&&t.removeIcon(),f=u??C($r,null,null),p=g=>C(dt,null,[l!==!1&&g,a&&i]);let v=null;if(s!==void 0)v=p(s);else if(n)v=p(C(Lr,{spin:!0},null));else{const g=`${o}-suffix`;v=x=>{let{open:y,showSearch:w}=x;return p(y&&w?C(Nm,{class:g},null):C(mc,{class:g},null))}}let m=null;c!==void 0?m=c:r?m=C(Mm,null,null):m=null;let h=null;return d!==void 0?h=d:h=C(Hr,null,null),{clearIcon:f,suffixIcon:v,itemIcon:m,removeIcon:h}}function Kb(e){const t=Symbol("contextKey");return{useProvide:(o,a)=>{const i=_t({});return it(t,i),Je(()=>{E(i,o,a||{})}),i},useInject:()=>lt(t,e)||{}}}const Zf=Symbol("ContextProps"),Jf=Symbol("InternalContextProps"),wW=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:z(()=>!0);const n=be(new Map),r=(a,i)=>{n.value.set(a,i),n.value=new Map(n.value)},o=a=>{n.value.delete(a),n.value=new Map(n.value)};Kn(),Ne([t,n],()=>{}),it(Zf,e),it(Jf,{addFormItemField:r,removeFormItemField:o})},Zg={id:z(()=>{}),onFieldBlur:()=>{},onFieldChange:()=>{},clearValidate:()=>{}},Jg={addFormItemField:()=>{},removeFormItemField:()=>{}},Cn=()=>{const e=lt(Jf,Jg),t=Symbol("FormItemFieldKey"),n=Kn();return e.addFormItemField(t,n.type),st(()=>{e.removeFormItemField(t)}),it(Jf,Jg),it(Zf,Zg),lt(Zf,Zg)},Qf=he({compatConfig:{MODE:3},name:"AFormItemRest",setup(e,t){let{slots:n}=t;return it(Jf,Jg),it(Zf,Zg),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}}),Bn=Kb({}),ep=he({name:"NoFormStatus",setup(e,t){let{slots:n}=t;return Bn.useProvide({}),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}});function er(e,t,n){return ge({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const $o=(e,t)=>t||e,SW=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},CW=SW,$W=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-space-item`]:{"&:empty":{display:"none"}}}}},FN=nt("Space",e=>[$W(e),CW(e)]);var EW="[object Symbol]";function Pm(e){return typeof e=="symbol"||go(e)&&ui(e)==EW}function Im(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var DW=1/0,XC=Jr?Jr.prototype:void 0,YC=XC?XC.toString:void 0;function RN(e){if(typeof e=="string")return e;if(zr(e))return Im(e,RN)+"";if(Pm(e))return YC?YC.call(e):"";var t=e+"";return t=="0"&&1/e==-DW?"-0":t}var AW=/\s/;function OW(e){for(var t=e.length;t--&&AW.test(e.charAt(t)););return t}var TW=/^\s+/;function MW(e){return e&&e.slice(0,OW(e)+1).replace(TW,"")}var ZC=0/0,NW=/^[-+]0x[0-9a-f]+$/i,PW=/^0b[01]+$/i,IW=/^0o[0-7]+$/i,_W=parseInt;function Qg(e){if(typeof e=="number")return e;if(Pm(e))return ZC;if(bo(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=bo(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=MW(e);var n=PW.test(e);return n||IW.test(e)?_W(e.slice(2),n?2:8):NW.test(e)?ZC:+e}var JC=1/0,BW=17976931348623157e292;function FW(e){if(!e)return e===0?e:0;if(e=Qg(e),e===JC||e===-JC){var t=e<0?-1:1;return t*BW}return e===e?e:0}function RW(e){var t=FW(e),n=t%1;return t===t?n?t-n:t:0}function qb(e){return e}var QC=Object.create,zW=function(){function e(){}return function(t){if(!bo(t))return{};if(QC)return QC(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const LW=zW;function kW(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function HW(){}function jW(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var VW=800,WW=16,UW=Date.now;function KW(e){var t=0,n=0;return function(){var r=UW(),o=WW-(r-n);if(n=r,o>0){if(++t>=VW)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function qW(e){return function(){return e}}var GW=function(){try{var e=nl(Object,"defineProperty");return e({},"",{}),e}catch{}}();const tp=GW;var XW=tp?function(e,t){return tp(e,"toString",{configurable:!0,enumerable:!1,value:qW(t),writable:!0})}:qb;const YW=XW;var ZW=KW(YW);const zN=ZW;function JW(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function LN(e,t,n,r){for(var o=e.length,a=n+(r?1:-1);r?a--:++a<o;)if(t(e[a],a,e))return a;return-1}function QW(e){return e!==e}function eU(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}function tU(e,t,n){return t===t?eU(e,t,n):LN(e,QW,n)}function kN(e,t){var n=e==null?0:e.length;return!!n&&tU(e,t,0)>-1}function HN(e,t,n){t=="__proto__"&&tp?tp(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var nU=Object.prototype,rU=nU.hasOwnProperty;function Gb(e,t,n){var r=e[t];(!(rU.call(e,t)&&wb(r,n))||n===void 0&&!(t in e))&&HN(e,t,n)}function vc(e,t,n,r){var o=!n;n||(n={});for(var a=-1,i=t.length;++a<i;){var l=t[a],s=r?r(n[l],e[l],l,n,e):void 0;s===void 0&&(s=e[l]),o?HN(n,l,s):Gb(n,l,s)}return n}var e$=Math.max;function jN(e,t,n){return t=e$(t===void 0?e.length-1:t,0),function(){for(var r=arguments,o=-1,a=e$(r.length-t,0),i=Array(a);++o<a;)i[o]=r[t+o];o=-1;for(var l=Array(t+1);++o<t;)l[o]=r[o];return l[t]=n(i),kW(e,this,l)}}function oU(e,t){return zN(jN(e,t,qb),e+"")}function aU(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var iU=Object.prototype,lU=iU.hasOwnProperty;function sU(e){if(!bo(e))return aU(e);var t=Sm(e),n=[];for(var r in e)r=="constructor"&&(t||!lU.call(e,r))||n.push(r);return n}function Xb(e){return Es(e)?pN(e,!0):sU(e)}var uU=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,cU=/^\w*$/;function Yb(e,t){if(zr(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Pm(e)?!0:cU.test(e)||!uU.test(e)||t!=null&&e in Object(t)}var dU="Expected a function";function Zb(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(dU);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i)||a,i};return n.cache=new(Zb.Cache||Da),n}Zb.Cache=Da;var fU=500;function pU(e){var t=Zb(e,function(r){return n.size===fU&&n.clear(),r}),n=t.cache;return t}var mU=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,vU=/\\(\\)?/g,hU=pU(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(mU,function(n,r,o,a){t.push(o?a.replace(vU,"$1"):r||n)}),t});const gU=hU;function yU(e){return e==null?"":RN(e)}function Ms(e,t){return zr(e)?e:Yb(e,t)?[e]:gU(yU(e))}var bU=1/0;function Ns(e){if(typeof e=="string"||Pm(e))return e;var t=e+"";return t=="0"&&1/e==-bU?"-0":t}function _m(e,t){t=Ms(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Ns(t[n++])];return n&&n==r?e:void 0}function xU(e,t,n){var r=e==null?void 0:_m(e,t);return r===void 0?n:r}var t$=Jr?Jr.isConcatSpreadable:void 0;function wU(e){return zr(e)||xm(e)||!!(t$&&e&&e[t$])}function VN(e,t,n,r,o){var a=-1,i=e.length;for(n||(n=wU),o||(o=[]);++a<i;){var l=e[a];t>0&&n(l)?t>1?VN(l,t-1,n,r,o):Cb(o,l):r||(o[o.length]=l)}return o}function SU(e){var t=e==null?0:e.length;return t?VN(e,1):[]}function WN(e){return zN(jN(e,void 0,SU),e+"")}function CU(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(o);++r<o;)a[r]=e[r+t];return a}function $U(e,t){return e&&vc(t,Ds(t),e)}function EU(e,t){return e&&vc(t,Xb(t),e)}var UN=typeof exports=="object"&&exports&&!exports.nodeType&&exports,n$=UN&&typeof module=="object"&&module&&!module.nodeType&&module,DU=n$&&n$.exports===UN,r$=DU?So.Buffer:void 0,o$=r$?r$.allocUnsafe:void 0;function AU(e,t){if(t)return e.slice();var n=e.length,r=o$?o$(n):new e.constructor(n);return e.copy(r),r}function OU(e,t){return vc(e,$b(e),t)}var TU=Object.getOwnPropertySymbols,MU=TU?function(e){for(var t=[];e;)Cb(t,$b(e)),e=qy(e);return t}:uN;const KN=MU;function NU(e,t){return vc(e,KN(e),t)}function qN(e){return sN(e,Xb,KN)}var PU=Object.prototype,IU=PU.hasOwnProperty;function _U(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&IU.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function Jb(e){var t=new e.constructor(e.byteLength);return new Gf(t).set(new Gf(e)),t}function BU(e,t){var n=t?Jb(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var FU=/\w*$/;function RU(e){var t=new e.constructor(e.source,FU.exec(e));return t.lastIndex=e.lastIndex,t}var a$=Jr?Jr.prototype:void 0,i$=a$?a$.valueOf:void 0;function zU(e){return i$?Object(i$.call(e)):{}}function LU(e,t){var n=t?Jb(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var kU="[object Boolean]",HU="[object Date]",jU="[object Map]",VU="[object Number]",WU="[object RegExp]",UU="[object Set]",KU="[object String]",qU="[object Symbol]",GU="[object ArrayBuffer]",XU="[object DataView]",YU="[object Float32Array]",ZU="[object Float64Array]",JU="[object Int8Array]",QU="[object Int16Array]",eK="[object Int32Array]",tK="[object Uint8Array]",nK="[object Uint8ClampedArray]",rK="[object Uint16Array]",oK="[object Uint32Array]";function aK(e,t,n){var r=e.constructor;switch(t){case GU:return Jb(e);case kU:case HU:return new r(+e);case XU:return BU(e,n);case YU:case ZU:case JU:case QU:case eK:case tK:case nK:case rK:case oK:return LU(e,n);case jU:return new r;case VU:case KU:return new r(e);case WU:return RU(e);case UU:return new r;case qU:return zU(e)}}function iK(e){return typeof e.constructor=="function"&&!Sm(e)?LW(qy(e)):{}}var lK="[object Map]";function sK(e){return go(e)&&ps(e)==lK}var l$=fs&&fs.isMap,uK=l$?wm(l$):sK;const cK=uK;var dK="[object Set]";function fK(e){return go(e)&&ps(e)==dK}var s$=fs&&fs.isSet,pK=s$?wm(s$):fK;const mK=pK;var vK=1,hK=2,gK=4,GN="[object Arguments]",yK="[object Array]",bK="[object Boolean]",xK="[object Date]",wK="[object Error]",XN="[object Function]",SK="[object GeneratorFunction]",CK="[object Map]",$K="[object Number]",YN="[object Object]",EK="[object RegExp]",DK="[object Set]",AK="[object String]",OK="[object Symbol]",TK="[object WeakMap]",MK="[object ArrayBuffer]",NK="[object DataView]",PK="[object Float32Array]",IK="[object Float64Array]",_K="[object Int8Array]",BK="[object Int16Array]",FK="[object Int32Array]",RK="[object Uint8Array]",zK="[object Uint8ClampedArray]",LK="[object Uint16Array]",kK="[object Uint32Array]",on={};on[GN]=on[yK]=on[MK]=on[NK]=on[bK]=on[xK]=on[PK]=on[IK]=on[_K]=on[BK]=on[FK]=on[CK]=on[$K]=on[YN]=on[EK]=on[DK]=on[AK]=on[OK]=on[RK]=on[zK]=on[LK]=on[kK]=!0;on[wK]=on[XN]=on[TK]=!1;function yu(e,t,n,r,o,a){var i,l=t&vK,s=t&hK,u=t&gK;if(n&&(i=o?n(e,r,o,a):n(e)),i!==void 0)return i;if(!bo(e))return e;var c=zr(e);if(c){if(i=_U(e),!l)return jW(e,i)}else{var d=ps(e),f=d==XN||d==SK;if(Wu(e))return AU(e,l);if(d==YN||d==GN||f&&!o){if(i=s||f?{}:iK(e),!l)return s?NU(e,EU(i,e)):OU(e,$U(i,e))}else{if(!on[d])return o?e:{};i=aK(e,d,l)}}a||(a=new Ro);var p=a.get(e);if(p)return p;a.set(e,i),mK(e)?e.forEach(function(h){i.add(yu(h,t,n,h,e,a))}):cK(e)&&e.forEach(function(h,g){i.set(g,yu(h,t,n,g,e,a))});var v=u?s?qN:Wg:s?Xb:Ds,m=c?void 0:v(e);return JW(m||e,function(h,g){m&&(g=h,h=e[g]),Gb(i,g,yu(h,t,n,g,e,a))}),i}var HK=1,jK=4;function Xd(e){return yu(e,HK|jK)}var VK=1,WK=2;function UK(e,t,n,r){var o=n.length,a=o,i=!r;if(e==null)return!a;for(e=Object(e);o--;){var l=n[o];if(i&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++o<a;){l=n[o];var s=l[0],u=e[s],c=l[1];if(i&&l[2]){if(u===void 0&&!(s in e))return!1}else{var d=new Ro;if(r)var f=r(u,c,s,e,t,d);if(!(f===void 0?Cm(c,u,VK|WK,r,d):f))return!1}}return!0}function ZN(e){return e===e&&!bo(e)}function KK(e){for(var t=Ds(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,ZN(o)]}return t}function JN(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function qK(e){var t=KK(e);return t.length==1&&t[0][2]?JN(t[0][0],t[0][1]):function(n){return n===e||UK(n,e,t)}}function GK(e,t){return e!=null&&t in Object(e)}function XK(e,t,n){t=Ms(t,e);for(var r=-1,o=t.length,a=!1;++r<o;){var i=Ns(t[r]);if(!(a=e!=null&&n(e,i)))break;e=e[i]}return a||++r!=o?a:(o=e==null?0:e.length,!!o&&Db(o)&&Eb(i,o)&&(zr(e)||xm(e)))}function QN(e,t){return e!=null&&XK(e,t,GK)}var YK=1,ZK=2;function JK(e,t){return Yb(e)&&ZN(t)?JN(Ns(e),t):function(n){var r=xU(n,e);return r===void 0&&r===t?QN(n,e):Cm(t,r,YK|ZK)}}function QK(e){return function(t){return t==null?void 0:t[e]}}function eq(e){return function(t){return _m(t,e)}}function tq(e){return Yb(e)?QK(Ns(e)):eq(e)}function Qb(e){return typeof e=="function"?e:e==null?qb:typeof e=="object"?zr(e)?JK(e[0],e[1]):qK(e):tq(e)}function nq(e,t,n,r){for(var o=-1,a=e==null?0:e.length;++o<a;){var i=e[o];t(r,i,n(i),e)}return r}function rq(e){return function(t,n,r){for(var o=-1,a=Object(t),i=r(t),l=i.length;l--;){var s=i[e?l:++o];if(n(a[s],s,a)===!1)break}return t}}var oq=rq();const aq=oq;function iq(e,t){return e&&aq(e,t,Ds)}function lq(e,t){return function(n,r){if(n==null)return n;if(!Es(n))return e(n,r);for(var o=n.length,a=t?o:-1,i=Object(n);(t?a--:++a<o)&&r(i[a],a,i)!==!1;);return n}}var sq=lq(iq);const uq=sq;function cq(e,t,n,r){return uq(e,function(o,a,i){t(r,o,n(o),i)}),r}function dq(e,t){return function(n,r){var o=zr(n)?nq:cq,a=t?t():{};return o(n,e,Qb(r),a)}}var fq=function(){return So.Date.now()};const hh=fq;var pq="Expected a function",mq=Math.max,vq=Math.min;function e1(e,t,n){var r,o,a,i,l,s,u=0,c=!1,d=!1,f=!0;if(typeof e!="function")throw new TypeError(pq);t=Qg(t)||0,bo(n)&&(c=!!n.leading,d="maxWait"in n,a=d?mq(Qg(n.maxWait)||0,t):a,f="trailing"in n?!!n.trailing:f);function p(S){var $=r,D=o;return r=o=void 0,u=S,i=e.apply(D,$),i}function v(S){return u=S,l=setTimeout(g,t),c?p(S):i}function m(S){var $=S-s,D=S-u,O=t-$;return d?vq(O,a-D):O}function h(S){var $=S-s,D=S-u;return s===void 0||$>=t||$<0||d&&D>=a}function g(){var S=hh();if(h(S))return x(S);l=setTimeout(g,m(S))}function x(S){return l=void 0,f&&r?p(S):(r=o=void 0,i)}function y(){l!==void 0&&clearTimeout(l),u=0,r=s=o=l=void 0}function w(){return l===void 0?i:x(hh())}function b(){var S=hh(),$=h(S);if(r=arguments,o=this,s=S,$){if(l===void 0)return v(s);if(d)return clearTimeout(l),l=setTimeout(g,t),p(s)}return l===void 0&&(l=setTimeout(g,t)),i}return b.cancel=y,b.flush=w,b}function hq(e){return go(e)&&Es(e)}function eP(e,t,n){for(var r=-1,o=e==null?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function gq(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function yq(e){return function(t,n,r){var o=Object(t);if(!Es(t)){var a=Qb(n);t=Ds(t),n=function(l){return a(o[l],l,o)}}var i=e(t,n,r);return i>-1?o[a?t[i]:i]:void 0}}var bq=Math.max;function xq(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var o=n==null?0:RW(n);return o<0&&(o=bq(r+o,0)),LN(e,Qb(t),o)}var wq=yq(xq);const Sq=wq;function Cq(e){for(var t=-1,n=e==null?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r}var $q=Math.min;function Eq(e,t,n){for(var r=n?eP:kN,o=e[0].length,a=e.length,i=a,l=Array(a),s=1/0,u=[];i--;){var c=e[i];i&&t&&(c=Im(c,wm(t))),s=$q(c.length,s),l[i]=!n&&(t||o>=120&&c.length>=120)?new ds(i&&c):void 0}c=e[0];var d=-1,f=l[0];e:for(;++d<o&&u.length<s;){var p=c[d],v=t?t(p):p;if(p=n||p!==0?p:0,!(f?qf(f,v):r(u,v,n))){for(i=a;--i;){var m=l[i];if(!(m?qf(m,v):r(e[i],v,n)))continue e}f&&f.push(v),u.push(p)}}return u}function Dq(e){return hq(e)?e:[]}var Aq=oU(function(e){var t=Im(e,Dq);return t.length&&t[0]===e[0]?Eq(t):[]});const Oq=Aq;function Tq(e,t){return t.length<2?e:_m(e,CU(t,0,-1))}var Mq="[object Map]",Nq="[object Set]",Pq=Object.prototype,Iq=Pq.hasOwnProperty;function tP(e){if(e==null)return!0;if(Es(e)&&(zr(e)||typeof e=="string"||typeof e.splice=="function"||Wu(e)||Ab(e)||xm(e)))return!e.length;var t=ps(e);if(t==Mq||t==Nq)return!e.size;if(Sm(e))return!mN(e).length;for(var n in e)if(Iq.call(e,n))return!1;return!0}var _q="[object Number]";function Bq(e){return typeof e=="number"||go(e)&&ui(e)==_q}function Fq(e,t){return t=Ms(t,e),e=Tq(e,t),e==null||delete e[Ns(gq(t))]}function Rq(e){return Gy(e)?void 0:e}var zq=1,Lq=2,kq=4,Hq=WN(function(e,t){var n={};if(e==null)return n;var r=!1;t=Im(t,function(a){return a=Ms(a,e),r||(r=a.length>1),a}),vc(e,qN(e),n),r&&(n=yu(n,zq|Lq|kq,Rq));for(var o=t.length;o--;)Fq(n,t[o]);return n});const jq=Hq;function Vq(e,t,n,r){if(!bo(e))return e;t=Ms(t,e);for(var o=-1,a=t.length,i=a-1,l=e;l!=null&&++o<a;){var s=Ns(t[o]),u=n;if(s==="__proto__"||s==="constructor"||s==="prototype")return e;if(o!=i){var c=l[s];u=r?r(c,s,l):void 0,u===void 0&&(u=bo(c)?c:Eb(t[o+1])?[]:{})}Gb(l,s,u),l=l[s]}return e}function Wq(e,t,n){for(var r=-1,o=t.length,a={};++r<o;){var i=t[r],l=_m(e,i);n(l,i)&&Vq(a,Ms(i,e),l)}return a}var Uq=dq(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});const Kq=Uq;function qq(e,t){return Wq(e,t,function(n,r){return QN(e,r)})}var Gq=WN(function(e,t){return e==null?{}:qq(e,t)});const nP=Gq;var Xq=1/0,Yq=Kl&&1/Sb(new Kl([,-0]))[1]==Xq?function(e){return new Kl(e)}:HW;const Zq=Yq;var Jq=200;function Qq(e,t,n){var r=-1,o=kN,a=e.length,i=!0,l=[],s=l;if(n)i=!1,o=eP;else if(a>=Jq){var u=t?null:Zq(e);if(u)return Sb(u);i=!1,o=qf,s=new ds}else s=t?[]:l;e:for(;++r<a;){var c=e[r],d=t?t(c):c;if(c=n||c!==0?c:0,i&&d===d){for(var f=s.length;f--;)if(s[f]===d)continue e;t&&s.push(d),l.push(c)}else o(s,d,n)||(s!==l&&s.push(d),l.push(c))}return l}function gh(e){return e&&e.length?Qq(e):[]}const eG=()=>({compactSize:String,compactDirection:Z.oneOf(Un("horizontal","vertical")).def("horizontal"),isFirstItem:Pe(),isLastItem:Pe()}),Bm=Kb(null),di=(e,t)=>{const n=Bm.useInject(),r=z(()=>{if(!n||tP(n))return"";const{compactDirection:o,isFirstItem:a,isLastItem:i}=n,l=o==="vertical"?"-vertical-":"-";return ge({[`${e.value}-compact${l}item`]:!0,[`${e.value}-compact${l}first-item`]:a,[`${e.value}-compact${l}last-item`]:i,[`${e.value}-compact${l}item-rtl`]:t.value==="rtl"})});return{compactSize:z(()=>n==null?void 0:n.compactSize),compactDirection:z(()=>n==null?void 0:n.compactDirection),compactItemClassnames:r}},Ku=he({name:"NoCompactStyle",setup(e,t){let{slots:n}=t;return Bm.useProvide(null),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}}),tG=()=>({prefixCls:String,size:{type:String},direction:Z.oneOf(Un("horizontal","vertical")).def("horizontal"),align:Z.oneOf(Un("start","end","center","baseline")),block:{type:Boolean,default:void 0}}),nG=he({name:"CompactItem",props:eG(),setup(e,t){let{slots:n}=t;return Bm.useProvide(e),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}}),rG=he({name:"ASpaceCompact",inheritAttrs:!1,props:tG(),setup(e,t){let{attrs:n,slots:r}=t;const{prefixCls:o,direction:a}=He("space-compact",e),i=Bm.useInject(),[l,s]=FN(o),u=z(()=>ge(o.value,s.value,{[`${o.value}-rtl`]:a.value==="rtl",[`${o.value}-block`]:e.block,[`${o.value}-vertical`]:e.direction==="vertical"}));return()=>{var c;const d=Lt(((c=r.default)===null||c===void 0?void 0:c.call(r))||[]);return d.length===0?null:l(C("div",j(j({},n),{},{class:[u.value,n.class]}),[d.map((f,p)=>{var v;const m=f&&f.key||`${o.value}-item-${p}`,h=!i||tP(i);return C(nG,{key:m,compactSize:(v=e.size)!==null&&v!==void 0?v:"middle",compactDirection:e.direction,isFirstItem:p===0&&(h||(i==null?void 0:i.isFirstItem)),isLastItem:p===d.length-1&&(h||(i==null?void 0:i.isLastItem))},{default:()=>[f]})})]))}}}),np=rG,oG=e=>({animationDuration:e,animationFillMode:"both"}),aG=e=>({animationDuration:e,animationFillMode:"both"}),hc=function(e,t,n,r){const a=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[`
- ${a}${e}-enter,
- ${a}${e}-appear
- `]:E(E({},oG(r)),{animationPlayState:"paused"}),[`${a}${e}-leave`]:E(E({},aG(r)),{animationPlayState:"paused"}),[`
- ${a}${e}-enter${e}-enter-active,
- ${a}${e}-appear${e}-appear-active
- `]:{animationName:t,animationPlayState:"running"},[`${a}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},iG=new ft("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),lG=new ft("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),t1=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return[hc(r,iG,lG,e.motionDurationMid,t),{[`
- ${o}${r}-enter,
- ${o}${r}-appear
- `]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]},sG=new ft("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),uG=new ft("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),cG=new ft("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),dG=new ft("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),fG=new ft("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),pG=new ft("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),mG=new ft("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),vG=new ft("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),hG={"move-up":{inKeyframes:mG,outKeyframes:vG},"move-down":{inKeyframes:sG,outKeyframes:uG},"move-left":{inKeyframes:cG,outKeyframes:dG},"move-right":{inKeyframes:fG,outKeyframes:pG}},ms=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=hG[t];return[hc(r,o,a,e.motionDurationMid),{[`
- ${r}-enter,
- ${r}-appear
- `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Fm=new ft("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Rm=new ft("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),zm=new ft("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Lm=new ft("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),gG=new ft("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),yG=new ft("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),bG=new ft("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),xG=new ft("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),wG={"slide-up":{inKeyframes:Fm,outKeyframes:Rm},"slide-down":{inKeyframes:zm,outKeyframes:Lm},"slide-left":{inKeyframes:gG,outKeyframes:yG},"slide-right":{inKeyframes:bG,outKeyframes:xG}},jo=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=wG[t];return[hc(r,o,a,e.motionDurationMid),{[`
- ${r}-enter,
- ${r}-appear
- `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},n1=new ft("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),SG=new ft("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),u$=new ft("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),c$=new ft("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),CG=new ft("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),$G=new ft("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),EG=new ft("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),DG=new ft("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),AG=new ft("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),OG=new ft("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),TG=new ft("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),MG=new ft("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),NG={zoom:{inKeyframes:n1,outKeyframes:SG},"zoom-big":{inKeyframes:u$,outKeyframes:c$},"zoom-big-fast":{inKeyframes:u$,outKeyframes:c$},"zoom-left":{inKeyframes:EG,outKeyframes:DG},"zoom-right":{inKeyframes:AG,outKeyframes:OG},"zoom-up":{inKeyframes:CG,outKeyframes:$G},"zoom-down":{inKeyframes:TG,outKeyframes:MG}},Ps=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=NG[t];return[hc(r,o,a,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
- ${r}-enter,
- ${r}-appear
- `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},PG=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`}}}),gc=PG,d$=e=>{const{controlPaddingHorizontal:t}=e;return{position:"relative",display:"block",minHeight:e.controlHeight,padding:`${(e.controlHeight-e.fontSize*e.lineHeight)/2}px ${t}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,boxSizing:"border-box"}},IG=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`;return[{[`${n}-dropdown`]:E(E({},rt(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`
- &${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-bottomLeft,
- &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-bottomLeft
- `]:{animationName:Fm},[`
- &${t}-slide-up-enter${t}-slide-up-enter-active${n}-dropdown-placement-topLeft,
- &${t}-slide-up-appear${t}-slide-up-appear-active${n}-dropdown-placement-topLeft
- `]:{animationName:zm},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-bottomLeft`]:{animationName:Rm},[`&${t}-slide-up-leave${t}-slide-up-leave-active${n}-dropdown-placement-topLeft`]:{animationName:Lm},"&-hidden":{display:"none"},"&-empty":{color:e.colorTextDisabled},[`${r}-empty`]:E(E({},d$(e)),{color:e.colorTextDisabled}),[`${r}`]:E(E({},d$(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":E({flex:"auto"},gn),"&-state":{flex:"none"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.controlItemBgHover},[`&-selected:not(${r}-option-disabled)`]:{color:e.colorText,fontWeight:e.fontWeightStrong,backgroundColor:e.controlItemBgActive,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},jo(e,"slide-up"),jo(e,"slide-down"),ms(e,"move-up"),ms(e,"move-down")]},_G=IG,bl=2;function rP(e){let{controlHeightSM:t,controlHeight:n,lineWidth:r}=e;const o=(n-t)/2-r,a=Math.ceil(o/2);return[o,a]}function yh(e,t){const{componentCls:n,iconCls:r}=e,o=`${n}-selection-overflow`,a=e.controlHeightSM,[i]=rP(e),l=t?`${n}-${t}`:"";return{[`${n}-multiple${l}`]:{fontSize:e.fontSize,[o]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${i-bl}px ${bl*2}px`,borderRadius:e.borderRadius,[`${n}-show-search&`]:{cursor:"text"},[`${n}-disabled&`]:{background:e.colorBgContainerDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${bl}px 0`,lineHeight:`${a}px`,content:'"\\a0"'}},[`
- &${n}-show-arrow ${n}-selector,
- &${n}-allow-clear ${n}-selector
- `]:{paddingInlineEnd:e.fontSizeIcon+e.controlPaddingHorizontal},[`${n}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:a,marginTop:bl,marginBottom:bl,lineHeight:`${a-e.lineWidth*2}px`,background:e.colorFillSecondary,border:`${e.lineWidth}px solid ${e.colorSplit}`,borderRadius:e.borderRadiusSM,cursor:"default",transition:`font-size ${e.motionDurationSlow}, line-height ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,userSelect:"none",marginInlineEnd:bl*2,paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS/2,[`${n}-disabled&`]:{color:e.colorTextDisabled,borderColor:e.colorBorder,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":E(E({},Qi()),{display:"inline-block",color:e.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:e.colorIconHover}})},[`${o}-item + ${o}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.inputPaddingHorizontalBase-i,[`
- &-input,
- &-mirror
- `]:{height:a,fontFamily:e.fontFamily,lineHeight:`${a}px`,transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}}}}function BG(e){const{componentCls:t}=e,n=qe(e,{controlHeight:e.controlHeightSM,controlHeightSM:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),[,r]=rP(e);return[yh(e),yh(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInlineStart:e.controlPaddingHorizontalSM-e.lineWidth,insetInlineEnd:"auto"},[`${t}-selection-search`]:{marginInlineStart:r}}},yh(qe(e,{fontSize:e.fontSizeLG,controlHeight:e.controlHeightLG,controlHeightSM:e.controlHeight,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius}),"lg")]}function bh(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,a=e.controlHeight-e.lineWidth*2,i=Math.ceil(e.fontSize*1.25),l=t?`${n}-${t}`:"";return{[`${n}-single${l}`]:{fontSize:e.fontSize,[`${n}-selector`]:E(E({},rt(e)),{display:"flex",borderRadius:o,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:r,bottom:0,"&-input":{width:"100%"}},[`
- ${n}-selection-item,
- ${n}-selection-placeholder
- `]:{padding:0,lineHeight:`${a}px`,transition:`all ${e.motionDurationSlow}`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${a}px`}},[`${n}-selection-item`]:{position:"relative",userSelect:"none"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:after`,`${n}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
- &${n}-show-arrow ${n}-selection-item,
- &${n}-show-arrow ${n}-selection-placeholder
- `]:{paddingInlineEnd:i},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:e.controlHeight,padding:`0 ${r}px`,[`${n}-selection-search-input`]:{height:a},"&:after":{lineHeight:`${a}px`}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${r}px`,"&:after":{display:"none"}}}}}}}function FG(e){const{componentCls:t}=e,n=e.controlPaddingHorizontalSM-e.lineWidth;return[bh(e),bh(qe(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${t}-selector`]:{padding:`0 ${n}px`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:n+e.fontSize*1.5},[`
- &${t}-show-arrow ${t}-selection-item,
- &${t}-show-arrow ${t}-selection-placeholder
- `]:{paddingInlineEnd:e.fontSize*1.5}}}},bh(qe(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}function RG(e,t,n){const{focusElCls:r,focus:o,borderElCls:a}=n,i=a?"> *":"",l=["hover",o?"focus":null,"active"].filter(Boolean).map(s=>`&:${s} ${i}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:-e.lineWidth},"&-item":E(E({[l]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${i}`]:{zIndex:0}})}}function zG(e,t,n){const{borderElCls:r}=n,o=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Is(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:E(E({},RG(e,r,t)),zG(n,r,t))}}const LG=e=>{const{componentCls:t}=e;return{position:"relative",backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${t}-disabled&`]:{color:e.colorTextDisabled,background:e.colorBgContainerDisabled,cursor:"not-allowed",[`${t}-multiple&`]:{background:e.colorBgContainerDisabled},input:{cursor:"not-allowed"}}}},xh=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:r,borderHoverColor:o,outlineColor:a,antCls:i}=t,l=n?{[`${r}-selector`]:{borderColor:o}}:{};return{[e]:{[`&:not(${r}-disabled):not(${r}-customize-input):not(${i}-pagination-size-changer)`]:E(E({},l),{[`${r}-focused& ${r}-selector`]:{borderColor:o,boxShadow:`0 0 0 ${t.controlOutlineWidth}px ${a}`,borderInlineEndWidth:`${t.controlLineWidth}px !important`,outline:0},[`&:hover ${r}-selector`]:{borderColor:o,borderInlineEndWidth:`${t.controlLineWidth}px !important`}})}}},kG=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},HG=e=>{const{componentCls:t,inputPaddingHorizontalBase:n,iconCls:r}=e;return{[t]:E(E({},rt(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${t}-customize-input) ${t}-selector`]:E(E({},LG(e)),kG(e)),[`${t}-selection-item`]:E({flex:1,fontWeight:"normal"},gn),[`${t}-selection-placeholder`]:E(E({},gn),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${t}-arrow`]:E(E({},Qi()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[r]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${t}-suffix)`]:{pointerEvents:"auto"}},[`${t}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:e.colorBgContainer,cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${t}-clear`]:{opacity:1}}}),[`${t}-has-feedback`]:{[`${t}-clear`]:{insetInlineEnd:n+e.fontSize+e.paddingXXS}}}},jG=e=>{const{componentCls:t}=e;return[{[t]:{[`&-borderless ${t}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${t}-in-form-item`]:{width:"100%"}}},HG(e),FG(e),BG(e),_G(e),{[`${t}-rtl`]:{direction:"rtl"}},xh(t,qe(e,{borderHoverColor:e.colorPrimaryHover,outlineColor:e.controlOutline})),xh(`${t}-status-error`,qe(e,{borderHoverColor:e.colorErrorHover,outlineColor:e.colorErrorOutline}),!0),xh(`${t}-status-warning`,qe(e,{borderHoverColor:e.colorWarningHover,outlineColor:e.colorWarningOutline}),!0),Is(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},r1=nt("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=qe(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.paddingSM-1});return[jG(r)]},e=>({zIndexPopup:e.zIndexPopupBase+50})),km=()=>E(E({},pt(NN(),["inputIcon","mode","getInputElement","getRawInputElement","backfill"])),{value:Xe([Array,Object,String,Number]),defaultValue:Xe([Array,Object,String,Number]),notFoundContent:Z.any,suffixIcon:Z.any,itemIcon:Z.any,size:Ue(),mode:Ue(),bordered:Pe(!0),transitionName:String,choiceTransitionName:Ue(""),popupClassName:String,dropdownClassName:String,placement:Ue(),status:Ue(),"onUpdate:value":Oe()}),f$="SECRET_COMBOBOX_MODE_DO_NOT_USE",Io=he({compatConfig:{MODE:3},name:"ASelect",Option:TV,OptGroup:MV,inheritAttrs:!1,props:at(km(),{listHeight:256,listItemHeight:24}),SECRET_COMBOBOX_MODE_DO_NOT_USE:f$,slots:Object,setup(e,t){let{attrs:n,emit:r,slots:o,expose:a}=t;const i=be(),l=Cn(),s=Bn.useInject(),u=z(()=>$o(s.status,e.status)),c=()=>{var H;(H=i.value)===null||H===void 0||H.focus()},d=()=>{var H;(H=i.value)===null||H===void 0||H.blur()},f=H=>{var V;(V=i.value)===null||V===void 0||V.scrollTo(H)},p=z(()=>{const{mode:H}=e;if(H!=="combobox")return H===f$?"combobox":H}),{prefixCls:v,direction:m,configProvider:h,renderEmpty:g,size:x,getPrefixCls:y,getPopupContainer:w,disabled:b,select:S}=He("select",e),{compactSize:$,compactItemClassnames:D}=di(v,m),O=z(()=>$.value||x.value),A=Fr(),T=z(()=>{var H;return(H=b.value)!==null&&H!==void 0?H:A.value}),[M,B]=r1(v),F=z(()=>y()),P=z(()=>e.placement!==void 0?e.placement:m.value==="rtl"?"bottomRight":"bottomLeft"),I=z(()=>xr(F.value,Tb(P.value),e.transitionName)),N=z(()=>ge({[`${v.value}-lg`]:O.value==="large",[`${v.value}-sm`]:O.value==="small",[`${v.value}-rtl`]:m.value==="rtl",[`${v.value}-borderless`]:!e.bordered,[`${v.value}-in-form-item`]:s.isFormItemInput},er(v.value,u.value,s.hasFeedback),D.value,B.value)),R=function(){for(var H=arguments.length,V=new Array(H),U=0;U<H;U++)V[U]=arguments[U];r("update:value",V[0]),r("change",...V),l.onFieldChange()},_=H=>{r("blur",H),l.onFieldBlur()};a({blur:d,focus:c,scrollTo:f});const L=z(()=>p.value==="multiple"||p.value==="tags"),k=z(()=>e.showArrow!==void 0?e.showArrow:e.loading||!(L.value||p.value==="combobox"));return()=>{var H,V,U,q;const{notFoundContent:K,listHeight:X=256,listItemHeight:re=24,popupClassName:ee,dropdownClassName:G,virtual:le,dropdownMatchSelectWidth:ue,id:me=l.id.value,placeholder:Se=(H=o.placeholder)===null||H===void 0?void 0:H.call(o),showArrow:Q}=e,{hasFeedback:te,feedbackIcon:de}=s;let Y;K!==void 0?Y=K:o.notFoundContent?Y=o.notFoundContent():p.value==="combobox"?Y=null:Y=(g==null?void 0:g("Select"))||C(ub,{componentName:"Select"},null);const{suffixIcon:ae,itemIcon:ce,removeIcon:Ce,clearIcon:ye}=Ub(E(E({},e),{multiple:L.value,prefixCls:v.value,hasFeedback:te,feedbackIcon:de,showArrow:k.value}),o),J=pt(e,["prefixCls","suffixIcon","itemIcon","removeIcon","clearIcon","size","bordered","status"]),ne=ge(ee||G,{[`${v.value}-dropdown-${m.value}`]:m.value==="rtl"},B.value);return M(C(OV,j(j(j({ref:i,virtual:le,dropdownMatchSelectWidth:ue},J),n),{},{showSearch:(V=e.showSearch)!==null&&V!==void 0?V:(U=S==null?void 0:S.value)===null||U===void 0?void 0:U.showSearch,placeholder:Se,listHeight:X,listItemHeight:re,mode:p.value,prefixCls:v.value,direction:m.value,inputIcon:ae,menuItemSelectedIcon:ce,removeIcon:Ce,clearIcon:ye,notFoundContent:Y,class:[N.value,n.class],getPopupContainer:w==null?void 0:w.value,dropdownClassName:ne,onChange:R,onBlur:_,id:me,dropdownRender:J.dropdownRender||o.dropdownRender,transitionName:I.value,children:(q=o.default)===null||q===void 0?void 0:q.call(o),tagRender:e.tagRender||o.tagRender,optionLabelRender:o.optionLabel,maxTagPlaceholder:e.maxTagPlaceholder||o.maxTagPlaceholder,showArrow:te||Q,disabled:T.value}),{option:o.option}))}}});Io.install=function(e){return e.component(Io.name,Io),e.component(Io.Option.displayName,Io.Option),e.component(Io.OptGroup.displayName,Io.OptGroup),e};const VG=Io.Option,WG=Io.OptGroup,xa=Io,o1=()=>null;o1.isSelectOption=!0;o1.displayName="AAutoCompleteOption";const Gl=o1,a1=()=>null;a1.isSelectOptGroup=!0;a1.displayName="AAutoCompleteOptGroup";const Yd=a1;function UG(e){var t,n;return((t=e==null?void 0:e.type)===null||t===void 0?void 0:t.isSelectOption)||((n=e==null?void 0:e.type)===null||n===void 0?void 0:n.isSelectOptGroup)}const KG=()=>E(E({},pt(km(),["loading","mode","optionLabelProp","labelInValue"])),{dataSource:Array,dropdownMenuStyle:{type:Object,default:void 0},dropdownMatchSelectWidth:{type:[Number,Boolean],default:!0},prefixCls:String,showSearch:{type:Boolean,default:void 0},transitionName:String,choiceTransitionName:{type:String,default:"zoom"},autofocus:{type:Boolean,default:void 0},backfill:{type:Boolean,default:void 0},filterOption:{type:[Boolean,Function],default:!1},defaultActiveFirstOption:{type:Boolean,default:!0},status:String}),qG=Gl,GG=Yd,wh=he({compatConfig:{MODE:3},name:"AAutoComplete",inheritAttrs:!1,props:KG(),slots:Object,setup(e,t){let{slots:n,attrs:r,expose:o}=t;Jt(),Jt(),Jt(!e.dropdownClassName);const a=be(),i=()=>{var c;const d=Lt((c=n.default)===null||c===void 0?void 0:c.call(n));return d.length?d[0]:void 0};o({focus:()=>{var c;(c=a.value)===null||c===void 0||c.focus()},blur:()=>{var c;(c=a.value)===null||c===void 0||c.blur()}});const{prefixCls:u}=He("select",e);return()=>{var c,d,f;const{size:p,dataSource:v,notFoundContent:m=(c=n.notFoundContent)===null||c===void 0?void 0:c.call(n)}=e;let h;const{class:g}=r,x={[g]:!!g,[`${u.value}-lg`]:p==="large",[`${u.value}-sm`]:p==="small",[`${u.value}-show-search`]:!0,[`${u.value}-auto-complete`]:!0};if(e.options===void 0){const w=((d=n.dataSource)===null||d===void 0?void 0:d.call(n))||((f=n.options)===null||f===void 0?void 0:f.call(n))||[];w.length&&UG(w[0])?h=w:h=v?v.map(b=>{if(hn(b))return b;switch(typeof b){case"string":return C(Gl,{key:b,value:b},{default:()=>[b]});case"object":return C(Gl,{key:b.value,value:b.value},{default:()=>[b.text]});default:throw new Error("AutoComplete[dataSource] only supports type `string[] | Object[]`.")}}):[]}const y=pt(E(E(E({},e),r),{mode:xa.SECRET_COMBOBOX_MODE_DO_NOT_USE,getInputElement:i,notFoundContent:m,class:x,popupClassName:e.popupClassName||e.dropdownClassName,ref:a}),["dataSource","loading"]);return C(xa,y,j({default:()=>[h]},pt(n,["default","dataSource","options"])))}}}),XG=E(wh,{Option:Gl,OptGroup:Yd,install(e){return e.component(wh.name,wh),e.component(Gl.displayName,Gl),e.component(Yd.displayName,Yd),e}});var YG={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"};const ZG=YG;function p$(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){JG(e,o,n[o])})}return e}function JG(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i1=function(t,n){var r=p$({},t,n.attrs);return C(vt,p$({},r,{icon:ZG}),null)};i1.displayName="CheckCircleOutlined";i1.inheritAttrs=!1;const oP=i1;var QG={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"};const eX=QG;function m$(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){tX(e,o,n[o])})}return e}function tX(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l1=function(t,n){var r=m$({},t,n.attrs);return C(vt,m$({},r,{icon:eX}),null)};l1.displayName="ExclamationCircleOutlined";l1.inheritAttrs=!1;const rp=l1;var nX={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"};const rX=nX;function v$(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){oX(e,o,n[o])})}return e}function oX(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s1=function(t,n){var r=v$({},t,n.attrs);return C(vt,v$({},r,{icon:rX}),null)};s1.displayName="InfoCircleOutlined";s1.inheritAttrs=!1;const aP=s1;var aX={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M685.4 354.8c0-4.4-3.6-8-8-8l-66 .3L512 465.6l-99.3-118.4-66.1-.3c-4.4 0-8 3.5-8 8 0 1.9.7 3.7 1.9 5.2l130.1 155L340.5 670a8.32 8.32 0 00-1.9 5.2c0 4.4 3.6 8 8 8l66.1-.3L512 564.4l99.3 118.4 66 .3c4.4 0 8-3.5 8-8 0-1.9-.7-3.7-1.9-5.2L553.5 515l130.1-155c1.2-1.4 1.8-3.3 1.8-5.2z"}},{tag:"path",attrs:{d:"M512 65C264.6 65 64 265.6 64 513s200.6 448 448 448 448-200.6 448-448S759.4 65 512 65zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"close-circle",theme:"outlined"};const iX=aX;function h$(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){lX(e,o,n[o])})}return e}function lX(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u1=function(t,n){var r=h$({},t,n.attrs);return C(vt,h$({},r,{icon:iX}),null)};u1.displayName="CloseCircleOutlined";u1.inheritAttrs=!1;const iP=u1;var sX={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"};const uX=sX;function g$(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){cX(e,o,n[o])})}return e}function cX(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c1=function(t,n){var r=g$({},t,n.attrs);return C(vt,g$({},r,{icon:uX}),null)};c1.displayName="CheckCircleFilled";c1.inheritAttrs=!1;const Aa=c1;var dX={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"};const fX=dX;function y$(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){pX(e,o,n[o])})}return e}function pX(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d1=function(t,n){var r=y$({},t,n.attrs);return C(vt,y$({},r,{icon:fX}),null)};d1.displayName="ExclamationCircleFilled";d1.inheritAttrs=!1;const Oa=d1;var mX={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"};const vX=mX;function b$(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){hX(e,o,n[o])})}return e}function hX(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f1=function(t,n){var r=b$({},t,n.attrs);return C(vt,b$({},r,{icon:vX}),null)};f1.displayName="InfoCircleFilled";f1.inheritAttrs=!1;const _s=f1,td=(e,t,n,r,o)=>({backgroundColor:e,border:`${r.lineWidth}px ${r.lineType} ${t}`,[`${o}-icon`]:{color:n}}),gX=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:r,marginSM:o,fontSize:a,fontSizeLG:i,lineHeight:l,borderRadiusLG:s,motionEaseInOutCirc:u,alertIconSizeLG:c,colorText:d,paddingContentVerticalSM:f,alertPaddingHorizontal:p,paddingMD:v,paddingContentHorizontalLG:m}=e;return{[t]:E(E({},rt(e)),{position:"relative",display:"flex",alignItems:"center",padding:`${f}px ${p}px`,wordWrap:"break-word",borderRadius:s,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:r,lineHeight:0},["&-description"]:{display:"none",fontSize:a,lineHeight:l},"&-message":{color:d},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${u}, opacity ${n} ${u},
- padding-top ${n} ${u}, padding-bottom ${n} ${u},
- margin-bottom ${n} ${u}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",paddingInline:m,paddingBlock:v,[`${t}-icon`]:{marginInlineEnd:o,fontSize:c,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:r,color:d,fontSize:i},[`${t}-description`]:{display:"block"}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},yX=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:r,colorSuccessBg:o,colorWarning:a,colorWarningBorder:i,colorWarningBg:l,colorError:s,colorErrorBorder:u,colorErrorBg:c,colorInfo:d,colorInfoBorder:f,colorInfoBg:p}=e;return{[t]:{"&-success":td(o,r,n,e,t),"&-info":td(p,f,d,e,t),"&-warning":td(l,i,a,e,t),"&-error":E(E({},td(c,u,s,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},bX=e=>{const{componentCls:t,iconCls:n,motionDurationMid:r,marginXS:o,fontSizeIcon:a,colorIcon:i,colorIconHover:l}=e;return{[t]:{["&-action"]:{marginInlineStart:o},[`${t}-close-icon`]:{marginInlineStart:o,padding:0,overflow:"hidden",fontSize:a,lineHeight:`${a}px`,backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:i,transition:`color ${r}`,"&:hover":{color:l}}},"&-close-text":{color:i,transition:`color ${r}`,"&:hover":{color:l}}}}},xX=e=>[gX(e),yX(e),bX(e)],wX=nt("Alert",e=>{const{fontSizeHeading3:t}=e,n=qe(e,{alertIconSizeLG:t,alertPaddingHorizontal:12});return[xX(n)]}),SX={success:Aa,info:_s,error:$r,warning:Oa},CX={success:oP,info:aP,error:iP,warning:rp},$X=Un("success","info","warning","error"),EX=()=>({type:Z.oneOf($X),closable:{type:Boolean,default:void 0},closeText:Z.any,message:Z.any,description:Z.any,afterClose:Function,showIcon:{type:Boolean,default:void 0},prefixCls:String,banner:{type:Boolean,default:void 0},icon:Z.any,closeIcon:Z.any,onClose:Function}),DX=he({compatConfig:{MODE:3},name:"AAlert",inheritAttrs:!1,props:EX(),setup(e,t){let{slots:n,emit:r,attrs:o,expose:a}=t;const{prefixCls:i,direction:l}=He("alert",e),[s,u]=wX(i),c=pe(!1),d=pe(!1),f=pe(),p=g=>{g.preventDefault();const x=f.value;x.style.height=`${x.offsetHeight}px`,x.style.height=`${x.offsetHeight}px`,c.value=!0,r("close",g)},v=()=>{var g;c.value=!1,d.value=!0,(g=e.afterClose)===null||g===void 0||g.call(e)},m=z(()=>{const{type:g}=e;return g!==void 0?g:e.banner?"warning":"info"});a({animationEnd:v});const h=pe({});return()=>{var g,x,y,w,b,S,$,D,O,A;const{banner:T,closeIcon:M=(g=n.closeIcon)===null||g===void 0?void 0:g.call(n)}=e;let{closable:B,showIcon:F}=e;const P=(x=e.closeText)!==null&&x!==void 0?x:(y=n.closeText)===null||y===void 0?void 0:y.call(n),I=(w=e.description)!==null&&w!==void 0?w:(b=n.description)===null||b===void 0?void 0:b.call(n),N=(S=e.message)!==null&&S!==void 0?S:($=n.message)===null||$===void 0?void 0:$.call(n),R=(D=e.icon)!==null&&D!==void 0?D:(O=n.icon)===null||O===void 0?void 0:O.call(n),_=(A=n.action)===null||A===void 0?void 0:A.call(n);F=T&&F===void 0?!0:F;const L=(I?CX:SX)[m.value]||null;P&&(B=!0);const k=i.value,H=ge(k,{[`${k}-${m.value}`]:!0,[`${k}-closing`]:c.value,[`${k}-with-description`]:!!I,[`${k}-no-icon`]:!F,[`${k}-banner`]:!!T,[`${k}-closable`]:B,[`${k}-rtl`]:l.value==="rtl",[u.value]:!0}),V=B?C("button",{type:"button",onClick:p,class:`${k}-close-icon`,tabindex:0},[P?C("span",{class:`${k}-close-text`},[P]):M===void 0?C(Hr,null,null):M]):null,U=R&&(hn(R)?At(R,{class:`${k}-icon`}):C("span",{class:`${k}-icon`},[R]))||C(L,{class:`${k}-icon`},null),q=to(`${k}-motion`,{appear:!1,css:!0,onAfterLeave:v,onBeforeLeave:K=>{K.style.maxHeight=`${K.offsetHeight}px`},onLeave:K=>{K.style.maxHeight="0px"}});return s(d.value?null:C(_n,q,{default:()=>[vn(C("div",j(j({role:"alert"},o),{},{style:[o.style,h.value],class:[o.class,H],"data-show":!c.value,ref:f}),[F?U:null,C("div",{class:`${k}-content`},[N?C("div",{class:`${k}-message`},[N]):null,I?C("div",{class:`${k}-description`},[I]):null]),_?C("div",{class:`${k}-action`},[_]):null,V]),[[ur,!c.value]])]}))}}}),AX=rn(DX),sa=["xxxl","xxl","xl","lg","md","sm","xs"],OX=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)`,xxxl:`{min-width: ${e.screenXXXL}px}`});function p1(){const[,e]=$a();return z(()=>{const t=OX(e.value),n=new Map;let r=-1,o={};return{matchHandlers:{},dispatch(a){return o=a,n.forEach(i=>i(o)),n.size>=1},subscribe(a){return n.size||this.register(),r+=1,n.set(r,a),a(o),r},unsubscribe(a){n.delete(a),n.size||this.unregister()},unregister(){Object.keys(t).forEach(a=>{const i=t[a],l=this.matchHandlers[i];l==null||l.mql.removeListener(l==null?void 0:l.listener)}),n.clear()},register(){Object.keys(t).forEach(a=>{const i=t[a],l=u=>{let{matches:c}=u;this.dispatch(E(E({},o),{[a]:c}))},s=window.matchMedia(i);s.addListener(l),this.matchHandlers[i]={mql:s,listener:l},l(s)})},responsiveMap:t}})}function Bs(){const e=pe({});let t=null;const n=p1();return Qe(()=>{t=n.value.subscribe(r=>{e.value=r})}),Cr(()=>{n.value.unsubscribe(t)}),e}function Pr(e){const t=pe();return Je(()=>{t.value=e()},{flush:"sync"}),t}const TX=e=>{const{antCls:t,componentCls:n,iconCls:r,avatarBg:o,avatarColor:a,avatarSizeBase:i,avatarSizeLG:l,avatarSizeSM:s,avatarFontSizeBase:u,avatarFontSizeLG:c,avatarFontSizeSM:d,borderRadius:f,borderRadiusLG:p,borderRadiusSM:v,lineWidth:m,lineType:h}=e,g=(x,y,w)=>({width:x,height:x,lineHeight:`${x-m*2}px`,borderRadius:"50%",[`&${n}-square`]:{borderRadius:w},[`${n}-string`]:{position:"absolute",left:{_skip_check_:!0,value:"50%"},transformOrigin:"0 center"},[`&${n}-icon`]:{fontSize:y,[`> ${r}`]:{margin:0}}});return{[n]:E(E(E(E({},rt(e)),{position:"relative",display:"inline-block",overflow:"hidden",color:a,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:o,border:`${m}px ${h} transparent`,["&-image"]:{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),g(i,u,f)),{["&-lg"]:E({},g(l,c,p)),["&-sm"]:E({},g(s,d,v)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},MX=e=>{const{componentCls:t,avatarGroupBorderColor:n,avatarGroupSpace:r}=e;return{[`${t}-group`]:{display:"inline-flex",[`${t}`]:{borderColor:n},["> *:not(:first-child)"]:{marginInlineStart:r}}}},lP=nt("Avatar",e=>{const{colorTextLightSolid:t,controlHeight:n,controlHeightLG:r,controlHeightSM:o,fontSize:a,fontSizeLG:i,fontSizeXL:l,fontSizeHeading3:s,marginXS:u,colorBorderBg:c,colorTextPlaceholder:d}=e,f=qe(e,{avatarBg:d,avatarColor:t,avatarSizeBase:n,avatarSizeLG:r,avatarSizeSM:o,avatarFontSizeBase:Math.round((i+l)/2),avatarFontSizeLG:s,avatarFontSizeSM:a,avatarGroupSpace:-u,avatarGroupBorderColor:c});return[TX(f),MX(f)]}),sP=Symbol("SizeContextKey"),uP=()=>lt(sP,be("default")),NX=e=>{const t=uP();return it(sP,z(()=>e.value||t.value)),e},PX=()=>({prefixCls:String,shape:{type:String,default:"circle"},size:{type:[Number,String,Object],default:()=>"default"},src:String,srcset:String,icon:Z.any,alt:String,gap:Number,draggable:{type:Boolean,default:void 0},crossOrigin:String,loadError:{type:Function}}),IX=he({compatConfig:{MODE:3},name:"AAvatar",inheritAttrs:!1,props:PX(),slots:Object,setup(e,t){let{slots:n,attrs:r}=t;const o=pe(!0),a=pe(!1),i=pe(1),l=pe(null),s=pe(null),{prefixCls:u}=He("avatar",e),[c,d]=lP(u),f=uP(),p=z(()=>e.size==="default"?f.value:e.size),v=Bs(),m=Pr(()=>{if(typeof e.size!="object")return;const y=sa.find(b=>v.value[b]);return e.size[y]}),h=y=>m.value?{width:`${m.value}px`,height:`${m.value}px`,lineHeight:`${m.value}px`,fontSize:`${y?m.value/2:18}px`}:{},g=()=>{if(!l.value||!s.value)return;const y=l.value.offsetWidth,w=s.value.offsetWidth;if(y!==0&&w!==0){const{gap:b=4}=e;b*2<w&&(i.value=w-b*2<y?(w-b*2)/y:1)}},x=()=>{const{loadError:y}=e;(y==null?void 0:y())!==!1&&(o.value=!1)};return Ne(()=>e.src,()=>{ht(()=>{o.value=!0,i.value=1})}),Ne(()=>e.gap,()=>{ht(()=>{g()})}),Qe(()=>{ht(()=>{g(),a.value=!0})}),()=>{var y;const{shape:w,src:b,alt:S,srcset:$,draggable:D,crossOrigin:O}=e,A=Sn(n,e,"icon"),T=u.value,M={[`${r.class}`]:!!r.class,[T]:!0,[`${T}-lg`]:p.value==="large",[`${T}-sm`]:p.value==="small",[`${T}-${w}`]:w,[`${T}-image`]:b&&o.value,[`${T}-icon`]:A,[d.value]:!0},B=typeof p.value=="number"?{width:`${p.value}px`,height:`${p.value}px`,lineHeight:`${p.value}px`,fontSize:A?`${p.value/2}px`:"18px"}:{},F=(y=n.default)===null||y===void 0?void 0:y.call(n);let P;if(b&&o.value)P=C("img",{draggable:D,src:b,srcset:$,onError:x,alt:S,crossorigin:O},null);else if(A)P=A;else if(a.value||i.value!==1){const I=`scale(${i.value}) translateX(-50%)`,N={msTransform:I,WebkitTransform:I,transform:I},R=typeof p.value=="number"?{lineHeight:`${p.value}px`}:{};P=C(Qr,{onResize:g},{default:()=>[C("span",{class:`${T}-string`,ref:l,style:E(E({},R),N)},[F])]})}else P=C("span",{class:`${T}-string`,ref:l,style:{opacity:0}},[F]);return c(C("span",j(j({},r),{},{ref:s,class:M,style:[B,h(!!A),r.style]}),[P]))}}}),Ri=IX,Vr={adjustX:1,adjustY:1},Wr=[0,0],cP={left:{points:["cr","cl"],overflow:Vr,offset:[-4,0],targetOffset:Wr},right:{points:["cl","cr"],overflow:Vr,offset:[4,0],targetOffset:Wr},top:{points:["bc","tc"],overflow:Vr,offset:[0,-4],targetOffset:Wr},bottom:{points:["tc","bc"],overflow:Vr,offset:[0,4],targetOffset:Wr},topLeft:{points:["bl","tl"],overflow:Vr,offset:[0,-4],targetOffset:Wr},leftTop:{points:["tr","tl"],overflow:Vr,offset:[-4,0],targetOffset:Wr},topRight:{points:["br","tr"],overflow:Vr,offset:[0,-4],targetOffset:Wr},rightTop:{points:["tl","tr"],overflow:Vr,offset:[4,0],targetOffset:Wr},bottomRight:{points:["tr","br"],overflow:Vr,offset:[0,4],targetOffset:Wr},rightBottom:{points:["bl","br"],overflow:Vr,offset:[4,0],targetOffset:Wr},bottomLeft:{points:["tl","bl"],overflow:Vr,offset:[0,4],targetOffset:Wr},leftBottom:{points:["br","bl"],overflow:Vr,offset:[-4,0],targetOffset:Wr}},_X={prefixCls:String,id:String,overlayInnerStyle:Z.any},BX=he({compatConfig:{MODE:3},name:"Content",props:_X,setup(e,t){let{slots:n}=t;return()=>{var r;return C("div",{class:`${e.prefixCls}-inner`,id:e.id,role:"tooltip",style:e.overlayInnerStyle},[(r=n.overlay)===null||r===void 0?void 0:r.call(n)])}}});var FX=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function x$(){}const RX=he({compatConfig:{MODE:3},name:"Tooltip",inheritAttrs:!1,props:{trigger:Z.any.def(["hover"]),defaultVisible:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},placement:Z.string.def("right"),transitionName:String,animation:Z.any,afterVisibleChange:Z.func.def(()=>{}),overlayStyle:{type:Object,default:void 0},overlayClassName:String,prefixCls:Z.string.def("rc-tooltip"),mouseEnterDelay:Z.number.def(.1),mouseLeaveDelay:Z.number.def(.1),getPopupContainer:Function,destroyTooltipOnHide:{type:Boolean,default:!1},align:Z.object.def(()=>({})),arrowContent:Z.any.def(null),tipId:String,builtinPlacements:Z.object,overlayInnerStyle:{type:Object,default:void 0},popupVisible:{type:Boolean,default:void 0},onVisibleChange:Function,onPopupAlign:Function},setup(e,t){let{slots:n,attrs:r,expose:o}=t;const a=pe(),i=()=>{const{prefixCls:c,tipId:d,overlayInnerStyle:f}=e;return[C("div",{class:`${c}-arrow`,key:"arrow"},[Sn(n,e,"arrowContent")]),C(BX,{key:"content",prefixCls:c,id:d,overlayInnerStyle:f},{overlay:n.overlay})]};o({getPopupDomNode:()=>a.value.getPopupDomNode(),triggerDOM:a,forcePopupAlign:()=>{var c;return(c=a.value)===null||c===void 0?void 0:c.forcePopupAlign()}});const s=pe(!1),u=pe(!1);return Je(()=>{const{destroyTooltipOnHide:c}=e;if(typeof c=="boolean")s.value=c;else if(c&&typeof c=="object"){const{keepParent:d}=c;s.value=d===!0,u.value=d===!1}}),()=>{const{overlayClassName:c,trigger:d,mouseEnterDelay:f,mouseLeaveDelay:p,overlayStyle:v,prefixCls:m,afterVisibleChange:h,transitionName:g,animation:x,placement:y,align:w,destroyTooltipOnHide:b,defaultVisible:S}=e,$=FX(e,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible"]),D=E({},$);e.visible!==void 0&&(D.popupVisible=e.visible);const O=E(E(E({popupClassName:c,prefixCls:m,action:d,builtinPlacements:cP,popupPlacement:y,popupAlign:w,afterPopupVisibleChange:h,popupTransitionName:g,popupAnimation:x,defaultPopupVisible:S,destroyPopupOnHide:s.value,autoDestroy:u.value,mouseLeaveDelay:p,popupStyle:v,mouseEnterDelay:f},D),r),{onPopupVisibleChange:e.onVisibleChange||x$,onPopupAlign:e.onPopupAlign||x$,ref:a,popup:i()});return C(ol,O,{default:n.default})}}}),m1=()=>({trigger:[String,Array],open:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},placement:String,color:String,transitionName:String,overlayStyle:We(),overlayInnerStyle:We(),overlayClassName:String,openClassName:String,prefixCls:String,mouseEnterDelay:Number,mouseLeaveDelay:Number,getPopupContainer:Function,arrowPointAtCenter:{type:Boolean,default:void 0},autoAdjustOverflow:{type:[Boolean,Object],default:void 0},destroyTooltipOnHide:{type:Boolean,default:void 0},align:We(),builtinPlacements:We(),children:Array,onVisibleChange:Function,"onUpdate:visible":Function,onOpenChange:Function,"onUpdate:open":Function}),zX={adjustX:1,adjustY:1},w$={adjustX:0,adjustY:0},LX=[0,0];function S$(e){return typeof e=="boolean"?e?zX:w$:E(E({},w$),e)}function v1(e){const{arrowWidth:t=4,horizontalArrowShift:n=16,verticalArrowShift:r=8,autoAdjustOverflow:o,arrowPointAtCenter:a}=e,i={left:{points:["cr","cl"],offset:[-4,0]},right:{points:["cl","cr"],offset:[4,0]},top:{points:["bc","tc"],offset:[0,-4]},bottom:{points:["tc","bc"],offset:[0,4]},topLeft:{points:["bl","tc"],offset:[-(n+t),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(r+t)]},topRight:{points:["br","tc"],offset:[n+t,-4]},rightTop:{points:["tl","cr"],offset:[4,-(r+t)]},bottomRight:{points:["tr","bc"],offset:[n+t,4]},rightBottom:{points:["bl","cr"],offset:[4,r+t]},bottomLeft:{points:["tl","bc"],offset:[-(n+t),4]},leftBottom:{points:["br","cl"],offset:[-4,r+t]}};return Object.keys(i).forEach(l=>{i[l]=a?E(E({},i[l]),{overflow:S$(o),targetOffset:LX}):E(E({},cP[l]),{overflow:S$(o)}),i[l].ignoreShake=!0}),i}function op(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];for(let t=0,n=e.length;t<n;t++)if(e[t]!==void 0)return e[t]}const kX=zu.map(e=>`${e}-inverse`),HX=["success","processing","error","default","warning"];function Hm(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[...kX,...zu].includes(e):zu.includes(e)}function jX(e){return HX.includes(e)}function VX(e,t){const n=Hm(t),r=ge({[`${e}-${t}`]:t&&n}),o={},a={};return t&&!n&&(o.background=t,a["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:a}}function nd(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return e.map(n=>`${t}${n}`).join(",")}const h1=8;function dP(e){const t=h1,{sizePopupArrow:n,contentRadius:r,borderRadiusOuter:o,limitVerticalRadius:a}=e,i=n/2-Math.ceil(o*(Math.sqrt(2)-1)),l=(r>12?r+2:12)-i,s=a?t-i:l;return{dropdownArrowOffset:l,dropdownArrowOffsetVertical:s}}function g1(e,t){const{componentCls:n,sizePopupArrow:r,marginXXS:o,borderRadiusXS:a,borderRadiusOuter:i,boxShadowPopoverArrow:l}=e,{colorBg:s,showArrowCls:u,contentRadius:c=e.borderRadiusLG,limitVerticalRadius:d}=t,{dropdownArrowOffsetVertical:f,dropdownArrowOffset:p}=dP({sizePopupArrow:r,contentRadius:c,borderRadiusOuter:i,limitVerticalRadius:d}),v=r/2+o;return{[n]:{[`${n}-arrow`]:[E(E({position:"absolute",zIndex:1,display:"block"},lb(r,a,i,s,l)),{"&:before":{background:s}})],[[`&-placement-top ${n}-arrow`,`&-placement-topLeft ${n}-arrow`,`&-placement-topRight ${n}-arrow`].join(",")]:{bottom:0,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:p}},[`&-placement-topRight ${n}-arrow`]:{right:{_skip_check_:!0,value:p}},[[`&-placement-bottom ${n}-arrow`,`&-placement-bottomLeft ${n}-arrow`,`&-placement-bottomRight ${n}-arrow`].join(",")]:{top:0,transform:"translateY(-100%)"},[`&-placement-bottom ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:p}},[`&-placement-bottomRight ${n}-arrow`]:{right:{_skip_check_:!0,value:p}},[[`&-placement-left ${n}-arrow`,`&-placement-leftTop ${n}-arrow`,`&-placement-leftBottom ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:0},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${n}-arrow`]:{top:f},[`&-placement-leftBottom ${n}-arrow`]:{bottom:f},[[`&-placement-right ${n}-arrow`,`&-placement-rightTop ${n}-arrow`,`&-placement-rightBottom ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:0},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${n}-arrow`]:{top:f},[`&-placement-rightBottom ${n}-arrow`]:{bottom:f},[nd(["&-placement-topLeft","&-placement-top","&-placement-topRight"],u)]:{paddingBottom:v},[nd(["&-placement-bottomLeft","&-placement-bottom","&-placement-bottomRight"],u)]:{paddingTop:v},[nd(["&-placement-leftTop","&-placement-left","&-placement-leftBottom"],u)]:{paddingRight:{_skip_check_:!0,value:v}},[nd(["&-placement-rightTop","&-placement-right","&-placement-rightBottom"],u)]:{paddingLeft:{_skip_check_:!0,value:v}}}}}const WX=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:o,tooltipBorderRadius:a,zIndexPopup:i,controlHeight:l,boxShadowSecondary:s,paddingSM:u,paddingXS:c,tooltipRadiusOuter:d}=e;return[{[t]:E(E(E(E({},rt(e)),{position:"absolute",zIndex:i,display:"block","&":[{width:"max-content"},{width:"intrinsic"}],maxWidth:n,visibility:"visible","&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${t}-inner`]:{minWidth:l,minHeight:l,padding:`${u/2}px ${c}px`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:a,boxShadow:s},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:Math.min(a,h1)}},[`${t}-content`]:{position:"relative"}}),Vf(e,(f,p)=>{let{darkColor:v}=p;return{[`&${t}-${f}`]:{[`${t}-inner`]:{backgroundColor:v},[`${t}-arrow`]:{"--antd-arrow-background-color":v}}}})),{"&-rtl":{direction:"rtl"}})},g1(qe(e,{borderRadiusOuter:d}),{colorBg:"var(--antd-arrow-background-color)",showArrowCls:"",contentRadius:a,limitVerticalRadius:!0}),{[`${t}-pure`]:{position:"relative",maxWidth:"none"}}]},UX=(e,t)=>nt("Tooltip",r=>{if((t==null?void 0:t.value)===!1)return[];const{borderRadius:o,colorTextLightSolid:a,colorBgDefault:i,borderRadiusOuter:l}=r,s=qe(r,{tooltipMaxWidth:250,tooltipColor:a,tooltipBorderRadius:o,tooltipBg:i,tooltipRadiusOuter:l>4?4:l});return[WX(s),Ps(r,"zoom-big-fast")]},r=>{let{zIndexPopupBase:o,colorBgSpotlight:a}=r;return{zIndexPopup:o+70,colorBgDefault:a}})(e),KX=(e,t)=>{const n={},r=E({},e);return t.forEach(o=>{e&&o in e&&(n[o]=e[o],delete r[o])}),{picked:n,omitted:r}},fP=()=>E(E({},m1()),{title:Z.any}),pP=()=>({trigger:"hover",align:{},placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0}),qX=he({compatConfig:{MODE:3},name:"ATooltip",inheritAttrs:!1,props:at(fP(),{trigger:"hover",align:{},placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0}),slots:Object,setup(e,t){let{slots:n,emit:r,attrs:o,expose:a}=t;const{prefixCls:i,getPopupContainer:l,direction:s,rootPrefixCls:u}=He("tooltip",e),c=z(()=>{var A;return(A=e.open)!==null&&A!==void 0?A:e.visible}),d=be(op([e.open,e.visible])),f=be();let p;Ne(c,A=>{tt.cancel(p),p=tt(()=>{d.value=!!A})});const v=()=>{var A;const T=(A=e.title)!==null&&A!==void 0?A:n.title;return!T&&T!==0},m=A=>{const T=v();c.value===void 0&&(d.value=T?!1:A),T||(r("update:visible",A),r("visibleChange",A),r("update:open",A),r("openChange",A))};a({getPopupDomNode:()=>f.value.getPopupDomNode(),open:d,forcePopupAlign:()=>{var A;return(A=f.value)===null||A===void 0?void 0:A.forcePopupAlign()}});const g=z(()=>{const{builtinPlacements:A,arrowPointAtCenter:T,autoAdjustOverflow:M}=e;return A||v1({arrowPointAtCenter:T,autoAdjustOverflow:M})}),x=A=>A||A==="",y=A=>{const T=A.type;if(typeof T=="object"&&A.props&&((T.__ANT_BUTTON===!0||T==="button")&&x(A.props.disabled)||T.__ANT_SWITCH===!0&&(x(A.props.disabled)||x(A.props.loading))||T.__ANT_RADIO===!0&&x(A.props.disabled))){const{picked:M,omitted:B}=KX(VT(A),["position","left","right","top","bottom","float","display","zIndex"]),F=E(E({display:"inline-block"},M),{cursor:"not-allowed",lineHeight:1,width:A.props&&A.props.block?"100%":void 0}),P=E(E({},B),{pointerEvents:"none"}),I=At(A,{style:P},!0);return C("span",{style:F,class:`${i.value}-disabled-compatible-wrapper`},[I])}return A},w=()=>{var A,T;return(A=e.title)!==null&&A!==void 0?A:(T=n.title)===null||T===void 0?void 0:T.call(n)},b=(A,T)=>{const M=g.value,B=Object.keys(M).find(F=>{var P,I;return M[F].points[0]===((P=T.points)===null||P===void 0?void 0:P[0])&&M[F].points[1]===((I=T.points)===null||I===void 0?void 0:I[1])});if(B){const F=A.getBoundingClientRect(),P={top:"50%",left:"50%"};B.indexOf("top")>=0||B.indexOf("Bottom")>=0?P.top=`${F.height-T.offset[1]}px`:(B.indexOf("Top")>=0||B.indexOf("bottom")>=0)&&(P.top=`${-T.offset[1]}px`),B.indexOf("left")>=0||B.indexOf("Right")>=0?P.left=`${F.width-T.offset[0]}px`:(B.indexOf("right")>=0||B.indexOf("Left")>=0)&&(P.left=`${-T.offset[0]}px`),A.style.transformOrigin=`${P.left} ${P.top}`}},S=z(()=>VX(i.value,e.color)),$=z(()=>o["data-popover-inject"]),[D,O]=UX(i,z(()=>!$.value));return()=>{var A,T;const{openClassName:M,overlayClassName:B,overlayStyle:F,overlayInnerStyle:P}=e;let I=(T=nn((A=n.default)===null||A===void 0?void 0:A.call(n)))!==null&&T!==void 0?T:null;I=I.length===1?I[0]:I;let N=d.value;if(c.value===void 0&&v()&&(N=!1),!I)return null;const R=y(hn(I)&&!QF(I)?I:C("span",null,[I])),_=ge({[M||`${i.value}-open`]:!0,[R.props&&R.props.class]:R.props&&R.props.class}),L=ge(B,{[`${i.value}-rtl`]:s.value==="rtl"},S.value.className,O.value),k=E(E({},S.value.overlayStyle),P),H=S.value.arrowStyle,V=E(E(E({},o),e),{prefixCls:i.value,getPopupContainer:l==null?void 0:l.value,builtinPlacements:g.value,visible:N,ref:f,overlayClassName:L,overlayStyle:E(E({},H),F),overlayInnerStyle:k,onVisibleChange:m,onPopupAlign:b,transitionName:xr(u.value,"zoom-big-fast",e.transitionName)});return D(C(RX,V,{default:()=>[d.value?At(R,{class:_}):R],arrowContent:()=>C("span",{class:`${i.value}-arrow-content`},null),overlay:w}))}}}),Br=rn(qX),GX=e=>{const{componentCls:t,popoverBg:n,popoverColor:r,width:o,fontWeightStrong:a,popoverPadding:i,boxShadowSecondary:l,colorTextHeading:s,borderRadiusLG:u,zIndexPopup:c,marginXS:d,colorBgElevated:f}=e;return[{[t]:E(E({},rt(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:c,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--antd-arrow-background-color":f,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:n,backgroundClip:"padding-box",borderRadius:u,boxShadow:l,padding:i},[`${t}-title`]:{minWidth:o,marginBottom:d,color:s,fontWeight:a},[`${t}-inner-content`]:{color:r}})},g1(e,{colorBg:"var(--antd-arrow-background-color)"}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",[`${t}-content`]:{display:"inline-block"}}}]},XX=e=>{const{componentCls:t}=e;return{[t]:zu.map(n=>{const r=e[`${n}-6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},YX=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorSplit:o,paddingSM:a,controlHeight:i,fontSize:l,lineHeight:s,padding:u}=e,c=i-Math.round(l*s),d=c/2,f=c/2-n,p=u;return{[t]:{[`${t}-inner`]:{padding:0},[`${t}-title`]:{margin:0,padding:`${d}px ${p}px ${f}px`,borderBottom:`${n}px ${r} ${o}`},[`${t}-inner-content`]:{padding:`${a}px ${p}px`}}}},ZX=nt("Popover",e=>{const{colorBgElevated:t,colorText:n,wireframe:r}=e,o=qe(e,{popoverBg:t,popoverColor:n,popoverPadding:12});return[GX(o),XX(o),r&&YX(o),Ps(o,"zoom-big")]},e=>{let{zIndexPopupBase:t}=e;return{zIndexPopup:t+30,width:177}}),JX=()=>E(E({},m1()),{content:jt(),title:jt()}),QX=he({compatConfig:{MODE:3},name:"APopover",inheritAttrs:!1,props:at(JX(),E(E({},pP()),{trigger:"hover",placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1})),setup(e,t){let{expose:n,slots:r,attrs:o}=t;const a=be();Jt(e.visible===void 0),n({getPopupDomNode:()=>{var f,p;return(p=(f=a.value)===null||f===void 0?void 0:f.getPopupDomNode)===null||p===void 0?void 0:p.call(f)}});const{prefixCls:i,configProvider:l}=He("popover",e),[s,u]=ZX(i),c=z(()=>l.getPrefixCls()),d=()=>{var f,p;const{title:v=nn((f=r.title)===null||f===void 0?void 0:f.call(r)),content:m=nn((p=r.content)===null||p===void 0?void 0:p.call(r))}=e,h=!!(Array.isArray(v)?v.length:v),g=!!(Array.isArray(m)?m.length:v);return!h&&!g?null:C(dt,null,[h&&C("div",{class:`${i.value}-title`},[v]),C("div",{class:`${i.value}-inner-content`},[m])])};return()=>{const f=ge(e.overlayClassName,u.value);return s(C(Br,j(j(j({},pt(e,["title","content"])),o),{},{prefixCls:i.value,ref:a,overlayClassName:f,transitionName:xr(c.value,"zoom-big",e.transitionName),"data-popover-inject":!0}),{title:d,default:r.default}))}}}),y1=rn(QX),eY=()=>({prefixCls:String,maxCount:Number,maxStyle:{type:Object,default:void 0},maxPopoverPlacement:{type:String,default:"top"},maxPopoverTrigger:String,size:{type:[Number,String,Object],default:"default"}}),tY=he({compatConfig:{MODE:3},name:"AAvatarGroup",inheritAttrs:!1,props:eY(),setup(e,t){let{slots:n,attrs:r}=t;const{prefixCls:o,direction:a}=He("avatar",e),i=z(()=>`${o.value}-group`),[l,s]=lP(o);return NX(z(()=>e.size)),()=>{const{maxPopoverPlacement:u="top",maxCount:c,maxStyle:d,maxPopoverTrigger:f="hover"}=e,p={[i.value]:!0,[`${i.value}-rtl`]:a.value==="rtl",[`${r.class}`]:!!r.class,[s.value]:!0},v=Sn(n,e),m=Lt(v).map((g,x)=>At(g,{key:`avatar-key-${x}`})),h=m.length;if(c&&c<h){const g=m.slice(0,c),x=m.slice(c,h);return g.push(C(y1,{key:"avatar-popover-key",content:x,trigger:f,placement:u,overlayClassName:`${i.value}-popover`},{default:()=>[C(Ri,{style:d},{default:()=>[`+${h-c}`]})]})),l(C("div",j(j({},r),{},{class:p,style:r.style}),[g]))}return l(C("div",j(j({},r),{},{class:p,style:r.style}),[m]))}}}),ap=tY;Ri.Group=ap;Ri.install=function(e){return e.component(Ri.name,Ri),e.component(ap.name,ap),e};function C$(e){let{prefixCls:t,value:n,current:r,offset:o=0}=e,a;return o&&(a={position:"absolute",top:`${o}00%`,left:0}),C("p",{style:a,class:ge(`${t}-only-unit`,{current:r})},[n])}function nY(e,t,n){let r=e,o=0;for(;(r+10)%10!==t;)r+=n,o+=n;return o}const rY=he({compatConfig:{MODE:3},name:"SingleNumber",props:{prefixCls:String,value:String,count:Number},setup(e){const t=z(()=>Number(e.value)),n=z(()=>Math.abs(e.count)),r=_t({prevValue:t.value,prevCount:n.value}),o=()=>{r.prevValue=t.value,r.prevCount=n.value},a=be();return Ne(t,()=>{clearTimeout(a.value),a.value=setTimeout(()=>{o()},1e3)},{flush:"post"}),Cr(()=>{clearTimeout(a.value)}),()=>{let i,l={};const s=t.value;if(r.prevValue===s||Number.isNaN(s)||Number.isNaN(r.prevValue))i=[C$(E(E({},e),{current:!0}))],l={transition:"none"};else{i=[];const u=s+10,c=[];for(let p=s;p<=u;p+=1)c.push(p);const d=c.findIndex(p=>p%10===r.prevValue);i=c.map((p,v)=>{const m=p%10;return C$(E(E({},e),{value:m,offset:v-d,current:v===d}))});const f=r.prevCount<n.value?1:-1;l={transform:`translateY(${-nY(r.prevValue,s,f)}00%)`}}return C("span",{class:`${e.prefixCls}-only`,style:l,onTransitionend:()=>o()},[i])}}});var oY=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const aY={prefixCls:String,count:Z.any,component:String,title:Z.any,show:Boolean},iY=he({compatConfig:{MODE:3},name:"ScrollNumber",inheritAttrs:!1,props:aY,setup(e,t){let{attrs:n,slots:r}=t;const{prefixCls:o}=He("scroll-number",e);return()=>{var a;const i=E(E({},e),n),{prefixCls:l,count:s,title:u,show:c,component:d="sup",class:f,style:p}=i,v=oY(i,["prefixCls","count","title","show","component","class","style"]),m=E(E({},v),{style:p,"data-show":e.show,class:ge(o.value,f),title:u});let h=s;if(s&&Number(s)%1===0){const x=String(s).split("");h=x.map((y,w)=>C(rY,{prefixCls:o.value,count:Number(s),value:y,key:x.length-w},null))}p&&p.borderColor&&(m.style=E(E({},p),{boxShadow:`0 0 0 1px ${p.borderColor} inset`}));const g=nn((a=r.default)===null||a===void 0?void 0:a.call(r));return g&&g.length?At(g,{class:ge(`${o.value}-custom-component`)},!1):C(d,m,{default:()=>[h]})}}}),lY=new ft("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),sY=new ft("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),uY=new ft("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),cY=new ft("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),dY=new ft("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),fY=new ft("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),pY=e=>{const{componentCls:t,iconCls:n,antCls:r,badgeFontHeight:o,badgeShadowSize:a,badgeHeightSm:i,motionDurationSlow:l,badgeStatusSize:s,marginXS:u,badgeRibbonOffset:c}=e,d=`${r}-scroll-number`,f=`${r}-ribbon`,p=`${r}-ribbon-wrapper`,v=Vf(e,(h,g)=>{let{darkColor:x}=g;return{[`${t}-status-${h}`]:{background:x}}}),m=Vf(e,(h,g)=>{let{darkColor:x}=g;return{[`&${f}-color-${h}`]:{background:x,color:x}}});return{[t]:E(E({},rt(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{zIndex:e.badgeZIndex,minWidth:e.badgeHeight,height:e.badgeHeight,color:e.badgeTextColor,fontWeight:e.badgeFontWeight,fontSize:e.badgeFontSize,lineHeight:`${e.badgeHeight}px`,whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:e.badgeHeight/2,boxShadow:`0 0 0 ${a}px ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:i,height:i,fontSize:e.badgeFontSizeSm,lineHeight:`${i}px`,borderRadius:i/2},[`${t}-multiple-words`]:{padding:`0 ${e.paddingXS}px`},[`${t}-dot`]:{zIndex:e.badgeZIndex,width:e.badgeDotSize,minWidth:e.badgeDotSize,height:e.badgeDotSize,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${a}px ${e.badgeShadowColor}`},[`${t}-dot${d}`]:{transition:`background ${l}`},[`${t}-count, ${t}-dot, ${d}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`${n}-spin`]:{animationName:fY,animationDuration:e.motionDurationMid,animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:E(E({lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:s,height:s,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{position:"relative",color:e.colorPrimary,backgroundColor:e.colorPrimary,"&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:a,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:lY,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning}},v),{[`${t}-status-text`]:{marginInlineStart:u,color:e.colorText,fontSize:e.fontSize}}),[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:sY,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:uY,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:cY,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:dY,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${d}-custom-component, ${t}-count`]:{transform:"none"},[`${d}-custom-component, ${d}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[`${d}`]:{overflow:"hidden",[`${d}-only`]:{position:"relative",display:"inline-block",height:e.badgeHeight,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${d}-only-unit`]:{height:e.badgeHeight,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${d}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${d}-custom-component`]:{transform:"translate(-50%, -50%)"}}}),[`${p}`]:{position:"relative"},[`${f}`]:E(E(E(E({},rt(e)),{position:"absolute",top:u,height:o,padding:`0 ${e.paddingXS}px`,color:e.colorPrimary,lineHeight:`${o}px`,whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${f}-text`]:{color:e.colorTextLightSolid},[`${f}-corner`]:{position:"absolute",top:"100%",width:c,height:c,color:"currentcolor",border:`${c/2}px solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),m),{[`&${f}-placement-end`]:{insetInlineEnd:-c,borderEndEndRadius:0,[`${f}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${f}-placement-start`]:{insetInlineStart:-c,borderEndStartRadius:0,[`${f}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},mP=nt("Badge",e=>{const{fontSize:t,lineHeight:n,fontSizeSM:r,lineWidth:o,marginXS:a,colorBorderBg:i}=e,l=Math.round(t*n),s=o,u="auto",c=l-2*s,d=e.colorBgContainer,f="normal",p=r,v=e.colorError,m=e.colorErrorHover,h=t,g=r/2,x=r,y=r/2,w=qe(e,{badgeFontHeight:l,badgeShadowSize:s,badgeZIndex:u,badgeHeight:c,badgeTextColor:d,badgeFontWeight:f,badgeFontSize:p,badgeColor:v,badgeColorHover:m,badgeShadowColor:i,badgeHeightSm:h,badgeDotSize:g,badgeFontSizeSm:x,badgeStatusSize:y,badgeProcessingDuration:"1.2s",badgeRibbonOffset:a,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"});return[pY(w)]});var mY=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const vY=()=>({prefix:String,color:{type:String},text:Z.any,placement:{type:String,default:"end"}}),ip=he({compatConfig:{MODE:3},name:"ABadgeRibbon",inheritAttrs:!1,props:vY(),slots:Object,setup(e,t){let{attrs:n,slots:r}=t;const{prefixCls:o,direction:a}=He("ribbon",e),[i,l]=mP(o),s=z(()=>Hm(e.color,!1)),u=z(()=>[o.value,`${o.value}-placement-${e.placement}`,{[`${o.value}-rtl`]:a.value==="rtl",[`${o.value}-color-${e.color}`]:s.value}]);return()=>{var c,d;const{class:f,style:p}=n,v=mY(n,["class","style"]),m={},h={};return e.color&&!s.value&&(m.background=e.color,h.color=e.color),i(C("div",j({class:`${o.value}-wrapper ${l.value}`},v),[(c=r.default)===null||c===void 0?void 0:c.call(r),C("div",{class:[u.value,f,l.value],style:E(E({},m),p)},[C("span",{class:`${o.value}-text`},[e.text||((d=r.text)===null||d===void 0?void 0:d.call(r))]),C("div",{class:`${o.value}-corner`,style:h},null)])]))}}}),hY=e=>!isNaN(parseFloat(e))&&isFinite(e),lp=hY,gY=()=>({count:Z.any.def(null),showZero:{type:Boolean,default:void 0},overflowCount:{type:Number,default:99},dot:{type:Boolean,default:void 0},prefixCls:String,scrollNumberPrefixCls:String,status:{type:String},size:{type:String,default:"default"},color:String,text:Z.any,offset:Array,numberStyle:{type:Object,default:void 0},title:String}),Zd=he({compatConfig:{MODE:3},name:"ABadge",Ribbon:ip,inheritAttrs:!1,props:gY(),slots:Object,setup(e,t){let{slots:n,attrs:r}=t;const{prefixCls:o,direction:a}=He("badge",e),[i,l]=mP(o),s=z(()=>e.count>e.overflowCount?`${e.overflowCount}+`:e.count),u=z(()=>s.value==="0"||s.value===0),c=z(()=>e.count===null||u.value&&!e.showZero),d=z(()=>(e.status!==null&&e.status!==void 0||e.color!==null&&e.color!==void 0)&&c.value),f=z(()=>e.dot&&!u.value),p=z(()=>f.value?"":s.value),v=z(()=>(p.value===null||p.value===void 0||p.value===""||u.value&&!e.showZero)&&!f.value),m=be(e.count),h=be(p.value),g=be(f.value);Ne([()=>e.count,p,f],()=>{v.value||(m.value=e.count,h.value=p.value,g.value=f.value)},{immediate:!0});const x=z(()=>Hm(e.color,!1)),y=z(()=>({[`${o.value}-status-dot`]:d.value,[`${o.value}-status-${e.status}`]:!!e.status,[`${o.value}-status-${e.color}`]:x.value})),w=z(()=>e.color&&!x.value?{background:e.color,color:e.color}:{}),b=z(()=>({[`${o.value}-dot`]:g.value,[`${o.value}-count`]:!g.value,[`${o.value}-count-sm`]:e.size==="small",[`${o.value}-multiple-words`]:!g.value&&h.value&&h.value.toString().length>1,[`${o.value}-status-${e.status}`]:!!e.status,[`${o.value}-status-${e.color}`]:x.value}));return()=>{var S,$;const{offset:D,title:O,color:A}=e,T=r.style,M=Sn(n,e,"text"),B=o.value,F=m.value;let P=Lt((S=n.default)===null||S===void 0?void 0:S.call(n));P=P.length?P:null;const I=!!(!v.value||n.count),N=(()=>{if(!D)return E({},T);const U={marginTop:lp(D[1])?`${D[1]}px`:D[1]};return a.value==="rtl"?U.left=`${parseInt(D[0],10)}px`:U.right=`${-parseInt(D[0],10)}px`,E(E({},U),T)})(),R=O??(typeof F=="string"||typeof F=="number"?F:void 0),_=I||!M?null:C("span",{class:`${B}-status-text`},[M]),L=typeof F=="object"||F===void 0&&n.count?At(F??(($=n.count)===null||$===void 0?void 0:$.call(n)),{style:N},!1):null,k=ge(B,{[`${B}-status`]:d.value,[`${B}-not-a-wrapper`]:!P,[`${B}-rtl`]:a.value==="rtl"},r.class,l.value);if(!P&&d.value){const U=N.color;return i(C("span",j(j({},r),{},{class:k,style:N}),[C("span",{class:y.value,style:w.value},null),C("span",{style:{color:U},class:`${B}-status-text`},[M])]))}const H=to(P?`${B}-zoom`:"",{appear:!1});let V=E(E({},N),e.numberStyle);return A&&!x.value&&(V=V||{},V.background=A),i(C("span",j(j({},r),{},{class:k}),[P,C(_n,H,{default:()=>[vn(C(iY,{prefixCls:e.scrollNumberPrefixCls,show:I,class:b.value,count:h.value,title:R,style:V,key:"scrollNumber"},{default:()=>[L]}),[[ur,I]])]}),_]))}}});Zd.install=function(e){return e.component(Zd.name,Zd),e.component(ip.name,ip),e};const xl={adjustX:1,adjustY:1},wl=[0,0],yY={topLeft:{points:["bl","tl"],overflow:xl,offset:[0,-4],targetOffset:wl},topCenter:{points:["bc","tc"],overflow:xl,offset:[0,-4],targetOffset:wl},topRight:{points:["br","tr"],overflow:xl,offset:[0,-4],targetOffset:wl},bottomLeft:{points:["tl","bl"],overflow:xl,offset:[0,4],targetOffset:wl},bottomCenter:{points:["tc","bc"],overflow:xl,offset:[0,4],targetOffset:wl},bottomRight:{points:["tr","br"],overflow:xl,offset:[0,4],targetOffset:wl}},bY=yY;var xY=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const vP=he({compatConfig:{MODE:3},props:{minOverlayWidthMatchTrigger:{type:Boolean,default:void 0},arrow:{type:Boolean,default:!1},prefixCls:Z.string.def("rc-dropdown"),transitionName:String,overlayClassName:Z.string.def(""),openClassName:String,animation:Z.any,align:Z.object,overlayStyle:{type:Object,default:void 0},placement:Z.string.def("bottomLeft"),overlay:Z.any,trigger:Z.oneOfType([Z.string,Z.arrayOf(Z.string)]).def("hover"),alignPoint:{type:Boolean,default:void 0},showAction:Z.array,hideAction:Z.array,getPopupContainer:Function,visible:{type:Boolean,default:void 0},defaultVisible:{type:Boolean,default:!1},mouseEnterDelay:Z.number.def(.15),mouseLeaveDelay:Z.number.def(.1)},emits:["visibleChange","overlayClick"],setup(e,t){let{slots:n,emit:r,expose:o}=t;const a=be(!!e.visible);Ne(()=>e.visible,p=>{p!==void 0&&(a.value=p)});const i=be();o({triggerRef:i});const l=p=>{e.visible===void 0&&(a.value=!1),r("overlayClick",p)},s=p=>{e.visible===void 0&&(a.value=p),r("visibleChange",p)},u=()=>{var p;const v=(p=n.overlay)===null||p===void 0?void 0:p.call(n),m={prefixCls:`${e.prefixCls}-menu`,onClick:l};return C(dt,{key:kT},[e.arrow&&C("div",{class:`${e.prefixCls}-arrow`},null),At(v,m,!1)])},c=z(()=>{const{minOverlayWidthMatchTrigger:p=!e.alignPoint}=e;return p}),d=()=>{var p;const v=(p=n.default)===null||p===void 0?void 0:p.call(n);return a.value&&v?At(v[0],{class:e.openClassName||`${e.prefixCls}-open`},!1):v},f=z(()=>!e.hideAction&&e.trigger.indexOf("contextmenu")!==-1?["click"]:e.hideAction);return()=>{const{prefixCls:p,arrow:v,showAction:m,overlayStyle:h,trigger:g,placement:x,align:y,getPopupContainer:w,transitionName:b,animation:S,overlayClassName:$}=e,D=xY(e,["prefixCls","arrow","showAction","overlayStyle","trigger","placement","align","getPopupContainer","transitionName","animation","overlayClassName"]);return C(ol,j(j({},D),{},{prefixCls:p,ref:i,popupClassName:ge($,{[`${p}-show-arrow`]:v}),popupStyle:h,builtinPlacements:bY,action:g,showAction:m,hideAction:f.value||[],popupPlacement:x,popupAlign:y,popupTransitionName:b,popupAnimation:S,popupVisible:a.value,stretch:c.value?"minWidth":"",onPopupVisibleChange:s,getPopupContainer:w}),{popup:u,default:d})}}}),wY=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}}}}},SY=nt("Wave",e=>[wY(e)]);function CY(e){const t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return t&&t[1]&&t[2]&&t[3]?!(t[1]===t[2]&&t[2]===t[3]):!0}function Sh(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&CY(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function $Y(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return Sh(t)?t:Sh(n)?n:Sh(r)?r:null}function Ch(e){return Number.isNaN(e)?0:e}const EY=he({props:{target:We(),className:String},setup(e){const t=pe(null),[n,r]=It(null),[o,a]=It([]),[i,l]=It(0),[s,u]=It(0),[c,d]=It(0),[f,p]=It(0),[v,m]=It(!1);function h(){const{target:$}=e,D=getComputedStyle($);r($Y($));const O=D.position==="static",{borderLeftWidth:A,borderTopWidth:T}=D;l(O?$.offsetLeft:Ch(-parseFloat(A))),u(O?$.offsetTop:Ch(-parseFloat(T))),d($.offsetWidth),p($.offsetHeight);const{borderTopLeftRadius:M,borderTopRightRadius:B,borderBottomLeftRadius:F,borderBottomRightRadius:P}=D;a([M,B,P,F].map(I=>Ch(parseFloat(I))))}let g,x,y;const w=()=>{clearTimeout(y),tt.cancel(x),g==null||g.disconnect()},b=()=>{var $;const D=($=t.value)===null||$===void 0?void 0:$.parentElement;D&&(as(null,D),D.parentElement&&D.parentElement.removeChild(D))};Qe(()=>{w(),y=setTimeout(()=>{b()},5e3);const{target:$}=e;$&&(x=tt(()=>{h(),m(!0)}),typeof ResizeObserver<"u"&&(g=new ResizeObserver(h),g.observe($)))}),st(()=>{w()});const S=$=>{$.propertyName==="opacity"&&b()};return()=>{if(!v.value)return null;const $={left:`${i.value}px`,top:`${s.value}px`,width:`${c.value}px`,height:`${f.value}px`,borderRadius:o.value.map(D=>`${D}px`).join(" ")};return n&&($["--wave-color"]=n.value),C(_n,{appear:!0,name:"wave-motion",appearFromClass:"wave-motion-appear",appearActiveClass:"wave-motion-appear",appearToClass:"wave-motion-appear wave-motion-appear-active"},{default:()=>[C("div",{ref:t,class:e.className,style:$,onTransitionend:S},null)]})}}});function DY(e,t){const n=document.createElement("div");n.style.position="absolute",n.style.left="0px",n.style.top="0px",e==null||e.insertBefore(n,e==null?void 0:e.firstChild),as(C(EY,{target:e,className:t},null),n)}function AY(e,t){function n(){const r=yr(e);DY(r,t.value)}return n}const b1=he({compatConfig:{MODE:3},name:"Wave",props:{disabled:Boolean},setup(e,t){let{slots:n}=t;const r=Kn(),{prefixCls:o}=He("wave",e),[,a]=SY(o),i=AY(r,z(()=>ge(o.value,a.value)));let l;const s=()=>{yr(r).removeEventListener("click",l,!0)};return Qe(()=>{Ne(()=>e.disabled,()=>{s(),ht(()=>{const u=yr(r);if(!u||u.nodeType!==1||e.disabled)return;const c=d=>{d.target.tagName==="INPUT"||!gm(d.target)||!u.getAttribute||u.getAttribute("disabled")||u.disabled||u.className.includes("disabled")||u.className.includes("-leave")||i()};u.addEventListener("click",c,!0)})},{immediate:!0,flush:"post"})}),st(()=>{s()}),()=>{var u;return(u=n.default)===null||u===void 0?void 0:u.call(n)[0]}}});function sp(e){return e==="danger"?{danger:!0}:{type:e}}const OY=()=>({prefixCls:String,type:String,htmlType:{type:String,default:"button"},shape:{type:String},size:{type:String},loading:{type:[Boolean,Object],default:()=>!1},disabled:{type:Boolean,default:void 0},ghost:{type:Boolean,default:void 0},block:{type:Boolean,default:void 0},danger:{type:Boolean,default:void 0},icon:Z.any,href:String,target:String,title:String,onClick:Wi(),onMousedown:Wi()}),hP=OY,$$=e=>{e&&(e.style.width="0px",e.style.opacity="0",e.style.transform="scale(0)")},E$=e=>{ht(()=>{e&&(e.style.width=`${e.scrollWidth}px`,e.style.opacity="1",e.style.transform="scale(1)")})},D$=e=>{e&&e.style&&(e.style.width=null,e.style.opacity=null,e.style.transform=null)},TY=he({compatConfig:{MODE:3},name:"LoadingIcon",props:{prefixCls:String,loading:[Boolean,Object],existIcon:Boolean},setup(e){return()=>{const{existIcon:t,prefixCls:n,loading:r}=e;if(t)return C("span",{class:`${n}-loading-icon`},[C(Lr,null,null)]);const o=!!r;return C(_n,{name:`${n}-loading-icon-motion`,onBeforeEnter:$$,onEnter:E$,onAfterEnter:D$,onBeforeLeave:E$,onLeave:a=>{setTimeout(()=>{$$(a)})},onAfterLeave:D$},{default:()=>[o?C("span",{class:`${n}-loading-icon`},[C(Lr,null,null)]):null]})}}}),A$=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),MY=e=>{const{componentCls:t,fontSize:n,lineWidth:r,colorPrimaryHover:o,colorErrorHover:a}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:-r,[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,[`&:hover,
- &:focus,
- &:active`]:{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},A$(`${t}-primary`,o),A$(`${t}-danger`,a)]}},NY=MY;function PY(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:-e.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function IY(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 _Y(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:E(E({},PY(e,t)),IY(e.componentCls,t))}}const BY=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:400,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",lineHeight:e.lineHeight,color:e.colorText,"> span":{display:"inline-block"},[`> ${n} + span, > span + ${n}`]:{marginInlineStart:e.marginXS},"> a":{color:"currentColor"},"&:not(:disabled)":E({},ba(e)),[`&-icon-only${t}-compact-item`]:{flex:"none"},[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:e.lineWidth,height:`calc(100% + ${e.lineWidth*2}px)`,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:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:`calc(100% + ${e.lineWidth*2}px)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},wa=(e,t)=>({"&:not(:disabled)":{"&:hover":e,"&:active":t}}),FY=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),RY=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.controlHeight/2,paddingInlineEnd:e.controlHeight/2}),e0=e=>({cursor:"not-allowed",borderColor:e.colorBorder,color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,boxShadow:"none"}),up=(e,t,n,r,o,a,i)=>({[`&${e}-background-ghost`]:E(E({color:t||void 0,backgroundColor:"transparent",borderColor:n||void 0,boxShadow:"none"},wa(E({backgroundColor:"transparent"},a),E({backgroundColor:"transparent"},i))),{"&:disabled":{cursor:"not-allowed",color:r||void 0,borderColor:o||void 0}})}),x1=e=>({"&:disabled":E({},e0(e))}),gP=e=>E({},x1(e)),cp=e=>({"&:disabled":{cursor:"not-allowed",color:e.colorTextDisabled}}),yP=e=>E(E(E(E(E({},gP(e)),{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`}),wa({color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),up(e.componentCls,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:E(E(E({color:e.colorError,borderColor:e.colorError},wa({color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),up(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),x1(e))}),zY=e=>E(E(E(E(E({},gP(e)),{color:e.colorTextLightSolid,backgroundColor:e.colorPrimary,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`}),wa({color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryHover},{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryActive})),up(e.componentCls,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:E(E(E({backgroundColor:e.colorError,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`},wa({backgroundColor:e.colorErrorHover},{backgroundColor:e.colorErrorActive})),up(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),x1(e))}),LY=e=>E(E({},yP(e)),{borderStyle:"dashed"}),kY=e=>E(E(E({color:e.colorLink},wa({color:e.colorLinkHover},{color:e.colorLinkActive})),cp(e)),{[`&${e.componentCls}-dangerous`]:E(E({color:e.colorError},wa({color:e.colorErrorHover},{color:e.colorErrorActive})),cp(e))}),HY=e=>E(E(E({},wa({color:e.colorText,backgroundColor:e.colorBgTextHover},{color:e.colorText,backgroundColor:e.colorBgTextActive})),cp(e)),{[`&${e.componentCls}-dangerous`]:E(E({color:e.colorError},cp(e)),wa({color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))}),jY=e=>E(E({},e0(e)),{[`&${e.componentCls}:hover`]:E({},e0(e))}),VY=e=>{const{componentCls:t}=e;return{[`${t}-default`]:yP(e),[`${t}-primary`]:zY(e),[`${t}-dashed`]:LY(e),[`${t}-link`]:kY(e),[`${t}-text`]:HY(e),[`${t}-disabled`]:jY(e)}},w1=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,iconCls:r,controlHeight:o,fontSize:a,lineHeight:i,lineWidth:l,borderRadius:s,buttonPaddingHorizontal:u}=e,c=Math.max(0,(o-a*i)/2-l),d=u-l,f=`${n}-icon-only`;return[{[`${n}${t}`]:{fontSize:a,height:o,padding:`${c}px ${d}px`,borderRadius:s,[`&${f}`]:{width:o,paddingInlineStart:0,paddingInlineEnd:0,[`&${n}-round`]:{width:"auto"},"> span":{transform:"scale(1.143)"}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`&:not(${f}) ${n}-loading-icon > ${r}`]:{marginInlineEnd:e.marginXS}}},{[`${n}${n}-circle${t}`]:FY(e)},{[`${n}${n}-round${t}`]:RY(e)}]},WY=e=>w1(e),UY=e=>{const t=qe(e,{controlHeight:e.controlHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:8,borderRadius:e.borderRadiusSM});return w1(t,`${e.componentCls}-sm`)},KY=e=>{const t=qe(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG});return w1(t,`${e.componentCls}-lg`)},qY=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},GY=nt("Button",e=>{const{controlTmpOutline:t,paddingContentHorizontal:n}=e,r=qe(e,{colorOutlineDefault:t,buttonPaddingHorizontal:n});return[BY(r),UY(r),WY(r),KY(r),qY(r),VY(r),NY(r),Is(e,{focus:!1}),_Y(e)]}),XY=()=>({prefixCls:String,size:{type:String}}),bP=Kb(),dp=he({compatConfig:{MODE:3},name:"AButtonGroup",props:XY(),setup(e,t){let{slots:n}=t;const{prefixCls:r,direction:o}=He("btn-group",e),[,,a]=$a();bP.useProvide(_t({size:z(()=>e.size)}));const i=z(()=>{const{size:l}=e;let s="";switch(l){case"large":s="lg";break;case"small":s="sm";break;case"middle":case void 0:break;default:qt(!l,"Button.Group","Invalid prop `size`.")}return{[`${r.value}`]:!0,[`${r.value}-${s}`]:s,[`${r.value}-rtl`]:o.value==="rtl",[a.value]:!0}});return()=>{var l;return C("div",{class:i.value},[Lt((l=n.default)===null||l===void 0?void 0:l.call(n))])}}}),O$=/^[\u4e00-\u9fa5]{2}$/,T$=O$.test.bind(O$);function rd(e){return e==="text"||e==="link"}const dn=he({compatConfig:{MODE:3},name:"AButton",inheritAttrs:!1,__ANT_BUTTON:!0,props:at(hP(),{type:"default"}),slots:Object,setup(e,t){let{slots:n,attrs:r,emit:o,expose:a}=t;const{prefixCls:i,autoInsertSpaceInButton:l,direction:s,size:u}=He("btn",e),[c,d]=GY(i),f=bP.useInject(),p=Fr(),v=z(()=>{var P;return(P=e.disabled)!==null&&P!==void 0?P:p.value}),m=pe(null),h=pe(void 0);let g=!1;const x=pe(!1),y=pe(!1),w=z(()=>l.value!==!1),{compactSize:b,compactItemClassnames:S}=di(i,s),$=z(()=>typeof e.loading=="object"&&e.loading.delay?e.loading.delay||!0:!!e.loading);Ne($,P=>{clearTimeout(h.value),typeof $.value=="number"?h.value=setTimeout(()=>{x.value=P},$.value):x.value=P},{immediate:!0});const D=z(()=>{const{type:P,shape:I="default",ghost:N,block:R,danger:_}=e,L=i.value,k={large:"lg",small:"sm",middle:void 0},H=b.value||(f==null?void 0:f.size)||u.value,V=H&&k[H]||"";return[S.value,{[d.value]:!0,[`${L}`]:!0,[`${L}-${I}`]:I!=="default"&&I,[`${L}-${P}`]:P,[`${L}-${V}`]:V,[`${L}-loading`]:x.value,[`${L}-background-ghost`]:N&&!rd(P),[`${L}-two-chinese-chars`]:y.value&&w.value,[`${L}-block`]:R,[`${L}-dangerous`]:!!_,[`${L}-rtl`]:s.value==="rtl"}]}),O=()=>{const P=m.value;if(!P||l.value===!1)return;const I=P.textContent;g&&T$(I)?y.value||(y.value=!0):y.value&&(y.value=!1)},A=P=>{if(x.value||v.value){P.preventDefault();return}o("click",P)},T=P=>{o("mousedown",P)},M=(P,I)=>{const N=I?" ":"";if(P.type===tm){let R=P.children.trim();return T$(R)&&(R=R.split("").join(N)),C("span",null,[R])}return P};return Je(()=>{qt(!(e.ghost&&rd(e.type)),"Button","`link` or `text` button can't be a `ghost` button.")}),Qe(O),Sr(O),st(()=>{h.value&&clearTimeout(h.value)}),a({focus:()=>{var P;(P=m.value)===null||P===void 0||P.focus()},blur:()=>{var P;(P=m.value)===null||P===void 0||P.blur()}}),()=>{var P,I;const{icon:N=(P=n.icon)===null||P===void 0?void 0:P.call(n)}=e,R=Lt((I=n.default)===null||I===void 0?void 0:I.call(n));g=R.length===1&&!N&&!rd(e.type);const{type:_,htmlType:L,href:k,title:H,target:V}=e,U=x.value?"loading":N,q=E(E({},r),{title:H,disabled:v.value,class:[D.value,r.class,{[`${i.value}-icon-only`]:R.length===0&&!!U}],onClick:A,onMousedown:T});v.value||delete q.disabled;const K=N&&!x.value?N:C(TY,{existIcon:!!N,prefixCls:i.value,loading:!!x.value},null),X=R.map(ee=>M(ee,g&&w.value));if(k!==void 0)return c(C("a",j(j({},q),{},{href:k,target:V,ref:m}),[K,X]));let re=C("button",j(j({},q),{},{ref:m,type:L}),[K,X]);if(!rd(_)){const ee=function(){return re}();re=C(b1,{ref:"wave",disabled:!!x.value},{default:()=>[ee]})}return c(re)}}});dn.Group=dp;dn.install=function(e){return e.component(dn.name,dn),e.component(dp.name,dp),e};const xP=()=>({arrow:Xe([Boolean,Object]),trigger:{type:[Array,String]},menu:We(),overlay:Z.any,visible:Pe(),open:Pe(),disabled:Pe(),danger:Pe(),autofocus:Pe(),align:We(),getPopupContainer:Function,prefixCls:String,transitionName:String,placement:String,overlayClassName:String,overlayStyle:We(),forceRender:Pe(),mouseEnterDelay:Number,mouseLeaveDelay:Number,openClassName:String,minOverlayWidthMatchTrigger:Pe(),destroyPopupOnHide:Pe(),onVisibleChange:{type:Function},"onUpdate:visible":{type:Function},onOpenChange:{type:Function},"onUpdate:open":{type:Function}}),$h=hP(),YY=()=>E(E({},xP()),{type:$h.type,size:String,htmlType:$h.htmlType,href:String,disabled:Pe(),prefixCls:String,icon:Z.any,title:String,loading:$h.loading,onClick:Wi()});var ZY={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};const JY=ZY;function M$(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){QY(e,o,n[o])})}return e}function QY(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var S1=function(t,n){var r=M$({},t,n.attrs);return C(vt,M$({},r,{icon:JY}),null)};S1.displayName="EllipsisOutlined";S1.inheritAttrs=!1;const C1=S1,eZ=e=>{const{componentCls:t,antCls:n,paddingXS:r,opacityLoading:o}=e;return{[`${t}-button`]:{whiteSpace:"nowrap",[`&${n}-btn-group > ${n}-btn`]:{[`&-loading, &-loading + ${n}-btn`]:{cursor:"default",pointerEvents:"none",opacity:o},[`&:last-child:not(:first-child):not(${n}-btn-icon-only)`]:{paddingInline:r}}}}},tZ=eZ,nZ=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:o}=e,a=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${a}`]:{[`&${a}-danger:not(${a}-disabled)`]:{color:r,"&:hover":{color:o,backgroundColor:r}}}}}},rZ=nZ,oZ=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:o,dropdownArrowOffset:a,sizePopupArrow:i,antCls:l,iconCls:s,motionDurationMid:u,dropdownPaddingVertical:c,fontSize:d,dropdownEdgeChildPadding:f,colorTextDisabled:p,fontSizeIcon:v,controlPaddingHorizontal:m,colorBgElevated:h,boxShadowPopoverArrow:g}=e;return[{[t]:E(E({},rt(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:-o+i/2,zIndex:-9999,opacity:1e-4,content:'""'},[`${t}-wrap`]:{position:"relative",[`${l}-btn > ${s}-down`]:{fontSize:v},[`${s}-down::before`]:{transition:`transform ${u}`}},[`${t}-wrap-open`]:{[`${s}-down::before`]:{transform:"rotate(180deg)"}},[`
- &-hidden,
- &-menu-hidden,
- &-menu-submenu-hidden
- `]:{display:"none"},[`
- &-show-arrow${t}-placement-topLeft,
- &-show-arrow${t}-placement-top,
- &-show-arrow${t}-placement-topRight
- `]:{paddingBottom:o},[`
- &-show-arrow${t}-placement-bottomLeft,
- &-show-arrow${t}-placement-bottom,
- &-show-arrow${t}-placement-bottomRight
- `]:{paddingTop:o},[`${t}-arrow`]:E({position:"absolute",zIndex:1,display:"block"},lb(i,e.borderRadiusXS,e.borderRadiusOuter,h,g)),[`
- &-placement-top > ${t}-arrow,
- &-placement-topLeft > ${t}-arrow,
- &-placement-topRight > ${t}-arrow
- `]:{bottom:o,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${t}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft > ${t}-arrow`]:{left:{_skip_check_:!0,value:a}},[`&-placement-topRight > ${t}-arrow`]:{right:{_skip_check_:!0,value:a}},[`
- &-placement-bottom > ${t}-arrow,
- &-placement-bottomLeft > ${t}-arrow,
- &-placement-bottomRight > ${t}-arrow
- `]:{top:o,transform:"translateY(-100%)"},[`&-placement-bottom > ${t}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateY(-100%) translateX(-50%)"},[`&-placement-bottomLeft > ${t}-arrow`]:{left:{_skip_check_:!0,value:a}},[`&-placement-bottomRight > ${t}-arrow`]:{right:{_skip_check_:!0,value:a}},[`&${l}-slide-down-enter${l}-slide-down-enter-active${t}-placement-bottomLeft,
- &${l}-slide-down-appear${l}-slide-down-appear-active${t}-placement-bottomLeft,
- &${l}-slide-down-enter${l}-slide-down-enter-active${t}-placement-bottom,
- &${l}-slide-down-appear${l}-slide-down-appear-active${t}-placement-bottom,
- &${l}-slide-down-enter${l}-slide-down-enter-active${t}-placement-bottomRight,
- &${l}-slide-down-appear${l}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:Fm},[`&${l}-slide-up-enter${l}-slide-up-enter-active${t}-placement-topLeft,
- &${l}-slide-up-appear${l}-slide-up-appear-active${t}-placement-topLeft,
- &${l}-slide-up-enter${l}-slide-up-enter-active${t}-placement-top,
- &${l}-slide-up-appear${l}-slide-up-appear-active${t}-placement-top,
- &${l}-slide-up-enter${l}-slide-up-enter-active${t}-placement-topRight,
- &${l}-slide-up-appear${l}-slide-up-appear-active${t}-placement-topRight`]:{animationName:zm},[`&${l}-slide-down-leave${l}-slide-down-leave-active${t}-placement-bottomLeft,
- &${l}-slide-down-leave${l}-slide-down-leave-active${t}-placement-bottom,
- &${l}-slide-down-leave${l}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:Rm},[`&${l}-slide-up-leave${l}-slide-up-leave-active${t}-placement-topLeft,
- &${l}-slide-up-leave${l}-slide-up-leave-active${t}-placement-top,
- &${l}-slide-up-leave${l}-slide-up-leave-active${t}-placement-topRight`]:{animationName:Lm}})},{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul,li":{listStyle:"none"},ul:{marginInline:"0.3em"}},[`${t}, ${t}-menu-submenu`]:{[n]:E(E({padding:f,listStyleType:"none",backgroundColor:h,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},ba(e)),{[`${n}-item-group-title`]:{padding:`${c}px ${m}px`,color:e.colorTextDescription,transition:`all ${u}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center",borderRadius:e.borderRadiusSM},[`${n}-item-icon`]:{minWidth:d,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${u}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${n}-item, ${n}-submenu-title`]:E(E({clear:"both",margin:0,padding:`${c}px ${m}px`,color:e.colorText,fontWeight:"normal",fontSize:d,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${u}`,["&:hover, &-active"]:{backgroundColor:e.controlItemBgHover}},ba(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:p,cursor:"not-allowed","&:hover":{color:p,backgroundColor:h,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${e.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:v,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${e.marginXS}px`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:m+e.fontSizeSM},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:p,backgroundColor:h,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})}},[jo(e,"slide-up"),jo(e,"slide-down"),ms(e,"move-up"),ms(e,"move-down"),Ps(e,"zoom-big")]]},wP=nt("Dropdown",(e,t)=>{let{rootPrefixCls:n}=t;const{marginXXS:r,sizePopupArrow:o,controlHeight:a,fontSize:i,lineHeight:l,paddingXXS:s,componentCls:u,borderRadiusOuter:c,borderRadiusLG:d}=e,f=(a-i*l)/2,{dropdownArrowOffset:p}=dP({sizePopupArrow:o,contentRadius:d,borderRadiusOuter:c}),v=qe(e,{menuCls:`${u}-menu`,rootPrefixCls:n,dropdownArrowDistance:o/2+r,dropdownArrowOffset:p,dropdownPaddingVertical:f,dropdownEdgeChildPadding:s});return[oZ(v),tZ(v),rZ(v)]},e=>({zIndexPopup:e.zIndexPopupBase+50}));var aZ=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const iZ=dn.Group,qu=he({compatConfig:{MODE:3},name:"ADropdownButton",inheritAttrs:!1,__ANT_BUTTON:!0,props:at(YY(),{trigger:"hover",placement:"bottomRight",type:"default"}),slots:Object,setup(e,t){let{slots:n,attrs:r,emit:o}=t;const a=f=>{o("update:visible",f),o("visibleChange",f),o("update:open",f),o("openChange",f)},{prefixCls:i,direction:l,getPopupContainer:s}=He("dropdown",e),u=z(()=>`${i.value}-button`),[c,d]=wP(i);return()=>{var f,p;const v=E(E({},e),r),{type:m="default",disabled:h,danger:g,loading:x,htmlType:y,class:w="",overlay:b=(f=n.overlay)===null||f===void 0?void 0:f.call(n),trigger:S,align:$,open:D,visible:O,onVisibleChange:A,placement:T=l.value==="rtl"?"bottomLeft":"bottomRight",href:M,title:B,icon:F=((p=n.icon)===null||p===void 0?void 0:p.call(n))||C(C1,null,null),mouseEnterDelay:P,mouseLeaveDelay:I,overlayClassName:N,overlayStyle:R,destroyPopupOnHide:_,onClick:L,"onUpdate:open":k}=v,H=aZ(v,["type","disabled","danger","loading","htmlType","class","overlay","trigger","align","open","visible","onVisibleChange","placement","href","title","icon","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","onClick","onUpdate:open"]),V={align:$,disabled:h,trigger:h?[]:S,placement:T,getPopupContainer:s==null?void 0:s.value,onOpenChange:a,mouseEnterDelay:P,mouseLeaveDelay:I,open:D??O,overlayClassName:N,overlayStyle:R,destroyPopupOnHide:_},U=C(dn,{danger:g,type:m,disabled:h,loading:x,onClick:L,htmlType:y,href:M,title:B},{default:n.default}),q=C(dn,{danger:g,type:m,icon:F},null);return c(C(iZ,j(j({},H),{},{class:ge(u.value,w,d.value)}),{default:()=>[n.leftButton?n.leftButton({button:U}):U,C(zo,V,{default:()=>[n.rightButton?n.rightButton({button:q}):q],overlay:()=>b})]}))}}});var lZ={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"};const sZ=lZ;function N$(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){uZ(e,o,n[o])})}return e}function uZ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var $1=function(t,n){var r=N$({},t,n.attrs);return C(vt,N$({},r,{icon:sZ}),null)};$1.displayName="RightOutlined";$1.inheritAttrs=!1;const xo=$1,SP=Symbol("OverrideContextKey"),CP=()=>lt(SP,void 0),E1=e=>{var t,n,r;const{prefixCls:o,mode:a,selectable:i,validator:l,onClick:s,expandIcon:u}=CP()||{};it(SP,{prefixCls:z(()=>{var c,d;return(d=(c=e.prefixCls)===null||c===void 0?void 0:c.value)!==null&&d!==void 0?d:o==null?void 0:o.value}),mode:z(()=>{var c,d;return(d=(c=e.mode)===null||c===void 0?void 0:c.value)!==null&&d!==void 0?d:a==null?void 0:a.value}),selectable:z(()=>{var c,d;return(d=(c=e.selectable)===null||c===void 0?void 0:c.value)!==null&&d!==void 0?d:i==null?void 0:i.value}),validator:(t=e.validator)!==null&&t!==void 0?t:l,onClick:(n=e.onClick)!==null&&n!==void 0?n:s,expandIcon:(r=e.expandIcon)!==null&&r!==void 0?r:u==null?void 0:u.value})},$P=he({compatConfig:{MODE:3},name:"ADropdown",inheritAttrs:!1,props:at(xP(),{mouseEnterDelay:.15,mouseLeaveDelay:.1,placement:"bottomLeft",trigger:"hover"}),slots:Object,setup(e,t){let{slots:n,attrs:r,emit:o}=t;const{prefixCls:a,rootPrefixCls:i,direction:l,getPopupContainer:s}=He("dropdown",e),[u,c]=wP(a),d=z(()=>{const{placement:h="",transitionName:g}=e;return g!==void 0?g:h.includes("top")?`${i.value}-slide-down`:`${i.value}-slide-up`});E1({prefixCls:z(()=>`${a.value}-menu`),expandIcon:z(()=>C("span",{class:`${a.value}-menu-submenu-arrow`},[C(xo,{class:`${a.value}-menu-submenu-arrow-icon`},null)])),mode:z(()=>"vertical"),selectable:z(()=>!1),onClick:()=>{},validator:h=>{Jt()}});const f=()=>{var h,g,x;const y=e.overlay||((h=n.overlay)===null||h===void 0?void 0:h.call(n)),w=Array.isArray(y)?y[0]:y;if(!w)return null;const b=w.props||{};qt(!b.mode||b.mode==="vertical","Dropdown",`mode="${b.mode}" is not supported for Dropdown's Menu.`);const{selectable:S=!1,expandIcon:$=(x=(g=w.children)===null||g===void 0?void 0:g.expandIcon)===null||x===void 0?void 0:x.call(g)}=b,D=typeof $<"u"&&hn($)?$:C("span",{class:`${a.value}-menu-submenu-arrow`},[C(xo,{class:`${a.value}-menu-submenu-arrow-icon`},null)]);return hn(w)?At(w,{mode:"vertical",selectable:S,expandIcon:()=>D}):w},p=z(()=>{const h=e.placement;if(!h)return l.value==="rtl"?"bottomRight":"bottomLeft";if(h.includes("Center")){const g=h.slice(0,h.indexOf("Center"));return qt(!h.includes("Center"),"Dropdown",`You are using '${h}' placement in Dropdown, which is deprecated. Try to use '${g}' instead.`),g}return h}),v=z(()=>typeof e.visible=="boolean"?e.visible:e.open),m=h=>{o("update:visible",h),o("visibleChange",h),o("update:open",h),o("openChange",h)};return()=>{var h,g;const{arrow:x,trigger:y,disabled:w,overlayClassName:b}=e,S=(h=n.default)===null||h===void 0?void 0:h.call(n)[0],$=At(S,E({class:ge((g=S==null?void 0:S.props)===null||g===void 0?void 0:g.class,{[`${a.value}-rtl`]:l.value==="rtl"},`${a.value}-trigger`)},w?{disabled:w}:{})),D=ge(b,c.value,{[`${a.value}-rtl`]:l.value==="rtl"}),O=w?[]:y;let A;O&&O.includes("contextmenu")&&(A=!0);const T=v1({arrowPointAtCenter:typeof x=="object"&&x.pointAtCenter,autoAdjustOverflow:!0}),M=pt(E(E(E({},e),r),{visible:v.value,builtinPlacements:T,overlayClassName:D,arrow:!!x,alignPoint:A,prefixCls:a.value,getPopupContainer:s==null?void 0:s.value,transitionName:d.value,trigger:O,onVisibleChange:m,placement:p.value}),["overlay","onUpdate:visible"]);return u(C(vP,M,{default:()=>[$],overlay:f}))}}});$P.Button=qu;const zo=$P;var cZ=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const dZ=()=>({prefixCls:String,href:String,separator:Z.any,dropdownProps:We(),overlay:Z.any,onClick:Wi()}),Gu=he({compatConfig:{MODE:3},name:"ABreadcrumbItem",inheritAttrs:!1,__ANT_BREADCRUMB_ITEM:!0,props:dZ(),slots:Object,setup(e,t){let{slots:n,attrs:r,emit:o}=t;const{prefixCls:a}=He("breadcrumb",e),i=(s,u)=>{const c=Sn(n,e,"overlay");return c?C(zo,j(j({},e.dropdownProps),{},{overlay:c,placement:"bottom"}),{default:()=>[C("span",{class:`${u}-overlay-link`},[s,C(mc,null,null)])]}):s},l=s=>{o("click",s)};return()=>{var s;const u=(s=Sn(n,e,"separator"))!==null&&s!==void 0?s:"/",c=Sn(n,e),{class:d,style:f}=r,p=cZ(r,["class","style"]);let v;return e.href!==void 0?v=C("a",j({class:`${a.value}-link`,onClick:l},p),[c]):v=C("span",j({class:`${a.value}-link`,onClick:l},p),[c]),v=i(v,a.value),c!=null?C("li",{class:d,style:f},[v,u&&C("span",{class:`${a.value}-separator`},[u])]):null}}});function fZ(e,t,n,r){let o=n?n.call(r,e,t):void 0;if(o!==void 0)return!!o;if(e===t)return!0;if(typeof e!="object"||!e||typeof t!="object"||!t)return!1;const a=Object.keys(e),i=Object.keys(t);if(a.length!==i.length)return!1;const l=Object.prototype.hasOwnProperty.bind(t);for(let s=0;s<a.length;s++){const u=a[s];if(!l(u))return!1;const c=e[u],d=t[u];if(o=n?n.call(r,c,d,u):void 0,o===!1||o===void 0&&c!==d)return!1}return!0}function Pl(e,t){return fZ(cn(e),cn(t))}const EP=Symbol("menuContextKey"),DP=e=>{it(EP,e)},Ta=()=>lt(EP),AP=Symbol("ForceRenderKey"),pZ=e=>{it(AP,e)},OP=()=>lt(AP,!1),TP=Symbol("menuFirstLevelContextKey"),MP=e=>{it(TP,e)},mZ=()=>lt(TP,!0),fp=he({compatConfig:{MODE:3},name:"MenuContextProvider",inheritAttrs:!1,props:{mode:{type:String,default:void 0},overflowDisabled:{type:Boolean,default:void 0}},setup(e,t){let{slots:n}=t;const r=Ta(),o=E({},r);return e.mode!==void 0&&(o.mode=Ye(e,"mode")),e.overflowDisabled!==void 0&&(o.overflowDisabled=Ye(e,"overflowDisabled")),DP(o),()=>{var a;return(a=n.default)===null||a===void 0?void 0:a.call(n)}}}),vZ=DP,NP=Symbol("siderCollapsed"),PP=Symbol("siderHookProvider"),od="$$__vc-menu-more__key",IP=Symbol("KeyPathContext"),D1=()=>lt(IP,{parentEventKeys:z(()=>[]),parentKeys:z(()=>[]),parentInfo:{}}),hZ=(e,t,n)=>{const{parentEventKeys:r,parentKeys:o}=D1(),a=z(()=>[...r.value,e]),i=z(()=>[...o.value,t]);return it(IP,{parentEventKeys:a,parentKeys:i,parentInfo:n}),i},_P=Symbol("measure"),P$=he({compatConfig:{MODE:3},setup(e,t){let{slots:n}=t;return it(_P,!0),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}}),A1=()=>lt(_P,!1),gZ=hZ;function BP(e){const{mode:t,rtl:n,inlineIndent:r}=Ta();return z(()=>t.value!=="inline"?null:n.value?{paddingRight:`${e.value*r.value}px`}:{paddingLeft:`${e.value*r.value}px`})}let yZ=0;const bZ=()=>({id:String,role:String,disabled:Boolean,danger:Boolean,title:{type:[String,Boolean],default:void 0},icon:Z.any,onMouseenter:Function,onMouseleave:Function,onClick:Function,onKeydown:Function,onFocus:Function,originItemValue:We()}),Lo=he({compatConfig:{MODE:3},name:"AMenuItem",inheritAttrs:!1,props:bZ(),slots:Object,setup(e,t){let{slots:n,emit:r,attrs:o}=t;const a=Kn(),i=A1(),l=typeof a.vnode.key=="symbol"?String(a.vnode.key):a.vnode.key;qt(typeof a.vnode.key!="symbol","MenuItem",`MenuItem \`:key="${String(l)}"\` not support Symbol type`);const s=`menu_item_${++yZ}_$$_${l}`,{parentEventKeys:u,parentKeys:c}=D1(),{prefixCls:d,activeKeys:f,disabled:p,changeActiveKeys:v,rtl:m,inlineCollapsed:h,siderCollapsed:g,onItemClick:x,selectedKeys:y,registerMenuInfo:w,unRegisterMenuInfo:b}=Ta(),S=mZ(),$=pe(!1),D=z(()=>[...c.value,l]);w(s,{eventKey:s,key:l,parentEventKeys:u,parentKeys:c,isLeaf:!0}),st(()=>{b(s)}),Ne(f,()=>{$.value=!!f.value.find(k=>k===l)},{immediate:!0});const A=z(()=>p.value||e.disabled),T=z(()=>y.value.includes(l)),M=z(()=>{const k=`${d.value}-item`;return{[`${k}`]:!0,[`${k}-danger`]:e.danger,[`${k}-active`]:$.value,[`${k}-selected`]:T.value,[`${k}-disabled`]:A.value}}),B=k=>({key:l,eventKey:s,keyPath:D.value,eventKeyPath:[...u.value,s],domEvent:k,item:E(E({},e),o)}),F=k=>{if(A.value)return;const H=B(k);r("click",k),x(H)},P=k=>{A.value||(v(D.value),r("mouseenter",k))},I=k=>{A.value||(v([]),r("mouseleave",k))},N=k=>{if(r("keydown",k),k.which===_e.ENTER){const H=B(k);r("click",k),x(H)}},R=k=>{v(D.value),r("focus",k)},_=(k,H)=>{const V=C("span",{class:`${d.value}-title-content`},[H]);return(!k||hn(H)&&H.type==="span")&&H&&h.value&&S&&typeof H=="string"?C("div",{class:`${d.value}-inline-collapsed-noicon`},[H.charAt(0)]):V},L=BP(z(()=>D.value.length));return()=>{var k,H,V,U,q;if(i)return null;const K=(k=e.title)!==null&&k!==void 0?k:(H=n.title)===null||H===void 0?void 0:H.call(n),X=Lt((V=n.default)===null||V===void 0?void 0:V.call(n)),re=X.length;let ee=K;typeof K>"u"?ee=S&&re?X:"":K===!1&&(ee="");const G={title:ee};!g.value&&!h.value&&(G.title=null,G.open=!1);const le={};e.role==="option"&&(le["aria-selected"]=T.value);const ue=(U=e.icon)!==null&&U!==void 0?U:(q=n.icon)===null||q===void 0?void 0:q.call(n,e);return C(Br,j(j({},G),{},{placement:m.value?"left":"right",overlayClassName:`${d.value}-inline-collapsed-tooltip`}),{default:()=>[C(ql.Item,j(j(j({component:"li"},o),{},{id:e.id,style:E(E({},o.style||{}),L.value),class:[M.value,{[`${o.class}`]:!!o.class,[`${d.value}-item-only-child`]:(ue?re+1:re)===1}],role:e.role||"menuitem",tabindex:e.disabled?null:-1,"data-menu-id":l,"aria-disabled":e.disabled},le),{},{onMouseenter:P,onMouseleave:I,onClick:F,onKeydown:N,onFocus:R,title:typeof K=="string"?K:void 0}),{default:()=>[At(typeof ue=="function"?ue(e.originItemValue):ue,{class:`${d.value}-item-icon`},!1),_(ue,X)]})]})}}}),Xa={adjustX:1,adjustY:1},xZ={topLeft:{points:["bl","tl"],overflow:Xa,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Xa,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:Xa,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:Xa,offset:[4,0]}},wZ={topLeft:{points:["bl","tl"],overflow:Xa,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Xa,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:Xa,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:Xa,offset:[4,0]}},SZ={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},I$=he({compatConfig:{MODE:3},name:"PopupTrigger",inheritAttrs:!1,props:{prefixCls:String,mode:String,visible:Boolean,popupClassName:String,popupOffset:Array,disabled:Boolean,onVisibleChange:Function},slots:Object,emits:["visibleChange"],setup(e,t){let{slots:n,emit:r}=t;const o=pe(!1),{getPopupContainer:a,rtl:i,subMenuOpenDelay:l,subMenuCloseDelay:s,builtinPlacements:u,triggerSubMenuAction:c,forceSubMenuRender:d,motion:f,defaultMotions:p,rootClassName:v}=Ta(),m=OP(),h=z(()=>i.value?E(E({},wZ),u.value):E(E({},xZ),u.value)),g=z(()=>SZ[e.mode]),x=pe();Ne(()=>e.visible,b=>{tt.cancel(x.value),x.value=tt(()=>{o.value=b})},{immediate:!0}),st(()=>{tt.cancel(x.value)});const y=b=>{r("visibleChange",b)},w=z(()=>{var b,S;const $=f.value||((b=p.value)===null||b===void 0?void 0:b[e.mode])||((S=p.value)===null||S===void 0?void 0:S.other),D=typeof $=="function"?$():$;return D?to(D.name,{css:!0}):void 0});return()=>{const{prefixCls:b,popupClassName:S,mode:$,popupOffset:D,disabled:O}=e;return C(ol,{prefixCls:b,popupClassName:ge(`${b}-popup`,{[`${b}-rtl`]:i.value},S,v.value),stretch:$==="horizontal"?"minWidth":null,getPopupContainer:a.value,builtinPlacements:h.value,popupPlacement:g.value,popupVisible:o.value,popupAlign:D&&{offset:D},action:O?[]:[c.value],mouseEnterDelay:l.value,mouseLeaveDelay:s.value,onPopupVisibleChange:y,forceRender:m||d.value,popupAnimation:w.value},{popup:n.popup,default:n.default})}}}),FP=(e,t)=>{let{slots:n,attrs:r}=t;var o;const{prefixCls:a,mode:i}=Ta();return C("ul",j(j({},r),{},{class:ge(a.value,`${a.value}-sub`,`${a.value}-${i.value==="inline"?"inline":"vertical"}`),"data-menu-list":!0}),[(o=n.default)===null||o===void 0?void 0:o.call(n)])};FP.displayName="SubMenuList";const RP=FP,CZ=he({compatConfig:{MODE:3},name:"InlineSubMenuList",inheritAttrs:!1,props:{id:String,open:Boolean,keyPath:Array},setup(e,t){let{slots:n}=t;const r=z(()=>"inline"),{motion:o,mode:a,defaultMotions:i}=Ta(),l=z(()=>a.value===r.value),s=be(!l.value),u=z(()=>l.value?e.open:!1);Ne(a,()=>{l.value&&(s.value=!1)},{flush:"post"});const c=z(()=>{var d,f;const p=o.value||((d=i.value)===null||d===void 0?void 0:d[r.value])||((f=i.value)===null||f===void 0?void 0:f.other),v=typeof p=="function"?p():p;return E(E({},v),{appear:e.keyPath.length<=1})});return()=>{var d;return s.value?null:C(fp,{mode:r.value},{default:()=>[C(_n,c.value,{default:()=>[vn(C(RP,{id:e.id},{default:()=>[(d=n.default)===null||d===void 0?void 0:d.call(n)]}),[[ur,u.value]])]})]})}}});let _$=0;const $Z=()=>({icon:Z.any,title:Z.any,disabled:Boolean,level:Number,popupClassName:String,popupOffset:Array,internalPopupClose:Boolean,eventKey:String,expandIcon:Function,theme:String,onMouseenter:Function,onMouseleave:Function,onTitleClick:Function,originItemValue:We()}),qi=he({compatConfig:{MODE:3},name:"ASubMenu",inheritAttrs:!1,props:$Z(),slots:Object,setup(e,t){let{slots:n,attrs:r,emit:o}=t;var a,i;MP(!1);const l=A1(),s=Kn(),u=typeof s.vnode.key=="symbol"?String(s.vnode.key):s.vnode.key;qt(typeof s.vnode.key!="symbol","SubMenu",`SubMenu \`:key="${String(u)}"\` not support Symbol type`);const c=Ag(u)?u:`sub_menu_${++_$}_$$_not_set_key`,d=(a=e.eventKey)!==null&&a!==void 0?a:Ag(u)?`sub_menu_${++_$}_$$_${u}`:c,{parentEventKeys:f,parentInfo:p,parentKeys:v}=D1(),m=z(()=>[...v.value,c]),h=pe([]),g={eventKey:d,key:c,parentEventKeys:f,childrenEventKeys:h,parentKeys:v};(i=p.childrenEventKeys)===null||i===void 0||i.value.push(d),st(()=>{var ae;p.childrenEventKeys&&(p.childrenEventKeys.value=(ae=p.childrenEventKeys)===null||ae===void 0?void 0:ae.value.filter(ce=>ce!=d))}),gZ(d,c,g);const{prefixCls:x,activeKeys:y,disabled:w,changeActiveKeys:b,mode:S,inlineCollapsed:$,openKeys:D,overflowDisabled:O,onOpenChange:A,registerMenuInfo:T,unRegisterMenuInfo:M,selectedSubMenuKeys:B,expandIcon:F,theme:P}=Ta(),I=u!=null,N=!l&&(OP()||!I);pZ(N),(l&&I||!l&&!I||N)&&(T(d,g),st(()=>{M(d)}));const R=z(()=>`${x.value}-submenu`),_=z(()=>w.value||e.disabled),L=pe(),k=pe(),H=z(()=>D.value.includes(c)),V=z(()=>!O.value&&H.value),U=z(()=>B.value.includes(c)),q=pe(!1);Ne(y,()=>{q.value=!!y.value.find(ae=>ae===c)},{immediate:!0});const K=ae=>{_.value||(o("titleClick",ae,c),S.value==="inline"&&A(c,!H.value))},X=ae=>{_.value||(b(m.value),o("mouseenter",ae))},re=ae=>{_.value||(b([]),o("mouseleave",ae))},ee=BP(z(()=>m.value.length)),G=ae=>{S.value!=="inline"&&A(c,ae)},le=()=>{b(m.value)},ue=d&&`${d}-popup`,me=z(()=>ge(x.value,`${x.value}-${e.theme||P.value}`,e.popupClassName)),Se=(ae,ce)=>{if(!ce)return $.value&&!v.value.length&&ae&&typeof ae=="string"?C("div",{class:`${x.value}-inline-collapsed-noicon`},[ae.charAt(0)]):C("span",{class:`${x.value}-title-content`},[ae]);const Ce=hn(ae)&&ae.type==="span";return C(dt,null,[At(typeof ce=="function"?ce(e.originItemValue):ce,{class:`${x.value}-item-icon`},!1),Ce?ae:C("span",{class:`${x.value}-title-content`},[ae])])},Q=z(()=>S.value!=="inline"&&m.value.length>1?"vertical":S.value),te=z(()=>S.value==="horizontal"?"vertical":S.value),de=z(()=>Q.value==="horizontal"?"vertical":Q.value),Y=()=>{var ae,ce;const Ce=R.value,ye=(ae=e.icon)!==null&&ae!==void 0?ae:(ce=n.icon)===null||ce===void 0?void 0:ce.call(n,e),J=e.expandIcon||n.expandIcon||F.value,ne=Se(Sn(n,e,"title"),ye);return C("div",{style:ee.value,class:`${Ce}-title`,tabindex:_.value?null:-1,ref:L,title:typeof ne=="string"?ne:null,"data-menu-id":c,"aria-expanded":V.value,"aria-haspopup":!0,"aria-controls":ue,"aria-disabled":_.value,onClick:K,onFocus:le},[ne,S.value!=="horizontal"&&J?J(E(E({},e),{isOpen:V.value})):C("i",{class:`${Ce}-arrow`},null)])};return()=>{var ae;if(l)return I?(ae=n.default)===null||ae===void 0?void 0:ae.call(n):null;const ce=R.value;let Ce=()=>null;if(!O.value&&S.value!=="inline"){const ye=S.value==="horizontal"?[0,8]:[10,0];Ce=()=>C(I$,{mode:Q.value,prefixCls:ce,visible:!e.internalPopupClose&&V.value,popupClassName:me.value,popupOffset:e.popupOffset||ye,disabled:_.value,onVisibleChange:G},{default:()=>[Y()],popup:()=>C(fp,{mode:de.value},{default:()=>[C(RP,{id:ue,ref:k},{default:n.default})]})})}else Ce=()=>C(I$,null,{default:Y});return C(fp,{mode:te.value},{default:()=>[C(ql.Item,j(j({component:"li"},r),{},{role:"none",class:ge(ce,`${ce}-${S.value}`,r.class,{[`${ce}-open`]:V.value,[`${ce}-active`]:q.value,[`${ce}-selected`]:U.value,[`${ce}-disabled`]:_.value}),onMouseenter:X,onMouseleave:re,"data-submenu-id":c}),{default:()=>C(dt,null,[Ce(),!O.value&&C(CZ,{id:ue,open:V.value,keyPath:m.value},{default:n.default})])})]})}}});function zP(e,t){return e.classList?e.classList.contains(t):` ${e.className} `.indexOf(` ${t} `)>-1}function t0(e,t){e.classList?e.classList.add(t):zP(e,t)||(e.className=`${e.className} ${t}`)}function n0(e,t){if(e.classList)e.classList.remove(t);else if(zP(e,t)){const n=e.className;e.className=` ${n} `.replace(` ${t} `," ")}}const EZ=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant-motion-collapse",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return{name:e,appear:t,css:!0,onBeforeEnter:n=>{n.style.height="0px",n.style.opacity="0",t0(n,e)},onEnter:n=>{ht(()=>{n.style.height=`${n.scrollHeight}px`,n.style.opacity="1"})},onAfterEnter:n=>{n&&(n0(n,e),n.style.height=null,n.style.opacity=null)},onBeforeLeave:n=>{t0(n,e),n.style.height=`${n.offsetHeight}px`,n.style.opacity=null},onLeave:n=>{setTimeout(()=>{n.style.height="0px",n.style.opacity="0"})},onAfterLeave:n=>{n&&(n0(n,e),n.style&&(n.style.height=null,n.style.opacity=null))}}},yc=EZ,DZ=()=>({title:Z.any,originItemValue:We()}),Xu=he({compatConfig:{MODE:3},name:"AMenuItemGroup",inheritAttrs:!1,props:DZ(),slots:Object,setup(e,t){let{slots:n,attrs:r}=t;const{prefixCls:o}=Ta(),a=z(()=>`${o.value}-item-group`),i=A1();return()=>{var l,s;return i?(l=n.default)===null||l===void 0?void 0:l.call(n):C("li",j(j({},r),{},{onClick:u=>u.stopPropagation(),class:a.value}),[C("div",{title:typeof e.title=="string"?e.title:void 0,class:`${a.value}-title`},[Sn(n,e,"title")]),C("ul",{class:`${a.value}-list`},[(s=n.default)===null||s===void 0?void 0:s.call(n)])])}}}),AZ=()=>({prefixCls:String,dashed:Boolean}),Yu=he({compatConfig:{MODE:3},name:"AMenuDivider",props:AZ(),setup(e){const{prefixCls:t}=Ta(),n=z(()=>({[`${t.value}-item-divider`]:!0,[`${t.value}-item-divider-dashed`]:!!e.dashed}));return()=>C("li",{class:n.value},null)}});var OZ=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function r0(e,t,n){return(e||[]).map((r,o)=>{if(r&&typeof r=="object"){const a=r,{label:i,children:l,key:s,type:u}=a,c=OZ(a,["label","children","key","type"]),d=s??`tmp-${o}`,f=n?n.parentKeys.slice():[],p=[],v={eventKey:d,key:d,parentEventKeys:be(f),parentKeys:be(f),childrenEventKeys:be(p),isLeaf:!1};if(l||u==="group"){if(u==="group"){const h=r0(l,t,n);return C(Xu,j(j({key:d},c),{},{title:i,originItemValue:r}),{default:()=>[h]})}t.set(d,v),n&&n.childrenEventKeys.push(d);const m=r0(l,t,{childrenEventKeys:p,parentKeys:[].concat(f,d)});return C(qi,j(j({key:d},c),{},{title:i,originItemValue:r}),{default:()=>[m]})}return u==="divider"?C(Yu,j({key:d},c),null):(v.isLeaf=!0,t.set(d,v),C(Lo,j(j({key:d},c),{},{originItemValue:r}),{default:()=>[i]}))}return null}).filter(r=>r)}function TZ(e){const t=pe([]),n=pe(!1),r=pe(new Map);return Ne(()=>e.items,()=>{const o=new Map;n.value=!1,e.items?(n.value=!0,t.value=r0(e.items,o)):t.value=void 0,r.value=o},{immediate:!0,deep:!0}),{itemsNodes:t,store:r,hasItmes:n}}const MZ=e=>{const{componentCls:t,motionDurationSlow:n,menuHorizontalHeight:r,colorSplit:o,lineWidth:a,lineType:i,menuItemPaddingInline:l}=e;return{[`${t}-horizontal`]:{lineHeight:`${r}px`,border:0,borderBottom:`${a}px ${i} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:l},[`> ${t}-item:hover,
- > ${t}-item-active,
- > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},NZ=MZ,PZ=e=>{let{componentCls:t,menuArrowOffset:n}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical,
- ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${n})`},"&::after":{transform:`rotate(45deg) translateY(${n})`}}}}},IZ=PZ,B$=e=>E({},ya(e)),_Z=(e,t)=>{const{componentCls:n,colorItemText:r,colorItemTextSelected:o,colorGroupTitle:a,colorItemBg:i,colorSubItemBg:l,colorItemBgSelected:s,colorActiveBarHeight:u,colorActiveBarWidth:c,colorActiveBarBorderSize:d,motionDurationSlow:f,motionEaseInOut:p,motionEaseOut:v,menuItemPaddingInline:m,motionDurationMid:h,colorItemTextHover:g,lineType:x,colorSplit:y,colorItemTextDisabled:w,colorDangerItemText:b,colorDangerItemTextHover:S,colorDangerItemTextSelected:$,colorDangerItemBgActive:D,colorDangerItemBgSelected:O,colorItemBgHover:A,menuSubMenuBg:T,colorItemTextSelectedHorizontal:M,colorItemBgSelectedHorizontal:B}=e;return{[`${n}-${t}`]:{color:r,background:i,[`&${n}-root:focus-visible`]:E({},B$(e)),[`${n}-item-group-title`]:{color:a},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:o}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${w} !important`},[`${n}-item:hover, ${n}-submenu-title:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:g}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:A},"&:active":{backgroundColor:s}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:A},"&:active":{backgroundColor:s}}},[`${n}-item-danger`]:{color:b,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:S}},[`&${n}-item:active`]:{background:D}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:$},["a, a:hover"]:{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:s,[`&${n}-item-danger`]:{backgroundColor:O}},[`${n}-item, ${n}-submenu-title`]:{[`&:not(${n}-item-disabled):focus-visible`]:E({},B$(e))},[`&${n}-submenu > ${n}`]:{backgroundColor:T},[`&${n}-popup > ${n}`]:{backgroundColor:i},[`&${n}-horizontal`]:E(E({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:d,marginTop:-d,marginBottom:0,borderRadius:0,"&::after":{position:"absolute",insetInline:m,bottom:0,borderBottom:`${u}px solid transparent`,transition:`border-color ${f} ${p}`,content:'""'},["&:hover, &-active, &-open"]:{"&::after":{borderBottomWidth:u,borderBottomColor:M}},["&-selected"]:{color:M,backgroundColor:B,"&::after":{borderBottomWidth:u,borderBottomColor:M}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${d}px ${x} ${y}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:l},[`${n}-item, ${n}-submenu-title`]:d&&c?{width:`calc(100% + ${d}px)`}:{},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${c}px solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${h} ${v}`,`opacity ${h} ${v}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:$}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${h} ${p}`,`opacity ${h} ${p}`].join(",")}}}}}},F$=_Z,R$=e=>{const{componentCls:t,menuItemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:a,marginXS:i,marginXXS:l}=e,s=o+a+i;return{[`${t}-item`]:{position:"relative"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`,paddingInline:o,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:l,width:`calc(100% - ${r*2}px)`},[`${t}-submenu`]:{paddingBottom:.02},[`> ${t}-item,
- > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`},[`${t}-item-group-list ${t}-submenu-title,
- ${t}-submenu-title`]:{paddingInlineEnd:s}}},BZ=e=>{const{componentCls:t,iconCls:n,menuItemHeight:r,colorTextLightSolid:o,dropdownWidth:a,controlHeightLG:i,motionDurationMid:l,motionEaseOut:s,paddingXL:u,fontSizeSM:c,fontSizeLG:d,motionDurationSlow:f,paddingXS:p,boxShadowSecondary:v}=e,m={height:r,lineHeight:`${r}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{["&-inline, &-vertical"]:E({[`&${t}-root`]:{boxShadow:"none"}},R$(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:E(E({},R$(e)),{boxShadow:v})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:a,maxHeight:`calc(100vh - ${i*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${f}`,`background ${f}`,`padding ${l} ${s}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:m,[`& ${t}-item-group-title`]:{paddingInlineStart:u}},[`${t}-item`]:m}},{[`${t}-inline-collapsed`]:{width:r*2,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:d,textAlign:"center"}}},[`> ${t}-item,
- > ${t}-item-group > ${t}-item-group-list > ${t}-item,
- > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,
- > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${c}px)`,textOverflow:"clip",[`
- ${t}-submenu-arrow,
- ${t}-submenu-expand-icon
- `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:d,lineHeight:`${r}px`,"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:o}},[`${t}-item-group-title`]:E(E({},gn),{paddingInline:p})}}]},FZ=BZ,z$=e=>{const{componentCls:t,fontSize:n,motionDurationSlow:r,motionDurationMid:o,motionEaseInOut:a,motionEaseOut:i,iconCls:l,controlHeightSM:s}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${r}`,`background ${r}`,`padding ${r} ${a}`].join(","),[`${t}-item-icon, ${l}`]:{minWidth:n,fontSize:n,transition:[`font-size ${o} ${i}`,`margin ${r} ${a}`,`color ${r}`].join(","),"+ span":{marginInlineStart:s-n,opacity:1,transition:[`opacity ${r} ${a}`,`margin ${r}`,`color ${r}`].join(",")}},[`${t}-item-icon`]:E({},Qi()),[`&${t}-item-only-child`]:{[`> ${l}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},L$=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:a,menuArrowOffset:i}=e;return{[`${t}-submenu`]:{["&-expand-icon, &-arrow"]:{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:a,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:a*.6,height:a*.15,backgroundColor:"currentcolor",borderRadius:o,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${i})`},"&::after":{transform:`rotate(-45deg) translateY(${i})`}}}}},RZ=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:a,motionEaseInOut:i,lineHeight:l,paddingXS:s,padding:u,colorSplit:c,lineWidth:d,zIndexPopup:f,borderRadiusLG:p,radiusSubMenuItem:v,menuArrowSize:m,menuArrowOffset:h,lineType:g,menuPanelMaskInset:x}=e;return[{"":{[`${n}`]:E(E({},yo()),{["&-hidden"]:{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:E(E(E(E(E(E(E({},rt(e)),yo()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${o} cubic-bezier(0.2, 0, 0, 1) 0s`,["ul, ol"]:{margin:0,padding:0,listStyle:"none"},["&-overflow"]:{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.radiusItem},[`${n}-item-group-title`]:{padding:`${s}px ${u}px`,fontSize:r,lineHeight:l,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${o} ${i}`,`background ${o} ${i}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o} ${i}`,`background ${o} ${i}`,`padding ${a} ${i}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${o} ${i}`,`padding ${o} ${i}`].join(",")},[`${n}-title-content`]:{transition:`color ${o}`},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:c,borderStyle:g,borderWidth:0,borderTopWidth:d,marginBlock:d,padding:0,"&-dashed":{borderStyle:"dashed"}}}),z$(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${r*2}px ${u}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:f,background:"transparent",borderRadius:p,boxShadow:"none",transformOrigin:"0 0","&::before":{position:"absolute",inset:`${x}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:x},[`> ${n}`]:E(E(E({borderRadius:p},z$(e)),L$(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:v},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${i}`}})}}),L$(e)),{[`&-inline-collapsed ${n}-submenu-arrow,
- &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${h})`},"&::after":{transform:`rotate(45deg) translateX(-${h})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(-${m*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${h})`},"&::before":{transform:`rotate(45deg) translateX(${h})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},zZ=(e,t)=>nt("Menu",(r,o)=>{let{overrideComponentToken:a}=o;if((t==null?void 0:t.value)===!1)return[];const{colorBgElevated:i,colorPrimary:l,colorError:s,colorErrorHover:u,colorTextLightSolid:c}=r,{controlHeightLG:d,fontSize:f}=r,p=f/7*5,v=qe(r,{menuItemHeight:d,menuItemPaddingInline:r.margin,menuArrowSize:p,menuHorizontalHeight:d*1.15,menuArrowOffset:`${p*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:i}),m=new $t(c).setAlpha(.65).toRgbString(),h=qe(v,{colorItemText:m,colorItemTextHover:c,colorGroupTitle:m,colorItemTextSelected:c,colorItemBg:"#001529",colorSubItemBg:"#000c17",colorItemBgActive:"transparent",colorItemBgSelected:l,colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemTextDisabled:new $t(c).setAlpha(.25).toRgbString(),colorDangerItemText:s,colorDangerItemTextHover:u,colorDangerItemTextSelected:c,colorDangerItemBgActive:s,colorDangerItemBgSelected:s,menuSubMenuBg:"#001529",colorItemTextSelectedHorizontal:c,colorItemBgSelectedHorizontal:l},E({},a));return[RZ(v),NZ(v),FZ(v),F$(v,"light"),F$(h,"dark"),IZ(v),gc(v),jo(v,"slide-up"),jo(v,"slide-down"),Ps(v,"zoom-big")]},r=>{const{colorPrimary:o,colorError:a,colorTextDisabled:i,colorErrorBg:l,colorText:s,colorTextDescription:u,colorBgContainer:c,colorFillAlter:d,colorFillContent:f,lineWidth:p,lineWidthBold:v,controlItemBgActive:m,colorBgTextHover:h}=r;return{dropdownWidth:160,zIndexPopup:r.zIndexPopupBase+50,radiusItem:r.borderRadiusLG,radiusSubMenuItem:r.borderRadiusSM,colorItemText:s,colorItemTextHover:s,colorItemTextHoverHorizontal:o,colorGroupTitle:u,colorItemTextSelected:o,colorItemTextSelectedHorizontal:o,colorItemBg:c,colorItemBgHover:h,colorItemBgActive:f,colorSubItemBg:d,colorItemBgSelected:m,colorItemBgSelectedHorizontal:"transparent",colorActiveBarWidth:0,colorActiveBarHeight:v,colorActiveBarBorderSize:p,colorItemTextDisabled:i,colorDangerItemText:a,colorDangerItemTextHover:a,colorDangerItemTextSelected:a,colorDangerItemBgActive:l,colorDangerItemBgSelected:l,itemMarginInline:r.marginXXS}})(e),LZ=()=>({id:String,prefixCls:String,items:Array,disabled:Boolean,inlineCollapsed:Boolean,disabledOverflow:Boolean,forceSubMenuRender:Boolean,openKeys:Array,selectedKeys:Array,activeKey:String,selectable:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},tabindex:{type:[Number,String]},motion:Object,role:String,theme:{type:String,default:"light"},mode:{type:String,default:"vertical"},inlineIndent:{type:Number,default:24},subMenuOpenDelay:{type:Number,default:0},subMenuCloseDelay:{type:Number,default:.1},builtinPlacements:{type:Object},triggerSubMenuAction:{type:String,default:"hover"},getPopupContainer:Function,expandIcon:Function,onOpenChange:Function,onSelect:Function,onDeselect:Function,onClick:[Function,Array],onFocus:Function,onBlur:Function,onMousedown:Function,"onUpdate:openKeys":Function,"onUpdate:selectedKeys":Function,"onUpdate:activeKey":Function}),k$=[],mn=he({compatConfig:{MODE:3},name:"AMenu",inheritAttrs:!1,props:LZ(),slots:Object,setup(e,t){let{slots:n,emit:r,attrs:o}=t;const{direction:a,getPrefixCls:i}=He("menu",e),l=CP(),s=z(()=>{var K;return i("menu",e.prefixCls||((K=l==null?void 0:l.prefixCls)===null||K===void 0?void 0:K.value))}),[u,c]=zZ(s,z(()=>!l)),d=pe(new Map),f=lt(NP,be(void 0)),p=z(()=>f.value!==void 0?f.value:e.inlineCollapsed),{itemsNodes:v}=TZ(e),m=pe(!1);Qe(()=>{m.value=!0}),Je(()=>{qt(!(e.inlineCollapsed===!0&&e.mode!=="inline"),"Menu","`inlineCollapsed` should only be used when `mode` is inline."),qt(!(f.value!==void 0&&e.inlineCollapsed===!0),"Menu","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead.")});const h=be([]),g=be([]),x=be({});Ne(d,()=>{const K={};for(const X of d.value.values())K[X.key]=X;x.value=K},{flush:"post"}),Je(()=>{if(e.activeKey!==void 0){let K=[];const X=e.activeKey?x.value[e.activeKey]:void 0;X&&e.activeKey!==void 0?K=gh([].concat(xn(X.parentKeys),e.activeKey)):K=[],Pl(h.value,K)||(h.value=K)}}),Ne(()=>e.selectedKeys,K=>{K&&(g.value=K.slice())},{immediate:!0,deep:!0});const y=be([]);Ne([x,g],()=>{let K=[];g.value.forEach(X=>{const re=x.value[X];re&&(K=K.concat(xn(re.parentKeys)))}),K=gh(K),Pl(y.value,K)||(y.value=K)},{immediate:!0});const w=K=>{if(e.selectable){const{key:X}=K,re=g.value.includes(X);let ee;e.multiple?re?ee=g.value.filter(le=>le!==X):ee=[...g.value,X]:ee=[X];const G=E(E({},K),{selectedKeys:ee});Pl(ee,g.value)||(e.selectedKeys===void 0&&(g.value=ee),r("update:selectedKeys",ee),re&&e.multiple?r("deselect",G):r("select",G))}A.value!=="inline"&&!e.multiple&&b.value.length&&B(k$)},b=be([]);Ne(()=>e.openKeys,function(){let K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:b.value;Pl(b.value,K)||(b.value=K.slice())},{immediate:!0,deep:!0});let S;const $=K=>{clearTimeout(S),S=setTimeout(()=>{e.activeKey===void 0&&(h.value=K),r("update:activeKey",K[K.length-1])})},D=z(()=>!!e.disabled),O=z(()=>a.value==="rtl"),A=be("vertical"),T=pe(!1);Je(()=>{var K;(e.mode==="inline"||e.mode==="vertical")&&p.value?(A.value="vertical",T.value=p.value):(A.value=e.mode,T.value=!1),!((K=l==null?void 0:l.mode)===null||K===void 0)&&K.value&&(A.value=l.mode.value)});const M=z(()=>A.value==="inline"),B=K=>{b.value=K,r("update:openKeys",K),r("openChange",K)},F=be(b.value),P=pe(!1);Ne(b,()=>{M.value&&(F.value=b.value)},{immediate:!0}),Ne(M,()=>{if(!P.value){P.value=!0;return}M.value?b.value=F.value:B(k$)},{immediate:!0});const I=z(()=>({[`${s.value}`]:!0,[`${s.value}-root`]:!0,[`${s.value}-${A.value}`]:!0,[`${s.value}-inline-collapsed`]:T.value,[`${s.value}-rtl`]:O.value,[`${s.value}-${e.theme}`]:!0})),N=z(()=>i()),R=z(()=>({horizontal:{name:`${N.value}-slide-up`},inline:yc,other:{name:`${N.value}-zoom-big`}}));MP(!0);const _=function(){let K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const X=[],re=d.value;return K.forEach(ee=>{const{key:G,childrenEventKeys:le}=re.get(ee);X.push(G,..._(xn(le)))}),X},L=K=>{var X;r("click",K),w(K),(X=l==null?void 0:l.onClick)===null||X===void 0||X.call(l)},k=(K,X)=>{var re;const ee=((re=x.value[K])===null||re===void 0?void 0:re.childrenEventKeys)||[];let G=b.value.filter(le=>le!==K);if(X)G.push(K);else if(A.value!=="inline"){const le=_(xn(ee));G=gh(G.filter(ue=>!le.includes(ue)))}Pl(b,G)||B(G)},H=(K,X)=>{d.value.set(K,X),d.value=new Map(d.value)},V=K=>{d.value.delete(K),d.value=new Map(d.value)},U=be(0),q=z(()=>{var K;return e.expandIcon||n.expandIcon||!((K=l==null?void 0:l.expandIcon)===null||K===void 0)&&K.value?X=>{let re=e.expandIcon||n.expandIcon;return re=typeof re=="function"?re(X):re,At(re,{class:`${s.value}-submenu-expand-icon`},!1)}:null});return vZ({prefixCls:s,activeKeys:h,openKeys:b,selectedKeys:g,changeActiveKeys:$,disabled:D,rtl:O,mode:A,inlineIndent:z(()=>e.inlineIndent),subMenuCloseDelay:z(()=>e.subMenuCloseDelay),subMenuOpenDelay:z(()=>e.subMenuOpenDelay),builtinPlacements:z(()=>e.builtinPlacements),triggerSubMenuAction:z(()=>e.triggerSubMenuAction),getPopupContainer:z(()=>e.getPopupContainer),inlineCollapsed:T,theme:z(()=>e.theme),siderCollapsed:f,defaultMotions:z(()=>m.value?R.value:null),motion:z(()=>m.value?e.motion:null),overflowDisabled:pe(void 0),onOpenChange:k,onItemClick:L,registerMenuInfo:H,unRegisterMenuInfo:V,selectedSubMenuKeys:y,expandIcon:q,forceSubMenuRender:z(()=>e.forceSubMenuRender),rootClassName:c}),()=>{var K,X;const re=v.value||Lt((K=n.default)===null||K===void 0?void 0:K.call(n)),ee=U.value>=re.length-1||A.value!=="horizontal"||e.disabledOverflow,G=A.value!=="horizontal"||e.disabledOverflow?re:re.map((ue,me)=>C(fp,{key:ue.key,overflowDisabled:me>U.value},{default:()=>ue})),le=((X=n.overflowedIndicator)===null||X===void 0?void 0:X.call(n))||C(C1,null,null);return u(C(ql,j(j({},o),{},{onMousedown:e.onMousedown,prefixCls:`${s.value}-overflow`,component:"ul",itemComponent:Lo,class:[I.value,o.class,c.value],role:"menu",id:e.id,data:G,renderRawItem:ue=>ue,renderRawRest:ue=>{const me=ue.length,Se=me?re.slice(-me):null;return C(dt,null,[C(qi,{eventKey:od,key:od,title:le,disabled:ee,internalPopupClose:me===0},{default:()=>Se}),C(P$,null,{default:()=>[C(qi,{eventKey:od,key:od,title:le,disabled:ee,internalPopupClose:me===0},{default:()=>Se})]})])},maxCount:A.value!=="horizontal"||e.disabledOverflow?ql.INVALIDATE:ql.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:ue=>{U.value=ue}}),{default:()=>[C(Hy,{to:"body"},{default:()=>[C("div",{style:{display:"none"},"aria-hidden":!0},[C(P$,null,{default:()=>[G]})])]})]}))}}});mn.install=function(e){return e.component(mn.name,mn),e.component(Lo.name,Lo),e.component(qi.name,qi),e.component(Yu.name,Yu),e.component(Xu.name,Xu),e};mn.Item=Lo;mn.Divider=Yu;mn.SubMenu=qi;mn.ItemGroup=Xu;const kZ=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:E(E({},rt(e)),{color:e.breadcrumbBaseColor,fontSize:e.breadcrumbFontSize,[n]:{fontSize:e.breadcrumbIconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:E({color:e.breadcrumbLinkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${e.paddingXXS}px`,borderRadius:e.borderRadiusSM,height:e.lineHeight*e.fontSize,display:"inline-block",marginInline:-e.marginXXS,"&:hover":{color:e.breadcrumbLinkColorHover,backgroundColor:e.colorBgTextHover}},ba(e)),["li:last-child"]:{color:e.breadcrumbLastItemColor,[`& > ${t}-separator`]:{display:"none"}},[`${t}-separator`]:{marginInline:e.breadcrumbSeparatorMargin,color:e.breadcrumbSeparatorColor},[`${t}-link`]:{[`
- > ${n} + span,
- > ${n} + a
- `]:{marginInlineStart:e.marginXXS}},[`${t}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.lineHeight*e.fontSize,display:"inline-block",padding:`0 ${e.paddingXXS}px`,marginInline:-e.marginXXS,[`> ${n}`]:{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon},"&:hover":{color:e.breadcrumbLinkColorHover,backgroundColor:e.colorBgTextHover,a:{color:e.breadcrumbLinkColorHover}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}})}},HZ=nt("Breadcrumb",e=>{const t=qe(e,{breadcrumbBaseColor:e.colorTextDescription,breadcrumbFontSize:e.fontSize,breadcrumbIconFontSize:e.fontSize,breadcrumbLinkColor:e.colorTextDescription,breadcrumbLinkColorHover:e.colorText,breadcrumbLastItemColor:e.colorText,breadcrumbSeparatorMargin:e.marginXS,breadcrumbSeparatorColor:e.colorTextDescription});return[kZ(t)]}),jZ=()=>({prefixCls:String,routes:{type:Array},params:Z.any,separator:Z.any,itemRender:{type:Function}});function VZ(e,t){if(!e.breadcrumbName)return null;const n=Object.keys(t).join("|");return e.breadcrumbName.replace(new RegExp(`:(${n})`,"g"),(o,a)=>t[a]||o)}function H$(e){const{route:t,params:n,routes:r,paths:o}=e,a=r.indexOf(t)===r.length-1,i=VZ(t,n);return a?C("span",null,[i]):C("a",{href:`#/${o.join("/")}`},[i])}const zi=he({compatConfig:{MODE:3},name:"ABreadcrumb",inheritAttrs:!1,props:jZ(),slots:Object,setup(e,t){let{slots:n,attrs:r}=t;const{prefixCls:o,direction:a}=He("breadcrumb",e),[i,l]=HZ(o),s=(d,f)=>(d=(d||"").replace(/^\//,""),Object.keys(f).forEach(p=>{d=d.replace(`:${p}`,f[p])}),d),u=(d,f,p)=>{const v=[...d],m=s(f||"",p);return m&&v.push(m),v},c=d=>{let{routes:f=[],params:p={},separator:v,itemRender:m=H$}=d;const h=[];return f.map(g=>{const x=s(g.path,p);x&&h.push(x);const y=[...h];let w=null;g.children&&g.children.length&&(w=C(mn,{items:g.children.map(S=>({key:S.path||S.breadcrumbName,label:m({route:S,params:p,routes:f,paths:u(y,S.path,p)})}))},null));const b={separator:v};return w&&(b.overlay=w),C(Gu,j(j({},b),{},{key:x||g.breadcrumbName}),{default:()=>[m({route:g,params:p,routes:f,paths:y})]})})};return()=>{var d;let f;const{routes:p,params:v={}}=e,m=Lt(Sn(n,e)),h=(d=Sn(n,e,"separator"))!==null&&d!==void 0?d:"/",g=e.itemRender||n.itemRender||H$;p&&p.length>0?f=c({routes:p,params:v,separator:h,itemRender:g}):m.length&&(f=m.map((y,w)=>(Jt(typeof y.type=="object"&&(y.type.__ANT_BREADCRUMB_ITEM||y.type.__ANT_BREADCRUMB_SEPARATOR)),ha(y,{separator:h,key:w}))));const x={[o.value]:!0,[`${o.value}-rtl`]:a.value==="rtl",[`${r.class}`]:!!r.class,[l.value]:!0};return i(C("nav",j(j({},r),{},{class:x}),[C("ol",null,[f])]))}}});var WZ=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const UZ=()=>({prefixCls:String}),pp=he({compatConfig:{MODE:3},name:"ABreadcrumbSeparator",__ANT_BREADCRUMB_SEPARATOR:!0,inheritAttrs:!1,props:UZ(),setup(e,t){let{slots:n,attrs:r}=t;const{prefixCls:o}=He("breadcrumb",e);return()=>{var a;const{separator:i,class:l}=r,s=WZ(r,["separator","class"]),u=Lt((a=n.default)===null||a===void 0?void 0:a.call(n));return C("span",j({class:[`${o.value}-separator`,l]},s),[u.length>0?u:"/"])}}});zi.Item=Gu;zi.Separator=pp;zi.install=function(e){return e.component(zi.name,zi),e.component(Gu.name,Gu),e.component(pp.name,pp),e};var qn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function LP(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function KZ(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){if(this instanceof r){var o=[null];o.push.apply(o,arguments);var a=Function.bind.apply(t,o);return new a}return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var mp={},qZ={get exports(){return mp},set exports(e){mp=e}};(function(e,t){(function(n,r){e.exports=r()})(qn,function(){var n=1e3,r=6e4,o=36e5,a="millisecond",i="second",l="minute",s="hour",u="day",c="week",d="month",f="quarter",p="year",v="date",m="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,x={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(B){var F=["th","st","nd","rd"],P=B%100;return"["+B+(F[(P-20)%10]||F[P]||F[0])+"]"}},y=function(B,F,P){var I=String(B);return!I||I.length>=F?B:""+Array(F+1-I.length).join(P)+B},w={s:y,z:function(B){var F=-B.utcOffset(),P=Math.abs(F),I=Math.floor(P/60),N=P%60;return(F<=0?"+":"-")+y(I,2,"0")+":"+y(N,2,"0")},m:function B(F,P){if(F.date()<P.date())return-B(P,F);var I=12*(P.year()-F.year())+(P.month()-F.month()),N=F.clone().add(I,d),R=P-N<0,_=F.clone().add(I+(R?-1:1),d);return+(-(I+(P-N)/(R?N-_:_-N))||0)},a:function(B){return B<0?Math.ceil(B)||0:Math.floor(B)},p:function(B){return{M:d,y:p,w:c,d:u,D:v,h:s,m:l,s:i,ms:a,Q:f}[B]||String(B||"").toLowerCase().replace(/s$/,"")},u:function(B){return B===void 0}},b="en",S={};S[b]=x;var $=function(B){return B instanceof T},D=function B(F,P,I){var N;if(!F)return b;if(typeof F=="string"){var R=F.toLowerCase();S[R]&&(N=R),P&&(S[R]=P,N=R);var _=F.split("-");if(!N&&_.length>1)return B(_[0])}else{var L=F.name;S[L]=F,N=L}return!I&&N&&(b=N),N||!I&&b},O=function(B,F){if($(B))return B.clone();var P=typeof F=="object"?F:{};return P.date=B,P.args=arguments,new T(P)},A=w;A.l=D,A.i=$,A.w=function(B,F){return O(B,{locale:F.$L,utc:F.$u,x:F.$x,$offset:F.$offset})};var T=function(){function B(P){this.$L=D(P.locale,null,!0),this.parse(P)}var F=B.prototype;return F.parse=function(P){this.$d=function(I){var N=I.date,R=I.utc;if(N===null)return new Date(NaN);if(A.u(N))return new Date;if(N instanceof Date)return new Date(N);if(typeof N=="string"&&!/Z$/i.test(N)){var _=N.match(h);if(_){var L=_[2]-1||0,k=(_[7]||"0").substring(0,3);return R?new Date(Date.UTC(_[1],L,_[3]||1,_[4]||0,_[5]||0,_[6]||0,k)):new Date(_[1],L,_[3]||1,_[4]||0,_[5]||0,_[6]||0,k)}}return new Date(N)}(P),this.$x=P.x||{},this.init()},F.init=function(){var P=this.$d;this.$y=P.getFullYear(),this.$M=P.getMonth(),this.$D=P.getDate(),this.$W=P.getDay(),this.$H=P.getHours(),this.$m=P.getMinutes(),this.$s=P.getSeconds(),this.$ms=P.getMilliseconds()},F.$utils=function(){return A},F.isValid=function(){return this.$d.toString()!==m},F.isSame=function(P,I){var N=O(P);return this.startOf(I)<=N&&N<=this.endOf(I)},F.isAfter=function(P,I){return O(P)<this.startOf(I)},F.isBefore=function(P,I){return this.endOf(I)<O(P)},F.$g=function(P,I,N){return A.u(P)?this[I]:this.set(N,P)},F.unix=function(){return Math.floor(this.valueOf()/1e3)},F.valueOf=function(){return this.$d.getTime()},F.startOf=function(P,I){var N=this,R=!!A.u(I)||I,_=A.p(P),L=function(re,ee){var G=A.w(N.$u?Date.UTC(N.$y,ee,re):new Date(N.$y,ee,re),N);return R?G:G.endOf(u)},k=function(re,ee){return A.w(N.toDate()[re].apply(N.toDate("s"),(R?[0,0,0,0]:[23,59,59,999]).slice(ee)),N)},H=this.$W,V=this.$M,U=this.$D,q="set"+(this.$u?"UTC":"");switch(_){case p:return R?L(1,0):L(31,11);case d:return R?L(1,V):L(0,V+1);case c:var K=this.$locale().weekStart||0,X=(H<K?H+7:H)-K;return L(R?U-X:U+(6-X),V);case u:case v:return k(q+"Hours",0);case s:return k(q+"Minutes",1);case l:return k(q+"Seconds",2);case i:return k(q+"Milliseconds",3);default:return this.clone()}},F.endOf=function(P){return this.startOf(P,!1)},F.$set=function(P,I){var N,R=A.p(P),_="set"+(this.$u?"UTC":""),L=(N={},N[u]=_+"Date",N[v]=_+"Date",N[d]=_+"Month",N[p]=_+"FullYear",N[s]=_+"Hours",N[l]=_+"Minutes",N[i]=_+"Seconds",N[a]=_+"Milliseconds",N)[R],k=R===u?this.$D+(I-this.$W):I;if(R===d||R===p){var H=this.clone().set(v,1);H.$d[L](k),H.init(),this.$d=H.set(v,Math.min(this.$D,H.daysInMonth())).$d}else L&&this.$d[L](k);return this.init(),this},F.set=function(P,I){return this.clone().$set(P,I)},F.get=function(P){return this[A.p(P)]()},F.add=function(P,I){var N,R=this;P=Number(P);var _=A.p(I),L=function(V){var U=O(R);return A.w(U.date(U.date()+Math.round(V*P)),R)};if(_===d)return this.set(d,this.$M+P);if(_===p)return this.set(p,this.$y+P);if(_===u)return L(1);if(_===c)return L(7);var k=(N={},N[l]=r,N[s]=o,N[i]=n,N)[_]||1,H=this.$d.getTime()+P*k;return A.w(H,this)},F.subtract=function(P,I){return this.add(-1*P,I)},F.format=function(P){var I=this,N=this.$locale();if(!this.isValid())return N.invalidDate||m;var R=P||"YYYY-MM-DDTHH:mm:ssZ",_=A.z(this),L=this.$H,k=this.$m,H=this.$M,V=N.weekdays,U=N.months,q=function(ee,G,le,ue){return ee&&(ee[G]||ee(I,R))||le[G].slice(0,ue)},K=function(ee){return A.s(L%12||12,ee,"0")},X=N.meridiem||function(ee,G,le){var ue=ee<12?"AM":"PM";return le?ue.toLowerCase():ue},re={YY:String(this.$y).slice(-2),YYYY:this.$y,M:H+1,MM:A.s(H+1,2,"0"),MMM:q(N.monthsShort,H,U,3),MMMM:q(U,H),D:this.$D,DD:A.s(this.$D,2,"0"),d:String(this.$W),dd:q(N.weekdaysMin,this.$W,V,2),ddd:q(N.weekdaysShort,this.$W,V,3),dddd:V[this.$W],H:String(L),HH:A.s(L,2,"0"),h:K(1),hh:K(2),a:X(L,k,!0),A:X(L,k,!1),m:String(k),mm:A.s(k,2,"0"),s:String(this.$s),ss:A.s(this.$s,2,"0"),SSS:A.s(this.$ms,3,"0"),Z:_};return R.replace(g,function(ee,G){return G||re[ee]||_.replace(":","")})},F.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},F.diff=function(P,I,N){var R,_=A.p(I),L=O(P),k=(L.utcOffset()-this.utcOffset())*r,H=this-L,V=A.m(this,L);return V=(R={},R[p]=V/12,R[d]=V,R[f]=V/3,R[c]=(H-k)/6048e5,R[u]=(H-k)/864e5,R[s]=H/o,R[l]=H/r,R[i]=H/n,R)[_]||H,N?V:A.a(V)},F.daysInMonth=function(){return this.endOf(d).$D},F.$locale=function(){return S[this.$L]},F.locale=function(P,I){if(!P)return this.$L;var N=this.clone(),R=D(P,I,!0);return R&&(N.$L=R),N},F.clone=function(){return A.w(this.$d,this)},F.toDate=function(){return new Date(this.valueOf())},F.toJSON=function(){return this.isValid()?this.toISOString():null},F.toISOString=function(){return this.$d.toISOString()},F.toString=function(){return this.$d.toUTCString()},B}(),M=T.prototype;return O.prototype=M,[["$ms",a],["$s",i],["$m",l],["$H",s],["$W",u],["$M",d],["$y",p],["$D",v]].forEach(function(B){M[B[1]]=function(F){return this.$g(F,B[0],B[1])}}),O.extend=function(B,F){return B.$i||(B(F,T,O),B.$i=!0),O},O.locale=D,O.isDayjs=$,O.unix=function(B){return O(1e3*B)},O.en=S[b],O.Ls=S,O.p={},O})})(qZ);const Dn=mp;var o0={},GZ={get exports(){return o0},set exports(e){o0=e}};(function(e,t){(function(n,r){e.exports=r()})(qn,function(){return function(n,r){r.prototype.weekday=function(o){var a=this.$locale().weekStart||0,i=this.$W,l=(i<a?i+7:i)-a;return this.$utils().u(o)?l:this.subtract(l,"day").add(o,"day")}}})})(GZ);const XZ=o0;var a0={},YZ={get exports(){return a0},set exports(e){a0=e}};(function(e,t){(function(n,r){e.exports=r()})(qn,function(){return function(n,r,o){var a=r.prototype,i=function(d){return d&&(d.indexOf?d:d.s)},l=function(d,f,p,v,m){var h=d.name?d:d.$locale(),g=i(h[f]),x=i(h[p]),y=g||x.map(function(b){return b.slice(0,v)});if(!m)return y;var w=h.weekStart;return y.map(function(b,S){return y[(S+(w||0))%7]})},s=function(){return o.Ls[o.locale()]},u=function(d,f){return d.formats[f]||function(p){return p.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(v,m,h){return m||h.slice(1)})}(d.formats[f.toUpperCase()])},c=function(){var d=this;return{months:function(f){return f?f.format("MMMM"):l(d,"months")},monthsShort:function(f){return f?f.format("MMM"):l(d,"monthsShort","months",3)},firstDayOfWeek:function(){return d.$locale().weekStart||0},weekdays:function(f){return f?f.format("dddd"):l(d,"weekdays")},weekdaysMin:function(f){return f?f.format("dd"):l(d,"weekdaysMin","weekdays",2)},weekdaysShort:function(f){return f?f.format("ddd"):l(d,"weekdaysShort","weekdays",3)},longDateFormat:function(f){return u(d.$locale(),f)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};a.localeData=function(){return c.bind(this)()},o.localeData=function(){var d=s();return{firstDayOfWeek:function(){return d.weekStart||0},weekdays:function(){return o.weekdays()},weekdaysShort:function(){return o.weekdaysShort()},weekdaysMin:function(){return o.weekdaysMin()},months:function(){return o.months()},monthsShort:function(){return o.monthsShort()},longDateFormat:function(f){return u(d,f)},meridiem:d.meridiem,ordinal:d.ordinal}},o.months=function(){return l(s(),"months")},o.monthsShort=function(){return l(s(),"monthsShort","months",3)},o.weekdays=function(d){return l(s(),"weekdays",null,null,d)},o.weekdaysShort=function(d){return l(s(),"weekdaysShort","weekdays",3,d)},o.weekdaysMin=function(d){return l(s(),"weekdaysMin","weekdays",2,d)}}})})(YZ);const ZZ=a0;var i0={},JZ={get exports(){return i0},set exports(e){i0=e}};(function(e,t){(function(n,r){e.exports=r()})(qn,function(){var n="week",r="year";return function(o,a,i){var l=a.prototype;l.week=function(s){if(s===void 0&&(s=null),s!==null)return this.add(7*(s-this.week()),"day");var u=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var c=i(this).startOf(r).add(1,r).date(u),d=i(this).endOf(n);if(c.isBefore(d))return 1}var f=i(this).startOf(r).date(u).startOf(n).subtract(1,"millisecond"),p=this.diff(f,n,!0);return p<0?i(this).startOf("week").week():Math.ceil(p)},l.weeks=function(s){return s===void 0&&(s=null),this.week(s)}}})})(JZ);const QZ=i0;var l0={},eJ={get exports(){return l0},set exports(e){l0=e}};(function(e,t){(function(n,r){e.exports=r()})(qn,function(){return function(n,r){r.prototype.weekYear=function(){var o=this.month(),a=this.week(),i=this.year();return a===1&&o===11?i+1:o===0&&a>=52?i-1:i}}})})(eJ);const tJ=l0;var s0={},nJ={get exports(){return s0},set exports(e){s0=e}};(function(e,t){(function(n,r){e.exports=r()})(qn,function(){var n="month",r="quarter";return function(o,a){var i=a.prototype;i.quarter=function(u){return this.$utils().u(u)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(u-1))};var l=i.add;i.add=function(u,c){return u=Number(u),this.$utils().p(c)===r?this.add(3*u,n):l.bind(this)(u,c)};var s=i.startOf;i.startOf=function(u,c){var d=this.$utils(),f=!!d.u(c)||c;if(d.p(u)===r){var p=this.quarter()-1;return f?this.month(3*p).startOf(n).startOf("day"):this.month(3*p+2).endOf(n).endOf("day")}return s.bind(this)(u,c)}}})})(nJ);const rJ=s0;var u0={},oJ={get exports(){return u0},set exports(e){u0=e}};(function(e,t){(function(n,r){e.exports=r()})(qn,function(){return function(n,r){var o=r.prototype,a=o.format;o.format=function(i){var l=this,s=this.$locale();if(!this.isValid())return a.bind(this)(i);var u=this.$utils(),c=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(d){switch(d){case"Q":return Math.ceil((l.$M+1)/3);case"Do":return s.ordinal(l.$D);case"gggg":return l.weekYear();case"GGGG":return l.isoWeekYear();case"wo":return s.ordinal(l.week(),"W");case"w":case"ww":return u.s(l.week(),d==="w"?1:2,"0");case"W":case"WW":return u.s(l.isoWeek(),d==="W"?1:2,"0");case"k":case"kk":return u.s(String(l.$H===0?24:l.$H),d==="k"?1:2,"0");case"X":return Math.floor(l.$d.getTime()/1e3);case"x":return l.$d.getTime();case"z":return"["+l.offsetName()+"]";case"zzz":return"["+l.offsetName("long")+"]";default:return d}});return a.bind(this)(c)}}})})(oJ);const aJ=u0;var c0={},iJ={get exports(){return c0},set exports(e){c0=e}};(function(e,t){(function(n,r){e.exports=r()})(qn,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d\d/,a=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,l={},s=function(m){return(m=+m)+(m>68?1900:2e3)},u=function(m){return function(h){this[m]=+h}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(m){(this.zone||(this.zone={})).offset=function(h){if(!h||h==="Z")return 0;var g=h.match(/([+-]|\d\d)/g),x=60*g[1]+(+g[2]||0);return x===0?0:g[0]==="+"?-x:x}(m)}],d=function(m){var h=l[m];return h&&(h.indexOf?h:h.s.concat(h.f))},f=function(m,h){var g,x=l.meridiem;if(x){for(var y=1;y<=24;y+=1)if(m.indexOf(x(y,0,h))>-1){g=y>12;break}}else g=m===(h?"pm":"PM");return g},p={A:[i,function(m){this.afternoon=f(m,!1)}],a:[i,function(m){this.afternoon=f(m,!0)}],S:[/\d/,function(m){this.milliseconds=100*+m}],SS:[o,function(m){this.milliseconds=10*+m}],SSS:[/\d{3}/,function(m){this.milliseconds=+m}],s:[a,u("seconds")],ss:[a,u("seconds")],m:[a,u("minutes")],mm:[a,u("minutes")],H:[a,u("hours")],h:[a,u("hours")],HH:[a,u("hours")],hh:[a,u("hours")],D:[a,u("day")],DD:[o,u("day")],Do:[i,function(m){var h=l.ordinal,g=m.match(/\d+/);if(this.day=g[0],h)for(var x=1;x<=31;x+=1)h(x).replace(/\[|\]/g,"")===m&&(this.day=x)}],M:[a,u("month")],MM:[o,u("month")],MMM:[i,function(m){var h=d("months"),g=(d("monthsShort")||h.map(function(x){return x.slice(0,3)})).indexOf(m)+1;if(g<1)throw new Error;this.month=g%12||g}],MMMM:[i,function(m){var h=d("months").indexOf(m)+1;if(h<1)throw new Error;this.month=h%12||h}],Y:[/[+-]?\d+/,u("year")],YY:[o,function(m){this.year=s(m)}],YYYY:[/\d{4}/,u("year")],Z:c,ZZ:c};function v(m){var h,g;h=m,g=l&&l.formats;for(var x=(m=h.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(O,A,T){var M=T&&T.toUpperCase();return A||g[T]||n[T]||g[M].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(B,F,P){return F||P.slice(1)})})).match(r),y=x.length,w=0;w<y;w+=1){var b=x[w],S=p[b],$=S&&S[0],D=S&&S[1];x[w]=D?{regex:$,parser:D}:b.replace(/^\[|\]$/g,"")}return function(O){for(var A={},T=0,M=0;T<y;T+=1){var B=x[T];if(typeof B=="string")M+=B.length;else{var F=B.regex,P=B.parser,I=O.slice(M),N=F.exec(I)[0];P.call(A,N),O=O.replace(N,"")}}return function(R){var _=R.afternoon;if(_!==void 0){var L=R.hours;_?L<12&&(R.hours+=12):L===12&&(R.hours=0),delete R.afternoon}}(A),A}}return function(m,h,g){g.p.customParseFormat=!0,m&&m.parseTwoDigitYear&&(s=m.parseTwoDigitYear);var x=h.prototype,y=x.parse;x.parse=function(w){var b=w.date,S=w.utc,$=w.args;this.$u=S;var D=$[1];if(typeof D=="string"){var O=$[2]===!0,A=$[3]===!0,T=O||A,M=$[2];A&&(M=$[2]),l=this.$locale(),!O&&M&&(l=g.Ls[M]),this.$d=function(I,N,R){try{if(["x","X"].indexOf(N)>-1)return new Date((N==="X"?1e3:1)*I);var _=v(N)(I),L=_.year,k=_.month,H=_.day,V=_.hours,U=_.minutes,q=_.seconds,K=_.milliseconds,X=_.zone,re=new Date,ee=H||(L||k?1:re.getDate()),G=L||re.getFullYear(),le=0;L&&!k||(le=k>0?k-1:re.getMonth());var ue=V||0,me=U||0,Se=q||0,Q=K||0;return X?new Date(Date.UTC(G,le,ee,ue,me,Se,Q+60*X.offset*1e3)):R?new Date(Date.UTC(G,le,ee,ue,me,Se,Q)):new Date(G,le,ee,ue,me,Se,Q)}catch{return new Date("")}}(b,D,S),this.init(),M&&M!==!0&&(this.$L=this.locale(M).$L),T&&b!=this.format(D)&&(this.$d=new Date("")),l={}}else if(D instanceof Array)for(var B=D.length,F=1;F<=B;F+=1){$[1]=D[F-1];var P=g.apply(this,$);if(P.isValid()){this.$d=P.$d,this.$L=P.$L,this.init();break}F===B&&(this.$d=new Date(""))}else y.call(this,w)}}})})(iJ);const lJ=c0;Dn.extend(lJ);Dn.extend(aJ);Dn.extend(XZ);Dn.extend(ZZ);Dn.extend(QZ);Dn.extend(tJ);Dn.extend(rJ);Dn.extend((e,t)=>{const n=t.prototype,r=n.format;n.format=function(a){const i=(a||"").replace("Wo","wo");return r.bind(this)(i)}});const sJ={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},bi=e=>sJ[e]||e.split("_")[0],j$=()=>{KR(!1,"Not match any format. Please help to fire a issue about this.")},uJ=/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|k{1,2}|S/g;function V$(e,t,n){const r=[...new Set(e.split(n))];let o=0;for(let a=0;a<r.length;a++){const i=r[a];if(o+=i.length,o>t)return i;o+=n.length}}const W$=(e,t)=>{if(!e)return null;if(Dn.isDayjs(e))return e;const n=t.matchAll(uJ);let r=Dn(e,t);if(n===null)return r;for(const o of n){const a=o[0],i=o.index;if(a==="Q"){const l=e.slice(i-1,i),s=V$(e,i,l).match(/\d+/)[0];r=r.quarter(parseInt(s))}if(a.toLowerCase()==="wo"){const l=e.slice(i-1,i),s=V$(e,i,l).match(/\d+/)[0];r=r.week(parseInt(s))}a.toLowerCase()==="ww"&&(r=r.week(parseInt(e.slice(i,i+a.length)))),a.toLowerCase()==="w"&&(r=r.week(parseInt(e.slice(i,i+a.length+1))))}return r},cJ={getNow:()=>Dn(),getFixedDate:e=>Dn(e,["YYYY-M-DD","YYYY-MM-DD"]),getEndDate:e=>e.endOf("month"),getWeekDay:e=>{const t=e.locale("en");return t.weekday()+t.localeData().firstDayOfWeek()},getYear:e=>e.year(),getMonth:e=>e.month(),getDate:e=>e.date(),getHour:e=>e.hour(),getMinute:e=>e.minute(),getSecond:e=>e.second(),addYear:(e,t)=>e.add(t,"year"),addMonth:(e,t)=>e.add(t,"month"),addDate:(e,t)=>e.add(t,"day"),setYear:(e,t)=>e.year(t),setMonth:(e,t)=>e.month(t),setDate:(e,t)=>e.date(t),setHour:(e,t)=>e.hour(t),setMinute:(e,t)=>e.minute(t),setSecond:(e,t)=>e.second(t),isAfter:(e,t)=>e.isAfter(t),isValidate:e=>e.isValid(),locale:{getWeekFirstDay:e=>Dn().locale(bi(e)).localeData().firstDayOfWeek(),getWeekFirstDate:(e,t)=>t.locale(bi(e)).weekday(0),getWeek:(e,t)=>t.locale(bi(e)).week(),getShortWeekDays:e=>Dn().locale(bi(e)).localeData().weekdaysMin(),getShortMonths:e=>Dn().locale(bi(e)).localeData().monthsShort(),format:(e,t,n)=>t.locale(bi(e)).format(n),parse:(e,t,n)=>{const r=bi(e);for(let o=0;o<n.length;o+=1){const a=n[o],i=t;if(a.includes("wo")||a.includes("Wo")){const s=i.split("-")[0],u=i.split("-")[1],c=Dn(s,"YYYY").startOf("year").locale(r);for(let d=0;d<=52;d+=1){const f=c.add(d,"week");if(f.format("Wo")===u)return f}return j$(),null}const l=Dn(i,a,!0).locale(r);if(l.isValid())return l}return t||j$(),null}},toDate:(e,t)=>Array.isArray(e)?e.map(n=>W$(n,t)):W$(e,t),toString:(e,t)=>Array.isArray(e)?e.map(n=>Dn.isDayjs(n)?n.format(t):n):Dn.isDayjs(e)?e.format(t):e},O1=cJ;function yn(e){const t=jB();return E(E({},e),t)}const kP=Symbol("PanelContextProps"),T1=e=>{it(kP,e)},Ko=()=>lt(kP,{}),ad={visibility:"hidden"};function fi(e,t){let{slots:n}=t;var r;const o=yn(e),{prefixCls:a,prevIcon:i="‹",nextIcon:l="›",superPrevIcon:s="«",superNextIcon:u="»",onSuperPrev:c,onSuperNext:d,onPrev:f,onNext:p}=o,{hideNextBtn:v,hidePrevBtn:m}=Ko();return C("div",{class:a},[c&&C("button",{type:"button",onClick:c,tabindex:-1,class:`${a}-super-prev-btn`,style:m.value?ad:{}},[s]),f&&C("button",{type:"button",onClick:f,tabindex:-1,class:`${a}-prev-btn`,style:m.value?ad:{}},[i]),C("div",{class:`${a}-view`},[(r=n.default)===null||r===void 0?void 0:r.call(n)]),p&&C("button",{type:"button",onClick:p,tabindex:-1,class:`${a}-next-btn`,style:v.value?ad:{}},[l]),d&&C("button",{type:"button",onClick:d,tabindex:-1,class:`${a}-super-next-btn`,style:v.value?ad:{}},[u])])}fi.displayName="Header";fi.inheritAttrs=!1;function M1(e){const t=yn(e),{prefixCls:n,generateConfig:r,viewDate:o,onPrevDecades:a,onNextDecades:i}=t,{hideHeader:l}=Ko();if(l)return null;const s=`${n}-header`,u=r.getYear(o),c=Math.floor(u/ua)*ua,d=c+ua-1;return C(fi,j(j({},t),{},{prefixCls:s,onSuperPrev:a,onSuperNext:i}),{default:()=>[c,sr("-"),d]})}M1.displayName="DecadeHeader";M1.inheritAttrs=!1;function HP(e,t,n,r,o){let a=e.setHour(t,n);return a=e.setMinute(a,r),a=e.setSecond(a,o),a}function Jd(e,t,n){if(!n)return t;let r=t;return r=e.setHour(r,e.getHour(n)),r=e.setMinute(r,e.getMinute(n)),r=e.setSecond(r,e.getSecond(n)),r}function dJ(e,t,n,r,o,a){const i=Math.floor(e/r)*r;if(i<e)return[i,60-o,60-a];const l=Math.floor(t/o)*o;if(l<t)return[i,l,60-a];const s=Math.floor(n/a)*a;return[i,l,s]}function fJ(e,t){const n=e.getYear(t),r=e.getMonth(t)+1,o=e.getEndDate(e.getFixedDate(`${n}-${r}-01`)),a=e.getDate(o),i=r<10?`0${r}`:`${r}`;return`${n}-${i}-${a}`}function al(e){const{prefixCls:t,disabledDate:n,onSelect:r,picker:o,rowNum:a,colNum:i,prefixColumn:l,rowClassName:s,baseDate:u,getCellClassName:c,getCellText:d,getCellNode:f,getCellDate:p,generateConfig:v,titleCell:m,headerCells:h}=yn(e),{onDateMouseenter:g,onDateMouseleave:x,mode:y}=Ko(),w=`${t}-cell`,b=[];for(let S=0;S<a;S+=1){const $=[];let D;for(let O=0;O<i;O+=1){const A=S*i+O,T=p(u,A),M=m0({cellDate:T,mode:y.value,disabledDate:n,generateConfig:v});O===0&&(D=T,l&&$.push(l(D)));const B=m&&m(T);$.push(C("td",{key:O,title:B,class:ge(w,E({[`${w}-disabled`]:M,[`${w}-start`]:d(T)===1||o==="year"&&Number(B)%10===0,[`${w}-end`]:B===fJ(v,T)||o==="year"&&Number(B)%10===9},c(T))),onClick:()=>{M||r(T)},onMouseenter:()=>{!M&&g&&g(T)},onMouseleave:()=>{!M&&x&&x(T)}},[f?f(T):C("div",{class:`${w}-inner`},[d(T)])]))}b.push(C("tr",{key:S,class:s&&s(D)},[$]))}return C("div",{class:`${t}-body`},[C("table",{class:`${t}-content`},[h&&C("thead",null,[C("tr",null,[h])]),C("tbody",null,[b])])])}al.displayName="PanelBody";al.inheritAttrs=!1;const d0=3,U$=4;function N1(e){const t=yn(e),n=fo-1,{prefixCls:r,viewDate:o,generateConfig:a}=t,i=`${r}-cell`,l=a.getYear(o),s=Math.floor(l/fo)*fo,u=Math.floor(l/ua)*ua,c=u+ua-1,d=a.setYear(o,u-Math.ceil((d0*U$*fo-ua)/2)),f=p=>{const v=a.getYear(p),m=v+n;return{[`${i}-in-view`]:u<=v&&m<=c,[`${i}-selected`]:v===s}};return C(al,j(j({},t),{},{rowNum:U$,colNum:d0,baseDate:d,getCellText:p=>{const v=a.getYear(p);return`${v}-${v+n}`},getCellClassName:f,getCellDate:(p,v)=>a.addYear(p,v*fo)}),null)}N1.displayName="DecadeBody";N1.inheritAttrs=!1;const id=new Map;function pJ(e,t){let n;function r(){gm(e)?t():n=tt(()=>{r()})}return r(),()=>{tt.cancel(n)}}function f0(e,t,n){if(id.get(e)&&tt.cancel(id.get(e)),n<=0){id.set(e,tt(()=>{e.scrollTop=t}));return}const o=(t-e.scrollTop)/n*10;id.set(e,tt(()=>{e.scrollTop+=o,e.scrollTop!==t&&f0(e,t,n-10)}))}function Fs(e,t){let{onLeftRight:n,onCtrlLeftRight:r,onUpDown:o,onPageUpDown:a,onEnter:i}=t;const{which:l,ctrlKey:s,metaKey:u}=e;switch(l){case _e.LEFT:if(s||u){if(r)return r(-1),!0}else if(n)return n(-1),!0;break;case _e.RIGHT:if(s||u){if(r)return r(1),!0}else if(n)return n(1),!0;break;case _e.UP:if(o)return o(-1),!0;break;case _e.DOWN:if(o)return o(1),!0;break;case _e.PAGE_UP:if(a)return a(-1),!0;break;case _e.PAGE_DOWN:if(a)return a(1),!0;break;case _e.ENTER:if(i)return i(),!0;break}return!1}function jP(e,t,n,r){let o=e;if(!o)switch(t){case"time":o=r?"hh:mm:ss a":"HH:mm:ss";break;case"week":o="gggg-wo";break;case"month":o="YYYY-MM";break;case"quarter":o="YYYY-[Q]Q";break;case"year":o="YYYY";break;default:o=n?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return o}function VP(e,t,n){const r=e==="time"?8:10,o=typeof t=="function"?t(n.getNow()).length:t.length;return Math.max(r,o)+2}let Qs=null;const ld=new Set;function mJ(e){return!Qs&&typeof window<"u"&&window.addEventListener&&(Qs=t=>{[...ld].forEach(n=>{n(t)})},window.addEventListener("mousedown",Qs)),ld.add(e),()=>{ld.delete(e),ld.size===0&&(window.removeEventListener("mousedown",Qs),Qs=null)}}function vJ(e){var t;const n=e.target;return e.composed&&n.shadowRoot&&((t=e.composedPath)===null||t===void 0?void 0:t.call(e)[0])||n}const hJ=e=>e==="month"||e==="date"?"year":e,gJ=e=>e==="date"?"month":e,yJ=e=>e==="month"||e==="date"?"quarter":e,bJ=e=>e==="date"?"week":e,xJ={year:hJ,month:gJ,quarter:yJ,week:bJ,time:null,date:null};function WP(e,t){return e.some(n=>n&&n.contains(t))}const fo=10,ua=fo*10;function P1(e){const t=yn(e),{prefixCls:n,onViewDateChange:r,generateConfig:o,viewDate:a,operationRef:i,onSelect:l,onPanelChange:s}=t,u=`${n}-decade-panel`;i.value={onKeydown:f=>Fs(f,{onLeftRight:p=>{l(o.addYear(a,p*fo),"key")},onCtrlLeftRight:p=>{l(o.addYear(a,p*ua),"key")},onUpDown:p=>{l(o.addYear(a,p*fo*d0),"key")},onEnter:()=>{s("year",a)}})};const c=f=>{const p=o.addYear(a,f*ua);r(p),s(null,p)},d=f=>{l(f,"mouse"),s("year",f)};return C("div",{class:u},[C(M1,j(j({},t),{},{prefixCls:n,onPrevDecades:()=>{c(-1)},onNextDecades:()=>{c(1)}}),null),C(N1,j(j({},t),{},{prefixCls:n,onSelect:d}),null)])}P1.displayName="DecadePanel";P1.inheritAttrs=!1;const Qd=7;function il(e,t){if(!e&&!t)return!0;if(!e||!t)return!1}function wJ(e,t,n){const r=il(t,n);if(typeof r=="boolean")return r;const o=Math.floor(e.getYear(t)/10),a=Math.floor(e.getYear(n)/10);return o===a}function jm(e,t,n){const r=il(t,n);return typeof r=="boolean"?r:e.getYear(t)===e.getYear(n)}function p0(e,t){return Math.floor(e.getMonth(t)/3)+1}function UP(e,t,n){const r=il(t,n);return typeof r=="boolean"?r:jm(e,t,n)&&p0(e,t)===p0(e,n)}function I1(e,t,n){const r=il(t,n);return typeof r=="boolean"?r:jm(e,t,n)&&e.getMonth(t)===e.getMonth(n)}function ca(e,t,n){const r=il(t,n);return typeof r=="boolean"?r:e.getYear(t)===e.getYear(n)&&e.getMonth(t)===e.getMonth(n)&&e.getDate(t)===e.getDate(n)}function SJ(e,t,n){const r=il(t,n);return typeof r=="boolean"?r:e.getHour(t)===e.getHour(n)&&e.getMinute(t)===e.getMinute(n)&&e.getSecond(t)===e.getSecond(n)}function KP(e,t,n,r){const o=il(n,r);return typeof o=="boolean"?o:e.locale.getWeek(t,n)===e.locale.getWeek(t,r)}function Xl(e,t,n){return ca(e,t,n)&&SJ(e,t,n)}function sd(e,t,n,r){return!t||!n||!r?!1:!ca(e,t,r)&&!ca(e,n,r)&&e.isAfter(r,t)&&e.isAfter(n,r)}function CJ(e,t,n){const r=t.locale.getWeekFirstDay(e),o=t.setDate(n,1),a=t.getWeekDay(o);let i=t.addDate(o,r-a);return t.getMonth(i)===t.getMonth(n)&&t.getDate(i)>1&&(i=t.addDate(i,-7)),i}function bu(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(t){case"year":return n.addYear(e,r*10);case"quarter":case"month":return n.addYear(e,r);default:return n.addMonth(e,r)}}function jn(e,t){let{generateConfig:n,locale:r,format:o}=t;return typeof o=="function"?o(e):n.locale.format(r.locale,e,o)}function qP(e,t){let{generateConfig:n,locale:r,formatList:o}=t;return!e||typeof o[0]=="function"?null:n.locale.parse(r.locale,e,o)}function m0(e){let{cellDate:t,mode:n,disabledDate:r,generateConfig:o}=e;if(!r)return!1;const a=(i,l,s)=>{let u=l;for(;u<=s;){let c;switch(i){case"date":{if(c=o.setDate(t,u),!r(c))return!1;break}case"month":{if(c=o.setMonth(t,u),!m0({cellDate:c,mode:"month",generateConfig:o,disabledDate:r}))return!1;break}case"year":{if(c=o.setYear(t,u),!m0({cellDate:c,mode:"year",generateConfig:o,disabledDate:r}))return!1;break}}u+=1}return!0};switch(n){case"date":case"week":return r(t);case"month":{const l=o.getDate(o.getEndDate(t));return a("date",1,l)}case"quarter":{const i=Math.floor(o.getMonth(t)/3)*3,l=i+2;return a("month",i,l)}case"year":return a("month",0,11);case"decade":{const i=o.getYear(t),l=Math.floor(i/fo)*fo,s=l+fo-1;return a("year",l,s)}}}function _1(e){const t=yn(e),{hideHeader:n}=Ko();if(n.value)return null;const{prefixCls:r,generateConfig:o,locale:a,value:i,format:l}=t,s=`${r}-header`;return C(fi,{prefixCls:s},{default:()=>[i?jn(i,{locale:a,format:l,generateConfig:o}):" "]})}_1.displayName="TimeHeader";_1.inheritAttrs=!1;const ud=he({name:"TimeUnitColumn",props:["prefixCls","units","onSelect","value","active","hideDisabledOptions"],setup(e){const{open:t}=Ko(),n=be(null),r=be(new Map),o=be();return Ne(()=>e.value,()=>{const a=r.value.get(e.value);a&&t.value!==!1&&f0(n.value,a.offsetTop,120)}),st(()=>{var a;(a=o.value)===null||a===void 0||a.call(o)}),Ne(t,()=>{var a;(a=o.value)===null||a===void 0||a.call(o),ht(()=>{if(t.value){const i=r.value.get(e.value);i&&(o.value=pJ(i,()=>{f0(n.value,i.offsetTop,0)}))}})},{immediate:!0,flush:"post"}),()=>{const{prefixCls:a,units:i,onSelect:l,value:s,active:u,hideDisabledOptions:c}=e,d=`${a}-cell`;return C("ul",{class:ge(`${a}-column`,{[`${a}-column-active`]:u}),ref:n,style:{position:"relative"}},[i.map(f=>c&&f.disabled?null:C("li",{key:f.value,ref:p=>{r.value.set(f.value,p)},class:ge(d,{[`${d}-disabled`]:f.disabled,[`${d}-selected`]:s===f.value}),onClick:()=>{f.disabled||l(f.value)}},[C("div",{class:`${d}-inner`},[f.label])]))])}}});function GP(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",r=String(e);for(;r.length<t;)r=`${n}${e}`;return r}const $J=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t};function XP(e){return e==null?[]:Array.isArray(e)?e:[e]}function YP(e){const t={};return Object.keys(e).forEach(n=>{(n.startsWith("data-")||n.startsWith("aria-")||n==="role"||n==="name")&&!n.startsWith("data-__")&&(t[n]=e[n])}),t}function Ft(e,t){return e?e[t]:null}function qr(e,t,n){const r=[Ft(e,0),Ft(e,1)];return r[n]=typeof t=="function"?t(r[n]):t,!r[0]&&!r[1]?null:r}function Eh(e,t,n,r){const o=[];for(let a=e;a<=t;a+=n)o.push({label:GP(a,2),value:a,disabled:(r||[]).includes(a)});return o}const EJ=he({compatConfig:{MODE:3},name:"TimeBody",inheritAttrs:!1,props:["generateConfig","prefixCls","operationRef","activeColumnIndex","value","showHour","showMinute","showSecond","use12Hours","hourStep","minuteStep","secondStep","disabledHours","disabledMinutes","disabledSeconds","disabledTime","hideDisabledOptions","onSelect"],setup(e){const t=z(()=>e.value?e.generateConfig.getHour(e.value):-1),n=z(()=>e.use12Hours?t.value>=12:!1),r=z(()=>e.use12Hours?t.value%12:t.value),o=z(()=>e.value?e.generateConfig.getMinute(e.value):-1),a=z(()=>e.value?e.generateConfig.getSecond(e.value):-1),i=be(e.generateConfig.getNow()),l=be(),s=be(),u=be();jy(()=>{i.value=e.generateConfig.getNow()}),Je(()=>{if(e.disabledTime){const h=e.disabledTime(i);[l.value,s.value,u.value]=[h.disabledHours,h.disabledMinutes,h.disabledSeconds]}else[l.value,s.value,u.value]=[e.disabledHours,e.disabledMinutes,e.disabledSeconds]});const c=(h,g,x,y)=>{let w=e.value||e.generateConfig.getNow();const b=Math.max(0,g),S=Math.max(0,x),$=Math.max(0,y);return w=HP(e.generateConfig,w,!e.use12Hours||!h?b:b+12,S,$),w},d=z(()=>{var h;return Eh(0,23,(h=e.hourStep)!==null&&h!==void 0?h:1,l.value&&l.value())}),f=z(()=>{if(!e.use12Hours)return[!1,!1];const h=[!0,!0];return d.value.forEach(g=>{let{disabled:x,value:y}=g;x||(y>=12?h[1]=!1:h[0]=!1)}),h}),p=z(()=>e.use12Hours?d.value.filter(n.value?h=>h.value>=12:h=>h.value<12).map(h=>{const g=h.value%12,x=g===0?"12":GP(g,2);return E(E({},h),{label:x,value:g})}):d.value),v=z(()=>{var h;return Eh(0,59,(h=e.minuteStep)!==null&&h!==void 0?h:1,s.value&&s.value(t.value))}),m=z(()=>{var h;return Eh(0,59,(h=e.secondStep)!==null&&h!==void 0?h:1,u.value&&u.value(t.value,o.value))});return()=>{const{prefixCls:h,operationRef:g,activeColumnIndex:x,showHour:y,showMinute:w,showSecond:b,use12Hours:S,hideDisabledOptions:$,onSelect:D}=e,O=[],A=`${h}-content`,T=`${h}-time-panel`;g.value={onUpDown:F=>{const P=O[x];if(P){const I=P.units.findIndex(R=>R.value===P.value),N=P.units.length;for(let R=1;R<N;R+=1){const _=P.units[(I+F*R+N)%N];if(_.disabled!==!0){P.onSelect(_.value);break}}}}};function M(F,P,I,N,R){F!==!1&&O.push({node:At(P,{prefixCls:T,value:I,active:x===O.length,onSelect:R,units:N,hideDisabledOptions:$}),onSelect:R,value:I,units:N})}M(y,C(ud,{key:"hour"},null),r.value,p.value,F=>{D(c(n.value,F,o.value,a.value),"mouse")}),M(w,C(ud,{key:"minute"},null),o.value,v.value,F=>{D(c(n.value,r.value,F,a.value),"mouse")}),M(b,C(ud,{key:"second"},null),a.value,m.value,F=>{D(c(n.value,r.value,o.value,F),"mouse")});let B=-1;return typeof n.value=="boolean"&&(B=n.value?1:0),M(S===!0,C(ud,{key:"12hours"},null),B,[{label:"AM",value:0,disabled:f.value[0]},{label:"PM",value:1,disabled:f.value[1]}],F=>{D(c(!!F,r.value,o.value,a.value),"mouse")}),C("div",{class:A},[O.map(F=>{let{node:P}=F;return P})])}}}),DJ=EJ,AJ=e=>e.filter(t=>t!==!1).length;function Vm(e){const t=yn(e),{generateConfig:n,format:r="HH:mm:ss",prefixCls:o,active:a,operationRef:i,showHour:l,showMinute:s,showSecond:u,use12Hours:c=!1,onSelect:d,value:f}=t,p=`${o}-time-panel`,v=be(),m=be(-1),h=AJ([l,s,u,c]);return i.value={onKeydown:g=>Fs(g,{onLeftRight:x=>{m.value=(m.value+x+h)%h},onUpDown:x=>{m.value===-1?m.value=0:v.value&&v.value.onUpDown(x)},onEnter:()=>{d(f||n.getNow(),"key"),m.value=-1}}),onBlur:()=>{m.value=-1}},C("div",{class:ge(p,{[`${p}-active`]:a})},[C(_1,j(j({},t),{},{format:r,prefixCls:o}),null),C(DJ,j(j({},t),{},{prefixCls:o,activeColumnIndex:m.value,operationRef:v}),null)])}Vm.displayName="TimePanel";Vm.inheritAttrs=!1;function Wm(e){let{cellPrefixCls:t,generateConfig:n,rangedValue:r,hoverRangedValue:o,isInView:a,isSameCell:i,offsetCell:l,today:s,value:u}=e;function c(d){const f=l(d,-1),p=l(d,1),v=Ft(r,0),m=Ft(r,1),h=Ft(o,0),g=Ft(o,1),x=sd(n,h,g,d);function y(O){return i(v,O)}function w(O){return i(m,O)}const b=i(h,d),S=i(g,d),$=(x||S)&&(!a(f)||w(f)),D=(x||b)&&(!a(p)||y(p));return{[`${t}-in-view`]:a(d),[`${t}-in-range`]:sd(n,v,m,d),[`${t}-range-start`]:y(d),[`${t}-range-end`]:w(d),[`${t}-range-start-single`]:y(d)&&!m,[`${t}-range-end-single`]:w(d)&&!v,[`${t}-range-start-near-hover`]:y(d)&&(i(f,h)||sd(n,h,g,f)),[`${t}-range-end-near-hover`]:w(d)&&(i(p,g)||sd(n,h,g,p)),[`${t}-range-hover`]:x,[`${t}-range-hover-start`]:b,[`${t}-range-hover-end`]:S,[`${t}-range-hover-edge-start`]:$,[`${t}-range-hover-edge-end`]:D,[`${t}-range-hover-edge-start-near-range`]:$&&i(f,m),[`${t}-range-hover-edge-end-near-range`]:D&&i(p,v),[`${t}-today`]:i(s,d),[`${t}-selected`]:i(u,d)}}return c}const ZP=Symbol("RangeContextProps"),OJ=e=>{it(ZP,e)},bc=()=>lt(ZP,{rangedValue:be(),hoverRangedValue:be(),inRange:be(),panelPosition:be()}),TJ=he({compatConfig:{MODE:3},name:"PanelContextProvider",inheritAttrs:!1,props:{value:{type:Object,default:()=>({})}},setup(e,t){let{slots:n}=t;const r={rangedValue:be(e.value.rangedValue),hoverRangedValue:be(e.value.hoverRangedValue),inRange:be(e.value.inRange),panelPosition:be(e.value.panelPosition)};return OJ(r),Ne(()=>e.value,()=>{Object.keys(e.value).forEach(o=>{r[o]&&(r[o].value=e.value[o])})}),()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}});function Um(e){const t=yn(e),{prefixCls:n,generateConfig:r,prefixColumn:o,locale:a,rowCount:i,viewDate:l,value:s,dateRender:u}=t,{rangedValue:c,hoverRangedValue:d}=bc(),f=CJ(a.locale,r,l),p=`${n}-cell`,v=r.locale.getWeekFirstDay(a.locale),m=r.getNow(),h=[],g=a.shortWeekDays||(r.locale.getShortWeekDays?r.locale.getShortWeekDays(a.locale):[]);o&&h.push(C("th",{key:"empty","aria-label":"empty cell"},null));for(let w=0;w<Qd;w+=1)h.push(C("th",{key:w},[g[(w+v)%Qd]]));const x=Wm({cellPrefixCls:p,today:m,value:s,generateConfig:r,rangedValue:o?null:c.value,hoverRangedValue:o?null:d.value,isSameCell:(w,b)=>ca(r,w,b),isInView:w=>I1(r,w,l),offsetCell:(w,b)=>r.addDate(w,b)}),y=u?w=>u({current:w,today:m}):void 0;return C(al,j(j({},t),{},{rowNum:i,colNum:Qd,baseDate:f,getCellNode:y,getCellText:r.getDate,getCellClassName:x,getCellDate:r.addDate,titleCell:w=>jn(w,{locale:a,format:"YYYY-MM-DD",generateConfig:r}),headerCells:h}),null)}Um.displayName="DateBody";Um.inheritAttrs=!1;Um.props=["prefixCls","generateConfig","value?","viewDate","locale","rowCount","onSelect","dateRender?","disabledDate?","prefixColumn?","rowClassName?"];function B1(e){const t=yn(e),{prefixCls:n,generateConfig:r,locale:o,viewDate:a,onNextMonth:i,onPrevMonth:l,onNextYear:s,onPrevYear:u,onYearClick:c,onMonthClick:d}=t,{hideHeader:f}=Ko();if(f.value)return null;const p=`${n}-header`,v=o.shortMonths||(r.locale.getShortMonths?r.locale.getShortMonths(o.locale):[]),m=r.getMonth(a),h=C("button",{type:"button",key:"year",onClick:c,tabindex:-1,class:`${n}-year-btn`},[jn(a,{locale:o,format:o.yearFormat,generateConfig:r})]),g=C("button",{type:"button",key:"month",onClick:d,tabindex:-1,class:`${n}-month-btn`},[o.monthFormat?jn(a,{locale:o,format:o.monthFormat,generateConfig:r}):v[m]]),x=o.monthBeforeYear?[g,h]:[h,g];return C(fi,j(j({},t),{},{prefixCls:p,onSuperPrev:u,onPrev:l,onNext:i,onSuperNext:s}),{default:()=>[x]})}B1.displayName="DateHeader";B1.inheritAttrs=!1;const MJ=6;function xc(e){const t=yn(e),{prefixCls:n,panelName:r="date",keyboardConfig:o,active:a,operationRef:i,generateConfig:l,value:s,viewDate:u,onViewDateChange:c,onPanelChange:d,onSelect:f}=t,p=`${n}-${r}-panel`;i.value={onKeydown:h=>Fs(h,E({onLeftRight:g=>{f(l.addDate(s||u,g),"key")},onCtrlLeftRight:g=>{f(l.addYear(s||u,g),"key")},onUpDown:g=>{f(l.addDate(s||u,g*Qd),"key")},onPageUpDown:g=>{f(l.addMonth(s||u,g),"key")}},o))};const v=h=>{const g=l.addYear(u,h);c(g),d(null,g)},m=h=>{const g=l.addMonth(u,h);c(g),d(null,g)};return C("div",{class:ge(p,{[`${p}-active`]:a})},[C(B1,j(j({},t),{},{prefixCls:n,value:s,viewDate:u,onPrevYear:()=>{v(-1)},onNextYear:()=>{v(1)},onPrevMonth:()=>{m(-1)},onNextMonth:()=>{m(1)},onMonthClick:()=>{d("month",u)},onYearClick:()=>{d("year",u)}}),null),C(Um,j(j({},t),{},{onSelect:h=>f(h,"mouse"),prefixCls:n,value:s,viewDate:u,rowCount:MJ}),null)])}xc.displayName="DatePanel";xc.inheritAttrs=!1;const K$=$J("date","time");function F1(e){const t=yn(e),{prefixCls:n,operationRef:r,generateConfig:o,value:a,defaultValue:i,disabledTime:l,showTime:s,onSelect:u}=t,c=`${n}-datetime-panel`,d=be(null),f=be({}),p=be({}),v=typeof s=="object"?E({},s):{};function m(y){const w=K$.indexOf(d.value)+y;return K$[w]||null}const h=y=>{p.value.onBlur&&p.value.onBlur(y),d.value=null};r.value={onKeydown:y=>{if(y.which===_e.TAB){const w=m(y.shiftKey?-1:1);return d.value=w,w&&y.preventDefault(),!0}if(d.value){const w=d.value==="date"?f:p;return w.value&&w.value.onKeydown&&w.value.onKeydown(y),!0}return[_e.LEFT,_e.RIGHT,_e.UP,_e.DOWN].includes(y.which)?(d.value="date",!0):!1},onBlur:h,onClose:h};const g=(y,w)=>{let b=y;w==="date"&&!a&&v.defaultValue?(b=o.setHour(b,o.getHour(v.defaultValue)),b=o.setMinute(b,o.getMinute(v.defaultValue)),b=o.setSecond(b,o.getSecond(v.defaultValue))):w==="time"&&!a&&i&&(b=o.setYear(b,o.getYear(i)),b=o.setMonth(b,o.getMonth(i)),b=o.setDate(b,o.getDate(i))),u&&u(b,"mouse")},x=l?l(a||null):{};return C("div",{class:ge(c,{[`${c}-active`]:d.value})},[C(xc,j(j({},t),{},{operationRef:f,active:d.value==="date",onSelect:y=>{g(Jd(o,y,!a&&typeof s=="object"?s.defaultValue:null),"date")}}),null),C(Vm,j(j(j(j({},t),{},{format:void 0},v),x),{},{disabledTime:null,defaultValue:void 0,operationRef:p,active:d.value==="time",onSelect:y=>{g(y,"time")}}),null)])}F1.displayName="DatetimePanel";F1.inheritAttrs=!1;function R1(e){const t=yn(e),{prefixCls:n,generateConfig:r,locale:o,value:a}=t,i=`${n}-cell`,l=c=>C("td",{key:"week",class:ge(i,`${i}-week`)},[r.locale.getWeek(o.locale,c)]),s=`${n}-week-panel-row`,u=c=>ge(s,{[`${s}-selected`]:KP(r,o.locale,a,c)});return C(xc,j(j({},t),{},{panelName:"week",prefixColumn:l,rowClassName:u,keyboardConfig:{onLeftRight:null}}),null)}R1.displayName="WeekPanel";R1.inheritAttrs=!1;function z1(e){const t=yn(e),{prefixCls:n,generateConfig:r,locale:o,viewDate:a,onNextYear:i,onPrevYear:l,onYearClick:s}=t,{hideHeader:u}=Ko();if(u.value)return null;const c=`${n}-header`;return C(fi,j(j({},t),{},{prefixCls:c,onSuperPrev:l,onSuperNext:i}),{default:()=>[C("button",{type:"button",onClick:s,class:`${n}-year-btn`},[jn(a,{locale:o,format:o.yearFormat,generateConfig:r})])]})}z1.displayName="MonthHeader";z1.inheritAttrs=!1;const JP=3,NJ=4;function L1(e){const t=yn(e),{prefixCls:n,locale:r,value:o,viewDate:a,generateConfig:i,monthCellRender:l}=t,{rangedValue:s,hoverRangedValue:u}=bc(),c=`${n}-cell`,d=Wm({cellPrefixCls:c,value:o,generateConfig:i,rangedValue:s.value,hoverRangedValue:u.value,isSameCell:(m,h)=>I1(i,m,h),isInView:()=>!0,offsetCell:(m,h)=>i.addMonth(m,h)}),f=r.shortMonths||(i.locale.getShortMonths?i.locale.getShortMonths(r.locale):[]),p=i.setMonth(a,0),v=l?m=>l({current:m,locale:r}):void 0;return C(al,j(j({},t),{},{rowNum:NJ,colNum:JP,baseDate:p,getCellNode:v,getCellText:m=>r.monthFormat?jn(m,{locale:r,format:r.monthFormat,generateConfig:i}):f[i.getMonth(m)],getCellClassName:d,getCellDate:i.addMonth,titleCell:m=>jn(m,{locale:r,format:"YYYY-MM",generateConfig:i})}),null)}L1.displayName="MonthBody";L1.inheritAttrs=!1;function k1(e){const t=yn(e),{prefixCls:n,operationRef:r,onViewDateChange:o,generateConfig:a,value:i,viewDate:l,onPanelChange:s,onSelect:u}=t,c=`${n}-month-panel`;r.value={onKeydown:f=>Fs(f,{onLeftRight:p=>{u(a.addMonth(i||l,p),"key")},onCtrlLeftRight:p=>{u(a.addYear(i||l,p),"key")},onUpDown:p=>{u(a.addMonth(i||l,p*JP),"key")},onEnter:()=>{s("date",i||l)}})};const d=f=>{const p=a.addYear(l,f);o(p),s(null,p)};return C("div",{class:c},[C(z1,j(j({},t),{},{prefixCls:n,onPrevYear:()=>{d(-1)},onNextYear:()=>{d(1)},onYearClick:()=>{s("year",l)}}),null),C(L1,j(j({},t),{},{prefixCls:n,onSelect:f=>{u(f,"mouse"),s("date",f)}}),null)])}k1.displayName="MonthPanel";k1.inheritAttrs=!1;function H1(e){const t=yn(e),{prefixCls:n,generateConfig:r,locale:o,viewDate:a,onNextYear:i,onPrevYear:l,onYearClick:s}=t,{hideHeader:u}=Ko();if(u.value)return null;const c=`${n}-header`;return C(fi,j(j({},t),{},{prefixCls:c,onSuperPrev:l,onSuperNext:i}),{default:()=>[C("button",{type:"button",onClick:s,class:`${n}-year-btn`},[jn(a,{locale:o,format:o.yearFormat,generateConfig:r})])]})}H1.displayName="QuarterHeader";H1.inheritAttrs=!1;const PJ=4,IJ=1;function j1(e){const t=yn(e),{prefixCls:n,locale:r,value:o,viewDate:a,generateConfig:i}=t,{rangedValue:l,hoverRangedValue:s}=bc(),u=`${n}-cell`,c=Wm({cellPrefixCls:u,value:o,generateConfig:i,rangedValue:l.value,hoverRangedValue:s.value,isSameCell:(f,p)=>UP(i,f,p),isInView:()=>!0,offsetCell:(f,p)=>i.addMonth(f,p*3)}),d=i.setDate(i.setMonth(a,0),1);return C(al,j(j({},t),{},{rowNum:IJ,colNum:PJ,baseDate:d,getCellText:f=>jn(f,{locale:r,format:r.quarterFormat||"[Q]Q",generateConfig:i}),getCellClassName:c,getCellDate:(f,p)=>i.addMonth(f,p*3),titleCell:f=>jn(f,{locale:r,format:"YYYY-[Q]Q",generateConfig:i})}),null)}j1.displayName="QuarterBody";j1.inheritAttrs=!1;function V1(e){const t=yn(e),{prefixCls:n,operationRef:r,onViewDateChange:o,generateConfig:a,value:i,viewDate:l,onPanelChange:s,onSelect:u}=t,c=`${n}-quarter-panel`;r.value={onKeydown:f=>Fs(f,{onLeftRight:p=>{u(a.addMonth(i||l,p*3),"key")},onCtrlLeftRight:p=>{u(a.addYear(i||l,p),"key")},onUpDown:p=>{u(a.addYear(i||l,p),"key")}})};const d=f=>{const p=a.addYear(l,f);o(p),s(null,p)};return C("div",{class:c},[C(H1,j(j({},t),{},{prefixCls:n,onPrevYear:()=>{d(-1)},onNextYear:()=>{d(1)},onYearClick:()=>{s("year",l)}}),null),C(j1,j(j({},t),{},{prefixCls:n,onSelect:f=>{u(f,"mouse")}}),null)])}V1.displayName="QuarterPanel";V1.inheritAttrs=!1;function W1(e){const t=yn(e),{prefixCls:n,generateConfig:r,viewDate:o,onPrevDecade:a,onNextDecade:i,onDecadeClick:l}=t,{hideHeader:s}=Ko();if(s.value)return null;const u=`${n}-header`,c=r.getYear(o),d=Math.floor(c/Ya)*Ya,f=d+Ya-1;return C(fi,j(j({},t),{},{prefixCls:u,onSuperPrev:a,onSuperNext:i}),{default:()=>[C("button",{type:"button",onClick:l,class:`${n}-decade-btn`},[d,sr("-"),f])]})}W1.displayName="YearHeader";W1.inheritAttrs=!1;const v0=3,q$=4;function U1(e){const t=yn(e),{prefixCls:n,value:r,viewDate:o,locale:a,generateConfig:i}=t,{rangedValue:l,hoverRangedValue:s}=bc(),u=`${n}-cell`,c=i.getYear(o),d=Math.floor(c/Ya)*Ya,f=d+Ya-1,p=i.setYear(o,d-Math.ceil((v0*q$-Ya)/2)),v=h=>{const g=i.getYear(h);return d<=g&&g<=f},m=Wm({cellPrefixCls:u,value:r,generateConfig:i,rangedValue:l.value,hoverRangedValue:s.value,isSameCell:(h,g)=>jm(i,h,g),isInView:v,offsetCell:(h,g)=>i.addYear(h,g)});return C(al,j(j({},t),{},{rowNum:q$,colNum:v0,baseDate:p,getCellText:i.getYear,getCellClassName:m,getCellDate:i.addYear,titleCell:h=>jn(h,{locale:a,format:"YYYY",generateConfig:i})}),null)}U1.displayName="YearBody";U1.inheritAttrs=!1;const Ya=10;function K1(e){const t=yn(e),{prefixCls:n,operationRef:r,onViewDateChange:o,generateConfig:a,value:i,viewDate:l,sourceMode:s,onSelect:u,onPanelChange:c}=t,d=`${n}-year-panel`;r.value={onKeydown:p=>Fs(p,{onLeftRight:v=>{u(a.addYear(i||l,v),"key")},onCtrlLeftRight:v=>{u(a.addYear(i||l,v*Ya),"key")},onUpDown:v=>{u(a.addYear(i||l,v*v0),"key")},onEnter:()=>{c(s==="date"?"date":"month",i||l)}})};const f=p=>{const v=a.addYear(l,p*10);o(v),c(null,v)};return C("div",{class:d},[C(W1,j(j({},t),{},{prefixCls:n,onPrevDecade:()=>{f(-1)},onNextDecade:()=>{f(1)},onDecadeClick:()=>{c("decade",l)}}),null),C(U1,j(j({},t),{},{prefixCls:n,onSelect:p=>{c(s==="date"?"date":"month",p),u(p,"mouse")}}),null)])}K1.displayName="YearPanel";K1.inheritAttrs=!1;function QP(e,t,n){return n?C("div",{class:`${e}-footer-extra`},[n(t)]):null}function eI(e){let{prefixCls:t,components:n={},needConfirmButton:r,onNow:o,onOk:a,okDisabled:i,showNow:l,locale:s}=e,u,c;if(r){const d=n.button||"button";o&&l!==!1&&(u=C("li",{class:`${t}-now`},[C("a",{class:`${t}-now-btn`,onClick:o},[s.now])])),c=r&&C("li",{class:`${t}-ok`},[C(d,{disabled:i,onClick:a},{default:()=>[s.ok]})])}return!u&&!c?null:C("ul",{class:`${t}-ranges`},[u,c])}function _J(){return he({name:"PickerPanel",inheritAttrs:!1,props:{prefixCls:String,locale:Object,generateConfig:Object,value:Object,defaultValue:Object,pickerValue:Object,defaultPickerValue:Object,disabledDate:Function,mode:String,picker:{type:String,default:"date"},tabindex:{type:[Number,String],default:0},showNow:{type:Boolean,default:void 0},showTime:[Boolean,Object],showToday:Boolean,renderExtraFooter:Function,dateRender:Function,hideHeader:{type:Boolean,default:void 0},onSelect:Function,onChange:Function,onPanelChange:Function,onMousedown:Function,onPickerValueChange:Function,onOk:Function,components:Object,direction:String,hourStep:{type:Number,default:1},minuteStep:{type:Number,default:1},secondStep:{type:Number,default:1}},setup(e,t){let{attrs:n}=t;const r=z(()=>e.picker==="date"&&!!e.showTime||e.picker==="time"),o=z(()=>24%e.hourStep===0),a=z(()=>60%e.minuteStep===0),i=z(()=>60%e.secondStep===0),l=Ko(),{operationRef:s,onSelect:u,hideRanges:c,defaultOpenValue:d}=l,{inRange:f,panelPosition:p,rangedValue:v,hoverRangedValue:m}=bc(),h=be({}),[g,x]=Zt(null,{value:Ye(e,"value"),defaultValue:e.defaultValue,postState:N=>!N&&(d!=null&&d.value)&&e.picker==="time"?d.value:N}),[y,w]=Zt(null,{value:Ye(e,"pickerValue"),defaultValue:e.defaultPickerValue||g.value,postState:N=>{const{generateConfig:R,showTime:_,defaultValue:L}=e,k=R.getNow();return N?!g.value&&e.showTime?typeof _=="object"?Jd(R,Array.isArray(N)?N[0]:N,_.defaultValue||k):L?Jd(R,Array.isArray(N)?N[0]:N,L):Jd(R,Array.isArray(N)?N[0]:N,k):N:k}}),b=N=>{w(N),e.onPickerValueChange&&e.onPickerValueChange(N)},S=N=>{const R=xJ[e.picker];return R?R(N):N},[$,D]=Zt(()=>e.picker==="time"?"time":S("date"),{value:Ye(e,"mode")});Ne(()=>e.picker,()=>{D(e.picker)});const O=be($.value),A=N=>{O.value=N},T=(N,R)=>{const{onPanelChange:_,generateConfig:L}=e,k=S(N||$.value);A($.value),D(k),_&&($.value!==k||Xl(L,y.value,y.value))&&_(R,k)},M=function(N,R){let _=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{picker:L,generateConfig:k,onSelect:H,onChange:V,disabledDate:U}=e;($.value===L||_)&&(x(N),H&&H(N),u&&u(N,R),V&&!Xl(k,N,g.value)&&!(U!=null&&U(N))&&V(N))},B=N=>h.value&&h.value.onKeydown?([_e.LEFT,_e.RIGHT,_e.UP,_e.DOWN,_e.PAGE_UP,_e.PAGE_DOWN,_e.ENTER].includes(N.which)&&N.preventDefault(),h.value.onKeydown(N)):!1,F=N=>{h.value&&h.value.onBlur&&h.value.onBlur(N)},P=()=>{const{generateConfig:N,hourStep:R,minuteStep:_,secondStep:L}=e,k=N.getNow(),H=dJ(N.getHour(k),N.getMinute(k),N.getSecond(k),o.value?R:1,a.value?_:1,i.value?L:1),V=HP(N,k,H[0],H[1],H[2]);M(V,"submit")},I=z(()=>{const{prefixCls:N,direction:R}=e;return ge(`${N}-panel`,{[`${N}-panel-has-range`]:v&&v.value&&v.value[0]&&v.value[1],[`${N}-panel-has-range-hover`]:m&&m.value&&m.value[0]&&m.value[1],[`${N}-panel-rtl`]:R==="rtl"})});return T1(E(E({},l),{mode:$,hideHeader:z(()=>{var N;return e.hideHeader!==void 0?e.hideHeader:(N=l.hideHeader)===null||N===void 0?void 0:N.value}),hidePrevBtn:z(()=>f.value&&p.value==="right"),hideNextBtn:z(()=>f.value&&p.value==="left")})),Ne(()=>e.value,()=>{e.value&&w(e.value)}),()=>{const{prefixCls:N="ant-picker",locale:R,generateConfig:_,disabledDate:L,picker:k="date",tabindex:H=0,showNow:V,showTime:U,showToday:q,renderExtraFooter:K,onMousedown:X,onOk:re,components:ee}=e;s&&p.value!=="right"&&(s.value={onKeydown:B,onClose:()=>{h.value&&h.value.onClose&&h.value.onClose()}});let G;const le=E(E(E({},n),e),{operationRef:h,prefixCls:N,viewDate:y.value,value:g.value,onViewDateChange:b,sourceMode:O.value,onPanelChange:T,disabledDate:L});switch(delete le.onChange,delete le.onSelect,$.value){case"decade":G=C(P1,j(j({},le),{},{onSelect:(Q,te)=>{b(Q),M(Q,te)}}),null);break;case"year":G=C(K1,j(j({},le),{},{onSelect:(Q,te)=>{b(Q),M(Q,te)}}),null);break;case"month":G=C(k1,j(j({},le),{},{onSelect:(Q,te)=>{b(Q),M(Q,te)}}),null);break;case"quarter":G=C(V1,j(j({},le),{},{onSelect:(Q,te)=>{b(Q),M(Q,te)}}),null);break;case"week":G=C(R1,j(j({},le),{},{onSelect:(Q,te)=>{b(Q),M(Q,te)}}),null);break;case"time":delete le.showTime,G=C(Vm,j(j(j({},le),typeof U=="object"?U:null),{},{onSelect:(Q,te)=>{b(Q),M(Q,te)}}),null);break;default:U?G=C(F1,j(j({},le),{},{onSelect:(Q,te)=>{b(Q),M(Q,te)}}),null):G=C(xc,j(j({},le),{},{onSelect:(Q,te)=>{b(Q),M(Q,te)}}),null)}let ue,me;c!=null&&c.value||(ue=QP(N,$.value,K),me=eI({prefixCls:N,components:ee,needConfirmButton:r.value,okDisabled:!g.value||L&&L(g.value),locale:R,showNow:V,onNow:r.value&&P,onOk:()=>{g.value&&(M(g.value,"submit",!0),re&&re(g.value))}}));let Se;if(q&&$.value==="date"&&k==="date"&&!U){const Q=_.getNow(),te=`${N}-today-btn`,de=L&&L(Q);Se=C("a",{class:ge(te,de&&`${te}-disabled`),"aria-disabled":de,onClick:()=>{de||M(Q,"mouse",!0)}},[R.today])}return C("div",{tabindex:H,class:ge(I.value,n.class),style:n.style,onKeydown:B,onBlur:F,onMousedown:X},[G,ue||me||Se?C("div",{class:`${N}-footer`},[ue,me,Se]):null])}}})}const BJ=_J(),q1=e=>C(BJ,e),FJ={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function tI(e,t){let{slots:n}=t;const{prefixCls:r,popupStyle:o,visible:a,dropdownClassName:i,dropdownAlign:l,transitionName:s,getPopupContainer:u,range:c,popupPlacement:d,direction:f}=yn(e),p=`${r}-dropdown`;return C(ol,{showAction:[],hideAction:[],popupPlacement:(()=>d!==void 0?d:f==="rtl"?"bottomRight":"bottomLeft")(),builtinPlacements:FJ,prefixCls:p,popupTransitionName:s,popupAlign:l,popupVisible:a,popupClassName:ge(i,{[`${p}-range`]:c,[`${p}-rtl`]:f==="rtl"}),popupStyle:o,getPopupContainer:u},{default:n.default,popup:n.popupElement})}const nI=he({name:"PresetPanel",props:{prefixCls:String,presets:{type:Array,default:()=>[]},onClick:Function,onHover:Function},setup(e){return()=>e.presets.length?C("div",{class:`${e.prefixCls}-presets`},[C("ul",null,[e.presets.map((t,n)=>{let{label:r,value:o}=t;return C("li",{key:n,onClick:()=>{e.onClick(o)},onMouseenter:()=>{var a;(a=e.onHover)===null||a===void 0||a.call(e,o)},onMouseleave:()=>{var a;(a=e.onHover)===null||a===void 0||a.call(e,null)}},[r])})])]):null}});function h0(e){let{open:t,value:n,isClickOutside:r,triggerOpen:o,forwardKeydown:a,onKeydown:i,blurToCancel:l,onSubmit:s,onCancel:u,onFocus:c,onBlur:d}=e;const f=pe(!1),p=pe(!1),v=pe(!1),m=pe(!1),h=pe(!1),g=z(()=>({onMousedown:()=>{f.value=!0,o(!0)},onKeydown:y=>{if(i(y,()=>{h.value=!0}),!h.value){switch(y.which){case _e.ENTER:{t.value?s()!==!1&&(f.value=!0):o(!0),y.preventDefault();return}case _e.TAB:{f.value&&t.value&&!y.shiftKey?(f.value=!1,y.preventDefault()):!f.value&&t.value&&!a(y)&&y.shiftKey&&(f.value=!0,y.preventDefault());return}case _e.ESC:{f.value=!0,u();return}}!t.value&&![_e.SHIFT].includes(y.which)?o(!0):f.value||a(y)}},onFocus:y=>{f.value=!0,p.value=!0,c&&c(y)},onBlur:y=>{if(v.value||!r(document.activeElement)){v.value=!1;return}l.value?setTimeout(()=>{let{activeElement:w}=document;for(;w&&w.shadowRoot;)w=w.shadowRoot.activeElement;r(w)&&u()},0):t.value&&(o(!1),m.value&&s()),p.value=!1,d&&d(y)}}));Ne(t,()=>{m.value=!1}),Ne(n,()=>{m.value=!0});const x=pe();return Qe(()=>{x.value=mJ(y=>{const w=vJ(y);if(t.value){const b=r(w);b?(!p.value||b)&&o(!1):(v.value=!0,tt(()=>{v.value=!1}))}})}),st(()=>{x.value&&x.value()}),[g,{focused:p,typing:f}]}function g0(e){let{valueTexts:t,onTextChange:n}=e;const r=be("");function o(i){r.value=i,n(i)}function a(){r.value=t.value[0]}return Ne(()=>[...t.value],function(i){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];i.join("||")!==l.join("||")&&t.value.every(s=>s!==r.value)&&a()},{immediate:!0}),[r,o,a]}function vp(e,t){let{formatList:n,generateConfig:r,locale:o}=t;const a=_b(()=>{if(!e.value)return[[""],""];let s="";const u=[];for(let c=0;c<n.value.length;c+=1){const d=n.value[c],f=jn(e.value,{generateConfig:r.value,locale:o.value,format:d});u.push(f),c===0&&(s=f)}return[u,s]},[e,n],(s,u)=>u[0]!==s[0]||!Pl(u[1],s[1])),i=z(()=>a.value[0]),l=z(()=>a.value[1]);return[i,l]}function y0(e,t){let{formatList:n,generateConfig:r,locale:o}=t;const a=be(null);let i;function l(d){let f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(tt.cancel(i),f){a.value=d;return}i=tt(()=>{a.value=d})}const[,s]=vp(a,{formatList:n,generateConfig:r,locale:o});function u(d){l(d)}function c(){let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;l(null,d)}return Ne(e,()=>{c(!0)}),st(()=>{tt.cancel(i)}),[s,u,c]}function rI(e,t){return z(()=>e!=null&&e.value?e.value:t!=null&&t.value?(dm(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.keys(t.value).map(r=>{const o=t.value[r],a=typeof o=="function"?o():o;return{label:r,value:a}})):[])}function RJ(){return he({name:"Picker",inheritAttrs:!1,props:["prefixCls","id","tabindex","dropdownClassName","dropdownAlign","popupStyle","transitionName","generateConfig","locale","inputReadOnly","allowClear","autofocus","showTime","showNow","showHour","showMinute","showSecond","picker","format","use12Hours","value","defaultValue","open","defaultOpen","defaultOpenValue","suffixIcon","presets","clearIcon","disabled","disabledDate","placeholder","getPopupContainer","panelRender","inputRender","onChange","onOpenChange","onFocus","onBlur","onMousedown","onMouseup","onMouseenter","onMouseleave","onContextmenu","onClick","onKeydown","onSelect","direction","autocomplete","showToday","renderExtraFooter","dateRender","minuteStep","hourStep","secondStep","hideDisabledOptions"],setup(e,t){let{attrs:n,expose:r}=t;const o=be(null),a=z(()=>e.presets),i=rI(a),l=z(()=>{var L;return(L=e.picker)!==null&&L!==void 0?L:"date"}),s=z(()=>l.value==="date"&&!!e.showTime||l.value==="time"),u=z(()=>XP(jP(e.format,l.value,e.showTime,e.use12Hours))),c=be(null),d=be(null),f=be(null),[p,v]=Zt(null,{value:Ye(e,"value"),defaultValue:e.defaultValue}),m=be(p.value),h=L=>{m.value=L},g=be(null),[x,y]=Zt(!1,{value:Ye(e,"open"),defaultValue:e.defaultOpen,postState:L=>e.disabled?!1:L,onChange:L=>{e.onOpenChange&&e.onOpenChange(L),!L&&g.value&&g.value.onClose&&g.value.onClose()}}),[w,b]=vp(m,{formatList:u,generateConfig:Ye(e,"generateConfig"),locale:Ye(e,"locale")}),[S,$,D]=g0({valueTexts:w,onTextChange:L=>{const k=qP(L,{locale:e.locale,formatList:u.value,generateConfig:e.generateConfig});k&&(!e.disabledDate||!e.disabledDate(k))&&h(k)}}),O=L=>{const{onChange:k,generateConfig:H,locale:V}=e;h(L),v(L),k&&!Xl(H,p.value,L)&&k(L,L?jn(L,{generateConfig:H,locale:V,format:u.value[0]}):"")},A=L=>{e.disabled&&L||y(L)},T=L=>x.value&&g.value&&g.value.onKeydown?g.value.onKeydown(L):!1,M=function(){e.onMouseup&&e.onMouseup(...arguments),o.value&&(o.value.focus(),A(!0))},[B,{focused:F,typing:P}]=h0({blurToCancel:s,open:x,value:S,triggerOpen:A,forwardKeydown:T,isClickOutside:L=>!WP([c.value,d.value,f.value],L),onSubmit:()=>!m.value||e.disabledDate&&e.disabledDate(m.value)?!1:(O(m.value),A(!1),D(),!0),onCancel:()=>{A(!1),h(p.value),D()},onKeydown:(L,k)=>{var H;(H=e.onKeydown)===null||H===void 0||H.call(e,L,k)},onFocus:L=>{var k;(k=e.onFocus)===null||k===void 0||k.call(e,L)},onBlur:L=>{var k;(k=e.onBlur)===null||k===void 0||k.call(e,L)}});Ne([x,w],()=>{x.value||(h(p.value),!w.value.length||w.value[0]===""?$(""):b.value!==S.value&&D())}),Ne(l,()=>{x.value||D()}),Ne(p,()=>{h(p.value)});const[I,N,R]=y0(S,{formatList:u,generateConfig:Ye(e,"generateConfig"),locale:Ye(e,"locale")}),_=(L,k)=>{(k==="submit"||k!=="key"&&!s.value)&&(O(L),A(!1))};return T1({operationRef:g,hideHeader:z(()=>l.value==="time"),onSelect:_,open:x,defaultOpenValue:Ye(e,"defaultOpenValue"),onDateMouseenter:N,onDateMouseleave:R}),r({focus:()=>{o.value&&o.value.focus()},blur:()=>{o.value&&o.value.blur()}}),()=>{const{prefixCls:L="rc-picker",id:k,tabindex:H,dropdownClassName:V,dropdownAlign:U,popupStyle:q,transitionName:K,generateConfig:X,locale:re,inputReadOnly:ee,allowClear:G,autofocus:le,picker:ue="date",defaultOpenValue:me,suffixIcon:Se,clearIcon:Q,disabled:te,placeholder:de,getPopupContainer:Y,panelRender:ae,onMousedown:ce,onMouseenter:Ce,onMouseleave:ye,onContextmenu:J,onClick:ne,onSelect:oe,direction:ie,autocomplete:ve="off"}=e,we=E(E(E({},e),n),{class:ge({[`${L}-panel-focused`]:!P.value}),style:void 0,pickerValue:void 0,onPickerValueChange:void 0,onChange:null});let $e=C("div",{class:`${L}-panel-layout`},[C(nI,{prefixCls:L,presets:i.value,onClick:Be=>{O(Be),A(!1)}},null),C(q1,j(j({},we),{},{generateConfig:X,value:m.value,locale:re,tabindex:-1,onSelect:Be=>{oe==null||oe(Be),h(Be)},direction:ie,onPanelChange:(Be,je)=>{const{onPanelChange:W}=e;R(!0),W==null||W(Be,je)}}),null)]);ae&&($e=ae($e));const Ae=C("div",{class:`${L}-panel-container`,ref:c,onMousedown:Be=>{Be.preventDefault()}},[$e]);let xe;Se&&(xe=C("span",{class:`${L}-suffix`},[Se]));let Ee;G&&p.value&&!te&&(Ee=C("span",{onMousedown:Be=>{Be.preventDefault(),Be.stopPropagation()},onMouseup:Be=>{Be.preventDefault(),Be.stopPropagation(),O(null),A(!1)},class:`${L}-clear`,role:"button"},[Q||C("span",{class:`${L}-clear-btn`},null)]));const Te=E(E(E(E({id:k,tabindex:H,disabled:te,readonly:ee||typeof u.value[0]=="function"||!P.value,value:I.value||S.value,onInput:Be=>{$(Be.target.value)},autofocus:le,placeholder:de,ref:o,title:S.value},B.value),{size:VP(ue,u.value[0],X)}),YP(e)),{autocomplete:ve}),Me=e.inputRender?e.inputRender(Te):C("input",Te,null),ze=ie==="rtl"?"bottomRight":"bottomLeft";return C("div",{ref:f,class:ge(L,n.class,{[`${L}-disabled`]:te,[`${L}-focused`]:F.value,[`${L}-rtl`]:ie==="rtl"}),style:n.style,onMousedown:ce,onMouseup:M,onMouseenter:Ce,onMouseleave:ye,onContextmenu:J,onClick:ne},[C("div",{class:ge(`${L}-input`,{[`${L}-input-placeholder`]:!!I.value}),ref:d},[Me,xe,Ee]),C(tI,{visible:x.value,popupStyle:q,prefixCls:L,dropdownClassName:V,dropdownAlign:U,getPopupContainer:Y,transitionName:K,popupPlacement:ze,direction:ie},{default:()=>[C("div",{style:{pointerEvents:"none",position:"absolute",top:0,bottom:0,left:0,right:0}},null)],popupElement:()=>Ae})])}}})}const zJ=RJ();function LJ(e,t){let{picker:n,locale:r,selectedValue:o,disabledDate:a,disabled:i,generateConfig:l}=e;const s=z(()=>Ft(o.value,0)),u=z(()=>Ft(o.value,1));function c(m){return l.value.locale.getWeekFirstDate(r.value.locale,m)}function d(m){const h=l.value.getYear(m),g=l.value.getMonth(m);return h*100+g}function f(m){const h=l.value.getYear(m),g=p0(l.value,m);return h*10+g}return[m=>{var h;if(a&&(!((h=a==null?void 0:a.value)===null||h===void 0)&&h.call(a,m)))return!0;if(i[1]&&u)return!ca(l.value,m,u.value)&&l.value.isAfter(m,u.value);if(t.value[1]&&u.value)switch(n.value){case"quarter":return f(m)>f(u.value);case"month":return d(m)>d(u.value);case"week":return c(m)>c(u.value);default:return!ca(l.value,m,u.value)&&l.value.isAfter(m,u.value)}return!1},m=>{var h;if(!((h=a.value)===null||h===void 0)&&h.call(a,m))return!0;if(i[0]&&s)return!ca(l.value,m,u.value)&&l.value.isAfter(s.value,m);if(t.value[0]&&s.value)switch(n.value){case"quarter":return f(m)<f(s.value);case"month":return d(m)<d(s.value);case"week":return c(m)<c(s.value);default:return!ca(l.value,m,s.value)&&l.value.isAfter(s.value,m)}return!1}]}function kJ(e,t,n,r){const o=bu(e,n,r,1);function a(i){return i(e,t)?"same":i(o,t)?"closing":"far"}switch(n){case"year":return a((i,l)=>wJ(r,i,l));case"quarter":case"month":return a((i,l)=>jm(r,i,l));default:return a((i,l)=>I1(r,i,l))}}function HJ(e,t,n,r){const o=Ft(e,0),a=Ft(e,1);if(t===0)return o;if(o&&a)switch(kJ(o,a,n,r)){case"same":return o;case"closing":return o;default:return bu(a,n,r,-1)}return o}function jJ(e){let{values:t,picker:n,defaultDates:r,generateConfig:o}=e;const a=be([Ft(r,0),Ft(r,1)]),i=be(null),l=z(()=>Ft(t.value,0)),s=z(()=>Ft(t.value,1)),u=p=>a.value[p]?a.value[p]:Ft(i.value,p)||HJ(t.value,p,n.value,o.value)||l.value||s.value||o.value.getNow(),c=be(null),d=be(null);Je(()=>{c.value=u(0),d.value=u(1)});function f(p,v){if(p){let m=qr(i.value,p,v);a.value=qr(a.value,null,v)||[null,null];const h=(v+1)%2;Ft(t.value,h)||(m=qr(m,p,h)),i.value=m}else(l.value||s.value)&&(i.value=null)}return[c,d,f]}function oI(e){return AT()?(OT(e),!0):!1}function VJ(e){return typeof e=="function"?e():xn(e)}function G1(e){var t;const n=VJ(e);return(t=n==null?void 0:n.$el)!==null&&t!==void 0?t:n}function WJ(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;Kn()?Qe(e):t?e():ht(e)}function aI(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const n=pe(),r=()=>n.value=Boolean(e());return r(),WJ(r,t),n}var Dh;const iI=typeof window<"u";iI&&(!((Dh=window==null?void 0:window.navigator)===null||Dh===void 0)&&Dh.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);const lI=iI?window:void 0;var UJ=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function KJ(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{window:r=lI}=n,o=UJ(n,["window"]);let a;const i=aI(()=>r&&"ResizeObserver"in r),l=()=>{a&&(a.disconnect(),a=void 0)},s=Ne(()=>G1(e),c=>{l(),i.value&&r&&c&&(a=new ResizeObserver(t),a.observe(c,o))},{immediate:!0,flush:"post"}),u=()=>{l(),s()};return oI(u),{isSupported:i,stop:u}}function eu(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{width:0,height:0},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{box:r="content-box"}=n,o=pe(t.width),a=pe(t.height);return KJ(e,i=>{let[l]=i;const s=r==="border-box"?l.borderBoxSize:r==="content-box"?l.contentBoxSize:l.devicePixelContentBoxSize;s?(o.value=s.reduce((u,c)=>{let{inlineSize:d}=c;return u+d},0),a.value=s.reduce((u,c)=>{let{blockSize:d}=c;return u+d},0)):(o.value=l.contentRect.width,a.value=l.contentRect.height)},n),Ne(()=>G1(e),i=>{o.value=i?t.width:0,a.value=i?t.height:0}),{width:o,height:a}}function G$(e,t){return e&&e[0]&&e[1]&&t.isAfter(e[0],e[1])?[e[1],e[0]]:e}function X$(e,t,n,r){return!!(e||r&&r[t]||n[(t+1)%2])}function qJ(){return he({name:"RangerPicker",inheritAttrs:!1,props:["prefixCls","id","popupStyle","dropdownClassName","transitionName","dropdownAlign","getPopupContainer","generateConfig","locale","placeholder","autofocus","disabled","format","picker","showTime","showNow","showHour","showMinute","showSecond","use12Hours","separator","value","defaultValue","defaultPickerValue","open","defaultOpen","disabledDate","disabledTime","dateRender","panelRender","ranges","allowEmpty","allowClear","suffixIcon","clearIcon","pickerRef","inputReadOnly","mode","renderExtraFooter","onChange","onOpenChange","onPanelChange","onCalendarChange","onFocus","onBlur","onMousedown","onMouseup","onMouseenter","onMouseleave","onClick","onOk","onKeydown","components","order","direction","activePickerIndex","autocomplete","minuteStep","hourStep","secondStep","hideDisabledOptions","disabledMinutes","presets"],setup(e,t){let{attrs:n,expose:r}=t;const o=z(()=>e.picker==="date"&&!!e.showTime||e.picker==="time"),a=z(()=>e.presets),i=z(()=>e.ranges),l=rI(a,i),s=be({}),u=be(null),c=be(null),d=be(null),f=be(null),p=be(null),v=be(null),m=be(null),h=be(null),g=z(()=>XP(jP(e.format,e.picker,e.showTime,e.use12Hours))),[x,y]=Zt(0,{value:Ye(e,"activePickerIndex")}),w=be(null),b=z(()=>{const{disabled:Le}=e;return Array.isArray(Le)?Le:[Le||!1,Le||!1]}),[S,$]=Zt(null,{value:Ye(e,"value"),defaultValue:e.defaultValue,postState:Le=>e.picker==="time"&&!e.order?Le:G$(Le,e.generateConfig)}),[D,O,A]=jJ({values:S,picker:Ye(e,"picker"),defaultDates:e.defaultPickerValue,generateConfig:Ye(e,"generateConfig")}),[T,M]=Zt(S.value,{postState:Le=>{let et=Le;if(b.value[0]&&b.value[1])return et;for(let Ze=0;Ze<2;Ze+=1)b.value[Ze]&&!Ft(et,Ze)&&!Ft(e.allowEmpty,Ze)&&(et=qr(et,e.generateConfig.getNow(),Ze));return et}}),[B,F]=Zt([e.picker,e.picker],{value:Ye(e,"mode")});Ne(()=>e.picker,()=>{F([e.picker,e.picker])});const P=(Le,et)=>{var Ze;F(Le),(Ze=e.onPanelChange)===null||Ze===void 0||Ze.call(e,et,Le)},[I,N]=LJ({picker:Ye(e,"picker"),selectedValue:T,locale:Ye(e,"locale"),disabled:b,disabledDate:Ye(e,"disabledDate"),generateConfig:Ye(e,"generateConfig")},s),[R,_]=Zt(!1,{value:Ye(e,"open"),defaultValue:e.defaultOpen,postState:Le=>b.value[x.value]?!1:Le,onChange:Le=>{var et;(et=e.onOpenChange)===null||et===void 0||et.call(e,Le),!Le&&w.value&&w.value.onClose&&w.value.onClose()}}),L=z(()=>R.value&&x.value===0),k=z(()=>R.value&&x.value===1),H=be(0),V=be(0),U=be(0),{width:q}=eu(u);Ne([R,q],()=>{!R.value&&u.value&&(U.value=q.value)});const{width:K}=eu(c),{width:X}=eu(h),{width:re}=eu(d),{width:ee}=eu(p);Ne([x,R,K,X,re,ee,()=>e.direction],()=>{V.value=0,R.value&&x.value?d.value&&p.value&&c.value&&(V.value=re.value+ee.value,K.value&&X.value&&V.value>K.value-X.value-(e.direction==="rtl"||h.value.offsetLeft>V.value?0:h.value.offsetLeft)&&(H.value=V.value)):x.value===0&&(H.value=0)},{immediate:!0});const G=be();function le(Le,et){if(Le)clearTimeout(G.value),s.value[et]=!0,y(et),_(Le),R.value||A(null,et);else if(x.value===et){_(Le);const Ze=s.value;G.value=setTimeout(()=>{Ze===s.value&&(s.value={})})}}function ue(Le){le(!0,Le),setTimeout(()=>{const et=[v,m][Le];et.value&&et.value.focus()},0)}function me(Le,et){let Ze=Le,Bt=Ft(Ze,0),pn=Ft(Ze,1);const{generateConfig:ln,locale:rr,picker:Tn,order:ao,onCalendarChange:mr,allowEmpty:Dr,onChange:Gt,showTime:or}=e;Bt&&pn&&ln.isAfter(Bt,pn)&&(Tn==="week"&&!KP(ln,rr.locale,Bt,pn)||Tn==="quarter"&&!UP(ln,Bt,pn)||Tn!=="week"&&Tn!=="quarter"&&Tn!=="time"&&!(or?Xl(ln,Bt,pn):ca(ln,Bt,pn))?(et===0?(Ze=[Bt,null],pn=null):(Bt=null,Ze=[null,pn]),s.value={[et]:!0}):(Tn!=="time"||ao!==!1)&&(Ze=G$(Ze,ln))),M(Ze);const $n=Ze&&Ze[0]?jn(Ze[0],{generateConfig:ln,locale:rr,format:g.value[0]}):"",To=Ze&&Ze[1]?jn(Ze[1],{generateConfig:ln,locale:rr,format:g.value[0]}):"";mr&&mr(Ze,[$n,To],{range:et===0?"start":"end"});const Pa=X$(Bt,0,b.value,Dr),Ws=X$(pn,1,b.value,Dr);(Ze===null||Pa&&Ws)&&($(Ze),Gt&&(!Xl(ln,Ft(S.value,0),Bt)||!Xl(ln,Ft(S.value,1),pn))&&Gt(Ze,[$n,To]));let io=null;et===0&&!b.value[1]?io=1:et===1&&!b.value[0]&&(io=0),io!==null&&io!==x.value&&(!s.value[io]||!Ft(Ze,io))&&Ft(Ze,et)?ue(io):le(!1,et)}const Se=Le=>R&&w.value&&w.value.onKeydown?w.value.onKeydown(Le):!1,Q={formatList:g,generateConfig:Ye(e,"generateConfig"),locale:Ye(e,"locale")},[te,de]=vp(z(()=>Ft(T.value,0)),Q),[Y,ae]=vp(z(()=>Ft(T.value,1)),Q),ce=(Le,et)=>{const Ze=qP(Le,{locale:e.locale,formatList:g.value,generateConfig:e.generateConfig});Ze&&!(et===0?I:N)(Ze)&&(M(qr(T.value,Ze,et)),A(Ze,et))},[Ce,ye,J]=g0({valueTexts:te,onTextChange:Le=>ce(Le,0)}),[ne,oe,ie]=g0({valueTexts:Y,onTextChange:Le=>ce(Le,1)}),[ve,we]=It(null),[$e,Ae]=It(null),[xe,Ee,Te]=y0(Ce,Q),[Me,ze,Be]=y0(ne,Q),je=Le=>{Ae(qr(T.value,Le,x.value)),x.value===0?Ee(Le):ze(Le)},W=()=>{Ae(qr(T.value,null,x.value)),x.value===0?Te():Be()},fe=(Le,et)=>({forwardKeydown:Se,onBlur:Ze=>{var Bt;(Bt=e.onBlur)===null||Bt===void 0||Bt.call(e,Ze)},isClickOutside:Ze=>!WP([c.value,d.value,f.value,u.value],Ze),onFocus:Ze=>{var Bt;y(Le),(Bt=e.onFocus)===null||Bt===void 0||Bt.call(e,Ze)},triggerOpen:Ze=>{le(Ze,Le)},onSubmit:()=>{if(!T.value||e.disabledDate&&e.disabledDate(T.value[Le]))return!1;me(T.value,Le),et()},onCancel:()=>{le(!1,Le),M(S.value),et()}}),[De,{focused:Ie,typing:Ve}]=h0(E(E({},fe(0,J)),{blurToCancel:o,open:L,value:Ce,onKeydown:(Le,et)=>{var Ze;(Ze=e.onKeydown)===null||Ze===void 0||Ze.call(e,Le,et)}})),[Ge,{focused:Ct,typing:Nt}]=h0(E(E({},fe(1,ie)),{blurToCancel:o,open:k,value:ne,onKeydown:(Le,et)=>{var Ze;(Ze=e.onKeydown)===null||Ze===void 0||Ze.call(e,Le,et)}})),Wt=Le=>{var et;(et=e.onClick)===null||et===void 0||et.call(e,Le),!R.value&&!v.value.contains(Le.target)&&!m.value.contains(Le.target)&&(b.value[0]?b.value[1]||ue(1):ue(0))},fn=Le=>{var et;(et=e.onMousedown)===null||et===void 0||et.call(e,Le),R.value&&(Ie.value||Ct.value)&&!v.value.contains(Le.target)&&!m.value.contains(Le.target)&&Le.preventDefault()},Ln=z(()=>{var Le;return!((Le=S.value)===null||Le===void 0)&&Le[0]?jn(S.value[0],{locale:e.locale,format:"YYYYMMDDHHmmss",generateConfig:e.generateConfig}):""}),Er=z(()=>{var Le;return!((Le=S.value)===null||Le===void 0)&&Le[1]?jn(S.value[1],{locale:e.locale,format:"YYYYMMDDHHmmss",generateConfig:e.generateConfig}):""});Ne([R,te,Y],()=>{R.value||(M(S.value),!te.value.length||te.value[0]===""?ye(""):de.value!==Ce.value&&J(),!Y.value.length||Y.value[0]===""?oe(""):ae.value!==ne.value&&ie())}),Ne([Ln,Er],()=>{M(S.value)}),r({focus:()=>{v.value&&v.value.focus()},blur:()=>{v.value&&v.value.blur(),m.value&&m.value.blur()}});const Oo=z(()=>R.value&&$e.value&&$e.value[0]&&$e.value[1]&&e.generateConfig.isAfter($e.value[1],$e.value[0])?$e.value:null);function Xn(){let Le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{generateConfig:Ze,showTime:Bt,dateRender:pn,direction:ln,disabledTime:rr,prefixCls:Tn,locale:ao}=e;let mr=Bt;if(Bt&&typeof Bt=="object"&&Bt.defaultValue){const Gt=Bt.defaultValue;mr=E(E({},Bt),{defaultValue:Ft(Gt,x.value)||void 0})}let Dr=null;return pn&&(Dr=Gt=>{let{current:or,today:$n}=Gt;return pn({current:or,today:$n,info:{range:x.value?"end":"start"}})}),C(TJ,{value:{inRange:!0,panelPosition:Le,rangedValue:ve.value||T.value,hoverRangedValue:Oo.value}},{default:()=>[C(q1,j(j(j({},e),et),{},{dateRender:Dr,showTime:mr,mode:B.value[x.value],generateConfig:Ze,style:void 0,direction:ln,disabledDate:x.value===0?I:N,disabledTime:Gt=>rr?rr(Gt,x.value===0?"start":"end"):!1,class:ge({[`${Tn}-panel-focused`]:x.value===0?!Ve.value:!Nt.value}),value:Ft(T.value,x.value),locale:ao,tabIndex:-1,onPanelChange:(Gt,or)=>{x.value===0&&Te(!0),x.value===1&&Be(!0),P(qr(B.value,or,x.value),qr(T.value,Gt,x.value));let $n=Gt;Le==="right"&&B.value[x.value]===or&&($n=bu($n,or,Ze,-1)),A($n,x.value)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:x.value===0?Ft(T.value,1):Ft(T.value,0)}),null)]})}const Xo=(Le,et)=>{const Ze=qr(T.value,Le,x.value);et==="submit"||et!=="key"&&!o.value?(me(Ze,x.value),x.value===0?Te():Be()):M(Ze)};return T1({operationRef:w,hideHeader:z(()=>e.picker==="time"),onDateMouseenter:je,onDateMouseleave:W,hideRanges:z(()=>!0),onSelect:Xo,open:R}),()=>{const{prefixCls:Le="rc-picker",id:et,popupStyle:Ze,dropdownClassName:Bt,transitionName:pn,dropdownAlign:ln,getPopupContainer:rr,generateConfig:Tn,locale:ao,placeholder:mr,autofocus:Dr,picker:Gt="date",showTime:or,separator:$n="~",disabledDate:To,panelRender:Pa,allowClear:Ws,suffixIcon:Us,clearIcon:io,inputReadOnly:Ks,renderExtraFooter:jv,onMouseenter:Vv,onMouseleave:Wv,onMouseup:hi,onOk:Yn,components:Mn,direction:Ia,autocomplete:zc="off"}=e,vl=Ia==="rtl"?{right:`${V.value}px`}:{left:`${V.value}px`};function hl(){let vr;const _a=QP(Le,B.value[x.value],jv),aS=eI({prefixCls:Le,components:Mn,needConfirmButton:o.value,okDisabled:!Ft(T.value,x.value)||To&&To(T.value[x.value]),locale:ao,onOk:()=>{Ft(T.value,x.value)&&(me(T.value,x.value),Yn&&Yn(T.value))}});if(Gt!=="time"&&!or){const Ba=x.value===0?D.value:O.value,LB=bu(Ba,Gt,Tn),Gv=B.value[x.value]===Gt,iS=Xn(Gv?"left":!1,{pickerValue:Ba,onPickerValueChange:Xv=>{A(Xv,x.value)}}),lS=Xn("right",{pickerValue:LB,onPickerValueChange:Xv=>{A(bu(Xv,Gt,Tn,-1),x.value)}});Ia==="rtl"?vr=C(dt,null,[lS,Gv&&iS]):vr=C(dt,null,[iS,Gv&&lS])}else vr=Xn();let qv=C("div",{class:`${Le}-panel-layout`},[C(nI,{prefixCls:Le,presets:l.value,onClick:Ba=>{me(Ba,null),le(!1,x.value)},onHover:Ba=>{we(Ba)}},null),C("div",null,[C("div",{class:`${Le}-panels`},[vr]),(_a||aS)&&C("div",{class:`${Le}-footer`},[_a,aS])])]);return Pa&&(qv=Pa(qv)),C("div",{class:`${Le}-panel-container`,style:{marginLeft:`${H.value}px`},ref:c,onMousedown:Ba=>{Ba.preventDefault()}},[qv])}const Lc=C("div",{class:ge(`${Le}-range-wrapper`,`${Le}-${Gt}-range-wrapper`),style:{minWidth:`${U.value}px`}},[C("div",{ref:h,class:`${Le}-range-arrow`,style:vl},null),hl()]);let qs;Us&&(qs=C("span",{class:`${Le}-suffix`},[Us]));let Yo;Ws&&(Ft(S.value,0)&&!b.value[0]||Ft(S.value,1)&&!b.value[1])&&(Yo=C("span",{onMousedown:vr=>{vr.preventDefault(),vr.stopPropagation()},onMouseup:vr=>{vr.preventDefault(),vr.stopPropagation();let _a=S.value;b.value[0]||(_a=qr(_a,null,0)),b.value[1]||(_a=qr(_a,null,1)),me(_a,null),le(!1,x.value)},class:`${Le}-clear`},[io||C("span",{class:`${Le}-clear-btn`},null)]));const oS={size:VP(Gt,g.value[0],Tn)};let Uv=0,Kv=0;d.value&&f.value&&p.value&&(x.value===0?Kv=d.value.offsetWidth:(Uv=V.value,Kv=f.value.offsetWidth));const zB=Ia==="rtl"?{right:`${Uv}px`}:{left:`${Uv}px`};return C("div",j({ref:u,class:ge(Le,`${Le}-range`,n.class,{[`${Le}-disabled`]:b.value[0]&&b.value[1],[`${Le}-focused`]:x.value===0?Ie.value:Ct.value,[`${Le}-rtl`]:Ia==="rtl"}),style:n.style,onClick:Wt,onMouseenter:Vv,onMouseleave:Wv,onMousedown:fn,onMouseup:hi},YP(e)),[C("div",{class:ge(`${Le}-input`,{[`${Le}-input-active`]:x.value===0,[`${Le}-input-placeholder`]:!!xe.value}),ref:d},[C("input",j(j(j({id:et,disabled:b.value[0],readonly:Ks||typeof g.value[0]=="function"||!Ve.value,value:xe.value||Ce.value,onInput:vr=>{ye(vr.target.value)},autofocus:Dr,placeholder:Ft(mr,0)||"",ref:v},De.value),oS),{},{autocomplete:zc}),null)]),C("div",{class:`${Le}-range-separator`,ref:p},[$n]),C("div",{class:ge(`${Le}-input`,{[`${Le}-input-active`]:x.value===1,[`${Le}-input-placeholder`]:!!Me.value}),ref:f},[C("input",j(j(j({disabled:b.value[1],readonly:Ks||typeof g.value[0]=="function"||!Nt.value,value:Me.value||ne.value,onInput:vr=>{oe(vr.target.value)},placeholder:Ft(mr,1)||"",ref:m},Ge.value),oS),{},{autocomplete:zc}),null)]),C("div",{class:`${Le}-active-bar`,style:E(E({},zB),{width:`${Kv}px`,position:"absolute"})},null),qs,Yo,C(tI,{visible:R.value,popupStyle:Ze,prefixCls:Le,dropdownClassName:Bt,dropdownAlign:ln,getPopupContainer:rr,transitionName:pn,range:!0,direction:Ia},{default:()=>[C("div",{style:{pointerEvents:"none",position:"absolute",top:0,bottom:0,left:0,right:0}},null)],popupElement:()=>Lc})])}}})}const GJ=qJ(),XJ=GJ;var YJ=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const ZJ={prefixCls:String,name:String,id:String,type:String,defaultChecked:{type:[Boolean,Number],default:void 0},checked:{type:[Boolean,Number],default:void 0},disabled:Boolean,tabindex:{type:[Number,String]},readonly:Boolean,autofocus:Boolean,value:Z.any,required:Boolean},sI=he({compatConfig:{MODE:3},name:"Checkbox",inheritAttrs:!1,props:at(ZJ,{prefixCls:"rc-checkbox",type:"checkbox",defaultChecked:!1}),emits:["click","change"],setup(e,t){let{attrs:n,emit:r,expose:o}=t;const a=be(e.checked===void 0?e.defaultChecked:e.checked),i=be();Ne(()=>e.checked,()=>{a.value=e.checked}),o({focus(){var c;(c=i.value)===null||c===void 0||c.focus()},blur(){var c;(c=i.value)===null||c===void 0||c.blur()}});const l=be(),s=c=>{if(e.disabled)return;e.checked===void 0&&(a.value=c.target.checked),c.shiftKey=l.value;const d={target:E(E({},e),{checked:c.target.checked}),stopPropagation(){c.stopPropagation()},preventDefault(){c.preventDefault()},nativeEvent:c};e.checked!==void 0&&(i.value.checked=!!e.checked),r("change",d),l.value=!1},u=c=>{r("click",c),l.value=c.shiftKey};return()=>{const{prefixCls:c,name:d,id:f,type:p,disabled:v,readonly:m,tabindex:h,autofocus:g,value:x,required:y}=e,w=YJ(e,["prefixCls","name","id","type","disabled","readonly","tabindex","autofocus","value","required"]),{class:b,onFocus:S,onBlur:$,onKeydown:D,onKeypress:O,onKeyup:A}=n,T=E(E({},w),n),M=Object.keys(T).reduce((P,I)=>((I.startsWith("data-")||I.startsWith("aria-")||I==="role")&&(P[I]=T[I]),P),{}),B=ge(c,b,{[`${c}-checked`]:a.value,[`${c}-disabled`]:v}),F=E(E({name:d,id:f,type:p,readonly:m,disabled:v,tabindex:h,class:`${c}-input`,checked:!!a.value,autofocus:g,value:x},M),{onChange:s,onClick:u,onFocus:S,onBlur:$,onKeydown:D,onKeypress:O,onKeyup:A,required:y});return C("span",{class:B},[C("input",j({ref:i},F),null),C("span",{class:`${c}-inner`},null)])}}}),uI=Symbol("radioGroupContextKey"),JJ=e=>{it(uI,e)},QJ=()=>lt(uI,void 0),cI=Symbol("radioOptionTypeContextKey"),eQ=e=>{it(cI,e)},tQ=()=>lt(cI,void 0),nQ=new ft("antRadioEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),rQ=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:E(E({},rt(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},oQ=e=>{const{componentCls:t,radioWrapperMarginRight:n,radioCheckedColor:r,radioSize:o,motionDurationSlow:a,motionDurationMid:i,motionEaseInOut:l,motionEaseInOutCirc:s,radioButtonBg:u,colorBorder:c,lineWidth:d,radioDotSize:f,colorBgContainerDisabled:p,colorTextDisabled:v,paddingXS:m,radioDotDisabledColor:h,lineType:g,radioDotDisabledSize:x,wireframe:y,colorWhite:w}=e,b=`${t}-inner`;return{[`${t}-wrapper`]:E(E({},rt(e)),{position:"relative",display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${d}px ${g} ${r}`,borderRadius:"50%",visibility:"hidden",animationName:nQ,animationDuration:a,animationTimingFunction:l,animationFillMode:"both",content:'""'},[t]:E(E({},rt(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center"}),[`${t}-wrapper:hover &,
- &:hover ${b}`]:{borderColor:r},[`${t}-input:focus-visible + ${b}`]:E({},ya(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:o,height:o,marginBlockStart:o/-2,marginInlineStart:o/-2,backgroundColor:y?r:w,borderBlockStart:0,borderInlineStart:0,borderRadius:o,transform:"scale(0)",opacity:0,transition:`all ${a} ${s}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:o,height:o,backgroundColor:u,borderColor:c,borderStyle:"solid",borderWidth:d,borderRadius:"50%",transition:`all ${i}`},[`${t}-input`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,insetBlockEnd:0,insetInlineStart:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[b]:{borderColor:r,backgroundColor:y?u:r,"&::after":{transform:`scale(${f/o})`,opacity:1,transition:`all ${a} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[b]:{backgroundColor:p,borderColor:c,cursor:"not-allowed","&::after":{backgroundColor:h}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:v,cursor:"not-allowed"},[`&${t}-checked`]:{[b]:{"&::after":{transform:`scale(${x/o})`}}}},[`span${t} + *`]:{paddingInlineStart:m,paddingInlineEnd:m}})}},aQ=e=>{const{radioButtonColor:t,controlHeight:n,componentCls:r,lineWidth:o,lineType:a,colorBorder:i,motionDurationSlow:l,motionDurationMid:s,radioButtonPaddingHorizontal:u,fontSize:c,radioButtonBg:d,fontSizeLG:f,controlHeightLG:p,controlHeightSM:v,paddingXS:m,borderRadius:h,borderRadiusSM:g,borderRadiusLG:x,radioCheckedColor:y,radioButtonCheckedBg:w,radioButtonHoverColor:b,radioButtonActiveColor:S,radioSolidCheckedColor:$,colorTextDisabled:D,colorBgContainerDisabled:O,radioDisabledButtonCheckedColor:A,radioDisabledButtonCheckedBg:T}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:u,paddingBlock:0,color:t,fontSize:c,lineHeight:`${n-o*2}px`,background:d,border:`${o}px ${a} ${i}`,borderBlockStartWidth:o+.02,borderInlineStartWidth:0,borderInlineEndWidth:o,cursor:"pointer",transition:[`color ${s}`,`background ${s}`,`border-color ${s}`,`box-shadow ${s}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-o,insetInlineStart:-o,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:o,paddingInline:0,backgroundColor:i,transition:`background-color ${l}`,content:'""'}},"&:first-child":{borderInlineStart:`${o}px ${a} ${i}`,borderStartStartRadius:h,borderEndStartRadius:h},"&:last-child":{borderStartEndRadius:h,borderEndEndRadius:h},"&:first-child:last-child":{borderRadius:h},[`${r}-group-large &`]:{height:p,fontSize:f,lineHeight:`${p-o*2}px`,"&:first-child":{borderStartStartRadius:x,borderEndStartRadius:x},"&:last-child":{borderStartEndRadius:x,borderEndEndRadius:x}},[`${r}-group-small &`]:{height:v,paddingInline:m-o,paddingBlock:0,lineHeight:`${v-o*2}px`,"&:first-child":{borderStartStartRadius:g,borderEndStartRadius:g},"&:last-child":{borderStartEndRadius:g,borderEndEndRadius:g}},"&:hover":{position:"relative",color:y},"&:has(:focus-visible)":E({},ya(e)),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:y,background:w,borderColor:y,"&::before":{backgroundColor:y},"&:first-child":{borderColor:y},"&:hover":{color:b,borderColor:b,"&::before":{backgroundColor:b}},"&:active":{color:S,borderColor:S,"&::before":{backgroundColor:S}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:$,background:y,borderColor:y,"&:hover":{color:$,background:b,borderColor:b},"&:active":{color:$,background:S,borderColor:S}},"&-disabled":{color:D,backgroundColor:O,borderColor:i,cursor:"not-allowed","&:first-child, &:hover":{color:D,backgroundColor:O,borderColor:i}},[`&-disabled${r}-button-wrapper-checked`]:{color:A,backgroundColor:T,borderColor:i,boxShadow:"none"}}}},dI=nt("Radio",e=>{const{padding:t,lineWidth:n,controlItemBgActiveDisabled:r,colorTextDisabled:o,colorBgContainer:a,fontSizeLG:i,controlOutline:l,colorPrimaryHover:s,colorPrimaryActive:u,colorText:c,colorPrimary:d,marginXS:f,controlOutlineWidth:p,colorTextLightSolid:v,wireframe:m}=e,h=`0 0 0 ${p}px ${l}`,g=h,x=i,y=4,w=x-y*2,b=m?w:x-(y+n)*2,S=d,$=c,D=s,O=u,A=t-n,B=qe(e,{radioFocusShadow:h,radioButtonFocusShadow:g,radioSize:x,radioDotSize:b,radioDotDisabledSize:w,radioCheckedColor:S,radioDotDisabledColor:o,radioSolidCheckedColor:v,radioButtonBg:a,radioButtonCheckedBg:a,radioButtonColor:$,radioButtonHoverColor:D,radioButtonActiveColor:O,radioButtonPaddingHorizontal:A,radioDisabledButtonCheckedBg:r,radioDisabledButtonCheckedColor:o,radioWrapperMarginRight:f});return[rQ(B),oQ(B),aQ(B)]});var iQ=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const fI=()=>({prefixCls:String,checked:Pe(),disabled:Pe(),isGroup:Pe(),value:Z.any,name:String,id:String,autofocus:Pe(),onChange:Oe(),onFocus:Oe(),onBlur:Oe(),onClick:Oe(),"onUpdate:checked":Oe(),"onUpdate:value":Oe()}),ar=he({compatConfig:{MODE:3},name:"ARadio",inheritAttrs:!1,props:fI(),setup(e,t){let{emit:n,expose:r,slots:o,attrs:a}=t;const i=Cn(),l=Bn.useInject(),s=tQ(),u=QJ(),c=Fr(),d=z(()=>{var D;return(D=m.value)!==null&&D!==void 0?D:c.value}),f=be(),{prefixCls:p,direction:v,disabled:m}=He("radio",e),h=z(()=>(u==null?void 0:u.optionType.value)==="button"||s==="button"?`${p.value}-button`:p.value),g=Fr(),[x,y]=dI(p);r({focus:()=>{f.value.focus()},blur:()=>{f.value.blur()}});const S=D=>{const O=D.target.checked;n("update:checked",O),n("update:value",O),n("change",D),i.onFieldChange()},$=D=>{n("change",D),u&&u.onChange&&u.onChange(D)};return()=>{var D;const O=u,{prefixCls:A,id:T=i.id.value}=e,M=iQ(e,["prefixCls","id"]),B=E(E({prefixCls:h.value,id:T},pt(M,["onUpdate:checked","onUpdate:value"])),{disabled:(D=m.value)!==null&&D!==void 0?D:g.value});O?(B.name=O.name.value,B.onChange=$,B.checked=e.value===O.value.value,B.disabled=d.value||O.disabled.value):B.onChange=S;const F=ge({[`${h.value}-wrapper`]:!0,[`${h.value}-wrapper-checked`]:B.checked,[`${h.value}-wrapper-disabled`]:B.disabled,[`${h.value}-wrapper-rtl`]:v.value==="rtl",[`${h.value}-wrapper-in-form-item`]:l.isFormItemInput},a.class,y.value);return x(C("label",j(j({},a),{},{class:F}),[C(sI,j(j({},B),{},{type:"radio",ref:f}),null),o.default&&C("span",null,[o.default()])]))}}}),lQ=()=>({prefixCls:String,value:Z.any,size:Ue(),options:bt(),disabled:Pe(),name:String,buttonStyle:Ue("outline"),id:String,optionType:Ue("default"),onChange:Oe(),"onUpdate:value":Oe()}),X1=he({compatConfig:{MODE:3},name:"ARadioGroup",inheritAttrs:!1,props:lQ(),setup(e,t){let{slots:n,emit:r,attrs:o}=t;const a=Cn(),{prefixCls:i,direction:l,size:s}=He("radio",e),[u,c]=dI(i),d=be(e.value),f=be(!1);return Ne(()=>e.value,v=>{d.value=v,f.value=!1}),JJ({onChange:v=>{const m=d.value,{value:h}=v.target;"value"in e||(d.value=h),!f.value&&h!==m&&(f.value=!0,r("update:value",h),r("change",v),a.onFieldChange()),ht(()=>{f.value=!1})},value:d,disabled:z(()=>e.disabled),name:z(()=>e.name),optionType:z(()=>e.optionType)}),()=>{var v;const{options:m,buttonStyle:h,id:g=a.id.value}=e,x=`${i.value}-group`,y=ge(x,`${x}-${h}`,{[`${x}-${s.value}`]:s.value,[`${x}-rtl`]:l.value==="rtl"},o.class,c.value);let w=null;return m&&m.length>0?w=m.map(b=>{if(typeof b=="string"||typeof b=="number")return C(ar,{key:b,prefixCls:i.value,disabled:e.disabled,value:b,checked:d.value===b},{default:()=>[b]});const{value:S,disabled:$,label:D}=b;return C(ar,{key:`radio-group-value-options-${S}`,prefixCls:i.value,disabled:$||e.disabled,value:S,checked:d.value===S},{default:()=>[D]})}):w=(v=n.default)===null||v===void 0?void 0:v.call(n),u(C("div",j(j({},o),{},{class:y,id:g}),[w]))}}}),hp=he({compatConfig:{MODE:3},name:"ARadioButton",inheritAttrs:!1,props:fI(),setup(e,t){let{slots:n,attrs:r}=t;const{prefixCls:o}=He("radio",e);return eQ("button"),()=>{var a;return C(ar,j(j(j({},r),e),{},{prefixCls:o.value}),{default:()=>[(a=n.default)===null||a===void 0?void 0:a.call(n)]})}}});ar.Group=X1;ar.Button=hp;ar.install=function(e){return e.component(ar.name,ar),e.component(ar.Group.name,ar.Group),e.component(ar.Button.name,ar.Button),e};const sQ=10,uQ=20;function pI(e){const{fullscreen:t,validRange:n,generateConfig:r,locale:o,prefixCls:a,value:i,onChange:l,divRef:s}=e,u=r.getYear(i||r.getNow());let c=u-sQ,d=c+uQ;n&&(c=r.getYear(n[0]),d=r.getYear(n[1])+1);const f=o&&o.year==="年"?"年":"",p=[];for(let v=c;v<d;v++)p.push({label:`${v}${f}`,value:v});return C(xa,{size:t?void 0:"small",options:p,value:u,class:`${a}-year-select`,onChange:v=>{let m=r.setYear(i,v);if(n){const[h,g]=n,x=r.getYear(m),y=r.getMonth(m);x===r.getYear(g)&&y>r.getMonth(g)&&(m=r.setMonth(m,r.getMonth(g))),x===r.getYear(h)&&y<r.getMonth(h)&&(m=r.setMonth(m,r.getMonth(h)))}l(m)},getPopupContainer:()=>s.value},null)}pI.inheritAttrs=!1;function mI(e){const{prefixCls:t,fullscreen:n,validRange:r,value:o,generateConfig:a,locale:i,onChange:l,divRef:s}=e,u=a.getMonth(o||a.getNow());let c=0,d=11;if(r){const[v,m]=r,h=a.getYear(o);a.getYear(m)===h&&(d=a.getMonth(m)),a.getYear(v)===h&&(c=a.getMonth(v))}const f=i.shortMonths||a.locale.getShortMonths(i.locale),p=[];for(let v=c;v<=d;v+=1)p.push({label:f[v],value:v});return C(xa,{size:n?void 0:"small",class:`${t}-month-select`,value:u,options:p,onChange:v=>{l(a.setMonth(o,v))},getPopupContainer:()=>s.value},null)}mI.inheritAttrs=!1;function vI(e){const{prefixCls:t,locale:n,mode:r,fullscreen:o,onModeChange:a}=e;return C(X1,{onChange:i=>{let{target:{value:l}}=i;a(l)},value:r,size:o?void 0:"small",class:`${t}-mode-switch`},{default:()=>[C(hp,{value:"month"},{default:()=>[n.month]}),C(hp,{value:"year"},{default:()=>[n.year]})]})}vI.inheritAttrs=!1;const cQ=he({name:"CalendarHeader",inheritAttrs:!1,props:["mode","prefixCls","value","validRange","generateConfig","locale","mode","fullscreen"],setup(e,t){let{attrs:n}=t;const r=be(null),o=Bn.useInject();return Bn.useProvide(o,{isFormItemInput:!1}),()=>{const a=E(E({},e),n),{prefixCls:i,fullscreen:l,mode:s,onChange:u,onModeChange:c}=a,d=E(E({},a),{fullscreen:l,divRef:r});return C("div",{class:`${i}-header`,ref:r},[C(pI,j(j({},d),{},{onChange:f=>{u(f,"year")}}),null),s==="month"&&C(mI,j(j({},d),{},{onChange:f=>{u(f,"month")}}),null),C(vI,j(j({},d),{},{onModeChange:c}),null)])}}}),Y1=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Rs=e=>({borderColor:e.inputBorderHoverColor,borderInlineEndWidth:e.lineWidth}),ri=e=>({borderColor:e.inputBorderHoverColor,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`,borderInlineEndWidth:e.lineWidth,outline:0}),Z1=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":E({},Rs(qe(e,{inputBorderHoverColor:e.colorBorder})))}),hI=e=>{const{inputPaddingVerticalLG:t,fontSizeLG:n,lineHeightLG:r,borderRadiusLG:o,inputPaddingHorizontalLG:a}=e;return{padding:`${t}px ${a}px`,fontSize:n,lineHeight:r,borderRadius:o}},J1=e=>({padding:`${e.inputPaddingVerticalSM}px ${e.controlPaddingHorizontalSM-1}px`,borderRadius:e.borderRadiusSM}),wc=(e,t)=>{const{componentCls:n,colorError:r,colorWarning:o,colorErrorOutline:a,colorWarningOutline:i,colorErrorBorderHover:l,colorWarningBorderHover:s}=e;return{[`&-status-error:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:r,"&:hover":{borderColor:l},"&:focus, &-focused":E({},ri(qe(e,{inputBorderActiveColor:r,inputBorderHoverColor:r,controlOutline:a}))),[`${n}-prefix`]:{color:r}},[`&-status-warning:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:o,"&:hover":{borderColor:s},"&:focus, &-focused":E({},ri(qe(e,{inputBorderActiveColor:o,inputBorderHoverColor:o,controlOutline:i}))),[`${n}-prefix`]:{color:o}}}},ll=e=>E(E({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${e.inputPaddingVertical}px ${e.inputPaddingHorizontal}px`,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,backgroundColor:e.colorBgContainer,backgroundImage:"none",borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:e.colorBorder,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},Y1(e.colorTextPlaceholder)),{"&:hover":E({},Rs(e)),"&:focus, &-focused":E({},ri(e)),"&-disabled, &[disabled]":E({},Z1(e)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":E({},hI(e)),"&-sm":E({},J1(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),gI=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`]:E({},hI(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:E({},J1(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{["&-addon, &-wrap"]:{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${e.inputPaddingHorizontal}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,textAlign:"center",backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`-${e.inputPaddingVertical+1}px -${e.inputPaddingHorizontal}px`,[`&${n}-select-single:not(${n}-select-customize-input)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${e.lineWidth}px ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px -${e.inputPaddingHorizontal}px`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${t}`]:{float:"inline-start",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`]:E(E({display:"block"},yo()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`& > ${t}-affix-wrapper`]:{display:"inline-flex"},[`& > ${n}-picker-range`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-e.lineWidth,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":{zIndex:1},"&: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.lineWidth,[`${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}}}})}},dQ=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r}=e,o=16,a=(n-r*2-o)/2;return{[t]:E(E(E(E({},rt(e)),ll(e)),wc(e,t)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:a,paddingBottom:a}}})}},fQ=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 ${e.inputAffixPadding}px`}},"&-textarea-with-clear-btn":{padding:"0 !important",border:"0 !important",[`${t}-clear-icon`]:{position:"absolute",insetBlockStart:e.paddingXS,insetInlineEnd:e.paddingXS,zIndex:1}}}},pQ=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:a,colorIconHover:i,iconCls:l}=e;return{[`${t}-affix-wrapper`]:E(E(E(E(E({},ll(e)),{display:"inline-flex",[`&:not(${t}-affix-wrapper-disabled):hover`]:E(E({},Rs(e)),{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${t}[disabled]`]:{background:"transparent"}},[`> input${t}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&:focus":{boxShadow:"none !important"}},"&::before":{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}}}),fQ(e)),{[`${l}${t}-password-icon`]:{color:a,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:i}}}),wc(e,`${t}-affix-wrapper`))}},mQ=e=>{const{componentCls:t,colorError:n,colorSuccess:r,borderRadiusLG:o,borderRadiusSM:a}=e;return{[`${t}-group`]:E(E(E({},rt(e)),gI(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:o}},"&-sm":{[`${t}-group-addon`]:{borderRadius:a}},"&-status-error":{[`${t}-group-addon`]:{color:n,borderColor:n}},"&-status-warning":{[`${t}-group-addon:last-child`]:{color:r,borderColor:r}}}})}},vQ=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.lineHeightLG-2e-4},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0},[`${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.lineWidth,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}}}}};function sl(e){return qe(e,{inputAffixPadding:e.paddingXXS,inputPaddingVertical:Math.max(Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,3),inputPaddingVerticalLG:Math.ceil((e.controlHeightLG-e.fontSizeLG*e.lineHeightLG)/2*10)/10-e.lineWidth,inputPaddingVerticalSM:Math.max(Math.round((e.controlHeightSM-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,0),inputPaddingHorizontal:e.paddingSM-e.lineWidth,inputPaddingHorizontalSM:e.paddingXS-e.lineWidth,inputPaddingHorizontalLG:e.controlPaddingHorizontal-e.lineWidth,inputBorderHoverColor:e.colorPrimaryHover,inputBorderActiveColor:e.colorPrimaryHover})}const hQ=e=>{const{componentCls:t,inputPaddingHorizontal:n,paddingLG:r}=e,o=`${t}-textarea`;return{[o]:{position:"relative",[`${o}-suffix`]:{position:"absolute",top:0,insetInlineEnd:n,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto"},[`&-status-error,
- &-status-warning,
- &-status-success,
- &-status-validating`]:{[`&${o}-has-feedback`]:{[`${t}`]:{paddingInlineEnd:r}}},"&-show-count":{[`> ${t}`]:{height:"100%"},"&::after":{color:e.colorTextDescription,whiteSpace:"nowrap",content:"attr(data-count)",pointerEvents:"none",float:"right"}},"&-rtl":{"&::after":{float:"left"}}}}},Q1=nt("Input",e=>{const t=sl(e);return[dQ(t),hQ(t),pQ(t),mQ(t),vQ(t),Is(t)]}),Ah=(e,t,n,r)=>{const{lineHeight:o}=e,a=Math.floor(n*o)+2,i=Math.max((t-a)/2,0),l=Math.max(t-a-i,0);return{padding:`${i}px ${r}px ${l}px`}},gQ=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerPanelCellHeight:o,motionDurationSlow:a,borderRadiusSM:i,motionDurationMid:l,controlItemBgHover:s,lineWidth:u,lineType:c,colorPrimary:d,controlItemBgActive:f,colorTextLightSolid:p,controlHeightSM:v,pickerDateHoverRangeBorderColor:m,pickerCellBorderGap:h,pickerBasicCellHoverWithRangeColor:g,pickerPanelCellWidth:x,colorTextDisabled:y,colorBgContainerDisabled:w}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:o,transform:"translateY(-50%)",transition:`all ${a}`,content:'""'},[r]:{position:"relative",zIndex:2,display:"inline-block",minWidth:o,height:o,lineHeight:`${o}px`,borderRadius:i,transition:`background ${l}, border ${l}`},[`&:hover:not(${n}-in-view),
- &:hover:not(${n}-selected):not(${n}-range-start):not(${n}-range-end):not(${n}-range-hover-start):not(${n}-range-hover-end)`]:{[r]:{background:s}},[`&-in-view${n}-today ${r}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${u}px ${c} ${d}`,borderRadius:i,content:'""'}},[`&-in-view${n}-in-range`]:{position:"relative","&::before":{background:f}},[`&-in-view${n}-selected ${r},
- &-in-view${n}-range-start ${r},
- &-in-view${n}-range-end ${r}`]:{color:p,background:d},[`&-in-view${n}-range-start:not(${n}-range-start-single),
- &-in-view${n}-range-end:not(${n}-range-end-single)`]:{"&::before":{background:f}},[`&-in-view${n}-range-start::before`]:{insetInlineStart:"50%"},[`&-in-view${n}-range-end::before`]:{insetInlineEnd:"50%"},[`&-in-view${n}-range-hover-start:not(${n}-in-range):not(${n}-range-start):not(${n}-range-end),
- &-in-view${n}-range-hover-end:not(${n}-in-range):not(${n}-range-start):not(${n}-range-end),
- &-in-view${n}-range-hover-start${n}-range-start-single,
- &-in-view${n}-range-hover-start${n}-range-start${n}-range-end${n}-range-end-near-hover,
- &-in-view${n}-range-hover-end${n}-range-start${n}-range-end${n}-range-start-near-hover,
- &-in-view${n}-range-hover-end${n}-range-end-single,
- &-in-view${n}-range-hover:not(${n}-in-range)`]:{"&::after":{position:"absolute",top:"50%",zIndex:0,height:v,borderTop:`${u}px dashed ${m}`,borderBottom:`${u}px dashed ${m}`,transform:"translateY(-50%)",transition:`all ${a}`,content:'""'}},[`&-range-hover-start::after,
- &-range-hover-end::after,
- &-range-hover::after`]:{insetInlineEnd:0,insetInlineStart:h},[`&-in-view${n}-in-range${n}-range-hover::before,
- &-in-view${n}-range-start${n}-range-hover::before,
- &-in-view${n}-range-end${n}-range-hover::before,
- &-in-view${n}-range-start:not(${n}-range-start-single)${n}-range-hover-start::before,
- &-in-view${n}-range-end:not(${n}-range-end-single)${n}-range-hover-end::before,
- ${t}-panel
- > :not(${t}-date-panel)
- &-in-view${n}-in-range${n}-range-hover-start::before,
- ${t}-panel
- > :not(${t}-date-panel)
- &-in-view${n}-in-range${n}-range-hover-end::before`]:{background:g},[`&-in-view${n}-range-start:not(${n}-range-start-single):not(${n}-range-end) ${r}`]:{borderStartStartRadius:i,borderEndStartRadius:i,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${n}-range-end:not(${n}-range-end-single):not(${n}-range-start) ${r}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:i,borderEndEndRadius:i},[`&-range-hover${n}-range-end::after`]:{insetInlineStart:"50%"},[`tr > &-in-view${n}-range-hover:first-child::after,
- tr > &-in-view${n}-range-hover-end:first-child::after,
- &-in-view${n}-start${n}-range-hover-edge-start${n}-range-hover-edge-start-near-range::after,
- &-in-view${n}-range-hover-edge-start:not(${n}-range-hover-edge-start-near-range)::after,
- &-in-view${n}-range-hover-start::after`]:{insetInlineStart:(x-o)/2,borderInlineStart:`${u}px dashed ${m}`,borderStartStartRadius:u,borderEndStartRadius:u},[`tr > &-in-view${n}-range-hover:last-child::after,
- tr > &-in-view${n}-range-hover-start:last-child::after,
- &-in-view${n}-end${n}-range-hover-edge-end${n}-range-hover-edge-end-near-range::after,
- &-in-view${n}-range-hover-edge-end:not(${n}-range-hover-edge-end-near-range)::after,
- &-in-view${n}-range-hover-end::after`]:{insetInlineEnd:(x-o)/2,borderInlineEnd:`${u}px dashed ${m}`,borderStartEndRadius:u,borderEndEndRadius:u},"&-disabled":{color:y,pointerEvents:"none",[r]:{background:"transparent"},"&::before":{background:w}},[`&-disabled${n}-today ${r}::before`]:{borderColor:y}}},yI=e=>{const{componentCls:t,pickerCellInnerCls:n,pickerYearMonthCellWidth:r,pickerControlIconSize:o,pickerPanelCellWidth:a,paddingSM:i,paddingXS:l,paddingXXS:s,colorBgContainer:u,lineWidth:c,lineType:d,borderRadiusLG:f,colorPrimary:p,colorTextHeading:v,colorSplit:m,pickerControlIconBorderWidth:h,colorIcon:g,pickerTextHeight:x,motionDurationMid:y,colorIconHover:w,fontWeightStrong:b,pickerPanelCellHeight:S,pickerCellPaddingVertical:$,colorTextDisabled:D,colorText:O,fontSize:A,pickerBasicCellHoverWithRangeColor:T,motionDurationSlow:M,pickerPanelWithoutTimeCellHeight:B,pickerQuarterPanelContentHeight:F,colorLink:P,colorLinkActive:I,colorLinkHover:N,pickerDateHoverRangeBorderColor:R,borderRadiusSM:_,colorTextLightSolid:L,borderRadius:k,controlItemBgHover:H,pickerTimePanelColumnHeight:V,pickerTimePanelColumnWidth:U,pickerTimePanelCellHeight:q,controlItemBgActive:K,marginXXS:X}=e,re=a*7+i*2+4,ee=(re-l*2)/3-r-i;return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:u,border:`${c}px ${d} ${m}`,borderRadius:f,outline:"none","&-focused":{borderColor:p},"&-rtl":{direction:"rtl",[`${t}-prev-icon,
- ${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon,
- ${t}-super-next-icon`]:{transform:"rotate(-135deg)"}}},[`&-decade-panel,
- &-year-panel,
- &-quarter-panel,
- &-month-panel,
- &-week-panel,
- &-date-panel,
- &-time-panel`]:{display:"flex",flexDirection:"column",width:re},"&-header":{display:"flex",padding:`0 ${l}px`,color:v,borderBottom:`${c}px ${d} ${m}`,"> *":{flex:"none"},button:{padding:0,color:g,lineHeight:`${x}px`,background:"transparent",border:0,cursor:"pointer",transition:`color ${y}`},"> button":{minWidth:"1.6em",fontSize:A,"&:hover":{color:w}},"&-view":{flex:"auto",fontWeight:b,lineHeight:`${x}px`,button:{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:l},"&:hover":{color:p}}}},[`&-prev-icon,
- &-next-icon,
- &-super-prev-icon,
- &-super-next-icon`]:{position:"relative",display:"inline-block",width:o,height:o,"&::before":{position:"absolute",top:0,insetInlineStart:0,display:"inline-block",width:o,height:o,border:"0 solid currentcolor",borderBlockStartWidth:h,borderBlockEndWidth:0,borderInlineStartWidth:h,borderInlineEndWidth:0,content:'""'}},[`&-super-prev-icon,
- &-super-next-icon`]:{"&::after":{position:"absolute",top:Math.ceil(o/2),insetInlineStart:Math.ceil(o/2),display:"inline-block",width:o,height:o,border:"0 solid currentcolor",borderBlockStartWidth:h,borderBlockEndWidth:0,borderInlineStartWidth:h,borderInlineEndWidth:0,content:'""'}},[`&-prev-icon,
- &-super-prev-icon`]:{transform:"rotate(-45deg)"},[`&-next-icon,
- &-super-next-icon`]:{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:S,fontWeight:"normal"},th:{height:S+$*2,color:O,verticalAlign:"middle"}},"&-cell":E({padding:`${$}px 0`,color:D,cursor:"pointer","&-in-view":{color:O}},gQ(e)),[`&-date-panel ${t}-cell-in-view${t}-cell-in-range${t}-cell-range-hover-start ${n},
- &-date-panel ${t}-cell-in-view${t}-cell-in-range${t}-cell-range-hover-end ${n}`]:{"&::after":{position:"absolute",top:0,bottom:0,zIndex:-1,background:T,transition:`all ${M}`,content:'""'}},[`&-date-panel
- ${t}-cell-in-view${t}-cell-in-range${t}-cell-range-hover-start
- ${n}::after`]:{insetInlineEnd:-(a-S)/2,insetInlineStart:0},[`&-date-panel ${t}-cell-in-view${t}-cell-in-range${t}-cell-range-hover-end ${n}::after`]:{insetInlineEnd:0,insetInlineStart:-(a-S)/2},[`&-range-hover${t}-range-start::after`]:{insetInlineEnd:"50%"},[`&-decade-panel,
- &-year-panel,
- &-quarter-panel,
- &-month-panel`]:{[`${t}-content`]:{height:B*4},[n]:{padding:`0 ${l}px`}},"&-quarter-panel":{[`${t}-content`]:{height:F}},[`&-panel ${t}-footer`]:{borderTop:`${c}px ${d} ${m}`},"&-footer":{width:"min-content",minWidth:"100%",lineHeight:`${x-2*c}px`,textAlign:"center","&-extra":{padding:`0 ${i}`,lineHeight:`${x-2*c}px`,textAlign:"start","&:not(:last-child)":{borderBottom:`${c}px ${d} ${m}`}}},"&-now":{textAlign:"start"},"&-today-btn":{color:P,"&:hover":{color:N},"&:active":{color:I},[`&${t}-today-btn-disabled`]:{color:D,cursor:"not-allowed"}},"&-decade-panel":{[n]:{padding:`0 ${l/2}px`},[`${t}-cell::before`]:{display:"none"}},[`&-year-panel,
- &-quarter-panel,
- &-month-panel`]:{[`${t}-body`]:{padding:`0 ${l}px`},[n]:{width:r},[`${t}-cell-range-hover-start::after`]:{insetInlineStart:ee,borderInlineStart:`${c}px dashed ${R}`,borderStartStartRadius:_,borderBottomStartRadius:_,borderStartEndRadius:0,borderBottomEndRadius:0,[`${t}-panel-rtl &`]:{insetInlineEnd:ee,borderInlineEnd:`${c}px dashed ${R}`,borderStartStartRadius:0,borderBottomStartRadius:0,borderStartEndRadius:_,borderBottomEndRadius:_}},[`${t}-cell-range-hover-end::after`]:{insetInlineEnd:ee,borderInlineEnd:`${c}px dashed ${R}`,borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:k,borderEndEndRadius:k,[`${t}-panel-rtl &`]:{insetInlineStart:ee,borderInlineStart:`${c}px dashed ${R}`,borderStartStartRadius:k,borderEndStartRadius:k,borderStartEndRadius:0,borderEndEndRadius:0}}},"&-week-panel":{[`${t}-body`]:{padding:`${l}px ${i}px`},[`${t}-cell`]:{[`&:hover ${n},
- &-selected ${n},
- ${n}`]:{background:"transparent !important"}},"&-row":{td:{transition:`background ${y}`,"&:first-child":{borderStartStartRadius:_,borderEndStartRadius:_},"&:last-child":{borderStartEndRadius:_,borderEndEndRadius:_}},"&:hover td":{background:H},[`&-selected td,
- &-selected:hover td`]:{background:p,[`&${t}-cell-week`]:{color:new $t(L).setAlpha(.5).toHexString()},[`&${t}-cell-today ${n}::before`]:{borderColor:L},[n]:{color:L}}}},"&-date-panel":{[`${t}-body`]:{padding:`${l}px ${i}px`},[`${t}-content`]:{width:a*7,th:{width:a}}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${c}px ${d} ${m}`},[`${t}-date-panel,
- ${t}-time-panel`]:{transition:`opacity ${M}`},"&-active":{[`${t}-date-panel,
- ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",direction:"ltr",[`${t}-content`]:{display:"flex",flex:"auto",height:V},"&-column":{flex:"1 0 auto",width:U,margin:`${s}px 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${y}`,overflowX:"hidden","&::after":{display:"block",height:V-q,content:'""'},"&:not(:first-child)":{borderInlineStart:`${c}px ${d} ${m}`},"&-active":{background:new $t(K).setAlpha(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:X,[`${t}-time-panel-cell-inner`]:{display:"block",width:U-2*X,height:q,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:(U-q)/2,color:O,lineHeight:`${q}px`,borderRadius:_,cursor:"pointer",transition:`background ${y}`,"&:hover":{background:H}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:K}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:D,background:"transparent",cursor:"not-allowed"}}}}}},[`&-datetime-panel ${t}-time-panel-column:after`]:{height:V-q+s*2}}}},yQ=e=>{const{componentCls:t,colorBgContainer:n,colorError:r,colorErrorOutline:o,colorWarning:a,colorWarningOutline:i}=e;return{[t]:{[`&-status-error${t}`]:{"&, &:not([disabled]):hover":{backgroundColor:n,borderColor:r},"&-focused, &:focus":E({},ri(qe(e,{inputBorderActiveColor:r,inputBorderHoverColor:r,controlOutline:o}))),[`${t}-active-bar`]:{background:r}},[`&-status-warning${t}`]:{"&, &:not([disabled]):hover":{backgroundColor:n,borderColor:a},"&-focused, &:focus":E({},ri(qe(e,{inputBorderActiveColor:a,inputBorderHoverColor:a,controlOutline:i}))),[`${t}-active-bar`]:{background:a}}}}},bQ=e=>{const{componentCls:t,antCls:n,boxShadowPopoverArrow:r,controlHeight:o,fontSize:a,inputPaddingHorizontal:i,colorBgContainer:l,lineWidth:s,lineType:u,colorBorder:c,borderRadius:d,motionDurationMid:f,colorBgContainerDisabled:p,colorTextDisabled:v,colorTextPlaceholder:m,controlHeightLG:h,fontSizeLG:g,controlHeightSM:x,inputPaddingHorizontalSM:y,paddingXS:w,marginXS:b,colorTextDescription:S,lineWidthBold:$,lineHeight:D,colorPrimary:O,motionDurationSlow:A,zIndexPopup:T,paddingXXS:M,paddingSM:B,pickerTextHeight:F,controlItemBgActive:P,colorPrimaryBorder:I,sizePopupArrow:N,borderRadiusXS:R,borderRadiusOuter:_,colorBgElevated:L,borderRadiusLG:k,boxShadowSecondary:H,borderRadiusSM:V,colorSplit:U,controlItemBgHover:q,presetsWidth:K,presetsMaxWidth:X}=e;return[{[t]:E(E(E({},rt(e)),Ah(e,o,a,i)),{position:"relative",display:"inline-flex",alignItems:"center",background:l,lineHeight:1,border:`${s}px ${u} ${c}`,borderRadius:d,transition:`border ${f}, box-shadow ${f}`,"&:hover, &-focused":E({},Rs(e)),"&-focused":E({},ri(e)),[`&${t}-disabled`]:{background:p,borderColor:c,cursor:"not-allowed",[`${t}-suffix`]:{color:v}},[`&${t}-borderless`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`${t}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":E(E({},ll(e)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,"&:focus":{boxShadow:"none"},"&[disabled]":{background:"transparent"}}),"&:hover":{[`${t}-clear`]:{opacity:1}},"&-placeholder":{"> input":{color:m}}},"&-large":E(E({},Ah(e,h,g,i)),{[`${t}-input > input`]:{fontSize:g}}),"&-small":E({},Ah(e,x,a,y)),[`${t}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:w/2,color:v,lineHeight:1,pointerEvents:"none","> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:b}}},[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:v,lineHeight:1,background:l,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${f}, color ${f}`,"> *":{verticalAlign:"top"},"&:hover":{color:S}},[`${t}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:g,color:v,fontSize:g,verticalAlign:"top",cursor:"default",[`${t}-focused &`]:{color:S},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${t}-clear`]:{insetInlineEnd:i},"&:hover":{[`${t}-clear`]:{opacity:1}},[`${t}-active-bar`]:{bottom:-s,height:$,marginInlineStart:i,background:O,opacity:0,transition:`all ${A} ease-out`,pointerEvents:"none"},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:"center",padding:`0 ${w}px`,lineHeight:1},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:y},[`${t}-active-bar`]:{marginInlineStart:y}}},"&-dropdown":E(E(E({},rt(e)),yI(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:T,[`&${t}-dropdown-hidden`]:{display:"none"},[`&${t}-dropdown-placement-bottomLeft`]:{[`${t}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${t}-dropdown-placement-topLeft`]:{[`${t}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topLeft,
- &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topRight,
- &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topLeft,
- &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topRight`]:{animationName:zm},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomLeft,
- &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomRight,
- &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomLeft,
- &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomRight`]:{animationName:Fm},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topLeft,
- &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topRight`]:{animationName:Lm},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomLeft,
- &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:Rm},[`${t}-panel > ${t}-time-panel`]:{paddingTop:M},[`${t}-ranges`]:{marginBottom:0,padding:`${M}px ${B}px`,overflow:"hidden",lineHeight:`${F-2*s-w/2}px`,textAlign:"start",listStyle:"none",display:"flex",justifyContent:"space-between","> li":{display:"inline-block"},[`${t}-preset > ${n}-tag-blue`]:{color:O,background:P,borderColor:I,cursor:"pointer"},[`${t}-ok`]:{marginInlineStart:"auto"}},[`${t}-range-wrapper`]:{display:"flex",position:"relative"},[`${t}-range-arrow`]:E({position:"absolute",zIndex:1,display:"none",marginInlineStart:i*1.5,transition:`left ${A} ease-out`},lb(N,R,_,L,r)),[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:L,borderRadius:k,boxShadow:H,transition:`margin ${A}`,[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:K,maxWidth:X,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:w,borderInlineEnd:`${s}px ${u} ${U}`,li:E(E({},gn),{borderRadius:V,paddingInline:w,paddingBlock:(x-Math.round(a*D))/2,cursor:"pointer",transition:`all ${A}`,"+ li":{marginTop:b},"&:hover":{background:q}})}},[`${t}-panels`]:{display:"inline-flex",flexWrap:"nowrap",direction:"ltr",[`${t}-panel`]:{borderWidth:`0 0 ${s}px`},"&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${t}-content,
- table`]:{textAlign:"center"},"&-focused":{borderColor:c}}}}),"&-dropdown-range":{padding:`${N*2/3}px 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"rotate(180deg)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}})},jo(e,"slide-up"),jo(e,"slide-down"),ms(e,"move-up"),ms(e,"move-down")]},bI=e=>{const{componentCls:n,controlHeightLG:r,controlHeightSM:o,colorPrimary:a,paddingXXS:i}=e;return{pickerCellCls:`${n}-cell`,pickerCellInnerCls:`${n}-cell-inner`,pickerTextHeight:r,pickerPanelCellWidth:o*1.5,pickerPanelCellHeight:o,pickerDateHoverRangeBorderColor:new $t(a).lighten(20).toHexString(),pickerBasicCellHoverWithRangeColor:new $t(a).lighten(35).toHexString(),pickerPanelWithoutTimeCellHeight:r*1.65,pickerYearMonthCellWidth:r*1.5,pickerTimePanelColumnHeight:28*8,pickerTimePanelColumnWidth:r*1.4,pickerTimePanelCellHeight:28,pickerQuarterPanelContentHeight:r*1.4,pickerCellPaddingVertical:i,pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconBorderWidth:1.5}},xI=nt("DatePicker",e=>{const t=qe(sl(e),bI(e));return[bQ(t),yQ(t),Is(e,{focusElCls:`${e.componentCls}-focused`})]},e=>({presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50})),xQ=e=>{const{calendarCls:t,componentCls:n,calendarFullBg:r,calendarFullPanelBg:o,calendarItemActiveBg:a}=e;return{[t]:E(E(E({},yI(e)),rt(e)),{background:r,"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",justifyContent:"flex-end",padding:`${e.paddingSM}px 0`,[`${t}-year-select`]:{minWidth:e.yearControlWidth},[`${t}-month-select`]:{minWidth:e.monthControlWidth,marginInlineStart:e.marginXS},[`${t}-mode-switch`]:{marginInlineStart:e.marginXS}}}),[`${t} ${n}-panel`]:{background:o,border:0,borderTop:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,borderRadius:0,[`${n}-month-panel, ${n}-date-panel`]:{width:"auto"},[`${n}-body`]:{padding:`${e.paddingXS}px 0`},[`${n}-content`]:{width:"100%"}},[`${t}-mini`]:{borderRadius:e.borderRadiusLG,[`${t}-header`]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS},[`${n}-panel`]:{borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},[`${n}-content`]:{height:e.miniContentHeight,th:{height:"auto",padding:0,lineHeight:`${e.weekHeight}px`}},[`${n}-cell::before`]:{pointerEvents:"none"}},[`${t}${t}-full`]:{[`${n}-panel`]:{display:"block",width:"100%",textAlign:"end",background:r,border:0,[`${n}-body`]:{"th, td":{padding:0},th:{height:"auto",paddingInlineEnd:e.paddingSM,paddingBottom:e.paddingXXS,lineHeight:`${e.weekHeight}px`}}},[`${n}-cell`]:{"&::before":{display:"none"},"&:hover":{[`${t}-date`]:{background:e.controlItemBgHover}},[`${t}-date-today::before`]:{display:"none"},[`&-in-view${n}-cell-selected`]:{[`${t}-date, ${t}-date-today`]:{background:a}},"&-selected, &-selected:hover":{[`${t}-date, ${t}-date-today`]:{[`${t}-date-value`]:{color:e.colorPrimary}}}},[`${t}-date`]:{display:"block",width:"auto",height:"auto",margin:`0 ${e.marginXS/2}px`,padding:`${e.paddingXS/2}px ${e.paddingXS}px 0`,border:0,borderTop:`${e.lineWidthBold}px ${e.lineType} ${e.colorSplit}`,borderRadius:0,transition:`background ${e.motionDurationSlow}`,"&-value":{lineHeight:`${e.dateValueHeight}px`,transition:`color ${e.motionDurationSlow}`},"&-content":{position:"static",width:"auto",height:e.dateContentHeight,overflowY:"auto",color:e.colorText,lineHeight:e.lineHeight,textAlign:"start"},"&-today":{borderColor:e.colorPrimary,[`${t}-date-value`]:{color:e.colorText}}}},[`@media only screen and (max-width: ${e.screenXS}px) `]:{[`${t}`]:{[`${t}-header`]:{display:"block",[`${t}-year-select`]:{width:"50%"},[`${t}-month-select`]:{width:`calc(50% - ${e.paddingXS}px)`},[`${t}-mode-switch`]:{width:"100%",marginTop:e.marginXS,marginInlineStart:0,"> label":{width:"50%",textAlign:"center"}}}}}}},wQ=nt("Calendar",e=>{const t=`${e.componentCls}-calendar`,n=qe(sl(e),bI(e),{calendarCls:t,pickerCellInnerCls:`${e.componentCls}-cell-inner`,calendarFullBg:e.colorBgContainer,calendarFullPanelBg:e.colorBgContainer,calendarItemActiveBg:e.controlItemBgActive,dateValueHeight:e.controlHeightSM,weekHeight:e.controlHeightSM*.75,dateContentHeight:(e.fontSizeSM*e.lineHeightSM+e.marginXS)*3+e.lineWidth*2});return[xQ(n)]},{yearControlWidth:80,monthControlWidth:70,miniContentHeight:256});function SQ(e){function t(a,i){return a&&i&&e.getYear(a)===e.getYear(i)}function n(a,i){return t(a,i)&&e.getMonth(a)===e.getMonth(i)}function r(a,i){return n(a,i)&&e.getDate(a)===e.getDate(i)}const o=he({name:"ACalendar",inheritAttrs:!1,props:{prefixCls:String,locale:{type:Object,default:void 0},validRange:{type:Array,default:void 0},disabledDate:{type:Function,default:void 0},dateFullCellRender:{type:Function,default:void 0},dateCellRender:{type:Function,default:void 0},monthFullCellRender:{type:Function,default:void 0},monthCellRender:{type:Function,default:void 0},headerRender:{type:Function,default:void 0},value:{type:[Object,String],default:void 0},defaultValue:{type:[Object,String],default:void 0},mode:{type:String,default:void 0},fullscreen:{type:Boolean,default:void 0},onChange:{type:Function,default:void 0},"onUpdate:value":{type:Function,default:void 0},onPanelChange:{type:Function,default:void 0},onSelect:{type:Function,default:void 0},valueFormat:{type:String,default:void 0}},slots:Object,setup(a,i){let{emit:l,slots:s,attrs:u}=i;const c=a,{prefixCls:d,direction:f}=He("picker",c),[p,v]=wQ(d),m=z(()=>`${d.value}-calendar`),h=P=>c.valueFormat?e.toString(P,c.valueFormat):P,g=z(()=>c.value?c.valueFormat?e.toDate(c.value,c.valueFormat):c.value:c.value===""?void 0:c.value),x=z(()=>c.defaultValue?c.valueFormat?e.toDate(c.defaultValue,c.valueFormat):c.defaultValue:c.defaultValue===""?void 0:c.defaultValue),[y,w]=Zt(()=>g.value||e.getNow(),{defaultValue:x.value,value:g}),[b,S]=Zt("month",{value:Ye(c,"mode")}),$=z(()=>b.value==="year"?"month":"date"),D=z(()=>P=>{var I;return(c.validRange?e.isAfter(c.validRange[0],P)||e.isAfter(P,c.validRange[1]):!1)||!!(!((I=c.disabledDate)===null||I===void 0)&&I.call(c,P))}),O=(P,I)=>{l("panelChange",h(P),I)},A=P=>{if(w(P),!r(P,y.value)){($.value==="date"&&!n(P,y.value)||$.value==="month"&&!t(P,y.value))&&O(P,b.value);const I=h(P);l("update:value",I),l("change",I)}},T=P=>{S(P),O(y.value,P)},M=(P,I)=>{A(P),l("select",h(P),{source:I})},B=z(()=>{const{locale:P}=c,I=E(E({},_u),P);return I.lang=E(E({},I.lang),(P||{}).lang),I}),[F]=ro("Calendar",B);return()=>{const P=e.getNow(),{dateFullCellRender:I=s==null?void 0:s.dateFullCellRender,dateCellRender:N=s==null?void 0:s.dateCellRender,monthFullCellRender:R=s==null?void 0:s.monthFullCellRender,monthCellRender:_=s==null?void 0:s.monthCellRender,headerRender:L=s==null?void 0:s.headerRender,fullscreen:k=!0,validRange:H}=c,V=q=>{let{current:K}=q;return I?I({current:K}):C("div",{class:ge(`${d.value}-cell-inner`,`${m.value}-date`,{[`${m.value}-date-today`]:r(P,K)})},[C("div",{class:`${m.value}-date-value`},[String(e.getDate(K)).padStart(2,"0")]),C("div",{class:`${m.value}-date-content`},[N&&N({current:K})])])},U=(q,K)=>{let{current:X}=q;if(R)return R({current:X});const re=K.shortMonths||e.locale.getShortMonths(K.locale);return C("div",{class:ge(`${d.value}-cell-inner`,`${m.value}-date`,{[`${m.value}-date-today`]:n(P,X)})},[C("div",{class:`${m.value}-date-value`},[re[e.getMonth(X)]]),C("div",{class:`${m.value}-date-content`},[_&&_({current:X})])])};return p(C("div",j(j({},u),{},{class:ge(m.value,{[`${m.value}-full`]:k,[`${m.value}-mini`]:!k,[`${m.value}-rtl`]:f.value==="rtl"},u.class,v.value)}),[L?L({value:y.value,type:b.value,onChange:q=>{M(q,"customize")},onTypeChange:T}):C(cQ,{prefixCls:m.value,value:y.value,generateConfig:e,mode:b.value,fullscreen:k,locale:F.value.lang,validRange:H,onChange:M,onModeChange:T},null),C(q1,{value:y.value,prefixCls:d.value,locale:F.value.lang,generateConfig:e,dateRender:V,monthCellRender:q=>U(q,F.value.lang),onSelect:q=>{M(q,$.value)},mode:$.value,picker:$.value,disabledDate:D.value,hideHeader:!0},null)]))}}});return o.install=function(a){return a.component(o.name,o),a},o}const CQ=SQ(O1),$Q=rn(CQ);function EQ(e){const t=pe(),n=pe(!1);function r(){for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];n.value||(tt.cancel(t.value),t.value=tt(()=>{e(...a)}))}return st(()=>{n.value=!0,tt.cancel(t.value)}),r}function DQ(e){const t=pe([]),n=pe(typeof e=="function"?e():e),r=EQ(()=>{let a=n.value;t.value.forEach(i=>{a=i(a)}),t.value=[],n.value=a});function o(a){t.value.push(a),r()}return[n,o]}const AQ=he({compatConfig:{MODE:3},name:"TabNode",props:{id:{type:String},prefixCls:{type:String},tab:{type:Object},active:{type:Boolean},closable:{type:Boolean},editable:{type:Object},onClick:{type:Function},onResize:{type:Function},renderWrapper:{type:Function},removeAriaLabel:{type:String},onFocus:{type:Function}},emits:["click","resize","remove","focus"],setup(e,t){let{expose:n,attrs:r}=t;const o=be();function a(s){var u;!((u=e.tab)===null||u===void 0)&&u.disabled||e.onClick(s)}n({domRef:o});function i(s){var u;s.preventDefault(),s.stopPropagation(),e.editable.onEdit("remove",{key:(u=e.tab)===null||u===void 0?void 0:u.key,event:s})}const l=z(()=>{var s;return e.editable&&e.closable!==!1&&!(!((s=e.tab)===null||s===void 0)&&s.disabled)});return()=>{var s;const{prefixCls:u,id:c,active:d,tab:{key:f,tab:p,disabled:v,closeIcon:m},renderWrapper:h,removeAriaLabel:g,editable:x,onFocus:y}=e,w=`${u}-tab`,b=C("div",{key:f,ref:o,class:ge(w,{[`${w}-with-remove`]:l.value,[`${w}-active`]:d,[`${w}-disabled`]:v}),style:r.style,onClick:a},[C("div",{role:"tab","aria-selected":d,id:c&&`${c}-tab-${f}`,class:`${w}-btn`,"aria-controls":c&&`${c}-panel-${f}`,"aria-disabled":v,tabindex:v?null:0,onClick:S=>{S.stopPropagation(),a(S)},onKeydown:S=>{[_e.SPACE,_e.ENTER].includes(S.which)&&(S.preventDefault(),a(S))},onFocus:y},[typeof p=="function"?p():p]),l.value&&C("button",{type:"button","aria-label":g||"remove",tabindex:0,class:`${w}-remove`,onClick:S=>{S.stopPropagation(),i(S)}},[(m==null?void 0:m())||((s=x.removeIcon)===null||s===void 0?void 0:s.call(x))||"×"])]);return h?h(b):b}}}),Y$={width:0,height:0,left:0,top:0};function OQ(e,t){const n=be(new Map);return Je(()=>{var r,o;const a=new Map,i=e.value,l=t.value.get((r=i[0])===null||r===void 0?void 0:r.key)||Y$,s=l.left+l.width;for(let u=0;u<i.length;u+=1){const{key:c}=i[u];let d=t.value.get(c);d||(d=t.value.get((o=i[u-1])===null||o===void 0?void 0:o.key)||Y$);const f=a.get(c)||E({},d);f.right=s-f.left-f.width,a.set(c,f)}n.value=new Map(a)}),n}const wI=he({compatConfig:{MODE:3},name:"AddButton",inheritAttrs:!1,props:{prefixCls:String,editable:{type:Object},locale:{type:Object,default:void 0}},setup(e,t){let{expose:n,attrs:r}=t;const o=be();return n({domRef:o}),()=>{const{prefixCls:a,editable:i,locale:l}=e;return!i||i.showAdd===!1?null:C("button",{ref:o,type:"button",class:`${a}-nav-add`,style:r.style,"aria-label":(l==null?void 0:l.addAriaLabel)||"Add tab",onClick:s=>{i.onEdit("add",{event:s})}},[i.addIcon?i.addIcon():"+"])}}}),TQ={prefixCls:{type:String},id:{type:String},tabs:{type:Object},rtl:{type:Boolean},tabBarGutter:{type:Number},activeKey:{type:[String,Number]},mobile:{type:Boolean},moreIcon:Z.any,moreTransitionName:{type:String},editable:{type:Object},locale:{type:Object,default:void 0},removeAriaLabel:String,onTabClick:{type:Function},popupClassName:String,getPopupContainer:Oe()},MQ=he({compatConfig:{MODE:3},name:"OperationNode",inheritAttrs:!1,props:TQ,emits:["tabClick"],slots:Object,setup(e,t){let{attrs:n,slots:r}=t;const[o,a]=It(!1),[i,l]=It(null),s=p=>{const v=e.tabs.filter(g=>!g.disabled);let m=v.findIndex(g=>g.key===i.value)||0;const h=v.length;for(let g=0;g<h;g+=1){m=(m+p+h)%h;const x=v[m];if(!x.disabled){l(x.key);return}}},u=p=>{const{which:v}=p;if(!o.value){[_e.DOWN,_e.SPACE,_e.ENTER].includes(v)&&(a(!0),p.preventDefault());return}switch(v){case _e.UP:s(-1),p.preventDefault();break;case _e.DOWN:s(1),p.preventDefault();break;case _e.ESC:a(!1);break;case _e.SPACE:case _e.ENTER:i.value!==null&&e.onTabClick(i.value,p);break}},c=z(()=>`${e.id}-more-popup`),d=z(()=>i.value!==null?`${c.value}-${i.value}`:null),f=(p,v)=>{p.preventDefault(),p.stopPropagation(),e.editable.onEdit("remove",{key:v,event:p})};return Qe(()=>{Ne(i,()=>{const p=document.getElementById(d.value);p&&p.scrollIntoView&&p.scrollIntoView(!1)},{flush:"post",immediate:!0})}),Ne(o,()=>{o.value||l(null)}),E1({}),()=>{var p;const{prefixCls:v,id:m,tabs:h,locale:g,mobile:x,moreIcon:y=((p=r.moreIcon)===null||p===void 0?void 0:p.call(r))||C(C1,null,null),moreTransitionName:w,editable:b,tabBarGutter:S,rtl:$,onTabClick:D,popupClassName:O}=e,A=`${v}-dropdown`,T=g==null?void 0:g.dropdownAriaLabel,M={[$?"marginRight":"marginLeft"]:S};h.length||(M.visibility="hidden",M.order=1);const B=ge({[`${A}-rtl`]:$,[`${O}`]:!0}),F=x?null:C(vP,{prefixCls:A,trigger:["hover"],visible:o.value,transitionName:w,onVisibleChange:a,overlayClassName:B,mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:e.getPopupContainer},{overlay:()=>C(mn,{onClick:P=>{let{key:I,domEvent:N}=P;D(I,N),a(!1)},id:c.value,tabindex:-1,role:"listbox","aria-activedescendant":d.value,selectedKeys:[i.value],"aria-label":T!==void 0?T:"expanded dropdown"},{default:()=>[h.map(P=>{var I,N;const R=b&&P.closable!==!1&&!P.disabled;return C(Lo,{key:P.key,id:`${c.value}-${P.key}`,role:"option","aria-controls":m&&`${m}-panel-${P.key}`,disabled:P.disabled},{default:()=>[C("span",null,[typeof P.tab=="function"?P.tab():P.tab]),R&&C("button",{type:"button","aria-label":e.removeAriaLabel||"remove",tabindex:0,class:`${A}-menu-item-remove`,onClick:_=>{_.stopPropagation(),f(_,P.key)}},[((I=P.closeIcon)===null||I===void 0?void 0:I.call(P))||((N=b.removeIcon)===null||N===void 0?void 0:N.call(b))||"×"])]})})]}),default:()=>C("button",{type:"button",class:`${v}-nav-more`,style:M,tabindex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":c.value,id:`${m}-more`,"aria-expanded":o.value,onKeydown:u},[y])});return C("div",{class:ge(`${v}-nav-operations`,n.class),style:n.style},[F,C(wI,{prefixCls:v,locale:g,editable:b},null)])}}}),SI=Symbol("tabsContextKey"),CI=e=>{it(SI,e)},$I=()=>lt(SI,{tabs:be([]),prefixCls:be()});he({compatConfig:{MODE:3},name:"TabsContextProvider",inheritAttrs:!1,props:{tabs:{type:Object,default:void 0},prefixCls:{type:String,default:void 0}},setup(e,t){let{slots:n}=t;return CI(Xr(e)),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}});const NQ=.1,Z$=.01,ef=20,J$=Math.pow(.995,ef);function PQ(e,t){const[n,r]=It(),[o,a]=It(0),[i,l]=It(0),[s,u]=It(),c=be();function d(b){const{screenX:S,screenY:$}=b.touches[0];r({x:S,y:$}),clearInterval(c.value)}function f(b){if(!n.value)return;b.preventDefault();const{screenX:S,screenY:$}=b.touches[0],D=S-n.value.x,O=$-n.value.y;t(D,O),r({x:S,y:$});const A=Date.now();l(A-o.value),a(A),u({x:D,y:O})}function p(){if(!n.value)return;const b=s.value;if(r(null),u(null),b){const S=b.x/i.value,$=b.y/i.value,D=Math.abs(S),O=Math.abs($);if(Math.max(D,O)<NQ)return;let A=S,T=$;c.value=setInterval(()=>{if(Math.abs(A)<Z$&&Math.abs(T)<Z$){clearInterval(c.value);return}A*=J$,T*=J$,t(A*ef,T*ef)},ef)}}const v=be();function m(b){const{deltaX:S,deltaY:$}=b;let D=0;const O=Math.abs(S),A=Math.abs($);O===A?D=v.value==="x"?S:$:O>A?(D=S,v.value="x"):(D=$,v.value="y"),t(-D,-D)&&b.preventDefault()}const h=be({onTouchStart:d,onTouchMove:f,onTouchEnd:p,onWheel:m});function g(b){h.value.onTouchStart(b)}function x(b){h.value.onTouchMove(b)}function y(b){h.value.onTouchEnd(b)}function w(b){h.value.onWheel(b)}Qe(()=>{var b,S;document.addEventListener("touchmove",x,{passive:!1}),document.addEventListener("touchend",y,{passive:!1}),(b=e.value)===null||b===void 0||b.addEventListener("touchstart",g,{passive:!1}),(S=e.value)===null||S===void 0||S.addEventListener("wheel",w,{passive:!1})}),st(()=>{document.removeEventListener("touchmove",x),document.removeEventListener("touchend",y)})}function Q$(e,t){const n=be(e);function r(o){const a=typeof o=="function"?o(n.value):o;a!==n.value&&t(a,n.value),n.value=a}return[n,r]}const IQ=()=>{const e=be(new Map),t=n=>r=>{e.value.set(n,r)};return jy(()=>{e.value=new Map}),[t,e]},ex=IQ,e2={width:0,height:0,left:0,top:0,right:0},_Q=()=>({id:{type:String},tabPosition:{type:String},activeKey:{type:[String,Number]},rtl:{type:Boolean},animated:We(),editable:We(),moreIcon:Z.any,moreTransitionName:{type:String},mobile:{type:Boolean},tabBarGutter:{type:Number},renderTabBar:{type:Function},locale:We(),popupClassName:String,getPopupContainer:Oe(),onTabClick:{type:Function},onTabScroll:{type:Function}}),t2=he({compatConfig:{MODE:3},name:"TabNavList",inheritAttrs:!1,props:_Q(),slots:Object,emits:["tabClick","tabScroll"],setup(e,t){let{attrs:n,slots:r}=t;const{tabs:o,prefixCls:a}=$I(),i=pe(),l=pe(),s=pe(),u=pe(),[c,d]=ex(),f=z(()=>e.tabPosition==="top"||e.tabPosition==="bottom"),[p,v]=Q$(0,(de,Y)=>{f.value&&e.onTabScroll&&e.onTabScroll({direction:de>Y?"left":"right"})}),[m,h]=Q$(0,(de,Y)=>{!f.value&&e.onTabScroll&&e.onTabScroll({direction:de>Y?"top":"bottom"})}),[g,x]=It(0),[y,w]=It(0),[b,S]=It(null),[$,D]=It(null),[O,A]=It(0),[T,M]=It(0),[B,F]=DQ(new Map),P=OQ(o,B),I=z(()=>`${a.value}-nav-operations-hidden`),N=pe(0),R=pe(0);Je(()=>{f.value?e.rtl?(N.value=0,R.value=Math.max(0,g.value-b.value)):(N.value=Math.min(0,b.value-g.value),R.value=0):(N.value=Math.min(0,$.value-y.value),R.value=0)});const _=de=>de<N.value?N.value:de>R.value?R.value:de,L=pe(),[k,H]=It(),V=()=>{H(Date.now())},U=()=>{clearTimeout(L.value)},q=(de,Y)=>{de(ae=>_(ae+Y))};PQ(i,(de,Y)=>{if(f.value){if(b.value>=g.value)return!1;q(v,de)}else{if($.value>=y.value)return!1;q(h,Y)}return U(),V(),!0}),Ne(k,()=>{U(),k.value&&(L.value=setTimeout(()=>{H(0)},100))});const K=function(){let de=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.activeKey;const Y=P.value.get(de)||{width:0,height:0,left:0,right:0,top:0};if(f.value){let ae=p.value;e.rtl?Y.right<p.value?ae=Y.right:Y.right+Y.width>p.value+b.value&&(ae=Y.right+Y.width-b.value):Y.left<-p.value?ae=-Y.left:Y.left+Y.width>-p.value+b.value&&(ae=-(Y.left+Y.width-b.value)),h(0),v(_(ae))}else{let ae=m.value;Y.top<-m.value?ae=-Y.top:Y.top+Y.height>-m.value+$.value&&(ae=-(Y.top+Y.height-$.value)),v(0),h(_(ae))}},X=pe(0),re=pe(0);Je(()=>{let de,Y,ae,ce,Ce,ye;const J=P.value;["top","bottom"].includes(e.tabPosition)?(de="width",ce=b.value,Ce=g.value,ye=O.value,Y=e.rtl?"right":"left",ae=Math.abs(p.value)):(de="height",ce=$.value,Ce=g.value,ye=T.value,Y="top",ae=-m.value);let ne=ce;Ce+ye>ce&&Ce<ce&&(ne=ce-ye);const oe=o.value;if(!oe.length)return[X.value,re.value]=[0,0];const ie=oe.length;let ve=ie;for(let $e=0;$e<ie;$e+=1){const Ae=J.get(oe[$e].key)||e2;if(Ae[Y]+Ae[de]>ae+ne){ve=$e-1;break}}let we=0;for(let $e=ie-1;$e>=0;$e-=1)if((J.get(oe[$e].key)||e2)[Y]<ae){we=$e+1;break}return[X.value,re.value]=[we,ve]});const ee=()=>{var de,Y,ae,ce,Ce;const ye=((de=i.value)===null||de===void 0?void 0:de.offsetWidth)||0,J=((Y=i.value)===null||Y===void 0?void 0:Y.offsetHeight)||0,ne=((ae=u.value)===null||ae===void 0?void 0:ae.$el)||{},oe=ne.offsetWidth||0,ie=ne.offsetHeight||0;S(ye),D(J),A(oe),M(ie);const ve=(((ce=l.value)===null||ce===void 0?void 0:ce.offsetWidth)||0)-oe,we=(((Ce=l.value)===null||Ce===void 0?void 0:Ce.offsetHeight)||0)-ie;x(ve),w(we),F(()=>{const $e=new Map;return o.value.forEach(Ae=>{let{key:xe}=Ae;const Ee=d.value.get(xe),Te=(Ee==null?void 0:Ee.$el)||Ee;Te&&$e.set(xe,{width:Te.offsetWidth,height:Te.offsetHeight,left:Te.offsetLeft,top:Te.offsetTop})}),$e})},G=z(()=>[...o.value.slice(0,X.value),...o.value.slice(re.value+1)]),[le,ue]=It(),me=z(()=>P.value.get(e.activeKey)),Se=pe(),Q=()=>{tt.cancel(Se.value)};Ne([me,f,()=>e.rtl],()=>{const de={};me.value&&(f.value?(e.rtl?de.right=Ei(me.value.right):de.left=Ei(me.value.left),de.width=Ei(me.value.width)):(de.top=Ei(me.value.top),de.height=Ei(me.value.height))),Q(),Se.value=tt(()=>{ue(de)})}),Ne([()=>e.activeKey,me,P,f],()=>{K()},{flush:"post"}),Ne([()=>e.rtl,()=>e.tabBarGutter,()=>e.activeKey,()=>o.value],()=>{ee()},{flush:"post"});const te=de=>{let{position:Y,prefixCls:ae,extra:ce}=de;if(!ce)return null;const Ce=ce==null?void 0:ce({position:Y});return Ce?C("div",{class:`${ae}-extra-content`},[Ce]):null};return st(()=>{U(),Q()}),()=>{const{id:de,animated:Y,activeKey:ae,rtl:ce,editable:Ce,locale:ye,tabPosition:J,tabBarGutter:ne,onTabClick:oe}=e,{class:ie,style:ve}=n,we=a.value,$e=!!G.value.length,Ae=`${we}-nav-wrap`;let xe,Ee,Te,Me;f.value?ce?(Ee=p.value>0,xe=p.value+b.value<g.value):(xe=p.value<0,Ee=-p.value+b.value<g.value):(Te=m.value<0,Me=-m.value+$.value<y.value);const ze={};J==="top"||J==="bottom"?ze[ce?"marginRight":"marginLeft"]=typeof ne=="number"?`${ne}px`:ne:ze.marginTop=typeof ne=="number"?`${ne}px`:ne;const Be=o.value.map((je,W)=>{const{key:fe}=je;return C(AQ,{id:de,prefixCls:we,key:fe,tab:je,style:W===0?void 0:ze,closable:je.closable,editable:Ce,active:fe===ae,removeAriaLabel:ye==null?void 0:ye.removeAriaLabel,ref:c(fe),onClick:De=>{oe(fe,De)},onFocus:()=>{K(fe),V(),i.value&&(ce||(i.value.scrollLeft=0),i.value.scrollTop=0)}},r)});return C("div",{role:"tablist",class:ge(`${we}-nav`,ie),style:ve,onKeydown:()=>{V()}},[C(te,{position:"left",prefixCls:we,extra:r.leftExtra},null),C(Qr,{onResize:ee},{default:()=>[C("div",{class:ge(Ae,{[`${Ae}-ping-left`]:xe,[`${Ae}-ping-right`]:Ee,[`${Ae}-ping-top`]:Te,[`${Ae}-ping-bottom`]:Me}),ref:i},[C(Qr,{onResize:ee},{default:()=>[C("div",{ref:l,class:`${we}-nav-list`,style:{transform:`translate(${p.value}px, ${m.value}px)`,transition:k.value?"none":void 0}},[Be,C(wI,{ref:u,prefixCls:we,locale:ye,editable:Ce,style:E(E({},Be.length===0?void 0:ze),{visibility:$e?"hidden":null})},null),C("div",{class:ge(`${we}-ink-bar`,{[`${we}-ink-bar-animated`]:Y.inkBar}),style:le.value},null)])]})])]}),C(MQ,j(j({},e),{},{removeAriaLabel:ye==null?void 0:ye.removeAriaLabel,ref:s,prefixCls:we,tabs:G.value,class:!$e&&I.value}),nP(r,["moreIcon"])),C(te,{position:"right",prefixCls:we,extra:r.rightExtra},null),C(te,{position:"right",prefixCls:we,extra:r.tabBarExtraContent},null)])}}}),BQ=he({compatConfig:{MODE:3},name:"TabPanelList",inheritAttrs:!1,props:{activeKey:{type:[String,Number]},id:{type:String},rtl:{type:Boolean},animated:{type:Object,default:void 0},tabPosition:{type:String},destroyInactiveTabPane:{type:Boolean}},setup(e){const{tabs:t,prefixCls:n}=$I();return()=>{const{id:r,activeKey:o,animated:a,tabPosition:i,rtl:l,destroyInactiveTabPane:s}=e,u=a.tabPane,c=n.value,d=t.value.findIndex(f=>f.key===o);return C("div",{class:`${c}-content-holder`},[C("div",{class:[`${c}-content`,`${c}-content-${i}`,{[`${c}-content-animated`]:u}],style:d&&u?{[l?"marginRight":"marginLeft"]:`-${d}00%`}:null},[t.value.map(f=>At(f.node,{key:f.key,prefixCls:c,tabKey:f.key,id:r,animated:u,active:f.key===o,destroyInactiveTabPane:s}))])])}}});var FQ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M176 474h672q8 0 8 8v60q0 8-8 8H176q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};const RQ=FQ;function n2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){zQ(e,o,n[o])})}return e}function zQ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var tx=function(t,n){var r=n2({},t,n.attrs);return C(vt,n2({},r,{icon:RQ}),null)};tx.displayName="PlusOutlined";tx.inheritAttrs=!1;const LQ=tx,kQ=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[jo(e,"slide-up"),jo(e,"slide-down")]]},HQ=kQ,jQ=e=>{const{componentCls:t,tabsCardHorizontalPadding:n,tabsCardHeadBackground:r,tabsCardGutter:o,colorSplit:a}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${e.lineWidth}px ${e.lineType} ${a}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:e.colorPrimary,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:`${o}px`}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:`${o}px`}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadiusLG}px 0 0 ${e.borderRadiusLG}px`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},VQ=e=>{const{componentCls:t,tabsHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:E(E({},rt(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${r}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":E(E({},gn),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${e.paddingXXS}px ${e.paddingSM}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},WQ=e=>{const{componentCls:t,margin:n,colorSplit:r}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:`0 0 ${n}px 0`,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${e.lineWidth}px ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
- right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,
- > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:`${n}px`,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:e.controlHeight*1.25,[`${t}-tab`]:{padding:`${e.paddingXS}px ${e.paddingLG}px`,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:`${e.margin}px 0 0 0`},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${e.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-e.lineWidth},borderRight:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},UQ=e=>{const{componentCls:t,padding:n}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${e.paddingXS}px 0`,fontSize:e.fontSize}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${n}px 0`,fontSize:e.fontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${e.paddingXXS*1.5}px ${n}px`}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${e.borderRadius}px ${e.borderRadius}px`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${e.borderRadius}px ${e.borderRadius}px 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadius}px ${e.borderRadius}px 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadius}px 0 0 ${e.borderRadius}px`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${e.paddingXS}px ${n}px ${e.paddingXXS*1.5}px`}}}}}},KQ=e=>{const{componentCls:t,tabsActiveColor:n,tabsHoverColor:r,iconCls:o,tabsHorizontalGutter:a}=e,i=`${t}-tab`;return{[i]:{position:"relative",display:"inline-flex",alignItems:"center",padding:`${e.paddingSM}px 0`,fontSize:`${e.fontSize}px`,background:"transparent",border:0,outline:"none",cursor:"pointer","&-btn, &-remove":E({"&:focus:not(:focus-visible), &:active":{color:n}},ba(e)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-e.marginXXS},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:r},[`&${i}-active ${i}-btn`]:{color:e.colorPrimary,textShadow:e.tabsActiveTextShadow},[`&${i}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${i}-disabled ${i}-btn, &${i}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${i}-remove ${o}`]:{margin:0},[o]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${i} + ${i}`]:{margin:{_skip_check_:!0,value:`0 0 0 ${a}px`}}}},qQ=e=>{const{componentCls:t,tabsHorizontalGutter:n,iconCls:r,tabsCardGutter:o}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:`0 0 0 ${n}px`},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${e.marginSM}px`}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${e.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${e.marginXXS}px`},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:`${o}px`},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},GQ=e=>{const{componentCls:t,tabsCardHorizontalPadding:n,tabsCardHeight:r,tabsCardGutter:o,tabsHoverColor:a,tabsActiveColor:i,colorSplit:l}=e;return{[t]:E(E(E(E({},rt(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:E({minWidth:`${r}px`,marginLeft:{_skip_check_:!0,value:`${o}px`},padding:`0 ${e.paddingXS}px`,background:"transparent",border:`${e.lineWidth}px ${e.lineType} ${l}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:a},"&:active, &:focus:not(:focus-visible)":{color:i}},ba(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.colorPrimary,pointerEvents:"none"}}),KQ(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},XQ=nt("Tabs",e=>{const t=e.controlHeightLG,n=qe(e,{tabsHoverColor:e.colorPrimaryHover,tabsActiveColor:e.colorPrimaryActive,tabsCardHorizontalPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,tabsCardHeight:t,tabsCardGutter:e.marginXXS/2,tabsHorizontalGutter:32,tabsCardHeadBackground:e.colorFillAlter,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120});return[UQ(n),qQ(n),WQ(n),VQ(n),jQ(n),GQ(n),HQ(n)]},e=>({zIndexPopup:e.zIndexPopupBase+50}));let r2=0;const EI=()=>({prefixCls:{type:String},id:{type:String},popupClassName:String,getPopupContainer:Oe(),activeKey:{type:[String,Number]},defaultActiveKey:{type:[String,Number]},direction:Ue(),animated:Xe([Boolean,Object]),renderTabBar:Oe(),tabBarGutter:{type:Number},tabBarStyle:We(),tabPosition:Ue(),destroyInactiveTabPane:Pe(),hideAdd:Boolean,type:Ue(),size:Ue(),centered:Boolean,onEdit:Oe(),onChange:Oe(),onTabClick:Oe(),onTabScroll:Oe(),"onUpdate:activeKey":Oe(),locale:We(),onPrevClick:Oe(),onNextClick:Oe(),tabBarExtraContent:Z.any});function YQ(e){return e.map(t=>{if(hn(t)){const n=E({},t.props||{});for(const[f,p]of Object.entries(n))delete n[f],n[Zi(f)]=p;const r=t.children||{},o=t.key!==void 0?t.key:void 0,{tab:a=r.tab,disabled:i,forceRender:l,closable:s,animated:u,active:c,destroyInactiveTabPane:d}=n;return E(E({key:o},n),{node:t,closeIcon:r.closeIcon,tab:a,disabled:i===""||i,forceRender:l===""||l,closable:s===""||s,animated:u===""||u,active:c===""||c,destroyInactiveTabPane:d===""||d})}return null}).filter(t=>t)}const ZQ=he({compatConfig:{MODE:3},name:"InternalTabs",inheritAttrs:!1,props:E(E({},at(EI(),{tabPosition:"top",animated:{inkBar:!0,tabPane:!1}})),{tabs:bt()}),slots:Object,setup(e,t){let{attrs:n,slots:r}=t;qt(e.onPrevClick===void 0&&e.onNextClick===void 0,"Tabs","`onPrevClick / @prevClick` and `onNextClick / @nextClick` has been removed. Please use `onTabScroll / @tabScroll` instead."),qt(e.tabBarExtraContent===void 0,"Tabs","`tabBarExtraContent` prop has been removed. Please use `rightExtra` slot instead."),qt(r.tabBarExtraContent===void 0,"Tabs","`tabBarExtraContent` slot is deprecated. Please use `rightExtra` slot instead.");const{prefixCls:o,direction:a,size:i,rootPrefixCls:l,getPopupContainer:s}=He("tabs",e),[u,c]=XQ(o),d=z(()=>a.value==="rtl"),f=z(()=>{const{animated:$,tabPosition:D}=e;return $===!1||["left","right"].includes(D)?{inkBar:!1,tabPane:!1}:$===!0?{inkBar:!0,tabPane:!0}:E({inkBar:!0,tabPane:!1},typeof $=="object"?$:{})}),[p,v]=It(!1);Qe(()=>{v(Pb())});const[m,h]=Zt(()=>{var $;return($=e.tabs[0])===null||$===void 0?void 0:$.key},{value:z(()=>e.activeKey),defaultValue:e.defaultActiveKey}),[g,x]=It(()=>e.tabs.findIndex($=>$.key===m.value));Je(()=>{var $;let D=e.tabs.findIndex(O=>O.key===m.value);D===-1&&(D=Math.max(0,Math.min(g.value,e.tabs.length-1)),h(($=e.tabs[D])===null||$===void 0?void 0:$.key)),x(D)});const[y,w]=Zt(null,{value:z(()=>e.id)}),b=z(()=>p.value&&!["left","right"].includes(e.tabPosition)?"top":e.tabPosition);Qe(()=>{e.id||(w(`rc-tabs-${r2}`),r2+=1)});const S=($,D)=>{var O,A;(O=e.onTabClick)===null||O===void 0||O.call(e,$,D);const T=$!==m.value;h($),T&&((A=e.onChange)===null||A===void 0||A.call(e,$))};return CI({tabs:z(()=>e.tabs),prefixCls:o}),()=>{const{id:$,type:D,tabBarGutter:O,tabBarStyle:A,locale:T,destroyInactiveTabPane:M,renderTabBar:B=r.renderTabBar,onTabScroll:F,hideAdd:P,centered:I}=e,N={id:y.value,activeKey:m.value,animated:f.value,tabPosition:b.value,rtl:d.value,mobile:p.value};let R;D==="editable-card"&&(R={onEdit:(H,V)=>{let{key:U,event:q}=V;var K;(K=e.onEdit)===null||K===void 0||K.call(e,H==="add"?q:U,H)},removeIcon:()=>C(Hr,null,null),addIcon:r.addIcon?r.addIcon:()=>C(LQ,null,null),showAdd:P!==!0});let _;const L=E(E({},N),{moreTransitionName:`${l.value}-slide-up`,editable:R,locale:T,tabBarGutter:O,onTabClick:S,onTabScroll:F,style:A,getPopupContainer:s.value,popupClassName:ge(e.popupClassName,c.value)});B?_=B(E(E({},L),{DefaultTabBar:t2})):_=C(t2,L,nP(r,["moreIcon","leftExtra","rightExtra","tabBarExtraContent"]));const k=o.value;return u(C("div",j(j({},n),{},{id:$,class:ge(k,`${k}-${b.value}`,{[c.value]:!0,[`${k}-${i.value}`]:i.value,[`${k}-card`]:["card","editable-card"].includes(D),[`${k}-editable-card`]:D==="editable-card",[`${k}-centered`]:I,[`${k}-mobile`]:p.value,[`${k}-editable`]:D==="editable-card",[`${k}-rtl`]:d.value},n.class)}),[_,C(BQ,j(j({destroyInactiveTabPane:M},N),{},{animated:f.value}),null)]))}}}),Li=he({compatConfig:{MODE:3},name:"ATabs",inheritAttrs:!1,props:at(EI(),{tabPosition:"top",animated:{inkBar:!0,tabPane:!1}}),slots:Object,setup(e,t){let{attrs:n,slots:r,emit:o}=t;const a=i=>{o("update:activeKey",i),o("change",i)};return()=>{var i;const l=YQ(Lt((i=r.default)===null||i===void 0?void 0:i.call(r)));return C(ZQ,j(j(j({},pt(e,["onUpdate:activeKey"])),n),{},{onChange:a,tabs:l}),r)}}}),JQ=()=>({tab:Z.any,disabled:{type:Boolean},forceRender:{type:Boolean},closable:{type:Boolean},animated:{type:Boolean},active:{type:Boolean},destroyInactiveTabPane:{type:Boolean},prefixCls:{type:String},tabKey:{type:[String,Number]},id:{type:String}}),gp=he({compatConfig:{MODE:3},name:"ATabPane",inheritAttrs:!1,__ANT_TAB_PANE:!0,props:JQ(),slots:Object,setup(e,t){let{attrs:n,slots:r}=t;const o=be(e.forceRender);Ne([()=>e.active,()=>e.destroyInactiveTabPane],()=>{e.active?o.value=!0:e.destroyInactiveTabPane&&(o.value=!1)},{immediate:!0});const a=z(()=>e.active?{}:e.animated?{visibility:"hidden",height:0,overflowY:"hidden"}:{display:"none"});return()=>{var i;const{prefixCls:l,forceRender:s,id:u,active:c,tabKey:d}=e;return C("div",{id:u&&`${u}-panel-${d}`,role:"tabpanel",tabindex:c?0:-1,"aria-labelledby":u&&`${u}-tab-${d}`,"aria-hidden":!c,style:[a.value,n.style],class:[`${l}-tabpane`,c&&`${l}-tabpane-active`,n.class]},[(c||o.value||s)&&((i=r.default)===null||i===void 0?void 0:i.call(r))])}}});Li.TabPane=gp;Li.install=function(e){return e.component(Li.name,Li),e.component(gp.name,gp),e};const QQ=e=>{const{antCls:t,componentCls:n,cardHeadHeight:r,cardPaddingBase:o,cardHeadTabsMarginBottom:a}=e;return E(E({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${o}px`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,background:"transparent",borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},yo()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":E(E({display:"inline-block",flex:1},gn),{[`
- > ${n}-typography,
- > ${n}-typography-edit-content
- `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:a,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`}}})},eee=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:o}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`
- ${o}px 0 0 0 ${n},
- 0 ${o}px 0 0 ${n},
- ${o}px ${o}px 0 0 ${n},
- ${o}px 0 0 0 ${n} inset,
- 0 ${o}px 0 0 ${n} inset;
- `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},tee=e=>{const{componentCls:t,iconCls:n,cardActionsLiMargin:r,cardActionsIconSize:o,colorBorderSecondary:a}=e;return E(E({margin:0,padding:0,listStyle:"none",background:e.colorBgContainer,borderTop:`${e.lineWidth}px ${e.lineType} ${a}`,display:"flex",borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px `},yo()),{"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.cardActionsIconSize*2,fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:`${e.fontSize*e.lineHeight}px`,transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:o,lineHeight:`${o*e.lineHeight}px`}},"&:not(:last-child)":{borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${a}`}}})},nee=e=>E(E({margin:`-${e.marginXXS}px 0`,display:"flex"},yo()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":E({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},gn),"&-description":{color:e.colorTextDescription}}),ree=e=>{const{componentCls:t,cardPaddingBase:n,colorFillAlter:r}=e;return{[`${t}-head`]:{padding:`0 ${n}px`,background:r,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${e.padding}px ${n}px`}}},oee=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},aee=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:o,boxShadow:a,cardPaddingBase:i}=e;return{[t]:E(E({},rt(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:a},[`${t}-head`]:QQ(e),[`${t}-extra`]:{marginInlineStart:"auto",color:"",fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:E({padding:i,borderRadius:` 0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},yo()),[`${t}-grid`]:eee(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%"},img:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`}},[`${t}-actions`]:tee(e),[`${t}-meta`]:nee(e)}),[`${t}-bordered`]:{border:`${e.lineWidth}px ${e.lineType} ${o}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:n}},[`${t}-contain-grid`]:{[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:-e.lineWidth,marginInlineStart:-e.lineWidth,padding:0}},[`${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:r}}},[`${t}-type-inner`]:ree(e),[`${t}-loading`]:oee(e),[`${t}-rtl`]:{direction:"rtl"}}},iee=e=>{const{componentCls:t,cardPaddingSM:n,cardHeadHeightSM:r}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:r,padding:`0 ${n}px`,fontSize:e.fontSize,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{minHeight:r,paddingTop:0,display:"flex",alignItems:"center"}}}}},lee=nt("Card",e=>{const t=qe(e,{cardShadow:e.boxShadowCard,cardHeadHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,cardHeadHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardHeadTabsMarginBottom:-e.padding-e.lineWidth,cardActionsLiMargin:`${e.paddingSM}px 0`,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[aee(t),iee(t)]}),see=()=>({prefixCls:String,width:{type:[Number,String]}}),uee=he({compatConfig:{MODE:3},name:"SkeletonTitle",props:see(),setup(e){return()=>{const{prefixCls:t,width:n}=e,r=typeof n=="number"?`${n}px`:n;return C("h3",{class:t,style:{width:r}},null)}}}),Km=uee,cee=()=>({prefixCls:String,width:{type:[Number,String,Array]},rows:Number}),dee=he({compatConfig:{MODE:3},name:"SkeletonParagraph",props:cee(),setup(e){const t=n=>{const{width:r,rows:o=2}=e;if(Array.isArray(r))return r[n];if(o-1===n)return r};return()=>{const{prefixCls:n,rows:r}=e,o=[...Array(r)].map((a,i)=>{const l=t(i);return C("li",{key:i,style:{width:typeof l=="number"?`${l}px`:l}},null)});return C("ul",{class:n},[o])}}}),fee=dee,qm=()=>({prefixCls:String,size:[String,Number],shape:String,active:{type:Boolean,default:void 0}}),DI=e=>{const{prefixCls:t,size:n,shape:r}=e,o=ge({[`${t}-lg`]:n==="large",[`${t}-sm`]:n==="small"}),a=ge({[`${t}-circle`]:r==="circle",[`${t}-square`]:r==="square",[`${t}-round`]:r==="round"}),i=typeof n=="number"?{width:`${n}px`,height:`${n}px`,lineHeight:`${n}px`}:{};return C("span",{class:ge(t,o,a),style:i},null)};DI.displayName="SkeletonElement";const Gm=DI,pee=new ft("ant-skeleton-loading",{"0%":{transform:"translateX(-37.5%)"},"100%":{transform:"translateX(37.5%)"}}),Xm=e=>({height:e,lineHeight:`${e}px`}),Yl=e=>E({width:e},Xm(e)),mee=e=>({position:"relative",zIndex:0,overflow:"hidden",background:"transparent","&::after":{position:"absolute",top:0,insetInlineEnd:"-150%",bottom:0,insetInlineStart:"-150%",background:e.skeletonLoadingBackground,animationName:pee,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite",content:'""'}}),Oh=e=>E({width:e*5,minWidth:e*5},Xm(e)),vee=e=>{const{skeletonAvatarCls:t,color:n,controlHeight:r,controlHeightLG:o,controlHeightSM:a}=e;return{[`${t}`]:E({display:"inline-block",verticalAlign:"top",background:n},Yl(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:E({},Yl(o)),[`${t}${t}-sm`]:E({},Yl(a))}},hee=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:o,controlHeightSM:a,color:i}=e;return{[`${r}`]:E({display:"inline-block",verticalAlign:"top",background:i,borderRadius:n},Oh(t)),[`${r}-lg`]:E({},Oh(o)),[`${r}-sm`]:E({},Oh(a))}},o2=e=>E({width:e},Xm(e)),gee=e=>{const{skeletonImageCls:t,imageSizeBase:n,color:r,borderRadiusSM:o}=e;return{[`${t}`]:E(E({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:r,borderRadius:o},o2(n*2)),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:E(E({},o2(n)),{maxWidth:n*4,maxHeight:n*4}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},Th=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},Mh=e=>E({width:e*2,minWidth:e*2},Xm(e)),yee=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:o,controlHeightSM:a,color:i}=e;return E(E(E(E(E({[`${n}`]:E({display:"inline-block",verticalAlign:"top",background:i,borderRadius:t,width:r*2,minWidth:r*2},Mh(r))},Th(e,r,n)),{[`${n}-lg`]:E({},Mh(o))}),Th(e,o,`${n}-lg`)),{[`${n}-sm`]:E({},Mh(a))}),Th(e,a,`${n}-sm`))},bee=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:o,skeletonButtonCls:a,skeletonInputCls:i,skeletonImageCls:l,controlHeight:s,controlHeightLG:u,controlHeightSM:c,color:d,padding:f,marginSM:p,borderRadius:v,skeletonTitleHeight:m,skeletonBlockRadius:h,skeletonParagraphLineHeight:g,controlHeightXS:x,skeletonParagraphMarginTop:y}=e;return{[`${t}`]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:f,verticalAlign:"top",[`${n}`]:E({display:"inline-block",verticalAlign:"top",background:d},Yl(s)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:E({},Yl(u)),[`${n}-sm`]:E({},Yl(c))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${r}`]:{width:"100%",height:m,background:d,borderRadius:h,[`+ ${o}`]:{marginBlockStart:c}},[`${o}`]:{padding:0,"> li":{width:"100%",height:g,listStyle:"none",background:d,borderRadius:h,"+ li":{marginBlockStart:x}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${o} > li`]:{borderRadius:v}}},[`${t}-with-avatar ${t}-content`]:{[`${r}`]:{marginBlockStart:p,[`+ ${o}`]:{marginBlockStart:y}}},[`${t}${t}-element`]:E(E(E(E({display:"inline-block",width:"auto"},yee(e)),vee(e)),hee(e)),gee(e)),[`${t}${t}-block`]:{width:"100%",[`${a}`]:{width:"100%"},[`${i}`]:{width:"100%"}},[`${t}${t}-active`]:{[`
- ${r},
- ${o} > li,
- ${n},
- ${a},
- ${i},
- ${l}
- `]:E({},mee(e))}}},Sc=nt("Skeleton",e=>{const{componentCls:t}=e,n=qe(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:e.controlHeight*1.5,skeletonTitleHeight:e.controlHeight/2,skeletonBlockRadius:e.borderRadiusSM,skeletonParagraphLineHeight:e.controlHeight/2,skeletonParagraphMarginTop:e.marginLG+e.marginXXS,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.color} 25%, ${e.colorGradientEnd} 37%, ${e.color} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[bee(n)]},e=>{const{colorFillContent:t,colorFill:n}=e;return{color:t,colorGradientEnd:n}}),xee=()=>({active:{type:Boolean,default:void 0},loading:{type:Boolean,default:void 0},prefixCls:String,avatar:{type:[Boolean,Object],default:void 0},title:{type:[Boolean,Object],default:void 0},paragraph:{type:[Boolean,Object],default:void 0},round:{type:Boolean,default:void 0}});function Nh(e){return e&&typeof e=="object"?e:{}}function wee(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function See(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function Cee(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const $ee=he({compatConfig:{MODE:3},name:"ASkeleton",props:at(xee(),{avatar:!1,title:!0,paragraph:!0}),setup(e,t){let{slots:n}=t;const{prefixCls:r,direction:o}=He("skeleton",e),[a,i]=Sc(r);return()=>{var l;const{loading:s,avatar:u,title:c,paragraph:d,active:f,round:p}=e,v=r.value;if(s||e.loading===void 0){const m=!!u||u==="",h=!!c||c==="",g=!!d||d==="";let x;if(m){const b=E(E({prefixCls:`${v}-avatar`},wee(h,g)),Nh(u));x=C("div",{class:`${v}-header`},[C(Gm,b,null)])}let y;if(h||g){let b;if(h){const $=E(E({prefixCls:`${v}-title`},See(m,g)),Nh(c));b=C(Km,$,null)}let S;if(g){const $=E(E({prefixCls:`${v}-paragraph`},Cee(m,h)),Nh(d));S=C(fee,$,null)}y=C("div",{class:`${v}-content`},[b,S])}const w=ge(v,{[`${v}-with-avatar`]:m,[`${v}-active`]:f,[`${v}-rtl`]:o.value==="rtl",[`${v}-round`]:p,[i.value]:!0});return a(C("div",{class:w},[x,y]))}return(l=n.default)===null||l===void 0?void 0:l.call(n)}}}),Zn=$ee,Eee=()=>E(E({},qm()),{size:String,block:Boolean}),Dee=he({compatConfig:{MODE:3},name:"ASkeletonButton",props:at(Eee(),{size:"default"}),setup(e){const{prefixCls:t}=He("skeleton",e),[n,r]=Sc(t),o=z(()=>ge(t.value,`${t.value}-element`,{[`${t.value}-active`]:e.active,[`${t.value}-block`]:e.block},r.value));return()=>n(C("div",{class:o.value},[C(Gm,j(j({},e),{},{prefixCls:`${t.value}-button`}),null)]))}}),nx=Dee,Aee=he({compatConfig:{MODE:3},name:"ASkeletonInput",props:E(E({},pt(qm(),["shape"])),{size:String,block:Boolean}),setup(e){const{prefixCls:t}=He("skeleton",e),[n,r]=Sc(t),o=z(()=>ge(t.value,`${t.value}-element`,{[`${t.value}-active`]:e.active,[`${t.value}-block`]:e.block},r.value));return()=>n(C("div",{class:o.value},[C(Gm,j(j({},e),{},{prefixCls:`${t.value}-input`}),null)]))}}),rx=Aee,Oee="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",Tee=he({compatConfig:{MODE:3},name:"ASkeletonImage",props:pt(qm(),["size","shape","active"]),setup(e){const{prefixCls:t}=He("skeleton",e),[n,r]=Sc(t),o=z(()=>ge(t.value,`${t.value}-element`,r.value));return()=>n(C("div",{class:o.value},[C("div",{class:`${t.value}-image`},[C("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",class:`${t.value}-image-svg`},[C("path",{d:Oee,class:`${t.value}-image-path`},null)])])]))}}),ox=Tee,Mee=()=>E(E({},qm()),{shape:String}),Nee=he({compatConfig:{MODE:3},name:"ASkeletonAvatar",props:at(Mee(),{size:"default",shape:"circle"}),setup(e){const{prefixCls:t}=He("skeleton",e),[n,r]=Sc(t),o=z(()=>ge(t.value,`${t.value}-element`,{[`${t.value}-active`]:e.active},r.value));return()=>n(C("div",{class:o.value},[C(Gm,j(j({},e),{},{prefixCls:`${t.value}-avatar`}),null)]))}}),ax=Nee;Zn.Button=nx;Zn.Avatar=ax;Zn.Input=rx;Zn.Image=ox;Zn.Title=Km;Zn.install=function(e){return e.component(Zn.name,Zn),e.component(Zn.Button.name,nx),e.component(Zn.Avatar.name,ax),e.component(Zn.Input.name,rx),e.component(Zn.Image.name,ox),e.component(Zn.Title.name,Km),e};const{TabPane:Pee}=Li,Iee=()=>({prefixCls:String,title:Z.any,extra:Z.any,bordered:{type:Boolean,default:!0},bodyStyle:{type:Object,default:void 0},headStyle:{type:Object,default:void 0},loading:{type:Boolean,default:!1},hoverable:{type:Boolean,default:!1},type:{type:String},size:{type:String},actions:Z.any,tabList:{type:Array},tabBarExtraContent:Z.any,activeTabKey:String,defaultActiveTabKey:String,cover:Z.any,onTabChange:{type:Function}}),_ee=he({compatConfig:{MODE:3},name:"ACard",inheritAttrs:!1,props:Iee(),slots:Object,setup(e,t){let{slots:n,attrs:r}=t;const{prefixCls:o,direction:a,size:i}=He("card",e),[l,s]=lee(o),u=f=>f.map((v,m)=>br(v)&&!cc(v)||!br(v)?C("li",{style:{width:`${100/f.length}%`},key:`action-${m}`},[C("span",null,[v])]):null),c=f=>{var p;(p=e.onTabChange)===null||p===void 0||p.call(e,f)},d=function(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],p;return f.forEach(v=>{v&&Gy(v.type)&&v.type.__ANT_CARD_GRID&&(p=!0)}),p};return()=>{var f,p,v,m,h,g;const{headStyle:x={},bodyStyle:y={},loading:w,bordered:b=!0,type:S,tabList:$,hoverable:D,activeTabKey:O,defaultActiveTabKey:A,tabBarExtraContent:T=Xs((f=n.tabBarExtraContent)===null||f===void 0?void 0:f.call(n)),title:M=Xs((p=n.title)===null||p===void 0?void 0:p.call(n)),extra:B=Xs((v=n.extra)===null||v===void 0?void 0:v.call(n)),actions:F=Xs((m=n.actions)===null||m===void 0?void 0:m.call(n)),cover:P=Xs((h=n.cover)===null||h===void 0?void 0:h.call(n))}=e,I=Lt((g=n.default)===null||g===void 0?void 0:g.call(n)),N=o.value,R={[`${N}`]:!0,[s.value]:!0,[`${N}-loading`]:w,[`${N}-bordered`]:b,[`${N}-hoverable`]:!!D,[`${N}-contain-grid`]:d(I),[`${N}-contain-tabs`]:$&&$.length,[`${N}-${i.value}`]:i.value,[`${N}-type-${S}`]:!!S,[`${N}-rtl`]:a.value==="rtl"},_=C(Zn,{loading:!0,active:!0,paragraph:{rows:4},title:!1},{default:()=>[I]}),L=O!==void 0,k={size:"large",[L?"activeKey":"defaultActiveKey"]:L?O:A,onChange:c,class:`${N}-head-tabs`};let H;const V=$&&$.length?C(Li,k,{default:()=>[$.map(X=>{const{tab:re,slots:ee}=X,G=ee==null?void 0:ee.tab;qt(!ee,"Card","tabList slots is deprecated, Please use `customTab` instead.");let le=re!==void 0?re:n[G]?n[G](X):null;return le=nm(n,"customTab",X,()=>[le]),C(Pee,{tab:le,key:X.key,disabled:X.disabled},null)})],rightExtra:T?()=>T:null}):null;(M||B||V)&&(H=C("div",{class:`${N}-head`,style:x},[C("div",{class:`${N}-head-wrapper`},[M&&C("div",{class:`${N}-head-title`},[M]),B&&C("div",{class:`${N}-extra`},[B])]),V]));const U=P?C("div",{class:`${N}-cover`},[P]):null,q=C("div",{class:`${N}-body`,style:y},[w?_:I]),K=F&&F.length?C("ul",{class:`${N}-actions`},[u(F)]):null;return l(C("div",j(j({ref:"cardContainerRef"},r),{},{class:[R,r.class]}),[H,U,I&&I.length?q:null,K]))}}}),Zl=_ee,Bee=()=>({prefixCls:String,title:Jn(),description:Jn(),avatar:Jn()}),yp=he({compatConfig:{MODE:3},name:"ACardMeta",props:Bee(),slots:Object,setup(e,t){let{slots:n}=t;const{prefixCls:r}=He("card",e);return()=>{const o={[`${r.value}-meta`]:!0},a=Sn(n,e,"avatar"),i=Sn(n,e,"title"),l=Sn(n,e,"description"),s=a?C("div",{class:`${r.value}-meta-avatar`},[a]):null,u=i?C("div",{class:`${r.value}-meta-title`},[i]):null,c=l?C("div",{class:`${r.value}-meta-description`},[l]):null,d=u||c?C("div",{class:`${r.value}-meta-detail`},[u,c]):null;return C("div",{class:o},[s,d])}}}),Fee=()=>({prefixCls:String,hoverable:{type:Boolean,default:!0}}),bp=he({compatConfig:{MODE:3},name:"ACardGrid",__ANT_CARD_GRID:!0,props:Fee(),setup(e,t){let{slots:n}=t;const{prefixCls:r}=He("card",e),o=z(()=>({[`${r.value}-grid`]:!0,[`${r.value}-grid-hoverable`]:e.hoverable}));return()=>{var a;return C("div",{class:o.value},[(a=n.default)===null||a===void 0?void 0:a.call(n)])}}});Zl.Meta=yp;Zl.Grid=bp;Zl.install=function(e){return e.component(Zl.name,Zl),e.component(yp.name,yp),e.component(bp.name,bp),e};const Ree=()=>({prefixCls:String,activeKey:Xe([Array,Number,String]),defaultActiveKey:Xe([Array,Number,String]),accordion:Pe(),destroyInactivePanel:Pe(),bordered:Pe(),expandIcon:Oe(),openAnimation:Z.object,expandIconPosition:Ue(),collapsible:Ue(),ghost:Pe(),onChange:Oe(),"onUpdate:activeKey":Oe()}),AI=()=>({openAnimation:Z.object,prefixCls:String,header:Z.any,headerClass:String,showArrow:Pe(),isActive:Pe(),destroyInactivePanel:Pe(),disabled:Pe(),accordion:Pe(),forceRender:Pe(),expandIcon:Oe(),extra:Z.any,panelKey:Xe(),collapsible:Ue(),role:String,onItemClick:Oe()}),zee=e=>{const{componentCls:t,collapseContentBg:n,padding:r,collapseContentPaddingHorizontal:o,collapseHeaderBg:a,collapseHeaderPadding:i,collapsePanelBorderRadius:l,lineWidth:s,lineType:u,colorBorder:c,colorText:d,colorTextHeading:f,colorTextDisabled:p,fontSize:v,lineHeight:m,marginSM:h,paddingSM:g,motionDurationSlow:x,fontSizeIcon:y}=e,w=`${s}px ${u} ${c}`;return{[t]:E(E({},rt(e)),{backgroundColor:a,border:w,borderBottom:0,borderRadius:`${l}px`,["&-rtl"]:{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:w,["&:last-child"]:{[`
- &,
- & > ${t}-header`]:{borderRadius:`0 0 ${l}px ${l}px`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:i,color:f,lineHeight:m,cursor:"pointer",transition:`all ${x}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:v*m,display:"flex",alignItems:"center",paddingInlineEnd:h},[`${t}-arrow`]:E(E({},Qi()),{fontSize:y,svg:{transition:`transform ${x}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-header-collapsible-only`]:{cursor:"default",[`${t}-header-text`]:{flex:"none",cursor:"pointer"},[`${t}-expand-icon`]:{cursor:"pointer"}},[`${t}-icon-collapsible-only`]:{cursor:"default",[`${t}-expand-icon`]:{cursor:"pointer"}},[`&${t}-no-arrow`]:{[`> ${t}-header`]:{paddingInlineStart:g}}},[`${t}-content`]:{color:d,backgroundColor:n,borderTop:w,[`& > ${t}-content-box`]:{padding:`${r}px ${o}px`},["&-hidden"]:{display:"none"}},[`${t}-item:last-child`]:{[`> ${t}-content`]:{borderRadius:`0 0 ${l}px ${l}px`}},[`& ${t}-item-disabled > ${t}-header`]:{[`
- &,
- & > .arrow
- `]:{color:p,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:h}}}}})}},Lee=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow svg`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},kee=e=>{const{componentCls:t,collapseHeaderBg:n,paddingXXS:r,colorBorder:o}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${o}`},[`
- > ${t}-item:last-child,
- > ${t}-item:last-child ${t}-header
- `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:r}}}},Hee=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}},jee=nt("Collapse",e=>{const t=qe(e,{collapseContentBg:e.colorBgContainer,collapseHeaderBg:e.colorFillAlter,collapseHeaderPadding:`${e.paddingSM}px ${e.padding}px`,collapsePanelBorderRadius:e.borderRadiusLG,collapseContentPaddingHorizontal:16});return[zee(t),kee(t),Hee(t),Lee(t),gc(t)]});function a2(e){let t=e;if(!Array.isArray(t)){const n=typeof t;t=n==="number"||n==="string"?[t]:[]}return t.map(n=>String(n))}const xu=he({compatConfig:{MODE:3},name:"ACollapse",inheritAttrs:!1,props:at(Ree(),{accordion:!1,destroyInactivePanel:!1,bordered:!0,openAnimation:yc("ant-motion-collapse",!1),expandIconPosition:"start"}),slots:Object,setup(e,t){let{attrs:n,slots:r,emit:o}=t;const a=be(a2(op([e.activeKey,e.defaultActiveKey])));Ne(()=>e.activeKey,()=>{a.value=a2(e.activeKey)},{deep:!0});const{prefixCls:i,direction:l}=He("collapse",e),[s,u]=jee(i),c=z(()=>{const{expandIconPosition:h}=e;return h!==void 0?h:l.value==="rtl"?"end":"start"}),d=h=>{const{expandIcon:g=r.expandIcon}=e,x=g?g(h):C(xo,{rotate:h.isActive?90:void 0},null);return C("div",{class:[`${i.value}-expand-icon`,u.value],onClick:()=>["header","icon"].includes(e.collapsible)&&p(h.panelKey)},[hn(Array.isArray(g)?x[0]:x)?At(x,{class:`${i.value}-arrow`},!1):x])},f=h=>{e.activeKey===void 0&&(a.value=h);const g=e.accordion?h[0]:h;o("update:activeKey",g),o("change",g)},p=h=>{let g=a.value;if(e.accordion)g=g[0]===h?[]:[h];else{g=[...g];const x=g.indexOf(h);x>-1?g.splice(x,1):g.push(h)}f(g)},v=(h,g)=>{var x,y,w;if(cc(h))return;const b=a.value,{accordion:S,destroyInactivePanel:$,collapsible:D,openAnimation:O}=e,A=String((x=h.key)!==null&&x!==void 0?x:g),{header:T=(w=(y=h.children)===null||y===void 0?void 0:y.header)===null||w===void 0?void 0:w.call(y),headerClass:M,collapsible:B,disabled:F}=h.props||{};let P=!1;S?P=b[0]===A:P=b.indexOf(A)>-1;let I=B??D;(F||F==="")&&(I="disabled");const N={key:A,panelKey:A,header:T,headerClass:M,isActive:P,prefixCls:i.value,destroyInactivePanel:$,openAnimation:O,accordion:S,onItemClick:I==="disabled"?null:p,expandIcon:d,collapsible:I};return At(h,N)},m=()=>{var h;return Lt((h=r.default)===null||h===void 0?void 0:h.call(r)).map(v)};return()=>{const{accordion:h,bordered:g,ghost:x}=e,y=ge(i.value,{[`${i.value}-borderless`]:!g,[`${i.value}-icon-position-${c.value}`]:!0,[`${i.value}-rtl`]:l.value==="rtl",[`${i.value}-ghost`]:!!x,[n.class]:!!n.class},u.value);return s(C("div",j(j({class:y},dF(n)),{},{style:n.style,role:h?"tablist":null}),[m()]))}}}),Vee=he({compatConfig:{MODE:3},name:"PanelContent",props:AI(),setup(e,t){let{slots:n}=t;const r=pe(!1);return Je(()=>{(e.isActive||e.forceRender)&&(r.value=!0)}),()=>{var o;if(!r.value)return null;const{prefixCls:a,isActive:i,role:l}=e;return C("div",{class:ge(`${a}-content`,{[`${a}-content-active`]:i,[`${a}-content-inactive`]:!i}),role:l},[C("div",{class:`${a}-content-box`},[(o=n.default)===null||o===void 0?void 0:o.call(n)])])}}}),xp=he({compatConfig:{MODE:3},name:"ACollapsePanel",inheritAttrs:!1,props:at(AI(),{showArrow:!0,isActive:!1,onItemClick(){},headerClass:"",forceRender:!1}),slots:Object,setup(e,t){let{slots:n,emit:r,attrs:o}=t;qt(e.disabled===void 0,"Collapse.Panel",'`disabled` is deprecated. Please use `collapsible="disabled"` instead.');const{prefixCls:a}=He("collapse",e),i=()=>{r("itemClick",e.panelKey)},l=s=>{(s.key==="Enter"||s.keyCode===13||s.which===13)&&i()};return()=>{var s,u;const{header:c=(s=n.header)===null||s===void 0?void 0:s.call(n),headerClass:d,isActive:f,showArrow:p,destroyInactivePanel:v,accordion:m,forceRender:h,openAnimation:g,expandIcon:x=n.expandIcon,extra:y=(u=n.extra)===null||u===void 0?void 0:u.call(n),collapsible:w}=e,b=w==="disabled",S=a.value,$=ge(`${S}-header`,{[d]:d,[`${S}-header-collapsible-only`]:w==="header",[`${S}-icon-collapsible-only`]:w==="icon"}),D=ge({[`${S}-item`]:!0,[`${S}-item-active`]:f,[`${S}-item-disabled`]:b,[`${S}-no-arrow`]:!p,[`${o.class}`]:!!o.class});let O=C("i",{class:"arrow"},null);p&&typeof x=="function"&&(O=x(e));const A=vn(C(Vee,{prefixCls:S,isActive:f,forceRender:h,role:m?"tabpanel":null},{default:n.default}),[[ur,f]]),T=E({appear:!1,css:!1},g);return C("div",j(j({},o),{},{class:D}),[C("div",{class:$,onClick:()=>!["header","icon"].includes(w)&&i(),role:m?"tab":"button",tabindex:b?-1:0,"aria-expanded":f,onKeypress:l},[p&&O,C("span",{onClick:()=>w==="header"&&i(),class:`${S}-header-text`},[c]),y&&C("div",{class:`${S}-extra`},[y])]),C(_n,T,{default:()=>[!v||f?A:null]})])}}});xu.Panel=xp;xu.install=function(e){return e.component(xu.name,xu),e.component(xp.name,xp),e};const Wee=function(e){return e.replace(/[A-Z]/g,function(t){return"-"+t.toLowerCase()}).toLowerCase()},Uee=function(e){return/[height|width]$/.test(e)},i2=function(e){let t="";const n=Object.keys(e);return n.forEach(function(r,o){let a=e[r];r=Wee(r),Uee(r)&&typeof a=="number"&&(a=a+"px"),a===!0?t+=r:a===!1?t+="not "+r:t+="("+r+": "+a+")",o<n.length-1&&(t+=" and ")}),t};function Ph(e){let t="";return typeof e=="string"?e:e instanceof Array?(e.forEach(function(n,r){t+=i2(n),r<e.length-1&&(t+=", ")}),t):i2(e)}const Kee={accessibility:{type:Boolean,default:!0},adaptiveHeight:{type:Boolean,default:!1},afterChange:Z.any.def(null),arrows:{type:Boolean,default:!0},autoplay:{type:Boolean,default:!1},autoplaySpeed:Z.number.def(3e3),beforeChange:Z.any.def(null),centerMode:{type:Boolean,default:!1},centerPadding:Z.string.def("50px"),cssEase:Z.string.def("ease"),dots:{type:Boolean,default:!1},dotsClass:Z.string.def("slick-dots"),draggable:{type:Boolean,default:!0},unslick:{type:Boolean,default:!1},easing:Z.string.def("linear"),edgeFriction:Z.number.def(.35),fade:{type:Boolean,default:!1},focusOnSelect:{type:Boolean,default:!1},infinite:{type:Boolean,default:!0},initialSlide:Z.number.def(0),lazyLoad:Z.any.def(null),verticalSwiping:{type:Boolean,default:!1},asNavFor:Z.any.def(null),pauseOnDotsHover:{type:Boolean,default:!1},pauseOnFocus:{type:Boolean,default:!1},pauseOnHover:{type:Boolean,default:!0},responsive:Z.array,rows:Z.number.def(1),rtl:{type:Boolean,default:!1},slide:Z.string.def("div"),slidesPerRow:Z.number.def(1),slidesToScroll:Z.number.def(1),slidesToShow:Z.number.def(1),speed:Z.number.def(500),swipe:{type:Boolean,default:!0},swipeEvent:Z.any.def(null),swipeToSlide:{type:Boolean,default:!1},touchMove:{type:Boolean,default:!0},touchThreshold:Z.number.def(5),useCSS:{type:Boolean,default:!0},useTransform:{type:Boolean,default:!0},variableWidth:{type:Boolean,default:!1},vertical:{type:Boolean,default:!1},waitForAnimate:{type:Boolean,default:!0},children:Z.array,__propsSymbol__:Z.any},OI=Kee,qee={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0},Gee=qee;function b0(e,t,n){return Math.max(t,Math.min(e,n))}const Jl=e=>{["touchstart","touchmove","wheel"].includes(e.type)||e.preventDefault()},wp=e=>{const t=[],n=TI(e),r=MI(e);for(let o=n;o<r;o++)e.lazyLoadedList.indexOf(o)<0&&t.push(o);return t},TI=e=>e.currentSlide-Xee(e),MI=e=>e.currentSlide+Yee(e),Xee=e=>e.centerMode?Math.floor(e.slidesToShow/2)+(parseInt(e.centerPadding)>0?1:0):0,Yee=e=>e.centerMode?Math.floor((e.slidesToShow-1)/2)+1+(parseInt(e.centerPadding)>0?1:0):e.slidesToShow,x0=e=>e&&e.offsetWidth||0,ix=e=>e&&e.offsetHeight||0,NI=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;const r=e.startX-e.curX,o=e.startY-e.curY,a=Math.atan2(o,r);return n=Math.round(a*180/Math.PI),n<0&&(n=360-Math.abs(n)),n<=45&&n>=0||n<=360&&n>=315?"left":n>=135&&n<=225?"right":t===!0?n>=35&&n<=135?"up":"down":"vertical"},Ym=e=>{let t=!0;return e.infinite||(e.centerMode&&e.currentSlide>=e.slideCount-1||e.slideCount<=e.slidesToShow||e.currentSlide>=e.slideCount-e.slidesToShow)&&(t=!1),t},Ih=(e,t)=>{const n={};return t.forEach(r=>n[r]=e[r]),n},Zee=e=>{const t=e.children.length,n=e.listRef,r=Math.ceil(x0(n)),o=e.trackRef,a=Math.ceil(x0(o));let i;if(e.vertical)i=r;else{let p=e.centerMode&&parseInt(e.centerPadding)*2;typeof e.centerPadding=="string"&&e.centerPadding.slice(-1)==="%"&&(p*=r/100),i=Math.ceil((r-p)/e.slidesToShow)}const l=n&&ix(n.querySelector('[data-index="0"]')),s=l*e.slidesToShow;let u=e.currentSlide===void 0?e.initialSlide:e.currentSlide;e.rtl&&e.currentSlide===void 0&&(u=t-1-e.initialSlide);let c=e.lazyLoadedList||[];const d=wp(E(E({},e),{currentSlide:u,lazyLoadedList:c}));c=c.concat(d);const f={slideCount:t,slideWidth:i,listWidth:r,trackWidth:a,currentSlide:u,slideHeight:l,listHeight:s,lazyLoadedList:c};return e.autoplaying===null&&e.autoplay&&(f.autoplaying="playing"),f},Jee=e=>{const{waitForAnimate:t,animating:n,fade:r,infinite:o,index:a,slideCount:i,lazyLoad:l,currentSlide:s,centerMode:u,slidesToScroll:c,slidesToShow:d,useCSS:f}=e;let{lazyLoadedList:p}=e;if(t&&n)return{};let v=a,m,h,g,x={},y={};const w=o?a:b0(a,0,i-1);if(r){if(!o&&(a<0||a>=i))return{};a<0?v=a+i:a>=i&&(v=a-i),l&&p.indexOf(v)<0&&(p=p.concat(v)),x={animating:!0,currentSlide:v,lazyLoadedList:p,targetSlide:v},y={animating:!1,targetSlide:v}}else m=v,v<0?(m=v+i,o?i%c!==0&&(m=i-i%c):m=0):!Ym(e)&&v>s?v=m=s:u&&v>=i?(v=o?i:i-1,m=o?0:i-1):v>=i&&(m=v-i,o?i%c!==0&&(m=0):m=i-d),!o&&v+d>=i&&(m=i-d),h=Ju(E(E({},e),{slideIndex:v})),g=Ju(E(E({},e),{slideIndex:m})),o||(h===g&&(v=m),h=g),l&&(p=p.concat(wp(E(E({},e),{currentSlide:v})))),f?(x={animating:!0,currentSlide:m,trackStyle:PI(E(E({},e),{left:h})),lazyLoadedList:p,targetSlide:w},y={animating:!1,currentSlide:m,trackStyle:Zu(E(E({},e),{left:g})),swipeLeft:null,targetSlide:w}):x={currentSlide:m,trackStyle:Zu(E(E({},e),{left:g})),lazyLoadedList:p,targetSlide:w};return{state:x,nextState:y}},Qee=(e,t)=>{let n,r,o;const{slidesToScroll:a,slidesToShow:i,slideCount:l,currentSlide:s,targetSlide:u,lazyLoad:c,infinite:d}=e,p=l%a!==0?0:(l-s)%a;if(t.message==="previous")r=p===0?a:i-p,o=s-r,c&&!d&&(n=s-r,o=n===-1?l-1:n),d||(o=u-a);else if(t.message==="next")r=p===0?a:p,o=s+r,c&&!d&&(o=(s+a)%l+p),d||(o=u+a);else if(t.message==="dots")o=t.index*t.slidesToScroll;else if(t.message==="children"){if(o=t.index,d){const v=ite(E(E({},e),{targetSlide:o}));o>t.currentSlide&&v==="left"?o=o-l:o<t.currentSlide&&v==="right"&&(o=o+l)}}else t.message==="index"&&(o=Number(t.index));return o},ete=(e,t,n)=>e.target.tagName.match("TEXTAREA|INPUT|SELECT")||!t?"":e.keyCode===37?n?"next":"previous":e.keyCode===39?n?"previous":"next":"",tte=(e,t,n)=>(e.target.tagName==="IMG"&&Jl(e),!t||!n&&e.type.indexOf("mouse")!==-1?"":{dragging:!0,touchObject:{startX:e.touches?e.touches[0].pageX:e.clientX,startY:e.touches?e.touches[0].pageY:e.clientY,curX:e.touches?e.touches[0].pageX:e.clientX,curY:e.touches?e.touches[0].pageY:e.clientY}}),nte=(e,t)=>{const{scrolling:n,animating:r,vertical:o,swipeToSlide:a,verticalSwiping:i,rtl:l,currentSlide:s,edgeFriction:u,edgeDragged:c,onEdge:d,swiped:f,swiping:p,slideCount:v,slidesToScroll:m,infinite:h,touchObject:g,swipeEvent:x,listHeight:y,listWidth:w}=t;if(n)return;if(r)return Jl(e);o&&a&&i&&Jl(e);let b,S={};const $=Ju(t);g.curX=e.touches?e.touches[0].pageX:e.clientX,g.curY=e.touches?e.touches[0].pageY:e.clientY,g.swipeLength=Math.round(Math.sqrt(Math.pow(g.curX-g.startX,2)));const D=Math.round(Math.sqrt(Math.pow(g.curY-g.startY,2)));if(!i&&!p&&D>10)return{scrolling:!0};i&&(g.swipeLength=D);let O=(l?-1:1)*(g.curX>g.startX?1:-1);i&&(O=g.curY>g.startY?1:-1);const A=Math.ceil(v/m),T=NI(t.touchObject,i);let M=g.swipeLength;return h||(s===0&&(T==="right"||T==="down")||s+1>=A&&(T==="left"||T==="up")||!Ym(t)&&(T==="left"||T==="up"))&&(M=g.swipeLength*u,c===!1&&d&&(d(T),S.edgeDragged=!0)),!f&&x&&(x(T),S.swiped=!0),o?b=$+M*(y/w)*O:l?b=$-M*O:b=$+M*O,i&&(b=$+M*O),S=E(E({},S),{touchObject:g,swipeLeft:b,trackStyle:Zu(E(E({},t),{left:b}))}),Math.abs(g.curX-g.startX)<Math.abs(g.curY-g.startY)*.8||g.swipeLength>10&&(S.swiping=!0,Jl(e)),S},rte=(e,t)=>{const{dragging:n,swipe:r,touchObject:o,listWidth:a,touchThreshold:i,verticalSwiping:l,listHeight:s,swipeToSlide:u,scrolling:c,onSwipe:d,targetSlide:f,currentSlide:p,infinite:v}=t;if(!n)return r&&Jl(e),{};const m=l?s/i:a/i,h=NI(o,l),g={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(c||!o.swipeLength)return g;if(o.swipeLength>m){Jl(e),d&&d(h);let x,y,w=v?p:f;switch(h){case"left":case"up":y=w+s2(t),x=u?l2(t,y):y,g.currentDirection=0;break;case"right":case"down":y=w-s2(t),x=u?l2(t,y):y,g.currentDirection=1;break;default:x=w}g.triggerSlideHandler=x}else{const x=Ju(t);g.trackStyle=PI(E(E({},t),{left:x}))}return g},ote=e=>{const t=e.infinite?e.slideCount*2:e.slideCount;let n=e.infinite?e.slidesToShow*-1:0,r=e.infinite?e.slidesToShow*-1:0;const o=[];for(;n<t;)o.push(n),n=r+e.slidesToScroll,r+=Math.min(e.slidesToScroll,e.slidesToShow);return o},l2=(e,t)=>{const n=ote(e);let r=0;if(t>n[n.length-1])t=n[n.length-1];else for(const o in n){if(t<n[o]){t=r;break}r=n[o]}return t},s2=e=>{const t=e.centerMode?e.slideWidth*Math.floor(e.slidesToShow/2):0;if(e.swipeToSlide){let n;const r=e.listRef,o=r.querySelectorAll&&r.querySelectorAll(".slick-slide")||[];if(Array.from(o).every(l=>{if(e.vertical){if(l.offsetTop+ix(l)/2>e.swipeLeft*-1)return n=l,!1}else if(l.offsetLeft-t+x0(l)/2>e.swipeLeft*-1)return n=l,!1;return!0}),!n)return 0;const a=e.rtl===!0?e.slideCount-e.currentSlide:e.currentSlide;return Math.abs(n.dataset.index-a)||1}else return e.slidesToScroll},lx=(e,t)=>t.reduce((n,r)=>n&&e.hasOwnProperty(r),!0)?null:console.error("Keys Missing:",e),Zu=e=>{lx(e,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);let t,n;const r=e.slideCount+2*e.slidesToShow;e.vertical?n=r*e.slideHeight:t=ate(e)*e.slideWidth;let o={opacity:1,transition:"",WebkitTransition:""};if(e.useTransform){const a=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",i=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",l=e.vertical?"translateY("+e.left+"px)":"translateX("+e.left+"px)";o=E(E({},o),{WebkitTransform:a,transform:i,msTransform:l})}else e.vertical?o.top=e.left:o.left=e.left;return e.fade&&(o={opacity:1}),t&&(o.width=t+"px"),n&&(o.height=n+"px"),window&&!window.addEventListener&&window.attachEvent&&(e.vertical?o.marginTop=e.left+"px":o.marginLeft=e.left+"px"),o},PI=e=>{lx(e,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);const t=Zu(e);return e.useTransform?(t.WebkitTransition="-webkit-transform "+e.speed+"ms "+e.cssEase,t.transition="transform "+e.speed+"ms "+e.cssEase):e.vertical?t.transition="top "+e.speed+"ms "+e.cssEase:t.transition="left "+e.speed+"ms "+e.cssEase,t},Ju=e=>{if(e.unslick)return 0;lx(e,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);const{slideIndex:t,trackRef:n,infinite:r,centerMode:o,slideCount:a,slidesToShow:i,slidesToScroll:l,slideWidth:s,listWidth:u,variableWidth:c,slideHeight:d,fade:f,vertical:p}=e;let v=0,m,h,g=0;if(f||e.slideCount===1)return 0;let x=0;if(r?(x=-da(e),a%l!==0&&t+l>a&&(x=-(t>a?i-(t-a):a%l)),o&&(x+=parseInt(i/2))):(a%l!==0&&t+l>a&&(x=i-a%l),o&&(x=parseInt(i/2))),v=x*s,g=x*d,p?m=t*d*-1+g:m=t*s*-1+v,c===!0){let y;const w=n;if(y=t+da(e),h=w&&w.childNodes[y],m=h?h.offsetLeft*-1:0,o===!0){y=r?t+da(e):t,h=w&&w.children[y],m=0;for(let b=0;b<y;b++)m-=w&&w.children[b]&&w.children[b].offsetWidth;m-=parseInt(e.centerPadding),m+=h&&(u-h.offsetWidth)/2}}return m},da=e=>e.unslick||!e.infinite?0:e.variableWidth?e.slideCount:e.slidesToShow+(e.centerMode?1:0),tf=e=>e.unslick||!e.infinite?0:e.slideCount,ate=e=>e.slideCount===1?1:da(e)+e.slideCount+tf(e),ite=e=>e.targetSlide>e.currentSlide?e.targetSlide>e.currentSlide+lte(e)?"left":"right":e.targetSlide<e.currentSlide-ste(e)?"right":"left",lte=e=>{let{slidesToShow:t,centerMode:n,rtl:r,centerPadding:o}=e;if(n){let a=(t-1)/2+1;return parseInt(o)>0&&(a+=1),r&&t%2===0&&(a+=1),a}return r?0:t-1},ste=e=>{let{slidesToShow:t,centerMode:n,rtl:r,centerPadding:o}=e;if(n){let a=(t-1)/2+1;return parseInt(o)>0&&(a+=1),!r&&t%2===0&&(a+=1),a}return r?t-1:0},u2=()=>!!(typeof window<"u"&&window.document&&window.document.createElement),_h=e=>{let t,n,r,o;e.rtl?o=e.slideCount-1-e.index:o=e.index;const a=o<0||o>=e.slideCount;e.centerMode?(r=Math.floor(e.slidesToShow/2),n=(o-e.currentSlide)%e.slideCount===0,o>e.currentSlide-r-1&&o<=e.currentSlide+r&&(t=!0)):t=e.currentSlide<=o&&o<e.currentSlide+e.slidesToShow;let i;return e.targetSlide<0?i=e.targetSlide+e.slideCount:e.targetSlide>=e.slideCount?i=e.targetSlide-e.slideCount:i=e.targetSlide,{"slick-slide":!0,"slick-active":t,"slick-center":n,"slick-cloned":a,"slick-current":o===i}},ute=function(e){const t={};return(e.variableWidth===void 0||e.variableWidth===!1)&&(t.width=e.slideWidth+(typeof e.slideWidth=="number"?"px":"")),e.fade&&(t.position="relative",e.vertical?t.top=-e.index*parseInt(e.slideHeight)+"px":t.left=-e.index*parseInt(e.slideWidth)+"px",t.opacity=e.currentSlide===e.index?1:0,e.useCSS&&(t.transition="opacity "+e.speed+"ms "+e.cssEase+", visibility "+e.speed+"ms "+e.cssEase)),t},Bh=(e,t)=>e.key+"-"+t,cte=function(e,t){let n;const r=[],o=[],a=[],i=t.length,l=TI(e),s=MI(e);return t.forEach((u,c)=>{let d;const f={message:"children",index:c,slidesToScroll:e.slidesToScroll,currentSlide:e.currentSlide};!e.lazyLoad||e.lazyLoad&&e.lazyLoadedList.indexOf(c)>=0?d=u:d=C("div");const p=ute(E(E({},e),{index:c})),v=d.props.class||"";let m=_h(E(E({},e),{index:c}));if(r.push(vu(d,{key:"original"+Bh(d,c),tabindex:"-1","data-index":c,"aria-hidden":!m["slick-active"],class:ge(m,v),style:E(E({outline:"none"},d.props.style||{}),p),onClick:()=>{e.focusOnSelect&&e.focusOnSelect(f)}})),e.infinite&&e.fade===!1){const h=i-c;h<=da(e)&&i!==e.slidesToShow&&(n=-h,n>=l&&(d=u),m=_h(E(E({},e),{index:n})),o.push(vu(d,{key:"precloned"+Bh(d,n),class:ge(m,v),tabindex:"-1","data-index":n,"aria-hidden":!m["slick-active"],style:E(E({},d.props.style||{}),p),onClick:()=>{e.focusOnSelect&&e.focusOnSelect(f)}}))),i!==e.slidesToShow&&(n=i+c,n<s&&(d=u),m=_h(E(E({},e),{index:n})),a.push(vu(d,{key:"postcloned"+Bh(d,n),tabindex:"-1","data-index":n,"aria-hidden":!m["slick-active"],class:ge(m,v),style:E(E({},d.props.style||{}),p),onClick:()=>{e.focusOnSelect&&e.focusOnSelect(f)}})))}}),e.rtl?o.concat(r,a).reverse():o.concat(r,a)},II=(e,t)=>{let{attrs:n,slots:r}=t;const o=cte(n,Lt(r==null?void 0:r.default())),{onMouseenter:a,onMouseover:i,onMouseleave:l}=n,s={onMouseenter:a,onMouseover:i,onMouseleave:l},u=E({class:"slick-track",style:n.trackStyle},s);return C("div",u,[o])};II.inheritAttrs=!1;const dte=II,fte=function(e){let t;return e.infinite?t=Math.ceil(e.slideCount/e.slidesToScroll):t=Math.ceil((e.slideCount-e.slidesToShow)/e.slidesToScroll)+1,t},_I=(e,t)=>{let{attrs:n}=t;const{slideCount:r,slidesToScroll:o,slidesToShow:a,infinite:i,currentSlide:l,appendDots:s,customPaging:u,clickHandler:c,dotsClass:d,onMouseenter:f,onMouseover:p,onMouseleave:v}=n,m=fte({slideCount:r,slidesToScroll:o,slidesToShow:a,infinite:i}),h={onMouseenter:f,onMouseover:p,onMouseleave:v};let g=[];for(let x=0;x<m;x++){let O=function(A){A&&A.preventDefault(),c(D)},y=(x+1)*o-1,w=i?y:b0(y,0,r-1),b=w-(o-1),S=i?b:b0(b,0,r-1),$=ge({"slick-active":i?l>=S&&l<=w:l===S}),D={message:"dots",index:x,slidesToScroll:o,currentSlide:l};g=g.concat(C("li",{key:x,class:$},[At(u({i:x}),{onClick:O})]))}return At(s({dots:g}),E({class:d},h))};_I.inheritAttrs=!1;const pte=_I;function BI(){}function FI(e,t,n){n&&n.preventDefault(),t(e,n)}const RI=(e,t)=>{let{attrs:n}=t;const{clickHandler:r,infinite:o,currentSlide:a,slideCount:i,slidesToShow:l}=n,s={"slick-arrow":!0,"slick-prev":!0};let u=function(p){FI({message:"previous"},r,p)};!o&&(a===0||i<=l)&&(s["slick-disabled"]=!0,u=BI);const c={key:"0","data-role":"none",class:s,style:{display:"block"},onClick:u},d={currentSlide:a,slideCount:i};let f;return n.prevArrow?f=At(n.prevArrow(E(E({},c),d)),{key:"0",class:s,style:{display:"block"},onClick:u},!1):f=C("button",j({key:"0",type:"button"},c),[" ",sr("Previous")]),f};RI.inheritAttrs=!1;const zI=(e,t)=>{let{attrs:n}=t;const{clickHandler:r,currentSlide:o,slideCount:a}=n,i={"slick-arrow":!0,"slick-next":!0};let l=function(d){FI({message:"next"},r,d)};Ym(n)||(i["slick-disabled"]=!0,l=BI);const s={key:"1","data-role":"none",class:ge(i),style:{display:"block"},onClick:l},u={currentSlide:o,slideCount:a};let c;return n.nextArrow?c=At(n.nextArrow(E(E({},s),u)),{key:"1",class:ge(i),style:{display:"block"},onClick:l},!1):c=C("button",j({key:"1",type:"button"},s),[" ",sr("Next")]),c};zI.inheritAttrs=!1;var mte=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function Or(){}const vte={name:"InnerSlider",mixins:[rl],inheritAttrs:!1,props:E({},OI),data(){this.preProps=E({},this.$props),this.list=null,this.track=null,this.callbackTimers=[],this.clickable=!0,this.debouncedResize=null;const e=this.ssrInit();return E(E(E({},Gee),{currentSlide:this.initialSlide,slideCount:this.children.length}),e)},watch:{__propsSymbol__(){const e=this.$props,t=E(E({listRef:this.list,trackRef:this.track},e),this.$data);let n=!1;for(const r of Object.keys(this.preProps)){if(!e.hasOwnProperty(r)){n=!0;break}if(!(typeof e[r]=="object"||typeof e[r]=="function"||typeof e[r]=="symbol")&&e[r]!==this.preProps[r]){n=!0;break}}this.updateState(t,n,()=>{this.currentSlide>=e.children.length&&this.changeSlide({message:"index",index:e.children.length-e.slidesToShow,currentSlide:this.currentSlide}),!this.preProps.autoplay&&e.autoplay?this.handleAutoPlay("playing"):e.autoplay?this.handleAutoPlay("update"):this.pause("paused")}),this.preProps=E({},e)}},mounted(){if(this.__emit("init"),this.lazyLoad){const e=wp(E(E({},this.$props),this.$data));e.length>0&&(this.setState(t=>({lazyLoadedList:t.lazyLoadedList.concat(e)})),this.__emit("lazyLoad",e))}this.$nextTick(()=>{const e=E({listRef:this.list,trackRef:this.track,children:this.children},this.$props);this.updateState(e,!0,()=>{this.adaptHeight(),this.autoplay&&this.handleAutoPlay("playing")}),this.lazyLoad==="progressive"&&(this.lazyLoadTimer=setInterval(this.progressiveLazyLoad,1e3)),this.ro=new Ky(()=>{this.animating?(this.onWindowResized(!1),this.callbackTimers.push(setTimeout(()=>this.onWindowResized(),this.speed))):this.onWindowResized()}),this.ro.observe(this.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),t=>{t.onfocus=this.$props.pauseOnFocus?this.onSlideFocus:null,t.onblur=this.$props.pauseOnFocus?this.onSlideBlur:null}),window.addEventListener?window.addEventListener("resize",this.onWindowResized):window.attachEvent("onresize",this.onWindowResized)})},beforeUnmount(){var e;this.animationEndCallback&&clearTimeout(this.animationEndCallback),this.lazyLoadTimer&&clearInterval(this.lazyLoadTimer),this.callbackTimers.length&&(this.callbackTimers.forEach(t=>clearTimeout(t)),this.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",this.onWindowResized):window.detachEvent("onresize",this.onWindowResized),this.autoplayTimer&&clearInterval(this.autoplayTimer),(e=this.ro)===null||e===void 0||e.disconnect()},updated(){if(this.checkImagesLoad(),this.__emit("reInit"),this.lazyLoad){const e=wp(E(E({},this.$props),this.$data));e.length>0&&(this.setState(t=>({lazyLoadedList:t.lazyLoadedList.concat(e)})),this.__emit("lazyLoad"))}this.adaptHeight()},methods:{listRefHandler(e){this.list=e},trackRefHandler(e){this.track=e},adaptHeight(){if(this.adaptiveHeight&&this.list){const e=this.list.querySelector(`[data-index="${this.currentSlide}"]`);this.list.style.height=ix(e)+"px"}},onWindowResized(e){this.debouncedResize&&this.debouncedResize.cancel(),this.debouncedResize=e1(()=>this.resizeWindow(e),50),this.debouncedResize()},resizeWindow(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;if(!Boolean(this.track))return;const n=E(E({listRef:this.list,trackRef:this.track,children:this.children},this.$props),this.$data);this.updateState(n,e,()=>{this.autoplay?this.handleAutoPlay("update"):this.pause("paused")}),this.setState({animating:!1}),clearTimeout(this.animationEndCallback),delete this.animationEndCallback},updateState(e,t,n){const r=Zee(e);e=E(E(E({},e),r),{slideIndex:r.currentSlide});const o=Ju(e);e=E(E({},e),{left:o});const a=Zu(e);(t||this.children.length!==e.children.length)&&(r.trackStyle=a),this.setState(r,n)},ssrInit(){const e=this.children;if(this.variableWidth){let s=0,u=0;const c=[],d=da(E(E(E({},this.$props),this.$data),{slideCount:e.length})),f=tf(E(E(E({},this.$props),this.$data),{slideCount:e.length}));e.forEach(v=>{var m,h;const g=((h=(m=v.props.style)===null||m===void 0?void 0:m.width)===null||h===void 0?void 0:h.split("px")[0])||0;c.push(g),s+=g});for(let v=0;v<d;v++)u+=c[c.length-1-v],s+=c[c.length-1-v];for(let v=0;v<f;v++)s+=c[v];for(let v=0;v<this.currentSlide;v++)u+=c[v];const p={width:s+"px",left:-u+"px"};if(this.centerMode){const v=`${c[this.currentSlide]}px`;p.left=`calc(${p.left} + (100% - ${v}) / 2 ) `}return{trackStyle:p}}const t=e.length,n=E(E(E({},this.$props),this.$data),{slideCount:t}),r=da(n)+tf(n)+t,o=100/this.slidesToShow*r,a=100/r;let i=-a*(da(n)+this.currentSlide)*o/100;this.centerMode&&(i+=(100-a*o/100)/2);const l={width:o+"%",left:i+"%"};return{slideWidth:a+"%",trackStyle:l}},checkImagesLoad(){let e=this.list&&this.list.querySelectorAll&&this.list.querySelectorAll(".slick-slide img")||[];const t=e.length;let n=0;Array.prototype.forEach.call(e,r=>{const o=()=>++n&&n>=t&&this.onWindowResized();if(!r.onclick)r.onclick=()=>r.parentNode.focus();else{const a=r.onclick;r.onclick=()=>{a(),r.parentNode.focus()}}r.onload||(this.$props.lazyLoad?r.onload=()=>{this.adaptHeight(),this.callbackTimers.push(setTimeout(this.onWindowResized,this.speed))}:(r.onload=o,r.onerror=()=>{o(),this.__emit("lazyLoadError")}))})},progressiveLazyLoad(){const e=[],t=E(E({},this.$props),this.$data);for(let n=this.currentSlide;n<this.slideCount+tf(t);n++)if(this.lazyLoadedList.indexOf(n)<0){e.push(n);break}for(let n=this.currentSlide-1;n>=-da(t);n--)if(this.lazyLoadedList.indexOf(n)<0){e.push(n);break}e.length>0?(this.setState(n=>({lazyLoadedList:n.lazyLoadedList.concat(e)})),this.__emit("lazyLoad",e)):this.lazyLoadTimer&&(clearInterval(this.lazyLoadTimer),delete this.lazyLoadTimer)},slideHandler(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{asNavFor:n,currentSlide:r,beforeChange:o,speed:a,afterChange:i}=this.$props,{state:l,nextState:s}=Jee(E(E(E({index:e},this.$props),this.$data),{trackRef:this.track,useCSS:this.useCSS&&!t}));if(!l)return;o&&o(r,l.currentSlide);const u=l.lazyLoadedList.filter(c=>this.lazyLoadedList.indexOf(c)<0);this.$attrs.onLazyLoad&&u.length>0&&this.__emit("lazyLoad",u),!this.$props.waitForAnimate&&this.animationEndCallback&&(clearTimeout(this.animationEndCallback),i&&i(r),delete this.animationEndCallback),this.setState(l,()=>{n&&this.asNavForIndex!==e&&(this.asNavForIndex=e,n.innerSlider.slideHandler(e)),s&&(this.animationEndCallback=setTimeout(()=>{const{animating:c}=s,d=mte(s,["animating"]);this.setState(d,()=>{this.callbackTimers.push(setTimeout(()=>this.setState({animating:c}),10)),i&&i(l.currentSlide),delete this.animationEndCallback})},a))})},changeSlide(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const n=E(E({},this.$props),this.$data),r=Qee(n,e);if(!(r!==0&&!r)&&(t===!0?this.slideHandler(r,t):this.slideHandler(r),this.$props.autoplay&&this.handleAutoPlay("update"),this.$props.focusOnSelect)){const o=this.list.querySelectorAll(".slick-current");o[0]&&o[0].focus()}},clickHandler(e){this.clickable===!1&&(e.stopPropagation(),e.preventDefault()),this.clickable=!0},keyHandler(e){const t=ete(e,this.accessibility,this.rtl);t!==""&&this.changeSlide({message:t})},selectHandler(e){this.changeSlide(e)},disableBodyScroll(){const e=t=>{t=t||window.event,t.preventDefault&&t.preventDefault(),t.returnValue=!1};window.ontouchmove=e},enableBodyScroll(){window.ontouchmove=null},swipeStart(e){this.verticalSwiping&&this.disableBodyScroll();const t=tte(e,this.swipe,this.draggable);t!==""&&this.setState(t)},swipeMove(e){const t=nte(e,E(E(E({},this.$props),this.$data),{trackRef:this.track,listRef:this.list,slideIndex:this.currentSlide}));t&&(t.swiping&&(this.clickable=!1),this.setState(t))},swipeEnd(e){const t=rte(e,E(E(E({},this.$props),this.$data),{trackRef:this.track,listRef:this.list,slideIndex:this.currentSlide}));if(!t)return;const n=t.triggerSlideHandler;delete t.triggerSlideHandler,this.setState(t),n!==void 0&&(this.slideHandler(n),this.$props.verticalSwiping&&this.enableBodyScroll())},touchEnd(e){this.swipeEnd(e),this.clickable=!0},slickPrev(){this.callbackTimers.push(setTimeout(()=>this.changeSlide({message:"previous"}),0))},slickNext(){this.callbackTimers.push(setTimeout(()=>this.changeSlide({message:"next"}),0))},slickGoTo(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(e=Number(e),isNaN(e))return"";this.callbackTimers.push(setTimeout(()=>this.changeSlide({message:"index",index:e,currentSlide:this.currentSlide},t),0))},play(){let e;if(this.rtl)e=this.currentSlide-this.slidesToScroll;else if(Ym(E(E({},this.$props),this.$data)))e=this.currentSlide+this.slidesToScroll;else return!1;this.slideHandler(e)},handleAutoPlay(e){this.autoplayTimer&&clearInterval(this.autoplayTimer);const t=this.autoplaying;if(e==="update"){if(t==="hovered"||t==="focused"||t==="paused")return}else if(e==="leave"){if(t==="paused"||t==="focused")return}else if(e==="blur"&&(t==="paused"||t==="hovered"))return;this.autoplayTimer=setInterval(this.play,this.autoplaySpeed+50),this.setState({autoplaying:"playing"})},pause(e){this.autoplayTimer&&(clearInterval(this.autoplayTimer),this.autoplayTimer=null);const t=this.autoplaying;e==="paused"?this.setState({autoplaying:"paused"}):e==="focused"?(t==="hovered"||t==="playing")&&this.setState({autoplaying:"focused"}):t==="playing"&&this.setState({autoplaying:"hovered"})},onDotsOver(){this.autoplay&&this.pause("hovered")},onDotsLeave(){this.autoplay&&this.autoplaying==="hovered"&&this.handleAutoPlay("leave")},onTrackOver(){this.autoplay&&this.pause("hovered")},onTrackLeave(){this.autoplay&&this.autoplaying==="hovered"&&this.handleAutoPlay("leave")},onSlideFocus(){this.autoplay&&this.pause("focused")},onSlideBlur(){this.autoplay&&this.autoplaying==="focused"&&this.handleAutoPlay("blur")},customPaging(e){let{i:t}=e;return C("button",null,[t+1])},appendDots(e){let{dots:t}=e;return C("ul",{style:{display:"block"}},[t])}},render(){const e=ge("slick-slider",this.$attrs.class,{"slick-vertical":this.vertical,"slick-initialized":!0}),t=E(E({},this.$props),this.$data);let n=Ih(t,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]);const{pauseOnHover:r}=this.$props;n=E(E({},n),{focusOnSelect:this.focusOnSelect&&this.clickable?this.selectHandler:null,ref:this.trackRefHandler,onMouseleave:r?this.onTrackLeave:Or,onMouseover:r?this.onTrackOver:Or});let o;if(this.dots===!0&&this.slideCount>=this.slidesToShow){let h=Ih(t,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","infinite","appendDots"]);h.customPaging=this.customPaging,h.appendDots=this.appendDots;const{customPaging:g,appendDots:x}=this.$slots;g&&(h.customPaging=g),x&&(h.appendDots=x);const{pauseOnDotsHover:y}=this.$props;h=E(E({},h),{clickHandler:this.changeSlide,onMouseover:y?this.onDotsOver:Or,onMouseleave:y?this.onDotsLeave:Or}),o=C(pte,h,null)}let a,i;const l=Ih(t,["infinite","centerMode","currentSlide","slideCount","slidesToShow"]);l.clickHandler=this.changeSlide;const{prevArrow:s,nextArrow:u}=this.$slots;s&&(l.prevArrow=s),u&&(l.nextArrow=u),this.arrows&&(a=C(RI,l,null),i=C(zI,l,null));let c=null;this.vertical&&(c={height:typeof this.listHeight=="number"?`${this.listHeight}px`:this.listHeight});let d=null;this.vertical===!1?this.centerMode===!0&&(d={padding:"0px "+this.centerPadding}):this.centerMode===!0&&(d={padding:this.centerPadding+" 0px"});const f=E(E({},c),d),p=this.touchMove;let v={ref:this.listRefHandler,class:"slick-list",style:f,onClick:this.clickHandler,onMousedown:p?this.swipeStart:Or,onMousemove:this.dragging&&p?this.swipeMove:Or,onMouseup:p?this.swipeEnd:Or,onMouseleave:this.dragging&&p?this.swipeEnd:Or,[An?"onTouchstartPassive":"onTouchstart"]:p?this.swipeStart:Or,[An?"onTouchmovePassive":"onTouchmove"]:this.dragging&&p?this.swipeMove:Or,onTouchend:p?this.touchEnd:Or,onTouchcancel:this.dragging&&p?this.swipeEnd:Or,onKeydown:this.accessibility?this.keyHandler:Or},m={class:e,dir:"ltr",style:this.$attrs.style};return this.unslick&&(v={class:"slick-list",ref:this.listRefHandler},m={class:e}),C("div",m,[this.unslick?"":a,C("div",v,[C(dte,n,{default:()=>[this.children]})]),this.unslick?"":i,this.unslick?"":o])}},hte=he({name:"Slider",mixins:[rl],inheritAttrs:!1,props:E({},OI),data(){return this._responsiveMediaHandlers=[],{breakpoint:null}},mounted(){if(this.responsive){const e=this.responsive.map(n=>n.breakpoint);e.sort((n,r)=>n-r),e.forEach((n,r)=>{let o;r===0?o=Ph({minWidth:0,maxWidth:n}):o=Ph({minWidth:e[r-1]+1,maxWidth:n}),u2()&&this.media(o,()=>{this.setState({breakpoint:n})})});const t=Ph({minWidth:e.slice(-1)[0]});u2()&&this.media(t,()=>{this.setState({breakpoint:null})})}},beforeUnmount(){this._responsiveMediaHandlers.forEach(function(e){e.mql.removeListener(e.listener)})},methods:{innerSliderRefHandler(e){this.innerSlider=e},media(e,t){const n=window.matchMedia(e),r=o=>{let{matches:a}=o;a&&t()};n.addListener(r),r(n),this._responsiveMediaHandlers.push({mql:n,query:e,listener:r})},slickPrev(){var e;(e=this.innerSlider)===null||e===void 0||e.slickPrev()},slickNext(){var e;(e=this.innerSlider)===null||e===void 0||e.slickNext()},slickGoTo(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;var n;(n=this.innerSlider)===null||n===void 0||n.slickGoTo(e,t)},slickPause(){var e;(e=this.innerSlider)===null||e===void 0||e.pause("paused")},slickPlay(){var e;(e=this.innerSlider)===null||e===void 0||e.handleAutoPlay("play")}},render(){var e;let t,n;this.breakpoint?(n=this.responsive.filter(l=>l.breakpoint===this.breakpoint),t=n[0].settings==="unslick"?"unslick":E(E({},this.$props),n[0].settings)):t=E({},this.$props),t.centerMode&&(t.slidesToScroll>1,t.slidesToScroll=1),t.fade&&(t.slidesToShow>1,t.slidesToScroll>1,t.slidesToShow=1,t.slidesToScroll=1);let r=am(this)||[];r=r.filter(l=>typeof l=="string"?!!l.trim():!!l),t.variableWidth&&(t.rows>1||t.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),t.variableWidth=!1);const o=[];let a=null;for(let l=0;l<r.length;l+=t.rows*t.slidesPerRow){const s=[];for(let u=l;u<l+t.rows*t.slidesPerRow;u+=t.slidesPerRow){const c=[];for(let d=u;d<u+t.slidesPerRow&&(t.variableWidth&&(!((e=r[d].props)===null||e===void 0)&&e.style)&&(a=r[d].props.style.width),!(d>=r.length));d+=1)c.push(At(r[d],{key:100*l+10*u+d,tabindex:-1,style:{width:`${100/t.slidesPerRow}%`,display:"inline-block"}}));s.push(C("div",{key:10*l+u},[c]))}t.variableWidth?o.push(C("div",{key:l,style:{width:a}},[s])):o.push(C("div",{key:l},[s]))}if(t==="unslick"){const l="regular slider "+(this.className||"");return C("div",{class:l},[r])}else o.length<=t.slidesToShow&&(t.unslick=!0);const i=E(E(E({},this.$attrs),t),{children:o,ref:this.innerSliderRefHandler});return C(vte,j(j({},i),{},{__propsSymbol__:[]}),this.$slots)}}),gte=e=>{const{componentCls:t,antCls:n,carouselArrowSize:r,carouselDotOffset:o,marginXXS:a}=e,i=-r*1.25,l=a;return{[t]:E(E({},rt(e)),{".slick-slider":{position:"relative",display:"block",boxSizing:"border-box",touchAction:"pan-y",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",".slick-track, .slick-list":{transform:"translate3d(0, 0, 0)",touchAction:"pan-y"}},".slick-list":{position:"relative",display:"block",margin:0,padding:0,overflow:"hidden","&:focus":{outline:"none"},"&.dragging":{cursor:"pointer"},".slick-slide":{pointerEvents:"none",[`input${n}-radio-input, input${n}-checkbox-input`]:{visibility:"hidden"},"&.slick-active":{pointerEvents:"auto",[`input${n}-radio-input, input${n}-checkbox-input`]:{visibility:"visible"}},"> div > div":{verticalAlign:"bottom"}}},".slick-track":{position:"relative",top:0,insetInlineStart:0,display:"block","&::before, &::after":{display:"table",content:'""'},"&::after":{clear:"both"}},".slick-slide":{display:"none",float:"left",height:"100%",minHeight:1,img:{display:"block"},"&.dragging img":{pointerEvents:"none"}},".slick-initialized .slick-slide":{display:"block"},".slick-vertical .slick-slide":{display:"block",height:"auto"},".slick-arrow.slick-hidden":{display:"none"},".slick-prev, .slick-next":{position:"absolute",top:"50%",display:"block",width:r,height:r,marginTop:-r/2,padding:0,color:"transparent",fontSize:0,lineHeight:0,background:"transparent",border:0,outline:"none",cursor:"pointer","&:hover, &:focus":{color:"transparent",background:"transparent",outline:"none","&::before":{opacity:1}},"&.slick-disabled::before":{opacity:.25}},".slick-prev":{insetInlineStart:i,"&::before":{content:'"←"'}},".slick-next":{insetInlineEnd:i,"&::before":{content:'"→"'}},".slick-dots":{position:"absolute",insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:15,display:"flex !important",justifyContent:"center",paddingInlineStart:0,listStyle:"none","&-bottom":{bottom:o},"&-top":{top:o,bottom:"auto"},li:{position:"relative",display:"inline-block",flex:"0 1 auto",boxSizing:"content-box",width:e.dotWidth,height:e.dotHeight,marginInline:l,padding:0,textAlign:"center",textIndent:-999,verticalAlign:"top",transition:`all ${e.motionDurationSlow}`,button:{position:"relative",display:"block",width:"100%",height:e.dotHeight,padding:0,color:"transparent",fontSize:0,background:e.colorBgContainer,border:0,borderRadius:1,outline:"none",cursor:"pointer",opacity:.3,transition:`all ${e.motionDurationSlow}`,"&: hover, &:focus":{opacity:.75},"&::after":{position:"absolute",inset:-l,content:'""'}},"&.slick-active":{width:e.dotWidthActive,"& button":{background:e.colorBgContainer,opacity:1},"&: hover, &:focus":{opacity:1}}}}})}},yte=e=>{const{componentCls:t,carouselDotOffset:n,marginXXS:r}=e,o={width:e.dotHeight,height:e.dotWidth};return{[`${t}-vertical`]:{".slick-dots":{top:"50%",bottom:"auto",flexDirection:"column",width:e.dotHeight,height:"auto",margin:0,transform:"translateY(-50%)","&-left":{insetInlineEnd:"auto",insetInlineStart:n},"&-right":{insetInlineEnd:n,insetInlineStart:"auto"},li:E(E({},o),{margin:`${r}px 0`,verticalAlign:"baseline",button:o,"&.slick-active":E(E({},o),{button:o})})}}}},bte=e=>{const{componentCls:t}=e;return[{[`${t}-rtl`]:{direction:"rtl",".slick-dots":{[`${t}-rtl&`]:{flexDirection:"row-reverse"}}}},{[`${t}-vertical`]:{".slick-dots":{[`${t}-rtl&`]:{flexDirection:"column"}}}}]},xte=nt("Carousel",e=>{const{controlHeightLG:t,controlHeightSM:n}=e,r=qe(e,{carouselArrowSize:t/2,carouselDotOffset:n/2});return[gte(r),yte(r),bte(r)]},{dotWidth:16,dotHeight:3,dotWidthActive:24});var wte=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Ste=()=>({effect:Ue(),dots:Pe(!0),vertical:Pe(),autoplay:Pe(),easing:String,beforeChange:Oe(),afterChange:Oe(),prefixCls:String,accessibility:Pe(),nextArrow:Z.any,prevArrow:Z.any,pauseOnHover:Pe(),adaptiveHeight:Pe(),arrows:Pe(!1),autoplaySpeed:Number,centerMode:Pe(),centerPadding:String,cssEase:String,dotsClass:String,draggable:Pe(!1),fade:Pe(),focusOnSelect:Pe(),infinite:Pe(),initialSlide:Number,lazyLoad:Ue(),rtl:Pe(),slide:String,slidesToShow:Number,slidesToScroll:Number,speed:Number,swipe:Pe(),swipeToSlide:Pe(),swipeEvent:Oe(),touchMove:Pe(),touchThreshold:Number,variableWidth:Pe(),useCSS:Pe(),slickGoTo:Number,responsive:Array,dotPosition:Ue(),verticalSwiping:Pe(!1)}),Cte=he({compatConfig:{MODE:3},name:"ACarousel",inheritAttrs:!1,props:Ste(),setup(e,t){let{slots:n,attrs:r,expose:o}=t;const a=be();o({goTo:function(v){let m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;var h;(h=a.value)===null||h===void 0||h.slickGoTo(v,m)},autoplay:v=>{var m,h;(h=(m=a.value)===null||m===void 0?void 0:m.innerSlider)===null||h===void 0||h.handleAutoPlay(v)},prev:()=>{var v;(v=a.value)===null||v===void 0||v.slickPrev()},next:()=>{var v;(v=a.value)===null||v===void 0||v.slickNext()},innerSlider:z(()=>{var v;return(v=a.value)===null||v===void 0?void 0:v.innerSlider})}),Je(()=>{Jt(e.vertical===void 0)});const{prefixCls:l,direction:s}=He("carousel",e),[u,c]=xte(l),d=z(()=>e.dotPosition?e.dotPosition:e.vertical!==void 0&&e.vertical?"right":"bottom"),f=z(()=>d.value==="left"||d.value==="right"),p=z(()=>{const v="slick-dots";return ge({[v]:!0,[`${v}-${d.value}`]:!0,[`${e.dotsClass}`]:!!e.dotsClass})});return()=>{const{dots:v,arrows:m,draggable:h,effect:g}=e,{class:x,style:y}=r,w=wte(r,["class","style"]),b=g==="fade"?!0:e.fade,S=ge(l.value,{[`${l.value}-rtl`]:s.value==="rtl",[`${l.value}-vertical`]:f.value,[`${x}`]:!!x},c.value);return u(C("div",{class:S,style:y},[C(hte,j(j(j({ref:a},e),w),{},{dots:!!v,dotsClass:p.value,arrows:m,draggable:h,fade:b,vertical:f.value}),n)]))}}}),$te=rn(Cte),sx="__RC_CASCADER_SPLIT__",LI="SHOW_PARENT",kI="SHOW_CHILD";function ei(e){return e.join(sx)}function Rl(e){return e.map(ei)}function Ete(e){return e.split(sx)}function Dte(e){const{label:t,value:n,children:r}=e||{},o=n||"value";return{label:t||"label",value:o,key:o,children:r||"children"}}function iu(e,t){var n,r;return(n=e.isLeaf)!==null&&n!==void 0?n:!(!((r=e[t.children])===null||r===void 0)&&r.length)}function Ate(e){const t=e.parentElement;if(!t)return;const n=e.offsetTop-t.offsetTop;n-t.scrollTop<0?t.scrollTo({top:n}):n+e.offsetHeight-t.scrollTop>t.offsetHeight&&t.scrollTo({top:n+e.offsetHeight-t.offsetHeight})}const HI=Symbol("TreeContextKey"),Ote=he({compatConfig:{MODE:3},name:"TreeContext",props:{value:{type:Object}},setup(e,t){let{slots:n}=t;return it(HI,z(()=>e.value)),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}}),ux=()=>lt(HI,z(()=>({}))),jI=Symbol("KeysStateKey"),Tte=e=>{it(jI,e)},VI=()=>lt(jI,{expandedKeys:pe([]),selectedKeys:pe([]),loadedKeys:pe([]),loadingKeys:pe([]),checkedKeys:pe([]),halfCheckedKeys:pe([]),expandedKeysSet:z(()=>new Set),selectedKeysSet:z(()=>new Set),loadedKeysSet:z(()=>new Set),loadingKeysSet:z(()=>new Set),checkedKeysSet:z(()=>new Set),halfCheckedKeysSet:z(()=>new Set),flattenNodes:pe([])}),Mte=e=>{let{prefixCls:t,level:n,isStart:r,isEnd:o}=e;const a=`${t}-indent-unit`,i=[];for(let l=0;l<n;l+=1)i.push(C("span",{key:l,class:{[a]:!0,[`${a}-start`]:r[l],[`${a}-end`]:o[l]}},null));return C("span",{"aria-hidden":"true",class:`${t}-indent`},[i])},Nte=Mte,WI={eventKey:[String,Number],prefixCls:String,title:Z.any,data:{type:Object,default:void 0},parent:{type:Object,default:void 0},isStart:{type:Array},isEnd:{type:Array},active:{type:Boolean,default:void 0},onMousemove:{type:Function},isLeaf:{type:Boolean,default:void 0},checkable:{type:Boolean,default:void 0},selectable:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},disableCheckbox:{type:Boolean,default:void 0},icon:Z.any,switcherIcon:Z.any,domRef:{type:Function}},Pte={prefixCls:{type:String},motion:{type:Object},focusable:{type:Boolean},activeItem:{type:Object},focused:{type:Boolean},tabindex:{type:Number},checkable:{type:Boolean},selectable:{type:Boolean},disabled:{type:Boolean},height:{type:Number},itemHeight:{type:Number},virtual:{type:Boolean},onScroll:{type:Function},onKeydown:{type:Function},onFocus:{type:Function},onBlur:{type:Function},onActiveChange:{type:Function},onContextmenu:{type:Function},onListChangeStart:{type:Function},onListChangeEnd:{type:Function}},UI=()=>({prefixCls:String,focusable:{type:Boolean,default:void 0},activeKey:[Number,String],tabindex:Number,children:Z.any,treeData:{type:Array},fieldNames:{type:Object},showLine:{type:[Boolean,Object],default:void 0},showIcon:{type:Boolean,default:void 0},icon:Z.any,selectable:{type:Boolean,default:void 0},expandAction:[String,Boolean],disabled:{type:Boolean,default:void 0},multiple:{type:Boolean,default:void 0},checkable:{type:Boolean,default:void 0},checkStrictly:{type:Boolean,default:void 0},draggable:{type:[Function,Boolean]},defaultExpandParent:{type:Boolean,default:void 0},autoExpandParent:{type:Boolean,default:void 0},defaultExpandAll:{type:Boolean,default:void 0},defaultExpandedKeys:{type:Array},expandedKeys:{type:Array},defaultCheckedKeys:{type:Array},checkedKeys:{type:[Object,Array]},defaultSelectedKeys:{type:Array},selectedKeys:{type:Array},allowDrop:{type:Function},dropIndicatorRender:{type:Function},onFocus:{type:Function},onBlur:{type:Function},onKeydown:{type:Function},onContextmenu:{type:Function},onClick:{type:Function},onDblclick:{type:Function},onScroll:{type:Function},onExpand:{type:Function},onCheck:{type:Function},onSelect:{type:Function},onLoad:{type:Function},loadData:{type:Function},loadedKeys:{type:Array},onMouseenter:{type:Function},onMouseleave:{type:Function},onRightClick:{type:Function},onDragstart:{type:Function},onDragenter:{type:Function},onDragover:{type:Function},onDragleave:{type:Function},onDragend:{type:Function},onDrop:{type:Function},onActiveChange:{type:Function},filterTreeNode:{type:Function},motion:Z.any,switcherIcon:Z.any,height:Number,itemHeight:Number,virtual:{type:Boolean,default:void 0},direction:{type:String},rootClassName:String,rootStyle:Object});var Ite=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const c2="open",d2="close",_te="---",w0=he({compatConfig:{MODE:3},name:"ATreeNode",inheritAttrs:!1,props:WI,isTreeNode:1,setup(e,t){let{attrs:n,slots:r,expose:o}=t;"slots"in e.data,`${Object.keys(e.data.slots||{}).map(oe=>"`v-slot:"+oe+"` ")}`;const a=pe(!1),i=ux(),{expandedKeysSet:l,selectedKeysSet:s,loadedKeysSet:u,loadingKeysSet:c,checkedKeysSet:d,halfCheckedKeysSet:f}=VI(),{dragOverNodeKey:p,dropPosition:v,keyEntities:m}=i.value,h=z(()=>nf(e.eventKey,{expandedKeysSet:l.value,selectedKeysSet:s.value,loadedKeysSet:u.value,loadingKeysSet:c.value,checkedKeysSet:d.value,halfCheckedKeysSet:f.value,dragOverNodeKey:p,dropPosition:v,keyEntities:m})),g=Pr(()=>h.value.expanded),x=Pr(()=>h.value.selected),y=Pr(()=>h.value.checked),w=Pr(()=>h.value.loaded),b=Pr(()=>h.value.loading),S=Pr(()=>h.value.halfChecked),$=Pr(()=>h.value.dragOver),D=Pr(()=>h.value.dragOverGapTop),O=Pr(()=>h.value.dragOverGapBottom),A=Pr(()=>h.value.pos),T=pe(),M=z(()=>{const{eventKey:oe}=e,{keyEntities:ie}=i.value,{children:ve}=ie[oe]||{};return!!(ve||[]).length}),B=z(()=>{const{isLeaf:oe}=e,{loadData:ie}=i.value,ve=M.value;return oe===!1?!1:oe||!ie&&!ve||ie&&w.value&&!ve}),F=z(()=>B.value?null:g.value?c2:d2),P=z(()=>{const{disabled:oe}=e,{disabled:ie}=i.value;return!!(ie||oe)}),I=z(()=>{const{checkable:oe}=e,{checkable:ie}=i.value;return!ie||oe===!1?!1:ie}),N=z(()=>{const{selectable:oe}=e,{selectable:ie}=i.value;return typeof oe=="boolean"?oe:ie}),R=z(()=>{const{data:oe,active:ie,checkable:ve,disableCheckbox:we,disabled:$e,selectable:Ae}=e;return E(E({active:ie,checkable:ve,disableCheckbox:we,disabled:$e,selectable:Ae},oe),{dataRef:oe,data:oe,isLeaf:B.value,checked:y.value,expanded:g.value,loading:b.value,selected:x.value,halfChecked:S.value})}),_=Kn(),L=z(()=>{const{eventKey:oe}=e,{keyEntities:ie}=i.value,{parent:ve}=ie[oe]||{};return E(E({},rf(E({},e,h.value))),{parent:ve})}),k=_t({eventData:L,eventKey:z(()=>e.eventKey),selectHandle:T,pos:A,key:_.vnode.key});o(k);const H=oe=>{const{onNodeDoubleClick:ie}=i.value;ie(oe,L.value)},V=oe=>{if(P.value)return;const{onNodeSelect:ie}=i.value;oe.preventDefault(),ie(oe,L.value)},U=oe=>{if(P.value)return;const{disableCheckbox:ie}=e,{onNodeCheck:ve}=i.value;if(!I.value||ie)return;oe.preventDefault();const we=!y.value;ve(oe,L.value,we)},q=oe=>{const{onNodeClick:ie}=i.value;ie(oe,L.value),N.value?V(oe):U(oe)},K=oe=>{const{onNodeMouseEnter:ie}=i.value;ie(oe,L.value)},X=oe=>{const{onNodeMouseLeave:ie}=i.value;ie(oe,L.value)},re=oe=>{const{onNodeContextMenu:ie}=i.value;ie(oe,L.value)},ee=oe=>{const{onNodeDragStart:ie}=i.value;oe.stopPropagation(),a.value=!0,ie(oe,k);try{oe.dataTransfer.setData("text/plain","")}catch{}},G=oe=>{const{onNodeDragEnter:ie}=i.value;oe.preventDefault(),oe.stopPropagation(),ie(oe,k)},le=oe=>{const{onNodeDragOver:ie}=i.value;oe.preventDefault(),oe.stopPropagation(),ie(oe,k)},ue=oe=>{const{onNodeDragLeave:ie}=i.value;oe.stopPropagation(),ie(oe,k)},me=oe=>{const{onNodeDragEnd:ie}=i.value;oe.stopPropagation(),a.value=!1,ie(oe,k)},Se=oe=>{const{onNodeDrop:ie}=i.value;oe.preventDefault(),oe.stopPropagation(),a.value=!1,ie(oe,k)},Q=oe=>{const{onNodeExpand:ie}=i.value;b.value||ie(oe,L.value)},te=()=>{const{data:oe}=e,{draggable:ie}=i.value;return!!(ie&&(!ie.nodeDraggable||ie.nodeDraggable(oe)))},de=()=>{const{draggable:oe,prefixCls:ie}=i.value;return oe&&(oe!=null&&oe.icon)?C("span",{class:`${ie}-draggable-icon`},[oe.icon]):null},Y=()=>{var oe,ie,ve;const{switcherIcon:we=r.switcherIcon||((oe=i.value.slots)===null||oe===void 0?void 0:oe[(ve=(ie=e.data)===null||ie===void 0?void 0:ie.slots)===null||ve===void 0?void 0:ve.switcherIcon])}=e,{switcherIcon:$e}=i.value,Ae=we||$e;return typeof Ae=="function"?Ae(R.value):Ae},ae=()=>{const{loadData:oe,onNodeLoad:ie}=i.value;b.value||oe&&g.value&&!B.value&&!M.value&&!w.value&&ie(L.value)};Qe(()=>{ae()}),Sr(()=>{ae()});const ce=()=>{const{prefixCls:oe}=i.value,ie=Y();if(B.value)return ie!==!1?C("span",{class:ge(`${oe}-switcher`,`${oe}-switcher-noop`)},[ie]):null;const ve=ge(`${oe}-switcher`,`${oe}-switcher_${g.value?c2:d2}`);return ie!==!1?C("span",{onClick:Q,class:ve},[ie]):null},Ce=()=>{var oe,ie;const{disableCheckbox:ve}=e,{prefixCls:we}=i.value,$e=P.value;return I.value?C("span",{class:ge(`${we}-checkbox`,y.value&&`${we}-checkbox-checked`,!y.value&&S.value&&`${we}-checkbox-indeterminate`,($e||ve)&&`${we}-checkbox-disabled`),onClick:U},[(ie=(oe=i.value).customCheckable)===null||ie===void 0?void 0:ie.call(oe)]):null},ye=()=>{const{prefixCls:oe}=i.value;return C("span",{class:ge(`${oe}-iconEle`,`${oe}-icon__${F.value||"docu"}`,b.value&&`${oe}-icon_loading`)},null)},J=()=>{const{disabled:oe,eventKey:ie}=e,{draggable:ve,dropLevelOffset:we,dropPosition:$e,prefixCls:Ae,indent:xe,dropIndicatorRender:Ee,dragOverNodeKey:Te,direction:Me}=i.value;return!oe&&ve!==!1&&Te===ie?Ee({dropPosition:$e,dropLevelOffset:we,indent:xe,prefixCls:Ae,direction:Me}):null},ne=()=>{var oe,ie,ve,we,$e,Ae;const{icon:xe=r.icon,data:Ee}=e,Te=r.title||((oe=i.value.slots)===null||oe===void 0?void 0:oe[(ve=(ie=e.data)===null||ie===void 0?void 0:ie.slots)===null||ve===void 0?void 0:ve.title])||((we=i.value.slots)===null||we===void 0?void 0:we.title)||e.title,{prefixCls:Me,showIcon:ze,icon:Be,loadData:je}=i.value,W=P.value,fe=`${Me}-node-content-wrapper`;let De;if(ze){const Ge=xe||(($e=i.value.slots)===null||$e===void 0?void 0:$e[(Ae=Ee==null?void 0:Ee.slots)===null||Ae===void 0?void 0:Ae.icon])||Be;De=Ge?C("span",{class:ge(`${Me}-iconEle`,`${Me}-icon__customize`)},[typeof Ge=="function"?Ge(R.value):Ge]):ye()}else je&&b.value&&(De=ye());let Ie;typeof Te=="function"?Ie=Te(R.value):Ie=Te,Ie=Ie===void 0?_te:Ie;const Ve=C("span",{class:`${Me}-title`},[Ie]);return C("span",{ref:T,title:typeof Te=="string"?Te:"",class:ge(`${fe}`,`${fe}-${F.value||"normal"}`,!W&&(x.value||a.value)&&`${Me}-node-selected`),onMouseenter:K,onMouseleave:X,onContextmenu:re,onClick:q,onDblclick:H},[De,Ve,J()])};return()=>{const oe=E(E({},e),n),{eventKey:ie,isLeaf:ve,isStart:we,isEnd:$e,domRef:Ae,active:xe,data:Ee,onMousemove:Te,selectable:Me}=oe,ze=Ite(oe,["eventKey","isLeaf","isStart","isEnd","domRef","active","data","onMousemove","selectable"]),{prefixCls:Be,filterTreeNode:je,keyEntities:W,dropContainerKey:fe,dropTargetKey:De,draggingNodeKey:Ie}=i.value,Ve=P.value,Ge=ci(ze,{aria:!0,data:!0}),{level:Ct}=W[ie]||{},Nt=$e[$e.length-1],Wt=te(),fn=!Ve&&Wt,Ln=Ie===ie,Er=Me!==void 0?{"aria-selected":!!Me}:void 0;return C("div",j(j({ref:Ae,class:ge(n.class,`${Be}-treenode`,{[`${Be}-treenode-disabled`]:Ve,[`${Be}-treenode-switcher-${g.value?"open":"close"}`]:!ve,[`${Be}-treenode-checkbox-checked`]:y.value,[`${Be}-treenode-checkbox-indeterminate`]:S.value,[`${Be}-treenode-selected`]:x.value,[`${Be}-treenode-loading`]:b.value,[`${Be}-treenode-active`]:xe,[`${Be}-treenode-leaf-last`]:Nt,[`${Be}-treenode-draggable`]:fn,dragging:Ln,"drop-target":De===ie,"drop-container":fe===ie,"drag-over":!Ve&&$.value,"drag-over-gap-top":!Ve&&D.value,"drag-over-gap-bottom":!Ve&&O.value,"filter-node":je&&je(L.value)}),style:n.style,draggable:fn,"aria-grabbed":Ln,onDragstart:fn?ee:void 0,onDragenter:Wt?G:void 0,onDragover:Wt?le:void 0,onDragleave:Wt?ue:void 0,onDrop:Wt?Se:void 0,onDragend:Wt?me:void 0,onMousemove:Te},Er),Ge),[C(Nte,{prefixCls:Be,level:Ct,isStart:we,isEnd:$e},null),de(),ce(),Ce(),ne()])}}});globalThis&&globalThis.__rest;function No(e,t){if(!e)return[];const n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function na(e,t){const n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function cx(e){return e.split("-")}function KI(e,t){return`${e}-${t}`}function Bte(e){return e&&e.type&&e.type.isTreeNode}function Fte(e,t){const n=[],r=t[e];function o(){(arguments.length>0&&arguments[0]!==void 0?arguments[0]:[]).forEach(i=>{let{key:l,children:s}=i;n.push(l),o(s)})}return o(r.children),n}function Rte(e){if(e.parent){const t=cx(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function zte(e){const t=cx(e.pos);return Number(t[t.length-1])===0}function f2(e,t,n,r,o,a,i,l,s,u){var c;const{clientX:d,clientY:f}=e,{top:p,height:v}=e.target.getBoundingClientRect(),h=((u==="rtl"?-1:1)*(((o==null?void 0:o.x)||0)-d)-12)/r;let g=l[n.eventKey];if(f<p+v/2){const A=i.findIndex(B=>B.key===g.key),T=A<=0?0:A-1,M=i[T].key;g=l[M]}const x=g.key,y=g,w=g.key;let b=0,S=0;if(!s.has(x))for(let A=0;A<h&&Rte(g);A+=1)g=g.parent,S+=1;const $=t.eventData,D=g.node;let O=!0;return zte(g)&&g.level===0&&f<p+v/2&&a({dragNode:$,dropNode:D,dropPosition:-1})&&g.key===n.eventKey?b=-1:(y.children||[]).length&&s.has(w)?a({dragNode:$,dropNode:D,dropPosition:0})?b=0:O=!1:S===0?h>-1.5?a({dragNode:$,dropNode:D,dropPosition:1})?b=1:O=!1:a({dragNode:$,dropNode:D,dropPosition:0})?b=0:a({dragNode:$,dropNode:D,dropPosition:1})?b=1:O=!1:a({dragNode:$,dropNode:D,dropPosition:1})?b=1:O=!1,{dropPosition:b,dropLevelOffset:S,dropTargetKey:g.key,dropTargetPos:g.pos,dragOverNodeKey:w,dropContainerKey:b===0?null:((c=g.parent)===null||c===void 0?void 0:c.key)||null,dropAllowed:O}}function p2(e,t){if(!e)return;const{multiple:n}=t;return n?e.slice():e.length?[e[0]]:e}function Fh(e){if(!e)return null;let t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(typeof e=="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return null;return t}function S0(e,t){const n=new Set;function r(o){if(n.has(o))return;const a=t[o];if(!a)return;n.add(o);const{parent:i,node:l}=a;l.disabled||i&&r(i.key)}return(e||[]).forEach(o=>{r(o)}),[...n]}var Lte=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function Cc(e,t){return e??t}function Zm(e){const{title:t,_title:n,key:r,children:o}=e||{},a=t||"title";return{title:a,_title:n||[a],key:r||"key",children:o||"children"}}function C0(e){function t(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return nn(n).map(o=>{var a,i,l,s;if(!Bte(o))return null;const u=o.children||{},c=o.key,d={};for(const[A,T]of Object.entries(o.props))d[Zi(A)]=T;const{isLeaf:f,checkable:p,selectable:v,disabled:m,disableCheckbox:h}=d,g={isLeaf:f||f===""||void 0,checkable:p||p===""||void 0,selectable:v||v===""||void 0,disabled:m||m===""||void 0,disableCheckbox:h||h===""||void 0},x=E(E({},d),g),{title:y=(a=u.title)===null||a===void 0?void 0:a.call(u,x),icon:w=(i=u.icon)===null||i===void 0?void 0:i.call(u,x),switcherIcon:b=(l=u.switcherIcon)===null||l===void 0?void 0:l.call(u,x)}=d,S=Lte(d,["title","icon","switcherIcon"]),$=(s=u.default)===null||s===void 0?void 0:s.call(u),D=E(E(E({},S),{title:y,icon:w,switcherIcon:b,key:c,isLeaf:f}),g),O=t($);return O.length&&(D.children=O),D})}return t(e)}function kte(e,t,n){const{_title:r,key:o,children:a}=Zm(n),i=new Set(t===!0?[]:t),l=[];function s(u){let c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return u.map((d,f)=>{const p=KI(c?c.pos:"0",f),v=Cc(d[o],p);let m;for(let g=0;g<r.length;g+=1){const x=r[g];if(d[x]!==void 0){m=d[x];break}}const h=E(E({},pt(d,[...r,o,a])),{title:m,key:v,parent:c,pos:p,children:null,data:d,isStart:[...c?c.isStart:[],f===0],isEnd:[...c?c.isEnd:[],f===u.length-1]});return l.push(h),t===!0||i.has(v)?h.children=s(d[a]||[],h):h.children=[],h})}return s(e),l}function Hte(e,t,n){let r={};typeof n=="object"?r=n:r={externalGetKey:n},r=r||{};const{childrenPropName:o,externalGetKey:a,fieldNames:i}=r,{key:l,children:s}=Zm(i),u=o||s;let c;a?typeof a=="string"?c=f=>f[a]:typeof a=="function"&&(c=f=>a(f)):c=(f,p)=>Cc(f[l],p);function d(f,p,v,m){const h=f?f[u]:e,g=f?KI(v.pos,p):"0",x=f?[...m,f]:[];if(f){const y=c(f,g),w={node:f,index:p,pos:g,key:y,parentPos:v.node?v.pos:null,level:v.level+1,nodes:x};t(w)}h&&h.forEach((y,w)=>{d(y,w,{node:f,pos:g,level:v?v.level+1:-1},x)})}d(null)}function $c(e){let{initWrapper:t,processEntity:n,onProcessFinished:r,externalGetKey:o,childrenPropName:a,fieldNames:i}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=arguments.length>2?arguments[2]:void 0;const s=o||l,u={},c={};let d={posEntities:u,keyEntities:c};return t&&(d=t(d)||d),Hte(e,f=>{const{node:p,index:v,pos:m,key:h,parentPos:g,level:x,nodes:y}=f,w={node:p,nodes:y,index:v,key:h,pos:m,level:x},b=Cc(h,m);u[m]=w,c[b]=w,w.parent=u[g],w.parent&&(w.parent.children=w.parent.children||[],w.parent.children.push(w)),n&&n(w,d)},{externalGetKey:s,childrenPropName:a,fieldNames:i}),r&&r(d),d}function nf(e,t){let{expandedKeysSet:n,selectedKeysSet:r,loadedKeysSet:o,loadingKeysSet:a,checkedKeysSet:i,halfCheckedKeysSet:l,dragOverNodeKey:s,dropPosition:u,keyEntities:c}=t;const d=c[e];return{eventKey:e,expanded:n.has(e),selected:r.has(e),loaded:o.has(e),loading:a.has(e),checked:i.has(e),halfChecked:l.has(e),pos:String(d?d.pos:""),parent:d.parent,dragOver:s===e&&u===0,dragOverGapTop:s===e&&u===-1,dragOverGapBottom:s===e&&u===1}}function rf(e){const{data:t,expanded:n,selected:r,checked:o,loaded:a,loading:i,halfChecked:l,dragOver:s,dragOverGapTop:u,dragOverGapBottom:c,pos:d,active:f,eventKey:p}=e,v=E(E({dataRef:t},t),{expanded:n,selected:r,checked:o,loaded:a,loading:i,halfChecked:l,dragOver:s,dragOverGapTop:u,dragOverGapBottom:c,pos:d,active:f,eventKey:p,key:p});return"props"in v||Object.defineProperty(v,"props",{get(){return e}}),v}const jte=(e,t)=>z(()=>$c(e.value,{fieldNames:t.value,initWrapper:r=>E(E({},r),{pathKeyEntities:{}}),processEntity:(r,o)=>{const a=r.nodes.map(i=>i[t.value.value]).join(sx);o.pathKeyEntities[a]=r,r.key=a}}).pathKeyEntities);function Vte(e){const t=pe(!1),n=be({});return Je(()=>{if(!e.value){t.value=!1,n.value={};return}let r={matchInputWidth:!0,limit:50};e.value&&typeof e.value=="object"&&(r=E(E({},r),e.value)),r.limit<=0&&delete r.limit,t.value=!0,n.value=r}),{showSearch:t,searchConfig:n}}const wu="__rc_cascader_search_mark__",Wte=(e,t,n)=>{let{label:r}=n;return t.some(o=>String(o[r]).toLowerCase().includes(e.toLowerCase()))},Ute=e=>{let{path:t,fieldNames:n}=e;return t.map(r=>r[n.label]).join(" / ")},Kte=(e,t,n,r,o,a)=>z(()=>{const{filter:i=Wte,render:l=Ute,limit:s=50,sort:u}=o.value,c=[];if(!e.value)return[];function d(f,p){f.forEach(v=>{if(!u&&s>0&&c.length>=s)return;const m=[...p,v],h=v[n.value.children];(!h||h.length===0||a.value)&&i(e.value,m,{label:n.value.label})&&c.push(E(E({},v),{[n.value.label]:l({inputValue:e.value,path:m,prefixCls:r.value,fieldNames:n.value}),[wu]:m})),h&&d(v[n.value.children],m)})}return d(t.value,[]),u&&c.sort((f,p)=>u(f[wu],p[wu],e.value,n.value)),s>0?c.slice(0,s):c});function m2(e,t,n){const r=new Set(e);return e.filter(o=>{const a=t[o],i=a?a.parent:null,l=a?a.children:null;return n===kI?!(l&&l.some(s=>s.key&&r.has(s.key))):!(i&&!i.node.disabled&&r.has(i.key))})}function Qu(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;var o;let a=t;const i=[];for(let l=0;l<e.length;l+=1){const s=e[l],u=a==null?void 0:a.findIndex(d=>{const f=d[n.value];return r?String(f)===String(s):f===s}),c=u!==-1?a==null?void 0:a[u]:null;i.push({value:(o=c==null?void 0:c[n.value])!==null&&o!==void 0?o:s,index:u,option:c}),a=c==null?void 0:c[n.children]}return i}const qte=(e,t,n)=>z(()=>{const r=[],o=[];return n.value.forEach(a=>{Qu(a,e.value,t.value).every(l=>l.option)?o.push(a):r.push(a)}),[o,r]});function qI(e,t){const n=new Set;return e.forEach(r=>{t.has(r)||n.add(r)}),n}function Gte(e){const{disabled:t,disableCheckbox:n,checkable:r}=e||{};return!!(t||n)||r===!1}function Xte(e,t,n,r){const o=new Set(e),a=new Set;for(let l=0;l<=n;l+=1)(t.get(l)||new Set).forEach(u=>{const{key:c,node:d,children:f=[]}=u;o.has(c)&&!r(d)&&f.filter(p=>!r(p.node)).forEach(p=>{o.add(p.key)})});const i=new Set;for(let l=n;l>=0;l-=1)(t.get(l)||new Set).forEach(u=>{const{parent:c,node:d}=u;if(r(d)||!u.parent||i.has(u.parent.key))return;if(r(u.parent.node)){i.add(c.key);return}let f=!0,p=!1;(c.children||[]).filter(v=>!r(v.node)).forEach(v=>{let{key:m}=v;const h=o.has(m);f&&!h&&(f=!1),!p&&(h||a.has(m))&&(p=!0)}),f&&o.add(c.key),p&&a.add(c.key),i.add(c.key)});return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(qI(a,o))}}function Yte(e,t,n,r,o){const a=new Set(e);let i=new Set(t);for(let s=0;s<=r;s+=1)(n.get(s)||new Set).forEach(c=>{const{key:d,node:f,children:p=[]}=c;!a.has(d)&&!i.has(d)&&!o(f)&&p.filter(v=>!o(v.node)).forEach(v=>{a.delete(v.key)})});i=new Set;const l=new Set;for(let s=r;s>=0;s-=1)(n.get(s)||new Set).forEach(c=>{const{parent:d,node:f}=c;if(o(f)||!c.parent||l.has(c.parent.key))return;if(o(c.parent.node)){l.add(d.key);return}let p=!0,v=!1;(d.children||[]).filter(m=>!o(m.node)).forEach(m=>{let{key:h}=m;const g=a.has(h);p&&!g&&(p=!1),!v&&(g||i.has(h))&&(v=!0)}),p||a.delete(d.key),v&&i.add(d.key),l.add(d.key)});return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(qI(i,a))}}function Yr(e,t,n,r,o,a){let i;a?i=a:i=Gte;const l=new Set(e.filter(u=>!!n[u]));let s;return t===!0?s=Xte(l,o,r,i):s=Yte(l,t.halfCheckedKeys,o,r,i),s}const Zte=(e,t,n,r,o)=>z(()=>{const a=o.value||(i=>{let{labels:l}=i;const s=r.value?l.slice(-1):l,u=" / ";return s.every(c=>["string","number"].includes(typeof c))?s.join(u):s.reduce((c,d,f)=>{const p=hn(d)?At(d,{key:f}):d;return f===0?[p]:[...c,u,p]},[])});return e.value.map(i=>{const l=Qu(i,t.value,n.value),s=a({labels:l.map(c=>{let{option:d,value:f}=c;var p;return(p=d==null?void 0:d[n.value.label])!==null&&p!==void 0?p:f}),selectedOptions:l.map(c=>{let{option:d}=c;return d})}),u=ei(i);return{label:s,value:u,key:u,valueCells:i}})}),GI=Symbol("CascaderContextKey"),Jte=e=>{it(GI,e)},Jm=()=>lt(GI),Qte=()=>{const e=pc(),{values:t}=Jm(),[n,r]=It([]);return Ne(()=>e.open,()=>{if(e.open&&!e.multiple){const o=t.value[0];r(o||[])}},{immediate:!0}),[n,r]},ene=(e,t,n,r,o,a)=>{const i=pc(),l=z(()=>i.direction==="rtl"),[s,u,c]=[be([]),be(),be([])];Je(()=>{let m=-1,h=t.value;const g=[],x=[],y=r.value.length;for(let b=0;b<y&&h;b+=1){const S=h.findIndex($=>$[n.value.value]===r.value[b]);if(S===-1)break;m=S,g.push(m),x.push(r.value[b]),h=h[m][n.value.children]}let w=t.value;for(let b=0;b<g.length-1;b+=1)w=w[g[b]][n.value.children];[s.value,u.value,c.value]=[x,m,w]});const d=m=>{o(m)},f=m=>{const h=c.value.length;let g=u.value;g===-1&&m<0&&(g=h);for(let x=0;x<h;x+=1){g=(g+m+h)%h;const y=c.value[g];if(y&&!y.disabled){const w=y[n.value.value],b=s.value.slice(0,-1).concat(w);d(b);return}}},p=()=>{if(s.value.length>1){const m=s.value.slice(0,-1);d(m)}else i.toggleOpen(!1)},v=()=>{var m;const g=(((m=c.value[u.value])===null||m===void 0?void 0:m[n.value.children])||[]).find(x=>!x.disabled);if(g){const x=[...s.value,g[n.value.value]];d(x)}};e.expose({onKeydown:m=>{const{which:h}=m;switch(h){case _e.UP:case _e.DOWN:{let g=0;h===_e.UP?g=-1:h===_e.DOWN&&(g=1),g!==0&&f(g);break}case _e.LEFT:{l.value?v():p();break}case _e.RIGHT:{l.value?p():v();break}case _e.BACKSPACE:{i.searchValue||p();break}case _e.ENTER:{if(s.value.length){const g=c.value[u.value],x=(g==null?void 0:g[wu])||[];x.length?a(x.map(y=>y[n.value.value]),x[x.length-1]):a(s.value,g)}break}case _e.ESC:i.toggleOpen(!1),open&&m.stopPropagation()}},onKeyup:()=>{}})};function Qm(e){let{prefixCls:t,checked:n,halfChecked:r,disabled:o,onClick:a}=e;const{customSlots:i,checkable:l}=Jm(),s=l.value!==!1?i.value.checkable:l.value,u=typeof s=="function"?s():typeof s=="boolean"?null:s;return C("span",{class:{[t]:!0,[`${t}-checked`]:n,[`${t}-indeterminate`]:!n&&r,[`${t}-disabled`]:o},onClick:a},[u])}Qm.props=["prefixCls","checked","halfChecked","disabled","onClick"];Qm.displayName="Checkbox";Qm.inheritAttrs=!1;const XI="__cascader_fix_label__";function ev(e){let{prefixCls:t,multiple:n,options:r,activeValue:o,prevValuePath:a,onToggleOpen:i,onSelect:l,onActive:s,checkedSet:u,halfCheckedSet:c,loadingKeys:d,isSelectable:f}=e;var p,v,m,h,g,x;const y=`${t}-menu`,w=`${t}-menu-item`,{fieldNames:b,changeOnSelect:S,expandTrigger:$,expandIcon:D,loadingIcon:O,dropdownMenuColumnStyle:A,customSlots:T}=Jm(),M=(p=D.value)!==null&&p!==void 0?p:(m=(v=T.value).expandIcon)===null||m===void 0?void 0:m.call(v),B=(h=O.value)!==null&&h!==void 0?h:(x=(g=T.value).loadingIcon)===null||x===void 0?void 0:x.call(g),F=$.value==="hover";return C("ul",{class:y,role:"menu"},[r.map(P=>{var I;const{disabled:N}=P,R=P[wu],_=(I=P[XI])!==null&&I!==void 0?I:P[b.value.label],L=P[b.value.value],k=iu(P,b.value),H=R?R.map(G=>G[b.value.value]):[...a,L],V=ei(H),U=d.includes(V),q=u.has(V),K=c.has(V),X=()=>{!N&&(!F||!k)&&s(H)},re=()=>{f(P)&&l(H,k)};let ee;return typeof P.title=="string"?ee=P.title:typeof _=="string"&&(ee=_),C("li",{key:V,class:[w,{[`${w}-expand`]:!k,[`${w}-active`]:o===L,[`${w}-disabled`]:N,[`${w}-loading`]:U}],style:A.value,role:"menuitemcheckbox",title:ee,"aria-checked":q,"data-path-key":V,onClick:()=>{X(),(!n||k)&&re()},onDblclick:()=>{S.value&&i(!1)},onMouseenter:()=>{F&&X()},onMousedown:G=>{G.preventDefault()}},[n&&C(Qm,{prefixCls:`${t}-checkbox`,checked:q,halfChecked:K,disabled:N,onClick:G=>{G.stopPropagation(),re()}},null),C("div",{class:`${w}-content`},[_]),!U&&M&&!k&&C("div",{class:`${w}-expand-icon`},[M]),U&&B&&C("div",{class:`${w}-loading-icon`},[B])])})])}ev.props=["prefixCls","multiple","options","activeValue","prevValuePath","onToggleOpen","onSelect","onActive","checkedSet","halfCheckedSet","loadingKeys","isSelectable"];ev.displayName="Column";ev.inheritAttrs=!1;const tne=he({compatConfig:{MODE:3},name:"OptionList",inheritAttrs:!1,setup(e,t){const{attrs:n,slots:r}=t,o=pc(),a=be(),i=z(()=>o.direction==="rtl"),{options:l,values:s,halfValues:u,fieldNames:c,changeOnSelect:d,onSelect:f,searchOptions:p,dropdownPrefixCls:v,loadData:m,expandTrigger:h,customSlots:g}=Jm(),x=z(()=>v.value||o.prefixCls),y=pe([]),w=I=>{if(!m.value||o.searchValue)return;const R=Qu(I,l.value,c.value).map(L=>{let{option:k}=L;return k}),_=R[R.length-1];if(_&&!iu(_,c.value)){const L=ei(I);y.value=[...y.value,L],m.value(R)}};Je(()=>{y.value.length&&y.value.forEach(I=>{const N=Ete(I),R=Qu(N,l.value,c.value,!0).map(L=>{let{option:k}=L;return k}),_=R[R.length-1];(!_||_[c.value.children]||iu(_,c.value))&&(y.value=y.value.filter(L=>L!==I))})});const b=z(()=>new Set(Rl(s.value))),S=z(()=>new Set(Rl(u.value))),[$,D]=Qte(),O=I=>{D(I),w(I)},A=I=>{const{disabled:N}=I,R=iu(I,c.value);return!N&&(R||d.value||o.multiple)},T=function(I,N){let R=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;f(I),!o.multiple&&(N||d.value&&(h.value==="hover"||R))&&o.toggleOpen(!1)},M=z(()=>o.searchValue?p.value:l.value),B=z(()=>{const I=[{options:M.value}];let N=M.value;for(let R=0;R<$.value.length;R+=1){const _=$.value[R],L=N.find(H=>H[c.value.value]===_),k=L==null?void 0:L[c.value.children];if(!(k!=null&&k.length))break;N=k,I.push({options:k})}return I});ene(t,M,c,$,O,(I,N)=>{A(N)&&T(I,iu(N,c.value),!0)});const P=I=>{I.preventDefault()};return Qe(()=>{Ne($,I=>{var N;for(let R=0;R<I.length;R+=1){const _=I.slice(0,R+1),L=ei(_),k=(N=a.value)===null||N===void 0?void 0:N.querySelector(`li[data-path-key="${L.replace(/\\{0,2}"/g,'\\"')}"]`);k&&Ate(k)}},{flush:"post",immediate:!0})}),()=>{var I,N,R,_,L;const{notFoundContent:k=((I=r.notFoundContent)===null||I===void 0?void 0:I.call(r))||((R=(N=g.value).notFoundContent)===null||R===void 0?void 0:R.call(N)),multiple:H,toggleOpen:V}=o,U=!(!((L=(_=B.value[0])===null||_===void 0?void 0:_.options)===null||L===void 0)&&L.length),q=[{[c.value.value]:"__EMPTY__",[XI]:k,disabled:!0}],K=E(E({},n),{multiple:!U&&H,onSelect:T,onActive:O,onToggleOpen:V,checkedSet:b.value,halfCheckedSet:S.value,loadingKeys:y.value,isSelectable:A}),re=(U?[{options:q}]:B.value).map((ee,G)=>{const le=$.value.slice(0,G),ue=$.value[G];return C(ev,j(j({key:G},K),{},{prefixCls:x.value,options:ee.options,prevValuePath:le,activeValue:ue}),null)});return C("div",{class:[`${x.value}-menus`,{[`${x.value}-menu-empty`]:U,[`${x.value}-rtl`]:i.value}],onMousedown:P,ref:a},[re])}}});function tv(e){const t=be(0),n=pe();return Je(()=>{const r=new Map;let o=0;const a=e.value||{};for(const i in a)if(Object.prototype.hasOwnProperty.call(a,i)){const l=a[i],{level:s}=l;let u=r.get(s);u||(u=new Set,r.set(s,u)),u.add(l),o=Math.max(o,s)}t.value=o,n.value=r}),{maxLevel:t,levelEntities:n}}function nne(){return E(E({},pt(Om(),["tokenSeparators","mode","showSearch"])),{id:String,prefixCls:String,fieldNames:We(),children:Array,value:{type:[String,Number,Array]},defaultValue:{type:[String,Number,Array]},changeOnSelect:{type:Boolean,default:void 0},displayRender:Function,checkable:{type:Boolean,default:void 0},showCheckedStrategy:{type:String,default:LI},showSearch:{type:[Boolean,Object],default:void 0},searchValue:String,onSearch:Function,expandTrigger:String,options:Array,dropdownPrefixCls:String,loadData:Function,popupVisible:{type:Boolean,default:void 0},popupClassName:String,dropdownClassName:String,dropdownMenuColumnStyle:{type:Object,default:void 0},popupStyle:{type:Object,default:void 0},dropdownStyle:{type:Object,default:void 0},popupPlacement:String,placement:String,onPopupVisibleChange:Function,onDropdownVisibleChange:Function,expandIcon:Z.any,loadingIcon:Z.any})}function YI(){return E(E({},nne()),{onChange:Function,customSlots:Object})}function rne(e){return Array.isArray(e)&&Array.isArray(e[0])}function v2(e){return e?rne(e)?e:(e.length===0?[]:[e]).map(t=>Array.isArray(t)?t:[t]):[]}const one=he({compatConfig:{MODE:3},name:"Cascader",inheritAttrs:!1,props:at(YI(),{}),setup(e,t){let{attrs:n,expose:r,slots:o}=t;const a=Bb(Ye(e,"id")),i=z(()=>!!e.checkable),[l,s]=Zt(e.defaultValue,{value:z(()=>e.value),postState:v2}),u=z(()=>Dte(e.fieldNames)),c=z(()=>e.options||[]),d=jte(c,u),f=G=>{const le=d.value;return G.map(ue=>{const{nodes:me}=le[ue];return me.map(Se=>Se[u.value.value])})},[p,v]=Zt("",{value:z(()=>e.searchValue),postState:G=>G||""}),m=(G,le)=>{v(G),le.source!=="blur"&&e.onSearch&&e.onSearch(G)},{showSearch:h,searchConfig:g}=Vte(Ye(e,"showSearch")),x=Kte(p,c,u,z(()=>e.dropdownPrefixCls||e.prefixCls),g,Ye(e,"changeOnSelect")),y=qte(c,u,l),[w,b,S]=[be([]),be([]),be([])],{maxLevel:$,levelEntities:D}=tv(d);Je(()=>{const[G,le]=y.value;if(!i.value||!l.value.length){[w.value,b.value,S.value]=[G,[],le];return}const ue=Rl(G),me=d.value,{checkedKeys:Se,halfCheckedKeys:Q}=Yr(ue,!0,me,$.value,D.value);[w.value,b.value,S.value]=[f(Se),f(Q),le]});const O=z(()=>{const G=Rl(w.value),le=m2(G,d.value,e.showCheckedStrategy);return[...S.value,...f(le)]}),A=Zte(O,c,u,i,Ye(e,"displayRender")),T=G=>{if(s(G),e.onChange){const le=v2(G),ue=le.map(Q=>Qu(Q,c.value,u.value).map(te=>te.option)),me=i.value?le:le[0],Se=i.value?ue:ue[0];e.onChange(me,Se)}},M=G=>{if(v(""),!i.value)T(G);else{const le=ei(G),ue=Rl(w.value),me=Rl(b.value),Se=ue.includes(le),Q=S.value.some(Y=>ei(Y)===le);let te=w.value,de=S.value;if(Q&&!Se)de=S.value.filter(Y=>ei(Y)!==le);else{const Y=Se?ue.filter(Ce=>Ce!==le):[...ue,le];let ae;Se?{checkedKeys:ae}=Yr(Y,{checked:!1,halfCheckedKeys:me},d.value,$.value,D.value):{checkedKeys:ae}=Yr(Y,!0,d.value,$.value,D.value);const ce=m2(ae,d.value,e.showCheckedStrategy);te=f(ce)}T([...de,...te])}},B=(G,le)=>{if(le.type==="clear"){T([]);return}const{valueCells:ue}=le.values[0];M(ue)},F=z(()=>e.open!==void 0?e.open:e.popupVisible),P=z(()=>e.dropdownClassName||e.popupClassName),I=z(()=>e.dropdownStyle||e.popupStyle||{}),N=z(()=>e.placement||e.popupPlacement),R=G=>{var le,ue;(le=e.onDropdownVisibleChange)===null||le===void 0||le.call(e,G),(ue=e.onPopupVisibleChange)===null||ue===void 0||ue.call(e,G)},{changeOnSelect:_,checkable:L,dropdownPrefixCls:k,loadData:H,expandTrigger:V,expandIcon:U,loadingIcon:q,dropdownMenuColumnStyle:K,customSlots:X}=Xr(e);Jte({options:c,fieldNames:u,values:w,halfValues:b,changeOnSelect:_,onSelect:M,checkable:L,searchOptions:x,dropdownPrefixCls:k,loadData:H,expandTrigger:V,expandIcon:U,loadingIcon:q,dropdownMenuColumnStyle:K,customSlots:X});const re=be();r({focus(){var G;(G=re.value)===null||G===void 0||G.focus()},blur(){var G;(G=re.value)===null||G===void 0||G.blur()},scrollTo(G){var le;(le=re.value)===null||le===void 0||le.scrollTo(G)}});const ee=z(()=>pt(e,["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","customSlots","showCheckedStrategy","children"]));return()=>{const G=!(p.value?x.value:c.value).length,{dropdownMatchSelectWidth:le=!1}=e,ue=p.value&&g.value.matchInputWidth||G?{}:{minWidth:"auto"};return C(Ib,j(j(j({},ee.value),n),{},{ref:re,id:a,prefixCls:e.prefixCls,dropdownMatchSelectWidth:le,dropdownStyle:E(E({},I.value),ue),displayValues:A.value,onDisplayValuesChange:B,mode:i.value?"multiple":void 0,searchValue:p.value,onSearch:m,showSearch:h.value,OptionList:tne,emptyOptions:G,open:F.value,dropdownClassName:P.value,placement:N.value,onDropdownVisibleChange:R,getRawInputElement:()=>{var me;return(me=o.default)===null||me===void 0?void 0:me.call(o)}}),o)}}});var ane={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"};const ine=ane;function h2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){lne(e,o,n[o])})}return e}function lne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var dx=function(t,n){var r=h2({},t,n.attrs);return C(vt,h2({},r,{icon:ine}),null)};dx.displayName="LeftOutlined";dx.inheritAttrs=!1;const oi=dx,ZI=()=>Co()&&window.document.documentElement,JI=e=>{if(Co()&&window.document.documentElement){const t=Array.isArray(e)?e:[e],{documentElement:n}=window.document;return t.some(r=>r in n.style)}return!1},sne=(e,t)=>{if(!JI(e))return!1;const n=document.createElement("div"),r=n.style[e];return n.style[e]=t,n.style[e]!==r};function fx(e,t){return!Array.isArray(e)&&t!==void 0?sne(e,t):JI(e)}let cd;const une=()=>{if(!ZI())return!1;if(cd!==void 0)return cd;const e=document.createElement("div");return e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e),cd=e.scrollHeight===1,document.body.removeChild(e),cd},QI=()=>{const e=pe(!1);return Qe(()=>{e.value=une()}),e},e8=Symbol("rowContextKey"),cne=e=>{it(e8,e)},dne=()=>lt(e8,{gutter:z(()=>{}),wrap:z(()=>{}),supportFlexGap:z(()=>{})}),fne=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"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},pne=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},mne=(e,t)=>{const{componentCls:n,gridColumns:r}=e,o={};for(let a=r;a>=0;a--)a===0?(o[`${n}${t}-${a}`]={display:"none"},o[`${n}-push-${a}`]={insetInlineStart:"auto"},o[`${n}-pull-${a}`]={insetInlineEnd:"auto"},o[`${n}${t}-push-${a}`]={insetInlineStart:"auto"},o[`${n}${t}-pull-${a}`]={insetInlineEnd:"auto"},o[`${n}${t}-offset-${a}`]={marginInlineEnd:0},o[`${n}${t}-order-${a}`]={order:0}):(o[`${n}${t}-${a}`]={display:"block",flex:`0 0 ${a/r*100}%`,maxWidth:`${a/r*100}%`},o[`${n}${t}-push-${a}`]={insetInlineStart:`${a/r*100}%`},o[`${n}${t}-pull-${a}`]={insetInlineEnd:`${a/r*100}%`},o[`${n}${t}-offset-${a}`]={marginInlineStart:`${a/r*100}%`},o[`${n}${t}-order-${a}`]={order:a});return o},$0=(e,t)=>mne(e,t),vne=(e,t,n)=>({[`@media (min-width: ${t}px)`]:E({},$0(e,n))}),hne=nt("Grid",e=>[fne(e)]),gne=nt("Grid",e=>{const t=qe(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[pne(t),$0(t,""),$0(t,"-xs"),Object.keys(n).map(r=>vne(t,n[r],r)).reduce((r,o)=>E(E({},r),o),{})]}),yne=()=>({align:Xe([String,Object]),justify:Xe([String,Object]),prefixCls:String,gutter:Xe([Number,Array,Object],0),wrap:{type:Boolean,default:void 0}}),bne=he({compatConfig:{MODE:3},name:"ARow",inheritAttrs:!1,props:yne(),setup(e,t){let{slots:n,attrs:r}=t;const{prefixCls:o,direction:a}=He("row",e),[i,l]=hne(o);let s;const u=p1(),c=be({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),d=be({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),f=y=>z(()=>{if(typeof e[y]=="string")return e[y];if(typeof e[y]!="object")return"";for(let w=0;w<sa.length;w++){const b=sa[w];if(!d.value[b])continue;const S=e[y][b];if(S!==void 0)return S}return""}),p=f("align"),v=f("justify"),m=QI();Qe(()=>{s=u.value.subscribe(y=>{d.value=y;const w=e.gutter||0;(!Array.isArray(w)&&typeof w=="object"||Array.isArray(w)&&(typeof w[0]=="object"||typeof w[1]=="object"))&&(c.value=y)})}),st(()=>{u.value.unsubscribe(s)});const h=z(()=>{const y=[void 0,void 0],{gutter:w=0}=e;return(Array.isArray(w)?w:[w,void 0]).forEach((S,$)=>{if(typeof S=="object")for(let D=0;D<sa.length;D++){const O=sa[D];if(c.value[O]&&S[O]!==void 0){y[$]=S[O];break}}else y[$]=S}),y});cne({gutter:h,supportFlexGap:m,wrap:z(()=>e.wrap)});const g=z(()=>ge(o.value,{[`${o.value}-no-wrap`]:e.wrap===!1,[`${o.value}-${v.value}`]:v.value,[`${o.value}-${p.value}`]:p.value,[`${o.value}-rtl`]:a.value==="rtl"},r.class,l.value)),x=z(()=>{const y=h.value,w={},b=y[0]!=null&&y[0]>0?`${y[0]/-2}px`:void 0,S=y[1]!=null&&y[1]>0?`${y[1]/-2}px`:void 0;return b&&(w.marginLeft=b,w.marginRight=b),m.value?w.rowGap=`${y[1]}px`:S&&(w.marginTop=S,w.marginBottom=S),w});return()=>{var y;return i(C("div",j(j({},r),{},{class:g.value,style:E(E({},x.value),r.style)}),[(y=n.default)===null||y===void 0?void 0:y.call(n)]))}}}),px=bne;function Pi(){return Pi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pi.apply(this,arguments)}function xne(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ec(e,t)}function E0(e){return E0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},E0(e)}function ec(e,t){return ec=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},ec(e,t)}function wne(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function of(e,t,n){return wne()?of=Reflect.construct.bind():of=function(o,a,i){var l=[null];l.push.apply(l,a);var s=Function.bind.apply(o,l),u=new s;return i&&ec(u,i.prototype),u},of.apply(null,arguments)}function Sne(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function D0(e){var t=typeof Map=="function"?new Map:void 0;return D0=function(r){if(r===null||!Sne(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,o)}function o(){return of(r,arguments,E0(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),ec(o,r)},D0(e)}var Cne=/%[sdj%]/g,$ne=function(){};function A0(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 _r(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,a=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var i=e.replace(Cne,function(l){if(l==="%%")return"%";if(o>=a)return l;switch(l){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return"[Circular]"}break;default:return l}});return i}return e}function Ene(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Fn(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||Ene(t)&&typeof e=="string"&&!e)}function Dne(e,t,n){var r=[],o=0,a=e.length;function i(l){r.push.apply(r,l||[]),o++,o===a&&n(r)}e.forEach(function(l){t(l,i)})}function g2(e,t,n){var r=0,o=e.length;function a(i){if(i&&i.length){n(i);return}var l=r;r=r+1,l<o?t(e[l],a):n([])}a([])}function Ane(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n]||[])}),t}var y2=function(e){xne(t,e);function t(n,r){var o;return o=e.call(this,"Async Validation Error")||this,o.errors=n,o.fields=r,o}return t}(D0(Error));function One(e,t,n,r,o){if(t.first){var a=new Promise(function(f,p){var v=function(g){return r(g),g.length?p(new y2(g,A0(g))):f(o)},m=Ane(e);g2(m,n,v)});return a.catch(function(f){return f}),a}var i=t.firstFields===!0?Object.keys(e):t.firstFields||[],l=Object.keys(e),s=l.length,u=0,c=[],d=new Promise(function(f,p){var v=function(h){if(c.push.apply(c,h),u++,u===s)return r(c),c.length?p(new y2(c,A0(c))):f(o)};l.length||(r(c),f(o)),l.forEach(function(m){var h=e[m];i.indexOf(m)!==-1?g2(h,n,v):Dne(h,n,v)})});return d.catch(function(f){return f}),d}function Tne(e){return!!(e&&e.message!==void 0)}function Mne(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function b2(e,t){return function(n){var r;return e.fullFields?r=Mne(t,e.fullFields):r=t[n.field||e.fullField],Tne(n)?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:typeof n=="function"?n():n,fieldValue:r,field:n.field||e.fullField}}}function x2(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];typeof r=="object"&&typeof e[n]=="object"?e[n]=Pi({},e[n],r):e[n]=r}}return e}var t8=function(t,n,r,o,a,i){t.required&&(!r.hasOwnProperty(t.field)||Fn(n,i||t.type))&&o.push(_r(a.messages.required,t.fullField))},Nne=function(t,n,r,o,a){(/^\s+$/.test(n)||n==="")&&o.push(_r(a.messages.whitespace,t.fullField))},dd,Pne=function(){if(dd)return dd;var e="[a-fA-F\\d:]",t=function(w){return w&&w.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",o=(`
- (?:
- (?:`+r+":){7}(?:"+r+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
- (?:`+r+":){6}(?:"+n+"|:"+r+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
- (?:`+r+":){5}(?::"+n+"|(?::"+r+`){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
- (?:`+r+":){4}(?:(?::"+r+"){0,1}:"+n+"|(?::"+r+`){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
- (?:`+r+":){3}(?:(?::"+r+"){0,2}:"+n+"|(?::"+r+`){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
- (?:`+r+":){2}(?:(?::"+r+"){0,3}:"+n+"|(?::"+r+`){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
- (?:`+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
- (?::(?:(?::`+r+"){0,5}:"+n+"|(?::"+r+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
- )(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
- `).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),a=new RegExp("(?:^"+n+"$)|(?:^"+o+"$)"),i=new RegExp("^"+n+"$"),l=new RegExp("^"+o+"$"),s=function(w){return w&&w.exact?a:new RegExp("(?:"+t(w)+n+t(w)+")|(?:"+t(w)+o+t(w)+")","g")};s.v4=function(y){return y&&y.exact?i:new RegExp(""+t(y)+n+t(y),"g")},s.v6=function(y){return y&&y.exact?l:new RegExp(""+t(y)+o+t(y),"g")};var u="(?:(?:[a-z]+:)?//)",c="(?:\\S+(?::\\S*)?@)?",d=s.v4().source,f=s.v6().source,p="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",v="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",m="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",h="(?::\\d{2,5})?",g='(?:[/?#][^\\s"]*)?',x="(?:"+u+"|www\\.)"+c+"(?:localhost|"+d+"|"+f+"|"+p+v+m+")"+h+g;return dd=new RegExp("(?:^"+x+"$)","i"),dd},w2={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},lu={integer:function(t){return lu.number(t)&&parseInt(t,10)===t},float:function(t){return lu.number(t)&&!lu.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 typeof t=="object"&&!lu.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(w2.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(Pne())},hex:function(t){return typeof t=="string"&&!!t.match(w2.hex)}},Ine=function(t,n,r,o,a){if(t.required&&n===void 0){t8(t,n,r,o,a);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],l=t.type;i.indexOf(l)>-1?lu[l](n)||o.push(_r(a.messages.types[l],t.fullField,t.type)):l&&typeof n!==t.type&&o.push(_r(a.messages.types[l],t.fullField,t.type))},_ne=function(t,n,r,o,a){var i=typeof t.len=="number",l=typeof t.min=="number",s=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=n,d=null,f=typeof n=="number",p=typeof n=="string",v=Array.isArray(n);if(f?d="number":p?d="string":v&&(d="array"),!d)return!1;v&&(c=n.length),p&&(c=n.replace(u,"_").length),i?c!==t.len&&o.push(_r(a.messages[d].len,t.fullField,t.len)):l&&!s&&c<t.min?o.push(_r(a.messages[d].min,t.fullField,t.min)):s&&!l&&c>t.max?o.push(_r(a.messages[d].max,t.fullField,t.max)):l&&s&&(c<t.min||c>t.max)&&o.push(_r(a.messages[d].range,t.fullField,t.min,t.max))},Sl="enum",Bne=function(t,n,r,o,a){t[Sl]=Array.isArray(t[Sl])?t[Sl]:[],t[Sl].indexOf(n)===-1&&o.push(_r(a.messages[Sl],t.fullField,t[Sl].join(", ")))},Fne=function(t,n,r,o,a){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(_r(a.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var i=new RegExp(t.pattern);i.test(n)||o.push(_r(a.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},zt={required:t8,whitespace:Nne,type:Ine,range:_ne,enum:Bne,pattern:Fne},Rne=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Fn(n,"string")&&!t.required)return r();zt.required(t,n,o,i,a,"string"),Fn(n,"string")||(zt.type(t,n,o,i,a),zt.range(t,n,o,i,a),zt.pattern(t,n,o,i,a),t.whitespace===!0&&zt.whitespace(t,n,o,i,a))}r(i)},zne=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Fn(n)&&!t.required)return r();zt.required(t,n,o,i,a),n!==void 0&&zt.type(t,n,o,i,a)}r(i)},Lne=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n===""&&(n=void 0),Fn(n)&&!t.required)return r();zt.required(t,n,o,i,a),n!==void 0&&(zt.type(t,n,o,i,a),zt.range(t,n,o,i,a))}r(i)},kne=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Fn(n)&&!t.required)return r();zt.required(t,n,o,i,a),n!==void 0&&zt.type(t,n,o,i,a)}r(i)},Hne=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Fn(n)&&!t.required)return r();zt.required(t,n,o,i,a),Fn(n)||zt.type(t,n,o,i,a)}r(i)},jne=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Fn(n)&&!t.required)return r();zt.required(t,n,o,i,a),n!==void 0&&(zt.type(t,n,o,i,a),zt.range(t,n,o,i,a))}r(i)},Vne=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Fn(n)&&!t.required)return r();zt.required(t,n,o,i,a),n!==void 0&&(zt.type(t,n,o,i,a),zt.range(t,n,o,i,a))}r(i)},Wne=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n==null&&!t.required)return r();zt.required(t,n,o,i,a,"array"),n!=null&&(zt.type(t,n,o,i,a),zt.range(t,n,o,i,a))}r(i)},Une=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Fn(n)&&!t.required)return r();zt.required(t,n,o,i,a),n!==void 0&&zt.type(t,n,o,i,a)}r(i)},Kne="enum",qne=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Fn(n)&&!t.required)return r();zt.required(t,n,o,i,a),n!==void 0&&zt[Kne](t,n,o,i,a)}r(i)},Gne=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Fn(n,"string")&&!t.required)return r();zt.required(t,n,o,i,a),Fn(n,"string")||zt.pattern(t,n,o,i,a)}r(i)},Xne=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Fn(n,"date")&&!t.required)return r();if(zt.required(t,n,o,i,a),!Fn(n,"date")){var s;n instanceof Date?s=n:s=new Date(n),zt.type(t,s,o,i,a),s&&zt.range(t,s.getTime(),o,i,a)}}r(i)},Yne=function(t,n,r,o,a){var i=[],l=Array.isArray(n)?"array":typeof n;zt.required(t,n,o,i,a,l),r(i)},Rh=function(t,n,r,o,a){var i=t.type,l=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Fn(n,i)&&!t.required)return r();zt.required(t,n,o,l,a,i),Fn(n,i)||zt.type(t,n,o,l,a)}r(l)},Zne=function(t,n,r,o,a){var i=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Fn(n)&&!t.required)return r();zt.required(t,n,o,i,a)}r(i)},Su={string:Rne,method:zne,number:Lne,boolean:kne,regexp:Hne,integer:jne,float:Vne,array:Wne,object:Une,enum:qne,pattern:Gne,date:Xne,url:Rh,hex:Rh,email:Rh,required:Yne,any:Zne};function O0(){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 T0=O0(),Ec=function(){function e(n){this.rules=null,this._messages=T0,this.define(n)}var t=e.prototype;return t.define=function(r){var o=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(a){var i=r[a];o.rules[a]=Array.isArray(i)?i:[i]})},t.messages=function(r){return r&&(this._messages=x2(O0(),r)),this._messages},t.validate=function(r,o,a){var i=this;o===void 0&&(o={}),a===void 0&&(a=function(){});var l=r,s=o,u=a;if(typeof s=="function"&&(u=s,s={}),!this.rules||Object.keys(this.rules).length===0)return u&&u(null,l),Promise.resolve(l);function c(m){var h=[],g={};function x(w){if(Array.isArray(w)){var b;h=(b=h).concat.apply(b,w)}else h.push(w)}for(var y=0;y<m.length;y++)x(m[y]);h.length?(g=A0(h),u(h,g)):u(null,l)}if(s.messages){var d=this.messages();d===T0&&(d=O0()),x2(d,s.messages),s.messages=d}else s.messages=this.messages();var f={},p=s.keys||Object.keys(this.rules);p.forEach(function(m){var h=i.rules[m],g=l[m];h.forEach(function(x){var y=x;typeof y.transform=="function"&&(l===r&&(l=Pi({},l)),g=l[m]=y.transform(g)),typeof y=="function"?y={validator:y}:y=Pi({},y),y.validator=i.getValidationMethod(y),y.validator&&(y.field=m,y.fullField=y.fullField||m,y.type=i.getType(y),f[m]=f[m]||[],f[m].push({rule:y,value:g,source:l,field:m}))})});var v={};return One(f,s,function(m,h){var g=m.rule,x=(g.type==="object"||g.type==="array")&&(typeof g.fields=="object"||typeof g.defaultField=="object");x=x&&(g.required||!g.required&&m.value),g.field=m.field;function y(S,$){return Pi({},$,{fullField:g.fullField+"."+S,fullFields:g.fullFields?[].concat(g.fullFields,[S]):[S]})}function w(S){S===void 0&&(S=[]);var $=Array.isArray(S)?S:[S];!s.suppressWarning&&$.length&&e.warning("async-validator:",$),$.length&&g.message!==void 0&&($=[].concat(g.message));var D=$.map(b2(g,l));if(s.first&&D.length)return v[g.field]=1,h(D);if(!x)h(D);else{if(g.required&&!m.value)return g.message!==void 0?D=[].concat(g.message).map(b2(g,l)):s.error&&(D=[s.error(g,_r(s.messages.required,g.field))]),h(D);var O={};g.defaultField&&Object.keys(m.value).map(function(M){O[M]=g.defaultField}),O=Pi({},O,m.rule.fields);var A={};Object.keys(O).forEach(function(M){var B=O[M],F=Array.isArray(B)?B:[B];A[M]=F.map(y.bind(null,M))});var T=new e(A);T.messages(s.messages),m.rule.options&&(m.rule.options.messages=s.messages,m.rule.options.error=s.error),T.validate(m.value,m.rule.options||s,function(M){var B=[];D&&D.length&&B.push.apply(B,D),M&&M.length&&B.push.apply(B,M),h(B.length?B:null)})}}var b;if(g.asyncValidator)b=g.asyncValidator(g,m.value,w,m.source,s);else if(g.validator){try{b=g.validator(g,m.value,w,m.source,s)}catch(S){console.error==null||console.error(S),s.suppressValidatorError||setTimeout(function(){throw S},0),w(S.message)}b===!0?w():b===!1?w(typeof g.message=="function"?g.message(g.fullField||g.field):g.message||(g.fullField||g.field)+" fails"):b instanceof Array?w(b):b instanceof Error&&w(b.message)}b&&b.then&&b.then(function(){return w()},function(S){return w(S)})},function(m){c(m)},l)},t.getType=function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!Su.hasOwnProperty(r.type))throw new Error(_r("Unknown rule type %s",r.type));return r.type||"string"},t.getValidationMethod=function(r){if(typeof r.validator=="function")return r.validator;var o=Object.keys(r),a=o.indexOf("message");return a!==-1&&o.splice(a,1),o.length===1&&o[0]==="required"?Su.required:Su[this.getType(r)]||void 0},e}();Ec.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");Su[t]=n};Ec.warning=$ne;Ec.messages=T0;Ec.validators=Su;function ti(e){return e==null?[]:Array.isArray(e)?e:[e]}function n8(e,t){let n=e;for(let r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function r8(e,t,n,r){if(!t.length)return n;const[o,...a]=t;let i;return!e&&typeof o=="number"?i=[]:Array.isArray(e)?i=[...e]:i=E({},e),r&&n===void 0&&a.length===1?delete i[o][a[0]]:i[o]=r8(i[o],a,n,r),i}function Jne(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!n8(e,t.slice(0,-1))?e:r8(e,t,n,r)}function M0(e){return ti(e)}function Qne(e,t){return n8(e,t)}function ere(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return Jne(e,t,n,r)}function tre(e,t){return e&&e.some(n=>rre(n,t))}function S2(e){return typeof e=="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function o8(e,t){const n=Array.isArray(e)?[...e]:E({},e);return t&&Object.keys(t).forEach(r=>{const o=n[r],a=t[r],i=S2(o)&&S2(a);n[r]=i?o8(o,a||{}):a}),n}function nre(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.reduce((o,a)=>o8(o,a),e)}function C2(e,t){let n={};return t.forEach(r=>{const o=Qne(e,r);n=ere(n,r,o)}),n}function rre(e,t){return!e||!t||e.length!==t.length?!1:e.every((n,r)=>t[r]===n)}const Tr="'${name}' is not a valid ${type}",nv={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:Tr,method:Tr,array:Tr,object:Tr,number:Tr,date:Tr,boolean:Tr,integer:Tr,float:Tr,regexp:Tr,email:Tr,url:Tr,hex:Tr},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}"}};var rv=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(a){return a instanceof n?a:new n(function(i){i(a)})}return new(n||(n=Promise))(function(a,i){function l(c){try{u(r.next(c))}catch(d){i(d)}}function s(c){try{u(r.throw(c))}catch(d){i(d)}}function u(c){c.done?a(c.value):o(c.value).then(l,s)}u((r=r.apply(e,t||[])).next())})};const ore=Ec;function are(e,t){return e.replace(/\$\{\w+\}/g,n=>{const r=n.slice(2,-1);return t[r]})}function N0(e,t,n,r,o){return rv(this,void 0,void 0,function*(){const a=E({},n);delete a.ruleIndex,delete a.trigger;let i=null;a&&a.type==="array"&&a.defaultField&&(i=a.defaultField,delete a.defaultField);const l=new ore({[e]:[a]}),s=nre({},nv,r.validateMessages);l.messages(s);let u=[];try{yield Promise.resolve(l.validate({[e]:t},E({},r)))}catch(f){f.errors?u=f.errors.map((p,v)=>{let{message:m}=p;return hn(m)?ha(m,{key:`error_${v}`}):m}):(console.error(f),u=[s.default()])}if(!u.length&&i)return(yield Promise.all(t.map((p,v)=>N0(`${e}.${v}`,p,i,r,o)))).reduce((p,v)=>[...p,...v],[]);const c=E(E(E({},n),{name:e,enum:(n.enum||[]).join(", ")}),o);return u.map(f=>typeof f=="string"?are(f,c):f)})}function a8(e,t,n,r,o,a){const i=e.join("."),l=n.map((u,c)=>{const d=u.validator,f=E(E({},u),{ruleIndex:c});return d&&(f.validator=(p,v,m)=>{let h=!1;const x=d(p,v,function(){for(var y=arguments.length,w=new Array(y),b=0;b<y;b++)w[b]=arguments[b];Promise.resolve().then(()=>{h||m(...w)})});h=x&&typeof x.then=="function"&&typeof x.catch=="function",h&&x.then(()=>{m()}).catch(y=>{m(y||" ")})}),f}).sort((u,c)=>{let{warningOnly:d,ruleIndex:f}=u,{warningOnly:p,ruleIndex:v}=c;return!!d==!!p?f-v:d?1:-1});let s;if(o===!0)s=new Promise((u,c)=>rv(this,void 0,void 0,function*(){for(let d=0;d<l.length;d+=1){const f=l[d],p=yield N0(i,t,f,r,a);if(p.length){c([{errors:p,rule:f}]);return}}u([])}));else{const u=l.map(c=>N0(i,t,c,r,a).then(d=>({errors:d,rule:c})));s=(o?lre(u):ire(u)).then(c=>Promise.reject(c))}return s.catch(u=>u),s}function ire(e){return rv(this,void 0,void 0,function*(){return Promise.all(e).then(t=>[].concat(...t))})}function lre(e){return rv(this,void 0,void 0,function*(){let t=0;return new Promise(n=>{e.forEach(r=>{r.then(o=>{o.errors.length&&n([o]),t+=1,t===e.length&&n([])})})})})}const i8=Symbol("formContextKey"),l8=e=>{it(i8,e)},mx=()=>lt(i8,{name:z(()=>{}),labelAlign:z(()=>"right"),vertical:z(()=>!1),addField:(e,t)=>{},removeField:e=>{},model:z(()=>{}),rules:z(()=>{}),colon:z(()=>{}),labelWrap:z(()=>{}),labelCol:z(()=>{}),requiredMark:z(()=>!1),validateTrigger:z(()=>{}),onValidate:()=>{},validateMessages:z(()=>nv)}),s8=Symbol("formItemPrefixContextKey"),sre=e=>{it(s8,e)},ure=()=>lt(s8,{prefixCls:z(()=>"")});function cre(e){return typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const dre=()=>({span:[String,Number],order:[String,Number],offset:[String,Number],push:[String,Number],pull:[String,Number],xs:{type:[String,Number,Object],default:void 0},sm:{type:[String,Number,Object],default:void 0},md:{type:[String,Number,Object],default:void 0},lg:{type:[String,Number,Object],default:void 0},xl:{type:[String,Number,Object],default:void 0},xxl:{type:[String,Number,Object],default:void 0},prefixCls:String,flex:[String,Number]}),fre=["xs","sm","md","lg","xl","xxl"],ov=he({compatConfig:{MODE:3},name:"ACol",inheritAttrs:!1,props:dre(),setup(e,t){let{slots:n,attrs:r}=t;const{gutter:o,supportFlexGap:a,wrap:i}=dne(),{prefixCls:l,direction:s}=He("col",e),[u,c]=gne(l),d=z(()=>{const{span:p,order:v,offset:m,push:h,pull:g}=e,x=l.value;let y={};return fre.forEach(w=>{let b={};const S=e[w];typeof S=="number"?b.span=S:typeof S=="object"&&(b=S||{}),y=E(E({},y),{[`${x}-${w}-${b.span}`]:b.span!==void 0,[`${x}-${w}-order-${b.order}`]:b.order||b.order===0,[`${x}-${w}-offset-${b.offset}`]:b.offset||b.offset===0,[`${x}-${w}-push-${b.push}`]:b.push||b.push===0,[`${x}-${w}-pull-${b.pull}`]:b.pull||b.pull===0,[`${x}-rtl`]:s.value==="rtl"})}),ge(x,{[`${x}-${p}`]:p!==void 0,[`${x}-order-${v}`]:v,[`${x}-offset-${m}`]:m,[`${x}-push-${h}`]:h,[`${x}-pull-${g}`]:g},y,r.class,c.value)}),f=z(()=>{const{flex:p}=e,v=o.value,m={};if(v&&v[0]>0){const h=`${v[0]/2}px`;m.paddingLeft=h,m.paddingRight=h}if(v&&v[1]>0&&!a.value){const h=`${v[1]/2}px`;m.paddingTop=h,m.paddingBottom=h}return p&&(m.flex=cre(p),i.value===!1&&!m.minWidth&&(m.minWidth=0)),m});return()=>{var p;return u(C("div",j(j({},r),{},{class:d.value,style:[f.value,r.style]}),[(p=n.default)===null||p===void 0?void 0:p.call(n)]))}}}),vx=(e,t)=>{let{slots:n,emit:r,attrs:o}=t;var a,i,l,s,u;const{prefixCls:c,htmlFor:d,labelCol:f,labelAlign:p,colon:v,required:m,requiredMark:h}=E(E({},e),o),[g]=ro("Form"),x=(a=e.label)!==null&&a!==void 0?a:(i=n.label)===null||i===void 0?void 0:i.call(n);if(!x)return null;const{vertical:y,labelAlign:w,labelCol:b,labelWrap:S,colon:$}=mx(),D=f||(b==null?void 0:b.value)||{},O=p||(w==null?void 0:w.value),A=`${c}-item-label`,T=ge(A,O==="left"&&`${A}-left`,D.class,{[`${A}-wrap`]:!!S.value});let M=x;const B=v===!0||($==null?void 0:$.value)!==!1&&v!==!1;B&&!y.value&&typeof x=="string"&&x.trim()!==""&&(M=x.replace(/[:|:]\s*$/,"")),M=C(dt,null,[M,(l=n.tooltip)===null||l===void 0?void 0:l.call(n,{class:`${c}-item-tooltip`})]),h==="optional"&&!m&&(M=C(dt,null,[M,C("span",{class:`${c}-item-optional`},[((s=g.value)===null||s===void 0?void 0:s.optional)||((u=cr.Form)===null||u===void 0?void 0:u.optional)])]));const P=ge({[`${c}-item-required`]:m,[`${c}-item-required-mark-optional`]:h==="optional",[`${c}-item-no-colon`]:!B});return C(ov,j(j({},D),{},{class:T}),{default:()=>[C("label",{for:d,class:P,title:typeof x=="string"?x:"",onClick:I=>r("click",I)},[M])]})};vx.displayName="FormItemLabel";vx.inheritAttrs=!1;const pre=vx,mre=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)"}}}}},vre=mre,hre=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},label:{fontSize:e.fontSize},'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,
- input[type='radio']:focus,
- input[type='checkbox']:focus`]:{outline:0,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),$2=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},gre=e=>{const{componentCls:t}=e;return{[e.componentCls]:E(E(E({},rt(e)),hre(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":E({},$2(e,e.controlHeightSM)),"&-large":E({},$2(e,e.controlHeightLG))})}},yre=e=>{const{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:o}=e;return{[t]:E(E({},rt(e)),{marginBottom:e.marginLG,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`]:{display:"inline-block",flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${e.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:e.controlHeight,color:e.colorTextHeading,fontSize:e.fontSize,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:e.colorError,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:e.marginXXS/2,marginInlineEnd:e.marginXS},[`&${t}-no-colon::after`]:{content:'" "'}}},[`${t}-control`]:{display:"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${o}-col-'"]):not([class*="' ${o}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-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:n1,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},bre=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label.${r}-col-24 + ${n}-control`]:{minWidth:"unset"}}}},xre=e=>{const{componentCls:t,formItemCls:n}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",flexWrap:"nowrap",marginInlineEnd:e.margin,marginBottom:0,"&-with-help":{marginBottom:e.marginLG},[`> ${n}-label,
- > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},Il=e=>({margin:0,padding:`0 0 ${e.paddingXS}px`,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{display:"none"}}}),wre=e=>{const{componentCls:t,formItemCls:n}=e;return{[`${n} ${n}-label`]:Il(e),[t]:{[n]:{flexWrap:"wrap",[`${n}-label,
- ${n}-control`]:{flex:"0 0 100%",maxWidth:"100%"}}}}},Sre=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${t}-vertical`]:{[n]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${t}-item-control`]:{width:"100%"}}},[`${t}-vertical ${n}-label,
- .${r}-col-24${n}-label,
- .${r}-col-xl-24${n}-label`]:Il(e),[`@media (max-width: ${e.screenXSMax}px)`]:[wre(e),{[t]:{[`.${r}-col-xs-24${n}-label`]:Il(e)}}],[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{[`.${r}-col-sm-24${n}-label`]:Il(e)}},[`@media (max-width: ${e.screenMDMax}px)`]:{[t]:{[`.${r}-col-md-24${n}-label`]:Il(e)}},[`@media (max-width: ${e.screenLGMax}px)`]:{[t]:{[`.${r}-col-lg-24${n}-label`]:Il(e)}}}},hx=nt("Form",(e,t)=>{let{rootPrefixCls:n}=t;const r=qe(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:n});return[gre(r),yre(r),vre(r),bre(r),xre(r),Sre(r),gc(r),n1]}),Cre=he({compatConfig:{MODE:3},name:"ErrorList",inheritAttrs:!1,props:["errors","help","onErrorVisibleChanged","helpStatus","warnings"],setup(e,t){let{attrs:n}=t;const{prefixCls:r,status:o}=ure(),a=z(()=>`${r.value}-item-explain`),i=z(()=>!!(e.errors&&e.errors.length)),l=be(o.value),[,s]=hx(r);return Ne([i,o],()=>{i.value&&(l.value=o.value)}),()=>{var u,c;const d=yc(`${r.value}-show-help-item`),f=$m(`${r.value}-show-help-item`,d);return f.role="alert",f.class=[s.value,a.value,n.class,`${r.value}-show-help`],C(_n,j(j({},to(`${r.value}-show-help`)),{},{onAfterEnter:()=>e.onErrorVisibleChanged(!0),onAfterLeave:()=>e.onErrorVisibleChanged(!1)}),{default:()=>[vn(C(rm,j(j({},f),{},{tag:"div"}),{default:()=>[(c=e.errors)===null||c===void 0?void 0:c.map((p,v)=>C("div",{key:v,class:l.value?`${a.value}-${l.value}`:""},[p]))]}),[[ur,!!(!((u=e.errors)===null||u===void 0)&&u.length)]])]})}}}),$re=he({compatConfig:{MODE:3},slots:Object,inheritAttrs:!1,props:["prefixCls","errors","hasFeedback","onDomErrorVisibleChange","wrapperCol","help","extra","status","marginBottom","onErrorVisibleChanged"],setup(e,t){let{slots:n}=t;const r=mx(),{wrapperCol:o}=r,a=E({},r);return delete a.labelCol,delete a.wrapperCol,l8(a),sre({prefixCls:z(()=>e.prefixCls),status:z(()=>e.status)}),()=>{var i,l,s;const{prefixCls:u,wrapperCol:c,marginBottom:d,onErrorVisibleChanged:f,help:p=(i=n.help)===null||i===void 0?void 0:i.call(n),errors:v=nn((l=n.errors)===null||l===void 0?void 0:l.call(n)),extra:m=(s=n.extra)===null||s===void 0?void 0:s.call(n)}=e,h=`${u}-item`,g=c||(o==null?void 0:o.value)||{},x=ge(`${h}-control`,g.class);return C(ov,j(j({},g),{},{class:x}),{default:()=>{var y;return C(dt,null,[C("div",{class:`${h}-control-input`},[C("div",{class:`${h}-control-input-content`},[(y=n.default)===null||y===void 0?void 0:y.call(n)])]),d!==null||v.length?C("div",{style:{display:"flex",flexWrap:"nowrap"}},[C(Cre,{errors:v,help:p,class:`${h}-explain-connected`,onErrorVisibleChanged:f},null),!!d&&C("div",{style:{width:0,height:`${d}px`}},null)]):null,m?C("div",{class:`${h}-extra`},[m]):null])}})}}}),Ere=$re;function Dre(e){const t=pe(e.value.slice());let n=null;return Je(()=>{clearTimeout(n),n=setTimeout(()=>{t.value=e.value},e.value.length?0:10)}),t}Un("success","warning","error","validating","");const Are={success:Aa,warning:Oa,error:$r,validating:Lr};function zh(e,t,n){let r=e;const o=t;let a=0;try{for(let i=o.length;a<i-1&&!(!r&&!n);++a){const l=o[a];if(l in r)r=r[l];else{if(n)throw Error("please transfer a valid name path to form item!");break}}if(n&&!r)throw Error("please transfer a valid name path to form item!")}catch{console.error("please transfer a valid name path to form item!")}return{o:r,k:o[a],v:r?r[o[a]]:void 0}}const Ore=()=>({htmlFor:String,prefixCls:String,label:Z.any,help:Z.any,extra:Z.any,labelCol:{type:Object},wrapperCol:{type:Object},hasFeedback:{type:Boolean,default:!1},colon:{type:Boolean,default:void 0},labelAlign:String,prop:{type:[String,Number,Array]},name:{type:[String,Number,Array]},rules:[Array,Object],autoLink:{type:Boolean,default:!0},required:{type:Boolean,default:void 0},validateFirst:{type:Boolean,default:void 0},validateStatus:Z.oneOf(Un("","success","warning","error","validating")),validateTrigger:{type:[String,Array]},messageVariables:{type:Object},hidden:Boolean,noStyle:Boolean});let Tre=0;const Mre="form_item",u8=he({compatConfig:{MODE:3},name:"AFormItem",inheritAttrs:!1,__ANT_NEW_FORM_ITEM:!0,props:Ore(),slots:Object,setup(e,t){let{slots:n,attrs:r,expose:o}=t;e.prop;const a=`form-item-${++Tre}`,{prefixCls:i}=He("form",e),[l,s]=hx(i),u=pe(),c=mx(),d=z(()=>e.name||e.prop),f=pe([]),p=pe(!1),v=pe(),m=z(()=>{const q=d.value;return M0(q)}),h=z(()=>{if(m.value.length){const q=c.name.value,K=m.value.join("_");return q?`${q}_${K}`:`${Mre}_${K}`}else return}),g=()=>{const q=c.model.value;if(!(!q||!d.value))return zh(q,m.value,!0).v},x=z(()=>g()),y=pe(Xd(x.value)),w=z(()=>{let q=e.validateTrigger!==void 0?e.validateTrigger:c.validateTrigger.value;return q=q===void 0?"change":q,ti(q)}),b=z(()=>{let q=c.rules.value;const K=e.rules,X=e.required!==void 0?{required:!!e.required,trigger:w.value}:[],re=zh(q,m.value);q=q?re.o[re.k]||re.v:[];const ee=[].concat(K||q||[]);return Sq(ee,G=>G.required)?ee:ee.concat(X)}),S=z(()=>{const q=b.value;let K=!1;return q&&q.length&&q.every(X=>X.required?(K=!0,!1):!0),K||e.required}),$=pe();Je(()=>{$.value=e.validateStatus});const D=z(()=>{let q={};return typeof e.label=="string"?q.label=e.label:e.name&&(q.label=String(e.name)),e.messageVariables&&(q=E(E({},q),e.messageVariables)),q}),O=q=>{if(m.value.length===0)return;const{validateFirst:K=!1}=e,{triggerName:X}=q||{};let re=b.value;if(X&&(re=re.filter(G=>{const{trigger:le}=G;return!le&&!w.value.length?!0:ti(le||w.value).includes(X)})),!re.length)return Promise.resolve();const ee=a8(m.value,x.value,re,E({validateMessages:c.validateMessages.value},q),K,D.value);return $.value="validating",f.value=[],ee.catch(G=>G).then(function(){let G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if($.value==="validating"){const le=G.filter(ue=>ue&&ue.errors.length);$.value=le.length?"error":"success",f.value=le.map(ue=>ue.errors),c.onValidate(d.value,!f.value.length,f.value.length?cn(f.value[0]):null)}}),ee},A=()=>{O({triggerName:"blur"})},T=()=>{if(p.value){p.value=!1;return}O({triggerName:"change"})},M=()=>{$.value=e.validateStatus,p.value=!1,f.value=[]},B=()=>{$.value=e.validateStatus,p.value=!0,f.value=[];const q=c.model.value||{},K=x.value,X=zh(q,m.value,!0);Array.isArray(K)?X.o[X.k]=[].concat(y.value):X.o[X.k]=y.value,ht(()=>{p.value=!1})},F=z(()=>e.htmlFor===void 0?h.value:e.htmlFor),P=()=>{const q=F.value;if(!q||!v.value)return;const K=v.value.$el.querySelector(`[id="${q}"]`);K&&K.focus&&K.focus()};o({onFieldBlur:A,onFieldChange:T,clearValidate:M,resetField:B}),wW({id:h,onFieldBlur:()=>{e.autoLink&&A()},onFieldChange:()=>{e.autoLink&&T()},clearValidate:M},z(()=>!!(e.autoLink&&c.model.value&&d.value)));let I=!1;Ne(d,q=>{q?I||(I=!0,c.addField(a,{fieldValue:x,fieldId:h,fieldName:d,resetField:B,clearValidate:M,namePath:m,validateRules:O,rules:b})):(I=!1,c.removeField(a))},{immediate:!0}),st(()=>{c.removeField(a)});const N=Dre(f),R=z(()=>e.validateStatus!==void 0?e.validateStatus:N.value.length?"error":$.value),_=z(()=>({[`${i.value}-item`]:!0,[s.value]:!0,[`${i.value}-item-has-feedback`]:R.value&&e.hasFeedback,[`${i.value}-item-has-success`]:R.value==="success",[`${i.value}-item-has-warning`]:R.value==="warning",[`${i.value}-item-has-error`]:R.value==="error",[`${i.value}-item-is-validating`]:R.value==="validating",[`${i.value}-item-hidden`]:e.hidden})),L=_t({});Bn.useProvide(L),Je(()=>{let q;if(e.hasFeedback){const K=R.value&&Are[R.value];q=K?C("span",{class:ge(`${i.value}-item-feedback-icon`,`${i.value}-item-feedback-icon-${R.value}`)},[C(K,null,null)]):null}E(L,{status:R.value,hasFeedback:e.hasFeedback,feedbackIcon:q,isFormItemInput:!0})});const k=pe(null),H=pe(!1),V=()=>{if(u.value){const q=getComputedStyle(u.value);k.value=parseInt(q.marginBottom,10)}};Qe(()=>{Ne(H,()=>{H.value&&V()},{flush:"post",immediate:!0})});const U=q=>{q||(k.value=null)};return()=>{var q,K;if(e.noStyle)return(q=n.default)===null||q===void 0?void 0:q.call(n);const X=(K=e.help)!==null&&K!==void 0?K:n.help?nn(n.help()):null,re=!!(X!=null&&Array.isArray(X)&&X.length||N.value.length);return H.value=re,l(C("div",{class:[_.value,re?`${i.value}-item-with-help`:"",r.class],ref:u},[C(px,j(j({},r),{},{class:`${i.value}-row`,key:"row"}),{default:()=>{var ee,G,le,ue;return C(dt,null,[C(pre,j(j({},e),{},{htmlFor:F.value,required:S.value,requiredMark:c.requiredMark.value,prefixCls:i.value,onClick:P,label:(ee=e.label)!==null&&ee!==void 0?ee:(G=n.label)===null||G===void 0?void 0:G.call(n)}),null),C(Ere,j(j({},e),{},{errors:X!=null?ti(X):N.value,marginBottom:k.value,prefixCls:i.value,status:R.value,ref:v,help:X,extra:(le=e.extra)!==null&&le!==void 0?le:(ue=n.extra)===null||ue===void 0?void 0:ue.call(n),onErrorVisibleChanged:U}),{default:n.default})])}}),!!k.value&&C("div",{class:`${i.value}-margin-offset`,style:{marginBottom:`-${k.value}px`}},null)]))}}});function c8(e){let t=!1,n=e.length;const r=[];return e.length?new Promise((o,a)=>{e.forEach((i,l)=>{i.catch(s=>(t=!0,s)).then(s=>{n-=1,r[l]=s,!(n>0)&&(t&&a(r),o(r))})})}):Promise.resolve([])}function E2(e){let t=!1;return e&&e.length&&e.every(n=>n.required?(t=!0,!1):!0),t}function D2(e){return e==null?[]:Array.isArray(e)?e:[e]}function Lh(e,t,n){let r=e;t=t.replace(/\[(\w+)\]/g,".$1"),t=t.replace(/^\./,"");const o=t.split(".");let a=0;for(let i=o.length;a<i-1&&!(!r&&!n);++a){const l=o[a];if(l in r)r=r[l];else{if(n)throw new Error("please transfer a valid name path to validate!");break}}return{o:r,k:o[a],v:r?r[o[a]]:null,isValid:r&&o[a]in r}}function Nre(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:be({}),n=arguments.length>2?arguments[2]:void 0;const r=Xd(xn(e)),o=_t({}),a=pe([]),i=y=>{E(xn(e),E(E({},Xd(r)),y)),ht(()=>{Object.keys(o).forEach(w=>{o[w]={autoLink:!1,required:E2(xn(t)[w])}})})},l=function(){let y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],w=arguments.length>1?arguments[1]:void 0;return w.length?y.filter(b=>{const S=D2(b.trigger||"change");return Oq(S,w).length}):y};let s=null;const u=function(y){let w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},b=arguments.length>2?arguments[2]:void 0;const S=[],$={};for(let A=0;A<y.length;A++){const T=y[A],M=Lh(xn(e),T,b);if(!M.isValid)continue;$[T]=M.v;const B=l(xn(t)[T],D2(w&&w.trigger));B.length&&S.push(c(T,M.v,B,w||{}).then(()=>({name:T,errors:[],warnings:[]})).catch(F=>{const P=[],I=[];return F.forEach(N=>{let{rule:{warningOnly:R},errors:_}=N;R?I.push(..._):P.push(..._)}),P.length?Promise.reject({name:T,errors:P,warnings:I}):{name:T,errors:P,warnings:I}}))}const D=c8(S);s=D;const O=D.then(()=>s===D?Promise.resolve($):Promise.reject([])).catch(A=>{const T=A.filter(M=>M&&M.errors.length);return Promise.reject({values:$,errorFields:T,outOfDate:s!==D})});return O.catch(A=>A),O},c=function(y,w,b){let S=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const $=a8([y],w,b,E({validateMessages:nv},S),!!S.validateFirst);return o[y]?(o[y].validateStatus="validating",$.catch(D=>D).then(function(){let D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];var O;if(o[y].validateStatus==="validating"){const A=D.filter(T=>T&&T.errors.length);o[y].validateStatus=A.length?"error":"success",o[y].help=A.length?A.map(T=>T.errors):null,(O=n==null?void 0:n.onValidate)===null||O===void 0||O.call(n,y,!A.length,A.length?cn(o[y].help[0]):null)}}),$):$.catch(D=>D)},d=(y,w)=>{let b=[],S=!0;y?Array.isArray(y)?b=y:b=[y]:(S=!1,b=a.value);const $=u(b,w||{},S);return $.catch(D=>D),$},f=y=>{let w=[];y?Array.isArray(y)?w=y:w=[y]:w=a.value,w.forEach(b=>{o[b]&&E(o[b],{validateStatus:"",help:null})})},p=y=>{const w={autoLink:!1},b=[],S=Array.isArray(y)?y:[y];for(let $=0;$<S.length;$++){const D=S[$];(D==null?void 0:D.validateStatus)==="error"&&(w.validateStatus="error",D.help&&b.push(D.help)),w.required=w.required||(D==null?void 0:D.required)}return w.help=b,w};let v=r,m=!0;const h=y=>{const w=[];a.value.forEach(b=>{const S=Lh(y,b,!1),$=Lh(v,b,!1);(m&&(n==null?void 0:n.immediate)&&S.isValid||!Ob(S.v,$.v))&&w.push(b)}),d(w,{trigger:"change"}),m=!1,v=Xd(cn(y))},g=n==null?void 0:n.debounce;let x=!0;return Ne(t,()=>{a.value=t?Object.keys(xn(t)):[],!x&&n&&n.validateOnRuleChange&&d(),x=!1},{deep:!0,immediate:!0}),Ne(a,()=>{const y={};a.value.forEach(w=>{y[w]=E({},o[w],{autoLink:!1,required:E2(xn(t)[w])}),delete o[w]});for(const w in o)Object.prototype.hasOwnProperty.call(o,w)&&delete o[w];E(o,y)},{immediate:!0}),Ne(e,g&&g.wait?e1(h,g.wait,jq(g,["wait"])):h,{immediate:n&&!!n.immediate,deep:!0}),{modelRef:e,rulesRef:t,initialModel:r,validateInfos:o,resetFields:i,validate:d,validateField:c,mergeValidateInfo:p,clearValidate:f}}const Pre=()=>({layout:Z.oneOf(Un("horizontal","inline","vertical")),labelCol:We(),wrapperCol:We(),colon:Pe(),labelAlign:Ue(),labelWrap:Pe(),prefixCls:String,requiredMark:Xe([String,Boolean]),hideRequiredMark:Pe(),model:Z.object,rules:We(),validateMessages:We(),validateOnRuleChange:Pe(),scrollToFirstError:jt(),onSubmit:Oe(),name:String,validateTrigger:Xe([String,Array]),size:Ue(),disabled:Pe(),onValuesChange:Oe(),onFieldsChange:Oe(),onFinish:Oe(),onFinishFailed:Oe(),onValidate:Oe()});function Ire(e,t){return Ob(ti(e),ti(t))}const _re=he({compatConfig:{MODE:3},name:"AForm",inheritAttrs:!1,props:at(Pre(),{layout:"horizontal",hideRequiredMark:!1,colon:!0}),Item:u8,useForm:Nre,setup(e,t){let{emit:n,slots:r,expose:o,attrs:a}=t;const{prefixCls:i,direction:l,form:s,size:u,disabled:c}=He("form",e),d=z(()=>e.requiredMark===""||e.requiredMark),f=z(()=>{var N;return d.value!==void 0?d.value:s&&((N=s.value)===null||N===void 0?void 0:N.requiredMark)!==void 0?s.value.requiredMark:!e.hideRequiredMark});IM(u),JT(c);const p=z(()=>{var N,R;return(N=e.colon)!==null&&N!==void 0?N:(R=s.value)===null||R===void 0?void 0:R.colon}),{validateMessages:v}=oR(),m=z(()=>E(E(E({},nv),v.value),e.validateMessages)),[h,g]=hx(i),x=z(()=>ge(i.value,{[`${i.value}-${e.layout}`]:!0,[`${i.value}-hide-required-mark`]:f.value===!1,[`${i.value}-rtl`]:l.value==="rtl",[`${i.value}-${u.value}`]:u.value},g.value)),y=be(),w={},b=(N,R)=>{w[N]=R},S=N=>{delete w[N]},$=N=>{const R=!!N,_=R?ti(N).map(M0):[];return R?Object.values(w).filter(L=>_.findIndex(k=>Ire(k,L.fieldName.value))>-1):Object.values(w)},D=N=>{if(!e.model){Jt();return}$(N).forEach(R=>{R.resetField()})},O=N=>{$(N).forEach(R=>{R.clearValidate()})},A=N=>{const{scrollToFirstError:R}=e;if(n("finishFailed",N),R&&N.errorFields.length){let _={};typeof R=="object"&&(_=R),M(N.errorFields[0].name,_)}},T=function(){return P(...arguments)},M=function(N){let R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const _=$(N?[N]:void 0);if(_.length){const L=_[0].fieldId.value,k=L?document.getElementById(L):null;k&&FM(k,E({scrollMode:"if-needed",block:"nearest"},R))}},B=function(){let N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;if(N===!0){const R=[];return Object.values(w).forEach(_=>{let{namePath:L}=_;R.push(L.value)}),C2(e.model,R)}else return C2(e.model,N)},F=(N,R)=>{if(Jt(),!e.model)return Jt(),Promise.reject("Form `model` is required for validateFields to work.");const _=!!N,L=_?ti(N).map(M0):[],k=[];Object.values(w).forEach(U=>{var q;if(_||L.push(U.namePath.value),!(!((q=U.rules)===null||q===void 0)&&q.value.length))return;const K=U.namePath.value;if(!_||tre(L,K)){const X=U.validateRules(E({validateMessages:m.value},R));k.push(X.then(()=>({name:K,errors:[],warnings:[]})).catch(re=>{const ee=[],G=[];return re.forEach(le=>{let{rule:{warningOnly:ue},errors:me}=le;ue?G.push(...me):ee.push(...me)}),ee.length?Promise.reject({name:K,errors:ee,warnings:G}):{name:K,errors:ee,warnings:G}}))}});const H=c8(k);y.value=H;const V=H.then(()=>y.value===H?Promise.resolve(B(L)):Promise.reject([])).catch(U=>{const q=U.filter(K=>K&&K.errors.length);return Promise.reject({values:B(L),errorFields:q,outOfDate:y.value!==H})});return V.catch(U=>U),V},P=function(){return F(...arguments)},I=N=>{N.preventDefault(),N.stopPropagation(),n("submit",N),e.model&&F().then(_=>{n("finish",_)}).catch(_=>{A(_)})};return o({resetFields:D,clearValidate:O,validateFields:F,getFieldsValue:B,validate:T,scrollToField:M}),l8({model:z(()=>e.model),name:z(()=>e.name),labelAlign:z(()=>e.labelAlign),labelCol:z(()=>e.labelCol),labelWrap:z(()=>e.labelWrap),wrapperCol:z(()=>e.wrapperCol),vertical:z(()=>e.layout==="vertical"),colon:p,requiredMark:f,validateTrigger:z(()=>e.validateTrigger),rules:z(()=>e.rules),addField:b,removeField:S,onValidate:(N,R,_)=>{n("validate",N,R,_)},validateMessages:m}),Ne(()=>e.rules,()=>{e.validateOnRuleChange&&F()}),()=>{var N;return h(C("form",j(j({},a),{},{onSubmit:I,class:[x.value,a.class]}),[(N=r.default)===null||N===void 0?void 0:N.call(r)]))}}}),qa=_re;qa.useInjectFormItemContext=Cn;qa.ItemRest=Qf;qa.install=function(e){return e.component(qa.name,qa),e.component(qa.Item.name,qa.Item),e.component(Qf.name,Qf),e};const Bre=new ft("antCheckboxEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),Fre=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:E(E({},rt(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:E(E({},rt(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:E(E({},rt(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:E({},ya(e))},[`${t}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.checkboxSize/14*5,height:e.checkboxSize/14*8,border:`${e.lineWidthBold}px solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[t]:{"&-indeterminate":{[`${t}-inner`]:{"&:after":{top:"50%",insetInlineStart:"50%",width:e.fontSizeLG/2,height:e.fontSizeLG/2,backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${n}:hover ${t}:after`]:{visibility:"visible"},[`
- ${n}:not(${n}-disabled),
- ${t}:not(${t}-disabled)
- `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}},"&:after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderRadius:e.borderRadiusSM,visibility:"hidden",border:`${e.lineWidthBold}px solid ${e.colorPrimary}`,animationName:Bre,animationDuration:e.motionDurationSlow,animationTimingFunction:"ease-in-out",animationFillMode:"backwards",content:'""',transition:`all ${e.motionDurationSlow}`}},[`
- ${n}-checked:not(${n}-disabled),
- ${t}-checked:not(${t}-disabled)
- `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}:after`]:{borderColor:e.colorPrimaryHover}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function av(e,t){const n=qe(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[Fre(n)]}const d8=nt("Checkbox",(e,t)=>{let{prefixCls:n}=t;return[av(n,e)]}),Rre=e=>{const{prefixCls:t,componentCls:n,antCls:r}=e,o=`${n}-menu-item`,a=`
- &${o}-expand ${o}-expand-icon,
- ${o}-loading-icon
- `,i=Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2);return[{[n]:{width:e.controlWidth}},{[`${n}-dropdown`]:[av(`${t}-checkbox`,e),{[`&${r}-select-dropdown`]:{padding:0}},{[n]:{"&-checkbox":{top:0,marginInlineEnd:e.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${n}-menu-empty`]:{[`${n}-menu`]:{width:"100%",height:"auto",[o]:{color:e.colorTextDisabled}}}},"&-menu":{flexGrow:1,minWidth:e.controlItemWidth,height:e.dropdownHeight,margin:0,padding:e.paddingXXS,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},"&-item":E(E({},gn),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:`${i}px ${e.paddingSM}px`,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationMid}`,borderRadius:e.borderRadiusSM,"&:hover":{background:e.controlItemBgHover},"&-disabled":{color:e.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[a]:{color:e.colorTextDisabled}},[`&-active:not(${o}-disabled)`]:{["&, &:hover"]:{fontWeight:e.fontWeightStrong,backgroundColor:e.controlItemBgActive}},"&-content":{flex:"auto"},[a]:{marginInlineStart:e.paddingXXS,color:e.colorTextDescription,fontSize:e.fontSizeIcon},"&-keyword":{color:e.colorHighlight}})}}}]},{[`${n}-dropdown-rtl`]:{direction:"rtl"}},Is(e)]},zre=nt("Cascader",e=>[Rre(e)],{controlWidth:184,controlItemWidth:111,dropdownHeight:180});var Lre=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function kre(e,t,n){const r=e.toLowerCase().split(t).reduce((i,l,s)=>s===0?[l]:[...i,t,l],[]),o=[];let a=0;return r.forEach((i,l)=>{const s=a+i.length;let u=e.slice(a,s);a=s,l%2===1&&(u=C("span",{class:`${n}-menu-item-keyword`,key:"seperator"},[u])),o.push(u)}),o}const Hre=e=>{let{inputValue:t,path:n,prefixCls:r,fieldNames:o}=e;const a=[],i=t.toLowerCase();return n.forEach((l,s)=>{s!==0&&a.push(" / ");let u=l[o.label];const c=typeof u;(c==="string"||c==="number")&&(u=kre(String(u),i,r)),a.push(u)}),a};function jre(){return E(E({},pt(YI(),["customSlots","checkable","options"])),{multiple:{type:Boolean,default:void 0},size:String,bordered:{type:Boolean,default:void 0},placement:{type:String},suffixIcon:Z.any,status:String,options:Array,popupClassName:String,dropdownClassName:String,"onUpdate:value":Function})}const Vre=he({compatConfig:{MODE:3},name:"ACascader",inheritAttrs:!1,props:at(jre(),{bordered:!0,choiceTransitionName:"",allowClear:!0}),setup(e,t){let{attrs:n,expose:r,slots:o,emit:a}=t;const i=Cn(),l=Bn.useInject(),s=z(()=>$o(l.status,e.status)),{prefixCls:u,rootPrefixCls:c,getPrefixCls:d,direction:f,getPopupContainer:p,renderEmpty:v,size:m,disabled:h}=He("cascader",e),g=z(()=>d("select",e.prefixCls)),{compactSize:x,compactItemClassnames:y}=di(g,f),w=z(()=>x.value||m.value),b=Fr(),S=z(()=>{var R;return(R=h.value)!==null&&R!==void 0?R:b.value}),[$,D]=r1(g),[O]=zre(u),A=z(()=>f.value==="rtl"),T=z(()=>{if(!e.showSearch)return e.showSearch;let R={render:Hre};return typeof e.showSearch=="object"&&(R=E(E({},R),e.showSearch)),R}),M=z(()=>ge(e.popupClassName||e.dropdownClassName,`${u.value}-dropdown`,{[`${u.value}-dropdown-rtl`]:A.value},D.value)),B=be();r({focus(){var R;(R=B.value)===null||R===void 0||R.focus()},blur(){var R;(R=B.value)===null||R===void 0||R.blur()}});const F=function(){for(var R=arguments.length,_=new Array(R),L=0;L<R;L++)_[L]=arguments[L];a("update:value",_[0]),a("change",..._),i.onFieldChange()},P=function(){for(var R=arguments.length,_=new Array(R),L=0;L<R;L++)_[L]=arguments[L];a("blur",..._),i.onFieldBlur()},I=z(()=>e.showArrow!==void 0?e.showArrow:e.loading||!e.multiple),N=z(()=>e.placement!==void 0?e.placement:f.value==="rtl"?"bottomRight":"bottomLeft");return()=>{var R,_;const{notFoundContent:L=(R=o.notFoundContent)===null||R===void 0?void 0:R.call(o),expandIcon:k=(_=o.expandIcon)===null||_===void 0?void 0:_.call(o),multiple:H,bordered:V,allowClear:U,choiceTransitionName:q,transitionName:K,id:X=i.id.value}=e,re=Lre(e,["notFoundContent","expandIcon","multiple","bordered","allowClear","choiceTransitionName","transitionName","id"]),ee=L||v("Cascader");let G=k;k||(G=A.value?C(oi,null,null):C(xo,null,null));const le=C("span",{class:`${g.value}-menu-item-loading-icon`},[C(Lr,{spin:!0},null)]),{suffixIcon:ue,removeIcon:me,clearIcon:Se}=Ub(E(E({},e),{hasFeedback:l.hasFeedback,feedbackIcon:l.feedbackIcon,multiple:H,prefixCls:g.value,showArrow:I.value}),o);return O($(C(one,j(j(j({},re),n),{},{id:X,prefixCls:g.value,class:[u.value,{[`${g.value}-lg`]:w.value==="large",[`${g.value}-sm`]:w.value==="small",[`${g.value}-rtl`]:A.value,[`${g.value}-borderless`]:!V,[`${g.value}-in-form-item`]:l.isFormItemInput},er(g.value,s.value,l.hasFeedback),y.value,n.class,D.value],disabled:S.value,direction:f.value,placement:N.value,notFoundContent:ee,allowClear:U,showSearch:T.value,expandIcon:G,inputIcon:ue,removeIcon:me,clearIcon:Se,loadingIcon:le,checkable:!!H,dropdownClassName:M.value,dropdownPrefixCls:u.value,choiceTransitionName:xr(c.value,"",q),transitionName:xr(c.value,Tb(N.value),K),getPopupContainer:p==null?void 0:p.value,customSlots:E(E({},o),{checkable:()=>C("span",{class:`${u.value}-checkbox-inner`},null)}),tagRender:e.tagRender||o.tagRender,displayRender:e.displayRender||o.displayRender,maxTagPlaceholder:e.maxTagPlaceholder||o.maxTagPlaceholder,showArrow:l.hasFeedback||e.showArrow,onChange:F,onBlur:P,ref:B}),o)))}}}),Wre=rn(E(Vre,{SHOW_CHILD:kI,SHOW_PARENT:LI})),Ure=()=>({name:String,prefixCls:String,options:bt([]),disabled:Boolean,id:String}),Kre=()=>E(E({},Ure()),{defaultValue:bt(),value:bt(),onChange:Oe(),"onUpdate:value":Oe()}),qre=()=>({prefixCls:String,defaultChecked:Pe(),checked:Pe(),disabled:Pe(),isGroup:Pe(),value:Z.any,name:String,id:String,indeterminate:Pe(),type:Ue("checkbox"),autofocus:Pe(),onChange:Oe(),"onUpdate:checked":Oe(),onClick:Oe(),skipGroup:Pe(!1)}),Gre=()=>E(E({},qre()),{indeterminate:Pe(!1)}),f8=Symbol("CheckboxGroupContext");var A2=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Zr=he({compatConfig:{MODE:3},name:"ACheckbox",inheritAttrs:!1,__ANT_CHECKBOX:!0,props:Gre(),setup(e,t){let{emit:n,attrs:r,slots:o,expose:a}=t;const i=Cn(),l=Bn.useInject(),{prefixCls:s,direction:u,disabled:c}=He("checkbox",e),[d,f]=d8(s),p=lt(f8,void 0),v=Symbol("checkboxUniId"),m=z(()=>(p==null?void 0:p.disabled.value)||c.value);Je(()=>{!e.skipGroup&&p&&p.registerValue(v,e.value)}),st(()=>{p&&p.cancelValue(v)}),Qe(()=>{Jt(!!(e.checked!==void 0||p||e.value===void 0))});const h=w=>{const b=w.target.checked;n("update:checked",b),n("change",w)},g=be();return a({focus:()=>{var w;(w=g.value)===null||w===void 0||w.focus()},blur:()=>{var w;(w=g.value)===null||w===void 0||w.blur()}}),()=>{var w;const b=Lt((w=o.default)===null||w===void 0?void 0:w.call(o)),{indeterminate:S,skipGroup:$,id:D=i.id.value}=e,O=A2(e,["indeterminate","skipGroup","id"]),{onMouseenter:A,onMouseleave:T,onInput:M,class:B,style:F}=r,P=A2(r,["onMouseenter","onMouseleave","onInput","class","style"]),I=E(E(E(E({},O),{id:D,prefixCls:s.value}),P),{disabled:m.value});p&&!$?(I.onChange=function(){for(var L=arguments.length,k=new Array(L),H=0;H<L;H++)k[H]=arguments[H];n("change",...k),p.toggleOption({label:b,value:e.value})},I.name=p.name.value,I.checked=p.mergedValue.value.includes(e.value),I.disabled=m.value||p.disabled.value,I.indeterminate=S):I.onChange=h;const N=ge({[`${s.value}-wrapper`]:!0,[`${s.value}-rtl`]:u.value==="rtl",[`${s.value}-wrapper-checked`]:I.checked,[`${s.value}-wrapper-disabled`]:I.disabled,[`${s.value}-wrapper-in-form-item`]:l.isFormItemInput},B,f.value),R=ge({[`${s.value}-indeterminate`]:S},f.value);return d(C("label",{class:N,style:F,onMouseenter:A,onMouseleave:T},[C(sI,j(j({"aria-checked":S?"mixed":void 0},I),{},{class:R,ref:g,disabled:m.value}),null),b.length?C("span",null,[b]):null]))}}}),Sp=he({compatConfig:{MODE:3},name:"ACheckboxGroup",inheritAttrs:!1,props:Kre(),setup(e,t){let{slots:n,attrs:r,emit:o,expose:a}=t;const i=Cn(),{prefixCls:l,direction:s}=He("checkbox",e),u=z(()=>`${l.value}-group`),[c,d]=d8(u),f=be((e.value===void 0?e.defaultValue:e.value)||[]);Ne(()=>e.value,()=>{f.value=e.value||[]});const p=z(()=>e.options.map(w=>typeof w=="string"||typeof w=="number"?{label:w,value:w}:w)),v=be(Symbol()),m=be(new Map),h=w=>{m.value.delete(w),v.value=Symbol()},g=(w,b)=>{m.value.set(w,b),v.value=Symbol()},x=be(new Map);return Ne(v,()=>{const w=new Map;for(const b of m.value.values())w.set(b,!0);x.value=w}),it(f8,{cancelValue:h,registerValue:g,toggleOption:w=>{const b=f.value.indexOf(w.value),S=[...f.value];b===-1?S.push(w.value):S.splice(b,1),e.value===void 0&&(f.value=S);const $=S.filter(D=>x.value.has(D)).sort((D,O)=>{const A=p.value.findIndex(M=>M.value===D),T=p.value.findIndex(M=>M.value===O);return A-T});o("update:value",$),o("change",$),i.onFieldChange()},mergedValue:f,name:z(()=>e.name),disabled:z(()=>e.disabled)}),a({mergedValue:f}),()=>{var w;const{id:b=i.id.value}=e;let S=null;return p.value&&p.value.length>0&&(S=p.value.map($=>{var D;return C(Zr,{prefixCls:l.value,key:$.value.toString(),disabled:"disabled"in $?$.disabled:e.disabled,indeterminate:$.indeterminate,value:$.value,checked:f.value.indexOf($.value)!==-1,onChange:$.onChange,class:`${u.value}-item`},{default:()=>[n.label!==void 0?(D=n.label)===null||D===void 0?void 0:D.call(n,$):$.label]})})),c(C("div",j(j({},r),{},{class:[u.value,{[`${u.value}-rtl`]:s.value==="rtl"},r.class,d.value],id:b}),[S||((w=n.default)===null||w===void 0?void 0:w.call(n))]))}}});Zr.Group=Sp;Zr.install=function(e){return e.component(Zr.name,Zr),e.component(Sp.name,Sp),e};const Xre={useBreakpoint:Bs},Yre=rn(ov),Zre=e=>{const{componentCls:t,commentBg:n,commentPaddingBase:r,commentNestIndent:o,commentFontSizeBase:a,commentFontSizeSm:i,commentAuthorNameColor:l,commentAuthorTimeColor:s,commentActionColor:u,commentActionHoverColor:c,commentActionsMarginBottom:d,commentActionsMarginTop:f,commentContentDetailPMarginBottom:p}=e;return{[t]:{position:"relative",backgroundColor:n,[`${t}-inner`]:{display:"flex",padding:r},[`${t}-avatar`]:{position:"relative",flexShrink:0,marginRight:e.marginSM,cursor:"pointer",img:{width:"32px",height:"32px",borderRadius:"50%"}},[`${t}-content`]:{position:"relative",flex:"1 1 auto",minWidth:"1px",fontSize:a,wordWrap:"break-word",["&-author"]:{display:"flex",flexWrap:"wrap",justifyContent:"flex-start",marginBottom:e.marginXXS,fontSize:a,["& > a,& > span"]:{paddingRight:e.paddingXS,fontSize:i,lineHeight:"18px"},["&-name"]:{color:l,fontSize:a,transition:`color ${e.motionDurationSlow}`,["> *"]:{color:l,["&:hover"]:{color:l}}},["&-time"]:{color:s,whiteSpace:"nowrap",cursor:"auto"}},["&-detail p"]:{marginBottom:p,whiteSpace:"pre-wrap"}},[`${t}-actions`]:{marginTop:f,marginBottom:d,paddingLeft:0,["> li"]:{display:"inline-block",color:u,["> span"]:{marginRight:"10px",color:u,fontSize:i,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,userSelect:"none",["&:hover"]:{color:c}}}},[`${t}-nested`]:{marginLeft:o},"&-rtl":{direction:"rtl"}}}},Jre=nt("Comment",e=>{const t=qe(e,{commentBg:"inherit",commentPaddingBase:`${e.paddingMD}px 0`,commentNestIndent:"44px",commentFontSizeBase:e.fontSize,commentFontSizeSm:e.fontSizeSM,commentAuthorNameColor:e.colorTextTertiary,commentAuthorTimeColor:e.colorTextPlaceholder,commentActionColor:e.colorTextTertiary,commentActionHoverColor:e.colorTextSecondary,commentActionsMarginBottom:"inherit",commentActionsMarginTop:e.marginSM,commentContentDetailPMarginBottom:"inherit"});return[Zre(t)]}),Qre=()=>({actions:Array,author:Z.any,avatar:Z.any,content:Z.any,prefixCls:String,datetime:Z.any}),eoe=he({compatConfig:{MODE:3},name:"AComment",inheritAttrs:!1,props:Qre(),slots:Object,setup(e,t){let{slots:n,attrs:r}=t;const{prefixCls:o,direction:a}=He("comment",e),[i,l]=Jre(o),s=(c,d)=>C("div",{class:`${c}-nested`},[d]),u=c=>!c||!c.length?null:c.map((f,p)=>C("li",{key:`action-${p}`},[f]));return()=>{var c,d,f,p,v,m,h,g,x,y,w;const b=o.value,S=(c=e.actions)!==null&&c!==void 0?c:(d=n.actions)===null||d===void 0?void 0:d.call(n),$=(f=e.author)!==null&&f!==void 0?f:(p=n.author)===null||p===void 0?void 0:p.call(n),D=(v=e.avatar)!==null&&v!==void 0?v:(m=n.avatar)===null||m===void 0?void 0:m.call(n),O=(h=e.content)!==null&&h!==void 0?h:(g=n.content)===null||g===void 0?void 0:g.call(n),A=(x=e.datetime)!==null&&x!==void 0?x:(y=n.datetime)===null||y===void 0?void 0:y.call(n),T=C("div",{class:`${b}-avatar`},[typeof D=="string"?C("img",{src:D,alt:"comment-avatar"},null):D]),M=S?C("ul",{class:`${b}-actions`},[u(Array.isArray(S)?S:[S])]):null,B=C("div",{class:`${b}-content-author`},[$&&C("span",{class:`${b}-content-author-name`},[$]),A&&C("span",{class:`${b}-content-author-time`},[A])]),F=C("div",{class:`${b}-content`},[B,C("div",{class:`${b}-content-detail`},[O]),M]),P=C("div",{class:`${b}-inner`},[T,F]),I=Lt((w=n.default)===null||w===void 0?void 0:w.call(n));return i(C("div",j(j({},r),{},{class:[b,{[`${b}-rtl`]:a.value==="rtl"},r.class,l.value]}),[P,I&&I.length?s(b,I):null]))}}}),toe=rn(eoe);let af=E({},cr.Modal);function noe(e){e?af=E(E({},af),e):af=E({},cr.Modal)}function roe(){return af}const P0="internalMark",lf=he({compatConfig:{MODE:3},name:"ALocaleProvider",props:{locale:{type:Object},ANT_MARK__:String},setup(e,t){let{slots:n}=t;Jt(e.ANT_MARK__===P0);const r=_t({antLocale:E(E({},e.locale),{exist:!0}),ANT_MARK__:P0});return it("localeData",r),Ne(()=>e.locale,o=>{noe(o&&o.Modal),r.antLocale=E(E({},o),{exist:!0})},{immediate:!0}),()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}});lf.install=function(e){return e.component(lf.name,lf),e};const p8=rn(lf),iv=he({name:"Notice",inheritAttrs:!1,props:["prefixCls","duration","updateMark","noticeKey","closeIcon","closable","props","onClick","onClose","holder","visible"],setup(e,t){let{attrs:n,slots:r}=t,o,a=!1;const i=z(()=>e.duration===void 0?4.5:e.duration),l=()=>{i.value&&!a&&(o=setTimeout(()=>{u()},i.value*1e3))},s=()=>{o&&(clearTimeout(o),o=null)},u=d=>{d&&d.stopPropagation(),s();const{onClose:f,noticeKey:p}=e;f&&f(p)},c=()=>{s(),l()};return Qe(()=>{l()}),Cr(()=>{a=!0,s()}),Ne([i,()=>e.updateMark,()=>e.visible],(d,f)=>{let[p,v,m]=d,[h,g,x]=f;(p!==h||v!==g||m!==x&&x)&&c()},{flush:"post"}),()=>{var d,f;const{prefixCls:p,closable:v,closeIcon:m=(d=r.closeIcon)===null||d===void 0?void 0:d.call(r),onClick:h,holder:g}=e,{class:x,style:y}=n,w=`${p}-notice`,b=Object.keys(n).reduce(($,D)=>((D.startsWith("data-")||D.startsWith("aria-")||D==="role")&&($[D]=n[D]),$),{}),S=C("div",j({class:ge(w,x,{[`${w}-closable`]:v}),style:y,onMouseenter:s,onMouseleave:l,onClick:h},b),[C("div",{class:`${w}-content`},[(f=r.default)===null||f===void 0?void 0:f.call(r)]),v?C("a",{tabindex:0,onClick:u,class:`${w}-close`},[m||C("span",{class:`${w}-close-x`},null)]):null]);return g?C(Hy,{to:g},{default:()=>S}):S}}});var ooe=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let O2=0;const aoe=Date.now();function T2(){const e=O2;return O2+=1,`rcNotification_${aoe}_${e}`}const I0=he({name:"Notification",inheritAttrs:!1,props:["prefixCls","transitionName","animation","maxCount","closeIcon","hashId"],setup(e,t){let{attrs:n,expose:r,slots:o}=t;const a=new Map,i=be([]),l=z(()=>{const{prefixCls:c,animation:d="fade"}=e;let f=e.transitionName;return!f&&d&&(f=`${c}-${d}`),$m(f)}),s=(c,d)=>{const f=c.key||T2(),p=E(E({},c),{key:f}),{maxCount:v}=e,m=i.value.map(g=>g.notice.key).indexOf(f),h=i.value.concat();m!==-1?h.splice(m,1,{notice:p,holderCallback:d}):(v&&i.value.length>=v&&(p.key=h[0].notice.key,p.updateMark=T2(),p.userPassKey=f,h.shift()),h.push({notice:p,holderCallback:d})),i.value=h},u=c=>{i.value=i.value.filter(d=>{let{notice:{key:f,userPassKey:p}}=d;return(p||f)!==c})};return r({add:s,remove:u,notices:i}),()=>{var c;const{prefixCls:d,closeIcon:f=(c=o.closeIcon)===null||c===void 0?void 0:c.call(o,{prefixCls:d})}=e,p=i.value.map((m,h)=>{let{notice:g,holderCallback:x}=m;const y=h===i.value.length-1?g.updateMark:void 0,{key:w,userPassKey:b}=g,{content:S}=g,$=E(E(E({prefixCls:d,closeIcon:typeof f=="function"?f({prefixCls:d}):f},g),g.props),{key:w,noticeKey:b||w,updateMark:y,onClose:D=>{var O;u(D),(O=g.onClose)===null||O===void 0||O.call(g)},onClick:g.onClick});return x?C("div",{key:w,class:`${d}-hook-holder`,ref:D=>{typeof w>"u"||(D?(a.set(w,D),x(D,$)):a.delete(w))}},null):C(iv,j(j({},$),{},{class:ge($.class,e.hashId)}),{default:()=>[typeof S=="function"?S({prefixCls:d}):S]})}),v={[d]:1,[n.class]:!!n.class,[e.hashId]:!0};return C("div",{class:v,style:n.style||{top:"65px",left:"50%"}},[C(rm,j({tag:"div"},l.value),{default:()=>[p]})])}}});I0.newInstance=function(t,n){const r=t||{},{name:o="notification",getContainer:a,appContext:i,prefixCls:l,rootPrefixCls:s,transitionName:u,hasTransitionName:c,useStyle:d}=r,f=ooe(r,["name","getContainer","appContext","prefixCls","rootPrefixCls","transitionName","hasTransitionName","useStyle"]),p=document.createElement("div");a?a().appendChild(p):document.body.appendChild(p);const v=he({compatConfig:{MODE:3},name:"NotificationWrapper",setup(h,g){let{attrs:x}=g;const y=pe(),w=z(()=>Hn.getPrefixCls(o,l)),[,b]=d(w);return Qe(()=>{n({notice(S){var $;($=y.value)===null||$===void 0||$.add(S)},removeNotice(S){var $;($=y.value)===null||$===void 0||$.remove(S)},destroy(){as(null,p),p.parentNode&&p.parentNode.removeChild(p)},component:y})}),()=>{const S=Hn,$=S.getRootPrefixCls(s,w.value),D=c?u:`${w.value}-${u}`;return C(sv,j(j({},S),{},{prefixCls:$}),{default:()=>[C(I0,j(j({ref:y},x),{},{prefixCls:w.value,transitionName:D,hashId:b.value}),null)]})}}}),m=C(v,f);m.appContext=i||m.appContext,as(m,p)};const m8=I0;let M2=0;const ioe=Date.now();function N2(){const e=M2;return M2+=1,`rcNotification_${ioe}_${e}`}const loe=he({name:"HookNotification",inheritAttrs:!1,props:["prefixCls","transitionName","animation","maxCount","closeIcon","hashId","remove","notices","getStyles","getClassName","onAllRemoved","getContainer"],setup(e,t){let{attrs:n,slots:r}=t;const o=new Map,a=z(()=>e.notices),i=z(()=>{let c=e.transitionName;if(!c&&e.animation)switch(typeof e.animation){case"string":c=e.animation;break;case"function":c=e.animation().name;break;case"object":c=e.animation.name;break;default:c=`${e.prefixCls}-fade`;break}return $m(c)}),l=c=>e.remove(c),s=be({});Ne(a,()=>{const c={};Object.keys(s.value).forEach(d=>{c[d]=[]}),e.notices.forEach(d=>{const{placement:f="topRight"}=d.notice;f&&(c[f]=c[f]||[],c[f].push(d))}),s.value=c});const u=z(()=>Object.keys(s.value));return()=>{var c;const{prefixCls:d,closeIcon:f=(c=r.closeIcon)===null||c===void 0?void 0:c.call(r,{prefixCls:d})}=e,p=u.value.map(v=>{var m,h;const g=s.value[v],x=(m=e.getClassName)===null||m===void 0?void 0:m.call(e,v),y=(h=e.getStyles)===null||h===void 0?void 0:h.call(e,v),w=g.map(($,D)=>{let{notice:O,holderCallback:A}=$;const T=D===a.value.length-1?O.updateMark:void 0,{key:M,userPassKey:B}=O,{content:F}=O,P=E(E(E({prefixCls:d,closeIcon:typeof f=="function"?f({prefixCls:d}):f},O),O.props),{key:M,noticeKey:B||M,updateMark:T,onClose:I=>{var N;l(I),(N=O.onClose)===null||N===void 0||N.call(O)},onClick:O.onClick});return A?C("div",{key:M,class:`${d}-hook-holder`,ref:I=>{typeof M>"u"||(I?(o.set(M,I),A(I,P)):o.delete(M))}},null):C(iv,j(j({},P),{},{class:ge(P.class,e.hashId)}),{default:()=>[typeof F=="function"?F({prefixCls:d}):F]})}),b={[d]:1,[`${d}-${v}`]:1,[n.class]:!!n.class,[e.hashId]:!0,[x]:!!x};function S(){var $;g.length>0||(Reflect.deleteProperty(s.value,v),($=e.onAllRemoved)===null||$===void 0||$.call(e))}return C("div",{key:v,class:b,style:n.style||y||{top:"65px",left:"50%"}},[C(rm,j(j({tag:"div"},i.value),{},{onAfterLeave:S}),{default:()=>[w]})])});return C(hN,{getContainer:e.getContainer},{default:()=>[p]})}}}),soe=loe;var uoe=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const coe=()=>document.body;let P2=0;function doe(){const e={};for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(o=>{o&&Object.keys(o).forEach(a=>{const i=o[a];i!==void 0&&(e[a]=i)})}),e}function v8(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{getContainer:t=coe,motion:n,prefixCls:r,maxCount:o,getClassName:a,getStyles:i,onAllRemoved:l}=e,s=uoe(e,["getContainer","motion","prefixCls","maxCount","getClassName","getStyles","onAllRemoved"]),u=pe([]),c=pe(),d=(g,x)=>{const y=g.key||N2(),w=E(E({},g),{key:y}),b=u.value.map($=>$.notice.key).indexOf(y),S=u.value.concat();b!==-1?S.splice(b,1,{notice:w,holderCallback:x}):(o&&u.value.length>=o&&(w.key=S[0].notice.key,w.updateMark=N2(),w.userPassKey=y,S.shift()),S.push({notice:w,holderCallback:x})),u.value=S},f=g=>{u.value=u.value.filter(x=>{let{notice:{key:y,userPassKey:w}}=x;return(w||y)!==g})},p=()=>{u.value=[]},v=z(()=>C(soe,{ref:c,prefixCls:r,maxCount:o,notices:u.value,remove:f,getClassName:a,getStyles:i,animation:n,hashId:e.hashId,onAllRemoved:l,getContainer:t},null)),m=pe([]),h={open:g=>{const x=doe(s,g);(x.key===null||x.key===void 0)&&(x.key=`vc-notification-${P2}`,P2+=1),m.value=[...m.value,{type:"open",config:x}]},close:g=>{m.value=[...m.value,{type:"close",key:g}]},destroy:()=>{m.value=[...m.value,{type:"destroy"}]}};return Ne(m,()=>{m.value.length&&(m.value.forEach(g=>{switch(g.type){case"open":d(g.config);break;case"close":f(g.key);break;case"destroy":p();break}}),m.value=[])}),[h,()=>v.value]}const foe=e=>{const{componentCls:t,iconCls:n,boxShadowSecondary:r,colorBgElevated:o,colorSuccess:a,colorError:i,colorWarning:l,colorInfo:s,fontSizeLG:u,motionEaseInOutCirc:c,motionDurationSlow:d,marginXS:f,paddingXS:p,borderRadiusLG:v,zIndexPopup:m,messageNoticeContentPadding:h}=e,g=new ft("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:p,transform:"translateY(0)",opacity:1}}),x=new ft("MessageMoveOut",{"0%":{maxHeight:e.height,padding:p,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}});return[{[t]:E(E({},rt(e)),{position:"fixed",top:f,width:"100%",pointerEvents:"none",zIndex:m,[`${t}-move-up`]:{animationFillMode:"forwards"},[`
- ${t}-move-up-appear,
- ${t}-move-up-enter
- `]:{animationName:g,animationDuration:d,animationPlayState:"paused",animationTimingFunction:c},[`
- ${t}-move-up-appear${t}-move-up-appear-active,
- ${t}-move-up-enter${t}-move-up-enter-active
- `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:x,animationDuration:d,animationPlayState:"paused",animationTimingFunction:c},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[`${t}-notice`]:{padding:p,textAlign:"center",[n]:{verticalAlign:"text-bottom",marginInlineEnd:f,fontSize:u},[`${t}-notice-content`]:{display:"inline-block",padding:h,background:o,borderRadius:v,boxShadow:r,pointerEvents:"all"},[`${t}-success ${n}`]:{color:a},[`${t}-error ${n}`]:{color:i},[`${t}-warning ${n}`]:{color:l},[`
- ${t}-info ${n},
- ${t}-loading ${n}`]:{color:s}}},{[`${t}-notice-pure-panel`]:{padding:0,textAlign:"start"}}]},gx=nt("Message",e=>{const t=qe(e,{messageNoticeContentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`});return[foe(t)]},e=>({height:150,zIndexPopup:e.zIndexPopupBase+10}));var poe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"};const moe=poe;function I2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){voe(e,o,n[o])})}return e}function voe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yx=function(t,n){var r=I2({},t,n.attrs);return C(vt,I2({},r,{icon:moe}),null)};yx.displayName="ArrowLeftOutlined";yx.inheritAttrs=!1;const hoe=yx;var goe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M869 487.8L491.2 159.9c-2.9-2.5-6.6-3.9-10.5-3.9h-88.5c-7.4 0-10.8 9.2-5.2 14l350.2 304H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h585.1L386.9 854c-5.6 4.9-2.2 14 5.2 14h91.5c1.9 0 3.8-.7 5.2-2L869 536.2a32.07 32.07 0 000-48.4z"}}]},name:"arrow-right",theme:"outlined"};const yoe=goe;function _2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){boe(e,o,n[o])})}return e}function boe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var bx=function(t,n){var r=_2({},t,n.attrs);return C(vt,_2({},r,{icon:yoe}),null)};bx.displayName="ArrowRightOutlined";bx.inheritAttrs=!1;const xoe=bx;var woe={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"};const Soe=woe;function B2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){Coe(e,o,n[o])})}return e}function Coe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xx=function(t,n){var r=B2({},t,n.attrs);return C(vt,B2({},r,{icon:Soe}),null)};xx.displayName="BarsOutlined";xx.inheritAttrs=!1;const $oe=xx;var Eoe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"};const Doe=Eoe;function F2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){Aoe(e,o,n[o])})}return e}function Aoe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var wx=function(t,n){var r=F2({},t,n.attrs);return C(vt,F2({},r,{icon:Doe}),null)};wx.displayName="CalendarOutlined";wx.inheritAttrs=!1;const h8=wx;var Ooe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"};const Toe=Ooe;function R2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){Moe(e,o,n[o])})}return e}function Moe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Sx=function(t,n){var r=R2({},t,n.attrs);return C(vt,R2({},r,{icon:Toe}),null)};Sx.displayName="CaretDownFilled";Sx.inheritAttrs=!1;const Noe=Sx;var Poe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"};const Ioe=Poe;function z2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){_oe(e,o,n[o])})}return e}function _oe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Cx=function(t,n){var r=z2({},t,n.attrs);return C(vt,z2({},r,{icon:Ioe}),null)};Cx.displayName="CaretDownOutlined";Cx.inheritAttrs=!1;const Boe=Cx;var Foe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"};const Roe=Foe;function L2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){zoe(e,o,n[o])})}return e}function zoe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var $x=function(t,n){var r=L2({},t,n.attrs);return C(vt,L2({},r,{icon:Roe}),null)};$x.displayName="CaretUpOutlined";$x.inheritAttrs=!1;const Loe=$x;var koe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"};const Hoe=koe;function k2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){joe(e,o,n[o])})}return e}function joe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ex=function(t,n){var r=k2({},t,n.attrs);return C(vt,k2({},r,{icon:Hoe}),null)};Ex.displayName="ClockCircleOutlined";Ex.inheritAttrs=!1;const g8=Ex;var Voe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"};const Woe=Voe;function H2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){Uoe(e,o,n[o])})}return e}function Uoe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Dx=function(t,n){var r=H2({},t,n.attrs);return C(vt,H2({},r,{icon:Woe}),null)};Dx.displayName="CopyOutlined";Dx.inheritAttrs=!1;const Koe=Dx;var qoe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};const Goe=qoe;function j2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){Xoe(e,o,n[o])})}return e}function Xoe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ax=function(t,n){var r=j2({},t,n.attrs);return C(vt,j2({},r,{icon:Goe}),null)};Ax.displayName="DeleteOutlined";Ax.inheritAttrs=!1;const y8=Ax;var Yoe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"};const Zoe=Yoe;function V2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){Joe(e,o,n[o])})}return e}function Joe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ox=function(t,n){var r=V2({},t,n.attrs);return C(vt,V2({},r,{icon:Zoe}),null)};Ox.displayName="DoubleLeftOutlined";Ox.inheritAttrs=!1;const W2=Ox;var Qoe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"};const eae=Qoe;function U2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){tae(e,o,n[o])})}return e}function tae(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Tx=function(t,n){var r=U2({},t,n.attrs);return C(vt,U2({},r,{icon:eae}),null)};Tx.displayName="DoubleRightOutlined";Tx.inheritAttrs=!1;const K2=Tx;var nae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"};const rae=nae;function q2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){oae(e,o,n[o])})}return e}function oae(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Mx=function(t,n){var r=q2({},t,n.attrs);return C(vt,q2({},r,{icon:rae}),null)};Mx.displayName="DownloadOutlined";Mx.inheritAttrs=!1;const aae=Mx;var iae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"};const lae=iae;function G2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){sae(e,o,n[o])})}return e}function sae(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Nx=function(t,n){var r=G2({},t,n.attrs);return C(vt,G2({},r,{icon:lae}),null)};Nx.displayName="EditOutlined";Nx.inheritAttrs=!1;const uae=Nx;var cae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"};const dae=cae;function X2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){fae(e,o,n[o])})}return e}function fae(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Px=function(t,n){var r=X2({},t,n.attrs);return C(vt,X2({},r,{icon:dae}),null)};Px.displayName="EnterOutlined";Px.inheritAttrs=!1;const pae=Px;var mae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"};const vae=mae;function Y2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){hae(e,o,n[o])})}return e}function hae(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ix=function(t,n){var r=Y2({},t,n.attrs);return C(vt,Y2({},r,{icon:vae}),null)};Ix.displayName="EyeInvisibleOutlined";Ix.inheritAttrs=!1;const gae=Ix;var yae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};const bae=yae;function Z2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){xae(e,o,n[o])})}return e}function xae(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _x=function(t,n){var r=Z2({},t,n.attrs);return C(vt,Z2({},r,{icon:bae}),null)};_x.displayName="EyeOutlined";_x.inheritAttrs=!1;const Bx=_x;var wae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"};const Sae=wae;function J2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){Cae(e,o,n[o])})}return e}function Cae(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Fx=function(t,n){var r=J2({},t,n.attrs);return C(vt,J2({},r,{icon:Sae}),null)};Fx.displayName="FileOutlined";Fx.inheritAttrs=!1;const b8=Fx;var $ae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"};const Eae=$ae;function Q2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){Dae(e,o,n[o])})}return e}function Dae(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Rx=function(t,n){var r=Q2({},t,n.attrs);return C(vt,Q2({},r,{icon:Eae}),null)};Rx.displayName="FileTextOutlined";Rx.inheritAttrs=!1;const x8=Rx;var Aae={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:n}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:t}}]}},name:"file",theme:"twotone"};const Oae=Aae;function e3(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){Tae(e,o,n[o])})}return e}function Tae(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var zx=function(t,n){var r=e3({},t,n.attrs);return C(vt,e3({},r,{icon:Oae}),null)};zx.displayName="FileTwoTone";zx.inheritAttrs=!1;const Mae=zx;var Nae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"};const Pae=Nae;function t3(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){Iae(e,o,n[o])})}return e}function Iae(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Lx=function(t,n){var r=t3({},t,n.attrs);return C(vt,t3({},r,{icon:Pae}),null)};Lx.displayName="FilterFilled";Lx.inheritAttrs=!1;const _ae=Lx;var Bae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"};const Fae=Bae;function n3(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){Rae(e,o,n[o])})}return e}function Rae(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var kx=function(t,n){var r=n3({},t,n.attrs);return C(vt,n3({},r,{icon:Fae}),null)};kx.displayName="FolderOpenOutlined";kx.inheritAttrs=!1;const zae=kx;var Lae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"};const kae=Lae;function r3(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){Hae(e,o,n[o])})}return e}function Hae(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Hx=function(t,n){var r=r3({},t,n.attrs);return C(vt,r3({},r,{icon:kae}),null)};Hx.displayName="FolderOutlined";Hx.inheritAttrs=!1;const jae=Hx;var Vae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"};const Wae=Vae;function o3(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){Uae(e,o,n[o])})}return e}function Uae(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var jx=function(t,n){var r=o3({},t,n.attrs);return C(vt,o3({},r,{icon:Wae}),null)};jx.displayName="MinusSquareOutlined";jx.inheritAttrs=!1;const Kae=jx;var qae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"};const Gae=qae;function a3(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){Xae(e,o,n[o])})}return e}function Xae(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Vx=function(t,n){var r=a3({},t,n.attrs);return C(vt,a3({},r,{icon:Gae}),null)};Vx.displayName="PaperClipOutlined";Vx.inheritAttrs=!1;const Yae=Vx;var Zae={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:t}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:n}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:n}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:n}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:t}}]}},name:"picture",theme:"twotone"};const Jae=Zae;function i3(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){Qae(e,o,n[o])})}return e}function Qae(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Wx=function(t,n){var r=i3({},t,n.attrs);return C(vt,i3({},r,{icon:Jae}),null)};Wx.displayName="PictureTwoTone";Wx.inheritAttrs=!1;const eie=Wx;var tie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"};const nie=tie;function l3(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){rie(e,o,n[o])})}return e}function rie(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ux=function(t,n){var r=l3({},t,n.attrs);return C(vt,l3({},r,{icon:nie}),null)};Ux.displayName="PlusSquareOutlined";Ux.inheritAttrs=!1;const oie=Ux;var aie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"};const iie=aie;function s3(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){lie(e,o,n[o])})}return e}function lie(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Kx=function(t,n){var r=s3({},t,n.attrs);return C(vt,s3({},r,{icon:iie}),null)};Kx.displayName="ReloadOutlined";Kx.inheritAttrs=!1;const sie=Kx;var uie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"};const cie=uie;function u3(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){die(e,o,n[o])})}return e}function die(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var qx=function(t,n){var r=u3({},t,n.attrs);return C(vt,u3({},r,{icon:cie}),null)};qx.displayName="RotateLeftOutlined";qx.inheritAttrs=!1;const fie=qx;var pie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"};const mie=pie;function c3(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){vie(e,o,n[o])})}return e}function vie(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Gx=function(t,n){var r=c3({},t,n.attrs);return C(vt,c3({},r,{icon:mie}),null)};Gx.displayName="RotateRightOutlined";Gx.inheritAttrs=!1;const hie=Gx;var gie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"};const yie=gie;function d3(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){bie(e,o,n[o])})}return e}function bie(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Xx=function(t,n){var r=d3({},t,n.attrs);return C(vt,d3({},r,{icon:yie}),null)};Xx.displayName="StarFilled";Xx.inheritAttrs=!1;const xie=Xx;var wie={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"};const Sie=wie;function f3(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){Cie(e,o,n[o])})}return e}function Cie(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Yx=function(t,n){var r=f3({},t,n.attrs);return C(vt,f3({},r,{icon:Sie}),null)};Yx.displayName="SwapRightOutlined";Yx.inheritAttrs=!1;const $ie=Yx;var Eie={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"};const Die=Eie;function p3(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){Aie(e,o,n[o])})}return e}function Aie(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Zx=function(t,n){var r=p3({},t,n.attrs);return C(vt,p3({},r,{icon:Die}),null)};Zx.displayName="UpOutlined";Zx.inheritAttrs=!1;const Oie=Zx;var Tie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 168H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM518.3 355a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V848c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V509.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 355z"}}]},name:"vertical-align-top",theme:"outlined"};const Mie=Tie;function m3(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){Nie(e,o,n[o])})}return e}function Nie(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Jx=function(t,n){var r=m3({},t,n.attrs);return C(vt,m3({},r,{icon:Mie}),null)};Jx.displayName="VerticalAlignTopOutlined";Jx.inheritAttrs=!1;const v3=Jx;var Pie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"warning",theme:"filled"};const Iie=Pie;function h3(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){_ie(e,o,n[o])})}return e}function _ie(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Qx=function(t,n){var r=h3({},t,n.attrs);return C(vt,h3({},r,{icon:Iie}),null)};Qx.displayName="WarningFilled";Qx.inheritAttrs=!1;const Bie=Qx;var Fie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"};const Rie=Fie;function g3(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){zie(e,o,n[o])})}return e}function zie(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ew=function(t,n){var r=g3({},t,n.attrs);return C(vt,g3({},r,{icon:Rie}),null)};ew.displayName="ZoomInOutlined";ew.inheritAttrs=!1;const Lie=ew;var kie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"};const Hie=kie;function y3(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){jie(e,o,n[o])})}return e}function jie(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var tw=function(t,n){var r=y3({},t,n.attrs);return C(vt,y3({},r,{icon:Hie}),null)};tw.displayName="ZoomOutOutlined";tw.inheritAttrs=!1;const Vie=tw;var Wie=["class","component","viewBox","spin","rotate","tabindex","onClick"];function fd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),r.forEach(function(o){w8(e,o,n[o])})}return e}function w8(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Uie(e,t){if(e==null)return{};var n=Kie(e,t),r,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Kie(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var lv=function(t,n){var r=n.attrs,o=n.slots,a=fd({},t,r),i=a.class,l=a.component,s=a.viewBox,u=a.spin,c=a.rotate,d=a.tabindex,f=a.onClick,p=Uie(a,Wie),v=o.default&&o.default(),m=v&&v.length,h=o.component;_N();var g=w8({anticon:!0},i,i),x={"anticon-spin":u===""||!!u},y=c?{msTransform:"rotate(".concat(c,"deg)"),transform:"rotate(".concat(c,"deg)")}:void 0,w=fd({},RV,{viewBox:s,class:x,style:y});s||delete w.viewBox;var b=function(){return l?C(l,w,{default:function(){return[v]}}):h?h(w):m?(Boolean(s)||v.length===1&&v[0]&&v[0].type,C("svg",fd({},w,{viewBox:s}),[v])):null},S=d;return S===void 0&&f&&(S=-1,p.tabindex=S),C("span",fd({role:"img"},p,{onClick:f,class:g}),[b()])};lv.props={spin:Boolean,rotate:Number,viewBox:String,ariaLabel:String};lv.inheritAttrs=!1;lv.displayName="Icon";const qie=lv,Gie={info:C(_s,null,null),success:C(Aa,null,null),error:C($r,null,null),warning:C(Oa,null,null),loading:C(Lr,null,null)},S8=he({name:"PureContent",inheritAttrs:!1,props:["prefixCls","type","icon"],setup(e,t){let{slots:n}=t;return()=>{var r;return C("div",{class:ge(`${e.prefixCls}-custom-content`,`${e.prefixCls}-${e.type}`)},[e.icon||Gie[e.type],C("span",null,[(r=n.default)===null||r===void 0?void 0:r.call(n)])])}}});he({name:"PurePanel",inheritAttrs:!1,props:["prefixCls","class","type","icon","content"],setup(e,t){let{slots:n,attrs:r}=t;var o;const{getPrefixCls:a}=im(),i=z(()=>e.prefixCls||a("message")),[,l]=gx(i);return C(iv,j(j({},r),{},{prefixCls:i.value,class:ge(l.value,`${i.value}-notice-pure-panel`),noticeKey:"pure",duration:null}),{default:()=>[C(S8,{prefixCls:i.value,type:e.type,icon:e.icon},{default:()=>[(o=n.default)===null||o===void 0?void 0:o.call(n)]})]})}});var Xie=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Yie=8,Zie=3,Jie=he({name:"Holder",inheritAttrs:!1,props:["top","prefixCls","getContainer","maxCount","duration","rtl","transitionName","onAllRemoved"],setup(e,t){let{expose:n}=t;var r;const{getPrefixCls:o,getPopupContainer:a}=He("message",e),i=z(()=>o("message",e.prefixCls)),[,l]=gx(i),s=()=>{var v;const m=(v=e.top)!==null&&v!==void 0?v:Yie;return{left:"50%",transform:"translateX(-50%)",top:typeof m=="number"?`${m}px`:m}},u=()=>ge(l.value,e.rtl?`${i.value}-rtl`:""),c=()=>{var v;return vb({prefixCls:i.value,animation:(v=e.animation)!==null&&v!==void 0?v:"move-up",transitionName:e.transitionName})},d=C("span",{class:`${i.value}-close-x`},[C(qie,{class:`${i.value}-close-icon`},null)]),[f,p]=v8({getStyles:s,prefixCls:i.value,getClassName:u,motion:c,closable:!1,closeIcon:d,duration:(r=e.duration)!==null&&r!==void 0?r:Zie,getContainer:()=>{var v,m;return((v=e.staticGetContainer)===null||v===void 0?void 0:v.call(e))||((m=a.value)===null||m===void 0?void 0:m.call(a))||document.body},maxCount:e.maxCount,onAllRemoved:e.onAllRemoved});return n(E(E({},f),{prefixCls:i,hashId:l})),p}});let b3=0;function Qie(e){const t=pe(null),n=Symbol("messageHolderKey"),r=s=>{var u;(u=t.value)===null||u===void 0||u.close(s)},o=s=>{if(!t.value){const b=()=>{};return b.then=()=>{},b}const{open:u,prefixCls:c,hashId:d}=t.value,f=`${c}-notice`,{content:p,icon:v,type:m,key:h,class:g,onClose:x}=s,y=Xie(s,["content","icon","type","key","class","onClose"]);let w=h;return w==null&&(b3+=1,w=`antd-message-${b3}`),fF(b=>(u(E(E({},y),{key:w,content:()=>C(S8,{prefixCls:c,type:m,icon:typeof v=="function"?v():v},{default:()=>[typeof p=="function"?p():p]}),placement:"top",class:ge(m&&`${f}-${m}`,d,g),onClose:()=>{x==null||x(),b()}})),()=>{r(w)}))},i={open:o,destroy:s=>{var u;s!==void 0?r(s):(u=t.value)===null||u===void 0||u.destroy()}};return["info","success","warning","error","loading"].forEach(s=>{const u=(c,d,f)=>{let p;c&&typeof c=="object"&&"content"in c?p=c:p={content:c};let v,m;typeof d=="function"?m=d:(v=d,m=f);const h=E(E({onClose:m,duration:v},p),{type:s});return o(h)};i[s]=u}),[i,()=>C(Jie,j(j({key:n},e),{},{ref:t}),null)]}function ele(e){return Qie(e)}let C8=3,$8,lr,tle=1,E8="",D8="move-up",A8=!1,O8=()=>document.body,T8,M8=!1;function nle(){return tle++}function rle(e){e.top!==void 0&&($8=e.top,lr=null),e.duration!==void 0&&(C8=e.duration),e.prefixCls!==void 0&&(E8=e.prefixCls),e.getContainer!==void 0&&(O8=e.getContainer,lr=null),e.transitionName!==void 0&&(D8=e.transitionName,lr=null,A8=!0),e.maxCount!==void 0&&(T8=e.maxCount,lr=null),e.rtl!==void 0&&(M8=e.rtl)}function ole(e,t){if(lr){t(lr);return}m8.newInstance({appContext:e.appContext,prefixCls:e.prefixCls||E8,rootPrefixCls:e.rootPrefixCls,transitionName:D8,hasTransitionName:A8,style:{top:$8},getContainer:O8||e.getPopupContainer,maxCount:T8,name:"message",useStyle:gx},n=>{if(lr){t(lr);return}lr=n,t(n)})}const N8={info:_s,success:Aa,error:$r,warning:Oa,loading:Lr},ale=Object.keys(N8);function ile(e){const t=e.duration!==void 0?e.duration:C8,n=e.key||nle(),r=new Promise(a=>{const i=()=>(typeof e.onClose=="function"&&e.onClose(),a(!0));ole(e,l=>{l.notice({key:n,duration:t,style:e.style||{},class:e.class,content:s=>{let{prefixCls:u}=s;const c=N8[e.type],d=c?C(c,null,null):"",f=ge(`${u}-custom-content`,{[`${u}-${e.type}`]:e.type,[`${u}-rtl`]:M8===!0});return C("div",{class:f},[typeof e.icon=="function"?e.icon():e.icon||d,C("span",null,[typeof e.content=="function"?e.content():e.content])])},onClose:i,onClick:e.onClick})})}),o=()=>{lr&&lr.removeNotice(n)};return o.then=(a,i)=>r.then(a,i),o.promise=r,o}function lle(e){return Object.prototype.toString.call(e)==="[object Object]"&&!!e.content}const tc={open:ile,config:rle,destroy(e){if(lr)if(e){const{removeNotice:t}=lr;t(e)}else{const{destroy:t}=lr;t(),lr=null}}};function sle(e,t){e[t]=(n,r,o)=>lle(n)?e.open(E(E({},n),{type:t})):(typeof r=="function"&&(o=r,r=void 0),e.open({content:n,duration:r,type:t,onClose:o}))}ale.forEach(e=>sle(tc,e));tc.warn=tc.warning;tc.useMessage=ele;const un=tc,ule=e=>{const{componentCls:t,width:n,notificationMarginEdge:r}=e,o=new ft("antNotificationTopFadeIn",{"0%":{marginTop:"-100%",opacity:0},"100%":{marginTop:0,opacity:1}}),a=new ft("antNotificationBottomFadeIn",{"0%":{marginBottom:"-100%",opacity:0},"100%":{marginBottom:0,opacity:1}}),i=new ft("antNotificationLeftFadeIn",{"0%":{right:{_skip_check_:!0,value:n},opacity:0},"100%":{right:{_skip_check_:!0,value:0},opacity:1}});return{[`&${t}-top, &${t}-bottom`]:{marginInline:0},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:o}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:a}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginInlineEnd:0,marginInlineStart:r,[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:i}}}},cle=ule,dle=e=>{const{iconCls:t,componentCls:n,boxShadowSecondary:r,fontSizeLG:o,notificationMarginBottom:a,borderRadiusLG:i,colorSuccess:l,colorInfo:s,colorWarning:u,colorError:c,colorTextHeading:d,notificationBg:f,notificationPadding:p,notificationMarginEdge:v,motionDurationMid:m,motionEaseInOut:h,fontSize:g,lineHeight:x,width:y,notificationIconSize:w}=e,b=`${n}-notice`,S=new ft("antNotificationFadeIn",{"0%":{left:{_skip_check_:!0,value:y},opacity:0},"100%":{left:{_skip_check_:!0,value:0},opacity:1}}),$=new ft("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:a,opacity:1},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[n]:E(E(E(E({},rt(e)),{position:"fixed",zIndex:e.zIndexPopup,marginInlineEnd:v,[`${n}-hook-holder`]:{position:"relative"},[`&${n}-top, &${n}-bottom`]:{[`${n}-notice`]:{marginInline:"auto auto"}},[`&${n}-topLeft, &${n}-bottomLeft`]:{[`${n}-notice`]:{marginInlineEnd:"auto",marginInlineStart:0}},[`${n}-fade-enter, ${n}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:h,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${n}-fade-leave`]:{animationTimingFunction:h,animationFillMode:"both",animationDuration:m,animationPlayState:"paused"},[`${n}-fade-enter${n}-fade-enter-active, ${n}-fade-appear${n}-fade-appear-active`]:{animationName:S,animationPlayState:"running"},[`${n}-fade-leave${n}-fade-leave-active`]:{animationName:$,animationPlayState:"running"}}),cle(e)),{"&-rtl":{direction:"rtl",[`${n}-notice-btn`]:{float:"left"}}})},{[b]:{position:"relative",width:y,maxWidth:`calc(100vw - ${v*2}px)`,marginBottom:a,marginInlineStart:"auto",padding:p,overflow:"hidden",lineHeight:x,wordWrap:"break-word",background:f,borderRadius:i,boxShadow:r,[`${n}-close-icon`]:{fontSize:g,cursor:"pointer"},[`${b}-message`]:{marginBottom:e.marginXS,color:d,fontSize:o,lineHeight:e.lineHeightLG},[`${b}-description`]:{fontSize:g},[`&${b}-closable ${b}-message`]:{paddingInlineEnd:e.paddingLG},[`${b}-with-icon ${b}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.marginSM+w,fontSize:o},[`${b}-with-icon ${b}-description`]:{marginInlineStart:e.marginSM+w,fontSize:g},[`${b}-icon`]:{position:"absolute",fontSize:w,lineHeight:0,[`&-success${t}`]:{color:l},[`&-info${t}`]:{color:s},[`&-warning${t}`]:{color:u},[`&-error${t}`]:{color:c}},[`${b}-close`]:{position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.wireframe?"transparent":e.colorFillContent}},[`${b}-btn`]:{float:"right",marginTop:e.marginSM}}},{[`${b}-pure-panel`]:{margin:0}}]},nw=nt("Notification",e=>{const t=e.paddingMD,n=e.paddingLG,r=qe(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`,notificationMarginBottom:e.margin,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationIconSize:e.fontSizeLG*e.lineHeightLG,notificationCloseButtonSize:e.controlHeightLG*.55});return[dle(r)]},e=>({zIndexPopup:e.zIndexPopupBase+50,width:384}));function P8(e,t){return t||C("span",{class:`${e}-close-x`},[C(Hr,{class:`${e}-close-icon`},null)])}C(_s,null,null),C(Aa,null,null),C($r,null,null),C(Oa,null,null),C(Lr,null,null);const fle={success:Aa,info:_s,error:$r,warning:Oa};function I8(e){let{prefixCls:t,icon:n,type:r,message:o,description:a,btn:i}=e,l=null;if(n)l=C("span",{class:`${t}-icon`},[Bl(n)]);else if(r){const s=fle[r];l=C(s,{class:`${t}-icon ${t}-icon-${r}`},null)}return C("div",{class:ge({[`${t}-with-icon`]:l}),role:"alert"},[l,C("div",{class:`${t}-message`},[o]),C("div",{class:`${t}-description`},[a]),i&&C("div",{class:`${t}-btn`},[i])])}he({name:"PurePanel",inheritAttrs:!1,props:["prefixCls","icon","type","message","description","btn","closeIcon"],setup(e){const{getPrefixCls:t}=He("notification",e),n=z(()=>e.prefixCls||t("notification")),r=z(()=>`${n.value}-notice`),[,o]=nw(n);return()=>C(iv,j(j({},e),{},{prefixCls:n.value,class:ge(o.value,`${r.value}-pure-panel`),noticeKey:"pure",duration:null,closable:e.closable,closeIcon:P8(n.value,e.closeIcon)}),{default:()=>[C(I8,{prefixCls:r.value,icon:e.icon,type:e.type,message:e.message,description:e.description,btn:e.btn},null)]})}});function _8(e,t,n){let r;switch(t=typeof t=="number"?`${t}px`:t,n=typeof n=="number"?`${n}px`:n,e){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":r={left:0,top:t,bottom:"auto"};break;case"topRight":r={right:0,top:t,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n};break}return r}function ple(e){return{name:`${e}-fade`}}var mle=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const x3=24,vle=4.5,hle=he({name:"Holder",inheritAttrs:!1,props:["prefixCls","class","type","icon","content","onAllRemoved"],setup(e,t){let{expose:n}=t;const{getPrefixCls:r,getPopupContainer:o}=He("notification",e),a=z(()=>e.prefixCls||r("notification")),i=f=>{var p,v;return _8(f,(p=e.top)!==null&&p!==void 0?p:x3,(v=e.bottom)!==null&&v!==void 0?v:x3)},[,l]=nw(a),s=()=>ge(l.value,{[`${a.value}-rtl`]:e.rtl}),u=()=>ple(a.value),[c,d]=v8({prefixCls:a.value,getStyles:i,getClassName:s,motion:u,closable:!0,closeIcon:P8(a.value),duration:vle,getContainer:()=>{var f,p;return((f=e.getPopupContainer)===null||f===void 0?void 0:f.call(e))||((p=o.value)===null||p===void 0?void 0:p.call(o))||document.body},maxCount:e.maxCount,hashId:l.value,onAllRemoved:e.onAllRemoved});return n(E(E({},c),{prefixCls:a.value,hashId:l})),d}});function gle(e){const t=pe(null),n=Symbol("notificationHolderKey"),r=l=>{if(!t.value)return;const{open:s,prefixCls:u,hashId:c}=t.value,d=`${u}-notice`,{message:f,description:p,icon:v,type:m,btn:h,class:g}=l,x=mle(l,["message","description","icon","type","btn","class"]);return s(E(E({placement:"topRight"},x),{content:()=>C(I8,{prefixCls:d,icon:typeof v=="function"?v():v,type:m,message:typeof f=="function"?f():f,description:typeof p=="function"?p():p,btn:typeof h=="function"?h():h},null),class:ge(m&&`${d}-${m}`,c,g)}))},a={open:r,destroy:l=>{var s,u;l!==void 0?(s=t.value)===null||s===void 0||s.close(l):(u=t.value)===null||u===void 0||u.destroy()}};return["success","info","warning","error"].forEach(l=>{a[l]=s=>r(E(E({},s),{type:l}))}),[a,()=>C(hle,j(j({key:n},e),{},{ref:t}),null)]}function yle(e){return gle(e)}globalThis&&globalThis.__awaiter;const Oi={};let B8=4.5,F8="24px",R8="24px",_0="",z8="topRight",L8=()=>document.body,k8=null,B0=!1,H8;function ble(e){const{duration:t,placement:n,bottom:r,top:o,getContainer:a,closeIcon:i,prefixCls:l}=e;l!==void 0&&(_0=l),t!==void 0&&(B8=t),n!==void 0&&(z8=n),r!==void 0&&(R8=typeof r=="number"?`${r}px`:r),o!==void 0&&(F8=typeof o=="number"?`${o}px`:o),a!==void 0&&(L8=a),i!==void 0&&(k8=i),e.rtl!==void 0&&(B0=e.rtl),e.maxCount!==void 0&&(H8=e.maxCount)}function xle(e,t){let{prefixCls:n,placement:r=z8,getContainer:o=L8,top:a,bottom:i,closeIcon:l=k8,appContext:s}=e;const{getPrefixCls:u}=Ile(),c=u("notification",n||_0),d=`${c}-${r}-${B0}`,f=Oi[d];if(f){Promise.resolve(f).then(v=>{t(v)});return}const p=ge(`${c}-${r}`,{[`${c}-rtl`]:B0===!0});m8.newInstance({name:"notification",prefixCls:n||_0,useStyle:nw,class:p,style:_8(r,a??F8,i??R8),appContext:s,getContainer:o,closeIcon:v=>{let{prefixCls:m}=v;return C("span",{class:`${m}-close-x`},[Bl(l,{},C(Hr,{class:`${m}-close-icon`},null))])},maxCount:H8,hasTransitionName:!0},v=>{Oi[d]=v,t(v)})}const wle={success:oP,info:aP,error:iP,warning:rp};function Sle(e){const{icon:t,type:n,description:r,message:o,btn:a}=e,i=e.duration===void 0?B8:e.duration;xle(e,l=>{l.notice({content:s=>{let{prefixCls:u}=s;const c=`${u}-notice`;let d=null;if(t)d=()=>C("span",{class:`${c}-icon`},[Bl(t)]);else if(n){const f=wle[n];d=()=>C(f,{class:`${c}-icon ${c}-icon-${n}`},null)}return C("div",{class:d?`${c}-with-icon`:""},[d&&d(),C("div",{class:`${c}-message`},[!r&&d?C("span",{class:`${c}-message-single-line-auto-margin`},null):null,Bl(o)]),C("div",{class:`${c}-description`},[Bl(r)]),a?C("span",{class:`${c}-btn`},[Bl(a)]):null])},duration:i,closable:!0,onClose:e.onClose,onClick:e.onClick,key:e.key,style:e.style||{},class:e.class})})}const vs={open:Sle,close(e){Object.keys(Oi).forEach(t=>Promise.resolve(Oi[t]).then(n=>{n.removeNotice(e)}))},config:ble,destroy(){Object.keys(Oi).forEach(e=>{Promise.resolve(Oi[e]).then(t=>{t.destroy()}),delete Oi[e]})}},Cle=["success","info","warning","error"];Cle.forEach(e=>{vs[e]=t=>vs.open(E(E({},t),{type:e}))});vs.warn=vs.warning;vs.useNotification=yle;const rw=vs,$le=`-ant-${Date.now()}-${Math.random()}`;function Ele(e,t){const n={},r=(i,l)=>{let s=i.clone();return s=(l==null?void 0:l(s))||s,s.toRgbString()},o=(i,l)=>{const s=new $t(i),u=ga(s.toRgbString());n[`${l}-color`]=r(s),n[`${l}-color-disabled`]=u[1],n[`${l}-color-hover`]=u[4],n[`${l}-color-active`]=u[6],n[`${l}-color-outline`]=s.clone().setAlpha(.2).toRgbString(),n[`${l}-color-deprecated-bg`]=u[0],n[`${l}-color-deprecated-border`]=u[2]};if(t.primaryColor){o(t.primaryColor,"primary");const i=new $t(t.primaryColor),l=ga(i.toRgbString());l.forEach((u,c)=>{n[`primary-${c+1}`]=u}),n["primary-color-deprecated-l-35"]=r(i,u=>u.lighten(35)),n["primary-color-deprecated-l-20"]=r(i,u=>u.lighten(20)),n["primary-color-deprecated-t-20"]=r(i,u=>u.tint(20)),n["primary-color-deprecated-t-50"]=r(i,u=>u.tint(50)),n["primary-color-deprecated-f-12"]=r(i,u=>u.setAlpha(u.getAlpha()*.12));const s=new $t(l[0]);n["primary-color-active-deprecated-f-30"]=r(s,u=>u.setAlpha(u.getAlpha()*.3)),n["primary-color-active-deprecated-d-02"]=r(s,u=>u.darken(2))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),`
- :root {
- ${Object.keys(n).map(i=>`--${e}-${i}: ${n[i]};`).join(`
- `)}
- }
- `.trim()}function Dle(e,t){const n=Ele(e,t);Co()?Bu(n,`${$le}-dynamic-theme`):Jt()}const Ale=e=>{const[t,n]=$a();return jf(z(()=>({theme:t.value,token:n.value,hashId:"",path:["ant-design-icons",e.value]})),()=>[{[`.${e.value}`]:E(E({},Qi()),{[`.${e.value} .${e.value}-icon`]:{display:"block"}})}])},Ole=Ale;function Tle(e,t){const n=z(()=>(e==null?void 0:e.value)||{}),r=z(()=>n.value.inherit===!1||!(t!=null&&t.value)?Wf:t.value);return z(()=>{if(!(e!=null&&e.value))return t==null?void 0:t.value;const a=E({},r.value.components);return Object.keys(e.value.components||{}).forEach(i=>{a[i]=E(E({},a[i]),e.value.components[i])}),E(E(E({},r.value),n.value),{token:E(E({},r.value.token),n.value.token),components:a})})}var Mle=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Nle="ant";function Ql(){return Hn.prefixCls||Nle}function j8(){return Hn.iconPrefixCls||Zy}const ow=_t({}),Hn=_t({});Je(()=>{E(Hn,ow),Hn.prefixCls=Ql(),Hn.iconPrefixCls=j8(),Hn.getPrefixCls=(e,t)=>t||(e?`${Hn.prefixCls}-${e}`:Hn.prefixCls),Hn.getRootPrefixCls=()=>Hn.prefixCls?Hn.prefixCls:Ql()});let kh;const Ple=e=>{kh&&kh(),kh=Je(()=>{E(ow,_t(e)),E(Hn,_t(e))}),e.theme&&Dle(Ql(),e.theme)},Ile=()=>({getPrefixCls:(e,t)=>t||(e?`${Ql()}-${e}`:Ql()),getIconPrefixCls:j8,getRootPrefixCls:()=>Hn.prefixCls?Hn.prefixCls:Ql()}),Cu=he({compatConfig:{MODE:3},name:"AConfigProvider",inheritAttrs:!1,props:aR(),setup(e,t){let{slots:n}=t;const r=im(),o=(F,P)=>{const{prefixCls:I="ant"}=e;if(P)return P;const N=I||r.getPrefixCls("");return F?`${N}-${F}`:N},a=z(()=>e.iconPrefixCls||r.iconPrefixCls.value||Zy),i=z(()=>a.value!==r.iconPrefixCls.value),l=z(()=>{var F;return e.csp||((F=r.csp)===null||F===void 0?void 0:F.value)}),s=Ole(a),u=Tle(z(()=>e.theme),z(()=>{var F;return(F=r.theme)===null||F===void 0?void 0:F.value})),c=F=>(e.renderEmpty||n.renderEmpty||r.renderEmpty||nz)(F),d=z(()=>{var F,P;return(F=e.autoInsertSpaceInButton)!==null&&F!==void 0?F:(P=r.autoInsertSpaceInButton)===null||P===void 0?void 0:P.value}),f=z(()=>{var F;return e.locale||((F=r.locale)===null||F===void 0?void 0:F.value)});Ne(f,()=>{ow.locale=f.value},{immediate:!0});const p=z(()=>{var F;return e.direction||((F=r.direction)===null||F===void 0?void 0:F.value)}),v=z(()=>{var F,P;return(F=e.space)!==null&&F!==void 0?F:(P=r.space)===null||P===void 0?void 0:P.value}),m=z(()=>{var F,P;return(F=e.virtual)!==null&&F!==void 0?F:(P=r.virtual)===null||P===void 0?void 0:P.value}),h=z(()=>{var F,P;return(F=e.dropdownMatchSelectWidth)!==null&&F!==void 0?F:(P=r.dropdownMatchSelectWidth)===null||P===void 0?void 0:P.value}),g=z(()=>{var F;return e.getTargetContainer!==void 0?e.getTargetContainer:(F=r.getTargetContainer)===null||F===void 0?void 0:F.value}),x=z(()=>{var F;return e.getPopupContainer!==void 0?e.getPopupContainer:(F=r.getPopupContainer)===null||F===void 0?void 0:F.value}),y=z(()=>{var F;return e.pageHeader!==void 0?e.pageHeader:(F=r.pageHeader)===null||F===void 0?void 0:F.value}),w=z(()=>{var F;return e.input!==void 0?e.input:(F=r.input)===null||F===void 0?void 0:F.value}),b=z(()=>{var F;return e.pagination!==void 0?e.pagination:(F=r.pagination)===null||F===void 0?void 0:F.value}),S=z(()=>{var F;return e.form!==void 0?e.form:(F=r.form)===null||F===void 0?void 0:F.value}),$=z(()=>{var F;return e.select!==void 0?e.select:(F=r.select)===null||F===void 0?void 0:F.value}),D=z(()=>e.componentSize),O=z(()=>e.componentDisabled),A={csp:l,autoInsertSpaceInButton:d,locale:f,direction:p,space:v,virtual:m,dropdownMatchSelectWidth:h,getPrefixCls:o,iconPrefixCls:a,theme:z(()=>{var F,P;return(F=u.value)!==null&&F!==void 0?F:(P=r.theme)===null||P===void 0?void 0:P.value}),renderEmpty:c,getTargetContainer:g,getPopupContainer:x,pageHeader:y,input:w,pagination:b,form:S,select:$,componentSize:D,componentDisabled:O,transformCellText:z(()=>e.transformCellText)},T=z(()=>{const F=u.value||{},{algorithm:P,token:I}=F,N=Mle(F,["algorithm","token"]),R=P&&(!Array.isArray(P)||P.length>0)?ab(P):void 0;return E(E({},N),{theme:R,token:E(E({},fm),I)})}),M=z(()=>{var F,P;let I={};return f.value&&(I=((F=f.value.Form)===null||F===void 0?void 0:F.defaultValidateMessages)||((P=cr.Form)===null||P===void 0?void 0:P.defaultValidateMessages)||{}),e.form&&e.form.validateMessages&&(I=E(E({},I),e.form.validateMessages)),I});iR(A),rR({validateMessages:M}),IM(D),JT(O);const B=F=>{var P,I;let N=i.value?s((P=n.default)===null||P===void 0?void 0:P.call(n)):(I=n.default)===null||I===void 0?void 0:I.call(n);if(e.theme){const R=function(){return N}();N=C(X9,{value:T.value},{default:()=>[R]})}return C(p8,{locale:f.value||F,ANT_MARK__:P0},{default:()=>[N]})};return Je(()=>{p.value&&(un.config({rtl:p.value==="rtl"}),rw.config({rtl:p.value==="rtl"}))}),()=>C(Ji,{children:(F,P,I)=>B(I)},null)}});Cu.config=Ple;Cu.install=function(e){e.component(Cu.name,Cu)};const sv=Cu,_le=(e,t)=>{let{attrs:n,slots:r}=t;return C(dn,j(j({size:"small",type:"primary"},e),n),r)},Ble=_le,pd=(e,t,n)=>{const r=sF(n);return{[`${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`]}}},Fle=e=>Vf(e,(t,n)=>{let{textColor:r,lightBorderColor:o,lightColor:a,darkColor:i}=n;return{[`${e.componentCls}-${t}`]:{color:r,background:a,borderColor:o,"&-inverse":{color:e.colorTextLightSolid,background:i,borderColor:i}}}}),Rle=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o}=e,a=r-n,i=t-n;return{[o]:E(E({},rt(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:a,fontSize:e.tagFontSize,lineHeight:`${e.tagLineHeight}px`,whiteSpace:"nowrap",background:e.tagDefaultBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.tagDefaultColor},[`${o}-close-icon`]:{marginInlineStart:i,color:e.colorTextDescription,fontSize:e.tagIconSize,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${o}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},["&-checkable"]:{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${o}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},["&-hidden"]:{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:a}})}},V8=nt("Tag",e=>{const{fontSize:t,lineHeight:n,lineWidth:r,fontSizeIcon:o}=e,a=Math.round(t*n),i=e.fontSizeSM,l=a-r*2,s=e.colorFillAlter,u=e.colorText,c=qe(e,{tagFontSize:i,tagLineHeight:l,tagDefaultBg:s,tagDefaultColor:u,tagIconSize:o-2*r,tagPaddingHorizontal:8});return[Rle(c),Fle(c),pd(c,"success","Success"),pd(c,"processing","Info"),pd(c,"error","Error"),pd(c,"warning","Warning")]}),zle=()=>({prefixCls:String,checked:{type:Boolean,default:void 0},onChange:{type:Function},onClick:{type:Function},"onUpdate:checked":Function}),Lle=he({compatConfig:{MODE:3},name:"ACheckableTag",inheritAttrs:!1,props:zle(),setup(e,t){let{slots:n,emit:r,attrs:o}=t;const{prefixCls:a}=He("tag",e),[i,l]=V8(a),s=c=>{const{checked:d}=e;r("update:checked",!d),r("change",!d),r("click",c)},u=z(()=>ge(a.value,l.value,{[`${a.value}-checkable`]:!0,[`${a.value}-checkable-checked`]:e.checked}));return()=>{var c;return i(C("span",j(j({},o),{},{class:u.value,onClick:s}),[(c=n.default)===null||c===void 0?void 0:c.call(n)]))}}}),Cp=Lle,kle=()=>({prefixCls:String,color:{type:String},closable:{type:Boolean,default:!1},closeIcon:Z.any,visible:{type:Boolean,default:void 0},onClose:{type:Function},onClick:Wi(),"onUpdate:visible":Function,icon:Z.any}),$u=he({compatConfig:{MODE:3},name:"ATag",inheritAttrs:!1,props:kle(),slots:Object,setup(e,t){let{slots:n,emit:r,attrs:o}=t;const{prefixCls:a,direction:i}=He("tag",e),[l,s]=V8(a),u=pe(!0);Je(()=>{e.visible!==void 0&&(u.value=e.visible)});const c=v=>{v.stopPropagation(),r("update:visible",!1),r("close",v),!v.defaultPrevented&&e.visible===void 0&&(u.value=!1)},d=z(()=>Hm(e.color)||jX(e.color)),f=z(()=>ge(a.value,s.value,{[`${a.value}-${e.color}`]:d.value,[`${a.value}-has-color`]:e.color&&!d.value,[`${a.value}-hidden`]:!u.value,[`${a.value}-rtl`]:i.value==="rtl"})),p=v=>{r("click",v)};return()=>{var v,m,h;const{icon:g=(v=n.icon)===null||v===void 0?void 0:v.call(n),color:x,closeIcon:y=(m=n.closeIcon)===null||m===void 0?void 0:m.call(n),closable:w=!1}=e,b=()=>w?y?C("span",{class:`${a.value}-close-icon`,onClick:c},[y]):C(Hr,{class:`${a.value}-close-icon`,onClick:c},null):null,S={backgroundColor:x&&!d.value?x:void 0},$=g||null,D=(h=n.default)===null||h===void 0?void 0:h.call(n),O=$?C(dt,null,[$,C("span",null,[D])]):D,A=e.onClick!==void 0,T=C("span",j(j({},o),{},{onClick:p,class:[f.value,o.class],style:[S,o.style]}),[O,b()]);return l(A?C(b1,null,{default:()=>[T]}):T)}}});$u.CheckableTag=Cp;$u.install=function(e){return e.component($u.name,$u),e.component(Cp.name,Cp),e};const W8=$u;function Hle(e,t){let{slots:n,attrs:r}=t;return C(W8,j(j({color:"blue"},e),r),n)}function jle(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function Vle(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function U8(e,t){const n={adjustX:1,adjustY:1};switch(t){case"bottomLeft":return{points:["tl","bl"],offset:[0,4],overflow:n};case"bottomRight":return{points:["tr","br"],offset:[0,4],overflow:n};case"topLeft":return{points:["bl","tl"],offset:[0,-4],overflow:n};case"topRight":return{points:["br","tr"],offset:[0,-4],overflow:n};default:return{points:e==="rtl"?["tr","br"]:["tl","bl"],offset:[0,4],overflow:n}}}function $p(){return{id:String,dropdownClassName:String,popupClassName:String,popupStyle:We(),transitionName:String,placeholder:String,allowClear:Pe(),autofocus:Pe(),disabled:Pe(),tabindex:Number,open:Pe(),defaultOpen:Pe(),inputReadOnly:Pe(),format:Xe([String,Function,Array]),getPopupContainer:Oe(),panelRender:Oe(),onChange:Oe(),"onUpdate:value":Oe(),onOk:Oe(),onOpenChange:Oe(),"onUpdate:open":Oe(),onFocus:Oe(),onBlur:Oe(),onMousedown:Oe(),onMouseup:Oe(),onMouseenter:Oe(),onMouseleave:Oe(),onClick:Oe(),onContextmenu:Oe(),onKeydown:Oe(),role:String,name:String,autocomplete:String,direction:Ue(),showToday:Pe(),showTime:Xe([Boolean,Object]),locale:We(),size:Ue(),bordered:Pe(),dateRender:Oe(),disabledDate:Oe(),mode:Ue(),picker:Ue(),valueFormat:String,placement:Ue(),status:Ue(),disabledHours:Oe(),disabledMinutes:Oe(),disabledSeconds:Oe()}}function K8(){return{defaultPickerValue:Xe([Object,String]),defaultValue:Xe([Object,String]),value:Xe([Object,String]),presets:bt(),disabledTime:Oe(),renderExtraFooter:Oe(),showNow:Pe(),monthCellRender:Oe(),monthCellContentRender:Oe()}}function q8(){return{allowEmpty:bt(),dateRender:Oe(),defaultPickerValue:bt(),defaultValue:bt(),value:bt(),presets:bt(),disabledTime:Oe(),disabled:Xe([Boolean,Array]),renderExtraFooter:Oe(),separator:{type:String},showTime:Xe([Boolean,Object]),ranges:We(),placeholder:bt(),mode:bt(),onChange:Oe(),"onUpdate:value":Oe(),onCalendarChange:Oe(),onPanelChange:Oe(),onOk:Oe()}}var Wle=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function Ule(e,t){function n(u,c){const d=E(E(E({},$p()),K8()),t);return he({compatConfig:{MODE:3},name:c,inheritAttrs:!1,props:d,slots:Object,setup(f,p){let{slots:v,expose:m,attrs:h,emit:g}=p;const x=f,y=Cn(),w=Bn.useInject(),{prefixCls:b,direction:S,getPopupContainer:$,size:D,rootPrefixCls:O,disabled:A}=He("picker",x),{compactSize:T,compactItemClassnames:M}=di(b,S),B=z(()=>T.value||D.value),[F,P]=xI(b),I=be();m({focus:()=>{var re;(re=I.value)===null||re===void 0||re.focus()},blur:()=>{var re;(re=I.value)===null||re===void 0||re.blur()}});const N=re=>x.valueFormat?e.toString(re,x.valueFormat):re,R=(re,ee)=>{const G=N(re);g("update:value",G),g("change",G,ee),y.onFieldChange()},_=re=>{g("update:open",re),g("openChange",re)},L=re=>{g("focus",re)},k=re=>{g("blur",re),y.onFieldBlur()},H=(re,ee)=>{const G=N(re);g("panelChange",G,ee)},V=re=>{const ee=N(re);g("ok",ee)},[U]=ro("DatePicker",_u),q=z(()=>x.value?x.valueFormat?e.toDate(x.value,x.valueFormat):x.value:x.value===""?void 0:x.value),K=z(()=>x.defaultValue?x.valueFormat?e.toDate(x.defaultValue,x.valueFormat):x.defaultValue:x.defaultValue===""?void 0:x.defaultValue),X=z(()=>x.defaultPickerValue?x.valueFormat?e.toDate(x.defaultPickerValue,x.valueFormat):x.defaultPickerValue:x.defaultPickerValue===""?void 0:x.defaultPickerValue);return()=>{var re,ee,G,le,ue,me;const Se=E(E({},U.value),x.locale),Q=E(E({},x),h),{bordered:te=!0,placeholder:de,suffixIcon:Y=(re=v.suffixIcon)===null||re===void 0?void 0:re.call(v),showToday:ae=!0,transitionName:ce,allowClear:Ce=!0,dateRender:ye=v.dateRender,renderExtraFooter:J=v.renderExtraFooter,monthCellRender:ne=v.monthCellRender||x.monthCellContentRender||v.monthCellContentRender,clearIcon:oe=(ee=v.clearIcon)===null||ee===void 0?void 0:ee.call(v),id:ie=y.id.value}=Q,ve=Wle(Q,["bordered","placeholder","suffixIcon","showToday","transitionName","allowClear","dateRender","renderExtraFooter","monthCellRender","clearIcon","id"]),we=Q.showTime===""?!0:Q.showTime,{format:$e}=Q;let Ae={};u&&(Ae.picker=u);const xe=u||Q.picker||"date";Ae=E(E(E({},Ae),we?Ep(E({format:$e,picker:xe},typeof we=="object"?we:{})):{}),xe==="time"?Ep(E(E({format:$e},ve),{picker:xe})):{});const Ee=b.value,Te=C(dt,null,[Y||(u==="time"?C(g8,null,null):C(h8,null,null)),w.hasFeedback&&w.feedbackIcon]);return F(C(zJ,j(j(j({monthCellRender:ne,dateRender:ye,renderExtraFooter:J,ref:I,placeholder:jle(Se,xe,de),suffixIcon:Te,dropdownAlign:U8(S.value,x.placement),clearIcon:oe||C($r,null,null),allowClear:Ce,transitionName:ce||`${O.value}-slide-up`},ve),Ae),{},{id:ie,picker:xe,value:q.value,defaultValue:K.value,defaultPickerValue:X.value,showToday:ae,locale:Se.lang,class:ge({[`${Ee}-${B.value}`]:B.value,[`${Ee}-borderless`]:!te},er(Ee,$o(w.status,x.status),w.hasFeedback),h.class,P.value,M.value),disabled:A.value,prefixCls:Ee,getPopupContainer:h.getCalendarContainer||$.value,generateConfig:e,prevIcon:((G=v.prevIcon)===null||G===void 0?void 0:G.call(v))||C("span",{class:`${Ee}-prev-icon`},null),nextIcon:((le=v.nextIcon)===null||le===void 0?void 0:le.call(v))||C("span",{class:`${Ee}-next-icon`},null),superPrevIcon:((ue=v.superPrevIcon)===null||ue===void 0?void 0:ue.call(v))||C("span",{class:`${Ee}-super-prev-icon`},null),superNextIcon:((me=v.superNextIcon)===null||me===void 0?void 0:me.call(v))||C("span",{class:`${Ee}-super-next-icon`},null),components:G8,direction:S.value,dropdownClassName:ge(P.value,x.popupClassName,x.dropdownClassName),onChange:R,onOpenChange:_,onFocus:L,onBlur:k,onPanelChange:H,onOk:V}),null))}}})}const r=n(void 0,"ADatePicker"),o=n("week","AWeekPicker"),a=n("month","AMonthPicker"),i=n("year","AYearPicker"),l=n("time","TimePicker"),s=n("quarter","AQuarterPicker");return{DatePicker:r,WeekPicker:o,MonthPicker:a,YearPicker:i,TimePicker:l,QuarterPicker:s}}var Kle=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function qle(e,t){return he({compatConfig:{MODE:3},name:"ARangePicker",inheritAttrs:!1,props:E(E(E({},$p()),q8()),t),slots:Object,setup(r,o){let{expose:a,slots:i,attrs:l,emit:s}=o;const u=r,c=Cn(),d=Bn.useInject(),{prefixCls:f,direction:p,getPopupContainer:v,size:m,rootPrefixCls:h,disabled:g}=He("picker",u),{compactSize:x,compactItemClassnames:y}=di(f,p),w=z(()=>x.value||m.value),[b,S]=xI(f),$=be();a({focus:()=>{var L;(L=$.value)===null||L===void 0||L.focus()},blur:()=>{var L;(L=$.value)===null||L===void 0||L.blur()}});const D=L=>u.valueFormat?e.toString(L,u.valueFormat):L,O=(L,k)=>{const H=D(L);s("update:value",H),s("change",H,k),c.onFieldChange()},A=L=>{s("update:open",L),s("openChange",L)},T=L=>{s("focus",L)},M=L=>{s("blur",L),c.onFieldBlur()},B=(L,k)=>{const H=D(L);s("panelChange",H,k)},F=L=>{const k=D(L);s("ok",k)},P=(L,k,H)=>{const V=D(L);s("calendarChange",V,k,H)},[I]=ro("DatePicker",_u),N=z(()=>u.value&&u.valueFormat?e.toDate(u.value,u.valueFormat):u.value),R=z(()=>u.defaultValue&&u.valueFormat?e.toDate(u.defaultValue,u.valueFormat):u.defaultValue),_=z(()=>u.defaultPickerValue&&u.valueFormat?e.toDate(u.defaultPickerValue,u.valueFormat):u.defaultPickerValue);return()=>{var L,k,H,V,U,q,K;const X=E(E({},I.value),u.locale),re=E(E({},u),l),{prefixCls:ee,bordered:G=!0,placeholder:le,suffixIcon:ue=(L=i.suffixIcon)===null||L===void 0?void 0:L.call(i),picker:me="date",transitionName:Se,allowClear:Q=!0,dateRender:te=i.dateRender,renderExtraFooter:de=i.renderExtraFooter,separator:Y=(k=i.separator)===null||k===void 0?void 0:k.call(i),clearIcon:ae=(H=i.clearIcon)===null||H===void 0?void 0:H.call(i),id:ce=c.id.value}=re,Ce=Kle(re,["prefixCls","bordered","placeholder","suffixIcon","picker","transitionName","allowClear","dateRender","renderExtraFooter","separator","clearIcon","id"]);delete Ce["onUpdate:value"],delete Ce["onUpdate:open"];const{format:ye,showTime:J}=re;let ne={};ne=E(E(E({},ne),J?Ep(E({format:ye,picker:me},J)):{}),me==="time"?Ep(E(E({format:ye},pt(Ce,["disabledTime"])),{picker:me})):{});const oe=f.value,ie=C(dt,null,[ue||(me==="time"?C(g8,null,null):C(h8,null,null)),d.hasFeedback&&d.feedbackIcon]);return b(C(XJ,j(j(j({dateRender:te,renderExtraFooter:de,separator:Y||C("span",{"aria-label":"to",class:`${oe}-separator`},[C($ie,null,null)]),ref:$,dropdownAlign:U8(p.value,u.placement),placeholder:Vle(X,me,le),suffixIcon:ie,clearIcon:ae||C($r,null,null),allowClear:Q,transitionName:Se||`${h.value}-slide-up`},Ce),ne),{},{disabled:g.value,id:ce,value:N.value,defaultValue:R.value,defaultPickerValue:_.value,picker:me,class:ge({[`${oe}-${w.value}`]:w.value,[`${oe}-borderless`]:!G},er(oe,$o(d.status,u.status),d.hasFeedback),l.class,S.value,y.value),locale:X.lang,prefixCls:oe,getPopupContainer:l.getCalendarContainer||v.value,generateConfig:e,prevIcon:((V=i.prevIcon)===null||V===void 0?void 0:V.call(i))||C("span",{class:`${oe}-prev-icon`},null),nextIcon:((U=i.nextIcon)===null||U===void 0?void 0:U.call(i))||C("span",{class:`${oe}-next-icon`},null),superPrevIcon:((q=i.superPrevIcon)===null||q===void 0?void 0:q.call(i))||C("span",{class:`${oe}-super-prev-icon`},null),superNextIcon:((K=i.superNextIcon)===null||K===void 0?void 0:K.call(i))||C("span",{class:`${oe}-super-next-icon`},null),components:G8,direction:p.value,dropdownClassName:ge(S.value,u.popupClassName,u.dropdownClassName),onChange:O,onOpenChange:A,onFocus:T,onBlur:M,onPanelChange:B,onOk:F,onCalendarChange:P}),null))}}})}const G8={button:Ble,rangeItem:Hle};function Gle(e){return e?Array.isArray(e)?e:[e]:[]}function Ep(e){const{format:t,picker:n,showHour:r,showMinute:o,showSecond:a,use12Hours:i}=e,l=Gle(t)[0],s=E({},e);return l&&typeof l=="string"&&(!l.includes("s")&&a===void 0&&(s.showSecond=!1),!l.includes("m")&&o===void 0&&(s.showMinute=!1),!l.includes("H")&&!l.includes("h")&&r===void 0&&(s.showHour=!1),(l.includes("a")||l.includes("A"))&&i===void 0&&(s.use12Hours=!0)),n==="time"?s:(typeof l=="function"&&delete s.format,{showTime:s})}function X8(e,t){const{DatePicker:n,WeekPicker:r,MonthPicker:o,YearPicker:a,TimePicker:i,QuarterPicker:l}=Ule(e,t),s=qle(e,t);return{DatePicker:n,WeekPicker:r,MonthPicker:o,YearPicker:a,TimePicker:i,QuarterPicker:l,RangePicker:s}}const{DatePicker:Hh,WeekPicker:sf,MonthPicker:uf,YearPicker:Xle,TimePicker:Yle,QuarterPicker:cf,RangePicker:df}=X8(O1),Zle=E(Hh,{WeekPicker:sf,MonthPicker:uf,YearPicker:Xle,RangePicker:df,TimePicker:Yle,QuarterPicker:cf,install:e=>(e.component(Hh.name,Hh),e.component(df.name,df),e.component(uf.name,uf),e.component(sf.name,sf),e.component(cf.name,cf),e)});function md(e){return e!=null}const Jle=e=>{const{itemPrefixCls:t,component:n,span:r,labelStyle:o,contentStyle:a,bordered:i,label:l,content:s,colon:u}=e,c=n;return i?C(c,{class:[{[`${t}-item-label`]:md(l),[`${t}-item-content`]:md(s)}],colSpan:r},{default:()=>[md(l)&&C("span",{style:o},[l]),md(s)&&C("span",{style:a},[s])]}):C(c,{class:[`${t}-item`],colSpan:r},{default:()=>[C("div",{class:`${t}-item-container`},[(l||l===0)&&C("span",{class:[`${t}-item-label`,{[`${t}-item-no-colon`]:!u}],style:o},[l]),(s||s===0)&&C("span",{class:`${t}-item-content`,style:a},[s])])]})},jh=Jle,Qle=e=>{const t=(u,c,d)=>{let{colon:f,prefixCls:p,bordered:v}=c,{component:m,type:h,showLabel:g,showContent:x,labelStyle:y,contentStyle:w}=d;return u.map((b,S)=>{var $,D;const O=b.props||{},{prefixCls:A=p,span:T=1,labelStyle:M=O["label-style"],contentStyle:B=O["content-style"],label:F=(D=($=b.children)===null||$===void 0?void 0:$.label)===null||D===void 0?void 0:D.call($)}=O,P=am(b),I=JF(b),N=VT(b),{key:R}=b;return typeof m=="string"?C(jh,{key:`${h}-${String(R)||S}`,class:I,style:N,labelStyle:E(E({},y),M),contentStyle:E(E({},w),B),span:T,colon:f,component:m,itemPrefixCls:A,bordered:v,label:g?F:null,content:x?P:null},null):[C(jh,{key:`label-${String(R)||S}`,class:I,style:E(E(E({},y),N),M),span:1,colon:f,component:m[0],itemPrefixCls:A,bordered:v,label:F},null),C(jh,{key:`content-${String(R)||S}`,class:I,style:E(E(E({},w),N),B),span:T*2-1,component:m[1],itemPrefixCls:A,bordered:v,content:P},null)]})},{prefixCls:n,vertical:r,row:o,index:a,bordered:i}=e,{labelStyle:l,contentStyle:s}=lt(J8,{labelStyle:be({}),contentStyle:be({})});return r?C(dt,null,[C("tr",{key:`label-${a}`,class:`${n}-row`},[t(o,e,{component:"th",type:"label",showLabel:!0,labelStyle:l.value,contentStyle:s.value})]),C("tr",{key:`content-${a}`,class:`${n}-row`},[t(o,e,{component:"td",type:"content",showContent:!0,labelStyle:l.value,contentStyle:s.value})])]):C("tr",{key:a,class:`${n}-row`},[t(o,e,{component:i?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0,labelStyle:l.value,contentStyle:s.value})])},ese=Qle,tse=e=>{const{componentCls:t,descriptionsSmallPadding:n,descriptionsDefaultPadding:r,descriptionsMiddlePadding:o,descriptionsBg:a}=e;return{[`&${t}-bordered`]:{[`${t}-view`]:{border:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"> table":{tableLayout:"auto",borderCollapse:"collapse"}},[`${t}-item-label, ${t}-item-content`]:{padding:r,borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`${t}-item-label`]:{backgroundColor:a,"&::after":{display:"none"}},[`${t}-row`]:{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBottom:"none"}},[`&${t}-middle`]:{[`${t}-item-label, ${t}-item-content`]:{padding:o}},[`&${t}-small`]:{[`${t}-item-label, ${t}-item-content`]:{padding:n}}}}},nse=e=>{const{componentCls:t,descriptionsExtraColor:n,descriptionItemPaddingBottom:r,descriptionsItemLabelColonMarginRight:o,descriptionsItemLabelColonMarginLeft:a,descriptionsTitleMarginBottom:i}=e;return{[t]:E(E(E({},rt(e)),tse(e)),{["&-rtl"]:{direction:"rtl"},[`${t}-header`]:{display:"flex",alignItems:"center",marginBottom:i},[`${t}-title`]:E(E({},gn),{flex:"auto",color:e.colorText,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}),[`${t}-extra`]:{marginInlineStart:"auto",color:n,fontSize:e.fontSize},[`${t}-view`]:{width:"100%",borderRadius:e.borderRadiusLG,table:{width:"100%",tableLayout:"fixed"}},[`${t}-row`]:{"> th, > td":{paddingBottom:r},"&:last-child":{borderBottom:"none"}},[`${t}-item-label`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${a}px ${o}px`},[`&${t}-item-no-colon::after`]:{content:'""'}},[`${t}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${t}-item-content`]:{display:"table-cell",flex:1,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${t}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${t}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${t}-item-content`]:{display:"inline-flex",alignItems:"baseline"}}},"&-middle":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingSM}}},"&-small":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingXS}}}})}},rse=nt("Descriptions",e=>{const t=e.colorFillAlter,n=e.fontSizeSM*e.lineHeightSM,r=e.colorText,o=`${e.paddingXS}px ${e.padding}px`,a=`${e.padding}px ${e.paddingLG}px`,i=`${e.paddingSM}px ${e.paddingLG}px`,l=e.padding,s=e.marginXS,u=e.marginXXS/2,c=qe(e,{descriptionsBg:t,descriptionsTitleMarginBottom:n,descriptionsExtraColor:r,descriptionItemPaddingBottom:l,descriptionsSmallPadding:o,descriptionsDefaultPadding:a,descriptionsMiddlePadding:i,descriptionsItemLabelColonMarginRight:s,descriptionsItemLabelColonMarginLeft:u});return[nse(c)]});Z.any;const ose=()=>({prefixCls:String,label:Z.any,labelStyle:{type:Object,default:void 0},contentStyle:{type:Object,default:void 0},span:{type:Number,default:1}}),Y8=he({compatConfig:{MODE:3},name:"ADescriptionsItem",props:ose(),setup(e,t){let{slots:n}=t;return()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}}),Z8={xxxl:3,xxl:3,xl:3,lg:3,md:3,sm:2,xs:1};function ase(e,t){if(typeof e=="number")return e;if(typeof e=="object")for(let n=0;n<sa.length;n++){const r=sa[n];if(t[r]&&e[r]!==void 0)return e[r]||Z8[r]}return 3}function w3(e,t,n){let r=e;return(n===void 0||n>t)&&(r=At(e,{span:t}),Jt()),r}function ise(e,t){const n=Lt(e),r=[];let o=[],a=t;return n.forEach((i,l)=>{var s;const u=(s=i.props)===null||s===void 0?void 0:s.span,c=u||1;if(l===n.length-1){o.push(w3(i,a,u)),r.push(o);return}c<a?(a-=c,o.push(i)):(o.push(w3(i,a,c)),r.push(o),a=t,o=[])}),r}const lse=()=>({prefixCls:String,bordered:{type:Boolean,default:void 0},size:{type:String,default:"default"},title:Z.any,extra:Z.any,column:{type:[Number,Object],default:()=>Z8},layout:String,colon:{type:Boolean,default:void 0},labelStyle:{type:Object,default:void 0},contentStyle:{type:Object,default:void 0}}),J8=Symbol("descriptionsContext"),_l=he({compatConfig:{MODE:3},name:"ADescriptions",inheritAttrs:!1,props:lse(),slots:Object,Item:Y8,setup(e,t){let{slots:n,attrs:r}=t;const{prefixCls:o,direction:a}=He("descriptions",e);let i;const l=be({}),[s,u]=rse(o),c=p1();ky(()=>{i=c.value.subscribe(f=>{typeof e.column=="object"&&(l.value=f)})}),st(()=>{c.value.unsubscribe(i)}),it(J8,{labelStyle:Ye(e,"labelStyle"),contentStyle:Ye(e,"contentStyle")});const d=z(()=>ase(e.column,l.value));return()=>{var f,p,v;const{size:m,bordered:h=!1,layout:g="horizontal",colon:x=!0,title:y=(f=n.title)===null||f===void 0?void 0:f.call(n),extra:w=(p=n.extra)===null||p===void 0?void 0:p.call(n)}=e,b=(v=n.default)===null||v===void 0?void 0:v.call(n),S=ise(b,d.value);return s(C("div",j(j({},r),{},{class:[o.value,{[`${o.value}-${m}`]:m!=="default",[`${o.value}-bordered`]:!!h,[`${o.value}-rtl`]:a.value==="rtl"},r.class,u.value]}),[(y||w)&&C("div",{class:`${o.value}-header`},[y&&C("div",{class:`${o.value}-title`},[y]),w&&C("div",{class:`${o.value}-extra`},[w])]),C("div",{class:`${o.value}-view`},[C("table",null,[C("tbody",null,[S.map(($,D)=>C(ese,{key:D,index:D,colon:x,prefixCls:o.value,vertical:g==="vertical",bordered:h,row:$},null))])])])]))}}});_l.install=function(e){return e.component(_l.name,_l),e.component(_l.Item.name,_l.Item),e};const sse=_l,use=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o}=e;return{[t]:E(E({},rt(e)),{borderBlockStart:`${o}px solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",margin:`0 ${e.dividerVerticalGutterMargin}px`,verticalAlign:"middle",borderTop:0,borderInlineStart:`${o}px solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${o}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:"5%"},"&::after":{width:"95%"}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:"95%"},"&::after":{width:"5%"}},[`${t}-inner-text`]:{display:"inline-block",padding:"0 1em"},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${o}px 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStart:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},cse=nt("Divider",e=>{const t=qe(e,{dividerVerticalGutterMargin:e.marginXS,dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG});return[use(t)]},{sizePaddingEdgeHorizontal:0}),dse=()=>({prefixCls:String,type:{type:String,default:"horizontal"},dashed:{type:Boolean,default:!1},orientation:{type:String,default:"center"},plain:{type:Boolean,default:!1},orientationMargin:[String,Number]}),fse=he({name:"ADivider",inheritAttrs:!1,compatConfig:{MODE:3},props:dse(),setup(e,t){let{slots:n,attrs:r}=t;const{prefixCls:o,direction:a}=He("divider",e),[i,l]=cse(o),s=z(()=>e.orientation==="left"&&e.orientationMargin!=null),u=z(()=>e.orientation==="right"&&e.orientationMargin!=null),c=z(()=>{const{type:p,dashed:v,plain:m}=e,h=o.value;return{[h]:!0,[l.value]:!!l.value,[`${h}-${p}`]:!0,[`${h}-dashed`]:!!v,[`${h}-plain`]:!!m,[`${h}-rtl`]:a.value==="rtl",[`${h}-no-default-orientation-margin-left`]:s.value,[`${h}-no-default-orientation-margin-right`]:u.value}}),d=z(()=>{const p=typeof e.orientationMargin=="number"?`${e.orientationMargin}px`:e.orientationMargin;return E(E({},s.value&&{marginLeft:p}),u.value&&{marginRight:p})}),f=z(()=>e.orientation.length>0?"-"+e.orientation:e.orientation);return()=>{var p;const v=Lt((p=n.default)===null||p===void 0?void 0:p.call(n));return i(C("div",j(j({},r),{},{class:[c.value,v.length?`${o.value}-with-text ${o.value}-with-text${f.value}`:"",r.class],role:"separator"}),[v.length?C("span",{class:`${o.value}-inner-text`,style:d.value},[v]):null]))}}}),pse=rn(fse);zo.Button=qu;zo.install=function(e){return e.component(zo.name,zo),e.component(qu.name,qu),e};const Q8=()=>({prefixCls:String,width:Z.oneOfType([Z.string,Z.number]),height:Z.oneOfType([Z.string,Z.number]),style:{type:Object,default:void 0},class:String,rootClassName:String,rootStyle:We(),placement:{type:String},wrapperClassName:String,level:{type:[String,Array]},levelMove:{type:[Number,Function,Array]},duration:String,ease:String,showMask:{type:Boolean,default:void 0},maskClosable:{type:Boolean,default:void 0},maskStyle:{type:Object,default:void 0},afterVisibleChange:Function,keyboard:{type:Boolean,default:void 0},contentWrapperStyle:bt(),autofocus:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},motion:Oe(),maskMotion:We()}),mse=()=>E(E({},Q8()),{forceRender:{type:Boolean,default:void 0},getContainer:Z.oneOfType([Z.string,Z.func,Z.object,Z.looseBool])}),vse=()=>E(E({},Q8()),{getContainer:Function,getOpenCount:Function,scrollLocker:Z.any,inline:Boolean});function hse(e){return Array.isArray(e)?e:[e]}const e6={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend"},gse=Object.keys(e6).filter(e=>{if(typeof document>"u")return!1;const t=document.getElementsByTagName("html")[0];return e in(t?t.style:{})})[0];e6[gse];const yse=!(typeof window<"u"&&window.document&&window.document.createElement);var bse=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const xse=he({compatConfig:{MODE:3},inheritAttrs:!1,props:vse(),emits:["close","handleClick","change"],setup(e,t){let{emit:n,slots:r}=t;const o=pe(),a=pe(),i=pe(),l=pe(),s=pe();let u=[];`${Number((Date.now()+Math.random()).toString().replace(".",Math.round(Math.random()*9).toString())).toString(16)}`,Qe(()=>{ht(()=>{var g;const{open:x,getContainer:y,showMask:w,autofocus:b}=e,S=y==null?void 0:y();v(e),x&&(S&&(S.parentNode,document.body),ht(()=>{b&&c()}),w&&((g=e.scrollLocker)===null||g===void 0||g.lock()))})}),Ne(()=>e.level,()=>{v(e)},{flush:"post"}),Ne(()=>e.open,()=>{const{open:g,getContainer:x,scrollLocker:y,showMask:w,autofocus:b}=e,S=x==null?void 0:x();S&&(S.parentNode,document.body),g?(b&&c(),w&&(y==null||y.lock())):y==null||y.unLock()},{flush:"post"}),Cr(()=>{var g;const{open:x}=e;x&&(document.body.style.touchAction=""),(g=e.scrollLocker)===null||g===void 0||g.unLock()}),Ne(()=>e.placement,g=>{g&&(s.value=null)});const c=()=>{var g,x;(x=(g=a.value)===null||g===void 0?void 0:g.focus)===null||x===void 0||x.call(g)},d=g=>{n("close",g)},f=g=>{g.keyCode===_e.ESC&&(g.stopPropagation(),d(g))},p=()=>{const{open:g,afterVisibleChange:x}=e;x&&x(!!g)},v=g=>{let{level:x,getContainer:y}=g;if(yse)return;const w=y==null?void 0:y(),b=w?w.parentNode:null;u=[],x==="all"?(b?Array.prototype.slice.call(b.children):[]).forEach($=>{$.nodeName!=="SCRIPT"&&$.nodeName!=="STYLE"&&$.nodeName!=="LINK"&&$!==w&&u.push($)}):x&&hse(x).forEach(S=>{document.querySelectorAll(S).forEach($=>{u.push($)})})},m=g=>{n("handleClick",g)},h=pe(!1);return Ne(a,()=>{ht(()=>{h.value=!0})}),()=>{var g,x;const{width:y,height:w,open:b,prefixCls:S,placement:$,level:D,levelMove:O,ease:A,duration:T,getContainer:M,onChange:B,afterVisibleChange:F,showMask:P,maskClosable:I,maskStyle:N,keyboard:R,getOpenCount:_,scrollLocker:L,contentWrapperStyle:k,style:H,class:V,rootClassName:U,rootStyle:q,maskMotion:K,motion:X,inline:re}=e,ee=bse(e,["width","height","open","prefixCls","placement","level","levelMove","ease","duration","getContainer","onChange","afterVisibleChange","showMask","maskClosable","maskStyle","keyboard","getOpenCount","scrollLocker","contentWrapperStyle","style","class","rootClassName","rootStyle","maskMotion","motion","inline"]),G=b&&h.value,le=ge(S,{[`${S}-${$}`]:!0,[`${S}-open`]:G,[`${S}-inline`]:re,"no-mask":!P,[U]:!0}),ue=typeof X=="function"?X($):X;return C("div",j(j({},pt(ee,["autofocus"])),{},{tabindex:-1,class:le,style:q,ref:a,onKeydown:G&&R?f:void 0}),[C(_n,K,{default:()=>[P&&vn(C("div",{class:`${S}-mask`,onClick:I?d:void 0,style:N,ref:i},null),[[ur,G]])]}),C(_n,j(j({},ue),{},{onAfterEnter:p,onAfterLeave:p}),{default:()=>[vn(C("div",{class:`${S}-content-wrapper`,style:[k],ref:o},[C("div",{class:[`${S}-content`,V],style:H,ref:s},[(g=r.default)===null||g===void 0?void 0:g.call(r)]),r.handler?C("div",{onClick:m,ref:l},[(x=r.handler)===null||x===void 0?void 0:x.call(r)]):null]),[[ur,G]])]})])}}}),S3=xse;var C3=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const wse=he({compatConfig:{MODE:3},inheritAttrs:!1,props:at(mse(),{prefixCls:"drawer",placement:"left",getContainer:"body",level:"all",duration:".3s",ease:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",afterVisibleChange:()=>{},showMask:!0,maskClosable:!0,maskStyle:{},wrapperClassName:"",keyboard:!0,forceRender:!1,autofocus:!0}),emits:["handleClick","close"],setup(e,t){let{emit:n,slots:r}=t;const o=be(null),a=l=>{n("handleClick",l)},i=l=>{n("close",l)};return()=>{const{getContainer:l,wrapperClassName:s,rootClassName:u,rootStyle:c,forceRender:d}=e,f=C3(e,["getContainer","wrapperClassName","rootClassName","rootStyle","forceRender"]);let p=null;if(!l)return C(S3,j(j({},f),{},{rootClassName:u,rootStyle:c,open:e.open,onClose:i,onHandleClick:a,inline:!0}),r);const v=!!r.handler||d;return(v||e.open||o.value)&&(p=C(fc,{autoLock:!0,visible:e.open,forceRender:v,getContainer:l,wrapperClassName:s},{default:m=>{var{visible:h,afterClose:g}=m,x=C3(m,["visible","afterClose"]);return C(S3,j(j(j({ref:o},f),x),{},{rootClassName:u,rootStyle:c,open:h!==void 0?h:e.open,afterVisibleChange:g!==void 0?g:e.afterVisibleChange,onClose:i,onHandleClick:a}),r)}})),p}}}),Sse=wse,Cse=e=>{const{componentCls:t,motionDurationSlow:n}=e,r={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${n}`}}};return{[t]:{[`${t}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${n}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${t}-panel-motion`]:{"&-left":[r,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[r,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[r,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[r,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}},$se=Cse,Ese=e=>{const{componentCls:t,zIndexPopup:n,colorBgMask:r,colorBgElevated:o,motionDurationSlow:a,motionDurationMid:i,padding:l,paddingLG:s,fontSizeLG:u,lineHeightLG:c,lineWidth:d,lineType:f,colorSplit:p,marginSM:v,colorIcon:m,colorIconHover:h,colorText:g,fontWeightStrong:x,drawerFooterPaddingVertical:y,drawerFooterPaddingHorizontal:w}=e,b=`${t}-content-wrapper`;return{[t]:{position:"fixed",inset:0,zIndex:n,pointerEvents:"none","&-pure":{position:"relative",background:o,[`&${t}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${t}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${t}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${t}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${t}-mask`]:{position:"absolute",inset:0,zIndex:n,background:r,pointerEvents:"auto"},[b]:{position:"absolute",zIndex:n,transition:`all ${a}`,"&-hidden":{display:"none"}},[`&-left > ${b}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${b}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${b}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${b}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${t}-content`]:{width:"100%",height:"100%",overflow:"auto",background:o,pointerEvents:"auto"},[`${t}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${t}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${l}px ${s}px`,fontSize:u,lineHeight:c,borderBottom:`${d}px ${f} ${p}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${t}-extra`]:{flex:"none"},[`${t}-close`]:{display:"inline-block",marginInlineEnd:v,color:m,fontWeight:x,fontSize:u,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${i}`,textRendering:"auto","&:focus, &:hover":{color:h,textDecoration:"none"}},[`${t}-title`]:{flex:1,margin:0,color:g,fontWeight:e.fontWeightStrong,fontSize:u,lineHeight:c},[`${t}-body`]:{flex:1,minWidth:0,minHeight:0,padding:s,overflow:"auto"},[`${t}-footer`]:{flexShrink:0,padding:`${y}px ${w}px`,borderTop:`${d}px ${f} ${p}`},"&-rtl":{direction:"rtl"}}}},Dse=nt("Drawer",e=>{const t=qe(e,{drawerFooterPaddingVertical:e.paddingXS,drawerFooterPaddingHorizontal:e.padding});return[Ese(t),$se(t)]},e=>({zIndexPopup:e.zIndexPopupBase}));var Ase=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Ose=["top","right","bottom","left"],$3={distance:180},Tse=()=>({autofocus:{type:Boolean,default:void 0},closable:{type:Boolean,default:void 0},closeIcon:Z.any,destroyOnClose:{type:Boolean,default:void 0},forceRender:{type:Boolean,default:void 0},getContainer:{type:[String,Function,Boolean,Object],default:void 0},maskClosable:{type:Boolean,default:void 0},mask:{type:Boolean,default:void 0},maskStyle:We(),rootClassName:String,rootStyle:We(),size:{type:String},drawerStyle:We(),headerStyle:We(),bodyStyle:We(),contentWrapperStyle:{type:Object,default:void 0},title:Z.any,visible:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},width:Z.oneOfType([Z.string,Z.number]),height:Z.oneOfType([Z.string,Z.number]),zIndex:Number,prefixCls:String,push:Z.oneOfType([Z.looseBool,{type:Object}]),placement:Z.oneOf(Ose),keyboard:{type:Boolean,default:void 0},extra:Z.any,footer:Z.any,footerStyle:We(),level:Z.any,levelMove:{type:[Number,Array,Function]},handle:Z.any,afterVisibleChange:Function,onAfterVisibleChange:Function,onAfterOpenChange:Function,"onUpdate:visible":Function,"onUpdate:open":Function,onClose:Function}),Mse=he({compatConfig:{MODE:3},name:"ADrawer",inheritAttrs:!1,props:at(Tse(),{closable:!0,placement:"right",maskClosable:!0,mask:!0,level:null,keyboard:!0,push:$3}),slots:Object,setup(e,t){let{emit:n,slots:r,attrs:o}=t;const a=pe(!1),i=pe(!1),l=pe(null),s=pe(!1),u=pe(!1),c=z(()=>{var _;return(_=e.open)!==null&&_!==void 0?_:e.visible});Ne(c,()=>{c.value?s.value=!0:u.value=!1},{immediate:!0}),Ne([c,s],()=>{c.value&&s.value&&(u.value=!0)},{immediate:!0});const d=lt("parentDrawerOpts",null),{prefixCls:f,getPopupContainer:p,direction:v}=He("drawer",e),[m,h]=Dse(f),g=z(()=>e.getContainer===void 0&&(p!=null&&p.value)?()=>p.value(document.body):e.getContainer);qt(!e.afterVisibleChange,"Drawer","`afterVisibleChange` prop is deprecated, please use `@afterVisibleChange` event instead"),it("parentDrawerOpts",{setPush:()=>{a.value=!0},setPull:()=>{a.value=!1,ht(()=>{w()})}}),Qe(()=>{c.value&&d&&d.setPush()}),Cr(()=>{d&&d.setPull()}),Ne(u,()=>{d&&(u.value?d.setPush():d.setPull())},{flush:"post"});const w=()=>{var _,L;(L=(_=l.value)===null||_===void 0?void 0:_.domFocus)===null||L===void 0||L.call(_)},b=_=>{n("update:visible",!1),n("update:open",!1),n("close",_)},S=_=>{var L;_||(i.value===!1&&(i.value=!0),e.destroyOnClose&&(s.value=!1)),(L=e.afterVisibleChange)===null||L===void 0||L.call(e,_),n("afterVisibleChange",_),n("afterOpenChange",_)},$=z(()=>{const{push:_,placement:L}=e;let k;return typeof _=="boolean"?k=_?$3.distance:0:k=_.distance,k=parseFloat(String(k||0)),L==="left"||L==="right"?`translateX(${L==="left"?k:-k}px)`:L==="top"||L==="bottom"?`translateY(${L==="top"?k:-k}px)`:null}),D=z(()=>{var _;return(_=e.width)!==null&&_!==void 0?_:e.size==="large"?736:378}),O=z(()=>{var _;return(_=e.height)!==null&&_!==void 0?_:e.size==="large"?736:378}),A=z(()=>{const{mask:_,placement:L}=e;if(!u.value&&!_)return{};const k={};return L==="left"||L==="right"?k.width=lp(D.value)?`${D.value}px`:D.value:k.height=lp(O.value)?`${O.value}px`:O.value,k}),T=z(()=>{const{zIndex:_}=e,L=A.value;return[{zIndex:_,transform:a.value?$.value:void 0},L]}),M=_=>{const{closable:L,headerStyle:k}=e,H=Sn(r,e,"extra"),V=Sn(r,e,"title");return!V&&!L?null:C("div",{class:ge(`${_}-header`,{[`${_}-header-close-only`]:L&&!V&&!H}),style:k},[C("div",{class:`${_}-header-title`},[B(_),V&&C("div",{class:`${_}-title`},[V])]),H&&C("div",{class:`${_}-extra`},[H])])},B=_=>{var L;const{closable:k}=e,H=r.closeIcon?(L=r.closeIcon)===null||L===void 0?void 0:L.call(r):e.closeIcon;return k&&C("button",{key:"closer",onClick:b,"aria-label":"Close",class:`${_}-close`},[H===void 0?C(Hr,null,null):H])},F=_=>{var L;if(i.value&&!e.forceRender&&!s.value)return null;const{bodyStyle:k,drawerStyle:H}=e;return C("div",{class:`${_}-wrapper-body`,style:H},[M(_),C("div",{key:"body",class:`${_}-body`,style:k},[(L=r.default)===null||L===void 0?void 0:L.call(r)]),P(_)])},P=_=>{const L=Sn(r,e,"footer");if(!L)return null;const k=`${_}-footer`;return C("div",{class:k,style:e.footerStyle},[L])},I=z(()=>ge({"no-mask":!e.mask,[`${f.value}-rtl`]:v.value==="rtl"},e.rootClassName,h.value)),N=z(()=>to(xr(f.value,"mask-motion"))),R=_=>to(xr(f.value,`panel-motion-${_}`));return()=>{const{width:_,height:L,placement:k,mask:H,forceRender:V}=e,U=Ase(e,["width","height","placement","mask","forceRender"]),q=E(E(E({},o),pt(U,["size","closeIcon","closable","destroyOnClose","drawerStyle","headerStyle","bodyStyle","title","push","onAfterVisibleChange","onClose","onUpdate:visible","onUpdate:open","visible"])),{forceRender:V,onClose:b,afterVisibleChange:S,handler:!1,prefixCls:f.value,open:u.value,showMask:H,placement:k,ref:l});return m(C(Ku,null,{default:()=>[C(Sse,j(j({},q),{},{maskMotion:N.value,motion:R,width:D.value,height:O.value,getContainer:g.value,rootClassName:I.value,rootStyle:e.rootStyle,contentWrapperStyle:T.value}),{handler:e.handle?()=>e.handle:r.handle,default:()=>F(f.value)})]}))}}}),Nse=rn(Mse),aw=()=>({prefixCls:String,description:Z.any,type:Ue("default"),shape:Ue("circle"),tooltip:Z.any,href:String,target:Oe(),onClick:Oe()}),Pse=()=>({prefixCls:Ue()}),Ise=()=>E(E({},aw()),{trigger:Ue(),open:Pe(),onOpenChange:Oe(),"onUpdate:open":Oe()}),_se=()=>E(E({},aw()),{prefixCls:String,duration:Number,target:Oe(),visibilityHeight:Number,onClick:Oe()}),Bse=he({compatConfig:{MODE:3},name:"AFloatButtonContent",inheritAttrs:!1,props:Pse(),setup(e,t){let{attrs:n,slots:r}=t;return()=>{var o;const{prefixCls:a}=e,i=nn((o=r.description)===null||o===void 0?void 0:o.call(r));return C("div",j(j({},n),{},{class:[n.class,`${a}-content`]}),[r.icon||i.length?C(dt,null,[r.icon&&C("div",{class:`${a}-icon`},[r.icon()]),i.length?C("div",{class:`${a}-description`},[i]):null]):C("div",{class:`${a}-icon`},[C(x8,null,null)])])}}}),Fse=Bse,t6=Symbol("floatButtonGroupContext"),Rse=e=>(it(t6,e),e),n6=()=>lt(t6,{shape:be()}),zse=e=>{const{componentCls:t,floatButtonSize:n,motionDurationSlow:r,motionEaseInOutCirc:o}=e,a=`${t}-group`,i=new ft("antFloatButtonMoveDownIn",{"0%":{transform:`translate3d(0, ${n}px, 0)`,transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),l=new ft("antFloatButtonMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:`translate3d(0, ${n}px, 0)`,transformOrigin:"0 0",opacity:0}});return[{[`${a}-wrap`]:E({},hc(`${a}-wrap`,i,l,r,!0))},{[`${a}-wrap`]:{[`
- &${a}-wrap-enter,
- &${a}-wrap-appear
- `]:{opacity:0,animationTimingFunction:o},[`&${a}-wrap-leave`]:{animationTimingFunction:o}}}]},Lse=e=>{const{componentCls:t,floatButtonSize:n,margin:r,borderRadiusLG:o}=e,a=`${t}-group`;return{[a]:E(E({},rt(e)),{zIndex:99,display:"block",border:"none",position:"fixed",width:n,height:"auto",boxShadow:"none",minHeight:n,insetInlineEnd:e.floatButtonInsetInlineEnd,insetBlockEnd:e.floatButtonInsetBlockEnd,borderRadius:o,[`${a}-wrap`]:{zIndex:-1,display:"block",position:"relative",marginBottom:r},[`&${a}-rtl`]:{direction:"rtl"},[t]:{position:"static"}}),[`${a}-circle`]:{[`${t}-circle:not(:last-child)`]:{marginBottom:e.margin,[`${t}-body`]:{width:n,height:n}}},[`${a}-square`]:{[`${t}-square`]:{borderRadius:0,padding:0,"&:first-child":{borderStartStartRadius:o,borderStartEndRadius:o},"&:last-child":{borderEndStartRadius:o,borderEndEndRadius:o},"&:not(:last-child)":{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`}},[`${a}-wrap`]:{display:"block",borderRadius:o,boxShadow:e.boxShadowSecondary,overflow:"hidden",[`${t}-square`]:{boxShadow:"none",marginTop:0,borderRadius:0,padding:e.paddingXXS,"&:first-child":{borderStartStartRadius:o,borderStartEndRadius:o},"&:last-child":{borderEndStartRadius:o,borderEndEndRadius:o},"&:not(:last-child)":{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-body`]:{width:n-e.paddingXXS*2,height:n-e.paddingXXS*2}}}},[`${a}-circle-shadow`]:{boxShadow:"none"},[`${a}-square-shadow`]:{boxShadow:e.boxShadowSecondary,[`${t}-square`]:{boxShadow:"none",padding:e.paddingXXS,[`${t}-body`]:{width:n-e.paddingXXS*2,height:n-e.paddingXXS*2}}}}},kse=e=>{const{componentCls:t,floatButtonIconSize:n,floatButtonSize:r,borderRadiusLG:o}=e;return{[t]:E(E({},rt(e)),{border:"none",position:"fixed",cursor:"pointer",overflow:"hidden",zIndex:99,display:"block",justifyContent:"center",alignItems:"center",width:r,height:r,insetInlineEnd:e.floatButtonInsetInlineEnd,insetBlockEnd:e.floatButtonInsetBlockEnd,boxShadow:e.boxShadowSecondary,"&-pure":{position:"relative",inset:"auto"},"&:empty":{display:"none"},[`${t}-body`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",transition:`all ${e.motionDurationMid}`,[`${t}-content`]:{overflow:"hidden",textAlign:"center",minHeight:r,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",padding:"2px 4px",[`${t}-icon`]:{textAlign:"center",margin:"auto",width:n,fontSize:n,lineHeight:1}}}}),[`${t}-circle`]:{height:r,borderRadius:"50%",[`${t}-body`]:{borderRadius:"50%"}},[`${t}-square`]:{height:"auto",minHeight:r,borderRadius:o,[`${t}-body`]:{height:"auto",borderRadius:e.borderRadiusSM}},[`${t}-default`]:{backgroundColor:e.floatButtonBackgroundColor,transition:`background-color ${e.motionDurationMid}`,[`${t}-body`]:{backgroundColor:e.floatButtonBackgroundColor,transition:`background-color ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.colorFillContent},[`${t}-content`]:{[`${t}-icon`]:{color:e.colorText},[`${t}-description`]:{display:"flex",alignItems:"center",lineHeight:`${e.fontSizeLG}px`,color:e.colorText,fontSize:e.fontSizeSM}}}},[`${t}-primary`]:{backgroundColor:e.colorPrimary,[`${t}-body`]:{backgroundColor:e.colorPrimary,transition:`background-color ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.colorPrimaryHover},[`${t}-content`]:{[`${t}-icon`]:{color:e.colorTextLightSolid},[`${t}-description`]:{display:"flex",alignItems:"center",lineHeight:`${e.fontSizeLG}px`,color:e.colorTextLightSolid,fontSize:e.fontSizeSM}}}}}},iw=nt("FloatButton",e=>{const{colorTextLightSolid:t,colorBgElevated:n,controlHeightLG:r,marginXXL:o,marginLG:a,fontSize:i,fontSizeIcon:l,controlItemBgHover:s}=e,u=qe(e,{floatButtonBackgroundColor:n,floatButtonColor:t,floatButtonHoverBackgroundColor:s,floatButtonFontSize:i,floatButtonIconSize:l*1.5,floatButtonSize:r,floatButtonInsetBlockEnd:o,floatButtonInsetInlineEnd:a});return[Lse(u),kse(u),t1(e),zse(u)]});var Hse=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const lw="float-btn",jse=he({compatConfig:{MODE:3},name:"AFloatButton",inheritAttrs:!1,props:at(aw(),{type:"default",shape:"circle"}),setup(e,t){let{attrs:n,slots:r}=t;const{prefixCls:o,direction:a}=He(lw,e),[i,l]=iw(o),{shape:s}=n6(),u=be(null),c=z(()=>(s==null?void 0:s.value)||e.shape);return()=>{var d;const{prefixCls:f,type:p="default",shape:v="circle",description:m=(d=r.description)===null||d===void 0?void 0:d.call(r),tooltip:h}=e,g=Hse(e,["prefixCls","type","shape","description","tooltip"]),x=ge(o.value,`${o.value}-${p}`,`${o.value}-${c.value}`,{[`${o.value}-rtl`]:a.value==="rtl"},n.class,l.value),y=C(Br,{placement:"left"},{title:r.tooltip||h?()=>r.tooltip&&r.tooltip()||h:void 0,default:()=>C("div",{class:`${o.value}-body`},[C(Fse,{prefixCls:o.value},{icon:r.icon,description:()=>m})])});return i(e.href?C("a",j(j(j({ref:u},n),g),{},{class:x}),[y]):C("button",j(j(j({ref:u},n),g),{},{class:x,type:"button"}),[y]))}}}),ni=jse,Vse=he({compatConfig:{MODE:3},name:"AFloatButtonGroup",inheritAttrs:!1,props:at(Ise(),{type:"default",shape:"circle"}),setup(e,t){let{attrs:n,slots:r,emit:o}=t;const{prefixCls:a,direction:i}=He(lw,e),[l,s]=iw(a),[u,c]=Zt(!1,{value:z(()=>e.open)}),d=be(null),f=be(null);Rse({shape:z(()=>e.shape)});const p={onMouseenter(){var g;c(!0),o("update:open",!0),(g=e.onOpenChange)===null||g===void 0||g.call(e,!0)},onMouseleave(){var g;c(!1),o("update:open",!1),(g=e.onOpenChange)===null||g===void 0||g.call(e,!1)}},v=z(()=>e.trigger==="hover"?p:{}),m=()=>{var g;const x=!u.value;o("update:open",x),(g=e.onOpenChange)===null||g===void 0||g.call(e,x),c(x)},h=g=>{var x,y,w;if(!((x=d.value)===null||x===void 0)&&x.contains(g.target)){!((y=yr(f.value))===null||y===void 0)&&y.contains(g.target)&&m();return}c(!1),o("update:open",!1),(w=e.onOpenChange)===null||w===void 0||w.call(e,!1)};return Ne(z(()=>e.trigger),g=>{document.removeEventListener("click",h),g==="click"&&document.addEventListener("click",h)},{immediate:!0}),st(()=>{document.removeEventListener("click",h)}),()=>{var g;const{shape:x="circle",type:y="default",tooltip:w,description:b,trigger:S}=e,$=`${a.value}-group`,D=ge($,s.value,n.class,{[`${$}-rtl`]:i.value==="rtl",[`${$}-${x}`]:x,[`${$}-${x}-shadow`]:!S}),O=ge(s.value,`${$}-wrap`),A=to(`${$}-wrap`);return l(C("div",j(j({ref:d},n),{},{class:D},v.value),[S&&["click","hover"].includes(S)?C(dt,null,[C(_n,A,{default:()=>[vn(C("div",{class:O},[r.default&&r.default()]),[[ur,u.value]])]}),C(ni,{ref:f,type:y,shape:x,tooltip:w,description:b},{icon:()=>{var T,M;return u.value?((T=r.closeIcon)===null||T===void 0?void 0:T.call(r))||C(Hr,null,null):((M=r.icon)===null||M===void 0?void 0:M.call(r))||C(x8,null,null)},tooltip:r.tooltip,description:r.description})]):(g=r.default)===null||g===void 0?void 0:g.call(r)]))}}}),Dp=Vse,Wse=he({compatConfig:{MODE:3},name:"ABackTop",inheritAttrs:!1,props:at(_se(),{visibilityHeight:400,target:()=>window,duration:450,type:"default",shape:"circle"}),setup(e,t){let{slots:n,attrs:r,emit:o}=t;const{prefixCls:a,direction:i}=He(lw,e),[l]=iw(a),s=be(),u=_t({visible:e.visibilityHeight===0,scrollEvent:null}),c=()=>s.value&&s.value.ownerDocument?s.value.ownerDocument:window,d=h=>{const{target:g=c,duration:x}=e;db(0,{getContainer:g,duration:x}),o("click",h)},f=Og(h=>{const{visibilityHeight:g}=e,x=cb(h.target,!0);u.visible=x>=g}),p=()=>{const{target:h}=e,x=(h||c)();f({target:x}),x==null||x.addEventListener("scroll",f)},v=()=>{const{target:h}=e,x=(h||c)();f.cancel(),x==null||x.removeEventListener("scroll",f)};Ne(()=>e.target,()=>{v(),ht(()=>{p()})}),Qe(()=>{ht(()=>{p()})}),Vy(()=>{ht(()=>{p()})}),VB(()=>{v()}),st(()=>{v()});const m=n6();return()=>{const h=C("div",{class:`${a.value}-content`},[C("div",{class:`${a.value}-icon`},[C(v3,null,null)])]),g=E(E({},r),{shape:(m==null?void 0:m.shape.value)||e.shape,onClick:d,class:{[`${a.value}`]:!0,[`${r.class}`]:r.class,[`${a.value}-rtl`]:i.value==="rtl"}}),x=to("fade");return l(C(_n,x,{default:()=>[vn(C(ni,j(j({},g),{},{ref:s}),{icon:()=>C(v3,null,null),default:()=>{var y;return((y=n.default)===null||y===void 0?void 0:y.call(n))||h}}),[[ur,u.visible]])]}))}}}),Ap=Wse;ni.Group=Dp;ni.BackTop=Ap;ni.install=function(e){return e.component(ni.name,ni),e.component(Dp.name,Dp),e.component(Ap.name,Ap),e};const Eu=e=>e!=null&&(Array.isArray(e)?nn(e).length:!0);function sw(e){return Eu(e.prefix)||Eu(e.suffix)||Eu(e.allowClear)}function ff(e){return Eu(e.addonBefore)||Eu(e.addonAfter)}function F0(e){return typeof e>"u"||e===null?"":String(e)}function Du(e,t,n,r){if(!n)return;const o=t;if(t.type==="click"){Object.defineProperty(o,"target",{writable:!0}),Object.defineProperty(o,"currentTarget",{writable:!0});const a=e.cloneNode(!0);o.target=a,o.currentTarget=a,a.value="",n(o);return}if(r!==void 0){Object.defineProperty(o,"target",{writable:!0}),Object.defineProperty(o,"currentTarget",{writable:!0}),o.target=e,o.currentTarget=e,e.value=r,n(o);return}n(o)}function r6(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n){const r=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r)}}}const Use=()=>({addonBefore:Z.any,addonAfter:Z.any,prefix:Z.any,suffix:Z.any,clearIcon:Z.any,affixWrapperClassName:String,groupClassName:String,wrapperClassName:String,inputClassName:String,allowClear:{type:Boolean,default:void 0}}),o6=()=>E(E({},Use()),{value:{type:[String,Number,Symbol],default:void 0},defaultValue:{type:[String,Number,Symbol],default:void 0},inputElement:Z.any,prefixCls:String,disabled:{type:Boolean,default:void 0},focused:{type:Boolean,default:void 0},triggerFocus:Function,readonly:{type:Boolean,default:void 0},handleReset:Function,hidden:{type:Boolean,default:void 0}}),a6=()=>E(E({},o6()),{id:String,placeholder:{type:[String,Number]},autocomplete:String,type:Ue("text"),name:String,size:{type:String},autofocus:{type:Boolean,default:void 0},lazy:{type:Boolean,default:!0},maxlength:Number,loading:{type:Boolean,default:void 0},bordered:{type:Boolean,default:void 0},showCount:{type:[Boolean,Object]},htmlSize:Number,onPressEnter:Function,onKeydown:Function,onKeyup:Function,onFocus:Function,onBlur:Function,onChange:Function,onInput:Function,"onUpdate:value":Function,onCompositionstart:Function,onCompositionend:Function,valueModifiers:Object,hidden:{type:Boolean,default:void 0},status:String}),Kse=he({name:"BaseInput",inheritAttrs:!1,props:o6(),setup(e,t){let{slots:n,attrs:r}=t;const o=be(),a=l=>{var s;if(!((s=o.value)===null||s===void 0)&&s.contains(l.target)){const{triggerFocus:u}=e;u==null||u()}},i=()=>{var l;const{allowClear:s,value:u,disabled:c,readonly:d,handleReset:f,suffix:p=n.suffix,prefixCls:v}=e;if(!s)return null;const m=!c&&!d&&u,h=`${v}-clear-icon`,g=((l=n.clearIcon)===null||l===void 0?void 0:l.call(n))||"*";return C("span",{onClick:f,onMousedown:x=>x.preventDefault(),class:ge({[`${h}-hidden`]:!m,[`${h}-has-suffix`]:!!p},h),role:"button",tabindex:-1},[g])};return()=>{var l,s;const{focused:u,value:c,disabled:d,allowClear:f,readonly:p,hidden:v,prefixCls:m,prefix:h=(l=n.prefix)===null||l===void 0?void 0:l.call(n),suffix:g=(s=n.suffix)===null||s===void 0?void 0:s.call(n),addonAfter:x=n.addonAfter,addonBefore:y=n.addonBefore,inputElement:w,affixWrapperClassName:b,wrapperClassName:S,groupClassName:$}=e;let D=At(w,{value:c,hidden:v});if(sw({prefix:h,suffix:g,allowClear:f})){const O=`${m}-affix-wrapper`,A=ge(O,{[`${O}-disabled`]:d,[`${O}-focused`]:u,[`${O}-readonly`]:p,[`${O}-input-with-clear-btn`]:g&&f&&c},!ff({addonAfter:x,addonBefore:y})&&r.class,b),T=(g||f)&&C("span",{class:`${m}-suffix`},[i(),g]);D=C("span",{class:A,style:r.style,hidden:!ff({addonAfter:x,addonBefore:y})&&v,onMousedown:a,ref:o},[h&&C("span",{class:`${m}-prefix`},[h]),At(w,{style:null,value:c,hidden:null}),T])}if(ff({addonAfter:x,addonBefore:y})){const O=`${m}-group`,A=`${O}-addon`,T=ge(`${m}-wrapper`,O,S),M=ge(`${m}-group-wrapper`,r.class,$);return C("span",{class:M,style:r.style,hidden:v},[C("span",{class:T},[y&&C("span",{class:A},[y]),At(D,{style:null,hidden:null}),x&&C("span",{class:A},[x])])])}return D}}});var qse=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Gse=he({name:"VCInput",inheritAttrs:!1,props:a6(),setup(e,t){let{slots:n,attrs:r,expose:o,emit:a}=t;const i=pe(e.value===void 0?e.defaultValue:e.value),l=pe(!1),s=pe();Ne(()=>e.value,()=>{i.value=e.value}),Ne(()=>e.disabled,()=>{e.disabled&&(l.value=!1)});const u=$=>{s.value&&r6(s.value,$)};o({focus:u,blur:()=>{var $;($=s.value)===null||$===void 0||$.blur()},input:s,stateValue:i,setSelectionRange:($,D,O)=>{var A;(A=s.value)===null||A===void 0||A.setSelectionRange($,D,O)},select:()=>{var $;($=s.value)===null||$===void 0||$.select()}});const p=$=>{a("change",$)},v=Kn(),m=($,D)=>{i.value!==$&&(e.value===void 0?i.value=$:ht(()=>{s.value.value!==i.value&&v.update()}),ht(()=>{D&&D()}))},h=$=>{const{value:D,composing:O}=$.target;if(($.isComposing||O)&&e.lazy||i.value===D)return;const A=$.target.value;Du(s.value,$,p),m(A)},g=$=>{$.keyCode===13&&a("pressEnter",$),a("keydown",$)},x=$=>{l.value=!0,a("focus",$)},y=$=>{l.value=!1,a("blur",$)},w=$=>{Du(s.value,$,p),m("",()=>{u()})},b=()=>{var $,D;const{addonBefore:O=n.addonBefore,addonAfter:A=n.addonAfter,disabled:T,valueModifiers:M={},htmlSize:B,autocomplete:F,prefixCls:P,inputClassName:I,prefix:N=($=n.prefix)===null||$===void 0?void 0:$.call(n),suffix:R=(D=n.suffix)===null||D===void 0?void 0:D.call(n),allowClear:_,type:L="text"}=e,k=pt(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","size","bordered","htmlSize","lazy","showCount","valueModifiers","showCount","affixWrapperClassName","groupClassName","inputClassName","wrapperClassName"]),H=E(E(E({},k),r),{autocomplete:F,onChange:h,onInput:h,onFocus:x,onBlur:y,onKeydown:g,class:ge(P,{[`${P}-disabled`]:T},I,!ff({addonAfter:A,addonBefore:O})&&!sw({prefix:N,suffix:R,allowClear:_})&&r.class),ref:s,key:"ant-input",size:B,type:L});M.lazy&&delete H.onInput,H.autofocus||delete H.autofocus;const V=C("input",pt(H,["size"]),null);return vn(V,[[As]])},S=()=>{var $;const{maxlength:D,suffix:O=($=n.suffix)===null||$===void 0?void 0:$.call(n),showCount:A,prefixCls:T}=e,M=Number(D)>0;if(O||A){const B=[...F0(i.value)].length,F=typeof A=="object"?A.formatter({count:B,maxlength:D}):`${B}${M?` / ${D}`:""}`;return C(dt,null,[!!A&&C("span",{class:ge(`${T}-show-count-suffix`,{[`${T}-show-count-has-suffix`]:!!O})},[F]),O])}return null};return Qe(()=>{}),()=>{const{prefixCls:$,disabled:D}=e,O=qse(e,["prefixCls","disabled"]);return C(Kse,j(j(j({},O),r),{},{prefixCls:$,inputElement:b(),handleReset:w,value:F0(i.value),focused:l.value,triggerFocus:u,suffix:S(),disabled:D}),n)}}}),i6=()=>pt(a6(),["wrapperClassName","groupClassName","inputClassName","affixWrapperClassName"]),uw=i6,l6=()=>E(E({},pt(i6(),["prefix","addonBefore","addonAfter","suffix"])),{rows:Number,autosize:{type:[Boolean,Object],default:void 0},autoSize:{type:[Boolean,Object],default:void 0},onResize:{type:Function},onCompositionstart:Wi(),onCompositionend:Wi(),valueModifiers:Object});var Xse=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const En=he({compatConfig:{MODE:3},name:"AInput",inheritAttrs:!1,props:uw(),setup(e,t){let{slots:n,attrs:r,expose:o,emit:a}=t;const i=be(),l=Cn(),s=Bn.useInject(),u=z(()=>$o(s.status,e.status)),{direction:c,prefixCls:d,size:f,autocomplete:p}=He("input",e),{compactSize:v,compactItemClassnames:m}=di(d,c),h=z(()=>v.value||f.value),[g,x]=Q1(d),y=Fr();o({focus:B=>{var F;(F=i.value)===null||F===void 0||F.focus(B)},blur:()=>{var B;(B=i.value)===null||B===void 0||B.blur()},input:i,setSelectionRange:(B,F,P)=>{var I;(I=i.value)===null||I===void 0||I.setSelectionRange(B,F,P)},select:()=>{var B;(B=i.value)===null||B===void 0||B.select()}});const D=be([]),O=()=>{D.value.push(setTimeout(()=>{var B,F,P,I;!((B=i.value)===null||B===void 0)&&B.input&&((F=i.value)===null||F===void 0?void 0:F.input.getAttribute("type"))==="password"&&(!((P=i.value)===null||P===void 0)&&P.input.hasAttribute("value"))&&((I=i.value)===null||I===void 0||I.input.removeAttribute("value"))}))};Qe(()=>{O()}),jy(()=>{D.value.forEach(B=>clearTimeout(B))}),st(()=>{D.value.forEach(B=>clearTimeout(B))});const A=B=>{O(),a("blur",B),l.onFieldBlur()},T=B=>{O(),a("focus",B)},M=B=>{a("update:value",B.target.value),a("change",B),a("input",B),l.onFieldChange()};return()=>{var B,F,P,I,N,R;const{hasFeedback:_,feedbackIcon:L}=s,{allowClear:k,bordered:H=!0,prefix:V=(B=n.prefix)===null||B===void 0?void 0:B.call(n),suffix:U=(F=n.suffix)===null||F===void 0?void 0:F.call(n),addonAfter:q=(P=n.addonAfter)===null||P===void 0?void 0:P.call(n),addonBefore:K=(I=n.addonBefore)===null||I===void 0?void 0:I.call(n),id:X=(N=l.id)===null||N===void 0?void 0:N.value}=e,re=Xse(e,["allowClear","bordered","prefix","suffix","addonAfter","addonBefore","id"]),ee=(_||U)&&C(dt,null,[U,_&&L]),G=d.value,le=sw({prefix:V,suffix:U})||!!_,ue=n.clearIcon||(()=>C($r,null,null));return g(C(Gse,j(j(j({},r),pt(re,["onUpdate:value","onChange","onInput"])),{},{onChange:M,id:X,disabled:(R=e.disabled)!==null&&R!==void 0?R:y.value,ref:i,prefixCls:G,autocomplete:p.value,onBlur:A,onFocus:T,suffix:ee,allowClear:k,addonAfter:q&&C(Ku,null,{default:()=>[C(ep,null,{default:()=>[q]})]}),addonBefore:K&&C(Ku,null,{default:()=>[C(ep,null,{default:()=>[K]})]}),class:[r.class,m.value],inputClassName:ge({[`${G}-sm`]:h.value==="small",[`${G}-lg`]:h.value==="large",[`${G}-rtl`]:c.value==="rtl",[`${G}-borderless`]:!H},!le&&er(G,u.value),x.value),affixWrapperClassName:ge({[`${G}-affix-wrapper-sm`]:h.value==="small",[`${G}-affix-wrapper-lg`]:h.value==="large",[`${G}-affix-wrapper-rtl`]:c.value==="rtl",[`${G}-affix-wrapper-borderless`]:!H},er(`${G}-affix-wrapper`,u.value,_),x.value),wrapperClassName:ge({[`${G}-group-rtl`]:c.value==="rtl"},x.value),groupClassName:ge({[`${G}-group-wrapper-sm`]:h.value==="small",[`${G}-group-wrapper-lg`]:h.value==="large",[`${G}-group-wrapper-rtl`]:c.value==="rtl"},er(`${G}-group-wrapper`,u.value,_),x.value)}),E(E({},n),{clearIcon:ue})))}}}),s6=he({compatConfig:{MODE:3},name:"AInputGroup",inheritAttrs:!1,props:{prefixCls:String,size:{type:String},compact:{type:Boolean,default:void 0}},setup(e,t){let{slots:n,attrs:r}=t;const{prefixCls:o,direction:a,getPrefixCls:i}=He("input-group",e),l=Bn.useInject();Bn.useProvide(l,{isFormItemInput:!1});const s=z(()=>i("input")),[u,c]=Q1(s),d=z(()=>{const f=o.value;return{[`${f}`]:!0,[c.value]:!0,[`${f}-lg`]:e.size==="large",[`${f}-sm`]:e.size==="small",[`${f}-compact`]:e.compact,[`${f}-rtl`]:a.value==="rtl"}});return()=>{var f;return u(C("span",j(j({},r),{},{class:ge(d.value,r.class)}),[(f=n.default)===null||f===void 0?void 0:f.call(n)]))}}});var Yse=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const u6=he({compatConfig:{MODE:3},name:"AInputSearch",inheritAttrs:!1,props:E(E({},uw()),{inputPrefixCls:String,enterButton:Z.any,onSearch:{type:Function}}),setup(e,t){let{slots:n,attrs:r,expose:o,emit:a}=t;const i=pe(),l=pe(!1);o({focus:()=>{var b;(b=i.value)===null||b===void 0||b.focus()},blur:()=>{var b;(b=i.value)===null||b===void 0||b.blur()}});const c=b=>{a("update:value",b.target.value),b&&b.target&&b.type==="click"&&a("search",b.target.value,b),a("change",b)},d=b=>{var S;document.activeElement===((S=i.value)===null||S===void 0?void 0:S.input)&&b.preventDefault()},f=b=>{var S,$;a("search",($=(S=i.value)===null||S===void 0?void 0:S.input)===null||$===void 0?void 0:$.stateValue,b)},p=b=>{l.value||e.loading||f(b)},v=b=>{l.value=!0,a("compositionstart",b)},m=b=>{l.value=!1,a("compositionend",b)},{prefixCls:h,getPrefixCls:g,direction:x,size:y}=He("input-search",e),w=z(()=>g("input",e.inputPrefixCls));return()=>{var b,S,$,D;const{disabled:O,loading:A,addonAfter:T=(b=n.addonAfter)===null||b===void 0?void 0:b.call(n),suffix:M=(S=n.suffix)===null||S===void 0?void 0:S.call(n)}=e,B=Yse(e,["disabled","loading","addonAfter","suffix"]);let{enterButton:F=(D=($=n.enterButton)===null||$===void 0?void 0:$.call(n))!==null&&D!==void 0?D:!1}=e;F=F||F==="";const P=typeof F=="boolean"?C(Nm,null,null):null,I=`${h.value}-button`,N=Array.isArray(F)?F[0]:F;let R;const _=N.type&&Gy(N.type)&&N.type.__ANT_BUTTON;if(_||N.tagName==="button")R=At(N,E({onMousedown:d,onClick:f,key:"enterButton"},_?{class:I,size:y.value}:{}),!1);else{const k=P&&!F;R=C(dn,{class:I,type:F?"primary":void 0,size:y.value,disabled:O,key:"enterButton",onMousedown:d,onClick:f,loading:A,icon:k?P:null},{default:()=>[k?null:P||F]})}T&&(R=[R,T]);const L=ge(h.value,{[`${h.value}-rtl`]:x.value==="rtl",[`${h.value}-${y.value}`]:!!y.value,[`${h.value}-with-button`]:!!F},r.class);return C(En,j(j(j({ref:i},pt(B,["onUpdate:value","onSearch","enterButton"])),r),{},{onPressEnter:p,onCompositionstart:v,onCompositionend:m,size:y.value,prefixCls:w.value,addonAfter:R,suffix:M,onChange:c,class:L,disabled:O}),n)}}}),E3=e=>e!=null&&(Array.isArray(e)?nn(e).length:!0);function Zse(e){return E3(e.addonBefore)||E3(e.addonAfter)}const Jse=["text","input"],Qse=he({compatConfig:{MODE:3},name:"ClearableLabeledInput",inheritAttrs:!1,props:{prefixCls:String,inputType:Z.oneOf(Un("text","input")),value:jt(),defaultValue:jt(),allowClear:{type:Boolean,default:void 0},element:jt(),handleReset:Function,disabled:{type:Boolean,default:void 0},direction:{type:String},size:{type:String},suffix:jt(),prefix:jt(),addonBefore:jt(),addonAfter:jt(),readonly:{type:Boolean,default:void 0},focused:{type:Boolean,default:void 0},bordered:{type:Boolean,default:!0},triggerFocus:{type:Function},hidden:Boolean,status:String,hashId:String},setup(e,t){let{slots:n,attrs:r}=t;const o=Bn.useInject(),a=l=>{const{value:s,disabled:u,readonly:c,handleReset:d,suffix:f=n.suffix}=e,p=!u&&!c&&s,v=`${l}-clear-icon`;return C($r,{onClick:d,onMousedown:m=>m.preventDefault(),class:ge({[`${v}-hidden`]:!p,[`${v}-has-suffix`]:!!f},v),role:"button"},null)},i=(l,s)=>{const{value:u,allowClear:c,direction:d,bordered:f,hidden:p,status:v,addonAfter:m=n.addonAfter,addonBefore:h=n.addonBefore,hashId:g}=e,{status:x,hasFeedback:y}=o;if(!c)return At(s,{value:u,disabled:e.disabled});const w=ge(`${l}-affix-wrapper`,`${l}-affix-wrapper-textarea-with-clear-btn`,er(`${l}-affix-wrapper`,$o(x,v),y),{[`${l}-affix-wrapper-rtl`]:d==="rtl",[`${l}-affix-wrapper-borderless`]:!f,[`${r.class}`]:!Zse({addonAfter:m,addonBefore:h})&&r.class},g);return C("span",{class:w,style:r.style,hidden:p},[At(s,{style:null,value:u,disabled:e.disabled}),a(l)])};return()=>{var l;const{prefixCls:s,inputType:u,element:c=(l=n.element)===null||l===void 0?void 0:l.call(n)}=e;return u===Jse[0]?i(s,c):null}}}),eue=`
- min-height:0 !important;
- max-height:none !important;
- height:0 !important;
- visibility:hidden !important;
- overflow:hidden !important;
- position:absolute !important;
- z-index:-1000 !important;
- top:0 !important;
- right:0 !important
- `,tue=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],Vh={};let Ur;function nue(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&Vh[n])return Vh[n];const r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),a=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),i=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s={sizingStyle:tue.map(u=>`${u}:${r.getPropertyValue(u)}`).join(";"),paddingSize:a,borderSize:i,boxSizing:o};return t&&n&&(Vh[n]=s),s}function rue(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Ur||(Ur=document.createElement("textarea"),Ur.setAttribute("tab-index","-1"),Ur.setAttribute("aria-hidden","true"),document.body.appendChild(Ur)),e.getAttribute("wrap")?Ur.setAttribute("wrap",e.getAttribute("wrap")):Ur.removeAttribute("wrap");const{paddingSize:o,borderSize:a,boxSizing:i,sizingStyle:l}=nue(e,t);Ur.setAttribute("style",`${l};${eue}`),Ur.value=e.value||e.placeholder||"";let s=Number.MIN_SAFE_INTEGER,u=Number.MAX_SAFE_INTEGER,c=Ur.scrollHeight,d;if(i==="border-box"?c+=a:i==="content-box"&&(c-=o),n!==null||r!==null){Ur.value=" ";const f=Ur.scrollHeight-o;n!==null&&(s=f*n,i==="border-box"&&(s=s+o+a),c=Math.max(s,c)),r!==null&&(u=f*r,i==="border-box"&&(u=u+o+a),d=c>u?"":"hidden",c=Math.min(u,c))}return{height:`${c}px`,minHeight:`${s}px`,maxHeight:`${u}px`,overflowY:d,resize:"none"}}const Wh=0,D3=1,oue=2,aue=he({compatConfig:{MODE:3},name:"ResizableTextArea",inheritAttrs:!1,props:l6(),setup(e,t){let{attrs:n,emit:r,expose:o}=t,a,i;const l=be(),s=be({}),u=be(Wh);st(()=>{tt.cancel(a),tt.cancel(i)});const c=()=>{try{if(document.activeElement===l.value){const h=l.value.selectionStart,g=l.value.selectionEnd;l.value.setSelectionRange(h,g)}}catch{}},d=()=>{const h=e.autoSize||e.autosize;if(!h||!l.value)return;const{minRows:g,maxRows:x}=h;s.value=rue(l.value,!1,g,x),u.value=D3,tt.cancel(i),i=tt(()=>{u.value=oue,i=tt(()=>{u.value=Wh,c()})})},f=()=>{tt.cancel(a),a=tt(d)},p=h=>{if(u.value!==Wh)return;r("resize",h),(e.autoSize||e.autosize)&&f()};Jt(e.autosize===void 0);const v=()=>{const{prefixCls:h,autoSize:g,autosize:x,disabled:y}=e,w=pt(e,["prefixCls","onPressEnter","autoSize","autosize","defaultValue","allowClear","type","lazy","maxlength","valueModifiers"]),b=ge(h,n.class,{[`${h}-disabled`]:y}),S=[n.style,s.value,u.value===D3?{overflowX:"hidden",overflowY:"hidden"}:null],$=E(E(E({},w),n),{style:S,class:b});return $.autofocus||delete $.autofocus,$.rows===0&&delete $.rows,C(Qr,{onResize:p,disabled:!(g||x)},{default:()=>[vn(C("textarea",j(j({},$),{},{ref:l}),null),[[As]])]})};Ne(()=>e.value,()=>{ht(()=>{d()})}),Qe(()=>{ht(()=>{d()})});const m=Kn();return o({resizeTextarea:d,textArea:l,instance:m}),()=>v()}}),iue=aue;function c6(e,t){return[...e||""].slice(0,t).join("")}function A3(e,t,n,r){let o=n;return e?o=c6(n,r):[...t||""].length<n.length&&[...n||""].length>r&&(o=t),o}const cw=he({compatConfig:{MODE:3},name:"ATextarea",inheritAttrs:!1,props:l6(),setup(e,t){let{attrs:n,expose:r,emit:o}=t;const a=Cn(),i=Bn.useInject(),l=z(()=>$o(i.status,e.status)),s=pe(e.value===void 0?e.defaultValue:e.value),u=pe(),c=pe(""),{prefixCls:d,size:f,direction:p}=He("input",e),[v,m]=Q1(d),h=Fr(),g=z(()=>e.showCount===""||e.showCount||!1),x=z(()=>Number(e.maxlength)>0),y=pe(!1),w=pe(),b=pe(0),S=R=>{y.value=!0,w.value=c.value,b.value=R.currentTarget.selectionStart,o("compositionstart",R)},$=R=>{var _;y.value=!1;let L=R.currentTarget.value;if(x.value){const k=b.value>=e.maxlength+1||b.value===((_=w.value)===null||_===void 0?void 0:_.length);L=A3(k,w.value,L,e.maxlength)}L!==c.value&&(T(L),Du(R.currentTarget,R,F,L)),o("compositionend",R)},D=Kn();Ne(()=>e.value,()=>{var R;"value"in D.vnode.props,s.value=(R=e.value)!==null&&R!==void 0?R:""});const O=R=>{var _;r6((_=u.value)===null||_===void 0?void 0:_.textArea,R)},A=()=>{var R,_;(_=(R=u.value)===null||R===void 0?void 0:R.textArea)===null||_===void 0||_.blur()},T=(R,_)=>{s.value!==R&&(e.value===void 0?s.value=R:ht(()=>{var L,k,H;u.value.textArea.value!==c.value&&((H=(L=u.value)===null||L===void 0?void 0:(k=L.instance).update)===null||H===void 0||H.call(k))}),ht(()=>{_&&_()}))},M=R=>{R.keyCode===13&&o("pressEnter",R),o("keydown",R)},B=R=>{const{onBlur:_}=e;_==null||_(R),a.onFieldBlur()},F=R=>{o("update:value",R.target.value),o("change",R),o("input",R),a.onFieldChange()},P=R=>{Du(u.value.textArea,R,F),T("",()=>{O()})},I=R=>{const{composing:_}=R.target;let L=R.target.value;if(y.value=!!(R.isComposing||_),!(y.value&&e.lazy||s.value===L)){if(x.value){const k=R.target,H=k.selectionStart>=e.maxlength+1||k.selectionStart===L.length||!k.selectionStart;L=A3(H,c.value,L,e.maxlength)}Du(R.currentTarget,R,F,L),T(L)}},N=()=>{var R,_;const{class:L}=n,{bordered:k=!0}=e,H=E(E(E({},pt(e,["allowClear"])),n),{class:[{[`${d.value}-borderless`]:!k,[`${L}`]:L&&!g.value,[`${d.value}-sm`]:f.value==="small",[`${d.value}-lg`]:f.value==="large"},er(d.value,l.value),m.value],disabled:h.value,showCount:null,prefixCls:d.value,onInput:I,onChange:I,onBlur:B,onKeydown:M,onCompositionstart:S,onCompositionend:$});return!((R=e.valueModifiers)===null||R===void 0)&&R.lazy&&delete H.onInput,C(iue,j(j({},H),{},{id:(_=H==null?void 0:H.id)!==null&&_!==void 0?_:a.id.value,ref:u,maxlength:e.maxlength}),null)};return r({focus:O,blur:A,resizableTextArea:u}),Je(()=>{let R=F0(s.value);!y.value&&x.value&&(e.value===null||e.value===void 0)&&(R=c6(R,e.maxlength)),c.value=R}),()=>{var R;const{maxlength:_,bordered:L=!0,hidden:k}=e,{style:H,class:V}=n,U=E(E(E({},e),n),{prefixCls:d.value,inputType:"text",handleReset:P,direction:p.value,bordered:L,style:g.value?void 0:H,hashId:m.value,disabled:(R=e.disabled)!==null&&R!==void 0?R:h.value});let q=C(Qse,j(j({},U),{},{value:c.value,status:e.status}),{element:N});if(g.value||i.hasFeedback){const K=[...c.value].length;let X="";typeof g.value=="object"?X=g.value.formatter({value:c.value,count:K,maxlength:_}):X=`${K}${x.value?` / ${_}`:""}`,q=C("div",{hidden:k,class:ge(`${d.value}-textarea`,{[`${d.value}-textarea-rtl`]:p.value==="rtl",[`${d.value}-textarea-show-count`]:g.value,[`${d.value}-textarea-in-form-item`]:i.isFormItemInput},`${d.value}-textarea-show-count`,V,m.value),style:H,"data-count":typeof X!="object"?X:void 0},[q,i.hasFeedback&&C("span",{class:`${d.value}-textarea-suffix`},[i.feedbackIcon])])}return v(q)}}});var lue=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const sue={click:"onClick",hover:"onMouseover"},uue=e=>e?C(Bx,null,null):C(gae,null,null),d6=he({compatConfig:{MODE:3},name:"AInputPassword",inheritAttrs:!1,props:E(E({},uw()),{prefixCls:String,inputPrefixCls:String,action:{type:String,default:"click"},visibilityToggle:{type:Boolean,default:!0},iconRender:Function}),setup(e,t){let{slots:n,attrs:r,expose:o}=t;const a=pe(!1),i=()=>{const{disabled:m}=e;m||(a.value=!a.value)},l=pe();o({focus:()=>{var m;(m=l.value)===null||m===void 0||m.focus()},blur:()=>{var m;(m=l.value)===null||m===void 0||m.blur()}});const c=m=>{const{action:h,iconRender:g=n.iconRender||uue}=e,x=sue[h]||"",y=g(a.value),w={[x]:i,class:`${m}-icon`,key:"passwordIcon",onMousedown:b=>{b.preventDefault()},onMouseup:b=>{b.preventDefault()}};return At(hn(y)?y:C("span",null,[y]),w)},{prefixCls:d,getPrefixCls:f}=He("input-password",e),p=z(()=>f("input",e.inputPrefixCls)),v=()=>{const{size:m,visibilityToggle:h}=e,g=lue(e,["size","visibilityToggle"]),x=h&&c(d.value),y=ge(d.value,r.class,{[`${d.value}-${m}`]:!!m}),w=E(E(E({},pt(g,["suffix","iconRender","action"])),r),{type:a.value?"text":"password",class:y,prefixCls:p.value,suffix:x});return m&&(w.size=m),C(En,j({ref:l},w),n)};return()=>v()}});En.Group=s6;En.Search=u6;En.TextArea=cw;En.Password=d6;En.install=function(e){return e.component(En.name,En),e.component(En.Group.name,En.Group),e.component(En.Search.name,En.Search),e.component(En.TextArea.name,En.TextArea),e.component(En.Password.name,En.Password),e};function cue(){const e=document.documentElement.clientWidth,t=window.innerHeight||document.documentElement.clientHeight;return{width:e,height:t}}function Op(e){const t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}function uv(){return{keyboard:{type:Boolean,default:void 0},mask:{type:Boolean,default:void 0},afterClose:Function,closable:{type:Boolean,default:void 0},maskClosable:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},destroyOnClose:{type:Boolean,default:void 0},mousePosition:Z.shape({x:Number,y:Number}).loose,title:Z.any,footer:Z.any,transitionName:String,maskTransitionName:String,animation:Z.any,maskAnimation:Z.any,wrapStyle:{type:Object,default:void 0},bodyStyle:{type:Object,default:void 0},maskStyle:{type:Object,default:void 0},prefixCls:String,wrapClassName:String,rootClassName:String,width:[String,Number],height:[String,Number],zIndex:Number,bodyProps:Z.any,maskProps:Z.any,wrapProps:Z.any,getContainer:Z.any,dialogStyle:{type:Object,default:void 0},dialogClass:String,closeIcon:Z.any,forceRender:{type:Boolean,default:void 0},getOpenCount:Function,focusTriggerAfterClose:{type:Boolean,default:void 0},onClose:Function,modalRender:Function}}function O3(e,t,n){let r=t;return!r&&n&&(r=`${e}-${n}`),r}let T3=-1;function due(){return T3+=1,T3}function M3(e,t){let n=e[`page${t?"Y":"X"}Offset`];const r=`scroll${t?"Top":"Left"}`;if(typeof n!="number"){const o=e.document;n=o.documentElement[r],typeof n!="number"&&(n=o.body[r])}return n}function fue(e){const t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow;return n.left+=M3(o),n.top+=M3(o,!0),n}const N3={width:0,height:0,overflow:"hidden",outline:"none"},pue=he({compatConfig:{MODE:3},name:"Content",inheritAttrs:!1,props:E(E({},uv()),{motionName:String,ariaId:String,onVisibleChanged:Function,onMousedown:Function,onMouseup:Function}),setup(e,t){let{expose:n,slots:r,attrs:o}=t;const a=be(),i=be(),l=be();n({focus:()=>{var f;(f=a.value)===null||f===void 0||f.focus()},changeActive:f=>{const{activeElement:p}=document;f&&p===i.value?a.value.focus():!f&&p===a.value&&i.value.focus()}});const s=be(),u=z(()=>{const{width:f,height:p}=e,v={};return f!==void 0&&(v.width=typeof f=="number"?`${f}px`:f),p!==void 0&&(v.height=typeof p=="number"?`${p}px`:p),s.value&&(v.transformOrigin=s.value),v}),c=()=>{ht(()=>{if(l.value){const f=fue(l.value);s.value=e.mousePosition?`${e.mousePosition.x-f.left}px ${e.mousePosition.y-f.top}px`:""}})},d=f=>{e.onVisibleChanged(f)};return()=>{var f,p,v,m;const{prefixCls:h,footer:g=(f=r.footer)===null||f===void 0?void 0:f.call(r),title:x=(p=r.title)===null||p===void 0?void 0:p.call(r),ariaId:y,closable:w,closeIcon:b=(v=r.closeIcon)===null||v===void 0?void 0:v.call(r),onClose:S,bodyStyle:$,bodyProps:D,onMousedown:O,onMouseup:A,visible:T,modalRender:M=r.modalRender,destroyOnClose:B,motionName:F}=e;let P;g&&(P=C("div",{class:`${h}-footer`},[g]));let I;x&&(I=C("div",{class:`${h}-header`},[C("div",{class:`${h}-title`,id:y},[x])]));let N;w&&(N=C("button",{type:"button",onClick:S,"aria-label":"Close",class:`${h}-close`},[b||C("span",{class:`${h}-close-x`},null)]));const R=C("div",{class:`${h}-content`},[N,I,C("div",j({class:`${h}-body`,style:$},D),[(m=r.default)===null||m===void 0?void 0:m.call(r)]),P]),_=to(F);return C(_n,j(j({},_),{},{onBeforeEnter:c,onAfterEnter:()=>d(!0),onAfterLeave:()=>d(!1)}),{default:()=>[T||!B?vn(C("div",j(j({},o),{},{ref:l,key:"dialog-element",role:"document",style:[u.value,o.style],class:[h,o.class],onMousedown:O,onMouseup:A}),[C("div",{tabindex:0,ref:a,style:N3,"aria-hidden":"true"},null),M?M({originVNode:R}):R,C("div",{tabindex:0,ref:i,style:N3,"aria-hidden":"true"},null)]),[[ur,T]]):null]})}}}),mue=he({compatConfig:{MODE:3},name:"Mask",props:{prefixCls:String,visible:Boolean,motionName:String,maskProps:Object},setup(e,t){return()=>{const{prefixCls:n,visible:r,maskProps:o,motionName:a}=e,i=to(a);return C(_n,i,{default:()=>[vn(C("div",j({class:`${n}-mask`},o),null),[[ur,r]])]})}}}),P3=he({compatConfig:{MODE:3},name:"Dialog",inheritAttrs:!1,props:at(E(E({},uv()),{getOpenCount:Function,scrollLocker:Object}),{mask:!0,visible:!1,keyboard:!0,closable:!0,maskClosable:!0,destroyOnClose:!1,prefixCls:"rc-dialog",getOpenCount:()=>null,focusTriggerAfterClose:!0}),setup(e,t){let{attrs:n,slots:r}=t;const o=pe(),a=pe(),i=pe(),l=pe(e.visible),s=pe(`vcDialogTitle${due()}`),u=g=>{var x,y;if(g)Ua(a.value,document.activeElement)||(o.value=document.activeElement,(x=i.value)===null||x===void 0||x.focus());else{const w=l.value;if(l.value=!1,e.mask&&o.value&&e.focusTriggerAfterClose){try{o.value.focus({preventScroll:!0})}catch{}o.value=null}w&&((y=e.afterClose)===null||y===void 0||y.call(e))}},c=g=>{var x;(x=e.onClose)===null||x===void 0||x.call(e,g)},d=pe(!1),f=pe(),p=()=>{clearTimeout(f.value),d.value=!0},v=()=>{f.value=setTimeout(()=>{d.value=!1})},m=g=>{if(!e.maskClosable)return null;d.value?d.value=!1:a.value===g.target&&c(g)},h=g=>{if(e.keyboard&&g.keyCode===_e.ESC){g.stopPropagation(),c(g);return}e.visible&&g.keyCode===_e.TAB&&i.value.changeActive(!g.shiftKey)};return Ne(()=>e.visible,()=>{e.visible&&(l.value=!0)},{flush:"post"}),st(()=>{var g;clearTimeout(f.value),(g=e.scrollLocker)===null||g===void 0||g.unLock()}),Je(()=>{var g,x;(g=e.scrollLocker)===null||g===void 0||g.unLock(),l.value&&((x=e.scrollLocker)===null||x===void 0||x.lock())}),()=>{const{prefixCls:g,mask:x,visible:y,maskTransitionName:w,maskAnimation:b,zIndex:S,wrapClassName:$,rootClassName:D,wrapStyle:O,closable:A,maskProps:T,maskStyle:M,transitionName:B,animation:F,wrapProps:P,title:I=r.title}=e,{style:N,class:R}=n;return C("div",j({class:[`${g}-root`,D]},ci(e,{data:!0})),[C(mue,{prefixCls:g,visible:x&&y,motionName:O3(g,w,b),style:E({zIndex:S},M),maskProps:T},null),C("div",j({tabIndex:-1,onKeydown:h,class:ge(`${g}-wrap`,$),ref:a,onClick:m,role:"dialog","aria-labelledby":I?s.value:null,style:E(E({zIndex:S},O),{display:l.value?null:"none"})},P),[C(pue,j(j({},pt(e,["scrollLocker"])),{},{style:N,class:R,onMousedown:p,onMouseup:v,ref:i,closable:A,ariaId:s.value,prefixCls:g,visible:y,onClose:c,onVisibleChanged:u,motionName:O3(g,B,F)}),r)])])}}}),vue=uv(),hue=he({compatConfig:{MODE:3},name:"DialogWrap",inheritAttrs:!1,props:at(vue,{visible:!1}),setup(e,t){let{attrs:n,slots:r}=t;const o=be(e.visible);return Mb({},{inTriggerContext:!1}),Ne(()=>e.visible,()=>{e.visible&&(o.value=!0)},{flush:"post"}),()=>{const{visible:a,getContainer:i,forceRender:l,destroyOnClose:s=!1,afterClose:u}=e;let c=E(E(E({},e),n),{ref:"_component",key:"dialog"});return i===!1?C(P3,j(j({},c),{},{getOpenCount:()=>2}),r):!l&&s&&!o.value?null:C(fc,{autoLock:!0,visible:a,forceRender:l,getContainer:i},{default:d=>(c=E(E(E({},c),d),{afterClose:()=>{u==null||u(),o.value=!1}}),C(P3,c,r))})}}}),f6=hue;function gue(e){const t=be(null),n=_t(E({},e)),r=be([]),o=a=>{t.value===null&&(r.value=[],t.value=tt(()=>{let i;r.value.forEach(l=>{i=E(E({},i),l)}),E(n,i),t.value=null})),r.value.push(a)};return Qe(()=>{t.value&&tt.cancel(t.value)}),[n,o]}function I3(e,t,n,r){const o=t+n,a=(n-r)/2;if(n>r){if(t>0)return{[e]:a};if(t<0&&o<r)return{[e]:-a}}else if(t<0||o>r)return{[e]:t<0?a:-a};return{}}function yue(e,t,n,r){const{width:o,height:a}=cue();let i=null;return e<=o&&t<=a?i={x:0,y:0}:(e>o||t>a)&&(i=E(E({},I3("x",n,e,o)),I3("y",r,t,a))),i}var bue=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const _3=Symbol("previewGroupContext"),dw={provide:e=>{it(_3,e)},inject:()=>lt(_3,{isPreviewGroup:pe(!1),previewUrls:z(()=>new Map),setPreviewUrls:()=>{},current:be(null),setCurrent:()=>{},setShowPreview:()=>{},setMousePosition:()=>{},registerImage:null,rootClassName:""})},xue=()=>({previewPrefixCls:String,preview:{type:[Boolean,Object],default:!0},icons:{type:Object,default:()=>({})}}),wue=he({compatConfig:{MODE:3},name:"PreviewGroup",inheritAttrs:!1,props:xue(),setup(e,t){let{slots:n}=t;const r=z(()=>{const b={visible:void 0,onVisibleChange:()=>{},getContainer:void 0,current:0};return typeof e.preview=="object"?h6(e.preview,b):b}),o=_t(new Map),a=be(),i=z(()=>r.value.visible),l=z(()=>r.value.getContainer),s=(b,S)=>{var $,D;(D=($=r.value).onVisibleChange)===null||D===void 0||D.call($,b,S)},[u,c]=Zt(!!i.value,{value:i,onChange:s}),d=be(null),f=z(()=>i.value!==void 0),p=z(()=>Array.from(o.keys())),v=z(()=>p.value[r.value.current]),m=z(()=>new Map(Array.from(o).filter(b=>{let[,{canPreview:S}]=b;return!!S}).map(b=>{let[S,{url:$}]=b;return[S,$]}))),h=function(b,S){let $=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;o.set(b,{url:S,canPreview:$})},g=b=>{a.value=b},x=b=>{d.value=b},y=function(b,S){let $=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const D=()=>{o.delete(b)};return o.set(b,{url:S,canPreview:$}),D},w=b=>{b==null||b.stopPropagation(),c(!1),x(null)};return Ne(v,b=>{g(b)},{immediate:!0,flush:"post"}),Je(()=>{u.value&&f.value&&g(v.value)},{flush:"post"}),dw.provide({isPreviewGroup:pe(!0),previewUrls:m,setPreviewUrls:h,current:a,setCurrent:g,setShowPreview:c,setMousePosition:x,registerImage:y}),()=>{const b=bue(r.value,[]);return C(dt,null,[n.default&&n.default(),C(m6,j(j({},b),{},{"ria-hidden":!u.value,visible:u.value,prefixCls:e.previewPrefixCls,onClose:w,mousePosition:d.value,src:m.value.get(a.value),icons:e.icons,getContainer:l.value}),null)])}}}),p6=wue,xi={x:0,y:0},Sue=E(E({},uv()),{src:String,alt:String,rootClassName:String,icons:{type:Object,default:()=>({})}}),Cue=he({compatConfig:{MODE:3},name:"Preview",inheritAttrs:!1,props:Sue,emits:["close","afterClose"],setup(e,t){let{emit:n,attrs:r}=t;const{rotateLeft:o,rotateRight:a,zoomIn:i,zoomOut:l,close:s,left:u,right:c}=_t(e.icons),d=pe(1),f=pe(0),[p,v]=gue(xi),m=()=>n("close"),h=pe(),g=_t({originX:0,originY:0,deltaX:0,deltaY:0}),x=pe(!1),y=dw.inject(),{previewUrls:w,current:b,isPreviewGroup:S,setCurrent:$}=y,D=z(()=>w.value.size),O=z(()=>Array.from(w.value.keys())),A=z(()=>O.value.indexOf(b.value)),T=z(()=>S.value?w.value.get(b.value):e.src),M=z(()=>S.value&&D.value>1),B=pe({wheelDirection:0}),F=()=>{d.value=1,f.value=0,v(xi),n("afterClose")},P=()=>{d.value++,v(xi)},I=()=>{d.value>1&&d.value--,v(xi)},N=()=>{f.value+=90},R=()=>{f.value-=90},_=ue=>{ue.preventDefault(),ue.stopPropagation(),A.value>0&&$(O.value[A.value-1])},L=ue=>{ue.preventDefault(),ue.stopPropagation(),A.value<D.value-1&&$(O.value[A.value+1])},k=ge({[`${e.prefixCls}-moving`]:x.value}),H=`${e.prefixCls}-operations-operation`,V=`${e.prefixCls}-operations-icon`,U=[{icon:s,onClick:m,type:"close"},{icon:i,onClick:P,type:"zoomIn"},{icon:l,onClick:I,type:"zoomOut",disabled:z(()=>d.value===1)},{icon:a,onClick:N,type:"rotateRight"},{icon:o,onClick:R,type:"rotateLeft"}],q=()=>{if(e.visible&&x.value){const ue=h.value.offsetWidth*d.value,me=h.value.offsetHeight*d.value,{left:Se,top:Q}=Op(h.value),te=f.value%180!==0;x.value=!1;const de=yue(te?me:ue,te?ue:me,Se,Q);de&&v(E({},de))}},K=ue=>{ue.button===0&&(ue.preventDefault(),ue.stopPropagation(),g.deltaX=ue.pageX-p.x,g.deltaY=ue.pageY-p.y,g.originX=p.x,g.originY=p.y,x.value=!0)},X=ue=>{e.visible&&x.value&&v({x:ue.pageX-g.deltaX,y:ue.pageY-g.deltaY})},re=ue=>{if(!e.visible)return;ue.preventDefault();const me=ue.deltaY;B.value={wheelDirection:me}},ee=ue=>{!e.visible||!M.value||(ue.preventDefault(),ue.keyCode===_e.LEFT?A.value>0&&$(O.value[A.value-1]):ue.keyCode===_e.RIGHT&&A.value<D.value-1&&$(O.value[A.value+1]))},G=()=>{e.visible&&(d.value!==1&&(d.value=1),(p.x!==xi.x||p.y!==xi.y)&&v(xi))};let le=()=>{};return Qe(()=>{Ne([()=>e.visible,x],()=>{le();let ue,me;const Se=en(window,"mouseup",q,!1),Q=en(window,"mousemove",X,!1),te=en(window,"wheel",re,{passive:!1}),de=en(window,"keydown",ee,!1);try{window.top!==window.self&&(ue=en(window.top,"mouseup",q,!1),me=en(window.top,"mousemove",X,!1))}catch{}le=()=>{Se.remove(),Q.remove(),te.remove(),de.remove(),ue&&ue.remove(),me&&me.remove()}},{flush:"post",immediate:!0}),Ne([B],()=>{const{wheelDirection:ue}=B.value;ue>0?I():ue<0&&P()})}),Cr(()=>{le()}),()=>{const{visible:ue,prefixCls:me,rootClassName:Se}=e;return C(f6,j(j({},r),{},{transitionName:e.transitionName,maskTransitionName:e.maskTransitionName,closable:!1,keyboard:!0,prefixCls:me,onClose:m,afterClose:F,visible:ue,wrapClassName:k,rootClassName:Se,getContainer:e.getContainer}),{default:()=>[C("div",{class:[`${e.prefixCls}-operations-wrapper`,Se]},[C("ul",{class:`${e.prefixCls}-operations`},[U.map(Q=>{let{icon:te,onClick:de,type:Y,disabled:ae}=Q;return C("li",{class:ge(H,{[`${e.prefixCls}-operations-operation-disabled`]:ae&&(ae==null?void 0:ae.value)}),onClick:de,key:Y},[ha(te,{class:V})])})])]),C("div",{class:`${e.prefixCls}-img-wrapper`,style:{transform:`translate3d(${p.x}px, ${p.y}px, 0)`}},[C("img",{onMousedown:K,onDblclick:G,ref:h,class:`${e.prefixCls}-img`,src:T.value,alt:e.alt,style:{transform:`scale3d(${d.value}, ${d.value}, 1) rotate(${f.value}deg)`}},null)]),M.value&&C("div",{class:ge(`${e.prefixCls}-switch-left`,{[`${e.prefixCls}-switch-left-disabled`]:A.value<=0}),onClick:_},[u]),M.value&&C("div",{class:ge(`${e.prefixCls}-switch-right`,{[`${e.prefixCls}-switch-right-disabled`]:A.value>=D.value-1}),onClick:L},[c])]})}}}),m6=Cue;var $ue=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const v6=()=>({src:String,wrapperClassName:String,wrapperStyle:{type:Object,default:void 0},rootClassName:String,prefixCls:String,previewPrefixCls:String,previewMask:{type:[Boolean,Function],default:void 0},placeholder:Z.any,fallback:String,preview:{type:[Boolean,Object],default:!0},onClick:{type:Function},onError:{type:Function}}),h6=(e,t)=>{const n=E({},e);return Object.keys(t).forEach(r=>{e[r]===void 0&&(n[r]=t[r])}),n};let Eue=0;const g6=he({compatConfig:{MODE:3},name:"Image",inheritAttrs:!1,props:v6(),emits:["click","error"],setup(e,t){let{attrs:n,slots:r,emit:o}=t;const a=z(()=>e.prefixCls),i=z(()=>`${a.value}-preview`),l=z(()=>{const R={visible:void 0,onVisibleChange:()=>{},getContainer:void 0};return typeof e.preview=="object"?h6(e.preview,R):R}),s=z(()=>{var R;return(R=l.value.src)!==null&&R!==void 0?R:e.src}),u=z(()=>e.placeholder&&e.placeholder!==!0||r.placeholder),c=z(()=>l.value.visible),d=z(()=>l.value.getContainer),f=z(()=>c.value!==void 0),p=(R,_)=>{var L,k;(k=(L=l.value).onVisibleChange)===null||k===void 0||k.call(L,R,_)},[v,m]=Zt(!!c.value,{value:c,onChange:p});Ne(v,(R,_)=>{p(R,_)});const h=be(u.value?"loading":"normal");Ne(()=>e.src,()=>{h.value=u.value?"loading":"normal"});const g=be(null),x=z(()=>h.value==="error"),y=dw.inject(),{isPreviewGroup:w,setCurrent:b,setShowPreview:S,setMousePosition:$,registerImage:D}=y,O=be(Eue++),A=z(()=>e.preview&&!x.value),T=()=>{h.value="normal"},M=R=>{h.value="error",o("error",R)},B=R=>{if(!f.value){const{left:_,top:L}=Op(R.target);w.value?(b(O.value),$({x:_,y:L})):g.value={x:_,y:L}}w.value?S(!0):m(!0),o("click",R)},F=()=>{m(!1),f.value||(g.value=null)},P=be(null);Ne(()=>P,()=>{h.value==="loading"&&P.value.complete&&(P.value.naturalWidth||P.value.naturalHeight)&&T()});let I=()=>{};Qe(()=>{Ne([s,A],()=>{if(I(),!w.value)return()=>{};I=D(O.value,s.value,A.value),A.value||I()},{flush:"post",immediate:!0})}),Cr(()=>{I()});const N=R=>Bq(R)?R+"px":R;return()=>{const{prefixCls:R,wrapperClassName:_,fallback:L,src:k,placeholder:H,wrapperStyle:V,rootClassName:U}=e,{width:q,height:K,crossorigin:X,decoding:re,alt:ee,sizes:G,srcset:le,usemap:ue,class:me,style:Se}=n,Q=l.value,{icons:te,maskClassName:de}=Q,Y=$ue(Q,["icons","maskClassName"]),ae=ge(R,_,U,{[`${R}-error`]:x.value}),ce=x.value&&L?L:s.value,Ce={crossorigin:X,decoding:re,alt:ee,sizes:G,srcset:le,usemap:ue,class:ge(`${R}-img`,{[`${R}-img-placeholder`]:H===!0},me),style:E({height:K},Se)};return C(dt,null,[C("div",{class:ae,onClick:A.value?B:ye=>{o("click",ye)},style:E({width:N(q),height:N(K)},V)},[C("img",j(j(j({},Ce),x.value&&L?{src:L}:{onLoad:T,onError:M,src:k}),{},{ref:P}),null),h.value==="loading"&&C("div",{"aria-hidden":"true",class:`${R}-placeholder`},[H||r.placeholder&&r.placeholder()]),r.previewMask&&A.value&&C("div",{class:[`${R}-mask`,de]},[r.previewMask()])]),!w.value&&A.value&&C(m6,j(j({},Y),{},{"aria-hidden":!v.value,visible:v.value,prefixCls:i.value,onClose:F,mousePosition:g.value,src:ce,alt:ee,getContainer:d.value,icons:te,rootClassName:U}),null)])}}});g6.PreviewGroup=p6;const Due=g6;function B3(e){return{position:e,top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0}}const y6=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}${e.antCls}-zoom-enter, ${t}${e.antCls}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${e.antCls}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:E(E({},B3("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:E(E({},B3("fixed")),{overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:t1(e)}]},Aue=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap`]:{zIndex:e.zIndexPopupBase,position:"fixed",inset:0,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"},[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax})`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${e.marginXS} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:E(E({},rt(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${e.margin*2}px)`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.modalHeadingColor,fontWeight:e.fontWeightStrong,fontSize:e.modalHeaderTitleFontSize,lineHeight:e.modalHeaderTitleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.modalContentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadowSecondary,pointerEvents:"auto",padding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`},[`${t}-close`]:E({position:"absolute",top:(e.modalHeaderCloseSize-e.modalCloseBtnSize)/2,insetInlineEnd:(e.modalHeaderCloseSize-e.modalCloseBtnSize)/2,zIndex:e.zIndexPopupBase+10,padding:0,color:e.modalCloseColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalConfirmIconSize,height:e.modalConfirmIconSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"block",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:`${e.modalCloseBtnSize}px`,textAlign:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalIconHoverColor,backgroundColor:e.wireframe?"transparent":e.colorFillContent,textDecoration:"none"},"&:active":{backgroundColor:e.wireframe?"transparent":e.colorFillContentHover}},ba(e)),[`${t}-header`]:{color:e.colorText,background:e.modalHeaderBg,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,marginBottom:e.marginXS},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word"},[`${t}-footer`]:{textAlign:"end",background:e.modalFooterBg,marginTop:e.marginSM,[`${e.antCls}-btn + ${e.antCls}-btn:not(${e.antCls}-dropdown-trigger)`]:{marginBottom:0,marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content,
- ${t}-body,
- ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},Oue=e=>{const{componentCls:t}=e,n=`${t}-confirm`;return{[n]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${n}-body-wrapper`]:E({},yo()),[`${n}-body`]:{display:"flex",flexWrap:"wrap",alignItems:"center",[`${n}-title`]:{flex:"0 0 100%",display:"block",overflow:"hidden",color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.modalHeaderTitleFontSize,lineHeight:e.modalHeaderTitleLineHeight,[`+ ${n}-content`]:{marginBlockStart:e.marginXS,flexBasis:"100%",maxWidth:`calc(100% - ${e.modalConfirmIconSize+e.marginSM}px)`}},[`${n}-content`]:{color:e.colorText,fontSize:e.fontSize},[`> ${e.iconCls}`]:{flex:"none",marginInlineEnd:e.marginSM,fontSize:e.modalConfirmIconSize,[`+ ${n}-title`]:{flex:1},[`+ ${n}-title + ${n}-content`]:{marginInlineStart:e.modalConfirmIconSize+e.marginSM}}},[`${n}-btns`]:{textAlign:"end",marginTop:e.marginSM,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${n}-error ${n}-body > ${e.iconCls}`]:{color:e.colorError},[`${n}-warning ${n}-body > ${e.iconCls},
- ${n}-confirm ${n}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${n}-info ${n}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${n}-success ${n}-body > ${e.iconCls}`]:{color:e.colorSuccess},[`${t}-zoom-leave ${t}-btns`]:{pointerEvents:"none"}}},Tue=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},Mue=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-confirm`;return{[t]:{[`${t}-content`]:{padding:0},[`${t}-header`]:{padding:e.modalHeaderPadding,borderBottom:`${e.modalHeaderBorderWidth}px ${e.modalHeaderBorderStyle} ${e.modalHeaderBorderColorSplit}`,marginBottom:0},[`${t}-body`]:{padding:e.modalBodyPadding},[`${t}-footer`]:{padding:`${e.modalFooterPaddingVertical}px ${e.modalFooterPaddingHorizontal}px`,borderTop:`${e.modalFooterBorderWidth}px ${e.modalFooterBorderStyle} ${e.modalFooterBorderColorSplit}`,borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`,marginTop:0}},[r]:{[`${n}-modal-body`]:{padding:`${e.padding*2}px ${e.padding*2}px ${e.paddingLG}px`},[`${r}-body`]:{[`> ${e.iconCls}`]:{marginInlineEnd:e.margin,[`+ ${r}-title + ${r}-content`]:{marginInlineStart:e.modalConfirmIconSize+e.margin}}},[`${r}-btns`]:{marginTop:e.marginLG}}}},Nue=nt("Modal",e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5,o=qe(e,{modalBodyPadding:e.paddingLG,modalHeaderBg:e.colorBgElevated,modalHeaderPadding:`${t}px ${e.paddingLG}px`,modalHeaderBorderWidth:e.lineWidth,modalHeaderBorderStyle:e.lineType,modalHeaderTitleLineHeight:r,modalHeaderTitleFontSize:n,modalHeaderBorderColorSplit:e.colorSplit,modalHeaderCloseSize:r*n+t*2,modalContentBg:e.colorBgElevated,modalHeadingColor:e.colorTextHeading,modalCloseColor:e.colorTextDescription,modalFooterBg:"transparent",modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterPaddingVertical:e.paddingXS,modalFooterPaddingHorizontal:e.padding,modalFooterBorderWidth:e.lineWidth,modalConfirmTitleFontSize:e.fontSizeLG,modalIconHoverColor:e.colorIconHover,modalConfirmIconSize:e.fontSize*e.lineHeight,modalCloseBtnSize:e.controlHeightLG*.55});return[Aue(o),Oue(o),Tue(o),y6(o),e.wireframe&&Mue(o),Ps(o,"zoom")]}),R0=e=>({position:e||"absolute",inset:0}),Pue=e=>{const{iconCls:t,motionDurationSlow:n,paddingXXS:r,marginXXS:o,prefixCls:a}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:"#fff",background:new $t("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${a}-mask-info`]:E(E({},gn),{padding:`0 ${r}px`,[t]:{marginInlineEnd:o,svg:{verticalAlign:"baseline"}}})}},Iue=e=>{const{previewCls:t,modalMaskBg:n,paddingSM:r,previewOperationColorDisabled:o,motionDurationSlow:a}=e,i=new $t(n).setAlpha(.1),l=i.clone().setAlpha(.2);return{[`${t}-operations`]:E(E({},rt(e)),{display:"flex",flexDirection:"row-reverse",alignItems:"center",color:e.previewOperationColor,listStyle:"none",background:i.toRgbString(),pointerEvents:"auto","&-operation":{marginInlineStart:r,padding:r,cursor:"pointer",transition:`all ${a}`,userSelect:"none","&:hover":{background:l.toRgbString()},"&-disabled":{color:o,pointerEvents:"none"},"&:last-of-type":{marginInlineStart:0}},"&-progress":{position:"absolute",left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%)"},"&-icon":{fontSize:e.previewOperationSize}})}},_ue=e=>{const{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:r,previewCls:o,zIndexPopup:a,motionDurationSlow:i}=e,l=new $t(t).setAlpha(.1),s=l.clone().setAlpha(.2);return{[`${o}-switch-left, ${o}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:a+1,display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:-e.imagePreviewSwitchSize/2,color:e.previewOperationColor,background:l.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${i}`,pointerEvents:"auto",userSelect:"none","&:hover":{background:s.toRgbString()},["&-disabled"]:{"&, &:hover":{color:r,background:"transparent",cursor:"not-allowed",[`> ${n}`]:{cursor:"not-allowed"}}},[`> ${n}`]:{fontSize:e.previewOperationSize}},[`${o}-switch-left`]:{insetInlineStart:e.marginSM},[`${o}-switch-right`]:{insetInlineEnd:e.marginSM}}},Bue=e=>{const{motionEaseOut:t,previewCls:n,motionDurationSlow:r,componentCls:o}=e;return[{[`${o}-preview-root`]:{[n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${n}-body`]:E(E({},R0()),{overflow:"hidden"}),[`${n}-img`]:{maxWidth:"100%",maxHeight:"100%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${r} ${t} 0s`,userSelect:"none",pointerEvents:"auto","&-wrapper":E(E({},R0()),{transition:`transform ${r} ${t} 0s`,display:"flex",justifyContent:"center",alignItems:"center","&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${n}-moving`]:{[`${n}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${o}-preview-root`]:{[`${n}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${o}-preview-operations-wrapper`]:{position:"fixed",insetBlockStart:0,insetInlineEnd:0,zIndex:e.zIndexPopup+1,width:"100%"},"&":[Iue(e),_ue(e)]}]},Fue=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",display:"inline-block",[`${t}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${t}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${t}-mask`]:E({},Pue(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:E({},R0())}}},Rue=e=>{const{previewCls:t}=e;return{[`${t}-root`]:Ps(e,"zoom"),["&"]:t1(e,!0)}},b6=nt("Image",e=>{const t=`${e.componentCls}-preview`,n=qe(e,{previewCls:t,modalMaskBg:new $t("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[Fue(n),Bue(n),y6(qe(n,{componentCls:t})),Rue(n)]},e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new $t(e.colorTextLightSolid).toRgbString(),previewOperationColorDisabled:new $t(e.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:e.fontSizeIcon*1.5})),x6={rotateLeft:C(fie,null,null),rotateRight:C(hie,null,null),zoomIn:C(Lie,null,null),zoomOut:C(Vie,null,null),close:C(Hr,null,null),left:C(oi,null,null),right:C(xo,null,null)},zue=()=>({previewPrefixCls:String,preview:jt()}),Lue=he({compatConfig:{MODE:3},name:"AImagePreviewGroup",inheritAttrs:!1,props:zue(),setup(e,t){let{attrs:n,slots:r}=t;const{prefixCls:o}=He("image",e),a=z(()=>`${o.value}-preview`),[i,l]=b6(o),s=z(()=>{const{preview:u}=e;return u===!1?u:E(E({},typeof u=="object"?u:{}),{rootClassName:l.value})});return()=>i(C(p6,j(j({},E(E({},n),e)),{},{preview:s.value,icons:x6,previewPrefixCls:a.value}),r))}}),w6=Lue,Ti=he({name:"AImage",inheritAttrs:!1,props:v6(),setup(e,t){let{slots:n,attrs:r}=t;const{prefixCls:o,rootPrefixCls:a,configProvider:i}=He("image",e),[l,s]=b6(o),u=z(()=>{const{preview:c}=e;if(c===!1)return c;const d=typeof c=="object"?c:{};return E(E({icons:x6},d),{transitionName:xr(a.value,"zoom",d.transitionName),maskTransitionName:xr(a.value,"fade",d.maskTransitionName)})});return()=>{var c,d;const f=((d=(c=i.locale)===null||c===void 0?void 0:c.value)===null||d===void 0?void 0:d.Image)||cr.Image,p=()=>C("div",{class:`${o.value}-mask-info`},[C(Bx,null,null),f==null?void 0:f.preview]),{previewMask:v=n.previewMask||p}=e;return l(C(Due,j(j({},E(E(E({},r),e),{prefixCls:o.value})),{},{preview:u.value,rootClassName:ge(e.rootClassName,s.value)}),E(E({},n),{previewMask:typeof v=="function"?v:null})))}}});Ti.PreviewGroup=w6;Ti.install=function(e){return e.component(Ti.name,Ti),e.component(Ti.PreviewGroup.name,Ti.PreviewGroup),e};const kue=Ti;function z0(){return typeof BigInt=="function"}function Au(e){let 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${t}`);const r=t||"0",o=r.split("."),a=o[0]||"0",i=o[1]||"0";a==="0"&&i==="0"&&(n=!1);const l=n?"-":"";return{negative:n,negativeStr:l,trimStr:r,integerStr:a,decimalStr:i,fullStr:`${l}${r}`}}function fw(e){const t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function nc(e){const t=String(e);if(fw(e)){let n=Number(t.slice(t.indexOf("e-")+2));const r=t.match(/\.(\d+)/);return r!=null&&r[1]&&(n+=r[1].length),n}return t.includes(".")&&mw(t)?t.length-t.indexOf(".")-1:0}function pw(e){let t=String(e);if(fw(e)){if(e>Number.MAX_SAFE_INTEGER)return String(z0()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(z0()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(nc(t))}return Au(t).fullStr}function mw(e){return typeof e=="number"?!Number.isNaN(e):e?/^\s*-?\d+(\.\d+)?\s*$/.test(e)||/^\s*-?\d+\.\s*$/.test(e)||/^\s*-?\.\d+\s*$/.test(e):!1}function S6(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}class Mi{constructor(t){if(this.origin="",S6(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}negate(){return new Mi(-this.toNumber())}add(t){if(this.isInvalidate())return new Mi(t);const n=Number(t);if(Number.isNaN(n))return this;const r=this.number+n;if(r>Number.MAX_SAFE_INTEGER)return new Mi(Number.MAX_SAFE_INTEGER);if(r<Number.MIN_SAFE_INTEGER)return new Mi(Number.MIN_SAFE_INTEGER);const o=Math.max(nc(this.number),nc(n));return new Mi(r.toFixed(o))}isEmpty(){return this.empty}isNaN(){return Number.isNaN(this.number)}isInvalidate(){return this.isEmpty()||this.isNaN()}equals(t){return this.toNumber()===(t==null?void 0:t.toNumber())}lessEquals(t){return this.add(t.negate().toString()).toNumber()<=0}toNumber(){return this.number}toString(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0)?this.isInvalidate()?"":pw(this.number):this.origin}}class zl{constructor(t){if(this.origin="",S6(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}let n=t;if(fw(n)&&(n=Number(n)),n=typeof n=="string"?n:pw(n),mw(n)){const r=Au(n);this.negative=r.negative;const o=r.trimStr.split(".");this.integer=BigInt(o[0]);const a=o[1]||"0";this.decimal=BigInt(a),this.decimalLen=a.length}else this.nan=!0}getMark(){return this.negative?"-":""}getIntegerStr(){return this.integer.toString()}getDecimalStr(){return this.decimal.toString().padStart(this.decimalLen,"0")}alignDecimal(t){const n=`${this.getMark()}${this.getIntegerStr()}${this.getDecimalStr().padEnd(t,"0")}`;return BigInt(n)}negate(){const t=new zl(this.toString());return t.negative=!t.negative,t}add(t){if(this.isInvalidate())return new zl(t);const n=new zl(t);if(n.isInvalidate())return this;const r=Math.max(this.getDecimalStr().length,n.getDecimalStr().length),o=this.alignDecimal(r),a=n.alignDecimal(r),i=(o+a).toString(),{negativeStr:l,trimStr:s}=Au(i),u=`${l}${s.padStart(r+1,"0")}`;return new zl(`${u.slice(0,-r)}.${u.slice(-r)}`)}isEmpty(){return this.empty}isNaN(){return this.nan}isInvalidate(){return this.isEmpty()||this.isNaN()}equals(t){return this.toString()===(t==null?void 0:t.toString())}lessEquals(t){return this.add(t.negate().toString()).toNumber()<=0}toNumber(){return this.isNaN()?NaN:Number(this.toString())}toString(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0)?this.isInvalidate()?"":Au(`${this.getMark()}${this.getIntegerStr()}.${this.getDecimalStr()}`).fullStr:this.origin}}function Po(e){return z0()?new zl(e):new Mi(e)}function L0(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";const{negativeStr:o,integerStr:a,decimalStr:i}=Au(e),l=`${t}${i}`,s=`${o}${a}`;if(n>=0){const u=Number(i[n]);if(u>=5&&!r){const c=Po(e).add(`${o}0.${"0".repeat(n)}${10-u}`);return L0(c.toString(),t,n,r)}return n===0?s:`${s}${t}${i.padEnd(n,"0").slice(0,n)}`}return l===".0"?s:`${s}${l}`}const Hue=200,jue=600,Vue=he({compatConfig:{MODE:3},name:"StepHandler",inheritAttrs:!1,props:{prefixCls:String,upDisabled:Boolean,downDisabled:Boolean,onStep:Oe()},slots:Object,setup(e,t){let{slots:n,emit:r}=t;const o=be(),a=(l,s)=>{l.preventDefault(),r("step",s);function u(){r("step",s),o.value=setTimeout(u,Hue)}o.value=setTimeout(u,jue)},i=()=>{clearTimeout(o.value)};return st(()=>{i()}),()=>{if(Pb())return null;const{prefixCls:l,upDisabled:s,downDisabled:u}=e,c=`${l}-handler`,d=ge(c,`${c}-up`,{[`${c}-up-disabled`]:s}),f=ge(c,`${c}-down`,{[`${c}-down-disabled`]:u}),p={unselectable:"on",role:"button",onMouseup:i,onMouseleave:i},{upNode:v,downNode:m}=n;return C("div",{class:`${c}-wrap`},[C("span",j(j({},p),{},{onMousedown:h=>{a(h,!0)},"aria-label":"Increase Value","aria-disabled":s,class:d}),[(v==null?void 0:v())||C("span",{unselectable:"on",class:`${l}-handler-up-inner`},null)]),C("span",j(j({},p),{},{onMousedown:h=>{a(h,!1)},"aria-label":"Decrease Value","aria-disabled":u,class:f}),[(m==null?void 0:m())||C("span",{unselectable:"on",class:`${l}-handler-down-inner`},null)])])}}});function Wue(e,t){const n=be(null);function r(){try{const{selectionStart:a,selectionEnd:i,value:l}=e.value,s=l.substring(0,a),u=l.substring(i);n.value={start:a,end:i,value:l,beforeTxt:s,afterTxt:u}}catch{}}function o(){if(e.value&&n.value&&t.value)try{const{value:a}=e.value,{beforeTxt:i,afterTxt:l,start:s}=n.value;let u=a.length;if(a.endsWith(l))u=a.length-n.value.afterTxt.length;else if(a.startsWith(i))u=i.length;else{const c=i[s-1],d=a.indexOf(c,s-1);d!==-1&&(u=d+1)}e.value.setSelectionRange(u,u)}catch(a){`${a.message}`}}return[r,o]}const Uue=()=>{const e=pe(0),t=()=>{tt.cancel(e.value)};return st(()=>{t()}),n=>{t(),e.value=tt(()=>{n()})}};var Kue=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const F3=(e,t)=>e||t.isEmpty()?t.toString():t.toNumber(),R3=e=>{const t=Po(e);return t.isInvalidate()?null:t},C6=()=>({stringMode:Pe(),defaultValue:Xe([String,Number]),value:Xe([String,Number]),prefixCls:Ue(),min:Xe([String,Number]),max:Xe([String,Number]),step:Xe([String,Number],1),tabindex:Number,controls:Pe(!0),readonly:Pe(),disabled:Pe(),autofocus:Pe(),keyboard:Pe(!0),parser:Oe(),formatter:Oe(),precision:Number,decimalSeparator:String,onInput:Oe(),onChange:Oe(),onPressEnter:Oe(),onStep:Oe(),onBlur:Oe(),onFocus:Oe()}),que=he({compatConfig:{MODE:3},name:"InnerInputNumber",inheritAttrs:!1,props:E(E({},C6()),{lazy:Boolean}),slots:Object,setup(e,t){let{attrs:n,slots:r,emit:o,expose:a}=t;const i=pe(),l=pe(!1),s=pe(!1),u=pe(!1),c=pe(Po(e.value));function d(k){e.value===void 0&&(c.value=k)}const f=(k,H)=>{if(!H)return e.precision>=0?e.precision:Math.max(nc(k),nc(e.step))},p=k=>{const H=String(k);if(e.parser)return e.parser(H);let V=H;return e.decimalSeparator&&(V=V.replace(e.decimalSeparator,".")),V.replace(/[^\w.-]+/g,"")},v=pe(""),m=(k,H)=>{if(e.formatter)return e.formatter(k,{userTyping:H,input:String(v.value)});let V=typeof k=="number"?pw(k):k;if(!H){const U=f(V,H);if(mw(V)&&(e.decimalSeparator||U>=0)){const q=e.decimalSeparator||".";V=L0(V,q,U)}}return V},h=(()=>{const k=e.value;return c.value.isInvalidate()&&["string","number"].includes(typeof k)?Number.isNaN(k)?"":k:m(c.value.toString(),!1)})();v.value=h;function g(k,H){v.value=m(k.isInvalidate()?k.toString(!1):k.toString(!H),H)}const x=z(()=>R3(e.max)),y=z(()=>R3(e.min)),w=z(()=>!x.value||!c.value||c.value.isInvalidate()?!1:x.value.lessEquals(c.value)),b=z(()=>!y.value||!c.value||c.value.isInvalidate()?!1:c.value.lessEquals(y.value)),[S,$]=Wue(i,l),D=k=>x.value&&!k.lessEquals(x.value)?x.value:y.value&&!y.value.lessEquals(k)?y.value:null,O=k=>!D(k),A=(k,H)=>{var V;let U=k,q=O(U)||U.isEmpty();if(!U.isEmpty()&&!H&&(U=D(U)||U,q=!0),!e.readonly&&!e.disabled&&q){const K=U.toString(),X=f(K,H);return X>=0&&(U=Po(L0(K,".",X))),U.equals(c.value)||(d(U),(V=e.onChange)===null||V===void 0||V.call(e,U.isEmpty()?null:F3(e.stringMode,U)),e.value===void 0&&g(U,H)),U}return c.value},T=Uue(),M=k=>{var H;if(S(),v.value=k,!u.value){const V=p(k),U=Po(V);U.isNaN()||A(U,!0)}(H=e.onInput)===null||H===void 0||H.call(e,k),T(()=>{let V=k;e.parser||(V=k.replace(/。/g,".")),V!==k&&M(V)})},B=()=>{u.value=!0},F=()=>{u.value=!1,M(i.value.value)},P=k=>{M(k.target.value)},I=k=>{var H,V;if(k&&w.value||!k&&b.value)return;s.value=!1;let U=Po(e.step);k||(U=U.negate());const q=(c.value||Po(0)).add(U.toString()),K=A(q,!1);(H=e.onStep)===null||H===void 0||H.call(e,F3(e.stringMode,K),{offset:e.step,type:k?"up":"down"}),(V=i.value)===null||V===void 0||V.focus()},N=k=>{const H=Po(p(v.value));let V=H;H.isNaN()?V=c.value:V=A(H,k),e.value!==void 0?g(c.value,!1):V.isNaN()||g(V,!1)},R=k=>{var H;const{which:V}=k;s.value=!0,V===_e.ENTER&&(u.value||(s.value=!1),N(!1),(H=e.onPressEnter)===null||H===void 0||H.call(e,k)),e.keyboard!==!1&&!u.value&&[_e.UP,_e.DOWN].includes(V)&&(I(_e.UP===V),k.preventDefault())},_=()=>{s.value=!1},L=k=>{N(!1),l.value=!1,s.value=!1,o("blur",k)};return Ne(()=>e.precision,()=>{c.value.isInvalidate()||g(c.value,!1)},{flush:"post"}),Ne(()=>e.value,()=>{const k=Po(e.value);c.value=k;const H=Po(p(v.value));(!k.equals(H)||!s.value||e.formatter)&&g(k,s.value)},{flush:"post"}),Ne(v,()=>{e.formatter&&$()},{flush:"post"}),Ne(()=>e.disabled,k=>{k&&(l.value=!1)}),a({focus:()=>{var k;(k=i.value)===null||k===void 0||k.focus()},blur:()=>{var k;(k=i.value)===null||k===void 0||k.blur()}}),()=>{const k=E(E({},n),e),{prefixCls:H="rc-input-number",min:V,max:U,step:q=1,defaultValue:K,value:X,disabled:re,readonly:ee,keyboard:G,controls:le=!0,autofocus:ue,stringMode:me,parser:Se,formatter:Q,precision:te,decimalSeparator:de,onChange:Y,onInput:ae,onPressEnter:ce,onStep:Ce,lazy:ye,class:J,style:ne}=k,oe=Kue(k,["prefixCls","min","max","step","defaultValue","value","disabled","readonly","keyboard","controls","autofocus","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","lazy","class","style"]),{upHandler:ie,downHandler:ve}=r,we=`${H}-input`,$e={};return ye?$e.onChange=P:$e.onInput=P,C("div",{class:ge(H,J,{[`${H}-focused`]:l.value,[`${H}-disabled`]:re,[`${H}-readonly`]:ee,[`${H}-not-a-number`]:c.value.isNaN(),[`${H}-out-of-range`]:!c.value.isInvalidate()&&!O(c.value)}),style:ne,onKeydown:R,onKeyup:_},[le&&C(Vue,{prefixCls:H,upDisabled:w.value,downDisabled:b.value,onStep:I},{upNode:ie,downNode:ve}),C("div",{class:`${we}-wrap`},[C("input",j(j(j({autofocus:ue,autocomplete:"off",role:"spinbutton","aria-valuemin":V,"aria-valuemax":U,"aria-valuenow":c.value.isInvalidate()?null:c.value.toString(),step:q},oe),{},{ref:i,class:we,value:v.value,disabled:re,readonly:ee,onFocus:Ae=>{l.value=!0,o("focus",Ae)}},$e),{},{onBlur:L,onCompositionstart:B,onCompositionend:F}),null)])])}}});function Uh(e){return e!=null}const Gue=e=>{const{componentCls:t,lineWidth:n,lineType:r,colorBorder:o,borderRadius:a,fontSizeLG:i,controlHeightLG:l,controlHeightSM:s,colorError:u,inputPaddingHorizontalSM:c,colorTextDescription:d,motionDurationMid:f,colorPrimary:p,controlHeight:v,inputPaddingHorizontal:m,colorBgContainer:h,colorTextDisabled:g,borderRadiusSM:x,borderRadiusLG:y,controlWidth:w,handleVisible:b}=e;return[{[t]:E(E(E(E({},rt(e)),ll(e)),wc(e,t)),{display:"inline-block",width:w,margin:0,padding:0,border:`${n}px ${r} ${o}`,borderRadius:a,"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:i,borderRadius:y,[`input${t}-input`]:{height:l-2*n}},"&-sm":{padding:0,borderRadius:x,[`input${t}-input`]:{height:s-2*n,padding:`0 ${c}px`}},"&:hover":E({},Rs(e)),"&-focused":E({},ri(e)),"&-disabled":E(E({},Z1(e)),{[`${t}-input`]:{cursor:"not-allowed"}}),"&-out-of-range":{input:{color:u}},"&-group":E(E(E({},rt(e)),gI(e)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:y}},"&-sm":{[`${t}-group-addon`]:{borderRadius:x}}}}),[t]:{"&-input":E(E({width:"100%",height:v-2*n,padding:`0 ${m}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:a,outline:0,transition:`all ${f} linear`,appearance:"textfield",color:e.colorText,fontSize:"inherit",verticalAlign:"top"},Y1(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[t]:{[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{opacity:1},[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleWidth,height:"100%",background:h,borderStartStartRadius:0,borderStartEndRadius:a,borderEndEndRadius:a,borderEndStartRadius:0,opacity:b===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${f} linear ${f}`,[`${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:d,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${n}px ${r} ${o}`,transition:`all ${f} linear`,"&:active":{background:e.colorFillAlter},"&:hover":{height:"60%",[`
- ${t}-handler-up-inner,
- ${t}-handler-down-inner
- `]:{color:p}},"&-up-inner, &-down-inner":E(E({},Qi()),{color:d,transition:`all ${f} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:a},[`${t}-handler-down`]:{borderBlockStart:`${n}px ${r} ${o}`,borderEndEndRadius:a},"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"}},[`
- ${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:g}}},{[`${t}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${t}-handler-down`]:{borderBlockStartWidth:0}}}]},Xue=e=>{const{componentCls:t,inputPaddingHorizontal:n,inputAffixPadding:r,controlWidth:o,borderRadiusLG:a,borderRadiusSM:i}=e;return{[`${t}-affix-wrapper`]:E(E(E({},ll(e)),wc(e,`${t}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:o,padding:0,paddingInlineStart:n,"&-lg":{borderRadius:a},"&-sm":{borderRadius:i},[`&:not(${t}-affix-wrapper-disabled):hover`]:E(E({},Rs(e)),{zIndex:1}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${t}[disabled]`]:{background:"transparent"}},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},[`input${t}-input`]:{padding:0},"&::before":{width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:r},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:n,marginInlineStart:r}}})}},Yue=nt("InputNumber",e=>{const t=sl(e);return[Gue(t),Xue(t),Is(t)]},e=>({controlWidth:90,handleWidth:e.controlHeightSM-e.lineWidth*2,handleFontSize:e.fontSize/2,handleVisible:"auto"}));var Zue=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const z3=C6(),Jue=()=>E(E({},z3),{size:Ue(),bordered:Pe(!0),placeholder:String,name:String,id:String,type:String,addonBefore:Z.any,addonAfter:Z.any,prefix:Z.any,"onUpdate:value":z3.onChange,valueModifiers:Object,status:Ue()}),Kh=he({compatConfig:{MODE:3},name:"AInputNumber",inheritAttrs:!1,props:Jue(),slots:Object,setup(e,t){let{emit:n,expose:r,attrs:o,slots:a}=t;const i=Cn(),l=Bn.useInject(),s=z(()=>$o(l.status,e.status)),{prefixCls:u,size:c,direction:d,disabled:f}=He("input-number",e),{compactSize:p,compactItemClassnames:v}=di(u,d),m=Fr(),h=z(()=>{var M;return(M=f.value)!==null&&M!==void 0?M:m.value}),[g,x]=Yue(u),y=z(()=>p.value||c.value),w=pe(e.value===void 0?e.defaultValue:e.value),b=pe(!1);Ne(()=>e.value,()=>{w.value=e.value});const S=pe(null);r({focus:()=>{var M;(M=S.value)===null||M===void 0||M.focus()},blur:()=>{var M;(M=S.value)===null||M===void 0||M.blur()}});const O=M=>{e.value===void 0&&(w.value=M),n("update:value",M),n("change",M),i.onFieldChange()},A=M=>{b.value=!1,n("blur",M),i.onFieldBlur()},T=M=>{b.value=!0,n("focus",M)};return()=>{var M,B,F,P;const{hasFeedback:I,isFormItemInput:N,feedbackIcon:R}=l,_=(M=e.id)!==null&&M!==void 0?M:i.id.value,L=E(E(E({},o),e),{id:_,disabled:h.value}),{class:k,bordered:H,readonly:V,style:U,addonBefore:q=(B=a.addonBefore)===null||B===void 0?void 0:B.call(a),addonAfter:K=(F=a.addonAfter)===null||F===void 0?void 0:F.call(a),prefix:X=(P=a.prefix)===null||P===void 0?void 0:P.call(a),valueModifiers:re={}}=L,ee=Zue(L,["class","bordered","readonly","style","addonBefore","addonAfter","prefix","valueModifiers"]),G=u.value,le=ge({[`${G}-lg`]:y.value==="large",[`${G}-sm`]:y.value==="small",[`${G}-rtl`]:d.value==="rtl",[`${G}-readonly`]:V,[`${G}-borderless`]:!H,[`${G}-in-form-item`]:N},er(G,s.value),k,v.value,x.value);let ue=C(que,j(j({},pt(ee,["size","defaultValue"])),{},{ref:S,lazy:!!re.lazy,value:w.value,class:le,prefixCls:G,readonly:V,onChange:O,onBlur:A,onFocus:T}),{upHandler:a.upIcon?()=>C("span",{class:`${G}-handler-up-inner`},[a.upIcon()]):()=>C(Oie,{class:`${G}-handler-up-inner`},null),downHandler:a.downIcon?()=>C("span",{class:`${G}-handler-down-inner`},[a.downIcon()]):()=>C(mc,{class:`${G}-handler-down-inner`},null)});const me=Uh(q)||Uh(K),Se=Uh(X);if(Se||I){const Q=ge(`${G}-affix-wrapper`,er(`${G}-affix-wrapper`,s.value,I),{[`${G}-affix-wrapper-focused`]:b.value,[`${G}-affix-wrapper-disabled`]:h.value,[`${G}-affix-wrapper-sm`]:y.value==="small",[`${G}-affix-wrapper-lg`]:y.value==="large",[`${G}-affix-wrapper-rtl`]:d.value==="rtl",[`${G}-affix-wrapper-readonly`]:V,[`${G}-affix-wrapper-borderless`]:!H,[`${k}`]:!me&&k},x.value);ue=C("div",{class:Q,style:U,onMouseup:()=>S.value.focus()},[Se&&C("span",{class:`${G}-prefix`},[X]),ue,I&&C("span",{class:`${G}-suffix`},[R])])}if(me){const Q=`${G}-group`,te=`${Q}-addon`,de=q?C("div",{class:te},[q]):null,Y=K?C("div",{class:te},[K]):null,ae=ge(`${G}-wrapper`,Q,{[`${Q}-rtl`]:d.value==="rtl"},x.value),ce=ge(`${G}-group-wrapper`,{[`${G}-group-wrapper-sm`]:y.value==="small",[`${G}-group-wrapper-lg`]:y.value==="large",[`${G}-group-wrapper-rtl`]:d.value==="rtl"},er(`${u}-group-wrapper`,s.value,I),k,x.value);ue=C("div",{class:ce,style:U},[C("div",{class:ae},[de&&C(Ku,null,{default:()=>[C(ep,null,{default:()=>[de]})]}),ue,Y&&C(Ku,null,{default:()=>[C(ep,null,{default:()=>[Y]})]})])])}return g(At(ue,{style:U}))}}}),Que=E(Kh,{install:e=>(e.component(Kh.name,Kh),e)}),ece=e=>{const{componentCls:t,colorBgContainer:n,colorBgBody:r,colorText:o}=e;return{[`${t}-sider-light`]:{background:n,[`${t}-sider-trigger`]:{color:o,background:n},[`${t}-sider-zero-width-trigger`]:{color:o,background:n,border:`1px solid ${r}`,borderInlineStart:0}}}},tce=ece,nce=e=>{const{antCls:t,componentCls:n,colorText:r,colorTextLightSolid:o,colorBgHeader:a,colorBgBody:i,colorBgTrigger:l,layoutHeaderHeight:s,layoutHeaderPaddingInline:u,layoutHeaderColor:c,layoutFooterPadding:d,layoutTriggerHeight:f,layoutZeroTriggerSize:p,motionDurationMid:v,motionDurationSlow:m,fontSize:h,borderRadius:g}=e;return{[n]:E(E({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:i,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},[`${n}-header`]:{height:s,paddingInline:u,color:c,lineHeight:`${s}px`,background:a,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:d,color:r,fontSize:h,background:i},[`${n}-content`]:{flex:"auto",minHeight:0},[`${n}-sider`]:{position:"relative",minWidth:0,background:a,transition:`all ${v}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${t}-menu${t}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:f},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:f,color:o,lineHeight:`${f}px`,textAlign:"center",background:l,cursor:"pointer",transition:`all ${v}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:s,insetInlineEnd:-p,zIndex:1,width:p,height:p,color:o,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:a,borderStartStartRadius:0,borderStartEndRadius:g,borderEndEndRadius:g,borderEndStartRadius:0,cursor:"pointer",transition:`background ${m} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${m}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-p,borderStartStartRadius:g,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:g}}}}},tce(e)),{"&-rtl":{direction:"rtl"}})}},rce=nt("Layout",e=>{const{colorText:t,controlHeightSM:n,controlHeight:r,controlHeightLG:o,marginXXS:a}=e,i=o*1.25,l=qe(e,{layoutHeaderHeight:r*2,layoutHeaderPaddingInline:i,layoutHeaderColor:t,layoutFooterPadding:`${n}px ${i}px`,layoutTriggerHeight:o+a*2,layoutZeroTriggerSize:o});return[nce(l)]},e=>{const{colorBgLayout:t}=e;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140"}}),vw=()=>({prefixCls:String,hasSider:{type:Boolean,default:void 0},tagName:String});function cv(e){let{suffixCls:t,tagName:n,name:r}=e;return o=>he({compatConfig:{MODE:3},name:r,props:vw(),setup(i,l){let{slots:s}=l;const{prefixCls:u}=He(t,i);return()=>{const c=E(E({},i),{prefixCls:u.value,tagName:n});return C(o,c,s)}}})}const hw=he({compatConfig:{MODE:3},props:vw(),setup(e,t){let{slots:n}=t;return()=>C(e.tagName,{class:e.prefixCls},n)}}),oce=he({compatConfig:{MODE:3},inheritAttrs:!1,props:vw(),setup(e,t){let{slots:n,attrs:r}=t;const{prefixCls:o,direction:a}=He("",e),[i,l]=rce(o),s=be([]);it(PP,{addSider:d=>{s.value=[...s.value,d]},removeSider:d=>{s.value=s.value.filter(f=>f!==d)}});const c=z(()=>{const{prefixCls:d,hasSider:f}=e;return{[l.value]:!0,[`${d}`]:!0,[`${d}-has-sider`]:typeof f=="boolean"?f:s.value.length>0,[`${d}-rtl`]:a.value==="rtl"}});return()=>{const{tagName:d}=e;return i(C(d,E(E({},r),{class:[c.value,r.class]}),n))}}}),ace=cv({suffixCls:"layout",tagName:"section",name:"ALayout"})(oce),pf=cv({suffixCls:"layout-header",tagName:"header",name:"ALayoutHeader"})(hw),mf=cv({suffixCls:"layout-footer",tagName:"footer",name:"ALayoutFooter"})(hw),vf=cv({suffixCls:"layout-content",tagName:"main",name:"ALayoutContent"})(hw),qh=ace,L3={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px",xxxl:"1999.98px"},ice=()=>({prefixCls:String,collapsible:{type:Boolean,default:void 0},collapsed:{type:Boolean,default:void 0},defaultCollapsed:{type:Boolean,default:void 0},reverseArrow:{type:Boolean,default:void 0},zeroWidthTriggerStyle:{type:Object,default:void 0},trigger:Z.any,width:Z.oneOfType([Z.number,Z.string]),collapsedWidth:Z.oneOfType([Z.number,Z.string]),breakpoint:Z.oneOf(Un("xs","sm","md","lg","xl","xxl","xxxl")),theme:Z.oneOf(Un("light","dark")).def("dark"),onBreakpoint:Function,onCollapse:Function}),lce=(()=>{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})(),hf=he({compatConfig:{MODE:3},name:"ALayoutSider",inheritAttrs:!1,props:at(ice(),{collapsible:!1,defaultCollapsed:!1,reverseArrow:!1,width:200,collapsedWidth:80}),emits:["breakpoint","update:collapsed","collapse"],setup(e,t){let{emit:n,attrs:r,slots:o}=t;const{prefixCls:a}=He("layout-sider",e),i=lt(PP,void 0),l=pe(!!(e.collapsed!==void 0?e.collapsed:e.defaultCollapsed)),s=pe(!1);Ne(()=>e.collapsed,()=>{l.value=!!e.collapsed}),it(NP,l);const u=(m,h)=>{e.collapsed===void 0&&(l.value=m),n("update:collapsed",m),n("collapse",m,h)},c=pe(m=>{s.value=m.matches,n("breakpoint",m.matches),l.value!==m.matches&&u(m.matches,"responsive")});let d;function f(m){return c.value(m)}const p=lce("ant-sider-");i&&i.addSider(p),Qe(()=>{Ne(()=>e.breakpoint,()=>{try{d==null||d.removeEventListener("change",f)}catch{d==null||d.removeListener(f)}if(typeof window<"u"){const{matchMedia:m}=window;if(m&&e.breakpoint&&e.breakpoint in L3){d=m(`(max-width: ${L3[e.breakpoint]})`);try{d.addEventListener("change",f)}catch{d.addListener(f)}f(d)}}},{immediate:!0})}),st(()=>{try{d==null||d.removeEventListener("change",f)}catch{d==null||d.removeListener(f)}i&&i.removeSider(p)});const v=()=>{u(!l.value,"clickTrigger")};return()=>{var m,h;const g=a.value,{collapsedWidth:x,width:y,reverseArrow:w,zeroWidthTriggerStyle:b,trigger:S=(m=o.trigger)===null||m===void 0?void 0:m.call(o),collapsible:$,theme:D}=e,O=l.value?x:y,A=lp(O)?`${O}px`:String(O),T=parseFloat(String(x||0))===0?C("span",{onClick:v,class:ge(`${g}-zero-width-trigger`,`${g}-zero-width-trigger-${w?"right":"left"}`),style:b},[S||C($oe,null,null)]):null,M={expanded:w?C(xo,null,null):C(oi,null,null),collapsed:w?C(oi,null,null):C(xo,null,null)},B=l.value?"collapsed":"expanded",F=M[B],P=S!==null?T||C("div",{class:`${g}-trigger`,onClick:v,style:{width:A}},[S||F]):null,I=[r.style,{flex:`0 0 ${A}`,maxWidth:A,minWidth:A,width:A}],N=ge(g,`${g}-${D}`,{[`${g}-collapsed`]:!!l.value,[`${g}-has-trigger`]:$&&S!==null&&!T,[`${g}-below`]:!!s.value,[`${g}-zero-width`]:parseFloat(A)===0},r.class);return C("aside",j(j({},r),{},{class:N,style:I}),[C("div",{class:`${g}-children`},[(h=o.default)===null||h===void 0?void 0:h.call(o)]),$||s.value&&T?P:null])}}}),sce=pf,uce=mf,cce=hf,dce=vf,fce=E(qh,{Header:pf,Footer:mf,Content:vf,Sider:hf,install:e=>(e.component(qh.name,qh),e.component(pf.name,pf),e.component(mf.name,mf),e.component(hf.name,hf),e.component(vf.name,vf),e)});function pce(e,t,n){var r=n||{},o=r.noTrailing,a=o===void 0?!1:o,i=r.noLeading,l=i===void 0?!1:i,s=r.debounceMode,u=s===void 0?void 0:s,c,d=!1,f=0;function p(){c&&clearTimeout(c)}function v(h){var g=h||{},x=g.upcomingOnly,y=x===void 0?!1:x;p(),d=!y}function m(){for(var h=arguments.length,g=new Array(h),x=0;x<h;x++)g[x]=arguments[x];var y=this,w=Date.now()-f;if(d)return;function b(){f=Date.now(),t.apply(y,g)}function S(){c=void 0}!l&&u&&!c&&b(),p(),u===void 0&&w>e?l?(f=Date.now(),a||(c=setTimeout(u?S:b,e))):b():a!==!0&&(c=setTimeout(u?S:b,u===void 0?e-w:e))}return m.cancel=v,m}function mce(e,t,n){var r=n||{},o=r.atBegin,a=o===void 0?!1:o;return pce(e,t,{debounceMode:a!==!1})}const vce=new ft("antSpinMove",{to:{opacity:1}}),hce=new ft("antRotate",{to:{transform:"rotate(405deg)"}}),gce=e=>({[`${e.componentCls}`]:E(E({},rt(e)),{position:"absolute",display:"none",color:e.colorPrimary,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"static",display:"inline-block",opacity:1},"&-nested-loading":{position:"relative",[`> div > ${e.componentCls}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${e.componentCls}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:-e.spinDotSize/2},[`${e.componentCls}-text`]:{position:"absolute",top:"50%",width:"100%",paddingTop:(e.spinDotSize-e.fontSize)/2+2,textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-(e.spinDotSize/2)-10},"&-sm":{[`${e.componentCls}-dot`]:{margin:-e.spinDotSizeSM/2},[`${e.componentCls}-text`]:{paddingTop:(e.spinDotSizeSM-e.fontSize)/2+2},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-(e.spinDotSizeSM/2)-10}},"&-lg":{[`${e.componentCls}-dot`]:{margin:-(e.spinDotSizeLG/2)},[`${e.componentCls}-text`]:{paddingTop:(e.spinDotSizeLG-e.fontSize)/2+2},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-(e.spinDotSizeLG/2)-10}}},[`${e.componentCls}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${e.componentCls}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none",["&::after"]:{opacity:.4,pointerEvents:"auto"}}},["&-tip"]:{color:e.spinDotDefault},[`${e.componentCls}-dot`]:{position:"relative",display:"inline-block",fontSize:e.spinDotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:(e.spinDotSize-e.marginXXS/2)/2,height:(e.spinDotSize-e.marginXXS/2)/2,backgroundColor:e.colorPrimary,borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:vce,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:hce,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&-sm ${e.componentCls}-dot`]:{fontSize:e.spinDotSizeSM,i:{width:(e.spinDotSizeSM-e.marginXXS/2)/2,height:(e.spinDotSizeSM-e.marginXXS/2)/2}},[`&-lg ${e.componentCls}-dot`]:{fontSize:e.spinDotSizeLG,i:{width:(e.spinDotSizeLG-e.marginXXS)/2,height:(e.spinDotSizeLG-e.marginXXS)/2}},[`&${e.componentCls}-show-text ${e.componentCls}-text`]:{display:"block"}})}),yce=nt("Spin",e=>{const t=qe(e,{spinDotDefault:e.colorTextDescription,spinDotSize:e.controlHeightLG/2,spinDotSizeSM:e.controlHeightLG*.35,spinDotSizeLG:e.controlHeight});return[gce(t)]},{contentHeight:400});var bce=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const xce=()=>({prefixCls:String,spinning:{type:Boolean,default:void 0},size:String,wrapperClassName:String,tip:Z.any,delay:Number,indicator:Z.any});let gf=null;function wce(e,t){return!!e&&!!t&&!isNaN(Number(t))}function Sce(e){const t=e.indicator;gf=typeof t=="function"?t:()=>C(t,null,null)}const ko=he({compatConfig:{MODE:3},name:"ASpin",inheritAttrs:!1,props:at(xce(),{size:"default",spinning:!0,wrapperClassName:""}),setup(e,t){let{attrs:n,slots:r}=t;const{prefixCls:o,size:a,direction:i}=He("spin",e),[l,s]=yce(o),u=pe(e.spinning&&!wce(e.spinning,e.delay));let c;return Ne([()=>e.spinning,()=>e.delay],()=>{c==null||c.cancel(),c=mce(e.delay,()=>{u.value=e.spinning}),c==null||c()},{immediate:!0,flush:"post"}),st(()=>{c==null||c.cancel()}),()=>{var d,f;const{class:p}=n,v=bce(n,["class"]),{tip:m=(d=r.tip)===null||d===void 0?void 0:d.call(r)}=e,h=(f=r.default)===null||f===void 0?void 0:f.call(r),g={[s.value]:!0,[o.value]:!0,[`${o.value}-sm`]:a.value==="small",[`${o.value}-lg`]:a.value==="large",[`${o.value}-spinning`]:u.value,[`${o.value}-show-text`]:!!m,[`${o.value}-rtl`]:i.value==="rtl",[p]:!!p};function x(w){const b=`${w}-dot`;let S=Sn(r,e,"indicator");return S===null?null:(Array.isArray(S)&&(S=S.length===1?S[0]:S),br(S)?ha(S,{class:b}):gf&&br(gf())?ha(gf(),{class:b}):C("span",{class:`${b} ${w}-dot-spin`},[C("i",{class:`${w}-dot-item`},null),C("i",{class:`${w}-dot-item`},null),C("i",{class:`${w}-dot-item`},null),C("i",{class:`${w}-dot-item`},null)]))}const y=C("div",j(j({},v),{},{class:g,"aria-live":"polite","aria-busy":u.value}),[x(o.value),m?C("div",{class:`${o.value}-text`},[m]):null]);if(h&&nn(h).length){const w={[`${o.value}-container`]:!0,[`${o.value}-blur`]:u.value};return l(C("div",{class:[`${o.value}-nested-loading`,e.wrapperClassName,s.value]},[u.value&&C("div",{key:"loading"},[y]),C("div",{class:w,key:"container"},[h])]))}return l(y)}}});ko.setDefaultIndicator=Sce;ko.install=function(e){return e.component(ko.name,ko),e};const Cce=he({name:"MiniSelect",compatConfig:{MODE:3},inheritAttrs:!1,props:km(),Option:xa.Option,setup(e,t){let{attrs:n,slots:r}=t;return()=>{const o=E(E(E({},e),{size:"small"}),n);return C(xa,o,r)}}}),$ce=he({name:"MiddleSelect",inheritAttrs:!1,props:km(),Option:xa.Option,setup(e,t){let{attrs:n,slots:r}=t;return()=>{const o=E(E(E({},e),{size:"middle"}),n);return C(xa,o,r)}}}),wi=he({compatConfig:{MODE:3},name:"Pager",inheritAttrs:!1,props:{rootPrefixCls:String,page:Number,active:{type:Boolean,default:void 0},last:{type:Boolean,default:void 0},locale:Z.object,showTitle:{type:Boolean,default:void 0},itemRender:{type:Function,default:()=>{}},onClick:{type:Function},onKeypress:{type:Function}},eimt:["click","keypress"],setup(e,t){let{emit:n,attrs:r}=t;const o=()=>{n("click",e.page)},a=i=>{n("keypress",i,o,e.page)};return()=>{const{showTitle:i,page:l,itemRender:s}=e,{class:u,style:c}=r,d=`${e.rootPrefixCls}-item`,f=ge(d,`${d}-${e.page}`,{[`${d}-active`]:e.active,[`${d}-disabled`]:!e.page},u);return C("li",{onClick:o,onKeypress:a,title:i?String(l):null,tabindex:"0",class:f,style:c},[s({page:l,type:"page",originalElement:C("a",{rel:"nofollow"},[l])})])}}}),$i={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},Ece=he({compatConfig:{MODE:3},props:{disabled:{type:Boolean,default:void 0},changeSize:Function,quickGo:Function,selectComponentClass:Z.any,current:Number,pageSizeOptions:Z.array.def(["10","20","50","100"]),pageSize:Number,buildOptionText:Function,locale:Z.object,rootPrefixCls:String,selectPrefixCls:String,goButton:Z.any},setup(e){const t=be(""),n=z(()=>!t.value||isNaN(t.value)?void 0:Number(t.value)),r=s=>`${s.value} ${e.locale.items_per_page}`,o=s=>{const{value:u,composing:c}=s.target;s.isComposing||c||t.value===u||(t.value=u)},a=s=>{const{goButton:u,quickGo:c,rootPrefixCls:d}=e;if(!(u||t.value===""))if(s.relatedTarget&&(s.relatedTarget.className.indexOf(`${d}-item-link`)>=0||s.relatedTarget.className.indexOf(`${d}-item`)>=0)){t.value="";return}else c(n.value),t.value=""},i=s=>{t.value!==""&&(s.keyCode===$i.ENTER||s.type==="click")&&(e.quickGo(n.value),t.value="")},l=z(()=>{const{pageSize:s,pageSizeOptions:u}=e;return u.some(c=>c.toString()===s.toString())?u:u.concat([s.toString()]).sort((c,d)=>{const f=isNaN(Number(c))?0:Number(c),p=isNaN(Number(d))?0:Number(d);return f-p})});return()=>{const{rootPrefixCls:s,locale:u,changeSize:c,quickGo:d,goButton:f,selectComponentClass:p,selectPrefixCls:v,pageSize:m,disabled:h}=e,g=`${s}-options`;let x=null,y=null,w=null;if(!c&&!d)return null;if(c&&p){const b=e.buildOptionText||r,S=l.value.map(($,D)=>C(p.Option,{key:D,value:$},{default:()=>[b({value:$})]}));x=C(p,{disabled:h,prefixCls:v,showSearch:!1,class:`${g}-size-changer`,optionLabelProp:"children",value:(m||l.value[0]).toString(),onChange:$=>c(Number($)),getPopupContainer:$=>$.parentNode},{default:()=>[S]})}return d&&(f&&(w=typeof f=="boolean"?C("button",{type:"button",onClick:i,onKeyup:i,disabled:h,class:`${g}-quick-jumper-button`},[u.jump_to_confirm]):C("span",{onClick:i,onKeyup:i},[f])),y=C("div",{class:`${g}-quick-jumper`},[u.jump_to,vn(C("input",{disabled:h,type:"text",value:t.value,onInput:o,onChange:o,onKeyup:i,onBlur:a},null),[[As]]),u.page,w])),C("li",{class:`${g}`},[x,y])}}}),$6={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页"};var Dce=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function Ace(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}function Oce(e){let{originalElement:t}=e;return t}function Qo(e,t,n){const r=typeof e>"u"?t.statePageSize:e;return Math.floor((n.total-1)/r)+1}const Tce=he({compatConfig:{MODE:3},name:"Pagination",mixins:[rl],inheritAttrs:!1,props:{disabled:{type:Boolean,default:void 0},prefixCls:Z.string.def("rc-pagination"),selectPrefixCls:Z.string.def("rc-select"),current:Number,defaultCurrent:Z.number.def(1),total:Z.number.def(0),pageSize:Number,defaultPageSize:Z.number.def(10),hideOnSinglePage:{type:Boolean,default:!1},showSizeChanger:{type:Boolean,default:void 0},showLessItems:{type:Boolean,default:!1},selectComponentClass:Z.any,showPrevNextJumpers:{type:Boolean,default:!0},showQuickJumper:Z.oneOfType([Z.looseBool,Z.object]).def(!1),showTitle:{type:Boolean,default:!0},pageSizeOptions:Z.arrayOf(Z.oneOfType([Z.number,Z.string])),buildOptionText:Function,showTotal:Function,simple:{type:Boolean,default:void 0},locale:Z.object.def($6),itemRender:Z.func.def(Oce),prevIcon:Z.any,nextIcon:Z.any,jumpPrevIcon:Z.any,jumpNextIcon:Z.any,totalBoundaryShowSizeChanger:Z.number.def(50)},data(){const e=this.$props;let t=op([this.current,this.defaultCurrent]);const n=op([this.pageSize,this.defaultPageSize]);return t=Math.min(t,Qo(n,void 0,e)),{stateCurrent:t,stateCurrentInputValue:t,statePageSize:n}},watch:{current(e){this.setState({stateCurrent:e,stateCurrentInputValue:e})},pageSize(e){const t={};let n=this.stateCurrent;const r=Qo(e,this.$data,this.$props);n=n>r?r:n,ia(this,"current")||(t.stateCurrent=n,t.stateCurrentInputValue=n),t.statePageSize=e,this.setState(t)},stateCurrent(e,t){this.$nextTick(()=>{if(this.$refs.paginationNode){const n=this.$refs.paginationNode.querySelector(`.${this.prefixCls}-item-${t}`);n&&document.activeElement===n&&n.blur()}})},total(){const e={},t=Qo(this.pageSize,this.$data,this.$props);if(ia(this,"current")){const n=Math.min(this.current,t);e.stateCurrent=n,e.stateCurrentInputValue=n}else{let n=this.stateCurrent;n===0&&t>0?n=1:n=Math.min(this.stateCurrent,t),e.stateCurrent=n}this.setState(e)}},methods:{getJumpPrevPage(){return Math.max(1,this.stateCurrent-(this.showLessItems?3:5))},getJumpNextPage(){return Math.min(Qo(void 0,this.$data,this.$props),this.stateCurrent+(this.showLessItems?3:5))},getItemIcon(e,t){const{prefixCls:n}=this.$props;return jT(this,e,this.$props)||C("button",{type:"button","aria-label":t,class:`${n}-item-link`},null)},getValidValue(e){const t=e.target.value,n=Qo(void 0,this.$data,this.$props),{stateCurrentInputValue:r}=this.$data;let o;return t===""?o=t:isNaN(Number(t))?o=r:t>=n?o=n:o=Number(t),o},isValid(e){return Ace(e)&&e!==this.stateCurrent},shouldDisplayQuickJumper(){const{showQuickJumper:e,pageSize:t,total:n}=this.$props;return n<=t?!1:e},handleKeyDown(e){(e.keyCode===$i.ARROW_UP||e.keyCode===$i.ARROW_DOWN)&&e.preventDefault()},handleKeyUp(e){if(e.isComposing||e.target.composing)return;const t=this.getValidValue(e),n=this.stateCurrentInputValue;t!==n&&this.setState({stateCurrentInputValue:t}),e.keyCode===$i.ENTER?this.handleChange(t):e.keyCode===$i.ARROW_UP?this.handleChange(t-1):e.keyCode===$i.ARROW_DOWN&&this.handleChange(t+1)},changePageSize(e){let t=this.stateCurrent;const n=t,r=Qo(e,this.$data,this.$props);t=t>r?r:t,r===0&&(t=this.stateCurrent),typeof e=="number"&&(ia(this,"pageSize")||this.setState({statePageSize:e}),ia(this,"current")||this.setState({stateCurrent:t,stateCurrentInputValue:t})),this.__emit("update:pageSize",e),t!==n&&this.__emit("update:current",t),this.__emit("showSizeChange",t,e),this.__emit("change",t,e)},handleChange(e){const{disabled:t}=this.$props;let n=e;if(this.isValid(n)&&!t){const r=Qo(void 0,this.$data,this.$props);return n>r?n=r:n<1&&(n=1),ia(this,"current")||this.setState({stateCurrent:n,stateCurrentInputValue:n}),this.__emit("update:current",n),this.__emit("change",n,this.statePageSize),n}return this.stateCurrent},prev(){this.hasPrev()&&this.handleChange(this.stateCurrent-1)},next(){this.hasNext()&&this.handleChange(this.stateCurrent+1)},jumpPrev(){this.handleChange(this.getJumpPrevPage())},jumpNext(){this.handleChange(this.getJumpNextPage())},hasPrev(){return this.stateCurrent>1},hasNext(){return this.stateCurrent<Qo(void 0,this.$data,this.$props)},getShowSizeChanger(){const{showSizeChanger:e,total:t,totalBoundaryShowSizeChanger:n}=this.$props;return typeof e<"u"?e:t>n},runIfEnter(e,t){if(e.key==="Enter"||e.charCode===13){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];t(...r)}},runIfEnterPrev(e){this.runIfEnter(e,this.prev)},runIfEnterNext(e){this.runIfEnter(e,this.next)},runIfEnterJumpPrev(e){this.runIfEnter(e,this.jumpPrev)},runIfEnterJumpNext(e){this.runIfEnter(e,this.jumpNext)},handleGoTO(e){(e.keyCode===$i.ENTER||e.type==="click")&&this.handleChange(this.stateCurrentInputValue)},renderPrev(e){const{itemRender:t}=this.$props,n=t({page:e,type:"prev",originalElement:this.getItemIcon("prevIcon","prev page")}),r=!this.hasPrev();return hn(n)?At(n,r?{disabled:r}:{}):n},renderNext(e){const{itemRender:t}=this.$props,n=t({page:e,type:"next",originalElement:this.getItemIcon("nextIcon","next page")}),r=!this.hasNext();return hn(n)?At(n,r?{disabled:r}:{}):n}},render(){const{prefixCls:e,disabled:t,hideOnSinglePage:n,total:r,locale:o,showQuickJumper:a,showLessItems:i,showTitle:l,showTotal:s,simple:u,itemRender:c,showPrevNextJumpers:d,jumpPrevIcon:f,jumpNextIcon:p,selectComponentClass:v,selectPrefixCls:m,pageSizeOptions:h}=this.$props,{stateCurrent:g,statePageSize:x}=this,y=Xy(this.$attrs).extraAttrs,{class:w}=y,b=Dce(y,["class"]);if(n===!0&&this.total<=x)return null;const S=Qo(void 0,this.$data,this.$props),$=[];let D=null,O=null,A=null,T=null,M=null;const B=a&&a.goButton,F=i?1:2,P=g-1>0?g-1:0,I=g+1<S?g+1:S,N=this.hasPrev(),R=this.hasNext();if(u)return B&&(typeof B=="boolean"?M=C("button",{type:"button",onClick:this.handleGoTO,onKeyup:this.handleGoTO},[o.jump_to_confirm]):M=C("span",{onClick:this.handleGoTO,onKeyup:this.handleGoTO},[B]),M=C("li",{title:l?`${o.jump_to}${g}/${S}`:null,class:`${e}-simple-pager`},[M])),C("ul",j({class:ge(`${e} ${e}-simple`,{[`${e}-disabled`]:t},w)},b),[C("li",{title:l?o.prev_page:null,onClick:this.prev,tabindex:N?0:null,onKeypress:this.runIfEnterPrev,class:ge(`${e}-prev`,{[`${e}-disabled`]:!N}),"aria-disabled":!N},[this.renderPrev(P)]),C("li",{title:l?`${g}/${S}`:null,class:`${e}-simple-pager`},[vn(C("input",{type:"text",value:this.stateCurrentInputValue,disabled:t,onKeydown:this.handleKeyDown,onKeyup:this.handleKeyUp,onInput:this.handleKeyUp,onChange:this.handleKeyUp,size:"3"},null),[[As]]),C("span",{class:`${e}-slash`},[sr("/")]),S]),C("li",{title:l?o.next_page:null,onClick:this.next,tabindex:R?0:null,onKeypress:this.runIfEnterNext,class:ge(`${e}-next`,{[`${e}-disabled`]:!R}),"aria-disabled":!R},[this.renderNext(I)]),M]);if(S<=3+F*2){const V={locale:o,rootPrefixCls:e,showTitle:l,itemRender:c,onClick:this.handleChange,onKeypress:this.runIfEnter};S||$.push(C(wi,j(j({},V),{},{key:"noPager",page:1,class:`${e}-item-disabled`}),null));for(let U=1;U<=S;U+=1){const q=g===U;$.push(C(wi,j(j({},V),{},{key:U,page:U,active:q}),null))}}else{const V=i?o.prev_3:o.prev_5,U=i?o.next_3:o.next_5;d&&(D=C("li",{title:this.showTitle?V:null,key:"prev",onClick:this.jumpPrev,tabindex:"0",onKeypress:this.runIfEnterJumpPrev,class:ge(`${e}-jump-prev`,{[`${e}-jump-prev-custom-icon`]:!!f})},[c({page:this.getJumpPrevPage(),type:"jump-prev",originalElement:this.getItemIcon("jumpPrevIcon","prev page")})]),O=C("li",{title:this.showTitle?U:null,key:"next",tabindex:"0",onClick:this.jumpNext,onKeypress:this.runIfEnterJumpNext,class:ge(`${e}-jump-next`,{[`${e}-jump-next-custom-icon`]:!!p})},[c({page:this.getJumpNextPage(),type:"jump-next",originalElement:this.getItemIcon("jumpNextIcon","next page")})])),T=C(wi,{locale:o,last:!0,rootPrefixCls:e,onClick:this.handleChange,onKeypress:this.runIfEnter,key:S,page:S,active:!1,showTitle:l,itemRender:c},null),A=C(wi,{locale:o,rootPrefixCls:e,onClick:this.handleChange,onKeypress:this.runIfEnter,key:1,page:1,active:!1,showTitle:l,itemRender:c},null);let q=Math.max(1,g-F),K=Math.min(g+F,S);g-1<=F&&(K=1+F*2),S-g<=F&&(q=S-F*2);for(let X=q;X<=K;X+=1){const re=g===X;$.push(C(wi,{locale:o,rootPrefixCls:e,onClick:this.handleChange,onKeypress:this.runIfEnter,key:X,page:X,active:re,showTitle:l,itemRender:c},null))}g-1>=F*2&&g!==1+2&&($[0]=C(wi,{locale:o,rootPrefixCls:e,onClick:this.handleChange,onKeypress:this.runIfEnter,key:q,page:q,class:`${e}-item-after-jump-prev`,active:!1,showTitle:this.showTitle,itemRender:c},null),$.unshift(D)),S-g>=F*2&&g!==S-2&&($[$.length-1]=C(wi,{locale:o,rootPrefixCls:e,onClick:this.handleChange,onKeypress:this.runIfEnter,key:K,page:K,class:`${e}-item-before-jump-next`,active:!1,showTitle:this.showTitle,itemRender:c},null),$.push(O)),q!==1&&$.unshift(A),K!==S&&$.push(T)}let _=null;s&&(_=C("li",{class:`${e}-total-text`},[s(r,[r===0?0:(g-1)*x+1,g*x>r?r:g*x])]));const L=!N||!S,k=!R||!S,H=this.buildOptionText||this.$slots.buildOptionText;return C("ul",j(j({unselectable:"on",ref:"paginationNode"},b),{},{class:ge({[`${e}`]:!0,[`${e}-disabled`]:t},w)}),[_,C("li",{title:l?o.prev_page:null,onClick:this.prev,tabindex:L?null:0,onKeypress:this.runIfEnterPrev,class:ge(`${e}-prev`,{[`${e}-disabled`]:L}),"aria-disabled":L},[this.renderPrev(P)]),$,C("li",{title:l?o.next_page:null,onClick:this.next,tabindex:k?null:0,onKeypress:this.runIfEnterNext,class:ge(`${e}-next`,{[`${e}-disabled`]:k}),"aria-disabled":k},[this.renderNext(I)]),C(Ece,{disabled:t,locale:o,rootPrefixCls:e,selectComponentClass:v,selectPrefixCls:m,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:g,pageSize:x,pageSizeOptions:h,buildOptionText:H||null,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:B},null)])}}),Mce=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`&${t}-mini`]:{[`
- &:hover ${t}-item:not(${t}-item-active),
- &:active ${t}-item:not(${t}-item-active),
- &:hover ${t}-item-link,
- &:active ${t}-item-link
- `]:{backgroundColor:"transparent"}},[`${t}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.paginationItemDisabledBgActive,"&:hover, &:active":{backgroundColor:e.paginationItemDisabledBgActive},a:{color:e.paginationItemDisabledColorActive}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},Nce=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`},[`&${t}-mini ${t}-item`]:{minWidth:e.paginationItemSizeSM,height:e.paginationItemSizeSM,margin:0,lineHeight:`${e.paginationItemSizeSM-2}px`},[`&${t}-mini ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.paginationItemSizeSM,height:e.paginationItemSizeSM,margin:0,lineHeight:`${e.paginationItemSizeSM}px`,[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}},[`
- &${t}-mini ${t}-prev ${t}-item-link,
- &${t}-mini ${t}-next ${t}-item-link
- `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.paginationItemSizeSM,marginInlineEnd:0,lineHeight:`${e.paginationItemSizeSM}px`},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,["&-size-changer"]:{top:e.paginationMiniOptionsSizeChangerTop},["&-quick-jumper"]:{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`,input:E(E({},J1(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},Pce=e=>{const{componentCls:t}=e;return{[`
- &${t}-simple ${t}-prev,
- &${t}-simple ${t}-next
- `]:{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`,verticalAlign:"top",[`${t}-item-link`]:{height:e.paginationItemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.paginationItemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:e.marginXS,padding:`0 ${e.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:e.paginationItemInputBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${e.inputOutlineOffset}px 0 ${e.controlOutlineWidth}px ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},Ice=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},"&:focus-visible":E({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},ya(e))},[`
- ${t}-prev,
- ${t}-jump-prev,
- ${t}-jump-next
- `]:{marginInlineEnd:e.marginXS},[`
- ${t}-prev,
- ${t}-next,
- ${t}-jump-prev,
- ${t}-jump-next
- `]:{display:"inline-block",minWidth:e.paginationItemSize,height:e.paginationItemSize,color:e.colorText,fontFamily:e.paginationFontFamily,lineHeight:`${e.paginationItemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`border ${e.motionDurationMid}`},[`&:focus-visible ${t}-item-link`]:E({},ya(e)),[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:`${e.controlHeight}px`,verticalAlign:"top",input:E(E({},ll(e)),{width:e.controlHeightLG*1.25,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},_ce=e=>{const{componentCls:t}=e;return{[`${t}-item`]:E(E({display:"inline-block",minWidth:e.paginationItemSize,height:e.paginationItemSize,marginInlineEnd:e.marginXS,fontFamily:e.paginationFontFamily,lineHeight:`${e.paginationItemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${e.paginationItemPaddingInline}px`,color:e.colorText,transition:"none","&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}}},ba(e)),{"&-active":{fontWeight:e.paginationFontWeightActive,backgroundColor:e.paginationItemBgActive,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}})}},Bce=e=>{const{componentCls:t}=e;return{[t]:E(E(E(E(E(E(E(E({},rt(e)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.paginationItemSize,marginInlineEnd:e.marginXS,lineHeight:`${e.paginationItemSize-2}px`,verticalAlign:"middle"}}),_ce(e)),Ice(e)),Pce(e)),Nce(e)),Mce(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},Fce=e=>{const{componentCls:t}=e;return{[`${t}${t}-disabled`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.paginationItemDisabledBgActive}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[t]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.paginationItemBg},[`${t}-item-link`]:{backgroundColor:e.paginationItemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.paginationItemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.paginationItemBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.paginationItemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},Rce=nt("Pagination",e=>{const t=qe(e,{paginationItemSize:e.controlHeight,paginationFontFamily:e.fontFamily,paginationItemBg:e.colorBgContainer,paginationItemBgActive:e.colorBgContainer,paginationFontWeightActive:e.fontWeightStrong,paginationItemSizeSM:e.controlHeightSM,paginationItemInputBg:e.colorBgContainer,paginationMiniOptionsSizeChangerTop:0,paginationItemDisabledBgActive:e.controlItemBgActiveDisabled,paginationItemDisabledColorActive:e.colorTextDisabled,paginationItemLinkBg:e.colorBgContainer,inputOutlineOffset:"0 0",paginationMiniOptionsMarginInlineStart:e.marginXXS/2,paginationMiniQuickJumperInputWidth:e.controlHeightLG*1.1,paginationItemPaddingInline:e.marginXXS*1.5,paginationEllipsisLetterSpacing:e.marginXXS/2,paginationSlashMarginInlineStart:e.marginXXS,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},sl(e));return[Bce(t),e.wireframe&&Fce(t)]});var zce=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Lce=()=>({total:Number,defaultCurrent:Number,disabled:Pe(),current:Number,defaultPageSize:Number,pageSize:Number,hideOnSinglePage:Pe(),showSizeChanger:Pe(),pageSizeOptions:bt(),buildOptionText:Oe(),showQuickJumper:Xe([Boolean,Object]),showTotal:Oe(),size:Ue(),simple:Pe(),locale:Object,prefixCls:String,selectPrefixCls:String,totalBoundaryShowSizeChanger:Number,selectComponentClass:String,itemRender:Oe(),role:String,responsive:Boolean,showLessItems:Pe(),onChange:Oe(),onShowSizeChange:Oe(),"onUpdate:current":Oe(),"onUpdate:pageSize":Oe()}),kce=he({compatConfig:{MODE:3},name:"APagination",inheritAttrs:!1,props:Lce(),setup(e,t){let{slots:n,attrs:r}=t;const{prefixCls:o,configProvider:a,direction:i,size:l}=He("pagination",e),[s,u]=Rce(o),c=z(()=>a.getPrefixCls("select",e.selectPrefixCls)),d=Bs(),[f]=ro("Pagination",QT,Ye(e,"locale")),p=v=>{const m=C("span",{class:`${v}-item-ellipsis`},[sr("•••")]),h=C("button",{class:`${v}-item-link`,type:"button",tabindex:-1},[i.value==="rtl"?C(xo,null,null):C(oi,null,null)]),g=C("button",{class:`${v}-item-link`,type:"button",tabindex:-1},[i.value==="rtl"?C(oi,null,null):C(xo,null,null)]),x=C("a",{rel:"nofollow",class:`${v}-item-link`},[C("div",{class:`${v}-item-container`},[i.value==="rtl"?C(K2,{class:`${v}-item-link-icon`},null):C(W2,{class:`${v}-item-link-icon`},null),m])]),y=C("a",{rel:"nofollow",class:`${v}-item-link`},[C("div",{class:`${v}-item-container`},[i.value==="rtl"?C(W2,{class:`${v}-item-link-icon`},null):C(K2,{class:`${v}-item-link-icon`},null),m])]);return{prevIcon:h,nextIcon:g,jumpPrevIcon:x,jumpNextIcon:y}};return()=>{var v;const{itemRender:m=n.itemRender,buildOptionText:h=n.buildOptionText,selectComponentClass:g,responsive:x}=e,y=zce(e,["itemRender","buildOptionText","selectComponentClass","responsive"]),w=l.value==="small"||!!(!((v=d.value)===null||v===void 0)&&v.xs&&!l.value&&x),b=E(E(E(E(E({},y),p(o.value)),{prefixCls:o.value,selectPrefixCls:c.value,selectComponentClass:g||(w?Cce:$ce),locale:f.value,buildOptionText:h}),r),{class:ge({[`${o.value}-mini`]:w,[`${o.value}-rtl`]:i.value==="rtl"},r.class,u.value),itemRender:m});return s(C(Tce,b,null))}}}),dv=rn(kce),Hce=()=>({avatar:Z.any,description:Z.any,prefixCls:String,title:Z.any}),E6=he({compatConfig:{MODE:3},name:"AListItemMeta",props:Hce(),displayName:"AListItemMeta",__ANT_LIST_ITEM_META:!0,slots:Object,setup(e,t){let{slots:n}=t;const{prefixCls:r}=He("list",e);return()=>{var o,a,i,l,s,u;const c=`${r.value}-item-meta`,d=(o=e.title)!==null&&o!==void 0?o:(a=n.title)===null||a===void 0?void 0:a.call(n),f=(i=e.description)!==null&&i!==void 0?i:(l=n.description)===null||l===void 0?void 0:l.call(n),p=(s=e.avatar)!==null&&s!==void 0?s:(u=n.avatar)===null||u===void 0?void 0:u.call(n),v=C("div",{class:`${r.value}-item-meta-content`},[d&&C("h4",{class:`${r.value}-item-meta-title`},[d]),f&&C("div",{class:`${r.value}-item-meta-description`},[f])]);return C("div",{class:c},[p&&C("div",{class:`${r.value}-item-meta-avatar`},[p]),(d||f)&&v])}}}),D6=Symbol("ListContextKey");var jce=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Vce=()=>({prefixCls:String,extra:Z.any,actions:Z.array,grid:Object,colStyle:{type:Object,default:void 0}}),A6=he({compatConfig:{MODE:3},name:"AListItem",inheritAttrs:!1,Meta:E6,props:Vce(),slots:Object,setup(e,t){let{slots:n,attrs:r}=t;const{itemLayout:o,grid:a}=lt(D6,{grid:be(),itemLayout:be()}),{prefixCls:i}=He("list",e),l=()=>{var u;const c=((u=n.default)===null||u===void 0?void 0:u.call(n))||[];let d;return c.forEach(f=>{tR(f)&&!cc(f)&&(d=!0)}),d&&c.length>1},s=()=>{var u,c;const d=(u=e.extra)!==null&&u!==void 0?u:(c=n.extra)===null||c===void 0?void 0:c.call(n);return o.value==="vertical"?!!d:!l()};return()=>{var u,c,d,f,p;const{class:v}=r,m=jce(r,["class"]),h=i.value,g=(u=e.extra)!==null&&u!==void 0?u:(c=n.extra)===null||c===void 0?void 0:c.call(n),x=(d=n.default)===null||d===void 0?void 0:d.call(n);let y=(f=e.actions)!==null&&f!==void 0?f:Lt((p=n.actions)===null||p===void 0?void 0:p.call(n));y=y&&!Array.isArray(y)?[y]:y;const w=y&&y.length>0&&C("ul",{class:`${h}-item-action`,key:"actions"},[y.map(($,D)=>C("li",{key:`${h}-item-action-${D}`},[$,D!==y.length-1&&C("em",{class:`${h}-item-action-split`},null)]))]),b=a.value?"div":"li",S=C(b,j(j({},m),{},{class:ge(`${h}-item`,{[`${h}-item-no-flex`]:!s()},v)}),{default:()=>[o.value==="vertical"&&g?[C("div",{class:`${h}-item-main`,key:"content"},[x,w]),C("div",{class:`${h}-item-extra`,key:"extra"},[g])]:[x,w,At(g,{key:"extra"})]]});return a.value?C(ov,{flex:1,style:e.colStyle},{default:()=>[S]}):S}}}),Wce=e=>{const{listBorderedCls:t,componentCls:n,paddingLG:r,margin:o,padding:a,listItemPaddingSM:i,marginLG:l,borderRadiusLG:s}=e;return{[`${t}`]:{border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:s,[`${n}-header,${n}-footer,${n}-item`]:{paddingInline:r},[`${n}-pagination`]:{margin:`${o}px ${l}px`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:i}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:`${a}px ${r}px`}}}},Uce=e=>{const{componentCls:t,screenSM:n,screenMD:r,marginLG:o,marginSM:a,margin:i}=e;return{[`@media screen and (max-width:${r})`]:{[`${t}`]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:o}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:o}}}},[`@media screen and (max-width: ${n})`]:{[`${t}`]:{[`${t}-item`]:{flexWrap:"wrap",[`${t}-action`]:{marginInlineStart:a}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:"wrap-reverse",[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${i}px`}}}}}},Kce=e=>{const{componentCls:t,antCls:n,controlHeight:r,minHeight:o,paddingSM:a,marginLG:i,padding:l,listItemPadding:s,colorPrimary:u,listItemPaddingSM:c,listItemPaddingLG:d,paddingXS:f,margin:p,colorText:v,colorTextDescription:m,motionDurationSlow:h,lineWidth:g}=e;return{[`${t}`]:E(E({},rt(e)),{position:"relative","*":{outline:"none"},[`${t}-header, ${t}-footer`]:{background:"transparent",paddingBlock:a},[`${t}-pagination`]:{marginBlockStart:i,textAlign:"end",[`${n}-pagination-options`]:{textAlign:"start"}},[`${t}-spin`]:{minHeight:o,textAlign:"center"},[`${t}-items`]:{margin:0,padding:0,listStyle:"none"},[`${t}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:s,color:v,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:l},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:v},[`${t}-item-meta-title`]:{marginBottom:e.marginXXS,color:v,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:v,transition:`all ${h}`,["&:hover"]:{color:u}}},[`${t}-item-meta-description`]:{color:m,fontSize:e.fontSize,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:"0 0 auto",marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:"none",["& > li"]:{position:"relative",display:"inline-block",padding:`0 ${f}px`,color:m,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center",["&:first-child"]:{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:g,height:Math.ceil(e.fontSize*e.lineHeight)-e.marginXXS*2,transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${l}px 0`,color:m,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:l,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:"center"},[`${t}-item-no-flex`]:{display:"block"}}),[`${t}-grid ${n}-col > ${t}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:p,paddingBlock:0,borderBlockEnd:"none"},[`${t}-vertical ${t}-item`]:{alignItems:"initial",[`${t}-item-main`]:{display:"block",flex:1},[`${t}-item-extra`]:{marginInlineStart:i},[`${t}-item-meta`]:{marginBlockEnd:l,[`${t}-item-meta-title`]:{marginBlockEnd:a,color:v,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:l,marginInlineStart:"auto","> li":{padding:`0 ${l}px`,["&:first-child"]:{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,["&:last-child"]:{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:r},[`${t}-split${t}-something-after-last-item ${n}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:d},[`${t}-sm ${t}-item`]:{padding:c},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}},qce=nt("List",e=>{const t=qe(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG,listItemPadding:`${e.paddingContentVertical}px ${e.paddingContentHorizontalLG}px`,listItemPaddingSM:`${e.paddingContentVerticalSM}px ${e.paddingContentHorizontal}px`,listItemPaddingLG:`${e.paddingContentVerticalLG}px ${e.paddingContentHorizontalLG}px`});return[Kce(t),Wce(t),Uce(t)]},{contentWidth:220}),Gce=()=>({bordered:Pe(),dataSource:bt(),extra:Jn(),grid:We(),itemLayout:String,loading:Xe([Boolean,Object]),loadMore:Jn(),pagination:Xe([Boolean,Object]),prefixCls:String,rowKey:Xe([String,Number,Function]),renderItem:Oe(),size:String,split:Pe(),header:Jn(),footer:Jn(),locale:We()}),ka=he({compatConfig:{MODE:3},name:"AList",inheritAttrs:!1,Item:A6,props:at(Gce(),{dataSource:[],bordered:!1,split:!0,loading:!1,pagination:!1}),slots:Object,setup(e,t){let{slots:n,attrs:r}=t;var o,a;it(D6,{grid:Ye(e,"grid"),itemLayout:Ye(e,"itemLayout")});const i={current:1,total:0},{prefixCls:l,direction:s,renderEmpty:u}=He("list",e),[c,d]=qce(l),f=z(()=>e.pagination&&typeof e.pagination=="object"?e.pagination:{}),p=be((o=f.value.defaultCurrent)!==null&&o!==void 0?o:1),v=be((a=f.value.defaultPageSize)!==null&&a!==void 0?a:10);Ne(f,()=>{"current"in f.value&&(p.value=f.value.current),"pageSize"in f.value&&(v.value=f.value.pageSize)});const m=[],h=B=>(F,P)=>{p.value=F,v.value=P,f.value[B]&&f.value[B](F,P)},g=h("onChange"),x=h("onShowSizeChange"),y=z(()=>typeof e.loading=="boolean"?{spinning:e.loading}:e.loading),w=z(()=>y.value&&y.value.spinning),b=z(()=>{let B="";switch(e.size){case"large":B="lg";break;case"small":B="sm";break}return B}),S=z(()=>({[`${l.value}`]:!0,[`${l.value}-vertical`]:e.itemLayout==="vertical",[`${l.value}-${b.value}`]:b.value,[`${l.value}-split`]:e.split,[`${l.value}-bordered`]:e.bordered,[`${l.value}-loading`]:w.value,[`${l.value}-grid`]:!!e.grid,[`${l.value}-rtl`]:s.value==="rtl"})),$=z(()=>{const B=E(E(E({},i),{total:e.dataSource.length,current:p.value,pageSize:v.value}),e.pagination||{}),F=Math.ceil(B.total/B.pageSize);return B.current>F&&(B.current=F),B}),D=z(()=>{let B=[...e.dataSource];return e.pagination&&e.dataSource.length>($.value.current-1)*$.value.pageSize&&(B=[...e.dataSource].splice(($.value.current-1)*$.value.pageSize,$.value.pageSize)),B}),O=Bs(),A=Pr(()=>{for(let B=0;B<sa.length;B+=1){const F=sa[B];if(O.value[F])return F}}),T=z(()=>{if(!e.grid)return;const B=A.value&&e.grid[A.value]?e.grid[A.value]:e.grid.column;if(B)return{width:`${100/B}%`,maxWidth:`${100/B}%`}}),M=(B,F)=>{var P;const I=(P=e.renderItem)!==null&&P!==void 0?P:n.renderItem;if(!I)return null;let N;const R=typeof e.rowKey;return R==="function"?N=e.rowKey(B):R==="string"||R==="number"?N=B[e.rowKey]:N=B.key,N||(N=`list-item-${F}`),m[F]=N,I({item:B,index:F})};return()=>{var B,F,P,I,N,R,_,L;const k=(B=e.loadMore)!==null&&B!==void 0?B:(F=n.loadMore)===null||F===void 0?void 0:F.call(n),H=(P=e.footer)!==null&&P!==void 0?P:(I=n.footer)===null||I===void 0?void 0:I.call(n),V=(N=e.header)!==null&&N!==void 0?N:(R=n.header)===null||R===void 0?void 0:R.call(n),U=Lt((_=n.default)===null||_===void 0?void 0:_.call(n)),q=!!(k||e.pagination||H),K=ge(E(E({},S.value),{[`${l.value}-something-after-last-item`]:q}),r.class,d.value),X=e.pagination?C("div",{class:`${l.value}-pagination`},[C(dv,j(j({},$.value),{},{onChange:g,onShowSizeChange:x}),null)]):null;let re=w.value&&C("div",{style:{minHeight:"53px"}},null);if(D.value.length>0){m.length=0;const G=D.value.map((ue,me)=>M(ue,me)),le=G.map((ue,me)=>C("div",{key:m[me],style:T.value},[ue]));re=e.grid?C(px,{gutter:e.grid.gutter},{default:()=>[le]}):C("ul",{class:`${l.value}-items`},[G])}else!U.length&&!w.value&&(re=C("div",{class:`${l.value}-empty-text`},[((L=e.locale)===null||L===void 0?void 0:L.emptyText)||u("List")]));const ee=$.value.position||"bottom";return c(C("div",j(j({},r),{},{class:K}),[(ee==="top"||ee==="both")&&X,V&&C("div",{class:`${l.value}-header`},[V]),C(ko,y.value,{default:()=>[re,U]}),H&&C("div",{class:`${l.value}-footer`},[H]),k||(ee==="bottom"||ee==="both")&&X]))}}});ka.install=function(e){return e.component(ka.name,ka),e.component(ka.Item.name,ka.Item),e.component(ka.Item.Meta.name,ka.Item.Meta),e};const Xce=ka;function Yce(e){const{selectionStart:t}=e;return e.value.slice(0,t)}function Zce(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(Array.isArray(t)?t:[t]).reduce((r,o)=>{const a=e.lastIndexOf(o);return a>r.location?{location:a,prefix:o}:r},{location:-1,prefix:""})}function k3(e){return(e||"").toLowerCase()}function Jce(e,t,n){const r=e[0];if(!r||r===n)return e;let o=e;const a=t.length;for(let i=0;i<a;i+=1)if(k3(o[i])!==k3(t[i])){o=o.slice(i);break}else i===a-1&&(o=o.slice(a));return o}function Qce(e,t){const{measureLocation:n,prefix:r,targetText:o,selectionStart:a,split:i}=t;let l=e.slice(0,n);l[l.length-i.length]===i&&(l=l.slice(0,l.length-i.length)),l&&(l=`${l}${i}`);let s=Jce(e.slice(a),o.slice(a-n-r.length),i);s.slice(0,i.length)===i&&(s=s.slice(i.length));const u=`${l}${r}${o}${i}`;return{text:`${u}${s}`,selectionLocation:u.length}}function ede(e,t){e.setSelectionRange(t,t),e.blur(),e.focus()}function tde(e,t){const{split:n}=t;return!n||e.indexOf(n)===-1}function nde(e,t){let{value:n=""}=t;const r=e.toLowerCase();return n.toLowerCase().indexOf(r)!==-1}const rde=Symbol("MentionsContextKey"),O6=rde;function ode(){}const ade=he({compatConfig:{MODE:3},name:"DropdownMenu",props:{prefixCls:String,options:{type:Array,default:()=>[]}},setup(e,t){let{slots:n}=t;const{activeIndex:r,setActiveIndex:o,selectOption:a,onFocus:i=ode,loading:l}=lt(O6,{activeIndex:pe(),loading:pe(!1)});let s;const u=c=>{clearTimeout(s),s=setTimeout(()=>{i(c)})};return st(()=>{clearTimeout(s)}),()=>{var c;const{prefixCls:d,options:f}=e,p=f[r.value]||{};return C(mn,{prefixCls:`${d}-menu`,activeKey:p.value,onSelect:v=>{let{key:m}=v;const h=f.find(g=>{let{value:x}=g;return x===m});a(h)},onMousedown:u},{default:()=>[!l.value&&f.map((v,m)=>{var h,g;const{value:x,disabled:y,label:w=v.value,class:b,style:S}=v;return C(Lo,{key:x,disabled:y,onMouseenter:()=>{o(m)},class:b,style:S},{default:()=>[(g=(h=n.option)===null||h===void 0?void 0:h.call(n,v))!==null&&g!==void 0?g:typeof w=="function"?w(v):w]})}),!l.value&&f.length===0?C(Lo,{key:"notFoundContent",disabled:!0},{default:()=>[(c=n.notFoundContent)===null||c===void 0?void 0:c.call(n)]}):null,l.value&&C(Lo,{key:"loading",disabled:!0},{default:()=>[C(ko,{size:"small"},null)]})]})}}}),ide={bottomRight:{points:["tl","br"],offset:[0,4],overflow:{adjustX:0,adjustY:1}},bottomLeft:{points:["tr","bl"],offset:[0,4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["bl","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topLeft:{points:["br","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}},lde=he({compatConfig:{MODE:3},name:"KeywordTrigger",props:{loading:{type:Boolean,default:void 0},options:{type:Array,default:()=>[]},prefixCls:String,placement:String,visible:{type:Boolean,default:void 0},transitionName:String,getPopupContainer:Function,direction:String,dropdownClassName:String},setup(e,t){let{slots:n}=t;const r=()=>`${e.prefixCls}-dropdown`,o=()=>{const{options:i}=e;return C(ade,{prefixCls:r(),options:i},{notFoundContent:n.notFoundContent,option:n.option})},a=z(()=>{const{placement:i,direction:l}=e;let s="topRight";return l==="rtl"?s=i==="top"?"topLeft":"bottomLeft":s=i==="top"?"topRight":"bottomRight",s});return()=>{const{visible:i,transitionName:l,getPopupContainer:s}=e;return C(ol,{prefixCls:r(),popupVisible:i,popup:o(),popupClassName:e.dropdownClassName,popupPlacement:a.value,popupTransitionName:l,builtinPlacements:ide,getPopupContainer:s},{default:n.default})}}}),sde=Un("top","bottom"),T6={autofocus:{type:Boolean,default:void 0},prefix:Z.oneOfType([Z.string,Z.arrayOf(Z.string)]),prefixCls:String,value:String,disabled:{type:Boolean,default:void 0},split:String,transitionName:String,placement:Z.oneOf(sde),character:Z.any,characterRender:Function,filterOption:{type:[Boolean,Function]},validateSearch:Function,getPopupContainer:{type:Function},options:bt(),loading:{type:Boolean,default:void 0},rows:[Number,String],direction:{type:String}},M6=E(E({},T6),{dropdownClassName:String}),N6={prefix:"@",split:" ",rows:1,validateSearch:tde,filterOption:()=>nde};at(M6,N6);var H3=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function j3(){}const ude=he({compatConfig:{MODE:3},name:"Mentions",inheritAttrs:!1,props:at(M6,N6),emits:["change","select","search","focus","blur","pressenter"],setup(e,t){let{emit:n,attrs:r,expose:o,slots:a}=t;const i=be(null),l=be(null),s=be(),u=_t({value:e.value||"",measuring:!1,measureLocation:0,measureText:null,measurePrefix:"",activeIndex:0,isFocus:!1});Je(()=>{u.value=e.value});const c=T=>{n("change",T)},d=T=>{let{target:{value:M,composing:B},isComposing:F}=T;F||B||c(M)},f=(T,M,B)=>{E(u,{measuring:!0,measureText:T,measurePrefix:M,measureLocation:B,activeIndex:0})},p=T=>{E(u,{measuring:!1,measureLocation:0,measureText:null}),T==null||T()},v=T=>{const{which:M}=T;if(u.measuring){if(M===_e.UP||M===_e.DOWN){const B=D.value.length,F=M===_e.UP?-1:1,P=(u.activeIndex+F+B)%B;u.activeIndex=P,T.preventDefault()}else if(M===_e.ESC)p();else if(M===_e.ENTER){if(T.preventDefault(),!D.value.length){p();return}const B=D.value[u.activeIndex];b(B)}}},m=T=>{const{key:M,which:B}=T,{measureText:F,measuring:P}=u,{prefix:I,validateSearch:N}=e,R=T.target;if(R.composing)return;const _=Yce(R),{location:L,prefix:k}=Zce(_,I);if([_e.ESC,_e.UP,_e.DOWN,_e.ENTER].indexOf(B)===-1)if(L!==-1){const H=_.slice(L+k.length),V=N(H,e),U=!!$(H).length;V?(M===k||M==="Shift"||P||H!==F&&U)&&f(H,k,L):P&&p(),V&&n("search",H,k)}else P&&p()},h=T=>{u.measuring||n("pressenter",T)},g=T=>{y(T)},x=T=>{w(T)},y=T=>{clearTimeout(s.value);const{isFocus:M}=u;!M&&T&&n("focus",T),u.isFocus=!0},w=T=>{s.value=setTimeout(()=>{u.isFocus=!1,p(),n("blur",T)},100)},b=T=>{const{split:M}=e,{value:B=""}=T,{text:F,selectionLocation:P}=Qce(u.value,{measureLocation:u.measureLocation,targetText:B,prefix:u.measurePrefix,selectionStart:l.value.selectionStart,split:M});c(F),p(()=>{ede(l.value,P)}),n("select",T,u.measurePrefix)},S=T=>{u.activeIndex=T},$=T=>{const M=T||u.measureText||"",{filterOption:B}=e;return e.options.filter(P=>B?B(M,P):!0)},D=z(()=>$());return o({blur:()=>{l.value.blur()},focus:()=>{l.value.focus()}}),it(O6,{activeIndex:Ye(u,"activeIndex"),setActiveIndex:S,selectOption:b,onFocus:y,onBlur:w,loading:Ye(e,"loading")}),Sr(()=>{ht(()=>{u.measuring&&(i.value.scrollTop=l.value.scrollTop)})}),()=>{const{measureLocation:T,measurePrefix:M,measuring:B}=u,{prefixCls:F,placement:P,transitionName:I,getPopupContainer:N,direction:R}=e,_=H3(e,["prefixCls","placement","transitionName","getPopupContainer","direction"]),{class:L,style:k}=r,H=H3(r,["class","style"]),V=pt(_,["value","prefix","split","validateSearch","filterOption","options","loading"]),U=E(E(E({},V),H),{onChange:j3,onSelect:j3,value:u.value,onInput:d,onBlur:x,onKeydown:v,onKeyup:m,onFocus:g,onPressenter:h});return C("div",{class:ge(F,L),style:k},[vn(C("textarea",j({ref:l},U),null),[[As]]),B&&C("div",{ref:i,class:`${F}-measure`},[u.value.slice(0,T),C(lde,{prefixCls:F,transitionName:I,dropdownClassName:e.dropdownClassName,placement:P,options:B?D.value:[],visible:!0,direction:R,getPopupContainer:N},{default:()=>[C("span",null,[M])],notFoundContent:a.notFoundContent,option:a.option}),u.value.slice(T+M.length)])])}}}),cde={value:String,disabled:Boolean,payload:We()},P6=E(E({},cde),{label:jt([])}),I6={name:"Option",props:P6,render(e,t){let{slots:n}=t;var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}};he(E({compatConfig:{MODE:3}},I6));const dde=e=>{const{componentCls:t,colorTextDisabled:n,controlItemBgHover:r,controlPaddingHorizontal:o,colorText:a,motionDurationSlow:i,lineHeight:l,controlHeight:s,inputPaddingHorizontal:u,inputPaddingVertical:c,fontSize:d,colorBgElevated:f,borderRadiusLG:p,boxShadowSecondary:v}=e,m=Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2);return{[t]:E(E(E(E(E({},rt(e)),ll(e)),{position:"relative",display:"inline-block",height:"auto",padding:0,overflow:"hidden",lineHeight:l,whiteSpace:"pre-wrap",verticalAlign:"bottom"}),wc(e,t)),{"&-disabled":{"> textarea":E({},Z1(e))},"&-focused":E({},ri(e)),[`&-affix-wrapper ${t}-suffix`]:{position:"absolute",top:0,insetInlineEnd:u,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto"},[`> textarea, ${t}-measure`]:{color:a,boxSizing:"border-box",minHeight:s-2,margin:0,padding:`${c}px ${u}px`,overflow:"inherit",overflowX:"hidden",overflowY:"auto",fontWeight:"inherit",fontSize:"inherit",fontFamily:"inherit",fontStyle:"inherit",fontVariant:"inherit",fontSizeAdjust:"inherit",fontStretch:"inherit",lineHeight:"inherit",direction:"inherit",letterSpacing:"inherit",whiteSpace:"inherit",textAlign:"inherit",verticalAlign:"top",wordWrap:"break-word",wordBreak:"inherit",tabSize:"inherit"},"> textarea":E({width:"100%",border:"none",outline:"none",resize:"none",backgroundColor:"inherit"},Y1(e.colorTextPlaceholder)),[`${t}-measure`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:-1,color:"transparent",pointerEvents:"none","> span":{display:"inline-block",minHeight:"1em"}},"&-dropdown":E(E({},rt(e)),{position:"absolute",top:-9999,insetInlineStart:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",fontSize:d,fontVariant:"initial",backgroundColor:f,borderRadius:p,outline:"none",boxShadow:v,"&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.dropdownHeight,marginBottom:0,paddingInlineStart:0,overflow:"auto",listStyle:"none",outline:"none","&-item":E(E({},gn),{position:"relative",display:"block",minWidth:e.controlItemWidth,padding:`${m}px ${o}px`,color:a,fontWeight:"normal",lineHeight:l,cursor:"pointer",transition:`background ${i} ease`,"&:hover":{backgroundColor:r},"&:first-child":{borderStartStartRadius:p,borderStartEndRadius:p,borderEndStartRadius:0,borderEndEndRadius:0},"&:last-child":{borderStartStartRadius:0,borderStartEndRadius:0,borderEndStartRadius:p,borderEndEndRadius:p},"&-disabled":{color:n,cursor:"not-allowed","&:hover":{color:n,backgroundColor:r,cursor:"not-allowed"}},"&-selected":{color:a,fontWeight:e.fontWeightStrong,backgroundColor:r},"&-active":{backgroundColor:r}})}})})}},fde=nt("Mentions",e=>{const t=sl(e);return[dde(t)]},e=>({dropdownHeight:250,controlItemWidth:100,zIndexPopup:e.zIndexPopupBase+50}));var V3=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function pde(){return!0}const mde=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{prefix:n="@",split:r=" "}=t,o=Array.isArray(n)?n:[n];return e.split(r).map(function(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",i=null;return o.some(l=>a.slice(0,l.length)===l?(i=l,!0):!1),i!==null?{prefix:i,value:a.slice(i.length)}:null}).filter(a=>!!a&&!!a.value)},vde=()=>E(E({},T6),{loading:{type:Boolean,default:void 0},onFocus:{type:Function},onBlur:{type:Function},onSelect:{type:Function},onChange:{type:Function},onPressenter:{type:Function},"onUpdate:value":{type:Function},notFoundContent:Z.any,defaultValue:String,id:String,status:String}),Gh=he({compatConfig:{MODE:3},name:"AMentions",inheritAttrs:!1,props:vde(),slots:Object,setup(e,t){let{slots:n,emit:r,attrs:o,expose:a}=t;var i,l;const{prefixCls:s,renderEmpty:u,direction:c}=He("mentions",e),[d,f]=fde(s),p=pe(!1),v=pe(null),m=pe((l=(i=e.value)!==null&&i!==void 0?i:e.defaultValue)!==null&&l!==void 0?l:""),h=Cn(),g=Bn.useInject(),x=z(()=>$o(g.status,e.status));E1({prefixCls:z(()=>`${s.value}-menu`),mode:z(()=>"vertical"),selectable:z(()=>!1),onClick:()=>{},validator:M=>{Jt()}}),Ne(()=>e.value,M=>{m.value=M});const y=M=>{p.value=!0,r("focus",M)},w=M=>{p.value=!1,r("blur",M),h.onFieldBlur()},b=function(){for(var M=arguments.length,B=new Array(M),F=0;F<M;F++)B[F]=arguments[F];r("select",...B),p.value=!0},S=M=>{e.value===void 0&&(m.value=M),r("update:value",M),r("change",M),h.onFieldChange()},$=()=>{const M=e.notFoundContent;return M!==void 0?M:n.notFoundContent?n.notFoundContent():u("Select")},D=()=>{var M;return Lt(((M=n.default)===null||M===void 0?void 0:M.call(n))||[]).map(B=>{var F,P;return E(E({},HT(B)),{label:(P=(F=B.children)===null||F===void 0?void 0:F.default)===null||P===void 0?void 0:P.call(F)})})};a({focus:()=>{v.value.focus()},blur:()=>{v.value.blur()}});const T=z(()=>e.loading?pde:e.filterOption);return()=>{const{disabled:M,getPopupContainer:B,rows:F=1,id:P=h.id.value}=e,I=V3(e,["disabled","getPopupContainer","rows","id"]),{hasFeedback:N,feedbackIcon:R}=g,{class:_}=o,L=V3(o,["class"]),k=pt(I,["defaultValue","onUpdate:value","prefixCls"]),H=ge({[`${s.value}-disabled`]:M,[`${s.value}-focused`]:p.value,[`${s.value}-rtl`]:c.value==="rtl"},er(s.value,x.value),!N&&_,f.value),V=E(E(E(E({prefixCls:s.value},k),{disabled:M,direction:c.value,filterOption:T.value,getPopupContainer:B,options:e.loading?[{value:"ANTDV_SEARCHING",disabled:!0,label:C(ko,{size:"small"},null)}]:e.options||D(),class:H}),L),{rows:F,onChange:S,onSelect:b,onFocus:y,onBlur:w,ref:v,value:m.value,id:P}),U=C(ude,j(j({},V),{},{dropdownClassName:f.value}),{notFoundContent:$,option:n.option});return d(N?C("div",{class:ge(`${s.value}-affix-wrapper`,er(`${s.value}-affix-wrapper`,x.value,N),_,f.value)},[U,C("span",{class:`${s.value}-suffix`},[R])]):U)}}}),yf=he(E(E({compatConfig:{MODE:3}},I6),{name:"AMentionsOption",props:P6})),hde=E(Gh,{Option:yf,getMentions:mde,install:e=>(e.component(Gh.name,Gh),e.component(yf.name,yf),e)});var gde=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let k0;const yde=e=>{k0={x:e.pageX,y:e.pageY},setTimeout(()=>k0=null,100)};ZI()&&en(document.documentElement,"click",yde,!0);const bde=()=>({prefixCls:String,visible:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},confirmLoading:{type:Boolean,default:void 0},title:Z.any,closable:{type:Boolean,default:void 0},closeIcon:Z.any,onOk:Function,onCancel:Function,"onUpdate:visible":Function,onChange:Function,afterClose:Function,centered:{type:Boolean,default:void 0},width:[String,Number],footer:Z.any,okText:Z.any,okType:String,cancelText:Z.any,icon:Z.any,maskClosable:{type:Boolean,default:void 0},forceRender:{type:Boolean,default:void 0},okButtonProps:We(),cancelButtonProps:We(),destroyOnClose:{type:Boolean,default:void 0},wrapClassName:String,maskTransitionName:String,transitionName:String,getContainer:{type:[String,Function,Boolean,Object],default:void 0},zIndex:Number,bodyStyle:We(),maskStyle:We(),mask:{type:Boolean,default:void 0},keyboard:{type:Boolean,default:void 0},wrapProps:Object,focusTriggerAfterClose:{type:Boolean,default:void 0},modalRender:Function,mousePosition:We()}),wn=he({compatConfig:{MODE:3},name:"AModal",inheritAttrs:!1,props:at(bde(),{width:520,confirmLoading:!1,okType:"primary"}),setup(e,t){let{emit:n,slots:r,attrs:o}=t;const[a]=ro("Modal"),{prefixCls:i,rootPrefixCls:l,direction:s,getPopupContainer:u}=He("modal",e),[c,d]=Nue(i);Jt(e.visible===void 0);const f=m=>{n("update:visible",!1),n("update:open",!1),n("cancel",m),n("change",!1)},p=m=>{n("ok",m)},v=()=>{var m,h;const{okText:g=(m=r.okText)===null||m===void 0?void 0:m.call(r),okType:x,cancelText:y=(h=r.cancelText)===null||h===void 0?void 0:h.call(r),confirmLoading:w}=e;return C(dt,null,[C(dn,j({onClick:f},e.cancelButtonProps),{default:()=>[y||a.value.cancelText]}),C(dn,j(j({},sp(x)),{},{loading:w,onClick:p},e.okButtonProps),{default:()=>[g||a.value.okText]})])};return()=>{var m,h;const{prefixCls:g,visible:x,open:y,wrapClassName:w,centered:b,getContainer:S,closeIcon:$=(m=r.closeIcon)===null||m===void 0?void 0:m.call(r),focusTriggerAfterClose:D=!0}=e,O=gde(e,["prefixCls","visible","open","wrapClassName","centered","getContainer","closeIcon","focusTriggerAfterClose"]),A=ge(w,{[`${i.value}-centered`]:!!b,[`${i.value}-wrap-rtl`]:s.value==="rtl"});return c(C(f6,j(j(j({},O),o),{},{rootClassName:d.value,class:ge(d.value,o.class),getContainer:S||(u==null?void 0:u.value),prefixCls:i.value,wrapClassName:A,visible:y??x,onClose:f,focusTriggerAfterClose:D,transitionName:xr(l.value,"zoom",e.transitionName),maskTransitionName:xr(l.value,"fade",e.maskTransitionName),mousePosition:(h=O.mousePosition)!==null&&h!==void 0?h:k0}),E(E({},r),{footer:r.footer||v,closeIcon:()=>C("span",{class:`${i.value}-close-x`},[$||C(Hr,{class:`${i.value}-close-icon`},null)])})))}}}),xde=()=>{const e=pe(!1);return st(()=>{e.value=!0}),e},_6=xde,wde={type:{type:String},actionFn:Function,close:Function,autofocus:Boolean,prefixCls:String,buttonProps:We(),emitEvent:Boolean,quitOnNullishReturnValue:Boolean};function W3(e){return!!(e&&e.then)}const H0=he({compatConfig:{MODE:3},name:"ActionButton",props:wde,setup(e,t){let{slots:n}=t;const r=pe(!1),o=pe(),a=pe(!1);let i;const l=_6();Qe(()=>{e.autofocus&&(i=setTimeout(()=>{var d,f;return(f=(d=yr(o.value))===null||d===void 0?void 0:d.focus)===null||f===void 0?void 0:f.call(d)}))}),st(()=>{clearTimeout(i)});const s=function(){for(var d,f=arguments.length,p=new Array(f),v=0;v<f;v++)p[v]=arguments[v];(d=e.close)===null||d===void 0||d.call(e,...p)},u=d=>{W3(d)&&(a.value=!0,d.then(function(){l.value||(a.value=!1),s(...arguments),r.value=!1},f=>(l.value||(a.value=!1),r.value=!1,Promise.reject(f))))},c=d=>{const{actionFn:f}=e;if(r.value)return;if(r.value=!0,!f){s();return}let p;if(e.emitEvent){if(p=f(d),e.quitOnNullishReturnValue&&!W3(p)){r.value=!1,s(d);return}}else if(f.length)p=f(e.close),r.value=!1;else if(p=f(),!p){s();return}u(p)};return()=>{const{type:d,prefixCls:f,buttonProps:p}=e;return C(dn,j(j(j({},sp(d)),{},{onClick:c,loading:a.value,prefixCls:f},p),{},{ref:o}),n)}}});function Cl(e){return typeof e=="function"?e():e}const B6=he({name:"ConfirmDialog",inheritAttrs:!1,props:["icon","onCancel","onOk","close","closable","zIndex","afterClose","visible","open","keyboard","centered","getContainer","maskStyle","okButtonProps","cancelButtonProps","okType","prefixCls","okCancel","width","mask","maskClosable","okText","cancelText","autoFocusButton","transitionName","maskTransitionName","type","title","content","direction","rootPrefixCls","bodyStyle","closeIcon","modalRender","focusTriggerAfterClose","wrapClassName","confirmPrefixCls","footer"],setup(e,t){let{attrs:n}=t;const[r]=ro("Modal");return()=>{const{icon:o,onCancel:a,onOk:i,close:l,closable:s=!1,zIndex:u,afterClose:c,keyboard:d,centered:f,getContainer:p,maskStyle:v,okButtonProps:m,cancelButtonProps:h,okCancel:g,width:x=416,mask:y=!0,maskClosable:w=!1,type:b,open:S,title:$,content:D,direction:O,closeIcon:A,modalRender:T,focusTriggerAfterClose:M,rootPrefixCls:B,bodyStyle:F,wrapClassName:P,footer:I}=e;let N=o;if(!o&&o!==null)switch(b){case"info":N=C(_s,null,null);break;case"success":N=C(Aa,null,null);break;case"error":N=C($r,null,null);break;default:N=C(Oa,null,null)}const R=e.okType||"primary",_=e.prefixCls||"ant-modal",L=`${_}-confirm`,k=n.style||{},H=Cl(e.okText)||(g?r.value.okText:r.value.justOkText),V=g??b==="confirm",U=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",q=`${_}-confirm`,K=ge(q,`${q}-${e.type}`,{[`${q}-rtl`]:O==="rtl"},n.class),X=V&&C(H0,{actionFn:a,close:l,autofocus:U==="cancel",buttonProps:h,prefixCls:`${B}-btn`},{default:()=>[Cl(e.cancelText)||r.value.cancelText]});return C(wn,{prefixCls:_,class:K,wrapClassName:ge({[`${q}-centered`]:!!f},P),onCancel:re=>l==null?void 0:l({triggerCancel:!0},re),open:S,title:"",footer:"",transitionName:xr(B,"zoom",e.transitionName),maskTransitionName:xr(B,"fade",e.maskTransitionName),mask:y,maskClosable:w,maskStyle:v,style:k,bodyStyle:F,width:x,zIndex:u,afterClose:c,keyboard:d,centered:f,getContainer:p,closable:s,closeIcon:A,modalRender:T,focusTriggerAfterClose:M},{default:()=>[C("div",{class:`${L}-body-wrapper`},[C("div",{class:`${L}-body`},[Cl(N),$===void 0?null:C("span",{class:`${L}-title`},[Cl($)]),C("div",{class:`${L}-content`},[Cl(D)])]),I!==void 0?Cl(I):C("div",{class:`${L}-btns`},[X,C(H0,{type:R,actionFn:i,close:l,autofocus:U==="ok",buttonProps:m,prefixCls:`${B}-btn`},{default:()=>[H]})])])]})}}}),Sde=[],Ii=Sde,Cde=e=>{const t=document.createDocumentFragment();let n=E(E({},pt(e,["parentContext","appContext"])),{close:a,open:!0}),r=null;function o(){r&&(as(null,t),r.component.update(),r=null);for(var u=arguments.length,c=new Array(u),d=0;d<u;d++)c[d]=arguments[d];const f=c.some(p=>p&&p.triggerCancel);e.onCancel&&f&&e.onCancel(()=>{},...c.slice(1));for(let p=0;p<Ii.length;p++)if(Ii[p]===a){Ii.splice(p,1);break}}function a(){for(var u=arguments.length,c=new Array(u),d=0;d<u;d++)c[d]=arguments[d];n=E(E({},n),{open:!1,afterClose:()=>{typeof e.afterClose=="function"&&e.afterClose(),o.apply(this,c)}}),n.visible&&delete n.visible,i(n)}function i(u){typeof u=="function"?n=u(n):n=E(E({},n),u),r&&(E(r.component.props,n),r.component.update())}const l=u=>{const c=Hn,d=c.prefixCls,f=u.prefixCls||`${d}-modal`,p=c.iconPrefixCls,v=roe();return C(sv,j(j({},c),{},{prefixCls:d}),{default:()=>[C(B6,j(j({},u),{},{rootPrefixCls:d,prefixCls:f,iconPrefixCls:p,locale:v,cancelText:u.cancelText||v.cancelText}),null)]})};function s(u){const c=C(l,E({},u));return c.appContext=e.parentContext||e.appContext||c.appContext,as(c,t),c}return r=s(n),Ii.push(a),{destroy:a,update:i}},Dc=Cde;function F6(e){return E(E({},e),{type:"warning"})}function R6(e){return E(E({},e),{type:"info"})}function z6(e){return E(E({},e),{type:"success"})}function L6(e){return E(E({},e),{type:"error"})}function k6(e){return E(E({},e),{type:"confirm"})}const $de=()=>({config:Object,afterClose:Function,destroyAction:Function,open:Boolean}),Ede=he({name:"HookModal",inheritAttrs:!1,props:at($de(),{config:{width:520,okType:"primary"}}),setup(e,t){let{expose:n}=t;var r;const o=z(()=>e.open),a=z(()=>e.config),{direction:i,getPrefixCls:l}=im(),s=l("modal"),u=l(),c=()=>{var v,m;e==null||e.afterClose(),(m=(v=a.value).afterClose)===null||m===void 0||m.call(v)},d=function(){e.destroyAction(...arguments)};n({destroy:d});const f=(r=a.value.okCancel)!==null&&r!==void 0?r:a.value.type==="confirm",[p]=ro("Modal",cr.Modal);return()=>C(B6,j(j({prefixCls:s,rootPrefixCls:u},a.value),{},{close:d,open:o.value,afterClose:c,okText:a.value.okText||(f?p==null?void 0:p.value.okText:p==null?void 0:p.value.justOkText),direction:a.value.direction||i.value,cancelText:a.value.cancelText||(p==null?void 0:p.value.cancelText)}),null)}});let U3=0;const Dde=he({name:"ElementsHolder",inheritAttrs:!1,setup(e,t){let{expose:n}=t;const r=pe([]);return n({addModal:a=>(r.value.push(a),r.value=r.value.slice(),()=>{r.value=r.value.filter(i=>i!==a)})}),()=>r.value.map(a=>a())}});function Ade(){const e=pe(null),t=pe([]);Ne(t,()=>{t.value.length&&([...t.value].forEach(i=>{i()}),t.value=[])},{immediate:!0});const n=a=>function(l){var s;U3+=1;const u=pe(!0),c=pe(null),d=pe(xn(l)),f=pe({});Ne(()=>l,y=>{h(E(E({},Vi(y)?y.value:y),f.value))});const p=function(){u.value=!1;for(var y=arguments.length,w=new Array(y),b=0;b<y;b++)w[b]=arguments[b];const S=w.some($=>$&&$.triggerCancel);d.value.onCancel&&S&&d.value.onCancel(()=>{},...w.slice(1))};let v;const m=()=>C(Ede,{key:`modal-${U3}`,config:a(d.value),ref:c,open:u.value,destroyAction:p,afterClose:()=>{v==null||v()}},null);v=(s=e.value)===null||s===void 0?void 0:s.addModal(m),v&&Ii.push(v);const h=y=>{d.value=E(E({},d.value),y)};return{destroy:()=>{c.value?p():t.value=[...t.value,p]},update:y=>{f.value=y,c.value?h(y):t.value=[...t.value,()=>h(y)]}}},r=z(()=>({info:n(R6),success:n(z6),error:n(L6),warning:n(F6),confirm:n(k6)})),o=Symbol("modalHolderKey");return[r.value,()=>C(Dde,{key:o,ref:e},null)]}function H6(e){return Dc(F6(e))}wn.useModal=Ade;wn.info=function(t){return Dc(R6(t))};wn.success=function(t){return Dc(z6(t))};wn.error=function(t){return Dc(L6(t))};wn.warning=H6;wn.warn=H6;wn.confirm=function(t){return Dc(k6(t))};wn.destroyAll=function(){for(;Ii.length;){const t=Ii.pop();t&&t()}};wn.install=function(e){return e.component(wn.name,wn),e};const j6=e=>{const{value:t,formatter:n,precision:r,decimalSeparator:o,groupSeparator:a="",prefixCls:i}=e;let l;if(typeof n=="function")l=n({value:t});else{const s=String(t),u=s.match(/^(-?)(\d*)(\.(\d+))?$/);if(!u)l=s;else{const c=u[1];let d=u[2]||"0",f=u[4]||"";d=d.replace(/\B(?=(\d{3})+(?!\d))/g,a),typeof r=="number"&&(f=f.padEnd(r,"0").slice(0,r>0?r:0)),f&&(f=`${o}${f}`),l=[C("span",{key:"int",class:`${i}-content-value-int`},[c,d]),f&&C("span",{key:"decimal",class:`${i}-content-value-decimal`},[f])]}}return C("span",{class:`${i}-content-value`},[l])};j6.displayName="StatisticNumber";const Ode=j6,Tde=e=>{const{componentCls:t,marginXXS:n,padding:r,colorTextDescription:o,statisticTitleFontSize:a,colorTextHeading:i,statisticContentFontSize:l,statisticFontFamily:s}=e;return{[`${t}`]:E(E({},rt(e)),{[`${t}-title`]:{marginBottom:n,color:o,fontSize:a},[`${t}-skeleton`]:{paddingTop:r},[`${t}-content`]:{color:i,fontSize:l,fontFamily:s,[`${t}-content-value`]:{display:"inline-block",direction:"ltr"},[`${t}-content-prefix, ${t}-content-suffix`]:{display:"inline-block"},[`${t}-content-prefix`]:{marginInlineEnd:n},[`${t}-content-suffix`]:{marginInlineStart:n}}})}},Mde=nt("Statistic",e=>{const{fontSizeHeading3:t,fontSize:n,fontFamily:r}=e,o=qe(e,{statisticTitleFontSize:n,statisticContentFontSize:t,statisticFontFamily:r});return[Tde(o)]}),V6=()=>({prefixCls:String,decimalSeparator:String,groupSeparator:String,format:String,value:Xe([Number,String,Object]),valueStyle:{type:Object,default:void 0},valueRender:Oe(),formatter:jt(),precision:Number,prefix:Jn(),suffix:Jn(),title:Jn(),loading:Pe()}),la=he({compatConfig:{MODE:3},name:"AStatistic",inheritAttrs:!1,props:at(V6(),{decimalSeparator:".",groupSeparator:",",loading:!1}),slots:Object,setup(e,t){let{slots:n,attrs:r}=t;const{prefixCls:o,direction:a}=He("statistic",e),[i,l]=Mde(o);return()=>{var s,u,c,d,f,p,v;const{value:m=0,valueStyle:h,valueRender:g}=e,x=o.value,y=(s=e.title)!==null&&s!==void 0?s:(u=n.title)===null||u===void 0?void 0:u.call(n),w=(c=e.prefix)!==null&&c!==void 0?c:(d=n.prefix)===null||d===void 0?void 0:d.call(n),b=(f=e.suffix)!==null&&f!==void 0?f:(p=n.suffix)===null||p===void 0?void 0:p.call(n),S=(v=e.formatter)!==null&&v!==void 0?v:n.formatter;let $=C(Ode,j({"data-for-update":Date.now()},E(E({},e),{prefixCls:x,value:m,formatter:S})),null);return g&&($=g($)),i(C("div",j(j({},r),{},{class:[x,{[`${x}-rtl`]:a.value==="rtl"},r.class,l.value]}),[y&&C("div",{class:`${x}-title`},[y]),C(Zn,{paragraph:!1,loading:e.loading},{default:()=>[C("div",{style:h,class:`${x}-content`},[w&&C("span",{class:`${x}-content-prefix`},[w]),$,b&&C("span",{class:`${x}-content-suffix`},[b])])]})]))}}}),Nde=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function Pde(e,t){let n=e;const r=/\[[^\]]*]/g,o=(t.match(r)||[]).map(s=>s.slice(1,-1)),a=t.replace(r,"[]"),i=Nde.reduce((s,u)=>{let[c,d]=u;if(s.includes(c)){const f=Math.floor(n/d);return n-=f*d,s.replace(new RegExp(`${c}+`,"g"),p=>{const v=p.length;return f.toString().padStart(v,"0")})}return s},a);let l=0;return i.replace(r,()=>{const s=o[l];return l+=1,s})}function Ide(e,t){const{format:n=""}=t,r=new Date(e).getTime(),o=Date.now(),a=Math.max(r-o,0);return Pde(a,n)}const _de=1e3/30;function Xh(e){return new Date(e).getTime()}const Bde=()=>E(E({},V6()),{value:Xe([Number,String,Object]),format:String,onFinish:Function,onChange:Function}),Fde=he({compatConfig:{MODE:3},name:"AStatisticCountdown",props:at(Bde(),{format:"HH:mm:ss"}),setup(e,t){let{emit:n,slots:r}=t;const o=be(),a=be(),i=()=>{const{value:d}=e;Xh(d)>=Date.now()?l():s()},l=()=>{if(o.value)return;const d=Xh(e.value);o.value=setInterval(()=>{a.value.$forceUpdate(),d>Date.now()&&n("change",d-Date.now()),i()},_de)},s=()=>{const{value:d}=e;o.value&&(clearInterval(o.value),o.value=void 0,Xh(d)<Date.now()&&n("finish"))},u=d=>{let{value:f,config:p}=d;const{format:v}=e;return Ide(f,E(E({},p),{format:v}))},c=d=>d;return Qe(()=>{i()}),Sr(()=>{i()}),st(()=>{s()}),()=>{const d=e.value;return C(la,j({ref:a},E(E({},pt(e,["onFinish","onChange"])),{value:d,valueRender:c,formatter:u})),r)}}});la.Countdown=Fde;la.install=function(e){return e.component(la.name,la),e.component(la.Countdown.name,la.Countdown),e};const Rde=la.Countdown;var zde=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Lde={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-block"},kde=he({compatConfig:{MODE:3},name:"TransButton",inheritAttrs:!1,props:{noStyle:{type:Boolean,default:void 0},onClick:Function,disabled:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0}},setup(e,t){let{slots:n,emit:r,attrs:o,expose:a}=t;const i=pe(),l=f=>{const{keyCode:p}=f;p===_e.ENTER&&f.preventDefault()},s=f=>{const{keyCode:p}=f;p===_e.ENTER&&r("click",f)},u=f=>{r("click",f)},c=()=>{i.value&&i.value.focus()},d=()=>{i.value&&i.value.blur()};return Qe(()=>{e.autofocus&&c()}),a({focus:c,blur:d}),()=>{var f;const{noStyle:p,disabled:v}=e,m=zde(e,["noStyle","disabled"]);let h={};return p||(h=E({},Lde)),v&&(h.pointerEvents="none"),C("div",j(j(j({role:"button",tabindex:0,ref:i},m),o),{},{onClick:u,onKeydown:l,onKeyup:s,style:E(E({},h),o.style||{})}),[(f=n.default)===null||f===void 0?void 0:f.call(n)])}}}),Tp=kde,Hde={small:8,middle:16,large:24},jde=()=>({prefixCls:String,size:{type:[String,Number,Array]},direction:Z.oneOf(Un("horizontal","vertical")).def("horizontal"),align:Z.oneOf(Un("start","end","center","baseline")),wrap:Pe()});function Vde(e){return typeof e=="string"?Hde[e]:e||0}const Ou=he({compatConfig:{MODE:3},name:"ASpace",inheritAttrs:!1,props:jde(),slots:Object,setup(e,t){let{slots:n,attrs:r}=t;const{prefixCls:o,space:a,direction:i}=He("space",e),[l,s]=FN(o),u=QI(),c=z(()=>{var g,x,y;return(y=(g=e.size)!==null&&g!==void 0?g:(x=a==null?void 0:a.value)===null||x===void 0?void 0:x.size)!==null&&y!==void 0?y:"small"}),d=be(),f=be();Ne(c,()=>{[d.value,f.value]=(Array.isArray(c.value)?c.value:[c.value,c.value]).map(g=>Vde(g))},{immediate:!0});const p=z(()=>e.align===void 0&&e.direction==="horizontal"?"center":e.align),v=z(()=>ge(o.value,s.value,`${o.value}-${e.direction}`,{[`${o.value}-rtl`]:i.value==="rtl",[`${o.value}-align-${p.value}`]:p.value})),m=z(()=>i.value==="rtl"?"marginLeft":"marginRight"),h=z(()=>{const g={};return u.value&&(g.columnGap=`${d.value}px`,g.rowGap=`${f.value}px`),E(E({},g),e.wrap&&{flexWrap:"wrap",marginBottom:`${-f.value}px`})});return()=>{var g,x;const{wrap:y,direction:w="horizontal"}=e,b=(g=n.default)===null||g===void 0?void 0:g.call(n),S=nn(b),$=S.length;if($===0)return null;const D=(x=n.split)===null||x===void 0?void 0:x.call(n),O=`${o.value}-item`,A=d.value,T=$-1;return C("div",j(j({},r),{},{class:[v.value,r.class],style:[h.value,r.style]}),[S.map((M,B)=>{const F=b.indexOf(M);let P={};return u.value||(w==="vertical"?B<T&&(P={marginBottom:`${A/(D?2:1)}px`}):P=E(E({},B<T&&{[m.value]:`${A/(D?2:1)}px`}),y&&{paddingBottom:`${f.value}px`})),l(C(dt,{key:F},[C("div",{class:O,style:P},[M]),B<T&&D&&C("span",{class:`${O}-split`,style:P},[D])]))})])}}});Ou.Compact=np;Ou.install=function(e){return e.component(Ou.name,Ou),e.component(np.name,np),e};const W6=Ou,Wde=e=>{const{componentCls:t,antCls:n}=e;return{[t]:E(E({},rt(e)),{position:"relative",padding:`${e.pageHeaderPaddingVertical}px ${e.pageHeaderPadding}px`,backgroundColor:e.colorBgContainer,[`${t}-ghost`]:{backgroundColor:e.pageHeaderGhostBg},["&.has-footer"]:{paddingBottom:0},[`${t}-back`]:{marginRight:e.marginMD,fontSize:e.fontSizeLG,lineHeight:1,["&-button"]:E(E({},mm(e)),{color:e.pageHeaderBackColor,cursor:"pointer"})},[`${n}-divider-vertical`]:{height:"14px",margin:`0 ${e.marginSM}`,verticalAlign:"middle"},[`${n}-breadcrumb + &-heading`]:{marginTop:e.marginXS},[`${t}-heading`]:{display:"flex",justifyContent:"space-between",["&-left"]:{display:"flex",alignItems:"center",margin:`${e.marginXS/2}px 0`,overflow:"hidden"},["&-title"]:E({marginRight:e.marginSM,marginBottom:0,color:e.colorTextHeading,fontWeight:600,fontSize:e.pageHeaderHeadingTitle,lineHeight:`${e.controlHeight}px`},gn),[`${n}-avatar`]:{marginRight:e.marginSM},["&-sub-title"]:E({marginRight:e.marginSM,color:e.colorTextDescription,fontSize:e.pageHeaderHeadingSubTitle,lineHeight:e.lineHeight},gn),["&-extra"]:{margin:`${e.marginXS/2}px 0`,whiteSpace:"nowrap",["> *"]:{marginLeft:e.marginSM,whiteSpace:"unset"},["> *:first-child"]:{marginLeft:0}}},[`${t}-content`]:{paddingTop:e.pageHeaderContentPaddingVertical},[`${t}-footer`]:{marginTop:e.marginMD,[`${n}-tabs`]:{[`> ${n}-tabs-nav`]:{margin:0,["&::before"]:{border:"none"}},[`${n}-tabs-tab`]:{paddingTop:e.paddingXS,paddingBottom:e.paddingXS,fontSize:e.pageHeaderTabFontSize}}},[`${t}-compact ${t}-heading`]:{flexWrap:"wrap"},[`&${e.componentCls}-rtl`]:{direction:"rtl"}})}},Ude=nt("PageHeader",e=>{const t=qe(e,{pageHeaderPadding:e.paddingLG,pageHeaderPaddingVertical:e.paddingMD,pageHeaderPaddingBreadcrumb:e.paddingSM,pageHeaderContentPaddingVertical:e.paddingSM,pageHeaderBackColor:e.colorTextBase,pageHeaderGhostBg:"inherit",pageHeaderHeadingTitle:e.fontSizeHeading4,pageHeaderHeadingSubTitle:e.fontSize,pageHeaderTabFontSize:e.fontSizeLG});return[Wde(t)]}),Kde=()=>({backIcon:Jn(),prefixCls:String,title:Jn(),subTitle:Jn(),breadcrumb:Z.object,tags:Jn(),footer:Jn(),extra:Jn(),avatar:We(),ghost:{type:Boolean,default:void 0},onBack:Function}),qde=he({compatConfig:{MODE:3},name:"APageHeader",inheritAttrs:!1,props:Kde(),slots:Object,setup(e,t){let{emit:n,slots:r,attrs:o}=t;const{prefixCls:a,direction:i,pageHeader:l}=He("page-header",e),[s,u]=Ude(a),c=pe(!1),d=_6(),f=w=>{let{width:b}=w;d.value||(c.value=b<768)},p=z(()=>{var w,b,S;return(S=(w=e.ghost)!==null&&w!==void 0?w:(b=l==null?void 0:l.value)===null||b===void 0?void 0:b.ghost)!==null&&S!==void 0?S:!0}),v=()=>{var w,b,S;return(S=(w=e.backIcon)!==null&&w!==void 0?w:(b=r.backIcon)===null||b===void 0?void 0:b.call(r))!==null&&S!==void 0?S:i.value==="rtl"?C(xoe,null,null):C(hoe,null,null)},m=w=>!w||!e.onBack?null:C(Ji,{componentName:"PageHeader",children:b=>{let{back:S}=b;return C("div",{class:`${a.value}-back`},[C(Tp,{onClick:$=>{n("back",$)},class:`${a.value}-back-button`,"aria-label":S},{default:()=>[w]})])}},null),h=()=>{var w;return e.breadcrumb?C(zi,e.breadcrumb,null):(w=r.breadcrumb)===null||w===void 0?void 0:w.call(r)},g=()=>{var w,b,S,$,D,O,A,T,M;const{avatar:B}=e,F=(w=e.title)!==null&&w!==void 0?w:(b=r.title)===null||b===void 0?void 0:b.call(r),P=(S=e.subTitle)!==null&&S!==void 0?S:($=r.subTitle)===null||$===void 0?void 0:$.call(r),I=(D=e.tags)!==null&&D!==void 0?D:(O=r.tags)===null||O===void 0?void 0:O.call(r),N=(A=e.extra)!==null&&A!==void 0?A:(T=r.extra)===null||T===void 0?void 0:T.call(r),R=`${a.value}-heading`,_=F||P||I||N;if(!_)return null;const L=v(),k=m(L);return C("div",{class:R},[(k||B||_)&&C("div",{class:`${R}-left`},[k,B?C(Ri,B,null):(M=r.avatar)===null||M===void 0?void 0:M.call(r),F&&C("span",{class:`${R}-title`,title:typeof F=="string"?F:void 0},[F]),P&&C("span",{class:`${R}-sub-title`,title:typeof P=="string"?P:void 0},[P]),I&&C("span",{class:`${R}-tags`},[I])]),N&&C("span",{class:`${R}-extra`},[C(W6,null,{default:()=>[N]})])])},x=()=>{var w,b;const S=(w=e.footer)!==null&&w!==void 0?w:nn((b=r.footer)===null||b===void 0?void 0:b.call(r));return eR(S)?null:C("div",{class:`${a.value}-footer`},[S])},y=w=>C("div",{class:`${a.value}-content`},[w]);return()=>{var w,b;const S=((w=e.breadcrumb)===null||w===void 0?void 0:w.routes)||r.breadcrumb,$=e.footer||r.footer,D=Lt((b=r.default)===null||b===void 0?void 0:b.call(r)),O=ge(a.value,{"has-breadcrumb":S,"has-footer":$,[`${a.value}-ghost`]:p.value,[`${a.value}-rtl`]:i.value==="rtl",[`${a.value}-compact`]:c.value},o.class,u.value);return s(C(Qr,{onResize:f},{default:()=>[C("div",j(j({},o),{},{class:O}),[h(),g(),D.length?y(D):null,x()])]}))}}}),Gde=rn(qde),Xde=e=>{const{componentCls:t,iconCls:n,zIndexPopup:r,colorText:o,colorWarning:a,marginXS:i,fontSize:l,fontWeightStrong:s,lineHeight:u}=e;return{[t]:{zIndex:r,[`${t}-inner-content`]:{color:o},[`${t}-message`]:{position:"relative",marginBottom:i,color:o,fontSize:l,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:a,fontSize:l,flex:"none",lineHeight:1,paddingTop:(Math.round(l*u)-l)/2},"&-title":{flex:"auto",marginInlineStart:i},"&-title-only":{fontWeight:s}},[`${t}-description`]:{position:"relative",marginInlineStart:l+i,marginBottom:i,color:o,fontSize:l},[`${t}-buttons`]:{textAlign:"end",button:{marginInlineStart:i}}}}},Yde=nt("Popconfirm",e=>Xde(e),e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}});var Zde=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Jde=()=>E(E({},m1()),{prefixCls:String,content:jt(),title:jt(),description:jt(),okType:Ue("primary"),disabled:{type:Boolean,default:!1},okText:jt(),cancelText:jt(),icon:jt(),okButtonProps:We(),cancelButtonProps:We(),showCancel:{type:Boolean,default:!0},onConfirm:Function,onCancel:Function}),Qde=he({compatConfig:{MODE:3},name:"APopconfirm",inheritAttrs:!1,props:at(Jde(),E(E({},pP()),{trigger:"click",placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0,okType:"primary",disabled:!1})),slots:Object,setup(e,t){let{slots:n,emit:r,expose:o,attrs:a}=t;const i=be();Jt(e.visible===void 0),o({getPopupDomNode:()=>{var S,$;return($=(S=i.value)===null||S===void 0?void 0:S.getPopupDomNode)===null||$===void 0?void 0:$.call(S)}});const[l,s]=Zt(!1,{value:Ye(e,"open")}),u=(S,$)=>{e.open===void 0&&s(S),r("update:open",S),r("openChange",S,$)},c=S=>{u(!1,S)},d=S=>{var $;return($=e.onConfirm)===null||$===void 0?void 0:$.call(e,S)},f=S=>{var $;u(!1,S),($=e.onCancel)===null||$===void 0||$.call(e,S)},p=S=>{S.keyCode===_e.ESC&&l&&u(!1,S)},v=S=>{const{disabled:$}=e;$||u(S)},{prefixCls:m,getPrefixCls:h}=He("popconfirm",e),g=z(()=>h()),x=z(()=>h("btn")),[y]=Yde(m),[w]=ro("Popconfirm",cr.Popconfirm),b=()=>{var S,$,D,O,A;const{okButtonProps:T,cancelButtonProps:M,title:B=(S=n.title)===null||S===void 0?void 0:S.call(n),description:F=($=n.description)===null||$===void 0?void 0:$.call(n),cancelText:P=(D=n.cancel)===null||D===void 0?void 0:D.call(n),okText:I=(O=n.okText)===null||O===void 0?void 0:O.call(n),okType:N,icon:R=((A=n.icon)===null||A===void 0?void 0:A.call(n))||C(Oa,null,null),showCancel:_=!0}=e,{cancelButton:L,okButton:k}=n,H=E({onClick:f,size:"small"},M),V=E(E(E({onClick:d},sp(N)),{size:"small"}),T);return C("div",{class:`${m.value}-inner-content`},[C("div",{class:`${m.value}-message`},[R&&C("span",{class:`${m.value}-message-icon`},[R]),C("div",{class:[`${m.value}-message-title`,{[`${m.value}-message-title-only`]:!!F}]},[B])]),F&&C("div",{class:`${m.value}-description`},[F]),C("div",{class:`${m.value}-buttons`},[_?L?L(H):C(dn,H,{default:()=>[P||w.value.cancelText]}):null,k?k(V):C(H0,{buttonProps:E(E({size:"small"},sp(N)),T),actionFn:d,close:c,prefixCls:x.value,quitOnNullishReturnValue:!0,emitEvent:!0},{default:()=>[I||w.value.okText]})])])};return()=>{var S;const{placement:$,overlayClassName:D,trigger:O="click"}=e,A=Zde(e,["placement","overlayClassName","trigger"]),T=pt(A,["title","content","cancelText","okText","onUpdate:open","onConfirm","onCancel","prefixCls"]),M=ge(m.value,D);return y(C(y1,j(j(j({},T),a),{},{trigger:O,placement:$,onOpenChange:v,open:l.value,overlayClassName:M,transitionName:xr(g.value,"zoom-big",e.transitionName),ref:i,"data-popover-inject":!0}),{default:()=>[SL(((S=n.default)===null||S===void 0?void 0:S.call(n))||[],{onKeydown:B=>{p(B)}},!1)],content:b}))}}}),efe=rn(Qde),tfe=["normal","exception","active","success"],fv=()=>({prefixCls:String,type:Ue(),percent:Number,format:Oe(),status:Ue(),showInfo:Pe(),strokeWidth:Number,strokeLinecap:Ue(),strokeColor:jt(),trailColor:String,width:Number,success:We(),gapDegree:Number,gapPosition:Ue(),size:Xe([String,Number,Array]),steps:Number,successPercent:Number,title:String,progressStatus:Ue()});function ki(e){return!e||e<0?0:e>100?100:e}function Mp(e){let{success:t,successPercent:n}=e,r=n;return t&&"progress"in t&&(qt(!1,"Progress","`success.progress` is deprecated. Please use `success.percent` instead."),r=t.progress),t&&"percent"in t&&(r=t.percent),r}function nfe(e){let{percent:t,success:n,successPercent:r}=e;const o=ki(Mp({success:n,successPercent:r}));return[o,ki(ki(t)-o)]}function rfe(e){let{success:t={},strokeColor:n}=e;const{strokeColor:r}=t;return[r||Wl.green,n||null]}const pv=(e,t,n)=>{var r,o,a,i;let l=-1,s=-1;if(t==="step"){const u=n.steps,c=n.strokeWidth;typeof e=="string"||typeof e>"u"?(l=e==="small"?2:14,s=c??8):typeof e=="number"?[l,s]=[e,e]:[l=14,s=8]=e,l*=u}else if(t==="line"){const u=n==null?void 0:n.strokeWidth;typeof e=="string"||typeof e>"u"?s=u||(e==="small"?6:8):typeof e=="number"?[l,s]=[e,e]:[l=-1,s=8]=e}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[l,s]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[l,s]=[e,e]:(l=(o=(r=e[0])!==null&&r!==void 0?r:e[1])!==null&&o!==void 0?o:120,s=(i=(a=e[0])!==null&&a!==void 0?a:e[1])!==null&&i!==void 0?i:120));return{width:l,height:s}};var ofe=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const afe=()=>E(E({},fv()),{strokeColor:jt(),direction:Ue()}),ife=e=>{let t=[];return Object.keys(e).forEach(n=>{const r=parseFloat(n.replace(/%/g,""));isNaN(r)||t.push({key:r,value:e[n]})}),t=t.sort((n,r)=>n.key-r.key),t.map(n=>{let{key:r,value:o}=n;return`${o} ${r}%`}).join(", ")},lfe=(e,t)=>{const{from:n=Wl.blue,to:r=Wl.blue,direction:o=t==="rtl"?"to left":"to right"}=e,a=ofe(e,["from","to","direction"]);if(Object.keys(a).length!==0){const i=ife(a);return{backgroundImage:`linear-gradient(${o}, ${i})`}}return{backgroundImage:`linear-gradient(${o}, ${n}, ${r})`}},sfe=he({compatConfig:{MODE:3},name:"Line",inheritAttrs:!1,props:afe(),setup(e,t){let{slots:n,attrs:r}=t;const o=z(()=>{const{strokeColor:p,direction:v}=e;return p&&typeof p!="string"?lfe(p,v):{backgroundColor:p}}),a=z(()=>e.strokeLinecap==="square"||e.strokeLinecap==="butt"?0:void 0),i=z(()=>e.trailColor?{backgroundColor:e.trailColor}:void 0),l=z(()=>{var p;return(p=e.size)!==null&&p!==void 0?p:[-1,e.strokeWidth||(e.size==="small"?6:8)]}),s=z(()=>pv(l.value,"line",{strokeWidth:e.strokeWidth})),u=z(()=>{const{percent:p}=e;return E({width:`${ki(p)}%`,height:`${s.value.height}px`,borderRadius:a.value},o.value)}),c=z(()=>Mp(e)),d=z(()=>{const{success:p}=e;return{width:`${ki(c.value)}%`,height:`${s.value.height}px`,borderRadius:a.value,backgroundColor:p==null?void 0:p.strokeColor}}),f={width:s.value.width<0?"100%":s.value.width,height:`${s.value.height}px`};return()=>{var p;return C(dt,null,[C("div",j(j({},r),{},{class:[`${e.prefixCls}-outer`,r.class],style:[r.style,f]}),[C("div",{class:`${e.prefixCls}-inner`,style:i.value},[C("div",{class:`${e.prefixCls}-bg`,style:u.value},null),c.value!==void 0?C("div",{class:`${e.prefixCls}-success-bg`,style:d.value},null):null])]),(p=n.default)===null||p===void 0?void 0:p.call(n)])}}}),ufe={percent:0,prefixCls:"vc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1},cfe=e=>{const t=be(null);return Sr(()=>{const n=Date.now();let r=!1;e.value.forEach(o=>{const a=(o==null?void 0:o.$el)||o;if(!a)return;r=!0;const i=a.style;i.transitionDuration=".3s, .3s, .3s, .06s",t.value&&n-t.value<100&&(i.transitionDuration="0s, 0s")}),r&&(t.value=Date.now())}),e},dfe={gapDegree:Number,gapPosition:{type:String},percent:{type:[Array,Number]},prefixCls:String,strokeColor:{type:[Object,String,Array]},strokeLinecap:{type:String},strokeWidth:Number,trailColor:String,trailWidth:Number,transition:String};var ffe=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let K3=0;function q3(e){return+e.replace("%","")}function G3(e){return Array.isArray(e)?e:[e]}function X3(e,t,n,r){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,a=arguments.length>5?arguments[5]:void 0;const i=50-r/2;let l=0,s=-i,u=0,c=-2*i;switch(a){case"left":l=-i,s=0,u=2*i,c=0;break;case"right":l=i,s=0,u=-2*i,c=0;break;case"bottom":s=i,c=2*i;break}const d=`M 50,50 m ${l},${s}
- a ${i},${i} 0 1 1 ${u},${-c}
- a ${i},${i} 0 1 1 ${-u},${c}`,f=Math.PI*2*i,p={stroke:n,strokeDasharray:`${t/100*(f-o)}px ${f}px`,strokeDashoffset:`-${o/2+e/100*(f-o)}px`,transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s"};return{pathString:d,pathStyle:p}}const pfe=he({compatConfig:{MODE:3},name:"VCCircle",props:at(dfe,ufe),setup(e){K3+=1;const t=be(K3),n=z(()=>G3(e.percent)),r=z(()=>G3(e.strokeColor)),[o,a]=ex();cfe(a);const i=()=>{const{prefixCls:l,strokeWidth:s,strokeLinecap:u,gapDegree:c,gapPosition:d}=e;let f=0;return n.value.map((p,v)=>{const m=r.value[v]||r.value[r.value.length-1],h=Object.prototype.toString.call(m)==="[object Object]"?`url(#${l}-gradient-${t.value})`:"",{pathString:g,pathStyle:x}=X3(f,p,m,s,c,d);f+=p;const y={key:v,d:g,stroke:h,"stroke-linecap":u,"stroke-width":s,opacity:p===0?0:1,"fill-opacity":"0",class:`${l}-circle-path`,style:x};return C("path",j({ref:o(v)},y),null)})};return()=>{const{prefixCls:l,strokeWidth:s,trailWidth:u,gapDegree:c,gapPosition:d,trailColor:f,strokeLinecap:p,strokeColor:v}=e,m=ffe(e,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","strokeColor"]),{pathString:h,pathStyle:g}=X3(0,100,f,s,c,d);delete m.percent;const x=r.value.find(w=>Object.prototype.toString.call(w)==="[object Object]"),y={d:h,stroke:f,"stroke-linecap":p,"stroke-width":u||s,"fill-opacity":"0",class:`${l}-circle-trail`,style:g};return C("svg",j({class:`${l}-circle`,viewBox:"0 0 100 100"},m),[x&&C("defs",null,[C("linearGradient",{id:`${l}-gradient-${t.value}`,x1:"100%",y1:"0%",x2:"0%",y2:"0%"},[Object.keys(x).sort((w,b)=>q3(w)-q3(b)).map((w,b)=>C("stop",{key:b,offset:w,"stop-color":x[w]},null))])]),C("path",y,null),i().reverse()])}}}),mfe=()=>E(E({},fv()),{strokeColor:jt()}),vfe=3,hfe=e=>vfe/e*100,gfe=he({compatConfig:{MODE:3},name:"Circle",inheritAttrs:!1,props:at(mfe(),{trailColor:null}),setup(e,t){let{slots:n,attrs:r}=t;const o=z(()=>{var m;return(m=e.width)!==null&&m!==void 0?m:120}),a=z(()=>{var m;return(m=e.size)!==null&&m!==void 0?m:[o.value,o.value]}),i=z(()=>pv(a.value,"circle")),l=z(()=>{if(e.gapDegree||e.gapDegree===0)return e.gapDegree;if(e.type==="dashboard")return 75}),s=z(()=>({width:`${i.value.width}px`,height:`${i.value.height}px`,fontSize:`${i.value.width*.15+6}px`})),u=z(()=>{var m;return(m=e.strokeWidth)!==null&&m!==void 0?m:Math.max(hfe(i.value.width),6)}),c=z(()=>e.gapPosition||e.type==="dashboard"&&"bottom"||void 0),d=z(()=>nfe(e)),f=z(()=>Object.prototype.toString.call(e.strokeColor)==="[object Object]"),p=z(()=>rfe({success:e.success,strokeColor:e.strokeColor})),v=z(()=>({[`${e.prefixCls}-inner`]:!0,[`${e.prefixCls}-circle-gradient`]:f.value}));return()=>{var m;const h=C(pfe,{percent:d.value,strokeWidth:u.value,trailWidth:u.value,strokeColor:p.value,strokeLinecap:e.strokeLinecap,trailColor:e.trailColor,prefixCls:e.prefixCls,gapDegree:l.value,gapPosition:c.value},null);return C("div",j(j({},r),{},{class:[v.value,r.class],style:[r.style,s.value]}),[i.value.width<=20?C(Br,null,{default:()=>[C("span",null,[h])],title:n.default}):C(dt,null,[h,(m=n.default)===null||m===void 0?void 0:m.call(n)])])}}}),yfe=()=>E(E({},fv()),{steps:Number,strokeColor:Xe(),trailColor:String}),bfe=he({compatConfig:{MODE:3},name:"Steps",props:yfe(),setup(e,t){let{slots:n}=t;const r=z(()=>Math.round(e.steps*((e.percent||0)/100))),o=z(()=>{var l;return(l=e.size)!==null&&l!==void 0?l:[e.size==="small"?2:14,e.strokeWidth||8]}),a=z(()=>pv(o.value,"step",{steps:e.steps,strokeWidth:e.strokeWidth||8})),i=z(()=>{const{steps:l,strokeColor:s,trailColor:u,prefixCls:c}=e,d=[];for(let f=0;f<l;f+=1){const p=Array.isArray(s)?s[f]:s,v={[`${c}-steps-item`]:!0,[`${c}-steps-item-active`]:f<=r.value-1};d.push(C("div",{key:f,class:v,style:{backgroundColor:f<=r.value-1?p:u,width:`${a.value.width/l}px`,height:`${a.value.height}px`}},null))}return d});return()=>{var l;return C("div",{class:`${e.prefixCls}-steps-outer`},[i.value,(l=n.default)===null||l===void 0?void 0:l.call(n)])}}}),xfe=new ft("antProgressActive",{"0%":{transform:"translateX(-100%) scaleX(0)",opacity:.1},"20%":{transform:"translateX(-100%) scaleX(0)",opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}}),wfe=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:E(E({},rt(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize,marginInlineEnd:e.marginXS,marginBottom:e.marginXS},[`${t}-outer`]:{display:"inline-block",width:"100%"},[`&${t}-show-info`]:{[`${t}-outer`]:{marginInlineEnd:`calc(-2em - ${e.marginXS}px)`,paddingInlineEnd:`calc(2em + ${e.paddingXS}px)`}},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:e.progressRemainingColor,borderRadius:e.progressLineRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorInfo}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",backgroundColor:e.colorInfo,borderRadius:e.progressLineRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",width:"2em",marginInlineStart:e.marginXS,color:e.progressInfoTextColor,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.progressLineRadius,opacity:0,animationName:xfe,animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},Sfe=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.progressRemainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.colorText,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[n]:{fontSize:`${e.fontSize/e.fontSizeSM}em`}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},Cfe=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.progressRemainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.colorInfo}}}}}},$fe=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},Efe=nt("Progress",e=>{const t=e.marginXXS/2,n=qe(e,{progressLineRadius:100,progressInfoTextColor:e.colorText,progressDefaultColor:e.colorInfo,progressRemainingColor:e.colorFillSecondary,progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[wfe(n),Sfe(n),Cfe(n),$fe(n)]});var Dfe=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Afe=he({compatConfig:{MODE:3},name:"AProgress",inheritAttrs:!1,props:at(fv(),{type:"line",percent:0,showInfo:!0,trailColor:null,size:"default",strokeLinecap:"round"}),slots:Object,setup(e,t){let{slots:n,attrs:r}=t;const{prefixCls:o,direction:a}=He("progress",e),[i,l]=Efe(o),s=z(()=>Array.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor),u=z(()=>{const{percent:v=0}=e,m=Mp(e);return parseInt(m!==void 0?m.toString():v.toString(),10)}),c=z(()=>{const{status:v}=e;return!tfe.includes(v)&&u.value>=100?"success":v||"normal"}),d=z(()=>{const{type:v,showInfo:m,size:h}=e,g=o.value;return{[g]:!0,[`${g}-inline-circle`]:v==="circle"&&pv(h,"circle").width<=20,[`${g}-${v==="dashboard"&&"circle"||v}`]:!0,[`${g}-status-${c.value}`]:!0,[`${g}-show-info`]:m,[`${g}-${h}`]:h,[`${g}-rtl`]:a.value==="rtl",[l.value]:!0}}),f=z(()=>typeof e.strokeColor=="string"||Array.isArray(e.strokeColor)?e.strokeColor:void 0),p=()=>{const{showInfo:v,format:m,type:h,percent:g,title:x}=e,y=Mp(e);if(!v)return null;let w;const b=m||(n==null?void 0:n.format)||($=>`${$}%`),S=h==="line";return m||n!=null&&n.format||c.value!=="exception"&&c.value!=="success"?w=b(ki(g),ki(y)):c.value==="exception"?w=S?C($r,null,null):C(Hr,null,null):c.value==="success"&&(w=S?C(Aa,null,null):C(Mm,null,null)),C("span",{class:`${o.value}-text`,title:x===void 0&&typeof w=="string"?w:void 0},[w])};return()=>{const{type:v,steps:m,title:h}=e,{class:g}=r,x=Dfe(r,["class"]),y=p();let w;return v==="line"?w=m?C(bfe,j(j({},e),{},{strokeColor:f.value,prefixCls:o.value,steps:m}),{default:()=>[y]}):C(sfe,j(j({},e),{},{strokeColor:s.value,prefixCls:o.value,direction:a.value}),{default:()=>[y]}):(v==="circle"||v==="dashboard")&&(w=C(gfe,j(j({},e),{},{prefixCls:o.value,strokeColor:s.value,progressStatus:c.value}),{default:()=>[y]})),i(C("div",j(j({role:"progressbar"},x),{},{class:[d.value,g],title:h}),[w]))}}}),gw=rn(Afe);function Ofe(e){let t=e.pageXOffset;const n="scrollLeft";if(typeof t!="number"){const r=e.document;t=r.documentElement[n],typeof t!="number"&&(t=r.body[n])}return t}function Tfe(e){let t,n;const r=e.ownerDocument,{body:o}=r,a=r&&r.documentElement,i=e.getBoundingClientRect();return t=i.left,n=i.top,t-=a.clientLeft||o.clientLeft||0,n-=a.clientTop||o.clientTop||0,{left:t,top:n}}function Mfe(e){const t=Tfe(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=Ofe(r),t.left}const Nfe={value:Number,index:Number,prefixCls:String,allowHalf:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},character:Z.any,characterRender:Function,focused:{type:Boolean,default:void 0},count:Number,onClick:Function,onHover:Function},Pfe=he({compatConfig:{MODE:3},name:"Star",inheritAttrs:!1,props:Nfe,emits:["hover","click"],setup(e,t){let{emit:n}=t;const r=l=>{const{index:s}=e;n("hover",l,s)},o=l=>{const{index:s}=e;n("click",l,s)},a=l=>{const{index:s}=e;l.keyCode===13&&n("click",l,s)},i=z(()=>{const{prefixCls:l,index:s,value:u,allowHalf:c,focused:d}=e,f=s+1;let p=l;return u===0&&s===0&&d?p+=` ${l}-focused`:c&&u+.5>=f&&u<f?(p+=` ${l}-half ${l}-active`,d&&(p+=` ${l}-focused`)):(p+=f<=u?` ${l}-full`:` ${l}-zero`,f===u&&d&&(p+=` ${l}-focused`)),p});return()=>{const{disabled:l,prefixCls:s,characterRender:u,character:c,index:d,count:f,value:p}=e,v=typeof c=="function"?c({disabled:l,prefixCls:s,index:d,count:f,value:p}):c;let m=C("li",{class:i.value},[C("div",{onClick:l?null:o,onKeydown:l?null:a,onMousemove:l?null:r,role:"radio","aria-checked":p>d?"true":"false","aria-posinset":d+1,"aria-setsize":f,tabindex:l?-1:0},[C("div",{class:`${s}-first`},[v]),C("div",{class:`${s}-second`},[v])])]);return u&&(m=u(m,e)),m}}}),Ife=e=>{const{componentCls:t}=e;return{[`${t}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:e.marginXS},"> div":{transition:`all ${e.motionDurationMid}, outline 0s`,"&:hover":{transform:e.rateStarHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${e.lineWidth}px dashed ${e.rateStarColor}`,transform:e.rateStarHoverScale}},"&-first, &-second":{color:e.defaultColor,transition:`all ${e.motionDurationMid}`,userSelect:"none",[e.iconCls]:{verticalAlign:"middle"}},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${t}-star-first, &-half ${t}-star-second`]:{opacity:1},[`&-half ${t}-star-first, &-full ${t}-star-second`]:{color:"inherit"}}}},_fe=e=>({[`&-rtl${e.componentCls}`]:{direction:"rtl"}}),Bfe=e=>{const{componentCls:t}=e;return{[t]:E(E(E(E(E({},rt(e)),{display:"inline-block",margin:0,padding:0,color:e.rateStarColor,fontSize:e.rateStarSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${t} ${t}-star`]:{cursor:"default","&:hover":{transform:"scale(1)"}}}),Ife(e)),{[`+ ${t}-text`]:{display:"inline-block",marginInlineStart:e.marginXS,fontSize:e.fontSize}}),_fe(e))}},Ffe=nt("Rate",e=>{const{colorFillContent:t}=e,n=qe(e,{rateStarColor:e["yellow-6"],rateStarSize:e.controlHeightLG*.5,rateStarHoverScale:"scale(1.1)",defaultColor:t});return[Bfe(n)]}),Rfe=()=>({prefixCls:String,count:Number,value:Number,allowHalf:{type:Boolean,default:void 0},allowClear:{type:Boolean,default:void 0},tooltips:Array,disabled:{type:Boolean,default:void 0},character:Z.any,autofocus:{type:Boolean,default:void 0},tabindex:Z.oneOfType([Z.number,Z.string]),direction:String,id:String,onChange:Function,onHoverChange:Function,"onUpdate:value":Function,onFocus:Function,onBlur:Function,onKeydown:Function}),zfe=he({compatConfig:{MODE:3},name:"ARate",inheritAttrs:!1,props:at(Rfe(),{value:0,count:5,allowHalf:!1,allowClear:!0,tabindex:0,direction:"ltr"}),setup(e,t){let{slots:n,attrs:r,emit:o,expose:a}=t;const{prefixCls:i,direction:l}=He("rate",e),[s,u]=Ffe(i),c=Cn(),d=be(),[f,p]=ex(),v=_t({value:e.value,focused:!1,cleanedValue:null,hoverValue:void 0});Ne(()=>e.value,()=>{v.value=e.value});const m=T=>yr(p.value.get(T)),h=(T,M)=>{const B=l.value==="rtl";let F=T+1;if(e.allowHalf){const P=m(T),I=Mfe(P),N=P.clientWidth;(B&&M-I>N/2||!B&&M-I<N/2)&&(F-=.5)}return F},g=T=>{e.value===void 0&&(v.value=T),o("update:value",T),o("change",T),c.onFieldChange()},x=(T,M)=>{const B=h(M,T.pageX);B!==v.cleanedValue&&(v.hoverValue=B,v.cleanedValue=null),o("hoverChange",B)},y=()=>{v.hoverValue=void 0,v.cleanedValue=null,o("hoverChange",void 0)},w=(T,M)=>{const{allowClear:B}=e,F=h(M,T.pageX);let P=!1;B&&(P=F===v.value),y(),g(P?0:F),v.cleanedValue=P?F:null},b=T=>{v.focused=!0,o("focus",T)},S=T=>{v.focused=!1,o("blur",T),c.onFieldBlur()},$=T=>{const{keyCode:M}=T,{count:B,allowHalf:F}=e,P=l.value==="rtl";M===_e.RIGHT&&v.value<B&&!P?(F?v.value+=.5:v.value+=1,g(v.value),T.preventDefault()):M===_e.LEFT&&v.value>0&&!P||M===_e.RIGHT&&v.value>0&&P?(F?v.value-=.5:v.value-=1,g(v.value),T.preventDefault()):M===_e.LEFT&&v.value<B&&P&&(F?v.value+=.5:v.value+=1,g(v.value),T.preventDefault()),o("keydown",T)},D=()=>{e.disabled||d.value.focus()};a({focus:D,blur:()=>{e.disabled||d.value.blur()}}),Qe(()=>{const{autofocus:T,disabled:M}=e;T&&!M&&D()});const A=(T,M)=>{let{index:B}=M;const{tooltips:F}=e;return F?C(Br,{title:F[B]},{default:()=>[T]}):T};return()=>{const{count:T,allowHalf:M,disabled:B,tabindex:F,id:P=c.id.value}=e,{class:I,style:N}=r,R=[],_=B?`${i.value}-disabled`:"",L=e.character||n.character||(()=>C(xie,null,null));for(let H=0;H<T;H++)R.push(C(Pfe,{ref:f(H),key:H,index:H,count:T,disabled:B,prefixCls:`${i.value}-star`,allowHalf:M,value:v.hoverValue===void 0?v.value:v.hoverValue,onClick:w,onHover:x,character:L,characterRender:A,focused:v.focused},null));const k=ge(i.value,_,I,{[u.value]:!0,[`${i.value}-rtl`]:l.value==="rtl"});return s(C("ul",j(j({},r),{},{id:P,class:k,style:N,onMouseleave:B?null:y,tabindex:B?-1:F,onFocus:B?null:b,onBlur:B?null:S,onKeydown:B?null:$,ref:d,role:"radiogroup"}),[R]))}}}),Lfe=rn(zfe),kfe=()=>C("svg",{width:"252",height:"294"},[C("defs",null,[C("path",{d:"M0 .387h251.772v251.772H0z"},null)]),C("g",{fill:"none","fill-rule":"evenodd"},[C("g",{transform:"translate(0 .012)"},[C("mask",{fill:"#fff"},null),C("path",{d:"M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321",fill:"#E4EBF7",mask:"url(#b)"},null)]),C("path",{d:"M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66",fill:"#FFF"},null),C("path",{d:"M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",stroke:"#FFF","stroke-width":"2"},null),C("path",{d:"M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175",fill:"#FFF"},null),C("path",{d:"M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932",fill:"#FFF"},null),C("path",{d:"M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",stroke:"#FFF","stroke-width":"2"},null),C("path",{d:"M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382",fill:"#FFF"},null),C("path",{d:"M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z",stroke:"#FFF","stroke-width":"2"},null),C("path",{stroke:"#FFF","stroke-width":"2",d:"M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39"},null),C("path",{d:"M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742",fill:"#FFF"},null),C("path",{d:"M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48",fill:"#1890FF"},null),C("path",{d:"M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894",fill:"#FFF"},null),C("path",{d:"M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88",fill:"#FFB594"},null),C("path",{d:"M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624",fill:"#FFC6A0"},null),C("path",{d:"M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682",fill:"#FFF"},null),C("path",{d:"M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573",fill:"#CBD1D1"},null),C("path",{d:"M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z",fill:"#2B0849"},null),C("path",{d:"M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558",fill:"#A4AABA"},null),C("path",{d:"M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z",fill:"#CBD1D1"},null),C("path",{d:"M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062",fill:"#2B0849"},null),C("path",{d:"M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15",fill:"#A4AABA"},null),C("path",{d:"M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165",fill:"#7BB2F9"},null),C("path",{d:"M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M107.275 222.1s2.773-1.11 6.102-3.884",stroke:"#648BD8","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038",fill:"#192064"},null),C("path",{d:"M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81",fill:"#FFF"},null),C("path",{d:"M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642",fill:"#192064"},null),C("path",{d:"M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268",fill:"#FFC6A0"},null),C("path",{d:"M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456",fill:"#FFC6A0"},null),C("path",{d:"M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z",fill:"#520038"},null),C("path",{d:"M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254",fill:"#552950"},null),C("path",{stroke:"#DB836E","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round",d:"M110.13 74.84l-.896 1.61-.298 4.357h-2.228"},null),C("path",{d:"M110.846 74.481s1.79-.716 2.506.537",stroke:"#5C2552","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67",stroke:"#DB836E","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M103.287 72.93s1.83 1.113 4.137.954",stroke:"#5C2552","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639",stroke:"#DB836E","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206",stroke:"#E4EBF7","stroke-width":"1.101","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M129.405 122.865s-5.272 7.403-9.422 10.768",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M119.306 107.329s.452 4.366-2.127 32.062",stroke:"#E4EBF7","stroke-width":"1.101","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01",fill:"#F2D7AD"},null),C("path",{d:"M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",fill:"#F4D19D"},null),C("path",{d:"M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z",fill:"#F2D7AD"},null),C("path",{fill:"#CC9B6E",d:"M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"},null),C("path",{d:"M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83",fill:"#F4D19D"},null),C("path",{fill:"#CC9B6E",d:"M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z"},null),C("path",{fill:"#CC9B6E",d:"M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z"},null),C("path",{d:"M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238",fill:"#FFC6A0"},null),C("path",{d:"M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044",stroke:"#DB836E","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617",stroke:"#DB836E","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754",stroke:"#DB836E","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647",fill:"#5BA02E"},null),C("path",{d:"M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647",fill:"#92C110"},null),C("path",{d:"M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187",fill:"#F2D7AD"},null),C("path",{d:"M88.979 89.48s7.776 5.384 16.6 2.842",stroke:"#E4EBF7","stroke-width":"1.101","stroke-linecap":"round","stroke-linejoin":"round"},null)])]),Hfe=kfe,jfe=()=>C("svg",{width:"254",height:"294"},[C("defs",null,[C("path",{d:"M0 .335h253.49v253.49H0z"},null),C("path",{d:"M0 293.665h253.49V.401H0z"},null)]),C("g",{fill:"none","fill-rule":"evenodd"},[C("g",{transform:"translate(0 .067)"},[C("mask",{fill:"#fff"},null),C("path",{d:"M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134",fill:"#E4EBF7",mask:"url(#b)"},null)]),C("path",{d:"M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671",fill:"#FFF"},null),C("path",{d:"M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",stroke:"#FFF","stroke-width":"2"},null),C("path",{d:"M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238",fill:"#FFF"},null),C("path",{d:"M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775",fill:"#FFF"},null),C("path",{d:"M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68",fill:"#FF603B"},null),C("path",{d:"M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733",fill:"#FFF"},null),C("path",{d:"M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487",fill:"#FFB594"},null),C("path",{d:"M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235",fill:"#FFF"},null),C("path",{d:"M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246",fill:"#FFB594"},null),C("path",{d:"M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508",fill:"#FFC6A0"},null),C("path",{d:"M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z",fill:"#520038"},null),C("path",{d:"M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26",fill:"#552950"},null),C("path",{stroke:"#DB836E","stroke-width":"1.063","stroke-linecap":"round","stroke-linejoin":"round",d:"M99.206 73.644l-.9 1.62-.3 4.38h-2.24"},null),C("path",{d:"M99.926 73.284s1.8-.72 2.52.54",stroke:"#5C2552","stroke-width":"1.117","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68",stroke:"#DB836E","stroke-width":"1.117","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M92.326 71.724s1.84 1.12 4.16.96",stroke:"#5C2552","stroke-width":"1.117","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954",stroke:"#DB836E","stroke-width":"1.063","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044",stroke:"#E4EBF7","stroke-width":"1.136","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583",fill:"#FFF"},null),C("path",{d:"M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75",fill:"#FFC6A0"},null),C("path",{d:"M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713",fill:"#FFC6A0"},null),C("path",{d:"M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51",stroke:"#E4EBF7","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16",fill:"#FFC6A0"},null),C("path",{d:"M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575",fill:"#FFF"},null),C("path",{d:"M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47",fill:"#CBD1D1"},null),C("path",{d:"M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z",fill:"#2B0849"},null),C("path",{d:"M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671",fill:"#A4AABA"},null),C("path",{d:"M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z",fill:"#CBD1D1"},null),C("path",{d:"M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162",fill:"#2B0849"},null),C("path",{d:"M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156",fill:"#A4AABA"},null),C("path",{d:"M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69",fill:"#7BB2F9"},null),C("path",{d:"M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034",stroke:"#648BD8","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M96.973 219.373s2.882-1.153 6.34-4.034",stroke:"#648BD8","stroke-width":"1.032","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07",stroke:"#648BD8","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62",fill:"#192064"},null),C("path",{d:"M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843",fill:"#FFF"},null),C("path",{d:"M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668",fill:"#192064"},null),C("path",{d:"M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513",stroke:"#648BD8","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72",stroke:"#E4EBF7","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69",fill:"#FFC6A0"},null),C("path",{d:"M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593",stroke:"#DB836E","stroke-width":".774","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762",stroke:"#E59788","stroke-width":".774","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594",fill:"#FFC6A0"},null),C("path",{d:"M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12",stroke:"#E59788","stroke-width":".774","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M109.278 112.533s3.38-3.613 7.575-4.662",stroke:"#E4EBF7","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M107.375 123.006s9.697-2.745 11.445-.88",stroke:"#E59788","stroke-width":".774","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955",stroke:"#BFCDDD","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01",fill:"#A3B4C6"},null),C("path",{d:"M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813",fill:"#A3B4C6"},null),C("mask",{fill:"#fff"},null),C("path",{fill:"#A3B4C6",mask:"url(#d)",d:"M154.098 190.096h70.513v-84.617h-70.513z"},null),C("path",{d:"M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208",fill:"#BFCDDD",mask:"url(#d)"},null),C("path",{d:"M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"},null),C("path",{d:"M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209",fill:"#BFCDDD",mask:"url(#d)"},null),C("path",{d:"M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751",stroke:"#7C90A5","stroke-width":"1.124","stroke-linecap":"round","stroke-linejoin":"round",mask:"url(#d)"},null),C("path",{d:"M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"},null),C("path",{d:"M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407",fill:"#BFCDDD",mask:"url(#d)"},null),C("path",{d:"M177.259 207.217v11.52M201.05 207.217v11.52",stroke:"#A3B4C6","stroke-width":"1.124","stroke-linecap":"round","stroke-linejoin":"round",mask:"url(#d)"},null),C("path",{d:"M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422",fill:"#5BA02E",mask:"url(#d)"},null),C("path",{d:"M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423",fill:"#92C110",mask:"url(#d)"},null),C("path",{d:"M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209",fill:"#F2D7AD",mask:"url(#d)"},null)])]),Vfe=jfe,Wfe=()=>C("svg",{width:"251",height:"294"},[C("g",{fill:"none","fill-rule":"evenodd"},[C("path",{d:"M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023",fill:"#E4EBF7"},null),C("path",{d:"M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65",fill:"#FFF"},null),C("path",{d:"M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",stroke:"#FFF","stroke-width":"2"},null),C("path",{d:"M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126",fill:"#FFF"},null),C("path",{d:"M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873",fill:"#FFF"},null),C("path",{d:"M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",stroke:"#FFF","stroke-width":"2"},null),C("path",{d:"M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375",fill:"#FFF"},null),C("path",{d:"M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z",stroke:"#FFF","stroke-width":"2"},null),C("path",{stroke:"#FFF","stroke-width":"2",d:"M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668"},null),C("path",{d:"M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321",fill:"#A26EF4"},null),C("path",{d:"M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734",fill:"#FFF"},null),C("path",{d:"M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717",fill:"#FFF"},null),C("path",{d:"M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61",fill:"#5BA02E"},null),C("path",{d:"M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611",fill:"#92C110"},null),C("path",{d:"M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17",fill:"#F2D7AD"},null),C("path",{d:"M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085",fill:"#FFF"},null),C("path",{d:"M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233",fill:"#FFC6A0"},null),C("path",{d:"M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367",fill:"#FFB594"},null),C("path",{d:"M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95",fill:"#FFC6A0"},null),C("path",{d:"M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929",fill:"#FFF"},null),C("path",{d:"M78.18 94.656s.911 7.41-4.914 13.078",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437",stroke:"#E4EBF7","stroke-width":".932","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z",fill:"#FFC6A0"},null),C("path",{d:"M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91",fill:"#FFB594"},null),C("path",{d:"M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103",fill:"#5C2552"},null),C("path",{d:"M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145",fill:"#FFC6A0"},null),C("path",{stroke:"#DB836E","stroke-width":"1.145","stroke-linecap":"round","stroke-linejoin":"round",d:"M100.843 77.099l1.701-.928-1.015-4.324.674-1.406"},null),C("path",{d:"M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32",fill:"#552950"},null),C("path",{d:"M91.132 86.786s5.269 4.957 12.679 2.327",stroke:"#DB836E","stroke-width":"1.145","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25",fill:"#DB836E"},null),C("path",{d:"M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073",stroke:"#5C2552","stroke-width":"1.526","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254",stroke:"#DB836E","stroke-width":"1.145","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M66.508 86.763s-1.598 8.83-6.697 14.078",stroke:"#E4EBF7","stroke-width":"1.114","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M128.31 87.934s3.013 4.121 4.06 11.785",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M64.09 84.816s-6.03 9.912-13.607 9.903",stroke:"#DB836E","stroke-width":".795","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73",fill:"#FFC6A0"},null),C("path",{d:"M130.532 85.488s4.588 5.757 11.619 6.214",stroke:"#DB836E","stroke-width":".75","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M121.708 105.73s-.393 8.564-1.34 13.612",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M115.784 161.512s-3.57-1.488-2.678-7.14",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68",fill:"#CBD1D1"},null),C("path",{d:"M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z",fill:"#2B0849"},null),C("path",{d:"M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62",fill:"#A4AABA"},null),C("path",{d:"M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z",fill:"#CBD1D1"},null),C("path",{d:"M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078",fill:"#2B0849"},null),C("path",{d:"M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15",fill:"#A4AABA"},null),C("path",{d:"M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954",fill:"#7BB2F9"},null),C("path",{d:"M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M108.459 220.905s2.759-1.104 6.07-3.863",stroke:"#648BD8","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),C("path",{d:"M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017",fill:"#192064"},null),C("path",{d:"M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806",fill:"#FFF"},null),C("path",{d:"M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64",fill:"#192064"},null),C("path",{d:"M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null)])]),Ufe=Wfe,Kfe=e=>{const{componentCls:t,lineHeightHeading3:n,iconCls:r,padding:o,paddingXL:a,paddingXS:i,paddingLG:l,marginXS:s,lineHeight:u}=e;return{[t]:{padding:`${l*2}px ${a}px`,"&-rtl":{direction:"rtl"}},[`${t} ${t}-image`]:{width:e.imageWidth,height:e.imageHeight,margin:"auto"},[`${t} ${t}-icon`]:{marginBottom:l,textAlign:"center",[`& > ${r}`]:{fontSize:e.resultIconFontSize}},[`${t} ${t}-title`]:{color:e.colorTextHeading,fontSize:e.resultTitleFontSize,lineHeight:n,marginBlock:s,textAlign:"center"},[`${t} ${t}-subtitle`]:{color:e.colorTextDescription,fontSize:e.resultSubtitleFontSize,lineHeight:u,textAlign:"center"},[`${t} ${t}-content`]:{marginTop:l,padding:`${l}px ${o*2.5}px`,backgroundColor:e.colorFillAlter},[`${t} ${t}-extra`]:{margin:e.resultExtraMargin,textAlign:"center","& > *":{marginInlineEnd:i,"&:last-child":{marginInlineEnd:0}}}}},qfe=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-success ${t}-icon > ${n}`]:{color:e.resultSuccessIconColor},[`${t}-error ${t}-icon > ${n}`]:{color:e.resultErrorIconColor},[`${t}-info ${t}-icon > ${n}`]:{color:e.resultInfoIconColor},[`${t}-warning ${t}-icon > ${n}`]:{color:e.resultWarningIconColor}}},Gfe=e=>[Kfe(e),qfe(e)],Xfe=e=>Gfe(e),Yfe=nt("Result",e=>{const{paddingLG:t,fontSizeHeading3:n}=e,r=e.fontSize,o=`${t}px 0 0 0`,a=e.colorInfo,i=e.colorError,l=e.colorSuccess,s=e.colorWarning,u=qe(e,{resultTitleFontSize:n,resultSubtitleFontSize:r,resultIconFontSize:n*3,resultExtraMargin:o,resultInfoIconColor:a,resultErrorIconColor:i,resultSuccessIconColor:l,resultWarningIconColor:s});return[Xfe(u)]},{imageWidth:250,imageHeight:295}),Zfe={success:Aa,error:$r,info:Oa,warning:Bie},Ac={404:Hfe,500:Vfe,403:Ufe},Jfe=Object.keys(Ac),Qfe=()=>({prefixCls:String,icon:Z.any,status:{type:[Number,String],default:"info"},title:Z.any,subTitle:Z.any,extra:Z.any}),epe=(e,t)=>{let{status:n,icon:r}=t;if(Jfe.includes(`${n}`)){const i=Ac[n];return C("div",{class:`${e}-icon ${e}-image`},[C(i,null,null)])}const o=Zfe[n],a=r||C(o,null,null);return C("div",{class:`${e}-icon`},[a])},tpe=(e,t)=>t&&C("div",{class:`${e}-extra`},[t]),Hi=he({compatConfig:{MODE:3},name:"AResult",inheritAttrs:!1,props:Qfe(),slots:Object,setup(e,t){let{slots:n,attrs:r}=t;const{prefixCls:o,direction:a}=He("result",e),[i,l]=Yfe(o),s=z(()=>ge(o.value,l.value,`${o.value}-${e.status}`,{[`${o.value}-rtl`]:a.value==="rtl"}));return()=>{var u,c,d,f,p,v,m,h;const g=(u=e.title)!==null&&u!==void 0?u:(c=n.title)===null||c===void 0?void 0:c.call(n),x=(d=e.subTitle)!==null&&d!==void 0?d:(f=n.subTitle)===null||f===void 0?void 0:f.call(n),y=(p=e.icon)!==null&&p!==void 0?p:(v=n.icon)===null||v===void 0?void 0:v.call(n),w=(m=e.extra)!==null&&m!==void 0?m:(h=n.extra)===null||h===void 0?void 0:h.call(n),b=o.value;return i(C("div",j(j({},r),{},{class:[s.value,r.class]}),[epe(b,{status:e.status,icon:y}),C("div",{class:`${b}-title`},[g]),x&&C("div",{class:`${b}-subtitle`},[x]),tpe(b,w),n.default&&C("div",{class:`${b}-content`},[n.default()])]))}}});Hi.PRESENTED_IMAGE_403=Ac[403];Hi.PRESENTED_IMAGE_404=Ac[404];Hi.PRESENTED_IMAGE_500=Ac[500];Hi.install=function(e){return e.component(Hi.name,Hi),e};const npe=Hi,rpe=rn(px),U6=(e,t)=>{let{attrs:n}=t;const{included:r,vertical:o,style:a,class:i}=n;let{length:l,offset:s,reverse:u}=n;l<0&&(u=!u,l=Math.abs(l),s=100-s);const c=o?{[u?"top":"bottom"]:`${s}%`,[u?"bottom":"top"]:"auto",height:`${l}%`}:{[u?"right":"left"]:`${s}%`,[u?"left":"right"]:"auto",width:`${l}%`},d=E(E({},a),c);return r?C("div",{class:i,style:d},null):null};U6.inheritAttrs=!1;const K6=U6,ope=(e,t,n,r,o,a)=>{Jt();const i=Object.keys(t).map(parseFloat).sort((l,s)=>l-s);if(n&&r)for(let l=o;l<=a;l+=r)i.indexOf(l)===-1&&i.push(l);return i},q6=(e,t)=>{let{attrs:n}=t;const{prefixCls:r,vertical:o,reverse:a,marks:i,dots:l,step:s,included:u,lowerBound:c,upperBound:d,max:f,min:p,dotStyle:v,activeDotStyle:m}=n,h=f-p,g=ope(o,i,l,s,p,f).map(x=>{const y=`${Math.abs(x-p)/h*100}%`,w=!u&&x===d||u&&x<=d&&x>=c;let b=o?E(E({},v),{[a?"top":"bottom"]:y}):E(E({},v),{[a?"right":"left"]:y});w&&(b=E(E({},b),m));const S=ge({[`${r}-dot`]:!0,[`${r}-dot-active`]:w,[`${r}-dot-reverse`]:a});return C("span",{class:S,style:b,key:x},null)});return C("div",{class:`${r}-step`},[g])};q6.inheritAttrs=!1;const ape=q6,G6=(e,t)=>{let{attrs:n,slots:r}=t;const{class:o,vertical:a,reverse:i,marks:l,included:s,upperBound:u,lowerBound:c,max:d,min:f,onClickLabel:p}=n,v=Object.keys(l),m=r.mark,h=d-f,g=v.map(parseFloat).sort((x,y)=>x-y).map(x=>{const y=typeof l[x]=="function"?l[x]():l[x],w=typeof y=="object"&&!hn(y);let b=w?y.label:y;if(!b&&b!==0)return null;m&&(b=m({point:x,label:b}));const S=!s&&x===u||s&&x<=u&&x>=c,$=ge({[`${o}-text`]:!0,[`${o}-text-active`]:S}),D={marginBottom:"-50%",[i?"top":"bottom"]:`${(x-f)/h*100}%`},O={transform:`translateX(${i?"50%":"-50%"})`,msTransform:`translateX(${i?"50%":"-50%"})`,[i?"right":"left"]:`${(x-f)/h*100}%`},A=a?D:O,T=w?E(E({},A),y.style):A,M={[An?"onTouchstartPassive":"onTouchstart"]:B=>p(B,x)};return C("span",j({class:$,style:T,key:x,onMousedown:B=>p(B,x)},M),[b])});return C("div",{class:o},[g])};G6.inheritAttrs=!1;const ipe=G6,X6=he({compatConfig:{MODE:3},name:"Handle",inheritAttrs:!1,props:{prefixCls:String,vertical:{type:Boolean,default:void 0},offset:Number,disabled:{type:Boolean,default:void 0},min:Number,max:Number,value:Number,tabindex:Z.oneOfType([Z.number,Z.string]),reverse:{type:Boolean,default:void 0},ariaLabel:String,ariaLabelledBy:String,ariaValueTextFormatter:Function,onMouseenter:{type:Function},onMouseleave:{type:Function},onMousedown:{type:Function}},setup(e,t){let{attrs:n,emit:r,expose:o}=t;const a=pe(!1),i=pe(),l=()=>{document.activeElement===i.value&&(a.value=!0)},s=h=>{a.value=!1,r("blur",h)},u=()=>{a.value=!1},c=()=>{var h;(h=i.value)===null||h===void 0||h.focus()},d=()=>{var h;(h=i.value)===null||h===void 0||h.blur()},f=()=>{a.value=!0,c()},p=h=>{h.preventDefault(),c(),r("mousedown",h)};o({focus:c,blur:d,clickFocus:f,ref:i});let v=null;Qe(()=>{v=en(document,"mouseup",l)}),st(()=>{v==null||v.remove()});const m=z(()=>{const{vertical:h,offset:g,reverse:x}=e;return h?{[x?"top":"bottom"]:`${g}%`,[x?"bottom":"top"]:"auto",transform:x?null:"translateY(+50%)"}:{[x?"right":"left"]:`${g}%`,[x?"left":"right"]:"auto",transform:`translateX(${x?"+":"-"}50%)`}});return()=>{const{prefixCls:h,disabled:g,min:x,max:y,value:w,tabindex:b,ariaLabel:S,ariaLabelledBy:$,ariaValueTextFormatter:D,onMouseenter:O,onMouseleave:A}=e,T=ge(n.class,{[`${h}-handle-click-focused`]:a.value}),M={"aria-valuemin":x,"aria-valuemax":y,"aria-valuenow":w,"aria-disabled":!!g},B=[n.style,m.value];let F=b||0;(g||b===null)&&(F=null);let P;D&&(P=D(w));const I=E(E(E(E({},n),{role:"slider",tabindex:F}),M),{class:T,onBlur:s,onKeydown:u,onMousedown:p,onMouseenter:O,onMouseleave:A,ref:i,style:B});return C("div",j(j({},I),{},{"aria-label":S,"aria-labelledby":$,"aria-valuetext":P}),null)}}});function Yh(e,t){try{return Object.keys(t).some(n=>e.target===t[n].ref)}catch{return!1}}function Y6(e,t){let{min:n,max:r}=t;return e<n||e>r}function Y3(e){return e.touches.length>1||e.type.toLowerCase()==="touchend"&&e.touches.length>0}function Z3(e,t){let{marks:n,step:r,min:o,max:a}=t;const i=Object.keys(n).map(parseFloat);if(r!==null){const s=Math.pow(10,Z6(r)),u=Math.floor((a*s-o*s)/(r*s)),c=Math.min((e-o)/r,u),d=Math.round(c)*r+o;i.push(d)}const l=i.map(s=>Math.abs(e-s));return i[l.indexOf(Math.min(...l))]}function Z6(e){const t=e.toString();let n=0;return t.indexOf(".")>=0&&(n=t.length-t.indexOf(".")-1),n}function J3(e,t){let n=1;return window.visualViewport&&(n=+(window.visualViewport.width/document.body.getBoundingClientRect().width).toFixed(2)),(e?t.clientY:t.pageX)/n}function Q3(e,t){let n=1;return window.visualViewport&&(n=+(window.visualViewport.width/document.body.getBoundingClientRect().width).toFixed(2)),(e?t.touches[0].clientY:t.touches[0].pageX)/n}function eE(e,t){const n=t.getBoundingClientRect();return e?n.top+n.height*.5:window.pageXOffset+n.left+n.width*.5}function yw(e,t){let{max:n,min:r}=t;return e<=r?r:e>=n?n:e}function J6(e,t){const{step:n}=t,r=isFinite(Z3(e,t))?Z3(e,t):0;return n===null?r:parseFloat(r.toFixed(Z6(n)))}function hs(e){e.stopPropagation(),e.preventDefault()}function lpe(e,t,n){const r={increase:(i,l)=>i+l,decrease:(i,l)=>i-l},o=r[e](Object.keys(n.marks).indexOf(JSON.stringify(t)),1),a=Object.keys(n.marks)[o];return n.step?r[e](t,n.step):Object.keys(n.marks).length&&n.marks[a]?n.marks[a]:t}function Q6(e,t,n){const r="increase",o="decrease";let a=r;switch(e.keyCode){case _e.UP:a=t&&n?o:r;break;case _e.RIGHT:a=!t&&n?o:r;break;case _e.DOWN:a=t&&n?r:o;break;case _e.LEFT:a=!t&&n?r:o;break;case _e.END:return(i,l)=>l.max;case _e.HOME:return(i,l)=>l.min;case _e.PAGE_UP:return(i,l)=>i+l.step*2;case _e.PAGE_DOWN:return(i,l)=>i-l.step*2;default:return}return(i,l)=>lpe(a,i,l)}var spe=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function Si(){}function e5(e){const t={id:String,min:Number,max:Number,step:Number,marks:Z.object,included:{type:Boolean,default:void 0},prefixCls:String,disabled:{type:Boolean,default:void 0},handle:Function,dots:{type:Boolean,default:void 0},vertical:{type:Boolean,default:void 0},reverse:{type:Boolean,default:void 0},minimumTrackStyle:Z.object,maximumTrackStyle:Z.object,handleStyle:Z.oneOfType([Z.object,Z.arrayOf(Z.object)]),trackStyle:Z.oneOfType([Z.object,Z.arrayOf(Z.object)]),railStyle:Z.object,dotStyle:Z.object,activeDotStyle:Z.object,autofocus:{type:Boolean,default:void 0},draggableTrack:{type:Boolean,default:void 0}};return he({compatConfig:{MODE:3},name:"CreateSlider",mixins:[rl,e],inheritAttrs:!1,props:at(t,{prefixCls:"rc-slider",min:0,max:100,step:1,marks:{},included:!0,disabled:!1,dots:!1,vertical:!1,reverse:!1,trackStyle:[{}],handleStyle:[{}],railStyle:{},dotStyle:{},activeDotStyle:{}}),emits:["change","blur","focus"],data(){return Jt(),this.handlesRefs={},{}},mounted(){this.$nextTick(()=>{this.document=this.sliderRef&&this.sliderRef.ownerDocument;const{autofocus:n,disabled:r}=this;n&&!r&&this.focus()})},beforeUnmount(){this.$nextTick(()=>{this.removeDocumentEvents()})},methods:{defaultHandle(n){var{index:r,directives:o,className:a,style:i}=n,l=spe(n,["index","directives","className","style"]);if(delete l.dragging,l.value===null)return null;const s=E(E({},l),{class:a,style:i,key:r});return C(X6,s,null)},onDown(n,r){let o=r;const{draggableTrack:a,vertical:i}=this.$props,{bounds:l}=this.$data,s=a&&this.positionGetValue?this.positionGetValue(o)||[]:[],u=Yh(n,this.handlesRefs);if(this.dragTrack=a&&l.length>=2&&!u&&!s.map((c,d)=>{const f=d?!0:c>=l[d];return d===s.length-1?c<=l[d]:f}).some(c=>!c),this.dragTrack)this.dragOffset=o,this.startBounds=[...l];else{if(!u)this.dragOffset=0;else{const c=eE(i,n.target);this.dragOffset=o-c,o=c}this.onStart(o)}},onMouseDown(n){if(n.button!==0)return;this.removeDocumentEvents();const r=this.$props.vertical,o=J3(r,n);this.onDown(n,o),this.addDocumentMouseEvents()},onTouchStart(n){if(Y3(n))return;const r=this.vertical,o=Q3(r,n);this.onDown(n,o),this.addDocumentTouchEvents(),hs(n)},onFocus(n){const{vertical:r}=this;if(Yh(n,this.handlesRefs)&&!this.dragTrack){const o=eE(r,n.target);this.dragOffset=0,this.onStart(o),hs(n),this.$emit("focus",n)}},onBlur(n){this.dragTrack||this.onEnd(),this.$emit("blur",n)},onMouseUp(){this.handlesRefs[this.prevMovedHandleIndex]&&this.handlesRefs[this.prevMovedHandleIndex].clickFocus()},onMouseMove(n){if(!this.sliderRef){this.onEnd();return}const r=J3(this.vertical,n);this.onMove(n,r-this.dragOffset,this.dragTrack,this.startBounds)},onTouchMove(n){if(Y3(n)||!this.sliderRef){this.onEnd();return}const r=Q3(this.vertical,n);this.onMove(n,r-this.dragOffset,this.dragTrack,this.startBounds)},onKeyDown(n){this.sliderRef&&Yh(n,this.handlesRefs)&&this.onKeyboard(n)},onClickMarkLabel(n,r){n.stopPropagation(),this.onChange({sValue:r}),this.setState({sValue:r},()=>this.onEnd(!0))},getSliderStart(){const n=this.sliderRef,{vertical:r,reverse:o}=this,a=n.getBoundingClientRect();return r?o?a.bottom:a.top:window.pageXOffset+(o?a.right:a.left)},getSliderLength(){const n=this.sliderRef;if(!n)return 0;const r=n.getBoundingClientRect();return this.vertical?r.height:r.width},addDocumentTouchEvents(){this.onTouchMoveListener=en(this.document,"touchmove",this.onTouchMove),this.onTouchUpListener=en(this.document,"touchend",this.onEnd)},addDocumentMouseEvents(){this.onMouseMoveListener=en(this.document,"mousemove",this.onMouseMove),this.onMouseUpListener=en(this.document,"mouseup",this.onEnd)},removeDocumentEvents(){this.onTouchMoveListener&&this.onTouchMoveListener.remove(),this.onTouchUpListener&&this.onTouchUpListener.remove(),this.onMouseMoveListener&&this.onMouseMoveListener.remove(),this.onMouseUpListener&&this.onMouseUpListener.remove()},focus(){var n;this.$props.disabled||(n=this.handlesRefs[0])===null||n===void 0||n.focus()},blur(){this.$props.disabled||Object.keys(this.handlesRefs).forEach(n=>{var r,o;(o=(r=this.handlesRefs[n])===null||r===void 0?void 0:r.blur)===null||o===void 0||o.call(r)})},calcValue(n){const{vertical:r,min:o,max:a}=this,i=Math.abs(Math.max(n,0)/this.getSliderLength());return r?(1-i)*(a-o)+o:i*(a-o)+o},calcValueByPos(n){const o=(this.reverse?-1:1)*(n-this.getSliderStart());return this.trimAlignValue(this.calcValue(o))},calcOffset(n){const{min:r,max:o}=this,a=(n-r)/(o-r);return Math.max(0,a*100)},saveSlider(n){this.sliderRef=n},saveHandle(n,r){this.handlesRefs[n]=r}},render(){const{prefixCls:n,marks:r,dots:o,step:a,included:i,disabled:l,vertical:s,reverse:u,min:c,max:d,maximumTrackStyle:f,railStyle:p,dotStyle:v,activeDotStyle:m,id:h}=this,{class:g,style:x}=this.$attrs,{tracks:y,handles:w}=this.renderSlider(),b=ge(n,g,{[`${n}-with-marks`]:Object.keys(r).length,[`${n}-disabled`]:l,[`${n}-vertical`]:s,[`${n}-horizontal`]:!s}),S={vertical:s,marks:r,included:i,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:d,min:c,reverse:u,class:`${n}-mark`,onClickLabel:l?Si:this.onClickMarkLabel},$={[An?"onTouchstartPassive":"onTouchstart"]:l?Si:this.onTouchStart};return C("div",j(j({id:h,ref:this.saveSlider,tabindex:"-1",class:b},$),{},{onMousedown:l?Si:this.onMouseDown,onMouseup:l?Si:this.onMouseUp,onKeydown:l?Si:this.onKeyDown,onFocus:l?Si:this.onFocus,onBlur:l?Si:this.onBlur,style:x}),[C("div",{class:`${n}-rail`,style:E(E({},f),p)},null),y,C(ape,{prefixCls:n,vertical:s,reverse:u,marks:r,dots:o,step:a,included:i,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:d,min:c,dotStyle:v,activeDotStyle:m},null),w,C(ipe,S,{mark:this.$slots.mark}),am(this)])}})}const upe=he({compatConfig:{MODE:3},name:"Slider",mixins:[rl],inheritAttrs:!1,props:{defaultValue:Number,value:Number,disabled:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},tabindex:Z.oneOfType([Z.number,Z.string]),reverse:{type:Boolean,default:void 0},min:Number,max:Number,ariaLabelForHandle:String,ariaLabelledByForHandle:String,ariaValueTextFormatterForHandle:String,startPoint:Number},emits:["beforeChange","afterChange","change"],data(){const e=this.defaultValue!==void 0?this.defaultValue:this.min,t=this.value!==void 0?this.value:e;return{sValue:this.trimAlignValue(t),dragging:!1}},watch:{value:{handler(e){this.setChangeValue(e)},deep:!0},min(){const{sValue:e}=this;this.setChangeValue(e)},max(){const{sValue:e}=this;this.setChangeValue(e)}},methods:{setChangeValue(e){const t=e!==void 0?e:this.sValue,n=this.trimAlignValue(t,this.$props);n!==this.sValue&&(this.setState({sValue:n}),Y6(t,this.$props)&&this.$emit("change",n))},onChange(e){const t=!ia(this,"value"),n=e.sValue>this.max?E(E({},e),{sValue:this.max}):e;t&&this.setState(n);const r=n.sValue;this.$emit("change",r)},onStart(e){this.setState({dragging:!0});const{sValue:t}=this;this.$emit("beforeChange",t);const n=this.calcValueByPos(e);this.startValue=n,this.startPosition=e,n!==t&&(this.prevMovedHandleIndex=0,this.onChange({sValue:n}))},onEnd(e){const{dragging:t}=this;this.removeDocumentEvents(),(t||e)&&this.$emit("afterChange",this.sValue),this.setState({dragging:!1})},onMove(e,t){hs(e);const{sValue:n}=this,r=this.calcValueByPos(t);r!==n&&this.onChange({sValue:r})},onKeyboard(e){const{reverse:t,vertical:n}=this.$props,r=Q6(e,n,t);if(r){hs(e);const{sValue:o}=this,a=r(o,this.$props),i=this.trimAlignValue(a);if(i===o)return;this.onChange({sValue:i}),this.$emit("afterChange",i),this.onEnd()}},getLowerBound(){const e=this.$props.startPoint||this.$props.min;return this.$data.sValue>e?e:this.$data.sValue},getUpperBound(){return this.$data.sValue<this.$props.startPoint?this.$props.startPoint:this.$data.sValue},trimAlignValue(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(e===null)return null;const n=E(E({},this.$props),t),r=yw(e,n);return J6(r,n)},getTrack(e){let{prefixCls:t,reverse:n,vertical:r,included:o,minimumTrackStyle:a,mergedTrackStyle:i,length:l,offset:s}=e;return C(K6,{class:`${t}-track`,vertical:r,included:o,offset:s,reverse:n,length:l,style:E(E({},a),i)},null)},renderSlider(){const{prefixCls:e,vertical:t,included:n,disabled:r,minimumTrackStyle:o,trackStyle:a,handleStyle:i,tabindex:l,ariaLabelForHandle:s,ariaLabelledByForHandle:u,ariaValueTextFormatterForHandle:c,min:d,max:f,startPoint:p,reverse:v,handle:m,defaultHandle:h}=this,g=m||h,{sValue:x,dragging:y}=this,w=this.calcOffset(x),b=g({class:`${e}-handle`,prefixCls:e,vertical:t,offset:w,value:x,dragging:y,disabled:r,min:d,max:f,reverse:v,index:0,tabindex:l,ariaLabel:s,ariaLabelledBy:u,ariaValueTextFormatter:c,style:i[0]||i,ref:D=>this.saveHandle(0,D),onFocus:this.onFocus,onBlur:this.onBlur}),S=p!==void 0?this.calcOffset(p):0,$=a[0]||a;return{tracks:this.getTrack({prefixCls:e,reverse:v,vertical:t,included:n,offset:S,minimumTrackStyle:o,mergedTrackStyle:$,length:w-S}),handles:b}}}}),cpe=e5(upe),tu=e=>{let{value:t,handle:n,bounds:r,props:o}=e;const{allowCross:a,pushable:i}=o,l=Number(i),s=yw(t,o);let u=s;return!a&&n!=null&&r!==void 0&&(n>0&&s<=r[n-1]+l&&(u=r[n-1]+l),n<r.length-1&&s>=r[n+1]-l&&(u=r[n+1]-l)),J6(u,o)},dpe={defaultValue:Z.arrayOf(Z.number),value:Z.arrayOf(Z.number),count:Number,pushable:qM(Z.oneOfType([Z.looseBool,Z.number])),allowCross:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},reverse:{type:Boolean,default:void 0},tabindex:Z.arrayOf(Z.number),prefixCls:String,min:Number,max:Number,autofocus:{type:Boolean,default:void 0},ariaLabelGroupForHandles:Array,ariaLabelledByGroupForHandles:Array,ariaValueTextFormatterGroupForHandles:Array,draggableTrack:{type:Boolean,default:void 0}},fpe=he({compatConfig:{MODE:3},name:"Range",mixins:[rl],inheritAttrs:!1,props:at(dpe,{count:1,allowCross:!0,pushable:!1,tabindex:[],draggableTrack:!1,ariaLabelGroupForHandles:[],ariaLabelledByGroupForHandles:[],ariaValueTextFormatterGroupForHandles:[]}),emits:["beforeChange","afterChange","change"],displayName:"Range",data(){const{count:e,min:t,max:n}=this,r=Array(...Array(e+1)).map(()=>t),o=ia(this,"defaultValue")?this.defaultValue:r;let{value:a}=this;a===void 0&&(a=o);const i=a.map((s,u)=>tu({value:s,handle:u,props:this.$props}));return{sHandle:null,recent:i[0]===n?0:i.length-1,bounds:i}},watch:{value:{handler(e){const{bounds:t}=this;this.setChangeValue(e||t)},deep:!0},min(){const{value:e}=this;this.setChangeValue(e||this.bounds)},max(){const{value:e}=this;this.setChangeValue(e||this.bounds)}},methods:{setChangeValue(e){const{bounds:t}=this;let n=e.map((r,o)=>tu({value:r,handle:o,bounds:t,props:this.$props}));if(t.length===n.length){if(n.every((r,o)=>r===t[o]))return null}else n=e.map((r,o)=>tu({value:r,handle:o,props:this.$props}));if(this.setState({bounds:n}),e.some(r=>Y6(r,this.$props))){const r=e.map(o=>yw(o,this.$props));this.$emit("change",r)}},onChange(e){if(!ia(this,"value"))this.setState(e);else{const o={};["sHandle","recent"].forEach(a=>{e[a]!==void 0&&(o[a]=e[a])}),Object.keys(o).length&&this.setState(o)}const r=E(E({},this.$data),e).bounds;this.$emit("change",r)},positionGetValue(e){const t=this.getValue(),n=this.calcValueByPos(e),r=this.getClosestBound(n),o=this.getBoundNeedMoving(n,r),a=t[o];if(n===a)return null;const i=[...t];return i[o]=n,i},onStart(e){const{bounds:t}=this;this.$emit("beforeChange",t);const n=this.calcValueByPos(e);this.startValue=n,this.startPosition=e;const r=this.getClosestBound(n);this.prevMovedHandleIndex=this.getBoundNeedMoving(n,r),this.setState({sHandle:this.prevMovedHandleIndex,recent:this.prevMovedHandleIndex});const o=t[this.prevMovedHandleIndex];if(n===o)return;const a=[...t];a[this.prevMovedHandleIndex]=n,this.onChange({bounds:a})},onEnd(e){const{sHandle:t}=this;this.removeDocumentEvents(),t||(this.dragTrack=!1),(t!==null||e)&&this.$emit("afterChange",this.bounds),this.setState({sHandle:null})},onMove(e,t,n,r){hs(e);const{$data:o,$props:a}=this,i=a.max||100,l=a.min||0;if(n){let f=a.vertical?-t:t;f=a.reverse?-f:f;const p=i-Math.max(...r),v=l-Math.min(...r),m=Math.min(Math.max(f/(this.getSliderLength()/100),v),p),h=r.map(g=>Math.floor(Math.max(Math.min(g+m,i),l)));o.bounds.map((g,x)=>g===h[x]).some(g=>!g)&&this.onChange({bounds:h});return}const{bounds:s,sHandle:u}=this,c=this.calcValueByPos(t),d=s[u];c!==d&&this.moveTo(c)},onKeyboard(e){const{reverse:t,vertical:n}=this.$props,r=Q6(e,n,t);if(r){hs(e);const{bounds:o,sHandle:a}=this,i=o[a===null?this.recent:a],l=r(i,this.$props),s=tu({value:l,handle:a,bounds:o,props:this.$props});if(s===i)return;const u=!0;this.moveTo(s,u)}},getClosestBound(e){const{bounds:t}=this;let n=0;for(let r=1;r<t.length-1;r+=1)e>=t[r]&&(n=r);return Math.abs(t[n+1]-e)<Math.abs(t[n]-e)&&(n+=1),n},getBoundNeedMoving(e,t){const{bounds:n,recent:r}=this;let o=t;const a=n[t+1]===n[t];return a&&n[r]===n[t]&&(o=r),a&&e!==n[t+1]&&(o=e<n[t+1]?t:t+1),o},getLowerBound(){return this.bounds[0]},getUpperBound(){const{bounds:e}=this;return e[e.length-1]},getPoints(){const{marks:e,step:t,min:n,max:r}=this,o=this.internalPointsCache;if(!o||o.marks!==e||o.step!==t){const a=E({},e);if(t!==null)for(let l=n;l<=r;l+=t)a[l]=l;const i=Object.keys(a).map(parseFloat);i.sort((l,s)=>l-s),this.internalPointsCache={marks:e,step:t,points:i}}return this.internalPointsCache.points},moveTo(e,t){const n=[...this.bounds],{sHandle:r,recent:o}=this,a=r===null?o:r;n[a]=e;let i=a;this.$props.pushable!==!1?this.pushSurroundingHandles(n,i):this.$props.allowCross&&(n.sort((l,s)=>l-s),i=n.indexOf(e)),this.onChange({recent:i,sHandle:i,bounds:n}),t&&(this.$emit("afterChange",n),this.setState({},()=>{this.handlesRefs[i].focus()}),this.onEnd())},pushSurroundingHandles(e,t){const n=e[t],{pushable:r}=this,o=Number(r);let a=0;if(e[t+1]-n<o&&(a=1),n-e[t-1]<o&&(a=-1),a===0)return;const i=t+a,l=a*(e[i]-n);this.pushHandle(e,i,a,o-l)||(e[t]=e[i]-a*o)},pushHandle(e,t,n,r){const o=e[t];let a=e[t];for(;n*(a-o)<r;){if(!this.pushHandleOnePoint(e,t,n))return e[t]=o,!1;a=e[t]}return!0},pushHandleOnePoint(e,t,n){const r=this.getPoints(),a=r.indexOf(e[t])+n;if(a>=r.length||a<0)return!1;const i=t+n,l=r[a],{pushable:s}=this,u=Number(s),c=n*(e[i]-l);return this.pushHandle(e,i,n,u-c)?(e[t]=l,!0):!1},trimAlignValue(e){const{sHandle:t,bounds:n}=this;return tu({value:e,handle:t,bounds:n,props:this.$props})},ensureValueNotConflict(e,t,n){let{allowCross:r,pushable:o}=n;const a=this.$data||{},{bounds:i}=a;if(e=e===void 0?a.sHandle:e,o=Number(o),!r&&e!=null&&i!==void 0){if(e>0&&t<=i[e-1]+o)return i[e-1]+o;if(e<i.length-1&&t>=i[e+1]-o)return i[e+1]-o}return t},getTrack(e){let{bounds:t,prefixCls:n,reverse:r,vertical:o,included:a,offsets:i,trackStyle:l}=e;return t.slice(0,-1).map((s,u)=>{const c=u+1,d=ge({[`${n}-track`]:!0,[`${n}-track-${c}`]:!0});return C(K6,{class:d,vertical:o,reverse:r,included:a,offset:i[c-1],length:i[c]-i[c-1],style:l[u],key:c},null)})},renderSlider(){const{sHandle:e,bounds:t,prefixCls:n,vertical:r,included:o,disabled:a,min:i,max:l,reverse:s,handle:u,defaultHandle:c,trackStyle:d,handleStyle:f,tabindex:p,ariaLabelGroupForHandles:v,ariaLabelledByGroupForHandles:m,ariaValueTextFormatterGroupForHandles:h}=this,g=u||c,x=t.map(b=>this.calcOffset(b)),y=`${n}-handle`,w=t.map((b,S)=>{let $=p[S]||0;(a||p[S]===null)&&($=null);const D=e===S;return g({class:ge({[y]:!0,[`${y}-${S+1}`]:!0,[`${y}-dragging`]:D}),prefixCls:n,vertical:r,dragging:D,offset:x[S],value:b,index:S,tabindex:$,min:i,max:l,reverse:s,disabled:a,style:f[S],ref:O=>this.saveHandle(S,O),onFocus:this.onFocus,onBlur:this.onBlur,ariaLabel:v[S],ariaLabelledBy:m[S],ariaValueTextFormatter:h[S]})});return{tracks:this.getTrack({bounds:t,prefixCls:n,reverse:s,vertical:r,included:o,offsets:x,trackStyle:d}),handles:w}}}}),ppe=e5(fpe),mpe=he({compatConfig:{MODE:3},name:"SliderTooltip",inheritAttrs:!1,props:fP(),setup(e,t){let{attrs:n,slots:r}=t;const o=be(null),a=be(null);function i(){tt.cancel(a.value),a.value=null}function l(){a.value=tt(()=>{var u;(u=o.value)===null||u===void 0||u.forcePopupAlign(),a.value=null})}const s=()=>{i(),e.open&&l()};return Ne([()=>e.open,()=>e.title],()=>{s()},{flush:"post",immediate:!0}),Vy(()=>{s()}),st(()=>{i()}),()=>C(Br,j(j({ref:o},e),n),r)}}),vpe=e=>{const{componentCls:t,controlSize:n,dotSize:r,marginFull:o,marginPart:a,colorFillContentHover:i}=e;return{[t]:E(E({},rt(e)),{position:"relative",height:n,margin:`${a}px ${o}px`,padding:0,cursor:"pointer",touchAction:"none",["&-vertical"]:{margin:`${o}px ${a}px`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.colorFillTertiary,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},[`${t}-track`]:{position:"absolute",backgroundColor:e.colorPrimaryBorder,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},"&:hover":{[`${t}-rail`]:{backgroundColor:e.colorFillSecondary},[`${t}-track`]:{backgroundColor:e.colorPrimaryBorderHover},[`${t}-dot`]:{borderColor:i},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${e.handleLineWidth}px ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.colorPrimary}},[`${t}-handle`]:{position:"absolute",width:e.handleSize,height:e.handleSize,outline:"none",[`${t}-dragging`]:{zIndex:1},"&::before":{content:'""',position:"absolute",insetInlineStart:-e.handleLineWidth,insetBlockStart:-e.handleLineWidth,width:e.handleSize+e.handleLineWidth*2,height:e.handleSize+e.handleLineWidth*2,backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:e.handleSize,height:e.handleSize,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${e.handleLineWidth}px ${e.colorPrimaryBorder}`,borderRadius:"50%",cursor:"pointer",transition:`
- inset-inline-start ${e.motionDurationMid},
- inset-block-start ${e.motionDurationMid},
- width ${e.motionDurationMid},
- height ${e.motionDurationMid},
- box-shadow ${e.motionDurationMid}
- `},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:-((e.handleSizeHover-e.handleSize)/2+e.handleLineWidthHover),insetBlockStart:-((e.handleSizeHover-e.handleSize)/2+e.handleLineWidthHover),width:e.handleSizeHover+e.handleLineWidthHover*2,height:e.handleSizeHover+e.handleLineWidthHover*2},"&::after":{boxShadow:`0 0 0 ${e.handleLineWidthHover}px ${e.colorPrimary}`,width:e.handleSizeHover,height:e.handleSizeHover,insetInlineStart:(e.handleSize-e.handleSizeHover)/2,insetBlockStart:(e.handleSize-e.handleSizeHover)/2}}},[`${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:r,height:r,backgroundColor:e.colorBgElevated,border:`${e.handleLineWidth}px solid ${e.colorBorderSecondary}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,"&-active":{borderColor:e.colorPrimaryBorder}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.colorFillSecondary} !important`},[`${t}-track`]:{backgroundColor:`${e.colorTextDisabled} !important`},[`
- ${t}-dot
- `]:{backgroundColor:e.colorBgElevated,borderColor:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:e.handleSize,height:e.handleSize,boxShadow:`0 0 0 ${e.handleLineWidth}px ${new $t(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexString()}`,insetInlineStart:0,insetBlockStart:0},[`
- ${t}-mark-text,
- ${t}-dot
- `]:{cursor:"not-allowed !important"}}})}},t5=(e,t)=>{const{componentCls:n,railSize:r,handleSize:o,dotSize:a}=e,i=t?"paddingBlock":"paddingInline",l=t?"width":"height",s=t?"height":"width",u=t?"insetBlockStart":"insetInlineStart",c=t?"top":"insetInlineStart";return{[i]:r,[s]:r*3,[`${n}-rail`]:{[l]:"100%",[s]:r},[`${n}-track`]:{[s]:r},[`${n}-handle`]:{[u]:(r*3-o)/2},[`${n}-mark`]:{insetInlineStart:0,top:0,[c]:o,[l]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[c]:r,[l]:"100%",[s]:r},[`${n}-dot`]:{position:"absolute",[u]:(r-a)/2}}},hpe=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:E(E({},t5(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},gpe=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:E(E({},t5(e,!1)),{height:"100%"})}},ype=nt("Slider",e=>{const t=qe(e,{marginPart:(e.controlHeight-e.controlSize)/2,marginFull:e.controlSize/2,marginPartWithMark:e.controlHeightLG-e.controlSize});return[vpe(t),hpe(t),gpe(t)]},e=>{const n=e.controlHeightLG/4,r=e.controlHeightSM/2,o=e.lineWidth+1,a=e.lineWidth+1*3;return{controlSize:n,railSize:4,handleSize:n,handleSizeHover:r,dotSize:8,handleLineWidth:o,handleLineWidthHover:a}});var tE=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const bpe=e=>typeof e=="number"?e.toString():"",xpe=()=>({id:String,prefixCls:String,tooltipPrefixCls:String,range:Xe([Boolean,Object]),reverse:Pe(),min:Number,max:Number,step:Xe([Object,Number]),marks:We(),dots:Pe(),value:Xe([Array,Number]),defaultValue:Xe([Array,Number]),included:Pe(),disabled:Pe(),vertical:Pe(),tipFormatter:Xe([Function,Object],()=>bpe),tooltipOpen:Pe(),tooltipVisible:Pe(),tooltipPlacement:Ue(),getTooltipPopupContainer:Oe(),autofocus:Pe(),handleStyle:Xe([Array,Object]),trackStyle:Xe([Array,Object]),onChange:Oe(),onAfterChange:Oe(),onFocus:Oe(),onBlur:Oe(),"onUpdate:value":Oe()}),wpe=he({compatConfig:{MODE:3},name:"ASlider",inheritAttrs:!1,props:xpe(),slots:Object,setup(e,t){let{attrs:n,slots:r,emit:o,expose:a}=t;const{prefixCls:i,rootPrefixCls:l,direction:s,getPopupContainer:u,configProvider:c}=He("slider",e),[d,f]=ype(i),p=Cn(),v=be(),m=be({}),h=($,D)=>{m.value[$]=D},g=z(()=>e.tooltipPlacement?e.tooltipPlacement:e.vertical?s.value==="rtl"?"left":"right":"top"),x=()=>{var $;($=v.value)===null||$===void 0||$.focus()},y=()=>{var $;($=v.value)===null||$===void 0||$.blur()},w=$=>{o("update:value",$),o("change",$),p.onFieldChange()},b=$=>{o("blur",$)};a({focus:x,blur:y});const S=$=>{var{tooltipPrefixCls:D}=$,O=$.info,{value:A,dragging:T,index:M}=O,B=tE(O,["value","dragging","index"]);const{tipFormatter:F,tooltipOpen:P=e.tooltipVisible,getTooltipPopupContainer:I}=e,N=F?m.value[M]||T:!1,R=P||P===void 0&&N;return C(mpe,{prefixCls:D,title:F?F(A):"",open:R,placement:g.value,transitionName:`${l.value}-zoom-down`,key:M,overlayClassName:`${i.value}-tooltip`,getPopupContainer:I||(u==null?void 0:u.value)},{default:()=>[C(X6,j(j({},B),{},{value:A,onMouseenter:()=>h(M,!0),onMouseleave:()=>h(M,!1)}),null)]})};return()=>{const{tooltipPrefixCls:$,range:D,id:O=p.id.value}=e,A=tE(e,["tooltipPrefixCls","range","id"]),T=c.getPrefixCls("tooltip",$),M=ge(n.class,{[`${i.value}-rtl`]:s.value==="rtl"},f.value);s.value==="rtl"&&!A.vertical&&(A.reverse=!A.reverse);let B;return typeof D=="object"&&(B=D.draggableTrack),d(D?C(ppe,j(j(j({},n),A),{},{step:A.step,draggableTrack:B,class:M,ref:v,handle:F=>S({tooltipPrefixCls:T,prefixCls:i.value,info:F}),prefixCls:i.value,onChange:w,onBlur:b}),{mark:r.mark}):C(cpe,j(j(j({},n),A),{},{id:O,step:A.step,class:M,ref:v,handle:F=>S({tooltipPrefixCls:T,prefixCls:i.value,info:F}),prefixCls:i.value,onChange:w,onBlur:b}),{mark:r.mark}))}}}),Spe=rn(wpe);function nE(e){return typeof e=="string"}function Cpe(){}const n5=()=>({prefixCls:String,itemWidth:String,active:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},status:Ue(),iconPrefix:String,icon:Z.any,adjustMarginRight:String,stepNumber:Number,stepIndex:Number,description:Z.any,title:Z.any,subTitle:Z.any,progressDot:qM(Z.oneOfType([Z.looseBool,Z.func])),tailContent:Z.any,icons:Z.shape({finish:Z.any,error:Z.any}).loose,onClick:Oe(),onStepClick:Oe(),stepIcon:Oe(),itemRender:Oe(),__legacy:Pe()}),r5=he({compatConfig:{MODE:3},name:"Step",inheritAttrs:!1,props:n5(),setup(e,t){let{slots:n,emit:r,attrs:o}=t;const a=l=>{r("click",l),r("stepClick",e.stepIndex)},i=l=>{let{icon:s,title:u,description:c}=l;const{prefixCls:d,stepNumber:f,status:p,iconPrefix:v,icons:m,progressDot:h=n.progressDot,stepIcon:g=n.stepIcon}=e;let x;const y=ge(`${d}-icon`,`${v}icon`,{[`${v}icon-${s}`]:s&&nE(s),[`${v}icon-check`]:!s&&p==="finish"&&(m&&!m.finish||!m),[`${v}icon-cross`]:!s&&p==="error"&&(m&&!m.error||!m)}),w=C("span",{class:`${d}-icon-dot`},null);return h?typeof h=="function"?x=C("span",{class:`${d}-icon`},[h({iconDot:w,index:f-1,status:p,title:u,description:c,prefixCls:d})]):x=C("span",{class:`${d}-icon`},[w]):s&&!nE(s)?x=C("span",{class:`${d}-icon`},[s]):m&&m.finish&&p==="finish"?x=C("span",{class:`${d}-icon`},[m.finish]):m&&m.error&&p==="error"?x=C("span",{class:`${d}-icon`},[m.error]):s||p==="finish"||p==="error"?x=C("span",{class:y},null):x=C("span",{class:`${d}-icon`},[f]),g&&(x=g({index:f-1,status:p,title:u,description:c,node:x})),x};return()=>{var l,s,u,c;const{prefixCls:d,itemWidth:f,active:p,status:v="wait",tailContent:m,adjustMarginRight:h,disabled:g,title:x=(l=n.title)===null||l===void 0?void 0:l.call(n),description:y=(s=n.description)===null||s===void 0?void 0:s.call(n),subTitle:w=(u=n.subTitle)===null||u===void 0?void 0:u.call(n),icon:b=(c=n.icon)===null||c===void 0?void 0:c.call(n),onClick:S,onStepClick:$}=e,D=v||"wait",O=ge(`${d}-item`,`${d}-item-${D}`,{[`${d}-item-custom`]:b,[`${d}-item-active`]:p,[`${d}-item-disabled`]:g===!0}),A={};f&&(A.width=f),h&&(A.marginRight=h);const T={onClick:S||Cpe};$&&!g&&(T.role="button",T.tabindex=0,T.onClick=a);const M=C("div",j(j({},pt(o,["__legacy"])),{},{class:[O,o.class],style:[o.style,A]}),[C("div",j(j({},T),{},{class:`${d}-item-container`}),[C("div",{class:`${d}-item-tail`},[m]),C("div",{class:`${d}-item-icon`},[i({icon:b,title:x,description:y})]),C("div",{class:`${d}-item-content`},[C("div",{class:`${d}-item-title`},[x,w&&C("div",{title:typeof w=="string"?w:void 0,class:`${d}-item-subtitle`},[w])]),y&&C("div",{class:`${d}-item-description`},[y])])])]);return e.itemRender?e.itemRender(M):M}}});var $pe=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Epe=he({compatConfig:{MODE:3},name:"Steps",props:{type:Z.string.def("default"),prefixCls:Z.string.def("vc-steps"),iconPrefix:Z.string.def("vc"),direction:Z.string.def("horizontal"),labelPlacement:Z.string.def("horizontal"),status:Ue("process"),size:Z.string.def(""),progressDot:Z.oneOfType([Z.looseBool,Z.func]).def(void 0),initial:Z.number.def(0),current:Z.number.def(0),items:Z.array.def(()=>[]),icons:Z.shape({finish:Z.any,error:Z.any}).loose,stepIcon:Oe(),isInline:Z.looseBool,itemRender:Oe()},emits:["change"],setup(e,t){let{slots:n,emit:r}=t;const o=l=>{const{current:s}=e;s!==l&&r("change",l)},a=(l,s,u)=>{const{prefixCls:c,iconPrefix:d,status:f,current:p,initial:v,icons:m,stepIcon:h=n.stepIcon,isInline:g,itemRender:x,progressDot:y=n.progressDot}=e,w=g||y,b=E(E({},l),{class:""}),S=v+s,$={active:S===p,stepNumber:S+1,stepIndex:S,key:S,prefixCls:c,iconPrefix:d,progressDot:w,stepIcon:h,icons:m,onStepClick:o};return f==="error"&&s===p-1&&(b.class=`${c}-next-error`),b.status||(S===p?b.status=f:S<p?b.status="finish":b.status="wait"),g&&(b.icon=void 0,b.subTitle=void 0),u?u(E(E({},b),$)):(x&&(b.itemRender=D=>x(b,D)),C(r5,j(j(j({},b),$),{},{__legacy:!1}),null))},i=(l,s)=>a(E({},l.props),s,u=>At(l,u));return()=>{var l;const{prefixCls:s,direction:u,type:c,labelPlacement:d,iconPrefix:f,status:p,size:v,current:m,progressDot:h=n.progressDot,initial:g,icons:x,items:y,isInline:w,itemRender:b}=e,S=$pe(e,["prefixCls","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","initial","icons","items","isInline","itemRender"]),$=c==="navigation",D=w||h,O=w?"horizontal":u,A=w?void 0:v,T=D?"vertical":d,M=ge(s,`${s}-${u}`,{[`${s}-${A}`]:A,[`${s}-label-${T}`]:O==="horizontal",[`${s}-dot`]:!!D,[`${s}-navigation`]:$,[`${s}-inline`]:w});return C("div",j({class:M},S),[y.filter(B=>B).map((B,F)=>a(B,F)),nn((l=n.default)===null||l===void 0?void 0:l.call(n)).map(i)])}}}),Dpe=e=>{const{componentCls:t,stepsIconCustomTop:n,stepsIconCustomSize:r,stepsIconCustomFontSize:o}=e;return{[`${t}-item-custom`]:{[`> ${t}-item-container > ${t}-item-icon`]:{height:"auto",background:"none",border:0,[`> ${t}-icon`]:{top:n,width:r,height:r,fontSize:o,lineHeight:`${r}px`}}},[`&:not(${t}-vertical)`]:{[`${t}-item-custom`]:{[`${t}-item-icon`]:{width:"auto",background:"none"}}}}},Ape=Dpe,Ope=e=>{const{componentCls:t,stepsIconSize:n,lineHeight:r,stepsSmallIconSize:o}=e;return{[`&${t}-label-vertical`]:{[`${t}-item`]:{overflow:"visible","&-tail":{marginInlineStart:n/2+e.controlHeightLG,padding:`${e.paddingXXS}px ${e.paddingLG}px`},"&-content":{display:"block",width:(n/2+e.controlHeightLG)*2,marginTop:e.marginSM,textAlign:"center"},"&-icon":{display:"inline-block",marginInlineStart:e.controlHeightLG},"&-title":{paddingInlineEnd:0,paddingInlineStart:0,"&::after":{display:"none"}},"&-subtitle":{display:"block",marginBottom:e.marginXXS,marginInlineStart:0,lineHeight:r}},[`&${t}-small:not(${t}-dot)`]:{[`${t}-item`]:{"&-icon":{marginInlineStart:e.controlHeightLG+(n-o)/2}}}}}},Tpe=Ope,Mpe=e=>{const{componentCls:t,stepsNavContentMaxWidth:n,stepsNavArrowColor:r,stepsNavActiveColor:o,motionDurationSlow:a}=e;return{[`&${t}-navigation`]:{paddingTop:e.paddingSM,[`&${t}-small`]:{[`${t}-item`]:{"&-container":{marginInlineStart:-e.marginSM}}},[`${t}-item`]:{overflow:"visible",textAlign:"center","&-container":{display:"inline-block",height:"100%",marginInlineStart:-e.margin,paddingBottom:e.paddingSM,textAlign:"start",transition:`opacity ${a}`,[`${t}-item-content`]:{maxWidth:n},[`${t}-item-title`]:E(E({maxWidth:"100%",paddingInlineEnd:0},gn),{"&::after":{display:"none"}})},[`&:not(${t}-item-active)`]:{[`${t}-item-container[role='button']`]:{cursor:"pointer","&:hover":{opacity:.85}}},"&:last-child":{flex:1,"&::after":{display:"none"}},"&::after":{position:"absolute",top:`calc(50% - ${e.paddingSM/2}px)`,insetInlineStart:"100%",display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,borderTop:`${e.lineWidth}px ${e.lineType} ${r}`,borderBottom:"none",borderInlineStart:"none",borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${r}`,transform:"translateY(-50%) translateX(-50%) rotate(45deg)",content:'""'},"&::before":{position:"absolute",bottom:0,insetInlineStart:"50%",display:"inline-block",width:0,height:e.lineWidthBold,backgroundColor:o,transition:`width ${a}, inset-inline-start ${a}`,transitionTimingFunction:"ease-out",content:'""'}},[`${t}-item${t}-item-active::before`]:{insetInlineStart:0,width:"100%"}},[`&${t}-navigation${t}-vertical`]:{[`> ${t}-item`]:{marginInlineEnd:0,"&::before":{display:"none"},[`&${t}-item-active::before`]:{top:0,insetInlineEnd:0,insetInlineStart:"unset",display:"block",width:e.lineWidth*3,height:`calc(100% - ${e.marginLG}px)`},"&::after":{position:"relative",insetInlineStart:"50%",display:"block",width:e.controlHeight*.25,height:e.controlHeight*.25,marginBottom:e.marginXS,textAlign:"center",transform:"translateY(-50%) translateX(-50%) rotate(135deg)"},[`> ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}},[`&${t}-navigation${t}-horizontal`]:{[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}}},Npe=Mpe,Ppe=e=>{const{antCls:t,componentCls:n}=e;return{[`&${n}-with-progress`]:{[`${n}-item`]:{paddingTop:e.paddingXXS,[`&-process ${n}-item-container ${n}-item-icon ${n}-icon`]:{color:e.processIconColor}},[`&${n}-vertical > ${n}-item `]:{paddingInlineStart:e.paddingXXS,[`> ${n}-item-container > ${n}-item-tail`]:{top:e.marginXXS,insetInlineStart:e.stepsIconSize/2-e.lineWidth+e.paddingXXS}},[`&, &${n}-small`]:{[`&${n}-horizontal ${n}-item:first-child`]:{paddingBottom:e.paddingXXS,paddingInlineStart:e.paddingXXS}},[`&${n}-small${n}-vertical > ${n}-item > ${n}-item-container > ${n}-item-tail`]:{insetInlineStart:e.stepsSmallIconSize/2-e.lineWidth+e.paddingXXS},[`&${n}-label-vertical`]:{[`${n}-item ${n}-item-tail`]:{top:e.margin-2*e.lineWidth}},[`${n}-item-icon`]:{position:"relative",[`${t}-progress`]:{position:"absolute",insetBlockStart:(e.stepsIconSize-e.stepsProgressSize-e.lineWidth*2)/2,insetInlineStart:(e.stepsIconSize-e.stepsProgressSize-e.lineWidth*2)/2}}}}},Ipe=Ppe,_pe=e=>{const{componentCls:t,descriptionWidth:n,lineHeight:r,stepsCurrentDotSize:o,stepsDotSize:a,motionDurationSlow:i}=e;return{[`&${t}-dot, &${t}-dot${t}-small`]:{[`${t}-item`]:{"&-title":{lineHeight:r},"&-tail":{top:Math.floor((e.stepsDotSize-e.lineWidth*3)/2),width:"100%",marginTop:0,marginBottom:0,marginInline:`${n/2}px 0`,padding:0,"&::after":{width:`calc(100% - ${e.marginSM*2}px)`,height:e.lineWidth*3,marginInlineStart:e.marginSM}},"&-icon":{width:a,height:a,marginInlineStart:(e.descriptionWidth-a)/2,paddingInlineEnd:0,lineHeight:`${a}px`,background:"transparent",border:0,[`${t}-icon-dot`]:{position:"relative",float:"left",width:"100%",height:"100%",borderRadius:100,transition:`all ${i}`,"&::after":{position:"absolute",top:-e.marginSM,insetInlineStart:(a-e.controlHeightLG*1.5)/2,width:e.controlHeightLG*1.5,height:e.controlHeight,background:"transparent",content:'""'}}},"&-content":{width:n},[`&-process ${t}-item-icon`]:{position:"relative",top:(a-o)/2,width:o,height:o,lineHeight:`${o}px`,background:"none",marginInlineStart:(e.descriptionWidth-o)/2},[`&-process ${t}-icon`]:{[`&:first-child ${t}-icon-dot`]:{insetInlineStart:0}}}},[`&${t}-vertical${t}-dot`]:{[`${t}-item-icon`]:{marginTop:(e.controlHeight-a)/2,marginInlineStart:0,background:"none"},[`${t}-item-process ${t}-item-icon`]:{marginTop:(e.controlHeight-o)/2,top:0,insetInlineStart:(a-o)/2,marginInlineStart:0},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:(e.controlHeight-a)/2,insetInlineStart:0,margin:0,padding:`${a+e.paddingXS}px 0 ${e.paddingXS}px`,"&::after":{marginInlineStart:(a-e.lineWidth)/2}},[`&${t}-small`]:{[`${t}-item-icon`]:{marginTop:(e.controlHeightSM-a)/2},[`${t}-item-process ${t}-item-icon`]:{marginTop:(e.controlHeightSM-o)/2},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:(e.controlHeightSM-a)/2}},[`${t}-item:first-child ${t}-icon-dot`]:{insetInlineStart:0},[`${t}-item-content`]:{width:"inherit"}}}},Bpe=_pe,Fpe=e=>{const{componentCls:t}=e;return{[`&${t}-rtl`]:{direction:"rtl",[`${t}-item`]:{"&-subtitle":{float:"left"}},[`&${t}-navigation`]:{[`${t}-item::after`]:{transform:"rotate(-45deg)"}},[`&${t}-vertical`]:{[`> ${t}-item`]:{"&::after":{transform:"rotate(225deg)"},[`${t}-item-icon`]:{float:"right"}}},[`&${t}-dot`]:{[`${t}-item-icon ${t}-icon-dot, &${t}-small ${t}-item-icon ${t}-icon-dot`]:{float:"right"}}}}},Rpe=Fpe,zpe=e=>{const{componentCls:t,stepsSmallIconSize:n,fontSizeSM:r,fontSize:o,colorTextDescription:a}=e;return{[`&${t}-small`]:{[`&${t}-horizontal:not(${t}-label-vertical) ${t}-item`]:{paddingInlineStart:e.paddingSM,"&:first-child":{paddingInlineStart:0}},[`${t}-item-icon`]:{width:n,height:n,marginTop:0,marginBottom:0,marginInline:`0 ${e.marginXS}px`,fontSize:r,lineHeight:`${n}px`,textAlign:"center",borderRadius:n},[`${t}-item-title`]:{paddingInlineEnd:e.paddingSM,fontSize:o,lineHeight:`${n}px`,"&::after":{top:n/2}},[`${t}-item-description`]:{color:a,fontSize:o},[`${t}-item-tail`]:{top:n/2-e.paddingXXS},[`${t}-item-custom ${t}-item-icon`]:{width:"inherit",height:"inherit",lineHeight:"inherit",background:"none",border:0,borderRadius:0,[`> ${t}-icon`]:{fontSize:n,lineHeight:`${n}px`,transform:"none"}}}}},Lpe=zpe,kpe=e=>{const{componentCls:t,stepsSmallIconSize:n,stepsIconSize:r}=e;return{[`&${t}-vertical`]:{display:"flex",flexDirection:"column",[`> ${t}-item`]:{display:"block",flex:"1 0 auto",paddingInlineStart:0,overflow:"visible",[`${t}-item-icon`]:{float:"left",marginInlineEnd:e.margin},[`${t}-item-content`]:{display:"block",minHeight:e.controlHeight*1.5,overflow:"hidden"},[`${t}-item-title`]:{lineHeight:`${r}px`},[`${t}-item-description`]:{paddingBottom:e.paddingSM}},[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.stepsIconSize/2-e.lineWidth,width:e.lineWidth,height:"100%",padding:`${r+e.marginXXS*1.5}px 0 ${e.marginXXS*1.5}px`,"&::after":{width:e.lineWidth,height:"100%"}},[`> ${t}-item:not(:last-child) > ${t}-item-container > ${t}-item-tail`]:{display:"block"},[` > ${t}-item > ${t}-item-container > ${t}-item-content > ${t}-item-title`]:{"&::after":{display:"none"}},[`&${t}-small ${t}-item-container`]:{[`${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.stepsSmallIconSize/2-e.lineWidth,padding:`${n+e.marginXXS*1.5}px 0 ${e.marginXXS*1.5}px`},[`${t}-item-title`]:{lineHeight:`${n}px`}}}}},Hpe=kpe,jpe=e=>{const{componentCls:t,inlineDotSize:n,inlineTitleColor:r,inlineTailColor:o}=e,a=e.paddingXS+e.lineWidth,i={[`${t}-item-container ${t}-item-content ${t}-item-title`]:{color:r}};return{[`&${t}-inline`]:{width:"auto",display:"inline-flex",[`${t}-item`]:{flex:"none","&-container":{padding:`${a}px ${e.paddingXXS}px 0`,margin:`0 ${e.marginXXS/2}px`,borderRadius:e.borderRadiusSM,cursor:"pointer",transition:`background-color ${e.motionDurationMid}`,"&:hover":{background:e.controlItemBgHover},["&[role='button']:hover"]:{opacity:1}},"&-icon":{width:n,height:n,marginInlineStart:`calc(50% - ${n/2}px)`,[`> ${t}-icon`]:{top:0},[`${t}-icon-dot`]:{borderRadius:e.fontSizeSM/4}},"&-content":{width:"auto",marginTop:e.marginXS-e.lineWidth},"&-title":{color:r,fontSize:e.fontSizeSM,lineHeight:e.lineHeightSM,fontWeight:"normal",marginBottom:e.marginXXS/2},"&-description":{display:"none"},"&-tail":{marginInlineStart:0,top:a+n/2,transform:"translateY(-50%)","&:after":{width:"100%",height:e.lineWidth,borderRadius:0,marginInlineStart:0,background:o}},[`&:first-child ${t}-item-tail`]:{width:"50%",marginInlineStart:"50%"},[`&:last-child ${t}-item-tail`]:{display:"block",width:"50%"},"&-wait":E({[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:e.colorBorderBg,border:`${e.lineWidth}px ${e.lineType} ${o}`}},i),"&-finish":E({[`${t}-item-tail::after`]:{backgroundColor:o},[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:o,border:`${e.lineWidth}px ${e.lineType} ${o}`}},i),"&-error":i,"&-active, &-process":E({[`${t}-item-icon`]:{width:n,height:n,marginInlineStart:`calc(50% - ${n/2}px)`,top:0}},i),[`&:not(${t}-item-active) > ${t}-item-container[role='button']:hover`]:{[`${t}-item-title`]:{color:r}}}}}},Vpe=jpe;var Ll;(function(e){e.wait="wait",e.process="process",e.finish="finish",e.error="error"})(Ll||(Ll={}));const vd=(e,t)=>{const n=`${t.componentCls}-item`,r=`${e}IconColor`,o=`${e}TitleColor`,a=`${e}DescriptionColor`,i=`${e}TailColor`,l=`${e}IconBgColor`,s=`${e}IconBorderColor`,u=`${e}DotColor`;return{[`${n}-${e} ${n}-icon`]:{backgroundColor:t[l],borderColor:t[s],[`> ${t.componentCls}-icon`]:{color:t[r],[`${t.componentCls}-icon-dot`]:{background:t[u]}}},[`${n}-${e}${n}-custom ${n}-icon`]:{[`> ${t.componentCls}-icon`]:{color:t[u]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-title`]:{color:t[o],"&::after":{backgroundColor:t[i]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-description`]:{color:t[a]},[`${n}-${e} > ${n}-container > ${n}-tail::after`]:{backgroundColor:t[i]}}},Wpe=e=>{const{componentCls:t,motionDurationSlow:n}=e,r=`${t}-item`;return E(E(E(E(E(E({[r]:{position:"relative",display:"inline-block",flex:1,overflow:"hidden",verticalAlign:"top","&:last-child":{flex:"none",[`> ${r}-container > ${r}-tail, > ${r}-container > ${r}-content > ${r}-title::after`]:{display:"none"}}},[`${r}-container`]:{outline:"none"},[`${r}-icon, ${r}-content`]:{display:"inline-block",verticalAlign:"top"},[`${r}-icon`]:{width:e.stepsIconSize,height:e.stepsIconSize,marginTop:0,marginBottom:0,marginInlineStart:0,marginInlineEnd:e.marginXS,fontSize:e.stepsIconFontSize,fontFamily:e.fontFamily,lineHeight:`${e.stepsIconSize}px`,textAlign:"center",borderRadius:e.stepsIconSize,border:`${e.lineWidth}px ${e.lineType} transparent`,transition:`background-color ${n}, border-color ${n}`,[`${t}-icon`]:{position:"relative",top:e.stepsIconTop,color:e.colorPrimary,lineHeight:1}},[`${r}-tail`]:{position:"absolute",top:e.stepsIconSize/2-e.paddingXXS,insetInlineStart:0,width:"100%","&::after":{display:"inline-block",width:"100%",height:e.lineWidth,background:e.colorSplit,borderRadius:e.lineWidth,transition:`background ${n}`,content:'""'}},[`${r}-title`]:{position:"relative",display:"inline-block",paddingInlineEnd:e.padding,color:e.colorText,fontSize:e.fontSizeLG,lineHeight:`${e.stepsTitleLineHeight}px`,"&::after":{position:"absolute",top:e.stepsTitleLineHeight/2,insetInlineStart:"100%",display:"block",width:9999,height:e.lineWidth,background:e.processTailColor,content:'""'}},[`${r}-subtitle`]:{display:"inline",marginInlineStart:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize},[`${r}-description`]:{color:e.colorTextDescription,fontSize:e.fontSize}},vd(Ll.wait,e)),vd(Ll.process,e)),{[`${r}-process > ${r}-container > ${r}-title`]:{fontWeight:e.fontWeightStrong}}),vd(Ll.finish,e)),vd(Ll.error,e)),{[`${r}${t}-next-error > ${t}-item-title::after`]:{background:e.colorError},[`${r}-disabled`]:{cursor:"not-allowed"}})},Upe=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[`& ${t}-item`]:{[`&:not(${t}-item-active)`]:{[`& > ${t}-item-container[role='button']`]:{cursor:"pointer",[`${t}-item`]:{[`&-title, &-subtitle, &-description, &-icon ${t}-icon`]:{transition:`color ${n}`}},"&:hover":{[`${t}-item`]:{["&-title, &-subtitle, &-description"]:{color:e.colorPrimary}}}},[`&:not(${t}-item-process)`]:{[`& > ${t}-item-container[role='button']:hover`]:{[`${t}-item`]:{"&-icon":{borderColor:e.colorPrimary,[`${t}-icon`]:{color:e.colorPrimary}}}}}}},[`&${t}-horizontal:not(${t}-label-vertical)`]:{[`${t}-item`]:{paddingInlineStart:e.padding,whiteSpace:"nowrap","&:first-child":{paddingInlineStart:0},[`&:last-child ${t}-item-title`]:{paddingInlineEnd:0},"&-tail":{display:"none"},"&-description":{maxWidth:e.descriptionWidth,whiteSpace:"normal"}}}}},Kpe=e=>{const{componentCls:t}=e;return{[t]:E(E(E(E(E(E(E(E(E(E(E(E(E({},rt(e)),{display:"flex",width:"100%",fontSize:0,textAlign:"initial"}),Wpe(e)),Upe(e)),Ape(e)),Lpe(e)),Hpe(e)),Tpe(e)),Bpe(e)),Npe(e)),Rpe(e)),Ipe(e)),Vpe(e))}},qpe=nt("Steps",e=>{const{wireframe:t,colorTextDisabled:n,fontSizeHeading3:r,fontSize:o,controlHeight:a,controlHeightLG:i,colorTextLightSolid:l,colorText:s,colorPrimary:u,colorTextLabel:c,colorTextDescription:d,colorTextQuaternary:f,colorFillContent:p,controlItemBgActive:v,colorError:m,colorBgContainer:h,colorBorderSecondary:g}=e,x=e.controlHeight,y=e.colorSplit,w=qe(e,{processTailColor:y,stepsNavArrowColor:n,stepsIconSize:x,stepsIconCustomSize:x,stepsIconCustomTop:0,stepsIconCustomFontSize:i/2,stepsIconTop:-.5,stepsIconFontSize:o,stepsTitleLineHeight:a,stepsSmallIconSize:r,stepsDotSize:a/4,stepsCurrentDotSize:i/4,stepsNavContentMaxWidth:"auto",processIconColor:l,processTitleColor:s,processDescriptionColor:s,processIconBgColor:u,processIconBorderColor:u,processDotColor:u,waitIconColor:t?n:c,waitTitleColor:d,waitDescriptionColor:d,waitTailColor:y,waitIconBgColor:t?h:p,waitIconBorderColor:t?n:"transparent",waitDotColor:n,finishIconColor:u,finishTitleColor:s,finishDescriptionColor:d,finishTailColor:u,finishIconBgColor:t?h:v,finishIconBorderColor:t?u:v,finishDotColor:u,errorIconColor:l,errorTitleColor:m,errorDescriptionColor:m,errorTailColor:y,errorIconBgColor:m,errorIconBorderColor:m,errorDotColor:m,stepsNavActiveColor:u,stepsProgressSize:i,inlineDotSize:6,inlineTitleColor:f,inlineTailColor:g});return[Kpe(w)]},{descriptionWidth:140}),Gpe=()=>({prefixCls:String,iconPrefix:String,current:Number,initial:Number,percent:Number,responsive:Pe(),items:bt(),labelPlacement:Ue(),status:Ue(),size:Ue(),direction:Ue(),progressDot:Xe([Boolean,Function]),type:Ue(),onChange:Oe(),"onUpdate:current":Oe()}),Zh=he({compatConfig:{MODE:3},name:"ASteps",inheritAttrs:!1,props:at(Gpe(),{current:0,responsive:!0,labelPlacement:"horizontal"}),slots:Object,setup(e,t){let{attrs:n,slots:r,emit:o}=t;const{prefixCls:a,direction:i,configProvider:l}=He("steps",e),[s,u]=qpe(a),[,c]=$a(),d=Bs(),f=z(()=>e.responsive&&d.value.xs?"vertical":e.direction),p=z(()=>l.getPrefixCls("",e.iconPrefix)),v=y=>{o("update:current",y),o("change",y)},m=z(()=>e.type==="inline"),h=z(()=>m.value?void 0:e.percent),g=y=>{let{node:w,status:b}=y;if(b==="process"&&e.percent!==void 0){const S=e.size==="small"?c.value.controlHeight:c.value.controlHeightLG;return C("div",{class:`${a.value}-progress-icon`},[C(gw,{type:"circle",percent:h.value,size:S,strokeWidth:4,format:()=>null},null),w])}return w},x=z(()=>({finish:C(Mm,{class:`${a.value}-finish-icon`},null),error:C(Hr,{class:`${a.value}-error-icon`},null)}));return()=>{const y=ge({[`${a.value}-rtl`]:i.value==="rtl",[`${a.value}-with-progress`]:h.value!==void 0},n.class,u.value),w=(b,S)=>b.description?C(Br,{title:b.description},{default:()=>[S]}):S;return s(C(Epe,j(j(j({icons:x.value},n),pt(e,["percent","responsive"])),{},{items:e.items,direction:f.value,prefixCls:a.value,iconPrefix:p.value,class:y,onChange:v,isInline:m.value,itemRender:m.value?w:void 0}),E({stepIcon:g},r)))}}}),bf=he(E(E({compatConfig:{MODE:3}},r5),{name:"AStep",props:n5()})),Xpe=E(Zh,{Step:bf,install:e=>(e.component(Zh.name,Zh),e.component(bf.name,bf),e)}),Ype=e=>{const{componentCls:t}=e,n=`${t}-inner`;return{[t]:{[`&${t}-small`]:{minWidth:e.switchMinWidthSM,height:e.switchHeightSM,lineHeight:`${e.switchHeightSM}px`,[`${t}-inner`]:{paddingInlineStart:e.switchInnerMarginMaxSM,paddingInlineEnd:e.switchInnerMarginMinSM,[`${n}-checked`]:{marginInlineStart:`calc(-100% + ${e.switchPinSizeSM+e.switchPadding*2}px - ${e.switchInnerMarginMaxSM*2}px)`,marginInlineEnd:`calc(100% - ${e.switchPinSizeSM+e.switchPadding*2}px + ${e.switchInnerMarginMaxSM*2}px)`},[`${n}-unchecked`]:{marginTop:-e.switchHeightSM,marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:e.switchPinSizeSM,height:e.switchPinSizeSM},[`${t}-loading-icon`]:{top:(e.switchPinSizeSM-e.switchLoadingIconSize)/2,fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:e.switchInnerMarginMinSM,paddingInlineEnd:e.switchInnerMarginMaxSM,[`${n}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${n}-unchecked`]:{marginInlineStart:`calc(100% - ${e.switchPinSizeSM+e.switchPadding*2}px + ${e.switchInnerMarginMaxSM*2}px)`,marginInlineEnd:`calc(-100% + ${e.switchPinSizeSM+e.switchPadding*2}px - ${e.switchInnerMarginMaxSM*2}px)`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${e.switchPinSizeSM+e.switchPadding}px)`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${n}`]:{[`${n}-unchecked`]:{marginInlineStart:e.marginXXS/2,marginInlineEnd:-e.marginXXS/2}},[`&${t}-checked ${n}`]:{[`${n}-checked`]:{marginInlineStart:-e.marginXXS/2,marginInlineEnd:e.marginXXS/2}}}}}}},Zpe=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:(e.switchPinSize-e.fontSize)/2,color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},Jpe=e=>{const{componentCls:t}=e,n=`${t}-handle`;return{[t]:{[n]:{position:"absolute",top:e.switchPadding,insetInlineStart:e.switchPadding,width:e.switchPinSize,height:e.switchPinSize,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:e.colorWhite,borderRadius:e.switchPinSize/2,boxShadow:e.switchHandleShadow,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${n}`]:{insetInlineStart:`calc(100% - ${e.switchPinSize+e.switchPadding}px)`},[`&:not(${t}-disabled):active`]:{[`${n}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${n}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},Qpe=e=>{const{componentCls:t}=e,n=`${t}-inner`;return{[t]:{[n]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:e.switchInnerMarginMax,paddingInlineEnd:e.switchInnerMarginMin,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${n}-checked, ${n}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none"},[`${n}-checked`]:{marginInlineStart:`calc(-100% + ${e.switchPinSize+e.switchPadding*2}px - ${e.switchInnerMarginMax*2}px)`,marginInlineEnd:`calc(100% - ${e.switchPinSize+e.switchPadding*2}px + ${e.switchInnerMarginMax*2}px)`},[`${n}-unchecked`]:{marginTop:-e.switchHeight,marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${n}`]:{paddingInlineStart:e.switchInnerMarginMin,paddingInlineEnd:e.switchInnerMarginMax,[`${n}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${n}-unchecked`]:{marginInlineStart:`calc(100% - ${e.switchPinSize+e.switchPadding*2}px + ${e.switchInnerMarginMax*2}px)`,marginInlineEnd:`calc(-100% + ${e.switchPinSize+e.switchPadding*2}px - ${e.switchInnerMarginMax*2}px)`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${n}`]:{[`${n}-unchecked`]:{marginInlineStart:e.switchPadding*2,marginInlineEnd:-e.switchPadding*2}},[`&${t}-checked ${n}`]:{[`${n}-checked`]:{marginInlineStart:-e.switchPadding*2,marginInlineEnd:e.switchPadding*2}}}}}},eme=e=>{const{componentCls:t}=e;return{[t]:E(E(E(E({},rt(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:e.switchMinWidth,height:e.switchHeight,lineHeight:`${e.switchHeight}px`,verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),ba(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},tme=nt("Switch",e=>{const t=e.fontSize*e.lineHeight,n=e.controlHeight/2,r=2,o=t-r*2,a=n-r*2,i=qe(e,{switchMinWidth:o*2+r*4,switchHeight:t,switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchInnerMarginMin:o/2,switchInnerMarginMax:o+r+r*2,switchPadding:r,switchPinSize:o,switchBg:e.colorBgContainer,switchMinWidthSM:a*2+r*2,switchHeightSM:n,switchInnerMarginMinSM:a/2,switchInnerMarginMaxSM:a+r+r*2,switchPinSizeSM:a,switchHandleShadow:`0 2px 4px 0 ${new $t("#00230b").setAlpha(.2).toRgbString()}`,switchLoadingIconSize:e.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[eme(i),Qpe(i),Jpe(i),Zpe(i),Ype(i)]}),nme=Un("small","default"),rme=()=>({id:String,prefixCls:String,size:Z.oneOf(nme),disabled:{type:Boolean,default:void 0},checkedChildren:Z.any,unCheckedChildren:Z.any,tabindex:Z.oneOfType([Z.string,Z.number]),autofocus:{type:Boolean,default:void 0},loading:{type:Boolean,default:void 0},checked:Z.oneOfType([Z.string,Z.number,Z.looseBool]),checkedValue:Z.oneOfType([Z.string,Z.number,Z.looseBool]).def(!0),unCheckedValue:Z.oneOfType([Z.string,Z.number,Z.looseBool]).def(!1),onChange:{type:Function},onClick:{type:Function},onKeydown:{type:Function},onMouseup:{type:Function},"onUpdate:checked":{type:Function},onBlur:Function,onFocus:Function}),ome=he({compatConfig:{MODE:3},name:"ASwitch",__ANT_SWITCH:!0,inheritAttrs:!1,props:rme(),slots:Object,setup(e,t){let{attrs:n,slots:r,expose:o,emit:a}=t;const i=Cn(),l=Fr(),s=z(()=>{var O;return(O=e.disabled)!==null&&O!==void 0?O:l.value});ky(()=>{Jt(),Jt()});const u=be(e.checked!==void 0?e.checked:n.defaultChecked),c=z(()=>u.value===e.checkedValue);Ne(()=>e.checked,()=>{u.value=e.checked});const{prefixCls:d,direction:f,size:p}=He("switch",e),[v,m]=tme(d),h=be(),g=()=>{var O;(O=h.value)===null||O===void 0||O.focus()};o({focus:g,blur:()=>{var O;(O=h.value)===null||O===void 0||O.blur()}}),Qe(()=>{ht(()=>{e.autofocus&&!s.value&&h.value.focus()})});const y=(O,A)=>{s.value||(a("update:checked",O),a("change",O,A),i.onFieldChange())},w=O=>{a("blur",O)},b=O=>{g();const A=c.value?e.unCheckedValue:e.checkedValue;y(A,O),a("click",A,O)},S=O=>{O.keyCode===_e.LEFT?y(e.unCheckedValue,O):O.keyCode===_e.RIGHT&&y(e.checkedValue,O),a("keydown",O)},$=O=>{var A;(A=h.value)===null||A===void 0||A.blur(),a("mouseup",O)},D=z(()=>({[`${d.value}-small`]:p.value==="small",[`${d.value}-loading`]:e.loading,[`${d.value}-checked`]:c.value,[`${d.value}-disabled`]:s.value,[d.value]:!0,[`${d.value}-rtl`]:f.value==="rtl",[m.value]:!0}));return()=>{var O;return v(C(b1,null,{default:()=>[C("button",j(j(j({},pt(e,["prefixCls","checkedChildren","unCheckedChildren","checked","autofocus","checkedValue","unCheckedValue","id","onChange","onUpdate:checked"])),n),{},{id:(O=e.id)!==null&&O!==void 0?O:i.id.value,onKeydown:S,onClick:b,onBlur:w,onMouseup:$,type:"button",role:"switch","aria-checked":u.value,disabled:s.value||e.loading,class:[n.class,D.value],ref:h}),[C("div",{class:`${d.value}-handle`},[e.loading?C(Lr,{class:`${d.value}-loading-icon`},null):null]),C("span",{class:`${d.value}-inner`},[C("span",{class:`${d.value}-inner-checked`},[Sn(r,e,"checkedChildren")]),C("span",{class:`${d.value}-inner-unchecked`},[Sn(r,e,"unCheckedChildren")])])])]}))}}}),ame=rn(ome),o5=Symbol("TableContextProps"),ime=e=>{it(o5,e)},qo=()=>lt(o5,{}),lme="RC_TABLE_KEY";function a5(e){return e==null?[]:Array.isArray(e)?e:[e]}function i5(e,t){if(!t&&typeof t!="number")return e;const n=a5(t);let r=e;for(let o=0;o<n.length;o+=1){if(!r)return null;const a=n[o];r=r[a]}return r}function mv(e){const t=[],n={};return e.forEach(r=>{const{key:o,dataIndex:a}=r||{};let i=o||a5(a).join("-")||lme;for(;n[i];)i=`${i}_next`;n[i]=!0,t.push(i)}),t}function sme(){const e={};function t(a,i){i&&Object.keys(i).forEach(l=>{const s=i[l];s&&typeof s=="object"?(a[l]=a[l]||{},t(a[l],s)):a[l]=s})}for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return r.forEach(a=>{t(e,a)}),e}function j0(e){return e!=null}const l5=Symbol("SlotsContextProps"),ume=e=>{it(l5,e)},bw=()=>lt(l5,z(()=>({}))),s5=Symbol("ContextProps"),cme=e=>{it(s5,e)},dme=()=>lt(s5,{onResizeColumn:()=>{}});globalThis&&globalThis.__rest;const es="RC_TABLE_INTERNAL_COL_DEFINE",u5=Symbol("HoverContextProps"),fme=e=>{it(u5,e)},pme=()=>lt(u5,{startRow:pe(-1),endRow:pe(-1),onHover(){}}),V0=pe(!1),mme=()=>{Qe(()=>{V0.value=V0.value||fx("position","sticky")})},vme=()=>V0;var hme=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function gme(e,t,n,r){const o=e+t-1;return e<=r&&o>=n}function yme(e){return e&&typeof e=="object"&&!Array.isArray(e)&&!br(e)}const vv=he({name:"Cell",props:["prefixCls","record","index","renderIndex","dataIndex","customRender","component","colSpan","rowSpan","fixLeft","fixRight","firstFixLeft","lastFixLeft","firstFixRight","lastFixRight","appendNode","additionalProps","ellipsis","align","rowType","isSticky","column","cellType","transformCellText"],setup(e,t){let{slots:n}=t;const r=bw(),{onHover:o,startRow:a,endRow:i}=pme(),l=z(()=>{var v,m,h,g;return(h=(v=e.colSpan)!==null&&v!==void 0?v:(m=e.additionalProps)===null||m===void 0?void 0:m.colSpan)!==null&&h!==void 0?h:(g=e.additionalProps)===null||g===void 0?void 0:g.colspan}),s=z(()=>{var v,m,h,g;return(h=(v=e.rowSpan)!==null&&v!==void 0?v:(m=e.additionalProps)===null||m===void 0?void 0:m.rowSpan)!==null&&h!==void 0?h:(g=e.additionalProps)===null||g===void 0?void 0:g.rowspan}),u=Pr(()=>{const{index:v}=e;return gme(v,s.value||1,a.value,i.value)}),c=vme(),d=(v,m)=>{var h;const{record:g,index:x,additionalProps:y}=e;g&&o(x,x+m-1),(h=y==null?void 0:y.onMouseenter)===null||h===void 0||h.call(y,v)},f=v=>{var m;const{record:h,additionalProps:g}=e;h&&o(-1,-1),(m=g==null?void 0:g.onMouseleave)===null||m===void 0||m.call(g,v)},p=v=>{const m=nn(v)[0];return br(m)?m.type===tm?m.children:Array.isArray(m.children)?p(m.children):void 0:m};return()=>{var v,m,h,g,x,y;const{prefixCls:w,record:b,index:S,renderIndex:$,dataIndex:D,customRender:O,component:A="td",fixLeft:T,fixRight:M,firstFixLeft:B,lastFixLeft:F,firstFixRight:P,lastFixRight:I,appendNode:N=(v=n.appendNode)===null||v===void 0?void 0:v.call(n),additionalProps:R={},ellipsis:_,align:L,rowType:k,isSticky:H,column:V={},cellType:U}=e,q=`${w}-cell`;let K,X;const re=(m=n.default)===null||m===void 0?void 0:m.call(n);if(j0(re)||U==="header")X=re;else{const ne=i5(b,D);if(X=ne,O){const oe=O({text:ne,value:ne,record:b,index:S,renderIndex:$,column:V.__originColumn__});yme(oe)?(X=oe.children,K=oe.props):X=oe}if(!(es in V)&&U==="body"&&r.value.bodyCell&&!(!((h=V.slots)===null||h===void 0)&&h.customRender)){const oe=nm(r.value,"bodyCell",{text:ne,value:ne,record:b,index:S,column:V.__originColumn__},()=>{const ie=X===void 0?ne:X;return[typeof ie=="object"&&hn(ie)||typeof ie!="object"?ie:null]});X=Lt(oe)}e.transformCellText&&(X=e.transformCellText({text:X,record:b,index:S,column:V.__originColumn__}))}typeof X=="object"&&!Array.isArray(X)&&!br(X)&&(X=null),_&&(F||P)&&(X=C("span",{class:`${q}-content`},[X])),Array.isArray(X)&&X.length===1&&(X=X[0]);const ee=K||{},{colSpan:G,rowSpan:le,style:ue,class:me}=ee,Se=hme(ee,["colSpan","rowSpan","style","class"]),Q=(g=G!==void 0?G:l.value)!==null&&g!==void 0?g:1,te=(x=le!==void 0?le:s.value)!==null&&x!==void 0?x:1;if(Q===0||te===0)return null;const de={},Y=typeof T=="number"&&c.value,ae=typeof M=="number"&&c.value;Y&&(de.position="sticky",de.left=`${T}px`),ae&&(de.position="sticky",de.right=`${M}px`);const ce={};L&&(ce.textAlign=L);let Ce;const ye=_===!0?{showTitle:!0}:_;ye&&(ye.showTitle||k==="header")&&(typeof X=="string"||typeof X=="number"?Ce=X.toString():br(X)&&(Ce=p([X])));const J=E(E(E({title:Ce},Se),R),{colSpan:Q!==1?Q:null,rowSpan:te!==1?te:null,class:ge(q,{[`${q}-fix-left`]:Y&&c.value,[`${q}-fix-left-first`]:B&&c.value,[`${q}-fix-left-last`]:F&&c.value,[`${q}-fix-right`]:ae&&c.value,[`${q}-fix-right-first`]:P&&c.value,[`${q}-fix-right-last`]:I&&c.value,[`${q}-ellipsis`]:_,[`${q}-with-append`]:N,[`${q}-fix-sticky`]:(Y||ae)&&H&&c.value,[`${q}-row-hover`]:!K&&u.value},R.class,me),onMouseenter:ne=>{d(ne,te)},onMouseleave:f,style:[R.style,ce,de,ue]});return C(A,J,{default:()=>[N,X,(y=n.dragHandle)===null||y===void 0?void 0:y.call(n)]})}}});function xw(e,t,n,r,o){const a=n[e]||{},i=n[t]||{};let l,s;a.fixed==="left"?l=r.left[e]:i.fixed==="right"&&(s=r.right[t]);let u=!1,c=!1,d=!1,f=!1;const p=n[t+1],v=n[e-1];return o==="rtl"?l!==void 0?f=!(v&&v.fixed==="left"):s!==void 0&&(d=!(p&&p.fixed==="right")):l!==void 0?u=!(p&&p.fixed==="left"):s!==void 0&&(c=!(v&&v.fixed==="right")),{fixLeft:l,fixRight:s,lastFixLeft:u,firstFixRight:c,lastFixRight:d,firstFixLeft:f,isSticky:r.isSticky}}const rE={mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"},touch:{start:"touchstart",move:"touchmove",stop:"touchend"}},oE=50,bme=he({compatConfig:{MODE:3},name:"DragHandle",props:{prefixCls:String,width:{type:Number,required:!0},minWidth:{type:Number,default:oE},maxWidth:{type:Number,default:1/0},column:{type:Object,default:void 0}},setup(e){let t=0,n={remove:()=>{}},r={remove:()=>{}};const o=()=>{n.remove(),r.remove()};Cr(()=>{o()}),Je(()=>{qt(!isNaN(e.width),"Table","width must be a number when use resizable")});const{onResizeColumn:a}=dme(),i=z(()=>typeof e.minWidth=="number"&&!isNaN(e.minWidth)?e.minWidth:oE),l=z(()=>typeof e.maxWidth=="number"&&!isNaN(e.maxWidth)?e.maxWidth:1/0),s=Kn();let u=0;const c=pe(!1);let d;const f=y=>{let w=0;y.touches?y.touches.length?w=y.touches[0].pageX:w=y.changedTouches[0].pageX:w=y.pageX;const b=t-w;let S=Math.max(u-b,i.value);S=Math.min(S,l.value),tt.cancel(d),d=tt(()=>{a(S,e.column.__originColumn__)})},p=y=>{f(y)},v=y=>{c.value=!1,f(y),o()},m=(y,w)=>{c.value=!0,o(),u=s.vnode.el.parentNode.getBoundingClientRect().width,!(y instanceof MouseEvent&&y.which!==1)&&(y.stopPropagation&&y.stopPropagation(),t=y.touches?y.touches[0].pageX:y.pageX,n=en(document.documentElement,w.move,p),r=en(document.documentElement,w.stop,v))},h=y=>{y.stopPropagation(),y.preventDefault(),m(y,rE.mouse)},g=y=>{y.stopPropagation(),y.preventDefault(),m(y,rE.touch)},x=y=>{y.stopPropagation(),y.preventDefault()};return()=>{const{prefixCls:y}=e,w={[An?"onTouchstartPassive":"onTouchstart"]:b=>g(b)};return C("div",j(j({class:`${y}-resize-handle ${c.value?"dragging":""}`,onMousedown:h},w),{},{onClick:x}),[C("div",{class:`${y}-resize-handle-line`},null)])}}}),xme=he({name:"HeaderRow",props:["cells","stickyOffsets","flattenColumns","rowComponent","cellComponent","index","customHeaderRow"],setup(e){const t=qo();return()=>{const{prefixCls:n,direction:r}=t,{cells:o,stickyOffsets:a,flattenColumns:i,rowComponent:l,cellComponent:s,customHeaderRow:u,index:c}=e;let d;u&&(d=u(o.map(p=>p.column),c));const f=mv(o.map(p=>p.column));return C(l,d,{default:()=>[o.map((p,v)=>{const{column:m}=p,h=xw(p.colStart,p.colEnd,i,a,r);let g;m&&m.customHeaderCell&&(g=p.column.customHeaderCell(m));const x=m;return C(vv,j(j(j({},p),{},{cellType:"header",ellipsis:m.ellipsis,align:m.align,component:s,prefixCls:n,key:f[v]},h),{},{additionalProps:g,rowType:"header",column:m}),{default:()=>m.title,dragHandle:()=>x.resizable?C(bme,{prefixCls:n,width:x.width,minWidth:x.minWidth,maxWidth:x.maxWidth,column:x},null):null})})]})}}});function wme(e){const t=[];function n(o,a){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;t[i]=t[i]||[];let l=a;return o.filter(Boolean).map(u=>{const c={key:u.key,class:ge(u.className,u.class),column:u,colStart:l};let d=1;const f=u.children;return f&&f.length>0&&(d=n(f,l,i+1).reduce((p,v)=>p+v,0),c.hasSubColumns=!0),"colSpan"in u&&({colSpan:d}=u),"rowSpan"in u&&(c.rowSpan=u.rowSpan),c.colSpan=d,c.colEnd=c.colStart+d-1,t[i].push(c),l+=d,d})}n(e,0);const r=t.length;for(let o=0;o<r;o+=1)t[o].forEach(a=>{!("rowSpan"in a)&&!a.hasSubColumns&&(a.rowSpan=r-o)});return t}const aE=he({name:"Header",inheritAttrs:!1,props:["columns","flattenColumns","stickyOffsets","customHeaderRow"],setup(e){const t=qo(),n=z(()=>wme(e.columns));return()=>{const{prefixCls:r,getComponent:o}=t,{stickyOffsets:a,flattenColumns:i,customHeaderRow:l}=e,s=o(["header","wrapper"],"thead"),u=o(["header","row"],"tr"),c=o(["header","cell"],"th");return C(s,{class:`${r}-thead`},{default:()=>[n.value.map((d,f)=>C(xme,{key:f,flattenColumns:i,cells:d,stickyOffsets:a,rowComponent:u,cellComponent:c,customHeaderRow:l,index:f},null))]})}}}),c5=Symbol("ExpandedRowProps"),Sme=e=>{it(c5,e)},Cme=()=>lt(c5,{}),d5=he({name:"ExpandedRow",inheritAttrs:!1,props:["prefixCls","component","cellComponent","expanded","colSpan","isEmpty"],setup(e,t){let{slots:n,attrs:r}=t;const o=qo(),a=Cme(),{fixHeader:i,fixColumn:l,componentWidth:s,horizonScroll:u}=a;return()=>{const{prefixCls:c,component:d,cellComponent:f,expanded:p,colSpan:v,isEmpty:m}=e;return C(d,{class:r.class,style:{display:p?null:"none"}},{default:()=>[C(vv,{component:f,prefixCls:c,colSpan:v},{default:()=>{var h;let g=(h=n.default)===null||h===void 0?void 0:h.call(n);return(m?u.value:l.value)&&(g=C("div",{style:{width:`${s.value-(i.value?o.scrollbarSize:0)}px`,position:"sticky",left:0,overflow:"hidden"},class:`${c}-expanded-row-fixed`},[g])),g}})]})}}}),$me=he({name:"MeasureCell",props:["columnKey"],setup(e,t){let{emit:n}=t;const r=be();return Qe(()=>{r.value&&n("columnResize",e.columnKey,r.value.offsetWidth)}),()=>C(Qr,{onResize:o=>{let{offsetWidth:a}=o;n("columnResize",e.columnKey,a)}},{default:()=>[C("td",{ref:r,style:{padding:0,border:0,height:0}},[C("div",{style:{height:0,overflow:"hidden"}},[sr(" ")])])]})}}),f5=Symbol("BodyContextProps"),Eme=e=>{it(f5,e)},p5=()=>lt(f5,{}),Dme=he({name:"BodyRow",inheritAttrs:!1,props:["record","index","renderIndex","recordKey","expandedKeys","rowComponent","cellComponent","customRow","rowExpandable","indent","rowKey","getRowKey","childrenColumnName"],setup(e,t){let{attrs:n}=t;const r=qo(),o=p5(),a=pe(!1),i=z(()=>e.expandedKeys&&e.expandedKeys.has(e.recordKey));Je(()=>{i.value&&(a.value=!0)});const l=z(()=>o.expandableType==="row"&&(!e.rowExpandable||e.rowExpandable(e.record))),s=z(()=>o.expandableType==="nest"),u=z(()=>e.childrenColumnName&&e.record&&e.record[e.childrenColumnName]),c=z(()=>l.value||s.value),d=(h,g)=>{o.onTriggerExpand(h,g)},f=z(()=>{var h;return((h=e.customRow)===null||h===void 0?void 0:h.call(e,e.record,e.index))||{}}),p=function(h){var g,x;o.expandRowByClick&&c.value&&d(e.record,h);for(var y=arguments.length,w=new Array(y>1?y-1:0),b=1;b<y;b++)w[b-1]=arguments[b];(x=(g=f.value)===null||g===void 0?void 0:g.onClick)===null||x===void 0||x.call(g,h,...w)},v=z(()=>{const{record:h,index:g,indent:x}=e,{rowClassName:y}=o;return typeof y=="string"?y:typeof y=="function"?y(h,g,x):""}),m=z(()=>mv(o.flattenColumns));return()=>{const{class:h,style:g}=n,{record:x,index:y,rowKey:w,indent:b=0,rowComponent:S,cellComponent:$}=e,{prefixCls:D,fixedInfoList:O,transformCellText:A}=r,{flattenColumns:T,expandedRowClassName:M,indentSize:B,expandIcon:F,expandedRowRender:P,expandIconColumnIndex:I}=o,N=C(S,j(j({},f.value),{},{"data-row-key":w,class:ge(h,`${D}-row`,`${D}-row-level-${b}`,v.value,f.value.class),style:[g,f.value.style],onClick:p}),{default:()=>[T.map((_,L)=>{const{customRender:k,dataIndex:H,className:V}=_,U=m[L],q=O[L];let K;_.customCell&&(K=_.customCell(x,y,_));const X=L===(I||0)&&s.value?C(dt,null,[C("span",{style:{paddingLeft:`${B*b}px`},class:`${D}-row-indent indent-level-${b}`},null),F({prefixCls:D,expanded:i.value,expandable:u.value,record:x,onExpand:d})]):null;return C(vv,j(j({cellType:"body",class:V,ellipsis:_.ellipsis,align:_.align,component:$,prefixCls:D,key:U,record:x,index:y,renderIndex:e.renderIndex,dataIndex:H,customRender:k},q),{},{additionalProps:K,column:_,transformCellText:A,appendNode:X}),null)})]});let R;if(l.value&&(a.value||i.value)){const _=P({record:x,index:y,indent:b+1,expanded:i.value}),L=M&&M(x,y,b);R=C(d5,{expanded:i.value,class:ge(`${D}-expanded-row`,`${D}-expanded-row-level-${b+1}`,L),prefixCls:D,component:S,cellComponent:$,colSpan:T.length,isEmpty:!1},{default:()=>[_]})}return C(dt,null,[N,R])}}});function m5(e,t,n,r,o,a){const i=[];i.push({record:e,indent:t,index:a});const l=o(e),s=r==null?void 0:r.has(l);if(e&&Array.isArray(e[n])&&s)for(let u=0;u<e[n].length;u+=1){const c=m5(e[n][u],t+1,n,r,o,u);i.push(...c)}return i}function Ame(e,t,n,r){return z(()=>{const a=t.value,i=n.value,l=e.value;if(i!=null&&i.size){const s=[];for(let u=0;u<(l==null?void 0:l.length);u+=1){const c=l[u];s.push(...m5(c,0,a,i,r.value,u))}return s}return l==null?void 0:l.map((s,u)=>({record:s,indent:0,index:u}))})}const v5=Symbol("ResizeContextProps"),Ome=e=>{it(v5,e)},Tme=()=>lt(v5,{onColumnResize:()=>{}}),Mme=he({name:"Body",props:["data","getRowKey","measureColumnWidth","expandedKeys","customRow","rowExpandable","childrenColumnName"],setup(e,t){let{slots:n}=t;const r=Tme(),o=qo(),a=p5(),i=Ame(Ye(e,"data"),Ye(e,"childrenColumnName"),Ye(e,"expandedKeys"),Ye(e,"getRowKey")),l=pe(-1),s=pe(-1);let u;return fme({startRow:l,endRow:s,onHover:(c,d)=>{clearTimeout(u),u=setTimeout(()=>{l.value=c,s.value=d},100)}}),()=>{var c;const{data:d,getRowKey:f,measureColumnWidth:p,expandedKeys:v,customRow:m,rowExpandable:h,childrenColumnName:g}=e,{onColumnResize:x}=r,{prefixCls:y,getComponent:w}=o,{flattenColumns:b}=a,S=w(["body","wrapper"],"tbody"),$=w(["body","row"],"tr"),D=w(["body","cell"],"td");let O;d.length?O=i.value.map((T,M)=>{const{record:B,indent:F,index:P}=T,I=f(B,M);return C(Dme,{key:I,rowKey:I,record:B,recordKey:I,index:M,renderIndex:P,rowComponent:$,cellComponent:D,expandedKeys:v,customRow:m,getRowKey:f,rowExpandable:h,childrenColumnName:g,indent:F},null)}):O=C(d5,{expanded:!0,class:`${y}-placeholder`,prefixCls:y,component:$,cellComponent:D,colSpan:b.length,isEmpty:!0},{default:()=>[(c=n.emptyNode)===null||c===void 0?void 0:c.call(n)]});const A=mv(b);return C(S,{class:`${y}-tbody`},{default:()=>[p&&C("tr",{"aria-hidden":"true",class:`${y}-measure-row`,style:{height:0,fontSize:0}},[A.map(T=>C($me,{key:T,columnKey:T,onColumnResize:x},null))]),O]})}}}),ja={};var Nme=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function W0(e){return e.reduce((t,n)=>{const{fixed:r}=n,o=r===!0?"left":r,a=n.children;return a&&a.length>0?[...t,...W0(a).map(i=>E({fixed:o},i))]:[...t,E(E({},n),{fixed:o})]},[])}function Pme(e){return e.map(t=>{const{fixed:n}=t,r=Nme(t,["fixed"]);let o=n;return n==="left"?o="right":n==="right"&&(o="left"),E({fixed:o},r)})}function Ime(e,t){let{prefixCls:n,columns:r,expandable:o,expandedKeys:a,getRowKey:i,onTriggerExpand:l,expandIcon:s,rowExpandable:u,expandIconColumnIndex:c,direction:d,expandRowByClick:f,expandColumnWidth:p,expandFixed:v}=e;const m=bw(),h=z(()=>{if(o.value){let y=r.value.slice();if(!y.includes(ja)){const B=c.value||0;B>=0&&y.splice(B,0,ja)}const w=y.indexOf(ja);y=y.filter((B,F)=>B!==ja||F===w);const b=r.value[w];let S;(v.value==="left"||v.value)&&!c.value?S="left":(v.value==="right"||v.value)&&c.value===r.value.length?S="right":S=b?b.fixed:null;const $=a.value,D=u.value,O=s.value,A=n.value,T=f.value,M={[es]:{class:`${n.value}-expand-icon-col`,columnType:"EXPAND_COLUMN"},title:nm(m.value,"expandColumnTitle",{},()=>[""]),fixed:S,class:`${n.value}-row-expand-icon-cell`,width:p.value,customRender:B=>{let{record:F,index:P}=B;const I=i.value(F,P),N=$.has(I),R=D?D(F):!0,_=O({prefixCls:A,expanded:N,expandable:R,record:F,onExpand:l});return T?C("span",{onClick:L=>L.stopPropagation()},[_]):_}};return y.map(B=>B===ja?M:B)}return r.value.filter(y=>y!==ja)}),g=z(()=>{let y=h.value;return t.value&&(y=t.value(y)),y.length||(y=[{customRender:()=>null}]),y}),x=z(()=>d.value==="rtl"?Pme(W0(g.value)):W0(g.value));return[g,x]}function h5(e){const t=pe(e);let n;const r=pe([]);function o(a){r.value.push(a),tt.cancel(n),n=tt(()=>{const i=r.value;r.value=[],i.forEach(l=>{t.value=l(t.value)})})}return st(()=>{tt.cancel(n)}),[t,o]}function _me(e){const t=be(e||null),n=be();function r(){clearTimeout(n.value)}function o(i){t.value=i,r(),n.value=setTimeout(()=>{t.value=null,n.value=void 0},100)}function a(){return t.value}return st(()=>{r()}),[o,a]}function Bme(e,t,n){return z(()=>{const o=[],a=[];let i=0,l=0;const s=e.value,u=t.value,c=n.value;for(let d=0;d<u;d+=1)if(c==="rtl"){a[d]=l,l+=s[d]||0;const f=u-d-1;o[f]=i,i+=s[f]||0}else{o[d]=i,i+=s[d]||0;const f=u-d-1;a[f]=l,l+=s[f]||0}return{left:o,right:a}})}var Fme=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function g5(e){let{colWidths:t,columns:n,columCount:r}=e;const o=[],a=r||n.length;let i=!1;for(let l=a-1;l>=0;l-=1){const s=t[l],u=n&&n[l],c=u&&u[es];if(s||c||i){const d=c||{},f=Fme(d,["columnType"]);o.unshift(C("col",j({key:l,style:{width:typeof s=="number"?`${s}px`:s}},f),null)),i=!0}}return C("colgroup",null,[o])}function U0(e,t){let{slots:n}=t;var r;return C("div",null,[(r=n.default)===null||r===void 0?void 0:r.call(n)])}U0.displayName="Panel";let Rme=0;const zme=he({name:"Summary",props:["fixed"],setup(e,t){let{slots:n}=t;const r=qo(),o=`table-summary-uni-key-${++Rme}`,a=z(()=>e.fixed===""||e.fixed);return Je(()=>{r.summaryCollect(o,a.value)}),st(()=>{r.summaryCollect(o,!1)}),()=>{var i;return(i=n.default)===null||i===void 0?void 0:i.call(n)}}}),Lme=zme,kme=he({compatConfig:{MODE:3},name:"ATableSummaryRow",setup(e,t){let{slots:n}=t;return()=>{var r;return C("tr",null,[(r=n.default)===null||r===void 0?void 0:r.call(n)])}}}),y5=Symbol("SummaryContextProps"),Hme=e=>{it(y5,e)},jme=()=>lt(y5,{}),Vme=he({name:"ATableSummaryCell",props:["index","colSpan","rowSpan","align"],setup(e,t){let{attrs:n,slots:r}=t;const o=qo(),a=jme();return()=>{const{index:i,colSpan:l=1,rowSpan:s,align:u}=e,{prefixCls:c,direction:d}=o,{scrollColumnIndex:f,stickyOffsets:p,flattenColumns:v}=a,h=i+l-1+1===f?l+1:l,g=xw(i,i+h-1,v,p,d);return C(vv,j({class:n.class,index:i,component:"td",prefixCls:c,record:null,dataIndex:null,align:u,colSpan:h,rowSpan:s,customRender:()=>{var x;return(x=r.default)===null||x===void 0?void 0:x.call(r)}},g),null)}}}),hd=he({name:"Footer",inheritAttrs:!1,props:["stickyOffsets","flattenColumns"],setup(e,t){let{slots:n}=t;const r=qo();return Hme(_t({stickyOffsets:Ye(e,"stickyOffsets"),flattenColumns:Ye(e,"flattenColumns"),scrollColumnIndex:z(()=>{const o=e.flattenColumns.length-1,a=e.flattenColumns[o];return a!=null&&a.scrollbar?o:null})})),()=>{var o;const{prefixCls:a}=r;return C("tfoot",{class:`${a}-summary`},[(o=n.default)===null||o===void 0?void 0:o.call(n)])}}}),Wme=Lme;function Ume(e){let{prefixCls:t,record:n,onExpand:r,expanded:o,expandable:a}=e;const i=`${t}-row-expand-icon`;if(!a)return C("span",{class:[i,`${t}-row-spaced`]},null);const l=s=>{r(n,s),s.stopPropagation()};return C("span",{class:{[i]:!0,[`${t}-row-expanded`]:o,[`${t}-row-collapsed`]:!o},onClick:l},null)}function Kme(e,t,n){const r=[];function o(a){(a||[]).forEach((i,l)=>{r.push(t(i,l)),o(i[n])})}return o(e),r}const qme=he({name:"StickyScrollBar",inheritAttrs:!1,props:["offsetScroll","container","scrollBodyRef","scrollBodySizeInfo"],emits:["scroll"],setup(e,t){let{emit:n,expose:r}=t;const o=qo(),a=pe(0),i=pe(0),l=pe(0);Je(()=>{a.value=e.scrollBodySizeInfo.scrollWidth||0,i.value=e.scrollBodySizeInfo.clientWidth||0,l.value=a.value&&i.value*(i.value/a.value)},{flush:"post"});const s=pe(),[u,c]=h5({scrollLeft:0,isHiddenScrollBar:!0}),d=be({delta:0,x:0}),f=pe(!1),p=()=>{f.value=!1},v=$=>{d.value={delta:$.pageX-u.value.scrollLeft,x:0},f.value=!0,$.preventDefault()},m=$=>{const{buttons:D}=$||(window==null?void 0:window.event);if(!f.value||D===0){f.value&&(f.value=!1);return}let O=d.value.x+$.pageX-d.value.x-d.value.delta;O<=0&&(O=0),O+l.value>=i.value&&(O=i.value-l.value),n("scroll",{scrollLeft:O/i.value*(a.value+2)}),d.value.x=$.pageX},h=()=>{if(!e.scrollBodyRef.value)return;const $=Op(e.scrollBodyRef.value).top,D=$+e.scrollBodyRef.value.offsetHeight,O=e.container===window?document.documentElement.scrollTop+window.innerHeight:Op(e.container).top+e.container.clientHeight;D-Xf()<=O||$>=O-e.offsetScroll?c(A=>E(E({},A),{isHiddenScrollBar:!0})):c(A=>E(E({},A),{isHiddenScrollBar:!1}))};r({setScrollLeft:$=>{c(D=>E(E({},D),{scrollLeft:$/a.value*i.value||0}))}});let x=null,y=null,w=null,b=null;Qe(()=>{x=en(document.body,"mouseup",p,!1),y=en(document.body,"mousemove",m,!1),w=en(window,"resize",h,!1)}),Vy(()=>{ht(()=>{h()})}),Qe(()=>{setTimeout(()=>{Ne([l,f],()=>{h()},{immediate:!0,flush:"post"})})}),Ne(()=>e.container,()=>{b==null||b.remove(),b=en(e.container,"scroll",h,!1)},{immediate:!0,flush:"post"}),st(()=>{x==null||x.remove(),y==null||y.remove(),b==null||b.remove(),w==null||w.remove()}),Ne(()=>E({},u.value),($,D)=>{$.isHiddenScrollBar!==(D==null?void 0:D.isHiddenScrollBar)&&!$.isHiddenScrollBar&&c(O=>{const A=e.scrollBodyRef.value;return A?E(E({},O),{scrollLeft:A.scrollLeft/A.scrollWidth*A.clientWidth}):O})},{immediate:!0});const S=Xf();return()=>{if(a.value<=i.value||!l.value||u.value.isHiddenScrollBar)return null;const{prefixCls:$}=o;return C("div",{style:{height:`${S}px`,width:`${i.value}px`,bottom:`${e.offsetScroll}px`},class:`${$}-sticky-scroll`},[C("div",{onMousedown:v,ref:s,class:ge(`${$}-sticky-scroll-bar`,{[`${$}-sticky-scroll-bar-active`]:f.value}),style:{width:`${l.value}px`,transform:`translate3d(${u.value.scrollLeft}px, 0, 0)`}},null)])}}}),iE=Co()?window:null;function Gme(e,t){return z(()=>{const{offsetHeader:n=0,offsetSummary:r=0,offsetScroll:o=0,getContainer:a=()=>iE}=typeof e.value=="object"?e.value:{},i=a()||iE,l=!!e.value;return{isSticky:l,stickyClassName:l?`${t.value}-sticky-holder`:"",offsetHeader:n,offsetSummary:r,offsetScroll:o,container:i}})}function Xme(e,t){return z(()=>{const n=[],r=e.value,o=t.value;for(let a=0;a<o;a+=1){const i=r[a];if(i!==void 0)n[a]=i;else return null}return n})}const lE=he({name:"FixedHolder",inheritAttrs:!1,props:["columns","flattenColumns","stickyOffsets","customHeaderRow","noData","maxContentScroll","colWidths","columCount","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName"],emits:["scroll"],setup(e,t){let{attrs:n,slots:r,emit:o}=t;const a=qo(),i=z(()=>a.isSticky&&!e.fixHeader?0:a.scrollbarSize),l=be(),s=m=>{const{currentTarget:h,deltaX:g}=m;g&&(o("scroll",{currentTarget:h,scrollLeft:h.scrollLeft+g}),m.preventDefault())},u=be();Qe(()=>{ht(()=>{u.value=en(l.value,"wheel",s)})}),st(()=>{var m;(m=u.value)===null||m===void 0||m.remove()});const c=z(()=>e.flattenColumns.every(m=>m.width&&m.width!==0&&m.width!=="0px")),d=be([]),f=be([]);Je(()=>{const m=e.flattenColumns[e.flattenColumns.length-1],h={fixed:m?m.fixed:null,scrollbar:!0,customHeaderCell:()=>({class:`${a.prefixCls}-cell-scrollbar`})};d.value=i.value?[...e.columns,h]:e.columns,f.value=i.value?[...e.flattenColumns,h]:e.flattenColumns});const p=z(()=>{const{stickyOffsets:m,direction:h}=e,{right:g,left:x}=m;return E(E({},m),{left:h==="rtl"?[...x.map(y=>y+i.value),0]:x,right:h==="rtl"?g:[...g.map(y=>y+i.value),0],isSticky:a.isSticky})}),v=Xme(Ye(e,"colWidths"),Ye(e,"columCount"));return()=>{var m;const{noData:h,columCount:g,stickyTopOffset:x,stickyBottomOffset:y,stickyClassName:w,maxContentScroll:b}=e,{isSticky:S}=a;return C("div",{style:E({overflow:"hidden"},S?{top:`${x}px`,bottom:`${y}px`}:{}),ref:l,class:ge(n.class,{[w]:!!w})},[C("table",{style:{tableLayout:"fixed",visibility:h||v.value?null:"hidden"}},[(!h||!b||c.value)&&C(g5,{colWidths:v.value?[...v.value,i.value]:[],columCount:g+1,columns:f.value},null),(m=r.default)===null||m===void 0?void 0:m.call(r,E(E({},e),{stickyOffsets:p.value,columns:d.value,flattenColumns:f.value}))])])}}});function sE(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return _t(Cq(n.map(o=>[o,Ye(e,o)])))}const Yme=[],Zme={},K0="rc-table-internal-hook",Jme=he({name:"Table",inheritAttrs:!1,props:["prefixCls","data","columns","rowKey","tableLayout","scroll","rowClassName","title","footer","id","showHeader","components","customRow","customHeaderRow","direction","expandFixed","expandColumnWidth","expandedRowKeys","defaultExpandedRowKeys","expandedRowRender","expandRowByClick","expandIcon","onExpand","onExpandedRowsChange","onUpdate:expandedRowKeys","defaultExpandAllRows","indentSize","expandIconColumnIndex","expandedRowClassName","childrenColumnName","rowExpandable","sticky","transformColumns","internalHooks","internalRefs","canExpandable","onUpdateInternalRefs","transformCellText"],emits:["expand","expandedRowsChange","updateInternalRefs","update:expandedRowKeys"],setup(e,t){let{attrs:n,slots:r,emit:o}=t;const a=z(()=>e.data||Yme),i=z(()=>!!a.value.length),l=z(()=>sme(e.components,{})),s=(ie,ve)=>i5(l.value,ie)||ve,u=z(()=>{const ie=e.rowKey;return typeof ie=="function"?ie:ve=>ve&&ve[ie]}),c=z(()=>e.expandIcon||Ume),d=z(()=>e.childrenColumnName||"children"),f=z(()=>e.expandedRowRender?"row":e.canExpandable||a.value.some(ie=>ie&&typeof ie=="object"&&ie[d.value])?"nest":!1),p=pe([]);Je(()=>{e.defaultExpandedRowKeys&&(p.value=e.defaultExpandedRowKeys),e.defaultExpandAllRows&&(p.value=Kme(a.value,u.value,d.value))})();const m=z(()=>new Set(e.expandedRowKeys||p.value||[])),h=ie=>{const ve=u.value(ie,a.value.indexOf(ie));let we;const $e=m.value.has(ve);$e?(m.value.delete(ve),we=[...m.value]):we=[...m.value,ve],p.value=we,o("expand",!$e,ie),o("update:expandedRowKeys",we),o("expandedRowsChange",we)},g=be(0),[x,y]=Ime(E(E({},Xr(e)),{expandable:z(()=>!!e.expandedRowRender),expandedKeys:m,getRowKey:u,onTriggerExpand:h,expandIcon:c}),z(()=>e.internalHooks===K0?e.transformColumns:null)),w=z(()=>({columns:x.value,flattenColumns:y.value})),b=be(),S=be(),$=be(),D=be({scrollWidth:0,clientWidth:0}),O=be(),[A,T]=It(!1),[M,B]=It(!1),[F,P]=h5(new Map),I=z(()=>mv(y.value)),N=z(()=>I.value.map(ie=>F.value.get(ie))),R=z(()=>y.value.length),_=Bme(N,R,Ye(e,"direction")),L=z(()=>e.scroll&&j0(e.scroll.y)),k=z(()=>e.scroll&&j0(e.scroll.x)||Boolean(e.expandFixed)),H=z(()=>k.value&&y.value.some(ie=>{let{fixed:ve}=ie;return ve})),V=be(),U=Gme(Ye(e,"sticky"),Ye(e,"prefixCls")),q=_t({}),K=z(()=>{const ie=Object.values(q)[0];return(L.value||U.value.isSticky)&&ie}),X=(ie,ve)=>{ve?q[ie]=ve:delete q[ie]},re=be({}),ee=be({}),G=be({});Je(()=>{L.value&&(ee.value={overflowY:"scroll",maxHeight:Ei(e.scroll.y)}),k.value&&(re.value={overflowX:"auto"},L.value||(ee.value={overflowY:"hidden"}),G.value={width:e.scroll.x===!0?"auto":Ei(e.scroll.x),minWidth:"100%"})});const le=(ie,ve)=>{gm(b.value)&&P(we=>{if(we.get(ie)!==ve){const $e=new Map(we);return $e.set(ie,ve),$e}return we})},[ue,me]=_me(null);function Se(ie,ve){if(!ve)return;if(typeof ve=="function"){ve(ie);return}const we=ve.$el||ve;we.scrollLeft!==ie&&(we.scrollLeft=ie)}const Q=ie=>{let{currentTarget:ve,scrollLeft:we}=ie;var $e;const Ae=e.direction==="rtl",xe=typeof we=="number"?we:ve.scrollLeft,Ee=ve||Zme;if((!me()||me()===Ee)&&(ue(Ee),Se(xe,S.value),Se(xe,$.value),Se(xe,O.value),Se(xe,($e=V.value)===null||$e===void 0?void 0:$e.setScrollLeft)),ve){const{scrollWidth:Te,clientWidth:Me}=ve;Ae?(T(-xe<Te-Me),B(-xe>0)):(T(xe>0),B(xe<Te-Me))}},te=()=>{k.value&&$.value?Q({currentTarget:$.value}):(T(!1),B(!1))};let de;const Y=ie=>{ie!==g.value&&(te(),g.value=b.value?b.value.offsetWidth:ie)},ae=ie=>{let{width:ve}=ie;if(clearTimeout(de),g.value===0){Y(ve);return}de=setTimeout(()=>{Y(ve)},100)};Ne([k,()=>e.data,()=>e.columns],()=>{k.value&&te()},{flush:"post"});const[ce,Ce]=It(0);mme(),Qe(()=>{ht(()=>{var ie,ve;te(),Ce(dj($.value).width),D.value={scrollWidth:((ie=$.value)===null||ie===void 0?void 0:ie.scrollWidth)||0,clientWidth:((ve=$.value)===null||ve===void 0?void 0:ve.clientWidth)||0}})}),Sr(()=>{ht(()=>{var ie,ve;const we=((ie=$.value)===null||ie===void 0?void 0:ie.scrollWidth)||0,$e=((ve=$.value)===null||ve===void 0?void 0:ve.clientWidth)||0;(D.value.scrollWidth!==we||D.value.clientWidth!==$e)&&(D.value={scrollWidth:we,clientWidth:$e})})}),Je(()=>{e.internalHooks===K0&&e.internalRefs&&e.onUpdateInternalRefs({body:$.value?$.value.$el||$.value:null})},{flush:"post"});const ye=z(()=>e.tableLayout?e.tableLayout:H.value?e.scroll.x==="max-content"?"auto":"fixed":L.value||U.value.isSticky||y.value.some(ie=>{let{ellipsis:ve}=ie;return ve})?"fixed":"auto"),J=()=>{var ie;return i.value?null:((ie=r.emptyText)===null||ie===void 0?void 0:ie.call(r))||"No Data"};ime(_t(E(E({},Xr(sE(e,"prefixCls","direction","transformCellText"))),{getComponent:s,scrollbarSize:ce,fixedInfoList:z(()=>y.value.map((ie,ve)=>xw(ve,ve,y.value,_.value,e.direction))),isSticky:z(()=>U.value.isSticky),summaryCollect:X}))),Eme(_t(E(E({},Xr(sE(e,"rowClassName","expandedRowClassName","expandRowByClick","expandedRowRender","expandIconColumnIndex","indentSize"))),{columns:x,flattenColumns:y,tableLayout:ye,expandIcon:c,expandableType:f,onTriggerExpand:h}))),Ome({onColumnResize:le}),Sme({componentWidth:g,fixHeader:L,fixColumn:H,horizonScroll:k});const ne=()=>C(Mme,{data:a.value,measureColumnWidth:L.value||k.value||U.value.isSticky,expandedKeys:m.value,rowExpandable:e.rowExpandable,getRowKey:u.value,customRow:e.customRow,childrenColumnName:d.value},{emptyNode:J}),oe=()=>C(g5,{colWidths:y.value.map(ie=>{let{width:ve}=ie;return ve}),columns:y.value},null);return()=>{var ie;const{prefixCls:ve,scroll:we,tableLayout:$e,direction:Ae,title:xe=r.title,footer:Ee=r.footer,id:Te,showHeader:Me,customHeaderRow:ze}=e,{isSticky:Be,offsetHeader:je,offsetSummary:W,offsetScroll:fe,stickyClassName:De,container:Ie}=U.value,Ve=s(["table"],"table"),Ge=s(["body"]),Ct=(ie=r.summary)===null||ie===void 0?void 0:ie.call(r,{pageData:a.value});let Nt=()=>null;const Wt={colWidths:N.value,columCount:y.value.length,stickyOffsets:_.value,customHeaderRow:ze,fixHeader:L.value,scroll:we};if(L.value||Be){let Er=()=>null;typeof Ge=="function"?(Er=()=>Ge(a.value,{scrollbarSize:ce.value,ref:$,onScroll:Q}),Wt.colWidths=y.value.map((Xn,Xo)=>{let{width:Le}=Xn;const et=Xo===x.value.length-1?Le-ce.value:Le;return typeof et=="number"&&!Number.isNaN(et)?et:0})):Er=()=>C("div",{style:E(E({},re.value),ee.value),onScroll:Q,ref:$,class:ge(`${ve}-body`)},[C(Ve,{style:E(E({},G.value),{tableLayout:ye.value})},{default:()=>[oe(),ne(),!K.value&&Ct&&C(hd,{stickyOffsets:_.value,flattenColumns:y.value},{default:()=>[Ct]})]})]);const Oo=E(E(E({noData:!a.value.length,maxContentScroll:k.value&&we.x==="max-content"},Wt),w.value),{direction:Ae,stickyClassName:De,onScroll:Q});Nt=()=>C(dt,null,[Me!==!1&&C(lE,j(j({},Oo),{},{stickyTopOffset:je,class:`${ve}-header`,ref:S}),{default:Xn=>C(dt,null,[C(aE,Xn,null),K.value==="top"&&C(hd,Xn,{default:()=>[Ct]})])}),Er(),K.value&&K.value!=="top"&&C(lE,j(j({},Oo),{},{stickyBottomOffset:W,class:`${ve}-summary`,ref:O}),{default:Xn=>C(hd,Xn,{default:()=>[Ct]})}),Be&&$.value&&C(qme,{ref:V,offsetScroll:fe,scrollBodyRef:$,onScroll:Q,container:Ie,scrollBodySizeInfo:D.value},null)])}else Nt=()=>C("div",{style:E(E({},re.value),ee.value),class:ge(`${ve}-content`),onScroll:Q,ref:$},[C(Ve,{style:E(E({},G.value),{tableLayout:ye.value})},{default:()=>[oe(),Me!==!1&&C(aE,j(j({},Wt),w.value),null),ne(),Ct&&C(hd,{stickyOffsets:_.value,flattenColumns:y.value},{default:()=>[Ct]})]})]);const fn=ci(n,{aria:!0,data:!0}),Ln=()=>C("div",j(j({},fn),{},{class:ge(ve,{[`${ve}-rtl`]:Ae==="rtl",[`${ve}-ping-left`]:A.value,[`${ve}-ping-right`]:M.value,[`${ve}-layout-fixed`]:$e==="fixed",[`${ve}-fixed-header`]:L.value,[`${ve}-fixed-column`]:H.value,[`${ve}-scroll-horizontal`]:k.value,[`${ve}-has-fix-left`]:y.value[0]&&y.value[0].fixed,[`${ve}-has-fix-right`]:y.value[R.value-1]&&y.value[R.value-1].fixed==="right",[n.class]:n.class}),style:n.style,id:Te,ref:b}),[xe&&C(U0,{class:`${ve}-title`},{default:()=>[xe(a.value)]}),C("div",{class:`${ve}-container`},[Nt()]),Ee&&C(U0,{class:`${ve}-footer`},{default:()=>[Ee(a.value)]})]);return k.value?C(Qr,{onResize:ae},{default:Ln}):Ln()}}});function Qme(){const e=E({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t<arguments.length;t++){const n=t<0||arguments.length<=t?void 0:arguments[t];n&&Object.keys(n).forEach(r=>{const o=n[r];o!==void 0&&(e[r]=o)})}return e}const q0=10;function eve(e,t){const n={current:e.current,pageSize:e.pageSize};return Object.keys(t&&typeof t=="object"?t:{}).forEach(o=>{const a=e[o];typeof a!="function"&&(n[o]=a)}),n}function tve(e,t,n){const r=z(()=>t.value&&typeof t.value=="object"?t.value:{}),o=z(()=>r.value.total||0),[a,i]=It(()=>({current:"defaultCurrent"in r.value?r.value.defaultCurrent:1,pageSize:"defaultPageSize"in r.value?r.value.defaultPageSize:q0})),l=z(()=>{const c=Qme(a.value,r.value,{total:o.value>0?o.value:e.value}),d=Math.ceil((o.value||e.value)/c.pageSize);return c.current>d&&(c.current=d||1),c}),s=(c,d)=>{t.value!==!1&&i({current:c??1,pageSize:d||l.value.pageSize})},u=(c,d)=>{var f,p;t.value&&((p=(f=r.value).onChange)===null||p===void 0||p.call(f,c,d)),s(c,d),n(c,d||l.value.pageSize)};return[z(()=>t.value===!1?{}:E(E({},l.value),{onChange:u})),s]}function nve(e,t,n){const r=pe({});Ne([e,t,n],()=>{const a=new Map,i=n.value,l=t.value;function s(u){u.forEach((c,d)=>{const f=i(c,d);a.set(f,c),c&&typeof c=="object"&&l in c&&s(c[l]||[])})}s(e.value),r.value={kvMap:a}},{deep:!0,immediate:!0});function o(a){return r.value.kvMap.get(a)}return[o]}const ra={},G0="SELECT_ALL",X0="SELECT_INVERT",Y0="SELECT_NONE",rve=[];function b5(e,t){let n=[];return(t||[]).forEach(r=>{n.push(r),r&&typeof r=="object"&&e in r&&(n=[...n,...b5(e,r[e])])}),n}function ove(e,t){const n=z(()=>{const O=e.value||{},{checkStrictly:A=!0}=O;return E(E({},O),{checkStrictly:A})}),[r,o]=Zt(n.value.selectedRowKeys||n.value.defaultSelectedRowKeys||rve,{value:z(()=>n.value.selectedRowKeys)}),a=pe(new Map),i=O=>{if(n.value.preserveSelectedRowKeys){const A=new Map;O.forEach(T=>{let M=t.getRecordByKey(T);!M&&a.value.has(T)&&(M=a.value.get(T)),A.set(T,M)}),a.value=A}};Je(()=>{i(r.value)});const l=z(()=>n.value.checkStrictly?null:$c(t.data.value,{externalGetKey:t.getRowKey.value,childrenPropName:t.childrenColumnName.value}).keyEntities),s=z(()=>b5(t.childrenColumnName.value,t.pageData.value)),u=z(()=>{const O=new Map,A=t.getRowKey.value,T=n.value.getCheckboxProps;return s.value.forEach((M,B)=>{const F=A(M,B),P=(T?T(M):null)||{};O.set(F,P)}),O}),{maxLevel:c,levelEntities:d}=tv(l),f=O=>{var A;return!!(!((A=u.value.get(t.getRowKey.value(O)))===null||A===void 0)&&A.disabled)},p=z(()=>{if(n.value.checkStrictly)return[r.value||[],[]];const{checkedKeys:O,halfCheckedKeys:A}=Yr(r.value,!0,l.value,c.value,d.value,f);return[O||[],A]}),v=z(()=>p.value[0]),m=z(()=>p.value[1]),h=z(()=>{const O=n.value.type==="radio"?v.value.slice(0,1):v.value;return new Set(O)}),g=z(()=>n.value.type==="radio"?new Set:new Set(m.value)),[x,y]=It(null),w=O=>{let A,T;i(O);const{preserveSelectedRowKeys:M,onChange:B}=n.value,{getRecordByKey:F}=t;M?(A=O,T=O.map(P=>a.value.get(P))):(A=[],T=[],O.forEach(P=>{const I=F(P);I!==void 0&&(A.push(P),T.push(I))})),o(A),B==null||B(A,T)},b=(O,A,T,M)=>{const{onSelect:B}=n.value,{getRecordByKey:F}=t||{};if(B){const P=T.map(I=>F(I));B(F(O),A,P,M)}w(T)},S=z(()=>{const{onSelectInvert:O,onSelectNone:A,selections:T,hideSelectAll:M}=n.value,{data:B,pageData:F,getRowKey:P,locale:I}=t;return!T||M?null:(T===!0?[G0,X0,Y0]:T).map(R=>R===G0?{key:"all",text:I.value.selectionAll,onSelect(){w(B.value.map((_,L)=>P.value(_,L)).filter(_=>{const L=u.value.get(_);return!(L!=null&&L.disabled)||h.value.has(_)}))}}:R===X0?{key:"invert",text:I.value.selectInvert,onSelect(){const _=new Set(h.value);F.value.forEach((k,H)=>{const V=P.value(k,H),U=u.value.get(V);U!=null&&U.disabled||(_.has(V)?_.delete(V):_.add(V))});const L=Array.from(_);O&&(qt(!1,"Table","`onSelectInvert` will be removed in future. Please use `onChange` instead."),O(L)),w(L)}}:R===Y0?{key:"none",text:I.value.selectNone,onSelect(){A==null||A(),w(Array.from(h.value).filter(_=>{const L=u.value.get(_);return L==null?void 0:L.disabled}))}}:R)}),$=z(()=>s.value.length);return[O=>{var A;const{onSelectAll:T,onSelectMultiple:M,columnWidth:B,type:F,fixed:P,renderCell:I,hideSelectAll:N,checkStrictly:R}=n.value,{prefixCls:_,getRecordByKey:L,getRowKey:k,expandType:H,getPopupContainer:V}=t;if(!e.value)return O.filter(Y=>Y!==ra);let U=O.slice();const q=new Set(h.value),K=s.value.map(k.value).filter(Y=>!u.value.get(Y).disabled),X=K.every(Y=>q.has(Y)),re=K.some(Y=>q.has(Y)),ee=()=>{const Y=[];X?K.forEach(ce=>{q.delete(ce),Y.push(ce)}):K.forEach(ce=>{q.has(ce)||(q.add(ce),Y.push(ce))});const ae=Array.from(q);T==null||T(!X,ae.map(ce=>L(ce)),Y.map(ce=>L(ce))),w(ae)};let G;if(F!=="radio"){let Y;if(S.value){const J=C(mn,{getPopupContainer:V.value},{default:()=>[S.value.map((ne,oe)=>{const{key:ie,text:ve,onSelect:we}=ne;return C(mn.Item,{key:ie||oe,onClick:()=>{we==null||we(K)}},{default:()=>[ve]})})]});Y=C("div",{class:`${_.value}-selection-extra`},[C(zo,{overlay:J,getPopupContainer:V.value},{default:()=>[C("span",null,[C(mc,null,null)])]})])}const ae=s.value.map((J,ne)=>{const oe=k.value(J,ne),ie=u.value.get(oe)||{};return E({checked:q.has(oe)},ie)}).filter(J=>{let{disabled:ne}=J;return ne}),ce=!!ae.length&&ae.length===$.value,Ce=ce&&ae.every(J=>{let{checked:ne}=J;return ne}),ye=ce&&ae.some(J=>{let{checked:ne}=J;return ne});G=!N&&C("div",{class:`${_.value}-selection`},[C(Zr,{checked:ce?Ce:!!$.value&&X,indeterminate:ce?!Ce&&ye:!X&&re,onChange:ee,disabled:$.value===0||ce,"aria-label":Y?"Custom selection":"Select all",skipGroup:!0},null),Y])}let le;F==="radio"?le=Y=>{let{record:ae,index:ce}=Y;const Ce=k.value(ae,ce),ye=q.has(Ce);return{node:C(ar,j(j({},u.value.get(Ce)),{},{checked:ye,onClick:J=>J.stopPropagation(),onChange:J=>{q.has(Ce)||b(Ce,!0,[Ce],J.nativeEvent)}}),null),checked:ye}}:le=Y=>{let{record:ae,index:ce}=Y;var Ce;const ye=k.value(ae,ce),J=q.has(ye),ne=g.value.has(ye),oe=u.value.get(ye);let ie;return H.value==="nest"?(ie=ne,qt(typeof(oe==null?void 0:oe.indeterminate)!="boolean","Table","set `indeterminate` using `rowSelection.getCheckboxProps` is not allowed with tree structured dataSource.")):ie=(Ce=oe==null?void 0:oe.indeterminate)!==null&&Ce!==void 0?Ce:ne,{node:C(Zr,j(j({},oe),{},{indeterminate:ie,checked:J,skipGroup:!0,onClick:ve=>ve.stopPropagation(),onChange:ve=>{let{nativeEvent:we}=ve;const{shiftKey:$e}=we;let Ae=-1,xe=-1;if($e&&R){const Ee=new Set([x.value,ye]);K.some((Te,Me)=>{if(Ee.has(Te))if(Ae===-1)Ae=Me;else return xe=Me,!0;return!1})}if(xe!==-1&&Ae!==xe&&R){const Ee=K.slice(Ae,xe+1),Te=[];J?Ee.forEach(ze=>{q.has(ze)&&(Te.push(ze),q.delete(ze))}):Ee.forEach(ze=>{q.has(ze)||(Te.push(ze),q.add(ze))});const Me=Array.from(q);M==null||M(!J,Me.map(ze=>L(ze)),Te.map(ze=>L(ze))),w(Me)}else{const Ee=v.value;if(R){const Te=J?No(Ee,ye):na(Ee,ye);b(ye,!J,Te,we)}else{const Te=Yr([...Ee,ye],!0,l.value,c.value,d.value,f),{checkedKeys:Me,halfCheckedKeys:ze}=Te;let Be=Me;if(J){const je=new Set(Me);je.delete(ye),Be=Yr(Array.from(je),{checked:!1,halfCheckedKeys:ze},l.value,c.value,d.value,f).checkedKeys}b(ye,!J,Be,we)}}y(ye)}}),null),checked:J}};const ue=Y=>{let{record:ae,index:ce}=Y;const{node:Ce,checked:ye}=le({record:ae,index:ce});return I?I(ye,ae,ce,Ce):Ce};if(!U.includes(ra))if(U.findIndex(Y=>{var ae;return((ae=Y[es])===null||ae===void 0?void 0:ae.columnType)==="EXPAND_COLUMN"})===0){const[Y,...ae]=U;U=[Y,ra,...ae]}else U=[ra,...U];const me=U.indexOf(ra);U=U.filter((Y,ae)=>Y!==ra||ae===me);const Se=U[me-1],Q=U[me+1];let te=P;te===void 0&&((Q==null?void 0:Q.fixed)!==void 0?te=Q.fixed:(Se==null?void 0:Se.fixed)!==void 0&&(te=Se.fixed)),te&&Se&&((A=Se[es])===null||A===void 0?void 0:A.columnType)==="EXPAND_COLUMN"&&Se.fixed===void 0&&(Se.fixed=te);const de={fixed:te,width:B,className:`${_.value}-selection-column`,title:n.value.columnTitle||G,customRender:ue,[es]:{class:`${_.value}-selection-col`}};return U.map(Y=>Y===ra?de:Y)},h]}var ave=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function Gi(e,t){return"key"in e&&e.key!==void 0&&e.key!==null?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t}function Oc(e,t){return t?`${t}-${e}`:`${e}`}function ww(e,t){return typeof e=="function"?e(t):e}function x5(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const t=Lt(e),n=[];return t.forEach(r=>{var o,a,i,l;if(!r)return;const s=r.key,u=((o=r.props)===null||o===void 0?void 0:o.style)||{},c=((a=r.props)===null||a===void 0?void 0:a.class)||"",d=r.props||{};for(const[h,g]of Object.entries(d))d[Zi(h)]=g;const f=r.children||{},{default:p}=f,v=ave(f,["default"]),m=E(E(E({},v),d),{style:u,class:c});if(s&&(m.key=s),!((i=r.type)===null||i===void 0)&&i.__ANT_TABLE_COLUMN_GROUP)m.children=x5(typeof p=="function"?p():p);else{const h=(l=r.children)===null||l===void 0?void 0:l.default;m.customRender=m.customRender||h}n.push(m)}),n}const xf="ascend",Jh="descend";function Np(e){return typeof e.sorter=="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:!1}function uE(e){return typeof e=="function"?e:e&&typeof e=="object"&&e.compare?e.compare:!1}function ive(e,t){return t?e[e.indexOf(t)+1]:e[0]}function Z0(e,t,n){let r=[];function o(a,i){r.push({column:a,key:Gi(a,i),multiplePriority:Np(a),sortOrder:a.sortOrder})}return(e||[]).forEach((a,i)=>{const l=Oc(i,n);a.children?("sortOrder"in a&&o(a,l),r=[...r,...Z0(a.children,t,l)]):a.sorter&&("sortOrder"in a?o(a,l):t&&a.defaultSortOrder&&r.push({column:a,key:Gi(a,l),multiplePriority:Np(a),sortOrder:a.defaultSortOrder}))}),r}function w5(e,t,n,r,o,a,i,l){return(t||[]).map((s,u)=>{const c=Oc(u,l);let d=s;if(d.sorter){const f=d.sortDirections||o,p=d.showSorterTooltip===void 0?i:d.showSorterTooltip,v=Gi(d,c),m=n.find(O=>{let{key:A}=O;return A===v}),h=m?m.sortOrder:null,g=ive(f,h),x=f.includes(xf)&&C(Loe,{class:ge(`${e}-column-sorter-up`,{active:h===xf}),role:"presentation"},null),y=f.includes(Jh)&&C(Boe,{role:"presentation",class:ge(`${e}-column-sorter-down`,{active:h===Jh})},null),{cancelSort:w,triggerAsc:b,triggerDesc:S}=a||{};let $=w;g===Jh?$=S:g===xf&&($=b);const D=typeof p=="object"?p:{title:$};d=E(E({},d),{className:ge(d.className,{[`${e}-column-sort`]:h}),title:O=>{const A=C("div",{class:`${e}-column-sorters`},[C("span",{class:`${e}-column-title`},[ww(s.title,O)]),C("span",{class:ge(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(x&&y)})},[C("span",{class:`${e}-column-sorter-inner`},[x,y])])]);return p?C(Br,D,{default:()=>[A]}):A},customHeaderCell:O=>{const A=s.customHeaderCell&&s.customHeaderCell(O)||{},T=A.onClick,M=A.onKeydown;return A.onClick=B=>{r({column:s,key:v,sortOrder:g,multiplePriority:Np(s)}),T&&T(B)},A.onKeydown=B=>{B.keyCode===_e.ENTER&&(r({column:s,key:v,sortOrder:g,multiplePriority:Np(s)}),M==null||M(B))},h&&(A["aria-sort"]=h==="ascend"?"ascending":"descending"),A.class=ge(A.class,`${e}-column-has-sorters`),A.tabindex=0,A}})}return"children"in d&&(d=E(E({},d),{children:w5(e,d.children,n,r,o,a,i,c)})),d})}function cE(e){const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}}function dE(e){const t=e.filter(n=>{let{sortOrder:r}=n;return r}).map(cE);return t.length===0&&e.length?E(E({},cE(e[e.length-1])),{column:void 0}):t.length<=1?t[0]||{}:t}function J0(e,t,n){const r=t.slice().sort((i,l)=>l.multiplePriority-i.multiplePriority),o=e.slice(),a=r.filter(i=>{let{column:{sorter:l},sortOrder:s}=i;return uE(l)&&s});return a.length?o.sort((i,l)=>{for(let s=0;s<a.length;s+=1){const u=a[s],{column:{sorter:c},sortOrder:d}=u,f=uE(c);if(f&&d){const p=f(i,l,d);if(p!==0)return d===xf?p:-p}}return 0}).map(i=>{const l=i[n];return l?E(E({},i),{[n]:J0(l,t,n)}):i}):o}function lve(e){let{prefixCls:t,mergedColumns:n,onSorterChange:r,sortDirections:o,tableLocale:a,showSorterTooltip:i}=e;const[l,s]=It(Z0(n.value,!0)),u=z(()=>{let v=!0;const m=Z0(n.value,!1);if(!m.length)return l.value;const h=[];function g(y){v?h.push(y):h.push(E(E({},y),{sortOrder:null}))}let x=null;return m.forEach(y=>{x===null?(g(y),y.sortOrder&&(y.multiplePriority===!1?v=!1:x=!0)):(x&&y.multiplePriority!==!1||(v=!1),g(y))}),h}),c=z(()=>{const v=u.value.map(m=>{let{column:h,sortOrder:g}=m;return{column:h,order:g}});return{sortColumns:v,sortColumn:v[0]&&v[0].column,sortOrder:v[0]&&v[0].order}});function d(v){let m;v.multiplePriority===!1||!u.value.length||u.value[0].multiplePriority===!1?m=[v]:m=[...u.value.filter(h=>{let{key:g}=h;return g!==v.key}),v],s(m),r(dE(m),m)}const f=v=>w5(t.value,v,u.value,d,o.value,a.value,i.value),p=z(()=>dE(u.value));return[f,u,c,p]}const sve=e=>{const{keyCode:t}=e;t===_e.ENTER&&e.stopPropagation()},uve=(e,t)=>{let{slots:n}=t;var r;return C("div",{onClick:o=>o.stopPropagation(),onKeydown:sve},[(r=n.default)===null||r===void 0?void 0:r.call(n)])},cve=uve,fE=he({compatConfig:{MODE:3},name:"FilterSearch",inheritAttrs:!1,props:{value:Ue(),onChange:Oe(),filterSearch:Xe([Boolean,Function]),tablePrefixCls:Ue(),locale:We()},setup(e){return()=>{const{value:t,onChange:n,filterSearch:r,tablePrefixCls:o,locale:a}=e;return r?C("div",{class:`${o}-filter-dropdown-search`},[C(En,{placeholder:a.filterSearchPlaceholder,onChange:n,value:t,htmlSize:1,class:`${o}-filter-dropdown-search-input`},{prefix:()=>C(Nm,null,null)})]):null}}});var pE=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const dve=he({compatConfig:{MODE:3},name:"MotionTreeNode",inheritAttrs:!1,props:E(E({},WI),{active:Boolean,motion:Object,motionNodes:{type:Array},onMotionStart:Function,onMotionEnd:Function,motionType:String}),setup(e,t){let{attrs:n,slots:r}=t;const o=pe(!0),a=ux(),i=pe(!1),l=z(()=>e.motion?e.motion:yc()),s=(u,c)=>{var d,f,p,v;c==="appear"?(f=(d=l.value)===null||d===void 0?void 0:d.onAfterEnter)===null||f===void 0||f.call(d,u):c==="leave"&&((v=(p=l.value)===null||p===void 0?void 0:p.onAfterLeave)===null||v===void 0||v.call(p,u)),i.value||e.onMotionEnd(),i.value=!0};return Ne(()=>e.motionNodes,()=>{e.motionNodes&&e.motionType==="hide"&&o.value&&ht(()=>{o.value=!1})},{immediate:!0,flush:"post"}),Qe(()=>{e.motionNodes&&e.onMotionStart()}),st(()=>{e.motionNodes&&s()}),()=>{const{motion:u,motionNodes:c,motionType:d,active:f,eventKey:p}=e,v=pE(e,["motion","motionNodes","motionType","active","eventKey"]);return c?C(_n,j(j({},l.value),{},{appear:d==="show",onAfterAppear:m=>s(m,"appear"),onAfterLeave:m=>s(m,"leave")}),{default:()=>[vn(C("div",{class:`${a.value.prefixCls}-treenode-motion`},[c.map(m=>{const h=pE(m.data,[]),{title:g,key:x,isStart:y,isEnd:w}=m;return delete h.children,C(w0,j(j({},h),{},{title:g,active:f,data:m.data,key:x,eventKey:x,isStart:y,isEnd:w}),r)})]),[[ur,o.value]])]}):C(w0,j(j({class:n.class,style:n.style},v),{},{active:f,eventKey:p}),r)}}});function fve(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const n=e.length,r=t.length;if(Math.abs(n-r)!==1)return{add:!1,key:null};function o(a,i){const l=new Map;a.forEach(u=>{l.set(u,!0)});const s=i.filter(u=>!l.has(u));return s.length===1?s[0]:null}return n<r?{add:!0,key:o(e,t)}:{add:!1,key:o(t,e)}}function mE(e,t,n){const r=e.findIndex(i=>i.key===n),o=e[r+1],a=t.findIndex(i=>i.key===n);if(o){const i=t.findIndex(l=>l.key===o.key);return t.slice(a+1,i)}return t.slice(a+1)}var vE=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const hE={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},pve=()=>{},Xi=`RC_TREE_MOTION_${Math.random()}`,Q0={key:Xi},S5={key:Xi,level:0,index:0,pos:"0",node:Q0,nodes:[Q0]},gE={parent:null,children:[],pos:S5.pos,data:Q0,title:null,key:Xi,isStart:[],isEnd:[]};function yE(e,t,n,r){return t===!1||!n?e:e.slice(0,Math.ceil(n/r)+1)}function bE(e){const{key:t,pos:n}=e;return Cc(t,n)}function mve(e){let t=String(e.key),n=e;for(;n.parent;)n=n.parent,t=`${n.key} > ${t}`;return t}const vve=he({compatConfig:{MODE:3},name:"NodeList",inheritAttrs:!1,props:Pte,setup(e,t){let{expose:n,attrs:r}=t;const o=be(),a=be(),{expandedKeys:i,flattenNodes:l}=VI();n({scrollTo:m=>{o.value.scrollTo(m)},getIndentWidth:()=>a.value.offsetWidth});const s=pe(l.value),u=pe([]),c=be(null);function d(){s.value=l.value,u.value=[],c.value=null,e.onListChangeEnd()}const f=ux();Ne([()=>i.value.slice(),l],(m,h)=>{let[g,x]=m,[y,w]=h;const b=fve(y,g);if(b.key!==null){const{virtual:S,height:$,itemHeight:D}=e;if(b.add){const O=w.findIndex(M=>{let{key:B}=M;return B===b.key}),A=yE(mE(w,x,b.key),S,$,D),T=w.slice();T.splice(O+1,0,gE),s.value=T,u.value=A,c.value="show"}else{const O=x.findIndex(M=>{let{key:B}=M;return B===b.key}),A=yE(mE(x,w,b.key),S,$,D),T=x.slice();T.splice(O+1,0,gE),s.value=T,u.value=A,c.value="hide"}}else w!==x&&(s.value=x)}),Ne(()=>f.value.dragging,m=>{m||d()});const p=z(()=>e.motion===void 0?s.value:l.value),v=()=>{e.onActiveChange(null)};return()=>{const m=E(E({},e),r),{prefixCls:h,selectable:g,checkable:x,disabled:y,motion:w,height:b,itemHeight:S,virtual:$,focusable:D,activeItem:O,focused:A,tabindex:T,onKeydown:M,onFocus:B,onBlur:F,onListChangeStart:P,onListChangeEnd:I}=m,N=vE(m,["prefixCls","selectable","checkable","disabled","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabindex","onKeydown","onFocus","onBlur","onListChangeStart","onListChangeEnd"]);return C(dt,null,[A&&O&&C("span",{style:hE,"aria-live":"assertive"},[mve(O)]),C("div",null,[C("input",{style:hE,disabled:D===!1||y,tabindex:D!==!1?T:null,onKeydown:M,onFocus:B,onBlur:F,value:"",onChange:pve,"aria-label":"for screen reader"},null)]),C("div",{class:`${h}-treenode`,"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden"}},[C("div",{class:`${h}-indent`},[C("div",{ref:a,class:`${h}-indent-unit`},null)])]),C(AN,j(j({},pt(N,["onActiveChange"])),{},{data:p.value,itemKey:bE,height:b,fullHeight:!1,virtual:$,itemHeight:S,prefixCls:`${h}-list`,ref:o,onVisibleChange:(R,_)=>{const L=new Set(R);_.filter(H=>!L.has(H)).some(H=>bE(H)===Xi)&&d()}}),{default:R=>{const{pos:_}=R,L=vE(R.data,[]),{title:k,key:H,isStart:V,isEnd:U}=R,q=Cc(H,_);return delete L.key,delete L.children,C(dve,j(j({},L),{},{eventKey:q,title:k,active:!!O&&H===O.key,data:R.data,isStart:V,isEnd:U,motion:w,motionNodes:H===Xi?u.value:null,motionType:c.value,onMotionStart:P,onMotionEnd:d,onMousemove:v}),null)}})])}}});function hve(e){let{dropPosition:t,dropLevelOffset:n,indent:r}=e;const o={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:`${2}px`};switch(t){case-1:o.top=0,o.left=`${-n*r}px`;break;case 1:o.bottom=0,o.left=`${-n*r}px`;break;case 0:o.bottom=0,o.left=`${r}`;break}return C("div",{style:o},null)}const gve=10,C5=he({compatConfig:{MODE:3},name:"Tree",inheritAttrs:!1,props:at(UI(),{prefixCls:"vc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,expandAction:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:hve,allowDrop:()=>!0}),setup(e,t){let{attrs:n,slots:r,expose:o}=t;const a=pe(!1);let i={};const l=pe(),s=pe([]),u=pe([]),c=pe([]),d=pe([]),f=pe([]),p=pe([]),v={},m=_t({draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null}),h=pe([]);Ne([()=>e.treeData,()=>e.children],()=>{h.value=e.treeData!==void 0?cn(e.treeData).slice():C0(cn(e.children))},{immediate:!0,deep:!0});const g=pe({}),x=pe(!1),y=pe(null),w=pe(!1),b=z(()=>Zm(e.fieldNames)),S=pe();let $=null,D=null,O=null;const A=z(()=>({expandedKeysSet:T.value,selectedKeysSet:M.value,loadedKeysSet:B.value,loadingKeysSet:F.value,checkedKeysSet:P.value,halfCheckedKeysSet:I.value,dragOverNodeKey:m.dragOverNodeKey,dropPosition:m.dropPosition,keyEntities:g.value})),T=z(()=>new Set(p.value)),M=z(()=>new Set(s.value)),B=z(()=>new Set(d.value)),F=z(()=>new Set(f.value)),P=z(()=>new Set(u.value)),I=z(()=>new Set(c.value));Je(()=>{if(h.value){const xe=$c(h.value,{fieldNames:b.value});g.value=E({[Xi]:S5},xe.keyEntities)}});let N=!1;Ne([()=>e.expandedKeys,()=>e.autoExpandParent,g],(xe,Ee)=>{let[Te,Me]=xe,[ze,Be]=Ee,je=p.value;if(e.expandedKeys!==void 0||N&&Me!==Be)je=e.autoExpandParent||!N&&e.defaultExpandParent?S0(e.expandedKeys,g.value):e.expandedKeys;else if(!N&&e.defaultExpandAll){const W=E({},g.value);delete W[Xi],je=Object.keys(W).map(fe=>W[fe].key)}else!N&&e.defaultExpandedKeys&&(je=e.autoExpandParent||e.defaultExpandParent?S0(e.defaultExpandedKeys,g.value):e.defaultExpandedKeys);je&&(p.value=je),N=!0},{immediate:!0});const R=pe([]);Je(()=>{R.value=kte(h.value,p.value,b.value)}),Je(()=>{e.selectable&&(e.selectedKeys!==void 0?s.value=p2(e.selectedKeys,e):!N&&e.defaultSelectedKeys&&(s.value=p2(e.defaultSelectedKeys,e)))});const{maxLevel:_,levelEntities:L}=tv(g);Je(()=>{if(e.checkable){let xe;if(e.checkedKeys!==void 0?xe=Fh(e.checkedKeys)||{}:!N&&e.defaultCheckedKeys?xe=Fh(e.defaultCheckedKeys)||{}:h.value&&(xe=Fh(e.checkedKeys)||{checkedKeys:u.value,halfCheckedKeys:c.value}),xe){let{checkedKeys:Ee=[],halfCheckedKeys:Te=[]}=xe;e.checkStrictly||({checkedKeys:Ee,halfCheckedKeys:Te}=Yr(Ee,!0,g.value,_.value,L.value)),u.value=Ee,c.value=Te}}}),Je(()=>{e.loadedKeys&&(d.value=e.loadedKeys)});const k=()=>{E(m,{dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})},H=xe=>{S.value.scrollTo(xe)};Ne(()=>e.activeKey,()=>{e.activeKey!==void 0&&(y.value=e.activeKey)},{immediate:!0}),Ne(y,xe=>{ht(()=>{xe!==null&&H({key:xe})})},{immediate:!0,flush:"post"});const V=xe=>{e.expandedKeys===void 0&&(p.value=xe)},U=()=>{m.draggingNodeKey!==null&&E(m,{draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),$=null,O=null},q=(xe,Ee)=>{const{onDragend:Te}=e;m.dragOverNodeKey=null,U(),Te==null||Te({event:xe,node:Ee.eventData}),D=null},K=xe=>{q(xe,null),window.removeEventListener("dragend",K)},X=(xe,Ee)=>{const{onDragstart:Te}=e,{eventKey:Me,eventData:ze}=Ee;D=Ee,$={x:xe.clientX,y:xe.clientY};const Be=No(p.value,Me);m.draggingNodeKey=Me,m.dragChildrenKeys=Fte(Me,g.value),l.value=S.value.getIndentWidth(),V(Be),window.addEventListener("dragend",K),Te&&Te({event:xe,node:ze})},re=(xe,Ee)=>{const{onDragenter:Te,onExpand:Me,allowDrop:ze,direction:Be}=e,{pos:je,eventKey:W}=Ee;if(O!==W&&(O=W),!D){k();return}const{dropPosition:fe,dropLevelOffset:De,dropTargetKey:Ie,dropContainerKey:Ve,dropTargetPos:Ge,dropAllowed:Ct,dragOverNodeKey:Nt}=f2(xe,D,Ee,l.value,$,ze,R.value,g.value,T.value,Be);if(m.dragChildrenKeys.indexOf(Ie)!==-1||!Ct){k();return}if(i||(i={}),Object.keys(i).forEach(Wt=>{clearTimeout(i[Wt])}),D.eventKey!==Ee.eventKey&&(i[je]=window.setTimeout(()=>{if(m.draggingNodeKey===null)return;let Wt=p.value.slice();const fn=g.value[Ee.eventKey];fn&&(fn.children||[]).length&&(Wt=na(p.value,Ee.eventKey)),V(Wt),Me&&Me(Wt,{node:Ee.eventData,expanded:!0,nativeEvent:xe})},800)),D.eventKey===Ie&&De===0){k();return}E(m,{dragOverNodeKey:Nt,dropPosition:fe,dropLevelOffset:De,dropTargetKey:Ie,dropContainerKey:Ve,dropTargetPos:Ge,dropAllowed:Ct}),Te&&Te({event:xe,node:Ee.eventData,expandedKeys:p.value})},ee=(xe,Ee)=>{const{onDragover:Te,allowDrop:Me,direction:ze}=e;if(!D)return;const{dropPosition:Be,dropLevelOffset:je,dropTargetKey:W,dropContainerKey:fe,dropAllowed:De,dropTargetPos:Ie,dragOverNodeKey:Ve}=f2(xe,D,Ee,l.value,$,Me,R.value,g.value,T.value,ze);m.dragChildrenKeys.indexOf(W)!==-1||!De||(D.eventKey===W&&je===0?m.dropPosition===null&&m.dropLevelOffset===null&&m.dropTargetKey===null&&m.dropContainerKey===null&&m.dropTargetPos===null&&m.dropAllowed===!1&&m.dragOverNodeKey===null||k():Be===m.dropPosition&&je===m.dropLevelOffset&&W===m.dropTargetKey&&fe===m.dropContainerKey&&Ie===m.dropTargetPos&&De===m.dropAllowed&&Ve===m.dragOverNodeKey||E(m,{dropPosition:Be,dropLevelOffset:je,dropTargetKey:W,dropContainerKey:fe,dropTargetPos:Ie,dropAllowed:De,dragOverNodeKey:Ve}),Te&&Te({event:xe,node:Ee.eventData}))},G=(xe,Ee)=>{O===Ee.eventKey&&!xe.currentTarget.contains(xe.relatedTarget)&&(k(),O=null);const{onDragleave:Te}=e;Te&&Te({event:xe,node:Ee.eventData})},le=function(xe,Ee){let Te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Me;const{dragChildrenKeys:ze,dropPosition:Be,dropTargetKey:je,dropTargetPos:W,dropAllowed:fe}=m;if(!fe)return;const{onDrop:De}=e;if(m.dragOverNodeKey=null,U(),je===null)return;const Ie=E(E({},nf(je,cn(A.value))),{active:((Me=ve.value)===null||Me===void 0?void 0:Me.key)===je,data:g.value[je].node});ze.indexOf(je);const Ve=cx(W),Ge={event:xe,node:rf(Ie),dragNode:D?D.eventData:null,dragNodesKeys:[D.eventKey].concat(ze),dropToGap:Be!==0,dropPosition:Be+Number(Ve[Ve.length-1])};Te||De==null||De(Ge),D=null},ue=(xe,Ee)=>{const{expanded:Te,key:Me}=Ee,ze=R.value.filter(je=>je.key===Me)[0],Be=rf(E(E({},nf(Me,A.value)),{data:ze.data}));V(Te?No(p.value,Me):na(p.value,Me)),J(xe,Be)},me=(xe,Ee)=>{const{onClick:Te,expandAction:Me}=e;Me==="click"&&ue(xe,Ee),Te&&Te(xe,Ee)},Se=(xe,Ee)=>{const{onDblclick:Te,expandAction:Me}=e;(Me==="doubleclick"||Me==="dblclick")&&ue(xe,Ee),Te&&Te(xe,Ee)},Q=(xe,Ee)=>{let Te=s.value;const{onSelect:Me,multiple:ze}=e,{selected:Be}=Ee,je=Ee[b.value.key],W=!Be;W?ze?Te=na(Te,je):Te=[je]:Te=No(Te,je);const fe=g.value,De=Te.map(Ie=>{const Ve=fe[Ie];return Ve?Ve.node:null}).filter(Ie=>Ie);e.selectedKeys===void 0&&(s.value=Te),Me&&Me(Te,{event:"select",selected:W,node:Ee,selectedNodes:De,nativeEvent:xe})},te=(xe,Ee,Te)=>{const{checkStrictly:Me,onCheck:ze}=e,Be=Ee[b.value.key];let je;const W={event:"check",node:Ee,checked:Te,nativeEvent:xe},fe=g.value;if(Me){const De=Te?na(u.value,Be):No(u.value,Be),Ie=No(c.value,Be);je={checked:De,halfChecked:Ie},W.checkedNodes=De.map(Ve=>fe[Ve]).filter(Ve=>Ve).map(Ve=>Ve.node),e.checkedKeys===void 0&&(u.value=De)}else{let{checkedKeys:De,halfCheckedKeys:Ie}=Yr([...u.value,Be],!0,fe,_.value,L.value);if(!Te){const Ve=new Set(De);Ve.delete(Be),{checkedKeys:De,halfCheckedKeys:Ie}=Yr(Array.from(Ve),{checked:!1,halfCheckedKeys:Ie},fe,_.value,L.value)}je=De,W.checkedNodes=[],W.checkedNodesPositions=[],W.halfCheckedKeys=Ie,De.forEach(Ve=>{const Ge=fe[Ve];if(!Ge)return;const{node:Ct,pos:Nt}=Ge;W.checkedNodes.push(Ct),W.checkedNodesPositions.push({node:Ct,pos:Nt})}),e.checkedKeys===void 0&&(u.value=De,c.value=Ie)}ze&&ze(je,W)},de=xe=>{const Ee=xe[b.value.key],Te=new Promise((Me,ze)=>{const{loadData:Be,onLoad:je}=e;if(!Be||B.value.has(Ee)||F.value.has(Ee))return null;Be(xe).then(()=>{const fe=na(d.value,Ee),De=No(f.value,Ee);je&&je(fe,{event:"load",node:xe}),e.loadedKeys===void 0&&(d.value=fe),f.value=De,Me()}).catch(fe=>{const De=No(f.value,Ee);if(f.value=De,v[Ee]=(v[Ee]||0)+1,v[Ee]>=gve){const Ie=na(d.value,Ee);e.loadedKeys===void 0&&(d.value=Ie),Me()}ze(fe)}),f.value=na(f.value,Ee)});return Te.catch(()=>{}),Te},Y=(xe,Ee)=>{const{onMouseenter:Te}=e;Te&&Te({event:xe,node:Ee})},ae=(xe,Ee)=>{const{onMouseleave:Te}=e;Te&&Te({event:xe,node:Ee})},ce=(xe,Ee)=>{const{onRightClick:Te}=e;Te&&(xe.preventDefault(),Te({event:xe,node:Ee}))},Ce=xe=>{const{onFocus:Ee}=e;x.value=!0,Ee&&Ee(xe)},ye=xe=>{const{onBlur:Ee}=e;x.value=!1,ie(null),Ee&&Ee(xe)},J=(xe,Ee)=>{let Te=p.value;const{onExpand:Me,loadData:ze}=e,{expanded:Be}=Ee,je=Ee[b.value.key];if(w.value)return;Te.indexOf(je);const W=!Be;if(W?Te=na(Te,je):Te=No(Te,je),V(Te),Me&&Me(Te,{node:Ee,expanded:W,nativeEvent:xe}),W&&ze){const fe=de(Ee);fe&&fe.then(()=>{}).catch(De=>{const Ie=No(p.value,je);V(Ie),Promise.reject(De)})}},ne=()=>{w.value=!0},oe=()=>{setTimeout(()=>{w.value=!1})},ie=xe=>{const{onActiveChange:Ee}=e;y.value!==xe&&(e.activeKey!==void 0&&(y.value=xe),xe!==null&&H({key:xe}),Ee&&Ee(xe))},ve=z(()=>y.value===null?null:R.value.find(xe=>{let{key:Ee}=xe;return Ee===y.value})||null),we=xe=>{let Ee=R.value.findIndex(Me=>{let{key:ze}=Me;return ze===y.value});Ee===-1&&xe<0&&(Ee=R.value.length),Ee=(Ee+xe+R.value.length)%R.value.length;const Te=R.value[Ee];if(Te){const{key:Me}=Te;ie(Me)}else ie(null)},$e=z(()=>rf(E(E({},nf(y.value,A.value)),{data:ve.value.data,active:!0}))),Ae=xe=>{const{onKeydown:Ee,checkable:Te,selectable:Me}=e;switch(xe.which){case _e.UP:{we(-1),xe.preventDefault();break}case _e.DOWN:{we(1),xe.preventDefault();break}}const ze=ve.value;if(ze&&ze.data){const Be=ze.data.isLeaf===!1||!!(ze.data.children||[]).length,je=$e.value;switch(xe.which){case _e.LEFT:{Be&&T.value.has(y.value)?J({},je):ze.parent&&ie(ze.parent.key),xe.preventDefault();break}case _e.RIGHT:{Be&&!T.value.has(y.value)?J({},je):ze.children&&ze.children.length&&ie(ze.children[0].key),xe.preventDefault();break}case _e.ENTER:case _e.SPACE:{Te&&!je.disabled&&je.checkable!==!1&&!je.disableCheckbox?te({},je,!P.value.has(y.value)):!Te&&Me&&!je.disabled&&je.selectable!==!1&&Q({},je);break}}}Ee&&Ee(xe)};return o({onNodeExpand:J,scrollTo:H,onKeydown:Ae,selectedKeys:z(()=>s.value),checkedKeys:z(()=>u.value),halfCheckedKeys:z(()=>c.value),loadedKeys:z(()=>d.value),loadingKeys:z(()=>f.value),expandedKeys:z(()=>p.value)}),Cr(()=>{window.removeEventListener("dragend",K),a.value=!0}),Tte({expandedKeys:p,selectedKeys:s,loadedKeys:d,loadingKeys:f,checkedKeys:u,halfCheckedKeys:c,expandedKeysSet:T,selectedKeysSet:M,loadedKeysSet:B,loadingKeysSet:F,checkedKeysSet:P,halfCheckedKeysSet:I,flattenNodes:R}),()=>{const{draggingNodeKey:xe,dropLevelOffset:Ee,dropContainerKey:Te,dropTargetKey:Me,dropPosition:ze,dragOverNodeKey:Be}=m,{prefixCls:je,showLine:W,focusable:fe,tabindex:De=0,selectable:Ie,showIcon:Ve,icon:Ge=r.icon,switcherIcon:Ct,draggable:Nt,checkable:Wt,checkStrictly:fn,disabled:Ln,motion:Er,loadData:Oo,filterTreeNode:Xn,height:Xo,itemHeight:Le,virtual:et,dropIndicatorRender:Ze,onContextmenu:Bt,onScroll:pn,direction:ln,rootClassName:rr,rootStyle:Tn}=e,{class:ao,style:mr}=n,Dr=ci(E(E({},e),n),{aria:!0,data:!0});let Gt;return Nt?typeof Nt=="object"?Gt=Nt:typeof Nt=="function"?Gt={nodeDraggable:Nt}:Gt={}:Gt=!1,C(Ote,{value:{prefixCls:je,selectable:Ie,showIcon:Ve,icon:Ge,switcherIcon:Ct,draggable:Gt,draggingNodeKey:xe,checkable:Wt,customCheckable:r.checkable,checkStrictly:fn,disabled:Ln,keyEntities:g.value,dropLevelOffset:Ee,dropContainerKey:Te,dropTargetKey:Me,dropPosition:ze,dragOverNodeKey:Be,dragging:xe!==null,indent:l.value,direction:ln,dropIndicatorRender:Ze,loadData:Oo,filterTreeNode:Xn,onNodeClick:me,onNodeDoubleClick:Se,onNodeExpand:J,onNodeSelect:Q,onNodeCheck:te,onNodeLoad:de,onNodeMouseEnter:Y,onNodeMouseLeave:ae,onNodeContextMenu:ce,onNodeDragStart:X,onNodeDragEnter:re,onNodeDragOver:ee,onNodeDragLeave:G,onNodeDragEnd:q,onNodeDrop:le,slots:r}},{default:()=>[C("div",{role:"tree",class:ge(je,ao,rr,{[`${je}-show-line`]:W,[`${je}-focused`]:x.value,[`${je}-active-focused`]:y.value!==null}),style:Tn},[C(vve,j({ref:S,prefixCls:je,style:mr,disabled:Ln,selectable:Ie,checkable:!!Wt,motion:Er,height:Xo,itemHeight:Le,virtual:et,focusable:fe,focused:x.value,tabindex:De,activeItem:ve.value,onFocus:Ce,onBlur:ye,onKeydown:Ae,onActiveChange:ie,onListChangeStart:ne,onListChangeEnd:oe,onContextmenu:Bt,onScroll:pn},Dr),null)])]})}}});function $5(e,t,n,r,o){const{isLeaf:a,expanded:i,loading:l}=n;let s=t;if(l)return C(Lr,{class:`${e}-switcher-loading-icon`},null);let u;o&&typeof o=="object"&&(u=o.showLeafIcon);let c=null;const d=`${e}-switcher-icon`;return a?o?u&&r?r(n):(typeof o=="object"&&!u?c=C("span",{class:`${e}-switcher-leaf-line`},null):c=C(b8,{class:`${e}-switcher-line-icon`},null),c):null:(c=C(Noe,{class:d},null),o&&(c=i?C(Kae,{class:`${e}-switcher-line-icon`},null):C(oie,{class:`${e}-switcher-line-icon`},null)),typeof t=="function"?s=t(E(E({},n),{defaultIcon:c,switcherCls:d})):hn(s)&&(s=ha(s,{class:d})),s||c)}const xE=4;function yve(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:o,direction:a="ltr"}=e,i=a==="ltr"?"left":"right",l=a==="ltr"?"right":"left",s={[i]:`${-n*o+xE}px`,[l]:0};switch(t){case-1:s.top=`${-3}px`;break;case 1:s.bottom=`${-3}px`;break;default:s.bottom=`${-3}px`,s[i]=`${o+xE}px`;break}return C("div",{style:s,class:`${r}-drop-indicator`},null)}const bve=new ft("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),xve=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),wve=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${t.lineWidthBold}px solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),Sve=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:o,treeTitleHeight:a}=t,i=(a-t.fontSizeLG)/2,l=t.paddingXS;return{[n]:E(E({},rt(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,[`&${n}-rtl`]:{[`${n}-switcher`]:{"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${n}-active-focused)`]:E({},ya(t)),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${r}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:o,insetInlineStart:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:bve,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${r}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${o}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${n}-node-content-wrapper`]:E({},ya(t)),[`&:not(${r}-disabled).filter-node ${n}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${n}-draggable-icon`]:{width:a,lineHeight:`${a}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${t.motionDurationSlow}`,[`${r}:hover &`]:{opacity:.45}},[`&${r}-disabled`]:{[`${n}-draggable-icon`]:{visibility:"hidden"}}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:a}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher`]:E(E({},xve(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:a,margin:0,lineHeight:`${a}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:a/2,bottom:-o,marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:a/2*.8,height:a/2,borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-checkbox`]:{top:"initial",marginInlineEnd:l,marginBlockStart:i},[`${n}-node-content-wrapper, ${n}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:a,margin:0,padding:`0 ${t.paddingXS/2}px`,color:"inherit",lineHeight:`${a}px`,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:t.controlItemBgHover},[`&${n}-node-selected`]:{backgroundColor:t.controlItemBgActive},[`${n}-iconEle`]:{display:"inline-block",width:a,height:a,lineHeight:`${a}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${n}-node-content-wrapper`]:E({lineHeight:`${a}px`,userSelect:"none"},wve(e,t)),[`${r}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${t.colorPrimary}`}},"&-show-line":{[`${n}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:a/2,bottom:-o,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${r}-leaf-last`]:{[`${n}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${a/2}px !important`}}}}})}},Cve=e=>{const{treeCls:t,treeNodeCls:n,treeNodePadding:r}=e;return{[`${t}${t}-directory`]:{[n]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:r,insetInlineStart:0,transition:`background-color ${e.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:e.controlItemBgHover}},"> *":{zIndex:1},[`${t}-switcher`]:{transition:`color ${e.motionDurationMid}`},[`${t}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${t}-node-selected`]:{color:e.colorTextLightSolid,background:"transparent"}},"&-selected":{[`
- &:hover::before,
- &::before
- `]:{background:e.colorPrimary},[`${t}-switcher`]:{color:e.colorTextLightSolid},[`${t}-node-content-wrapper`]:{color:e.colorTextLightSolid,background:"transparent"}}}}}},E5=(e,t)=>{const n=`.${e}`,r=`${n}-treenode`,o=t.paddingXS/2,a=t.controlHeightSM,i=qe(t,{treeCls:n,treeNodeCls:r,treeNodePadding:o,treeTitleHeight:a});return[Sve(e,i),Cve(i)]},$ve=nt("Tree",(e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:av(`${n}-checkbox`,e)},E5(n,e),gc(e)]}),D5=()=>{const e=UI();return E(E({},e),{showLine:Xe([Boolean,Object]),multiple:Pe(),autoExpandParent:Pe(),checkStrictly:Pe(),checkable:Pe(),disabled:Pe(),defaultExpandAll:Pe(),defaultExpandParent:Pe(),defaultExpandedKeys:bt(),expandedKeys:bt(),checkedKeys:Xe([Array,Object]),defaultCheckedKeys:bt(),selectedKeys:bt(),defaultSelectedKeys:bt(),selectable:Pe(),loadedKeys:bt(),draggable:Pe(),showIcon:Pe(),icon:Oe(),switcherIcon:Z.any,prefixCls:String,replaceFields:We(),blockNode:Pe(),openAnimation:Z.any,onDoubleclick:e.onDblclick,"onUpdate:selectedKeys":Oe(),"onUpdate:checkedKeys":Oe(),"onUpdate:expandedKeys":Oe()})},wf=he({compatConfig:{MODE:3},name:"ATree",inheritAttrs:!1,props:at(D5(),{checkable:!1,selectable:!0,showIcon:!1,blockNode:!1}),slots:Object,setup(e,t){let{attrs:n,expose:r,emit:o,slots:a}=t;e.treeData===void 0&&a.default;const{prefixCls:i,direction:l,virtual:s}=He("tree",e),[u,c]=$ve(i),d=be();r({treeRef:d,onNodeExpand:function(){var h;(h=d.value)===null||h===void 0||h.onNodeExpand(...arguments)},scrollTo:h=>{var g;(g=d.value)===null||g===void 0||g.scrollTo(h)},selectedKeys:z(()=>{var h;return(h=d.value)===null||h===void 0?void 0:h.selectedKeys}),checkedKeys:z(()=>{var h;return(h=d.value)===null||h===void 0?void 0:h.checkedKeys}),halfCheckedKeys:z(()=>{var h;return(h=d.value)===null||h===void 0?void 0:h.halfCheckedKeys}),loadedKeys:z(()=>{var h;return(h=d.value)===null||h===void 0?void 0:h.loadedKeys}),loadingKeys:z(()=>{var h;return(h=d.value)===null||h===void 0?void 0:h.loadingKeys}),expandedKeys:z(()=>{var h;return(h=d.value)===null||h===void 0?void 0:h.expandedKeys})}),Je(()=>{qt(e.replaceFields===void 0,"Tree","`replaceFields` is deprecated, please use fieldNames instead")});const p=(h,g)=>{o("update:checkedKeys",h),o("check",h,g)},v=(h,g)=>{o("update:expandedKeys",h),o("expand",h,g)},m=(h,g)=>{o("update:selectedKeys",h),o("select",h,g)};return()=>{const{showIcon:h,showLine:g,switcherIcon:x=a.switcherIcon,icon:y=a.icon,blockNode:w,checkable:b,selectable:S,fieldNames:$=e.replaceFields,motion:D=e.openAnimation,itemHeight:O=28,onDoubleclick:A,onDblclick:T}=e,M=E(E(E({},n),pt(e,["onUpdate:checkedKeys","onUpdate:expandedKeys","onUpdate:selectedKeys","onDoubleclick"])),{showLine:Boolean(g),dropIndicatorRender:yve,fieldNames:$,icon:y,itemHeight:O}),B=a.default?nn(a.default()):void 0;return u(C(C5,j(j({},M),{},{virtual:s.value,motion:D,ref:d,prefixCls:i.value,class:ge({[`${i.value}-icon-hide`]:!h,[`${i.value}-block-node`]:w,[`${i.value}-unselectable`]:!S,[`${i.value}-rtl`]:l.value==="rtl"},n.class,c.value),direction:l.value,checkable:b,selectable:S,switcherIcon:F=>$5(i.value,x,F,a.leafIcon,g),onCheck:p,onExpand:v,onSelect:m,onDblclick:T||A,children:B}),E(E({},a),{checkable:()=>C("span",{class:`${i.value}-checkbox-inner`},null)})))}}});var oa;(function(e){e[e.None=0]="None",e[e.Start=1]="Start",e[e.End=2]="End"})(oa||(oa={}));function Sw(e,t,n){function r(o){const a=o[t.key],i=o[t.children];n(a,o)!==!1&&Sw(i||[],t,n)}e.forEach(r)}function Eve(e){let{treeData:t,expandedKeys:n,startKey:r,endKey:o,fieldNames:a={title:"title",key:"key",children:"children"}}=e;const i=[];let l=oa.None;if(r&&r===o)return[r];if(!r||!o)return[];function s(u){return u===r||u===o}return Sw(t,a,u=>{if(l===oa.End)return!1;if(s(u)){if(i.push(u),l===oa.None)l=oa.Start;else if(l===oa.Start)return l=oa.End,!1}else l===oa.Start&&i.push(u);return n.includes(u)}),i}function Qh(e,t,n){const r=[...t],o=[];return Sw(e,n,(a,i)=>{const l=r.indexOf(a);return l!==-1&&(o.push(i),r.splice(l,1)),!!r.length}),o}var Dve=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Ave=()=>E(E({},D5()),{expandAction:Xe([Boolean,String])});function Ove(e){const{isLeaf:t,expanded:n}=e;return t?C(b8,null,null):n?C(zae,null,null):C(jae,null,null)}const Sf=he({compatConfig:{MODE:3},name:"ADirectoryTree",inheritAttrs:!1,props:at(Ave(),{showIcon:!0,expandAction:"click"}),slots:Object,setup(e,t){let{attrs:n,slots:r,emit:o,expose:a}=t;var i;const l=be(e.treeData||C0(nn((i=r.default)===null||i===void 0?void 0:i.call(r))));Ne(()=>e.treeData,()=>{l.value=e.treeData}),Sr(()=>{ht(()=>{var O;e.treeData===void 0&&r.default&&(l.value=C0(nn((O=r.default)===null||O===void 0?void 0:O.call(r))))})});const s=be(),u=be(),c=z(()=>Zm(e.fieldNames)),d=be();a({scrollTo:O=>{var A;(A=d.value)===null||A===void 0||A.scrollTo(O)},selectedKeys:z(()=>{var O;return(O=d.value)===null||O===void 0?void 0:O.selectedKeys}),checkedKeys:z(()=>{var O;return(O=d.value)===null||O===void 0?void 0:O.checkedKeys}),halfCheckedKeys:z(()=>{var O;return(O=d.value)===null||O===void 0?void 0:O.halfCheckedKeys}),loadedKeys:z(()=>{var O;return(O=d.value)===null||O===void 0?void 0:O.loadedKeys}),loadingKeys:z(()=>{var O;return(O=d.value)===null||O===void 0?void 0:O.loadingKeys}),expandedKeys:z(()=>{var O;return(O=d.value)===null||O===void 0?void 0:O.expandedKeys})});const p=()=>{const{keyEntities:O}=$c(l.value,{fieldNames:c.value});let A;return e.defaultExpandAll?A=Object.keys(O):e.defaultExpandParent?A=S0(e.expandedKeys||e.defaultExpandedKeys||[],O):A=e.expandedKeys||e.defaultExpandedKeys,A},v=be(e.selectedKeys||e.defaultSelectedKeys||[]),m=be(p());Ne(()=>e.selectedKeys,()=>{e.selectedKeys!==void 0&&(v.value=e.selectedKeys)},{immediate:!0}),Ne(()=>e.expandedKeys,()=>{e.expandedKeys!==void 0&&(m.value=e.expandedKeys)},{immediate:!0});const g=e1((O,A)=>{const{isLeaf:T}=A;T||O.shiftKey||O.metaKey||O.ctrlKey||d.value.onNodeExpand(O,A)},200,{leading:!0}),x=(O,A)=>{e.expandedKeys===void 0&&(m.value=O),o("update:expandedKeys",O),o("expand",O,A)},y=(O,A)=>{const{expandAction:T}=e;T==="click"&&g(O,A),o("click",O,A)},w=(O,A)=>{const{expandAction:T}=e;(T==="dblclick"||T==="doubleclick")&&g(O,A),o("doubleclick",O,A),o("dblclick",O,A)},b=(O,A)=>{const{multiple:T}=e,{node:M,nativeEvent:B}=A,F=M[c.value.key],P=E(E({},A),{selected:!0}),I=(B==null?void 0:B.ctrlKey)||(B==null?void 0:B.metaKey),N=B==null?void 0:B.shiftKey;let R;T&&I?(R=O,s.value=F,u.value=R,P.selectedNodes=Qh(l.value,R,c.value)):T&&N?(R=Array.from(new Set([...u.value||[],...Eve({treeData:l.value,expandedKeys:m.value,startKey:F,endKey:s.value,fieldNames:c.value})])),P.selectedNodes=Qh(l.value,R,c.value)):(R=[F],s.value=F,u.value=R,P.selectedNodes=Qh(l.value,R,c.value)),o("update:selectedKeys",R),o("select",R,P),e.selectedKeys===void 0&&(v.value=R)},S=(O,A)=>{o("update:checkedKeys",O),o("check",O,A)},{prefixCls:$,direction:D}=He("tree",e);return()=>{const O=ge(`${$.value}-directory`,{[`${$.value}-directory-rtl`]:D.value==="rtl"},n.class),{icon:A=r.icon,blockNode:T=!0}=e,M=Dve(e,["icon","blockNode"]);return C(wf,j(j(j({},n),{},{icon:A||Ove,ref:d,blockNode:T},M),{},{prefixCls:$.value,class:O,expandedKeys:m.value,selectedKeys:v.value,onSelect:b,onClick:y,onDblclick:w,onExpand:x,onCheck:S}),r)}}}),Cf=w0,A5=E(wf,{DirectoryTree:Sf,TreeNode:Cf,install:e=>(e.component(wf.name,wf),e.component(Cf.name,Cf),e.component(Sf.name,Sf),e)});function wE(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const r=new Set;function o(a,i){let l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;const s=r.has(a);if(dm(!s,"Warning: There may be circular references"),s)return!1;if(a===i)return!0;if(n&&l>1)return!1;r.add(a);const u=l+1;if(Array.isArray(a)){if(!Array.isArray(i)||a.length!==i.length)return!1;for(let c=0;c<a.length;c++)if(!o(a[c],i[c],u))return!1;return!0}if(a&&i&&typeof a=="object"&&typeof i=="object"){const c=Object.keys(a);return c.length!==Object.keys(i).length?!1:c.every(d=>o(a[d],i[d],u))}return!1}return o(e,t)}const{SubMenu:Tve,Item:Mve}=mn;function Nve(e){return e.some(t=>{let{children:n}=t;return n&&n.length>0})}function O5(e,t){return typeof t=="string"||typeof t=="number"?t==null?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()):!1}function T5(e){let{filters:t,prefixCls:n,filteredKeys:r,filterMultiple:o,searchValue:a,filterSearch:i}=e;return t.map((l,s)=>{const u=String(l.value);if(l.children)return C(Tve,{key:u||s,title:l.text,popupClassName:`${n}-dropdown-submenu`},{default:()=>[T5({filters:l.children,prefixCls:n,filteredKeys:r,filterMultiple:o,searchValue:a,filterSearch:i})]});const c=o?Zr:ar,d=C(Mve,{key:l.value!==void 0?u:s},{default:()=>[C(c,{checked:r.includes(u)},null),C("span",null,[l.text])]});return a.trim()?typeof i=="function"?i(a,l)?d:void 0:O5(a,l.text)?d:void 0:d})}const Pve=he({name:"FilterDropdown",props:["tablePrefixCls","prefixCls","dropdownPrefixCls","column","filterState","filterMultiple","filterMode","filterSearch","columnKey","triggerFilter","locale","getPopupContainer"],setup(e,t){let{slots:n}=t;const r=bw(),o=z(()=>{var H;return(H=e.filterMode)!==null&&H!==void 0?H:"menu"}),a=z(()=>{var H;return(H=e.filterSearch)!==null&&H!==void 0?H:!1}),i=z(()=>e.column.filterDropdownOpen||e.column.filterDropdownVisible),l=z(()=>e.column.onFilterDropdownOpenChange||e.column.onFilterDropdownVisibleChange),s=pe(!1),u=z(()=>{var H;return!!(e.filterState&&(!((H=e.filterState.filteredKeys)===null||H===void 0)&&H.length||e.filterState.forceFiltered))}),c=z(()=>{var H;return hv((H=e.column)===null||H===void 0?void 0:H.filters)}),d=z(()=>{const{filterDropdown:H,slots:V={},customFilterDropdown:U}=e.column;return H||V.filterDropdown&&r.value[V.filterDropdown]||U&&r.value.customFilterDropdown}),f=z(()=>{const{filterIcon:H,slots:V={}}=e.column;return H||V.filterIcon&&r.value[V.filterIcon]||r.value.customFilterIcon}),p=H=>{var V;s.value=H,(V=l.value)===null||V===void 0||V.call(l,H)},v=z(()=>typeof i.value=="boolean"?i.value:s.value),m=z(()=>{var H;return(H=e.filterState)===null||H===void 0?void 0:H.filteredKeys}),h=pe([]),g=H=>{let{selectedKeys:V}=H;h.value=V},x=(H,V)=>{let{node:U,checked:q}=V;e.filterMultiple?g({selectedKeys:H}):g({selectedKeys:q&&U.key?[U.key]:[]})};Ne(m,()=>{s.value&&g({selectedKeys:m.value||[]})},{immediate:!0});const y=pe([]),w=pe(),b=H=>{w.value=setTimeout(()=>{y.value=H})},S=()=>{clearTimeout(w.value)};st(()=>{clearTimeout(w.value)});const $=pe(""),D=H=>{const{value:V}=H.target;$.value=V};Ne(s,()=>{s.value||($.value="")});const O=H=>{const{column:V,columnKey:U,filterState:q}=e,K=H&&H.length?H:null;if(K===null&&(!q||!q.filteredKeys)||wE(K,q==null?void 0:q.filteredKeys,!0))return null;e.triggerFilter({column:V,key:U,filteredKeys:K})},A=()=>{p(!1),O(h.value)},T=function(){let{confirm:H,closeDropdown:V}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};H&&O([]),V&&p(!1),$.value="",e.column.filterResetToDefaultFilteredValue?h.value=(e.column.defaultFilteredValue||[]).map(U=>String(U)):h.value=[]},M=function(){let{closeDropdown:H}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};H&&p(!1),O(h.value)},B=H=>{H&&m.value!==void 0&&(h.value=m.value||[]),p(H),!H&&!d.value&&A()},{direction:F}=He("",e),P=H=>{if(H.target.checked){const V=c.value;h.value=V}else h.value=[]},I=H=>{let{filters:V}=H;return(V||[]).map((U,q)=>{const K=String(U.value),X={title:U.text,key:U.value!==void 0?K:q};return U.children&&(X.children=I({filters:U.children})),X})},N=H=>{var V;return E(E({},H),{text:H.title,value:H.key,children:((V=H.children)===null||V===void 0?void 0:V.map(U=>N(U)))||[]})},R=z(()=>I({filters:e.column.filters})),_=z(()=>ge({[`${e.dropdownPrefixCls}-menu-without-submenu`]:!Nve(e.column.filters||[])})),L=()=>{const H=h.value,{column:V,locale:U,tablePrefixCls:q,filterMultiple:K,dropdownPrefixCls:X,getPopupContainer:re,prefixCls:ee}=e;return(V.filters||[]).length===0?C(Ka,{image:Ka.PRESENTED_IMAGE_SIMPLE,description:U.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}},null):o.value==="tree"?C(dt,null,[C(fE,{filterSearch:a.value,value:$.value,onChange:D,tablePrefixCls:q,locale:U},null),C("div",{class:`${q}-filter-dropdown-tree`},[K?C(Zr,{class:`${q}-filter-dropdown-checkall`,onChange:P,checked:H.length===c.value.length,indeterminate:H.length>0&&H.length<c.value.length},{default:()=>[U.filterCheckall]}):null,C(A5,{checkable:!0,selectable:!1,blockNode:!0,multiple:K,checkStrictly:!K,class:`${X}-menu`,onCheck:x,checkedKeys:H,selectedKeys:H,showIcon:!1,treeData:R.value,autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:$.value.trim()?G=>typeof a.value=="function"?a.value($.value,N(G)):O5($.value,G.title):void 0},null)])]):C(dt,null,[C(fE,{filterSearch:a.value,value:$.value,onChange:D,tablePrefixCls:q,locale:U},null),C(mn,{multiple:K,prefixCls:`${X}-menu`,class:_.value,onClick:S,onSelect:g,onDeselect:g,selectedKeys:H,getPopupContainer:re,openKeys:y.value,onOpenChange:b},{default:()=>T5({filters:V.filters||[],filterSearch:a.value,prefixCls:ee,filteredKeys:h.value,filterMultiple:K,searchValue:$.value})})])},k=z(()=>{const H=h.value;return e.column.filterResetToDefaultFilteredValue?wE((e.column.defaultFilteredValue||[]).map(V=>String(V)),H,!0):H.length===0});return()=>{var H;const{tablePrefixCls:V,prefixCls:U,column:q,dropdownPrefixCls:K,locale:X,getPopupContainer:re}=e;let ee;typeof d.value=="function"?ee=d.value({prefixCls:`${K}-custom`,setSelectedKeys:ue=>g({selectedKeys:ue}),selectedKeys:h.value,confirm:M,clearFilters:T,filters:q.filters,visible:v.value,column:q.__originColumn__,close:()=>{p(!1)}}):d.value?ee=d.value:ee=C(dt,null,[L(),C("div",{class:`${U}-dropdown-btns`},[C(dn,{type:"link",size:"small",disabled:k.value,onClick:()=>T()},{default:()=>[X.filterReset]}),C(dn,{type:"primary",size:"small",onClick:A},{default:()=>[X.filterConfirm]})])]);const G=C(cve,{class:`${U}-dropdown`},{default:()=>[ee]});let le;return typeof f.value=="function"?le=f.value({filtered:u.value,column:q.__originColumn__}):f.value?le=f.value:le=C(_ae,null,null),C("div",{class:`${U}-column`},[C("span",{class:`${V}-column-title`},[(H=n.default)===null||H===void 0?void 0:H.call(n)]),C(zo,{overlay:G,trigger:["click"],open:v.value,onOpenChange:B,getPopupContainer:re,placement:F.value==="rtl"?"bottomLeft":"bottomRight"},{default:()=>[C("span",{role:"button",tabindex:-1,class:ge(`${U}-trigger`,{active:u.value}),onClick:ue=>{ue.stopPropagation()}},[le])]})])}}});function ey(e,t,n){let r=[];return(e||[]).forEach((o,a)=>{var i,l;const s=Oc(a,n),u=o.filterDropdown||((i=o==null?void 0:o.slots)===null||i===void 0?void 0:i.filterDropdown)||o.customFilterDropdown;if(o.filters||u||"onFilter"in o)if("filteredValue"in o){let c=o.filteredValue;u||(c=(l=c==null?void 0:c.map(String))!==null&&l!==void 0?l:c),r.push({column:o,key:Gi(o,s),filteredKeys:c,forceFiltered:o.filtered})}else r.push({column:o,key:Gi(o,s),filteredKeys:t&&o.defaultFilteredValue?o.defaultFilteredValue:void 0,forceFiltered:o.filtered});"children"in o&&(r=[...r,...ey(o.children,t,s)])}),r}function M5(e,t,n,r,o,a,i,l){return n.map((s,u)=>{var c;const d=Oc(u,l),{filterMultiple:f=!0,filterMode:p,filterSearch:v}=s;let m=s;const h=s.filterDropdown||((c=s==null?void 0:s.slots)===null||c===void 0?void 0:c.filterDropdown)||s.customFilterDropdown;if(m.filters||h){const g=Gi(m,d),x=r.find(y=>{let{key:w}=y;return g===w});m=E(E({},m),{title:y=>C(Pve,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:m,columnKey:g,filterState:x,filterMultiple:f,filterMode:p,filterSearch:v,triggerFilter:a,locale:o,getPopupContainer:i},{default:()=>[ww(s.title,y)]})})}return"children"in m&&(m=E(E({},m),{children:M5(e,t,m.children,r,o,a,i,d)})),m})}function hv(e){let t=[];return(e||[]).forEach(n=>{let{value:r,children:o}=n;t.push(r),o&&(t=[...t,...hv(o)])}),t}function SE(e){const t={};return e.forEach(n=>{let{key:r,filteredKeys:o,column:a}=n;var i;const l=a.filterDropdown||((i=a==null?void 0:a.slots)===null||i===void 0?void 0:i.filterDropdown)||a.customFilterDropdown,{filters:s}=a;if(l)t[r]=o||null;else if(Array.isArray(o)){const u=hv(s);t[r]=u.filter(c=>o.includes(String(c)))}else t[r]=null}),t}function CE(e,t){return t.reduce((n,r)=>{const{column:{onFilter:o,filters:a},filteredKeys:i}=r;return o&&i&&i.length?n.filter(l=>i.some(s=>{const u=hv(a),c=u.findIndex(f=>String(f)===String(s)),d=c!==-1?u[c]:s;return o(d,l)})):n},e)}function Ive(e){let{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,locale:o,onFilterChange:a,getPopupContainer:i}=e;const[l,s]=It(ey(r.value,!0)),u=z(()=>{const p=ey(r.value,!1);if(p.length===0)return p;let v=!0,m=!0;if(p.forEach(h=>{let{filteredKeys:g}=h;g!==void 0?v=!1:m=!1}),v){const h=(r.value||[]).map((g,x)=>Gi(g,Oc(x)));return l.value.filter(g=>{let{key:x}=g;return h.includes(x)}).map(g=>{const x=r.value[h.findIndex(y=>y===g.key)];return E(E({},g),{column:E(E({},g.column),x),forceFiltered:x.filtered})})}return qt(m,"Table","Columns should all contain `filteredValue` or not contain `filteredValue`."),p}),c=z(()=>SE(u.value)),d=p=>{const v=u.value.filter(m=>{let{key:h}=m;return h!==p.key});v.push(p),s(v),a(SE(v),v)};return[p=>M5(t.value,n.value,p,u.value,o.value,d,i.value),u,c]}function N5(e,t){return e.map(n=>{const r=E({},n);return r.title=ww(r.title,t),"children"in r&&(r.children=N5(r.children,t)),r})}function _ve(e){return[n=>N5(n,e.value)]}function Bve(e){return function(n){let{prefixCls:r,onExpand:o,record:a,expanded:i,expandable:l}=n;const s=`${r}-row-expand-icon`;return C("button",{type:"button",onClick:u=>{o(a,u),u.stopPropagation()},class:ge(s,{[`${s}-spaced`]:!l,[`${s}-expanded`]:l&&i,[`${s}-collapsed`]:l&&!i}),"aria-label":i?e.collapse:e.expand,"aria-expanded":i},null)}}function P5(e,t){const n=t.value;return e.map(r=>{var o;if(r===ra||r===ja)return r;const a=E({},r),{slots:i={}}=a;return a.__originColumn__=r,qt(!("slots"in a),"Table","`column.slots` is deprecated. Please use `v-slot:headerCell` `v-slot:bodyCell` instead."),Object.keys(i).forEach(l=>{const s=i[l];a[l]===void 0&&n[s]&&(a[l]=n[s])}),t.value.headerCell&&!(!((o=r.slots)===null||o===void 0)&&o.title)&&(a.title=nm(t.value,"headerCell",{title:r.title,column:r},()=>[r.title])),"children"in a&&Array.isArray(a.children)&&(a.children=P5(a.children,t)),a})}function Fve(e){return[n=>P5(n,e)]}const Rve=e=>{const{componentCls:t}=e,n=`${e.lineWidth}px ${e.lineType} ${e.tableBorderColor}`,r=(o,a,i)=>({[`&${t}-${o}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"> table > tbody > tr > td":{[`> ${t}-expanded-row-fixed`]:{margin:`-${a}px -${i+e.lineWidth}px`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:E(E(E({[`> ${t}-title`]:{border:n,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:n,[`
- > ${t}-content,
- > ${t}-header,
- > ${t}-body,
- > ${t}-summary
- `]:{"> table":{[`
- > thead > tr > th,
- > tbody > tr > td,
- > tfoot > tr > th,
- > tfoot > tr > td
- `]:{borderInlineEnd:n},"> thead":{"> tr:not(:last-child) > th":{borderBottom:n},"> tr > th::before":{backgroundColor:"transparent !important"}},[`
- > thead > tr,
- > tbody > tr,
- > tfoot > tr
- `]:{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:n}},"> tbody > tr > td":{[`> ${t}-expanded-row-fixed`]:{margin:`-${e.tablePaddingVertical}px -${e.tablePaddingHorizontal+e.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:e.lineWidth,bottom:0,borderInlineEnd:n,content:'""'}}}}},[`
- > ${t}-content,
- > ${t}-header
- `]:{"> table":{borderTop:n}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[`
- > tr${t}-expanded-row,
- > tr${t}-placeholder
- `]:{"> td":{borderInlineEnd:0}}}}}},r("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),r("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:n,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${e.lineWidth}px 0 ${e.lineWidth}px ${e.tableHeaderBg}`}}}}},zve=Rve,Lve=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:E(E({},gn),{wordBreak:"keep-all",[`
- &${t}-cell-fix-left-last,
- &${t}-cell-fix-right-first
- `]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},kve=Lve,Hve=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"&:hover > td":{background:e.colorBgContainer}}}}},jve=Hve,Vve=e=>{const{componentCls:t,antCls:n,controlInteractiveSize:r,motionDurationSlow:o,lineWidth:a,paddingXS:i,lineType:l,tableBorderColor:s,tableExpandIconBg:u,tableExpandColumnWidth:c,borderRadius:d,fontSize:f,fontSizeSM:p,lineHeight:v,tablePaddingVertical:m,tablePaddingHorizontal:h,tableExpandedRowBg:g,paddingXXS:x}=e,y=r/2-a,w=y*2+a*3,b=`${a}px ${l} ${s}`,S=x-a;return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:c},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:E(E({},mm(e)),{position:"relative",float:"left",boxSizing:"border-box",width:w,height:w,padding:0,color:"inherit",lineHeight:`${w}px`,background:u,border:b,borderRadius:d,transform:`scale(${r/w})`,transition:`all ${o}`,userSelect:"none",["&:focus, &:hover, &:active"]:{borderColor:"currentcolor"},["&::before, &::after"]:{position:"absolute",background:"currentcolor",transition:`transform ${o} ease-out`,content:'""'},"&::before":{top:y,insetInlineEnd:S,insetInlineStart:S,height:a},"&::after":{top:S,bottom:S,insetInlineStart:y,width:a,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:(f*v-a*3)/2-Math.ceil((p*1.4-a*3)/2),marginInlineEnd:i},[`tr${t}-expanded-row`]:{"&, &:hover":{"> td":{background:g}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`-${m}px -${h}px`,padding:`${m}px ${h}px`}}}},Wve=Vve,Uve=e=>{const{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:o,tableFilterDropdownSearchWidth:a,paddingXXS:i,paddingXS:l,colorText:s,lineWidth:u,lineType:c,tableBorderColor:d,tableHeaderIconColor:f,fontSizeSM:p,tablePaddingHorizontal:v,borderRadius:m,motionDurationSlow:h,colorTextDescription:g,colorPrimary:x,tableHeaderFilterActiveBg:y,colorTextDisabled:w,tableFilterDropdownBg:b,tableFilterDropdownHeight:S,controlItemBgHover:$,controlItemBgActive:D,boxShadowSecondary:O}=e,A=`${n}-dropdown`,T=`${t}-filter-dropdown`,M=`${n}-tree`,B=`${u}px ${c} ${d}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-i,marginInline:`${i}px ${-v/2}px`,padding:`0 ${i}px`,color:f,fontSize:p,borderRadius:m,cursor:"pointer",transition:`all ${h}`,"&:hover":{color:g,background:y},"&.active":{color:x}}}},{[`${n}-dropdown`]:{[T]:E(E({},rt(e)),{minWidth:o,backgroundColor:b,borderRadius:m,boxShadow:O,[`${A}-menu`]:{maxHeight:S,overflowX:"hidden",border:0,boxShadow:"none","&:empty::after":{display:"block",padding:`${l}px 0`,color:w,fontSize:p,textAlign:"center",content:'"Not Found"'}},[`${T}-tree`]:{paddingBlock:`${l}px 0`,paddingInline:l,[M]:{padding:0},[`${M}-treenode ${M}-node-content-wrapper:hover`]:{backgroundColor:$},[`${M}-treenode-checkbox-checked ${M}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:D}}},[`${T}-search`]:{padding:l,borderBottom:B,"&-input":{input:{minWidth:a},[r]:{color:w}}},[`${T}-checkall`]:{width:"100%",marginBottom:i,marginInlineStart:i},[`${T}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${l-u}px ${l}px`,overflow:"hidden",backgroundColor:"inherit",borderTop:B}})}},{[`${n}-dropdown ${T}, ${T}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:l,color:s},["> ul"]:{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},Kve=Uve,qve=e=>{const{componentCls:t,lineWidth:n,colorSplit:r,motionDurationSlow:o,zIndexTableFixed:a,tableBg:i,zIndexTableSticky:l}=e,s=r;return{[`${t}-wrapper`]:{[`
- ${t}-cell-fix-left,
- ${t}-cell-fix-right
- `]:{position:"sticky !important",zIndex:a,background:i},[`
- ${t}-cell-fix-left-first::after,
- ${t}-cell-fix-left-last::after
- `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-n,width:30,transform:"translateX(100%)",transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},[`${t}-cell-fix-left-all::after`]:{display:"none"},[`
- ${t}-cell-fix-right-first::after,
- ${t}-cell-fix-right-last::after
- `]:{position:"absolute",top:0,bottom:-n,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:l+1,width:30,transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${t}-ping-left`]:{[`&:not(${t}-has-fix-left) ${t}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${s}`}},[`
- ${t}-cell-fix-left-first::after,
- ${t}-cell-fix-left-last::after
- `]:{boxShadow:`inset 10px 0 8px -8px ${s}`},[`${t}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${t}-ping-right`]:{[`&:not(${t}-has-fix-right) ${t}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${s}`}},[`
- ${t}-cell-fix-right-first::after,
- ${t}-cell-fix-right-last::after
- `]:{boxShadow:`inset -10px 0 8px -8px ${s}`}}}}},Gve=qve,Xve=e=>{const{componentCls:t,antCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${e.margin}px 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},Yve=Xve,Zve=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${n}px ${n}px 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,table:{borderRadius:0,"> thead > tr:first-child":{"th:first-child":{borderRadius:0},"th:last-child":{borderRadius:0}}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${n}px ${n}px`}}}}},Jve=Zve,Qve=e=>{const{componentCls:t}=e;return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{"&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}}}}},ehe=Qve,the=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:o,paddingXS:a,tableHeaderIconColor:i,tableHeaderIconColorHover:l}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:e.tableSelectionColumnWidth},[`${t}-bordered ${t}-selection-col`]:{width:e.tableSelectionColumnWidth+a*2},[`
- table tr th${t}-selection-column,
- table tr td${t}-selection-column
- `]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:e.zIndexTableFixed+1},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${e.tablePaddingHorizontal/4}px`,[r]:{color:i,fontSize:o,verticalAlign:"baseline","&:hover":{color:l}}}}}},nhe=the,rhe=e=>{const{componentCls:t}=e,n=(r,o,a,i)=>({[`${t}${t}-${r}`]:{fontSize:i,[`
- ${t}-title,
- ${t}-footer,
- ${t}-thead > tr > th,
- ${t}-tbody > tr > td,
- tfoot > tr > th,
- tfoot > tr > td
- `]:{padding:`${o}px ${a}px`},[`${t}-filter-trigger`]:{marginInlineEnd:`-${a/2}px`},[`${t}-expanded-row-fixed`]:{margin:`-${o}px -${a}px`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:`-${o}px`,marginInline:`${e.tableExpandColumnWidth-a}px -${a}px`}},[`${t}-selection-column`]:{paddingInlineStart:`${a/4}px`}}});return{[`${t}-wrapper`]:E(E({},n("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),n("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},ohe=rhe,ahe=e=>{const{componentCls:t}=e;return{[`${t}-wrapper ${t}-resize-handle`]:{position:"absolute",top:0,height:"100% !important",bottom:0,left:" auto !important",right:" -8px",cursor:"col-resize",touchAction:"none",userSelect:"auto",width:"16px",zIndex:1,["&-line"]:{display:"block",width:"1px",marginLeft:"7px",height:"100% !important",backgroundColor:e.colorPrimary,opacity:0},["&:hover &-line"]:{opacity:1}},[`${t}-wrapper ${t}-resize-handle.dragging`]:{overflow:"hidden",[`${t}-resize-handle-line`]:{opacity:1},["&:before"]:{position:"absolute",top:0,bottom:0,content:'" "',width:"200vw",transform:"translateX(-50%)",opacity:0}}}},ihe=ahe,lhe=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:r,tableHeaderIconColor:o,tableHeaderIconColorHover:a}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[`
- &${t}-cell-fix-left:hover,
- &${t}-cell-fix-right:hover
- `]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorter`]:{marginInlineStart:n,color:o,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:r,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:a}}}},she=lhe,uhe=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:o,tableScrollThumbSize:a,tableScrollBg:i,zIndexTableSticky:l}=e,s=`${e.lineWidth}px ${e.lineType} ${e.tableBorderColor}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:l,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${a}px !important`,zIndex:l,display:"flex",alignItems:"center",background:i,borderTop:s,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:a,backgroundColor:r,borderRadius:100,transition:`all ${e.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:o}}}}}}},che=uhe,dhe=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:r}=e,o=`${n}px ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:o}}},[`div${t}-summary`]:{boxShadow:`0 -${n}px 0 ${r}`}}}},$E=dhe,fhe=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:o,lineWidth:a,lineType:i,tableBorderColor:l,tableFontSize:s,tableBg:u,tableRadius:c,tableHeaderTextColor:d,motionDurationMid:f,tableHeaderBg:p,tableHeaderCellSplitColor:v,tableRowHoverBg:m,tableSelectedRowBg:h,tableSelectedRowHoverBg:g,tableFooterTextColor:x,tableFooterBg:y,paddingContentVerticalLG:w,wireframe:b}=e,S=`${a}px ${i} ${l}`;return{[`${t}-wrapper`]:E(E({clear:"both",maxWidth:"100%"},yo()),{[t]:E(E({},rt(e)),{fontSize:s,background:u,borderRadius:`${c}px ${c}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${c}px ${c}px 0 0`,borderCollapse:"separate",borderSpacing:0},[`
- ${t}-thead > tr > th,
- ${t}-tbody > tr > td,
- tfoot > tr > th,
- tfoot > tr > td
- `]:{position:"relative",padding:`${w}px ${o}px`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${r}px ${o}px`},[`${t}-thead`]:{[`
- > tr > th,
- > tr > td
- `]:{position:"relative",color:d,fontWeight:n,textAlign:"start",background:p,borderBottom:S,transition:`background ${f} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:v,transform:"translateY(-50%)",transition:`background-color ${f}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}:not(${t}-bordered)`]:{[`${t}-tbody`]:{"> tr":{"> td":{borderTop:S,borderBottom:"transparent"},"&:last-child > td":{borderBottom:S},[`&:first-child > td,
- &${t}-measure-row + tr > td`]:{borderTop:"none",borderTopColor:"transparent"}}}},[`${t}${t}-bordered`]:{[`${t}-tbody`]:{"> tr":{"> td":{borderBottom:S}}}},[`${t}-tbody`]:{"> tr":{"> td":{transition:`background ${f}, border-color ${f}`,[`
- > ${t}-wrapper:only-child,
- > ${t}-expanded-row-fixed > ${t}-wrapper:only-child
- `]:{[t]:{marginBlock:`-${r}px`,marginInline:`${e.tableExpandColumnWidth-o}px -${o}px`,[`${t}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},[`
- &${t}-row:hover > td,
- > td${t}-cell-row-hover
- `]:{background:m},[`&${t}-row-selected`]:{"> td":{background:h},"&:hover > td":{background:g}}}},[`${t}:not(${t}-bordered) ${t}-tbody > tr`]:b?void 0:{[`&${t}-row:hover, &${t}-row${t}-row-selected`]:{[`+ tr${t}-row > td`]:{borderTopColor:"transparent"}},[`&${t}-row:last-child:hover > td,
- &${t}-row${t}-row-selected:last-child > td`]:{borderBottomColor:"transparent"},[`
- &${t}-row:hover > td,
- > td${t}-cell-row-hover,
- &${t}-row${t}-row-selected > td
- `]:{borderTopColor:"transparent","&:first-child":{borderStartStartRadius:c,borderEndStartRadius:c},"&:last-child":{borderStartEndRadius:c,borderEndEndRadius:c}}},[`${t}-footer`]:{padding:`${r}px ${o}px`,color:x,background:y}})}},phe=nt("Table",e=>{const{controlItemBgActive:t,controlItemBgActiveHover:n,colorTextPlaceholder:r,colorTextHeading:o,colorSplit:a,colorBorderSecondary:i,fontSize:l,padding:s,paddingXS:u,paddingSM:c,controlHeight:d,colorFillAlter:f,colorIcon:p,colorIconHover:v,opacityLoading:m,colorBgContainer:h,borderRadiusLG:g,colorFillContent:x,colorFillSecondary:y,controlInteractiveSize:w}=e,b=new $t(p),S=new $t(v),$=t,D=2,O=new $t(y).onBackground(h).toHexString(),A=new $t(x).onBackground(h).toHexString(),T=new $t(f).onBackground(h).toHexString(),M=qe(e,{tableFontSize:l,tableBg:h,tableRadius:g,tablePaddingVertical:s,tablePaddingHorizontal:s,tablePaddingVerticalMiddle:c,tablePaddingHorizontalMiddle:u,tablePaddingVerticalSmall:u,tablePaddingHorizontalSmall:u,tableBorderColor:i,tableHeaderTextColor:o,tableHeaderBg:T,tableFooterTextColor:o,tableFooterBg:T,tableHeaderCellSplitColor:i,tableHeaderSortBg:O,tableHeaderSortHoverBg:A,tableHeaderIconColor:b.clone().setAlpha(b.getAlpha()*m).toRgbString(),tableHeaderIconColorHover:S.clone().setAlpha(S.getAlpha()*m).toRgbString(),tableBodySortBg:T,tableFixedHeaderSortActiveBg:O,tableHeaderFilterActiveBg:x,tableFilterDropdownBg:h,tableRowHoverBg:T,tableSelectedRowBg:$,tableSelectedRowHoverBg:n,zIndexTableFixed:D,zIndexTableSticky:D+1,tableFontSizeMiddle:l,tableFontSizeSmall:l,tableSelectionColumnWidth:d,tableExpandIconBg:h,tableExpandColumnWidth:w+2*e.padding,tableExpandedRowBg:f,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:r,tableScrollThumbBgHover:o,tableScrollBg:a});return[fhe(M),Yve(M),$E(M),she(M),Kve(M),zve(M),Jve(M),Wve(M),$E(M),jve(M),nhe(M),Gve(M),che(M),kve(M),ohe(M),ihe(M),ehe(M)]}),mhe=[],I5=()=>({prefixCls:Ue(),columns:bt(),rowKey:Xe([String,Function]),tableLayout:Ue(),rowClassName:Xe([String,Function]),title:Oe(),footer:Oe(),id:Ue(),showHeader:Pe(),components:We(),customRow:Oe(),customHeaderRow:Oe(),direction:Ue(),expandFixed:Xe([Boolean,String]),expandColumnWidth:Number,expandedRowKeys:bt(),defaultExpandedRowKeys:bt(),expandedRowRender:Oe(),expandRowByClick:Pe(),expandIcon:Oe(),onExpand:Oe(),onExpandedRowsChange:Oe(),"onUpdate:expandedRowKeys":Oe(),defaultExpandAllRows:Pe(),indentSize:Number,expandIconColumnIndex:Number,showExpandColumn:Pe(),expandedRowClassName:Oe(),childrenColumnName:Ue(),rowExpandable:Oe(),sticky:Xe([Boolean,Object]),dropdownPrefixCls:String,dataSource:bt(),pagination:Xe([Boolean,Object]),loading:Xe([Boolean,Object]),size:Ue(),bordered:Pe(),locale:We(),onChange:Oe(),onResizeColumn:Oe(),rowSelection:We(),getPopupContainer:Oe(),scroll:We(),sortDirections:bt(),showSorterTooltip:Xe([Boolean,Object],!0),transformCellText:Oe()}),vhe=he({name:"InteralTable",inheritAttrs:!1,props:at(E(E({},I5()),{contextSlots:We()}),{rowKey:"key"}),setup(e,t){let{attrs:n,slots:r,expose:o,emit:a}=t;qt(!(typeof e.rowKey=="function"&&e.rowKey.length>1),"Table","`index` parameter of `rowKey` function is deprecated. There is no guarantee that it will work as expected."),ume(z(()=>e.contextSlots)),cme({onResizeColumn:(te,de)=>{a("resizeColumn",te,de)}});const i=Bs(),l=z(()=>{const te=new Set(Object.keys(i.value).filter(de=>i.value[de]));return e.columns.filter(de=>!de.responsive||de.responsive.some(Y=>te.has(Y)))}),{size:s,renderEmpty:u,direction:c,prefixCls:d,configProvider:f}=He("table",e),[p,v]=phe(d),m=z(()=>{var te;return e.transformCellText||((te=f.transformCellText)===null||te===void 0?void 0:te.value)}),[h]=ro("Table",cr.Table,Ye(e,"locale")),g=z(()=>e.dataSource||mhe),x=z(()=>f.getPrefixCls("dropdown",e.dropdownPrefixCls)),y=z(()=>e.childrenColumnName||"children"),w=z(()=>g.value.some(te=>te==null?void 0:te[y.value])?"nest":e.expandedRowRender?"row":null),b=_t({body:null}),S=te=>{E(b,te)},$=z(()=>typeof e.rowKey=="function"?e.rowKey:te=>te==null?void 0:te[e.rowKey]),[D]=nve(g,y,$),O={},A=function(te,de){let Y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{pagination:ae,scroll:ce,onChange:Ce}=e,ye=E(E({},O),te);Y&&(O.resetPagination(),ye.pagination.current&&(ye.pagination.current=1),ae&&ae.onChange&&ae.onChange(1,ye.pagination.pageSize)),ce&&ce.scrollToFirstRowOnChange!==!1&&b.body&&db(0,{getContainer:()=>b.body}),Ce==null||Ce(ye.pagination,ye.filters,ye.sorter,{currentDataSource:CE(J0(g.value,ye.sorterStates,y.value),ye.filterStates),action:de})},T=(te,de)=>{A({sorter:te,sorterStates:de},"sort",!1)},[M,B,F,P]=lve({prefixCls:d,mergedColumns:l,onSorterChange:T,sortDirections:z(()=>e.sortDirections||["ascend","descend"]),tableLocale:h,showSorterTooltip:Ye(e,"showSorterTooltip")}),I=z(()=>J0(g.value,B.value,y.value)),N=(te,de)=>{A({filters:te,filterStates:de},"filter",!0)},[R,_,L]=Ive({prefixCls:d,locale:h,dropdownPrefixCls:x,mergedColumns:l,onFilterChange:N,getPopupContainer:Ye(e,"getPopupContainer")}),k=z(()=>CE(I.value,_.value)),[H]=Fve(Ye(e,"contextSlots")),V=z(()=>{const te={},de=L.value;return Object.keys(de).forEach(Y=>{de[Y]!==null&&(te[Y]=de[Y])}),E(E({},F.value),{filters:te})}),[U]=_ve(V),q=(te,de)=>{A({pagination:E(E({},O.pagination),{current:te,pageSize:de})},"paginate")},[K,X]=tve(z(()=>k.value.length),Ye(e,"pagination"),q);Je(()=>{O.sorter=P.value,O.sorterStates=B.value,O.filters=L.value,O.filterStates=_.value,O.pagination=e.pagination===!1?{}:eve(K.value,e.pagination),O.resetPagination=X});const re=z(()=>{if(e.pagination===!1||!K.value.pageSize)return k.value;const{current:te=1,total:de,pageSize:Y=q0}=K.value;return qt(te>0,"Table","`current` should be positive number."),k.value.length<de?k.value.length>Y?k.value.slice((te-1)*Y,te*Y):k.value:k.value.slice((te-1)*Y,te*Y)});Je(()=>{ht(()=>{const{total:te,pageSize:de=q0}=K.value;k.value.length<te&&k.value.length>de&&qt(!1,"Table","`dataSource` length is less than `pagination.total` but large than `pagination.pageSize`. Please make sure your config correct data with async mode.")})},{flush:"post"});const ee=z(()=>e.showExpandColumn===!1?-1:w.value==="nest"&&e.expandIconColumnIndex===void 0?e.rowSelection?1:0:e.expandIconColumnIndex>0&&e.rowSelection?e.expandIconColumnIndex-1:e.expandIconColumnIndex),G=be();Ne(()=>e.rowSelection,()=>{G.value=e.rowSelection?E({},e.rowSelection):e.rowSelection},{deep:!0,immediate:!0});const[le,ue]=ove(G,{prefixCls:d,data:k,pageData:re,getRowKey:$,getRecordByKey:D,expandType:w,childrenColumnName:y,locale:h,getPopupContainer:z(()=>e.getPopupContainer)}),me=(te,de,Y)=>{let ae;const{rowClassName:ce}=e;return typeof ce=="function"?ae=ge(ce(te,de,Y)):ae=ge(ce),ge({[`${d.value}-row-selected`]:ue.value.has($.value(te,de))},ae)};o({selectedKeySet:ue});const Se=z(()=>typeof e.indentSize=="number"?e.indentSize:15),Q=te=>U(le(R(M(H(te)))));return()=>{var te;const{expandIcon:de=r.expandIcon||Bve(h.value),pagination:Y,loading:ae,bordered:ce}=e;let Ce,ye;if(Y!==!1&&(!((te=K.value)===null||te===void 0)&&te.total)){let ie;K.value.size?ie=K.value.size:ie=s.value==="small"||s.value==="middle"?"small":void 0;const ve=Ae=>C(dv,j(j({},K.value),{},{class:[`${d.value}-pagination ${d.value}-pagination-${Ae}`,K.value.class],size:ie}),null),we=c.value==="rtl"?"left":"right",{position:$e}=K.value;if($e!==null&&Array.isArray($e)){const Ae=$e.find(Te=>Te.includes("top")),xe=$e.find(Te=>Te.includes("bottom")),Ee=$e.every(Te=>`${Te}`=="none");!Ae&&!xe&&!Ee&&(ye=ve(we)),Ae&&(Ce=ve(Ae.toLowerCase().replace("top",""))),xe&&(ye=ve(xe.toLowerCase().replace("bottom","")))}else ye=ve(we)}let J;typeof ae=="boolean"?J={spinning:ae}:typeof ae=="object"&&(J=E({spinning:!0},ae));const ne=ge(`${d.value}-wrapper`,{[`${d.value}-wrapper-rtl`]:c.value==="rtl"},n.class,v.value),oe=pt(e,["columns"]);return p(C("div",{class:ne,style:n.style},[C(ko,j({spinning:!1},J),{default:()=>[Ce,C(Jme,j(j(j({},n),oe),{},{expandedRowKeys:e.expandedRowKeys,defaultExpandedRowKeys:e.defaultExpandedRowKeys,expandIconColumnIndex:ee.value,indentSize:Se.value,expandIcon:de,columns:l.value,direction:c.value,prefixCls:d.value,class:ge({[`${d.value}-middle`]:s.value==="middle",[`${d.value}-small`]:s.value==="small",[`${d.value}-bordered`]:ce,[`${d.value}-empty`]:g.value.length===0}),data:re.value,rowKey:$.value,rowClassName:me,internalHooks:K0,internalRefs:b,onUpdateInternalRefs:S,transformColumns:Q,transformCellText:m.value}),E(E({},r),{emptyText:()=>{var ie,ve;return((ie=r.emptyText)===null||ie===void 0?void 0:ie.call(r))||((ve=e.locale)===null||ve===void 0?void 0:ve.emptyText)||u("Table")}})),ye]})]))}}}),hhe=he({name:"ATable",inheritAttrs:!1,props:at(I5(),{rowKey:"key"}),slots:Object,setup(e,t){let{attrs:n,slots:r,expose:o}=t;const a=be();return o({table:a}),()=>{var i;const l=e.columns||x5((i=r.default)===null||i===void 0?void 0:i.call(r));return C(vhe,j(j(j({ref:a},n),e),{},{columns:l||[],expandedRowRender:r.expandedRowRender,contextSlots:E({},r)}),r)}}}),eg=hhe,$f=he({name:"ATableColumn",slots:Object,render(){return null}}),Ef=he({name:"ATableColumnGroup",slots:Object,__ANT_TABLE_COLUMN_GROUP:!0,render(){return null}}),Pp=kme,Ip=Vme,Df=E(Wme,{Cell:Ip,Row:Pp,name:"ATableSummary"}),ghe=E(eg,{SELECTION_ALL:G0,SELECTION_INVERT:X0,SELECTION_NONE:Y0,SELECTION_COLUMN:ra,EXPAND_COLUMN:ja,Column:$f,ColumnGroup:Ef,Summary:Df,install:e=>(e.component(Df.name,Df),e.component(Ip.name,Ip),e.component(Pp.name,Pp),e.component(eg.name,eg),e.component($f.name,$f),e.component(Ef.name,Ef),e)}),yhe={prefixCls:String,placeholder:String,value:String,handleClear:Function,disabled:{type:Boolean,default:void 0},onChange:Function},bhe=he({compatConfig:{MODE:3},name:"Search",inheritAttrs:!1,props:at(yhe,{placeholder:""}),emits:["change"],setup(e,t){let{emit:n}=t;const r=o=>{var a;n("change",o),o.target.value===""&&((a=e.handleClear)===null||a===void 0||a.call(e))};return()=>{const{placeholder:o,value:a,prefixCls:i,disabled:l}=e;return C(En,{placeholder:o,class:i,value:a,onChange:r,disabled:l,allowClear:!0},{prefix:()=>C(Nm,null,null)})}}});function xhe(){}const whe={renderedText:Z.any,renderedEl:Z.any,item:Z.any,checked:Pe(),prefixCls:String,disabled:Pe(),showRemove:Pe(),onClick:Function,onRemove:Function},She=he({compatConfig:{MODE:3},name:"ListItem",inheritAttrs:!1,props:whe,emits:["click","remove"],setup(e,t){let{emit:n}=t;return()=>{const{renderedText:r,renderedEl:o,item:a,checked:i,disabled:l,prefixCls:s,showRemove:u}=e,c=ge({[`${s}-content-item`]:!0,[`${s}-content-item-disabled`]:l||a.disabled});let d;return(typeof r=="string"||typeof r=="number")&&(d=String(r)),C(Ji,{componentName:"Transfer",defaultLocale:cr.Transfer},{default:f=>{const p=C("span",{class:`${s}-content-item-text`},[o]);return u?C("li",{class:c,title:d},[p,C(Tp,{disabled:l||a.disabled,class:`${s}-content-item-remove`,"aria-label":f.remove,onClick:()=>{n("remove",a)}},{default:()=>[C(y8,null,null)]})]):C("li",{class:c,title:d,onClick:l||a.disabled?xhe:()=>{n("click",a)}},[C(Zr,{class:`${s}-checkbox`,checked:i,disabled:l||a.disabled},null),p])}})}}}),Che={prefixCls:String,filteredRenderItems:Z.array.def([]),selectedKeys:Z.array,disabled:Pe(),showRemove:Pe(),pagination:Z.any,onItemSelect:Function,onScroll:Function,onItemRemove:Function};function $he(e){if(!e)return null;const t={pageSize:10,simple:!0,showSizeChanger:!1,showLessItems:!1};return typeof e=="object"?E(E({},t),e):t}const Ehe=he({compatConfig:{MODE:3},name:"ListBody",inheritAttrs:!1,props:Che,emits:["itemSelect","itemRemove","scroll"],setup(e,t){let{emit:n,expose:r}=t;const o=be(1),a=d=>{const{selectedKeys:f}=e,p=f.indexOf(d.key)>=0;n("itemSelect",d.key,!p)},i=d=>{n("itemRemove",[d.key])},l=d=>{n("scroll",d)},s=z(()=>$he(e.pagination));Ne([s,()=>e.filteredRenderItems],()=>{if(s.value){const d=Math.ceil(e.filteredRenderItems.length/s.value.pageSize);o.value=Math.min(o.value,d)}},{immediate:!0});const u=z(()=>{const{filteredRenderItems:d}=e;let f=d;return s.value&&(f=d.slice((o.value-1)*s.value.pageSize,o.value*s.value.pageSize)),f}),c=d=>{o.value=d};return r({items:u}),()=>{const{prefixCls:d,filteredRenderItems:f,selectedKeys:p,disabled:v,showRemove:m}=e;let h=null;s.value&&(h=C(dv,{simple:s.value.simple,showSizeChanger:s.value.showSizeChanger,showLessItems:s.value.showLessItems,size:"small",disabled:v,class:`${d}-pagination`,total:f.length,pageSize:s.value.pageSize,current:o.value,onChange:c},null));const g=u.value.map(x=>{let{renderedEl:y,renderedText:w,item:b}=x;const{disabled:S}=b,$=p.indexOf(b.key)>=0;return C(She,{disabled:v||S,key:b.key,item:b,renderedText:w,renderedEl:y,checked:$,prefixCls:d,onClick:a,onRemove:i,showRemove:m},null)});return C(dt,null,[C("ul",{class:ge(`${d}-content`,{[`${d}-content-show-remove`]:m}),onScroll:l},[g]),h])}}}),Dhe=Ehe,ty=e=>{const t=new Map;return e.forEach((n,r)=>{t.set(n,r)}),t},Ahe=e=>{const t=new Map;return e.forEach((n,r)=>{let{disabled:o,key:a}=n;o&&t.set(a,r)}),t},Ohe=()=>null;function The(e){return!!(e&&!hn(e)&&Object.prototype.toString.call(e)==="[object Object]")}function gd(e){return e.filter(t=>!t.disabled).map(t=>t.key)}const Mhe={prefixCls:String,dataSource:bt([]),filter:String,filterOption:Function,checkedKeys:Z.arrayOf(Z.string),handleFilter:Function,handleClear:Function,renderItem:Function,showSearch:Pe(!1),searchPlaceholder:String,notFoundContent:Z.any,itemUnit:String,itemsUnit:String,renderList:Z.any,disabled:Pe(),direction:Ue(),showSelectAll:Pe(),remove:String,selectAll:String,selectCurrent:String,selectInvert:String,removeAll:String,removeCurrent:String,selectAllLabel:Z.any,showRemove:Pe(),pagination:Z.any,onItemSelect:Function,onItemSelectAll:Function,onItemRemove:Function,onScroll:Function},EE=he({compatConfig:{MODE:3},name:"TransferList",inheritAttrs:!1,props:Mhe,slots:Object,setup(e,t){let{attrs:n,slots:r}=t;const o=be(""),a=be(),i=be(),l=(b,S)=>{let $=b?b(S):null;const D=!!$&&nn($).length>0;return D||($=C(Dhe,j(j({},S),{},{ref:i}),null)),{customize:D,bodyContent:$}},s=b=>{const{renderItem:S=Ohe}=e,$=S(b),D=The($);return{renderedText:D?$.value:$,renderedEl:D?$.label:$,item:b}},u=be([]),c=be([]);Je(()=>{const b=[],S=[];e.dataSource.forEach($=>{const D=s($),{renderedText:O}=D;if(o.value&&o.value.trim()&&!g(O,$))return null;b.push($),S.push(D)}),u.value=b,c.value=S});const d=z(()=>{const{checkedKeys:b}=e;if(b.length===0)return"none";const S=ty(b);return u.value.every($=>S.has($.key)||!!$.disabled)?"all":"part"}),f=z(()=>gd(u.value)),p=(b,S)=>Array.from(new Set([...b,...e.checkedKeys])).filter($=>S.indexOf($)===-1),v=b=>{let{disabled:S,prefixCls:$}=b;var D;const O=d.value==="all";return C(Zr,{disabled:((D=e.dataSource)===null||D===void 0?void 0:D.length)===0||S,checked:O,indeterminate:d.value==="part",class:`${$}-checkbox`,onChange:()=>{const T=f.value;e.onItemSelectAll(p(O?[]:T,O?e.checkedKeys:[]))}},null)},m=b=>{var S;const{target:{value:$}}=b;o.value=$,(S=e.handleFilter)===null||S===void 0||S.call(e,b)},h=b=>{var S;o.value="",(S=e.handleClear)===null||S===void 0||S.call(e,b)},g=(b,S)=>{const{filterOption:$}=e;return $?$(o.value,S):b.includes(o.value)},x=(b,S)=>{const{itemsUnit:$,itemUnit:D,selectAllLabel:O}=e;if(O)return typeof O=="function"?O({selectedCount:b,totalCount:S}):O;const A=S>1?$:D;return C(dt,null,[(b>0?`${b}/`:"")+S,sr(" "),A])},y=z(()=>Array.isArray(e.notFoundContent)?e.notFoundContent[e.direction==="left"?0:1]:e.notFoundContent),w=(b,S,$,D,O,A)=>{const T=O?C("div",{class:`${b}-body-search-wrapper`},[C(bhe,{prefixCls:`${b}-search`,onChange:m,handleClear:h,placeholder:S,value:o.value,disabled:A},null)]):null;let M;const{onEvents:B}=Xy(n),{bodyContent:F,customize:P}=l(D,E(E(E({},e),{filteredItems:u.value,filteredRenderItems:c.value,selectedKeys:$}),B));return P?M=C("div",{class:`${b}-body-customize-wrapper`},[F]):M=u.value.length?F:C("div",{class:`${b}-body-not-found`},[y.value]),C("div",{class:O?`${b}-body ${b}-body-with-search`:`${b}-body`,ref:a},[T,M])};return()=>{var b,S;const{prefixCls:$,checkedKeys:D,disabled:O,showSearch:A,searchPlaceholder:T,selectAll:M,selectCurrent:B,selectInvert:F,removeAll:P,removeCurrent:I,renderList:N,onItemSelectAll:R,onItemRemove:_,showSelectAll:L=!0,showRemove:k,pagination:H}=e,V=(b=r.footer)===null||b===void 0?void 0:b.call(r,E({},e)),U=ge($,{[`${$}-with-pagination`]:!!H,[`${$}-with-footer`]:!!V}),q=w($,T,D,N,A,O),K=V?C("div",{class:`${$}-footer`},[V]):null,X=!k&&!H&&v({disabled:O,prefixCls:$});let re=null;k?re=C(mn,null,{default:()=>[H&&C(mn.Item,{key:"removeCurrent",onClick:()=>{const G=gd((i.value.items||[]).map(le=>le.item));_==null||_(G)}},{default:()=>[I]}),C(mn.Item,{key:"removeAll",onClick:()=>{_==null||_(f.value)}},{default:()=>[P]})]}):re=C(mn,null,{default:()=>[C(mn.Item,{key:"selectAll",onClick:()=>{const G=f.value;R(p(G,[]))}},{default:()=>[M]}),H&&C(mn.Item,{onClick:()=>{const G=gd((i.value.items||[]).map(le=>le.item));R(p(G,[]))}},{default:()=>[B]}),C(mn.Item,{key:"selectInvert",onClick:()=>{let G;H?G=gd((i.value.items||[]).map(Se=>Se.item)):G=f.value;const le=new Set(D),ue=[],me=[];G.forEach(Se=>{le.has(Se)?me.push(Se):ue.push(Se)}),R(p(ue,me))}},{default:()=>[F]})]});const ee=C(zo,{class:`${$}-header-dropdown`,overlay:re,disabled:O},{default:()=>[C(mc,null,null)]});return C("div",{class:U,style:n.style},[C("div",{class:`${$}-header`},[L?C(dt,null,[X,ee]):null,C("span",{class:`${$}-header-selected`},[C("span",null,[x(D.length,u.value.length)]),C("span",{class:`${$}-header-title`},[(S=r.titleText)===null||S===void 0?void 0:S.call(r)])])]),q,K])}}});function DE(){}const Cw=e=>{const{disabled:t,moveToLeft:n=DE,moveToRight:r=DE,leftArrowText:o="",rightArrowText:a="",leftActive:i,rightActive:l,class:s,style:u,direction:c,oneWay:d}=e;return C("div",{class:s,style:u},[C(dn,{type:"primary",size:"small",disabled:t||!l,onClick:r,icon:c!=="rtl"?C(xo,null,null):C(oi,null,null)},{default:()=>[a]}),!d&&C(dn,{type:"primary",size:"small",disabled:t||!i,onClick:n,icon:c!=="rtl"?C(oi,null,null):C(xo,null,null)},{default:()=>[o]})])};Cw.displayName="Operation";Cw.inheritAttrs=!1;const Nhe=Cw,Phe=e=>{const{antCls:t,componentCls:n,listHeight:r,controlHeightLG:o,marginXXS:a,margin:i}=e,l=`${t}-table`,s=`${t}-input`;return{[`${n}-customize-list`]:{[`${n}-list`]:{flex:"1 1 50%",width:"auto",height:"auto",minHeight:r},[`${l}-wrapper`]:{[`${l}-small`]:{border:0,borderRadius:0,[`${l}-selection-column`]:{width:o,minWidth:o}},[`${l}-pagination${l}-pagination`]:{margin:`${i}px 0 ${a}px`}},[`${s}[disabled]`]:{backgroundColor:"transparent"}}}},AE=(e,t)=>{const{componentCls:n,colorBorder:r}=e;return{[`${n}-list`]:{borderColor:t,"&-search:not([disabled])":{borderColor:r}}}},Ihe=e=>{const{componentCls:t}=e;return{[`${t}-status-error`]:E({},AE(e,e.colorError)),[`${t}-status-warning`]:E({},AE(e,e.colorWarning))}},_he=e=>{const{componentCls:t,colorBorder:n,colorSplit:r,lineWidth:o,transferItemHeight:a,transferHeaderHeight:i,transferHeaderVerticalPadding:l,transferItemPaddingVertical:s,controlItemBgActive:u,controlItemBgActiveHover:c,colorTextDisabled:d,listHeight:f,listWidth:p,listWidthLG:v,fontSizeIcon:m,marginXS:h,paddingSM:g,lineType:x,iconCls:y,motionDurationSlow:w}=e;return{display:"flex",flexDirection:"column",width:p,height:f,border:`${o}px ${x} ${n}`,borderRadius:e.borderRadiusLG,"&-with-pagination":{width:v,height:"auto"},"&-search":{[`${y}-search`]:{color:d}},"&-header":{display:"flex",flex:"none",alignItems:"center",height:i,padding:`${l-o}px ${g}px ${l}px`,color:e.colorText,background:e.colorBgContainer,borderBottom:`${o}px ${x} ${r}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,"> *:not(:last-child)":{marginInlineEnd:4},"> *":{flex:"none"},"&-title":E(E({},gn),{flex:"auto",textAlign:"end"}),"&-dropdown":E(E({},Qi()),{fontSize:m,transform:"translateY(10%)",cursor:"pointer","&[disabled]":{cursor:"not-allowed"}})},"&-body":{display:"flex",flex:"auto",flexDirection:"column",overflow:"hidden",fontSize:e.fontSize,"&-search-wrapper":{position:"relative",flex:"none",padding:g}},"&-content":{flex:"auto",margin:0,padding:0,overflow:"auto",listStyle:"none","&-item":{display:"flex",alignItems:"center",minHeight:a,padding:`${s}px ${g}px`,transition:`all ${w}`,"> *:not(:last-child)":{marginInlineEnd:h},"> *":{flex:"none"},"&-text":E(E({},gn),{flex:"auto"}),"&-remove":{position:"relative",color:n,cursor:"pointer",transition:`all ${w}`,"&:hover":{color:e.colorLinkHover},"&::after":{position:"absolute",insert:`-${s}px -50%`,content:'""'}},[`&:not(${t}-list-content-item-disabled)`]:{"&:hover":{backgroundColor:e.controlItemBgHover,cursor:"pointer"},[`&${t}-list-content-item-checked:hover`]:{backgroundColor:c}},"&-checked":{backgroundColor:u},"&-disabled":{color:d,cursor:"not-allowed"}},[`&-show-remove ${t}-list-content-item:not(${t}-list-content-item-disabled):hover`]:{background:"transparent",cursor:"default"}},"&-pagination":{padding:`${e.paddingXS}px 0`,textAlign:"end",borderTop:`${o}px ${x} ${r}`},"&-body-not-found":{flex:"none",width:"100%",margin:"auto 0",color:d,textAlign:"center"},"&-footer":{borderTop:`${o}px ${x} ${r}`}}},Bhe=e=>{const{antCls:t,iconCls:n,componentCls:r,transferHeaderHeight:o,marginXS:a,marginXXS:i,fontSizeIcon:l,fontSize:s,lineHeight:u}=e;return{[r]:E(E({},rt(e)),{position:"relative",display:"flex",alignItems:"stretch",[`${r}-disabled`]:{[`${r}-list`]:{background:e.colorBgContainerDisabled}},[`${r}-list`]:_he(e),[`${r}-operation`]:{display:"flex",flex:"none",flexDirection:"column",alignSelf:"center",margin:`0 ${a}px`,verticalAlign:"middle",[`${t}-btn`]:{display:"block","&:first-child":{marginBottom:i},[n]:{fontSize:l}}},[`${t}-empty-image`]:{maxHeight:o/2-Math.round(s*u)}})}},Fhe=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},Rhe=nt("Transfer",e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeightLG:o,controlHeight:a}=e,i=Math.round(t*n),l=o,s=a,u=qe(e,{transferItemHeight:s,transferHeaderHeight:l,transferHeaderVerticalPadding:Math.ceil((l-r-i)/2),transferItemPaddingVertical:(s-i)/2});return[Bhe(u),Phe(u),Ihe(u),Fhe(u)]},{listWidth:180,listHeight:200,listWidthLG:250}),zhe=()=>({id:String,prefixCls:String,dataSource:bt([]),disabled:Pe(),targetKeys:bt(),selectedKeys:bt(),render:Oe(),listStyle:Xe([Function,Object],()=>({})),operationStyle:We(void 0),titles:bt(),operations:bt(),showSearch:Pe(!1),filterOption:Oe(),searchPlaceholder:String,notFoundContent:Z.any,locale:We(),rowKey:Oe(),showSelectAll:Pe(),selectAllLabels:bt(),children:Oe(),oneWay:Pe(),pagination:Xe([Object,Boolean]),status:Ue(),onChange:Oe(),onSelectChange:Oe(),onSearch:Oe(),onScroll:Oe(),"onUpdate:targetKeys":Oe(),"onUpdate:selectedKeys":Oe()}),Lhe=he({compatConfig:{MODE:3},name:"ATransfer",inheritAttrs:!1,props:zhe(),slots:Object,setup(e,t){let{emit:n,attrs:r,slots:o,expose:a}=t;const{configProvider:i,prefixCls:l,direction:s}=He("transfer",e),[u,c]=Rhe(l),d=be([]),f=be([]),p=Cn(),v=Bn.useInject(),m=z(()=>$o(v.status,e.status));Ne(()=>e.selectedKeys,()=>{var q,K;d.value=((q=e.selectedKeys)===null||q===void 0?void 0:q.filter(X=>e.targetKeys.indexOf(X)===-1))||[],f.value=((K=e.selectedKeys)===null||K===void 0?void 0:K.filter(X=>e.targetKeys.indexOf(X)>-1))||[]},{immediate:!0});const h=(q,K)=>{const X={notFoundContent:K("Transfer")},re=Sn(o,e,"notFoundContent");return re&&(X.notFoundContent=re),e.searchPlaceholder!==void 0&&(X.searchPlaceholder=e.searchPlaceholder),E(E(E({},q),X),e.locale)},g=q=>{const{targetKeys:K=[],dataSource:X=[]}=e,re=q==="right"?d.value:f.value,ee=Ahe(X),G=re.filter(Se=>!ee.has(Se)),le=ty(G),ue=q==="right"?G.concat(K):K.filter(Se=>!le.has(Se)),me=q==="right"?"left":"right";q==="right"?d.value=[]:f.value=[],n("update:targetKeys",ue),$(me,[]),n("change",ue,q,G),p.onFieldChange()},x=()=>{g("left")},y=()=>{g("right")},w=(q,K)=>{$(q,K)},b=q=>w("left",q),S=q=>w("right",q),$=(q,K)=>{q==="left"?(e.selectedKeys||(d.value=K),n("update:selectedKeys",[...K,...f.value]),n("selectChange",K,cn(f.value))):(e.selectedKeys||(f.value=K),n("update:selectedKeys",[...K,...d.value]),n("selectChange",cn(d.value),K))},D=(q,K)=>{const X=K.target.value;n("search",q,X)},O=q=>{D("left",q)},A=q=>{D("right",q)},T=q=>{n("search",q,"")},M=()=>{T("left")},B=()=>{T("right")},F=(q,K,X)=>{const re=q==="left"?[...d.value]:[...f.value],ee=re.indexOf(K);ee>-1&&re.splice(ee,1),X&&re.push(K),$(q,re)},P=(q,K)=>F("left",q,K),I=(q,K)=>F("right",q,K),N=q=>{const{targetKeys:K=[]}=e,X=K.filter(re=>!q.includes(re));n("update:targetKeys",X),n("change",X,"left",[...q])},R=(q,K)=>{n("scroll",q,K)},_=q=>{R("left",q)},L=q=>{R("right",q)},k=(q,K)=>typeof q=="function"?q({direction:K}):q,H=be([]),V=be([]);Je(()=>{const{dataSource:q,rowKey:K,targetKeys:X=[]}=e,re=[],ee=new Array(X.length),G=ty(X);q.forEach(le=>{K&&(le.key=K(le)),G.has(le.key)?ee[G.get(le.key)]=le:re.push(le)}),H.value=re,V.value=ee}),a({handleSelectChange:$});const U=q=>{var K,X,re,ee,G,le;const{disabled:ue,operations:me=[],showSearch:Se,listStyle:Q,operationStyle:te,filterOption:de,showSelectAll:Y,selectAllLabels:ae=[],oneWay:ce,pagination:Ce,id:ye=p.id.value}=e,{class:J,style:ne}=r,oe=o.children,ie=!oe&&Ce,ve=i.renderEmpty,we=h(q,ve),{footer:$e}=o,Ae=e.render||o.render,xe=f.value.length>0,Ee=d.value.length>0,Te=ge(l.value,J,{[`${l.value}-disabled`]:ue,[`${l.value}-customize-list`]:!!oe,[`${l.value}-rtl`]:s.value==="rtl"},er(l.value,m.value,v.hasFeedback),c.value),Me=e.titles,ze=(re=(K=Me&&Me[0])!==null&&K!==void 0?K:(X=o.leftTitle)===null||X===void 0?void 0:X.call(o))!==null&&re!==void 0?re:(we.titles||["",""])[0],Be=(le=(ee=Me&&Me[1])!==null&&ee!==void 0?ee:(G=o.rightTitle)===null||G===void 0?void 0:G.call(o))!==null&&le!==void 0?le:(we.titles||["",""])[1];return C("div",j(j({},r),{},{class:Te,style:ne,id:ye}),[C(EE,j({key:"leftList",prefixCls:`${l.value}-list`,dataSource:H.value,filterOption:de,style:k(Q,"left"),checkedKeys:d.value,handleFilter:O,handleClear:M,onItemSelect:P,onItemSelectAll:b,renderItem:Ae,showSearch:Se,renderList:oe,onScroll:_,disabled:ue,direction:s.value==="rtl"?"right":"left",showSelectAll:Y,selectAllLabel:ae[0]||o.leftSelectAllLabel,pagination:ie},we),{titleText:()=>ze,footer:$e}),C(Nhe,{key:"operation",class:`${l.value}-operation`,rightActive:Ee,rightArrowText:me[0],moveToRight:y,leftActive:xe,leftArrowText:me[1],moveToLeft:x,style:te,disabled:ue,direction:s.value,oneWay:ce},null),C(EE,j({key:"rightList",prefixCls:`${l.value}-list`,dataSource:V.value,filterOption:de,style:k(Q,"right"),checkedKeys:f.value,handleFilter:A,handleClear:B,onItemSelect:I,onItemSelectAll:S,onItemRemove:N,renderItem:Ae,showSearch:Se,renderList:oe,onScroll:L,disabled:ue,direction:s.value==="rtl"?"left":"right",showSelectAll:Y,selectAllLabel:ae[1]||o.rightSelectAllLabel,showRemove:ce,pagination:ie},we),{titleText:()=>Be,footer:$e})])};return()=>u(C(Ji,{componentName:"Transfer",defaultLocale:cr.Transfer,children:U},null))}}),khe=rn(Lhe);function Hhe(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}function jhe(e){const{label:t,value:n,children:r}=e||{},o=n||"value";return{_title:t?[t]:["title","label"],value:o,key:o,children:r||"children"}}function ny(e){return e.disabled||e.disableCheckbox||e.checkable===!1}function Vhe(e,t){const n=[];function r(o){o.forEach(a=>{n.push(a[t.value]);const i=a[t.children];i&&r(i)})}return r(e),n}function OE(e){return e==null}const _5=Symbol("TreeSelectContextPropsKey");function Whe(e){return it(_5,e)}function Uhe(){return lt(_5,{})}const Khe={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},qhe=he({compatConfig:{MODE:3},name:"OptionList",inheritAttrs:!1,setup(e,t){let{slots:n,expose:r}=t;const o=pc(),a=Am(),i=Uhe(),l=be(),s=_b(()=>i.treeData,[()=>o.open,()=>i.treeData],b=>b[0]),u=z(()=>{const{checkable:b,halfCheckedKeys:S,checkedKeys:$}=a;return b?{checked:$,halfChecked:S}:null});Ne(()=>o.open,()=>{ht(()=>{var b;o.open&&!o.multiple&&a.checkedKeys.length&&((b=l.value)===null||b===void 0||b.scrollTo({key:a.checkedKeys[0]}))})},{immediate:!0,flush:"post"});const c=z(()=>String(o.searchValue).toLowerCase()),d=b=>c.value?String(b[a.treeNodeFilterProp]).toLowerCase().includes(c.value):!1,f=pe(a.treeDefaultExpandedKeys),p=pe(null);Ne(()=>o.searchValue,()=>{o.searchValue&&(p.value=Vhe(cn(i.treeData),cn(i.fieldNames)))},{immediate:!0});const v=z(()=>a.treeExpandedKeys?a.treeExpandedKeys.slice():o.searchValue?p.value:f.value),m=b=>{var S;f.value=b,p.value=b,(S=a.onTreeExpand)===null||S===void 0||S.call(a,b)},h=b=>{b.preventDefault()},g=(b,S)=>{let{node:$}=S;var D,O;const{checkable:A,checkedKeys:T}=a;A&&ny($)||((D=i.onSelect)===null||D===void 0||D.call(i,$.key,{selected:!T.includes($.key)}),o.multiple||(O=o.toggleOpen)===null||O===void 0||O.call(o,!1))},x=be(null),y=z(()=>a.keyEntities[x.value]),w=b=>{x.value=b};return r({scrollTo:function(){for(var b,S,$=arguments.length,D=new Array($),O=0;O<$;O++)D[O]=arguments[O];return(S=(b=l.value)===null||b===void 0?void 0:b.scrollTo)===null||S===void 0?void 0:S.call(b,...D)},onKeydown:b=>{var S;const{which:$}=b;switch($){case _e.UP:case _e.DOWN:case _e.LEFT:case _e.RIGHT:(S=l.value)===null||S===void 0||S.onKeydown(b);break;case _e.ENTER:{if(y.value){const{selectable:D,value:O}=y.value.node||{};D!==!1&&g(null,{node:{key:x.value},selected:!a.checkedKeys.includes(O)})}break}case _e.ESC:o.toggleOpen(!1)}},onKeyup:()=>{}}),()=>{var b;const{prefixCls:S,multiple:$,searchValue:D,open:O,notFoundContent:A=(b=n.notFoundContent)===null||b===void 0?void 0:b.call(n)}=o,{listHeight:T,listItemHeight:M,virtual:B,dropdownMatchSelectWidth:F,treeExpandAction:P}=i,{checkable:I,treeDefaultExpandAll:N,treeIcon:R,showTreeIcon:_,switcherIcon:L,treeLine:k,loadData:H,treeLoadedKeys:V,treeMotion:U,onTreeLoad:q,checkedKeys:K}=a;if(s.value.length===0)return C("div",{role:"listbox",class:`${S}-empty`,onMousedown:h},[A]);const X={fieldNames:i.fieldNames};return V&&(X.loadedKeys=V),v.value&&(X.expandedKeys=v.value),C("div",{onMousedown:h},[y.value&&O&&C("span",{style:Khe,"aria-live":"assertive"},[y.value.node.value]),C(C5,j(j({ref:l,focusable:!1,prefixCls:`${S}-tree`,treeData:s.value,height:T,itemHeight:M,virtual:B!==!1&&F!==!1,multiple:$,icon:R,showIcon:_,switcherIcon:L,showLine:k,loadData:D?null:H,motion:U,activeKey:x.value,checkable:I,checkStrictly:!0,checkedKeys:u.value,selectedKeys:I?[]:K,defaultExpandAll:N},X),{},{onActiveChange:w,onSelect:g,onCheck:g,onExpand:m,onLoad:q,filterTreeNode:d,expandAction:P}),E(E({},n),{checkable:a.customSlots.treeCheckable}))])}}}),Ghe="SHOW_ALL",B5="SHOW_PARENT",$w="SHOW_CHILD";function TE(e,t,n,r){const o=new Set(e);return t===$w?e.filter(a=>{const i=n[a];return!(i&&i.children&&i.children.some(l=>{let{node:s}=l;return o.has(s[r.value])})&&i.children.every(l=>{let{node:s}=l;return ny(s)||o.has(s[r.value])}))}):t===B5?e.filter(a=>{const i=n[a],l=i?i.parent:null;return!(l&&!ny(l.node)&&o.has(l.key))}):e}const gv=()=>null;gv.inheritAttrs=!1;gv.displayName="ATreeSelectNode";gv.isTreeSelectNode=!0;const Ew=gv;var Xhe=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function Yhe(e){return e&&e.type&&e.type.isTreeSelectNode}function Zhe(e){function t(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return nn(n).map(r=>{var o,a,i;if(!Yhe(r))return null;const l=r.children||{},s=r.key,u={};for(const[$,D]of Object.entries(r.props))u[Zi($)]=D;const{isLeaf:c,checkable:d,selectable:f,disabled:p,disableCheckbox:v}=u,m={isLeaf:c||c===""||void 0,checkable:d||d===""||void 0,selectable:f||f===""||void 0,disabled:p||p===""||void 0,disableCheckbox:v||v===""||void 0},h=E(E({},u),m),{title:g=(o=l.title)===null||o===void 0?void 0:o.call(l,h),switcherIcon:x=(a=l.switcherIcon)===null||a===void 0?void 0:a.call(l,h)}=u,y=Xhe(u,["title","switcherIcon"]),w=(i=l.default)===null||i===void 0?void 0:i.call(l),b=E(E(E({},y),{title:g,switcherIcon:x,key:s,isLeaf:c}),m),S=t(w);return S.length&&(b.children=S),b})}return t(e)}function ry(e){if(!e)return e;const t=E({},e);return"props"in t||Object.defineProperty(t,"props",{get(){return t}}),t}function Jhe(e,t,n,r,o,a){let i=null,l=null;function s(){function u(c){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return c.map((p,v)=>{const m=`${d}-${v}`,h=p[a.value],g=n.includes(h),x=u(p[a.children]||[],m,g),y=C(Ew,p,{default:()=>[x.map(w=>w.node)]});if(t===h&&(i=y),g){const w={pos:m,node:y,children:x};return f||l.push(w),w}return null}).filter(p=>p)}l||(l=[],u(r),l.sort((c,d)=>{let{node:{props:{value:f}}}=c,{node:{props:{value:p}}}=d;const v=n.indexOf(f),m=n.indexOf(p);return v-m}))}Object.defineProperty(e,"triggerNode",{get(){return s(),i}}),Object.defineProperty(e,"allCheckedNodes",{get(){return s(),o?l:l.map(u=>{let{node:c}=u;return c})}})}function Qhe(e,t){let{id:n,pId:r,rootPId:o}=t;const a={},i=[];return e.map(s=>{const u=E({},s),c=u[n];return a[c]=u,u.key=u.key||c,u}).forEach(s=>{const u=s[r],c=a[u];c&&(c.children=c.children||[],c.children.push(s)),(u===o||!c&&o===null)&&i.push(s)}),i}function ege(e,t,n){const r=pe();return Ne([n,e,t],()=>{const o=n.value;e.value?r.value=n.value?Qhe(cn(e.value),E({id:"id",pId:"pId",rootPId:null},o!==!0?o:{})):cn(e.value).slice():r.value=Zhe(cn(t.value))},{immediate:!0,deep:!0}),r}const tge=e=>{const t=pe({valueLabels:new Map}),n=pe();return Ne(e,()=>{n.value=cn(e.value)},{immediate:!0}),[z(()=>{const{valueLabels:o}=t.value,a=new Map,i=n.value.map(l=>{var s;const{value:u}=l,c=(s=l.label)!==null&&s!==void 0?s:o.get(u);return a.set(u,c),E(E({},l),{label:c})});return t.value.valueLabels=a,i})]},nge=(e,t)=>{const n=pe(new Map),r=pe({});return Je(()=>{const o=t.value,a=$c(e.value,{fieldNames:o,initWrapper:i=>E(E({},i),{valueEntities:new Map}),processEntity:(i,l)=>{const s=i.node[o.value];l.valueEntities.set(s,i)}});n.value=a.valueEntities,r.value=a.keyEntities}),{valueEntities:n,keyEntities:r}},rge=(e,t,n,r,o,a)=>{const i=pe([]),l=pe([]);return Je(()=>{let s=e.value.map(d=>{let{value:f}=d;return f}),u=t.value.map(d=>{let{value:f}=d;return f});const c=s.filter(d=>!r.value[d]);n.value&&({checkedKeys:s,halfCheckedKeys:u}=Yr(s,!0,r.value,o.value,a.value)),i.value=Array.from(new Set([...c,...s])),l.value=u}),[i,l]},oge=(e,t,n)=>{let{treeNodeFilterProp:r,filterTreeNode:o,fieldNames:a}=n;return z(()=>{const{children:i}=a.value,l=t.value,s=r==null?void 0:r.value;if(!l||o.value===!1)return e.value;let u;if(typeof o.value=="function")u=o.value;else{const d=l.toUpperCase();u=(f,p)=>{const v=p[s];return String(v).toUpperCase().includes(d)}}function c(d){let f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const p=[];for(let v=0,m=d.length;v<m;v++){const h=d[v],g=h[i],x=f||u(l,ry(h)),y=c(g||[],x);(x||y.length)&&p.push(E(E({},h),{[i]:y}))}return p}return c(e.value)})};function F5(){return E(E({},pt(Om(),["mode"])),{prefixCls:String,id:String,value:{type:[String,Number,Object,Array]},defaultValue:{type:[String,Number,Object,Array]},onChange:{type:Function},searchValue:String,inputValue:String,onSearch:{type:Function},autoClearSearchValue:{type:Boolean,default:void 0},filterTreeNode:{type:[Boolean,Function],default:void 0},treeNodeFilterProp:String,onSelect:Function,onDeselect:Function,showCheckedStrategy:{type:String},treeNodeLabelProp:String,fieldNames:{type:Object},multiple:{type:Boolean,default:void 0},treeCheckable:{type:Boolean,default:void 0},treeCheckStrictly:{type:Boolean,default:void 0},labelInValue:{type:Boolean,default:void 0},treeData:{type:Array},treeDataSimpleMode:{type:[Boolean,Object],default:void 0},loadData:{type:Function},treeLoadedKeys:{type:Array},onTreeLoad:{type:Function},treeDefaultExpandAll:{type:Boolean,default:void 0},treeExpandedKeys:{type:Array},treeDefaultExpandedKeys:{type:Array},onTreeExpand:{type:Function},virtual:{type:Boolean,default:void 0},listHeight:Number,listItemHeight:Number,onDropdownVisibleChange:{type:Function},treeLine:{type:[Boolean,Object],default:void 0},treeIcon:Z.any,showTreeIcon:{type:Boolean,default:void 0},switcherIcon:Z.any,treeMotion:Z.any,children:Array,treeExpandAction:String,showArrow:{type:Boolean,default:void 0},showSearch:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},placeholder:Z.any,maxTagPlaceholder:{type:Function},dropdownPopupAlign:Z.any,customSlots:Object})}function age(e){return!e||typeof e!="object"}const ige=he({compatConfig:{MODE:3},name:"TreeSelect",inheritAttrs:!1,props:at(F5(),{treeNodeFilterProp:"value",autoClearSearchValue:!0,showCheckedStrategy:$w,listHeight:200,listItemHeight:20,prefixCls:"vc-tree-select"}),setup(e,t){let{attrs:n,expose:r,slots:o}=t;const a=Bb(Ye(e,"id")),i=z(()=>e.treeCheckable&&!e.treeCheckStrictly),l=z(()=>e.treeCheckable||e.treeCheckStrictly),s=z(()=>e.treeCheckStrictly||e.labelInValue),u=z(()=>l.value||e.multiple),c=z(()=>jhe(e.fieldNames)),[d,f]=Zt("",{value:z(()=>e.searchValue!==void 0?e.searchValue:e.inputValue),postState:ye=>ye||""}),p=ye=>{var J;f(ye),(J=e.onSearch)===null||J===void 0||J.call(e,ye)},v=ege(Ye(e,"treeData"),Ye(e,"children"),Ye(e,"treeDataSimpleMode")),{keyEntities:m,valueEntities:h}=nge(v,c),g=ye=>{const J=[],ne=[];return ye.forEach(oe=>{h.value.has(oe)?ne.push(oe):J.push(oe)}),{missingRawValues:J,existRawValues:ne}},x=oge(v,d,{fieldNames:c,treeNodeFilterProp:Ye(e,"treeNodeFilterProp"),filterTreeNode:Ye(e,"filterTreeNode")}),y=ye=>{if(ye){if(e.treeNodeLabelProp)return ye[e.treeNodeLabelProp];const{_title:J}=c.value;for(let ne=0;ne<J.length;ne+=1){const oe=ye[J[ne]];if(oe!==void 0)return oe}}},w=ye=>Hhe(ye).map(ne=>age(ne)?{value:ne}:ne),b=ye=>w(ye).map(ne=>{let{label:oe}=ne;const{value:ie,halfChecked:ve}=ne;let we;const $e=h.value.get(ie);return $e&&(oe=oe??y($e.node),we=$e.node.disabled),{label:oe,value:ie,halfChecked:ve,disabled:we}}),[S,$]=Zt(e.defaultValue,{value:Ye(e,"value")}),D=z(()=>w(S.value)),O=pe([]),A=pe([]);Je(()=>{const ye=[],J=[];D.value.forEach(ne=>{ne.halfChecked?J.push(ne):ye.push(ne)}),O.value=ye,A.value=J});const T=z(()=>O.value.map(ye=>ye.value)),{maxLevel:M,levelEntities:B}=tv(m),[F,P]=rge(O,A,i,m,M,B),I=z(()=>{const ne=TE(F.value,e.showCheckedStrategy,m.value,c.value).map(ve=>{var we,$e,Ae;return(Ae=($e=(we=m.value[ve])===null||we===void 0?void 0:we.node)===null||$e===void 0?void 0:$e[c.value.value])!==null&&Ae!==void 0?Ae:ve}).map(ve=>{const we=O.value.find($e=>$e.value===ve);return{value:ve,label:we==null?void 0:we.label}}),oe=b(ne),ie=oe[0];return!u.value&&ie&&OE(ie.value)&&OE(ie.label)?[]:oe.map(ve=>{var we;return E(E({},ve),{label:(we=ve.label)!==null&&we!==void 0?we:ve.value})})}),[N]=tge(I),R=(ye,J,ne)=>{const oe=b(ye);if($(oe),e.autoClearSearchValue&&f(""),e.onChange){let ie=ye;i.value&&(ie=TE(ye,e.showCheckedStrategy,m.value,c.value).map(ze=>{const Be=h.value.get(ze);return Be?Be.node[c.value.value]:ze}));const{triggerValue:ve,selected:we}=J||{triggerValue:void 0,selected:void 0};let $e=ie;if(e.treeCheckStrictly){const Me=A.value.filter(ze=>!ie.includes(ze.value));$e=[...$e,...Me]}const Ae=b($e),xe={preValue:O.value,triggerValue:ve};let Ee=!0;(e.treeCheckStrictly||ne==="selection"&&!we)&&(Ee=!1),Jhe(xe,ve,ye,v.value,Ee,c.value),l.value?xe.checked=we:xe.selected=we;const Te=s.value?Ae:Ae.map(Me=>Me.value);e.onChange(u.value?Te:Te[0],s.value?null:Ae.map(Me=>Me.label),xe)}},_=(ye,J)=>{let{selected:ne,source:oe}=J;var ie,ve,we;const $e=cn(m.value),Ae=cn(h.value),xe=$e[ye],Ee=xe==null?void 0:xe.node,Te=(ie=Ee==null?void 0:Ee[c.value.value])!==null&&ie!==void 0?ie:ye;if(!u.value)R([Te],{selected:!0,triggerValue:Te},"option");else{let Me=ne?[...T.value,Te]:F.value.filter(ze=>ze!==Te);if(i.value){const{missingRawValues:ze,existRawValues:Be}=g(Me),je=Be.map(fe=>Ae.get(fe).key);let W;ne?{checkedKeys:W}=Yr(je,!0,$e,M.value,B.value):{checkedKeys:W}=Yr(je,{checked:!1,halfCheckedKeys:P.value},$e,M.value,B.value),Me=[...ze,...W.map(fe=>$e[fe].node[c.value.value])]}R(Me,{selected:ne,triggerValue:Te},oe||"option")}ne||!u.value?(ve=e.onSelect)===null||ve===void 0||ve.call(e,Te,ry(Ee)):(we=e.onDeselect)===null||we===void 0||we.call(e,Te,ry(Ee))},L=ye=>{if(e.onDropdownVisibleChange){const J={};Object.defineProperty(J,"documentClickClose",{get(){return!1}}),e.onDropdownVisibleChange(ye,J)}},k=(ye,J)=>{const ne=ye.map(oe=>oe.value);if(J.type==="clear"){R(ne,{},"selection");return}J.values.length&&_(J.values[0].value,{selected:!1,source:"selection"})},{treeNodeFilterProp:H,loadData:V,treeLoadedKeys:U,onTreeLoad:q,treeDefaultExpandAll:K,treeExpandedKeys:X,treeDefaultExpandedKeys:re,onTreeExpand:ee,virtual:G,listHeight:le,listItemHeight:ue,treeLine:me,treeIcon:Se,showTreeIcon:Q,switcherIcon:te,treeMotion:de,customSlots:Y,dropdownMatchSelectWidth:ae,treeExpandAction:ce}=Xr(e);Bj(Lu({checkable:l,loadData:V,treeLoadedKeys:U,onTreeLoad:q,checkedKeys:F,halfCheckedKeys:P,treeDefaultExpandAll:K,treeExpandedKeys:X,treeDefaultExpandedKeys:re,onTreeExpand:ee,treeIcon:Se,treeMotion:de,showTreeIcon:Q,switcherIcon:te,treeLine:me,treeNodeFilterProp:H,keyEntities:m,customSlots:Y})),Whe(Lu({virtual:G,listHeight:le,listItemHeight:ue,treeData:x,fieldNames:c,onSelect:_,dropdownMatchSelectWidth:ae,treeExpandAction:ce}));const Ce=be();return r({focus(){var ye;(ye=Ce.value)===null||ye===void 0||ye.focus()},blur(){var ye;(ye=Ce.value)===null||ye===void 0||ye.blur()},scrollTo(ye){var J;(J=Ce.value)===null||J===void 0||J.scrollTo(ye)}}),()=>{var ye;const J=pt(e,["id","prefixCls","customSlots","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","virtual","listHeight","listItemHeight","onDropdownVisibleChange","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion"]);return C(Ib,j(j(j({ref:Ce},n),J),{},{id:a,prefixCls:e.prefixCls,mode:u.value?"multiple":void 0,displayValues:N.value,onDisplayValuesChange:k,searchValue:d.value,onSearch:p,OptionList:qhe,emptyOptions:!v.value.length,onDropdownVisibleChange:L,tagRender:e.tagRender||o.tagRender,dropdownMatchSelectWidth:(ye=e.dropdownMatchSelectWidth)!==null&&ye!==void 0?ye:!0}),o)}}}),lge=e=>{const{componentCls:t,treePrefixCls:n,colorBgElevated:r}=e,o=`.${n}`;return[{[`${t}-dropdown`]:[{padding:`${e.paddingXS}px ${e.paddingXS/2}px`},E5(n,qe(e,{colorBgContainer:r})),{[o]:{borderRadius:0,"&-list-holder-inner":{alignItems:"stretch",[`${o}-treenode`]:{[`${o}-node-content-wrapper`]:{flex:"auto"}}}}},av(`${n}-checkbox`,e),{"&-rtl":{direction:"rtl",[`${o}-switcher${o}-switcher_close`]:{[`${o}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]};function sge(e,t){return nt("TreeSelect",n=>{const r=qe(n,{treePrefixCls:t.value});return[lge(r)]})(e)}const ME=(e,t,n)=>n!==void 0?n:`${e}-${t}`;function uge(){return E(E({},pt(F5(),["showTreeIcon","treeMotion","inputIcon","getInputElement","treeLine","customSlots"])),{suffixIcon:Z.any,size:Ue(),bordered:Pe(),treeLine:Xe([Boolean,Object]),replaceFields:We(),placement:Ue(),status:Ue(),popupClassName:String,dropdownClassName:String,"onUpdate:value":Oe(),"onUpdate:treeExpandedKeys":Oe(),"onUpdate:searchValue":Oe()})}const tg=he({compatConfig:{MODE:3},name:"ATreeSelect",inheritAttrs:!1,props:at(uge(),{choiceTransitionName:"",listHeight:256,treeIcon:!1,listItemHeight:26,bordered:!0}),slots:Object,setup(e,t){let{attrs:n,slots:r,expose:o,emit:a}=t;e.treeData===void 0&&r.default,qt(e.multiple!==!1||!e.treeCheckable,"TreeSelect","`multiple` will always be `true` when `treeCheckable` is true"),qt(e.replaceFields===void 0,"TreeSelect","`replaceFields` is deprecated, please use fieldNames instead"),qt(!e.dropdownClassName,"TreeSelect","`dropdownClassName` is deprecated. Please use `popupClassName` instead.");const i=Cn(),l=Bn.useInject(),s=z(()=>$o(l.status,e.status)),{prefixCls:u,renderEmpty:c,direction:d,virtual:f,dropdownMatchSelectWidth:p,size:v,getPopupContainer:m,getPrefixCls:h,disabled:g}=He("select",e),{compactSize:x,compactItemClassnames:y}=di(u,d),w=z(()=>x.value||v.value),b=Fr(),S=z(()=>{var U;return(U=g.value)!==null&&U!==void 0?U:b.value}),$=z(()=>h()),D=z(()=>e.placement!==void 0?e.placement:d.value==="rtl"?"bottomRight":"bottomLeft"),O=z(()=>ME($.value,Tb(D.value),e.transitionName)),A=z(()=>ME($.value,"",e.choiceTransitionName)),T=z(()=>h("select-tree",e.prefixCls)),M=z(()=>h("tree-select",e.prefixCls)),[B,F]=r1(u),[P]=sge(M,T),I=z(()=>ge(e.popupClassName||e.dropdownClassName,`${M.value}-dropdown`,{[`${M.value}-dropdown-rtl`]:d.value==="rtl"},F.value)),N=z(()=>!!(e.treeCheckable||e.multiple)),R=z(()=>e.showArrow!==void 0?e.showArrow:e.loading||!N.value),_=be();o({focus(){var U,q;(q=(U=_.value).focus)===null||q===void 0||q.call(U)},blur(){var U,q;(q=(U=_.value).blur)===null||q===void 0||q.call(U)}});const L=function(){for(var U=arguments.length,q=new Array(U),K=0;K<U;K++)q[K]=arguments[K];a("update:value",q[0]),a("change",...q),i.onFieldChange()},k=U=>{a("update:treeExpandedKeys",U),a("treeExpand",U)},H=U=>{a("update:searchValue",U),a("search",U)},V=U=>{a("blur",U),i.onFieldBlur()};return()=>{var U,q;const{notFoundContent:K=(U=r.notFoundContent)===null||U===void 0?void 0:U.call(r),prefixCls:X,bordered:re,listHeight:ee,listItemHeight:G,multiple:le,treeIcon:ue,treeLine:me,showArrow:Se,switcherIcon:Q=(q=r.switcherIcon)===null||q===void 0?void 0:q.call(r),fieldNames:te=e.replaceFields,id:de=i.id.value}=e,{isFormItemInput:Y,hasFeedback:ae,feedbackIcon:ce}=l,{suffixIcon:Ce,removeIcon:ye,clearIcon:J}=Ub(E(E({},e),{multiple:N.value,showArrow:R.value,hasFeedback:ae,feedbackIcon:ce,prefixCls:u.value}),r);let ne;K!==void 0?ne=K:ne=c("Select");const oe=pt(e,["suffixIcon","itemIcon","removeIcon","clearIcon","switcherIcon","bordered","status","onUpdate:value","onUpdate:treeExpandedKeys","onUpdate:searchValue"]),ie=ge(!X&&M.value,{[`${u.value}-lg`]:w.value==="large",[`${u.value}-sm`]:w.value==="small",[`${u.value}-rtl`]:d.value==="rtl",[`${u.value}-borderless`]:!re,[`${u.value}-in-form-item`]:Y},er(u.value,s.value,ae),y.value,n.class,F.value),ve={};return e.treeData===void 0&&r.default&&(ve.children=Lt(r.default())),B(P(C(ige,j(j(j(j({},n),oe),{},{disabled:S.value,virtual:f.value,dropdownMatchSelectWidth:p.value,id:de,fieldNames:te,ref:_,prefixCls:u.value,class:ie,listHeight:ee,listItemHeight:G,treeLine:!!me,inputIcon:Ce,multiple:le,removeIcon:ye,clearIcon:J,switcherIcon:we=>$5(T.value,Q,we,r.leafIcon,me),showTreeIcon:ue,notFoundContent:ne,getPopupContainer:m==null?void 0:m.value,treeMotion:null,dropdownClassName:I.value,choiceTransitionName:A.value,onChange:L,onBlur:V,onSearch:H,onTreeExpand:k},ve),{},{transitionName:O.value,customSlots:E(E({},r),{treeCheckable:()=>C("span",{class:`${u.value}-tree-checkbox-inner`},null)}),maxTagPlaceholder:e.maxTagPlaceholder||r.maxTagPlaceholder,placement:D.value,showArrow:ae||Se}),E(E({},r),{treeCheckable:()=>C("span",{class:`${u.value}-tree-checkbox-inner`},null)}))))}}}),oy=Ew,cge=E(tg,{TreeNode:Ew,SHOW_ALL:Ghe,SHOW_PARENT:B5,SHOW_CHILD:$w,install:e=>(e.component(tg.name,tg),e.component(oy.displayName,oy),e)}),ng=()=>({format:String,showNow:Pe(),showHour:Pe(),showMinute:Pe(),showSecond:Pe(),use12Hours:Pe(),hourStep:Number,minuteStep:Number,secondStep:Number,hideDisabledOptions:Pe(),popupClassName:String,status:Ue()});function dge(e){const t=X8(e,E(E({},ng()),{order:{type:Boolean,default:!0}})),{TimePicker:n,RangePicker:r}=t,o=he({name:"ATimePicker",inheritAttrs:!1,props:E(E(E(E({},$p()),K8()),ng()),{addon:{type:Function}}),slots:Object,setup(i,l){let{slots:s,expose:u,emit:c,attrs:d}=l;const f=i,p=Cn();qt(!(s.addon||f.addon),"TimePicker","`addon` is deprecated. Please use `v-slot:renderExtraFooter` instead.");const v=be();u({focus:()=>{var w;(w=v.value)===null||w===void 0||w.focus()},blur:()=>{var w;(w=v.value)===null||w===void 0||w.blur()}});const m=(w,b)=>{c("update:value",w),c("change",w,b),p.onFieldChange()},h=w=>{c("update:open",w),c("openChange",w)},g=w=>{c("focus",w)},x=w=>{c("blur",w),p.onFieldBlur()},y=w=>{c("ok",w)};return()=>{const{id:w=p.id.value}=f;return C(n,j(j(j({},d),pt(f,["onUpdate:value","onUpdate:open"])),{},{id:w,dropdownClassName:f.popupClassName,mode:void 0,ref:v,renderExtraFooter:f.addon||s.addon||f.renderExtraFooter||s.renderExtraFooter,onChange:m,onOpenChange:h,onFocus:g,onBlur:x,onOk:y}),s)}}}),a=he({name:"ATimeRangePicker",inheritAttrs:!1,props:E(E(E(E({},$p()),q8()),ng()),{order:{type:Boolean,default:!0}}),slots:Object,setup(i,l){let{slots:s,expose:u,emit:c,attrs:d}=l;const f=i,p=be(),v=Cn();u({focus:()=>{var S;(S=p.value)===null||S===void 0||S.focus()},blur:()=>{var S;(S=p.value)===null||S===void 0||S.blur()}});const m=(S,$)=>{c("update:value",S),c("change",S,$),v.onFieldChange()},h=S=>{c("update:open",S),c("openChange",S)},g=S=>{c("focus",S)},x=S=>{c("blur",S),v.onFieldBlur()},y=(S,$)=>{c("panelChange",S,$)},w=S=>{c("ok",S)},b=(S,$,D)=>{c("calendarChange",S,$,D)};return()=>{const{id:S=v.id.value}=f;return C(r,j(j(j({},d),pt(f,["onUpdate:open","onUpdate:value"])),{},{id:S,dropdownClassName:f.popupClassName,picker:"time",mode:void 0,ref:p,onChange:m,onOpenChange:h,onFocus:g,onBlur:x,onPanelChange:y,onOk:w,onCalendarChange:b}),s)}}});return{TimePicker:o,TimeRangePicker:a}}const{TimePicker:yd,TimeRangePicker:Af}=dge(O1),fge=E(yd,{TimePicker:yd,TimeRangePicker:Af,install:e=>(e.component(yd.name,yd),e.component(Af.name,Af),e)}),pge=()=>({prefixCls:String,color:String,dot:Z.any,pending:Pe(),position:Z.oneOf(Un("left","right","")).def(""),label:Z.any}),rc=he({compatConfig:{MODE:3},name:"ATimelineItem",props:at(pge(),{color:"blue",pending:!1}),slots:Object,setup(e,t){let{slots:n}=t;const{prefixCls:r}=He("timeline",e),o=z(()=>({[`${r.value}-item`]:!0,[`${r.value}-item-pending`]:e.pending})),a=z(()=>/blue|red|green|gray/.test(e.color||"")?void 0:e.color||"blue"),i=z(()=>({[`${r.value}-item-head`]:!0,[`${r.value}-item-head-${e.color||"blue"}`]:!a.value}));return()=>{var l,s,u;const{label:c=(l=n.label)===null||l===void 0?void 0:l.call(n),dot:d=(s=n.dot)===null||s===void 0?void 0:s.call(n)}=e;return C("li",{class:o.value},[c&&C("div",{class:`${r.value}-item-label`},[c]),C("div",{class:`${r.value}-item-tail`},null),C("div",{class:[i.value,!!d&&`${r.value}-item-head-custom`],style:{borderColor:a.value,color:a.value}},[d]),C("div",{class:`${r.value}-item-content`},[(u=n.default)===null||u===void 0?void 0:u.call(n)])])}}}),mge=e=>{const{componentCls:t}=e;return{[t]:E(E({},rt(e)),{margin:0,padding:0,listStyle:"none",[`${t}-item`]:{position:"relative",margin:0,paddingBottom:e.timeLineItemPaddingBottom,fontSize:e.fontSize,listStyle:"none","&-tail":{position:"absolute",insetBlockStart:e.timeLineItemHeadSize,insetInlineStart:(e.timeLineItemHeadSize-e.timeLineItemTailWidth)/2,height:`calc(100% - ${e.timeLineItemHeadSize}px)`,borderInlineStart:`${e.timeLineItemTailWidth}px ${e.lineType} ${e.colorSplit}`},"&-pending":{[`${t}-item-head`]:{fontSize:e.fontSizeSM,backgroundColor:"transparent"},[`${t}-item-tail`]:{display:"none"}},"&-head":{position:"absolute",width:e.timeLineItemHeadSize,height:e.timeLineItemHeadSize,backgroundColor:e.colorBgContainer,border:`${e.timeLineHeadBorderWidth}px ${e.lineType} transparent`,borderRadius:"50%","&-blue":{color:e.colorPrimary,borderColor:e.colorPrimary},"&-red":{color:e.colorError,borderColor:e.colorError},"&-green":{color:e.colorSuccess,borderColor:e.colorSuccess},"&-gray":{color:e.colorTextDisabled,borderColor:e.colorTextDisabled}},"&-head-custom":{position:"absolute",insetBlockStart:e.timeLineItemHeadSize/2,insetInlineStart:e.timeLineItemHeadSize/2,width:"auto",height:"auto",marginBlockStart:0,paddingBlock:e.timeLineItemCustomHeadPaddingVertical,lineHeight:1,textAlign:"center",border:0,borderRadius:0,transform:"translate(-50%, -50%)"},"&-content":{position:"relative",insetBlockStart:-(e.fontSize*e.lineHeight-e.fontSize)+e.lineWidth,marginInlineStart:e.margin+e.timeLineItemHeadSize,marginInlineEnd:0,marginBlockStart:0,marginBlockEnd:0,wordBreak:"break-word"},"&-last":{[`> ${t}-item-tail`]:{display:"none"},[`> ${t}-item-content`]:{minHeight:e.controlHeightLG*1.2}}},[`&${t}-alternate,
- &${t}-right,
- &${t}-label`]:{[`${t}-item`]:{"&-tail, &-head, &-head-custom":{insetInlineStart:"50%"},"&-head":{marginInlineStart:`-${e.marginXXS}px`,"&-custom":{marginInlineStart:e.timeLineItemTailWidth/2}},"&-left":{[`${t}-item-content`]:{insetInlineStart:`calc(50% - ${e.marginXXS}px)`,width:`calc(50% - ${e.marginSM}px)`,textAlign:"start"}},"&-right":{[`${t}-item-content`]:{width:`calc(50% - ${e.marginSM}px)`,margin:0,textAlign:"end"}}}},[`&${t}-right`]:{[`${t}-item-right`]:{[`${t}-item-tail,
- ${t}-item-head,
- ${t}-item-head-custom`]:{insetInlineStart:`calc(100% - ${(e.timeLineItemHeadSize+e.timeLineItemTailWidth)/2}px)`},[`${t}-item-content`]:{width:`calc(100% - ${e.timeLineItemHeadSize+e.marginXS}px)`}}},[`&${t}-pending
- ${t}-item-last
- ${t}-item-tail`]:{display:"block",height:`calc(100% - ${e.margin}px)`,borderInlineStart:`${e.timeLineItemTailWidth}px dotted ${e.colorSplit}`},[`&${t}-reverse
- ${t}-item-last
- ${t}-item-tail`]:{display:"none"},[`&${t}-reverse ${t}-item-pending`]:{[`${t}-item-tail`]:{insetBlockStart:e.margin,display:"block",height:`calc(100% - ${e.margin}px)`,borderInlineStart:`${e.timeLineItemTailWidth}px dotted ${e.colorSplit}`},[`${t}-item-content`]:{minHeight:e.controlHeightLG*1.2}},[`&${t}-label`]:{[`${t}-item-label`]:{position:"absolute",insetBlockStart:-(e.fontSize*e.lineHeight-e.fontSize)+e.timeLineItemTailWidth,width:`calc(50% - ${e.marginSM}px)`,textAlign:"end"},[`${t}-item-right`]:{[`${t}-item-label`]:{insetInlineStart:`calc(50% + ${e.marginSM}px)`,width:`calc(50% - ${e.marginSM}px)`,textAlign:"start"}}},"&-rtl":{direction:"rtl",[`${t}-item-head-custom`]:{transform:"translate(50%, -50%)"}}})}},vge=nt("Timeline",e=>{const t=qe(e,{timeLineItemPaddingBottom:e.padding*1.25,timeLineItemHeadSize:10,timeLineItemCustomHeadPaddingVertical:e.paddingXXS,timeLinePaddingInlineEnd:2,timeLineItemTailWidth:e.lineWidthBold,timeLineHeadBorderWidth:e.wireframe?e.lineWidthBold:e.lineWidth*3});return[mge(t)]}),hge=()=>({prefixCls:String,pending:Z.any,pendingDot:Z.any,reverse:Pe(),mode:Z.oneOf(Un("left","alternate","right",""))}),Tu=he({compatConfig:{MODE:3},name:"ATimeline",inheritAttrs:!1,props:at(hge(),{reverse:!1,mode:""}),slots:Object,setup(e,t){let{slots:n,attrs:r}=t;const{prefixCls:o,direction:a}=He("timeline",e),[i,l]=vge(o),s=(u,c)=>{const d=u.props||{};return e.mode==="alternate"?d.position==="right"?`${o.value}-item-right`:d.position==="left"?`${o.value}-item-left`:c%2===0?`${o.value}-item-left`:`${o.value}-item-right`:e.mode==="left"?`${o.value}-item-left`:e.mode==="right"?`${o.value}-item-right`:d.position==="right"?`${o.value}-item-right`:""};return()=>{var u,c,d;const{pending:f=(u=n.pending)===null||u===void 0?void 0:u.call(n),pendingDot:p=(c=n.pendingDot)===null||c===void 0?void 0:c.call(n),reverse:v,mode:m}=e,h=typeof f=="boolean"?null:f,g=nn((d=n.default)===null||d===void 0?void 0:d.call(n)),x=f?C(rc,{pending:!!f,dot:p||C(Lr,null,null)},{default:()=>[h]}):null;x&&g.push(x);const y=v?g.reverse():g,w=y.length,b=`${o.value}-item-last`,S=y.map((O,A)=>{const T=A===w-2?b:"",M=A===w-1?b:"";return ha(O,{class:ge([!v&&f?T:M,s(O,A)])})}),$=y.some(O=>{var A,T;return!!(!((A=O.props)===null||A===void 0)&&A.label||!((T=O.children)===null||T===void 0)&&T.label)}),D=ge(o.value,{[`${o.value}-pending`]:!!f,[`${o.value}-reverse`]:!!v,[`${o.value}-${m}`]:!!m&&!$,[`${o.value}-label`]:$,[`${o.value}-rtl`]:a.value==="rtl"},r.class,l.value);return i(C("ul",j(j({},r),{},{class:D}),[S]))}}});Tu.Item=rc;Tu.install=function(e){return e.component(Tu.name,Tu),e.component(rc.name,rc),e};const gge=(e,t,n,r)=>{const{sizeMarginHeadingVerticalEnd:o,fontWeightStrong:a}=r;return{marginBottom:o,color:n,fontWeight:a,fontSize:e,lineHeight:t}},yge=e=>{const t=[1,2,3,4,5],n={};return t.forEach(r=>{n[`
- h${r}&,
- div&-h${r},
- div&-h${r} > textarea,
- h${r}
- `]=gge(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),n},bge=e=>{const{componentCls:t}=e;return{"a&, a":E(E({},mm(e)),{textDecoration:e.linkDecoration,"&:active, &:hover":{textDecoration:e.linkHoverDecoration},[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},xge=()=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:M9[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),wge=e=>{const{componentCls:t}=e,r=sl(e).inputPaddingVertical+1;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:-e.paddingSM,marginTop:-r,marginBottom:`calc(1em - ${r}px)`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.marginXS+2,insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},Sge=e=>({"&-copy-success":{[`
- &,
- &:hover,
- &:focus`]:{color:e.colorSuccess}}}),Cge=()=>({[`
- a&-ellipsis,
- span&-ellipsis
- `]:{display:"inline-block",maxWidth:"100%"},"&-single-line":{whiteSpace:"nowrap"},"&-ellipsis-single-line":{overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),$ge=e=>{const{componentCls:t,sizeMarginHeadingVerticalStart:n}=e;return{[t]:E(E(E(E(E(E(E(E(E({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccess},[`&${t}-warning`]:{color:e.colorWarning},[`&${t}-danger`]:{color:e.colorError,"a&:active, a&:focus":{color:e.colorErrorActive},"a&:hover":{color:e.colorErrorHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},[`
- div&,
- p
- `]:{marginBottom:"1em"}},yge(e)),{[`
- & + h1${t},
- & + h2${t},
- & + h3${t},
- & + h4${t},
- & + h5${t}
- `]:{marginTop:n},[`
- div,
- ul,
- li,
- p,
- h1,
- h2,
- h3,
- h4,
- h5`]:{[`
- + h1,
- + h2,
- + h3,
- + h4,
- + h5
- `]:{marginTop:n}}}),xge()),bge(e)),{[`
- ${t}-expand,
- ${t}-edit,
- ${t}-copy
- `]:E(E({},mm(e)),{marginInlineStart:e.marginXXS})}),wge(e)),Sge(e)),Cge()),{"&-rtl":{direction:"rtl"}})}},R5=nt("Typography",e=>[$ge(e)],{sizeMarginHeadingVerticalStart:"1.2em",sizeMarginHeadingVerticalEnd:"0.5em"}),Ege=()=>({prefixCls:String,value:String,maxlength:Number,autoSize:{type:[Boolean,Object]},onSave:Function,onCancel:Function,onEnd:Function,onChange:Function,originContent:String,direction:String,component:String}),Dge=he({compatConfig:{MODE:3},name:"Editable",inheritAttrs:!1,props:Ege(),setup(e,t){let{emit:n,slots:r,attrs:o}=t;const{prefixCls:a}=Xr(e),i=_t({current:e.value||"",lastKeyCode:void 0,inComposition:!1,cancelFlag:!1});Ne(()=>e.value,x=>{i.current=x});const l=be();Qe(()=>{var x;if(l.value){const y=(x=l.value)===null||x===void 0?void 0:x.resizableTextArea,w=y==null?void 0:y.textArea;w.focus();const{length:b}=w.value;w.setSelectionRange(b,b)}});function s(x){l.value=x}function u(x){let{target:{value:y}}=x;i.current=y.replace(/[\r\n]/g,""),n("change",i.current)}function c(){i.inComposition=!0}function d(){i.inComposition=!1}function f(x){const{keyCode:y}=x;y===_e.ENTER&&x.preventDefault(),!i.inComposition&&(i.lastKeyCode=y)}function p(x){const{keyCode:y,ctrlKey:w,altKey:b,metaKey:S,shiftKey:$}=x;i.lastKeyCode===y&&!i.inComposition&&!w&&!b&&!S&&!$&&(y===_e.ENTER?(m(),n("end")):y===_e.ESC&&(i.current=e.originContent,n("cancel")))}function v(){m()}function m(){n("save",i.current.trim())}const[h,g]=R5(a);return()=>{const x=ge({[`${a.value}`]:!0,[`${a.value}-edit-content`]:!0,[`${a.value}-rtl`]:e.direction==="rtl",[e.component?`${a.value}-${e.component}`:""]:!0},o.class,g.value);return h(C("div",j(j({},o),{},{class:x}),[C(cw,{ref:s,maxlength:e.maxlength,value:i.current,onChange:u,onKeydown:f,onKeyup:p,onCompositionstart:c,onCompositionend:d,onBlur:v,rows:1,autoSize:e.autoSize===void 0||e.autoSize},null),r.enterIcon?r.enterIcon({className:`${e.prefixCls}-edit-content-confirm`}):C(pae,{class:`${e.prefixCls}-edit-content-confirm`},null)]))}}}),Age=Dge,Oge=3,Tge=8;let hr;const rg={padding:0,margin:0,display:"inline",lineHeight:"inherit"};function Mge(e){return Array.prototype.slice.apply(e).map(n=>`${n}: ${e.getPropertyValue(n)};`).join("")}function z5(e,t){e.setAttribute("aria-hidden","true");const n=window.getComputedStyle(t),r=Mge(n);e.setAttribute("style",r),e.style.position="fixed",e.style.left="0",e.style.height="auto",e.style.minHeight="auto",e.style.maxHeight="auto",e.style.paddingTop="0",e.style.paddingBottom="0",e.style.borderTopWidth="0",e.style.borderBottomWidth="0",e.style.top="-999999px",e.style.zIndex="-1000",e.style.textOverflow="clip",e.style.whiteSpace="normal",e.style.webkitLineClamp="none"}function Nge(e){const t=document.createElement("div");z5(t,e),t.appendChild(document.createTextNode("text")),document.body.appendChild(t);const n=t.getBoundingClientRect().height;return document.body.removeChild(t),n}const Pge=(e,t,n,r,o)=>{hr||(hr=document.createElement("div"),hr.setAttribute("aria-hidden","true"),document.body.appendChild(hr));const{rows:a,suffix:i=""}=t,l=Nge(e),s=Math.round(l*a*100)/100;z5(hr,e);const u=TT({render(){return C("div",{style:rg},[C("span",{style:rg},[n,i]),C("span",{style:rg},[r])])}});u.mount(hr);function c(){return Math.round(hr.getBoundingClientRect().height*100)/100-.1<=s}if(c())return u.unmount(),{content:n,text:hr.innerHTML,ellipsis:!1};const d=Array.prototype.slice.apply(hr.childNodes[0].childNodes[0].cloneNode(!0).childNodes).filter(y=>{let{nodeType:w,data:b}=y;return w!==Tge&&b!==""}),f=Array.prototype.slice.apply(hr.childNodes[0].childNodes[1].cloneNode(!0).childNodes);u.unmount();const p=[];hr.innerHTML="";const v=document.createElement("span");hr.appendChild(v);const m=document.createTextNode(o+i);v.appendChild(m),f.forEach(y=>{hr.appendChild(y)});function h(y){v.insertBefore(y,m)}function g(y,w){let b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,S=arguments.length>3&&arguments[3]!==void 0?arguments[3]:w.length,$=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;const D=Math.floor((b+S)/2),O=w.slice(0,D);if(y.textContent=O,b>=S-1)for(let A=S;A>=b;A-=1){const T=w.slice(0,A);if(y.textContent=T,c()||!T)return A===w.length?{finished:!1,vNode:w}:{finished:!0,vNode:T}}return c()?g(y,w,D,S,D):g(y,w,b,D,$)}function x(y){if(y.nodeType===Oge){const b=y.textContent||"",S=document.createTextNode(b);return h(S),g(S,b)}return{finished:!1,vNode:null}}return d.some(y=>{const{finished:w,vNode:b}=x(y);return b&&p.push(b),w}),{content:p,text:hr.innerHTML,ellipsis:!0}};var Ige=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const _ge=()=>({prefixCls:String,direction:String,component:String}),Bge=he({name:"ATypography",inheritAttrs:!1,props:_ge(),setup(e,t){let{slots:n,attrs:r}=t;const{prefixCls:o,direction:a}=He("typography",e),[i,l]=R5(o);return()=>{var s;const u=E(E({},e),r),{prefixCls:c,direction:d,component:f="article"}=u,p=Ige(u,["prefixCls","direction","component"]);return i(C(f,j(j({},p),{},{class:ge(o.value,{[`${o.value}-rtl`]:a.value==="rtl"},r.class,l.value)}),{default:()=>[(s=n.default)===null||s===void 0?void 0:s.call(n)]}))}}}),gr=Bge,Fge=()=>{const e=document.getSelection();if(!e.rangeCount)return function(){};let t=document.activeElement;const n=[];for(let r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||n.forEach(function(r){e.addRange(r)}),t&&t.focus()}},Rge=Fge,NE={"text/plain":"Text","text/html":"Url",default:"Text"},zge="Copy to clipboard: #{key}, Enter";function Lge(e){const t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function kge(e,t){let n,r,o,a,i,l=!1;t||(t={});const s=t.debug||!1;try{if(r=Rge(),o=document.createRange(),a=document.getSelection(),i=document.createElement("span"),i.textContent=e,i.style.all="unset",i.style.position="fixed",i.style.top=0,i.style.clip="rect(0, 0, 0, 0)",i.style.whiteSpace="pre",i.style.webkitUserSelect="text",i.style.MozUserSelect="text",i.style.msUserSelect="text",i.style.userSelect="text",i.addEventListener("copy",function(c){if(c.stopPropagation(),t.format)if(c.preventDefault(),typeof c.clipboardData>"u"){s&&console.warn("unable to use e.clipboardData"),s&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();const d=NE[t.format]||NE.default;window.clipboardData.setData(d,e)}else c.clipboardData.clearData(),c.clipboardData.setData(t.format,e);t.onCopy&&(c.preventDefault(),t.onCopy(c.clipboardData))}),document.body.appendChild(i),o.selectNodeContents(i),a.addRange(o),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");l=!0}catch(u){s&&console.error("unable to copy using execCommand: ",u),s&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(c){s&&console.error("unable to copy using clipboardData: ",c),s&&console.error("falling back to prompt"),n=Lge("message"in t?t.message:zge),window.prompt(n,e)}}finally{a&&(typeof a.removeRange=="function"?a.removeRange(o):a.removeAllRanges()),i&&document.body.removeChild(i),r()}return l}var Hge=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const jge=fx("webkitLineClamp"),Vge=fx("textOverflow"),PE="...",Tc=()=>({editable:{type:[Boolean,Object],default:void 0},copyable:{type:[Boolean,Object],default:void 0},prefixCls:String,component:String,type:String,disabled:{type:Boolean,default:void 0},ellipsis:{type:[Boolean,Object],default:void 0},code:{type:Boolean,default:void 0},mark:{type:Boolean,default:void 0},underline:{type:Boolean,default:void 0},delete:{type:Boolean,default:void 0},strong:{type:Boolean,default:void 0},keyboard:{type:Boolean,default:void 0},content:String,"onUpdate:content":Function}),Wge=he({compatConfig:{MODE:3},name:"Base",inheritAttrs:!1,props:Tc(),setup(e,t){let{slots:n,attrs:r,emit:o}=t;const{prefixCls:a,direction:i}=He("typography",e),l=_t({copied:!1,ellipsisText:"",ellipsisContent:null,isEllipsis:!1,expanded:!1,clientRendered:!1,expandStr:"",copyStr:"",copiedStr:"",editStr:"",copyId:void 0,rafId:void 0,prevProps:void 0,originContent:""}),s=be(),u=be(),c=z(()=>{const P=e.ellipsis;return P?E({rows:1,expandable:!1},typeof P=="object"?P:null):{}});Qe(()=>{l.clientRendered=!0}),st(()=>{clearTimeout(l.copyId),tt.cancel(l.rafId)}),Ne([()=>c.value.rows,()=>e.content],()=>{ht(()=>{S()})},{flush:"post",deep:!0,immediate:!0}),Je(()=>{e.content===void 0&&(Jt(!e.editable),Jt(!e.ellipsis))});function d(){var P;return e.ellipsis||e.editable?e.content:(P=yr(s.value))===null||P===void 0?void 0:P.innerText}function f(P){const{onExpand:I}=c.value;l.expanded=!0,I==null||I(P)}function p(P){P.preventDefault(),l.originContent=e.content,b(!0)}function v(P){m(P),b(!1)}function m(P){const{onChange:I}=x.value;P!==e.content&&(o("update:content",P),I==null||I(P))}function h(){var P,I;(I=(P=x.value).onCancel)===null||I===void 0||I.call(P),b(!1)}function g(P){P.preventDefault(),P.stopPropagation();const{copyable:I}=e,N=E({},typeof I=="object"?I:null);N.text===void 0&&(N.text=d()),kge(N.text||""),l.copied=!0,ht(()=>{N.onCopy&&N.onCopy(P),l.copyId=setTimeout(()=>{l.copied=!1},3e3)})}const x=z(()=>{const P=e.editable;return P?E({},typeof P=="object"?P:null):{editing:!1}}),[y,w]=Zt(!1,{value:z(()=>x.value.editing)});function b(P){const{onStart:I}=x.value;P&&I&&I(),w(P)}Ne(y,P=>{var I;P||(I=u.value)===null||I===void 0||I.focus()},{flush:"post"});function S(){tt.cancel(l.rafId),l.rafId=tt(()=>{D()})}const $=z(()=>{const{rows:P,expandable:I,suffix:N,onEllipsis:R,tooltip:_}=c.value;return N||_||e.editable||e.copyable||I||R?!1:P===1?Vge:jge}),D=()=>{const{ellipsisText:P,isEllipsis:I}=l,{rows:N,suffix:R,onEllipsis:_}=c.value;if(!N||N<0||!yr(s.value)||l.expanded||e.content===void 0||$.value)return;const{content:L,text:k,ellipsis:H}=Pge(yr(s.value),{rows:N,suffix:R},e.content,F(!0),PE);(P!==k||l.isEllipsis!==H)&&(l.ellipsisText=k,l.ellipsisContent=L,l.isEllipsis=H,I!==H&&_&&_(H))};function O(P,I){let{mark:N,code:R,underline:_,delete:L,strong:k,keyboard:H}=P,V=I;function U(q,K){if(!q)return;const X=function(){return V}();V=C(K,null,{default:()=>[X]})}return U(k,"strong"),U(_,"u"),U(L,"del"),U(R,"code"),U(N,"mark"),U(H,"kbd"),V}function A(P){const{expandable:I,symbol:N}=c.value;if(!I||!P&&(l.expanded||!l.isEllipsis))return null;const R=(n.ellipsisSymbol?n.ellipsisSymbol():N)||l.expandStr;return C("a",{key:"expand",class:`${a.value}-expand`,onClick:f,"aria-label":l.expandStr},[R])}function T(){if(!e.editable)return;const{tooltip:P,triggerType:I=["icon"]}=e.editable,N=n.editableIcon?n.editableIcon():C(uae,{role:"button"},null),R=n.editableTooltip?n.editableTooltip():l.editStr,_=typeof R=="string"?R:"";return I.indexOf("icon")!==-1?C(Br,{key:"edit",title:P===!1?"":R},{default:()=>[C(Tp,{ref:u,class:`${a.value}-edit`,onClick:p,"aria-label":_},{default:()=>[N]})]}):null}function M(){if(!e.copyable)return;const{tooltip:P}=e.copyable,I=l.copied?l.copiedStr:l.copyStr,N=n.copyableTooltip?n.copyableTooltip({copied:l.copied}):I,R=typeof N=="string"?N:"",_=l.copied?C(Mm,null,null):C(Koe,null,null),L=n.copyableIcon?n.copyableIcon({copied:!!l.copied}):_;return C(Br,{key:"copy",title:P===!1?"":N},{default:()=>[C(Tp,{class:[`${a.value}-copy`,{[`${a.value}-copy-success`]:l.copied}],onClick:g,"aria-label":R},{default:()=>[L]})]})}function B(){const{class:P,style:I}=r,{maxlength:N,autoSize:R,onEnd:_}=x.value;return C(Age,{class:P,style:I,prefixCls:a.value,value:e.content,originContent:l.originContent,maxlength:N,autoSize:R,onSave:v,onChange:m,onCancel:h,onEnd:_,direction:i.value,component:e.component},{enterIcon:n.editableEnterIcon})}function F(P){return[A(P),T(),M()].filter(I=>I)}return()=>{var P;const{triggerType:I=["icon"]}=x.value,N=e.ellipsis||e.editable?e.content!==void 0?e.content:(P=n.default)===null||P===void 0?void 0:P.call(n):n.default?n.default():e.content;return y.value?B():C(Ji,{componentName:"Text",children:R=>{const _=E(E({},e),r),{type:L,disabled:k,content:H,class:V,style:U}=_,q=Hge(_,["type","disabled","content","class","style"]),{rows:K,suffix:X,tooltip:re}=c.value,{edit:ee,copy:G,copied:le,expand:ue}=R;l.editStr=ee,l.copyStr=G,l.copiedStr=le,l.expandStr=ue;const me=pt(q,["prefixCls","editable","copyable","ellipsis","mark","code","delete","underline","strong","keyboard","onUpdate:content"]),Se=$.value,Q=K===1&&Se,te=K&&K>1&&Se;let de=N,Y;if(K&&l.isEllipsis&&!l.expanded&&!Se){const{title:Ce}=q;let ye=Ce||"";!Ce&&(typeof N=="string"||typeof N=="number")&&(ye=String(N)),ye=ye==null?void 0:ye.slice(String(l.ellipsisContent||"").length),de=C(dt,null,[cn(l.ellipsisContent),C("span",{title:ye,"aria-hidden":"true"},[PE]),X])}else de=C(dt,null,[N,X]);de=O(e,de);const ae=re&&K&&l.isEllipsis&&!l.expanded&&!Se,ce=n.ellipsisTooltip?n.ellipsisTooltip():re;return C(Qr,{onResize:S,disabled:!K},{default:()=>[C(gr,j({ref:s,class:[{[`${a.value}-${L}`]:L,[`${a.value}-disabled`]:k,[`${a.value}-ellipsis`]:K,[`${a.value}-single-line`]:K===1&&!l.isEllipsis,[`${a.value}-ellipsis-single-line`]:Q,[`${a.value}-ellipsis-multiple-line`]:te},V],style:E(E({},U),{WebkitLineClamp:te?K:void 0}),"aria-label":Y,direction:i.value,onClick:I.indexOf("text")!==-1?p:()=>{}},me),{default:()=>[ae?C(Br,{title:re===!0?N:ce},{default:()=>[C("span",null,[de])]}):de,F()]})]})}},null)}}}),Mc=Wge;var Uge=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Kge=()=>pt(E(E({},Tc()),{ellipsis:{type:Boolean,default:void 0}}),["component"]),yv=(e,t)=>{let{slots:n,attrs:r}=t;const o=E(E({},e),r),{ellipsis:a,rel:i}=o,l=Uge(o,["ellipsis","rel"]);Jt();const s=E(E({},l),{rel:i===void 0&&l.target==="_blank"?"noopener noreferrer":i,ellipsis:!!a,component:"a"});return delete s.navigate,C(Mc,s,n)};yv.displayName="ATypographyLink";yv.inheritAttrs=!1;yv.props=Kge();const Dw=yv,qge=()=>pt(Tc(),["component"]),bv=(e,t)=>{let{slots:n,attrs:r}=t;const o=E(E(E({},e),{component:"div"}),r);return C(Mc,o,n)};bv.displayName="ATypographyParagraph";bv.inheritAttrs=!1;bv.props=qge();const Aw=bv,Gge=()=>E(E({},pt(Tc(),["component"])),{ellipsis:{type:[Boolean,Object],default:void 0}}),xv=(e,t)=>{let{slots:n,attrs:r}=t;const{ellipsis:o}=e;Jt();const a=E(E(E({},e),{ellipsis:o&&typeof o=="object"?pt(o,["expandable","rows"]):o,component:"span"}),r);return C(Mc,a,n)};xv.displayName="ATypographyText";xv.inheritAttrs=!1;xv.props=Gge();const Ow=xv;var Xge=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Yge=nR(1,2,3,4,5),Zge=()=>E(E({},pt(Tc(),["component","strong"])),{level:Number}),wv=(e,t)=>{let{slots:n,attrs:r}=t;const{level:o=1}=e,a=Xge(e,["level"]);let i;Yge.includes(o)?i=`h${o}`:(Jt(),i="h1");const l=E(E(E({},a),{component:i}),r);return C(Mc,l,n)};wv.displayName="ATypographyTitle";wv.inheritAttrs=!1;wv.props=Zge();const Tw=wv;gr.Text=Ow;gr.Title=Tw;gr.Paragraph=Aw;gr.Link=Dw;gr.Base=Mc;gr.install=function(e){return e.component(gr.name,gr),e.component(gr.Text.displayName,Ow),e.component(gr.Title.displayName,Tw),e.component(gr.Paragraph.displayName,Aw),e.component(gr.Link.displayName,Dw),e};function Jge(e,t){const n=`cannot ${e.method} ${e.action} ${t.status}'`,r=new Error(n);return r.status=t.status,r.method=e.method,r.url=e.action,r}function IE(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function Qge(e){const t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(a){a.total>0&&(a.percent=a.loaded/a.total*100),e.onProgress(a)});const n=new FormData;e.data&&Object.keys(e.data).forEach(o=>{const a=e.data[o];if(Array.isArray(a)){a.forEach(i=>{n.append(`${o}[]`,i)});return}n.append(o,a)}),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(a){e.onError(a)},t.onload=function(){return t.status<200||t.status>=300?e.onError(Jge(e,t),IE(t)):e.onSuccess(IE(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const r=e.headers||{};return r["X-Requested-With"]!==null&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(r).forEach(o=>{r[o]!==null&&t.setRequestHeader(o,r[o])}),t.send(n),{abort(){t.abort()}}}const e0e=+new Date;let t0e=0;function og(){return`vc-upload-${e0e}-${++t0e}`}const ag=(e,t)=>{if(e&&t){const n=Array.isArray(t)?t:t.split(","),r=e.name||"",o=e.type||"",a=o.replace(/\/.*$/,"");return n.some(i=>{const l=i.trim();if(/^\*(\/\*)?$/.test(i))return!0;if(l.charAt(0)==="."){const s=r.toLowerCase(),u=l.toLowerCase();let c=[u];return(u===".jpg"||u===".jpeg")&&(c=[".jpg",".jpeg"]),c.some(d=>s.endsWith(d))}return/\/\*$/.test(l)?a===l.replace(/\/.*$/,""):!!(o===l||/^\w+$/.test(l))})}return!0};function n0e(e,t){const n=e.createReader();let r=[];function o(){n.readEntries(a=>{const i=Array.prototype.slice.apply(a);r=r.concat(i),!i.length?t(r):o()})}o()}const r0e=(e,t,n)=>{const r=(o,a)=>{o.path=a||"",o.isFile?o.file(i=>{n(i)&&(o.fullPath&&!i.webkitRelativePath&&(Object.defineProperties(i,{webkitRelativePath:{writable:!0}}),i.webkitRelativePath=o.fullPath.replace(/^\//,""),Object.defineProperties(i,{webkitRelativePath:{writable:!1}})),t([i]))}):o.isDirectory&&n0e(o,i=>{i.forEach(l=>{r(l,`${a}${o.name}/`)})})};e.forEach(o=>{r(o.webkitGetAsEntry())})},o0e=r0e,L5=()=>({capture:[Boolean,String],multipart:{type:Boolean,default:void 0},name:String,disabled:{type:Boolean,default:void 0},componentTag:String,action:[String,Function],method:String,directory:{type:Boolean,default:void 0},data:[Object,Function],headers:Object,accept:String,multiple:{type:Boolean,default:void 0},onBatchStart:Function,onReject:Function,onStart:Function,onError:Function,onSuccess:Function,onProgress:Function,beforeUpload:Function,customRequest:Function,withCredentials:{type:Boolean,default:void 0},openFileDialogOnClick:{type:Boolean,default:void 0},prefixCls:String,id:String,onMouseenter:Function,onMouseleave:Function,onClick:Function});var a0e=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(a){return a instanceof n?a:new n(function(i){i(a)})}return new(n||(n=Promise))(function(a,i){function l(c){try{u(r.next(c))}catch(d){i(d)}}function s(c){try{u(r.throw(c))}catch(d){i(d)}}function u(c){c.done?a(c.value):o(c.value).then(l,s)}u((r=r.apply(e,t||[])).next())})},i0e=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const l0e=he({compatConfig:{MODE:3},name:"AjaxUploader",inheritAttrs:!1,props:L5(),setup(e,t){let{slots:n,attrs:r,expose:o}=t;const a=be(og()),i={},l=be();let s=!1;const u=(x,y)=>a0e(this,void 0,void 0,function*(){const{beforeUpload:w}=e;let b=x;if(w){try{b=yield w(x,y)}catch{b=!1}if(b===!1)return{origin:x,parsedFile:null,action:null,data:null}}const{action:S}=e;let $;typeof S=="function"?$=yield S(x):$=S;const{data:D}=e;let O;typeof D=="function"?O=yield D(x):O=D;const A=(typeof b=="object"||typeof b=="string")&&b?b:x;let T;A instanceof File?T=A:T=new File([A],x.name,{type:x.type});const M=T;return M.uid=x.uid,{origin:x,data:O,parsedFile:M,action:$}}),c=x=>{let{data:y,origin:w,action:b,parsedFile:S}=x;if(!s)return;const{onStart:$,customRequest:D,name:O,headers:A,withCredentials:T,method:M}=e,{uid:B}=w,F=D||Qge,P={action:b,filename:O,data:y,file:S,headers:A,withCredentials:T,method:M||"post",onProgress:I=>{const{onProgress:N}=e;N==null||N(I,S)},onSuccess:(I,N)=>{const{onSuccess:R}=e;R==null||R(I,S,N),delete i[B]},onError:(I,N)=>{const{onError:R}=e;R==null||R(I,N,S),delete i[B]}};$(w),i[B]=F(P)},d=()=>{a.value=og()},f=x=>{if(x){const y=x.uid?x.uid:x;i[y]&&i[y].abort&&i[y].abort(),delete i[y]}else Object.keys(i).forEach(y=>{i[y]&&i[y].abort&&i[y].abort(),delete i[y]})};Qe(()=>{s=!0}),st(()=>{s=!1,f()});const p=x=>{const y=[...x],w=y.map(b=>(b.uid=og(),u(b,y)));Promise.all(w).then(b=>{const{onBatchStart:S}=e;S==null||S(b.map($=>{let{origin:D,parsedFile:O}=$;return{file:D,parsedFile:O}})),b.filter($=>$.parsedFile!==null).forEach($=>{c($)})})},v=x=>{const{accept:y,directory:w}=e,{files:b}=x.target,S=[...b].filter($=>!w||ag($,y));p(S),d()},m=x=>{const y=l.value;if(!y)return;const{onClick:w}=e;y.click(),w&&w(x)},h=x=>{x.key==="Enter"&&m(x)},g=x=>{const{multiple:y}=e;if(x.preventDefault(),x.type!=="dragover")if(e.directory)o0e(Array.prototype.slice.call(x.dataTransfer.items),p,w=>ag(w,e.accept));else{const w=Kq(Array.prototype.slice.call(x.dataTransfer.files),$=>ag($,e.accept));let b=w[0];const S=w[1];y===!1&&(b=b.slice(0,1)),p(b),S.length&&e.onReject&&e.onReject(S)}};return o({abort:f}),()=>{var x;const{componentTag:y,prefixCls:w,disabled:b,id:S,multiple:$,accept:D,capture:O,directory:A,openFileDialogOnClick:T,onMouseenter:M,onMouseleave:B}=e,F=i0e(e,["componentTag","prefixCls","disabled","id","multiple","accept","capture","directory","openFileDialogOnClick","onMouseenter","onMouseleave"]),P={[w]:!0,[`${w}-disabled`]:b,[r.class]:!!r.class},I=A?{directory:"directory",webkitdirectory:"webkitdirectory"}:{};return C(y,j(j({},b?{}:{onClick:T?m:()=>{},onKeydown:T?h:()=>{},onMouseenter:M,onMouseleave:B,onDrop:g,onDragover:g,tabindex:"0"}),{},{class:P,role:"button",style:r.style}),{default:()=>[C("input",j(j(j({},ci(F,{aria:!0,data:!0})),{},{id:S,type:"file",ref:l,onClick:R=>R.stopPropagation(),key:a.value,style:{display:"none"},accept:D},I),{},{multiple:$,onChange:v},O!=null?{capture:O}:{}),null),(x=n.default)===null||x===void 0?void 0:x.call(n)]})}}});function ig(){}const _E=he({compatConfig:{MODE:3},name:"Upload",inheritAttrs:!1,props:at(L5(),{componentTag:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:ig,onError:ig,onSuccess:ig,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0}),setup(e,t){let{slots:n,attrs:r,expose:o}=t;const a=be();return o({abort:l=>{var s;(s=a.value)===null||s===void 0||s.abort(l)}}),()=>C(l0e,j(j(j({},e),r),{},{ref:a}),n)}});function k5(){return{capture:Xe([Boolean,String]),type:Ue(),name:String,defaultFileList:bt(),fileList:bt(),action:Xe([String,Function]),directory:Pe(),data:Xe([Object,Function]),method:Ue(),headers:We(),showUploadList:Xe([Boolean,Object]),multiple:Pe(),accept:String,beforeUpload:Oe(),onChange:Oe(),"onUpdate:fileList":Oe(),onDrop:Oe(),listType:Ue(),onPreview:Oe(),onDownload:Oe(),onReject:Oe(),onRemove:Oe(),remove:Oe(),supportServerRender:Pe(),disabled:Pe(),prefixCls:String,customRequest:Oe(),withCredentials:Pe(),openFileDialogOnClick:Pe(),locale:We(),id:String,previewFile:Oe(),transformFile:Oe(),iconRender:Oe(),isImageUrl:Oe(),progress:We(),itemRender:Oe(),maxCount:Number,height:Xe([Number,String]),removeIcon:Oe(),downloadIcon:Oe(),previewIcon:Oe()}}function s0e(){return{listType:Ue(),onPreview:Oe(),onDownload:Oe(),onRemove:Oe(),items:bt(),progress:We(),prefixCls:Ue(),showRemoveIcon:Pe(),showDownloadIcon:Pe(),showPreviewIcon:Pe(),removeIcon:Oe(),downloadIcon:Oe(),previewIcon:Oe(),locale:We(void 0),previewFile:Oe(),iconRender:Oe(),isImageUrl:Oe(),appendAction:Oe(),appendActionVisible:Pe(),itemRender:Oe()}}function bd(e){return E(E({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function xd(e,t){const n=[...t],r=n.findIndex(o=>{let{uid:a}=o;return a===e.uid});return r===-1?n.push(e):n[r]=e,n}function lg(e,t){const n=e.uid!==void 0?"uid":"name";return t.filter(r=>r[n]===e[n])[0]}function u0e(e,t){const n=e.uid!==void 0?"uid":"name",r=t.filter(o=>o[n]!==e[n]);return r.length===t.length?null:r}const c0e=function(){const t=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),r=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]},H5=e=>e.indexOf("image/")===0,d0e=e=>{if(e.type&&!e.thumbUrl)return H5(e.type);const t=e.thumbUrl||e.url||"",n=c0e(t);return/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i.test(n)?!0:!(/^data:/.test(t)||n)},Fa=200;function f0e(e){return new Promise(t=>{if(!e.type||!H5(e.type)){t("");return}const n=document.createElement("canvas");n.width=Fa,n.height=Fa,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${Fa}px; height: ${Fa}px; z-index: 9999; display: none;`,document.body.appendChild(n);const r=n.getContext("2d"),o=new Image;if(o.onload=()=>{const{width:a,height:i}=o;let l=Fa,s=Fa,u=0,c=0;a>i?(s=i*(Fa/a),c=-(s-l)/2):(l=a*(Fa/i),u=-(l-s)/2),r.drawImage(o,u,c,l,s);const d=n.toDataURL();document.body.removeChild(n),t(d)},o.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const a=new FileReader;a.addEventListener("load",()=>{a.result&&(o.src=a.result)}),a.readAsDataURL(e)}else o.src=window.URL.createObjectURL(e)})}const p0e=()=>({prefixCls:String,locale:We(void 0),file:We(),items:bt(),listType:Ue(),isImgUrl:Oe(),showRemoveIcon:Pe(),showDownloadIcon:Pe(),showPreviewIcon:Pe(),removeIcon:Oe(),downloadIcon:Oe(),previewIcon:Oe(),iconRender:Oe(),actionIconRender:Oe(),itemRender:Oe(),onPreview:Oe(),onClose:Oe(),onDownload:Oe(),progress:We()}),m0e=he({compatConfig:{MODE:3},name:"ListItem",inheritAttrs:!1,props:p0e(),setup(e,t){let{slots:n,attrs:r}=t;var o;const a=pe(!1),i=pe();Qe(()=>{i.value=setTimeout(()=>{a.value=!0},300)}),st(()=>{clearTimeout(i.value)});const l=pe((o=e.file)===null||o===void 0?void 0:o.status);Ne(()=>{var c;return(c=e.file)===null||c===void 0?void 0:c.status},c=>{c!=="removed"&&(l.value=c)});const{rootPrefixCls:s}=He("upload",e),u=z(()=>to(`${s.value}-fade`));return()=>{var c,d;const{prefixCls:f,locale:p,listType:v,file:m,items:h,progress:g,iconRender:x=n.iconRender,actionIconRender:y=n.actionIconRender,itemRender:w=n.itemRender,isImgUrl:b,showPreviewIcon:S,showRemoveIcon:$,showDownloadIcon:D,previewIcon:O=n.previewIcon,removeIcon:A=n.removeIcon,downloadIcon:T=n.downloadIcon,onPreview:M,onDownload:B,onClose:F}=e,{class:P,style:I}=r,N=x({file:m});let R=C("div",{class:`${f}-text-icon`},[N]);if(v==="picture"||v==="picture-card")if(l.value==="uploading"||!m.thumbUrl&&!m.url){const me={[`${f}-list-item-thumbnail`]:!0,[`${f}-list-item-file`]:l.value!=="uploading"};R=C("div",{class:me},[N])}else{const me=b!=null&&b(m)?C("img",{src:m.thumbUrl||m.url,alt:m.name,class:`${f}-list-item-image`,crossorigin:m.crossOrigin},null):N,Se={[`${f}-list-item-thumbnail`]:!0,[`${f}-list-item-file`]:b&&!b(m)};R=C("a",{class:Se,onClick:Q=>M(m,Q),href:m.url||m.thumbUrl,target:"_blank",rel:"noopener noreferrer"},[me])}const _={[`${f}-list-item`]:!0,[`${f}-list-item-${l.value}`]:!0},L=typeof m.linkProps=="string"?JSON.parse(m.linkProps):m.linkProps,k=$?y({customIcon:A?A({file:m}):C(y8,null,null),callback:()=>F(m),prefixCls:f,title:p.removeFile}):null,H=D&&l.value==="done"?y({customIcon:T?T({file:m}):C(aae,null,null),callback:()=>B(m),prefixCls:f,title:p.downloadFile}):null,V=v!=="picture-card"&&C("span",{key:"download-delete",class:[`${f}-list-item-actions`,{picture:v==="picture"}]},[H,k]),U=`${f}-list-item-name`,q=m.url?[C("a",j(j({key:"view",target:"_blank",rel:"noopener noreferrer",class:U,title:m.name},L),{},{href:m.url,onClick:me=>M(m,me)}),[m.name]),V]:[C("span",{key:"view",class:U,onClick:me=>M(m,me),title:m.name},[m.name]),V],K={pointerEvents:"none",opacity:.5},X=S?C("a",{href:m.url||m.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:m.url||m.thumbUrl?void 0:K,onClick:me=>M(m,me),title:p.previewFile},[O?O({file:m}):C(Bx,null,null)]):null,re=v==="picture-card"&&l.value!=="uploading"&&C("span",{class:`${f}-list-item-actions`},[X,l.value==="done"&&H,k]),ee=C("div",{class:_},[R,q,re,a.value&&C(_n,u.value,{default:()=>[vn(C("div",{class:`${f}-list-item-progress`},["percent"in m?C(gw,j(j({},g),{},{type:"line",percent:m.percent}),null):null]),[[ur,l.value==="uploading"]])]})]),G={[`${f}-list-item-container`]:!0,[`${P}`]:!!P},le=m.response&&typeof m.response=="string"?m.response:((c=m.error)===null||c===void 0?void 0:c.statusText)||((d=m.error)===null||d===void 0?void 0:d.message)||p.uploadError,ue=l.value==="error"?C(Br,{title:le,getPopupContainer:me=>me.parentNode},{default:()=>[ee]}):ee;return C("div",{class:G,style:I},[w?w({originNode:ue,file:m,fileList:h,actions:{download:B.bind(null,m),preview:M.bind(null,m),remove:F.bind(null,m)}}):ue])}}}),v0e=(e,t)=>{let{slots:n}=t;var r;return nn((r=n.default)===null||r===void 0?void 0:r.call(n))[0]},h0e=he({compatConfig:{MODE:3},name:"AUploadList",props:at(s0e(),{listType:"text",progress:{strokeWidth:2,showInfo:!1},showRemoveIcon:!0,showDownloadIcon:!1,showPreviewIcon:!0,previewFile:f0e,isImageUrl:d0e,items:[],appendActionVisible:!0}),setup(e,t){let{slots:n,expose:r}=t;const o=pe(!1),a=Kn();Qe(()=>{o.value==!0}),Je(()=>{e.listType!=="picture"&&e.listType!=="picture-card"||(e.items||[]).forEach(m=>{typeof document>"u"||typeof window>"u"||!window.FileReader||!window.File||!(m.originFileObj instanceof File||m.originFileObj instanceof Blob)||m.thumbUrl!==void 0||(m.thumbUrl="",e.previewFile&&e.previewFile(m.originFileObj).then(h=>{m.thumbUrl=h||"",a.update()}))})});const i=(m,h)=>{if(e.onPreview)return h==null||h.preventDefault(),e.onPreview(m)},l=m=>{typeof e.onDownload=="function"?e.onDownload(m):m.url&&window.open(m.url)},s=m=>{var h;(h=e.onRemove)===null||h===void 0||h.call(e,m)},u=m=>{let{file:h}=m;const g=e.iconRender||n.iconRender;if(g)return g({file:h,listType:e.listType});const x=h.status==="uploading",y=e.isImageUrl&&e.isImageUrl(h)?C(eie,null,null):C(Mae,null,null);let w=x?C(Lr,null,null):C(Yae,null,null);return e.listType==="picture"?w=x?C(Lr,null,null):y:e.listType==="picture-card"&&(w=x?e.locale.uploading:y),w},c=m=>{const{customIcon:h,callback:g,prefixCls:x,title:y}=m,w={type:"text",size:"small",title:y,onClick:()=>{g()},class:`${x}-list-item-action`};return hn(h)?C(dn,w,{icon:()=>h}):C(dn,w,{default:()=>[C("span",null,[h])]})};r({handlePreview:i,handleDownload:l});const{prefixCls:d,rootPrefixCls:f}=He("upload",e),p=z(()=>({[`${d.value}-list`]:!0,[`${d.value}-list-${e.listType}`]:!0})),v=z(()=>{const m=E({},yc(`${f.value}-motion-collapse`));delete m.onAfterAppear,delete m.onAfterEnter,delete m.onAfterLeave;const h=E(E({},$m(`${d.value}-${e.listType==="picture-card"?"animate-inline":"animate"}`)),{class:p.value,appear:o.value});return e.listType!=="picture-card"?E(E({},m),h):h});return()=>{const{listType:m,locale:h,isImageUrl:g,items:x=[],showPreviewIcon:y,showRemoveIcon:w,showDownloadIcon:b,removeIcon:S,previewIcon:$,downloadIcon:D,progress:O,appendAction:A,itemRender:T,appendActionVisible:M}=e,B=A==null?void 0:A();return C(rm,j(j({},v.value),{},{tag:"div"}),{default:()=>[x.map(F=>{const{uid:P}=F;return C(m0e,{key:P,locale:h,prefixCls:d.value,file:F,items:x,progress:O,listType:m,isImgUrl:g,showPreviewIcon:y,showRemoveIcon:w,showDownloadIcon:b,onPreview:i,onDownload:l,onClose:s,removeIcon:S,previewIcon:$,downloadIcon:D,itemRender:T},E(E({},n),{iconRender:u,actionIconRender:c}))}),A?vn(C(v0e,{key:"__ant_upload_appendAction"},{default:()=>B}),[[ur,!!M]]):null]})}}}),g0e=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${e.lineWidth}px dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:`${e.padding}px 0`},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${e.marginXXS}px`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{cursor:"not-allowed",[`p${t}-drag-icon ${n},
- p${t}-text,
- p${t}-hint
- `]:{color:e.colorTextDisabled}}}}}},y0e=g0e,b0e=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSize:o,lineHeight:a}=e,i=`${t}-list-item`,l=`${i}-actions`,s=`${i}-action`,u=Math.round(o*a);return{[`${t}-wrapper`]:{[`${t}-list`]:E(E({},yo()),{lineHeight:e.lineHeight,[i]:{position:"relative",height:e.lineHeight*o,marginTop:e.marginXS,fontSize:o,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,"&:hover":{backgroundColor:e.controlItemBgHover},[`${i}-name`]:E(E({},gn),{padding:`0 ${e.paddingXS}px`,lineHeight:a,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[l]:{[s]:{opacity:0},[`${s}${n}-btn-sm`]:{height:u,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
- ${s}:focus,
- &.picture ${s}
- `]:{opacity:1},[r]:{color:e.colorTextDescription,transition:`all ${e.motionDurationSlow}`},[`&:hover ${r}`]:{color:e.colorText}},[`${t}-icon ${r}`]:{color:e.colorTextDescription,fontSize:o},[`${i}-progress`]:{position:"absolute",bottom:-e.uploadProgressOffset,width:"100%",paddingInlineStart:o+e.paddingXS,fontSize:o,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${i}:hover ${s}`]:{opacity:1,color:e.colorText},[`${i}-error`]:{color:e.colorError,[`${i}-name, ${t}-icon ${r}`]:{color:e.colorError},[l]:{[`${r}, ${r}:hover`]:{color:e.colorError},[s]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},x0e=b0e,BE=new ft("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),FE=new ft("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}}),w0e=e=>{const{componentCls:t}=e,n=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${n}-appear, ${n}-enter, ${n}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${n}-appear, ${n}-enter`]:{animationName:BE},[`${n}-leave`]:{animationName:FE}}},BE,FE]},S0e=w0e,C0e=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:r,uploadProgressOffset:o}=e,a=`${t}-list`,i=`${a}-item`;return{[`${t}-wrapper`]:{[`${a}${a}-picture, ${a}${a}-picture-card`]:{[i]:{position:"relative",height:r+e.lineWidth*2+e.paddingXS*2,padding:e.paddingXS,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${i}-thumbnail`]:E(E({},gn),{width:r,height:r,lineHeight:`${r+e.paddingSM}px`,textAlign:"center",flex:"none",[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${i}-progress`]:{bottom:o,width:`calc(100% - ${e.paddingSM*2}px)`,marginTop:0,paddingInlineStart:r+e.paddingXS}},[`${i}-error`]:{borderColor:e.colorError,[`${i}-thumbnail ${n}`]:{["svg path[fill='#e6f7ff']"]:{fill:e.colorErrorBg},["svg path[fill='#1890ff']"]:{fill:e.colorError}}},[`${i}-uploading`]:{borderStyle:"dashed",[`${i}-name`]:{marginBottom:o}}}}}},$0e=e=>{const{componentCls:t,iconCls:n,fontSizeLG:r,colorTextLightSolid:o}=e,a=`${t}-list`,i=`${a}-item`,l=e.uploadPicCardSize;return{[`${t}-wrapper${t}-picture-card-wrapper`]:E(E({},yo()),{display:"inline-block",width:"100%",[`${t}${t}-select`]:{width:l,height:l,marginInlineEnd:e.marginXS,marginBottom:e.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${a}${a}-picture-card`]:{[`${a}-item-container`]:{display:"inline-block",width:l,height:l,marginBlock:`0 ${e.marginXS}px`,marginInline:`0 ${e.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[i]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${e.paddingXS*2}px)`,height:`calc(100% - ${e.paddingXS*2}px)`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${i}:hover`]:{[`&::before, ${i}-actions`]:{opacity:1}},[`${i}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[`${n}-eye, ${n}-download, ${n}-delete`]:{zIndex:10,width:r,margin:`0 ${e.marginXXS}px`,fontSize:r,cursor:"pointer",transition:`all ${e.motionDurationSlow}`}},[`${i}-actions, ${i}-actions:hover`]:{[`${n}-eye, ${n}-download, ${n}-delete`]:{color:new $t(o).setAlpha(.65).toRgbString(),"&:hover":{color:o}}},[`${i}-thumbnail, ${i}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${i}-name`]:{display:"none",textAlign:"center"},[`${i}-file + ${i}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${e.paddingXS*2}px)`},[`${i}-uploading`]:{[`&${i}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${i}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${e.paddingXS*2}px)`,paddingInlineStart:0}}})}},E0e=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},D0e=E0e,A0e=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:E(E({},rt(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}},O0e=nt("Upload",e=>{const{fontSizeHeading3:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightLG:a}=e,i=Math.round(n*r),l=qe(e,{uploadThumbnailSize:t*2,uploadProgressOffset:i/2+o,uploadPicCardSize:a*2.55});return[A0e(l),y0e(l),C0e(l),$0e(l),x0e(l),S0e(l),D0e(l),gc(l)]});var T0e=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(a){return a instanceof n?a:new n(function(i){i(a)})}return new(n||(n=Promise))(function(a,i){function l(c){try{u(r.next(c))}catch(d){i(d)}}function s(c){try{u(r.throw(c))}catch(d){i(d)}}function u(c){c.done?a(c.value):o(c.value).then(l,s)}u((r=r.apply(e,t||[])).next())})},M0e=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const su=`__LIST_IGNORE_${Date.now()}__`,Of=he({compatConfig:{MODE:3},name:"AUpload",inheritAttrs:!1,props:at(k5(),{type:"select",multiple:!1,action:"",data:{},accept:"",showUploadList:!0,listType:"text",disabled:!1,supportServerRender:!0}),setup(e,t){let{slots:n,attrs:r,expose:o}=t;const a=Cn(),{prefixCls:i,direction:l,disabled:s}=He("upload",e),[u,c]=O0e(i),d=Fr(),f=z(()=>{var T;return(T=d.value)!==null&&T!==void 0?T:s.value}),[p,v]=Zt(e.defaultFileList||[],{value:Ye(e,"fileList"),postState:T=>{const M=Date.now();return(T??[]).map((B,F)=>(!B.uid&&!Object.isFrozen(B)&&(B.uid=`__AUTO__${M}_${F}__`),B))}}),m=be("drop"),h=be(null);Qe(()=>{qt(e.fileList!==void 0||r.value===void 0,"Upload","`value` is not a valid prop, do you mean `fileList`?"),qt(e.transformFile===void 0,"Upload","`transformFile` is deprecated. Please use `beforeUpload` directly."),qt(e.remove===void 0,"Upload","`remove` props is deprecated. Please use `remove` event.")});const g=(T,M,B)=>{var F,P;let I=[...M];e.maxCount===1?I=I.slice(-1):e.maxCount&&(I=I.slice(0,e.maxCount)),v(I);const N={file:T,fileList:I};B&&(N.event=B),(F=e["onUpdate:fileList"])===null||F===void 0||F.call(e,N.fileList),(P=e.onChange)===null||P===void 0||P.call(e,N),a.onFieldChange()},x=(T,M)=>T0e(this,void 0,void 0,function*(){const{beforeUpload:B,transformFile:F}=e;let P=T;if(B){const I=yield B(T,M);if(I===!1)return!1;if(delete T[su],I===su)return Object.defineProperty(T,su,{value:!0,configurable:!0}),!1;typeof I=="object"&&I&&(P=I)}return F&&(P=yield F(P)),P}),y=T=>{const M=T.filter(P=>!P.file[su]);if(!M.length)return;const B=M.map(P=>bd(P.file));let F=[...p.value];B.forEach(P=>{F=xd(P,F)}),B.forEach((P,I)=>{let N=P;if(M[I].parsedFile)P.status="uploading";else{const{originFileObj:R}=P;let _;try{_=new File([R],R.name,{type:R.type})}catch{_=new Blob([R],{type:R.type}),_.name=R.name,_.lastModifiedDate=new Date,_.lastModified=new Date().getTime()}_.uid=P.uid,N=_}g(N,F)})},w=(T,M,B)=>{try{typeof T=="string"&&(T=JSON.parse(T))}catch{}if(!lg(M,p.value))return;const F=bd(M);F.status="done",F.percent=100,F.response=T,F.xhr=B;const P=xd(F,p.value);g(F,P)},b=(T,M)=>{if(!lg(M,p.value))return;const B=bd(M);B.status="uploading",B.percent=T.percent;const F=xd(B,p.value);g(B,F,T)},S=(T,M,B)=>{if(!lg(B,p.value))return;const F=bd(B);F.error=T,F.response=M,F.status="error";const P=xd(F,p.value);g(F,P)},$=T=>{let M;const B=e.onRemove||e.remove;Promise.resolve(typeof B=="function"?B(T):B).then(F=>{var P,I;if(F===!1)return;const N=u0e(T,p.value);N&&(M=E(E({},T),{status:"removed"}),(P=p.value)===null||P===void 0||P.forEach(R=>{const _=M.uid!==void 0?"uid":"name";R[_]===M[_]&&!Object.isFrozen(R)&&(R.status="removed")}),(I=h.value)===null||I===void 0||I.abort(M),g(M,N))})},D=T=>{var M;m.value=T.type,T.type==="drop"&&((M=e.onDrop)===null||M===void 0||M.call(e,T))};o({onBatchStart:y,onSuccess:w,onProgress:b,onError:S,fileList:p,upload:h});const[O]=ro("Upload",cr.Upload,z(()=>e.locale)),A=(T,M)=>{const{removeIcon:B,previewIcon:F,downloadIcon:P,previewFile:I,onPreview:N,onDownload:R,isImageUrl:_,progress:L,itemRender:k,iconRender:H,showUploadList:V}=e,{showDownloadIcon:U,showPreviewIcon:q,showRemoveIcon:K}=typeof V=="boolean"?{}:V;return V?C(h0e,{prefixCls:i.value,listType:e.listType,items:p.value,previewFile:I,onPreview:N,onDownload:R,onRemove:$,showRemoveIcon:!f.value&&K,showPreviewIcon:q,showDownloadIcon:U,removeIcon:B,previewIcon:F,downloadIcon:P,iconRender:H,locale:O.value,isImageUrl:_,progress:L,itemRender:k,appendActionVisible:M,appendAction:T},E({},n)):T==null?void 0:T()};return()=>{var T,M,B;const{listType:F,type:P}=e,{class:I,style:N}=r,R=M0e(r,["class","style"]),_=E(E(E({onBatchStart:y,onError:S,onProgress:b,onSuccess:w},R),e),{id:(T=e.id)!==null&&T!==void 0?T:a.id.value,prefixCls:i.value,beforeUpload:x,onChange:void 0,disabled:f.value});delete _.remove,(!n.default||f.value)&&delete _.id;const L={[`${i.value}-rtl`]:l.value==="rtl"};if(P==="drag"){const U=ge(i.value,{[`${i.value}-drag`]:!0,[`${i.value}-drag-uploading`]:p.value.some(q=>q.status==="uploading"),[`${i.value}-drag-hover`]:m.value==="dragover",[`${i.value}-disabled`]:f.value,[`${i.value}-rtl`]:l.value==="rtl"},r.class,c.value);return u(C("span",j(j({},r),{},{class:ge(`${i.value}-wrapper`,L,I,c.value)}),[C("div",{class:U,onDrop:D,onDragover:D,onDragleave:D,style:r.style},[C(_E,j(j({},_),{},{ref:h,class:`${i.value}-btn`}),j({default:()=>[C("div",{class:`${i.value}-drag-container`},[(M=n.default)===null||M===void 0?void 0:M.call(n)])]},n))]),A()]))}const k=ge(i.value,{[`${i.value}-select`]:!0,[`${i.value}-select-${F}`]:!0,[`${i.value}-disabled`]:f.value,[`${i.value}-rtl`]:l.value==="rtl"}),H=Lt((B=n.default)===null||B===void 0?void 0:B.call(n)),V=U=>C("div",{class:k,style:U},[C(_E,j(j({},_),{},{ref:h}),n)]);return u(F==="picture-card"?C("span",j(j({},r),{},{class:ge(`${i.value}-wrapper`,`${i.value}-picture-card-wrapper`,L,r.class,c.value)}),[A(V,!!(H&&H.length))]):C("span",j(j({},r),{},{class:ge(`${i.value}-wrapper`,L,r.class,c.value)}),[V(H&&H.length?void 0:{display:"none"}),A()]))}}});var RE=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Tf=he({compatConfig:{MODE:3},name:"AUploadDragger",inheritAttrs:!1,props:k5(),setup(e,t){let{slots:n,attrs:r}=t;return()=>{const{height:o}=e,a=RE(e,["height"]),{style:i}=r,l=RE(r,["style"]),s=E(E(E({},a),l),{type:"drag",style:E(E({},i),{height:typeof o=="number"?`${o}px`:o})});return C(Of,s,n)}}}),N0e=Tf,P0e=E(Of,{Dragger:Tf,LIST_IGNORE:su,install(e){return e.component(Of.name,Of),e.component(Tf.name,Tf),e}});function I0e(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function _0e(e){return Object.keys(e).map(t=>`${I0e(t)}: ${e[t]};`).join(" ")}function zE(){return window.devicePixelRatio||1}function sg(e,t,n,r){e.translate(t,n),e.rotate(Math.PI/180*Number(r)),e.translate(-t,-n)}const B0e=(e,t)=>{let n=!1;return e.removedNodes.length&&(n=Array.from(e.removedNodes).some(r=>r===t)),e.type==="attributes"&&e.target===t&&(n=!0),n};var F0e=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function R0e(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{window:r=lI}=n,o=F0e(n,["window"]);let a;const i=aI(()=>r&&"MutationObserver"in r),l=()=>{a&&(a.disconnect(),a=void 0)},s=Ne(()=>G1(e),c=>{l(),i.value&&r&&c&&(a=new MutationObserver(t),a.observe(c,o))},{immediate:!0}),u=()=>{l(),s()};return oI(u),{isSupported:i,stop:u}}const ug=2,LE=3,z0e=()=>({zIndex:Number,rotate:Number,width:Number,height:Number,image:String,content:Xe([String,Array]),font:We(),rootClassName:String,gap:bt(),offset:bt()}),L0e=he({name:"AWatermark",inheritAttrs:!1,props:at(z0e(),{zIndex:9,rotate:-22,font:{},gap:[100,100]}),setup(e,t){let{slots:n,attrs:r}=t;const o=pe(),a=pe(),i=pe(!1),l=z(()=>{var O,A;return(A=(O=e.gap)===null||O===void 0?void 0:O[0])!==null&&A!==void 0?A:100}),s=z(()=>{var O,A;return(A=(O=e.gap)===null||O===void 0?void 0:O[1])!==null&&A!==void 0?A:100}),u=z(()=>l.value/2),c=z(()=>s.value/2),d=z(()=>{var O,A;return(A=(O=e.offset)===null||O===void 0?void 0:O[0])!==null&&A!==void 0?A:u.value}),f=z(()=>{var O,A;return(A=(O=e.offset)===null||O===void 0?void 0:O[1])!==null&&A!==void 0?A:c.value}),p=z(()=>{var O,A;return(A=(O=e.font)===null||O===void 0?void 0:O.fontSize)!==null&&A!==void 0?A:16}),v=z(()=>{var O,A;return(A=(O=e.font)===null||O===void 0?void 0:O.fontWeight)!==null&&A!==void 0?A:"normal"}),m=z(()=>{var O,A;return(A=(O=e.font)===null||O===void 0?void 0:O.fontStyle)!==null&&A!==void 0?A:"normal"}),h=z(()=>{var O,A;return(A=(O=e.font)===null||O===void 0?void 0:O.fontFamily)!==null&&A!==void 0?A:"sans-serif"}),g=z(()=>{var O,A;return(A=(O=e.font)===null||O===void 0?void 0:O.color)!==null&&A!==void 0?A:"rgba(0, 0, 0, 0.15)"}),x=z(()=>{var O;const A={zIndex:(O=e.zIndex)!==null&&O!==void 0?O:9,position:"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"};let T=d.value-u.value,M=f.value-c.value;return T>0&&(A.left=`${T}px`,A.width=`calc(100% - ${T}px)`,T=0),M>0&&(A.top=`${M}px`,A.height=`calc(100% - ${M}px)`,M=0),A.backgroundPosition=`${T}px ${M}px`,A}),y=()=>{a.value&&(a.value.remove(),a.value=void 0)},w=(O,A)=>{var T;o.value&&a.value&&(i.value=!0,a.value.setAttribute("style",_0e(E(E({},x.value),{backgroundImage:`url('${O}')`,backgroundSize:`${(l.value+A)*ug}px`}))),(T=o.value)===null||T===void 0||T.append(a.value),setTimeout(()=>{i.value=!1}))},b=O=>{let A=120,T=64;const M=e.content,B=e.image,F=e.width,P=e.height;if(!B&&O.measureText){O.font=`${Number(p.value)}px ${h.value}`;const I=Array.isArray(M)?M:[M],N=I.map(R=>O.measureText(R).width);A=Math.ceil(Math.max(...N)),T=Number(p.value)*I.length+(I.length-1)*LE}return[F??A,P??T]},S=(O,A,T,M,B)=>{const F=zE(),P=e.content,I=Number(p.value)*F;O.font=`${m.value} normal ${v.value} ${I}px/${B}px ${h.value}`,O.fillStyle=g.value,O.textAlign="center",O.textBaseline="top",O.translate(M/2,0);const N=Array.isArray(P)?P:[P];N==null||N.forEach((R,_)=>{O.fillText(R??"",A,T+_*(I+LE*F))})},$=()=>{var O;const A=document.createElement("canvas"),T=A.getContext("2d"),M=e.image,B=(O=e.rotate)!==null&&O!==void 0?O:-22;if(T){a.value||(a.value=document.createElement("div"));const F=zE(),[P,I]=b(T),N=(l.value+P)*F,R=(s.value+I)*F;A.setAttribute("width",`${N*ug}px`),A.setAttribute("height",`${R*ug}px`);const _=l.value*F/2,L=s.value*F/2,k=P*F,H=I*F,V=(k+l.value*F)/2,U=(H+s.value*F)/2,q=_+N,K=L+R,X=V+N,re=U+R;if(T.save(),sg(T,V,U,B),M){const ee=new Image;ee.onload=()=>{T.drawImage(ee,_,L,k,H),T.restore(),sg(T,X,re,B),T.drawImage(ee,q,K,k,H),w(A.toDataURL(),P)},ee.crossOrigin="anonymous",ee.referrerPolicy="no-referrer",ee.src=M}else S(T,_,L,k,H),T.restore(),sg(T,X,re,B),S(T,q,K,k,H),w(A.toDataURL(),P)}};return Qe(()=>{$()}),Ne(()=>e,()=>{$()},{deep:!0,flush:"post"}),st(()=>{y()}),R0e(o,O=>{i.value||O.forEach(A=>{B0e(A,a.value)&&(y(),$())})},{attributes:!0}),()=>{var O;return C("div",j(j({},r),{},{ref:o,class:[r.class,e.rootClassName],style:[{position:"relative"},r.style]}),[(O=n.default)===null||O===void 0?void 0:O.call(n)])}}}),k0e=rn(L0e);function kE(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function HE(e){return{backgroundColor:e.bgColorSelected,boxShadow:e.boxShadow}}const H0e=E({overflow:"hidden"},gn),j0e=e=>{const{componentCls:t}=e;return{[t]:E(E(E(E(E({},rt(e)),{display:"inline-block",padding:e.segmentedContainerPadding,color:e.labelColor,backgroundColor:e.bgColor,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,[`${t}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",width:"100%"},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-block`]:{display:"flex"},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${e.motionDurationMid} ${e.motionEaseInOut}`,borderRadius:e.borderRadiusSM,"&-selected":E(E({},HE(e)),{color:e.labelColorHover}),"&::after":{content:'""',position:"absolute",width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",transition:`background-color ${e.motionDurationMid}`},[`&:hover:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.labelColorHover,"&::after":{backgroundColor:e.bgColorHover}},"&-label":E({minHeight:e.controlHeight-e.segmentedContainerPadding*2,lineHeight:`${e.controlHeight-e.segmentedContainerPadding*2}px`,padding:`0 ${e.segmentedPaddingHorizontal}px`},H0e),"&-icon + *":{marginInlineStart:e.marginSM/2},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${t}-thumb`]:E(E({},HE(e)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${e.paddingXXS}px 0`,borderRadius:e.borderRadiusSM,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:"transparent"}}),[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:e.controlHeightLG-e.segmentedContainerPadding*2,lineHeight:`${e.controlHeightLG-e.segmentedContainerPadding*2}px`,padding:`0 ${e.segmentedPaddingHorizontal}px`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:e.controlHeightSM-e.segmentedContainerPadding*2,lineHeight:`${e.controlHeightSM-e.segmentedContainerPadding*2}px`,padding:`0 ${e.segmentedPaddingHorizontalSM}px`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}}}),kE(`&-disabled ${t}-item`,e)),kE(`${t}-item-disabled`,e)),{[`${t}-thumb-motion-appear-active`]:{transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,willChange:"transform, width"}})}},V0e=nt("Segmented",e=>{const{lineWidthBold:t,lineWidth:n,colorTextLabel:r,colorText:o,colorFillSecondary:a,colorBgLayout:i,colorBgElevated:l}=e,s=qe(e,{segmentedPaddingHorizontal:e.controlPaddingHorizontal-n,segmentedPaddingHorizontalSM:e.controlPaddingHorizontalSM-n,segmentedContainerPadding:t,labelColor:r,labelColorHover:o,bgColor:i,bgColorHover:a,bgColorSelected:l});return[j0e(s)]}),jE=e=>e?{left:e.offsetLeft,right:e.parentElement.clientWidth-e.clientWidth-e.offsetLeft,width:e.clientWidth}:null,$l=e=>e!==void 0?`${e}px`:void 0,W0e=he({props:{value:jt(),getValueIndex:jt(),prefixCls:jt(),motionName:jt(),onMotionStart:jt(),onMotionEnd:jt(),direction:jt(),containerRef:jt()},emits:["motionStart","motionEnd"],setup(e,t){let{emit:n}=t;const r=be(),o=v=>{var m;const h=e.getValueIndex(v),g=(m=e.containerRef.value)===null||m===void 0?void 0:m.querySelectorAll(`.${e.prefixCls}-item`)[h];return(g==null?void 0:g.offsetParent)&&g},a=be(null),i=be(null);Ne(()=>e.value,(v,m)=>{const h=o(m),g=o(v),x=jE(h),y=jE(g);a.value=x,i.value=y,n(h&&g?"motionStart":"motionEnd")},{flush:"post"});const l=z(()=>{var v,m;return e.direction==="rtl"?$l(-((v=a.value)===null||v===void 0?void 0:v.right)):$l((m=a.value)===null||m===void 0?void 0:m.left)}),s=z(()=>{var v,m;return e.direction==="rtl"?$l(-((v=i.value)===null||v===void 0?void 0:v.right)):$l((m=i.value)===null||m===void 0?void 0:m.left)});let u;const c=v=>{clearTimeout(u),ht(()=>{v&&(v.style.transform="translateX(var(--thumb-start-left))",v.style.width="var(--thumb-start-width)")})},d=v=>{u=setTimeout(()=>{v&&(t0(v,`${e.motionName}-appear-active`),v.style.transform="translateX(var(--thumb-active-left))",v.style.width="var(--thumb-active-width)")})},f=v=>{a.value=null,i.value=null,v&&(v.style.transform=null,v.style.width=null,n0(v,`${e.motionName}-appear-active`)),n("motionEnd")},p=z(()=>{var v,m;return{"--thumb-start-left":l.value,"--thumb-start-width":$l((v=a.value)===null||v===void 0?void 0:v.width),"--thumb-active-left":s.value,"--thumb-active-width":$l((m=i.value)===null||m===void 0?void 0:m.width)}});return st(()=>{clearTimeout(u)}),()=>{const v={ref:r,style:p.value,class:[`${e.prefixCls}-thumb`]};return C(_n,{appear:!0,onBeforeEnter:c,onEnter:d,onAfterEnter:f},{default:()=>[!a.value||!i.value?null:C("div",v,null)]})}}}),U0e=W0e;function K0e(e){return e.map(t=>typeof t=="object"&&t!==null?t:{label:t==null?void 0:t.toString(),title:t==null?void 0:t.toString(),value:t})}const q0e=()=>({prefixCls:String,options:bt(),block:Pe(),disabled:Pe(),size:Ue(),value:E(E({},Xe([String,Number])),{required:!0}),motionName:String,onChange:Oe(),"onUpdate:value":Oe()}),j5=(e,t)=>{let{slots:n,emit:r}=t;const{value:o,disabled:a,payload:i,title:l,prefixCls:s,label:u=n.label,checked:c,className:d}=e,f=p=>{a||r("change",p,o)};return C("label",{class:ge({[`${s}-item-disabled`]:a},d)},[C("input",{class:`${s}-item-input`,type:"radio",disabled:a,checked:c,onChange:f},null),C("div",{class:`${s}-item-label`,title:typeof l=="string"?l:""},[typeof u=="function"?u({value:o,disabled:a,payload:i,title:l}):u??o])])};j5.inheritAttrs=!1;const G0e=he({name:"ASegmented",inheritAttrs:!1,props:at(q0e(),{options:[],motionName:"thumb-motion"}),slots:Object,setup(e,t){let{emit:n,slots:r,attrs:o}=t;const{prefixCls:a,direction:i,size:l}=He("segmented",e),[s,u]=V0e(a),c=pe(),d=pe(!1),f=z(()=>K0e(e.options)),p=(v,m)=>{e.disabled||(n("update:value",m),n("change",m))};return()=>{const v=a.value;return s(C("div",j(j({},o),{},{class:ge(v,{[u.value]:!0,[`${v}-block`]:e.block,[`${v}-disabled`]:e.disabled,[`${v}-lg`]:l.value=="large",[`${v}-sm`]:l.value=="small",[`${v}-rtl`]:i.value==="rtl"},o.class),ref:c}),[C("div",{class:`${v}-group`},[C(U0e,{containerRef:c,prefixCls:v,value:e.value,motionName:`${v}-${e.motionName}`,direction:i.value,getValueIndex:m=>f.value.findIndex(h=>h.value===m),onMotionStart:()=>{d.value=!0},onMotionEnd:()=>{d.value=!1}},null),f.value.map(m=>C(j5,j(j({key:m.value,prefixCls:v,checked:m.value===e.value,onChange:p},m),{},{className:ge(m.className,`${v}-item`,{[`${v}-item-selected`]:m.value===e.value&&!d.value}),disabled:!!e.disabled||!!m.disabled}),r))])]))}}}),X0e=rn(G0e),Y0e=e=>{const{componentCls:t}=e;return{[t]:E(E({},rt(e)),{display:"flex",justifyContent:"center",alignItems:"center",padding:e.paddingSM,backgroundColor:e.colorWhite,borderRadius:e.borderRadiusLG,border:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,position:"relative",width:"100%",height:"100%",overflow:"hidden",[`& > ${t}-mask`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:10,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",color:e.colorText,lineHeight:e.lineHeight,background:e.QRCodeMaskBackgroundColor,textAlign:"center",[`& > ${t}-expired`]:{color:e.QRCodeExpiredTextColor}},"&-icon":{marginBlockEnd:e.marginXS,fontSize:e.controlHeight}}),[`${t}-borderless`]:{borderColor:"transparent"}}},Z0e=nt("QRCode",e=>Y0e(qe(e,{QRCodeExpiredTextColor:"rgba(0, 0, 0, 0.88)",QRCodeMaskBackgroundColor:"rgba(255, 255, 255, 0.96)"}))),Mw=()=>({size:{type:Number,default:160},value:{type:String,required:!0},type:Ue("canvas"),color:String,bgColor:String,includeMargin:Boolean,imageSettings:We()}),J0e=()=>E(E({},Mw()),{errorLevel:Ue("M"),icon:String,iconSize:{type:Number,default:40},status:Ue("active"),bordered:{type:Boolean,default:!0}});var Yi;(function(e){class t{static encodeText(l,s){const u=e.QrSegment.makeSegments(l);return t.encodeSegments(u,s)}static encodeBinary(l,s){const u=e.QrSegment.makeBytes(l);return t.encodeSegments([u],s)}static encodeSegments(l,s){let u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:40,d=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1,f=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;if(!(t.MIN_VERSION<=u&&u<=c&&c<=t.MAX_VERSION)||d<-1||d>7)throw new RangeError("Invalid value");let p,v;for(p=u;;p++){const x=t.getNumDataCodewords(p,s)*8,y=a.getTotalBits(l,p);if(y<=x){v=y;break}if(p>=c)throw new RangeError("Data too long")}for(const x of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])f&&v<=t.getNumDataCodewords(p,x)*8&&(s=x);const m=[];for(const x of l){n(x.mode.modeBits,4,m),n(x.numChars,x.mode.numCharCountBits(p),m);for(const y of x.getData())m.push(y)}o(m.length==v);const h=t.getNumDataCodewords(p,s)*8;o(m.length<=h),n(0,Math.min(4,h-m.length),m),n(0,(8-m.length%8)%8,m),o(m.length%8==0);for(let x=236;m.length<h;x^=253)n(x,8,m);const g=[];for(;g.length*8<m.length;)g.push(0);return m.forEach((x,y)=>g[y>>>3]|=x<<7-(y&7)),new t(p,s,g,d)}constructor(l,s,u,c){if(this.version=l,this.errorCorrectionLevel=s,this.modules=[],this.isFunction=[],l<t.MIN_VERSION||l>t.MAX_VERSION)throw new RangeError("Version value out of range");if(c<-1||c>7)throw new RangeError("Mask value out of range");this.size=l*4+17;const d=[];for(let p=0;p<this.size;p++)d.push(!1);for(let p=0;p<this.size;p++)this.modules.push(d.slice()),this.isFunction.push(d.slice());this.drawFunctionPatterns();const f=this.addEccAndInterleave(u);if(this.drawCodewords(f),c==-1){let p=1e9;for(let v=0;v<8;v++){this.applyMask(v),this.drawFormatBits(v);const m=this.getPenaltyScore();m<p&&(c=v,p=m),this.applyMask(v)}}o(0<=c&&c<=7),this.mask=c,this.applyMask(c),this.drawFormatBits(c),this.isFunction=[]}getModule(l,s){return 0<=l&&l<this.size&&0<=s&&s<this.size&&this.modules[s][l]}getModules(){return this.modules}drawFunctionPatterns(){for(let u=0;u<this.size;u++)this.setFunctionModule(6,u,u%2==0),this.setFunctionModule(u,6,u%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const l=this.getAlignmentPatternPositions(),s=l.length;for(let u=0;u<s;u++)for(let c=0;c<s;c++)u==0&&c==0||u==0&&c==s-1||u==s-1&&c==0||this.drawAlignmentPattern(l[u],l[c]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(l){const s=this.errorCorrectionLevel.formatBits<<3|l;let u=s;for(let d=0;d<10;d++)u=u<<1^(u>>>9)*1335;const c=(s<<10|u)^21522;o(c>>>15==0);for(let d=0;d<=5;d++)this.setFunctionModule(8,d,r(c,d));this.setFunctionModule(8,7,r(c,6)),this.setFunctionModule(8,8,r(c,7)),this.setFunctionModule(7,8,r(c,8));for(let d=9;d<15;d++)this.setFunctionModule(14-d,8,r(c,d));for(let d=0;d<8;d++)this.setFunctionModule(this.size-1-d,8,r(c,d));for(let d=8;d<15;d++)this.setFunctionModule(8,this.size-15+d,r(c,d));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let l=this.version;for(let u=0;u<12;u++)l=l<<1^(l>>>11)*7973;const s=this.version<<12|l;o(s>>>18==0);for(let u=0;u<18;u++){const c=r(s,u),d=this.size-11+u%3,f=Math.floor(u/3);this.setFunctionModule(d,f,c),this.setFunctionModule(f,d,c)}}drawFinderPattern(l,s){for(let u=-4;u<=4;u++)for(let c=-4;c<=4;c++){const d=Math.max(Math.abs(c),Math.abs(u)),f=l+c,p=s+u;0<=f&&f<this.size&&0<=p&&p<this.size&&this.setFunctionModule(f,p,d!=2&&d!=4)}}drawAlignmentPattern(l,s){for(let u=-2;u<=2;u++)for(let c=-2;c<=2;c++)this.setFunctionModule(l+c,s+u,Math.max(Math.abs(c),Math.abs(u))!=1)}setFunctionModule(l,s,u){this.modules[s][l]=u,this.isFunction[s][l]=!0}addEccAndInterleave(l){const s=this.version,u=this.errorCorrectionLevel;if(l.length!=t.getNumDataCodewords(s,u))throw new RangeError("Invalid argument");const c=t.NUM_ERROR_CORRECTION_BLOCKS[u.ordinal][s],d=t.ECC_CODEWORDS_PER_BLOCK[u.ordinal][s],f=Math.floor(t.getNumRawDataModules(s)/8),p=c-f%c,v=Math.floor(f/c),m=[],h=t.reedSolomonComputeDivisor(d);for(let x=0,y=0;x<c;x++){const w=l.slice(y,y+v-d+(x<p?0:1));y+=w.length;const b=t.reedSolomonComputeRemainder(w,h);x<p&&w.push(0),m.push(w.concat(b))}const g=[];for(let x=0;x<m[0].length;x++)m.forEach((y,w)=>{(x!=v-d||w>=p)&&g.push(y[x])});return o(g.length==f),g}drawCodewords(l){if(l.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let s=0;for(let u=this.size-1;u>=1;u-=2){u==6&&(u=5);for(let c=0;c<this.size;c++)for(let d=0;d<2;d++){const f=u-d,v=(u+1&2)==0?this.size-1-c:c;!this.isFunction[v][f]&&s<l.length*8&&(this.modules[v][f]=r(l[s>>>3],7-(s&7)),s++)}}o(s==l.length*8)}applyMask(l){if(l<0||l>7)throw new RangeError("Mask value out of range");for(let s=0;s<this.size;s++)for(let u=0;u<this.size;u++){let c;switch(l){case 0:c=(u+s)%2==0;break;case 1:c=s%2==0;break;case 2:c=u%3==0;break;case 3:c=(u+s)%3==0;break;case 4:c=(Math.floor(u/3)+Math.floor(s/2))%2==0;break;case 5:c=u*s%2+u*s%3==0;break;case 6:c=(u*s%2+u*s%3)%2==0;break;case 7:c=((u+s)%2+u*s%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[s][u]&&c&&(this.modules[s][u]=!this.modules[s][u])}}getPenaltyScore(){let l=0;for(let d=0;d<this.size;d++){let f=!1,p=0;const v=[0,0,0,0,0,0,0];for(let m=0;m<this.size;m++)this.modules[d][m]==f?(p++,p==5?l+=t.PENALTY_N1:p>5&&l++):(this.finderPenaltyAddHistory(p,v),f||(l+=this.finderPenaltyCountPatterns(v)*t.PENALTY_N3),f=this.modules[d][m],p=1);l+=this.finderPenaltyTerminateAndCount(f,p,v)*t.PENALTY_N3}for(let d=0;d<this.size;d++){let f=!1,p=0;const v=[0,0,0,0,0,0,0];for(let m=0;m<this.size;m++)this.modules[m][d]==f?(p++,p==5?l+=t.PENALTY_N1:p>5&&l++):(this.finderPenaltyAddHistory(p,v),f||(l+=this.finderPenaltyCountPatterns(v)*t.PENALTY_N3),f=this.modules[m][d],p=1);l+=this.finderPenaltyTerminateAndCount(f,p,v)*t.PENALTY_N3}for(let d=0;d<this.size-1;d++)for(let f=0;f<this.size-1;f++){const p=this.modules[d][f];p==this.modules[d][f+1]&&p==this.modules[d+1][f]&&p==this.modules[d+1][f+1]&&(l+=t.PENALTY_N2)}let s=0;for(const d of this.modules)s=d.reduce((f,p)=>f+(p?1:0),s);const u=this.size*this.size,c=Math.ceil(Math.abs(s*20-u*10)/u)-1;return o(0<=c&&c<=9),l+=c*t.PENALTY_N4,o(0<=l&&l<=2568888),l}getAlignmentPatternPositions(){if(this.version==1)return[];{const l=Math.floor(this.version/7)+2,s=this.version==32?26:Math.ceil((this.version*4+4)/(l*2-2))*2,u=[6];for(let c=this.size-7;u.length<l;c-=s)u.splice(1,0,c);return u}}static getNumRawDataModules(l){if(l<t.MIN_VERSION||l>t.MAX_VERSION)throw new RangeError("Version number out of range");let s=(16*l+128)*l+64;if(l>=2){const u=Math.floor(l/7)+2;s-=(25*u-10)*u-55,l>=7&&(s-=36)}return o(208<=s&&s<=29648),s}static getNumDataCodewords(l,s){return Math.floor(t.getNumRawDataModules(l)/8)-t.ECC_CODEWORDS_PER_BLOCK[s.ordinal][l]*t.NUM_ERROR_CORRECTION_BLOCKS[s.ordinal][l]}static reedSolomonComputeDivisor(l){if(l<1||l>255)throw new RangeError("Degree out of range");const s=[];for(let c=0;c<l-1;c++)s.push(0);s.push(1);let u=1;for(let c=0;c<l;c++){for(let d=0;d<s.length;d++)s[d]=t.reedSolomonMultiply(s[d],u),d+1<s.length&&(s[d]^=s[d+1]);u=t.reedSolomonMultiply(u,2)}return s}static reedSolomonComputeRemainder(l,s){const u=s.map(c=>0);for(const c of l){const d=c^u.shift();u.push(0),s.forEach((f,p)=>u[p]^=t.reedSolomonMultiply(f,d))}return u}static reedSolomonMultiply(l,s){if(l>>>8||s>>>8)throw new RangeError("Byte out of range");let u=0;for(let c=7;c>=0;c--)u=u<<1^(u>>>7)*285,u^=(s>>>c&1)*l;return o(u>>>8==0),u}finderPenaltyCountPatterns(l){const s=l[1];o(s<=this.size*3);const u=s>0&&l[2]==s&&l[3]==s*3&&l[4]==s&&l[5]==s;return(u&&l[0]>=s*4&&l[6]>=s?1:0)+(u&&l[6]>=s*4&&l[0]>=s?1:0)}finderPenaltyTerminateAndCount(l,s,u){return l&&(this.finderPenaltyAddHistory(s,u),s=0),s+=this.size,this.finderPenaltyAddHistory(s,u),this.finderPenaltyCountPatterns(u)}finderPenaltyAddHistory(l,s){s[0]==0&&(l+=this.size),s.pop(),s.unshift(l)}}t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],t.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=t;function n(i,l,s){if(l<0||l>31||i>>>l)throw new RangeError("Value out of range");for(let u=l-1;u>=0;u--)s.push(i>>>u&1)}function r(i,l){return(i>>>l&1)!=0}function o(i){if(!i)throw new Error("Assertion error")}class a{static makeBytes(l){const s=[];for(const u of l)n(u,8,s);return new a(a.Mode.BYTE,l.length,s)}static makeNumeric(l){if(!a.isNumeric(l))throw new RangeError("String contains non-numeric characters");const s=[];for(let u=0;u<l.length;){const c=Math.min(l.length-u,3);n(parseInt(l.substring(u,u+c),10),c*3+1,s),u+=c}return new a(a.Mode.NUMERIC,l.length,s)}static makeAlphanumeric(l){if(!a.isAlphanumeric(l))throw new RangeError("String contains unencodable characters in alphanumeric mode");const s=[];let u;for(u=0;u+2<=l.length;u+=2){let c=a.ALPHANUMERIC_CHARSET.indexOf(l.charAt(u))*45;c+=a.ALPHANUMERIC_CHARSET.indexOf(l.charAt(u+1)),n(c,11,s)}return u<l.length&&n(a.ALPHANUMERIC_CHARSET.indexOf(l.charAt(u)),6,s),new a(a.Mode.ALPHANUMERIC,l.length,s)}static makeSegments(l){return l==""?[]:a.isNumeric(l)?[a.makeNumeric(l)]:a.isAlphanumeric(l)?[a.makeAlphanumeric(l)]:[a.makeBytes(a.toUtf8ByteArray(l))]}static makeEci(l){const s=[];if(l<0)throw new RangeError("ECI assignment value out of range");if(l<1<<7)n(l,8,s);else if(l<1<<14)n(2,2,s),n(l,14,s);else if(l<1e6)n(6,3,s),n(l,21,s);else throw new RangeError("ECI assignment value out of range");return new a(a.Mode.ECI,0,s)}static isNumeric(l){return a.NUMERIC_REGEX.test(l)}static isAlphanumeric(l){return a.ALPHANUMERIC_REGEX.test(l)}constructor(l,s,u){if(this.mode=l,this.numChars=s,this.bitData=u,s<0)throw new RangeError("Invalid argument");this.bitData=u.slice()}getData(){return this.bitData.slice()}static getTotalBits(l,s){let u=0;for(const c of l){const d=c.mode.numCharCountBits(s);if(c.numChars>=1<<d)return 1/0;u+=4+d+c.bitData.length}return u}static toUtf8ByteArray(l){l=encodeURI(l);const s=[];for(let u=0;u<l.length;u++)l.charAt(u)!="%"?s.push(l.charCodeAt(u)):(s.push(parseInt(l.substring(u+1,u+3),16)),u+=2);return s}}a.NUMERIC_REGEX=/^[0-9]*$/,a.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,a.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",e.QrSegment=a})(Yi||(Yi={}));(function(e){(function(t){class n{constructor(o,a){this.ordinal=o,this.formatBits=a}}n.LOW=new n(0,1),n.MEDIUM=new n(1,0),n.QUARTILE=new n(2,3),n.HIGH=new n(3,2),t.Ecc=n})(e.QrCode||(e.QrCode={}))})(Yi||(Yi={}));(function(e){(function(t){class n{constructor(o,a){this.modeBits=o,this.numBitsCharCount=a}numCharCountBits(o){return this.numBitsCharCount[Math.floor((o+7)/17)]}}n.NUMERIC=new n(1,[10,12,14]),n.ALPHANUMERIC=new n(2,[9,11,13]),n.BYTE=new n(4,[8,16,16]),n.KANJI=new n(8,[8,10,12]),n.ECI=new n(7,[0,0,0]),t.Mode=n})(e.QrSegment||(e.QrSegment={}))})(Yi||(Yi={}));const kl=Yi,V5={L:kl.QrCode.Ecc.LOW,M:kl.QrCode.Ecc.MEDIUM,Q:kl.QrCode.Ecc.QUARTILE,H:kl.QrCode.Ecc.HIGH},ay=128,W5="L",U5="#FFFFFF",K5="#000000",q5=!1,Q0e=4,eye=0,tye=.1;function G5(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const n=[];return e.forEach(function(r,o){let a=null;r.forEach(function(i,l){if(!i&&a!==null){n.push(`M${a+t} ${o+t}h${l-a}v1H${a+t}z`),a=null;return}if(l===r.length-1){if(!i)return;a===null?n.push(`M${l+t},${o+t} h1v1H${l+t}z`):n.push(`M${a+t},${o+t} h${l+1-a}v1H${a+t}z`);return}i&&a===null&&(a=l)})}),n.join("")}function X5(e,t){return e.slice().map((n,r)=>r<t.y||r>=t.y+t.h?n:n.map((o,a)=>a<t.x||a>=t.x+t.w?o:!1))}function Y5(e,t,n,r){if(r==null)return null;const o=e.length+n*2,a=Math.floor(t*tye),i=o/t,l=(r.width||a)*i,s=(r.height||a)*i,u=r.x==null?e.length/2-l/2:r.x*i,c=r.y==null?e.length/2-s/2:r.y*i;let d=null;if(r.excavate){const f=Math.floor(u),p=Math.floor(c),v=Math.ceil(l+u-f),m=Math.ceil(s+c-p);d={x:f,y:p,w:v,h:m}}return{x:u,y:c,h:s,w:l,excavation:d}}function Z5(e,t){return t!=null?Math.floor(t):e?Q0e:eye}const nye=function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0}(),rye=he({name:"QRCodeCanvas",inheritAttrs:!1,props:E(E({},Mw()),{level:String,bgColor:String,fgColor:String,marginSize:Number}),setup(e,t){let{attrs:n,expose:r}=t;const o=z(()=>{var s;return(s=e.imageSettings)===null||s===void 0?void 0:s.src}),a=pe(null),i=pe(null),l=pe(!1);return r({toDataURL:(s,u)=>{var c;return(c=a.value)===null||c===void 0?void 0:c.toDataURL(s,u)}}),Je(()=>{const{value:s,size:u=ay,level:c=W5,bgColor:d=U5,fgColor:f=K5,includeMargin:p=q5,marginSize:v,imageSettings:m}=e;if(a.value!=null){const h=a.value,g=h.getContext("2d");if(!g)return;let x=kl.QrCode.encodeText(s,V5[c]).getModules();const y=Z5(p,v),w=x.length+y*2,b=Y5(x,u,y,m),S=i.value,$=l.value&&b!=null&&S!==null&&S.complete&&S.naturalHeight!==0&&S.naturalWidth!==0;$&&b.excavation!=null&&(x=X5(x,b.excavation));const D=window.devicePixelRatio||1;h.height=h.width=u*D;const O=u/w*D;g.scale(O,O),g.fillStyle=d,g.fillRect(0,0,w,w),g.fillStyle=f,nye?g.fill(new Path2D(G5(x,y))):x.forEach(function(A,T){A.forEach(function(M,B){M&&g.fillRect(B+y,T+y,1,1)})}),$&&g.drawImage(S,b.x+y,b.y+y,b.w,b.h)}},{flush:"post"}),Ne(o,()=>{l.value=!1}),()=>{var s;const u=(s=e.size)!==null&&s!==void 0?s:ay,c={height:`${u}px`,width:`${u}px`};let d=null;return o.value!=null&&(d=C("img",{src:o.value,key:o.value,style:{display:"none"},onLoad:()=>{l.value=!0},ref:i},null)),C(dt,null,[C("canvas",j(j({},n),{},{style:[c,n.style],ref:a}),null),d])}}}),oye=he({name:"QRCodeSVG",inheritAttrs:!1,props:E(E({},Mw()),{color:String,level:String,bgColor:String,fgColor:String,marginSize:Number,title:String}),setup(e){let t=null,n=null,r=null,o=null,a=null,i=null;return Je(()=>{const{value:l,size:s=ay,level:u=W5,includeMargin:c=q5,marginSize:d,imageSettings:f}=e;t=kl.QrCode.encodeText(l,V5[u]).getModules(),n=Z5(c,d),r=t.length+n*2,o=Y5(t,s,n,f),f!=null&&o!=null&&(o.excavation!=null&&(t=X5(t,o.excavation)),i=C("image",{"xlink:href":f.src,height:o.h,width:o.w,x:o.x+n,y:o.y+n,preserveAspectRatio:"none"},null)),a=G5(t,n)}),()=>{const l=e.bgColor&&U5,s=e.fgColor&&K5;return C("svg",{height:e.size,width:e.size,viewBox:`0 0 ${r} ${r}`},[!!e.title&&C("title",null,[e.title]),C("path",{fill:l,d:`M0,0 h${r}v${r}H0z`,"shape-rendering":"crispEdges"},null),C("path",{fill:s,d:a,"shape-rendering":"crispEdges"},null),i])}}}),aye=he({name:"AQrcode",inheritAttrs:!1,props:J0e(),emits:["refresh"],setup(e,t){let{emit:n,attrs:r,expose:o}=t;const[a]=ro("QRCode"),{prefixCls:i}=He("qrcode",e),[l,s]=Z0e(i),[,u]=$a(),c=be();o({toDataURL:(f,p)=>{var v;return(v=c.value)===null||v===void 0?void 0:v.toDataURL(f,p)}});const d=z(()=>{const{value:f,icon:p="",size:v=160,iconSize:m=40,color:h=u.value.colorText,bgColor:g="transparent",errorLevel:x="M"}=e,y={src:p,x:void 0,y:void 0,height:m,width:m,excavate:!0};return{value:f,size:v-(u.value.paddingSM+u.value.lineWidth)*2,level:x,bgColor:g,fgColor:h,imageSettings:p?y:void 0}});return()=>{const f=i.value;return l(C("div",j(j({},r),{},{style:[r.style,{width:`${e.size}px`,height:`${e.size}px`,backgroundColor:d.value.bgColor}],class:[s.value,f,{[`${f}-borderless`]:!e.bordered}]}),[e.status!=="active"&&C("div",{class:`${f}-mask`},[e.status==="loading"&&C(ko,null,null),e.status==="expired"&&C(dt,null,[C("p",{class:`${f}-expired`},[a.value.expired]),C(dn,{type:"link",onClick:p=>n("refresh",p)},{default:()=>[a.value.refresh],icon:()=>C(sie,null,null)})])]),e.type==="canvas"?C(rye,j({ref:c},d.value),null):C(oye,d.value,null)]))}}}),iye=rn(aye);function lye(e){const t=window.innerWidth||document.documentElement.clientWidth,n=window.innerHeight||document.documentElement.clientHeight,{top:r,right:o,bottom:a,left:i}=e.getBoundingClientRect();return r>=0&&i>=0&&o<=t&&a<=n}function sye(e,t,n,r){const[o,a]=It(void 0);Je(()=>{const c=typeof e.value=="function"?e.value():e.value;a(c||null)},{flush:"post"});const[i,l]=It(null),s=()=>{if(!t.value){l(null);return}if(o.value){!lye(o.value)&&t.value&&o.value.scrollIntoView(r.value);const{left:c,top:d,width:f,height:p}=o.value.getBoundingClientRect(),v={left:c,top:d,width:f,height:p,radius:0};JSON.stringify(i.value)!==JSON.stringify(v)&&l(v)}else l(null)};return Qe(()=>{Ne([t,o],()=>{s()},{flush:"post",immediate:!0}),window.addEventListener("resize",s)}),st(()=>{window.removeEventListener("resize",s)}),[z(()=>{var c,d;if(!i.value)return i.value;const f=((c=n.value)===null||c===void 0?void 0:c.offset)||6,p=((d=n.value)===null||d===void 0?void 0:d.radius)||2;return{left:i.value.left-f,top:i.value.top-f,width:i.value.width+f*2,height:i.value.height+f*2,radius:p}}),o]}const uye=()=>({arrow:Xe([Boolean,Object]),target:Xe([String,Function,Object]),title:Xe([String,Object]),description:Xe([String,Object]),placement:Ue(),mask:Xe([Object,Boolean],!0),className:{type:String},style:We(),scrollIntoViewOptions:Xe([Boolean,Object])}),Nw=()=>E(E({},uye()),{prefixCls:{type:String},total:{type:Number},current:{type:Number},onClose:Oe(),onFinish:Oe(),renderPanel:Oe(),onPrev:Oe(),onNext:Oe()}),cye=he({name:"DefaultPanel",inheritAttrs:!1,props:Nw(),setup(e,t){let{attrs:n}=t;return()=>{const{prefixCls:r,current:o,total:a,title:i,description:l,onClose:s,onPrev:u,onNext:c,onFinish:d}=e;return C("div",j(j({},n),{},{class:ge(`${r}-content`,n.class)}),[C("div",{class:`${r}-inner`},[C("button",{type:"button",onClick:s,"aria-label":"Close",class:`${r}-close`},[C("span",{class:`${r}-close-x`},[sr("×")])]),C("div",{class:`${r}-header`},[C("div",{class:`${r}-title`},[i])]),C("div",{class:`${r}-description`},[l]),C("div",{class:`${r}-footer`},[C("div",{class:`${r}-sliders`},[a>1?[...Array.from({length:a}).keys()].map((f,p)=>C("span",{key:f,class:p===o?"active":""},null)):null]),C("div",{class:`${r}-buttons`},[o!==0?C("button",{class:`${r}-prev-btn`,onClick:u},[sr("Prev")]):null,o===a-1?C("button",{class:`${r}-finish-btn`,onClick:d},[sr("Finish")]):C("button",{class:`${r}-next-btn`,onClick:c},[sr("Next")])])])])])}}}),dye=cye,fye=he({name:"TourStep",inheritAttrs:!1,props:Nw(),setup(e,t){let{attrs:n}=t;return()=>{const{current:r,renderPanel:o}=e;return C(dt,null,[typeof o=="function"?o(E(E({},n),e),r):C(dye,j(j({},n),e),null)])}}}),pye=fye;let VE=0;const mye=Co();function vye(){let e;return mye?(e=VE,VE+=1):e="TEST_OR_SSR",e}function hye(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:be("");const t=`vc_unique_${vye()}`;return e.value||t}const wd={fill:"transparent","pointer-events":"auto"},gye=he({name:"Mask",props:{prefixCls:{type:String},pos:We(),rootClassName:{type:String},showMask:Pe(),fill:{type:String,default:"rgba(0,0,0,0.5)"},open:Pe(),animated:Xe([Boolean,Object]),zIndex:{type:Number}},setup(e,t){let{attrs:n}=t;const r=hye();return()=>{const{prefixCls:o,open:a,rootClassName:i,pos:l,showMask:s,fill:u,animated:c,zIndex:d}=e,f=`${o}-mask-${r}`,p=typeof c=="object"?c==null?void 0:c.placeholder:c;return C(fc,{visible:a,autoLock:!0},{default:()=>a&&C("div",j(j({},n),{},{class:ge(`${o}-mask`,i,n.class),style:[{position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:d,pointerEvents:"none"},n.style]}),[s?C("svg",{style:{width:"100%",height:"100%"}},[C("defs",null,[C("mask",{id:f},[C("rect",{x:"0",y:"0",width:"100vw",height:"100vh",fill:"white"},null),l&&C("rect",{x:l.left,y:l.top,rx:l.radius,width:l.width,height:l.height,fill:"black",class:p?`${o}-placeholder-animated`:""},null)])]),C("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:u,mask:`url(#${f})`},null),l&&C(dt,null,[C("rect",j(j({},wd),{},{x:"0",y:"0",width:"100%",height:l.top}),null),C("rect",j(j({},wd),{},{x:"0",y:"0",width:l.left,height:"100%"}),null),C("rect",j(j({},wd),{},{x:"0",y:l.top+l.height,width:"100%",height:`calc(100vh - ${l.top+l.height}px)`}),null),C("rect",j(j({},wd),{},{x:l.left+l.width,y:"0",width:`calc(100vw - ${l.left+l.width}px)`,height:"100%"}),null)])]):null])})}}}),yye=gye,bye=[0,0],WE={left:{points:["cr","cl"],offset:[-8,0]},right:{points:["cl","cr"],offset:[8,0]},top:{points:["bc","tc"],offset:[0,-8]},bottom:{points:["tc","bc"],offset:[0,8]},topLeft:{points:["bl","tl"],offset:[0,-8]},leftTop:{points:["tr","tl"],offset:[-8,0]},topRight:{points:["br","tr"],offset:[0,-8]},rightTop:{points:["tl","tr"],offset:[8,0]},bottomRight:{points:["tr","br"],offset:[0,8]},rightBottom:{points:["bl","br"],offset:[8,0]},bottomLeft:{points:["tl","bl"],offset:[0,8]},leftBottom:{points:["br","bl"],offset:[-8,0]}};function J5(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const t={};return Object.keys(WE).forEach(n=>{t[n]=E(E({},WE[n]),{autoArrow:e,targetOffset:bye})}),t}J5();var xye=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const cg={left:"50%",top:"50%",width:"1px",height:"1px"},Q5=()=>{const{builtinPlacements:e,popupAlign:t}=YM();return{builtinPlacements:e,popupAlign:t,steps:bt(),open:Pe(),defaultCurrent:{type:Number},current:{type:Number},onChange:Oe(),onClose:Oe(),onFinish:Oe(),mask:Xe([Boolean,Object],!0),arrow:Xe([Boolean,Object],!0),rootClassName:{type:String},placement:Ue("bottom"),prefixCls:{type:String,default:"rc-tour"},renderPanel:Oe(),gap:We(),animated:Xe([Boolean,Object]),scrollIntoViewOptions:Xe([Boolean,Object],!0),zIndex:{type:Number,default:1001}}},wye=he({name:"Tour",inheritAttrs:!1,props:at(Q5(),{}),setup(e){const{defaultCurrent:t,placement:n,mask:r,scrollIntoViewOptions:o,open:a,gap:i,arrow:l}=Xr(e),s=be(),[u,c]=Zt(0,{value:z(()=>e.current),defaultValue:t.value}),[d,f]=Zt(void 0,{value:z(()=>e.open),postState:$=>u.value<0||u.value>=e.steps.length?!1:$??!0}),p=pe(d.value);Je(()=>{d.value&&!p.value&&c(0),p.value=d.value});const v=z(()=>e.steps[u.value]||{}),m=z(()=>{var $;return($=v.value.placement)!==null&&$!==void 0?$:n.value}),h=z(()=>{var $;return d.value&&(($=v.value.mask)!==null&&$!==void 0?$:r.value)}),g=z(()=>{var $;return($=v.value.scrollIntoViewOptions)!==null&&$!==void 0?$:o.value}),[x,y]=sye(z(()=>v.value.target),a,i,g),w=z(()=>y.value?typeof v.value.arrow>"u"?l.value:v.value.arrow:!1),b=z(()=>typeof w.value=="object"?w.value.pointAtCenter:!1);Ne(b,()=>{var $;($=s.value)===null||$===void 0||$.forcePopupAlign()}),Ne(u,()=>{var $;($=s.value)===null||$===void 0||$.forcePopupAlign()});const S=$=>{var D;c($),(D=e.onChange)===null||D===void 0||D.call(e,$)};return()=>{var $;const{prefixCls:D,steps:O,onClose:A,onFinish:T,rootClassName:M,renderPanel:B,animated:F,zIndex:P}=e,I=xye(e,["prefixCls","steps","onClose","onFinish","rootClassName","renderPanel","animated","zIndex"]);if(y.value===void 0)return null;const N=()=>{f(!1),A==null||A(u.value)},R=typeof h.value=="boolean"?h.value:!!h.value,_=typeof h.value=="boolean"?void 0:h.value,L=()=>y.value||document.body,k=()=>C(pye,j({arrow:w.value,key:"content",prefixCls:D,total:O.length,renderPanel:B,onPrev:()=>{S(u.value-1)},onNext:()=>{S(u.value+1)},onClose:N,current:u.value,onFinish:()=>{N(),T==null||T()}},v.value),null),H=z(()=>{const V=x.value||cg,U={};return Object.keys(V).forEach(q=>{typeof V[q]=="number"?U[q]=`${V[q]}px`:U[q]=V[q]}),U});return d.value?C(dt,null,[C(yye,{zIndex:P,prefixCls:D,pos:x.value,showMask:R,style:_==null?void 0:_.style,fill:_==null?void 0:_.color,open:d.value,animated:F,rootClassName:M},null),C(ol,j(j({},I),{},{builtinPlacements:v.value.target?($=I.builtinPlacements)!==null&&$!==void 0?$:J5(b.value):void 0,ref:s,popupStyle:v.value.target?v.value.style:E(E({},v.value.style),{position:"fixed",left:cg.left,top:cg.top,transform:"translate(-50%, -50%)"}),popupPlacement:m.value,popupVisible:d.value,popupClassName:ge(M,v.value.className),prefixCls:D,popup:k,forceRender:!1,destroyPopupOnHide:!0,zIndex:P,mask:!1,getTriggerDOMNode:L}),{default:()=>[C(fc,{visible:d.value,autoLock:!0},{default:()=>[C("div",{class:ge(M,`${D}-target-placeholder`),style:E(E({},H.value),{position:"fixed",pointerEvents:"none"})},null)]})]})]):null}}}),Sye=wye,Cye=()=>E(E({},Q5()),{steps:{type:Array},prefixCls:{type:String},current:{type:Number},type:{type:String},"onUpdate:current":Function}),$ye=()=>E(E({},Nw()),{cover:{type:Object},nextButtonProps:{type:Object},prevButtonProps:{type:Object},current:{type:Number},type:{type:String}}),Eye=he({name:"ATourPanel",inheritAttrs:!1,props:$ye(),setup(e,t){let{attrs:n,slots:r}=t;const{current:o,total:a}=Xr(e),i=z(()=>o.value===a.value-1),l=u=>{var c;const d=e.prevButtonProps;(c=e.onPrev)===null||c===void 0||c.call(e,u),typeof(d==null?void 0:d.onClick)=="function"&&(d==null||d.onClick())},s=u=>{var c,d;const f=e.nextButtonProps;i.value?(c=e.onFinish)===null||c===void 0||c.call(e,u):(d=e.onNext)===null||d===void 0||d.call(e,u),typeof(f==null?void 0:f.onClick)=="function"&&(f==null||f.onClick())};return()=>{const{prefixCls:u,title:c,onClose:d,cover:f,description:p,type:v,arrow:m}=e,h=e.prevButtonProps,g=e.nextButtonProps;let x;c&&(x=C("div",{class:`${u}-header`},[C("div",{class:`${u}-title`},[c])]));let y;p&&(y=C("div",{class:`${u}-description`},[p]));let w;f&&(w=C("div",{class:`${u}-cover`},[f]));let b;r.indicatorsRender?b=r.indicatorsRender({current:o.value,total:a}):b=[...Array.from({length:a.value}).keys()].map((D,O)=>C("span",{key:D,class:ge(O===o.value&&`${u}-indicator-active`,`${u}-indicator`)},null));const S=v==="primary"?"default":"primary",$={type:"default",ghost:v==="primary"};return C(Ji,{componentName:"Tour",defaultLocale:cr.Tour},{default:D=>{var O,A;return C("div",j(j({},n),{},{class:ge(v==="primary"?`${u}-primary`:"",n.class,`${u}-content`)}),[m&&C("div",{class:`${u}-arrow`,key:"arrow"},null),C("div",{class:`${u}-inner`},[C(Hr,{class:`${u}-close`,onClick:d},null),w,x,y,C("div",{class:`${u}-footer`},[a.value>1&&C("div",{class:`${u}-indicators`},[b]),C("div",{class:`${u}-buttons`},[o.value!==0?C(dn,j(j(j({},$),h),{},{onClick:l,size:"small",class:ge(`${u}-prev-btn`,h==null?void 0:h.className)}),{default:()=>[(O=h==null?void 0:h.children)!==null&&O!==void 0?O:D.Previous]}):null,C(dn,j(j({type:S},g),{},{onClick:s,size:"small",class:ge(`${u}-next-btn`,g==null?void 0:g.className)}),{default:()=>[(A=g==null?void 0:g.children)!==null&&A!==void 0?A:i.value?D.Finish:D.Next]})])])])])}})}}}),Dye=Eye,Aye=e=>{let{defaultType:t,steps:n,current:r,defaultCurrent:o}=e;const a=be(o==null?void 0:o.value),i=z(()=>r==null?void 0:r.value);Ne(i,c=>{a.value=c??(o==null?void 0:o.value)},{immediate:!0});const l=c=>{a.value=c},s=z(()=>{var c,d;return typeof a.value=="number"?n&&((d=(c=n.value)===null||c===void 0?void 0:c[a.value])===null||d===void 0?void 0:d.type):t==null?void 0:t.value});return{currentMergedType:z(()=>{var c;return(c=s.value)!==null&&c!==void 0?c:t==null?void 0:t.value}),updateInnerCurrent:l}},Oye=Aye,Tye=e=>{const{componentCls:t,lineHeight:n,padding:r,paddingXS:o,borderRadius:a,borderRadiusXS:i,colorPrimary:l,colorText:s,colorFill:u,indicatorHeight:c,indicatorWidth:d,boxShadowTertiary:f,tourZIndexPopup:p,fontSize:v,colorBgContainer:m,fontWeightStrong:h,marginXS:g,colorTextLightSolid:x,tourBorderRadius:y,colorWhite:w,colorBgTextHover:b,tourCloseSize:S,motionDurationSlow:$,antCls:D}=e;return[{[t]:E(E({},rt(e)),{color:s,position:"absolute",zIndex:p,display:"block",visibility:"visible",fontSize:v,lineHeight:n,width:520,"--antd-arrow-background-color":m,"&-pure":{maxWidth:"100%",position:"relative"},[`&${t}-hidden`]:{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{textAlign:"start",textDecoration:"none",borderRadius:y,boxShadow:f,position:"relative",backgroundColor:m,border:"none",backgroundClip:"padding-box",[`${t}-close`]:{position:"absolute",top:r,insetInlineEnd:r,color:e.colorIcon,outline:"none",width:S,height:S,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.wireframe?"transparent":e.colorFillContent}},[`${t}-cover`]:{textAlign:"center",padding:`${r+S+o}px ${r}px 0`,img:{width:"100%"}},[`${t}-header`]:{padding:`${r}px ${r}px ${o}px`,[`${t}-title`]:{lineHeight:n,fontSize:v,fontWeight:h}},[`${t}-description`]:{padding:`0 ${r}px`,lineHeight:n,wordWrap:"break-word"},[`${t}-footer`]:{padding:`${o}px ${r}px ${r}px`,textAlign:"end",borderRadius:`0 0 ${i}px ${i}px`,display:"flex",[`${t}-indicators`]:{display:"inline-block",[`${t}-indicator`]:{width:d,height:c,display:"inline-block",borderRadius:"50%",background:u,"&:not(:last-child)":{marginInlineEnd:c},"&-active":{background:l}}},[`${t}-buttons`]:{marginInlineStart:"auto",[`${D}-btn`]:{marginInlineStart:g}}}},[`${t}-primary, &${t}-primary`]:{"--antd-arrow-background-color":l,[`${t}-inner`]:{color:x,textAlign:"start",textDecoration:"none",backgroundColor:l,borderRadius:a,boxShadow:f,[`${t}-close`]:{color:x},[`${t}-indicators`]:{[`${t}-indicator`]:{background:new $t(x).setAlpha(.15).toRgbString(),"&-active":{background:x}}},[`${t}-prev-btn`]:{color:x,borderColor:new $t(x).setAlpha(.15).toRgbString(),backgroundColor:l,"&:hover":{backgroundColor:new $t(x).setAlpha(.15).toRgbString(),borderColor:"transparent"}},[`${t}-next-btn`]:{color:l,borderColor:"transparent",background:w,"&:hover":{background:new $t(b).onBackground(w).toRgbString()}}}}}),[`${t}-mask`]:{[`${t}-placeholder-animated`]:{transition:`all ${$}`}},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:Math.min(y,h1)}}},g1(e,{colorBg:"var(--antd-arrow-background-color)",contentRadius:y,limitVerticalRadius:!0})]},Mye=nt("Tour",e=>{const{borderRadiusLG:t,fontSize:n,lineHeight:r}=e,o=qe(e,{tourZIndexPopup:e.zIndexPopupBase+70,indicatorWidth:6,indicatorHeight:6,tourBorderRadius:t,tourCloseSize:n*r});return[Tye(o)]});var Nye=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Pye=he({name:"ATour",inheritAttrs:!1,props:Cye(),setup(e,t){let{attrs:n,emit:r,slots:o}=t;const{current:a,type:i,steps:l,defaultCurrent:s}=Xr(e),{prefixCls:u,direction:c}=He("tour",e),[d,f]=Mye(u),{currentMergedType:p,updateInnerCurrent:v}=Oye({defaultType:i,steps:l,current:a,defaultCurrent:s});return()=>{const{steps:m,current:h,type:g,rootClassName:x}=e,y=Nye(e,["steps","current","type","rootClassName"]),w=ge({[`${u.value}-primary`]:p.value==="primary",[`${u.value}-rtl`]:c.value==="rtl"},f.value,x),b=(D,O)=>C(Dye,j(j({},D),{},{type:g,current:O}),{indicatorsRender:o.indicatorsRender}),S=D=>{v(D),r("update:current",D),r("change",D)},$=z(()=>v1({arrowPointAtCenter:!0,autoAdjustOverflow:!0}));return d(C(Sye,j(j(j({},n),y),{},{rootClassName:w,prefixCls:u.value,current:h,defaultCurrent:e.defaultCurrent,animated:!0,renderPanel:b,onChange:S,steps:m,builtinPlacements:$.value}),null))}}}),Iye=rn(Pye),UE=Object.freeze(Object.defineProperty({__proto__:null,Affix:_M,Alert:AX,Anchor:Ai,AnchorLink:fb,AutoComplete:XG,AutoCompleteOptGroup:GG,AutoCompleteOption:qG,Avatar:Ri,AvatarGroup:ap,BackTop:Ap,Badge:Zd,BadgeRibbon:ip,Breadcrumb:zi,BreadcrumbItem:Gu,BreadcrumbSeparator:pp,Button:dn,ButtonGroup:dp,Calendar:$Q,Card:Zl,CardGrid:bp,CardMeta:yp,Carousel:$te,Cascader:Wre,CheckableTag:Cp,Checkbox:Zr,CheckboxGroup:Sp,Col:Yre,Collapse:xu,CollapsePanel:xp,Comment:toe,Compact:np,ConfigProvider:sv,DatePicker:Zle,Descriptions:sse,DescriptionsItem:Y8,DirectoryTree:Sf,Divider:pse,Drawer:Nse,Dropdown:zo,DropdownButton:qu,Empty:Ka,FloatButton:ni,FloatButtonGroup:Dp,Form:qa,FormItem:u8,FormItemRest:Qf,Grid:Xre,Image:kue,ImagePreviewGroup:w6,Input:En,InputGroup:s6,InputNumber:Que,InputPassword:d6,InputSearch:u6,Layout:fce,LayoutContent:dce,LayoutFooter:uce,LayoutHeader:sce,LayoutSider:cce,List:Xce,ListItem:A6,ListItemMeta:E6,LocaleProvider:p8,Mentions:hde,MentionsOption:yf,Menu:mn,MenuDivider:Yu,MenuItem:Lo,MenuItemGroup:Xu,Modal:wn,MonthPicker:uf,PageHeader:Gde,Pagination:dv,Popconfirm:efe,Popover:y1,Progress:gw,QRCode:iye,QuarterPicker:cf,Radio:ar,RadioButton:hp,RadioGroup:X1,RangePicker:df,Rate:Lfe,Result:npe,Row:rpe,Segmented:X0e,Select:xa,SelectOptGroup:WG,SelectOption:VG,Skeleton:Zn,SkeletonAvatar:ax,SkeletonButton:nx,SkeletonImage:ox,SkeletonInput:rx,SkeletonTitle:Km,Slider:Spe,Space:W6,Spin:ko,Statistic:la,StatisticCountdown:Rde,Step:bf,Steps:Xpe,SubMenu:qi,Switch:ame,TabPane:gp,Table:ghe,TableColumn:$f,TableColumnGroup:Ef,TableSummary:Df,TableSummaryCell:Ip,TableSummaryRow:Pp,Tabs:Li,Tag:W8,Textarea:cw,TimePicker:fge,TimeRangePicker:Af,Timeline:Tu,TimelineItem:rc,Tooltip:Br,Tour:Iye,Transfer:khe,Tree:A5,TreeNode:Cf,TreeSelect:cge,TreeSelectNode:oy,Typography:gr,TypographyLink:Dw,TypographyParagraph:Aw,TypographyText:Ow,TypographyTitle:Tw,Upload:P0e,UploadDragger:N0e,Watermark:k0e,WeekPicker:sf,message:un,notification:rw},Symbol.toStringTag,{value:"Module"})),Ra=(e,t)=>new $t(e).setAlpha(t).toRgbString(),El=(e,t)=>new $t(e).lighten(t).toHexString(),_ye=e=>{const t=ga(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},Bye=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:Ra(r,.85),colorTextSecondary:Ra(r,.65),colorTextTertiary:Ra(r,.45),colorTextQuaternary:Ra(r,.25),colorFill:Ra(r,.18),colorFillSecondary:Ra(r,.12),colorFillTertiary:Ra(r,.08),colorFillQuaternary:Ra(r,.04),colorBgElevated:El(n,12),colorBgContainer:El(n,8),colorBgLayout:El(n,0),colorBgSpotlight:El(n,26),colorBorder:El(n,26),colorBorderSecondary:El(n,19)}},Fye=(e,t)=>{const n=Object.keys(ib).map(o=>{const a=ga(e[o],{theme:"dark"});return new Array(10).fill(1).reduce((i,l,s)=>(i[`${o}-${s+1}`]=a[s],i),{})}).reduce((o,a)=>(o=E(E({},o),a),o),{}),r=t??pm(e);return E(E(E({},r),n),SM(e,{generateColorPalettes:_ye,generateNeutralColorPalettes:Bye}))},Rye=Fye;function zye(e){const{sizeUnit:t,sizeStep:n}=e,r=n-2;return{sizeXXL:t*(r+10),sizeXL:t*(r+6),sizeLG:t*(r+2),sizeMD:t*(r+2),sizeMS:t*(r+1),size:t*r,sizeSM:t*r,sizeXS:t*(r-1),sizeXXS:t*(r-1)}}const Lye=(e,t)=>{const n=t??pm(e),r=n.fontSizeSM,o=n.controlHeight-4;return E(E(E(E(E({},n),zye(t??e)),CM(r)),{controlHeight:o}),wM(E(E({},n),{controlHeight:o})))},kye=Lye;function Hye(){const[e,t,n]=$a();return{theme:e,token:t,hashId:n}}const jye={defaultConfig:Wf,defaultSeed:Wf.token,useToken:Hye,defaultAlgorithm:pm,darkAlgorithm:Rye,compactAlgorithm:kye},Vye=function(e){return Object.keys(UE).forEach(t=>{const n=UE[t];n.install&&e.use(n)}),e.use(p9.StyleProvider),e.config.globalProperties.$message=un,e.config.globalProperties.$notification=rw,e.config.globalProperties.$info=wn.info,e.config.globalProperties.$success=wn.success,e.config.globalProperties.$error=wn.error,e.config.globalProperties.$warning=wn.warning,e.config.globalProperties.$confirm=wn.confirm,e.config.globalProperties.$destroyAll=wn.destroyAll,e},Wye={version:gM,install:Vye},Uye={locale:"zh_CN",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",yearFormat:"YYYY年",dayFormat:"D日",dateFormat:"YYYY年M月D日",dateTimeFormat:"YYYY年M月D日 HH时mm分ss秒",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪"},Kye=Uye,qye={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]},e_=qye,t_={lang:E({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},Kye),timePickerLocale:E({},e_)};t_.lang.ok="确定";const KE=t_,Mr="${label}不是一个有效的${type}",Gye={locale:"zh-cn",Pagination:$6,DatePicker:KE,TimePicker:e_,Calendar:KE,global:{placeholder:"请选择"},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:"无筛选项",filterCheckall:"全选",filterSearchPlaceholder:"在筛选项中搜索",selectAll:"全选当页",selectInvert:"反选当页",selectNone:"清空所有",selectionAll:"全选所有",sortTitle:"排序",expand:"展开行",collapse:"关闭行",triggerDesc:"点击降序",triggerAsc:"点击升序",cancelSort:"取消排序"},Tour:{Next:"下一步",Previous:"上一步",Finish:"结束导览"},Modal:{okText:"确定",cancelText:"取消",justOkText:"知道了"},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{searchPlaceholder:"请输入搜索内容",itemUnit:"项",itemsUnit:"项",remove:"删除",selectCurrent:"全选当页",removeCurrent:"删除当页",selectAll:"全选所有",removeAll:"删除全部",selectInvert:"反选当页"},Upload:{uploading:"文件上传中",removeFile:"删除文件",uploadError:"上传错误",previewFile:"预览文件",downloadFile:"下载文件"},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:"复制成功",expand:"展开"},PageHeader:{back:"返回"},Form:{optional:"(可选)",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:Mr,method:Mr,array:Mr,object:Mr,number:Mr,date:Mr,boolean:Mr,integer:Mr,float:Mr,regexp:Mr,email:Mr,url:Mr,hex:Mr},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},Image:{preview:"预览"},QRCode:{expired:"二维码已过期",refresh:"点击刷新"}},Xye=Gye;var qE={},Yye={get exports(){return qE},set exports(e){qE=e}};(function(e,t){(function(n,r){e.exports=r(mp)})(qn,function(n){function r(i){return i&&typeof i=="object"&&"default"in i?i:{default:i}}var o=r(n),a={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(i,l){return l==="W"?i+"周":i+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(i,l){var s=100*i+l;return s<600?"凌晨":s<900?"早上":s<1100?"上午":s<1300?"中午":s<1800?"下午":"晚上"}};return o.default.locale(a,null,!0),a})})(Yye);var Zye=!1;/*!
- * pinia v2.0.33
- * (c) 2023 Eduardo San Martin Morote
- * @license MIT
- */let n_;const Sv=e=>n_=e,r_=Symbol();function iy(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Mu;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Mu||(Mu={}));function Jye(){const e=MT(!0),t=e.run(()=>be({}));let n=[],r=[];const o=Ff({install(a){Sv(o),o._a=a,a.provide(r_,o),a.config.globalProperties.$pinia=o,r.forEach(i=>n.push(i)),r=[]},use(a){return!this._a&&!Zye?r.push(a):n.push(a),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}const o_=()=>{};function GE(e,t,n,r=o_){e.push(t);const o=()=>{const a=e.indexOf(t);a>-1&&(e.splice(a,1),r())};return!n&&AT()&&OT(o),o}function Dl(e,...t){e.slice().forEach(n=>{n(...t)})}function ly(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,r)=>e.set(r,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],o=e[n];iy(o)&&iy(r)&&e.hasOwnProperty(n)&&!Vi(r)&&!Wy(r)?e[n]=ly(o,r):e[n]=r}return e}const Qye=Symbol();function ebe(e){return!iy(e)||!e.hasOwnProperty(Qye)}const{assign:Ha}=Object;function tbe(e){return!!(Vi(e)&&e.effect)}function nbe(e,t,n,r){const{state:o,actions:a,getters:i}=t,l=n.state.value[e];let s;function u(){l||(n.state.value[e]=o?o():{});const c=Xr(n.state.value[e]);return Ha(c,a,Object.keys(i||{}).reduce((d,f)=>(d[f]=Ff(z(()=>{Sv(n);const p=n._s.get(e);return i[f].call(p,p)})),d),{}))}return s=a_(e,u,t,n,r,!0),s}function a_(e,t,n={},r,o,a){let i;const l=Ha({actions:{}},n),s={deep:!0};let u,c,d=Ff([]),f=Ff([]),p;const v=r.state.value[e];!a&&!v&&(r.state.value[e]={}),be({});let m;function h($){let D;u=c=!1,typeof $=="function"?($(r.state.value[e]),D={type:Mu.patchFunction,storeId:e,events:p}):(ly(r.state.value[e],$),D={type:Mu.patchObject,payload:$,storeId:e,events:p});const O=m=Symbol();ht().then(()=>{m===O&&(u=!0)}),c=!0,Dl(d,D,r.state.value[e])}const g=a?function(){const{state:D}=n,O=D?D():{};this.$patch(A=>{Ha(A,O)})}:o_;function x(){i.stop(),d=[],f=[],r._s.delete(e)}function y($,D){return function(){Sv(r);const O=Array.from(arguments),A=[],T=[];function M(P){A.push(P)}function B(P){T.push(P)}Dl(f,{args:O,name:$,store:b,after:M,onError:B});let F;try{F=D.apply(this&&this.$id===e?this:b,O)}catch(P){throw Dl(T,P),P}return F instanceof Promise?F.then(P=>(Dl(A,P),P)).catch(P=>(Dl(T,P),Promise.reject(P))):(Dl(A,F),F)}}const w={_p:r,$id:e,$onAction:GE.bind(null,f),$patch:h,$reset:g,$subscribe($,D={}){const O=GE(d,$,D.detached,()=>A()),A=i.run(()=>Ne(()=>r.state.value[e],T=>{(D.flush==="sync"?c:u)&&$({storeId:e,type:Mu.direct,events:p},T)},Ha({},s,D)));return O},$dispose:x},b=_t(w);r._s.set(e,b);const S=r._e.run(()=>(i=MT(),i.run(()=>t())));for(const $ in S){const D=S[$];if(Vi(D)&&!tbe(D)||Wy(D))a||(v&&ebe(D)&&(Vi(D)?D.value=v[$]:ly(D,v[$])),r.state.value[e][$]=D);else if(typeof D=="function"){const O=y($,D);S[$]=O,l.actions[$]=D}}return Ha(b,S),Ha(cn(b),S),Object.defineProperty(b,"$state",{get:()=>r.state.value[e],set:$=>{h(D=>{Ha(D,$)})}}),r._p.forEach($=>{Ha(b,i.run(()=>$({store:b,app:r._a,pinia:r,options:l})))}),v&&a&&n.hydrate&&n.hydrate(b.$state,v),u=!0,c=!0,b}function Pw(e,t,n){let r,o;const a=typeof t=="function";typeof e=="string"?(r=e,o=a?n:t):(o=e,r=e.id);function i(l,s){const u=Kn();return l=l||u&<(r_,null),l&&Sv(l),l=n_,l._s.has(r)||(a?a_(r,t,o,l):nbe(r,o,l)),l._s.get(r)}return i.$id=r,i}function rbe(e){{e=cn(e);const t={};for(const n in e){const r=e[n];(Vi(r)||Wy(r))&&(t[n]=Ye(e,n))}return t}}const obe="modulepreload",abe=function(e,t){return new URL(e,t).href},XE={},Re=function(t,n,r){if(!n||n.length===0)return t();const o=document.getElementsByTagName("link");return Promise.all(n.map(a=>{if(a=abe(a,r),a in XE)return;XE[a]=!0;const i=a.endsWith(".css"),l=i?'[rel="stylesheet"]':"";if(!!r)for(let c=o.length-1;c>=0;c--){const d=o[c];if(d.href===a&&(!i||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${a}"]${l}`))return;const u=document.createElement("link");if(u.rel=i?"stylesheet":obe,i||(u.as="script",u.crossOrigin=""),u.href=a,document.head.appendChild(u),i)return new Promise((c,d)=>{u.addEventListener("load",c),u.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${a}`)))})})).then(()=>t())};function i_(e,t){return function(){return e.apply(t,arguments)}}const{toString:l_}=Object.prototype,{getPrototypeOf:Iw}=Object,_w=(e=>t=>{const n=l_.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ma=e=>(e=e.toLowerCase(),t=>_w(t)===e),Cv=e=>t=>typeof t===e,{isArray:zs}=Array,oc=Cv("undefined");function ibe(e){return e!==null&&!oc(e)&&e.constructor!==null&&!oc(e.constructor)&&ai(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const s_=Ma("ArrayBuffer");function lbe(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&s_(e.buffer),t}const sbe=Cv("string"),ai=Cv("function"),u_=Cv("number"),Bw=e=>e!==null&&typeof e=="object",ube=e=>e===!0||e===!1,Mf=e=>{if(_w(e)!=="object")return!1;const t=Iw(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},cbe=Ma("Date"),dbe=Ma("File"),fbe=Ma("Blob"),pbe=Ma("FileList"),mbe=e=>Bw(e)&&ai(e.pipe),vbe=e=>{const t="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||l_.call(e)===t||ai(e.toString)&&e.toString()===t)},hbe=Ma("URLSearchParams"),gbe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Nc(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),zs(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const a=n?Object.getOwnPropertyNames(e):Object.keys(e),i=a.length;let l;for(r=0;r<i;r++)l=a[r],t.call(null,e[l],l,e)}}function c_(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const d_=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),f_=e=>!oc(e)&&e!==d_;function sy(){const{caseless:e}=f_(this)&&this||{},t={},n=(r,o)=>{const a=e&&c_(t,o)||o;Mf(t[a])&&Mf(r)?t[a]=sy(t[a],r):Mf(r)?t[a]=sy({},r):zs(r)?t[a]=r.slice():t[a]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&Nc(arguments[r],n);return t}const ybe=(e,t,n,{allOwnKeys:r}={})=>(Nc(t,(o,a)=>{n&&ai(o)?e[a]=i_(o,n):e[a]=o},{allOwnKeys:r}),e),bbe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),xbe=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},wbe=(e,t,n,r)=>{let o,a,i;const l={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)i=o[a],(!r||r(i,e,t))&&!l[i]&&(t[i]=e[i],l[i]=!0);e=n!==!1&&Iw(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Sbe=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Cbe=e=>{if(!e)return null;if(zs(e))return e;let t=e.length;if(!u_(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},$be=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Iw(Uint8Array)),Ebe=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const a=o.value;t.call(e,a[0],a[1])}},Dbe=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Abe=Ma("HTMLFormElement"),Obe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),YE=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Tbe=Ma("RegExp"),p_=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Nc(n,(o,a)=>{t(o,a,e)!==!1&&(r[a]=o)}),Object.defineProperties(e,r)},Mbe=e=>{p_(e,(t,n)=>{if(ai(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(ai(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Nbe=(e,t)=>{const n={},r=o=>{o.forEach(a=>{n[a]=!0})};return zs(e)?r(e):r(String(e).split(t)),n},Pbe=()=>{},Ibe=(e,t)=>(e=+e,Number.isFinite(e)?e:t),dg="abcdefghijklmnopqrstuvwxyz",ZE="0123456789",m_={DIGIT:ZE,ALPHA:dg,ALPHA_DIGIT:dg+dg.toUpperCase()+ZE},_be=(e=16,t=m_.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Bbe(e){return!!(e&&ai(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Fbe=e=>{const t=new Array(10),n=(r,o)=>{if(Bw(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const a=zs(r)?[]:{};return Nc(r,(i,l)=>{const s=n(i,o+1);!oc(s)&&(a[l]=s)}),t[o]=void 0,a}}return r};return n(e,0)},Fe={isArray:zs,isArrayBuffer:s_,isBuffer:ibe,isFormData:vbe,isArrayBufferView:lbe,isString:sbe,isNumber:u_,isBoolean:ube,isObject:Bw,isPlainObject:Mf,isUndefined:oc,isDate:cbe,isFile:dbe,isBlob:fbe,isRegExp:Tbe,isFunction:ai,isStream:mbe,isURLSearchParams:hbe,isTypedArray:$be,isFileList:pbe,forEach:Nc,merge:sy,extend:ybe,trim:gbe,stripBOM:bbe,inherits:xbe,toFlatObject:wbe,kindOf:_w,kindOfTest:Ma,endsWith:Sbe,toArray:Cbe,forEachEntry:Ebe,matchAll:Dbe,isHTMLForm:Abe,hasOwnProperty:YE,hasOwnProp:YE,reduceDescriptors:p_,freezeMethods:Mbe,toObjectSet:Nbe,toCamelCase:Obe,noop:Pbe,toFiniteNumber:Ibe,findKey:c_,global:d_,isContextDefined:f_,ALPHABET:m_,generateString:_be,isSpecCompliantForm:Bbe,toJSONObject:Fbe};function Vt(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}Fe.inherits(Vt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Fe.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const v_=Vt.prototype,h_={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{h_[e]={value:e}});Object.defineProperties(Vt,h_);Object.defineProperty(v_,"isAxiosError",{value:!0});Vt.from=(e,t,n,r,o,a)=>{const i=Object.create(v_);return Fe.toFlatObject(e,i,function(s){return s!==Error.prototype},l=>l!=="isAxiosError"),Vt.call(i,e.message,t,n,r,o),i.cause=e,i.name=e.name,a&&Object.assign(i,a),i};const Rbe=null;function uy(e){return Fe.isPlainObject(e)||Fe.isArray(e)}function g_(e){return Fe.endsWith(e,"[]")?e.slice(0,-2):e}function JE(e,t,n){return e?e.concat(t).map(function(o,a){return o=g_(o),!n&&a?"["+o+"]":o}).join(n?".":""):t}function zbe(e){return Fe.isArray(e)&&!e.some(uy)}const Lbe=Fe.toFlatObject(Fe,{},null,function(t){return/^is[A-Z]/.test(t)});function $v(e,t,n){if(!Fe.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Fe.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,h){return!Fe.isUndefined(h[m])});const r=n.metaTokens,o=n.visitor||c,a=n.dots,i=n.indexes,s=(n.Blob||typeof Blob<"u"&&Blob)&&Fe.isSpecCompliantForm(t);if(!Fe.isFunction(o))throw new TypeError("visitor must be a function");function u(v){if(v===null)return"";if(Fe.isDate(v))return v.toISOString();if(!s&&Fe.isBlob(v))throw new Vt("Blob is not supported. Use a Buffer instead.");return Fe.isArrayBuffer(v)||Fe.isTypedArray(v)?s&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function c(v,m,h){let g=v;if(v&&!h&&typeof v=="object"){if(Fe.endsWith(m,"{}"))m=r?m:m.slice(0,-2),v=JSON.stringify(v);else if(Fe.isArray(v)&&zbe(v)||(Fe.isFileList(v)||Fe.endsWith(m,"[]"))&&(g=Fe.toArray(v)))return m=g_(m),g.forEach(function(y,w){!(Fe.isUndefined(y)||y===null)&&t.append(i===!0?JE([m],w,a):i===null?m:m+"[]",u(y))}),!1}return uy(v)?!0:(t.append(JE(h,m,a),u(v)),!1)}const d=[],f=Object.assign(Lbe,{defaultVisitor:c,convertValue:u,isVisitable:uy});function p(v,m){if(!Fe.isUndefined(v)){if(d.indexOf(v)!==-1)throw Error("Circular reference detected in "+m.join("."));d.push(v),Fe.forEach(v,function(g,x){(!(Fe.isUndefined(g)||g===null)&&o.call(t,g,Fe.isString(x)?x.trim():x,m,f))===!0&&p(g,m?m.concat(x):[x])}),d.pop()}}if(!Fe.isObject(e))throw new TypeError("data must be an object");return p(e),t}function QE(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Fw(e,t){this._pairs=[],e&&$v(e,this,t)}const y_=Fw.prototype;y_.append=function(t,n){this._pairs.push([t,n])};y_.toString=function(t){const n=t?function(r){return t.call(this,r,QE)}:QE;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function kbe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function b_(e,t,n){if(!t)return e;const r=n&&n.encode||kbe,o=n&&n.serialize;let a;if(o?a=o(t,n):a=Fe.isURLSearchParams(t)?t.toString():new Fw(t,n).toString(r),a){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class Hbe{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Fe.forEach(this.handlers,function(r){r!==null&&t(r)})}}const e4=Hbe,x_={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},jbe=typeof URLSearchParams<"u"?URLSearchParams:Fw,Vbe=typeof FormData<"u"?FormData:null,Wbe=typeof Blob<"u"?Blob:null,Ube=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),Kbe=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Fo={isBrowser:!0,classes:{URLSearchParams:jbe,FormData:Vbe,Blob:Wbe},isStandardBrowserEnv:Ube,isStandardBrowserWebWorkerEnv:Kbe,protocols:["http","https","file","blob","url","data"]};function qbe(e,t){return $v(e,new Fo.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,a){return Fo.isNode&&Fe.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function Gbe(e){return Fe.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Xbe(e){const t={},n=Object.keys(e);let r;const o=n.length;let a;for(r=0;r<o;r++)a=n[r],t[a]=e[a];return t}function w_(e){function t(n,r,o,a){let i=n[a++];const l=Number.isFinite(+i),s=a>=n.length;return i=!i&&Fe.isArray(o)?o.length:i,s?(Fe.hasOwnProp(o,i)?o[i]=[o[i],r]:o[i]=r,!l):((!o[i]||!Fe.isObject(o[i]))&&(o[i]=[]),t(n,r,o[i],a)&&Fe.isArray(o[i])&&(o[i]=Xbe(o[i])),!l)}if(Fe.isFormData(e)&&Fe.isFunction(e.entries)){const n={};return Fe.forEachEntry(e,(r,o)=>{t(Gbe(r),o,n,0)}),n}return null}const Ybe={"Content-Type":void 0};function Zbe(e,t,n){if(Fe.isString(e))try{return(t||JSON.parse)(e),Fe.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Ev={transitional:x_,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,a=Fe.isObject(t);if(a&&Fe.isHTMLForm(t)&&(t=new FormData(t)),Fe.isFormData(t))return o&&o?JSON.stringify(w_(t)):t;if(Fe.isArrayBuffer(t)||Fe.isBuffer(t)||Fe.isStream(t)||Fe.isFile(t)||Fe.isBlob(t))return t;if(Fe.isArrayBufferView(t))return t.buffer;if(Fe.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return qbe(t,this.formSerializer).toString();if((l=Fe.isFileList(t))||r.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return $v(l?{"files[]":t}:t,s&&new s,this.formSerializer)}}return a||o?(n.setContentType("application/json",!1),Zbe(t)):t}],transformResponse:[function(t){const n=this.transitional||Ev.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(t&&Fe.isString(t)&&(r&&!this.responseType||o)){const i=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(l){if(i)throw l.name==="SyntaxError"?Vt.from(l,Vt.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Fo.classes.FormData,Blob:Fo.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};Fe.forEach(["delete","get","head"],function(t){Ev.headers[t]={}});Fe.forEach(["post","put","patch"],function(t){Ev.headers[t]=Fe.merge(Ybe)});const Rw=Ev,Jbe=Fe.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Qbe=e=>{const t={};let n,r,o;return e&&e.split(`
- `).forEach(function(i){o=i.indexOf(":"),n=i.substring(0,o).trim().toLowerCase(),r=i.substring(o+1).trim(),!(!n||t[n]&&Jbe[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},t4=Symbol("internals");function nu(e){return e&&String(e).trim().toLowerCase()}function Nf(e){return e===!1||e==null?e:Fe.isArray(e)?e.map(Nf):String(e)}function e1e(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}function t1e(e){return/^[-_a-zA-Z]+$/.test(e.trim())}function fg(e,t,n,r,o){if(Fe.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!Fe.isString(t)){if(Fe.isString(r))return t.indexOf(r)!==-1;if(Fe.isRegExp(r))return r.test(t)}}function n1e(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function r1e(e,t){const n=Fe.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,a,i){return this[r].call(this,t,o,a,i)},configurable:!0})})}class Dv{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function a(l,s,u){const c=nu(s);if(!c)throw new Error("header name must be a non-empty string");const d=Fe.findKey(o,c);(!d||o[d]===void 0||u===!0||u===void 0&&o[d]!==!1)&&(o[d||s]=Nf(l))}const i=(l,s)=>Fe.forEach(l,(u,c)=>a(u,c,s));return Fe.isPlainObject(t)||t instanceof this.constructor?i(t,n):Fe.isString(t)&&(t=t.trim())&&!t1e(t)?i(Qbe(t),n):t!=null&&a(n,t,r),this}get(t,n){if(t=nu(t),t){const r=Fe.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return e1e(o);if(Fe.isFunction(n))return n.call(this,o,r);if(Fe.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=nu(t),t){const r=Fe.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||fg(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function a(i){if(i=nu(i),i){const l=Fe.findKey(r,i);l&&(!n||fg(r,r[l],l,n))&&(delete r[l],o=!0)}}return Fe.isArray(t)?t.forEach(a):a(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const a=n[r];(!t||fg(this,this[a],a,t,!0))&&(delete this[a],o=!0)}return o}normalize(t){const n=this,r={};return Fe.forEach(this,(o,a)=>{const i=Fe.findKey(r,a);if(i){n[i]=Nf(o),delete n[a];return}const l=t?n1e(a):String(a).trim();l!==a&&delete n[a],n[l]=Nf(o),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Fe.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&Fe.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
- `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[t4]=this[t4]={accessors:{}}).accessors,o=this.prototype;function a(i){const l=nu(i);r[l]||(r1e(o,i),r[l]=!0)}return Fe.isArray(t)?t.forEach(a):a(t),this}}Dv.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Fe.freezeMethods(Dv.prototype);Fe.freezeMethods(Dv);const ma=Dv;function pg(e,t){const n=this||Rw,r=t||n,o=ma.from(r.headers);let a=r.data;return Fe.forEach(e,function(l){a=l.call(n,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function S_(e){return!!(e&&e.__CANCEL__)}function Pc(e,t,n){Vt.call(this,e??"canceled",Vt.ERR_CANCELED,t,n),this.name="CanceledError"}Fe.inherits(Pc,Vt,{__CANCEL__:!0});function o1e(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Vt("Request failed with status code "+n.status,[Vt.ERR_BAD_REQUEST,Vt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const a1e=Fo.isStandardBrowserEnv?function(){return{write:function(n,r,o,a,i,l){const s=[];s.push(n+"="+encodeURIComponent(r)),Fe.isNumber(o)&&s.push("expires="+new Date(o).toGMTString()),Fe.isString(a)&&s.push("path="+a),Fe.isString(i)&&s.push("domain="+i),l===!0&&s.push("secure"),document.cookie=s.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function i1e(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function l1e(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function C_(e,t){return e&&!i1e(t)?l1e(e,t):t}const s1e=Fo.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(a){let i=a;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(i){const l=Fe.isString(i)?o(i):i;return l.protocol===r.protocol&&l.host===r.host}}():function(){return function(){return!0}}();function u1e(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function c1e(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,a=0,i;return t=t!==void 0?t:1e3,function(s){const u=Date.now(),c=r[a];i||(i=u),n[o]=s,r[o]=u;let d=a,f=0;for(;d!==o;)f+=n[d++],d=d%e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),u-i<t)return;const p=c&&u-c;return p?Math.round(f*1e3/p):void 0}}function n4(e,t){let n=0;const r=c1e(50,250);return o=>{const a=o.loaded,i=o.lengthComputable?o.total:void 0,l=a-n,s=r(l),u=a<=i;n=a;const c={loaded:a,total:i,progress:i?a/i:void 0,bytes:l,rate:s||void 0,estimated:s&&i&&u?(i-a)/s:void 0,event:o};c[t?"download":"upload"]=!0,e(c)}}const d1e=typeof XMLHttpRequest<"u",f1e=d1e&&function(e){return new Promise(function(n,r){let o=e.data;const a=ma.from(e.headers).normalize(),i=e.responseType;let l;function s(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}Fe.isFormData(o)&&(Fo.isStandardBrowserEnv||Fo.isStandardBrowserWebWorkerEnv)&&a.setContentType(!1);let u=new XMLHttpRequest;if(e.auth){const p=e.auth.username||"",v=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";a.set("Authorization","Basic "+btoa(p+":"+v))}const c=C_(e.baseURL,e.url);u.open(e.method.toUpperCase(),b_(c,e.params,e.paramsSerializer),!0),u.timeout=e.timeout;function d(){if(!u)return;const p=ma.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),m={data:!i||i==="text"||i==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:p,config:e,request:u};o1e(function(g){n(g),s()},function(g){r(g),s()},m),u=null}if("onloadend"in u?u.onloadend=d:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(d)},u.onabort=function(){u&&(r(new Vt("Request aborted",Vt.ECONNABORTED,e,u)),u=null)},u.onerror=function(){r(new Vt("Network Error",Vt.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let v=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const m=e.transitional||x_;e.timeoutErrorMessage&&(v=e.timeoutErrorMessage),r(new Vt(v,m.clarifyTimeoutError?Vt.ETIMEDOUT:Vt.ECONNABORTED,e,u)),u=null},Fo.isStandardBrowserEnv){const p=(e.withCredentials||s1e(c))&&e.xsrfCookieName&&a1e.read(e.xsrfCookieName);p&&a.set(e.xsrfHeaderName,p)}o===void 0&&a.setContentType(null),"setRequestHeader"in u&&Fe.forEach(a.toJSON(),function(v,m){u.setRequestHeader(m,v)}),Fe.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),i&&i!=="json"&&(u.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&u.addEventListener("progress",n4(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",n4(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=p=>{u&&(r(!p||p.type?new Pc(null,e,u):p),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const f=u1e(c);if(f&&Fo.protocols.indexOf(f)===-1){r(new Vt("Unsupported protocol "+f+":",Vt.ERR_BAD_REQUEST,e));return}u.send(o||null)})},Pf={http:Rbe,xhr:f1e};Fe.forEach(Pf,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const p1e={getAdapter:e=>{e=Fe.isArray(e)?e:[e];const{length:t}=e;let n,r;for(let o=0;o<t&&(n=e[o],!(r=Fe.isString(n)?Pf[n.toLowerCase()]:n));o++);if(!r)throw r===!1?new Vt(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(Fe.hasOwnProp(Pf,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`);if(!Fe.isFunction(r))throw new TypeError("adapter is not a function");return r},adapters:Pf};function mg(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Pc(null,e)}function r4(e){return mg(e),e.headers=ma.from(e.headers),e.data=pg.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),p1e.getAdapter(e.adapter||Rw.adapter)(e).then(function(r){return mg(e),r.data=pg.call(e,e.transformResponse,r),r.headers=ma.from(r.headers),r},function(r){return S_(r)||(mg(e),r&&r.response&&(r.response.data=pg.call(e,e.transformResponse,r.response),r.response.headers=ma.from(r.response.headers))),Promise.reject(r)})}const o4=e=>e instanceof ma?e.toJSON():e;function gs(e,t){t=t||{};const n={};function r(u,c,d){return Fe.isPlainObject(u)&&Fe.isPlainObject(c)?Fe.merge.call({caseless:d},u,c):Fe.isPlainObject(c)?Fe.merge({},c):Fe.isArray(c)?c.slice():c}function o(u,c,d){if(Fe.isUndefined(c)){if(!Fe.isUndefined(u))return r(void 0,u,d)}else return r(u,c,d)}function a(u,c){if(!Fe.isUndefined(c))return r(void 0,c)}function i(u,c){if(Fe.isUndefined(c)){if(!Fe.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function l(u,c,d){if(d in t)return r(u,c);if(d in e)return r(void 0,u)}const s={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:l,headers:(u,c)=>o(o4(u),o4(c),!0)};return Fe.forEach(Object.keys(e).concat(Object.keys(t)),function(c){const d=s[c]||o,f=d(e[c],t[c],c);Fe.isUndefined(f)&&d!==l||(n[c]=f)}),n}const $_="1.3.4",zw={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{zw[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const a4={};zw.transitional=function(t,n,r){function o(a,i){return"[Axios v"+$_+"] Transitional option '"+a+"'"+i+(r?". "+r:"")}return(a,i,l)=>{if(t===!1)throw new Vt(o(i," has been removed"+(n?" in "+n:"")),Vt.ERR_DEPRECATED);return n&&!a4[i]&&(a4[i]=!0,console.warn(o(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,i,l):!0}};function m1e(e,t,n){if(typeof e!="object")throw new Vt("options must be an object",Vt.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const a=r[o],i=t[a];if(i){const l=e[a],s=l===void 0||i(l,a,e);if(s!==!0)throw new Vt("option "+a+" must be "+s,Vt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Vt("Unknown option "+a,Vt.ERR_BAD_OPTION)}}const cy={assertOptions:m1e,validators:zw},za=cy.validators;class _p{constructor(t){this.defaults=t,this.interceptors={request:new e4,response:new e4}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=gs(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:a}=n;r!==void 0&&cy.assertOptions(r,{silentJSONParsing:za.transitional(za.boolean),forcedJSONParsing:za.transitional(za.boolean),clarifyTimeoutError:za.transitional(za.boolean)},!1),o!==void 0&&cy.assertOptions(o,{encode:za.function,serialize:za.function},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i;i=a&&Fe.merge(a.common,a[n.method]),i&&Fe.forEach(["delete","get","head","post","put","patch","common"],v=>{delete a[v]}),n.headers=ma.concat(i,a);const l=[];let s=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(s=s&&m.synchronous,l.unshift(m.fulfilled,m.rejected))});const u=[];this.interceptors.response.forEach(function(m){u.push(m.fulfilled,m.rejected)});let c,d=0,f;if(!s){const v=[r4.bind(this),void 0];for(v.unshift.apply(v,l),v.push.apply(v,u),f=v.length,c=Promise.resolve(n);d<f;)c=c.then(v[d++],v[d++]);return c}f=l.length;let p=n;for(d=0;d<f;){const v=l[d++],m=l[d++];try{p=v(p)}catch(h){m.call(this,h);break}}try{c=r4.call(this,p)}catch(v){return Promise.reject(v)}for(d=0,f=u.length;d<f;)c=c.then(u[d++],u[d++]);return c}getUri(t){t=gs(this.defaults,t);const n=C_(t.baseURL,t.url);return b_(n,t.params,t.paramsSerializer)}}Fe.forEach(["delete","get","head","options"],function(t){_p.prototype[t]=function(n,r){return this.request(gs(r||{},{method:t,url:n,data:(r||{}).data}))}});Fe.forEach(["post","put","patch"],function(t){function n(r){return function(a,i,l){return this.request(gs(l||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:a,data:i}))}}_p.prototype[t]=n(),_p.prototype[t+"Form"]=n(!0)});const If=_p;let v1e=class E_{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(a){n=a});const r=this;this.promise.then(o=>{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](o);r._listeners=null}),this.promise.then=o=>{let a;const i=new Promise(l=>{r.subscribe(l),a=l}).then(o);return i.cancel=function(){r.unsubscribe(a)},i},t(function(a,i,l){r.reason||(r.reason=new Pc(a,i,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new E_(function(o){t=o}),cancel:t}}};const h1e=v1e;function g1e(e){return function(n){return e.apply(null,n)}}function y1e(e){return Fe.isObject(e)&&e.isAxiosError===!0}const dy={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(dy).forEach(([e,t])=>{dy[t]=e});const b1e=dy;function D_(e){const t=new If(e),n=i_(If.prototype.request,t);return Fe.extend(n,If.prototype,t,{allOwnKeys:!0}),Fe.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return D_(gs(e,o))},n}const Rn=D_(Rw);Rn.Axios=If;Rn.CanceledError=Pc;Rn.CancelToken=h1e;Rn.isCancel=S_;Rn.VERSION=$_;Rn.toFormData=$v;Rn.AxiosError=Vt;Rn.Cancel=Rn.CanceledError;Rn.all=function(t){return Promise.all(t)};Rn.spread=g1e;Rn.isAxiosError=y1e;Rn.mergeConfig=gs;Rn.AxiosHeaders=ma;Rn.formToJSON=e=>w_(Fe.isHTMLForm(e)?new FormData(e):e);Rn.HttpStatusCode=b1e;Rn.default=Rn;const Av=Rn;var i4={},x1e={get exports(){return i4},set exports(e){i4=e}};/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
- * @license MIT */(function(e,t){(function(n,r){e.exports=r()})(qn,function(){var n={};n.version="0.2.0";var r=n.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};n.configure=function(v){var m,h;for(m in v)h=v[m],h!==void 0&&v.hasOwnProperty(m)&&(r[m]=h);return this},n.status=null,n.set=function(v){var m=n.isStarted();v=o(v,r.minimum,1),n.status=v===1?null:v;var h=n.render(!m),g=h.querySelector(r.barSelector),x=r.speed,y=r.easing;return h.offsetWidth,l(function(w){r.positionUsing===""&&(r.positionUsing=n.getPositioningCSS()),s(g,i(v,x,y)),v===1?(s(h,{transition:"none",opacity:1}),h.offsetWidth,setTimeout(function(){s(h,{transition:"all "+x+"ms linear",opacity:0}),setTimeout(function(){n.remove(),w()},x)},x)):setTimeout(w,x)}),this},n.isStarted=function(){return typeof n.status=="number"},n.start=function(){n.status||n.set(0);var v=function(){setTimeout(function(){n.status&&(n.trickle(),v())},r.trickleSpeed)};return r.trickle&&v(),this},n.done=function(v){return!v&&!n.status?this:n.inc(.3+.5*Math.random()).set(1)},n.inc=function(v){var m=n.status;return m?(typeof v!="number"&&(v=(1-m)*o(Math.random()*m,.1,.95)),m=o(m+v,0,.994),n.set(m)):n.start()},n.trickle=function(){return n.inc(Math.random()*r.trickleRate)},function(){var v=0,m=0;n.promise=function(h){return!h||h.state()==="resolved"?this:(m===0&&n.start(),v++,m++,h.always(function(){m--,m===0?(v=0,n.done()):n.set((v-m)/v)}),this)}}(),n.render=function(v){if(n.isRendered())return document.getElementById("nprogress");c(document.documentElement,"nprogress-busy");var m=document.createElement("div");m.id="nprogress",m.innerHTML=r.template;var h=m.querySelector(r.barSelector),g=v?"-100":a(n.status||0),x=document.querySelector(r.parent),y;return s(h,{transition:"all 0 linear",transform:"translate3d("+g+"%,0,0)"}),r.showSpinner||(y=m.querySelector(r.spinnerSelector),y&&p(y)),x!=document.body&&c(x,"nprogress-custom-parent"),x.appendChild(m),m},n.remove=function(){d(document.documentElement,"nprogress-busy"),d(document.querySelector(r.parent),"nprogress-custom-parent");var v=document.getElementById("nprogress");v&&p(v)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var v=document.body.style,m="WebkitTransform"in v?"Webkit":"MozTransform"in v?"Moz":"msTransform"in v?"ms":"OTransform"in v?"O":"";return m+"Perspective"in v?"translate3d":m+"Transform"in v?"translate":"margin"};function o(v,m,h){return v<m?m:v>h?h:v}function a(v){return(-1+v)*100}function i(v,m,h){var g;return r.positionUsing==="translate3d"?g={transform:"translate3d("+a(v)+"%,0,0)"}:r.positionUsing==="translate"?g={transform:"translate("+a(v)+"%,0)"}:g={"margin-left":a(v)+"%"},g.transition="all "+m+"ms "+h,g}var l=function(){var v=[];function m(){var h=v.shift();h&&h(m)}return function(h){v.push(h),v.length==1&&m()}}(),s=function(){var v=["Webkit","O","Moz","ms"],m={};function h(w){return w.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(b,S){return S.toUpperCase()})}function g(w){var b=document.body.style;if(w in b)return w;for(var S=v.length,$=w.charAt(0).toUpperCase()+w.slice(1),D;S--;)if(D=v[S]+$,D in b)return D;return w}function x(w){return w=h(w),m[w]||(m[w]=g(w))}function y(w,b,S){b=x(b),w.style[b]=S}return function(w,b){var S=arguments,$,D;if(S.length==2)for($ in b)D=b[$],D!==void 0&&b.hasOwnProperty($)&&y(w,$,D);else y(w,S[1],S[2])}}();function u(v,m){var h=typeof v=="string"?v:f(v);return h.indexOf(" "+m+" ")>=0}function c(v,m){var h=f(v),g=h+m;u(h,m)||(v.className=g.substring(1))}function d(v,m){var h=f(v),g;u(v,m)&&(g=h.replace(" "+m+" "," "),v.className=g.substring(1,g.length-1))}function f(v){return(" "+(v.className||"")+" ").replace(/\s+/gi," ")}function p(v){v&&v.parentNode&&v.parentNode.removeChild(v)}return n})})(x1e);var A_={epsilon:1e-12,matrix:"Matrix",number:"number",precision:64,predictable:!1,randomSeed:null};function Pt(e){return typeof e=="number"}function Ot(e){return!e||typeof e!="object"||typeof e.constructor!="function"?!1:e.isBigNumber===!0&&typeof e.constructor.prototype=="object"&&e.constructor.prototype.isBigNumber===!0||typeof e.constructor.isDecimal=="function"&&e.constructor.isDecimal(e)===!0}function vo(e){return e&&typeof e=="object"&&Object.getPrototypeOf(e).isComplex===!0||!1}function ul(e){return e&&typeof e=="object"&&Object.getPrototypeOf(e).isFraction===!0||!1}function uo(e){return e&&e.constructor.prototype.isUnit===!0||!1}function Qn(e){return typeof e=="string"}var Ut=Array.isArray;function mt(e){return e&&e.constructor.prototype.isMatrix===!0||!1}function wo(e){return Array.isArray(e)||mt(e)}function ac(e){return e&&e.isDenseMatrix&&e.constructor.prototype.isMatrix===!0||!1}function Za(e){return e&&e.isSparseMatrix&&e.constructor.prototype.isMatrix===!0||!1}function Ov(e){return e&&e.constructor.prototype.isRange===!0||!1}function Ic(e){return e&&e.constructor.prototype.isIndex===!0||!1}function O_(e){return typeof e=="boolean"}function T_(e){return e&&e.constructor.prototype.isResultSet===!0||!1}function Lw(e){return e&&e.constructor.prototype.isHelp===!0||!1}function M_(e){return typeof e=="function"}function N_(e){return e instanceof Date}function P_(e){return e instanceof RegExp}function Tv(e){return!!(e&&typeof e=="object"&&e.constructor===Object&&!vo(e)&&!ul(e))}function I_(e){return e===null}function __(e){return e===void 0}function ii(e){return e&&e.isAccessorNode===!0&&e.constructor.prototype.isNode===!0||!1}function Ir(e){return e&&e.isArrayNode===!0&&e.constructor.prototype.isNode===!0||!1}function B_(e){return e&&e.isAssignmentNode===!0&&e.constructor.prototype.isNode===!0||!1}function F_(e){return e&&e.isBlockNode===!0&&e.constructor.prototype.isNode===!0||!1}function R_(e){return e&&e.isConditionalNode===!0&&e.constructor.prototype.isNode===!0||!1}function Rt(e){return e&&e.isConstantNode===!0&&e.constructor.prototype.isNode===!0||!1}function fy(e){return Rt(e)||bn(e)&&e.args.length===1&&Rt(e.args[0])&&"-+~".includes(e.op)}function Ls(e){return e&&e.isFunctionAssignmentNode===!0&&e.constructor.prototype.isNode===!0||!1}function Sa(e){return e&&e.isFunctionNode===!0&&e.constructor.prototype.isNode===!0||!1}function cl(e){return e&&e.isIndexNode===!0&&e.constructor.prototype.isNode===!0||!1}function Kt(e){return e&&e.isNode===!0&&e.constructor.prototype.isNode===!0||!1}function _c(e){return e&&e.isObjectNode===!0&&e.constructor.prototype.isNode===!0||!1}function bn(e){return e&&e.isOperatorNode===!0&&e.constructor.prototype.isNode===!0||!1}function Vo(e){return e&&e.isParenthesisNode===!0&&e.constructor.prototype.isNode===!0||!1}function z_(e){return e&&e.isRangeNode===!0&&e.constructor.prototype.isNode===!0||!1}function L_(e){return e&&e.isRelationalNode===!0&&e.constructor.prototype.isNode===!0||!1}function Pn(e){return e&&e.isSymbolNode===!0&&e.constructor.prototype.isNode===!0||!1}function kw(e){return e&&e.constructor.prototype.isChain===!0||!1}function an(e){var t=typeof e;return t==="object"?e===null?"null":Ot(e)?"BigNumber":e.constructor&&e.constructor.name?e.constructor.name:"Object":t}function ct(e){var t=typeof e;if(t==="number"||t==="string"||t==="boolean"||e===null||e===void 0)return e;if(typeof e.clone=="function")return e.clone();if(Array.isArray(e))return e.map(function(n){return ct(n)});if(e instanceof Date)return new Date(e.valueOf());if(Ot(e))return e;if(e instanceof RegExp)throw new TypeError("Cannot clone "+e);return uu(e,ct)}function uu(e,t){var n={};for(var r in e)Ke(e,r)&&(n[r]=t(e[r]));return n}function k_(e,t){for(var n in t)Ke(t,n)&&(e[n]=t[n]);return e}function H_(e,t){if(Array.isArray(t))throw new TypeError("Arrays are not supported by deepExtend");for(var n in t)if(Ke(t,n)&&!(n in Object.prototype)&&!(n in Function.prototype))if(t[n]&&t[n].constructor===Object)e[n]===void 0&&(e[n]={}),e[n]&&e[n].constructor===Object?H_(e[n],t[n]):e[n]=t[n];else{if(Array.isArray(t[n]))throw new TypeError("Arrays are not supported by deepExtend");e[n]=t[n]}return e}function ic(e,t){var n,r,o;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(r=0,o=e.length;r<o;r++)if(!ic(e[r],t[r]))return!1;return!0}else{if(typeof e=="function")return e===t;if(e instanceof Object){if(Array.isArray(t)||!(t instanceof Object))return!1;for(n in e)if(!(n in t)||!ic(e[n],t[n]))return!1;for(n in t)if(!(n in e))return!1;return!0}else return e===t}}function w1e(e){var t={};return j_(e,t),t}function j_(e,t){for(var n in e)if(Ke(e,n)){var r=e[n];typeof r=="object"&&r!==null?j_(r,t):t[n]=r}}function _f(e,t,n){var r=!0,o;Object.defineProperty(e,t,{get:function(){return r&&(o=n(),r=!1),o},set:function(i){o=i,r=!1},configurable:!0,enumerable:!0})}function Ke(e,t){return e&&Object.hasOwnProperty.call(e,t)}function S1e(e){return e&&typeof e.factory=="function"}function C1e(e,t){for(var n={},r=0;r<t.length;r++){var o=t[r],a=e[o];a!==void 0&&(n[o]=a)}return n}function l4(e){return Object.keys(e).map(t=>e[t])}var s4=["Matrix","Array"],u4=["number","BigNumber","Fraction"];function $1e(e,t){function n(r){if(r){var o=uu(e,ct);c4(r,"matrix",s4),c4(r,"number",u4),H_(e,r);var a=uu(e,ct),i=uu(r,ct);return t("config",a,o,i),a}else return uu(e,ct)}return n.MATRIX_OPTIONS=s4,n.NUMBER_OPTIONS=u4,Object.keys(A_).forEach(r=>{Object.defineProperty(n,r,{get:()=>e[r],enumerable:!0,configurable:!0})}),n}function E1e(e,t){return e.indexOf(t)!==-1}function c4(e,t,n){e[t]!==void 0&&!E1e(n,e[t])&&console.warn('Warning: Unknown value "'+e[t]+'" for configuration option "'+t+'". Available options: '+n.map(r=>JSON.stringify(r)).join(", ")+".")}function lo(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=D1e(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(u){throw u},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,i=!1,l;return{s:function(){n=n.call(e)},n:function(){var u=n.next();return a=u.done,u},e:function(u){i=!0,l=u},f:function(){try{!a&&n.return!=null&&n.return()}finally{if(i)throw l}}}}function D1e(e,t){if(e){if(typeof e=="string")return d4(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d4(e,t)}}function d4(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Hl(e){return Hl=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},Hl(e)}function f4(){return!0}function Kr(){return!1}function Al(){}var p4="Argument is not a typed-function.";function V_(){function e(J){return Hl(J)==="object"&&J!==null&&J.constructor===Object}var t=[{name:"number",test:function(ne){return typeof ne=="number"}},{name:"string",test:function(ne){return typeof ne=="string"}},{name:"boolean",test:function(ne){return typeof ne=="boolean"}},{name:"Function",test:function(ne){return typeof ne=="function"}},{name:"Array",test:Array.isArray},{name:"Date",test:function(ne){return ne instanceof Date}},{name:"RegExp",test:function(ne){return ne instanceof RegExp}},{name:"Object",test:e},{name:"null",test:function(ne){return ne===null}},{name:"undefined",test:function(ne){return ne===void 0}}],n={name:"any",test:f4,isAny:!0},r,o,a=0,i={createCount:0};function l(J){var ne=r.get(J);if(ne)return ne;var oe='Unknown type "'+J+'"',ie=J.toLowerCase(),ve,we=lo(o),$e;try{for(we.s();!($e=we.n()).done;)if(ve=$e.value,ve.toLowerCase()===ie){oe+='. Did you mean "'+ve+'" ?';break}}catch(Ae){we.e(Ae)}finally{we.f()}throw new TypeError(oe)}function s(J){for(var ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"any",oe=ne?l(ne).index:o.length,ie=[],ve=0;ve<J.length;++ve){if(!J[ve]||typeof J[ve].name!="string"||typeof J[ve].test!="function")throw new TypeError("Object with properties {name: string, test: function} expected");var we=J[ve].name;if(r.has(we))throw new TypeError('Duplicate type name "'+we+'"');ie.push(we),r.set(we,{name:we,test:J[ve].test,isAny:J[ve].isAny,index:oe+ve,conversionsTo:[]})}var $e=o.slice(oe);o=o.slice(0,oe).concat(ie).concat($e);for(var Ae=oe+ie.length;Ae<o.length;++Ae)r.get(o[Ae]).index=Ae}function u(){r=new Map,o=[],a=0,s([n],!1)}u(),s(t);function c(){var J,ne=lo(o),oe;try{for(ne.s();!(oe=ne.n()).done;)J=oe.value,r.get(J).conversionsTo=[]}catch(ie){ne.e(ie)}finally{ne.f()}a=0}function d(J){var ne=o.filter(function(oe){var ie=r.get(oe);return!ie.isAny&&ie.test(J)});return ne.length?ne:["any"]}function f(J){return J&&typeof J=="function"&&"_typedFunctionData"in J}function p(J,ne,oe){if(!f(J))throw new TypeError(p4);var ie=oe&&oe.exact,ve=Array.isArray(ne)?ne.join(","):ne,we=w(ve),$e=h(we);if(!ie||$e in J.signatures){var Ae=J._typedFunctionData.signatureMap.get($e);if(Ae)return Ae}var xe=we.length,Ee;if(ie){Ee=[];var Te;for(Te in J.signatures)Ee.push(J._typedFunctionData.signatureMap.get(Te))}else Ee=J._typedFunctionData.signatures;for(var Me=0;Me<xe;++Me){var ze=we[Me],Be=[],je=void 0,W=lo(Ee),fe;try{for(W.s();!(fe=W.n()).done;){je=fe.value;var De=D(je.params,Me);if(!(!De||ze.restParam&&!De.restParam)){if(!De.hasAny){var Ie=function(){var Nt=y(De);if(ze.types.some(function(Wt){return!Nt.has(Wt.name)}))return"continue"}();if(Ie==="continue")continue}Be.push(je)}}}catch(Nt){W.e(Nt)}finally{W.f()}if(Ee=Be,Ee.length===0)break}var Ve,Ge=lo(Ee),Ct;try{for(Ge.s();!(Ct=Ge.n()).done;)if(Ve=Ct.value,Ve.params.length<=xe)return Ve}catch(Nt){Ge.e(Nt)}finally{Ge.f()}throw new TypeError("Signature not found (signature: "+(J.name||"unnamed")+"("+h(we,", ")+"))")}function v(J,ne,oe){return p(J,ne,oe).implementation}function m(J,ne){var oe=l(ne);if(oe.test(J))return J;var ie=oe.conversionsTo;if(ie.length===0)throw new Error("There are no conversions to "+ne+" defined.");for(var ve=0;ve<ie.length;ve++){var we=l(ie[ve].from);if(we.test(J))return ie[ve].convert(J)}throw new Error("Cannot convert "+J+" to "+ne)}function h(J){var ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:",";return J.map(function(oe){return oe.name}).join(ne)}function g(J){var ne=J.indexOf("...")===0,oe=ne?J.length>3?J.slice(3):"any":J,ie=oe.split("|").map(function(Ae){return l(Ae.trim())}),ve=!1,we=ne?"...":"",$e=ie.map(function(Ae){return ve=Ae.isAny||ve,we+=Ae.name+"|",{name:Ae.name,typeIndex:Ae.index,test:Ae.test,isAny:Ae.isAny,conversion:null,conversionIndex:-1}});return{types:$e,name:we.slice(0,-1),hasAny:ve,hasConversion:!1,restParam:ne}}function x(J){var ne=J.types.map(function($e){return $e.name}),oe=N(ne),ie=J.hasAny,ve=J.name,we=oe.map(function($e){var Ae=l($e.from);return ie=Ae.isAny||ie,ve+="|"+$e.from,{name:$e.from,typeIndex:Ae.index,test:Ae.test,isAny:Ae.isAny,conversion:$e,conversionIndex:$e.index}});return{types:J.types.concat(we),name:ve,hasAny:ie,hasConversion:we.length>0,restParam:J.restParam}}function y(J){return J.typeSet||(J.typeSet=new Set,J.types.forEach(function(ne){return J.typeSet.add(ne.name)})),J.typeSet}function w(J){var ne=[];if(typeof J!="string")throw new TypeError("Signatures must be strings");var oe=J.trim();if(oe==="")return ne;for(var ie=oe.split(","),ve=0;ve<ie.length;++ve){var we=g(ie[ve].trim());if(we.restParam&&ve!==ie.length-1)throw new SyntaxError('Unexpected rest parameter "'+ie[ve]+'": only allowed for the last parameter');if(we.types.length===0)return null;ne.push(we)}return ne}function b(J){var ne=ee(J);return ne?ne.restParam:!1}function S(J){if(!J||J.types.length===0)return f4;if(J.types.length===1)return l(J.types[0].name).test;if(J.types.length===2){var ne=l(J.types[0].name).test,oe=l(J.types[1].name).test;return function(we){return ne(we)||oe(we)}}else{var ie=J.types.map(function(ve){return l(ve.name).test});return function(we){for(var $e=0;$e<ie.length;$e++)if(ie[$e](we))return!0;return!1}}}function $(J){var ne,oe,ie;if(b(J)){ne=re(J).map(S);var ve=ne.length,we=S(ee(J)),$e=function(xe){for(var Ee=ve;Ee<xe.length;Ee++)if(!we(xe[Ee]))return!1;return!0};return function(xe){for(var Ee=0;Ee<ne.length;Ee++)if(!ne[Ee](xe[Ee]))return!1;return $e(xe)&&xe.length>=ve+1}}else return J.length===0?function(xe){return xe.length===0}:J.length===1?(oe=S(J[0]),function(xe){return oe(xe[0])&&xe.length===1}):J.length===2?(oe=S(J[0]),ie=S(J[1]),function(xe){return oe(xe[0])&&ie(xe[1])&&xe.length===2}):(ne=J.map(S),function(xe){for(var Ee=0;Ee<ne.length;Ee++)if(!ne[Ee](xe[Ee]))return!1;return xe.length===ne.length})}function D(J,ne){return ne<J.length?J[ne]:b(J)?ee(J):null}function O(J,ne){var oe=D(J,ne);return oe?y(oe):new Set}function A(J){return J.conversion===null||J.conversion===void 0}function T(J,ne){var oe=new Set;return J.forEach(function(ie){var ve=O(ie.params,ne),we,$e=lo(ve),Ae;try{for($e.s();!(Ae=$e.n()).done;)we=Ae.value,oe.add(we)}catch(xe){$e.e(xe)}finally{$e.f()}}),oe.has("any")?["any"]:Array.from(oe)}function M(J,ne,oe){var ie,ve,we=J||"unnamed",$e=oe,Ae,xe=function(){var W=[];if($e.forEach(function(De){var Ie=D(De.params,Ae),Ve=S(Ie);(Ae<De.params.length||b(De.params))&&Ve(ne[Ae])&&W.push(De)}),W.length===0){if(ve=T($e,Ae),ve.length>0){var fe=d(ne[Ae]);return ie=new TypeError("Unexpected type of argument in function "+we+" (expected: "+ve.join(" or ")+", actual: "+fe.join(" | ")+", index: "+Ae+")"),ie.data={category:"wrongType",fn:we,index:Ae,actual:fe,expected:ve},{v:ie}}}else $e=W};for(Ae=0;Ae<ne.length;Ae++){var Ee=xe();if(Hl(Ee)==="object")return Ee.v}var Te=$e.map(function(je){return b(je.params)?1/0:je.params.length});if(ne.length<Math.min.apply(null,Te))return ve=T($e,Ae),ie=new TypeError("Too few arguments in function "+we+" (expected: "+ve.join(" or ")+", index: "+ne.length+")"),ie.data={category:"tooFewArgs",fn:we,index:ne.length,expected:ve},ie;var Me=Math.max.apply(null,Te);if(ne.length>Me)return ie=new TypeError("Too many arguments in function "+we+" (expected: "+Me+", actual: "+ne.length+")"),ie.data={category:"tooManyArgs",fn:we,index:ne.length,expectedLength:Me},ie;for(var ze=[],Be=0;Be<ne.length;++Be)ze.push(d(ne[Be]).join("|"));return ie=new TypeError('Arguments of type "'+ze.join(", ")+'" do not match any of the defined signatures of function '+we+"."),ie.data={category:"mismatch",actual:ze},ie}function B(J){for(var ne=o.length+1,oe=0;oe<J.types.length;oe++)A(J.types[oe])&&(ne=Math.min(ne,J.types[oe].typeIndex));return ne}function F(J){for(var ne=a+1,oe=0;oe<J.types.length;oe++)A(J.types[oe])||(ne=Math.min(ne,J.types[oe].conversionIndex));return ne}function P(J,ne){if(J.hasAny){if(!ne.hasAny)return 1}else if(ne.hasAny)return-1;if(J.restParam){if(!ne.restParam)return 1}else if(ne.restParam)return-1;if(J.hasConversion){if(!ne.hasConversion)return 1}else if(ne.hasConversion)return-1;var oe=B(J)-B(ne);if(oe<0)return-1;if(oe>0)return 1;var ie=F(J)-F(ne);return ie<0?-1:ie>0?1:0}function I(J,ne){var oe=J.params,ie=ne.params,ve=ee(oe),we=ee(ie),$e=b(oe),Ae=b(ie);if($e&&ve.hasAny){if(!Ae||!we.hasAny)return 1}else if(Ae&&we.hasAny)return-1;var xe=0,Ee=0,Te,Me=lo(oe),ze;try{for(Me.s();!(ze=Me.n()).done;)Te=ze.value,Te.hasAny&&++xe,Te.hasConversion&&++Ee}catch(Ln){Me.e(Ln)}finally{Me.f()}var Be=0,je=0,W=lo(ie),fe;try{for(W.s();!(fe=W.n()).done;)Te=fe.value,Te.hasAny&&++Be,Te.hasConversion&&++je}catch(Ln){W.e(Ln)}finally{W.f()}if(xe!==Be)return xe-Be;if($e&&ve.hasConversion){if(!Ae||!we.hasConversion)return 1}else if(Ae&&we.hasConversion)return-1;if(Ee!==je)return Ee-je;if($e){if(!Ae)return 1}else if(Ae)return-1;var De=(oe.length-ie.length)*($e?-1:1);if(De!==0)return De;for(var Ie=[],Ve=0,Ge=0;Ge<oe.length;++Ge){var Ct=P(oe[Ge],ie[Ge]);Ie.push(Ct),Ve+=Ct}if(Ve!==0)return Ve;for(var Nt,Wt=0,fn=Ie;Wt<fn.length;Wt++)if(Nt=fn[Wt],Nt!==0)return Nt;return 0}function N(J){if(J.length===0)return[];var ne=J.map(l);J.length>1&&ne.sort(function(xe,Ee){return xe.index-Ee.index});var oe=ne[0].conversionsTo;if(J.length===1)return oe;oe=oe.concat([]);for(var ie=new Set(J),ve=1;ve<ne.length;++ve){var we=void 0,$e=lo(ne[ve].conversionsTo),Ae;try{for($e.s();!(Ae=$e.n()).done;)we=Ae.value,ie.has(we.from)||(oe.push(we),ie.add(we.from))}catch(xe){$e.e(xe)}finally{$e.f()}}return oe}function R(J,ne){var oe=ne;if(J.some(function(Ae){return Ae.hasConversion})){var ie=b(J),ve=J.map(_);oe=function(){for(var xe=[],Ee=ie?arguments.length-1:arguments.length,Te=0;Te<Ee;Te++)xe[Te]=ve[Te](arguments[Te]);return ie&&(xe[Ee]=arguments[Ee].map(ve[Ee])),ne.apply(this,xe)}}var we=oe;if(b(J)){var $e=J.length-1;we=function(){return oe.apply(this,G(arguments,0,$e).concat([G(arguments,$e)]))}}return we}function _(J){var ne,oe,ie,ve,we=[],$e=[];switch(J.types.forEach(function(Ae){Ae.conversion&&(we.push(l(Ae.conversion.from).test),$e.push(Ae.conversion.convert))}),$e.length){case 0:return function(xe){return xe};case 1:return ne=we[0],ie=$e[0],function(xe){return ne(xe)?ie(xe):xe};case 2:return ne=we[0],oe=we[1],ie=$e[0],ve=$e[1],function(xe){return ne(xe)?ie(xe):oe(xe)?ve(xe):xe};default:return function(xe){for(var Ee=0;Ee<$e.length;Ee++)if(we[Ee](xe))return $e[Ee](xe);return xe}}}function L(J){function ne(oe,ie,ve){if(ie<oe.length){var we=oe[ie],$e=[];if(we.restParam){var Ae=we.types.filter(A);Ae.length<we.types.length&&$e.push({types:Ae,name:"..."+Ae.map(function(xe){return xe.name}).join("|"),hasAny:Ae.some(function(xe){return xe.isAny}),hasConversion:!1,restParam:!0}),$e.push(we)}else $e=we.types.map(function(xe){return{types:[xe],name:xe.name,hasAny:xe.isAny,hasConversion:xe.conversion,restParam:!1}});return ue($e,function(xe){return ne(oe,ie+1,ve.concat([xe]))})}else return[ve]}return ne(J,0,[])}function k(J,ne){for(var oe=Math.max(J.length,ne.length),ie=0;ie<oe;ie++){var ve=O(J,ie),we=O(ne,ie),$e=!1,Ae=void 0,xe=lo(we),Ee;try{for(xe.s();!(Ee=xe.n()).done;)if(Ae=Ee.value,ve.has(Ae)){$e=!0;break}}catch(je){xe.e(je)}finally{xe.f()}if(!$e)return!1}var Te=J.length,Me=ne.length,ze=b(J),Be=b(ne);return ze?Be?Te===Me:Me>=Te:Be?Te>=Me:Te===Me}function H(J){return J.map(function(ne){return de(ne)?Q(ne.referToSelf.callback):te(ne)?Se(ne.referTo.references,ne.referTo.callback):ne})}function V(J,ne,oe){var ie=[],ve,we=lo(J),$e;try{for(we.s();!($e=we.n()).done;){ve=$e.value;var Ae=oe[ve];if(typeof Ae!="number")throw new TypeError('No definition for referenced signature "'+ve+'"');if(Ae=ne[Ae],typeof Ae!="function")return!1;ie.push(Ae)}}catch(xe){we.e(xe)}finally{we.f()}return ie}function U(J,ne,oe){for(var ie=H(J),ve=new Array(ie.length).fill(!1),we=!0;we;){we=!1;for(var $e=!0,Ae=0;Ae<ie.length;++Ae)if(!ve[Ae]){var xe=ie[Ae];if(de(xe))ie[Ae]=xe.referToSelf.callback(oe),ie[Ae].referToSelf=xe.referToSelf,ve[Ae]=!0,$e=!1;else if(te(xe)){var Ee=V(xe.referTo.references,ie,ne);Ee?(ie[Ae]=xe.referTo.callback.apply(this,Ee),ie[Ae].referTo=xe.referTo,ve[Ae]=!0,$e=!1):we=!0}}if($e&&we)throw new SyntaxError("Circular reference detected in resolving typed.referTo")}return ie}function q(J){var ne=/\bthis(\(|\.signatures\b)/;Object.keys(J).forEach(function(oe){var ie=J[oe];if(ne.test(ie.toString()))throw new SyntaxError("Using `this` to self-reference a function is deprecated since typed-function@3. Use typed.referTo and typed.referToSelf instead.")})}function K(J,ne){if(i.createCount++,Object.keys(ne).length===0)throw new SyntaxError("No signatures provided");i.warnAgainstDeprecatedThis&&q(ne);var oe=[],ie=[],ve={},we=[],$e,Ae=function(){if(!Object.prototype.hasOwnProperty.call(ne,$e))return"continue";var Mn=w($e);if(!Mn)return"continue";oe.forEach(function(Yo){if(k(Yo,Mn))throw new TypeError('Conflicting signatures "'+h(Yo)+'" and "'+h(Mn)+'".')}),oe.push(Mn);var Ia=ie.length;ie.push(ne[$e]);var zc=Mn.map(x),vl=void 0,hl=lo(L(zc)),Lc;try{for(hl.s();!(Lc=hl.n()).done;){vl=Lc.value;var qs=h(vl);we.push({params:vl,name:qs,fn:Ia}),vl.every(function(Yo){return!Yo.hasConversion})&&(ve[qs]=Ia)}}catch(Yo){hl.e(Yo)}finally{hl.f()}};for($e in ne)var xe=Ae();we.sort(I);var Ee=U(ie,ve,hi),Te;for(Te in ve)Object.prototype.hasOwnProperty.call(ve,Te)&&(ve[Te]=Ee[ve[Te]]);for(var Me=[],ze=new Map,Be=0,je=we;Be<je.length;Be++)Te=je[Be],ze.has(Te.name)||(Te.fn=Ee[Te.fn],Me.push(Te),ze.set(Te.name,Te));for(var W=Me[0]&&Me[0].params.length<=2&&!b(Me[0].params),fe=Me[1]&&Me[1].params.length<=2&&!b(Me[1].params),De=Me[2]&&Me[2].params.length<=2&&!b(Me[2].params),Ie=Me[3]&&Me[3].params.length<=2&&!b(Me[3].params),Ve=Me[4]&&Me[4].params.length<=2&&!b(Me[4].params),Ge=Me[5]&&Me[5].params.length<=2&&!b(Me[5].params),Ct=W&&fe&&De&&Ie&&Ve&&Ge,Nt=0;Nt<Me.length;++Nt)Me[Nt].test=$(Me[Nt].params);for(var Wt=W?S(Me[0].params[0]):Kr,fn=fe?S(Me[1].params[0]):Kr,Ln=De?S(Me[2].params[0]):Kr,Er=Ie?S(Me[3].params[0]):Kr,Oo=Ve?S(Me[4].params[0]):Kr,Xn=Ge?S(Me[5].params[0]):Kr,Xo=W?S(Me[0].params[1]):Kr,Le=fe?S(Me[1].params[1]):Kr,et=De?S(Me[2].params[1]):Kr,Ze=Ie?S(Me[3].params[1]):Kr,Bt=Ve?S(Me[4].params[1]):Kr,pn=Ge?S(Me[5].params[1]):Kr,ln=0;ln<Me.length;++ln)Me[ln].implementation=R(Me[ln].params,Me[ln].fn);var rr=W?Me[0].implementation:Al,Tn=fe?Me[1].implementation:Al,ao=De?Me[2].implementation:Al,mr=Ie?Me[3].implementation:Al,Dr=Ve?Me[4].implementation:Al,Gt=Ge?Me[5].implementation:Al,or=W?Me[0].params.length:-1,$n=fe?Me[1].params.length:-1,To=De?Me[2].params.length:-1,Pa=Ie?Me[3].params.length:-1,Ws=Ve?Me[4].params.length:-1,Us=Ge?Me[5].params.length:-1,io=Ct?6:0,Ks=Me.length,jv=Me.map(function(Yn){return Yn.test}),Vv=Me.map(function(Yn){return Yn.implementation}),Wv=function(){for(var Mn=io;Mn<Ks;Mn++)if(jv[Mn](arguments))return Vv[Mn].apply(this,arguments);return i.onMismatch(J,arguments,Me)};function hi(Yn,Mn){return arguments.length===or&&Wt(Yn)&&Xo(Mn)?rr.apply(this,arguments):arguments.length===$n&&fn(Yn)&&Le(Mn)?Tn.apply(this,arguments):arguments.length===To&&Ln(Yn)&&et(Mn)?ao.apply(this,arguments):arguments.length===Pa&&Er(Yn)&&Ze(Mn)?mr.apply(this,arguments):arguments.length===Ws&&Oo(Yn)&&Bt(Mn)?Dr.apply(this,arguments):arguments.length===Us&&Xn(Yn)&&pn(Mn)?Gt.apply(this,arguments):Wv.apply(this,arguments)}try{Object.defineProperty(hi,"name",{value:J})}catch{}return hi.signatures=ve,hi._typedFunctionData={signatures:Me,signatureMap:ze},hi}function X(J,ne,oe){throw M(J,ne,oe)}function re(J){return G(J,0,J.length-1)}function ee(J){return J[J.length-1]}function G(J,ne,oe){return Array.prototype.slice.call(J,ne,oe)}function le(J,ne){for(var oe=0;oe<J.length;oe++)if(ne(J[oe]))return J[oe]}function ue(J,ne){return Array.prototype.concat.apply([],J.map(ne))}function me(){var J=re(arguments).map(function(oe){return h(w(oe))}),ne=ee(arguments);if(typeof ne!="function")throw new TypeError("Callback function expected as last argument");return Se(J,ne)}function Se(J,ne){return{referTo:{references:J,callback:ne}}}function Q(J){if(typeof J!="function")throw new TypeError("Callback function expected as first argument");return{referToSelf:{callback:J}}}function te(J){return J&&Hl(J.referTo)==="object"&&Array.isArray(J.referTo.references)&&typeof J.referTo.callback=="function"}function de(J){return J&&Hl(J.referToSelf)==="object"&&typeof J.referToSelf.callback=="function"}function Y(J,ne){if(!J)return ne;if(ne&&ne!==J){var oe=new Error("Function names do not match (expected: "+J+", actual: "+ne+")");throw oe.data={actual:ne,expected:J},oe}return J}function ae(J){var ne;for(var oe in J)Object.prototype.hasOwnProperty.call(J,oe)&&(f(J[oe])||typeof J[oe].signature=="string")&&(ne=Y(ne,J[oe].name));return ne}function ce(J,ne){var oe;for(oe in ne)if(Object.prototype.hasOwnProperty.call(ne,oe)){if(oe in J&&ne[oe]!==J[oe]){var ie=new Error('Signature "'+oe+'" is defined twice');throw ie.data={signature:oe,sourceFunction:ne[oe],destFunction:J[oe]},ie}J[oe]=ne[oe]}}var Ce=i;i=function(ne){for(var oe=typeof ne=="string",ie=oe?1:0,ve=oe?ne:"",we={},$e=ie;$e<arguments.length;++$e){var Ae=arguments[$e],xe={},Ee=void 0;if(typeof Ae=="function"?(Ee=Ae.name,typeof Ae.signature=="string"?xe[Ae.signature]=Ae:f(Ae)&&(xe=Ae.signatures)):e(Ae)&&(xe=Ae,oe||(Ee=ae(Ae))),Object.keys(xe).length===0){var Te=new TypeError("Argument to 'typed' at index "+$e+" is not a (typed) function, nor an object with signatures as keys and functions as values.");throw Te.data={index:$e,argument:Ae},Te}oe||(ve=Y(ve,Ee)),ce(we,xe)}return K(ve||"",we)},i.create=V_,i.createCount=Ce.createCount,i.onMismatch=X,i.throwMismatchError=X,i.createError=M,i.clear=u,i.clearConversions=c,i.addTypes=s,i._findType=l,i.referTo=me,i.referToSelf=Q,i.convert=m,i.findSignature=p,i.find=v,i.isTypedFunction=f,i.warnAgainstDeprecatedThis=!0,i.addType=function(J,ne){var oe="any";ne!==!1&&r.has("Object")&&(oe="Object"),i.addTypes([J],oe)};function ye(J){if(!J||typeof J.from!="string"||typeof J.to!="string"||typeof J.convert!="function")throw new TypeError("Object with properties {from: string, to: string, convert: function} expected");if(J.to===J.from)throw new SyntaxError('Illegal to define conversion from "'+J.from+'" to itself.')}return i.addConversion=function(J){ye(J);var ne=l(J.to);if(ne.conversionsTo.every(function(oe){return oe.from!==J.from}))ne.conversionsTo.push({from:J.from,convert:J.convert,index:a++});else throw new Error('There is already a conversion from "'+J.from+'" to "'+ne.name+'"')},i.addConversions=function(J){J.forEach(i.addConversion)},i.removeConversion=function(J){ye(J);var ne=l(J.to),oe=le(ne.conversionsTo,function(ve){return ve.from===J.from});if(!oe)throw new Error("Attempt to remove nonexistent conversion from "+J.from+" to "+J.to);if(oe.convert!==J.convert)throw new Error("Conversion to remove does not match existing conversion");var ie=ne.conversionsTo.indexOf(oe);ne.conversionsTo.splice(ie,1)},i.resolve=function(J,ne){if(!f(J))throw new TypeError(p4);for(var oe=J._typedFunctionData.signatures,ie=0;ie<oe.length;++ie)if(oe[ie].test(ne))return oe[ie];return null},i}const py=V_();function ot(e){return typeof e=="boolean"?!0:isFinite(e)?e===Math.round(e):!1}var Ja=Math.sign||function(e){return e>0?1:e<0?-1:0},A1e=Math.log2||function(t){return Math.log(t)/Math.LN2},O1e=Math.log10||function(t){return Math.log(t)/Math.LN10},T1e=Math.log1p||function(e){return Math.log(e+1)},M1e=Math.cbrt||function(t){if(t===0)return t;var n=t<0,r;return n&&(t=-t),isFinite(t)?(r=Math.exp(Math.log(t)/3),r=(t/(r*r)+2*r)/3):r=t,n?-r:r},N1e=Math.expm1||function(t){return t>=2e-4||t<=-2e-4?Math.exp(t)-1:t+t*t/2+t*t*t/6};function vg(e,t,n){var r={2:"0b",8:"0o",16:"0x"},o=r[t],a="";if(n){if(n<1)throw new Error("size must be in greater than 0");if(!ot(n))throw new Error("size must be an integer");if(e>2**(n-1)-1||e<-(2**(n-1)))throw new Error("Value must be in range [-2^".concat(n-1,", 2^").concat(n-1,"-1]"));if(!ot(e))throw new Error("Value must be an integer");e<0&&(e=e+2**n),a="i".concat(n)}var i="";return e<0&&(e=-e,i="-"),"".concat(i).concat(o).concat(e.toString(t)).concat(a)}function ji(e,t){if(typeof t=="function")return t(e);if(e===1/0)return"Infinity";if(e===-1/0)return"-Infinity";if(isNaN(e))return"NaN";var n="auto",r,o;if(t&&(t.notation&&(n=t.notation),Pt(t)?r=t:Pt(t.precision)&&(r=t.precision),t.wordSize&&(o=t.wordSize,typeof o!="number")))throw new Error('Option "wordSize" must be a number');switch(n){case"fixed":return W_(e,r);case"exponential":return U_(e,r);case"engineering":return P1e(e,r);case"bin":return vg(e,2,o);case"oct":return vg(e,8,o);case"hex":return vg(e,16,o);case"auto":return I1e(e,r,t&&t).replace(/((\.\d*?)(0+))($|e)/,function(){var a=arguments[2],i=arguments[4];return a!=="."?a+i:i});default:throw new Error('Unknown notation "'+n+'". Choose "auto", "exponential", "fixed", "bin", "oct", or "hex.')}}function Mv(e){var t=String(e).toLowerCase().match(/^(-?)(\d+\.?\d*)(e([+-]?\d+))?$/);if(!t)throw new SyntaxError("Invalid number "+e);var n=t[1],r=t[2],o=parseFloat(t[4]||"0"),a=r.indexOf(".");o+=a!==-1?a-1:r.length-1;var i=r.replace(".","").replace(/^0*/,function(l){return o-=l.length,""}).replace(/0*$/,"").split("").map(function(l){return parseInt(l)});return i.length===0&&(i.push(0),o++),{sign:n,coefficients:i,exponent:o}}function P1e(e,t){if(isNaN(e)||!isFinite(e))return String(e);var n=Mv(e),r=Nv(n,t),o=r.exponent,a=r.coefficients,i=o%3===0?o:o<0?o-3-o%3:o-o%3;if(Pt(t))for(;t>a.length||o-i+1>a.length;)a.push(0);else for(var l=Math.abs(o-i)-(a.length-1),s=0;s<l;s++)a.push(0);for(var u=Math.abs(o-i),c=1;u>0;)c++,u--;var d=a.slice(c).join(""),f=Pt(t)&&d.length||d.match(/[1-9]/)?"."+d:"",p=a.slice(0,c).join("")+f+"e"+(o>=0?"+":"")+i.toString();return r.sign+p}function W_(e,t){if(isNaN(e)||!isFinite(e))return String(e);var n=Mv(e),r=typeof t=="number"?Nv(n,n.exponent+1+t):n,o=r.coefficients,a=r.exponent+1,i=a+(t||0);return o.length<i&&(o=o.concat(ts(i-o.length))),a<0&&(o=ts(-a+1).concat(o),a=1),a<o.length&&o.splice(a,0,a===0?"0.":"."),r.sign+o.join("")}function U_(e,t){if(isNaN(e)||!isFinite(e))return String(e);var n=Mv(e),r=t?Nv(n,t):n,o=r.coefficients,a=r.exponent;o.length<t&&(o=o.concat(ts(t-o.length)));var i=o.shift();return r.sign+i+(o.length>0?"."+o.join(""):"")+"e"+(a>=0?"+":"")+a}function I1e(e,t,n){if(isNaN(e)||!isFinite(e))return String(e);var r=n&&n.lowerExp!==void 0?n.lowerExp:-3,o=n&&n.upperExp!==void 0?n.upperExp:5,a=Mv(e),i=t?Nv(a,t):a;if(i.exponent<r||i.exponent>=o)return U_(e,t);var l=i.coefficients,s=i.exponent;l.length<t&&(l=l.concat(ts(t-l.length))),l=l.concat(ts(s-l.length+1+(l.length<t?t-l.length:0))),l=ts(-s).concat(l);var u=s>0?s:0;return u<l.length-1&&l.splice(u+1,0,"."),i.sign+l.join("")}function Nv(e,t){for(var n={sign:e.sign,coefficients:e.coefficients,exponent:e.exponent},r=n.coefficients;t<=0;)r.unshift(0),n.exponent++,t++;if(r.length>t){var o=r.splice(t,r.length-t);if(o[0]>=5){var a=t-1;for(r[a]++;r[a]===10;)r.pop(),a===0&&(r.unshift(0),n.exponent++,a++),a--,r[a]++}}return n}function ts(e){for(var t=[],n=0;n<e;n++)t.push(0);return t}function _1e(e){return e.toExponential().replace(/e.*$/,"").replace(/^0\.?0*|\./,"").length}var B1e=Number.EPSILON||2220446049250313e-31;function kr(e,t,n){if(n==null)return e===t;if(e===t)return!0;if(isNaN(e)||isNaN(t))return!1;if(isFinite(e)&&isFinite(t)){var r=Math.abs(e-t);return r<B1e?!0:r<=Math.max(Math.abs(e),Math.abs(t))*n}return!1}var F1e=Math.acosh||function(e){return Math.log(Math.sqrt(e*e-1)+e)},R1e=Math.asinh||function(e){return Math.log(Math.sqrt(e*e+1)+e)},z1e=Math.atanh||function(e){return Math.log((1+e)/(1-e))/2},L1e=Math.cosh||function(e){return(Math.exp(e)+Math.exp(-e))/2},k1e=Math.sinh||function(e){return(Math.exp(e)-Math.exp(-e))/2},H1e=Math.tanh||function(e){var t=Math.exp(2*e);return(t-1)/(t+1)};function j1e(e,t){var n=e>0?!0:e<0?!1:1/e===1/0,r=t>0?!0:t<0?!1:1/t===1/0;return n^r?-e:e}function hg(e,t,n){var r=e.constructor,o=new r(2),a="";if(n){if(n<1)throw new Error("size must be in greater than 0");if(!ot(n))throw new Error("size must be an integer");if(e.greaterThan(o.pow(n-1).sub(1))||e.lessThan(o.pow(n-1).mul(-1)))throw new Error("Value must be in range [-2^".concat(n-1,", 2^").concat(n-1,"-1]"));if(!e.isInteger())throw new Error("Value must be an integer");e.lessThan(0)&&(e=e.add(o.pow(n))),a="i".concat(n)}switch(t){case 2:return"".concat(e.toBinary()).concat(a);case 8:return"".concat(e.toOctal()).concat(a);case 16:return"".concat(e.toHexadecimal()).concat(a);default:throw new Error("Base ".concat(t," not supported "))}}function V1e(e,t){if(typeof t=="function")return t(e);if(!e.isFinite())return e.isNaN()?"NaN":e.gt(0)?"Infinity":"-Infinity";var n="auto",r,o;if(t!==void 0&&(t.notation&&(n=t.notation),typeof t=="number"?r=t:t.precision&&(r=t.precision),t.wordSize&&(o=t.wordSize,typeof o!="number")))throw new Error('Option "wordSize" must be a number');switch(n){case"fixed":return U1e(e,r);case"exponential":return m4(e,r);case"engineering":return W1e(e,r);case"bin":return hg(e,2,o);case"oct":return hg(e,8,o);case"hex":return hg(e,16,o);case"auto":{var a=t&&t.lowerExp!==void 0?t.lowerExp:-3,i=t&&t.upperExp!==void 0?t.upperExp:5;if(e.isZero())return"0";var l,s=e.toSignificantDigits(r),u=s.e;return u>=a&&u<i?l=s.toFixed():l=m4(e,r),l.replace(/((\.\d*?)(0+))($|e)/,function(){var c=arguments[2],d=arguments[4];return c!=="."?c+d:d})}default:throw new Error('Unknown notation "'+n+'". Choose "auto", "exponential", "fixed", "bin", "oct", or "hex.')}}function W1e(e,t){var n=e.e,r=n%3===0?n:n<0?n-3-n%3:n-n%3,o=e.mul(Math.pow(10,-r)),a=o.toPrecision(t);return a.indexOf("e")!==-1&&(a=o.toString()),a+"e"+(n>=0?"+":"")+r.toString()}function m4(e,t){return t!==void 0?e.toExponential(t-1):e.toExponential()}function U1e(e,t){return e.toFixed(t)}function K1e(e,t){var n=e.length-t.length,r=e.length;return e.substring(n,r)===t}function Et(e,t){var n=q1e(e,t);return t&&typeof t=="object"&&"truncate"in t&&n.length>t.truncate?n.substring(0,t.truncate-3)+"...":n}function q1e(e,t){if(typeof e=="number")return ji(e,t);if(Ot(e))return V1e(e,t);if(G1e(e))return!t||t.fraction!=="decimal"?e.s*e.n+"/"+e.d:e.toString();if(Array.isArray(e))return K_(e,t);if(Qn(e))return'"'+e+'"';if(typeof e=="function")return e.syntax?String(e.syntax):"function";if(e&&typeof e=="object"){if(typeof e.format=="function")return e.format(t);if(e&&e.toString(t)!=={}.toString())return e.toString(t);var n=Object.keys(e).map(r=>'"'+r+'": '+Et(e[r],t));return"{"+n.join(", ")+"}"}return String(e)}function Sd(e){for(var t=String(e),n="",r=0;r<t.length;){var o=t.charAt(r);o==="\\"?(n+=o,r++,o=t.charAt(r),(o===""||'"\\/bfnrtu'.indexOf(o)===-1)&&(n+="\\"),n+=o):o==='"'?n+='\\"':n+=o,r++}return'"'+n+'"'}function Gr(e){var t=String(e);return t=t.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">"),t}function K_(e,t){if(Array.isArray(e)){for(var n="[",r=e.length,o=0;o<r;o++)o!==0&&(n+=", "),n+=K_(e[o],t);return n+="]",n}else return Et(e,t)}function G1e(e){return e&&typeof e=="object"&&typeof e.s=="number"&&typeof e.n=="number"&&typeof e.d=="number"||!1}function my(e,t){if(!Qn(e))throw new TypeError("Unexpected type of argument in function compareText (expected: string or Array or Matrix, actual: "+an(e)+", index: 0)");if(!Qn(t))throw new TypeError("Unexpected type of argument in function compareText (expected: string or Array or Matrix, actual: "+an(t)+", index: 1)");return e===t?0:e>t?1:-1}function Dt(e,t,n){if(!(this instanceof Dt))throw new SyntaxError("Constructor must be called with the new operator");this.actual=e,this.expected=t,this.relation=n,this.message="Dimension mismatch ("+(Array.isArray(e)?"["+e.join(", ")+"]":e)+" "+(this.relation||"!=")+" "+(Array.isArray(t)?"["+t.join(", ")+"]":t)+")",this.stack=new Error().stack}Dt.prototype=new RangeError;Dt.prototype.constructor=RangeError;Dt.prototype.name="DimensionError";Dt.prototype.isDimensionError=!0;function oo(e,t,n){if(!(this instanceof oo))throw new SyntaxError("Constructor must be called with the new operator");this.index=e,arguments.length<3?(this.min=0,this.max=t):(this.min=t,this.max=n),this.min!==void 0&&this.index<this.min?this.message="Index out of range ("+this.index+" < "+this.min+")":this.max!==void 0&&this.index>=this.max?this.message="Index out of range ("+this.index+" > "+(this.max-1)+")":this.message="Index out of range ("+this.index+")",this.stack=new Error().stack}oo.prototype=new RangeError;oo.prototype.constructor=RangeError;oo.prototype.name="IndexError";oo.prototype.isIndexError=!0;function Mt(e){for(var t=[];Array.isArray(e);)t.push(e.length),e=e[0];return t}function q_(e,t,n){var r,o=e.length;if(o!==t[n])throw new Dt(o,t[n]);if(n<t.length-1){var a=n+1;for(r=0;r<o;r++){var i=e[r];if(!Array.isArray(i))throw new Dt(t.length-1,t.length,"<");q_(e[r],t,a)}}else for(r=0;r<o;r++)if(Array.isArray(e[r]))throw new Dt(t.length+1,t.length,">")}function v4(e,t){var n=t.length===0;if(n){if(Array.isArray(e))throw new Dt(e.length,0)}else q_(e,t,0)}function Xt(e,t){if(!Pt(e)||!ot(e))throw new TypeError("Index must be an integer (value: "+e+")");if(e<0||typeof t=="number"&&e>=t)throw new oo(e,t)}function ys(e,t,n){if(!Array.isArray(e)||!Array.isArray(t))throw new TypeError("Array expected");if(t.length===0)throw new Error("Resizing to scalar is not supported");t.forEach(function(o){if(!Pt(o)||!ot(o)||o<0)throw new TypeError("Invalid size, must contain positive integers (size: "+Et(t)+")")});var r=n!==void 0?n:0;return vy(e,t,0,r),e}function vy(e,t,n,r){var o,a,i=e.length,l=t[n],s=Math.min(i,l);if(e.length=l,n<t.length-1){var u=n+1;for(o=0;o<s;o++)a=e[o],Array.isArray(a)||(a=[a],e[o]=a),vy(a,t,u,r);for(o=s;o<l;o++)a=[],e[o]=a,vy(a,t,u,r)}else{for(o=0;o<s;o++)for(;Array.isArray(e[o]);)e[o]=e[o][0];for(o=s;o<l;o++)e[o]=r}}function G_(e,t){var n=Ht(e),r=n.length;if(!Array.isArray(e)||!Array.isArray(t))throw new TypeError("Array expected");if(t.length===0)throw new Dt(0,r,"!=");t=Hw(t,r);var o=X_(t);if(r!==o)throw new Dt(o,r,"!=");try{return X1e(n,t)}catch(a){throw a instanceof Dt?new Dt(o,r,"!="):a}}function Hw(e,t){var n=X_(e),r=e.slice(),o=-1,a=e.indexOf(o),i=e.indexOf(o,a+1)>=0;if(i)throw new Error("More than one wildcard in sizes");var l=a>=0,s=t%n===0;if(l)if(s)r[a]=-t/n;else throw new Error("Could not replace wildcard, since "+t+" is no multiple of "+-n);return r}function X_(e){return e.reduce((t,n)=>t*n,1)}function X1e(e,t){for(var n=e,r,o=t.length-1;o>0;o--){var a=t[o];r=[];for(var i=n.length/a,l=0;l<i;l++)r.push(n.slice(l*a,(l+1)*a));n=r}return n}function Bp(e,t){for(var n=t||Mt(e);Array.isArray(e)&&e.length===1;)e=e[0],n.shift();for(var r=n.length;n[r-1]===1;)r--;return r<n.length&&(e=Y_(e,r,0),n.length=r),e}function Y_(e,t,n){var r,o;if(n<t){var a=n+1;for(r=0,o=e.length;r<o;r++)e[r]=Y_(e[r],t,a)}else for(;Array.isArray(e);)e=e[0];return e}function Z_(e,t,n,r){var o=r||Mt(e);if(n)for(var a=0;a<n;a++)e=[e],o.unshift(1);for(e=J_(e,t,0);o.length<t;)o.push(1);return e}function J_(e,t,n){var r,o;if(Array.isArray(e)){var a=n+1;for(r=0,o=e.length;r<o;r++)e[r]=J_(e[r],t,a)}else for(var i=n;i<t;i++)e=[e];return e}function Ht(e){if(!Array.isArray(e))return e;var t=[];return e.forEach(function n(r){Array.isArray(r)?r.forEach(n):t.push(r)}),t}function va(e,t){return Array.prototype.map.call(e,t)}function Pv(e,t){Array.prototype.forEach.call(e,t)}function Q_(e,t){if(Mt(e).length!==1)throw new Error("Only one dimensional matrices supported");return Array.prototype.filter.call(e,t)}function Fp(e,t){if(Mt(e).length!==1)throw new Error("Only one dimensional matrices supported");return Array.prototype.filter.call(e,n=>t.test(n))}function h4(e,t){return Array.prototype.join.call(e,t)}function bs(e){if(!Array.isArray(e))throw new TypeError("Array input expected");if(e.length===0)return e;var t=[],n=0;t[0]={value:e[0],identifier:0};for(var r=1;r<e.length;r++)e[r]===e[r-1]?n++:n=0,t.push({value:e[r],identifier:n});return t}function Rp(e){if(!Array.isArray(e))throw new TypeError("Array input expected");if(e.length===0)return e;for(var t=[],n=0;n<e.length;n++)t.push(e[n].value);return t}function lc(e,t){for(var n,r=0,o=0;o<e.length;o++){var a=e[o],i=Array.isArray(a);if(o===0&&i&&(r=a.length),i&&a.length!==r)return;var l=i?lc(a,t):t(a);if(n===void 0)n=l;else if(n!==l)return"mixed"}return n}function g4(e,t){return e.indexOf(t)!==-1}function se(e,t,n,r){function o(a){var i=C1e(a,t.map(e7));return Y1e(e,t,a),n(i)}return o.isFactory=!0,o.fn=e,o.dependencies=t.slice().sort(),r&&(o.meta=r),o}function Nu(e){return typeof e=="function"&&typeof e.fn=="string"&&Array.isArray(e.dependencies)}function Y1e(e,t,n){var r=t.filter(a=>!Z1e(a)).every(a=>n[a]!==void 0);if(!r){var o=t.filter(a=>n[a]===void 0);throw new Error('Cannot create function "'.concat(e,'", ')+"some dependencies are missing: ".concat(o.map(a=>'"'.concat(a,'"')).join(", "),"."))}}function Z1e(e){return e&&e[0]==="?"}function e7(e){return e&&e[0]==="?"?e.slice(1):e}function no(e,t){if(t7(e)&&jw(e,t))return e[t];throw typeof e[t]=="function"&&Vw(e,t)?new Error('Cannot access method "'+t+'" as a property'):new Error('No access to property "'+t+'"')}function xs(e,t,n){if(t7(e)&&jw(e,t))return e[t]=n,n;throw new Error('No access to property "'+t+'"')}function J1e(e,t){return t in e}function jw(e,t){return!e||typeof e!="object"?!1:Ke(exe,t)?!0:!(t in Object.prototype||t in Function.prototype)}function Q1e(e,t){if(!Vw(e,t))throw new Error('No access to method "'+t+'"')}function Vw(e,t){return e==null||typeof e[t]!="function"||Ke(e,t)&&Object.getPrototypeOf&&t in Object.getPrototypeOf(e)?!1:Ke(txe,t)?!0:!(t in Object.prototype||t in Function.prototype)}function t7(e){return typeof e=="object"&&e&&e.constructor===Object}var exe={length:!0,name:!0},txe={toString:!0,valueOf:!0,toLocaleString:!0};class Ww{constructor(t){this.wrappedObject=t}keys(){return Object.keys(this.wrappedObject)}get(t){return no(this.wrappedObject,t)}set(t,n){return xs(this.wrappedObject,t,n),this}has(t){return J1e(this.wrappedObject,t)}}function ws(){return new Map}function ns(e){if(!e)return ws();if(Uw(e))return e;if(Tv(e))return new Ww(e);throw new Error("createMap can create maps from objects or Maps")}function nxe(e){if(e instanceof Ww)return e.wrappedObject;var t={};for(var n of e.keys()){var r=e.get(n);xs(t,n,r)}return t}function Uw(e){return e?e instanceof Map||e instanceof Ww||typeof e.set=="function"&&typeof e.get=="function"&&typeof e.keys=="function"&&typeof e.has=="function":!1}function y4(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var o of n)if(o){if(Uw(o))for(var a of o.keys())e.set(a,o.get(a));else if(Tv(o))for(var i of Object.keys(o))e.set(i,o[i])}return e}var n7=function(){return n7=py.create,py},rxe=["?BigNumber","?Complex","?DenseMatrix","?Fraction"],oxe=se("typed",rxe,function(t){var{BigNumber:n,Complex:r,DenseMatrix:o,Fraction:a}=t,i=n7();return i.clear(),i.addTypes([{name:"number",test:Pt},{name:"Complex",test:vo},{name:"BigNumber",test:Ot},{name:"Fraction",test:ul},{name:"Unit",test:uo},{name:"identifier",test:l=>Qn&&/^(?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE3F\uDE40\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC30-\uDC6D\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDCD0-\uDCEB\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF39\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF])(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE3F\uDE40\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC30-\uDC6D\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDCD0-\uDCEB\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF39\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF])*$/.test(l)},{name:"string",test:Qn},{name:"Chain",test:kw},{name:"Array",test:Ut},{name:"Matrix",test:mt},{name:"DenseMatrix",test:ac},{name:"SparseMatrix",test:Za},{name:"Range",test:Ov},{name:"Index",test:Ic},{name:"boolean",test:O_},{name:"ResultSet",test:T_},{name:"Help",test:Lw},{name:"function",test:M_},{name:"Date",test:N_},{name:"RegExp",test:P_},{name:"null",test:I_},{name:"undefined",test:__},{name:"AccessorNode",test:ii},{name:"ArrayNode",test:Ir},{name:"AssignmentNode",test:B_},{name:"BlockNode",test:F_},{name:"ConditionalNode",test:R_},{name:"ConstantNode",test:Rt},{name:"FunctionNode",test:Sa},{name:"FunctionAssignmentNode",test:Ls},{name:"IndexNode",test:cl},{name:"Node",test:Kt},{name:"ObjectNode",test:_c},{name:"OperatorNode",test:bn},{name:"ParenthesisNode",test:Vo},{name:"RangeNode",test:z_},{name:"RelationalNode",test:L_},{name:"SymbolNode",test:Pn},{name:"Map",test:Uw},{name:"Object",test:Tv}]),i.addConversions([{from:"number",to:"BigNumber",convert:function(s){if(n||gg(s),_1e(s)>15)throw new TypeError("Cannot implicitly convert a number with >15 significant digits to BigNumber (value: "+s+"). Use function bignumber(x) to convert to BigNumber.");return new n(s)}},{from:"number",to:"Complex",convert:function(s){return r||Cd(s),new r(s,0)}},{from:"BigNumber",to:"Complex",convert:function(s){return r||Cd(s),new r(s.toNumber(),0)}},{from:"Fraction",to:"BigNumber",convert:function(s){throw new TypeError("Cannot implicitly convert a Fraction to BigNumber or vice versa. Use function bignumber(x) to convert to BigNumber or fraction(x) to convert to Fraction.")}},{from:"Fraction",to:"Complex",convert:function(s){return r||Cd(s),new r(s.valueOf(),0)}},{from:"number",to:"Fraction",convert:function(s){a||yg(s);var u=new a(s);if(u.valueOf()!==s)throw new TypeError("Cannot implicitly convert a number to a Fraction when there will be a loss of precision (value: "+s+"). Use function fraction(x) to convert to Fraction.");return u}},{from:"string",to:"number",convert:function(s){var u=Number(s);if(isNaN(u))throw new Error('Cannot convert "'+s+'" to a number');return u}},{from:"string",to:"BigNumber",convert:function(s){n||gg(s);try{return new n(s)}catch{throw new Error('Cannot convert "'+s+'" to BigNumber')}}},{from:"string",to:"Fraction",convert:function(s){a||yg(s);try{return new a(s)}catch{throw new Error('Cannot convert "'+s+'" to Fraction')}}},{from:"string",to:"Complex",convert:function(s){r||Cd(s);try{return new r(s)}catch{throw new Error('Cannot convert "'+s+'" to Complex')}}},{from:"boolean",to:"number",convert:function(s){return+s}},{from:"boolean",to:"BigNumber",convert:function(s){return n||gg(s),new n(+s)}},{from:"boolean",to:"Fraction",convert:function(s){return a||yg(s),new a(+s)}},{from:"boolean",to:"string",convert:function(s){return String(s)}},{from:"Array",to:"Matrix",convert:function(s){return o||axe(),new o(s)}},{from:"Matrix",to:"Array",convert:function(s){return s.valueOf()}}]),i.onMismatch=(l,s,u)=>{var c=i.createError(l,s,u);if(["wrongType","mismatch"].includes(c.data.category)&&s.length===1&&wo(s[0])&&u.some(f=>!f.params.includes(","))){var d=new TypeError("Function '".concat(l,"' doesn't apply to matrices. To call it ")+"elementwise on a matrix 'M', try 'map(M, ".concat(l,")'."));throw d.data=c.data,d}throw c},i.onMismatch=(l,s,u)=>{var c=i.createError(l,s,u);if(["wrongType","mismatch"].includes(c.data.category)&&s.length===1&&wo(s[0])&&u.some(f=>!f.params.includes(","))){var d=new TypeError("Function '".concat(l,"' doesn't apply to matrices. To call it ")+"elementwise on a matrix 'M', try 'map(M, ".concat(l,")'."));throw d.data=c.data,d}throw c},i});function gg(e){throw new Error("Cannot convert value ".concat(e," into a BigNumber: no class 'BigNumber' provided"))}function Cd(e){throw new Error("Cannot convert value ".concat(e," into a Complex number: no class 'Complex' provided"))}function axe(){throw new Error("Cannot convert array into a Matrix: no class 'DenseMatrix' provided")}function yg(e){throw new Error("Cannot convert value ".concat(e," into a Fraction, no class 'Fraction' provided."))}var ixe="ResultSet",lxe=[],sxe=se(ixe,lxe,()=>{function e(t){if(!(this instanceof e))throw new SyntaxError("Constructor must be called with the new operator");this.entries=t||[]}return e.prototype.type="ResultSet",e.prototype.isResultSet=!0,e.prototype.valueOf=function(){return this.entries},e.prototype.toString=function(){return"["+this.entries.join(", ")+"]"},e.prototype.toJSON=function(){return{mathjs:"ResultSet",entries:this.entries}},e.fromJSON=function(t){return new e(t.entries)},e},{isClass:!0});/*!
- * decimal.js v10.4.3
- * An arbitrary-precision Decimal type for JavaScript.
- * https://github.com/MikeMcl/decimal.js
- * Copyright (c) 2022 Michael Mclaughlin <M8ch88l@gmail.com>
- * MIT Licence
- */var jl=9e15,pi=1e9,hy="0123456789abcdef",zp="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",Lp="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",gy={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-jl,maxE:jl,crypto:!1},r7,fa,xt=!0,Iv="[DecimalError] ",li=Iv+"Invalid argument: ",o7=Iv+"Precision limit exceeded",a7=Iv+"crypto unavailable",i7="[object Decimal]",tr=Math.floor,Nn=Math.pow,uxe=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,cxe=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,dxe=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,l7=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,ho=1e7,gt=7,fxe=9007199254740991,pxe=zp.length-1,yy=Lp.length-1,ke={toStringTag:i7};ke.absoluteValue=ke.abs=function(){var e=new this.constructor(this);return e.s<0&&(e.s=1),ut(e)};ke.ceil=function(){return ut(new this.constructor(this),this.e+1,2)};ke.clampedTo=ke.clamp=function(e,t){var n,r=this,o=r.constructor;if(e=new o(e),t=new o(t),!e.s||!t.s)return new o(NaN);if(e.gt(t))throw Error(li+t);return n=r.cmp(e),n<0?e:r.cmp(t)>0?t:new o(r)};ke.comparedTo=ke.cmp=function(e){var t,n,r,o,a=this,i=a.d,l=(e=new a.constructor(e)).d,s=a.s,u=e.s;if(!i||!l)return!s||!u?NaN:s!==u?s:i===l?0:!i^s<0?1:-1;if(!i[0]||!l[0])return i[0]?s:l[0]?-u:0;if(s!==u)return s;if(a.e!==e.e)return a.e>e.e^s<0?1:-1;for(r=i.length,o=l.length,t=0,n=r<o?r:o;t<n;++t)if(i[t]!==l[t])return i[t]>l[t]^s<0?1:-1;return r===o?0:r>o^s<0?1:-1};ke.cosine=ke.cos=function(){var e,t,n=this,r=n.constructor;return n.d?n.d[0]?(e=r.precision,t=r.rounding,r.precision=e+Math.max(n.e,n.sd())+gt,r.rounding=1,n=mxe(r,f7(r,n)),r.precision=e,r.rounding=t,ut(fa==2||fa==3?n.neg():n,e,t,!0)):new r(1):new r(NaN)};ke.cubeRoot=ke.cbrt=function(){var e,t,n,r,o,a,i,l,s,u,c=this,d=c.constructor;if(!c.isFinite()||c.isZero())return new d(c);for(xt=!1,a=c.s*Nn(c.s*c,1/3),!a||Math.abs(a)==1/0?(n=Vn(c.d),e=c.e,(a=(e-n.length+1)%3)&&(n+=a==1||a==-2?"0":"00"),a=Nn(n,1/3),e=tr((e+1)/3)-(e%3==(e<0?-1:2)),a==1/0?n="5e"+e:(n=a.toExponential(),n=n.slice(0,n.indexOf("e")+1)+e),r=new d(n),r.s=c.s):r=new d(a.toString()),i=(e=d.precision)+3;;)if(l=r,s=l.times(l).times(l),u=s.plus(c),r=tn(u.plus(c).times(l),u.plus(s),i+2,1),Vn(l.d).slice(0,i)===(n=Vn(r.d)).slice(0,i))if(n=n.slice(i-3,i+1),n=="9999"||!o&&n=="4999"){if(!o&&(ut(l,e+1,0),l.times(l).times(l).eq(c))){r=l;break}i+=4,o=1}else{(!+n||!+n.slice(1)&&n.charAt(0)=="5")&&(ut(r,e+1,1),t=!r.times(r).times(r).eq(c));break}return xt=!0,ut(r,e,d.rounding,t)};ke.decimalPlaces=ke.dp=function(){var e,t=this.d,n=NaN;if(t){if(e=t.length-1,n=(e-tr(this.e/gt))*gt,e=t[e],e)for(;e%10==0;e/=10)n--;n<0&&(n=0)}return n};ke.dividedBy=ke.div=function(e){return tn(this,new this.constructor(e))};ke.dividedToIntegerBy=ke.divToInt=function(e){var t=this,n=t.constructor;return ut(tn(t,new n(e),0,1,1),n.precision,n.rounding)};ke.equals=ke.eq=function(e){return this.cmp(e)===0};ke.floor=function(){return ut(new this.constructor(this),this.e+1,3)};ke.greaterThan=ke.gt=function(e){return this.cmp(e)>0};ke.greaterThanOrEqualTo=ke.gte=function(e){var t=this.cmp(e);return t==1||t===0};ke.hyperbolicCosine=ke.cosh=function(){var e,t,n,r,o,a=this,i=a.constructor,l=new i(1);if(!a.isFinite())return new i(a.s?1/0:NaN);if(a.isZero())return l;n=i.precision,r=i.rounding,i.precision=n+Math.max(a.e,a.sd())+4,i.rounding=1,o=a.d.length,o<32?(e=Math.ceil(o/3),t=(1/Bv(4,e)).toString()):(e=16,t="2.3283064365386962890625e-10"),a=Ss(i,1,a.times(t),new i(1),!0);for(var s,u=e,c=new i(8);u--;)s=a.times(a),a=l.minus(s.times(c.minus(s.times(c))));return ut(a,i.precision=n,i.rounding=r,!0)};ke.hyperbolicSine=ke.sinh=function(){var e,t,n,r,o=this,a=o.constructor;if(!o.isFinite()||o.isZero())return new a(o);if(t=a.precision,n=a.rounding,a.precision=t+Math.max(o.e,o.sd())+4,a.rounding=1,r=o.d.length,r<3)o=Ss(a,2,o,o,!0);else{e=1.4*Math.sqrt(r),e=e>16?16:e|0,o=o.times(1/Bv(5,e)),o=Ss(a,2,o,o,!0);for(var i,l=new a(5),s=new a(16),u=new a(20);e--;)i=o.times(o),o=o.times(l.plus(i.times(s.times(i).plus(u))))}return a.precision=t,a.rounding=n,ut(o,t,n,!0)};ke.hyperbolicTangent=ke.tanh=function(){var e,t,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+7,r.rounding=1,tn(n.sinh(),n.cosh(),r.precision=e,r.rounding=t)):new r(n.s)};ke.inverseCosine=ke.acos=function(){var e,t=this,n=t.constructor,r=t.abs().cmp(1),o=n.precision,a=n.rounding;return r!==-1?r===0?t.isNeg()?po(n,o,a):new n(0):new n(NaN):t.isZero()?po(n,o+4,a).times(.5):(n.precision=o+6,n.rounding=1,t=t.asin(),e=po(n,o+4,a).times(.5),n.precision=o,n.rounding=a,e.minus(t))};ke.inverseHyperbolicCosine=ke.acosh=function(){var e,t,n=this,r=n.constructor;return n.lte(1)?new r(n.eq(1)?0:NaN):n.isFinite()?(e=r.precision,t=r.rounding,r.precision=e+Math.max(Math.abs(n.e),n.sd())+4,r.rounding=1,xt=!1,n=n.times(n).minus(1).sqrt().plus(n),xt=!0,r.precision=e,r.rounding=t,n.ln()):new r(n)};ke.inverseHyperbolicSine=ke.asinh=function(){var e,t,n=this,r=n.constructor;return!n.isFinite()||n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+2*Math.max(Math.abs(n.e),n.sd())+6,r.rounding=1,xt=!1,n=n.times(n).plus(1).sqrt().plus(n),xt=!0,r.precision=e,r.rounding=t,n.ln())};ke.inverseHyperbolicTangent=ke.atanh=function(){var e,t,n,r,o=this,a=o.constructor;return o.isFinite()?o.e>=0?new a(o.abs().eq(1)?o.s/0:o.isZero()?o:NaN):(e=a.precision,t=a.rounding,r=o.sd(),Math.max(r,e)<2*-o.e-1?ut(new a(o),e,t,!0):(a.precision=n=r-o.e,o=tn(o.plus(1),new a(1).minus(o),n+e,1),a.precision=e+4,a.rounding=1,o=o.ln(),a.precision=e,a.rounding=t,o.times(.5))):new a(NaN)};ke.inverseSine=ke.asin=function(){var e,t,n,r,o=this,a=o.constructor;return o.isZero()?new a(o):(t=o.abs().cmp(1),n=a.precision,r=a.rounding,t!==-1?t===0?(e=po(a,n+4,r).times(.5),e.s=o.s,e):new a(NaN):(a.precision=n+6,a.rounding=1,o=o.div(new a(1).minus(o.times(o)).sqrt().plus(1)).atan(),a.precision=n,a.rounding=r,o.times(2)))};ke.inverseTangent=ke.atan=function(){var e,t,n,r,o,a,i,l,s,u=this,c=u.constructor,d=c.precision,f=c.rounding;if(u.isFinite()){if(u.isZero())return new c(u);if(u.abs().eq(1)&&d+4<=yy)return i=po(c,d+4,f).times(.25),i.s=u.s,i}else{if(!u.s)return new c(NaN);if(d+4<=yy)return i=po(c,d+4,f).times(.5),i.s=u.s,i}for(c.precision=l=d+10,c.rounding=1,n=Math.min(28,l/gt+2|0),e=n;e;--e)u=u.div(u.times(u).plus(1).sqrt().plus(1));for(xt=!1,t=Math.ceil(l/gt),r=1,s=u.times(u),i=new c(u),o=u;e!==-1;)if(o=o.times(s),a=i.minus(o.div(r+=2)),o=o.times(s),i=a.plus(o.div(r+=2)),i.d[t]!==void 0)for(e=t;i.d[e]===a.d[e]&&e--;);return n&&(i=i.times(2<<n-1)),xt=!0,ut(i,c.precision=d,c.rounding=f,!0)};ke.isFinite=function(){return!!this.d};ke.isInteger=ke.isInt=function(){return!!this.d&&tr(this.e/gt)>this.d.length-2};ke.isNaN=function(){return!this.s};ke.isNegative=ke.isNeg=function(){return this.s<0};ke.isPositive=ke.isPos=function(){return this.s>0};ke.isZero=function(){return!!this.d&&this.d[0]===0};ke.lessThan=ke.lt=function(e){return this.cmp(e)<0};ke.lessThanOrEqualTo=ke.lte=function(e){return this.cmp(e)<1};ke.logarithm=ke.log=function(e){var t,n,r,o,a,i,l,s,u=this,c=u.constructor,d=c.precision,f=c.rounding,p=5;if(e==null)e=new c(10),t=!0;else{if(e=new c(e),n=e.d,e.s<0||!n||!n[0]||e.eq(1))return new c(NaN);t=e.eq(10)}if(n=u.d,u.s<0||!n||!n[0]||u.eq(1))return new c(n&&!n[0]?-1/0:u.s!=1?NaN:n?0:1/0);if(t)if(n.length>1)a=!0;else{for(o=n[0];o%10===0;)o/=10;a=o!==1}if(xt=!1,l=d+p,i=Qa(u,l),r=t?kp(c,l+10):Qa(e,l),s=tn(i,r,l,1),sc(s.d,o=d,f))do if(l+=10,i=Qa(u,l),r=t?kp(c,l+10):Qa(e,l),s=tn(i,r,l,1),!a){+Vn(s.d).slice(o+1,o+15)+1==1e14&&(s=ut(s,d+1,0));break}while(sc(s.d,o+=10,f));return xt=!0,ut(s,d,f)};ke.minus=ke.sub=function(e){var t,n,r,o,a,i,l,s,u,c,d,f,p=this,v=p.constructor;if(e=new v(e),!p.d||!e.d)return!p.s||!e.s?e=new v(NaN):p.d?e.s=-e.s:e=new v(e.d||p.s!==e.s?p:NaN),e;if(p.s!=e.s)return e.s=-e.s,p.plus(e);if(u=p.d,f=e.d,l=v.precision,s=v.rounding,!u[0]||!f[0]){if(f[0])e.s=-e.s;else if(u[0])e=new v(p);else return new v(s===3?-0:0);return xt?ut(e,l,s):e}if(n=tr(e.e/gt),c=tr(p.e/gt),u=u.slice(),a=c-n,a){for(d=a<0,d?(t=u,a=-a,i=f.length):(t=f,n=c,i=u.length),r=Math.max(Math.ceil(l/gt),i)+2,a>r&&(a=r,t.length=1),t.reverse(),r=a;r--;)t.push(0);t.reverse()}else{for(r=u.length,i=f.length,d=r<i,d&&(i=r),r=0;r<i;r++)if(u[r]!=f[r]){d=u[r]<f[r];break}a=0}for(d&&(t=u,u=f,f=t,e.s=-e.s),i=u.length,r=f.length-i;r>0;--r)u[i++]=0;for(r=f.length;r>a;){if(u[--r]<f[r]){for(o=r;o&&u[--o]===0;)u[o]=ho-1;--u[o],u[r]+=ho}u[r]-=f[r]}for(;u[--i]===0;)u.pop();for(;u[0]===0;u.shift())--n;return u[0]?(e.d=u,e.e=_v(u,n),xt?ut(e,l,s):e):new v(s===3?-0:0)};ke.modulo=ke.mod=function(e){var t,n=this,r=n.constructor;return e=new r(e),!n.d||!e.s||e.d&&!e.d[0]?new r(NaN):!e.d||n.d&&!n.d[0]?ut(new r(n),r.precision,r.rounding):(xt=!1,r.modulo==9?(t=tn(n,e.abs(),0,3,1),t.s*=e.s):t=tn(n,e,0,r.modulo,1),t=t.times(e),xt=!0,n.minus(t))};ke.naturalExponential=ke.exp=function(){return by(this)};ke.naturalLogarithm=ke.ln=function(){return Qa(this)};ke.negated=ke.neg=function(){var e=new this.constructor(this);return e.s=-e.s,ut(e)};ke.plus=ke.add=function(e){var t,n,r,o,a,i,l,s,u,c,d=this,f=d.constructor;if(e=new f(e),!d.d||!e.d)return!d.s||!e.s?e=new f(NaN):d.d||(e=new f(e.d||d.s===e.s?d:NaN)),e;if(d.s!=e.s)return e.s=-e.s,d.minus(e);if(u=d.d,c=e.d,l=f.precision,s=f.rounding,!u[0]||!c[0])return c[0]||(e=new f(d)),xt?ut(e,l,s):e;if(a=tr(d.e/gt),r=tr(e.e/gt),u=u.slice(),o=a-r,o){for(o<0?(n=u,o=-o,i=c.length):(n=c,r=a,i=u.length),a=Math.ceil(l/gt),i=a>i?a+1:i+1,o>i&&(o=i,n.length=1),n.reverse();o--;)n.push(0);n.reverse()}for(i=u.length,o=c.length,i-o<0&&(o=i,n=c,c=u,u=n),t=0;o;)t=(u[--o]=u[o]+c[o]+t)/ho|0,u[o]%=ho;for(t&&(u.unshift(t),++r),i=u.length;u[--i]==0;)u.pop();return e.d=u,e.e=_v(u,r),xt?ut(e,l,s):e};ke.precision=ke.sd=function(e){var t,n=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(li+e);return n.d?(t=s7(n.d),e&&n.e+1>t&&(t=n.e+1)):t=NaN,t};ke.round=function(){var e=this,t=e.constructor;return ut(new t(e),e.e+1,t.rounding)};ke.sine=ke.sin=function(){var e,t,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+Math.max(n.e,n.sd())+gt,r.rounding=1,n=hxe(r,f7(r,n)),r.precision=e,r.rounding=t,ut(fa>2?n.neg():n,e,t,!0)):new r(NaN)};ke.squareRoot=ke.sqrt=function(){var e,t,n,r,o,a,i=this,l=i.d,s=i.e,u=i.s,c=i.constructor;if(u!==1||!l||!l[0])return new c(!u||u<0&&(!l||l[0])?NaN:l?i:1/0);for(xt=!1,u=Math.sqrt(+i),u==0||u==1/0?(t=Vn(l),(t.length+s)%2==0&&(t+="0"),u=Math.sqrt(t),s=tr((s+1)/2)-(s<0||s%2),u==1/0?t="5e"+s:(t=u.toExponential(),t=t.slice(0,t.indexOf("e")+1)+s),r=new c(t)):r=new c(u.toString()),n=(s=c.precision)+3;;)if(a=r,r=a.plus(tn(i,a,n+2,1)).times(.5),Vn(a.d).slice(0,n)===(t=Vn(r.d)).slice(0,n))if(t=t.slice(n-3,n+1),t=="9999"||!o&&t=="4999"){if(!o&&(ut(a,s+1,0),a.times(a).eq(i))){r=a;break}n+=4,o=1}else{(!+t||!+t.slice(1)&&t.charAt(0)=="5")&&(ut(r,s+1,1),e=!r.times(r).eq(i));break}return xt=!0,ut(r,s,c.rounding,e)};ke.tangent=ke.tan=function(){var e,t,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+10,r.rounding=1,n=n.sin(),n.s=1,n=tn(n,new r(1).minus(n.times(n)).sqrt(),e+10,0),r.precision=e,r.rounding=t,ut(fa==2||fa==4?n.neg():n,e,t,!0)):new r(NaN)};ke.times=ke.mul=function(e){var t,n,r,o,a,i,l,s,u,c=this,d=c.constructor,f=c.d,p=(e=new d(e)).d;if(e.s*=c.s,!f||!f[0]||!p||!p[0])return new d(!e.s||f&&!f[0]&&!p||p&&!p[0]&&!f?NaN:!f||!p?e.s/0:e.s*0);for(n=tr(c.e/gt)+tr(e.e/gt),s=f.length,u=p.length,s<u&&(a=f,f=p,p=a,i=s,s=u,u=i),a=[],i=s+u,r=i;r--;)a.push(0);for(r=u;--r>=0;){for(t=0,o=s+r;o>r;)l=a[o]+p[r]*f[o-r-1]+t,a[o--]=l%ho|0,t=l/ho|0;a[o]=(a[o]+t)%ho|0}for(;!a[--i];)a.pop();return t?++n:a.shift(),e.d=a,e.e=_v(a,n),xt?ut(e,d.precision,d.rounding):e};ke.toBinary=function(e,t){return Kw(this,2,e,t)};ke.toDecimalPlaces=ke.toDP=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(wr(e,0,pi),t===void 0?t=r.rounding:wr(t,0,8),ut(n,e+n.e+1,t))};ke.toExponential=function(e,t){var n,r=this,o=r.constructor;return e===void 0?n=Wo(r,!0):(wr(e,0,pi),t===void 0?t=o.rounding:wr(t,0,8),r=ut(new o(r),e+1,t),n=Wo(r,!0,e+1)),r.isNeg()&&!r.isZero()?"-"+n:n};ke.toFixed=function(e,t){var n,r,o=this,a=o.constructor;return e===void 0?n=Wo(o):(wr(e,0,pi),t===void 0?t=a.rounding:wr(t,0,8),r=ut(new a(o),e+o.e+1,t),n=Wo(r,!1,e+r.e+1)),o.isNeg()&&!o.isZero()?"-"+n:n};ke.toFraction=function(e){var t,n,r,o,a,i,l,s,u,c,d,f,p=this,v=p.d,m=p.constructor;if(!v)return new m(p);if(u=n=new m(1),r=s=new m(0),t=new m(r),a=t.e=s7(v)-p.e-1,i=a%gt,t.d[0]=Nn(10,i<0?gt+i:i),e==null)e=a>0?t:u;else{if(l=new m(e),!l.isInt()||l.lt(u))throw Error(li+l);e=l.gt(t)?a>0?t:u:l}for(xt=!1,l=new m(Vn(v)),c=m.precision,m.precision=a=v.length*gt*2;d=tn(l,t,0,1,1),o=n.plus(d.times(r)),o.cmp(e)!=1;)n=r,r=o,o=u,u=s.plus(d.times(o)),s=o,o=t,t=l.minus(d.times(o)),l=o;return o=tn(e.minus(n),r,0,1,1),s=s.plus(o.times(u)),n=n.plus(o.times(r)),s.s=u.s=p.s,f=tn(u,r,a,1).minus(p).abs().cmp(tn(s,n,a,1).minus(p).abs())<1?[u,r]:[s,n],m.precision=c,xt=!0,f};ke.toHexadecimal=ke.toHex=function(e,t){return Kw(this,16,e,t)};ke.toNearest=function(e,t){var n=this,r=n.constructor;if(n=new r(n),e==null){if(!n.d)return n;e=new r(1),t=r.rounding}else{if(e=new r(e),t===void 0?t=r.rounding:wr(t,0,8),!n.d)return e.s?n:e;if(!e.d)return e.s&&(e.s=n.s),e}return e.d[0]?(xt=!1,n=tn(n,e,0,t,1).times(e),xt=!0,ut(n)):(e.s=n.s,n=e),n};ke.toNumber=function(){return+this};ke.toOctal=function(e,t){return Kw(this,8,e,t)};ke.toPower=ke.pow=function(e){var t,n,r,o,a,i,l=this,s=l.constructor,u=+(e=new s(e));if(!l.d||!e.d||!l.d[0]||!e.d[0])return new s(Nn(+l,u));if(l=new s(l),l.eq(1))return l;if(r=s.precision,a=s.rounding,e.eq(1))return ut(l,r,a);if(t=tr(e.e/gt),t>=e.d.length-1&&(n=u<0?-u:u)<=fxe)return o=u7(s,l,n,r),e.s<0?new s(1).div(o):ut(o,r,a);if(i=l.s,i<0){if(t<e.d.length-1)return new s(NaN);if(e.d[t]&1||(i=1),l.e==0&&l.d[0]==1&&l.d.length==1)return l.s=i,l}return n=Nn(+l,u),t=n==0||!isFinite(n)?tr(u*(Math.log("0."+Vn(l.d))/Math.LN10+l.e+1)):new s(n+"").e,t>s.maxE+1||t<s.minE-1?new s(t>0?i/0:0):(xt=!1,s.rounding=l.s=1,n=Math.min(12,(t+"").length),o=by(e.times(Qa(l,r+n)),r),o.d&&(o=ut(o,r+5,1),sc(o.d,r,a)&&(t=r+10,o=ut(by(e.times(Qa(l,t+n)),t),t+5,1),+Vn(o.d).slice(r+1,r+15)+1==1e14&&(o=ut(o,r+1,0)))),o.s=i,xt=!0,s.rounding=a,ut(o,r,a))};ke.toPrecision=function(e,t){var n,r=this,o=r.constructor;return e===void 0?n=Wo(r,r.e<=o.toExpNeg||r.e>=o.toExpPos):(wr(e,1,pi),t===void 0?t=o.rounding:wr(t,0,8),r=ut(new o(r),e,t),n=Wo(r,e<=r.e||r.e<=o.toExpNeg,e)),r.isNeg()&&!r.isZero()?"-"+n:n};ke.toSignificantDigits=ke.toSD=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(wr(e,1,pi),t===void 0?t=r.rounding:wr(t,0,8)),ut(new r(n),e,t)};ke.toString=function(){var e=this,t=e.constructor,n=Wo(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()&&!e.isZero()?"-"+n:n};ke.truncated=ke.trunc=function(){return ut(new this.constructor(this),this.e+1,1)};ke.valueOf=ke.toJSON=function(){var e=this,t=e.constructor,n=Wo(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()?"-"+n:n};function Vn(e){var t,n,r,o=e.length-1,a="",i=e[0];if(o>0){for(a+=i,t=1;t<o;t++)r=e[t]+"",n=gt-r.length,n&&(a+=Va(n)),a+=r;i=e[t],r=i+"",n=gt-r.length,n&&(a+=Va(n))}else if(i===0)return"0";for(;i%10===0;)i/=10;return a+i}function wr(e,t,n){if(e!==~~e||e<t||e>n)throw Error(li+e)}function sc(e,t,n,r){var o,a,i,l;for(a=e[0];a>=10;a/=10)--t;return--t<0?(t+=gt,o=0):(o=Math.ceil((t+1)/gt),t%=gt),a=Nn(10,gt-t),l=e[o]%a|0,r==null?t<3?(t==0?l=l/100|0:t==1&&(l=l/10|0),i=n<4&&l==99999||n>3&&l==49999||l==5e4||l==0):i=(n<4&&l+1==a||n>3&&l+1==a/2)&&(e[o+1]/a/100|0)==Nn(10,t-2)-1||(l==a/2||l==0)&&(e[o+1]/a/100|0)==0:t<4?(t==0?l=l/1e3|0:t==1?l=l/100|0:t==2&&(l=l/10|0),i=(r||n<4)&&l==9999||!r&&n>3&&l==4999):i=((r||n<4)&&l+1==a||!r&&n>3&&l+1==a/2)&&(e[o+1]/a/1e3|0)==Nn(10,t-3)-1,i}function Bf(e,t,n){for(var r,o=[0],a,i=0,l=e.length;i<l;){for(a=o.length;a--;)o[a]*=t;for(o[0]+=hy.indexOf(e.charAt(i++)),r=0;r<o.length;r++)o[r]>n-1&&(o[r+1]===void 0&&(o[r+1]=0),o[r+1]+=o[r]/n|0,o[r]%=n)}return o.reverse()}function mxe(e,t){var n,r,o;if(t.isZero())return t;r=t.d.length,r<32?(n=Math.ceil(r/3),o=(1/Bv(4,n)).toString()):(n=16,o="2.3283064365386962890625e-10"),e.precision+=n,t=Ss(e,1,t.times(o),new e(1));for(var a=n;a--;){var i=t.times(t);t=i.times(i).minus(i).times(8).plus(1)}return e.precision-=n,t}var tn=function(){function e(r,o,a){var i,l=0,s=r.length;for(r=r.slice();s--;)i=r[s]*o+l,r[s]=i%a|0,l=i/a|0;return l&&r.unshift(l),r}function t(r,o,a,i){var l,s;if(a!=i)s=a>i?1:-1;else for(l=s=0;l<a;l++)if(r[l]!=o[l]){s=r[l]>o[l]?1:-1;break}return s}function n(r,o,a,i){for(var l=0;a--;)r[a]-=l,l=r[a]<o[a]?1:0,r[a]=l*i+r[a]-o[a];for(;!r[0]&&r.length>1;)r.shift()}return function(r,o,a,i,l,s){var u,c,d,f,p,v,m,h,g,x,y,w,b,S,$,D,O,A,T,M,B=r.constructor,F=r.s==o.s?1:-1,P=r.d,I=o.d;if(!P||!P[0]||!I||!I[0])return new B(!r.s||!o.s||(P?I&&P[0]==I[0]:!I)?NaN:P&&P[0]==0||!I?F*0:F/0);for(s?(p=1,c=r.e-o.e):(s=ho,p=gt,c=tr(r.e/p)-tr(o.e/p)),T=I.length,O=P.length,g=new B(F),x=g.d=[],d=0;I[d]==(P[d]||0);d++);if(I[d]>(P[d]||0)&&c--,a==null?(S=a=B.precision,i=B.rounding):l?S=a+(r.e-o.e)+1:S=a,S<0)x.push(1),v=!0;else{if(S=S/p+2|0,d=0,T==1){for(f=0,I=I[0],S++;(d<O||f)&&S--;d++)$=f*s+(P[d]||0),x[d]=$/I|0,f=$%I|0;v=f||d<O}else{for(f=s/(I[0]+1)|0,f>1&&(I=e(I,f,s),P=e(P,f,s),T=I.length,O=P.length),D=T,y=P.slice(0,T),w=y.length;w<T;)y[w++]=0;M=I.slice(),M.unshift(0),A=I[0],I[1]>=s/2&&++A;do f=0,u=t(I,y,T,w),u<0?(b=y[0],T!=w&&(b=b*s+(y[1]||0)),f=b/A|0,f>1?(f>=s&&(f=s-1),m=e(I,f,s),h=m.length,w=y.length,u=t(m,y,h,w),u==1&&(f--,n(m,T<h?M:I,h,s))):(f==0&&(u=f=1),m=I.slice()),h=m.length,h<w&&m.unshift(0),n(y,m,w,s),u==-1&&(w=y.length,u=t(I,y,T,w),u<1&&(f++,n(y,T<w?M:I,w,s))),w=y.length):u===0&&(f++,y=[0]),x[d++]=f,u&&y[0]?y[w++]=P[D]||0:(y=[P[D]],w=1);while((D++<O||y[0]!==void 0)&&S--);v=y[0]!==void 0}x[0]||x.shift()}if(p==1)g.e=c,r7=v;else{for(d=1,f=x[0];f>=10;f/=10)d++;g.e=d+c*p-1,ut(g,l?a+g.e+1:a,i,v)}return g}}();function ut(e,t,n,r){var o,a,i,l,s,u,c,d,f,p=e.constructor;e:if(t!=null){if(d=e.d,!d)return e;for(o=1,l=d[0];l>=10;l/=10)o++;if(a=t-o,a<0)a+=gt,i=t,c=d[f=0],s=c/Nn(10,o-i-1)%10|0;else if(f=Math.ceil((a+1)/gt),l=d.length,f>=l)if(r){for(;l++<=f;)d.push(0);c=s=0,o=1,a%=gt,i=a-gt+1}else break e;else{for(c=l=d[f],o=1;l>=10;l/=10)o++;a%=gt,i=a-gt+o,s=i<0?0:c/Nn(10,o-i-1)%10|0}if(r=r||t<0||d[f+1]!==void 0||(i<0?c:c%Nn(10,o-i-1)),u=n<4?(s||r)&&(n==0||n==(e.s<0?3:2)):s>5||s==5&&(n==4||r||n==6&&(a>0?i>0?c/Nn(10,o-i):0:d[f-1])%10&1||n==(e.s<0?8:7)),t<1||!d[0])return d.length=0,u?(t-=e.e+1,d[0]=Nn(10,(gt-t%gt)%gt),e.e=-t||0):d[0]=e.e=0,e;if(a==0?(d.length=f,l=1,f--):(d.length=f+1,l=Nn(10,gt-a),d[f]=i>0?(c/Nn(10,o-i)%Nn(10,i)|0)*l:0),u)for(;;)if(f==0){for(a=1,i=d[0];i>=10;i/=10)a++;for(i=d[0]+=l,l=1;i>=10;i/=10)l++;a!=l&&(e.e++,d[0]==ho&&(d[0]=1));break}else{if(d[f]+=l,d[f]!=ho)break;d[f--]=0,l=1}for(a=d.length;d[--a]===0;)d.pop()}return xt&&(e.e>p.maxE?(e.d=null,e.e=NaN):e.e<p.minE&&(e.e=0,e.d=[0])),e}function Wo(e,t,n){if(!e.isFinite())return d7(e);var r,o=e.e,a=Vn(e.d),i=a.length;return t?(n&&(r=n-i)>0?a=a.charAt(0)+"."+a.slice(1)+Va(r):i>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(e.e<0?"e":"e+")+e.e):o<0?(a="0."+Va(-o-1)+a,n&&(r=n-i)>0&&(a+=Va(r))):o>=i?(a+=Va(o+1-i),n&&(r=n-o-1)>0&&(a=a+"."+Va(r))):((r=o+1)<i&&(a=a.slice(0,r)+"."+a.slice(r)),n&&(r=n-i)>0&&(o+1===i&&(a+="."),a+=Va(r))),a}function _v(e,t){var n=e[0];for(t*=gt;n>=10;n/=10)t++;return t}function kp(e,t,n){if(t>pxe)throw xt=!0,n&&(e.precision=n),Error(o7);return ut(new e(zp),t,1,!0)}function po(e,t,n){if(t>yy)throw Error(o7);return ut(new e(Lp),t,n,!0)}function s7(e){var t=e.length-1,n=t*gt+1;if(t=e[t],t){for(;t%10==0;t/=10)n--;for(t=e[0];t>=10;t/=10)n++}return n}function Va(e){for(var t="";e--;)t+="0";return t}function u7(e,t,n,r){var o,a=new e(1),i=Math.ceil(r/gt+4);for(xt=!1;;){if(n%2&&(a=a.times(t),x4(a.d,i)&&(o=!0)),n=tr(n/2),n===0){n=a.d.length-1,o&&a.d[n]===0&&++a.d[n];break}t=t.times(t),x4(t.d,i)}return xt=!0,a}function b4(e){return e.d[e.d.length-1]&1}function c7(e,t,n){for(var r,o=new e(t[0]),a=0;++a<t.length;)if(r=new e(t[a]),r.s)o[n](r)&&(o=r);else{o=r;break}return o}function by(e,t){var n,r,o,a,i,l,s,u=0,c=0,d=0,f=e.constructor,p=f.rounding,v=f.precision;if(!e.d||!e.d[0]||e.e>17)return new f(e.d?e.d[0]?e.s<0?0:1/0:1:e.s?e.s<0?0:e:0/0);for(t==null?(xt=!1,s=v):s=t,l=new f(.03125);e.e>-2;)e=e.times(l),d+=5;for(r=Math.log(Nn(2,d))/Math.LN10*2+5|0,s+=r,n=a=i=new f(1),f.precision=s;;){if(a=ut(a.times(e),s,1),n=n.times(++c),l=i.plus(tn(a,n,s,1)),Vn(l.d).slice(0,s)===Vn(i.d).slice(0,s)){for(o=d;o--;)i=ut(i.times(i),s,1);if(t==null)if(u<3&&sc(i.d,s-r,p,u))f.precision=s+=10,n=a=l=new f(1),c=0,u++;else return ut(i,f.precision=v,p,xt=!0);else return f.precision=v,i}i=l}}function Qa(e,t){var n,r,o,a,i,l,s,u,c,d,f,p=1,v=10,m=e,h=m.d,g=m.constructor,x=g.rounding,y=g.precision;if(m.s<0||!h||!h[0]||!m.e&&h[0]==1&&h.length==1)return new g(h&&!h[0]?-1/0:m.s!=1?NaN:h?0:m);if(t==null?(xt=!1,c=y):c=t,g.precision=c+=v,n=Vn(h),r=n.charAt(0),Math.abs(a=m.e)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)m=m.times(e),n=Vn(m.d),r=n.charAt(0),p++;a=m.e,r>1?(m=new g("0."+n),a++):m=new g(r+"."+n.slice(1))}else return u=kp(g,c+2,y).times(a+""),m=Qa(new g(r+"."+n.slice(1)),c-v).plus(u),g.precision=y,t==null?ut(m,y,x,xt=!0):m;for(d=m,s=i=m=tn(m.minus(1),m.plus(1),c,1),f=ut(m.times(m),c,1),o=3;;){if(i=ut(i.times(f),c,1),u=s.plus(tn(i,new g(o),c,1)),Vn(u.d).slice(0,c)===Vn(s.d).slice(0,c))if(s=s.times(2),a!==0&&(s=s.plus(kp(g,c+2,y).times(a+""))),s=tn(s,new g(p),c,1),t==null)if(sc(s.d,c-v,x,l))g.precision=c+=v,u=i=m=tn(d.minus(1),d.plus(1),c,1),f=ut(m.times(m),c,1),o=l=1;else return ut(s,g.precision=y,x,xt=!0);else return g.precision=y,s;s=u,o+=2}}function d7(e){return String(e.s*e.s/0)}function xy(e,t){var n,r,o;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;r++);for(o=t.length;t.charCodeAt(o-1)===48;--o);if(t=t.slice(r,o),t){if(o-=r,e.e=n=n-r-1,e.d=[],r=(n+1)%gt,n<0&&(r+=gt),r<o){for(r&&e.d.push(+t.slice(0,r)),o-=gt;r<o;)e.d.push(+t.slice(r,r+=gt));t=t.slice(r),r=gt-t.length}else r-=o;for(;r--;)t+="0";e.d.push(+t),xt&&(e.e>e.constructor.maxE?(e.d=null,e.e=NaN):e.e<e.constructor.minE&&(e.e=0,e.d=[0]))}else e.e=0,e.d=[0];return e}function vxe(e,t){var n,r,o,a,i,l,s,u,c;if(t.indexOf("_")>-1){if(t=t.replace(/(\d)_(?=\d)/g,"$1"),l7.test(t))return xy(e,t)}else if(t==="Infinity"||t==="NaN")return+t||(e.s=NaN),e.e=NaN,e.d=null,e;if(cxe.test(t))n=16,t=t.toLowerCase();else if(uxe.test(t))n=2;else if(dxe.test(t))n=8;else throw Error(li+t);for(a=t.search(/p/i),a>0?(s=+t.slice(a+1),t=t.substring(2,a)):t=t.slice(2),a=t.indexOf("."),i=a>=0,r=e.constructor,i&&(t=t.replace(".",""),l=t.length,a=l-a,o=u7(r,new r(n),a,a*2)),u=Bf(t,n,ho),c=u.length-1,a=c;u[a]===0;--a)u.pop();return a<0?new r(e.s*0):(e.e=_v(u,c),e.d=u,xt=!1,i&&(e=tn(e,o,l*4)),s&&(e=e.times(Math.abs(s)<54?Nn(2,s):si.pow(2,s))),xt=!0,e)}function hxe(e,t){var n,r=t.d.length;if(r<3)return t.isZero()?t:Ss(e,2,t,t);n=1.4*Math.sqrt(r),n=n>16?16:n|0,t=t.times(1/Bv(5,n)),t=Ss(e,2,t,t);for(var o,a=new e(5),i=new e(16),l=new e(20);n--;)o=t.times(t),t=t.times(a.plus(o.times(i.times(o).minus(l))));return t}function Ss(e,t,n,r,o){var a,i,l,s,u=e.precision,c=Math.ceil(u/gt);for(xt=!1,s=n.times(n),l=new e(r);;){if(i=tn(l.times(s),new e(t++*t++),u,1),l=o?r.plus(i):r.minus(i),r=tn(i.times(s),new e(t++*t++),u,1),i=l.plus(r),i.d[c]!==void 0){for(a=c;i.d[a]===l.d[a]&&a--;);if(a==-1)break}a=l,l=r,r=i,i=a}return xt=!0,i.d.length=c+1,i}function Bv(e,t){for(var n=e;--t;)n*=e;return n}function f7(e,t){var n,r=t.s<0,o=po(e,e.precision,1),a=o.times(.5);if(t=t.abs(),t.lte(a))return fa=r?4:1,t;if(n=t.divToInt(o),n.isZero())fa=r?3:2;else{if(t=t.minus(n.times(o)),t.lte(a))return fa=b4(n)?r?2:3:r?4:1,t;fa=b4(n)?r?1:4:r?3:2}return t.minus(o).abs()}function Kw(e,t,n,r){var o,a,i,l,s,u,c,d,f,p=e.constructor,v=n!==void 0;if(v?(wr(n,1,pi),r===void 0?r=p.rounding:wr(r,0,8)):(n=p.precision,r=p.rounding),!e.isFinite())c=d7(e);else{for(c=Wo(e),i=c.indexOf("."),v?(o=2,t==16?n=n*4-3:t==8&&(n=n*3-2)):o=t,i>=0&&(c=c.replace(".",""),f=new p(1),f.e=c.length-i,f.d=Bf(Wo(f),10,o),f.e=f.d.length),d=Bf(c,10,o),a=s=d.length;d[--s]==0;)d.pop();if(!d[0])c=v?"0p+0":"0";else{if(i<0?a--:(e=new p(e),e.d=d,e.e=a,e=tn(e,f,n,r,0,o),d=e.d,a=e.e,u=r7),i=d[n],l=o/2,u=u||d[n+1]!==void 0,u=r<4?(i!==void 0||u)&&(r===0||r===(e.s<0?3:2)):i>l||i===l&&(r===4||u||r===6&&d[n-1]&1||r===(e.s<0?8:7)),d.length=n,u)for(;++d[--n]>o-1;)d[n]=0,n||(++a,d.unshift(1));for(s=d.length;!d[s-1];--s);for(i=0,c="";i<s;i++)c+=hy.charAt(d[i]);if(v){if(s>1)if(t==16||t==8){for(i=t==16?4:3,--s;s%i;s++)c+="0";for(d=Bf(c,o,t),s=d.length;!d[s-1];--s);for(i=1,c="1.";i<s;i++)c+=hy.charAt(d[i])}else c=c.charAt(0)+"."+c.slice(1);c=c+(a<0?"p":"p+")+a}else if(a<0){for(;++a;)c="0"+c;c="0."+c}else if(++a>s)for(a-=s;a--;)c+="0";else a<s&&(c=c.slice(0,a)+"."+c.slice(a))}c=(t==16?"0x":t==2?"0b":t==8?"0o":"")+c}return e.s<0?"-"+c:c}function x4(e,t){if(e.length>t)return e.length=t,!0}function gxe(e){return new this(e).abs()}function yxe(e){return new this(e).acos()}function bxe(e){return new this(e).acosh()}function xxe(e,t){return new this(e).plus(t)}function wxe(e){return new this(e).asin()}function Sxe(e){return new this(e).asinh()}function Cxe(e){return new this(e).atan()}function $xe(e){return new this(e).atanh()}function Exe(e,t){e=new this(e),t=new this(t);var n,r=this.precision,o=this.rounding,a=r+4;return!e.s||!t.s?n=new this(NaN):!e.d&&!t.d?(n=po(this,a,1).times(t.s>0?.25:.75),n.s=e.s):!t.d||e.isZero()?(n=t.s<0?po(this,r,o):new this(0),n.s=e.s):!e.d||t.isZero()?(n=po(this,a,1).times(.5),n.s=e.s):t.s<0?(this.precision=a,this.rounding=1,n=this.atan(tn(e,t,a,1)),t=po(this,a,1),this.precision=r,this.rounding=o,n=e.s<0?n.minus(t):n.plus(t)):n=this.atan(tn(e,t,a,1)),n}function Dxe(e){return new this(e).cbrt()}function Axe(e){return ut(e=new this(e),e.e+1,2)}function Oxe(e,t,n){return new this(e).clamp(t,n)}function Txe(e){if(!e||typeof e!="object")throw Error(Iv+"Object expected");var t,n,r,o=e.defaults===!0,a=["precision",1,pi,"rounding",0,8,"toExpNeg",-jl,0,"toExpPos",0,jl,"maxE",0,jl,"minE",-jl,0,"modulo",0,9];for(t=0;t<a.length;t+=3)if(n=a[t],o&&(this[n]=gy[n]),(r=e[n])!==void 0)if(tr(r)===r&&r>=a[t+1]&&r<=a[t+2])this[n]=r;else throw Error(li+n+": "+r);if(n="crypto",o&&(this[n]=gy[n]),(r=e[n])!==void 0)if(r===!0||r===!1||r===0||r===1)if(r)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))this[n]=!0;else throw Error(a7);else this[n]=!1;else throw Error(li+n+": "+r);return this}function Mxe(e){return new this(e).cos()}function Nxe(e){return new this(e).cosh()}function p7(e){var t,n,r;function o(a){var i,l,s,u=this;if(!(u instanceof o))return new o(a);if(u.constructor=o,w4(a)){u.s=a.s,xt?!a.d||a.e>o.maxE?(u.e=NaN,u.d=null):a.e<o.minE?(u.e=0,u.d=[0]):(u.e=a.e,u.d=a.d.slice()):(u.e=a.e,u.d=a.d?a.d.slice():a.d);return}if(s=typeof a,s==="number"){if(a===0){u.s=1/a<0?-1:1,u.e=0,u.d=[0];return}if(a<0?(a=-a,u.s=-1):u.s=1,a===~~a&&a<1e7){for(i=0,l=a;l>=10;l/=10)i++;xt?i>o.maxE?(u.e=NaN,u.d=null):i<o.minE?(u.e=0,u.d=[0]):(u.e=i,u.d=[a]):(u.e=i,u.d=[a]);return}else if(a*0!==0){a||(u.s=NaN),u.e=NaN,u.d=null;return}return xy(u,a.toString())}else if(s!=="string")throw Error(li+a);return(l=a.charCodeAt(0))===45?(a=a.slice(1),u.s=-1):(l===43&&(a=a.slice(1)),u.s=1),l7.test(a)?xy(u,a):vxe(u,a)}if(o.prototype=ke,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.EUCLID=9,o.config=o.set=Txe,o.clone=p7,o.isDecimal=w4,o.abs=gxe,o.acos=yxe,o.acosh=bxe,o.add=xxe,o.asin=wxe,o.asinh=Sxe,o.atan=Cxe,o.atanh=$xe,o.atan2=Exe,o.cbrt=Dxe,o.ceil=Axe,o.clamp=Oxe,o.cos=Mxe,o.cosh=Nxe,o.div=Pxe,o.exp=Ixe,o.floor=_xe,o.hypot=Bxe,o.ln=Fxe,o.log=Rxe,o.log10=Lxe,o.log2=zxe,o.max=kxe,o.min=Hxe,o.mod=jxe,o.mul=Vxe,o.pow=Wxe,o.random=Uxe,o.round=Kxe,o.sign=qxe,o.sin=Gxe,o.sinh=Xxe,o.sqrt=Yxe,o.sub=Zxe,o.sum=Jxe,o.tan=Qxe,o.tanh=ewe,o.trunc=twe,e===void 0&&(e={}),e&&e.defaults!==!0)for(r=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"],t=0;t<r.length;)e.hasOwnProperty(n=r[t++])||(e[n]=this[n]);return o.config(e),o}function Pxe(e,t){return new this(e).div(t)}function Ixe(e){return new this(e).exp()}function _xe(e){return ut(e=new this(e),e.e+1,3)}function Bxe(){var e,t,n=new this(0);for(xt=!1,e=0;e<arguments.length;)if(t=new this(arguments[e++]),t.d)n.d&&(n=n.plus(t.times(t)));else{if(t.s)return xt=!0,new this(1/0);n=t}return xt=!0,n.sqrt()}function w4(e){return e instanceof si||e&&e.toStringTag===i7||!1}function Fxe(e){return new this(e).ln()}function Rxe(e,t){return new this(e).log(t)}function zxe(e){return new this(e).log(2)}function Lxe(e){return new this(e).log(10)}function kxe(){return c7(this,arguments,"lt")}function Hxe(){return c7(this,arguments,"gt")}function jxe(e,t){return new this(e).mod(t)}function Vxe(e,t){return new this(e).mul(t)}function Wxe(e,t){return new this(e).pow(t)}function Uxe(e){var t,n,r,o,a=0,i=new this(1),l=[];if(e===void 0?e=this.precision:wr(e,1,pi),r=Math.ceil(e/gt),this.crypto)if(crypto.getRandomValues)for(t=crypto.getRandomValues(new Uint32Array(r));a<r;)o=t[a],o>=429e7?t[a]=crypto.getRandomValues(new Uint32Array(1))[0]:l[a++]=o%1e7;else if(crypto.randomBytes){for(t=crypto.randomBytes(r*=4);a<r;)o=t[a]+(t[a+1]<<8)+(t[a+2]<<16)+((t[a+3]&127)<<24),o>=214e7?crypto.randomBytes(4).copy(t,a):(l.push(o%1e7),a+=4);a=r/4}else throw Error(a7);else for(;a<r;)l[a++]=Math.random()*1e7|0;for(r=l[--a],e%=gt,r&&e&&(o=Nn(10,gt-e),l[a]=(r/o|0)*o);l[a]===0;a--)l.pop();if(a<0)n=0,l=[0];else{for(n=-1;l[0]===0;n-=gt)l.shift();for(r=1,o=l[0];o>=10;o/=10)r++;r<gt&&(n-=gt-r)}return i.e=n,i.d=l,i}function Kxe(e){return ut(e=new this(e),e.e+1,this.rounding)}function qxe(e){return e=new this(e),e.d?e.d[0]?e.s:0*e.s:e.s||NaN}function Gxe(e){return new this(e).sin()}function Xxe(e){return new this(e).sinh()}function Yxe(e){return new this(e).sqrt()}function Zxe(e,t){return new this(e).sub(t)}function Jxe(){var e=0,t=arguments,n=new this(t[e]);for(xt=!1;n.s&&++e<t.length;)n=n.plus(t[e]);return xt=!0,ut(n,this.precision,this.rounding)}function Qxe(e){return new this(e).tan()}function ewe(e){return new this(e).tanh()}function twe(e){return ut(e=new this(e),e.e+1,1)}ke[Symbol.for("nodejs.util.inspect.custom")]=ke.toString;ke[Symbol.toStringTag]="Decimal";var si=ke.constructor=p7(gy);zp=new si(zp);Lp=new si(Lp);var nwe="BigNumber",rwe=["?on","config"],owe=se(nwe,rwe,e=>{var{on:t,config:n}=e,r=si.clone({precision:n.precision,modulo:si.EUCLID});return r.prototype=Object.create(r.prototype),r.prototype.type="BigNumber",r.prototype.isBigNumber=!0,r.prototype.toJSON=function(){return{mathjs:"BigNumber",value:this.toString()}},r.fromJSON=function(o){return new r(o.value)},t&&t("config",function(o,a){o.precision!==a.precision&&r.config({precision:o.precision})}),r},{isClass:!0}),wy={},awe={get exports(){return wy},set exports(e){wy=e}};/**
- * @license Complex.js v2.1.1 12/05/2020
- *
- * Copyright (c) 2020, Robert Eisele (robert@xarg.org)
- * Dual licensed under the MIT or GPL Version 2 licenses.
- **/(function(e,t){(function(n){var r=Math.cosh||function(d){return Math.abs(d)<1e-9?1-d:(Math.exp(d)+Math.exp(-d))*.5},o=Math.sinh||function(d){return Math.abs(d)<1e-9?d:(Math.exp(d)-Math.exp(-d))*.5},a=function(d){var f=Math.PI/4;if(-f>d||d>f)return Math.cos(d)-1;var p=d*d;return p*(p*(p*(p*(p*(p*(p*(p/20922789888e3-1/87178291200)+1/479001600)-1/3628800)+1/40320)-1/720)+1/24)-1/2)},i=function(d,f){var p=Math.abs(d),v=Math.abs(f);return p<3e3&&v<3e3?Math.sqrt(p*p+v*v):(p<v?(p=v,v=d/f):v=f/d,p*Math.sqrt(1+v*v))},l=function(){throw SyntaxError("Invalid Param")};function s(d,f){var p=Math.abs(d),v=Math.abs(f);return d===0?Math.log(v):f===0?Math.log(p):p<3e3&&v<3e3?Math.log(d*d+f*f)*.5:(d=d/2,f=f/2,.5*Math.log(d*d+f*f)+Math.LN2)}var u=function(d,f){var p={re:0,im:0};if(d==null)p.re=p.im=0;else if(f!==void 0)p.re=d,p.im=f;else switch(typeof d){case"object":if("im"in d&&"re"in d)p.re=d.re,p.im=d.im;else if("abs"in d&&"arg"in d){if(!Number.isFinite(d.abs)&&Number.isFinite(d.arg))return c.INFINITY;p.re=d.abs*Math.cos(d.arg),p.im=d.abs*Math.sin(d.arg)}else if("r"in d&&"phi"in d){if(!Number.isFinite(d.r)&&Number.isFinite(d.phi))return c.INFINITY;p.re=d.r*Math.cos(d.phi),p.im=d.r*Math.sin(d.phi)}else d.length===2?(p.re=d[0],p.im=d[1]):l();break;case"string":p.im=p.re=0;var v=d.match(/\d+\.?\d*e[+-]?\d+|\d+\.?\d*|\.\d+|./g),m=1,h=0;v===null&&l();for(var g=0;g<v.length;g++){var x=v[g];x===" "||x===" "||x===`
- `||(x==="+"?m++:x==="-"?h++:x==="i"||x==="I"?(m+h===0&&l(),v[g+1]!==" "&&!isNaN(v[g+1])?(p.im+=parseFloat((h%2?"-":"")+v[g+1]),g++):p.im+=parseFloat((h%2?"-":"")+"1"),m=h=0):((m+h===0||isNaN(x))&&l(),v[g+1]==="i"||v[g+1]==="I"?(p.im+=parseFloat((h%2?"-":"")+x),g++):p.re+=parseFloat((h%2?"-":"")+x),m=h=0))}m+h>0&&l();break;case"number":p.im=0,p.re=d;break;default:l()}return isNaN(p.re)||isNaN(p.im),p};function c(d,f){if(!(this instanceof c))return new c(d,f);var p=u(d,f);this.re=p.re,this.im=p.im}c.prototype={re:0,im:0,sign:function(){var d=this.abs();return new c(this.re/d,this.im/d)},add:function(d,f){var p=new c(d,f);return this.isInfinite()&&p.isInfinite()?c.NAN:this.isInfinite()||p.isInfinite()?c.INFINITY:new c(this.re+p.re,this.im+p.im)},sub:function(d,f){var p=new c(d,f);return this.isInfinite()&&p.isInfinite()?c.NAN:this.isInfinite()||p.isInfinite()?c.INFINITY:new c(this.re-p.re,this.im-p.im)},mul:function(d,f){var p=new c(d,f);return this.isInfinite()&&p.isZero()||this.isZero()&&p.isInfinite()?c.NAN:this.isInfinite()||p.isInfinite()?c.INFINITY:p.im===0&&this.im===0?new c(this.re*p.re,0):new c(this.re*p.re-this.im*p.im,this.re*p.im+this.im*p.re)},div:function(d,f){var p=new c(d,f);if(this.isZero()&&p.isZero()||this.isInfinite()&&p.isInfinite())return c.NAN;if(this.isInfinite()||p.isZero())return c.INFINITY;if(this.isZero()||p.isInfinite())return c.ZERO;d=this.re,f=this.im;var v=p.re,m=p.im,h,g;return m===0?new c(d/v,f/v):Math.abs(v)<Math.abs(m)?(g=v/m,h=v*g+m,new c((d*g+f)/h,(f*g-d)/h)):(g=m/v,h=m*g+v,new c((d+f*g)/h,(f-d*g)/h))},pow:function(d,f){var p=new c(d,f);if(d=this.re,f=this.im,p.isZero())return c.ONE;if(p.im===0){if(f===0&&d>0)return new c(Math.pow(d,p.re),0);if(d===0)switch((p.re%4+4)%4){case 0:return new c(Math.pow(f,p.re),0);case 1:return new c(0,Math.pow(f,p.re));case 2:return new c(-Math.pow(f,p.re),0);case 3:return new c(0,-Math.pow(f,p.re))}}if(d===0&&f===0&&p.re>0&&p.im>=0)return c.ZERO;var v=Math.atan2(f,d),m=s(d,f);return d=Math.exp(p.re*m-p.im*v),f=p.im*m+p.re*v,new c(d*Math.cos(f),d*Math.sin(f))},sqrt:function(){var d=this.re,f=this.im,p=this.abs(),v,m;if(d>=0){if(f===0)return new c(Math.sqrt(d),0);v=.5*Math.sqrt(2*(p+d))}else v=Math.abs(f)/Math.sqrt(2*(p-d));return d<=0?m=.5*Math.sqrt(2*(p-d)):m=Math.abs(f)/Math.sqrt(2*(p+d)),new c(v,f<0?-m:m)},exp:function(){var d=Math.exp(this.re);return this.im,new c(d*Math.cos(this.im),d*Math.sin(this.im))},expm1:function(){var d=this.re,f=this.im;return new c(Math.expm1(d)*Math.cos(f)+a(f),Math.exp(d)*Math.sin(f))},log:function(){var d=this.re,f=this.im;return new c(s(d,f),Math.atan2(f,d))},abs:function(){return i(this.re,this.im)},arg:function(){return Math.atan2(this.im,this.re)},sin:function(){var d=this.re,f=this.im;return new c(Math.sin(d)*r(f),Math.cos(d)*o(f))},cos:function(){var d=this.re,f=this.im;return new c(Math.cos(d)*r(f),-Math.sin(d)*o(f))},tan:function(){var d=2*this.re,f=2*this.im,p=Math.cos(d)+r(f);return new c(Math.sin(d)/p,o(f)/p)},cot:function(){var d=2*this.re,f=2*this.im,p=Math.cos(d)-r(f);return new c(-Math.sin(d)/p,o(f)/p)},sec:function(){var d=this.re,f=this.im,p=.5*r(2*f)+.5*Math.cos(2*d);return new c(Math.cos(d)*r(f)/p,Math.sin(d)*o(f)/p)},csc:function(){var d=this.re,f=this.im,p=.5*r(2*f)-.5*Math.cos(2*d);return new c(Math.sin(d)*r(f)/p,-Math.cos(d)*o(f)/p)},asin:function(){var d=this.re,f=this.im,p=new c(f*f-d*d+1,-2*d*f).sqrt(),v=new c(p.re-f,p.im+d).log();return new c(v.im,-v.re)},acos:function(){var d=this.re,f=this.im,p=new c(f*f-d*d+1,-2*d*f).sqrt(),v=new c(p.re-f,p.im+d).log();return new c(Math.PI/2-v.im,v.re)},atan:function(){var d=this.re,f=this.im;if(d===0){if(f===1)return new c(0,1/0);if(f===-1)return new c(0,-1/0)}var p=d*d+(1-f)*(1-f),v=new c((1-f*f-d*d)/p,-2*d/p).log();return new c(-.5*v.im,.5*v.re)},acot:function(){var d=this.re,f=this.im;if(f===0)return new c(Math.atan2(1,d),0);var p=d*d+f*f;return p!==0?new c(d/p,-f/p).atan():new c(d!==0?d/0:0,f!==0?-f/0:0).atan()},asec:function(){var d=this.re,f=this.im;if(d===0&&f===0)return new c(0,1/0);var p=d*d+f*f;return p!==0?new c(d/p,-f/p).acos():new c(d!==0?d/0:0,f!==0?-f/0:0).acos()},acsc:function(){var d=this.re,f=this.im;if(d===0&&f===0)return new c(Math.PI/2,1/0);var p=d*d+f*f;return p!==0?new c(d/p,-f/p).asin():new c(d!==0?d/0:0,f!==0?-f/0:0).asin()},sinh:function(){var d=this.re,f=this.im;return new c(o(d)*Math.cos(f),r(d)*Math.sin(f))},cosh:function(){var d=this.re,f=this.im;return new c(r(d)*Math.cos(f),o(d)*Math.sin(f))},tanh:function(){var d=2*this.re,f=2*this.im,p=r(d)+Math.cos(f);return new c(o(d)/p,Math.sin(f)/p)},coth:function(){var d=2*this.re,f=2*this.im,p=r(d)-Math.cos(f);return new c(o(d)/p,-Math.sin(f)/p)},csch:function(){var d=this.re,f=this.im,p=Math.cos(2*f)-r(2*d);return new c(-2*o(d)*Math.cos(f)/p,2*r(d)*Math.sin(f)/p)},sech:function(){var d=this.re,f=this.im,p=Math.cos(2*f)+r(2*d);return new c(2*r(d)*Math.cos(f)/p,-2*o(d)*Math.sin(f)/p)},asinh:function(){var d=this.im;this.im=-this.re,this.re=d;var f=this.asin();return this.re=-this.im,this.im=d,d=f.re,f.re=-f.im,f.im=d,f},acosh:function(){var d=this.acos();if(d.im<=0){var f=d.re;d.re=-d.im,d.im=f}else{var f=d.im;d.im=-d.re,d.re=f}return d},atanh:function(){var d=this.re,f=this.im,p=d>1&&f===0,v=1-d,m=1+d,h=v*v+f*f,g=h!==0?new c((m*v-f*f)/h,(f*v+m*f)/h):new c(d!==-1?d/0:0,f!==0?f/0:0),x=g.re;return g.re=s(g.re,g.im)/2,g.im=Math.atan2(g.im,x)/2,p&&(g.im=-g.im),g},acoth:function(){var d=this.re,f=this.im;if(d===0&&f===0)return new c(0,Math.PI/2);var p=d*d+f*f;return p!==0?new c(d/p,-f/p).atanh():new c(d!==0?d/0:0,f!==0?-f/0:0).atanh()},acsch:function(){var d=this.re,f=this.im;if(f===0)return new c(d!==0?Math.log(d+Math.sqrt(d*d+1)):1/0,0);var p=d*d+f*f;return p!==0?new c(d/p,-f/p).asinh():new c(d!==0?d/0:0,f!==0?-f/0:0).asinh()},asech:function(){var d=this.re,f=this.im;if(this.isZero())return c.INFINITY;var p=d*d+f*f;return p!==0?new c(d/p,-f/p).acosh():new c(d!==0?d/0:0,f!==0?-f/0:0).acosh()},inverse:function(){if(this.isZero())return c.INFINITY;if(this.isInfinite())return c.ZERO;var d=this.re,f=this.im,p=d*d+f*f;return new c(d/p,-f/p)},conjugate:function(){return new c(this.re,-this.im)},neg:function(){return new c(-this.re,-this.im)},ceil:function(d){return d=Math.pow(10,d||0),new c(Math.ceil(this.re*d)/d,Math.ceil(this.im*d)/d)},floor:function(d){return d=Math.pow(10,d||0),new c(Math.floor(this.re*d)/d,Math.floor(this.im*d)/d)},round:function(d){return d=Math.pow(10,d||0),new c(Math.round(this.re*d)/d,Math.round(this.im*d)/d)},equals:function(d,f){var p=new c(d,f);return Math.abs(p.re-this.re)<=c.EPSILON&&Math.abs(p.im-this.im)<=c.EPSILON},clone:function(){return new c(this.re,this.im)},toString:function(){var d=this.re,f=this.im,p="";return this.isNaN()?"NaN":this.isInfinite()?"Infinity":(Math.abs(d)<c.EPSILON&&(d=0),Math.abs(f)<c.EPSILON&&(f=0),f===0?p+d:(d!==0?(p+=d,p+=" ",f<0?(f=-f,p+="-"):p+="+",p+=" "):f<0&&(f=-f,p+="-"),f!==1&&(p+=f),p+"i"))},toVector:function(){return[this.re,this.im]},valueOf:function(){return this.im===0?this.re:null},isNaN:function(){return isNaN(this.re)||isNaN(this.im)},isZero:function(){return this.im===0&&this.re===0},isFinite:function(){return isFinite(this.re)&&isFinite(this.im)},isInfinite:function(){return!(this.isNaN()||this.isFinite())}},c.ZERO=new c(0,0),c.ONE=new c(1,0),c.I=new c(0,1),c.PI=new c(Math.PI,0),c.E=new c(Math.E,0),c.INFINITY=new c(1/0,1/0),c.NAN=new c(NaN,NaN),c.EPSILON=1e-15,Object.defineProperty(c,"__esModule",{value:!0}),c.default=c,c.Complex=c,e.exports=c})()})(awe);const kn=LP(wy);var iwe="Complex",lwe=[],swe=se(iwe,lwe,()=>(Object.defineProperty(kn,"name",{value:"Complex"}),kn.prototype.constructor=kn,kn.prototype.type="Complex",kn.prototype.isComplex=!0,kn.prototype.toJSON=function(){return{mathjs:"Complex",re:this.re,im:this.im}},kn.prototype.toPolar=function(){return{r:this.abs(),phi:this.arg()}},kn.prototype.format=function(e){var t="",n=this.im,r=this.re,o=ji(this.re,e),a=ji(this.im,e),i=Pt(e)?e:e?e.precision:null;if(i!==null){var l=Math.pow(10,-i);Math.abs(r/n)<l&&(r=0),Math.abs(n/r)<l&&(n=0)}return n===0?t=o:r===0?n===1?t="i":n===-1?t="-i":t=a+"i":n<0?n===-1?t=o+" - i":t=o+" - "+a.substring(1)+"i":n===1?t=o+" + i":t=o+" + "+a+"i",t},kn.fromPolar=function(e){switch(arguments.length){case 1:{var t=arguments[0];if(typeof t=="object")return kn(t);throw new TypeError("Input has to be an object with r and phi keys.")}case 2:{var n=arguments[0],r=arguments[1];if(Pt(n)){if(uo(r)&&r.hasBase("ANGLE")&&(r=r.toNumber("rad")),Pt(r))return new kn({r:n,phi:r});throw new TypeError("Phi is not a number nor an angle unit.")}else throw new TypeError("Radius r is not a number.")}default:throw new SyntaxError("Wrong number of arguments in function fromPolar")}},kn.prototype.valueOf=kn.prototype.toString,kn.fromJSON=function(e){return new kn(e)},kn.compare=function(e,t){return e.re>t.re?1:e.re<t.re?-1:e.im>t.im?1:e.im<t.im?-1:0},kn),{isClass:!0}),Sy={},uwe={get exports(){return Sy},set exports(e){Sy=e}};/**
- * @license Fraction.js v4.2.0 05/03/2022
- * https://www.xarg.org/2014/03/rational-numbers-in-javascript/
- *
- * Copyright (c) 2021, Robert Eisele (robert@xarg.org)
- * Dual licensed under the MIT or GPL Version 2 licenses.
- **/(function(e,t){(function(n){var r=2e3,o={s:1,n:0,d:1};function a(v,m){if(isNaN(v=parseInt(v,10)))throw p.InvalidParameter;return v*m}function i(v,m){if(m===0)throw p.DivisionByZero;var h=Object.create(p.prototype);h.s=v<0?-1:1,v=v<0?-v:v;var g=f(v,m);return h.n=v/g,h.d=m/g,h}function l(v){for(var m={},h=v,g=2,x=4;x<=h;){for(;h%g===0;)h/=g,m[g]=(m[g]||0)+1;x+=1+2*g++}return h!==v?h>1&&(m[h]=(m[h]||0)+1):m[v]=(m[v]||0)+1,m}var s=function(v,m){var h=0,g=1,x=1,y=0,w=0,b=0,S=1,$=1,D=0,O=1,A=1,T=1,M=1e7,B;if(v!=null)if(m!==void 0){if(h=v,g=m,x=h*g,h%1!==0||g%1!==0)throw p.NonIntegerParameter}else switch(typeof v){case"object":{if("d"in v&&"n"in v)h=v.n,g=v.d,"s"in v&&(h*=v.s);else if(0 in v)h=v[0],1 in v&&(g=v[1]);else throw p.InvalidParameter;x=h*g;break}case"number":{if(v<0&&(x=v,v=-v),v%1===0)h=v;else if(v>0){for(v>=1&&($=Math.pow(10,Math.floor(1+Math.log(v)/Math.LN10)),v/=$);O<=M&&T<=M;)if(B=(D+A)/(O+T),v===B){O+T<=M?(h=D+A,g=O+T):T>O?(h=A,g=T):(h=D,g=O);break}else v>B?(D+=A,O+=T):(A+=D,T+=O),O>M?(h=A,g=T):(h=D,g=O);h*=$}else(isNaN(v)||isNaN(m))&&(g=h=NaN);break}case"string":{if(O=v.match(/\d+|./g),O===null)throw p.InvalidParameter;if(O[D]==="-"?(x=-1,D++):O[D]==="+"&&D++,O.length===D+1?w=a(O[D++],x):O[D+1]==="."||O[D]==="."?(O[D]!=="."&&(y=a(O[D++],x)),D++,(D+1===O.length||O[D+1]==="("&&O[D+3]===")"||O[D+1]==="'"&&O[D+3]==="'")&&(w=a(O[D],x),S=Math.pow(10,O[D].length),D++),(O[D]==="("&&O[D+2]===")"||O[D]==="'"&&O[D+2]==="'")&&(b=a(O[D+1],x),$=Math.pow(10,O[D+1].length)-1,D+=3)):O[D+1]==="/"||O[D+1]===":"?(w=a(O[D],x),S=a(O[D+2],1),D+=3):O[D+3]==="/"&&O[D+1]===" "&&(y=a(O[D],x),w=a(O[D+2],x),S=a(O[D+4],1),D+=5),O.length<=D){g=S*$,x=h=b+g*y+$*w;break}}default:throw p.InvalidParameter}if(g===0)throw p.DivisionByZero;o.s=x<0?-1:1,o.n=Math.abs(h),o.d=Math.abs(g)};function u(v,m,h){for(var g=1;m>0;v=v*v%h,m>>=1)m&1&&(g=g*v%h);return g}function c(v,m){for(;m%2===0;m/=2);for(;m%5===0;m/=5);if(m===1)return 0;for(var h=10%m,g=1;h!==1;g++)if(h=h*10%m,g>r)return 0;return g}function d(v,m,h){for(var g=1,x=u(10,h,m),y=0;y<300;y++){if(g===x)return y;g=g*10%m,x=x*10%m}return 0}function f(v,m){if(!v)return m;if(!m)return v;for(;;){if(v%=m,!v)return m;if(m%=v,!m)return v}}function p(v,m){if(s(v,m),this instanceof p)v=f(o.d,o.n),this.s=o.s,this.n=o.n/v,this.d=o.d/v;else return i(o.s*o.n,o.d)}p.DivisionByZero=new Error("Division by Zero"),p.InvalidParameter=new Error("Invalid argument"),p.NonIntegerParameter=new Error("Parameters must be integer"),p.prototype={s:1,n:0,d:1,abs:function(){return i(this.n,this.d)},neg:function(){return i(-this.s*this.n,this.d)},add:function(v,m){return s(v,m),i(this.s*this.n*o.d+o.s*this.d*o.n,this.d*o.d)},sub:function(v,m){return s(v,m),i(this.s*this.n*o.d-o.s*this.d*o.n,this.d*o.d)},mul:function(v,m){return s(v,m),i(this.s*o.s*this.n*o.n,this.d*o.d)},div:function(v,m){return s(v,m),i(this.s*o.s*this.n*o.d,this.d*o.n)},clone:function(){return i(this.s*this.n,this.d)},mod:function(v,m){if(isNaN(this.n)||isNaN(this.d))return new p(NaN);if(v===void 0)return i(this.s*this.n%this.d,1);if(s(v,m),o.n===0&&this.d===0)throw p.DivisionByZero;return i(this.s*(o.d*this.n)%(o.n*this.d),o.d*this.d)},gcd:function(v,m){return s(v,m),i(f(o.n,this.n)*f(o.d,this.d),o.d*this.d)},lcm:function(v,m){return s(v,m),o.n===0&&this.n===0?i(0,1):i(o.n*this.n,f(o.n,this.n)*f(o.d,this.d))},ceil:function(v){return v=Math.pow(10,v||0),isNaN(this.n)||isNaN(this.d)?new p(NaN):i(Math.ceil(v*this.s*this.n/this.d),v)},floor:function(v){return v=Math.pow(10,v||0),isNaN(this.n)||isNaN(this.d)?new p(NaN):i(Math.floor(v*this.s*this.n/this.d),v)},round:function(v){return v=Math.pow(10,v||0),isNaN(this.n)||isNaN(this.d)?new p(NaN):i(Math.round(v*this.s*this.n/this.d),v)},inverse:function(){return i(this.s*this.d,this.n)},pow:function(v,m){if(s(v,m),o.d===1)return o.s<0?i(Math.pow(this.s*this.d,o.n),Math.pow(this.n,o.n)):i(Math.pow(this.s*this.n,o.n),Math.pow(this.d,o.n));if(this.s<0)return null;var h=l(this.n),g=l(this.d),x=1,y=1;for(var w in h)if(w!=="1"){if(w==="0"){x=0;break}if(h[w]*=o.n,h[w]%o.d===0)h[w]/=o.d;else return null;x*=Math.pow(w,h[w])}for(var w in g)if(w!=="1"){if(g[w]*=o.n,g[w]%o.d===0)g[w]/=o.d;else return null;y*=Math.pow(w,g[w])}return o.s<0?i(y,x):i(x,y)},equals:function(v,m){return s(v,m),this.s*this.n*o.d===o.s*o.n*this.d},compare:function(v,m){s(v,m);var h=this.s*this.n*o.d-o.s*o.n*this.d;return(0<h)-(h<0)},simplify:function(v){if(isNaN(this.n)||isNaN(this.d))return this;v=v||.001;for(var m=this.abs(),h=m.toContinued(),g=1;g<h.length;g++){for(var x=i(h[g-1],1),y=g-2;y>=0;y--)x=x.inverse().add(h[y]);if(x.sub(m).abs().valueOf()<v)return x.mul(this.s)}return this},divisible:function(v,m){return s(v,m),!(!(o.n*this.d)||this.n*o.d%(o.n*this.d))},valueOf:function(){return this.s*this.n/this.d},toFraction:function(v){var m,h="",g=this.n,x=this.d;return this.s<0&&(h+="-"),x===1?h+=g:(v&&(m=Math.floor(g/x))>0&&(h+=m,h+=" ",g%=x),h+=g,h+="/",h+=x),h},toLatex:function(v){var m,h="",g=this.n,x=this.d;return this.s<0&&(h+="-"),x===1?h+=g:(v&&(m=Math.floor(g/x))>0&&(h+=m,g%=x),h+="\\frac{",h+=g,h+="}{",h+=x,h+="}"),h},toContinued:function(){var v,m=this.n,h=this.d,g=[];if(isNaN(m)||isNaN(h))return g;do g.push(Math.floor(m/h)),v=m%h,m=h,h=v;while(m!==1);return g},toString:function(v){var m=this.n,h=this.d;if(isNaN(m)||isNaN(h))return"NaN";v=v||15;var g=c(m,h),x=d(m,h,g),y=this.s<0?"-":"";if(y+=m/h|0,m%=h,m*=10,m&&(y+="."),g){for(var w=x;w--;)y+=m/h|0,m%=h,m*=10;y+="(";for(var w=g;w--;)y+=m/h|0,m%=h,m*=10;y+=")"}else for(var w=v;m&&w--;)y+=m/h|0,m%=h,m*=10;return y}},Object.defineProperty(p,"__esModule",{value:!0}),p.default=p,p.Fraction=p,e.exports=p})()})(uwe);const ea=LP(Sy);var cwe="Fraction",dwe=[],fwe=se(cwe,dwe,()=>(Object.defineProperty(ea,"name",{value:"Fraction"}),ea.prototype.constructor=ea,ea.prototype.type="Fraction",ea.prototype.isFraction=!0,ea.prototype.toJSON=function(){return{mathjs:"Fraction",n:this.s*this.n,d:this.d}},ea.fromJSON=function(e){return new ea(e)},ea),{isClass:!0}),pwe="Range",mwe=[],vwe=se(pwe,mwe,()=>{function e(t,n,r){if(!(this instanceof e))throw new SyntaxError("Constructor must be called with the new operator");var o=t!=null,a=n!=null,i=r!=null;if(o){if(Ot(t))t=t.toNumber();else if(typeof t!="number")throw new TypeError("Parameter start must be a number")}if(a){if(Ot(n))n=n.toNumber();else if(typeof n!="number")throw new TypeError("Parameter end must be a number")}if(i){if(Ot(r))r=r.toNumber();else if(typeof r!="number")throw new TypeError("Parameter step must be a number")}this.start=o?parseFloat(t):0,this.end=a?parseFloat(n):0,this.step=i?parseFloat(r):1}return e.prototype.type="Range",e.prototype.isRange=!0,e.parse=function(t){if(typeof t!="string")return null;var n=t.split(":"),r=n.map(function(a){return parseFloat(a)}),o=r.some(function(a){return isNaN(a)});if(o)return null;switch(r.length){case 2:return new e(r[0],r[1]);case 3:return new e(r[0],r[2],r[1]);default:return null}},e.prototype.clone=function(){return new e(this.start,this.end,this.step)},e.prototype.size=function(){var t=0,n=this.start,r=this.step,o=this.end,a=o-n;return Ja(r)===Ja(a)?t=Math.ceil(a/r):a===0&&(t=0),isNaN(t)&&(t=0),[t]},e.prototype.min=function(){var t=this.size()[0];if(t>0)return this.step>0?this.start:this.start+(t-1)*this.step},e.prototype.max=function(){var t=this.size()[0];if(t>0)return this.step>0?this.start+(t-1)*this.step:this.start},e.prototype.forEach=function(t){var n=this.start,r=this.step,o=this.end,a=0;if(r>0)for(;n<o;)t(n,[a],this),n+=r,a++;else if(r<0)for(;n>o;)t(n,[a],this),n+=r,a++},e.prototype.map=function(t){var n=[];return this.forEach(function(r,o,a){n[o[0]]=t(r,o,a)}),n},e.prototype.toArray=function(){var t=[];return this.forEach(function(n,r){t[r[0]]=n}),t},e.prototype.valueOf=function(){return this.toArray()},e.prototype.format=function(t){var n=ji(this.start,t);return this.step!==1&&(n+=":"+ji(this.step,t)),n+=":"+ji(this.end,t),n},e.prototype.toString=function(){return this.format()},e.prototype.toJSON=function(){return{mathjs:"Range",start:this.start,end:this.end,step:this.step}},e.fromJSON=function(t){return new e(t.start,t.end,t.step)},e},{isClass:!0}),hwe="Matrix",gwe=[],ywe=se(hwe,gwe,()=>{function e(){if(!(this instanceof e))throw new SyntaxError("Constructor must be called with the new operator")}return e.prototype.type="Matrix",e.prototype.isMatrix=!0,e.prototype.storage=function(){throw new Error("Cannot invoke storage on a Matrix interface")},e.prototype.datatype=function(){throw new Error("Cannot invoke datatype on a Matrix interface")},e.prototype.create=function(t,n){throw new Error("Cannot invoke create on a Matrix interface")},e.prototype.subset=function(t,n,r){throw new Error("Cannot invoke subset on a Matrix interface")},e.prototype.get=function(t){throw new Error("Cannot invoke get on a Matrix interface")},e.prototype.set=function(t,n,r){throw new Error("Cannot invoke set on a Matrix interface")},e.prototype.resize=function(t,n){throw new Error("Cannot invoke resize on a Matrix interface")},e.prototype.reshape=function(t,n){throw new Error("Cannot invoke reshape on a Matrix interface")},e.prototype.clone=function(){throw new Error("Cannot invoke clone on a Matrix interface")},e.prototype.size=function(){throw new Error("Cannot invoke size on a Matrix interface")},e.prototype.map=function(t,n){throw new Error("Cannot invoke map on a Matrix interface")},e.prototype.forEach=function(t){throw new Error("Cannot invoke forEach on a Matrix interface")},e.prototype[Symbol.iterator]=function(){throw new Error("Cannot iterate a Matrix interface")},e.prototype.toArray=function(){throw new Error("Cannot invoke toArray on a Matrix interface")},e.prototype.valueOf=function(){throw new Error("Cannot invoke valueOf on a Matrix interface")},e.prototype.format=function(t){throw new Error("Cannot invoke format on a Matrix interface")},e.prototype.toString=function(){throw new Error("Cannot invoke toString on a Matrix interface")},e},{isClass:!0});function bwe(e){var t=0,n=1,r=Object.create(null),o=Object.create(null),a=0,i=function(s){var u=o[s];if(u&&(delete r[u],delete o[s],--t,n===u)){if(!t){a=0,n=1;return}for(;!hasOwnProperty.call(r,++n););}};return e=Math.abs(e),{hit:function(s){var u=o[s],c=++a;if(r[c]=s,o[s]=c,!u)return++t,t<=e?void 0:(s=r[n],i(s),s);if(delete r[u],n===u)for(;!hasOwnProperty.call(r,++n););},delete:i,clear:function(){t=a=0,n=1,r=Object.create(null),o=Object.create(null)}}}function Bc(e){var{hasher:t,limit:n}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return n=n??Number.POSITIVE_INFINITY,t=t??JSON.stringify,function r(){typeof r.cache!="object"&&(r.cache={values:new Map,lru:bwe(n||Number.POSITIVE_INFINITY)});for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];var i=t(o);if(r.cache.values.has(i))return r.cache.lru.hit(i),r.cache.values.get(i);var l=e.apply(e,o);return r.cache.values.set(i,l),r.cache.values.delete(r.cache.lru.hit(i)),l}}function mi(e){return Object.keys(e.signatures||{}).reduce(function(t,n){var r=(n.match(/,/g)||[]).length+1;return Math.max(t,r)},-1)}var xwe="DenseMatrix",wwe=["Matrix"],Swe=se(xwe,wwe,e=>{var{Matrix:t}=e;function n(c,d){if(!(this instanceof n))throw new SyntaxError("Constructor must be called with the new operator");if(d&&!Qn(d))throw new Error("Invalid datatype: "+d);if(mt(c))c.type==="DenseMatrix"?(this._data=ct(c._data),this._size=ct(c._size),this._datatype=d||c._datatype):(this._data=c.toArray(),this._size=c.size(),this._datatype=d||c._datatype);else if(c&&Ut(c.data)&&Ut(c.size))this._data=c.data,this._size=c.size,v4(this._data,this._size),this._datatype=d||c.datatype;else if(Ut(c))this._data=u(c),this._size=Mt(this._data),v4(this._data,this._size),this._datatype=d;else{if(c)throw new TypeError("Unsupported type of data ("+an(c)+")");this._data=[],this._size=[0],this._datatype=d}}n.prototype=new t,n.prototype.createDenseMatrix=function(c,d){return new n(c,d)},Object.defineProperty(n,"name",{value:"DenseMatrix"}),n.prototype.constructor=n,n.prototype.type="DenseMatrix",n.prototype.isDenseMatrix=!0,n.prototype.getDataType=function(){return lc(this._data,an)},n.prototype.storage=function(){return"dense"},n.prototype.datatype=function(){return this._datatype},n.prototype.create=function(c,d){return new n(c,d)},n.prototype.subset=function(c,d,f){switch(arguments.length){case 1:return r(this,c);case 2:case 3:return a(this,c,d,f);default:throw new SyntaxError("Wrong number of arguments")}},n.prototype.get=function(c){if(!Ut(c))throw new TypeError("Array expected");if(c.length!==this._size.length)throw new Dt(c.length,this._size.length);for(var d=0;d<c.length;d++)Xt(c[d],this._size[d]);for(var f=this._data,p=0,v=c.length;p<v;p++){var m=c[p];Xt(m,f.length),f=f[m]}return f},n.prototype.set=function(c,d,f){if(!Ut(c))throw new TypeError("Array expected");if(c.length<this._size.length)throw new Dt(c.length,this._size.length,"<");var p,v,m,h=c.map(function(x){return x+1});s(this,h,f);var g=this._data;for(p=0,v=c.length-1;p<v;p++)m=c[p],Xt(m,g.length),g=g[m];return m=c[c.length-1],Xt(m,g.length),g[m]=d,this};function r(c,d){if(!Ic(d))throw new TypeError("Invalid index");var f=d.isScalar();if(f)return c.get(d.min());var p=d.size();if(p.length!==c._size.length)throw new Dt(p.length,c._size.length);for(var v=d.min(),m=d.max(),h=0,g=c._size.length;h<g;h++)Xt(v[h],c._size[h]),Xt(m[h],c._size[h]);return new n(o(c._data,d,p.length,0),c._datatype)}function o(c,d,f,p){var v=p===f-1,m=d.dimension(p);return v?m.map(function(h){return Xt(h,c.length),c[h]}).valueOf():m.map(function(h){Xt(h,c.length);var g=c[h];return o(g,d,f,p+1)}).valueOf()}function a(c,d,f,p){if(!d||d.isIndex!==!0)throw new TypeError("Invalid index");var v=d.size(),m=d.isScalar(),h;if(mt(f)?(h=f.size(),f=f.valueOf()):h=Mt(f),m){if(h.length!==0)throw new TypeError("Scalar expected");c.set(d.min(),f,p)}else{if(v.length<c._size.length)throw new Dt(v.length,c._size.length,"<");if(h.length<v.length){for(var g=0,x=0;v[g]===1&&h[g]===1;)g++;for(;v[g]===1;)x++,g++;f=Z_(f,v.length,x,h)}if(!ic(v,h))throw new Dt(v,h,">");var y=d.max().map(function(S){return S+1});s(c,y,p);var w=v.length,b=0;i(c._data,d,f,w,b)}return c}function i(c,d,f,p,v){var m=v===p-1,h=d.dimension(v);m?h.forEach(function(g,x){Xt(g),c[g]=f[x[0]]}):h.forEach(function(g,x){Xt(g),i(c[g],d,f[x[0]],p,v+1)})}n.prototype.resize=function(c,d,f){if(!wo(c))throw new TypeError("Array or Matrix expected");var p=c.valueOf().map(m=>Array.isArray(m)&&m.length===1?m[0]:m),v=f?this.clone():this;return l(v,p,d)};function l(c,d,f){if(d.length===0){for(var p=c._data;Ut(p);)p=p[0];return p}return c._size=d.slice(0),c._data=ys(c._data,c._size,f),c}n.prototype.reshape=function(c,d){var f=d?this.clone():this;f._data=G_(f._data,c);var p=f._size.reduce((v,m)=>v*m);return f._size=Hw(c,p),f};function s(c,d,f){for(var p=c._size.slice(0),v=!1;p.length<d.length;)p.push(0),v=!0;for(var m=0,h=d.length;m<h;m++)d[m]>p[m]&&(p[m]=d[m],v=!0);v&&l(c,p,f)}n.prototype.clone=function(){var c=new n({data:ct(this._data),size:ct(this._size),datatype:this._datatype});return c},n.prototype.size=function(){return this._size.slice(0)},n.prototype.map=function(c){var d=this,f=mi(c),p=function h(g,x){return Ut(g)?g.map(function(y,w){return h(y,x.concat(w))}):f===1?c(g):f===2?c(g,x):c(g,x,d)},v=p(this._data,[]),m=this._datatype!==void 0?lc(v,an):void 0;return new n(v,m)},n.prototype.forEach=function(c){var d=this,f=function p(v,m){Ut(v)?v.forEach(function(h,g){p(h,m.concat(g))}):c(v,m,d)};f(this._data,[])},n.prototype[Symbol.iterator]=function*(){var c=function*d(f,p){if(Ut(f))for(var v=0;v<f.length;v++)yield*d(f[v],p.concat(v));else yield{value:f,index:p}};yield*c(this._data,[])},n.prototype.rows=function(){var c=[],d=this.size();if(d.length!==2)throw new TypeError("Rows can only be returned for a 2D matrix.");var f=this._data;for(var p of f)c.push(new n([p],this._datatype));return c},n.prototype.columns=function(){var c=this,d=[],f=this.size();if(f.length!==2)throw new TypeError("Rows can only be returned for a 2D matrix.");for(var p=this._data,v=function(g){var x=p.map(y=>[y[g]]);d.push(new n(x,c._datatype))},m=0;m<f[1];m++)v(m);return d},n.prototype.toArray=function(){return ct(this._data)},n.prototype.valueOf=function(){return this._data},n.prototype.format=function(c){return Et(this._data,c)},n.prototype.toString=function(){return Et(this._data)},n.prototype.toJSON=function(){return{mathjs:"DenseMatrix",data:this._data,size:this._size,datatype:this._datatype}},n.prototype.diagonal=function(c){if(c){if(Ot(c)&&(c=c.toNumber()),!Pt(c)||!ot(c))throw new TypeError("The parameter k must be an integer number")}else c=0;for(var d=c>0?c:0,f=c<0?-c:0,p=this._size[0],v=this._size[1],m=Math.min(p-f,v-d),h=[],g=0;g<m;g++)h[g]=this._data[g+f][g+d];return new n({data:h,size:[m],datatype:this._datatype})},n.diagonal=function(c,d,f,p){if(!Ut(c))throw new TypeError("Array expected, size parameter");if(c.length!==2)throw new Error("Only two dimensions matrix are supported");if(c=c.map(function($){if(Ot($)&&($=$.toNumber()),!Pt($)||!ot($)||$<1)throw new Error("Size values must be positive integers");return $}),f){if(Ot(f)&&(f=f.toNumber()),!Pt(f)||!ot(f))throw new TypeError("The parameter k must be an integer number")}else f=0;var v=f>0?f:0,m=f<0?-f:0,h=c[0],g=c[1],x=Math.min(h-m,g-v),y;if(Ut(d)){if(d.length!==x)throw new Error("Invalid value array length");y=function(D){return d[D]}}else if(mt(d)){var w=d.size();if(w.length!==1||w[0]!==x)throw new Error("Invalid matrix length");y=function(D){return d.get([D])}}else y=function(){return d};p||(p=Ot(y(0))?y(0).mul(0):0);var b=[];if(c.length>0){b=ys(b,c,p);for(var S=0;S<x;S++)b[S+m][S+v]=y(S)}return new n({data:b,size:[h,g]})},n.fromJSON=function(c){return new n(c)},n.prototype.swapRows=function(c,d){if(!Pt(c)||!ot(c)||!Pt(d)||!ot(d))throw new Error("Row index must be positive integers");if(this._size.length!==2)throw new Error("Only two dimensional matrix is supported");return Xt(c,this._size[0]),Xt(d,this._size[0]),n._swapRows(c,d,this._data),this},n._swapRows=function(c,d,f){var p=f[c];f[c]=f[d],f[d]=p};function u(c){for(var d=0,f=c.length;d<f;d++){var p=c[d];Ut(p)?c[d]=u(p):p&&p.isMatrix===!0&&(c[d]=u(p.valueOf()))}return c}return n},{isClass:!0}),S4="clone",Cwe=["typed"],$we=se(S4,Cwe,e=>{var{typed:t}=e;return t(S4,{any:ct})});function m7(e){var t=e.length,n=e[0].length,r,o,a=[];for(o=0;o<n;o++){var i=[];for(r=0;r<t;r++)i.push(e[r][o]);a.push(i)}return a}function ks(e){for(var t=0;t<e.length;t++)if(wo(e[t]))return!0;return!1}function Ca(e,t){mt(e)&&(e=e.valueOf());for(var n=0,r=e.length;n<r;n++){var o=e[n];Array.isArray(o)?Ca(o,t):t(o)}}function Tt(e,t,n){return e&&typeof e.map=="function"?e.map(function(r){return Tt(r,t)}):t(e)}function Fv(e,t,n){var r=Array.isArray(e)?Mt(e):e.size();if(t<0||t>=r.length)throw new oo(t,r.length);return mt(e)?e.create(Hp(e.valueOf(),t,n)):Hp(e,t,n)}function Hp(e,t,n){var r,o,a,i;if(t<=0)if(Array.isArray(e[0])){for(i=m7(e),o=[],r=0;r<i.length;r++)o[r]=Hp(i[r],t-1,n);return o}else{for(a=e[0],r=1;r<e.length;r++)a=n(a,e[r]);return a}else{for(o=[],r=0;r<e.length;r++)o[r]=Hp(e[r],t-1,n);return o}}function C4(e,t,n,r,o,a,i,l,s,u,c){var d=e._values,f=e._index,p=e._ptr,v,m,h,g;if(r)for(m=p[t],h=p[t+1],v=m;v<h;v++)g=f[v],n[g]!==a?(n[g]=a,i.push(g),u?(r[g]=s?l(d[v],c):l(c,d[v]),o[g]=a):r[g]=d[v]):(r[g]=s?l(d[v],r[g]):l(r[g],d[v]),o[g]=a);else for(m=p[t],h=p[t+1],v=m;v<h;v++)g=f[v],n[g]!==a?(n[g]=a,i.push(g)):o[g]=a}var $4="isInteger",Ewe=["typed"],Dwe=se($4,Ewe,e=>{var{typed:t}=e;return t($4,{number:ot,BigNumber:function(r){return r.isInt()},Fraction:function(r){return r.d===1&&isFinite(r.n)},"Array | Matrix":t.referToSelf(n=>r=>Tt(r,n))})}),Eo="number",dl="number, number";function v7(e){return Math.abs(e)}v7.signature=Eo;function h7(e,t){return e+t}h7.signature=dl;function g7(e,t){return e*t}g7.signature=dl;function y7(e){return-e}y7.signature=Eo;function b7(e){return e}b7.signature=Eo;function cu(e){return M1e(e)}cu.signature=Eo;function x7(e){return e*e*e}x7.signature=Eo;function w7(e){return Math.exp(e)}w7.signature=Eo;function S7(e){return N1e(e)}S7.signature=Eo;function C7(e,t){if(!ot(e)||!ot(t))throw new Error("Parameters in function gcd must be integer numbers");for(var n;t!==0;)n=e%t,e=t,t=n;return e<0?-e:e}C7.signature=dl;function $7(e,t){if(!ot(e)||!ot(t))throw new Error("Parameters in function lcm must be integer numbers");if(e===0||t===0)return 0;for(var n,r=e*t;t!==0;)n=t,t=e%n,e=n;return Math.abs(r/e)}$7.signature=dl;function Awe(e,t){return t?Math.log(e)/Math.log(t):Math.log(e)}function E7(e){return O1e(e)}E7.signature=Eo;function D7(e){return A1e(e)}D7.signature=Eo;function A7(e,t){if(t>0)return e-t*Math.floor(e/t);if(t===0)return e;throw new Error("Cannot calculate mod for a negative divisor")}A7.signature=dl;function E4(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2,n=t<0;if(n&&(t=-t),t===0)throw new Error("Root must be non-zero");if(e<0&&Math.abs(t)%2!==1)throw new Error("Root must be odd when a is negative.");if(e===0)return n?1/0:0;if(!isFinite(e))return n?0:e;var r=Math.pow(Math.abs(e),1/t);return r=e<0?-r:r,n?1/r:r}function Cy(e){return Ja(e)}Cy.signature=Eo;function O7(e){return e*e}O7.signature=Eo;function T7(e,t){var n,r,o,a=0,i=1,l=1,s=0;if(!ot(e)||!ot(t))throw new Error("Parameters in function xgcd must be integer numbers");for(;t;)r=Math.floor(e/t),o=e-r*t,n=a,a=i-r*a,i=n,n=l,l=s-r*l,s=n,e=t,t=o;var u;return e<0?u=[-e,-i,-s]:u=[e,e?i:0,s],u}T7.signature=dl;function M7(e,t){return e*e<1&&t===1/0||e*e>1&&t===-1/0?0:Math.pow(e,t)}M7.signature=dl;function D4(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(!ot(t)||t<0||t>15)throw new Error("Number of decimals in function round must be an integer from 0 to 15 inclusive");return parseFloat(W_(e,t))}var Owe="number",Hs="number, number";function N7(e,t){if(!ot(e)||!ot(t))throw new Error("Integers expected in function bitAnd");return e&t}N7.signature=Hs;function P7(e){if(!ot(e))throw new Error("Integer expected in function bitNot");return~e}P7.signature=Owe;function I7(e,t){if(!ot(e)||!ot(t))throw new Error("Integers expected in function bitOr");return e|t}I7.signature=Hs;function _7(e,t){if(!ot(e)||!ot(t))throw new Error("Integers expected in function bitXor");return e^t}_7.signature=Hs;function B7(e,t){if(!ot(e)||!ot(t))throw new Error("Integers expected in function leftShift");return e<<t}B7.signature=Hs;function F7(e,t){if(!ot(e)||!ot(t))throw new Error("Integers expected in function rightArithShift");return e>>t}F7.signature=Hs;function R7(e,t){if(!ot(e)||!ot(t))throw new Error("Integers expected in function rightLogShift");return e>>>t}R7.signature=Hs;function pa(e,t){if(t<e)return 1;if(t===e)return t;var n=t+e>>1;return pa(e,n)*pa(n+1,t)}function z7(e,t){if(!ot(e)||e<0)throw new TypeError("Positive integer value expected in function combinations");if(!ot(t)||t<0)throw new TypeError("Positive integer value expected in function combinations");if(t>e)throw new TypeError("k must be less than or equal to n");for(var n=e-t,r=1,o=t<n?n+1:t+1,a=2,i=t<n?t:n,l=o;l<=e;++l)for(r*=l;a<=i&&r%a===0;)r/=a,++a;return a<=i&&(r/=pa(a,i)),r}z7.signature="number, number";var Twe=Math.PI,Mwe=2*Math.PI,Nwe=Math.E,Pwe=1.618033988749895,Iwe="number",qw="number, number";function L7(e){return!e}L7.signature=Iwe;function k7(e,t){return!!(e||t)}k7.signature=qw;function H7(e,t){return!!e!=!!t}H7.signature=qw;function j7(e,t){return!!(e&&t)}j7.signature=qw;function jp(e){var t;if(ot(e))return e<=0?isFinite(e)?1/0:NaN:e>171?1/0:pa(1,e-1);if(e<.5)return Math.PI/(Math.sin(Math.PI*e)*jp(1-e));if(e>=171.35)return 1/0;if(e>85){var n=e*e,r=n*e,o=r*e,a=o*e;return Math.sqrt(2*Math.PI/e)*Math.pow(e/Math.E,e)*(1+1/(12*e)+1/(288*n)-139/(51840*r)-571/(2488320*o)+163879/(209018880*a)+5246819/(75246796800*a*e))}--e,t=rs[0];for(var i=1;i<rs.length;++i)t+=rs[i]/(e+i);var l=e+V7+.5;return Math.sqrt(2*Math.PI)*Math.pow(l,e+.5)*Math.exp(-l)*t}jp.signature="number";var V7=4.7421875,rs=[.9999999999999971,57.15623566586292,-59.59796035547549,14.136097974741746,-.4919138160976202,3399464998481189e-20,4652362892704858e-20,-9837447530487956e-20,.0001580887032249125,-.00021026444172410488,.00021743961811521265,-.0001643181065367639,8441822398385275e-20,-26190838401581408e-21,36899182659531625e-22],W7=.9189385332046728,_we=5,Bwe=7,A4=[1.000000000190015,76.18009172947146,-86.50532032941678,24.01409824083091,-1.231739572450155,.001208650973866179,-5395239384953e-18];function Vp(e){if(e<0)return NaN;if(e===0)return 1/0;if(!isFinite(e))return e;if(e<.5)return Math.log(Math.PI/Math.sin(Math.PI*e))-Vp(1-e);e=e-1;for(var t=e+_we+.5,n=A4[0],r=Bwe-1;r>=1;r--)n+=A4[r]/(e+r);return W7+(e+.5)*Math.log(t)-t+Math.log(n)}Vp.signature="number";var nr="number";function U7(e){return F1e(e)}U7.signature=nr;function K7(e){return Math.atan(1/e)}K7.signature=nr;function q7(e){return isFinite(e)?(Math.log((e+1)/e)+Math.log(e/(e-1)))/2:0}q7.signature=nr;function G7(e){return Math.asin(1/e)}G7.signature=nr;function X7(e){var t=1/e;return Math.log(t+Math.sqrt(t*t+1))}X7.signature=nr;function Y7(e){return Math.acos(1/e)}Y7.signature=nr;function Z7(e){var t=1/e,n=Math.sqrt(t*t-1);return Math.log(n+t)}Z7.signature=nr;function J7(e){return R1e(e)}J7.signature=nr;function Q7(e){return z1e(e)}Q7.signature=nr;function eB(e){return 1/Math.tan(e)}eB.signature=nr;function tB(e){var t=Math.exp(2*e);return(t+1)/(t-1)}tB.signature=nr;function nB(e){return 1/Math.sin(e)}nB.signature=nr;function rB(e){return e===0?Number.POSITIVE_INFINITY:Math.abs(2/(Math.exp(e)-Math.exp(-e)))*Ja(e)}rB.signature=nr;function oB(e){return 1/Math.cos(e)}oB.signature=nr;function aB(e){return 2/(Math.exp(e)+Math.exp(-e))}aB.signature=nr;function iB(e){return k1e(e)}iB.signature=nr;var Rv="number";function lB(e){return e<0}lB.signature=Rv;function sB(e){return e>0}sB.signature=Rv;function uB(e){return e===0}uB.signature=Rv;function cB(e){return Number.isNaN(e)}cB.signature=Rv;var O4="isNegative",Fwe=["typed"],Rwe=se(O4,Fwe,e=>{var{typed:t}=e;return t(O4,{number:lB,BigNumber:function(r){return r.isNeg()&&!r.isZero()&&!r.isNaN()},Fraction:function(r){return r.s<0},Unit:t.referToSelf(n=>r=>t.find(n,r.valueType())(r.value)),"Array | Matrix":t.referToSelf(n=>r=>Tt(r,n))})}),T4="isNumeric",zwe=["typed"],Lwe=se(T4,zwe,e=>{var{typed:t}=e;return t(T4,{"number | BigNumber | Fraction | boolean":()=>!0,"Complex | Unit | string | null | undefined | Node":()=>!1,"Array | Matrix":t.referToSelf(n=>r=>Tt(r,n))})}),M4="hasNumericValue",kwe=["typed","isNumeric"],Hwe=se(M4,kwe,e=>{var{typed:t,isNumeric:n}=e;return t(M4,{boolean:()=>!0,string:function(o){return o.trim().length>0&&!isNaN(Number(o))},any:function(o){return n(o)}})}),N4="isPositive",jwe=["typed"],Vwe=se(N4,jwe,e=>{var{typed:t}=e;return t(N4,{number:sB,BigNumber:function(r){return!r.isNeg()&&!r.isZero()&&!r.isNaN()},Fraction:function(r){return r.s>0&&r.n>0},Unit:t.referToSelf(n=>r=>t.find(n,r.valueType())(r.value)),"Array | Matrix":t.referToSelf(n=>r=>Tt(r,n))})}),P4="isZero",Wwe=["typed"],Uwe=se(P4,Wwe,e=>{var{typed:t}=e;return t(P4,{number:uB,BigNumber:function(r){return r.isZero()},Complex:function(r){return r.re===0&&r.im===0},Fraction:function(r){return r.d===1&&r.n===0},Unit:t.referToSelf(n=>r=>t.find(n,r.valueType())(r.value)),"Array | Matrix":t.referToSelf(n=>r=>Tt(r,n))})}),I4="isNaN",Kwe=["typed"],qwe=se(I4,Kwe,e=>{var{typed:t}=e;return t(I4,{number:cB,BigNumber:function(r){return r.isNaN()},Fraction:function(r){return!1},Complex:function(r){return r.isNaN()},Unit:function(r){return Number.isNaN(r.value)},"Array | Matrix":function(r){return Tt(r,Number.isNaN)}})}),_4="typeOf",Gwe=["typed"],Xwe=se(_4,Gwe,e=>{var{typed:t}=e;return t(_4,{any:an})});function Uo(e,t,n){if(n==null)return e.eq(t);if(e.eq(t))return!0;if(e.isNaN()||t.isNaN())return!1;if(e.isFinite()&&t.isFinite()){var r=e.minus(t).abs();if(r.isZero())return!0;var o=e.constructor.max(e.abs(),t.abs());return r.lte(o.times(n))}return!1}function Ywe(e,t,n){return kr(e.re,t.re,n)&&kr(e.im,t.im,n)}var js=se("compareUnits",["typed"],e=>{var{typed:t}=e;return{"Unit, Unit":t.referToSelf(n=>(r,o)=>{if(!r.equalBase(o))throw new Error("Cannot compare units with different base");return t.find(n,[r.valueType(),o.valueType()])(r.value,o.value)})}}),Wp="equalScalar",Zwe=["typed","config"],Jwe=se(Wp,Zwe,e=>{var{typed:t,config:n}=e,r=js({typed:t});return t(Wp,{"boolean, boolean":function(a,i){return a===i},"number, number":function(a,i){return kr(a,i,n.epsilon)},"BigNumber, BigNumber":function(a,i){return a.eq(i)||Uo(a,i,n.epsilon)},"Fraction, Fraction":function(a,i){return a.equals(i)},"Complex, Complex":function(a,i){return Ywe(a,i,n.epsilon)}},r)});se(Wp,["typed","config"],e=>{var{typed:t,config:n}=e;return t(Wp,{"number, number":function(o,a){return kr(o,a,n.epsilon)}})});var Qwe="SparseMatrix",eSe=["typed","equalScalar","Matrix"],tSe=se(Qwe,eSe,e=>{var{typed:t,equalScalar:n,Matrix:r}=e;function o(m,h){if(!(this instanceof o))throw new SyntaxError("Constructor must be called with the new operator");if(h&&!Qn(h))throw new Error("Invalid datatype: "+h);if(mt(m))a(this,m,h);else if(m&&Ut(m.index)&&Ut(m.ptr)&&Ut(m.size))this._values=m.values,this._index=m.index,this._ptr=m.ptr,this._size=m.size,this._datatype=h||m.datatype;else if(Ut(m))i(this,m,h);else{if(m)throw new TypeError("Unsupported type of data ("+an(m)+")");this._values=[],this._index=[],this._ptr=[0],this._size=[0,0],this._datatype=h}}function a(m,h,g){h.type==="SparseMatrix"?(m._values=h._values?ct(h._values):void 0,m._index=ct(h._index),m._ptr=ct(h._ptr),m._size=ct(h._size),m._datatype=g||h._datatype):i(m,h.valueOf(),g||h._datatype)}function i(m,h,g){m._values=[],m._index=[],m._ptr=[],m._datatype=g;var x=h.length,y=0,w=n,b=0;if(Qn(g)&&(w=t.find(n,[g,g])||n,b=t.convert(0,g)),x>0){var S=0;do{m._ptr.push(m._index.length);for(var $=0;$<x;$++){var D=h[$];if(Ut(D)){if(S===0&&y<D.length&&(y=D.length),S<D.length){var O=D[S];w(O,b)||(m._values.push(O),m._index.push($))}}else S===0&&y<1&&(y=1),w(D,b)||(m._values.push(D),m._index.push($))}S++}while(S<y)}m._ptr.push(m._index.length),m._size=[x,y]}o.prototype=new r,o.prototype.createSparseMatrix=function(m,h){return new o(m,h)},Object.defineProperty(o,"name",{value:"SparseMatrix"}),o.prototype.constructor=o,o.prototype.type="SparseMatrix",o.prototype.isSparseMatrix=!0,o.prototype.getDataType=function(){return lc(this._values,an)},o.prototype.storage=function(){return"sparse"},o.prototype.datatype=function(){return this._datatype},o.prototype.create=function(m,h){return new o(m,h)},o.prototype.density=function(){var m=this._size[0],h=this._size[1];return m!==0&&h!==0?this._index.length/(m*h):0},o.prototype.subset=function(m,h,g){if(!this._values)throw new Error("Cannot invoke subset on a Pattern only matrix");switch(arguments.length){case 1:return l(this,m);case 2:case 3:return s(this,m,h,g);default:throw new SyntaxError("Wrong number of arguments")}};function l(m,h){if(!Ic(h))throw new TypeError("Invalid index");var g=h.isScalar();if(g)return m.get(h.min());var x=h.size();if(x.length!==m._size.length)throw new Dt(x.length,m._size.length);var y,w,b,S,$=h.min(),D=h.max();for(y=0,w=m._size.length;y<w;y++)Xt($[y],m._size[y]),Xt(D[y],m._size[y]);var O=m._values,A=m._index,T=m._ptr,M=h.dimension(0),B=h.dimension(1),F=[],P=[];M.forEach(function(_,L){P[_]=L[0],F[_]=!0});var I=O?[]:void 0,N=[],R=[];return B.forEach(function(_){for(R.push(N.length),b=T[_],S=T[_+1];b<S;b++)y=A[b],F[y]===!0&&(N.push(P[y]),I&&I.push(O[b]))}),R.push(N.length),new o({values:I,index:N,ptr:R,size:x,datatype:m._datatype})}function s(m,h,g,x){if(!h||h.isIndex!==!0)throw new TypeError("Invalid index");var y=h.size(),w=h.isScalar(),b;if(mt(g)?(b=g.size(),g=g.toArray()):b=Mt(g),w){if(b.length!==0)throw new TypeError("Scalar expected");m.set(h.min(),g,x)}else{if(y.length!==1&&y.length!==2)throw new Dt(y.length,m._size.length,"<");if(b.length<y.length){for(var S=0,$=0;y[S]===1&&b[S]===1;)S++;for(;y[S]===1;)$++,S++;g=Z_(g,y.length,$,b)}if(!ic(y,b))throw new Dt(y,b,">");if(y.length===1){var D=h.dimension(0);D.forEach(function(T,M){Xt(T),m.set([T,0],g[M[0]],x)})}else{var O=h.dimension(0),A=h.dimension(1);O.forEach(function(T,M){Xt(T),A.forEach(function(B,F){Xt(B),m.set([T,B],g[M[0]][F[0]],x)})})}}return m}o.prototype.get=function(m){if(!Ut(m))throw new TypeError("Array expected");if(m.length!==this._size.length)throw new Dt(m.length,this._size.length);if(!this._values)throw new Error("Cannot invoke get on a Pattern only matrix");var h=m[0],g=m[1];Xt(h,this._size[0]),Xt(g,this._size[1]);var x=u(h,this._ptr[g],this._ptr[g+1],this._index);return x<this._ptr[g+1]&&this._index[x]===h?this._values[x]:0},o.prototype.set=function(m,h,g){if(!Ut(m))throw new TypeError("Array expected");if(m.length!==this._size.length)throw new Dt(m.length,this._size.length);if(!this._values)throw new Error("Cannot invoke set on a Pattern only matrix");var x=m[0],y=m[1],w=this._size[0],b=this._size[1],S=n,$=0;Qn(this._datatype)&&(S=t.find(n,[this._datatype,this._datatype])||n,$=t.convert(0,this._datatype)),(x>w-1||y>b-1)&&(f(this,Math.max(x+1,w),Math.max(y+1,b),g),w=this._size[0],b=this._size[1]),Xt(x,w),Xt(y,b);var D=u(x,this._ptr[y],this._ptr[y+1],this._index);return D<this._ptr[y+1]&&this._index[D]===x?S(h,$)?c(D,y,this._values,this._index,this._ptr):this._values[D]=h:S(h,$)||d(D,x,y,h,this._values,this._index,this._ptr),this};function u(m,h,g,x){if(g-h===0)return g;for(var y=h;y<g;y++)if(x[y]===m)return y;return h}function c(m,h,g,x,y){g.splice(m,1),x.splice(m,1);for(var w=h+1;w<y.length;w++)y[w]--}function d(m,h,g,x,y,w,b){y.splice(m,0,x),w.splice(m,0,h);for(var S=g+1;S<b.length;S++)b[S]++}o.prototype.resize=function(m,h,g){if(!wo(m))throw new TypeError("Array or Matrix expected");var x=m.valueOf().map(w=>Array.isArray(w)&&w.length===1?w[0]:w);if(x.length!==2)throw new Error("Only two dimensions matrix are supported");x.forEach(function(w){if(!Pt(w)||!ot(w)||w<0)throw new TypeError("Invalid size, must contain positive integers (size: "+Et(x)+")")});var y=g?this.clone():this;return f(y,x[0],x[1],h)};function f(m,h,g,x){var y=x||0,w=n,b=0;Qn(m._datatype)&&(w=t.find(n,[m._datatype,m._datatype])||n,b=t.convert(0,m._datatype),y=t.convert(y,m._datatype));var S=!w(y,b),$=m._size[0],D=m._size[1],O,A,T;if(g>D){for(A=D;A<g;A++)if(m._ptr[A]=m._values.length,S)for(O=0;O<$;O++)m._values.push(y),m._index.push(O);m._ptr[g]=m._values.length}else g<D&&(m._ptr.splice(g+1,D-g),m._values.splice(m._ptr[g],m._values.length),m._index.splice(m._ptr[g],m._index.length));if(D=g,h>$){if(S){var M=0;for(A=0;A<D;A++){m._ptr[A]=m._ptr[A]+M,T=m._ptr[A+1]+M;var B=0;for(O=$;O<h;O++,B++)m._values.splice(T+B,0,y),m._index.splice(T+B,0,O),M++}m._ptr[D]=m._values.length}}else if(h<$){var F=0;for(A=0;A<D;A++){m._ptr[A]=m._ptr[A]-F;var P=m._ptr[A],I=m._ptr[A+1]-F;for(T=P;T<I;T++)O=m._index[T],O>h-1&&(m._values.splice(T,1),m._index.splice(T,1),F++)}m._ptr[A]=m._values.length}return m._size[0]=h,m._size[1]=g,m}o.prototype.reshape=function(m,h){if(!Ut(m))throw new TypeError("Array expected");if(m.length!==2)throw new Error("Sparse matrices can only be reshaped in two dimensions");m.forEach(function(_){if(!Pt(_)||!ot(_)||_<=-2||_===0)throw new TypeError("Invalid size, must contain positive integers or -1 (size: "+Et(m)+")")});var g=this._size[0]*this._size[1];m=Hw(m,g);var x=m[0]*m[1];if(g!==x)throw new Error("Reshaping sparse matrix will result in the wrong number of elements");var y=h?this.clone():this;if(this._size[0]===m[0]&&this._size[1]===m[1])return y;for(var w=[],b=0;b<y._ptr.length;b++)for(var S=0;S<y._ptr[b+1]-y._ptr[b];S++)w.push(b);for(var $=y._values.slice(),D=y._index.slice(),O=0;O<y._index.length;O++){var A=D[O],T=w[O],M=A*y._size[1]+T;w[O]=M%m[1],D[O]=Math.floor(M/m[1])}y._values.length=0,y._index.length=0,y._ptr.length=m[1]+1,y._size=m.slice();for(var B=0;B<y._ptr.length;B++)y._ptr[B]=0;for(var F=0;F<$.length;F++){var P=D[F],I=w[F],N=$[F],R=u(P,y._ptr[I],y._ptr[I+1],y._index);d(R,P,I,N,y._values,y._index,y._ptr)}return y},o.prototype.clone=function(){var m=new o({values:this._values?ct(this._values):void 0,index:ct(this._index),ptr:ct(this._ptr),size:ct(this._size),datatype:this._datatype});return m},o.prototype.size=function(){return this._size.slice(0)},o.prototype.map=function(m,h){if(!this._values)throw new Error("Cannot invoke map on a Pattern only matrix");var g=this,x=this._size[0],y=this._size[1],w=mi(m),b=function($,D,O){return w===1?m($):w===2?m($,[D,O]):m($,[D,O],g)};return p(this,0,x-1,0,y-1,b,h)};function p(m,h,g,x,y,w,b){var S=[],$=[],D=[],O=n,A=0;Qn(m._datatype)&&(O=t.find(n,[m._datatype,m._datatype])||n,A=t.convert(0,m._datatype));for(var T=function(V,U,q){V=w(V,U,q),O(V,A)||(S.push(V),$.push(U))},M=x;M<=y;M++){D.push(S.length);var B=m._ptr[M],F=m._ptr[M+1];if(b)for(var P=B;P<F;P++){var I=m._index[P];I>=h&&I<=g&&T(m._values[P],I-h,M-x)}else{for(var N={},R=B;R<F;R++){var _=m._index[R];N[_]=m._values[R]}for(var L=h;L<=g;L++){var k=L in N?N[L]:0;T(k,L-h,M-x)}}}return D.push(S.length),new o({values:S,index:$,ptr:D,size:[g-h+1,y-x+1]})}o.prototype.forEach=function(m,h){if(!this._values)throw new Error("Cannot invoke forEach on a Pattern only matrix");for(var g=this,x=this._size[0],y=this._size[1],w=0;w<y;w++){var b=this._ptr[w],S=this._ptr[w+1];if(h)for(var $=b;$<S;$++){var D=this._index[$];m(this._values[$],[D,w],g)}else{for(var O={},A=b;A<S;A++){var T=this._index[A];O[T]=this._values[A]}for(var M=0;M<x;M++){var B=M in O?O[M]:0;m(B,[M,w],g)}}}},o.prototype[Symbol.iterator]=function*(){if(!this._values)throw new Error("Cannot iterate a Pattern only matrix");for(var m=this._size[1],h=0;h<m;h++)for(var g=this._ptr[h],x=this._ptr[h+1],y=g;y<x;y++){var w=this._index[y];yield{value:this._values[y],index:[w,h]}}},o.prototype.toArray=function(){return v(this._values,this._index,this._ptr,this._size,!0)},o.prototype.valueOf=function(){return v(this._values,this._index,this._ptr,this._size,!1)};function v(m,h,g,x,y){var w=x[0],b=x[1],S=[],$,D;for($=0;$<w;$++)for(S[$]=[],D=0;D<b;D++)S[$][D]=0;for(D=0;D<b;D++)for(var O=g[D],A=g[D+1],T=O;T<A;T++)$=h[T],S[$][D]=m?y?ct(m[T]):m[T]:1;return S}return o.prototype.format=function(m){for(var h=this._size[0],g=this._size[1],x=this.density(),y="Sparse Matrix ["+Et(h,m)+" x "+Et(g,m)+"] density: "+Et(x,m)+`
- `,w=0;w<g;w++)for(var b=this._ptr[w],S=this._ptr[w+1],$=b;$<S;$++){var D=this._index[$];y+=`
- (`+Et(D,m)+", "+Et(w,m)+") ==> "+(this._values?Et(this._values[$],m):"X")}return y},o.prototype.toString=function(){return Et(this.toArray())},o.prototype.toJSON=function(){return{mathjs:"SparseMatrix",values:this._values,index:this._index,ptr:this._ptr,size:this._size,datatype:this._datatype}},o.prototype.diagonal=function(m){if(m){if(Ot(m)&&(m=m.toNumber()),!Pt(m)||!ot(m))throw new TypeError("The parameter k must be an integer number")}else m=0;var h=m>0?m:0,g=m<0?-m:0,x=this._size[0],y=this._size[1],w=Math.min(x-g,y-h),b=[],S=[],$=[];$[0]=0;for(var D=h;D<y&&b.length<w;D++)for(var O=this._ptr[D],A=this._ptr[D+1],T=O;T<A;T++){var M=this._index[T];if(M===D-h+g){b.push(this._values[T]),S[b.length-1]=M-g;break}}return $.push(b.length),new o({values:b,index:S,ptr:$,size:[w,1]})},o.fromJSON=function(m){return new o(m)},o.diagonal=function(m,h,g,x,y){if(!Ut(m))throw new TypeError("Array expected, size parameter");if(m.length!==2)throw new Error("Only two dimensions matrix are supported");if(m=m.map(function(_){if(Ot(_)&&(_=_.toNumber()),!Pt(_)||!ot(_)||_<1)throw new Error("Size values must be positive integers");return _}),g){if(Ot(g)&&(g=g.toNumber()),!Pt(g)||!ot(g))throw new TypeError("The parameter k must be an integer number")}else g=0;var w=n,b=0;Qn(y)&&(w=t.find(n,[y,y])||n,b=t.convert(0,y));var S=g>0?g:0,$=g<0?-g:0,D=m[0],O=m[1],A=Math.min(D-$,O-S),T;if(Ut(h)){if(h.length!==A)throw new Error("Invalid value array length");T=function(L){return h[L]}}else if(mt(h)){var M=h.size();if(M.length!==1||M[0]!==A)throw new Error("Invalid matrix length");T=function(L){return h.get([L])}}else T=function(){return h};for(var B=[],F=[],P=[],I=0;I<O;I++){P.push(B.length);var N=I-S;if(N>=0&&N<A){var R=T(N);w(R,b)||(F.push(N+$),B.push(R))}}return P.push(B.length),new o({values:B,index:F,ptr:P,size:[D,O]})},o.prototype.swapRows=function(m,h){if(!Pt(m)||!ot(m)||!Pt(h)||!ot(h))throw new Error("Row index must be positive integers");if(this._size.length!==2)throw new Error("Only two dimensional matrix is supported");return Xt(m,this._size[0]),Xt(h,this._size[0]),o._swapRows(m,h,this._size[1],this._values,this._index,this._ptr),this},o._forEachRow=function(m,h,g,x,y){for(var w=x[m],b=x[m+1],S=w;S<b;S++)y(g[S],h[S])},o._swapRows=function(m,h,g,x,y,w){for(var b=0;b<g;b++){var S=w[b],$=w[b+1],D=u(m,S,$,y),O=u(h,S,$,y);if(D<$&&O<$&&y[D]===m&&y[O]===h){if(x){var A=x[D];x[D]=x[O],x[O]=A}continue}if(D<$&&y[D]===m&&(O>=$||y[O]!==h)){var T=x?x[D]:void 0;y.splice(O,0,h),x&&x.splice(O,0,T),y.splice(O<=D?D+1:D,1),x&&x.splice(O<=D?D+1:D,1);continue}if(O<$&&y[O]===h&&(D>=$||y[D]!==m)){var M=x?x[O]:void 0;y.splice(D,0,m),x&&x.splice(D,0,M),y.splice(D<=O?O+1:O,1),x&&x.splice(D<=O?O+1:O,1)}}},o},{isClass:!0}),nSe="number",rSe=["typed"];function oSe(e){var t=e.match(/(0[box])([0-9a-fA-F]*)\.([0-9a-fA-F]*)/);if(t){var n={"0b":2,"0o":8,"0x":16}[t[1]],r=t[2],o=t[3];return{input:e,radix:n,integerPart:r,fractionalPart:o}}else return null}function aSe(e){for(var t=parseInt(e.integerPart,e.radix),n=0,r=0;r<e.fractionalPart.length;r++){var o=parseInt(e.fractionalPart[r],e.radix);n+=o/Math.pow(e.radix,r+1)}var a=t+n;if(isNaN(a))throw new SyntaxError('String "'+e.input+'" is no valid number');return a}var iSe=se(nSe,rSe,e=>{var{typed:t}=e,n=t("number",{"":function(){return 0},number:function(o){return o},string:function(o){if(o==="NaN")return NaN;var a=oSe(o);if(a)return aSe(a);var i=0,l=o.match(/(0[box][0-9a-fA-F]*)i([0-9]*)/);l&&(i=Number(l[2]),o=l[1]);var s=Number(o);if(isNaN(s))throw new SyntaxError('String "'+o+'" is no valid number');if(l){if(s>2**i-1)throw new SyntaxError('String "'.concat(o,'" is out of range'));s>=2**(i-1)&&(s=s-2**i)}return s},BigNumber:function(o){return o.toNumber()},Fraction:function(o){return o.valueOf()},Unit:function(o){throw new Error("Second argument with valueless unit expected")},null:function(o){return 0},"Unit, string | Unit":function(o,a){return o.toNumber(a)},"Array | Matrix":t.referToSelf(r=>o=>Tt(o,r))});return n.fromJSON=function(r){return parseFloat(r.value)},n}),B4="string",lSe=["typed"],sSe=se(B4,lSe,e=>{var{typed:t}=e;return t(B4,{"":function(){return""},number:ji,null:function(r){return"null"},boolean:function(r){return r+""},string:function(r){return r},"Array | Matrix":t.referToSelf(n=>r=>Tt(r,n)),any:function(r){return String(r)}})}),F4="boolean",uSe=["typed"],cSe=se(F4,uSe,e=>{var{typed:t}=e;return t(F4,{"":function(){return!1},boolean:function(r){return r},number:function(r){return!!r},null:function(r){return!1},BigNumber:function(r){return!r.isZero()},string:function(r){var o=r.toLowerCase();if(o==="true")return!0;if(o==="false")return!1;var a=Number(r);if(r!==""&&!isNaN(a))return!!a;throw new Error('Cannot convert "'+r+'" to a boolean')},"Array | Matrix":t.referToSelf(n=>r=>Tt(r,n))})}),dSe="bignumber",fSe=["typed","BigNumber"],pSe=se(dSe,fSe,e=>{var{typed:t,BigNumber:n}=e;return t("bignumber",{"":function(){return new n(0)},number:function(o){return new n(o+"")},string:function(o){var a=o.match(/(0[box][0-9a-fA-F]*)i([0-9]*)/);if(a){var i=a[2],l=n(a[1]),s=new n(2).pow(Number(i));if(l.gt(s.sub(1)))throw new SyntaxError('String "'.concat(o,'" is out of range'));var u=new n(2).pow(Number(i)-1);return l.gte(u)?l.sub(s):l}return new n(o)},BigNumber:function(o){return o},Fraction:function(o){return new n(o.n).div(o.d).times(o.s)},null:function(o){return new n(0)},"Array | Matrix":t.referToSelf(r=>o=>Tt(o,r))})}),mSe="complex",vSe=["typed","Complex"],hSe=se(mSe,vSe,e=>{var{typed:t,Complex:n}=e;return t("complex",{"":function(){return n.ZERO},number:function(o){return new n(o,0)},"number, number":function(o,a){return new n(o,a)},"BigNumber, BigNumber":function(o,a){return new n(o.toNumber(),a.toNumber())},Fraction:function(o){return new n(o.valueOf(),0)},Complex:function(o){return o.clone()},string:function(o){return n(o)},null:function(o){return n(0)},Object:function(o){if("re"in o&&"im"in o)return new n(o.re,o.im);if("r"in o&&"phi"in o||"abs"in o&&"arg"in o)return new n(o);throw new Error("Expected object with properties (re and im) or (r and phi) or (abs and arg)")},"Array | Matrix":t.referToSelf(r=>o=>Tt(o,r))})}),gSe="fraction",ySe=["typed","Fraction"],bSe=se(gSe,ySe,e=>{var{typed:t,Fraction:n}=e;return t("fraction",{number:function(o){if(!isFinite(o)||isNaN(o))throw new Error(o+" cannot be represented as a fraction");return new n(o)},string:function(o){return new n(o)},"number, number":function(o,a){return new n(o,a)},null:function(o){return new n(0)},BigNumber:function(o){return new n(o.toString())},Fraction:function(o){return o},Object:function(o){return new n(o)},"Array | Matrix":t.referToSelf(r=>o=>Tt(o,r))})}),R4="matrix",xSe=["typed","Matrix","DenseMatrix","SparseMatrix"],wSe=se(R4,xSe,e=>{var{typed:t,Matrix:n,DenseMatrix:r,SparseMatrix:o}=e;return t(R4,{"":function(){return a([])},string:function(l){return a([],l)},"string, string":function(l,s){return a([],l,s)},Array:function(l){return a(l)},Matrix:function(l){return a(l,l.storage())},"Array | Matrix, string":a,"Array | Matrix, string, string":a});function a(i,l,s){if(l==="dense"||l==="default"||l===void 0)return new r(i,s);if(l==="sparse")return new o(i,s);throw new TypeError("Unknown matrix type "+JSON.stringify(l)+".")}}),z4="matrixFromFunction",SSe=["typed","matrix","isZero"],CSe=se(z4,SSe,e=>{var{typed:t,matrix:n,isZero:r}=e;return t(z4,{"Array | Matrix, function, string, string":function(i,l,s,u){return o(i,l,s,u)},"Array | Matrix, function, string":function(i,l,s){return o(i,l,s)},"Matrix, function":function(i,l){return o(i,l,"dense")},"Array, function":function(i,l){return o(i,l,"dense").toArray()},"Array | Matrix, string, function":function(i,l,s){return o(i,s,l)},"Array | Matrix, string, string, function":function(i,l,s,u){return o(i,u,l,s)}});function o(a,i,l,s){var u;return s!==void 0?u=n(l,s):u=n(l),u.resize(a),u.forEach(function(c,d){var f=i(d);r(f)||u.set(d,f)}),u}}),L4="matrixFromRows",$Se=["typed","matrix","flatten","size"],ESe=se(L4,$Se,e=>{var{typed:t,matrix:n,flatten:r,size:o}=e;return t(L4,{"...Array":function(s){return a(s)},"...Matrix":function(s){return n(a(s.map(u=>u.toArray())))}});function a(l){if(l.length===0)throw new TypeError("At least one row is needed to construct a matrix.");var s=i(l[0]),u=[];for(var c of l){var d=i(c);if(d!==s)throw new TypeError("The vectors had different length: "+(s|0)+" ≠ "+(d|0));u.push(r(c))}return u}function i(l){var s=o(l);if(s.length===1)return s[0];if(s.length===2){if(s[0]===1)return s[1];if(s[1]===1)return s[0];throw new TypeError("At least one of the arguments is not a vector.")}else throw new TypeError("Only one- or two-dimensional vectors are supported.")}}),k4="matrixFromColumns",DSe=["typed","matrix","flatten","size"],ASe=se(k4,DSe,e=>{var{typed:t,matrix:n,flatten:r,size:o}=e;return t(k4,{"...Array":function(s){return a(s)},"...Matrix":function(s){return n(a(s.map(u=>u.toArray())))}});function a(l){if(l.length===0)throw new TypeError("At least one column is needed to construct a matrix.");for(var s=i(l[0]),u=[],c=0;c<s;c++)u[c]=[];for(var d of l){var f=i(d);if(f!==s)throw new TypeError("The vectors had different length: "+(s|0)+" ≠ "+(f|0));for(var p=r(d),v=0;v<s;v++)u[v].push(p[v])}return u}function i(l){var s=o(l);if(s.length===1)return s[0];if(s.length===2){if(s[0]===1)return s[1];if(s[1]===1)return s[0];throw new TypeError("At least one of the arguments is not a vector.")}else throw new TypeError("Only one- or two-dimensional vectors are supported.")}}),H4="splitUnit",OSe=["typed"],TSe=se(H4,OSe,e=>{var{typed:t}=e;return t(H4,{"Unit, Array":function(r,o){return r.splitUnit(o)}})}),j4="unaryMinus",MSe=["typed"],NSe=se(j4,MSe,e=>{var{typed:t}=e;return t(j4,{number:y7,"Complex | BigNumber | Fraction":n=>n.neg(),Unit:t.referToSelf(n=>r=>{var o=r.clone();return o.value=t.find(n,o.valueType())(r.value),o}),"Array | Matrix":t.referToSelf(n=>r=>Tt(r,n))})}),V4="unaryPlus",PSe=["typed","config","BigNumber"],ISe=se(V4,PSe,e=>{var{typed:t,config:n,BigNumber:r}=e;return t(V4,{number:b7,Complex:function(a){return a},BigNumber:function(a){return a},Fraction:function(a){return a},Unit:function(a){return a.clone()},"Array | Matrix":t.referToSelf(o=>a=>Tt(a,o)),"boolean | string":function(a){return n.number==="BigNumber"?new r(+a):+a}})}),W4="abs",_Se=["typed"],BSe=se(W4,_Se,e=>{var{typed:t}=e;return t(W4,{number:v7,"Complex | BigNumber | Fraction | Unit":n=>n.abs(),"Array | Matrix":t.referToSelf(n=>r=>Tt(r,n))})}),U4="apply",FSe=["typed","isInteger"],dB=se(U4,FSe,e=>{var{typed:t,isInteger:n}=e;return t(U4,{"Array | Matrix, number | BigNumber, function":function(o,a,i){if(!n(a))throw new TypeError("Integer number expected for dimension");var l=Array.isArray(o)?Mt(o):o.size();if(a<0||a>=l.length)throw new oo(a,l.length);return mt(o)?o.create(Up(o.valueOf(),a,i)):Up(o,a,i)}})});function Up(e,t,n){var r,o,a;if(t<=0)if(Array.isArray(e[0])){for(a=RSe(e),o=[],r=0;r<a.length;r++)o[r]=Up(a[r],t-1,n);return o}else return n(e);else{for(o=[],r=0;r<e.length;r++)o[r]=Up(e[r],t-1,n);return o}}function RSe(e){var t=e.length,n=e[0].length,r,o,a=[];for(o=0;o<n;o++){var i=[];for(r=0;r<t;r++)i.push(e[r][o]);a.push(i)}return a}var K4="addScalar",zSe=["typed"],LSe=se(K4,zSe,e=>{var{typed:t}=e;return t(K4,{"number, number":h7,"Complex, Complex":function(r,o){return r.add(o)},"BigNumber, BigNumber":function(r,o){return r.plus(o)},"Fraction, Fraction":function(r,o){return r.add(o)},"Unit, Unit":t.referToSelf(n=>(r,o)=>{if(r.value===null||r.value===void 0)throw new Error("Parameter x contains a unit with undefined value");if(o.value===null||o.value===void 0)throw new Error("Parameter y contains a unit with undefined value");if(!r.equalBase(o))throw new Error("Units do not match");var a=r.clone();return a.value=t.find(n,[a.valueType(),o.valueType()])(a.value,o.value),a.fixPrefix=!1,a})})}),q4="cbrt",kSe=["config","typed","isNegative","unaryMinus","matrix","Complex","BigNumber","Fraction"],HSe=se(q4,kSe,e=>{var{config:t,typed:n,isNegative:r,unaryMinus:o,matrix:a,Complex:i,BigNumber:l,Fraction:s}=e;return n(q4,{number:cu,Complex:u,"Complex, boolean":u,BigNumber:function(f){return f.cbrt()},Unit:c});function u(d,f){var p=d.arg()/3,v=d.abs(),m=new i(cu(v),0).mul(new i(0,p).exp());if(f){var h=[m,new i(cu(v),0).mul(new i(0,p+Math.PI*2/3).exp()),new i(cu(v),0).mul(new i(0,p-Math.PI*2/3).exp())];return t.matrix==="Array"?h:a(h)}else return m}function c(d){if(d.value&&vo(d.value)){var f=d.clone();return f.value=1,f=f.pow(1/3),f.value=u(d.value),f}else{var p=r(d.value);p&&(d.value=o(d.value));var v;Ot(d.value)?v=new l(1).div(3):ul(d.value)?v=new s(1,3):v=1/3;var m=d.pow(v);return p&&(m.value=o(m.value)),m}}}),jSe="matAlgo11xS0s",VSe=["typed","equalScalar"],Gn=se(jSe,VSe,e=>{var{typed:t,equalScalar:n}=e;return function(o,a,i,l){var s=o._values,u=o._index,c=o._ptr,d=o._size,f=o._datatype;if(!s)throw new Error("Cannot perform operation on Pattern Sparse Matrix and Scalar value");var p=d[0],v=d[1],m,h=n,g=0,x=i;typeof f=="string"&&(m=f,h=t.find(n,[m,m]),g=t.convert(0,m),a=t.convert(a,m),x=t.find(i,[m,m]));for(var y=[],w=[],b=[],S=0;S<v;S++){b[S]=w.length;for(var $=c[S],D=c[S+1],O=$;O<D;O++){var A=u[O],T=l?x(a,s[O]):x(s[O],a);h(T,g)||(w.push(A),y.push(T))}}return b[v]=w.length,o.createSparseMatrix({values:y,index:w,ptr:b,size:[p,v],datatype:m})}}),WSe="matAlgo12xSfs",USe=["typed","DenseMatrix"],zn=se(WSe,USe,e=>{var{typed:t,DenseMatrix:n}=e;return function(o,a,i,l){var s=o._values,u=o._index,c=o._ptr,d=o._size,f=o._datatype;if(!s)throw new Error("Cannot perform operation on Pattern Sparse Matrix and Scalar value");var p=d[0],v=d[1],m,h=i;typeof f=="string"&&(m=f,a=t.convert(a,m),h=t.find(i,[m,m]));for(var g=[],x=[],y=[],w=0;w<v;w++){for(var b=w+1,S=c[w],$=c[w+1],D=S;D<$;D++){var O=u[D];x[O]=s[D],y[O]=b}for(var A=0;A<p;A++)w===0&&(g[A]=[]),y[A]===b?g[A][w]=l?h(a,x[A]):h(x[A],a):g[A][w]=l?h(a,0):h(0,a)}return new n({data:g,size:[p,v],datatype:m})}}),KSe="matAlgo14xDs",qSe=["typed"],Do=se(KSe,qSe,e=>{var{typed:t}=e;return function(o,a,i,l){var s=o._data,u=o._size,c=o._datatype,d,f=i;typeof c=="string"&&(d=c,a=t.convert(a,d),f=t.find(i,[d,d]));var p=u.length>0?n(f,0,u,u[0],s,a,l):[];return o.createDenseMatrix({data:p,size:ct(u),datatype:d})};function n(r,o,a,i,l,s,u){var c=[];if(o===a.length-1)for(var d=0;d<i;d++)c[d]=u?r(s,l[d]):r(l[d],s);else for(var f=0;f<i;f++)c[f]=n(r,o+1,a,a[o+1],l[f],s,u);return c}}),$y="ceil",GSe=["typed","config","round","matrix","equalScalar","zeros","DenseMatrix"],XSe=se($y,["typed","config","round"],e=>{var{typed:t,config:n,round:r}=e;return t($y,{number:function(a){return kr(a,r(a),n.epsilon)?r(a):Math.ceil(a)},"number, number":function(a,i){if(kr(a,r(a,i),n.epsilon))return r(a,i);var[l,s]="".concat(a,"e").split("e"),u=Math.ceil(Number("".concat(l,"e").concat(Number(s)+i)));return[l,s]="".concat(u,"e").split("e"),Number("".concat(l,"e").concat(Number(s)-i))}})}),YSe=se($y,GSe,e=>{var{typed:t,config:n,round:r,matrix:o,equalScalar:a,zeros:i,DenseMatrix:l}=e,s=Gn({typed:t,equalScalar:a}),u=zn({typed:t,DenseMatrix:l}),c=Do({typed:t}),d=XSe({typed:t,config:n,round:r});return t("ceil",{number:d.signatures.number,"number,number":d.signatures["number,number"],Complex:function(p){return p.ceil()},"Complex, number":function(p,v){return p.ceil(v)},"Complex, BigNumber":function(p,v){return p.ceil(v.toNumber())},BigNumber:function(p){return Uo(p,r(p),n.epsilon)?r(p):p.ceil()},"BigNumber, BigNumber":function(p,v){return Uo(p,r(p,v),n.epsilon)?r(p,v):p.toDecimalPlaces(v.toNumber(),si.ROUND_CEIL)},Fraction:function(p){return p.ceil()},"Fraction, number":function(p,v){return p.ceil(v)},"Fraction, BigNumber":function(p,v){return p.ceil(v.toNumber())},"Array | Matrix":t.referToSelf(f=>p=>Tt(p,f)),"Array, number | BigNumber":t.referToSelf(f=>(p,v)=>Tt(p,m=>f(m,v))),"SparseMatrix, number | BigNumber":t.referToSelf(f=>(p,v)=>s(p,v,f,!1)),"DenseMatrix, number | BigNumber":t.referToSelf(f=>(p,v)=>c(p,v,f,!1)),"number | Complex | Fraction | BigNumber, Array":t.referToSelf(f=>(p,v)=>c(o(v),p,f,!0).valueOf()),"number | Complex | Fraction | BigNumber, Matrix":t.referToSelf(f=>(p,v)=>a(p,0)?i(v.size(),v.storage()):v.storage()==="dense"?c(v,p,f,!0):u(v,p,f,!0))})}),G4="cube",ZSe=["typed"],JSe=se(G4,ZSe,e=>{var{typed:t}=e;return t(G4,{number:x7,Complex:function(r){return r.mul(r).mul(r)},BigNumber:function(r){return r.times(r).times(r)},Fraction:function(r){return r.pow(3)},Unit:function(r){return r.pow(3)}})}),X4="exp",QSe=["typed"],eCe=se(X4,QSe,e=>{var{typed:t}=e;return t(X4,{number:w7,Complex:function(r){return r.exp()},BigNumber:function(r){return r.exp()}})}),Y4="expm1",tCe=["typed","Complex"],nCe=se(Y4,tCe,e=>{var{typed:t,Complex:n}=e;return t(Y4,{number:S7,Complex:function(o){var a=Math.exp(o.re);return new n(a*Math.cos(o.im)-1,a*Math.sin(o.im))},BigNumber:function(o){return o.exp().minus(1)}})}),Ey="fix",rCe=["typed","Complex","matrix","ceil","floor","equalScalar","zeros","DenseMatrix"],oCe=se(Ey,["typed","ceil","floor"],e=>{var{typed:t,ceil:n,floor:r}=e;return t(Ey,{number:function(a){return a>0?r(a):n(a)},"number, number":function(a,i){return a>0?r(a,i):n(a,i)}})}),aCe=se(Ey,rCe,e=>{var{typed:t,Complex:n,matrix:r,ceil:o,floor:a,equalScalar:i,zeros:l,DenseMatrix:s}=e,u=zn({typed:t,DenseMatrix:s}),c=Do({typed:t}),d=oCe({typed:t,ceil:o,floor:a});return t("fix",{number:d.signatures.number,"number, number | BigNumber":d.signatures["number,number"],Complex:function(p){return new n(p.re>0?Math.floor(p.re):Math.ceil(p.re),p.im>0?Math.floor(p.im):Math.ceil(p.im))},"Complex, number":function(p,v){return new n(p.re>0?a(p.re,v):o(p.re,v),p.im>0?a(p.im,v):o(p.im,v))},"Complex, BigNumber":function(p,v){var m=v.toNumber();return new n(p.re>0?a(p.re,m):o(p.re,m),p.im>0?a(p.im,m):o(p.im,m))},BigNumber:function(p){return p.isNegative()?o(p):a(p)},"BigNumber, number | BigNumber":function(p,v){return p.isNegative()?o(p,v):a(p,v)},Fraction:function(p){return p.s<0?p.ceil():p.floor()},"Fraction, number | BigNumber":function(p,v){return p.s<0?o(p,v):a(p,v)},"Array | Matrix":t.referToSelf(f=>p=>Tt(p,f)),"Array | Matrix, number | BigNumber":t.referToSelf(f=>(p,v)=>Tt(p,m=>f(m,v))),"number | Complex | Fraction | BigNumber, Array":t.referToSelf(f=>(p,v)=>c(r(v),p,f,!0).valueOf()),"number | Complex | Fraction | BigNumber, Matrix":t.referToSelf(f=>(p,v)=>i(p,0)?l(v.size(),v.storage()):v.storage()==="dense"?c(v,p,f,!0):u(v,p,f,!0))})}),Dy="floor",iCe=["typed","config","round","matrix","equalScalar","zeros","DenseMatrix"],lCe=se(Dy,["typed","config","round"],e=>{var{typed:t,config:n,round:r}=e;return t(Dy,{number:function(a){return kr(a,r(a),n.epsilon)?r(a):Math.floor(a)},"number, number":function(a,i){if(kr(a,r(a,i),n.epsilon))return r(a,i);var[l,s]="".concat(a,"e").split("e"),u=Math.floor(Number("".concat(l,"e").concat(Number(s)+i)));return[l,s]="".concat(u,"e").split("e"),Number("".concat(l,"e").concat(Number(s)-i))}})}),sCe=se(Dy,iCe,e=>{var{typed:t,config:n,round:r,matrix:o,equalScalar:a,zeros:i,DenseMatrix:l}=e,s=Gn({typed:t,equalScalar:a}),u=zn({typed:t,DenseMatrix:l}),c=Do({typed:t}),d=lCe({typed:t,config:n,round:r});return t("floor",{number:d.signatures.number,"number,number":d.signatures["number,number"],Complex:function(p){return p.floor()},"Complex, number":function(p,v){return p.floor(v)},"Complex, BigNumber":function(p,v){return p.floor(v.toNumber())},BigNumber:function(p){return Uo(p,r(p),n.epsilon)?r(p):p.floor()},"BigNumber, BigNumber":function(p,v){return Uo(p,r(p,v),n.epsilon)?r(p,v):p.toDecimalPlaces(v.toNumber(),si.ROUND_FLOOR)},Fraction:function(p){return p.floor()},"Fraction, number":function(p,v){return p.floor(v)},"Fraction, BigNumber":function(p,v){return p.floor(v.toNumber())},"Array | Matrix":t.referToSelf(f=>p=>Tt(p,f)),"Array, number | BigNumber":t.referToSelf(f=>(p,v)=>Tt(p,m=>f(m,v))),"SparseMatrix, number | BigNumber":t.referToSelf(f=>(p,v)=>s(p,v,f,!1)),"DenseMatrix, number | BigNumber":t.referToSelf(f=>(p,v)=>c(p,v,f,!1)),"number | Complex | Fraction | BigNumber, Array":t.referToSelf(f=>(p,v)=>c(o(v),p,f,!0).valueOf()),"number | Complex | Fraction | BigNumber, Matrix":t.referToSelf(f=>(p,v)=>a(p,0)?i(v.size(),v.storage()):v.storage()==="dense"?c(v,p,f,!0):u(v,p,f,!0))})}),uCe="matAlgo01xDSid",cCe=["typed"],vi=se(uCe,cCe,e=>{var{typed:t}=e;return function(r,o,a,i){var l=r._data,s=r._size,u=r._datatype,c=o._values,d=o._index,f=o._ptr,p=o._size,v=o._datatype;if(s.length!==p.length)throw new Dt(s.length,p.length);if(s[0]!==p[0]||s[1]!==p[1])throw new RangeError("Dimension mismatch. Matrix A ("+s+") must match Matrix B ("+p+")");if(!c)throw new Error("Cannot perform operation on Dense Matrix and Pattern Sparse Matrix");var m=s[0],h=s[1],g=typeof u=="string"&&u===v?u:void 0,x=g?t.find(a,[g,g]):a,y,w,b=[];for(y=0;y<m;y++)b[y]=[];var S=[],$=[];for(w=0;w<h;w++){for(var D=w+1,O=f[w],A=f[w+1],T=O;T<A;T++)y=d[T],S[y]=i?x(c[T],l[y][w]):x(l[y][w],c[T]),$[y]=D;for(y=0;y<m;y++)$[y]===D?b[y][w]=S[y]:b[y][w]=l[y][w]}return r.createDenseMatrix({data:b,size:[m,h],datatype:g})}}),dCe="matAlgo04xSidSid",fCe=["typed","equalScalar"],Gw=se(dCe,fCe,e=>{var{typed:t,equalScalar:n}=e;return function(o,a,i){var l=o._values,s=o._index,u=o._ptr,c=o._size,d=o._datatype,f=a._values,p=a._index,v=a._ptr,m=a._size,h=a._datatype;if(c.length!==m.length)throw new Dt(c.length,m.length);if(c[0]!==m[0]||c[1]!==m[1])throw new RangeError("Dimension mismatch. Matrix A ("+c+") must match Matrix B ("+m+")");var g=c[0],x=c[1],y,w=n,b=0,S=i;typeof d=="string"&&d===h&&(y=d,w=t.find(n,[y,y]),b=t.convert(0,y),S=t.find(i,[y,y]));var $=l&&f?[]:void 0,D=[],O=[],A=l&&f?[]:void 0,T=l&&f?[]:void 0,M=[],B=[],F,P,I,N,R;for(P=0;P<x;P++){O[P]=D.length;var _=P+1;for(N=u[P],R=u[P+1],I=N;I<R;I++)F=s[I],D.push(F),M[F]=_,A&&(A[F]=l[I]);for(N=v[P],R=v[P+1],I=N;I<R;I++)if(F=p[I],M[F]===_){if(A){var L=S(A[F],f[I]);w(L,b)?M[F]=null:A[F]=L}}else D.push(F),B[F]=_,T&&(T[F]=f[I]);if(A&&T)for(I=O[P];I<D.length;)F=D[I],M[F]===_?($[I]=A[F],I++):B[F]===_?($[I]=T[F],I++):D.splice(I,1)}return O[x]=D.length,o.createSparseMatrix({values:$,index:D,ptr:O,size:[g,x],datatype:y})}}),pCe="matAlgo10xSids",mCe=["typed","DenseMatrix"],fl=se(pCe,mCe,e=>{var{typed:t,DenseMatrix:n}=e;return function(o,a,i,l){var s=o._values,u=o._index,c=o._ptr,d=o._size,f=o._datatype;if(!s)throw new Error("Cannot perform operation on Pattern Sparse Matrix and Scalar value");var p=d[0],v=d[1],m,h=i;typeof f=="string"&&(m=f,a=t.convert(a,m),h=t.find(i,[m,m]));for(var g=[],x=[],y=[],w=0;w<v;w++){for(var b=w+1,S=c[w],$=c[w+1],D=S;D<$;D++){var O=u[D];x[O]=s[D],y[O]=b}for(var A=0;A<p;A++)w===0&&(g[A]=[]),y[A]===b?g[A][w]=l?h(a,x[A]):h(x[A],a):g[A][w]=a}return new n({data:g,size:[p,v],datatype:m})}}),vCe="matAlgo13xDD",hCe=["typed"],gCe=se(vCe,hCe,e=>{var{typed:t}=e;return function(o,a,i){var l=o._data,s=o._size,u=o._datatype,c=a._data,d=a._size,f=a._datatype,p=[];if(s.length!==d.length)throw new Dt(s.length,d.length);for(var v=0;v<s.length;v++){if(s[v]!==d[v])throw new RangeError("Dimension mismatch. Matrix A ("+s+") must match Matrix B ("+d+")");p[v]=s[v]}var m,h=i;typeof u=="string"&&u===f&&(m=u,h=t.find(i,[m,m]));var g=p.length>0?n(h,0,p,p[0],l,c):[];return o.createDenseMatrix({data:g,size:p,datatype:m})};function n(r,o,a,i,l,s){var u=[];if(o===a.length-1)for(var c=0;c<i;c++)u[c]=r(l[c],s[c]);else for(var d=0;d<i;d++)u[d]=n(r,o+1,a,a[o+1],l[d],s[d]);return u}}),yCe="broadcast",bCe=["concat"],xCe=se(yCe,bCe,e=>{var{concat:t}=e;return function(a,i){var l=Math.max(a._size.length,i._size.length);if(a._size.length===i._size.length&&a._size.every((h,g)=>h===i._size[g]))return[a,i];for(var s=n(a._size,l,0),u=n(i._size,l,0),c=[],d=0;d<l;d++)c[d]=Math.max(s[d],u[d]);for(var f=0;f<l;f++)o(s,c,f),o(u,c,f);var p=a.clone(),v=i.clone();p._size.length<l?p.reshape(n(p._size,l,1)):v._size.length<l&&v.reshape(n(v._size,l,1));for(var m=0;m<l;m++)p._size[m]<c[m]&&(p=r(p,c[m],m)),v._size[m]<c[m]&&(v=r(v,c[m],m));return[p,v]};function n(a,i,l){return[...Array(i-a.length).fill(l),...a]}function r(a,i,l){return t(...Array(i).fill(a),l)}function o(a,i,l){if(a[l]<i[l]&a[l]>1)throw new Error("shape missmatch: missmatch is found in arg with shape (".concat(a,") not possible to broadcast dimension ").concat(l," with size ").concat(a[l]," to size ").concat(i[l]))}}),wCe="matrixAlgorithmSuite",SCe=["typed","matrix","concat"],Qt=se(wCe,SCe,e=>{var{typed:t,matrix:n,concat:r}=e,o=gCe({typed:t}),a=Do({typed:t}),i=xCe({concat:r});return function(s){var u=s.elop,c=s.SD||s.DS,d;u?(d={"DenseMatrix, DenseMatrix":(m,h)=>o(...i(m,h),u),"Array, Array":(m,h)=>o(...i(n(m),n(h)),u).valueOf(),"Array, DenseMatrix":(m,h)=>o(...i(n(m),h),u),"DenseMatrix, Array":(m,h)=>o(...i(m,n(h)),u)},s.SS&&(d["SparseMatrix, SparseMatrix"]=(m,h)=>s.SS(...i(m,h),u,!1)),s.DS&&(d["DenseMatrix, SparseMatrix"]=(m,h)=>s.DS(...i(m,h),u,!1),d["Array, SparseMatrix"]=(m,h)=>s.DS(...i(n(m),h),u,!1)),c&&(d["SparseMatrix, DenseMatrix"]=(m,h)=>c(...i(h,m),u,!0),d["SparseMatrix, Array"]=(m,h)=>c(...i(n(h),m),u,!0))):(d={"DenseMatrix, DenseMatrix":t.referToSelf(m=>(h,g)=>o(...i(h,g),m)),"Array, Array":t.referToSelf(m=>(h,g)=>o(...i(n(h),n(g)),m).valueOf()),"Array, DenseMatrix":t.referToSelf(m=>(h,g)=>o(...i(n(h),g),m)),"DenseMatrix, Array":t.referToSelf(m=>(h,g)=>o(...i(h,n(g)),m))},s.SS&&(d["SparseMatrix, SparseMatrix"]=t.referToSelf(m=>(h,g)=>s.SS(...i(h,g),m,!1))),s.DS&&(d["DenseMatrix, SparseMatrix"]=t.referToSelf(m=>(h,g)=>s.DS(...i(h,g),m,!1)),d["Array, SparseMatrix"]=t.referToSelf(m=>(h,g)=>s.DS(...i(n(h),g),m,!1))),c&&(d["SparseMatrix, DenseMatrix"]=t.referToSelf(m=>(h,g)=>c(...i(g,h),m,!0)),d["SparseMatrix, Array"]=t.referToSelf(m=>(h,g)=>c(...i(n(g),h),m,!0))));var f=s.scalar||"any",p=s.Ds||s.Ss;p&&(u?(d["DenseMatrix,"+f]=(m,h)=>a(m,h,u,!1),d[f+", DenseMatrix"]=(m,h)=>a(h,m,u,!0),d["Array,"+f]=(m,h)=>a(n(m),h,u,!1).valueOf(),d[f+", Array"]=(m,h)=>a(n(h),m,u,!0).valueOf()):(d["DenseMatrix,"+f]=t.referToSelf(m=>(h,g)=>a(h,g,m,!1)),d[f+", DenseMatrix"]=t.referToSelf(m=>(h,g)=>a(g,h,m,!0)),d["Array,"+f]=t.referToSelf(m=>(h,g)=>a(n(h),g,m,!1).valueOf()),d[f+", Array"]=t.referToSelf(m=>(h,g)=>a(n(g),h,m,!0).valueOf())));var v=s.sS!==void 0?s.sS:s.Ss;return u?(s.Ss&&(d["SparseMatrix,"+f]=(m,h)=>s.Ss(m,h,u,!1)),v&&(d[f+", SparseMatrix"]=(m,h)=>v(h,m,u,!0))):(s.Ss&&(d["SparseMatrix,"+f]=t.referToSelf(m=>(h,g)=>s.Ss(h,g,m,!1))),v&&(d[f+", SparseMatrix"]=t.referToSelf(m=>(h,g)=>v(g,h,m,!0)))),u&&u.signatures&&k_(d,u.signatures),d}});function Na(e,t,n,r){if(!(this instanceof Na))throw new SyntaxError("Constructor must be called with the new operator");this.fn=e,this.count=t,this.min=n,this.max=r,this.message="Wrong number of arguments in function "+e+" ("+t+" provided, "+n+(r!=null?"-"+r:"")+" expected)",this.stack=new Error().stack}Na.prototype=new Error;Na.prototype.constructor=Error;Na.prototype.name="ArgumentsError";Na.prototype.isArgumentsError=!0;var Z4="gcd",CCe=["typed","matrix","equalScalar","BigNumber","DenseMatrix","concat"],bg="number | BigNumber | Fraction | Matrix | Array",$Ce="".concat(bg,", ").concat(bg,", ...").concat(bg);function J4(e){return!e.some(t=>Array.isArray(t))}var ECe=se(Z4,CCe,e=>{var{typed:t,matrix:n,equalScalar:r,BigNumber:o,DenseMatrix:a,concat:i}=e,l=vi({typed:t}),s=Gw({typed:t,equalScalar:r}),u=fl({typed:t,DenseMatrix:a}),c=Qt({typed:t,matrix:n,concat:i});return t(Z4,{"number, number":C7,"BigNumber, BigNumber":d,"Fraction, Fraction":(f,p)=>f.gcd(p)},c({SS:s,DS:l,Ss:u}),{[$Ce]:t.referToSelf(f=>(p,v,m)=>{for(var h=f(p,v),g=0;g<m.length;g++)h=f(h,m[g]);return h}),Array:t.referToSelf(f=>p=>{if(p.length===1&&Array.isArray(p[0])&&J4(p[0]))return f(...p[0]);if(J4(p))return f(...p);throw new Na("gcd() supports only 1d matrices!")}),Matrix:t.referToSelf(f=>p=>f(p.toArray()))});function d(f,p){if(!f.isInt()||!p.isInt())throw new Error("Parameters in function gcd must be integer numbers");for(var v=new o(0);!p.isZero();){var m=f.mod(p);f=p,p=m}return f.lt(v)?f.neg():f}}),DCe="matAlgo02xDS0",ACe=["typed","equalScalar"],Ao=se(DCe,ACe,e=>{var{typed:t,equalScalar:n}=e;return function(o,a,i,l){var s=o._data,u=o._size,c=o._datatype,d=a._values,f=a._index,p=a._ptr,v=a._size,m=a._datatype;if(u.length!==v.length)throw new Dt(u.length,v.length);if(u[0]!==v[0]||u[1]!==v[1])throw new RangeError("Dimension mismatch. Matrix A ("+u+") must match Matrix B ("+v+")");if(!d)throw new Error("Cannot perform operation on Dense Matrix and Pattern Sparse Matrix");var h=u[0],g=u[1],x,y=n,w=0,b=i;typeof c=="string"&&c===m&&(x=c,y=t.find(n,[x,x]),w=t.convert(0,x),b=t.find(i,[x,x]));for(var S=[],$=[],D=[],O=0;O<g;O++){D[O]=$.length;for(var A=p[O],T=p[O+1],M=A;M<T;M++){var B=f[M],F=l?b(d[M],s[B][O]):b(s[B][O],d[M]);y(F,w)||($.push(B),S.push(F))}}return D[g]=$.length,a.createSparseMatrix({values:S,index:$,ptr:D,size:[h,g],datatype:x})}}),OCe="matAlgo06xS0S0",TCe=["typed","equalScalar"],zv=se(OCe,TCe,e=>{var{typed:t,equalScalar:n}=e;return function(o,a,i){var l=o._values,s=o._size,u=o._datatype,c=a._values,d=a._size,f=a._datatype;if(s.length!==d.length)throw new Dt(s.length,d.length);if(s[0]!==d[0]||s[1]!==d[1])throw new RangeError("Dimension mismatch. Matrix A ("+s+") must match Matrix B ("+d+")");var p=s[0],v=s[1],m,h=n,g=0,x=i;typeof u=="string"&&u===f&&(m=u,h=t.find(n,[m,m]),g=t.convert(0,m),x=t.find(i,[m,m]));for(var y=l&&c?[]:void 0,w=[],b=[],S=y?[]:void 0,$=[],D=[],O=0;O<v;O++){b[O]=w.length;var A=O+1;if(C4(o,O,$,S,D,A,w,x),C4(a,O,$,S,D,A,w,x),S)for(var T=b[O];T<w.length;){var M=w[T];if(D[M]===A){var B=S[M];h(B,g)?w.splice(T,1):(y.push(B),T++)}else w.splice(T,1)}else for(var F=b[O];F<w.length;){var P=w[F];D[P]!==A?w.splice(F,1):F++}}return b[v]=w.length,o.createSparseMatrix({values:y,index:w,ptr:b,size:[p,v],datatype:m})}}),Q4="lcm",MCe=["typed","matrix","equalScalar","concat"],NCe=se(Q4,MCe,e=>{var{typed:t,matrix:n,equalScalar:r,concat:o}=e,a=Ao({typed:t,equalScalar:r}),i=zv({typed:t,equalScalar:r}),l=Gn({typed:t,equalScalar:r}),s=Qt({typed:t,matrix:n,concat:o}),u="number | BigNumber | Fraction | Matrix | Array",c={};return c["".concat(u,", ").concat(u,", ...").concat(u)]=t.referToSelf(f=>(p,v,m)=>{for(var h=f(p,v),g=0;g<m.length;g++)h=f(h,m[g]);return h}),t(Q4,{"number, number":$7,"BigNumber, BigNumber":d,"Fraction, Fraction":(f,p)=>f.lcm(p)},s({SS:i,DS:a,Ss:l}),c);function d(f,p){if(!f.isInt()||!p.isInt())throw new Error("Parameters in function lcm must be integer numbers");if(f.isZero())return f;if(p.isZero())return p;for(var v=f.times(p);!p.isZero();){var m=p;p=f.mod(m),f=m}return v.div(f).abs()}}),eD="log10",PCe=["typed","config","Complex"],ICe=se(eD,PCe,e=>{var{typed:t,config:n,Complex:r}=e;return t(eD,{number:function(a){return a>=0||n.predictable?E7(a):new r(a,0).log().div(Math.LN10)},Complex:function(a){return new r(a).log().div(Math.LN10)},BigNumber:function(a){return!a.isNegative()||n.predictable?a.log():new r(a.toNumber(),0).log().div(Math.LN10)},"Array | Matrix":t.referToSelf(o=>a=>Tt(a,o))})}),tD="log2",_Ce=["typed","config","Complex"],BCe=se(tD,_Ce,e=>{var{typed:t,config:n,Complex:r}=e;return t(tD,{number:function(i){return i>=0||n.predictable?D7(i):o(new r(i,0))},Complex:o,BigNumber:function(i){return!i.isNegative()||n.predictable?i.log(2):o(new r(i.toNumber(),0))},"Array | Matrix":t.referToSelf(a=>i=>Tt(i,a))});function o(a){var i=Math.sqrt(a.re*a.re+a.im*a.im);return new r(Math.log2?Math.log2(i):Math.log(i)/Math.LN2,Math.atan2(a.im,a.re)/Math.LN2)}}),FCe="matAlgo03xDSf",RCe=["typed"],fr=se(FCe,RCe,e=>{var{typed:t}=e;return function(r,o,a,i){var l=r._data,s=r._size,u=r._datatype,c=o._values,d=o._index,f=o._ptr,p=o._size,v=o._datatype;if(s.length!==p.length)throw new Dt(s.length,p.length);if(s[0]!==p[0]||s[1]!==p[1])throw new RangeError("Dimension mismatch. Matrix A ("+s+") must match Matrix B ("+p+")");if(!c)throw new Error("Cannot perform operation on Dense Matrix and Pattern Sparse Matrix");var m=s[0],h=s[1],g,x=0,y=a;typeof u=="string"&&u===v&&(g=u,x=t.convert(0,g),y=t.find(a,[g,g]));for(var w=[],b=0;b<m;b++)w[b]=[];for(var S=[],$=[],D=0;D<h;D++){for(var O=D+1,A=f[D],T=f[D+1],M=A;M<T;M++){var B=d[M];S[B]=i?y(c[M],l[B][D]):y(l[B][D],c[M]),$[B]=O}for(var F=0;F<m;F++)$[F]===O?w[F][D]=S[F]:w[F][D]=i?y(x,l[F][D]):y(l[F][D],x)}return r.createDenseMatrix({data:w,size:[m,h],datatype:g})}}),zCe="matAlgo05xSfSf",LCe=["typed","equalScalar"],Lv=se(zCe,LCe,e=>{var{typed:t,equalScalar:n}=e;return function(o,a,i){var l=o._values,s=o._index,u=o._ptr,c=o._size,d=o._datatype,f=a._values,p=a._index,v=a._ptr,m=a._size,h=a._datatype;if(c.length!==m.length)throw new Dt(c.length,m.length);if(c[0]!==m[0]||c[1]!==m[1])throw new RangeError("Dimension mismatch. Matrix A ("+c+") must match Matrix B ("+m+")");var g=c[0],x=c[1],y,w=n,b=0,S=i;typeof d=="string"&&d===h&&(y=d,w=t.find(n,[y,y]),b=t.convert(0,y),S=t.find(i,[y,y]));var $=l&&f?[]:void 0,D=[],O=[],A=$?[]:void 0,T=$?[]:void 0,M=[],B=[],F,P,I,N;for(P=0;P<x;P++){O[P]=D.length;var R=P+1;for(I=u[P],N=u[P+1];I<N;I++)F=s[I],D.push(F),M[F]=R,A&&(A[F]=l[I]);for(I=v[P],N=v[P+1];I<N;I++)F=p[I],M[F]!==R&&D.push(F),B[F]=R,T&&(T[F]=f[I]);if($)for(I=O[P];I<D.length;){F=D[I];var _=M[F],L=B[F];if(_===R||L===R){var k=_===R?A[F]:b,H=L===R?T[F]:b,V=S(k,H);w(V,b)?D.splice(I,1):($.push(V),I++)}}}return O[x]=D.length,o.createSparseMatrix({values:$,index:D,ptr:O,size:[g,x],datatype:y})}}),nD="mod",kCe=["typed","matrix","equalScalar","DenseMatrix","concat"],HCe=se(nD,kCe,e=>{var{typed:t,matrix:n,equalScalar:r,DenseMatrix:o,concat:a}=e,i=Ao({typed:t,equalScalar:r}),l=fr({typed:t}),s=Lv({typed:t,equalScalar:r}),u=Gn({typed:t,equalScalar:r}),c=zn({typed:t,DenseMatrix:o}),d=Qt({typed:t,matrix:n,concat:a});return t(nD,{"number, number":A7,"BigNumber, BigNumber":function(p,v){if(v.isNeg())throw new Error("Cannot calculate mod for a negative divisor");return v.isZero()?p:p.mod(v)},"Fraction, Fraction":function(p,v){if(v.compare(0)<0)throw new Error("Cannot calculate mod for a negative divisor");return p.compare(0)>=0?p.mod(v):p.mod(v).add(v).mod(v)}},d({SS:s,DS:l,SD:i,Ss:u,sS:c}))}),jCe="multiplyScalar",VCe=["typed"],WCe=se(jCe,VCe,e=>{var{typed:t}=e;return t("multiplyScalar",{"number, number":g7,"Complex, Complex":function(r,o){return r.mul(o)},"BigNumber, BigNumber":function(r,o){return r.times(o)},"Fraction, Fraction":function(r,o){return r.mul(o)},"number | Fraction | BigNumber | Complex, Unit":(n,r)=>r.multiply(n),"Unit, number | Fraction | BigNumber | Complex | Unit":(n,r)=>n.multiply(r)})}),rD="multiply",UCe=["typed","matrix","addScalar","multiplyScalar","equalScalar","dot"],KCe=se(rD,UCe,e=>{var{typed:t,matrix:n,addScalar:r,multiplyScalar:o,equalScalar:a,dot:i}=e,l=Gn({typed:t,equalScalar:a}),s=Do({typed:t});function u(b,S){switch(b.length){case 1:switch(S.length){case 1:if(b[0]!==S[0])throw new RangeError("Dimension mismatch in multiplication. Vectors must have the same length");break;case 2:if(b[0]!==S[0])throw new RangeError("Dimension mismatch in multiplication. Vector length ("+b[0]+") must match Matrix rows ("+S[0]+")");break;default:throw new Error("Can only multiply a 1 or 2 dimensional matrix (Matrix B has "+S.length+" dimensions)")}break;case 2:switch(S.length){case 1:if(b[1]!==S[0])throw new RangeError("Dimension mismatch in multiplication. Matrix columns ("+b[1]+") must match Vector length ("+S[0]+")");break;case 2:if(b[1]!==S[0])throw new RangeError("Dimension mismatch in multiplication. Matrix A columns ("+b[1]+") must match Matrix B rows ("+S[0]+")");break;default:throw new Error("Can only multiply a 1 or 2 dimensional matrix (Matrix B has "+S.length+" dimensions)")}break;default:throw new Error("Can only multiply a 1 or 2 dimensional matrix (Matrix A has "+b.length+" dimensions)")}}function c(b,S,$){if($===0)throw new Error("Cannot multiply two empty vectors");return i(b,S)}function d(b,S){if(S.storage()!=="dense")throw new Error("Support for SparseMatrix not implemented");return f(b,S)}function f(b,S){var $=b._data,D=b._size,O=b._datatype,A=S._data,T=S._size,M=S._datatype,B=D[0],F=T[1],P,I=r,N=o;O&&M&&O===M&&typeof O=="string"&&(P=O,I=t.find(r,[P,P]),N=t.find(o,[P,P]));for(var R=[],_=0;_<F;_++){for(var L=N($[0],A[0][_]),k=1;k<B;k++)L=I(L,N($[k],A[k][_]));R[_]=L}return b.createDenseMatrix({data:R,size:[F],datatype:P})}var p=t("_multiplyMatrixVector",{"DenseMatrix, any":m,"SparseMatrix, any":x}),v=t("_multiplyMatrixMatrix",{"DenseMatrix, DenseMatrix":h,"DenseMatrix, SparseMatrix":g,"SparseMatrix, DenseMatrix":y,"SparseMatrix, SparseMatrix":w});function m(b,S){var $=b._data,D=b._size,O=b._datatype,A=S._data,T=S._datatype,M=D[0],B=D[1],F,P=r,I=o;O&&T&&O===T&&typeof O=="string"&&(F=O,P=t.find(r,[F,F]),I=t.find(o,[F,F]));for(var N=[],R=0;R<M;R++){for(var _=$[R],L=I(_[0],A[0]),k=1;k<B;k++)L=P(L,I(_[k],A[k]));N[R]=L}return b.createDenseMatrix({data:N,size:[M],datatype:F})}function h(b,S){var $=b._data,D=b._size,O=b._datatype,A=S._data,T=S._size,M=S._datatype,B=D[0],F=D[1],P=T[1],I,N=r,R=o;O&&M&&O===M&&typeof O=="string"&&(I=O,N=t.find(r,[I,I]),R=t.find(o,[I,I]));for(var _=[],L=0;L<B;L++){var k=$[L];_[L]=[];for(var H=0;H<P;H++){for(var V=R(k[0],A[0][H]),U=1;U<F;U++)V=N(V,R(k[U],A[U][H]));_[L][H]=V}}return b.createDenseMatrix({data:_,size:[B,P],datatype:I})}function g(b,S){var $=b._data,D=b._size,O=b._datatype,A=S._values,T=S._index,M=S._ptr,B=S._size,F=S._datatype;if(!A)throw new Error("Cannot multiply Dense Matrix times Pattern only Matrix");var P=D[0],I=B[1],N,R=r,_=o,L=a,k=0;O&&F&&O===F&&typeof O=="string"&&(N=O,R=t.find(r,[N,N]),_=t.find(o,[N,N]),L=t.find(a,[N,N]),k=t.convert(0,N));for(var H=[],V=[],U=[],q=S.createSparseMatrix({values:H,index:V,ptr:U,size:[P,I],datatype:N}),K=0;K<I;K++){U[K]=V.length;var X=M[K],re=M[K+1];if(re>X)for(var ee=0,G=0;G<P;G++){for(var le=G+1,ue=void 0,me=X;me<re;me++){var Se=T[me];ee!==le?(ue=_($[G][Se],A[me]),ee=le):ue=R(ue,_($[G][Se],A[me]))}ee===le&&!L(ue,k)&&(V.push(G),H.push(ue))}}return U[I]=V.length,q}function x(b,S){var $=b._values,D=b._index,O=b._ptr,A=b._datatype;if(!$)throw new Error("Cannot multiply Pattern only Matrix times Dense Matrix");var T=S._data,M=S._datatype,B=b._size[0],F=S._size[0],P=[],I=[],N=[],R,_=r,L=o,k=a,H=0;A&&M&&A===M&&typeof A=="string"&&(R=A,_=t.find(r,[R,R]),L=t.find(o,[R,R]),k=t.find(a,[R,R]),H=t.convert(0,R));var V=[],U=[];N[0]=0;for(var q=0;q<F;q++){var K=T[q];if(!k(K,H))for(var X=O[q],re=O[q+1],ee=X;ee<re;ee++){var G=D[ee];U[G]?V[G]=_(V[G],L(K,$[ee])):(U[G]=!0,I.push(G),V[G]=L(K,$[ee]))}}for(var le=I.length,ue=0;ue<le;ue++){var me=I[ue];P[ue]=V[me]}return N[1]=I.length,b.createSparseMatrix({values:P,index:I,ptr:N,size:[B,1],datatype:R})}function y(b,S){var $=b._values,D=b._index,O=b._ptr,A=b._datatype;if(!$)throw new Error("Cannot multiply Pattern only Matrix times Dense Matrix");var T=S._data,M=S._datatype,B=b._size[0],F=S._size[0],P=S._size[1],I,N=r,R=o,_=a,L=0;A&&M&&A===M&&typeof A=="string"&&(I=A,N=t.find(r,[I,I]),R=t.find(o,[I,I]),_=t.find(a,[I,I]),L=t.convert(0,I));for(var k=[],H=[],V=[],U=b.createSparseMatrix({values:k,index:H,ptr:V,size:[B,P],datatype:I}),q=[],K=[],X=0;X<P;X++){V[X]=H.length;for(var re=X+1,ee=0;ee<F;ee++){var G=T[ee][X];if(!_(G,L))for(var le=O[ee],ue=O[ee+1],me=le;me<ue;me++){var Se=D[me];K[Se]!==re?(K[Se]=re,H.push(Se),q[Se]=R(G,$[me])):q[Se]=N(q[Se],R(G,$[me]))}}for(var Q=V[X],te=H.length,de=Q;de<te;de++){var Y=H[de];k[de]=q[Y]}}return V[P]=H.length,U}function w(b,S){var $=b._values,D=b._index,O=b._ptr,A=b._datatype,T=S._values,M=S._index,B=S._ptr,F=S._datatype,P=b._size[0],I=S._size[1],N=$&&T,R,_=r,L=o;A&&F&&A===F&&typeof A=="string"&&(R=A,_=t.find(r,[R,R]),L=t.find(o,[R,R]));for(var k=N?[]:void 0,H=[],V=[],U=b.createSparseMatrix({values:k,index:H,ptr:V,size:[P,I],datatype:R}),q=N?[]:void 0,K=[],X,re,ee,G,le,ue,me,Se,Q=0;Q<I;Q++){V[Q]=H.length;var te=Q+1;for(le=B[Q],ue=B[Q+1],G=le;G<ue;G++)if(Se=M[G],N)for(re=O[Se],ee=O[Se+1],X=re;X<ee;X++)me=D[X],K[me]!==te?(K[me]=te,H.push(me),q[me]=L(T[G],$[X])):q[me]=_(q[me],L(T[G],$[X]));else for(re=O[Se],ee=O[Se+1],X=re;X<ee;X++)me=D[X],K[me]!==te&&(K[me]=te,H.push(me));if(N)for(var de=V[Q],Y=H.length,ae=de;ae<Y;ae++){var ce=H[ae];k[ae]=q[ce]}}return V[I]=H.length,U}return t(rD,o,{"Array, Array":t.referTo("Matrix, Matrix",b=>(S,$)=>{u(Mt(S),Mt($));var D=b(n(S),n($));return mt(D)?D.valueOf():D}),"Matrix, Matrix":function(S,$){var D=S.size(),O=$.size();return u(D,O),D.length===1?O.length===1?c(S,$,D[0]):d(S,$):O.length===1?p(S,$):v(S,$)},"Matrix, Array":t.referTo("Matrix,Matrix",b=>(S,$)=>b(S,n($))),"Array, Matrix":t.referToSelf(b=>(S,$)=>b(n(S,$.storage()),$)),"SparseMatrix, any":function(S,$){return l(S,$,o,!1)},"DenseMatrix, any":function(S,$){return s(S,$,o,!1)},"any, SparseMatrix":function(S,$){return l($,S,o,!0)},"any, DenseMatrix":function(S,$){return s($,S,o,!0)},"Array, any":function(S,$){return s(n(S),$,o,!1).valueOf()},"any, Array":function(S,$){return s(n($),S,o,!0).valueOf()},"any, any":o,"any, any, ...any":t.referToSelf(b=>(S,$,D)=>{for(var O=b(S,$),A=0;A<D.length;A++)O=b(O,D[A]);return O})})}),oD="nthRoot",qCe=["typed","matrix","equalScalar","BigNumber","concat"],GCe=se(oD,qCe,e=>{var{typed:t,matrix:n,equalScalar:r,BigNumber:o,concat:a}=e,i=vi({typed:t}),l=Ao({typed:t,equalScalar:r}),s=zv({typed:t,equalScalar:r}),u=Gn({typed:t,equalScalar:r}),c=Qt({typed:t,matrix:n,concat:a});function d(){throw new Error("Complex number not supported in function nthRoot. Use nthRoots instead.")}return t(oD,{number:E4,"number, number":E4,BigNumber:p=>f(p,new o(2)),"BigNumber, BigNumber":f,Complex:d,"Complex, number":d,Array:t.referTo("DenseMatrix,number",p=>v=>p(n(v),2).valueOf()),DenseMatrix:t.referTo("DenseMatrix,number",p=>v=>p(v,2)),SparseMatrix:t.referTo("SparseMatrix,number",p=>v=>p(v,2)),"SparseMatrix, SparseMatrix":t.referToSelf(p=>(v,m)=>{if(m.density()===1)return s(v,m,p);throw new Error("Root must be non-zero")}),"DenseMatrix, SparseMatrix":t.referToSelf(p=>(v,m)=>{if(m.density()===1)return i(v,m,p,!1);throw new Error("Root must be non-zero")}),"Array, SparseMatrix":t.referTo("DenseMatrix,SparseMatrix",p=>(v,m)=>p(n(v),m)),"number | BigNumber, SparseMatrix":t.referToSelf(p=>(v,m)=>{if(m.density()===1)return u(m,v,p,!0);throw new Error("Root must be non-zero")})},c({scalar:"number | BigNumber",SD:l,Ss:u,sS:!1}));function f(p,v){var m=o.precision,h=o.clone({precision:m+2}),g=new o(0),x=new h(1),y=v.isNegative();if(y&&(v=v.neg()),v.isZero())throw new Error("Root must be non-zero");if(p.isNegative()&&!v.abs().mod(2).equals(1))throw new Error("Root must be odd when a is negative.");if(p.isZero())return y?new h(1/0):0;if(!p.isFinite())return y?g:p;var w=p.abs().pow(x.div(v));return w=p.isNeg()?w.neg():w,new o((y?x.div(w):w).toPrecision(m))}}),aD="sign",XCe=["typed","BigNumber","Fraction","complex"],YCe=se(aD,XCe,e=>{var{typed:t,BigNumber:n,complex:r,Fraction:o}=e;return t(aD,{number:Cy,Complex:function(i){return i.im===0?r(Cy(i.re)):i.sign()},BigNumber:function(i){return new n(i.cmp(0))},Fraction:function(i){return new o(i.s,1)},"Array | Matrix":t.referToSelf(a=>i=>Tt(i,a)),Unit:t.referToSelf(a=>i=>{if(!i._isDerived()&&i.units[0].unit.offset!==0)throw new TypeError("sign is ambiguous for units with offset");return t.find(a,i.valueType())(i.value)})})}),ZCe="sqrt",JCe=["config","typed","Complex"],QCe=se(ZCe,JCe,e=>{var{config:t,typed:n,Complex:r}=e;return n("sqrt",{number:o,Complex:function(i){return i.sqrt()},BigNumber:function(i){return!i.isNegative()||t.predictable?i.sqrt():o(i.toNumber())},Unit:function(i){return i.pow(.5)}});function o(a){return isNaN(a)?NaN:a>=0||t.predictable?Math.sqrt(a):new r(a,0).sqrt()}}),iD="square",e$e=["typed"],t$e=se(iD,e$e,e=>{var{typed:t}=e;return t(iD,{number:O7,Complex:function(r){return r.mul(r)},BigNumber:function(r){return r.times(r)},Fraction:function(r){return r.mul(r)},Unit:function(r){return r.pow(2)}})}),lD="subtract",n$e=["typed","matrix","equalScalar","addScalar","unaryMinus","DenseMatrix","concat"],r$e=se(lD,n$e,e=>{var{typed:t,matrix:n,equalScalar:r,addScalar:o,unaryMinus:a,DenseMatrix:i,concat:l}=e,s=vi({typed:t}),u=fr({typed:t}),c=Lv({typed:t,equalScalar:r}),d=fl({typed:t,DenseMatrix:i}),f=zn({typed:t,DenseMatrix:i}),p=Qt({typed:t,matrix:n,concat:l});return t(lD,{"number, number":(v,m)=>v-m,"Complex, Complex":(v,m)=>v.sub(m),"BigNumber, BigNumber":(v,m)=>v.minus(m),"Fraction, Fraction":(v,m)=>v.sub(m),"Unit, Unit":t.referToSelf(v=>(m,h)=>{if(m.value===null)throw new Error("Parameter x contains a unit with undefined value");if(h.value===null)throw new Error("Parameter y contains a unit with undefined value");if(!m.equalBase(h))throw new Error("Units do not match");var g=m.clone();return g.value=t.find(v,[g.valueType(),h.valueType()])(g.value,h.value),g.fixPrefix=!1,g})},p({SS:c,DS:s,SD:u,Ss:f,sS:d}))}),sD="xgcd",o$e=["typed","config","matrix","BigNumber"],a$e=se(sD,o$e,e=>{var{typed:t,config:n,matrix:r,BigNumber:o}=e;return t(sD,{"number, number":function(l,s){var u=T7(l,s);return n.matrix==="Array"?u:r(u)},"BigNumber, BigNumber":a});function a(i,l){var s,u,c,d=new o(0),f=new o(1),p=d,v=f,m=f,h=d;if(!i.isInt()||!l.isInt())throw new Error("Parameters in function xgcd must be integer numbers");for(;!l.isZero();)u=i.div(l).floor(),c=i.mod(l),s=p,p=v.minus(u.times(p)),v=s,s=m,m=h.minus(u.times(m)),h=s,i=l,l=c;var g;return i.lt(d)?g=[i.neg(),v.neg(),h.neg()]:g=[i,i.isZero()?0:v,h],n.matrix==="Array"?g:r(g)}}),uD="invmod",i$e=["typed","config","BigNumber","xgcd","equal","smaller","mod","add","isInteger"],l$e=se(uD,i$e,e=>{var{typed:t,config:n,BigNumber:r,xgcd:o,equal:a,smaller:i,mod:l,add:s,isInteger:u}=e;return t(uD,{"number, number":c,"BigNumber, BigNumber":c});function c(d,f){if(!u(d)||!u(f))throw new Error("Parameters in function invmod must be integer numbers");if(d=l(d,f),a(f,0))throw new Error("Divisor must be non zero");var p=o(d,f);p=p.valueOf();var[v,m]=p;return a(v,r(1))?(m=l(m,f),i(m,r(0))&&(m=s(m,f)),m):NaN}}),s$e="matAlgo09xS0Sf",u$e=["typed","equalScalar"],fB=se(s$e,u$e,e=>{var{typed:t,equalScalar:n}=e;return function(o,a,i){var l=o._values,s=o._index,u=o._ptr,c=o._size,d=o._datatype,f=a._values,p=a._index,v=a._ptr,m=a._size,h=a._datatype;if(c.length!==m.length)throw new Dt(c.length,m.length);if(c[0]!==m[0]||c[1]!==m[1])throw new RangeError("Dimension mismatch. Matrix A ("+c+") must match Matrix B ("+m+")");var g=c[0],x=c[1],y,w=n,b=0,S=i;typeof d=="string"&&d===h&&(y=d,w=t.find(n,[y,y]),b=t.convert(0,y),S=t.find(i,[y,y]));var $=l&&f?[]:void 0,D=[],O=[],A=$?[]:void 0,T=[],M,B,F,P,I;for(B=0;B<x;B++){O[B]=D.length;var N=B+1;if(A)for(P=v[B],I=v[B+1],F=P;F<I;F++)M=p[F],T[M]=N,A[M]=f[F];for(P=u[B],I=u[B+1],F=P;F<I;F++)if(M=s[F],A){var R=T[M]===N?A[M]:b,_=S(l[F],R);w(_,b)||(D.push(M),$.push(_))}else D.push(M)}return O[x]=D.length,o.createSparseMatrix({values:$,index:D,ptr:O,size:[g,x],datatype:y})}}),cD="dotMultiply",c$e=["typed","matrix","equalScalar","multiplyScalar","concat"],d$e=se(cD,c$e,e=>{var{typed:t,matrix:n,equalScalar:r,multiplyScalar:o,concat:a}=e,i=Ao({typed:t,equalScalar:r}),l=fB({typed:t,equalScalar:r}),s=Gn({typed:t,equalScalar:r}),u=Qt({typed:t,matrix:n,concat:a});return t(cD,u({elop:o,SS:l,DS:i,Ss:s}))});function f$e(e,t){if(e.isFinite()&&!e.isInteger()||t.isFinite()&&!t.isInteger())throw new Error("Integers expected in function bitAnd");var n=e.constructor;if(e.isNaN()||t.isNaN())return new n(NaN);if(e.isZero()||t.eq(-1)||e.eq(t))return e;if(t.isZero()||e.eq(-1))return t;if(!e.isFinite()||!t.isFinite()){if(!e.isFinite()&&!t.isFinite())return e.isNegative()===t.isNegative()?e:new n(0);if(!e.isFinite())return t.isNegative()?e:e.isNegative()?new n(0):t;if(!t.isFinite())return e.isNegative()?t:t.isNegative()?new n(0):e}return Xw(e,t,function(r,o){return r&o})}function uc(e){if(e.isFinite()&&!e.isInteger())throw new Error("Integer expected in function bitNot");var t=e.constructor,n=t.precision;t.config({precision:1e9});var r=e.plus(new t(1));return r.s=-r.s||null,t.config({precision:n}),r}function p$e(e,t){if(e.isFinite()&&!e.isInteger()||t.isFinite()&&!t.isInteger())throw new Error("Integers expected in function bitOr");var n=e.constructor;if(e.isNaN()||t.isNaN())return new n(NaN);var r=new n(-1);return e.isZero()||t.eq(r)||e.eq(t)?t:t.isZero()||e.eq(r)?e:!e.isFinite()||!t.isFinite()?!e.isFinite()&&!e.isNegative()&&t.isNegative()||e.isNegative()&&!t.isNegative()&&!t.isFinite()?r:e.isNegative()&&t.isNegative()?e.isFinite()?e:t:e.isFinite()?t:e:Xw(e,t,function(o,a){return o|a})}function Xw(e,t,n){var r=e.constructor,o,a,i=+(e.s<0),l=+(t.s<0);if(i){o=$d(uc(e));for(var s=0;s<o.length;++s)o[s]^=1}else o=$d(e);if(l){a=$d(uc(t));for(var u=0;u<a.length;++u)a[u]^=1}else a=$d(t);var c,d,f;o.length<=a.length?(c=o,d=a,f=i):(c=a,d=o,f=l);var p=c.length,v=d.length,m=n(i,l)^1,h=new r(m^1),g=new r(1),x=new r(2),y=r.precision;for(r.config({precision:1e9});p>0;)n(c[--p],d[--v])===m&&(h=h.plus(g)),g=g.times(x);for(;v>0;)n(f,d[--v])===m&&(h=h.plus(g)),g=g.times(x);return r.config({precision:y}),m===0&&(h.s=-h.s),h}function $d(e){for(var t=e.d,n=t[0]+"",r=1;r<t.length;++r){for(var o=t[r]+"",a=7-o.length;a--;)o="0"+o;n+=o}for(var i=n.length;n.charAt(i)==="0";)i--;var l=e.e,s=n.slice(0,i+1||1),u=s.length;if(l>0)if(++l>u)for(l-=u;l--;)s+="0";else l<u&&(s=s.slice(0,l)+"."+s.slice(l));for(var c=[0],d=0;d<s.length;){for(var f=c.length;f--;)c[f]*=10;c[0]+=parseInt(s.charAt(d++));for(var p=0;p<c.length;++p)c[p]>1&&((c[p+1]===null||c[p+1]===void 0)&&(c[p+1]=0),c[p+1]+=c[p]>>1,c[p]&=1)}return c.reverse()}function m$e(e,t){if(e.isFinite()&&!e.isInteger()||t.isFinite()&&!t.isInteger())throw new Error("Integers expected in function bitXor");var n=e.constructor;if(e.isNaN()||t.isNaN())return new n(NaN);if(e.isZero())return t;if(t.isZero())return e;if(e.eq(t))return new n(0);var r=new n(-1);return e.eq(r)?uc(t):t.eq(r)?uc(e):!e.isFinite()||!t.isFinite()?!e.isFinite()&&!t.isFinite()?r:new n(e.isNegative()===t.isNegative()?1/0:-1/0):Xw(e,t,function(o,a){return o^a})}function v$e(e,t){if(e.isFinite()&&!e.isInteger()||t.isFinite()&&!t.isInteger())throw new Error("Integers expected in function leftShift");var n=e.constructor;return e.isNaN()||t.isNaN()||t.isNegative()&&!t.isZero()?new n(NaN):e.isZero()||t.isZero()?e:!e.isFinite()&&!t.isFinite()?new n(NaN):t.lt(55)?e.times(Math.pow(2,t.toNumber())+""):e.times(new n(2).pow(t))}function h$e(e,t){if(e.isFinite()&&!e.isInteger()||t.isFinite()&&!t.isInteger())throw new Error("Integers expected in function rightArithShift");var n=e.constructor;return e.isNaN()||t.isNaN()||t.isNegative()&&!t.isZero()?new n(NaN):e.isZero()||t.isZero()?e:t.isFinite()?t.lt(55)?e.div(Math.pow(2,t.toNumber())+"").floor():e.div(new n(2).pow(t)).floor():e.isNegative()?new n(-1):e.isFinite()?new n(0):new n(NaN)}var dD="bitAnd",g$e=["typed","matrix","equalScalar","concat"],y$e=se(dD,g$e,e=>{var{typed:t,matrix:n,equalScalar:r,concat:o}=e,a=Ao({typed:t,equalScalar:r}),i=zv({typed:t,equalScalar:r}),l=Gn({typed:t,equalScalar:r}),s=Qt({typed:t,matrix:n,concat:o});return t(dD,{"number, number":N7,"BigNumber, BigNumber":f$e},s({SS:i,DS:a,Ss:l}))}),fD="bitNot",b$e=["typed"],x$e=se(fD,b$e,e=>{var{typed:t}=e;return t(fD,{number:P7,BigNumber:uc,"Array | Matrix":t.referToSelf(n=>r=>Tt(r,n))})}),pD="bitOr",w$e=["typed","matrix","equalScalar","DenseMatrix","concat"],S$e=se(pD,w$e,e=>{var{typed:t,matrix:n,equalScalar:r,DenseMatrix:o,concat:a}=e,i=vi({typed:t}),l=Gw({typed:t,equalScalar:r}),s=fl({typed:t,DenseMatrix:o}),u=Qt({typed:t,matrix:n,concat:a});return t(pD,{"number, number":I7,"BigNumber, BigNumber":p$e},u({SS:l,DS:i,Ss:s}))}),C$e="matAlgo07xSSf",$$e=["typed","DenseMatrix"],Go=se(C$e,$$e,e=>{var{typed:t,DenseMatrix:n}=e;return function(a,i,l){var s=a._size,u=a._datatype,c=i._size,d=i._datatype;if(s.length!==c.length)throw new Dt(s.length,c.length);if(s[0]!==c[0]||s[1]!==c[1])throw new RangeError("Dimension mismatch. Matrix A ("+s+") must match Matrix B ("+c+")");var f=s[0],p=s[1],v,m=0,h=l;typeof u=="string"&&u===d&&(v=u,m=t.convert(0,v),h=t.find(l,[v,v]));var g,x,y=[];for(g=0;g<f;g++)y[g]=[];var w=[],b=[],S=[],$=[];for(x=0;x<p;x++){var D=x+1;for(r(a,x,S,w,D),r(i,x,$,b,D),g=0;g<f;g++){var O=S[g]===D?w[g]:m,A=$[g]===D?b[g]:m;y[g][x]=h(O,A)}}return new n({data:y,size:[f,p],datatype:v})};function r(o,a,i,l,s){for(var u=o._values,c=o._index,d=o._ptr,f=d[a],p=d[a+1];f<p;f++){var v=c[f];i[v]=s,l[v]=u[f]}}}),mD="bitXor",E$e=["typed","matrix","DenseMatrix","concat"],D$e=se(mD,E$e,e=>{var{typed:t,matrix:n,DenseMatrix:r,concat:o}=e,a=fr({typed:t}),i=Go({typed:t,DenseMatrix:r}),l=zn({typed:t,DenseMatrix:r}),s=Qt({typed:t,matrix:n,concat:o});return t(mD,{"number, number":_7,"BigNumber, BigNumber":m$e},s({SS:i,DS:a,Ss:l}))}),vD="arg",A$e=["typed"],O$e=se(vD,A$e,e=>{var{typed:t}=e;return t(vD,{number:function(r){return Math.atan2(0,r)},BigNumber:function(r){return r.constructor.atan2(0,r)},Complex:function(r){return r.arg()},"Array | Matrix":t.referToSelf(n=>r=>Tt(r,n))})}),hD="conj",T$e=["typed"],M$e=se(hD,T$e,e=>{var{typed:t}=e;return t(hD,{"number | BigNumber | Fraction":n=>n,Complex:n=>n.conjugate(),"Array | Matrix":t.referToSelf(n=>r=>Tt(r,n))})}),gD="im",N$e=["typed"],P$e=se(gD,N$e,e=>{var{typed:t}=e;return t(gD,{number:()=>0,"BigNumber | Fraction":n=>n.mul(0),Complex:n=>n.im,"Array | Matrix":t.referToSelf(n=>r=>Tt(r,n))})}),yD="re",I$e=["typed"],_$e=se(yD,I$e,e=>{var{typed:t}=e;return t(yD,{"number | BigNumber | Fraction":n=>n,Complex:n=>n.re,"Array | Matrix":t.referToSelf(n=>r=>Tt(r,n))})}),bD="not",B$e=["typed"],F$e=se(bD,B$e,e=>{var{typed:t}=e;return t(bD,{"null | undefined":()=>!0,number:L7,Complex:function(r){return r.re===0&&r.im===0},BigNumber:function(r){return r.isZero()||r.isNaN()},Unit:t.referToSelf(n=>r=>t.find(n,r.valueType())(r.value)),"Array | Matrix":t.referToSelf(n=>r=>Tt(r,n))})}),xD="or",R$e=["typed","matrix","equalScalar","DenseMatrix","concat"],z$e=se(xD,R$e,e=>{var{typed:t,matrix:n,equalScalar:r,DenseMatrix:o,concat:a}=e,i=fr({typed:t}),l=Lv({typed:t,equalScalar:r}),s=zn({typed:t,DenseMatrix:o}),u=Qt({typed:t,matrix:n,concat:a});return t(xD,{"number, number":k7,"Complex, Complex":function(d,f){return d.re!==0||d.im!==0||f.re!==0||f.im!==0},"BigNumber, BigNumber":function(d,f){return!d.isZero()&&!d.isNaN()||!f.isZero()&&!f.isNaN()},"Unit, Unit":t.referToSelf(c=>(d,f)=>c(d.value||0,f.value||0))},u({SS:l,DS:i,Ss:s}))}),wD="xor",L$e=["typed","matrix","DenseMatrix","concat"],k$e=se(wD,L$e,e=>{var{typed:t,matrix:n,DenseMatrix:r,concat:o}=e,a=fr({typed:t}),i=Go({typed:t,DenseMatrix:r}),l=zn({typed:t,DenseMatrix:r}),s=Qt({typed:t,matrix:n,concat:o});return t(wD,{"number, number":H7,"Complex, Complex":function(c,d){return(c.re!==0||c.im!==0)!=(d.re!==0||d.im!==0)},"BigNumber, BigNumber":function(c,d){return(!c.isZero()&&!c.isNaN())!=(!d.isZero()&&!d.isNaN())},"Unit, Unit":t.referToSelf(u=>(c,d)=>u(c.value||0,d.value||0))},s({SS:i,DS:a,Ss:l}))}),SD="concat",H$e=["typed","matrix","isInteger"],pB=se(SD,H$e,e=>{var{typed:t,matrix:n,isInteger:r}=e;return t(SD,{"...Array | Matrix | number | BigNumber":function(a){var i,l=a.length,s=-1,u,c=!1,d=[];for(i=0;i<l;i++){var f=a[i];if(mt(f)&&(c=!0),Pt(f)||Ot(f)){if(i!==l-1)throw new Error("Dimension must be specified as last argument");if(u=s,s=f.valueOf(),!r(s))throw new TypeError("Integer number expected for dimension");if(s<0||i>0&&s>u)throw new oo(s,u+1)}else{var p=ct(f).valueOf(),v=Mt(p);if(d[i]=p,u=s,s=v.length-1,i>0&&s!==u)throw new Dt(u+1,s+1)}}if(d.length===0)throw new SyntaxError("At least one matrix expected");for(var m=d.shift();d.length;)m=mB(m,d.shift(),s,0);return c?n(m):m},"...string":function(a){return a.join("")}})});function mB(e,t,n,r){if(r<n){if(e.length!==t.length)throw new Dt(e.length,t.length);for(var o=[],a=0;a<e.length;a++)o[a]=mB(e[a],t[a],n,r+1);return o}else return e.concat(t)}var CD="column",j$e=["typed","Index","matrix","range"],vB=se(CD,j$e,e=>{var{typed:t,Index:n,matrix:r,range:o}=e;return t(CD,{"Matrix, number":a,"Array, number":function(l,s){return a(r(ct(l)),s).valueOf()}});function a(i,l){if(i.size().length!==2)throw new Error("Only two dimensional matrix is supported");Xt(l,i.size()[1]);var s=o(0,i.size()[0]),u=new n(s,l),c=i.subset(u);return mt(c)?c:r([[c]])}}),$D="count",V$e=["typed","size","prod"],W$e=se($D,V$e,e=>{var{typed:t,size:n,prod:r}=e;return t($D,{string:function(a){return a.length},"Matrix | Array":function(a){return r(n(a))}})}),ED="cross",U$e=["typed","matrix","subtract","multiply"],K$e=se(ED,U$e,e=>{var{typed:t,matrix:n,subtract:r,multiply:o}=e;return t(ED,{"Matrix, Matrix":function(l,s){return n(a(l.toArray(),s.toArray()))},"Matrix, Array":function(l,s){return n(a(l.toArray(),s))},"Array, Matrix":function(l,s){return n(a(l,s.toArray()))},"Array, Array":a});function a(i,l){var s=Math.max(Mt(i).length,Mt(l).length);i=Bp(i),l=Bp(l);var u=Mt(i),c=Mt(l);if(u.length!==1||c.length!==1||u[0]!==3||c[0]!==3)throw new RangeError("Vectors with length 3 expected (Size A = ["+u.join(", ")+"], B = ["+c.join(", ")+"])");var d=[r(o(i[1],l[2]),o(i[2],l[1])),r(o(i[2],l[0]),o(i[0],l[2])),r(o(i[0],l[1]),o(i[1],l[0]))];return s>1?[d]:d}}),DD="diag",q$e=["typed","matrix","DenseMatrix","SparseMatrix"],G$e=se(DD,q$e,e=>{var{typed:t,matrix:n,DenseMatrix:r,SparseMatrix:o}=e;return t(DD,{Array:function(u){return a(u,0,Mt(u),null)},"Array, number":function(u,c){return a(u,c,Mt(u),null)},"Array, BigNumber":function(u,c){return a(u,c.toNumber(),Mt(u),null)},"Array, string":function(u,c){return a(u,0,Mt(u),c)},"Array, number, string":function(u,c,d){return a(u,c,Mt(u),d)},"Array, BigNumber, string":function(u,c,d){return a(u,c.toNumber(),Mt(u),d)},Matrix:function(u){return a(u,0,u.size(),u.storage())},"Matrix, number":function(u,c){return a(u,c,u.size(),u.storage())},"Matrix, BigNumber":function(u,c){return a(u,c.toNumber(),u.size(),u.storage())},"Matrix, string":function(u,c){return a(u,0,u.size(),c)},"Matrix, number, string":function(u,c,d){return a(u,c,u.size(),d)},"Matrix, BigNumber, string":function(u,c,d){return a(u,c.toNumber(),u.size(),d)}});function a(s,u,c,d){if(!ot(u))throw new TypeError("Second parameter in function diag must be an integer");var f=u>0?u:0,p=u<0?-u:0;switch(c.length){case 1:return i(s,u,d,c[0],p,f);case 2:return l(s,u,d,c,p,f)}throw new RangeError("Matrix for function diag must be 2 dimensional")}function i(s,u,c,d,f,p){var v=[d+f,d+p];if(c&&c!=="sparse"&&c!=="dense")throw new TypeError("Unknown matrix type ".concat(c,'"'));var m=c==="sparse"?o.diagonal(v,s,u):r.diagonal(v,s,u);return c!==null?m:m.valueOf()}function l(s,u,c,d,f,p){if(mt(s)){var v=s.diagonal(u);return c!==null?c!==v.storage()?n(v,c):v:v.valueOf()}for(var m=Math.min(d[0]-f,d[1]-p),h=[],g=0;g<m;g++)h[g]=s[g+f][g+p];return c!==null?n(h):h}}),X$e="filter",Y$e=["typed"],Z$e=se(X$e,Y$e,e=>{var{typed:t}=e;return t("filter",{"Array, function":AD,"Matrix, function":function(r,o){return r.create(AD(r.toArray(),o))},"Array, RegExp":Fp,"Matrix, RegExp":function(r,o){return r.create(Fp(r.toArray(),o))}})});function AD(e,t){var n=mi(t);return Q_(e,function(r,o,a){return n===1?t(r):n===2?t(r,[o]):t(r,[o],a)})}var OD="flatten",J$e=["typed","matrix"],Q$e=se(OD,J$e,e=>{var{typed:t,matrix:n}=e;return t(OD,{Array:function(o){return Ht(o)},Matrix:function(o){var a=Ht(o.toArray());return n(a)}})}),TD="forEach",e2e=["typed"],t2e=se(TD,e2e,e=>{var{typed:t}=e;return t(TD,{"Array, function":n2e,"Matrix, function":function(r,o){r.forEach(o)}})});function n2e(e,t){var n=mi(t),r=function o(a,i){Array.isArray(a)?Pv(a,function(l,s){o(l,i.concat(s))}):n===1?t(a):n===2?t(a,i):t(a,i,e)};r(e,[])}var MD="getMatrixDataType",r2e=["typed"],o2e=se(MD,r2e,e=>{var{typed:t}=e;return t(MD,{Array:function(r){return lc(r,an)},Matrix:function(r){return r.getDataType()}})}),ND="identity",a2e=["typed","config","matrix","BigNumber","DenseMatrix","SparseMatrix"],i2e=se(ND,a2e,e=>{var{typed:t,config:n,matrix:r,BigNumber:o,DenseMatrix:a,SparseMatrix:i}=e;return t(ND,{"":function(){return n.matrix==="Matrix"?r([]):[]},string:function(c){return r(c)},"number | BigNumber":function(c){return s(c,c,n.matrix==="Matrix"?"dense":void 0)},"number | BigNumber, string":function(c,d){return s(c,c,d)},"number | BigNumber, number | BigNumber":function(c,d){return s(c,d,n.matrix==="Matrix"?"dense":void 0)},"number | BigNumber, number | BigNumber, string":function(c,d,f){return s(c,d,f)},Array:function(c){return l(c)},"Array, string":function(c,d){return l(c,d)},Matrix:function(c){return l(c.valueOf(),c.storage())},"Matrix, string":function(c,d){return l(c.valueOf(),d)}});function l(u,c){switch(u.length){case 0:return c?r(c):[];case 1:return s(u[0],u[0],c);case 2:return s(u[0],u[1],c);default:throw new Error("Vector containing two values expected")}}function s(u,c,d){var f=Ot(u)||Ot(c)?o:null;if(Ot(u)&&(u=u.toNumber()),Ot(c)&&(c=c.toNumber()),!ot(u)||u<1)throw new Error("Parameters in function identity must be positive integers");if(!ot(c)||c<1)throw new Error("Parameters in function identity must be positive integers");var p=f?new o(1):1,v=f?new f(0):0,m=[u,c];if(d){if(d==="sparse")return i.diagonal(m,p,0,v);if(d==="dense")return a.diagonal(m,p,0,v);throw new TypeError('Unknown matrix type "'.concat(d,'"'))}for(var h=ys([],m,v),g=u<c?u:c,x=0;x<g;x++)h[x][x]=p;return h}}),PD="kron",l2e=["typed","matrix","multiplyScalar"],s2e=se(PD,l2e,e=>{var{typed:t,matrix:n,multiplyScalar:r}=e;return t(PD,{"Matrix, Matrix":function(i,l){return n(o(i.toArray(),l.toArray()))},"Matrix, Array":function(i,l){return n(o(i.toArray(),l))},"Array, Matrix":function(i,l){return n(o(i,l.toArray()))},"Array, Array":o});function o(a,i){if(Mt(a).length===1&&(a=[a]),Mt(i).length===1&&(i=[i]),Mt(a).length>2||Mt(i).length>2)throw new RangeError("Vectors with dimensions greater then 2 are not supported expected (Size x = "+JSON.stringify(a.length)+", y = "+JSON.stringify(i.length)+")");var l=[],s=[];return a.map(function(u){return i.map(function(c){return s=[],l.push(s),u.map(function(d){return c.map(function(f){return s.push(r(d,f))})})})})&&l}}),ID="map",u2e=["typed"],c2e=se(ID,u2e,e=>{var{typed:t}=e;return t(ID,{"Array, function":d2e,"Matrix, function":function(r,o){return r.map(o)}})});function d2e(e,t){var n=mi(t),r=function o(a,i){if(Array.isArray(a))return a.map(function(u,c){return o(u,i.concat(c))});try{return n===1?t(a):n===2?t(a,i):t(a,i,e)}catch(u){if(u instanceof TypeError&&"data"in u&&u.data.category==="wrongType"){var l="map attempted to call '".concat(u.data.fn,"(").concat(a),s=JSON.stringify(i);throw n===2?l+=","+s:n!==1&&(l+=",".concat(s,",").concat(e)),l+=")' but argument ".concat(u.data.index+1," of type "),l+="".concat(u.data.actual," does not match expected type "),l+=u.data.expected.join(" or "),new TypeError(l)}throw u}};return r(e,[])}var _D="diff",f2e=["typed","matrix","subtract","number"],hB=se(_D,f2e,e=>{var{typed:t,matrix:n,subtract:r,number:o}=e;return t(_D,{"Array | Matrix":function(c){return mt(c)?n(i(c.toArray())):i(c)},"Array | Matrix, number":function(c,d){if(!ot(d))throw new RangeError("Dimension must be a whole number");return mt(c)?n(a(c.toArray(),d)):a(c,d)},"Array, BigNumber":t.referTo("Array,number",u=>(c,d)=>u(c,o(d))),"Matrix, BigNumber":t.referTo("Matrix,number",u=>(c,d)=>u(c,o(d)))});function a(u,c){if(mt(u)&&(u=u.toArray()),!Array.isArray(u))throw RangeError("Array/Matrix does not have that many dimensions");if(c>0){var d=[];return u.forEach(f=>{d.push(a(f,c-1))}),d}else{if(c===0)return i(u);throw RangeError("Cannot have negative dimension")}}function i(u){for(var c=[],d=u.length,f=1;f<d;f++)c.push(l(u[f-1],u[f]));return c}function l(u,c){mt(u)&&(u=u.toArray()),mt(c)&&(c=c.toArray());var d=Array.isArray(u),f=Array.isArray(c);if(d&&f)return s(u,c);if(!d&&!f)return r(c,u);throw TypeError("Cannot calculate difference between 1 array and 1 non-array")}function s(u,c){if(u.length!==c.length)throw RangeError("Not all sub-arrays have the same length");for(var d=[],f=u.length,p=0;p<f;p++)d.push(l(u[p],c[p]));return d}}),p2e="ones",m2e=["typed","config","matrix","BigNumber"],v2e=se(p2e,m2e,e=>{var{typed:t,config:n,matrix:r,BigNumber:o}=e;return t("ones",{"":function(){return n.matrix==="Array"?a([]):a([],"default")},"...number | BigNumber | string":function(u){var c=u[u.length-1];if(typeof c=="string"){var d=u.pop();return a(u,d)}else return n.matrix==="Array"?a(u):a(u,"default")},Array:a,Matrix:function(u){var c=u.storage();return a(u.valueOf(),c)},"Array | Matrix, string":function(u,c){return a(u.valueOf(),c)}});function a(s,u){var c=i(s),d=c?new o(1):1;if(l(s),u){var f=r(u);return s.length>0?f.resize(s,d):f}else{var p=[];return s.length>0?ys(p,s,d):p}}function i(s){var u=!1;return s.forEach(function(c,d,f){Ot(c)&&(u=!0,f[d]=c.toNumber())}),u}function l(s){s.forEach(function(u){if(typeof u!="number"||!ot(u)||u<0)throw new Error("Parameters in function ones must be positive integers")})}});function Yw(){throw new Error('No "bignumber" implementation available')}function gB(){throw new Error('No "fraction" implementation available')}function yB(){throw new Error('No "matrix" implementation available')}var BD="range",h2e=["typed","config","?matrix","?bignumber","smaller","smallerEq","larger","largerEq"],bB=se(BD,h2e,e=>{var{typed:t,config:n,matrix:r,bignumber:o,smaller:a,smallerEq:i,larger:l,largerEq:s}=e;return t(BD,{string:c,"string, boolean":c,"number, number":function(g,x){return u(d(g,x,1))},"number, number, number":function(g,x,y){return u(d(g,x,y))},"number, number, boolean":function(g,x,y){return u(y?f(g,x,1):d(g,x,1))},"number, number, number, boolean":function(g,x,y,w){return u(w?f(g,x,y):d(g,x,y))},"BigNumber, BigNumber":function(g,x){var y=g.constructor;return u(p(g,x,new y(1)))},"BigNumber, BigNumber, BigNumber":function(g,x,y){return u(p(g,x,y))},"BigNumber, BigNumber, boolean":function(g,x,y){var w=g.constructor;return u(y?v(g,x,new w(1)):p(g,x,new w(1)))},"BigNumber, BigNumber, BigNumber, boolean":function(g,x,y,w){return u(w?v(g,x,y):p(g,x,y))}});function u(h){return n.matrix==="Matrix"?r?r(h):yB():h}function c(h,g){var x=m(h);if(!x)throw new SyntaxError('String "'+h+'" is no valid range');var y;return n.number==="BigNumber"?(o===void 0&&Yw(),y=g?v:p,u(y(o(x.start),o(x.end),o(x.step)))):(y=g?f:d,u(y(x.start,x.end,x.step)))}function d(h,g,x){var y=[],w=h;if(x>0)for(;a(w,g);)y.push(w),w+=x;else if(x<0)for(;l(w,g);)y.push(w),w+=x;return y}function f(h,g,x){var y=[],w=h;if(x>0)for(;i(w,g);)y.push(w),w+=x;else if(x<0)for(;s(w,g);)y.push(w),w+=x;return y}function p(h,g,x){var y=o(0),w=[],b=h;if(x.gt(y))for(;a(b,g);)w.push(b),b=b.plus(x);else if(x.lt(y))for(;l(b,g);)w.push(b),b=b.plus(x);return w}function v(h,g,x){var y=o(0),w=[],b=h;if(x.gt(y))for(;i(b,g);)w.push(b),b=b.plus(x);else if(x.lt(y))for(;s(b,g);)w.push(b),b=b.plus(x);return w}function m(h){var g=h.split(":"),x=g.map(function(w){return Number(w)}),y=x.some(function(w){return isNaN(w)});if(y)return null;switch(x.length){case 2:return{start:x[0],end:x[1],step:1};case 3:return{start:x[0],end:x[2],step:x[1]};default:return null}}}),FD="reshape",g2e=["typed","isInteger","matrix"],y2e=se(FD,g2e,e=>{var{typed:t,isInteger:n}=e;return t(FD,{"Matrix, Array":function(o,a){return o.reshape(a,!0)},"Array, Array":function(o,a){return a.forEach(function(i){if(!n(i))throw new TypeError("Invalid size for dimension: "+i)}),G_(o,a)}})}),b2e="resize",x2e=["config","matrix"],w2e=se(b2e,x2e,e=>{var{config:t,matrix:n}=e;return function(a,i,l){if(arguments.length!==2&&arguments.length!==3)throw new Na("resize",arguments.length,2,3);if(mt(i)&&(i=i.valueOf()),Ot(i[0])&&(i=i.map(function(c){return Ot(c)?c.toNumber():c})),mt(a))return a.resize(i,l,!0);if(typeof a=="string")return r(a,i,l);var s=Array.isArray(a)?!1:t.matrix!=="Array";if(i.length===0){for(;Array.isArray(a);)a=a[0];return ct(a)}else{Array.isArray(a)||(a=[a]),a=ct(a);var u=ys(a,i,l);return s?n(u):u}};function r(o,a,i){if(i!==void 0){if(typeof i!="string"||i.length!==1)throw new TypeError("Single character expected as defaultValue")}else i=" ";if(a.length!==1)throw new Dt(a.length,1);var l=a[0];if(typeof l!="number"||!ot(l))throw new TypeError("Invalid size, must contain positive integers (size: "+Et(a)+")");if(o.length>l)return o.substring(0,l);if(o.length<l){for(var s=o,u=0,c=l-o.length;u<c;u++)s+=i;return s}else return o}}),RD="rotate",S2e=["typed","multiply","rotationMatrix"],C2e=se(RD,S2e,e=>{var{typed:t,multiply:n,rotationMatrix:r}=e;return t(RD,{"Array , number | BigNumber | Complex | Unit":function(i,l){o(i,2);var s=n(r(l),i);return s.toArray()},"Matrix , number | BigNumber | Complex | Unit":function(i,l){return o(i,2),n(r(l),i)},"Array, number | BigNumber | Complex | Unit, Array | Matrix":function(i,l,s){o(i,3);var u=n(r(l,s),i);return u},"Matrix, number | BigNumber | Complex | Unit, Array | Matrix":function(i,l,s){return o(i,3),n(r(l,s),i)}});function o(a,i){var l=Array.isArray(a)?Mt(a):a.size();if(l.length>2)throw new RangeError("Vector must be of dimensions 1x".concat(i));if(l.length===2&&l[1]!==1)throw new RangeError("Vector must be of dimensions 1x".concat(i));if(l[0]!==i)throw new RangeError("Vector must be of dimensions 1x".concat(i))}}),zD="rotationMatrix",$2e=["typed","config","multiplyScalar","addScalar","unaryMinus","norm","matrix","BigNumber","DenseMatrix","SparseMatrix","cos","sin"],E2e=se(zD,$2e,e=>{var{typed:t,config:n,multiplyScalar:r,addScalar:o,unaryMinus:a,norm:i,BigNumber:l,matrix:s,DenseMatrix:u,SparseMatrix:c,cos:d,sin:f}=e;return t(zD,{"":function(){return n.matrix==="Matrix"?s([]):[]},string:function(y){return s(y)},"number | BigNumber | Complex | Unit":function(y){return p(y,n.matrix==="Matrix"?"dense":void 0)},"number | BigNumber | Complex | Unit, string":function(y,w){return p(y,w)},"number | BigNumber | Complex | Unit, Array":function(y,w){var b=s(w);return v(b),g(y,b,void 0)},"number | BigNumber | Complex | Unit, Matrix":function(y,w){v(w);var b=w.storage()||(n.matrix==="Matrix"?"dense":void 0);return g(y,w,b)},"number | BigNumber | Complex | Unit, Array, string":function(y,w,b){var S=s(w);return v(S),g(y,S,b)},"number | BigNumber | Complex | Unit, Matrix, string":function(y,w,b){return v(w),g(y,w,b)}});function p(x,y){var w=Ot(x),b=w?new l(-1):-1,S=d(x),$=f(x),D=[[S,r(b,$)],[$,S]];return h(D,y)}function v(x){var y=x.size();if(y.length<1||y[0]!==3)throw new RangeError("Vector must be of dimensions 1x3")}function m(x){return x.reduce((y,w)=>r(y,w))}function h(x,y){if(y){if(y==="sparse")return new c(x);if(y==="dense")return new u(x);throw new TypeError('Unknown matrix type "'.concat(y,'"'))}return x}function g(x,y,w){var b=i(y);if(b===0)throw new RangeError("Rotation around zero vector");var S=Ot(x)?l:null,$=S?new S(1):1,D=S?new S(-1):-1,O=S?new S(y.get([0])/b):y.get([0])/b,A=S?new S(y.get([1])/b):y.get([1])/b,T=S?new S(y.get([2])/b):y.get([2])/b,M=d(x),B=o($,a(M)),F=f(x),P=o(M,m([O,O,B])),I=o(m([O,A,B]),m([D,T,F])),N=o(m([O,T,B]),m([A,F])),R=o(m([O,A,B]),m([T,F])),_=o(M,m([A,A,B])),L=o(m([A,T,B]),m([D,O,F])),k=o(m([O,T,B]),m([D,A,F])),H=o(m([A,T,B]),m([O,F])),V=o(M,m([T,T,B])),U=[[P,I,N],[R,_,L],[k,H,V]];return h(U,w)}}),LD="row",D2e=["typed","Index","matrix","range"],xB=se(LD,D2e,e=>{var{typed:t,Index:n,matrix:r,range:o}=e;return t(LD,{"Matrix, number":a,"Array, number":function(l,s){return a(r(ct(l)),s).valueOf()}});function a(i,l){if(i.size().length!==2)throw new Error("Only two dimensional matrix is supported");Xt(l,i.size()[0]);var s=o(0,i.size()[1]),u=new n(l,s),c=i.subset(u);return mt(c)?c:r([[c]])}}),kD="size",A2e=["typed","config","?matrix"],O2e=se(kD,A2e,e=>{var{typed:t,config:n,matrix:r}=e;return t(kD,{Matrix:function(a){return a.create(a.size())},Array:Mt,string:function(a){return n.matrix==="Array"?[a.length]:r([a.length])},"number | Complex | BigNumber | Unit | boolean | null":function(a){return n.matrix==="Array"?[]:r?r([]):yB()}})}),HD="squeeze",T2e=["typed","matrix"],M2e=se(HD,T2e,e=>{var{typed:t,matrix:n}=e;return t(HD,{Array:function(o){return Bp(ct(o))},Matrix:function(o){var a=Bp(o.toArray());return Array.isArray(a)?n(a):a},any:function(o){return ct(o)}})}),jD="subset",N2e=["typed","matrix"],wB=se(jD,N2e,e=>{var{typed:t,matrix:n}=e;return t(jD,{"Array, Index":function(o,a){var i=n(o),l=i.subset(a);return a.isScalar()?l:l.valueOf()},"Matrix, Index":function(o,a){return o.subset(a)},"Object, Index":I2e,"string, Index":P2e,"Array, Index, any":function(o,a,i){return n(ct(o)).subset(a,i,void 0).valueOf()},"Array, Index, any, any":function(o,a,i,l){return n(ct(o)).subset(a,i,l).valueOf()},"Matrix, Index, any":function(o,a,i){return o.clone().subset(a,i)},"Matrix, Index, any, any":function(o,a,i,l){return o.clone().subset(a,i,l)},"string, Index, string":VD,"string, Index, string, string":VD,"Object, Index, any":_2e})});function P2e(e,t){if(!Ic(t))throw new TypeError("Index expected");if(t.size().length!==1)throw new Dt(t.size().length,1);var n=e.length;Xt(t.min()[0],n),Xt(t.max()[0],n);var r=t.dimension(0),o="";return r.forEach(function(a){o+=e.charAt(a)}),o}function VD(e,t,n,r){if(!t||t.isIndex!==!0)throw new TypeError("Index expected");if(t.size().length!==1)throw new Dt(t.size().length,1);if(r!==void 0){if(typeof r!="string"||r.length!==1)throw new TypeError("Single character expected as defaultValue")}else r=" ";var o=t.dimension(0),a=o.size()[0];if(a!==n.length)throw new Dt(o.size()[0],n.length);var i=e.length;Xt(t.min()[0]),Xt(t.max()[0]);for(var l=[],s=0;s<i;s++)l[s]=e.charAt(s);if(o.forEach(function(d,f){l[d]=n.charAt(f[0])}),l.length>i)for(var u=i-1,c=l.length;u<c;u++)l[u]||(l[u]=r);return l.join("")}function I2e(e,t){if(t.size().length!==1)throw new Dt(t.size(),1);var n=t.dimension(0);if(typeof n!="string")throw new TypeError("String expected as index to retrieve an object property");return no(e,n)}function _2e(e,t,n){if(t.size().length!==1)throw new Dt(t.size(),1);var r=t.dimension(0);if(typeof r!="string")throw new TypeError("String expected as index to retrieve an object property");var o=ct(e);return xs(o,r,n),o}var WD="transpose",B2e=["typed","matrix"],F2e=se(WD,B2e,e=>{var{typed:t,matrix:n}=e;return t(WD,{Array:i=>r(n(i)).valueOf(),Matrix:r,any:ct});function r(i){var l=i.size(),s;switch(l.length){case 1:s=i.clone();break;case 2:{var u=l[0],c=l[1];if(c===0)throw new RangeError("Cannot transpose a 2D matrix with no columns (size: "+Et(l)+")");switch(i.storage()){case"dense":s=o(i,u,c);break;case"sparse":s=a(i,u,c);break}}break;default:throw new RangeError("Matrix must be a vector or two dimensional (size: "+Et(l)+")")}return s}function o(i,l,s){for(var u=i._data,c=[],d,f=0;f<s;f++){d=c[f]=[];for(var p=0;p<l;p++)d[p]=ct(u[p][f])}return i.createDenseMatrix({data:c,size:[s,l],datatype:i._datatype})}function a(i,l,s){for(var u=i._values,c=i._index,d=i._ptr,f=u?[]:void 0,p=[],v=[],m=[],h=0;h<l;h++)m[h]=0;var g,x,y;for(g=0,x=c.length;g<x;g++)m[c[g]]++;for(var w=0,b=0;b<l;b++)v.push(w),w+=m[b],m[b]=v[b];for(v.push(w),y=0;y<s;y++)for(var S=d[y],$=d[y+1],D=S;D<$;D++){var O=m[c[D]]++;p[O]=y,u&&(f[O]=ct(u[D]))}return i.createSparseMatrix({values:f,index:p,ptr:v,size:[s,l],datatype:i._datatype})}}),UD="ctranspose",R2e=["typed","transpose","conj"],z2e=se(UD,R2e,e=>{var{typed:t,transpose:n,conj:r}=e;return t(UD,{any:function(a){return r(n(a))}})}),KD="zeros",L2e=["typed","config","matrix","BigNumber"],k2e=se(KD,L2e,e=>{var{typed:t,config:n,matrix:r,BigNumber:o}=e;return t(KD,{"":function(){return n.matrix==="Array"?a([]):a([],"default")},"...number | BigNumber | string":function(u){var c=u[u.length-1];if(typeof c=="string"){var d=u.pop();return a(u,d)}else return n.matrix==="Array"?a(u):a(u,"default")},Array:a,Matrix:function(u){var c=u.storage();return a(u.valueOf(),c)},"Array | Matrix, string":function(u,c){return a(u.valueOf(),c)}});function a(s,u){var c=i(s),d=c?new o(0):0;if(l(s),u){var f=r(u);return s.length>0?f.resize(s,d):f}else{var p=[];return s.length>0?ys(p,s,d):p}}function i(s){var u=!1;return s.forEach(function(c,d,f){Ot(c)&&(u=!0,f[d]=c.toNumber())}),u}function l(s){s.forEach(function(u){if(typeof u!="number"||!ot(u)||u<0)throw new Error("Parameters in function zeros must be positive integers")})}}),qD="fft",H2e=["typed","matrix","addScalar","multiplyScalar","divideScalar","exp","tau","i","dotDivide","conj","pow","ceil","log2"],j2e=se(qD,H2e,e=>{var{typed:t,matrix:n,addScalar:r,multiplyScalar:o,divideScalar:a,exp:i,tau:l,i:s,dotDivide:u,conj:c,pow:d,ceil:f,log2:p}=e;return t(qD,{Array:v,Matrix:function(y){return y.create(v(y.toArray()))}});function v(x){var y=Mt(x);return y.length===1?g(x,y[0]):m(x.map(w=>v(w,y.slice(1))),0)}function m(x,y){var w=Mt(x);if(y!==0)return new Array(w[0]).fill(0).map((S,$)=>m(x[$],y-1));if(w.length===1)return g(x);function b(S){var $=Mt(S);return new Array($[1]).fill(0).map((D,O)=>new Array($[0]).fill(0).map((A,T)=>S[T][O]))}return b(m(b(x),1))}function h(x){for(var y=x.length,w=i(a(o(-1,o(s,l)),y)),b=[],S=1-y;S<y;S++)b.push(d(w,a(d(S,2),2)));for(var $=d(2,f(p(y+y-1))),D=[...new Array(y).fill(0).map((I,N)=>o(x[N],b[y-1+N])),...new Array($-y).fill(0)],O=[...new Array(y+y-1).fill(0).map((I,N)=>a(1,b[N])),...new Array($-(y+y-1)).fill(0)],A=g(D),T=g(O),M=new Array($).fill(0).map((I,N)=>o(A[N],T[N])),B=u(c(v(c(M))),$),F=[],P=y-1;P<y+y-1;P++)F.push(o(B[P],b[P]));return F}function g(x){var y=x.length;if(y===1)return[x[0]];if(y%2===0){for(var w=[...g(x.filter((D,O)=>O%2===0)),...g(x.filter((D,O)=>O%2===1))],b=0;b<y/2;b++){var S=w[b],$=o(w[b+y/2],i(o(o(l,s),a(-b,y))));w[b]=r(S,$),w[b+y/2]=r(S,o(-1,$))}return w}else return h(x)}}),GD="ifft",V2e=["typed","fft","dotDivide","conj"],W2e=se(GD,V2e,e=>{var{typed:t,fft:n,dotDivide:r,conj:o}=e;return t(GD,{"Array | Matrix":function(i){var l=mt(i)?i.size():Mt(i);return r(o(n(o(i))),l.reduce((s,u)=>s*u,1))}})}),U2e="erf",K2e=["typed"],q2e=se(U2e,K2e,e=>{var{typed:t}=e;return t("name",{number:function(i){var l=Math.abs(i);return l>=Y2e?Ja(i):l<=G2e?Ja(i)*n(l):l<=4?Ja(i)*(1-r(l)):Ja(i)*(1-o(l))},"Array | Matrix":t.referToSelf(a=>i=>Tt(i,a))});function n(a){var i=a*a,l=ta[0][4]*i,s=i,u;for(u=0;u<3;u+=1)l=(l+ta[0][u])*i,s=(s+Ol[0][u])*i;return a*(l+ta[0][3])/(s+Ol[0][3])}function r(a){var i=ta[1][8]*a,l=a,s;for(s=0;s<7;s+=1)i=(i+ta[1][s])*a,l=(l+Ol[1][s])*a;var u=(i+ta[1][7])/(l+Ol[1][7]),c=parseInt(a*16)/16,d=(a-c)*(a+c);return Math.exp(-c*c)*Math.exp(-d)*u}function o(a){var i=1/(a*a),l=ta[2][5]*i,s=i,u;for(u=0;u<4;u+=1)l=(l+ta[2][u])*i,s=(s+Ol[2][u])*i;var c=i*(l+ta[2][4])/(s+Ol[2][4]);c=(X2e-c)/a,i=parseInt(a*16)/16;var d=(a-i)*(a+i);return Math.exp(-i*i)*Math.exp(-d)*c}}),G2e=.46875,X2e=.5641895835477563,ta=[[3.1611237438705655,113.86415415105016,377.485237685302,3209.3775891384694,.18577770618460315],[.5641884969886701,8.883149794388377,66.11919063714163,298.6351381974001,881.952221241769,1712.0476126340707,2051.0783778260716,1230.3393547979972,21531153547440383e-24],[.30532663496123236,.36034489994980445,.12578172611122926,.016083785148742275,.0006587491615298378,.016315387137302097]],Ol=[[23.601290952344122,244.02463793444417,1282.6165260773723,2844.236833439171],[15.744926110709835,117.6939508913125,537.1811018620099,1621.3895745666903,3290.7992357334597,4362.619090143247,3439.3676741437216,1230.3393548037495],[2.568520192289822,1.8729528499234604,.5279051029514285,.06051834131244132,.0023352049762686918]],Y2e=Math.pow(2,53),XD="mode",Z2e=["typed","isNaN","isNumeric"],J2e=se(XD,Z2e,e=>{var{typed:t,isNaN:n,isNumeric:r}=e;return t(XD,{"Array | Matrix":o,"...":function(i){return o(i)}});function o(a){a=Ht(a.valueOf());var i=a.length;if(i===0)throw new Error("Cannot calculate mode of an empty array");for(var l={},s=[],u=0,c=0;c<a.length;c++){var d=a[c];if(r(d)&&n(d))throw new Error("Cannot calculate mode of an array containing NaN values");d in l||(l[d]=0),l[d]++,l[d]===u?s.push(d):l[d]>u&&(u=l[d],s=[d])}return s}});function dr(e,t,n){var r;return String(e).indexOf("Unexpected type")!==-1?(r=arguments.length>2?" (type: "+an(n)+", value: "+JSON.stringify(n)+")":" (type: "+e.data.actual+")",new TypeError("Cannot calculate "+t+", unexpected type of argument"+r)):String(e).indexOf("complex numbers")!==-1?(r=arguments.length>2?" (type: "+an(n)+", value: "+JSON.stringify(n)+")":"",new TypeError("Cannot calculate "+t+", no ordering relation is defined for complex numbers"+r)):e}var YD="prod",Q2e=["typed","config","multiplyScalar","numeric"],e3e=se(YD,Q2e,e=>{var{typed:t,config:n,multiplyScalar:r,numeric:o}=e;return t(YD,{"Array | Matrix":a,"Array | Matrix, number | BigNumber":function(l,s){throw new Error("prod(A, dim) is not yet supported")},"...":function(l){return a(l)}});function a(i){var l;if(Ca(i,function(s){try{l=l===void 0?s:r(l,s)}catch(u){throw dr(u,"prod",s)}}),typeof l=="string"&&(l=o(l,n.number)),l===void 0)throw new Error("Cannot calculate prod of an empty array");return l}}),ZD="format",t3e=["typed"],n3e=se(ZD,t3e,e=>{var{typed:t}=e;return t(ZD,{any:Et,"any, Object | function | number":Et})}),JD="bin",r3e=["typed","format"],o3e=se(JD,r3e,e=>{var{typed:t,format:n}=e;return t(JD,{"number | BigNumber":function(o){return n(o,{notation:"bin"})},"number | BigNumber, number":function(o,a){return n(o,{notation:"bin",wordSize:a})}})}),QD="oct",a3e=["typed","format"],i3e=se(QD,a3e,e=>{var{typed:t,format:n}=e;return t(QD,{"number | BigNumber":function(o){return n(o,{notation:"oct"})},"number | BigNumber, number":function(o,a){return n(o,{notation:"oct",wordSize:a})}})}),eA="hex",l3e=["typed","format"],s3e=se(eA,l3e,e=>{var{typed:t,format:n}=e;return t(eA,{"number | BigNumber":function(o){return n(o,{notation:"hex"})},"number | BigNumber, number":function(o,a){return n(o,{notation:"hex",wordSize:a})}})}),tA="print",u3e=["typed"],c3e=se(tA,u3e,e=>{var{typed:t}=e;return t(tA,{"string, Object | Array":nA,"string, Object | Array, number | Object":nA})});function nA(e,t,n){return e.replace(/\$([\w.]+)/g,function(r,o){for(var a=o.split("."),i=t[a.shift()];a.length&&i!==void 0;){var l=a.shift();i=l?i[l]:i+"."}return i!==void 0?Qn(i)?i:Et(i,n):r})}var rA="to",d3e=["typed","matrix","concat"],f3e=se(rA,d3e,e=>{var{typed:t,matrix:n,concat:r}=e,o=Qt({typed:t,matrix:n,concat:r});return t(rA,{"Unit, Unit | string":(a,i)=>a.to(i)},o({Ds:!0}))}),oA="isPrime",p3e=["typed"],m3e=se(oA,p3e,e=>{var{typed:t}=e;return t(oA,{number:function(r){if(r*0!==0)return!1;if(r<=3)return r>1;if(r%2===0||r%3===0)return!1;for(var o=5;o*o<=r;o+=6)if(r%o===0||r%(o+2)===0)return!1;return!0},BigNumber:function(r){if(r.toNumber()*0!==0)return!1;if(r.lte(3))return r.gt(1);if(r.mod(2).eq(0)||r.mod(3).eq(0))return!1;if(r.lt(Math.pow(2,32))){for(var o=r.toNumber(),a=5;a*a<=o;a+=6)if(o%a===0||o%(a+2)===0)return!1;return!0}function i(x,y,w){for(var b=1;!y.eq(0);)y.mod(2).eq(0)?(y=y.div(2),x=x.mul(x).mod(w)):(y=y.sub(1),b=x.mul(b).mod(w));return b}var l=r.constructor.clone({precision:r.toFixed(0).length*2});r=new l(r);for(var s=0,u=r.sub(1);u.mod(2).eq(0);)u=u.div(2),s+=1;var c=null;if(r.lt("3317044064679887385961981"))c=[2,3,5,7,11,13,17,19,23,29,31,37,41].filter(x=>x<r);else{var d=Math.min(r.toNumber()-2,Math.floor(2*Math.pow(r.toFixed(0).length*Math.log(10),2)));c=[];for(var f=2;f<=d;f+=1)c.push(d)}for(var p=0;p<c.length;p+=1){var v=c[p],m=i(r.sub(r).add(v),u,r);if(!m.eq(1)){for(var h=0,g=m;!g.eq(r.sub(1));h+=1,g=g.mul(g).mod(r))if(h===s-1)return!1}}return!0},"Array | Matrix":t.referToSelf(n=>r=>Tt(r,n))})}),v3e="numeric",h3e=["number","?bignumber","?fraction"],g3e=se(v3e,h3e,e=>{var{number:t,bignumber:n,fraction:r}=e,o={string:!0,number:!0,BigNumber:!0,Fraction:!0},a={number:i=>t(i),BigNumber:n?i=>n(i):Yw,Fraction:r?i=>r(i):gB};return function(l){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"number",u=arguments.length>2?arguments[2]:void 0;if(u!==void 0)throw new SyntaxError("numeric() takes one or two arguments");var c=an(l);if(!(c in o))throw new TypeError("Cannot convert "+l+' of type "'+c+'"; valid input types are '+Object.keys(o).join(", "));if(!(s in a))throw new TypeError("Cannot convert "+l+' to type "'+s+'"; valid output types are '+Object.keys(a).join(", "));return s===c?l:a[s](l)}}),aA="divideScalar",y3e=["typed","numeric"],b3e=se(aA,y3e,e=>{var{typed:t,numeric:n}=e;return t(aA,{"number, number":function(o,a){return o/a},"Complex, Complex":function(o,a){return o.div(a)},"BigNumber, BigNumber":function(o,a){return o.div(a)},"Fraction, Fraction":function(o,a){return o.div(a)},"Unit, number | Complex | Fraction | BigNumber | Unit":(r,o)=>r.divide(o),"number | Fraction | Complex | BigNumber, Unit":(r,o)=>o.divideInto(r)})}),iA="pow",x3e=["typed","config","identity","multiply","matrix","inv","fraction","number","Complex"],w3e=se(iA,x3e,e=>{var{typed:t,config:n,identity:r,multiply:o,matrix:a,inv:i,number:l,fraction:s,Complex:u}=e;return t(iA,{"number, number":c,"Complex, Complex":function(v,m){return v.pow(m)},"BigNumber, BigNumber":function(v,m){return m.isInteger()||v>=0||n.predictable?v.pow(m):new u(v.toNumber(),0).pow(m.toNumber(),0)},"Fraction, Fraction":function(v,m){var h=v.pow(m);if(h!=null)return h;if(n.predictable)throw new Error("Result of pow is non-rational and cannot be expressed as a fraction");return c(v.valueOf(),m.valueOf())},"Array, number":d,"Array, BigNumber":function(v,m){return d(v,m.toNumber())},"Matrix, number":f,"Matrix, BigNumber":function(v,m){return f(v,m.toNumber())},"Unit, number | BigNumber":function(v,m){return v.pow(m)}});function c(p,v){if(n.predictable&&!ot(v)&&p<0)try{var m=s(v),h=l(m);if((v===h||Math.abs((v-h)/v)<1e-14)&&m.d%2===1)return(m.n%2===0?1:-1)*Math.pow(-p,v)}catch{}return n.predictable&&(p<-1&&v===1/0||p>-1&&p<0&&v===-1/0)?NaN:ot(v)||p>=0||n.predictable?M7(p,v):p*p<1&&v===1/0||p*p>1&&v===-1/0?0:new u(p,0).pow(v,0)}function d(p,v){if(!ot(v))throw new TypeError("For A^b, b must be an integer (value is "+v+")");var m=Mt(p);if(m.length!==2)throw new Error("For A^b, A must be 2 dimensional (A has "+m.length+" dimensions)");if(m[0]!==m[1])throw new Error("For A^b, A must be square (size is "+m[0]+"x"+m[1]+")");if(v<0)try{return d(i(p),-v)}catch(x){throw x.message==="Cannot calculate inverse, determinant is zero"?new TypeError("For A^b, when A is not invertible, b must be a positive integer (value is "+v+")"):x}for(var h=r(m[0]).valueOf(),g=p;v>=1;)(v&1)===1&&(h=o(g,h)),v>>=1,g=o(g,g);return h}function f(p,v){return a(d(p.valueOf(),v))}}),Tl="Number of decimals in function round must be an integer",lA="round",S3e=["typed","matrix","equalScalar","zeros","BigNumber","DenseMatrix"],C3e=se(lA,S3e,e=>{var{typed:t,matrix:n,equalScalar:r,zeros:o,BigNumber:a,DenseMatrix:i}=e,l=Gn({typed:t,equalScalar:r}),s=zn({typed:t,DenseMatrix:i}),u=Do({typed:t});return t(lA,{number:D4,"number, number":D4,"number, BigNumber":function(d,f){if(!f.isInteger())throw new TypeError(Tl);return new a(d).toDecimalPlaces(f.toNumber())},Complex:function(d){return d.round()},"Complex, number":function(d,f){if(f%1)throw new TypeError(Tl);return d.round(f)},"Complex, BigNumber":function(d,f){if(!f.isInteger())throw new TypeError(Tl);var p=f.toNumber();return d.round(p)},BigNumber:function(d){return d.toDecimalPlaces(0)},"BigNumber, BigNumber":function(d,f){if(!f.isInteger())throw new TypeError(Tl);return d.toDecimalPlaces(f.toNumber())},Fraction:function(d){return d.round()},"Fraction, number":function(d,f){if(f%1)throw new TypeError(Tl);return d.round(f)},"Fraction, BigNumber":function(d,f){if(!f.isInteger())throw new TypeError(Tl);return d.round(f.toNumber())},"Array | Matrix":t.referToSelf(c=>d=>Tt(d,c)),"SparseMatrix, number | BigNumber":t.referToSelf(c=>(d,f)=>l(d,f,c,!1)),"DenseMatrix, number | BigNumber":t.referToSelf(c=>(d,f)=>u(d,f,c,!1)),"Array, number | BigNumber":t.referToSelf(c=>(d,f)=>u(n(d),f,c,!1).valueOf()),"number | Complex | BigNumber | Fraction, SparseMatrix":t.referToSelf(c=>(d,f)=>r(d,0)?o(f.size(),f.storage()):s(f,d,c,!0)),"number | Complex | BigNumber | Fraction, DenseMatrix":t.referToSelf(c=>(d,f)=>r(d,0)?o(f.size(),f.storage()):u(f,d,c,!0)),"number | Complex | BigNumber | Fraction, Array":t.referToSelf(c=>(d,f)=>u(n(f),d,c,!0).valueOf())})}),sA="log",$3e=["config","typed","divideScalar","Complex"],E3e=se(sA,$3e,e=>{var{typed:t,config:n,divideScalar:r,Complex:o}=e;return t(sA,{number:function(i){return i>=0||n.predictable?Awe(i):new o(i,0).log()},Complex:function(i){return i.log()},BigNumber:function(i){return!i.isNegative()||n.predictable?i.ln():new o(i.toNumber(),0).log()},"any, any":t.referToSelf(a=>(i,l)=>r(a(i),a(l)))})}),uA="log1p",D3e=["typed","config","divideScalar","log","Complex"],A3e=se(uA,D3e,e=>{var{typed:t,config:n,divideScalar:r,log:o,Complex:a}=e;return t(uA,{number:function(s){return s>=-1||n.predictable?T1e(s):i(new a(s,0))},Complex:i,BigNumber:function(s){var u=s.plus(1);return!u.isNegative()||n.predictable?u.ln():i(new a(s.toNumber(),0))},"Array | Matrix":t.referToSelf(l=>s=>Tt(s,l)),"any, any":t.referToSelf(l=>(s,u)=>r(l(s),o(u)))});function i(l){var s=l.re+1;return new a(Math.log(Math.sqrt(s*s+l.im*l.im)),Math.atan2(l.im,s))}}),cA="nthRoots",O3e=["config","typed","divideScalar","Complex"],T3e=se(cA,O3e,e=>{var{typed:t,config:n,divideScalar:r,Complex:o}=e,a=[function(s){return new o(s,0)},function(s){return new o(0,s)},function(s){return new o(-s,0)},function(s){return new o(0,-s)}];function i(l,s){if(s<0)throw new Error("Root must be greater than zero");if(s===0)throw new Error("Root must be non-zero");if(s%1!==0)throw new Error("Root must be an integer");if(l===0||l.abs()===0)return[new o(0,0)];var u=typeof l=="number",c;(u||l.re===0||l.im===0)&&(u?c=2*+(l<0):l.im===0?c=2*+(l.re<0):c=2*+(l.im<0)+1);for(var d=l.arg(),f=l.abs(),p=[],v=Math.pow(f,1/s),m=0;m<s;m++){var h=(c+4*m)/s;if(h===Math.round(h)){p.push(a[h%4](v));continue}p.push(new o({r:v,phi:(d+2*Math.PI*m)/s}))}return p}return t(cA,{Complex:function(s){return i(s,2)},"Complex, number":i})}),dA="dotPow",M3e=["typed","equalScalar","matrix","pow","DenseMatrix","concat"],N3e=se(dA,M3e,e=>{var{typed:t,equalScalar:n,matrix:r,pow:o,DenseMatrix:a,concat:i}=e,l=fr({typed:t}),s=Go({typed:t,DenseMatrix:a}),u=Gn({typed:t,equalScalar:n}),c=zn({typed:t,DenseMatrix:a}),d=Qt({typed:t,matrix:r,concat:i}),f={};for(var p in o.signatures)Object.prototype.hasOwnProperty.call(o.signatures,p)&&!p.includes("Matrix")&&!p.includes("Array")&&(f[p]=o.signatures[p]);var v=t(f);return t(dA,d({elop:v,SS:s,DS:l,Ss:u,sS:c}))}),fA="dotDivide",P3e=["typed","matrix","equalScalar","divideScalar","DenseMatrix","concat"],I3e=se(fA,P3e,e=>{var{typed:t,matrix:n,equalScalar:r,divideScalar:o,DenseMatrix:a,concat:i}=e,l=Ao({typed:t,equalScalar:r}),s=fr({typed:t}),u=Go({typed:t,DenseMatrix:a}),c=Gn({typed:t,equalScalar:r}),d=zn({typed:t,DenseMatrix:a}),f=Qt({typed:t,matrix:n,concat:i});return t(fA,f({elop:o,SS:u,DS:s,SD:l,Ss:c,sS:d}))});function Fc(e){var{DenseMatrix:t}=e;return function(r,o,a){var i=r.size();if(i.length!==2)throw new RangeError("Matrix must be two dimensional (size: "+Et(i)+")");var l=i[0],s=i[1];if(l!==s)throw new RangeError("Matrix must be square (size: "+Et(i)+")");var u=[];if(mt(o)){var c=o.size(),d=o._data;if(c.length===1){if(c[0]!==l)throw new RangeError("Dimension mismatch. Matrix columns must match vector length.");for(var f=0;f<l;f++)u[f]=[d[f]];return new t({data:u,size:[l,1],datatype:o._datatype})}if(c.length===2){if(c[0]!==l||c[1]!==1)throw new RangeError("Dimension mismatch. Matrix columns must match vector length.");if(ac(o)){if(a){u=[];for(var p=0;p<l;p++)u[p]=[d[p][0]];return new t({data:u,size:[l,1],datatype:o._datatype})}return o}if(Za(o)){for(var v=0;v<l;v++)u[v]=[0];for(var m=o._values,h=o._index,g=o._ptr,x=g[1],y=g[0];y<x;y++){var w=h[y];u[w][0]=m[y]}return new t({data:u,size:[l,1],datatype:o._datatype})}}throw new RangeError("Dimension mismatch. The right side has to be either 1- or 2-dimensional vector.")}if(Ut(o)){var b=Mt(o);if(b.length===1){if(b[0]!==l)throw new RangeError("Dimension mismatch. Matrix columns must match vector length.");for(var S=0;S<l;S++)u[S]=[o[S]];return new t({data:u,size:[l,1]})}if(b.length===2){if(b[0]!==l||b[1]!==1)throw new RangeError("Dimension mismatch. Matrix columns must match vector length.");for(var $=0;$<l;$++)u[$]=[o[$][0]];return new t({data:u,size:[l,1]})}throw new RangeError("Dimension mismatch. The right side has to be either 1- or 2-dimensional vector.")}}}var pA="lsolve",_3e=["typed","matrix","divideScalar","multiplyScalar","subtract","equalScalar","DenseMatrix"],B3e=se(pA,_3e,e=>{var{typed:t,matrix:n,divideScalar:r,multiplyScalar:o,subtract:a,equalScalar:i,DenseMatrix:l}=e,s=Fc({DenseMatrix:l});return t(pA,{"SparseMatrix, Array | Matrix":function(f,p){return c(f,p)},"DenseMatrix, Array | Matrix":function(f,p){return u(f,p)},"Array, Array | Matrix":function(f,p){var v=n(f),m=u(v,p);return m.valueOf()}});function u(d,f){f=s(d,f,!0);for(var p=f._data,v=d._size[0],m=d._size[1],h=[],g=d._data,x=0;x<m;x++){var y=p[x][0]||0,w=void 0;if(i(y,0))w=0;else{var b=g[x][x];if(i(b,0))throw new Error("Linear system cannot be solved since matrix is singular");w=r(y,b);for(var S=x+1;S<v;S++)p[S]=[a(p[S][0]||0,o(w,g[S][x]))]}h[x]=[w]}return new l({data:h,size:[v,1]})}function c(d,f){f=s(d,f,!0);for(var p=f._data,v=d._size[0],m=d._size[1],h=d._values,g=d._index,x=d._ptr,y=[],w=0;w<m;w++){var b=p[w][0]||0;if(i(b,0))y[w]=[0];else{for(var S=0,$=[],D=[],O=x[w],A=x[w+1],T=O;T<A;T++){var M=g[T];M===w?S=h[T]:M>w&&($.push(h[T]),D.push(M))}if(i(S,0))throw new Error("Linear system cannot be solved since matrix is singular");for(var B=r(b,S),F=0,P=D.length;F<P;F++){var I=D[F];p[I]=[a(p[I][0]||0,o(B,$[F]))]}y[w]=[B]}}return new l({data:y,size:[v,1]})}}),mA="usolve",F3e=["typed","matrix","divideScalar","multiplyScalar","subtract","equalScalar","DenseMatrix"],R3e=se(mA,F3e,e=>{var{typed:t,matrix:n,divideScalar:r,multiplyScalar:o,subtract:a,equalScalar:i,DenseMatrix:l}=e,s=Fc({DenseMatrix:l});return t(mA,{"SparseMatrix, Array | Matrix":function(f,p){return c(f,p)},"DenseMatrix, Array | Matrix":function(f,p){return u(f,p)},"Array, Array | Matrix":function(f,p){var v=n(f),m=u(v,p);return m.valueOf()}});function u(d,f){f=s(d,f,!0);for(var p=f._data,v=d._size[0],m=d._size[1],h=[],g=d._data,x=m-1;x>=0;x--){var y=p[x][0]||0,w=void 0;if(i(y,0))w=0;else{var b=g[x][x];if(i(b,0))throw new Error("Linear system cannot be solved since matrix is singular");w=r(y,b);for(var S=x-1;S>=0;S--)p[S]=[a(p[S][0]||0,o(w,g[S][x]))]}h[x]=[w]}return new l({data:h,size:[v,1]})}function c(d,f){f=s(d,f,!0);for(var p=f._data,v=d._size[0],m=d._size[1],h=d._values,g=d._index,x=d._ptr,y=[],w=m-1;w>=0;w--){var b=p[w][0]||0;if(i(b,0))y[w]=[0];else{for(var S=0,$=[],D=[],O=x[w],A=x[w+1],T=A-1;T>=O;T--){var M=g[T];M===w?S=h[T]:M<w&&($.push(h[T]),D.push(M))}if(i(S,0))throw new Error("Linear system cannot be solved since matrix is singular");for(var B=r(b,S),F=0,P=D.length;F<P;F++){var I=D[F];p[I]=[a(p[I][0],o(B,$[F]))]}y[w]=[B]}}return new l({data:y,size:[v,1]})}}),vA="lsolveAll",z3e=["typed","matrix","divideScalar","multiplyScalar","subtract","equalScalar","DenseMatrix"],L3e=se(vA,z3e,e=>{var{typed:t,matrix:n,divideScalar:r,multiplyScalar:o,subtract:a,equalScalar:i,DenseMatrix:l}=e,s=Fc({DenseMatrix:l});return t(vA,{"SparseMatrix, Array | Matrix":function(f,p){return c(f,p)},"DenseMatrix, Array | Matrix":function(f,p){return u(f,p)},"Array, Array | Matrix":function(f,p){var v=n(f),m=u(v,p);return m.map(h=>h.valueOf())}});function u(d,f){for(var p=[s(d,f,!0)._data.map(D=>D[0])],v=d._data,m=d._size[0],h=d._size[1],g=0;g<h;g++)for(var x=p.length,y=0;y<x;y++){var w=p[y];if(i(v[g][g],0))if(i(w[g],0)){if(y===0){var S=[...w];S[g]=1;for(var $=g+1;$<h;$++)S[$]=a(S[$],v[$][g]);p.push(S)}}else{if(y===0)return[];p.splice(y,1),y-=1,x-=1}else{w[g]=r(w[g],v[g][g]);for(var b=g+1;b<h;b++)w[b]=a(w[b],o(w[g],v[b][g]))}}return p.map(D=>new l({data:D.map(O=>[O]),size:[m,1]}))}function c(d,f){for(var p=[s(d,f,!0)._data.map(k=>k[0])],v=d._size[0],m=d._size[1],h=d._values,g=d._index,x=d._ptr,y=0;y<m;y++)for(var w=p.length,b=0;b<w;b++){for(var S=p[b],$=[],D=[],O=x[y],A=x[y+1],T=0,M=O;M<A;M++){var B=g[M];B===y?T=h[M]:B>y&&($.push(h[M]),D.push(B))}if(i(T,0))if(i(S[y],0)){if(b===0){var N=[...S];N[y]=1;for(var R=0,_=D.length;R<_;R++){var L=D[R];N[L]=a(N[L],$[R])}p.push(N)}}else{if(b===0)return[];p.splice(b,1),b-=1,w-=1}else{S[y]=r(S[y],T);for(var F=0,P=D.length;F<P;F++){var I=D[F];S[I]=a(S[I],o(S[y],$[F]))}}}return p.map(k=>new l({data:k.map(H=>[H]),size:[v,1]}))}}),hA="usolveAll",k3e=["typed","matrix","divideScalar","multiplyScalar","subtract","equalScalar","DenseMatrix"],H3e=se(hA,k3e,e=>{var{typed:t,matrix:n,divideScalar:r,multiplyScalar:o,subtract:a,equalScalar:i,DenseMatrix:l}=e,s=Fc({DenseMatrix:l});return t(hA,{"SparseMatrix, Array | Matrix":function(f,p){return c(f,p)},"DenseMatrix, Array | Matrix":function(f,p){return u(f,p)},"Array, Array | Matrix":function(f,p){var v=n(f),m=u(v,p);return m.map(h=>h.valueOf())}});function u(d,f){for(var p=[s(d,f,!0)._data.map(D=>D[0])],v=d._data,m=d._size[0],h=d._size[1],g=h-1;g>=0;g--)for(var x=p.length,y=0;y<x;y++){var w=p[y];if(i(v[g][g],0))if(i(w[g],0)){if(y===0){var S=[...w];S[g]=1;for(var $=g-1;$>=0;$--)S[$]=a(S[$],v[$][g]);p.push(S)}}else{if(y===0)return[];p.splice(y,1),y-=1,x-=1}else{w[g]=r(w[g],v[g][g]);for(var b=g-1;b>=0;b--)w[b]=a(w[b],o(w[g],v[b][g]))}}return p.map(D=>new l({data:D.map(O=>[O]),size:[m,1]}))}function c(d,f){for(var p=[s(d,f,!0)._data.map(k=>k[0])],v=d._size[0],m=d._size[1],h=d._values,g=d._index,x=d._ptr,y=m-1;y>=0;y--)for(var w=p.length,b=0;b<w;b++){for(var S=p[b],$=[],D=[],O=x[y],A=x[y+1],T=0,M=A-1;M>=O;M--){var B=g[M];B===y?T=h[M]:B<y&&($.push(h[M]),D.push(B))}if(i(T,0))if(i(S[y],0)){if(b===0){var N=[...S];N[y]=1;for(var R=0,_=D.length;R<_;R++){var L=D[R];N[L]=a(N[L],$[R])}p.push(N)}}else{if(b===0)return[];p.splice(b,1),b-=1,w-=1}else{S[y]=r(S[y],T);for(var F=0,P=D.length;F<P;F++){var I=D[F];S[I]=a(S[I],o(S[y],$[F]))}}}return p.map(k=>new l({data:k.map(H=>[H]),size:[v,1]}))}}),j3e="matAlgo08xS0Sid",V3e=["typed","equalScalar"],Zw=se(j3e,V3e,e=>{var{typed:t,equalScalar:n}=e;return function(o,a,i){var l=o._values,s=o._index,u=o._ptr,c=o._size,d=o._datatype,f=a._values,p=a._index,v=a._ptr,m=a._size,h=a._datatype;if(c.length!==m.length)throw new Dt(c.length,m.length);if(c[0]!==m[0]||c[1]!==m[1])throw new RangeError("Dimension mismatch. Matrix A ("+c+") must match Matrix B ("+m+")");if(!l||!f)throw new Error("Cannot perform operation on Pattern Sparse Matrices");var g=c[0],x=c[1],y,w=n,b=0,S=i;typeof d=="string"&&d===h&&(y=d,w=t.find(n,[y,y]),b=t.convert(0,y),S=t.find(i,[y,y]));for(var $=[],D=[],O=[],A=[],T=[],M,B,F,P,I=0;I<x;I++){O[I]=D.length;var N=I+1;for(B=u[I],F=u[I+1],M=B;M<F;M++)P=s[M],T[P]=N,A[P]=l[M],D.push(P);for(B=v[I],F=v[I+1],M=B;M<F;M++)P=p[M],T[P]===N&&(A[P]=S(A[P],f[M]));for(M=O[I];M<D.length;){P=D[M];var R=A[P];w(R,b)?D.splice(M,1):($.push(R),M++)}}return O[x]=D.length,o.createSparseMatrix({values:$,index:D,ptr:O,size:[g,x],datatype:y})}}),Jw=se("useMatrixForArrayScalar",["typed","matrix"],e=>{var{typed:t,matrix:n}=e;return{"Array, number":t.referTo("DenseMatrix, number",r=>(o,a)=>r(n(o),a).valueOf()),"Array, BigNumber":t.referTo("DenseMatrix, BigNumber",r=>(o,a)=>r(n(o),a).valueOf()),"number, Array":t.referTo("number, DenseMatrix",r=>(o,a)=>r(o,n(a)).valueOf()),"BigNumber, Array":t.referTo("BigNumber, DenseMatrix",r=>(o,a)=>r(o,n(a)).valueOf())}}),gA="leftShift",W3e=["typed","matrix","equalScalar","zeros","DenseMatrix","concat"],U3e=se(gA,W3e,e=>{var{typed:t,matrix:n,equalScalar:r,zeros:o,DenseMatrix:a,concat:i}=e,l=vi({typed:t}),s=Ao({typed:t,equalScalar:r}),u=Zw({typed:t,equalScalar:r}),c=fl({typed:t,DenseMatrix:a}),d=Gn({typed:t,equalScalar:r}),f=Do({typed:t}),p=Qt({typed:t,matrix:n,concat:i}),v=Jw({typed:t,matrix:n});return t(gA,{"number, number":B7,"BigNumber, BigNumber":v$e,"SparseMatrix, number | BigNumber":t.referToSelf(m=>(h,g)=>r(g,0)?h.clone():d(h,g,m,!1)),"DenseMatrix, number | BigNumber":t.referToSelf(m=>(h,g)=>r(g,0)?h.clone():f(h,g,m,!1)),"number | BigNumber, SparseMatrix":t.referToSelf(m=>(h,g)=>r(h,0)?o(g.size(),g.storage()):c(g,h,m,!0)),"number | BigNumber, DenseMatrix":t.referToSelf(m=>(h,g)=>r(h,0)?o(g.size(),g.storage()):f(g,h,m,!0))},v,p({SS:u,DS:l,SD:s}))}),yA="rightArithShift",K3e=["typed","matrix","equalScalar","zeros","DenseMatrix","concat"],q3e=se(yA,K3e,e=>{var{typed:t,matrix:n,equalScalar:r,zeros:o,DenseMatrix:a,concat:i}=e,l=vi({typed:t}),s=Ao({typed:t,equalScalar:r}),u=Zw({typed:t,equalScalar:r}),c=fl({typed:t,DenseMatrix:a}),d=Gn({typed:t,equalScalar:r}),f=Do({typed:t}),p=Qt({typed:t,matrix:n,concat:i}),v=Jw({typed:t,matrix:n});return t(yA,{"number, number":F7,"BigNumber, BigNumber":h$e,"SparseMatrix, number | BigNumber":t.referToSelf(m=>(h,g)=>r(g,0)?h.clone():d(h,g,m,!1)),"DenseMatrix, number | BigNumber":t.referToSelf(m=>(h,g)=>r(g,0)?h.clone():f(h,g,m,!1)),"number | BigNumber, SparseMatrix":t.referToSelf(m=>(h,g)=>r(h,0)?o(g.size(),g.storage()):c(g,h,m,!0)),"number | BigNumber, DenseMatrix":t.referToSelf(m=>(h,g)=>r(h,0)?o(g.size(),g.storage()):f(g,h,m,!0))},v,p({SS:u,DS:l,SD:s}))}),bA="rightLogShift",G3e=["typed","matrix","equalScalar","zeros","DenseMatrix","concat"],X3e=se(bA,G3e,e=>{var{typed:t,matrix:n,equalScalar:r,zeros:o,DenseMatrix:a,concat:i}=e,l=vi({typed:t}),s=Ao({typed:t,equalScalar:r}),u=Zw({typed:t,equalScalar:r}),c=fl({typed:t,DenseMatrix:a}),d=Gn({typed:t,equalScalar:r}),f=Do({typed:t}),p=Qt({typed:t,matrix:n,concat:i}),v=Jw({typed:t,matrix:n});return t(bA,{"number, number":R7,"SparseMatrix, number | BigNumber":t.referToSelf(m=>(h,g)=>r(g,0)?h.clone():d(h,g,m,!1)),"DenseMatrix, number | BigNumber":t.referToSelf(m=>(h,g)=>r(g,0)?h.clone():f(h,g,m,!1)),"number | BigNumber, SparseMatrix":t.referToSelf(m=>(h,g)=>r(h,0)?o(g.size(),g.storage()):c(g,h,m,!0)),"number | BigNumber, DenseMatrix":t.referToSelf(m=>(h,g)=>r(h,0)?o(g.size(),g.storage()):f(g,h,m,!0))},v,p({SS:u,DS:l,SD:s}))}),xA="and",Y3e=["typed","matrix","equalScalar","zeros","not","concat"],Z3e=se(xA,Y3e,e=>{var{typed:t,matrix:n,equalScalar:r,zeros:o,not:a,concat:i}=e,l=Ao({typed:t,equalScalar:r}),s=zv({typed:t,equalScalar:r}),u=Gn({typed:t,equalScalar:r}),c=Do({typed:t}),d=Qt({typed:t,matrix:n,concat:i});return t(xA,{"number, number":j7,"Complex, Complex":function(p,v){return(p.re!==0||p.im!==0)&&(v.re!==0||v.im!==0)},"BigNumber, BigNumber":function(p,v){return!p.isZero()&&!v.isZero()&&!p.isNaN()&&!v.isNaN()},"Unit, Unit":t.referToSelf(f=>(p,v)=>f(p.value||0,v.value||0)),"SparseMatrix, any":t.referToSelf(f=>(p,v)=>a(v)?o(p.size(),p.storage()):u(p,v,f,!1)),"DenseMatrix, any":t.referToSelf(f=>(p,v)=>a(v)?o(p.size(),p.storage()):c(p,v,f,!1)),"any, SparseMatrix":t.referToSelf(f=>(p,v)=>a(p)?o(p.size(),p.storage()):u(v,p,f,!0)),"any, DenseMatrix":t.referToSelf(f=>(p,v)=>a(p)?o(p.size(),p.storage()):c(v,p,f,!0)),"Array, any":t.referToSelf(f=>(p,v)=>f(n(p),v).valueOf()),"any, Array":t.referToSelf(f=>(p,v)=>f(p,n(v)).valueOf())},d({SS:s,DS:l}))}),Kp="compare",J3e=["typed","config","matrix","equalScalar","BigNumber","Fraction","DenseMatrix","concat"],Q3e=se(Kp,J3e,e=>{var{typed:t,config:n,equalScalar:r,matrix:o,BigNumber:a,Fraction:i,DenseMatrix:l,concat:s}=e,u=fr({typed:t}),c=Lv({typed:t,equalScalar:r}),d=zn({typed:t,DenseMatrix:l}),f=Qt({typed:t,matrix:o,concat:s}),p=js({typed:t});return t(Kp,eEe({typed:t,config:n}),{"boolean, boolean":function(m,h){return m===h?0:m>h?1:-1},"BigNumber, BigNumber":function(m,h){return Uo(m,h,n.epsilon)?new a(0):new a(m.cmp(h))},"Fraction, Fraction":function(m,h){return new i(m.compare(h))},"Complex, Complex":function(){throw new TypeError("No ordering relation is defined for complex numbers")}},p,f({SS:c,DS:u,Ss:d}))}),eEe=se(Kp,["typed","config"],e=>{var{typed:t,config:n}=e;return t(Kp,{"number, number":function(o,a){return kr(o,a,n.epsilon)?0:o>a?1:-1}})}),Ml=function e(t,n){var r=/(^([+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?)?$|^0x[0-9a-f]+$|\d+)/gi,o=/(^[ ]*|[ ]*$)/g,a=/(^([\w ]+,?[\w ]+)?[\w ]+,?[\w ]+\d+:\d+(:\d+)?[\w ]?|^\d{1,4}[\/\-]\d{1,4}[\/\-]\d{1,4}|^\w+, \w+ \d+, \d{4})/,i=/^0x[0-9a-f]+$/i,l=/^0/,s=function(y){return e.insensitive&&(""+y).toLowerCase()||""+y},u=s(t).replace(o,"")||"",c=s(n).replace(o,"")||"",d=u.replace(r,"\0$1\0").replace(/\0$/,"").replace(/^\0/,"").split("\0"),f=c.replace(r,"\0$1\0").replace(/\0$/,"").replace(/^\0/,"").split("\0"),p=parseInt(u.match(i),16)||d.length!==1&&u.match(a)&&Date.parse(u),v=parseInt(c.match(i),16)||p&&c.match(a)&&Date.parse(c)||null,m,h;if(v){if(p<v)return-1;if(p>v)return 1}for(var g=0,x=Math.max(d.length,f.length);g<x;g++){if(m=!(d[g]||"").match(l)&&parseFloat(d[g])||d[g]||0,h=!(f[g]||"").match(l)&&parseFloat(f[g])||f[g]||0,isNaN(m)!==isNaN(h))return isNaN(m)?1:-1;if(typeof m!=typeof h&&(m+="",h+=""),m<h)return-1;if(m>h)return 1}return 0},wA="compareNatural",tEe=["typed","compare"],nEe=se(wA,tEe,e=>{var{typed:t,compare:n}=e,r=n.signatures["boolean,boolean"];return t(wA,{"any, any":o});function o(s,u){var c=an(s),d=an(u),f;if((c==="number"||c==="BigNumber"||c==="Fraction")&&(d==="number"||d==="BigNumber"||d==="Fraction"))return f=n(s,u),f.toString()!=="0"?f>0?1:-1:Ml(c,d);var p=["Array","DenseMatrix","SparseMatrix"];if(p.includes(c)||p.includes(d))return f=a(o,s,u),f!==0?f:Ml(c,d);if(c!==d)return Ml(c,d);if(c==="Complex")return rEe(s,u);if(c==="Unit")return s.equalBase(u)?o(s.value,u.value):i(o,s.formatUnits(),u.formatUnits());if(c==="boolean")return r(s,u);if(c==="string")return Ml(s,u);if(c==="Object")return l(o,s,u);if(c==="null"||c==="undefined")return 0;throw new TypeError('Unsupported type of value "'+c+'"')}function a(s,u,c){return Za(u)&&Za(c)?i(s,u.toJSON().values,c.toJSON().values):Za(u)?a(s,u.toArray(),c):Za(c)?a(s,u,c.toArray()):ac(u)?a(s,u.toJSON().data,c):ac(c)?a(s,u,c.toJSON().data):Array.isArray(u)?Array.isArray(c)?i(s,u,c):a(s,u,[c]):a(s,[u],c)}function i(s,u,c){for(var d=0,f=Math.min(u.length,c.length);d<f;d++){var p=s(u[d],c[d]);if(p!==0)return p}return u.length>c.length?1:u.length<c.length?-1:0}function l(s,u,c){var d=Object.keys(u),f=Object.keys(c);d.sort(Ml),f.sort(Ml);var p=i(s,d,f);if(p!==0)return p;for(var v=0;v<d.length;v++){var m=s(u[d[v]],c[f[v]]);if(m!==0)return m}return 0}});function rEe(e,t){return e.re>t.re?1:e.re<t.re?-1:e.im>t.im?1:e.im<t.im?-1:0}var SA="compareText",oEe=["typed","matrix","concat"];my.signature="any, any";var aEe=se(SA,oEe,e=>{var{typed:t,matrix:n,concat:r}=e,o=Qt({typed:t,matrix:n,concat:r});return t(SA,my,o({elop:my,Ds:!0}))}),qp="equal",iEe=["typed","matrix","equalScalar","DenseMatrix","concat"],lEe=se(qp,iEe,e=>{var{typed:t,matrix:n,equalScalar:r,DenseMatrix:o,concat:a}=e,i=fr({typed:t}),l=Go({typed:t,DenseMatrix:o}),s=zn({typed:t,DenseMatrix:o}),u=Qt({typed:t,matrix:n,concat:a});return t(qp,sEe({typed:t,equalScalar:r}),u({elop:r,SS:l,DS:i,Ss:s}))}),sEe=se(qp,["typed","equalScalar"],e=>{var{typed:t,equalScalar:n}=e;return t(qp,{"any, any":function(o,a){return o===null?a===null:a===null?o===null:o===void 0?a===void 0:a===void 0?o===void 0:n(o,a)}})}),CA="equalText",uEe=["typed","compareText","isZero"],cEe=se(CA,uEe,e=>{var{typed:t,compareText:n,isZero:r}=e;return t(CA,{"any, any":function(a,i){return r(n(a,i))}})}),Gp="smaller",dEe=["typed","config","matrix","DenseMatrix","concat"],fEe=se(Gp,dEe,e=>{var{typed:t,config:n,matrix:r,DenseMatrix:o,concat:a}=e,i=fr({typed:t}),l=Go({typed:t,DenseMatrix:o}),s=zn({typed:t,DenseMatrix:o}),u=Qt({typed:t,matrix:r,concat:a}),c=js({typed:t});return t(Gp,pEe({typed:t,config:n}),{"boolean, boolean":(d,f)=>d<f,"BigNumber, BigNumber":function(f,p){return f.lt(p)&&!Uo(f,p,n.epsilon)},"Fraction, Fraction":(d,f)=>d.compare(f)===-1,"Complex, Complex":function(f,p){throw new TypeError("No ordering relation is defined for complex numbers")}},c,u({SS:l,DS:i,Ss:s}))}),pEe=se(Gp,["typed","config"],e=>{var{typed:t,config:n}=e;return t(Gp,{"number, number":function(o,a){return o<a&&!kr(o,a,n.epsilon)}})}),Xp="smallerEq",mEe=["typed","config","matrix","DenseMatrix","concat"],vEe=se(Xp,mEe,e=>{var{typed:t,config:n,matrix:r,DenseMatrix:o,concat:a}=e,i=fr({typed:t}),l=Go({typed:t,DenseMatrix:o}),s=zn({typed:t,DenseMatrix:o}),u=Qt({typed:t,matrix:r,concat:a}),c=js({typed:t});return t(Xp,hEe({typed:t,config:n}),{"boolean, boolean":(d,f)=>d<=f,"BigNumber, BigNumber":function(f,p){return f.lte(p)||Uo(f,p,n.epsilon)},"Fraction, Fraction":(d,f)=>d.compare(f)!==1,"Complex, Complex":function(){throw new TypeError("No ordering relation is defined for complex numbers")}},c,u({SS:l,DS:i,Ss:s}))}),hEe=se(Xp,["typed","config"],e=>{var{typed:t,config:n}=e;return t(Xp,{"number, number":function(o,a){return o<=a||kr(o,a,n.epsilon)}})}),Yp="larger",gEe=["typed","config","matrix","DenseMatrix","concat"],yEe=se(Yp,gEe,e=>{var{typed:t,config:n,matrix:r,DenseMatrix:o,concat:a}=e,i=fr({typed:t}),l=Go({typed:t,DenseMatrix:o}),s=zn({typed:t,DenseMatrix:o}),u=Qt({typed:t,matrix:r,concat:a}),c=js({typed:t});return t(Yp,bEe({typed:t,config:n}),{"boolean, boolean":(d,f)=>d>f,"BigNumber, BigNumber":function(f,p){return f.gt(p)&&!Uo(f,p,n.epsilon)},"Fraction, Fraction":(d,f)=>d.compare(f)===1,"Complex, Complex":function(){throw new TypeError("No ordering relation is defined for complex numbers")}},c,u({SS:l,DS:i,Ss:s}))}),bEe=se(Yp,["typed","config"],e=>{var{typed:t,config:n}=e;return t(Yp,{"number, number":function(o,a){return o>a&&!kr(o,a,n.epsilon)}})}),Zp="largerEq",xEe=["typed","config","matrix","DenseMatrix","concat"],wEe=se(Zp,xEe,e=>{var{typed:t,config:n,matrix:r,DenseMatrix:o,concat:a}=e,i=fr({typed:t}),l=Go({typed:t,DenseMatrix:o}),s=zn({typed:t,DenseMatrix:o}),u=Qt({typed:t,matrix:r,concat:a}),c=js({typed:t});return t(Zp,SEe({typed:t,config:n}),{"boolean, boolean":(d,f)=>d>=f,"BigNumber, BigNumber":function(f,p){return f.gte(p)||Uo(f,p,n.epsilon)},"Fraction, Fraction":(d,f)=>d.compare(f)!==-1,"Complex, Complex":function(){throw new TypeError("No ordering relation is defined for complex numbers")}},c,u({SS:l,DS:i,Ss:s}))}),SEe=se(Zp,["typed","config"],e=>{var{typed:t,config:n}=e;return t(Zp,{"number, number":function(o,a){return o>=a||kr(o,a,n.epsilon)}})}),$A="deepEqual",CEe=["typed","equal"],$Ee=se($A,CEe,e=>{var{typed:t,equal:n}=e;return t($A,{"any, any":function(a,i){return r(a.valueOf(),i.valueOf())}});function r(o,a){if(Array.isArray(o))if(Array.isArray(a)){var i=o.length;if(i!==a.length)return!1;for(var l=0;l<i;l++)if(!r(o[l],a[l]))return!1;return!0}else return!1;else return Array.isArray(a)?!1:n(o,a)}}),Jp="unequal",EEe=["typed","config","equalScalar","matrix","DenseMatrix","concat"],DEe=se(Jp,EEe,e=>{var{typed:t,config:n,equalScalar:r,matrix:o,DenseMatrix:a,concat:i}=e,l=fr({typed:t}),s=Go({typed:t,DenseMatrix:a}),u=zn({typed:t,DenseMatrix:a}),c=Qt({typed:t,matrix:o,concat:i});return t(Jp,AEe({typed:t,equalScalar:r}),c({elop:d,SS:s,DS:l,Ss:u}));function d(f,p){return!r(f,p)}}),AEe=se(Jp,["typed","equalScalar"],e=>{var{typed:t,equalScalar:n}=e;return t(Jp,{"any, any":function(o,a){return o===null?a!==null:a===null?o!==null:o===void 0?a!==void 0:a===void 0?o!==void 0:!n(o,a)}})}),EA="partitionSelect",OEe=["typed","isNumeric","isNaN","compare"],TEe=se(EA,OEe,e=>{var{typed:t,isNumeric:n,isNaN:r,compare:o}=e,a=o,i=(u,c)=>-o(u,c);return t(EA,{"Array | Matrix, number":function(c,d){return l(c,d,a)},"Array | Matrix, number, string":function(c,d,f){if(f==="asc")return l(c,d,a);if(f==="desc")return l(c,d,i);throw new Error('Compare string must be "asc" or "desc"')},"Array | Matrix, number, function":l});function l(u,c,d){if(!ot(c)||c<0)throw new Error("k must be a non-negative integer");if(mt(u)){var f=u.size();if(f.length>1)throw new Error("Only one dimensional matrices supported");return s(u.valueOf(),c,d)}if(Array.isArray(u))return s(u,c,d)}function s(u,c,d){if(c>=u.length)throw new Error("k out of bounds");for(var f=0;f<u.length;f++)if(n(u[f])&&r(u[f]))return u[f];for(var p=0,v=u.length-1;p<v;){for(var m=p,h=v,g=u[Math.floor(Math.random()*(v-p+1))+p];m<h;)if(d(u[m],g)>=0){var x=u[h];u[h]=u[m],u[m]=x,--h}else++m;d(u[m],g)>0&&--m,c<=m?v=m:p=m+1}return u[c]}}),DA="sort",MEe=["typed","matrix","compare","compareNatural"],NEe=se(DA,MEe,e=>{var{typed:t,matrix:n,compare:r,compareNatural:o}=e,a=r,i=(c,d)=>-r(c,d);return t(DA,{Array:function(d){return s(d),d.sort(a)},Matrix:function(d){return u(d),n(d.toArray().sort(a),d.storage())},"Array, function":function(d,f){return s(d),d.sort(f)},"Matrix, function":function(d,f){return u(d),n(d.toArray().sort(f),d.storage())},"Array, string":function(d,f){return s(d),d.sort(l(f))},"Matrix, string":function(d,f){return u(d),n(d.toArray().sort(l(f)),d.storage())}});function l(c){if(c==="asc")return a;if(c==="desc")return i;if(c==="natural")return o;throw new Error('String "asc", "desc", or "natural" expected')}function s(c){if(Mt(c).length!==1)throw new Error("One dimensional array expected")}function u(c){if(c.size().length!==1)throw new Error("One dimensional matrix expected")}}),AA="max",PEe=["typed","config","numeric","larger"],SB=se(AA,PEe,e=>{var{typed:t,config:n,numeric:r,larger:o}=e;return t(AA,{"Array | Matrix":i,"Array | Matrix, number | BigNumber":function(s,u){return Fv(s,u.valueOf(),a)},"...":function(s){if(ks(s))throw new TypeError("Scalar values expected in function max");return i(s)}});function a(l,s){try{return o(l,s)?l:s}catch(u){throw dr(u,"max",s)}}function i(l){var s;if(Ca(l,function(u){try{isNaN(u)&&typeof u=="number"?s=NaN:(s===void 0||o(u,s))&&(s=u)}catch(c){throw dr(c,"max",u)}}),s===void 0)throw new Error("Cannot calculate max of an empty array");return typeof s=="string"&&(s=r(s,n.number)),s}}),OA="min",IEe=["typed","config","numeric","smaller"],CB=se(OA,IEe,e=>{var{typed:t,config:n,numeric:r,smaller:o}=e;return t(OA,{"Array | Matrix":i,"Array | Matrix, number | BigNumber":function(s,u){return Fv(s,u.valueOf(),a)},"...":function(s){if(ks(s))throw new TypeError("Scalar values expected in function min");return i(s)}});function a(l,s){try{return o(l,s)?l:s}catch(u){throw dr(u,"min",s)}}function i(l){var s;if(Ca(l,function(u){try{isNaN(u)&&typeof u=="number"?s=NaN:(s===void 0||o(u,s))&&(s=u)}catch(c){throw dr(c,"min",u)}}),s===void 0)throw new Error("Cannot calculate min of an empty array");return typeof s=="string"&&(s=r(s,n.number)),s}}),_Ee="ImmutableDenseMatrix",BEe=["smaller","DenseMatrix"],FEe=se(_Ee,BEe,e=>{var{smaller:t,DenseMatrix:n}=e;function r(o,a){if(!(this instanceof r))throw new SyntaxError("Constructor must be called with the new operator");if(a&&!Qn(a))throw new Error("Invalid datatype: "+a);if(mt(o)||Ut(o)){var i=new n(o,a);this._data=i._data,this._size=i._size,this._datatype=i._datatype,this._min=null,this._max=null}else if(o&&Ut(o.data)&&Ut(o.size))this._data=o.data,this._size=o.size,this._datatype=o.datatype,this._min=typeof o.min<"u"?o.min:null,this._max=typeof o.max<"u"?o.max:null;else{if(o)throw new TypeError("Unsupported type of data ("+an(o)+")");this._data=[],this._size=[0],this._datatype=a,this._min=null,this._max=null}}return r.prototype=new n,r.prototype.type="ImmutableDenseMatrix",r.prototype.isImmutableDenseMatrix=!0,r.prototype.subset=function(o){switch(arguments.length){case 1:{var a=n.prototype.subset.call(this,o);return mt(a)?new r({data:a._data,size:a._size,datatype:a._datatype}):a}case 2:case 3:throw new Error("Cannot invoke set subset on an Immutable Matrix instance");default:throw new SyntaxError("Wrong number of arguments")}},r.prototype.set=function(){throw new Error("Cannot invoke set on an Immutable Matrix instance")},r.prototype.resize=function(){throw new Error("Cannot invoke resize on an Immutable Matrix instance")},r.prototype.reshape=function(){throw new Error("Cannot invoke reshape on an Immutable Matrix instance")},r.prototype.clone=function(){return new r({data:ct(this._data),size:ct(this._size),datatype:this._datatype})},r.prototype.toJSON=function(){return{mathjs:"ImmutableDenseMatrix",data:this._data,size:this._size,datatype:this._datatype}},r.fromJSON=function(o){return new r(o)},r.prototype.swapRows=function(){throw new Error("Cannot invoke swapRows on an Immutable Matrix instance")},r.prototype.min=function(){if(this._min===null){var o=null;this.forEach(function(a){(o===null||t(a,o))&&(o=a)}),this._min=o!==null?o:void 0}return this._min},r.prototype.max=function(){if(this._max===null){var o=null;this.forEach(function(a){(o===null||t(o,a))&&(o=a)}),this._max=o!==null?o:void 0}return this._max},r},{isClass:!0}),REe="Index",zEe=["ImmutableDenseMatrix"],LEe=se(REe,zEe,e=>{var{ImmutableDenseMatrix:t}=e;function n(o){if(!(this instanceof n))throw new SyntaxError("Constructor must be called with the new operator");this._dimensions=[],this._isScalar=!0;for(var a=0,i=arguments.length;a<i;a++){var l=arguments[a];if(Ov(l))this._dimensions.push(l),this._isScalar=!1;else if(Array.isArray(l)||mt(l)){var s=r(l.valueOf());this._dimensions.push(s);var u=s.size();(u.length!==1||u[0]!==1)&&(this._isScalar=!1)}else if(typeof l=="number")this._dimensions.push(r([l]));else if(typeof l=="string")this._dimensions.push(l);else throw new TypeError("Dimension must be an Array, Matrix, number, string, or Range")}}n.prototype.type="Index",n.prototype.isIndex=!0;function r(o){for(var a=0,i=o.length;a<i;a++)if(typeof o[a]!="number"||!ot(o[a]))throw new TypeError("Index parameters must be positive integer numbers");return new t(o)}return n.prototype.clone=function(){var o=new n;return o._dimensions=ct(this._dimensions),o._isScalar=this._isScalar,o},n.create=function(o){var a=new n;return n.apply(a,o),a},n.prototype.size=function(){for(var o=[],a=0,i=this._dimensions.length;a<i;a++){var l=this._dimensions[a];o[a]=typeof l=="string"?1:l.size()[0]}return o},n.prototype.max=function(){for(var o=[],a=0,i=this._dimensions.length;a<i;a++){var l=this._dimensions[a];o[a]=typeof l=="string"?l:l.max()}return o},n.prototype.min=function(){for(var o=[],a=0,i=this._dimensions.length;a<i;a++){var l=this._dimensions[a];o[a]=typeof l=="string"?l:l.min()}return o},n.prototype.forEach=function(o){for(var a=0,i=this._dimensions.length;a<i;a++)o(this._dimensions[a],a,this)},n.prototype.dimension=function(o){return this._dimensions[o]||null},n.prototype.isObjectProperty=function(){return this._dimensions.length===1&&typeof this._dimensions[0]=="string"},n.prototype.getObjectProperty=function(){return this.isObjectProperty()?this._dimensions[0]:null},n.prototype.isScalar=function(){return this._isScalar},n.prototype.toArray=function(){for(var o=[],a=0,i=this._dimensions.length;a<i;a++){var l=this._dimensions[a];o.push(typeof l=="string"?l:l.toArray())}return o},n.prototype.valueOf=n.prototype.toArray,n.prototype.toString=function(){for(var o=[],a=0,i=this._dimensions.length;a<i;a++){var l=this._dimensions[a];typeof l=="string"?o.push(JSON.stringify(l)):o.push(l.toString())}return"["+o.join(", ")+"]"},n.prototype.toJSON=function(){return{mathjs:"Index",dimensions:this._dimensions}},n.fromJSON=function(o){return n.create(o.dimensions)},n},{isClass:!0}),kEe="FibonacciHeap",HEe=["smaller","larger"],jEe=se(kEe,HEe,e=>{var{smaller:t,larger:n}=e,r=1/Math.log((1+Math.sqrt(5))/2);function o(){if(!(this instanceof o))throw new SyntaxError("Constructor must be called with the new operator");this._minimum=null,this._size=0}o.prototype.type="FibonacciHeap",o.prototype.isFibonacciHeap=!0,o.prototype.insert=function(c,d){var f={key:c,value:d,degree:0};if(this._minimum){var p=this._minimum;f.left=p,f.right=p.right,p.right=f,f.right.left=f,t(c,p.key)&&(this._minimum=f)}else f.left=f,f.right=f,this._minimum=f;return this._size++,f},o.prototype.size=function(){return this._size},o.prototype.clear=function(){this._minimum=null,this._size=0},o.prototype.isEmpty=function(){return this._size===0},o.prototype.extractMinimum=function(){var c=this._minimum;if(c===null)return c;for(var d=this._minimum,f=c.degree,p=c.child;f>0;){var v=p.right;p.left.right=p.right,p.right.left=p.left,p.left=d,p.right=d.right,d.right=p,p.right.left=p,p.parent=null,p=v,f--}return c.left.right=c.right,c.right.left=c.left,c===c.right?d=null:(d=c.right,d=u(d,this._size)),this._size--,this._minimum=d,c},o.prototype.remove=function(c){this._minimum=a(this._minimum,c,-1),this.extractMinimum()};function a(c,d,f){d.key=f;var p=d.parent;return p&&t(d.key,p.key)&&(i(c,d,p),l(c,p)),t(d.key,c.key)&&(c=d),c}function i(c,d,f){d.left.right=d.right,d.right.left=d.left,f.degree--,f.child===d&&(f.child=d.right),f.degree===0&&(f.child=null),d.left=c,d.right=c.right,c.right=d,d.right.left=d,d.parent=null,d.mark=!1}function l(c,d){var f=d.parent;f&&(d.mark?(i(c,d,f),l(f)):d.mark=!0)}var s=function(d,f){d.left.right=d.right,d.right.left=d.left,d.parent=f,f.child?(d.left=f.child,d.right=f.child.right,f.child.right=d,d.right.left=d):(f.child=d,d.right=d,d.left=d),f.degree++,d.mark=!1};function u(c,d){var f=Math.floor(Math.log(d)*r)+1,p=new Array(f),v=0,m=c;if(m)for(v++,m=m.right;m!==c;)v++,m=m.right;for(var h;v>0;){for(var g=m.degree,x=m.right;h=p[g],!!h;){if(n(m.key,h.key)){var y=h;h=m,m=y}s(h,m),p[g]=null,g++}p[g]=m,m=x,v--}c=null;for(var w=0;w<f;w++)h=p[w],h&&(c?(h.left.right=h.right,h.right.left=h.left,h.left=c,h.right=c.right,c.right=h,h.right.left=h,t(h.key,c.key)&&(c=h)):c=h);return c}return o},{isClass:!0}),VEe="Spa",WEe=["addScalar","equalScalar","FibonacciHeap"],UEe=se(VEe,WEe,e=>{var{addScalar:t,equalScalar:n,FibonacciHeap:r}=e;function o(){if(!(this instanceof o))throw new SyntaxError("Constructor must be called with the new operator");this._values=[],this._heap=new r}return o.prototype.type="Spa",o.prototype.isSpa=!0,o.prototype.set=function(a,i){if(this._values[a])this._values[a].value=i;else{var l=this._heap.insert(a,i);this._values[a]=l}},o.prototype.get=function(a){var i=this._values[a];return i?i.value:0},o.prototype.accumulate=function(a,i){var l=this._values[a];l?l.value=t(l.value,i):(l=this._heap.insert(a,i),this._values[a]=l)},o.prototype.forEach=function(a,i,l){var s=this._heap,u=this._values,c=[],d=s.extractMinimum();for(d&&c.push(d);d&&d.key<=i;)d.key>=a&&(n(d.value,0)||l(d.key,d.value,this)),d=s.extractMinimum(),d&&c.push(d);for(var f=0;f<c.length;f++){var p=c[f];d=s.insert(p.key,p.value),u[d.key]=d}},o.prototype.swap=function(a,i){var l=this._values[a],s=this._values[i];if(!l&&s)l=this._heap.insert(a,s.value),this._heap.remove(s),this._values[a]=l,this._values[i]=void 0;else if(l&&!s)s=this._heap.insert(i,l.value),this._heap.remove(l),this._values[i]=s,this._values[a]=void 0;else if(l&&s){var u=l.value;l.value=s.value,s.value=u}},o},{isClass:!0}),KEe=Bc(function(e){return new e(1).exp()},{hasher:kv}),qEe=Bc(function(e){return new e(1).plus(new e(5).sqrt()).div(2)},{hasher:kv}),Qw=Bc(function(e){return e.acos(-1)},{hasher:kv}),GEe=Bc(function(e){return Qw(e).times(2)},{hasher:kv});function kv(e){return e[0].precision}function TA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function xg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?TA(Object(n),!0).forEach(function(r){In(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var XEe="Unit",YEe=["?on","config","addScalar","subtract","multiplyScalar","divideScalar","pow","abs","fix","round","equal","isNumeric","format","number","Complex","BigNumber","Fraction"],ZEe=se(XEe,YEe,e=>{var{on:t,config:n,addScalar:r,subtract:o,multiplyScalar:a,divideScalar:i,pow:l,abs:s,fix:u,round:c,equal:d,isNumeric:f,format:p,number:v,Complex:m,BigNumber:h,Fraction:g}=e,x=v;function y(Q,te){if(!(this instanceof y))throw new Error("Constructor must be called with the new operator");if(!(Q==null||f(Q)||vo(Q)))throw new TypeError("First parameter in Unit constructor must be number, BigNumber, Fraction, Complex, or undefined");if(this.fixPrefix=!1,this.skipAutomaticSimplification=!0,te===void 0)this.units=[],this.dimensions=R.map(Y=>0);else if(typeof te=="string"){var de=y.parse(te);this.units=de.units,this.dimensions=de.dimensions}else if(uo(te)&&te.value===null)this.fixPrefix=te.fixPrefix,this.skipAutomaticSimplification=te.skipAutomaticSimplification,this.dimensions=te.dimensions.slice(0),this.units=te.units.map(Y=>E({},Y));else throw new TypeError("Second parameter in Unit constructor must be a string or valueless Unit");this.value=this._normalize(Q)}Object.defineProperty(y,"name",{value:"Unit"}),y.prototype.constructor=y,y.prototype.type="Unit",y.prototype.isUnit=!0;var w,b,S;function $(){for(;S===" "||S===" ";)A()}function D(Q){return Q>="0"&&Q<="9"||Q==="."}function O(Q){return Q>="0"&&Q<="9"}function A(){b++,S=w.charAt(b)}function T(Q){b=Q,S=w.charAt(b)}function M(){var Q="",te=b;if(S==="+"?A():S==="-"&&(Q+=S,A()),!D(S))return T(te),null;if(S==="."){if(Q+=S,A(),!O(S))return T(te),null}else{for(;O(S);)Q+=S,A();S==="."&&(Q+=S,A())}for(;O(S);)Q+=S,A();if(S==="E"||S==="e"){var de="",Y=b;if(de+=S,A(),(S==="+"||S==="-")&&(de+=S,A()),!O(S))return T(Y),Q;for(Q=Q+de;O(S);)Q+=S,A()}return Q}function B(){for(var Q="";O(S)||y.isValidAlpha(S);)Q+=S,A();var te=Q.charAt(0);return y.isValidAlpha(te)?Q:null}function F(Q){return S===Q?(A(),Q):null}y.parse=function(Q,te){if(te=te||{},w=Q,b=-1,S="",typeof w!="string")throw new TypeError("Invalid argument in Unit.parse, string expected");var de=new y;de.units=[];var Y=1,ae=!1;A(),$();var ce=M(),Ce=null;if(ce){if(n.number==="BigNumber")Ce=new h(ce);else if(n.number==="Fraction")try{Ce=new g(ce)}catch{Ce=parseFloat(ce)}else Ce=parseFloat(ce);$(),F("*")?(Y=1,ae=!0):F("/")&&(Y=-1,ae=!0)}for(var ye=[],J=1;;){for($();S==="(";)ye.push(Y),J*=Y,Y=1,A(),$();var ne=void 0;if(S){var oe=S;if(ne=B(),ne===null)throw new SyntaxError('Unexpected "'+oe+'" in "'+w+'" at index '+b.toString())}else break;var ie=P(ne);if(ie===null)throw new SyntaxError('Unit "'+ne+'" not found.');var ve=Y*J;if($(),F("^")){$();var we=M();if(we===null)throw new SyntaxError('In "'+Q+'", "^" must be followed by a floating-point number');ve*=we}de.units.push({unit:ie.unit,prefix:ie.prefix,power:ve});for(var $e=0;$e<R.length;$e++)de.dimensions[$e]+=(ie.unit.dimensions[$e]||0)*ve;for($();S===")";){if(ye.length===0)throw new SyntaxError('Unmatched ")" in "'+w+'" at index '+b.toString());J/=ye.pop(),A(),$()}if(ae=!1,F("*")?(Y=1,ae=!0):F("/")?(Y=-1,ae=!0):Y=1,ie.unit.base){var Ae=ie.unit.base.key;K.auto[Ae]={unit:ie.unit,prefix:ie.prefix}}}if($(),S)throw new SyntaxError('Could not parse: "'+Q+'"');if(ae)throw new SyntaxError('Trailing characters: "'+Q+'"');if(ye.length!==0)throw new SyntaxError('Unmatched "(" in "'+w+'"');if(de.units.length===0&&!te.allowNoUnits)throw new SyntaxError('"'+Q+'" contains no units');return de.value=Ce!==void 0?de._normalize(Ce):null,de},y.prototype.clone=function(){var Q=new y;Q.fixPrefix=this.fixPrefix,Q.skipAutomaticSimplification=this.skipAutomaticSimplification,Q.value=ct(this.value),Q.dimensions=this.dimensions.slice(0),Q.units=[];for(var te=0;te<this.units.length;te++){Q.units[te]={};for(var de in this.units[te])Ke(this.units[te],de)&&(Q.units[te][de]=this.units[te][de])}return Q},y.prototype.valueType=function(){return an(this.value)},y.prototype._isDerived=function(){return this.units.length===0?!1:this.units.length>1||Math.abs(this.units[0].power-1)>1e-15},y.prototype._normalize=function(Q){if(Q==null||this.units.length===0)return Q;for(var te=Q,de=y._getNumberConverter(an(Q)),Y=0;Y<this.units.length;Y++){var ae=de(this.units[Y].unit.value),ce=de(this.units[Y].prefix.value),Ce=de(this.units[Y].power);te=a(te,l(a(ae,ce),Ce))}return te},y.prototype._denormalize=function(Q,te){if(Q==null||this.units.length===0)return Q;for(var de=Q,Y=y._getNumberConverter(an(Q)),ae=0;ae<this.units.length;ae++){var ce=Y(this.units[ae].unit.value),Ce=Y(this.units[ae].prefix.value),ye=Y(this.units[ae].power);de=i(de,l(a(ce,Ce),ye))}return de};var P=Bc(Q=>{if(Ke(V,Q)){var te=V[Q],de=te.prefixes[""];return{unit:te,prefix:de}}for(var Y in V)if(Ke(V,Y)&&K1e(Q,Y)){var ae=V[Y],ce=Q.length-Y.length,Ce=Q.substring(0,ce),ye=Ke(ae.prefixes,Ce)?ae.prefixes[Ce]:void 0;if(ye!==void 0)return{unit:ae,prefix:ye}}return null},{hasher:Q=>Q[0],limit:100});y.isValuelessUnit=function(Q){return P(Q)!==null},y.prototype.hasBase=function(Q){if(typeof Q=="string"&&(Q=_[Q]),!Q)return!1;for(var te=0;te<R.length;te++)if(Math.abs((this.dimensions[te]||0)-(Q.dimensions[te]||0))>1e-12)return!1;return!0},y.prototype.equalBase=function(Q){for(var te=0;te<R.length;te++)if(Math.abs((this.dimensions[te]||0)-(Q.dimensions[te]||0))>1e-12)return!1;return!0},y.prototype.equals=function(Q){return this.equalBase(Q)&&d(this.value,Q.value)},y.prototype.multiply=function(Q){for(var te=this.clone(),de=uo(Q)?Q:new y(Q),Y=0;Y<R.length;Y++)te.dimensions[Y]=(this.dimensions[Y]||0)+(de.dimensions[Y]||0);for(var ae=0;ae<de.units.length;ae++){var ce=xg({},de.units[ae]);te.units.push(ce)}if(this.value!==null||de.value!==null){var Ce=this.value===null?this._normalize(1):this.value,ye=de.value===null?de._normalize(1):de.value;te.value=a(Ce,ye)}else te.value=null;return uo(Q)&&(te.skipAutomaticSimplification=!1),I(te)},y.prototype.divideInto=function(Q){return new y(Q).divide(this)},y.prototype.divide=function(Q){for(var te=this.clone(),de=uo(Q)?Q:new y(Q),Y=0;Y<R.length;Y++)te.dimensions[Y]=(this.dimensions[Y]||0)-(de.dimensions[Y]||0);for(var ae=0;ae<de.units.length;ae++){var ce=xg(xg({},de.units[ae]),{},{power:-de.units[ae].power});te.units.push(ce)}if(this.value!==null||de.value!==null){var Ce=this.value===null?this._normalize(1):this.value,ye=de.value===null?de._normalize(1):de.value;te.value=i(Ce,ye)}else te.value=null;return uo(Q)&&(te.skipAutomaticSimplification=!1),I(te)},y.prototype.pow=function(Q){for(var te=this.clone(),de=0;de<R.length;de++)te.dimensions[de]=(this.dimensions[de]||0)*Q;for(var Y=0;Y<te.units.length;Y++)te.units[Y].power*=Q;return te.value!==null?te.value=l(te.value,Q):te.value=null,te.skipAutomaticSimplification=!1,I(te)};function I(Q){return Q.equalBase(_.NONE)&&Q.value!==null&&!n.predictable?Q.value:Q}y.prototype.abs=function(){var Q=this.clone();if(Q.value!==null)if(Q._isDerived()||Q.units[0].unit.offset===0)Q.value=s(Q.value);else{var te=Q._numberConverter(),de=te(Q.units[0].unit.value),Y=te(Q.units[0].unit.offset),ae=a(de,Y);Q.value=o(s(r(Q.value,ae)),ae)}for(var ce in Q.units)(Q.units[ce].unit.name==="VA"||Q.units[ce].unit.name==="VAR")&&(Q.units[ce].unit=V.W);return Q},y.prototype.to=function(Q){var te=this.value===null?this._normalize(1):this.value,de;if(typeof Q=="string")de=y.parse(Q);else if(uo(Q))de=Q.clone();else throw new Error("String or Unit expected as parameter");if(!this.equalBase(de))throw new Error("Units do not match ('".concat(de.toString(),"' != '").concat(this.toString(),"')"));if(de.value!==null)throw new Error("Cannot convert to a unit with a value");if(this.value===null||this._isDerived()||this.units[0].unit.offset===de.units[0].unit.offset)de.value=ct(te);else{var Y=y._getNumberConverter(an(te)),ae=Y(this.units[0].unit.value),ce=Y(this.units[0].unit.offset),Ce=a(ae,ce),ye=Y(de.units[0].unit.value),J=Y(de.units[0].unit.offset),ne=a(ye,J);de.value=o(r(te,Ce),ne)}return de.fixPrefix=!0,de.skipAutomaticSimplification=!0,de},y.prototype.toNumber=function(Q){return x(this.toNumeric(Q))},y.prototype.toNumeric=function(Q){var te;return Q?te=this.to(Q):te=this.clone(),te._isDerived()||te.units.length===0?te._denormalize(te.value):te._denormalize(te.value,te.units[0].prefix.value)},y.prototype.toString=function(){return this.format()},y.prototype.toJSON=function(){return{mathjs:"Unit",value:this._denormalize(this.value),unit:this.formatUnits(),fixPrefix:this.fixPrefix}},y.fromJSON=function(Q){var te=new y(Q.value,Q.unit);return te.fixPrefix=Q.fixPrefix||!1,te},y.prototype.valueOf=y.prototype.toString,y.prototype.simplify=function(){var Q=this.clone(),te=[],de;for(var Y in X)if(Ke(X,Y)&&Q.hasBase(_[Y])){de=Y;break}if(de==="NONE")Q.units=[];else{var ae;if(de&&Ke(X,de)&&(ae=X[de]),ae)Q.units=[{unit:ae.unit,prefix:ae.prefix,power:1}];else{for(var ce=!1,Ce=0;Ce<R.length;Ce++){var ye=R[Ce];Math.abs(Q.dimensions[Ce]||0)>1e-12&&(Ke(X,ye)?te.push({unit:X[ye].unit,prefix:X[ye].prefix,power:Q.dimensions[Ce]||0}):ce=!0)}te.length<Q.units.length&&!ce&&(Q.units=te)}}return Q},y.prototype.toSI=function(){for(var Q=this.clone(),te=[],de=0;de<R.length;de++){var Y=R[de];if(Math.abs(Q.dimensions[de]||0)>1e-12)if(Ke(K.si,Y))te.push({unit:K.si[Y].unit,prefix:K.si[Y].prefix,power:Q.dimensions[de]||0});else throw new Error("Cannot express custom unit "+Y+" in SI units")}return Q.units=te,Q.fixPrefix=!0,Q.skipAutomaticSimplification=!0,Q},y.prototype.formatUnits=function(){for(var Q="",te="",de=0,Y=0,ae=0;ae<this.units.length;ae++)this.units[ae].power>0?(de++,Q+=" "+this.units[ae].prefix.name+this.units[ae].unit.name,Math.abs(this.units[ae].power-1)>1e-15&&(Q+="^"+this.units[ae].power)):this.units[ae].power<0&&Y++;if(Y>0)for(var ce=0;ce<this.units.length;ce++)this.units[ce].power<0&&(de>0?(te+=" "+this.units[ce].prefix.name+this.units[ce].unit.name,Math.abs(this.units[ce].power+1)>1e-15&&(te+="^"+-this.units[ce].power)):(te+=" "+this.units[ce].prefix.name+this.units[ce].unit.name,te+="^"+this.units[ce].power));Q=Q.substr(1),te=te.substr(1),de>1&&Y>0&&(Q="("+Q+")"),Y>1&&de>0&&(te="("+te+")");var Ce=Q;return de>0&&Y>0&&(Ce+=" / "),Ce+=te,Ce},y.prototype.format=function(Q){var te=this.skipAutomaticSimplification||this.value===null?this.clone():this.simplify(),de=!1;typeof te.value<"u"&&te.value!==null&&vo(te.value)&&(de=Math.abs(te.value.re)<1e-14);for(var Y in te.units)Ke(te.units,Y)&&te.units[Y].unit&&(te.units[Y].unit.name==="VA"&&de?te.units[Y].unit=V.VAR:te.units[Y].unit.name==="VAR"&&!de&&(te.units[Y].unit=V.VA));te.units.length===1&&!te.fixPrefix&&Math.abs(te.units[0].power-Math.round(te.units[0].power))<1e-14&&(te.units[0].prefix=te._bestPrefix());var ae=te._denormalize(te.value),ce=te.value!==null?p(ae,Q||{}):"",Ce=te.formatUnits();return te.value&&vo(te.value)&&(ce="("+ce+")"),Ce.length>0&&ce.length>0&&(ce+=" "),ce+=Ce,ce},y.prototype._bestPrefix=function(){if(this.units.length!==1)throw new Error("Can only compute the best prefix for single units with integer powers, like kg, s^2, N^-1, and so forth!");if(Math.abs(this.units[0].power-Math.round(this.units[0].power))>=1e-14)throw new Error("Can only compute the best prefix for single units with integer powers, like kg, s^2, N^-1, and so forth!");var Q=this.value!==null?s(this.value):0,te=s(this.units[0].unit.value),de=this.units[0].prefix;if(Q===0)return de;var Y=this.units[0].power,ae=Math.log(Q/Math.pow(de.value*te,Y))/Math.LN10-1.2;if(ae>-2.200001&&ae<1.800001)return de;ae=Math.abs(ae);var ce=this.units[0].unit.prefixes;for(var Ce in ce)if(Ke(ce,Ce)){var ye=ce[Ce];if(ye.scientific){var J=Math.abs(Math.log(Q/Math.pow(ye.value*te,Y))/Math.LN10-1.2);(J<ae||J===ae&&ye.name.length<de.name.length)&&(de=ye,ae=J)}}return de},y.prototype.splitUnit=function(Q){for(var te=this.clone(),de=[],Y=0;Y<Q.length&&(te=te.to(Q[Y]),Y!==Q.length-1);Y++){var ae=te.toNumeric(),ce=c(ae),Ce=void 0,ye=d(ce,ae);ye?Ce=ce:Ce=u(te.toNumeric());var J=new y(Ce,Q[Y].toString());de.push(J),te=o(te,J)}for(var ne=0,oe=0;oe<de.length;oe++)ne=r(ne,de[oe].value);return d(ne,this.value)&&(te.value=0),de.push(te),de};var N={NONE:{"":{name:"",value:1,scientific:!0}},SHORT:{"":{name:"",value:1,scientific:!0},da:{name:"da",value:10,scientific:!1},h:{name:"h",value:100,scientific:!1},k:{name:"k",value:1e3,scientific:!0},M:{name:"M",value:1e6,scientific:!0},G:{name:"G",value:1e9,scientific:!0},T:{name:"T",value:1e12,scientific:!0},P:{name:"P",value:1e15,scientific:!0},E:{name:"E",value:1e18,scientific:!0},Z:{name:"Z",value:1e21,scientific:!0},Y:{name:"Y",value:1e24,scientific:!0},d:{name:"d",value:.1,scientific:!1},c:{name:"c",value:.01,scientific:!1},m:{name:"m",value:.001,scientific:!0},u:{name:"u",value:1e-6,scientific:!0},n:{name:"n",value:1e-9,scientific:!0},p:{name:"p",value:1e-12,scientific:!0},f:{name:"f",value:1e-15,scientific:!0},a:{name:"a",value:1e-18,scientific:!0},z:{name:"z",value:1e-21,scientific:!0},y:{name:"y",value:1e-24,scientific:!0}},LONG:{"":{name:"",value:1,scientific:!0},deca:{name:"deca",value:10,scientific:!1},hecto:{name:"hecto",value:100,scientific:!1},kilo:{name:"kilo",value:1e3,scientific:!0},mega:{name:"mega",value:1e6,scientific:!0},giga:{name:"giga",value:1e9,scientific:!0},tera:{name:"tera",value:1e12,scientific:!0},peta:{name:"peta",value:1e15,scientific:!0},exa:{name:"exa",value:1e18,scientific:!0},zetta:{name:"zetta",value:1e21,scientific:!0},yotta:{name:"yotta",value:1e24,scientific:!0},deci:{name:"deci",value:.1,scientific:!1},centi:{name:"centi",value:.01,scientific:!1},milli:{name:"milli",value:.001,scientific:!0},micro:{name:"micro",value:1e-6,scientific:!0},nano:{name:"nano",value:1e-9,scientific:!0},pico:{name:"pico",value:1e-12,scientific:!0},femto:{name:"femto",value:1e-15,scientific:!0},atto:{name:"atto",value:1e-18,scientific:!0},zepto:{name:"zepto",value:1e-21,scientific:!0},yocto:{name:"yocto",value:1e-24,scientific:!0}},SQUARED:{"":{name:"",value:1,scientific:!0},da:{name:"da",value:100,scientific:!1},h:{name:"h",value:1e4,scientific:!1},k:{name:"k",value:1e6,scientific:!0},M:{name:"M",value:1e12,scientific:!0},G:{name:"G",value:1e18,scientific:!0},T:{name:"T",value:1e24,scientific:!0},P:{name:"P",value:1e30,scientific:!0},E:{name:"E",value:1e36,scientific:!0},Z:{name:"Z",value:1e42,scientific:!0},Y:{name:"Y",value:1e48,scientific:!0},d:{name:"d",value:.01,scientific:!1},c:{name:"c",value:1e-4,scientific:!1},m:{name:"m",value:1e-6,scientific:!0},u:{name:"u",value:1e-12,scientific:!0},n:{name:"n",value:1e-18,scientific:!0},p:{name:"p",value:1e-24,scientific:!0},f:{name:"f",value:1e-30,scientific:!0},a:{name:"a",value:1e-36,scientific:!0},z:{name:"z",value:1e-42,scientific:!0},y:{name:"y",value:1e-48,scientific:!0}},CUBIC:{"":{name:"",value:1,scientific:!0},da:{name:"da",value:1e3,scientific:!1},h:{name:"h",value:1e6,scientific:!1},k:{name:"k",value:1e9,scientific:!0},M:{name:"M",value:1e18,scientific:!0},G:{name:"G",value:1e27,scientific:!0},T:{name:"T",value:1e36,scientific:!0},P:{name:"P",value:1e45,scientific:!0},E:{name:"E",value:1e54,scientific:!0},Z:{name:"Z",value:1e63,scientific:!0},Y:{name:"Y",value:1e72,scientific:!0},d:{name:"d",value:.001,scientific:!1},c:{name:"c",value:1e-6,scientific:!1},m:{name:"m",value:1e-9,scientific:!0},u:{name:"u",value:1e-18,scientific:!0},n:{name:"n",value:1e-27,scientific:!0},p:{name:"p",value:1e-36,scientific:!0},f:{name:"f",value:1e-45,scientific:!0},a:{name:"a",value:1e-54,scientific:!0},z:{name:"z",value:1e-63,scientific:!0},y:{name:"y",value:1e-72,scientific:!0}},BINARY_SHORT_SI:{"":{name:"",value:1,scientific:!0},k:{name:"k",value:1e3,scientific:!0},M:{name:"M",value:1e6,scientific:!0},G:{name:"G",value:1e9,scientific:!0},T:{name:"T",value:1e12,scientific:!0},P:{name:"P",value:1e15,scientific:!0},E:{name:"E",value:1e18,scientific:!0},Z:{name:"Z",value:1e21,scientific:!0},Y:{name:"Y",value:1e24,scientific:!0}},BINARY_SHORT_IEC:{"":{name:"",value:1,scientific:!0},Ki:{name:"Ki",value:1024,scientific:!0},Mi:{name:"Mi",value:Math.pow(1024,2),scientific:!0},Gi:{name:"Gi",value:Math.pow(1024,3),scientific:!0},Ti:{name:"Ti",value:Math.pow(1024,4),scientific:!0},Pi:{name:"Pi",value:Math.pow(1024,5),scientific:!0},Ei:{name:"Ei",value:Math.pow(1024,6),scientific:!0},Zi:{name:"Zi",value:Math.pow(1024,7),scientific:!0},Yi:{name:"Yi",value:Math.pow(1024,8),scientific:!0}},BINARY_LONG_SI:{"":{name:"",value:1,scientific:!0},kilo:{name:"kilo",value:1e3,scientific:!0},mega:{name:"mega",value:1e6,scientific:!0},giga:{name:"giga",value:1e9,scientific:!0},tera:{name:"tera",value:1e12,scientific:!0},peta:{name:"peta",value:1e15,scientific:!0},exa:{name:"exa",value:1e18,scientific:!0},zetta:{name:"zetta",value:1e21,scientific:!0},yotta:{name:"yotta",value:1e24,scientific:!0}},BINARY_LONG_IEC:{"":{name:"",value:1,scientific:!0},kibi:{name:"kibi",value:1024,scientific:!0},mebi:{name:"mebi",value:Math.pow(1024,2),scientific:!0},gibi:{name:"gibi",value:Math.pow(1024,3),scientific:!0},tebi:{name:"tebi",value:Math.pow(1024,4),scientific:!0},pebi:{name:"pebi",value:Math.pow(1024,5),scientific:!0},exi:{name:"exi",value:Math.pow(1024,6),scientific:!0},zebi:{name:"zebi",value:Math.pow(1024,7),scientific:!0},yobi:{name:"yobi",value:Math.pow(1024,8),scientific:!0}},BTU:{"":{name:"",value:1,scientific:!0},MM:{name:"MM",value:1e6,scientific:!0}}};N.SHORTLONG=E({},N.SHORT,N.LONG),N.BINARY_SHORT=E({},N.BINARY_SHORT_SI,N.BINARY_SHORT_IEC),N.BINARY_LONG=E({},N.BINARY_LONG_SI,N.BINARY_LONG_IEC);var R=["MASS","LENGTH","TIME","CURRENT","TEMPERATURE","LUMINOUS_INTENSITY","AMOUNT_OF_SUBSTANCE","ANGLE","BIT"],_={NONE:{dimensions:[0,0,0,0,0,0,0,0,0]},MASS:{dimensions:[1,0,0,0,0,0,0,0,0]},LENGTH:{dimensions:[0,1,0,0,0,0,0,0,0]},TIME:{dimensions:[0,0,1,0,0,0,0,0,0]},CURRENT:{dimensions:[0,0,0,1,0,0,0,0,0]},TEMPERATURE:{dimensions:[0,0,0,0,1,0,0,0,0]},LUMINOUS_INTENSITY:{dimensions:[0,0,0,0,0,1,0,0,0]},AMOUNT_OF_SUBSTANCE:{dimensions:[0,0,0,0,0,0,1,0,0]},FORCE:{dimensions:[1,1,-2,0,0,0,0,0,0]},SURFACE:{dimensions:[0,2,0,0,0,0,0,0,0]},VOLUME:{dimensions:[0,3,0,0,0,0,0,0,0]},ENERGY:{dimensions:[1,2,-2,0,0,0,0,0,0]},POWER:{dimensions:[1,2,-3,0,0,0,0,0,0]},PRESSURE:{dimensions:[1,-1,-2,0,0,0,0,0,0]},ELECTRIC_CHARGE:{dimensions:[0,0,1,1,0,0,0,0,0]},ELECTRIC_CAPACITANCE:{dimensions:[-1,-2,4,2,0,0,0,0,0]},ELECTRIC_POTENTIAL:{dimensions:[1,2,-3,-1,0,0,0,0,0]},ELECTRIC_RESISTANCE:{dimensions:[1,2,-3,-2,0,0,0,0,0]},ELECTRIC_INDUCTANCE:{dimensions:[1,2,-2,-2,0,0,0,0,0]},ELECTRIC_CONDUCTANCE:{dimensions:[-1,-2,3,2,0,0,0,0,0]},MAGNETIC_FLUX:{dimensions:[1,2,-2,-1,0,0,0,0,0]},MAGNETIC_FLUX_DENSITY:{dimensions:[1,0,-2,-1,0,0,0,0,0]},FREQUENCY:{dimensions:[0,0,-1,0,0,0,0,0,0]},ANGLE:{dimensions:[0,0,0,0,0,0,0,1,0]},BIT:{dimensions:[0,0,0,0,0,0,0,0,1]}};for(var L in _)Ke(_,L)&&(_[L].key=L);var k={},H={name:"",base:k,value:1,offset:0,dimensions:R.map(Q=>0)},V={meter:{name:"meter",base:_.LENGTH,prefixes:N.LONG,value:1,offset:0},inch:{name:"inch",base:_.LENGTH,prefixes:N.NONE,value:.0254,offset:0},foot:{name:"foot",base:_.LENGTH,prefixes:N.NONE,value:.3048,offset:0},yard:{name:"yard",base:_.LENGTH,prefixes:N.NONE,value:.9144,offset:0},mile:{name:"mile",base:_.LENGTH,prefixes:N.NONE,value:1609.344,offset:0},link:{name:"link",base:_.LENGTH,prefixes:N.NONE,value:.201168,offset:0},rod:{name:"rod",base:_.LENGTH,prefixes:N.NONE,value:5.0292,offset:0},chain:{name:"chain",base:_.LENGTH,prefixes:N.NONE,value:20.1168,offset:0},angstrom:{name:"angstrom",base:_.LENGTH,prefixes:N.NONE,value:1e-10,offset:0},m:{name:"m",base:_.LENGTH,prefixes:N.SHORT,value:1,offset:0},in:{name:"in",base:_.LENGTH,prefixes:N.NONE,value:.0254,offset:0},ft:{name:"ft",base:_.LENGTH,prefixes:N.NONE,value:.3048,offset:0},yd:{name:"yd",base:_.LENGTH,prefixes:N.NONE,value:.9144,offset:0},mi:{name:"mi",base:_.LENGTH,prefixes:N.NONE,value:1609.344,offset:0},li:{name:"li",base:_.LENGTH,prefixes:N.NONE,value:.201168,offset:0},rd:{name:"rd",base:_.LENGTH,prefixes:N.NONE,value:5.02921,offset:0},ch:{name:"ch",base:_.LENGTH,prefixes:N.NONE,value:20.1168,offset:0},mil:{name:"mil",base:_.LENGTH,prefixes:N.NONE,value:254e-7,offset:0},m2:{name:"m2",base:_.SURFACE,prefixes:N.SQUARED,value:1,offset:0},sqin:{name:"sqin",base:_.SURFACE,prefixes:N.NONE,value:64516e-8,offset:0},sqft:{name:"sqft",base:_.SURFACE,prefixes:N.NONE,value:.09290304,offset:0},sqyd:{name:"sqyd",base:_.SURFACE,prefixes:N.NONE,value:.83612736,offset:0},sqmi:{name:"sqmi",base:_.SURFACE,prefixes:N.NONE,value:2589988110336e-6,offset:0},sqrd:{name:"sqrd",base:_.SURFACE,prefixes:N.NONE,value:25.29295,offset:0},sqch:{name:"sqch",base:_.SURFACE,prefixes:N.NONE,value:404.6873,offset:0},sqmil:{name:"sqmil",base:_.SURFACE,prefixes:N.NONE,value:64516e-14,offset:0},acre:{name:"acre",base:_.SURFACE,prefixes:N.NONE,value:4046.86,offset:0},hectare:{name:"hectare",base:_.SURFACE,prefixes:N.NONE,value:1e4,offset:0},m3:{name:"m3",base:_.VOLUME,prefixes:N.CUBIC,value:1,offset:0},L:{name:"L",base:_.VOLUME,prefixes:N.SHORT,value:.001,offset:0},l:{name:"l",base:_.VOLUME,prefixes:N.SHORT,value:.001,offset:0},litre:{name:"litre",base:_.VOLUME,prefixes:N.LONG,value:.001,offset:0},cuin:{name:"cuin",base:_.VOLUME,prefixes:N.NONE,value:16387064e-12,offset:0},cuft:{name:"cuft",base:_.VOLUME,prefixes:N.NONE,value:.028316846592,offset:0},cuyd:{name:"cuyd",base:_.VOLUME,prefixes:N.NONE,value:.764554857984,offset:0},teaspoon:{name:"teaspoon",base:_.VOLUME,prefixes:N.NONE,value:5e-6,offset:0},tablespoon:{name:"tablespoon",base:_.VOLUME,prefixes:N.NONE,value:15e-6,offset:0},drop:{name:"drop",base:_.VOLUME,prefixes:N.NONE,value:5e-8,offset:0},gtt:{name:"gtt",base:_.VOLUME,prefixes:N.NONE,value:5e-8,offset:0},minim:{name:"minim",base:_.VOLUME,prefixes:N.NONE,value:6161152e-14,offset:0},fluiddram:{name:"fluiddram",base:_.VOLUME,prefixes:N.NONE,value:36966911e-13,offset:0},fluidounce:{name:"fluidounce",base:_.VOLUME,prefixes:N.NONE,value:2957353e-11,offset:0},gill:{name:"gill",base:_.VOLUME,prefixes:N.NONE,value:.0001182941,offset:0},cc:{name:"cc",base:_.VOLUME,prefixes:N.NONE,value:1e-6,offset:0},cup:{name:"cup",base:_.VOLUME,prefixes:N.NONE,value:.0002365882,offset:0},pint:{name:"pint",base:_.VOLUME,prefixes:N.NONE,value:.0004731765,offset:0},quart:{name:"quart",base:_.VOLUME,prefixes:N.NONE,value:.0009463529,offset:0},gallon:{name:"gallon",base:_.VOLUME,prefixes:N.NONE,value:.003785412,offset:0},beerbarrel:{name:"beerbarrel",base:_.VOLUME,prefixes:N.NONE,value:.1173478,offset:0},oilbarrel:{name:"oilbarrel",base:_.VOLUME,prefixes:N.NONE,value:.1589873,offset:0},hogshead:{name:"hogshead",base:_.VOLUME,prefixes:N.NONE,value:.238481,offset:0},fldr:{name:"fldr",base:_.VOLUME,prefixes:N.NONE,value:36966911e-13,offset:0},floz:{name:"floz",base:_.VOLUME,prefixes:N.NONE,value:2957353e-11,offset:0},gi:{name:"gi",base:_.VOLUME,prefixes:N.NONE,value:.0001182941,offset:0},cp:{name:"cp",base:_.VOLUME,prefixes:N.NONE,value:.0002365882,offset:0},pt:{name:"pt",base:_.VOLUME,prefixes:N.NONE,value:.0004731765,offset:0},qt:{name:"qt",base:_.VOLUME,prefixes:N.NONE,value:.0009463529,offset:0},gal:{name:"gal",base:_.VOLUME,prefixes:N.NONE,value:.003785412,offset:0},bbl:{name:"bbl",base:_.VOLUME,prefixes:N.NONE,value:.1173478,offset:0},obl:{name:"obl",base:_.VOLUME,prefixes:N.NONE,value:.1589873,offset:0},g:{name:"g",base:_.MASS,prefixes:N.SHORT,value:.001,offset:0},gram:{name:"gram",base:_.MASS,prefixes:N.LONG,value:.001,offset:0},ton:{name:"ton",base:_.MASS,prefixes:N.SHORT,value:907.18474,offset:0},t:{name:"t",base:_.MASS,prefixes:N.SHORT,value:1e3,offset:0},tonne:{name:"tonne",base:_.MASS,prefixes:N.LONG,value:1e3,offset:0},grain:{name:"grain",base:_.MASS,prefixes:N.NONE,value:6479891e-11,offset:0},dram:{name:"dram",base:_.MASS,prefixes:N.NONE,value:.0017718451953125,offset:0},ounce:{name:"ounce",base:_.MASS,prefixes:N.NONE,value:.028349523125,offset:0},poundmass:{name:"poundmass",base:_.MASS,prefixes:N.NONE,value:.45359237,offset:0},hundredweight:{name:"hundredweight",base:_.MASS,prefixes:N.NONE,value:45.359237,offset:0},stick:{name:"stick",base:_.MASS,prefixes:N.NONE,value:.115,offset:0},stone:{name:"stone",base:_.MASS,prefixes:N.NONE,value:6.35029318,offset:0},gr:{name:"gr",base:_.MASS,prefixes:N.NONE,value:6479891e-11,offset:0},dr:{name:"dr",base:_.MASS,prefixes:N.NONE,value:.0017718451953125,offset:0},oz:{name:"oz",base:_.MASS,prefixes:N.NONE,value:.028349523125,offset:0},lbm:{name:"lbm",base:_.MASS,prefixes:N.NONE,value:.45359237,offset:0},cwt:{name:"cwt",base:_.MASS,prefixes:N.NONE,value:45.359237,offset:0},s:{name:"s",base:_.TIME,prefixes:N.SHORT,value:1,offset:0},min:{name:"min",base:_.TIME,prefixes:N.NONE,value:60,offset:0},h:{name:"h",base:_.TIME,prefixes:N.NONE,value:3600,offset:0},second:{name:"second",base:_.TIME,prefixes:N.LONG,value:1,offset:0},sec:{name:"sec",base:_.TIME,prefixes:N.LONG,value:1,offset:0},minute:{name:"minute",base:_.TIME,prefixes:N.NONE,value:60,offset:0},hour:{name:"hour",base:_.TIME,prefixes:N.NONE,value:3600,offset:0},day:{name:"day",base:_.TIME,prefixes:N.NONE,value:86400,offset:0},week:{name:"week",base:_.TIME,prefixes:N.NONE,value:7*86400,offset:0},month:{name:"month",base:_.TIME,prefixes:N.NONE,value:2629800,offset:0},year:{name:"year",base:_.TIME,prefixes:N.NONE,value:31557600,offset:0},decade:{name:"decade",base:_.TIME,prefixes:N.NONE,value:315576e3,offset:0},century:{name:"century",base:_.TIME,prefixes:N.NONE,value:315576e4,offset:0},millennium:{name:"millennium",base:_.TIME,prefixes:N.NONE,value:315576e5,offset:0},hertz:{name:"Hertz",base:_.FREQUENCY,prefixes:N.LONG,value:1,offset:0,reciprocal:!0},Hz:{name:"Hz",base:_.FREQUENCY,prefixes:N.SHORT,value:1,offset:0,reciprocal:!0},rad:{name:"rad",base:_.ANGLE,prefixes:N.SHORT,value:1,offset:0},radian:{name:"radian",base:_.ANGLE,prefixes:N.LONG,value:1,offset:0},deg:{name:"deg",base:_.ANGLE,prefixes:N.SHORT,value:null,offset:0},degree:{name:"degree",base:_.ANGLE,prefixes:N.LONG,value:null,offset:0},grad:{name:"grad",base:_.ANGLE,prefixes:N.SHORT,value:null,offset:0},gradian:{name:"gradian",base:_.ANGLE,prefixes:N.LONG,value:null,offset:0},cycle:{name:"cycle",base:_.ANGLE,prefixes:N.NONE,value:null,offset:0},arcsec:{name:"arcsec",base:_.ANGLE,prefixes:N.NONE,value:null,offset:0},arcmin:{name:"arcmin",base:_.ANGLE,prefixes:N.NONE,value:null,offset:0},A:{name:"A",base:_.CURRENT,prefixes:N.SHORT,value:1,offset:0},ampere:{name:"ampere",base:_.CURRENT,prefixes:N.LONG,value:1,offset:0},K:{name:"K",base:_.TEMPERATURE,prefixes:N.SHORT,value:1,offset:0},degC:{name:"degC",base:_.TEMPERATURE,prefixes:N.SHORT,value:1,offset:273.15},degF:{name:"degF",base:_.TEMPERATURE,prefixes:N.SHORT,value:1/1.8,offset:459.67},degR:{name:"degR",base:_.TEMPERATURE,prefixes:N.SHORT,value:1/1.8,offset:0},kelvin:{name:"kelvin",base:_.TEMPERATURE,prefixes:N.LONG,value:1,offset:0},celsius:{name:"celsius",base:_.TEMPERATURE,prefixes:N.LONG,value:1,offset:273.15},fahrenheit:{name:"fahrenheit",base:_.TEMPERATURE,prefixes:N.LONG,value:1/1.8,offset:459.67},rankine:{name:"rankine",base:_.TEMPERATURE,prefixes:N.LONG,value:1/1.8,offset:0},mol:{name:"mol",base:_.AMOUNT_OF_SUBSTANCE,prefixes:N.SHORT,value:1,offset:0},mole:{name:"mole",base:_.AMOUNT_OF_SUBSTANCE,prefixes:N.LONG,value:1,offset:0},cd:{name:"cd",base:_.LUMINOUS_INTENSITY,prefixes:N.SHORT,value:1,offset:0},candela:{name:"candela",base:_.LUMINOUS_INTENSITY,prefixes:N.LONG,value:1,offset:0},N:{name:"N",base:_.FORCE,prefixes:N.SHORT,value:1,offset:0},newton:{name:"newton",base:_.FORCE,prefixes:N.LONG,value:1,offset:0},dyn:{name:"dyn",base:_.FORCE,prefixes:N.SHORT,value:1e-5,offset:0},dyne:{name:"dyne",base:_.FORCE,prefixes:N.LONG,value:1e-5,offset:0},lbf:{name:"lbf",base:_.FORCE,prefixes:N.NONE,value:4.4482216152605,offset:0},poundforce:{name:"poundforce",base:_.FORCE,prefixes:N.NONE,value:4.4482216152605,offset:0},kip:{name:"kip",base:_.FORCE,prefixes:N.LONG,value:4448.2216,offset:0},kilogramforce:{name:"kilogramforce",base:_.FORCE,prefixes:N.NONE,value:9.80665,offset:0},J:{name:"J",base:_.ENERGY,prefixes:N.SHORT,value:1,offset:0},joule:{name:"joule",base:_.ENERGY,prefixes:N.SHORT,value:1,offset:0},erg:{name:"erg",base:_.ENERGY,prefixes:N.NONE,value:1e-7,offset:0},Wh:{name:"Wh",base:_.ENERGY,prefixes:N.SHORT,value:3600,offset:0},BTU:{name:"BTU",base:_.ENERGY,prefixes:N.BTU,value:1055.05585262,offset:0},eV:{name:"eV",base:_.ENERGY,prefixes:N.SHORT,value:1602176565e-28,offset:0},electronvolt:{name:"electronvolt",base:_.ENERGY,prefixes:N.LONG,value:1602176565e-28,offset:0},W:{name:"W",base:_.POWER,prefixes:N.SHORT,value:1,offset:0},watt:{name:"watt",base:_.POWER,prefixes:N.LONG,value:1,offset:0},hp:{name:"hp",base:_.POWER,prefixes:N.NONE,value:745.6998715386,offset:0},VAR:{name:"VAR",base:_.POWER,prefixes:N.SHORT,value:m.I,offset:0},VA:{name:"VA",base:_.POWER,prefixes:N.SHORT,value:1,offset:0},Pa:{name:"Pa",base:_.PRESSURE,prefixes:N.SHORT,value:1,offset:0},psi:{name:"psi",base:_.PRESSURE,prefixes:N.NONE,value:6894.75729276459,offset:0},atm:{name:"atm",base:_.PRESSURE,prefixes:N.NONE,value:101325,offset:0},bar:{name:"bar",base:_.PRESSURE,prefixes:N.SHORTLONG,value:1e5,offset:0},torr:{name:"torr",base:_.PRESSURE,prefixes:N.NONE,value:133.322,offset:0},mmHg:{name:"mmHg",base:_.PRESSURE,prefixes:N.NONE,value:133.322,offset:0},mmH2O:{name:"mmH2O",base:_.PRESSURE,prefixes:N.NONE,value:9.80665,offset:0},cmH2O:{name:"cmH2O",base:_.PRESSURE,prefixes:N.NONE,value:98.0665,offset:0},coulomb:{name:"coulomb",base:_.ELECTRIC_CHARGE,prefixes:N.LONG,value:1,offset:0},C:{name:"C",base:_.ELECTRIC_CHARGE,prefixes:N.SHORT,value:1,offset:0},farad:{name:"farad",base:_.ELECTRIC_CAPACITANCE,prefixes:N.LONG,value:1,offset:0},F:{name:"F",base:_.ELECTRIC_CAPACITANCE,prefixes:N.SHORT,value:1,offset:0},volt:{name:"volt",base:_.ELECTRIC_POTENTIAL,prefixes:N.LONG,value:1,offset:0},V:{name:"V",base:_.ELECTRIC_POTENTIAL,prefixes:N.SHORT,value:1,offset:0},ohm:{name:"ohm",base:_.ELECTRIC_RESISTANCE,prefixes:N.SHORTLONG,value:1,offset:0},henry:{name:"henry",base:_.ELECTRIC_INDUCTANCE,prefixes:N.LONG,value:1,offset:0},H:{name:"H",base:_.ELECTRIC_INDUCTANCE,prefixes:N.SHORT,value:1,offset:0},siemens:{name:"siemens",base:_.ELECTRIC_CONDUCTANCE,prefixes:N.LONG,value:1,offset:0},S:{name:"S",base:_.ELECTRIC_CONDUCTANCE,prefixes:N.SHORT,value:1,offset:0},weber:{name:"weber",base:_.MAGNETIC_FLUX,prefixes:N.LONG,value:1,offset:0},Wb:{name:"Wb",base:_.MAGNETIC_FLUX,prefixes:N.SHORT,value:1,offset:0},tesla:{name:"tesla",base:_.MAGNETIC_FLUX_DENSITY,prefixes:N.LONG,value:1,offset:0},T:{name:"T",base:_.MAGNETIC_FLUX_DENSITY,prefixes:N.SHORT,value:1,offset:0},b:{name:"b",base:_.BIT,prefixes:N.BINARY_SHORT,value:1,offset:0},bits:{name:"bits",base:_.BIT,prefixes:N.BINARY_LONG,value:1,offset:0},B:{name:"B",base:_.BIT,prefixes:N.BINARY_SHORT,value:8,offset:0},bytes:{name:"bytes",base:_.BIT,prefixes:N.BINARY_LONG,value:8,offset:0}},U={meters:"meter",inches:"inch",feet:"foot",yards:"yard",miles:"mile",links:"link",rods:"rod",chains:"chain",angstroms:"angstrom",lt:"l",litres:"litre",liter:"litre",liters:"litre",teaspoons:"teaspoon",tablespoons:"tablespoon",minims:"minim",fluiddrams:"fluiddram",fluidounces:"fluidounce",gills:"gill",cups:"cup",pints:"pint",quarts:"quart",gallons:"gallon",beerbarrels:"beerbarrel",oilbarrels:"oilbarrel",hogsheads:"hogshead",gtts:"gtt",grams:"gram",tons:"ton",tonnes:"tonne",grains:"grain",drams:"dram",ounces:"ounce",poundmasses:"poundmass",hundredweights:"hundredweight",sticks:"stick",lb:"lbm",lbs:"lbm",kips:"kip",kgf:"kilogramforce",acres:"acre",hectares:"hectare",sqfeet:"sqft",sqyard:"sqyd",sqmile:"sqmi",sqmiles:"sqmi",mmhg:"mmHg",mmh2o:"mmH2O",cmh2o:"cmH2O",seconds:"second",secs:"second",minutes:"minute",mins:"minute",hours:"hour",hr:"hour",hrs:"hour",days:"day",weeks:"week",months:"month",years:"year",decades:"decade",centuries:"century",millennia:"millennium",hertz:"hertz",radians:"radian",degrees:"degree",gradians:"gradian",cycles:"cycle",arcsecond:"arcsec",arcseconds:"arcsec",arcminute:"arcmin",arcminutes:"arcmin",BTUs:"BTU",watts:"watt",joules:"joule",amperes:"ampere",amps:"ampere",amp:"ampere",coulombs:"coulomb",volts:"volt",ohms:"ohm",farads:"farad",webers:"weber",teslas:"tesla",electronvolts:"electronvolt",moles:"mole",bit:"bits",byte:"bytes"};function q(Q){if(Q.number==="BigNumber"){var te=Qw(h);V.rad.value=new h(1),V.deg.value=te.div(180),V.grad.value=te.div(200),V.cycle.value=te.times(2),V.arcsec.value=te.div(648e3),V.arcmin.value=te.div(10800)}else V.rad.value=1,V.deg.value=Math.PI/180,V.grad.value=Math.PI/200,V.cycle.value=Math.PI*2,V.arcsec.value=Math.PI/648e3,V.arcmin.value=Math.PI/10800;V.radian.value=V.rad.value,V.degree.value=V.deg.value,V.gradian.value=V.grad.value}q(n),t&&t("config",function(Q,te){Q.number!==te.number&&q(Q)});var K={si:{NONE:{unit:H,prefix:N.NONE[""]},LENGTH:{unit:V.m,prefix:N.SHORT[""]},MASS:{unit:V.g,prefix:N.SHORT.k},TIME:{unit:V.s,prefix:N.SHORT[""]},CURRENT:{unit:V.A,prefix:N.SHORT[""]},TEMPERATURE:{unit:V.K,prefix:N.SHORT[""]},LUMINOUS_INTENSITY:{unit:V.cd,prefix:N.SHORT[""]},AMOUNT_OF_SUBSTANCE:{unit:V.mol,prefix:N.SHORT[""]},ANGLE:{unit:V.rad,prefix:N.SHORT[""]},BIT:{unit:V.bits,prefix:N.SHORT[""]},FORCE:{unit:V.N,prefix:N.SHORT[""]},ENERGY:{unit:V.J,prefix:N.SHORT[""]},POWER:{unit:V.W,prefix:N.SHORT[""]},PRESSURE:{unit:V.Pa,prefix:N.SHORT[""]},ELECTRIC_CHARGE:{unit:V.C,prefix:N.SHORT[""]},ELECTRIC_CAPACITANCE:{unit:V.F,prefix:N.SHORT[""]},ELECTRIC_POTENTIAL:{unit:V.V,prefix:N.SHORT[""]},ELECTRIC_RESISTANCE:{unit:V.ohm,prefix:N.SHORT[""]},ELECTRIC_INDUCTANCE:{unit:V.H,prefix:N.SHORT[""]},ELECTRIC_CONDUCTANCE:{unit:V.S,prefix:N.SHORT[""]},MAGNETIC_FLUX:{unit:V.Wb,prefix:N.SHORT[""]},MAGNETIC_FLUX_DENSITY:{unit:V.T,prefix:N.SHORT[""]},FREQUENCY:{unit:V.Hz,prefix:N.SHORT[""]}}};K.cgs=JSON.parse(JSON.stringify(K.si)),K.cgs.LENGTH={unit:V.m,prefix:N.SHORT.c},K.cgs.MASS={unit:V.g,prefix:N.SHORT[""]},K.cgs.FORCE={unit:V.dyn,prefix:N.SHORT[""]},K.cgs.ENERGY={unit:V.erg,prefix:N.NONE[""]},K.us=JSON.parse(JSON.stringify(K.si)),K.us.LENGTH={unit:V.ft,prefix:N.NONE[""]},K.us.MASS={unit:V.lbm,prefix:N.NONE[""]},K.us.TEMPERATURE={unit:V.degF,prefix:N.NONE[""]},K.us.FORCE={unit:V.lbf,prefix:N.NONE[""]},K.us.ENERGY={unit:V.BTU,prefix:N.BTU[""]},K.us.POWER={unit:V.hp,prefix:N.NONE[""]},K.us.PRESSURE={unit:V.psi,prefix:N.NONE[""]},K.auto=JSON.parse(JSON.stringify(K.si));var X=K.auto;y.setUnitSystem=function(Q){if(Ke(K,Q))X=K[Q];else throw new Error("Unit system "+Q+" does not exist. Choices are: "+Object.keys(K).join(", "))},y.getUnitSystem=function(){for(var Q in K)if(Ke(K,Q)&&K[Q]===X)return Q},y.typeConverters={BigNumber:function(te){return new h(te+"")},Fraction:function(te){return new g(te)},Complex:function(te){return te},number:function(te){return te}},y.prototype._numberConverter=function(){var Q=y.typeConverters[this.valueType()];if(Q)return Q;throw new TypeError('Unsupported Unit value type "'+this.valueType()+'"')},y._getNumberConverter=function(Q){if(!y.typeConverters[Q])throw new TypeError('Unsupported type "'+Q+'"');return y.typeConverters[Q]};for(var re in V)if(Ke(V,re)){var ee=V[re];ee.dimensions=ee.base.dimensions}for(var G in U)if(Ke(U,G)){var le=V[U[G]],ue={};for(var me in le)Ke(le,me)&&(ue[me]=le[me]);ue.name=G,V[G]=ue}y.isValidAlpha=function(te){return/^[a-zA-Z]$/.test(te)};function Se(Q){for(var te=0;te<Q.length;te++){if(S=Q.charAt(te),te===0&&!y.isValidAlpha(S))throw new Error('Invalid unit name (must begin with alpha character): "'+Q+'"');if(te>0&&!(y.isValidAlpha(S)||O(S)))throw new Error('Invalid unit name (only alphanumeric characters are allowed): "'+Q+'"')}}return y.createUnit=function(Q,te){if(typeof Q!="object")throw new TypeError("createUnit expects first parameter to be of type 'Object'");if(te&&te.override){for(var de in Q)if(Ke(Q,de)&&y.deleteUnit(de),Q[de].aliases)for(var Y=0;Y<Q[de].aliases.length;Y++)y.deleteUnit(Q[de].aliases[Y])}var ae;for(var ce in Q)Ke(Q,ce)&&(ae=y.createUnitSingle(ce,Q[ce]));return ae},y.createUnitSingle=function(Q,te){if((typeof te>"u"||te===null)&&(te={}),typeof Q!="string")throw new TypeError("createUnitSingle expects first parameter to be of type 'string'");if(Ke(V,Q))throw new Error('Cannot create unit "'+Q+'": a unit with that name already exists');Se(Q);var de=null,Y=[],ae=0,ce,Ce,ye;if(te&&te.type==="Unit")de=te.clone();else if(typeof te=="string")te!==""&&(ce=te);else if(typeof te=="object")ce=te.definition,Ce=te.prefixes,ae=te.offset,ye=te.baseName,te.aliases&&(Y=te.aliases.valueOf());else throw new TypeError('Cannot create unit "'+Q+'" from "'+te.toString()+'": expecting "string" or "Unit" or "Object"');if(Y){for(var J=0;J<Y.length;J++)if(Ke(V,Y[J]))throw new Error('Cannot create alias "'+Y[J]+'": a unit with that name already exists')}if(ce&&typeof ce=="string"&&!de)try{de=y.parse(ce,{allowNoUnits:!0})}catch(je){throw je.message='Could not create unit "'+Q+'" from "'+ce+'": '+je.message,je}else ce&&ce.type==="Unit"&&(de=ce.clone());Y=Y||[],ae=ae||0,Ce&&Ce.toUpperCase?Ce=N[Ce.toUpperCase()]||N.NONE:Ce=N.NONE;var ne={};if(de){ne={name:Q,value:de.value,dimensions:de.dimensions.slice(0),prefixes:Ce,offset:ae};var we=!1;for(var $e in _)if(Ke(_,$e)){for(var Ae=!0,xe=0;xe<R.length;xe++)if(Math.abs((ne.dimensions[xe]||0)-(_[$e].dimensions[xe]||0))>1e-12){Ae=!1;break}if(Ae){we=!0,ne.base=_[$e];break}}if(!we){ye=ye||Q+"_STUFF";var Ee={dimensions:de.dimensions.slice(0)};Ee.key=ye,_[ye]=Ee,X[ye]={unit:ne,prefix:N.NONE[""]},ne.base=_[ye]}}else{if(ye=ye||Q+"_STUFF",R.indexOf(ye)>=0)throw new Error('Cannot create new base unit "'+Q+'": a base unit with that name already exists (and cannot be overridden)');R.push(ye);for(var oe in _)Ke(_,oe)&&(_[oe].dimensions[R.length-1]=0);for(var ie={dimensions:[]},ve=0;ve<R.length;ve++)ie.dimensions[ve]=0;ie.dimensions[R.length-1]=1,ie.key=ye,_[ye]=ie,ne={name:Q,value:1,dimensions:_[ye].dimensions.slice(0),prefixes:Ce,offset:ae,base:_[ye]},X[ye]={unit:ne,prefix:N.NONE[""]}}y.UNITS[Q]=ne;for(var Te=0;Te<Y.length;Te++){var Me=Y[Te],ze={};for(var Be in ne)Ke(ne,Be)&&(ze[Be]=ne[Be]);ze.name=Me,y.UNITS[Me]=ze}return delete P.cache,new y(null,Q)},y.deleteUnit=function(Q){delete y.UNITS[Q]},y.PREFIXES=N,y.BASE_DIMENSIONS=R,y.BASE_UNITS=_,y.UNIT_SYSTEMS=K,y.UNITS=V,y},{isClass:!0}),MA="unit",JEe=["typed","Unit"],QEe=se(MA,JEe,e=>{var{typed:t,Unit:n}=e;return t(MA,{Unit:function(o){return o.clone()},string:function(o){return n.isValuelessUnit(o)?new n(null,o):n.parse(o,{allowNoUnits:!0})},"number | BigNumber | Fraction | Complex, string | Unit":function(o,a){return new n(o,a)},"number | BigNumber | Fraction":function(o){return new n(o)},"Array | Matrix":t.referToSelf(r=>o=>Tt(o,r))})}),NA="sparse",e4e=["typed","SparseMatrix"],t4e=se(NA,e4e,e=>{var{typed:t,SparseMatrix:n}=e;return t(NA,{"":function(){return new n([])},string:function(o){return new n([],o)},"Array | Matrix":function(o){return new n(o)},"Array | Matrix, string":function(o,a){return new n(o,a)}})}),PA="createUnit",n4e=["typed","Unit"],r4e=se(PA,n4e,e=>{var{typed:t,Unit:n}=e;return t(PA,{"Object, Object":function(o,a){return n.createUnit(o,a)},Object:function(o){return n.createUnit(o,{})},"string, Unit | string | Object, Object":function(o,a,i){var l={};return l[o]=a,n.createUnit(l,i)},"string, Unit | string | Object":function(o,a){var i={};return i[o]=a,n.createUnit(i,{})},string:function(o){var a={};return a[o]={},n.createUnit(a,{})}})}),IA="acos",o4e=["typed","config","Complex"],a4e=se(IA,o4e,e=>{var{typed:t,config:n,Complex:r}=e;return t(IA,{number:function(a){return a>=-1&&a<=1||n.predictable?Math.acos(a):new r(a,0).acos()},Complex:function(a){return a.acos()},BigNumber:function(a){return a.acos()}})}),_A="acosh",i4e=["typed","config","Complex"],l4e=se(_A,i4e,e=>{var{typed:t,config:n,Complex:r}=e;return t(_A,{number:function(a){return a>=1||n.predictable?U7(a):a<=-1?new r(Math.log(Math.sqrt(a*a-1)-a),Math.PI):new r(a,0).acosh()},Complex:function(a){return a.acosh()},BigNumber:function(a){return a.acosh()}})}),BA="acot",s4e=["typed","BigNumber"],u4e=se(BA,s4e,e=>{var{typed:t,BigNumber:n}=e;return t(BA,{number:K7,Complex:function(o){return o.acot()},BigNumber:function(o){return new n(1).div(o).atan()}})}),FA="acoth",c4e=["typed","config","Complex","BigNumber"],d4e=se(FA,c4e,e=>{var{typed:t,config:n,Complex:r,BigNumber:o}=e;return t(FA,{number:function(i){return i>=1||i<=-1||n.predictable?q7(i):new r(i,0).acoth()},Complex:function(i){return i.acoth()},BigNumber:function(i){return new o(1).div(i).atanh()}})}),RA="acsc",f4e=["typed","config","Complex","BigNumber"],p4e=se(RA,f4e,e=>{var{typed:t,config:n,Complex:r,BigNumber:o}=e;return t(RA,{number:function(i){return i<=-1||i>=1||n.predictable?G7(i):new r(i,0).acsc()},Complex:function(i){return i.acsc()},BigNumber:function(i){return new o(1).div(i).asin()}})}),zA="acsch",m4e=["typed","BigNumber"],v4e=se(zA,m4e,e=>{var{typed:t,BigNumber:n}=e;return t(zA,{number:X7,Complex:function(o){return o.acsch()},BigNumber:function(o){return new n(1).div(o).asinh()}})}),LA="asec",h4e=["typed","config","Complex","BigNumber"],g4e=se(LA,h4e,e=>{var{typed:t,config:n,Complex:r,BigNumber:o}=e;return t(LA,{number:function(i){return i<=-1||i>=1||n.predictable?Y7(i):new r(i,0).asec()},Complex:function(i){return i.asec()},BigNumber:function(i){return new o(1).div(i).acos()}})}),kA="asech",y4e=["typed","config","Complex","BigNumber"],b4e=se(kA,y4e,e=>{var{typed:t,config:n,Complex:r,BigNumber:o}=e;return t(kA,{number:function(i){if(i<=1&&i>=-1||n.predictable){var l=1/i;if(l>0||n.predictable)return Z7(i);var s=Math.sqrt(l*l-1);return new r(Math.log(s-l),Math.PI)}return new r(i,0).asech()},Complex:function(i){return i.asech()},BigNumber:function(i){return new o(1).div(i).acosh()}})}),HA="asin",x4e=["typed","config","Complex"],w4e=se(HA,x4e,e=>{var{typed:t,config:n,Complex:r}=e;return t(HA,{number:function(a){return a>=-1&&a<=1||n.predictable?Math.asin(a):new r(a,0).asin()},Complex:function(a){return a.asin()},BigNumber:function(a){return a.asin()}})}),S4e="asinh",C4e=["typed"],$4e=se(S4e,C4e,e=>{var{typed:t}=e;return t("asinh",{number:J7,Complex:function(r){return r.asinh()},BigNumber:function(r){return r.asinh()}})}),E4e="atan",D4e=["typed"],A4e=se(E4e,D4e,e=>{var{typed:t}=e;return t("atan",{number:function(r){return Math.atan(r)},Complex:function(r){return r.atan()},BigNumber:function(r){return r.atan()}})}),jA="atan2",O4e=["typed","matrix","equalScalar","BigNumber","DenseMatrix","concat"],T4e=se(jA,O4e,e=>{var{typed:t,matrix:n,equalScalar:r,BigNumber:o,DenseMatrix:a,concat:i}=e,l=Ao({typed:t,equalScalar:r}),s=fr({typed:t}),u=fB({typed:t,equalScalar:r}),c=Gn({typed:t,equalScalar:r}),d=zn({typed:t,DenseMatrix:a}),f=Qt({typed:t,matrix:n,concat:i});return t(jA,{"number, number":Math.atan2,"BigNumber, BigNumber":(p,v)=>o.atan2(p,v)},f({scalar:"number | BigNumber",SS:u,DS:s,SD:l,Ss:c,sS:d}))}),VA="atanh",M4e=["typed","config","Complex"],N4e=se(VA,M4e,e=>{var{typed:t,config:n,Complex:r}=e;return t(VA,{number:function(a){return a<=1&&a>=-1||n.predictable?Q7(a):new r(a,0).atanh()},Complex:function(a){return a.atanh()},BigNumber:function(a){return a.atanh()}})}),Vs=se("trigUnit",["typed"],e=>{var{typed:t}=e;return{Unit:t.referToSelf(n=>r=>{if(!r.hasBase(r.constructor.BASE_UNITS.ANGLE))throw new TypeError("Unit in function cot is no angle");return t.find(n,r.valueType())(r.value)})}}),WA="cos",P4e=["typed"],I4e=se(WA,P4e,e=>{var{typed:t}=e,n=Vs({typed:t});return t(WA,{number:Math.cos,"Complex | BigNumber":r=>r.cos()},n)}),UA="cosh",_4e=["typed"],B4e=se(UA,_4e,e=>{var{typed:t}=e;return t(UA,{number:L1e,"Complex | BigNumber":n=>n.cosh()})}),KA="cot",F4e=["typed","BigNumber"],R4e=se(KA,F4e,e=>{var{typed:t,BigNumber:n}=e,r=Vs({typed:t});return t(KA,{number:eB,Complex:o=>o.cot(),BigNumber:o=>new n(1).div(o.tan())},r)}),qA="coth",z4e=["typed","BigNumber"],L4e=se(qA,z4e,e=>{var{typed:t,BigNumber:n}=e;return t(qA,{number:tB,Complex:r=>r.coth(),BigNumber:r=>new n(1).div(r.tanh())})}),GA="csc",k4e=["typed","BigNumber"],H4e=se(GA,k4e,e=>{var{typed:t,BigNumber:n}=e,r=Vs({typed:t});return t(GA,{number:nB,Complex:o=>o.csc(),BigNumber:o=>new n(1).div(o.sin())},r)}),XA="csch",j4e=["typed","BigNumber"],V4e=se(XA,j4e,e=>{var{typed:t,BigNumber:n}=e;return t(XA,{number:rB,Complex:r=>r.csch(),BigNumber:r=>new n(1).div(r.sinh())})}),YA="sec",W4e=["typed","BigNumber"],U4e=se(YA,W4e,e=>{var{typed:t,BigNumber:n}=e,r=Vs({typed:t});return t(YA,{number:oB,Complex:o=>o.sec(),BigNumber:o=>new n(1).div(o.cos())},r)}),ZA="sech",K4e=["typed","BigNumber"],q4e=se(ZA,K4e,e=>{var{typed:t,BigNumber:n}=e;return t(ZA,{number:aB,Complex:r=>r.sech(),BigNumber:r=>new n(1).div(r.cosh())})}),JA="sin",G4e=["typed"],X4e=se(JA,G4e,e=>{var{typed:t}=e,n=Vs({typed:t});return t(JA,{number:Math.sin,"Complex | BigNumber":r=>r.sin()},n)}),QA="sinh",Y4e=["typed"],Z4e=se(QA,Y4e,e=>{var{typed:t}=e;return t(QA,{number:iB,"Complex | BigNumber":n=>n.sinh()})}),eO="tan",J4e=["typed"],Q4e=se(eO,J4e,e=>{var{typed:t}=e,n=Vs({typed:t});return t(eO,{number:Math.tan,"Complex | BigNumber":r=>r.tan()},n)}),eDe="tanh",tDe=["typed"],nDe=se(eDe,tDe,e=>{var{typed:t}=e;return t("tanh",{number:H1e,"Complex | BigNumber":n=>n.tanh()})}),tO="setCartesian",rDe=["typed","size","subset","compareNatural","Index","DenseMatrix"],oDe=se(tO,rDe,e=>{var{typed:t,size:n,subset:r,compareNatural:o,Index:a,DenseMatrix:i}=e;return t(tO,{"Array | Matrix, Array | Matrix":function(s,u){var c=[];if(r(n(s),new a(0))!==0&&r(n(u),new a(0))!==0){var d=Ht(Array.isArray(s)?s:s.toArray()).sort(o),f=Ht(Array.isArray(u)?u:u.toArray()).sort(o);c=[];for(var p=0;p<d.length;p++)for(var v=0;v<f.length;v++)c.push([d[p],f[v]])}return Array.isArray(s)&&Array.isArray(u)?c:new i(c)}})}),nO="setDifference",aDe=["typed","size","subset","compareNatural","Index","DenseMatrix"],iDe=se(nO,aDe,e=>{var{typed:t,size:n,subset:r,compareNatural:o,Index:a,DenseMatrix:i}=e;return t(nO,{"Array | Matrix, Array | Matrix":function(s,u){var c;if(r(n(s),new a(0))===0)c=[];else{if(r(n(u),new a(0))===0)return Ht(s.toArray());var d=bs(Ht(Array.isArray(s)?s:s.toArray()).sort(o)),f=bs(Ht(Array.isArray(u)?u:u.toArray()).sort(o));c=[];for(var p,v=0;v<d.length;v++){p=!1;for(var m=0;m<f.length;m++)if(o(d[v].value,f[m].value)===0&&d[v].identifier===f[m].identifier){p=!0;break}p||c.push(d[v])}}return Array.isArray(s)&&Array.isArray(u)?Rp(c):new i(Rp(c))}})}),rO="setDistinct",lDe=["typed","size","subset","compareNatural","Index","DenseMatrix"],sDe=se(rO,lDe,e=>{var{typed:t,size:n,subset:r,compareNatural:o,Index:a,DenseMatrix:i}=e;return t(rO,{"Array | Matrix":function(s){var u;if(r(n(s),new a(0))===0)u=[];else{var c=Ht(Array.isArray(s)?s:s.toArray()).sort(o);u=[],u.push(c[0]);for(var d=1;d<c.length;d++)o(c[d],c[d-1])!==0&&u.push(c[d])}return Array.isArray(s)?u:new i(u)}})}),oO="setIntersect",uDe=["typed","size","subset","compareNatural","Index","DenseMatrix"],cDe=se(oO,uDe,e=>{var{typed:t,size:n,subset:r,compareNatural:o,Index:a,DenseMatrix:i}=e;return t(oO,{"Array | Matrix, Array | Matrix":function(s,u){var c;if(r(n(s),new a(0))===0||r(n(u),new a(0))===0)c=[];else{var d=bs(Ht(Array.isArray(s)?s:s.toArray()).sort(o)),f=bs(Ht(Array.isArray(u)?u:u.toArray()).sort(o));c=[];for(var p=0;p<d.length;p++)for(var v=0;v<f.length;v++)if(o(d[p].value,f[v].value)===0&&d[p].identifier===f[v].identifier){c.push(d[p]);break}}return Array.isArray(s)&&Array.isArray(u)?Rp(c):new i(Rp(c))}})}),aO="setIsSubset",dDe=["typed","size","subset","compareNatural","Index"],fDe=se(aO,dDe,e=>{var{typed:t,size:n,subset:r,compareNatural:o,Index:a}=e;return t(aO,{"Array | Matrix, Array | Matrix":function(l,s){if(r(n(l),new a(0))===0)return!0;if(r(n(s),new a(0))===0)return!1;for(var u=bs(Ht(Array.isArray(l)?l:l.toArray()).sort(o)),c=bs(Ht(Array.isArray(s)?s:s.toArray()).sort(o)),d,f=0;f<u.length;f++){d=!1;for(var p=0;p<c.length;p++)if(o(u[f].value,c[p].value)===0&&u[f].identifier===c[p].identifier){d=!0;break}if(d===!1)return!1}return!0}})}),iO="setMultiplicity",pDe=["typed","size","subset","compareNatural","Index"],mDe=se(iO,pDe,e=>{var{typed:t,size:n,subset:r,compareNatural:o,Index:a}=e;return t(iO,{"number | BigNumber | Fraction | Complex, Array | Matrix":function(l,s){if(r(n(s),new a(0))===0)return 0;for(var u=Ht(Array.isArray(s)?s:s.toArray()),c=0,d=0;d<u.length;d++)o(u[d],l)===0&&c++;return c}})}),lO="setPowerset",vDe=["typed","size","subset","compareNatural","Index"],hDe=se(lO,vDe,e=>{var{typed:t,size:n,subset:r,compareNatural:o,Index:a}=e;return t(lO,{"Array | Matrix":function(u){if(r(n(u),new a(0))===0)return[];for(var c=Ht(Array.isArray(u)?u:u.toArray()).sort(o),d=[],f=0;f.toString(2).length<=c.length;)d.push(i(c,f.toString(2).split("").reverse())),f++;return l(d)}});function i(s,u){for(var c=[],d=0;d<u.length;d++)u[d]==="1"&&c.push(s[d]);return c}function l(s){for(var u=[],c=s.length-1;c>0;c--)for(var d=0;d<c;d++)s[d].length>s[d+1].length&&(u=s[d],s[d]=s[d+1],s[d+1]=u);return s}}),sO="setSize",gDe=["typed","compareNatural"],yDe=se(sO,gDe,e=>{var{typed:t,compareNatural:n}=e;return t(sO,{"Array | Matrix":function(o){return Array.isArray(o)?Ht(o).length:Ht(o.toArray()).length},"Array | Matrix, boolean":function(o,a){if(a===!1||o.length===0)return Array.isArray(o)?Ht(o).length:Ht(o.toArray()).length;for(var i=Ht(Array.isArray(o)?o:o.toArray()).sort(n),l=1,s=1;s<i.length;s++)n(i[s],i[s-1])!==0&&l++;return l}})}),uO="setSymDifference",bDe=["typed","size","concat","subset","setDifference","Index"],xDe=se(uO,bDe,e=>{var{typed:t,size:n,concat:r,subset:o,setDifference:a,Index:i}=e;return t(uO,{"Array | Matrix, Array | Matrix":function(s,u){if(o(n(s),new i(0))===0)return Ht(u);if(o(n(u),new i(0))===0)return Ht(s);var c=Ht(s),d=Ht(u);return r(a(c,d),a(d,c))}})}),cO="setUnion",wDe=["typed","size","concat","subset","setIntersect","setSymDifference","Index"],SDe=se(cO,wDe,e=>{var{typed:t,size:n,concat:r,subset:o,setIntersect:a,setSymDifference:i,Index:l}=e;return t(cO,{"Array | Matrix, Array | Matrix":function(u,c){if(o(n(u),new l(0))===0)return Ht(c);if(o(n(c),new l(0))===0)return Ht(u);var d=Ht(u),f=Ht(c);return r(i(d,f),a(d,f))}})}),dO="add",CDe=["typed","matrix","addScalar","equalScalar","DenseMatrix","SparseMatrix","concat"],$De=se(dO,CDe,e=>{var{typed:t,matrix:n,addScalar:r,equalScalar:o,DenseMatrix:a,SparseMatrix:i,concat:l}=e,s=vi({typed:t}),u=Gw({typed:t,equalScalar:o}),c=fl({typed:t,DenseMatrix:a}),d=Qt({typed:t,matrix:n,concat:l});return t(dO,{"any, any":r,"any, any, ...any":t.referToSelf(f=>(p,v,m)=>{for(var h=f(p,v),g=0;g<m.length;g++)h=f(h,m[g]);return h})},d({elop:r,DS:s,SS:u,Ss:c}))}),fO="hypot",EDe=["typed","abs","addScalar","divideScalar","multiplyScalar","sqrt","smaller","isPositive"],DDe=se(fO,EDe,e=>{var{typed:t,abs:n,addScalar:r,divideScalar:o,multiplyScalar:a,sqrt:i,smaller:l,isPositive:s}=e;return t(fO,{"... number | BigNumber":u,Array:u,Matrix:c=>u(Ht(c.toArray()))});function u(c){for(var d=0,f=0,p=0;p<c.length;p++){if(vo(c[p]))throw new TypeError("Unexpected type of argument to hypot");var v=n(c[p]);l(f,v)?(d=a(d,a(o(f,v),o(f,v))),d=r(d,1),f=v):d=r(d,s(v)?a(o(v,f),o(v,f)):v)}return a(f,i(d))}}),pO="norm",ADe=["typed","abs","add","pow","conj","sqrt","multiply","equalScalar","larger","smaller","matrix","ctranspose","eigs"],ODe=se(pO,ADe,e=>{var{typed:t,abs:n,add:r,pow:o,conj:a,sqrt:i,multiply:l,equalScalar:s,larger:u,smaller:c,matrix:d,ctranspose:f,eigs:p}=e;return t(pO,{number:Math.abs,Complex:function(D){return D.abs()},BigNumber:function(D){return D.abs()},boolean:function(D){return Math.abs(D)},Array:function(D){return S(d(D),2)},Matrix:function(D){return S(D,2)},"Array, number | BigNumber | string":function(D,O){return S(d(D),O)},"Matrix, number | BigNumber | string":function(D,O){return S(D,O)}});function v($){var D=0;return $.forEach(function(O){var A=n(O);u(A,D)&&(D=A)},!0),D}function m($){var D;return $.forEach(function(O){var A=n(O);(!D||c(A,D))&&(D=A)},!0),D||0}function h($,D){if(D===Number.POSITIVE_INFINITY||D==="inf")return v($);if(D===Number.NEGATIVE_INFINITY||D==="-inf")return m($);if(D==="fro")return S($,2);if(typeof D=="number"&&!isNaN(D)){if(!s(D,0)){var O=0;return $.forEach(function(A){O=r(o(n(A),D),O)},!0),o(O,1/D)}return Number.POSITIVE_INFINITY}throw new Error("Unsupported parameter value")}function g($){var D=0;return $.forEach(function(O,A){D=r(D,l(O,a(O)))}),n(i(D))}function x($){var D=[],O=0;return $.forEach(function(A,T){var M=T[1],B=r(D[M]||0,n(A));u(B,O)&&(O=B),D[M]=B},!0),O}function y($){var D=$.size();if(D[0]!==D[1])throw new RangeError("Invalid matrix dimensions");var O=f($),A=l(O,$),T=p(A).values.toArray(),M=T[T.length-1];return n(i(M))}function w($){var D=[],O=0;return $.forEach(function(A,T){var M=T[0],B=r(D[M]||0,n(A));u(B,O)&&(O=B),D[M]=B},!0),O}function b($,D){if(D===1)return x($);if(D===Number.POSITIVE_INFINITY||D==="inf")return w($);if(D==="fro")return g($);if(D===2)return y($);throw new Error("Unsupported parameter value "+D)}function S($,D){var O=$.size();if(O.length===1)return h($,D);if(O.length===2){if(O[0]&&O[1])return b($,D);throw new RangeError("Invalid matrix dimensions")}}}),mO="dot",TDe=["typed","addScalar","multiplyScalar","conj","size"],MDe=se(mO,TDe,e=>{var{typed:t,addScalar:n,multiplyScalar:r,conj:o,size:a}=e;return t(mO,{"Array | DenseMatrix, Array | DenseMatrix":l,"SparseMatrix, SparseMatrix":s});function i(c,d){var f=u(c),p=u(d),v,m;if(f.length===1)v=f[0];else if(f.length===2&&f[1]===1)v=f[0];else throw new RangeError("Expected a column vector, instead got a matrix of size ("+f.join(", ")+")");if(p.length===1)m=p[0];else if(p.length===2&&p[1]===1)m=p[0];else throw new RangeError("Expected a column vector, instead got a matrix of size ("+p.join(", ")+")");if(v!==m)throw new RangeError("Vectors must have equal length ("+v+" != "+m+")");if(v===0)throw new RangeError("Cannot calculate the dot product of empty vectors");return v}function l(c,d){var f=i(c,d),p=mt(c)?c._data:c,v=mt(c)?c._datatype:void 0,m=mt(d)?d._data:d,h=mt(d)?d._datatype:void 0,g=u(c).length===2,x=u(d).length===2,y=n,w=r;if(v&&h&&v===h&&typeof v=="string"){var b=v;y=t.find(n,[b,b]),w=t.find(r,[b,b])}if(!g&&!x){for(var S=w(o(p[0]),m[0]),$=1;$<f;$++)S=y(S,w(o(p[$]),m[$]));return S}if(!g&&x){for(var D=w(o(p[0]),m[0][0]),O=1;O<f;O++)D=y(D,w(o(p[O]),m[O][0]));return D}if(g&&!x){for(var A=w(o(p[0][0]),m[0]),T=1;T<f;T++)A=y(A,w(o(p[T][0]),m[T]));return A}if(g&&x){for(var M=w(o(p[0][0]),m[0][0]),B=1;B<f;B++)M=y(M,w(o(p[B][0]),m[B][0]));return M}}function s(c,d){i(c,d);for(var f=c._index,p=c._values,v=d._index,m=d._values,h=0,g=n,x=r,y=0,w=0;y<f.length&&w<v.length;){var b=f[y],S=v[w];if(b<S){y++;continue}if(b>S){w++;continue}b===S&&(h=g(h,x(p[y],m[w])),y++,w++)}return h}function u(c){return mt(c)?c.size():a(c)}}),NDe="trace",PDe=["typed","matrix","add"],IDe=se(NDe,PDe,e=>{var{typed:t,matrix:n,add:r}=e;return t("trace",{Array:function(l){return o(n(l))},SparseMatrix:a,DenseMatrix:o,any:ct});function o(i){var l=i._size,s=i._data;switch(l.length){case 1:if(l[0]===1)return ct(s[0]);throw new RangeError("Matrix must be square (size: "+Et(l)+")");case 2:{var u=l[0],c=l[1];if(u===c){for(var d=0,f=0;f<u;f++)d=r(d,s[f][f]);return d}else throw new RangeError("Matrix must be square (size: "+Et(l)+")")}default:throw new RangeError("Matrix must be two dimensional (size: "+Et(l)+")")}}function a(i){var l=i._values,s=i._index,u=i._ptr,c=i._size,d=c[0],f=c[1];if(d===f){var p=0;if(l.length>0)for(var v=0;v<f;v++)for(var m=u[v],h=u[v+1],g=m;g<h;g++){var x=s[g];if(x===v){p=r(p,l[g]);break}if(x>v)break}return p}throw new RangeError("Matrix must be square (size: "+Et(c)+")")}}),vO="index",_De=["typed","Index"],BDe=se(vO,_De,e=>{var{typed:t,Index:n}=e;return t(vO,{"...number | string | BigNumber | Range | Array | Matrix":function(o){var a=o.map(function(l){return Ot(l)?l.toNumber():Array.isArray(l)||mt(l)?l.map(function(s){return Ot(s)?s.toNumber():s}):l}),i=new n;return n.apply(i,a),i}})}),$B=new Set(["end"]),FDe="Node",RDe=["mathWithTransform"],zDe=se(FDe,RDe,e=>{var{mathWithTransform:t}=e;function n(o){for(var a of[...$B])if(o.has(a))throw new Error('Scope contains an illegal symbol, "'+a+'" is a reserved keyword')}class r{get type(){return"Node"}get isNode(){return!0}evaluate(a){return this.compile().evaluate(a)}compile(){var a=this._compile(t,{}),i={},l=null;function s(u){var c=ns(u);return n(c),a(c,i,l)}return{evaluate:s}}_compile(a,i){throw new Error("Method _compile must be implemented by type "+this.type)}forEach(a){throw new Error("Cannot run forEach on a Node interface")}map(a){throw new Error("Cannot run map on a Node interface")}_ifNode(a){if(!Kt(a))throw new TypeError("Callback function must return a Node");return a}traverse(a){a(this,null,null);function i(l,s){l.forEach(function(u,c,d){s(u,c,d),i(u,s)})}i(this,a)}transform(a){function i(l,s,u){var c=a(l,s,u);return c!==l?c:l.map(i)}return i(this,null,null)}filter(a){var i=[];return this.traverse(function(l,s,u){a(l,s,u)&&i.push(l)}),i}clone(){throw new Error("Cannot clone a Node interface")}cloneDeep(){return this.map(function(a){return a.cloneDeep()})}equals(a){return a?this.type===a.type&&ic(this,a):!1}toString(a){var i=this._getCustomString(a);return typeof i<"u"?i:this._toString(a)}toJSON(){throw new Error("Cannot serialize object: toJSON not implemented by "+this.type)}toHTML(a){var i=this._getCustomString(a);return typeof i<"u"?i:this.toHTML(a)}_toString(){throw new Error("_toString not implemented for "+this.type)}toTex(a){var i=this._getCustomString(a);return typeof i<"u"?i:this._toTex(a)}_toTex(a){throw new Error("_toTex not implemented for "+this.type)}_getCustomString(a){if(a&&typeof a=="object")switch(typeof a.handler){case"object":case"undefined":return;case"function":return a.handler(this,a);default:throw new TypeError("Object or function expected as callback")}}getIdentifier(){return this.type}getContent(){return this}}return r},{isClass:!0,isNode:!0});function pr(e){return e&&e.isIndexError?new oo(e.index+1,e.min+1,e.max!==void 0?e.max+1:void 0):e}function EB(e){var{subset:t}=e;return function(r,o){try{if(Array.isArray(r))return t(r,o);if(r&&typeof r.subset=="function")return r.subset(o);if(typeof r=="string")return t(r,o);if(typeof r=="object"){if(!o.isObjectProperty())throw new TypeError("Cannot apply a numeric index as object property");return no(r,o.getObjectProperty())}else throw new TypeError("Cannot apply index: unsupported type of object")}catch(a){throw pr(a)}}}var Ed="AccessorNode",LDe=["subset","Node"],kDe=se(Ed,LDe,e=>{var{subset:t,Node:n}=e,r=EB({subset:t});function o(i){return!(ii(i)||Ir(i)||Rt(i)||Sa(i)||_c(i)||Vo(i)||Pn(i))}class a extends n{constructor(l,s){if(super(),!Kt(l))throw new TypeError('Node expected for parameter "object"');if(!cl(s))throw new TypeError('IndexNode expected for parameter "index"');this.object=l,this.index=s}get name(){return this.index?this.index.isObjectProperty()?this.index.getObjectProperty():"":this.object.name||""}get type(){return Ed}get isAccessorNode(){return!0}_compile(l,s){var u=this.object._compile(l,s),c=this.index._compile(l,s);if(this.index.isObjectProperty()){var d=this.index.getObjectProperty();return function(p,v,m){return no(u(p,v,m),d)}}else return function(p,v,m){var h=u(p,v,m),g=c(p,v,h);return r(h,g)}}forEach(l){l(this.object,"object",this),l(this.index,"index",this)}map(l){return new a(this._ifNode(l(this.object,"object",this)),this._ifNode(l(this.index,"index",this)))}clone(){return new a(this.object,this.index)}_toString(l){var s=this.object.toString(l);return o(this.object)&&(s="("+s+")"),s+this.index.toString(l)}toHTML(l){var s=this.object.toHTML(l);return o(this.object)&&(s='<span class="math-parenthesis math-round-parenthesis">(</span>'+s+'<span class="math-parenthesis math-round-parenthesis">)</span>'),s+this.index.toHTML(l)}_toTex(l){var s=this.object.toTex(l);return o(this.object)&&(s="\\left(' + object + '\\right)"),s+this.index.toTex(l)}toJSON(){return{mathjs:Ed,object:this.object,index:this.index}}static fromJSON(l){return new a(l.object,l.index)}}return In(a,"name",Ed),a},{isClass:!0,isNode:!0}),Dd="ArrayNode",HDe=["Node"],jDe=se(Dd,HDe,e=>{var{Node:t}=e;class n extends t{constructor(o){if(super(),this.items=o||[],!Array.isArray(this.items)||!this.items.every(Kt))throw new TypeError("Array containing Nodes expected")}get type(){return Dd}get isArrayNode(){return!0}_compile(o,a){var i=va(this.items,function(u){return u._compile(o,a)}),l=o.config.matrix!=="Array";if(l){var s=o.matrix;return function(c,d,f){return s(va(i,function(p){return p(c,d,f)}))}}else return function(c,d,f){return va(i,function(p){return p(c,d,f)})}}forEach(o){for(var a=0;a<this.items.length;a++){var i=this.items[a];o(i,"items["+a+"]",this)}}map(o){for(var a=[],i=0;i<this.items.length;i++)a[i]=this._ifNode(o(this.items[i],"items["+i+"]",this));return new n(a)}clone(){return new n(this.items.slice(0))}_toString(o){var a=this.items.map(function(i){return i.toString(o)});return"["+a.join(", ")+"]"}toJSON(){return{mathjs:Dd,items:this.items}}static fromJSON(o){return new n(o.items)}toHTML(o){var a=this.items.map(function(i){return i.toHTML(o)});return'<span class="math-parenthesis math-square-parenthesis">[</span>'+a.join('<span class="math-separator">,</span>')+'<span class="math-parenthesis math-square-parenthesis">]</span>'}_toTex(o){function a(i,l){var s=i.some(Ir)&&!i.every(Ir),u=l||s,c=u?"&":"\\\\",d=i.map(function(f){return f.items?a(f.items,!l):f.toTex(o)}).join(c);return s||!u||u&&!l?"\\begin{bmatrix}"+d+"\\end{bmatrix}":d}return a(this.items,!1)}}return In(n,"name",Dd),n},{isClass:!0,isNode:!0});function VDe(e){var{subset:t,matrix:n}=e;return function(o,a,i){try{if(Array.isArray(o))return n(o).subset(a,i).valueOf();if(o&&typeof o.subset=="function")return o.subset(a,i);if(typeof o=="string")return t(o,a,i);if(typeof o=="object"){if(!a.isObjectProperty())throw TypeError("Cannot apply a numeric index as object property");return xs(o,a.getObjectProperty(),i),o}else throw new TypeError("Cannot apply index: unsupported type of object")}catch(l){throw pr(l)}}}var co=[{AssignmentNode:{},FunctionAssignmentNode:{}},{ConditionalNode:{latexLeftParens:!1,latexRightParens:!1,latexParens:!1}},{"OperatorNode:or":{op:"or",associativity:"left",associativeWith:[]}},{"OperatorNode:xor":{op:"xor",associativity:"left",associativeWith:[]}},{"OperatorNode:and":{op:"and",associativity:"left",associativeWith:[]}},{"OperatorNode:bitOr":{op:"|",associativity:"left",associativeWith:[]}},{"OperatorNode:bitXor":{op:"^|",associativity:"left",associativeWith:[]}},{"OperatorNode:bitAnd":{op:"&",associativity:"left",associativeWith:[]}},{"OperatorNode:equal":{op:"==",associativity:"left",associativeWith:[]},"OperatorNode:unequal":{op:"!=",associativity:"left",associativeWith:[]},"OperatorNode:smaller":{op:"<",associativity:"left",associativeWith:[]},"OperatorNode:larger":{op:">",associativity:"left",associativeWith:[]},"OperatorNode:smallerEq":{op:"<=",associativity:"left",associativeWith:[]},"OperatorNode:largerEq":{op:">=",associativity:"left",associativeWith:[]},RelationalNode:{associativity:"left",associativeWith:[]}},{"OperatorNode:leftShift":{op:"<<",associativity:"left",associativeWith:[]},"OperatorNode:rightArithShift":{op:">>",associativity:"left",associativeWith:[]},"OperatorNode:rightLogShift":{op:">>>",associativity:"left",associativeWith:[]}},{"OperatorNode:to":{op:"to",associativity:"left",associativeWith:[]}},{RangeNode:{}},{"OperatorNode:add":{op:"+",associativity:"left",associativeWith:["OperatorNode:add","OperatorNode:subtract"]},"OperatorNode:subtract":{op:"-",associativity:"left",associativeWith:[]}},{"OperatorNode:multiply":{op:"*",associativity:"left",associativeWith:["OperatorNode:multiply","OperatorNode:divide","Operator:dotMultiply","Operator:dotDivide"]},"OperatorNode:divide":{op:"/",associativity:"left",associativeWith:[],latexLeftParens:!1,latexRightParens:!1,latexParens:!1},"OperatorNode:dotMultiply":{op:".*",associativity:"left",associativeWith:["OperatorNode:multiply","OperatorNode:divide","OperatorNode:dotMultiply","OperatorNode:doDivide"]},"OperatorNode:dotDivide":{op:"./",associativity:"left",associativeWith:[]},"OperatorNode:mod":{op:"mod",associativity:"left",associativeWith:[]}},{"OperatorNode:multiply":{associativity:"left",associativeWith:["OperatorNode:multiply","OperatorNode:divide","Operator:dotMultiply","Operator:dotDivide"]}},{"OperatorNode:unaryPlus":{op:"+",associativity:"right"},"OperatorNode:unaryMinus":{op:"-",associativity:"right"},"OperatorNode:bitNot":{op:"~",associativity:"right"},"OperatorNode:not":{op:"not",associativity:"right"}},{"OperatorNode:pow":{op:"^",associativity:"right",associativeWith:[],latexRightParens:!1},"OperatorNode:dotPow":{op:".^",associativity:"right",associativeWith:[]}},{"OperatorNode:factorial":{op:"!",associativity:"left"}},{"OperatorNode:ctranspose":{op:"'",associativity:"left"}}];function Ad(e,t){if(!t||t!=="auto")return e;for(var n=e;Vo(n);)n=n.content;return n}function Yt(e,t,n,r){var o=e;t!=="keep"&&(o=e.getContent());for(var a=o.getIdentifier(),i=null,l=0;l<co.length;l++)if(a in co[l]){i=l;break}if(a==="OperatorNode:multiply"&&o.implicit&&n!=="show"){var s=Ad(o.args[0],t);!(Rt(s)&&r&&r.getIdentifier()==="OperatorNode:divide"&&fy(Ad(r.args[0],t)))&&!(s.getIdentifier()==="OperatorNode:divide"&&fy(Ad(s.args[0],t))&&Rt(Ad(s.args[1])))&&(i+=1)}return i}function ru(e,t){var n=e;t!=="keep"&&(n=e.getContent());var r=n.getIdentifier(),o=Yt(n,t);if(o===null)return null;var a=co[o][r];if(Ke(a,"associativity")){if(a.associativity==="left")return"left";if(a.associativity==="right")return"right";throw Error("'"+r+"' has the invalid associativity '"+a.associativity+"'.")}return null}function wg(e,t,n){var r=n!=="keep"?e.getContent():e,o=n!=="keep"?e.getContent():t,a=r.getIdentifier(),i=o.getIdentifier(),l=Yt(r,n);if(l===null)return null;var s=co[l][a];if(Ke(s,"associativeWith")&&s.associativeWith instanceof Array){for(var u=0;u<s.associativeWith.length;u++)if(s.associativeWith[u]===i)return!0;return!1}return null}function WDe(e){var t="OperatorNode:"+e;for(var n of co)if(t in n)return n[t].op;return null}var Od="AssignmentNode",UDe=["subset","?matrix","Node"],KDe=se(Od,UDe,e=>{var{subset:t,matrix:n,Node:r}=e,o=EB({subset:t}),a=VDe({subset:t,matrix:n});function i(s,u,c){u||(u="keep");var d=Yt(s,u,c),f=Yt(s.value,u,c);return u==="all"||f!==null&&f<=d}class l extends r{constructor(u,c,d){if(super(),this.object=u,this.index=d?c:null,this.value=d||c,!Pn(u)&&!ii(u))throw new TypeError('SymbolNode or AccessorNode expected as "object"');if(Pn(u)&&u.name==="end")throw new Error('Cannot assign to symbol "end"');if(this.index&&!cl(this.index))throw new TypeError('IndexNode expected as "index"');if(!Kt(this.value))throw new TypeError('Node expected as "value"')}get name(){return this.index?this.index.isObjectProperty()?this.index.getObjectProperty():"":this.object.name||""}get type(){return Od}get isAssignmentNode(){return!0}_compile(u,c){var d=this.object._compile(u,c),f=this.index?this.index._compile(u,c):null,p=this.value._compile(u,c),v=this.object.name;if(this.index)if(this.index.isObjectProperty()){var m=this.index.getObjectProperty();return function(w,b,S){var $=d(w,b,S),D=p(w,b,S);return xs($,m,D),D}}else{if(Pn(this.object))return function(w,b,S){var $=d(w,b,S),D=p(w,b,S),O=f(w,b,$);return w.set(v,a($,O,D)),D};var h=this.object.object._compile(u,c);if(this.object.index.isObjectProperty()){var g=this.object.index.getObjectProperty();return function(w,b,S){var $=h(w,b,S),D=no($,g),O=f(w,b,D),A=p(w,b,S);return xs($,g,a(D,O,A)),A}}else{var x=this.object.index._compile(u,c);return function(w,b,S){var $=h(w,b,S),D=x(w,b,$),O=o($,D),A=f(w,b,O),T=p(w,b,S);return a($,D,a(O,A,T)),T}}}else{if(!Pn(this.object))throw new TypeError("SymbolNode expected as object");return function(w,b,S){var $=p(w,b,S);return w.set(v,$),$}}}forEach(u){u(this.object,"object",this),this.index&&u(this.index,"index",this),u(this.value,"value",this)}map(u){var c=this._ifNode(u(this.object,"object",this)),d=this.index?this._ifNode(u(this.index,"index",this)):null,f=this._ifNode(u(this.value,"value",this));return new l(c,d,f)}clone(){return new l(this.object,this.index,this.value)}_toString(u){var c=this.object.toString(u),d=this.index?this.index.toString(u):"",f=this.value.toString(u);return i(this,u&&u.parenthesis,u&&u.implicit)&&(f="("+f+")"),c+d+" = "+f}toJSON(){return{mathjs:Od,object:this.object,index:this.index,value:this.value}}static fromJSON(u){return new l(u.object,u.index,u.value)}toHTML(u){var c=this.object.toHTML(u),d=this.index?this.index.toHTML(u):"",f=this.value.toHTML(u);return i(this,u&&u.parenthesis,u&&u.implicit)&&(f='<span class="math-paranthesis math-round-parenthesis">(</span>'+f+'<span class="math-paranthesis math-round-parenthesis">)</span>'),c+d+'<span class="math-operator math-assignment-operator math-variable-assignment-operator math-binary-operator">=</span>'+f}_toTex(u){var c=this.object.toTex(u),d=this.index?this.index.toTex(u):"",f=this.value.toTex(u);return i(this,u&&u.parenthesis,u&&u.implicit)&&(f="\\left(".concat(f,"\\right)")),c+d+":="+f}}return In(l,"name",Od),l},{isClass:!0,isNode:!0}),Td="BlockNode",qDe=["ResultSet","Node"],GDe=se(Td,qDe,e=>{var{ResultSet:t,Node:n}=e;class r extends n{constructor(a){if(super(),!Array.isArray(a))throw new Error("Array expected");this.blocks=a.map(function(i){var l=i&&i.node,s=i&&i.visible!==void 0?i.visible:!0;if(!Kt(l))throw new TypeError('Property "node" must be a Node');if(typeof s!="boolean")throw new TypeError('Property "visible" must be a boolean');return{node:l,visible:s}})}get type(){return Td}get isBlockNode(){return!0}_compile(a,i){var l=va(this.blocks,function(s){return{evaluate:s.node._compile(a,i),visible:s.visible}});return function(u,c,d){var f=[];return Pv(l,function(v){var m=v.evaluate(u,c,d);v.visible&&f.push(m)}),new t(f)}}forEach(a){for(var i=0;i<this.blocks.length;i++)a(this.blocks[i].node,"blocks["+i+"].node",this)}map(a){for(var i=[],l=0;l<this.blocks.length;l++){var s=this.blocks[l],u=this._ifNode(a(s.node,"blocks["+l+"].node",this));i[l]={node:u,visible:s.visible}}return new r(i)}clone(){var a=this.blocks.map(function(i){return{node:i.node,visible:i.visible}});return new r(a)}_toString(a){return this.blocks.map(function(i){return i.node.toString(a)+(i.visible?"":";")}).join(`
- `)}toJSON(){return{mathjs:Td,blocks:this.blocks}}static fromJSON(a){return new r(a.blocks)}toHTML(a){return this.blocks.map(function(i){return i.node.toHTML(a)+(i.visible?"":'<span class="math-separator">;</span>')}).join('<span class="math-separator"><br /></span>')}_toTex(a){return this.blocks.map(function(i){return i.node.toTex(a)+(i.visible?"":";")}).join(`\\;\\;
- `)}}return In(r,"name",Td),r},{isClass:!0,isNode:!0}),Md="ConditionalNode",XDe=["Node"],YDe=se(Md,XDe,e=>{var{Node:t}=e;function n(o){if(typeof o=="number"||typeof o=="boolean"||typeof o=="string")return!!o;if(o){if(Ot(o))return!o.isZero();if(vo(o))return!!(o.re||o.im);if(uo(o))return!!o.value}if(o==null)return!1;throw new TypeError('Unsupported type of condition "'+an(o)+'"')}class r extends t{constructor(a,i,l){if(super(),!Kt(a))throw new TypeError("Parameter condition must be a Node");if(!Kt(i))throw new TypeError("Parameter trueExpr must be a Node");if(!Kt(l))throw new TypeError("Parameter falseExpr must be a Node");this.condition=a,this.trueExpr=i,this.falseExpr=l}get type(){return Md}get isConditionalNode(){return!0}_compile(a,i){var l=this.condition._compile(a,i),s=this.trueExpr._compile(a,i),u=this.falseExpr._compile(a,i);return function(d,f,p){return n(l(d,f,p))?s(d,f,p):u(d,f,p)}}forEach(a){a(this.condition,"condition",this),a(this.trueExpr,"trueExpr",this),a(this.falseExpr,"falseExpr",this)}map(a){return new r(this._ifNode(a(this.condition,"condition",this)),this._ifNode(a(this.trueExpr,"trueExpr",this)),this._ifNode(a(this.falseExpr,"falseExpr",this)))}clone(){return new r(this.condition,this.trueExpr,this.falseExpr)}_toString(a){var i=a&&a.parenthesis?a.parenthesis:"keep",l=Yt(this,i,a&&a.implicit),s=this.condition.toString(a),u=Yt(this.condition,i,a&&a.implicit);(i==="all"||this.condition.type==="OperatorNode"||u!==null&&u<=l)&&(s="("+s+")");var c=this.trueExpr.toString(a),d=Yt(this.trueExpr,i,a&&a.implicit);(i==="all"||this.trueExpr.type==="OperatorNode"||d!==null&&d<=l)&&(c="("+c+")");var f=this.falseExpr.toString(a),p=Yt(this.falseExpr,i,a&&a.implicit);return(i==="all"||this.falseExpr.type==="OperatorNode"||p!==null&&p<=l)&&(f="("+f+")"),s+" ? "+c+" : "+f}toJSON(){return{mathjs:Md,condition:this.condition,trueExpr:this.trueExpr,falseExpr:this.falseExpr}}static fromJSON(a){return new r(a.condition,a.trueExpr,a.falseExpr)}toHTML(a){var i=a&&a.parenthesis?a.parenthesis:"keep",l=Yt(this,i,a&&a.implicit),s=this.condition.toHTML(a),u=Yt(this.condition,i,a&&a.implicit);(i==="all"||this.condition.type==="OperatorNode"||u!==null&&u<=l)&&(s='<span class="math-parenthesis math-round-parenthesis">(</span>'+s+'<span class="math-parenthesis math-round-parenthesis">)</span>');var c=this.trueExpr.toHTML(a),d=Yt(this.trueExpr,i,a&&a.implicit);(i==="all"||this.trueExpr.type==="OperatorNode"||d!==null&&d<=l)&&(c='<span class="math-parenthesis math-round-parenthesis">(</span>'+c+'<span class="math-parenthesis math-round-parenthesis">)</span>');var f=this.falseExpr.toHTML(a),p=Yt(this.falseExpr,i,a&&a.implicit);return(i==="all"||this.falseExpr.type==="OperatorNode"||p!==null&&p<=l)&&(f='<span class="math-parenthesis math-round-parenthesis">(</span>'+f+'<span class="math-parenthesis math-round-parenthesis">)</span>'),s+'<span class="math-operator math-conditional-operator">?</span>'+c+'<span class="math-operator math-conditional-operator">:</span>'+f}_toTex(a){return"\\begin{cases} {"+this.trueExpr.toTex(a)+"}, &\\quad{\\text{if }\\;"+this.condition.toTex(a)+"}\\\\{"+this.falseExpr.toTex(a)+"}, &\\quad{\\text{otherwise}}\\end{cases}"}}return In(r,"name",Md),r},{isClass:!0,isNode:!0}),Ay=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ZDe={"{":"\\{","}":"\\}","\\":"\\textbackslash{}","#":"\\#",$:"\\$","%":"\\%","&":"\\&","^":"\\textasciicircum{}",_:"\\_","~":"\\textasciitilde{}"},JDe={"–":"\\--","—":"\\---"," ":"~"," ":"\\qquad{}","\r\n":"\\newline{}","\n":"\\newline{}"},QDe=function(t,n){return Ay({},t,n)},eAe=function(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.preserveFormatting,r=n===void 0?!1:n,o=t.escapeMapFn,a=o===void 0?QDe:o,i=String(e),l="",s=a(Ay({},ZDe),r?Ay({},JDe):{}),u=Object.keys(s),c=function(){var f=!1;u.forEach(function(p,v){f||i.length>=p.length&&i.slice(0,p.length)===p&&(l+=s[u[v]],i=i.slice(p.length,i.length),f=!0)}),f||(l+=i.slice(0,1),i=i.slice(1,i.length))};i;)c();return l};const tAe=eAe;var Oy={Alpha:"A",alpha:"\\alpha",Beta:"B",beta:"\\beta",Gamma:"\\Gamma",gamma:"\\gamma",Delta:"\\Delta",delta:"\\delta",Epsilon:"E",epsilon:"\\epsilon",varepsilon:"\\varepsilon",Zeta:"Z",zeta:"\\zeta",Eta:"H",eta:"\\eta",Theta:"\\Theta",theta:"\\theta",vartheta:"\\vartheta",Iota:"I",iota:"\\iota",Kappa:"K",kappa:"\\kappa",varkappa:"\\varkappa",Lambda:"\\Lambda",lambda:"\\lambda",Mu:"M",mu:"\\mu",Nu:"N",nu:"\\nu",Xi:"\\Xi",xi:"\\xi",Omicron:"O",omicron:"o",Pi:"\\Pi",pi:"\\pi",varpi:"\\varpi",Rho:"P",rho:"\\rho",varrho:"\\varrho",Sigma:"\\Sigma",sigma:"\\sigma",varsigma:"\\varsigma",Tau:"T",tau:"\\tau",Upsilon:"\\Upsilon",upsilon:"\\upsilon",Phi:"\\Phi",phi:"\\phi",varphi:"\\varphi",Chi:"X",chi:"\\chi",Psi:"\\Psi",psi:"\\psi",Omega:"\\Omega",omega:"\\omega",true:"\\mathrm{True}",false:"\\mathrm{False}",i:"i",inf:"\\infty",Inf:"\\infty",infinity:"\\infty",Infinity:"\\infty",oo:"\\infty",lim:"\\lim",undefined:"\\mathbf{?}"},kt={transpose:"^\\top",ctranspose:"^H",factorial:"!",pow:"^",dotPow:".^\\wedge",unaryPlus:"+",unaryMinus:"-",bitNot:"\\~",not:"\\neg",multiply:"\\cdot",divide:"\\frac",dotMultiply:".\\cdot",dotDivide:".:",mod:"\\mod",add:"+",subtract:"-",to:"\\rightarrow",leftShift:"<<",rightArithShift:">>",rightLogShift:">>>",equal:"=",unequal:"\\neq",smaller:"<",larger:">",smallerEq:"\\leq",largerEq:"\\geq",bitAnd:"\\&",bitXor:"\\underline{|}",bitOr:"|",and:"\\wedge",xor:"\\veebar",or:"\\vee"},hO={abs:{1:"\\left|${args[0]}\\right|"},add:{2:"\\left(${args[0]}".concat(kt.add,"${args[1]}\\right)")},cbrt:{1:"\\sqrt[3]{${args[0]}}"},ceil:{1:"\\left\\lceil${args[0]}\\right\\rceil"},cube:{1:"\\left(${args[0]}\\right)^3"},divide:{2:"\\frac{${args[0]}}{${args[1]}}"},dotDivide:{2:"\\left(${args[0]}".concat(kt.dotDivide,"${args[1]}\\right)")},dotMultiply:{2:"\\left(${args[0]}".concat(kt.dotMultiply,"${args[1]}\\right)")},dotPow:{2:"\\left(${args[0]}".concat(kt.dotPow,"${args[1]}\\right)")},exp:{1:"\\exp\\left(${args[0]}\\right)"},expm1:"\\left(e".concat(kt.pow,"{${args[0]}}-1\\right)"),fix:{1:"\\mathrm{${name}}\\left(${args[0]}\\right)"},floor:{1:"\\left\\lfloor${args[0]}\\right\\rfloor"},gcd:"\\gcd\\left(${args}\\right)",hypot:"\\hypot\\left(${args}\\right)",log:{1:"\\ln\\left(${args[0]}\\right)",2:"\\log_{${args[1]}}\\left(${args[0]}\\right)"},log10:{1:"\\log_{10}\\left(${args[0]}\\right)"},log1p:{1:"\\ln\\left(${args[0]}+1\\right)",2:"\\log_{${args[1]}}\\left(${args[0]}+1\\right)"},log2:"\\log_{2}\\left(${args[0]}\\right)",mod:{2:"\\left(${args[0]}".concat(kt.mod,"${args[1]}\\right)")},multiply:{2:"\\left(${args[0]}".concat(kt.multiply,"${args[1]}\\right)")},norm:{1:"\\left\\|${args[0]}\\right\\|",2:void 0},nthRoot:{2:"\\sqrt[${args[1]}]{${args[0]}}"},nthRoots:{2:"\\{y : $y^{args[1]} = {${args[0]}}\\}"},pow:{2:"\\left(${args[0]}\\right)".concat(kt.pow,"{${args[1]}}")},round:{1:"\\left\\lfloor${args[0]}\\right\\rceil",2:void 0},sign:{1:"\\mathrm{${name}}\\left(${args[0]}\\right)"},sqrt:{1:"\\sqrt{${args[0]}}"},square:{1:"\\left(${args[0]}\\right)^2"},subtract:{2:"\\left(${args[0]}".concat(kt.subtract,"${args[1]}\\right)")},unaryMinus:{1:"".concat(kt.unaryMinus,"\\left(${args[0]}\\right)")},unaryPlus:{1:"".concat(kt.unaryPlus,"\\left(${args[0]}\\right)")},bitAnd:{2:"\\left(${args[0]}".concat(kt.bitAnd,"${args[1]}\\right)")},bitNot:{1:kt.bitNot+"\\left(${args[0]}\\right)"},bitOr:{2:"\\left(${args[0]}".concat(kt.bitOr,"${args[1]}\\right)")},bitXor:{2:"\\left(${args[0]}".concat(kt.bitXor,"${args[1]}\\right)")},leftShift:{2:"\\left(${args[0]}".concat(kt.leftShift,"${args[1]}\\right)")},rightArithShift:{2:"\\left(${args[0]}".concat(kt.rightArithShift,"${args[1]}\\right)")},rightLogShift:{2:"\\left(${args[0]}".concat(kt.rightLogShift,"${args[1]}\\right)")},bellNumbers:{1:"\\mathrm{B}_{${args[0]}}"},catalan:{1:"\\mathrm{C}_{${args[0]}}"},stirlingS2:{2:"\\mathrm{S}\\left(${args}\\right)"},arg:{1:"\\arg\\left(${args[0]}\\right)"},conj:{1:"\\left(${args[0]}\\right)^*"},im:{1:"\\Im\\left\\lbrace${args[0]}\\right\\rbrace"},re:{1:"\\Re\\left\\lbrace${args[0]}\\right\\rbrace"},and:{2:"\\left(${args[0]}".concat(kt.and,"${args[1]}\\right)")},not:{1:kt.not+"\\left(${args[0]}\\right)"},or:{2:"\\left(${args[0]}".concat(kt.or,"${args[1]}\\right)")},xor:{2:"\\left(${args[0]}".concat(kt.xor,"${args[1]}\\right)")},cross:{2:"\\left(${args[0]}\\right)\\times\\left(${args[1]}\\right)"},ctranspose:{1:"\\left(${args[0]}\\right)".concat(kt.ctranspose)},det:{1:"\\det\\left(${args[0]}\\right)"},dot:{2:"\\left(${args[0]}\\cdot${args[1]}\\right)"},expm:{1:"\\exp\\left(${args[0]}\\right)"},inv:{1:"\\left(${args[0]}\\right)^{-1}"},pinv:{1:"\\left(${args[0]}\\right)^{+}"},sqrtm:{1:"{${args[0]}}".concat(kt.pow,"{\\frac{1}{2}}")},trace:{1:"\\mathrm{tr}\\left(${args[0]}\\right)"},transpose:{1:"\\left(${args[0]}\\right)".concat(kt.transpose)},combinations:{2:"\\binom{${args[0]}}{${args[1]}}"},combinationsWithRep:{2:"\\left(\\!\\!{\\binom{${args[0]}}{${args[1]}}}\\!\\!\\right)"},factorial:{1:"\\left(${args[0]}\\right)".concat(kt.factorial)},gamma:{1:"\\Gamma\\left(${args[0]}\\right)"},lgamma:{1:"\\ln\\Gamma\\left(${args[0]}\\right)"},equal:{2:"\\left(${args[0]}".concat(kt.equal,"${args[1]}\\right)")},larger:{2:"\\left(${args[0]}".concat(kt.larger,"${args[1]}\\right)")},largerEq:{2:"\\left(${args[0]}".concat(kt.largerEq,"${args[1]}\\right)")},smaller:{2:"\\left(${args[0]}".concat(kt.smaller,"${args[1]}\\right)")},smallerEq:{2:"\\left(${args[0]}".concat(kt.smallerEq,"${args[1]}\\right)")},unequal:{2:"\\left(${args[0]}".concat(kt.unequal,"${args[1]}\\right)")},erf:{1:"erf\\left(${args[0]}\\right)"},max:"\\max\\left(${args}\\right)",min:"\\min\\left(${args}\\right)",variance:"\\mathrm{Var}\\left(${args}\\right)",acos:{1:"\\cos^{-1}\\left(${args[0]}\\right)"},acosh:{1:"\\cosh^{-1}\\left(${args[0]}\\right)"},acot:{1:"\\cot^{-1}\\left(${args[0]}\\right)"},acoth:{1:"\\coth^{-1}\\left(${args[0]}\\right)"},acsc:{1:"\\csc^{-1}\\left(${args[0]}\\right)"},acsch:{1:"\\mathrm{csch}^{-1}\\left(${args[0]}\\right)"},asec:{1:"\\sec^{-1}\\left(${args[0]}\\right)"},asech:{1:"\\mathrm{sech}^{-1}\\left(${args[0]}\\right)"},asin:{1:"\\sin^{-1}\\left(${args[0]}\\right)"},asinh:{1:"\\sinh^{-1}\\left(${args[0]}\\right)"},atan:{1:"\\tan^{-1}\\left(${args[0]}\\right)"},atan2:{2:"\\mathrm{atan2}\\left(${args}\\right)"},atanh:{1:"\\tanh^{-1}\\left(${args[0]}\\right)"},cos:{1:"\\cos\\left(${args[0]}\\right)"},cosh:{1:"\\cosh\\left(${args[0]}\\right)"},cot:{1:"\\cot\\left(${args[0]}\\right)"},coth:{1:"\\coth\\left(${args[0]}\\right)"},csc:{1:"\\csc\\left(${args[0]}\\right)"},csch:{1:"\\mathrm{csch}\\left(${args[0]}\\right)"},sec:{1:"\\sec\\left(${args[0]}\\right)"},sech:{1:"\\mathrm{sech}\\left(${args[0]}\\right)"},sin:{1:"\\sin\\left(${args[0]}\\right)"},sinh:{1:"\\sinh\\left(${args[0]}\\right)"},tan:{1:"\\tan\\left(${args[0]}\\right)"},tanh:{1:"\\tanh\\left(${args[0]}\\right)"},to:{2:"\\left(${args[0]}".concat(kt.to,"${args[1]}\\right)")},numeric:function(t,n){return t.args[0].toTex()},number:{0:"0",1:"\\left(${args[0]}\\right)",2:"\\left(\\left(${args[0]}\\right)${args[1]}\\right)"},string:{0:'\\mathtt{""}',1:"\\mathrm{string}\\left(${args[0]}\\right)"},bignumber:{0:"0",1:"\\left(${args[0]}\\right)"},complex:{0:"0",1:"\\left(${args[0]}\\right)",2:"\\left(\\left(${args[0]}\\right)+".concat(Oy.i,"\\cdot\\left(${args[1]}\\right)\\right)")},matrix:{0:"\\begin{bmatrix}\\end{bmatrix}",1:"\\left(${args[0]}\\right)",2:"\\left(${args[0]}\\right)"},sparse:{0:"\\begin{bsparse}\\end{bsparse}",1:"\\left(${args[0]}\\right)"},unit:{1:"\\left(${args[0]}\\right)",2:"\\left(\\left(${args[0]}\\right)${args[1]}\\right)"}},nAe="\\mathrm{${name}}\\left(${args}\\right)",gO={deg:"^\\circ"};function Ty(e){return tAe(e,{preserveFormatting:!0})}function DB(e,t){return t=typeof t>"u"?!1:t,t?Ke(gO,e)?gO[e]:"\\mathrm{"+Ty(e)+"}":Ke(Oy,e)?Oy[e]:Ty(e)}var Nd="ConstantNode",rAe=["Node"],oAe=se(Nd,rAe,e=>{var{Node:t}=e;class n extends t{constructor(o){super(),this.value=o}get type(){return Nd}get isConstantNode(){return!0}_compile(o,a){var i=this.value;return function(){return i}}forEach(o){}map(o){return this.clone()}clone(){return new n(this.value)}_toString(o){return Et(this.value,o)}toHTML(o){var a=this._toString(o);switch(an(this.value)){case"number":case"BigNumber":case"Fraction":return'<span class="math-number">'+a+"</span>";case"string":return'<span class="math-string">'+a+"</span>";case"boolean":return'<span class="math-boolean">'+a+"</span>";case"null":return'<span class="math-null-symbol">'+a+"</span>";case"undefined":return'<span class="math-undefined">'+a+"</span>";default:return'<span class="math-symbol">'+a+"</span>"}}toJSON(){return{mathjs:Nd,value:this.value}}static fromJSON(o){return new n(o.value)}_toTex(o){var a=this._toString(o);switch(an(this.value)){case"string":return"\\mathtt{"+Ty(a)+"}";case"number":case"BigNumber":{if(!isFinite(this.value))return this.value.valueOf()<0?"-\\infty":"\\infty";var i=a.toLowerCase().indexOf("e");if(i!==-1)return a.substring(0,i)+"\\cdot10^{"+a.substring(i+1)+"}"}return a;case"Fraction":return this.value.toLatex();default:return a}}}return In(n,"name",Nd),n},{isClass:!0,isNode:!0}),Pd="FunctionAssignmentNode",aAe=["typed","Node"],iAe=se(Pd,aAe,e=>{var{typed:t,Node:n}=e;function r(a,i,l){var s=Yt(a,i,l),u=Yt(a.expr,i,l);return i==="all"||u!==null&&u<=s}class o extends n{constructor(i,l,s){if(super(),typeof i!="string")throw new TypeError('String expected for parameter "name"');if(!Array.isArray(l))throw new TypeError('Array containing strings or objects expected for parameter "params"');if(!Kt(s))throw new TypeError('Node expected for parameter "expr"');if($B.has(i))throw new Error('Illegal function name, "'+i+'" is a reserved keyword');var u=new Set;for(var c of l){var d=typeof c=="string"?c:c.name;if(u.has(d))throw new Error('Duplicate parameter name "'.concat(d,'"'));u.add(d)}this.name=i,this.params=l.map(function(f){return f&&f.name||f}),this.types=l.map(function(f){return f&&f.type||"any"}),this.expr=s}get type(){return Pd}get isFunctionAssignmentNode(){return!0}_compile(i,l){var s=Object.create(l);Pv(this.params,function(v){s[v]=!0});var u=this.expr._compile(i,s),c=this.name,d=this.params,f=h4(this.types,","),p=c+"("+h4(this.params,", ")+")";return function(m,h,g){var x={};x[f]=function(){for(var w=Object.create(h),b=0;b<d.length;b++)w[d[b]]=arguments[b];return u(m,w,g)};var y=t(c,x);return y.syntax=p,m.set(c,y),y}}forEach(i){i(this.expr,"expr",this)}map(i){var l=this._ifNode(i(this.expr,"expr",this));return new o(this.name,this.params.slice(0),l)}clone(){return new o(this.name,this.params.slice(0),this.expr)}_toString(i){var l=i&&i.parenthesis?i.parenthesis:"keep",s=this.expr.toString(i);return r(this,l,i&&i.implicit)&&(s="("+s+")"),this.name+"("+this.params.join(", ")+") = "+s}toJSON(){var i=this.types;return{mathjs:Pd,name:this.name,params:this.params.map(function(l,s){return{name:l,type:i[s]}}),expr:this.expr}}static fromJSON(i){return new o(i.name,i.params,i.expr)}toHTML(i){for(var l=i&&i.parenthesis?i.parenthesis:"keep",s=[],u=0;u<this.params.length;u++)s.push('<span class="math-symbol math-parameter">'+Gr(this.params[u])+"</span>");var c=this.expr.toHTML(i);return r(this,l,i&&i.implicit)&&(c='<span class="math-parenthesis math-round-parenthesis">(</span>'+c+'<span class="math-parenthesis math-round-parenthesis">)</span>'),'<span class="math-function">'+Gr(this.name)+'</span><span class="math-parenthesis math-round-parenthesis">(</span>'+s.join('<span class="math-separator">,</span>')+'<span class="math-parenthesis math-round-parenthesis">)</span><span class="math-operator math-assignment-operator math-variable-assignment-operator math-binary-operator">=</span>'+c}_toTex(i){var l=i&&i.parenthesis?i.parenthesis:"keep",s=this.expr.toTex(i);return r(this,l,i&&i.implicit)&&(s="\\left(".concat(s,"\\right)")),"\\mathrm{"+this.name+"}\\left("+this.params.map(DB).join(",")+"\\right):="+s}}return In(o,"name",Pd),o},{isClass:!0,isNode:!0}),Id="IndexNode",lAe=["Node","size"],sAe=se(Id,lAe,e=>{var{Node:t,size:n}=e;class r extends t{constructor(a,i){if(super(),this.dimensions=a,this.dotNotation=i||!1,!Array.isArray(a)||!a.every(Kt))throw new TypeError('Array containing Nodes expected for parameter "dimensions"');if(this.dotNotation&&!this.isObjectProperty())throw new Error("dotNotation only applicable for object properties")}get type(){return Id}get isIndexNode(){return!0}_compile(a,i){var l=va(this.dimensions,function(u,c){var d=u.filter(v=>v.isSymbolNode&&v.name==="end").length>0;if(d){var f=Object.create(i);f.end=!0;var p=u._compile(a,f);return function(m,h,g){if(!mt(g)&&!Ut(g)&&!Qn(g))throw new TypeError('Cannot resolve "end": context must be a Matrix, Array, or string but is '+an(g));var x=n(g).valueOf(),y=Object.create(h);return y.end=x[c],p(m,y,g)}}else return u._compile(a,i)}),s=no(a,"index");return function(c,d,f){var p=va(l,function(v){return v(c,d,f)});return s(...p)}}forEach(a){for(var i=0;i<this.dimensions.length;i++)a(this.dimensions[i],"dimensions["+i+"]",this)}map(a){for(var i=[],l=0;l<this.dimensions.length;l++)i[l]=this._ifNode(a(this.dimensions[l],"dimensions["+l+"]",this));return new r(i,this.dotNotation)}clone(){return new r(this.dimensions.slice(0),this.dotNotation)}isObjectProperty(){return this.dimensions.length===1&&Rt(this.dimensions[0])&&typeof this.dimensions[0].value=="string"}getObjectProperty(){return this.isObjectProperty()?this.dimensions[0].value:null}_toString(a){return this.dotNotation?"."+this.getObjectProperty():"["+this.dimensions.join(", ")+"]"}toJSON(){return{mathjs:Id,dimensions:this.dimensions,dotNotation:this.dotNotation}}static fromJSON(a){return new r(a.dimensions,a.dotNotation)}toHTML(a){for(var i=[],l=0;l<this.dimensions.length;l++)i[l]=this.dimensions[l].toHTML();return this.dotNotation?'<span class="math-operator math-accessor-operator">.</span><span class="math-symbol math-property">'+Gr(this.getObjectProperty())+"</span>":'<span class="math-parenthesis math-square-parenthesis">[</span>'+i.join('<span class="math-separator">,</span>')+'<span class="math-parenthesis math-square-parenthesis">]</span>'}_toTex(a){var i=this.dimensions.map(function(l){return l.toTex(a)});return this.dotNotation?"."+this.getObjectProperty():"_{"+i.join(",")+"}"}}return In(r,"name",Id),r},{isClass:!0,isNode:!0}),_d="ObjectNode",uAe=["Node"],cAe=se(_d,uAe,e=>{var{Node:t}=e;class n extends t{constructor(o){if(super(),this.properties=o||{},o&&(typeof o!="object"||!Object.keys(o).every(function(a){return Kt(o[a])})))throw new TypeError("Object containing Nodes expected")}get type(){return _d}get isObjectNode(){return!0}_compile(o,a){var i={};for(var l in this.properties)if(Ke(this.properties,l)){var s=Sd(l),u=JSON.parse(s);if(!jw(this.properties,u))throw new Error('No access to property "'+u+'"');i[u]=this.properties[l]._compile(o,a)}return function(d,f,p){var v={};for(var m in i)Ke(i,m)&&(v[m]=i[m](d,f,p));return v}}forEach(o){for(var a in this.properties)Ke(this.properties,a)&&o(this.properties[a],"properties["+Sd(a)+"]",this)}map(o){var a={};for(var i in this.properties)Ke(this.properties,i)&&(a[i]=this._ifNode(o(this.properties[i],"properties["+Sd(i)+"]",this)));return new n(a)}clone(){var o={};for(var a in this.properties)Ke(this.properties,a)&&(o[a]=this.properties[a]);return new n(o)}_toString(o){var a=[];for(var i in this.properties)Ke(this.properties,i)&&a.push(Sd(i)+": "+this.properties[i].toString(o));return"{"+a.join(", ")+"}"}toJSON(){return{mathjs:_d,properties:this.properties}}static fromJSON(o){return new n(o.properties)}toHTML(o){var a=[];for(var i in this.properties)Ke(this.properties,i)&&a.push('<span class="math-symbol math-property">'+Gr(i)+'</span><span class="math-operator math-assignment-operator math-property-assignment-operator math-binary-operator">:</span>'+this.properties[i].toHTML(o));return'<span class="math-parenthesis math-curly-parenthesis">{</span>'+a.join('<span class="math-separator">,</span>')+'<span class="math-parenthesis math-curly-parenthesis">}</span>'}_toTex(o){var a=[];for(var i in this.properties)Ke(this.properties,i)&&a.push("\\mathbf{"+i+":} & "+this.properties[i].toTex(o)+"\\\\");var l="\\left\\{\\begin{array}{ll}"+a.join(`
- `)+"\\end{array}\\right\\}";return l}}return In(n,"name",_d),n},{isClass:!0,isNode:!0}),Bd="OperatorNode",dAe=["Node"],fAe=se(Bd,dAe,e=>{var{Node:t}=e;function n(a,i){var l=a;if(i==="auto")for(;Vo(l);)l=l.content;return Rt(l)?!0:bn(l)?n(l.args[0],i):!1}function r(a,i,l,s,u){var c=Yt(a,i,l),d=ru(a,i);if(i==="all"||s.length>2&&a.getIdentifier()!=="OperatorNode:add"&&a.getIdentifier()!=="OperatorNode:multiply")return s.map(function(A){switch(A.getContent().type){case"ArrayNode":case"ConstantNode":case"SymbolNode":case"ParenthesisNode":return!1;default:return!0}});var f;switch(s.length){case 0:f=[];break;case 1:{var p=Yt(s[0],i,l,a);if(u&&p!==null){var v,m;if(i==="keep"?(v=s[0].getIdentifier(),m=a.getIdentifier()):(v=s[0].getContent().getIdentifier(),m=a.getContent().getIdentifier()),co[c][m].latexLeftParens===!1){f=[!1];break}if(co[p][v].latexParens===!1){f=[!1];break}}if(p===null){f=[!1];break}if(p<=c){f=[!0];break}f=[!1]}break;case 2:{var h,g=Yt(s[0],i,l,a),x=wg(a,s[0],i);g===null?h=!1:g===c&&d==="right"&&!x||g<c?h=!0:h=!1;var y,w=Yt(s[1],i,l,a),b=wg(a,s[1],i);if(w===null?y=!1:w===c&&d==="left"&&!b||w<c?y=!0:y=!1,u){var S,$,D;i==="keep"?(S=a.getIdentifier(),$=a.args[0].getIdentifier(),D=a.args[1].getIdentifier()):(S=a.getContent().getIdentifier(),$=a.args[0].getContent().getIdentifier(),D=a.args[1].getContent().getIdentifier()),g!==null&&(co[c][S].latexLeftParens===!1&&(h=!1),co[g][$].latexParens===!1&&(h=!1)),w!==null&&(co[c][S].latexRightParens===!1&&(y=!1),co[w][D].latexParens===!1&&(y=!1))}f=[h,y]}break;default:(a.getIdentifier()==="OperatorNode:add"||a.getIdentifier()==="OperatorNode:multiply")&&(f=s.map(function(A){var T=Yt(A,i,l,a),M=wg(a,A,i),B=ru(A,i);return T===null?!1:c===T&&d===B&&!M?!0:T<c}));break}if(s.length>=2&&a.getIdentifier()==="OperatorNode:multiply"&&a.implicit&&i!=="all"&&l==="hide")for(var O=1;O<f.length;++O)n(s[O],i)&&!f[O-1]&&(i!=="keep"||!Vo(s[O-1]))&&(f[O]=!0);return f}class o extends t{constructor(i,l,s,u,c){if(super(),typeof i!="string")throw new TypeError('string expected for parameter "op"');if(typeof l!="string")throw new TypeError('string expected for parameter "fn"');if(!Array.isArray(s)||!s.every(Kt))throw new TypeError('Array containing Nodes expected for parameter "args"');this.implicit=u===!0,this.isPercentage=c===!0,this.op=i,this.fn=l,this.args=s||[]}get type(){return Bd}get isOperatorNode(){return!0}_compile(i,l){if(typeof this.fn!="string"||!Vw(i,this.fn))throw i[this.fn]?new Error('No access to function "'+this.fn+'"'):new Error("Function "+this.fn+' missing in provided namespace "math"');var s=no(i,this.fn),u=va(this.args,function(p){return p._compile(i,l)});if(u.length===1){var c=u[0];return function(v,m,h){return s(c(v,m,h))}}else if(u.length===2){var d=u[0],f=u[1];return function(v,m,h){return s(d(v,m,h),f(v,m,h))}}else return function(v,m,h){return s.apply(null,va(u,function(g){return g(v,m,h)}))}}forEach(i){for(var l=0;l<this.args.length;l++)i(this.args[l],"args["+l+"]",this)}map(i){for(var l=[],s=0;s<this.args.length;s++)l[s]=this._ifNode(i(this.args[s],"args["+s+"]",this));return new o(this.op,this.fn,l,this.implicit,this.isPercentage)}clone(){return new o(this.op,this.fn,this.args.slice(0),this.implicit,this.isPercentage)}isUnary(){return this.args.length===1}isBinary(){return this.args.length===2}_toString(i){var l=i&&i.parenthesis?i.parenthesis:"keep",s=i&&i.implicit?i.implicit:"hide",u=this.args,c=r(this,l,s,u,!1);if(u.length===1){var d=ru(this,l),f=u[0].toString(i);c[0]&&(f="("+f+")");var p=/[a-zA-Z]+/.test(this.op);return d==="right"?this.op+(p?" ":"")+f:d==="left"?f+(p?" ":"")+this.op:f+this.op}else if(u.length===2){var v=u[0].toString(i),m=u[1].toString(i);return c[0]&&(v="("+v+")"),c[1]&&(m="("+m+")"),this.implicit&&this.getIdentifier()==="OperatorNode:multiply"&&s==="hide"?v+" "+m:v+" "+this.op+" "+m}else if(u.length>2&&(this.getIdentifier()==="OperatorNode:add"||this.getIdentifier()==="OperatorNode:multiply")){var h=u.map(function(g,x){return g=g.toString(i),c[x]&&(g="("+g+")"),g});return this.implicit&&this.getIdentifier()==="OperatorNode:multiply"&&s==="hide"?h.join(" "):h.join(" "+this.op+" ")}else return this.fn+"("+this.args.join(", ")+")"}toJSON(){return{mathjs:Bd,op:this.op,fn:this.fn,args:this.args,implicit:this.implicit,isPercentage:this.isPercentage}}static fromJSON(i){return new o(i.op,i.fn,i.args,i.implicit,i.isPercentage)}toHTML(i){var l=i&&i.parenthesis?i.parenthesis:"keep",s=i&&i.implicit?i.implicit:"hide",u=this.args,c=r(this,l,s,u,!1);if(u.length===1){var d=ru(this,l),f=u[0].toHTML(i);return c[0]&&(f='<span class="math-parenthesis math-round-parenthesis">(</span>'+f+'<span class="math-parenthesis math-round-parenthesis">)</span>'),d==="right"?'<span class="math-operator math-unary-operator math-lefthand-unary-operator">'+Gr(this.op)+"</span>"+f:f+'<span class="math-operator math-unary-operator math-righthand-unary-operator">'+Gr(this.op)+"</span>"}else if(u.length===2){var p=u[0].toHTML(i),v=u[1].toHTML(i);return c[0]&&(p='<span class="math-parenthesis math-round-parenthesis">(</span>'+p+'<span class="math-parenthesis math-round-parenthesis">)</span>'),c[1]&&(v='<span class="math-parenthesis math-round-parenthesis">(</span>'+v+'<span class="math-parenthesis math-round-parenthesis">)</span>'),this.implicit&&this.getIdentifier()==="OperatorNode:multiply"&&s==="hide"?p+'<span class="math-operator math-binary-operator math-implicit-binary-operator"></span>'+v:p+'<span class="math-operator math-binary-operator math-explicit-binary-operator">'+Gr(this.op)+"</span>"+v}else{var m=u.map(function(h,g){return h=h.toHTML(i),c[g]&&(h='<span class="math-parenthesis math-round-parenthesis">(</span>'+h+'<span class="math-parenthesis math-round-parenthesis">)</span>'),h});return u.length>2&&(this.getIdentifier()==="OperatorNode:add"||this.getIdentifier()==="OperatorNode:multiply")?this.implicit&&this.getIdentifier()==="OperatorNode:multiply"&&s==="hide"?m.join('<span class="math-operator math-binary-operator math-implicit-binary-operator"></span>'):m.join('<span class="math-operator math-binary-operator math-explicit-binary-operator">'+Gr(this.op)+"</span>"):'<span class="math-function">'+Gr(this.fn)+'</span><span class="math-paranthesis math-round-parenthesis">(</span>'+m.join('<span class="math-separator">,</span>')+'<span class="math-paranthesis math-round-parenthesis">)</span>'}}_toTex(i){var l=i&&i.parenthesis?i.parenthesis:"keep",s=i&&i.implicit?i.implicit:"hide",u=this.args,c=r(this,l,s,u,!0),d=kt[this.fn];if(d=typeof d>"u"?this.op:d,u.length===1){var f=ru(this,l),p=u[0].toTex(i);return c[0]&&(p="\\left(".concat(p,"\\right)")),f==="right"?d+p:p+d}else if(u.length===2){var v=u[0],m=v.toTex(i);c[0]&&(m="\\left(".concat(m,"\\right)"));var h=u[1],g=h.toTex(i);c[1]&&(g="\\left(".concat(g,"\\right)"));var x;switch(l==="keep"?x=v.getIdentifier():x=v.getContent().getIdentifier(),this.getIdentifier()){case"OperatorNode:divide":return d+"{"+m+"}{"+g+"}";case"OperatorNode:pow":switch(m="{"+m+"}",g="{"+g+"}",x){case"ConditionalNode":case"OperatorNode:divide":m="\\left(".concat(m,"\\right)")}break;case"OperatorNode:multiply":if(this.implicit&&s==="hide")return m+"~"+g}return m+d+g}else if(u.length>2&&(this.getIdentifier()==="OperatorNode:add"||this.getIdentifier()==="OperatorNode:multiply")){var y=u.map(function(w,b){return w=w.toTex(i),c[b]&&(w="\\left(".concat(w,"\\right)")),w});return this.getIdentifier()==="OperatorNode:multiply"&&this.implicit&&s==="hide"?y.join("~"):y.join(d)}else return"\\mathrm{"+this.fn+"}\\left("+u.map(function(w){return w.toTex(i)}).join(",")+"\\right)"}getIdentifier(){return this.type+":"+this.fn}}return In(o,"name",Bd),o},{isClass:!0,isNode:!0}),Fd="ParenthesisNode",pAe=["Node"],mAe=se(Fd,pAe,e=>{var{Node:t}=e;class n extends t{constructor(o){if(super(),!Kt(o))throw new TypeError('Node expected for parameter "content"');this.content=o}get type(){return Fd}get isParenthesisNode(){return!0}_compile(o,a){return this.content._compile(o,a)}getContent(){return this.content.getContent()}forEach(o){o(this.content,"content",this)}map(o){var a=o(this.content,"content",this);return new n(a)}clone(){return new n(this.content)}_toString(o){return!o||o&&!o.parenthesis||o&&o.parenthesis==="keep"?"("+this.content.toString(o)+")":this.content.toString(o)}toJSON(){return{mathjs:Fd,content:this.content}}static fromJSON(o){return new n(o.content)}toHTML(o){return!o||o&&!o.parenthesis||o&&o.parenthesis==="keep"?'<span class="math-parenthesis math-round-parenthesis">(</span>'+this.content.toHTML(o)+'<span class="math-parenthesis math-round-parenthesis">)</span>':this.content.toHTML(o)}_toTex(o){return!o||o&&!o.parenthesis||o&&o.parenthesis==="keep"?"\\left(".concat(this.content.toTex(o),"\\right)"):this.content.toTex(o)}}return In(n,"name",Fd),n},{isClass:!0,isNode:!0}),Rd="RangeNode",vAe=["Node"],hAe=se(Rd,vAe,e=>{var{Node:t}=e;function n(o,a,i){var l=Yt(o,a,i),s={},u=Yt(o.start,a,i);if(s.start=u!==null&&u<=l||a==="all",o.step){var c=Yt(o.step,a,i);s.step=c!==null&&c<=l||a==="all"}var d=Yt(o.end,a,i);return s.end=d!==null&&d<=l||a==="all",s}class r extends t{constructor(a,i,l){if(super(),!Kt(a))throw new TypeError("Node expected");if(!Kt(i))throw new TypeError("Node expected");if(l&&!Kt(l))throw new TypeError("Node expected");if(arguments.length>3)throw new Error("Too many arguments");this.start=a,this.end=i,this.step=l||null}get type(){return Rd}get isRangeNode(){return!0}needsEnd(){var a=this.filter(function(i){return Pn(i)&&i.name==="end"});return a.length>0}_compile(a,i){var l=a.range,s=this.start._compile(a,i),u=this.end._compile(a,i);if(this.step){var c=this.step._compile(a,i);return function(f,p,v){return l(s(f,p,v),u(f,p,v),c(f,p,v))}}else return function(f,p,v){return l(s(f,p,v),u(f,p,v))}}forEach(a){a(this.start,"start",this),a(this.end,"end",this),this.step&&a(this.step,"step",this)}map(a){return new r(this._ifNode(a(this.start,"start",this)),this._ifNode(a(this.end,"end",this)),this.step&&this._ifNode(a(this.step,"step",this)))}clone(){return new r(this.start,this.end,this.step&&this.step)}_toString(a){var i=a&&a.parenthesis?a.parenthesis:"keep",l=n(this,i,a&&a.implicit),s,u=this.start.toString(a);if(l.start&&(u="("+u+")"),s=u,this.step){var c=this.step.toString(a);l.step&&(c="("+c+")"),s+=":"+c}var d=this.end.toString(a);return l.end&&(d="("+d+")"),s+=":"+d,s}toJSON(){return{mathjs:Rd,start:this.start,end:this.end,step:this.step}}static fromJSON(a){return new r(a.start,a.end,a.step)}toHTML(a){var i=a&&a.parenthesis?a.parenthesis:"keep",l=n(this,i,a&&a.implicit),s,u=this.start.toHTML(a);if(l.start&&(u='<span class="math-parenthesis math-round-parenthesis">(</span>'+u+'<span class="math-parenthesis math-round-parenthesis">)</span>'),s=u,this.step){var c=this.step.toHTML(a);l.step&&(c='<span class="math-parenthesis math-round-parenthesis">(</span>'+c+'<span class="math-parenthesis math-round-parenthesis">)</span>'),s+='<span class="math-operator math-range-operator">:</span>'+c}var d=this.end.toHTML(a);return l.end&&(d='<span class="math-parenthesis math-round-parenthesis">(</span>'+d+'<span class="math-parenthesis math-round-parenthesis">)</span>'),s+='<span class="math-operator math-range-operator">:</span>'+d,s}_toTex(a){var i=a&&a.parenthesis?a.parenthesis:"keep",l=n(this,i,a&&a.implicit),s=this.start.toTex(a);if(l.start&&(s="\\left(".concat(s,"\\right)")),this.step){var u=this.step.toTex(a);l.step&&(u="\\left(".concat(u,"\\right)")),s+=":"+u}var c=this.end.toTex(a);return l.end&&(c="\\left(".concat(c,"\\right)")),s+=":"+c,s}}return In(r,"name",Rd),r},{isClass:!0,isNode:!0}),zd="RelationalNode",gAe=["Node"],yAe=se(zd,gAe,e=>{var{Node:t}=e,n={equal:"==",unequal:"!=",smaller:"<",larger:">",smallerEq:"<=",largerEq:">="};class r extends t{constructor(a,i){if(super(),!Array.isArray(a))throw new TypeError("Parameter conditionals must be an array");if(!Array.isArray(i))throw new TypeError("Parameter params must be an array");if(a.length!==i.length-1)throw new TypeError("Parameter params must contain exactly one more element than parameter conditionals");this.conditionals=a,this.params=i}get type(){return zd}get isRelationalNode(){return!0}_compile(a,i){var l=this,s=this.params.map(u=>u._compile(a,i));return function(c,d,f){for(var p,v=s[0](c,d,f),m=0;m<l.conditionals.length;m++){p=v,v=s[m+1](c,d,f);var h=no(a,l.conditionals[m]);if(!h(p,v))return!1}return!0}}forEach(a){this.params.forEach((i,l)=>a(i,"params["+l+"]",this),this)}map(a){return new r(this.conditionals.slice(),this.params.map((i,l)=>this._ifNode(a(i,"params["+l+"]",this)),this))}clone(){return new r(this.conditionals,this.params)}_toString(a){for(var i=a&&a.parenthesis?a.parenthesis:"keep",l=Yt(this,i,a&&a.implicit),s=this.params.map(function(d,f){var p=Yt(d,i,a&&a.implicit);return i==="all"||p!==null&&p<=l?"("+d.toString(a)+")":d.toString(a)}),u=s[0],c=0;c<this.conditionals.length;c++)u+=" "+n[this.conditionals[c]],u+=" "+s[c+1];return u}toJSON(){return{mathjs:zd,conditionals:this.conditionals,params:this.params}}static fromJSON(a){return new r(a.conditionals,a.params)}toHTML(a){for(var i=a&&a.parenthesis?a.parenthesis:"keep",l=Yt(this,i,a&&a.implicit),s=this.params.map(function(d,f){var p=Yt(d,i,a&&a.implicit);return i==="all"||p!==null&&p<=l?'<span class="math-parenthesis math-round-parenthesis">(</span>'+d.toHTML(a)+'<span class="math-parenthesis math-round-parenthesis">)</span>':d.toHTML(a)}),u=s[0],c=0;c<this.conditionals.length;c++)u+='<span class="math-operator math-binary-operator math-explicit-binary-operator">'+Gr(n[this.conditionals[c]])+"</span>"+s[c+1];return u}_toTex(a){for(var i=a&&a.parenthesis?a.parenthesis:"keep",l=Yt(this,i,a&&a.implicit),s=this.params.map(function(d,f){var p=Yt(d,i,a&&a.implicit);return i==="all"||p!==null&&p<=l?"\\left("+d.toTex(a)+"\right)":d.toTex(a)}),u=s[0],c=0;c<this.conditionals.length;c++)u+=kt[this.conditionals[c]]+s[c+1];return u}}return In(r,"name",zd),r},{isClass:!0,isNode:!0}),bAe="SymbolNode",xAe=["math","?Unit","Node"],wAe=se(bAe,xAe,e=>{var{math:t,Unit:n,Node:r}=e;function o(i){return n?n.isValuelessUnit(i):!1}class a extends r{constructor(l){if(super(),typeof l!="string")throw new TypeError('String expected for parameter "name"');this.name=l}get type(){return"SymbolNode"}get isSymbolNode(){return!0}_compile(l,s){var u=this.name;if(s[u]===!0)return function(d,f,p){return f[u]};if(u in l)return function(d,f,p){return d.has(u)?d.get(u):no(l,u)};var c=o(u);return function(d,f,p){return d.has(u)?d.get(u):c?new n(null,u):a.onUndefinedSymbol(u)}}forEach(l){}map(l){return this.clone()}static onUndefinedSymbol(l){throw new Error("Undefined symbol "+l)}clone(){return new a(this.name)}_toString(l){return this.name}toHTML(l){var s=Gr(this.name);return s==="true"||s==="false"?'<span class="math-symbol math-boolean">'+s+"</span>":s==="i"?'<span class="math-symbol math-imaginary-symbol">'+s+"</span>":s==="Infinity"?'<span class="math-symbol math-infinity-symbol">'+s+"</span>":s==="NaN"?'<span class="math-symbol math-nan-symbol">'+s+"</span>":s==="null"?'<span class="math-symbol math-null-symbol">'+s+"</span>":s==="undefined"?'<span class="math-symbol math-undefined-symbol">'+s+"</span>":'<span class="math-symbol">'+s+"</span>"}toJSON(){return{mathjs:"SymbolNode",name:this.name}}static fromJSON(l){return new a(l.name)}_toTex(l){var s=!1;typeof t[this.name]>"u"&&o(this.name)&&(s=!0);var u=DB(this.name,s);return u[0]==="\\"?u:" "+u}}return a},{isClass:!0,isNode:!0});function du(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return typeof e.createSubScope=="function"?y4(e.createSubScope(),...n):y4(ws(),e,...n)}var Ld="FunctionNode",SAe=["math","Node","SymbolNode"],CAe=se(Ld,SAe,e=>{var{math:t,Node:n,SymbolNode:r}=e,o=l=>Et(l,{truncate:78});function a(l,s,u){for(var c="",d=/\$(?:\{([a-z_][a-z_0-9]*)(?:\[([0-9]+)\])?\}|\$)/gi,f=0,p;(p=d.exec(l))!==null;)if(c+=l.substring(f,p.index),f=p.index,p[0]==="$$")c+="$",f++;else{f+=p[0].length;var v=s[p[1]];if(!v)throw new ReferenceError("Template: Property "+p[1]+" does not exist.");if(p[2]===void 0)switch(typeof v){case"string":c+=v;break;case"object":if(Kt(v))c+=v.toTex(u);else if(Array.isArray(v))c+=v.map(function(m,h){if(Kt(m))return m.toTex(u);throw new TypeError("Template: "+p[1]+"["+h+"] is not a Node.")}).join(",");else throw new TypeError("Template: "+p[1]+" has to be a Node, String or array of Nodes");break;default:throw new TypeError("Template: "+p[1]+" has to be a Node, String or array of Nodes")}else if(Kt(v[p[2]]&&v[p[2]]))c+=v[p[2]].toTex(u);else throw new TypeError("Template: "+p[1]+"["+p[2]+"] is not a Node.")}return c+=l.slice(f),c}class i extends n{constructor(s,u){if(super(),typeof s=="string"&&(s=new r(s)),!Kt(s))throw new TypeError('Node expected as parameter "fn"');if(!Array.isArray(u)||!u.every(Kt))throw new TypeError('Array containing Nodes expected for parameter "args"');this.fn=s,this.args=u||[]}get name(){return this.fn.name||""}get type(){return Ld}get isFunctionNode(){return!0}_compile(s,u){var c=this.args.map($=>$._compile(s,u));if(Pn(this.fn)){var d=this.fn.name;if(u[d]){var h=this.args;return function(D,O,A){var T=O[d];if(typeof T!="function")throw new TypeError("Argument '".concat(d,"' was not a function; received: ").concat(o(T)));if(T.rawArgs)return T(h,s,du(D,O),D);var M=c.map(B=>B(D,O,A));return T.apply(T,M)}}else{var f=d in s?no(s,d):void 0,p=typeof f=="function"&&f.rawArgs===!0,v=$=>{var D;if($.has(d))D=$.get(d);else if(d in s)D=no(s,d);else return i.onUndefinedFunction(d);if(typeof D=="function")return D;throw new TypeError("'".concat(d,`' is not a function; its value is:
- `).concat(o(D)))};if(p){var m=this.args;return function(D,O,A){var T=v(D);return T(m,s,du(D,O),D)}}else switch(c.length){case 0:return function(D,O,A){var T=v(D);return T()};case 1:return function(D,O,A){var T=v(D),M=c[0];return T(M(D,O,A))};case 2:return function(D,O,A){var T=v(D),M=c[0],B=c[1];return T(M(D,O,A),B(D,O,A))};default:return function(D,O,A){var T=v(D),M=c.map(B=>B(D,O,A));return T(...M)}}}}else if(ii(this.fn)&&cl(this.fn.index)&&this.fn.index.isObjectProperty()){var g=this.fn.object._compile(s,u),x=this.fn.index.getObjectProperty(),y=this.args;return function(D,O,A){var T=g(D,O,A);Q1e(T,x);var M=T[x]&&T[x].rawArgs;if(M)return T[x](y,s,du(D,O),D);var B=c.map(F=>F(D,O,A));return T[x].apply(T,B)}}else{var w=this.fn.toString(),b=this.fn._compile(s,u),S=this.args;return function(D,O,A){var T=b(D,O,A);if(typeof T!="function")throw new TypeError("Expression '".concat(w,"' did not evaluate to a function; value is:")+`
- `.concat(o(T)));if(T.rawArgs)return T(S,s,du(D,O),D);var M=c.map(B=>B(D,O,A));return T.apply(T,M)}}}forEach(s){s(this.fn,"fn",this);for(var u=0;u<this.args.length;u++)s(this.args[u],"args["+u+"]",this)}map(s){for(var u=this._ifNode(s(this.fn,"fn",this)),c=[],d=0;d<this.args.length;d++)c[d]=this._ifNode(s(this.args[d],"args["+d+"]",this));return new i(u,c)}clone(){return new i(this.fn,this.args.slice(0))}toString(s){var u,c=this.fn.toString(s);return s&&typeof s.handler=="object"&&Ke(s.handler,c)&&(u=s.handler[c](this,s)),typeof u<"u"?u:super.toString(s)}_toString(s){var u=this.args.map(function(d){return d.toString(s)}),c=Ls(this.fn)?"("+this.fn.toString(s)+")":this.fn.toString(s);return c+"("+u.join(", ")+")"}toJSON(){return{mathjs:Ld,fn:this.fn,args:this.args}}toHTML(s){var u=this.args.map(function(c){return c.toHTML(s)});return'<span class="math-function">'+Gr(this.fn)+'</span><span class="math-paranthesis math-round-parenthesis">(</span>'+u.join('<span class="math-separator">,</span>')+'<span class="math-paranthesis math-round-parenthesis">)</span>'}toTex(s){var u;return s&&typeof s.handler=="object"&&Ke(s.handler,this.name)&&(u=s.handler[this.name](this,s)),typeof u<"u"?u:super.toTex(s)}_toTex(s){var u=this.args.map(function(f){return f.toTex(s)}),c;hO[this.name]&&(c=hO[this.name]),t[this.name]&&(typeof t[this.name].toTex=="function"||typeof t[this.name].toTex=="object"||typeof t[this.name].toTex=="string")&&(c=t[this.name].toTex);var d;switch(typeof c){case"function":d=c(this,s);break;case"string":d=a(c,this,s);break;case"object":switch(typeof c[u.length]){case"function":d=c[u.length](this,s);break;case"string":d=a(c[u.length],this,s);break}}return typeof d<"u"?d:a(nAe,this,s)}getIdentifier(){return this.type+":"+this.name}}return In(i,"name",Ld),In(i,"onUndefinedFunction",function(l){throw new Error("Undefined function "+l)}),In(i,"fromJSON",function(l){return new i(l.fn,l.args)}),i},{isClass:!0,isNode:!0}),yO="parse",$Ae=["typed","numeric","config","AccessorNode","ArrayNode","AssignmentNode","BlockNode","ConditionalNode","ConstantNode","FunctionAssignmentNode","FunctionNode","IndexNode","ObjectNode","OperatorNode","ParenthesisNode","RangeNode","RelationalNode","SymbolNode"],EAe=se(yO,$Ae,e=>{var{typed:t,numeric:n,config:r,AccessorNode:o,ArrayNode:a,AssignmentNode:i,BlockNode:l,ConditionalNode:s,ConstantNode:u,FunctionAssignmentNode:c,FunctionNode:d,IndexNode:f,ObjectNode:p,OperatorNode:v,ParenthesisNode:m,RangeNode:h,RelationalNode:g,SymbolNode:x}=e,y=t(yO,{string:function(fe){return L(fe,{})},"Array | Matrix":function(fe){return w(fe,{})},"string, Object":function(fe,De){var Ie=De.nodes!==void 0?De.nodes:{};return L(fe,Ie)},"Array | Matrix, Object":w});function w(W){var fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},De=fe.nodes!==void 0?fe.nodes:{};return Tt(W,function(Ie){if(typeof Ie!="string")throw new TypeError("String expected");return L(Ie,De)})}var b={NULL:0,DELIMITER:1,NUMBER:2,SYMBOL:3,UNKNOWN:4},S={",":!0,"(":!0,")":!0,"[":!0,"]":!0,"{":!0,"}":!0,'"':!0,"'":!0,";":!0,"+":!0,"-":!0,"*":!0,".*":!0,"/":!0,"./":!0,"%":!0,"^":!0,".^":!0,"~":!0,"!":!0,"&":!0,"|":!0,"^|":!0,"=":!0,":":!0,"?":!0,"==":!0,"!=":!0,"<":!0,">":!0,"<=":!0,">=":!0,"<<":!0,">>":!0,">>>":!0},$={mod:!0,to:!0,in:!0,and:!0,xor:!0,or:!0,not:!0},D={true:!0,false:!1,null:null,undefined:void 0},O=["NaN","Infinity"];function A(){return{extraNodes:{},expression:"",comment:"",index:0,token:"",tokenType:b.NULL,nestingLevel:0,conditionalLevel:null}}function T(W,fe){return W.expression.substr(W.index,fe)}function M(W){return T(W,1)}function B(W){W.index++}function F(W){return W.expression.charAt(W.index-1)}function P(W){return W.expression.charAt(W.index+1)}function I(W){for(W.tokenType=b.NULL,W.token="",W.comment="";;){if(M(W)==="#")for(;M(W)!==`
- `&&M(W)!=="";)W.comment+=M(W),B(W);if(y.isWhitespace(M(W),W.nestingLevel))B(W);else break}if(M(W)===""){W.tokenType=b.DELIMITER;return}if(M(W)===`
- `&&!W.nestingLevel){W.tokenType=b.DELIMITER,W.token=M(W),B(W);return}var fe=M(W),De=T(W,2),Ie=T(W,3);if(Ie.length===3&&S[Ie]){W.tokenType=b.DELIMITER,W.token=Ie,B(W),B(W),B(W);return}if(De.length===2&&S[De]){W.tokenType=b.DELIMITER,W.token=De,B(W),B(W);return}if(S[fe]){W.tokenType=b.DELIMITER,W.token=fe,B(W);return}if(y.isDigitDot(fe)){W.tokenType=b.NUMBER;var Ve=T(W,2);if(Ve==="0b"||Ve==="0o"||Ve==="0x"){for(W.token+=M(W),B(W),W.token+=M(W),B(W);y.isHexDigit(M(W));)W.token+=M(W),B(W);if(M(W)===".")for(W.token+=".",B(W);y.isHexDigit(M(W));)W.token+=M(W),B(W);else if(M(W)==="i")for(W.token+="i",B(W);y.isDigit(M(W));)W.token+=M(W),B(W);return}if(M(W)==="."){if(W.token+=M(W),B(W),!y.isDigit(M(W))){W.tokenType=b.DELIMITER;return}}else{for(;y.isDigit(M(W));)W.token+=M(W),B(W);y.isDecimalMark(M(W),P(W))&&(W.token+=M(W),B(W))}for(;y.isDigit(M(W));)W.token+=M(W),B(W);if(M(W)==="E"||M(W)==="e"){if(y.isDigit(P(W))||P(W)==="-"||P(W)==="+"){if(W.token+=M(W),B(W),(M(W)==="+"||M(W)==="-")&&(W.token+=M(W),B(W)),!y.isDigit(M(W)))throw Be(W,'Digit expected, got "'+M(W)+'"');for(;y.isDigit(M(W));)W.token+=M(W),B(W);if(y.isDecimalMark(M(W),P(W)))throw Be(W,'Digit expected, got "'+M(W)+'"')}else if(P(W)===".")throw B(W),Be(W,'Digit expected, got "'+M(W)+'"')}return}if(y.isAlpha(M(W),F(W),P(W))){for(;y.isAlpha(M(W),F(W),P(W))||y.isDigit(M(W));)W.token+=M(W),B(W);Ke($,W.token)?W.tokenType=b.DELIMITER:W.tokenType=b.SYMBOL;return}for(W.tokenType=b.UNKNOWN;M(W)!=="";)W.token+=M(W),B(W);throw Be(W,'Syntax error in part "'+W.token+'"')}function N(W){do I(W);while(W.token===`
- `)}function R(W){W.nestingLevel++}function _(W){W.nestingLevel--}y.isAlpha=function(fe,De,Ie){return y.isValidLatinOrGreek(fe)||y.isValidMathSymbol(fe,Ie)||y.isValidMathSymbol(De,fe)},y.isValidLatinOrGreek=function(fe){return/^[a-zA-Z_$\u00C0-\u02AF\u0370-\u03FF\u2100-\u214F]$/.test(fe)},y.isValidMathSymbol=function(fe,De){return/^[\uD835]$/.test(fe)&&/^[\uDC00-\uDFFF]$/.test(De)&&/^[^\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDFCC\uDFCD]$/.test(De)},y.isWhitespace=function(fe,De){return fe===" "||fe===" "||fe===`
- `&&De>0},y.isDecimalMark=function(fe,De){return fe==="."&&De!=="/"&&De!=="*"&&De!=="^"},y.isDigitDot=function(fe){return fe>="0"&&fe<="9"||fe==="."},y.isDigit=function(fe){return fe>="0"&&fe<="9"},y.isHexDigit=function(fe){return fe>="0"&&fe<="9"||fe>="a"&&fe<="f"||fe>="A"&&fe<="F"};function L(W,fe){var De=A();E(De,{expression:W,extraNodes:fe}),I(De);var Ie=k(De);if(De.token!=="")throw De.tokenType===b.DELIMITER?je(De,"Unexpected operator "+De.token):Be(De,'Unexpected part "'+De.token+'"');return Ie}function k(W){var fe,De=[],Ie;for(W.token!==""&&W.token!==`
- `&&W.token!==";"&&(fe=H(W),W.comment&&(fe.comment=W.comment));W.token===`
- `||W.token===";";)De.length===0&&fe&&(Ie=W.token!==";",De.push({node:fe,visible:Ie})),I(W),W.token!==`
- `&&W.token!==";"&&W.token!==""&&(fe=H(W),W.comment&&(fe.comment=W.comment),Ie=W.token!==";",De.push({node:fe,visible:Ie}));return De.length>0?new l(De):(fe||(fe=new u(void 0),W.comment&&(fe.comment=W.comment)),fe)}function H(W){var fe,De,Ie,Ve,Ge=V(W);if(W.token==="="){if(Pn(Ge))return fe=Ge.name,N(W),Ie=H(W),new i(new x(fe),Ie);if(ii(Ge))return N(W),Ie=H(W),new i(Ge.object,Ge.index,Ie);if(Sa(Ge)&&Pn(Ge.fn)&&(Ve=!0,De=[],fe=Ge.name,Ge.args.forEach(function(Ct,Nt){Pn(Ct)?De[Nt]=Ct.name:Ve=!1}),Ve))return N(W),Ie=H(W),new c(fe,De,Ie);throw Be(W,"Invalid left hand side of assignment operator =")}return Ge}function V(W){for(var fe=U(W);W.token==="?";){var De=W.conditionalLevel;W.conditionalLevel=W.nestingLevel,N(W);var Ie=fe,Ve=H(W);if(W.token!==":")throw Be(W,"False part of conditional expression expected");W.conditionalLevel=null,N(W);var Ge=H(W);fe=new s(Ie,Ve,Ge),W.conditionalLevel=De}return fe}function U(W){for(var fe=q(W);W.token==="or";)N(W),fe=new v("or","or",[fe,q(W)]);return fe}function q(W){for(var fe=K(W);W.token==="xor";)N(W),fe=new v("xor","xor",[fe,K(W)]);return fe}function K(W){for(var fe=X(W);W.token==="and";)N(W),fe=new v("and","and",[fe,X(W)]);return fe}function X(W){for(var fe=re(W);W.token==="|";)N(W),fe=new v("|","bitOr",[fe,re(W)]);return fe}function re(W){for(var fe=ee(W);W.token==="^|";)N(W),fe=new v("^|","bitXor",[fe,ee(W)]);return fe}function ee(W){for(var fe=G(W);W.token==="&";)N(W),fe=new v("&","bitAnd",[fe,G(W)]);return fe}function G(W){for(var fe=[le(W)],De=[],Ie={"==":"equal","!=":"unequal","<":"smaller",">":"larger","<=":"smallerEq",">=":"largerEq"};Ke(Ie,W.token);){var Ve={name:W.token,fn:Ie[W.token]};De.push(Ve),N(W),fe.push(le(W))}return fe.length===1?fe[0]:fe.length===2?new v(De[0].name,De[0].fn,fe):new g(De.map(Ge=>Ge.fn),fe)}function le(W){var fe,De,Ie,Ve;fe=ue(W);for(var Ge={"<<":"leftShift",">>":"rightArithShift",">>>":"rightLogShift"};Ke(Ge,W.token);)De=W.token,Ie=Ge[De],N(W),Ve=[fe,ue(W)],fe=new v(De,Ie,Ve);return fe}function ue(W){var fe,De,Ie,Ve;fe=me(W);for(var Ge={to:"to",in:"to"};Ke(Ge,W.token);)De=W.token,Ie=Ge[De],N(W),De==="in"&&W.token===""?fe=new v("*","multiply",[fe,new x("in")],!0):(Ve=[fe,me(W)],fe=new v(De,Ie,Ve));return fe}function me(W){var fe,De=[];if(W.token===":"?fe=new u(1):fe=Se(W),W.token===":"&&W.conditionalLevel!==W.nestingLevel){for(De.push(fe);W.token===":"&&De.length<3;)N(W),W.token===")"||W.token==="]"||W.token===","||W.token===""?De.push(new x("end")):De.push(Se(W));De.length===3?fe=new h(De[0],De[2],De[1]):fe=new h(De[0],De[1])}return fe}function Se(W){var fe,De,Ie,Ve;fe=Q(W);for(var Ge={"+":"add","-":"subtract"};Ke(Ge,W.token);){De=W.token,Ie=Ge[De],N(W);var Ct=Q(W);Ct.isPercentage?Ve=[fe,new v("*","multiply",[fe,Ct])]:Ve=[fe,Ct],fe=new v(De,Ie,Ve)}return fe}function Q(W){var fe,De,Ie,Ve;fe=te(W),De=fe;for(var Ge={"*":"multiply",".*":"dotMultiply","/":"divide","./":"dotDivide"};Ke(Ge,W.token);)Ie=W.token,Ve=Ge[Ie],N(W),De=te(W),fe=new v(Ie,Ve,[fe,De]);return fe}function te(W){var fe,De;for(fe=de(W),De=fe;W.tokenType===b.SYMBOL||W.token==="in"&&Rt(fe)||W.tokenType===b.NUMBER&&!Rt(De)&&(!bn(De)||De.op==="!")||W.token==="(";)De=de(W),fe=new v("*","multiply",[fe,De],!0);return fe}function de(W){for(var fe=Y(W),De=fe,Ie=[];W.token==="/"&&fy(De);)if(Ie.push(E({},W)),N(W),W.tokenType===b.NUMBER)if(Ie.push(E({},W)),N(W),W.tokenType===b.SYMBOL||W.token==="(")E(W,Ie.pop()),Ie.pop(),De=Y(W),fe=new v("/","divide",[fe,De]);else{Ie.pop(),E(W,Ie.pop());break}else{E(W,Ie.pop());break}return fe}function Y(W){var fe,De,Ie,Ve;fe=ae(W);for(var Ge={"%":"mod",mod:"mod"};Ke(Ge,W.token);)De=W.token,Ie=Ge[De],N(W),De==="%"&&W.tokenType===b.DELIMITER&&W.token!=="("?fe=new v("/","divide",[fe,new u(100)],!1,!0):(Ve=[fe,ae(W)],fe=new v(De,Ie,Ve));return fe}function ae(W){var fe,De,Ie,Ve={"-":"unaryMinus","+":"unaryPlus","~":"bitNot",not:"not"};return Ke(Ve,W.token)?(Ie=Ve[W.token],fe=W.token,N(W),De=[ae(W)],new v(fe,Ie,De)):ce(W)}function ce(W){var fe,De,Ie,Ve;return fe=Ce(W),(W.token==="^"||W.token===".^")&&(De=W.token,Ie=De==="^"?"pow":"dotPow",N(W),Ve=[fe,ae(W)],fe=new v(De,Ie,Ve)),fe}function Ce(W){var fe,De,Ie,Ve;fe=ye(W);for(var Ge={"!":"factorial","'":"ctranspose"};Ke(Ge,W.token);)De=W.token,Ie=Ge[De],I(W),Ve=[fe],fe=new v(De,Ie,Ve),fe=ne(W,fe);return fe}function ye(W){var fe=[];if(W.tokenType===b.SYMBOL&&Ke(W.extraNodes,W.token)){var De=W.extraNodes[W.token];if(I(W),W.token==="("){if(fe=[],R(W),I(W),W.token!==")")for(fe.push(H(W));W.token===",";)I(W),fe.push(H(W));if(W.token!==")")throw Be(W,"Parenthesis ) expected");_(W),I(W)}return new De(fe)}return J(W)}function J(W){var fe,De;return W.tokenType===b.SYMBOL||W.tokenType===b.DELIMITER&&W.token in $?(De=W.token,I(W),Ke(D,De)?fe=new u(D[De]):O.indexOf(De)!==-1?fe=new u(n(De,"number")):fe=new x(De),fe=ne(W,fe),fe):oe(W)}function ne(W,fe,De){for(var Ie;(W.token==="("||W.token==="["||W.token===".")&&(!De||De.indexOf(W.token)!==-1);)if(Ie=[],W.token==="(")if(Pn(fe)||ii(fe)){if(R(W),I(W),W.token!==")")for(Ie.push(H(W));W.token===",";)I(W),Ie.push(H(W));if(W.token!==")")throw Be(W,"Parenthesis ) expected");_(W),I(W),fe=new d(fe,Ie)}else return fe;else if(W.token==="["){if(R(W),I(W),W.token!=="]")for(Ie.push(H(W));W.token===",";)I(W),Ie.push(H(W));if(W.token!=="]")throw Be(W,"Parenthesis ] expected");_(W),I(W),fe=new o(fe,new f(Ie))}else{if(I(W),W.tokenType!==b.SYMBOL)throw Be(W,"Property name expected after dot");Ie.push(new u(W.token)),I(W);var Ve=!0;fe=new o(fe,new f(Ie,Ve))}return fe}function oe(W){var fe,De;return W.token==='"'?(De=ie(W),fe=new u(De),fe=ne(W,fe),fe):ve(W)}function ie(W){for(var fe="";M(W)!==""&&M(W)!=='"';)M(W)==="\\"&&(fe+=M(W),B(W)),fe+=M(W),B(W);if(I(W),W.token!=='"')throw Be(W,'End of string " expected');return I(W),JSON.parse('"'+fe+'"')}function ve(W){var fe,De;return W.token==="'"?(De=we(W),fe=new u(De),fe=ne(W,fe),fe):$e(W)}function we(W){for(var fe="";M(W)!==""&&M(W)!=="'";)M(W)==="\\"&&(fe+=M(W),B(W)),fe+=M(W),B(W);if(I(W),W.token!=="'")throw Be(W,"End of string ' expected");return I(W),JSON.parse('"'+fe+'"')}function $e(W){var fe,De,Ie,Ve;if(W.token==="["){if(R(W),I(W),W.token!=="]"){var Ge=Ae(W);if(W.token===";"){for(Ie=1,De=[Ge];W.token===";";)I(W),De[Ie]=Ae(W),Ie++;if(W.token!=="]")throw Be(W,"End of matrix ] expected");_(W),I(W),Ve=De[0].items.length;for(var Ct=1;Ct<Ie;Ct++)if(De[Ct].items.length!==Ve)throw je(W,"Column dimensions mismatch ("+De[Ct].items.length+" !== "+Ve+")");fe=new a(De)}else{if(W.token!=="]")throw Be(W,"End of matrix ] expected");_(W),I(W),fe=Ge}}else _(W),I(W),fe=new a([]);return ne(W,fe)}return xe(W)}function Ae(W){for(var fe=[H(W)],De=1;W.token===",";)I(W),fe[De]=H(W),De++;return new a(fe)}function xe(W){if(W.token==="{"){R(W);var fe,De={};do if(I(W),W.token!=="}"){if(W.token==='"')fe=ie(W);else if(W.token==="'")fe=we(W);else if(W.tokenType===b.SYMBOL||W.tokenType===b.DELIMITER&&W.token in $)fe=W.token,I(W);else throw Be(W,"Symbol or string expected as object key");if(W.token!==":")throw Be(W,"Colon : expected after object key");I(W),De[fe]=H(W)}while(W.token===",");if(W.token!=="}")throw Be(W,"Comma , or bracket } expected after object value");_(W),I(W);var Ie=new p(De);return Ie=ne(W,Ie),Ie}return Ee(W)}function Ee(W){var fe;return W.tokenType===b.NUMBER?(fe=W.token,I(W),new u(n(fe,r.number))):Te(W)}function Te(W){var fe;if(W.token==="("){if(R(W),I(W),fe=H(W),W.token!==")")throw Be(W,"Parenthesis ) expected");return _(W),I(W),fe=new m(fe),fe=ne(W,fe),fe}return Me(W)}function Me(W){throw W.token===""?Be(W,"Unexpected end of expression"):Be(W,"Value expected")}function ze(W){return W.index-W.token.length+1}function Be(W,fe){var De=ze(W),Ie=new SyntaxError(fe+" (char "+De+")");return Ie.char=De,Ie}function je(W,fe){var De=ze(W),Ie=new SyntaxError(fe+" (char "+De+")");return Ie.char=De,Ie}return t.addConversion({from:"string",to:"Node",convert:y}),y}),bO="compile",DAe=["typed","parse"],AAe=se(bO,DAe,e=>{var{typed:t,parse:n}=e;return t(bO,{string:function(o){return n(o).compile()},"Array | Matrix":function(o){return Tt(o,function(a){return n(a).compile()})}})}),xO="evaluate",OAe=["typed","parse"],TAe=se(xO,OAe,e=>{var{typed:t,parse:n}=e;return t(xO,{string:function(o){var a=ws();return n(o).compile().evaluate(a)},"string, Map | Object":function(o,a){return n(o).compile().evaluate(a)},"Array | Matrix":function(o){var a=ws();return Tt(o,function(i){return n(i).compile().evaluate(a)})},"Array | Matrix, Map | Object":function(o,a){return Tt(o,function(i){return n(i).compile().evaluate(a)})}})}),MAe="Parser",NAe=["evaluate"],PAe=se(MAe,NAe,e=>{var{evaluate:t}=e;function n(){if(!(this instanceof n))throw new SyntaxError("Constructor must be called with the new operator");Object.defineProperty(this,"scope",{value:ws(),writable:!1})}return n.prototype.type="Parser",n.prototype.isParser=!0,n.prototype.evaluate=function(r){return t(r,this.scope)},n.prototype.get=function(r){if(this.scope.has(r))return this.scope.get(r)},n.prototype.getAll=function(){return nxe(this.scope)},n.prototype.getAllAsMap=function(){return this.scope},n.prototype.set=function(r,o){return this.scope.set(r,o),o},n.prototype.remove=function(r){this.scope.delete(r)},n.prototype.clear=function(){this.scope.clear()},n},{isClass:!0}),wO="parser",IAe=["typed","Parser"],_Ae=se(wO,IAe,e=>{var{typed:t,Parser:n}=e;return t(wO,{"":function(){return new n}})}),SO="lup",BAe=["typed","matrix","abs","addScalar","divideScalar","multiplyScalar","subtract","larger","equalScalar","unaryMinus","DenseMatrix","SparseMatrix","Spa"],FAe=se(SO,BAe,e=>{var{typed:t,matrix:n,abs:r,addScalar:o,divideScalar:a,multiplyScalar:i,subtract:l,larger:s,equalScalar:u,unaryMinus:c,DenseMatrix:d,SparseMatrix:f,Spa:p}=e;return t(SO,{DenseMatrix:function(g){return v(g)},SparseMatrix:function(g){return m(g)},Array:function(g){var x=n(g),y=v(x);return{L:y.L.valueOf(),U:y.U.valueOf(),p:y.p}}});function v(h){var g=h._size[0],x=h._size[1],y=Math.min(g,x),w=ct(h._data),b=[],S=[g,y],$=[],D=[y,x],O,A,T,M=[];for(O=0;O<g;O++)M[O]=O;for(A=0;A<x;A++){if(A>0)for(O=0;O<g;O++){var B=Math.min(O,A),F=0;for(T=0;T<B;T++)F=o(F,i(w[O][T],w[T][A]));w[O][A]=l(w[O][A],F)}var P=A,I=0,N=0;for(O=A;O<g;O++){var R=w[O][A],_=r(R);s(_,I)&&(P=O,I=_,N=R)}if(A!==P&&(M[A]=[M[P],M[P]=M[A]][0],d._swapRows(A,P,w)),A<g)for(O=A+1;O<g;O++){var L=w[O][A];u(L,0)||(w[O][A]=a(w[O][A],N))}}for(A=0;A<x;A++)for(O=0;O<g;O++){if(A===0&&(O<x&&($[O]=[]),b[O]=[]),O<A){O<x&&($[O][A]=w[O][A]),A<g&&(b[O][A]=0);continue}if(O===A){O<x&&($[O][A]=w[O][A]),A<g&&(b[O][A]=1);continue}O<x&&($[O][A]=0),A<g&&(b[O][A]=w[O][A])}var k=new d({data:b,size:S}),H=new d({data:$,size:D}),V=[];for(O=0,y=M.length;O<y;O++)V[M[O]]=O;return{L:k,U:H,p:V,toString:function(){return"L: "+this.L.toString()+`
- U: `+this.U.toString()+`
- P: `+this.p}}}function m(h){var g=h._size[0],x=h._size[1],y=Math.min(g,x),w=h._values,b=h._index,S=h._ptr,$=[],D=[],O=[],A=[g,y],T=[],M=[],B=[],F=[y,x],P,I,N,R=[],_=[];for(P=0;P<g;P++)R[P]=P,_[P]=P;var L=function(V,U){var q=_[V],K=_[U];R[q]=U,R[K]=V,_[V]=K,_[U]=q},k=function(){var V=new p;I<g&&(O.push($.length),$.push(1),D.push(I)),B.push(T.length);var U=S[I],q=S[I+1];for(N=U;N<q;N++)P=b[N],V.set(R[P],w[N]);I>0&&V.forEach(0,I-1,function(ee,G){f._forEachRow(ee,$,D,O,function(le,ue){le>ee&&V.accumulate(le,c(i(ue,G)))})});var K=I,X=V.get(I),re=r(X);V.forEach(I+1,g-1,function(ee,G){var le=r(G);s(le,re)&&(K=ee,re=le,X=G)}),I!==K&&(f._swapRows(I,K,A[1],$,D,O),f._swapRows(I,K,F[1],T,M,B),V.swap(I,K),L(I,K)),V.forEach(0,g-1,function(ee,G){ee<=I?(T.push(G),M.push(ee)):(G=a(G,X),u(G,0)||($.push(G),D.push(ee)))})};for(I=0;I<x;I++)k();return B.push(T.length),O.push($.length),{L:new f({values:$,index:D,ptr:O,size:A}),U:new f({values:T,index:M,ptr:B,size:F}),p:R,toString:function(){return"L: "+this.L.toString()+`
- U: `+this.U.toString()+`
- P: `+this.p}}}}),CO="qr",RAe=["typed","matrix","zeros","identity","isZero","equal","sign","sqrt","conj","unaryMinus","addScalar","divideScalar","multiplyScalar","subtract","complex"],zAe=se(CO,RAe,e=>{var{typed:t,matrix:n,zeros:r,identity:o,isZero:a,equal:i,sign:l,sqrt:s,conj:u,unaryMinus:c,addScalar:d,divideScalar:f,multiplyScalar:p,subtract:v,complex:m}=e;return E(t(CO,{DenseMatrix:function(w){return g(w)},SparseMatrix:function(w){return x()},Array:function(w){var b=n(w),S=g(b);return{Q:S.Q.valueOf(),R:S.R.valueOf()}}}),{_denseQRimpl:h});function h(y){var w=y._size[0],b=y._size[1],S=o([w],"dense"),$=S._data,D=y.clone(),O=D._data,A,T,M,B=r([w],"");for(M=0;M<Math.min(b,w);++M){var F=O[M][M],P=c(i(F,0)?1:l(F)),I=u(P),N=0;for(A=M;A<w;A++)N=d(N,p(O[A][M],u(O[A][M])));var R=p(P,s(N));if(!a(R)){var _=v(F,R);for(B[M]=1,A=M+1;A<w;A++)B[A]=f(O[A][M],_);var L=c(u(f(_,R))),k=void 0;for(T=M;T<b;T++){for(k=0,A=M;A<w;A++)k=d(k,p(u(B[A]),O[A][T]));for(k=p(k,L),A=M;A<w;A++)O[A][T]=p(v(O[A][T],p(B[A],k)),I)}for(A=0;A<w;A++){for(k=0,T=M;T<w;T++)k=d(k,p($[A][T],B[T]));for(k=p(k,L),T=M;T<w;++T)$[A][T]=f(v($[A][T],p(k,u(B[T]))),I)}}}return{Q:S,R:D,toString:function(){return"Q: "+this.Q.toString()+`
- R: `+this.R.toString()}}}function g(y){var w=h(y),b=w.R._data;if(y._data.length>0)for(var S=b[0][0].type==="Complex"?m(0):0,$=0;$<b.length;++$)for(var D=0;D<$&&D<(b[0]||[]).length;++D)b[$][D]=S;return w}function x(y){throw new Error("qr not implemented for sparse matrices yet")}});function LAe(e,t,n,r){for(var o=e._values,a=e._index,i=e._ptr,l=e._size,s=e._datatype,u=l[0],c=l[1],d=r&&e._values?[]:null,f=[],p=[],v=0,m=0;m<c;m++){p[m]=v;for(var h=n?n[m]:m,g=i[h],x=i[h+1],y=g;y<x;y++){var w=t?t[a[y]]:a[y];f[v]=w,d&&(d[v]=o[y]),v++}}return p[c]=v,e.createSparseMatrix({values:d,index:f,ptr:p,size:[u,c],datatype:s})}function AB(e,t,n,r,o,a,i){var l=0;for(n[i]=e;l>=0;){var s=n[i+l],u=n[r+s];u===-1?(l--,a[t++]=s):(n[r+s]=n[o+u],++l,n[i+l]=u)}return t}function kAe(e,t){if(!e)return null;var n=0,r,o=[],a=[],i=0,l=t,s=2*t;for(r=0;r<t;r++)a[i+r]=-1;for(r=t-1;r>=0;r--)e[r]!==-1&&(a[l+r]=a[i+e[r]],a[i+e[r]]=r);for(r=0;r<t;r++)e[r]===-1&&(n=AB(r,n,a,i,l,o,s));return o}function HAe(e,t){if(!e)return null;var n=e._index,r=e._ptr,o=e._size,a=o[0],i=o[1],l=[],s=[],u=0,c=i,d,f;if(t)for(d=0;d<a;d++)s[c+d]=-1;for(var p=0;p<i;p++){l[p]=-1,s[u+p]=-1;for(var v=r[p],m=r[p+1],h=v;h<m;h++){var g=n[h];for(d=t?s[c+g]:g;d!==-1&&d<p;d=f)f=s[u+d],s[u+d]=p,f===-1&&(l[d]=p);t&&(s[c+g]=p)}}return l}function jAe(e,t,n){for(var r=e._values,o=e._index,a=e._ptr,i=e._size,l=i[1],s=0,u=0;u<l;u++){var c=a[u];for(a[u]=s;c<a[u+1];c++)t(o[c],u,r?r[c]:1,n)&&(o[s]=o[c],r&&(r[s]=r[c]),s++)}return a[l]=s,o.splice(s,o.length-s),r&&r.splice(s,r.length-s),s}function Wa(e){return-e-2}var VAe="csAmd",WAe=["add","multiply","transpose"],UAe=se(VAe,WAe,e=>{var{add:t,multiply:n,transpose:r}=e;return function(c,d){if(!d||c<=0||c>3)return null;var f=d._size,p=f[0],v=f[1],m=0,h=Math.max(16,10*Math.sqrt(v));h=Math.min(v-2,h);var g=o(c,d,p,v,h);jAe(g,s,null);for(var x=g._index,y=g._ptr,w=y[v],b=[],S=[],$=0,D=v+1,O=2*(v+1),A=3*(v+1),T=4*(v+1),M=5*(v+1),B=6*(v+1),F=7*(v+1),P=b,I=a(v,y,S,$,A,P,O,F,D,B,T,M),N=i(v,y,S,M,T,B,h,D,A,P,O),R=0,_,L,k,H,V,U,q,K,X,re,ee,G,le,ue,me,Se;N<v;){for(k=-1;R<v&&(k=S[A+R])===-1;R++);S[O+k]!==-1&&(P[S[O+k]]=-1),S[A+R]=S[O+k];var Q=S[T+k],te=S[D+k];N+=te;var de=0;S[D+k]=-te;var Y=y[k],ae=Q===0?Y:w,ce=ae;for(H=1;H<=Q+1;H++){for(H>Q?(U=k,q=Y,K=S[$+k]-Q):(U=x[Y++],q=y[U],K=S[$+U]),V=1;V<=K;V++)_=x[q++],!((X=S[D+_])<=0)&&(de+=X,S[D+_]=-X,x[ce++]=_,S[O+_]!==-1&&(P[S[O+_]]=P[_]),P[_]!==-1?S[O+P[_]]=S[O+_]:S[A+S[M+_]]=S[O+_]);U!==k&&(y[U]=Wa(k),S[B+U]=0)}for(Q!==0&&(w=ce),S[M+k]=de,y[k]=ae,S[$+k]=ce-ae,S[T+k]=-2,I=l(I,m,S,B,v),re=ae;re<ce;re++)if(_=x[re],!((ee=S[T+_])<=0)){X=-S[D+_];var Ce=I-X;for(Y=y[_],G=y[_]+ee-1;Y<=G;Y++)U=x[Y],S[B+U]>=I?S[B+U]-=X:S[B+U]!==0&&(S[B+U]=S[M+U]+Ce)}for(re=ae;re<ce;re++){for(_=x[re],G=y[_],le=G+S[T+_]-1,ue=G,me=0,Se=0,Y=G;Y<=le;Y++)if(U=x[Y],S[B+U]!==0){var ye=S[B+U]-I;ye>0?(Se+=ye,x[ue++]=U,me+=U):(y[U]=Wa(k),S[B+U]=0)}S[T+_]=ue-G+1;var J=ue,ne=G+S[$+_];for(Y=le+1;Y<ne;Y++){L=x[Y];var oe=S[D+L];oe<=0||(Se+=oe,x[ue++]=L,me+=L)}Se===0?(y[_]=Wa(k),X=-S[D+_],de-=X,te+=X,N+=X,S[D+_]=0,S[T+_]=-1):(S[M+_]=Math.min(S[M+_],Se),x[ue]=x[J],x[J]=x[G],x[G]=k,S[$+_]=ue-G+1,me=(me<0?-me:me)%v,S[O+_]=S[F+me],S[F+me]=_,P[_]=me)}for(S[M+k]=de,m=Math.max(m,de),I=l(I+m,m,S,B,v),re=ae;re<ce;re++)if(_=x[re],!(S[D+_]>=0))for(me=P[_],_=S[F+me],S[F+me]=-1;_!==-1&&S[O+_]!==-1;_=S[O+_],I++){for(K=S[$+_],ee=S[T+_],Y=y[_]+1;Y<=y[_]+K-1;Y++)S[B+x[Y]]=I;var ie=_;for(L=S[O+_];L!==-1;){var ve=S[$+L]===K&&S[T+L]===ee;for(Y=y[L]+1;ve&&Y<=y[L]+K-1;Y++)S[B+x[Y]]!==I&&(ve=0);ve?(y[L]=Wa(_),S[D+_]+=S[D+L],S[D+L]=0,S[T+L]=-1,L=S[O+L],S[O+ie]=L):(ie=L,L=S[O+L])}}for(Y=ae,re=ae;re<ce;re++)_=x[re],!((X=-S[D+_])<=0)&&(S[D+_]=X,Se=S[M+_]+de-X,Se=Math.min(Se,v-N-X),S[A+Se]!==-1&&(P[S[A+Se]]=_),S[O+_]=S[A+Se],P[_]=-1,S[A+Se]=_,R=Math.min(R,Se),S[M+_]=Se,x[Y++]=_);S[D+k]=te,(S[$+k]=Y-ae)===0&&(y[k]=-1,S[B+k]=0),Q!==0&&(w=Y)}for(_=0;_<v;_++)y[_]=Wa(y[_]);for(L=0;L<=v;L++)S[A+L]=-1;for(L=v;L>=0;L--)S[D+L]>0||(S[O+L]=S[A+y[L]],S[A+y[L]]=L);for(U=v;U>=0;U--)S[D+U]<=0||y[U]!==-1&&(S[O+U]=S[A+y[U]],S[A+y[U]]=U);for(k=0,_=0;_<=v;_++)y[_]===-1&&(k=AB(_,k,S,A,O,b,B));return b.splice(b.length-1,1),b};function o(u,c,d,f,p){var v=r(c);if(u===1&&f===d)return t(c,v);if(u===2){for(var m=v._index,h=v._ptr,g=0,x=0;x<d;x++){var y=h[x];if(h[x]=g,!(h[x+1]-y>p))for(var w=h[x+1];y<w;y++)m[g++]=m[y]}return h[d]=g,c=r(v),n(v,c)}return n(v,c)}function a(u,c,d,f,p,v,m,h,g,x,y,w){for(var b=0;b<u;b++)d[f+b]=c[b+1]-c[b];d[f+u]=0;for(var S=0;S<=u;S++)d[p+S]=-1,v[S]=-1,d[m+S]=-1,d[h+S]=-1,d[g+S]=1,d[x+S]=1,d[y+S]=0,d[w+S]=d[f+S];var $=l(0,0,d,x,u);return d[y+u]=-2,c[u]=-1,d[x+u]=0,$}function i(u,c,d,f,p,v,m,h,g,x,y){for(var w=0,b=0;b<u;b++){var S=d[f+b];if(S===0)d[p+b]=-2,w++,c[b]=-1,d[v+b]=0;else if(S>m)d[h+b]=0,d[p+b]=-1,w++,c[b]=Wa(u),d[h+u]++;else{var $=d[g+S];$!==-1&&(x[$]=b),d[y+b]=d[g+S],d[g+S]=b}}return w}function l(u,c,d,f,p){if(u<2||u+c<0){for(var v=0;v<p;v++)d[f+v]!==0&&(d[f+v]=1);u=2}return u}function s(u,c){return u!==c}});function KAe(e,t,n,r,o,a,i){var l,s,u=0,c;if(e<=t||n[r+t]<=n[o+e])return-1;n[o+e]=n[r+t];var d=n[a+e];if(n[a+e]=t,d===-1)u=1,c=e;else{for(u=2,c=d;c!==n[i+c];c=n[i+c]);for(l=d;l!==c;l=s)s=n[i+l],n[i+l]=c}return{jleaf:u,q:c}}var qAe="csCounts",GAe=["transpose"],XAe=se(qAe,GAe,e=>{var{transpose:t}=e;return function(n,r,o,a){if(!n||!r||!o)return null;var i=n._size,l=i[0],s=i[1],u,c,d,f,p,v,m,h=4*s+(a?s+l+1:0),g=[],x=0,y=s,w=2*s,b=3*s,S=4*s,$=5*s+1;for(d=0;d<h;d++)g[d]=-1;var D=[],O=t(n),A=O._index,T=O._ptr;for(d=0;d<s;d++)for(c=o[d],D[c]=g[b+c]===-1?1:0;c!==-1&&g[b+c]===-1;c=r[c])g[b+c]=d;if(a){for(d=0;d<s;d++)g[o[d]]=d;for(u=0;u<l;u++){for(d=s,v=T[u],m=T[u+1],p=v;p<m;p++)d=Math.min(d,g[A[p]]);g[$+u]=g[S+d],g[S+d]=u}}for(u=0;u<s;u++)g[x+u]=u;for(d=0;d<s;d++){for(c=o[d],r[c]!==-1&&D[r[c]]--,f=a?g[S+d]:c;f!==-1;f=a?g[$+f]:-1)for(p=T[f];p<T[f+1];p++){u=A[p];var M=KAe(u,c,g,b,y,w,x);M.jleaf>=1&&D[c]++,M.jleaf===2&&D[M.q]--}r[c]!==-1&&(g[x+c]=r[c])}for(c=0;c<s;c++)r[c]!==-1&&(D[r[c]]+=D[c]);return D}}),YAe="csSqr",ZAe=["add","multiply","transpose"],JAe=se(YAe,ZAe,e=>{var{add:t,multiply:n,transpose:r}=e,o=UAe({add:t,multiply:n,transpose:r}),a=XAe({transpose:r});return function(s,u,c){var d=u._ptr,f=u._size,p=f[1],v,m={};if(m.q=o(s,u),s&&!m.q)return null;if(c){var h=s?LAe(u,null,m.q,0):u;m.parent=HAe(h,1);var g=kAe(m.parent,p);if(m.cp=a(h,m.parent,g,1),h&&m.parent&&m.cp&&i(h,m))for(m.unz=0,v=0;v<p;v++)m.unz+=m.cp[v]}else m.unz=4*d[p]+p,m.lnz=m.unz;return m};function i(l,s){var u=l._ptr,c=l._index,d=l._size,f=d[0],p=d[1];s.pinv=[],s.leftmost=[];var v=s.parent,m=s.pinv,h=s.leftmost,g=[],x=0,y=f,w=f+p,b=f+2*p,S,$,D,O,A;for($=0;$<p;$++)g[y+$]=-1,g[w+$]=-1,g[b+$]=0;for(S=0;S<f;S++)h[S]=-1;for($=p-1;$>=0;$--)for(O=u[$],A=u[$+1],D=O;D<A;D++)h[c[D]]=$;for(S=f-1;S>=0;S--)m[S]=-1,$=h[S],$!==-1&&(g[b+$]++===0&&(g[w+$]=S),g[x+S]=g[y+$],g[y+$]=S);for(s.lnz=0,s.m2=f,$=0;$<p;$++)if(S=g[y+$],s.lnz++,S<0&&(S=s.m2++),m[S]=$,!(--b[$]<=0)){s.lnz+=g[b+$];var T=v[$];T!==-1&&(g[b+T]===0&&(g[w+T]=g[w+$]),g[x+g[w+$]]=g[y+T],g[y+T]=g[x+S],g[b+T]+=g[b+$])}for(S=0;S<f;S++)m[S]<0&&(m[S]=$++);return!0}});function My(e,t){return e[t]<0}function OB(e,t){e[t]=Wa(e[t])}function $O(e){return e<0?Wa(e):e}function QAe(e,t,n,r,o){var a=t._index,i=t._ptr,l=t._size,s=l[1],u,c,d,f=0;for(r[0]=e;f>=0;){e=r[f];var p=o?o[e]:e;My(i,e)||(OB(i,e),r[s+f]=p<0?0:$O(i[p]));var v=1;for(c=r[s+f],d=p<0?0:$O(i[p+1]);c<d;c++)if(u=a[c],!My(i,u)){r[s+f]=c,r[++f]=u,v=0;break}v&&(f--,r[--n]=e)}return n}function eOe(e,t,n,r,o){var a=e._ptr,i=e._size,l=t._index,s=t._ptr,u=i[1],c,d,f,p=u;for(d=s[n],f=s[n+1],c=d;c<f;c++){var v=l[c];My(a,v)||(p=QAe(v,e,p,r,o))}for(c=p;c<u;c++)OB(a,r[c]);return p}var tOe="csSpsolve",nOe=["divideScalar","multiply","subtract"],rOe=se(tOe,nOe,e=>{var{divideScalar:t,multiply:n,subtract:r}=e;return function(a,i,l,s,u,c,d){var f=a._values,p=a._index,v=a._ptr,m=a._size,h=m[1],g=i._values,x=i._index,y=i._ptr,w,b,S,$,D=eOe(a,i,l,s,c);for(w=D;w<h;w++)u[s[w]]=0;for(b=y[l],S=y[l+1],w=b;w<S;w++)u[x[w]]=g[w];for(var O=D;O<h;O++){var A=s[O],T=c?c[A]:A;if(!(T<0))for(b=v[T],S=v[T+1],u[A]=t(u[A],f[d?b:S-1]),w=d?b+1:b,$=d?S:S-1;w<$;w++){var M=p[w];u[M]=r(u[M],n(f[w],u[A]))}}return D}}),oOe="csLu",aOe=["abs","divideScalar","multiply","subtract","larger","largerEq","SparseMatrix"],iOe=se(oOe,aOe,e=>{var{abs:t,divideScalar:n,multiply:r,subtract:o,larger:a,largerEq:i,SparseMatrix:l}=e,s=rOe({divideScalar:n,multiply:r,subtract:o});return function(c,d,f){if(!c)return null;var p=c._size,v=p[1],m,h=100,g=100;d&&(m=d.q,h=d.lnz||h,g=d.unz||g);var x=[],y=[],w=[],b=new l({values:x,index:y,ptr:w,size:[v,v]}),S=[],$=[],D=[],O=new l({values:S,index:$,ptr:D,size:[v,v]}),A=[],T,M,B=[],F=[];for(T=0;T<v;T++)B[T]=0,A[T]=-1,w[T+1]=0;h=0,g=0;for(var P=0;P<v;P++){w[P]=h,D[P]=g;var I=m?m[P]:P,N=s(b,c,I,F,B,A,1),R=-1,_=-1;for(M=N;M<v;M++)if(T=F[M],A[T]<0){var L=t(B[T]);a(L,_)&&(_=L,R=T)}else $[g]=A[T],S[g++]=B[T];if(R===-1||_<=0)return null;A[I]<0&&i(t(B[I]),r(_,f))&&(R=I);var k=B[R];for($[g]=P,S[g++]=k,A[R]=P,y[h]=R,x[h++]=1,M=N;M<v;M++)T=F[M],A[T]<0&&(y[h]=T,x[h++]=n(B[T],k)),B[T]=0}for(w[v]=h,D[v]=g,M=0;M<h;M++)y[M]=A[y[M]];return x.splice(h,x.length-h),y.splice(h,y.length-h),S.splice(g,S.length-g),$.splice(g,$.length-g),{L:b,U:O,pinv:A}}}),EO="slu",lOe=["typed","abs","add","multiply","transpose","divideScalar","subtract","larger","largerEq","SparseMatrix"],sOe=se(EO,lOe,e=>{var{typed:t,abs:n,add:r,multiply:o,transpose:a,divideScalar:i,subtract:l,larger:s,largerEq:u,SparseMatrix:c}=e,d=JAe({add:r,multiply:o,transpose:a}),f=iOe({abs:n,divideScalar:i,multiply:o,subtract:l,larger:s,largerEq:u,SparseMatrix:c});return t(EO,{"SparseMatrix, number, number":function(v,m,h){if(!ot(m)||m<0||m>3)throw new Error("Symbolic Ordering and Analysis order must be an integer number in the interval [0, 3]");if(h<0||h>1)throw new Error("Partial pivoting threshold must be a number from 0 to 1");var g=d(m,v,!1),x=f(v,g,h);return{L:x.L,U:x.U,p:x.pinv,q:g.q,toString:function(){return"L: "+this.L.toString()+`
- U: `+this.U.toString()+`
- p: `+this.p.toString()+(this.q?`
- q: `+this.q.toString():"")+`
- `}}}})});function DO(e,t){var n,r=t.length,o=[];if(e)for(n=0;n<r;n++)o[e[n]]=t[n];else for(n=0;n<r;n++)o[n]=t[n];return o}var AO="lusolve",uOe=["typed","matrix","lup","slu","usolve","lsolve","DenseMatrix"],cOe=se(AO,uOe,e=>{var{typed:t,matrix:n,lup:r,slu:o,usolve:a,lsolve:i,DenseMatrix:l}=e,s=Fc({DenseMatrix:l});return t(AO,{"Array, Array | Matrix":function(f,p){f=n(f);var v=r(f),m=c(v.L,v.U,v.p,null,p);return m.valueOf()},"DenseMatrix, Array | Matrix":function(f,p){var v=r(f);return c(v.L,v.U,v.p,null,p)},"SparseMatrix, Array | Matrix":function(f,p){var v=r(f);return c(v.L,v.U,v.p,null,p)},"SparseMatrix, Array | Matrix, number, number":function(f,p,v,m){var h=o(f,v,m);return c(h.L,h.U,h.p,h.q,p)},"Object, Array | Matrix":function(f,p){return c(f.L,f.U,f.p,f.q,p)}});function u(d){if(mt(d))return d;if(Ut(d))return n(d);throw new TypeError("Invalid Matrix LU decomposition")}function c(d,f,p,v,m){d=u(d),f=u(f),p&&(m=s(d,m,!0),m._data=DO(p,m._data));var h=i(d,m),g=a(f,h);return v&&(g._data=DO(v,g._data)),g}}),OO="polynomialRoot",dOe=["typed","isZero","equalScalar","add","subtract","multiply","divide","sqrt","unaryMinus","cbrt","typeOf","im","re"],fOe=se(OO,dOe,e=>{var{typed:t,isZero:n,equalScalar:r,add:o,subtract:a,multiply:i,divide:l,sqrt:s,unaryMinus:u,cbrt:c,typeOf:d,im:f,re:p}=e;return t(OO,{"number|Complex, ...number|Complex":(v,m)=>{for(var h=[v,...m];h.length>0&&n(h[h.length-1]);)h.pop();if(h.length<2)throw new RangeError("Polynomial [".concat(v,", ").concat(m,"] must have a non-zero non-constant coefficient"));switch(h.length){case 2:return[u(l(h[0],h[1]))];case 3:{var[g,x,y]=h,w=i(2,y),b=i(x,x),S=i(4,y,g);if(r(b,S))return[l(u(x),w)];var $=s(a(b,S));return[l(a($,x),w),l(a(u($),x),w)]}case 4:{var[D,O,A,T]=h,M=u(i(3,T)),B=i(A,A),F=i(3,T,O),P=o(i(2,A,A,A),i(27,T,T,D)),I=i(9,T,A,O);if(r(B,F)&&r(P,I))return[l(A,M)];var N=a(B,F),R=a(P,I),_=o(i(18,T,A,O,D),i(A,A,O,O)),L=o(i(4,A,A,A,D),i(4,T,O,O,O),i(27,T,T,D,D));if(r(_,L))return[l(a(i(4,T,A,O),o(i(9,T,T,D),i(A,A,A))),i(T,N)),l(a(i(9,T,D),i(A,O)),i(2,N))];var k;r(B,F)?k=R:k=l(o(R,s(a(i(R,R),i(4,N,N,N)))),2);var H=!0,V=c(k,H).toArray().map(U=>l(o(A,U,l(N,U)),M));return V.map(U=>d(U)==="Complex"&&r(p(U),p(U)+f(U))?p(U):U)}default:throw new RangeError("only implemented for cubic or lower-order polynomials, not ".concat(h))}}})}),pOe="Help",mOe=["parse"],vOe=se(pOe,mOe,e=>{var{parse:t}=e;function n(r){if(!(this instanceof n))throw new SyntaxError("Constructor must be called with the new operator");if(!r)throw new Error('Argument "doc" missing');this.doc=r}return n.prototype.type="Help",n.prototype.isHelp=!0,n.prototype.toString=function(){var r=this.doc||{},o=`
- `;if(r.name&&(o+="Name: "+r.name+`
- `),r.category&&(o+="Category: "+r.category+`
- `),r.description&&(o+=`Description:
- `+r.description+`
- `),r.syntax&&(o+=`Syntax:
- `+r.syntax.join(`
- `)+`
- `),r.examples){o+=`Examples:
- `;for(var a={},i=0;i<r.examples.length;i++){var l=r.examples[i];o+=" "+l+`
- `;var s=void 0;try{s=t(l).compile().evaluate(a)}catch(u){s=u}s!==void 0&&!Lw(s)&&(o+=" "+Et(s,{precision:14})+`
- `)}o+=`
- `}return r.mayThrow&&r.mayThrow.length&&(o+="Throws: "+r.mayThrow.join(", ")+`
- `),r.seealso&&r.seealso.length&&(o+="See also: "+r.seealso.join(", ")+`
- `),o},n.prototype.toJSON=function(){var r=ct(this.doc);return r.mathjs="Help",r},n.fromJSON=function(r){var o={};return Object.keys(r).filter(a=>a!=="mathjs").forEach(a=>{o[a]=r[a]}),new n(o)},n.prototype.valueOf=n.prototype.toString,n},{isClass:!0}),hOe="Chain",gOe=["?on","math","typed"],yOe=se(hOe,gOe,e=>{var{on:t,math:n,typed:r}=e;function o(u){if(!(this instanceof o))throw new SyntaxError("Constructor must be called with the new operator");kw(u)?this.value=u.value:this.value=u}o.prototype.type="Chain",o.prototype.isChain=!0,o.prototype.done=function(){return this.value},o.prototype.valueOf=function(){return this.value},o.prototype.toString=function(){return Et(this.value)},o.prototype.toJSON=function(){return{mathjs:"Chain",value:this.value}},o.fromJSON=function(u){return new o(u.value)};function a(u,c){typeof c=="function"&&(o.prototype[u]=l(c))}function i(u,c){_f(o.prototype,u,function(){var f=c();if(typeof f=="function")return l(f)})}function l(u){return function(){if(arguments.length===0)return new o(u(this.value));for(var c=[this.value],d=0;d<arguments.length;d++)c[d+1]=arguments[d];if(r.isTypedFunction(u)){var f=r.resolve(u,c);if(f.params.length===1)throw new Error("chain function "+u.name+" cannot match rest parameter between chain value and additional arguments.");return new o(f.implementation.apply(u,c))}return new o(u.apply(u,c))}}o.createProxy=function(u,c){if(typeof u=="string")a(u,c);else{var d=function(v){Ke(u,v)&&s[v]===void 0&&i(v,()=>u[v])};for(var f in u)d(f)}};var s={expression:!0,docs:!0,type:!0,classes:!0,json:!0,error:!0,isChain:!0};return o.createProxy(n),t&&t("import",function(u,c,d){d||i(u,c)}),o},{isClass:!0}),TO={name:"e",category:"Constants",syntax:["e"],description:"Euler's number, the base of the natural logarithm. Approximately equal to 2.71828",examples:["e","e ^ 2","exp(2)","log(e)"],seealso:["exp"]},bOe={name:"false",category:"Constants",syntax:["false"],description:"Boolean value false",examples:["false"],seealso:["true"]},xOe={name:"i",category:"Constants",syntax:["i"],description:"Imaginary unit, defined as i*i=-1. A complex number is described as a + b*i, where a is the real part, and b is the imaginary part.",examples:["i","i * i","sqrt(-1)"],seealso:[]},wOe={name:"Infinity",category:"Constants",syntax:["Infinity"],description:"Infinity, a number which is larger than the maximum number that can be handled by a floating point number.",examples:["Infinity","1 / 0"],seealso:[]},SOe={name:"LN10",category:"Constants",syntax:["LN10"],description:"Returns the natural logarithm of 10, approximately equal to 2.302",examples:["LN10","log(10)"],seealso:[]},COe={name:"LN2",category:"Constants",syntax:["LN2"],description:"Returns the natural logarithm of 2, approximately equal to 0.693",examples:["LN2","log(2)"],seealso:[]},$Oe={name:"LOG10E",category:"Constants",syntax:["LOG10E"],description:"Returns the base-10 logarithm of E, approximately equal to 0.434",examples:["LOG10E","log(e, 10)"],seealso:[]},EOe={name:"LOG2E",category:"Constants",syntax:["LOG2E"],description:"Returns the base-2 logarithm of E, approximately equal to 1.442",examples:["LOG2E","log(e, 2)"],seealso:[]},DOe={name:"NaN",category:"Constants",syntax:["NaN"],description:"Not a number",examples:["NaN","0 / 0"],seealso:[]},AOe={name:"null",category:"Constants",syntax:["null"],description:"Value null",examples:["null"],seealso:["true","false"]},OOe={name:"phi",category:"Constants",syntax:["phi"],description:"Phi is the golden ratio. Two quantities are in the golden ratio if their ratio is the same as the ratio of their sum to the larger of the two quantities. Phi is defined as `(1 + sqrt(5)) / 2` and is approximately 1.618034...",examples:["phi"],seealso:[]},MO={name:"pi",category:"Constants",syntax:["pi"],description:"The number pi is a mathematical constant that is the ratio of a circle's circumference to its diameter, and is approximately equal to 3.14159",examples:["pi","sin(pi/2)"],seealso:["tau"]},TOe={name:"SQRT1_2",category:"Constants",syntax:["SQRT1_2"],description:"Returns the square root of 1/2, approximately equal to 0.707",examples:["SQRT1_2","sqrt(1/2)"],seealso:[]},MOe={name:"SQRT2",category:"Constants",syntax:["SQRT2"],description:"Returns the square root of 2, approximately equal to 1.414",examples:["SQRT2","sqrt(2)"],seealso:[]},NOe={name:"tau",category:"Constants",syntax:["tau"],description:"Tau is the ratio constant of a circle's circumference to radius, equal to 2 * pi, approximately 6.2832.",examples:["tau","2 * pi"],seealso:["pi"]},POe={name:"true",category:"Constants",syntax:["true"],description:"Boolean value true",examples:["true"],seealso:["false"]},IOe={name:"version",category:"Constants",syntax:["version"],description:"A string with the version number of math.js",examples:["version"],seealso:[]},_Oe={name:"bignumber",category:"Construction",syntax:["bignumber(x)"],description:"Create a big number from a number or string.",examples:["0.1 + 0.2","bignumber(0.1) + bignumber(0.2)",'bignumber("7.2")','bignumber("7.2e500")',"bignumber([0.1, 0.2, 0.3])"],seealso:["boolean","complex","fraction","index","matrix","string","unit"]},BOe={name:"boolean",category:"Construction",syntax:["x","boolean(x)"],description:"Convert a string or number into a boolean.",examples:["boolean(0)","boolean(1)","boolean(3)",'boolean("true")','boolean("false")',"boolean([1, 0, 1, 1])"],seealso:["bignumber","complex","index","matrix","number","string","unit"]},FOe={name:"complex",category:"Construction",syntax:["complex()","complex(re, im)","complex(string)"],description:"Create a complex number.",examples:["complex()","complex(2, 3)",'complex("7 - 2i")'],seealso:["bignumber","boolean","index","matrix","number","string","unit"]},ROe={name:"createUnit",category:"Construction",syntax:["createUnit(definitions)","createUnit(name, definition)"],description:"Create a user-defined unit and register it with the Unit type.",examples:['createUnit("foo")','createUnit("knot", {definition: "0.514444444 m/s", aliases: ["knots", "kt", "kts"]})','createUnit("mph", "1 mile/hour")'],seealso:["unit","splitUnit"]},zOe={name:"fraction",category:"Construction",syntax:["fraction(num)","fraction(matrix)","fraction(num,den)","fraction({n: num, d: den})"],description:"Create a fraction from a number or from integer numerator and denominator.",examples:["fraction(0.125)","fraction(1, 3) + fraction(2, 5)","fraction({n: 333, d: 53})","fraction([sqrt(9), sqrt(10), sqrt(11)])"],seealso:["bignumber","boolean","complex","index","matrix","string","unit"]},LOe={name:"index",category:"Construction",syntax:["[start]","[start:end]","[start:step:end]","[start1, start 2, ...]","[start1:end1, start2:end2, ...]","[start1:step1:end1, start2:step2:end2, ...]"],description:"Create an index to get or replace a subset of a matrix",examples:["[1, 2, 3]","A = [1, 2, 3; 4, 5, 6]","A[1, :]","A[1, 2] = 50","A[1:2, 1:2] = ones(2, 2)"],seealso:["bignumber","boolean","complex","matrix,","number","range","string","unit"]},kOe={name:"matrix",category:"Construction",syntax:["[]","[a1, b1, ...; a2, b2, ...]","matrix()",'matrix("dense")',"matrix([...])"],description:"Create a matrix.",examples:["[]","[1, 2, 3]","[1, 2, 3; 4, 5, 6]","matrix()","matrix([3, 4])",'matrix([3, 4; 5, 6], "sparse")','matrix([3, 4; 5, 6], "sparse", "number")'],seealso:["bignumber","boolean","complex","index","number","string","unit","sparse"]},HOe={name:"number",category:"Construction",syntax:["x","number(x)","number(unit, valuelessUnit)"],description:"Create a number or convert a string or boolean into a number.",examples:["2","2e3","4.05","number(2)",'number("7.2")',"number(true)","number([true, false, true, true])",'number(unit("52cm"), "m")'],seealso:["bignumber","boolean","complex","fraction","index","matrix","string","unit"]},jOe={name:"sparse",category:"Construction",syntax:["sparse()","sparse([a1, b1, ...; a1, b2, ...])",'sparse([a1, b1, ...; a1, b2, ...], "number")'],description:"Create a sparse matrix.",examples:["sparse()","sparse([3, 4; 5, 6])",'sparse([3, 0; 5, 0], "number")'],seealso:["bignumber","boolean","complex","index","number","string","unit","matrix"]},VOe={name:"splitUnit",category:"Construction",syntax:["splitUnit(unit: Unit, parts: Unit[])"],description:"Split a unit in an array of units whose sum is equal to the original unit.",examples:['splitUnit(1 m, ["feet", "inch"])'],seealso:["unit","createUnit"]},WOe={name:"string",category:"Construction",syntax:['"text"',"string(x)"],description:"Create a string or convert a value to a string",examples:['"Hello World!"',"string(4.2)","string(3 + 2i)"],seealso:["bignumber","boolean","complex","index","matrix","number","unit"]},UOe={name:"unit",category:"Construction",syntax:["value unit","unit(value, unit)","unit(string)"],description:"Create a unit.",examples:["5.5 mm","3 inch",'unit(7.1, "kilogram")','unit("23 deg")'],seealso:["bignumber","boolean","complex","index","matrix","number","string"]},KOe={name:"config",category:"Core",syntax:["config()","config(options)"],description:"Get configuration or change configuration.",examples:["config()","1/3 + 1/4",'config({number: "Fraction"})',"1/3 + 1/4"],seealso:[]},qOe={name:"import",category:"Core",syntax:["import(functions)","import(functions, options)"],description:"Import functions or constants from an object.",examples:["import({myFn: f(x)=x^2, myConstant: 32 })","myFn(2)","myConstant"],seealso:[]},GOe={name:"typed",category:"Core",syntax:["typed(signatures)","typed(name, signatures)"],description:"Create a typed function.",examples:['double = typed({ "number": f(x)=x+x })',"double(2)",'double("hello")'],seealso:[]},XOe={name:"derivative",category:"Algebra",syntax:["derivative(expr, variable)","derivative(expr, variable, {simplify: boolean})"],description:"Takes the derivative of an expression expressed in parser Nodes. The derivative will be taken over the supplied variable in the second parameter. If there are multiple variables in the expression, it will return a partial derivative.",examples:['derivative("2x^3", "x")','derivative("2x^3", "x", {simplify: false})','derivative("2x^2 + 3x + 4", "x")','derivative("sin(2x)", "x")','f = parse("x^2 + x")','x = parse("x")',"df = derivative(f, x)","df.evaluate({x: 3})"],seealso:["simplify","parse","evaluate"]},YOe={name:"leafCount",category:"Algebra",syntax:["leafCount(expr)"],description:"Computes the number of leaves in the parse tree of the given expression",examples:['leafCount("e^(i*pi)-1")','leafCount(parse("{a: 22/7, b: 10^(1/2)}"))'],seealso:["simplify"]},ZOe={name:"lsolve",category:"Algebra",syntax:["x=lsolve(L, b)"],description:"Finds one solution of the linear system L * x = b where L is an [n x n] lower triangular matrix and b is a [n] column vector.",examples:["a = [-2, 3; 2, 1]","b = [11, 9]","x = lsolve(a, b)"],seealso:["lsolveAll","lup","lusolve","usolve","matrix","sparse"]},JOe={name:"lsolveAll",category:"Algebra",syntax:["x=lsolveAll(L, b)"],description:"Finds all solutions of the linear system L * x = b where L is an [n x n] lower triangular matrix and b is a [n] column vector.",examples:["a = [-2, 3; 2, 1]","b = [11, 9]","x = lsolve(a, b)"],seealso:["lsolve","lup","lusolve","usolve","matrix","sparse"]},QOe={name:"lup",category:"Algebra",syntax:["lup(m)"],description:"Calculate the Matrix LU decomposition with partial pivoting. Matrix A is decomposed in three matrices (L, U, P) where P * A = L * U",examples:["lup([[2, 1], [1, 4]])","lup(matrix([[2, 1], [1, 4]]))","lup(sparse([[2, 1], [1, 4]]))"],seealso:["lusolve","lsolve","usolve","matrix","sparse","slu","qr"]},eTe={name:"lusolve",category:"Algebra",syntax:["x=lusolve(A, b)","x=lusolve(lu, b)"],description:"Solves the linear system A * x = b where A is an [n x n] matrix and b is a [n] column vector.",examples:["a = [-2, 3; 2, 1]","b = [11, 9]","x = lusolve(a, b)"],seealso:["lup","slu","lsolve","usolve","matrix","sparse"]},tTe={name:"polynomialRoot",category:"Algebra",syntax:["x=polynomialRoot(-6, 3)","x=polynomialRoot(4, -4, 1)","x=polynomialRoot(-8, 12, -6, 1)"],description:"Finds the roots of a univariate polynomial given by its coefficients starting from constant, linear, and so on, increasing in degree.",examples:["a = polynomialRoot(-6, 11, -6 1)"],seealso:["cbrt","sqrt"]},nTe={name:"qr",category:"Algebra",syntax:["qr(A)"],description:"Calculates the Matrix QR decomposition. Matrix `A` is decomposed in two matrices (`Q`, `R`) where `Q` is an orthogonal matrix and `R` is an upper triangular matrix.",examples:["qr([[1, -1, 4], [1, 4, -2], [1, 4, 2], [1, -1, 0]])"],seealso:["lup","slu","matrix"]},rTe={name:"rationalize",category:"Algebra",syntax:["rationalize(expr)","rationalize(expr, scope)","rationalize(expr, scope, detailed)"],description:"Transform a rationalizable expression in a rational fraction. If rational fraction is one variable polynomial then converts the numerator and denominator in canonical form, with decreasing exponents, returning the coefficients of numerator.",examples:['rationalize("2x/y - y/(x+1)")','rationalize("2x/y - y/(x+1)", true)'],seealso:["simplify"]},oTe={name:"resolve",category:"Algebra",syntax:["resolve(node, scope)"],description:"Recursively substitute variables in an expression tree.",examples:['resolve(parse("1 + x"), { x: 7 })','resolve(parse("size(text)"), { text: "Hello World" })','resolve(parse("x + y"), { x: parse("3z") })','resolve(parse("3x"), { x: parse("y+z"), z: parse("w^y") })'],seealso:["simplify","evaluate"],mayThrow:["ReferenceError"]},aTe={name:"simplify",category:"Algebra",syntax:["simplify(expr)","simplify(expr, rules)"],description:"Simplify an expression tree.",examples:['simplify("3 + 2 / 4")','simplify("2x + x")','f = parse("x * (x + 2 + x)")',"simplified = simplify(f)","simplified.evaluate({x: 2})"],seealso:["simplifyCore","derivative","evaluate","parse","rationalize","resolve"]},iTe={name:"simplifyConstant",category:"Algebra",syntax:["simplifyConstant(expr)","simplifyConstant(expr, options)"],description:"Replace constant subexpressions of node with their values.",examples:['simplifyConatant("(3-3)*x")','simplifyConstant(parse("z-cos(tau/8)"))'],seealso:["simplify","simplifyCore","evaluate"]},lTe={name:"simplifyCore",category:"Algebra",syntax:["simplifyCore(node)"],description:"Perform simple one-pass simplifications on an expression tree.",examples:['simplifyCore(parse("0*x"))','simplifyCore(parse("(x+0)*2"))'],seealso:["simplify","simplifyConstant","evaluate"]},sTe={name:"slu",category:"Algebra",syntax:["slu(A, order, threshold)"],description:"Calculate the Matrix LU decomposition with full pivoting. Matrix A is decomposed in two matrices (L, U) and two permutation vectors (pinv, q) where P * A * Q = L * U",examples:["slu(sparse([4.5, 0, 3.2, 0; 3.1, 2.9, 0, 0.9; 0, 1.7, 3, 0; 3.5, 0.4, 0, 1]), 1, 0.001)"],seealso:["lusolve","lsolve","usolve","matrix","sparse","lup","qr"]},uTe={name:"symbolicEqual",category:"Algebra",syntax:["symbolicEqual(expr1, expr2)","symbolicEqual(expr1, expr2, options)"],description:"Returns true if the difference of the expressions simplifies to 0",examples:['symbolicEqual("x*y","y*x")','symbolicEqual("abs(x^2)", "x^2")','symbolicEqual("abs(x)", "x", {context: {abs: {trivial: true}}})'],seealso:["simplify","evaluate"]},cTe={name:"usolve",category:"Algebra",syntax:["x=usolve(U, b)"],description:"Finds one solution of the linear system U * x = b where U is an [n x n] upper triangular matrix and b is a [n] column vector.",examples:["x=usolve(sparse([1, 1, 1, 1; 0, 1, 1, 1; 0, 0, 1, 1; 0, 0, 0, 1]), [1; 2; 3; 4])"],seealso:["usolveAll","lup","lusolve","lsolve","matrix","sparse"]},dTe={name:"usolveAll",category:"Algebra",syntax:["x=usolve(U, b)"],description:"Finds all solutions of the linear system U * x = b where U is an [n x n] upper triangular matrix and b is a [n] column vector.",examples:["x=usolve(sparse([1, 1, 1, 1; 0, 1, 1, 1; 0, 0, 1, 1; 0, 0, 0, 1]), [1; 2; 3; 4])"],seealso:["usolve","lup","lusolve","lsolve","matrix","sparse"]},fTe={name:"abs",category:"Arithmetic",syntax:["abs(x)"],description:"Compute the absolute value.",examples:["abs(3.5)","abs(-4.2)"],seealso:["sign"]},pTe={name:"add",category:"Operators",syntax:["x + y","add(x, y)"],description:"Add two values.",examples:["a = 2.1 + 3.6","a - 3.6","3 + 2i","3 cm + 2 inch",'"2.3" + "4"'],seealso:["subtract"]},mTe={name:"cbrt",category:"Arithmetic",syntax:["cbrt(x)","cbrt(x, allRoots)"],description:"Compute the cubic root value. If x = y * y * y, then y is the cubic root of x. When `x` is a number or complex number, an optional second argument `allRoots` can be provided to return all three cubic roots. If not provided, the principal root is returned",examples:["cbrt(64)","cube(4)","cbrt(-8)","cbrt(2 + 3i)","cbrt(8i)","cbrt(8i, true)","cbrt(27 m^3)"],seealso:["square","sqrt","cube","multiply"]},vTe={name:"ceil",category:"Arithmetic",syntax:["ceil(x)"],description:"Round a value towards plus infinity. If x is complex, both real and imaginary part are rounded towards plus infinity.",examples:["ceil(3.2)","ceil(3.8)","ceil(-4.2)"],seealso:["floor","fix","round"]},hTe={name:"cube",category:"Arithmetic",syntax:["cube(x)"],description:"Compute the cube of a value. The cube of x is x * x * x.",examples:["cube(2)","2^3","2 * 2 * 2"],seealso:["multiply","square","pow"]},gTe={name:"divide",category:"Operators",syntax:["x / y","divide(x, y)"],description:"Divide two values.",examples:["a = 2 / 3","a * 3","4.5 / 2","3 + 4 / 2","(3 + 4) / 2","18 km / 4.5"],seealso:["multiply"]},yTe={name:"dotDivide",category:"Operators",syntax:["x ./ y","dotDivide(x, y)"],description:"Divide two values element wise.",examples:["a = [1, 2, 3; 4, 5, 6]","b = [2, 1, 1; 3, 2, 5]","a ./ b"],seealso:["multiply","dotMultiply","divide"]},bTe={name:"dotMultiply",category:"Operators",syntax:["x .* y","dotMultiply(x, y)"],description:"Multiply two values element wise.",examples:["a = [1, 2, 3; 4, 5, 6]","b = [2, 1, 1; 3, 2, 5]","a .* b"],seealso:["multiply","divide","dotDivide"]},xTe={name:"dotPow",category:"Operators",syntax:["x .^ y","dotPow(x, y)"],description:"Calculates the power of x to y element wise.",examples:["a = [1, 2, 3; 4, 5, 6]","a .^ 2"],seealso:["pow"]},wTe={name:"exp",category:"Arithmetic",syntax:["exp(x)"],description:"Calculate the exponent of a value.",examples:["exp(1.3)","e ^ 1.3","log(exp(1.3))","x = 2.4","(exp(i*x) == cos(x) + i*sin(x)) # Euler's formula"],seealso:["expm","expm1","pow","log"]},STe={name:"expm",category:"Arithmetic",syntax:["exp(x)"],description:"Compute the matrix exponential, expm(A) = e^A. The matrix must be square. Not to be confused with exp(a), which performs element-wise exponentiation.",examples:["expm([[0,2],[0,0]])"],seealso:["exp"]},CTe={name:"expm1",category:"Arithmetic",syntax:["expm1(x)"],description:"Calculate the value of subtracting 1 from the exponential value.",examples:["expm1(2)","pow(e, 2) - 1","log(expm1(2) + 1)"],seealso:["exp","pow","log"]},$Te={name:"fix",category:"Arithmetic",syntax:["fix(x)"],description:"Round a value towards zero. If x is complex, both real and imaginary part are rounded towards zero.",examples:["fix(3.2)","fix(3.8)","fix(-4.2)","fix(-4.8)"],seealso:["ceil","floor","round"]},ETe={name:"floor",category:"Arithmetic",syntax:["floor(x)"],description:"Round a value towards minus infinity.If x is complex, both real and imaginary part are rounded towards minus infinity.",examples:["floor(3.2)","floor(3.8)","floor(-4.2)"],seealso:["ceil","fix","round"]},DTe={name:"gcd",category:"Arithmetic",syntax:["gcd(a, b)","gcd(a, b, c, ...)"],description:"Compute the greatest common divisor.",examples:["gcd(8, 12)","gcd(-4, 6)","gcd(25, 15, -10)"],seealso:["lcm","xgcd"]},ATe={name:"hypot",category:"Arithmetic",syntax:["hypot(a, b, c, ...)","hypot([a, b, c, ...])"],description:"Calculate the hypotenusa of a list with values. ",examples:["hypot(3, 4)","sqrt(3^2 + 4^2)","hypot(-2)","hypot([3, 4, 5])"],seealso:["abs","norm"]},OTe={name:"invmod",category:"Arithmetic",syntax:["invmod(a, b)"],description:"Calculate the (modular) multiplicative inverse of a modulo b. Solution to the equation ax ≣ 1 (mod b)",examples:["invmod(8, 12)=NaN","invmod(7, 13)=2","invmod(15151, 15122)=10429"],seealso:["gcd","xgcd"]},TTe={name:"lcm",category:"Arithmetic",syntax:["lcm(x, y)"],description:"Compute the least common multiple.",examples:["lcm(4, 6)","lcm(6, 21)","lcm(6, 21, 5)"],seealso:["gcd"]},MTe={name:"log",category:"Arithmetic",syntax:["log(x)","log(x, base)"],description:"Compute the logarithm of a value. If no base is provided, the natural logarithm of x is calculated. If base if provided, the logarithm is calculated for the specified base. log(x, base) is defined as log(x) / log(base).",examples:["log(3.5)","a = log(2.4)","exp(a)","10 ^ 4","log(10000, 10)","log(10000) / log(10)","b = log(1024, 2)","2 ^ b"],seealso:["exp","log1p","log2","log10"]},NTe={name:"log10",category:"Arithmetic",syntax:["log10(x)"],description:"Compute the 10-base logarithm of a value.",examples:["log10(0.00001)","log10(10000)","10 ^ 4","log(10000) / log(10)","log(10000, 10)"],seealso:["exp","log"]},PTe={name:"log1p",category:"Arithmetic",syntax:["log1p(x)","log1p(x, base)"],description:"Calculate the logarithm of a `value+1`",examples:["log1p(2.5)","exp(log1p(1.4))","pow(10, 4)","log1p(9999, 10)","log1p(9999) / log(10)"],seealso:["exp","log","log2","log10"]},ITe={name:"log2",category:"Arithmetic",syntax:["log2(x)"],description:"Calculate the 2-base of a value. This is the same as calculating `log(x, 2)`.",examples:["log2(0.03125)","log2(16)","log2(16) / log2(2)","pow(2, 4)"],seealso:["exp","log1p","log","log10"]},_Te={name:"mod",category:"Operators",syntax:["x % y","x mod y","mod(x, y)"],description:"Calculates the modulus, the remainder of an integer division.",examples:["7 % 3","11 % 2","10 mod 4","isOdd(x) = x % 2","isOdd(2)","isOdd(3)"],seealso:["divide"]},BTe={name:"multiply",category:"Operators",syntax:["x * y","multiply(x, y)"],description:"multiply two values.",examples:["a = 2.1 * 3.4","a / 3.4","2 * 3 + 4","2 * (3 + 4)","3 * 2.1 km"],seealso:["divide"]},FTe={name:"norm",category:"Arithmetic",syntax:["norm(x)","norm(x, p)"],description:"Calculate the norm of a number, vector or matrix.",examples:["abs(-3.5)","norm(-3.5)","norm(3 - 4i)","norm([1, 2, -3], Infinity)","norm([1, 2, -3], -Infinity)","norm([3, 4], 2)","norm([[1, 2], [3, 4]], 1)",'norm([[1, 2], [3, 4]], "inf")','norm([[1, 2], [3, 4]], "fro")']},RTe={name:"nthRoot",category:"Arithmetic",syntax:["nthRoot(a)","nthRoot(a, root)"],description:'Calculate the nth root of a value. The principal nth root of a positive real number A, is the positive real solution of the equation "x^root = A".',examples:["4 ^ 3","nthRoot(64, 3)","nthRoot(9, 2)","sqrt(9)"],seealso:["nthRoots","pow","sqrt"]},zTe={name:"nthRoots",category:"Arithmetic",syntax:["nthRoots(A)","nthRoots(A, root)"],description:'Calculate the nth roots of a value. An nth root of a positive real number A, is a positive real solution of the equation "x^root = A". This function returns an array of complex values.',examples:["nthRoots(1)","nthRoots(1, 3)"],seealso:["sqrt","pow","nthRoot"]},LTe={name:"pow",category:"Operators",syntax:["x ^ y","pow(x, y)"],description:"Calculates the power of x to y, x^y.",examples:["2^3","2*2*2","1 + e ^ (pi * i)","pow([[1, 2], [4, 3]], 2)","pow([[1, 2], [4, 3]], -1)"],seealso:["multiply","nthRoot","nthRoots","sqrt"]},kTe={name:"round",category:"Arithmetic",syntax:["round(x)","round(x, n)"],description:"round a value towards the nearest integer.If x is complex, both real and imaginary part are rounded towards the nearest integer. When n is specified, the value is rounded to n decimals.",examples:["round(3.2)","round(3.8)","round(-4.2)","round(-4.8)","round(pi, 3)","round(123.45678, 2)"],seealso:["ceil","floor","fix"]},HTe={name:"sign",category:"Arithmetic",syntax:["sign(x)"],description:"Compute the sign of a value. The sign of a value x is 1 when x>1, -1 when x<0, and 0 when x=0.",examples:["sign(3.5)","sign(-4.2)","sign(0)"],seealso:["abs"]},jTe={name:"sqrt",category:"Arithmetic",syntax:["sqrt(x)"],description:"Compute the square root value. If x = y * y, then y is the square root of x.",examples:["sqrt(25)","5 * 5","sqrt(-1)"],seealso:["square","sqrtm","multiply","nthRoot","nthRoots","pow"]},VTe={name:"sqrtm",category:"Arithmetic",syntax:["sqrtm(x)"],description:"Calculate the principal square root of a square matrix. The principal square root matrix `X` of another matrix `A` is such that `X * X = A`.",examples:["sqrtm([[33, 24], [48, 57]])"],seealso:["sqrt","abs","square","multiply"]},WTe={name:"sylvester",category:"Matrix",syntax:["sylvester(A,B,C)"],description:"Solves the real-valued Sylvester equation AX+XB=C for X",examples:["sylvester([[-1, -2], [1, 1]], [[-2, 1], [-1, 2]], [[-3, 2], [3, 0]])","sylvester(A,B,C)"],seealso:["schur","lyap"]},UTe={name:"schur",category:"Matrix",syntax:["schur(A)"],description:"Performs a real Schur decomposition of the real matrix A = UTU'",examples:["schur([[1, 0], [-4, 3]])","schur(A)"],seealso:["lyap","sylvester"]},KTe={name:"lyap",category:"Matrix",syntax:["lyap(A,Q)"],description:"Solves the Continuous-time Lyapunov equation AP+PA'+Q=0 for P",examples:["lyap([[-2, 0], [1, -4]], [[3, 1], [1, 3]])","lyap(A,Q)"],seealso:["schur","sylvester"]},qTe={name:"square",category:"Arithmetic",syntax:["square(x)"],description:"Compute the square of a value. The square of x is x * x.",examples:["square(3)","sqrt(9)","3^2","3 * 3"],seealso:["multiply","pow","sqrt","cube"]},GTe={name:"subtract",category:"Operators",syntax:["x - y","subtract(x, y)"],description:"subtract two values.",examples:["a = 5.3 - 2","a + 2","2/3 - 1/6","2 * 3 - 3","2.1 km - 500m"],seealso:["add"]},XTe={name:"unaryMinus",category:"Operators",syntax:["-x","unaryMinus(x)"],description:"Inverse the sign of a value. Converts booleans and strings to numbers.",examples:["-4.5","-(-5.6)",'-"22"'],seealso:["add","subtract","unaryPlus"]},YTe={name:"unaryPlus",category:"Operators",syntax:["+x","unaryPlus(x)"],description:"Converts booleans and strings to numbers.",examples:["+true",'+"2"'],seealso:["add","subtract","unaryMinus"]},ZTe={name:"xgcd",category:"Arithmetic",syntax:["xgcd(a, b)"],description:"Calculate the extended greatest common divisor for two values. The result is an array [d, x, y] with 3 entries, where d is the greatest common divisor, and d = x * a + y * b.",examples:["xgcd(8, 12)","gcd(8, 12)","xgcd(36163, 21199)"],seealso:["gcd","lcm"]},JTe={name:"bitAnd",category:"Bitwise",syntax:["x & y","bitAnd(x, y)"],description:"Bitwise AND operation. Performs the logical AND operation on each pair of the corresponding bits of the two given values by multiplying them. If both bits in the compared position are 1, the bit in the resulting binary representation is 1, otherwise, the result is 0",examples:["5 & 3","bitAnd(53, 131)","[1, 12, 31] & 42"],seealso:["bitNot","bitOr","bitXor","leftShift","rightArithShift","rightLogShift"]},QTe={name:"bitNot",category:"Bitwise",syntax:["~x","bitNot(x)"],description:"Bitwise NOT operation. Performs a logical negation on each bit of the given value. Bits that are 0 become 1, and those that are 1 become 0.",examples:["~1","~2","bitNot([2, -3, 4])"],seealso:["bitAnd","bitOr","bitXor","leftShift","rightArithShift","rightLogShift"]},eMe={name:"bitOr",category:"Bitwise",syntax:["x | y","bitOr(x, y)"],description:"Bitwise OR operation. Performs the logical inclusive OR operation on each pair of corresponding bits of the two given values. The result in each position is 1 if the first bit is 1 or the second bit is 1 or both bits are 1, otherwise, the result is 0.",examples:["5 | 3","bitOr([1, 2, 3], 4)"],seealso:["bitAnd","bitNot","bitXor","leftShift","rightArithShift","rightLogShift"]},tMe={name:"bitXor",category:"Bitwise",syntax:["bitXor(x, y)"],description:"Bitwise XOR operation, exclusive OR. Performs the logical exclusive OR operation on each pair of corresponding bits of the two given values. The result in each position is 1 if only the first bit is 1 or only the second bit is 1, but will be 0 if both are 0 or both are 1.",examples:["bitOr(1, 2)","bitXor([2, 3, 4], 4)"],seealso:["bitAnd","bitNot","bitOr","leftShift","rightArithShift","rightLogShift"]},nMe={name:"leftShift",category:"Bitwise",syntax:["x << y","leftShift(x, y)"],description:"Bitwise left logical shift of a value x by y number of bits.",examples:["4 << 1","8 >> 1"],seealso:["bitAnd","bitNot","bitOr","bitXor","rightArithShift","rightLogShift"]},rMe={name:"rightArithShift",category:"Bitwise",syntax:["x >> y","rightArithShift(x, y)"],description:"Bitwise right arithmetic shift of a value x by y number of bits.",examples:["8 >> 1","4 << 1","-12 >> 2"],seealso:["bitAnd","bitNot","bitOr","bitXor","leftShift","rightLogShift"]},oMe={name:"rightLogShift",category:"Bitwise",syntax:["x >>> y","rightLogShift(x, y)"],description:"Bitwise right logical shift of a value x by y number of bits.",examples:["8 >>> 1","4 << 1","-12 >>> 2"],seealso:["bitAnd","bitNot","bitOr","bitXor","leftShift","rightArithShift"]},aMe={name:"bellNumbers",category:"Combinatorics",syntax:["bellNumbers(n)"],description:"The Bell Numbers count the number of partitions of a set. A partition is a pairwise disjoint subset of S whose union is S. `bellNumbers` only takes integer arguments. The following condition must be enforced: n >= 0.",examples:["bellNumbers(3)","bellNumbers(8)"],seealso:["stirlingS2"]},iMe={name:"catalan",category:"Combinatorics",syntax:["catalan(n)"],description:"The Catalan Numbers enumerate combinatorial structures of many different types. catalan only takes integer arguments. The following condition must be enforced: n >= 0.",examples:["catalan(3)","catalan(8)"],seealso:["bellNumbers"]},lMe={name:"composition",category:"Combinatorics",syntax:["composition(n, k)"],description:"The composition counts of n into k parts. composition only takes integer arguments. The following condition must be enforced: k <= n.",examples:["composition(5, 3)"],seealso:["combinations"]},sMe={name:"stirlingS2",category:"Combinatorics",syntax:["stirlingS2(n, k)"],description:"he Stirling numbers of the second kind, counts the number of ways to partition a set of n labelled objects into k nonempty unlabelled subsets. `stirlingS2` only takes integer arguments. The following condition must be enforced: k <= n. If n = k or k = 1, then s(n,k) = 1.",examples:["stirlingS2(5, 3)"],seealso:["bellNumbers"]},uMe={name:"arg",category:"Complex",syntax:["arg(x)"],description:"Compute the argument of a complex value. If x = a+bi, the argument is computed as atan2(b, a).",examples:["arg(2 + 2i)","atan2(3, 2)","arg(2 + 3i)"],seealso:["re","im","conj","abs"]},cMe={name:"conj",category:"Complex",syntax:["conj(x)"],description:"Compute the complex conjugate of a complex value. If x = a+bi, the complex conjugate is a-bi.",examples:["conj(2 + 3i)","conj(2 - 3i)","conj(-5.2i)"],seealso:["re","im","abs","arg"]},dMe={name:"im",category:"Complex",syntax:["im(x)"],description:"Get the imaginary part of a complex number.",examples:["im(2 + 3i)","re(2 + 3i)","im(-5.2i)","im(2.4)"],seealso:["re","conj","abs","arg"]},fMe={name:"re",category:"Complex",syntax:["re(x)"],description:"Get the real part of a complex number.",examples:["re(2 + 3i)","im(2 + 3i)","re(-5.2i)","re(2.4)"],seealso:["im","conj","abs","arg"]},pMe={name:"evaluate",category:"Expression",syntax:["evaluate(expression)","evaluate([expr1, expr2, expr3, ...])"],description:"Evaluate an expression or an array with expressions.",examples:['evaluate("2 + 3")','evaluate("sqrt(" + 4 + ")")'],seealso:[]},mMe={name:"help",category:"Expression",syntax:["help(object)","help(string)"],description:"Display documentation on a function or data type.",examples:["help(sqrt)",'help("complex")'],seealso:[]},vMe={name:"distance",category:"Geometry",syntax:["distance([x1, y1], [x2, y2])","distance([[x1, y1], [x2, y2]])"],description:"Calculates the Euclidean distance between two points.",examples:["distance([0,0], [4,4])","distance([[0,0], [4,4]])"],seealso:[]},hMe={name:"intersect",category:"Geometry",syntax:["intersect(expr1, expr2, expr3, expr4)","intersect(expr1, expr2, expr3)"],description:"Computes the intersection point of lines and/or planes.",examples:["intersect([0, 0], [10, 10], [10, 0], [0, 10])","intersect([1, 0, 1], [4, -2, 2], [1, 1, 1, 6])"],seealso:[]},gMe={name:"and",category:"Logical",syntax:["x and y","and(x, y)"],description:"Logical and. Test whether two values are both defined with a nonzero/nonempty value.",examples:["true and false","true and true","2 and 4"],seealso:["not","or","xor"]},yMe={name:"not",category:"Logical",syntax:["not x","not(x)"],description:"Logical not. Flips the boolean value of given argument.",examples:["not true","not false","not 2","not 0"],seealso:["and","or","xor"]},bMe={name:"or",category:"Logical",syntax:["x or y","or(x, y)"],description:"Logical or. Test if at least one value is defined with a nonzero/nonempty value.",examples:["true or false","false or false","0 or 4"],seealso:["not","and","xor"]},xMe={name:"xor",category:"Logical",syntax:["x xor y","xor(x, y)"],description:"Logical exclusive or, xor. Test whether one and only one value is defined with a nonzero/nonempty value.",examples:["true xor false","false xor false","true xor true","0 xor 4"],seealso:["not","and","or"]},wMe={name:"column",category:"Matrix",syntax:["column(x, index)"],description:"Return a column from a matrix or array.",examples:["A = [[1, 2], [3, 4]]","column(A, 1)","column(A, 2)"],seealso:["row","matrixFromColumns"]},SMe={name:"concat",category:"Matrix",syntax:["concat(A, B, C, ...)","concat(A, B, C, ..., dim)"],description:"Concatenate matrices. By default, the matrices are concatenated by the last dimension. The dimension on which to concatenate can be provided as last argument.",examples:["A = [1, 2; 5, 6]","B = [3, 4; 7, 8]","concat(A, B)","concat(A, B, 1)","concat(A, B, 2)"],seealso:["det","diag","identity","inv","ones","range","size","squeeze","subset","trace","transpose","zeros"]},CMe={name:"count",category:"Matrix",syntax:["count(x)"],description:"Count the number of elements of a matrix, array or string.",examples:["a = [1, 2; 3, 4; 5, 6]","count(a)","size(a)",'count("hello world")'],seealso:["size"]},$Me={name:"cross",category:"Matrix",syntax:["cross(A, B)"],description:"Calculate the cross product for two vectors in three dimensional space.",examples:["cross([1, 1, 0], [0, 1, 1])","cross([3, -3, 1], [4, 9, 2])","cross([2, 3, 4], [5, 6, 7])"],seealso:["multiply","dot"]},EMe={name:"ctranspose",category:"Matrix",syntax:["x'","ctranspose(x)"],description:"Complex Conjugate and Transpose a matrix",examples:["a = [1, 2, 3; 4, 5, 6]","a'","ctranspose(a)"],seealso:["concat","det","diag","identity","inv","ones","range","size","squeeze","subset","trace","zeros"]},DMe={name:"det",category:"Matrix",syntax:["det(x)"],description:"Calculate the determinant of a matrix",examples:["det([1, 2; 3, 4])","det([-2, 2, 3; -1, 1, 3; 2, 0, -1])"],seealso:["concat","diag","identity","inv","ones","range","size","squeeze","subset","trace","transpose","zeros"]},AMe={name:"diag",category:"Matrix",syntax:["diag(x)","diag(x, k)"],description:"Create a diagonal matrix or retrieve the diagonal of a matrix. When x is a vector, a matrix with the vector values on the diagonal will be returned. When x is a matrix, a vector with the diagonal values of the matrix is returned. When k is provided, the k-th diagonal will be filled in or retrieved, if k is positive, the values are placed on the super diagonal. When k is negative, the values are placed on the sub diagonal.",examples:["diag(1:3)","diag(1:3, 1)","a = [1, 2, 3; 4, 5, 6; 7, 8, 9]","diag(a)"],seealso:["concat","det","identity","inv","ones","range","size","squeeze","subset","trace","transpose","zeros"]},OMe={name:"diff",category:"Matrix",syntax:["diff(arr)","diff(arr, dim)"],description:["Create a new matrix or array with the difference of the passed matrix or array.","Dim parameter is optional and used to indicant the dimension of the array/matrix to apply the difference","If no dimension parameter is passed it is assumed as dimension 0","Dimension is zero-based in javascript and one-based in the parser","Arrays must be 'rectangular' meaning arrays like [1, 2]","If something is passed as a matrix it will be returned as a matrix but other than that all matrices are converted to arrays"],examples:["diff([1, 2, 4, 7, 0])","diff([1, 2, 4, 7, 0], 0)","diff(matrix([1, 2, 4, 7, 0]))","diff([[1, 2], [3, 4]])","diff([[1, 2], [3, 4]], 0)","diff([[1, 2], [3, 4]], 1)","diff([[1, 2], [3, 4]], bignumber(1))","diff(matrix([[1, 2], [3, 4]]), 1)","diff([[1, 2], matrix([3, 4])], 1)"],seealso:["subtract","partitionSelect"]},TMe={name:"dot",category:"Matrix",syntax:["dot(A, B)","A * B"],description:"Calculate the dot product of two vectors. The dot product of A = [a1, a2, a3, ..., an] and B = [b1, b2, b3, ..., bn] is defined as dot(A, B) = a1 * b1 + a2 * b2 + a3 * b3 + ... + an * bn",examples:["dot([2, 4, 1], [2, 2, 3])","[2, 4, 1] * [2, 2, 3]"],seealso:["multiply","cross"]},MMe={name:"eigs",category:"Matrix",syntax:["eigs(x)"],description:"Calculate the eigenvalues and eigenvectors of a real symmetric matrix",examples:["eigs([[5, 2.3], [2.3, 1]])"],seealso:["inv"]},NMe={name:"filter",category:"Matrix",syntax:["filter(x, test)"],description:"Filter items in a matrix.",examples:["isPositive(x) = x > 0","filter([6, -2, -1, 4, 3], isPositive)","filter([6, -2, 0, 1, 0], x != 0)"],seealso:["sort","map","forEach"]},PMe={name:"flatten",category:"Matrix",syntax:["flatten(x)"],description:"Flatten a multi dimensional matrix into a single dimensional matrix.",examples:["a = [1, 2, 3; 4, 5, 6]","size(a)","b = flatten(a)","size(b)"],seealso:["concat","resize","size","squeeze"]},IMe={name:"forEach",category:"Matrix",syntax:["forEach(x, callback)"],description:"Iterates over all elements of a matrix/array, and executes the given callback function.",examples:["numberOfPets = {}","addPet(n) = numberOfPets[n] = (numberOfPets[n] ? numberOfPets[n]:0 ) + 1;",'forEach(["Dog","Cat","Cat"], addPet)',"numberOfPets"],seealso:["map","sort","filter"]},_Me={name:"getMatrixDataType",category:"Matrix",syntax:["getMatrixDataType(x)"],description:'Find the data type of all elements in a matrix or array, for example "number" if all items are a number and "Complex" if all values are complex numbers. If a matrix contains more than one data type, it will return "mixed".',examples:["getMatrixDataType([1, 2, 3])","getMatrixDataType([[5 cm], [2 inch]])",'getMatrixDataType([1, "text"])',"getMatrixDataType([1, bignumber(4)])"],seealso:["matrix","sparse","typeOf"]},BMe={name:"identity",category:"Matrix",syntax:["identity(n)","identity(m, n)","identity([m, n])"],description:"Returns the identity matrix with size m-by-n. The matrix has ones on the diagonal and zeros elsewhere.",examples:["identity(3)","identity(3, 5)","a = [1, 2, 3; 4, 5, 6]","identity(size(a))"],seealso:["concat","det","diag","inv","ones","range","size","squeeze","subset","trace","transpose","zeros"]},FMe={name:"inv",category:"Matrix",syntax:["inv(x)"],description:"Calculate the inverse of a matrix",examples:["inv([1, 2; 3, 4])","inv(4)","1 / 4"],seealso:["concat","det","diag","identity","ones","range","size","squeeze","subset","trace","transpose","zeros"]},RMe={name:"pinv",category:"Matrix",syntax:["pinv(x)"],description:"Calculate the Moore–Penrose inverse of a matrix",examples:["pinv([1, 2; 3, 4])","pinv([[1, 0], [0, 1], [0, 1]])","pinv(4)"],seealso:["inv"]},zMe={name:"kron",category:"Matrix",syntax:["kron(x, y)"],description:"Calculates the kronecker product of 2 matrices or vectors.",examples:["kron([[1, 0], [0, 1]], [[1, 2], [3, 4]])","kron([1,1], [2,3,4])"],seealso:["multiply","dot","cross"]},LMe={name:"map",category:"Matrix",syntax:["map(x, callback)"],description:"Create a new matrix or array with the results of the callback function executed on each entry of the matrix/array.",examples:["map([1, 2, 3], square)"],seealso:["filter","forEach"]},kMe={name:"matrixFromColumns",category:"Matrix",syntax:["matrixFromColumns(...arr)","matrixFromColumns(row1, row2)","matrixFromColumns(row1, row2, row3)"],description:"Create a dense matrix from vectors as individual columns.",examples:["matrixFromColumns([1, 2, 3], [[4],[5],[6]])"],seealso:["matrix","matrixFromRows","matrixFromFunction","zeros"]},HMe={name:"matrixFromFunction",category:"Matrix",syntax:["matrixFromFunction(size, fn)","matrixFromFunction(size, fn, format)","matrixFromFunction(size, fn, format, datatype)","matrixFromFunction(size, format, fn)","matrixFromFunction(size, format, datatype, fn)"],description:"Create a matrix by evaluating a generating function at each index.",examples:["f(I) = I[1] - I[2]","matrixFromFunction([3,3], f)","g(I) = I[1] - I[2] == 1 ? 4 : 0",'matrixFromFunction([100, 100], "sparse", g)',"matrixFromFunction([5], random)"],seealso:["matrix","matrixFromRows","matrixFromColumns","zeros"]},jMe={name:"matrixFromRows",category:"Matrix",syntax:["matrixFromRows(...arr)","matrixFromRows(row1, row2)","matrixFromRows(row1, row2, row3)"],description:"Create a dense matrix from vectors as individual rows.",examples:["matrixFromRows([1, 2, 3], [[4],[5],[6]])"],seealso:["matrix","matrixFromColumns","matrixFromFunction","zeros"]},VMe={name:"ones",category:"Matrix",syntax:["ones(m)","ones(m, n)","ones(m, n, p, ...)","ones([m])","ones([m, n])","ones([m, n, p, ...])"],description:"Create a matrix containing ones.",examples:["ones(3)","ones(3, 5)","ones([2,3]) * 4.5","a = [1, 2, 3; 4, 5, 6]","ones(size(a))"],seealso:["concat","det","diag","identity","inv","range","size","squeeze","subset","trace","transpose","zeros"]},WMe={name:"partitionSelect",category:"Matrix",syntax:["partitionSelect(x, k)","partitionSelect(x, k, compare)"],description:"Partition-based selection of an array or 1D matrix. Will find the kth smallest value, and mutates the input array. Uses Quickselect.",examples:["partitionSelect([5, 10, 1], 2)",'partitionSelect(["C", "B", "A", "D"], 1, compareText)',"arr = [5, 2, 1]","partitionSelect(arr, 0) # returns 1, arr is now: [1, 2, 5]","arr","partitionSelect(arr, 1, 'desc') # returns 2, arr is now: [5, 2, 1]","arr"],seealso:["sort"]},UMe={name:"range",category:"Type",syntax:["start:end","start:step:end","range(start, end)","range(start, end, step)","range(string)"],description:"Create a range. Lower bound of the range is included, upper bound is excluded.",examples:["1:5","3:-1:-3","range(3, 7)","range(0, 12, 2)",'range("4:10")',"a = [1, 2, 3, 4; 5, 6, 7, 8]","a[1:2, 1:2]"],seealso:["concat","det","diag","identity","inv","ones","size","squeeze","subset","trace","transpose","zeros"]},KMe={name:"reshape",category:"Matrix",syntax:["reshape(x, sizes)"],description:"Reshape a multi dimensional array to fit the specified dimensions.",examples:["reshape([1, 2, 3, 4, 5, 6], [2, 3])","reshape([[1, 2], [3, 4]], [1, 4])","reshape([[1, 2], [3, 4]], [4])","reshape([1, 2, 3, 4], [-1, 2])"],seealso:["size","squeeze","resize"]},qMe={name:"resize",category:"Matrix",syntax:["resize(x, size)","resize(x, size, defaultValue)"],description:"Resize a matrix.",examples:["resize([1,2,3,4,5], [3])","resize([1,2,3], [5])","resize([1,2,3], [5], -1)","resize(2, [2, 3])",'resize("hello", [8], "!")'],seealso:["size","subset","squeeze","reshape"]},GMe={name:"rotate",category:"Matrix",syntax:["rotate(w, theta)","rotate(w, theta, v)"],description:"Returns a 2-D rotation matrix (2x2) for a given angle (in radians). Returns a 2-D rotation matrix (3x3) of a given angle (in radians) around given axis.",examples:["rotate([1, 0], pi / 2)",'rotate(matrix([1, 0]), unit("35deg"))','rotate([1, 0, 0], unit("90deg"), [0, 0, 1])','rotate(matrix([1, 0, 0]), unit("90deg"), matrix([0, 0, 1]))'],seealso:["matrix","rotationMatrix"]},XMe={name:"rotationMatrix",category:"Matrix",syntax:["rotationMatrix(theta)","rotationMatrix(theta, v)","rotationMatrix(theta, v, format)"],description:"Returns a 2-D rotation matrix (2x2) for a given angle (in radians). Returns a 2-D rotation matrix (3x3) of a given angle (in radians) around given axis.",examples:["rotationMatrix(pi / 2)",'rotationMatrix(unit("45deg"), [0, 0, 1])','rotationMatrix(1, matrix([0, 0, 1]), "sparse")'],seealso:["cos","sin"]},YMe={name:"row",category:"Matrix",syntax:["row(x, index)"],description:"Return a row from a matrix or array.",examples:["A = [[1, 2], [3, 4]]","row(A, 1)","row(A, 2)"],seealso:["column","matrixFromRows"]},ZMe={name:"size",category:"Matrix",syntax:["size(x)"],description:"Calculate the size of a matrix.",examples:["size(2.3)",'size("hello world")',"a = [1, 2; 3, 4; 5, 6]","size(a)","size(1:6)"],seealso:["concat","count","det","diag","identity","inv","ones","range","squeeze","subset","trace","transpose","zeros"]},JMe={name:"sort",category:"Matrix",syntax:["sort(x)","sort(x, compare)"],description:'Sort the items in a matrix. Compare can be a string "asc", "desc", "natural", or a custom sort function.',examples:["sort([5, 10, 1])",'sort(["C", "B", "A", "D"], "natural")',"sortByLength(a, b) = size(a)[1] - size(b)[1]",'sort(["Langdon", "Tom", "Sara"], sortByLength)','sort(["10", "1", "2"], "natural")'],seealso:["map","filter","forEach"]},QMe={name:"squeeze",category:"Matrix",syntax:["squeeze(x)"],description:"Remove inner and outer singleton dimensions from a matrix.",examples:["a = zeros(3,2,1)","size(squeeze(a))","b = zeros(1,1,3)","size(squeeze(b))"],seealso:["concat","det","diag","identity","inv","ones","range","size","subset","trace","transpose","zeros"]},eNe={name:"subset",category:"Matrix",syntax:["value(index)","value(index) = replacement","subset(value, [index])","subset(value, [index], replacement)"],description:"Get or set a subset of the entries of a matrix or characters of a string. Indexes are one-based. There should be one index specification for each dimension of the target. Each specification can be a single index, a list of indices, or a range in colon notation `l:u`. In a range, both the lower bound l and upper bound u are included; and if a bound is omitted it defaults to the most extreme valid value. The cartesian product of the indices specified in each dimension determines the target of the operation.",examples:["d = [1, 2; 3, 4]","e = []","e[1, 1:2] = [5, 6]","e[2, :] = [7, 8]","f = d * e","f[2, 1]","f[:, 1]","f[[1,2], [1,3]] = [9, 10; 11, 12]","f"],seealso:["concat","det","diag","identity","inv","ones","range","size","squeeze","trace","transpose","zeros"]},tNe={name:"trace",category:"Matrix",syntax:["trace(A)"],description:"Calculate the trace of a matrix: the sum of the elements on the main diagonal of a square matrix.",examples:["A = [1, 2, 3; -1, 2, 3; 2, 0, 3]","trace(A)"],seealso:["concat","det","diag","identity","inv","ones","range","size","squeeze","subset","transpose","zeros"]},nNe={name:"transpose",category:"Matrix",syntax:["x'","transpose(x)"],description:"Transpose a matrix",examples:["a = [1, 2, 3; 4, 5, 6]","a'","transpose(a)"],seealso:["concat","det","diag","identity","inv","ones","range","size","squeeze","subset","trace","zeros"]},rNe={name:"zeros",category:"Matrix",syntax:["zeros(m)","zeros(m, n)","zeros(m, n, p, ...)","zeros([m])","zeros([m, n])","zeros([m, n, p, ...])"],description:"Create a matrix containing zeros.",examples:["zeros(3)","zeros(3, 5)","a = [1, 2, 3; 4, 5, 6]","zeros(size(a))"],seealso:["concat","det","diag","identity","inv","ones","range","size","squeeze","subset","trace","transpose"]},oNe={name:"fft",category:"Matrix",syntax:["fft(x)"],description:"Calculate N-dimensional fourier transform",examples:["fft([[1, 0], [1, 0]])"],seealso:["ifft"]},aNe={name:"ifft",category:"Matrix",syntax:["ifft(x)"],description:"Calculate N-dimensional inverse fourier transform",examples:["ifft([[2, 2], [0, 0]])"],seealso:["fft"]},iNe={name:"combinations",category:"Probability",syntax:["combinations(n, k)"],description:"Compute the number of combinations of n items taken k at a time",examples:["combinations(7, 5)"],seealso:["combinationsWithRep","permutations","factorial"]},lNe={name:"combinationsWithRep",category:"Probability",syntax:["combinationsWithRep(n, k)"],description:"Compute the number of combinations of n items taken k at a time with replacements.",examples:["combinationsWithRep(7, 5)"],seealso:["combinations","permutations","factorial"]},sNe={name:"factorial",category:"Probability",syntax:["n!","factorial(n)"],description:"Compute the factorial of a value",examples:["5!","5 * 4 * 3 * 2 * 1","3!"],seealso:["combinations","combinationsWithRep","permutations","gamma"]},uNe={name:"gamma",category:"Probability",syntax:["gamma(n)"],description:"Compute the gamma function. For small values, the Lanczos approximation is used, and for large values the extended Stirling approximation.",examples:["gamma(4)","3!","gamma(1/2)","sqrt(pi)"],seealso:["factorial"]},cNe={name:"lgamma",category:"Probability",syntax:["lgamma(n)"],description:"Logarithm of the gamma function for real, positive numbers and complex numbers, using Lanczos approximation for numbers and Stirling series for complex numbers.",examples:["lgamma(4)","lgamma(1/2)","lgamma(i)","lgamma(complex(1.1, 2))"],seealso:["gamma"]},dNe={name:"kldivergence",category:"Probability",syntax:["kldivergence(x, y)"],description:"Calculate the Kullback-Leibler (KL) divergence between two distributions.",examples:["kldivergence([0.7,0.5,0.4], [0.2,0.9,0.5])"],seealso:[]},fNe={name:"multinomial",category:"Probability",syntax:["multinomial(A)"],description:"Multinomial Coefficients compute the number of ways of picking a1, a2, ..., ai unordered outcomes from `n` possibilities. multinomial takes one array of integers as an argument. The following condition must be enforced: every ai > 0.",examples:["multinomial([1, 2, 1])"],seealso:["combinations","factorial"]},pNe={name:"permutations",category:"Probability",syntax:["permutations(n)","permutations(n, k)"],description:"Compute the number of permutations of n items taken k at a time",examples:["permutations(5)","permutations(5, 3)"],seealso:["combinations","combinationsWithRep","factorial"]},mNe={name:"pickRandom",category:"Probability",syntax:["pickRandom(array)","pickRandom(array, number)","pickRandom(array, weights)","pickRandom(array, number, weights)","pickRandom(array, weights, number)"],description:"Pick a random entry from a given array.",examples:["pickRandom(0:10)","pickRandom([1, 3, 1, 6])","pickRandom([1, 3, 1, 6], 2)","pickRandom([1, 3, 1, 6], [2, 3, 2, 1])","pickRandom([1, 3, 1, 6], 2, [2, 3, 2, 1])","pickRandom([1, 3, 1, 6], [2, 3, 2, 1], 2)"],seealso:["random","randomInt"]},vNe={name:"random",category:"Probability",syntax:["random()","random(max)","random(min, max)","random(size)","random(size, max)","random(size, min, max)"],description:"Return a random number.",examples:["random()","random(10, 20)","random([2, 3])"],seealso:["pickRandom","randomInt"]},hNe={name:"randomInt",category:"Probability",syntax:["randomInt(max)","randomInt(min, max)","randomInt(size)","randomInt(size, max)","randomInt(size, min, max)"],description:"Return a random integer number",examples:["randomInt(10, 20)","randomInt([2, 3], 10)"],seealso:["pickRandom","random"]},gNe={name:"compare",category:"Relational",syntax:["compare(x, y)"],description:"Compare two values. Returns 1 when x > y, -1 when x < y, and 0 when x == y.",examples:["compare(2, 3)","compare(3, 2)","compare(2, 2)","compare(5cm, 40mm)","compare(2, [1, 2, 3])"],seealso:["equal","unequal","smaller","smallerEq","largerEq","compareNatural","compareText"]},yNe={name:"compareNatural",category:"Relational",syntax:["compareNatural(x, y)"],description:"Compare two values of any type in a deterministic, natural way. Returns 1 when x > y, -1 when x < y, and 0 when x == y.",examples:["compareNatural(2, 3)","compareNatural(3, 2)","compareNatural(2, 2)","compareNatural(5cm, 40mm)",'compareNatural("2", "10")',"compareNatural(2 + 3i, 2 + 4i)","compareNatural([1, 2, 4], [1, 2, 3])","compareNatural([1, 5], [1, 2, 3])","compareNatural([1, 2], [1, 2])","compareNatural({a: 2}, {a: 4})"],seealso:["equal","unequal","smaller","smallerEq","largerEq","compare","compareText"]},bNe={name:"compareText",category:"Relational",syntax:["compareText(x, y)"],description:"Compare two strings lexically. Comparison is case sensitive. Returns 1 when x > y, -1 when x < y, and 0 when x == y.",examples:['compareText("B", "A")','compareText("A", "B")','compareText("A", "A")','compareText("2", "10")','compare("2", "10")',"compare(2, 10)",'compareNatural("2", "10")','compareText("B", ["A", "B", "C"])'],seealso:["compare","compareNatural"]},xNe={name:"deepEqual",category:"Relational",syntax:["deepEqual(x, y)"],description:"Check equality of two matrices element wise. Returns true if the size of both matrices is equal and when and each of the elements are equal.",examples:["deepEqual([1,3,4], [1,3,4])","deepEqual([1,3,4], [1,3])"],seealso:["equal","unequal","smaller","larger","smallerEq","largerEq","compare"]},wNe={name:"equal",category:"Relational",syntax:["x == y","equal(x, y)"],description:"Check equality of two values. Returns true if the values are equal, and false if not.",examples:["2+2 == 3","2+2 == 4","a = 3.2","b = 6-2.8","a == b","50cm == 0.5m"],seealso:["unequal","smaller","larger","smallerEq","largerEq","compare","deepEqual","equalText"]},SNe={name:"equalText",category:"Relational",syntax:["equalText(x, y)"],description:"Check equality of two strings. Comparison is case sensitive. Returns true if the values are equal, and false if not.",examples:['equalText("Hello", "Hello")','equalText("a", "A")','equal("2e3", "2000")','equalText("2e3", "2000")','equalText("B", ["A", "B", "C"])'],seealso:["compare","compareNatural","compareText","equal"]},CNe={name:"larger",category:"Relational",syntax:["x > y","larger(x, y)"],description:"Check if value x is larger than y. Returns true if x is larger than y, and false if not.",examples:["2 > 3","5 > 2*2","a = 3.3","b = 6-2.8","(a > b)","(b < a)","5 cm > 2 inch"],seealso:["equal","unequal","smaller","smallerEq","largerEq","compare"]},$Ne={name:"largerEq",category:"Relational",syntax:["x >= y","largerEq(x, y)"],description:"Check if value x is larger or equal to y. Returns true if x is larger or equal to y, and false if not.",examples:["2 >= 1+1","2 > 1+1","a = 3.2","b = 6-2.8","(a >= b)"],seealso:["equal","unequal","smallerEq","smaller","compare"]},ENe={name:"smaller",category:"Relational",syntax:["x < y","smaller(x, y)"],description:"Check if value x is smaller than value y. Returns true if x is smaller than y, and false if not.",examples:["2 < 3","5 < 2*2","a = 3.3","b = 6-2.8","(a < b)","5 cm < 2 inch"],seealso:["equal","unequal","larger","smallerEq","largerEq","compare"]},DNe={name:"smallerEq",category:"Relational",syntax:["x <= y","smallerEq(x, y)"],description:"Check if value x is smaller or equal to value y. Returns true if x is smaller than y, and false if not.",examples:["2 <= 1+1","2 < 1+1","a = 3.2","b = 6-2.8","(a <= b)"],seealso:["equal","unequal","larger","smaller","largerEq","compare"]},ANe={name:"unequal",category:"Relational",syntax:["x != y","unequal(x, y)"],description:"Check unequality of two values. Returns true if the values are unequal, and false if they are equal.",examples:["2+2 != 3","2+2 != 4","a = 3.2","b = 6-2.8","a != b","50cm != 0.5m","5 cm != 2 inch"],seealso:["equal","smaller","larger","smallerEq","largerEq","compare","deepEqual"]},ONe={name:"setCartesian",category:"Set",syntax:["setCartesian(set1, set2)"],description:"Create the cartesian product of two (multi)sets. Multi-dimension arrays will be converted to single-dimension arrays and the values will be sorted in ascending order before the operation.",examples:["setCartesian([1, 2], [3, 4])"],seealso:["setUnion","setIntersect","setDifference","setPowerset"]},TNe={name:"setDifference",category:"Set",syntax:["setDifference(set1, set2)"],description:"Create the difference of two (multi)sets: every element of set1, that is not the element of set2. Multi-dimension arrays will be converted to single-dimension arrays before the operation.",examples:["setDifference([1, 2, 3, 4], [3, 4, 5, 6])","setDifference([[1, 2], [3, 4]], [[3, 4], [5, 6]])"],seealso:["setUnion","setIntersect","setSymDifference"]},MNe={name:"setDistinct",category:"Set",syntax:["setDistinct(set)"],description:"Collect the distinct elements of a multiset. A multi-dimension array will be converted to a single-dimension array before the operation.",examples:["setDistinct([1, 1, 1, 2, 2, 3])"],seealso:["setMultiplicity"]},NNe={name:"setIntersect",category:"Set",syntax:["setIntersect(set1, set2)"],description:"Create the intersection of two (multi)sets. Multi-dimension arrays will be converted to single-dimension arrays before the operation.",examples:["setIntersect([1, 2, 3, 4], [3, 4, 5, 6])","setIntersect([[1, 2], [3, 4]], [[3, 4], [5, 6]])"],seealso:["setUnion","setDifference"]},PNe={name:"setIsSubset",category:"Set",syntax:["setIsSubset(set1, set2)"],description:"Check whether a (multi)set is a subset of another (multi)set: every element of set1 is the element of set2. Multi-dimension arrays will be converted to single-dimension arrays before the operation.",examples:["setIsSubset([1, 2], [3, 4, 5, 6])","setIsSubset([3, 4], [3, 4, 5, 6])"],seealso:["setUnion","setIntersect","setDifference"]},INe={name:"setMultiplicity",category:"Set",syntax:["setMultiplicity(element, set)"],description:"Count the multiplicity of an element in a multiset. A multi-dimension array will be converted to a single-dimension array before the operation.",examples:["setMultiplicity(1, [1, 2, 2, 4])","setMultiplicity(2, [1, 2, 2, 4])"],seealso:["setDistinct","setSize"]},_Ne={name:"setPowerset",category:"Set",syntax:["setPowerset(set)"],description:"Create the powerset of a (multi)set: the powerset contains very possible subsets of a (multi)set. A multi-dimension array will be converted to a single-dimension array before the operation.",examples:["setPowerset([1, 2, 3])"],seealso:["setCartesian"]},BNe={name:"setSize",category:"Set",syntax:["setSize(set)","setSize(set, unique)"],description:'Count the number of elements of a (multi)set. When the second parameter "unique" is true, count only the unique values. A multi-dimension array will be converted to a single-dimension array before the operation.',examples:["setSize([1, 2, 2, 4])","setSize([1, 2, 2, 4], true)"],seealso:["setUnion","setIntersect","setDifference"]},FNe={name:"setSymDifference",category:"Set",syntax:["setSymDifference(set1, set2)"],description:"Create the symmetric difference of two (multi)sets. Multi-dimension arrays will be converted to single-dimension arrays before the operation.",examples:["setSymDifference([1, 2, 3, 4], [3, 4, 5, 6])","setSymDifference([[1, 2], [3, 4]], [[3, 4], [5, 6]])"],seealso:["setUnion","setIntersect","setDifference"]},RNe={name:"setUnion",category:"Set",syntax:["setUnion(set1, set2)"],description:"Create the union of two (multi)sets. Multi-dimension arrays will be converted to single-dimension arrays before the operation.",examples:["setUnion([1, 2, 3, 4], [3, 4, 5, 6])","setUnion([[1, 2], [3, 4]], [[3, 4], [5, 6]])"],seealso:["setIntersect","setDifference"]},zNe={name:"erf",category:"Special",syntax:["erf(x)"],description:"Compute the erf function of a value using a rational Chebyshev approximations for different intervals of x",examples:["erf(0.2)","erf(-0.5)","erf(4)"],seealso:[]},LNe={name:"mad",category:"Statistics",syntax:["mad(a, b, c, ...)","mad(A)"],description:"Compute the median absolute deviation of a matrix or a list with values. The median absolute deviation is defined as the median of the absolute deviations from the median.",examples:["mad(10, 20, 30)","mad([1, 2, 3])"],seealso:["mean","median","std","abs"]},kNe={name:"max",category:"Statistics",syntax:["max(a, b, c, ...)","max(A)","max(A, dimension)"],description:"Compute the maximum value of a list of values.",examples:["max(2, 3, 4, 1)","max([2, 3, 4, 1])","max([2, 5; 4, 3])","max([2, 5; 4, 3], 1)","max([2, 5; 4, 3], 2)","max(2.7, 7.1, -4.5, 2.0, 4.1)","min(2.7, 7.1, -4.5, 2.0, 4.1)"],seealso:["mean","median","min","prod","std","sum","variance"]},HNe={name:"mean",category:"Statistics",syntax:["mean(a, b, c, ...)","mean(A)","mean(A, dimension)"],description:"Compute the arithmetic mean of a list of values.",examples:["mean(2, 3, 4, 1)","mean([2, 3, 4, 1])","mean([2, 5; 4, 3])","mean([2, 5; 4, 3], 1)","mean([2, 5; 4, 3], 2)","mean([1.0, 2.7, 3.2, 4.0])"],seealso:["max","median","min","prod","std","sum","variance"]},jNe={name:"median",category:"Statistics",syntax:["median(a, b, c, ...)","median(A)"],description:"Compute the median of all values. The values are sorted and the middle value is returned. In case of an even number of values, the average of the two middle values is returned.",examples:["median(5, 2, 7)","median([3, -1, 5, 7])"],seealso:["max","mean","min","prod","std","sum","variance","quantileSeq"]},VNe={name:"min",category:"Statistics",syntax:["min(a, b, c, ...)","min(A)","min(A, dimension)"],description:"Compute the minimum value of a list of values.",examples:["min(2, 3, 4, 1)","min([2, 3, 4, 1])","min([2, 5; 4, 3])","min([2, 5; 4, 3], 1)","min([2, 5; 4, 3], 2)","min(2.7, 7.1, -4.5, 2.0, 4.1)","max(2.7, 7.1, -4.5, 2.0, 4.1)"],seealso:["max","mean","median","prod","std","sum","variance"]},WNe={name:"mode",category:"Statistics",syntax:["mode(a, b, c, ...)","mode(A)","mode(A, a, b, B, c, ...)"],description:"Computes the mode of all values as an array. In case mode being more than one, multiple values are returned in an array.",examples:["mode(2, 1, 4, 3, 1)","mode([1, 2.7, 3.2, 4, 2.7])","mode(1, 4, 6, 1, 6)"],seealso:["max","mean","min","median","prod","std","sum","variance"]},UNe={name:"prod",category:"Statistics",syntax:["prod(a, b, c, ...)","prod(A)"],description:"Compute the product of all values.",examples:["prod(2, 3, 4)","prod([2, 3, 4])","prod([2, 5; 4, 3])"],seealso:["max","mean","min","median","min","std","sum","variance"]},KNe={name:"quantileSeq",category:"Statistics",syntax:["quantileSeq(A, prob[, sorted])","quantileSeq(A, [prob1, prob2, ...][, sorted])","quantileSeq(A, N[, sorted])"],description:`Compute the prob order quantile of a matrix or a list with values. The sequence is sorted and the middle value is returned. Supported types of sequence values are: Number, BigNumber, Unit Supported types of probablity are: Number, BigNumber.
- In case of a (multi dimensional) array or matrix, the prob order quantile of all elements will be calculated.`,examples:["quantileSeq([3, -1, 5, 7], 0.5)","quantileSeq([3, -1, 5, 7], [1/3, 2/3])","quantileSeq([3, -1, 5, 7], 2)","quantileSeq([-1, 3, 5, 7], 0.5, true)"],seealso:["mean","median","min","max","prod","std","sum","variance"]},qNe={name:"std",category:"Statistics",syntax:["std(a, b, c, ...)","std(A)","std(A, dimension)","std(A, normalization)","std(A, dimension, normalization)"],description:'Compute the standard deviation of all values, defined as std(A) = sqrt(variance(A)). Optional parameter normalization can be "unbiased" (default), "uncorrected", or "biased".',examples:["std(2, 4, 6)","std([2, 4, 6, 8])",'std([2, 4, 6, 8], "uncorrected")','std([2, 4, 6, 8], "biased")',"std([1, 2, 3; 4, 5, 6])"],seealso:["max","mean","min","median","prod","sum","variance"]},GNe={name:"cumsum",category:"Statistics",syntax:["cumsum(a, b, c, ...)","cumsum(A)"],description:"Compute the cumulative sum of all values.",examples:["cumsum(2, 3, 4, 1)","cumsum([2, 3, 4, 1])","cumsum([1, 2; 3, 4])","cumsum([1, 2; 3, 4], 1)","cumsum([1, 2; 3, 4], 2)"],seealso:["max","mean","median","min","prod","std","sum","variance"]},XNe={name:"sum",category:"Statistics",syntax:["sum(a, b, c, ...)","sum(A)","sum(A, dimension)"],description:"Compute the sum of all values.",examples:["sum(2, 3, 4, 1)","sum([2, 3, 4, 1])","sum([2, 5; 4, 3])"],seealso:["max","mean","median","min","prod","std","sum","variance"]},YNe={name:"variance",category:"Statistics",syntax:["variance(a, b, c, ...)","variance(A)","variance(A, dimension)","variance(A, normalization)","variance(A, dimension, normalization)"],description:'Compute the variance of all values. Optional parameter normalization can be "unbiased" (default), "uncorrected", or "biased".',examples:["variance(2, 4, 6)","variance([2, 4, 6, 8])",'variance([2, 4, 6, 8], "uncorrected")','variance([2, 4, 6, 8], "biased")',"variance([1, 2, 3; 4, 5, 6])"],seealso:["max","mean","min","median","min","prod","std","sum"]},ZNe={name:"acos",category:"Trigonometry",syntax:["acos(x)"],description:"Compute the inverse cosine of a value in radians.",examples:["acos(0.5)","acos(cos(2.3))"],seealso:["cos","atan","asin"]},JNe={name:"acosh",category:"Trigonometry",syntax:["acosh(x)"],description:"Calculate the hyperbolic arccos of a value, defined as `acosh(x) = ln(sqrt(x^2 - 1) + x)`.",examples:["acosh(1.5)"],seealso:["cosh","asinh","atanh"]},QNe={name:"acot",category:"Trigonometry",syntax:["acot(x)"],description:"Calculate the inverse cotangent of a value.",examples:["acot(0.5)","acot(cot(0.5))","acot(2)"],seealso:["cot","atan"]},ePe={name:"acoth",category:"Trigonometry",syntax:["acoth(x)"],description:"Calculate the hyperbolic arccotangent of a value, defined as `acoth(x) = (ln((x+1)/x) + ln(x/(x-1))) / 2`.",examples:["acoth(2)","acoth(0.5)"],seealso:["acsch","asech"]},tPe={name:"acsc",category:"Trigonometry",syntax:["acsc(x)"],description:"Calculate the inverse cotangent of a value.",examples:["acsc(2)","acsc(csc(0.5))","acsc(0.5)"],seealso:["csc","asin","asec"]},nPe={name:"acsch",category:"Trigonometry",syntax:["acsch(x)"],description:"Calculate the hyperbolic arccosecant of a value, defined as `acsch(x) = ln(1/x + sqrt(1/x^2 + 1))`.",examples:["acsch(0.5)"],seealso:["asech","acoth"]},rPe={name:"asec",category:"Trigonometry",syntax:["asec(x)"],description:"Calculate the inverse secant of a value.",examples:["asec(0.5)","asec(sec(0.5))","asec(2)"],seealso:["acos","acot","acsc"]},oPe={name:"asech",category:"Trigonometry",syntax:["asech(x)"],description:"Calculate the inverse secant of a value.",examples:["asech(0.5)"],seealso:["acsch","acoth"]},aPe={name:"asin",category:"Trigonometry",syntax:["asin(x)"],description:"Compute the inverse sine of a value in radians.",examples:["asin(0.5)","asin(sin(0.5))"],seealso:["sin","acos","atan"]},iPe={name:"asinh",category:"Trigonometry",syntax:["asinh(x)"],description:"Calculate the hyperbolic arcsine of a value, defined as `asinh(x) = ln(x + sqrt(x^2 + 1))`.",examples:["asinh(0.5)"],seealso:["acosh","atanh"]},lPe={name:"atan",category:"Trigonometry",syntax:["atan(x)"],description:"Compute the inverse tangent of a value in radians.",examples:["atan(0.5)","atan(tan(0.5))"],seealso:["tan","acos","asin"]},sPe={name:"atan2",category:"Trigonometry",syntax:["atan2(y, x)"],description:"Computes the principal value of the arc tangent of y/x in radians.",examples:["atan2(2, 2) / pi","angle = 60 deg in rad","x = cos(angle)","y = sin(angle)","atan2(y, x)"],seealso:["sin","cos","tan"]},uPe={name:"atanh",category:"Trigonometry",syntax:["atanh(x)"],description:"Calculate the hyperbolic arctangent of a value, defined as `atanh(x) = ln((1 + x)/(1 - x)) / 2`.",examples:["atanh(0.5)"],seealso:["acosh","asinh"]},cPe={name:"cos",category:"Trigonometry",syntax:["cos(x)"],description:"Compute the cosine of x in radians.",examples:["cos(2)","cos(pi / 4) ^ 2","cos(180 deg)","cos(60 deg)","sin(0.2)^2 + cos(0.2)^2"],seealso:["acos","sin","tan"]},dPe={name:"cosh",category:"Trigonometry",syntax:["cosh(x)"],description:"Compute the hyperbolic cosine of x in radians.",examples:["cosh(0.5)"],seealso:["sinh","tanh","coth"]},fPe={name:"cot",category:"Trigonometry",syntax:["cot(x)"],description:"Compute the cotangent of x in radians. Defined as 1/tan(x)",examples:["cot(2)","1 / tan(2)"],seealso:["sec","csc","tan"]},pPe={name:"coth",category:"Trigonometry",syntax:["coth(x)"],description:"Compute the hyperbolic cotangent of x in radians.",examples:["coth(2)","1 / tanh(2)"],seealso:["sech","csch","tanh"]},mPe={name:"csc",category:"Trigonometry",syntax:["csc(x)"],description:"Compute the cosecant of x in radians. Defined as 1/sin(x)",examples:["csc(2)","1 / sin(2)"],seealso:["sec","cot","sin"]},vPe={name:"csch",category:"Trigonometry",syntax:["csch(x)"],description:"Compute the hyperbolic cosecant of x in radians. Defined as 1/sinh(x)",examples:["csch(2)","1 / sinh(2)"],seealso:["sech","coth","sinh"]},hPe={name:"sec",category:"Trigonometry",syntax:["sec(x)"],description:"Compute the secant of x in radians. Defined as 1/cos(x)",examples:["sec(2)","1 / cos(2)"],seealso:["cot","csc","cos"]},gPe={name:"sech",category:"Trigonometry",syntax:["sech(x)"],description:"Compute the hyperbolic secant of x in radians. Defined as 1/cosh(x)",examples:["sech(2)","1 / cosh(2)"],seealso:["coth","csch","cosh"]},yPe={name:"sin",category:"Trigonometry",syntax:["sin(x)"],description:"Compute the sine of x in radians.",examples:["sin(2)","sin(pi / 4) ^ 2","sin(90 deg)","sin(30 deg)","sin(0.2)^2 + cos(0.2)^2"],seealso:["asin","cos","tan"]},bPe={name:"sinh",category:"Trigonometry",syntax:["sinh(x)"],description:"Compute the hyperbolic sine of x in radians.",examples:["sinh(0.5)"],seealso:["cosh","tanh"]},xPe={name:"tan",category:"Trigonometry",syntax:["tan(x)"],description:"Compute the tangent of x in radians.",examples:["tan(0.5)","sin(0.5) / cos(0.5)","tan(pi / 4)","tan(45 deg)"],seealso:["atan","sin","cos"]},wPe={name:"tanh",category:"Trigonometry",syntax:["tanh(x)"],description:"Compute the hyperbolic tangent of x in radians.",examples:["tanh(0.5)","sinh(0.5) / cosh(0.5)"],seealso:["sinh","cosh"]},SPe={name:"to",category:"Units",syntax:["x to unit","to(x, unit)"],description:"Change the unit of a value.",examples:["5 inch to cm","3.2kg to g","16 bytes in bits"],seealso:[]},CPe={name:"bin",category:"Utils",syntax:["bin(value)"],description:"Format a number as binary",examples:["bin(2)"],seealso:["oct","hex"]},$Pe={name:"clone",category:"Utils",syntax:["clone(x)"],description:"Clone a variable. Creates a copy of primitive variables,and a deep copy of matrices",examples:["clone(3.5)","clone(2 - 4i)","clone(45 deg)","clone([1, 2; 3, 4])",'clone("hello world")'],seealso:[]},EPe={name:"format",category:"Utils",syntax:["format(value)","format(value, precision)"],description:"Format a value of any type as string.",examples:["format(2.3)","format(3 - 4i)","format([])","format(pi, 3)"],seealso:["print"]},DPe={name:"hasNumericValue",category:"Utils",syntax:["hasNumericValue(x)"],description:"Test whether a value is an numeric value. In case of a string, true is returned if the string contains a numeric value.",examples:["hasNumericValue(2)",'hasNumericValue("2")','isNumeric("2")',"hasNumericValue(0)","hasNumericValue(bignumber(500))","hasNumericValue(fraction(0.125))","hasNumericValue(2 + 3i)",'hasNumericValue([2.3, "foo", false])'],seealso:["isInteger","isZero","isNegative","isPositive","isNaN","isNumeric"]},APe={name:"hex",category:"Utils",syntax:["hex(value)"],description:"Format a number as hexadecimal",examples:["hex(240)"],seealso:["bin","oct"]},OPe={name:"isInteger",category:"Utils",syntax:["isInteger(x)"],description:"Test whether a value is an integer number.",examples:["isInteger(2)","isInteger(3.5)","isInteger([3, 0.5, -2])"],seealso:["isNegative","isNumeric","isPositive","isZero"]},TPe={name:"isNaN",category:"Utils",syntax:["isNaN(x)"],description:"Test whether a value is NaN (not a number)",examples:["isNaN(2)","isNaN(0 / 0)","isNaN(NaN)","isNaN(Infinity)"],seealso:["isNegative","isNumeric","isPositive","isZero"]},MPe={name:"isNegative",category:"Utils",syntax:["isNegative(x)"],description:"Test whether a value is negative: smaller than zero.",examples:["isNegative(2)","isNegative(0)","isNegative(-4)","isNegative([3, 0.5, -2])"],seealso:["isInteger","isNumeric","isPositive","isZero"]},NPe={name:"isNumeric",category:"Utils",syntax:["isNumeric(x)"],description:"Test whether a value is a numeric value. Returns true when the input is a number, BigNumber, Fraction, or boolean.",examples:["isNumeric(2)",'isNumeric("2")','hasNumericValue("2")',"isNumeric(0)","isNumeric(bignumber(500))","isNumeric(fraction(0.125))","isNumeric(2 + 3i)",'isNumeric([2.3, "foo", false])'],seealso:["isInteger","isZero","isNegative","isPositive","isNaN","hasNumericValue"]},PPe={name:"isPositive",category:"Utils",syntax:["isPositive(x)"],description:"Test whether a value is positive: larger than zero.",examples:["isPositive(2)","isPositive(0)","isPositive(-4)","isPositive([3, 0.5, -2])"],seealso:["isInteger","isNumeric","isNegative","isZero"]},IPe={name:"isPrime",category:"Utils",syntax:["isPrime(x)"],description:"Test whether a value is prime: has no divisors other than itself and one.",examples:["isPrime(3)","isPrime(-2)","isPrime([2, 17, 100])"],seealso:["isInteger","isNumeric","isNegative","isZero"]},_Pe={name:"isZero",category:"Utils",syntax:["isZero(x)"],description:"Test whether a value is zero.",examples:["isZero(2)","isZero(0)","isZero(-4)","isZero([3, 0, -2, 0])"],seealso:["isInteger","isNumeric","isNegative","isPositive"]},BPe={name:"numeric",category:"Utils",syntax:["numeric(x)"],description:"Convert a numeric input to a specific numeric type: number, BigNumber, or Fraction.",examples:['numeric("4")','numeric("4", "number")','numeric("4", "BigNumber")','numeric("4", "Fraction)','numeric(4, "Fraction")','numeric(fraction(2, 5), "number)'],seealso:["number","fraction","bignumber","string","format"]},FPe={name:"oct",category:"Utils",syntax:["oct(value)"],description:"Format a number as octal",examples:["oct(56)"],seealso:["bin","hex"]},RPe={name:"print",category:"Utils",syntax:["print(template, values)","print(template, values, precision)"],description:"Interpolate values into a string template.",examples:['print("Lucy is $age years old", {age: 5})','print("The value of pi is $pi", {pi: pi}, 3)','print("Hello, $user.name!", {user: {name: "John"}})','print("Values: $0, $1, $2", [6, 9, 4])'],seealso:["format"]},zPe={name:"typeOf",category:"Utils",syntax:["typeOf(x)"],description:"Get the type of a variable.",examples:["typeOf(3.5)","typeOf(2 - 4i)","typeOf(45 deg)",'typeOf("hello world")'],seealso:["getMatrixDataType"]},LPe={bignumber:_Oe,boolean:BOe,complex:FOe,createUnit:ROe,fraction:zOe,index:LOe,matrix:kOe,number:HOe,sparse:jOe,splitUnit:VOe,string:WOe,unit:UOe,e:TO,E:TO,false:bOe,i:xOe,Infinity:wOe,LN2:COe,LN10:SOe,LOG2E:EOe,LOG10E:$Oe,NaN:DOe,null:AOe,pi:MO,PI:MO,phi:OOe,SQRT1_2:TOe,SQRT2:MOe,tau:NOe,true:POe,version:IOe,speedOfLight:{description:"Speed of light in vacuum",examples:["speedOfLight"]},gravitationConstant:{description:"Newtonian constant of gravitation",examples:["gravitationConstant"]},planckConstant:{description:"Planck constant",examples:["planckConstant"]},reducedPlanckConstant:{description:"Reduced Planck constant",examples:["reducedPlanckConstant"]},magneticConstant:{description:"Magnetic constant (vacuum permeability)",examples:["magneticConstant"]},electricConstant:{description:"Electric constant (vacuum permeability)",examples:["electricConstant"]},vacuumImpedance:{description:"Characteristic impedance of vacuum",examples:["vacuumImpedance"]},coulomb:{description:"Coulomb's constant",examples:["coulomb"]},elementaryCharge:{description:"Elementary charge",examples:["elementaryCharge"]},bohrMagneton:{description:"Borh magneton",examples:["bohrMagneton"]},conductanceQuantum:{description:"Conductance quantum",examples:["conductanceQuantum"]},inverseConductanceQuantum:{description:"Inverse conductance quantum",examples:["inverseConductanceQuantum"]},magneticFluxQuantum:{description:"Magnetic flux quantum",examples:["magneticFluxQuantum"]},nuclearMagneton:{description:"Nuclear magneton",examples:["nuclearMagneton"]},klitzing:{description:"Von Klitzing constant",examples:["klitzing"]},bohrRadius:{description:"Borh radius",examples:["bohrRadius"]},classicalElectronRadius:{description:"Classical electron radius",examples:["classicalElectronRadius"]},electronMass:{description:"Electron mass",examples:["electronMass"]},fermiCoupling:{description:"Fermi coupling constant",examples:["fermiCoupling"]},fineStructure:{description:"Fine-structure constant",examples:["fineStructure"]},hartreeEnergy:{description:"Hartree energy",examples:["hartreeEnergy"]},protonMass:{description:"Proton mass",examples:["protonMass"]},deuteronMass:{description:"Deuteron Mass",examples:["deuteronMass"]},neutronMass:{description:"Neutron mass",examples:["neutronMass"]},quantumOfCirculation:{description:"Quantum of circulation",examples:["quantumOfCirculation"]},rydberg:{description:"Rydberg constant",examples:["rydberg"]},thomsonCrossSection:{description:"Thomson cross section",examples:["thomsonCrossSection"]},weakMixingAngle:{description:"Weak mixing angle",examples:["weakMixingAngle"]},efimovFactor:{description:"Efimov factor",examples:["efimovFactor"]},atomicMass:{description:"Atomic mass constant",examples:["atomicMass"]},avogadro:{description:"Avogadro's number",examples:["avogadro"]},boltzmann:{description:"Boltzmann constant",examples:["boltzmann"]},faraday:{description:"Faraday constant",examples:["faraday"]},firstRadiation:{description:"First radiation constant",examples:["firstRadiation"]},loschmidt:{description:"Loschmidt constant at T=273.15 K and p=101.325 kPa",examples:["loschmidt"]},gasConstant:{description:"Gas constant",examples:["gasConstant"]},molarPlanckConstant:{description:"Molar Planck constant",examples:["molarPlanckConstant"]},molarVolume:{description:"Molar volume of an ideal gas at T=273.15 K and p=101.325 kPa",examples:["molarVolume"]},sackurTetrode:{description:"Sackur-Tetrode constant at T=1 K and p=101.325 kPa",examples:["sackurTetrode"]},secondRadiation:{description:"Second radiation constant",examples:["secondRadiation"]},stefanBoltzmann:{description:"Stefan-Boltzmann constant",examples:["stefanBoltzmann"]},wienDisplacement:{description:"Wien displacement law constant",examples:["wienDisplacement"]},molarMass:{description:"Molar mass constant",examples:["molarMass"]},molarMassC12:{description:"Molar mass constant of carbon-12",examples:["molarMassC12"]},gravity:{description:"Standard acceleration of gravity (standard acceleration of free-fall on Earth)",examples:["gravity"]},planckLength:{description:"Planck length",examples:["planckLength"]},planckMass:{description:"Planck mass",examples:["planckMass"]},planckTime:{description:"Planck time",examples:["planckTime"]},planckCharge:{description:"Planck charge",examples:["planckCharge"]},planckTemperature:{description:"Planck temperature",examples:["planckTemperature"]},derivative:XOe,lsolve:ZOe,lsolveAll:JOe,lup:QOe,lusolve:eTe,leafCount:YOe,polynomialRoot:tTe,resolve:oTe,simplify:aTe,simplifyConstant:iTe,simplifyCore:lTe,symbolicEqual:uTe,rationalize:rTe,slu:sTe,usolve:cTe,usolveAll:dTe,qr:nTe,abs:fTe,add:pTe,cbrt:mTe,ceil:vTe,cube:hTe,divide:gTe,dotDivide:yTe,dotMultiply:bTe,dotPow:xTe,exp:wTe,expm:STe,expm1:CTe,fix:$Te,floor:ETe,gcd:DTe,hypot:ATe,lcm:TTe,log:MTe,log2:ITe,log1p:PTe,log10:NTe,mod:_Te,multiply:BTe,norm:FTe,nthRoot:RTe,nthRoots:zTe,pow:LTe,round:kTe,sign:HTe,sqrt:jTe,sqrtm:VTe,square:qTe,subtract:GTe,unaryMinus:XTe,unaryPlus:YTe,xgcd:ZTe,invmod:OTe,bitAnd:JTe,bitNot:QTe,bitOr:eMe,bitXor:tMe,leftShift:nMe,rightArithShift:rMe,rightLogShift:oMe,bellNumbers:aMe,catalan:iMe,composition:lMe,stirlingS2:sMe,config:KOe,import:qOe,typed:GOe,arg:uMe,conj:cMe,re:fMe,im:dMe,evaluate:pMe,help:mMe,distance:vMe,intersect:hMe,and:gMe,not:yMe,or:bMe,xor:xMe,concat:SMe,count:CMe,cross:$Me,column:wMe,ctranspose:EMe,det:DMe,diag:AMe,diff:OMe,dot:TMe,getMatrixDataType:_Me,identity:BMe,filter:NMe,flatten:PMe,forEach:IMe,inv:FMe,pinv:RMe,eigs:MMe,kron:zMe,matrixFromFunction:HMe,matrixFromRows:jMe,matrixFromColumns:kMe,map:LMe,ones:VMe,partitionSelect:WMe,range:UMe,resize:qMe,reshape:KMe,rotate:GMe,rotationMatrix:XMe,row:YMe,size:ZMe,sort:JMe,squeeze:QMe,subset:eNe,trace:tNe,transpose:nNe,zeros:rNe,fft:oNe,ifft:aNe,sylvester:WTe,schur:UTe,lyap:KTe,combinations:iNe,combinationsWithRep:lNe,factorial:sNe,gamma:uNe,kldivergence:dNe,lgamma:cNe,multinomial:fNe,permutations:pNe,pickRandom:mNe,random:vNe,randomInt:hNe,compare:gNe,compareNatural:yNe,compareText:bNe,deepEqual:xNe,equal:wNe,equalText:SNe,larger:CNe,largerEq:$Ne,smaller:ENe,smallerEq:DNe,unequal:ANe,setCartesian:ONe,setDifference:TNe,setDistinct:MNe,setIntersect:NNe,setIsSubset:PNe,setMultiplicity:INe,setPowerset:_Ne,setSize:BNe,setSymDifference:FNe,setUnion:RNe,erf:zNe,cumsum:GNe,mad:LNe,max:kNe,mean:HNe,median:jNe,min:VNe,mode:WNe,prod:UNe,quantileSeq:KNe,std:qNe,sum:XNe,variance:YNe,acos:ZNe,acosh:JNe,acot:QNe,acoth:ePe,acsc:tPe,acsch:nPe,asec:rPe,asech:oPe,asin:aPe,asinh:iPe,atan:lPe,atanh:uPe,atan2:sPe,cos:cPe,cosh:dPe,cot:fPe,coth:pPe,csc:mPe,csch:vPe,sec:hPe,sech:gPe,sin:yPe,sinh:bPe,tan:xPe,tanh:wPe,to:SPe,clone:$Pe,format:EPe,bin:CPe,oct:FPe,hex:APe,isNaN:TPe,isInteger:OPe,isNegative:MPe,isNumeric:NPe,hasNumericValue:DPe,isPositive:PPe,isPrime:IPe,isZero:_Pe,print:RPe,typeOf:zPe,numeric:BPe},NO="help",kPe=["typed","mathWithTransform","Help"],HPe=se(NO,kPe,e=>{var{typed:t,mathWithTransform:n,Help:r}=e;return t(NO,{any:function(a){var i,l=a;if(typeof a!="string"){for(i in n)if(Ke(n,i)&&a===n[i]){l=i;break}}var s=no(LPe,l);if(!s){var u=typeof l=="function"?l.name:l;throw new Error('No documentation found on "'+u+'"')}return new r(s)}})}),PO="chain",jPe=["typed","Chain"],VPe=se(PO,jPe,e=>{var{typed:t,Chain:n}=e;return t(PO,{"":function(){return new n},any:function(o){return new n(o)}})}),IO="det",WPe=["typed","matrix","subtract","multiply","divideScalar","isZero","unaryMinus"],UPe=se(IO,WPe,e=>{var{typed:t,matrix:n,subtract:r,multiply:o,divideScalar:a,isZero:i,unaryMinus:l}=e;return t(IO,{any:function(c){return ct(c)},"Array | Matrix":function(c){var d;switch(mt(c)?d=c.size():Array.isArray(c)?(c=n(c),d=c.size()):d=[],d.length){case 0:return ct(c);case 1:if(d[0]===1)return ct(c.valueOf()[0]);if(d[0]===0)return 1;throw new RangeError("Matrix must be square (size: "+Et(d)+")");case 2:{var f=d[0],p=d[1];if(f===p)return s(c.clone().valueOf(),f);if(p===0)return 1;throw new RangeError("Matrix must be square (size: "+Et(d)+")")}default:throw new RangeError("Matrix must be two dimensional (size: "+Et(d)+")")}}});function s(u,c,d){if(c===1)return ct(u[0][0]);if(c===2)return r(o(u[0][0],u[1][1]),o(u[1][0],u[0][1]));for(var f=!1,p=new Array(c).fill(0).map(($,D)=>D),v=0;v<c;v++){var m=p[v];if(i(u[m][v])){var h=void 0;for(h=v+1;h<c;h++)if(!i(u[p[h]][v])){m=p[h],p[h]=p[v],p[v]=m,f=!f;break}if(h===c)return u[m][v]}for(var g=u[m][v],x=v===0?1:u[p[v-1]][v-1],y=v+1;y<c;y++)for(var w=p[y],b=v+1;b<c;b++)u[w][b]=a(r(o(u[w][b],g),o(u[w][v],u[m][b])),x)}var S=u[p[c-1]][c-1];return f?l(S):S}}),_O="inv",KPe=["typed","matrix","divideScalar","addScalar","multiply","unaryMinus","det","identity","abs"],qPe=se(_O,KPe,e=>{var{typed:t,matrix:n,divideScalar:r,addScalar:o,multiply:a,unaryMinus:i,det:l,identity:s,abs:u}=e;return t(_O,{"Array | Matrix":function(f){var p=mt(f)?f.size():Mt(f);switch(p.length){case 1:if(p[0]===1)return mt(f)?n([r(1,f.valueOf()[0])]):[r(1,f[0])];throw new RangeError("Matrix must be square (size: "+Et(p)+")");case 2:{var v=p[0],m=p[1];if(v===m)return mt(f)?n(c(f.valueOf(),v,m),f.storage()):c(f,v,m);throw new RangeError("Matrix must be square (size: "+Et(p)+")")}default:throw new RangeError("Matrix must be two dimensional (size: "+Et(p)+")")}},any:function(f){return r(1,f)}});function c(d,f,p){var v,m,h,g,x;if(f===1){if(g=d[0][0],g===0)throw Error("Cannot calculate inverse, determinant is zero");return[[r(1,g)]]}else if(f===2){var y=l(d);if(y===0)throw Error("Cannot calculate inverse, determinant is zero");return[[r(d[1][1],y),r(i(d[0][1]),y)],[r(i(d[1][0]),y),r(d[0][0],y)]]}else{var w=d.concat();for(v=0;v<f;v++)w[v]=w[v].concat();for(var b=s(f).valueOf(),S=0;S<p;S++){var $=u(w[S][S]),D=S;for(v=S+1;v<f;)u(w[v][S])>$&&($=u(w[v][S]),D=v),v++;if($===0)throw Error("Cannot calculate inverse, determinant is zero");v=D,v!==S&&(x=w[S],w[S]=w[v],w[v]=x,x=b[S],b[S]=b[v],b[v]=x);var O=w[S],A=b[S];for(v=0;v<f;v++){var T=w[v],M=b[v];if(v!==S){if(T[S]!==0){for(h=r(i(T[S]),O[S]),m=S;m<p;m++)T[m]=o(T[m],a(h,O[m]));for(m=0;m<p;m++)M[m]=o(M[m],a(h,A[m]))}}else{for(h=O[S],m=S;m<p;m++)T[m]=r(T[m],h);for(m=0;m<p;m++)M[m]=r(M[m],h)}}}return b}}}),BO="pinv",GPe=["typed","matrix","inv","deepEqual","equal","dotDivide","dot","ctranspose","divideScalar","multiply","add","Complex"],XPe=se(BO,GPe,e=>{var{typed:t,matrix:n,inv:r,deepEqual:o,equal:a,dotDivide:i,dot:l,ctranspose:s,divideScalar:u,multiply:c,add:d,Complex:f}=e;return t(BO,{"Array | Matrix":function(y){var w=mt(y)?y.size():Mt(y);switch(w.length){case 1:return g(y)?s(y):w[0]===1?r(y):i(s(y),l(y,y));case 2:{if(g(y))return s(y);var b=w[0],S=w[1];if(b===S)try{return r(y)}catch($){if(!($ instanceof Error&&$.message.match(/Cannot calculate inverse, determinant is zero/)))throw $}return mt(y)?n(p(y.valueOf(),b,S),y.storage()):p(y,b,S)}default:throw new RangeError("Matrix must be two dimensional (size: "+Et(w)+")")}},any:function(y){return a(y,0)?ct(y):u(1,y)}});function p(x,y,w){var{C:b,F:S}=m(x,y,w),$=c(r(c(s(b),b)),s(b)),D=c(s(S),r(c(S,s(S))));return c(D,$)}function v(x,y,w){for(var b=ct(x),S=0,$=0;$<y;$++){if(w<=S)return b;for(var D=$;h(b[D][S]);)if(D++,y===D&&(D=$,S++,w===S))return b;[b[D],b[$]]=[b[$],b[D]];for(var O=b[$][S],A=0;A<w;A++)b[$][A]=i(b[$][A],O);for(var T=0;T<y;T++)if(T!==$){O=b[T][S];for(var M=0;M<w;M++)b[T][M]=d(b[T][M],c(-1,c(O,b[$][M])))}S++}return b}function m(x,y,w){var b=v(x,y,w),S=x.map((D,O)=>D.filter((A,T)=>T<y&&!h(l(b[T],b[T])))),$=b.filter((D,O)=>!h(l(b[O],b[O])));return{C:S,F:$}}function h(x){return a(d(x,f(1,1)),d(0,f(1,1)))}function g(x){return o(d(x,f(1,1)),d(c(x,0),f(1,1)))}});function YPe(e){var{addScalar:t,subtract:n,flatten:r,multiply:o,multiplyScalar:a,divideScalar:i,sqrt:l,abs:s,bignumber:u,diag:c,inv:d,qr:f,usolve:p,usolveAll:v,equal:m,complex:h,larger:g,smaller:x,matrixFromColumns:y,dot:w}=e;function b(L,k,H,V,U){U===void 0&&(U=!0);var q=S(L,k,H,V,U);$(L,k,H,V,U,q);var{values:K,C:X}=D(L,k,H,V,U),re;return U&&(re=O(L,k,X,q,K,H,V),re=y(...re)),{values:K,vectors:re}}function S(L,k,H,V,U){var q=V==="BigNumber",K=V==="Complex",X=q?u(0):0,re=q?u(1):K?h(1):1,ee=q?u(1):1,G=q?u(10):2,le=a(G,G),ue;U&&(ue=Array(k).fill(re));for(var me=!1;!me;){me=!0;for(var Se=0;Se<k;Se++){for(var Q=X,te=X,de=0;de<k;de++)if(Se!==de){var Y=s(L[Se][de]);Q=t(Q,Y),te=t(te,Y)}if(!m(Q,0)&&!m(te,0)){for(var ae=ee,ce=Q,Ce=i(te,G),ye=a(te,G);x(ce,Ce);)ce=a(ce,le),ae=a(ae,G);for(;g(ce,ye);)ce=i(ce,le),ae=i(ae,G);var J=x(i(t(ce,te),ae),a(t(Q,te),.95));if(J){me=!1;for(var ne=i(1,ae),oe=0;oe<k;oe++)Se!==oe&&(L[Se][oe]=a(L[Se][oe],ae),L[oe][Se]=a(L[oe][Se],ne));U&&(ue[Se]=a(ue[Se],ae))}}}}return c(ue)}function $(L,k,H,V,U,q){var K=V==="BigNumber",X=V==="Complex",re=K?u(0):X?h(0):0;K&&(H=u(H));for(var ee=0;ee<k-2;ee++){for(var G=0,le=re,ue=ee+1;ue<k;ue++){var me=L[ue][ee];x(s(le),s(me))&&(le=me,G=ue)}if(!x(s(le),H)){if(G!==ee+1){var Se=L[G];L[G]=L[ee+1],L[ee+1]=Se;for(var Q=0;Q<k;Q++){var te=L[Q][G];L[Q][G]=L[Q][ee+1],L[Q][ee+1]=te}if(U){var de=q[G];q[G]=q[ee+1],q[ee+1]=de}}for(var Y=ee+2;Y<k;Y++){var ae=i(L[Y][ee],le);if(ae!==0){for(var ce=0;ce<k;ce++)L[Y][ce]=n(L[Y][ce],a(ae,L[ee+1][ce]));for(var Ce=0;Ce<k;Ce++)L[Ce][ee+1]=t(L[Ce][ee+1],a(ae,L[Ce][Y]));if(U)for(var ye=0;ye<k;ye++)q[Y][ye]=n(q[Y][ye],a(ae,q[ee+1][ye]))}}}}return q}function D(L,k,H,V,U){var q=V==="BigNumber",K=V==="Complex",X=q?u(1):K?h(1):1;q&&(H=u(H));for(var re=ct(L),ee=[],G=k,le=[],ue=U?c(Array(k).fill(X)):void 0,me=U?c(Array(G).fill(X)):void 0,Se=0;Se<=100;){Se+=1;for(var Q=0,te=0;te<G;te++)re[te][te]=n(re[te][te],Q);var{Q:de,R:Y}=f(re);re=o(Y,de);for(var ae=0;ae<G;ae++)re[ae][ae]=t(re[ae][ae],Q);if(U&&(me=o(me,de)),G===1||x(s(re[G-1][G-2]),H)){Se=0,ee.push(re[G-1][G-1]),U&&(le.unshift([[1]]),M(me,k),ue=o(ue,me),G>1&&(me=c(Array(G-1).fill(X)))),G-=1,re.pop();for(var ce=0;ce<G;ce++)re[ce].pop()}else if(G===2||x(s(re[G-2][G-3]),H)){Se=0;var Ce=A(re[G-2][G-2],re[G-2][G-1],re[G-1][G-2],re[G-1][G-1]);ee.push(...Ce),U&&(le.unshift(T(re[G-2][G-2],re[G-2][G-1],re[G-1][G-2],re[G-1][G-1],Ce[0],Ce[1],H,V)),M(me,k),ue=o(ue,me),G>2&&(me=c(Array(G-2).fill(X)))),G-=2,re.pop(),re.pop();for(var ye=0;ye<G;ye++)re[ye].pop(),re[ye].pop()}if(G===0)break}if(ee.sort((oe,ie)=>+n(s(oe),s(ie))),Se>100){var J=Error("The eigenvalues failed to converge. Only found these eigenvalues: "+ee.join(", "));throw J.values=ee,J.vectors=[],J}var ne=U?o(ue,B(le,k)):void 0;return{values:ee,C:ne}}function O(L,k,H,V,U,q,K){var X=d(H),re=o(X,L,H),ee=K==="BigNumber",G=K==="Complex",le=ee?u(0):G?h(0):0,ue=ee?u(1):G?h(1):1,me=[],Se=[];for(var Q of U){var te=F(me,Q,m);te===-1?(me.push(Q),Se.push(1)):Se[te]+=1}for(var de=[],Y=me.length,ae=Array(k).fill(le),ce=c(Array(k).fill(ue)),Ce=[],ye=function(){var ie=me[J],ve=n(re,o(ie,ce)),we=v(ve,ae);for(we.shift();we.length<Se[J];){var $e=P(ve,k,we,q,K);if($e==null){Ce.push(ie);break}we.push($e)}var Ae=o(d(V),H);we=we.map(xe=>o(Ae,xe)),de.push(...we.map(xe=>r(xe)))},J=0;J<Y;J++)ye();if(Ce.length!==0){var ne=new Error("Failed to find eigenvectors for the following eigenvalues: "+Ce.join(", "));throw ne.values=U,ne.vectors=de,ne}return de}function A(L,k,H,V){var U=t(L,V),q=n(a(L,V),a(k,H)),K=a(U,.5),X=a(l(n(a(U,U),a(4,q))),.5);return[t(K,X),n(K,X)]}function T(L,k,H,V,U,q,K,X){var re=X==="BigNumber",ee=X==="Complex",G=re?u(0):ee?h(0):0,le=re?u(1):ee?h(1):1;if(x(s(H),K))return[[le,G],[G,le]];if(g(s(n(U,q)),K))return[[n(U,V),n(q,V)],[H,H]];var ue=n(L,U),me=n(k,U),Se=n(H,U),Q=n(V,U);return x(s(me),K)?[[ue,le],[Se,G]]:[[me,G],[Q,le]]}function M(L,k){for(var H=0;H<L.length;H++)L[H].push(...Array(k-L[H].length).fill(0));for(var V=L.length;V<k;V++)L.push(Array(k).fill(0)),L[V][V]=1;return L}function B(L,k){for(var H=[],V=0;V<k;V++)H[V]=Array(k).fill(0);var U=0;for(var q of L){for(var K=q.length,X=0;X<K;X++)for(var re=0;re<K;re++)H[U+X][U+re]=q[X][re];U+=K}return H}function F(L,k,H){for(var V=0;V<L.length;V++)if(H(L[V],k))return V;return-1}function P(L,k,H,V,U){for(var q=U==="BigNumber"?u(1e3):1e3,K,X=0;K=I(k,H,U),K=p(L,K),!g(R(K),q);)if(++X>=5)return null;for(X=0;;){var re=p(L,K);if(x(R(N(K,[re])),V))break;if(++X>=10)return null;K=_(re)}return K}function I(L,k,H){var V=H==="BigNumber",U=H==="Complex",q=Array(L).fill(0).map(K=>2*Math.random()-1);return V&&(q=q.map(K=>u(K))),U&&(q=q.map(K=>h(K))),q=N(q,k),_(q,H)}function N(L,k){for(var H of k)L=n(L,o(i(w(H,L),w(H,H)),H));return L}function R(L){return s(l(w(L,L)))}function _(L,k){var H=k==="BigNumber",V=k==="Complex",U=H?u(1):V?h(1):1;return o(i(U,R(L)),L)}return b}function ZPe(e){var{config:t,addScalar:n,subtract:r,abs:o,atan:a,cos:i,sin:l,multiplyScalar:s,inv:u,bignumber:c,multiply:d,add:f}=e;function p(A,T){var M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:t.epsilon,B=arguments.length>3?arguments[3]:void 0;if(B==="number")return v(A,M);if(B==="BigNumber")return m(A,M);throw TypeError("Unsupported data type: "+B)}function v(A,T){for(var M=A.length,B=Math.abs(T/M),F,P=new Array(M),I=0;I<M;I++)P[I]=O(M,0),P[I][I]=1;for(var N=S(A);Math.abs(N[1])>=Math.abs(B);){var R=N[0][0],_=N[0][1];F=h(A[R][R],A[_][_],A[R][_]),A=b(A,F,R,_),P=x(P,F,R,_),N=S(A)}for(var L=O(M,0),k=0;k<M;k++)L[k]=A[k][k];return D(ct(L),ct(P))}function m(A,T){for(var M=A.length,B=o(T/M),F,P=new Array(M),I=0;I<M;I++)P[I]=O(M,0),P[I][I]=1;for(var N=$(A);o(N[1])>=o(B);){var R=N[0][0],_=N[0][1];F=g(A[R][R],A[_][_],A[R][_]),A=w(A,F,R,_),P=y(P,F,R,_),N=$(A)}for(var L=O(M,0),k=0;k<M;k++)L[k]=A[k][k];return D(ct(L),ct(P))}function h(A,T,M){var B=T-A;return Math.abs(B)<=t.epsilon?Math.PI/4:.5*Math.atan(2*M/(T-A))}function g(A,T,M){var B=r(T,A);return o(B)<=t.epsilon?c(-1).acos().div(4):s(.5,a(d(2,M,u(B))))}function x(A,T,M,B){for(var F=A.length,P=Math.cos(T),I=Math.sin(T),N=O(F,0),R=O(F,0),_=0;_<F;_++)N[_]=P*A[_][M]-I*A[_][B],R[_]=I*A[_][M]+P*A[_][B];for(var L=0;L<F;L++)A[L][M]=N[L],A[L][B]=R[L];return A}function y(A,T,M,B){for(var F=A.length,P=i(T),I=l(T),N=O(F,c(0)),R=O(F,c(0)),_=0;_<F;_++)N[_]=r(s(P,A[_][M]),s(I,A[_][B])),R[_]=n(s(I,A[_][M]),s(P,A[_][B]));for(var L=0;L<F;L++)A[L][M]=N[L],A[L][B]=R[L];return A}function w(A,T,M,B){for(var F=A.length,P=c(i(T)),I=c(l(T)),N=s(P,P),R=s(I,I),_=O(F,c(0)),L=O(F,c(0)),k=d(c(2),P,I,A[M][B]),H=n(r(s(N,A[M][M]),k),s(R,A[B][B])),V=f(s(R,A[M][M]),k,s(N,A[B][B])),U=0;U<F;U++)_[U]=r(s(P,A[M][U]),s(I,A[B][U])),L[U]=n(s(I,A[M][U]),s(P,A[B][U]));A[M][M]=H,A[B][B]=V,A[M][B]=c(0),A[B][M]=c(0);for(var q=0;q<F;q++)q!==M&&q!==B&&(A[M][q]=_[q],A[q][M]=_[q],A[B][q]=L[q],A[q][B]=L[q]);return A}function b(A,T,M,B){for(var F=A.length,P=Math.cos(T),I=Math.sin(T),N=P*P,R=I*I,_=O(F,0),L=O(F,0),k=N*A[M][M]-2*P*I*A[M][B]+R*A[B][B],H=R*A[M][M]+2*P*I*A[M][B]+N*A[B][B],V=0;V<F;V++)_[V]=P*A[M][V]-I*A[B][V],L[V]=I*A[M][V]+P*A[B][V];A[M][M]=k,A[B][B]=H,A[M][B]=0,A[B][M]=0;for(var U=0;U<F;U++)U!==M&&U!==B&&(A[M][U]=_[U],A[U][M]=_[U],A[B][U]=L[U],A[U][B]=L[U]);return A}function S(A){for(var T=A.length,M=0,B=[0,1],F=0;F<T;F++)for(var P=F+1;P<T;P++)Math.abs(M)<Math.abs(A[F][P])&&(M=Math.abs(A[F][P]),B=[F,P]);return[B,M]}function $(A){for(var T=A.length,M=0,B=[0,1],F=0;F<T;F++)for(var P=F+1;P<T;P++)o(M)<o(A[F][P])&&(M=o(A[F][P]),B=[F,P]);return[B,M]}function D(A,T){for(var M=A.length,B=Array(M),F=Array(M),P=0;P<M;P++)F[P]=Array(M);for(var I=0;I<M;I++){for(var N=0,R=A[0],_=0;_<A.length;_++)o(A[_])<o(R)&&(N=_,R=A[N]);B[I]=A.splice(N,1)[0];for(var L=0;L<M;L++)F[L][I]=T[L][N],T[L].splice(N,1)}return{values:B,vectors:F}}function O(A,T){for(var M=new Array(A),B=0;B<A;B++)M[B]=T;return M}return p}var JPe="eigs",QPe=["config","typed","matrix","addScalar","equal","subtract","abs","atan","cos","sin","multiplyScalar","divideScalar","inv","bignumber","multiply","add","larger","column","flatten","number","complex","sqrt","diag","qr","usolve","usolveAll","im","re","smaller","matrixFromColumns","dot"],eIe=se(JPe,QPe,e=>{var{config:t,typed:n,matrix:r,addScalar:o,subtract:a,equal:i,abs:l,atan:s,cos:u,sin:c,multiplyScalar:d,divideScalar:f,inv:p,bignumber:v,multiply:m,add:h,larger:g,column:x,flatten:y,number:w,complex:b,sqrt:S,diag:$,qr:D,usolve:O,usolveAll:A,im:T,re:M,smaller:B,matrixFromColumns:F,dot:P}=e,I=ZPe({config:t,addScalar:o,subtract:a,column:x,flatten:y,equal:i,abs:l,atan:s,cos:u,sin:c,multiplyScalar:d,inv:p,bignumber:v,complex:b,multiply:m,add:h}),N=YPe({config:t,addScalar:o,subtract:a,multiply:m,multiplyScalar:d,flatten:y,divideScalar:f,sqrt:S,abs:l,bignumber:v,diag:$,qr:D,inv:p,usolve:O,usolveAll:A,equal:i,complex:b,larger:g,smaller:B,matrixFromColumns:F,dot:P});return n("eigs",{Array:function(U){var q=r(U);return R(q)},"Array, number|BigNumber":function(U,q){var K=r(U);return R(K,q)},Matrix:function(U){var{values:q,vectors:K}=R(U);return{values:r(q),vectors:r(K)}},"Matrix, number|BigNumber":function(U,q){var{values:K,vectors:X}=R(U,q);return{values:r(K),vectors:r(X)}}});function R(V,U){U===void 0&&(U=t.epsilon);var q=V.size();if(q.length!==2||q[0]!==q[1])throw new RangeError("Matrix must be square (size: "+Et(q)+")");var K=V.toArray(),X=q[0];if(L(K,X,U)&&(k(K,X),_(K,X,U))){var re=H(V,K,X);return I(K,X,U,re)}var ee=H(V,K,X);return N(K,X,U,ee)}function _(V,U,q){for(var K=0;K<U;K++)for(var X=K;X<U;X++)if(g(v(l(a(V[K][X],V[X][K]))),q))return!1;return!0}function L(V,U,q){for(var K=0;K<U;K++)for(var X=0;X<U;X++)if(g(v(l(T(V[K][X]))),q))return!1;return!0}function k(V,U){for(var q=0;q<U;q++)for(var K=0;K<U;K++)V[q][K]=M(V[q][K])}function H(V,U,q){var K=V.datatype();if(K==="number"||K==="BigNumber"||K==="Complex")return K;for(var X=!1,re=!1,ee=!1,G=0;G<q;G++)for(var le=0;le<q;le++){var ue=U[G][le];if(Pt(ue)||ul(ue))X=!0;else if(Ot(ue))re=!0;else if(vo(ue))ee=!0;else throw TypeError("Unsupported type in Matrix: "+an(ue))}if(re&&ee&&console.warn("Complex BigNumbers not supported, this operation will lose precission."),ee){for(var me=0;me<q;me++)for(var Se=0;Se<q;Se++)U[me][Se]=b(U[me][Se]);return"Complex"}if(re){for(var Q=0;Q<q;Q++)for(var te=0;te<q;te++)U[Q][te]=v(U[Q][te]);return"BigNumber"}if(X){for(var de=0;de<q;de++)for(var Y=0;Y<q;Y++)U[de][Y]=w(U[de][Y]);return"number"}else throw TypeError("Matrix contains unsupported types only.")}}),FO="expm",tIe=["typed","abs","add","identity","inv","multiply"],nIe=se(FO,tIe,e=>{var{typed:t,abs:n,add:r,identity:o,inv:a,multiply:i}=e;return t(FO,{Matrix:function(d){var f=d.size();if(f.length!==2||f[0]!==f[1])throw new RangeError("Matrix must be square (size: "+Et(f)+")");for(var p=f[0],v=1e-15,m=l(d),h=s(m,v),g=h.q,x=h.j,y=i(d,Math.pow(2,-x)),w=o(p),b=o(p),S=1,$=y,D=-1,O=1;O<=g;O++)O>1&&($=i($,y),D=-D),S=S*(g-O+1)/((2*g-O+1)*O),w=r(w,i(S,$)),b=r(b,i(S*D,$));for(var A=i(a(b),w),T=0;T<x;T++)A=i(A,A);return Za(d)?d.createSparseMatrix(A):A}});function l(c){for(var d=c.size()[0],f=0,p=0;p<d;p++){for(var v=0,m=0;m<d;m++)v+=n(c.get([p,m]));f=Math.max(v,f)}return f}function s(c,d){for(var f=30,p=0;p<f;p++)for(var v=0;v<=p;v++){var m=p-v;if(u(c,v,m)<d)return{q:v,j:m}}throw new Error("Could not find acceptable parameters to compute the matrix exponential (try increasing maxSearchSize in expm.js)")}function u(c,d,f){for(var p=1,v=2;v<=d;v++)p*=v;for(var m=p,h=d+1;h<=2*d;h++)m*=h;var g=m*(2*d+1);return 8*Math.pow(c/Math.pow(2,f),2*d)*p*p/(m*g)}}),RO="sqrtm",rIe=["typed","abs","add","multiply","map","sqrt","subtract","inv","size","max","identity"],oIe=se(RO,rIe,e=>{var{typed:t,abs:n,add:r,multiply:o,map:a,sqrt:i,subtract:l,inv:s,size:u,max:c,identity:d}=e,f=1e3,p=1e-6;function v(m){var h,g=0,x=m,y=d(u(m));do{var w=x;if(x=o(.5,r(w,s(y))),y=o(.5,r(y,s(w))),h=c(n(l(x,w))),h>p&&++g>f)throw new Error("computing square root of matrix: iterative method could not converge")}while(h>p);return x}return t(RO,{"Array | Matrix":function(h){var g=mt(h)?h.size():Mt(h);switch(g.length){case 1:if(g[0]===1)return a(h,i);throw new RangeError("Matrix must be square (size: "+Et(g)+")");case 2:{var x=g[0],y=g[1];if(x===y)return v(h);throw new RangeError("Matrix must be square (size: "+Et(g)+")")}default:throw new RangeError("Matrix must be at most two dimensional (size: "+Et(g)+")")}}})}),zO="sylvester",aIe=["typed","schur","matrixFromColumns","matrix","multiply","range","concat","transpose","index","subset","add","subtract","identity","lusolve","abs"],iIe=se(zO,aIe,e=>{var{typed:t,schur:n,matrixFromColumns:r,matrix:o,multiply:a,range:i,concat:l,transpose:s,index:u,subset:c,add:d,subtract:f,identity:p,lusolve:v,abs:m}=e;return t(zO,{"Matrix, Matrix, Matrix":h,"Array, Matrix, Matrix":function(x,y,w){return h(o(x),y,w)},"Array, Array, Matrix":function(x,y,w){return h(o(x),o(y),w)},"Array, Matrix, Array":function(x,y,w){return h(o(x),y,o(w))},"Matrix, Array, Matrix":function(x,y,w){return h(x,o(y),w)},"Matrix, Array, Array":function(x,y,w){return h(x,o(y),o(w))},"Matrix, Matrix, Array":function(x,y,w){return h(x,y,o(w))},"Array, Array, Array":function(x,y,w){return h(o(x),o(y),o(w)).toArray()}});function h(g,x,y){for(var w=x.size()[0],b=g.size()[0],S=n(g),$=S.T,D=S.U,O=n(a(-1,x)),A=O.T,T=O.U,M=a(a(s(D),y),T),B=i(0,b),F=[],P=(ue,me)=>l(ue,me,1),I=(ue,me)=>l(ue,me,0),N=0;N<w;N++)if(N<w-1&&m(c(A,u(N+1,N)))>1e-5){for(var R=I(c(M,u(B,N)),c(M,u(B,N+1))),_=0;_<N;_++)R=d(R,I(a(F[_],c(A,u(_,N))),a(F[_],c(A,u(_,N+1)))));var L=a(p(b),a(-1,c(A,u(N,N)))),k=a(p(b),a(-1,c(A,u(N+1,N)))),H=a(p(b),a(-1,c(A,u(N,N+1)))),V=a(p(b),a(-1,c(A,u(N+1,N+1)))),U=I(P(d($,L),k),P(H,d($,V))),q=v(U,R);F[N]=q.subset(u(i(0,b),0)),F[N+1]=q.subset(u(i(b,2*b),0)),N++}else{for(var K=c(M,u(B,N)),X=0;X<N;X++)K=d(K,a(F[X],c(A,u(X,N))));var re=c(A,u(N,N)),ee=f($,a(re,p(b)));F[N]=v(ee,K)}var G=o(r(...F)),le=a(D,a(G,s(T)));return le}}),LO="schur",lIe=["typed","matrix","identity","multiply","qr","norm","subtract"],sIe=se(LO,lIe,e=>{var{typed:t,matrix:n,identity:r,multiply:o,qr:a,norm:i,subtract:l}=e;return t(LO,{Array:function(c){var d=s(n(c));return{U:d.U.valueOf(),T:d.T.valueOf()}},Matrix:function(c){return s(c)}});function s(u){var c=u.size()[0],d=u,f=r(c),p=0,v;do{v=d;var m=a(d),h=m.Q,g=m.R;if(d=o(g,h),f=o(f,h),p++>100)break}while(i(l(d,v))>1e-4);return{U:f,T:d}}}),kO="lyap",uIe=["typed","matrix","sylvester","multiply","transpose"],cIe=se(kO,uIe,e=>{var{typed:t,matrix:n,sylvester:r,multiply:o,transpose:a}=e;return t(kO,{"Matrix, Matrix":function(l,s){return r(l,a(l),o(-1,s))},"Array, Matrix":function(l,s){return r(n(l),a(n(l)),o(-1,s))},"Matrix, Array":function(l,s){return r(l,a(n(l)),n(o(-1,s)))},"Array, Array":function(l,s){return r(n(l),a(n(l)),n(o(-1,s))).toArray()}})}),dIe="divide",fIe=["typed","matrix","multiply","equalScalar","divideScalar","inv"],pIe=se(dIe,fIe,e=>{var{typed:t,matrix:n,multiply:r,equalScalar:o,divideScalar:a,inv:i}=e,l=Gn({typed:t,equalScalar:o}),s=Do({typed:t});return t("divide",k_({"Array | Matrix, Array | Matrix":function(c,d){return r(c,i(d))},"DenseMatrix, any":function(c,d){return s(c,d,a,!1)},"SparseMatrix, any":function(c,d){return l(c,d,a,!1)},"Array, any":function(c,d){return s(n(c),d,a,!1).valueOf()},"any, Array | Matrix":function(c,d){return r(c,i(d))}},a.signatures))}),HO="distance",mIe=["typed","addScalar","subtract","divideScalar","multiplyScalar","unaryMinus","sqrt","abs"],vIe=se(HO,mIe,e=>{var{typed:t,addScalar:n,subtract:r,multiplyScalar:o,divideScalar:a,unaryMinus:i,sqrt:l,abs:s}=e;return t(HO,{"Array, Array, Array":function(b,S,$){if(b.length===2&&S.length===2&&$.length===2){if(!c(b))throw new TypeError("Array with 2 numbers or BigNumbers expected for first argument");if(!c(S))throw new TypeError("Array with 2 numbers or BigNumbers expected for second argument");if(!c($))throw new TypeError("Array with 2 numbers or BigNumbers expected for third argument");var D=a(r($[1],$[0]),r(S[1],S[0])),O=o(o(D,D),S[0]),A=i(o(D,S[0])),T=b[1];return h(b[0],b[1],O,A,T)}else throw new TypeError("Invalid Arguments: Try again")},"Object, Object, Object":function(b,S,$){if(Object.keys(b).length===2&&Object.keys(S).length===2&&Object.keys($).length===2){if(!c(b))throw new TypeError("Values of pointX and pointY should be numbers or BigNumbers");if(!c(S))throw new TypeError("Values of lineOnePtX and lineOnePtY should be numbers or BigNumbers");if(!c($))throw new TypeError("Values of lineTwoPtX and lineTwoPtY should be numbers or BigNumbers");if("pointX"in b&&"pointY"in b&&"lineOnePtX"in S&&"lineOnePtY"in S&&"lineTwoPtX"in $&&"lineTwoPtY"in $){var D=a(r($.lineTwoPtY,$.lineTwoPtX),r(S.lineOnePtY,S.lineOnePtX)),O=o(o(D,D),S.lineOnePtX),A=i(o(D,S.lineOnePtX)),T=b.pointX;return h(b.pointX,b.pointY,O,A,T)}else throw new TypeError("Key names do not match")}else throw new TypeError("Invalid Arguments: Try again")},"Array, Array":function(b,S){if(b.length===2&&S.length===3){if(!c(b))throw new TypeError("Array with 2 numbers or BigNumbers expected for first argument");if(!d(S))throw new TypeError("Array with 3 numbers or BigNumbers expected for second argument");return h(b[0],b[1],S[0],S[1],S[2])}else if(b.length===3&&S.length===6){if(!d(b))throw new TypeError("Array with 3 numbers or BigNumbers expected for first argument");if(!p(S))throw new TypeError("Array with 6 numbers or BigNumbers expected for second argument");return g(b[0],b[1],b[2],S[0],S[1],S[2],S[3],S[4],S[5])}else if(b.length===S.length&&b.length>0){if(!f(b))throw new TypeError("All values of an array should be numbers or BigNumbers");if(!f(S))throw new TypeError("All values of an array should be numbers or BigNumbers");return x(b,S)}else throw new TypeError("Invalid Arguments: Try again")},"Object, Object":function(b,S){if(Object.keys(b).length===2&&Object.keys(S).length===3){if(!c(b))throw new TypeError("Values of pointX and pointY should be numbers or BigNumbers");if(!d(S))throw new TypeError("Values of xCoeffLine, yCoeffLine and constant should be numbers or BigNumbers");if("pointX"in b&&"pointY"in b&&"xCoeffLine"in S&&"yCoeffLine"in S&&"constant"in S)return h(b.pointX,b.pointY,S.xCoeffLine,S.yCoeffLine,S.constant);throw new TypeError("Key names do not match")}else if(Object.keys(b).length===3&&Object.keys(S).length===6){if(!d(b))throw new TypeError("Values of pointX, pointY and pointZ should be numbers or BigNumbers");if(!p(S))throw new TypeError("Values of x0, y0, z0, a, b and c should be numbers or BigNumbers");if("pointX"in b&&"pointY"in b&&"x0"in S&&"y0"in S&&"z0"in S&&"a"in S&&"b"in S&&"c"in S)return g(b.pointX,b.pointY,b.pointZ,S.x0,S.y0,S.z0,S.a,S.b,S.c);throw new TypeError("Key names do not match")}else if(Object.keys(b).length===2&&Object.keys(S).length===2){if(!c(b))throw new TypeError("Values of pointOneX and pointOneY should be numbers or BigNumbers");if(!c(S))throw new TypeError("Values of pointTwoX and pointTwoY should be numbers or BigNumbers");if("pointOneX"in b&&"pointOneY"in b&&"pointTwoX"in S&&"pointTwoY"in S)return x([b.pointOneX,b.pointOneY],[S.pointTwoX,S.pointTwoY]);throw new TypeError("Key names do not match")}else if(Object.keys(b).length===3&&Object.keys(S).length===3){if(!d(b))throw new TypeError("Values of pointOneX, pointOneY and pointOneZ should be numbers or BigNumbers");if(!d(S))throw new TypeError("Values of pointTwoX, pointTwoY and pointTwoZ should be numbers or BigNumbers");if("pointOneX"in b&&"pointOneY"in b&&"pointOneZ"in b&&"pointTwoX"in S&&"pointTwoY"in S&&"pointTwoZ"in S)return x([b.pointOneX,b.pointOneY,b.pointOneZ],[S.pointTwoX,S.pointTwoY,S.pointTwoZ]);throw new TypeError("Key names do not match")}else throw new TypeError("Invalid Arguments: Try again")},Array:function(b){if(!m(b))throw new TypeError("Incorrect array format entered for pairwise distance calculation");return y(b)}});function u(w){return typeof w=="number"||Ot(w)}function c(w){return w.constructor!==Array&&(w=v(w)),u(w[0])&&u(w[1])}function d(w){return w.constructor!==Array&&(w=v(w)),u(w[0])&&u(w[1])&&u(w[2])}function f(w){return Array.isArray(w)||(w=v(w)),w.every(u)}function p(w){return w.constructor!==Array&&(w=v(w)),u(w[0])&&u(w[1])&&u(w[2])&&u(w[3])&&u(w[4])&&u(w[5])}function v(w){for(var b=Object.keys(w),S=[],$=0;$<b.length;$++)S.push(w[b[$]]);return S}function m(w){if(w[0].length===2&&u(w[0][0])&&u(w[0][1])){if(w.some(b=>b.length!==2||!u(b[0])||!u(b[1])))return!1}else if(w[0].length===3&&u(w[0][0])&&u(w[0][1])&&u(w[0][2])){if(w.some(b=>b.length!==3||!u(b[0])||!u(b[1])||!u(b[2])))return!1}else return!1;return!0}function h(w,b,S,$,D){var O=s(n(n(o(S,w),o($,b)),D)),A=l(n(o(S,S),o($,$)));return a(O,A)}function g(w,b,S,$,D,O,A,T,M){var B=[r(o(r(D,b),M),o(r(O,S),T)),r(o(r(O,S),A),o(r($,w),M)),r(o(r($,w),T),o(r(D,b),A))];B=l(n(n(o(B[0],B[0]),o(B[1],B[1])),o(B[2],B[2])));var F=l(n(n(o(A,A),o(T,T)),o(M,M)));return a(B,F)}function x(w,b){for(var S=w.length,$=0,D=0,O=0;O<S;O++)D=r(w[O],b[O]),$=n(o(D,D),$);return l($)}function y(w){for(var b=[],S=[],$=[],D=0;D<w.length-1;D++)for(var O=D+1;O<w.length;O++)w[0].length===2?(S=[w[D][0],w[D][1]],$=[w[O][0],w[O][1]]):w[0].length===3&&(S=[w[D][0],w[D][1],w[D][2]],$=[w[O][0],w[O][1],w[O][2]]),b.push(x(S,$));return b}}),hIe="intersect",gIe=["typed","config","abs","add","addScalar","matrix","multiply","multiplyScalar","divideScalar","subtract","smaller","equalScalar","flatten","isZero","isNumeric"],yIe=se(hIe,gIe,e=>{var{typed:t,config:n,abs:r,add:o,addScalar:a,matrix:i,multiply:l,multiplyScalar:s,divideScalar:u,subtract:c,smaller:d,equalScalar:f,flatten:p,isZero:v,isNumeric:m}=e;return t("intersect",{"Array, Array, Array":h,"Array, Array, Array, Array":g,"Matrix, Matrix, Matrix":function(T,M,B){var F=h(T.valueOf(),M.valueOf(),B.valueOf());return F===null?null:i(F)},"Matrix, Matrix, Matrix, Matrix":function(T,M,B,F){var P=g(T.valueOf(),M.valueOf(),B.valueOf(),F.valueOf());return P===null?null:i(P)}});function h(A,T,M){if(A=x(A),T=x(T),M=x(M),!w(A))throw new TypeError("Array with 3 numbers or BigNumbers expected for first argument");if(!w(T))throw new TypeError("Array with 3 numbers or BigNumbers expected for second argument");if(!b(M))throw new TypeError("Array with 4 numbers expected as third argument");return O(A[0],A[1],A[2],T[0],T[1],T[2],M[0],M[1],M[2],M[3])}function g(A,T,M,B){if(A=x(A),T=x(T),M=x(M),B=x(B),A.length===2){if(!y(A))throw new TypeError("Array with 2 numbers or BigNumbers expected for first argument");if(!y(T))throw new TypeError("Array with 2 numbers or BigNumbers expected for second argument");if(!y(M))throw new TypeError("Array with 2 numbers or BigNumbers expected for third argument");if(!y(B))throw new TypeError("Array with 2 numbers or BigNumbers expected for fourth argument");return S(A,T,M,B)}else if(A.length===3){if(!w(A))throw new TypeError("Array with 3 numbers or BigNumbers expected for first argument");if(!w(T))throw new TypeError("Array with 3 numbers or BigNumbers expected for second argument");if(!w(M))throw new TypeError("Array with 3 numbers or BigNumbers expected for third argument");if(!w(B))throw new TypeError("Array with 3 numbers or BigNumbers expected for fourth argument");return D(A[0],A[1],A[2],T[0],T[1],T[2],M[0],M[1],M[2],B[0],B[1],B[2])}else throw new TypeError("Arrays with two or thee dimensional points expected")}function x(A){return A.length===1?A[0]:A.length>1&&Array.isArray(A[0])&&A.every(T=>Array.isArray(T)&&T.length===1)?p(A):A}function y(A){return A.length===2&&m(A[0])&&m(A[1])}function w(A){return A.length===3&&m(A[0])&&m(A[1])&&m(A[2])}function b(A){return A.length===4&&m(A[0])&&m(A[1])&&m(A[2])&&m(A[3])}function S(A,T,M,B){var F=A,P=M,I=c(F,T),N=c(P,B),R=c(s(I[0],N[1]),s(N[0],I[1]));if(v(R)||d(r(R),n.epsilon))return null;var _=s(N[0],F[1]),L=s(N[1],F[0]),k=s(N[0],P[1]),H=s(N[1],P[0]),V=u(a(c(c(_,L),k),H),R);return o(l(I,V),F)}function $(A,T,M,B,F,P,I,N,R,_,L,k){var H=s(c(A,T),c(M,B)),V=s(c(F,P),c(I,N)),U=s(c(R,_),c(L,k));return a(a(H,V),U)}function D(A,T,M,B,F,P,I,N,R,_,L,k){var H=$(A,I,_,I,T,N,L,N,M,R,k,R),V=$(_,I,B,A,L,N,F,T,k,R,P,M),U=$(A,I,B,A,T,N,F,T,M,R,P,M),q=$(_,I,_,I,L,N,L,N,k,R,k,R),K=$(B,A,B,A,F,T,F,T,P,M,P,M),X=c(s(H,V),s(U,q)),re=c(s(K,q),s(V,V));if(v(re))return null;var ee=u(X,re),G=u(a(H,s(ee,V)),q),le=a(A,s(ee,c(B,A))),ue=a(T,s(ee,c(F,T))),me=a(M,s(ee,c(P,M))),Se=a(I,s(G,c(_,I))),Q=a(N,s(G,c(L,N))),te=a(R,s(G,c(k,R)));return f(le,Se)&&f(ue,Q)&&f(me,te)?[le,ue,me]:null}function O(A,T,M,B,F,P,I,N,R,_){var L=s(A,I),k=s(B,I),H=s(T,N),V=s(F,N),U=s(M,R),q=s(P,R),K=c(c(c(_,L),H),U),X=c(c(c(a(a(k,V),q),L),H),U),re=u(K,X),ee=a(A,s(re,c(B,A))),G=a(T,s(re,c(F,T))),le=a(M,s(re,c(P,M)));return[ee,G,le]}}),jO="sum",bIe=["typed","config","add","numeric"],TB=se(jO,bIe,e=>{var{typed:t,config:n,add:r,numeric:o}=e;return t(jO,{"Array | Matrix":a,"Array | Matrix, number | BigNumber":i,"...":function(s){if(ks(s))throw new TypeError("Scalar values expected in function sum");return a(s)}});function a(l){var s;return Ca(l,function(u){try{s=s===void 0?u:r(s,u)}catch(c){throw dr(c,"sum",u)}}),s===void 0&&(s=o(0,n.number)),typeof s=="string"&&(s=o(s,n.number)),s}function i(l,s){try{var u=Fv(l,s,r);return u}catch(c){throw dr(c,"sum")}}}),kd="cumsum",xIe=["typed","add","unaryPlus"],MB=se(kd,xIe,e=>{var{typed:t,add:n,unaryPlus:r}=e;return t(kd,{Array:o,Matrix:function(u){return u.create(o(u.valueOf()))},"Array, number | BigNumber":i,"Matrix, number | BigNumber":function(u,c){return u.create(i(u.valueOf(),c))},"...":function(u){if(ks(u))throw new TypeError("All values expected to be scalar in function cumsum");return o(u)}});function o(s){try{return a(s)}catch(u){throw dr(u,kd)}}function a(s){if(s.length===0)return[];for(var u=[r(s[0])],c=1;c<s.length;++c)u.push(n(u[c-1],s[c]));return u}function i(s,u){var c=Mt(s);if(u<0||u>=c.length)throw new oo(u,c.length);try{return l(s,u)}catch(d){throw dr(d,kd)}}function l(s,u){var c,d,f;if(u<=0){var p=s[0][0];if(Array.isArray(p)){for(f=m7(s),d=[],c=0;c<f.length;c++)d[c]=l(f[c],u-1);return d}else return a(s)}else{for(d=[],c=0;c<s.length;c++)d[c]=l(s[c],u-1);return d}}}),VO="mean",wIe=["typed","add","divide"],NB=se(VO,wIe,e=>{var{typed:t,add:n,divide:r}=e;return t(VO,{"Array | Matrix":a,"Array | Matrix, number | BigNumber":o,"...":function(l){if(ks(l))throw new TypeError("Scalar values expected in function mean");return a(l)}});function o(i,l){try{var s=Fv(i,l,n),u=Array.isArray(i)?Mt(i):i.size();return r(s,u[l])}catch(c){throw dr(c,"mean")}}function a(i){var l,s=0;if(Ca(i,function(u){try{l=l===void 0?u:n(l,u),s++}catch(c){throw dr(c,"mean",u)}}),s===0)throw new Error("Cannot calculate the mean of an empty array");return r(l,s)}}),WO="median",SIe=["typed","add","divide","compare","partitionSelect"],CIe=se(WO,SIe,e=>{var{typed:t,add:n,divide:r,compare:o,partitionSelect:a}=e;function i(u){try{u=Ht(u.valueOf());var c=u.length;if(c===0)throw new Error("Cannot calculate median of an empty array");if(c%2===0){for(var d=c/2-1,f=a(u,d+1),p=u[d],v=0;v<d;++v)o(u[v],p)>0&&(p=u[v]);return s(p,f)}else{var m=a(u,(c-1)/2);return l(m)}}catch(h){throw dr(h,"median")}}var l=t({"number | BigNumber | Complex | Unit":function(c){return c}}),s=t({"number | BigNumber | Complex | Unit, number | BigNumber | Complex | Unit":function(c,d){return r(n(c,d),2)}});return t(WO,{"Array | Matrix":i,"Array | Matrix, number | BigNumber":function(c,d){throw new Error("median(A, dim) is not yet supported")},"...":function(c){if(ks(c))throw new TypeError("Scalar values expected in function median");return i(c)}})}),UO="mad",$Ie=["typed","abs","map","median","subtract"],EIe=se(UO,$Ie,e=>{var{typed:t,abs:n,map:r,median:o,subtract:a}=e;return t(UO,{"Array | Matrix":i,"...":function(s){return i(s)}});function i(l){if(l=Ht(l.valueOf()),l.length===0)throw new Error("Cannot calculate median absolute deviation (mad) of an empty array");try{var s=o(l);return o(r(l,function(u){return n(a(u,s))}))}catch(u){throw u instanceof TypeError&&u.message.indexOf("median")!==-1?new TypeError(u.message.replace("median","mad")):dr(u,"mad")}}}),Sg="unbiased",KO="variance",DIe=["typed","add","subtract","multiply","divide","apply","isNaN"],PB=se(KO,DIe,e=>{var{typed:t,add:n,subtract:r,multiply:o,divide:a,apply:i,isNaN:l}=e;return t(KO,{"Array | Matrix":function(d){return s(d,Sg)},"Array | Matrix, string":s,"Array | Matrix, number | BigNumber":function(d,f){return u(d,f,Sg)},"Array | Matrix, number | BigNumber, string":u,"...":function(d){return s(d,Sg)}});function s(c,d){var f,p=0;if(c.length===0)throw new SyntaxError("Function variance requires one or more parameters (0 provided)");if(Ca(c,function(h){try{f=f===void 0?h:n(f,h),p++}catch(g){throw dr(g,"variance",h)}}),p===0)throw new Error("Cannot calculate variance of an empty array");var v=a(f,p);if(f=void 0,Ca(c,function(h){var g=r(h,v);f=f===void 0?o(g,g):n(f,o(g,g))}),l(f))return f;switch(d){case"uncorrected":return a(f,p);case"biased":return a(f,p+1);case"unbiased":{var m=Ot(f)?f.mul(0):0;return p===1?m:a(f,p-1)}default:throw new Error('Unknown normalization "'+d+'". Choose "unbiased" (default), "uncorrected", or "biased".')}}function u(c,d,f){try{if(c.length===0)throw new SyntaxError("Function variance requires one or more parameters (0 provided)");return i(c,d,p=>s(p,f))}catch(p){throw dr(p,"variance")}}}),AIe="quantileSeq",OIe=["typed","add","multiply","partitionSelect","compare"],TIe=se(AIe,OIe,e=>{var{typed:t,add:n,multiply:r,partitionSelect:o,compare:a}=e;function i(u,c,d){var f,p,v;if(arguments.length<2||arguments.length>3)throw new SyntaxError("Function quantileSeq requires two or three parameters");if(wo(u)){if(d=d||!1,typeof d=="boolean"){if(p=u.valueOf(),Pt(c)){if(c<0)throw new Error("N/prob must be non-negative");if(c<=1)return l(p,c,d);if(c>1){if(!ot(c))throw new Error("N must be a positive integer");var m=c+1;f=new Array(c);for(var h=0;h<c;)f[h]=l(p,++h/m,d);return f}}if(Ot(c)){var g=c.constructor;if(c.isNegative())throw new Error("N/prob must be non-negative");if(v=new g(1),c.lte(v))return new g(l(p,c,d));if(c.gt(v)){if(!c.isInteger())throw new Error("N must be a positive integer");var x=c.toNumber();if(x>4294967295)throw new Error("N must be less than or equal to 2^32-1, as that is the maximum length of an Array");var y=new g(x+1);f=new Array(x);for(var w=0;w<x;)f[w]=new g(l(p,new g(++w).div(y),d));return f}}if(wo(c)){var b=c.valueOf();f=new Array(b.length);for(var S=0;S<f.length;++S){var $=b[S];if(Pt($)){if($<0||$>1)throw new Error("Probability must be between 0 and 1, inclusive")}else if(Ot($)){if(v=new $.constructor(1),$.isNegative()||$.gt(v))throw new Error("Probability must be between 0 and 1, inclusive")}else throw new TypeError("Unexpected type of argument in function quantileSeq");f[S]=l(p,$,d)}return f}throw new TypeError("Unexpected type of argument in function quantileSeq")}throw new TypeError("Unexpected type of argument in function quantileSeq")}throw new TypeError("Unexpected type of argument in function quantileSeq")}function l(u,c,d){var f=Ht(u),p=f.length;if(p===0)throw new Error("Cannot calculate quantile of an empty sequence");if(Pt(c)){var v=c*(p-1),m=v%1;if(m===0){var h=d?f[v]:o(f,v);return s(h),h}var g=Math.floor(v),x,y;if(d)x=f[g],y=f[g+1];else{y=o(f,g+1),x=f[g];for(var w=0;w<g;++w)a(f[w],x)>0&&(x=f[w])}return s(x),s(y),n(r(x,1-m),r(y,m))}var b=c.times(p-1);if(b.isInteger()){b=b.toNumber();var S=d?f[b]:o(f,b);return s(S),S}var $=b.floor(),D=b.minus($),O=$.toNumber(),A,T;if(d)A=f[O],T=f[O+1];else{T=o(f,O+1),A=f[O];for(var M=0;M<O;++M)a(f[M],A)>0&&(A=f[M])}s(A),s(T);var B=new D.constructor(1);return n(r(A,B.minus(D)),r(T,D))}var s=t({"number | BigNumber | Unit":function(c){return c}});return i}),qO="std",MIe=["typed","map","sqrt","variance"],IB=se(qO,MIe,e=>{var{typed:t,map:n,sqrt:r,variance:o}=e;return t(qO,{"Array | Matrix":a,"Array | Matrix, string":a,"Array | Matrix, number | BigNumber":a,"Array | Matrix, number | BigNumber, string":a,"...":function(l){return a(l)}});function a(i,l){if(i.length===0)throw new SyntaxError("Function std requires one or more parameters (0 provided)");try{var s=o.apply(null,arguments);return wo(s)?n(s,r):r(s)}catch(u){throw u instanceof TypeError&&u.message.indexOf(" variance")!==-1?new TypeError(u.message.replace(" variance"," std")):u}}}),GO="combinations",NIe=["typed"],PIe=se(GO,NIe,e=>{var{typed:t}=e;return t(GO,{"number, number":z7,"BigNumber, BigNumber":function(r,o){var a=r.constructor,i,l,s=r.minus(o),u=new a(1);if(!XO(r)||!XO(o))throw new TypeError("Positive integer value expected in function combinations");if(o.gt(r))throw new TypeError("k must be less than n in function combinations");if(i=u,o.lt(s))for(l=u;l.lte(s);l=l.plus(u))i=i.times(o.plus(l)).dividedBy(l);else for(l=u;l.lte(o);l=l.plus(u))i=i.times(s.plus(l)).dividedBy(l);return i}})});function XO(e){return e.isInteger()&&e.gte(0)}var YO="combinationsWithRep",IIe=["typed"],_Ie=se(YO,IIe,e=>{var{typed:t}=e;return t(YO,{"number, number":function(r,o){if(!ot(r)||r<0)throw new TypeError("Positive integer value expected in function combinationsWithRep");if(!ot(o)||o<0)throw new TypeError("Positive integer value expected in function combinationsWithRep");if(r<1)throw new TypeError("k must be less than or equal to n + k - 1");if(o<r-1){var a=pa(r,r+o-1);return a/pa(1,o)}var i=pa(o+1,r+o-1);return i/pa(1,r-1)},"BigNumber, BigNumber":function(r,o){var a=r.constructor,i,l,s=new a(1),u=r.minus(s);if(!ZO(r)||!ZO(o))throw new TypeError("Positive integer value expected in function combinationsWithRep");if(r.lt(s))throw new TypeError("k must be less than or equal to n + k - 1 in function combinationsWithRep");if(i=s,o.lt(u))for(l=s;l.lte(u);l=l.plus(s))i=i.times(o.plus(l)).dividedBy(l);else for(l=s;l.lte(o);l=l.plus(s))i=i.times(u.plus(l)).dividedBy(l);return i}})});function ZO(e){return e.isInteger()&&e.gte(0)}var JO="gamma",BIe=["typed","config","multiplyScalar","pow","BigNumber","Complex"],FIe=se(JO,BIe,e=>{var{typed:t,config:n,multiplyScalar:r,pow:o,BigNumber:a,Complex:i}=e;function l(u){if(u.im===0)return jp(u.re);if(u.re<.5){var c=new i(1-u.re,-u.im),d=new i(Math.PI*u.re,Math.PI*u.im);return new i(Math.PI).div(d.sin()).div(l(c))}u=new i(u.re-1,u.im);for(var f=new i(rs[0],0),p=1;p<rs.length;++p){var v=new i(rs[p],0);f=f.add(v.div(u.add(p)))}var m=new i(u.re+V7+.5,u.im),h=Math.sqrt(2*Math.PI),g=m.pow(u.add(.5)),x=m.neg().exp();return f.mul(h).mul(g).mul(x)}return t(JO,{number:jp,Complex:l,BigNumber:function(c){if(c.isInteger())return c.isNegative()||c.isZero()?new a(1/0):s(c.minus(1));if(!c.isFinite())return new a(c.isNegative()?NaN:1/0);throw new Error("Integer BigNumber expected")}});function s(u){if(u<8)return new a([1,1,2,6,24,120,720,5040][u]);var c=n.precision+(Math.log(u.toNumber())|0),d=a.clone({precision:c});if(u%2===1)return u.times(s(new a(u-1)));for(var f=u,p=new d(u),v=u.toNumber();f>2;)f-=2,v+=f,p=p.times(v);return new a(p.toPrecision(a.precision))}}),QO="lgamma",RIe=["Complex","typed"],zIe=se(QO,RIe,e=>{var{Complex:t,typed:n}=e,r=7,o=7,a=[-.029550653594771242,.00641025641025641,-.0019175269175269176,.0008417508417508417,-.0005952380952380953,.0007936507936507937,-.002777777777777778,.08333333333333333];return n(QO,{number:Vp,Complex:i,BigNumber:function(){throw new Error("mathjs doesn't yet provide an implementation of the algorithm lgamma for BigNumber")}});function i(u){var c=6.283185307179586,d=1.1447298858494002,f=.1;if(u.isNaN())return new t(NaN,NaN);if(u.im===0)return new t(Vp(u.re),0);if(u.re>=r||Math.abs(u.im)>=o)return l(u);if(u.re<=f){var p=j1e(c,u.im)*Math.floor(.5*u.re+.25),v=u.mul(Math.PI).sin().log(),m=i(new t(1-u.re,-u.im));return new t(d,p).sub(v).sub(m)}else return u.im>=0?s(u):s(u.conjugate()).conjugate()}function l(u){for(var c=u.sub(.5).mul(u.log()).sub(u).add(W7),d=new t(1,0).div(u),f=d.div(u),p=a[0],v=a[1],m=2*f.re,h=f.re*f.re+f.im*f.im,g=2;g<8;g++){var x=v;v=-h*p+a[g],p=m*p+x}var y=d.mul(f.mul(p).add(v));return c.add(y)}function s(u){var c=0,d=0,f=u;for(u=u.add(1);u.re<=r;){f=f.mul(u);var p=f.im<0?1:0;p!==0&&d===0&&c++,d=p,u=u.add(1)}return l(u).sub(f.log()).sub(new t(0,c*2*Math.PI*1))}}),eT="factorial",LIe=["typed","gamma"],kIe=se(eT,LIe,e=>{var{typed:t,gamma:n}=e;return t(eT,{number:function(o){if(o<0)throw new Error("Value must be non-negative");return n(o+1)},BigNumber:function(o){if(o.isNegative())throw new Error("Value must be non-negative");return n(o.plus(1))},"Array | Matrix":t.referToSelf(r=>o=>Tt(o,r))})}),tT="kldivergence",HIe=["typed","matrix","divide","sum","multiply","map","dotDivide","log","isNumeric"],jIe=se(tT,HIe,e=>{var{typed:t,matrix:n,divide:r,sum:o,multiply:a,map:i,dotDivide:l,log:s,isNumeric:u}=e;return t(tT,{"Array, Array":function(f,p){return c(n(f),n(p))},"Matrix, Array":function(f,p){return c(f,n(p))},"Array, Matrix":function(f,p){return c(n(f),p)},"Matrix, Matrix":function(f,p){return c(f,p)}});function c(d,f){var p=f.size().length,v=d.size().length;if(p>1)throw new Error("first object must be one dimensional");if(v>1)throw new Error("second object must be one dimensional");if(p!==v)throw new Error("Length of two vectors must be equal");var m=o(d);if(m===0)throw new Error("Sum of elements in first object must be non zero");var h=o(f);if(h===0)throw new Error("Sum of elements in second object must be non zero");var g=r(d,o(d)),x=r(f,o(f)),y=o(a(g,i(l(g,x),w=>s(w))));return u(y)?y:Number.NaN}}),nT="multinomial",VIe=["typed","add","divide","multiply","factorial","isInteger","isPositive"],WIe=se(nT,VIe,e=>{var{typed:t,add:n,divide:r,multiply:o,factorial:a,isInteger:i,isPositive:l}=e;return t(nT,{"Array | Matrix":function(u){var c=0,d=1;return Ca(u,function(f){if(!i(f)||!l(f))throw new TypeError("Positive integer value expected in function multinomial");c=n(c,f),d=o(d,a(f))}),r(a(c),d)}})}),rT="permutations",UIe=["typed","factorial"],KIe=se(rT,UIe,e=>{var{typed:t,factorial:n}=e;return t(rT,{"number | BigNumber":n,"number, number":function(o,a){if(!ot(o)||o<0)throw new TypeError("Positive integer value expected in function permutations");if(!ot(a)||a<0)throw new TypeError("Positive integer value expected in function permutations");if(a>o)throw new TypeError("second argument k must be less than or equal to first argument n");return pa(o-a+1,o)},"BigNumber, BigNumber":function(o,a){var i,l;if(!oT(o)||!oT(a))throw new TypeError("Positive integer value expected in function permutations");if(a.gt(o))throw new TypeError("second argument k must be less than or equal to first argument n");var s=o.mul(0).add(1);for(i=s,l=o.minus(a).plus(1);l.lte(o);l=l.plus(1))i=i.times(l);return i}})});function oT(e){return e.isInteger()&&e.gte(0)}var Ny={},qIe={get exports(){return Ny},set exports(e){Ny=e}};(function(e){(function(t,n,r){function o(s){var u=this,c=l();u.next=function(){var d=2091639*u.s0+u.c*23283064365386963e-26;return u.s0=u.s1,u.s1=u.s2,u.s2=d-(u.c=d|0)},u.c=1,u.s0=c(" "),u.s1=c(" "),u.s2=c(" "),u.s0-=c(s),u.s0<0&&(u.s0+=1),u.s1-=c(s),u.s1<0&&(u.s1+=1),u.s2-=c(s),u.s2<0&&(u.s2+=1),c=null}function a(s,u){return u.c=s.c,u.s0=s.s0,u.s1=s.s1,u.s2=s.s2,u}function i(s,u){var c=new o(s),d=u&&u.state,f=c.next;return f.int32=function(){return c.next()*4294967296|0},f.double=function(){return f()+(f()*2097152|0)*11102230246251565e-32},f.quick=f,d&&(typeof d=="object"&&a(d,c),f.state=function(){return a(c,{})}),f}function l(){var s=4022871197,u=function(c){c=String(c);for(var d=0;d<c.length;d++){s+=c.charCodeAt(d);var f=.02519603282416938*s;s=f>>>0,f-=s,f*=s,s=f>>>0,f-=s,s+=f*4294967296}return(s>>>0)*23283064365386963e-26};return u}n&&n.exports?n.exports=i:r&&r.amd?r(function(){return i}):this.alea=i})(qn,e,!1)})(qIe);var Py={},GIe={get exports(){return Py},set exports(e){Py=e}};(function(e){(function(t,n,r){function o(l){var s=this,u="";s.x=0,s.y=0,s.z=0,s.w=0,s.next=function(){var d=s.x^s.x<<11;return s.x=s.y,s.y=s.z,s.z=s.w,s.w^=s.w>>>19^d^d>>>8},l===(l|0)?s.x=l:u+=l;for(var c=0;c<u.length+64;c++)s.x^=u.charCodeAt(c)|0,s.next()}function a(l,s){return s.x=l.x,s.y=l.y,s.z=l.z,s.w=l.w,s}function i(l,s){var u=new o(l),c=s&&s.state,d=function(){return(u.next()>>>0)/4294967296};return d.double=function(){do var f=u.next()>>>11,p=(u.next()>>>0)/4294967296,v=(f+p)/(1<<21);while(v===0);return v},d.int32=u.next,d.quick=d,c&&(typeof c=="object"&&a(c,u),d.state=function(){return a(u,{})}),d}n&&n.exports?n.exports=i:r&&r.amd?r(function(){return i}):this.xor128=i})(qn,e,!1)})(GIe);var Iy={},XIe={get exports(){return Iy},set exports(e){Iy=e}};(function(e){(function(t,n,r){function o(l){var s=this,u="";s.next=function(){var d=s.x^s.x>>>2;return s.x=s.y,s.y=s.z,s.z=s.w,s.w=s.v,(s.d=s.d+362437|0)+(s.v=s.v^s.v<<4^(d^d<<1))|0},s.x=0,s.y=0,s.z=0,s.w=0,s.v=0,l===(l|0)?s.x=l:u+=l;for(var c=0;c<u.length+64;c++)s.x^=u.charCodeAt(c)|0,c==u.length&&(s.d=s.x<<10^s.x>>>4),s.next()}function a(l,s){return s.x=l.x,s.y=l.y,s.z=l.z,s.w=l.w,s.v=l.v,s.d=l.d,s}function i(l,s){var u=new o(l),c=s&&s.state,d=function(){return(u.next()>>>0)/4294967296};return d.double=function(){do var f=u.next()>>>11,p=(u.next()>>>0)/4294967296,v=(f+p)/(1<<21);while(v===0);return v},d.int32=u.next,d.quick=d,c&&(typeof c=="object"&&a(c,u),d.state=function(){return a(u,{})}),d}n&&n.exports?n.exports=i:r&&r.amd?r(function(){return i}):this.xorwow=i})(qn,e,!1)})(XIe);var _y={},YIe={get exports(){return _y},set exports(e){_y=e}};(function(e){(function(t,n,r){function o(l){var s=this;s.next=function(){var c=s.x,d=s.i,f,p;return f=c[d],f^=f>>>7,p=f^f<<24,f=c[d+1&7],p^=f^f>>>10,f=c[d+3&7],p^=f^f>>>3,f=c[d+4&7],p^=f^f<<7,f=c[d+7&7],f=f^f<<13,p^=f^f<<9,c[d]=p,s.i=d+1&7,p};function u(c,d){var f,p=[];if(d===(d|0))p[0]=d;else for(d=""+d,f=0;f<d.length;++f)p[f&7]=p[f&7]<<15^d.charCodeAt(f)+p[f+1&7]<<13;for(;p.length<8;)p.push(0);for(f=0;f<8&&p[f]===0;++f);for(f==8?p[7]=-1:p[f],c.x=p,c.i=0,f=256;f>0;--f)c.next()}u(s,l)}function a(l,s){return s.x=l.x.slice(),s.i=l.i,s}function i(l,s){l==null&&(l=+new Date);var u=new o(l),c=s&&s.state,d=function(){return(u.next()>>>0)/4294967296};return d.double=function(){do var f=u.next()>>>11,p=(u.next()>>>0)/4294967296,v=(f+p)/(1<<21);while(v===0);return v},d.int32=u.next,d.quick=d,c&&(c.x&&a(c,u),d.state=function(){return a(u,{})}),d}n&&n.exports?n.exports=i:r&&r.amd?r(function(){return i}):this.xorshift7=i})(qn,e,!1)})(YIe);var By={},ZIe={get exports(){return By},set exports(e){By=e}};(function(e){(function(t,n,r){function o(l){var s=this;s.next=function(){var c=s.w,d=s.X,f=s.i,p,v;return s.w=c=c+1640531527|0,v=d[f+34&127],p=d[f=f+1&127],v^=v<<13,p^=p<<17,v^=v>>>15,p^=p>>>12,v=d[f]=v^p,s.i=f,v+(c^c>>>16)|0};function u(c,d){var f,p,v,m,h,g=[],x=128;for(d===(d|0)?(p=d,d=null):(d=d+"\0",p=0,x=Math.max(x,d.length)),v=0,m=-32;m<x;++m)d&&(p^=d.charCodeAt((m+32)%d.length)),m===0&&(h=p),p^=p<<10,p^=p>>>15,p^=p<<4,p^=p>>>13,m>=0&&(h=h+1640531527|0,f=g[m&127]^=p+h,v=f==0?v+1:0);for(v>=128&&(g[(d&&d.length||0)&127]=-1),v=127,m=4*128;m>0;--m)p=g[v+34&127],f=g[v=v+1&127],p^=p<<13,f^=f<<17,p^=p>>>15,f^=f>>>12,g[v]=p^f;c.w=h,c.X=g,c.i=v}u(s,l)}function a(l,s){return s.i=l.i,s.w=l.w,s.X=l.X.slice(),s}function i(l,s){l==null&&(l=+new Date);var u=new o(l),c=s&&s.state,d=function(){return(u.next()>>>0)/4294967296};return d.double=function(){do var f=u.next()>>>11,p=(u.next()>>>0)/4294967296,v=(f+p)/(1<<21);while(v===0);return v},d.int32=u.next,d.quick=d,c&&(c.X&&a(c,u),d.state=function(){return a(u,{})}),d}n&&n.exports?n.exports=i:r&&r.amd?r(function(){return i}):this.xor4096=i})(qn,e,!1)})(ZIe);var Fy={},JIe={get exports(){return Fy},set exports(e){Fy=e}};(function(e){(function(t,n,r){function o(l){var s=this,u="";s.next=function(){var d=s.b,f=s.c,p=s.d,v=s.a;return d=d<<25^d>>>7^f,f=f-p|0,p=p<<24^p>>>8^v,v=v-d|0,s.b=d=d<<20^d>>>12^f,s.c=f=f-p|0,s.d=p<<16^f>>>16^v,s.a=v-d|0},s.a=0,s.b=0,s.c=-1640531527,s.d=1367130551,l===Math.floor(l)?(s.a=l/4294967296|0,s.b=l|0):u+=l;for(var c=0;c<u.length+20;c++)s.b^=u.charCodeAt(c)|0,s.next()}function a(l,s){return s.a=l.a,s.b=l.b,s.c=l.c,s.d=l.d,s}function i(l,s){var u=new o(l),c=s&&s.state,d=function(){return(u.next()>>>0)/4294967296};return d.double=function(){do var f=u.next()>>>11,p=(u.next()>>>0)/4294967296,v=(f+p)/(1<<21);while(v===0);return v},d.int32=u.next,d.quick=d,c&&(typeof c=="object"&&a(c,u),d.state=function(){return a(u,{})}),d}n&&n.exports?n.exports=i:r&&r.amd?r(function(){return i}):this.tychei=i})(qn,e,!1)})(JIe);var Ry={},QIe={get exports(){return Ry},set exports(e){Ry=e}};const e8e={},t8e=Object.freeze(Object.defineProperty({__proto__:null,default:e8e},Symbol.toStringTag,{value:"Module"})),n8e=KZ(t8e);(function(e){(function(t,n,r){var o=256,a=6,i=52,l="random",s=r.pow(o,a),u=r.pow(2,i),c=u*2,d=o-1,f;function p(w,b,S){var $=[];b=b==!0?{entropy:!0}:b||{};var D=g(h(b.entropy?[w,y(n)]:w??x(),3),$),O=new v($),A=function(){for(var T=O.g(a),M=s,B=0;T<u;)T=(T+B)*o,M*=o,B=O.g(1);for(;T>=c;)T/=2,M/=2,B>>>=1;return(T+B)/M};return A.int32=function(){return O.g(4)|0},A.quick=function(){return O.g(4)/4294967296},A.double=A,g(y(O.S),n),(b.pass||S||function(T,M,B,F){return F&&(F.S&&m(F,O),T.state=function(){return m(O,{})}),B?(r[l]=T,M):T})(A,D,"global"in b?b.global:this==r,b.state)}function v(w){var b,S=w.length,$=this,D=0,O=$.i=$.j=0,A=$.S=[];for(S||(w=[S++]);D<o;)A[D]=D++;for(D=0;D<o;D++)A[D]=A[O=d&O+w[D%S]+(b=A[D])],A[O]=b;($.g=function(T){for(var M,B=0,F=$.i,P=$.j,I=$.S;T--;)M=I[F=d&F+1],B=B*o+I[d&(I[F]=I[P=d&P+M])+(I[P]=M)];return $.i=F,$.j=P,B})(o)}function m(w,b){return b.i=w.i,b.j=w.j,b.S=w.S.slice(),b}function h(w,b){var S=[],$=typeof w,D;if(b&&$=="object")for(D in w)try{S.push(h(w[D],b-1))}catch{}return S.length?S:$=="string"?w:w+"\0"}function g(w,b){for(var S=w+"",$,D=0;D<S.length;)b[d&D]=d&($^=b[d&D]*19)+S.charCodeAt(D++);return y(b)}function x(){try{var w;return f&&(w=f.randomBytes)?w=w(o):(w=new Uint8Array(o),(t.crypto||t.msCrypto).getRandomValues(w)),y(w)}catch{var b=t.navigator,S=b&&b.plugins;return[+new Date,t,S,t.screen,y(n)]}}function y(w){return String.fromCharCode.apply(0,w)}if(g(r.random(),n),e.exports){e.exports=p;try{f=n8e}catch{}}else r["seed"+l]=p})(typeof self<"u"?self:qn,[],Math)})(QIe);var r8e=Ny,o8e=Py,a8e=Iy,i8e=_y,l8e=By,s8e=Fy,pl=Ry;pl.alea=r8e;pl.xor128=o8e;pl.xorwow=a8e;pl.xorshift7=i8e;pl.xor4096=l8e;pl.tychei=s8e;var _B=pl,u8e=_B(Date.now());function Cs(e){var t;function n(o){t=o===null?u8e:_B(String(o))}n(e);function r(){return t()}return r}var aT="pickRandom",c8e=["typed","config","?on"],d8e=se(aT,c8e,e=>{var{typed:t,config:n,on:r}=e,o=Cs(n.randomSeed);return r&&r("config",function(i,l){i.randomSeed!==l.randomSeed&&(o=Cs(i.randomSeed))}),t(aT,{"Array | Matrix":function(l){return a(l,{})},"Array | Matrix, Object":function(l,s){return a(l,s)},"Array | Matrix, number":function(l,s){return a(l,{number:s})},"Array | Matrix, Array | Matrix":function(l,s){return a(l,{weights:s})},"Array | Matrix, Array | Matrix, number":function(l,s,u){return a(l,{number:u,weights:s})},"Array | Matrix, number, Array | Matrix":function(l,s,u){return a(l,{number:s,weights:u})}});function a(i,l){var{number:s,weights:u,elementWise:c=!0}=l,d=typeof s>"u";d&&(s=1);var f=mt(i)?i.create:mt(u)?u.create:null;i=i.valueOf(),u&&(u=u.valueOf()),c===!0&&(i=Ht(i),u=Ht(u));var p=0;if(typeof u<"u"){if(u.length!==i.length)throw new Error("Weights must have the same length as possibles");for(var v=0,m=u.length;v<m;v++){if(!Pt(u[v])||u[v]<0)throw new Error("Weights must be an array of positive numbers");p+=u[v]}}for(var h=i.length,g=[],x;g.length<s;){if(typeof u>"u")x=i[Math.floor(o()*h)];else for(var y=o()*p,w=0,b=i.length;w<b;w++)if(y-=u[w],y<0){x=i[w];break}g.push(x)}return d?g[0]:f?f(g):g}});function eS(e,t){var n=[];if(e=e.slice(0),e.length>1)for(var r=0,o=e.shift();r<o;r++)n.push(eS(e,t));else for(var a=0,i=e.shift();a<i;a++)n.push(t());return n}var iT="random",f8e=["typed","config","?on"],p8e=se(iT,f8e,e=>{var{typed:t,config:n,on:r}=e,o=Cs(n.randomSeed);return r&&r("config",function(l,s){l.randomSeed!==s.randomSeed&&(o=Cs(l.randomSeed))}),t(iT,{"":()=>i(0,1),number:l=>i(0,l),"number, number":(l,s)=>i(l,s),"Array | Matrix":l=>a(l,0,1),"Array | Matrix, number":(l,s)=>a(l,0,s),"Array | Matrix, number, number":(l,s,u)=>a(l,s,u)});function a(l,s,u){var c=eS(l.valueOf(),()=>i(s,u));return mt(l)?l.create(c):c}function i(l,s){return l+o()*(s-l)}}),lT="randomInt",m8e=["typed","config","?on"],v8e=se(lT,m8e,e=>{var{typed:t,config:n,on:r}=e,o=Cs(n.randomSeed);return r&&r("config",function(l,s){l.randomSeed!==s.randomSeed&&(o=Cs(l.randomSeed))}),t(lT,{"":()=>i(0,1),number:l=>i(0,l),"number, number":(l,s)=>i(l,s),"Array | Matrix":l=>a(l,0,1),"Array | Matrix, number":(l,s)=>a(l,0,s),"Array | Matrix, number, number":(l,s,u)=>a(l,s,u)});function a(l,s,u){var c=eS(l.valueOf(),()=>i(s,u));return mt(l)?l.create(c):c}function i(l,s){return Math.floor(l+o()*(s-l))}}),sT="stirlingS2",h8e=["typed","addScalar","subtract","multiplyScalar","divideScalar","pow","factorial","combinations","isNegative","isInteger","number","?bignumber","larger"],g8e=se(sT,h8e,e=>{var{typed:t,addScalar:n,subtract:r,multiplyScalar:o,divideScalar:a,pow:i,factorial:l,combinations:s,isNegative:u,isInteger:c,number:d,bignumber:f,larger:p}=e,v=[],m=[];return t(sT,{"number | BigNumber, number | BigNumber":function(g,x){if(!c(g)||u(g)||!c(x)||u(x))throw new TypeError("Non-negative integer value expected in function stirlingS2");if(p(x,g))throw new TypeError("k must be less than or equal to n in function stirlingS2");var y=!(Pt(g)&&Pt(x)),w=y?m:v,b=y?f:d,S=d(g),$=d(x);if(w[S]&&w[S].length>$)return w[S][$];for(var D=0;D<=S;++D)if(w[D]||(w[D]=[b(D===0?1:0)]),D!==0)for(var O=w[D],A=w[D-1],T=O.length;T<=D&&T<=$;++T)T===D?O[T]=1:O[T]=n(o(b(T),A[T]),A[T-1]);return w[S][$]}})}),uT="bellNumbers",y8e=["typed","addScalar","isNegative","isInteger","stirlingS2"],b8e=se(uT,y8e,e=>{var{typed:t,addScalar:n,isNegative:r,isInteger:o,stirlingS2:a}=e;return t(uT,{"number | BigNumber":function(l){if(!o(l)||r(l))throw new TypeError("Non-negative integer value expected in function bellNumbers");for(var s=0,u=0;u<=l;u++)s=n(s,a(l,u));return s}})}),cT="catalan",x8e=["typed","addScalar","divideScalar","multiplyScalar","combinations","isNegative","isInteger"],w8e=se(cT,x8e,e=>{var{typed:t,addScalar:n,divideScalar:r,multiplyScalar:o,combinations:a,isNegative:i,isInteger:l}=e;return t(cT,{"number | BigNumber":function(u){if(!l(u)||i(u))throw new TypeError("Non-negative integer value expected in function catalan");return r(a(o(u,2),u),n(u,1))}})}),dT="composition",S8e=["typed","addScalar","combinations","isNegative","isPositive","isInteger","larger"],C8e=se(dT,S8e,e=>{var{typed:t,addScalar:n,combinations:r,isPositive:o,isNegative:a,isInteger:i,larger:l}=e;return t(dT,{"number | BigNumber, number | BigNumber":function(u,c){if(!i(u)||!o(u)||!i(c)||!o(c))throw new TypeError("Positive integer value expected in function composition");if(l(c,u))throw new TypeError("k must be less than or equal to n in function composition");return r(n(u,-1),n(c,-1))}})}),fT="leafCount",$8e=["parse","typed"],E8e=se(fT,$8e,e=>{var{parse:t,typed:n}=e;function r(o){var a=0;return o.forEach(i=>{a+=r(i)}),a||1}return n(fT,{Node:function(a){return r(a)}})});function pT(e){return Rt(e)||bn(e)&&e.isUnary()&&Rt(e.args[0])}function Qp(e){return!!(Rt(e)||(Sa(e)||bn(e))&&e.args.every(Qp)||Vo(e)&&Qp(e.content))}function mT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Cg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?mT(Object(n),!0).forEach(function(r){In(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var D8e="simplifyUtil",A8e=["FunctionNode","OperatorNode","SymbolNode"],tS=se(D8e,A8e,e=>{var{FunctionNode:t,OperatorNode:n,SymbolNode:r}=e,o=!0,a=!1,i="defaultF",l={add:{trivial:o,total:o,commutative:o,associative:o},unaryPlus:{trivial:o,total:o,commutative:o,associative:o},subtract:{trivial:a,total:o,commutative:a,associative:a},multiply:{trivial:o,total:o,commutative:o,associative:o},divide:{trivial:a,total:o,commutative:a,associative:a},paren:{trivial:o,total:o,commutative:o,associative:a},defaultF:{trivial:a,total:o,commutative:a,associative:a}},s={divide:{total:a},log:{total:a}},u={subtract:{total:a},abs:{trivial:o},log:{total:o}};function c(y,w){var b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:l,S=i;if(typeof y=="string"?S=y:bn(y)?S=y.fn.toString():Sa(y)?S=y.name:Vo(y)&&(S="paren"),Ke(b,S)){var $=b[S];if(Ke($,w))return $[w];if(Ke(l,S))return l[S][w]}if(Ke(b,i)){var D=b[i];return Ke(D,w)?D[w]:l[i][w]}if(Ke(l,S)){var O=l[S];if(Ke(O,w))return O[w]}return l[i][w]}function d(y){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:l;return c(y,"commutative",w)}function f(y){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:l;return c(y,"associative",w)}function p(y,w){var b=Cg({},y);for(var S in w)Ke(y,S)?b[S]=Cg(Cg({},w[S]),y[S]):b[S]=w[S];return b}function v(y,w){if(!y.args||y.args.length===0)return y;y.args=m(y,w);for(var b=0;b<y.args.length;b++)v(y.args[b],w)}function m(y,w){var b,S=[],$=function D(O){for(var A=0;A<O.args.length;A++){var T=O.args[A];bn(T)&&b===T.op?D(T):S.push(T)}};return f(y,w)?(b=y.op,$(y),S):y.args}function h(y,w){if(!(!y.args||y.args.length===0)){for(var b=x(y),S=y.args.length,$=0;$<S;$++)h(y.args[$],w);if(S>2&&f(y,w)){for(var D=y.args.pop();y.args.length>0;)D=b([y.args.pop(),D]);y.args=D.args}}}function g(y,w){if(!(!y.args||y.args.length===0)){for(var b=x(y),S=y.args.length,$=0;$<S;$++)g(y.args[$],w);if(S>2&&f(y,w)){for(var D=y.args.shift();y.args.length>0;)D=b([D,y.args.shift()]);y.args=D.args}}}function x(y){return bn(y)?function(w){try{return new n(y.op,y.fn,w,y.implicit)}catch(b){return console.error(b),[]}}:function(w){return new t(new r(y.name),w)}}return{createMakeNodeFunction:x,hasProperty:c,isCommutative:d,isAssociative:f,mergeContext:p,flatten:v,allChildren:m,unflattenr:h,unflattenl:g,defaultContext:l,realContext:s,positiveContext:u}}),O8e="simplify",T8e=["config","typed","parse","add","subtract","multiply","divide","pow","isZero","equal","resolve","simplifyConstant","simplifyCore","?fraction","?bignumber","mathWithTransform","matrix","AccessorNode","ArrayNode","ConstantNode","FunctionNode","IndexNode","ObjectNode","OperatorNode","ParenthesisNode","SymbolNode"],M8e=se(O8e,T8e,e=>{var{config:t,typed:n,parse:r,add:o,subtract:a,multiply:i,divide:l,pow:s,isZero:u,equal:c,resolve:d,simplifyConstant:f,simplifyCore:p,fraction:v,bignumber:m,mathWithTransform:h,matrix:g,AccessorNode:x,ArrayNode:y,ConstantNode:w,FunctionNode:b,IndexNode:S,ObjectNode:$,OperatorNode:D,ParenthesisNode:O,SymbolNode:A}=e,{hasProperty:T,isCommutative:M,isAssociative:B,mergeContext:F,flatten:P,unflattenr:I,unflattenl:N,createMakeNodeFunction:R,defaultContext:_,realContext:L,positiveContext:k}=tS({FunctionNode:b,OperatorNode:D,SymbolNode:A});n.addConversion({from:"Object",to:"Map",convert:ns});var H=n("simplify",{Node:ee,"Node, Map":(Y,ae)=>ee(Y,!1,ae),"Node, Map, Object":(Y,ae,ce)=>ee(Y,!1,ae,ce),"Node, Array":ee,"Node, Array, Map":ee,"Node, Array, Map, Object":ee});n.removeConversion({from:"Object",to:"Map",convert:ns}),H.defaultContext=_,H.realContext=L,H.positiveContext=k;function V(Y){return Y.transform(function(ae,ce,Ce){return Vo(ae)?V(ae.content):ae})}var U={true:!0,false:!0,e:!0,i:!0,Infinity:!0,LN2:!0,LN10:!0,LOG2E:!0,LOG10E:!0,NaN:!0,phi:!0,pi:!0,SQRT1_2:!0,SQRT2:!0,tau:!0};H.rules=[p,{l:"log(e)",r:"1"},{s:"n-n1 -> n+-n1",assuming:{subtract:{total:!0}}},{s:"n-n -> 0",assuming:{subtract:{total:!1}}},{s:"-(cl*v) -> v * (-cl)",assuming:{multiply:{commutative:!0},subtract:{total:!0}}},{s:"-(cl*v) -> (-cl) * v",assuming:{multiply:{commutative:!1},subtract:{total:!0}}},{s:"-(v*cl) -> v * (-cl)",assuming:{multiply:{commutative:!1},subtract:{total:!0}}},{l:"-(n1/n2)",r:"-n1/n2"},{l:"-v",r:"v * (-1)"},{l:"(n1 + n2)*(-1)",r:"n1*(-1) + n2*(-1)",repeat:!0},{l:"n/n1^n2",r:"n*n1^-n2"},{l:"n/n1",r:"n*n1^-1"},{s:"(n1*n2)^n3 -> n1^n3 * n2^n3",assuming:{multiply:{commutative:!0}}},{s:"(n1*n2)^(-1) -> n2^(-1) * n1^(-1)",assuming:{multiply:{commutative:!1}}},{s:"(n ^ n1) ^ n2 -> n ^ (n1 * n2)",assuming:{divide:{total:!0}}},{l:" vd * ( vd * n1 + n2)",r:"vd^2 * n1 + vd * n2"},{s:" vd * (vd^n4 * n1 + n2) -> vd^(1+n4) * n1 + vd * n2",assuming:{divide:{total:!0}}},{s:"vd^n3 * ( vd * n1 + n2) -> vd^(n3+1) * n1 + vd^n3 * n2",assuming:{divide:{total:!0}}},{s:"vd^n3 * (vd^n4 * n1 + n2) -> vd^(n3+n4) * n1 + vd^n3 * n2",assuming:{divide:{total:!0}}},{l:"n*n",r:"n^2"},{s:"n * n^n1 -> n^(n1+1)",assuming:{divide:{total:!0}}},{s:"n^n1 * n^n2 -> n^(n1+n2)",assuming:{divide:{total:!0}}},f,{s:"n+n -> 2*n",assuming:{add:{total:!0}}},{l:"n+-n",r:"0"},{l:"vd*n + vd",r:"vd*(n+1)"},{l:"n3*n1 + n3*n2",r:"n3*(n1+n2)"},{l:"n3^(-n4)*n1 + n3 * n2",r:"n3^(-n4)*(n1 + n3^(n4+1) *n2)"},{l:"n3^(-n4)*n1 + n3^n5 * n2",r:"n3^(-n4)*(n1 + n3^(n4+n5)*n2)"},{s:"n*vd + vd -> (n+1)*vd",assuming:{multiply:{commutative:!1}}},{s:"vd + n*vd -> (1+n)*vd",assuming:{multiply:{commutative:!1}}},{s:"n1*n3 + n2*n3 -> (n1+n2)*n3",assuming:{multiply:{commutative:!1}}},{s:"n^n1 * n -> n^(n1+1)",assuming:{divide:{total:!0},multiply:{commutative:!1}}},{s:"n1*n3^(-n4) + n2 * n3 -> (n1 + n2*n3^(n4 + 1))*n3^(-n4)",assuming:{multiply:{commutative:!1}}},{s:"n1*n3^(-n4) + n2 * n3^n5 -> (n1 + n2*n3^(n4 + n5))*n3^(-n4)",assuming:{multiply:{commutative:!1}}},{l:"n*cd + cd",r:"(n+1)*cd"},{s:"cd*n + cd -> cd*(n+1)",assuming:{multiply:{commutative:!1}}},{s:"cd + cd*n -> cd*(1+n)",assuming:{multiply:{commutative:!1}}},f,{s:"(-n)*n1 -> -(n*n1)",assuming:{subtract:{total:!0}}},{s:"n1*(-n) -> -(n1*n)",assuming:{subtract:{total:!0},multiply:{commutative:!1}}},{s:"ce+ve -> ve+ce",assuming:{add:{commutative:!0}},imposeContext:{add:{commutative:!1}}},{s:"vd*cd -> cd*vd",assuming:{multiply:{commutative:!0}},imposeContext:{multiply:{commutative:!1}}},{l:"n+-n1",r:"n-n1"},{s:"n*(n1^-1) -> n/n1",assuming:{multiply:{commutative:!0}}},{s:"n*n1^-n2 -> n/n1^n2",assuming:{multiply:{commutative:!0}}},{s:"n^-1 -> 1/n",assuming:{multiply:{commutative:!0}}},{l:"n^1",r:"n"},{s:"n*(n1/n2) -> (n*n1)/n2",assuming:{multiply:{associative:!0}}},{s:"n-(n1+n2) -> n-n1-n2",assuming:{addition:{associative:!0,commutative:!0}}},{l:"1*n",r:"n",imposeContext:{multiply:{commutative:!0}}},{s:"n1/(n2/n3) -> (n1*n3)/n2",assuming:{multiply:{associative:!0}}},{l:"n1/(-n2)",r:"-n1/n2"}];function q(Y,ae){var ce={};if(Y.s){var Ce=Y.s.split("->");if(Ce.length===2)ce.l=Ce[0],ce.r=Ce[1];else throw SyntaxError("Could not parse rule: "+Y.s)}else ce.l=Y.l,ce.r=Y.r;ce.l=V(r(ce.l)),ce.r=V(r(ce.r));for(var ye of["imposeContext","repeat","assuming"])ye in Y&&(ce[ye]=Y[ye]);if(Y.evaluate&&(ce.evaluate=r(Y.evaluate)),B(ce.l,ae)){var J=!M(ce.l,ae),ne;J&&(ne=re());var oe=R(ce.l),ie=re();ce.expanded={},ce.expanded.l=oe([ce.l,ie]),P(ce.expanded.l,ae),I(ce.expanded.l,ae),ce.expanded.r=oe([ce.r,ie]),J&&(ce.expandedNC1={},ce.expandedNC1.l=oe([ne,ce.l]),ce.expandedNC1.r=oe([ne,ce.r]),ce.expandedNC2={},ce.expandedNC2.l=oe([ne,ce.expanded.l]),ce.expandedNC2.r=oe([ne,ce.expanded.r]))}return ce}function K(Y,ae){for(var ce=[],Ce=0;Ce<Y.length;Ce++){var ye=Y[Ce],J=void 0,ne=typeof ye;switch(ne){case"string":ye={s:ye};case"object":J=q(ye,ae);break;case"function":J=ye;break;default:throw TypeError("Unsupported type of rule: "+ne)}ce.push(J)}return ce}var X=0;function re(){return new A("_p"+X++)}function ee(Y,ae){var ce=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ws(),Ce=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},ye=Ce.consoleDebug;ae=K(ae||H.rules,Ce.context);var J=d(Y,ce);J=V(J);for(var ne={},oe=J.toString({parenthesis:"all"});!ne[oe];){ne[oe]=!0,X=0;var ie=oe;ye&&console.log("Working on: ",oe);for(var ve=0;ve<ae.length;ve++){var we="";if(typeof ae[ve]=="function"?(J=ae[ve](J,Ce),ye&&(we=ae[ve].name)):(P(J,Ce.context),J=le(J,ae[ve],Ce.context),ye&&(we="".concat(ae[ve].l.toString()," -> ").concat(ae[ve].r.toString()))),ye){var $e=J.toString({parenthesis:"all"});$e!==ie&&(console.log("Applying",we,"produced",$e),ie=$e)}N(J,Ce.context)}oe=J.toString({parenthesis:"all"})}return J}function G(Y,ae,ce){var Ce=Y;if(Y)for(var ye=0;ye<Y.length;++ye){var J=le(Y[ye],ae,ce);J!==Y[ye]&&(Ce===Y&&(Ce=Y.slice()),Ce[ye]=J)}return Ce}function le(Y,ae,ce){if(ae.assuming){for(var Ce in ae.assuming)for(var ye in ae.assuming[Ce])if(T(Ce,ye,ce)!==ae.assuming[Ce][ye])return Y}var J=F(ae.imposeContext,ce),ne=Y;if(ne instanceof D||ne instanceof b){var oe=G(ne.args,ae,ce);oe!==ne.args&&(ne=ne.clone(),ne.args=oe)}else if(ne instanceof O){if(ne.content){var ie=le(ne.content,ae,ce);ie!==ne.content&&(ne=new O(ie))}}else if(ne instanceof y){var ve=G(ne.items,ae,ce);ve!==ne.items&&(ne=new y(ve))}else if(ne instanceof x){var we=ne.object;ne.object&&(we=le(ne.object,ae,ce));var $e=ne.index;ne.index&&($e=le(ne.index,ae,ce)),(we!==ne.object||$e!==ne.index)&&(ne=new x(we,$e))}else if(ne instanceof S){var Ae=G(ne.dimensions,ae,ce);Ae!==ne.dimensions&&(ne=new S(Ae))}else if(ne instanceof $){var xe=!1,Ee={};for(var Te in ne.properties)Ee[Te]=le(ne.properties[Te],ae,ce),Ee[Te]!==ne.properties[Te]&&(xe=!0);xe&&(ne=new $(Ee))}var Me=ae.r,ze=te(ae.l,ne,J)[0];if(!ze&&ae.expanded&&(Me=ae.expanded.r,ze=te(ae.expanded.l,ne,J)[0]),!ze&&ae.expandedNC1&&(Me=ae.expandedNC1.r,ze=te(ae.expandedNC1.l,ne,J)[0],ze||(Me=ae.expandedNC2.r,ze=te(ae.expandedNC2.l,ne,J)[0])),ze){var Be=ne.implicit;ne=Me.clone(),Be&&"implicit"in Me&&(ne.implicit=!0),ne=ne.transform(function(je){return je.isSymbolNode&&Ke(ze.placeholders,je.name)?ze.placeholders[je.name].clone():je})}return ae.repeat&&ne!==Y&&(ne=le(ne,ae,ce)),ne}function ue(Y,ae){var ce=[],Ce,ye,J=R(Y);if(M(Y,ae))for(var ne=0;ne<Y.args.length;ne++)ye=Y.args.slice(0),ye.splice(ne,1),Ce=ye.length===1?ye[0]:J(ye),ce.push(J([Y.args[ne],Ce]));else for(var oe=1;oe<Y.args.length;oe++){var ie=Y.args[0];oe>1&&(ie=J(Y.args.slice(0,oe))),ye=Y.args.slice(oe),Ce=ye.length===1?ye[0]:J(ye),ce.push(J([ie,Ce]))}return ce}function me(Y,ae){var ce={placeholders:{}};if(!Y.placeholders&&!ae.placeholders)return ce;if(Y.placeholders){if(!ae.placeholders)return Y}else return ae;for(var Ce in Y.placeholders)if(Ke(Y.placeholders,Ce)&&(ce.placeholders[Ce]=Y.placeholders[Ce],Ke(ae.placeholders,Ce)&&!de(Y.placeholders[Ce],ae.placeholders[Ce])))return null;for(var ye in ae.placeholders)Ke(ae.placeholders,ye)&&(ce.placeholders[ye]=ae.placeholders[ye]);return ce}function Se(Y,ae){var ce=[];if(Y.length===0||ae.length===0)return ce;for(var Ce,ye=0;ye<Y.length;ye++)for(var J=0;J<ae.length;J++)Ce=me(Y[ye],ae[J]),Ce&&ce.push(Ce);return ce}function Q(Y){if(Y.length===0)return Y;for(var ae=Y.reduce(Se),ce=[],Ce={},ye=0;ye<ae.length;ye++){var J=JSON.stringify(ae[ye]);Ce[J]||(Ce[J]=!0,ce.push(ae[ye]))}return ce}function te(Y,ae,ce,Ce){var ye=[{placeholders:{}}];if(Y instanceof D&&ae instanceof D||Y instanceof b&&ae instanceof b){if(Y instanceof D){if(Y.op!==ae.op||Y.fn!==ae.fn)return[]}else if(Y instanceof b&&Y.name!==ae.name)return[];if(ae.args.length===1&&Y.args.length===1||!B(ae,ce)&&ae.args.length===Y.args.length||Ce){for(var J=[],ne=0;ne<Y.args.length;ne++){var oe=te(Y.args[ne],ae.args[ne],ce);if(oe.length===0)break;J.push(oe)}if(J.length!==Y.args.length){if(!M(ae,ce)||Y.args.length===1)return[];if(Y.args.length>2)throw new Error("permuting >2 commutative non-associative rule arguments not yet implemented");var ie=te(Y.args[0],ae.args[1],ce);if(ie.length===0)return[];var ve=te(Y.args[1],ae.args[0],ce);if(ve.length===0)return[];J=[ie,ve]}ye=Q(J)}else if(ae.args.length>=2&&Y.args.length===2){for(var we=ue(ae,ce),$e=[],Ae=0;Ae<we.length;Ae++){var xe=te(Y,we[Ae],ce,!0);$e=$e.concat(xe)}return $e}else{if(Y.args.length>2)throw Error("Unexpected non-binary associative function: "+Y.toString());return[]}}else if(Y instanceof A){if(Y.name.length===0)throw new Error("Symbol in rule has 0 length...!?");if(U[Y.name]){if(Y.name!==ae.name)return[]}else switch(Y.name[1]>="a"&&Y.name[1]<="z"?Y.name.substring(0,2):Y.name[0]){case"n":case"_p":ye[0].placeholders[Y.name]=ae;break;case"c":case"cl":if(Rt(ae))ye[0].placeholders[Y.name]=ae;else return[];break;case"v":if(!Rt(ae))ye[0].placeholders[Y.name]=ae;else return[];break;case"vl":if(Pn(ae))ye[0].placeholders[Y.name]=ae;else return[];break;case"cd":if(pT(ae))ye[0].placeholders[Y.name]=ae;else return[];break;case"vd":if(!pT(ae))ye[0].placeholders[Y.name]=ae;else return[];break;case"ce":if(Qp(ae))ye[0].placeholders[Y.name]=ae;else return[];break;case"ve":if(!Qp(ae))ye[0].placeholders[Y.name]=ae;else return[];break;default:throw new Error("Invalid symbol in rule: "+Y.name)}}else if(Y instanceof w){if(!c(Y.value,ae.value))return[]}else return[];return ye}function de(Y,ae){if(Y instanceof w&&ae instanceof w){if(!c(Y.value,ae.value))return!1}else if(Y instanceof A&&ae instanceof A){if(Y.name!==ae.name)return!1}else if(Y instanceof D&&ae instanceof D||Y instanceof b&&ae instanceof b){if(Y instanceof D){if(Y.op!==ae.op||Y.fn!==ae.fn)return!1}else if(Y instanceof b&&Y.name!==ae.name)return!1;if(Y.args.length!==ae.args.length)return!1;for(var ce=0;ce<Y.args.length;ce++)if(!de(Y.args[ce],ae.args[ce]))return!1}else return!1;return!0}return H}),N8e="simplifyConstant",P8e=["typed","config","mathWithTransform","matrix","?fraction","?bignumber","AccessorNode","ArrayNode","ConstantNode","FunctionNode","IndexNode","ObjectNode","OperatorNode","SymbolNode"],I8e=se(N8e,P8e,e=>{var{typed:t,config:n,mathWithTransform:r,matrix:o,fraction:a,bignumber:i,AccessorNode:l,ArrayNode:s,ConstantNode:u,FunctionNode:c,IndexNode:d,ObjectNode:f,OperatorNode:p,SymbolNode:v}=e,{isCommutative:m,isAssociative:h,allChildren:g,createMakeNodeFunction:x}=tS({FunctionNode:c,OperatorNode:p,SymbolNode:v}),y=t("simplifyConstant",{Node:P=>$(F(P,{})),"Node, Object":function(I,N){return $(F(I,N))}});function w(P){return ul(P)?P.valueOf():P instanceof Array?P.map(w):mt(P)?o(w(P.valueOf())):P}function b(P,I,N){try{return r[P].apply(null,I)}catch{return I=I.map(w),O(r[P].apply(null,I),N)}}var S=t({Fraction:T,number:function(I){return I<0?A(new u(-I)):new u(I)},BigNumber:function(I){return I<0?A(new u(-I)):new u(I)},Complex:function(I){throw new Error("Cannot convert Complex number to Node")},string:function(I){return new u(I)},Matrix:function(I){return new s(I.valueOf().map(N=>S(N)))}});function $(P){return Kt(P)?P:S(P)}function D(P,I){var N=I&&I.exactFractions!==!1;if(N&&isFinite(P)&&a){var R=a(P),_=I&&typeof I.fractionsLimit=="number"?I.fractionsLimit:1/0;if(R.valueOf()===P&&R.n<_&&R.d<_)return R}return P}var O=t({"string, Object":function(I,N){if(n.number==="BigNumber")return i===void 0&&Yw(),i(I);if(n.number==="Fraction")return a===void 0&&gB(),a(I);var R=parseFloat(I);return D(R,N)},"Fraction, Object":function(I,N){return I},"BigNumber, Object":function(I,N){return I},"number, Object":function(I,N){return D(I,N)},"Complex, Object":function(I,N){return I.im!==0?I:D(I.re,N)},"Matrix, Object":function(I,N){return o(D(I.valueOf()))},"Array, Object":function(I,N){return I.map(D)}});function A(P){return new p("-","unaryMinus",[P])}function T(P){var I,N=P.s*P.n;return N<0?I=new p("-","unaryMinus",[new u(-N)]):I=new u(N),P.d===1?I:new p("/","divide",[I,new u(P.d)])}function M(P,I,N){if(!cl(I))return new l($(P),$(I));if(Ir(P)||mt(P)){for(var R=Array.from(I.dimensions);R.length>0;)if(Rt(R[0])&&typeof R[0].value!="string"){var _=O(R.shift().value,N);Ir(P)?P=P.items[_-1]:(P=P.valueOf()[_-1],P instanceof Array&&(P=o(P)))}else if(R.length>1&&Rt(R[1])&&typeof R[1].value!="string"){var L=O(R[1].value,N),k=[],H=Ir(P)?P.items:P.valueOf();for(var V of H)if(Ir(V))k.push(V.items[L-1]);else if(mt(P))k.push(V[L-1]);else break;if(k.length===H.length)Ir(P)?P=new s(k):P=o(k),R.splice(1,1);else break}else break;return R.length===I.dimensions.length?new l($(P),I):R.length>0?(I=new d(R),new l($(P),I)):P}if(_c(P)&&I.dimensions.length===1&&Rt(I.dimensions[0])){var U=I.dimensions[0].value;return U in P.properties?P.properties[U]:new u}return new l($(P),I)}function B(P,I,N,R){var _=I.shift(),L=I.reduce((k,H)=>{if(!Kt(H)){var V=k.pop();if(Kt(V))return[V,H];try{return k.push(b(P,[V,H],R)),k}catch{k.push(V)}}k.push($(k.pop()));var U=k.length===1?k[0]:N(k);return[N([U,$(H)])]},[_]);return L.length===1?L[0]:N([L[0],S(L[1])])}function F(P,I){switch(P.type){case"SymbolNode":return P;case"ConstantNode":switch(typeof P.value){case"number":return O(P.value,I);case"string":return P.value;default:if(!isNaN(P.value))return O(P.value,I)}return P;case"FunctionNode":if(r[P.name]&&r[P.name].rawArgs)return P;{var N=["add","multiply"];if(N.indexOf(P.name)===-1){var R=P.args.map(le=>F(le,I));if(!R.some(Kt))try{return b(P.name,R,I)}catch{}if(P.name==="size"&&R.length===1&&Ir(R[0])){for(var _=[],L=R[0];Ir(L);)_.push(L.items.length),L=L.items[0];return o(_)}return new c(P.name,R.map($))}}case"OperatorNode":{var k=P.fn.toString(),H,V,U=x(P);if(bn(P)&&P.isUnary())H=[F(P.args[0],I)],Kt(H[0])?V=U(H):V=b(k,H,I);else if(h(P,I.context))if(H=g(P,I.context),H=H.map(le=>F(le,I)),m(k,I.context)){for(var q=[],K=[],X=0;X<H.length;X++)Kt(H[X])?K.push(H[X]):q.push(H[X]);q.length>1?(V=B(k,q,U,I),K.unshift(V),V=B(k,K,U,I)):V=B(k,H,U,I)}else V=B(k,H,U,I);else H=P.args.map(le=>F(le,I)),V=B(k,H,U,I);return V}case"ParenthesisNode":return F(P.content,I);case"AccessorNode":return M(F(P.object,I),F(P.index,I),I);case"ArrayNode":{var re=P.items.map(le=>F(le,I));return re.some(Kt)?new s(re.map($)):o(re)}case"IndexNode":return new d(P.dimensions.map(le=>y(le,I)));case"ObjectNode":{var ee={};for(var G in P.properties)ee[G]=y(P.properties[G],I);return new f(ee)}case"AssignmentNode":case"BlockNode":case"FunctionAssignmentNode":case"RangeNode":case"ConditionalNode":default:throw new Error("Unimplemented node type in simplifyConstant: ".concat(P.type))}}return y}),vT="simplifyCore",_8e=["typed","parse","equal","isZero","add","subtract","multiply","divide","pow","AccessorNode","ArrayNode","ConstantNode","FunctionNode","IndexNode","ObjectNode","OperatorNode","ParenthesisNode","SymbolNode"],B8e=se(vT,_8e,e=>{var{typed:t,parse:n,equal:r,isZero:o,add:a,subtract:i,multiply:l,divide:s,pow:u,AccessorNode:c,ArrayNode:d,ConstantNode:f,FunctionNode:p,IndexNode:v,ObjectNode:m,OperatorNode:h,ParenthesisNode:g,SymbolNode:x}=e,y=new f(0),w=new f(1),b=new f(!0),S=new f(!1);function $(T){return bn(T)&&["and","not","or"].includes(T.op)}var{hasProperty:D,isCommutative:O}=tS({FunctionNode:p,OperatorNode:h,SymbolNode:x});function A(T){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},B=M?M.context:void 0;if(D(T,"trivial",B)){if(Sa(T)&&T.args.length===1)return A(T.args[0],M);var F=!1,P=0;if(T.forEach(K=>{++P,P===1&&(F=A(K,M))}),P===1)return F}var I=T;if(Sa(I)){var N=WDe(I.name);if(N){if(I.args.length>2&&D(I,"associative",B))for(;I.args.length>2;){var R=I.args.pop(),_=I.args.pop();I.args.push(new h(N,I.name,[R,_]))}I=new h(N,I.name,I.args)}else return new p(A(I.fn),I.args.map(K=>A(K,M)))}if(bn(I)&&I.isUnary()){var L=A(I.args[0],M);if(I.op==="~"&&bn(L)&&L.isUnary()&&L.op==="~"||I.op==="not"&&bn(L)&&L.isUnary()&&L.op==="not"&&$(L.args[0]))return L.args[0];var k=!0;if(I.op==="-"&&bn(L)&&(L.isBinary()&&L.fn==="subtract"&&(I=new h("-","subtract",[L.args[1],L.args[0]]),k=!1),L.isUnary()&&L.op==="-"))return L.args[0];if(k)return new h(I.op,I.fn,[L])}if(bn(I)&&I.isBinary()){var H=A(I.args[0],M),V=A(I.args[1],M);if(I.op==="+"){if(Rt(H)&&o(H.value))return V;if(Rt(V)&&o(V.value))return H;bn(V)&&V.isUnary()&&V.op==="-"&&(V=V.args[0],I=new h("-","subtract",[H,V]))}if(I.op==="-")return bn(V)&&V.isUnary()&&V.op==="-"?A(new h("+","add",[H,V.args[0]]),M):Rt(H)&&o(H.value)?A(new h("-","unaryMinus",[V])):Rt(V)&&o(V.value)?H:new h(I.op,I.fn,[H,V]);if(I.op==="*"){if(Rt(H)){if(o(H.value))return y;if(r(H.value,1))return V}if(Rt(V)){if(o(V.value))return y;if(r(V.value,1))return H;if(O(I,B))return new h(I.op,I.fn,[V,H],I.implicit)}return new h(I.op,I.fn,[H,V],I.implicit)}if(I.op==="/")return Rt(H)&&o(H.value)?y:Rt(V)&&r(V.value,1)?H:new h(I.op,I.fn,[H,V]);if(I.op==="^"&&Rt(V)){if(o(V.value))return w;if(r(V.value,1))return H}if(I.op==="and"){if(Rt(H))if(H.value){if($(V))return V}else return S;if(Rt(V))if(V.value){if($(H))return H}else return S}if(I.op==="or"){if(Rt(H)){if(H.value)return b;if($(V))return V}if(Rt(V)){if(V.value)return b;if($(H))return H}}return new h(I.op,I.fn,[H,V])}if(bn(I))return new h(I.op,I.fn,I.args.map(K=>A(K,M)));if(Ir(I))return new d(I.items.map(K=>A(K,M)));if(ii(I))return new c(A(I.object,M),A(I.index,M));if(cl(I))return new v(I.dimensions.map(K=>A(K,M)));if(_c(I)){var U={};for(var q in I.properties)U[q]=A(I.properties[q],M);return new m(U)}return I}return t(vT,{Node:A,"Node,Object":A})}),F8e="resolve",R8e=["typed","parse","ConstantNode","FunctionNode","OperatorNode","ParenthesisNode"],z8e=se(F8e,R8e,e=>{var{typed:t,parse:n,ConstantNode:r,FunctionNode:o,OperatorNode:a,ParenthesisNode:i}=e;function l(s,u){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:new Set;if(!u)return s;if(Pn(s)){if(c.has(s.name)){var d=Array.from(c).join(", ");throw new ReferenceError("recursive loop of variable definitions among {".concat(d,"}"))}var f=u.get(s.name);if(Kt(f)){var p=new Set(c);return p.add(s.name),l(f,u,p)}else return typeof f=="number"?n(String(f)):f!==void 0?new r(f):s}else if(bn(s)){var v=s.args.map(function(h){return l(h,u,c)});return new a(s.op,s.fn,v,s.implicit)}else{if(Vo(s))return new i(l(s.content,u,c));if(Sa(s)){var m=s.args.map(function(h){return l(h,u,c)});return new o(s.name,m)}}return s.map(h=>l(h,u,c))}return t("resolve",{Node:l,"Node, Map | null | undefined":l,"Node, Object":(s,u)=>l(s,ns(u)),"Array | Matrix":t.referToSelf(s=>u=>u.map(c=>s(c))),"Array | Matrix, null | undefined":t.referToSelf(s=>u=>u.map(c=>s(c))),"Array, Object":t.referTo("Array,Map",s=>(u,c)=>s(u,ns(c))),"Matrix, Object":t.referTo("Matrix,Map",s=>(u,c)=>s(u,ns(c))),"Array | Matrix, Map":t.referToSelf(s=>(u,c)=>u.map(d=>s(d,c)))})}),hT="symbolicEqual",L8e=["parse","simplify","typed","OperatorNode"],k8e=se(hT,L8e,e=>{var{parse:t,simplify:n,typed:r,OperatorNode:o}=e;function a(i,l){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u=new o("-","subtract",[i,l]),c=n(u,{},s);return Rt(c)&&!c.value}return r(hT,{"Node, Node":a,"Node, Node, Object":a})}),gT="derivative",H8e=["typed","config","parse","simplify","equal","isZero","numeric","ConstantNode","FunctionNode","OperatorNode","ParenthesisNode","SymbolNode"],j8e=se(gT,H8e,e=>{var{typed:t,config:n,parse:r,simplify:o,equal:a,isZero:i,numeric:l,ConstantNode:s,FunctionNode:u,OperatorNode:c,ParenthesisNode:d,SymbolNode:f}=e;function p(w,b){var S=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{simplify:!0},$={};h($,w,b.name);var D=g(w,$);return S.simplify?o(D):D}t.addConversion({from:"identifier",to:"SymbolNode",convert:r});var v=t(gT,{"Node, SymbolNode":p,"Node, SymbolNode, Object":p});t.removeConversion({from:"identifier",to:"SymbolNode",convert:r}),v._simplify=!0,v.toTex=function(w){return m.apply(null,w.args)};var m=t("_derivTex",{"Node, SymbolNode":function(b,S){return Rt(b)&&an(b.value)==="string"?m(r(b.value).toString(),S.toString(),1):m(b.toTex(),S.toString(),1)},"Node, ConstantNode":function(b,S){if(an(S.value)==="string")return m(b,r(S.value));throw new Error("The second parameter to 'derivative' is a non-string constant")},"Node, SymbolNode, ConstantNode":function(b,S,$){return m(b.toString(),S.name,$.value)},"string, string, number":function(b,S,$){var D;return $===1?D="{d\\over d"+S+"}":D="{d^{"+$+"}\\over d"+S+"^{"+$+"}}",D+"\\left[".concat(b,"\\right]")}}),h=t("constTag",{"Object, ConstantNode, string":function(b,S){return b[S]=!0,!0},"Object, SymbolNode, string":function(b,S,$){return S.name!==$?(b[S]=!0,!0):!1},"Object, ParenthesisNode, string":function(b,S,$){return h(b,S.content,$)},"Object, FunctionAssignmentNode, string":function(b,S,$){return S.params.indexOf($)===-1?(b[S]=!0,!0):h(b,S.expr,$)},"Object, FunctionNode | OperatorNode, string":function(b,S,$){if(S.args.length>0){for(var D=h(b,S.args[0],$),O=1;O<S.args.length;++O)D=h(b,S.args[O],$)&&D;if(D)return b[S]=!0,!0}return!1}}),g=t("_derivative",{"ConstantNode, Object":function(b){return y(0)},"SymbolNode, Object":function(b,S){return S[b]!==void 0?y(0):y(1)},"ParenthesisNode, Object":function(b,S){return new d(g(b.content,S))},"FunctionAssignmentNode, Object":function(b,S){return S[b]!==void 0?y(0):g(b.expr,S)},"FunctionNode, Object":function(b,S){if(b.args.length!==1&&x(b),S[b]!==void 0)return y(0);var $=b.args[0],D,O=!1,A=!1,T;switch(b.name){case"cbrt":O=!0,T=new c("*","multiply",[y(3),new c("^","pow",[$,new c("/","divide",[y(2),y(3)])])]);break;case"sqrt":case"nthRoot":if(b.args.length===1)O=!0,T=new c("*","multiply",[y(2),new u("sqrt",[$])]);else if(b.args.length===2)return D=new c("/","divide",[y(1),b.args[1]]),S[D]=S[b.args[1]],g(new c("^","pow",[$,D]),S);break;case"log10":D=y(10);case"log":if(!D&&b.args.length===1)T=$.clone(),O=!0;else if(b.args.length===1&&D||b.args.length===2&&S[b.args[1]]!==void 0)T=new c("*","multiply",[$.clone(),new u("log",[D||b.args[1]])]),O=!0;else if(b.args.length===2)return g(new c("/","divide",[new u("log",[$]),new u("log",[b.args[1]])]),S);break;case"pow":return S[D]=S[b.args[1]],g(new c("^","pow",[$,b.args[1]]),S);case"exp":T=new u("exp",[$.clone()]);break;case"sin":T=new u("cos",[$.clone()]);break;case"cos":T=new c("-","unaryMinus",[new u("sin",[$.clone()])]);break;case"tan":T=new c("^","pow",[new u("sec",[$.clone()]),y(2)]);break;case"sec":T=new c("*","multiply",[b,new u("tan",[$.clone()])]);break;case"csc":A=!0,T=new c("*","multiply",[b,new u("cot",[$.clone()])]);break;case"cot":A=!0,T=new c("^","pow",[new u("csc",[$.clone()]),y(2)]);break;case"asin":O=!0,T=new u("sqrt",[new c("-","subtract",[y(1),new c("^","pow",[$.clone(),y(2)])])]);break;case"acos":O=!0,A=!0,T=new u("sqrt",[new c("-","subtract",[y(1),new c("^","pow",[$.clone(),y(2)])])]);break;case"atan":O=!0,T=new c("+","add",[new c("^","pow",[$.clone(),y(2)]),y(1)]);break;case"asec":O=!0,T=new c("*","multiply",[new u("abs",[$.clone()]),new u("sqrt",[new c("-","subtract",[new c("^","pow",[$.clone(),y(2)]),y(1)])])]);break;case"acsc":O=!0,A=!0,T=new c("*","multiply",[new u("abs",[$.clone()]),new u("sqrt",[new c("-","subtract",[new c("^","pow",[$.clone(),y(2)]),y(1)])])]);break;case"acot":O=!0,A=!0,T=new c("+","add",[new c("^","pow",[$.clone(),y(2)]),y(1)]);break;case"sinh":T=new u("cosh",[$.clone()]);break;case"cosh":T=new u("sinh",[$.clone()]);break;case"tanh":T=new c("^","pow",[new u("sech",[$.clone()]),y(2)]);break;case"sech":A=!0,T=new c("*","multiply",[b,new u("tanh",[$.clone()])]);break;case"csch":A=!0,T=new c("*","multiply",[b,new u("coth",[$.clone()])]);break;case"coth":A=!0,T=new c("^","pow",[new u("csch",[$.clone()]),y(2)]);break;case"asinh":O=!0,T=new u("sqrt",[new c("+","add",[new c("^","pow",[$.clone(),y(2)]),y(1)])]);break;case"acosh":O=!0,T=new u("sqrt",[new c("-","subtract",[new c("^","pow",[$.clone(),y(2)]),y(1)])]);break;case"atanh":O=!0,T=new c("-","subtract",[y(1),new c("^","pow",[$.clone(),y(2)])]);break;case"asech":O=!0,A=!0,T=new c("*","multiply",[$.clone(),new u("sqrt",[new c("-","subtract",[y(1),new c("^","pow",[$.clone(),y(2)])])])]);break;case"acsch":O=!0,A=!0,T=new c("*","multiply",[new u("abs",[$.clone()]),new u("sqrt",[new c("+","add",[new c("^","pow",[$.clone(),y(2)]),y(1)])])]);break;case"acoth":O=!0,A=!0,T=new c("-","subtract",[y(1),new c("^","pow",[$.clone(),y(2)])]);break;case"abs":T=new c("/","divide",[new u(new f("abs"),[$.clone()]),$.clone()]);break;case"gamma":default:throw new Error('Function "'+b.name+'" is not supported by derivative, or a wrong number of arguments is passed')}var M,B;O?(M="/",B="divide"):(M="*",B="multiply");var F=g($,S);return A&&(F=new c("-","unaryMinus",[F])),new c(M,B,[F,T])},"OperatorNode, Object":function(b,S){if(S[b]!==void 0)return y(0);if(b.op==="+")return new c(b.op,b.fn,b.args.map(function(I){return g(I,S)}));if(b.op==="-"){if(b.isUnary())return new c(b.op,b.fn,[g(b.args[0],S)]);if(b.isBinary())return new c(b.op,b.fn,[g(b.args[0],S),g(b.args[1],S)])}if(b.op==="*"){var $=b.args.filter(function(I){return S[I]!==void 0});if($.length>0){var D=b.args.filter(function(I){return S[I]===void 0}),O=D.length===1?D[0]:new c("*","multiply",D),A=$.concat(g(O,S));return new c("*","multiply",A)}return new c("+","add",b.args.map(function(I){return new c("*","multiply",b.args.map(function(N){return N===I?g(N,S):N.clone()}))}))}if(b.op==="/"&&b.isBinary()){var T=b.args[0],M=b.args[1];return S[M]!==void 0?new c("/","divide",[g(T,S),M]):S[T]!==void 0?new c("*","multiply",[new c("-","unaryMinus",[T]),new c("/","divide",[g(M,S),new c("^","pow",[M.clone(),y(2)])])]):new c("/","divide",[new c("-","subtract",[new c("*","multiply",[g(T,S),M.clone()]),new c("*","multiply",[T.clone(),g(M,S)])]),new c("^","pow",[M.clone(),y(2)])])}if(b.op==="^"&&b.isBinary()){var B=b.args[0],F=b.args[1];if(S[B]!==void 0)return Rt(B)&&(i(B.value)||a(B.value,1))?y(0):new c("*","multiply",[b,new c("*","multiply",[new u("log",[B.clone()]),g(F.clone(),S)])]);if(S[F]!==void 0){if(Rt(F)){if(i(F.value))return y(0);if(a(F.value,1))return g(B,S)}var P=new c("^","pow",[B.clone(),new c("-","subtract",[F,y(1)])]);return new c("*","multiply",[F.clone(),new c("*","multiply",[g(B,S),P])])}return new c("*","multiply",[new c("^","pow",[B.clone(),F.clone()]),new c("+","add",[new c("*","multiply",[g(B,S),new c("/","divide",[F.clone(),B.clone()])]),new c("*","multiply",[g(F,S),new u("log",[B.clone()])])])])}throw new Error('Operator "'+b.op+'" is not supported by derivative, or a wrong number of arguments is passed')}});function x(w){if(!((w.name==="log"||w.name==="nthRoot"||w.name==="pow")&&w.args.length===2)){for(var b=0;b<w.args.length;++b)w.args[b]=y(0);throw w.compile().evaluate(),new Error("Expected TypeError, but none found")}}function y(w,b){return new s(l(w,b||n.number))}return v}),yT="rationalize",V8e=["config","typed","equal","isZero","add","subtract","multiply","divide","pow","parse","simplifyConstant","simplifyCore","simplify","?bignumber","?fraction","mathWithTransform","matrix","AccessorNode","ArrayNode","ConstantNode","FunctionNode","IndexNode","ObjectNode","OperatorNode","SymbolNode","ParenthesisNode"],W8e=se(yT,V8e,e=>{var{config:t,typed:n,equal:r,isZero:o,add:a,subtract:i,multiply:l,divide:s,pow:u,parse:c,simplifyConstant:d,simplifyCore:f,simplify:p,fraction:v,bignumber:m,mathWithTransform:h,matrix:g,AccessorNode:x,ArrayNode:y,ConstantNode:w,FunctionNode:b,IndexNode:S,ObjectNode:$,OperatorNode:D,SymbolNode:O,ParenthesisNode:A}=e;function T(I){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},R=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,_=B(),L=M(I,N,!0,_.firstRules),k=L.variables.length,H={exactFractions:!1},V={exactFractions:!0};if(I=L.expression,k>=1){I=F(I);var U,q,K=!0,X=!1;I=p(I,_.firstRules,{},H);for(var re;q=K?_.distrDivRules:_.sucDivRules,I=p(I,q,{},V),K=!K,re=I.toString(),re!==U;)X=!0,U=re;X&&(I=p(I,_.firstRulesAgain,{},H)),I=p(I,_.finalRules,{},H)}var ee=[],G={};return I.type==="OperatorNode"&&I.isBinary()&&I.op==="/"?(k===1&&(I.args[0]=P(I.args[0],ee),I.args[1]=P(I.args[1])),R&&(G.numerator=I.args[0],G.denominator=I.args[1])):(k===1&&(I=P(I,ee)),R&&(G.numerator=I,G.denominator=null)),R?(G.coefficients=ee,G.variables=L.variables,G.expression=I,G):I}return n(yT,{Node:T,"Node, boolean":(I,N)=>T(I,{},N),"Node, Object":T,"Node, Object, boolean":T});function M(I,N,R,_){var L=[],k=p(I,_,N,{exactFractions:!1});R=!!R;var H="+-*"+(R?"/":"");U(k);var V={};return V.expression=k,V.variables=L,V;function U(q){var K=q.type;if(K==="FunctionNode")throw new Error("There is an unsolved function call");if(K==="OperatorNode")if(q.op==="^"){if(q.args[1].type!=="ConstantNode"||!ot(parseFloat(q.args[1].value)))throw new Error("There is a non-integer exponent");U(q.args[0])}else{if(H.indexOf(q.op)===-1)throw new Error("Operator "+q.op+" invalid in polynomial expression");for(var X=0;X<q.args.length;X++)U(q.args[X])}else if(K==="SymbolNode"){var re=q.name,ee=L.indexOf(re);ee===-1&&L.push(re)}else if(K==="ParenthesisNode")U(q.content);else if(K!=="ConstantNode")throw new Error("type "+K+" is not allowed in polynomial expression")}}function B(){var I=[f,{l:"n+n",r:"2*n"},{l:"n+-n",r:"0"},d,{l:"n*(n1^-1)",r:"n/n1"},{l:"n*n1^-n2",r:"n/n1^n2"},{l:"n1^-1",r:"1/n1"},{l:"n*(n1/n2)",r:"(n*n1)/n2"},{l:"1*n",r:"n"}],N=[{l:"(-n1)/(-n2)",r:"n1/n2"},{l:"(-n1)*(-n2)",r:"n1*n2"},{l:"n1--n2",r:"n1+n2"},{l:"n1-n2",r:"n1+(-n2)"},{l:"(n1+n2)*n3",r:"(n1*n3 + n2*n3)"},{l:"n1*(n2+n3)",r:"(n1*n2+n1*n3)"},{l:"c1*n + c2*n",r:"(c1+c2)*n"},{l:"c1*n + n",r:"(c1+1)*n"},{l:"c1*n - c2*n",r:"(c1-c2)*n"},{l:"c1*n - n",r:"(c1-1)*n"},{l:"v/c",r:"(1/c)*v"},{l:"v/-c",r:"-(1/c)*v"},{l:"-v*-c",r:"c*v"},{l:"-v*c",r:"-c*v"},{l:"v*-c",r:"-c*v"},{l:"v*c",r:"c*v"},{l:"-(-n1*n2)",r:"(n1*n2)"},{l:"-(n1*n2)",r:"(-n1*n2)"},{l:"-(-n1+n2)",r:"(n1-n2)"},{l:"-(n1+n2)",r:"(-n1-n2)"},{l:"(n1^n2)^n3",r:"(n1^(n2*n3))"},{l:"-(-n1/n2)",r:"(n1/n2)"},{l:"-(n1/n2)",r:"(-n1/n2)"}],R=[{l:"(n1/n2 + n3/n4)",r:"((n1*n4 + n3*n2)/(n2*n4))"},{l:"(n1/n2 + n3)",r:"((n1 + n3*n2)/n2)"},{l:"(n1 + n2/n3)",r:"((n1*n3 + n2)/n3)"}],_=[{l:"(n1/(n2/n3))",r:"((n1*n3)/n2)"},{l:"(n1/n2/n3)",r:"(n1/(n2*n3))"}],L={};return L.firstRules=I.concat(N,_),L.distrDivRules=R,L.sucDivRules=_,L.firstRulesAgain=I.concat(N),L.finalRules=[f,{l:"n*-n",r:"-n^2"},{l:"n*n",r:"n^2"},d,{l:"n*-n^n1",r:"-n^(n1+1)"},{l:"n*n^n1",r:"n^(n1+1)"},{l:"n^n1*-n^n2",r:"-n^(n1+n2)"},{l:"n^n1*n^n2",r:"n^(n1+n2)"},{l:"n^n1*-n",r:"-n^(n1+1)"},{l:"n^n1*n",r:"n^(n1+1)"},{l:"n^n1/-n",r:"-n^(n1-1)"},{l:"n^n1/n",r:"n^(n1-1)"},{l:"n/-n^n1",r:"-n^(1-n1)"},{l:"n/n^n1",r:"n^(1-n1)"},{l:"n^n1/-n^n2",r:"n^(n1-n2)"},{l:"n^n1/n^n2",r:"n^(n1-n2)"},{l:"n1+(-n2*n3)",r:"n1-n2*n3"},{l:"v*(-c)",r:"-c*v"},{l:"n1+-n2",r:"n1-n2"},{l:"v*c",r:"c*v"},{l:"(n1^n2)^n3",r:"(n1^(n2*n3))"}],L}function F(I,N,R){var _=I.type,L=arguments.length>1;if(_==="OperatorNode"&&I.isBinary()){var k=!1,H;if(I.op==="^"&&(I.args[0].type==="ParenthesisNode"||I.args[0].type==="OperatorNode")&&I.args[1].type==="ConstantNode"&&(H=parseFloat(I.args[1].value),k=H>=2&&ot(H)),k){if(H>2){var V=I.args[0],U=new D("^","pow",[I.args[0].cloneDeep(),new w(H-1)]);I=new D("*","multiply",[V,U])}else I=new D("*","multiply",[I.args[0],I.args[0].cloneDeep()]);L&&(R==="content"?N.content=I:N.args[R]=I)}}if(_==="ParenthesisNode")F(I.content,I,"content");else if(_!=="ConstantNode"&&_!=="SymbolNode")for(var q=0;q<I.args.length;q++)F(I.args[q],I,q);if(!L)return I}function P(I,N){N===void 0&&(N=[]),N[0]=0;var R={};R.cte=1,R.oper="+",R.fire="";var _=0,L="";re(I,null,R),_=N.length-1;for(var k=!0,H,V=_;V>=0;V--)if(N[V]!==0){var U=new w(k?N[V]:Math.abs(N[V])),q=N[V]<0?"-":"+";if(V>0){var K=new O(L);if(V>1){var X=new w(V);K=new D("^","pow",[K,X])}N[V]===-1&&k?U=new D("-","unaryMinus",[K]):Math.abs(N[V])===1?U=K:U=new D("*","multiply",[U,K])}k?H=U:q==="+"?H=new D("+","add",[H,U]):H=new D("-","subtract",[H,U]),k=!1}if(k)return new w(0);return H;function re(ee,G,le){var ue=ee.type;if(ue==="FunctionNode")throw new Error("There is an unsolved function call");if(ue==="OperatorNode"){if("+-*^".indexOf(ee.op)===-1)throw new Error("Operator "+ee.op+" invalid");if(G!==null){if((ee.fn==="unaryMinus"||ee.fn==="pow")&&G.fn!=="add"&&G.fn!=="subtract"&&G.fn!=="multiply")throw new Error("Invalid "+ee.op+" placing");if((ee.fn==="subtract"||ee.fn==="add"||ee.fn==="multiply")&&G.fn!=="add"&&G.fn!=="subtract")throw new Error("Invalid "+ee.op+" placing");if((ee.fn==="subtract"||ee.fn==="add"||ee.fn==="unaryMinus")&&le.noFil!==0)throw new Error("Invalid "+ee.op+" placing")}(ee.op==="^"||ee.op==="*")&&(le.fire=ee.op);for(var me=0;me<ee.args.length;me++)ee.fn==="unaryMinus"&&(le.oper="-"),(ee.op==="+"||ee.fn==="subtract")&&(le.fire="",le.cte=1,le.oper=me===0?"+":ee.op),le.noFil=me,re(ee.args[me],ee,le)}else if(ue==="SymbolNode"){if(ee.name!==L&&L!=="")throw new Error("There is more than one variable");if(L=ee.name,G===null){N[1]=1;return}if(G.op==="^"&&le.noFil!==0)throw new Error("In power the variable should be the first parameter");if(G.op==="*"&&le.noFil!==1)throw new Error("In multiply the variable should be the second parameter");(le.fire===""||le.fire==="*")&&(_<1&&(N[1]=0),N[1]+=le.cte*(le.oper==="+"?1:-1),_=Math.max(1,_))}else if(ue==="ConstantNode"){var Se=parseFloat(ee.value);if(G===null){N[0]=Se;return}if(G.op==="^"){if(le.noFil!==1)throw new Error("Constant cannot be powered");if(!ot(Se)||Se<=0)throw new Error("Non-integer exponent is not allowed");for(var Q=_+1;Q<Se;Q++)N[Q]=0;Se>_&&(N[Se]=0),N[Se]+=le.cte*(le.oper==="+"?1:-1),_=Math.max(Se,_);return}le.cte=Se,le.fire===""&&(N[0]+=le.cte*(le.oper==="+"?1:-1))}else throw new Error("Type "+ue+" is not allowed")}}}),U8e="reviver",K8e=["classes"],q8e=se(U8e,K8e,e=>{var{classes:t}=e;return function(r,o){var a=t[o&&o.mathjs];return a&&typeof a.fromJSON=="function"?a.fromJSON(o):o}}),G8e="replacer",X8e=[],Y8e=se(G8e,X8e,()=>function(t,n){return typeof n=="number"&&(!isFinite(n)||isNaN(n))?{mathjs:"number",value:String(n)}:n}),Z8e="11.8.0",J8e=se("true",[],()=>!0),Q8e=se("false",[],()=>!1),e6e=se("null",[],()=>null),t6e=jr("Infinity",["config","?BigNumber"],e=>{var{config:t,BigNumber:n}=e;return t.number==="BigNumber"?new n(1/0):1/0}),n6e=jr("NaN",["config","?BigNumber"],e=>{var{config:t,BigNumber:n}=e;return t.number==="BigNumber"?new n(NaN):NaN}),r6e=jr("pi",["config","?BigNumber"],e=>{var{config:t,BigNumber:n}=e;return t.number==="BigNumber"?Qw(n):Twe}),o6e=jr("tau",["config","?BigNumber"],e=>{var{config:t,BigNumber:n}=e;return t.number==="BigNumber"?GEe(n):Mwe}),a6e=jr("e",["config","?BigNumber"],e=>{var{config:t,BigNumber:n}=e;return t.number==="BigNumber"?KEe(n):Nwe}),i6e=jr("phi",["config","?BigNumber"],e=>{var{config:t,BigNumber:n}=e;return t.number==="BigNumber"?qEe(n):Pwe}),l6e=jr("LN2",["config","?BigNumber"],e=>{var{config:t,BigNumber:n}=e;return t.number==="BigNumber"?new n(2).ln():Math.LN2}),s6e=jr("LN10",["config","?BigNumber"],e=>{var{config:t,BigNumber:n}=e;return t.number==="BigNumber"?new n(10).ln():Math.LN10}),u6e=jr("LOG2E",["config","?BigNumber"],e=>{var{config:t,BigNumber:n}=e;return t.number==="BigNumber"?new n(1).div(new n(2).ln()):Math.LOG2E}),c6e=jr("LOG10E",["config","?BigNumber"],e=>{var{config:t,BigNumber:n}=e;return t.number==="BigNumber"?new n(1).div(new n(10).ln()):Math.LOG10E}),d6e=jr("SQRT1_2",["config","?BigNumber"],e=>{var{config:t,BigNumber:n}=e;return t.number==="BigNumber"?new n("0.5").sqrt():Math.SQRT1_2}),f6e=jr("SQRT2",["config","?BigNumber"],e=>{var{config:t,BigNumber:n}=e;return t.number==="BigNumber"?new n(2).sqrt():Math.SQRT2}),p6e=jr("i",["Complex"],e=>{var{Complex:t}=e;return t.I}),m6e=se("PI",["pi"],e=>{var{pi:t}=e;return t}),v6e=se("E",["e"],e=>{var{e:t}=e;return t}),h6e=se("version",[],()=>Z8e);function jr(e,t,n){return se(e,t,n,{recreateOnConfigChange:!0})}var g6e=wt("speedOfLight","299792458","m s^-1"),y6e=wt("gravitationConstant","6.67430e-11","m^3 kg^-1 s^-2"),b6e=wt("planckConstant","6.62607015e-34","J s"),x6e=wt("reducedPlanckConstant","1.0545718176461565e-34","J s"),w6e=wt("magneticConstant","1.25663706212e-6","N A^-2"),S6e=wt("electricConstant","8.8541878128e-12","F m^-1"),C6e=wt("vacuumImpedance","376.730313667","ohm"),$6e=wt("coulomb","8.987551792261171e9","N m^2 C^-2"),E6e=wt("elementaryCharge","1.602176634e-19","C"),D6e=wt("bohrMagneton","9.2740100783e-24","J T^-1"),A6e=wt("conductanceQuantum","7.748091729863649e-5","S"),O6e=wt("inverseConductanceQuantum","12906.403729652257","ohm"),T6e=wt("magneticFluxQuantum","2.0678338484619295e-15","Wb"),M6e=wt("nuclearMagneton","5.0507837461e-27","J T^-1"),N6e=wt("klitzing","25812.807459304513","ohm"),P6e=wt("bohrRadius","5.29177210903e-11","m"),I6e=wt("classicalElectronRadius","2.8179403262e-15","m"),_6e=wt("electronMass","9.1093837015e-31","kg"),B6e=wt("fermiCoupling","1.1663787e-5","GeV^-2"),F6e=Hv("fineStructure",.0072973525693),R6e=wt("hartreeEnergy","4.3597447222071e-18","J"),z6e=wt("protonMass","1.67262192369e-27","kg"),L6e=wt("deuteronMass","3.3435830926e-27","kg"),k6e=wt("neutronMass","1.6749271613e-27","kg"),H6e=wt("quantumOfCirculation","3.6369475516e-4","m^2 s^-1"),j6e=wt("rydberg","10973731.568160","m^-1"),V6e=wt("thomsonCrossSection","6.6524587321e-29","m^2"),W6e=Hv("weakMixingAngle",.2229),U6e=Hv("efimovFactor",22.7),K6e=wt("atomicMass","1.66053906660e-27","kg"),q6e=wt("avogadro","6.02214076e23","mol^-1"),G6e=wt("boltzmann","1.380649e-23","J K^-1"),X6e=wt("faraday","96485.33212331001","C mol^-1"),Y6e=wt("firstRadiation","3.7417718521927573e-16","W m^2"),Z6e=wt("loschmidt","2.686780111798444e25","m^-3"),J6e=wt("gasConstant","8.31446261815324","J K^-1 mol^-1"),Q6e=wt("molarPlanckConstant","3.990312712893431e-10","J s mol^-1"),e5e=wt("molarVolume","0.022413969545014137","m^3 mol^-1"),t5e=Hv("sackurTetrode",-1.16487052358),n5e=wt("secondRadiation","0.014387768775039337","m K"),r5e=wt("stefanBoltzmann","5.67037441918443e-8","W m^-2 K^-4"),o5e=wt("wienDisplacement","2.897771955e-3","m K"),a5e=wt("molarMass","0.99999999965e-3","kg mol^-1"),i5e=wt("molarMassC12","11.9999999958e-3","kg mol^-1"),l5e=wt("gravity","9.80665","m s^-2"),s5e=wt("planckLength","1.616255e-35","m"),u5e=wt("planckMass","2.176435e-8","kg"),c5e=wt("planckTime","5.391245e-44","s"),d5e=wt("planckCharge","1.87554603778e-18","C"),f5e=wt("planckTemperature","1.416785e+32","K");function wt(e,t,n){var r=["config","Unit","BigNumber"];return se(e,r,o=>{var{config:a,Unit:i,BigNumber:l}=o,s=a.number==="BigNumber"?new l(t):parseFloat(t),u=new i(s,n);return u.fixPrefix=!0,u})}function Hv(e,t){var n=["config","BigNumber"];return se(e,n,r=>{var{config:o,BigNumber:a}=r;return o.number==="BigNumber"?new a(t):t})}var p5e="apply",m5e=["typed","isInteger"],v5e=se(p5e,m5e,e=>{var{typed:t,isInteger:n}=e,r=dB({typed:t,isInteger:n});return t("apply",{"...any":function(a){var i=a[1];Pt(i)?a[1]=i-1:Ot(i)&&(a[1]=i.minus(1));try{return r.apply(null,a)}catch(l){throw pr(l)}}})},{isTransformFunction:!0}),h5e="column",g5e=["typed","Index","matrix","range"],y5e=se(h5e,g5e,e=>{var{typed:t,Index:n,matrix:r,range:o}=e,a=vB({typed:t,Index:n,matrix:r,range:o});return t("column",{"...any":function(l){var s=l.length-1,u=l[s];Pt(u)&&(l[s]=u-1);try{return a.apply(null,l)}catch(c){throw pr(c)}}})},{isTransformFunction:!0});function nS(e,t,n){var r=e.filter(function(l){return Pn(l)&&!(l.name in t)&&!n.has(l.name)})[0];if(!r)throw new Error('No undefined variable found in inline expression "'+e+'"');var o=r.name,a=du(n),i=e.compile();return function(s){return a.set(o,s),i.evaluate(a)}}var b5e="filter",x5e=["typed"],w5e=se(b5e,x5e,e=>{var{typed:t}=e;function n(o,a,i){var l,s;return o[0]&&(l=o[0].compile().evaluate(i)),o[1]&&(Pn(o[1])||Ls(o[1])?s=o[1].compile().evaluate(i):s=nS(o[1],a,i)),r(l,s)}n.rawArgs=!0;var r=t("filter",{"Array, function":bT,"Matrix, function":function(a,i){return a.create(bT(a.toArray(),i))},"Array, RegExp":Fp,"Matrix, RegExp":function(a,i){return a.create(Fp(a.toArray(),i))}});return n},{isTransformFunction:!0});function bT(e,t){var n=mi(t);return Q_(e,function(r,o,a){return n===1?t(r):n===2?t(r,[o+1]):t(r,[o+1],a)})}var S5e="forEach",C5e=["typed"],$5e=se(S5e,C5e,e=>{var{typed:t}=e;function n(o,a,i){var l,s;return o[0]&&(l=o[0].compile().evaluate(i)),o[1]&&(Pn(o[1])||Ls(o[1])?s=o[1].compile().evaluate(i):s=nS(o[1],a,i)),r(l,s)}n.rawArgs=!0;var r=t("forEach",{"Array | Matrix, function":function(a,i){var l=mi(i),s=function u(c,d){Array.isArray(c)?Pv(c,function(f,p){u(f,d.concat(p+1))}):l===1?i(c):l===2?i(c,d):i(c,d,a)};s(a.valueOf(),[])}});return n},{isTransformFunction:!0}),E5e="index",D5e=["Index"],A5e=se(E5e,D5e,e=>{var{Index:t}=e;return function(){for(var r=[],o=0,a=arguments.length;o<a;o++){var i=arguments[o];if(Ov(i))i.start--,i.end-=i.step>0?0:2;else if(i&&i.isSet===!0)i=i.map(function(s){return s-1});else if(Ut(i)||mt(i))i=i.map(function(s){return s-1});else if(Pt(i))i--;else if(Ot(i))i=i.toNumber()-1;else if(typeof i!="string")throw new TypeError("Dimension must be an Array, Matrix, number, string, or Range");r[o]=i}var l=new t;return t.apply(l,r),l}},{isTransformFunction:!0}),O5e="map",T5e=["typed"],M5e=se(O5e,T5e,e=>{var{typed:t}=e;function n(o,a,i){var l,s;return o[0]&&(l=o[0].compile().evaluate(i)),o[1]&&(Pn(o[1])||Ls(o[1])?s=o[1].compile().evaluate(i):s=nS(o[1],a,i)),r(l,s)}n.rawArgs=!0;var r=t("map",{"Array, function":function(a,i){return xT(a,i,a)},"Matrix, function":function(a,i){return a.create(xT(a.valueOf(),i,a))}});return n},{isTransformFunction:!0});function xT(e,t,n){var r=mi(t);function o(a,i){return Array.isArray(a)?va(a,function(l,s){return o(l,i.concat(s+1))}):r===1?t(a):r===2?t(a,i):t(a,i,n)}return o(e,[])}function ml(e){if(e.length===2&&wo(e[0])){e=e.slice();var t=e[1];Pt(t)?e[1]=t-1:Ot(t)&&(e[1]=t.minus(1))}return e}var N5e="max",P5e=["typed","config","numeric","larger"],I5e=se(N5e,P5e,e=>{var{typed:t,config:n,numeric:r,larger:o}=e,a=SB({typed:t,config:n,numeric:r,larger:o});return t("max",{"...any":function(l){l=ml(l);try{return a.apply(null,l)}catch(s){throw pr(s)}}})},{isTransformFunction:!0}),_5e="mean",B5e=["typed","add","divide"],F5e=se(_5e,B5e,e=>{var{typed:t,add:n,divide:r}=e,o=NB({typed:t,add:n,divide:r});return t("mean",{"...any":function(i){i=ml(i);try{return o.apply(null,i)}catch(l){throw pr(l)}}})},{isTransformFunction:!0}),R5e="min",z5e=["typed","config","numeric","smaller"],L5e=se(R5e,z5e,e=>{var{typed:t,config:n,numeric:r,smaller:o}=e,a=CB({typed:t,config:n,numeric:r,smaller:o});return t("min",{"...any":function(l){l=ml(l);try{return a.apply(null,l)}catch(s){throw pr(s)}}})},{isTransformFunction:!0}),k5e="range",H5e=["typed","config","?matrix","?bignumber","smaller","smallerEq","larger","largerEq"],j5e=se(k5e,H5e,e=>{var{typed:t,config:n,matrix:r,bignumber:o,smaller:a,smallerEq:i,larger:l,largerEq:s}=e,u=bB({typed:t,config:n,matrix:r,bignumber:o,smaller:a,smallerEq:i,larger:l,largerEq:s});return t("range",{"...any":function(d){var f=d.length-1,p=d[f];return typeof p!="boolean"&&d.push(!0),u.apply(null,d)}})},{isTransformFunction:!0}),V5e="row",W5e=["typed","Index","matrix","range"],U5e=se(V5e,W5e,e=>{var{typed:t,Index:n,matrix:r,range:o}=e,a=xB({typed:t,Index:n,matrix:r,range:o});return t("row",{"...any":function(l){var s=l.length-1,u=l[s];Pt(u)&&(l[s]=u-1);try{return a.apply(null,l)}catch(c){throw pr(c)}}})},{isTransformFunction:!0}),K5e="subset",q5e=["typed","matrix"],G5e=se(K5e,q5e,e=>{var{typed:t,matrix:n}=e,r=wB({typed:t,matrix:n});return t("subset",{"...any":function(a){try{return r.apply(null,a)}catch(i){throw pr(i)}}})},{isTransformFunction:!0}),X5e="concat",Y5e=["typed","matrix","isInteger"],Z5e=se(X5e,Y5e,e=>{var{typed:t,matrix:n,isInteger:r}=e,o=pB({typed:t,matrix:n,isInteger:r});return t("concat",{"...any":function(i){var l=i.length-1,s=i[l];Pt(s)?i[l]=s-1:Ot(s)&&(i[l]=s.minus(1));try{return o.apply(null,i)}catch(u){throw pr(u)}}})},{isTransformFunction:!0}),wT="diff",J5e=["typed","matrix","subtract","number","bignumber"],Q5e=se(wT,J5e,e=>{var{typed:t,matrix:n,subtract:r,number:o,bignumber:a}=e,i=hB({typed:t,matrix:n,subtract:r,number:o,bignumber:a});return t(wT,{"...any":function(s){s=ml(s);try{return i.apply(null,s)}catch(u){throw pr(u)}}})},{isTransformFunction:!0}),e_e="std",t_e=["typed","map","sqrt","variance"],n_e=se(e_e,t_e,e=>{var{typed:t,map:n,sqrt:r,variance:o}=e,a=IB({typed:t,map:n,sqrt:r,variance:o});return t("std",{"...any":function(l){l=ml(l);try{return a.apply(null,l)}catch(s){throw pr(s)}}})},{isTransformFunction:!0}),ST="sum",r_e=["typed","config","add","numeric"],o_e=se(ST,r_e,e=>{var{typed:t,config:n,add:r,numeric:o}=e,a=TB({typed:t,config:n,add:r,numeric:o});return t(ST,{"...any":function(l){l=ml(l);try{return a.apply(null,l)}catch(s){throw pr(s)}}})},{isTransformFunction:!0}),CT="cumsum",a_e=["typed","add","unaryPlus"],i_e=se(CT,a_e,e=>{var{typed:t,add:n,unaryPlus:r}=e,o=MB({typed:t,add:n,unaryPlus:r});return t(CT,{"...any":function(i){if(i.length===2&&wo(i[0])){var l=i[1];Pt(l)?i[1]=l-1:Ot(l)&&(i[1]=l.minus(1))}try{return o.apply(null,i)}catch(s){throw pr(s)}}})},{isTransformFunction:!0}),$T="variance",l_e=["typed","add","subtract","multiply","divide","apply","isNaN"],s_e=se($T,l_e,e=>{var{typed:t,add:n,subtract:r,multiply:o,divide:a,apply:i,isNaN:l}=e,s=PB({typed:t,add:n,subtract:r,multiply:o,divide:a,apply:i,isNaN:l});return t($T,{"...any":function(c){c=ml(c);try{return s.apply(null,c)}catch(d){throw pr(d)}}})},{isTransformFunction:!0});const u_e=Object.freeze(Object.defineProperty({__proto__:null,createAbs:BSe,createAccessorNode:kDe,createAcos:a4e,createAcosh:l4e,createAcot:u4e,createAcoth:d4e,createAcsc:p4e,createAcsch:v4e,createAdd:$De,createAddScalar:LSe,createAnd:Z3e,createApply:dB,createApplyTransform:v5e,createArg:O$e,createArrayNode:jDe,createAsec:g4e,createAsech:b4e,createAsin:w4e,createAsinh:$4e,createAssignmentNode:KDe,createAtan:A4e,createAtan2:T4e,createAtanh:N4e,createAtomicMass:K6e,createAvogadro:q6e,createBellNumbers:b8e,createBigNumberClass:owe,createBignumber:pSe,createBin:o3e,createBitAnd:y$e,createBitNot:x$e,createBitOr:S$e,createBitXor:D$e,createBlockNode:GDe,createBohrMagneton:D6e,createBohrRadius:P6e,createBoltzmann:G6e,createBoolean:cSe,createCatalan:w8e,createCbrt:HSe,createCeil:YSe,createChain:VPe,createChainClass:yOe,createClassicalElectronRadius:I6e,createClone:$we,createColumn:vB,createColumnTransform:y5e,createCombinations:PIe,createCombinationsWithRep:_Ie,createCompare:Q3e,createCompareNatural:nEe,createCompareText:aEe,createCompile:AAe,createComplex:hSe,createComplexClass:swe,createComposition:C8e,createConcat:pB,createConcatTransform:Z5e,createConditionalNode:YDe,createConductanceQuantum:A6e,createConj:M$e,createConstantNode:oAe,createCos:I4e,createCosh:B4e,createCot:R4e,createCoth:L4e,createCoulomb:$6e,createCount:W$e,createCreateUnit:r4e,createCross:K$e,createCsc:H4e,createCsch:V4e,createCtranspose:z2e,createCube:JSe,createCumSum:MB,createCumSumTransform:i_e,createDeepEqual:$Ee,createDenseMatrixClass:Swe,createDerivative:j8e,createDet:UPe,createDeuteronMass:L6e,createDiag:G$e,createDiff:hB,createDiffTransform:Q5e,createDistance:vIe,createDivide:pIe,createDivideScalar:b3e,createDot:MDe,createDotDivide:I3e,createDotMultiply:d$e,createDotPow:N3e,createE:a6e,createEfimovFactor:U6e,createEigs:eIe,createElectricConstant:S6e,createElectronMass:_6e,createElementaryCharge:E6e,createEqual:lEe,createEqualScalar:Jwe,createEqualText:cEe,createErf:q2e,createEvaluate:TAe,createExp:eCe,createExpm:nIe,createExpm1:nCe,createFactorial:kIe,createFalse:Q8e,createFaraday:X6e,createFermiCoupling:B6e,createFft:j2e,createFibonacciHeapClass:jEe,createFilter:Z$e,createFilterTransform:w5e,createFineStructure:F6e,createFirstRadiation:Y6e,createFix:aCe,createFlatten:Q$e,createFloor:sCe,createForEach:t2e,createForEachTransform:$5e,createFormat:n3e,createFraction:bSe,createFractionClass:fwe,createFunctionAssignmentNode:iAe,createFunctionNode:CAe,createGamma:FIe,createGasConstant:J6e,createGcd:ECe,createGetMatrixDataType:o2e,createGravitationConstant:y6e,createGravity:l5e,createHartreeEnergy:R6e,createHasNumericValue:Hwe,createHelp:HPe,createHelpClass:vOe,createHex:s3e,createHypot:DDe,createI:p6e,createIdentity:i2e,createIfft:W2e,createIm:P$e,createImmutableDenseMatrixClass:FEe,createIndex:BDe,createIndexClass:LEe,createIndexNode:sAe,createIndexTransform:A5e,createInfinity:t6e,createIntersect:yIe,createInv:qPe,createInverseConductanceQuantum:O6e,createInvmod:l$e,createIsInteger:Dwe,createIsNaN:qwe,createIsNegative:Rwe,createIsNumeric:Lwe,createIsPositive:Vwe,createIsPrime:m3e,createIsZero:Uwe,createKldivergence:jIe,createKlitzing:N6e,createKron:s2e,createLN10:s6e,createLN2:l6e,createLOG10E:c6e,createLOG2E:u6e,createLarger:yEe,createLargerEq:wEe,createLcm:NCe,createLeafCount:E8e,createLeftShift:U3e,createLgamma:zIe,createLog:E3e,createLog10:ICe,createLog1p:A3e,createLog2:BCe,createLoschmidt:Z6e,createLsolve:B3e,createLsolveAll:L3e,createLup:FAe,createLusolve:cOe,createLyap:cIe,createMad:EIe,createMagneticConstant:w6e,createMagneticFluxQuantum:T6e,createMap:c2e,createMapTransform:M5e,createMatrix:wSe,createMatrixClass:ywe,createMatrixFromColumns:ASe,createMatrixFromFunction:CSe,createMatrixFromRows:ESe,createMax:SB,createMaxTransform:I5e,createMean:NB,createMeanTransform:F5e,createMedian:CIe,createMin:CB,createMinTransform:L5e,createMod:HCe,createMode:J2e,createMolarMass:a5e,createMolarMassC12:i5e,createMolarPlanckConstant:Q6e,createMolarVolume:e5e,createMultinomial:WIe,createMultiply:KCe,createMultiplyScalar:WCe,createNaN:n6e,createNeutronMass:k6e,createNode:zDe,createNorm:ODe,createNot:F$e,createNthRoot:GCe,createNthRoots:T3e,createNuclearMagneton:M6e,createNull:e6e,createNumber:iSe,createNumeric:g3e,createObjectNode:cAe,createOct:i3e,createOnes:v2e,createOperatorNode:fAe,createOr:z$e,createParenthesisNode:mAe,createParse:EAe,createParser:_Ae,createParserClass:PAe,createPartitionSelect:TEe,createPermutations:KIe,createPhi:i6e,createPi:r6e,createPickRandom:d8e,createPinv:XPe,createPlanckCharge:d5e,createPlanckConstant:b6e,createPlanckLength:s5e,createPlanckMass:u5e,createPlanckTemperature:f5e,createPlanckTime:c5e,createPolynomialRoot:fOe,createPow:w3e,createPrint:c3e,createProd:e3e,createProtonMass:z6e,createQr:zAe,createQuantileSeq:TIe,createQuantumOfCirculation:H6e,createRandom:p8e,createRandomInt:v8e,createRange:bB,createRangeClass:vwe,createRangeNode:hAe,createRangeTransform:j5e,createRationalize:W8e,createRe:_$e,createReducedPlanckConstant:x6e,createRelationalNode:yAe,createReplacer:Y8e,createReshape:y2e,createResize:w2e,createResolve:z8e,createResultSet:sxe,createReviver:q8e,createRightArithShift:q3e,createRightLogShift:X3e,createRotate:C2e,createRotationMatrix:E2e,createRound:C3e,createRow:xB,createRowTransform:U5e,createRydberg:j6e,createSQRT1_2:d6e,createSQRT2:f6e,createSackurTetrode:t5e,createSchur:sIe,createSec:U4e,createSech:q4e,createSecondRadiation:n5e,createSetCartesian:oDe,createSetDifference:iDe,createSetDistinct:sDe,createSetIntersect:cDe,createSetIsSubset:fDe,createSetMultiplicity:mDe,createSetPowerset:hDe,createSetSize:yDe,createSetSymDifference:xDe,createSetUnion:SDe,createSign:YCe,createSimplify:M8e,createSimplifyConstant:I8e,createSimplifyCore:B8e,createSin:X4e,createSinh:Z4e,createSize:O2e,createSlu:sOe,createSmaller:fEe,createSmallerEq:vEe,createSort:NEe,createSpaClass:UEe,createSparse:t4e,createSparseMatrixClass:tSe,createSpeedOfLight:g6e,createSplitUnit:TSe,createSqrt:QCe,createSqrtm:oIe,createSquare:t$e,createSqueeze:M2e,createStd:IB,createStdTransform:n_e,createStefanBoltzmann:r5e,createStirlingS2:g8e,createString:sSe,createSubset:wB,createSubsetTransform:G5e,createSubtract:r$e,createSum:TB,createSumTransform:o_e,createSylvester:iIe,createSymbolNode:wAe,createSymbolicEqual:k8e,createTan:Q4e,createTanh:nDe,createTau:o6e,createThomsonCrossSection:V6e,createTo:f3e,createTrace:IDe,createTranspose:F2e,createTrue:J8e,createTypeOf:Xwe,createTyped:oxe,createUnaryMinus:NSe,createUnaryPlus:ISe,createUnequal:DEe,createUnitClass:ZEe,createUnitFunction:QEe,createUppercaseE:v6e,createUppercasePi:m6e,createUsolve:R3e,createUsolveAll:H3e,createVacuumImpedance:C6e,createVariance:PB,createVarianceTransform:s_e,createVersion:h6e,createWeakMixingAngle:W6e,createWienDisplacement:o5e,createXgcd:a$e,createXor:k$e,createZeros:k2e},Symbol.toStringTag,{value:"Module"}));var c_e=u_e,em={},d_e={get exports(){return em},set exports(e){em=e}};function rS(){}rS.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var r=this;function o(){r.off(e,o),t.apply(n,arguments)}return o._=t,this.on(e,o,n)},emit:function(e){var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,o=n.length;for(r;r<o;r++)n[r].fn.apply(n[r].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),r=n[e],o=[];if(r&&t)for(var a=0,i=r.length;a<i;a++)r[a].fn!==t&&r[a].fn._!==t&&o.push(r[a]);return o.length?n[e]=o:delete n[e],this}};d_e.exports=rS;em.TinyEmitter=rS;function f_e(e){var t=new em;return e.on=t.on.bind(t),e.off=t.off.bind(t),e.once=t.once.bind(t),e.emit=t.emit.bind(t),e}function p_e(e,t,n,r){function o(h,g){var x=arguments.length;if(x!==1&&x!==2)throw new Na("import",x,1,2);g||(g={});function y($,D,O){if(Array.isArray(D))D.forEach(M=>y($,M));else if(typeof D=="object")for(var A in D)Ke(D,A)&&y($,D[A],A);else if(Nu(D)||O!==void 0){var T=Nu(D)?v(D)?D.fn+".transform":D.fn:O;if(Ke($,T)&&$[T]!==D&&!g.silent)throw new Error('Cannot import "'+T+'" twice');$[T]=D}else if(!g.silent)throw new TypeError("Factory, Object, or Array expected")}var w={};y(w,h);for(var b in w)if(Ke(w,b)){var S=w[b];if(Nu(S))u(S,g);else if(c(S))a(b,S,g);else if(!g.silent)throw new TypeError("Factory, Object, or Array expected")}}function a(h,g,x){if(x.wrap&&typeof g=="function"&&(g=s(g)),d(g)&&(g=e(h,{[g.signature]:g})),e.isTypedFunction(n[h])&&e.isTypedFunction(g)){x.override?g=e(h,g.signatures):g=e(n[h],g),n[h]=g,delete r[h],i(h,g),n.emit("import",h,function(){return g});return}if(n[h]===void 0||x.override){n[h]=g,delete r[h],i(h,g),n.emit("import",h,function(){return g});return}if(!x.silent)throw new Error('Cannot import "'+h+'": already exists')}function i(h,g){g&&typeof g.transform=="function"?(n.expression.transform[h]=g.transform,f(h)&&(n.expression.mathWithTransform[h]=g.transform)):(delete n.expression.transform[h],f(h)&&(n.expression.mathWithTransform[h]=g))}function l(h){delete n.expression.transform[h],f(h)?n.expression.mathWithTransform[h]=n[h]:delete n.expression.mathWithTransform[h]}function s(h){var g=function(){for(var y=[],w=0,b=arguments.length;w<b;w++){var S=arguments[w];y[w]=S&&S.valueOf()}return h.apply(n,y)};return h.transform&&(g.transform=h.transform),g}function u(h,g){var x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:h.fn;if(g4(x,"."))throw new Error("Factory name should not contain a nested path. Name: "+JSON.stringify(x));var y=v(h)?n.expression.transform:n,w=x in n.expression.transform,b=Ke(y,x)?y[x]:void 0,S=function(){var D={};h.dependencies.map(e7).forEach(A=>{if(g4(A,"."))throw new Error("Factory dependency should not contain a nested path. Name: "+JSON.stringify(A));A==="math"?D.math=n:A==="mathWithTransform"?D.mathWithTransform=n.expression.mathWithTransform:A==="classes"?D.classes=n:D[A]=n[A]});var O=h(D);if(O&&typeof O.transform=="function")throw new Error('Transforms cannot be attached to factory functions. Please create a separate function for it with exports.path="expression.transform"');if(b===void 0||g.override)return O;if(e.isTypedFunction(b)&&e.isTypedFunction(O))return e(b,O);if(g.silent)return b;throw new Error('Cannot import "'+x+'": already exists')};!h.meta||h.meta.lazy!==!1?(_f(y,x,S),b&&w?l(x):(v(h)||p(h))&&_f(n.expression.mathWithTransform,x,()=>y[x])):(y[x]=S(),b&&w?l(x):(v(h)||p(h))&&_f(n.expression.mathWithTransform,x,()=>y[x])),r[x]=h,n.emit("import",x,S)}function c(h){return typeof h=="function"||typeof h=="number"||typeof h=="string"||typeof h=="boolean"||h===null||uo(h)||vo(h)||Ot(h)||ul(h)||mt(h)||Array.isArray(h)}function d(h){return typeof h=="function"&&typeof h.signature=="string"}function f(h){return!Ke(m,h)}function p(h){return h.fn.indexOf(".")===-1&&!Ke(m,h.fn)&&(!h.meta||!h.meta.isClass)}function v(h){return h!==void 0&&h.meta!==void 0&&h.meta.isTransformFunction===!0||!1}var m={expression:!0,type:!0,docs:!0,error:!0,json:!0,chain:!0};return o}function BB(e,t){var n=E({},A_,t);if(typeof Object.create!="function")throw new Error("ES5 not supported by this JavaScript engine. Please load the es5-shim and es5-sham library for compatibility.");var r=f_e({isNumber:Pt,isComplex:vo,isBigNumber:Ot,isFraction:ul,isUnit:uo,isString:Qn,isArray:Ut,isMatrix:mt,isCollection:wo,isDenseMatrix:ac,isSparseMatrix:Za,isRange:Ov,isIndex:Ic,isBoolean:O_,isResultSet:T_,isHelp:Lw,isFunction:M_,isDate:N_,isRegExp:P_,isObject:Tv,isNull:I_,isUndefined:__,isAccessorNode:ii,isArrayNode:Ir,isAssignmentNode:B_,isBlockNode:F_,isConditionalNode:R_,isConstantNode:Rt,isFunctionAssignmentNode:Ls,isFunctionNode:Sa,isIndexNode:cl,isNode:Kt,isObjectNode:_c,isOperatorNode:bn,isParenthesisNode:Vo,isRangeNode:z_,isRelationalNode:L_,isSymbolNode:Pn,isChain:kw});r.config=$1e(n,r.emit),r.expression={transform:{},mathWithTransform:{config:r.config}};var o=[],a=[];function i(c){if(Nu(c))return c(r);var d=c[Object.keys(c)[0]];if(Nu(d))return d(r);if(!S1e(c))throw console.warn("Factory object with properties `type`, `name`, and `factory` expected",c),new Error("Factory object with properties `type`, `name`, and `factory` expected");var f=o.indexOf(c),p;return f===-1?(c.math===!0?p=c.factory(r.type,n,i,r.typed,r):p=c.factory(r.type,n,i,r.typed),o.push(c),a.push(p)):p=a[f],p}var l={};function s(){for(var c=arguments.length,d=new Array(c),f=0;f<c;f++)d[f]=arguments[f];return r.typed.apply(r.typed,d)}s.isTypedFunction=py.isTypedFunction;var u=p_e(s,i,r,l);return r.import=u,r.on("config",()=>{l4(l).forEach(c=>{c&&c.meta&&c.meta.recreateOnConfigChange&&u(c,{override:!0})})}),r.create=BB.bind(null,e),r.factory=se,r.import(l4(w1e(e))),r.ArgumentsError=Na,r.DimensionError=Dt,r.IndexError=oo,r}const m_e={number:"BigNumber",precision:20},v_e=BB(c_e,m_e);let $g=null,ET=[];const FB={hasAuth(e){return!!e},hasPermission(e){let t=!0,r=_o().app,o=r.meta.auth;if(r.meta.auth)return t=o.some(a=>a.option==e),t},TBLayout(e,t){try{const n=_o(),r=n.hiddenSensitiveFields;let o=n.app;if(o.meta.tables[e])return o.meta.tables[e].tablecols.map(i=>({title:i.title,filter:i.filter,sortable:i.sortable,dataIndex:i.columnname,sort:0,align:i.align?i.align:"left",width:i.width==0?"150":i.width,fixed:i.freezetype&&i.freezetype!==""?i.freezetype:!1,fn:i.script!==""?(l,s)=>{try{return new Function("data","hideAmount",i.script)(l,r)}catch(u){console.log(u)}}:null,ellipsis:!0}))}catch(n){console.log(n,"tool")}},FormLayout(e,t){var n=this;let r=(o,a)=>{if(o&&o.type&&o.type!==""&&o.type!=="none")switch(o.type){case"number":return n.formatAmount(a);case"mapping":return o.mapping.some(i=>{a==i.value&&(a=i.label)}),a}else return a};try{let a=_o().app;if(a.meta.forms[e])return a.meta.forms[e].formcols.map(l=>({label:l.title,value:r(l.dataformat,t[l.columnname]),key:l.columnname,span:l.span,style:l.script!==""?()=>{try{return new Function("data","that",l.script)(t,n)}catch(s){console.log(s)}}:null}))}catch(o){console.log(o,"tool")}},TBLayoutID(e){try{let n=_o().app;if(n.meta.tables[e])return n.meta.tables[e].tableid}catch(t){console.log(t,"tool")}},getFormSetting(e,t,n){return _o().app.meta.forms[e].formcols.reduce((i,l)=>(i[l.columnname]=l,i[t][n]),{})},hideFields(e,t){try{return _o().app.meta.forms[e].formcols.some(i=>t==i.columnname)}catch{}},isDisabled(e,t,n){let r=!1;return n||(r=t.some(o=>o==e),r)},message(e,t,n){if(!e)return!1;e.code===1?(t&&un.success({content:t,key:1}),$g!==null&&clearTimeout($g),$g=setTimeout(()=>{n&&n()},500)):(console.log(e),un.error({content:e.data+":"+e.msg,key:1}))},formatAmount(e,t){if(t&&!this.hideFields(t.name,t.key))return"****";let n=v_e.format(Number(e),{notation:"fixed",precision:2});const r=String(n),o=/\B(?=(?:\d{3})+$)/g;if(r.indexOf(".")>-1){const i=r.substring(0,r.indexOf(".")),l=r.substring(r.length,r.indexOf("."));return`${i.replace(o,",")}${l}`}else return r.replace(o,",")},validateInputNumber(e,t,n){return new Promise((r,o)=>{if(console.log(e,t),!t)return r(e);if((t*100-e*100)%(n*100)===0)r(t);else{un.error(t?`输入的值${t}不符合增量规则,已修正!`:"输入的值不能为空!");let a=t-(t-e)%n;r(a)}})},statusAndColor(e){let t=[{st:"新建",cl:"#1677ff"},{st:"提交",cl:"#646cff"},{st:"审核",cl:"#ff5656"},{st:"关闭",cl:"#acbdc5"},{st:"预提交",cl:"#005792"},{st:"确认",cl:"#01352c"},{st:"复核",cl:"#ff9234"},{st:"启用",cl:"#1890ff"},{st:"停用",cl:"#acbdc5"},{st:"发布",cl:"#52c41a"}];return t.find(n=>n.st==e)?t.find(n=>n.st==e).cl:"#333"},questArray:ET,anti_shake(e){const t=new Date().getTime(),n=JSON.parse(sessionStorage.getItem("request_url"));if(e.type=="post"&&sessionStorage.setItem("request_url",JSON.stringify({url:e.type,time:new Date().getTime()})),n===null)return!0;if(e.type=="post"&&(os().canPointer=!1),e.data.id&&ET.push(Number(e.data.id)),e.type=="post"&&t-n.time<500){let r;return e.cancelToken=new axios.CancelToken(o=>{r=o}),un.error({content:"请求过于频繁,请稍后再试!",duration:1,key:1}),os().canPointer=!0,r(`${e.url}请求被中断`),!1}else return!0},messageLoading:{hide:()=>{un.loading({content:"操作正在执行,请稍等..",duration:10}),setTimeout(()=>{os().canPointer=!0},1e4)}},date:{yearStart:`${new Date().getFullYear()-1}-01-01`,yearEnd:`${new Date().getFullYear()}-12-31`}};let h_e=Av.CancelToken,g_e=h_e.source();const y_e=()=>{for(var e=window.location.href,t=e.indexOf("/"),n=0;t!==-1;)if(n++,t=e.indexOf("/",t+1),n++===3)return e.slice(0,t)},b_e=()=>{navigator.geolocation?navigator.geolocation.getCurrentPosition(function(e){let t=e.coords.latitude,n=e.coords.longitude;console.log("Latitude: "+t+" Longitude: "+n)},function(e){}):console.log("Geolocation is not supported by this browser."),navigator.connection?os().connection=navigator.connection.downlink:console.log("浏览器不支持 navigator.connection API")},Vl=Av.create({baseURL:y_e(),timeout:1e3*60*5});Vl.interceptors.request.use(async e=>{const t=sessionStorage.getItem("token")?sessionStorage.getItem("token"):"",n=_o().app?_o().app.systemappid:"";return e.data.accesstoken=t,e.data.systemappid=n,e.headers||(e.headers={}),e.headers["Content-Type"]||(e.headers["Content-Type"]="application/json;charset=UTF-8"),FB.anti_shake(e,Av),b_e(),e},e=>{Promise.reject(e)});Vl.interceptors.response.use(e=>{if(e.data.code==-1)un.error({content:e.data.msg,key:1}),Pu.push({name:"login"}),setTimeout(()=>{window.location.reload()},500);else return os().canPointer=!0,e.data},e=>{if(e&&e.response)switch(e.response.status){case 400:un.error("错误请求");break;case 401:un.error("未授权,请重新登录");break;case 403:un.error("拒绝访问");break;case 404:un.error("请求错误,未找到该资源");break;case 405:un.error("请求方法未允许");break;case 408:un.error("请求超时");break;case 500:un.error({content:"服务器端出错",key:"服务器端出错"});break;case 501:un.error("网络未实现");break;case 502:un.error("网络错误");break;case 503:un.error("服务不可用");break;case 504:un.error("网络超时");break;case 505:un.error("http版本不支持该请求");break;default:un.error=`连接错误${e.response.status}`}else g_e.cancel("停止请求");return Promise.resolve(e.response)});const x_e=Av.create({timeout:3600*1e3,validateStatus:function(e){return e>=200},onUploadProgress:function(e){}}),w_e={upload(e,t,n){return x_e.put(e,t,n)}},La={get(e,t){const n={method:"get",url:e};return t&&(n.params=t),Vl(n)},post(e,t,n){const r={method:"post",type:n,url:e,onDownloadProgress:function(o){Math.round(o.loaded*100/o.total)}};if(t)return r.data=t,Vl(r)},put(e,t){const n={method:"put",url:e};return t&&(n.data=t),Vl(n)},delete(e,t){const n={method:"delete",url:e};return t&&(n.params=t),Vl(n)},upload(e,t,n,r){return w_e(e,t,{headers:{"Content-Type":n},transformRequest:[function(a){return a}],onUploadProgress:a=>{let i=a.loaded/a.total*100|0;r(i)}})}},_i={loginCode(e){return La.post("/yos/rest/index/getpassword",e,"get")},login(e){return La.post("/yos/rest/index/login",e,"post")},loginout(e){return La.post("/yos/rest/index/logout",e,"post")},loginbyaccount(e){return La.post("/yos/rest/index/loginbyaccount",e,"post")},requested(e){return La.post("/yos/rest/index",e,"get")},post(e){return FB.messageLoading.hide(),La.post("/yos/rest/index",e,"post")},delete(e){return La.post("/yos/rest/index",e,"get")},optionstype(e,t,n){let r={};return t&&n&&(r[t]=n),La.post("/yos/rest/index",{classname:"sysmanage.develop.optiontype.optiontype",method:"optiontypeselect",content:{pageNumber:1,pageSize:1e3,typename:e,parameter:r}},"get")}},_o=Pw("auth",{state:()=>({isRefresh:!0,accountList:[],nowAccount:{},system:[],actSystem:"",mods:[],app:{},actMod:{},current:[],tableConfigs:{},hiddenSensitiveFields:!1,fieldsParam:{}}),persist:{enabled:!0,strategies:[{storage:localStorage,paths:["system","mods","app","accountList","nowAccount","actSystem","current","tableConfigs","hiddenSensitiveFields"]}]},getters:{},actions:{systemAuthData(){return new Promise(async(e,t)=>{let n={classname:"sysmanage.develop.userauthforweb.userauth",method:"query_userauth",content:{place:1},systemappid:""};const r=await _i.requested(n);this.system=r.data,this.actSystem=r.data[0],this.mods=r.data[0].modules,e(this.mods)})},async hideKeyWords(e){let t=e;(await _i.requested({classname:"sysmanage.develop.optiontype.optiontype",method:"optiontypeselect",content:{pageNumber:1,pageSize:20,typename:"shieldrole",parameter:{siteid:t.siteid,userid:t.userid}}})).data.length>0?this.hiddenSensitiveFields=!0:this.hiddenSensitiveFields=!1},modulesData(e){this.mods=e.modules},findAppByName(e,t){let n=null;function r(o){for(let a=0;a<o.length;a++){const i=o[a];if(i.modules&&i.modules.length>0&&r(i.modules),i.apps){const l=i.apps.find(s=>s.name===t);if(l){n=l;break}}}}return r(e),n},appData(e){return new Promise((t,n)=>{this.app=this.findAppByName(this.system,e),t()})},hasAppData(e){return!!this.findAppByName(this.system,e)},async getConfig(){const e=await _i.requested({classname:"sysmanage.develop.users.users",method:"queryClientConfig",content:{}});e.data.config?this.tableConfigs=JSON.parse(e.data.config):this.tableConfigs={}},async defaultAccount(e,t){e?this.nowAccount=e:this.nowAccount,sessionStorage.setItem("token",this.nowAccount.token),this.getConfig(),this.hideKeyWords(e);const n=await this.systemAuthData();t(n)},reloadPage(e){this.isRefresh=!1,setTimeout(()=>{this.isRefresh=!0},1e3)},setQueryParams(e){this.fieldsParam[this.app.name]=e},getQueryParams(){return console.log(this.fieldsParam),this.fieldsParam[this.app.name]||null}}}),S_e=Pw("routeTabs",{state:()=>({historyRoutes:[],activeKey:0}),persist:{enabled:!0,strategies:[{storage:localStorage,paths:["historyRoutes","activeKey"]}]},getters:{},actions:{saveRoute(e){if(!this.historyRoutes.some(n=>n.name==e.name))this.historyRoutes.push({meta:e.meta,name:e.name,path:e.path,query:e.query});else{const n=this.historyRoutes.findIndex(r=>r.name===e.name);n!==-1&&this.historyRoutes.splice(n,1,e)}},delRoute(e,t){let n=_o().mods;if(Pu.options.routes[1].children,this.historyRoutes=this.historyRoutes.filter(r=>{if(r.name!==e)return r}),e==t){if(this.historyRoutes.length>0)return Pu.replace({path:this.historyRoutes[this.historyRoutes.length-1].path,query:this.historyRoutes[this.historyRoutes.length-1].query});if(this.historyRoutes.length==0)return Pu.replace({path:n[0].apps[0].path})}}}}),C_e=[{path:"/productmag",name:"productmag",meta:{title:"商品管理",name:"productmag",keepAlive:!0},component:()=>Re(()=>import("./index-f1d69ec6.js"),["./index-f1d69ec6.js","./index-9d837a55.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-c6f28d35.js","./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-66e99631.js","./settingColumns-ebab36e5.css","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-aebe903b.js","./index-ad9ec8dc.css","./index-94b628bc.js","./index-991354de.css","./index-ea86bc45.css"],import.meta.url)},{path:"/productmagDetail",name:"productmagDetail",meta:{title:"商品详情",name:"productmag",keepAlive:!0},component:()=>Re(()=>import("./index-ffdb1c8f.js"),["./index-ffdb1c8f.js","./index-1ca99e9f.js","./vue-router-e2815956.js","./vue-7f5e2b1b.js","./index-4e8da4ac.js","./_plugin-vue_export-helper-c27b6911.js","./InboxOutlined-46f65305.js","./index-d5f62245.css","./index-542174c1.css","./index-091cbc2f.css"],import.meta.url)},{path:"/productgroupmag",name:"productgroupmag",meta:{title:"商品组管理",name:"productgroupmag",keepAlive:!0},component:()=>Re(()=>import("./index-7cc81218.js"),["./index-7cc81218.js","./index-9d837a55.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-c6f28d35.js","./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-66e99631.js","./settingColumns-ebab36e5.css","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-aebe903b.js","./index-ad9ec8dc.css"],import.meta.url)},{path:"/pGroupdetail",name:"pGroupdetail",meta:{title:"商品组详情",name:"productgroupmag",keepAlive:!0},component:()=>Re(()=>import("./index-de4e03d7.js"),["./index-de4e03d7.js","./index-1ca99e9f.js","./vue-router-e2815956.js","./vue-7f5e2b1b.js","./index-4e8da4ac.js","./_plugin-vue_export-helper-c27b6911.js","./InboxOutlined-46f65305.js","./index-d5f62245.css","./index-542174c1.css","./index-0eba2700.js","./index-43c8fb05.css","./index-94b628bc.js","./fullScreen-c6f28d35.js","./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-66e99631.js","./settingColumns-ebab36e5.css","./SettingOutlined-aebe903b.js","./index-991354de.css","./index-245bf38f.css"],import.meta.url)},{path:"/ordermag",name:"ordermag",meta:{name:"ordermag",title:"订单管理",keepAlive:!0},component:()=>Re(()=>import("./index-f617348e.js"),["./index-f617348e.js","./index-9d837a55.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-c6f28d35.js","./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-66e99631.js","./settingColumns-ebab36e5.css","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-aebe903b.js","./index-ad9ec8dc.css","./index-72fe49c0.js","./index-e0fd05a2.css","./index-3bfeb93e.js"],import.meta.url)},{path:"/orderdetail",name:"orderdetail",meta:{title:"订单详情",name:"ordermag",keepAlive:!0},component:()=>Re(()=>import("./index-dc5c20b8.js"),["./index-dc5c20b8.js","./vue-7f5e2b1b.js","./index-94b628bc.js","./fullScreen-c6f28d35.js","./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-66e99631.js","./settingColumns-ebab36e5.css","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-aebe903b.js","./vue-router-e2815956.js","./index-991354de.css","./index-c2f9d2e2.js","./InboxOutlined-46f65305.js","./index-a80ae4fe.css","./index-0eba2700.js","./index-43c8fb05.css","./index-72fe49c0.js","./index-e0fd05a2.css","./index-1ca99e9f.js","./index-4e8da4ac.js","./index-d5f62245.css","./index-542174c1.css","./index-d259f5a6.js","./index-697cb773.css","./index-3bfeb93e.js","./index-57d724b4.css","./index-b3e1d320.css"],import.meta.url)},{path:"/orderMx",name:"orderMx",meta:{title:"订单明细",name:"orderMx",keepAlive:!0},component:()=>Re(()=>import("./index-f997db77.js"),["./index-f997db77.js","./index-9d837a55.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-c6f28d35.js","./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-66e99631.js","./settingColumns-ebab36e5.css","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-aebe903b.js","./index-ad9ec8dc.css"],import.meta.url)},{path:"/brandmag",name:"brandmag",meta:{title:"品牌与分类",name:"brandmag",keepAlive:!0},component:()=>Re(()=>import("./index-15dc22c6.js"),["./index-15dc22c6.js","./index-9d837a55.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-c6f28d35.js","./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-66e99631.js","./settingColumns-ebab36e5.css","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-aebe903b.js","./index-ad9ec8dc.css"],import.meta.url)},{path:"/brandDetail",name:"brandDetail",meta:{title:"品牌详情",name:"brandmag",keepAlive:!0},component:()=>Re(()=>import("./index-dbaba694.js"),["./index-dbaba694.js","./vue-router-e2815956.js","./vue-7f5e2b1b.js","./index-1ca99e9f.js","./index-4e8da4ac.js","./_plugin-vue_export-helper-c27b6911.js","./InboxOutlined-46f65305.js","./index-d5f62245.css","./index-542174c1.css","./index-cf962f9f.css","./index-b172754b.css"],import.meta.url)},{path:"/marketing_area",name:"marketing_area",meta:{title:"营销区域",name:"marketing_area",keepAlive:!0},component:()=>Re(()=>import("./index-0b94a314.js"),["./index-0b94a314.js","./index-9d837a55.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-c6f28d35.js","./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-66e99631.js","./settingColumns-ebab36e5.css","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-aebe903b.js","./index-ad9ec8dc.css","./index-5d079311.css"],import.meta.url)},{path:"/agentManage",name:"agentManage",meta:{title:"经销商档案",name:"agentManage",keepAlive:!0},component:()=>Re(()=>import("./index-e6229fd7.js"),["./index-e6229fd7.js","./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-66e99631.js","./settingColumns-ebab36e5.css","./index-9d837a55.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-c6f28d35.js","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-aebe903b.js","./index-ad9ec8dc.css","./index-72fe49c0.js","./index-e0fd05a2.css","./index-9dbbc4d6.css","./index-b3e1d320.css"],import.meta.url)},{path:"/agent_detail",name:"agent_detail",meta:{title:"经销商档案详情",name:"agentManage",keepAlive:!0},component:()=>Re(()=>import("./index-d45fb10a.js"),["./index-d45fb10a.js","./index-1ca99e9f.js","./vue-router-e2815956.js","./vue-7f5e2b1b.js","./index-4e8da4ac.js","./_plugin-vue_export-helper-c27b6911.js","./InboxOutlined-46f65305.js","./index-d5f62245.css","./index-542174c1.css","./index-72fe49c0.js","./index-e0fd05a2.css","./index-94b628bc.js","./fullScreen-c6f28d35.js","./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-66e99631.js","./settingColumns-ebab36e5.css","./SettingOutlined-aebe903b.js","./index-991354de.css","./index-12c91e80.css","./index-b3e1d320.css"],import.meta.url)},{path:"/EnterpriseArchives",name:"EnterpriseArchives",meta:{title:"企业档案",name:"EnterpriseArchives",keepAlive:!0},component:()=>Re(()=>import("./index-36ca060b.js"),["./index-36ca060b.js","./index-9d837a55.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-c6f28d35.js","./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-66e99631.js","./settingColumns-ebab36e5.css","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-aebe903b.js","./index-ad9ec8dc.css","./index-1285f9f5.js","./index-6838f73c.css"],import.meta.url)},{path:"/enterpriseDetail",name:"enterpriseDetail",meta:{title:"企业档案详情",name:"EnterpriseArchives",keepAlive:!0},component:()=>Re(()=>import("./index-4705dd03.js"),["./index-4705dd03.js","./index-1ca99e9f.js","./vue-router-e2815956.js","./vue-7f5e2b1b.js","./index-4e8da4ac.js","./_plugin-vue_export-helper-c27b6911.js","./InboxOutlined-46f65305.js","./index-d5f62245.css","./index-542174c1.css","./index-1285f9f5.js","./index-6838f73c.css"],import.meta.url)},{path:"/salerManage",name:"salerManage",meta:{title:"区域管理",name:"salerManage",keepAlive:!0},component:()=>Re(()=>import("./index-83628df7.js"),["./index-83628df7.js","./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-66e99631.js","./settingColumns-ebab36e5.css","./index-9d837a55.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-c6f28d35.js","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-aebe903b.js","./index-ad9ec8dc.css","./index-a04f5715.js","./index-b3e1d320.css","./index-eb11d3e5.css","./index-e0fd05a2.css"],import.meta.url)},{path:"/promotion",name:"promotion",meta:{title:"促销管理",name:"promotion",keepAlive:!0},component:()=>Re(()=>import("./index-e65df2da.js"),["./index-e65df2da.js","./index-9d837a55.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-c6f28d35.js","./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-66e99631.js","./settingColumns-ebab36e5.css","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-aebe903b.js","./index-ad9ec8dc.css","./index-94b628bc.js","./index-991354de.css","./index-75a5f4db.js","./index-ac27cccd.css","./index-b2284f9a.css"],import.meta.url)},{path:"/promotionMagDetail",name:"promotionMagDetail",meta:{title:"促销详情",name:"promotion",keepAlive:!0},component:()=>Re(()=>import("./index-fc1febdd.js"),["./index-fc1febdd.js","./index-94b628bc.js","./fullScreen-c6f28d35.js","./vue-7f5e2b1b.js","./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-66e99631.js","./settingColumns-ebab36e5.css","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-aebe903b.js","./vue-router-e2815956.js","./index-991354de.css","./index-c2f9d2e2.js","./InboxOutlined-46f65305.js","./index-a80ae4fe.css","./index-0eba2700.js","./index-43c8fb05.css","./index-1ca99e9f.js","./index-4e8da4ac.js","./index-d5f62245.css","./index-542174c1.css","./index-75a5f4db.js","./index-ac27cccd.css","./index-72fe49c0.js","./index-e0fd05a2.css","./index-3d747cc0.css"],import.meta.url)},{path:"/productMoneyOdd",name:"productMoneyOdd",meta:{title:"商品调价",name:"productMoneyOdd",keepAlive:!0},component:()=>Re(()=>import("./index-5ef3bc4f.js"),["./index-5ef3bc4f.js","./index-9d837a55.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-c6f28d35.js","./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-66e99631.js","./settingColumns-ebab36e5.css","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-aebe903b.js","./index-ad9ec8dc.css","./index-c2f9d2e2.js","./InboxOutlined-46f65305.js","./index-a80ae4fe.css"],import.meta.url)},{path:"/priceAdjustmentDetail",name:"priceAdjustmentDetail",meta:{title:"商品调价详情",name:"productMoneyOdd",keepAlive:!0},component:()=>Re(()=>import("./index-8c3fbf40.js"),["./index-8c3fbf40.js","./index-94b628bc.js","./fullScreen-c6f28d35.js","./vue-7f5e2b1b.js","./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-66e99631.js","./settingColumns-ebab36e5.css","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-aebe903b.js","./vue-router-e2815956.js","./index-991354de.css","./index-0eba2700.js","./index-43c8fb05.css","./index-1ca99e9f.js","./index-4e8da4ac.js","./InboxOutlined-46f65305.js","./index-d5f62245.css","./index-542174c1.css","./index-e4b5abb5.css"],import.meta.url)},{path:"/accountmoney",name:"accountmoney",meta:{title:"账户余额",name:"accountmoney",keepAlive:!0},component:()=>Re(()=>import("./index-f37e0b32.js"),["./index-f37e0b32.js","./index-9d837a55.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-c6f28d35.js","./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-66e99631.js","./settingColumns-ebab36e5.css","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-aebe903b.js","./index-ad9ec8dc.css","./index-94b628bc.js","./index-991354de.css"],import.meta.url)},{path:"/payvoucher",name:"payvoucher",meta:{title:"支出凭证",name:"payvoucher",keepAlive:!0},component:()=>Re(()=>import("./index-c641c9e9.js"),["./index-c641c9e9.js","./index-9d837a55.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-c6f28d35.js","./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-66e99631.js","./settingColumns-ebab36e5.css","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-aebe903b.js","./index-ad9ec8dc.css","./index-c2f9d2e2.js","./InboxOutlined-46f65305.js","./index-a80ae4fe.css","./index-72fe49c0.js","./index-e0fd05a2.css"],import.meta.url)},{path:"/dVoucherDetail",name:"dVoucherDetail",meta:{title:"支出凭证详情",name:"payvoucher",keepAlive:!0},component:()=>Re(()=>import("./index-dc1ba254.js"),["./index-dc1ba254.js","./index-1ca99e9f.js","./vue-router-e2815956.js","./vue-7f5e2b1b.js","./index-4e8da4ac.js","./_plugin-vue_export-helper-c27b6911.js","./InboxOutlined-46f65305.js","./index-d5f62245.css","./index-542174c1.css","./index-72fe49c0.js","./index-e0fd05a2.css"],import.meta.url)},{path:"/recvoucher",name:"recvoucher",meta:{title:"收入凭证",name:"recvoucher",keepAlive:!0},component:()=>Re(()=>import("./index-5361e9d8.js"),["./index-5361e9d8.js","./index-9d837a55.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-c6f28d35.js","./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-66e99631.js","./settingColumns-ebab36e5.css","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-aebe903b.js","./index-ad9ec8dc.css","./index-c2f9d2e2.js","./InboxOutlined-46f65305.js","./index-a80ae4fe.css","./index-72fe49c0.js","./index-e0fd05a2.css"],import.meta.url)},{path:"/cVoucherDetail",name:"cVoucherDetail",meta:{title:"收入凭证详情",name:"recvoucher",keepAlive:!0},component:()=>Re(()=>import("./index-ce2ab3d0.js"),["./index-ce2ab3d0.js","./index-1ca99e9f.js","./vue-router-e2815956.js","./vue-7f5e2b1b.js","./index-4e8da4ac.js","./_plugin-vue_export-helper-c27b6911.js","./InboxOutlined-46f65305.js","./index-d5f62245.css","./index-542174c1.css","./index-72fe49c0.js","./index-e0fd05a2.css"],import.meta.url)},{path:"/creditbilladj",name:"creditbilladj",meta:{title:"信用调整",name:"creditbilladj",keepAlive:!0},component:()=>Re(()=>import("./index-0caffc5a.js"),["./index-0caffc5a.js","./index-9d837a55.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-c6f28d35.js","./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-66e99631.js","./settingColumns-ebab36e5.css","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-aebe903b.js","./index-ad9ec8dc.css"],import.meta.url)},{path:"/creditbilladjDetail",name:"creditbilladjDetail",meta:{title:"信用调整详情",name:"creditbilladj",keepAlive:!0},component:()=>Re(()=>import("./index-5202f7f0.js"),["./index-5202f7f0.js","./vue-7f5e2b1b.js","./index-72fe49c0.js","./_plugin-vue_export-helper-c27b6911.js","./index-e0fd05a2.css","./index-94b628bc.js","./fullScreen-c6f28d35.js","./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-66e99631.js","./settingColumns-ebab36e5.css","./SettingOutlined-aebe903b.js","./vue-router-e2815956.js","./index-991354de.css","./index-1ca99e9f.js","./index-4e8da4ac.js","./InboxOutlined-46f65305.js","./index-d5f62245.css","./index-542174c1.css"],import.meta.url)},{path:"/accountclass",name:"accountclass",meta:{title:"账户管理",name:"accountclass",keepAlive:!0},component:()=>Re(()=>import("./index-0dc66cf2.js"),["./index-0dc66cf2.js","./index-9d837a55.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-c6f28d35.js","./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-66e99631.js","./settingColumns-ebab36e5.css","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-aebe903b.js","./index-ad9ec8dc.css"],import.meta.url)},{path:"/accountChange",name:"accountChange",meta:{title:"账户转账",name:"accountChange",keepAlive:!0},component:()=>Re(()=>import("./index-73e87173.js"),["./index-73e87173.js","./index-9d837a55.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-c6f28d35.js","./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-66e99631.js","./settingColumns-ebab36e5.css","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-aebe903b.js","./index-ad9ec8dc.css","./index-72fe49c0.js","./index-e0fd05a2.css"],import.meta.url)},{path:"/accountChangeDtail",name:"accountChangeDtail",meta:{title:"转账单详情",name:"accountChange",keepAlive:!0},component:()=>Re(()=>import("./index-988b2a5e.js"),["./index-988b2a5e.js","./index-94b628bc.js","./fullScreen-c6f28d35.js","./vue-7f5e2b1b.js","./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-66e99631.js","./settingColumns-ebab36e5.css","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-aebe903b.js","./vue-router-e2815956.js","./index-991354de.css","./index-1ca99e9f.js","./index-4e8da4ac.js","./InboxOutlined-46f65305.js","./index-d5f62245.css","./index-542174c1.css","./index-e0fd05a2.css"],import.meta.url)},{path:"/dispatch",name:"dispatch",meta:{title:"发货通知单",name:"dispatch",keepAlive:!0},component:()=>Re(()=>import("./index-24b8531e.js"),["./index-24b8531e.js","./index-9d837a55.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-c6f28d35.js","./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-66e99631.js","./settingColumns-ebab36e5.css","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-aebe903b.js","./index-ad9ec8dc.css","./index-72fe49c0.js","./index-e0fd05a2.css","./index-94b628bc.js","./index-991354de.css","./SnippetsOutlined-c00f9846.js","./index-3bfeb93e.js"],import.meta.url)},{path:"/dispatchDetail",name:"dispatchDetail",meta:{title:"发货通知单详情",name:"dispatch",keepAlive:!0},component:()=>Re(()=>import("./index-0a990c77.js"),["./index-0a990c77.js","./index-72fe49c0.js","./vue-7f5e2b1b.js","./_plugin-vue_export-helper-c27b6911.js","./index-e0fd05a2.css","./vue-router-e2815956.js","./index-94b628bc.js","./fullScreen-c6f28d35.js","./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-66e99631.js","./settingColumns-ebab36e5.css","./SettingOutlined-aebe903b.js","./index-991354de.css","./index-1ca99e9f.js","./index-4e8da4ac.js","./InboxOutlined-46f65305.js","./index-d5f62245.css","./index-542174c1.css","./index-0eba2700.js","./index-43c8fb05.css","./index-3bfeb93e.js","./index-fb5da90a.css"],import.meta.url)},{path:"/store",name:"store",meta:{title:"欠货库存查询",name:"store",keepAlive:!0},component:()=>Re(()=>import("./index-5217a127.js"),["./index-5217a127.js","./index-9d837a55.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-c6f28d35.js","./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-66e99631.js","./settingColumns-ebab36e5.css","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-aebe903b.js","./index-ad9ec8dc.css","./index-94b628bc.js","./index-991354de.css"],import.meta.url)},{path:"/dispatchMx",name:"dispatchMx",meta:{title:"发货明细查询",name:"dispatchMx",keepAlive:!0},component:()=>Re(()=>import("./index-54b7c680.js"),["./index-54b7c680.js","./index-9d837a55.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-c6f28d35.js","./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-66e99631.js","./settingColumns-ebab36e5.css","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-aebe903b.js","./index-ad9ec8dc.css"],import.meta.url)},{path:"/aftersalesmag",name:"aftersalesmag",meta:{title:"退货管理",name:"aftersalesmag",keepAlive:!0},component:()=>Re(()=>import("./index-0470c225.js"),["./index-0470c225.js","./index-9d837a55.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-c6f28d35.js","./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-66e99631.js","./settingColumns-ebab36e5.css","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-aebe903b.js","./index-ad9ec8dc.css","./index-72fe49c0.js","./index-e0fd05a2.css","./index-94b628bc.js","./index-991354de.css","./SnippetsOutlined-c00f9846.js"],import.meta.url)},{path:"/returnedPurchaseDtail",name:"returnedPurchaseDtail",meta:{title:"退货管理详情",name:"aftersalesmag",keepAlive:!0},component:()=>Re(()=>import("./index-6b344c1f.js"),["./index-6b344c1f.js","./index-94b628bc.js","./fullScreen-c6f28d35.js","./vue-7f5e2b1b.js","./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-66e99631.js","./settingColumns-ebab36e5.css","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-aebe903b.js","./vue-router-e2815956.js","./index-991354de.css","./index-1ca99e9f.js","./index-4e8da4ac.js","./InboxOutlined-46f65305.js","./index-d5f62245.css","./index-542174c1.css","./index-0eba2700.js","./index-43c8fb05.css","./index-8c46a2bf.css","./index-e0fd05a2.css"],import.meta.url)},{path:"/saleOutBill",name:"saleOutBill",meta:{title:"销售出库单",name:"saleOutBill",keepAlive:!0},component:()=>Re(()=>import("./index-0942eaf0.js"),["./index-0942eaf0.js","./index-9d837a55.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-c6f28d35.js","./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-66e99631.js","./settingColumns-ebab36e5.css","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-aebe903b.js","./index-ad9ec8dc.css"],import.meta.url)},{path:"/saleOutBillDetail",name:"saleOutBillDetail",meta:{title:"出库单详情",name:"saleOutBill",keepAlive:!0},component:()=>Re(()=>import("./index-8a7d5c20.js"),["./index-8a7d5c20.js","./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-66e99631.js","./settingColumns-ebab36e5.css","./index-94b628bc.js","./fullScreen-c6f28d35.js","./vue-7f5e2b1b.js","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-aebe903b.js","./vue-router-e2815956.js","./index-991354de.css","./index-1ca99e9f.js","./index-4e8da4ac.js","./InboxOutlined-46f65305.js","./index-d5f62245.css","./index-542174c1.css"],import.meta.url)},{path:"/logisticsOrder",name:"logisticsOrder",meta:{title:"物流管理",name:"logisticsOrder",keepAlive:!0},component:()=>Re(()=>import("./index-5b48d218.js"),["./index-5b48d218.js","./index-9d837a55.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-c6f28d35.js","./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-66e99631.js","./settingColumns-ebab36e5.css","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-aebe903b.js","./index-ad9ec8dc.css","./index-72fe49c0.js","./index-e0fd05a2.css"],import.meta.url)},{path:"/logisticsOrderDetail",name:"logisticsOrderDetail",meta:{title:"物流单详情",name:"logisticsOrder",keepAlive:!0},component:()=>Re(()=>import("./index-ffe86fda.js"),["./index-ffe86fda.js","./index-72fe49c0.js","./vue-7f5e2b1b.js","./_plugin-vue_export-helper-c27b6911.js","./index-e0fd05a2.css","./index-0eba2700.js","./vue-router-e2815956.js","./index-43c8fb05.css","./index-94b628bc.js","./fullScreen-c6f28d35.js","./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-66e99631.js","./settingColumns-ebab36e5.css","./SettingOutlined-aebe903b.js","./index-991354de.css","./index-1ca99e9f.js","./index-4e8da4ac.js","./InboxOutlined-46f65305.js","./index-d5f62245.css","./index-542174c1.css"],import.meta.url)},{path:"/account_manage",name:"users",meta:{title:"用户管理",name:"users",keepAlive:!0},component:()=>Re(()=>import("./index-ee14c52a.js"),["./index-ee14c52a.js","./index-9d837a55.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-c6f28d35.js","./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-66e99631.js","./settingColumns-ebab36e5.css","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-aebe903b.js","./index-ad9ec8dc.css","./index-72fe49c0.js","./index-e0fd05a2.css"],import.meta.url)},{path:"/accountManageDetail",name:"accountManageDetail",meta:{title:"用户详情",name:"users",keepAlive:!0},component:()=>Re(()=>import("./index-837870c1.js"),["./index-837870c1.js","./index-94b628bc.js","./fullScreen-c6f28d35.js","./vue-7f5e2b1b.js","./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-66e99631.js","./settingColumns-ebab36e5.css","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-aebe903b.js","./vue-router-e2815956.js","./index-991354de.css","./index-1ca99e9f.js","./index-4e8da4ac.js","./InboxOutlined-46f65305.js","./index-d5f62245.css","./index-542174c1.css","./index-72fe49c0.js","./index-e0fd05a2.css"],import.meta.url)},{path:"/role_manage",name:"roles",meta:{title:"角色管理",name:"roles",keepAlive:!0},component:()=>Re(()=>import("./index-b70226c8.js"),["./index-b70226c8.js","./index-9d837a55.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-c6f28d35.js","./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-66e99631.js","./settingColumns-ebab36e5.css","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-aebe903b.js","./index-ad9ec8dc.css"],import.meta.url)},{path:"/roleManageDetail",name:"roleManageDetail",meta:{title:"角色管理详情",name:"roles",keepAlive:!0},component:()=>Re(()=>import("./index-687b9909.js"),["./index-687b9909.js","./index-94b628bc.js","./fullScreen-c6f28d35.js","./vue-7f5e2b1b.js","./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-66e99631.js","./settingColumns-ebab36e5.css","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-aebe903b.js","./vue-router-e2815956.js","./index-991354de.css","./index-1ca99e9f.js","./index-4e8da4ac.js","./InboxOutlined-46f65305.js","./index-d5f62245.css","./index-542174c1.css","./index-c6d949e8.css"],import.meta.url)},{path:"/depManage",name:"depManage",meta:{title:"组织架构",name:"depManage",keepAlive:!0},component:()=>Re(()=>import("./index-0e1f2743.js"),["./index-0e1f2743.js","./index-9d837a55.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-c6f28d35.js","./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-66e99631.js","./settingColumns-ebab36e5.css","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-aebe903b.js","./index-ad9ec8dc.css","./index-63977f61.css"],import.meta.url)},{path:"/userDetail",name:"userDetail",meta:{title:"组织架构详情",name:"depManage",keepAlive:!0},component:()=>Re(()=>import("./index-6ea9d593.js"),["./index-6ea9d593.js","./vue-router-e2815956.js","./vue-7f5e2b1b.js","./index-1ca99e9f.js","./index-4e8da4ac.js","./_plugin-vue_export-helper-c27b6911.js","./InboxOutlined-46f65305.js","./index-d5f62245.css","./index-542174c1.css","./index-94b628bc.js","./fullScreen-c6f28d35.js","./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-66e99631.js","./settingColumns-ebab36e5.css","./SettingOutlined-aebe903b.js","./index-991354de.css","./index-b172754b.css"],import.meta.url)},{path:"/mediaStatistics",name:"mediaStatistics",meta:{title:"数据看板",keepAlive:!0},component:()=>Re(()=>import("./index-cc3686eb.js"),["./index-cc3686eb.js","./index-2a140774.js","./ext-7719614a.js","./vue-7f5e2b1b.js","./_plugin-vue_export-helper-c27b6911.js","./vue-router-e2815956.js","./index-37c54c79.css"],import.meta.url)},{path:"/rebatebill",name:"rebatebill",meta:{title:"返利结算单",name:"rebatebill",keepAlive:!0},component:()=>Re(()=>import("./index-d290c48b.js"),["./index-d290c48b.js","./index-9d837a55.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-c6f28d35.js","./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-66e99631.js","./settingColumns-ebab36e5.css","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-aebe903b.js","./index-ad9ec8dc.css"],import.meta.url)},{path:"/programme",name:"programme",meta:{title:"返利方案",name:"programme",keepAlive:!0},component:()=>Re(()=>import("./index-b93dd3f8.js"),["./index-b93dd3f8.js","./_plugin-vue_export-helper-c27b6911.js","./index-94b628bc.js","./fullScreen-c6f28d35.js","./vue-7f5e2b1b.js","./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-66e99631.js","./settingColumns-ebab36e5.css","./SettingOutlined-aebe903b.js","./vue-router-e2815956.js","./index-991354de.css","./index-0eba2700.js","./index-43c8fb05.css","./index-0fd070f2.css","./index-d5f62245.css","./index-542174c1.css"],import.meta.url)},{path:"/rebatebillDetail",name:"rebatebillDetail",meta:{title:"结算单详情",name:"rebatebill",keepAlive:!0},component:()=>Re(()=>import("./index-94584d90.js"),["./index-94584d90.js","./fullScreen-c6f28d35.js","./vue-7f5e2b1b.js","./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-66e99631.js","./settingColumns-ebab36e5.css","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-aebe903b.js","./index-94b628bc.js","./vue-router-e2815956.js","./index-991354de.css","./index-1ca99e9f.js","./index-4e8da4ac.js","./InboxOutlined-46f65305.js","./index-d5f62245.css","./index-542174c1.css"],import.meta.url)},{path:"/customizedSolution",name:"customizedSolution",meta:{title:"商品选项",name:"customizedSolution",keepAlive:!0},component:()=>Re(()=>import("./index-b4399995.js"),["./index-b4399995.js","./upload-5f2b5d90.js","./index-9d837a55.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-c6f28d35.js","./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-66e99631.js","./settingColumns-ebab36e5.css","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-aebe903b.js","./index-ad9ec8dc.css"],import.meta.url)},{path:"/customizedSizeScheme",name:"customizedSizeScheme",meta:{title:"选项定制方案",name:"customizedSizeScheme",keepAlive:!0},component:()=>Re(()=>import("./index-496f3858.js"),["./index-496f3858.js","./upload-5f2b5d90.js","./index-9d837a55.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-c6f28d35.js","./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-66e99631.js","./settingColumns-ebab36e5.css","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-aebe903b.js","./index-ad9ec8dc.css"],import.meta.url)},{path:"/sizeSchemeDetail",name:"sizeSchemeDetail",meta:{title:"定制方案详情",name:"customizedSizeScheme",keepAlive:!0},component:()=>Re(()=>import("./index-0d013896.js"),["./index-0d013896.js","./index-1ca99e9f.js","./vue-router-e2815956.js","./vue-7f5e2b1b.js","./index-4e8da4ac.js","./_plugin-vue_export-helper-c27b6911.js","./InboxOutlined-46f65305.js","./index-d5f62245.css","./index-542174c1.css","./index-94b628bc.js","./fullScreen-c6f28d35.js","./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-66e99631.js","./settingColumns-ebab36e5.css","./SettingOutlined-aebe903b.js","./index-991354de.css"],import.meta.url)},{path:"/systemNotice",name:"systemNotice",meta:{title:"发布通告",name:"systemNotice",keepAlive:!0},component:()=>Re(()=>import("./index-0d450286.js"),["./index-0d450286.js","./index-9d837a55.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-c6f28d35.js","./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-66e99631.js","./settingColumns-ebab36e5.css","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-aebe903b.js","./index-ad9ec8dc.css"],import.meta.url)},{path:"/systemNoticeDetail",name:"systemNoticeDetail",meta:{title:"系统通告详情",name:"systemNotice",keepAlive:!0},component:()=>Re(()=>import("./index-d246baa4.js"),["./index-d246baa4.js","./vue-7f5e2b1b.js","./index-1ca99e9f.js","./vue-router-e2815956.js","./index-4e8da4ac.js","./_plugin-vue_export-helper-c27b6911.js","./InboxOutlined-46f65305.js","./index-d5f62245.css","./index-542174c1.css","./index-a74d3dca.css"],import.meta.url)},{path:"/performanceGoals",name:"performanceGoals",meta:{title:"营销业绩目标管理",name:"performanceGoals",keepAlive:!0},component:()=>Re(()=>import("./index-61f4a595.js"),["./index-61f4a595.js","./index-9d837a55.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-c6f28d35.js","./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-66e99631.js","./settingColumns-ebab36e5.css","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-aebe903b.js","./index-ad9ec8dc.css"],import.meta.url)},{path:"/performanceGoalsDetails",name:"performanceGoalsDetails",meta:{title:"业绩目标详情",name:"performanceGoals",keepAlive:!0},component:()=>Re(()=>import("./index-137dd71f.js"),["./index-137dd71f.js","./index-c2f9d2e2.js","./_plugin-vue_export-helper-c27b6911.js","./vue-7f5e2b1b.js","./InboxOutlined-46f65305.js","./index-a80ae4fe.css","./vue-router-e2815956.js","./index-1ca99e9f.js","./index-4e8da4ac.js","./index-d5f62245.css","./index-542174c1.css","./index-de8517b6.css"],import.meta.url)},{path:"/customerGoals",name:"customerGoals",meta:{title:"经销商目标管理",name:"customerGoals",keepAlive:!0},component:()=>Re(()=>import("./index-97a41cf1.js"),["./index-97a41cf1.js","./index-9d837a55.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-c6f28d35.js","./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-66e99631.js","./settingColumns-ebab36e5.css","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-aebe903b.js","./index-ad9ec8dc.css","./index-e0fd05a2.css"],import.meta.url)},{path:"/customerGoalsDetails",name:"customerGoalsDetails",meta:{title:"经销商目标详情",name:"customerGoals",keepAlive:!0},component:()=>Re(()=>import("./index-101d458c.js"),["./index-101d458c.js","./index-c2f9d2e2.js","./_plugin-vue_export-helper-c27b6911.js","./vue-7f5e2b1b.js","./InboxOutlined-46f65305.js","./index-a80ae4fe.css","./vue-router-e2815956.js","./index-1ca99e9f.js","./index-4e8da4ac.js","./index-d5f62245.css","./index-542174c1.css","./index-560ccb16.css","./index-e0fd05a2.css"],import.meta.url)},{path:"/calcMethod",name:"calcMethod",meta:{title:"定制方案管理",name:"calcMethod",keepAlive:!0},component:()=>Re(()=>import("./index-d91d9259.js"),["./index-d91d9259.js","./_plugin-vue_export-helper-c27b6911.js","./vue-7f5e2b1b.js","./index-9d837a55.js","./vue-router-e2815956.js","./fullScreen-c6f28d35.js","./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-66e99631.js","./settingColumns-ebab36e5.css","./SettingOutlined-aebe903b.js","./index-ad9ec8dc.css","./index-f39ee31f.css"],import.meta.url)},{path:"/methodDetail",name:"methodDetail",meta:{title:"定制方案管理详情",name:"calcMethod",keepAlive:!0},component:()=>Re(()=>import("./index-6ffa67d1.js"),["./index-6ffa67d1.js","./vue-router-e2815956.js","./vue-7f5e2b1b.js","./index-1ca99e9f.js","./index-4e8da4ac.js","./_plugin-vue_export-helper-c27b6911.js","./InboxOutlined-46f65305.js","./index-d5f62245.css","./index-542174c1.css","./index-94b628bc.js","./fullScreen-c6f28d35.js","./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-66e99631.js","./settingColumns-ebab36e5.css","./SettingOutlined-aebe903b.js","./index-991354de.css"],import.meta.url)},{path:"/productReplenishmentAnalysis",name:"productReplenishmentAnalysis",meta:{title:"商品补货分析",name:"productReplenishmentAnalysis",keepAlive:!0},component:()=>Re(()=>import("./index-fa87e493.js"),["./index-fa87e493.js","./index-9d837a55.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-c6f28d35.js","./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-66e99631.js","./settingColumns-ebab36e5.css","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-aebe903b.js","./index-ad9ec8dc.css"],import.meta.url)}],$_e=[{path:"/order",name:"order",meta:{title:"订货订单",name:"order",keepAlive:!0},component:()=>Re(()=>import("./index-d6d14e16.js"),["./index-d6d14e16.js","./index-9d837a55.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-c6f28d35.js","./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-66e99631.js","./settingColumns-ebab36e5.css","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-aebe903b.js","./index-ad9ec8dc.css","./index-1079fda9.css"],import.meta.url)},{path:"/agent_orderDetails",name:"agent_orderDetails",meta:{title:"订单详情",name:"order",keepAlive:!1},component:()=>Re(()=>import("./index-0dce6b06.js"),["./index-0dce6b06.js","./index-94b628bc.js","./fullScreen-c6f28d35.js","./vue-7f5e2b1b.js","./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-66e99631.js","./settingColumns-ebab36e5.css","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-aebe903b.js","./vue-router-e2815956.js","./index-991354de.css","./index-0eba2700.js","./index-43c8fb05.css","./index-1ca99e9f.js","./index-4e8da4ac.js","./InboxOutlined-46f65305.js","./index-d5f62245.css","./index-542174c1.css","./index-a04f5715.js","./index-b3e1d320.css","./index-72fe49c0.js","./index-e0fd05a2.css","./index-d259f5a6.js","./index-697cb773.css","./index-3797e15a.css"],import.meta.url)},{path:"/orderMxAgent",name:"orderMxAgent",meta:{title:"订单明细",name:"orderMxAgent",keepAlive:!0},component:()=>Re(()=>import("./index-19339aaf.js"),["./index-19339aaf.js","./index-9d837a55.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-c6f28d35.js","./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-66e99631.js","./settingColumns-ebab36e5.css","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-aebe903b.js","./index-ad9ec8dc.css"],import.meta.url)},{path:"/productgroup",name:"productgroup",meta:{title:"商城",name:"productgroup",keepAlive:!0},component:()=>Re(()=>import("./index-04012dcf.js"),["./index-04012dcf.js","./vue-7f5e2b1b.js","./_plugin-vue_export-helper-c27b6911.js","./vue-router-e2815956.js","./StarOutlined-4ad236dd.js","./ShoppingCartOutlined-f58f44d4.js","./index-6c94daa8.css"],import.meta.url)},{path:"/groupDetail",name:"groupDetail",meta:{title:"商品组详情",name:"productgroup",keepAlive:!0},component:()=>Re(()=>import("./index-5953bfc8.js"),["./index-5953bfc8.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./_plugin-vue_export-helper-c27b6911.js","./StarOutlined-4ad236dd.js","./ShoppingCartOutlined-f58f44d4.js","./index-c637cba1.css"],import.meta.url)},{path:"/shopCart",name:"shopCart",meta:{title:"购物车",name:"shopCart",keepAlive:!0},component:()=>Re(()=>import("./index-81d163a5.js"),["./index-81d163a5.js","./vue-7f5e2b1b.js","./index-94b628bc.js","./fullScreen-c6f28d35.js","./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-66e99631.js","./settingColumns-ebab36e5.css","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-aebe903b.js","./vue-router-e2815956.js","./index-991354de.css","./index-8aa8a0f7.css"],import.meta.url)},{path:"/collection",name:"collection",meta:{title:"收藏夹",name:"shopCart",keepAlive:!0},component:()=>Re(()=>import("./index-5adb17f0.js"),["./index-5adb17f0.js","./vue-7f5e2b1b.js","./index-94b628bc.js","./fullScreen-c6f28d35.js","./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-66e99631.js","./settingColumns-ebab36e5.css","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-aebe903b.js","./vue-router-e2815956.js","./index-991354de.css","./index-4496bb0a.css"],import.meta.url)},{path:"/salerPromotion",name:"salerPromotion",meta:{title:"促销方案",name:"salerPromotion",keepAlive:!0},component:()=>Re(()=>import("./index-d692c51c.js"),["./index-d692c51c.js","./vue-router-e2815956.js","./vue-7f5e2b1b.js","./_plugin-vue_export-helper-c27b6911.js","./index-5cfd379d.css"],import.meta.url)},{path:"/promotionDetail",name:"promotionDetail",meta:{title:"促销方案详情",name:"salerPromotion",keepAlive:!1},component:()=>Re(()=>import("./index-f55b2bdd.js"),["./index-f55b2bdd.js","./vue-7f5e2b1b.js","./index-94b628bc.js","./fullScreen-c6f28d35.js","./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-66e99631.js","./settingColumns-ebab36e5.css","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-aebe903b.js","./vue-router-e2815956.js","./index-991354de.css","./index-c06c1f6e.css"],import.meta.url)},{path:"/promotionShopCart",name:"promotionShopCart",meta:{title:"促销购物车",name:"salerPromotion",keepAlive:!0},component:()=>Re(()=>import("./index-e8cbf9f2.js"),["./index-e8cbf9f2.js","./vue-7f5e2b1b.js","./index-94b628bc.js","./fullScreen-c6f28d35.js","./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-66e99631.js","./settingColumns-ebab36e5.css","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-aebe903b.js","./vue-router-e2815956.js","./index-991354de.css","./index-d733aee4.css"],import.meta.url)},{path:"/remitvoucher",name:"remitvoucher",meta:{title:"打款凭证",name:"remitvoucher",keepAlive:!0},component:()=>Re(()=>import("./index-7fac14d0.js"),["./index-7fac14d0.js","./index-9d837a55.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-c6f28d35.js","./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-66e99631.js","./settingColumns-ebab36e5.css","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-aebe903b.js","./index-ad9ec8dc.css","./index-d50cb405.css"],import.meta.url)},{path:"/remitvoucherDetail",name:"remitvoucherDetail",meta:{title:"打款凭证详情",name:"remitvoucher",keepAlive:!1},component:()=>Re(()=>import("./index-4e21c41d.js"),["./index-4e21c41d.js","./index-1ca99e9f.js","./vue-router-e2815956.js","./vue-7f5e2b1b.js","./index-4e8da4ac.js","./_plugin-vue_export-helper-c27b6911.js","./InboxOutlined-46f65305.js","./index-d5f62245.css","./index-542174c1.css","./index-fe94ba97.css"],import.meta.url)},{path:"/myaccountclass",name:"myaccountclass",meta:{title:"我的账户",name:"myaccountclass",keepAlive:!1},component:()=>Re(()=>import("./index-3bb950ac.js"),["./index-3bb950ac.js","./index-9d837a55.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-c6f28d35.js","./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-66e99631.js","./settingColumns-ebab36e5.css","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-aebe903b.js","./index-ad9ec8dc.css","./index-8c774754.css"],import.meta.url)},{path:"/logisticsOrderAgent",name:"logisticsOrderAgent",meta:{title:"物流信息",name:"logisticsOrderAgent",keepAlive:!0},component:()=>Re(()=>import("./index-d98edb04.js"),["./index-d98edb04.js","./index-9d837a55.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-c6f28d35.js","./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-66e99631.js","./settingColumns-ebab36e5.css","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-aebe903b.js","./index-ad9ec8dc.css"],import.meta.url)},{path:"/logisticsOrderDetailAgent",name:"logisticsOrderDetailAgent",meta:{title:"物流详情",name:"logisticsOrderAgent",keepAlive:!0},component:()=>Re(()=>import("./index-cd61fdb0.js"),["./index-cd61fdb0.js","./index-94b628bc.js","./fullScreen-c6f28d35.js","./vue-7f5e2b1b.js","./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-66e99631.js","./settingColumns-ebab36e5.css","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-aebe903b.js","./vue-router-e2815956.js","./index-991354de.css","./index-1ca99e9f.js","./index-4e8da4ac.js","./InboxOutlined-46f65305.js","./index-d5f62245.css","./index-542174c1.css"],import.meta.url)},{path:"/dispatch_agent",name:"dispatch_agent",meta:{title:"发货单",name:"dispatch_agent",keepAlive:!0},component:()=>Re(()=>import("./index-f71fe05a.js"),["./index-f71fe05a.js","./index-9d837a55.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-c6f28d35.js","./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-66e99631.js","./settingColumns-ebab36e5.css","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-aebe903b.js","./index-ad9ec8dc.css"],import.meta.url)},{path:"/dispatchdetail_agent",name:"dispatchdetail_agent",meta:{title:"发货单详情",name:"dispatch_agent",keepAlive:!0},component:()=>Re(()=>import("./index-f8b52ebe.js"),["./index-f8b52ebe.js","./vue-7f5e2b1b.js","./index-1ca99e9f.js","./vue-router-e2815956.js","./index-4e8da4ac.js","./_plugin-vue_export-helper-c27b6911.js","./InboxOutlined-46f65305.js","./index-d5f62245.css","./index-542174c1.css","./index-0e9527ac.js","./index-b172754b.css","./index-7223bd5c.css"],import.meta.url)},{path:"/dispatchMxAgent",name:"dispatchMxAgent",meta:{title:"订单明细",name:"dispatchMxAgent",keepAlive:!0},component:()=>Re(()=>import("./index-e188579b.js"),["./index-e188579b.js","./index-9d837a55.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-c6f28d35.js","./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-66e99631.js","./settingColumns-ebab36e5.css","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-aebe903b.js","./index-ad9ec8dc.css"],import.meta.url)},{path:"/salerafterbill",name:"salerafterbill",meta:{title:"返退单",name:"salerafterbill",keepAlive:!0},component:()=>Re(()=>import("./index-86c04ae3.js"),["./index-86c04ae3.js","./index-9d837a55.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-c6f28d35.js","./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-66e99631.js","./settingColumns-ebab36e5.css","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-aebe903b.js","./index-ad9ec8dc.css","./index-94b628bc.js","./index-991354de.css","./SnippetsOutlined-c00f9846.js","./index-e0fd05a2.css"],import.meta.url)},{path:"/aftersalesBillDetail",name:"aftersalesBillDetail",meta:{title:"返退单详情",name:"salerafterbill",keepAlive:!0},component:()=>Re(()=>import("./index-fdc7324b.js"),["./index-fdc7324b.js","./index-94b628bc.js","./fullScreen-c6f28d35.js","./vue-7f5e2b1b.js","./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-66e99631.js","./settingColumns-ebab36e5.css","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-aebe903b.js","./vue-router-e2815956.js","./index-991354de.css","./index-1ca99e9f.js","./index-4e8da4ac.js","./InboxOutlined-46f65305.js","./index-d5f62245.css","./index-542174c1.css","./index-0eba2700.js","./index-43c8fb05.css","./index-556918ce.css","./index-e0fd05a2.css"],import.meta.url)},{path:"/message",name:"msgcenter",meta:{title:"消息中心",name:"msgcenter",keepAlive:!0},component:()=>Re(()=>import("./index-a987c2d5.js"),["./index-a987c2d5.js","./vue-router-e2815956.js","./vue-7f5e2b1b.js","./_plugin-vue_export-helper-c27b6911.js","./index-e848c8ca.css"],import.meta.url),children:[]},{path:"/team_managent",name:"teamManagent",meta:{title:"团队管理",name:"teamManagent",keepAlive:!0},component:()=>Re(()=>import("./index-e681c0ee.js"),["./index-e681c0ee.js","./index-9d837a55.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-c6f28d35.js","./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-66e99631.js","./settingColumns-ebab36e5.css","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-aebe903b.js","./index-ad9ec8dc.css"],import.meta.url)},{path:"/ftMxAgent",name:"ftMxAgent",meta:{title:"工厂发退明细",name:"ftMxAgent",keepAlive:!0},component:()=>Re(()=>import("./index-bd6de389.js"),["./index-bd6de389.js","./index-9d837a55.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-c6f28d35.js","./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-66e99631.js","./settingColumns-ebab36e5.css","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-aebe903b.js","./index-ad9ec8dc.css"],import.meta.url)},{path:"/saleTarget",name:"saleTarget",meta:{title:"业绩目标",name:"saleTarget",keepAlive:!0},component:()=>Re(()=>import("./index-15a7a9cc.js"),["./index-15a7a9cc.js","./index-2a140774.js","./ext-7719614a.js","./vue-7f5e2b1b.js","./_plugin-vue_export-helper-c27b6911.js","./vue-router-e2815956.js","./index-7c336247.css"],import.meta.url)},{path:"/performanceGoals_saler",name:"performanceGoals_saler",meta:{title:"业绩目标",name:"performanceGoals_saler",keepAlive:!1},component:()=>Re(()=>import("./index-753535b0.js"),["./index-753535b0.js","./index-2a140774.js","./ext-7719614a.js","./vue-7f5e2b1b.js","./_plugin-vue_export-helper-c27b6911.js","./vue-router-e2815956.js","./index-26d2598f.css"],import.meta.url)},{path:"/modulesPayOrder",name:"modulesPayOrder",meta:{title:"付费订单",name:"modulesPayOrder",keepAlive:!0},component:()=>Re(()=>import("./index-191b2892.js"),["./index-191b2892.js","./index-9d837a55.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-c6f28d35.js","./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-66e99631.js","./settingColumns-ebab36e5.css","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-aebe903b.js","./index-ad9ec8dc.css","./UnlockOutlined-181d0d4a.js","./index-2e06f747.css"],import.meta.url)},{path:"/modulesOrderDetails",name:"modulesOrderDetails",meta:{title:"付费订单详情",name:"modulesPayOrder",keepAlive:!0},component:()=>Re(()=>import("./index-f5b92d06.js"),["./index-f5b92d06.js","./index-94b628bc.js","./fullScreen-c6f28d35.js","./vue-7f5e2b1b.js","./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-66e99631.js","./settingColumns-ebab36e5.css","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-aebe903b.js","./vue-router-e2815956.js","./index-991354de.css","./index-1ca99e9f.js","./index-4e8da4ac.js","./InboxOutlined-46f65305.js","./index-d5f62245.css","./index-542174c1.css"],import.meta.url)}],E_e=[{path:"/product",name:"product",meta:{title:"商城",name:"product",keepAlive:!0},component:()=>Re(()=>import("./index-d916a617.js"),["./index-d916a617.js","./vue-7f5e2b1b.js","./_plugin-vue_export-helper-c27b6911.js","./vue-router-e2815956.js","./index-9e61c17d.css"],import.meta.url)},{path:"/a_productDtail",name:"a_productDtail",meta:{title:"商城",name:"product",keepAlive:!0},component:()=>Re(()=>import("./index-70deec58.js"),["./index-70deec58.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./_plugin-vue_export-helper-c27b6911.js","./index-383a006e.css"],import.meta.url)},{path:"/promotionmag",name:"promotionmag",meta:{title:"促销活动",name:"promotionmag",keepAlive:!0},component:()=>Re(()=>import("./index-7f5a8f94.js"),["./index-7f5a8f94.js","./vue-router-e2815956.js","./vue-7f5e2b1b.js","./_plugin-vue_export-helper-c27b6911.js","./index-0e1f00fe.css"],import.meta.url)},{path:"/arpromotionmagDetail",name:"arpromotionmagDetail",meta:{title:"促销活动详情",name:"promotionmag",keepAlive:!0},component:()=>Re(()=>import("./index-d36497c8.js"),["./index-d36497c8.js","./vue-7f5e2b1b.js","./index-0e9527ac.js","./vue-router-e2815956.js","./_plugin-vue_export-helper-c27b6911.js","./index-b172754b.css","./index-79ee4396.css"],import.meta.url)},{path:"/ordersaler",name:"ordersaler",meta:{title:"订货业务",name:"ordersaler",keepAlive:!0},component:()=>Re(()=>import("./index-1c5f047e.js"),["./index-1c5f047e.js","./index-9d837a55.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-c6f28d35.js","./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-66e99631.js","./settingColumns-ebab36e5.css","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-aebe903b.js","./index-ad9ec8dc.css"],import.meta.url)},{path:"/ordersalerDetail",name:"ordersalerDetail",meta:{title:"订货详情",name:"ordersaler",keepAlive:!0},component:()=>Re(()=>import("./index-8d3c75b1.js"),["./index-8d3c75b1.js","./index-94b628bc.js","./fullScreen-c6f28d35.js","./vue-7f5e2b1b.js","./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-66e99631.js","./settingColumns-ebab36e5.css","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-aebe903b.js","./vue-router-e2815956.js","./index-991354de.css","./index-1ca99e9f.js","./index-4e8da4ac.js","./InboxOutlined-46f65305.js","./index-d5f62245.css","./index-542174c1.css","./index-fe1ed8bc.css"],import.meta.url)},{path:"/dispatchmag",name:"dispatchmag",meta:{title:"工厂发退明细",name:"dispatchmag",keepAlive:!0},component:()=>Re(()=>import("./index-3323bc29.js"),["./index-3323bc29.js","./index-9d837a55.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-c6f28d35.js","./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-66e99631.js","./settingColumns-ebab36e5.css","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-aebe903b.js","./index-ad9ec8dc.css"],import.meta.url)},{path:"/logistics",name:"logistics",meta:{title:"物流单",name:"logistics",keepAlive:!0},component:()=>Re(()=>import("./index-75e57067.js"),["./index-75e57067.js","./index-9d837a55.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-c6f28d35.js","./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-66e99631.js","./settingColumns-ebab36e5.css","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-aebe903b.js","./index-ad9ec8dc.css"],import.meta.url)},{path:"/logisticsDetail",name:"logisticsDetail",meta:{title:"物流单详情",name:"logistics",keepAlive:!0},component:()=>Re(()=>import("./index-0ef6bcc7.js"),["./index-0ef6bcc7.js","./index-94b628bc.js","./fullScreen-c6f28d35.js","./vue-7f5e2b1b.js","./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-66e99631.js","./settingColumns-ebab36e5.css","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-aebe903b.js","./vue-router-e2815956.js","./index-991354de.css","./index-1ca99e9f.js","./index-4e8da4ac.js","./InboxOutlined-46f65305.js","./index-d5f62245.css","./index-542174c1.css"],import.meta.url)},{path:"/agentManagemag",name:"agentManagemag",meta:{title:"经销商档案",name:"agentManagemag",keepAlive:!0},component:()=>Re(()=>import("./index-1379514f.js"),["./index-1379514f.js","./index-9d837a55.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-c6f28d35.js","./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-66e99631.js","./settingColumns-ebab36e5.css","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-aebe903b.js","./index-ad9ec8dc.css","./index-72fe49c0.js","./index-e0fd05a2.css","./index-90955cc1.css","./index-b3e1d320.css"],import.meta.url)},{path:"/agentManagemagDetail",name:"agentManagemagDetail",meta:{title:"经销商档案详情",name:"agentManagemag",keepAlive:!0},component:()=>Re(()=>import("./index-27ee049d.js"),["./index-27ee049d.js","./index-1ca99e9f.js","./vue-router-e2815956.js","./vue-7f5e2b1b.js","./index-4e8da4ac.js","./_plugin-vue_export-helper-c27b6911.js","./InboxOutlined-46f65305.js","./index-d5f62245.css","./index-542174c1.css","./index-72fe49c0.js","./index-e0fd05a2.css","./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-66e99631.js","./settingColumns-ebab36e5.css","./index-f3eb12ea.css","./index-b3e1d320.css","./index-991354de.css"],import.meta.url)}],D_e=[{path:"/ordermag_cucu",name:"ordermag_cucu",meta:{title:"订单管理",name:"ordermag_cucu",keepAlive:!0},component:()=>Re(()=>import("./index-20e93725.js"),["./index-20e93725.js","./index-9d837a55.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-c6f28d35.js","./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-66e99631.js","./settingColumns-ebab36e5.css","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-aebe903b.js","./index-ad9ec8dc.css","./index-72fe49c0.js","./index-e0fd05a2.css","./index-3bfeb93e.js"],import.meta.url)},{path:"/orderDetail_cucu",name:"orderDetail_cucu",meta:{title:"订单详情",name:"ordermag_cucu",keepAlive:!0},component:()=>Re(()=>import("./index-12379b8c.js"),["./index-12379b8c.js","./vue-7f5e2b1b.js","./index-94b628bc.js","./fullScreen-c6f28d35.js","./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-66e99631.js","./settingColumns-ebab36e5.css","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-aebe903b.js","./vue-router-e2815956.js","./index-991354de.css","./index-c2f9d2e2.js","./InboxOutlined-46f65305.js","./index-a80ae4fe.css","./index-0eba2700.js","./index-43c8fb05.css","./index-72fe49c0.js","./index-e0fd05a2.css","./index-1ca99e9f.js","./index-4e8da4ac.js","./index-d5f62245.css","./index-542174c1.css","./index-d259f5a6.js","./index-697cb773.css","./index-3bfeb93e.js","./index-52580d1b.css","./index-b3e1d320.css"],import.meta.url)}],zy=[{path:"/",name:"login",component:()=>Re(()=>import("./login-11a6536c.js"),["./login-11a6536c.js","./vue-router-e2815956.js","./vue-7f5e2b1b.js","./md5-86b3479c.js","./_plugin-vue_export-helper-c27b6911.js","./login-00c3c87f.css"],import.meta.url)},{path:"/home",name:"home",component:()=>Re(()=>import("./index-cb2d2740.js"),["./index-cb2d2740.js","./vue-7f5e2b1b.js","./ext-7719614a.js","./vue-router-e2815956.js","./changePasd-ae539bab.js","./md5-86b3479c.js","./_plugin-vue_export-helper-c27b6911.js","./ShoppingCartOutlined-f58f44d4.js","./index-16f829a2.css"],import.meta.url),redirect:"/dataDashboard",children:[{path:"/dataDashboard",name:"dataDashboard",meta:{title:"数据看板",name:"dataDashboard",keepAlive:!0},component:()=>Re(()=>import("./index-088f4022.js"),["./index-088f4022.js","./_plugin-vue_export-helper-c27b6911.js","./vue-7f5e2b1b.js","./index-2a140774.js","./ext-7719614a.js","./vue-router-e2815956.js","./index-bf7b1d62.css"],import.meta.url)},{path:"/reportcenter",name:"reportcenter",meta:{title:"报表中心",name:"reportcenter",keepAlive:!0},component:()=>Re(()=>import("./index-65575dd1.js"),["./index-65575dd1.js","./index-9d837a55.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-c6f28d35.js","./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-66e99631.js","./settingColumns-ebab36e5.css","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-aebe903b.js","./index-ad9ec8dc.css","./index-d588c297.css"],import.meta.url)},{path:"/reportsManage",name:"reportsManage",meta:{title:"报表管理",name:"reportsManage",keepAlive:!0},component:()=>Re(()=>import("./index-3a025166.js"),["./index-3a025166.js","./index-9d837a55.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-c6f28d35.js","./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-66e99631.js","./settingColumns-ebab36e5.css","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-aebe903b.js","./index-ad9ec8dc.css","./index-69fcf67f.css"],import.meta.url)},{path:"/custom_option",name:"custom_option",meta:{title:"自定义选项分类",name:"custom_option",keepAlive:!0},component:()=>Re(()=>import("./index-20955120.js"),["./index-20955120.js","./index-9d837a55.js","./vue-7f5e2b1b.js","./vue-router-e2815956.js","./fullScreen-c6f28d35.js","./settingColumns.vue_vue_type_style_index_0_scoped_f5cfb91f_lang-66e99631.js","./settingColumns-ebab36e5.css","./_plugin-vue_export-helper-c27b6911.js","./SettingOutlined-aebe903b.js","./index-ad9ec8dc.css","./index-94b628bc.js","./index-991354de.css"],import.meta.url)},{path:"/securityConfig",name:"companyInformation",meta:{title:"企业设置",name:"companyInformation",keepAlive:!0},component:()=>Re(()=>import("./index-a70b564f.js"),["./index-a70b564f.js","./vue-7f5e2b1b.js","./md5-86b3479c.js","./index-4e8da4ac.js","./_plugin-vue_export-helper-c27b6911.js","./InboxOutlined-46f65305.js","./index-d5f62245.css","./SettingOutlined-aebe903b.js","./vue-router-e2815956.js","./index-6a281feb.css"],import.meta.url)},{path:"/setenterpriseInfo",name:"setenterpriseInfo",meta:{title:"企业信息",name:"setenterpriseInfo",keepAlive:!0},component:()=>Re(()=>import("./index-ab3df128.js"),["./index-ab3df128.js","./_plugin-vue_export-helper-c27b6911.js","./vue-7f5e2b1b.js","./changePasd-ae539bab.js","./md5-86b3479c.js","./vue-router-e2815956.js","./index-eac00289.css"],import.meta.url)},{path:"/modulesPay",name:"modulesPay",meta:{title:"模块购买",name:"modulesPay",keepAlive:!0},component:()=>Re(()=>import("./index-d2fbfa70.js"),["./index-d2fbfa70.js","./_plugin-vue_export-helper-c27b6911.js","./vue-7f5e2b1b.js","./UnlockOutlined-181d0d4a.js","./vue-router-e2815956.js","./index-bc015b2e.css"],import.meta.url)}]},{path:"/404",name:"404",component:()=>Re(()=>import("./404-6a71546a.js"),["./404-6a71546a.js","./_plugin-vue_export-helper-c27b6911.js","./vue-7f5e2b1b.js","./404-0653601a.css"],import.meta.url)},{path:"/:catchAll(.*)",redirect:"/404"}];zy[1].children=[...zy[1].children,...C_e,...$_e,...E_e,...D_e];const Ly=GB({history:XB(),routes:zy});Ly.beforeEach((e,t,n)=>{console.log(e,t);const r=_o();r.appData(e.meta.name).then(()=>{let o=r.app;if(e.name!=="404"&&e.name!=="login")if(!r.hasAppData(e.meta.name))un.error("未授权该应用,无法访问!"),Ly.back();else{if(o&&o.isneedpay)return{name:"modulesPay"};const a=S_e();a.saveRoute(e),r.appData(e.meta.name),a.activeKey=e.name,n()}else n()})});const Pu=Ly,os=Pw("base",{state:()=>({router:YB(),classAct:null,Provinces:[],tableRecord:[],colMap:new Map,fullscreen:!1,siteInfo:{},themeAlgorithm:"defaultAlgorithm",canPointer:!0,open:!1,num:0,currentComponent:null,connection:0,billChangeData:{},useloading:!1}),persist:{enabled:!0,strategies:[{storage:localStorage,paths:["themeAlgorithm"]}]},getters:{},actions:{async siteData(){const e=await _i.requested({classname:"webmanage.site.site",method:"querySite",content:{}});this.siteInfo=e.data},async ProvincesData(){const e=await _i.requested({classname:"system.tools",method:"query_arealist",content:{}});e.data;function t(n){let r=Object.keys(n).map((o,a,i)=>{var l={label:o,value:o,item:n[o]};return l});return r.forEach(o=>{o.item instanceof Array?(o.children=[],o.item.forEach(a=>{o.children.push({label:a,value:a})})):Object.keys(o.item).length!==0&&(o.children=t(o.item))}),r}return t(e.data)},changeLayout(){this.themeAlgorithm=="defaultAlgorithm"?this.themeAlgorithm="compactAlgorithm":this.themeAlgorithm="defaultAlgorithm"},async shopCartNum(){const e=await _i.requested({id:20220927093202,content:{}});this.num=e.data.num},async openDrawerPage(e,t){this.router.push({name:this.router.currentRoute.name,query:{id:t}});const r=await this.router.getRoutes().filter(o=>o.name==e)[0].components.default();this.currentComponent=r.default,this.open=!this.open},saveBillChangeData(e){this.billChangeData=e},checkNeedSaveData(e,t){let n=this.billChangeData;const r=n.ndid;if(n.editing&&r.includes(e.data.id)){let o;e.cancelToken=new t.CancelToken(a=>{o=a}),o(`${e.url}请求被中断`),wn.confirm({title:"提示",icon:C(rp),content:"当前编辑数据未保存,是否保存?",okText:"保存",cancelText:"不保存",onOk(){console.log("OK"),n.fn()},onCancel(){console.log("Cancel")}})}else return!0},addRepeatProd(e){return new Promise(async(t,n)=>{const r=await _i.requested(e);if(!r.data.isrepeat&&r.data.items.length>0)un.error(`${r.data.items.map(o=>o.itemname).join(",")}已存在,不允许添加重复商品!`);else{if(r.data.items.length==0)return t();wn.confirm({title:"重复提示!",icon:C(rp),okText:"确认添加",content:`${r.data.items.map(o=>o.itemname).join(",")}已存在,是否继续添加?`,onOk(){t()},onCancel(){console.log("Cancel")},class:"test"})}})}}});const A_e={__name:"App",setup(e){const t=os();let{themeAlgorithm:n,canPointer:r}=rbe(t);return Dn.locale("zh"),Qe(()=>{}),(o,a)=>{const i=uS("router-view"),l=uS("a-config-provider");return WB(),UB("div",{class:qB(xn(r)?"":"stop_pionet")},[C(l,{theme:{algorithm:xn(jye)[xn(n)]},csp:{nonce:"YourNonceCode"},"component-shape":"round",locale:xn(Xye)},{default:KB(()=>[C(i)]),_:1},8,["theme","locale"])],2)}}};const DT=(e,t)=>{const n=e.storage||sessionStorage,r=e.key||t.$id;if(e.paths){const o=e.paths.reduce((a,i)=>(a[i]=t.$state[i],a),{});n.setItem(r,JSON.stringify(o))}else n.setItem(r,JSON.stringify(t.$state))};var O_e=({options:e,store:t})=>{var n,r,o,a;if((n=e.persist)!=null&&n.enabled){const i=[{key:t.$id,storage:sessionStorage}],l=(o=(r=e.persist)==null?void 0:r.strategies)!=null&&o.length?(a=e.persist)==null?void 0:a.strategies:i;l.forEach(s=>{const u=s.storage||sessionStorage,c=s.key||t.$id,d=u.getItem(c);d&&(t.$patch(JSON.parse(d)),DT(s,t))}),t.$subscribe(()=>{l.forEach(s=>{DT(s,t)})})}};const RB=Jye();RB.use(O_e);const Rc=TT(A_e);un.config({rtl:!0,maxCount:1,getContainer:()=>document.getElementById("app")});Rc.use(RB);Rc.use(Pu);Rc.use(Wye);Rc.use(sv);Rc.mount("#app");export{_i as A,iP as C,mc as D,rp as E,oi as L,wn as M,LQ as P,xo as R,$ie as S,w_e as U,_o as a,vt as b,os as c,FB as d,uae as e,y8 as f,KZ as g,qn as h,oP as i,Aa as j,zr as k,aae as l,un as m,rw as n,Pw as o,hoe as p,Av as q,Pu as r,rbe as s,jye as t,S_e as u,xie as v,K2 as w};
|