app/assets/chunks/theme.DrOGYEE7.js

19 lines
80 KiB
JavaScript
Raw Normal View History

const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/chunks/VPLocalSearchBox.CqAObaRV.js","assets/chunks/framework.Z6UMW4JZ.js"])))=>i.map(i=>d[i]);
import{u as ve,d as b,o as i,c as p,r as f,n as x,a as Z,t as C,b as w,w as v,e as k,T as Ae,_ as $,i as wt,f as Pt,g as Ee,h as T,j as c,k as u,l as te,m as Pe,p as N,q as W,s as he,v as q,x as re,y as Be,z as Lt,A as Vt,B as ne,F as D,C as R,D as Xe,E as me,G as S,H as G,I as Qe,J as _e,K as Q,L as ie,M as Tt,N as ge,O as Le,P as Ze,Q as et,R as be,S as Nt,U as Ct,V as It,W as tt,X as nt,Y as Mt,Z as At,$ as Et,a0 as ot,a1 as Bt,a2 as Ht,a3 as Ot,a4 as Ve,a5 as Te,a6 as Ne}from"./framework.Z6UMW4JZ.js";const Dt={en:{stats:"Stats",online:"Online",offline:"Offline",total:"Total",fetching:"Fetching",stars:"Stars",forks:"Forks",issues:"Issues",prs:"Pull Requests",visitors:"Visitors",size:"Size",plugins:"Plugins",resources:"Resources",pluginStore:"Plugin Store",pluginStoreDesc:"Content from the LightSnow Plugin Store, LightSnow supports NoneBot through the lpnonebot plugin, and references some NoneBot plugins",liteyukiOnly:"Liteyuki Only",search:"Search",resourceStore:"Resources Store",thx_contributors:"Thanks the following contributors!",easterEgg:"Congratulations on finding the Easter egg!",publishPlugin:"Publish Plugin",publishRes:"Publish Resource",closeButtonText:"Close",submitButtonText:"Submit",resName:"Name",resDesc:"Description",resAuthor:"Author",resLink:"Download Link",resHomepage:"Homepage",resNameText:"Example: Kawaii Style Theme",resDescText:"Example: A kawaii style and color theme",resAuthorText:"Usually the github username, Example: yanyongyu",resLinkText:"Direct download link, usually zip package link",resHomepageText:'Optional, can be the name of the git platform repository"'},zh:{stats:"统计信息",online:"在线",offline:"离线",total:"实例",fetching:"获取中",stars:"星星",forks:"分叉",issues:"议题",prs:"拉取请求",visitors:"访客",size:"大小",plugins:"插件",resources:"主题资源",store:"商店",pluginStore:"插件商店",pluginStoreDesc:"内容来自轻雪插件商店轻雪通过lpnonebot插件对NoneBot实现支持引用了部分NoneBot插件",liteyukiOnly:"仅轻雪",search:"搜索",resourceStore:"资源商店",thx_contributors:"感谢以下贡献者!",easterEgg:"恭喜你发现了彩蛋!",publishPlugin:"发布插件",publishRes:"发布资源",closeButtonText:"关闭",submitButtonText:"提交",resName:"名称",resDesc:"描述",resAuthor:"作者",resLink:"下载链接",resHomepage:"主页",resNameText:"示例:可爱风格主题",resDescText:"示例:一个可爱风格和配色的主题",resAuthorText:"通常为github用户名示例yanyongyu",resLinkText:"直接下载链接通常为zip包链接",resHomepageText:"可选可为git平台仓库名"}};let pe={};function st(o,e){return o=ke(o),Dt[o][e]}function ke(o){return o.includes("-")?o.split("-")[0]:o}function xt(){const o=ke(ve().site.value.lang);for(let e in pe)pe[e].value=st(o,e)}function j(o){const e=ke(ve().site.value.lang);return pe[o]=st(e,o),pe[o]||o}const Ft=b({__name:"VPBadge",props:{text:{},type:{default:"tip"}},setup(o){return(e,t)=>(i(),p("span",{class:x(["VPBadge",e.type])},[f(e.$slots,"default",{},()=>[Z(C(e.text),1)])],2))}}),Rt={key:0,class:"VPBackdrop"},jt=b({__name:"VPBackdrop",props:{show:{type:Boolean}},setup(o){return(e,t)=>(i(),w(Ae,{name:"fade"},{default:v(()=>[e.show?(i(),p("div",Rt)):k("",!0)]),_:1}))}}),zt=$(jt,[["__scopeId","data-v-ddcf2ddc"]]),H=ve;function Ut(o,e){let t,s=!1;return()=>{t&&clearTimeout(t),s?t=setTimeout(o,e):(o(),(s=!0)&&setTimeout(()=>s=!1,e))}}function Ce(o){return/^\//.test(o)?o:`/${o}`}function He(o){const{pathname:e,search:t,hash:s,protocol:n}=new URL(o,"http://a.com");if(wt(o)||o.startsWith("#")||!n.startsWith("http")||!Pt(e))return o;const{site:a}=H(),l=e.endsWith("/")||e.endsWith(".html")?o:o.replace(/(?:(^\.+)\/)?.*$/,`$1${e.replace(/(\.md)?$/,a.value.cleanUrls?"":".html")}${t}${s}`);return Ee(l)}function le({correspondingLink:o=!1}={}){const{site:e,localeIndex:t,page:s,theme:n,hash:a}=H(),l=T(()=>{var d,h;return{label:(d=e.value.locales[t.value])==null?void 0:d.label,link:((h=e.value.locales[t.value])==null?void 0:h.link)||(t.value==="root"?"/":`/${t.
* vue-router v4.5.0
* (c) 2024 Eduardo San Martin Morote
* @license MIT
*/var We;(function(o){o.pop="pop",o.push="push"})(We||(We={}));var qe;(function(o){o.back="back",o.forward="forward",o.unknown=""})(qe||(qe={}));var Je;(function(o){o[o.aborted=4]="aborted",o[o.cancelled=8]="cancelled",o[o.duplicated=16]="duplicated"})(Je||(Je={}));const Ar=Symbol("");function Er(o,e,t){const s=()=>{o[e].delete(t)};re(s),Ht(s),Ot(()=>{o[e].add(t)}),o[e].add(t)}function Br(o){const e=ie(Ar,{}).value;e&&Er(e,"updateGuards",o)}const Hr={class:"stats-bar-content"},Or={class:"stats-bar"},Dr={class:"stats-info"},xr={class:"stats-title"},Fr={class:"sections"},Rr=["href"],jr={class:"section-tab"},zr={class:"text"},Ur={class:"number"},Gr=b({__name:"StatsBar",setup(o){const{Layout:e}=dt;let t=null;const s={total:{name:"total",color:"#00a6ff",value:N(-1),link:Ke},online:{name:"online",color:"#7eff7e",value:N(-1),link:Ke},stars:{name:"stars",color:"#ffcc00",value:N(-1),link:`${se}/stargazers`},forks:{name:"forks",color:"#ff6600",value:N(-1),link:`${se}/forks`},issues:{name:"issues",color:"#ff0000",value:N(-1),link:`${se}/issues`},prs:{name:"prs",color:"#f15df1",value:N(-1),link:`${se}/pulls`},plugins:{name:"plugins",color:"#a766ff",value:N(-1),link:"./store/plugin"},resources:{name:"resources",color:"#5a54fa",value:N(-1),link:"./store/resource"},visitors:{name:"visitors",color:"#00a6ff",value:N(-1),link:se}};async function n(){[s.online.value.value,s.total.value.value,s.plugins.value.value,s.resources.value.value,s.visitors.value.value,t]=await Promise.all([oe.getOnline(),oe.getTotal(),oe.getPluginNum(),oe.getResourceNum(),oe.getVisitCount(),oe.getGithubStats()]),s.stars.value.value=(t==null?void 0:t.stars)||0,s.forks.value.value=(t==null?void 0:t.forks)||0,s.issues.value.value=(t==null?void 0:t.issues)||0,s.prs.value.value=(t==null?void 0:t.prs)||0}function a(l){return l.value.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")}return q(()=>{const l=setInterval(n,1e4);n(),Ir(),re(()=>{clearInterval(l)})}),Br(()=>{xt()}),console.log(` _ _ _ _ _ ____ _
| | (_) | | | (_) _ \\ | |
| | _| |_ ___ _ _ _ _| | ___| |_) | ___ | |_
| | | | __/ _ \\ | | | | | | |/ / | _ < / _ \\| __|
| |____| | || __/ |_| | |_| | <| | |_) | (_) | |_
|______|_|\\__\\___|\\__, |\\__,_|_|\\_\\_|____/ \\___/ \\__|
__/ |
|___/ `),console.log(j("easterEgg")),(l,r)=>(i(),w(u(e),null,{"home-features-before":v(()=>[c("div",Hr,[c("div",Or,[c("div",Dr,[c("div",xr,C(u(j)("stats")),1),c("div",Fr,[(i(!0),p(D,null,R(Object.values(s),d=>(i(),p("div",{key:d.name,class:"section"},[c("a",{href:d.link,target:"_blank"},[c("div",jr,[c("span",{class:"dot",style:ge({backgroundColor:d.color})},null,4),c("span",zr,C(u(j)(d.name)),1)]),c("div",Ur,C(a(d.value)),1)],8,Rr)]))),128))])]),r[0]||(r[0]=c("div",{class:"starmap"},[c("iframe",{src:"https://starmap.liteyuki.icu/",width:"100%",height:"300px",class:"gamma"})],-1))])])]),_:1}))}}),Ye=$(Gr,[["__scopeId","data-v-2391887b"]]);var Kr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Wr(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var pt={exports:{}};/*!
* clipboard.js v2.0.11
* https://clipboardjs.com/
*
* Licensed MIT © Zeno Rocha
*/(function(o,e){(function(s,n){o.exports=n()})(Kr,function(){return function(){var t={686:function(a,l,r){r.d(l,{default:function(){return St}});var d=r(279),h=r.n(d),_=r(370),m=r.n(_),g=r(817),I=r.n(g);function V(B){try{return document.execCommand(B)}catch{return!1}}var A=function(L){var P=I()(L);return V("cut"),P},y=A;function F(B){var L=document.documentElement.getAttribute("dir")==="rtl",P=document.createElement("textarea");P.style.fontSize="12pt",P.style.border="0",P.style.padding="0",P.style.margin="0",P.style.position="absolute",P.style[L?"right":"left"]="-9999px";var M=window.pageYOffset||document.documentElement.scrollTop;return P.style.top="".concat(M,"px"),P.setAttribute("readonly",""),P.value=B,P}var z=function(L,P){var M=F(L);P.container.appendChild(M);var E=I()(M);return V("copy"),M.remove(),E},Y=function(L){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},M="";return typeof L=="string"?M=z(L,P):L instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(L==null?void 0:L.type)?M=z(L.value,P):(M=I()(L),V("copy")),M},ee=Y;function X(B){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?X=function(P){return typeof P}:X=function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P},X(B)}var ft=function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},P=L.action,M=P===void 0?"copy":P,E=L.container,O=L.target,U=L.text;if(M!=="copy"&&M!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(O!==void 0)if(O&&X(O)==="object"&&O.nodeType===1){if(M==="copy"&&O.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(M==="cut"&&(O.hasAttribute("readonly")||O.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(U)return ee(U,{container:E});if(O)return M==="cut"?y(O):ee(O,{container:E})},vt=ft;function ae(B){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ae=function(P){return typeof P}:ae=function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P},ae(B)}function ht(B,L){if(!(B instanceof L))throw new TypeError("Cannot call a class as a function")}function Ue(B,L){for(var P=0;P<L.length;P++){var M=L[P];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(B,M.key,M)}}function mt(B,L,P){return L&&Ue(B.prototype,L),P&&Ue(B,P),B}function _t(B,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function");B.prototype=Object.create(L&&L.prototype,{constructor:{value:B,writable:!0,configurable:!0}}),L&&$e(B,L)}function $e(B,L){return $e=Object.setPrototypeOf||function(M,E){return M.__proto__=E,M},$e(B,L)}function gt(B){var L=yt();return function(){var M=ue(B),E;if(L){var O=ue(this).constructor;E=Reflect.construct(M,arguments,O)}else E=M.apply(this,arguments);return bt(this,E)}}function bt(B,L){return L&&(ae(L)==="object"||typeof L=="function")?L:kt(B)}function kt(B){if(B===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return B}function yt(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function ue(B){return ue=Object.setPrototypeOf?Object.getPrototypeOf:function(P){return P.__proto__||Object.getPrototypeOf(P)},ue(B)}function Se(B,L){var P="data-clipboard-".concat(B);if(L.hasAttribute(P))return L.getAttribute(P)}var $t=function(B){_t(P,B);var L=gt(P);function P(M,E){var O;return ht(this,P),O=L.call(this),O.resolveOptions(E),O.listenClick(M),O}return mt(P,[{key:"resolveOptions",value:function(){var E=argume