@vtj/pro 0.7.34 → 0.8.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 (59) hide show
  1. package/dist/.vtj/logo_1.png +0 -0
  2. package/dist/.vtj/logo_2.png +0 -0
  3. package/dist/.vtj/material.json +86 -0
  4. package/dist/.vtj/style.css +1 -0
  5. package/dist/.vtj/test.json +33 -0
  6. package/dist/.vtj/vtj-block-example.umd.js +1 -0
  7. package/dist/.vtj//344/272/214/347/273/264/347/240/201.png +0 -0
  8. package/dist/@vtj/materials/assets/antdv/index.umd.js +2 -2
  9. package/dist/@vtj/materials/assets/element/index.umd.js +3 -3
  10. package/dist/@vtj/materials/assets/ui/index.umd.js +2 -2
  11. package/dist/@vtj/materials/deps/@ckeditor/ckeditor5-build-classic/ckeditor.js +2 -2
  12. package/dist/@vtj/materials/deps/@ckeditor/ckeditor5-build-classic/zh-cn.js +1 -1
  13. package/dist/@vtj/materials/deps/@vtj/icons/index.umd.js +2 -2
  14. package/dist/@vtj/materials/deps/@vtj/ui/index.umd.js +10 -3
  15. package/dist/@vtj/materials/deps/@vtj/ui/style.css +1 -1
  16. package/dist/@vtj/materials/deps/@vtj/utils/index.umd.js +26 -26
  17. package/dist/@vtj/materials/deps/element-plus/index.css +1 -1
  18. package/dist/@vtj/materials/deps/element-plus/index.full.min.js +18 -18
  19. package/dist/@vtj/materials/deps/element-plus/zh-cn.js +152 -0
  20. package/dist/@vtj/materials/deps/vue/vue.global.prod.js +6 -5
  21. package/dist/@vtj/materials/deps/vue-router/vue-router.global.prod.js +2 -2
  22. package/dist/assets/{@element-plus-DnwP2ajv.js → @element-plus-CekXU_7D.js} +1 -1
  23. package/dist/assets/{@floating-ui-o_LpjUj1.js → @floating-ui-BkhKrinZ.js} +1 -1
  24. package/dist/assets/@popperjs-I-C4_FcE.js +1 -0
  25. package/dist/assets/@vue-BS4o5x1j.js +25 -0
  26. package/dist/assets/@vueuse-DwRHc_J7.js +1 -0
  27. package/dist/assets/{Editor-BKlikwSl-CQeex9PC.js → Editor-BKlikwSl-BkVOzfXj.js} +2 -7
  28. package/dist/assets/{css.worker-Cj_nKzFJ.js → css.worker-CSuMB07y.js} +5 -5
  29. package/dist/assets/{editor.worker-CxQ7p1mj.js → editor.worker-CE-p61q5.js} +1 -1
  30. package/dist/assets/element-plus-5SPWBdo3.css +1 -0
  31. package/dist/assets/element-plus-DnnaxJFP.js +20 -0
  32. package/dist/assets/{html.worker-Dbbe6jGy.js → html.worker-BGqTBnS3.js} +14 -14
  33. package/dist/assets/index-CmjnGNqy.js +2 -0
  34. package/dist/assets/index-CwmXldE1.js +1 -0
  35. package/dist/assets/index-D0d5Gdz8.css +1 -0
  36. package/dist/assets/index-DV80yKU0.js +199 -0
  37. package/dist/assets/{json.worker-BiEozgVN.js → json.worker-DKz2hMix.js} +21 -21
  38. package/dist/assets/lodash-es-CLq8SBAM.js +1 -0
  39. package/dist/assets/memoize-one-DwF5HINA.js +1 -0
  40. package/dist/assets/{mockjs-DCYLE3qz.js → mockjs-CfUV2g9n.js} +1 -1
  41. package/dist/assets/{monaco-editor-DdPna5vs.js → monaco-editor-Dg5hMj4r.js} +260 -260
  42. package/dist/assets/preview-DTLuedJ1.js +2 -0
  43. package/dist/assets/{ts.worker-BomFZlTR.js → ts.worker-C4Ong30t.js} +77 -77
  44. package/dist/assets/{vue-DILL4w2e.js → vue-BNsVu1qZ.js} +2 -2
  45. package/dist/assets/{vue-router-caOqMrBK.js → vue-router-CpoV07KG.js} +3 -3
  46. package/dist/index.html +12 -12
  47. package/package.json +11 -11
  48. package/dist/assets/@popperjs-CsO2-mKt.js +0 -1
  49. package/dist/assets/@vue-DbHY7CtS.js +0 -25
  50. package/dist/assets/@vueuse-J6GfbQpH.js +0 -1
  51. package/dist/assets/element-plus-D6ptIVTl.css +0 -1
  52. package/dist/assets/element-plus-DZc0I8pP.js +0 -20
  53. package/dist/assets/index-BVpsP8Tm.js +0 -195
  54. package/dist/assets/index-DWYPoLDp.js +0 -1
  55. package/dist/assets/index-Ik77R_6m.css +0 -1
  56. package/dist/assets/index-O_v7qyie.js +0 -7
  57. package/dist/assets/lodash-es-DKmLY3Gz.js +0 -1
  58. package/dist/assets/memoize-one-BdPwpGay.js +0 -1
  59. package/dist/assets/preview-BY2oT622.js +0 -7
@@ -1 +0,0 @@
1
- import{g as ce,b as fe,u as de,r as m,e as V,s as we,w as be,f as E,h as z,i as U,n as ve,j as M,t as Oe,k as pe,l as _e,m as Pe,p as Ee}from"./@vue-DbHY7CtS.js";var xe=Object.defineProperty,Se=Object.defineProperties,$e=Object.getOwnPropertyDescriptors,J=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,Te=Object.prototype.propertyIsEnumerable,K=(e,t,o)=>t in e?xe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,Ae=(e,t)=>{for(var o in t||(t={}))Ie.call(t,o)&&K(e,o,t[o]);if(J)for(var o of J(t))Te.call(t,o)&&K(e,o,t[o]);return e},Re=(e,t)=>Se(e,$e(t));function gt(e,t){var o;const n=we();return be(()=>{n.value=e()},Re(Ae({},t),{flush:(o=t?.flush)!=null?o:"sync"})),V(n)}var Z;const X=typeof window<"u",Ce=e=>typeof e<"u",Me=e=>typeof e=="function",We=e=>typeof e=="string",L=()=>{},Be=X&&((Z=window?.navigator)==null?void 0:Z.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function W(e){return typeof e=="function"?e():de(e)}function me(e,t){function o(...n){return new Promise((s,i)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(s).catch(i)})}return o}function De(e,t={}){let o,n,s=L;const i=l=>{clearTimeout(l),s(),s=L};return l=>{const c=W(e),v=W(t.maxWait);return o&&i(o),c<=0||v!==void 0&&v<=0?(n&&(i(n),n=null),Promise.resolve(l())):new Promise((d,a)=>{s=t.rejectOnCancel?a:d,v&&!n&&(n=setTimeout(()=>{o&&i(o),n=null,d(l())},v)),o=setTimeout(()=>{n&&i(n),n=null,d(l())},c)})}}function Fe(e,t=!0,o=!0,n=!1){let s=0,i,u=!0,l=L,c;const v=()=>{i&&(clearTimeout(i),i=void 0,l(),l=L)};return a=>{const r=W(e),f=Date.now()-s,p=()=>c=a();return v(),r<=0?(s=Date.now(),p()):(f>r&&(o||!u)?(s=Date.now(),p()):t&&(c=new Promise((b,h)=>{l=n?h:b,i=setTimeout(()=>{s=Date.now(),u=!0,b(p()),v()},Math.max(0,r-f))})),!o&&!i&&(i=setTimeout(()=>u=!0,r)),u=!1,c)}}function Ne(e){return e}function Y(e){return ce()?(fe(e),!0):!1}function Le(e,t=200,o={}){return me(De(t,o),e)}function wt(e,t=200,o={}){const n=m(e.value),s=Le(()=>{n.value=e.value},t,o);return E(e,()=>s()),n}function bt(e,t=200,o=!1,n=!0,s=!1){return me(Fe(t,o,n,s),e)}function q(e,t=!0){z()?U(e):t?e():ve(e)}function Ot(e,t,o={}){const{immediate:n=!0}=o,s=m(!1);let i=null;function u(){i&&(clearTimeout(i),i=null)}function l(){s.value=!1,u()}function c(...v){u(),s.value=!0,i=setTimeout(()=>{s.value=!1,i=null,e(...v)},W(t))}return n&&(s.value=!0,X&&c()),Y(l),{isPending:V(s),start:c,stop:l}}function A(e){var t;const o=W(e);return(t=o?.$el)!=null?t:o}const N=X?window:void 0,He=X?window.document:void 0;function R(...e){let t,o,n,s;if(We(e[0])||Array.isArray(e[0])?([o,n,s]=e,t=N):[t,o,n,s]=e,!t)return L;Array.isArray(o)||(o=[o]),Array.isArray(n)||(n=[n]);const i=[],u=()=>{i.forEach(d=>d()),i.length=0},l=(d,a,r,f)=>(d.addEventListener(a,r,f),()=>d.removeEventListener(a,r,f)),c=E(()=>[A(t),W(s)],([d,a])=>{u(),d&&i.push(...o.flatMap(r=>n.map(f=>l(d,r,f,a))))},{immediate:!0,flush:"post"}),v=()=>{c(),u()};return Y(v),v}let ee=!1;function _t(e,t,o={}){const{window:n=N,ignore:s=[],capture:i=!0,detectIframe:u=!1}=o;if(!n)return;Be&&!ee&&(ee=!0,Array.from(n.document.body.children).forEach(r=>r.addEventListener("click",L)));let l=!0;const c=r=>s.some(f=>{if(typeof f=="string")return Array.from(n.document.querySelectorAll(f)).some(p=>p===r.target||r.composedPath().includes(p));{const p=A(f);return p&&(r.target===p||r.composedPath().includes(p))}}),d=[R(n,"click",r=>{const f=A(e);if(!(!f||f===r.target||r.composedPath().includes(f))){if(r.detail===0&&(l=!c(r)),!l){l=!0;return}t(r)}},{passive:!0,capture:i}),R(n,"pointerdown",r=>{const f=A(e);f&&(l=!r.composedPath().includes(f)&&!c(r))},{passive:!0}),u&&R(n,"blur",r=>{var f;const p=A(e);((f=n.document.activeElement)==null?void 0:f.tagName)==="IFRAME"&&!p?.contains(n.document.activeElement)&&t(r)})].filter(Boolean);return()=>d.forEach(r=>r())}function he(e,t=!1){const o=m(),n=()=>o.value=!!e();return n(),q(n,t),o}function je(e){return JSON.parse(JSON.stringify(e))}const te=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ne="__vueuse_ssr_handlers__";te[ne]=te[ne]||{};function Pt(e,t,{window:o=N,initialValue:n=""}={}){const s=m(n),i=M(()=>{var u;return A(t)||((u=o?.document)==null?void 0:u.documentElement)});return E([i,()=>W(e)],([u,l])=>{var c;if(u&&o){const v=(c=o.getComputedStyle(u).getPropertyValue(l))==null?void 0:c.trim();s.value=v||n}},{immediate:!0}),E(s,u=>{var l;(l=i.value)!=null&&l.style&&i.value.style.setProperty(W(e),u)}),s}function Et({document:e=He}={}){if(!e)return m("visible");const t=m(e.visibilityState);return R(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var oe=Object.getOwnPropertySymbols,Ve=Object.prototype.hasOwnProperty,ze=Object.prototype.propertyIsEnumerable,Xe=(e,t)=>{var o={};for(var n in e)Ve.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&oe)for(var n of oe(e))t.indexOf(n)<0&&ze.call(e,n)&&(o[n]=e[n]);return o};function Ye(e,t,o={}){const n=o,{window:s=N}=n,i=Xe(n,["window"]);let u;const l=he(()=>s&&"ResizeObserver"in s),c=()=>{u&&(u.disconnect(),u=void 0)},v=E(()=>A(e),a=>{c(),l.value&&s&&a&&(u=new ResizeObserver(t),u.observe(a,i))},{immediate:!0,flush:"post"}),d=()=>{c(),v()};return Y(d),{isSupported:l,stop:d}}function xt(e,t={}){const{reset:o=!0,windowResize:n=!0,windowScroll:s=!0,immediate:i=!0}=t,u=m(0),l=m(0),c=m(0),v=m(0),d=m(0),a=m(0),r=m(0),f=m(0);function p(){const b=A(e);if(!b){o&&(u.value=0,l.value=0,c.value=0,v.value=0,d.value=0,a.value=0,r.value=0,f.value=0);return}const h=b.getBoundingClientRect();u.value=h.height,l.value=h.bottom,c.value=h.left,v.value=h.right,d.value=h.top,a.value=h.width,r.value=h.x,f.value=h.y}return Ye(e,p),E(()=>A(e),b=>!b&&p()),s&&R("scroll",p,{capture:!0,passive:!0}),n&&R("resize",p,{passive:!0}),q(()=>{i&&p()}),{height:u,bottom:l,left:c,right:v,top:d,width:a,x:r,y:f,update:p}}var re=Object.getOwnPropertySymbols,ke=Object.prototype.hasOwnProperty,Qe=Object.prototype.propertyIsEnumerable,Ue=(e,t)=>{var o={};for(var n in e)ke.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&re)for(var n of re(e))t.indexOf(n)<0&&Qe.call(e,n)&&(o[n]=e[n]);return o};function St(e,t,o={}){const n=o,{window:s=N}=n,i=Ue(n,["window"]);let u;const l=he(()=>s&&"MutationObserver"in s),c=()=>{u&&(u.disconnect(),u=void 0)},v=E(()=>A(e),a=>{c(),l.value&&s&&a&&(u=new MutationObserver(t),u.observe(a,i))},{immediate:!0}),d=()=>{c(),v()};return Y(d),{isSupported:l,stop:d}}var ie;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(ie||(ie={}));var qe=Object.defineProperty,se=Object.getOwnPropertySymbols,Ge=Object.prototype.hasOwnProperty,Je=Object.prototype.propertyIsEnumerable,ue=(e,t,o)=>t in e?qe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,Ke=(e,t)=>{for(var o in t||(t={}))Ge.call(t,o)&&ue(e,o,t[o]);if(se)for(var o of se(t))Je.call(t,o)&&ue(e,o,t[o]);return e};const Ze={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]};Ke({linear:Ne},Ze);function $t(e,t,o,n={}){var s,i,u;const{clone:l=!1,passive:c=!1,eventName:v,deep:d=!1,defaultValue:a}=n,r=z(),f=o||r?.emit||((s=r?.$emit)==null?void 0:s.bind(r))||((u=(i=r?.proxy)==null?void 0:i.$emit)==null?void 0:u.bind(r?.proxy));let p=v;t||(t="modelValue"),p=v||p||`update:${t.toString()}`;const b=O=>l?Me(l)?l(O):je(O):O,h=()=>Ce(e[t])?b(e[t]):a;if(c){const O=h(),g=m(O);return E(()=>e[t],_=>g.value=b(_)),E(g,_=>{(_!==e[t]||d)&&f(p,_)},{deep:d}),g}else return M({get(){return h()},set(O){f(p,O)}})}function It({window:e=N}={}){if(!e)return m(!1);const t=m(e.document.hasFocus());return R(e,"blur",()=>{t.value=!1}),R(e,"focus",()=>{t.value=!0}),t}function Tt(e={}){const{window:t=N,initialWidth:o=1/0,initialHeight:n=1/0,listenOrientation:s=!0,includeScrollbar:i=!0}=e,u=m(o),l=m(n),c=()=>{t&&(i?(u.value=t.innerWidth,l.value=t.innerHeight):(u.value=t.document.documentElement.clientWidth,l.value=t.document.documentElement.clientHeight))};return c(),q(c),R("resize",c,{passive:!0}),s&&R("orientationchange",c,{passive:!0}),{width:u,height:l}}function k(e){return ce()?(fe(e),!0):!1}function P(e){return typeof e=="function"?e():de(e)}const H=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const et=e=>e!=null,tt=Object.prototype.toString,nt=e=>tt.call(e)==="[object Object]",j=()=>{},ot=rt();function rt(){var e,t;return H&&((e=window?.navigator)==null?void 0:e.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||((t=window?.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function it(e){let t;function o(){return t||(t=e()),t}return o.reset=async()=>{const n=t;t=void 0,n&&await n},o}function ye(e){return e||z()}function st(...e){if(e.length!==1)return Oe(...e);const t=e[0];return typeof t=="function"?V(pe(()=>({get:t,set:j}))):m(t)}function ut(e,t={}){if(!Pe(e))return Ee(e);const o=Array.isArray(e.value)?Array.from({length:e.value.length}):{};for(const n in e.value)o[n]=pe(()=>({get(){return e.value[n]},set(s){var i;if((i=P(t.replaceRef))!=null?i:!0)if(Array.isArray(e.value)){const l=[...e.value];l[n]=s,e.value=l}else{const l={...e.value,[n]:s};Object.setPrototypeOf(l,Object.getPrototypeOf(e.value)),e.value=l}else e.value[n]=s}}));return o}function lt(e,t){ye(t)&&_e(e,t)}function at(e,t=!0,o){ye()?U(e,o):t?e():ve(e)}function ct(e,t,o={}){const{immediate:n=!0}=o,s=m(!1);let i=null;function u(){i&&(clearTimeout(i),i=null)}function l(){s.value=!1,u()}function c(...v){u(),s.value=!0,i=setTimeout(()=>{s.value=!1,i=null,e(...v)},P(t))}return n&&(s.value=!0,H&&c()),k(l),{isPending:V(s),start:c,stop:l}}function x(e){var t;const o=P(e);return(t=o?.$el)!=null?t:o}const B=H?window:void 0,ft=H?window.document:void 0,ge=H?window.navigator:void 0;function S(...e){let t,o,n,s;if(typeof e[0]=="string"||Array.isArray(e[0])?([o,n,s]=e,t=B):[t,o,n,s]=e,!t)return j;Array.isArray(o)||(o=[o]),Array.isArray(n)||(n=[n]);const i=[],u=()=>{i.forEach(d=>d()),i.length=0},l=(d,a,r,f)=>(d.addEventListener(a,r,f),()=>d.removeEventListener(a,r,f)),c=E(()=>[x(t),P(s)],([d,a])=>{if(u(),!d)return;const r=nt(a)?{...a}:a;i.push(...o.flatMap(f=>n.map(p=>l(d,f,p,r))))},{immediate:!0,flush:"post"}),v=()=>{c(),u()};return k(v),v}let le=!1;function At(e,t,o={}){const{window:n=B,ignore:s=[],capture:i=!0,detectIframe:u=!1}=o;if(!n)return j;ot&&!le&&(le=!0,Array.from(n.document.body.children).forEach(r=>r.addEventListener("click",j)),n.document.documentElement.addEventListener("click",j));let l=!0;const c=r=>s.some(f=>{if(typeof f=="string")return Array.from(n.document.querySelectorAll(f)).some(p=>p===r.target||r.composedPath().includes(p));{const p=x(f);return p&&(r.target===p||r.composedPath().includes(p))}}),d=[S(n,"click",r=>{const f=x(e);if(!(!f||f===r.target||r.composedPath().includes(f))){if(r.detail===0&&(l=!c(r)),!l){l=!0;return}t(r)}},{passive:!0,capture:i}),S(n,"pointerdown",r=>{const f=x(e);l=!c(r)&&!!(f&&!r.composedPath().includes(f))},{passive:!0}),u&&S(n,"blur",r=>{setTimeout(()=>{var f;const p=x(e);((f=n.document.activeElement)==null?void 0:f.tagName)==="IFRAME"&&!p?.contains(n.document.activeElement)&&t(r)},0)})].filter(Boolean);return()=>d.forEach(r=>r())}function dt(){const e=m(!1),t=z();return t&&U(()=>{e.value=!0},t),e}function Q(e){const t=dt();return M(()=>(t.value,!!e()))}function ae(e,t={}){const{controls:o=!1,navigator:n=ge}=t,s=Q(()=>n&&"permissions"in n);let i;const u=typeof e=="string"?{name:e}:e,l=m(),c=()=>{i&&(l.value=i.state)},v=it(async()=>{if(s.value){if(!i)try{i=await n.permissions.query(u),S(i,"change",c),c()}catch{l.value="prompt"}return i}});return v(),o?{state:l,isSupported:s,query:v}:l}function Rt(e={}){const{navigator:t=ge,read:o=!1,source:n,copiedDuring:s=1500,legacy:i=!1}=e,u=Q(()=>t&&"clipboard"in t),l=ae("clipboard-read"),c=ae("clipboard-write"),v=M(()=>u.value||i),d=m(""),a=m(!1),r=ct(()=>a.value=!1,s);function f(){u.value&&O(l.value)?t.clipboard.readText().then(g=>{d.value=g}):d.value=h()}v.value&&o&&S(["copy","cut"],f);async function p(g=P(n)){v.value&&g!=null&&(u.value&&O(c.value)?await t.clipboard.writeText(g):b(g),d.value=g,a.value=!0,r.start())}function b(g){const _=document.createElement("textarea");_.value=g??"",_.style.position="absolute",_.style.opacity="0",document.body.appendChild(_),_.select(),document.execCommand("copy"),_.remove()}function h(){var g,_,I;return(I=(_=(g=document?.getSelection)==null?void 0:g.call(document))==null?void 0:_.toString())!=null?I:""}function O(g){return g==="granted"||g==="prompt"}return{isSupported:v,text:d,copied:a,copy:p}}function vt(e,t,o={}){const{window:n=B,...s}=o;let i;const u=Q(()=>n&&"MutationObserver"in n),l=()=>{i&&(i.disconnect(),i=void 0)},c=M(()=>{const r=P(e),f=(Array.isArray(r)?r:[r]).map(x).filter(et);return new Set(f)}),v=E(()=>c.value,r=>{l(),u.value&&n&&r.size&&(i=new MutationObserver(t),r.forEach(f=>i.observe(f,s)))},{immediate:!0,flush:"post"}),d=()=>i?.takeRecords(),a=()=>{l(),v()};return k(a),{isSupported:u,stop:a,takeRecords:d}}function Ct(e,t={}){var o,n;const{pointerTypes:s,preventDefault:i,stopPropagation:u,exact:l,onMove:c,onEnd:v,onStart:d,initialValue:a,axis:r="both",draggingElement:f=B,containerElement:p,handle:b=e}=t,h=m((o=P(a))!=null?o:{x:0,y:0}),O=m(),g=y=>s?s.includes(y.pointerType):!0,_=y=>{P(i)&&y.preventDefault(),P(u)&&y.stopPropagation()},I=y=>{var D;if(P(t.disabled)||!g(y)||P(l)&&y.target!==P(e))return;const T=P(p),F=(D=T?.getBoundingClientRect)==null?void 0:D.call(T),C=P(e).getBoundingClientRect(),G={x:y.clientX-(T?C.left-F.left+T.scrollLeft:C.left),y:y.clientY-(T?C.top-F.top+T.scrollTop:C.top)};d?.(G,y)!==!1&&(O.value=G,_(y))},w=y=>{if(P(t.disabled)||!g(y)||!O.value)return;const D=P(p),T=P(e).getBoundingClientRect();let{x:F,y:C}=h.value;(r==="x"||r==="both")&&(F=y.clientX-O.value.x,D&&(F=Math.min(Math.max(0,F),D.scrollWidth-T.width))),(r==="y"||r==="both")&&(C=y.clientY-O.value.y,D&&(C=Math.min(Math.max(0,C),D.scrollHeight-T.height))),h.value={x:F,y:C},c?.(h.value,y),_(y)},$=y=>{P(t.disabled)||!g(y)||O.value&&(O.value=void 0,v?.(h.value,y),_(y))};if(H){const y={capture:(n=t.capture)!=null?n:!0};S(b,"pointerdown",I,y),S(f,"pointermove",w,y),S(f,"pointerup",$,y)}return{...ut(h),position:h,isDragging:M(()=>!!O.value),style:M(()=>`left:${h.value.x}px;top:${h.value.y}px;`)}}function pt(e,t,o={}){const{window:n=B,...s}=o;let i;const u=Q(()=>n&&"ResizeObserver"in n),l=()=>{i&&(i.disconnect(),i=void 0)},c=M(()=>Array.isArray(e)?e.map(a=>x(a)):[x(e)]),v=E(c,a=>{if(l(),u.value&&n){i=new ResizeObserver(t);for(const r of a)r&&i.observe(r,s)}},{immediate:!0,flush:"post"}),d=()=>{l(),v()};return k(d),{isSupported:u,stop:d}}function Mt(e,t={width:0,height:0},o={}){const{window:n=B,box:s="content-box"}=o,i=M(()=>{var a,r;return(r=(a=x(e))==null?void 0:a.namespaceURI)==null?void 0:r.includes("svg")}),u=m(t.width),l=m(t.height),{stop:c}=pt(e,([a])=>{const r=s==="border-box"?a.borderBoxSize:s==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;if(n&&i.value){const f=x(e);if(f){const p=n.getComputedStyle(f);u.value=Number.parseFloat(p.width),l.value=Number.parseFloat(p.height)}}else if(r){const f=Array.isArray(r)?r:[r];u.value=f.reduce((p,{inlineSize:b})=>p+b,0),l.value=f.reduce((p,{blockSize:b})=>p+b,0)}else u.value=a.contentRect.width,l.value=a.contentRect.height},o);at(()=>{const a=x(e);a&&(u.value="offsetWidth"in a?a.offsetWidth:t.width,l.value="offsetHeight"in a?a.offsetHeight:t.height)});const v=E(()=>x(e),a=>{u.value=a?t.width:0,l.value=a?t.height:0});function d(){c(),v()}return{width:u,height:l,stop:d}}const mt={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 ht(e={}){const{type:t="page",touch:o=!0,resetOnTouchEnds:n=!1,initialValue:s={x:0,y:0},window:i=B,target:u=i,scroll:l=!0,eventFilter:c}=e;let v=null;const d=m(s.x),a=m(s.y),r=m(null),f=typeof t=="function"?t:mt[t],p=w=>{const $=f(w);v=w,$&&([d.value,a.value]=$,r.value="mouse")},b=w=>{if(w.touches.length>0){const $=f(w.touches[0]);$&&([d.value,a.value]=$,r.value="touch")}},h=()=>{if(!v||!i)return;const w=f(v);v instanceof MouseEvent&&w&&(d.value=w[0]+i.scrollX,a.value=w[1]+i.scrollY)},O=()=>{d.value=s.x,a.value=s.y},g=c?w=>c(()=>p(w),{}):w=>p(w),_=c?w=>c(()=>b(w),{}):w=>b(w),I=c?()=>c(()=>h(),{}):()=>h();if(u){const w={passive:!0};S(u,["mousemove","dragover"],g,w),o&&t!=="movement"&&(S(u,["touchstart","touchmove"],_,w),n&&S(u,"touchend",O,w)),l&&t==="page"&&S(i,"scroll",I,{passive:!0})}return{x:d,y:a,sourceType:r}}function Wt(e,t={}){const{handleOutside:o=!0,window:n=B}=t,s=t.type||"page",{x:i,y:u,sourceType:l}=ht(t),c=m(e??n?.document.body),v=m(0),d=m(0),a=m(0),r=m(0),f=m(0),p=m(0),b=m(!0);let h=()=>{};return n&&(h=E([c,i,u],()=>{const O=x(c);if(!O)return;const{left:g,top:_,width:I,height:w}=O.getBoundingClientRect();a.value=g+(s==="page"?n.pageXOffset:0),r.value=_+(s==="page"?n.pageYOffset:0),f.value=w,p.value=I;const $=i.value-a.value,y=u.value-r.value;b.value=I===0||w===0||$<0||y<0||$>I||y>w,(o||!b.value)&&(v.value=$,d.value=y)},{immediate:!0}),S(document,"mouseleave",()=>{b.value=!0})),{x:i,y:u,sourceType:l,elementX:v,elementY:d,elementPositionX:a,elementPositionY:r,elementHeight:f,elementWidth:p,isOutside:b,stop:h}}function Bt(e=null,t={}){var o,n,s;const{document:i=ft,restoreOnUnmount:u=a=>a}=t,l=(o=i?.title)!=null?o:"",c=st((n=e??i?.title)!=null?n:null),v=e&&typeof e=="function";function d(a){if(!("titleTemplate"in t))return a;const r=t.titleTemplate||"%s";return typeof r=="function"?r(a):P(r).replace(/%s/g,a)}return E(c,(a,r)=>{a!==r&&i&&(i.title=d(typeof a=="string"?a:""))},{immediate:!0}),t.observe&&!t.titleTemplate&&i&&!v&&vt((s=i.head)==null?void 0:s.querySelector("title"),()=>{i&&i.title!==c.value&&(c.value=d(i.title))},{childList:!0}),lt(()=>{if(u){const a=u(l,c.value||"");a!=null&&i&&(i.title=a)}}),c}export{A as a,Tt as b,xt as c,Ye as d,bt as e,Pt as f,Ot as g,St as h,X as i,Et as j,It as k,gt as l,$t as m,Wt as n,_t as o,S as p,Mt as q,wt as r,Ct as s,Y as t,R as u,Bt as v,Rt as w,At as x};