@antdv/ui
Version:
Fork from Ant Design Vue. An enterprise-class UI design language and Vue-based implementation
30 lines • 1.45 MB
JavaScript
/*! Ant Design Vue UI v4.2.4 */(function(L,r){typeof exports=="object"&&typeof module!="undefined"?r(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],r):(L=typeof globalThis!="undefined"?globalThis:L||self,r(L.AntDesignVueUI={},L.Vue))})(this,function(L,r){"use strict";const Kl=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],q8=["success","processing","error","default","warning"],Gl="internalMark",Q8=Symbol("skipFlatten"),Z8=Symbol("InputDefaultKey"),mn={adjustX:1,adjustY:1},gn=[0,0],I1={left:{points:["cr","cl"],overflow:mn,offset:[-4,0],targetOffset:gn},right:{points:["cl","cr"],overflow:mn,offset:[4,0],targetOffset:gn},top:{points:["bc","tc"],overflow:mn,offset:[0,-4],targetOffset:gn},bottom:{points:["tc","bc"],overflow:mn,offset:[0,4],targetOffset:gn},topLeft:{points:["bl","tl"],overflow:mn,offset:[0,-4],targetOffset:gn},leftTop:{points:["tr","tl"],overflow:mn,offset:[-4,0],targetOffset:gn},topRight:{points:["br","tr"],overflow:mn,offset:[0,-4],targetOffset:gn},rightTop:{points:["tl","tr"],overflow:mn,offset:[4,0],targetOffset:gn},bottomRight:{points:["tr","br"],overflow:mn,offset:[0,4],targetOffset:gn},rightBottom:{points:["bl","br"],overflow:mn,offset:[4,0],targetOffset:gn},bottomLeft:{points:["tl","bl"],overflow:mn,offset:[0,4],targetOffset:gn},leftBottom:{points:["br","bl"],overflow:mn,offset:[-4,0],targetOffset:gn}},jn=["xxxl","xxl","xl","lg","md","sm","xs"],J8=["warning","error",""],eT=["success","warning","error","validating",""],T1=["normal","exception","active","success"],tT=Kl.map(e=>`${e}-inverse`),nT=["success","processing","error","default","warning"];function Xl(e,t=!0){return t?[...tT,...Kl].includes(e):Kl.includes(e)}function oT(e){return nT.includes(e)}function _t(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}let E1={};function rT(e,t){}function aT(e,t){}function M1(e,t,n){!t&&!E1[n]&&(e(!1,n),E1[n]=!0)}function O1(e,t){M1(rT,e,t)}function iT(e,t){M1(aT,e,t)}let nt=()=>{};function lT(e,t,n){O1(e,`[ant-design-vue: ${t}] ${n}`)}function Ul(e){return!Number.isNaN(Number.parseFloat(e))&&Number.isFinite(e)}function pf(e){return e!=null}function hf(e){return e!=null&&e!==""}function mf(e){return e!=null&&e===e.window}const gf=e=>typeof e=="function",R1=Array.isArray,sT=e=>typeof e=="string",cT=e=>e!==null&&typeof e=="object",dT=/^on[^a-z]/,uT=e=>dT.test(e);function fT(e){return e.length===1&&e[0].type===r.Fragment}function pT(e){return e==null||e===""||Array.isArray(e)&&e.length===0}function ri(e){return e&&(e.type===r.Comment||e.type===r.Fragment&&e.children.length===0||e.type===r.Text&&e.children.trim()==="")}function hT(e){return e&&e.type===r.Text}function ht(e){return Array.isArray(e)&&e.length===1&&(e=e[0]),e&&e.__v_isVNode&&typeof e.type!="symbol"}function Yl(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 A1(e,t,n=!1){const o=new Set;function a(i,l,s=1){const d=o.has(i);if(O1(!d,"Warning: There may be circular references"),d)return!1;if(i===l)return!0;if(n&&s>1)return!1;o.add(i);const c=s+1;if(Array.isArray(i)){if(!Array.isArray(l)||i.length!==l.length)return!1;for(let u=0;u<i.length;u++)if(!a(i[u],l[u],c))return!1;return!0}if(i&&l&&typeof i=="object"&&typeof l=="object"){const u=Object.keys(i);return u.length!==Object.keys(l).length?!1:u.every(f=>a(i[f],l[f],c))}return!1}return a(e,t)}function vf(){if(typeof navigator=="undefined"||typeof window=="undefined")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-([mpt])|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c([\- _agpst])|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|\/([klu])|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([\- ov])|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[23]|n30(0|2)|n50([025])|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([adt])|pdxg|pg(13|-([1-8c]))|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([\-01])|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.substring(0,4))}function V1(e,t){return e.classList?e.classList.contains(t):` ${e.className} `.includes(` ${t} `)}function ql(e,t){e.classList?e.classList.add(t):V1(e,t)||(e.className=`${e.className} ${t}`)}function Ql(e,t){if(e.classList)e.classList.remove(t);else if(V1(e,t)){const n=e.className;e.className=` ${n} `.replace(` ${t} `," ")}}function X(...e){const t=[];for(let n=0;n<e.length;n++){const o=e[n];if(o){if(sT(o))t.push(o);else if(R1(o))for(let a=0;a<o.length;a++){const i=X(o[a]);i&&t.push(i)}else if(cT(o))for(const a in o)o[a]&&t.push(a)}}return t.join(" ")}function Po(e,t){return e&&e.contains?e.contains(t):!1}function mT(){const e=document.documentElement.clientWidth,t=window.innerHeight||document.documentElement.clientHeight;return{width:e,height:t}}function Zl(e){const t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.scrollX||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.scrollX||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}function gT(e){return Array.prototype.slice.apply(e).map(n=>`${n}: ${e.getPropertyValue(n)};`).join("")}function vT(e){return Object.keys(e).reduce((t,n)=>{const o=e[n];return typeof o=="undefined"||o===null||(t+=`${n}: ${e[n]};`),t},"")}const D1="data-vc-order",bT="vc-util-key",bf=new Map;function B1({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:bT}function Jl(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function yT(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function _1(e){return Array.from((bf.get(e)||e).children).filter(t=>t.tagName==="STYLE")}function F1(e,t={}){if(!_t())return null;const{csp:n,prepend:o}=t,a=document.createElement("style");a.setAttribute(D1,yT(o)),n!=null&&n.nonce&&(a.nonce=n==null?void 0:n.nonce),a.innerHTML=e;const i=Jl(t),{firstChild:l}=i;if(o){if(o==="queue"){const s=_1(i).filter(d=>["prepend","prependQueue"].includes(d.getAttribute(D1)));if(s.length)return i.insertBefore(a,s[s.length-1].nextSibling),a}i.insertBefore(a,l)}else i.appendChild(a);return a}function k1(e,t={}){const n=Jl(t);return _1(n).find(o=>o.getAttribute(B1(t))===e)}function es(e,t={}){const n=k1(e,t);n&&Jl(t).removeChild(n)}function ST(e,t){const n=bf.get(e);if(!n||!Po(document,n)){const o=F1("",t),{parentNode:a}=o;bf.set(e,a),e.removeChild(o)}}function ai(e,t,n={}){var o,a,i;const l=Jl(n);ST(l,n);const s=k1(t,n);if(s)return(o=n.csp)!=null&&o.nonce&&s.nonce!==((a=n.csp)==null?void 0:a.nonce)&&(s.nonce=(i=n.csp)==null?void 0:i.nonce),s.innerHTML!==e&&(s.innerHTML=e),s;const d=F1(e,n);return d.setAttribute(B1(n),t),d}const L1=()=>_t()&&window.document.documentElement;function z1(e){if(_t()&&window.document.documentElement){const t=Array.isArray(e)?e:[e],{documentElement:n}=window.document;return t.some(o=>o in n.style)}return!1}function $T(e,t){if(!z1(e))return!1;const n=document.createElement("div"),o=n.style[e];return n.style[e]=t,n.style[e]!==o}function yf(e,t){return!Array.isArray(e)&&t!==void 0?$T(e,t):z1(e)}let ts;function CT(){if(!L1())return!1;if(ts!==void 0)return ts;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),ts=e.scrollHeight===1,document.body.removeChild(e),ts}let yt=!1;try{const e=Object.defineProperty({},"passive",{get(){yt=!0}});window.addEventListener("testPassive",null,e),window.removeEventListener("testPassive",null,e)}catch(e){}function it(e,t,n,o){if(e&&e.addEventListener){let a=o;a===void 0&&yt&&(t==="touchstart"||t==="touchmove"||t==="wheel")&&(a={passive:!1}),e.addEventListener(t,n,a)}return{remove:()=>{e&&e.removeEventListener&&e.removeEventListener(t,n)}}}const wT=function(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`).toLowerCase()},xT=function(e){return/[height|width]$/.test(e)},H1=function(e){let t="";const n=Object.keys(e);return n.forEach((o,a)=>{let i=e[o];o=wT(o),xT(o)&&typeof i=="number"&&(i=`${i}px`),i===!0?t+=o:i===!1?t+=`not ${o}`:t+=`(${o}: ${i})`,a<n.length-1&&(t+=" and ")}),t};function Sf(e){let t="";return typeof e=="string"?e:Array.isArray(e)?(e.forEach((n,o)=>{t+=H1(n),o<e.length-1&&(t+=", ")}),t):H1(e)}const ee={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>=ee.F1&&n<=ee.F12)return!1;switch(n){case ee.ALT:case ee.CAPS_LOCK:case ee.CONTEXT_MENU:case ee.CTRL:case ee.DOWN:case ee.END:case ee.ESC:case ee.HOME:case ee.INSERT:case ee.LEFT:case ee.MAC_FF_META:case ee.META:case ee.NUMLOCK:case ee.NUM_CENTER:case ee.PAGE_DOWN:case ee.PAGE_UP:case ee.PAUSE:case ee.PRINT_SCREEN:case ee.RIGHT:case ee.SHIFT:case ee.UP:case ee.WIN_KEY:case ee.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=ee.ZERO&&t<=ee.NINE||t>=ee.NUM_ZERO&&t<=ee.NUM_MULTIPLY||t>=ee.A&&t<=ee.Z||window.navigator.userAgent.includes("WebKit")&&t===0)return!0;switch(t){case ee.SPACE:case ee.QUESTION_MARK:case ee.NUM_PLUS:case ee.NUM_MINUS:case ee.NUM_PERIOD:case ee.NUM_DIVISION:case ee.SEMICOLON:case ee.DASH:case ee.EQUALS:case ee.COMMA:case ee.PERIOD:case ee.SLASH:case ee.APOSTROPHE:case ee.SINGLE_QUOTE:case ee.OPEN_SQUARE_BRACKET:case ee.BACKSLASH:case ee.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};function Io(e){return e==null?[]:Array.isArray(e)?e:[e]}function $f(e){const t=Object.create(null);return n=>t[n]||(t[n]=e(n))}const NT=/-(\w)/g,Jo=$f(e=>e.replace(NT,(t,n)=>n?n.toUpperCase():"")),PT=/\B([A-Z])/g,IT=$f(e=>e.replace(PT,"-$1").toLowerCase()),TT=$f(e=>e.charAt(0).toUpperCase()+e.slice(1));function ns(e=[]){for(let t=0,n=e.length;t<n;t++)if(e[t]!==void 0)return e[t]}function j1(e,t){let n=e;for(let o=0;o<t.length;o+=1){if(n==null)return;n=n[t[o]]}return n}function Le(e,t){const n=Object.assign({},e);for(let o=0;o<t.length;o+=1){const a=t[o];delete n[a]}return n}const W1=`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 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`.split(/[\s\n]+/),ET="aria-",MT="data-";function K1(e,t){return e.indexOf(t)===0}function To(e,t=!1){let n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n={...t};const o={};return Object.keys(e).forEach(a=>{(n.aria&&(a==="role"||K1(a,ET))||n.data&&K1(a,MT)||n.attr&&(W1.includes(a)||W1.includes(a.toLowerCase())))&&(o[a]=e[a])}),o}function G1(e,t,n,o){if(!t.length)return n;const[a,...i]=t;let l;return!e&&typeof a=="number"?l=[]:Array.isArray(e)?l=[...e]:l={...e},o&&n===void 0&&i.length===1?delete l[a][i[0]]:l[a]=G1(l[a],i,n,o),l}function OT(e,t,n,o=!1){return t.length&&o&&n===void 0&&!j1(e,t.slice(0,-1))?e:G1(e,t,n,o)}function RT(e,t,n,o){let a=n?n.call(o,e,t):void 0;if(a!==void 0)return!!a;if(e===t)return!0;if(typeof e!="object"||!e||typeof t!="object"||!t)return!1;const i=Object.keys(e),l=Object.keys(t);if(i.length!==l.length)return!1;const s=Object.prototype.hasOwnProperty.bind(t);for(let d=0;d<i.length;d++){const c=i[d];if(!s(c))return!1;const u=e[c],f=t[c];if(a=n?n.call(o,u,f,c):void 0,a===!1||a===void 0&&u!==f)return!1}return!0}function Kr(e,t){return RT(r.toRaw(e),r.toRaw(t))}const AT={adjustX:1,adjustY:1},X1={adjustX:0,adjustY:0},VT=[0,0];function U1(e){return typeof e=="boolean"?e?AT:X1:{...X1,...e}}function Cf(e){const{arrowWidth:t=4,horizontalArrowShift:n=16,verticalArrowShift:o=8,autoAdjustOverflow:a,arrowPointAtCenter:i}=e,l={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,-(o+t)]},topRight:{points:["br","tc"],offset:[n+t,-4]},rightTop:{points:["tl","cr"],offset:[4,-(o+t)]},bottomRight:{points:["tr","bc"],offset:[n+t,4]},rightBottom:{points:["bl","cr"],offset:[4,o+t]},bottomLeft:{points:["tl","bc"],offset:[-(n+t),4]},leftBottom:{points:["br","cl"],offset:[-4,o+t]}};return Object.keys(l).forEach(s=>{l[s]=i?{...l[s],overflow:U1(a),targetOffset:VT}:{...I1[s],overflow:U1(a)},l[s].ignoreShake=!0}),l}function wf(e,t){var n,o;if(typeof window=="undefined")return 0;const a=t?"scrollTop":"scrollLeft";let i=0;return mf(e)?i=e[t?"pageYOffset":"pageXOffset"]:e instanceof Document?i=e.documentElement[a]:(e instanceof HTMLElement||e)&&(i=e[a]),e&&!mf(e)&&typeof i!="number"&&(i=(o=((n=e.ownerDocument)!=null?n:e).documentElement)==null?void 0:o[a]),i}let xf;function os(e){if(typeof document=="undefined")return 0;if(e||xf===void 0){const t=document.createElement("div");t.style.width="100%",t.style.height="200px";const n=document.createElement("div"),o=n.style;o.position="absolute",o.top="0",o.left="0",o.pointerEvents="none",o.visibility="hidden",o.width="200px",o.height="150px",o.overflow="hidden",n.appendChild(t),document.body.appendChild(n);const a=t.offsetWidth;n.style.overflow="scroll";let i=t.offsetWidth;a===i&&(i=n.clientWidth),document.body.removeChild(n),xf=a-i}return xf}function Y1(e){const t=e.match(/^(.*)px$/),n=Number(t==null?void 0:t[1]);return Number.isNaN(n)?os():n}function DT(e){if(typeof document=="undefined"||!e||!(e instanceof Element))return{width:0,height:0};const{width:t,height:n}=getComputedStyle(e,"::-webkit-scrollbar");return{width:Y1(t),height:Y1(n)}}let q1=e=>setTimeout(e,16),Q1=e=>clearTimeout(e);typeof window!="undefined"&&"requestAnimationFrame"in window&&(q1=e=>window.requestAnimationFrame(e),Q1=e=>window.cancelAnimationFrame(e));let Z1=0;const Nf=new Map;function J1(e){Nf.delete(e)}function Be(e,t=1){Z1+=1;const n=Z1;function o(a){if(a===0)J1(n),e();else{const i=q1(()=>{o(a-1)});Nf.set(n,i)}}return o(t),n}Be.cancel=e=>{const t=Nf.get(e);return J1(t),Q1(t)};function BT(e,t,n,o){const a=n-t;return e/=o/2,e<1?a/2*e*e*e+t:a/2*((e-=2)*e*e+2)+t}function Pf(e,t={}){const{getContainer:n=()=>window,callback:o,duration:a=450}=t,i=n(),l=wf(i,!0),s=Date.now(),d=()=>{const u=Date.now()-s,f=BT(u>a?a:u,l,e,a);mf(i)?i.scrollTo(window.scrollX,f):i instanceof Document?i.documentElement.scrollTop=f:i.scrollTop=f,u<a?Be(d):typeof o=="function"&&o()};Be(d)}function Ft(e,t,n){return X({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}function An(e,t){return t||e}function If(e){let t;const n=a=>()=>{t=null,e(...a)},o=(...a)=>{t==null&&(t=Be(n(a)))};return o.cancel=()=>{Be.cancel(t),t=null},o}function Tf(e){const t=new Map;return e.forEach((n,o)=>{t.set(n,o)}),t}function _T(e){const t=new Map;return e.forEach(({disabled:n,key:o},a)=>{n&&t.set(o,a)}),t}const FT=Object.prototype.hasOwnProperty,eS=(e,t)=>FT.call(e,t);function kT(e,t,n,o){const a=e[n];if(a!=null){const i=eS(a,"default");if(i&&o===void 0){const l=a.default;o=a.type!==Function&&gf(l)?l():l}a.type===Boolean&&(!eS(t,n)&&!i?o=!1:o===""&&(o=!0))}return o}function LT(e){return Object.keys(e).reduce((t,n)=>((n.startsWith("data-")||n.startsWith("aria-"))&&(t[n]=e[n]),t),{})}function er(e){return typeof e=="number"?`${e}px`:e}function Gr(e,t={},n){return typeof e=="function"?e(t):e!=null?e:n}function zT(e){let t;const n=new Promise(a=>{t=e(()=>{a(!0)})}),o=()=>{t==null||t()};return o.then=(a,i)=>n.then(a,i),o.promise=n,o}function Ef(e){return e.default=void 0,e}function Mf(e){const t=Object.keys(e),n={},o={},a={};for(let i=0,l=t.length;i<l;i++){const s=t[i];uT(s)?(n[s[2].toLowerCase()+s.slice(3)]=e[s],o[s]=e[s]):a[s]=e[s]}return{onEvents:o,events:n,extraAttrs:a}}function HT(e="",t=!1){const n={},o=/;(?![^(]*\))/g,a=/:(.+)/;return typeof e=="object"?e:(e.split(o).forEach(i=>{if(i){const l=i.split(a);if(l.length>1){const s=t?Jo(l[0].trim()):l[0].trim();n[s]=l[1].trim()}}}),n)}function ao(e,t){return e[t]!==void 0}const tS=Symbol("skipFlatten");function Ze(e=[],t=!0){const n=Array.isArray(e)?e:[e],o=[];return n.forEach(a=>{Array.isArray(a)?o.push(...Ze(a,t)):a&&a.type===r.Fragment?a.key===tS?o.push(a):o.push(...Ze(a.children,t)):a&&r.isVNode(a)?t&&!ri(a)?o.push(a):t||o.push(a):hf(a)&&o.push(a)}),o}function rs(e,t="default",n={}){if(r.isVNode(e))return e.type===r.Fragment?t==="default"?Ze(e.children):[]:e.children&&e.children[t]?Ze(e.children[t](n)):[];{const o=e.$slots[t]&&e.$slots[t](n);return Ze(o)}}function jt(e){var t;let n=((t=e==null?void 0:e.vnode)==null?void 0:t.el)||e&&(e.$el||e);for(;n&&!n.tagName;)n=n.nextSibling;return n}function nS(e){const t={};if(e.$&&e.$.vnode){const n=e.$.vnode.props||{};Object.keys(e.$props).forEach(o=>{const a=e.$props[o],i=IT(o);(a!==void 0||i in n)&&(t[o]=a)})}else if(r.isVNode(e)&&typeof e.type=="object"){const n=e.props||{},o={};Object.keys(n).forEach(i=>{o[Jo(i)]=n[i]});const a=e.type.props||{};Object.keys(a).forEach(i=>{const l=kT(a,o,i,o[i]);(l!==void 0||i in o)&&(t[i]=l)})}return t}function oS(e,t="default",n=e,o=!0){let a;if(e.$){const i=e[t];if(i!==void 0)return typeof i=="function"&&o?i(n):i;a=e.$slots[t],a=o&&a?a(n):a}else if(r.isVNode(e)){const i=e.props&&e.props[t];if(i!==void 0&&e.props!==null)return typeof i=="function"&&o?i(n):i;e.type===r.Fragment?a=e.children:e.children&&e.children[t]&&(a=e.children[t],a=o&&a?a(n):a)}return Array.isArray(a)&&(a=Ze(a),a=a.length===1?a[0]:a,a=a.length===0?void 0:a),a}function rS(e={},t=!0){let n={};return e.$?n={...n,...e.$attrs}:n={...n,...e.props},Mf(n)[t?"onEvents":"events"]}function jT(e){const n=((r.isVNode(e)?e.props:e.$attrs)||{}).class||{};let o={};return typeof n=="string"?n.split(" ").forEach(a=>{o[a.trim()]=!0}):Array.isArray(n)?X(n).split(" ").forEach(a=>{o[a.trim()]=!0}):o={...o,...n},o}function aS(e,t){let o=((r.isVNode(e)?e.props:e.$attrs)||{}).style||{};if(typeof o=="string")o=HT(o,t);else if(t&&o){const a={};return Object.keys(o).forEach(i=>a[Jo(i)]=o[i]),a}return o}function lt(e=[]){const t=[];return e.forEach(n=>{Array.isArray(n)?t.push(...n):(n==null?void 0:n.type)===r.Fragment?t.push(...lt(n.children)):t.push(n)}),t.filter(n=>!ri(n))}function ii(e){if(e){const t=lt(e);return t.length?t:void 0}else return e}function St(e,t,n="default"){var o,a;return(a=t[n])!=null?a:(o=e[n])==null?void 0:o.call(e)}var tr={methods:{setState(e={},t){let n=typeof e=="function"?e(this.$data,this.$props):e;if(this.getDerivedStateFromProps){const o=this.getDerivedStateFromProps(nS(this),{...this.$data,...n});if(o===null)return;n={...n,...o||{}}}Object.assign(this.$data,n),this._.isMounted&&this.$forceUpdate(),r.nextTick(()=>{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 o=0,a=n.length;o<a;o++)n[o](...e.slice(1));else n(...e.slice(1))}}};function li(){const e=t=>{e.current=t};return e}function on(e){const t=r.shallowRef();return r.watchEffect(()=>{t.value=e()},{flush:"sync"}),t}function _e(e,t){const n={...e};return Object.keys(t).forEach(o=>{const a=n[o];if(a)a.type||a.default?a.default=t[o]:a.def?a.def(t[o]):n[o]={type:a,default:t[o]};else throw new Error(`not have ${o} prop`)}),n}const Wt=(...e)=>e,WT=(...e)=>e;function rt(e){const t=e;return t.install=function(n){n.component(t.displayName||t.name,e)},e}function nr(){return{type:[Function,Array]}}function xe(e){return{type:Object,default:e}}function ae(e){return{type:Boolean,default:e}}function J(e){return{type:Function,default:e}}function Ue(e,t){const n={validator:()=>!0,default:e};return n}function kt(){return{validator:()=>!0}}function We(e){return{type:Array,default:e}}function Ne(e){return{type:String,default:e}}function Ee(e,t){return e?{type:e,default:t}:Ue(t)}function KT(e){for(var t=-1,n=e==null?0:e.length,o={};++t<n;){var a=e[t];o[a[0]]=a[1]}return o}function iS(e,...t){return r.reactive(KT(t.map(n=>[n,r.toRef(e,n)])))}function as(e){if(!r.isRef(e))return r.reactive(e);const t=new Proxy({},{get(n,o,a){return Reflect.get(e.value,o,a)},set(n,o,a){return e.value[o]=a,!0},deleteProperty(n,o){return Reflect.deleteProperty(e.value,o)},has(n,o){return Reflect.has(e.value,o)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return r.reactive(t)}function Ke(e,t={},n=!0,o=!1){let a=e;if(Array.isArray(e)&&(a=lt(e)[0]),!a)return null;const i=r.cloneVNode(a,t,o);return i.props=n?{...i.props,...t}:i.props,nt(typeof i.props.class!="object"),i}function GT(e,t={},n=!0){return e.map(o=>Ke(o,t,n))}function si(e,t={},n=!0,o=!1){if(Array.isArray(e))return e.map(a=>si(a,t,n,o));{if(!r.isVNode(e))return e;const a=Ke(e,t,n,o);return Array.isArray(a.children)&&(a.children=si(a.children)),a}}function XT(e,t,n){r.render(r.cloneVNode(e,{...t}),n)}function lS(e){return(e||[]).some(t=>r.isVNode(t)?!(t.type===r.Comment||t.type===r.Fragment&&!lS(t.children)):!0)?e:null}function is(e,t,n,o){var a;const i=(a=e[t])==null?void 0:a.call(e,n);return lS(i)?i:o==null?void 0:o()}/*!
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/function sS(e){return Object.prototype.toString.call(e)==="[object Object]"}function UT(e){var t,n;return sS(e)===!1?!1:(t=e.constructor,t===void 0?!0:(n=t.prototype,!(sS(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)))}function ci(){return ci=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},ci.apply(this,arguments)}function cS(e,t){if(e==null)return{};var n={};for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){if(t.indexOf(o)>=0)continue;n[o]=e[o]}return n}const YT={silent:!1,logLevel:"warn"},qT=["validator"],dS=Object.prototype,uS=dS.toString,QT=dS.hasOwnProperty,fS=/^\s*function (\w+)/;function pS(e){var t;const n=(t=e==null?void 0:e.type)!==null&&t!==void 0?t:e;if(n){const o=n.toString().match(fS);return o?o[1]:""}return""}const or=UT;function ZT(){}let wt=ZT;const Xr=(e,t)=>QT.call(e,t),JT=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e},Ur=Array.isArray||function(e){return uS.call(e)==="[object Array]"},Yr=e=>uS.call(e)==="[object Function]",ls=(e,t)=>or(e)&&Xr(e,"_vueTypes_name")&&(!t||e._vueTypes_name===t),hS=e=>or(e)&&(Xr(e,"type")||["_vueTypes_name","validator","default","required"].some(t=>Xr(e,t)));function Of(e,t){return Object.defineProperty(e.bind(t),"__original",{value:e})}function rr(e,t,n=!1){let o,a=!0,i="";o=or(e)?e:{type:e};const l=ls(o)?o._vueTypes_name+" - ":"";if(hS(o)&&o.type!==null){if(o.type===void 0||o.type===!0||!o.required&&t==null)return a;Ur(o.type)?(a=o.type.some(s=>rr(s,t,!0)===!0),i=o.type.map(s=>pS(s)).join(" or ")):(i=pS(o),a=i==="Array"?Ur(t):i==="Object"?or(t):i==="String"||i==="Number"||i==="Boolean"||i==="Function"?function(s){if(s==null)return"";const d=s.constructor.toString().match(fS);return d?d[1].replace(/^Async/,""):""}(t)===i:t instanceof o.type)}if(!a){const s=`${l}value "${t}" should be of type "${i}"`;return n===!1?(wt(s),!1):s}if(Xr(o,"validator")&&Yr(o.validator)){const s=wt,d=[];if(wt=c=>{d.push(c)},a=o.validator(t),wt=s,!a){const c=(d.length>1?"* ":"")+d.join(`
* `);return d.length=0,n===!1?(wt(c),a):c}}return a}function rn(e,t){const n=Object.defineProperties(t,{_vueTypes_name:{value:e,writable:!0},isRequired:{get(){return this.required=!0,this}},def:{value(a){return a===void 0?this.type===Boolean||Array.isArray(this.type)&&this.type.includes(Boolean)?void(this.default=void 0):(Xr(this,"default")&&delete this.default,this):Yr(a)||rr(this,a,!0)===!0?(this.default=Ur(a)?()=>[...a]:or(a)?()=>Object.assign({},a):a,this):(wt(`${this._vueTypes_name} - invalid default value: "${a}"`),this)}}}),{validator:o}=n;return Yr(o)&&(n.validator=Of(o,n)),n}function an(e,t){const n=rn(e,t);return Object.defineProperty(n,"validate",{value(o){return Yr(this.validator)&&wt(`${this._vueTypes_name} - calling .validate() will overwrite the current custom validator function. Validator info:
${JSON.stringify(this)}`),this.validator=Of(o,this),this}})}function mS(e,t,n){const o=function(d){const c={};return Object.getOwnPropertyNames(d).forEach(u=>{c[u]=Object.getOwnPropertyDescriptor(d,u)}),Object.defineProperties({},c)}(t);if(o._vueTypes_name=e,!or(n))return o;const{validator:a}=n,i=cS(n,qT);if(Yr(a)){let{validator:d}=o;d&&(d=(s=(l=d).__original)!==null&&s!==void 0?s:l),o.validator=Of(d?function(c){return d.call(this,c)&&a.call(this,c)}:a,o)}var l,s;return Object.assign(o,i)}function ss(e){return e.replace(/^(?!\s*$)/gm," ")}const eE=()=>an("any",{}),tE=()=>an("function",{type:Function}),gS=()=>an("boolean",{type:Boolean}),nE=()=>an("string",{type:String}),oE=()=>an("number",{type:Number}),rE=()=>an("array",{type:Array}),aE=()=>an("object",{type:Object}),iE=()=>rn("integer",{type:Number,validator(e){const t=JT(e);return t===!1&&wt(`integer - "${e}" is not an integer`),t}}),lE=()=>rn("symbol",{validator(e){const t=typeof e=="symbol";return t===!1&&wt(`symbol - invalid value "${e}"`),t}}),sE=()=>Object.defineProperty({type:null,validator(e){const t=e===null;return t===!1&&wt("nullable - value should be null"),t}},"_vueTypes_name",{value:"nullable"});function cE(e,t="custom validation failed"){if(typeof e!="function")throw new TypeError("[VueTypes error]: You must provide a function as argument");return rn(e.name||"<<anonymous function>>",{type:null,validator(n){const o=e(n);return o||wt(`${this._vueTypes_name} - ${t}`),o}})}function dE(e){if(!Ur(e))throw new TypeError("[VueTypes error]: You must provide an array as argument.");const t=`oneOf - value should be one of "${e.map(o=>typeof o=="symbol"?o.toString():o).join('", "')}".`,n={validator(o){const a=e.indexOf(o)!==-1;return a||wt(t),a}};if(e.indexOf(null)===-1){const o=e.reduce((a,i)=>{if(i!=null){const l=i.constructor;a.indexOf(l)===-1&&a.push(l)}return a},[]);o.length>0&&(n.type=o)}return rn("oneOf",n)}function uE(e){if(!Ur(e))throw new TypeError("[VueTypes error]: You must provide an array as argument");let t=!1,n=!1,o=[];for(let i=0;i<e.length;i+=1){const l=e[i];if(hS(l)){if(Yr(l.validator)&&(t=!0),ls(l,"oneOf")&&l.type){o=o.concat(l.type);continue}if(ls(l,"nullable")){n=!0;continue}if(l.type===!0||!l.type){wt('oneOfType - invalid usage of "true" and "null" as types.');continue}o=o.concat(l.type)}else o.push(l)}o=o.filter((i,l)=>o.indexOf(i)===l);const a=n===!1&&o.length>0?o:null;return rn("oneOfType",t?{type:a,validator(i){const l=[],s=e.some(d=>{const c=rr(d,i,!0);return typeof c=="string"&&l.push(c),c===!0});return s||wt(`oneOfType - provided value does not match any of the ${l.length} passed-in validators:
${ss(l.join(`
`))}`),s}}:{type:a})}function fE(e){return rn("arrayOf",{type:Array,validator(t){let n="";const o=t.every(a=>(n=rr(e,a,!0),n===!0));return o||wt(`arrayOf - value validation error:
${ss(n)}`),o}})}function pE(e){return rn("instanceOf",{type:e})}function hE(e){return rn("objectOf",{type:Object,validator(t){let n="";const o=Object.keys(t).every(a=>(n=rr(e,t[a],!0),n===!0));return o||wt(`objectOf - value validation error:
${ss(n)}`),o}})}function mE(e){const t=Object.keys(e),n=t.filter(a=>{var i;return!((i=e[a])===null||i===void 0||!i.required)}),o=rn("shape",{type:Object,validator(a){if(!or(a))return!1;const i=Object.keys(a);if(n.length>0&&n.some(l=>i.indexOf(l)===-1)){const l=n.filter(s=>i.indexOf(s)===-1);return wt(l.length===1?`shape - required property "${l[0]}" is not defined.`:`shape - required properties "${l.join('", "')}" are not defined.`),!1}return i.every(l=>{if(t.indexOf(l)===-1)return this._vueTypes_isLoose===!0||(wt(`shape - shape definition does not include a "${l}" property. Allowed keys: "${t.join('", "')}".`),!1);const s=rr(e[l],a[l],!0);return typeof s=="string"&&wt(`shape - "${l}" property validation error:
${ss(s)}`),s===!0})}});return Object.defineProperty(o,"_vueTypes_isLoose",{writable:!0,value:!1}),Object.defineProperty(o,"loose",{get(){return this._vueTypes_isLoose=!0,this}}),o}const gE=["name","validate","getter"],vE=(e=>((e=class{static get any(){return eE()}static get func(){return tE().def(this.defaults.func)}static get bool(){return this.defaults.bool===void 0?gS():gS().def(this.defaults.bool)}static get string(){return nE().def(this.defaults.string)}static get number(){return oE().def(this.defaults.number)}static get array(){return rE().def(this.defaults.array)}static get object(){return aE().def(this.defaults.object)}static get integer(){return iE().def(this.defaults.integer)}static get symbol(){return lE()}static get nullable(){return sE()}static extend(t){if(wt("VueTypes.extend is deprecated. Use the ES6+ method instead. See https://dwightjack.github.io/vue-types/advanced/extending-vue-types.html#extending-namespaced-validators-in-es6 for details."),Ur(t))return t.forEach(d=>this.extend(d)),this;const{name:n,validate:o=!1,getter:a=!1}=t,i=cS(t,gE);if(Xr(this,n))throw new TypeError(`[VueTypes error]: Type "${n}" already defined`);const{type:l}=i;if(ls(l))return delete i.type,Object.defineProperty(this,n,a?{get:()=>mS(n,l,i)}:{value(...d){const c=mS(n,l,i);return c.validator&&(c.validator=c.validator.bind(c,...d)),c}});let s;return s=a?{get(){const d=Object.assign({},i);return o?an(n,d):rn(n,d)},enumerable:!0}:{value(...d){const c=Object.assign({},i);let u;return u=o?an(n,c):rn(n,c),c.validator&&(u.validator=c.validator.bind(u,...d)),u},enumerable:!0},Object.defineProperty(this,n,s)}}).defaults={},e.sensibleDefaults=void 0,e.config=YT,e.custom=cE,e.oneOf=dE,e.instanceOf=pE,e.oneOfType=uE,e.arrayOf=fE,e.objectOf=hE,e.shape=mE,e.utils={validate:(t,n)=>rr(n,t,!0)===!0,toType:(t,n,o=!1)=>o?an(t,n):rn(t,n)},e))();function vS(e={func:()=>{},bool:!0,string:"",number:0,array:()=>[],object:()=>({}),integer:0}){var t;return(t=class extends vE{static get sensibleDefaults(){return ci({},this.defaults)}static set sensibleDefaults(n){this.defaults=n!==!1?ci({},n!==!0?n:e):{}}}).defaults=ci({},e),t}class Ire extends vS(){}const bE=vS({func:void 0,bool:void 0,string:void 0,number:void 0,array:void 0,object:void 0,integer:void 0});class yE extends bE{static get style(){return an("style",{type:[String,Object],default:()=>({})})}static get looseBool(){return an("looseBool",{type:Boolean,default:void 0})}static get VueNode(){return an("VueNode",{type:Object,default:()=>null})}}var F=yE;const bS=Symbol("PortalContextKey");function Rf(e,t={inTriggerContext:!0}){r.provide(bS,{inTriggerContext:t.inTriggerContext,shouldRender:r.computed(()=>{const{sPopupVisible:n,popupRef:o,forceRender:a,autoDestroy:i}=e||{};let l=!1;return(n||o||a)&&(l=!0),!n&&i&&(l=!1),l})})}function SE(){Rf({},{inTriggerContext:!1});const e=r.inject(bS,{shouldRender:r.computed(()=>!1),inTriggerContext:!1});return{shouldRender:r.computed(()=>e.shouldRender.value||e.inTriggerContext===!1)}}var yS=r.defineComponent({compatConfig:{MODE:3},name:"Portal",inheritAttrs:!1,props:{getContainer:F.func.isRequired,didUpdate:Function},setup(e,{slots:t}){let n=!0,o;const{shouldRender:a}=SE();function i(){a.value&&(o=e.getContainer())}r.onBeforeMount(()=>{n=!1,i()}),r.onMounted(()=>{o||i()});const l=r.watch(a,()=>{a.value&&!o&&(o=e.getContainer()),o&&l()});return r.onUpdated(()=>{r.nextTick(()=>{var s;a.value&&((s=e.didUpdate)==null||s.call(e,e))})}),()=>{var s;return a.value?n?(s=t.default)==null?void 0:s.call(t):o?r.createVNode(r.Teleport,{to:o},t):null:null}}});function cs(e){const t=Symbol("contextKey");return{useProvide:(a,i)=>{const l=r.reactive({});return r.provide(t,l),r.watchEffect(()=>{Object.assign(l,a,i||{})}),l},useInject:()=>r.inject(t,e)||{}}}function SS(e,t=!0){r.getCurrentInstance()?r.onMounted(e):t?e():r.nextTick(e)}function Af(e){return r.getCurrentScope()?(r.onScopeDispose(e),!0):!1}function $S(e){return typeof e=="function"?e():r.unref(e)}function ds(e){var t;const n=$S(e);return(t=n==null?void 0:n.$el)!=null?t:n}function Vf(e){for(var t=0,n,o=0,a=e.length;a>=4;++o,a-=4)n=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&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(a){case 3:t^=(e.charCodeAt(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&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)}var $E=Object.defineProperty,CE=(e,t,n)=>t in e?$E(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,CS=(e,t,n)=>(CE(e,typeof t!="symbol"?t+"":t,n),n);const wS="%";class wE{constructor(t){CS(this,"instanceId"),CS(this,"cache",new Map),this.instanceId=t}get(t){return this.cache.get(Array.isArray(t)?t.join(wS):t)||null}update(t,n){const o=Array.isArray(t)?t.join(wS):t,a=this.cache.get(o),i=n(a);i===null?this.cache.delete(o):this.cache.set(o,i)}}var xE=Object.defineProperty,NE=(e,t,n)=>t in e?xE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,xS=(e,t,n)=>(NE(e,typeof t!="symbol"?t+"":t,n),n);let NS=0;class Df{constructor(t){xS(this,"derivatives"),xS(this,"id"),this.derivatives=Array.isArray(t)?t:[t],this.id=NS,t.length===0&&(t.length>0,void 0),NS+=1}getDerivativeToken(t){return this.derivatives.reduce((n,o)=>o(t,n),void 0)}}var PE=Object.defineProperty,IE=(e,t,n)=>t in e?PE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,di=(e,t,n)=>(IE(e,typeof t!="symbol"?t+"":t,n),n);function TE(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}const Bf=class P1{constructor(){di(this,"cache"),di(this,"keys"),di(this,"cacheCallTimes"),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}size(){return this.keys.length}internalGet(t,n=!1){let o={map:this.cache};return t.forEach(a=>{var i;o?o=(i=o==null?void 0:o.map)==null?void 0:i.get(a):o=void 0}),o!=null&&o.value&&n&&(o.value[1]=this.cacheCallTimes++),o==null?void 0:o.value}get(t){var n;return(n=this.internalGet(t,!0))==null?void 0:n[0]}has(t){return!!this.internalGet(t)}set(t,n){if(!this.has(t)){if(this.size()+1>P1.MAX_CACHE_SIZE+P1.MAX_CACHE_OFFSET){const[a]=this.keys.reduce((i,l)=>{const[,s]=i;return this.internalGet(l)[1]<s?[l,this.internalGet(l)[1]]:i},[this.keys[0],this.cacheCallTimes]);this.delete(a)}this.keys.push(t)}let o=this.cache;t.forEach((a,i)=>{if(i===t.length-1)o.set(a,{value:[n,this.cacheCallTimes++]});else{const l=o.get(a);l?l.map||(l.map=new Map):o.set(a,{map:new Map}),o=o.get(a).map}})}deleteByPath(t,n){var o;const a=t.get(n[0]);if(n.length===1)return a.map?t.set(n[0],{map:a.map}):t.delete(n[0]),(o=a.value)==null?void 0:o[0];const i=this.deleteByPath(a.map,n.slice(1));return(!a.map||a.map.size===0)&&!a.value&&t.delete(n[0]),i}delete(t){if(this.has(t))return this.keys=this.keys.filter(n=>!TE(n,t)),this.deleteByPath(this.cache,t)}};di(Bf,"MAX_CACHE_SIZE",20),di(Bf,"MAX_CACHE_OFFSET",5);let EE=Bf;const _f=new EE;function Ff(e){const t=Array.isArray(e)?e:[e];return _f.has(t)||_f.set(t,new Df(t)),_f.get(t)}const PS=new WeakMap;function us(e){let t=PS.get(e)||"";return t||(Object.keys(e).forEach(n=>{const o=e[n];t+=n,o instanceof Df?t+=o.id:o&&typeof o=="object"?t+=us(o):t+=o}),PS.set(e,t)),t}function ME(e,t){return Vf(`${t}_${us(e)}`)}const ui=`random-${Date.now()}-${Math.random()}`.replace(/\./g,""),IS="_bAmBoO_";function OE(e,t,n){var o,a;if(_t()){ai(e,ui);const i=document.createElement("div");i.style.position="fixed",i.style.left="0",i.style.top="0",t==null||t(i),document.body.appendChild(i);const l=n?n(i):(o=getComputedStyle(i).content)==null?void 0:o.includes(IS);return(a=i.parentNode)==null||a.removeChild(i),es(ui),l}return!1}let kf;function RE(){return kf===void 0&&(kf=OE(`@layer ${ui} { .${ui} { content: "${IS}"!important; } }`,e=>{e.className=ui})),kf}function AE(e){const t=e;return t.install=function(n){n.component(t.displayName||t.name,e)},e}const Lf="data-token-hash",Eo="data-css-hash",qr="__cssinjs_instance__";function Qr(){const e=Math.random().toString(12).slice(2);if(typeof document!="undefined"&&document.head&&document.body){const t=document.body.querySelectorAll(`style[${Eo}]`)||[],{firstChild:n}=document.head;Array.from(t).forEach(a=>{a[qr]=a[qr]||e,a[qr]===e&&document.head.insertBefore(a,n)});const o={};Array.from(document.querySelectorAll(`style[${Eo}]`)).forEach(a=>{var i;const l=a.getAttribute(Eo);o[l]?a[qr]===e&&((i=a.parentNode)==null||i.removeChild(a)):o[l]=!0})}return new wE(e)}const TS=Symbol("StyleContextKey");function VE(){var e,t,n;const o=r.getCurrentInstance();let a;if(o&&o.appContext){const i=(n=(t=(e=o.appContext)==null?void 0:e.config)==null?void 0:t.globalProperties)==null?void 0:n.__ANTDV_CSSINJS_CACHE__;i?a=i:(a=Qr(),o.appContext.config.globalProperties&&(o.appContext.config.globalProperties.__ANTDV_CSSINJS_CACHE__=a))}else a=Qr();return a}const ES={cache:Qr(),defaultCache:!0,hashPriority:"low"};function fi(){const e=VE();return r.inject(TS,r.shallowRef({...ES,cache:e}))}function MS(e){const t=fi(),n=r.shallowRef({...ES,cache:Qr()});return r.watch([()=>r.unref(e),t],()=>{const o={...t.value},a=r.unref(e);Object.keys(a).forEach(l=>{const s=a[l];a[l]!==void 0&&(o[l]=s)});const{cache:i}=a;o.cache=o.cache||Qr(),o.defaultCache=!i&&t.value.defaultCache,n.value=o},{immediate:!0}),r.provide(TS,n),n}const zf=AE(r.defineComponent({name:"AStyleProvider",inheritAttrs:!1,props:{autoClear:Boolean,mock:String,cache:{type:Object},hashPriority:{type:String},container:Object,ssrInline:Boolean,transformers:Array,linters:Array,defaultCache:{type:Boolean}},setup(e,{slots:t}){return MS(e),()=>{var n;return(n=t.default)==null?void 0:n.call(t)}}}));function OS(e,t,n,o){const a=fi(),i=r.shallowRef(""),l=r.shallowRef();r.watchEffect(()=>{i.value=[e,...t.value].join("%")});const s=d=>{a.value.cache.update(d,c=>{const[u=0,f]=c||[];return u-1===0?(o==null||o(f,!1),null):[u-1,f]})};return r.watch(i,(d,c)=>{c&&s(c),a.value.cache.update(d,u=>{const[f=0,p]=u||[],m=p||n();return[f+1,m]}),l.value=a.value.cache.get(i.value)[1]},{immediate:!0}),r.onBeforeUnmount(()=>{s(i.value)}),l}const RS={},DE="css",ar=new Map;function BE(e){ar.set(e,(ar.get(e)||0)+1)}function _E(e,t){typeof document!="undefined"&&document.querySelectorAll(`style[${Lf}="${e}"]`).forEach(o=>{var a;o[qr]===t&&((a=o.parentNode)==null||a.removeChild(o))})}const FE=0;function kE(e,t){ar.set(e,(ar.get(e)||0)-1);const n=Array.from(ar.keys()),o=n.filter(a=>(ar.get(a)||0)<=0);n.length-o.length>FE&&o.forEach(a=>{_E(a,t),ar.delete(a)})}function LE(e,t,n,o){let i={...n.getDerivativeToken(e),...t};return o&&(i=o(i)),i}function AS(e,t,n=r.ref({})){const o=fi(),a=r.computed(()=>Object.assign({},...t.value)),i=r.computed(()=>us(a.value)),l=r.computed(()=>us(n.value.override||RS));return OS("token",r.computed(()=>[n.value.salt||"",e.value.id,i.value,l.value]),()=>{const{salt:d="",override:c=RS,formatToken:u,getComputedToken:f}=n.value,p=f?f(a.value,c,e.value):LE(a.value,c,e.value,u),h=ME(p,d);p._tokenKey=h,BE(h);const m=`${DE}-${Vf(h)}`;return p._hashId=m,[p,m]},d=>{var c;kE(d[0]._tokenKey,(c=o.value)==null?void 0:c.cache.instanceId)})}var VS={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,scale: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},DS="comm",BS="rule",_S="decl",zE="@import",HE="@namespace",jE="@keyframes",WE="@layer",FS=Math.abs,Hf=String.fromCharCode;function kS(e){return e.trim()}function fs(e,t,n){return e.replace(t,n)}function KE(e,t,n){return e.indexOf(t,n)}function Zr(e,t){return e.charCodeAt(t)|0}function Jr(e,t,n){return e.slice(t,n)}function Wn(e){return e.length}function GE(e){return e.length}function ps(e,t){return t.push(e),e}var hs=1,ea=1,LS=0,vn=0,xt=0,ta="";function jf(e,t,n,o,a,i,l,s){return{value:e,root:t,parent:n,type:o,props:a,children:i,line:hs,column:ea,length:l,return:"",siblings:s}}function XE(){return xt}function UE(){return xt=vn>0?Zr(ta,--vn):0,ea--,xt===10&&(ea=1,hs--),xt}function Vn(){return xt=vn<LS?Zr(ta,vn++):0,ea++,xt===10&&(ea=1,hs++),xt}function Mo(){return Zr(ta,vn)}function ms(){return vn}function gs(e,t){return Jr(ta,e,t)}function pi(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 YE(e){return hs=ea=1,LS=Wn(ta=e),vn=0,[]}function qE(e){return ta="",e}function Wf(e){return kS(gs(vn-1,Kf(e===91?e+2:e===40?e+1:e)))}function QE(e){for(;(xt=Mo())&&xt<33;)Vn();return pi(e)>2||pi(xt)>3?"":" "}function ZE(e,t){for(;--t&&Vn()&&!(xt<48||xt>102||xt>57&&xt<65||xt>70&&xt<97););return gs(e,ms()+(t<6&&Mo()==32&&Vn()==32))}function Kf(e){for(;Vn();)switch(xt){case e:return vn;case 34:case 39:e!==34&&e!==39&&Kf(xt);break;case 40:e===41&&Kf(e);break;case 92:Vn();break}return vn}function JE(e,t){for(;Vn()&&e+xt!==47+10;)if(e+xt===42+42&&Mo()===47)break;return"/*"+gs(t,vn-1)+"*"+Hf(e===47?e:Vn())}function eM(e){for(;!pi(Mo());)Vn();return gs(e,vn)}function tM(e){return qE(vs("",null,null,null,[""],e=YE(e),0,[0],e))}function vs(e,t,n,o,a,i,l,s,d){for(var c=0,u=0,f=l,p=0,h=0,m=0,g=1,b=1,v=1,$=0,S="",y=a,C=i,w=o,x=S;b;)switch(m=$,$=Vn()){case 40:if(m!=108&&Zr(x,f-1)==58){KE(x+=fs(Wf($),"&","&\f"),"&\f",FS(c?s[c-1]:0))!=-1&&(v=-1);break}case 34:case 39:case 91:x+=Wf($);break;case 9:case 10:case 13:case 32:x+=QE(m);break;case 92:x+=ZE(ms()-1,7);continue;case 47:switch(Mo()){case 42:case 47:ps(nM(JE(Vn(),ms()),t,n,d),d),(pi(m||1)==5||pi(Mo()||1)==5)&&Wn(x)&&Jr(x,-1,void 0)!==" "&&(x+=" ");break;default:x+="/"}break;case 123*g:s[c++]=Wn(x)*v;case 125*g:case 59:case 0:switch($){case 0:case 125:b=0;case 59+u:v==-1&&(x=fs(x,/\f/g,"")),h>0&&(Wn(x)-f||g===0&&m===47)&&ps(h>32?HS(x+";",o,n,f-1,d):HS(fs(x," ","")+";",o,n,f-2,d),d);break;case 59:x+=";";default:if(ps(w=zS(x,t,n,c,u,a,s,S,y=[],C=[],f,i),i),$===123)if(u===0)vs(x,t,w,w,y,i,f,s,C);else{switch(p){case 99:if(Zr(x,3)===110)break;case 108:if(Zr(x,2)===97)break;default:u=0;case 100:case 109:case 115:}u?vs(e,w,w,o&&ps(zS(e,w,w,0,0,a,s,S,a,y=[],f,C),C),a,C,f,s,o?y:C):vs(x,w,w,w,[""],C,0,s,C)}}c=u=h=0,g=v=1,S=x="",f=l;break;case 58:f=1+Wn(x),h=m;default:if(g<1){if($==123)--g;else if($==125&&g++==0&&UE()==125)continue}switch(x+=Hf($),$*g){case 38:v=u>0?1:(x+="\f",-1);break;case 44:s[c++]=(Wn(x)-1)*v,v=1;break;case 64:Mo()===45&&(x+=Wf(Vn())),p=Mo(),u=f=Wn(S=x+=eM(ms())),$++;break;case 45:m===45&&Wn(x)==2&&(g=0)}}return i}function zS(e,t,n,o,a,i,l,s,d,c,u,f){for(var p=a-1,h=a===0?i:[""],m=GE(h),g=0,b=0,v=0;g<o;++g)for(var $=0,S=Jr(e,p+1,p=FS(b=l[g])),y=e;$<m;++$)(y=kS(b>0?h[$]+" "+S:fs(S,/&\f/g,h[$])))&&(d[v++]=y);return jf(e,t,n,a===0?BS:s,d,c,u,f)}function nM(e,t,n,o){return jf(e,t,n,DS,Hf(XE()),Jr(e,2,-2),0,o)}function HS(e,t,n,o,a){return jf(e,t,n,_S,Jr(e,0,o),Jr(e,o+1,-1),o,a)}function Gf(e,t){for(var n="",o=0;o<e.length;o++)n+=t(e[o],o,e,t)||"";return n}function oM(e,t,n,o){switch(e.type){case WE:if(e.children.length)break;case zE:case HE:case _S:return e.return=e.return||e.value;case DS:return"";case jE:return e.return=e.value+"{"+Gf(e.children,o)+"}";case BS:if(!Wn(e.value=e.props.join(",")))return""}return Wn(n=Gf(e.children,o))?e.return=e.value+"{"+n+"}":""}function na(e,t){const{path:n,parentSelectors:o}=t;n&&`${n}`,`${e}`,o.length&&`${o.join(" -> ")}`}function rM(e){var t;return(((t=e.match(/:not\(([^)]*)\)/))==null?void 0:t[1])||"").split(/(\[[^[]*])|(?=[.#])/).filter(a=>a).length>1}function aM(e){return e.parentSelectors.reduce((t,n)=>t?n.includes("&")?n.replace(/&/g,t):`${t} ${n}`:n,"")}const iM=(e,t,n)=>{const a=aM(n).match(/:not\([^)]*\)/g)||[];a.length>0&&a.some(rM)&&na("Concat ':not' selector not support in legacy browsers.",n)},lM=(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":na(`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 o=t.split(" ").map(a=>a.trim());o.length===4&&o[1]!==o[3]&&na(`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")&&na(`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(i=>i.trim()).reduce((i,l)=>{if(i)return i;const s=l.split(" ").map(d=>d.trim());return s.length>=2&&s[0]!==s[1]||s.length===3&&s[1]!==s[2]||s.length===4&&s[2]!==s[3]?!0:i},!1)&&na(`You se