This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
handingkang-ohmyweb/static/index.a269ff05.js

2 lines
25 KiB
JavaScript
Raw Normal View History

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