@vtj/pro 0.8.39 → 0.8.41

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 (33) 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 +3 -3
  4. package/dist/@vtj/materials/assets/ui/index.umd.js +3 -3
  5. package/dist/@vtj/materials/deps/@vtj/charts/index.umd.js +2 -2
  6. package/dist/@vtj/materials/deps/@vtj/icons/index.umd.js +2 -2
  7. package/dist/@vtj/materials/deps/@vtj/ui/index.umd.js +14 -14
  8. package/dist/@vtj/materials/deps/@vtj/ui/style.css +1 -1
  9. package/dist/@vtj/materials/deps/@vtj/utils/index.umd.js +19 -19
  10. package/dist/@vtj/materials/deps/@vueuse/core/index.iife.min.js +1 -1
  11. package/dist/@vtj/materials/deps/ant-design-vue/antd.min.js +1 -1
  12. package/dist/@vtj/materials/deps/element-plus/index.css +1 -1
  13. package/dist/@vtj/materials/deps/element-plus/index.full.min.js +14 -14
  14. package/dist/@vtj/materials/deps/element-plus/zh-cn.js +1 -1
  15. package/dist/assets/{@element-plus-Ci-O1dPP.js → @element-plus-Dr1LcH6A.js} +1 -1
  16. package/dist/assets/{@vue-D1Pu-JcS.js → @vue-CX9FTROR.js} +1 -1
  17. package/dist/assets/{@vueuse-Zrm3bwc0.js → @vueuse-Q-gKzJy1.js} +1 -1
  18. package/dist/assets/{Editor-bVAaI2zL-BamQc4mu.js → Editor-bVAaI2zL-thd2lNM_.js} +1 -1
  19. package/dist/assets/element-plus-DTXGhk_K.js +20 -0
  20. package/dist/assets/element-plus-DeNzlMO9.css +1 -0
  21. package/dist/assets/{extension-Bog81DN3.css → extension-9V_ylLVA.css} +1 -1
  22. package/dist/assets/extension-CWKWJrpR.js +216 -0
  23. package/dist/assets/{index-BVCpBPzi.js → index-C_DGeyn7.js} +2 -2
  24. package/dist/assets/{index-D2tHyzQc.js → index-wknWom5u.js} +1 -1
  25. package/dist/assets/preview-Buulszr8.js +2 -0
  26. package/dist/assets/{vue-BwT_rCsl.js → vue-CNwLog5p.js} +2 -2
  27. package/dist/assets/{vue-router-C1P2wwhN.js → vue-router-DGIXQzZL.js} +2 -2
  28. package/dist/index.html +7 -7
  29. package/package.json +11 -11
  30. package/dist/assets/element-plus-CiJufdvG.js +0 -20
  31. package/dist/assets/element-plus-D-CbeVZr.css +0 -1
  32. package/dist/assets/extension-DJOIHax4.js +0 -216
  33. package/dist/assets/preview-iIJz-15m.js +0 -2
@@ -26,4 +26,4 @@
26
26
  * @vue/shared v3.4.21
27
27
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
28
28
  * @license MIT
29
- **/const La=()=>{},du=Object.prototype.hasOwnProperty,$a=(e,t)=>du.call(e,t),Ha=Array.isArray,Va=e=>pr(e)==="[object Date]",ms=e=>typeof e=="function",Da=e=>typeof e=="string",hu=e=>e!==null&&typeof e=="object",ka=e=>(hu(e)||ms(e))&&ms(e.then)&&ms(e.catch),pu=Object.prototype.toString,pr=e=>pu.call(e),ja=e=>pr(e).slice(8,-1),Ba=e=>pr(e)==="[object Object]",gr=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},gu=/-(\w)/g,Ua=gr(e=>e.replace(gu,(t,n)=>n?n.toUpperCase():"")),mu=/\B([A-Z])/g,Ka=gr(e=>e.replace(mu,"-$1").toLowerCase()),Wa=gr(e=>e.charAt(0).toUpperCase()+e.slice(1));export{Lf as $,ya as A,ms as B,ht as C,he as D,ir as E,ae as F,Sn as G,Fl as H,or as I,hf as J,Oc as K,Bc as L,Gu as M,La as N,qn as O,Gn as P,of as Q,ta as R,xo as S,ca as T,Yi as U,ju as V,Hu as W,da as X,So as Y,Nu as Z,ne as _,Ao as a,Sa as a$,$o as a0,Ws as a1,rr as a2,Ra as a3,na as a4,Na as a5,De as a6,At as a7,Ac as a8,Ku as a9,Mu as aA,ba as aB,Uu as aC,Bt as aD,xt as aE,Du as aF,Su as aG,Ou as aH,hr as aI,Pu as aJ,ve as aK,Xe as aL,Re as aM,zs as aN,xa as aO,Xc as aP,ia as aQ,Zc as aR,Fa as aS,aa as aT,Bu as aU,Zf as aV,Yu as aW,zu as aX,Qu as aY,Zu as aZ,Ju as a_,Pa as aa,Wu as ab,Va as ac,Ru as ad,rf as ae,z as af,Go as ag,qo as ah,$u as ai,Rc as aj,ka as ak,Ds as al,qu as am,Ml as an,_u as ao,ja as ap,Vu as aq,fi as ar,Ba as as,Ma as at,Ka as au,Pl as av,wc as aw,to as ax,va as ay,hi as az,yu as b,Xu as b0,Ca as b1,bu as b2,sr as b3,Nt as b4,la as b5,au as b6,ma as b7,Ia as b8,pf as b9,xn as bA,xu as bB,ua as bC,wu as bD,Oa as bE,Aa as bF,ga as bG,yc as bH,eo as bI,ou as bJ,iu as bK,gf as bL,bc as bM,Cc as bN,oa as bO,ea as bP,_a as bQ,Lu as bR,Ri as ba,$t as bb,Ut as bc,pa as bd,Mn as be,sa as bf,ra as bg,vc as bh,Fc as bi,Mc as bj,Pc as bk,Nc as bl,Iu as bm,Fi as bn,Fu as bo,Es as bp,ha as bq,wa as br,zt as bs,Ur as bt,Ea as bu,vt as bv,Eu as bw,_c as bx,Ta as by,Cu as bz,fa as c,so as d,Oi as e,An as f,ul as g,Hl as h,st as i,Xn as j,df as k,pe as l,Au as m,Xs as n,ur as o,Ha as p,hu as q,wn as r,Tu as s,vu as t,Mi as u,Da as v,ku as w,Wa as x,Ua as y,$a as z};
29
+ **/const La=()=>{},du=Object.prototype.hasOwnProperty,$a=(e,t)=>du.call(e,t),Ha=Array.isArray,Va=e=>pr(e)==="[object Date]",ms=e=>typeof e=="function",Da=e=>typeof e=="string",hu=e=>e!==null&&typeof e=="object",ka=e=>(hu(e)||ms(e))&&ms(e.then)&&ms(e.catch),pu=Object.prototype.toString,pr=e=>pu.call(e),ja=e=>pr(e).slice(8,-1),Ba=e=>pr(e)==="[object Object]",gr=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},gu=/-(\w)/g,Ua=gr(e=>e.replace(gu,(t,n)=>n?n.toUpperCase():"")),mu=/\B([A-Z])/g,Ka=gr(e=>e.replace(mu,"-$1").toLowerCase()),Wa=gr(e=>e.charAt(0).toUpperCase()+e.slice(1));export{$o as $,ya as A,ms as B,ht as C,he as D,ir as E,ae as F,Sn as G,or as H,hf as I,Oc as J,Bc as K,Gu as L,qn as M,La as N,Gn as O,of as P,ta as Q,xo as R,Yi as S,ca as T,ju as U,Hu as V,da as W,So as X,Nu as Y,ne as Z,Lf as _,Ao as a,Xu as a$,Ws as a0,rr as a1,Ra as a2,na as a3,Na as a4,De as a5,At as a6,Ac as a7,Ku as a8,Pa as a9,ba as aA,Uu as aB,Bt as aC,xt as aD,Du as aE,Su as aF,Ou as aG,hr as aH,Pu as aI,ve as aJ,Xe as aK,Re as aL,zs as aM,xa as aN,Xc as aO,ia as aP,Zc as aQ,Fa as aR,aa as aS,Bu as aT,Zf as aU,Yu as aV,zu as aW,Qu as aX,Zu as aY,Ju as aZ,Sa as a_,Wu as aa,Va as ab,Ru as ac,rf as ad,z as ae,Go as af,qo as ag,$u as ah,Rc as ai,ka as aj,Ds as ak,qu as al,Ml as am,_u as an,ja as ao,Vu as ap,fi as aq,Ba as ar,Ma as as,Ka as at,Pl as au,wc as av,to as aw,va as ax,hi as ay,Mu as az,yu as b,Ca as b0,bu as b1,sr as b2,Nt as b3,la as b4,au as b5,ma as b6,Ia as b7,pf as b8,Ri as b9,xu as bA,ua as bB,wu as bC,Oa as bD,Aa as bE,ga as bF,yc as bG,eo as bH,ou as bI,iu as bJ,gf as bK,bc as bL,Cc as bM,oa as bN,ea as bO,_a as bP,Lu as bQ,$t as ba,Ut as bb,pa as bc,Mn as bd,sa as be,ra as bf,vc as bg,Fc as bh,Mc as bi,Pc as bj,Nc as bk,Iu as bl,Fi as bm,Fu as bn,Es as bo,ha as bp,wa as bq,zt as br,Ur as bs,Ea as bt,vt as bu,Eu as bv,_c as bw,Ta as bx,Cu as by,xn as bz,fa as c,so as d,Oi as e,An as f,ul as g,Hl as h,st as i,Xn as j,df as k,pe as l,Au as m,Xs as n,ur as o,Ha as p,hu as q,wn as r,Tu as s,vu as t,Mi as u,Da as v,ku as w,Wa as x,Ua as y,$a as z};
@@ -1 +1 @@
1
- var He=Object.defineProperty,ze=Object.defineProperties;var je=Object.getOwnPropertyDescriptors;var k=Object.getOwnPropertySymbols;var ie=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable;var se=(e,t,n)=>t in e?He(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,F=(e,t)=>{for(var n in t||(t={}))ie.call(t,n)&&se(e,n,t[n]);if(k)for(var n of k(t))ae.call(t,n)&&se(e,n,t[n]);return e},j=(e,t)=>ze(e,je(t));var B=(e,t)=>{var n={};for(var r in e)ie.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&k)for(var r of k(e))t.indexOf(r)<0&&ae.call(e,r)&&(n[r]=e[r]);return n};import{g as be,b as Oe,u as _e,r as h,e as Q,s as q,w as Se,f as A,h as Z,i as J,j as ee,n as te,k as C,l as ke,t as Be,m as Xe}from"./@vue-D1Pu-JcS.js";var Ye=Object.defineProperty,Qe=Object.defineProperties,Je=Object.getOwnPropertyDescriptors,ue=Object.getOwnPropertySymbols,Ge=Object.prototype.hasOwnProperty,Ue=Object.prototype.propertyIsEnumerable,le=(e,t,n)=>t in e?Ye(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ke=(e,t)=>{for(var n in t||(t={}))Ge.call(t,n)&&le(e,n,t[n]);if(ue)for(var n of ue(t))Ue.call(t,n)&&le(e,n,t[n]);return e},qe=(e,t)=>Qe(e,Je(t));function Qt(e,t){var n;const r=q();return Se(()=>{r.value=e()},qe(Ke({},t),{flush:(n=void 0)!=null?n:"sync"})),Q(r)}var ce;const G=typeof window!="undefined",Ze=e=>typeof e!="undefined",K=e=>typeof e=="function",et=e=>typeof e=="string",z=()=>{},tt=G&&((ce=window==null?void 0:window.navigator)==null?void 0:ce.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function N(e){return typeof e=="function"?e():_e(e)}function Ee(e,t){function n(...r){return new Promise((o,s)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(o).catch(s)})}return n}function nt(e,t={}){let n,r,o=z;const s=i=>{clearTimeout(i),o(),o=z};return i=>{const l=N(e),f=N(t.maxWait);return n&&s(n),l<=0||f!==void 0&&f<=0?(r&&(s(r),r=null),Promise.resolve(i())):new Promise((v,c)=>{o=t.rejectOnCancel?c:v,f&&!r&&(r=setTimeout(()=>{n&&s(n),r=null,v(i())},f)),n=setTimeout(()=>{r&&s(r),r=null,v(i())},l)})}}function rt(e,t=!0,n=!0,r=!1){let o=0,s,a=!0,i=z,l;const f=()=>{s&&(clearTimeout(s),s=void 0,i(),i=z)};return c=>{const u=N(e),d=Date.now()-o,p=()=>l=c();return f(),u<=0?(o=Date.now(),p()):(d>u&&(n||!a)?(o=Date.now(),p()):t&&(l=new Promise((m,g)=>{i=r?g:m,s=setTimeout(()=>{o=Date.now(),a=!0,m(p()),f()},Math.max(0,u-d))})),!n&&!s&&(s=setTimeout(()=>a=!0,u)),a=!1,l)}}function ot(e){return e}function st(e,t){let n,r,o;const s=h(!0),a=()=>{s.value=!0,o()};A(e,a,{flush:"sync"});const i=K(t)?t:t.get,l=K(t)?void 0:t.set,f=Z((v,c)=>(r=v,o=c,{get(){return s.value&&(n=i(),s.value=!1),r(),n},set(u){l==null||l(u)}}));return Object.isExtensible(f)&&(f.trigger=a),f}function U(e){return be()?(Oe(e),!0):!1}function it(e,t=200,n={}){return Ee(nt(t,n),e)}function Jt(e,t=200,n={}){const r=h(e.value),o=it(()=>{r.value=e.value},t,n);return A(e,()=>o()),r}function Gt(e,t=200,n=!1,r=!0,o=!1){return Ee(rt(t,n,r,o),e)}function ne(e,t=!0){J()?ee(e):t?e():te(e)}function Ut(e,t,n={}){const{immediate:r=!0}=n,o=h(!1);let s=null;function a(){s&&(clearTimeout(s),s=null)}function i(){o.value=!1,a()}function l(...f){a(),o.value=!0,s=setTimeout(()=>{o.value=!1,s=null,e(...f)},N(t))}return r&&(o.value=!0,G&&l()),U(i),{isPending:Q(o),start:l,stop:i}}function I(e){var t;const n=N(e);return(t=n==null?void 0:n.$el)!=null?t:n}const H=G?window:void 0,at=G?window.document:void 0;function M(...e){let t,n,r,o;if(et(e[0])||Array.isArray(e[0])?([n,r,o]=e,t=H):[t,n,r,o]=e,!t)return z;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const s=[],a=()=>{s.forEach(v=>v()),s.length=0},i=(v,c,u,d)=>(v.addEventListener(c,u,d),()=>v.removeEventListener(c,u,d)),l=A(()=>[I(t),N(o)],([v,c])=>{a(),v&&s.push(...n.flatMap(u=>r.map(d=>i(v,u,d,c))))},{immediate:!0,flush:"post"}),f=()=>{l(),a()};return U(f),f}let fe=!1;function Kt(e,t,n={}){const{window:r=H,ignore:o=[],capture:s=!0,detectIframe:a=!1}=n;if(!r)return;tt&&!fe&&(fe=!0,Array.from(r.document.body.children).forEach(u=>u.addEventListener("click",z)));let i=!0;const l=u=>o.some(d=>{if(typeof d=="string")return Array.from(r.document.querySelectorAll(d)).some(p=>p===u.target||u.composedPath().includes(p));{const p=I(d);return p&&(u.target===p||u.composedPath().includes(p))}}),v=[M(r,"click",u=>{const d=I(e);if(!(!d||d===u.target||u.composedPath().includes(d))){if(u.detail===0&&(i=!l(u)),!i){i=!0;return}t(u)}},{passive:!0,capture:s}),M(r,"pointerdown",u=>{const d=I(e);d&&(i=!u.composedPath().includes(d)&&!l(u))},{passive:!0}),a&&M(r,"blur",u=>{var d;const p=I(e);((d=r.document.activeElement)==null?void 0:d.tagName)==="IFRAME"&&!(p!=null&&p.contains(r.document.activeElement))&&t(u)})].filter(Boolean);return()=>v.forEach(u=>u())}function qt(e={}){var t;const{window:n=H}=e,r=(t=e.document)!=null?t:n==null?void 0:n.document,o=st(()=>null,()=>r==null?void 0:r.activeElement);return n&&(M(n,"blur",s=>{s.relatedTarget===null&&o.trigger()},!0),M(n,"focus",o.trigger,!0)),o}function Pe(e,t=!1){const n=h(),r=()=>n.value=!!e();return r(),ne(r,t),n}function ut(e){return JSON.parse(JSON.stringify(e))}const de=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},ve="__vueuse_ssr_handlers__";de[ve]=de[ve]||{};function Zt(e,t,{window:n=H,initialValue:r=""}={}){const o=h(r),s=C(()=>{var a;return I(t)||((a=n==null?void 0:n.document)==null?void 0:a.documentElement)});return A([s,()=>N(e)],([a,i])=>{var l;if(a&&n){const f=(l=n.getComputedStyle(a).getPropertyValue(i))==null?void 0:l.trim();o.value=f||r}},{immediate:!0}),A(o,a=>{var i;(i=s.value)!=null&&i.style&&s.value.style.setProperty(N(e),a)}),o}function en({document:e=at}={}){if(!e)return h("visible");const t=h(e.visibilityState);return M(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var pe=Object.getOwnPropertySymbols,lt=Object.prototype.hasOwnProperty,ct=Object.prototype.propertyIsEnumerable,ft=(e,t)=>{var n={};for(var r in e)lt.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&pe)for(var r of pe(e))t.indexOf(r)<0&&ct.call(e,r)&&(n[r]=e[r]);return n};function dt(e,t,n={}){const r=n,{window:o=H}=r,s=ft(r,["window"]);let a;const i=Pe(()=>o&&"ResizeObserver"in o),l=()=>{a&&(a.disconnect(),a=void 0)},f=A(()=>I(e),c=>{l(),i.value&&o&&c&&(a=new ResizeObserver(t),a.observe(c,s))},{immediate:!0,flush:"post"}),v=()=>{l(),f()};return U(v),{isSupported:i,stop:v}}function tn(e,t={}){const{reset:n=!0,windowResize:r=!0,windowScroll:o=!0,immediate:s=!0}=t,a=h(0),i=h(0),l=h(0),f=h(0),v=h(0),c=h(0),u=h(0),d=h(0);function p(){const m=I(e);if(!m){n&&(a.value=0,i.value=0,l.value=0,f.value=0,v.value=0,c.value=0,u.value=0,d.value=0);return}const g=m.getBoundingClientRect();a.value=g.height,i.value=g.bottom,l.value=g.left,f.value=g.right,v.value=g.top,c.value=g.width,u.value=g.x,d.value=g.y}return dt(e,p),A(()=>I(e),m=>!m&&p()),o&&M("scroll",p,{capture:!0,passive:!0}),r&&M("resize",p,{passive:!0}),ne(()=>{s&&p()}),{height:a,bottom:i,left:l,right:f,top:v,width:c,x:u,y:d,update:p}}var me=Object.getOwnPropertySymbols,vt=Object.prototype.hasOwnProperty,pt=Object.prototype.propertyIsEnumerable,mt=(e,t)=>{var n={};for(var r in e)vt.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&me)for(var r of me(e))t.indexOf(r)<0&&pt.call(e,r)&&(n[r]=e[r]);return n};function nn(e,t,n={}){const r=n,{window:o=H}=r,s=mt(r,["window"]);let a;const i=Pe(()=>o&&"MutationObserver"in o),l=()=>{a&&(a.disconnect(),a=void 0)},f=A(()=>I(e),c=>{l(),i.value&&o&&c&&(a=new MutationObserver(t),a.observe(c,s))},{immediate:!0}),v=()=>{l(),f()};return U(v),{isSupported:i,stop:v}}var he;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(he||(he={}));var ht=Object.defineProperty,ge=Object.getOwnPropertySymbols,gt=Object.prototype.hasOwnProperty,yt=Object.prototype.propertyIsEnumerable,ye=(e,t,n)=>t in e?ht(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,wt=(e,t)=>{for(var n in t||(t={}))gt.call(t,n)&&ye(e,n,t[n]);if(ge)for(var n of ge(t))yt.call(t,n)&&ye(e,n,t[n]);return e};const bt={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]};wt({linear:ot},bt);function rn(e,t,n,r={}){var o,s,a;const{clone:i=!1,passive:l=!1,eventName:f,deep:v=!1,defaultValue:c}=r,u=J(),d=n||(u==null?void 0:u.emit)||((o=u==null?void 0:u.$emit)==null?void 0:o.bind(u))||((a=(s=u==null?void 0:u.proxy)==null?void 0:s.$emit)==null?void 0:a.bind(u==null?void 0:u.proxy));let p=f;t||(t="modelValue"),p=f||p||`update:${t.toString()}`;const m=O=>i?K(i)?i(O):ut(O):O,g=()=>Ze(e[t])?m(e[t]):c;if(l){const O=g(),S=h(O);return A(()=>e[t],x=>S.value=m(x)),A(S,x=>{(x!==e[t]||v)&&d(p,x)},{deep:v}),S}else return C({get(){return g()},set(O){d(p,O)}})}function on({window:e=H}={}){if(!e)return h(!1);const t=h(e.document.hasFocus());return M(e,"blur",()=>{t.value=!1}),M(e,"focus",()=>{t.value=!0}),t}function sn(e={}){const{window:t=H,initialWidth:n=1/0,initialHeight:r=1/0,listenOrientation:o=!0,includeScrollbar:s=!0}=e,a=h(n),i=h(r),l=()=>{t&&(s?(a.value=t.innerWidth,i.value=t.innerHeight):(a.value=t.document.documentElement.clientWidth,i.value=t.document.documentElement.clientHeight))};return l(),ne(l),M("resize",l,{passive:!0}),o&&M("orientationchange",l,{passive:!0}),{width:a,height:i}}function re(e){return be()?(Oe(e),!0):!1}function T(e){return typeof e=="function"?e():_e(e)}const xe=typeof window!="undefined"&&typeof document!="undefined";typeof WorkerGlobalScope!="undefined"&&globalThis instanceof WorkerGlobalScope;const Ot=Object.prototype.toString,_t=e=>Ot.call(e)==="[object Object]",Te=()=>{};function St(e,t){function n(...r){return new Promise((o,s)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(o).catch(s)})}return n}const Ce=e=>e();function Et(e=Ce){const t=h(!0);function n(){t.value=!1}function r(){t.value=!0}const o=(...s)=>{t.value&&e(...s)};return{isActive:Q(t),pause:n,resume:r,eventFilter:o}}function Pt(e){return J()}function xt(...e){if(e.length!==1)return Xe(...e);const t=e[0];return typeof t=="function"?Q(Z(()=>({get:t,set:Te}))):h(t)}function Tt(e,t,n={}){const s=n,{eventFilter:r=Ce}=s,o=B(s,["eventFilter"]);return A(e,St(r,t),o)}function Ct(e,t,n={}){const v=n,{eventFilter:r}=v,o=B(v,["eventFilter"]),{eventFilter:s,pause:a,resume:i,isActive:l}=Et(r);return{stop:Tt(e,t,j(F({},o),{eventFilter:s})),pause:a,resume:i,isActive:l}}function At(e,t={}){if(!ke(e))return Be(e);const n=Array.isArray(e.value)?Array.from({length:e.value.length}):{};for(const r in e.value)n[r]=Z(()=>({get(){return e.value[r]},set(o){var s;if((s=T(t.replaceRef))!=null?s:!0)if(Array.isArray(e.value)){const i=[...e.value];i[r]=o,e.value=i}else{const i=j(F({},e.value),{[r]:o});Object.setPrototypeOf(i,Object.getPrototypeOf(e.value)),e.value=i}else e.value[r]=o}}));return n}function oe(e,t=!0,n){Pt()?ee(e,n):t?e():te(e)}function V(e){var t;const n=T(e);return(t=n==null?void 0:n.$el)!=null?t:n}const D=xe?window:void 0;function R(...e){let t,n,r,o;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,r,o]=e,t=D):[t,n,r,o]=e,!t)return Te;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const s=[],a=()=>{s.forEach(v=>v()),s.length=0},i=(v,c,u,d)=>(v.addEventListener(c,u,d),()=>v.removeEventListener(c,u,d)),l=A(()=>[V(t),T(o)],([v,c])=>{if(a(),!v)return;const u=_t(c)?F({},c):c;s.push(...n.flatMap(d=>r.map(p=>i(v,d,p,u))))},{immediate:!0,flush:"post"}),f=()=>{l(),a()};return re(f),f}function $t(){const e=h(!1),t=J();return t&&ee(()=>{e.value=!0},t),e}function Ae(e){const t=$t();return C(()=>(t.value,!!e()))}function Lt(e,t={}){const{window:n=D}=t,r=Ae(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let o;const s=h(!1),a=f=>{s.value=f.matches},i=()=>{o&&("removeEventListener"in o?o.removeEventListener("change",a):o.removeListener(a))},l=Se(()=>{r.value&&(i(),o=n.matchMedia(T(e)),"addEventListener"in o?o.addEventListener("change",a):o.addListener(a),s.value=o.matches)});return re(()=>{l(),i(),o=void 0}),s}const X=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},Y="__vueuse_ssr_handlers__",Mt=Wt();function Wt(){return Y in X||(X[Y]=X[Y]||{}),X[Y]}function $e(e,t){return Mt[e]||t}function Dt(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 It={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()}},we="vueuse-storage";function Rt(e,t,n,r={}){var o;const{flush:s="pre",deep:a=!0,listenToStorageChanges:i=!0,writeDefaults:l=!0,mergeDefaults:f=!1,shallow:v,window:c=D,eventFilter:u,onError:d=y=>{console.error(y)},initOnMounted:p}=r,m=(v?q:h)(typeof t=="function"?t():t);if(!n)try{n=$e("getDefaultStorage",()=>{var y;return(y=D)==null?void 0:y.localStorage})()}catch(y){d(y)}if(!n)return m;const g=T(t),O=Dt(g),S=(o=r.serializer)!=null?o:It[O],{pause:x,resume:E}=Ct(m,()=>$(m.value),{flush:s,deep:a,eventFilter:u});c&&i&&oe(()=>{R(c,"storage",P),R(c,we,L),p&&P()}),p||P();function w(y,_){c&&c.dispatchEvent(new CustomEvent(we,{detail:{key:e,oldValue:y,newValue:_,storageArea:n}}))}function $(y){try{const _=n.getItem(e);if(y==null)w(_,null),n.removeItem(e);else{const W=S.write(y);_!==W&&(n.setItem(e,W),w(_,W))}}catch(_){d(_)}}function b(y){const _=y?y.newValue:n.getItem(e);if(_==null)return l&&g!=null&&n.setItem(e,S.write(g)),g;if(!y&&f){const W=S.read(_);return typeof f=="function"?f(W,g):O==="object"&&!Array.isArray(W)?F(F({},g),W):W}else return typeof _!="string"?_:S.read(_)}function P(y){if(!(y&&y.storageArea!==n)){if(y&&y.key==null){m.value=g;return}if(!(y&&y.key!==e)){x();try{(y==null?void 0:y.newValue)!==S.write(m.value)&&(m.value=b(y))}catch(_){d(_)}finally{y?te(E):E()}}}}function L(y){P(y.detail)}return m}function Le(e){return Lt("(prefers-color-scheme: dark)",e)}function Ft(e={}){const{selector:t="html",attribute:n="class",initialValue:r="auto",window:o=D,storage:s,storageKey:a="vueuse-color-scheme",listenToStorageChanges:i=!0,storageRef:l,emitAuto:f,disableTransition:v=!0}=e,c=F({auto:"",light:"light",dark:"dark"},e.modes||{}),u=Le({window:o}),d=C(()=>u.value?"dark":"light"),p=l||(a==null?xt(r):Rt(a,r,s,{window:o,listenToStorageChanges:i})),m=C(()=>p.value==="auto"?d.value:p.value),g=$e("updateHTMLAttrs",(E,w,$)=>{const b=typeof E=="string"?o==null?void 0:o.document.querySelector(E):V(E);if(!b)return;let P;if(v&&(P=o.document.createElement("style"),P.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),o.document.head.appendChild(P)),w==="class"){const L=$.split(/\s/g);Object.values(c).flatMap(y=>(y||"").split(/\s/g)).filter(Boolean).forEach(y=>{L.includes(y)?b.classList.add(y):b.classList.remove(y)})}else b.setAttribute(w,$);v&&(o.getComputedStyle(P).opacity,document.head.removeChild(P))});function O(E){var w;g(t,n,(w=c[E])!=null?w:E)}function S(E){e.onChanged?e.onChanged(E,O):O(E)}A(m,S,{flush:"post",immediate:!0}),oe(()=>S(m.value));const x=C({get(){return f?p.value:m.value},set(E){p.value=E}});try{return Object.assign(x,{store:p,system:d,state:m})}catch(E){return x}}function an(e={}){const{valueDark:t="dark",valueLight:n="",window:r=D}=e,o=Ft(j(F({},e),{onChanged:(i,l)=>{var f;e.onChanged?(f=e.onChanged)==null||f.call(e,i==="dark",l,i):l(i)},modes:{dark:t,light:n}})),s=C(()=>o.system?o.system.value:Le({window:r}).value?"dark":"light");return C({get(){return o.value==="dark"},set(i){const l=i?"dark":"light";s.value===l?o.value="auto":o.value=l}})}function un(e,t={}){var n,r;const{pointerTypes:o,preventDefault:s,stopPropagation:a,exact:i,onMove:l,onEnd:f,onStart:v,initialValue:c,axis:u="both",draggingElement:d=D,containerElement:p,handle:m=e}=t,g=h((n=T(c))!=null?n:{x:0,y:0}),O=h(),S=b=>o?o.includes(b.pointerType):!0,x=b=>{T(s)&&b.preventDefault(),T(a)&&b.stopPropagation()},E=b=>{var P;if(T(t.disabled)||!S(b)||T(i)&&b.target!==T(e))return;const L=T(p),y=(P=L==null?void 0:L.getBoundingClientRect)==null?void 0:P.call(L),_=T(e).getBoundingClientRect(),W={x:b.clientX-(L?_.left-y.left+L.scrollLeft:_.left),y:b.clientY-(L?_.top-y.top+L.scrollTop:_.top)};(v==null?void 0:v(W,b))!==!1&&(O.value=W,x(b))},w=b=>{if(T(t.disabled)||!S(b)||!O.value)return;const P=T(p),L=T(e).getBoundingClientRect();let{x:y,y:_}=g.value;(u==="x"||u==="both")&&(y=b.clientX-O.value.x,P&&(y=Math.min(Math.max(0,y),P.scrollWidth-L.width))),(u==="y"||u==="both")&&(_=b.clientY-O.value.y,P&&(_=Math.min(Math.max(0,_),P.scrollHeight-L.height))),g.value={x:y,y:_},l==null||l(g.value,b),x(b)},$=b=>{T(t.disabled)||!S(b)||O.value&&(O.value=void 0,f==null||f(g.value,b),x(b))};if(xe){const b={capture:(r=t.capture)!=null?r:!0};R(m,"pointerdown",E,b),R(d,"pointermove",w,b),R(d,"pointerup",$,b)}return j(F({},At(g)),{position:g,isDragging:C(()=>!!O.value),style:C(()=>`left:${g.value.x}px;top:${g.value.y}px;`)})}function Vt(e,t,n={}){const c=n,{window:r=D}=c,o=B(c,["window"]);let s;const a=Ae(()=>r&&"ResizeObserver"in r),i=()=>{s&&(s.disconnect(),s=void 0)},l=C(()=>Array.isArray(e)?e.map(u=>V(u)):[V(e)]),f=A(l,u=>{if(i(),a.value&&r){s=new ResizeObserver(t);for(const d of u)d&&s.observe(d,o)}},{immediate:!0,flush:"post"}),v=()=>{i(),f()};return re(v),{isSupported:a,stop:v}}function Nt(e,t={width:0,height:0},n={}){const{window:r=D,box:o="content-box"}=n,s=C(()=>{var c,u;return(u=(c=V(e))==null?void 0:c.namespaceURI)==null?void 0:u.includes("svg")}),a=h(t.width),i=h(t.height),{stop:l}=Vt(e,([c])=>{const u=o==="border-box"?c.borderBoxSize:o==="content-box"?c.contentBoxSize:c.devicePixelContentBoxSize;if(r&&s.value){const d=V(e);if(d){const p=r.getComputedStyle(d);a.value=Number.parseFloat(p.width),i.value=Number.parseFloat(p.height)}}else if(u){const d=Array.isArray(u)?u:[u];a.value=d.reduce((p,{inlineSize:m})=>p+m,0),i.value=d.reduce((p,{blockSize:m})=>p+m,0)}else a.value=c.contentRect.width,i.value=c.contentRect.height},n);oe(()=>{const c=V(e);c&&(a.value="offsetWidth"in c?c.offsetWidth:t.width,i.value="offsetHeight"in c?c.offsetHeight:t.height)});const f=A(()=>V(e),c=>{a.value=c?t.width:0,i.value=c?t.height:0});function v(){l(),f()}return{width:a,height:i,stop:v}}const Ht={page:e=>[e.pageX,e.pageY],client:e=>[e.clientX,e.clientY],screen:e=>[e.screenX,e.screenY],movement:e=>e instanceof Touch?null:[e.movementX,e.movementY]};function zt(e={}){const{type:t="page",touch:n=!0,resetOnTouchEnds:r=!1,initialValue:o={x:0,y:0},window:s=D,target:a=s,scroll:i=!0,eventFilter:l}=e;let f=null;const v=h(o.x),c=h(o.y),u=h(null),d=typeof t=="function"?t:Ht[t],p=w=>{const $=d(w);f=w,$&&([v.value,c.value]=$,u.value="mouse")},m=w=>{if(w.touches.length>0){const $=d(w.touches[0]);$&&([v.value,c.value]=$,u.value="touch")}},g=()=>{if(!f||!s)return;const w=d(f);f instanceof MouseEvent&&w&&(v.value=w[0]+s.scrollX,c.value=w[1]+s.scrollY)},O=()=>{v.value=o.x,c.value=o.y},S=l?w=>l(()=>p(w),{}):w=>p(w),x=l?w=>l(()=>m(w),{}):w=>m(w),E=l?()=>l(()=>g(),{}):()=>g();if(a){const w={passive:!0};R(a,["mousemove","dragover"],S,w),n&&t!=="movement"&&(R(a,["touchstart","touchmove"],x,w),r&&R(a,"touchend",O,w)),i&&t==="page"&&R(s,"scroll",E,{passive:!0})}return{x:v,y:c,sourceType:u}}function ln(e,t={}){const{handleOutside:n=!0,window:r=D}=t,o=t.type||"page",{x:s,y:a,sourceType:i}=zt(t),l=h(e!=null?e:r==null?void 0:r.document.body),f=h(0),v=h(0),c=h(0),u=h(0),d=h(0),p=h(0),m=h(!0);let g=()=>{};return r&&(g=A([l,s,a],()=>{const O=V(l);if(!O)return;const{left:S,top:x,width:E,height:w}=O.getBoundingClientRect();c.value=S+(o==="page"?r.pageXOffset:0),u.value=x+(o==="page"?r.pageYOffset:0),d.value=w,p.value=E;const $=s.value-c.value,b=a.value-u.value;m.value=E===0||w===0||$<0||b<0||$>E||b>w,(n||!m.value)&&(f.value=$,v.value=b)},{immediate:!0}),R(document,"mouseleave",()=>{m.value=!0})),{x:s,y:a,sourceType:i,elementX:f,elementY:v,elementPositionX:c,elementPositionY:u,elementHeight:d,elementWidth:p,isOutside:m,stop:g}}function cn(e,t){const{containerStyle:n,wrapperProps:r,scrollTo:o,calculateRange:s,currentList:a,containerRef:i}="itemHeight"in t?Bt(t,e):kt(t,e);return{list:a,scrollTo:o,containerProps:{ref:i,onScroll:()=>{s()},style:n},wrapperProps:r}}function Me(e){const t=h(null),n=Nt(t),r=h([]),o=q(e);return{state:h({start:0,end:10}),source:o,currentList:r,size:n,containerRef:t}}function We(e,t,n){return r=>{if(typeof n=="number")return Math.ceil(r/n);const{start:o=0}=e.value;let s=0,a=0;for(let i=o;i<t.value.length;i++){const l=n(i);if(s+=l,a=i,s>r)break}return a-o}}function De(e,t){return n=>{if(typeof t=="number")return Math.floor(n/t)+1;let r=0,o=0;for(let s=0;s<e.value.length;s++){const a=t(s);if(r+=a,r>=n){o=s;break}}return o+1}}function Ie(e,t,n,r,{containerRef:o,state:s,currentList:a,source:i}){return()=>{const l=o.value;if(l){const f=n(e==="vertical"?l.scrollTop:l.scrollLeft),v=r(e==="vertical"?l.clientHeight:l.clientWidth),c=f-t,u=f+v+t;s.value={start:c<0?0:c,end:u>i.value.length?i.value.length:u},a.value=i.value.slice(s.value.start,s.value.end).map((d,p)=>({data:d,index:p+s.value.start}))}}}function Re(e,t){return n=>typeof e=="number"?n*e:t.value.slice(0,n).reduce((o,s,a)=>o+e(a),0)}function Fe(e,t,n){A([e.width,e.height,t],()=>{n()})}function Ve(e,t){return C(()=>typeof e=="number"?t.value.length*e:t.value.reduce((n,r,o)=>n+e(o),0))}const jt={horizontal:"scrollLeft",vertical:"scrollTop"};function Ne(e,t,n,r){return o=>{r.value&&(r.value[jt[e]]=n(o),t())}}function kt(e,t){const n=Me(t),{state:r,source:o,currentList:s,size:a,containerRef:i}=n,l={overflowX:"auto"},{itemWidth:f,overscan:v=5}=e,c=We(r,o,f),u=De(o,f),d=Ie("horizontal",v,u,c,n),p=Re(f,o),m=C(()=>p(r.value.start)),g=Ve(f,o);Fe(a,t,d);const O=Ne("horizontal",d,p,i),S=C(()=>({style:{height:"100%",width:`${g.value-m.value}px`,marginLeft:`${m.value}px`,display:"flex"}}));return{scrollTo:O,calculateRange:d,wrapperProps:S,containerStyle:l,currentList:s,containerRef:i}}function Bt(e,t){const n=Me(t),{state:r,source:o,currentList:s,size:a,containerRef:i}=n,l={overflowY:"auto"},{itemHeight:f,overscan:v=5}=e,c=We(r,o,f),u=De(o,f),d=Ie("vertical",v,u,c,n),p=Re(f,o),m=C(()=>p(r.value.start)),g=Ve(f,o);Fe(a,t,d);const O=Ne("vertical",d,p,i),S=C(()=>({style:{width:"100%",height:`${g.value-m.value}px`,marginTop:`${m.value}px`}}));return{calculateRange:d,scrollTo:O,containerStyle:l,wrapperProps:S,currentList:s,containerRef:i}}export{I as a,sn as b,tn as c,dt as d,Gt as e,Zt as f,Ut as g,nn as h,G as i,en as j,on as k,Qt as l,rn as m,qt as n,Kt as o,un as p,ln as q,Jt as r,R as s,U as t,M as u,cn as v,Nt as w,an as x};
1
+ var He=Object.defineProperty,ze=Object.defineProperties;var je=Object.getOwnPropertyDescriptors;var k=Object.getOwnPropertySymbols;var ie=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable;var se=(e,t,n)=>t in e?He(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,F=(e,t)=>{for(var n in t||(t={}))ie.call(t,n)&&se(e,n,t[n]);if(k)for(var n of k(t))ae.call(t,n)&&se(e,n,t[n]);return e},j=(e,t)=>ze(e,je(t));var B=(e,t)=>{var n={};for(var r in e)ie.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&k)for(var r of k(e))t.indexOf(r)<0&&ae.call(e,r)&&(n[r]=e[r]);return n};import{g as be,b as Oe,u as _e,r as h,e as Q,s as q,w as Se,f as A,h as Z,i as J,j as ee,n as te,k as C,l as ke,t as Be,m as Xe}from"./@vue-CX9FTROR.js";var Ye=Object.defineProperty,Qe=Object.defineProperties,Je=Object.getOwnPropertyDescriptors,ue=Object.getOwnPropertySymbols,Ge=Object.prototype.hasOwnProperty,Ue=Object.prototype.propertyIsEnumerable,le=(e,t,n)=>t in e?Ye(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ke=(e,t)=>{for(var n in t||(t={}))Ge.call(t,n)&&le(e,n,t[n]);if(ue)for(var n of ue(t))Ue.call(t,n)&&le(e,n,t[n]);return e},qe=(e,t)=>Qe(e,Je(t));function Qt(e,t){var n;const r=q();return Se(()=>{r.value=e()},qe(Ke({},t),{flush:(n=void 0)!=null?n:"sync"})),Q(r)}var ce;const G=typeof window!="undefined",Ze=e=>typeof e!="undefined",K=e=>typeof e=="function",et=e=>typeof e=="string",z=()=>{},tt=G&&((ce=window==null?void 0:window.navigator)==null?void 0:ce.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function N(e){return typeof e=="function"?e():_e(e)}function Ee(e,t){function n(...r){return new Promise((o,s)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(o).catch(s)})}return n}function nt(e,t={}){let n,r,o=z;const s=i=>{clearTimeout(i),o(),o=z};return i=>{const l=N(e),f=N(t.maxWait);return n&&s(n),l<=0||f!==void 0&&f<=0?(r&&(s(r),r=null),Promise.resolve(i())):new Promise((v,c)=>{o=t.rejectOnCancel?c:v,f&&!r&&(r=setTimeout(()=>{n&&s(n),r=null,v(i())},f)),n=setTimeout(()=>{r&&s(r),r=null,v(i())},l)})}}function rt(e,t=!0,n=!0,r=!1){let o=0,s,a=!0,i=z,l;const f=()=>{s&&(clearTimeout(s),s=void 0,i(),i=z)};return c=>{const u=N(e),d=Date.now()-o,p=()=>l=c();return f(),u<=0?(o=Date.now(),p()):(d>u&&(n||!a)?(o=Date.now(),p()):t&&(l=new Promise((m,g)=>{i=r?g:m,s=setTimeout(()=>{o=Date.now(),a=!0,m(p()),f()},Math.max(0,u-d))})),!n&&!s&&(s=setTimeout(()=>a=!0,u)),a=!1,l)}}function ot(e){return e}function st(e,t){let n,r,o;const s=h(!0),a=()=>{s.value=!0,o()};A(e,a,{flush:"sync"});const i=K(t)?t:t.get,l=K(t)?void 0:t.set,f=Z((v,c)=>(r=v,o=c,{get(){return s.value&&(n=i(),s.value=!1),r(),n},set(u){l==null||l(u)}}));return Object.isExtensible(f)&&(f.trigger=a),f}function U(e){return be()?(Oe(e),!0):!1}function it(e,t=200,n={}){return Ee(nt(t,n),e)}function Jt(e,t=200,n={}){const r=h(e.value),o=it(()=>{r.value=e.value},t,n);return A(e,()=>o()),r}function Gt(e,t=200,n=!1,r=!0,o=!1){return Ee(rt(t,n,r,o),e)}function ne(e,t=!0){J()?ee(e):t?e():te(e)}function Ut(e,t,n={}){const{immediate:r=!0}=n,o=h(!1);let s=null;function a(){s&&(clearTimeout(s),s=null)}function i(){o.value=!1,a()}function l(...f){a(),o.value=!0,s=setTimeout(()=>{o.value=!1,s=null,e(...f)},N(t))}return r&&(o.value=!0,G&&l()),U(i),{isPending:Q(o),start:l,stop:i}}function R(e){var t;const n=N(e);return(t=n==null?void 0:n.$el)!=null?t:n}const H=G?window:void 0,at=G?window.document:void 0;function M(...e){let t,n,r,o;if(et(e[0])||Array.isArray(e[0])?([n,r,o]=e,t=H):[t,n,r,o]=e,!t)return z;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const s=[],a=()=>{s.forEach(v=>v()),s.length=0},i=(v,c,u,d)=>(v.addEventListener(c,u,d),()=>v.removeEventListener(c,u,d)),l=A(()=>[R(t),N(o)],([v,c])=>{a(),v&&s.push(...n.flatMap(u=>r.map(d=>i(v,u,d,c))))},{immediate:!0,flush:"post"}),f=()=>{l(),a()};return U(f),f}let fe=!1;function Kt(e,t,n={}){const{window:r=H,ignore:o=[],capture:s=!0,detectIframe:a=!1}=n;if(!r)return;tt&&!fe&&(fe=!0,Array.from(r.document.body.children).forEach(u=>u.addEventListener("click",z)));let i=!0;const l=u=>o.some(d=>{if(typeof d=="string")return Array.from(r.document.querySelectorAll(d)).some(p=>p===u.target||u.composedPath().includes(p));{const p=R(d);return p&&(u.target===p||u.composedPath().includes(p))}}),v=[M(r,"click",u=>{const d=R(e);if(!(!d||d===u.target||u.composedPath().includes(d))){if(u.detail===0&&(i=!l(u)),!i){i=!0;return}t(u)}},{passive:!0,capture:s}),M(r,"pointerdown",u=>{const d=R(e);d&&(i=!u.composedPath().includes(d)&&!l(u))},{passive:!0}),a&&M(r,"blur",u=>{var d;const p=R(e);((d=r.document.activeElement)==null?void 0:d.tagName)==="IFRAME"&&!(p!=null&&p.contains(r.document.activeElement))&&t(u)})].filter(Boolean);return()=>v.forEach(u=>u())}function qt(e={}){var t;const{window:n=H}=e,r=(t=e.document)!=null?t:n==null?void 0:n.document,o=st(()=>null,()=>r==null?void 0:r.activeElement);return n&&(M(n,"blur",s=>{s.relatedTarget===null&&o.trigger()},!0),M(n,"focus",o.trigger,!0)),o}function Pe(e,t=!1){const n=h(),r=()=>n.value=!!e();return r(),ne(r,t),n}function ut(e){return JSON.parse(JSON.stringify(e))}const de=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},ve="__vueuse_ssr_handlers__";de[ve]=de[ve]||{};function Zt(e,t,{window:n=H,initialValue:r=""}={}){const o=h(r),s=C(()=>{var a;return R(t)||((a=n==null?void 0:n.document)==null?void 0:a.documentElement)});return A([s,()=>N(e)],([a,i])=>{var l;if(a&&n){const f=(l=n.getComputedStyle(a).getPropertyValue(i))==null?void 0:l.trim();o.value=f||r}},{immediate:!0}),A(o,a=>{var i;(i=s.value)!=null&&i.style&&s.value.style.setProperty(N(e),a)}),o}function en({document:e=at}={}){if(!e)return h("visible");const t=h(e.visibilityState);return M(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var pe=Object.getOwnPropertySymbols,lt=Object.prototype.hasOwnProperty,ct=Object.prototype.propertyIsEnumerable,ft=(e,t)=>{var n={};for(var r in e)lt.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&pe)for(var r of pe(e))t.indexOf(r)<0&&ct.call(e,r)&&(n[r]=e[r]);return n};function dt(e,t,n={}){const r=n,{window:o=H}=r,s=ft(r,["window"]);let a;const i=Pe(()=>o&&"ResizeObserver"in o),l=()=>{a&&(a.disconnect(),a=void 0)},f=A(()=>R(e),c=>{l(),i.value&&o&&c&&(a=new ResizeObserver(t),a.observe(c,s))},{immediate:!0,flush:"post"}),v=()=>{l(),f()};return U(v),{isSupported:i,stop:v}}function tn(e,t={}){const{reset:n=!0,windowResize:r=!0,windowScroll:o=!0,immediate:s=!0}=t,a=h(0),i=h(0),l=h(0),f=h(0),v=h(0),c=h(0),u=h(0),d=h(0);function p(){const m=R(e);if(!m){n&&(a.value=0,i.value=0,l.value=0,f.value=0,v.value=0,c.value=0,u.value=0,d.value=0);return}const g=m.getBoundingClientRect();a.value=g.height,i.value=g.bottom,l.value=g.left,f.value=g.right,v.value=g.top,c.value=g.width,u.value=g.x,d.value=g.y}return dt(e,p),A(()=>R(e),m=>!m&&p()),o&&M("scroll",p,{capture:!0,passive:!0}),r&&M("resize",p,{passive:!0}),ne(()=>{s&&p()}),{height:a,bottom:i,left:l,right:f,top:v,width:c,x:u,y:d,update:p}}var me=Object.getOwnPropertySymbols,vt=Object.prototype.hasOwnProperty,pt=Object.prototype.propertyIsEnumerable,mt=(e,t)=>{var n={};for(var r in e)vt.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&me)for(var r of me(e))t.indexOf(r)<0&&pt.call(e,r)&&(n[r]=e[r]);return n};function nn(e,t,n={}){const r=n,{window:o=H}=r,s=mt(r,["window"]);let a;const i=Pe(()=>o&&"MutationObserver"in o),l=()=>{a&&(a.disconnect(),a=void 0)},f=A(()=>R(e),c=>{l(),i.value&&o&&c&&(a=new MutationObserver(t),a.observe(c,s))},{immediate:!0}),v=()=>{l(),f()};return U(v),{isSupported:i,stop:v}}var he;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(he||(he={}));var ht=Object.defineProperty,ge=Object.getOwnPropertySymbols,gt=Object.prototype.hasOwnProperty,yt=Object.prototype.propertyIsEnumerable,ye=(e,t,n)=>t in e?ht(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,wt=(e,t)=>{for(var n in t||(t={}))gt.call(t,n)&&ye(e,n,t[n]);if(ge)for(var n of ge(t))yt.call(t,n)&&ye(e,n,t[n]);return e};const bt={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]};wt({linear:ot},bt);function rn(e,t,n,r={}){var o,s,a;const{clone:i=!1,passive:l=!1,eventName:f,deep:v=!1,defaultValue:c}=r,u=J(),d=n||(u==null?void 0:u.emit)||((o=u==null?void 0:u.$emit)==null?void 0:o.bind(u))||((a=(s=u==null?void 0:u.proxy)==null?void 0:s.$emit)==null?void 0:a.bind(u==null?void 0:u.proxy));let p=f;t||(t="modelValue"),p=f||p||`update:${t.toString()}`;const m=O=>i?K(i)?i(O):ut(O):O,g=()=>Ze(e[t])?m(e[t]):c;if(l){const O=g(),S=h(O);return A(()=>e[t],x=>S.value=m(x)),A(S,x=>{(x!==e[t]||v)&&d(p,x)},{deep:v}),S}else return C({get(){return g()},set(O){d(p,O)}})}function on({window:e=H}={}){if(!e)return h(!1);const t=h(e.document.hasFocus());return M(e,"blur",()=>{t.value=!1}),M(e,"focus",()=>{t.value=!0}),t}function sn(e={}){const{window:t=H,initialWidth:n=1/0,initialHeight:r=1/0,listenOrientation:o=!0,includeScrollbar:s=!0}=e,a=h(n),i=h(r),l=()=>{t&&(s?(a.value=t.innerWidth,i.value=t.innerHeight):(a.value=t.document.documentElement.clientWidth,i.value=t.document.documentElement.clientHeight))};return l(),ne(l),M("resize",l,{passive:!0}),o&&M("orientationchange",l,{passive:!0}),{width:a,height:i}}function re(e){return be()?(Oe(e),!0):!1}function T(e){return typeof e=="function"?e():_e(e)}const xe=typeof window!="undefined"&&typeof document!="undefined";typeof WorkerGlobalScope!="undefined"&&globalThis instanceof WorkerGlobalScope;const Ot=Object.prototype.toString,_t=e=>Ot.call(e)==="[object Object]",Te=()=>{};function St(e,t){function n(...r){return new Promise((o,s)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(o).catch(s)})}return n}const Ce=e=>e();function Et(e=Ce){const t=h(!0);function n(){t.value=!1}function r(){t.value=!0}const o=(...s)=>{t.value&&e(...s)};return{isActive:Q(t),pause:n,resume:r,eventFilter:o}}function Pt(e){return J()}function xt(...e){if(e.length!==1)return Xe(...e);const t=e[0];return typeof t=="function"?Q(Z(()=>({get:t,set:Te}))):h(t)}function Tt(e,t,n={}){const s=n,{eventFilter:r=Ce}=s,o=B(s,["eventFilter"]);return A(e,St(r,t),o)}function Ct(e,t,n={}){const v=n,{eventFilter:r}=v,o=B(v,["eventFilter"]),{eventFilter:s,pause:a,resume:i,isActive:l}=Et(r);return{stop:Tt(e,t,j(F({},o),{eventFilter:s})),pause:a,resume:i,isActive:l}}function At(e,t={}){if(!ke(e))return Be(e);const n=Array.isArray(e.value)?Array.from({length:e.value.length}):{};for(const r in e.value)n[r]=Z(()=>({get(){return e.value[r]},set(o){var s;if((s=T(t.replaceRef))!=null?s:!0)if(Array.isArray(e.value)){const i=[...e.value];i[r]=o,e.value=i}else{const i=j(F({},e.value),{[r]:o});Object.setPrototypeOf(i,Object.getPrototypeOf(e.value)),e.value=i}else e.value[r]=o}}));return n}function oe(e,t=!0,n){Pt()?ee(e,n):t?e():te(e)}function V(e){var t;const n=T(e);return(t=n==null?void 0:n.$el)!=null?t:n}const D=xe?window:void 0;function I(...e){let t,n,r,o;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,r,o]=e,t=D):[t,n,r,o]=e,!t)return Te;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const s=[],a=()=>{s.forEach(v=>v()),s.length=0},i=(v,c,u,d)=>(v.addEventListener(c,u,d),()=>v.removeEventListener(c,u,d)),l=A(()=>[V(t),T(o)],([v,c])=>{if(a(),!v)return;const u=_t(c)?F({},c):c;s.push(...n.flatMap(d=>r.map(p=>i(v,d,p,u))))},{immediate:!0,flush:"post"}),f=()=>{l(),a()};return re(f),f}function $t(){const e=h(!1),t=J();return t&&ee(()=>{e.value=!0},t),e}function Ae(e){const t=$t();return C(()=>(t.value,!!e()))}function Lt(e,t={}){const{window:n=D}=t,r=Ae(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let o;const s=h(!1),a=f=>{s.value=f.matches},i=()=>{o&&("removeEventListener"in o?o.removeEventListener("change",a):o.removeListener(a))},l=Se(()=>{r.value&&(i(),o=n.matchMedia(T(e)),"addEventListener"in o?o.addEventListener("change",a):o.addListener(a),s.value=o.matches)});return re(()=>{l(),i(),o=void 0}),s}const X=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},Y="__vueuse_ssr_handlers__",Mt=Wt();function Wt(){return Y in X||(X[Y]=X[Y]||{}),X[Y]}function $e(e,t){return Mt[e]||t}function Dt(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 Rt={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()}},we="vueuse-storage";function It(e,t,n,r={}){var o;const{flush:s="pre",deep:a=!0,listenToStorageChanges:i=!0,writeDefaults:l=!0,mergeDefaults:f=!1,shallow:v,window:c=D,eventFilter:u,onError:d=y=>{console.error(y)},initOnMounted:p}=r,m=(v?q:h)(typeof t=="function"?t():t);if(!n)try{n=$e("getDefaultStorage",()=>{var y;return(y=D)==null?void 0:y.localStorage})()}catch(y){d(y)}if(!n)return m;const g=T(t),O=Dt(g),S=(o=r.serializer)!=null?o:Rt[O],{pause:x,resume:E}=Ct(m,()=>$(m.value),{flush:s,deep:a,eventFilter:u});c&&i&&oe(()=>{I(c,"storage",P),I(c,we,L),p&&P()}),p||P();function b(y,_){c&&c.dispatchEvent(new CustomEvent(we,{detail:{key:e,oldValue:y,newValue:_,storageArea:n}}))}function $(y){try{const _=n.getItem(e);if(y==null)b(_,null),n.removeItem(e);else{const W=S.write(y);_!==W&&(n.setItem(e,W),b(_,W))}}catch(_){d(_)}}function w(y){const _=y?y.newValue:n.getItem(e);if(_==null)return l&&g!=null&&n.setItem(e,S.write(g)),g;if(!y&&f){const W=S.read(_);return typeof f=="function"?f(W,g):O==="object"&&!Array.isArray(W)?F(F({},g),W):W}else return typeof _!="string"?_:S.read(_)}function P(y){if(!(y&&y.storageArea!==n)){if(y&&y.key==null){m.value=g;return}if(!(y&&y.key!==e)){x();try{(y==null?void 0:y.newValue)!==S.write(m.value)&&(m.value=w(y))}catch(_){d(_)}finally{y?te(E):E()}}}}function L(y){P(y.detail)}return m}function Le(e){return Lt("(prefers-color-scheme: dark)",e)}function Ft(e={}){const{selector:t="html",attribute:n="class",initialValue:r="auto",window:o=D,storage:s,storageKey:a="vueuse-color-scheme",listenToStorageChanges:i=!0,storageRef:l,emitAuto:f,disableTransition:v=!0}=e,c=F({auto:"",light:"light",dark:"dark"},e.modes||{}),u=Le({window:o}),d=C(()=>u.value?"dark":"light"),p=l||(a==null?xt(r):It(a,r,s,{window:o,listenToStorageChanges:i})),m=C(()=>p.value==="auto"?d.value:p.value),g=$e("updateHTMLAttrs",(E,b,$)=>{const w=typeof E=="string"?o==null?void 0:o.document.querySelector(E):V(E);if(!w)return;let P;if(v&&(P=o.document.createElement("style"),P.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),o.document.head.appendChild(P)),b==="class"){const L=$.split(/\s/g);Object.values(c).flatMap(y=>(y||"").split(/\s/g)).filter(Boolean).forEach(y=>{L.includes(y)?w.classList.add(y):w.classList.remove(y)})}else w.setAttribute(b,$);v&&(o.getComputedStyle(P).opacity,document.head.removeChild(P))});function O(E){var b;g(t,n,(b=c[E])!=null?b:E)}function S(E){e.onChanged?e.onChanged(E,O):O(E)}A(m,S,{flush:"post",immediate:!0}),oe(()=>S(m.value));const x=C({get(){return f?p.value:m.value},set(E){p.value=E}});try{return Object.assign(x,{store:p,system:d,state:m})}catch(E){return x}}function an(e={}){const{valueDark:t="dark",valueLight:n="",window:r=D}=e,o=Ft(j(F({},e),{onChanged:(i,l)=>{var f;e.onChanged?(f=e.onChanged)==null||f.call(e,i==="dark",l,i):l(i)},modes:{dark:t,light:n}})),s=C(()=>o.system?o.system.value:Le({window:r}).value?"dark":"light");return C({get(){return o.value==="dark"},set(i){const l=i?"dark":"light";s.value===l?o.value="auto":o.value=l}})}function un(e,t={}){var n,r;const{pointerTypes:o,preventDefault:s,stopPropagation:a,exact:i,onMove:l,onEnd:f,onStart:v,initialValue:c,axis:u="both",draggingElement:d=D,containerElement:p,handle:m=e}=t,g=h((n=T(c))!=null?n:{x:0,y:0}),O=h(),S=w=>o?o.includes(w.pointerType):!0,x=w=>{T(s)&&w.preventDefault(),T(a)&&w.stopPropagation()},E=w=>{var P;if(w.button!==0||T(t.disabled)||!S(w)||T(i)&&w.target!==T(e))return;const L=T(p),y=(P=L==null?void 0:L.getBoundingClientRect)==null?void 0:P.call(L),_=T(e).getBoundingClientRect(),W={x:w.clientX-(L?_.left-y.left+L.scrollLeft:_.left),y:w.clientY-(L?_.top-y.top+L.scrollTop:_.top)};(v==null?void 0:v(W,w))!==!1&&(O.value=W,x(w))},b=w=>{if(T(t.disabled)||!S(w)||!O.value)return;const P=T(p),L=T(e).getBoundingClientRect();let{x:y,y:_}=g.value;(u==="x"||u==="both")&&(y=w.clientX-O.value.x,P&&(y=Math.min(Math.max(0,y),P.scrollWidth-L.width))),(u==="y"||u==="both")&&(_=w.clientY-O.value.y,P&&(_=Math.min(Math.max(0,_),P.scrollHeight-L.height))),g.value={x:y,y:_},l==null||l(g.value,w),x(w)},$=w=>{T(t.disabled)||!S(w)||O.value&&(O.value=void 0,f==null||f(g.value,w),x(w))};if(xe){const w={capture:(r=t.capture)!=null?r:!0};I(m,"pointerdown",E,w),I(d,"pointermove",b,w),I(d,"pointerup",$,w)}return j(F({},At(g)),{position:g,isDragging:C(()=>!!O.value),style:C(()=>`left:${g.value.x}px;top:${g.value.y}px;`)})}function Vt(e,t,n={}){const c=n,{window:r=D}=c,o=B(c,["window"]);let s;const a=Ae(()=>r&&"ResizeObserver"in r),i=()=>{s&&(s.disconnect(),s=void 0)},l=C(()=>Array.isArray(e)?e.map(u=>V(u)):[V(e)]),f=A(l,u=>{if(i(),a.value&&r){s=new ResizeObserver(t);for(const d of u)d&&s.observe(d,o)}},{immediate:!0,flush:"post"}),v=()=>{i(),f()};return re(v),{isSupported:a,stop:v}}function Nt(e,t={width:0,height:0},n={}){const{window:r=D,box:o="content-box"}=n,s=C(()=>{var c,u;return(u=(c=V(e))==null?void 0:c.namespaceURI)==null?void 0:u.includes("svg")}),a=h(t.width),i=h(t.height),{stop:l}=Vt(e,([c])=>{const u=o==="border-box"?c.borderBoxSize:o==="content-box"?c.contentBoxSize:c.devicePixelContentBoxSize;if(r&&s.value){const d=V(e);if(d){const p=d.getBoundingClientRect();a.value=p.width,i.value=p.height}}else if(u){const d=Array.isArray(u)?u:[u];a.value=d.reduce((p,{inlineSize:m})=>p+m,0),i.value=d.reduce((p,{blockSize:m})=>p+m,0)}else a.value=c.contentRect.width,i.value=c.contentRect.height},n);oe(()=>{const c=V(e);c&&(a.value="offsetWidth"in c?c.offsetWidth:t.width,i.value="offsetHeight"in c?c.offsetHeight:t.height)});const f=A(()=>V(e),c=>{a.value=c?t.width:0,i.value=c?t.height:0});function v(){l(),f()}return{width:a,height:i,stop:v}}const Ht={page:e=>[e.pageX,e.pageY],client:e=>[e.clientX,e.clientY],screen:e=>[e.screenX,e.screenY],movement:e=>e instanceof Touch?null:[e.movementX,e.movementY]};function zt(e={}){const{type:t="page",touch:n=!0,resetOnTouchEnds:r=!1,initialValue:o={x:0,y:0},window:s=D,target:a=s,scroll:i=!0,eventFilter:l}=e;let f=null;const v=h(o.x),c=h(o.y),u=h(null),d=typeof t=="function"?t:Ht[t],p=b=>{const $=d(b);f=b,$&&([v.value,c.value]=$,u.value="mouse")},m=b=>{if(b.touches.length>0){const $=d(b.touches[0]);$&&([v.value,c.value]=$,u.value="touch")}},g=()=>{if(!f||!s)return;const b=d(f);f instanceof MouseEvent&&b&&(v.value=b[0]+s.scrollX,c.value=b[1]+s.scrollY)},O=()=>{v.value=o.x,c.value=o.y},S=l?b=>l(()=>p(b),{}):b=>p(b),x=l?b=>l(()=>m(b),{}):b=>m(b),E=l?()=>l(()=>g(),{}):()=>g();if(a){const b={passive:!0};I(a,["mousemove","dragover"],S,b),n&&t!=="movement"&&(I(a,["touchstart","touchmove"],x,b),r&&I(a,"touchend",O,b)),i&&t==="page"&&I(s,"scroll",E,{passive:!0})}return{x:v,y:c,sourceType:u}}function ln(e,t={}){const{handleOutside:n=!0,window:r=D}=t,o=t.type||"page",{x:s,y:a,sourceType:i}=zt(t),l=h(e!=null?e:r==null?void 0:r.document.body),f=h(0),v=h(0),c=h(0),u=h(0),d=h(0),p=h(0),m=h(!0);let g=()=>{};return r&&(g=A([l,s,a],()=>{const O=V(l);if(!O)return;const{left:S,top:x,width:E,height:b}=O.getBoundingClientRect();c.value=S+(o==="page"?r.pageXOffset:0),u.value=x+(o==="page"?r.pageYOffset:0),d.value=b,p.value=E;const $=s.value-c.value,w=a.value-u.value;m.value=E===0||b===0||$<0||w<0||$>E||w>b,(n||!m.value)&&(f.value=$,v.value=w)},{immediate:!0}),I(document,"mouseleave",()=>{m.value=!0})),{x:s,y:a,sourceType:i,elementX:f,elementY:v,elementPositionX:c,elementPositionY:u,elementHeight:d,elementWidth:p,isOutside:m,stop:g}}function cn(e,t){const{containerStyle:n,wrapperProps:r,scrollTo:o,calculateRange:s,currentList:a,containerRef:i}="itemHeight"in t?Bt(t,e):kt(t,e);return{list:a,scrollTo:o,containerProps:{ref:i,onScroll:()=>{s()},style:n},wrapperProps:r}}function Me(e){const t=h(null),n=Nt(t),r=h([]),o=q(e);return{state:h({start:0,end:10}),source:o,currentList:r,size:n,containerRef:t}}function We(e,t,n){return r=>{if(typeof n=="number")return Math.ceil(r/n);const{start:o=0}=e.value;let s=0,a=0;for(let i=o;i<t.value.length;i++){const l=n(i);if(s+=l,a=i,s>r)break}return a-o}}function De(e,t){return n=>{if(typeof t=="number")return Math.floor(n/t)+1;let r=0,o=0;for(let s=0;s<e.value.length;s++){const a=t(s);if(r+=a,r>=n){o=s;break}}return o+1}}function Re(e,t,n,r,{containerRef:o,state:s,currentList:a,source:i}){return()=>{const l=o.value;if(l){const f=n(e==="vertical"?l.scrollTop:l.scrollLeft),v=r(e==="vertical"?l.clientHeight:l.clientWidth),c=f-t,u=f+v+t;s.value={start:c<0?0:c,end:u>i.value.length?i.value.length:u},a.value=i.value.slice(s.value.start,s.value.end).map((d,p)=>({data:d,index:p+s.value.start}))}}}function Ie(e,t){return n=>typeof e=="number"?n*e:t.value.slice(0,n).reduce((o,s,a)=>o+e(a),0)}function Fe(e,t,n,r){A([e.width,e.height,t,n],()=>{r()})}function Ve(e,t){return C(()=>typeof e=="number"?t.value.length*e:t.value.reduce((n,r,o)=>n+e(o),0))}const jt={horizontal:"scrollLeft",vertical:"scrollTop"};function Ne(e,t,n,r){return o=>{r.value&&(r.value[jt[e]]=n(o),t())}}function kt(e,t){const n=Me(t),{state:r,source:o,currentList:s,size:a,containerRef:i}=n,l={overflowX:"auto"},{itemWidth:f,overscan:v=5}=e,c=We(r,o,f),u=De(o,f),d=Re("horizontal",v,u,c,n),p=Ie(f,o),m=C(()=>p(r.value.start)),g=Ve(f,o);Fe(a,t,i,d);const O=Ne("horizontal",d,p,i),S=C(()=>({style:{height:"100%",width:`${g.value-m.value}px`,marginLeft:`${m.value}px`,display:"flex"}}));return{scrollTo:O,calculateRange:d,wrapperProps:S,containerStyle:l,currentList:s,containerRef:i}}function Bt(e,t){const n=Me(t),{state:r,source:o,currentList:s,size:a,containerRef:i}=n,l={overflowY:"auto"},{itemHeight:f,overscan:v=5}=e,c=We(r,o,f),u=De(o,f),d=Re("vertical",v,u,c,n),p=Ie(f,o),m=C(()=>p(r.value.start)),g=Ve(f,o);Fe(a,t,i,d);const O=Ne("vertical",d,p,i),S=C(()=>({style:{width:"100%",height:`${g.value-m.value}px`,marginTop:`${m.value}px`}}));return{calculateRange:d,scrollTo:O,containerStyle:l,wrapperProps:S,currentList:s,containerRef:i}}export{R as a,sn as b,tn as c,dt as d,Gt as e,Zt as f,Ut as g,nn as h,G as i,en as j,on as k,Qt as l,rn as m,qt as n,Kt as o,un as p,ln as q,Jt as r,I as s,U as t,M as u,cn as v,Nt as w,an as x};
@@ -1 +1 @@
1
- var v=Object.defineProperty;var y=Object.getOwnPropertySymbols;var h=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable;var f=(o,a,t)=>a in o?v(o,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[a]=t,g=(o,a)=>{for(var t in a||(a={}))h.call(a,t)&&f(o,t,a[t]);if(y)for(var t of y(a))E.call(a,t)&&f(o,t,a[t]);return o};var _=(o,a,t)=>new Promise((r,d)=>{var c=l=>{try{u(t.next(l))}catch(m){d(m)}},e=l=>{try{u(t.throw(l))}catch(m){d(m)}},u=l=>l.done?r(l.value):Promise.resolve(l.value).then(c,e);u((t=t.apply(o,a)).next())});import{_ as p,e as V}from"./monaco-editor-DwlLClUG.js";import{d as w,r as T,j as k,n as D,I as P,f as b,o as B,c as O,O as A,aa as I,a5 as L,P as x}from"./@vue-D1Pu-JcS.js";const j=w({__name:"Editor",props:{lang:{default:"typescript"},modelValue:{default:""},options:{default:()=>({})},height:{default:"300px"},readonly:{type:Boolean,default:!1},dark:{type:Boolean,default:!1},border:{type:Boolean},minimap:{type:Boolean,default:!1}},emits:["change","blur","update:modelValue"],setup(o,{expose:a,emit:t}){const r=o;self.MonacoEnvironment={createTrustedTypesPolicy:void 0,getWorker(i,n){return _(this,null,function*(){let s;return n==="json"&&(s=yield p(()=>import("./json.worker-BhNp9C2F-DV_Vc8JJ.js"),[],import.meta.url)),["css","scss","less"].includes(n)&&(s=yield p(()=>import("./css.worker-BG3X4ypZ-CEcCZxtT.js"),[],import.meta.url)),["html","handlebars","razor","vue"].includes(n)&&(s=yield p(()=>import("./html.worker-BCBdCLMV-Dzznz_ni.js"),[],import.meta.url)),["typescript","javascript"].includes(n)&&(s=yield p(()=>import("./ts.worker-yjAiJiOi-BhFdT8k5.js"),[],import.meta.url)),s=s||(yield p(()=>import("./editor.worker-CdJourTJ-XsdejOxF.js"),[],import.meta.url)),new s.default})}};const d=t,c=T();let e=null;const u=()=>_(this,null,function*(){var i;e&&(yield(i=e.getAction("editor.action.formatDocument"))==null?void 0:i.run(),e.setValue(e.getValue()))}),l=()=>_(this,null,function*(){yield u();const i=e==null?void 0:e.getValue();d("update:modelValue",i),d("blur",i)}),m=()=>{e=V.create(c.value,g({value:r.modelValue,language:r.lang,readOnly:r.readonly,theme:r.dark?"vs-dark":"vs",automaticLayout:!0,minimap:{enabled:r.minimap}},r.options)),e.onDidChangeModelContent(i=>{d("change",e==null?void 0:e.getValue(),i)}),e.onDidBlurEditorText(l)};return k(()=>{D(m)}),P(()=>{e&&e.dispose()}),b(()=>r.modelValue,i=>{e&&e.setValue(i)}),a({getEditor:()=>e}),(i,n)=>(B(),O("div",{class:A(["v-code-editor",{"is-border":r.border}]),ref_key:"container",ref:c,onKeyup:n[0]||(n[0]=I(L(()=>{},["stop"]),["enter"])),style:x({height:r.height})},null,38))}});export{j as default};
1
+ var v=Object.defineProperty;var y=Object.getOwnPropertySymbols;var h=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable;var f=(o,a,t)=>a in o?v(o,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[a]=t,g=(o,a)=>{for(var t in a||(a={}))h.call(a,t)&&f(o,t,a[t]);if(y)for(var t of y(a))E.call(a,t)&&f(o,t,a[t]);return o};var _=(o,a,t)=>new Promise((r,d)=>{var c=l=>{try{u(t.next(l))}catch(m){d(m)}},e=l=>{try{u(t.throw(l))}catch(m){d(m)}},u=l=>l.done?r(l.value):Promise.resolve(l.value).then(c,e);u((t=t.apply(o,a)).next())});import{_ as p,e as V}from"./monaco-editor-DwlLClUG.js";import{d as w,r as T,j as k,n as D,H as b,f as B,o as O,c as P,M as A,a9 as L,a4 as x,O as I}from"./@vue-CX9FTROR.js";const j=w({__name:"Editor",props:{lang:{default:"typescript"},modelValue:{default:""},options:{default:()=>({})},height:{default:"300px"},readonly:{type:Boolean,default:!1},dark:{type:Boolean,default:!1},border:{type:Boolean},minimap:{type:Boolean,default:!1}},emits:["change","blur","update:modelValue"],setup(o,{expose:a,emit:t}){const r=o;self.MonacoEnvironment={createTrustedTypesPolicy:void 0,getWorker(i,n){return _(this,null,function*(){let s;return n==="json"&&(s=yield p(()=>import("./json.worker-BhNp9C2F-DV_Vc8JJ.js"),[],import.meta.url)),["css","scss","less"].includes(n)&&(s=yield p(()=>import("./css.worker-BG3X4ypZ-CEcCZxtT.js"),[],import.meta.url)),["html","handlebars","razor","vue"].includes(n)&&(s=yield p(()=>import("./html.worker-BCBdCLMV-Dzznz_ni.js"),[],import.meta.url)),["typescript","javascript"].includes(n)&&(s=yield p(()=>import("./ts.worker-yjAiJiOi-BhFdT8k5.js"),[],import.meta.url)),s=s||(yield p(()=>import("./editor.worker-CdJourTJ-XsdejOxF.js"),[],import.meta.url)),new s.default})}};const d=t,c=T();let e=null;const u=()=>_(this,null,function*(){var i;e&&(yield(i=e.getAction("editor.action.formatDocument"))==null?void 0:i.run(),e.setValue(e.getValue()))}),l=()=>_(this,null,function*(){yield u();const i=e==null?void 0:e.getValue();d("update:modelValue",i),d("blur",i)}),m=()=>{e=V.create(c.value,g({value:r.modelValue,language:r.lang,readOnly:r.readonly,theme:r.dark?"vs-dark":"vs",automaticLayout:!0,minimap:{enabled:r.minimap}},r.options)),e.onDidChangeModelContent(i=>{d("change",e==null?void 0:e.getValue(),i)}),e.onDidBlurEditorText(l)};return k(()=>{D(m)}),b(()=>{e&&e.dispose()}),B(()=>r.modelValue,i=>{e&&e.setValue(i)}),a({getEditor:()=>e}),(i,n)=>(O(),P("div",{class:A(["v-code-editor",{"is-border":r.border}]),ref_key:"container",ref:c,onKeyup:n[0]||(n[0]=L(x(()=>{},["stop"]),["enter"])),style:I({height:r.height})},null,38))}});export{j as default};