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-b518cc9d.js

2 lines
38 KiB
JavaScript
Raw Normal View History

import{aB as Ge,_ as Je,r as P,b as Pe,E as De,d as he,z as Fe,H as R,ah as b,l as _,m as T,p as S,V as d,P as m,X as Ne,O as x,aC as je,u as h,R as re,aD as de,aE as _e,F as K,a8 as ee,U as W,a3 as ae,I as ce,e as E,aa as Ye,S as I,T as j,J as H,aF as G,aG as ze,w as ge,c as Be,K as Oe,aH as be,aI as ye,s as Ze,a9 as se,n as Qe,aJ as et,Q as pe,W as fe}from"./vue-2207505e.js";import{g as tt,s as Me,u as ve,a as We,_ as D,b as Y,r as nt,c as we,d as ot}from"./index-97c15cdc.js";import{h as st,j as at,g as lt,k as rt,b as ie,l as ct,n as it,o as He,u as ut,r as dt,p as _t,q as pt,s as ft,t as vt}from"./element-a4dc66a7.js";import{_ as mt}from"./index.vue_vue_type_script_setup_true_lang-ff750191.js";import"./vxe-51e6f8a7.js";var X=(n=>(n[n.Mobile=0]="Mobile",n[n.Desktop=1]="Desktop",n))(X||{});const ht="opened",Ue="closed";function gt(n){n?Me(ht):Me(Ue)}const te=Ge("app",()=>{const n=Je({opened:tt()!==Ue,withoutAnimation:!1}),e=P(X.Desktop);return Pe(()=>n.opened,o=>gt(o)),{device:e,sidebar:n,toggleSidebar:o=>{n.opened=!n.opened,n.withoutAnimation=o},closeSidebar:o=>{n.opened=!1,n.withoutAnimation=o},toggleDevice:o=>{e.value=o}}}),bt=992,yt=()=>{const n=te(),{listenerRouteChange:e}=ve(),t=()=>document.body.getBoundingClientRect().width-1<bt,l=()=>{if(!document.hidden){const s=t();n.toggleDevice(s?X.Mobile:X.Desktop),s&&n.closeSidebar(!0)}};e(()=>{n.device===X.Mobile&&n.sidebar.opened&&n.closeSidebar(!1)}),De(()=>{window.addEventListener("resize",l)}),he(()=>{t()&&(n.toggleDevice(X.Mobile),n.closeSidebar(!0))}),Fe(()=>{window.removeEventListener("resize",l)})},wt={class:"app-main"},xt={class:"app-scrollbar"},St=R({__name:"AppMain",setup(n){const e=We();return(t,l)=>{const s=b("router-view"),o=b("el-backtop");return _(),T("section",wt,[S("div",xt,[d(s,null,{default:m(({Component:a,route:r})=>[d(Ne,{name:"el-fade-in",mode:"out-in"},{default:m(()=>[(_(),x(je,{include:h(e).cachedViews},[(_(),x(re(a),{key:r.path}))],1032,["include"]))]),_:2},1024)]),_:1})]),d(o),d(o,{target:".app-scrollbar"})])}}});const xe=D(St,[["__scopeId","data-v-be55f58e"]]),kt=R({__name:"index",props:{isActive:{type:Boolean,default:!1}},emits:["toggleClick"],setup(n,{emit:e}){const t=n,l=()=>{e("toggleClick")};return(s,o)=>{const a=b("el-icon");return _(),T("div",{onClick:l},[d(a,{size:20,class:"icon"},{default:m(()=>[t.isActive?(_(),x(h(st),{key:0})):(_(),x(h(at),{key:1}))]),_:1})])}}});const Ct=D(kt,[["__scopeId","data-v-252d9bf8"]]);function Tt(n){for(var e=[],t=0;t<n.length;){var l=n[t];if(l==="*"||l==="+"||l==="?"){e.push({type:"MODIFIER",index:t,value:n[t++]});continue}if(l==="\\"){e.push({type:"ESCAPED_CHAR",index:t++,value:n[t++]});continue}if(l==="{"){e.push({type:"OPEN",index:t,value:n[t++]});continue}if(l==="}"){e.push({type:"CLOSE",index:t,value:n[t++]});continue}if(l===":"){for(var s="",o=t+1;o<n.length;){var a=n.charCodeAt(o);if(a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122||a===95){s+=n[o++];continue}break}if(!s)throw new TypeError("Missing parameter name at ".concat(t));e.push({type:"NAME",index:t,value:s}),t=o;continue}if(l==="("){var r=1,i="",o=t+1;if(n[o]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(o));for(;o<n.length;){if(n[o]==="\\"){i+=n[o++]+n[o++];continue}if(n[o]===")"){if(r--,r===0){o++;break}}else if(n[o]==="("&&(r++,n[o+1]!=="?"))throw new TypeError("Capturing groups are not allowed at ".concat(o));i+=n[o++]}if(r)throw new TypeError("Unbalanced pattern at ".concat(t));if(!i)throw new TypeError("Missing pattern at ".concat(t));e.push({type:"PATTERN",index:t,value:i}),t=o;continue}e.push({type:"CHAR",index:t,value:n[t++]})}return e.push({type:"END",index:t,value:""}),e}function $t(n,e){e===void 0&&(e={});for(var t=Tt(n),l=e.prefixes,s=l===void 0?"./":l,o="[^".concat(Vt(e.delimiter||"/#?"),"]+?"),a=[],r=0,i=0,u="",p=function(O){if(i<t.length&&t[i].type===O)return t[i++].value},c=function(O){var M=p(O);if(M!==void 0)return M;var k=t[i],f=k.type,V=k.index;throw new TypeError("Unexpected ".concat(f," at ").concat(V,", expected ").concat(O))},y=function(){for(var O="",M;M=p("CHAR")||p("ESCAPED_CHAR");)O+=M;return