@vtj/pro 0.9.5 → 0.9.7

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 (36) 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 +4 -4
  4. package/dist/@vtj/materials/assets/ui/index.umd.js +2 -2
  5. package/dist/@vtj/materials/assets/vant/index.umd.js +2 -2
  6. package/dist/@vtj/materials/deps/@vtj/charts/index.umd.js +2 -2
  7. package/dist/@vtj/materials/deps/@vtj/icons/index.umd.js +2 -2
  8. package/dist/@vtj/materials/deps/@vtj/ui/index.umd.js +2 -2
  9. package/dist/@vtj/materials/deps/@vtj/utils/index.umd.js +2 -2
  10. package/dist/@vtj/materials/deps/@vueuse/core/index.iife.min.js +1 -1
  11. package/dist/@vtj/materials/deps/element-plus/index.css +1 -1
  12. package/dist/@vtj/materials/deps/element-plus/index.full.min.js +13 -13
  13. package/dist/@vtj/materials/deps/element-plus/zh-cn.js +1 -1
  14. package/dist/@vtj/materials/deps/xe-utils/xe-utils.umd.min.js +2 -2
  15. package/dist/assets/{@element-plus-icons-vue-Cffh5gMs.js → @element-plus-icons-vue-BM7nPgXL.js} +1 -1
  16. package/dist/assets/@vueuse-BwkL59YI.js +1 -0
  17. package/dist/assets/{Editor-ZiUDqfgK-DcBtFFt2.js → Editor-ZiUDqfgK-lELAAGrH.js} +1 -1
  18. package/dist/assets/{auth-Ba1ZKjZT.js → auth-ChUE4eDn.js} +1 -1
  19. package/dist/assets/element-plus-atKQmRsE.js +21 -0
  20. package/dist/assets/{element-plus-BbdgoGGn.css → element-plus-oK66jojF.css} +1 -1
  21. package/dist/assets/{extension-BebaSne3.js → extension-n9Xhh9I6.js} +19 -19
  22. package/dist/assets/{index-C__zQNQ8.js → index-CvsdciBA.js} +28 -28
  23. package/dist/assets/{index-rSjlM276.js → index-cQzjg-b9.js} +1 -1
  24. package/dist/assets/{lodash-es-Cmvm8wvQ.js → lodash-es-D0ldFxdg.js} +1 -1
  25. package/dist/assets/page-CAzOTY4_.js +2 -0
  26. package/dist/assets/preview-B0hdUTvJ.js +2 -0
  27. package/dist/assets/{vue-MNNkR0KN.js → vue-Dzbx66BV.js} +1 -1
  28. package/dist/assets/{vue-router-70esBOLy.js → vue-router-CBK9GHjZ.js} +2 -2
  29. package/dist/assets/vxe-l3jZ90Gb.js +4 -0
  30. package/dist/index.html +10 -10
  31. package/package.json +11 -11
  32. package/dist/assets/@vueuse-lzvNycZY.js +0 -1
  33. package/dist/assets/element-plus-YyQpMNX9.js +0 -21
  34. package/dist/assets/page-BPUmAD5D.js +0 -2
  35. package/dist/assets/preview-CS81WHn_.js +0 -2
  36. package/dist/assets/vxe-y57a8oB3.js +0 -4
@@ -0,0 +1 @@
1
+ var ke=Object.defineProperty,Be=Object.defineProperties;var Xe=Object.getOwnPropertyDescriptors;var X=Object.getOwnPropertySymbols;var ue=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable;var ae=(e,t,n)=>t in e?ke(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,F=(e,t)=>{for(var n in t||(t={}))ue.call(t,n)&&ae(e,n,t[n]);if(X)for(var n of X(t))le.call(t,n)&&ae(e,n,t[n]);return e},k=(e,t)=>Be(e,Xe(t));var Y=(e,t)=>{var n={};for(var r in e)ue.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&X)for(var r of X(e))t.indexOf(r)<0&&le.call(e,r)&&(n[r]=e[r]);return n};import{u as Se,g as Ee,b as Pe,s as ee,w as Te,r as G,e as g,f as C,h as B,i as te,n as ne,j as re,k as x,l as Ye,t as Qe,m as Je,p as xe,q as Ge}from"./vue-Dzbx66BV.js";var Ue=Object.defineProperty,Ke=Object.defineProperties,qe=Object.getOwnPropertyDescriptors,ce=Object.getOwnPropertySymbols,Ze=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable,fe=(e,t,n)=>t in e?Ue(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,tt=(e,t)=>{for(var n in t||(t={}))Ze.call(t,n)&&fe(e,n,t[n]);if(ce)for(var n of ce(t))et.call(t,n)&&fe(e,n,t[n]);return e},nt=(e,t)=>Ke(e,qe(t));function nn(e,t){var n;const r=ee();return Te(()=>{r.value=e()},nt(tt({},t),{flush:(n=void 0)!=null?n:"sync"})),G(r)}var de;const U=typeof window!="undefined",rt=e=>typeof e!="undefined",Z=e=>typeof e=="function",ot=e=>typeof e=="string",H=()=>{},st=U&&((de=window==null?void 0:window.navigator)==null?void 0:de.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function z(e){return typeof e=="function"?e():Se(e)}function Ce(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 it(e,t={}){let n,r,o=H;const s=a=>{clearTimeout(a),o(),o=H};return a=>{const l=z(e),d=z(t.maxWait);return n&&s(n),l<=0||d!==void 0&&d<=0?(r&&(s(r),r=null),Promise.resolve(a())):new Promise((v,c)=>{o=t.rejectOnCancel?c:v,d&&!r&&(r=setTimeout(()=>{n&&s(n),r=null,v(a())},d)),n=setTimeout(()=>{r&&s(r),r=null,v(a())},l)})}}function at(e,t=!0,n=!0,r=!1){let o=0,s,i=!0,a=H,l;const d=()=>{s&&(clearTimeout(s),s=void 0,a(),a=H)};return c=>{const u=z(e),f=Date.now()-o,p=()=>l=c();return d(),u<=0?(o=Date.now(),p()):(f>u&&(n||!i)?(o=Date.now(),p()):t&&(l=new Promise((m,y)=>{a=r?y:m,s=setTimeout(()=>{o=Date.now(),i=!0,m(p()),d()},Math.max(0,u-f))})),!n&&!s&&(s=setTimeout(()=>i=!0,u)),i=!1,l)}}function ut(e){return e}function lt(e,t){let n,r,o;const s=g(!0),i=()=>{s.value=!0,o()};C(e,i,{flush:"sync"});const a=Z(t)?t:t.get,l=Z(t)?void 0:t.set,d=re((v,c)=>(r=v,o=c,{get(){return s.value&&(n=a(),s.value=!1),r(),n},set(u){l==null||l(u)}}));return Object.isExtensible(d)&&(d.trigger=i),d}function K(e){return Ee()?(Pe(e),!0):!1}function ct(e,t=200,n={}){return Ce(it(t,n),e)}function rn(e,t=200,n={}){const r=g(e.value),o=ct(()=>{r.value=e.value},t,n);return C(e,()=>o()),r}function on(e,t=200,n=!1,r=!0,o=!1){return Ce(at(t,n,r,o),e)}function oe(e,t=!0){B()?te(e):t?e():ne(e)}function sn(e,t,n={}){const{immediate:r=!0}=n,o=g(!1);let s=null;function i(){s&&(clearTimeout(s),s=null)}function a(){o.value=!1,i()}function l(...d){i(),o.value=!0,s=setTimeout(()=>{o.value=!1,s=null,e(...d)},z(t))}return r&&(o.value=!0,U&&l()),K(a),{isPending:G(o),start:l,stop:a}}function R(e){var t;const n=z(e);return(t=n==null?void 0:n.$el)!=null?t:n}const j=U?window:void 0,ft=U?window.document:void 0;function M(...e){let t,n,r,o;if(ot(e[0])||Array.isArray(e[0])?([n,r,o]=e,t=j):[t,n,r,o]=e,!t)return H;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const s=[],i=()=>{s.forEach(v=>v()),s.length=0},a=(v,c,u,f)=>(v.addEventListener(c,u,f),()=>v.removeEventListener(c,u,f)),l=C(()=>[R(t),z(o)],([v,c])=>{i(),v&&s.push(...n.flatMap(u=>r.map(f=>a(v,u,f,c))))},{immediate:!0,flush:"post"}),d=()=>{l(),i()};return K(d),d}let ve=!1;function an(e,t,n={}){const{window:r=j,ignore:o=[],capture:s=!0,detectIframe:i=!1}=n;if(!r)return;st&&!ve&&(ve=!0,Array.from(r.document.body.children).forEach(u=>u.addEventListener("click",H)));let a=!0;const l=u=>o.some(f=>{if(typeof f=="string")return Array.from(r.document.querySelectorAll(f)).some(p=>p===u.target||u.composedPath().includes(p));{const p=R(f);return p&&(u.target===p||u.composedPath().includes(p))}}),v=[M(r,"click",u=>{const f=R(e);if(!(!f||f===u.target||u.composedPath().includes(f))){if(u.detail===0&&(a=!l(u)),!a){a=!0;return}t(u)}},{passive:!0,capture:s}),M(r,"pointerdown",u=>{const f=R(e);f&&(a=!u.composedPath().includes(f)&&!l(u))},{passive:!0}),i&&M(r,"blur",u=>{var f;const p=R(e);((f=r.document.activeElement)==null?void 0:f.tagName)==="IFRAME"&&!(p!=null&&p.contains(r.document.activeElement))&&t(u)})].filter(Boolean);return()=>v.forEach(u=>u())}function un(e={}){var t;const{window:n=j}=e,r=(t=e.document)!=null?t:n==null?void 0:n.document,o=lt(()=>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 Ae(e,t=!1){const n=g(),r=()=>n.value=!!e();return r(),oe(r,t),n}function dt(e){return JSON.parse(JSON.stringify(e))}const pe=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},me="__vueuse_ssr_handlers__";pe[me]=pe[me]||{};function ln(e,t,{window:n=j,initialValue:r=""}={}){const o=g(r),s=x(()=>{var i;return R(t)||((i=n==null?void 0:n.document)==null?void 0:i.documentElement)});return C([s,()=>z(e)],([i,a])=>{var l;if(i&&n){const d=(l=n.getComputedStyle(i).getPropertyValue(a))==null?void 0:l.trim();o.value=d||r}},{immediate:!0}),C(o,i=>{var a;(a=s.value)!=null&&a.style&&s.value.style.setProperty(z(e),i)}),o}function cn({document:e=ft}={}){if(!e)return g("visible");const t=g(e.visibilityState);return M(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var he=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&&he)for(var r of he(e))t.indexOf(r)<0&&pt.call(e,r)&&(n[r]=e[r]);return n};function ht(e,t,n={}){const r=n,{window:o=j}=r,s=mt(r,["window"]);let i;const a=Ae(()=>o&&"ResizeObserver"in o),l=()=>{i&&(i.disconnect(),i=void 0)},d=C(()=>R(e),c=>{l(),a.value&&o&&c&&(i=new ResizeObserver(t),i.observe(c,s))},{immediate:!0,flush:"post"}),v=()=>{l(),d()};return K(v),{isSupported:a,stop:v}}function fn(e,t={}){const{reset:n=!0,windowResize:r=!0,windowScroll:o=!0,immediate:s=!0}=t,i=g(0),a=g(0),l=g(0),d=g(0),v=g(0),c=g(0),u=g(0),f=g(0);function p(){const m=R(e);if(!m){n&&(i.value=0,a.value=0,l.value=0,d.value=0,v.value=0,c.value=0,u.value=0,f.value=0);return}const y=m.getBoundingClientRect();i.value=y.height,a.value=y.bottom,l.value=y.left,d.value=y.right,v.value=y.top,c.value=y.width,u.value=y.x,f.value=y.y}return ht(e,p),C(()=>R(e),m=>!m&&p()),o&&M("scroll",p,{capture:!0,passive:!0}),r&&M("resize",p,{passive:!0}),oe(()=>{s&&p()}),{height:i,bottom:a,left:l,right:d,top:v,width:c,x:u,y:f,update:p}}var ge=Object.getOwnPropertySymbols,gt=Object.prototype.hasOwnProperty,yt=Object.prototype.propertyIsEnumerable,wt=(e,t)=>{var n={};for(var r in e)gt.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&ge)for(var r of ge(e))t.indexOf(r)<0&&yt.call(e,r)&&(n[r]=e[r]);return n};function dn(e,t,n={}){const r=n,{window:o=j}=r,s=wt(r,["window"]);let i;const a=Ae(()=>o&&"MutationObserver"in o),l=()=>{i&&(i.disconnect(),i=void 0)},d=C(()=>R(e),c=>{l(),a.value&&o&&c&&(i=new MutationObserver(t),i.observe(c,s))},{immediate:!0}),v=()=>{l(),d()};return K(v),{isSupported:a,stop:v}}var ye;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(ye||(ye={}));var bt=Object.defineProperty,we=Object.getOwnPropertySymbols,Ot=Object.prototype.hasOwnProperty,_t=Object.prototype.propertyIsEnumerable,be=(e,t,n)=>t in e?bt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,St=(e,t)=>{for(var n in t)Ot.call(t,n)&&be(e,n,t[n]);if(we)for(var n of we(t))_t.call(t,n)&&be(e,n,t[n]);return e};const Et={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]};St({linear:ut},Et);function vn(e,t,n,r={}){var o,s,i;const{clone:a=!1,passive:l=!1,eventName:d,deep:v=!1,defaultValue:c}=r,u=B(),f=n||(u==null?void 0:u.emit)||((o=u==null?void 0:u.$emit)==null?void 0:o.bind(u))||((i=(s=u==null?void 0:u.proxy)==null?void 0:s.$emit)==null?void 0:i.bind(u==null?void 0:u.proxy));let p=d;t||(t="modelValue"),p=d||p||`update:${t.toString()}`;const m=O=>a?Z(a)?a(O):dt(O):O,y=()=>rt(e[t])?m(e[t]):c;if(l){const O=y(),_=g(O);return C(()=>e[t],A=>_.value=m(A)),C(_,A=>{(A!==e[t]||v)&&f(p,A)},{deep:v}),_}else return x({get(){return y()},set(O){f(p,O)}})}function pn({window:e=j}={}){if(!e)return g(!1);const t=g(e.document.hasFocus());return M(e,"blur",()=>{t.value=!1}),M(e,"focus",()=>{t.value=!0}),t}function mn(e={}){const{window:t=j,initialWidth:n=1/0,initialHeight:r=1/0,listenOrientation:o=!0,includeScrollbar:s=!0}=e,i=g(n),a=g(r),l=()=>{t&&(s?(i.value=t.innerWidth,a.value=t.innerHeight):(i.value=t.document.documentElement.clientWidth,a.value=t.document.documentElement.clientHeight))};return l(),oe(l),M("resize",l,{passive:!0}),o&&M("orientationchange",l,{passive:!0}),{width:i,height:a}}function se(e){return Ee()?(Pe(e),!0):!1}const q=new WeakMap,Pt=(...e)=>{var t;const n=e[0],r=(t=B())==null?void 0:t.proxy;if(r==null&&!xe())throw new Error("injectLocal must be called in setup");return r&&q.has(r)&&n in q.get(r)?q.get(r)[n]:Ge(...e)};function T(e){return typeof e=="function"?e():Se(e)}const We=typeof window!="undefined"&&typeof document!="undefined";typeof WorkerGlobalScope!="undefined"&&globalThis instanceof WorkerGlobalScope;const Tt=Object.prototype.toString,xt=e=>Tt.call(e)==="[object Object]",$e=()=>{};function Ct(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 Le=e=>e();function At(e=Le){const t=g(!0);function n(){t.value=!1}function r(){t.value=!0}const o=(...s)=>{t.value&&e(...s)};return{isActive:G(t),pause:n,resume:r,eventFilter:o}}function Oe(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function Wt(e){return B()}function $t(...e){if(e.length!==1)return Je(...e);const t=e[0];return typeof t=="function"?G(re(()=>({get:t,set:$e}))):g(t)}function Lt(e,t,n={}){const s=n,{eventFilter:r=Le}=s,o=Y(s,["eventFilter"]);return C(e,Ct(r,t),o)}function Mt(e,t,n={}){const v=n,{eventFilter:r}=v,o=Y(v,["eventFilter"]),{eventFilter:s,pause:i,resume:a,isActive:l}=At(r);return{stop:Lt(e,t,k(F({},o),{eventFilter:s})),pause:i,resume:a,isActive:l}}function Rt(e,t={}){if(!Ye(e))return Qe(e);const n=Array.isArray(e.value)?Array.from({length:e.value.length}):{};for(const r in e.value)n[r]=re(()=>({get(){return e.value[r]},set(o){var s;if((s=T(t.replaceRef))!=null?s:!0)if(Array.isArray(e.value)){const a=[...e.value];a[r]=o,e.value=a}else{const a=k(F({},e.value),{[r]:o});Object.setPrototypeOf(a,Object.getPrototypeOf(e.value)),e.value=a}else e.value[r]=o}}));return n}function ie(e,t=!0,n){Wt()?te(e,n):t?e():ne(e)}const D=We?window:void 0;function V(e){var t;const n=T(e);return(t=n==null?void 0:n.$el)!=null?t:n}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 $e;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const s=[],i=()=>{s.forEach(v=>v()),s.length=0},a=(v,c,u,f)=>(v.addEventListener(c,u,f),()=>v.removeEventListener(c,u,f)),l=C(()=>[V(t),T(o)],([v,c])=>{if(i(),!v)return;const u=xt(c)?F({},c):c;s.push(...n.flatMap(f=>r.map(p=>a(v,f,p,u))))},{immediate:!0,flush:"post"}),d=()=>{l(),i()};return se(d),d}function It(){const e=g(!1),t=B();return t&&te(()=>{e.value=!0},t),e}function Me(e){const t=It();return x(()=>(t.value,!!e()))}const Dt=Symbol("vueuse-ssr-width");function Ft(){const e=xe()?Pt(Dt,null):null;return typeof e=="number"?e:void 0}function Vt(e,t={}){const{window:n=D,ssrWidth:r=Ft()}=t,o=Me(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function"),s=g(typeof r=="number");let i;const a=g(!1),l=c=>{a.value=c.matches},d=()=>{i&&("removeEventListener"in i?i.removeEventListener("change",l):i.removeListener(l))},v=Te(()=>{if(s.value){s.value=!o.value;const c=T(e).split(",");a.value=c.some(u=>{const f=u.includes("not all"),p=u.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),m=u.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let y=!!(p||m);return p&&y&&(y=r>=Oe(p[1])),m&&y&&(y=r<=Oe(m[1])),f?!y:y});return}o.value&&(d(),i=n.matchMedia(T(e)),"addEventListener"in i?i.addEventListener("change",l):i.addListener(l),a.value=i.matches)});return se(()=>{v(),d(),i=void 0}),x(()=>a.value)}const Q=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},J="__vueuse_ssr_handlers__",Nt=zt();function zt(){return J in Q||(Q[J]=Q[J]||{}),Q[J]}function Re(e,t){return Nt[e]||t}function jt(e){return Vt("(prefers-color-scheme: dark)",e)}function Ht(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 kt={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()}},_e="vueuse-storage";function Bt(e,t,n,r={}){var o;const{flush:s="pre",deep:i=!0,listenToStorageChanges:a=!0,writeDefaults:l=!0,mergeDefaults:d=!1,shallow:v,window:c=D,eventFilter:u,onError:f=h=>{console.error(h)},initOnMounted:p}=r,m=(v?ee:g)(typeof t=="function"?t():t);if(!n)try{n=Re("getDefaultStorage",()=>{var h;return(h=D)==null?void 0:h.localStorage})()}catch(h){f(h)}if(!n)return m;const y=T(t),O=Ht(y),_=(o=r.serializer)!=null?o:kt[O],{pause:A,resume:P}=Mt(m,()=>L(m.value),{flush:s,deep:i,eventFilter:u});c&&a&&ie(()=>{n instanceof Storage?I(c,"storage",w):I(c,_e,$),p&&w()}),p||w();function W(h,S){if(c){const E={key:e,oldValue:h,newValue:S,storageArea:n};c.dispatchEvent(n instanceof Storage?new StorageEvent("storage",E):new CustomEvent(_e,{detail:E}))}}function L(h){try{const S=n.getItem(e);if(h==null)W(S,null),n.removeItem(e);else{const E=_.write(h);S!==E&&(n.setItem(e,E),W(S,E))}}catch(S){f(S)}}function b(h){const S=h?h.newValue:n.getItem(e);if(S==null)return l&&y!=null&&n.setItem(e,_.write(y)),y;if(!h&&d){const E=_.read(S);return typeof d=="function"?d(E,y):O==="object"&&!Array.isArray(E)?F(F({},y),E):E}else return typeof S!="string"?S:_.read(S)}function w(h){if(!(h&&h.storageArea!==n)){if(h&&h.key==null){m.value=y;return}if(!(h&&h.key!==e)){A();try{(h==null?void 0:h.newValue)!==_.write(m.value)&&(m.value=b(h))}catch(S){f(S)}finally{h?ne(P):P()}}}}function $(h){w(h.detail)}return m}const Xt="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function Yt(e={}){const{selector:t="html",attribute:n="class",initialValue:r="auto",window:o=D,storage:s,storageKey:i="vueuse-color-scheme",listenToStorageChanges:a=!0,storageRef:l,emitAuto:d,disableTransition:v=!0}=e,c=F({auto:"",light:"light",dark:"dark"},e.modes||{}),u=jt({window:o}),f=x(()=>u.value?"dark":"light"),p=l||(i==null?$t(r):Bt(i,r,s,{window:o,listenToStorageChanges:a})),m=x(()=>p.value==="auto"?f.value:p.value),y=Re("updateHTMLAttrs",(P,W,L)=>{const b=typeof P=="string"?o==null?void 0:o.document.querySelector(P):V(P);if(!b)return;const w=new Set,$=new Set;let h=null;if(W==="class"){const E=L.split(/\s/g);Object.values(c).flatMap(N=>(N||"").split(/\s/g)).filter(Boolean).forEach(N=>{E.includes(N)?w.add(N):$.add(N)})}else h={key:W,value:L};if(w.size===0&&$.size===0&&h===null)return;let S;v&&(S=o.document.createElement("style"),S.appendChild(document.createTextNode(Xt)),o.document.head.appendChild(S));for(const E of w)b.classList.add(E);for(const E of $)b.classList.remove(E);h&&b.setAttribute(h.key,h.value),v&&(o.getComputedStyle(S).opacity,document.head.removeChild(S))});function O(P){var W;y(t,n,(W=c[P])!=null?W:P)}function _(P){e.onChanged?e.onChanged(P,O):O(P)}C(m,_,{flush:"post",immediate:!0}),ie(()=>_(m.value));const A=x({get(){return d?p.value:m.value},set(P){p.value=P}});return Object.assign(A,{store:p,system:f,state:m})}function hn(e={}){const{valueDark:t="dark",valueLight:n=""}=e,r=Yt(k(F({},e),{onChanged:(i,a)=>{var l;e.onChanged?(l=e.onChanged)==null||l.call(e,i==="dark",a,i):a(i)},modes:{dark:t,light:n}})),o=x(()=>r.system.value);return x({get(){return r.value==="dark"},set(i){const a=i?"dark":"light";o.value===a?r.value="auto":r.value=a}})}function gn(e,t={}){var n,r;const{pointerTypes:o,preventDefault:s,stopPropagation:i,exact:a,onMove:l,onEnd:d,onStart:v,initialValue:c,axis:u="both",draggingElement:f=D,containerElement:p,handle:m=e,buttons:y=[0]}=t,O=g((n=T(c))!=null?n:{x:0,y:0}),_=g(),A=w=>o?o.includes(w.pointerType):!0,P=w=>{T(s)&&w.preventDefault(),T(i)&&w.stopPropagation()},W=w=>{var $;if(!T(y).includes(w.button)||T(t.disabled)||!A(w)||T(a)&&w.target!==T(e))return;const h=T(p),S=($=h==null?void 0:h.getBoundingClientRect)==null?void 0:$.call(h),E=T(e).getBoundingClientRect(),N={x:w.clientX-(h?E.left-S.left+h.scrollLeft:E.left),y:w.clientY-(h?E.top-S.top+h.scrollTop:E.top)};(v==null?void 0:v(N,w))!==!1&&(_.value=N,P(w))},L=w=>{if(T(t.disabled)||!A(w)||!_.value)return;const $=T(p),h=T(e).getBoundingClientRect();let{x:S,y:E}=O.value;(u==="x"||u==="both")&&(S=w.clientX-_.value.x,$&&(S=Math.min(Math.max(0,S),$.scrollWidth-h.width))),(u==="y"||u==="both")&&(E=w.clientY-_.value.y,$&&(E=Math.min(Math.max(0,E),$.scrollHeight-h.height))),O.value={x:S,y:E},l==null||l(O.value,w),P(w)},b=w=>{T(t.disabled)||!A(w)||_.value&&(_.value=void 0,d==null||d(O.value,w),P(w))};if(We){const w={capture:(r=t.capture)!=null?r:!0};I(m,"pointerdown",W,w),I(f,"pointermove",L,w),I(f,"pointerup",b,w)}return k(F({},Rt(O)),{position:O,isDragging:x(()=>!!_.value),style:x(()=>`left:${O.value.x}px;top:${O.value.y}px;`)})}function Qt(e,t,n={}){const c=n,{window:r=D}=c,o=Y(c,["window"]);let s;const i=Me(()=>r&&"ResizeObserver"in r),a=()=>{s&&(s.disconnect(),s=void 0)},l=x(()=>{const u=T(e);return Array.isArray(u)?u.map(f=>V(f)):[V(u)]}),d=C(l,u=>{if(a(),i.value&&r){s=new ResizeObserver(t);for(const f of u)f&&s.observe(f,o)}},{immediate:!0,flush:"post"}),v=()=>{a(),d()};return se(v),{isSupported:i,stop:v}}function Jt(e,t={width:0,height:0},n={}){const{window:r=D,box:o="content-box"}=n,s=x(()=>{var c,u;return(u=(c=V(e))==null?void 0:c.namespaceURI)==null?void 0:u.includes("svg")}),i=g(t.width),a=g(t.height),{stop:l}=Qt(e,([c])=>{const u=o==="border-box"?c.borderBoxSize:o==="content-box"?c.contentBoxSize:c.devicePixelContentBoxSize;if(r&&s.value){const f=V(e);if(f){const p=f.getBoundingClientRect();i.value=p.width,a.value=p.height}}else if(u){const f=Array.isArray(u)?u:[u];i.value=f.reduce((p,{inlineSize:m})=>p+m,0),a.value=f.reduce((p,{blockSize:m})=>p+m,0)}else i.value=c.contentRect.width,a.value=c.contentRect.height},n);ie(()=>{const c=V(e);c&&(i.value="offsetWidth"in c?c.offsetWidth:t.width,a.value="offsetHeight"in c?c.offsetHeight:t.height)});const d=C(()=>V(e),c=>{i.value=c?t.width:0,a.value=c?t.height:0});function v(){l(),d()}return{width:i,height:a,stop:v}}const Gt={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 Ut(e={}){const{type:t="page",touch:n=!0,resetOnTouchEnds:r=!1,initialValue:o={x:0,y:0},window:s=D,target:i=s,scroll:a=!0,eventFilter:l}=e;let d=null,v=0,c=0;const u=g(o.x),f=g(o.y),p=g(null),m=typeof t=="function"?t:Gt[t],y=b=>{const w=m(b);d=b,w&&([u.value,f.value]=w,p.value="mouse"),s&&(v=s.scrollX,c=s.scrollY)},O=b=>{if(b.touches.length>0){const w=m(b.touches[0]);w&&([u.value,f.value]=w,p.value="touch")}},_=()=>{if(!d||!s)return;const b=m(d);d instanceof MouseEvent&&b&&(u.value=b[0]+s.scrollX-v,f.value=b[1]+s.scrollY-c)},A=()=>{u.value=o.x,f.value=o.y},P=l?b=>l(()=>y(b),{}):b=>y(b),W=l?b=>l(()=>O(b),{}):b=>O(b),L=l?()=>l(()=>_(),{}):()=>_();if(i){const b={passive:!0};I(i,["mousemove","dragover"],P,b),n&&t!=="movement"&&(I(i,["touchstart","touchmove"],W,b),r&&I(i,"touchend",A,b)),a&&t==="page"&&I(s,"scroll",L,{passive:!0})}return{x:u,y:f,sourceType:p}}function yn(e,t={}){const{handleOutside:n=!0,window:r=D}=t,o=t.type||"page",{x:s,y:i,sourceType:a}=Ut(t),l=g(e!=null?e:r==null?void 0:r.document.body),d=g(0),v=g(0),c=g(0),u=g(0),f=g(0),p=g(0),m=g(!0);let y=()=>{};return r&&(y=C([l,s,i],()=>{const O=V(l);if(!O||!(O instanceof Element))return;const{left:_,top:A,width:P,height:W}=O.getBoundingClientRect();c.value=_+(o==="page"?r.pageXOffset:0),u.value=A+(o==="page"?r.pageYOffset:0),f.value=W,p.value=P;const L=s.value-c.value,b=i.value-u.value;m.value=P===0||W===0||L<0||b<0||L>P||b>W,(n||!m.value)&&(d.value=L,v.value=b)},{immediate:!0}),I(document,"mouseleave",()=>{m.value=!0})),{x:s,y:i,sourceType:a,elementX:d,elementY:v,elementPositionX:c,elementPositionY:u,elementHeight:f,elementWidth:p,isOutside:m,stop:y}}function wn(e,t){const{containerStyle:n,wrapperProps:r,scrollTo:o,calculateRange:s,currentList:i,containerRef:a}="itemHeight"in t?Zt(t,e):qt(t,e);return{list:i,scrollTo:o,containerProps:{ref:a,onScroll:()=>{s()},style:n},wrapperProps:r}}function Ie(e){const t=g(null),n=Jt(t),r=g([]),o=ee(e);return{state:g({start:0,end:10}),source:o,currentList:r,size:n,containerRef:t}}function De(e,t,n){return r=>{if(typeof n=="number")return Math.ceil(r/n);const{start:o=0}=e.value;let s=0,i=0;for(let a=o;a<t.value.length;a++){const l=n(a);if(s+=l,i=a,s>r)break}return i-o}}function Fe(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 i=t(s);if(r+=i,r>=n){o=s;break}}return o+1}}function Ve(e,t,n,r,{containerRef:o,state:s,currentList:i,source:a}){return()=>{const l=o.value;if(l){const d=n(e==="vertical"?l.scrollTop:l.scrollLeft),v=r(e==="vertical"?l.clientHeight:l.clientWidth),c=d-t,u=d+v+t;s.value={start:c<0?0:c,end:u>a.value.length?a.value.length:u},i.value=a.value.slice(s.value.start,s.value.end).map((f,p)=>({data:f,index:p+s.value.start}))}}}function Ne(e,t){return n=>typeof e=="number"?n*e:t.value.slice(0,n).reduce((o,s,i)=>o+e(i),0)}function ze(e,t,n,r){C([e.width,e.height,t,n],()=>{r()})}function je(e,t){return x(()=>typeof e=="number"?t.value.length*e:t.value.reduce((n,r,o)=>n+e(o),0))}const Kt={horizontal:"scrollLeft",vertical:"scrollTop"};function He(e,t,n,r){return o=>{r.value&&(r.value[Kt[e]]=n(o),t())}}function qt(e,t){const n=Ie(t),{state:r,source:o,currentList:s,size:i,containerRef:a}=n,l={overflowX:"auto"},{itemWidth:d,overscan:v=5}=e,c=De(r,o,d),u=Fe(o,d),f=Ve("horizontal",v,u,c,n),p=Ne(d,o),m=x(()=>p(r.value.start)),y=je(d,o);ze(i,t,a,f);const O=He("horizontal",f,p,a),_=x(()=>({style:{height:"100%",width:`${y.value-m.value}px`,marginLeft:`${m.value}px`,display:"flex"}}));return{scrollTo:O,calculateRange:f,wrapperProps:_,containerStyle:l,currentList:s,containerRef:a}}function Zt(e,t){const n=Ie(t),{state:r,source:o,currentList:s,size:i,containerRef:a}=n,l={overflowY:"auto"},{itemHeight:d,overscan:v=5}=e,c=De(r,o,d),u=Fe(o,d),f=Ve("vertical",v,u,c,n),p=Ne(d,o),m=x(()=>p(r.value.start)),y=je(d,o);ze(i,t,a,f);const O=He("vertical",f,p,a),_=x(()=>({style:{width:"100%",height:`${y.value-m.value}px`,marginTop:`${m.value}px`}}));return{calculateRange:f,scrollTo:O,containerStyle:l,wrapperProps:_,currentList:s,containerRef:a}}export{fn as a,M as b,nn as c,ht as d,R as e,on as f,ln as g,sn as h,U as i,st as j,dn as k,cn as l,pn as m,vn as n,an as o,un as p,gn as q,rn as r,yn as s,K as t,mn as u,I as v,Jt as w,wn as x,hn as y};
@@ -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-Lba3v2gb.js";import{d as w,e as T,i as k,n as D,W as b,f as B,o as P,c as A,G as L,a8 as O,Y as x,H as I}from"./vue-MNNkR0KN.js";const z=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-Deqi-XXW-DeWZL2p5.js"),[],import.meta.url)),["css","scss","less"].includes(n)&&(s=yield p(()=>import("./css.worker-DcQjDQkA-DTHP9D1P.js"),[],import.meta.url)),["html","handlebars","razor","vue"].includes(n)&&(s=yield p(()=>import("./html.worker-B83UVBG6-DuLWH66p.js"),[],import.meta.url)),["typescript","javascript"].includes(n)&&(s=yield p(()=>import("./ts.worker-P1pVlN2Z-CTQnFNid.js"),[],import.meta.url)),s=s||(yield p(()=>import("./editor.worker-lG8NyUhA-Fj8qvYlB.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)=>(P(),A("div",{class:L(["v-code-editor",{"is-border":r.border}]),ref_key:"container",ref:c,onKeyup:n[0]||(n[0]=O(x(()=>{},["stop"]),["enter"])),style:I({height:r.height})},null,38))}});export{z as default};
1
+ var v=Object.defineProperty;var y=Object.getOwnPropertySymbols;var V=Object.prototype.hasOwnProperty,h=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={}))V.call(a,t)&&f(o,t,a[t]);if(y)for(var t of y(a))h.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 E}from"./monaco-editor-Lba3v2gb.js";import{d as w,e as T,i as k,n as D,V as b,f as B,o as P,c as A,F as L,a7 as O,X as x,G as I}from"./vue-Dzbx66BV.js";const z=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-Deqi-XXW-DeWZL2p5.js"),[],import.meta.url)),["css","scss","less"].includes(n)&&(s=yield p(()=>import("./css.worker-DcQjDQkA-DTHP9D1P.js"),[],import.meta.url)),["html","handlebars","razor","vue"].includes(n)&&(s=yield p(()=>import("./html.worker-B83UVBG6-DuLWH66p.js"),[],import.meta.url)),["typescript","javascript"].includes(n)&&(s=yield p(()=>import("./ts.worker-P1pVlN2Z-CTQnFNid.js"),[],import.meta.url)),s=s||(yield p(()=>import("./editor.worker-lG8NyUhA-Fj8qvYlB.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=E.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)=>(P(),A("div",{class:L(["v-code-editor",{"is-border":r.border}]),ref_key:"container",ref:c,onKeyup:n[0]||(n[0]=O(x(()=>{},["stop"]),["enter"])),style:I({height:r.height})},null,38))}});export{z as default};
@@ -1 +1 @@
1
- var k=Object.defineProperty,v=Object.defineProperties;var A=Object.getOwnPropertyDescriptors;var w=Object.getOwnPropertySymbols;var B=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable;var g=(e,t,o)=>t in e?k(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,E=(e,t)=>{for(var o in t||(t={}))B.call(t,o)&&g(e,o,t[o]);if(w)for(var o of w(t))I.call(t,o)&&g(e,o,t[o]);return e},x=(e,t)=>v(e,A(t));var u=(e,t,o)=>new Promise((i,m)=>{var p=n=>{try{a(o.next(n))}catch(r){m(r)}},s=n=>{try{a(o.throw(n))}catch(r){m(r)}},a=n=>n.done?i(n.value):Promise.resolve(n.value).then(p,s);a((o=o.apply(e,t)).next())});import{useRoute as R}from"./vue-router-70esBOLy.js";import{D as S,A as q,N as D,u as K}from"./index-C__zQNQ8.js";import{c as y}from"./element-plus-YyQpMNX9.js";import"./vxe-y57a8oB3.js";import{E as N}from"./extension-BebaSne3.js";import{d as O,aB as _,c as $,o as b}from"./vue-MNNkR0KN.js";import{_ as G}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./mockjs-BiYWQEnZ.js";import"./dayjs-DO-COJPZ.js";import"./monaco-editor-Lba3v2gb.js";import"./lodash-es-Cmvm8wvQ.js";import"./@vueuse-lzvNycZY.js";import"./@element-plus-icons-vue-Cffh5gMs.js";import"./shared-BAqo0W56.js";import"./html2canvas-CIV5arX1.js";const L={class:"loading"},M=O({__name:"auth",setup(e){return u(this,null,function*(){let t,o;const i=R(),m=new D,p=([t,o]=_(()=>m.getExtension().catch(()=>null)),t=yield t,o(),t),{adapters:s}=p?([t,o]=_(()=>new N(p).load()),t=yield t,o(),t):{},a=s==null?void 0:s.access,n=s==null?void 0:s.remote,r=a?new S(x(E({},a),{alert:y.alert,storageKey:q})):void 0,C=c=>u(this,null,function*(){const h=`${n}/api/open/user/${c}`,l=yield K(h).catch(()=>null);return!l||!l.success?(yield y.alert("登录失败"),null):l.data}),f=i.query.token,d=f?([t,o]=_(()=>C(f)),t=yield t,o(),t):null;if(d)try{r==null||r.login(d);const c=i.query.redirect;location.href=decodeURIComponent(c||"/")}catch(c){location.reload()}return(c,h)=>(b(),$("div",L,"正在登录中..."))})}}),et=G(M,[["__scopeId","data-v-b861aa1a"]]);export{et as default};
1
+ var C=Object.defineProperty,k=Object.defineProperties;var v=Object.getOwnPropertyDescriptors;var w=Object.getOwnPropertySymbols;var B=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable;var g=(e,t,o)=>t in e?C(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,E=(e,t)=>{for(var o in t||(t={}))B.call(t,o)&&g(e,o,t[o]);if(w)for(var o of w(t))I.call(t,o)&&g(e,o,t[o]);return e},x=(e,t)=>k(e,v(t));var u=(e,t,o)=>new Promise((i,m)=>{var p=n=>{try{a(o.next(n))}catch(r){m(r)}},s=n=>{try{a(o.throw(n))}catch(r){m(r)}},a=n=>n.done?i(n.value):Promise.resolve(n.value).then(p,s);a((o=o.apply(e,t)).next())});import{useRoute as R}from"./vue-router-CBK9GHjZ.js";import{D as S,A as q,N as D,u as K}from"./index-CvsdciBA.js";import{c as y}from"./element-plus-atKQmRsE.js";import"./vxe-l3jZ90Gb.js";import{E as N}from"./extension-n9Xhh9I6.js";import{d as O,aA as _,c as $,o as b}from"./vue-Dzbx66BV.js";import{_ as G}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./mockjs-BiYWQEnZ.js";import"./dayjs-DO-COJPZ.js";import"./monaco-editor-Lba3v2gb.js";import"./lodash-es-D0ldFxdg.js";import"./@vueuse-BwkL59YI.js";import"./@element-plus-icons-vue-BM7nPgXL.js";import"./shared-BAqo0W56.js";import"./html2canvas-CIV5arX1.js";const L={class:"loading"},M=O({__name:"auth",setup(e){return u(this,null,function*(){let t,o;const i=R(),m=new D,p=([t,o]=_(()=>m.getExtension().catch(()=>null)),t=yield t,o(),t),{adapters:s}=p?([t,o]=_(()=>new N(p).load()),t=yield t,o(),t):{},a=s==null?void 0:s.access,n=s==null?void 0:s.remote,r=a?new S(x(E({},a),{alert:y.alert,storageKey:q})):void 0,A=c=>u(this,null,function*(){const h=`${n}/api/open/user/${c}`,l=yield K(h).catch(()=>null);return!l||!l.success?(yield y.alert("登录失败"),null):l.data}),f=i.query.token,d=f?([t,o]=_(()=>A(f)),t=yield t,o(),t):null;if(d)try{r==null||r.login(d);const c=i.query.redirect;location.href=decodeURIComponent(c||"/")}catch(c){location.reload()}return(c,h)=>(b(),$("div",L,"正在登录中..."))})}}),et=G(M,[["__scopeId","data-v-b861aa1a"]]);export{et as default};