2 lines
28 KiB
JavaScript
2 lines
28 KiB
JavaScript
|
|
import{d as e,r as t,a,c as n,o as r,b as l,e as i,w as o,T as s,f as c,u,g as d,h as f,i as p,_ as h,j as m,k as v,F as g,l as A,t as w,m as b,n as y,p as C,q as k,E as x,s as E,v as V,x as S,y as B,z as D,A as F,B as _,C as L,D as I,G as T,H as R,I as M,J as N,K as O,L as Y,M as j,N as Q,O as P,P as q,Q as z,R as U,S as H,U as J,V as X}from"./index.1d4fd586.js";import{_ as G}from"./index.vue_vue_type_script_setup_true_lang.16d244a0.js";const K=!0,W=!0,Z=!0,$=!0,ee=!0,te=!0,ae=e("settings",(()=>({fixedHeader:t(Z),showSettings:t(K),showTagsView:t(W),showSidebarLogo:t($),showThemeSwitch:t(ee),showScreenfull:t(te)}))),ne={class:"app-main"},re=h(a({__name:"AppMain",setup(e){const t=p(),a=n((()=>t.path));return(e,t)=>{const n=f("router-view");return r(),l("section",ne,[i(n,null,{default:o((({Component:e})=>[i(s,{name:"fade-transform",mode:"out-in"},{default:o((()=>[(r(),c(d(e),{key:u(a)}))])),_:2},1024)])),_:1})])}}}),[["__scopeId","data-v-0058dddf"]]);function le(e,t){void 0===t&&(t={});for(var a=function(e){for(var t=[],a=0;a<e.length;){var n=e[a];if("*"!==n&&"+"!==n&&"?"!==n)if("\\"!==n)if("{"!==n)if("}"!==n)if(":"!==n)if("("!==n)t.push({type:"CHAR",index:a,value:e[a++]});else{var r=1,l="";if("?"===e[o=a+1])throw new TypeError('Pattern cannot start with "?" at '.concat(o));for(;o<e.length;)if("\\"!==e[o]){if(")"===e[o]){if(0==--r){o++;break}}else if("("===e[o]&&(r++,"?"!==e[o+1]))throw new TypeError("Capturing groups are not allowed at ".concat(o));l+=e[o++]}else l+=e[o++]+e[o++];if(r)throw new TypeError("Unbalanced pattern at ".concat(a));if(!l)throw new TypeError("Missing pattern at ".concat(a));t.push({type:"PATTERN",index:a,value:l}),a=o}else{for(var i="",o=a+1;o<e.length;){var s=e.charCodeAt(o);if(!(s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||95===s))break;i+=e[o++]}if(!i)throw new TypeError("Missing parameter name at ".concat(a));t.push({type:"NAME",index:a,value:i}),a=o}else t.push({type:"CLOSE",index:a,value:e[a++]});else t.push({type:"OPEN",index:a,value:e[a++]});else t.push({type:"ESCAPED_CHAR",index:a++,value:e[a++]});else t.push({type:"MODIFIER",index:a,value:e[a++]})}return t.push({type:"END",index:a,value:""}),t}(e),n=t.prefixes,r=void 0===n?"./":n,l="[^".concat(function(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}(t.delimiter||"/#?"),"]+?"),i=[],o=0,s=0,c="",u=function(e){if(s<a.length&&a[s].type===e)return a[s++].value},d=function(e){var t=u(e);if(void 0!==t)return t;var n=a[s],r=n.type,l=n.index;throw new TypeError("Unexpected ".concat(r," at ").concat(l,", expected ").concat(e))},f=function(){for(var e,t="";e=u("CHAR")||u("ESCAPED_CHAR");)t+=e;return t};s<a.length;){var p=u("CHAR"),h=u("NAME"),m=u("PATTERN");if(h||m){var v=p||"";-1===r.indexOf(v)&&(c+=v,v=""),c&&(i.push(c),c=""),i.push({name:h||o++,prefix:v,suffix:"",pattern:m||l,modifier:u("MODIFIER")||""})}else{var g=p||u("ESCAPED_CHAR");if(g)c+=g;else if(c&&(i.push(c),c=""),u("OPEN")){v=f();var A=u("NAME")||"",w=u("PATTERN")||"",b=f();d("CLOSE"),i.push({name:A||(w?o++:""),pattern:A&&!w?l:w,prefix:v,suffix:b,modifier:u("MODIFIER")||""})}else d("END")}}return i}function ie(e,t){return function(e,t){void 0===t&&(t={});var a=function(e){return e&&e.sensitive?"":"i"}(t),n=t.encode,r=void 0===n?function(e){return e}:n,l=t.validate,i=void 0===l||l,o=e.map((function(e){if("object"==typeof e)return new RegExp("^(?:".concat(e.pattern,")$"),a)}));return function(t){for(var a="",n=0;n<e.length;n++){var l=e[n];if("string"!=typeof l){var s=t?t[l.name]:void 0,c="?"===l.modifier||"*"===l.modifier,u="*"===l.modifier||"+"===l.modifier;if(Array.isArray(s)){if(!u)throw new TypeError('Expected "'.concat(l.name,'" to not repeat, but got an array'));if(0===s.length){if(c)continue;throw new TypeError('Expected "'.concat(l.name,'" to not be empty'))}for(var d=0;d<s.length;d++){var f=r(s[d],l);if(i&&!o[n].test(f))throw new TypeError('Expected all "'.concat(l.name,'" to match "').concat(l.pattern,'", but got "').concat(f,'"'));a+=l.prefix+f+l.suffix}}else if("string"!=typeof s&&"number"!=typeof s){if(!c){var p=u?"an array":"a string";throw new TypeError('Expected "'
|