@vtj/pro 0.13.38 → 0.13.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@vtj/materials/assets/antdv/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/charts/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/element/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/icons/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/ui/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/uni-h5/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/uni-ui/index.umd.js +2 -2
- package/dist/@vtj/materials/assets/vant/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/charts/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/icons/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/ui/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/@vtj/utils/index.umd.js +2 -2
- package/dist/@vtj/materials/deps/element-plus/index.css +1 -1
- package/dist/@vtj/materials/deps/element-plus/index.full.min.js +29 -25
- package/dist/@vtj/materials/deps/element-plus/zh-cn.js +1 -1
- package/dist/@vtj/materials/deps/uni-h5/style.css +1 -1
- package/dist/@vtj/materials/deps/vant/index.css +1 -1
- package/dist/@vtj/materials/deps/vant/vant.min.js +3 -3
- package/dist/@vtj/materials/deps/vue/vue.global.js +314 -269
- package/dist/@vtj/materials/deps/vue/vue.global.prod.js +5 -5
- package/dist/@vtj/materials/deps/vue-router/vue-router.global.js +38 -55
- package/dist/@vtj/materials/deps/vue-router/vue-router.global.prod.js +2 -2
- package/dist/assets/{@element-plus-icons-vue-BKci8WR4.js → @element-plus-icons-vue-Cedkr9-t.js} +1 -1
- package/dist/assets/@vueuse-dfxA5MrB.js +1 -0
- package/dist/assets/{Editor-DDkL8z_g-CT2bNIwy.css → Editor-CB7H71mV-C0ROBped.css} +1 -1
- package/dist/assets/{Editor-DDkL8z_g-DBAoPJJ_.js → Editor-CB7H71mV-ZgvMz2MG.js} +102 -80
- package/dist/assets/auth-DnD_8cBd.js +1 -0
- package/dist/assets/element-plus-CTJx9qrF.js +12 -0
- package/dist/assets/element-plus-Cubt0wGL.css +1 -0
- package/dist/assets/index-CfEg0G4X.js +1 -0
- package/dist/assets/{index-BN_BO5AJ.js → index-DRT_gnec.js} +2 -2
- package/dist/assets/{lodash-es-DyZ5XK_i.js → lodash-es-C_ofKwPd.js} +1 -1
- package/dist/assets/marked-Dt4xUbva.js +59 -0
- package/dist/assets/page-BoUPZL85.js +2 -0
- package/dist/assets/preview-6kb9FMSl.js +2 -0
- package/dist/assets/{uni-page-BA3KNMq4.js → uni-page-DhlBsrdh.js} +1 -1
- package/dist/assets/{utils-DgJKN_YS.js → utils-BRRyiuJG.js} +1 -1
- package/dist/assets/vue-DnlwaDgl.js +35 -0
- package/dist/assets/vue-router-C7QxHR5l.js +9 -0
- package/dist/assets/{vxe-CiIRgvGK.js → vxe-CV1GhgEu.js} +4 -4
- package/dist/index.html +10 -10
- package/dist/uni/assets/{@dcloudio-uni-h5-vue-8GkSpuEV.js → @dcloudio-uni-h5-vue-Dxv_ts1w.js} +1 -1
- package/dist/uni/assets/{index-Bo7dvfkA.js → index-BBaSDF4L.js} +19 -19
- package/dist/uni/assets/vue-router-C2iVG-hf.js +9 -0
- package/dist/uni/index.html +24 -3
- package/package.json +12 -12
- package/dist/assets/@vueuse-CFu7Lllw.js +0 -1
- package/dist/assets/auth-BJnotDgg.js +0 -1
- package/dist/assets/element-plus-BCa6Zci8.js +0 -12
- package/dist/assets/element-plus-BZ_SBfk-.css +0 -1
- package/dist/assets/index-svsO9SUA.js +0 -1
- package/dist/assets/marked-BQZxLJfc.js +0 -56
- package/dist/assets/page-CKK4ROLa.js +0 -2
- package/dist/assets/preview-DUXn9tqt.js +0 -2
- package/dist/assets/vue-CAMRmZ-8.js +0 -35
- package/dist/assets/vue-router-CwSAuTE4.js +0 -9
- package/dist/uni/assets/vue-router-eQVOEjEf.js +0 -9
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import{i as M,o as dt,a as pt,b as mt,d as Fe,c as B,p as pe,r as gt,w as Rt,h as Qe,s as vt,u as $,e as Et,n as At,f as yt}from"./@dcloudio-uni-h5-vue-Dxv_ts1w.js";import"./vue-BK7aLblh.js";import"./@dcloudio-uni-shared-Cc-Ey1iB.js";/*!
|
|
2
|
+
* vue-router v4.6.4
|
|
3
|
+
* (c) 2025 Eduardo San Martin Morote
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/const F=typeof document!="undefined";function ze(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Ye(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&ze(e.default)}const N=Object.assign;function me(e,t){const n={};for(const r in t){const o=t[r];n[r]=k(o)?o.map(e):e(o)}return n}const ee=()=>{},k=Array.isArray;function be(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}const Je=/#/g,Ot=/&/g,Nt=/\//g,Ct=/=/g,_t=/\?/g,Xe=/\+/g,Pt=/%5B/g,It=/%5D/g,Ze=/%5E/g,wt=/%60/g,$e=/%7B/g,St=/%7C/g,et=/%7D/g,bt=/%20/g;function Oe(e){return e==null?"":encodeURI(""+e).replace(St,"|").replace(Pt,"[").replace(It,"]")}function Tt(e){return Oe(e).replace($e,"{").replace(et,"}").replace(Ze,"^")}function Ee(e){return Oe(e).replace(Xe,"%2B").replace(bt,"+").replace(Je,"%23").replace(Ot,"%26").replace(wt,"`").replace($e,"{").replace(et,"}").replace(Ze,"^")}function xt(e){return Ee(e).replace(Ct,"%3D")}function Dt(e){return Oe(e).replace(Je,"%23").replace(_t,"%3F")}function Gt(e){return Dt(e).replace(Nt,"%2F")}function ne(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch(t){}return""+e}const Lt=/\/$/,kt=e=>e.replace(Lt,"");function ge(e,t,n="/"){let r,o={},u="",h="";const d=t.indexOf("#");let i=t.indexOf("?");return i=d>=0&&i>d?-1:i,i>=0&&(r=t.slice(0,i),u=t.slice(i,d>0?d:t.length),o=e(u.slice(1))),d>=0&&(r=r||t.slice(0,d),h=t.slice(d,t.length)),r=Ut(r!=null?r:t,n),{fullPath:r+u+h,path:r,query:o,hash:ne(h)}}function Bt(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Te(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Vt(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&Q(t.matched[r],n.matched[o])&&tt(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Q(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function tt(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!Mt(e[n],t[n]))return!1;return!0}function Mt(e,t){return k(e)?xe(e,t):k(t)?xe(t,e):(e==null?void 0:e.valueOf())===(t==null?void 0:t.valueOf())}function xe(e,t){return k(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function Ut(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let u=n.length-1,h,d;for(h=0;h<r.length;h++)if(d=r[h],d!==".")if(d==="..")u>1&&u--;else break;return n.slice(0,u).join("/")+"/"+r.slice(h).join("/")}const H={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let se=(function(e){return e.pop="pop",e.push="push",e})({}),te=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});const Re="";function nt(e){if(!e)if(F){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),kt(e)}const Ht=/^[^#]+#/;function rt(e,t){return e.replace(Ht,"#")+t}function jt(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const ie=()=>({left:window.scrollX,top:window.scrollY});function qt(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=jt(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function De(e,t){return(history.state?history.state.position-t:-1)+e}const Ae=new Map;function Kt(e,t){Ae.set(e,t)}function Wt(e){const t=Ae.get(e);return Ae.delete(e),t}function Ft(e){return typeof e=="string"||e&&typeof e=="object"}function ot(e){return typeof e=="string"||typeof e=="symbol"}let w=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({});const st=Symbol("");let In=(function(e){return e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated",e})({});w.MATCHER_NOT_FOUND+"",w.NAVIGATION_GUARD_REDIRECT+"",w.NAVIGATION_ABORTED+"",w.NAVIGATION_CANCELLED+"",w.NAVIGATION_DUPLICATED+"";function z(e,t){return N(new Error,{type:e,[st]:!0},t)}function V(e,t){return e instanceof Error&&st in e&&(t==null||!!(e.type&t))}const Qt=["params","query","hash"];function zt(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of Qt)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function Yt(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;r<n.length;++r){const o=n[r].replace(Xe," "),u=o.indexOf("="),h=ne(u<0?o:o.slice(0,u)),d=u<0?null:ne(o.slice(u+1));if(h in t){let i=t[h];k(i)||(i=t[h]=[i]),i.push(d)}else t[h]=d}return t}function Ge(e){let t="";for(let n in e){const r=e[n];if(n=xt(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(k(r)?r.map(o=>o&&Ee(o)):[r&&Ee(r)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function Jt(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=k(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}const Ne=Symbol(""),Le=Symbol(""),ae=Symbol(""),Ce=Symbol(""),ye=Symbol("");function Z(){let e=[];function t(r){return e.push(r),()=>{const o=e.indexOf(r);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function it(e,t,n){const r=()=>{e[t].delete(n)};dt(r),pt(r),mt(()=>{e[t].add(n)}),e[t].add(n)}function wn(e){const t=M(Ne,{}).value;t&&it(t,"leaveGuards",e)}function Sn(e){const t=M(Ne,{}).value;t&&it(t,"updateGuards",e)}function j(e,t,n,r,o,u=h=>h()){const h=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((d,i)=>{const l=c=>{c===!1?i(z(w.NAVIGATION_ABORTED,{from:n,to:t})):c instanceof Error?i(c):Ft(c)?i(z(w.NAVIGATION_GUARD_REDIRECT,{from:t,to:c})):(h&&r.enterCallbacks[o]===h&&typeof c=="function"&&h.push(c),d())},p=u(()=>e.call(r&&r.instances[o],t,n,l));let a=Promise.resolve(p);e.length<3&&(a=a.then(l)),a.catch(c=>i(c))})}function ve(e,t,n,r,o=u=>u()){const u=[];for(const h of e)for(const d in h.components){let i=h.components[d];if(!(t!=="beforeRouteEnter"&&!h.instances[d]))if(ze(i)){const l=(i.__vccOpts||i)[t];l&&u.push(j(l,n,r,h,d,o))}else{let l=i();u.push(()=>l.then(p=>{if(!p)throw new Error(`Couldn't resolve component "${d}" at "${h.path}"`);const a=Ye(p)?p.default:p;h.mods[d]=p,h.components[d]=a;const c=(a.__vccOpts||a)[t];return c&&j(c,n,r,h,d,o)()}))}}return u}function bn(e){return e.matched.every(t=>t.redirect)?Promise.reject(new Error("Cannot load a route that redirects.")):Promise.all(e.matched.map(t=>t.components&&Promise.all(Object.keys(t.components).reduce((n,r)=>{const o=t.components[r];return typeof o=="function"&&!("displayName"in o)&&n.push(o().then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${r}" at "${t.path}". Ensure you passed a function that returns a promise.`));const h=Ye(u)?u.default:u;t.mods[r]=u,t.components[r]=h})),n},[])))).then(()=>e)}function Xt(e,t){const n=[],r=[],o=[],u=Math.max(t.matched.length,e.matched.length);for(let h=0;h<u;h++){const d=t.matched[h];d&&(e.matched.find(l=>Q(l,d))?r.push(d):n.push(d));const i=e.matched[h];i&&(t.matched.find(l=>Q(l,i))||o.push(i))}return[n,r,o]}/*!
|
|
6
|
+
* vue-router v4.6.4
|
|
7
|
+
* (c) 2025 Eduardo San Martin Morote
|
|
8
|
+
* @license MIT
|
|
9
|
+
*/let Zt=()=>location.protocol+"//"+location.host;function at(e,t){const{pathname:n,search:r,hash:o}=t,u=e.indexOf("#");if(u>-1){let h=o.includes(e.slice(u))?e.slice(u).length:1,d=o.slice(h);return d[0]!=="/"&&(d="/"+d),Te(d,"")}return Te(n,e)+r+o}function $t(e,t,n,r){let o=[],u=[],h=null;const d=({state:c})=>{const f=at(e,location),O=n.value,C=t.value;let P=0;if(c){if(n.value=f,t.value=c,h&&h===O){h=null;return}P=C?c.position-C.position:0}else r(f);o.forEach(I=>{I(n.value,O,{delta:P,type:se.pop,direction:P?P>0?te.forward:te.back:te.unknown})})};function i(){h=n.value}function l(c){o.push(c);const f=()=>{const O=o.indexOf(c);O>-1&&o.splice(O,1)};return u.push(f),f}function p(){if(document.visibilityState==="hidden"){const{history:c}=window;if(!c.state)return;c.replaceState(N({},c.state,{scroll:ie()}),"")}}function a(){for(const c of u)c();u=[],window.removeEventListener("popstate",d),window.removeEventListener("pagehide",p),document.removeEventListener("visibilitychange",p)}return window.addEventListener("popstate",d),window.addEventListener("pagehide",p),document.addEventListener("visibilitychange",p),{pauseListeners:i,listen:l,destroy:a}}function ke(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?ie():null}}function en(e){const{history:t,location:n}=window,r={value:at(e,n)},o={value:t.state};o.value||u(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function u(i,l,p){const a=e.indexOf("#"),c=a>-1?(n.host&&document.querySelector("base")?e:e.slice(a))+i:Zt()+e+i;try{t[p?"replaceState":"pushState"](l,"",c),o.value=l}catch(f){console.error(f),n[p?"replace":"assign"](c)}}function h(i,l){u(i,N({},t.state,ke(o.value.back,i,o.value.forward,!0),l,{position:o.value.position}),!0),r.value=i}function d(i,l){const p=N({},o.value,t.state,{forward:i,scroll:ie()});u(p.current,p,!0),u(i,N({},ke(r.value,i,null),{position:p.position+1},l),!1),r.value=i}return{location:r,state:o,push:d,replace:h}}function tn(e){e=nt(e);const t=en(e),n=$t(e,t.state,t.location,t.replace);function r(u,h=!0){h||n.pauseListeners(),history.go(u)}const o=N({location:"",base:e,go:r,createHref:rt.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function Tn(e=""){let t=[],n=[[Re,{}]],r=0;e=nt(e);function o(d,i={}){r++,r!==n.length&&n.splice(r),n.push([d,i])}function u(d,i,{direction:l,delta:p}){const a={direction:l,delta:p,type:se.pop};for(const c of t)c(d,i,a)}const h={location:Re,state:{},base:e,createHref:rt.bind(null,e),replace(d,i){n.splice(r--,1),o(d,i)},push(d,i){o(d,i)},listen(d){return t.push(d),()=>{const i=t.indexOf(d);i>-1&&t.splice(i,1)}},destroy(){t=[],n=[[Re,{}]],r=0},go(d,i=!0){const l=this.location,p=d<0?te.back:te.forward;r=Math.max(0,Math.min(r+d,n.length-1)),i&&u(this.location,l,{direction:p,delta:d})}};return Object.defineProperty(h,"location",{enumerable:!0,get:()=>n[r][0]}),Object.defineProperty(h,"state",{enumerable:!0,get:()=>n[r][1]}),h}function xn(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),tn(e)}let K=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var T=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(T||{});const nn={type:K.Static,value:""},rn=/[a-zA-Z0-9_]/;function on(e){if(!e)return[[]];if(e==="/")return[[nn]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(f){throw new Error(`ERR (${n})/"${l}": ${f}`)}let n=T.Static,r=n;const o=[];let u;function h(){u&&o.push(u),u=[]}let d=0,i,l="",p="";function a(){l&&(n===T.Static?u.push({type:K.Static,value:l}):n===T.Param||n===T.ParamRegExp||n===T.ParamRegExpEnd?(u.length>1&&(i==="*"||i==="+")&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),u.push({type:K.Param,value:l,regexp:p,repeatable:i==="*"||i==="+",optional:i==="*"||i==="?"})):t("Invalid state to consume buffer"),l="")}function c(){l+=i}for(;d<e.length;){if(i=e[d++],i==="\\"&&n!==T.ParamRegExp){r=n,n=T.EscapeNext;continue}switch(n){case T.Static:i==="/"?(l&&a(),h()):i===":"?(a(),n=T.Param):c();break;case T.EscapeNext:c(),n=r;break;case T.Param:i==="("?n=T.ParamRegExp:rn.test(i)?c():(a(),n=T.Static,i!=="*"&&i!=="?"&&i!=="+"&&d--);break;case T.ParamRegExp:i===")"?p[p.length-1]=="\\"?p=p.slice(0,-1)+i:n=T.ParamRegExpEnd:p+=i;break;case T.ParamRegExpEnd:a(),n=T.Static,i!=="*"&&i!=="?"&&i!=="+"&&d--,p="";break;default:t("Unknown state");break}}return n===T.ParamRegExp&&t(`Unfinished custom RegExp for param "${l}"`),a(),h(),o}const Be="[^/]+?",sn={sensitive:!1,strict:!1,start:!0,end:!0};var x=(function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e})(x||{});const an=/[.+*?^${}()[\]/\\]/g;function cn(e,t){const n=N({},sn,t),r=[];let o=n.start?"^":"";const u=[];for(const l of e){const p=l.length?[]:[x.Root];n.strict&&!l.length&&(o+="/");for(let a=0;a<l.length;a++){const c=l[a];let f=x.Segment+(n.sensitive?x.BonusCaseSensitive:0);if(c.type===K.Static)a||(o+="/"),o+=c.value.replace(an,"\\$&"),f+=x.Static;else if(c.type===K.Param){const{value:O,repeatable:C,optional:P,regexp:I}=c;u.push({name:O,repeatable:C,optional:P});const y=I||Be;if(y!==Be){f+=x.BonusCustomRegExp;try{`${y}`}catch(L){throw new Error(`Invalid custom RegExp for param "${O}" (${y}): `+L.message)}}let _=C?`((?:${y})(?:/(?:${y}))*)`:`(${y})`;a||(_=P&&l.length<2?`(?:/${_})`:"/"+_),P&&(_+="?"),o+=_,f+=x.Dynamic,P&&(f+=x.BonusOptional),C&&(f+=x.BonusRepeatable),y===".*"&&(f+=x.BonusWildcard)}p.push(f)}r.push(p)}if(n.strict&&n.end){const l=r.length-1;r[l][r[l].length-1]+=x.BonusStrict}n.strict||(o+="/?"),n.end?o+="$":n.strict&&!o.endsWith("/")&&(o+="(?:/|$)");const h=new RegExp(o,n.sensitive?"":"i");function d(l){const p=l.match(h),a={};if(!p)return null;for(let c=1;c<p.length;c++){const f=p[c]||"",O=u[c-1];a[O.name]=f&&O.repeatable?f.split("/"):f}return a}function i(l){let p="",a=!1;for(const c of e){(!a||!p.endsWith("/"))&&(p+="/"),a=!1;for(const f of c)if(f.type===K.Static)p+=f.value;else if(f.type===K.Param){const{value:O,repeatable:C,optional:P}=f,I=O in l?l[O]:"";if(k(I)&&!C)throw new Error(`Provided param "${O}" is an array but it is not repeatable (* or + modifiers)`);const y=k(I)?I.join("/"):I;if(!y)if(P)c.length<2&&(p.endsWith("/")?p=p.slice(0,-1):a=!0);else throw new Error(`Missing required param "${O}"`);p+=y}}return p||"/"}return{re:h,score:r,keys:u,parse:d,stringify:i}}function un(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===x.Static+x.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===x.Static+x.Segment?1:-1:0}function ct(e,t){let n=0;const r=e.score,o=t.score;for(;n<r.length&&n<o.length;){const u=un(r[n],o[n]);if(u)return u;n++}if(Math.abs(o.length-r.length)===1){if(Ve(r))return 1;if(Ve(o))return-1}return o.length-r.length}function Ve(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const ln={strict:!1,end:!0,sensitive:!1};function fn(e,t,n){const r=cn(on(e.path),n),o=N(r,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function hn(e,t){const n=[],r=new Map;t=be(ln,t);function o(a){return r.get(a)}function u(a,c,f){const O=!f,C=Ue(a);C.aliasOf=f&&f.record;const P=be(t,a),I=[C];if("alias"in a){const L=typeof a.alias=="string"?[a.alias]:a.alias;for(const q of L)I.push(Ue(N({},C,{components:f?f.record.components:C.components,path:q,aliasOf:f?f.record:C})))}let y,_;for(const L of I){const{path:q}=L;if(c&&q[0]!=="/"){const U=c.record.path,G=U[U.length-1]==="/"?"":"/";L.path=c.record.path+(q&&G+q)}if(y=fn(L,c,P),f?f.alias.push(y):(_=_||y,_!==y&&_.alias.push(y),O&&a.name&&!He(y)&&h(a.name)),ut(y)&&i(y),C.children){const U=C.children;for(let G=0;G<U.length;G++)u(U[G],y,f&&f.children[G])}f=f||y}return _?()=>{h(_)}:ee}function h(a){if(ot(a)){const c=r.get(a);c&&(r.delete(a),n.splice(n.indexOf(c),1),c.children.forEach(h),c.alias.forEach(h))}else{const c=n.indexOf(a);c>-1&&(n.splice(c,1),a.record.name&&r.delete(a.record.name),a.children.forEach(h),a.alias.forEach(h))}}function d(){return n}function i(a){const c=mn(a,n);n.splice(c,0,a),a.record.name&&!He(a)&&r.set(a.record.name,a)}function l(a,c){let f,O={},C,P;if("name"in a&&a.name){if(f=r.get(a.name),!f)throw z(w.MATCHER_NOT_FOUND,{location:a});P=f.record.name,O=N(Me(c.params,f.keys.filter(_=>!_.optional).concat(f.parent?f.parent.keys.filter(_=>_.optional):[]).map(_=>_.name)),a.params&&Me(a.params,f.keys.map(_=>_.name))),C=f.stringify(O)}else if(a.path!=null)C=a.path,f=n.find(_=>_.re.test(C)),f&&(O=f.parse(C),P=f.record.name);else{if(f=c.name?r.get(c.name):n.find(_=>_.re.test(c.path)),!f)throw z(w.MATCHER_NOT_FOUND,{location:a,currentLocation:c});P=f.record.name,O=N({},c.params,a.params),C=f.stringify(O)}const I=[];let y=f;for(;y;)I.unshift(y.record),y=y.parent;return{name:P,path:C,params:O,matched:I,meta:pn(I)}}e.forEach(a=>u(a));function p(){n.length=0,r.clear()}return{addRoute:u,resolve:l,removeRoute:h,clearRoutes:p,getRoutes:d,getRecordMatcher:o}}function Me(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Ue(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:dn(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function dn(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function He(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function pn(e){return e.reduce((t,n)=>N(t,n.meta),{})}function mn(e,t){let n=0,r=t.length;for(;n!==r;){const u=n+r>>1;ct(e,t[u])<0?r=u:n=u+1}const o=gn(e);return o&&(r=t.lastIndexOf(o,r-1)),r}function gn(e){let t=e;for(;t=t.parent;)if(ut(t)&&ct(e,t)===0)return t}function ut({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function je(e){const t=M(ae),n=M(Ce),r=B(()=>{const i=$(e.to);return t.resolve(i)}),o=B(()=>{const{matched:i}=r.value,{length:l}=i,p=i[l-1],a=n.matched;if(!p||!a.length)return-1;const c=a.findIndex(Q.bind(null,p));if(c>-1)return c;const f=qe(i[l-2]);return l>1&&qe(p)===f&&a[a.length-1].path!==f?a.findIndex(Q.bind(null,i[l-2])):c}),u=B(()=>o.value>-1&&yn(n.params,r.value.params)),h=B(()=>o.value>-1&&o.value===n.matched.length-1&&tt(n.params,r.value.params));function d(i={}){if(An(i)){const l=t[$(e.replace)?"replace":"push"]($(e.to)).catch(ee);return e.viewTransition&&typeof document!="undefined"&&"startViewTransition"in document&&document.startViewTransition(()=>l),l}return Promise.resolve()}return{route:r,href:B(()=>r.value.href),isActive:u,isExactActive:h,navigate:d}}function Rn(e){return e.length===1?e[0]:e}const vn=Fe({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:je,setup(e,{slots:t}){const n=yt(je(e)),{options:r}=M(ae),o=B(()=>({[Ke(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Ke(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const u=t.default&&Rn(t.default(n));return e.custom?u:Qe("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},u)}}}),En=vn;function An(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function yn(e,t){for(const n in t){const r=t[n],o=e[n];if(typeof r=="string"){if(r!==o)return!1}else if(!k(o)||o.length!==r.length||r.some((u,h)=>u.valueOf()!==o[h].valueOf()))return!1}return!0}function qe(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ke=(e,t,n)=>e!=null?e:t!=null?t:n,On=Fe({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=M(ye),o=B(()=>e.route||r.value),u=M(Le,0),h=B(()=>{let l=$(u);const{matched:p}=o.value;let a;for(;(a=p[l])&&!a.components;)l++;return l}),d=B(()=>o.value.matched[h.value]);pe(Le,B(()=>h.value+1)),pe(Ne,d),pe(ye,o);const i=gt();return Rt(()=>[i.value,d.value,e.name],([l,p,a],[c,f,O])=>{p&&(p.instances[a]=l,f&&f!==p&&l&&l===c&&(p.leaveGuards.size||(p.leaveGuards=f.leaveGuards),p.updateGuards.size||(p.updateGuards=f.updateGuards))),l&&p&&(!f||!Q(p,f)||!c)&&(p.enterCallbacks[a]||[]).forEach(C=>C(l))},{flush:"post"}),()=>{const l=o.value,p=e.name,a=d.value,c=a&&a.components[p];if(!c)return We(n.default,{Component:c,route:l});const f=a.props[p],O=f?f===!0?l.params:typeof f=="function"?f(l):f:null,P=Qe(c,N({},O,t,{onVnodeUnmounted:I=>{I.component.isUnmounted&&(a.instances[p]=null)},ref:i}));return We(n.default,{Component:P,route:l})||P}}});function We(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Nn=On;function Dn(e){const t=hn(e.routes,e),n=e.parseQuery||Yt,r=e.stringifyQuery||Ge,o=e.history,u=Z(),h=Z(),d=Z(),i=vt(H);let l=H;F&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const p=me.bind(null,s=>""+s),a=me.bind(null,Gt),c=me.bind(null,ne);function f(s,g){let m,R;return ot(s)?(m=t.getRecordMatcher(s),R=g):R=s,t.addRoute(R,m)}function O(s){const g=t.getRecordMatcher(s);g&&t.removeRoute(g)}function C(){return t.getRoutes().map(s=>s.record)}function P(s){return!!t.getRecordMatcher(s)}function I(s,g){if(g=N({},g||i.value),typeof s=="string"){const v=ge(n,s,g.path),b=t.resolve({path:v.path},g),X=o.createHref(v.fullPath);return N(v,b,{params:c(b.params),hash:ne(v.hash),redirectedFrom:void 0,href:X})}let m;if(s.path!=null)m=N({},s,{path:ge(n,s.path,g.path).path});else{const v=N({},s.params);for(const b in v)v[b]==null&&delete v[b];m=N({},s,{params:a(v)}),g.params=a(g.params)}const R=t.resolve(m,g),A=s.hash||"";R.params=p(c(R.params));const S=Bt(r,N({},s,{hash:Tt(A),path:R.path})),E=o.createHref(S);return N({fullPath:S,hash:A,query:r===Ge?Jt(s.query):s.query||{}},R,{redirectedFrom:void 0,href:E})}function y(s){return typeof s=="string"?ge(n,s,i.value.path):N({},s)}function _(s,g){if(l!==s)return z(w.NAVIGATION_CANCELLED,{from:g,to:s})}function L(s){return G(s)}function q(s){return L(N(y(s),{replace:!0}))}function U(s,g){const m=s.matched[s.matched.length-1];if(m&&m.redirect){const{redirect:R}=m;let A=typeof R=="function"?R(s,g):R;return typeof A=="string"&&(A=A.includes("?")||A.includes("#")?A=y(A):{path:A},A.params={}),N({query:s.query,hash:s.hash,params:A.path!=null?{}:s.params},A)}}function G(s,g){const m=l=I(s),R=i.value,A=s.state,S=s.force,E=s.replace===!0,v=U(m,R);if(v)return G(N(y(v),{state:typeof v=="object"?N({},A,v.state):A,force:S,replace:E}),g||m);const b=m;b.redirectedFrom=g;let X;return!S&&Vt(r,R,m)&&(X=z(w.NAVIGATION_DUPLICATED,{to:b,from:R}),Se(R,R,!0,!1)),(X?Promise.resolve(X):_e(b,R)).catch(D=>V(D)?V(D,w.NAVIGATION_GUARD_REDIRECT)?D:fe(D):le(D,b,R)).then(D=>{if(D){if(V(D,w.NAVIGATION_GUARD_REDIRECT))return G(N({replace:E},y(D.to),{state:typeof D.to=="object"?N({},A,D.to.state):A,force:S}),g||b)}else D=Ie(b,R,!0,E,A);return Pe(b,R,D),D})}function lt(s,g){const m=_(s,g);return m?Promise.reject(m):Promise.resolve()}function ce(s){const g=oe.values().next().value;return g&&typeof g.runWithContext=="function"?g.runWithContext(s):s()}function _e(s,g){let m;const[R,A,S]=Xt(s,g);m=ve(R.reverse(),"beforeRouteLeave",s,g);for(const v of R)v.leaveGuards.forEach(b=>{m.push(j(b,s,g))});const E=lt.bind(null,s,g);return m.push(E),W(m).then(()=>{m=[];for(const v of u.list())m.push(j(v,s,g));return m.push(E),W(m)}).then(()=>{m=ve(A,"beforeRouteUpdate",s,g);for(const v of A)v.updateGuards.forEach(b=>{m.push(j(b,s,g))});return m.push(E),W(m)}).then(()=>{m=[];for(const v of S)if(v.beforeEnter)if(k(v.beforeEnter))for(const b of v.beforeEnter)m.push(j(b,s,g));else m.push(j(v.beforeEnter,s,g));return m.push(E),W(m)}).then(()=>(s.matched.forEach(v=>v.enterCallbacks={}),m=ve(S,"beforeRouteEnter",s,g,ce),m.push(E),W(m))).then(()=>{m=[];for(const v of h.list())m.push(j(v,s,g));return m.push(E),W(m)}).catch(v=>V(v,w.NAVIGATION_CANCELLED)?v:Promise.reject(v))}function Pe(s,g,m){d.list().forEach(R=>ce(()=>R(s,g,m)))}function Ie(s,g,m,R,A){const S=_(s,g);if(S)return S;const E=g===H,v=F?history.state:{};m&&(R||E?o.replace(s.fullPath,N({scroll:E&&v&&v.scroll},A)):o.push(s.fullPath,A)),i.value=s,Se(s,g,m,E),fe()}let Y;function ft(){Y||(Y=o.listen((s,g,m)=>{if(!J.listening)return;const R=I(s),A=U(R,J.currentRoute.value);if(A){G(N(A,{replace:!0,force:!0}),R).catch(ee);return}l=R;const S=i.value;F&&Kt(De(S.fullPath,m.delta),ie()),_e(R,S).catch(E=>V(E,w.NAVIGATION_ABORTED|w.NAVIGATION_CANCELLED)?E:V(E,w.NAVIGATION_GUARD_REDIRECT)?(G(N(y(E.to),{force:!0}),R).then(v=>{V(v,w.NAVIGATION_ABORTED|w.NAVIGATION_DUPLICATED)&&!m.delta&&m.type===se.pop&&o.go(-1,!1)}).catch(ee),Promise.reject()):(m.delta&&o.go(-m.delta,!1),le(E,R,S))).then(E=>{E=E||Ie(R,S,!1),E&&(m.delta&&!V(E,w.NAVIGATION_CANCELLED)?o.go(-m.delta,!1):m.type===se.pop&&V(E,w.NAVIGATION_ABORTED|w.NAVIGATION_DUPLICATED)&&o.go(-1,!1)),Pe(R,S,E)}).catch(ee)}))}let ue=Z(),we=Z(),re;function le(s,g,m){fe(s);const R=we.list();return R.length?R.forEach(A=>A(s,g,m)):console.error(s),Promise.reject(s)}function ht(){return re&&i.value!==H?Promise.resolve():new Promise((s,g)=>{ue.add([s,g])})}function fe(s){return re||(re=!s,ft(),ue.list().forEach(([g,m])=>s?m(s):g()),ue.reset()),s}function Se(s,g,m,R){const{scrollBehavior:A}=e;if(!F||!A)return Promise.resolve();const S=!m&&Wt(De(s.fullPath,0))||(R||!m)&&history.state&&history.state.scroll||null;return At().then(()=>A(s,g,S)).then(E=>E&&qt(E)).catch(E=>le(E,s,g))}const he=s=>o.go(s);let de;const oe=new Set,J={currentRoute:i,listening:!0,addRoute:f,removeRoute:O,clearRoutes:t.clearRoutes,hasRoute:P,getRoutes:C,resolve:I,options:e,push:L,replace:q,go:he,back:()=>he(-1),forward:()=>he(1),beforeEach:u.add,beforeResolve:h.add,afterEach:d.add,onError:we.add,isReady:ht,install(s){s.component("RouterLink",En),s.component("RouterView",Nn),s.config.globalProperties.$router=J,Object.defineProperty(s.config.globalProperties,"$route",{enumerable:!0,get:()=>$(i)}),F&&!de&&i.value===H&&(de=!0,L(o.location).catch(R=>{}));const g={};for(const R in H)Object.defineProperty(g,R,{get:()=>i.value[R],enumerable:!0});s.provide(ae,J),s.provide(Ce,Et(g)),s.provide(ye,i);const m=s.unmount;oe.add(s),s.unmount=function(){oe.delete(s),oe.size<1&&(l=H,Y&&Y(),Y=null,i.value=H,de=!1,re=!1),m()}}};function W(s){return s.reduce((g,m)=>g.then(()=>ce(m)),Promise.resolve())}return J}function Gn(){return M(ae)}function Ln(e){return M(Ce)}export{In as NavigationFailureType,En as RouterLink,Nn as RouterView,H as START_LOCATION,Tn as createMemoryHistory,Dn as createRouter,hn as createRouterMatcher,xn as createWebHashHistory,tn as createWebHistory,V as isNavigationFailure,bn as loadRouteLocation,Ne as matchedRouteKey,wn as onBeforeRouteLeave,Sn as onBeforeRouteUpdate,Yt as parseQuery,Ce as routeLocationKey,ae as routerKey,ye as routerViewLocationKey,Ge as stringifyQuery,je as useLink,Ln as useRoute,Gn as useRouter,Le as viewDepthKey};
|
package/dist/uni/index.html
CHANGED
|
@@ -20,14 +20,35 @@
|
|
|
20
20
|
window.__UNI_FEATURE_PAGES__ = false;
|
|
21
21
|
window.getApp = function () {};
|
|
22
22
|
</script>
|
|
23
|
+
<style>
|
|
24
|
+
body::-webkit-scrollbar {
|
|
25
|
+
width: 3px;
|
|
26
|
+
height: 3px;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
body::-webkit-scrollbar-track {
|
|
30
|
+
background: transparent;
|
|
31
|
+
border-radius: 3px;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
body::-webkit-scrollbar-thumb {
|
|
35
|
+
background: rgba(0, 0, 0, 0.2);
|
|
36
|
+
border-radius: 3px;
|
|
37
|
+
transition: all 0.3s ease;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
body::-webkit-scrollbar-thumb:hover {
|
|
41
|
+
background: rgba(0, 0, 0, 0.3);
|
|
42
|
+
}
|
|
43
|
+
</style>
|
|
23
44
|
<title></title>
|
|
24
45
|
<!--preload-links-->
|
|
25
46
|
<!--app-context-->
|
|
26
|
-
<script type="module" crossorigin src="./assets/index-
|
|
47
|
+
<script type="module" crossorigin src="./assets/index-BBaSDF4L.js"></script>
|
|
27
48
|
<link rel="modulepreload" crossorigin href="./assets/vue-BK7aLblh.js">
|
|
28
49
|
<link rel="modulepreload" crossorigin href="./assets/@dcloudio-uni-shared-Cc-Ey1iB.js">
|
|
29
|
-
<link rel="modulepreload" crossorigin href="./assets/@dcloudio-uni-h5-vue-
|
|
30
|
-
<link rel="modulepreload" crossorigin href="./assets/vue-router-
|
|
50
|
+
<link rel="modulepreload" crossorigin href="./assets/@dcloudio-uni-h5-vue-Dxv_ts1w.js">
|
|
51
|
+
<link rel="modulepreload" crossorigin href="./assets/vue-router-C2iVG-hf.js">
|
|
31
52
|
</head>
|
|
32
53
|
<body>
|
|
33
54
|
<div id="app"><!--app-html--></div>
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vtj/pro",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.13.
|
|
4
|
+
"version": "0.13.39",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"低代码引擎",
|
|
7
7
|
"LowCode Engine",
|
|
@@ -21,22 +21,22 @@
|
|
|
21
21
|
"license": "MIT",
|
|
22
22
|
"type": "module",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@vtj/core": "~0.13.
|
|
25
|
-
"@vtj/
|
|
26
|
-
"@vtj/
|
|
27
|
-
"@vtj/materials": "~0.13.
|
|
28
|
-
"@vtj/
|
|
29
|
-
"@vtj/
|
|
24
|
+
"@vtj/core": "~0.13.39",
|
|
25
|
+
"@vtj/designer": "~0.13.39",
|
|
26
|
+
"@vtj/local": "~0.13.39",
|
|
27
|
+
"@vtj/materials": "~0.13.39",
|
|
28
|
+
"@vtj/uni": "~0.13.39",
|
|
29
|
+
"@vtj/renderer": "~0.13.39"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"vite-plugin-vue-devtools": "~8.0.2",
|
|
33
33
|
"vue": "~3.5.5",
|
|
34
34
|
"vue-router": "~4.6.0",
|
|
35
|
-
"@vtj/
|
|
36
|
-
"@vtj/icons": "~0.13.
|
|
37
|
-
"@vtj/
|
|
38
|
-
"@vtj/
|
|
39
|
-
"@vtj/
|
|
35
|
+
"@vtj/cli": "~0.12.18",
|
|
36
|
+
"@vtj/icons": "~0.13.39",
|
|
37
|
+
"@vtj/charts": "~0.13.39",
|
|
38
|
+
"@vtj/ui": "~0.13.39",
|
|
39
|
+
"@vtj/utils": "~0.13.39"
|
|
40
40
|
},
|
|
41
41
|
"exports": {
|
|
42
42
|
"./vite": {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var He=Object.defineProperty,je=Object.defineProperties;var Xe=Object.getOwnPropertyDescriptors;var q=Object.getOwnPropertySymbols;var ye=Object.prototype.hasOwnProperty,we=Object.prototype.propertyIsEnumerable;var ge=(e,t,n)=>t in e?He(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,B=(e,t)=>{for(var n in t||(t={}))ye.call(t,n)&&ge(e,n,t[n]);if(q)for(var n of q(t))we.call(t,n)&&ge(e,n,t[n]);return e},Q=(e,t)=>je(e,Xe(t));var J=(e,t)=>{var n={};for(var o in e)ye.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&q)for(var o of q(e))t.indexOf(o)<0&&we.call(e,o)&&(n[o]=e[o]);return n};import{s as T,w as De,r as ne,b as W,e as $,f as I,g as ue,h as Fe,i as te,j as be,u as le,k as G,l as ae,n as ce,m as de,t as Ye,p as Qe,q as O,v as Re,x as Je}from"./vue-CAMRmZ-8.js";var Ue=Object.defineProperty,Ge=Object.defineProperties,Ke=Object.getOwnPropertyDescriptors,Oe=Object.getOwnPropertySymbols,qe=Object.prototype.hasOwnProperty,Ze=Object.prototype.propertyIsEnumerable,Se=(e,t,n)=>t in e?Ue(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,et=(e,t)=>{for(var n in t||(t={}))qe.call(t,n)&&Se(e,n,t[n]);if(Oe)for(var n of Oe(t))Ze.call(t,n)&&Se(e,n,t[n]);return e},tt=(e,t)=>Ge(e,Ke(t));function tn(e,t){var n;const o=T();return De(()=>{o.value=e()},tt(et({},t),{flush:(n=void 0)!=null?n:"sync"})),ne(o)}var _e;const oe=typeof window!="undefined",nt=e=>typeof e!="undefined",se=e=>typeof e=="function",ot=e=>typeof e=="string",nn=(e,t,n)=>Math.min(n,Math.max(t,e)),j=()=>{},rt=oe&&((_e=window==null?void 0:window.navigator)==null?void 0:_e.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function X(e){return typeof e=="function"?e():le(e)}function ke(e,t){function n(...o){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(r).catch(i)})}return n}function it(e,t={}){let n,o,r=j;const i=l=>{clearTimeout(l),r(),r=j};return l=>{const c=X(e),d=X(t.maxWait);return n&&i(n),c<=0||d!==void 0&&d<=0?(o&&(i(o),o=null),Promise.resolve(l())):new Promise((f,u)=>{r=t.rejectOnCancel?u:f,d&&!o&&(o=setTimeout(()=>{n&&i(n),o=null,f(l())},d)),n=setTimeout(()=>{o&&i(o),o=null,f(l())},c)})}}function st(e,t=!0,n=!0,o=!1){let r=0,i,s=!0,l=j,c;const d=()=>{i&&(clearTimeout(i),i=void 0,l(),l=j)};return u=>{const a=X(e),v=Date.now()-r,m=()=>c=u();return d(),a<=0?(r=Date.now(),m()):(v>a&&(n||!s)?(r=Date.now(),m()):t&&(c=new Promise((y,w)=>{l=o?w:y,i=setTimeout(()=>{r=Date.now(),s=!0,y(m()),d()},Math.max(0,a-v))})),!n&&!i&&(i=setTimeout(()=>s=!0,a)),s=!1,c)}}function ut(e){return e}function lt(e,t){let n,o,r;const i=W(!0),s=()=>{i.value=!0,r()};$(e,s,{flush:"sync"});const l=se(t)?t:t.get,c=se(t)?void 0:t.set,d=de((f,u)=>(o=f,r=u,{get(){return i.value&&(n=l(),i.value=!1),o(),n},set(a){c==null||c(a)}}));return Object.isExtensible(d)&&(d.trigger=s),d}function K(e){return ue()?(Fe(e),!0):!1}function at(e){if(!te(e))return be(e);const t=new Proxy({},{get(n,o,r){return le(Reflect.get(e.value,o,r))},set(n,o,r){return te(e.value[o])&&!te(r)?e.value[o].value=r:e.value[o]=r,!0},deleteProperty(n,o){return Reflect.deleteProperty(e.value,o)},has(n,o){return Reflect.has(e.value,o)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return be(t)}function on(e){return at(I(e))}function ct(e,t=200,n={}){return ke(it(t,n),e)}function rn(e,t=200,n={}){const o=W(e.value),r=ct(()=>{o.value=e.value},t,n);return $(e,()=>r()),o}function sn(e,t=200,n=!1,o=!0,r=!1){return ke(st(t,n,o,r),e)}function ze(e,t=!0){G()?ae(e):t?e():ce(e)}function un(e,t,n={}){const{immediate:o=!0}=n,r=W(!1);let i=null;function s(){i&&(clearTimeout(i),i=null)}function l(){r.value=!1,s()}function c(...d){s(),r.value=!0,i=setTimeout(()=>{r.value=!1,i=null,e(...d)},X(t))}return o&&(r.value=!0,oe&&c()),K(l),{isPending:ne(r),start:c,stop:l}}function R(e){var t;const n=X(e);return(t=n==null?void 0:n.$el)!=null?t:n}const H=oe?window:void 0,dt=oe?window.document:void 0;function V(...e){let t,n,o,r;if(ot(e[0])||Array.isArray(e[0])?([n,o,r]=e,t=H):[t,n,o,r]=e,!t)return j;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const i=[],s=()=>{i.forEach(f=>f()),i.length=0},l=(f,u,a,v)=>(f.addEventListener(u,a,v),()=>f.removeEventListener(u,a,v)),c=$(()=>[R(t),X(r)],([f,u])=>{s(),f&&i.push(...n.flatMap(a=>o.map(v=>l(f,a,v,u))))},{immediate:!0,flush:"post"}),d=()=>{c(),s()};return K(d),d}let Ee=!1;function ln(e,t,n={}){const{window:o=H,ignore:r=[],capture:i=!0,detectIframe:s=!1}=n;if(!o)return;rt&&!Ee&&(Ee=!0,Array.from(o.document.body.children).forEach(a=>a.addEventListener("click",j)));let l=!0;const c=a=>r.some(v=>{if(typeof v=="string")return Array.from(o.document.querySelectorAll(v)).some(m=>m===a.target||a.composedPath().includes(m));{const m=R(v);return m&&(a.target===m||a.composedPath().includes(m))}}),f=[V(o,"click",a=>{const v=R(e);if(!(!v||v===a.target||a.composedPath().includes(v))){if(a.detail===0&&(l=!c(a)),!l){l=!0;return}t(a)}},{passive:!0,capture:i}),V(o,"pointerdown",a=>{const v=R(e);v&&(l=!a.composedPath().includes(v)&&!c(a))},{passive:!0}),s&&V(o,"blur",a=>{var v;const m=R(e);((v=o.document.activeElement)==null?void 0:v.tagName)==="IFRAME"&&!(m!=null&&m.contains(o.document.activeElement))&&t(a)})].filter(Boolean);return()=>f.forEach(a=>a())}function an(e={}){var t;const{window:n=H}=e,o=(t=e.document)!=null?t:n==null?void 0:n.document,r=lt(()=>null,()=>o==null?void 0:o.activeElement);return n&&(V(n,"blur",i=>{i.relatedTarget===null&&r.trigger()},!0),V(n,"focus",r.trigger,!0)),r}function fe(e,t=!1){const n=W(),o=()=>n.value=!!e();return o(),ze(o,t),n}function ft(e){return JSON.parse(JSON.stringify(e))}const xe=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},Pe="__vueuse_ssr_handlers__";xe[Pe]=xe[Pe]||{};function cn(e,t,{window:n=H,initialValue:o=""}={}){const r=W(o),i=I(()=>{var s;return R(t)||((s=n==null?void 0:n.document)==null?void 0:s.documentElement)});return $([i,()=>X(e)],([s,l])=>{var c;if(s&&n){const d=(c=n.getComputedStyle(s).getPropertyValue(l))==null?void 0:c.trim();r.value=d||o}},{immediate:!0}),$(r,s=>{var l;(l=i.value)!=null&&l.style&&i.value.style.setProperty(X(e),s)}),r}function dn({document:e=dt}={}){if(!e)return W("visible");const t=W(e.visibilityState);return V(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var $e=Object.getOwnPropertySymbols,vt=Object.prototype.hasOwnProperty,pt=Object.prototype.propertyIsEnumerable,mt=(e,t)=>{var n={};for(var o in e)vt.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&$e)for(var o of $e(e))t.indexOf(o)<0&&pt.call(e,o)&&(n[o]=e[o]);return n};function ht(e,t,n={}){const o=n,{window:r=H}=o,i=mt(o,["window"]);let s;const l=fe(()=>r&&"ResizeObserver"in r),c=()=>{s&&(s.disconnect(),s=void 0)},d=$(()=>R(e),u=>{c(),l.value&&r&&u&&(s=new ResizeObserver(t),s.observe(u,i))},{immediate:!0,flush:"post"}),f=()=>{c(),d()};return K(f),{isSupported:l,stop:f}}function fn(e,t={width:0,height:0},n={}){const{window:o=H,box:r="content-box"}=n,i=I(()=>{var c,d;return(d=(c=R(e))==null?void 0:c.namespaceURI)==null?void 0:d.includes("svg")}),s=W(t.width),l=W(t.height);return ht(e,([c])=>{const d=r==="border-box"?c.borderBoxSize:r==="content-box"?c.contentBoxSize:c.devicePixelContentBoxSize;if(o&&i.value){const f=R(e);if(f){const u=o.getComputedStyle(f);s.value=parseFloat(u.width),l.value=parseFloat(u.height)}}else if(d){const f=Array.isArray(d)?d:[d];s.value=f.reduce((u,{inlineSize:a})=>u+a,0),l.value=f.reduce((u,{blockSize:a})=>u+a,0)}else s.value=c.contentRect.width,l.value=c.contentRect.height},n),$(()=>R(e),c=>{s.value=c?t.width:0,l.value=c?t.height:0}),{width:s,height:l}}function vn(e,t,n={}){const{root:o,rootMargin:r="0px",threshold:i=.1,window:s=H}=n,l=fe(()=>s&&"IntersectionObserver"in s);let c=j;const d=l.value?$(()=>({el:R(e),root:R(o)}),({el:u,root:a})=>{if(c(),!u)return;const v=new IntersectionObserver(t,{root:a,rootMargin:r,threshold:i});v.observe(u),c=()=>{v.disconnect(),c=j}},{immediate:!0,flush:"post"}):j,f=()=>{c(),d()};return K(f),{isSupported:l,stop:f}}var Ce=Object.getOwnPropertySymbols,gt=Object.prototype.hasOwnProperty,yt=Object.prototype.propertyIsEnumerable,wt=(e,t)=>{var n={};for(var o in e)gt.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&Ce)for(var o of Ce(e))t.indexOf(o)<0&&yt.call(e,o)&&(n[o]=e[o]);return n};function pn(e,t,n={}){const o=n,{window:r=H}=o,i=wt(o,["window"]);let s;const l=fe(()=>r&&"MutationObserver"in r),c=()=>{s&&(s.disconnect(),s=void 0)},d=$(()=>R(e),u=>{c(),l.value&&r&&u&&(s=new MutationObserver(t),s.observe(u,i))},{immediate:!0}),f=()=>{c(),d()};return K(f),{isSupported:l,stop:f}}var Me;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(Me||(Me={}));var bt=Object.defineProperty,Te=Object.getOwnPropertySymbols,Ot=Object.prototype.hasOwnProperty,St=Object.prototype.propertyIsEnumerable,Ae=(e,t,n)=>t in e?bt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_t=(e,t)=>{for(var n in t||(t={}))Ot.call(t,n)&&Ae(e,n,t[n]);if(Te)for(var n of Te(t))St.call(t,n)&&Ae(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]};_t({linear:ut},Et);function mn(e,t,n,o={}){var r,i,s;const{clone:l=!1,passive:c=!1,eventName:d,deep:f=!1,defaultValue:u}=o,a=G(),v=n||(a==null?void 0:a.emit)||((r=a==null?void 0:a.$emit)==null?void 0:r.bind(a))||((s=(i=a==null?void 0:a.proxy)==null?void 0:i.$emit)==null?void 0:s.bind(a==null?void 0:a.proxy));let m=d;t||(t="modelValue"),m=d||m||`update:${t.toString()}`;const y=h=>l?se(l)?l(h):ft(h):h,w=()=>nt(e[t])?y(e[t]):u;if(c){const h=w(),_=W(h);return $(()=>e[t],S=>_.value=y(S)),$(_,S=>{(S!==e[t]||f)&&v(m,S)},{deep:f}),_}else return I({get(){return w()},set(h){v(m,h)}})}function hn({window:e=H}={}){if(!e)return W(!1);const t=W(e.document.hasFocus());return V(e,"blur",()=>{t.value=!1}),V(e,"focus",()=>{t.value=!0}),t}function gn(e={}){const{window:t=H,initialWidth:n=1/0,initialHeight:o=1/0,listenOrientation:r=!0,includeScrollbar:i=!0}=e,s=W(n),l=W(o),c=()=>{t&&(i?(s.value=t.innerWidth,l.value=t.innerHeight):(s.value=t.document.documentElement.clientWidth,l.value=t.document.documentElement.clientHeight))};return c(),ze(c),V("resize",c,{passive:!0}),r&&V("orientationchange",c,{passive:!0}),{width:s,height:l}}function ve(e,t){return ue()?(Fe(e,t),!0):!1}const ie=new WeakMap,xt=(...e)=>{var t;const n=e[0],o=(t=G())===null||t===void 0?void 0:t.proxy,r=o!=null?o:ue();if(r==null&&!Re())throw new Error("injectLocal must be called in setup");return r&&ie.has(r)&&n in ie.get(r)?ie.get(r)[n]:Je(...e)},pe=typeof window!="undefined"&&typeof document!="undefined";typeof WorkerGlobalScope!="undefined"&&globalThis instanceof WorkerGlobalScope;const Pt=e=>e!=null,$t=Object.prototype.toString,Ct=e=>$t.call(e)==="[object Object]",Mt=()=>{};function me(...e){if(e.length!==1)return Ye(...e);const t=e[0];return typeof t=="function"?ne(de(()=>({get:t,set:Mt}))):W(t)}function Tt(e,t){function n(...o){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(r).catch(i)})}return n}const Ne=e=>e();function At(e=Ne,t={}){const{initialState:n="active"}=t,o=me(n==="active");function r(){o.value=!1}function i(){o.value=!0}const s=(...l)=>{o.value&&e(...l)};return{isActive:ne(o),pause:r,resume:i,eventFilter:s}}function Ie(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function U(e){return Array.isArray(e)?e:[e]}function It(e){return G()}function Wt(e,t,n={}){const i=n,{eventFilter:o=Ne}=i,r=J(i,["eventFilter"]);return $(e,Tt(o,t),r)}function Dt(e,t,n={}){const f=n,{eventFilter:o,initialState:r="active"}=f,i=J(f,["eventFilter","initialState"]),{eventFilter:s,pause:l,resume:c,isActive:d}=At(o,{initialState:r});return{stop:Wt(e,t,Q(B({},i),{eventFilter:s})),pause:l,resume:c,isActive:d}}const Ft=Dt;function Rt(e,t={}){if(!te(e))return Qe(e);const n=Array.isArray(e.value)?Array.from({length:e.value.length}):{};for(const o in e.value)n[o]=de(()=>({get(){return e.value[o]},set(r){var i;if(!((i=O(t.replaceRef))!==null&&i!==void 0)||i)if(Array.isArray(e.value)){const s=[...e.value];s[o]=r,e.value=s}else{const s=Q(B({},e.value),{[o]:r});Object.setPrototypeOf(s,Object.getPrototypeOf(e.value)),e.value=s}else e.value[o]=r}}));return n}function re(e,t=!0,n){It()?ae(e,n):t?e():ce(e)}function kt(e,t,n){return $(e,t,Q(B({},n),{immediate:!0}))}const k=pe?window:void 0,zt=pe?window.document:void 0;function L(e){var t;const n=O(e);return(t=n==null?void 0:n.$el)!==null&&t!==void 0?t:n}function z(...e){const t=(o,r,i,s)=>(o.addEventListener(r,i,s),()=>o.removeEventListener(r,i,s)),n=I(()=>{const o=U(O(e[0])).filter(r=>r!=null);return o.every(r=>typeof r!="string")?o:void 0});return kt(()=>{var o,r;return[(o=(r=n.value)===null||r===void 0?void 0:r.map(i=>L(i)))!==null&&o!==void 0?o:[k].filter(i=>i!=null),U(O(n.value?e[1]:e[0])),U(le(n.value?e[2]:e[1])),O(n.value?e[3]:e[2])]},([o,r,i,s],l,c)=>{if(!(o!=null&&o.length)||!(r!=null&&r.length)||!(i!=null&&i.length))return;const d=Ct(s)?B({},s):s,f=o.flatMap(u=>r.flatMap(a=>i.map(v=>t(u,a,v,d))));c(()=>{f.forEach(u=>u())})},{flush:"post"})}function Nt(){const e=T(!1),t=G();return t&&ae(()=>{e.value=!0},t),e}function he(e){const t=Nt();return I(()=>(t.value,!!e()))}function Be(e,t,n={}){const u=n,{window:o=k}=u,r=J(u,["window"]);let i;const s=he(()=>o&&"MutationObserver"in o),l=()=>{i&&(i.disconnect(),i=void 0)},c=$(I(()=>{const a=U(O(e)).map(L).filter(Pt);return new Set(a)}),a=>{l(),s.value&&a.size&&(i=new MutationObserver(t),a.forEach(v=>i.observe(v,r)))},{immediate:!0,flush:"post"}),d=()=>i==null?void 0:i.takeRecords(),f=()=>{c(),l()};return ve(f),{isSupported:s,stop:f,takeRecords:d}}const Bt=Symbol("vueuse-ssr-width");function Lt(){const e=Re()?xt(Bt,null):null;return typeof e=="number"?e:void 0}function Vt(e,t={}){const{window:n=k,ssrWidth:o=Lt()}=t,r=he(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function"),i=T(typeof o=="number"),s=T(),l=T(!1),c=d=>{l.value=d.matches};return De(()=>{if(i.value){i.value=!r.value,l.value=O(e).split(",").some(d=>{const f=d.includes("not all"),u=d.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),a=d.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let v=!!(u||a);return u&&v&&(v=o>=Ie(u[1])),a&&v&&(v=o<=Ie(a[1])),f?!v:v});return}r.value&&(s.value=n.matchMedia(O(e)),l.value=s.value.matches)}),z(s,"change",c,{passive:!0}),I(()=>l.value)}const Z=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},ee="__vueuse_ssr_handlers__",Ht=jt();function jt(){return ee in Z||(Z[ee]=Z[ee]||{}),Z[ee]}function Le(e,t){return Ht[e]||t}function Xt(e){return Vt("(prefers-color-scheme: dark)",e)}function Yt(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 Qt={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 Jt(e,t,n,o={}){var r;const{flush:i="pre",deep:s=!0,listenToStorageChanges:l=!0,writeDefaults:c=!0,mergeDefaults:d=!1,shallow:f,window:u=k,eventFilter:a,onError:v=g=>{console.error(g)},initOnMounted:m}=o,y=(f?T:W)(typeof t=="function"?t():t),w=I(()=>O(e));if(!n)try{n=Le("getDefaultStorage",()=>k==null?void 0:k.localStorage)()}catch(g){v(g)}if(!n)return y;const h=O(t),_=Yt(h),S=(r=o.serializer)!==null&&r!==void 0?r:Qt[_],{pause:C,resume:x}=Ft(y,g=>M(g),{flush:i,deep:s,eventFilter:a});$(w,()=>A(),{flush:i});let F=!1;const p=g=>{m&&!F||A(g)},b=g=>{m&&!F||Y(g)};u&&l&&(n instanceof Storage?z(u,"storage",p,{passive:!0}):z(u,We,b)),m?re(()=>{F=!0,A()}):A();function E(g,D){if(u){const N={key:w.value,oldValue:g,newValue:D,storageArea:n};u.dispatchEvent(n instanceof Storage?new StorageEvent("storage",N):new CustomEvent(We,{detail:N}))}}function M(g){try{const D=n.getItem(w.value);if(g==null)E(D,null),n.removeItem(w.value);else{const N=S.write(g);D!==N&&(n.setItem(w.value,N),E(D,N))}}catch(D){v(D)}}function P(g){const D=g?g.newValue:n.getItem(w.value);if(D==null)return c&&h!=null&&n.setItem(w.value,S.write(h)),h;if(!g&&d){const N=S.read(D);return typeof d=="function"?d(N,h):_==="object"&&!Array.isArray(N)?B(B({},h),N):N}else return typeof D!="string"?D:S.read(D)}function A(g){if(!(g&&g.storageArea!==n)){if(g&&g.key==null){y.value=h;return}if(!(g&&g.key!==w.value)){C();try{const D=S.write(y.value);(g===void 0||(g==null?void 0:g.newValue)!==D)&&(y.value=P(g))}catch(D){v(D)}finally{g?ce(x):x()}}}}function Y(g){A(g.detail)}return y}const Ut="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function Gt(e={}){const{selector:t="html",attribute:n="class",initialValue:o="auto",window:r=k,storage:i,storageKey:s="vueuse-color-scheme",listenToStorageChanges:l=!0,storageRef:c,emitAuto:d,disableTransition:f=!0}=e,u=B({auto:"",light:"light",dark:"dark"},e.modes||{}),a=Xt({window:r}),v=I(()=>a.value?"dark":"light"),m=c||(s==null?me(o):Jt(s,o,i,{window:r,listenToStorageChanges:l})),y=I(()=>m.value==="auto"?v.value:m.value),w=Le("updateHTMLAttrs",(C,x,F)=>{const p=typeof C=="string"?r==null?void 0:r.document.querySelector(C):L(C);if(!p)return;const b=new Set,E=new Set;let M=null;if(x==="class"){const A=F.split(/\s/g);Object.values(u).flatMap(Y=>(Y||"").split(/\s/g)).filter(Boolean).forEach(Y=>{A.includes(Y)?b.add(Y):E.add(Y)})}else M={key:x,value:F};if(b.size===0&&E.size===0&&M===null)return;let P;f&&(P=r.document.createElement("style"),P.appendChild(document.createTextNode(Ut)),r.document.head.appendChild(P));for(const A of b)p.classList.add(A);for(const A of E)p.classList.remove(A);M&&p.setAttribute(M.key,M.value),f&&(r.getComputedStyle(P).opacity,document.head.removeChild(P))});function h(C){var x;w(t,n,(x=u[C])!==null&&x!==void 0?x:C)}function _(C){e.onChanged?e.onChanged(C,h):h(C)}$(y,_,{flush:"post",immediate:!0}),re(()=>_(y.value));const S=I({get(){return d?m.value:y.value},set(C){m.value=C}});return Object.assign(S,{store:m,system:v,state:y})}function yn(e={}){const{valueDark:t="dark",valueLight:n=""}=e,o=Gt(Q(B({},e),{onChanged:(i,s)=>{var l;e.onChanged?(l=e.onChanged)===null||l===void 0||l.call(e,i==="dark",s,i):s(i)},modes:{dark:t,light:n}})),r=I(()=>o.system.value);return I({get(){return o.value==="dark"},set(i){const s=i?"dark":"light";r.value===s?o.value="auto":o.value=s}})}function wn(e,t={}){var n;const{pointerTypes:o,preventDefault:r,stopPropagation:i,exact:s,onMove:l,onEnd:c,onStart:d,initialValue:f,axis:u="both",draggingElement:a=k,containerElement:v,handle:m=e,buttons:y=[0]}=t,w=W((n=O(f))!==null&&n!==void 0?n:{x:0,y:0}),h=W(),_=p=>o?o.includes(p.pointerType):!0,S=p=>{O(r)&&p.preventDefault(),O(i)&&p.stopPropagation()},C=p=>{var b;if(!O(y).includes(p.button)||O(t.disabled)||!_(p)||O(s)&&p.target!==O(e))return;const E=O(v),M=E==null||(b=E.getBoundingClientRect)===null||b===void 0?void 0:b.call(E),P=O(e).getBoundingClientRect(),A={x:p.clientX-(E?P.left-M.left+E.scrollLeft:P.left),y:p.clientY-(E?P.top-M.top+E.scrollTop:P.top)};(d==null?void 0:d(A,p))!==!1&&(h.value=A,S(p))},x=p=>{if(O(t.disabled)||!_(p)||!h.value)return;const b=O(v),E=O(e).getBoundingClientRect();let{x:M,y:P}=w.value;(u==="x"||u==="both")&&(M=p.clientX-h.value.x,b&&(M=Math.min(Math.max(0,M),b.scrollWidth-E.width))),(u==="y"||u==="both")&&(P=p.clientY-h.value.y,b&&(P=Math.min(Math.max(0,P),b.scrollHeight-E.height))),w.value={x:M,y:P},l==null||l(w.value,p),S(p)},F=p=>{O(t.disabled)||!_(p)||h.value&&(h.value=void 0,c==null||c(w.value,p),S(p))};if(pe){const p=()=>{var b;return{capture:(b=t.capture)!==null&&b!==void 0?b:!0,passive:!O(r)}};z(m,"pointerdown",C,p),z(a,"pointermove",x,p),z(a,"pointerup",F,p)}return Q(B({},Rt(w)),{position:w,isDragging:I(()=>!!h.value),style:I(()=>`left:${w.value.x}px;top:${w.value.y}px;`)})}function Ve(e,t,n={}){const f=n,{window:o=k}=f,r=J(f,["window"]);let i;const s=he(()=>o&&"ResizeObserver"in o),l=()=>{i&&(i.disconnect(),i=void 0)},c=$(I(()=>{const u=O(e);return Array.isArray(u)?u.map(a=>L(a)):[L(u)]}),u=>{if(l(),s.value&&o){i=new ResizeObserver(t);for(const a of u)a&&i.observe(a,r)}},{immediate:!0,flush:"post"}),d=()=>{l(),c()};return ve(d),{isSupported:s,stop:d}}function bn(e,t={width:0,height:0},n={}){const{window:o=k,box:r="content-box"}=n,i=I(()=>{var u;return(u=L(e))===null||u===void 0||(u=u.namespaceURI)===null||u===void 0?void 0:u.includes("svg")}),s=T(t.width),l=T(t.height),{stop:c}=Ve(e,([u])=>{const a=r==="border-box"?u.borderBoxSize:r==="content-box"?u.contentBoxSize:u.devicePixelContentBoxSize;if(o&&i.value){const v=L(e);if(v){const m=v.getBoundingClientRect();s.value=m.width,l.value=m.height}}else if(a){const v=U(a);s.value=v.reduce((m,{inlineSize:y})=>m+y,0),l.value=v.reduce((m,{blockSize:y})=>m+y,0)}else s.value=u.contentRect.width,l.value=u.contentRect.height},n);re(()=>{const u=L(e);u&&(s.value="offsetWidth"in u?u.offsetWidth:t.width,l.value="offsetHeight"in u?u.offsetHeight:t.height)});const d=$(()=>L(e),u=>{s.value=u?t.width:0,l.value=u?t.height:0});function f(){c(),d()}return{width:s,height:l,stop:f}}const Kt={page:e=>[e.pageX,e.pageY],client:e=>[e.clientX,e.clientY],screen:e=>[e.screenX,e.screenY],movement:e=>e instanceof MouseEvent?[e.movementX,e.movementY]:null};function qt(e={}){const{type:t="page",touch:n=!0,resetOnTouchEnds:o=!1,initialValue:r={x:0,y:0},window:i=k,target:s=i,scroll:l=!0,eventFilter:c}=e;let d=null,f=0,u=0;const a=T(r.x),v=T(r.y),m=T(null),y=typeof t=="function"?t:Kt[t],w=p=>{const b=y(p);d=p,b&&([a.value,v.value]=b,m.value="mouse"),i&&(f=i.scrollX,u=i.scrollY)},h=p=>{if(p.touches.length>0){const b=y(p.touches[0]);b&&([a.value,v.value]=b,m.value="touch")}},_=()=>{if(!d||!i)return;const p=y(d);d instanceof MouseEvent&&p&&(a.value=p[0]+i.scrollX-f,v.value=p[1]+i.scrollY-u)},S=()=>{a.value=r.x,v.value=r.y},C=c?p=>c(()=>w(p),{}):p=>w(p),x=c?p=>c(()=>h(p),{}):p=>h(p),F=c?()=>c(()=>_(),{}):()=>_();if(s){const p={passive:!0};z(s,["mousemove","dragover"],C,p),n&&t!=="movement"&&(z(s,["touchstart","touchmove"],x,p),o&&z(s,"touchend",S,p)),l&&t==="page"&&z(i,"scroll",F,p)}return{x:a,y:v,sourceType:m}}function On(e,t={}){const{windowResize:n=!0,windowScroll:o=!0,handleOutside:r=!0,window:i=k}=t,s=t.type||"page",{x:l,y:c,sourceType:d}=qt(t),f=T(e!=null?e:i==null?void 0:i.document.body),u=T(0),a=T(0),v=T(0),m=T(0),y=T(0),w=T(0),h=T(!0);function _(){if(!i)return;const x=L(f);if(!(!x||!(x instanceof Element)))for(const F of x.getClientRects()){const{left:p,top:b,width:E,height:M}=F;v.value=p+(s==="page"?i.pageXOffset:0),m.value=b+(s==="page"?i.pageYOffset:0),y.value=M,w.value=E;const P=l.value-v.value,A=c.value-m.value;if(h.value=E===0||M===0||P<0||A<0||P>E||A>M,(r||!h.value)&&(u.value=P,a.value=A),!h.value)break}}const S=[];function C(){S.forEach(x=>x()),S.length=0}if(re(()=>{_()}),i){const{stop:x}=Ve(f,_),{stop:F}=Be(f,_,{attributeFilter:["style","class"]}),p=$([f,l,c],_);S.push(x,F,p),z(document,"mouseleave",()=>h.value=!0,{passive:!0}),o&&S.push(z("scroll",_,{capture:!0,passive:!0})),n&&S.push(z("resize",_,{passive:!0}))}return{x:l,y:c,sourceType:d,elementX:u,elementY:a,elementPositionX:v,elementPositionY:m,elementHeight:y,elementWidth:w,isOutside:h,stop:C}}function Sn(e=null,t={}){var n,o;const{document:r=zt,restoreOnUnmount:i=u=>u}=t,s=(n=r==null?void 0:r.title)!==null&&n!==void 0?n:"",l=me((o=e!=null?e:r==null?void 0:r.title)!==null&&o!==void 0?o:null),c=!!(e&&typeof e=="function");function d(u){if(!("titleTemplate"in t))return u;const a=t.titleTemplate||"%s";return typeof a=="function"?a(u):O(a).replace(/%s/g,u)}if($(l,(u,a)=>{u!==a&&r&&(r.title=d(u!=null?u:""))},{immediate:!0}),t.observe&&!t.titleTemplate&&r&&!c){var f;Be((f=r.head)===null||f===void 0?void 0:f.querySelector("title"),()=>{r&&r.title!==l.value&&(l.value=d(r.title))},{childList:!0})}return ve(()=>{if(i){const u=i(s,l.value||"");u!=null&&r&&(r.title=u)}}),l}export{On as A,z as B,yn as C,ht as a,R as b,tn as c,ct as d,cn as e,un as f,gn as g,nn as h,oe as i,rn as j,vn as k,sn as l,rt as m,pn as n,ln as o,dn as p,hn as q,on as r,fn as s,K as t,V as u,mn as v,an as w,Sn as x,bn as y,wn as z};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var x=Object.defineProperty;var f=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable;var h=(s,t,e)=>t in s?x(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e,u=(s,t)=>{for(var e in t||(t={}))A.call(t,e)&&h(s,e,t[e]);if(f)for(var e of f(t))B.call(t,e)&&h(s,e,t[e]);return s};var p=(s,t,e)=>new Promise((c,o)=>{var n=r=>{try{i(e.next(r))}catch(a){o(a)}},m=r=>{try{i(e.throw(r))}catch(a){o(a)}},i=r=>r.done?c(r.value):Promise.resolve(r.value).then(n,m);i((e=e.apply(s,t)).next())});import"./element-plus-BCa6Zci8.js";import"./vxe-CiIRgvGK.js";import{R,aA as b,a6 as y,aB as v,aC as E,O as I}from"./Editor-DDkL8z_g-DBAoPJJ_.js";import{useRoute as O}from"./vue-router-CwSAuTE4.js";import{d as C,az as k,c as U,o as w,J as $,O as g,u as _}from"./vue-CAMRmZ-8.js";import{_ as q}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./dayjs-BGdj-UA2.js";import"./@vueuse-CFu7Lllw.js";import"./@element-plus-icons-vue-BKci8WR4.js";import"./lodash-es-DyZ5XK_i.js";import"./shared-CcA2kMdO.js";import"./monaco-editor-BnTtZo-x.js";import"./html2canvas-DNSjNh3_.js";import"./mockjs-D0SPmEx8.js";import"./marked-BQZxLJfc.js";const J={class:"loading"},S=C({__name:"Auth",props:{remote:{},access:{},baseUrl:{default:"/"}},setup(s){return p(this,null,function*(){let t,e;const c=s,o=R(u(u({alert:y},b),c.access)),n=O(),m=a=>p(null,null,function*(){const d=`${c.remote||v}/api/open/user/${a}`,l=yield E(d).catch(()=>null);return!l||!l.success?(yield y("登录失败"),null):l.data}),i=n.query.token,r=i?([t,e]=k(()=>m(i)),t=yield t,e(),t):null;if(r)try{o.login(r);const a=n.query.redirect;location.href=decodeURIComponent(a||c.baseUrl)}catch(a){location.reload()}return(a,d)=>(w(),U("div",J,"正在登录中..."))})}}),z=q(S,[["__scopeId","data-v-2674e98b"]]),Z=C({__name:"auth",setup(s){return p(this,null,function*(){let t,e;const c=new I,o=([t,e]=k(()=>c.getExtension().catch(()=>null)),t=yield t,e(),t),n=o==null?void 0:o.remote,m=o==null?void 0:o.__ACCESS__;return(i,r)=>_(n)?(w(),$(_(z),{key:0,remote:_(n),access:_(m)},null,8,["remote","access"])):g("",!0)})}});export{Z as default};
|