@vtj/pro 0.16.35 → 0.17.0

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.
Files changed (53) hide show
  1. package/dist/@vtj/materials/assets/antdv/index.umd.js +2 -2
  2. package/dist/@vtj/materials/assets/charts/index.umd.js +2 -2
  3. package/dist/@vtj/materials/assets/element/index.umd.js +2 -2
  4. package/dist/@vtj/materials/assets/icons/index.umd.js +2 -2
  5. package/dist/@vtj/materials/assets/ui/index.umd.js +2 -2
  6. package/dist/@vtj/materials/assets/uni-h5/index.umd.js +2 -2
  7. package/dist/@vtj/materials/assets/uni-ui/index.umd.js +2 -2
  8. package/dist/@vtj/materials/assets/vant/index.umd.js +2 -2
  9. package/dist/@vtj/materials/deps/@vtj/charts/index.umd.js +2 -2
  10. package/dist/@vtj/materials/deps/@vtj/icons/index.umd.js +2 -2
  11. package/dist/@vtj/materials/deps/@vtj/ui/index.umd.js +4 -4
  12. package/dist/@vtj/materials/deps/@vtj/utils/index.umd.js +3 -3
  13. package/dist/@vtj/materials/deps/ant-design-vue/dayjs/dayjs.min.js +1 -1
  14. package/dist/@vtj/materials/deps/element-plus/index.css +1 -1
  15. package/dist/@vtj/materials/deps/element-plus/index.full.min.js +7 -7
  16. package/dist/@vtj/materials/deps/element-plus/zh-cn.js +1 -1
  17. package/dist/@vtj/materials/deps/vue/vue.global.js +137 -74
  18. package/dist/@vtj/materials/deps/vue/vue.global.prod.js +8 -8
  19. package/dist/assets/{@element-plus-icons-vue-DfQfjj5s.js → @element-plus-icons-vue-CXRJnQYo.js} +1 -1
  20. package/dist/assets/{@vueuse-DGhgU4Wj.js → @vueuse-w7qmHU3H.js} +1 -1
  21. package/dist/assets/Editor-BcijGQZx-bQZe_R8O.js +531 -0
  22. package/dist/assets/{Editor-D-tp7Tlp-PWXX2s5r.css → Editor-BcijGQZx-xwJs2FyB.css} +1 -1
  23. package/dist/assets/{auth-B-zf6SPf.js → auth-C4mrJ31Y.js} +1 -1
  24. package/dist/assets/dayjs-CxR8wwn9.js +1 -0
  25. package/dist/assets/element-plus-Bgelixwu.js +39 -0
  26. package/dist/assets/{element-plus-AP7zs95r.css → element-plus-Bw1qTWaj.css} +1 -1
  27. package/dist/assets/index-BlFihnwD.js +1 -0
  28. package/dist/assets/index-ZU10z4rD.js +2 -0
  29. package/dist/assets/mockjs-C_1w07tn.js +9 -0
  30. package/dist/assets/page-Xd5VkPhH.js +2 -0
  31. package/dist/assets/preview-BrO82JG-.js +2 -0
  32. package/dist/assets/shared-Bc0G8KpM.js +25 -0
  33. package/dist/assets/uni-page-BrivKbVY.js +1 -0
  34. package/dist/assets/utils-BBxwIlQH.js +1 -0
  35. package/dist/assets/vue-BaPf1eHv.js +35 -0
  36. package/dist/assets/{vue-router-DLyhMsB6.js → vue-router-B2eGcVGj.js} +3 -3
  37. package/dist/assets/{vxe-BJJKGxpR.js → vxe-C7ZzhQxY.js} +1 -1
  38. package/dist/index.html +11 -11
  39. package/dist/uni/assets/{index-9RSgvd_1.js → index-D-hwt8LT.js} +9 -9
  40. package/dist/uni/index.html +1 -1
  41. package/package.json +13 -13
  42. package/dist/assets/Editor-D-tp7Tlp-BqA5rq41.js +0 -525
  43. package/dist/assets/dayjs-GGXMDmCk.js +0 -1
  44. package/dist/assets/element-plus-ClWnlNxy.js +0 -39
  45. package/dist/assets/index-CV87taOl.js +0 -2
  46. package/dist/assets/index-a7qT8C-9.js +0 -1
  47. package/dist/assets/mockjs-C_F9xDf5.js +0 -9
  48. package/dist/assets/page-BuuAxNLq.js +0 -2
  49. package/dist/assets/preview-wqG9b0ME.js +0 -2
  50. package/dist/assets/shared-Df95_Dth.js +0 -25
  51. package/dist/assets/uni-page-hurVTe5x.js +0 -1
  52. package/dist/assets/utils-DzXiTz8Y.js +0 -1
  53. package/dist/assets/vue-Cs4cahp0.js +0 -35
@@ -1 +1 @@
1
- var De=Object.defineProperty,Fe=Object.defineProperties;var ze=Object.getOwnPropertyDescriptors;var Z=Object.getOwnPropertySymbols;var ye=Object.prototype.hasOwnProperty,be=Object.prototype.propertyIsEnumerable;var we=(e,t,n)=>t in e?De(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,I=(e,t)=>{for(var n in t||(t={}))ye.call(t,n)&&we(e,n,t[n]);if(Z)for(var n of Z(t))be.call(t,n)&&we(e,n,t[n]);return e},J=(e,t)=>Fe(e,ze(t));var G=(e,t)=>{var n={};for(var o in e)ye.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&Z)for(var o of Z(e))t.indexOf(o)<0&&be.call(e,o)&&(n[o]=e[o]);return n};import{r as E,d as _,aw as ae,p as Ae,j as ce,a5 as ne,m as K,a1 as Se,u as de,s as R,o as oe,A as ie,g as U,c as C,a0 as Le,ax as Me,a2 as Ne,ac as A,ay as Te,l as Ie}from"./vue-Cs4cahp0.js";function $t(e,t){var n;const o=R();return ce(()=>{o.value=e()},J(I({},t),{flush:(n=void 0)!=null?n:"sync"})),ne(o)}function Q(e){return ae()?(Ae(e),!0):!1}function z(e){return typeof e=="function"?e():de(e)}function Ve(e){if(!K(e))return Se(e);const t=new Proxy({},{get(n,o,i){return de(Reflect.get(e.value,o,i))},set(n,o,i){return K(e.value[o])&&!K(i)?e.value[o].value=i:e.value[o]=i,!0},deleteProperty(n,o){return Reflect.deleteProperty(e.value,o)},has(n,o){return Reflect.has(e.value,o)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return Se(t)}function Pt(e){return Ve(C(e))}const re=typeof window!="undefined"&&typeof document!="undefined";typeof WorkerGlobalScope!="undefined"&&globalThis instanceof WorkerGlobalScope;const Be=e=>typeof e!="undefined",Ce=e=>e!=null,He=Object.prototype.toString,Ye=e=>He.call(e)==="[object Object]",Rt=(e,t,n)=>Math.min(n,Math.max(t,e)),B=()=>{},Xe=je();function je(){var e,t;return re&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function We(e,t){function n(...o){return new Promise((i,r)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(i).catch(r)})}return n}function Je(e,t={}){let n,o,i=B;const r=u=>{clearTimeout(u),i(),i=B};return u=>{const v=z(e),c=z(t.maxWait);return n&&r(n),v<=0||c!==void 0&&c<=0?(o&&(r(o),o=null),Promise.resolve(u())):new Promise((a,s)=>{i=t.rejectOnCancel?s:a,c&&!o&&(o=setTimeout(()=>{n&&r(n),o=null,a(u())},c)),n=setTimeout(()=>{o&&r(o),o=null,a(u())},v)})}}function Ge(...e){let t=0,n,o=!0,i=B,r,l,u,v,c;!K(e[0])&&typeof e[0]=="object"?{delay:l,trailing:u=!0,leading:v=!0,rejectOnCancel:c=!1}=e[0]:[l,u=!0,v=!0,c=!1]=e;const a=()=>{n&&(clearTimeout(n),n=void 0,i(),i=B)};return f=>{const d=z(l),g=Date.now()-t,p=()=>r=f();return a(),d<=0?(t=Date.now(),p()):(g>d&&(v||!o)?(t=Date.now(),p()):u&&(r=new Promise((m,w)=>{i=c?w:m,n=setTimeout(()=>{t=Date.now(),o=!0,m(p()),a()},Math.max(0,d-g))})),!v&&!n&&(n=setTimeout(()=>o=!0,d)),o=!1,r)}}function Ue(e){return U()}function Qe(e,t=200,n={}){return We(Je(t,n),e)}function kt(e,t=200,n={}){const o=E(e.value),i=Qe(()=>{o.value=e.value},t,n);return _(e,()=>i()),o}function Dt(e,t=200,n=!1,o=!0,i=!1){return We(Ge(t,n,o,i),e)}function fe(e,t=!0,n){Ue()?oe(e,n):t?e():ie(e)}function Ft(e,t,n={}){const{immediate:o=!0}=n,i=E(!1);let r=null;function l(){r&&(clearTimeout(r),r=null)}function u(){i.value=!1,l()}function v(...c){l(),i.value=!0,r=setTimeout(()=>{i.value=!1,r=null,e(...c)},z(t))}return o&&(i.value=!0,re&&v()),Q(u),{isPending:ne(i),start:v,stop:u}}const Y=re?window:void 0,Ke=re?window.document:void 0;function D(e){var t;const n=z(e);return(t=n==null?void 0:n.$el)!=null?t:n}function H(...e){let t,n,o,i;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,i]=e,t=Y):[t,n,o,i]=e,!t)return B;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const r=[],l=()=>{r.forEach(a=>a()),r.length=0},u=(a,s,f,d)=>(a.addEventListener(s,f,d),()=>a.removeEventListener(s,f,d)),v=_(()=>[D(t),z(i)],([a,s])=>{if(l(),!a)return;const f=Ye(s)?I({},s):s;r.push(...n.flatMap(d=>o.map(g=>u(a,d,g,f))))},{immediate:!0,flush:"post"}),c=()=>{v(),l()};return Q(c),c}let Ee=!1;function zt(e,t,n={}){const{window:o=Y,ignore:i=[],capture:r=!0,detectIframe:l=!1}=n;if(!o)return B;Xe&&!Ee&&(Ee=!0,Array.from(o.document.body.children).forEach(p=>p.addEventListener("click",B)),o.document.documentElement.addEventListener("click",B));let u=!0;const v=p=>z(i).some(m=>{if(typeof m=="string")return Array.from(o.document.querySelectorAll(m)).some(w=>w===p.target||p.composedPath().includes(w));{const w=D(m);return w&&(p.target===w||p.composedPath().includes(w))}});function c(p){const m=z(p);return m&&m.$.subTree.shapeFlag===16}function a(p,m){const w=z(p),y=w.$.subTree&&w.$.subTree.children;return y==null||!Array.isArray(y)?!1:y.some(b=>b.el===m.target||m.composedPath().includes(b.el))}const s=p=>{const m=D(e);if(p.target!=null&&!(!(m instanceof Element)&&c(e)&&a(e,p))&&!(!m||m===p.target||p.composedPath().includes(m))){if(p.detail===0&&(u=!v(p)),!u){u=!0;return}t(p)}};let f=!1;const d=[H(o,"click",p=>{f||(f=!0,setTimeout(()=>{f=!1},0),s(p))},{passive:!0,capture:r}),H(o,"pointerdown",p=>{const m=D(e);u=!v(p)&&!!(m&&!p.composedPath().includes(m))},{passive:!0}),l&&H(o,"blur",p=>{setTimeout(()=>{var m;const w=D(e);((m=o.document.activeElement)==null?void 0:m.tagName)==="IFRAME"&&!(w!=null&&w.contains(o.document.activeElement))&&t(p)},0)})].filter(Boolean);return()=>d.forEach(p=>p())}function qe(){const e=E(!1),t=U();return t&&oe(()=>{e.value=!0},t),e}function se(e){const t=qe();return C(()=>(t.value,!!e()))}function ve(e,t,n={}){const f=n,{window:o=Y}=f,i=G(f,["window"]);let r;const l=se(()=>o&&"MutationObserver"in o),u=()=>{r&&(r.disconnect(),r=void 0)},v=C(()=>{const d=z(e),g=(Array.isArray(d)?d:[d]).map(D).filter(Ce);return new Set(g)}),c=_(()=>v.value,d=>{u(),l.value&&d.size&&(r=new MutationObserver(t),d.forEach(g=>r.observe(g,i)))},{immediate:!0,flush:"post"}),a=()=>r==null?void 0:r.takeRecords(),s=()=>{c(),u()};return Q(s),{isSupported:l,stop:s,takeRecords:a}}function Lt(e={}){var t;const{window:n=Y,deep:o=!0,triggerOnRemoval:i=!1}=e,r=(t=e.document)!=null?t:n==null?void 0:n.document,l=()=>{var c;let a=r==null?void 0:r.activeElement;if(o)for(;a!=null&&a.shadowRoot;)a=(c=a==null?void 0:a.shadowRoot)==null?void 0:c.activeElement;return a},u=E(),v=()=>{u.value=l()};return n&&(H(n,"blur",c=>{c.relatedTarget===null&&v()},!0),H(n,"focus",v,!0)),i&&ve(r,c=>{c.filter(a=>a.removedNodes.length).map(a=>Array.from(a.removedNodes)).flat().forEach(a=>{a===u.value&&v()})},{childList:!0,subtree:!0}),v(),u}function Ze(e,t={}){const{window:n=Y}=t,o=se(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let i;const r=E(!1),l=c=>{r.value=c.matches},u=()=>{i&&("removeEventListener"in i?i.removeEventListener("change",l):i.removeListener(l))},v=ce(()=>{o.value&&(u(),i=n.matchMedia(z(e)),"addEventListener"in i?i.addEventListener("change",l):i.addListener(l),r.value=i.matches)});return Q(()=>{v(),u(),i=void 0}),r}function et(e){return JSON.parse(JSON.stringify(e))}function Nt(e,t,n={}){const{window:o=Y,initialValue:i,observe:r=!1}=n,l=E(i),u=C(()=>{var c;return D(t)||((c=o==null?void 0:o.document)==null?void 0:c.documentElement)});function v(){var c;const a=z(e),s=z(u);if(s&&o&&a){const f=(c=o.getComputedStyle(s).getPropertyValue(a))==null?void 0:c.trim();l.value=f||i}}return r&&ve(u,v,{attributeFilter:["style","class"],window:o}),_([u,()=>z(e)],(c,a)=>{a[0]&&a[1]&&a[0].style.removeProperty(a[1]),v()},{immediate:!0}),_(l,c=>{var a;const s=z(e);(a=u.value)!=null&&a.style&&s&&(c==null?u.value.style.removeProperty(s):u.value.style.setProperty(s,c))}),l}function It(e={}){const{document:t=Ke}=e;if(!t)return E("visible");const n=E(t.visibilityState);return H(t,"visibilitychange",()=>{n.value=t.visibilityState}),n}function _e(e,t,n={}){const s=n,{window:o=Y}=s,i=G(s,["window"]);let r;const l=se(()=>o&&"ResizeObserver"in o),u=()=>{r&&(r.disconnect(),r=void 0)},v=C(()=>{const f=z(e);return Array.isArray(f)?f.map(d=>D(d)):[D(f)]}),c=_(v,f=>{if(u(),l.value&&o){r=new ResizeObserver(t);for(const d of f)d&&r.observe(d,i)}},{immediate:!0,flush:"post"}),a=()=>{u(),c()};return Q(a),{isSupported:l,stop:a}}function Vt(e,t={}){const{reset:n=!0,windowResize:o=!0,windowScroll:i=!0,immediate:r=!0,updateTiming:l="sync"}=t,u=E(0),v=E(0),c=E(0),a=E(0),s=E(0),f=E(0),d=E(0),g=E(0);function p(){const w=D(e);if(!w){n&&(u.value=0,v.value=0,c.value=0,a.value=0,s.value=0,f.value=0,d.value=0,g.value=0);return}const y=w.getBoundingClientRect();u.value=y.height,v.value=y.bottom,c.value=y.left,a.value=y.right,s.value=y.top,f.value=y.width,d.value=y.x,g.value=y.y}function m(){l==="sync"?p():l==="next-frame"&&requestAnimationFrame(()=>p())}return _e(e,m),_(()=>D(e),w=>!w&&m()),ve(e,m,{attributeFilter:["style","class"]}),i&&H("scroll",m,{capture:!0,passive:!0}),o&&H("resize",m,{passive:!0}),fe(()=>{r&&m()}),{height:u,bottom:v,left:c,right:a,top:s,width:f,x:d,y:g,update:m}}function Bt(e,t={width:0,height:0},n={}){const{window:o=Y,box:i="content-box"}=n,r=C(()=>{var s,f;return(f=(s=D(e))==null?void 0:s.namespaceURI)==null?void 0:f.includes("svg")}),l=E(t.width),u=E(t.height),{stop:v}=_e(e,([s])=>{const f=i==="border-box"?s.borderBoxSize:i==="content-box"?s.contentBoxSize:s.devicePixelContentBoxSize;if(o&&r.value){const d=D(e);if(d){const g=d.getBoundingClientRect();l.value=g.width,u.value=g.height}}else if(f){const d=Array.isArray(f)?f:[f];l.value=d.reduce((g,{inlineSize:p})=>g+p,0),u.value=d.reduce((g,{blockSize:p})=>g+p,0)}else l.value=s.contentRect.width,u.value=s.contentRect.height},n);fe(()=>{const s=D(e);s&&(l.value="offsetWidth"in s?s.offsetWidth:t.width,u.value="offsetHeight"in s?s.offsetHeight:t.height)});const c=_(()=>D(e),s=>{l.value=s?t.width:0,u.value=s?t.height:0});function a(){v(),c()}return{width:l,height:u,stop:a}}function Ht(e,t,n={}){const{root:o,rootMargin:i="0px",threshold:r=0,window:l=Y,immediate:u=!0}=n,v=se(()=>l&&"IntersectionObserver"in l),c=C(()=>{const g=z(e);return(Array.isArray(g)?g:[g]).map(D).filter(Ce)});let a=B;const s=E(u),f=v.value?_(()=>[c.value,D(o),s.value],([g,p])=>{if(a(),!s.value||!g.length)return;const m=new IntersectionObserver(t,{root:D(p),rootMargin:i,threshold:r});g.forEach(w=>w&&m.observe(w)),a=()=>{m.disconnect(),a=B}},{immediate:u,flush:"post"}):B,d=()=>{a(),f(),s.value=!1};return Q(d),{isSupported:v,isActive:s,pause(){a(),s.value=!1},resume(){s.value=!0},stop:d}}function Yt(e,t,n,o={}){var i,r,l;const{clone:u=!1,passive:v=!1,eventName:c,deep:a=!1,defaultValue:s,shouldEmit:f}=o,d=U(),g=n||(d==null?void 0:d.emit)||((i=d==null?void 0:d.$emit)==null?void 0:i.bind(d))||((l=(r=d==null?void 0:d.proxy)==null?void 0:r.$emit)==null?void 0:l.bind(d==null?void 0:d.proxy));let p=c;t||(t="modelValue"),p=p||`update:${t.toString()}`;const m=b=>u?typeof u=="function"?u(b):et(b):b,w=()=>Be(e[t])?m(e[t]):s,y=b=>{f?f(b)&&g(p,b):g(p,b)};if(v){const b=w(),M=E(b);let O=!1;return _(()=>e[t],$=>{O||(O=!0,M.value=m($),ie(()=>O=!1))}),_(M,$=>{!O&&($!==e[t]||a)&&y($)},{deep:a}),M}else return C({get(){return w()},set(b){y(b)}})}function Xt(e={}){const{window:t=Y}=e;if(!t)return E(!1);const n=E(t.document.hasFocus());return H(t,"blur",()=>{n.value=!1}),H(t,"focus",()=>{n.value=!0}),n}function jt(e={}){const{window:t=Y,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:o=Number.POSITIVE_INFINITY,listenOrientation:i=!0,includeScrollbar:r=!0,type:l="inner"}=e,u=E(n),v=E(o),c=()=>{t&&(l==="outer"?(u.value=t.outerWidth,v.value=t.outerHeight):r?(u.value=t.innerWidth,v.value=t.innerHeight):(u.value=t.document.documentElement.clientWidth,v.value=t.document.documentElement.clientHeight))};if(c(),fe(c),H("resize",c,{passive:!0}),i){const a=Ze("(orientation: portrait)");_(a,()=>c())}return{width:u,height:v}}function pe(e,t){return ae()?(Ae(e,t),!0):!1}const le=new WeakMap,tt=(...e)=>{var t;const n=e[0],o=(t=U())===null||t===void 0?void 0:t.proxy,i=o!=null?o:ae();if(i==null&&!Te())throw new Error("injectLocal must be called in setup");return i&&le.has(i)&&n in le.get(i)?le.get(i)[n]:Ie(...e)},me=typeof window!="undefined"&&typeof document!="undefined";typeof WorkerGlobalScope!="undefined"&&globalThis instanceof WorkerGlobalScope;const nt=e=>e!=null,ot=Object.prototype.toString,it=e=>ot.call(e)==="[object Object]",rt=()=>{};function he(...e){if(e.length!==1)return Le(...e);const t=e[0];return typeof t=="function"?ne(Me(()=>({get:t,set:rt}))):E(t)}function st(e,t){function n(...o){return new Promise((i,r)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(i).catch(r)})}return n}const $e=e=>e();function ut(e=$e,t={}){const{initialState:n="active"}=t,o=he(n==="active");function i(){o.value=!1}function r(){o.value=!0}const l=(...u)=>{o.value&&e(...u)};return{isActive:ne(o),pause:i,resume:r,eventFilter:l}}function Oe(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function q(e){return Array.isArray(e)?e:[e]}function lt(e){return U()}function at(e,t,n={}){const r=n,{eventFilter:o=$e}=r,i=G(r,["eventFilter"]);return _(e,st(o,t),i)}function ct(e,t,n={}){const a=n,{eventFilter:o,initialState:i="active"}=a,r=G(a,["eventFilter","initialState"]),{eventFilter:l,pause:u,resume:v,isActive:c}=ut(o,{initialState:i});return{stop:at(e,t,J(I({},r),{eventFilter:l})),pause:u,resume:v,isActive:c}}const dt=ct;function ft(e,t={}){if(!K(e))return Ne(e);const n=Array.isArray(e.value)?Array.from({length:e.value.length}):{};for(const o in e.value)n[o]=Me(()=>({get(){return e.value[o]},set(i){var r;if(!((r=A(t.replaceRef))!==null&&r!==void 0)||r)if(Array.isArray(e.value)){const l=[...e.value];l[o]=i,e.value=l}else{const l=J(I({},e.value),{[o]:i});Object.setPrototypeOf(l,Object.getPrototypeOf(e.value)),e.value=l}else e.value[o]=i}}));return n}function ue(e,t=!0,n){lt()?oe(e,n):t?e():ie(e)}function vt(e,t,n){return _(e,t,J(I({},n),{immediate:!0}))}const L=me?window:void 0,pt=me?window.document:void 0;function X(e){var t;const n=A(e);return(t=n==null?void 0:n.$el)!==null&&t!==void 0?t:n}function N(...e){const t=(o,i,r,l)=>(o.addEventListener(i,r,l),()=>o.removeEventListener(i,r,l)),n=C(()=>{const o=q(A(e[0])).filter(i=>i!=null);return o.every(i=>typeof i!="string")?o:void 0});return vt(()=>{var o,i;return[(o=(i=n.value)===null||i===void 0?void 0:i.map(r=>X(r)))!==null&&o!==void 0?o:[L].filter(r=>r!=null),q(A(n.value?e[1]:e[0])),q(de(n.value?e[2]:e[1])),A(n.value?e[3]:e[2])]},([o,i,r,l],u,v)=>{if(!(o!=null&&o.length)||!(i!=null&&i.length)||!(r!=null&&r.length))return;const c=it(l)?I({},l):l,a=o.flatMap(s=>i.flatMap(f=>r.map(d=>t(s,f,d,c))));v(()=>{a.forEach(s=>s())})},{flush:"post"})}function mt(){const e=R(!1),t=U();return t&&oe(()=>{e.value=!0},t),e}function ge(e){const t=mt();return C(()=>(t.value,!!e()))}function Pe(e,t,n={}){const s=n,{window:o=L}=s,i=G(s,["window"]);let r;const l=ge(()=>o&&"MutationObserver"in o),u=()=>{r&&(r.disconnect(),r=void 0)},v=_(C(()=>{const f=q(A(e)).map(X).filter(nt);return new Set(f)}),f=>{u(),l.value&&f.size&&(r=new MutationObserver(t),f.forEach(d=>r.observe(d,i)))},{immediate:!0,flush:"post"}),c=()=>r==null?void 0:r.takeRecords(),a=()=>{v(),u()};return pe(a),{isSupported:l,stop:a,takeRecords:c}}const ht=Symbol("vueuse-ssr-width");function gt(){const e=Te()?tt(ht,null):null;return typeof e=="number"?e:void 0}function wt(e,t={}){const{window:n=L,ssrWidth:o=gt()}=t,i=ge(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function"),r=R(typeof o=="number"),l=R(),u=R(!1),v=c=>{u.value=c.matches};return ce(()=>{if(r.value){r.value=!i.value,u.value=A(e).split(",").some(c=>{const a=c.includes("not all"),s=c.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),f=c.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let d=!!(s||f);return s&&d&&(d=o>=Oe(s[1])),f&&d&&(d=o<=Oe(f[1])),a?!d:d});return}i.value&&(l.value=n.matchMedia(A(e)),u.value=l.value.matches)}),N(l,"change",v,{passive:!0}),C(()=>u.value)}const ee=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},te="__vueuse_ssr_handlers__",yt=bt();function bt(){return te in ee||(ee[te]=ee[te]||{}),ee[te]}function Re(e,t){return yt[e]||t}function St(e){return wt("(prefers-color-scheme: dark)",e)}function Et(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const Ot={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},xe="vueuse-storage";function xt(e,t,n,o={}){var i;const{flush:r="pre",deep:l=!0,listenToStorageChanges:u=!0,writeDefaults:v=!0,mergeDefaults:c=!1,shallow:a,window:s=L,eventFilter:f,onError:d=S=>{console.error(S)},initOnMounted:g}=o,p=(a?R:E)(typeof t=="function"?t():t),m=C(()=>A(e));if(!n)try{n=Re("getDefaultStorage",()=>L==null?void 0:L.localStorage)()}catch(S){d(S)}if(!n)return p;const w=A(t),y=Et(w),b=(i=o.serializer)!==null&&i!==void 0?i:Ot[y],{pause:M,resume:O}=dt(p,S=>P(S),{flush:r,deep:l,eventFilter:f});_(m,()=>k(),{flush:r});let $=!1;const h=S=>{g&&!$||k(S)},x=S=>{g&&!$||j(S)};s&&u&&(n instanceof Storage?N(s,"storage",h,{passive:!0}):N(s,xe,x)),g?ue(()=>{$=!0,k()}):k();function T(S,F){if(s){const V={key:m.value,oldValue:S,newValue:F,storageArea:n};s.dispatchEvent(n instanceof Storage?new StorageEvent("storage",V):new CustomEvent(xe,{detail:V}))}}function P(S){try{const F=n.getItem(m.value);if(S==null)T(F,null),n.removeItem(m.value);else{const V=b.write(S);F!==V&&(n.setItem(m.value,V),T(F,V))}}catch(F){d(F)}}function W(S){const F=S?S.newValue:n.getItem(m.value);if(F==null)return v&&w!=null&&n.setItem(m.value,b.write(w)),w;if(!S&&c){const V=b.read(F);return typeof c=="function"?c(V,w):y==="object"&&!Array.isArray(V)?I(I({},w),V):V}else return typeof F!="string"?F:b.read(F)}function k(S){if(!(S&&S.storageArea!==n)){if(S&&S.key==null){p.value=w;return}if(!(S&&S.key!==m.value)){M();try{const F=b.write(p.value);(S===void 0||(S==null?void 0:S.newValue)!==F)&&(p.value=W(S))}catch(F){d(F)}finally{S?ie(O):O()}}}}function j(S){k(S.detail)}return p}const At="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function Mt(e={}){const{selector:t="html",attribute:n="class",initialValue:o="auto",window:i=L,storage:r,storageKey:l="vueuse-color-scheme",listenToStorageChanges:u=!0,storageRef:v,emitAuto:c,disableTransition:a=!0}=e,s=I({auto:"",light:"light",dark:"dark"},e.modes||{}),f=St({window:i}),d=C(()=>f.value?"dark":"light"),g=v||(l==null?he(o):xt(l,o,r,{window:i,listenToStorageChanges:u})),p=C(()=>g.value==="auto"?d.value:g.value),m=Re("updateHTMLAttrs",(M,O,$)=>{const h=typeof M=="string"?i==null?void 0:i.document.querySelector(M):X(M);if(!h)return;const x=new Set,T=new Set;let P=null;if(O==="class"){const k=$.split(/\s/g);Object.values(s).flatMap(j=>(j||"").split(/\s/g)).filter(Boolean).forEach(j=>{k.includes(j)?x.add(j):T.add(j)})}else P={key:O,value:$};if(x.size===0&&T.size===0&&P===null)return;let W;a&&(W=i.document.createElement("style"),W.appendChild(document.createTextNode(At)),i.document.head.appendChild(W));for(const k of x)h.classList.add(k);for(const k of T)h.classList.remove(k);P&&h.setAttribute(P.key,P.value),a&&(i.getComputedStyle(W).opacity,document.head.removeChild(W))});function w(M){var O;m(t,n,(O=s[M])!==null&&O!==void 0?O:M)}function y(M){e.onChanged?e.onChanged(M,w):w(M)}_(p,y,{flush:"post",immediate:!0}),ue(()=>y(p.value));const b=C({get(){return c?g.value:p.value},set(M){g.value=M}});return Object.assign(b,{store:g,system:d,state:p})}function Jt(e={}){const{valueDark:t="dark",valueLight:n=""}=e,o=Mt(J(I({},e),{onChanged:(r,l)=>{var u;e.onChanged?(u=e.onChanged)===null||u===void 0||u.call(e,r==="dark",l,r):l(r)},modes:{dark:t,light:n}})),i=C(()=>o.system.value);return C({get(){return o.value==="dark"},set(r){const l=r?"dark":"light";i.value===l?o.value="auto":o.value=l}})}function Gt(e,t={}){var n;const{pointerTypes:o,preventDefault:i,stopPropagation:r,exact:l,onMove:u,onEnd:v,onStart:c,initialValue:a,axis:s="both",draggingElement:f=L,containerElement:d,handle:g=e,buttons:p=[0]}=t,m=E((n=A(a))!==null&&n!==void 0?n:{x:0,y:0}),w=E(),y=h=>o?o.includes(h.pointerType):!0,b=h=>{A(i)&&h.preventDefault(),A(r)&&h.stopPropagation()},M=h=>{var x;if(!A(p).includes(h.button)||A(t.disabled)||!y(h)||A(l)&&h.target!==A(e))return;const T=A(d),P=T==null||(x=T.getBoundingClientRect)===null||x===void 0?void 0:x.call(T),W=A(e).getBoundingClientRect(),k={x:h.clientX-(T?W.left-P.left+T.scrollLeft:W.left),y:h.clientY-(T?W.top-P.top+T.scrollTop:W.top)};(c==null?void 0:c(k,h))!==!1&&(w.value=k,b(h))},O=h=>{if(A(t.disabled)||!y(h)||!w.value)return;const x=A(d),T=A(e).getBoundingClientRect();let{x:P,y:W}=m.value;(s==="x"||s==="both")&&(P=h.clientX-w.value.x,x&&(P=Math.min(Math.max(0,P),x.scrollWidth-T.width))),(s==="y"||s==="both")&&(W=h.clientY-w.value.y,x&&(W=Math.min(Math.max(0,W),x.scrollHeight-T.height))),m.value={x:P,y:W},u==null||u(m.value,h),b(h)},$=h=>{A(t.disabled)||!y(h)||w.value&&(w.value=void 0,v==null||v(m.value,h),b(h))};if(me){const h=()=>{var x;return{capture:(x=t.capture)!==null&&x!==void 0?x:!0,passive:!A(i)}};N(g,"pointerdown",M,h),N(f,"pointermove",O,h),N(f,"pointerup",$,h)}return J(I({},ft(m)),{position:m,isDragging:C(()=>!!w.value),style:C(()=>`left:${m.value.x}px;top:${m.value.y}px;`)})}function ke(e,t,n={}){const a=n,{window:o=L}=a,i=G(a,["window"]);let r;const l=ge(()=>o&&"ResizeObserver"in o),u=()=>{r&&(r.disconnect(),r=void 0)},v=_(C(()=>{const s=A(e);return Array.isArray(s)?s.map(f=>X(f)):[X(s)]}),s=>{if(u(),l.value&&o){r=new ResizeObserver(t);for(const f of s)f&&r.observe(f,i)}},{immediate:!0,flush:"post"}),c=()=>{u(),v()};return pe(c),{isSupported:l,stop:c}}function Ut(e,t={width:0,height:0},n={}){const{window:o=L,box:i="content-box"}=n,r=C(()=>{var s;return(s=X(e))===null||s===void 0||(s=s.namespaceURI)===null||s===void 0?void 0:s.includes("svg")}),l=R(t.width),u=R(t.height),{stop:v}=ke(e,([s])=>{const f=i==="border-box"?s.borderBoxSize:i==="content-box"?s.contentBoxSize:s.devicePixelContentBoxSize;if(o&&r.value){const d=X(e);if(d){const g=d.getBoundingClientRect();l.value=g.width,u.value=g.height}}else if(f){const d=q(f);l.value=d.reduce((g,{inlineSize:p})=>g+p,0),u.value=d.reduce((g,{blockSize:p})=>g+p,0)}else l.value=s.contentRect.width,u.value=s.contentRect.height},n);ue(()=>{const s=X(e);s&&(l.value="offsetWidth"in s?s.offsetWidth:t.width,u.value="offsetHeight"in s?s.offsetHeight:t.height)});const c=_(()=>X(e),s=>{l.value=s?t.width:0,u.value=s?t.height:0});function a(){v(),c()}return{width:l,height:u,stop:a}}const Tt={page:e=>[e.pageX,e.pageY],client:e=>[e.clientX,e.clientY],screen:e=>[e.screenX,e.screenY],movement:e=>e instanceof MouseEvent?[e.movementX,e.movementY]:null};function Ct(e={}){const{type:t="page",touch:n=!0,resetOnTouchEnds:o=!1,initialValue:i={x:0,y:0},window:r=L,target:l=r,scroll:u=!0,eventFilter:v}=e;let c=null,a=0,s=0;const f=R(i.x),d=R(i.y),g=R(null),p=typeof t=="function"?t:Tt[t],m=h=>{const x=p(h);c=h,x&&([f.value,d.value]=x,g.value="mouse"),r&&(a=r.scrollX,s=r.scrollY)},w=h=>{if(h.touches.length>0){const x=p(h.touches[0]);x&&([f.value,d.value]=x,g.value="touch")}},y=()=>{if(!c||!r)return;const h=p(c);c instanceof MouseEvent&&h&&(f.value=h[0]+r.scrollX-a,d.value=h[1]+r.scrollY-s)},b=()=>{f.value=i.x,d.value=i.y},M=v?h=>v(()=>m(h),{}):h=>m(h),O=v?h=>v(()=>w(h),{}):h=>w(h),$=v?()=>v(()=>y(),{}):()=>y();if(l){const h={passive:!0};N(l,["mousemove","dragover"],M,h),n&&t!=="movement"&&(N(l,["touchstart","touchmove"],O,h),o&&N(l,"touchend",b,h)),u&&t==="page"&&N(r,"scroll",$,h)}return{x:f,y:d,sourceType:g}}function Qt(e,t={}){const{windowResize:n=!0,windowScroll:o=!0,handleOutside:i=!0,window:r=L}=t,l=t.type||"page",{x:u,y:v,sourceType:c}=Ct(t),a=R(e!=null?e:r==null?void 0:r.document.body),s=R(0),f=R(0),d=R(0),g=R(0),p=R(0),m=R(0),w=R(!0);function y(){if(!r)return;const O=X(a);if(!(!O||!(O instanceof Element)))for(const $ of O.getClientRects()){const{left:h,top:x,width:T,height:P}=$;d.value=h+(l==="page"?r.pageXOffset:0),g.value=x+(l==="page"?r.pageYOffset:0),p.value=P,m.value=T;const W=u.value-d.value,k=v.value-g.value;if(w.value=T===0||P===0||W<0||k<0||W>T||k>P,(i||!w.value)&&(s.value=W,f.value=k),!w.value)break}}const b=[];function M(){b.forEach(O=>O()),b.length=0}if(ue(()=>{y()}),r){const{stop:O}=ke(a,y),{stop:$}=Pe(a,y,{attributeFilter:["style","class"]}),h=_([a,u,v],y);b.push(O,$,h),N(document,"mouseleave",()=>w.value=!0,{passive:!0}),o&&b.push(N("scroll",y,{capture:!0,passive:!0})),n&&b.push(N("resize",y,{passive:!0}))}return{x:u,y:v,sourceType:c,elementX:s,elementY:f,elementPositionX:d,elementPositionY:g,elementHeight:p,elementWidth:m,isOutside:w,stop:M}}function Kt(e=null,t={}){var n,o;const{document:i=pt,restoreOnUnmount:r=s=>s}=t,l=(n=i==null?void 0:i.title)!==null&&n!==void 0?n:"",u=he((o=e!=null?e:i==null?void 0:i.title)!==null&&o!==void 0?o:null),v=!!(e&&typeof e=="function");function c(s){if(!("titleTemplate"in t))return s;const f=t.titleTemplate||"%s";return typeof f=="function"?f(s):A(f).replace(/%s/g,s)}if(_(u,(s,f)=>{s!==f&&i&&(i.title=c(s!=null?s:""))},{immediate:!0}),t.observe&&!t.titleTemplate&&i&&!v){var a;Pe((a=i.head)===null||a===void 0?void 0:a.querySelector("title"),()=>{i&&i.title!==u.value&&(u.value=c(i.title))},{childList:!0})}return pe(()=>{if(r){const s=r(l,u.value||"");s!=null&&i&&(i.title=s)}}),u}export{Gt as A,Qt as B,N as C,Jt as D,H as a,jt as b,$t as c,Vt as d,D as e,Qe as f,Dt as g,ve as h,re as i,Xe as j,Nt as k,Pt as l,Ft as m,Rt as n,zt as o,Ht as p,It as q,kt as r,Xt as s,Q as t,_e as u,Bt as v,Yt as w,Lt as x,Kt as y,Ut as z};
1
+ var De=Object.defineProperty,Fe=Object.defineProperties;var ze=Object.getOwnPropertyDescriptors;var Z=Object.getOwnPropertySymbols;var ye=Object.prototype.hasOwnProperty,be=Object.prototype.propertyIsEnumerable;var we=(e,t,n)=>t in e?De(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,I=(e,t)=>{for(var n in t||(t={}))ye.call(t,n)&&we(e,n,t[n]);if(Z)for(var n of Z(t))be.call(t,n)&&we(e,n,t[n]);return e},j=(e,t)=>Fe(e,ze(t));var G=(e,t)=>{var n={};for(var o in e)ye.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&Z)for(var o of Z(e))t.indexOf(o)<0&&be.call(e,o)&&(n[o]=e[o]);return n};import{r as E,e as _,aw as ae,q as Ae,k as ce,a5 as ne,p as q,a1 as Se,u as de,s as k,o as oe,n as ie,g as U,d as C,a0 as Le,ax as Me,a2 as Ne,ac as A,ay as Te,m as Ie}from"./vue-BaPf1eHv.js";function $t(e,t){var n;const o=k();return ce(()=>{o.value=e()},j(I({},t),{flush:(n=void 0)!=null?n:"sync"})),ne(o)}function Q(e){return ae()?(Ae(e),!0):!1}function z(e){return typeof e=="function"?e():de(e)}function Ve(e){if(!q(e))return Se(e);const t=new Proxy({},{get(n,o,i){return de(Reflect.get(e.value,o,i))},set(n,o,i){return q(e.value[o])&&!q(i)?e.value[o].value=i:e.value[o]=i,!0},deleteProperty(n,o){return Reflect.deleteProperty(e.value,o)},has(n,o){return Reflect.has(e.value,o)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return Se(t)}function Pt(e){return Ve(C(e))}const re=typeof window!="undefined"&&typeof document!="undefined";typeof WorkerGlobalScope!="undefined"&&globalThis instanceof WorkerGlobalScope;const Be=e=>typeof e!="undefined",Ce=e=>e!=null,He=Object.prototype.toString,Ye=e=>He.call(e)==="[object Object]",kt=(e,t,n)=>Math.min(n,Math.max(t,e)),B=()=>{},Xe=Je();function Je(){var e,t;return re&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function We(e,t){function n(...o){return new Promise((i,r)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(i).catch(r)})}return n}function je(e,t={}){let n,o,i=B;const r=u=>{clearTimeout(u),i(),i=B};return u=>{const v=z(e),c=z(t.maxWait);return n&&r(n),v<=0||c!==void 0&&c<=0?(o&&(r(o),o=null),Promise.resolve(u())):new Promise((a,s)=>{i=t.rejectOnCancel?s:a,c&&!o&&(o=setTimeout(()=>{n&&r(n),o=null,a(u())},c)),n=setTimeout(()=>{o&&r(o),o=null,a(u())},v)})}}function Ge(...e){let t=0,n,o=!0,i=B,r,l,u,v,c;!q(e[0])&&typeof e[0]=="object"?{delay:l,trailing:u=!0,leading:v=!0,rejectOnCancel:c=!1}=e[0]:[l,u=!0,v=!0,c=!1]=e;const a=()=>{n&&(clearTimeout(n),n=void 0,i(),i=B)};return f=>{const d=z(l),g=Date.now()-t,p=()=>r=f();return a(),d<=0?(t=Date.now(),p()):(g>d&&(v||!o)?(t=Date.now(),p()):u&&(r=new Promise((m,w)=>{i=c?w:m,n=setTimeout(()=>{t=Date.now(),o=!0,m(p()),a()},Math.max(0,d-g))})),!v&&!n&&(n=setTimeout(()=>o=!0,d)),o=!1,r)}}function Ue(e){return U()}function Qe(e,t=200,n={}){return We(je(t,n),e)}function Rt(e,t=200,n={}){const o=E(e.value),i=Qe(()=>{o.value=e.value},t,n);return _(e,()=>i()),o}function Dt(e,t=200,n=!1,o=!0,i=!1){return We(Ge(t,n,o,i),e)}function fe(e,t=!0,n){Ue()?oe(e,n):t?e():ie(e)}function Ft(e,t,n={}){const{immediate:o=!0}=n,i=E(!1);let r=null;function l(){r&&(clearTimeout(r),r=null)}function u(){i.value=!1,l()}function v(...c){l(),i.value=!0,r=setTimeout(()=>{i.value=!1,r=null,e(...c)},z(t))}return o&&(i.value=!0,re&&v()),Q(u),{isPending:ne(i),start:v,stop:u}}const Y=re?window:void 0,qe=re?window.document:void 0;function D(e){var t;const n=z(e);return(t=n==null?void 0:n.$el)!=null?t:n}function H(...e){let t,n,o,i;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,i]=e,t=Y):[t,n,o,i]=e,!t)return B;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const r=[],l=()=>{r.forEach(a=>a()),r.length=0},u=(a,s,f,d)=>(a.addEventListener(s,f,d),()=>a.removeEventListener(s,f,d)),v=_(()=>[D(t),z(i)],([a,s])=>{if(l(),!a)return;const f=Ye(s)?I({},s):s;r.push(...n.flatMap(d=>o.map(g=>u(a,d,g,f))))},{immediate:!0,flush:"post"}),c=()=>{v(),l()};return Q(c),c}let Ee=!1;function zt(e,t,n={}){const{window:o=Y,ignore:i=[],capture:r=!0,detectIframe:l=!1}=n;if(!o)return B;Xe&&!Ee&&(Ee=!0,Array.from(o.document.body.children).forEach(p=>p.addEventListener("click",B)),o.document.documentElement.addEventListener("click",B));let u=!0;const v=p=>z(i).some(m=>{if(typeof m=="string")return Array.from(o.document.querySelectorAll(m)).some(w=>w===p.target||p.composedPath().includes(w));{const w=D(m);return w&&(p.target===w||p.composedPath().includes(w))}});function c(p){const m=z(p);return m&&m.$.subTree.shapeFlag===16}function a(p,m){const w=z(p),y=w.$.subTree&&w.$.subTree.children;return y==null||!Array.isArray(y)?!1:y.some(b=>b.el===m.target||m.composedPath().includes(b.el))}const s=p=>{const m=D(e);if(p.target!=null&&!(!(m instanceof Element)&&c(e)&&a(e,p))&&!(!m||m===p.target||p.composedPath().includes(m))){if(p.detail===0&&(u=!v(p)),!u){u=!0;return}t(p)}};let f=!1;const d=[H(o,"click",p=>{f||(f=!0,setTimeout(()=>{f=!1},0),s(p))},{passive:!0,capture:r}),H(o,"pointerdown",p=>{const m=D(e);u=!v(p)&&!!(m&&!p.composedPath().includes(m))},{passive:!0}),l&&H(o,"blur",p=>{setTimeout(()=>{var m;const w=D(e);((m=o.document.activeElement)==null?void 0:m.tagName)==="IFRAME"&&!(w!=null&&w.contains(o.document.activeElement))&&t(p)},0)})].filter(Boolean);return()=>d.forEach(p=>p())}function Ke(){const e=E(!1),t=U();return t&&oe(()=>{e.value=!0},t),e}function se(e){const t=Ke();return C(()=>(t.value,!!e()))}function ve(e,t,n={}){const f=n,{window:o=Y}=f,i=G(f,["window"]);let r;const l=se(()=>o&&"MutationObserver"in o),u=()=>{r&&(r.disconnect(),r=void 0)},v=C(()=>{const d=z(e),g=(Array.isArray(d)?d:[d]).map(D).filter(Ce);return new Set(g)}),c=_(()=>v.value,d=>{u(),l.value&&d.size&&(r=new MutationObserver(t),d.forEach(g=>r.observe(g,i)))},{immediate:!0,flush:"post"}),a=()=>r==null?void 0:r.takeRecords(),s=()=>{c(),u()};return Q(s),{isSupported:l,stop:s,takeRecords:a}}function Lt(e={}){var t;const{window:n=Y,deep:o=!0,triggerOnRemoval:i=!1}=e,r=(t=e.document)!=null?t:n==null?void 0:n.document,l=()=>{var c;let a=r==null?void 0:r.activeElement;if(o)for(;a!=null&&a.shadowRoot;)a=(c=a==null?void 0:a.shadowRoot)==null?void 0:c.activeElement;return a},u=E(),v=()=>{u.value=l()};return n&&(H(n,"blur",c=>{c.relatedTarget===null&&v()},!0),H(n,"focus",v,!0)),i&&ve(r,c=>{c.filter(a=>a.removedNodes.length).map(a=>Array.from(a.removedNodes)).flat().forEach(a=>{a===u.value&&v()})},{childList:!0,subtree:!0}),v(),u}function Ze(e,t={}){const{window:n=Y}=t,o=se(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let i;const r=E(!1),l=c=>{r.value=c.matches},u=()=>{i&&("removeEventListener"in i?i.removeEventListener("change",l):i.removeListener(l))},v=ce(()=>{o.value&&(u(),i=n.matchMedia(z(e)),"addEventListener"in i?i.addEventListener("change",l):i.addListener(l),r.value=i.matches)});return Q(()=>{v(),u(),i=void 0}),r}function et(e){return JSON.parse(JSON.stringify(e))}function Nt(e,t,n={}){const{window:o=Y,initialValue:i,observe:r=!1}=n,l=E(i),u=C(()=>{var c;return D(t)||((c=o==null?void 0:o.document)==null?void 0:c.documentElement)});function v(){var c;const a=z(e),s=z(u);if(s&&o&&a){const f=(c=o.getComputedStyle(s).getPropertyValue(a))==null?void 0:c.trim();l.value=f||i}}return r&&ve(u,v,{attributeFilter:["style","class"],window:o}),_([u,()=>z(e)],(c,a)=>{a[0]&&a[1]&&a[0].style.removeProperty(a[1]),v()},{immediate:!0}),_(l,c=>{var a;const s=z(e);(a=u.value)!=null&&a.style&&s&&(c==null?u.value.style.removeProperty(s):u.value.style.setProperty(s,c))}),l}function It(e={}){const{document:t=qe}=e;if(!t)return E("visible");const n=E(t.visibilityState);return H(t,"visibilitychange",()=>{n.value=t.visibilityState}),n}function _e(e,t,n={}){const s=n,{window:o=Y}=s,i=G(s,["window"]);let r;const l=se(()=>o&&"ResizeObserver"in o),u=()=>{r&&(r.disconnect(),r=void 0)},v=C(()=>{const f=z(e);return Array.isArray(f)?f.map(d=>D(d)):[D(f)]}),c=_(v,f=>{if(u(),l.value&&o){r=new ResizeObserver(t);for(const d of f)d&&r.observe(d,i)}},{immediate:!0,flush:"post"}),a=()=>{u(),c()};return Q(a),{isSupported:l,stop:a}}function Vt(e,t={}){const{reset:n=!0,windowResize:o=!0,windowScroll:i=!0,immediate:r=!0,updateTiming:l="sync"}=t,u=E(0),v=E(0),c=E(0),a=E(0),s=E(0),f=E(0),d=E(0),g=E(0);function p(){const w=D(e);if(!w){n&&(u.value=0,v.value=0,c.value=0,a.value=0,s.value=0,f.value=0,d.value=0,g.value=0);return}const y=w.getBoundingClientRect();u.value=y.height,v.value=y.bottom,c.value=y.left,a.value=y.right,s.value=y.top,f.value=y.width,d.value=y.x,g.value=y.y}function m(){l==="sync"?p():l==="next-frame"&&requestAnimationFrame(()=>p())}return _e(e,m),_(()=>D(e),w=>!w&&m()),ve(e,m,{attributeFilter:["style","class"]}),i&&H("scroll",m,{capture:!0,passive:!0}),o&&H("resize",m,{passive:!0}),fe(()=>{r&&m()}),{height:u,bottom:v,left:c,right:a,top:s,width:f,x:d,y:g,update:m}}function Bt(e,t={width:0,height:0},n={}){const{window:o=Y,box:i="content-box"}=n,r=C(()=>{var s,f;return(f=(s=D(e))==null?void 0:s.namespaceURI)==null?void 0:f.includes("svg")}),l=E(t.width),u=E(t.height),{stop:v}=_e(e,([s])=>{const f=i==="border-box"?s.borderBoxSize:i==="content-box"?s.contentBoxSize:s.devicePixelContentBoxSize;if(o&&r.value){const d=D(e);if(d){const g=d.getBoundingClientRect();l.value=g.width,u.value=g.height}}else if(f){const d=Array.isArray(f)?f:[f];l.value=d.reduce((g,{inlineSize:p})=>g+p,0),u.value=d.reduce((g,{blockSize:p})=>g+p,0)}else l.value=s.contentRect.width,u.value=s.contentRect.height},n);fe(()=>{const s=D(e);s&&(l.value="offsetWidth"in s?s.offsetWidth:t.width,u.value="offsetHeight"in s?s.offsetHeight:t.height)});const c=_(()=>D(e),s=>{l.value=s?t.width:0,u.value=s?t.height:0});function a(){v(),c()}return{width:l,height:u,stop:a}}function Ht(e,t,n={}){const{root:o,rootMargin:i="0px",threshold:r=0,window:l=Y,immediate:u=!0}=n,v=se(()=>l&&"IntersectionObserver"in l),c=C(()=>{const g=z(e);return(Array.isArray(g)?g:[g]).map(D).filter(Ce)});let a=B;const s=E(u),f=v.value?_(()=>[c.value,D(o),s.value],([g,p])=>{if(a(),!s.value||!g.length)return;const m=new IntersectionObserver(t,{root:D(p),rootMargin:i,threshold:r});g.forEach(w=>w&&m.observe(w)),a=()=>{m.disconnect(),a=B}},{immediate:u,flush:"post"}):B,d=()=>{a(),f(),s.value=!1};return Q(d),{isSupported:v,isActive:s,pause(){a(),s.value=!1},resume(){s.value=!0},stop:d}}function Yt(e,t,n,o={}){var i,r,l;const{clone:u=!1,passive:v=!1,eventName:c,deep:a=!1,defaultValue:s,shouldEmit:f}=o,d=U(),g=n||(d==null?void 0:d.emit)||((i=d==null?void 0:d.$emit)==null?void 0:i.bind(d))||((l=(r=d==null?void 0:d.proxy)==null?void 0:r.$emit)==null?void 0:l.bind(d==null?void 0:d.proxy));let p=c;t||(t="modelValue"),p=p||`update:${t.toString()}`;const m=b=>u?typeof u=="function"?u(b):et(b):b,w=()=>Be(e[t])?m(e[t]):s,y=b=>{f?f(b)&&g(p,b):g(p,b)};if(v){const b=w(),M=E(b);let O=!1;return _(()=>e[t],$=>{O||(O=!0,M.value=m($),ie(()=>O=!1))}),_(M,$=>{!O&&($!==e[t]||a)&&y($)},{deep:a}),M}else return C({get(){return w()},set(b){y(b)}})}function Xt(e={}){const{window:t=Y}=e;if(!t)return E(!1);const n=E(t.document.hasFocus());return H(t,"blur",()=>{n.value=!1}),H(t,"focus",()=>{n.value=!0}),n}function Jt(e={}){const{window:t=Y,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:o=Number.POSITIVE_INFINITY,listenOrientation:i=!0,includeScrollbar:r=!0,type:l="inner"}=e,u=E(n),v=E(o),c=()=>{t&&(l==="outer"?(u.value=t.outerWidth,v.value=t.outerHeight):r?(u.value=t.innerWidth,v.value=t.innerHeight):(u.value=t.document.documentElement.clientWidth,v.value=t.document.documentElement.clientHeight))};if(c(),fe(c),H("resize",c,{passive:!0}),i){const a=Ze("(orientation: portrait)");_(a,()=>c())}return{width:u,height:v}}function pe(e,t){return ae()?(Ae(e,t),!0):!1}const le=new WeakMap,tt=(...e)=>{var t;const n=e[0],o=(t=U())===null||t===void 0?void 0:t.proxy,i=o!=null?o:ae();if(i==null&&!Te())throw new Error("injectLocal must be called in setup");return i&&le.has(i)&&n in le.get(i)?le.get(i)[n]:Ie(...e)},me=typeof window!="undefined"&&typeof document!="undefined";typeof WorkerGlobalScope!="undefined"&&globalThis instanceof WorkerGlobalScope;const nt=e=>e!=null,ot=Object.prototype.toString,it=e=>ot.call(e)==="[object Object]",rt=()=>{};function he(...e){if(e.length!==1)return Le(...e);const t=e[0];return typeof t=="function"?ne(Me(()=>({get:t,set:rt}))):E(t)}function st(e,t){function n(...o){return new Promise((i,r)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(i).catch(r)})}return n}const $e=e=>e();function ut(e=$e,t={}){const{initialState:n="active"}=t,o=he(n==="active");function i(){o.value=!1}function r(){o.value=!0}const l=(...u)=>{o.value&&e(...u)};return{isActive:ne(o),pause:i,resume:r,eventFilter:l}}function Oe(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function K(e){return Array.isArray(e)?e:[e]}function lt(e){return U()}function at(e,t,n={}){const r=n,{eventFilter:o=$e}=r,i=G(r,["eventFilter"]);return _(e,st(o,t),i)}function ct(e,t,n={}){const a=n,{eventFilter:o,initialState:i="active"}=a,r=G(a,["eventFilter","initialState"]),{eventFilter:l,pause:u,resume:v,isActive:c}=ut(o,{initialState:i});return{stop:at(e,t,j(I({},r),{eventFilter:l})),pause:u,resume:v,isActive:c}}const dt=ct;function ft(e,t={}){if(!q(e))return Ne(e);const n=Array.isArray(e.value)?Array.from({length:e.value.length}):{};for(const o in e.value)n[o]=Me(()=>({get(){return e.value[o]},set(i){var r;if(!((r=A(t.replaceRef))!==null&&r!==void 0)||r)if(Array.isArray(e.value)){const l=[...e.value];l[o]=i,e.value=l}else{const l=j(I({},e.value),{[o]:i});Object.setPrototypeOf(l,Object.getPrototypeOf(e.value)),e.value=l}else e.value[o]=i}}));return n}function ue(e,t=!0,n){lt()?oe(e,n):t?e():ie(e)}function vt(e,t,n){return _(e,t,j(I({},n),{immediate:!0}))}const L=me?window:void 0,pt=me?window.document:void 0;function X(e){var t;const n=A(e);return(t=n==null?void 0:n.$el)!==null&&t!==void 0?t:n}function N(...e){const t=(o,i,r,l)=>(o.addEventListener(i,r,l),()=>o.removeEventListener(i,r,l)),n=C(()=>{const o=K(A(e[0])).filter(i=>i!=null);return o.every(i=>typeof i!="string")?o:void 0});return vt(()=>{var o,i;return[(o=(i=n.value)===null||i===void 0?void 0:i.map(r=>X(r)))!==null&&o!==void 0?o:[L].filter(r=>r!=null),K(A(n.value?e[1]:e[0])),K(de(n.value?e[2]:e[1])),A(n.value?e[3]:e[2])]},([o,i,r,l],u,v)=>{if(!(o!=null&&o.length)||!(i!=null&&i.length)||!(r!=null&&r.length))return;const c=it(l)?I({},l):l,a=o.flatMap(s=>i.flatMap(f=>r.map(d=>t(s,f,d,c))));v(()=>{a.forEach(s=>s())})},{flush:"post"})}function mt(){const e=k(!1),t=U();return t&&oe(()=>{e.value=!0},t),e}function ge(e){const t=mt();return C(()=>(t.value,!!e()))}function Pe(e,t,n={}){const s=n,{window:o=L}=s,i=G(s,["window"]);let r;const l=ge(()=>o&&"MutationObserver"in o),u=()=>{r&&(r.disconnect(),r=void 0)},v=_(C(()=>{const f=K(A(e)).map(X).filter(nt);return new Set(f)}),f=>{u(),l.value&&f.size&&(r=new MutationObserver(t),f.forEach(d=>r.observe(d,i)))},{immediate:!0,flush:"post"}),c=()=>r==null?void 0:r.takeRecords(),a=()=>{v(),u()};return pe(a),{isSupported:l,stop:a,takeRecords:c}}const ht=Symbol("vueuse-ssr-width");function gt(){const e=Te()?tt(ht,null):null;return typeof e=="number"?e:void 0}function wt(e,t={}){const{window:n=L,ssrWidth:o=gt()}=t,i=ge(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function"),r=k(typeof o=="number"),l=k(),u=k(!1),v=c=>{u.value=c.matches};return ce(()=>{if(r.value){r.value=!i.value,u.value=A(e).split(",").some(c=>{const a=c.includes("not all"),s=c.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),f=c.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let d=!!(s||f);return s&&d&&(d=o>=Oe(s[1])),f&&d&&(d=o<=Oe(f[1])),a?!d:d});return}i.value&&(l.value=n.matchMedia(A(e)),u.value=l.value.matches)}),N(l,"change",v,{passive:!0}),C(()=>u.value)}const ee=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},te="__vueuse_ssr_handlers__",yt=bt();function bt(){return te in ee||(ee[te]=ee[te]||{}),ee[te]}function ke(e,t){return yt[e]||t}function St(e){return wt("(prefers-color-scheme: dark)",e)}function Et(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const Ot={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},xe="vueuse-storage";function xt(e,t,n,o={}){var i;const{flush:r="pre",deep:l=!0,listenToStorageChanges:u=!0,writeDefaults:v=!0,mergeDefaults:c=!1,shallow:a,window:s=L,eventFilter:f,onError:d=S=>{console.error(S)},initOnMounted:g}=o,p=(a?k:E)(typeof t=="function"?t():t),m=C(()=>A(e));if(!n)try{n=ke("getDefaultStorage",()=>L==null?void 0:L.localStorage)()}catch(S){d(S)}if(!n)return p;const w=A(t),y=Et(w),b=(i=o.serializer)!==null&&i!==void 0?i:Ot[y],{pause:M,resume:O}=dt(p,S=>P(S),{flush:r,deep:l,eventFilter:f});_(m,()=>R(),{flush:r});let $=!1;const h=S=>{g&&!$||R(S)},x=S=>{g&&!$||J(S)};s&&u&&(n instanceof Storage?N(s,"storage",h,{passive:!0}):N(s,xe,x)),g?ue(()=>{$=!0,R()}):R();function T(S,F){if(s){const V={key:m.value,oldValue:S,newValue:F,storageArea:n};s.dispatchEvent(n instanceof Storage?new StorageEvent("storage",V):new CustomEvent(xe,{detail:V}))}}function P(S){try{const F=n.getItem(m.value);if(S==null)T(F,null),n.removeItem(m.value);else{const V=b.write(S);F!==V&&(n.setItem(m.value,V),T(F,V))}}catch(F){d(F)}}function W(S){const F=S?S.newValue:n.getItem(m.value);if(F==null)return v&&w!=null&&n.setItem(m.value,b.write(w)),w;if(!S&&c){const V=b.read(F);return typeof c=="function"?c(V,w):y==="object"&&!Array.isArray(V)?I(I({},w),V):V}else return typeof F!="string"?F:b.read(F)}function R(S){if(!(S&&S.storageArea!==n)){if(S&&S.key==null){p.value=w;return}if(!(S&&S.key!==m.value)){M();try{const F=b.write(p.value);(S===void 0||(S==null?void 0:S.newValue)!==F)&&(p.value=W(S))}catch(F){d(F)}finally{S?ie(O):O()}}}}function J(S){R(S.detail)}return p}const At="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function Mt(e={}){const{selector:t="html",attribute:n="class",initialValue:o="auto",window:i=L,storage:r,storageKey:l="vueuse-color-scheme",listenToStorageChanges:u=!0,storageRef:v,emitAuto:c,disableTransition:a=!0}=e,s=I({auto:"",light:"light",dark:"dark"},e.modes||{}),f=St({window:i}),d=C(()=>f.value?"dark":"light"),g=v||(l==null?he(o):xt(l,o,r,{window:i,listenToStorageChanges:u})),p=C(()=>g.value==="auto"?d.value:g.value),m=ke("updateHTMLAttrs",(M,O,$)=>{const h=typeof M=="string"?i==null?void 0:i.document.querySelector(M):X(M);if(!h)return;const x=new Set,T=new Set;let P=null;if(O==="class"){const R=$.split(/\s/g);Object.values(s).flatMap(J=>(J||"").split(/\s/g)).filter(Boolean).forEach(J=>{R.includes(J)?x.add(J):T.add(J)})}else P={key:O,value:$};if(x.size===0&&T.size===0&&P===null)return;let W;a&&(W=i.document.createElement("style"),W.appendChild(document.createTextNode(At)),i.document.head.appendChild(W));for(const R of x)h.classList.add(R);for(const R of T)h.classList.remove(R);P&&h.setAttribute(P.key,P.value),a&&(i.getComputedStyle(W).opacity,document.head.removeChild(W))});function w(M){var O;m(t,n,(O=s[M])!==null&&O!==void 0?O:M)}function y(M){e.onChanged?e.onChanged(M,w):w(M)}_(p,y,{flush:"post",immediate:!0}),ue(()=>y(p.value));const b=C({get(){return c?g.value:p.value},set(M){g.value=M}});return Object.assign(b,{store:g,system:d,state:p})}function jt(e={}){const{valueDark:t="dark",valueLight:n=""}=e,o=Mt(j(I({},e),{onChanged:(r,l)=>{var u;e.onChanged?(u=e.onChanged)===null||u===void 0||u.call(e,r==="dark",l,r):l(r)},modes:{dark:t,light:n}})),i=C(()=>o.system.value);return C({get(){return o.value==="dark"},set(r){const l=r?"dark":"light";i.value===l?o.value="auto":o.value=l}})}function Gt(e,t={}){var n;const{pointerTypes:o,preventDefault:i,stopPropagation:r,exact:l,onMove:u,onEnd:v,onStart:c,initialValue:a,axis:s="both",draggingElement:f=L,containerElement:d,handle:g=e,buttons:p=[0]}=t,m=E((n=A(a))!==null&&n!==void 0?n:{x:0,y:0}),w=E(),y=h=>o?o.includes(h.pointerType):!0,b=h=>{A(i)&&h.preventDefault(),A(r)&&h.stopPropagation()},M=h=>{var x;if(!A(p).includes(h.button)||A(t.disabled)||!y(h)||A(l)&&h.target!==A(e))return;const T=A(d),P=T==null||(x=T.getBoundingClientRect)===null||x===void 0?void 0:x.call(T),W=A(e).getBoundingClientRect(),R={x:h.clientX-(T?W.left-P.left+T.scrollLeft:W.left),y:h.clientY-(T?W.top-P.top+T.scrollTop:W.top)};(c==null?void 0:c(R,h))!==!1&&(w.value=R,b(h))},O=h=>{if(A(t.disabled)||!y(h)||!w.value)return;const x=A(d),T=A(e).getBoundingClientRect();let{x:P,y:W}=m.value;(s==="x"||s==="both")&&(P=h.clientX-w.value.x,x&&(P=Math.min(Math.max(0,P),x.scrollWidth-T.width))),(s==="y"||s==="both")&&(W=h.clientY-w.value.y,x&&(W=Math.min(Math.max(0,W),x.scrollHeight-T.height))),m.value={x:P,y:W},u==null||u(m.value,h),b(h)},$=h=>{A(t.disabled)||!y(h)||w.value&&(w.value=void 0,v==null||v(m.value,h),b(h))};if(me){const h=()=>{var x;return{capture:(x=t.capture)!==null&&x!==void 0?x:!0,passive:!A(i)}};N(g,"pointerdown",M,h),N(f,"pointermove",O,h),N(f,"pointerup",$,h)}return j(I({},ft(m)),{position:m,isDragging:C(()=>!!w.value),style:C(()=>`left:${m.value.x}px;top:${m.value.y}px;`)})}function Re(e,t,n={}){const a=n,{window:o=L}=a,i=G(a,["window"]);let r;const l=ge(()=>o&&"ResizeObserver"in o),u=()=>{r&&(r.disconnect(),r=void 0)},v=_(C(()=>{const s=A(e);return Array.isArray(s)?s.map(f=>X(f)):[X(s)]}),s=>{if(u(),l.value&&o){r=new ResizeObserver(t);for(const f of s)f&&r.observe(f,i)}},{immediate:!0,flush:"post"}),c=()=>{u(),v()};return pe(c),{isSupported:l,stop:c}}function Ut(e,t={width:0,height:0},n={}){const{window:o=L,box:i="content-box"}=n,r=C(()=>{var s;return(s=X(e))===null||s===void 0||(s=s.namespaceURI)===null||s===void 0?void 0:s.includes("svg")}),l=k(t.width),u=k(t.height),{stop:v}=Re(e,([s])=>{const f=i==="border-box"?s.borderBoxSize:i==="content-box"?s.contentBoxSize:s.devicePixelContentBoxSize;if(o&&r.value){const d=X(e);if(d){const g=d.getBoundingClientRect();l.value=g.width,u.value=g.height}}else if(f){const d=K(f);l.value=d.reduce((g,{inlineSize:p})=>g+p,0),u.value=d.reduce((g,{blockSize:p})=>g+p,0)}else l.value=s.contentRect.width,u.value=s.contentRect.height},n);ue(()=>{const s=X(e);s&&(l.value="offsetWidth"in s?s.offsetWidth:t.width,u.value="offsetHeight"in s?s.offsetHeight:t.height)});const c=_(()=>X(e),s=>{l.value=s?t.width:0,u.value=s?t.height:0});function a(){v(),c()}return{width:l,height:u,stop:a}}const Tt={page:e=>[e.pageX,e.pageY],client:e=>[e.clientX,e.clientY],screen:e=>[e.screenX,e.screenY],movement:e=>e instanceof MouseEvent?[e.movementX,e.movementY]:null};function Ct(e={}){const{type:t="page",touch:n=!0,resetOnTouchEnds:o=!1,initialValue:i={x:0,y:0},window:r=L,target:l=r,scroll:u=!0,eventFilter:v}=e;let c=null,a=0,s=0;const f=k(i.x),d=k(i.y),g=k(null),p=typeof t=="function"?t:Tt[t],m=h=>{const x=p(h);c=h,x&&([f.value,d.value]=x,g.value="mouse"),r&&(a=r.scrollX,s=r.scrollY)},w=h=>{if(h.touches.length>0){const x=p(h.touches[0]);x&&([f.value,d.value]=x,g.value="touch")}},y=()=>{if(!c||!r)return;const h=p(c);c instanceof MouseEvent&&h&&(f.value=h[0]+r.scrollX-a,d.value=h[1]+r.scrollY-s)},b=()=>{f.value=i.x,d.value=i.y},M=v?h=>v(()=>m(h),{}):h=>m(h),O=v?h=>v(()=>w(h),{}):h=>w(h),$=v?()=>v(()=>y(),{}):()=>y();if(l){const h={passive:!0};N(l,["mousemove","dragover"],M,h),n&&t!=="movement"&&(N(l,["touchstart","touchmove"],O,h),o&&N(l,"touchend",b,h)),u&&t==="page"&&N(r,"scroll",$,h)}return{x:f,y:d,sourceType:g}}function Qt(e,t={}){const{windowResize:n=!0,windowScroll:o=!0,handleOutside:i=!0,window:r=L}=t,l=t.type||"page",{x:u,y:v,sourceType:c}=Ct(t),a=k(e!=null?e:r==null?void 0:r.document.body),s=k(0),f=k(0),d=k(0),g=k(0),p=k(0),m=k(0),w=k(!0);function y(){if(!r)return;const O=X(a);if(!(!O||!(O instanceof Element)))for(const $ of O.getClientRects()){const{left:h,top:x,width:T,height:P}=$;d.value=h+(l==="page"?r.pageXOffset:0),g.value=x+(l==="page"?r.pageYOffset:0),p.value=P,m.value=T;const W=u.value-d.value,R=v.value-g.value;if(w.value=T===0||P===0||W<0||R<0||W>T||R>P,(i||!w.value)&&(s.value=W,f.value=R),!w.value)break}}const b=[];function M(){b.forEach(O=>O()),b.length=0}if(ue(()=>{y()}),r){const{stop:O}=Re(a,y),{stop:$}=Pe(a,y,{attributeFilter:["style","class"]}),h=_([a,u,v],y);b.push(O,$,h),N(document,"mouseleave",()=>w.value=!0,{passive:!0}),o&&b.push(N("scroll",y,{capture:!0,passive:!0})),n&&b.push(N("resize",y,{passive:!0}))}return{x:u,y:v,sourceType:c,elementX:s,elementY:f,elementPositionX:d,elementPositionY:g,elementHeight:p,elementWidth:m,isOutside:w,stop:M}}function qt(e=null,t={}){var n,o;const{document:i=pt,restoreOnUnmount:r=s=>s}=t,l=(n=i==null?void 0:i.title)!==null&&n!==void 0?n:"",u=he((o=e!=null?e:i==null?void 0:i.title)!==null&&o!==void 0?o:null),v=!!(e&&typeof e=="function");function c(s){if(!("titleTemplate"in t))return s;const f=t.titleTemplate||"%s";return typeof f=="function"?f(s):A(f).replace(/%s/g,s)}if(_(u,(s,f)=>{s!==f&&i&&(i.title=c(s!=null?s:""))},{immediate:!0}),t.observe&&!t.titleTemplate&&i&&!v){var a;Pe((a=i.head)===null||a===void 0?void 0:a.querySelector("title"),()=>{i&&i.title!==u.value&&(u.value=c(i.title))},{childList:!0})}return pe(()=>{if(r){const s=r(l,u.value||"");s!=null&&i&&(i.title=s)}}),u}export{Gt as A,Qt as B,N as C,jt as D,H as a,Jt as b,$t as c,Vt as d,D as e,Qe as f,Dt as g,ve as h,re as i,Xe as j,Nt as k,Pt as l,Ft as m,kt as n,zt as o,Ht as p,It as q,Rt as r,Xt as s,Q as t,_e as u,Bt as v,Yt as w,Lt as x,qt as y,Ut as z};