mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-19 03:11:20 -08:00
add tr.js
This commit is contained in:
1 parent
e71a683dfd
commit
c930bafd67
228 files changed
+3822
-2332
No files matched your search
@@ -0,0 +1,7 @@
|
||||
import{d as $,o as r,c as d,r as v,n as N,a as j,t as x,_ as k,b as w,w as h,T as Ie,e as b,u as at,i as $t,P as Pt,f as ye,g as L,h as S,j as W,k as _,l,p as R,m as U,q as Vt,s as wt,v as Z,x as be,y as St,z as te,A as ke,B as Ae,C as Be,D as Lt,E as Y,F as B,G as E,H as Ne,I as ae,J as y,K as Q,L as it,M as $e,N as ue,O as He,Q as Mt,R as xt,S as Ct,U as Xe,V as Tt,W as It,X as Je,Y as At,Z as rt,$ as Bt,a0 as Nt,a1 as de,a2 as Ht,a3 as zt,a4 as Et}from"./framework.532b6b18.js";const Dt=$({__name:"VPBadge",props:{text:{},type:{}},setup(e){return(t,n)=>(r(),d("span",{class:N(["VPBadge",t.type??"tip"])},[v(t.$slots,"default",{},()=>[j(x(t.text),1)],!0)],2))}});const Ot=k(Dt,[["__scopeId","data-v-02919808"]]),Ft={key:0,class:"VPBackdrop"},jt=$({__name:"VPBackdrop",props:{show:{type:Boolean}},setup(e){return(t,n)=>(r(),w(Ie,{name:"fade"},{default:h(()=>[t.show?(r(),d("div",Ft)):b("",!0)]),_:1}))}});const Gt=k(jt,[["__scopeId","data-v-c79a1216"]]),C=at;function qt(e,t){let n,s=!1;return()=>{n&&clearTimeout(n),s?n=setTimeout(e,t):(e(),s=!0,setTimeout(()=>{s=!1},t))}}function Me(e){return/^\//.test(e)?e:`/${e}`}function ie(e){if($t(e))return e.replace(Pt,"");const{site:t}=C(),{pathname:n,search:s,hash:o}=new URL(e,"http://a.com"),a=n.endsWith("/")||n.endsWith(".html")?e:e.replace(/(?:(^\.+)\/)?.*$/,`$1${n.replace(/(\.md)?$/,t.value.cleanUrls?"":".html")}${s}${o}`);return ye(a)}function re({removeCurrent:e=!0,correspondingLink:t=!1}={}){const{site:n,localeIndex:s,page:o,theme:a}=C(),i=L(()=>{var u,p;return{label:(u=n.value.locales[s.value])==null?void 0:u.label,link:((p=n.value.locales[s.value])==null?void 0:p.link)||(s.value==="root"?"/":`/${s.value}/`)}});return{localeLinks:L(()=>Object.entries(n.value.locales).flatMap(([u,p])=>e&&i.value.label===p.label?[]:{text:p.label,link:Rt(p.link||(u==="root"?"/":`/${u}/`),a.value.i18nRouting!==!1&&t,o.value.relativePath.slice(i.value.link.length-1),!n.value.cleanUrls)})),currentLang:i}}function Rt(e,t,n,s){return t?e.replace(/\/$/,"")+Me(n.replace(/(^|\/)index\.md$/,"$1").replace(/\.md$/,s?".html":"")):e}const Ut=e=>(R("data-v-a172abb3"),e=e(),U(),e),Wt={class:"NotFound"},Kt={class:"code"},Yt={class:"title"},Xt=Ut(()=>_("div",{class:"divider"},null,-1)),Jt={class:"quote"},Qt={class:"action"},Zt=["href","aria-label"],en=$({__name:"NotFound",setup(e){const{site:t,theme:n}=C(),{localeLinks:s}=re({removeCurrent:!1}),o=S("/");return W(()=>{var i;const a=window.location.pathname.replace(t.value.base,"").replace(/(^.*?\/).*$/,"/$1");s.value.length&&(o.value=((i=s.value.find(({link:c})=>c.startsWith(a)))==null?void 0:i.link)||s.value[0].link)}),(a,i)=>{var c,u,p,m,f;return r(),d("div",Wt,[_("p",Kt,x(((c=l(n).notFound)==null?void 0:c.code)??"404"),1),_("h1",Yt,x(((u=l(n).notFound)==null?void 0:u.title)??"PAGE NOT FOUND"),1),Xt,_("blockquote",Jt,x(((p=l(n).notFound)==null?void 0:p.quote)??"But if you don't change your direction, and if you keep looking, you may end up where you are heading."),1),_("div",Qt,[_("a",{class:"link",href:l(ye)(o.value),"aria-label":((m=l(n).notFound)==null?void 0:m.linkLabel)??"go to home"},x(((f=l(n).notFound)==null?void 0:f.linkText)??"Take me home"),9,Zt)])])}}});const tn=k(en,[["__scopeId","data-v-a172abb3"]]);function lt(e){return Vt()?(wt(e),!0):!1}function ze(e){return typeof e=="function"?e():l(e)}const nn=typeof window<"u"&&typeof document<"u",sn=()=>{};function on(e){const t=ze(e);return(t==null?void 0:t.$el)??t}const Ee=nn?window:void 0;function an(...e){let t,n,s,o;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,s,o]=e,t=Ee):[t,n,s,o]=e,!t)return sn;Array.isArray(n)||(n=[n]),Array.isArray(s)||(s=[s]);const a=[],i=()=>{a.forEach(m=>m()),a.length=0},c=(m,f,P,g)=>(m.addEventListener(f,P,g),()=>m.removeEventListener(f,P,g)),u=Z(()=>[on(t),ze(o)],([m,f])=>{i(),m&&a.push(...n.flatMap(P=>s.map(g=>c(m,P,g,f))))},{immediate:!0,flush:"post"}),p=()=>{u(),i()};return lt(p),p}function rn(){const e=S(!1);return St()&&W(()=>{e.value=!0}),e}function ln(e){const t=rn();return L(()=>(t.value,!!e()))}function xe(e,t={}){const{window:n=Ee}=t,s=ln(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let o;const a=S(!1),i=p=>{a.value=p.matches},c=()=>{o&&("removeEventListener"in o?o.removeEventListener("change",i):o.removeListener(i))},u=be(()=>{s.value&&(c(),o=n.matchMedia(ze(e)),"addEventListener"in o?o.addEventListener("change",i):o.addListener(i),a.value=o.matches)});return lt(()=>{u(),c(),o=void 0}),a}function ct({window:e=Ee}={}){if(!e)return{x:S(0),y:S(0)};const t=S(e.scrollX),n=S(e.scrollY);return an(e,"scroll",()=>{t.value=e.scrollX,n.value=e.scrollY},{capture:!1,passive:!0}),{x:t,y:n}}function ut(e,t){if(Array.isArray(e))return _e(e);if(e==null)return[];t=Me(t);const n=Object.keys(e).sort((o,a)=>a.split("/").length-o.split("/").length).find(o=>t.startsWith(Me(o))),s=n?e[n]:[];return Array.isArray(s)?_e(s):_e(s.items,s.base)}function cn(e){const t=[];let n=0;for(const s in e){const o=e[s];if(o.items){n=t.push(o);continue}t[n]||t.push({items:[]}),Line truncated
|
||||
-webkit-transition: none !important;
|
||||
-moz-transition: none !important;
|
||||
-o-transition: none !important;
|
||||
-ms-transition: none !important;
|
||||
transition: none !important;
|
||||
}`)),document.head.appendChild(g),s.value=P,c[P?"add":"remove"]("dark"),window.getComputedStyle(g).opacity,document.head.removeChild(g)}return m}return Z(s,i=>{n.value=i}),(i,c)=>(r(),w(Xo,{title:"toggle dark mode",class:"VPSwitchAppearance","aria-checked":s.value,onClick:l(o)},{default:h(()=>[y(na,{class:"sun"}),y(la,{class:"moon"})]),_:1},8,["aria-checked","onClick"]))}});const qe=k(ca,[["__scopeId","data-v-82b282f1"]]),ua={key:0,class:"VPNavBarAppearance"},da=$({__name:"VPNavBarAppearance",setup(e){const{site:t}=C();return(n,s)=>l(t).appearance?(r(),d("div",ua,[y(qe)])):b("",!0)}});const _a=k(da,[["__scopeId","data-v-f6a63727"]]),Re=S();let _t=!1,we=0;function va(e){const t=S(!1);if(ke){!_t&&pa(),we++;const n=Z(Re,s=>{var o,a,i;s===e.el.value||(o=e.el.value)!=null&&o.contains(s)?(t.value=!0,(a=e.onFocus)==null||a.call(e)):(t.value=!1,(i=e.onBlur)==null||i.call(e))});Ae(()=>{n(),we--,we||ha()})}return Tt(t)}function pa(){document.addEventListener("focusin",vt),_t=!0,Re.value=document.activeElement}function ha(){document.removeEventListener("focusin",vt)}function vt(){Re.value=document.activeElement}const fa={},ma={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",viewBox:"0 0 24 24"},ga=_("path",{d:"M12,16c-0.3,0-0.5-0.1-0.7-0.3l-6-6c-0.4-0.4-0.4-1,0-1.4s1-0.4,1.4,0l5.3,5.3l5.3-5.3c0.4-0.4,1-0.4,1.4,0s0.4,1,0,1.4l-6,6C12.5,15.9,12.3,16,12,16z"},null,-1),ya=[ga];function ba(e,t){return r(),d("svg",ma,ya)}const pt=k(fa,[["render",ba]]),ka={},$a={xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",viewBox:"0 0 24 24"},Pa=_("circle",{cx:"12",cy:"12",r:"2"},null,-1),Va=_("circle",{cx:"19",cy:"12",r:"2"},null,-1),wa=_("circle",{cx:"5",cy:"12",r:"2"},null,-1),Sa=[Pa,Va,wa];function La(e,t){return r(),d("svg",$a,Sa)}const Ma=k(ka,[["render",La]]),xa={class:"VPMenuLink"},Ca=$({__name:"VPMenuLink",props:{item:{}},setup(e){const{page:t}=C();return(n,s)=>(r(),d("div",xa,[y(X,{class:N({active:l(te)(l(t).relativePath,n.item.activeMatch||n.item.link,!!n.item.activeMatch)}),href:n.item.link,target:n.item.target,rel:n.item.rel},{default:h(()=>[j(x(n.item.text),1)]),_:1},8,["class","href","target","rel"])]))}});const Pe=k(Ca,[["__scopeId","data-v-2f2cfafc"]]),Ta={class:"VPMenuGroup"},Ia={key:0,class:"title"},Aa=$({__name:"VPMenuGroup",props:{text:{},items:{}},setup(e){return(t,n)=>(r(),d("div",Ta,[t.text?(r(),d("p",Ia,x(t.text),1)):b("",!0),(r(!0),d(B,null,E(t.items,s=>(r(),d(B,null,["link"in s?(r(),w(Pe,{key:0,item:s},null,8,["item"])):b("",!0)],64))),256))]))}});const Ba=k(Aa,[["__scopeId","data-v-69e747b5"]]),Na={class:"VPMenu"},Ha={key:0,class:"items"},za=$({__name:"VPMenu",props:{items:{}},setup(e){return(t,n)=>(r(),d("div",Na,[t.items?(r(),d("div",Ha,[(r(!0),d(B,null,E(t.items,s=>(r(),d(B,{key:s.text},["link"in s?(r(),w(Pe,{key:0,item:s},null,8,["item"])):(r(),w(Ba,{key:1,text:s.text,items:s.items},null,8,["text","items"]))],64))),128))])):b("",!0),v(t.$slots,"default",{},void 0,!0)]))}});const Ea=k(za,[["__scopeId","data-v-e7ea1737"]]),Da=["aria-expanded","aria-label"],Oa={key:0,class:"text"},Fa=["innerHTML"],ja={class:"menu"},Ga=$({__name:"VPFlyout",props:{icon:{},button:{},label:{},items:{}},setup(e){const t=S(!1),n=S();va({el:n,onBlur:s});function s(){t.value=!1}return(o,a)=>(r(),d("div",{class:"VPFlyout",ref_key:"el",ref:n,onMouseenter:a[1]||(a[1]=i=>t.value=!0),onMouseleave:a[2]||(a[2]=i=>t.value=!1)},[_("button",{type:"button",class:"button","aria-haspopup":"true","aria-expanded":t.value,"aria-label":o.label,onClick:a[0]||(a[0]=i=>t.value=!t.value)},[o.button||o.icon?(r(),d("span",Oa,[o.icon?(r(),w(Q(o.icon),{key:0,class:"option-icon"})):b("",!0),o.button?(r(),d("span",{key:1,innerHTML:o.button},null,8,Fa)):b("",!0),y(pt,{class:"text-icon"})])):(r(),w(Ma,{key:1,class:"icon"}))],8,Da),_("div",ja,[y(Ea,{items:o.items},{default:h(()=>[v(o.$slots,"default",{},void 0,!0)]),_:3},8,["items"])])],544))}});const Ue=k(Ga,[["__scopeId","data-v-a7b5672a"]]),qa={discord:'<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Discord</title><path d="M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6
Line truncated
|
||||
Reference in new issue
Block a user