1 |
- import{_ as Oi,a as xi,R as Qt,S as Ct,s as Kn,b as Mi,d as Si,e as Ti,f as Ai,c as Di}from"./useFlexGapSupport-20a12060.js";import{b as d,c as h,ai as Vt,aW as Ni,aR as mt,d as Y,r as I,v as gt,h as ae,w as J,o as Ze,g as We,B as de,aX as en,a as O,aY as $e,aZ as Ii,D as ft,af as Tt,as as Ei,ap as kt,H as pe,y as me,aL as Ke,av as ut,a_ as Bn,aP as jn,a$ as tn,_ as z,ao as Be,b0 as Ri,j as Ln,e as ye,P as R,b1 as $i,f as xe,b2 as nn,p as De,b3 as _i,b4 as tt,aE as Vi,aD as ki,b5 as on,Z as Hn,b6 as Fi,ah as Xe,s as Oe,R as zn,aq as Ki,C as Le,q as Ye,t as Wn,i as Ft,u as Je,x as Bi,J as Ue,b7 as ji,X as Li,b8 as Hi,A as Kt,ad as At,M as Ve,I as zi,ar as an,am as Xn,K as Wi,b9 as rn,ba as Xi,au as nt}from"./index-c0ea9eee.js";var Yn=["moz","ms","webkit"];function Yi(){var n=0;return function(e){var t=new Date().getTime(),i=Math.max(0,16-(t-n)),o=window.setTimeout(function(){e(t+i)},i);return n=t+i,o}}function Ui(){if(typeof window>"u")return function(){};if(window.requestAnimationFrame)return window.requestAnimationFrame.bind(window);var n=Yn.filter(function(e){return"".concat(e,"RequestAnimationFrame")in window})[0];return n?window["".concat(n,"RequestAnimationFrame")]:Yi()}function qi(n){if(typeof window>"u")return null;if(window.cancelAnimationFrame)return window.cancelAnimationFrame(n);var e=Yn.filter(function(t){return"".concat(t,"CancelAnimationFrame")in window||"".concat(t,"CancelRequestAnimationFrame")in window})[0];return e?(window["".concat(e,"CancelAnimationFrame")]||window["".concat(e,"CancelRequestAnimationFrame")]).call(this,n):clearTimeout(n)}var ln=Ui(),Gi=function(e){return qi(e.id)},Zi=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=Date.now();function o(){Date.now()-i>=t?e.call():a.id=ln(o)}var a={id:ln(o)};return a},Bt={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}},Ji=d(d({},Bt),{},{mobile:{type:Object}}),Qi=d(d({},Bt),{},{mask:Boolean,mobile:{type:Object},maskAnimation:String,maskTransitionName:String});function Un(n){var e=n.prefixCls,t=n.animation,i=n.transitionName;return t?{name:"".concat(e,"-").concat(t)}:i?{name:i}:{}}function qn(n){var e=n.prefixCls,t=n.visible,i=n.zIndex,o=n.mask,a=n.maskAnimation,r=n.maskTransitionName;if(!o)return null;var l={};return(r||a)&&(l=Un({prefixCls:e,transitionName:r,animation:a})),h(mt,d({appear:!0},l),{default:function(){return[Vt(h("div",{style:{zIndex:i},class:"".concat(e,"-mask")},null),[[Ni("if"),t]])]}})}qn.displayName="Mask";const eo=Y({compatConfig:{MODE:3},name:"MobilePopupInner",inheritAttrs:!1,props:Ji,emits:["mouseenter","mouseleave","mousedown","touchstart","align"],setup:function(e,t){var i=t.expose,o=t.slots,a=I();return i({forceAlign:function(){},getElement:function(){return a.value}}),function(){var r,l=e.zIndex,u=e.visible,f=e.prefixCls,c=e.mobile,m=c===void 0?{}:c,p=m.popupClassName,s=m.popupStyle,g=m.popupMotion,v=g===void 0?{}:g,C=m.popupRender,P=d({zIndex:l},s),N=gt((r=o.default)===null||r===void 0?void 0:r.call(o));N.length>1&&(N=h("div",{class:"".concat(f,"-content")},[N])),C&&(N=C(N));var M=ae(f,p);return h(mt,d({ref:a},v),{default:function(){return[u?h("div",{class:M,style:P},[N]):null]}})}}});var un=["measure","align",null,"motion"];const to=function(n,e){var t=I(null),i=I(),o=I(!1);function a(u){o.value||(t.value=u)}function r(){de.cancel(i.value)}function l(u){r(),i.value=de(function(){var f=t.value;switch(t.value){case"align":f="motion";break;case"motion":f="stable";break}a(f),u==null||u()})}return J(n,function(){a("measure")},{immediate:!0,flush:"post"}),Ze(function(){J(t,function(){switch(t.value){case"measure":e();break}t.value&&(i.value=de(Oi(en.mark(function u(){var f,c;return en.wrap(function(p){for(;;)switch(p.prev=p.next){case 0:f=un.indexOf(t.value),c=un[f+1],c&&f!==-1&&a(c);case 3:case"end":return p.stop()}},u)}))))},{immediate:!0,flush:"post"})}),We(function(){o.value=!0,r()}),[t,l]},no=function(n){var e=I({width:0,height:0});function t(o){e.value={width:o.offsetWidth,height:o.offsetHeight}}var i=O(function(){var o={};if(n.value){var a=e.value,r=a.width,l=a.height;n.value.indexOf("height")!==-1&&l?o.height="".concat(l,"px"):n.value.indexOf("minHeight")!==-1&&l&&(o.minHeight="".concat(l,"px")),n.value.indexOf("width")!==-1&&r?o.width="".concat(r,"px"):n.value.indexOf("minWidth")!==-1&&r&&(o.minWidth="".concat(r,"px"))}return o});return[i,t]};function sn(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),t.push.apply(t,i)}return t}function fn(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?sn(Object(t),!0).forEach(function(i){io(n,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):sn(Object(t)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(t,i))})}return n}function Dt(n){return Dt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Dt(n)}function io(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var ke,oo={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"};function ct(){if(ke!==void 0)return ke;ke="";var n=document.createElement("p").style,e="Transform";for(var t in oo)t+e in n&&(ke=t);return ke}function Gn(){return ct()?"".concat(ct(),"TransitionProperty"):"transitionProperty"}function ht(){return ct()?"".concat(ct(),"Transform"):"transform"}function cn(n,e){var t=Gn();t&&(n.style[t]=e,t!=="transitionProperty"&&(n.style.transitionProperty=e))}function wt(n,e){var t=ht();t&&(n.style[t]=e,t!=="transform"&&(n.style.transform=e))}function ao(n){return n.style.transitionProperty||n.style[Gn()]}function ro(n){var e=window.getComputedStyle(n,null),t=e.getPropertyValue("transform")||e.getPropertyValue(ht());if(t&&t!=="none"){var i=t.replace(/[^0-9\-.,]/g,"").split(",");return{x:parseFloat(i[12]||i[4],0),y:parseFloat(i[13]||i[5],0)}}return{x:0,y:0}}var lo=/matrix\((.*)\)/,uo=/matrix3d\((.*)\)/;function so(n,e){var t=window.getComputedStyle(n,null),i=t.getPropertyValue("transform")||t.getPropertyValue(ht());if(i&&i!=="none"){var o,a=i.match(lo);if(a)a=a[1],o=a.split(",").map(function(l){return parseFloat(l,10)}),o[4]=e.x,o[5]=e.y,wt(n,"matrix(".concat(o.join(","),")"));else{var r=i.match(uo)[1];o=r.split(",").map(function(l){return parseFloat(l,10)}),o[12]=e.x,o[13]=e.y,wt(n,"matrix3d(".concat(o.join(","),")"))}}else wt(n,"translateX(".concat(e.x,"px) translateY(").concat(e.y,"px) translateZ(0)"))}var fo=/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,Qe;function vn(n){var e=n.style.display;n.style.display="none",n.offsetHeight,n.style.display=e}function _e(n,e,t){var i=t;if(Dt(e)==="object"){for(var o in e)e.hasOwnProperty(o)&&_e(n,o,e[o]);return}if(typeof i<"u"){typeof i=="number"&&(i="".concat(i,"px")),n.style[e]=i;return}return Qe(n,e)}function co(n){var e,t,i,o=n.ownerDocument,a=o.body,r=o&&o.documentElement;return e=n.getBoundingClientRect(),t=Math.floor(e.left),i=Math.floor(e.top),t-=r.clientLeft||a.clientLeft||0,i-=r.clientTop||a.clientTop||0,{left:t,top:i}}function Zn(n,e){var t=n["page".concat(e?"Y":"X","Offset")],i="scroll".concat(e?"Top":"Left");if(typeof t!="number"){var o=n.document;t=o.documentElement[i],typeof t!="number"&&(t=o.body[i])}return t}function Jn(n){return Zn(n)}function Qn(n){return Zn(n,!0)}function qe(n){var e=co(n),t=n.ownerDocument,i=t.defaultView||t.parentWindow;return e.left+=Jn(i),e.top+=Qn(i),e}function jt(n){return n!=null&&n==n.window}function ei(n){return jt(n)?n.document:n.nodeType===9?n:n.ownerDocument}function vo(n,e,t){var i=t,o="",a=ei(n);return i=i||a.defaultView.getComputedStyle(n,null),i&&(o=i.getPropertyValue(e)||i[e]),o}var po=new RegExp("^(".concat(fo,")(?!px)[a-z%]+$"),"i"),mo=/^(top|right|bottom|left)$/,Pt="currentStyle",Ot="runtimeStyle",Te="left",go="px";function ho(n,e){var t=n[Pt]&&n[Pt][e];if(po.test(t)&&!mo.test(e)){var i=n.style,o=i[Te],a=n[Ot][Te];n[Ot][Te]=n[Pt][Te],i[Te]=e==="fontSize"?"1em":t||0,t=i.pixelLeft+go,i[Te]=o,n[Ot][Te]=a}return t===""?"auto":t}typeof window<"u"&&(Qe=window.getComputedStyle?vo:ho);function it(n,e){return n==="left"?e.useCssRight?"right":n:e.useCssBottom?"bottom":n}function dn(n){if(n==="left")return"right";if(n==="right")return"left";if(n==="top")return"bottom";if(n==="bottom")return"top"}function pn(n,e,t){_e(n,"position")==="static"&&(n.style.position="relative");var i=-999,o=-999,a=it("left",t),r=it("top",t),l=dn(a),u=dn(r);a!=="left"&&(i=999),r!=="top"&&(o=999);var f="",c=qe(n);("left"in e||"top"in e)&&(f=ao(n)||"",cn(n,"none")),"left"in e&&(n.style[l]="",n.style[a]="".concat(i,"px")),"top"in e&&(n.style[u]="",n.style[r]="".concat(o,"px")),vn(n);var m=qe(n),p={};for(var s in e)if(e.hasOwnProperty(s)){var g=it(s,t),v=s==="left"?i:o,C=c[s]-m[s];g===s?p[g]=v+C:p[g]=v-C}_e(n,p),vn(n),("left"in e||"top"in e)&&cn(n,f);var P={};for(var N in e)if(e.hasOwnProperty(N)){var M=it(N,t),D=e[N]-c[N];N===M?P[M]=p[M]+D:P[M]=p[M]-D}_e(n,P)}function yo(n,e){var t=qe(n),i=ro(n),o={x:i.x,y:i.y};"left"in e&&(o.x=i.x+e.left-t.left),"top"in e&&(o.y=i.y+e.top-t.top),so(n,o)}function bo(n,e,t){if(t.ignoreShake){var i=qe(n),o=i.left.toFixed(0),a=i.top.toFixed(0),r=e.left.toFixed(0),l=e.top.toFixed(0);if(o===r&&a===l)return}t.useCssRight||t.useCssBottom?pn(n,e,t):t.useCssTransform&&ht()in document.body.style?yo(n,e):pn(n,e,t)}function Lt(n,e){for(var t=0;t<n.length;t++)e(n[t])}function ti(n){return Qe(n,"boxSizing")==="border-box"}var Co=["margin","border","padding"],Nt=-1,wo=2,It=1,Po=0;function Oo(n,e,t){var i={},o=n.style,a;for(a in e)e.hasOwnProperty(a)&&(i[a]=o[a],o[a]=e[a]);t.call(n);for(a in e)e.hasOwnProperty(a)&&(o[a]=i[a])}function je(n,e,t){var i=0,o,a,r;for(a=0;a<e.length;a++)if(o=e[a],o)for(r=0;r<t.length;r++){var l=void 0;o==="border"?l="".concat(o).concat(t[r],"Width"):l=o+t[r],i+=parseFloat(Qe(n,l))||0}return i}var ge={getParent:function(e){var t=e;do t.nodeType===11&&t.host?t=t.host:t=t.parentNode;while(t&&t.nodeType!==1&&t.nodeType!==9);return t}};Lt(["Width","Height"],function(n){ge["doc".concat(n)]=function(e){var t=e.document;return Math.max(t.documentElement["scroll".concat(n)],t.body["scroll".concat(n)],ge["viewport".concat(n)](t))},ge["viewport".concat(n)]=function(e){var t="client".concat(n),i=e.document,o=i.body,a=i.documentElement,r=a[t];return i.compatMode==="CSS1Compat"&&r||o&&o[t]||r}});function mn(n,e,t){var i=t;if(jt(n))return e==="width"?ge.viewportWidth(n):ge.viewportHeight(n);if(n.nodeType===9)return e==="width"?ge.docWidth(n):ge.docHeight(n);var o=e==="width"?["Left","Right"]:["Top","Bottom"],a=Math.floor(e==="width"?n.getBoundingClientRect().width:n.getBoundingClientRect().height),r=ti(n),l=0;(a==null||a<=0)&&(a=void 0,l=Qe(n,e),(l==null||Number(l)<0)&&(l=n.style[e]||0),l=Math.floor(parseFloat(l))||0),i===void 0&&(i=r?It:Nt);var u=a!==void 0||r,f=a||l;return i===Nt?u?f-je(n,["border","padding"],o):l:u?i===It?f:f+(i===wo?-je(n,["border"],o):je(n,["margin"],o)):l+je(n,Co.slice(i),o)}var xo={position:"absolute",visibility:"hidden",display:"block"};function gn(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];var i,o=e[0];return o.offsetWidth!==0?i=mn.apply(void 0,e):Oo(o,xo,function(){i=mn.apply(void 0,e)}),i}Lt(["width","height"],function(n){var e=n.charAt(0).toUpperCase()+n.slice(1);ge["outer".concat(e)]=function(i,o){return i&&gn(i,n,o?Po:It)};var t=n==="width"?["Left","Right"]:["Top","Bottom"];ge[n]=function(i,o){var a=o;if(a!==void 0){if(i){var r=ti(i);return r&&(a+=je(i,["padding","border"],t)),_e(i,n,a)}return}return i&&gn(i,n,Nt)}});function ni(n,e){for(var t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n}var _={getWindow:function(e){if(e&&e.document&&e.setTimeout)return e;var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},getDocument:ei,offset:function(e,t,i){if(typeof t<"u")bo(e,t,i||{});else return qe(e)},isWindow:jt,each:Lt,css:_e,clone:function(e){var t,i={};for(t in e)e.hasOwnProperty(t)&&(i[t]=e[t]);var o=e.overflow;if(o)for(t in e)e.hasOwnProperty(t)&&(i.overflow[t]=e.overflow[t]);return i},mix:ni,getWindowScrollLeft:function(e){return Jn(e)},getWindowScrollTop:function(e){return Qn(e)},merge:function(){for(var e={},t=0;t<arguments.length;t++)_.mix(e,t<0||arguments.length<=t?void 0:arguments[t]);return e},viewportWidth:0,viewportHeight:0};ni(_,ge);var xt=_.getParent;function Et(n){if(_.isWindow(n)||n.nodeType===9)return null;var e=_.getDocument(n),t=e.body,i,o=_.css(n,"position"),a=o==="fixed"||o==="absolute";if(!a)return n.nodeName.toLowerCase()==="html"?null:xt(n);for(i=xt(n);i&&i!==t&&i.nodeType!==9;i=xt(i))if(o=_.css(i,"position"),o!=="static")return i;return null}var hn=_.getParent;function Mo(n){if(_.isWindow(n)||n.nodeType===9)return!1;var e=_.getDocument(n),t=e.body,i=null;for(i=hn(n);i&&i!==t&&i!==e;i=hn(i)){var o=_.css(i,"position");if(o==="fixed")return!0}return!1}function Ht(n,e){for(var t={left:0,right:1/0,top:0,bottom:1/0},i=Et(n),o=_.getDocument(n),a=o.defaultView||o.parentWindow,r=o.body,l=o.documentElement;i;){if((navigator.userAgent.indexOf("MSIE")===-1||i.clientWidth!==0)&&i!==r&&i!==l&&_.css(i,"overflow")!=="visible"){var u=_.offset(i);u.left+=i.clientLeft,u.top+=i.clientTop,t.top=Math.max(t.top,u.top),t.right=Math.min(t.right,u.left+i.clientWidth),t.bottom=Math.min(t.bottom,u.top+i.clientHeight),t.left=Math.max(t.left,u.left)}else if(i===r||i===l)break;i=Et(i)}var f=null;if(!_.isWindow(n)&&n.nodeType!==9){f=n.style.position;var c=_.css(n,"position");c==="absolute"&&(n.style.position="fixed")}var m=_.getWindowScrollLeft(a),p=_.getWindowScrollTop(a),s=_.viewportWidth(a),g=_.viewportHeight(a),v=l.scrollWidth,C=l.scrollHeight,P=window.getComputedStyle(r);if(P.overflowX==="hidden"&&(v=a.innerWidth),P.overflowY==="hidden"&&(C=a.innerHeight),n.style&&(n.style.position=f),e||Mo(n))t.left=Math.max(t.left,m),t.top=Math.max(t.top,p),t.right=Math.min(t.right,m+s),t.bottom=Math.min(t.bottom,p+g);else{var N=Math.max(v,m+s);t.right=Math.min(t.right,N);var M=Math.max(C,p+g);t.bottom=Math.min(t.bottom,M)}return t.top>=0&&t.left>=0&&t.bottom>t.top&&t.right>t.left?t:null}function So(n,e,t,i){var o=_.clone(n),a={width:e.width,height:e.height};return i.adjustX&&o.left<t.left&&(o.left=t.left),i.resizeWidth&&o.left>=t.left&&o.left+a.width>t.right&&(a.width-=o.left+a.width-t.right),i.adjustX&&o.left+a.width>t.right&&(o.left=Math.max(t.right-a.width,t.left)),i.adjustY&&o.top<t.top&&(o.top=t.top),i.resizeHeight&&o.top>=t.top&&o.top+a.height>t.bottom&&(a.height-=o.top+a.height-t.bottom),i.adjustY&&o.top+a.height>t.bottom&&(o.top=Math.max(t.bottom-a.height,t.top)),_.mix(o,a)}function zt(n){var e,t,i;if(!_.isWindow(n)&&n.nodeType!==9)e=_.offset(n),t=_.outerWidth(n),i=_.outerHeight(n);else{var o=_.getWindow(n);e={left:_.getWindowScrollLeft(o),top:_.getWindowScrollTop(o)},t=_.viewportWidth(o),i=_.viewportHeight(o)}return e.width=t,e.height=i,e}function yn(n,e){var t=e.charAt(0),i=e.charAt(1),o=n.width,a=n.height,r=n.left,l=n.top;return t==="c"?l+=a/2:t==="b"&&(l+=a),i==="c"?r+=o/2:i==="r"&&(r+=o),{left:r,top:l}}function ot(n,e,t,i,o){var a=yn(e,t[1]),r=yn(n,t[0]),l=[r.left-a.left,r.top-a.top];return{left:Math.round(n.left-l[0]+i[0]-o[0]),top:Math.round(n.top-l[1]+i[1]-o[1])}}function bn(n,e,t){return n.left<t.left||n.left+e.width>t.right}function Cn(n,e,t){return n.top<t.top||n.top+e.height>t.bottom}function To(n,e,t){return n.left>t.right||n.left+e.width<t.left}function Ao(n,e,t){return n.top>t.bottom||n.top+e.height<t.top}function at(n,e,t){var i=[];return _.each(n,function(o){i.push(o.replace(e,function(a){return t[a]}))}),i}function rt(n,e){return n[e]=-n[e],n}function wn(n,e){var t;return/%$/.test(n)?t=parseInt(n.substring(0,n.length-1),10)/100*e:t=parseInt(n,10),t||0}function Pn(n,e){n[0]=wn(n[0],e.width),n[1]=wn(n[1],e.height)}function ii(n,e,t,i){var o=t.points,a=t.offset||[0,0],r=t.targetOffset||[0,0],l=t.overflow,u=t.source||n;a=[].concat(a),r=[].concat(r),l=l||{};var f={},c=0,m=!!(l&&l.alwaysByViewport),p=Ht(u,m),s=zt(u);Pn(a,s),Pn(r,e);var g=ot(s,e,o,a,r),v=_.merge(s,g);if(p&&(l.adjustX||l.adjustY)&&i){if(l.adjustX&&bn(g,s,p)){var C=at(o,/[lr]/gi,{l:"r",r:"l"}),P=rt(a,0),N=rt(r,0),M=ot(s,e,C,P,N);To(M,s,p)||(c=1,o=C,a=P,r=N)}if(l.adjustY&&Cn(g,s,p)){var D=at(o,/[tb]/gi,{t:"b",b:"t"}),A=rt(a,1),y=rt(r,1),x=ot(s,e,D,A,y);Ao(x,s,p)||(c=1,o=D,a=A,r=y)}c&&(g=ot(s,e,o,a,r),_.mix(v,g));var S=bn(g,s,p),T=Cn(g,s,p);if(S||T){var F=o;S&&(F=at(o,/[lr]/gi,{l:"r",r:"l"})),T&&(F=at(o,/[tb]/gi,{t:"b",b:"t"})),o=F,a=t.offset||[0,0],r=t.targetOffset||[0,0]}f.adjustX=l.adjustX&&S,f.adjustY=l.adjustY&&T,(f.adjustX||f.adjustY)&&(v=So(g,s,p,f))}return v.width!==s.width&&_.css(u,"width",_.width(u)+v.width-s.width),v.height!==s.height&&_.css(u,"height",_.height(u)+v.height-s.height),_.offset(u,{left:v.left,top:v.top},{useCssRight:t.useCssRight,useCssBottom:t.useCssBottom,useCssTransform:t.useCssTransform,ignoreShake:t.ignoreShake}),{points:o,offset:a,targetOffset:r,overflow:f}}function Do(n,e){var t=Ht(n,e),i=zt(n);return!t||i.left+i.width<=t.left||i.top+i.height<=t.top||i.left>=t.right||i.top>=t.bottom}function Wt(n,e,t){var i=t.target||e,o=zt(i),a=!Do(i,t.overflow&&t.overflow.alwaysByViewport);return ii(n,o,t,a)}Wt.__getOffsetParent=Et;Wt.__getVisibleRectForElement=Ht;function No(n,e,t){var i,o,a=_.getDocument(n),r=a.defaultView||a.parentWindow,l=_.getWindowScrollLeft(r),u=_.getWindowScrollTop(r),f=_.viewportWidth(r),c=_.viewportHeight(r);"pageX"in e?i=e.pageX:i=l+e.clientX,"pageY"in e?o=e.pageY:o=u+e.clientY;var m={left:i,top:o,width:0,height:0},p=i>=0&&i<=l+f&&o>=0&&o<=u+c,s=[t.points[0],"cc"];return ii(n,m,fn(fn({},t),{},{points:s}),p)}const Io=function(n){if(!n)return!1;if(n.offsetParent)return!0;if(n.getBBox){var e=n.getBBox();if(e.width||e.height)return!0}if(n.getBoundingClientRect){var t=n.getBoundingClientRect();if(t.width||t.height)return!0}return!1};function Eo(n,e){return n===e?!0:!n||!e?!1:"pageX"in e&&"pageY"in e?n.pageX===e.pageX&&n.pageY===e.pageY:"clientX"in e&&"clientY"in e?n.clientX===e.clientX&&n.clientY===e.clientY:!1}function Ro(n,e){n!==document.activeElement&&$e(e,n)&&typeof n.focus=="function"&&n.focus()}function On(n,e){var t=null,i=null;function o(r){var l=ft(r,1),u=l[0].target;if(document.documentElement.contains(u)){var f=u.getBoundingClientRect(),c=f.width,m=f.height,p=Math.floor(c),s=Math.floor(m);(t!==p||i!==s)&&Promise.resolve().then(function(){e({width:p,height:s})}),t=p,i=s}}var a=new Ii(o);return n&&a.observe(n),function(){a.disconnect()}}const $o=function(n,e){var t=!1,i=null;function o(){clearTimeout(i)}function a(r){if(!t||r===!0){if(n()===!1)return;t=!0,o(),i=setTimeout(function(){t=!1},e.value)}else o(),i=setTimeout(function(){t=!1,a()},e.value)}return[a,function(){t=!1,o()}]};var _o={align:Object,target:[Object,Function],onAlign:Function,monitorBufferTime:Number,monitorWindowResize:Boolean,disabled:Boolean};function xn(n){return typeof n!="function"?null:n()}function Mn(n){return me(n)!=="object"||!n?null:n}const Vo=Y({compatConfig:{MODE:3},name:"Align",props:_o,emits:["align"],setup:function(e,t){var i=t.expose,o=t.slots,a=I({}),r=I(),l=$o(function(){var v=e.disabled,C=e.target,P=e.align,N=e.onAlign;if(!v&&C&&r.value){var M=r.value,D,A=xn(C),y=Mn(C);a.value.element=A,a.value.point=y,a.value.align=P;var x=document,S=x.activeElement;return A&&Io(A)?D=Wt(M,A,P):y&&(D=No(M,y,P)),Ro(S,M),N&&D&&N(M,D),!0}return!1},O(function(){return e.monitorBufferTime})),u=ft(l,2),f=u[0],c=u[1],m=I({cancel:function(){}}),p=I({cancel:function(){}}),s=function(){var C=e.target,P=xn(C),N=Mn(C);r.value!==p.value.element&&(p.value.cancel(),p.value.element=r.value,p.value.cancel=On(r.value,f)),(a.value.element!==P||!Eo(a.value.point,N)||!xi(a.value.align,e.align))&&(f(),m.value.element!==P&&(m.value.cancel(),m.value.element=P,m.value.cancel=On(P,f)))};Ze(function(){Tt(function(){s()})}),Ei(function(){Tt(function(){s()})}),J(function(){return e.disabled},function(v){v?c():f()},{immediate:!0,flush:"post"});var g=I(null);return J(function(){return e.monitorWindowResize},function(v){v?g.value||(g.value=Ke(window,"resize",f)):g.value&&(g.value.remove(),g.value=null)},{flush:"post"}),kt(function(){m.value.cancel(),p.value.cancel(),g.value&&g.value.remove(),c()}),i({forceAlign:function(){return f(!0)}}),function(){var v=o==null?void 0:o.default();return v?pe(v[0],{ref:r},!0,!0):null}}}),ko=Y({compatConfig:{MODE:3},name:"PopupInner",inheritAttrs:!1,props:Bt,emits:["mouseenter","mouseleave","mousedown","touchstart","align"],setup:function(e,t){var i=t.expose,o=t.attrs,a=t.slots,r=I(),l=I(),u=I(),f=no(ut(e,"stretch")),c=ft(f,2),m=c[0],p=c[1],s=function(){e.stretch&&p(e.getRootDomNode())},g=I(!1),v;J(function(){return e.visible},function(E){clearTimeout(v),E?v=setTimeout(function(){g.value=e.visible}):g.value=!1},{immediate:!0});var C=to(g,s),P=ft(C,2),N=P[0],M=P[1],D=I(),A=function(){return e.point?e.point:e.getRootDomNode},y=function(){var K;(K=r.value)===null||K===void 0||K.forceAlign()},x=function(K,B){var U=e.getClassNameFromAlign(B),te=u.value;if(u.value!==U&&(u.value=U),N.value==="align"){var V;te!==U?Promise.resolve().then(function(){y()}):M(function(){var k;(k=D.value)===null||k===void 0||k.call(D)}),(V=e.onAlign)===null||V===void 0||V.call(e,K,B)}},S=O(function(){var E=me(e.animation)==="object"?e.animation:Un(e);return["onAfterEnter","onAfterLeave"].forEach(function(K){var B=E[K];E[K]=function(U){M(),N.value="stable",B==null||B(U)}}),E}),T=function(){return new Promise(function(K){D.value=K})};J([S,N],function(){!S.value&&N.value==="motion"&&M()},{immediate:!0}),i({forceAlign:y,getElement:function(){return l.value.$el||l.value}});var F=O(function(){var E;return!((E=e.align)!==null&&E!==void 0&&E.points&&(N.value==="align"||N.value==="stable"))});return function(){var E,K=e.zIndex,B=e.align,U=e.prefixCls,te=e.destroyPopupOnHide,V=e.onMouseenter,k=e.onMouseleave,j=e.onTouchstart,L=j===void 0?function(){}:j,ie=e.onMousedown,re=N.value,Q=[d(d({},m.value),{},{zIndex:K,opacity:re==="motion"||re==="stable"||!g.value?null:0,pointerEvents:!g.value&&re!=="stable"?"none":null}),o.style],le=gt((E=a.default)===null||E===void 0?void 0:E.call(a,{visible:e.visible}));le.length>1&&(le=h("div",{class:"".concat(U,"-content")},[le]));var w=ae(U,o.class,u.value),b=g.value||!e.visible,$=b?Bn(S.value.name,S.value):{};return h(mt,d(d({ref:l},$),{},{onBeforeEnter:T}),{default:function(){return!te||e.visible?Vt(h(Vo,{target:A(),key:"popup",ref:r,monitorWindowResize:!0,disabled:F.value,align:B,onAlign:x},{default:function(){return h("div",d(d({class:w,onMouseenter:V,onMouseleave:k,onMousedown:tn(ie,["capture"])},z({},Be?"onTouchstartPassive":"onTouchstart",tn(L,["capture"]))),{},{style:Q}),[le])}}),[[jn,g.value]]):null}})}}}),Fo=Y({compatConfig:{MODE:3},name:"Popup",inheritAttrs:!1,props:Qi,setup:function(e,t){var i=t.attrs,o=t.slots,a=t.expose,r=I(!1),l=I(!1),u=I();return J([function(){return e.visible},function(){return e.mobile}],function(){r.value=e.visible,e.visible&&e.mobile&&(l.value=!0)},{immediate:!0,flush:"post"}),a({forceAlign:function(){var c;(c=u.value)===null||c===void 0||c.forceAlign()},getElement:function(){var c;return(c=u.value)===null||c===void 0?void 0:c.getElement()}}),function(){var f=d(d(d({},e),i),{},{visible:r.value}),c=l.value?h(eo,d(d({},f),{},{mobile:e.mobile,ref:u}),{default:o.default}):h(ko,d(d({},f),{},{ref:u}),{default:o.default});return h("div",null,[h(qn,f,null),c])}}});function Ko(n,e,t){return t?n[0]===e[0]:n[0]===e[0]&&n[1]===e[1]}function Sn(n,e,t){var i=n[e]||{};return d(d({},i),t)}function Bo(n,e,t,i){for(var o=t.points,a=Object.keys(n),r=0;r<a.length;r+=1){var l=a[r];if(Ko(n[l].points,o,i))return"".concat(e,"-placement-").concat(l)}return""}const jo={methods:{setState:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,i=typeof e=="function"?e(this.$data,this.$props):e;if(this.getDerivedStateFromProps){var o=this.getDerivedStateFromProps(Ri(this),d(d({},this.$data),i));if(o===null)return;i=d(d({},i),o||{})}Ln(this.$data,i),this._.isMounted&&this.$forceUpdate(),Tt(function(){t&&t()})},__emit:function(){var e=[].slice.call(arguments,0),t=e[0];t="on".concat(t[0].toUpperCase()).concat(t.substring(1));var i=this.$props[t]||this.$attrs[t];if(e.length&&i)if(Array.isArray(i))for(var o=0,a=i.length;o<a;o++)i[o].apply(i,ye(e.slice(1)));else i.apply(void 0,ye(e.slice(1)))}}};function Tn(){}function Lo(){return""}function Ho(n){return n?n.ownerDocument:window.document}var zo=["onClick","onMousedown","onTouchstart","onMouseenter","onMouseleave","onFocus","onBlur","onContextmenu"];const Xt=Y({compatConfig:{MODE:3},name:"Trigger",mixins:[jo],inheritAttrs:!1,props:{action:R.oneOfType([R.string,R.arrayOf(R.string)]).def([]),showAction:R.any.def([]),hideAction:R.any.def([]),getPopupClassNameFromAlign:R.any.def(Lo),onPopupVisibleChange:Function,afterPopupVisibleChange:R.func.def(Tn),popup:R.any,popupStyle:{type:Object,default:void 0},prefixCls:R.string.def("rc-trigger-popup"),popupClassName:R.string.def(""),popupPlacement:String,builtinPlacements:R.object,popupTransitionName:String,popupAnimation:R.any,mouseEnterDelay:R.number.def(0),mouseLeaveDelay:R.number.def(.1),zIndex:Number,focusDelay:R.number.def(0),blurDelay:R.number.def(.15),getPopupContainer:Function,getDocument:R.func.def(Ho),forceRender:{type:Boolean,default:void 0},destroyPopupOnHide:{type:Boolean,default:!1},mask:{type:Boolean,default:!1},maskClosable:{type:Boolean,default:!0},popupAlign:R.object.def(function(){return{}}),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,tryPopPortal:Boolean},setup:function(e){var t=O(function(){var u=e.popupPlacement,f=e.popupAlign,c=e.builtinPlacements;return u&&c?Sn(c,u,f):f}),i=$i(e.tryPopPortal),o=i.setPortal,a=i.popPortal,r=I(null),l=function(f){r.value=f};return{popPortal:a,setPortal:o,vcTriggerContext:xe("vcTriggerContext",{}),popupRef:r,setPopupRef:l,triggerRef:I(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:function(){var e=this,t,i=this.$props,o;return this.popupVisible!==void 0?o=!!i.popupVisible:o=!!i.defaultPopupVisible,zo.forEach(function(a){e["fire".concat(a)]=function(r){e.fireEvents(a,r)}}),(t=this.setPortal)===null||t===void 0||t.call(this,h(nn,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},{default:this.getComponent})),{prevPopupVisible:o,sPopupVisible:o,point:null}},watch:{popupVisible:function(e){e!==void 0&&(this.prevPopupVisible=this.sPopupVisible,this.sPopupVisible=e)}},created:function(){De("vcTriggerContext",{onPopupMouseDown:this.onPopupMouseDown}),_i(this)},deactivated:function(){this.setPopupVisible(!1)},mounted:function(){var e=this;this.$nextTick(function(){e.updatedCal()})},updated:function(){var e=this;this.$nextTick(function(){e.updatedCal()})},beforeUnmount:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),de.cancel(this.attachId)},methods:{updatedCal:function(){var e=this.$props,t=this.$data;if(t.sPopupVisible){var i;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextmenuToShow())&&(i=e.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Ke(i,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(i=i||e.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Ke(i,"touchstart",this.onDocumentClick,Be?{passive:!1}:!1)),!this.contextmenuOutsideHandler1&&this.isContextmenuToShow()&&(i=i||e.getDocument(this.getRootDomNode()),this.contextmenuOutsideHandler1=Ke(i,"scroll",this.onContextmenuClose)),!this.contextmenuOutsideHandler2&&this.isContextmenuToShow()&&(this.contextmenuOutsideHandler2=Ke(window,"blur",this.onContextmenuClose))}else this.clearOutsideHandler()},onMouseenter:function(e){var t=this.$props.mouseEnterDelay;this.fireEvents("onMouseenter",e),this.delaySetPopupVisible(!0,t,t?null:e)},onMouseMove:function(e){this.fireEvents("onMousemove",e),this.setPoint(e)},onMouseleave:function(e){this.fireEvents("onMouseleave",e),this.delaySetPopupVisible(!1,this.$props.mouseLeaveDelay)},onPopupMouseenter:function(){this.clearDelayTimer()},onPopupMouseleave:function(e){var t;e&&e.relatedTarget&&!e.relatedTarget.setTimeout&&$e((t=this.popupRef)===null||t===void 0?void 0:t.getElement(),e.relatedTarget)||this.delaySetPopupVisible(!1,this.$props.mouseLeaveDelay)},onFocus:function(e){this.fireEvents("onFocus",e),this.clearDelayTimer(),this.isFocusToShow()&&(this.focusTime=Date.now(),this.delaySetPopupVisible(!0,this.$props.focusDelay))},onMousedown:function(e){this.fireEvents("onMousedown",e),this.preClickTime=Date.now()},onTouchstart:function(e){this.fireEvents("onTouchstart",e),this.preTouchTime=Date.now()},onBlur:function(e){$e(e.target,e.relatedTarget||document.activeElement)||(this.fireEvents("onBlur",e),this.clearDelayTimer(),this.isBlurToHide()&&this.delaySetPopupVisible(!1,this.$props.blurDelay))},onContextmenu:function(e){e.preventDefault(),this.fireEvents("onContextmenu",e),this.setPopupVisible(!0,e)},onContextmenuClose:function(){this.isContextmenuToShow()&&this.close()},onClick:function(e){if(this.fireEvents("onClick",e),this.focusTime){var t;if(this.preClickTime&&this.preTouchTime?t=Math.min(this.preClickTime,this.preTouchTime):this.preClickTime?t=this.preClickTime:this.preTouchTime&&(t=this.preTouchTime),Math.abs(t-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();var i=!this.$data.sPopupVisible;(this.isClickToHide()&&!i||i&&this.isClickToShow())&&this.setPopupVisible(!this.$data.sPopupVisible,e)},onPopupMouseDown:function(){var e=this,t=this.vcTriggerContext,i=t===void 0?{}:t;this.hasPopupMouseDown=!0,clearTimeout(this.mouseDownTimeout),this.mouseDownTimeout=setTimeout(function(){e.hasPopupMouseDown=!1},0),i.onPopupMouseDown&&i.onPopupMouseDown.apply(i,arguments)},onDocumentClick:function(e){if(!(this.$props.mask&&!this.$props.maskClosable)){var t=e.target,i=this.getRootDomNode(),o=this.getPopupDomNode();(!$e(i,t)||this.isContextMenuOnly())&&!$e(o,t)&&!this.hasPopupMouseDown&&this.delaySetPopupVisible(!1,.1)}},getPopupDomNode:function(){var e;return((e=this.popupRef)===null||e===void 0?void 0:e.getElement())||null},getRootDomNode:function(){var e=this.$props.getTriggerDOMNode;if(e){var t=tt(this.triggerRef);return tt(e(t))}try{var i=tt(this.triggerRef);if(i)return i}catch{}return tt(this)},handleGetPopupClassFromAlign:function(e){var t=[],i=this.$props,o=i.popupPlacement,a=i.builtinPlacements,r=i.prefixCls,l=i.alignPoint,u=i.getPopupClassNameFromAlign;return o&&a&&t.push(Bo(a,r,e,l)),u&&t.push(u(e)),t.join(" ")},getPopupAlign:function(){var e=this.$props,t=e.popupPlacement,i=e.popupAlign,o=e.builtinPlacements;return t&&o?Sn(o,t,i):i},getComponent:function(){var e=this,t={};this.isMouseEnterToShow()&&(t.onMouseenter=this.onPopupMouseenter),this.isMouseLeaveToHide()&&(t.onMouseleave=this.onPopupMouseleave),t.onMousedown=this.onPopupMouseDown,t[Be?"onTouchstartPassive":"onTouchstart"]=this.onPopupMouseDown;var i=this.handleGetPopupClassFromAlign,o=this.getRootDomNode,a=this.getContainer,r=this.$attrs,l=this.$props,u=l.prefixCls,f=l.destroyPopupOnHide,c=l.popupClassName,m=l.popupAnimation,p=l.popupTransitionName,s=l.popupStyle,g=l.mask,v=l.maskAnimation,C=l.maskTransitionName,P=l.zIndex,N=l.stretch,M=l.alignPoint,D=l.mobile,A=l.forceRender,y=this.$data,x=y.sPopupVisible,S=y.point,T=d(d({prefixCls:u,destroyPopupOnHide:f,visible:x,point:M?S:null,align:this.align,animation:m,getClassNameFromAlign:i,stretch:N,getRootDomNode:o,mask:g,zIndex:P,transitionName:p,maskAnimation:v,maskTransitionName:C,getContainer:a,class:c,style:s,onAlign:r.onPopupAlign||Tn},t),{},{ref:this.setPopupRef,mobile:D,forceRender:A});return h(Fo,T,{default:this.$slots.popup||function(){return Vi(e,"popup")}})},attachParent:function(e){var t=this;de.cancel(this.attachId);var i=this.$props,o=i.getPopupContainer,a=i.getDocument,r=this.getRootDomNode(),l;o?(r||o.length===0)&&(l=o(r)):l=a(this.getRootDomNode()).body,l?l.appendChild(e):this.attachId=de(function(){t.attachParent(e)})},getContainer:function(){var e=this.$props,t=e.getDocument,i=t(this.getRootDomNode()).createElement("div");return i.style.position="absolute",i.style.top="0",i.style.left="0",i.style.width="100%",this.attachParent(i),i},setPopupVisible:function(e,t){var i=this.alignPoint,o=this.sPopupVisible,a=this.onPopupVisibleChange;this.clearDelayTimer(),o!==e&&(ki(this,"popupVisible")||this.setState({sPopupVisible:e,prevPopupVisible:o}),a&&a(e)),i&&t&&e&&this.setPoint(t)},setPoint:function(e){var t=this.$props.alignPoint;!t||!e||this.setState({point:{pageX:e.pageX,pageY:e.pageY}})},handlePortalUpdate:function(){this.prevPopupVisible!==this.sPopupVisible&&this.afterPopupVisibleChange(this.sPopupVisible)},delaySetPopupVisible:function(e,t,i){var o=this,a=t*1e3;if(this.clearDelayTimer(),a){var r=i?{pageX:i.pageX,pageY:i.pageY}:null;this.delayTimer=Zi(function(){o.setPopupVisible(e,r),o.clearDelayTimer()},a)}else this.setPopupVisible(e,i)},clearDelayTimer:function(){this.delayTimer&&(Gi(this.delayTimer),this.delayTimer=null)},clearOutsideHandler:function(){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:function(e){var t=function(){},i=on(this);return this.childOriginEvents[e]&&i[e]?this["fire".concat(e)]:(t=this.childOriginEvents[e]||i[e]||t,t)},isClickToShow:function(){var e=this.$props,t=e.action,i=e.showAction;return t.indexOf("click")!==-1||i.indexOf("click")!==-1},isContextMenuOnly:function(){var e=this.$props.action;return e==="contextmenu"||e.length===1&&e[0]==="contextmenu"},isContextmenuToShow:function(){var e=this.$props,t=e.action,i=e.showAction;return t.indexOf("contextmenu")!==-1||i.indexOf("contextmenu")!==-1},isClickToHide:function(){var e=this.$props,t=e.action,i=e.hideAction;return t.indexOf("click")!==-1||i.indexOf("click")!==-1},isMouseEnterToShow:function(){var e=this.$props,t=e.action,i=e.showAction;return t.indexOf("hover")!==-1||i.indexOf("mouseenter")!==-1},isMouseLeaveToHide:function(){var e=this.$props,t=e.action,i=e.hideAction;return t.indexOf("hover")!==-1||i.indexOf("mouseleave")!==-1},isFocusToShow:function(){var e=this.$props,t=e.action,i=e.showAction;return t.indexOf("focus")!==-1||i.indexOf("focus")!==-1},isBlurToHide:function(){var e=this.$props,t=e.action,i=e.hideAction;return t.indexOf("focus")!==-1||i.indexOf("blur")!==-1},forcePopupAlign:function(){if(this.$data.sPopupVisible){var e;(e=this.popupRef)===null||e===void 0||e.forceAlign()}},fireEvents:function(e,t){this.childOriginEvents[e]&&this.childOriginEvents[e](t);var i=this.$props[e]||this.$attrs[e];i&&i(t)},close:function(){this.setPopupVisible(!1)}},render:function(){var e=this,t=this.$attrs,i=Hn(Fi(this)),o=this.$props.alignPoint,a=i[0];this.childOriginEvents=on(a);var r={key:"trigger"};this.isContextmenuToShow()?r.onContextmenu=this.onContextmenu:r.onContextmenu=this.createTwoChains("onContextmenu"),this.isClickToHide()||this.isClickToShow()?(r.onClick=this.onClick,r.onMousedown=this.onMousedown,r[Be?"onTouchstartPassive":"onTouchstart"]=this.onTouchstart):(r.onClick=this.createTwoChains("onClick"),r.onMousedown=this.createTwoChains("onMousedown"),r[Be?"onTouchstartPassive":"onTouchstart"]=this.createTwoChains("onTouchstart")),this.isMouseEnterToShow()?(r.onMouseenter=this.onMouseenter,o&&(r.onMousemove=this.onMouseMove)):r.onMouseenter=this.createTwoChains("onMouseenter"),this.isMouseLeaveToHide()?r.onMouseleave=this.onMouseleave:r.onMouseleave=this.createTwoChains("onMouseleave"),this.isFocusToShow()||this.isBlurToHide()?(r.onFocus=this.onFocus,r.onBlur=this.onBlur):(r.onFocus=this.createTwoChains("onFocus"),r.onBlur=function(c){c&&(!c.relatedTarget||!$e(c.target,c.relatedTarget))&&e.createTwoChains("onBlur")(c)});var l=ae(a&&a.props&&a.props.class,t.class);l&&(r.class=l);var u=pe(a,d(d({},r),{},{ref:"triggerRef"}),!0,!0);if(this.popPortal)return u;var f=h(nn,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},{default:this.getComponent});return h(Xe,null,[f,u])}});var oi=Symbol("OverflowContextProviderKey"),Rt=Y({compatConfig:{MODE:3},name:"OverflowContextProvider",inheritAttrs:!1,props:{value:{type:Object}},setup:function(e,t){var i=t.slots;return De(oi,O(function(){return e.value})),function(){var o;return(o=i.default)===null||o===void 0?void 0:o.call(i)}}}),Wo=function(){return xe(oi,O(function(){return null}))},Xo=["prefixCls","invalidate","item","renderItem","responsive","registerSize","itemKey","display","order","component"],Ie=void 0;const st=Y({compatConfig:{MODE:3},name:"Item",props:{prefixCls:String,item:R.any,renderItem:Function,responsive:Boolean,itemKey:{type:[String,Number]},registerSize:Function,display:Boolean,order:Number,component:R.any,invalidate:Boolean},setup:function(e,t){var i=t.slots,o=t.expose,a=O(function(){return e.responsive&&!e.display}),r=I();o({itemNodeRef:r});function l(u){e.registerSize(e.itemKey,u)}return kt(function(){l(null)}),function(){var u,f=e.prefixCls,c=e.invalidate,m=e.item,p=e.renderItem,s=e.responsive;e.registerSize,e.itemKey,e.display;var g=e.order,v=e.component,C=v===void 0?"div":v,P=Oe(e,Xo),N=(u=i.default)===null||u===void 0?void 0:u.call(i),M=p&&m!==Ie?p(m):N,D;c||(D={opacity:a.value?0:1,height:a.value?0:Ie,overflowY:a.value?"hidden":Ie,order:s?g:Ie,pointerEvents:a.value?"none":Ie,position:a.value?"absolute":Ie});var A={};return a.value&&(A["aria-hidden"]=!0),h(zn,{disabled:!s,onResize:function(x){var S=x.offsetWidth;l(S)}},{default:function(){return h(C,d(d(d({class:ae(!c&&f),style:D},A),P),{},{ref:r}),{default:function(){return[M]}})}})}}});var Yo=["component"],Uo=["className"],qo=["class"];const Go=Y({compatConfig:{MODE:3},name:"RawItem",inheritAttrs:!1,props:{component:R.any,title:R.any,id:String,onMouseenter:{type:Function},onMouseleave:{type:Function},onClick:{type:Function},onKeydown:{type:Function},onFocus:{type:Function}},setup:function(e,t){var i=t.slots,o=t.attrs,a=Wo();return function(){if(!a.value){var r,l=e.component,u=l===void 0?"div":l,f=Oe(e,Yo);return h(u,d(d({},f),o),{default:function(){return[(r=i.default)===null||r===void 0?void 0:r.call(i)]}})}var c=a.value,m=c.className,p=Oe(c,Uo),s=o.class,g=Oe(o,qo);return h(Rt,{value:null},{default:function(){return[h(st,d(d(d({class:ae(m,s)},p),g),e),i)]}})}}});var Zo=["class","style"],ai="responsive",ri="invalidate";function Jo(n){return"+ ".concat(n.length," ...")}var Qo=function(){return{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:R.any,component:String,itemComponent:R.any,onVisibleChange:Function,ssr:String,onMousedown:Function}},yt=Y({name:"Overflow",inheritAttrs:!1,props:Qo(),emits:["visibleChange"],setup:function(e,t){var i=t.attrs,o=t.emit,a=t.slots,r=O(function(){return e.ssr==="full"}),l=I(null),u=O(function(){return l.value||0}),f=I(new Map),c=I(0),m=I(0),p=I(0),s=I(null),g=I(null),v=O(function(){return g.value===null&&r.value?Number.MAX_SAFE_INTEGER:g.value||0}),C=I(!1),P=O(function(){return"".concat(e.prefixCls,"-item")}),N=O(function(){return Math.max(c.value,m.value)}),M=O(function(){return!!(e.data.length&&e.maxCount===ai)}),D=O(function(){return e.maxCount===ri}),A=O(function(){return M.value||typeof e.maxCount=="number"&&e.data.length>e.maxCount}),y=O(function(){var V=e.data;return M.value?l.value===null&&r.value?V=e.data:V=e.data.slice(0,Math.min(e.data.length,u.value/e.itemWidth)):typeof e.maxCount=="number"&&(V=e.data.slice(0,e.maxCount)),V}),x=O(function(){return M.value?e.data.slice(v.value+1):e.data.slice(y.value.length)}),S=function(k,j){var L;return typeof e.itemKey=="function"?e.itemKey(k):(L=e.itemKey&&(k==null?void 0:k[e.itemKey]))!==null&&L!==void 0?L:j},T=O(function(){return e.renderItem||function(V){return V}}),F=function(k,j){g.value=k,j||(C.value=k<e.data.length-1,o("visibleChange",k))},E=function(k,j){l.value=j.clientWidth},K=function(k,j){var L=new Map(f.value);j===null?L.delete(k):L.set(k,j),f.value=L},B=function(k,j){c.value=m.value,m.value=j},U=function(k,j){p.value=j},te=function(k){return f.value.get(S(y.value[k],k))};return J([u,f,m,p,function(){return e.itemKey},y],function(){if(u.value&&N.value&&y.value){var V=p.value,k=y.value.length,j=k-1;if(!k){F(0),s.value=null;return}for(var L=0;L<k;L+=1){var ie=te(L);if(ie===void 0){F(L-1,!0);break}if(V+=ie,j===0&&V<=u.value||L===j-1&&V+te(j)<=u.value){F(j),s.value=null;break}else if(V+N.value>u.value){F(L-1),s.value=V-ie-p.value+m.value;break}}e.suffix&&te(0)+p.value>u.value&&(s.value=null)}}),function(){var V=C.value&&!!x.value.length,k=e.itemComponent,j=e.renderRawItem,L=e.renderRawRest,ie=e.renderRest,re=e.prefixCls,Q=re===void 0?"rc-overflow":re,le=e.suffix,w=e.component,b=w===void 0?"div":w,$=e.id,H=e.onMousedown,W=i.class,G=i.style,Z=Oe(i,Zo),q={};s.value!==null&&M.value&&(q={position:"absolute",left:"".concat(s.value,"px"),top:0});var ne={prefixCls:P.value,responsive:M.value,component:k,invalidate:D.value},he=j?function(ue,oe){var Ce=S(ue,oe);return h(Rt,{key:Ce,value:d(d({},ne),{},{order:oe,item:ue,itemKey:Ce,registerSize:K,display:oe<=v.value})},{default:function(){return[j(ue,oe)]}})}:function(ue,oe){var Ce=S(ue,oe);return h(st,d(d({},ne),{},{order:oe,key:Ce,item:ue,renderItem:T.value,itemKey:Ce,registerSize:K,display:oe<=v.value}),null)},ve=function(){return null},be={order:V?v.value:Number.MAX_SAFE_INTEGER,className:"".concat(P.value," ").concat(P.value,"-rest"),registerSize:B,display:V};if(L)L&&(ve=function(){return h(Rt,{value:d(d({},ne),be)},{default:function(){return[L(x.value)]}})});else{var Ne=ie||Jo;ve=function(){return h(st,d(d({},ne),be),{default:function(){return typeof Ne=="function"?Ne(x.value):Ne}})}}var bt=function(){var oe;return h(b,d({id:$,class:ae(!D.value&&Q,W),style:G,onMousedown:H},Z),{default:function(){return[y.value.map(he),A.value?ve():null,le&&h(st,d(d({},ne),{},{order:v.value,class:"".concat(P.value,"-suffix"),registerSize:U,display:!0,style:q}),{default:function(){return le}}),(oe=a.default)===null||oe===void 0?void 0:oe.call(a)]}})};return h(zn,{disabled:!M.value,onResize:E},{default:bt})}}});yt.Item=Go;yt.RESPONSIVE=ai;yt.INVALIDATE=ri;const He=yt;function nr(){var n=I({}),e=null;return Ze(function(){e=Qt.subscribe(function(t){n.value=t})}),kt(function(){Qt.unsubscribe(e)}),n}function ir(n){var e=Ki();return Le(function(){e.value=n()},{flush:"sync"}),e}var fe={adjustX:1,adjustY:1},ce=[0,0],li={left:{points:["cr","cl"],overflow:fe,offset:[-4,0],targetOffset:ce},right:{points:["cl","cr"],overflow:fe,offset:[4,0],targetOffset:ce},top:{points:["bc","tc"],overflow:fe,offset:[0,-4],targetOffset:ce},bottom:{points:["tc","bc"],overflow:fe,offset:[0,4],targetOffset:ce},topLeft:{points:["bl","tl"],overflow:fe,offset:[0,-4],targetOffset:ce},leftTop:{points:["tr","tl"],overflow:fe,offset:[-4,0],targetOffset:ce},topRight:{points:["br","tr"],overflow:fe,offset:[0,-4],targetOffset:ce},rightTop:{points:["tl","tr"],overflow:fe,offset:[4,0],targetOffset:ce},bottomRight:{points:["tr","br"],overflow:fe,offset:[0,4],targetOffset:ce},rightBottom:{points:["bl","br"],overflow:fe,offset:[4,0],targetOffset:ce},bottomLeft:{points:["tl","bl"],overflow:fe,offset:[0,4],targetOffset:ce},leftBottom:{points:["br","bl"],overflow:fe,offset:[-4,0],targetOffset:ce}},ea={prefixCls:String,id:String,overlayInnerStyle:R.any};const ta=Y({compatConfig:{MODE:3},name:"Content",props:ea,slots:["overlay"],setup:function(e,t){var i=t.slots;return function(){var o;return h("div",{class:"".concat(e.prefixCls,"-inner"),id:e.id,role:"tooltip",style:e.overlayInnerStyle},[(o=i.overlay)===null||o===void 0?void 0:o.call(i)])}}});var na=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible"];function An(){}const ia=Y({compatConfig:{MODE:3},name:"Tooltip",inheritAttrs:!1,props:{trigger:R.any.def(["hover"]),defaultVisible:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},placement:R.string.def("right"),transitionName:String,animation:R.any,afterVisibleChange:R.func.def(function(){}),overlayStyle:{type:Object,default:void 0},overlayClassName:String,prefixCls:R.string.def("rc-tooltip"),mouseEnterDelay:R.number.def(.1),mouseLeaveDelay:R.number.def(.1),getPopupContainer:Function,destroyTooltipOnHide:{type:Boolean,default:!1},align:R.object.def(function(){return{}}),arrowContent:R.any.def(null),tipId:String,builtinPlacements:R.object,overlayInnerStyle:{type:Object,default:void 0},popupVisible:{type:Boolean,default:void 0},onVisibleChange:Function,onPopupAlign:Function},slots:["arrowContent","overlay"],setup:function(e,t){var i=t.slots,o=t.attrs,a=t.expose,r=I(),l=function(){var p=e.prefixCls,s=e.tipId,g=e.overlayInnerStyle;return[h("div",{class:"".concat(p,"-arrow"),key:"arrow"},[Ye(i,e,"arrowContent")]),h(ta,{key:"content",prefixCls:p,id:s,overlayInnerStyle:g},{overlay:i.overlay})]},u=function(){return r.value.getPopupDomNode()};a({getPopupDomNode:u,triggerDOM:r,forcePopupAlign:function(){var p;return(p=r.value)===null||p===void 0?void 0:p.forcePopupAlign()}});var f=I(!1),c=I(!1);return Le(function(){var m=e.destroyTooltipOnHide;if(typeof m=="boolean")f.value=m;else if(m&&me(m)==="object"){var p=m.keepParent;f.value=p===!0,c.value=p===!1}}),function(){var m=e.overlayClassName,p=e.trigger,s=e.mouseEnterDelay,g=e.mouseLeaveDelay,v=e.overlayStyle,C=e.prefixCls,P=e.afterVisibleChange,N=e.transitionName,M=e.animation,D=e.placement,A=e.align;e.destroyTooltipOnHide;var y=e.defaultVisible,x=Oe(e,na),S=d({},x);e.visible!==void 0&&(S.popupVisible=e.visible);var T=d(d(d({popupClassName:m,prefixCls:C,action:p,builtinPlacements:li,popupPlacement:D,popupAlign:A,afterPopupVisibleChange:P,popupTransitionName:N,popupAnimation:M,defaultPopupVisible:y,destroyPopupOnHide:f.value,autoDestroy:c.value,mouseLeaveDelay:g,popupStyle:v,mouseEnterDelay:s},S),o),{},{onPopupVisibleChange:e.onVisibleChange||An,onPopupAlign:e.onPopupAlign||An,ref:r,popup:l()});return h(Xt,T,{default:i.default})}}});Wn("success","processing","error","default","warning");var oa=Wn("pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime");const aa=function(){return{trigger:[String,Array],visible:{type:Boolean,default:void 0},defaultVisible:{type:Boolean,default:void 0},placement:String,color:String,transitionName:String,overlayStyle:{type:Object,default:void 0},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:{type:Object,default:void 0},builtinPlacements:{type:Object,default:void 0},children:Array,onVisibleChange:Function,"onUpdate:visible":Function}};var ra={adjustX:1,adjustY:1},Dn={adjustX:0,adjustY:0},la=[0,0];function Nn(n){return typeof n=="boolean"?n?ra:Dn:d(d({},Dn),n)}function ui(n){var e=n.arrowWidth,t=e===void 0?4:e,i=n.horizontalArrowShift,o=i===void 0?16:i,a=n.verticalArrowShift,r=a===void 0?8:a,l=n.autoAdjustOverflow,u=n.arrowPointAtCenter,f={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:[-(o+t),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(r+t)]},topRight:{points:["br","tc"],offset:[o+t,-4]},rightTop:{points:["tl","cr"],offset:[4,-(r+t)]},bottomRight:{points:["tr","bc"],offset:[o+t,4]},rightBottom:{points:["bl","cr"],offset:[4,r+t]},bottomLeft:{points:["tl","bc"],offset:[-(o+t),4]},leftBottom:{points:["br","cl"],offset:[-4,r+t]}};return Object.keys(f).forEach(function(c){f[c]=u?d(d({},f[c]),{},{overflow:Nn(l),targetOffset:la}):d(d({},li[c]),{},{overflow:Nn(l)}),f[c].ignoreShake=!0}),f}function ua(){for(var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=0,t=n.length;e<t;e++)if(n[e]!==void 0)return n[e]}var sa=function(e,t){var i={},o=d({},e);return t.forEach(function(a){e&&a in e&&(i[a]=e[a],delete o[a])}),{picked:i,omitted:o}},In=new RegExp("^(".concat(oa.join("|"),")(-inverse)?$")),fa=function(){return d(d({},aa()),{},{title:R.any})},or=function(){return{trigger:"hover",transitionName:"zoom-big-fast",align:{},placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0}};const ca=Y({compatConfig:{MODE:3},name:"ATooltip",inheritAttrs:!1,props:Ft(fa(),{trigger:"hover",transitionName:"zoom-big-fast",align:{},placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0}),slots:["title"],setup:function(e,t){var i=t.slots,o=t.emit,a=t.attrs,r=t.expose,l=Je("tooltip",e),u=l.prefixCls,f=l.getPopupContainer,c=I(ua([e.visible,e.defaultVisible])),m=I();Ze(function(){Bi(e.defaultVisible===void 0,"Tooltip","'defaultVisible' is deprecated, please use 'v-model:visible'")});var p;J(function(){return e.visible},function(A){de.cancel(p),p=de(function(){c.value=!!A})});var s=function(){var y,x=(y=e.title)!==null&&y!==void 0?y:i.title;return!x&&x!==0},g=function(y){var x=s();e.visible===void 0&&(c.value=x?!1:y),x||(o("update:visible",y),o("visibleChange",y))},v=function(){return m.value.getPopupDomNode()};r({getPopupDomNode:v,visible:c,forcePopupAlign:function(){var y;return(y=m.value)===null||y===void 0?void 0:y.forcePopupAlign()}});var C=O(function(){var A=e.builtinPlacements,y=e.arrowPointAtCenter,x=e.autoAdjustOverflow;return A||ui({arrowPointAtCenter:y,autoAdjustOverflow:x})}),P=function(y){return y||y===""},N=function(y){var x=y.type;if(me(x)==="object"&&y.props&&((x.__ANT_BUTTON===!0||x==="button")&&P(y.props.disabled)||x.__ANT_SWITCH===!0&&(P(y.props.disabled)||P(y.props.loading)))){var S=sa(ji(y),["position","left","right","top","bottom","float","display","zIndex"]),T=S.picked,F=S.omitted,E=d(d({display:"inline-block"},T),{},{cursor:"not-allowed",lineHeight:1,width:y.props&&y.props.block?"100%":null}),K=d(d({},F),{},{pointerEvents:"none"}),B=pe(y,{style:K},!0);return h("span",{style:E,class:"".concat(u.value,"-disabled-compatible-wrapper")},[B])}return y},M=function(){var y,x;return(y=e.title)!==null&&y!==void 0?y:(x=i.title)===null||x===void 0?void 0:x.call(i)},D=function(y,x){var S=C.value,T=Object.keys(S).filter(function(K){return S[K].points[0]===x.points[0]&&S[K].points[1]===x.points[1]})[0];if(T){var F=y.getBoundingClientRect(),E={top:"50%",left:"50%"};T.indexOf("top")>=0||T.indexOf("Bottom")>=0?E.top="".concat(F.height-x.offset[1],"px"):(T.indexOf("Top")>=0||T.indexOf("bottom")>=0)&&(E.top="".concat(-x.offset[1],"px")),T.indexOf("left")>=0||T.indexOf("Right")>=0?E.left="".concat(F.width-x.offset[0],"px"):(T.indexOf("right")>=0||T.indexOf("Left")>=0)&&(E.left="".concat(-x.offset[0],"px")),y.style.transformOrigin="".concat(E.left," ").concat(E.top)}};return function(){var A,y,x,S=e.openClassName,T=e.color,F=e.overlayClassName,E=(A=Hn((y=i.default)===null||y===void 0?void 0:y.call(i)))!==null&&A!==void 0?A:null;E=E.length===1?E[0]:E;var K=c.value;if(e.visible===void 0&&s()&&(K=!1),!E)return null;var B=N(Ue(E)?E:h("span",null,[E])),U=ae((x={},z(x,S||"".concat(u.value,"-open"),!0),z(x,B.props&&B.props.class,B.props&&B.props.class),x)),te=ae(F,z({},"".concat(u.value,"-").concat(T),T&&In.test(T))),V,k;T&&!In.test(T)&&(V={backgroundColor:T},k={backgroundColor:T});var j=d(d(d({},a),e),{},{prefixCls:u.value,getPopupContainer:f.value,builtinPlacements:C.value,visible:K,ref:m,overlayClassName:te,overlayInnerStyle:V,onVisibleChange:g,onPopupAlign:D});return h(ia,j,{default:function(){return[c.value?pe(B,{class:U}):B]},arrowContent:function(){return h("span",{class:"".concat(u.value,"-arrow-content"),style:k},null)},overlay:M})}}}),va=Li(ca);var Ee={adjustX:1,adjustY:1},Re=[0,0],da={topLeft:{points:["bl","tl"],overflow:Ee,offset:[0,-4],targetOffset:Re},topCenter:{points:["bc","tc"],overflow:Ee,offset:[0,-4],targetOffset:Re},topRight:{points:["br","tr"],overflow:Ee,offset:[0,-4],targetOffset:Re},bottomLeft:{points:["tl","bl"],overflow:Ee,offset:[0,4],targetOffset:Re},bottomCenter:{points:["tc","bc"],overflow:Ee,offset:[0,4],targetOffset:Re},bottomRight:{points:["tr","br"],overflow:Ee,offset:[0,4],targetOffset:Re}};const pa=da;var ma=["prefixCls","arrow","showAction","overlayStyle","trigger","placement","align","getPopupContainer","transitionName","animation","overlayClassName"];const ga=Y({compatConfig:{MODE:3},props:{minOverlayWidthMatchTrigger:{type:Boolean,default:void 0},arrow:{type:Boolean,default:!1},prefixCls:R.string.def("rc-dropdown"),transitionName:String,overlayClassName:R.string.def(""),openClassName:String,animation:R.any,align:R.object,overlayStyle:{type:Object,default:void 0},placement:R.string.def("bottomLeft"),overlay:R.any,trigger:R.oneOfType([R.string,R.arrayOf(R.string)]).def("hover"),alignPoint:{type:Boolean,default:void 0},showAction:R.array,hideAction:R.array,getPopupContainer:Function,visible:{type:Boolean,default:void 0},defaultVisible:{type:Boolean,default:!1},mouseEnterDelay:R.number.def(.15),mouseLeaveDelay:R.number.def(.1)},emits:["visibleChange","overlayClick"],slots:["overlay"],setup:function(e,t){var i=t.slots,o=t.emit,a=t.expose,r=I(!!e.visible);J(function(){return e.visible},function(g){g!==void 0&&(r.value=g)});var l=I();a({triggerRef:l});var u=function(v){e.visible===void 0&&(r.value=!1),o("overlayClick",v)},f=function(v){e.visible===void 0&&(r.value=v),o("visibleChange",v)},c=function(){var v,C=(v=i.overlay)===null||v===void 0?void 0:v.call(i),P={prefixCls:"".concat(e.prefixCls,"-menu"),onClick:u,getPopupContainer:function(){return l.value.getPopupDomNode()}};return h(Xe,null,[e.arrow&&h("div",{class:"".concat(e.prefixCls,"-arrow")},null),pe(C,P,!1)])},m=O(function(){var g=e.minOverlayWidthMatchTrigger,v=g===void 0?!e.alignPoint:g;return v}),p=function(){var v,C=(v=i.default)===null||v===void 0?void 0:v.call(i);return r.value&&C?pe(C[0],{class:e.openClassName||"".concat(e.prefixCls,"-open")},!1):C},s=O(function(){return!e.hideAction&&e.trigger.indexOf("contextmenu")!==-1?["click"]:e.hideAction});return function(){var g=e.prefixCls,v=e.arrow,C=e.showAction,P=e.overlayStyle,N=e.trigger,M=e.placement,D=e.align,A=e.getPopupContainer,y=e.transitionName,x=e.animation,S=e.overlayClassName,T=Oe(e,ma);return h(Xt,d(d({},T),{},{prefixCls:g,ref:l,popupClassName:ae(S,z({},"".concat(g,"-show-arrow"),v)),popupStyle:P,builtinPlacements:pa,action:N,showAction:C,hideAction:s.value||[],popupPlacement:M,popupAlign:D,popupTransitionName:y,popupAnimation:x,popupVisible:r.value,stretch:m.value?"minWidth":"",onPopupVisibleChange:f,getPopupContainer:A}),{popup:c,default:p})}}});var si=function(){return{arrow:{type:[Boolean,Object],default:void 0},trigger:{type:[Array,String]},overlay:R.any,visible:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},align:{type:Object},getPopupContainer:Function,prefixCls:String,transitionName:String,placement:String,overlayClassName:String,overlayStyle:{type:Object,default:void 0},forceRender:{type:Boolean,default:void 0},mouseEnterDelay:Number,mouseLeaveDelay:Number,openClassName:String,minOverlayWidthMatchTrigger:{type:Boolean,default:void 0},destroyPopupOnHide:{type:Boolean,default:void 0},onVisibleChange:{type:Function},"onUpdate:visible":{type:Function}}},Mt=Hi(),ha=function(){return d(d({},si()),{},{type:Mt.type,size:String,htmlType:Mt.htmlType,href:String,disabled:{type:Boolean,default:void 0},prefixCls:String,icon:R.any,title:String,loading:Mt.loading,onClick:{type:Function}})},ya={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 ba=ya;function En(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},i=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(t).filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable}))),i.forEach(function(o){Ca(n,o,t[o])})}return n}function Ca(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var Yt=function(e,t){var i=En({},e,t.attrs);return h(Kt,En({},i,{icon:ba}),null)};Yt.displayName="EllipsisOutlined";Yt.inheritAttrs=!1;const fi=Yt;var wa=["type","disabled","loading","htmlType","class","overlay","trigger","align","visible","onVisibleChange","placement","href","title","icon","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","onClick","onUpdate:visible"],Pa=At.Group;const vt=Y({compatConfig:{MODE:3},name:"ADropdownButton",inheritAttrs:!1,__ANT_BUTTON:!0,props:Ft(ha(),{trigger:"hover",placement:"bottomRight",type:"default"}),slots:["icon","leftButton","rightButton","overlay"],setup:function(e,t){var i=t.slots,o=t.attrs,a=t.emit,r=function(p){a("update:visible",p),a("visibleChange",p)},l=Je("dropdown-button",e),u=l.prefixCls,f=l.direction,c=l.getPopupContainer;return function(){var m,p,s=d(d({},e),o),g=s.type,v=g===void 0?"default":g,C=s.disabled,P=s.loading,N=s.htmlType,M=s.class,D=M===void 0?"":M,A=s.overlay,y=A===void 0?(m=i.overlay)===null||m===void 0?void 0:m.call(i):A,x=s.trigger,S=s.align,T=s.visible;s.onVisibleChange;var F=s.placement,E=F===void 0?f.value==="rtl"?"bottomLeft":"bottomRight":F,K=s.href,B=s.title,U=s.icon,te=U===void 0?((p=i.icon)===null||p===void 0?void 0:p.call(i))||h(fi,null,null):U,V=s.mouseEnterDelay,k=s.mouseLeaveDelay,j=s.overlayClassName,L=s.overlayStyle,ie=s.destroyPopupOnHide,re=s.onClick;s["onUpdate:visible"];var Q=Oe(s,wa),le={align:S,disabled:C,trigger:C?[]:x,placement:E,getPopupContainer:c.value,onVisibleChange:r,mouseEnterDelay:V,mouseLeaveDelay:k,visible:T,overlayClassName:j,overlayStyle:L,destroyPopupOnHide:ie},w=h(At,{type:v,disabled:C,loading:P,onClick:re,htmlType:N,href:K,title:B},{default:i.default}),b=h(At,{type:v,icon:te},null);return h(Pa,d(d({},Q),{},{class:ae(u.value,D)}),{default:function(){return[i.leftButton?i.leftButton({button:w}):w,h(ze,le,{default:function(){return[i.rightButton?i.rightButton({button:b}):b]},overlay:function(){return y}})]}})}}});var Oa={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 xa=Oa;function Rn(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},i=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(t).filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable}))),i.forEach(function(o){Ma(n,o,t[o])})}return n}function Ma(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var Ut=function(e,t){var i=Rn({},e,t.attrs);return h(Kt,Rn({},i,{icon:xa}),null)};Ut.displayName="RightOutlined";Ut.inheritAttrs=!1;const Sa=Ut;var ci=Y({compatConfig:{MODE:3},name:"ADropdown",inheritAttrs:!1,props:Ft(si(),{mouseEnterDelay:.15,mouseLeaveDelay:.1,placement:"bottomLeft",trigger:"hover"}),slots:["overlay"],setup:function(e,t){var i=t.slots,o=t.attrs,a=t.emit,r=Je("dropdown",e),l=r.prefixCls,u=r.rootPrefixCls,f=r.direction,c=r.getPopupContainer,m=O(function(){var v=e.placement,C=v===void 0?"":v,P=e.transitionName;return P!==void 0?P:C.indexOf("top")>=0?"".concat(u.value,"-slide-down"):"".concat(u.value,"-slide-up")}),p=function(){var C,P,N,M=e.overlay||((C=i.overlay)===null||C===void 0?void 0:C.call(i)),D=Array.isArray(M)?M[0]:M;if(!D)return null;var A=D.props||{};Ve(!A.mode||A.mode==="vertical","Dropdown",'mode="'.concat(A.mode,`" is not supported for Dropdown's Menu.`));var y=A.selectable,x=y===void 0?!1:y,S=A.expandIcon,T=S===void 0?(P=D.children)===null||P===void 0||(N=P.expandIcon)===null||N===void 0?void 0:N.call(P):S,F=typeof T<"u"&&Ue(T)?T:h("span",{class:"".concat(l.value,"-menu-submenu-arrow")},[h(Sa,{class:"".concat(l.value,"-menu-submenu-arrow-icon")},null)]),E=Ue(D)?pe(D,{mode:"vertical",selectable:x,expandIcon:function(){return F}}):D;return E},s=O(function(){var v=e.placement;if(!v)return f.value==="rtl"?"bottomRight":"bottomLeft";if(v.includes("Center")){var C=v.slice(0,v.indexOf("Center"));return Ve(!v.includes("Center"),"Dropdown","You are using '".concat(v,"' placement in Dropdown, which is deprecated. Try to use '").concat(C,"' instead.")),C}return v}),g=function(C){a("update:visible",C),a("visibleChange",C)};return function(){var v,C,P=e.arrow,N=e.trigger,M=e.disabled,D=e.overlayClassName,A=(v=i.default)===null||v===void 0?void 0:v.call(i)[0],y=pe(A,Ln({class:ae(A==null||(C=A.props)===null||C===void 0?void 0:C.class,z({},"".concat(l.value,"-rtl"),f.value==="rtl"),"".concat(l.value,"-trigger"))},M?{disabled:M}:{})),x=ae(D,z({},"".concat(l.value,"-rtl"),f.value==="rtl")),S=M?[]:N,T;S&&S.indexOf("contextmenu")!==-1&&(T=!0);var F=ui({arrowPointAtCenter:me(P)==="object"&&P.pointAtCenter,autoAdjustOverflow:!0}),E=zi(d(d(d({},e),o),{},{builtinPlacements:F,overlayClassName:x,arrow:P,alignPoint:T,prefixCls:l.value,getPopupContainer:c.value,transitionName:m.value,trigger:S,onVisibleChange:g,placement:s.value}),["overlay","onUpdate:visible"]);return h(ga,E,{default:function(){return[y]},overlay:p})}}});ci.Button=vt;const ze=ci;function Ta(n,e,t,i){var o=t?t.call(i,n,e):void 0;if(o!==void 0)return!!o;if(n===e)return!0;if(me(n)!=="object"||!n||me(e)!=="object"||!e)return!1;var a=Object.keys(n),r=Object.keys(e);if(a.length!==r.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(e),u=0;u<a.length;u++){var f=a[u];if(!l(f))return!1;var c=n[f],m=e[f];if(o=t?t.call(i,c,m,f):void 0,o===!1||o===void 0&&c!==m)return!1}return!0}function Fe(n,e,t,i){return Ta(an(n),an(e),t,i)}var vi=Symbol("menuContextKey"),di=function(e){De(vi,e)},Me=function(){return xe(vi)},pi=Symbol("ForceRenderKey"),Aa=function(e){De(pi,e)},mi=function(){return xe(pi,!1)},gi=Symbol("menuFirstLevelContextKey"),hi=function(e){De(gi,e)},Da=function(){return xe(gi,!0)},dt=Y({compatConfig:{MODE:3},name:"MenuContextProvider",inheritAttrs:!1,props:{mode:{type:String,default:void 0},overflowDisabled:{type:Boolean,default:void 0},isRootMenu:{type:Boolean,default:void 0}},setup:function(e,t){var i=t.slots,o=Me(),a=d({},o);return e.mode!==void 0&&(a.mode=ut(e,"mode")),e.isRootMenu!==void 0&&(a.isRootMenu=ut(e,"isRootMenu")),e.overflowDisabled!==void 0&&(a.overflowDisabled=ut(e,"overflowDisabled")),di(a),function(){var r;return(r=i.default)===null||r===void 0?void 0:r.call(i)}}});const Na=di;function Ia(){}var Ea=1/0,Ra=Ct&&1/Kn(new Ct([,-0]))[1]==Ea?function(n){return new Ct(n)}:Ia;const $a=Ra;var _a=200;function Va(n,e,t){var i=-1,o=Si,a=n.length,r=!0,l=[],u=l;if(t)r=!1,o=Ti;else if(a>=_a){var f=e?null:$a(n);if(f)return Kn(f);r=!1,o=Ai,u=new Mi}else u=e?[]:l;e:for(;++i<a;){var c=n[i],m=e?e(c):c;if(c=t||c!==0?c:0,r&&m===m){for(var p=u.length;p--;)if(u[p]===m)continue e;e&&u.push(m),l.push(c)}else o(u,m,t)||(u!==l&&u.push(m),l.push(c))}return l}function St(n){return n&&n.length?Va(n):[]}var ka=Symbol("siderCollapsed"),ar=Symbol("siderHookProvider"),lt="$$__vc-menu-more__key",yi=Symbol("KeyPathContext"),qt=function(){return xe(yi,{parentEventKeys:O(function(){return[]}),parentKeys:O(function(){return[]}),parentInfo:{}})},Fa=function(e,t,i){var o=qt(),a=o.parentEventKeys,r=o.parentKeys,l=O(function(){return[].concat(ye(a.value),[e])}),u=O(function(){return[].concat(ye(r.value),[t])});return De(yi,{parentEventKeys:l,parentKeys:u,parentInfo:i}),u},bi=Symbol("measure"),$n=Y({compatConfig:{MODE:3},setup:function(e,t){var i=t.slots;return De(bi,!0),function(){var o;return(o=i.default)===null||o===void 0?void 0:o.call(i)}}}),Gt=function(){return xe(bi,!1)};const Ka=Fa;function Ci(n){var e=Me(),t=e.mode,i=e.rtl,o=e.inlineIndent;return O(function(){return t.value!=="inline"?null:i.value?{paddingRight:"".concat(n.value*o.value,"px")}:{paddingLeft:"".concat(n.value*o.value,"px")}})}var Ba=0,ja=function(){return{id:String,role:String,disabled:Boolean,danger:Boolean,title:{type:[String,Boolean],default:void 0},icon:R.any,onMouseenter:Function,onMouseleave:Function,onClick:Function,onKeydown:Function,onFocus:Function}};const pt=Y({compatConfig:{MODE:3},name:"AMenuItem",inheritAttrs:!1,props:ja(),slots:["icon","title"],setup:function(e,t){var i=t.slots,o=t.emit,a=t.attrs,r=Xn(),l=Gt(),u=me(r.vnode.key)==="symbol"?String(r.vnode.key):r.vnode.key;Ve(me(r.vnode.key)!=="symbol","MenuItem",'MenuItem `:key="'.concat(String(u),'"` not support Symbol type'));var f="menu_item_".concat(++Ba,"_$$_").concat(u),c=qt(),m=c.parentEventKeys,p=c.parentKeys,s=Me(),g=s.prefixCls,v=s.activeKeys,C=s.disabled,P=s.changeActiveKeys,N=s.rtl,M=s.inlineCollapsed,D=s.siderCollapsed,A=s.onItemClick,y=s.selectedKeys,x=s.registerMenuInfo,S=s.unRegisterMenuInfo,T=Da(),F=I(!1),E=O(function(){return[].concat(ye(p.value),[u])}),K={eventKey:f,key:u,parentEventKeys:m,parentKeys:p,isLeaf:!0};x(f,K),We(function(){S(f)}),J(v,function(){F.value=!!v.value.find(function(w){return w===u})},{immediate:!0});var B=O(function(){return C.value||e.disabled}),U=O(function(){return y.value.includes(u)}),te=O(function(){var w,b="".concat(g.value,"-item");return w={},z(w,"".concat(b),!0),z(w,"".concat(b,"-danger"),e.danger),z(w,"".concat(b,"-active"),F.value),z(w,"".concat(b,"-selected"),U.value),z(w,"".concat(b,"-disabled"),B.value),w}),V=function(b){return{key:u,eventKey:f,keyPath:E.value,eventKeyPath:[].concat(ye(m.value),[f]),domEvent:b,item:d(d({},e),a)}},k=function(b){if(!B.value){var $=V(b);o("click",b),A($)}},j=function(b){B.value||(P(E.value),o("mouseenter",b))},L=function(b){B.value||(P([]),o("mouseleave",b))},ie=function(b){if(o("keydown",b),b.which===Wi.ENTER){var $=V(b);o("click",b),A($)}},re=function(b){P(E.value),o("focus",b)},Q=function(b,$){var H=h("span",{class:"".concat(g.value,"-title-content")},[$]);return(!b||Ue($)&&$.type==="span")&&$&&M.value&&T&&typeof $=="string"?h("div",{class:"".concat(g.value,"-inline-collapsed-noicon")},[$.charAt(0)]):H},le=Ci(O(function(){return E.value.length}));return function(){var w,b,$,H;if(l)return null;var W=(w=e.title)!==null&&w!==void 0?w:(b=i.title)===null||b===void 0?void 0:b.call(i),G=gt(($=i.default)===null||$===void 0?void 0:$.call(i)),Z=G.length,q=W;typeof W>"u"?q=T&&Z?G:"":W===!1&&(q="");var ne={title:q};!D.value&&!M.value&&(ne.title=null,ne.visible=!1);var he={};e.role==="option"&&(he["aria-selected"]=U.value);var ve=Ye(i,e,"icon");return h(va,d(d({},ne),{},{placement:N.value?"left":"right",overlayClassName:"".concat(g.value,"-inline-collapsed-tooltip")}),{default:function(){return[h(He.Item,d(d(d({component:"li"},a),{},{id:e.id,style:d(d({},a.style||{}),le.value),class:[te.value,(H={},z(H,"".concat(a.class),!!a.class),z(H,"".concat(g.value,"-item-only-child"),(ve?Z+1:Z)===1),H)],role:e.role||"menuitem",tabindex:e.disabled?null:-1,"data-menu-id":u,"aria-disabled":e.disabled},he),{},{onMouseenter:j,onMouseleave:L,onClick:k,onKeydown:ie,onFocus:re,title:typeof W=="string"?W:void 0}),{default:function(){return[pe(ve,{class:"".concat(g.value,"-item-icon")},!1),Q(ve,G)]}})]}})}}});var Pe={adjustX:1,adjustY:1},La={topLeft:{points:["bl","tl"],overflow:Pe,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Pe,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:Pe,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:Pe,offset:[4,0]}},Ha={topLeft:{points:["bl","tl"],overflow:Pe,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Pe,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:Pe,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:Pe,offset:[4,0]}},za={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};const _n=Y({compatConfig:{MODE:3},name:"PopupTrigger",inheritAttrs:!1,props:{prefixCls:String,mode:String,visible:Boolean,popupClassName:String,popupOffset:Array,disabled:Boolean,onVisibleChange:Function},slots:["popup"],emits:["visibleChange"],setup:function(e,t){var i=t.slots,o=t.emit,a=I(!1),r=Me(),l=r.getPopupContainer,u=r.rtl,f=r.subMenuOpenDelay,c=r.subMenuCloseDelay,m=r.builtinPlacements,p=r.triggerSubMenuAction,s=r.isRootMenu,g=r.forceSubMenuRender,v=r.motion,C=r.defaultMotions,P=mi(),N=O(function(){return u.value?d(d({},Ha),m.value):d(d({},La),m.value)}),M=O(function(){return za[e.mode]}),D=I();J(function(){return e.visible},function(x){de.cancel(D.value),D.value=de(function(){a.value=x})},{immediate:!0}),We(function(){de.cancel(D.value)});var A=function(S){o("visibleChange",S)},y=O(function(){var x,S,T=v.value||((x=C.value)===null||x===void 0?void 0:x[e.mode])||((S=C.value)===null||S===void 0?void 0:S.other),F=typeof T=="function"?T():T;return F?Bn(F.name,{css:!0}):void 0});return function(){var x=e.prefixCls,S=e.popupClassName,T=e.mode,F=e.popupOffset,E=e.disabled;return h(Xt,{prefixCls:x,popupClassName:ae("".concat(x,"-popup"),z({},"".concat(x,"-rtl"),u.value),S),stretch:T==="horizontal"?"minWidth":null,getPopupContainer:s.value?l.value:function(K){return K.parentNode},builtinPlacements:N.value,popupPlacement:M.value,popupVisible:a.value,popupAlign:F&&{offset:F},action:E?[]:[p.value],mouseEnterDelay:f.value,mouseLeaveDelay:c.value,onPopupVisibleChange:A,forceRender:P||g.value,popupAnimation:y.value},{popup:i.popup,default:i.default})}}});var wi=function(e,t){var i,o=t.slots,a=t.attrs,r=Me(),l=r.prefixCls,u=r.mode;return h("ul",d(d({},a),{},{class:ae(l.value,"".concat(l.value,"-sub"),"".concat(l.value,"-").concat(u.value==="inline"?"inline":"vertical")),"data-menu-list":!0}),[(i=o.default)===null||i===void 0?void 0:i.call(o)])};wi.displayName="SubMenuList";const Pi=wi,Wa=Y({compatConfig:{MODE:3},name:"InlineSubMenuList",inheritAttrs:!1,props:{id:String,open:Boolean,keyPath:Array},setup:function(e,t){var i=t.slots,o=O(function(){return"inline"}),a=Me(),r=a.motion,l=a.mode,u=a.defaultMotions,f=O(function(){return l.value===o.value}),c=I(!f.value),m=O(function(){return f.value?e.open:!1});J(l,function(){f.value&&(c.value=!1)},{flush:"post"});var p=O(function(){var s,g,v=r.value||((s=u.value)===null||s===void 0?void 0:s[o.value])||((g=u.value)===null||g===void 0?void 0:g.other),C=typeof v=="function"?v():v;return d(d({},C),{},{appear:e.keyPath.length<=1})});return function(){var s;return c.value?null:h(dt,{mode:o.value},{default:function(){return[h(mt,p.value,{default:function(){return[Vt(h(Pi,{id:e.id},{default:function(){return[(s=i.default)===null||s===void 0?void 0:s.call(i)]}}),[[jn,m.value]])]}})]}})}}});var Vn=0,Xa=function(){return{icon:R.any,title:R.any,disabled:Boolean,level:Number,popupClassName:String,popupOffset:Array,internalPopupClose:Boolean,eventKey:String,expandIcon:Function,onMouseenter:Function,onMouseleave:Function,onTitleClick:Function}};const Ge=Y({compatConfig:{MODE:3},name:"ASubMenu",inheritAttrs:!1,props:Xa(),slots:["icon","title","expandIcon"],setup:function(e,t){var i,o,a=t.slots,r=t.attrs,l=t.emit;hi(!1);var u=Gt(),f=Xn(),c=me(f.vnode.key)==="symbol"?String(f.vnode.key):f.vnode.key;Ve(me(f.vnode.key)!=="symbol","SubMenu",'SubMenu `:key="'.concat(String(c),'"` not support Symbol type'));var m=rn(c)?c:"sub_menu_".concat(++Vn,"_$$_not_set_key"),p=(i=e.eventKey)!==null&&i!==void 0?i:rn(c)?"sub_menu_".concat(++Vn,"_$$_").concat(c):m,s=qt(),g=s.parentEventKeys,v=s.parentInfo,C=s.parentKeys,P=O(function(){return[].concat(ye(C.value),[m])}),N=I([]),M={eventKey:p,key:m,parentEventKeys:g,childrenEventKeys:N,parentKeys:C};(o=v.childrenEventKeys)===null||o===void 0||o.value.push(p),We(function(){if(v.childrenEventKeys){var ee;v.childrenEventKeys.value=(ee=v.childrenEventKeys)===null||ee===void 0?void 0:ee.value.filter(function(X){return X!=p})}}),Ka(p,m,M);var D=Me(),A=D.prefixCls,y=D.activeKeys,x=D.disabled,S=D.changeActiveKeys,T=D.mode,F=D.inlineCollapsed,E=D.antdMenuTheme,K=D.openKeys,B=D.overflowDisabled,U=D.onOpenChange,te=D.registerMenuInfo,V=D.unRegisterMenuInfo,k=D.selectedSubMenuKeys,j=D.expandIcon,L=c!=null,ie=!u&&(mi()||!L);Aa(ie),(u&&L||!u&&!L||ie)&&(te(p,M),We(function(){V(p)}));var re=O(function(){return"".concat(A.value,"-submenu")}),Q=O(function(){return x.value||e.disabled}),le=I(),w=I(),b=O(function(){return K.value.includes(m)}),$=O(function(){return!B.value&&b.value}),H=O(function(){return k.value.includes(m)}),W=I(!1);J(y,function(){W.value=!!y.value.find(function(ee){return ee===m})},{immediate:!0});var G=function(X){Q.value||(l("titleClick",X,m),T.value==="inline"&&U(m,!b.value))},Z=function(X){Q.value||(S(P.value),l("mouseenter",X))},q=function(X){Q.value||(S([]),l("mouseleave",X))},ne=Ci(O(function(){return P.value.length})),he=function(X){T.value!=="inline"&&U(m,X)},ve=function(){S(P.value)},be=p&&"".concat(p,"-popup"),Ne=O(function(){return ae(A.value,"".concat(A.value,"-").concat(E.value),e.popupClassName)}),bt=function(X,se){if(!se)return F.value&&!C.value.length&&X&&typeof X=="string"?h("div",{class:"".concat(A.value,"-inline-collapsed-noicon")},[X.charAt(0)]):h("span",{class:"".concat(A.value,"-title-content")},[X]);var we=Ue(X)&&X.type==="span";return h(Xe,null,[pe(se,{class:"".concat(A.value,"-item-icon")},!1),we?X:h("span",{class:"".concat(A.value,"-title-content")},[X])])},ue=O(function(){return T.value!=="inline"&&P.value.length>1?"vertical":T.value}),oe=O(function(){return T.value==="horizontal"?"vertical":T.value}),Ce=O(function(){return ue.value==="horizontal"?"vertical":ue.value}),et=function(){var X=re.value,se=Ye(a,e,"icon"),we=e.expandIcon||a.expandIcon||j.value,Se=bt(Ye(a,e,"title"),se);return h("div",{style:ne.value,class:"".concat(X,"-title"),tabindex:Q.value?null:-1,ref:le,title:typeof Se=="string"?Se:null,"data-menu-id":m,"aria-expanded":$.value,"aria-haspopup":!0,"aria-controls":be,"aria-disabled":Q.value,onClick:G,onFocus:ve},[Se,T.value!=="horizontal"&&we?we(d(d({},e),{},{isOpen:$.value})):h("i",{class:"".concat(X,"-arrow")},null)])};return function(){var ee;if(u){var X;return L?(X=a.default)===null||X===void 0?void 0:X.call(a):null}var se=re.value,we=function(){return null};return!B.value&&T.value!=="inline"?we=function(){return h(_n,{mode:ue.value,prefixCls:se,visible:!e.internalPopupClose&&$.value,popupClassName:Ne.value,popupOffset:e.popupOffset,disabled:Q.value,onVisibleChange:he},{default:function(){return[et()]},popup:function(){return h(dt,{mode:Ce.value,isRootMenu:!1},{default:function(){return[h(Pi,{id:be,ref:w},{default:a.default})]}})}})}:we=function(){return h(_n,null,{default:et})},h(dt,{mode:oe.value},{default:function(){return[h(He.Item,d(d({component:"li"},r),{},{role:"none",class:ae(se,"".concat(se,"-").concat(T.value),r.class,(ee={},z(ee,"".concat(se,"-open"),$.value),z(ee,"".concat(se,"-active"),W.value),z(ee,"".concat(se,"-selected"),H.value),z(ee,"".concat(se,"-disabled"),Q.value),ee)),onMouseenter:Z,onMouseleave:q,"data-submenu-id":m}),{default:function(){return h(Xe,null,[we(),!B.value&&h(Wa,{id:be,open:$.value,keyPath:P.value},{default:a.default})])}})]}})}}});var Ya=function(){return{id:String,prefixCls:String,disabled:Boolean,inlineCollapsed:Boolean,disabledOverflow:Boolean,forceSubMenuRender:Boolean,openKeys:Array,selectedKeys:Array,activeKey:String,selectable:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},motion:Object,theme:{type:String,default:"light"},mode:{type:String,default:"vertical"},inlineIndent:{type:Number,default:24},subMenuOpenDelay:{type:Number,default:.1},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}},kn=[];const Ae=Y({compatConfig:{MODE:3},name:"AMenu",inheritAttrs:!1,props:Ya(),slots:["expandIcon","overflowedIndicator"],setup:function(e,t){var i=t.slots,o=t.emit,a=t.attrs,r=Je("menu",e),l=r.prefixCls,u=r.direction,f=r.getPrefixCls,c=I({}),m=xe(ka,I(void 0)),p=O(function(){return m.value!==void 0?m.value:e.inlineCollapsed}),s=I(!1);Ze(function(){s.value=!0}),Le(function(){Ve(!(e.inlineCollapsed===!0&&e.mode!=="inline"),"Menu","`inlineCollapsed` should only be used when `mode` is inline."),Ve(!(m.value!==void 0&&e.inlineCollapsed===!0),"Menu","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead.")});var g=I([]),v=I([]),C=I({});J(c,function(){for(var w={},b=0,$=Object.values(c.value);b<$.length;b++){var H=$[b];w[H.key]=H}C.value=w},{flush:"post"}),Le(function(){if(e.activeKey!==void 0){var w=[],b=e.activeKey?C.value[e.activeKey]:void 0;b&&e.activeKey!==void 0?w=St([].concat(nt(b.parentKeys),e.activeKey)):w=[],Fe(g.value,w)||(g.value=w)}}),J(function(){return e.selectedKeys},function(w){w&&(v.value=w.slice())},{immediate:!0,deep:!0});var P=I([]);J([C,v],function(){var w=[];v.value.forEach(function(b){var $=C.value[b];$&&(w=w.concat(nt($.parentKeys)))}),w=St(w),Fe(P.value,w)||(P.value=w)},{immediate:!0});var N=function(b){if(e.selectable){var $=b.key,H=v.value.includes($),W;e.multiple?H?W=v.value.filter(function(Z){return Z!==$}):W=[].concat(ye(v.value),[$]):W=[$];var G=d(d({},b),{},{selectedKeys:W});Fe(W,v.value)||(e.selectedKeys===void 0&&(v.value=W),o("update:selectedKeys",W),H&&e.multiple?o("deselect",G):o("select",G)),S.value!=="inline"&&!e.multiple&&M.value.length&&E(kn)}},M=I([]);J(function(){return e.openKeys},function(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:M.value;Fe(M.value,w)||(M.value=w.slice())},{immediate:!0,deep:!0});var D,A=function(b){clearTimeout(D),D=setTimeout(function(){e.activeKey===void 0&&(g.value=b),o("update:activeKey",b[b.length-1])})},y=O(function(){return!!e.disabled}),x=O(function(){return u.value==="rtl"}),S=I("vertical"),T=I(!1);Le(function(){(e.mode==="inline"||e.mode==="vertical")&&p.value?(S.value="vertical",T.value=p.value):(S.value=e.mode,T.value=!1)});var F=O(function(){return S.value==="inline"}),E=function(b){M.value=b,o("update:openKeys",b),o("openChange",b)},K=I(M.value),B=I(!1);J(M,function(){F.value&&(K.value=M.value)},{immediate:!0}),J(F,function(){if(!B.value){B.value=!0;return}F.value?M.value=K.value:E(kn)},{immediate:!0});var U=O(function(){var w;return w={},z(w,"".concat(l.value),!0),z(w,"".concat(l.value,"-root"),!0),z(w,"".concat(l.value,"-").concat(S.value),!0),z(w,"".concat(l.value,"-inline-collapsed"),T.value),z(w,"".concat(l.value,"-rtl"),x.value),z(w,"".concat(l.value,"-").concat(e.theme),!0),w}),te=O(function(){return f()}),V=O(function(){return{horizontal:{name:"".concat(te.value,"-slide-up")},inline:Di,other:{name:"".concat(te.value,"-zoom-big")}}});hi(!0);var k=function w(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],$=[],H=c.value;return b.forEach(function(W){var G=H[W],Z=G.key,q=G.childrenEventKeys;$.push.apply($,[Z].concat(ye(w(nt(q)))))}),$},j=function(b){o("click",b),N(b)},L=function(b,$){var H,W=((H=C.value[b])===null||H===void 0?void 0:H.childrenEventKeys)||[],G=M.value.filter(function(q){return q!==b});if($)G.push(b);else if(S.value!=="inline"){var Z=k(nt(W));G=St(G.filter(function(q){return!Z.includes(q)}))}Fe(M,G)||E(G)},ie=function(b,$){c.value=d(d({},c.value),{},z({},b,$))},re=function(b){delete c.value[b],c.value=d({},c.value)},Q=I(0),le=O(function(){return e.expandIcon||i.expandIcon?function(w){var b=e.expandIcon||i.expandIcon;return b=typeof b=="function"?b(w):b,pe(b,{class:"".concat(l.value,"-submenu-expand-icon")},!1)}:null});return Na({store:c,prefixCls:l,activeKeys:g,openKeys:M,selectedKeys:v,changeActiveKeys:A,disabled:y,rtl:x,mode:S,inlineIndent:O(function(){return e.inlineIndent}),subMenuCloseDelay:O(function(){return e.subMenuCloseDelay}),subMenuOpenDelay:O(function(){return e.subMenuOpenDelay}),builtinPlacements:O(function(){return e.builtinPlacements}),triggerSubMenuAction:O(function(){return e.triggerSubMenuAction}),getPopupContainer:O(function(){return e.getPopupContainer}),inlineCollapsed:T,antdMenuTheme:O(function(){return e.theme}),siderCollapsed:m,defaultMotions:O(function(){return s.value?V.value:null}),motion:O(function(){return s.value?e.motion:null}),overflowDisabled:I(void 0),onOpenChange:L,onItemClick:j,registerMenuInfo:ie,unRegisterMenuInfo:re,selectedSubMenuKeys:P,isRootMenu:I(!0),expandIcon:le,forceSubMenuRender:O(function(){return e.forceSubMenuRender})}),function(){var w,b,$=gt((w=i.default)===null||w===void 0?void 0:w.call(i)),H=Q.value>=$.length-1||S.value!=="horizontal"||e.disabledOverflow,W=S.value!=="horizontal"||e.disabledOverflow?$:$.map(function(Z,q){return h(dt,{key:Z.key,overflowDisabled:q>Q.value},{default:function(){return Z}})}),G=((b=i.overflowedIndicator)===null||b===void 0?void 0:b.call(i))||h(fi,null,null);return h(He,d(d({},a),{},{onMousedown:e.onMousedown,prefixCls:"".concat(l.value,"-overflow"),component:"ul",itemComponent:pt,class:[U.value,a.class],role:"menu",id:e.id,data:W,renderRawItem:function(q){return q},renderRawRest:function(q){var ne=q.length,he=ne?$.slice(-ne):null;return h(Xe,null,[h(Ge,{eventKey:lt,key:lt,title:G,disabled:H,internalPopupClose:ne===0},{default:function(){return he}}),h($n,null,{default:function(){return[h(Ge,{eventKey:lt,key:lt,title:G,disabled:H,internalPopupClose:ne===0},{default:function(){return he}})]}})])},maxCount:S.value!=="horizontal"||e.disabledOverflow?He.INVALIDATE:He.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(q){Q.value=q}}),{default:function(){return[h(Xi,{to:"body"},{default:function(){return[h("div",{style:{display:"none"},"aria-hidden":!0},[h($n,null,{default:function(){return[W]}})])]}})]}})}}});var Ua=function(){return{title:R.any}};const $t=Y({compatConfig:{MODE:3},name:"AMenuItemGroup",inheritAttrs:!1,props:Ua(),slots:["title"],setup:function(e,t){var i=t.slots,o=t.attrs,a=Me(),r=a.prefixCls,l=O(function(){return"".concat(r.value,"-item-group")}),u=Gt();return function(){var f,c;return u?(f=i.default)===null||f===void 0?void 0:f.call(i):h("li",d(d({},o),{},{onClick:function(p){return p.stopPropagation()},class:l.value}),[h("div",{title:typeof e.title=="string"?e.title:void 0,class:"".concat(l.value,"-title")},[Ye(i,e,"title")]),h("ul",{class:"".concat(l.value,"-list")},[(c=i.default)===null||c===void 0?void 0:c.call(i)])])}}});var qa=function(){return{prefixCls:String,dashed:Boolean}};const _t=Y({compatConfig:{MODE:3},name:"AMenuDivider",props:qa(),setup:function(e){var t=Je("menu",e),i=t.prefixCls,o=O(function(){var a;return a={},z(a,"".concat(i.value,"-item-divider"),!0),z(a,"".concat(i.value,"-item-divider-dashed"),!!e.dashed),a});return function(){return h("li",{class:o.value},null)}}});Ae.install=function(n){return n.component(Ae.name,Ae),n.component(pt.name,pt),n.component(Ge.name,Ge),n.component(_t.name,_t),n.component($t.name,$t),n};Ae.Item=pt;Ae.Divider=_t;Ae.SubMenu=Ge;Ae.ItemGroup=$t;var Ga={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 Za=Ga;function Fn(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},i=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(t).filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable}))),i.forEach(function(o){Ja(n,o,t[o])})}return n}function Ja(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var Zt=function(e,t){var i=Fn({},e,t.attrs);return h(Kt,Fn({},i,{icon:Za}),null)};Zt.displayName="LeftOutlined";Zt.inheritAttrs=!1;const rr=Zt;ze.Button=vt;ze.install=function(n){return n.component(ze.name,ze),n.component(vt.name,vt),n};export{jo as B,ze as D,fi as E,rr as L,Ae as M,He as O,Sa as R,ar as S,va as T,ka as a,pt as b,ga as c,aa as d,ir as e,Xt as f,ua as g,Io as i,or as t,nr as u};
|