@vtj/pro 0.13.38 → 0.13.39

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 (57) 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 +2 -2
  12. package/dist/@vtj/materials/deps/@vtj/utils/index.umd.js +2 -2
  13. package/dist/@vtj/materials/deps/element-plus/index.css +1 -1
  14. package/dist/@vtj/materials/deps/element-plus/index.full.min.js +29 -25
  15. package/dist/@vtj/materials/deps/element-plus/zh-cn.js +1 -1
  16. package/dist/@vtj/materials/deps/uni-h5/style.css +1 -1
  17. package/dist/@vtj/materials/deps/vant/index.css +1 -1
  18. package/dist/@vtj/materials/deps/vant/vant.min.js +3 -3
  19. package/dist/@vtj/materials/deps/vue/vue.global.js +314 -269
  20. package/dist/@vtj/materials/deps/vue/vue.global.prod.js +5 -5
  21. package/dist/@vtj/materials/deps/vue-router/vue-router.global.js +38 -55
  22. package/dist/@vtj/materials/deps/vue-router/vue-router.global.prod.js +2 -2
  23. package/dist/assets/{@element-plus-icons-vue-BKci8WR4.js → @element-plus-icons-vue-Cedkr9-t.js} +1 -1
  24. package/dist/assets/@vueuse-dfxA5MrB.js +1 -0
  25. package/dist/assets/{Editor-DDkL8z_g-CT2bNIwy.css → Editor-CB7H71mV-C0ROBped.css} +1 -1
  26. package/dist/assets/{Editor-DDkL8z_g-DBAoPJJ_.js → Editor-CB7H71mV-ZgvMz2MG.js} +102 -80
  27. package/dist/assets/auth-DnD_8cBd.js +1 -0
  28. package/dist/assets/element-plus-CTJx9qrF.js +12 -0
  29. package/dist/assets/element-plus-Cubt0wGL.css +1 -0
  30. package/dist/assets/index-CfEg0G4X.js +1 -0
  31. package/dist/assets/{index-BN_BO5AJ.js → index-DRT_gnec.js} +2 -2
  32. package/dist/assets/{lodash-es-DyZ5XK_i.js → lodash-es-C_ofKwPd.js} +1 -1
  33. package/dist/assets/marked-Dt4xUbva.js +59 -0
  34. package/dist/assets/page-BoUPZL85.js +2 -0
  35. package/dist/assets/preview-6kb9FMSl.js +2 -0
  36. package/dist/assets/{uni-page-BA3KNMq4.js → uni-page-DhlBsrdh.js} +1 -1
  37. package/dist/assets/{utils-DgJKN_YS.js → utils-BRRyiuJG.js} +1 -1
  38. package/dist/assets/vue-DnlwaDgl.js +35 -0
  39. package/dist/assets/vue-router-C7QxHR5l.js +9 -0
  40. package/dist/assets/{vxe-CiIRgvGK.js → vxe-CV1GhgEu.js} +4 -4
  41. package/dist/index.html +10 -10
  42. package/dist/uni/assets/{@dcloudio-uni-h5-vue-8GkSpuEV.js → @dcloudio-uni-h5-vue-Dxv_ts1w.js} +1 -1
  43. package/dist/uni/assets/{index-Bo7dvfkA.js → index-BBaSDF4L.js} +19 -19
  44. package/dist/uni/assets/vue-router-C2iVG-hf.js +9 -0
  45. package/dist/uni/index.html +24 -3
  46. package/package.json +12 -12
  47. package/dist/assets/@vueuse-CFu7Lllw.js +0 -1
  48. package/dist/assets/auth-BJnotDgg.js +0 -1
  49. package/dist/assets/element-plus-BCa6Zci8.js +0 -12
  50. package/dist/assets/element-plus-BZ_SBfk-.css +0 -1
  51. package/dist/assets/index-svsO9SUA.js +0 -1
  52. package/dist/assets/marked-BQZxLJfc.js +0 -56
  53. package/dist/assets/page-CKK4ROLa.js +0 -2
  54. package/dist/assets/preview-DUXn9tqt.js +0 -2
  55. package/dist/assets/vue-CAMRmZ-8.js +0 -35
  56. package/dist/assets/vue-router-CwSAuTE4.js +0 -9
  57. package/dist/uni/assets/vue-router-eQVOEjEf.js +0 -9
@@ -0,0 +1 @@
1
+ var De=Object.defineProperty,Re=Object.defineProperties;var Fe=Object.getOwnPropertyDescriptors;var Z=Object.getOwnPropertySymbols;var ge=Object.prototype.hasOwnProperty,we=Object.prototype.propertyIsEnumerable;var he=(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={}))ge.call(t,n)&&he(e,n,t[n]);if(Z)for(var n of Z(t))we.call(t,n)&&he(e,n,t[n]);return e},J=(e,t)=>Re(e,Fe(t));var G=(e,t)=>{var n={};for(var o in e)ge.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&&we.call(e,o)&&(n[o]=e[o]);return n};import{s as k,w as ae,r as ne,b as W,e as _,f as C,g as ce,h as Ee,u as de,i as K,j as ye,k as oe,n as ie,l as U,t as Le,m as xe,p as Ne,q as E,v as Me,x as ze}from"./vue-DnlwaDgl.js";function $t(e,t){var n;const o=k();return ae(()=>{o.value=e()},J(I({},t),{flush:(n=void 0)!=null?n:"sync"})),ne(o)}function Q(e){return ce()?(Ee(e),!0):!1}function L(e){return typeof e=="function"?e():de(e)}function Ie(e){if(!K(e))return ye(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 ye(t)}function Pt(e){return Ie(C(e))}const re=typeof window!="undefined"&&typeof document!="undefined";typeof WorkerGlobalScope!="undefined"&&globalThis instanceof WorkerGlobalScope;const Ve=e=>typeof e!="undefined",Ae=e=>e!=null,Be=Object.prototype.toString,He=e=>Be.call(e)==="[object Object]",kt=(e,t,n)=>Math.min(n,Math.max(t,e)),B=()=>{},Ye=Xe();function Xe(){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 Ce(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=l=>{clearTimeout(l),i(),i=B};return l=>{const v=L(e),f=L(t.maxWait);return n&&r(n),v<=0||f!==void 0&&f<=0?(o&&(r(o),o=null),Promise.resolve(l())):new Promise((d,s)=>{i=t.rejectOnCancel?s:d,f&&!o&&(o=setTimeout(()=>{n&&r(n),o=null,d(l())},f)),n=setTimeout(()=>{o&&r(o),o=null,d(l())},v)})}}function Je(...e){let t=0,n,o=!0,i=B,r,u,l,v,f;!K(e[0])&&typeof e[0]=="object"?{delay:u,trailing:l=!0,leading:v=!0,rejectOnCancel:f=!1}=e[0]:[u,l=!0,v=!0,f=!1]=e;const d=()=>{n&&(clearTimeout(n),n=void 0,i(),i=B)};return a=>{const c=L(u),p=Date.now()-t,h=()=>r=a();return d(),c<=0?(t=Date.now(),h()):(p>c&&(v||!o)?(t=Date.now(),h()):l&&(r=new Promise((w,g)=>{i=f?g:w,n=setTimeout(()=>{t=Date.now(),o=!0,w(h()),d()},Math.max(0,c-p))})),!v&&!n&&(n=setTimeout(()=>o=!0,c)),o=!1,r)}}function Ge(e){return U()}function Ue(e,t=200,n={}){return Ce(je(t,n),e)}function Dt(e,t=200,n={}){const o=W(e.value),i=Ue(()=>{o.value=e.value},t,n);return _(e,()=>i()),o}function Rt(e,t=200,n=!1,o=!0,i=!1){return Ce(Je(t,n,o,i),e)}function Te(e,t=!0,n){Ge()?oe(e,n):t?e():ie(e)}function Ft(e,t,n={}){const{immediate:o=!0}=n,i=W(!1);let r=null;function u(){r&&(clearTimeout(r),r=null)}function l(){i.value=!1,u()}function v(...f){u(),i.value=!0,r=setTimeout(()=>{i.value=!1,r=null,e(...f)},L(t))}return o&&(i.value=!0,re&&v()),Q(l),{isPending:ne(i),start:v,stop:l}}function F(e){var t;const n=L(e);return(t=n==null?void 0:n.$el)!=null?t:n}const H=re?window:void 0,Qe=re?window.document:void 0;function X(...e){let t,n,o,i;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,o,i]=e,t=H):[t,n,o,i]=e,!t)return B;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const r=[],u=()=>{r.forEach(d=>d()),r.length=0},l=(d,s,a,c)=>(d.addEventListener(s,a,c),()=>d.removeEventListener(s,a,c)),v=_(()=>[F(t),L(i)],([d,s])=>{if(u(),!d)return;const a=He(s)?I({},s):s;r.push(...n.flatMap(c=>o.map(p=>l(d,c,p,a))))},{immediate:!0,flush:"post"}),f=()=>{v(),u()};return Q(f),f}let be=!1;function Lt(e,t,n={}){const{window:o=H,ignore:i=[],capture:r=!0,detectIframe:u=!1}=n;if(!o)return B;Ye&&!be&&(be=!0,Array.from(o.document.body.children).forEach(a=>a.addEventListener("click",B)),o.document.documentElement.addEventListener("click",B));let l=!0;const v=a=>i.some(c=>{if(typeof c=="string")return Array.from(o.document.querySelectorAll(c)).some(p=>p===a.target||a.composedPath().includes(p));{const p=F(c);return p&&(a.target===p||a.composedPath().includes(p))}}),d=[X(o,"click",a=>{const c=F(e);if(!(!c||c===a.target||a.composedPath().includes(c))){if(a.detail===0&&(l=!v(a)),!l){l=!0;return}t(a)}},{passive:!0,capture:r}),X(o,"pointerdown",a=>{const c=F(e);l=!v(a)&&!!(c&&!a.composedPath().includes(c))},{passive:!0}),u&&X(o,"blur",a=>{setTimeout(()=>{var c;const p=F(e);((c=o.document.activeElement)==null?void 0:c.tagName)==="IFRAME"&&!(p!=null&&p.contains(o.document.activeElement))&&t(a)},0)})].filter(Boolean);return()=>d.forEach(a=>a())}function Ke(){const e=W(!1),t=U();return t&&oe(()=>{e.value=!0},t),e}function se(e){const t=Ke();return C(()=>(t.value,!!e()))}function We(e,t,n={}){const a=n,{window:o=H}=a,i=G(a,["window"]);let r;const u=se(()=>o&&"MutationObserver"in o),l=()=>{r&&(r.disconnect(),r=void 0)},v=C(()=>{const c=L(e),p=(Array.isArray(c)?c:[c]).map(F).filter(Ae);return new Set(p)}),f=_(()=>v.value,c=>{l(),u.value&&c.size&&(r=new MutationObserver(t),c.forEach(p=>r.observe(p,i)))},{immediate:!0,flush:"post"}),d=()=>r==null?void 0:r.takeRecords(),s=()=>{l(),f()};return Q(s),{isSupported:u,stop:s,takeRecords:d}}function Nt(e={}){var t;const{window:n=H,deep:o=!0,triggerOnRemoval:i=!1}=e,r=(t=e.document)!=null?t:n==null?void 0:n.document,u=()=>{var f;let d=r==null?void 0:r.activeElement;if(o)for(;d!=null&&d.shadowRoot;)d=(f=d==null?void 0:d.shadowRoot)==null?void 0:f.activeElement;return d},l=W(),v=()=>{l.value=u()};return n&&(X(n,"blur",f=>{f.relatedTarget===null&&v()},!0),X(n,"focus",v,!0)),i&&We(r,f=>{f.filter(d=>d.removedNodes.length).map(d=>Array.from(d.removedNodes)).flat().forEach(d=>{d===l.value&&v()})},{childList:!0,subtree:!0}),v(),l}function qe(e,t={}){const{window:n=H}=t,o=se(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let i;const r=W(!1),u=f=>{r.value=f.matches},l=()=>{i&&("removeEventListener"in i?i.removeEventListener("change",u):i.removeListener(u))},v=ae(()=>{o.value&&(l(),i=n.matchMedia(L(e)),"addEventListener"in i?i.addEventListener("change",u):i.addListener(u),r.value=i.matches)});return Q(()=>{v(),l(),i=void 0}),r}function Ze(e){return JSON.parse(JSON.stringify(e))}function zt(e,t,n={}){const{window:o=H,initialValue:i="",observe:r=!1}=n,u=W(i),l=C(()=>{var f;return F(t)||((f=o==null?void 0:o.document)==null?void 0:f.documentElement)});function v(){var f;const d=L(e),s=L(l);if(s&&o){const a=(f=o.getComputedStyle(s).getPropertyValue(d))==null?void 0:f.trim();u.value=a||i}}return r&&We(l,v,{attributeFilter:["style","class"],window:o}),_([l,()=>L(e)],v,{immediate:!0}),_(u,f=>{var d;(d=l.value)!=null&&d.style&&l.value.style.setProperty(L(e),f)}),u}function It(e={}){const{document:t=Qe}=e;if(!t)return W("visible");const n=W(t.visibilityState);return X(t,"visibilitychange",()=>{n.value=t.visibilityState}),n}function et(e,t,n={}){const s=n,{window:o=H}=s,i=G(s,["window"]);let r;const u=se(()=>o&&"ResizeObserver"in o),l=()=>{r&&(r.disconnect(),r=void 0)},v=C(()=>Array.isArray(e)?e.map(a=>F(a)):[F(e)]),f=_(v,a=>{if(l(),u.value&&o){r=new ResizeObserver(t);for(const c of a)c&&r.observe(c,i)}},{immediate:!0,flush:"post"}),d=()=>{l(),f()};return Q(d),{isSupported:u,stop:d}}function Vt(e,t={width:0,height:0},n={}){const{window:o=H,box:i="content-box"}=n,r=C(()=>{var s,a;return(a=(s=F(e))==null?void 0:s.namespaceURI)==null?void 0:a.includes("svg")}),u=W(t.width),l=W(t.height),{stop:v}=et(e,([s])=>{const a=i==="border-box"?s.borderBoxSize:i==="content-box"?s.contentBoxSize:s.devicePixelContentBoxSize;if(o&&r.value){const c=F(e);if(c){const p=c.getBoundingClientRect();u.value=p.width,l.value=p.height}}else if(a){const c=Array.isArray(a)?a:[a];u.value=c.reduce((p,{inlineSize:h})=>p+h,0),l.value=c.reduce((p,{blockSize:h})=>p+h,0)}else u.value=s.contentRect.width,l.value=s.contentRect.height},n);Te(()=>{const s=F(e);s&&(u.value="offsetWidth"in s?s.offsetWidth:t.width,l.value="offsetHeight"in s?s.offsetHeight:t.height)});const f=_(()=>F(e),s=>{u.value=s?t.width:0,l.value=s?t.height:0});function d(){v(),f()}return{width:u,height:l,stop:d}}function Bt(e,t,n={}){const{root:o,rootMargin:i="0px",threshold:r=.1,window:u=H,immediate:l=!0}=n,v=se(()=>u&&"IntersectionObserver"in u),f=C(()=>{const p=L(e);return(Array.isArray(p)?p:[p]).map(F).filter(Ae)});let d=B;const s=W(l),a=v.value?_(()=>[f.value,F(o),s.value],([p,h])=>{if(d(),!s.value||!p.length)return;const w=new IntersectionObserver(t,{root:F(h),rootMargin:i,threshold:r});p.forEach(g=>g&&w.observe(g)),d=()=>{w.disconnect(),d=B}},{immediate:l,flush:"post"}):B,c=()=>{d(),a(),s.value=!1};return Q(c),{isSupported:v,isActive:s,pause(){d(),s.value=!1},resume(){s.value=!0},stop:c}}function Ht(e,t,n,o={}){var i,r,u;const{clone:l=!1,passive:v=!1,eventName:f,deep:d=!1,defaultValue:s,shouldEmit:a}=o,c=U(),p=n||(c==null?void 0:c.emit)||((i=c==null?void 0:c.$emit)==null?void 0:i.bind(c))||((u=(r=c==null?void 0:c.proxy)==null?void 0:r.$emit)==null?void 0:u.bind(c==null?void 0:c.proxy));let h=f;t||(t="modelValue"),h=h||`update:${t.toString()}`;const w=b=>l?typeof l=="function"?l(b):Ze(b):b,g=()=>Ve(e[t])?w(e[t]):s,M=b=>{a?a(b)&&p(h,b):p(h,b)};if(v){const b=g(),x=W(b);let S=!1;return _(()=>e[t],$=>{S||(S=!0,x.value=w($),ie(()=>S=!1))}),_(x,$=>{!S&&($!==e[t]||d)&&M($)},{deep:d}),x}else return C({get(){return g()},set(b){M(b)}})}function Yt(e={}){const{window:t=H}=e;if(!t)return W(!1);const n=W(t.document.hasFocus());return X(t,"blur",()=>{n.value=!1}),X(t,"focus",()=>{n.value=!0}),n}function Xt(e={}){const{window:t=H,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:o=Number.POSITIVE_INFINITY,listenOrientation:i=!0,includeScrollbar:r=!0}=e,u=W(n),l=W(o),v=()=>{t&&(r?(u.value=t.innerWidth,l.value=t.innerHeight):(u.value=t.document.documentElement.clientWidth,l.value=t.document.documentElement.clientHeight))};if(v(),Te(v),X("resize",v,{passive:!0}),i){const f=qe("(orientation: portrait)");_(f,()=>v())}return{width:u,height:l}}function fe(e,t){return ce()?(Ee(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:ce();if(i==null&&!Me())throw new Error("injectLocal must be called in setup");return i&&le.has(i)&&n in le.get(i)?le.get(i)[n]:ze(...e)},ve=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 pe(...e){if(e.length!==1)return Le(...e);const t=e[0];return typeof t=="function"?ne(xe(()=>({get:t,set:rt}))):W(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=pe(n==="active");function i(){o.value=!1}function r(){o.value=!0}const u=(...l)=>{o.value&&e(...l)};return{isActive:ne(o),pause:i,resume:r,eventFilter:u}}function Se(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 d=n,{eventFilter:o,initialState:i="active"}=d,r=G(d,["eventFilter","initialState"]),{eventFilter:u,pause:l,resume:v,isActive:f}=ut(o,{initialState:i});return{stop:at(e,t,J(I({},r),{eventFilter:u})),pause:l,resume:v,isActive:f}}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]=xe(()=>({get(){return e.value[o]},set(i){var r;if(!((r=E(t.replaceRef))!==null&&r!==void 0)||r)if(Array.isArray(e.value)){const u=[...e.value];u[o]=i,e.value=u}else{const u=J(I({},e.value),{[o]:i});Object.setPrototypeOf(u,Object.getPrototypeOf(e.value)),e.value=u}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 N=ve?window:void 0,pt=ve?window.document:void 0;function Y(e){var t;const n=E(e);return(t=n==null?void 0:n.$el)!==null&&t!==void 0?t:n}function z(...e){const t=(o,i,r,u)=>(o.addEventListener(i,r,u),()=>o.removeEventListener(i,r,u)),n=C(()=>{const o=q(E(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=>Y(r)))!==null&&o!==void 0?o:[N].filter(r=>r!=null),q(E(n.value?e[1]:e[0])),q(de(n.value?e[2]:e[1])),E(n.value?e[3]:e[2])]},([o,i,r,u],l,v)=>{if(!(o!=null&&o.length)||!(i!=null&&i.length)||!(r!=null&&r.length))return;const f=it(u)?I({},u):u,d=o.flatMap(s=>i.flatMap(a=>r.map(c=>t(s,a,c,f))));v(()=>{d.forEach(s=>s())})},{flush:"post"})}function mt(){const e=k(!1),t=U();return t&&oe(()=>{e.value=!0},t),e}function me(e){const t=mt();return C(()=>(t.value,!!e()))}function $e(e,t,n={}){const s=n,{window:o=N}=s,i=G(s,["window"]);let r;const u=me(()=>o&&"MutationObserver"in o),l=()=>{r&&(r.disconnect(),r=void 0)},v=_(C(()=>{const a=q(E(e)).map(Y).filter(nt);return new Set(a)}),a=>{l(),u.value&&a.size&&(r=new MutationObserver(t),a.forEach(c=>r.observe(c,i)))},{immediate:!0,flush:"post"}),f=()=>r==null?void 0:r.takeRecords(),d=()=>{v(),l()};return fe(d),{isSupported:u,stop:d,takeRecords:f}}const ht=Symbol("vueuse-ssr-width");function gt(){const e=Me()?tt(ht,null):null;return typeof e=="number"?e:void 0}function wt(e,t={}){const{window:n=N,ssrWidth:o=gt()}=t,i=me(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function"),r=k(typeof o=="number"),u=k(),l=k(!1),v=f=>{l.value=f.matches};return ae(()=>{if(r.value){r.value=!i.value,l.value=E(e).split(",").some(f=>{const d=f.includes("not all"),s=f.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),a=f.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let c=!!(s||a);return s&&c&&(c=o>=Se(s[1])),a&&c&&(c=o<=Se(a[1])),d?!c:c});return}i.value&&(u.value=n.matchMedia(E(e)),l.value=u.value.matches)}),z(u,"change",v,{passive:!0}),C(()=>l.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 Pe(e,t){return yt[e]||t}function St(e){return wt("(prefers-color-scheme: dark)",e)}function Ot(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 Et={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()}},Oe="vueuse-storage";function xt(e,t,n,o={}){var i;const{flush:r="pre",deep:u=!0,listenToStorageChanges:l=!0,writeDefaults:v=!0,mergeDefaults:f=!1,shallow:d,window:s=N,eventFilter:a,onError:c=y=>{console.error(y)},initOnMounted:p}=o,h=(d?k:W)(typeof t=="function"?t():t),w=C(()=>E(e));if(!n)try{n=Pe("getDefaultStorage",()=>N==null?void 0:N.localStorage)()}catch(y){c(y)}if(!n)return h;const g=E(t),M=Ot(g),b=(i=o.serializer)!==null&&i!==void 0?i:Et[M],{pause:x,resume:S}=dt(h,y=>P(y),{flush:r,deep:u,eventFilter:a});_(w,()=>D(),{flush:r});let $=!1;const m=y=>{p&&!$||D(y)},O=y=>{p&&!$||j(y)};s&&l&&(n instanceof Storage?z(s,"storage",m,{passive:!0}):z(s,Oe,O)),p?ue(()=>{$=!0,D()}):D();function A(y,R){if(s){const V={key:w.value,oldValue:y,newValue:R,storageArea:n};s.dispatchEvent(n instanceof Storage?new StorageEvent("storage",V):new CustomEvent(Oe,{detail:V}))}}function P(y){try{const R=n.getItem(w.value);if(y==null)A(R,null),n.removeItem(w.value);else{const V=b.write(y);R!==V&&(n.setItem(w.value,V),A(R,V))}}catch(R){c(R)}}function T(y){const R=y?y.newValue:n.getItem(w.value);if(R==null)return v&&g!=null&&n.setItem(w.value,b.write(g)),g;if(!y&&f){const V=b.read(R);return typeof f=="function"?f(V,g):M==="object"&&!Array.isArray(V)?I(I({},g),V):V}else return typeof R!="string"?R:b.read(R)}function D(y){if(!(y&&y.storageArea!==n)){if(y&&y.key==null){h.value=g;return}if(!(y&&y.key!==w.value)){x();try{const R=b.write(h.value);(y===void 0||(y==null?void 0:y.newValue)!==R)&&(h.value=T(y))}catch(R){c(R)}finally{y?ie(S):S()}}}}function j(y){D(y.detail)}return h}const Mt="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function At(e={}){const{selector:t="html",attribute:n="class",initialValue:o="auto",window:i=N,storage:r,storageKey:u="vueuse-color-scheme",listenToStorageChanges:l=!0,storageRef:v,emitAuto:f,disableTransition:d=!0}=e,s=I({auto:"",light:"light",dark:"dark"},e.modes||{}),a=St({window:i}),c=C(()=>a.value?"dark":"light"),p=v||(u==null?pe(o):xt(u,o,r,{window:i,listenToStorageChanges:l})),h=C(()=>p.value==="auto"?c.value:p.value),w=Pe("updateHTMLAttrs",(x,S,$)=>{const m=typeof x=="string"?i==null?void 0:i.document.querySelector(x):Y(x);if(!m)return;const O=new Set,A=new Set;let P=null;if(S==="class"){const D=$.split(/\s/g);Object.values(s).flatMap(j=>(j||"").split(/\s/g)).filter(Boolean).forEach(j=>{D.includes(j)?O.add(j):A.add(j)})}else P={key:S,value:$};if(O.size===0&&A.size===0&&P===null)return;let T;d&&(T=i.document.createElement("style"),T.appendChild(document.createTextNode(Mt)),i.document.head.appendChild(T));for(const D of O)m.classList.add(D);for(const D of A)m.classList.remove(D);P&&m.setAttribute(P.key,P.value),d&&(i.getComputedStyle(T).opacity,document.head.removeChild(T))});function g(x){var S;w(t,n,(S=s[x])!==null&&S!==void 0?S:x)}function M(x){e.onChanged?e.onChanged(x,g):g(x)}_(h,M,{flush:"post",immediate:!0}),ue(()=>M(h.value));const b=C({get(){return f?p.value:h.value},set(x){p.value=x}});return Object.assign(b,{store:p,system:c,state:h})}function jt(e={}){const{valueDark:t="dark",valueLight:n=""}=e,o=At(J(I({},e),{onChanged:(r,u)=>{var l;e.onChanged?(l=e.onChanged)===null||l===void 0||l.call(e,r==="dark",u,r):u(r)},modes:{dark:t,light:n}})),i=C(()=>o.system.value);return C({get(){return o.value==="dark"},set(r){const u=r?"dark":"light";i.value===u?o.value="auto":o.value=u}})}function Jt(e,t={}){var n;const{pointerTypes:o,preventDefault:i,stopPropagation:r,exact:u,onMove:l,onEnd:v,onStart:f,initialValue:d,axis:s="both",draggingElement:a=N,containerElement:c,handle:p=e,buttons:h=[0]}=t,w=W((n=E(d))!==null&&n!==void 0?n:{x:0,y:0}),g=W(),M=m=>o?o.includes(m.pointerType):!0,b=m=>{E(i)&&m.preventDefault(),E(r)&&m.stopPropagation()},x=m=>{var O;if(!E(h).includes(m.button)||E(t.disabled)||!M(m)||E(u)&&m.target!==E(e))return;const A=E(c),P=A==null||(O=A.getBoundingClientRect)===null||O===void 0?void 0:O.call(A),T=E(e).getBoundingClientRect(),D={x:m.clientX-(A?T.left-P.left+A.scrollLeft:T.left),y:m.clientY-(A?T.top-P.top+A.scrollTop:T.top)};(f==null?void 0:f(D,m))!==!1&&(g.value=D,b(m))},S=m=>{if(E(t.disabled)||!M(m)||!g.value)return;const O=E(c),A=E(e).getBoundingClientRect();let{x:P,y:T}=w.value;(s==="x"||s==="both")&&(P=m.clientX-g.value.x,O&&(P=Math.min(Math.max(0,P),O.scrollWidth-A.width))),(s==="y"||s==="both")&&(T=m.clientY-g.value.y,O&&(T=Math.min(Math.max(0,T),O.scrollHeight-A.height))),w.value={x:P,y:T},l==null||l(w.value,m),b(m)},$=m=>{E(t.disabled)||!M(m)||g.value&&(g.value=void 0,v==null||v(w.value,m),b(m))};if(ve){const m=()=>{var O;return{capture:(O=t.capture)!==null&&O!==void 0?O:!0,passive:!E(i)}};z(p,"pointerdown",x,m),z(a,"pointermove",S,m),z(a,"pointerup",$,m)}return J(I({},ft(w)),{position:w,isDragging:C(()=>!!g.value),style:C(()=>`left:${w.value.x}px;top:${w.value.y}px;`)})}function ke(e,t,n={}){const d=n,{window:o=N}=d,i=G(d,["window"]);let r;const u=me(()=>o&&"ResizeObserver"in o),l=()=>{r&&(r.disconnect(),r=void 0)},v=_(C(()=>{const s=E(e);return Array.isArray(s)?s.map(a=>Y(a)):[Y(s)]}),s=>{if(l(),u.value&&o){r=new ResizeObserver(t);for(const a of s)a&&r.observe(a,i)}},{immediate:!0,flush:"post"}),f=()=>{l(),v()};return fe(f),{isSupported:u,stop:f}}function Gt(e,t={width:0,height:0},n={}){const{window:o=N,box:i="content-box"}=n,r=C(()=>{var s;return(s=Y(e))===null||s===void 0||(s=s.namespaceURI)===null||s===void 0?void 0:s.includes("svg")}),u=k(t.width),l=k(t.height),{stop:v}=ke(e,([s])=>{const a=i==="border-box"?s.borderBoxSize:i==="content-box"?s.contentBoxSize:s.devicePixelContentBoxSize;if(o&&r.value){const c=Y(e);if(c){const p=c.getBoundingClientRect();u.value=p.width,l.value=p.height}}else if(a){const c=q(a);u.value=c.reduce((p,{inlineSize:h})=>p+h,0),l.value=c.reduce((p,{blockSize:h})=>p+h,0)}else u.value=s.contentRect.width,l.value=s.contentRect.height},n);ue(()=>{const s=Y(e);s&&(u.value="offsetWidth"in s?s.offsetWidth:t.width,l.value="offsetHeight"in s?s.offsetHeight:t.height)});const f=_(()=>Y(e),s=>{u.value=s?t.width:0,l.value=s?t.height:0});function d(){v(),f()}return{width:u,height:l,stop:d}}const Ct={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 Tt(e={}){const{type:t="page",touch:n=!0,resetOnTouchEnds:o=!1,initialValue:i={x:0,y:0},window:r=N,target:u=r,scroll:l=!0,eventFilter:v}=e;let f=null,d=0,s=0;const a=k(i.x),c=k(i.y),p=k(null),h=typeof t=="function"?t:Ct[t],w=m=>{const O=h(m);f=m,O&&([a.value,c.value]=O,p.value="mouse"),r&&(d=r.scrollX,s=r.scrollY)},g=m=>{if(m.touches.length>0){const O=h(m.touches[0]);O&&([a.value,c.value]=O,p.value="touch")}},M=()=>{if(!f||!r)return;const m=h(f);f instanceof MouseEvent&&m&&(a.value=m[0]+r.scrollX-d,c.value=m[1]+r.scrollY-s)},b=()=>{a.value=i.x,c.value=i.y},x=v?m=>v(()=>w(m),{}):m=>w(m),S=v?m=>v(()=>g(m),{}):m=>g(m),$=v?()=>v(()=>M(),{}):()=>M();if(u){const m={passive:!0};z(u,["mousemove","dragover"],x,m),n&&t!=="movement"&&(z(u,["touchstart","touchmove"],S,m),o&&z(u,"touchend",b,m)),l&&t==="page"&&z(r,"scroll",$,m)}return{x:a,y:c,sourceType:p}}function Ut(e,t={}){const{windowResize:n=!0,windowScroll:o=!0,handleOutside:i=!0,window:r=N}=t,u=t.type||"page",{x:l,y:v,sourceType:f}=Tt(t),d=k(e!=null?e:r==null?void 0:r.document.body),s=k(0),a=k(0),c=k(0),p=k(0),h=k(0),w=k(0),g=k(!0);function M(){if(!r)return;const S=Y(d);if(!(!S||!(S instanceof Element)))for(const $ of S.getClientRects()){const{left:m,top:O,width:A,height:P}=$;c.value=m+(u==="page"?r.pageXOffset:0),p.value=O+(u==="page"?r.pageYOffset:0),h.value=P,w.value=A;const T=l.value-c.value,D=v.value-p.value;if(g.value=A===0||P===0||T<0||D<0||T>A||D>P,(i||!g.value)&&(s.value=T,a.value=D),!g.value)break}}const b=[];function x(){b.forEach(S=>S()),b.length=0}if(ue(()=>{M()}),r){const{stop:S}=ke(d,M),{stop:$}=$e(d,M,{attributeFilter:["style","class"]}),m=_([d,l,v],M);b.push(S,$,m),z(document,"mouseleave",()=>g.value=!0,{passive:!0}),o&&b.push(z("scroll",M,{capture:!0,passive:!0})),n&&b.push(z("resize",M,{passive:!0}))}return{x:l,y:v,sourceType:f,elementX:s,elementY:a,elementPositionX:c,elementPositionY:p,elementHeight:h,elementWidth:w,isOutside:g,stop:x}}function Qt(e=null,t={}){var n,o;const{document:i=pt,restoreOnUnmount:r=s=>s}=t,u=(n=i==null?void 0:i.title)!==null&&n!==void 0?n:"",l=pe((o=e!=null?e:i==null?void 0:i.title)!==null&&o!==void 0?o:null),v=!!(e&&typeof e=="function");function f(s){if(!("titleTemplate"in t))return s;const a=t.titleTemplate||"%s";return typeof a=="function"?a(s):E(a).replace(/%s/g,s)}if(_(l,(s,a)=>{s!==a&&i&&(i.title=f(s!=null?s:""))},{immediate:!0}),t.observe&&!t.titleTemplate&&i&&!v){var d;$e((d=i.head)===null||d===void 0?void 0:d.querySelector("title"),()=>{i&&i.title!==l.value&&(l.value=f(i.title))},{childList:!0})}return fe(()=>{if(r){const s=r(u,l.value||"");s!=null&&i&&(i.title=s)}}),l}export{Ut as A,z as B,jt as C,et as a,F as b,$t as c,Ue as d,zt as e,Ft as f,Xt as g,kt as h,re as i,Dt as j,Rt as k,Bt as l,Ye as m,We as n,Lt as o,It as p,Yt as q,Pt as r,Vt as s,Q as t,X as u,Ht as v,Nt as w,Qt as x,Gt as y,Jt as z};