import{u as e,r as t,g as n,e as o,f as r,w as a,h as u,i,n as s,j as l}from"../@vue/@vue.e7eafc10.js";var c;const d="undefined"!=typeof window,f=()=>{},v=d&&(null==(c=null==window?void 0:window.navigator)?void 0:c.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function p(t){return"function"==typeof t?t():e(t)}function m(e){return!!n()&&(o(e),!0)}function y(e,t=200,n={}){return function(e,t){return function(...n){return new Promise(((o,r)=>{Promise.resolve(e((()=>t.apply(this,n)),{fn:t,thisArg:this,args:n})).then(o).catch(r)}))}}(function(e,t={}){let n,o,r=f;const a=e=>{clearTimeout(e),r(),r=f};return u=>{const i=p(e),s=p(t.maxWait);return n&&a(n),i<=0||void 0!==s&&s<=0?(o&&(a(o),o=null),Promise.resolve(u())):new Promise(((e,l)=>{r=t.rejectOnCancel?l:e,s&&!o&&(o=setTimeout((()=>{n&&a(n),o=null,e(u())}),s)),n=setTimeout((()=>{o&&a(o),o=null,e(u())}),i)}))}}(t,n),e)}function O(e,t=200,n={}){const o=r(e.value),u=y((()=>{o.value=e.value}),t,n);return a(e,(()=>u())),o}function w(e,n,o={}){const{immediate:a=!0}=o,u=r(!1);let i=null;function s(){i&&(clearTimeout(i),i=null)}function l(){u.value=!1,s()}function c(...t){s(),u.value=!0,i=setTimeout((()=>{u.value=!1,i=null,e(...t)}),p(n))}return a&&(u.value=!0,d&&c()),m(l),{isPending:t(u),start:c,stop:l}}function b(e){var t;const n=p(e);return null!=(t=null==n?void 0:n.$el)?t:n}const g=d?window:void 0;function h(...e){let t,n,o,r;if("string"==typeof e[0]||Array.isArray(e[0])?([n,o,r]=e,t=g):[t,n,o,r]=e,!t)return f;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const u=[],i=()=>{u.forEach((e=>e())),u.length=0},s=a((()=>[b(t),p(r)]),(([e,t])=>{i(),e&&u.push(...n.flatMap((n=>o.map((o=>((e,t,n,o)=>(e.addEventListener(t,n,o),()=>e.removeEventListener(t,n,o)))(e,n,o,t))))))}),{immediate:!0,flush:"post"}),l=()=>{s(),i()};return m(l),l}let I=!1;function E(e,t,n={}){const{window:o=g,ignore:r=[],capture:a=!0,detectIframe:u=!1}=n;if(!o)return;v&&!I&&(I=!0,Array.from(o.document.body.children).forEach((e=>e.addEventListener("click",f))));let i=!0;const s=e=>r.some((t=>{if("string"==typeof t)return Array.from(o.document.querySelectorAll(t)).some((t=>t===e.target||e.composedPath().includes(t)));{const n=b(t);return n&&(e.target===n||e.composedPath().includes(n))}})),l=[h(o,"click",(n=>{const o=b(e);o&&o!==n.target&&!n.composedPath().includes(o)&&(0===n.detail&&(i=!s(n)),i?t(n):i=!0)}),{passive:!0,capture:a}),h(o,"pointerdown",(t=>{const n=b(e);n&&(i=!t.composedPath().includes(n)&&!s(t))}),{passive:!0}),u&&h(o,"blur",(n=>{var r;const a=b(e);"IFRAME"!==(null==(r=o.document.activeElement)?void 0:r.tagName)||(null==a?void 0:a.contains(o.document.activeElement))||t(n)}))].filter(Boolean);return()=>l.forEach((e=>e()))}function P(e,t=!1){const n=r(),o=()=>n.value=Boolean(e());return o(),function(e,t=!0){u()?i(e):t?e():s(e)}(o,t),n}const A="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},S="__vueuse_ssr_handlers__";function T(e,t,{window:n=g,initialValue:o=""}={}){const u=r(o),i=l((()=>{var e;return b(t)||(null==(e=null==n?void 0:n.document)?void 0:e.documentElement)}));return a([i,()=>p(e)],(([e,t])=>{var r;if(e&&n){const a=null==(r=n.getComputedStyle(e).getPropertyValue(t))?void 0:r.trim();u.value=a||o}}),{immediate:!0}),a(u,(t=>{var n;(null==(n=i.value)?void 0:n.style)&&i.value.style.setProperty(p(e),t)})),u}A[S]=A[S]||{},A[S];var j,N,x=Object.getOwnPropertySymbols,Q=Object.prototype.hasOwnProperty,C=Object.prototype.propertyIsEnumerable;function _(e,t,n={}){const o=n,{window:r=g}=o,u=((e,t)=>{var n={};for(var o in e)Q.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&x)for(var o of x(e))t.indexOf(o)<0&&C.call(e,o)&&(n[o]=e[o]);return n})(o,["window"]);let i;const s=P((()=>r&&"ResizeObserver"in r)),l=()=>{i&&(i.disconnect(),i=void 0)},c=a((()=>b(e)),(e=>{l(),s.value&&r&&e&&(i=new ResizeObserver(t),i.observe(e,u))}),{immediate:!0,flush:"post"}),d=()=>{l(),c()};return m(d),{isSupported:s,stop:d}}(N=j||(j={})).UP="UP",N.RIGHT="RIGHT",N.DOWN="DOWN",N.LEFT="LEFT",N.NONE="NONE";var k=Object.defineProperty,B=Object.getOwnPropertySymbols,L=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable,V=(e,t,n)=>t in e?k(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;function $(e,t,n,o={}){var i,s,c;const{clone:d=!1,passive:f=!1,eventName:v,deep:p=!1,defaultValue:m}=o,y=u(),O=n||(null==y?void 0:y.emit)||(null==(i=null==y?void 0:y.$emit)?void 0:i.bind(y))||(null==(c=null==(s=null==y?void 0:y.proxy)?void 0:s.$emit)?void 0:c.bind(null==y?void 0:y.proxy));let w=v;t||(t="modelValue"),w=v||w||`update:${t.toString()}`;const b=e=>{return d?(e=>"function"==typeof e)(d)?d(e):(t=e,JSON.parse(JSON.stringify(t))):e;var t},g=()=>void 0!==e[t]?b(e[t]):m;if(f){const n=g(),o=r(n);return a((()=>e[t]),(e=>o.value=b(e))),a(o,(n=>{(n!==e[t]||p)&&O(w,n)}),{deep:p}),o}return l({get:()=>g(),set(e){O(w,e)}})}((e,t)=>{for(var n in t||(t={}))L.call(t,n)&&V(e,n,t[n]);if(B)for(var n of B(t))R.call(t,n)&&V(e,n,t[n])})({linear:function(e){return e}},{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]});export{_ as a,b,T as c,w as d,v as e,$ as f,d as i,E as o,O as r,m as t,h as u};