From ad12159d53c1132078dd4063e277084c9bc47f59 Mon Sep 17 00:00:00 2001 From: fancn21th Date: Mon, 6 Nov 2023 15:53:22 +0800 Subject: [PATCH] deploy --- assets/{TrunkA-676d05ab.js => TrunkA-020c3021.js} | 2 +- assets/{index-d06d7426.js => index-cf89f9ae.js} | 2 +- index.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename assets/{TrunkA-676d05ab.js => TrunkA-020c3021.js} (59%) rename assets/{index-d06d7426.js => index-cf89f9ae.js} (99%) diff --git a/assets/TrunkA-676d05ab.js b/assets/TrunkA-020c3021.js similarity index 59% rename from assets/TrunkA-676d05ab.js rename to assets/TrunkA-020c3021.js index 73496e5..a6d6ce7 100644 --- a/assets/TrunkA-676d05ab.js +++ b/assets/TrunkA-020c3021.js @@ -1 +1 @@ -import{o as e,c as r,u as a,L as c}from"./index-d06d7426.js";const _={__name:"TrunkA",setup(n){return(o,s)=>(e(),r(a(c),{index:10}))}};export{_ as default}; +import{o as e,c as r,u as a,L as c}from"./index-cf89f9ae.js";const _={__name:"TrunkA",setup(n){return(o,s)=>(e(),r(a(c),{index:10}))}};export{_ as default}; diff --git a/assets/index-d06d7426.js b/assets/index-cf89f9ae.js similarity index 99% rename from assets/index-d06d7426.js rename to assets/index-cf89f9ae.js index 3620d3e..b6c4162 100644 --- a/assets/index-d06d7426.js +++ b/assets/index-cf89f9ae.js @@ -2,4 +2,4 @@ * vue-router v4.2.5 * (c) 2023 Eduardo San Martin Morote * @license MIT - */const ft=typeof window<"u";function ac(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const z=Object.assign;function Nn(e,t){const n={};for(const s in t){const r=t[s];n[s]=Ae(r)?r.map(e):e(r)}return n}const Lt=()=>{},Ae=Array.isArray,dc=/\/$/,hc=e=>e.replace(dc,"");function Ln(e,t,n="/"){let s,r={},o="",i="";const c=t.indexOf("#");let l=t.indexOf("?");return c=0&&(l=-1),l>-1&&(s=t.slice(0,l),o=t.slice(l+1,c>-1?c:t.length),r=e(o)),c>-1&&(s=s||t.slice(0,c),i=t.slice(c,t.length)),s=_c(s!=null?s:t,n),{fullPath:s+(o&&"?")+o+i,path:s,query:r,hash:i}}function pc(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function or(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function gc(e,t,n){const s=t.matched.length-1,r=n.matched.length-1;return s>-1&&s===r&&vt(t.matched[s],n.matched[r])&&yo(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function vt(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function yo(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!mc(e[n],t[n]))return!1;return!0}function mc(e,t){return Ae(e)?ir(e,t):Ae(t)?ir(t,e):e===t}function ir(e,t){return Ae(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function _c(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/"),r=s[s.length-1];(r===".."||r===".")&&s.push("");let o=n.length-1,i,c;for(i=0;i1&&o--;else break;return n.slice(0,o).join("/")+"/"+s.slice(i-(i===s.length?1:0)).join("/")}var Ut;(function(e){e.pop="pop",e.push="push"})(Ut||(Ut={}));var Ht;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Ht||(Ht={}));function yc(e){if(!e)if(ft){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),hc(e)}const vc=/^[^#]+#/;function bc(e,t){return e.replace(vc,"#")+t}function Ec(e,t){const n=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-n.left-(t.left||0),top:s.top-n.top-(t.top||0)}}const Cn=()=>({left:window.pageXOffset,top:window.pageYOffset});function xc(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=Ec(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function lr(e,t){return(history.state?history.state.position-t:-1)+e}const Gn=new Map;function wc(e,t){Gn.set(e,t)}function Rc(e){const t=Gn.get(e);return Gn.delete(e),t}let Pc=()=>location.protocol+"//"+location.host;function vo(e,t){const{pathname:n,search:s,hash:r}=t,o=e.indexOf("#");if(o>-1){let c=r.includes(e.slice(o))?e.slice(o).length:1,l=r.slice(c);return l[0]!=="/"&&(l="/"+l),or(l,"")}return or(n,e)+s+r}function Cc(e,t,n,s){let r=[],o=[],i=null;const c=({state:g})=>{const v=vo(e,location),O=n.value,A=t.value;let H=0;if(g){if(n.value=v,t.value=g,i&&i===O){i=null;return}H=A?g.position-A.position:0}else s(v);r.forEach(S=>{S(n.value,O,{delta:H,type:Ut.pop,direction:H?H>0?Ht.forward:Ht.back:Ht.unknown})})};function l(){i=n.value}function f(g){r.push(g);const v=()=>{const O=r.indexOf(g);O>-1&&r.splice(O,1)};return o.push(v),v}function a(){const{history:g}=window;g.state&&g.replaceState(z({},g.state,{scroll:Cn()}),"")}function h(){for(const g of o)g();o=[],window.removeEventListener("popstate",c),window.removeEventListener("beforeunload",a)}return window.addEventListener("popstate",c),window.addEventListener("beforeunload",a,{passive:!0}),{pauseListeners:l,listen:f,destroy:h}}function cr(e,t,n,s=!1,r=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:r?Cn():null}}function Oc(e){const{history:t,location:n}=window,s={value:vo(e,n)},r={value:t.state};r.value||o(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(l,f,a){const h=e.indexOf("#"),g=h>-1?(n.host&&document.querySelector("base")?e:e.slice(h))+l:Pc()+e+l;try{t[a?"replaceState":"pushState"](f,"",g),r.value=f}catch(v){console.error(v),n[a?"replace":"assign"](g)}}function i(l,f){const a=z({},t.state,cr(r.value.back,l,r.value.forward,!0),f,{position:r.value.position});o(l,a,!0),s.value=l}function c(l,f){const a=z({},r.value,t.state,{forward:l,scroll:Cn()});o(a.current,a,!0);const h=z({},cr(s.value,l,null),{position:a.position+1},f);o(l,h,!1),s.value=l}return{location:s,state:r,push:c,replace:i}}function Ac(e){e=yc(e);const t=Oc(e),n=Cc(e,t.state,t.location,t.replace);function s(o,i=!0){i||n.pauseListeners(),history.go(o)}const r=z({location:"",base:e,go:s,createHref:bc.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function Tc(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),Ac(e)}function Ic(e){return typeof e=="string"||e&&typeof e=="object"}function bo(e){return typeof e=="string"||typeof e=="symbol"}const We={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Eo=Symbol("");var ur;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(ur||(ur={}));function bt(e,t){return z(new Error,{type:e,[Eo]:!0},t)}function je(e,t){return e instanceof Error&&Eo in e&&(t==null||!!(e.type&t))}const fr="[^/]+?",Sc={sensitive:!1,strict:!1,start:!0,end:!0},Mc=/[.+*?^${}()[\]/\\]/g;function Fc(e,t){const n=z({},Sc,t),s=[];let r=n.start?"^":"";const o=[];for(const f of e){const a=f.length?[]:[90];n.strict&&!f.length&&(r+="/");for(let h=0;ht.length?t.length===1&&t[0]===40+40?1:-1:0}function Lc(e,t){let n=0;const s=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const Hc={type:0,value:""},jc=/[a-zA-Z0-9_]/;function $c(e){if(!e)return[[]];if(e==="/")return[[Hc]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(v){throw new Error(`ERR (${n})/"${f}": ${v}`)}let n=0,s=n;const r=[];let o;function i(){o&&r.push(o),o=[]}let c=0,l,f="",a="";function h(){f&&(n===0?o.push({type:0,value:f}):n===1||n===2||n===3?(o.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${f}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:f,regexp:a,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),f="")}function g(){f+=l}for(;c{i(L)}:Lt}function i(a){if(bo(a)){const h=s.get(a);h&&(s.delete(a),n.splice(n.indexOf(h),1),h.children.forEach(i),h.alias.forEach(i))}else{const h=n.indexOf(a);h>-1&&(n.splice(h,1),a.record.name&&s.delete(a.record.name),a.children.forEach(i),a.alias.forEach(i))}}function c(){return n}function l(a){let h=0;for(;h=0&&(a.record.path!==n[h].record.path||!xo(a,n[h]));)h++;n.splice(h,0,a),a.record.name&&!hr(a)&&s.set(a.record.name,a)}function f(a,h){let g,v={},O,A;if("name"in a&&a.name){if(g=s.get(a.name),!g)throw bt(1,{location:a});A=g.record.name,v=z(dr(h.params,g.keys.filter(L=>!L.optional).map(L=>L.name)),a.params&&dr(a.params,g.keys.map(L=>L.name))),O=g.stringify(v)}else if("path"in a)O=a.path,g=n.find(L=>L.re.test(O)),g&&(v=g.parse(O),A=g.record.name);else{if(g=h.name?s.get(h.name):n.find(L=>L.re.test(h.path)),!g)throw bt(1,{location:a,currentLocation:h});A=g.record.name,v=z({},h.params,a.params),O=g.stringify(v)}const H=[];let S=g;for(;S;)H.unshift(S.record),S=S.parent;return{name:A,path:O,params:v,matched:H,meta:Dc(H)}}return e.forEach(a=>o(a)),{addRoute:o,resolve:f,removeRoute:i,getRoutes:c,getRecordMatcher:r}}function dr(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function Kc(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Uc(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function Uc(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const s in e.components)t[s]=typeof n=="object"?n[s]:n;return t}function hr(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Dc(e){return e.reduce((t,n)=>z(t,n.meta),{})}function pr(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}function xo(e,t){return t.children.some(n=>n===e||xo(e,n))}const wo=/#/g,Wc=/&/g,qc=/\//g,zc=/=/g,Vc=/\?/g,Ro=/\+/g,Qc=/%5B/g,Yc=/%5D/g,Po=/%5E/g,Jc=/%60/g,Co=/%7B/g,Xc=/%7C/g,Oo=/%7D/g,Zc=/%20/g;function Es(e){return encodeURI(""+e).replace(Xc,"|").replace(Qc,"[").replace(Yc,"]")}function Gc(e){return Es(e).replace(Co,"{").replace(Oo,"}").replace(Po,"^")}function es(e){return Es(e).replace(Ro,"%2B").replace(Zc,"+").replace(wo,"%23").replace(Wc,"%26").replace(Jc,"`").replace(Co,"{").replace(Oo,"}").replace(Po,"^")}function eu(e){return es(e).replace(zc,"%3D")}function tu(e){return Es(e).replace(wo,"%23").replace(Vc,"%3F")}function nu(e){return e==null?"":tu(e).replace(qc,"%2F")}function cn(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}function su(e){const t={};if(e===""||e==="?")return t;const s=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;ro&&es(o)):[s&&es(s)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function ru(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=Ae(s)?s.map(r=>r==null?null:""+r):s==null?s:""+s)}return t}const ou=Symbol(""),mr=Symbol(""),xs=Symbol(""),Ao=Symbol(""),ts=Symbol("");function Ot(){let e=[];function t(s){return e.push(s),()=>{const r=e.indexOf(s);r>-1&&e.splice(r,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function ze(e,t,n,s,r){const o=s&&(s.enterCallbacks[r]=s.enterCallbacks[r]||[]);return()=>new Promise((i,c)=>{const l=h=>{h===!1?c(bt(4,{from:n,to:t})):h instanceof Error?c(h):Ic(h)?c(bt(2,{from:t,to:h})):(o&&s.enterCallbacks[r]===o&&typeof h=="function"&&o.push(h),i())},f=e.call(s&&s.instances[r],t,n,l);let a=Promise.resolve(f);e.length<3&&(a=a.then(l)),a.catch(h=>c(h))})}function Hn(e,t,n,s){const r=[];for(const o of e)for(const i in o.components){let c=o.components[i];if(!(t!=="beforeRouteEnter"&&!o.instances[i]))if(iu(c)){const f=(c.__vccOpts||c)[t];f&&r.push(ze(f,n,s,o,i))}else{let l=c();r.push(()=>l.then(f=>{if(!f)return Promise.reject(new Error(`Couldn't resolve component "${i}" at "${o.path}"`));const a=ac(f)?f.default:f;o.components[i]=a;const g=(a.__vccOpts||a)[t];return g&&ze(g,n,s,o,i)()}))}}return r}function iu(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function _r(e){const t=ke(xs),n=ke(Ao),s=Re(()=>t.resolve(Qe(e.to))),r=Re(()=>{const{matched:l}=s.value,{length:f}=l,a=l[f-1],h=n.matched;if(!a||!h.length)return-1;const g=h.findIndex(vt.bind(null,a));if(g>-1)return g;const v=yr(l[f-2]);return f>1&&yr(a)===v&&h[h.length-1].path!==v?h.findIndex(vt.bind(null,l[f-2])):g}),o=Re(()=>r.value>-1&&fu(n.params,s.value.params)),i=Re(()=>r.value>-1&&r.value===n.matched.length-1&&yo(n.params,s.value.params));function c(l={}){return uu(l)?t[Qe(e.replace)?"replace":"push"](Qe(e.to)).catch(Lt):Promise.resolve()}return{route:s,href:Re(()=>s.value.href),isActive:o,isExactActive:i,navigate:c}}const lu=Jr({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"}},useLink:_r,setup(e,{slots:t}){const n=_n(_r(e)),{options:s}=ke(xs),r=Re(()=>({[vr(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[vr(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:_o("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},o)}}}),cu=lu;function uu(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 fu(e,t){for(const n in t){const s=t[n],r=e[n];if(typeof s=="string"){if(s!==r)return!1}else if(!Ae(r)||r.length!==s.length||s.some((o,i)=>o!==r[i]))return!1}return!0}function yr(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const vr=(e,t,n)=>e!=null?e:t!=null?t:n,au=Jr({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=ke(ts),r=Re(()=>e.route||s.value),o=ke(mr,0),i=Re(()=>{let f=Qe(o);const{matched:a}=r.value;let h;for(;(h=a[f])&&!h.components;)f++;return f}),c=Re(()=>r.value.matched[i.value]);Gt(mr,Re(()=>i.value+1)),Gt(ou,c),Gt(ts,r);const l=mi();return Zt(()=>[l.value,c.value,e.name],([f,a,h],[g,v,O])=>{a&&(a.instances[h]=f,v&&v!==a&&f&&f===g&&(a.leaveGuards.size||(a.leaveGuards=v.leaveGuards),a.updateGuards.size||(a.updateGuards=v.updateGuards))),f&&a&&(!v||!vt(a,v)||!g)&&(a.enterCallbacks[h]||[]).forEach(A=>A(f))},{flush:"post"}),()=>{const f=r.value,a=e.name,h=c.value,g=h&&h.components[a];if(!g)return br(n.default,{Component:g,route:f});const v=h.props[a],O=v?v===!0?f.params:typeof v=="function"?v(f):v:null,H=_o(g,z({},O,t,{onVnodeUnmounted:S=>{S.component.isUnmounted&&(h.instances[a]=null)},ref:l}));return br(n.default,{Component:H,route:f})||H}}});function br(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const du=au;function hu(e){const t=kc(e.routes,e),n=e.parseQuery||su,s=e.stringifyQuery||gr,r=e.history,o=Ot(),i=Ot(),c=Ot(),l=_i(We);let f=We;ft&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const a=Nn.bind(null,_=>""+_),h=Nn.bind(null,nu),g=Nn.bind(null,cn);function v(_,C){let R,I;return bo(_)?(R=t.getRecordMatcher(_),I=C):I=_,t.addRoute(I,R)}function O(_){const C=t.getRecordMatcher(_);C&&t.removeRoute(C)}function A(){return t.getRoutes().map(_=>_.record)}function H(_){return!!t.getRecordMatcher(_)}function S(_,C){if(C=z({},C||l.value),typeof _=="string"){const p=Ln(n,_,C.path),m=t.resolve({path:p.path},C),y=r.createHref(p.fullPath);return z(p,m,{params:g(m.params),hash:cn(p.hash),redirectedFrom:void 0,href:y})}let R;if("path"in _)R=z({},_,{path:Ln(n,_.path,C.path).path});else{const p=z({},_.params);for(const m in p)p[m]==null&&delete p[m];R=z({},_,{params:h(p)}),C.params=h(C.params)}const I=t.resolve(R,C),q=_.hash||"";I.params=a(g(I.params));const u=pc(s,z({},_,{hash:Gc(q),path:I.path})),d=r.createHref(u);return z({fullPath:u,hash:q,query:s===gr?ru(_.query):_.query||{}},I,{redirectedFrom:void 0,href:d})}function L(_){return typeof _=="string"?Ln(n,_,l.value.path):z({},_)}function K(_,C){if(f!==_)return bt(8,{from:C,to:_})}function N(_){return te(_)}function Z(_){return N(z(L(_),{replace:!0}))}function X(_){const C=_.matched[_.matched.length-1];if(C&&C.redirect){const{redirect:R}=C;let I=typeof R=="function"?R(_):R;return typeof I=="string"&&(I=I.includes("?")||I.includes("#")?I=L(I):{path:I},I.params={}),z({query:_.query,hash:_.hash,params:"path"in I?{}:_.params},I)}}function te(_,C){const R=f=S(_),I=l.value,q=_.state,u=_.force,d=_.replace===!0,p=X(R);if(p)return te(z(L(p),{state:typeof p=="object"?z({},q,p.state):q,force:u,replace:d}),C||R);const m=R;m.redirectedFrom=C;let y;return!u&&gc(s,I,R)&&(y=bt(16,{to:m,from:I}),Ie(I,I,!0,!1)),(y?Promise.resolve(y):he(m,I)).catch(b=>je(b)?je(b,2)?b:Ue(b):W(b,m,I)).then(b=>{if(b){if(je(b,2))return te(z({replace:d},L(b.to),{state:typeof b.to=="object"?z({},q,b.to.state):q,force:u}),C||m)}else b=Xe(m,I,!0,d,q);return _e(m,I,b),b})}function re(_,C){const R=K(_,C);return R?Promise.reject(R):Promise.resolve()}function ve(_){const C=lt.values().next().value;return C&&typeof C.runWithContext=="function"?C.runWithContext(_):_()}function he(_,C){let R;const[I,q,u]=pu(_,C);R=Hn(I.reverse(),"beforeRouteLeave",_,C);for(const p of I)p.leaveGuards.forEach(m=>{R.push(ze(m,_,C))});const d=re.bind(null,_,C);return R.push(d),le(R).then(()=>{R=[];for(const p of o.list())R.push(ze(p,_,C));return R.push(d),le(R)}).then(()=>{R=Hn(q,"beforeRouteUpdate",_,C);for(const p of q)p.updateGuards.forEach(m=>{R.push(ze(m,_,C))});return R.push(d),le(R)}).then(()=>{R=[];for(const p of u)if(p.beforeEnter)if(Ae(p.beforeEnter))for(const m of p.beforeEnter)R.push(ze(m,_,C));else R.push(ze(p.beforeEnter,_,C));return R.push(d),le(R)}).then(()=>(_.matched.forEach(p=>p.enterCallbacks={}),R=Hn(u,"beforeRouteEnter",_,C),R.push(d),le(R))).then(()=>{R=[];for(const p of i.list())R.push(ze(p,_,C));return R.push(d),le(R)}).catch(p=>je(p,8)?p:Promise.reject(p))}function _e(_,C,R){c.list().forEach(I=>ve(()=>I(_,C,R)))}function Xe(_,C,R,I,q){const u=K(_,C);if(u)return u;const d=C===We,p=ft?history.state:{};R&&(I||d?r.replace(_.fullPath,z({scroll:d&&p&&p.scroll},q)):r.push(_.fullPath,q)),l.value=_,Ie(_,C,R,d),Ue()}let Te;function Rt(){Te||(Te=r.listen((_,C,R)=>{if(!Dt.listening)return;const I=S(_),q=X(I);if(q){te(z(q,{replace:!0}),I).catch(Lt);return}f=I;const u=l.value;ft&&wc(lr(u.fullPath,R.delta),Cn()),he(I,u).catch(d=>je(d,12)?d:je(d,2)?(te(d.to,I).then(p=>{je(p,20)&&!R.delta&&R.type===Ut.pop&&r.go(-1,!1)}).catch(Lt),Promise.reject()):(R.delta&&r.go(-R.delta,!1),W(d,I,u))).then(d=>{d=d||Xe(I,u,!1),d&&(R.delta&&!je(d,8)?r.go(-R.delta,!1):R.type===Ut.pop&&je(d,20)&&r.go(-1,!1)),_e(I,u,d)}).catch(Lt)}))}let ot=Ot(),ne=Ot(),Q;function W(_,C,R){Ue(_);const I=ne.list();return I.length?I.forEach(q=>q(_,C,R)):console.error(_),Promise.reject(_)}function He(){return Q&&l.value!==We?Promise.resolve():new Promise((_,C)=>{ot.add([_,C])})}function Ue(_){return Q||(Q=!_,Rt(),ot.list().forEach(([C,R])=>_?R(_):C()),ot.reset()),_}function Ie(_,C,R,I){const{scrollBehavior:q}=e;if(!ft||!q)return Promise.resolve();const u=!R&&Rc(lr(_.fullPath,0))||(I||!R)&&history.state&&history.state.scroll||null;return Dr().then(()=>q(_,C,u)).then(d=>d&&xc(d)).catch(d=>W(d,_,C))}const pe=_=>r.go(_);let it;const lt=new Set,Dt={currentRoute:l,listening:!0,addRoute:v,removeRoute:O,hasRoute:H,getRoutes:A,resolve:S,options:e,push:N,replace:Z,go:pe,back:()=>pe(-1),forward:()=>pe(1),beforeEach:o.add,beforeResolve:i.add,afterEach:c.add,onError:ne.add,isReady:He,install(_){const C=this;_.component("RouterLink",cu),_.component("RouterView",du),_.config.globalProperties.$router=C,Object.defineProperty(_.config.globalProperties,"$route",{enumerable:!0,get:()=>Qe(l)}),ft&&!it&&l.value===We&&(it=!0,N(r.location).catch(q=>{}));const R={};for(const q in We)Object.defineProperty(R,q,{get:()=>l.value[q],enumerable:!0});_.provide(xs,C),_.provide(Ao,Nr(R)),_.provide(ts,l);const I=_.unmount;lt.add(_),_.unmount=function(){lt.delete(_),lt.size<1&&(f=We,Te&&Te(),Te=null,l.value=We,it=!1,Q=!1),I()}}};function le(_){return _.reduce((C,R)=>C.then(()=>ve(R)),Promise.resolve())}return Dt}function pu(e,t){const n=[],s=[],r=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;ivt(f,c))?s.push(c):n.push(c));const l=e.matched[i];l&&(t.matched.find(f=>vt(f,l))||r.push(l))}return[n,s,r]}const To=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n},gu={__name:"ScreenLayer",props:{index:{type:Number,default:0},fullscreen:{type:Boolean,default:!0}},setup(e){return(t,n)=>(wn(),_s(_l,{to:"#app"},[Pn("div",{class:gn(["layer",{fullscreen:e.fullscreen}]),style:pn({zIndex:e.index})},[Ji(t.$slots,"default",{},void 0,!0)],6)]))}},Er=To(gu,[["__scopeId","data-v-9070052b"]]);const mu=e=>(Ai("data-v-0029c2dd"),e=e(),Ti(),e),_u=mu(()=>Pn("div",{class:"background"},null,-1)),yu={__name:"BasicLayout",setup(e){return(t,n)=>{const s=no("router-view");return wn(),vl(be,null,[fe(Qe(Er),{index:1e3},{default:Dn(()=>[fe(s)]),_:1}),fe(Qe(Er),{index:1},{default:Dn(()=>[_u]),_:1})],64)}}},vu=To(yu,[["__scopeId","data-v-0029c2dd"]]),bu=()=>fc(()=>import("./TrunkA-676d05ab.js"),[]),Eu=[{path:"/",redirect:{name:"shared"}},{path:"/shared-screen/",name:"shared-screen",component:vu,redirect:{name:"trunk-a"},children:[{path:"trunk-a",name:"trunk-a",component:bu}]}],xu=hu({history:Tc(),routes:Eu}),Io=sc(lc);Io.use(xu);Io.mount("#app");export{Er as L,_s as c,wn as o,Qe as u}; + */const ft=typeof window<"u";function ac(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const z=Object.assign;function Nn(e,t){const n={};for(const s in t){const r=t[s];n[s]=Ae(r)?r.map(e):e(r)}return n}const Lt=()=>{},Ae=Array.isArray,dc=/\/$/,hc=e=>e.replace(dc,"");function Ln(e,t,n="/"){let s,r={},o="",i="";const c=t.indexOf("#");let l=t.indexOf("?");return c=0&&(l=-1),l>-1&&(s=t.slice(0,l),o=t.slice(l+1,c>-1?c:t.length),r=e(o)),c>-1&&(s=s||t.slice(0,c),i=t.slice(c,t.length)),s=_c(s!=null?s:t,n),{fullPath:s+(o&&"?")+o+i,path:s,query:r,hash:i}}function pc(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function or(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function gc(e,t,n){const s=t.matched.length-1,r=n.matched.length-1;return s>-1&&s===r&&vt(t.matched[s],n.matched[r])&&yo(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function vt(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function yo(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!mc(e[n],t[n]))return!1;return!0}function mc(e,t){return Ae(e)?ir(e,t):Ae(t)?ir(t,e):e===t}function ir(e,t){return Ae(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function _c(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/"),r=s[s.length-1];(r===".."||r===".")&&s.push("");let o=n.length-1,i,c;for(i=0;i1&&o--;else break;return n.slice(0,o).join("/")+"/"+s.slice(i-(i===s.length?1:0)).join("/")}var Ut;(function(e){e.pop="pop",e.push="push"})(Ut||(Ut={}));var Ht;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Ht||(Ht={}));function yc(e){if(!e)if(ft){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),hc(e)}const vc=/^[^#]+#/;function bc(e,t){return e.replace(vc,"#")+t}function Ec(e,t){const n=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-n.left-(t.left||0),top:s.top-n.top-(t.top||0)}}const Cn=()=>({left:window.pageXOffset,top:window.pageYOffset});function xc(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=Ec(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function lr(e,t){return(history.state?history.state.position-t:-1)+e}const Gn=new Map;function wc(e,t){Gn.set(e,t)}function Rc(e){const t=Gn.get(e);return Gn.delete(e),t}let Pc=()=>location.protocol+"//"+location.host;function vo(e,t){const{pathname:n,search:s,hash:r}=t,o=e.indexOf("#");if(o>-1){let c=r.includes(e.slice(o))?e.slice(o).length:1,l=r.slice(c);return l[0]!=="/"&&(l="/"+l),or(l,"")}return or(n,e)+s+r}function Cc(e,t,n,s){let r=[],o=[],i=null;const c=({state:g})=>{const v=vo(e,location),O=n.value,A=t.value;let H=0;if(g){if(n.value=v,t.value=g,i&&i===O){i=null;return}H=A?g.position-A.position:0}else s(v);r.forEach(S=>{S(n.value,O,{delta:H,type:Ut.pop,direction:H?H>0?Ht.forward:Ht.back:Ht.unknown})})};function l(){i=n.value}function f(g){r.push(g);const v=()=>{const O=r.indexOf(g);O>-1&&r.splice(O,1)};return o.push(v),v}function a(){const{history:g}=window;g.state&&g.replaceState(z({},g.state,{scroll:Cn()}),"")}function h(){for(const g of o)g();o=[],window.removeEventListener("popstate",c),window.removeEventListener("beforeunload",a)}return window.addEventListener("popstate",c),window.addEventListener("beforeunload",a,{passive:!0}),{pauseListeners:l,listen:f,destroy:h}}function cr(e,t,n,s=!1,r=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:r?Cn():null}}function Oc(e){const{history:t,location:n}=window,s={value:vo(e,n)},r={value:t.state};r.value||o(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(l,f,a){const h=e.indexOf("#"),g=h>-1?(n.host&&document.querySelector("base")?e:e.slice(h))+l:Pc()+e+l;try{t[a?"replaceState":"pushState"](f,"",g),r.value=f}catch(v){console.error(v),n[a?"replace":"assign"](g)}}function i(l,f){const a=z({},t.state,cr(r.value.back,l,r.value.forward,!0),f,{position:r.value.position});o(l,a,!0),s.value=l}function c(l,f){const a=z({},r.value,t.state,{forward:l,scroll:Cn()});o(a.current,a,!0);const h=z({},cr(s.value,l,null),{position:a.position+1},f);o(l,h,!1),s.value=l}return{location:s,state:r,push:c,replace:i}}function Ac(e){e=yc(e);const t=Oc(e),n=Cc(e,t.state,t.location,t.replace);function s(o,i=!0){i||n.pauseListeners(),history.go(o)}const r=z({location:"",base:e,go:s,createHref:bc.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function Tc(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),Ac(e)}function Ic(e){return typeof e=="string"||e&&typeof e=="object"}function bo(e){return typeof e=="string"||typeof e=="symbol"}const We={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Eo=Symbol("");var ur;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(ur||(ur={}));function bt(e,t){return z(new Error,{type:e,[Eo]:!0},t)}function je(e,t){return e instanceof Error&&Eo in e&&(t==null||!!(e.type&t))}const fr="[^/]+?",Sc={sensitive:!1,strict:!1,start:!0,end:!0},Mc=/[.+*?^${}()[\]/\\]/g;function Fc(e,t){const n=z({},Sc,t),s=[];let r=n.start?"^":"";const o=[];for(const f of e){const a=f.length?[]:[90];n.strict&&!f.length&&(r+="/");for(let h=0;ht.length?t.length===1&&t[0]===40+40?1:-1:0}function Lc(e,t){let n=0;const s=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const Hc={type:0,value:""},jc=/[a-zA-Z0-9_]/;function $c(e){if(!e)return[[]];if(e==="/")return[[Hc]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(v){throw new Error(`ERR (${n})/"${f}": ${v}`)}let n=0,s=n;const r=[];let o;function i(){o&&r.push(o),o=[]}let c=0,l,f="",a="";function h(){f&&(n===0?o.push({type:0,value:f}):n===1||n===2||n===3?(o.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${f}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:f,regexp:a,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),f="")}function g(){f+=l}for(;c{i(L)}:Lt}function i(a){if(bo(a)){const h=s.get(a);h&&(s.delete(a),n.splice(n.indexOf(h),1),h.children.forEach(i),h.alias.forEach(i))}else{const h=n.indexOf(a);h>-1&&(n.splice(h,1),a.record.name&&s.delete(a.record.name),a.children.forEach(i),a.alias.forEach(i))}}function c(){return n}function l(a){let h=0;for(;h=0&&(a.record.path!==n[h].record.path||!xo(a,n[h]));)h++;n.splice(h,0,a),a.record.name&&!hr(a)&&s.set(a.record.name,a)}function f(a,h){let g,v={},O,A;if("name"in a&&a.name){if(g=s.get(a.name),!g)throw bt(1,{location:a});A=g.record.name,v=z(dr(h.params,g.keys.filter(L=>!L.optional).map(L=>L.name)),a.params&&dr(a.params,g.keys.map(L=>L.name))),O=g.stringify(v)}else if("path"in a)O=a.path,g=n.find(L=>L.re.test(O)),g&&(v=g.parse(O),A=g.record.name);else{if(g=h.name?s.get(h.name):n.find(L=>L.re.test(h.path)),!g)throw bt(1,{location:a,currentLocation:h});A=g.record.name,v=z({},h.params,a.params),O=g.stringify(v)}const H=[];let S=g;for(;S;)H.unshift(S.record),S=S.parent;return{name:A,path:O,params:v,matched:H,meta:Dc(H)}}return e.forEach(a=>o(a)),{addRoute:o,resolve:f,removeRoute:i,getRoutes:c,getRecordMatcher:r}}function dr(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function Kc(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Uc(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function Uc(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const s in e.components)t[s]=typeof n=="object"?n[s]:n;return t}function hr(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Dc(e){return e.reduce((t,n)=>z(t,n.meta),{})}function pr(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}function xo(e,t){return t.children.some(n=>n===e||xo(e,n))}const wo=/#/g,Wc=/&/g,qc=/\//g,zc=/=/g,Vc=/\?/g,Ro=/\+/g,Qc=/%5B/g,Yc=/%5D/g,Po=/%5E/g,Jc=/%60/g,Co=/%7B/g,Xc=/%7C/g,Oo=/%7D/g,Zc=/%20/g;function Es(e){return encodeURI(""+e).replace(Xc,"|").replace(Qc,"[").replace(Yc,"]")}function Gc(e){return Es(e).replace(Co,"{").replace(Oo,"}").replace(Po,"^")}function es(e){return Es(e).replace(Ro,"%2B").replace(Zc,"+").replace(wo,"%23").replace(Wc,"%26").replace(Jc,"`").replace(Co,"{").replace(Oo,"}").replace(Po,"^")}function eu(e){return es(e).replace(zc,"%3D")}function tu(e){return Es(e).replace(wo,"%23").replace(Vc,"%3F")}function nu(e){return e==null?"":tu(e).replace(qc,"%2F")}function cn(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}function su(e){const t={};if(e===""||e==="?")return t;const s=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;ro&&es(o)):[s&&es(s)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function ru(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=Ae(s)?s.map(r=>r==null?null:""+r):s==null?s:""+s)}return t}const ou=Symbol(""),mr=Symbol(""),xs=Symbol(""),Ao=Symbol(""),ts=Symbol("");function Ot(){let e=[];function t(s){return e.push(s),()=>{const r=e.indexOf(s);r>-1&&e.splice(r,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function ze(e,t,n,s,r){const o=s&&(s.enterCallbacks[r]=s.enterCallbacks[r]||[]);return()=>new Promise((i,c)=>{const l=h=>{h===!1?c(bt(4,{from:n,to:t})):h instanceof Error?c(h):Ic(h)?c(bt(2,{from:t,to:h})):(o&&s.enterCallbacks[r]===o&&typeof h=="function"&&o.push(h),i())},f=e.call(s&&s.instances[r],t,n,l);let a=Promise.resolve(f);e.length<3&&(a=a.then(l)),a.catch(h=>c(h))})}function Hn(e,t,n,s){const r=[];for(const o of e)for(const i in o.components){let c=o.components[i];if(!(t!=="beforeRouteEnter"&&!o.instances[i]))if(iu(c)){const f=(c.__vccOpts||c)[t];f&&r.push(ze(f,n,s,o,i))}else{let l=c();r.push(()=>l.then(f=>{if(!f)return Promise.reject(new Error(`Couldn't resolve component "${i}" at "${o.path}"`));const a=ac(f)?f.default:f;o.components[i]=a;const g=(a.__vccOpts||a)[t];return g&&ze(g,n,s,o,i)()}))}}return r}function iu(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function _r(e){const t=ke(xs),n=ke(Ao),s=Re(()=>t.resolve(Qe(e.to))),r=Re(()=>{const{matched:l}=s.value,{length:f}=l,a=l[f-1],h=n.matched;if(!a||!h.length)return-1;const g=h.findIndex(vt.bind(null,a));if(g>-1)return g;const v=yr(l[f-2]);return f>1&&yr(a)===v&&h[h.length-1].path!==v?h.findIndex(vt.bind(null,l[f-2])):g}),o=Re(()=>r.value>-1&&fu(n.params,s.value.params)),i=Re(()=>r.value>-1&&r.value===n.matched.length-1&&yo(n.params,s.value.params));function c(l={}){return uu(l)?t[Qe(e.replace)?"replace":"push"](Qe(e.to)).catch(Lt):Promise.resolve()}return{route:s,href:Re(()=>s.value.href),isActive:o,isExactActive:i,navigate:c}}const lu=Jr({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"}},useLink:_r,setup(e,{slots:t}){const n=_n(_r(e)),{options:s}=ke(xs),r=Re(()=>({[vr(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[vr(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:_o("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},o)}}}),cu=lu;function uu(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 fu(e,t){for(const n in t){const s=t[n],r=e[n];if(typeof s=="string"){if(s!==r)return!1}else if(!Ae(r)||r.length!==s.length||s.some((o,i)=>o!==r[i]))return!1}return!0}function yr(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const vr=(e,t,n)=>e!=null?e:t!=null?t:n,au=Jr({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=ke(ts),r=Re(()=>e.route||s.value),o=ke(mr,0),i=Re(()=>{let f=Qe(o);const{matched:a}=r.value;let h;for(;(h=a[f])&&!h.components;)f++;return f}),c=Re(()=>r.value.matched[i.value]);Gt(mr,Re(()=>i.value+1)),Gt(ou,c),Gt(ts,r);const l=mi();return Zt(()=>[l.value,c.value,e.name],([f,a,h],[g,v,O])=>{a&&(a.instances[h]=f,v&&v!==a&&f&&f===g&&(a.leaveGuards.size||(a.leaveGuards=v.leaveGuards),a.updateGuards.size||(a.updateGuards=v.updateGuards))),f&&a&&(!v||!vt(a,v)||!g)&&(a.enterCallbacks[h]||[]).forEach(A=>A(f))},{flush:"post"}),()=>{const f=r.value,a=e.name,h=c.value,g=h&&h.components[a];if(!g)return br(n.default,{Component:g,route:f});const v=h.props[a],O=v?v===!0?f.params:typeof v=="function"?v(f):v:null,H=_o(g,z({},O,t,{onVnodeUnmounted:S=>{S.component.isUnmounted&&(h.instances[a]=null)},ref:l}));return br(n.default,{Component:H,route:f})||H}}});function br(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const du=au;function hu(e){const t=kc(e.routes,e),n=e.parseQuery||su,s=e.stringifyQuery||gr,r=e.history,o=Ot(),i=Ot(),c=Ot(),l=_i(We);let f=We;ft&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const a=Nn.bind(null,_=>""+_),h=Nn.bind(null,nu),g=Nn.bind(null,cn);function v(_,C){let R,I;return bo(_)?(R=t.getRecordMatcher(_),I=C):I=_,t.addRoute(I,R)}function O(_){const C=t.getRecordMatcher(_);C&&t.removeRoute(C)}function A(){return t.getRoutes().map(_=>_.record)}function H(_){return!!t.getRecordMatcher(_)}function S(_,C){if(C=z({},C||l.value),typeof _=="string"){const p=Ln(n,_,C.path),m=t.resolve({path:p.path},C),y=r.createHref(p.fullPath);return z(p,m,{params:g(m.params),hash:cn(p.hash),redirectedFrom:void 0,href:y})}let R;if("path"in _)R=z({},_,{path:Ln(n,_.path,C.path).path});else{const p=z({},_.params);for(const m in p)p[m]==null&&delete p[m];R=z({},_,{params:h(p)}),C.params=h(C.params)}const I=t.resolve(R,C),q=_.hash||"";I.params=a(g(I.params));const u=pc(s,z({},_,{hash:Gc(q),path:I.path})),d=r.createHref(u);return z({fullPath:u,hash:q,query:s===gr?ru(_.query):_.query||{}},I,{redirectedFrom:void 0,href:d})}function L(_){return typeof _=="string"?Ln(n,_,l.value.path):z({},_)}function K(_,C){if(f!==_)return bt(8,{from:C,to:_})}function N(_){return te(_)}function Z(_){return N(z(L(_),{replace:!0}))}function X(_){const C=_.matched[_.matched.length-1];if(C&&C.redirect){const{redirect:R}=C;let I=typeof R=="function"?R(_):R;return typeof I=="string"&&(I=I.includes("?")||I.includes("#")?I=L(I):{path:I},I.params={}),z({query:_.query,hash:_.hash,params:"path"in I?{}:_.params},I)}}function te(_,C){const R=f=S(_),I=l.value,q=_.state,u=_.force,d=_.replace===!0,p=X(R);if(p)return te(z(L(p),{state:typeof p=="object"?z({},q,p.state):q,force:u,replace:d}),C||R);const m=R;m.redirectedFrom=C;let y;return!u&&gc(s,I,R)&&(y=bt(16,{to:m,from:I}),Ie(I,I,!0,!1)),(y?Promise.resolve(y):he(m,I)).catch(b=>je(b)?je(b,2)?b:Ue(b):W(b,m,I)).then(b=>{if(b){if(je(b,2))return te(z({replace:d},L(b.to),{state:typeof b.to=="object"?z({},q,b.to.state):q,force:u}),C||m)}else b=Xe(m,I,!0,d,q);return _e(m,I,b),b})}function re(_,C){const R=K(_,C);return R?Promise.reject(R):Promise.resolve()}function ve(_){const C=lt.values().next().value;return C&&typeof C.runWithContext=="function"?C.runWithContext(_):_()}function he(_,C){let R;const[I,q,u]=pu(_,C);R=Hn(I.reverse(),"beforeRouteLeave",_,C);for(const p of I)p.leaveGuards.forEach(m=>{R.push(ze(m,_,C))});const d=re.bind(null,_,C);return R.push(d),le(R).then(()=>{R=[];for(const p of o.list())R.push(ze(p,_,C));return R.push(d),le(R)}).then(()=>{R=Hn(q,"beforeRouteUpdate",_,C);for(const p of q)p.updateGuards.forEach(m=>{R.push(ze(m,_,C))});return R.push(d),le(R)}).then(()=>{R=[];for(const p of u)if(p.beforeEnter)if(Ae(p.beforeEnter))for(const m of p.beforeEnter)R.push(ze(m,_,C));else R.push(ze(p.beforeEnter,_,C));return R.push(d),le(R)}).then(()=>(_.matched.forEach(p=>p.enterCallbacks={}),R=Hn(u,"beforeRouteEnter",_,C),R.push(d),le(R))).then(()=>{R=[];for(const p of i.list())R.push(ze(p,_,C));return R.push(d),le(R)}).catch(p=>je(p,8)?p:Promise.reject(p))}function _e(_,C,R){c.list().forEach(I=>ve(()=>I(_,C,R)))}function Xe(_,C,R,I,q){const u=K(_,C);if(u)return u;const d=C===We,p=ft?history.state:{};R&&(I||d?r.replace(_.fullPath,z({scroll:d&&p&&p.scroll},q)):r.push(_.fullPath,q)),l.value=_,Ie(_,C,R,d),Ue()}let Te;function Rt(){Te||(Te=r.listen((_,C,R)=>{if(!Dt.listening)return;const I=S(_),q=X(I);if(q){te(z(q,{replace:!0}),I).catch(Lt);return}f=I;const u=l.value;ft&&wc(lr(u.fullPath,R.delta),Cn()),he(I,u).catch(d=>je(d,12)?d:je(d,2)?(te(d.to,I).then(p=>{je(p,20)&&!R.delta&&R.type===Ut.pop&&r.go(-1,!1)}).catch(Lt),Promise.reject()):(R.delta&&r.go(-R.delta,!1),W(d,I,u))).then(d=>{d=d||Xe(I,u,!1),d&&(R.delta&&!je(d,8)?r.go(-R.delta,!1):R.type===Ut.pop&&je(d,20)&&r.go(-1,!1)),_e(I,u,d)}).catch(Lt)}))}let ot=Ot(),ne=Ot(),Q;function W(_,C,R){Ue(_);const I=ne.list();return I.length?I.forEach(q=>q(_,C,R)):console.error(_),Promise.reject(_)}function He(){return Q&&l.value!==We?Promise.resolve():new Promise((_,C)=>{ot.add([_,C])})}function Ue(_){return Q||(Q=!_,Rt(),ot.list().forEach(([C,R])=>_?R(_):C()),ot.reset()),_}function Ie(_,C,R,I){const{scrollBehavior:q}=e;if(!ft||!q)return Promise.resolve();const u=!R&&Rc(lr(_.fullPath,0))||(I||!R)&&history.state&&history.state.scroll||null;return Dr().then(()=>q(_,C,u)).then(d=>d&&xc(d)).catch(d=>W(d,_,C))}const pe=_=>r.go(_);let it;const lt=new Set,Dt={currentRoute:l,listening:!0,addRoute:v,removeRoute:O,hasRoute:H,getRoutes:A,resolve:S,options:e,push:N,replace:Z,go:pe,back:()=>pe(-1),forward:()=>pe(1),beforeEach:o.add,beforeResolve:i.add,afterEach:c.add,onError:ne.add,isReady:He,install(_){const C=this;_.component("RouterLink",cu),_.component("RouterView",du),_.config.globalProperties.$router=C,Object.defineProperty(_.config.globalProperties,"$route",{enumerable:!0,get:()=>Qe(l)}),ft&&!it&&l.value===We&&(it=!0,N(r.location).catch(q=>{}));const R={};for(const q in We)Object.defineProperty(R,q,{get:()=>l.value[q],enumerable:!0});_.provide(xs,C),_.provide(Ao,Nr(R)),_.provide(ts,l);const I=_.unmount;lt.add(_),_.unmount=function(){lt.delete(_),lt.size<1&&(f=We,Te&&Te(),Te=null,l.value=We,it=!1,Q=!1),I()}}};function le(_){return _.reduce((C,R)=>C.then(()=>ve(R)),Promise.resolve())}return Dt}function pu(e,t){const n=[],s=[],r=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;ivt(f,c))?s.push(c):n.push(c));const l=e.matched[i];l&&(t.matched.find(f=>vt(f,l))||r.push(l))}return[n,s,r]}const To=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n},gu={__name:"ScreenLayer",props:{index:{type:Number,default:0},fullscreen:{type:Boolean,default:!0}},setup(e){return(t,n)=>(wn(),_s(_l,{to:"#app"},[Pn("div",{class:gn(["layer",{fullscreen:e.fullscreen}]),style:pn({zIndex:e.index})},[Ji(t.$slots,"default",{},void 0,!0)],6)]))}},Er=To(gu,[["__scopeId","data-v-9070052b"]]);const mu=e=>(Ai("data-v-0029c2dd"),e=e(),Ti(),e),_u=mu(()=>Pn("div",{class:"background"},null,-1)),yu={__name:"BasicLayout",setup(e){return(t,n)=>{const s=no("router-view");return wn(),vl(be,null,[fe(Qe(Er),{index:1e3},{default:Dn(()=>[fe(s)]),_:1}),fe(Qe(Er),{index:1},{default:Dn(()=>[_u]),_:1})],64)}}},vu=To(yu,[["__scopeId","data-v-0029c2dd"]]),bu=()=>fc(()=>import("./TrunkA-020c3021.js"),[]),Eu=[{path:"/",redirect:{name:"shared-screen"}},{path:"/shared-screen/",name:"shared-screen",component:vu,redirect:{name:"trunk-a"},children:[{path:"trunk-a",name:"trunk-a",component:bu}]}],xu=hu({history:Tc(),routes:Eu}),Io=sc(lc);Io.use(xu);Io.mount("#app");export{Er as L,_s as c,wn as o,Qe as u}; diff --git a/index.html b/index.html index d03755e..83bdafb 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ Vite + Vue - +