PageSourceSearch

https://xiaoshishi.cn/themes/moesora/assets/dist/moesora.js?v=1.0.2

js xiaoshishi.cn collected 2026-10-04 01:41:07 UTC 28,749 bytes, 3 lines download raw bytes

1(function(){var r,l,f,s,m,h,k,c,b,o,i,d;l=window.MoesoraConfig||{},h=document.title,f=l.hiddenTitle||"(つ_<)~ 你去哪儿了!",i=l.visibleTitle||"(*´∇`*) 欢迎回来!",o=null,r=function(t){c.classList.toggle("dark",t)},k=function(){try{return localStorage.getItem("moesora-theme")}catch{return null}},d=function(t){try{localStorage.setItem("moesora-theme",t)}catch{}},s=function(){var t;t=document.getElementById("moesora-loading"),t&&(t.style.opacity="0",setTimeout(function(){t.parentNode&&t.remove()},400))},document.addEventListener("visibilitychange",function(){document.hidden?(o&&clearTimeout(o),document.title=f):(document.title=i,o=setTimeout(function(){document.title=h},2e3))}),c=document.documentElement,m=window.matchMedia?window.matchMedia("(prefers-color-scheme: dark)"):null,b=document.getElementById("moe-theme-toggle"),b&&b.addEventListener("click",function(){var t;t=c.classList.contains("dark"),r(!t),d(t?"light":"dark")}),m&&m.addEventListener&&m.addEventListener("change",function(t){k()||r(t.matches)}),document.readyState==="interactive"||document.readyState==="complete"?s():document.addEventListener("DOMContentLoaded",s),setTimeout(s,3e3),console.log("%c Moesora %c 少女祈祷中... ","background:#f9a8d4;color:#fff;padding:2px 6px;border-radius:4px 0 0 4px","background:#333;color:#fff;padding:2px 6px;border-radius:0 4px 4px 0")})();window.MoesoraLightbox=function(){var r,l,f,s,m,h,k,c,b,o,i,d,t,p,n,M,a,H,T,C,q,y,g,L,A,N,z,_,P,B,D,F,w,x,u;return a=void 0,d=void 0,A=void 0,F=void 0,b=void 0,n=[],i=0,y=1,x=0,u=0,q=0,r=8,l=1,f=2.5,o=!1,P=0,B=0,N=0,z=0,T=0,H=1,p=0,t=!1,w=0,_=null,s=function(){d&&(d.style.transform="translate("+x.toFixed(1)+"px,"+u.toFixed(1)+"px) scale("+y.toFixed(3)+") rotate("+q+"deg)",a.classList.toggle("zoomed",y>1.01))},k=function(){var e,v,E,S,I;d&&(I=A.getBoundingClientRect(),v=d.clientWidth*y,e=d.clientHeight*y,E=Math.max(0,(v-I.width)/2+40),S=Math.max(0,(e-I.height)/2+40),x=Math.max(-E,Math.min(E,x)),u=Math.max(-S,Math.min(S,u)))},g=function(e,v,E){var S,I,X,j,Y,R;if(e=Math.max(l,Math.min(r,e)),e===l){y=1,x=0,u=0,s();return}Y=d.getBoundingClientRect(),X=v??Y.left+Y.width/2,j=E??Y.top+Y.height/2,S=(X-(Y.left+Y.width/2))/y,I=(j-(Y.top+Y.height/2))/y,R=e/y,x=x-S*(R-1)*y,u=u-I*(R-1)*y,y=e,k(),s()},C=function(){y=1,x=0,u=0,q=0,s()},m=function(){a=document.createElement("div"),a.className="moe-lb",a.innerHTML='<div class="moe-lb-toolbar"><span class="moe-lb-counter" data-role="counter"></span><span class="moe-lb-tools"><button class="moe-lb-tool" data-act="zoomout" type="button" aria-label="缩小" title="缩小">&#8722;</button><button class="moe-lb-tool" data-act="zoomin" type="button" aria-label="放大" title="放大">&#43;</button><button class="moe-lb-tool" data-act="rotate" type="button" aria-label="旋转" title="旋转"><svg viewBox="0 0 24 24" width="18" height="18" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 2v6h-6"/><path d="M3 12a9 9 0 0 1 15-6.7L21 8"/><path d="M3 22v-6h6"/><path d="M21 12a9 9 0 0 1-15 6.7L3 16"/></svg></button><button class="moe-lb-tool moe-lb-close" data-act="close" type="button" aria-label="关闭" title="关闭">&times;</button></span></div><button class="moe-lb-nav moe-lb-prev" type="button" aria-label="上一张">&#10094;</button><div class="moe-lb-stage" data-role="stage"><div class="moe-lb-spin" data-role="spin"></div><img class="moe-lb-img" alt=""/></div><button class="moe-lb-nav moe-lb-next" type="button" aria-label="下一张">&#10095;</button><div class="moe-lb-thumbs" data-role="thumbs"></div><div class="moe-lb-tip"><span class="moe-lb-tip-pc">滚轮/双击缩放 · 拖动查看 · ← → 切换 · Esc 关闭</span><span class="moe-lb-tip-mb">双指缩放 · 上下滑动切换 · 双击放大</span></div>',document.body.appendChild(a),d=a.querySelector(".moe-lb-img"),A=a.querySelector('[data-role="stage"]'),F=a.querySelector('[data-role="thumbs"]'),b=a.querySelector('[data-role="counter"]'),a.querySelector(".moe-lb-toolbar").addEventListener("click",function(e){var v,E;if(E=e.target.closest("[data-act]"),!!E)switch(v=E.getAttribute("data-act"),v){case"close"
1:c();break;case"zoomin":g(y*1.4);break;case"zoomout":g(y/1.4);break;case"rotate":q=(q+90)%360,s()}}),a.addEventListener("click",function(e){(e.target===a||e.target===A)&&c()}),a.querySelector(".moe-lb-prev").addEventListener("click",function(e){e.stopPropagation(),L(i-1)}),a.querySelector(".moe-lb-next").addEventListener("click",function(e){e.stopPropagation(),L(i+1)}),d.addEventListener("dblclick",function(e){e.preventDefault(),e.stopPropagation(),!(Date.now()-w<600)&&(y>1.01?C():g(f,e.clientX,e.clientY))}),A.addEventListener("wheel",function(e){var v;e.preventDefault(),v=e.deltaY<0?1.18:1/1.18,g(y*v,e.clientX,e.clientY)},{passive:!1}),d.addEventListener("mousedown",function(e){y<=1.01||(o=!0,P=e.clientX,B=e.clientY,N=x,z=u,a.classList.add("dragging"),e.preventDefault())}),window.addEventListener("mousemove",function(e){o&&(x=N+(e.clientX-P),u=z+(e.clientY-B),k(),s())}),window.addEventListener("mouseup",function(){o=!1,a&&a.classList.remove("dragging")}),A.addEventListener("touchstart",function(e){var v,E,S,I;e.touches.length===2?(v=e.touches[0].clientX-e.touches[1].clientX,E=e.touches[0].clientY-e.touches[1].clientY,T=Math.sqrt(v*v+E*E),H=y,_=null,o=!1):e.touches.length===1&&(I=e.touches[0],S=Date.now(),S-p<320?(t=!0,w=S,y>1.01?C():g(f),p=0,_=null,o=!1):(t=!1,p=S,y>1.01?(o=!0,P=I.clientX,B=I.clientY,N=x,z=u,_=null):_=I.clientY))},{passive:!0}),A.addEventListener("touchmove",function(e){var v,E,S,I,X,j;e.touches.length===2&&T?(E=e.touches[0].clientX-e.touches[1].clientX,S=e.touches[0].clientY-e.touches[1].clientY,v=Math.sqrt(E*E+S*S),I=(e.touches[0].clientX+e.touches[1].clientX)/2,X=(e.touches[0].clientY+e.touches[1].clientY)/2,g(H*(v/T),I,X),e.preventDefault()):e.touches.length===1&&o&&(j=e.touches[0],x=N+(j.clientX-P),u=z+(j.clientY-B),k(),s(),e.preventDefault())},{passive:!1}),A.addEventListener("touchend",function(e){var v;if(t){t=!1,_=null,o=!1,T=0;return}_!==null&&y<=1.01&&e.changedTouches.length&&(v=e.changedTouches[0].clientY-_,Math.abs(v)>60&&(v>0?L(i-1):L(i+1))),_=null,o=!1,T=0},{passive:!0}),document.addEventListener("keydown",function(e){if(!(!a||!a.classList.contains("show")))switch(e.key){case"Escape":c();break;case"ArrowLeft":L(i-1);break;case"ArrowRight":L(i+1);break;case"+":case"=":g(y*1.4);break;case"-":case"_":g(y/1.4);break;case"0":C()}})},h=function(){var e,v;if(F){if(n.length<2){F.innerHTML="",F.style.display="none";return}for(F.style.display="flex",e="",v=0;v<n.length;)e+='<img class="moe-lb-thumb" data-i="'+v+'" src="'+n[v]+'" alt="" loading="lazy"/>',v++;F.innerHTML=e,F._bound||F.addEventListener("click",function(E){var S;S=E.target.closest(".moe-lb-thumb"),S&&(E.stopPropagation(),L(parseInt(S.getAttribute("data-i"),10)))}),F._bound=!0}},D=function(){F&&Array.prototype.forEach.call(F.children,function(e,v){if(e.classList.toggle("is-active",v===i),v===i&&e.scrollIntoView)try{e.scrollIntoView({inline:"center",block:"nearest",behavior:"smooth"})}catch{}})},L=function(e){n.length&&(i=(e+n.length)%n.length,C(),d.classList.remove("loaded"),a.classList.add("loading"),d.onload=function(){d.classList.add("loaded"),a.classList.remove("loading")},d.onerror=function(){a.classList.remove("loading")},d.src=n[i],b&&(b.textContent=i+1+" / "+n.length),a.classList.toggle("multi",n.length>1),D())},M=function(e,v){var E;a||m(),n=[],E=0,Array.prototype.forEach.call(e||[],function(S,I){n.push(S.currentSrc||S.src),S===v&&(E=I)}),n.length&&(h(),a.classList.add("show"),document.body.style.overflow="hidden",L(E))},c=function(){a&&(a.classList.remove("show","zoomed","dragging","loading"),document.body.style.overflow="",C())},{open:M,close:c}}();window.MoesoraInitPage=function(){(function(){var r,l,f,s,m,h;r=document.querySelector(".moe-post-content"),l=document.querySelector(".moe-article-meta"),r&&l&&!l.querySelector(".moe-meta-rt")&&(m=r.innerText||r.textContent||"",h=(m.match(/[\u4e00-\u9fa5\u3040-\u30ff\uac00-\ud7a3]/g)||[]).length+(m.match(/[a-zA-Z0-9]+/g)||[]).length,h>0&&(f=Math.max(1,Math.round(h/350)),s=document.createElement("span"),s.className="moe-meta-item moe-meta-rt",s.innerHTML='<svg viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 5a2 2 0 0 1 2-2h9l5 5v11a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2z"/><path d="M9 9h6M9 13h6M9 17h3"/></svg><span>约 '+h+" 字 · "+f+" 分钟</span>",l.appendChild(s)))})(),function(){var r,l,f,s,m,h,k,c,b,o,i,d;window.__moeTocSpy&&(window.removeEventListener("scroll",window.__moeTocSpy),window.removeEventListener("resize",window.__moeTocSpy),window.__moeTocSpy=null),r=document.querySelector(".moe-post-content"),d=document.getElementById("moe-toc-card"),i=document.getElementById("moe-toc"),i&&(i.innerHTML=""),d&&(d.hidden=!0),r&&i&&d&&(s=r.querySelectorAll("h2, h3, h4"),h=[],s.length&&(s.forEach(function(t,p){var n;t.id||(t.id="moe-h-"+p),n=document.createElement("a"),n.href="#"+t.id,n.textContent=t.textContent,n.className="toc-"+t.tagName.toLowerCase(),n.addEventListener("click",function(M){M.preventDefault(),t.scrollIntoView({behavior:"smooth",block:"start"}),history.replaceState(null,"","#"+t.id),h.forEach(function(a){return a.classList.remove("active")}),n.classList.add("active")}),i.appendChild(n),h.push(n)}),d.hidden=!1,b=function(){var t,p;p=(parseInt(getComputedStyle(document.documentElement).getPropertyValue("--moe-nav-h"))||0)+24,t=-1,s.forEac
1h(function(n,M){n.getBoundingClientRect().top<=p&&(t=M)}),h.forEach(function(n,M){var a,H;a=M===t,n.classList.toggle("active",a),a&&i.scrollHeight>i.clientHeight+4&&(H=n.offsetTop-i.clientHeight/2+n.offsetHeight/2,i.scrollTo?i.scrollTo({top:Math.max(0,H),behavior:"smooth"}):i.scrollTop=Math.max(0,H))})},o=!1,c=function(){o||(o=!0,requestAnimationFrame(function(){b(),o=!1}))},window.addEventListener("scroll",c,{passive:!0}),window.addEventListener("resize",c,{passive:!0}),window.__moeTocSpy=c,b())),r&&(k=window.MoesoraConfig||{},f=parseInt(k.codeFoldLine||0,10)||0,l=parseInt(k.imgFoldHeight||0,10)||0,window.MoesoraContent&&window.MoesoraContent(r),r.querySelectorAll("pre").forEach(function(t){var p,n,M,a,H,T,C,q,y,g,L,A,N,z,_;if(!t.dataset.moeCode&&(M=t.querySelector("code"),!!M)){for(t.dataset.moeCode="1",t.classList.add("moe-code"),q="",L=function(P){(P||"").split(/\s+/).forEach(function(B){/^language-/.test(B)?q=B.slice(9):/^lang-/.test(B)&&(q=B.slice(5))})},L(M.className),L(t.className),!q&&k.defaultCodeLang&&(q=k.defaultCodeLang),q&&!/\blanguage-/.test(M.className)&&(M.className=(M.className+" language-"+q).trim()),q||(q="code"),A=(M.textContent||"").replace(/\n+$/,""),M.textContent=A,y=A.split(`
2`).length||1,T=document.createElement("span"),T.className="moe-code-ln",g="",C=1;C<=y;)g+=C+(C<y?`
3`:""),C++;T.textContent=g,p=document.createElement("div"),p.className="moe-code-bar",p.innerHTML='<span class="moe-code-dots"><i></i><i></i><i></i></span><span class="moe-code-lang"></span><span class="moe-code-tools"><button type="button" class="moe-code-btn moe-code-fold" title="折叠/展开"><svg viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"/></svg></button><button type="button" class="moe-code-btn moe-copy-btn" title="复制"><svg class="moe-ico-copy" viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="9" y="9" width="13" height="13" rx="2"/><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"/></svg><svg class="moe-ico-done" viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg></button></span>',p.querySelector(".moe-code-lang").textContent=q,n=document.createElement("div"),n.className="moe-code-body",N=document.createElement("div"),N.className="moe-code-scroll",N.appendChild(M),n.appendChild(T),n.appendChild(N),t.insertBefore(p,t.firstChild),t.appendChild(n),a=p.querySelector(".moe-copy-btn"),_=function(){a.classList.add("copied"),setTimeout(function(){a.classList.remove("copied")},1400)},H=function(P){var B,D;D=document.createElement("textarea"),D.value=P,D.setAttribute("readonly",""),D.style.cssText="position:fixed;top:0;left:0;width:1px;height:1px;opacity:0;padding:0;border:0",document.body.appendChild(D),D.select();try{D.setSelectionRange(0,P.length)}catch{}B=!1;try{B=document.execCommand("copy")}catch{B=!1}return document.body.removeChild(D),B},a.addEventListener("click",function(){var P;P=M.innerText,navigator.clipboard&&navigator.clipboard.writeText&&window.isSecureContext?navigator.clipboard.writeText(P).then(_).catch(function(){H(P)&&_()}):H(P)&&_()}),z=function(P,B){var D;P?B?(n.style.maxHeight=n.scrollHeight+"px",requestAnimationFrame(function(){t.classList.add("moe-code-collapsed"),n.style.maxHeight="0px"})):(t.classList.add("moe-code-collapsed"),n.style.maxHeight="0px"):(t.classList.remove("moe-code-collapsed"),n.style.maxHeight=n.scrollHeight+"px",D=function(){n.style.maxHeight="none",n.removeEventListener("transitionend",D)},n.addEventListener("transitionend",D))},p.querySelector(".moe-code-fold").addEventListener("click",function(){z(!t.classList.contains("moe-code-collapsed"),!0)}),f>0&&y>f&&z(!0,!1)}}),l>0&&r.querySelectorAll("img").forEach(function(t){var p;t.dataset.moeImgFold||(t.dataset.moeImgFold="1",p=function(){var n,M,a;t.closest(".moe-img-fold-wrap")||t.offsetHeight<=l||(M=t.closest("a")||t,a=document.createElement("div"),a.className="moe-img-fold-wrap moe-img-fold",a.style.maxHeight=l+"px",M.parentNode.insertBefore(a,M),a.appendChild(M),n=document.createElement("button"),n.className="moe-fold-btn moe-img-fold-btn",n.type="button",n.textContent="展开长图 ▾",n.addEventListener("click",function(H){var T;H.preventDefault(),T=a.classList.toggle("moe-img-fold"),a.style.maxHeight=T?l+"px":"none",n.textContent=T?"展开长图 ▾":"收起长图 ▴"}),a.appendChild(n))},t.complete&&t.naturalHeight?p():t.addEventListener("load",p))}),k.enableLightbox!==!1&&window.MoesoraLightbox&&(m=[],r.querySelectorAll("img").forEach(function(t){t.closest("a")||m.push(t)}),m.forEach(function(t){t.dataset.moeLb||(t.dataset.moeLb="1",t.style.cursor="zoom-in",t.addEventListener("click",function(p){p.preventDefault(),window.MoesoraLightbox.open(m,t)}))})),window.MoesoraVideo&&window.MoesoraVideo(r),window.MoesoraAudio&&window.MoesoraAudio(r))}(),function(){var r,l,f,s;s=function(){var m,h,k,c,b;h=Date.now()-l.getTime(),h<0&&(h=0),m=Math.floor(h/864e5),k=Math.floor(h%864e5/36e5),c=Math.floor(h%36e5/6e4),b=Math.floor(h%6e4/1e3),r.textContent="已经在一起 "+m+" 天 "+k+" 时 "+c+" 分 "+b+" 秒 ♡"},window.__moeLoveTimer&&(clearInterval(window.__moeLoveTimer),window.__moeLoveTimer=null),r=document.getElementById("moe-love-time"),r&&(f=r.getAttribute("data-start"),f&&(l=new Date(f.replace(/-/g,"/")),!isNaN(l.getTime())&&(s(),window.__moeLoveTimer=setInterval(s,1e3))))}(),function(){var r,l,f,s,m,h,k,c;if(window.MoesoraComment)try{window.MoesoraComment()}catch{}if(window.MoesoraWishes)try{window.MoesoraWishes()}catch{}l=function(b,o){var i,d;if(b){if(i=document.querySelector('script[data-moe-cmt="'+b+'"]'),i){i.dataset.loaded?o&&o():i.addEventListener("load",function(){o&&o()});return}d=document.createElement("script"),d.src=b,d.setAttribute("data-moe-cmt",b),d.onload=function(){d.dataset.loaded="1",o&&o()},document.body.appendChild(d)}},f=document.getElementById("tcomment"),f&&!f.dataset.init&&(f.dataset.init="1",s=f.getAttribute("data-env"),l(f.getAttribute("data-js"),function(){if(window.twikoo&&s)try{window.twikoo.init({envId:s,el:"#tcomment"})}catch{}})),k=document.getElementById("waline"),k&&!k.dataset.init&&(k.dataset.init="1",m=k.getAttribute("data-css"),c=k.getAttribute("data-server"),h=k.getAttribute("data-js"),m&&!document.querySelector('link[data-moe-cmt="'+m+'"]')&&(r=document.createElement("link"),r.rel="stylesheet",r.href=m,r.setAttribute("data-moe-cmt",m),document.head.appendChild(r)),h&&c&&import(h).then(function(b){var o;if(o=b.init||b.default&&b.default.init,o)try{o({el:"#waline",serverURL:c})}catch{}}).catch(function(){}))}(),typeof window.MoesoraFeed=="function"&&window.MoesoraFeed(),function(){var r,l,f,s;s=function(){var m,h;m=r.getBoundingClientRect(),h=Math.max(-40,Math.min(40,-m.top*.12)),r.style.setProperty("--hero-shift",h.toFixed(1)+"px")},window.__moeHeroParallax&&(window.removeEventListener("scroll",window.__moeHeroParallax),window.__moeHeroParallax=null),r=document.getElementById("moe-hero"),r&&(f=!1,l=function(){f||(f=!0,requestAnimationFrame(s))},window.addEventListener("scroll",l,{passive:!0}),window.__moeHeroParallax=l,s())}(),typeof window.MoesoraLibsInit=="function"&&window.MoesoraLibsInit(
3)};(function(){var r;r=function(l){document.readyState!=="loading"?l():document.addEventListener("DOMContentLoaded",l)},r(function(){window.MoesoraInitPage()})})();(function(){var r,l,f,s,m,h,k,c,b,o,i,d,t,p,n,M,a,H,T,C,q,y,g,L,A,N,z,_,P,B,D,F;m=window.MoesoraConfig||{},y=window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches,f=m.effectsBg||"none",H=m.effectsBgMode||"all",s=null,c=null,q=null,C=[],l=0,r=0,L=!1,A=function(){var w;return f==="none"||y?!1:(w=document.documentElement.classList.contains("dark"),H==="light"?!w:H==="dark"?w:!0)},g=function(){s&&(l=s.width=innerWidth,r=s.height=innerHeight)},a=function(){s=document.createElement("canvas"),s.id="moe-fx",s.style.cssText="position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:-1",document.body.appendChild(s),c=s.getContext("2d"),g(),window.addEventListener("resize",g)},N=function(w){return f==="universe"?{x:Math.random()*l,y:Math.random()*r,r:Math.random()*1.4+.3,a:Math.random()*6.28,tw:Math.random()*.04+.01}:{x:Math.random()*l,y:w?Math.random()*r:-10,r:f==="snow"?Math.random()*3+1:Math.random()*6+4,sp:Math.random()*1+.6,sw:Math.random()*.6+.2,ph:Math.random()*6.28,rot:Math.random()*3.14}},n=function(){var w,x;for(C=[],x=f==="universe"?140:60,w=0;w<x;)C.push(N(!0)),w++},i=function(){var w,x,u,e;if(c){if(c.clearRect(0,0,l,r),x=document.documentElement.classList.contains("dark"),u=void 0,e=void 0,f==="universe")for(u=0;u<C.length;)e=C[u],e.a+=e.tw,w=(Math.sin(e.a)+1)/2,c.beginPath(),c.fillStyle=(x?"rgba(255,255,255,":"rgba(120,100,190,")+(.2+w*.8)+")",c.arc(e.x,e.y,e.r,0,6.2832),c.fill(),u++;else for(u=0;u<C.length;)e=C[u],e.y+=e.sp,e.ph+=.02,e.x+=Math.sin(e.ph)*e.sw,e.rot+=.01,f==="snow"?(c.beginPath(),c.fillStyle=x?"rgba(255,255,255,0.9)":"rgba(150,180,230,0.9)",c.arc(e.x,e.y,e.r,0,6.2832),c.fill()):(c.save(),c.translate(e.x,e.y),c.rotate(e.rot),c.fillStyle="rgba(249,168,212,0.85)",c.beginPath(),c.ellipse(0,0,e.r,e.r*.6,0,0,6.2832),c.fill(),c.restore()),e.y>r+10&&(C[u]=N(!1)),u++;q=requestAnimationFrame(i)}},z=function(){L||(s||a(),n(),L=!0,i())},_=function(){L=!1,q&&cancelAnimationFrame(q),c&&c.clearRect(0,0,l,r)},b=function(){A()?z():_()},d=function(w,x){var u;u=document.createElement("span"),u.textContent="❤",u.style.cssText="position:fixed;left:"+w+"px;top:"+x+"px;transform:translate(-50%,-50%);color:#ff5a8a;font-size:"+(14+Math.random()*10)+"px;pointer-events:none;z-index:9998;transition:all .8s ease-out;opacity:1",document.body.appendChild(u),requestAnimationFrame(function(){u.style.top=x-60+"px",u.style.opacity="0"}),setTimeout(function(){u.remove()},850)},o=function(w,x){var u,e;for(u=["#f9a8d4","#c8a8ff","#ffd86f","#7fdfff","#ff8fb0"],e=0;e<12;)(function(v){var E,S,I;I=document.createElement("span"),E=6.2832/12*v,S=30+Math.random()*24,I.style.cssText="position:fixed;left:"+w+"px;top:"+x+"px;width:6px;height:6px;border-radius:50%;background:"+u[v%u.length]+";pointer-events:none;z-index:9998;transition:all .6s ease-out;opacity:1",document.body.appendChild(I),requestAnimationFrame(function(){I.style.left=w+Math.cos(E)*S+"px",I.style.top=x+Math.sin(E)*S+"px",I.style.opacity="0"}),setTimeout(function(){I.remove()},650)})(e),e++},P=function(w,x){var u,e;u=document.createElement("span"),e=6+Math.random()*6,u.style.cssText="position:fixed;left:"+w+"px;top:"+x+"px;width:"+e+"px;height:"+e+"px;border-radius:50%;background:var(--moe-theme);transform:translate(-50%,-50%);pointer-events:none;z-index:9997;transition:all .7s ease-out;opacity:.85",document.body.appendChild(u),requestAnimationFrame(function(){u.style.top=x+16+Math.random()*10+"px",u.style.opacity="0",u.style.transform="translate(-50%,-50%) scale(.3)"}),setTimeout(function(){u.remove()},720)},B=function(w,x){var u,e,v;e=document.createElement("span"),e.textContent="🌸",v=10+Math.random()*8,u=(Math.random()-.5)*40,e.style.cssText="position:fixed;left:"+w+"px;top:"+x+"px;font-size:"+v+"px;transform:translate(-50%,-50%);pointer-events:none;z-index:9997;transition:all 1.1s ease-out;opacity:.9",document.body.appendChild(e),requestAnimationFrame(function(){e.style.top=x+50+Math.random()*30+"px",e.style.left=w+u+"px",e.style.opacity="0",e.
3style.transform="translate(-50%,-50%) rotate("+Math.random()*360+"deg)"}),setTimeout(function(){e.remove()},1150)},D=function(w,x){var u,e,v;e=document.createElement("span"),e.textContent="❅",v=10+Math.random()*8,u=(Math.random()-.5)*36,e.style.cssText="position:fixed;left:"+w+"px;top:"+x+"px;font-size:"+v+"px;color:#bcdcff;text-shadow:0 0 3px rgba(120,170,230,.5);transform:translate(-50%,-50%);pointer-events:none;z-index:9997;transition:all 1.2s ease-out;opacity:.95",document.body.appendChild(e),requestAnimationFrame(function(){e.style.top=x+55+Math.random()*30+"px",e.style.left=w+u+"px",e.style.opacity="0",e.style.transform="translate(-50%,-50%) rotate("+Math.random()*300+"deg)"}),setTimeout(function(){e.remove()},1250)},m.cursorStyle&&m.cursorStyle!=="default"&&(t={"Pink-Paper":"0 0",Sakura:"16 16"},p=t[m.cursorStyle]||"6 4",F="/themes/moesora/assets/dist/cursor/"+m.cursorStyle+".png",k=document.createElement("style"),k.textContent="html,body{cursor:url("+F+") "+p+",auto}a,button,.moe-icon-btn,.moe-stat,.moe-chip{cursor:url("+F+") "+p+",pointer}",document.head.appendChild(k)),f!=="none"&&!y&&(b(),new MutationObserver(b).observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),document.addEventListener("visibilitychange",function(){document.hidden?_():b()})),h=m.effectsClick||"none",h!=="none"&&!y&&document.addEventListener("click",function(w){h==="heart"?d(w.clientX,w.clientY):h==="firework"&&o(w.clientX,w.clientY)}),T=m.effectsMove||"none",T!=="none"&&!y&&(M=0,document.addEventListener("mousemove",function(w){var x;x=Date.now(),!(x-M<40)&&(M=x,T==="dot"?P(w.clientX,w.clientY):T==="sakura"?B(w.clientX,w.clientY):T==="snow"&&D(w.clientX,w.clientY))},{passive:!0}))})();(function(){var r,l,f,s,m,h,k,c,b;m=window.MoesoraConfig||{},s=function(){l&&(l.style.transition="none",l.style.width="0",l.style.opacity="1",requestAnimationFrame(function(){l.style.transition="width .5s ease",l.style.width="80%"}))},f=function(){l&&(l.style.width="100%",setTimeout(function(){l.style.opacity="0",l.style.transition="opacity .3s ease",l.style.width="0"},250))},h=function(o){var i;return!(!o||!o.getAttribute||o.target&&o.target!=="_self"||o.hasAttribute("download")||o.hasAttribute("data-no-pjax")||o.getAttribute("rel")==="external"||(i=o.getAttribute("href"),!i||i.charAt(0)==="#")||/^(mailto:|tel:|javascript:)/i.test(i)||o.origin!==location.origin)},c=function(o){var i;i=o.querySelectorAll("script"),Array.prototype.forEach.call(i,function(d){var t,p;for(p=document.createElement("script"),t=0;t<d.attributes.length;)p.setAttribute(d.attributes[t].name,d.attributes[t].value),t++;d.src||(p.textContent=d.textContent),d.parentNode.replaceChild(p,d)})},b=function(){document.querySelectorAll(".moe-nav-link").forEach(function(o){o.classList.toggle("is-active",o.href===location.href)})},k=function(o,i){var d;d||(d=!0,s(),fetch(o,{headers:{"X-Requested-With":"Pjax"},credentials:"same-origin"}).then(function(t){if(!t.ok)throw new Error("bad");return t.text()}).then(function(t){var p,n,M,a;if(n=new DOMParser().parseFromString(t,"text/html"),a=n.querySelector(r),p=document.querySelector(r),!a||!p){window.location.href=o;return}if(document.title=n.title||document.title,p.innerHTML=a.innerHTML,c(p),i&&history.pushState({moePjax:!0},"",o),window.scrollTo(0,0),typeof window.MoesoraInitPage=="function")try{window.MoesoraInitPage()}catch{}if(typeof window.MoesoraNavState=="function")try{window.MoesoraNavState()}catch{}b(),M=document.querySelector(".moe-navbar"),M&&M.classList.remove("nav-open"),f(),d=!1}).catch(function(){window.location.href=o}))},m.pjax&&(!window.history||!history.pushState||!window.fetch||!window.DOMParser||(r="#moe-pjax",l=document.getElementById("moe-pjax-bar"),document.addEventListener("click",function(o){var i;o.metaKey||o.ctrlKey||o.shiftKey||o.altKey||o.button!==0||(i=o.target.closest?o.target.closest("a"):null,h(i)&&(o.preventDefault(),i.href!==location.href&&k(i.href,!0)))}),window.addEventListener("popstate",function(){k(location.href,!1)}),history.replaceState({moePjax:!0},"",location.href)))})();(function(){var r,l,f,s,m,h,k,c,b,o,i,d,t,p,n,M,a,H,T,C,q,y;p=window.MoesoraConfig||{},c=p.extRedirect||{},c.on&&(h=Math.max(1,parseInt(c.delay,10)||9),H=p.siteName||location.hostname,y=String(c.whitelist||"").split(/[,\n]/).map(function(g){return g.trim().toLowerCase()}).filter(function(g){return g.length>0}),r=".moe-post-content, .moe-moment-body",t=function(g){var L,A,N,z,_;if(L=g.getAttribute("href")||"",!/^https?:\/\//i.test(L))return!1;
3try{z=new URL(g.href)}catch{return!1}if(z.hostname===location.hostname)return!1;for(A=0,N=y.length;A<N;A++)if(_=y[A],_&&z.hostname.indexOf(_)!==-1)return!1;return!0},n=null,o=null,f=null,M=null,q=null,i=null,C=null,m="",s=!1,T=function(){C&&(clearInterval(C),C=null)},d=function(){T(),n&&n.setAttribute("hidden","")},k=function(){var g,L;i.disabled||(L=m,g=s,d(),g?window.open(L,"_blank","noopener"):location.href=L)},b=function(g){return String(g).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")},l=function(){n=document.createElement("div"),n.className="moe-extlink-mask",n.setAttribute("hidden",""),n.innerHTML='<div class="moe-extlink" role="dialog" aria-modal="true"><h2 class="moe-extlink-title">外部链接跳转</h2><p class="moe-extlink-sub">在您继续前往之前,请确认下方的链接</p><div class="moe-extlink-card"><div class="moe-extlink-warn"><svg viewBox="0 0 24 24" width="18" height="18" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 3l7 3v6c0 4-3 7-7 9-4-2-7-5-7-9V6z"/></svg><span>您即将离开 '+b(H)+'</span></div><div class="moe-extlink-label">您将会被跳转到:</div><div class="moe-extlink-url"><span data-role="url"></span><svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M14 4h6v6"/><path d="M20 4l-9 9"/><path d="M19 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h5"/></svg></div><div class="moe-extlink-bar"><div class="moe-extlink-fill" data-role="fill"></div></div><div class="moe-extlink-meta"><span data-role="count"></span><span data-role="pct">0%</span></div></div><div class="moe-extlink-btns"><button type="button" class="moe-extlink-cancel" data-role="cancel">取消</button><button type="button" class="moe-extlink-go" data-role="go" disabled>点击跳转</button></div></div>',document.body.appendChild(n),o=n.querySelector('[data-role="fill"]'),f=n.querySelector('[data-role="count"]'),M=n.querySelector('[data-role="pct"]'),q=n.querySelector('[data-role="url"]'),i=n.querySelector('[data-role="go"]'),n.querySelector('[data-role="cancel"]').addEventListener("click",d),i.addEventListener("click",k),n.addEventListener("click",function(g){if(g.target===n)return d()}),document.addEventListener("keydown",function(g){if(g.key==="Escape"&&n&&!n.hasAttribute("hidden"))return d()})},a=function(g,L){var A;n||l(),m=g,s=L,q.textContent=g,i.disabled=!0,o.style.width="0%",M.textContent="0%",f.textContent=h+" 秒后可跳转",n.removeAttribute("hidden"),A=h,T(),C=setInterval(function(){var N;A-=1,N=Math.round((h-A)/h*100),o.style.width=N+"%",M.textContent=N+"%",A<=0?(f.textContent="现在可以跳转",i.disabled=!1,T()):f.textContent=A+" 秒后可跳转"},1e3)},document.addEventListener("click",function(g){var L;g.target&&g.target.closest&&(L=g.target.closest("a[href]"),L&&L.closest(r)&&(L.hasAttribute("data-no-redirect")||t(L)&&(g.preventDefault(),a(L.href,L.target==="_blank"))))}))})();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.