bkui-vue 0.0.1-beta.141 → 0.0.1-beta.142
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +5 -2
- package/dist/index.umd.js +1 -1
- package/lib/popover2/index.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
@@ -49,7 +49,7 @@ ${hl(n)}`),i}})}function Ty(e){const t=Object.keys(e),n=t.filter(l=>{var o;retur
|
|
49
49
|
* @return {boolean} True if the event is supported.
|
50
50
|
* @internal
|
51
51
|
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
52
|
-
*/function pC(e,t){if(!z3.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,i=n in document;if(!i){var l=document.createElement("div");l.setAttribute(n,"return;"),i=typeof l[n]=="function"}return!i&&P3&&e==="wheel"&&(i=document.implementation.hasFeature("Events.wheel","3.0")),i}var vC=pC,yC=hC,bC=vC,Of=10,Jf=40,Af=800;function E3(e){var t=0,n=0,i=0,l=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),i=t*Of,l=n*Of,"deltaY"in e&&(l=e.deltaY),"deltaX"in e&&(i=e.deltaX),(i||l)&&e.deltaMode&&(e.deltaMode==1?(i*=Jf,l*=Jf):(i*=Af,l*=Af)),i&&!t&&(t=i<1?-1:1),l&&!n&&(n=l<1?-1:1),{spinX:t,spinY:n,pixelX:i,pixelY:l}}E3.getEventType=function(){return yC.firefox()?"DOMMouseScroll":bC("wheel")?"wheel":"mousewheel"};var CC=E3,MC=CC;const IC=typeof navigator!="undefined"&&navigator.userAgent.toLowerCase().indexOf("firefox")>-1,wC=function(e,t){e!=null&&e.addEventListener&&e.addEventListener(IC?"DOMMouseScroll":"mousewheel",function(n){const i=MC(n);t==null||t.apply(this,[n,i])})},NC={beforeMount(e,t){console.error(e,t),wC(e,t.value)}},LC=e=>typeof Element=="undefined"?!1:e instanceof Element,bi=new Map;let O3;document.addEventListener("mousedown",e=>O3=e);document.addEventListener("mouseup",e=>{for(const t of bi.values())for(const{documentHandler:n}of t)n(e,O3)});function Qf(e,t){let n=[];return Array.isArray(t.arg)?n=t.arg:LC(t.arg)&&n.push(t.arg),function(i,l){const{popperRef:o}=t.instance,u=i.target,d=l==null?void 0:l.target,f=!t||!t.instance,m=!u||!d,g=e.contains(u)||e.contains(d),b=e===u,C=n.length&&n.some(M=>M==null?void 0:M.contains(u))||n.length&&n.includes(d),y=o&&(o.contains(u)||o.contains(d));f||m||g||b||C||y||t.value(i,l)}}const Qa={beforeMount(e,t){bi.has(e)||bi.set(e,[]),bi.get(e).push({documentHandler:Qf(e,t),bindingFn:t.value})},updated(e,t){bi.has(e)||bi.set(e,[]);const n=bi.get(e),i=n.findIndex(o=>o.bindingFn===t.oldValue),l={documentHandler:Qf(e,t),bindingFn:t.value};i>=0?n.splice(i,1,l):n.push(l)},unmounted(e){bi.delete(e)}},Ar=new Map,yc={beforeMount(e,t){const n=kC();typeof t.value=="object"?Object.assign(n,t.value):n.content=t.value;const{disabled:i,trigger:l,content:o,arrow:u,theme:d,extCls:f}=n;if(i)return;const m=xC(o,u,d==="light",f);if(l==="hover"){let g=null;e.addEventListener("mouseenter",()=>{Cu(e),clearTimeout(g)}),m.addEventListener("mouseenter",()=>{clearTimeout(g)}),e.addEventListener("mouseleave",()=>{g=setTimeout(()=>{aa(e)},100)}),e.addEventListener("click",()=>{aa(e)}),m.addEventListener("mouseleave",()=>{g=setTimeout(()=>{aa(e)},100)})}else l==="click"&&document.body.addEventListener("click",g=>{e.contains(g.target)&&!m.hasAttribute("data-show")?Cu(e):m.hasAttribute("data-show")&&aa(e)});Ar.set(e,{opts:n,popper:m,popperInstance:null})},unmounted(e){aa(e)}};function kC(){return{arrow:!0,disabled:!1,trigger:"hover",theme:"dark",content:"",showOnInit:!1,placement:"top",distance:8,extCls:"",onShow:()=>{},onHide:()=>{}}}function xC(e,t,n,i){const l=Cn.getPopperIndex(),o=document.createElement("div");if(o.className=`bk-popper ${n?"light":"dark"} ${i}`,o.innerText=e,o.style.zIndex=String(l),t){const u=TC();o.appendChild(u)}return o}function TC(){const e=document.createElement("div");return e.className="bk-popper-arrow",e.setAttribute("data-popper-arrow",""),e}function SC(e,t){const{placement:n,distance:i,showOnInit:l}=Ar.get(e).opts,o=K9(e,t,{placement:n,modifiers:[{name:"offset",options:{offset:[0,i]}}]});return l&&Cu(e),o}function Cu(e){const{popper:t,opts:{onShow:n}}=Ar.get(e);document.body.appendChild(t);const i=SC(e,t);n(),t.setAttribute("data-show",""),i.setOptions(l=>we(H({},l),{modifiers:[...l.modifiers,{name:"eventListeners",enabled:!0}]})),i.forceUpdate(),Ar.get(e).popperInstance=i}function aa(e){if(!Ar.get(e))return;const{popper:t,popperInstance:n,opts:{onHide:i}}=Ar.get(e);t&&document.body.contains(t)&&(t.removeAttribute("data-show"),n==null||n.destroy(),document.body.removeChild(t),i())}var Vf=a.defineComponent({name:"PopArrow",render(){const e=Be("pop2-arrow");return a.createVNode("div",{class:e},null)}});const Xo=(...e)=>!0;let kr;(function(e){e.SHOW="show",e.HIDE="hide",e.CLICK_OUTSIDE="clickoutside"})(kr||(kr={}));const DC={[kr.SHOW]:Xo,[kr.HIDE]:Xo,[kr.CLICK_OUTSIDE]:Xo};var Rf=a.defineComponent({name:"PopContent",props:{width:h.oneOfType([h.string,h.number]).def("auto"),height:h.oneOfType([h.string,h.number]).def("auto")},setup(e){const t=i=>/^\d+\.?\d*$/.test(`${i}`)?`${i}px`:i;return{style:a.computed(()=>({width:t(e.width),height:t(e.height)}))}},render(){var t,n,i,l,o,u;const e=[Be("popover2"),Be("pop2-content")];return a.createVNode("div",{class:e,tabindex:"-1",style:this.style},[(i=(n=(t=this.$slots).default)==null?void 0:n.call(t))!=null?i:"",(u=(o=(l=this.$slots).arrow)==null?void 0:o.call(l))!=null?u:""])}});const jC=["auto","auto-start","auto-end","top","top-start","top-end","bottom","bottom-start","bottom-end","right","right-start","right-end","left","left-start","left-end"],zC={onAfterHidden:Function,onAfterShow:Function},PC=H({isShow:h.bool.def(!1),always:h.bool.def(!1),disabled:h.bool.def(!1),width:h.oneOfType([h.string,h.number]).def("auto"),height:h.oneOfType([h.string,h.number]).def("auto"),content:h.oneOfType([h.string,h.number]).def(""),placement:h.placement(jC).def("top"),theme:h.string.def("dark"),trigger:h.string.def("hover"),arrow:h.bool.def(!0),padding:h.number.def(5),offset:h.number.def(6),boundary:h.string.def(void 0),zIndex:h.number.def(void 0),disableTeleport:h.bool.def(!1),autoPlacement:h.bool.def(!1),autoVisibility:h.bool.def(!0),disableOutsideClick:h.bool.def(!1)},zC);var EC=a.defineComponent({name:"PopReference",render(){var e,t,n;return(n=(t=(e=this.$slots).default)==null?void 0:t.call(e))!=null?n:""}}),Wf=a.defineComponent({props:{class:h.string.def("")},render(){var e,t;return a.createVNode(a.Fragment,null,[(t=(e=this.$slots).default)==null?void 0:t.call(e)])}});function ni(e){return e.split("-")[0]}function Ui(e){return e.split("-")[1]}function Vr(e){return["top","bottom"].includes(ni(e))?"x":"y"}function bc(e){return e==="y"?"height":"width"}function Bf(e,t,n){let{reference:i,floating:l}=e;const o=i.x+i.width/2-l.width/2,u=i.y+i.height/2-l.height/2,d=Vr(t),f=bc(d),m=i[f]/2-l[f]/2,g=ni(t),b=d==="x";let C;switch(g){case"top":C={x:o,y:i.y-l.height};break;case"bottom":C={x:o,y:i.y+i.height};break;case"right":C={x:i.x+i.width,y:u};break;case"left":C={x:i.x-l.width,y:u};break;default:C={x:i.x,y:i.y}}switch(Ui(t)){case"start":C[d]-=m*(n&&b?-1:1);break;case"end":C[d]+=m*(n&&b?-1:1);break}return C}const OC=async(e,t,n)=>{const{placement:i="bottom",strategy:l="absolute",middleware:o=[],platform:u}=n,d=await(u.isRTL==null?void 0:u.isRTL(t));let f=await u.getElementRects({reference:e,floating:t,strategy:l}),{x:m,y:g}=Bf(f,i,d),b=i,C={};for(let y=0;y<o.length;y++){const{name:M,fn:L}=o[y],{x:k,y:N,data:w,reset:p}=await L({x:m,y:g,initialPlacement:i,placement:b,strategy:l,middlewareData:C,rects:f,platform:u,elements:{reference:e,floating:t}});if(m=k!=null?k:m,g=N!=null?N:g,C=we(H({},C),{[M]:H(H({},C[M]),w)}),p){typeof p=="object"&&(p.placement&&(b=p.placement),p.rects&&(f=p.rects===!0?await u.getElementRects({reference:e,floating:t,strategy:l}):p.rects),{x:m,y:g}=Bf(f,b,d)),y=-1;continue}}return{x:m,y:g,placement:b,strategy:l,middlewareData:C}};function JC(e){return H({top:0,right:0,bottom:0,left:0},e)}function Cc(e){return typeof e!="number"?JC(e):{top:e,right:e,bottom:e,left:e}}function Sa(e){return we(H({},e),{top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height})}async function Da(e,t){var n;t===void 0&&(t={});const{x:i,y:l,platform:o,rects:u,elements:d,strategy:f}=e,{boundary:m="clippingAncestors",rootBoundary:g="viewport",elementContext:b="floating",altBoundary:C=!1,padding:y=0}=t,M=Cc(y),k=d[C?b==="floating"?"reference":"floating":b],N=Sa(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(k)))==null||n?k:k.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(d.floating)),boundary:m,rootBoundary:g,strategy:f})),w=Sa(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b==="floating"?we(H({},u.floating),{x:i,y:l}):u.reference,offsetParent:await(o.getOffsetParent==null?void 0:o.getOffsetParent(d.floating)),strategy:f}):u[b]);return{top:N.top-w.top+M.top,bottom:w.bottom-N.bottom+M.bottom,left:N.left-w.left+M.left,right:w.right-N.right+M.right}}const J3=Math.min,A3=Math.max;function Mu(e,t,n){return A3(e,J3(t,n))}const AC=e=>({name:"arrow",options:e,async fn(t){const{element:n,padding:i=0}=e!=null?e:{},{x:l,y:o,placement:u,rects:d,platform:f}=t;if(n==null)return{};const m=Cc(i),g={x:l,y:o},b=Vr(u),C=Ui(u),y=bc(b),M=await f.getDimensions(n),L=b==="y"?"top":"left",k=b==="y"?"bottom":"right",N=d.reference[y]+d.reference[b]-g[b]-d.floating[y],w=g[b]-d.reference[b],p=await(f.getOffsetParent==null?void 0:f.getOffsetParent(n));let I=p?b==="y"?p.clientHeight||0:p.clientWidth||0:0;I===0&&(I=d.floating[y]);const T=N/2-w/2,S=m[L],Q=I-M[y]-m[k],z=I/2-M[y]/2+T,O=Mu(S,z,Q),_=(C==="start"?m[L]:m[k])>0&&z!==O&&d.reference[y]<=d.floating[y]?z<S?S-z:Q-z:0;return{[b]:g[b]-_,data:{[b]:O,centerOffset:z-O}}}}),QC={left:"right",right:"left",bottom:"top",top:"bottom"};function tl(e){return e.replace(/left|right|bottom|top/g,t=>QC[t])}function Q3(e,t,n){n===void 0&&(n=!1);const i=Ui(e),l=Vr(e),o=bc(l);let u=l==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(u=tl(u)),{main:u,cross:tl(u)}}const VC={start:"end",end:"start"};function Iu(e){return e.replace(/start|end/g,t=>VC[t])}const V3=["top","right","bottom","left"],RC=V3.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);function WC(e,t,n){return(e?[...n.filter(l=>Ui(l)===e),...n.filter(l=>Ui(l)!==e)]:n.filter(l=>ni(l)===l)).filter(l=>e?Ui(l)===e||(t?Iu(l)!==l:!1):!0)}const BC=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,i,l,o,u;const{x:d,y:f,rects:m,middlewareData:g,placement:b,platform:C,elements:y}=t,se=e,{alignment:M=null,allowedPlacements:L=RC,autoAlignment:k=!0}=se,N=Qi(se,["alignment","allowedPlacements","autoAlignment"]),w=WC(M,k,L),p=await Da(t,N),I=(n=(i=g.autoPlacement)==null?void 0:i.index)!=null?n:0,T=w[I];if(T==null)return{};const{main:S,cross:Q}=Q3(T,m,await(C.isRTL==null?void 0:C.isRTL(y.floating)));if(b!==T)return{x:d,y:f,reset:{placement:w[0]}};const z=[p[ni(T)],p[S],p[Q]],O=[...(l=(o=g.autoPlacement)==null?void 0:o.overflows)!=null?l:[],{placement:T,overflows:z}],P=w[I+1];if(P)return{data:{index:I+1,overflows:O},reset:{placement:P}};const E=O.slice().sort((ue,fe)=>ue.overflows[0]-fe.overflows[0]),_=(u=E.find(ue=>{let{overflows:fe}=ue;return fe.every(me=>me<=0)}))==null?void 0:u.placement,G=_!=null?_:E[0].placement;return G!==b?{data:{index:I+1,overflows:O},reset:{placement:G}}:{}}}};function HC(e){const t=tl(e);return[Iu(e),t,Iu(t)]}const GC=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:i,middlewareData:l,rects:o,initialPlacement:u,platform:d,elements:f}=t,O=e,{mainAxis:m=!0,crossAxis:g=!0,fallbackPlacements:b,fallbackStrategy:C="bestFit",flipAlignment:y=!0}=O,M=Qi(O,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","flipAlignment"]),L=ni(i),N=b||(L===u||!y?[tl(u)]:HC(u)),w=[u,...N],p=await Da(t,M),I=[];let T=((n=l.flip)==null?void 0:n.overflows)||[];if(m&&I.push(p[L]),g){const{main:P,cross:E}=Q3(i,o,await(d.isRTL==null?void 0:d.isRTL(f.floating)));I.push(p[P],p[E])}if(T=[...T,{placement:i,overflows:I}],!I.every(P=>P<=0)){var S,Q;const P=((S=(Q=l.flip)==null?void 0:Q.index)!=null?S:0)+1,E=w[P];if(E)return{data:{index:P,overflows:T},reset:{placement:E}};let _="bottom";switch(C){case"bestFit":{var z;const G=(z=T.map(se=>[se,se.overflows.filter(ue=>ue>0).reduce((ue,fe)=>ue+fe,0)]).sort((se,ue)=>se[1]-ue[1])[0])==null?void 0:z[0].placement;G&&(_=G);break}case"initialPlacement":_=u;break}if(i!==_)return{reset:{placement:_}}}return{}}}};function Hf(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Gf(e){return V3.some(t=>e[t]>=0)}const ZC=function(e){let i=e===void 0?{}:e,{strategy:t="referenceHidden"}=i,n=Qi(i,["strategy"]);return{name:"hide",async fn(l){const{rects:o}=l;switch(t){case"referenceHidden":{const u=await Da(l,we(H({},n),{elementContext:"reference"})),d=Hf(u,o.reference);return{data:{referenceHiddenOffsets:d,referenceHidden:Gf(d)}}}case"escaped":{const u=await Da(l,we(H({},n),{altBoundary:!0})),d=Hf(u,o.floating);return{data:{escapedOffsets:d,escaped:Gf(d)}}}default:return{}}}}};async function YC(e,t){const{placement:n,platform:i,elements:l}=e,o=await(i.isRTL==null?void 0:i.isRTL(l.floating)),u=ni(n),d=Ui(n),f=Vr(n)==="x",m=["left","top"].includes(u)?-1:1,g=o&&f?-1:1,b=typeof t=="function"?t(e):t;let{mainAxis:C,crossAxis:y,alignmentAxis:M}=typeof b=="number"?{mainAxis:b,crossAxis:0,alignmentAxis:null}:H({mainAxis:0,crossAxis:0,alignmentAxis:null},b);return d&&typeof M=="number"&&(y=d==="end"?M*-1:M),f?{x:y*g,y:C*m}:{x:C*m,y:y*g}}const FC=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:i}=t,l=await YC(t,e);return{x:n+l.x,y:i+l.y,data:l}}}};function _C(e){return e==="x"?"y":"x"}const UC=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:i,placement:l}=t,k=e,{mainAxis:o=!0,crossAxis:u=!1,limiter:d={fn:N=>{let{x:w,y:p}=N;return{x:w,y:p}}}}=k,f=Qi(k,["mainAxis","crossAxis","limiter"]),m={x:n,y:i},g=await Da(t,f),b=Vr(ni(l)),C=_C(b);let y=m[b],M=m[C];if(o){const N=b==="y"?"top":"left",w=b==="y"?"bottom":"right",p=y+g[N],I=y-g[w];y=Mu(p,y,I)}if(u){const N=C==="y"?"top":"left",w=C==="y"?"bottom":"right",p=M+g[N],I=M-g[w];M=Mu(p,M,I)}const L=d.fn(we(H({},t),{[b]:y,[C]:M}));return we(H({},L),{data:{x:L.x-n,y:L.y-i}})}}},$C=function(e){return e===void 0&&(e={}),{name:"inline",options:e,async fn(t){var n;const{placement:i,elements:l,rects:o,platform:u,strategy:d}=t,{padding:f=2,x:m,y:g}=e,b=Sa(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({rect:o.reference,offsetParent:await(u.getOffsetParent==null?void 0:u.getOffsetParent(l.floating)),strategy:d}):o.reference),C=(n=await(u.getClientRects==null?void 0:u.getClientRects(l.reference)))!=null?n:[],y=Cc(f);function M(){if(C.length===2&&C[0].left>C[1].right&&m!=null&&g!=null){var k;return(k=C.find(N=>m>N.left-y.left&&m<N.right+y.right&&g>N.top-y.top&&g<N.bottom+y.bottom))!=null?k:b}if(C.length>=2){if(Vr(i)==="x"){const E=C[0],_=C[C.length-1],G=ni(i)==="top",se=E.top,ue=_.bottom,fe=G?E.left:_.left,me=G?E.right:_.right,K=me-fe,Z=ue-se;return{top:se,bottom:ue,left:fe,right:me,width:K,height:Z,x:fe,y:se}}const N=ni(i)==="left",w=A3(...C.map(E=>E.right)),p=J3(...C.map(E=>E.left)),I=C.filter(E=>N?E.left===p:E.right===w),T=I[0].top,S=I[I.length-1].bottom,Q=p,z=w,O=z-Q,P=S-T;return{top:T,bottom:S,left:Q,right:z,width:O,height:P,x:Q,y:T}}return b}const L=await u.getElementRects({reference:{getBoundingClientRect:M},floating:l.floating,strategy:d});return o.reference.x!==L.reference.x||o.reference.y!==L.reference.y||o.reference.width!==L.reference.width||o.reference.height!==L.reference.height?{reset:{rects:L}}:{}}}};function R3(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function ai(e){if(e==null)return window;if(!R3(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function Va(e){return ai(e).getComputedStyle(e)}function ii(e){return R3(e)?"":e?(e.nodeName||"").toLowerCase():""}function W3(){const e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(t=>t.brand+"/"+t.version).join(" "):navigator.userAgent}function Qn(e){return e instanceof ai(e).HTMLElement}function Ni(e){return e instanceof ai(e).Element}function XC(e){return e instanceof ai(e).Node}function Mc(e){if(typeof ShadowRoot=="undefined")return!1;const t=ai(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Ll(e){const{overflow:t,overflowX:n,overflowY:i}=Va(e);return/auto|scroll|overlay|hidden/.test(t+i+n)}function KC(e){return["table","td","th"].includes(ii(e))}function B3(e){const t=/firefox/i.test(W3()),n=Va(e);return n.transform!=="none"||n.perspective!=="none"||n.contain==="paint"||["transform","perspective"].includes(n.willChange)||t&&n.willChange==="filter"||t&&(n.filter?n.filter!=="none":!1)}function H3(){return!/^((?!chrome|android).)*safari/i.test(W3())}const Zf=Math.min,Ma=Math.max,nl=Math.round;function ri(e,t,n){var i,l,o,u;t===void 0&&(t=!1),n===void 0&&(n=!1);const d=e.getBoundingClientRect();let f=1,m=1;t&&Qn(e)&&(f=e.offsetWidth>0&&nl(d.width)/e.offsetWidth||1,m=e.offsetHeight>0&&nl(d.height)/e.offsetHeight||1);const g=Ni(e)?ai(e):window,b=!H3()&&n,C=(d.left+(b&&(i=(l=g.visualViewport)==null?void 0:l.offsetLeft)!=null?i:0))/f,y=(d.top+(b&&(o=(u=g.visualViewport)==null?void 0:u.offsetTop)!=null?o:0))/m,M=d.width/f,L=d.height/m;return{width:M,height:L,top:y,right:C+M,bottom:y+L,left:C,x:C,y}}function xi(e){return((XC(e)?e.ownerDocument:e.document)||window.document).documentElement}function kl(e){return Ni(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function G3(e){return ri(xi(e)).left+kl(e).scrollLeft}function qC(e){const t=ri(e);return nl(t.width)!==e.offsetWidth||nl(t.height)!==e.offsetHeight}function e8(e,t,n){const i=Qn(t),l=xi(t),o=ri(e,i&&qC(t),n==="fixed");let u={scrollLeft:0,scrollTop:0};const d={x:0,y:0};if(i||!i&&n!=="fixed")if((ii(t)!=="body"||Ll(l))&&(u=kl(t)),Qn(t)){const f=ri(t,!0);d.x=f.x+t.clientLeft,d.y=f.y+t.clientTop}else l&&(d.x=G3(l));return{x:o.left+u.scrollLeft-d.x,y:o.top+u.scrollTop-d.y,width:o.width,height:o.height}}function Z3(e){return ii(e)==="html"?e:e.assignedSlot||e.parentNode||(Mc(e)?e.host:null)||xi(e)}function Yf(e){return!Qn(e)||getComputedStyle(e).position==="fixed"?null:e.offsetParent}function t8(e){let t=Z3(e);for(Mc(t)&&(t=t.host);Qn(t)&&!["html","body"].includes(ii(t));){if(B3(t))return t;t=t.parentNode}return null}function wu(e){const t=ai(e);let n=Yf(e);for(;n&&KC(n)&&getComputedStyle(n).position==="static";)n=Yf(n);return n&&(ii(n)==="html"||ii(n)==="body"&&getComputedStyle(n).position==="static"&&!B3(n))?t:n||t8(e)||t}function Ff(e){if(Qn(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=ri(e);return{width:t.width,height:t.height}}function n8(e){let{rect:t,offsetParent:n,strategy:i}=e;const l=Qn(n),o=xi(n);if(n===o)return t;let u={scrollLeft:0,scrollTop:0};const d={x:0,y:0};if((l||!l&&i!=="fixed")&&((ii(n)!=="body"||Ll(o))&&(u=kl(n)),Qn(n))){const f=ri(n,!0);d.x=f.x+n.clientLeft,d.y=f.y+n.clientTop}return we(H({},t),{x:t.x-u.scrollLeft+d.x,y:t.y-u.scrollTop+d.y})}function i8(e,t){const n=ai(e),i=xi(e),l=n.visualViewport;let o=i.clientWidth,u=i.clientHeight,d=0,f=0;if(l){o=l.width,u=l.height;const m=H3();(m||!m&&t==="fixed")&&(d=l.offsetLeft,f=l.offsetTop)}return{width:o,height:u,x:d,y:f}}function r8(e){var t;const n=xi(e),i=kl(e),l=(t=e.ownerDocument)==null?void 0:t.body,o=Ma(n.scrollWidth,n.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),u=Ma(n.scrollHeight,n.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0);let d=-i.scrollLeft+G3(e);const f=-i.scrollTop;return Va(l||n).direction==="rtl"&&(d+=Ma(n.clientWidth,l?l.clientWidth:0)-o),{width:o,height:u,x:d,y:f}}function Y3(e){const t=Z3(e);return["html","body","#document"].includes(ii(t))?e.ownerDocument.body:Qn(t)&&Ll(t)?t:Y3(t)}function il(e,t){var n;t===void 0&&(t=[]);const i=Y3(e),l=i===((n=e.ownerDocument)==null?void 0:n.body),o=ai(i),u=l?[o].concat(o.visualViewport||[],Ll(i)?i:[]):i,d=t.concat(u);return l?d:d.concat(il(u))}function a8(e,t){const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Mc(n)){let i=t;do{if(i&&e===i)return!0;i=i.parentNode||i.host}while(i)}return!1}function s8(e,t){const n=ri(e,!1,t==="fixed"),i=n.top+e.clientTop,l=n.left+e.clientLeft;return{top:i,left:l,x:l,y:i,right:l+e.clientWidth,bottom:i+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}function _f(e,t,n){return t==="viewport"?Sa(i8(e,n)):Ni(t)?s8(t,n):Sa(r8(xi(e)))}function l8(e){const t=il(e),i=["absolute","fixed"].includes(Va(e).position)&&Qn(e)?wu(e):e;return Ni(i)?t.filter(l=>Ni(l)&&a8(l,i)&&ii(l)!=="body"):[]}function o8(e){let{element:t,boundary:n,rootBoundary:i,strategy:l}=e;const u=[...n==="clippingAncestors"?l8(t):[].concat(n),i],d=u[0],f=u.reduce((m,g)=>{const b=_f(t,g,l);return m.top=Ma(b.top,m.top),m.right=Zf(b.right,m.right),m.bottom=Zf(b.bottom,m.bottom),m.left=Ma(b.left,m.left),m},_f(t,d,l));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}const u8={getClippingRect:o8,convertOffsetParentRelativeRectToViewportRelativeRect:n8,isElement:Ni,getDimensions:Ff,getOffsetParent:wu,getDocumentElement:xi,getElementRects:e=>{let{reference:t,floating:n,strategy:i}=e;return{reference:e8(t,wu(n),i),floating:we(H({},Ff(n)),{x:0,y:0})}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Va(e).direction==="rtl"};function c8(e,t,n,i){i===void 0&&(i={});const{ancestorScroll:l=!0,ancestorResize:o=!0,elementResize:u=!0,animationFrame:d=!1}=i,f=l&&!d,m=o&&!d,g=f||m?[...Ni(e)?il(e):[],...il(t)]:[];g.forEach(L=>{f&&L.addEventListener("scroll",n,{passive:!0}),m&&L.addEventListener("resize",n)});let b=null;u&&(b=new ResizeObserver(n),Ni(e)&&!d&&b.observe(e),b.observe(t));let C,y=d?ri(e):null;d&&M();function M(){const L=ri(e);y&&(L.x!==y.x||L.y!==y.y||L.width!==y.width||L.height!==y.height)&&n(),y=L,C=requestAnimationFrame(M)}return u||n(),()=>{var L;g.forEach(k=>{f&&k.removeEventListener("scroll",n),m&&k.removeEventListener("resize",n)}),(L=b)==null||L.disconnect(),b=null,d&&cancelAnimationFrame(C)}}const d8=(e,t,n)=>OC(e,t,H({platform:u8},n));var f8=()=>({getElementRects:({reference:i,floating:l})=>{const o=i.getBoundingClientRect(),u=l.getBoundingClientRect();return{reference:{width:o.width,height:o.height,x:o.x,y:o.y},floating:{width:u.width,height:u.height,x:u.x,y:u.y}}},getDimensions:i=>{const{width:l,height:o}=i.getBoundingClientRect();return{width:l,height:o}},getClippingRect:({})=>{const{width:i,height:l}=document.fullscreenElement.getBoundingClientRect();return{width:i,height:l,x:0,y:0}}}),h8=(e,t,n,i,l,o)=>{const u=a.ref(!1),d=()=>{var J,V;const Z=M((J=n.value)==null?void 0:J.$el);return(V=document.fullscreenElement)==null?void 0:V.contains(Z)},f=["dark","light"],m=a.computed(()=>{const Z=e.theme.split(/\s+/);Z.sort((X,Y)=>Number(f.includes(Y))-Number(f.includes(X)));const J=Z,V=Z.filter(X=>!f.includes(X));return{systemThemes:J,customThemes:V}}),g=()=>!d()&&e.autoVisibility,b=()=>d()||e.autoPlacement,C=()=>{var Y,ne,le,ge;const Z=M((Y=n.value)==null?void 0:Y.$el),J=M((ne=i.value)==null?void 0:ne.$el),V=e.arrow?M((le=l.value)==null?void 0:le.$el):null,X=M((ge=o.value)==null?void 0:ge.$el);return{elReference:Z,elContent:J,elArrow:V,root:X}},y=Z=>{const J=[FC(e.offset),UC({padding:e.padding})],V={placement:e.placement,middleware:J};if(e.arrow&&J.push(AC({element:Z})),b()?J.push(BC()):(J.unshift($C()),J.push(GC())),g()&&V.middleware.push(ZC()),d()){const{getElementRects:X,getDimensions:Y,getClippingRect:ne}=f8();Object.assign(V,{platform:{getElementRects:X,getDimensions:Y,getClippingRect:ne}})}return V},M=Z=>Z instanceof HTMLElement?Z:Z instanceof Text?M(Z.nextElementSibling):null,L=m.value.customThemes.join(" "),k=m.value.customThemes.reduce((Z,J)=>H({[`data-${J}-theme`]:!0},Z),{}),N=`${L}`;let w=null;const p=Z=>{const J=window.devicePixelRatio||1;return Math.round(Z*J)/J||0},I=(Z,J,V,X)=>{var ne;Object.assign(Z.style,{left:"0",top:"0",transform:`translate3d(${p(J)}px,${p(V)}px,0)`});const Y=g()?(ne=X.hide)==null?void 0:ne.referenceHidden:!1;Object.assign(Z.style,{visibility:Y?"hidden":"visible"})},T=(Z,J,V)=>{if(e.arrow){const{x:X,y:Y}=V.arrow;Z.setAttribute("data-arrow",J);const ne={left:"",top:"",bottom:"",right:""};Object.assign(Z.style,ne);const le={top:"bottom",right:"left",bottom:"top",left:"right"}[J];Object.assign(Z.style,{left:X!==null?`${X}px`:"",top:Y!==null?`${Y}px`:"",[le]:"-4px"})}},S=()=>{const{elReference:Z,elContent:J}=C();w=c8(Z,J,()=>{Q()})},Q=()=>{const{elReference:Z,elContent:J,elArrow:V}=C();if(!Z)return;const X=y(V);d8(Z,J,X).then(({x:Y,y:ne,placement:le,middlewareData:ge})=>{const U=J.className;J.className=`${U.replace(N,"")} ${N}`.replace(/\s+/mg," ").replace(/^\s+|\s+$/g,""),Object.keys(k).forEach(F=>{J.setAttribute(F,k[F])});const de=le.split("-")[0];let he=de;["left","right","top","bottom"].includes(de)||(he="top"),I(J,Y,ne,ge),T(V,he,ge)})},z=()=>{u.value=!0};let O,P=!1;const E=()=>{O=setTimeout(()=>{u.value=!1},100)},_=()=>{var J;const Z=M((J=i.value)==null?void 0:J.$el);Z.style.setProperty("display","block"),Z.style.setProperty("z-index",`${e.zIndex?e.zIndex:Cn.getModalNextIndex()}`),Q(),t.emit("afterShow",{isSHow:!0})},G=()=>{var J;M((J=i.value)==null?void 0:J.$el).style.setProperty("display","none"),t.emit("afterHidden",{isSHow:!1})},se=()=>{u.value?E():z()},ue=()=>{se()},fe=()=>{e.trigger==="hover"&&O&&(P=!0,clearTimeout(O),O=void 0)},me=()=>{P&&(E(),P=!1)},K=()=>{var J;return(J={hover:{content:[["mouseenter",fe],["mouseleave",me]],reference:[["mouseenter",z],["mouseleave",E],["focus",z],["blur",E]]},click:[["click",ue]],manual:[[]]}[e.trigger])!=null?J:[]};return a.watch(u,Z=>{Z?_():G()}),{showPopover:z,hidePopover:E,resolveTriggerEvents:K,updatePopover:Q,triggerPopover:se,resolvePopElements:C,isElementFullScreen:d,resolveTargetElement:M,createPopInstance:S,localIsShow:u,cleanup:w}};let vi=null,sa=null,Os=null;var g8=(e,t="#")=>{const n=(o=!1,u)=>{let d=null;const f=C=>{d===null&&C()},m=()=>{if(/^parent$/i.test(e.boundary)){d=`${t}${vi}`;const{parentNode:C}=u||{};C!=null&&C.parentNode&&(C.parentNode.setAttribute("data-pnode-id",Os),d=`[data-pnode-id=${Os}]`)}},g=()=>{o&&(d=`[data-fllsrn-id=${sa}]`)},b=()=>{if(!/^body$/i.test(e.boundary)&&typeof e.boundary=="string"){if(!i(e.boundary)){console.error("props.boundary is not available selector"),d="body";return}d=e.boundary}};return f(m),f(b),f(g),f(()=>{d=typeof e.boundary=="string"?e.boundary:`${t}${vi}`}),d},i=o=>document.querySelector(o)instanceof HTMLElement;if(vi===null||!i(`#${vi}`)){vi=`id_${Fi.v4()}`;const o=document.createElement("div");o.setAttribute("id",vi),o.setAttribute("data-popper-id",vi),document.body.append(o)}sa===null&&(sa=`id_${Fi.v4()}`),Os===null&&(Os=`id_${Fi.v4()}`);const l=()=>{var o;if(document.fullscreenElement===null){const u=`[data-fllsrn-id=${sa}]`;((o=document.querySelectorAll(u))!=null?o:[]).forEach(d=>{d.removeAttribute("data-fllsrn-id")})}else document.fullscreenElement.setAttribute("data-fllsrn-id",sa)};return{popContainerId:vi,prefixId:n(),getPrefixId:n,resetFullscreenElementTag:l}},m8=a.defineComponent({name:"Popover2",components:{Content:Rf,Arrow:Vf,Root:Wf},directives:{clickoutside:Qa},props:PC,emits:DC,setup(e,t){const{content:n,theme:i,disableTeleport:l}=e,o=a.ref(),u=a.ref(),d=a.ref(),f=a.ref(),m=a.ref(!1);let g=null;const{localIsShow:b,showPopover:C,hidePopover:y,resolveTriggerEvents:M,updatePopover:L,resolvePopElements:k,isElementFullScreen:N,cleanup:w,createPopInstance:p}=h8(e,t,o,u,d,f),I=()=>{C()},T=()=>{y()},S=()=>{p(),e.always?C():Q()};!e.always&&!e.disabled&&a.watch(()=>e.isShow,()=>{e.isShow?C():y()},{immediate:!0}),a.watch(()=>[e.disabled],K=>{K[0]?S():se()});const Q=()=>{const{elReference:K,elContent:Z}=k();if(g=M(),Array.isArray(g))z(K,g);else{const{content:J,reference:V}=g;z(K,V),z(Z,J)}},z=(K,Z)=>{Z.forEach(([J,V])=>{K.addEventListener(J,V)})},O=()=>{if(g!=null&&g.length){const{elReference:K}=k();K&&g.forEach(([Z,J])=>{K.removeEventListener(Z,J)}),g=null}},P=()=>{const{elReference:K,root:Z}=k();G.value=E(m.value,Z||K)},{getPrefixId:E,resetFullscreenElementTag:_}=g8(e,"#"),G=a.ref();P();const se=()=>{typeof w=="function"&&w(),O()},ue=()=>{m.value=N(),_(),P(),L()};a.onMounted(()=>{e.disabled||(S(),P(),document.body.addEventListener("fullscreenchange",ue))}),a.onUnmounted(()=>{se(),document.body.removeEventListener("fullscreenchange",ue)}),t.expose({show:I,hide:T});const fe=K=>{t.emit(kr.CLICK_OUTSIDE,{isShow:b.value,event:K}),!(e.disableOutsideClick||e.always||e.disabled||e.trigger==="manual")&&b.value&&T()},me=a.computed(()=>(m.value||!l)&&typeof G.value=="string");return{boundary:G,arrow:e.arrow,refReference:o,refContent:u,refArrow:d,content:n,theme:i,transBoundary:me,handleClickOutside:fe}},render(){return a.createVNode(Wf,{ref:"refRoot"},{default:()=>[a.createVNode(EC,{ref:"refReference"},{default:()=>{var e,t,n;return[(n=(t=(e=this.$slots).default)==null?void 0:t.call(e))!=null?n:a.createVNode("span",null,null)]}}),a.createVNode(a.Teleport,{to:this.boundary,disabled:!this.transBoundary},{default:()=>[a.withDirectives(a.createVNode(Rf,{ref:"refContent","data-theme":this.theme,width:this.width,height:this.height},{default:()=>{var e,t,n;return[(n=(t=(e=this.$slots).content)==null?void 0:t.call(e))!=null?n:this.content]},arrow:()=>this.arrow?a.createVNode(Vf,{ref:"refArrow"},{default:()=>{var e,t;return[(t=(e=this.$slots).arrow)==null?void 0:t.call(e)]}}):""}),[[a.resolveDirective("clickoutside"),this.handleClickOutside]])]})]})}});const Ra=Ge(m8),p8=(e,{attrs:t,slots:n})=>{const{width:i,percent:l,strokeWidth:o,color:u,strokeLinecap:d,theme:f,type:m,bgColor:g,titleStyle:b}=t,C=o||6,y=i||126,M={width:typeof y=="number"?`${y}px`:y,height:typeof y=="number"?`${y}px`:y,fontSize:`${y*.15+6}px`},L=50-C/2,k=m==="dashboard",N=Math.PI*2*L,w=k&&.75||1,p=`${-1*N*(1-w)/2}px`,I="stroke-dasharray 0.6s ease 0s, stroke 0.6s ease",T={strokeDasharray:`${N*w}px, ${N}px`,strokeDashoffset:p},S={strokeDasharray:`${N*w*(l/100)}px, ${N}px`,strokeDashoffset:p,transition:I},Q=`
|
52
|
+
*/function pC(e,t){if(!z3.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,i=n in document;if(!i){var l=document.createElement("div");l.setAttribute(n,"return;"),i=typeof l[n]=="function"}return!i&&P3&&e==="wheel"&&(i=document.implementation.hasFeature("Events.wheel","3.0")),i}var vC=pC,yC=hC,bC=vC,Of=10,Jf=40,Af=800;function E3(e){var t=0,n=0,i=0,l=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),i=t*Of,l=n*Of,"deltaY"in e&&(l=e.deltaY),"deltaX"in e&&(i=e.deltaX),(i||l)&&e.deltaMode&&(e.deltaMode==1?(i*=Jf,l*=Jf):(i*=Af,l*=Af)),i&&!t&&(t=i<1?-1:1),l&&!n&&(n=l<1?-1:1),{spinX:t,spinY:n,pixelX:i,pixelY:l}}E3.getEventType=function(){return yC.firefox()?"DOMMouseScroll":bC("wheel")?"wheel":"mousewheel"};var CC=E3,MC=CC;const IC=typeof navigator!="undefined"&&navigator.userAgent.toLowerCase().indexOf("firefox")>-1,wC=function(e,t){e!=null&&e.addEventListener&&e.addEventListener(IC?"DOMMouseScroll":"mousewheel",function(n){const i=MC(n);t==null||t.apply(this,[n,i])})},NC={beforeMount(e,t){console.error(e,t),wC(e,t.value)}},LC=e=>typeof Element=="undefined"?!1:e instanceof Element,bi=new Map;let O3;document.addEventListener("mousedown",e=>O3=e);document.addEventListener("mouseup",e=>{for(const t of bi.values())for(const{documentHandler:n}of t)n(e,O3)});function Qf(e,t){let n=[];return Array.isArray(t.arg)?n=t.arg:LC(t.arg)&&n.push(t.arg),function(i,l){const{popperRef:o}=t.instance,u=i.target,d=l==null?void 0:l.target,f=!t||!t.instance,m=!u||!d,g=e.contains(u)||e.contains(d),b=e===u,C=n.length&&n.some(M=>M==null?void 0:M.contains(u))||n.length&&n.includes(d),y=o&&(o.contains(u)||o.contains(d));f||m||g||b||C||y||t.value(i,l)}}const Qa={beforeMount(e,t){bi.has(e)||bi.set(e,[]),bi.get(e).push({documentHandler:Qf(e,t),bindingFn:t.value})},updated(e,t){bi.has(e)||bi.set(e,[]);const n=bi.get(e),i=n.findIndex(o=>o.bindingFn===t.oldValue),l={documentHandler:Qf(e,t),bindingFn:t.value};i>=0?n.splice(i,1,l):n.push(l)},unmounted(e){bi.delete(e)}},Ar=new Map,yc={beforeMount(e,t){const n=kC();typeof t.value=="object"?Object.assign(n,t.value):n.content=t.value;const{disabled:i,trigger:l,content:o,arrow:u,theme:d,extCls:f}=n;if(i)return;const m=xC(o,u,d==="light",f);if(l==="hover"){let g=null;e.addEventListener("mouseenter",()=>{Cu(e),clearTimeout(g)}),m.addEventListener("mouseenter",()=>{clearTimeout(g)}),e.addEventListener("mouseleave",()=>{g=setTimeout(()=>{aa(e)},100)}),e.addEventListener("click",()=>{aa(e)}),m.addEventListener("mouseleave",()=>{g=setTimeout(()=>{aa(e)},100)})}else l==="click"&&document.body.addEventListener("click",g=>{e.contains(g.target)&&!m.hasAttribute("data-show")?Cu(e):m.hasAttribute("data-show")&&aa(e)});Ar.set(e,{opts:n,popper:m,popperInstance:null})},unmounted(e){aa(e)}};function kC(){return{arrow:!0,disabled:!1,trigger:"hover",theme:"dark",content:"",showOnInit:!1,placement:"top",distance:8,extCls:"",onShow:()=>{},onHide:()=>{}}}function xC(e,t,n,i){const l=Cn.getPopperIndex(),o=document.createElement("div");if(o.className=`bk-popper ${n?"light":"dark"} ${i}`,o.innerText=e,o.style.zIndex=String(l),t){const u=TC();o.appendChild(u)}return o}function TC(){const e=document.createElement("div");return e.className="bk-popper-arrow",e.setAttribute("data-popper-arrow",""),e}function SC(e,t){const{placement:n,distance:i,showOnInit:l}=Ar.get(e).opts,o=K9(e,t,{placement:n,modifiers:[{name:"offset",options:{offset:[0,i]}}]});return l&&Cu(e),o}function Cu(e){const{popper:t,opts:{onShow:n}}=Ar.get(e);document.body.appendChild(t);const i=SC(e,t);n(),t.setAttribute("data-show",""),i.setOptions(l=>we(H({},l),{modifiers:[...l.modifiers,{name:"eventListeners",enabled:!0}]})),i.forceUpdate(),Ar.get(e).popperInstance=i}function aa(e){if(!Ar.get(e))return;const{popper:t,popperInstance:n,opts:{onHide:i}}=Ar.get(e);t&&document.body.contains(t)&&(t.removeAttribute("data-show"),n==null||n.destroy(),document.body.removeChild(t),i())}var Vf=a.defineComponent({name:"PopArrow",render(){const e=Be("pop2-arrow");return a.createVNode("div",{class:e},null)}});const Xo=(...e)=>!0;let kr;(function(e){e.SHOW="show",e.HIDE="hide",e.CLICK_OUTSIDE="clickoutside"})(kr||(kr={}));const DC={[kr.SHOW]:Xo,[kr.HIDE]:Xo,[kr.CLICK_OUTSIDE]:Xo};var Rf=a.defineComponent({name:"PopContent",props:{width:h.oneOfType([h.string,h.number]).def("auto"),height:h.oneOfType([h.string,h.number]).def("auto")},setup(e){const t=i=>/^\d+\.?\d*$/.test(`${i}`)?`${i}px`:i;return{style:a.computed(()=>({width:t(e.width),height:t(e.height)}))}},render(){var t,n,i,l,o,u;const e=[Be("popover2"),Be("pop2-content")];return a.createVNode("div",{class:e,tabindex:"-1",style:this.style},[(i=(n=(t=this.$slots).default)==null?void 0:n.call(t))!=null?i:"",(u=(o=(l=this.$slots).arrow)==null?void 0:o.call(l))!=null?u:""])}});const jC=["auto","auto-start","auto-end","top","top-start","top-end","bottom","bottom-start","bottom-end","right","right-start","right-end","left","left-start","left-end"],zC={onAfterHidden:Function,onAfterShow:Function},PC=H({isShow:h.bool.def(!1),always:h.bool.def(!1),disabled:h.bool.def(!1),width:h.oneOfType([h.string,h.number]).def("auto"),height:h.oneOfType([h.string,h.number]).def("auto"),content:h.oneOfType([h.string,h.number]).def(""),placement:h.placement(jC).def("top"),theme:h.string.def("dark"),trigger:h.string.def("hover"),arrow:h.bool.def(!0),padding:h.number.def(5),offset:h.number.def(6),boundary:h.string.def(void 0),zIndex:h.number.def(void 0),disableTeleport:h.bool.def(!1),autoPlacement:h.bool.def(!1),autoVisibility:h.bool.def(!0),disableOutsideClick:h.bool.def(!1)},zC);var EC=a.defineComponent({name:"PopReference",render(){var e,t,n;return(n=(t=(e=this.$slots).default)==null?void 0:t.call(e))!=null?n:""}}),Wf=a.defineComponent({props:{class:h.string.def("")},render(){var e,t;return a.createVNode(a.Fragment,null,[(t=(e=this.$slots).default)==null?void 0:t.call(e)])}});function ni(e){return e.split("-")[0]}function Ui(e){return e.split("-")[1]}function Vr(e){return["top","bottom"].includes(ni(e))?"x":"y"}function bc(e){return e==="y"?"height":"width"}function Bf(e,t,n){let{reference:i,floating:l}=e;const o=i.x+i.width/2-l.width/2,u=i.y+i.height/2-l.height/2,d=Vr(t),f=bc(d),m=i[f]/2-l[f]/2,g=ni(t),b=d==="x";let C;switch(g){case"top":C={x:o,y:i.y-l.height};break;case"bottom":C={x:o,y:i.y+i.height};break;case"right":C={x:i.x+i.width,y:u};break;case"left":C={x:i.x-l.width,y:u};break;default:C={x:i.x,y:i.y}}switch(Ui(t)){case"start":C[d]-=m*(n&&b?-1:1);break;case"end":C[d]+=m*(n&&b?-1:1);break}return C}const OC=async(e,t,n)=>{const{placement:i="bottom",strategy:l="absolute",middleware:o=[],platform:u}=n,d=await(u.isRTL==null?void 0:u.isRTL(t));let f=await u.getElementRects({reference:e,floating:t,strategy:l}),{x:m,y:g}=Bf(f,i,d),b=i,C={};for(let y=0;y<o.length;y++){const{name:M,fn:L}=o[y],{x:k,y:N,data:w,reset:p}=await L({x:m,y:g,initialPlacement:i,placement:b,strategy:l,middlewareData:C,rects:f,platform:u,elements:{reference:e,floating:t}});if(m=k!=null?k:m,g=N!=null?N:g,C=we(H({},C),{[M]:H(H({},C[M]),w)}),p){typeof p=="object"&&(p.placement&&(b=p.placement),p.rects&&(f=p.rects===!0?await u.getElementRects({reference:e,floating:t,strategy:l}):p.rects),{x:m,y:g}=Bf(f,b,d)),y=-1;continue}}return{x:m,y:g,placement:b,strategy:l,middlewareData:C}};function JC(e){return H({top:0,right:0,bottom:0,left:0},e)}function Cc(e){return typeof e!="number"?JC(e):{top:e,right:e,bottom:e,left:e}}function Sa(e){return we(H({},e),{top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height})}async function Da(e,t){var n;t===void 0&&(t={});const{x:i,y:l,platform:o,rects:u,elements:d,strategy:f}=e,{boundary:m="clippingAncestors",rootBoundary:g="viewport",elementContext:b="floating",altBoundary:C=!1,padding:y=0}=t,M=Cc(y),k=d[C?b==="floating"?"reference":"floating":b],N=Sa(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(k)))==null||n?k:k.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(d.floating)),boundary:m,rootBoundary:g,strategy:f})),w=Sa(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b==="floating"?we(H({},u.floating),{x:i,y:l}):u.reference,offsetParent:await(o.getOffsetParent==null?void 0:o.getOffsetParent(d.floating)),strategy:f}):u[b]);return{top:N.top-w.top+M.top,bottom:w.bottom-N.bottom+M.bottom,left:N.left-w.left+M.left,right:w.right-N.right+M.right}}const J3=Math.min,A3=Math.max;function Mu(e,t,n){return A3(e,J3(t,n))}const AC=e=>({name:"arrow",options:e,async fn(t){const{element:n,padding:i=0}=e!=null?e:{},{x:l,y:o,placement:u,rects:d,platform:f}=t;if(n==null)return{};const m=Cc(i),g={x:l,y:o},b=Vr(u),C=Ui(u),y=bc(b),M=await f.getDimensions(n),L=b==="y"?"top":"left",k=b==="y"?"bottom":"right",N=d.reference[y]+d.reference[b]-g[b]-d.floating[y],w=g[b]-d.reference[b],p=await(f.getOffsetParent==null?void 0:f.getOffsetParent(n));let I=p?b==="y"?p.clientHeight||0:p.clientWidth||0:0;I===0&&(I=d.floating[y]);const T=N/2-w/2,S=m[L],Q=I-M[y]-m[k],z=I/2-M[y]/2+T,O=Mu(S,z,Q),_=(C==="start"?m[L]:m[k])>0&&z!==O&&d.reference[y]<=d.floating[y]?z<S?S-z:Q-z:0;return{[b]:g[b]-_,data:{[b]:O,centerOffset:z-O}}}}),QC={left:"right",right:"left",bottom:"top",top:"bottom"};function tl(e){return e.replace(/left|right|bottom|top/g,t=>QC[t])}function Q3(e,t,n){n===void 0&&(n=!1);const i=Ui(e),l=Vr(e),o=bc(l);let u=l==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(u=tl(u)),{main:u,cross:tl(u)}}const VC={start:"end",end:"start"};function Iu(e){return e.replace(/start|end/g,t=>VC[t])}const V3=["top","right","bottom","left"],RC=V3.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);function WC(e,t,n){return(e?[...n.filter(l=>Ui(l)===e),...n.filter(l=>Ui(l)!==e)]:n.filter(l=>ni(l)===l)).filter(l=>e?Ui(l)===e||(t?Iu(l)!==l:!1):!0)}const BC=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,i,l,o,u;const{x:d,y:f,rects:m,middlewareData:g,placement:b,platform:C,elements:y}=t,se=e,{alignment:M=null,allowedPlacements:L=RC,autoAlignment:k=!0}=se,N=Qi(se,["alignment","allowedPlacements","autoAlignment"]),w=WC(M,k,L),p=await Da(t,N),I=(n=(i=g.autoPlacement)==null?void 0:i.index)!=null?n:0,T=w[I];if(T==null)return{};const{main:S,cross:Q}=Q3(T,m,await(C.isRTL==null?void 0:C.isRTL(y.floating)));if(b!==T)return{x:d,y:f,reset:{placement:w[0]}};const z=[p[ni(T)],p[S],p[Q]],O=[...(l=(o=g.autoPlacement)==null?void 0:o.overflows)!=null?l:[],{placement:T,overflows:z}],P=w[I+1];if(P)return{data:{index:I+1,overflows:O},reset:{placement:P}};const E=O.slice().sort((ue,fe)=>ue.overflows[0]-fe.overflows[0]),_=(u=E.find(ue=>{let{overflows:fe}=ue;return fe.every(me=>me<=0)}))==null?void 0:u.placement,G=_!=null?_:E[0].placement;return G!==b?{data:{index:I+1,overflows:O},reset:{placement:G}}:{}}}};function HC(e){const t=tl(e);return[Iu(e),t,Iu(t)]}const GC=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:i,middlewareData:l,rects:o,initialPlacement:u,platform:d,elements:f}=t,O=e,{mainAxis:m=!0,crossAxis:g=!0,fallbackPlacements:b,fallbackStrategy:C="bestFit",flipAlignment:y=!0}=O,M=Qi(O,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","flipAlignment"]),L=ni(i),N=b||(L===u||!y?[tl(u)]:HC(u)),w=[u,...N],p=await Da(t,M),I=[];let T=((n=l.flip)==null?void 0:n.overflows)||[];if(m&&I.push(p[L]),g){const{main:P,cross:E}=Q3(i,o,await(d.isRTL==null?void 0:d.isRTL(f.floating)));I.push(p[P],p[E])}if(T=[...T,{placement:i,overflows:I}],!I.every(P=>P<=0)){var S,Q;const P=((S=(Q=l.flip)==null?void 0:Q.index)!=null?S:0)+1,E=w[P];if(E)return{data:{index:P,overflows:T},reset:{placement:E}};let _="bottom";switch(C){case"bestFit":{var z;const G=(z=T.map(se=>[se,se.overflows.filter(ue=>ue>0).reduce((ue,fe)=>ue+fe,0)]).sort((se,ue)=>se[1]-ue[1])[0])==null?void 0:z[0].placement;G&&(_=G);break}case"initialPlacement":_=u;break}if(i!==_)return{reset:{placement:_}}}return{}}}};function Hf(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Gf(e){return V3.some(t=>e[t]>=0)}const ZC=function(e){let i=e===void 0?{}:e,{strategy:t="referenceHidden"}=i,n=Qi(i,["strategy"]);return{name:"hide",async fn(l){const{rects:o}=l;switch(t){case"referenceHidden":{const u=await Da(l,we(H({},n),{elementContext:"reference"})),d=Hf(u,o.reference);return{data:{referenceHiddenOffsets:d,referenceHidden:Gf(d)}}}case"escaped":{const u=await Da(l,we(H({},n),{altBoundary:!0})),d=Hf(u,o.floating);return{data:{escapedOffsets:d,escaped:Gf(d)}}}default:return{}}}}};async function YC(e,t){const{placement:n,platform:i,elements:l}=e,o=await(i.isRTL==null?void 0:i.isRTL(l.floating)),u=ni(n),d=Ui(n),f=Vr(n)==="x",m=["left","top"].includes(u)?-1:1,g=o&&f?-1:1,b=typeof t=="function"?t(e):t;let{mainAxis:C,crossAxis:y,alignmentAxis:M}=typeof b=="number"?{mainAxis:b,crossAxis:0,alignmentAxis:null}:H({mainAxis:0,crossAxis:0,alignmentAxis:null},b);return d&&typeof M=="number"&&(y=d==="end"?M*-1:M),f?{x:y*g,y:C*m}:{x:C*m,y:y*g}}const FC=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:i}=t,l=await YC(t,e);return{x:n+l.x,y:i+l.y,data:l}}}};function _C(e){return e==="x"?"y":"x"}const UC=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:i,placement:l}=t,k=e,{mainAxis:o=!0,crossAxis:u=!1,limiter:d={fn:N=>{let{x:w,y:p}=N;return{x:w,y:p}}}}=k,f=Qi(k,["mainAxis","crossAxis","limiter"]),m={x:n,y:i},g=await Da(t,f),b=Vr(ni(l)),C=_C(b);let y=m[b],M=m[C];if(o){const N=b==="y"?"top":"left",w=b==="y"?"bottom":"right",p=y+g[N],I=y-g[w];y=Mu(p,y,I)}if(u){const N=C==="y"?"top":"left",w=C==="y"?"bottom":"right",p=M+g[N],I=M-g[w];M=Mu(p,M,I)}const L=d.fn(we(H({},t),{[b]:y,[C]:M}));return we(H({},L),{data:{x:L.x-n,y:L.y-i}})}}},$C=function(e){return e===void 0&&(e={}),{name:"inline",options:e,async fn(t){var n;const{placement:i,elements:l,rects:o,platform:u,strategy:d}=t,{padding:f=2,x:m,y:g}=e,b=Sa(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({rect:o.reference,offsetParent:await(u.getOffsetParent==null?void 0:u.getOffsetParent(l.floating)),strategy:d}):o.reference),C=(n=await(u.getClientRects==null?void 0:u.getClientRects(l.reference)))!=null?n:[],y=Cc(f);function M(){if(C.length===2&&C[0].left>C[1].right&&m!=null&&g!=null){var k;return(k=C.find(N=>m>N.left-y.left&&m<N.right+y.right&&g>N.top-y.top&&g<N.bottom+y.bottom))!=null?k:b}if(C.length>=2){if(Vr(i)==="x"){const E=C[0],_=C[C.length-1],G=ni(i)==="top",se=E.top,ue=_.bottom,fe=G?E.left:_.left,me=G?E.right:_.right,K=me-fe,Z=ue-se;return{top:se,bottom:ue,left:fe,right:me,width:K,height:Z,x:fe,y:se}}const N=ni(i)==="left",w=A3(...C.map(E=>E.right)),p=J3(...C.map(E=>E.left)),I=C.filter(E=>N?E.left===p:E.right===w),T=I[0].top,S=I[I.length-1].bottom,Q=p,z=w,O=z-Q,P=S-T;return{top:T,bottom:S,left:Q,right:z,width:O,height:P,x:Q,y:T}}return b}const L=await u.getElementRects({reference:{getBoundingClientRect:M},floating:l.floating,strategy:d});return o.reference.x!==L.reference.x||o.reference.y!==L.reference.y||o.reference.width!==L.reference.width||o.reference.height!==L.reference.height?{reset:{rects:L}}:{}}}};function R3(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function ai(e){if(e==null)return window;if(!R3(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function Va(e){return ai(e).getComputedStyle(e)}function ii(e){return R3(e)?"":e?(e.nodeName||"").toLowerCase():""}function W3(){const e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(t=>t.brand+"/"+t.version).join(" "):navigator.userAgent}function Qn(e){return e instanceof ai(e).HTMLElement}function Ni(e){return e instanceof ai(e).Element}function XC(e){return e instanceof ai(e).Node}function Mc(e){if(typeof ShadowRoot=="undefined")return!1;const t=ai(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Ll(e){const{overflow:t,overflowX:n,overflowY:i}=Va(e);return/auto|scroll|overlay|hidden/.test(t+i+n)}function KC(e){return["table","td","th"].includes(ii(e))}function B3(e){const t=/firefox/i.test(W3()),n=Va(e);return n.transform!=="none"||n.perspective!=="none"||n.contain==="paint"||["transform","perspective"].includes(n.willChange)||t&&n.willChange==="filter"||t&&(n.filter?n.filter!=="none":!1)}function H3(){return!/^((?!chrome|android).)*safari/i.test(W3())}const Zf=Math.min,Ma=Math.max,nl=Math.round;function ri(e,t,n){var i,l,o,u;t===void 0&&(t=!1),n===void 0&&(n=!1);const d=e.getBoundingClientRect();let f=1,m=1;t&&Qn(e)&&(f=e.offsetWidth>0&&nl(d.width)/e.offsetWidth||1,m=e.offsetHeight>0&&nl(d.height)/e.offsetHeight||1);const g=Ni(e)?ai(e):window,b=!H3()&&n,C=(d.left+(b&&(i=(l=g.visualViewport)==null?void 0:l.offsetLeft)!=null?i:0))/f,y=(d.top+(b&&(o=(u=g.visualViewport)==null?void 0:u.offsetTop)!=null?o:0))/m,M=d.width/f,L=d.height/m;return{width:M,height:L,top:y,right:C+M,bottom:y+L,left:C,x:C,y}}function xi(e){return((XC(e)?e.ownerDocument:e.document)||window.document).documentElement}function kl(e){return Ni(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function G3(e){return ri(xi(e)).left+kl(e).scrollLeft}function qC(e){const t=ri(e);return nl(t.width)!==e.offsetWidth||nl(t.height)!==e.offsetHeight}function e8(e,t,n){const i=Qn(t),l=xi(t),o=ri(e,i&&qC(t),n==="fixed");let u={scrollLeft:0,scrollTop:0};const d={x:0,y:0};if(i||!i&&n!=="fixed")if((ii(t)!=="body"||Ll(l))&&(u=kl(t)),Qn(t)){const f=ri(t,!0);d.x=f.x+t.clientLeft,d.y=f.y+t.clientTop}else l&&(d.x=G3(l));return{x:o.left+u.scrollLeft-d.x,y:o.top+u.scrollTop-d.y,width:o.width,height:o.height}}function Z3(e){return ii(e)==="html"?e:e.assignedSlot||e.parentNode||(Mc(e)?e.host:null)||xi(e)}function Yf(e){return!Qn(e)||getComputedStyle(e).position==="fixed"?null:e.offsetParent}function t8(e){let t=Z3(e);for(Mc(t)&&(t=t.host);Qn(t)&&!["html","body"].includes(ii(t));){if(B3(t))return t;t=t.parentNode}return null}function wu(e){const t=ai(e);let n=Yf(e);for(;n&&KC(n)&&getComputedStyle(n).position==="static";)n=Yf(n);return n&&(ii(n)==="html"||ii(n)==="body"&&getComputedStyle(n).position==="static"&&!B3(n))?t:n||t8(e)||t}function Ff(e){if(Qn(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=ri(e);return{width:t.width,height:t.height}}function n8(e){let{rect:t,offsetParent:n,strategy:i}=e;const l=Qn(n),o=xi(n);if(n===o)return t;let u={scrollLeft:0,scrollTop:0};const d={x:0,y:0};if((l||!l&&i!=="fixed")&&((ii(n)!=="body"||Ll(o))&&(u=kl(n)),Qn(n))){const f=ri(n,!0);d.x=f.x+n.clientLeft,d.y=f.y+n.clientTop}return we(H({},t),{x:t.x-u.scrollLeft+d.x,y:t.y-u.scrollTop+d.y})}function i8(e,t){const n=ai(e),i=xi(e),l=n.visualViewport;let o=i.clientWidth,u=i.clientHeight,d=0,f=0;if(l){o=l.width,u=l.height;const m=H3();(m||!m&&t==="fixed")&&(d=l.offsetLeft,f=l.offsetTop)}return{width:o,height:u,x:d,y:f}}function r8(e){var t;const n=xi(e),i=kl(e),l=(t=e.ownerDocument)==null?void 0:t.body,o=Ma(n.scrollWidth,n.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),u=Ma(n.scrollHeight,n.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0);let d=-i.scrollLeft+G3(e);const f=-i.scrollTop;return Va(l||n).direction==="rtl"&&(d+=Ma(n.clientWidth,l?l.clientWidth:0)-o),{width:o,height:u,x:d,y:f}}function Y3(e){const t=Z3(e);return["html","body","#document"].includes(ii(t))?e.ownerDocument.body:Qn(t)&&Ll(t)?t:Y3(t)}function il(e,t){var n;t===void 0&&(t=[]);const i=Y3(e),l=i===((n=e.ownerDocument)==null?void 0:n.body),o=ai(i),u=l?[o].concat(o.visualViewport||[],Ll(i)?i:[]):i,d=t.concat(u);return l?d:d.concat(il(u))}function a8(e,t){const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Mc(n)){let i=t;do{if(i&&e===i)return!0;i=i.parentNode||i.host}while(i)}return!1}function s8(e,t){const n=ri(e,!1,t==="fixed"),i=n.top+e.clientTop,l=n.left+e.clientLeft;return{top:i,left:l,x:l,y:i,right:l+e.clientWidth,bottom:i+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}function _f(e,t,n){return t==="viewport"?Sa(i8(e,n)):Ni(t)?s8(t,n):Sa(r8(xi(e)))}function l8(e){const t=il(e),i=["absolute","fixed"].includes(Va(e).position)&&Qn(e)?wu(e):e;return Ni(i)?t.filter(l=>Ni(l)&&a8(l,i)&&ii(l)!=="body"):[]}function o8(e){let{element:t,boundary:n,rootBoundary:i,strategy:l}=e;const u=[...n==="clippingAncestors"?l8(t):[].concat(n),i],d=u[0],f=u.reduce((m,g)=>{const b=_f(t,g,l);return m.top=Ma(b.top,m.top),m.right=Zf(b.right,m.right),m.bottom=Zf(b.bottom,m.bottom),m.left=Ma(b.left,m.left),m},_f(t,d,l));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}const u8={getClippingRect:o8,convertOffsetParentRelativeRectToViewportRelativeRect:n8,isElement:Ni,getDimensions:Ff,getOffsetParent:wu,getDocumentElement:xi,getElementRects:e=>{let{reference:t,floating:n,strategy:i}=e;return{reference:e8(t,wu(n),i),floating:we(H({},Ff(n)),{x:0,y:0})}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Va(e).direction==="rtl"};function c8(e,t,n,i){i===void 0&&(i={});const{ancestorScroll:l=!0,ancestorResize:o=!0,elementResize:u=!0,animationFrame:d=!1}=i,f=l&&!d,m=o&&!d,g=f||m?[...Ni(e)?il(e):[],...il(t)]:[];g.forEach(L=>{f&&L.addEventListener("scroll",n,{passive:!0}),m&&L.addEventListener("resize",n)});let b=null;u&&(b=new ResizeObserver(n),Ni(e)&&!d&&b.observe(e),b.observe(t));let C,y=d?ri(e):null;d&&M();function M(){const L=ri(e);y&&(L.x!==y.x||L.y!==y.y||L.width!==y.width||L.height!==y.height)&&n(),y=L,C=requestAnimationFrame(M)}return u||n(),()=>{var L;g.forEach(k=>{f&&k.removeEventListener("scroll",n),m&&k.removeEventListener("resize",n)}),(L=b)==null||L.disconnect(),b=null,d&&cancelAnimationFrame(C)}}const d8=(e,t,n)=>OC(e,t,H({platform:u8},n));var f8=()=>({getElementRects:({reference:i,floating:l})=>{const o=i.getBoundingClientRect(),u=l.getBoundingClientRect();return{reference:{width:o.width,height:o.height,x:o.x,y:o.y},floating:{width:u.width,height:u.height,x:u.x,y:u.y}}},getDimensions:i=>{const{width:l,height:o}=i.getBoundingClientRect();return{width:l,height:o}},getClippingRect:({})=>{const{width:i,height:l}=document.fullscreenElement.getBoundingClientRect();return{width:i,height:l,x:0,y:0}}}),h8=(e,t,n,i,l,o)=>{const u=a.ref(!1),d=()=>{var J,V,X;const Z=M((J=n.value)==null?void 0:J.$el);return(V=document.fullscreenElement)!=null&&V.shadowRoot?document.fullscreenElement.shadowRoot.contains(Z):(X=document.fullscreenElement)==null?void 0:X.contains(Z)},f=["dark","light"],m=a.computed(()=>{const Z=e.theme.split(/\s+/);Z.sort((X,Y)=>Number(f.includes(Y))-Number(f.includes(X)));const J=Z,V=Z.filter(X=>!f.includes(X));return{systemThemes:J,customThemes:V}}),g=()=>!d()&&e.autoVisibility,b=()=>d()||e.autoPlacement,C=()=>{var Y,ne,le,ge;const Z=M((Y=n.value)==null?void 0:Y.$el),J=M((ne=i.value)==null?void 0:ne.$el),V=e.arrow?M((le=l.value)==null?void 0:le.$el):null,X=M((ge=o.value)==null?void 0:ge.$el);return{elReference:Z,elContent:J,elArrow:V,root:X}},y=Z=>{const J=[FC(e.offset),UC({padding:e.padding})],V={placement:e.placement,middleware:J};if(e.arrow&&J.push(AC({element:Z})),b()?J.push(BC()):(J.unshift($C()),J.push(GC())),g()&&V.middleware.push(ZC()),d()){const{getElementRects:X,getDimensions:Y,getClippingRect:ne}=f8();Object.assign(V,{platform:{getElementRects:X,getDimensions:Y,getClippingRect:ne}})}return V},M=Z=>Z instanceof HTMLElement?Z:Z instanceof Text?M(Z.nextElementSibling):null,L=m.value.customThemes.join(" "),k=m.value.customThemes.reduce((Z,J)=>H({[`data-${J}-theme`]:!0},Z),{}),N=`${L}`;let w=null;const p=Z=>{const J=window.devicePixelRatio||1;return Math.round(Z*J)/J||0},I=(Z,J,V,X)=>{var ne;Object.assign(Z.style,{left:"0",top:"0",transform:`translate3d(${p(J)}px,${p(V)}px,0)`});const Y=g()?(ne=X.hide)==null?void 0:ne.referenceHidden:!1;Object.assign(Z.style,{visibility:Y?"hidden":"visible"})},T=(Z,J,V)=>{if(e.arrow){const{x:X,y:Y}=V.arrow;Z.setAttribute("data-arrow",J);const ne={left:"",top:"",bottom:"",right:""};Object.assign(Z.style,ne);const le={top:"bottom",right:"left",bottom:"top",left:"right"}[J];Object.assign(Z.style,{left:X!==null?`${X}px`:"",top:Y!==null?`${Y}px`:"",[le]:"-4px"})}},S=()=>{const{elReference:Z,elContent:J}=C();w=c8(Z,J,()=>{Q()})},Q=()=>{const{elReference:Z,elContent:J,elArrow:V}=C();if(!Z)return;const X=y(V);d8(Z,J,X).then(({x:Y,y:ne,placement:le,middlewareData:ge})=>{const U=J.className;J.className=`${U.replace(N,"")} ${N}`.replace(/\s+/mg," ").replace(/^\s+|\s+$/g,""),Object.keys(k).forEach(F=>{J.setAttribute(F,k[F])});const de=le.split("-")[0];let he=de;["left","right","top","bottom"].includes(de)||(he="top"),I(J,Y,ne,ge),T(V,he,ge)})},z=()=>{u.value=!0};let O,P=!1;const E=()=>{O=setTimeout(()=>{u.value=!1},100)},_=()=>{var J;const Z=M((J=i.value)==null?void 0:J.$el);Z.style.setProperty("display","block"),Z.style.setProperty("z-index",`${e.zIndex?e.zIndex:Cn.getModalNextIndex()}`),Q(),t.emit("afterShow",{isSHow:!0})},G=()=>{var J;M((J=i.value)==null?void 0:J.$el).style.setProperty("display","none"),t.emit("afterHidden",{isSHow:!1})},se=()=>{u.value?E():z()},ue=()=>{se()},fe=()=>{e.trigger==="hover"&&O&&(P=!0,clearTimeout(O),O=void 0)},me=()=>{P&&(E(),P=!1)},K=()=>{var J;return(J={hover:{content:[["mouseenter",fe],["mouseleave",me]],reference:[["mouseenter",z],["mouseleave",E],["focus",z],["blur",E]]},click:[["click",ue]],manual:[[]]}[e.trigger])!=null?J:[]};return a.watch(u,Z=>{Z?_():G()}),{showPopover:z,hidePopover:E,resolveTriggerEvents:K,updatePopover:Q,triggerPopover:se,resolvePopElements:C,isElementFullScreen:d,resolveTargetElement:M,createPopInstance:S,localIsShow:u,cleanup:w}};let vi=null,sa=null,Os=null;var g8=(e,t="#")=>{const n=(o=!1,u)=>{let d=null;const f=C=>{d===null&&C()},m=()=>{if(/^parent$/i.test(e.boundary)){d=`${t}${vi}`;const{parentNode:C}=u||{};C!=null&&C.parentNode&&(C.parentNode.setAttribute("data-pnode-id",Os),d=`[data-pnode-id=${Os}]`)}},g=()=>{o&&(d=`[data-fllsrn-id=${sa}]`)},b=()=>{if(!/^body$/i.test(e.boundary)&&typeof e.boundary=="string"){if(!i(e.boundary)){console.error("props.boundary is not available selector"),d="body";return}d=e.boundary}};return f(m),f(b),f(g),f(()=>{d=typeof e.boundary=="string"?e.boundary:`${t}${vi}`}),d},i=o=>document.querySelector(o)instanceof HTMLElement;if(vi===null||!i(`#${vi}`)){vi=`id_${Fi.v4()}`;const o=document.createElement("div");o.setAttribute("id",vi),o.setAttribute("data-popper-id",vi),document.body.append(o)}sa===null&&(sa=`id_${Fi.v4()}`),Os===null&&(Os=`id_${Fi.v4()}`);const l=()=>{var o;if(document.fullscreenElement===null){const u=`[data-fllsrn-id=${sa}]`;((o=document.querySelectorAll(u))!=null?o:[]).forEach(d=>{d.removeAttribute("data-fllsrn-id")})}else document.fullscreenElement.setAttribute("data-fllsrn-id",sa)};return{popContainerId:vi,prefixId:n(),getPrefixId:n,resetFullscreenElementTag:l}},m8=a.defineComponent({name:"Popover2",components:{Content:Rf,Arrow:Vf,Root:Wf},directives:{clickoutside:Qa},props:PC,emits:DC,setup(e,t){const{content:n,theme:i,disableTeleport:l}=e,o=a.ref(),u=a.ref(),d=a.ref(),f=a.ref(),m=a.ref(!1);let g=null;const{localIsShow:b,showPopover:C,hidePopover:y,resolveTriggerEvents:M,updatePopover:L,resolvePopElements:k,isElementFullScreen:N,cleanup:w,createPopInstance:p}=h8(e,t,o,u,d,f),I=()=>{C()},T=()=>{y()},S=()=>{p(),e.always?C():Q()};!e.always&&!e.disabled&&a.watch(()=>e.isShow,()=>{e.isShow?C():y()},{immediate:!0}),a.watch(()=>[e.disabled],K=>{K[0]?S():se()});const Q=()=>{const{elReference:K,elContent:Z}=k();if(g=M(),Array.isArray(g))z(K,g);else{const{content:J,reference:V}=g;z(K,V),z(Z,J)}},z=(K,Z)=>{Z.forEach(([J,V])=>{K.addEventListener(J,V)})},O=()=>{if(g!=null&&g.length){const{elReference:K}=k();K&&g.forEach(([Z,J])=>{K.removeEventListener(Z,J)}),g=null}},P=()=>{const{elReference:K,root:Z}=k();G.value=E(m.value,Z||K)},{getPrefixId:E,resetFullscreenElementTag:_}=g8(e,"#"),G=a.ref();P();const se=()=>{typeof w=="function"&&w(),O()},ue=()=>{m.value=N(),_(),P(),L()};a.onMounted(()=>{e.disabled||(S(),P(),document.body.addEventListener("fullscreenchange",ue))}),a.onUnmounted(()=>{se(),document.body.removeEventListener("fullscreenchange",ue)}),t.expose({show:I,hide:T});const fe=K=>{t.emit(kr.CLICK_OUTSIDE,{isShow:b.value,event:K}),!(e.disableOutsideClick||e.always||e.disabled||e.trigger==="manual")&&b.value&&T()},me=a.computed(()=>(m.value||!l)&&typeof G.value=="string");return{boundary:G,arrow:e.arrow,refReference:o,refContent:u,refArrow:d,content:n,theme:i,transBoundary:me,handleClickOutside:fe}},render(){return a.createVNode(Wf,{ref:"refRoot"},{default:()=>[a.createVNode(EC,{ref:"refReference"},{default:()=>{var e,t,n;return[(n=(t=(e=this.$slots).default)==null?void 0:t.call(e))!=null?n:a.createVNode("span",null,null)]}}),a.createVNode(a.Teleport,{to:this.boundary,disabled:!this.transBoundary},{default:()=>[a.withDirectives(a.createVNode(Rf,{ref:"refContent","data-theme":this.theme,width:this.width,height:this.height},{default:()=>{var e,t,n;return[(n=(t=(e=this.$slots).content)==null?void 0:t.call(e))!=null?n:this.content]},arrow:()=>this.arrow?a.createVNode(Vf,{ref:"refArrow"},{default:()=>{var e,t;return[(t=(e=this.$slots).arrow)==null?void 0:t.call(e)]}}):""}),[[a.resolveDirective("clickoutside"),this.handleClickOutside]])]})]})}});const Ra=Ge(m8),p8=(e,{attrs:t,slots:n})=>{const{width:i,percent:l,strokeWidth:o,color:u,strokeLinecap:d,theme:f,type:m,bgColor:g,titleStyle:b}=t,C=o||6,y=i||126,M={width:typeof y=="number"?`${y}px`:y,height:typeof y=="number"?`${y}px`:y,fontSize:`${y*.15+6}px`},L=50-C/2,k=m==="dashboard",N=Math.PI*2*L,w=k&&.75||1,p=`${-1*N*(1-w)/2}px`,I="stroke-dasharray 0.6s ease 0s, stroke 0.6s ease",T={strokeDasharray:`${N*w}px, ${N}px`,strokeDashoffset:p},S={strokeDasharray:`${N*w*(l/100)}px, ${N}px`,strokeDashoffset:p,transition:I},Q=`
|
53
53
|
M 50 50
|
54
54
|
m 0 ${k?"":"-"}${L}
|
55
55
|
a ${L} ${L} 0 1 1 0 ${k?"-":""}${L*2}
|
package/dist/index.esm.js
CHANGED
@@ -12404,9 +12404,12 @@ var usePlatform = () => {
|
|
12404
12404
|
var useFloating = (props, ctx, refReference, refContent, refArrow, refRoot) => {
|
12405
12405
|
const localIsShow = ref(false);
|
12406
12406
|
const isElementFullScreen = () => {
|
12407
|
-
var _a, _b;
|
12407
|
+
var _a, _b, _c;
|
12408
12408
|
const elReference = resolveTargetElement((_a = refReference.value) == null ? void 0 : _a.$el);
|
12409
|
-
|
12409
|
+
if ((_b = document.fullscreenElement) == null ? void 0 : _b.shadowRoot) {
|
12410
|
+
return document.fullscreenElement.shadowRoot.contains(elReference);
|
12411
|
+
}
|
12412
|
+
return (_c = document.fullscreenElement) == null ? void 0 : _c.contains(elReference);
|
12410
12413
|
};
|
12411
12414
|
const themeList = ["dark", "light"];
|
12412
12415
|
const compTheme = computed(() => {
|
package/dist/index.umd.js
CHANGED
@@ -49,7 +49,7 @@ ${Ka(n)}`),i}})}function U1(e){const t=Object.keys(e),n=t.filter(l=>{var o;retur
|
|
49
49
|
* @return {boolean} True if the event is supported.
|
50
50
|
* @internal
|
51
51
|
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
52
|
-
*/function Ag(e,t){if(!Xd.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,i=n in document;if(!i){var l=document.createElement("div");l.setAttribute(n,"return;"),i=typeof l[n]=="function"}return!i&&Kd&&e==="wheel"&&(i=document.implementation.hasFeature("Events.wheel","3.0")),i}var Qg=Ag,Vg=Eg,Rg=Qg,qd=10,e0=40,t0=800;function n0(e){var t=0,n=0,i=0,l=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),i=t*qd,l=n*qd,"deltaY"in e&&(l=e.deltaY),"deltaX"in e&&(i=e.deltaX),(i||l)&&e.deltaMode&&(e.deltaMode==1?(i*=e0,l*=e0):(i*=t0,l*=t0)),i&&!t&&(t=i<1?-1:1),l&&!n&&(n=l<1?-1:1),{spinX:t,spinY:n,pixelX:i,pixelY:l}}n0.getEventType=function(){return Vg.firefox()?"DOMMouseScroll":Rg("wheel")?"wheel":"mousewheel"};var Wg=n0,Bg=Wg;const Hg=typeof navigator!="undefined"&&navigator.userAgent.toLowerCase().indexOf("firefox")>-1,Gg=function(e,t){e!=null&&e.addEventListener&&e.addEventListener(Hg?"DOMMouseScroll":"mousewheel",function(n){const i=Bg(n);t==null||t.apply(this,[n,i])})},Zg={beforeMount(e,t){console.error(e,t),Gg(e,t.value)}},Yg=e=>typeof Element=="undefined"?!1:e instanceof Element,gi=new Map;let i0;document.addEventListener("mousedown",e=>i0=e),document.addEventListener("mouseup",e=>{for(const t of gi.values())for(const{documentHandler:n}of t)n(e,i0)});function r0(e,t){let n=[];return Array.isArray(t.arg)?n=t.arg:Yg(t.arg)&&n.push(t.arg),function(i,l){const{popperRef:o}=t.instance,c=i.target,d=l==null?void 0:l.target,f=!t||!t.instance,m=!c||!d,g=e.contains(c)||e.contains(d),C=e===c,M=n.length&&n.some(I=>I==null?void 0:I.contains(c))||n.length&&n.includes(d),b=o&&(o.contains(c)||o.contains(d));f||m||g||C||M||b||t.value(i,l)}}const sa={beforeMount(e,t){gi.has(e)||gi.set(e,[]),gi.get(e).push({documentHandler:r0(e,t),bindingFn:t.value})},updated(e,t){gi.has(e)||gi.set(e,[]);const n=gi.get(e),i=n.findIndex(o=>o.bindingFn===t.oldValue),l={documentHandler:r0(e,t),bindingFn:t.value};i>=0?n.splice(i,1,l):n.push(l)},unmounted(e){gi.delete(e)}},br=new Map,Oo={beforeMount(e,t){const n=Fg();typeof t.value=="object"?Object.assign(n,t.value):n.content=t.value;const{disabled:i,trigger:l,content:o,arrow:c,theme:d,extCls:f}=n;if(i)return;const m=_g(o,c,d==="light",f);if(l==="hover"){let g=null;e.addEventListener("mouseenter",()=>{Jo(e),clearTimeout(g)}),m.addEventListener("mouseenter",()=>{clearTimeout(g)}),e.addEventListener("mouseleave",()=>{g=setTimeout(()=>{la(e)},100)}),e.addEventListener("click",()=>{la(e)}),m.addEventListener("mouseleave",()=>{g=setTimeout(()=>{la(e)},100)})}else l==="click"&&document.body.addEventListener("click",g=>{e.contains(g.target)&&!m.hasAttribute("data-show")?Jo(e):m.hasAttribute("data-show")&&la(e)});br.set(e,{opts:n,popper:m,popperInstance:null})},unmounted(e){la(e)}};function Fg(){return{arrow:!0,disabled:!1,trigger:"hover",theme:"dark",content:"",showOnInit:!1,placement:"top",distance:8,extCls:"",onShow:()=>{},onHide:()=>{}}}function _g(e,t,n,i){const l=pn.getPopperIndex(),o=document.createElement("div");if(o.className=`bk-popper ${n?"light":"dark"} ${i}`,o.innerText=e,o.style.zIndex=String(l),t){const c=Ug();o.appendChild(c)}return o}function Ug(){const e=document.createElement("div");return e.className="bk-popper-arrow",e.setAttribute("data-popper-arrow",""),e}function $g(e,t){const{placement:n,distance:i,showOnInit:l}=br.get(e).opts,o=dd(e,t,{placement:n,modifiers:[{name:"offset",options:{offset:[0,i]}}]});return l&&Jo(e),o}function Jo(e){const{popper:t,opts:{onShow:n}}=br.get(e);document.body.appendChild(t);const i=$g(e,t);n(),t.setAttribute("data-show",""),i.setOptions(l=>ve(H({},l),{modifiers:[...l.modifiers,{name:"eventListeners",enabled:!0}]})),i.forceUpdate(),br.get(e).popperInstance=i}function la(e){if(!br.get(e))return;const{popper:t,popperInstance:n,opts:{onHide:i}}=br.get(e);t&&document.body.contains(t)&&(t.removeAttribute("data-show"),n==null||n.destroy(),document.body.removeChild(t),i())}var a0=a.defineComponent({name:"PopArrow",render(){const e=Be("pop2-arrow");return a.createVNode("div",{class:e},null)}});const Ao=(...e)=>!0;let Cr;(function(e){e.SHOW="show",e.HIDE="hide",e.CLICK_OUTSIDE="clickoutside"})(Cr||(Cr={}));const Xg={[Cr.SHOW]:Ao,[Cr.HIDE]:Ao,[Cr.CLICK_OUTSIDE]:Ao};var s0=a.defineComponent({name:"PopContent",props:{width:h.oneOfType([h.string,h.number]).def("auto"),height:h.oneOfType([h.string,h.number]).def("auto")},setup(e){const t=i=>/^\d+\.?\d*$/.test(`${i}`)?`${i}px`:i;return{style:a.computed(()=>({width:t(e.width),height:t(e.height)}))}},render(){var t,n,i,l,o,c;const e=[Be("popover2"),Be("pop2-content")];return a.createVNode("div",{class:e,tabindex:"-1",style:this.style},[(i=(n=(t=this.$slots).default)==null?void 0:n.call(t))!=null?i:"",(c=(o=(l=this.$slots).arrow)==null?void 0:o.call(l))!=null?c:""])}});const Kg=["auto","auto-start","auto-end","top","top-start","top-end","bottom","bottom-start","bottom-end","right","right-start","right-end","left","left-start","left-end"],qg={onAfterHidden:Function,onAfterShow:Function},e2=H({isShow:h.bool.def(!1),always:h.bool.def(!1),disabled:h.bool.def(!1),width:h.oneOfType([h.string,h.number]).def("auto"),height:h.oneOfType([h.string,h.number]).def("auto"),content:h.oneOfType([h.string,h.number]).def(""),placement:h.placement(Kg).def("top"),theme:h.string.def("dark"),trigger:h.string.def("hover"),arrow:h.bool.def(!0),padding:h.number.def(5),offset:h.number.def(6),boundary:h.string.def(void 0),zIndex:h.number.def(void 0),disableTeleport:h.bool.def(!1),autoPlacement:h.bool.def(!1),autoVisibility:h.bool.def(!0),disableOutsideClick:h.bool.def(!1)},qg);var t2=a.defineComponent({name:"PopReference",render(){var e,t,n;return(n=(t=(e=this.$slots).default)==null?void 0:t.call(e))!=null?n:""}}),l0=a.defineComponent({props:{class:h.string.def("")},render(){var e,t;return a.createVNode(a.Fragment,null,[(t=(e=this.$slots).default)==null?void 0:t.call(e)])}});function Zn(e){return e.split("-")[0]}function Gi(e){return e.split("-")[1]}function Mr(e){return["top","bottom"].includes(Zn(e))?"x":"y"}function Qo(e){return e==="y"?"height":"width"}function o0(e,t,n){let{reference:i,floating:l}=e;const o=i.x+i.width/2-l.width/2,c=i.y+i.height/2-l.height/2,d=Mr(t),f=Qo(d),m=i[f]/2-l[f]/2,g=Zn(t),C=d==="x";let M;switch(g){case"top":M={x:o,y:i.y-l.height};break;case"bottom":M={x:o,y:i.y+i.height};break;case"right":M={x:i.x+i.width,y:c};break;case"left":M={x:i.x-l.width,y:c};break;default:M={x:i.x,y:i.y}}switch(Gi(t)){case"start":M[d]-=m*(n&&C?-1:1);break;case"end":M[d]+=m*(n&&C?-1:1);break}return M}const n2=async(e,t,n)=>{const{placement:i="bottom",strategy:l="absolute",middleware:o=[],platform:c}=n,d=await(c.isRTL==null?void 0:c.isRTL(t));let f=await c.getElementRects({reference:e,floating:t,strategy:l}),{x:m,y:g}=o0(f,i,d),C=i,M={};for(let b=0;b<o.length;b++){const{name:I,fn:L}=o[b],{x:k,y:v,data:N,reset:p}=await L({x:m,y:g,initialPlacement:i,placement:C,strategy:l,middlewareData:M,rects:f,platform:c,elements:{reference:e,floating:t}});if(m=k!=null?k:m,g=v!=null?v:g,M=ve(H({},M),{[I]:H(H({},M[I]),N)}),p){typeof p=="object"&&(p.placement&&(C=p.placement),p.rects&&(f=p.rects===!0?await c.getElementRects({reference:e,floating:t,strategy:l}):p.rects),{x:m,y:g}=o0(f,C,d)),b=-1;continue}}return{x:m,y:g,placement:C,strategy:l,middlewareData:M}};function i2(e){return H({top:0,right:0,bottom:0,left:0},e)}function Vo(e){return typeof e!="number"?i2(e):{top:e,right:e,bottom:e,left:e}}function oa(e){return ve(H({},e),{top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height})}async function ca(e,t){var n;t===void 0&&(t={});const{x:i,y:l,platform:o,rects:c,elements:d,strategy:f}=e,{boundary:m="clippingAncestors",rootBoundary:g="viewport",elementContext:C="floating",altBoundary:M=!1,padding:b=0}=t,I=Vo(b),k=d[M?C==="floating"?"reference":"floating":C],v=oa(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(k)))==null||n?k:k.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(d.floating)),boundary:m,rootBoundary:g,strategy:f})),N=oa(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({rect:C==="floating"?ve(H({},c.floating),{x:i,y:l}):c.reference,offsetParent:await(o.getOffsetParent==null?void 0:o.getOffsetParent(d.floating)),strategy:f}):c[C]);return{top:v.top-N.top+I.top,bottom:N.bottom-v.bottom+I.bottom,left:v.left-N.left+I.left,right:N.right-v.right+I.right}}const c0=Math.min,u0=Math.max;function Ro(e,t,n){return u0(e,c0(t,n))}const r2=e=>({name:"arrow",options:e,async fn(t){const{element:n,padding:i=0}=e!=null?e:{},{x:l,y:o,placement:c,rects:d,platform:f}=t;if(n==null)return{};const m=Vo(i),g={x:l,y:o},C=Mr(c),M=Gi(c),b=Qo(C),I=await f.getDimensions(n),L=C==="y"?"top":"left",k=C==="y"?"bottom":"right",v=d.reference[b]+d.reference[C]-g[C]-d.floating[b],N=g[C]-d.reference[C],p=await(f.getOffsetParent==null?void 0:f.getOffsetParent(n));let w=p?C==="y"?p.clientHeight||0:p.clientWidth||0:0;w===0&&(w=d.floating[b]);const x=v/2-N/2,S=m[L],Q=w-I[b]-m[k],z=w/2-I[b]/2+x,O=Ro(S,z,Q),_=(M==="start"?m[L]:m[k])>0&&z!==O&&d.reference[b]<=d.floating[b]?z<S?S-z:Q-z:0;return{[C]:g[C]-_,data:{[C]:O,centerOffset:z-O}}}}),a2={left:"right",right:"left",bottom:"top",top:"bottom"};function bs(e){return e.replace(/left|right|bottom|top/g,t=>a2[t])}function d0(e,t,n){n===void 0&&(n=!1);const i=Gi(e),l=Mr(e),o=Qo(l);let c=l==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(c=bs(c)),{main:c,cross:bs(c)}}const s2={start:"end",end:"start"};function Wo(e){return e.replace(/start|end/g,t=>s2[t])}const f0=["top","right","bottom","left"],l2=f0.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);function o2(e,t,n){return(e?[...n.filter(l=>Gi(l)===e),...n.filter(l=>Gi(l)!==e)]:n.filter(l=>Zn(l)===l)).filter(l=>e?Gi(l)===e||(t?Wo(l)!==l:!1):!0)}const c2=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,i,l,o,c;const{x:d,y:f,rects:m,middlewareData:g,placement:C,platform:M,elements:b}=t,se=e,{alignment:I=null,allowedPlacements:L=l2,autoAlignment:k=!0}=se,v=lr(se,["alignment","allowedPlacements","autoAlignment"]),N=o2(I,k,L),p=await ca(t,v),w=(n=(i=g.autoPlacement)==null?void 0:i.index)!=null?n:0,x=N[w];if(x==null)return{};const{main:S,cross:Q}=d0(x,m,await(M.isRTL==null?void 0:M.isRTL(b.floating)));if(C!==x)return{x:d,y:f,reset:{placement:N[0]}};const z=[p[Zn(x)],p[S],p[Q]],O=[...(l=(o=g.autoPlacement)==null?void 0:o.overflows)!=null?l:[],{placement:x,overflows:z}],P=N[w+1];if(P)return{data:{index:w+1,overflows:O},reset:{placement:P}};const E=O.slice().sort((ce,fe)=>ce.overflows[0]-fe.overflows[0]),_=(c=E.find(ce=>{let{overflows:fe}=ce;return fe.every(pe=>pe<=0)}))==null?void 0:c.placement,G=_!=null?_:E[0].placement;return G!==C?{data:{index:w+1,overflows:O},reset:{placement:G}}:{}}}};function u2(e){const t=bs(e);return[Wo(e),t,Wo(t)]}const d2=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:i,middlewareData:l,rects:o,initialPlacement:c,platform:d,elements:f}=t,O=e,{mainAxis:m=!0,crossAxis:g=!0,fallbackPlacements:C,fallbackStrategy:M="bestFit",flipAlignment:b=!0}=O,I=lr(O,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","flipAlignment"]),L=Zn(i),v=C||(L===c||!b?[bs(c)]:u2(c)),N=[c,...v],p=await ca(t,I),w=[];let x=((n=l.flip)==null?void 0:n.overflows)||[];if(m&&w.push(p[L]),g){const{main:P,cross:E}=d0(i,o,await(d.isRTL==null?void 0:d.isRTL(f.floating)));w.push(p[P],p[E])}if(x=[...x,{placement:i,overflows:w}],!w.every(P=>P<=0)){var S,Q;const P=((S=(Q=l.flip)==null?void 0:Q.index)!=null?S:0)+1,E=N[P];if(E)return{data:{index:P,overflows:x},reset:{placement:E}};let _="bottom";switch(M){case"bestFit":{var z;const G=(z=x.map(se=>[se,se.overflows.filter(ce=>ce>0).reduce((ce,fe)=>ce+fe,0)]).sort((se,ce)=>se[1]-ce[1])[0])==null?void 0:z[0].placement;G&&(_=G);break}case"initialPlacement":_=c;break}if(i!==_)return{reset:{placement:_}}}return{}}}};function h0(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function g0(e){return f0.some(t=>e[t]>=0)}const f2=function(e){let i=e===void 0?{}:e,{strategy:t="referenceHidden"}=i,n=lr(i,["strategy"]);return{name:"hide",async fn(l){const{rects:o}=l;switch(t){case"referenceHidden":{const c=await ca(l,ve(H({},n),{elementContext:"reference"})),d=h0(c,o.reference);return{data:{referenceHiddenOffsets:d,referenceHidden:g0(d)}}}case"escaped":{const c=await ca(l,ve(H({},n),{altBoundary:!0})),d=h0(c,o.floating);return{data:{escapedOffsets:d,escaped:g0(d)}}}default:return{}}}}};async function h2(e,t){const{placement:n,platform:i,elements:l}=e,o=await(i.isRTL==null?void 0:i.isRTL(l.floating)),c=Zn(n),d=Gi(n),f=Mr(n)==="x",m=["left","top"].includes(c)?-1:1,g=o&&f?-1:1,C=typeof t=="function"?t(e):t;let{mainAxis:M,crossAxis:b,alignmentAxis:I}=typeof C=="number"?{mainAxis:C,crossAxis:0,alignmentAxis:null}:H({mainAxis:0,crossAxis:0,alignmentAxis:null},C);return d&&typeof I=="number"&&(b=d==="end"?I*-1:I),f?{x:b*g,y:M*m}:{x:M*m,y:b*g}}const g2=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:i}=t,l=await h2(t,e);return{x:n+l.x,y:i+l.y,data:l}}}};function m2(e){return e==="x"?"y":"x"}const p2=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:i,placement:l}=t,k=e,{mainAxis:o=!0,crossAxis:c=!1,limiter:d={fn:v=>{let{x:N,y:p}=v;return{x:N,y:p}}}}=k,f=lr(k,["mainAxis","crossAxis","limiter"]),m={x:n,y:i},g=await ca(t,f),C=Mr(Zn(l)),M=m2(C);let b=m[C],I=m[M];if(o){const v=C==="y"?"top":"left",N=C==="y"?"bottom":"right",p=b+g[v],w=b-g[N];b=Ro(p,b,w)}if(c){const v=M==="y"?"top":"left",N=M==="y"?"bottom":"right",p=I+g[v],w=I-g[N];I=Ro(p,I,w)}const L=d.fn(ve(H({},t),{[C]:b,[M]:I}));return ve(H({},L),{data:{x:L.x-n,y:L.y-i}})}}},y2=function(e){return e===void 0&&(e={}),{name:"inline",options:e,async fn(t){var n;const{placement:i,elements:l,rects:o,platform:c,strategy:d}=t,{padding:f=2,x:m,y:g}=e,C=oa(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({rect:o.reference,offsetParent:await(c.getOffsetParent==null?void 0:c.getOffsetParent(l.floating)),strategy:d}):o.reference),M=(n=await(c.getClientRects==null?void 0:c.getClientRects(l.reference)))!=null?n:[],b=Vo(f);function I(){if(M.length===2&&M[0].left>M[1].right&&m!=null&&g!=null){var k;return(k=M.find(v=>m>v.left-b.left&&m<v.right+b.right&&g>v.top-b.top&&g<v.bottom+b.bottom))!=null?k:C}if(M.length>=2){if(Mr(i)==="x"){const E=M[0],_=M[M.length-1],G=Zn(i)==="top",se=E.top,ce=_.bottom,fe=G?E.left:_.left,pe=G?E.right:_.right,K=pe-fe,Z=ce-se;return{top:se,bottom:ce,left:fe,right:pe,width:K,height:Z,x:fe,y:se}}const v=Zn(i)==="left",N=u0(...M.map(E=>E.right)),p=c0(...M.map(E=>E.left)),w=M.filter(E=>v?E.left===p:E.right===N),x=w[0].top,S=w[w.length-1].bottom,Q=p,z=N,O=z-Q,P=S-x;return{top:x,bottom:S,left:Q,right:z,width:O,height:P,x:Q,y:x}}return C}const L=await c.getElementRects({reference:{getBoundingClientRect:I},floating:l.floating,strategy:d});return o.reference.x!==L.reference.x||o.reference.y!==L.reference.y||o.reference.width!==L.reference.width||o.reference.height!==L.reference.height?{reset:{rects:L}}:{}}}};function m0(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function Yn(e){if(e==null)return window;if(!m0(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function ua(e){return Yn(e).getComputedStyle(e)}function Fn(e){return m0(e)?"":e?(e.nodeName||"").toLowerCase():""}function p0(){const e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(t=>t.brand+"/"+t.version).join(" "):navigator.userAgent}function Pn(e){return e instanceof Yn(e).HTMLElement}function mi(e){return e instanceof Yn(e).Element}function b2(e){return e instanceof Yn(e).Node}function Bo(e){if(typeof ShadowRoot=="undefined")return!1;const t=Yn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Cs(e){const{overflow:t,overflowX:n,overflowY:i}=ua(e);return/auto|scroll|overlay|hidden/.test(t+i+n)}function C2(e){return["table","td","th"].includes(Fn(e))}function y0(e){const t=/firefox/i.test(p0()),n=ua(e);return n.transform!=="none"||n.perspective!=="none"||n.contain==="paint"||["transform","perspective"].includes(n.willChange)||t&&n.willChange==="filter"||t&&(n.filter?n.filter!=="none":!1)}function b0(){return!/^((?!chrome|android).)*safari/i.test(p0())}const C0=Math.min,da=Math.max,Ms=Math.round;function _n(e,t,n){var i,l,o,c;t===void 0&&(t=!1),n===void 0&&(n=!1);const d=e.getBoundingClientRect();let f=1,m=1;t&&Pn(e)&&(f=e.offsetWidth>0&&Ms(d.width)/e.offsetWidth||1,m=e.offsetHeight>0&&Ms(d.height)/e.offsetHeight||1);const g=mi(e)?Yn(e):window,C=!b0()&&n,M=(d.left+(C&&(i=(l=g.visualViewport)==null?void 0:l.offsetLeft)!=null?i:0))/f,b=(d.top+(C&&(o=(c=g.visualViewport)==null?void 0:c.offsetTop)!=null?o:0))/m,I=d.width/f,L=d.height/m;return{width:I,height:L,top:b,right:M+I,bottom:b+L,left:M,x:M,y:b}}function pi(e){return((b2(e)?e.ownerDocument:e.document)||window.document).documentElement}function Is(e){return mi(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function M0(e){return _n(pi(e)).left+Is(e).scrollLeft}function M2(e){const t=_n(e);return Ms(t.width)!==e.offsetWidth||Ms(t.height)!==e.offsetHeight}function I2(e,t,n){const i=Pn(t),l=pi(t),o=_n(e,i&&M2(t),n==="fixed");let c={scrollLeft:0,scrollTop:0};const d={x:0,y:0};if(i||!i&&n!=="fixed")if((Fn(t)!=="body"||Cs(l))&&(c=Is(t)),Pn(t)){const f=_n(t,!0);d.x=f.x+t.clientLeft,d.y=f.y+t.clientTop}else l&&(d.x=M0(l));return{x:o.left+c.scrollLeft-d.x,y:o.top+c.scrollTop-d.y,width:o.width,height:o.height}}function I0(e){return Fn(e)==="html"?e:e.assignedSlot||e.parentNode||(Bo(e)?e.host:null)||pi(e)}function w0(e){return!Pn(e)||getComputedStyle(e).position==="fixed"?null:e.offsetParent}function w2(e){let t=I0(e);for(Bo(t)&&(t=t.host);Pn(t)&&!["html","body"].includes(Fn(t));){if(y0(t))return t;t=t.parentNode}return null}function Ho(e){const t=Yn(e);let n=w0(e);for(;n&&C2(n)&&getComputedStyle(n).position==="static";)n=w0(n);return n&&(Fn(n)==="html"||Fn(n)==="body"&&getComputedStyle(n).position==="static"&&!y0(n))?t:n||w2(e)||t}function N0(e){if(Pn(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=_n(e);return{width:t.width,height:t.height}}function N2(e){let{rect:t,offsetParent:n,strategy:i}=e;const l=Pn(n),o=pi(n);if(n===o)return t;let c={scrollLeft:0,scrollTop:0};const d={x:0,y:0};if((l||!l&&i!=="fixed")&&((Fn(n)!=="body"||Cs(o))&&(c=Is(n)),Pn(n))){const f=_n(n,!0);d.x=f.x+n.clientLeft,d.y=f.y+n.clientTop}return ve(H({},t),{x:t.x-c.scrollLeft+d.x,y:t.y-c.scrollTop+d.y})}function v2(e,t){const n=Yn(e),i=pi(e),l=n.visualViewport;let o=i.clientWidth,c=i.clientHeight,d=0,f=0;if(l){o=l.width,c=l.height;const m=b0();(m||!m&&t==="fixed")&&(d=l.offsetLeft,f=l.offsetTop)}return{width:o,height:c,x:d,y:f}}function L2(e){var t;const n=pi(e),i=Is(e),l=(t=e.ownerDocument)==null?void 0:t.body,o=da(n.scrollWidth,n.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),c=da(n.scrollHeight,n.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0);let d=-i.scrollLeft+M0(e);const f=-i.scrollTop;return ua(l||n).direction==="rtl"&&(d+=da(n.clientWidth,l?l.clientWidth:0)-o),{width:o,height:c,x:d,y:f}}function v0(e){const t=I0(e);return["html","body","#document"].includes(Fn(t))?e.ownerDocument.body:Pn(t)&&Cs(t)?t:v0(t)}function ws(e,t){var n;t===void 0&&(t=[]);const i=v0(e),l=i===((n=e.ownerDocument)==null?void 0:n.body),o=Yn(i),c=l?[o].concat(o.visualViewport||[],Cs(i)?i:[]):i,d=t.concat(c);return l?d:d.concat(ws(c))}function k2(e,t){const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Bo(n)){let i=t;do{if(i&&e===i)return!0;i=i.parentNode||i.host}while(i)}return!1}function T2(e,t){const n=_n(e,!1,t==="fixed"),i=n.top+e.clientTop,l=n.left+e.clientLeft;return{top:i,left:l,x:l,y:i,right:l+e.clientWidth,bottom:i+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}function L0(e,t,n){return t==="viewport"?oa(v2(e,n)):mi(t)?T2(t,n):oa(L2(pi(e)))}function x2(e){const t=ws(e),i=["absolute","fixed"].includes(ua(e).position)&&Pn(e)?Ho(e):e;return mi(i)?t.filter(l=>mi(l)&&k2(l,i)&&Fn(l)!=="body"):[]}function S2(e){let{element:t,boundary:n,rootBoundary:i,strategy:l}=e;const c=[...n==="clippingAncestors"?x2(t):[].concat(n),i],d=c[0],f=c.reduce((m,g)=>{const C=L0(t,g,l);return m.top=da(C.top,m.top),m.right=C0(C.right,m.right),m.bottom=C0(C.bottom,m.bottom),m.left=da(C.left,m.left),m},L0(t,d,l));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}const D2={getClippingRect:S2,convertOffsetParentRelativeRectToViewportRelativeRect:N2,isElement:mi,getDimensions:N0,getOffsetParent:Ho,getDocumentElement:pi,getElementRects:e=>{let{reference:t,floating:n,strategy:i}=e;return{reference:I2(t,Ho(n),i),floating:ve(H({},N0(n)),{x:0,y:0})}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>ua(e).direction==="rtl"};function j2(e,t,n,i){i===void 0&&(i={});const{ancestorScroll:l=!0,ancestorResize:o=!0,elementResize:c=!0,animationFrame:d=!1}=i,f=l&&!d,m=o&&!d,g=f||m?[...mi(e)?ws(e):[],...ws(t)]:[];g.forEach(L=>{f&&L.addEventListener("scroll",n,{passive:!0}),m&&L.addEventListener("resize",n)});let C=null;c&&(C=new ResizeObserver(n),mi(e)&&!d&&C.observe(e),C.observe(t));let M,b=d?_n(e):null;d&&I();function I(){const L=_n(e);b&&(L.x!==b.x||L.y!==b.y||L.width!==b.width||L.height!==b.height)&&n(),b=L,M=requestAnimationFrame(I)}return c||n(),()=>{var L;g.forEach(k=>{f&&k.removeEventListener("scroll",n),m&&k.removeEventListener("resize",n)}),(L=C)==null||L.disconnect(),C=null,d&&cancelAnimationFrame(M)}}const z2=(e,t,n)=>n2(e,t,H({platform:D2},n));var P2=()=>({getElementRects:({reference:i,floating:l})=>{const o=i.getBoundingClientRect(),c=l.getBoundingClientRect();return{reference:{width:o.width,height:o.height,x:o.x,y:o.y},floating:{width:c.width,height:c.height,x:c.x,y:c.y}}},getDimensions:i=>{const{width:l,height:o}=i.getBoundingClientRect();return{width:l,height:o}},getClippingRect:({})=>{const{width:i,height:l}=document.fullscreenElement.getBoundingClientRect();return{width:i,height:l,x:0,y:0}}}),E2=(e,t,n,i,l,o)=>{const c=a.ref(!1),d=()=>{var J,V;const Z=I((J=n.value)==null?void 0:J.$el);return(V=document.fullscreenElement)==null?void 0:V.contains(Z)},f=["dark","light"],m=a.computed(()=>{const Z=e.theme.split(/\s+/);Z.sort((X,Y)=>Number(f.includes(Y))-Number(f.includes(X)));const J=Z,V=Z.filter(X=>!f.includes(X));return{systemThemes:J,customThemes:V}}),g=()=>!d()&&e.autoVisibility,C=()=>d()||e.autoPlacement,M=()=>{var Y,ne,le,ge;const Z=I((Y=n.value)==null?void 0:Y.$el),J=I((ne=i.value)==null?void 0:ne.$el),V=e.arrow?I((le=l.value)==null?void 0:le.$el):null,X=I((ge=o.value)==null?void 0:ge.$el);return{elReference:Z,elContent:J,elArrow:V,root:X}},b=Z=>{const J=[g2(e.offset),p2({padding:e.padding})],V={placement:e.placement,middleware:J};if(e.arrow&&J.push(r2({element:Z})),C()?J.push(c2()):(J.unshift(y2()),J.push(d2())),g()&&V.middleware.push(f2()),d()){const{getElementRects:X,getDimensions:Y,getClippingRect:ne}=P2();Object.assign(V,{platform:{getElementRects:X,getDimensions:Y,getClippingRect:ne}})}return V},I=Z=>Z instanceof HTMLElement?Z:Z instanceof Text?I(Z.nextElementSibling):null,L=m.value.customThemes.join(" "),k=m.value.customThemes.reduce((Z,J)=>H({[`data-${J}-theme`]:!0},Z),{}),v=`${L}`;let N=null;const p=Z=>{const J=window.devicePixelRatio||1;return Math.round(Z*J)/J||0},w=(Z,J,V,X)=>{var ne;Object.assign(Z.style,{left:"0",top:"0",transform:`translate3d(${p(J)}px,${p(V)}px,0)`});const Y=g()?(ne=X.hide)==null?void 0:ne.referenceHidden:!1;Object.assign(Z.style,{visibility:Y?"hidden":"visible"})},x=(Z,J,V)=>{if(e.arrow){const{x:X,y:Y}=V.arrow;Z.setAttribute("data-arrow",J);const ne={left:"",top:"",bottom:"",right:""};Object.assign(Z.style,ne);const le={top:"bottom",right:"left",bottom:"top",left:"right"}[J];Object.assign(Z.style,{left:X!==null?`${X}px`:"",top:Y!==null?`${Y}px`:"",[le]:"-4px"})}},S=()=>{const{elReference:Z,elContent:J}=M();N=j2(Z,J,()=>{Q()})},Q=()=>{const{elReference:Z,elContent:J,elArrow:V}=M();if(!Z)return;const X=b(V);z2(Z,J,X).then(({x:Y,y:ne,placement:le,middlewareData:ge})=>{const U=J.className;J.className=`${U.replace(v,"")} ${v}`.replace(/\s+/mg," ").replace(/^\s+|\s+$/g,""),Object.keys(k).forEach(F=>{J.setAttribute(F,k[F])});const de=le.split("-")[0];let he=de;["left","right","top","bottom"].includes(de)||(he="top"),w(J,Y,ne,ge),x(V,he,ge)})},z=()=>{c.value=!0};let O,P=!1;const E=()=>{O=setTimeout(()=>{c.value=!1},100)},_=()=>{var J;const Z=I((J=i.value)==null?void 0:J.$el);Z.style.setProperty("display","block"),Z.style.setProperty("z-index",`${e.zIndex?e.zIndex:pn.getModalNextIndex()}`),Q(),t.emit("afterShow",{isSHow:!0})},G=()=>{var J;I((J=i.value)==null?void 0:J.$el).style.setProperty("display","none"),t.emit("afterHidden",{isSHow:!1})},se=()=>{c.value?E():z()},ce=()=>{se()},fe=()=>{e.trigger==="hover"&&O&&(P=!0,clearTimeout(O),O=void 0)},pe=()=>{P&&(E(),P=!1)},K=()=>{var J;return(J={hover:{content:[["mouseenter",fe],["mouseleave",pe]],reference:[["mouseenter",z],["mouseleave",E],["focus",z],["blur",E]]},click:[["click",ce]],manual:[[]]}[e.trigger])!=null?J:[]};return a.watch(c,Z=>{Z?_():G()}),{showPopover:z,hidePopover:E,resolveTriggerEvents:K,updatePopover:Q,triggerPopover:se,resolvePopElements:M,isElementFullScreen:d,resolveTargetElement:I,createPopInstance:S,localIsShow:c,cleanup:N}};let yi=null,fa=null,Ns=null;var O2=(e,t="#")=>{const n=(o=!1,c)=>{let d=null;const f=M=>{d===null&&M()},m=()=>{if(/^parent$/i.test(e.boundary)){d=`${t}${yi}`;const{parentNode:M}=c||{};M!=null&&M.parentNode&&(M.parentNode.setAttribute("data-pnode-id",Ns),d=`[data-pnode-id=${Ns}]`)}},g=()=>{o&&(d=`[data-fllsrn-id=${fa}]`)},C=()=>{if(!/^body$/i.test(e.boundary)&&typeof e.boundary=="string"){if(!i(e.boundary)){console.error("props.boundary is not available selector"),d="body";return}d=e.boundary}};return f(m),f(C),f(g),f(()=>{d=typeof e.boundary=="string"?e.boundary:`${t}${yi}`}),d},i=o=>document.querySelector(o)instanceof HTMLElement;if(yi===null||!i(`#${yi}`)){yi=`id_${zi.v4()}`;const o=document.createElement("div");o.setAttribute("id",yi),o.setAttribute("data-popper-id",yi),document.body.append(o)}fa===null&&(fa=`id_${zi.v4()}`),Ns===null&&(Ns=`id_${zi.v4()}`);const l=()=>{var o;if(document.fullscreenElement===null){const c=`[data-fllsrn-id=${fa}]`;((o=document.querySelectorAll(c))!=null?o:[]).forEach(d=>{d.removeAttribute("data-fllsrn-id")})}else document.fullscreenElement.setAttribute("data-fllsrn-id",fa)};return{popContainerId:yi,prefixId:n(),getPrefixId:n,resetFullscreenElementTag:l}},J2=a.defineComponent({name:"Popover2",components:{Content:s0,Arrow:a0,Root:l0},directives:{clickoutside:sa},props:e2,emits:Xg,setup(e,t){const{content:n,theme:i,disableTeleport:l}=e,o=a.ref(),c=a.ref(),d=a.ref(),f=a.ref(),m=a.ref(!1);let g=null;const{localIsShow:C,showPopover:M,hidePopover:b,resolveTriggerEvents:I,updatePopover:L,resolvePopElements:k,isElementFullScreen:v,cleanup:N,createPopInstance:p}=E2(e,t,o,c,d,f),w=()=>{M()},x=()=>{b()},S=()=>{p(),e.always?M():Q()};!e.always&&!e.disabled&&a.watch(()=>e.isShow,()=>{e.isShow?M():b()},{immediate:!0}),a.watch(()=>[e.disabled],K=>{K[0]?S():se()});const Q=()=>{const{elReference:K,elContent:Z}=k();if(g=I(),Array.isArray(g))z(K,g);else{const{content:J,reference:V}=g;z(K,V),z(Z,J)}},z=(K,Z)=>{Z.forEach(([J,V])=>{K.addEventListener(J,V)})},O=()=>{if(g!=null&&g.length){const{elReference:K}=k();K&&g.forEach(([Z,J])=>{K.removeEventListener(Z,J)}),g=null}},P=()=>{const{elReference:K,root:Z}=k();G.value=E(m.value,Z||K)},{getPrefixId:E,resetFullscreenElementTag:_}=O2(e,"#"),G=a.ref();P();const se=()=>{typeof N=="function"&&N(),O()},ce=()=>{m.value=v(),_(),P(),L()};a.onMounted(()=>{e.disabled||(S(),P(),document.body.addEventListener("fullscreenchange",ce))}),a.onUnmounted(()=>{se(),document.body.removeEventListener("fullscreenchange",ce)}),t.expose({show:w,hide:x});const fe=K=>{t.emit(Cr.CLICK_OUTSIDE,{isShow:C.value,event:K}),!(e.disableOutsideClick||e.always||e.disabled||e.trigger==="manual")&&C.value&&x()},pe=a.computed(()=>(m.value||!l)&&typeof G.value=="string");return{boundary:G,arrow:e.arrow,refReference:o,refContent:c,refArrow:d,content:n,theme:i,transBoundary:pe,handleClickOutside:fe}},render(){return a.createVNode(l0,{ref:"refRoot"},{default:()=>[a.createVNode(t2,{ref:"refReference"},{default:()=>{var e,t,n;return[(n=(t=(e=this.$slots).default)==null?void 0:t.call(e))!=null?n:a.createVNode("span",null,null)]}}),a.createVNode(a.Teleport,{to:this.boundary,disabled:!this.transBoundary},{default:()=>[a.withDirectives(a.createVNode(s0,{ref:"refContent","data-theme":this.theme,width:this.width,height:this.height},{default:()=>{var e,t,n;return[(n=(t=(e=this.$slots).content)==null?void 0:t.call(e))!=null?n:this.content]},arrow:()=>this.arrow?a.createVNode(a0,{ref:"refArrow"},{default:()=>{var e,t;return[(t=(e=this.$slots).arrow)==null?void 0:t.call(e)]}}):""}),[[a.resolveDirective("clickoutside"),this.handleClickOutside]])]})]})}});const ha=Ge(J2),A2=(e,{attrs:t,slots:n})=>{const{width:i,percent:l,strokeWidth:o,color:c,strokeLinecap:d,theme:f,type:m,bgColor:g,titleStyle:C}=t,M=o||6,b=i||126,I={width:typeof b=="number"?`${b}px`:b,height:typeof b=="number"?`${b}px`:b,fontSize:`${b*.15+6}px`},L=50-M/2,k=m==="dashboard",v=Math.PI*2*L,N=k&&.75||1,p=`${-1*v*(1-N)/2}px`,w="stroke-dasharray 0.6s ease 0s, stroke 0.6s ease",x={strokeDasharray:`${v*N}px, ${v}px`,strokeDashoffset:p},S={strokeDasharray:`${v*N*(l/100)}px, ${v}px`,strokeDashoffset:p,transition:w},Q=`
|
52
|
+
*/function Ag(e,t){if(!Xd.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,i=n in document;if(!i){var l=document.createElement("div");l.setAttribute(n,"return;"),i=typeof l[n]=="function"}return!i&&Kd&&e==="wheel"&&(i=document.implementation.hasFeature("Events.wheel","3.0")),i}var Qg=Ag,Vg=Eg,Rg=Qg,qd=10,e0=40,t0=800;function n0(e){var t=0,n=0,i=0,l=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),i=t*qd,l=n*qd,"deltaY"in e&&(l=e.deltaY),"deltaX"in e&&(i=e.deltaX),(i||l)&&e.deltaMode&&(e.deltaMode==1?(i*=e0,l*=e0):(i*=t0,l*=t0)),i&&!t&&(t=i<1?-1:1),l&&!n&&(n=l<1?-1:1),{spinX:t,spinY:n,pixelX:i,pixelY:l}}n0.getEventType=function(){return Vg.firefox()?"DOMMouseScroll":Rg("wheel")?"wheel":"mousewheel"};var Wg=n0,Bg=Wg;const Hg=typeof navigator!="undefined"&&navigator.userAgent.toLowerCase().indexOf("firefox")>-1,Gg=function(e,t){e!=null&&e.addEventListener&&e.addEventListener(Hg?"DOMMouseScroll":"mousewheel",function(n){const i=Bg(n);t==null||t.apply(this,[n,i])})},Zg={beforeMount(e,t){console.error(e,t),Gg(e,t.value)}},Yg=e=>typeof Element=="undefined"?!1:e instanceof Element,gi=new Map;let i0;document.addEventListener("mousedown",e=>i0=e),document.addEventListener("mouseup",e=>{for(const t of gi.values())for(const{documentHandler:n}of t)n(e,i0)});function r0(e,t){let n=[];return Array.isArray(t.arg)?n=t.arg:Yg(t.arg)&&n.push(t.arg),function(i,l){const{popperRef:o}=t.instance,c=i.target,d=l==null?void 0:l.target,f=!t||!t.instance,m=!c||!d,g=e.contains(c)||e.contains(d),C=e===c,M=n.length&&n.some(I=>I==null?void 0:I.contains(c))||n.length&&n.includes(d),b=o&&(o.contains(c)||o.contains(d));f||m||g||C||M||b||t.value(i,l)}}const sa={beforeMount(e,t){gi.has(e)||gi.set(e,[]),gi.get(e).push({documentHandler:r0(e,t),bindingFn:t.value})},updated(e,t){gi.has(e)||gi.set(e,[]);const n=gi.get(e),i=n.findIndex(o=>o.bindingFn===t.oldValue),l={documentHandler:r0(e,t),bindingFn:t.value};i>=0?n.splice(i,1,l):n.push(l)},unmounted(e){gi.delete(e)}},br=new Map,Oo={beforeMount(e,t){const n=Fg();typeof t.value=="object"?Object.assign(n,t.value):n.content=t.value;const{disabled:i,trigger:l,content:o,arrow:c,theme:d,extCls:f}=n;if(i)return;const m=_g(o,c,d==="light",f);if(l==="hover"){let g=null;e.addEventListener("mouseenter",()=>{Jo(e),clearTimeout(g)}),m.addEventListener("mouseenter",()=>{clearTimeout(g)}),e.addEventListener("mouseleave",()=>{g=setTimeout(()=>{la(e)},100)}),e.addEventListener("click",()=>{la(e)}),m.addEventListener("mouseleave",()=>{g=setTimeout(()=>{la(e)},100)})}else l==="click"&&document.body.addEventListener("click",g=>{e.contains(g.target)&&!m.hasAttribute("data-show")?Jo(e):m.hasAttribute("data-show")&&la(e)});br.set(e,{opts:n,popper:m,popperInstance:null})},unmounted(e){la(e)}};function Fg(){return{arrow:!0,disabled:!1,trigger:"hover",theme:"dark",content:"",showOnInit:!1,placement:"top",distance:8,extCls:"",onShow:()=>{},onHide:()=>{}}}function _g(e,t,n,i){const l=pn.getPopperIndex(),o=document.createElement("div");if(o.className=`bk-popper ${n?"light":"dark"} ${i}`,o.innerText=e,o.style.zIndex=String(l),t){const c=Ug();o.appendChild(c)}return o}function Ug(){const e=document.createElement("div");return e.className="bk-popper-arrow",e.setAttribute("data-popper-arrow",""),e}function $g(e,t){const{placement:n,distance:i,showOnInit:l}=br.get(e).opts,o=dd(e,t,{placement:n,modifiers:[{name:"offset",options:{offset:[0,i]}}]});return l&&Jo(e),o}function Jo(e){const{popper:t,opts:{onShow:n}}=br.get(e);document.body.appendChild(t);const i=$g(e,t);n(),t.setAttribute("data-show",""),i.setOptions(l=>ve(H({},l),{modifiers:[...l.modifiers,{name:"eventListeners",enabled:!0}]})),i.forceUpdate(),br.get(e).popperInstance=i}function la(e){if(!br.get(e))return;const{popper:t,popperInstance:n,opts:{onHide:i}}=br.get(e);t&&document.body.contains(t)&&(t.removeAttribute("data-show"),n==null||n.destroy(),document.body.removeChild(t),i())}var a0=a.defineComponent({name:"PopArrow",render(){const e=Be("pop2-arrow");return a.createVNode("div",{class:e},null)}});const Ao=(...e)=>!0;let Cr;(function(e){e.SHOW="show",e.HIDE="hide",e.CLICK_OUTSIDE="clickoutside"})(Cr||(Cr={}));const Xg={[Cr.SHOW]:Ao,[Cr.HIDE]:Ao,[Cr.CLICK_OUTSIDE]:Ao};var s0=a.defineComponent({name:"PopContent",props:{width:h.oneOfType([h.string,h.number]).def("auto"),height:h.oneOfType([h.string,h.number]).def("auto")},setup(e){const t=i=>/^\d+\.?\d*$/.test(`${i}`)?`${i}px`:i;return{style:a.computed(()=>({width:t(e.width),height:t(e.height)}))}},render(){var t,n,i,l,o,c;const e=[Be("popover2"),Be("pop2-content")];return a.createVNode("div",{class:e,tabindex:"-1",style:this.style},[(i=(n=(t=this.$slots).default)==null?void 0:n.call(t))!=null?i:"",(c=(o=(l=this.$slots).arrow)==null?void 0:o.call(l))!=null?c:""])}});const Kg=["auto","auto-start","auto-end","top","top-start","top-end","bottom","bottom-start","bottom-end","right","right-start","right-end","left","left-start","left-end"],qg={onAfterHidden:Function,onAfterShow:Function},e2=H({isShow:h.bool.def(!1),always:h.bool.def(!1),disabled:h.bool.def(!1),width:h.oneOfType([h.string,h.number]).def("auto"),height:h.oneOfType([h.string,h.number]).def("auto"),content:h.oneOfType([h.string,h.number]).def(""),placement:h.placement(Kg).def("top"),theme:h.string.def("dark"),trigger:h.string.def("hover"),arrow:h.bool.def(!0),padding:h.number.def(5),offset:h.number.def(6),boundary:h.string.def(void 0),zIndex:h.number.def(void 0),disableTeleport:h.bool.def(!1),autoPlacement:h.bool.def(!1),autoVisibility:h.bool.def(!0),disableOutsideClick:h.bool.def(!1)},qg);var t2=a.defineComponent({name:"PopReference",render(){var e,t,n;return(n=(t=(e=this.$slots).default)==null?void 0:t.call(e))!=null?n:""}}),l0=a.defineComponent({props:{class:h.string.def("")},render(){var e,t;return a.createVNode(a.Fragment,null,[(t=(e=this.$slots).default)==null?void 0:t.call(e)])}});function Zn(e){return e.split("-")[0]}function Gi(e){return e.split("-")[1]}function Mr(e){return["top","bottom"].includes(Zn(e))?"x":"y"}function Qo(e){return e==="y"?"height":"width"}function o0(e,t,n){let{reference:i,floating:l}=e;const o=i.x+i.width/2-l.width/2,c=i.y+i.height/2-l.height/2,d=Mr(t),f=Qo(d),m=i[f]/2-l[f]/2,g=Zn(t),C=d==="x";let M;switch(g){case"top":M={x:o,y:i.y-l.height};break;case"bottom":M={x:o,y:i.y+i.height};break;case"right":M={x:i.x+i.width,y:c};break;case"left":M={x:i.x-l.width,y:c};break;default:M={x:i.x,y:i.y}}switch(Gi(t)){case"start":M[d]-=m*(n&&C?-1:1);break;case"end":M[d]+=m*(n&&C?-1:1);break}return M}const n2=async(e,t,n)=>{const{placement:i="bottom",strategy:l="absolute",middleware:o=[],platform:c}=n,d=await(c.isRTL==null?void 0:c.isRTL(t));let f=await c.getElementRects({reference:e,floating:t,strategy:l}),{x:m,y:g}=o0(f,i,d),C=i,M={};for(let b=0;b<o.length;b++){const{name:I,fn:L}=o[b],{x:k,y:v,data:N,reset:p}=await L({x:m,y:g,initialPlacement:i,placement:C,strategy:l,middlewareData:M,rects:f,platform:c,elements:{reference:e,floating:t}});if(m=k!=null?k:m,g=v!=null?v:g,M=ve(H({},M),{[I]:H(H({},M[I]),N)}),p){typeof p=="object"&&(p.placement&&(C=p.placement),p.rects&&(f=p.rects===!0?await c.getElementRects({reference:e,floating:t,strategy:l}):p.rects),{x:m,y:g}=o0(f,C,d)),b=-1;continue}}return{x:m,y:g,placement:C,strategy:l,middlewareData:M}};function i2(e){return H({top:0,right:0,bottom:0,left:0},e)}function Vo(e){return typeof e!="number"?i2(e):{top:e,right:e,bottom:e,left:e}}function oa(e){return ve(H({},e),{top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height})}async function ca(e,t){var n;t===void 0&&(t={});const{x:i,y:l,platform:o,rects:c,elements:d,strategy:f}=e,{boundary:m="clippingAncestors",rootBoundary:g="viewport",elementContext:C="floating",altBoundary:M=!1,padding:b=0}=t,I=Vo(b),k=d[M?C==="floating"?"reference":"floating":C],v=oa(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(k)))==null||n?k:k.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(d.floating)),boundary:m,rootBoundary:g,strategy:f})),N=oa(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({rect:C==="floating"?ve(H({},c.floating),{x:i,y:l}):c.reference,offsetParent:await(o.getOffsetParent==null?void 0:o.getOffsetParent(d.floating)),strategy:f}):c[C]);return{top:v.top-N.top+I.top,bottom:N.bottom-v.bottom+I.bottom,left:v.left-N.left+I.left,right:N.right-v.right+I.right}}const c0=Math.min,u0=Math.max;function Ro(e,t,n){return u0(e,c0(t,n))}const r2=e=>({name:"arrow",options:e,async fn(t){const{element:n,padding:i=0}=e!=null?e:{},{x:l,y:o,placement:c,rects:d,platform:f}=t;if(n==null)return{};const m=Vo(i),g={x:l,y:o},C=Mr(c),M=Gi(c),b=Qo(C),I=await f.getDimensions(n),L=C==="y"?"top":"left",k=C==="y"?"bottom":"right",v=d.reference[b]+d.reference[C]-g[C]-d.floating[b],N=g[C]-d.reference[C],p=await(f.getOffsetParent==null?void 0:f.getOffsetParent(n));let w=p?C==="y"?p.clientHeight||0:p.clientWidth||0:0;w===0&&(w=d.floating[b]);const x=v/2-N/2,S=m[L],Q=w-I[b]-m[k],z=w/2-I[b]/2+x,O=Ro(S,z,Q),_=(M==="start"?m[L]:m[k])>0&&z!==O&&d.reference[b]<=d.floating[b]?z<S?S-z:Q-z:0;return{[C]:g[C]-_,data:{[C]:O,centerOffset:z-O}}}}),a2={left:"right",right:"left",bottom:"top",top:"bottom"};function bs(e){return e.replace(/left|right|bottom|top/g,t=>a2[t])}function d0(e,t,n){n===void 0&&(n=!1);const i=Gi(e),l=Mr(e),o=Qo(l);let c=l==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(c=bs(c)),{main:c,cross:bs(c)}}const s2={start:"end",end:"start"};function Wo(e){return e.replace(/start|end/g,t=>s2[t])}const f0=["top","right","bottom","left"],l2=f0.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);function o2(e,t,n){return(e?[...n.filter(l=>Gi(l)===e),...n.filter(l=>Gi(l)!==e)]:n.filter(l=>Zn(l)===l)).filter(l=>e?Gi(l)===e||(t?Wo(l)!==l:!1):!0)}const c2=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,i,l,o,c;const{x:d,y:f,rects:m,middlewareData:g,placement:C,platform:M,elements:b}=t,se=e,{alignment:I=null,allowedPlacements:L=l2,autoAlignment:k=!0}=se,v=lr(se,["alignment","allowedPlacements","autoAlignment"]),N=o2(I,k,L),p=await ca(t,v),w=(n=(i=g.autoPlacement)==null?void 0:i.index)!=null?n:0,x=N[w];if(x==null)return{};const{main:S,cross:Q}=d0(x,m,await(M.isRTL==null?void 0:M.isRTL(b.floating)));if(C!==x)return{x:d,y:f,reset:{placement:N[0]}};const z=[p[Zn(x)],p[S],p[Q]],O=[...(l=(o=g.autoPlacement)==null?void 0:o.overflows)!=null?l:[],{placement:x,overflows:z}],P=N[w+1];if(P)return{data:{index:w+1,overflows:O},reset:{placement:P}};const E=O.slice().sort((ce,fe)=>ce.overflows[0]-fe.overflows[0]),_=(c=E.find(ce=>{let{overflows:fe}=ce;return fe.every(pe=>pe<=0)}))==null?void 0:c.placement,G=_!=null?_:E[0].placement;return G!==C?{data:{index:w+1,overflows:O},reset:{placement:G}}:{}}}};function u2(e){const t=bs(e);return[Wo(e),t,Wo(t)]}const d2=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:i,middlewareData:l,rects:o,initialPlacement:c,platform:d,elements:f}=t,O=e,{mainAxis:m=!0,crossAxis:g=!0,fallbackPlacements:C,fallbackStrategy:M="bestFit",flipAlignment:b=!0}=O,I=lr(O,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","flipAlignment"]),L=Zn(i),v=C||(L===c||!b?[bs(c)]:u2(c)),N=[c,...v],p=await ca(t,I),w=[];let x=((n=l.flip)==null?void 0:n.overflows)||[];if(m&&w.push(p[L]),g){const{main:P,cross:E}=d0(i,o,await(d.isRTL==null?void 0:d.isRTL(f.floating)));w.push(p[P],p[E])}if(x=[...x,{placement:i,overflows:w}],!w.every(P=>P<=0)){var S,Q;const P=((S=(Q=l.flip)==null?void 0:Q.index)!=null?S:0)+1,E=N[P];if(E)return{data:{index:P,overflows:x},reset:{placement:E}};let _="bottom";switch(M){case"bestFit":{var z;const G=(z=x.map(se=>[se,se.overflows.filter(ce=>ce>0).reduce((ce,fe)=>ce+fe,0)]).sort((se,ce)=>se[1]-ce[1])[0])==null?void 0:z[0].placement;G&&(_=G);break}case"initialPlacement":_=c;break}if(i!==_)return{reset:{placement:_}}}return{}}}};function h0(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function g0(e){return f0.some(t=>e[t]>=0)}const f2=function(e){let i=e===void 0?{}:e,{strategy:t="referenceHidden"}=i,n=lr(i,["strategy"]);return{name:"hide",async fn(l){const{rects:o}=l;switch(t){case"referenceHidden":{const c=await ca(l,ve(H({},n),{elementContext:"reference"})),d=h0(c,o.reference);return{data:{referenceHiddenOffsets:d,referenceHidden:g0(d)}}}case"escaped":{const c=await ca(l,ve(H({},n),{altBoundary:!0})),d=h0(c,o.floating);return{data:{escapedOffsets:d,escaped:g0(d)}}}default:return{}}}}};async function h2(e,t){const{placement:n,platform:i,elements:l}=e,o=await(i.isRTL==null?void 0:i.isRTL(l.floating)),c=Zn(n),d=Gi(n),f=Mr(n)==="x",m=["left","top"].includes(c)?-1:1,g=o&&f?-1:1,C=typeof t=="function"?t(e):t;let{mainAxis:M,crossAxis:b,alignmentAxis:I}=typeof C=="number"?{mainAxis:C,crossAxis:0,alignmentAxis:null}:H({mainAxis:0,crossAxis:0,alignmentAxis:null},C);return d&&typeof I=="number"&&(b=d==="end"?I*-1:I),f?{x:b*g,y:M*m}:{x:M*m,y:b*g}}const g2=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:i}=t,l=await h2(t,e);return{x:n+l.x,y:i+l.y,data:l}}}};function m2(e){return e==="x"?"y":"x"}const p2=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:i,placement:l}=t,k=e,{mainAxis:o=!0,crossAxis:c=!1,limiter:d={fn:v=>{let{x:N,y:p}=v;return{x:N,y:p}}}}=k,f=lr(k,["mainAxis","crossAxis","limiter"]),m={x:n,y:i},g=await ca(t,f),C=Mr(Zn(l)),M=m2(C);let b=m[C],I=m[M];if(o){const v=C==="y"?"top":"left",N=C==="y"?"bottom":"right",p=b+g[v],w=b-g[N];b=Ro(p,b,w)}if(c){const v=M==="y"?"top":"left",N=M==="y"?"bottom":"right",p=I+g[v],w=I-g[N];I=Ro(p,I,w)}const L=d.fn(ve(H({},t),{[C]:b,[M]:I}));return ve(H({},L),{data:{x:L.x-n,y:L.y-i}})}}},y2=function(e){return e===void 0&&(e={}),{name:"inline",options:e,async fn(t){var n;const{placement:i,elements:l,rects:o,platform:c,strategy:d}=t,{padding:f=2,x:m,y:g}=e,C=oa(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({rect:o.reference,offsetParent:await(c.getOffsetParent==null?void 0:c.getOffsetParent(l.floating)),strategy:d}):o.reference),M=(n=await(c.getClientRects==null?void 0:c.getClientRects(l.reference)))!=null?n:[],b=Vo(f);function I(){if(M.length===2&&M[0].left>M[1].right&&m!=null&&g!=null){var k;return(k=M.find(v=>m>v.left-b.left&&m<v.right+b.right&&g>v.top-b.top&&g<v.bottom+b.bottom))!=null?k:C}if(M.length>=2){if(Mr(i)==="x"){const E=M[0],_=M[M.length-1],G=Zn(i)==="top",se=E.top,ce=_.bottom,fe=G?E.left:_.left,pe=G?E.right:_.right,K=pe-fe,Z=ce-se;return{top:se,bottom:ce,left:fe,right:pe,width:K,height:Z,x:fe,y:se}}const v=Zn(i)==="left",N=u0(...M.map(E=>E.right)),p=c0(...M.map(E=>E.left)),w=M.filter(E=>v?E.left===p:E.right===N),x=w[0].top,S=w[w.length-1].bottom,Q=p,z=N,O=z-Q,P=S-x;return{top:x,bottom:S,left:Q,right:z,width:O,height:P,x:Q,y:x}}return C}const L=await c.getElementRects({reference:{getBoundingClientRect:I},floating:l.floating,strategy:d});return o.reference.x!==L.reference.x||o.reference.y!==L.reference.y||o.reference.width!==L.reference.width||o.reference.height!==L.reference.height?{reset:{rects:L}}:{}}}};function m0(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function Yn(e){if(e==null)return window;if(!m0(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function ua(e){return Yn(e).getComputedStyle(e)}function Fn(e){return m0(e)?"":e?(e.nodeName||"").toLowerCase():""}function p0(){const e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(t=>t.brand+"/"+t.version).join(" "):navigator.userAgent}function Pn(e){return e instanceof Yn(e).HTMLElement}function mi(e){return e instanceof Yn(e).Element}function b2(e){return e instanceof Yn(e).Node}function Bo(e){if(typeof ShadowRoot=="undefined")return!1;const t=Yn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Cs(e){const{overflow:t,overflowX:n,overflowY:i}=ua(e);return/auto|scroll|overlay|hidden/.test(t+i+n)}function C2(e){return["table","td","th"].includes(Fn(e))}function y0(e){const t=/firefox/i.test(p0()),n=ua(e);return n.transform!=="none"||n.perspective!=="none"||n.contain==="paint"||["transform","perspective"].includes(n.willChange)||t&&n.willChange==="filter"||t&&(n.filter?n.filter!=="none":!1)}function b0(){return!/^((?!chrome|android).)*safari/i.test(p0())}const C0=Math.min,da=Math.max,Ms=Math.round;function _n(e,t,n){var i,l,o,c;t===void 0&&(t=!1),n===void 0&&(n=!1);const d=e.getBoundingClientRect();let f=1,m=1;t&&Pn(e)&&(f=e.offsetWidth>0&&Ms(d.width)/e.offsetWidth||1,m=e.offsetHeight>0&&Ms(d.height)/e.offsetHeight||1);const g=mi(e)?Yn(e):window,C=!b0()&&n,M=(d.left+(C&&(i=(l=g.visualViewport)==null?void 0:l.offsetLeft)!=null?i:0))/f,b=(d.top+(C&&(o=(c=g.visualViewport)==null?void 0:c.offsetTop)!=null?o:0))/m,I=d.width/f,L=d.height/m;return{width:I,height:L,top:b,right:M+I,bottom:b+L,left:M,x:M,y:b}}function pi(e){return((b2(e)?e.ownerDocument:e.document)||window.document).documentElement}function Is(e){return mi(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function M0(e){return _n(pi(e)).left+Is(e).scrollLeft}function M2(e){const t=_n(e);return Ms(t.width)!==e.offsetWidth||Ms(t.height)!==e.offsetHeight}function I2(e,t,n){const i=Pn(t),l=pi(t),o=_n(e,i&&M2(t),n==="fixed");let c={scrollLeft:0,scrollTop:0};const d={x:0,y:0};if(i||!i&&n!=="fixed")if((Fn(t)!=="body"||Cs(l))&&(c=Is(t)),Pn(t)){const f=_n(t,!0);d.x=f.x+t.clientLeft,d.y=f.y+t.clientTop}else l&&(d.x=M0(l));return{x:o.left+c.scrollLeft-d.x,y:o.top+c.scrollTop-d.y,width:o.width,height:o.height}}function I0(e){return Fn(e)==="html"?e:e.assignedSlot||e.parentNode||(Bo(e)?e.host:null)||pi(e)}function w0(e){return!Pn(e)||getComputedStyle(e).position==="fixed"?null:e.offsetParent}function w2(e){let t=I0(e);for(Bo(t)&&(t=t.host);Pn(t)&&!["html","body"].includes(Fn(t));){if(y0(t))return t;t=t.parentNode}return null}function Ho(e){const t=Yn(e);let n=w0(e);for(;n&&C2(n)&&getComputedStyle(n).position==="static";)n=w0(n);return n&&(Fn(n)==="html"||Fn(n)==="body"&&getComputedStyle(n).position==="static"&&!y0(n))?t:n||w2(e)||t}function N0(e){if(Pn(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=_n(e);return{width:t.width,height:t.height}}function N2(e){let{rect:t,offsetParent:n,strategy:i}=e;const l=Pn(n),o=pi(n);if(n===o)return t;let c={scrollLeft:0,scrollTop:0};const d={x:0,y:0};if((l||!l&&i!=="fixed")&&((Fn(n)!=="body"||Cs(o))&&(c=Is(n)),Pn(n))){const f=_n(n,!0);d.x=f.x+n.clientLeft,d.y=f.y+n.clientTop}return ve(H({},t),{x:t.x-c.scrollLeft+d.x,y:t.y-c.scrollTop+d.y})}function v2(e,t){const n=Yn(e),i=pi(e),l=n.visualViewport;let o=i.clientWidth,c=i.clientHeight,d=0,f=0;if(l){o=l.width,c=l.height;const m=b0();(m||!m&&t==="fixed")&&(d=l.offsetLeft,f=l.offsetTop)}return{width:o,height:c,x:d,y:f}}function L2(e){var t;const n=pi(e),i=Is(e),l=(t=e.ownerDocument)==null?void 0:t.body,o=da(n.scrollWidth,n.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),c=da(n.scrollHeight,n.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0);let d=-i.scrollLeft+M0(e);const f=-i.scrollTop;return ua(l||n).direction==="rtl"&&(d+=da(n.clientWidth,l?l.clientWidth:0)-o),{width:o,height:c,x:d,y:f}}function v0(e){const t=I0(e);return["html","body","#document"].includes(Fn(t))?e.ownerDocument.body:Pn(t)&&Cs(t)?t:v0(t)}function ws(e,t){var n;t===void 0&&(t=[]);const i=v0(e),l=i===((n=e.ownerDocument)==null?void 0:n.body),o=Yn(i),c=l?[o].concat(o.visualViewport||[],Cs(i)?i:[]):i,d=t.concat(c);return l?d:d.concat(ws(c))}function k2(e,t){const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Bo(n)){let i=t;do{if(i&&e===i)return!0;i=i.parentNode||i.host}while(i)}return!1}function T2(e,t){const n=_n(e,!1,t==="fixed"),i=n.top+e.clientTop,l=n.left+e.clientLeft;return{top:i,left:l,x:l,y:i,right:l+e.clientWidth,bottom:i+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}function L0(e,t,n){return t==="viewport"?oa(v2(e,n)):mi(t)?T2(t,n):oa(L2(pi(e)))}function x2(e){const t=ws(e),i=["absolute","fixed"].includes(ua(e).position)&&Pn(e)?Ho(e):e;return mi(i)?t.filter(l=>mi(l)&&k2(l,i)&&Fn(l)!=="body"):[]}function S2(e){let{element:t,boundary:n,rootBoundary:i,strategy:l}=e;const c=[...n==="clippingAncestors"?x2(t):[].concat(n),i],d=c[0],f=c.reduce((m,g)=>{const C=L0(t,g,l);return m.top=da(C.top,m.top),m.right=C0(C.right,m.right),m.bottom=C0(C.bottom,m.bottom),m.left=da(C.left,m.left),m},L0(t,d,l));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}const D2={getClippingRect:S2,convertOffsetParentRelativeRectToViewportRelativeRect:N2,isElement:mi,getDimensions:N0,getOffsetParent:Ho,getDocumentElement:pi,getElementRects:e=>{let{reference:t,floating:n,strategy:i}=e;return{reference:I2(t,Ho(n),i),floating:ve(H({},N0(n)),{x:0,y:0})}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>ua(e).direction==="rtl"};function j2(e,t,n,i){i===void 0&&(i={});const{ancestorScroll:l=!0,ancestorResize:o=!0,elementResize:c=!0,animationFrame:d=!1}=i,f=l&&!d,m=o&&!d,g=f||m?[...mi(e)?ws(e):[],...ws(t)]:[];g.forEach(L=>{f&&L.addEventListener("scroll",n,{passive:!0}),m&&L.addEventListener("resize",n)});let C=null;c&&(C=new ResizeObserver(n),mi(e)&&!d&&C.observe(e),C.observe(t));let M,b=d?_n(e):null;d&&I();function I(){const L=_n(e);b&&(L.x!==b.x||L.y!==b.y||L.width!==b.width||L.height!==b.height)&&n(),b=L,M=requestAnimationFrame(I)}return c||n(),()=>{var L;g.forEach(k=>{f&&k.removeEventListener("scroll",n),m&&k.removeEventListener("resize",n)}),(L=C)==null||L.disconnect(),C=null,d&&cancelAnimationFrame(M)}}const z2=(e,t,n)=>n2(e,t,H({platform:D2},n));var P2=()=>({getElementRects:({reference:i,floating:l})=>{const o=i.getBoundingClientRect(),c=l.getBoundingClientRect();return{reference:{width:o.width,height:o.height,x:o.x,y:o.y},floating:{width:c.width,height:c.height,x:c.x,y:c.y}}},getDimensions:i=>{const{width:l,height:o}=i.getBoundingClientRect();return{width:l,height:o}},getClippingRect:({})=>{const{width:i,height:l}=document.fullscreenElement.getBoundingClientRect();return{width:i,height:l,x:0,y:0}}}),E2=(e,t,n,i,l,o)=>{const c=a.ref(!1),d=()=>{var J,V,X;const Z=I((J=n.value)==null?void 0:J.$el);return(V=document.fullscreenElement)!=null&&V.shadowRoot?document.fullscreenElement.shadowRoot.contains(Z):(X=document.fullscreenElement)==null?void 0:X.contains(Z)},f=["dark","light"],m=a.computed(()=>{const Z=e.theme.split(/\s+/);Z.sort((X,Y)=>Number(f.includes(Y))-Number(f.includes(X)));const J=Z,V=Z.filter(X=>!f.includes(X));return{systemThemes:J,customThemes:V}}),g=()=>!d()&&e.autoVisibility,C=()=>d()||e.autoPlacement,M=()=>{var Y,ne,le,ge;const Z=I((Y=n.value)==null?void 0:Y.$el),J=I((ne=i.value)==null?void 0:ne.$el),V=e.arrow?I((le=l.value)==null?void 0:le.$el):null,X=I((ge=o.value)==null?void 0:ge.$el);return{elReference:Z,elContent:J,elArrow:V,root:X}},b=Z=>{const J=[g2(e.offset),p2({padding:e.padding})],V={placement:e.placement,middleware:J};if(e.arrow&&J.push(r2({element:Z})),C()?J.push(c2()):(J.unshift(y2()),J.push(d2())),g()&&V.middleware.push(f2()),d()){const{getElementRects:X,getDimensions:Y,getClippingRect:ne}=P2();Object.assign(V,{platform:{getElementRects:X,getDimensions:Y,getClippingRect:ne}})}return V},I=Z=>Z instanceof HTMLElement?Z:Z instanceof Text?I(Z.nextElementSibling):null,L=m.value.customThemes.join(" "),k=m.value.customThemes.reduce((Z,J)=>H({[`data-${J}-theme`]:!0},Z),{}),v=`${L}`;let N=null;const p=Z=>{const J=window.devicePixelRatio||1;return Math.round(Z*J)/J||0},w=(Z,J,V,X)=>{var ne;Object.assign(Z.style,{left:"0",top:"0",transform:`translate3d(${p(J)}px,${p(V)}px,0)`});const Y=g()?(ne=X.hide)==null?void 0:ne.referenceHidden:!1;Object.assign(Z.style,{visibility:Y?"hidden":"visible"})},x=(Z,J,V)=>{if(e.arrow){const{x:X,y:Y}=V.arrow;Z.setAttribute("data-arrow",J);const ne={left:"",top:"",bottom:"",right:""};Object.assign(Z.style,ne);const le={top:"bottom",right:"left",bottom:"top",left:"right"}[J];Object.assign(Z.style,{left:X!==null?`${X}px`:"",top:Y!==null?`${Y}px`:"",[le]:"-4px"})}},S=()=>{const{elReference:Z,elContent:J}=M();N=j2(Z,J,()=>{Q()})},Q=()=>{const{elReference:Z,elContent:J,elArrow:V}=M();if(!Z)return;const X=b(V);z2(Z,J,X).then(({x:Y,y:ne,placement:le,middlewareData:ge})=>{const U=J.className;J.className=`${U.replace(v,"")} ${v}`.replace(/\s+/mg," ").replace(/^\s+|\s+$/g,""),Object.keys(k).forEach(F=>{J.setAttribute(F,k[F])});const de=le.split("-")[0];let he=de;["left","right","top","bottom"].includes(de)||(he="top"),w(J,Y,ne,ge),x(V,he,ge)})},z=()=>{c.value=!0};let O,P=!1;const E=()=>{O=setTimeout(()=>{c.value=!1},100)},_=()=>{var J;const Z=I((J=i.value)==null?void 0:J.$el);Z.style.setProperty("display","block"),Z.style.setProperty("z-index",`${e.zIndex?e.zIndex:pn.getModalNextIndex()}`),Q(),t.emit("afterShow",{isSHow:!0})},G=()=>{var J;I((J=i.value)==null?void 0:J.$el).style.setProperty("display","none"),t.emit("afterHidden",{isSHow:!1})},se=()=>{c.value?E():z()},ce=()=>{se()},fe=()=>{e.trigger==="hover"&&O&&(P=!0,clearTimeout(O),O=void 0)},pe=()=>{P&&(E(),P=!1)},K=()=>{var J;return(J={hover:{content:[["mouseenter",fe],["mouseleave",pe]],reference:[["mouseenter",z],["mouseleave",E],["focus",z],["blur",E]]},click:[["click",ce]],manual:[[]]}[e.trigger])!=null?J:[]};return a.watch(c,Z=>{Z?_():G()}),{showPopover:z,hidePopover:E,resolveTriggerEvents:K,updatePopover:Q,triggerPopover:se,resolvePopElements:M,isElementFullScreen:d,resolveTargetElement:I,createPopInstance:S,localIsShow:c,cleanup:N}};let yi=null,fa=null,Ns=null;var O2=(e,t="#")=>{const n=(o=!1,c)=>{let d=null;const f=M=>{d===null&&M()},m=()=>{if(/^parent$/i.test(e.boundary)){d=`${t}${yi}`;const{parentNode:M}=c||{};M!=null&&M.parentNode&&(M.parentNode.setAttribute("data-pnode-id",Ns),d=`[data-pnode-id=${Ns}]`)}},g=()=>{o&&(d=`[data-fllsrn-id=${fa}]`)},C=()=>{if(!/^body$/i.test(e.boundary)&&typeof e.boundary=="string"){if(!i(e.boundary)){console.error("props.boundary is not available selector"),d="body";return}d=e.boundary}};return f(m),f(C),f(g),f(()=>{d=typeof e.boundary=="string"?e.boundary:`${t}${yi}`}),d},i=o=>document.querySelector(o)instanceof HTMLElement;if(yi===null||!i(`#${yi}`)){yi=`id_${zi.v4()}`;const o=document.createElement("div");o.setAttribute("id",yi),o.setAttribute("data-popper-id",yi),document.body.append(o)}fa===null&&(fa=`id_${zi.v4()}`),Ns===null&&(Ns=`id_${zi.v4()}`);const l=()=>{var o;if(document.fullscreenElement===null){const c=`[data-fllsrn-id=${fa}]`;((o=document.querySelectorAll(c))!=null?o:[]).forEach(d=>{d.removeAttribute("data-fllsrn-id")})}else document.fullscreenElement.setAttribute("data-fllsrn-id",fa)};return{popContainerId:yi,prefixId:n(),getPrefixId:n,resetFullscreenElementTag:l}},J2=a.defineComponent({name:"Popover2",components:{Content:s0,Arrow:a0,Root:l0},directives:{clickoutside:sa},props:e2,emits:Xg,setup(e,t){const{content:n,theme:i,disableTeleport:l}=e,o=a.ref(),c=a.ref(),d=a.ref(),f=a.ref(),m=a.ref(!1);let g=null;const{localIsShow:C,showPopover:M,hidePopover:b,resolveTriggerEvents:I,updatePopover:L,resolvePopElements:k,isElementFullScreen:v,cleanup:N,createPopInstance:p}=E2(e,t,o,c,d,f),w=()=>{M()},x=()=>{b()},S=()=>{p(),e.always?M():Q()};!e.always&&!e.disabled&&a.watch(()=>e.isShow,()=>{e.isShow?M():b()},{immediate:!0}),a.watch(()=>[e.disabled],K=>{K[0]?S():se()});const Q=()=>{const{elReference:K,elContent:Z}=k();if(g=I(),Array.isArray(g))z(K,g);else{const{content:J,reference:V}=g;z(K,V),z(Z,J)}},z=(K,Z)=>{Z.forEach(([J,V])=>{K.addEventListener(J,V)})},O=()=>{if(g!=null&&g.length){const{elReference:K}=k();K&&g.forEach(([Z,J])=>{K.removeEventListener(Z,J)}),g=null}},P=()=>{const{elReference:K,root:Z}=k();G.value=E(m.value,Z||K)},{getPrefixId:E,resetFullscreenElementTag:_}=O2(e,"#"),G=a.ref();P();const se=()=>{typeof N=="function"&&N(),O()},ce=()=>{m.value=v(),_(),P(),L()};a.onMounted(()=>{e.disabled||(S(),P(),document.body.addEventListener("fullscreenchange",ce))}),a.onUnmounted(()=>{se(),document.body.removeEventListener("fullscreenchange",ce)}),t.expose({show:w,hide:x});const fe=K=>{t.emit(Cr.CLICK_OUTSIDE,{isShow:C.value,event:K}),!(e.disableOutsideClick||e.always||e.disabled||e.trigger==="manual")&&C.value&&x()},pe=a.computed(()=>(m.value||!l)&&typeof G.value=="string");return{boundary:G,arrow:e.arrow,refReference:o,refContent:c,refArrow:d,content:n,theme:i,transBoundary:pe,handleClickOutside:fe}},render(){return a.createVNode(l0,{ref:"refRoot"},{default:()=>[a.createVNode(t2,{ref:"refReference"},{default:()=>{var e,t,n;return[(n=(t=(e=this.$slots).default)==null?void 0:t.call(e))!=null?n:a.createVNode("span",null,null)]}}),a.createVNode(a.Teleport,{to:this.boundary,disabled:!this.transBoundary},{default:()=>[a.withDirectives(a.createVNode(s0,{ref:"refContent","data-theme":this.theme,width:this.width,height:this.height},{default:()=>{var e,t,n;return[(n=(t=(e=this.$slots).content)==null?void 0:t.call(e))!=null?n:this.content]},arrow:()=>this.arrow?a.createVNode(a0,{ref:"refArrow"},{default:()=>{var e,t;return[(t=(e=this.$slots).arrow)==null?void 0:t.call(e)]}}):""}),[[a.resolveDirective("clickoutside"),this.handleClickOutside]])]})]})}});const ha=Ge(J2),A2=(e,{attrs:t,slots:n})=>{const{width:i,percent:l,strokeWidth:o,color:c,strokeLinecap:d,theme:f,type:m,bgColor:g,titleStyle:C}=t,M=o||6,b=i||126,I={width:typeof b=="number"?`${b}px`:b,height:typeof b=="number"?`${b}px`:b,fontSize:`${b*.15+6}px`},L=50-M/2,k=m==="dashboard",v=Math.PI*2*L,N=k&&.75||1,p=`${-1*v*(1-N)/2}px`,w="stroke-dasharray 0.6s ease 0s, stroke 0.6s ease",x={strokeDasharray:`${v*N}px, ${v}px`,strokeDashoffset:p},S={strokeDasharray:`${v*N*(l/100)}px, ${v}px`,strokeDashoffset:p,transition:w},Q=`
|
53
53
|
M 50 50
|
54
54
|
m 0 ${k?"":"-"}${L}
|
55
55
|
a ${L} ${L} 0 1 1 0 ${k?"-":""}${L*2}
|
package/lib/popover2/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("../directives"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../directives"],t);else{var n="object"==typeof exports?t(require("../shared"),require("vue"),require("../directives")):t(e["../shared"],e.vue,e["../directives"]);for(var o in n)("object"==typeof exports?exports:e)[o]=n[o]}}(self,((e,t,n)=>(()=>{var o={8022:(e,t,n)=>{var o=n(4481),r=n(6426),i=r;i.v1=o,i.v4=r,e.exports=i},8725:e=>{for(var t=[],n=0;n<256;++n)t[n]=(n+256).toString(16).substr(1);e.exports=function(e,n){var o=n||0,r=t;return[r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]]].join("")}},9157:e=>{var t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(t){var n=new Uint8Array(16);e.exports=function(){return t(n),n}}else{var o=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),o[t]=e>>>((3&t)<<3)&255;return o}}},4481:(e,t,n)=>{var o,r,i=n(9157),l=n(8725),a=0,c=0;e.exports=function(e,t,n){var s=t&&n||0,u=t||[],f=(e=e||{}).node||o,d=void 0!==e.clockseq?e.clockseq:r;if(null==f||null==d){var p=i();null==f&&(f=o=[1|p[0],p[1],p[2],p[3],p[4],p[5]]),null==d&&(d=r=16383&(p[6]<<8|p[7]))}var m=void 0!==e.msecs?e.msecs:(new Date).getTime(),v=void 0!==e.nsecs?e.nsecs:c+1,h=m-a+(v-c)/1e4;if(h<0&&void 0===e.clockseq&&(d=d+1&16383),(h<0||m>a)&&void 0===e.nsecs&&(v=0),v>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=m,c=v,r=d;var g=(1e4*(268435455&(m+=122192928e5))+v)%4294967296;u[s++]=g>>>24&255,u[s++]=g>>>16&255,u[s++]=g>>>8&255,u[s++]=255&g;var y=m/4294967296*1e4&268435455;u[s++]=y>>>8&255,u[s++]=255&y,u[s++]=y>>>24&15|16,u[s++]=y>>>16&255,u[s++]=d>>>8|128,u[s++]=255&d;for(var w=0;w<6;++w)u[s+w]=f[w];return t||l(u)}},6426:(e,t,n)=>{var o=n(9157),r=n(8725);e.exports=function(e,t,n){var i=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var l=(e=e||{}).random||(e.rng||o)();if(l[6]=15&l[6]|64,l[8]=63&l[8]|128,t)for(var a=0;a<16;++a)t[i+a]=l[a];return t||r(l)}},4061:e=>{"use strict";e.exports=n},4212:t=>{"use strict";t.exports=e},748:e=>{"use strict";e.exports=t}},r={};function i(e){var t=r[e];if(void 0!==t)return t.exports;var n=r[e]={exports:{}};return o[e](n,n.exports,i),n.exports}i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var l={};return(()=>{"use strict";i.r(l),i.d(l,{default:()=>xe});var e=i(4212);function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function n(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i=[],l=!0,a=!1;try{for(n=n.call(e);!(l=(o=n.next()).done)&&(i.push(o.value),!t||i.length!==t);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==n.return||n.return()}finally{if(a)throw r}}return i}}(e,n)||function(e,n){if(e){if("string"==typeof e)return t(e,n);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?t(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var o=i(748),r=i(4061);const a=(0,o.defineComponent)({name:"PopArrow",render:function(){var t=(0,e.resolveClassName)("pop2-arrow");return(0,o.createVNode)("div",{class:t},null)}});function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s,u,f=function(){return!0};!function(e){e.SHOW="show",e.HIDE="hide",e.CLICK_OUTSIDE="clickoutside"}(u||(u={}));var d=(c(s={},u.SHOW,f),c(s,u.HIDE,f),c(s,u.CLICK_OUTSIDE,f),s);const p=(0,o.defineComponent)({name:"PopContent",props:{width:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]).def("auto"),height:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]).def("auto")},setup:function(e){var t=function(e){return/^\d+\.?\d*$/.test("".concat(e))?"".concat(e,"px"):e};return{style:(0,o.computed)((function(){return{width:t(e.width),height:t(e.height)}}))}},render:function(){var t,n,r,i,l,a,c=[(0,e.resolveClassName)("popover2"),(0,e.resolveClassName)("pop2-content")];return(0,o.createVNode)("div",{class:c,tabindex:"-1",style:this.style},[null!==(r=null===(n=(t=this.$slots).default)||void 0===n?void 0:n.call(t))&&void 0!==r?r:"",null!==(a=null===(l=(i=this.$slots).arrow)||void 0===l?void 0:l.call(i))&&void 0!==a?a:""])}});var m={onAfterHidden:Function,onAfterShow:Function},v=Object.assign({isShow:e.PropTypes.bool.def(!1),always:e.PropTypes.bool.def(!1),disabled:e.PropTypes.bool.def(!1),width:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]).def("auto"),height:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]).def("auto"),content:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]).def(""),placement:e.PropTypes.placement(["auto","auto-start","auto-end","top","top-start","top-end","bottom","bottom-start","bottom-end","right","right-start","right-end","left","left-start","left-end"]).def("top"),theme:e.PropTypes.string.def("dark"),trigger:e.PropTypes.string.def("hover"),arrow:e.PropTypes.bool.def(!0),padding:e.PropTypes.number.def(5),offset:e.PropTypes.number.def(6),boundary:e.PropTypes.string.def(void 0),zIndex:e.PropTypes.number.def(void 0),disableTeleport:e.PropTypes.bool.def(!1),autoPlacement:e.PropTypes.bool.def(!1),autoVisibility:e.PropTypes.bool.def(!0),disableOutsideClick:e.PropTypes.bool.def(!1)},m);const h=(0,o.defineComponent)({name:"PopReference",render:function(){var e,t,n;return null!==(n=null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e))&&void 0!==n?n:""}}),g=(0,o.defineComponent)({props:{class:e.PropTypes.string.def("")},render:function(){var e,t;return(0,o.createVNode)(o.Fragment,null,[null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e)])}});function y(e){return e.split("-")[0]}function w(e){return e.split("-")[1]}function b(e){return["top","bottom"].includes(y(e))?"x":"y"}function x(e){return"y"===e?"height":"width"}function T(e,t,n){let{reference:o,floating:r}=e;const i=o.x+o.width/2-r.width/2,l=o.y+o.height/2-r.height/2,a=b(t),c=x(a),s=o[c]/2-r[c]/2,u="x"===a;let f;switch(y(t)){case"top":f={x:i,y:o.y-r.height};break;case"bottom":f={x:i,y:o.y+o.height};break;case"right":f={x:o.x+o.width,y:l};break;case"left":f={x:o.x-r.width,y:l};break;default:f={x:o.x,y:o.y}}switch(w(t)){case"start":f[a]-=s*(n&&u?-1:1);break;case"end":f[a]+=s*(n&&u?-1:1)}return f}function P(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function R(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function C(e,t){var n;void 0===t&&(t={});const{x:o,y:r,platform:i,rects:l,elements:a,strategy:c}=e,{boundary:s="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=t,m=P(p),v=a[d?"floating"===f?"reference":"floating":f],h=R(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(v)))||n?v:v.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:s,rootBoundary:u,strategy:c})),g=R(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:"floating"===f?{...l.floating,x:o,y:r}:l.reference,offsetParent:await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),strategy:c}):l[f]);return{top:h.top-g.top+m.top,bottom:g.bottom-h.bottom+m.bottom,left:h.left-g.left+m.left,right:g.right-h.right+m.right}}const E=Math.min,A=Math.max;function O(e,t,n){return A(e,E(t,n))}const S={left:"right",right:"left",bottom:"top",top:"bottom"};function L(e){return e.replace(/left|right|bottom|top/g,(e=>S[e]))}function H(e,t,n){void 0===n&&(n=!1);const o=w(e),r=b(e),i=x(r);let l="x"===r?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=L(l)),{main:l,cross:L(l)}}const D={start:"end",end:"start"};function N(e){return e.replace(/start|end/g,(e=>D[e]))}const k=["top","right","bottom","left"],I=k.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]);function V(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function j(e){return k.some((t=>e[t]>=0))}const $=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:o}=t,r=await async function(e,t){const{placement:n,platform:o,elements:r}=e,i=await(null==o.isRTL?void 0:o.isRTL(r.floating)),l=y(n),a=w(n),c="x"===b(n),s=["left","top"].includes(l)?-1:1,u=i&&c?-1:1,f="function"==typeof t?t(e):t;let{mainAxis:d,crossAxis:p,alignmentAxis:m}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return a&&"number"==typeof m&&(p="end"===a?-1*m:m),c?{x:p*u,y:d*s}:{x:d*s,y:p*u}}(t,e);return{x:n+r.x,y:o+r.y,data:r}}}};const M=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=e,s={x:n,y:o},u=await C(t,c),f=b(y(r)),d=function(e){return"x"===e?"y":"x"}(f);let p=s[f],m=s[d];if(i){const e="y"===f?"bottom":"right";p=O(p+u["y"===f?"top":"left"],p,p-u[e])}if(l){const e="y"===d?"bottom":"right";m=O(m+u["y"===d?"top":"left"],m,m-u[e])}const v=a.fn({...t,[f]:p,[d]:m});return{...v,data:{x:v.x-n,y:v.y-o}}}}};function W(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function B(e){if(null==e)return window;if(!W(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function q(e){return B(e).getComputedStyle(e)}function F(e){return W(e)?"":e?(e.nodeName||"").toLowerCase():""}function z(){const e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}function _(e){return e instanceof B(e).HTMLElement}function U(e){return e instanceof B(e).Element}function K(e){return"undefined"!=typeof ShadowRoot&&(e instanceof B(e).ShadowRoot||e instanceof ShadowRoot)}function X(e){const{overflow:t,overflowX:n,overflowY:o}=q(e);return/auto|scroll|overlay|hidden/.test(t+o+n)}function Y(e){return["table","td","th"].includes(F(e))}function Z(e){const t=/firefox/i.test(z()),n=q(e);return"none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||["transform","perspective"].includes(n.willChange)||t&&"filter"===n.willChange||t&&!!n.filter&&"none"!==n.filter}function G(){return!/^((?!chrome|android).)*safari/i.test(z())}const J=Math.min,Q=Math.max,ee=Math.round;function te(e,t,n){var o,r,i,l;void 0===t&&(t=!1),void 0===n&&(n=!1);const a=e.getBoundingClientRect();let c=1,s=1;t&&_(e)&&(c=e.offsetWidth>0&&ee(a.width)/e.offsetWidth||1,s=e.offsetHeight>0&&ee(a.height)/e.offsetHeight||1);const u=U(e)?B(e):window,f=!G()&&n,d=(a.left+(f&&null!=(o=null==(r=u.visualViewport)?void 0:r.offsetLeft)?o:0))/c,p=(a.top+(f&&null!=(i=null==(l=u.visualViewport)?void 0:l.offsetTop)?i:0))/s,m=a.width/c,v=a.height/s;return{width:m,height:v,top:p,right:d+m,bottom:p+v,left:d,x:d,y:p}}function ne(e){return(t=e,(t instanceof B(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function oe(e){return U(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function re(e){return te(ne(e)).left+oe(e).scrollLeft}function ie(e,t,n){const o=_(t),r=ne(t),i=te(e,o&&function(e){const t=te(e);return ee(t.width)!==e.offsetWidth||ee(t.height)!==e.offsetHeight}(t),"fixed"===n);let l={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if(o||!o&&"fixed"!==n)if(("body"!==F(t)||X(r))&&(l=oe(t)),_(t)){const e=te(t,!0);a.x=e.x+t.clientLeft,a.y=e.y+t.clientTop}else r&&(a.x=re(r));return{x:i.left+l.scrollLeft-a.x,y:i.top+l.scrollTop-a.y,width:i.width,height:i.height}}function le(e){return"html"===F(e)?e:e.assignedSlot||e.parentNode||(K(e)?e.host:null)||ne(e)}function ae(e){return _(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function ce(e){const t=B(e);let n=ae(e);for(;n&&Y(n)&&"static"===getComputedStyle(n).position;)n=ae(n);return n&&("html"===F(n)||"body"===F(n)&&"static"===getComputedStyle(n).position&&!Z(n))?t:n||function(e){let t=le(e);for(K(t)&&(t=t.host);_(t)&&!["html","body"].includes(F(t));){if(Z(t))return t;t=t.parentNode}return null}(e)||t}function se(e){if(_(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=te(e);return{width:t.width,height:t.height}}function ue(e){const t=le(e);return["html","body","#document"].includes(F(t))?e.ownerDocument.body:_(t)&&X(t)?t:ue(t)}function fe(e,t){var n;void 0===t&&(t=[]);const o=ue(e),r=o===(null==(n=e.ownerDocument)?void 0:n.body),i=B(o),l=r?[i].concat(i.visualViewport||[],X(o)?o:[]):o,a=t.concat(l);return r?a:a.concat(fe(l))}function de(e,t,n){return"viewport"===t?R(function(e,t){const n=B(e),o=ne(e),r=n.visualViewport;let i=o.clientWidth,l=o.clientHeight,a=0,c=0;if(r){i=r.width,l=r.height;const e=G();(e||!e&&"fixed"===t)&&(a=r.offsetLeft,c=r.offsetTop)}return{width:i,height:l,x:a,y:c}}(e,n)):U(t)?function(e,t){const n=te(e,!1,"fixed"===t),o=n.top+e.clientTop,r=n.left+e.clientLeft;return{top:o,left:r,x:r,y:o,right:r+e.clientWidth,bottom:o+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}(t,n):R(function(e){var t;const n=ne(e),o=oe(e),r=null==(t=e.ownerDocument)?void 0:t.body,i=Q(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),l=Q(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0);let a=-o.scrollLeft+re(e);const c=-o.scrollTop;return"rtl"===q(r||n).direction&&(a+=Q(n.clientWidth,r?r.clientWidth:0)-i),{width:i,height:l,x:a,y:c}}(ne(e)))}function pe(e){const t=fe(e),n=["absolute","fixed"].includes(q(e).position)&&_(e)?ce(e):e;return U(n)?t.filter((e=>U(e)&&function(e,t){const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&K(n)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(e,n)&&"body"!==F(e))):[]}const me={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=[..."clippingAncestors"===n?pe(t):[].concat(n),o],l=i[0],a=i.reduce(((e,n)=>{const o=de(t,n,r);return e.top=Q(o.top,e.top),e.right=J(o.right,e.right),e.bottom=J(o.bottom,e.bottom),e.left=Q(o.left,e.left),e}),de(t,l,r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:o}=e;const r=_(n),i=ne(n);if(n===i)return t;let l={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if((r||!r&&"fixed"!==o)&&(("body"!==F(n)||X(i))&&(l=oe(n)),_(n))){const e=te(n,!0);a.x=e.x+n.clientLeft,a.y=e.y+n.clientTop}return{...t,x:t.x-l.scrollLeft+a.x,y:t.y-l.scrollTop+a.y}},isElement:U,getDimensions:se,getOffsetParent:ce,getDocumentElement:ne,getElementRects:e=>{let{reference:t,floating:n,strategy:o}=e;return{reference:ie(t,ce(n),o),floating:{...se(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===q(e).direction},ve=function(t,n,r,i,l,a){var s=(0,o.ref)(!1),u=function(){var e,t,n=h(null===(e=r.value)||void 0===e?void 0:e.$el);return null===(t=document.fullscreenElement)||void 0===t?void 0:t.contains(n)},f=["dark","light"],d=(0,o.computed)((function(){var e=t.theme.split(/\s+/);return e.sort((function(e,t){return Number(f.includes(t))-Number(f.includes(e))})),{systemThemes:e,customThemes:e.filter((function(e){return!f.includes(e)}))}})),p=function(){return!u()&&t.autoVisibility},m=function(){var e,n,o,c;return{elReference:h(null===(e=r.value)||void 0===e?void 0:e.$el),elContent:h(null===(n=i.value)||void 0===n?void 0:n.$el),elArrow:t.arrow?h(null===(o=l.value)||void 0===o?void 0:o.$el):null,root:h(null===(c=a.value)||void 0===c?void 0:c.$el)}},v=function(e){var n=[$(t.offset),M({padding:t.padding})],o={placement:t.placement,middleware:n};if(t.arrow&&n.push((e=>({name:"arrow",options:e,async fn(t){const{element:n,padding:o=0}=null!=e?e:{},{x:r,y:i,placement:l,rects:a,platform:c}=t;if(null==n)return{};const s=P(o),u={x:r,y:i},f=b(l),d=w(l),p=x(f),m=await c.getDimensions(n),v="y"===f?"top":"left",h="y"===f?"bottom":"right",g=a.reference[p]+a.reference[f]-u[f]-a.floating[p],y=u[f]-a.reference[f],T=await(null==c.getOffsetParent?void 0:c.getOffsetParent(n));let R=T?"y"===f?T.clientHeight||0:T.clientWidth||0:0;0===R&&(R=a.floating[p]);const C=g/2-y/2,E=s[v],A=R-m[p]-s[h],S=R/2-m[p]/2+C,L=O(E,S,A),H=("start"===d?s[v]:s[h])>0&&S!==L&&a.reference[p]<=a.floating[p];return{[f]:u[f]-(H?S<E?E-S:A-S:0),data:{[f]:L,centerOffset:S-L}}}}))({element:e})),u()||t.autoPlacement?n.push(function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,o,r,i,l;const{x:a,y:c,rects:s,middlewareData:u,placement:f,platform:d,elements:p}=t,{alignment:m=null,allowedPlacements:v=I,autoAlignment:h=!0,...g}=e,b=function(e,t,n){return(e?[...n.filter((t=>w(t)===e)),...n.filter((t=>w(t)!==e))]:n.filter((e=>y(e)===e))).filter((n=>!e||w(n)===e||!!t&&N(n)!==n))}(m,h,v),x=await C(t,g),T=null!=(n=null==(o=u.autoPlacement)?void 0:o.index)?n:0,P=b[T];if(null==P)return{};const{main:R,cross:E}=H(P,s,await(null==d.isRTL?void 0:d.isRTL(p.floating)));if(f!==P)return{x:a,y:c,reset:{placement:b[0]}};const A=[x[y(P)],x[R],x[E]],O=[...null!=(r=null==(i=u.autoPlacement)?void 0:i.overflows)?r:[],{placement:P,overflows:A}],S=b[T+1];if(S)return{data:{index:T+1,overflows:O},reset:{placement:S}};const L=O.slice().sort(((e,t)=>e.overflows[0]-t.overflows[0])),D=null==(l=L.find((e=>{let{overflows:t}=e;return t.every((e=>e<=0))})))?void 0:l.placement,k=null!=D?D:L[0].placement;return k!==f?{data:{index:T+1,overflows:O},reset:{placement:k}}:{}}}}()):(n.unshift(function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){var n;const{placement:o,elements:r,rects:i,platform:l,strategy:a}=t,{padding:c=2,x:s,y:u}=e,f=R(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({rect:i.reference,offsetParent:await(null==l.getOffsetParent?void 0:l.getOffsetParent(r.floating)),strategy:a}):i.reference),d=null!=(n=await(null==l.getClientRects?void 0:l.getClientRects(r.reference)))?n:[],p=P(c),m=await l.getElementRects({reference:{getBoundingClientRect:function(){var e;if(2===d.length&&d[0].left>d[1].right&&null!=s&&null!=u)return null!=(e=d.find((e=>s>e.left-p.left&&s<e.right+p.right&&u>e.top-p.top&&u<e.bottom+p.bottom)))?e:f;if(d.length>=2){if("x"===b(o)){const e=d[0],t=d[d.length-1],n="top"===y(o),r=e.top,i=t.bottom,l=n?e.left:t.left,a=n?e.right:t.right;return{top:r,bottom:i,left:l,right:a,width:a-l,height:i-r,x:l,y:r}}const e="left"===y(o),t=A(...d.map((e=>e.right))),n=E(...d.map((e=>e.left))),r=d.filter((o=>e?o.left===n:o.right===t)),i=r[0].top,l=r[r.length-1].bottom;return{top:i,bottom:l,left:n,right:t,width:t-n,height:l-i,x:n,y:i}}return f}},floating:r.floating,strategy:a});return i.reference.x!==m.reference.x||i.reference.y!==m.reference.y||i.reference.width!==m.reference.width||i.reference.height!==m.reference.height?{reset:{rects:m}}:{}}}}()),n.push(function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:o,middlewareData:r,rects:i,initialPlacement:l,platform:a,elements:c}=t,{mainAxis:s=!0,crossAxis:u=!0,fallbackPlacements:f,fallbackStrategy:d="bestFit",flipAlignment:p=!0,...m}=e,v=y(o),h=f||(v!==l&&p?function(e){const t=L(e);return[N(e),t,N(t)]}(l):[L(l)]),g=[l,...h],w=await C(t,m),b=[];let x=(null==(n=r.flip)?void 0:n.overflows)||[];if(s&&b.push(w[v]),u){const{main:e,cross:t}=H(o,i,await(null==a.isRTL?void 0:a.isRTL(c.floating)));b.push(w[e],w[t])}if(x=[...x,{placement:o,overflows:b}],!b.every((e=>e<=0))){var T,P;const e=(null!=(T=null==(P=r.flip)?void 0:P.index)?T:0)+1,t=g[e];if(t)return{data:{index:e,overflows:x},reset:{placement:t}};let n="bottom";switch(d){case"bestFit":{var R;const e=null==(R=x.map((e=>[e,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:R[0].placement;e&&(n=e);break}case"initialPlacement":n=l}if(o!==n)return{reset:{placement:n}}}return{}}}}())),p()&&o.middleware.push(function(e){let{strategy:t="referenceHidden",...n}={};return{name:"hide",async fn(e){const{rects:o}=e;switch(t){case"referenceHidden":{const t=V(await C(e,{...n,elementContext:"reference"}),o.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:j(t)}}}case"escaped":{const t=V(await C(e,{...n,altBoundary:!0}),o.floating);return{data:{escapedOffsets:t,escaped:j(t)}}}default:return{}}}}}()),u()){var r={getElementRects:function(e){var t=e.reference,n=e.floating,o=t.getBoundingClientRect(),r=n.getBoundingClientRect();return{reference:{width:o.width,height:o.height,x:o.x,y:o.y},floating:{width:r.width,height:r.height,x:r.x,y:r.y}}},getDimensions:function(e){var t=e.getBoundingClientRect();return{width:t.width,height:t.height}},getClippingRect:function(e){!function(e){if(null==e)throw new TypeError("Cannot destructure undefined")}(e);var t=document.fullscreenElement.getBoundingClientRect();return{width:t.width,height:t.height,x:0,y:0}}},i=r.getElementRects,l=r.getDimensions,a=r.getClippingRect;Object.assign(o,{platform:{getElementRects:i,getDimensions:l,getClippingRect:a}})}return o},h=function e(t){return t instanceof HTMLElement?t:t instanceof Text?e(t.nextElementSibling):null},g=d.value.customThemes.join(" "),S=d.value.customThemes.reduce((function(e,t){return Object.assign(c({},"data-".concat(t,"-theme"),!0),e)}),{}),D="".concat(g),k=null,W=function(e){var t=window.devicePixelRatio||1;return Math.round(e*t)/t||0},B=function(){var e=m(),n=e.elReference,o=e.elContent,r=e.elArrow;if(n){var i=v(r);((e,t,n)=>(async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:l}=n,a=await(null==l.isRTL?void 0:l.isRTL(t));let c=await l.getElementRects({reference:e,floating:t,strategy:r}),{x:s,y:u}=T(c,o,a),f=o,d={};for(let n=0;n<i.length;n++){const{name:p,fn:m}=i[n],{x:v,y:h,data:g,reset:y}=await m({x:s,y:u,initialPlacement:o,placement:f,strategy:r,middlewareData:d,rects:c,platform:l,elements:{reference:e,floating:t}});s=null!=v?v:s,u=null!=h?h:u,d={...d,[p]:{...d[p],...g}},y&&("object"==typeof y&&(y.placement&&(f=y.placement),y.rects&&(c=!0===y.rects?await l.getElementRects({reference:e,floating:t,strategy:r}):y.rects),({x:s,y:u}=T(c,f,a))),n=-1)}return{x:s,y:u,placement:f,strategy:r,middlewareData:d}})(e,t,{platform:me,...n}))(n,o,i).then((function(e){var n=e.x,i=e.y,l=e.placement,a=e.middlewareData,s=o.className;o.className="".concat(s.replace(D,"")," ").concat(D).replace(/\s+/gm," ").replace(/^\s+|\s+$/g,""),Object.keys(S).forEach((function(e){o.setAttribute(e,S[e])}));var u=l.split("-")[0],f=u;["left","right","top","bottom"].includes(u)||(f="top"),function(e,t,n,o){var r;Object.assign(e.style,{left:"0",top:"0",transform:"translate3d(".concat(W(t),"px,").concat(W(n),"px,0)")});var i=!!p()&&(null===(r=o.hide)||void 0===r?void 0:r.referenceHidden);Object.assign(e.style,{visibility:i?"hidden":"visible"})}(o,n,i,a),function(e,n,o){if(t.arrow){var r=o.arrow,i=r.x,l=r.y;e.setAttribute("data-arrow",n),Object.assign(e.style,{left:"",top:"",bottom:"",right:""});var a={top:"bottom",right:"left",bottom:"top",left:"right"}[n];Object.assign(e.style,c({left:null!==i?"".concat(i,"px"):"",top:null!==l?"".concat(l,"px"):""},a,"-4px"))}}(r,f,a)}))}},q=function(){s.value=!0},F=void 0,z=!1,_=function(){F=setTimeout((function(){s.value=!1}),100)},K=function(){s.value?_():q()},X=function(){K()},Y=function(){"hover"===t.trigger&&F&&(z=!0,clearTimeout(F),F=void 0)},Z=function(){z&&(_(),z=!1)};return(0,o.watch)(s,(function(o){var r,l;o?((l=h(null===(r=i.value)||void 0===r?void 0:r.$el)).style.setProperty("display","block"),l.style.setProperty("z-index","".concat(t.zIndex?t.zIndex:e.bkZIndexManager.getModalNextIndex())),B(),n.emit("afterShow",{isSHow:!0})):function(){var e;h(null===(e=i.value)||void 0===e?void 0:e.$el).style.setProperty("display","none"),n.emit("afterHidden",{isSHow:!1})}()})),{showPopover:q,hidePopover:_,resolveTriggerEvents:function(){var e;return null!==(e={hover:{content:[["mouseenter",Y],["mouseleave",Z]],reference:[["mouseenter",q],["mouseleave",_],["focus",q],["blur",_]]},click:[["click",X]],manual:[[]]}[t.trigger])&&void 0!==e?e:[]},updatePopover:B,triggerPopover:K,resolvePopElements:m,isElementFullScreen:u,resolveTargetElement:h,createPopInstance:function(){var e=m(),t=e.elReference,n=e.elContent;k=function(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:l=!0,animationFrame:a=!1}=o,c=r&&!a,s=i&&!a,u=c||s?[...U(e)?fe(e):[],...fe(t)]:[];u.forEach((e=>{c&&e.addEventListener("scroll",n,{passive:!0}),s&&e.addEventListener("resize",n)}));let f,d=null;l&&(d=new ResizeObserver(n),U(e)&&!a&&d.observe(e),d.observe(t));let p=a?te(e):null;return a&&function t(){const o=te(e);!p||o.x===p.x&&o.y===p.y&&o.width===p.width&&o.height===p.height||n(),p=o,f=requestAnimationFrame(t)}(),l||n(),()=>{var e;u.forEach((e=>{c&&e.removeEventListener("scroll",n),s&&e.removeEventListener("resize",n)})),null==(e=d)||e.disconnect(),d=null,a&&cancelAnimationFrame(f)}}(t,n,(function(){B()}))},localIsShow:s,cleanup:k}};var he=i(8022),ge=null,ye=null,we=null;const be=(0,o.defineComponent)({name:"Popover2",components:{Content:p,Arrow:a,Root:g},directives:{clickoutside:r.clickoutside},props:v,emits:d,setup:function(e,t){var r=e.content,i=e.theme,l=e.disableTeleport,a=(0,o.ref)(),c=(0,o.ref)(),s=(0,o.ref)(),f=(0,o.ref)(),d=(0,o.ref)(!1),p=null,m=ve(e,t,a,c,s,f),v=m.localIsShow,h=m.showPopover,g=m.hidePopover,y=m.resolveTriggerEvents,w=m.updatePopover,b=m.resolvePopElements,x=m.isElementFullScreen,T=m.cleanup,P=m.createPopInstance,R=function(){g()},C=function(){P(),e.always?h():E()};e.always||e.disabled||(0,o.watch)((function(){return e.isShow}),(function(){e.isShow?h():g()}),{immediate:!0}),(0,o.watch)((function(){return[e.disabled]}),(function(e){e[0]?C():N()}));var E=function(){var e=b(),t=e.elReference,n=e.elContent;if(p=y(),Array.isArray(p))A(t,p);else{var o=p,r=o.content,i=o.reference;A(t,i),A(n,r)}},A=function(e,t){t.forEach((function(t){var o=n(t,2),r=o[0],i=o[1];e.addEventListener(r,i)}))},O=function(){var e=b(),t=e.elReference,n=e.root;D.value=L(d.value,n||t)},S=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#",n=function(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=arguments.length>1?arguments[1]:void 0,i=null,l=function(e){null===i&&e()},a=function(){n&&(i="[data-fllsrn-id=".concat(ye,"]"))},c=function(){if(!/^body$/i.test(e.boundary)&&"string"==typeof e.boundary){if(!o(e.boundary))return console.error("props.boundary is not available selector"),void(i="body");i=e.boundary}};return l((function(){if(/^parent$/i.test(e.boundary)){i="".concat(t).concat(ge);var n=(r||{}).parentNode;(null==n?void 0:n.parentNode)&&(n.parentNode.setAttribute("data-pnode-id",we),i="[data-pnode-id=".concat(we,"]"))}})),l(c),l(a),l((function(){i="string"==typeof e.boundary?e.boundary:"".concat(t).concat(ge)})),i},o=function(e){return document.querySelector(e)instanceof HTMLElement};if(null===ge||!o("#".concat(ge))){ge="id_".concat((0,he.v4)());var r=document.createElement("div");r.setAttribute("id",ge),r.setAttribute("data-popper-id",ge),document.body.append(r)}null===ye&&(ye="id_".concat((0,he.v4)())),null===we&&(we="id_".concat((0,he.v4)()));var i=function(){var e;if(null===document.fullscreenElement){var t="[data-fllsrn-id=".concat(ye,"]");(null!==(e=document.querySelectorAll(t))&&void 0!==e?e:[]).forEach((function(e){e.removeAttribute("data-fllsrn-id")}))}else document.fullscreenElement.setAttribute("data-fllsrn-id",ye)};return{popContainerId:ge,prefixId:n(),getPrefixId:n,resetFullscreenElementTag:i}}(e,"#"),L=S.getPrefixId,H=S.resetFullscreenElementTag,D=(0,o.ref)();O();var N=function(){"function"==typeof T&&T(),function(){if(null==p?void 0:p.length){var e=b().elReference;e&&p.forEach((function(t){var o=n(t,2),r=o[0],i=o[1];e.removeEventListener(r,i)})),p=null}}()},k=function(){d.value=x(),H(),O(),w()};(0,o.onMounted)((function(){e.disabled||(C(),O(),document.body.addEventListener("fullscreenchange",k))})),(0,o.onUnmounted)((function(){N(),document.body.removeEventListener("fullscreenchange",k)})),t.expose({show:function(){h()},hide:R});var I=(0,o.computed)((function(){return(d.value||!l)&&"string"==typeof D.value}));return{boundary:D,arrow:e.arrow,refReference:a,refContent:c,refArrow:s,content:r,theme:i,transBoundary:I,handleClickOutside:function(n){t.emit(u.CLICK_OUTSIDE,{isShow:v.value,event:n}),e.disableOutsideClick||e.always||e.disabled||"manual"===e.trigger||v.value&&R()}}},render:function(){var e,t,n,r,i,l,c=this;return(0,o.createVNode)(g,{ref:"refRoot"},{default:function(){return[(0,o.createVNode)(h,{ref:"refReference"},{default:function(){return[null!==(n=null===(t=(e=c.$slots).default)||void 0===t?void 0:t.call(e))&&void 0!==n?n:(0,o.createVNode)("span",null,null)]}}),(0,o.createVNode)(o.Teleport,{to:c.boundary,disabled:!c.transBoundary},{default:function(){return[(0,o.withDirectives)((0,o.createVNode)(p,{ref:"refContent","data-theme":c.theme,width:c.width,height:c.height},{default:function(){return[null!==(l=null===(i=(r=c.$slots).content)||void 0===i?void 0:i.call(r))&&void 0!==l?l:c.content]},arrow:function(){var e,t;return c.arrow?(0,o.createVNode)(a,{ref:"refArrow"},{default:function(){return[null===(t=(e=c.$slots).arrow)||void 0===t?void 0:t.call(e)]}}):""}}),[[(0,o.resolveDirective)("clickoutside"),c.handleClickOutside]])]}})]}})}}),xe=(0,e.withInstall)(be)})(),l})()));
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("../directives"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../directives"],t);else{var n="object"==typeof exports?t(require("../shared"),require("vue"),require("../directives")):t(e["../shared"],e.vue,e["../directives"]);for(var o in n)("object"==typeof exports?exports:e)[o]=n[o]}}(self,((e,t,n)=>(()=>{var o={8022:(e,t,n)=>{var o=n(4481),r=n(6426),i=r;i.v1=o,i.v4=r,e.exports=i},8725:e=>{for(var t=[],n=0;n<256;++n)t[n]=(n+256).toString(16).substr(1);e.exports=function(e,n){var o=n||0,r=t;return[r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]]].join("")}},9157:e=>{var t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(t){var n=new Uint8Array(16);e.exports=function(){return t(n),n}}else{var o=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),o[t]=e>>>((3&t)<<3)&255;return o}}},4481:(e,t,n)=>{var o,r,i=n(9157),l=n(8725),a=0,c=0;e.exports=function(e,t,n){var s=t&&n||0,u=t||[],f=(e=e||{}).node||o,d=void 0!==e.clockseq?e.clockseq:r;if(null==f||null==d){var p=i();null==f&&(f=o=[1|p[0],p[1],p[2],p[3],p[4],p[5]]),null==d&&(d=r=16383&(p[6]<<8|p[7]))}var m=void 0!==e.msecs?e.msecs:(new Date).getTime(),v=void 0!==e.nsecs?e.nsecs:c+1,h=m-a+(v-c)/1e4;if(h<0&&void 0===e.clockseq&&(d=d+1&16383),(h<0||m>a)&&void 0===e.nsecs&&(v=0),v>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=m,c=v,r=d;var g=(1e4*(268435455&(m+=122192928e5))+v)%4294967296;u[s++]=g>>>24&255,u[s++]=g>>>16&255,u[s++]=g>>>8&255,u[s++]=255&g;var y=m/4294967296*1e4&268435455;u[s++]=y>>>8&255,u[s++]=255&y,u[s++]=y>>>24&15|16,u[s++]=y>>>16&255,u[s++]=d>>>8|128,u[s++]=255&d;for(var w=0;w<6;++w)u[s+w]=f[w];return t||l(u)}},6426:(e,t,n)=>{var o=n(9157),r=n(8725);e.exports=function(e,t,n){var i=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var l=(e=e||{}).random||(e.rng||o)();if(l[6]=15&l[6]|64,l[8]=63&l[8]|128,t)for(var a=0;a<16;++a)t[i+a]=l[a];return t||r(l)}},4061:e=>{"use strict";e.exports=n},4212:t=>{"use strict";t.exports=e},748:e=>{"use strict";e.exports=t}},r={};function i(e){var t=r[e];if(void 0!==t)return t.exports;var n=r[e]={exports:{}};return o[e](n,n.exports,i),n.exports}i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var l={};return(()=>{"use strict";i.r(l),i.d(l,{default:()=>xe});var e=i(4212);function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function n(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i=[],l=!0,a=!1;try{for(n=n.call(e);!(l=(o=n.next()).done)&&(i.push(o.value),!t||i.length!==t);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==n.return||n.return()}finally{if(a)throw r}}return i}}(e,n)||function(e,n){if(e){if("string"==typeof e)return t(e,n);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?t(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var o=i(748),r=i(4061);const a=(0,o.defineComponent)({name:"PopArrow",render:function(){var t=(0,e.resolveClassName)("pop2-arrow");return(0,o.createVNode)("div",{class:t},null)}});function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s,u,f=function(){return!0};!function(e){e.SHOW="show",e.HIDE="hide",e.CLICK_OUTSIDE="clickoutside"}(u||(u={}));var d=(c(s={},u.SHOW,f),c(s,u.HIDE,f),c(s,u.CLICK_OUTSIDE,f),s);const p=(0,o.defineComponent)({name:"PopContent",props:{width:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]).def("auto"),height:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]).def("auto")},setup:function(e){var t=function(e){return/^\d+\.?\d*$/.test("".concat(e))?"".concat(e,"px"):e};return{style:(0,o.computed)((function(){return{width:t(e.width),height:t(e.height)}}))}},render:function(){var t,n,r,i,l,a,c=[(0,e.resolveClassName)("popover2"),(0,e.resolveClassName)("pop2-content")];return(0,o.createVNode)("div",{class:c,tabindex:"-1",style:this.style},[null!==(r=null===(n=(t=this.$slots).default)||void 0===n?void 0:n.call(t))&&void 0!==r?r:"",null!==(a=null===(l=(i=this.$slots).arrow)||void 0===l?void 0:l.call(i))&&void 0!==a?a:""])}});var m={onAfterHidden:Function,onAfterShow:Function},v=Object.assign({isShow:e.PropTypes.bool.def(!1),always:e.PropTypes.bool.def(!1),disabled:e.PropTypes.bool.def(!1),width:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]).def("auto"),height:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]).def("auto"),content:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]).def(""),placement:e.PropTypes.placement(["auto","auto-start","auto-end","top","top-start","top-end","bottom","bottom-start","bottom-end","right","right-start","right-end","left","left-start","left-end"]).def("top"),theme:e.PropTypes.string.def("dark"),trigger:e.PropTypes.string.def("hover"),arrow:e.PropTypes.bool.def(!0),padding:e.PropTypes.number.def(5),offset:e.PropTypes.number.def(6),boundary:e.PropTypes.string.def(void 0),zIndex:e.PropTypes.number.def(void 0),disableTeleport:e.PropTypes.bool.def(!1),autoPlacement:e.PropTypes.bool.def(!1),autoVisibility:e.PropTypes.bool.def(!0),disableOutsideClick:e.PropTypes.bool.def(!1)},m);const h=(0,o.defineComponent)({name:"PopReference",render:function(){var e,t,n;return null!==(n=null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e))&&void 0!==n?n:""}}),g=(0,o.defineComponent)({props:{class:e.PropTypes.string.def("")},render:function(){var e,t;return(0,o.createVNode)(o.Fragment,null,[null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e)])}});function y(e){return e.split("-")[0]}function w(e){return e.split("-")[1]}function b(e){return["top","bottom"].includes(y(e))?"x":"y"}function x(e){return"y"===e?"height":"width"}function T(e,t,n){let{reference:o,floating:r}=e;const i=o.x+o.width/2-r.width/2,l=o.y+o.height/2-r.height/2,a=b(t),c=x(a),s=o[c]/2-r[c]/2,u="x"===a;let f;switch(y(t)){case"top":f={x:i,y:o.y-r.height};break;case"bottom":f={x:i,y:o.y+o.height};break;case"right":f={x:o.x+o.width,y:l};break;case"left":f={x:o.x-r.width,y:l};break;default:f={x:o.x,y:o.y}}switch(w(t)){case"start":f[a]-=s*(n&&u?-1:1);break;case"end":f[a]+=s*(n&&u?-1:1)}return f}function P(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function R(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function C(e,t){var n;void 0===t&&(t={});const{x:o,y:r,platform:i,rects:l,elements:a,strategy:c}=e,{boundary:s="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=t,m=P(p),v=a[d?"floating"===f?"reference":"floating":f],h=R(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(v)))||n?v:v.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:s,rootBoundary:u,strategy:c})),g=R(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:"floating"===f?{...l.floating,x:o,y:r}:l.reference,offsetParent:await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),strategy:c}):l[f]);return{top:h.top-g.top+m.top,bottom:g.bottom-h.bottom+m.bottom,left:h.left-g.left+m.left,right:g.right-h.right+m.right}}const E=Math.min,A=Math.max;function O(e,t,n){return A(e,E(t,n))}const S={left:"right",right:"left",bottom:"top",top:"bottom"};function L(e){return e.replace(/left|right|bottom|top/g,(e=>S[e]))}function H(e,t,n){void 0===n&&(n=!1);const o=w(e),r=b(e),i=x(r);let l="x"===r?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=L(l)),{main:l,cross:L(l)}}const D={start:"end",end:"start"};function N(e){return e.replace(/start|end/g,(e=>D[e]))}const k=["top","right","bottom","left"],I=k.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]);function V(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function j(e){return k.some((t=>e[t]>=0))}const $=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:o}=t,r=await async function(e,t){const{placement:n,platform:o,elements:r}=e,i=await(null==o.isRTL?void 0:o.isRTL(r.floating)),l=y(n),a=w(n),c="x"===b(n),s=["left","top"].includes(l)?-1:1,u=i&&c?-1:1,f="function"==typeof t?t(e):t;let{mainAxis:d,crossAxis:p,alignmentAxis:m}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return a&&"number"==typeof m&&(p="end"===a?-1*m:m),c?{x:p*u,y:d*s}:{x:d*s,y:p*u}}(t,e);return{x:n+r.x,y:o+r.y,data:r}}}};const M=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=e,s={x:n,y:o},u=await C(t,c),f=b(y(r)),d=function(e){return"x"===e?"y":"x"}(f);let p=s[f],m=s[d];if(i){const e="y"===f?"bottom":"right";p=O(p+u["y"===f?"top":"left"],p,p-u[e])}if(l){const e="y"===d?"bottom":"right";m=O(m+u["y"===d?"top":"left"],m,m-u[e])}const v=a.fn({...t,[f]:p,[d]:m});return{...v,data:{x:v.x-n,y:v.y-o}}}}};function W(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function B(e){if(null==e)return window;if(!W(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function q(e){return B(e).getComputedStyle(e)}function F(e){return W(e)?"":e?(e.nodeName||"").toLowerCase():""}function z(){const e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}function _(e){return e instanceof B(e).HTMLElement}function U(e){return e instanceof B(e).Element}function K(e){return"undefined"!=typeof ShadowRoot&&(e instanceof B(e).ShadowRoot||e instanceof ShadowRoot)}function X(e){const{overflow:t,overflowX:n,overflowY:o}=q(e);return/auto|scroll|overlay|hidden/.test(t+o+n)}function Y(e){return["table","td","th"].includes(F(e))}function Z(e){const t=/firefox/i.test(z()),n=q(e);return"none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||["transform","perspective"].includes(n.willChange)||t&&"filter"===n.willChange||t&&!!n.filter&&"none"!==n.filter}function G(){return!/^((?!chrome|android).)*safari/i.test(z())}const J=Math.min,Q=Math.max,ee=Math.round;function te(e,t,n){var o,r,i,l;void 0===t&&(t=!1),void 0===n&&(n=!1);const a=e.getBoundingClientRect();let c=1,s=1;t&&_(e)&&(c=e.offsetWidth>0&&ee(a.width)/e.offsetWidth||1,s=e.offsetHeight>0&&ee(a.height)/e.offsetHeight||1);const u=U(e)?B(e):window,f=!G()&&n,d=(a.left+(f&&null!=(o=null==(r=u.visualViewport)?void 0:r.offsetLeft)?o:0))/c,p=(a.top+(f&&null!=(i=null==(l=u.visualViewport)?void 0:l.offsetTop)?i:0))/s,m=a.width/c,v=a.height/s;return{width:m,height:v,top:p,right:d+m,bottom:p+v,left:d,x:d,y:p}}function ne(e){return(t=e,(t instanceof B(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function oe(e){return U(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function re(e){return te(ne(e)).left+oe(e).scrollLeft}function ie(e,t,n){const o=_(t),r=ne(t),i=te(e,o&&function(e){const t=te(e);return ee(t.width)!==e.offsetWidth||ee(t.height)!==e.offsetHeight}(t),"fixed"===n);let l={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if(o||!o&&"fixed"!==n)if(("body"!==F(t)||X(r))&&(l=oe(t)),_(t)){const e=te(t,!0);a.x=e.x+t.clientLeft,a.y=e.y+t.clientTop}else r&&(a.x=re(r));return{x:i.left+l.scrollLeft-a.x,y:i.top+l.scrollTop-a.y,width:i.width,height:i.height}}function le(e){return"html"===F(e)?e:e.assignedSlot||e.parentNode||(K(e)?e.host:null)||ne(e)}function ae(e){return _(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function ce(e){const t=B(e);let n=ae(e);for(;n&&Y(n)&&"static"===getComputedStyle(n).position;)n=ae(n);return n&&("html"===F(n)||"body"===F(n)&&"static"===getComputedStyle(n).position&&!Z(n))?t:n||function(e){let t=le(e);for(K(t)&&(t=t.host);_(t)&&!["html","body"].includes(F(t));){if(Z(t))return t;t=t.parentNode}return null}(e)||t}function se(e){if(_(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=te(e);return{width:t.width,height:t.height}}function ue(e){const t=le(e);return["html","body","#document"].includes(F(t))?e.ownerDocument.body:_(t)&&X(t)?t:ue(t)}function fe(e,t){var n;void 0===t&&(t=[]);const o=ue(e),r=o===(null==(n=e.ownerDocument)?void 0:n.body),i=B(o),l=r?[i].concat(i.visualViewport||[],X(o)?o:[]):o,a=t.concat(l);return r?a:a.concat(fe(l))}function de(e,t,n){return"viewport"===t?R(function(e,t){const n=B(e),o=ne(e),r=n.visualViewport;let i=o.clientWidth,l=o.clientHeight,a=0,c=0;if(r){i=r.width,l=r.height;const e=G();(e||!e&&"fixed"===t)&&(a=r.offsetLeft,c=r.offsetTop)}return{width:i,height:l,x:a,y:c}}(e,n)):U(t)?function(e,t){const n=te(e,!1,"fixed"===t),o=n.top+e.clientTop,r=n.left+e.clientLeft;return{top:o,left:r,x:r,y:o,right:r+e.clientWidth,bottom:o+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}(t,n):R(function(e){var t;const n=ne(e),o=oe(e),r=null==(t=e.ownerDocument)?void 0:t.body,i=Q(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),l=Q(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0);let a=-o.scrollLeft+re(e);const c=-o.scrollTop;return"rtl"===q(r||n).direction&&(a+=Q(n.clientWidth,r?r.clientWidth:0)-i),{width:i,height:l,x:a,y:c}}(ne(e)))}function pe(e){const t=fe(e),n=["absolute","fixed"].includes(q(e).position)&&_(e)?ce(e):e;return U(n)?t.filter((e=>U(e)&&function(e,t){const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&K(n)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(e,n)&&"body"!==F(e))):[]}const me={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=[..."clippingAncestors"===n?pe(t):[].concat(n),o],l=i[0],a=i.reduce(((e,n)=>{const o=de(t,n,r);return e.top=Q(o.top,e.top),e.right=J(o.right,e.right),e.bottom=J(o.bottom,e.bottom),e.left=Q(o.left,e.left),e}),de(t,l,r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:o}=e;const r=_(n),i=ne(n);if(n===i)return t;let l={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if((r||!r&&"fixed"!==o)&&(("body"!==F(n)||X(i))&&(l=oe(n)),_(n))){const e=te(n,!0);a.x=e.x+n.clientLeft,a.y=e.y+n.clientTop}return{...t,x:t.x-l.scrollLeft+a.x,y:t.y-l.scrollTop+a.y}},isElement:U,getDimensions:se,getOffsetParent:ce,getDocumentElement:ne,getElementRects:e=>{let{reference:t,floating:n,strategy:o}=e;return{reference:ie(t,ce(n),o),floating:{...se(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===q(e).direction},ve=function(t,n,r,i,l,a){var s=(0,o.ref)(!1),u=function(){var e,t,n,o=h(null===(e=r.value)||void 0===e?void 0:e.$el);return(null===(t=document.fullscreenElement)||void 0===t?void 0:t.shadowRoot)?document.fullscreenElement.shadowRoot.contains(o):null===(n=document.fullscreenElement)||void 0===n?void 0:n.contains(o)},f=["dark","light"],d=(0,o.computed)((function(){var e=t.theme.split(/\s+/);return e.sort((function(e,t){return Number(f.includes(t))-Number(f.includes(e))})),{systemThemes:e,customThemes:e.filter((function(e){return!f.includes(e)}))}})),p=function(){return!u()&&t.autoVisibility},m=function(){var e,n,o,c;return{elReference:h(null===(e=r.value)||void 0===e?void 0:e.$el),elContent:h(null===(n=i.value)||void 0===n?void 0:n.$el),elArrow:t.arrow?h(null===(o=l.value)||void 0===o?void 0:o.$el):null,root:h(null===(c=a.value)||void 0===c?void 0:c.$el)}},v=function(e){var n=[$(t.offset),M({padding:t.padding})],o={placement:t.placement,middleware:n};if(t.arrow&&n.push((e=>({name:"arrow",options:e,async fn(t){const{element:n,padding:o=0}=null!=e?e:{},{x:r,y:i,placement:l,rects:a,platform:c}=t;if(null==n)return{};const s=P(o),u={x:r,y:i},f=b(l),d=w(l),p=x(f),m=await c.getDimensions(n),v="y"===f?"top":"left",h="y"===f?"bottom":"right",g=a.reference[p]+a.reference[f]-u[f]-a.floating[p],y=u[f]-a.reference[f],T=await(null==c.getOffsetParent?void 0:c.getOffsetParent(n));let R=T?"y"===f?T.clientHeight||0:T.clientWidth||0:0;0===R&&(R=a.floating[p]);const C=g/2-y/2,E=s[v],A=R-m[p]-s[h],S=R/2-m[p]/2+C,L=O(E,S,A),H=("start"===d?s[v]:s[h])>0&&S!==L&&a.reference[p]<=a.floating[p];return{[f]:u[f]-(H?S<E?E-S:A-S:0),data:{[f]:L,centerOffset:S-L}}}}))({element:e})),u()||t.autoPlacement?n.push(function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,o,r,i,l;const{x:a,y:c,rects:s,middlewareData:u,placement:f,platform:d,elements:p}=t,{alignment:m=null,allowedPlacements:v=I,autoAlignment:h=!0,...g}=e,b=function(e,t,n){return(e?[...n.filter((t=>w(t)===e)),...n.filter((t=>w(t)!==e))]:n.filter((e=>y(e)===e))).filter((n=>!e||w(n)===e||!!t&&N(n)!==n))}(m,h,v),x=await C(t,g),T=null!=(n=null==(o=u.autoPlacement)?void 0:o.index)?n:0,P=b[T];if(null==P)return{};const{main:R,cross:E}=H(P,s,await(null==d.isRTL?void 0:d.isRTL(p.floating)));if(f!==P)return{x:a,y:c,reset:{placement:b[0]}};const A=[x[y(P)],x[R],x[E]],O=[...null!=(r=null==(i=u.autoPlacement)?void 0:i.overflows)?r:[],{placement:P,overflows:A}],S=b[T+1];if(S)return{data:{index:T+1,overflows:O},reset:{placement:S}};const L=O.slice().sort(((e,t)=>e.overflows[0]-t.overflows[0])),D=null==(l=L.find((e=>{let{overflows:t}=e;return t.every((e=>e<=0))})))?void 0:l.placement,k=null!=D?D:L[0].placement;return k!==f?{data:{index:T+1,overflows:O},reset:{placement:k}}:{}}}}()):(n.unshift(function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){var n;const{placement:o,elements:r,rects:i,platform:l,strategy:a}=t,{padding:c=2,x:s,y:u}=e,f=R(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({rect:i.reference,offsetParent:await(null==l.getOffsetParent?void 0:l.getOffsetParent(r.floating)),strategy:a}):i.reference),d=null!=(n=await(null==l.getClientRects?void 0:l.getClientRects(r.reference)))?n:[],p=P(c),m=await l.getElementRects({reference:{getBoundingClientRect:function(){var e;if(2===d.length&&d[0].left>d[1].right&&null!=s&&null!=u)return null!=(e=d.find((e=>s>e.left-p.left&&s<e.right+p.right&&u>e.top-p.top&&u<e.bottom+p.bottom)))?e:f;if(d.length>=2){if("x"===b(o)){const e=d[0],t=d[d.length-1],n="top"===y(o),r=e.top,i=t.bottom,l=n?e.left:t.left,a=n?e.right:t.right;return{top:r,bottom:i,left:l,right:a,width:a-l,height:i-r,x:l,y:r}}const e="left"===y(o),t=A(...d.map((e=>e.right))),n=E(...d.map((e=>e.left))),r=d.filter((o=>e?o.left===n:o.right===t)),i=r[0].top,l=r[r.length-1].bottom;return{top:i,bottom:l,left:n,right:t,width:t-n,height:l-i,x:n,y:i}}return f}},floating:r.floating,strategy:a});return i.reference.x!==m.reference.x||i.reference.y!==m.reference.y||i.reference.width!==m.reference.width||i.reference.height!==m.reference.height?{reset:{rects:m}}:{}}}}()),n.push(function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:o,middlewareData:r,rects:i,initialPlacement:l,platform:a,elements:c}=t,{mainAxis:s=!0,crossAxis:u=!0,fallbackPlacements:f,fallbackStrategy:d="bestFit",flipAlignment:p=!0,...m}=e,v=y(o),h=f||(v!==l&&p?function(e){const t=L(e);return[N(e),t,N(t)]}(l):[L(l)]),g=[l,...h],w=await C(t,m),b=[];let x=(null==(n=r.flip)?void 0:n.overflows)||[];if(s&&b.push(w[v]),u){const{main:e,cross:t}=H(o,i,await(null==a.isRTL?void 0:a.isRTL(c.floating)));b.push(w[e],w[t])}if(x=[...x,{placement:o,overflows:b}],!b.every((e=>e<=0))){var T,P;const e=(null!=(T=null==(P=r.flip)?void 0:P.index)?T:0)+1,t=g[e];if(t)return{data:{index:e,overflows:x},reset:{placement:t}};let n="bottom";switch(d){case"bestFit":{var R;const e=null==(R=x.map((e=>[e,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:R[0].placement;e&&(n=e);break}case"initialPlacement":n=l}if(o!==n)return{reset:{placement:n}}}return{}}}}())),p()&&o.middleware.push(function(e){let{strategy:t="referenceHidden",...n}={};return{name:"hide",async fn(e){const{rects:o}=e;switch(t){case"referenceHidden":{const t=V(await C(e,{...n,elementContext:"reference"}),o.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:j(t)}}}case"escaped":{const t=V(await C(e,{...n,altBoundary:!0}),o.floating);return{data:{escapedOffsets:t,escaped:j(t)}}}default:return{}}}}}()),u()){var r={getElementRects:function(e){var t=e.reference,n=e.floating,o=t.getBoundingClientRect(),r=n.getBoundingClientRect();return{reference:{width:o.width,height:o.height,x:o.x,y:o.y},floating:{width:r.width,height:r.height,x:r.x,y:r.y}}},getDimensions:function(e){var t=e.getBoundingClientRect();return{width:t.width,height:t.height}},getClippingRect:function(e){!function(e){if(null==e)throw new TypeError("Cannot destructure undefined")}(e);var t=document.fullscreenElement.getBoundingClientRect();return{width:t.width,height:t.height,x:0,y:0}}},i=r.getElementRects,l=r.getDimensions,a=r.getClippingRect;Object.assign(o,{platform:{getElementRects:i,getDimensions:l,getClippingRect:a}})}return o},h=function e(t){return t instanceof HTMLElement?t:t instanceof Text?e(t.nextElementSibling):null},g=d.value.customThemes.join(" "),S=d.value.customThemes.reduce((function(e,t){return Object.assign(c({},"data-".concat(t,"-theme"),!0),e)}),{}),D="".concat(g),k=null,W=function(e){var t=window.devicePixelRatio||1;return Math.round(e*t)/t||0},B=function(){var e=m(),n=e.elReference,o=e.elContent,r=e.elArrow;if(n){var i=v(r);((e,t,n)=>(async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:l}=n,a=await(null==l.isRTL?void 0:l.isRTL(t));let c=await l.getElementRects({reference:e,floating:t,strategy:r}),{x:s,y:u}=T(c,o,a),f=o,d={};for(let n=0;n<i.length;n++){const{name:p,fn:m}=i[n],{x:v,y:h,data:g,reset:y}=await m({x:s,y:u,initialPlacement:o,placement:f,strategy:r,middlewareData:d,rects:c,platform:l,elements:{reference:e,floating:t}});s=null!=v?v:s,u=null!=h?h:u,d={...d,[p]:{...d[p],...g}},y&&("object"==typeof y&&(y.placement&&(f=y.placement),y.rects&&(c=!0===y.rects?await l.getElementRects({reference:e,floating:t,strategy:r}):y.rects),({x:s,y:u}=T(c,f,a))),n=-1)}return{x:s,y:u,placement:f,strategy:r,middlewareData:d}})(e,t,{platform:me,...n}))(n,o,i).then((function(e){var n=e.x,i=e.y,l=e.placement,a=e.middlewareData,s=o.className;o.className="".concat(s.replace(D,"")," ").concat(D).replace(/\s+/gm," ").replace(/^\s+|\s+$/g,""),Object.keys(S).forEach((function(e){o.setAttribute(e,S[e])}));var u=l.split("-")[0],f=u;["left","right","top","bottom"].includes(u)||(f="top"),function(e,t,n,o){var r;Object.assign(e.style,{left:"0",top:"0",transform:"translate3d(".concat(W(t),"px,").concat(W(n),"px,0)")});var i=!!p()&&(null===(r=o.hide)||void 0===r?void 0:r.referenceHidden);Object.assign(e.style,{visibility:i?"hidden":"visible"})}(o,n,i,a),function(e,n,o){if(t.arrow){var r=o.arrow,i=r.x,l=r.y;e.setAttribute("data-arrow",n),Object.assign(e.style,{left:"",top:"",bottom:"",right:""});var a={top:"bottom",right:"left",bottom:"top",left:"right"}[n];Object.assign(e.style,c({left:null!==i?"".concat(i,"px"):"",top:null!==l?"".concat(l,"px"):""},a,"-4px"))}}(r,f,a)}))}},q=function(){s.value=!0},F=void 0,z=!1,_=function(){F=setTimeout((function(){s.value=!1}),100)},K=function(){s.value?_():q()},X=function(){K()},Y=function(){"hover"===t.trigger&&F&&(z=!0,clearTimeout(F),F=void 0)},Z=function(){z&&(_(),z=!1)};return(0,o.watch)(s,(function(o){var r,l;o?((l=h(null===(r=i.value)||void 0===r?void 0:r.$el)).style.setProperty("display","block"),l.style.setProperty("z-index","".concat(t.zIndex?t.zIndex:e.bkZIndexManager.getModalNextIndex())),B(),n.emit("afterShow",{isSHow:!0})):function(){var e;h(null===(e=i.value)||void 0===e?void 0:e.$el).style.setProperty("display","none"),n.emit("afterHidden",{isSHow:!1})}()})),{showPopover:q,hidePopover:_,resolveTriggerEvents:function(){var e;return null!==(e={hover:{content:[["mouseenter",Y],["mouseleave",Z]],reference:[["mouseenter",q],["mouseleave",_],["focus",q],["blur",_]]},click:[["click",X]],manual:[[]]}[t.trigger])&&void 0!==e?e:[]},updatePopover:B,triggerPopover:K,resolvePopElements:m,isElementFullScreen:u,resolveTargetElement:h,createPopInstance:function(){var e=m(),t=e.elReference,n=e.elContent;k=function(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:l=!0,animationFrame:a=!1}=o,c=r&&!a,s=i&&!a,u=c||s?[...U(e)?fe(e):[],...fe(t)]:[];u.forEach((e=>{c&&e.addEventListener("scroll",n,{passive:!0}),s&&e.addEventListener("resize",n)}));let f,d=null;l&&(d=new ResizeObserver(n),U(e)&&!a&&d.observe(e),d.observe(t));let p=a?te(e):null;return a&&function t(){const o=te(e);!p||o.x===p.x&&o.y===p.y&&o.width===p.width&&o.height===p.height||n(),p=o,f=requestAnimationFrame(t)}(),l||n(),()=>{var e;u.forEach((e=>{c&&e.removeEventListener("scroll",n),s&&e.removeEventListener("resize",n)})),null==(e=d)||e.disconnect(),d=null,a&&cancelAnimationFrame(f)}}(t,n,(function(){B()}))},localIsShow:s,cleanup:k}};var he=i(8022),ge=null,ye=null,we=null;const be=(0,o.defineComponent)({name:"Popover2",components:{Content:p,Arrow:a,Root:g},directives:{clickoutside:r.clickoutside},props:v,emits:d,setup:function(e,t){var r=e.content,i=e.theme,l=e.disableTeleport,a=(0,o.ref)(),c=(0,o.ref)(),s=(0,o.ref)(),f=(0,o.ref)(),d=(0,o.ref)(!1),p=null,m=ve(e,t,a,c,s,f),v=m.localIsShow,h=m.showPopover,g=m.hidePopover,y=m.resolveTriggerEvents,w=m.updatePopover,b=m.resolvePopElements,x=m.isElementFullScreen,T=m.cleanup,P=m.createPopInstance,R=function(){g()},C=function(){P(),e.always?h():E()};e.always||e.disabled||(0,o.watch)((function(){return e.isShow}),(function(){e.isShow?h():g()}),{immediate:!0}),(0,o.watch)((function(){return[e.disabled]}),(function(e){e[0]?C():N()}));var E=function(){var e=b(),t=e.elReference,n=e.elContent;if(p=y(),Array.isArray(p))A(t,p);else{var o=p,r=o.content,i=o.reference;A(t,i),A(n,r)}},A=function(e,t){t.forEach((function(t){var o=n(t,2),r=o[0],i=o[1];e.addEventListener(r,i)}))},O=function(){var e=b(),t=e.elReference,n=e.root;D.value=L(d.value,n||t)},S=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#",n=function(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=arguments.length>1?arguments[1]:void 0,i=null,l=function(e){null===i&&e()},a=function(){n&&(i="[data-fllsrn-id=".concat(ye,"]"))},c=function(){if(!/^body$/i.test(e.boundary)&&"string"==typeof e.boundary){if(!o(e.boundary))return console.error("props.boundary is not available selector"),void(i="body");i=e.boundary}};return l((function(){if(/^parent$/i.test(e.boundary)){i="".concat(t).concat(ge);var n=(r||{}).parentNode;(null==n?void 0:n.parentNode)&&(n.parentNode.setAttribute("data-pnode-id",we),i="[data-pnode-id=".concat(we,"]"))}})),l(c),l(a),l((function(){i="string"==typeof e.boundary?e.boundary:"".concat(t).concat(ge)})),i},o=function(e){return document.querySelector(e)instanceof HTMLElement};if(null===ge||!o("#".concat(ge))){ge="id_".concat((0,he.v4)());var r=document.createElement("div");r.setAttribute("id",ge),r.setAttribute("data-popper-id",ge),document.body.append(r)}null===ye&&(ye="id_".concat((0,he.v4)())),null===we&&(we="id_".concat((0,he.v4)()));var i=function(){var e;if(null===document.fullscreenElement){var t="[data-fllsrn-id=".concat(ye,"]");(null!==(e=document.querySelectorAll(t))&&void 0!==e?e:[]).forEach((function(e){e.removeAttribute("data-fllsrn-id")}))}else document.fullscreenElement.setAttribute("data-fllsrn-id",ye)};return{popContainerId:ge,prefixId:n(),getPrefixId:n,resetFullscreenElementTag:i}}(e,"#"),L=S.getPrefixId,H=S.resetFullscreenElementTag,D=(0,o.ref)();O();var N=function(){"function"==typeof T&&T(),function(){if(null==p?void 0:p.length){var e=b().elReference;e&&p.forEach((function(t){var o=n(t,2),r=o[0],i=o[1];e.removeEventListener(r,i)})),p=null}}()},k=function(){d.value=x(),H(),O(),w()};(0,o.onMounted)((function(){e.disabled||(C(),O(),document.body.addEventListener("fullscreenchange",k))})),(0,o.onUnmounted)((function(){N(),document.body.removeEventListener("fullscreenchange",k)})),t.expose({show:function(){h()},hide:R});var I=(0,o.computed)((function(){return(d.value||!l)&&"string"==typeof D.value}));return{boundary:D,arrow:e.arrow,refReference:a,refContent:c,refArrow:s,content:r,theme:i,transBoundary:I,handleClickOutside:function(n){t.emit(u.CLICK_OUTSIDE,{isShow:v.value,event:n}),e.disableOutsideClick||e.always||e.disabled||"manual"===e.trigger||v.value&&R()}}},render:function(){var e,t,n,r,i,l,c=this;return(0,o.createVNode)(g,{ref:"refRoot"},{default:function(){return[(0,o.createVNode)(h,{ref:"refReference"},{default:function(){return[null!==(n=null===(t=(e=c.$slots).default)||void 0===t?void 0:t.call(e))&&void 0!==n?n:(0,o.createVNode)("span",null,null)]}}),(0,o.createVNode)(o.Teleport,{to:c.boundary,disabled:!c.transBoundary},{default:function(){return[(0,o.withDirectives)((0,o.createVNode)(p,{ref:"refContent","data-theme":c.theme,width:c.width,height:c.height},{default:function(){return[null!==(l=null===(i=(r=c.$slots).content)||void 0===i?void 0:i.call(r))&&void 0!==l?l:c.content]},arrow:function(){var e,t;return c.arrow?(0,o.createVNode)(a,{ref:"refArrow"},{default:function(){return[null===(t=(e=c.$slots).arrow)||void 0===t?void 0:t.call(e)]}}):""}}),[[(0,o.resolveDirective)("clickoutside"),c.handleClickOutside]])]}})]}})}}),xe=(0,e.withInstall)(be)})(),l})()));
|