import{a8 as $,ag as F,D as V,ah as j,ai as Q,aj as D,ak as W,al as U,am as B,X as M}from"./el-button-98327865.js";import{x as g,q as _,l as R,e as y,bc as K}from"./index-7ade0fa6.js";function O(e){var t;const n=F(e);return(t=n==null?void 0:n.$el)!=null?t:n}const h=V?window:void 0,z=V?window.document:void 0;function E(...e){let t,n,s,i;if(j(e[0])||Array.isArray(e[0])?([n,s,i]=e,t=h):[t,n,s,i]=e,!t)return Q;Array.isArray(n)||(n=[n]),Array.isArray(s)||(s=[s]);const c=[],a=()=>{c.forEach(u=>u()),c.length=0},f=(u,d,r,o)=>(u.addEventListener(d,r,o),()=>u.removeEventListener(d,r,o)),p=g(()=>[O(t),F(i)],([u,d])=>{a(),u&&c.push(...n.flatMap(r=>s.map(o=>f(u,r,o,d))))},{immediate:!0,flush:"post"}),v=()=>{p(),a()};return $(v),v}let S=!1;function ie(e,t,n={}){const{window:s=h,ignore:i=[],capture:c=!0,detectIframe:a=!1}=n;if(!s)return;M&&!S&&(S=!0,Array.from(s.document.body.children).forEach(r=>r.addEventListener("click",Q)));let f=!0;const p=r=>i.some(o=>{if(typeof o=="string")return Array.from(s.document.querySelectorAll(o)).some(l=>l===r.target||r.composedPath().includes(l));{const l=O(o);return l&&(r.target===l||r.composedPath().includes(l))}}),u=[E(s,"click",r=>{const o=O(e);if(!(!o||o===r.target||r.composedPath().includes(o))){if(r.detail===0&&(f=!p(r)),!f){f=!0;return}t(r)}},{passive:!0,capture:c}),E(s,"pointerdown",r=>{const o=O(e);o&&(f=!r.composedPath().includes(o)&&!p(r))},{passive:!0}),a&&E(s,"blur",r=>{var o;const l=O(e);((o=s.document.activeElement)==null?void 0:o.tagName)==="IFRAME"&&!(l!=null&&l.contains(s.document.activeElement))&&t(r)})].filter(Boolean);return()=>u.forEach(r=>r())}function G(e,t=!1){const n=_(),s=()=>n.value=!!e();return s(),D(s,t),n}function H(e){return JSON.parse(JSON.stringify(e))}const N=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},A="__vueuse_ssr_handlers__";N[A]=N[A]||{};function ue({document:e=z}={}){if(!e)return _("visible");const t=_(e.visibilityState);return E(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var x=Object.getOwnPropertySymbols,J=Object.prototype.hasOwnProperty,X=Object.prototype.propertyIsEnumerable,q=(e,t)=>{var n={};for(var s in e)J.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(e!=null&&x)for(var s of x(e))t.indexOf(s)<0&&X.call(e,s)&&(n[s]=e[s]);return n};function le(e,t,n={}){const s=n,{window:i=h}=s,c=q(s,["window"]);let a;const f=G(()=>i&&"ResizeObserver"in i),p=()=>{a&&(a.disconnect(),a=void 0)},v=g(()=>O(e),d=>{p(),f.value&&i&&d&&(a=new ResizeObserver(t),a.observe(d,c))},{immediate:!0,flush:"post"}),u=()=>{p(),v()};return $(u),{isSupported:f,stop:u}}var C;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(C||(C={}));var Y=Object.defineProperty,L=Object.getOwnPropertySymbols,Z=Object.prototype.hasOwnProperty,k=Object.prototype.propertyIsEnumerable,T=(e,t,n)=>t in e?Y(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ee=(e,t)=>{for(var n in t||(t={}))Z.call(t,n)&&T(e,n,t[n]);if(L)for(var n of L(t))k.call(t,n)&&T(e,n,t[n]);return e};const te={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};ee({linear:W},te);function ce(e,t,n,s={}){var i,c,a;const{clone:f=!1,passive:p=!1,eventName:v,deep:u=!1,defaultValue:d}=s,r=R(),o=n||(r==null?void 0:r.emit)||((i=r==null?void 0:r.$emit)==null?void 0:i.bind(r))||((a=(c=r==null?void 0:r.proxy)==null?void 0:c.$emit)==null?void 0:a.bind(r==null?void 0:r.proxy));let l=v;t||(t="modelValue"),l=v||l||`update:${t.toString()}`;const P=m=>f?U(f)?f(m):H(m):m,w=()=>B(e[t])?P(e[t]):d;if(p){const m=w(),I=_(m);return g(()=>e[t],b=>I.value=P(b)),g(I,b=>{(b!==e[t]||u)&&o(l,b)},{deep:u}),I}else return y({get(){return w()},set(m){o(l,m)}})}function fe({window:e=h}={}){if(!e)return _(!1);const t=_(e.document.hasFocus());return E(e,"blur",()=>{t.value=!1}),E(e,"focus",()=>{t.value=!0}),t}function de(e){return e==null}class ne extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function pe(e,t){throw new ne(`[${e}] ${t}`)}function ve(e,t){}const me="update:modelValue",Oe="change",Ee=e=>e,se=["class","style"],re=/^on[A-Z]/,_e=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,s=y(()=>((n==null?void 0:n.value)||[]).concat(se)),i=R();return i?y(()=>{var c;return K(Object.entries((c=i.proxy)==null?void 0:c.$attrs).filter(([a])=>!s.value.includes(a)&&!(t&&re.test(a))))}):y(()=>({}))};export{Oe as C,me as U,ue as a,fe as b,E as c,_e as d,ve as e,ce as f,O as g,de as i,Ee as m,ie as o,pe as t,le as u};