import{$n as e,Bt as t,Gn as n,Gt as r,In as i,It as a,J as o,Ln as s,Nt as c,Pn as l,Qn as u,Xn as d,ar as f,bn as p,ht as m,ir as h,or as g}from"./dist-CoD0k1Bd.js";function _(e,t){return s()?(n(e,t),!0):!1}function v(){let e=new Set,t=t=>{e.delete(t)};return{on:n=>{e.add(n);let r=()=>t(n);return _(r),{off:r}},off:t,trigger:(...t)=>Promise.all(Array.from(e).map(e=>e(...t))),clear:()=>{e.clear()}}}function y(e){let t=!1,n,r=i(!0);return((...i)=>(t||=(n=r.run(()=>e(...i)),!0),n))}var b=typeof window<`u`&&typeof document<`u`;typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope;var x=e=>e!==void 0,S=Object.prototype.toString,C=e=>S.call(e)===`[object Object]`,w=T();function T(){var e,t;return b&&!!((e=window)!=null&&(e=e.navigator)!=null&&e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window)==null||(t=t.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function E(e){return Array.isArray(e)?e:[e]}function D(e){return e||m()}function O(e){if(!b)return e;let t=0,n,r,a=()=>{--t,r&&t<=0&&(r.stop(),n=void 0,r=void 0)};return((...o)=>(t+=1,r||(r=i(!0),n=r.run(()=>e(...o))),_(a),n))}function k(e,t=1e4){return l((n,r)=>{let i=h(e),a,o=()=>setTimeout(()=>{i=h(e),r()},h(t));return _(()=>{clearTimeout(a)}),{get(){return n(),i},set(e){i=e,r(),clearTimeout(a),a=o()}}})}function A(e,t){D(t)&&a(e,t)}function j(t,n,r={}){let{immediate:i=!0,immediateCallback:a=!1}=r,o=e(!1),s;function c(){s&&=(clearTimeout(s),void 0)}function l(){o.value=!1,c()}function d(...e){a&&t(),c(),o.value=!0,s=setTimeout(()=>{o.value=!1,s=void 0,t(...e)},h(n))}return i&&(o.value=!0,b&&d()),_(l),{isPending:u(o),start:d,stop:l}}function M(e,t,n){return p(e,t,{...n,immediate:!0})}var N=b?window:void 0;b&&window.document,b&&window.navigator,b&&window.location;function P(e){let t=h(e);return t?.$el??t}function F(...e){let t=(e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)),n=o(()=>{let t=E(h(e[0])).filter(e=>e!=null);return t.every(e=>typeof e!=`string`)?t:void 0});return M(()=>[n.value?.map(e=>P(e))??[N].filter(e=>e!=null),E(h(n.value?e[1]:e[0])),E(g(n.value?e[2]:e[1])),h(n.value?e[3]:e[2])],([e,n,r,i],a,o)=>{if(!e?.length||!n?.length||!r?.length)return;let s=C(i)?{...i}:i,c=e.flatMap(e=>n.flatMap(n=>r.map(r=>t(e,n,r,s))));o(()=>{c.forEach(e=>e())})},{flush:`post`})}function I(){let n=e(!1),r=m();return r&&t(()=>{n.value=!0},r),n}function L(e){let t=I();return o(()=>(t.value,!!e()))}function R(e){return typeof e==`function`?e:typeof e==`string`?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function z(...e){let t,n,r={};e.length===3?(t=e[0],n=e[1],r=e[2]):e.length===2?typeof e[1]==`object`?(t=!0,n=e[0],r=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);let{target:i=N,eventName:a=`keydown`,passive:o=!1,dedupe:s=!1}=r,c=R(t);return F(i,a,e=>{e.repeat&&h(s)||c(e)&&n(e)},o)}function B(e){return JSON.parse(JSON.stringify(e))}function V(e,t,n={}){let{window:r=N,...i}=n,a,s=L(()=>r&&`ResizeObserver`in r),c=()=>{a&&=(a.disconnect(),void 0)},l=p(o(()=>{let t=h(e);return Array.isArray(t)?t.map(e=>P(e)):[P(t)]}),e=>{if(c(),s.value&&r){a=new ResizeObserver(t);for(let t of e)t&&a.observe(t,i)}},{immediate:!0,flush:`post`}),u=()=>{c(),l()};return _(u),{isSupported:s,stop:u}}function H(e,t,n,r={}){var i,a;let{clone:s=!1,passive:l=!1,eventName:u,deep:f=!1,defaultValue:h,shouldEmit:g}=r,_=m(),v=n||_?.emit||(_==null||(i=_.$emit)==null?void 0:i.bind(_))||(_==null||(a=_.proxy)==null||(a=a.$emit)==null?void 0:a.bind(_?.proxy)),y=u;t||=`modelValue`,y||=`update:${t.toString()}`;let b=e=>s?typeof s==`function`?s(e):B(e):e,S=()=>x(e[t])?b(e[t]):h,C=e=>{g?g(e)&&v(y,e):v(y,e)};if(l){let n=d(S()),r=!1;return p(()=>e[t],e=>{r||(r=!0,n.value=b(e),c(()=>r=!1))}),p(n,n=>{!r&&(n!==e[t]||f)&&C(n)},{deep:f}),n}return o({get(){return S()},set(e){C(e)}})}function U(){let e=m(),t=d(),n=o(()=>i());r(()=>{n.value!==i()&&f(t)});function i(){return t.value&&`$el`in t.value&&[`#text`,`#comment`].includes(t.value.$el.nodeName)?t.value.$el.nextElementSibling:P(t)}let a=Object.assign({},e.exposed),s={};for(let t in e.props)Object.defineProperty(s,t,{enumerable:!0,configurable:!0,get:()=>e.props[t]});if(Object.keys(a).length>0)for(let e in a)Object.defineProperty(s,e,{enumerable:!0,configurable:!0,get:()=>a[e]});Object.defineProperty(s,"$el",{enumerable:!0,configurable:!0,get:()=>e.vnode.el}),e.exposed=s;function c(n){if(t.value=n,n&&(Object.defineProperty(s,"$el",{enumerable:!0,configurable:!0,get:()=>n instanceof Element?n:n.$el}),!(n instanceof Element)&&!Object.hasOwn(n,`$el`))){let t=n.$.exposed,r=Object.assign({},s);for(let e in t)Object.defineProperty(r,e,{enumerable:!0,configurable:!0,get:()=>t[e]});e.exposed=r}}return{forwardRef:c,currentRef:t,currentElement:n}}export{j as _,F as a,H as c,O as d,b as f,_ as g,A as h,P as i,v as l,k as m,N as n,I as o,w as p,z as r,V as s,U as t,y as u};