Socket
Socket
Sign inDemoInstall

anzhiyu-blog

Package Overview
Dependencies
0
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.1.4 to 2.1.5

img/favicon.ico

2

anzhiyu/random.js

@@ -1,1 +0,1 @@

"use strict";var posts=["posts/ff46.html","posts/bd4e.html","posts/b1d7.html","posts/xoan.html","posts/fe76.html","posts/d335.html","posts/8645.html","posts/e173abca.html","posts/aa28.html","posts/443e.html","posts/1ed1.html","posts/aa50.html","posts/b590.html","posts/fc18.html","posts/ddae.html","posts/192f.html","posts/sdxhu.html","posts/6c69.html","posts/e62b.html","posts/968f.html","posts/ce6a.html","posts/292d.html","posts/asdx.html","posts/cf4f.html","posts/52d8.html","posts/72ea.html","posts/8e53.html","posts/c248.html","posts/2785.html","posts/3753.html","posts/3830.html","posts/e8da.html","posts/4190.html","posts/9520.html","posts/571d.html","posts/b8cf1317.html","posts/7e87.html","posts/eadb39c4.html","posts/fe37.html","posts/9ffb.html","posts/8b43.html","posts/3444.html","posts/6fd4.html","posts/521a.html","posts/495f.html","posts/222.html","posts/88de.html","posts/4a9f.html"];function toRandomPost(){pjax.loadUrl("/"+posts[Math.floor(Math.random()*posts.length)])}
"use strict";var posts=["posts/ff46.html","posts/bd4e.html","posts/b1d7.html","posts/xoan.html","posts/fe76.html","posts/d335.html","posts/8645.html","posts/e173abca.html","posts/aa28.html","posts/443e.html","posts/1ed1.html","posts/aa50.html","posts/b590.html","posts/fc18.html","posts/ddae.html","posts/192f.html","posts/sdxhu.html","posts/6c69.html","posts/e62b.html","posts/968f.html","posts/ce6a.html","posts/292d.html","posts/asdx.html","posts/cf4f.html","posts/52d8.html","posts/72ea.html","posts/8e53.html","posts/c248.html","posts/2785.html","posts/3753.html","posts/3830.html","posts/e8da.html","posts/4190.html","posts/9520.html","posts/571d.html","posts/b8cf1317.html","posts/7e87.html","posts/eadb39c4.html","posts/fe37.html","posts/9ffb.html","posts/8b43.html","posts/3444.html","posts/222.html","posts/c939.html","posts/6fd4.html","posts/521a.html","posts/495f.html","posts/88de.html","posts/4a9f.html"];function toRandomPost(){pjax.loadUrl("/"+posts[Math.floor(Math.random()*posts.length)])}

@@ -1,1 +0,1 @@

https://anzhiy.cn/posts/6fd4.html
https://anzhiy.cn/posts/c939.html

@@ -1,1 +0,1 @@

"use strict";var anzhiyu_musicPlaying=!1,anzhiyu_musicStretch=!1,anzhiyu_musicFirst=!1,anzhiyu={addNavBackgroundInit:function(){var e=0,t=0;0!=(0<(e=document.body?document.body.scrollTop:e)-(t=document.documentElement?document.documentElement.scrollTop:t)?e:t)&&(document.getElementById("page-header").classList.add("nav-fixed"),document.getElementById("page-header").classList.add("nav-visible"))},downloadImage:function(e,o){rm.hideRightMenu(),0==rm.downloadimging?(rm.downloadimging=!0,btf.snackbarShow("正在下载中,请稍后",!1,1e4),setTimeout(function(){var a=new Image;a.setAttribute("crossOrigin","anonymous"),a.onload=function(){var e=document.createElement("canvas");e.width=a.width,e.height=a.height;e.getContext("2d").drawImage(a,0,0,a.width,a.height);var e=e.toDataURL("image/png"),t=document.createElement("a"),n=new MouseEvent("click");t.download=o||"photo",t.href=e,t.dispatchEvent(n)},a.src=e,btf.snackbarShow("图片已添加盲水印,请遵守版权协议"),rm.downloadimging=!1},"10000")):btf.snackbarShow("有正在进行中的下载,请稍后再试")},stopImgRightDrag:function(){$("img").on("dragstart",function(){return!1})},scrollTo:function(e){e=document.querySelector(e).offsetTop;window.scrollTo(0,e-80)},showLoading:function(){document.querySelector("#loading-box").classList.remove("loaded")},hideLoading:function(){document.querySelector("#loading-box").classList.add("loaded")},hideAsideBtn:function(){var e=document.documentElement.classList;e.contains("hide-aside")?saveToLocal.set("aside-status","show",2):saveToLocal.set("aside-status","hide",2),e.toggle("hide-aside"),e.contains("hide-aside")?document.querySelector("#consoleHideAside").classList.add("on"):document.querySelector("#consoleHideAside").classList.remove("on")},switchCommentBarrage:function(){document.querySelector(".comment-barrage")&&($(".comment-barrage").is(":visible")?($(".comment-barrage").hide(),btf.snackbarShow("✨ 已关闭评论弹幕"),$(".menu-commentBarrage-text").text("显示热评"),document.querySelector("#consoleCommentBarrage").classList.remove("on"),localStorage.setItem("commentBarrageSwitch","false")):$(".comment-barrage").is(":hidden")&&($(".comment-barrage").show(),$(".menu-commentBarrage-text").text("关闭热评"),document.querySelector("#consoleCommentBarrage").classList.add("on"),btf.snackbarShow("✨ 已开启评论弹幕"),localStorage.removeItem("commentBarrageSwitch"))),rm.hideRightMenu()},initIndexEssay:function(){document.querySelector(".essay_bar_swiper_container")&&setTimeout(function(){var e=new Swiper(".essay_bar_swiper_container",{passiveListeners:!0,direction:"vertical",loop:!0,autoplay:{disableOnInteraction:!0,delay:3e3},mousewheel:!0}),t=document.getElementById("bbtalk");null!==t&&(t.onmouseenter=function(){e.autoplay.stop()},t.onmouseleave=function(){e.autoplay.start()})},100)},diffDate:function(e){var t,n,a=1<arguments.length&&void 0!==arguments[1]&&arguments[1],o=new Date,e=new Date(e),o=o.getTime()-e.getTime(),i=864e5;return a?(a=o/i,t=o/36e5,n=o/6e4,1<=o/2592e6?e.toLocaleDateString().replace(/\//g,"-"):1<=a?parseInt(a)+" "+GLOBAL_CONFIG.date_suffix.day:1<=t?parseInt(t)+" "+GLOBAL_CONFIG.date_suffix.hour:1<=n?parseInt(n)+" "+GLOBAL_CONFIG.date_suffix.min:GLOBAL_CONFIG.date_suffix.just):parseInt(o/i)},changeTimeInEssay:function(){document.querySelector("#bber")&&document.querySelectorAll("#bber time").forEach(function(e){var t=e.getAttribute("datetime");e.innerText=anzhiyu.diffDate(t,!0),e.style.display="inline"})},changeTimeInAlbumDetail:function(){document.querySelector("#album_detail")&&document.querySelectorAll("#album_detail time").forEach(function(e){var t=e.getAttribute("datetime");e.innerText=anzhiyu.diffDate(t,!0),e.style.display="inline"})},reflashEssayWaterFall:function(){document.querySelector("#waterfall")&&setTimeout(function(){waterfall("#waterfall"),document.getElementById("waterfall").classList.add("show")},500)},commentText:function(e){"undefined"!=e&&"null"!=e||(e="好棒!");var t=document.getElementsByClassName("el-textarea__inner")[0],n=document.createEvent("HTMLEvents");t&&(n.initEvent("input",!0,!0),e=replaceAll(e,"\n","\n> "),t.value="> "+e+"\n\n",t.dispatchEvent(n),e=document.querySelector("#post-comment").offsetTop,window.scrollTo(0,e-80),t.focus(),t.setSelectionRange(-1,-1),document.getElementById("comment-tips")&&document.getElementById("comment-tips").classList.add("show"))},sayhi:function(){document.querySelector("#author-info__sayhi")&&(document.getElementById("author-info__sayhi").innerHTML=getTimeState()+"!我是")},addFriendLink:function(){var e,t=document.getElementsByClassName("el-textarea__inner")[0];t&&((e=document.createEvent("HTMLEvents")).initEvent("input",!0,!0),t.value="昵称(请勿包含博客等字样):\n网站地址(要求博客地址,请勿提交个人主页):\n头像图片url(请提供尽可能清晰的图片,我会上传到我自己的图床):\n描述:\n站点截图(可选):\n",t.dispatchEvent(e),t.focus(),t.setSelectionRange(-1,-1))},musicToggle:function(){var e=!(0<arguments.length&&void 0!==arguments[0])||arguments[0];anzhiyu_musicFirst||(musicBindEvent(),anzhiyu_musicFirst=!0);anzhiyu_musicStretch=anzhiyu_musicPlaying?(document.querySelector("#nav-music").classList.remove("playing"),document.getElementById("menu-music-toggle").innerHTML='<i class="fa-solid fa-play"></i><span>播放音乐</span>',document.getElementById("nav-music-hoverTips").innerHTML="音乐已暂停",document.querySelector("#consoleMusic").classList.remove("on"),anzhiyu_musicPlaying=!1,document.querySelector("#nav-music").classList.remove("stretch"),!1):(document.querySelector("#nav-music").classList.add("playing"),document.getElementById("menu-music-toggle").innerHTML='<i class="fa-solid fa-pause"></i><span>暂停音乐</span>',document.querySelector("#consoleMusic").classList.add("on"),anzhiyu_musicPlaying=!0,document.querySelector("#nav-music").classList.add("stretch"),!0),e&&document.querySelector("#nav-music meting-js").aplayer.toggle()},musicTelescopic:function(){anzhiyu_musicStretch=anzhiyu_musicStretch?(document.querySelector("#nav-music").classList.remove("stretch"),!1):(document.querySelector("#nav-music").classList.add("stretch"),!0)},musicSkipBack:function(){document.querySelector("#nav-music meting-js").aplayer.skipBack()},musicSkipForward:function(){document.querySelector("#nav-music meting-js").aplayer.skipForward()},musicGetName:function(){for(var e=$(".aplayer-title"),t=[],n=e.length-1;0<=n;n--)t[n]=e[n].innerText;return t[0]},darkModeStatus:function(){"light"==("dark"===document.documentElement.getAttribute("data-theme")?"dark":"light")?$(".menu-darkmode-text").text("深色模式"):$(".menu-darkmode-text").text("浅色模式")},initConsoleState:function(){document.documentElement.classList.contains("hide-aside")?document.querySelector("#consoleHideAside").classList.add("on"):document.querySelector("#consoleHideAside").classList.remove("on")},showConsole:function(){document.querySelector("#console").classList.add("show"),anzhiyu.initConsoleState()},hideConsole:function(){document.querySelector("#console").classList.remove("show")}},getTimeState=function(){var e=(new Date).getHours(),t="";return 0<=e&&e<=5?t="晚安😴":5<e&&e<=10?t="早上好👋":10<e&&e<=14?t="中午好👋":14<e&&e<=18?t="下午好👋":18<e&&e<=24&&(t="晚上好👋"),t};document.addEventListener("pjax:send",function(){anzhiyu.showLoading}),document.getElementById("page-name").innerText=document.title.split(" | 安知鱼")[0],anzhiyu.initIndexEssay(),anzhiyu.changeTimeInEssay(),anzhiyu.changeTimeInAlbumDetail(),anzhiyu.reflashEssayWaterFall(),anzhiyu.sayhi(),anzhiyu.stopImgRightDrag(),anzhiyu.addNavBackgroundInit(),addRightMenuClickEvent(),percent();
"use strict";var anzhiyu_musicPlaying=!1,anzhiyu_musicStretch=!1,anzhiyu_musicFirst=!1,anzhiyu={changeThemeColor:function(e){null!==document.querySelector('meta[name="theme-color"]')&&document.querySelector('meta[name="theme-color"]').setAttribute("content",e)},initThemeColor:function(){var e=getComputedStyle(document.documentElement).getPropertyValue("--anzhiyu-bar-background").trim().replace('"',"").replace('"',"");56<(window.scrollY||document.documentElement.scrollTop)&&(e=getComputedStyle(document.documentElement).getPropertyValue("--anzhiyu-meta-theme-color").trim().replace('"',"").replace('"',""),anzhiyu.is_Post()&&(e=getComputedStyle(document.documentElement).getPropertyValue("--anzhiyu-meta-theme-post-color").trim().replace('"',"").replace('"',""))),this.changeThemeColor(e)},is_Post:function(){return 0<=window.location.href.indexOf("/posts/")},addNavBackgroundInit:function(){var e=0,t=0;0!=(0<(e=document.body?document.body.scrollTop:e)-(t=document.documentElement?document.documentElement.scrollTop:t)?e:t)&&(document.getElementById("page-header").classList.add("nav-fixed"),document.getElementById("page-header").classList.add("nav-visible"))},downloadImage:function(e,a){rm.hideRightMenu(),0==rm.downloadimging?(rm.downloadimging=!0,btf.snackbarShow("正在下载中,请稍后",!1,1e4),setTimeout(function(){var o=new Image;o.setAttribute("crossOrigin","anonymous"),o.onload=function(){var e=document.createElement("canvas");e.width=o.width,e.height=o.height;e.getContext("2d").drawImage(o,0,0,o.width,o.height);var e=e.toDataURL("image/png"),t=document.createElement("a"),n=new MouseEvent("click");t.download=a||"photo",t.href=e,t.dispatchEvent(n)},o.src=e,btf.snackbarShow("图片已添加盲水印,请遵守版权协议"),rm.downloadimging=!1},"10000")):btf.snackbarShow("有正在进行中的下载,请稍后再试")},stopImgRightDrag:function(){$("img").on("dragstart",function(){return!1})},scrollTo:function(e){e=document.querySelector(e).offsetTop;window.scrollTo(0,e-80)},showLoading:function(){document.querySelector("#loading-box").classList.remove("loaded")},hideLoading:function(){document.querySelector("#loading-box").classList.add("loaded")},hideAsideBtn:function(){var e=document.documentElement.classList;e.contains("hide-aside")?saveToLocal.set("aside-status","show",2):saveToLocal.set("aside-status","hide",2),e.toggle("hide-aside"),e.contains("hide-aside")?document.querySelector("#consoleHideAside").classList.add("on"):document.querySelector("#consoleHideAside").classList.remove("on")},switchCommentBarrage:function(){document.querySelector(".comment-barrage")&&($(".comment-barrage").is(":visible")?($(".comment-barrage").hide(),btf.snackbarShow("✨ 已关闭评论弹幕"),$(".menu-commentBarrage-text").text("显示热评"),document.querySelector("#consoleCommentBarrage").classList.remove("on"),localStorage.setItem("commentBarrageSwitch","false")):$(".comment-barrage").is(":hidden")&&($(".comment-barrage").show(),$(".menu-commentBarrage-text").text("关闭热评"),document.querySelector("#consoleCommentBarrage").classList.add("on"),btf.snackbarShow("✨ 已开启评论弹幕"),localStorage.removeItem("commentBarrageSwitch"))),rm.hideRightMenu()},initIndexEssay:function(){document.querySelector(".essay_bar_swiper_container")&&setTimeout(function(){var e=new Swiper(".essay_bar_swiper_container",{passiveListeners:!0,direction:"vertical",loop:!0,autoplay:{disableOnInteraction:!0,delay:3e3},mousewheel:!0}),t=document.getElementById("bbtalk");null!==t&&(t.onmouseenter=function(){e.autoplay.stop()},t.onmouseleave=function(){e.autoplay.start()})},100)},diffDate:function(e){var t,n,o=1<arguments.length&&void 0!==arguments[1]&&arguments[1],a=new Date,e=new Date(e),a=a.getTime()-e.getTime(),i=864e5;return o?(o=a/i,t=a/36e5,n=a/6e4,1<=a/2592e6?e.toLocaleDateString().replace(/\//g,"-"):1<=o?parseInt(o)+" "+GLOBAL_CONFIG.date_suffix.day:1<=t?parseInt(t)+" "+GLOBAL_CONFIG.date_suffix.hour:1<=n?parseInt(n)+" "+GLOBAL_CONFIG.date_suffix.min:GLOBAL_CONFIG.date_suffix.just):parseInt(a/i)},changeTimeInEssay:function(){document.querySelector("#bber")&&document.querySelectorAll("#bber time").forEach(function(e){var t=e.getAttribute("datetime");e.innerText=anzhiyu.diffDate(t,!0),e.style.display="inline"})},changeTimeInAlbumDetail:function(){document.querySelector("#album_detail")&&document.querySelectorAll("#album_detail time").forEach(function(e){var t=e.getAttribute("datetime");e.innerText=anzhiyu.diffDate(t,!0),e.style.display="inline"})},reflashEssayWaterFall:function(){document.querySelector("#waterfall")&&setTimeout(function(){waterfall("#waterfall"),document.getElementById("waterfall").classList.add("show")},500)},commentText:function(e){"undefined"!=e&&"null"!=e||(e="好棒!");var t=document.getElementsByClassName("el-textarea__inner")[0],n=document.createEvent("HTMLEvents");t&&(n.initEvent("input",!0,!0),e=replaceAll(e,"\n","\n> "),t.value="> "+e+"\n\n",t.dispatchEvent(n),e=document.querySelector("#post-comment").offsetTop,window.scrollTo(0,e-80),t.focus(),t.setSelectionRange(-1,-1),document.getElementById("comment-tips")&&document.getElementById("comment-tips").classList.add("show"))},sayhi:function(){document.querySelector("#author-info__sayhi")&&(document.getElementById("author-info__sayhi").innerHTML=getTimeState()+"!我是")},addFriendLink:function(){var e,t=document.getElementsByClassName("el-textarea__inner")[0];t&&((e=document.createEvent("HTMLEvents")).initEvent("input",!0,!0),t.value="昵称(请勿包含博客等字样):\n网站地址(要求博客地址,请勿提交个人主页):\n头像图片url(请提供尽可能清晰的图片,我会上传到我自己的图床):\n描述:\n站点截图(可选):\n",t.dispatchEvent(e),t.focus(),t.setSelectionRange(-1,-1))},musicToggle:function(){var e=!(0<arguments.length&&void 0!==arguments[0])||arguments[0];anzhiyu_musicFirst||(musicBindEvent(),anzhiyu_musicFirst=!0);anzhiyu_musicStretch=anzhiyu_musicPlaying?(document.querySelector("#nav-music").classList.remove("playing"),document.getElementById("menu-music-toggle").innerHTML='<i class="fa-solid fa-play"></i><span>播放音乐</span>',document.getElementById("nav-music-hoverTips").innerHTML="音乐已暂停",document.querySelector("#consoleMusic").classList.remove("on"),anzhiyu_musicPlaying=!1,document.querySelector("#nav-music").classList.remove("stretch"),!1):(document.querySelector("#nav-music").classList.add("playing"),document.getElementById("menu-music-toggle").innerHTML='<i class="fa-solid fa-pause"></i><span>暂停音乐</span>',document.querySelector("#consoleMusic").classList.add("on"),anzhiyu_musicPlaying=!0,document.querySelector("#nav-music").classList.add("stretch"),!0),e&&document.querySelector("#nav-music meting-js").aplayer.toggle()},musicTelescopic:function(){anzhiyu_musicStretch=anzhiyu_musicStretch?(document.querySelector("#nav-music").classList.remove("stretch"),!1):(document.querySelector("#nav-music").classList.add("stretch"),!0)},musicSkipBack:function(){document.querySelector("#nav-music meting-js").aplayer.skipBack()},musicSkipForward:function(){document.querySelector("#nav-music meting-js").aplayer.skipForward()},musicGetName:function(){for(var e=$(".aplayer-title"),t=[],n=e.length-1;0<=n;n--)t[n]=e[n].innerText;return t[0]},darkModeStatus:function(){"light"==("dark"===document.documentElement.getAttribute("data-theme")?"dark":"light")?$(".menu-darkmode-text").text("深色模式"):$(".menu-darkmode-text").text("浅色模式")},initConsoleState:function(){document.documentElement.classList.contains("hide-aside")?document.querySelector("#consoleHideAside").classList.add("on"):document.querySelector("#consoleHideAside").classList.remove("on")},showConsole:function(){document.querySelector("#console").classList.add("show"),anzhiyu.initConsoleState()},hideConsole:function(){document.querySelector("#console").classList.remove("show")}},getTimeState=function(){var e=(new Date).getHours(),t="";return 0<=e&&e<=5?t="晚安😴":5<e&&e<=10?t="早上好👋":10<e&&e<=14?t="中午好👋":14<e&&e<=18?t="下午好👋":18<e&&e<=24&&(t="晚上好👋"),t};document.addEventListener("pjax:send",function(){anzhiyu.showLoading}),document.getElementById("page-name").innerText=document.title.split(" | 安知鱼")[0],anzhiyu.initIndexEssay(),anzhiyu.changeTimeInEssay(),anzhiyu.changeTimeInAlbumDetail(),anzhiyu.reflashEssayWaterFall(),anzhiyu.sayhi(),anzhiyu.stopImgRightDrag(),anzhiyu.addNavBackgroundInit(),addRightMenuClickEvent(),coverColor(),window.onload=function(){percent(),anzhiyu.initThemeColor()},anzhiyu.initThemeColor();

@@ -1,1 +0,1 @@

"use strict";function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function owoBig(){var t=1,n="",i=document.createElement("div"),l=(i.id="owo-big",document.querySelector("body"));l.appendChild(i),document.getElementById("post-comment").addEventListener("DOMNodeInserted",function(e){e.target.classList&&"OwO-body"==e.target.classList.value&&((e=e.target).addEventListener("contextmenu",function(e){return e.preventDefault()}),e.addEventListener("mouseover",function(c){"IMG"==c.target.tagName&&t&&(t=0,n=setTimeout(function(){var e=3*c.path[0].clientHeight,t=3*c.path[0].clientWidth,n=c.x-c.offsetX-(t-c.path[0].clientWidth)/2,o=(n+t>l.clientWidth&&(n-=n+t-l.clientWidth+10),n<0&&(n=10),c.y-c.offsetY);i.style.height=e+"px",i.style.width=t+"px",i.style.left=n+"px",i.style.top=o+"px",i.style.display="flex",i.innerHTML='<img src="'.concat(c.target.src,'">')},300))}),e.addEventListener("mouseout",function(e){i.style.display="none",t=1,clearTimeout(n)}))})}function isInViewPortOfOne(e){var t;if(e)return t=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,e.offsetTop-document.documentElement.scrollTop<=t}document.getElementById("post-comment")&&owoBig(),window.onscroll=btf.throttle(percent,50);var percentFlag=!1;function percent(){window.scrollY;var e=document.querySelector("#nav-music"),t=document.getElementById("footer"),e=(t&&e&&768<document.body.clientWidth&&(e.style.bottom=isInViewPortOfOne(t)?"-10px":"20px",e.style.opacity=isInViewPortOfOne(t)?"0":"1"),document.documentElement.scrollTop||window.pageYOffset),t=Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)-document.documentElement.clientHeight,t=Math.round(e/t*100),n=document.querySelector("#percent"),e=e%document.documentElement.clientHeight;0<=(t=t<=99?t:99)||(t=0),!percentFlag&&100+e>=document.documentElement.clientHeight&&document.querySelector("#waterfall")?(console.info(e,document.documentElement.clientHeight),setTimeout(function(){waterfall("#waterfall")},500)):setTimeout(function(){document.querySelector("#waterfall")&&waterfall("#waterfall")},500),isInViewPortOfOne(document.getElementById("post-comment")||document.getElementById("footer"))||90<t?(document.querySelector("#nav-totop").classList.add("long"),n.innerHTML="返回顶部",percentFlag=!0):(document.querySelector("#nav-totop").classList.remove("long"),n.innerHTML=t)}function ScrollBarElongation(){var e=document.documentElement.scrollTop||window.pageYOffset,t=Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)-document.documentElement.clientHeight,n=e/t,o=document.querySelector(".as-indicator");.1<=n&&(o.style.transform="scale3d(1, ".concat(e/t,", 1)"))}function totraveling(){btf.snackbarShow("即将跳转到「开往」项目的成员博客,不保证跳转网站的安全性和可用性",!1,5e3),setTimeout(function(){window.open("https://travellings.link/")},"5000")}function replaceAll(e,t,n){return e.split(t).join(n)}hasMobile()||document.addEventListener("scroll",ScrollBarElongation),window.onkeydown=function(e){123===e.keyCode&&btf.snackbarShow("开发者模式已打开,请遵循GPL协议",!1)};var navFn={switchDarkMode:function(){"light"==("dark"===document.documentElement.getAttribute("data-theme")?"dark":"light")?(activateDarkMode(),saveToLocal.set("theme","dark",2),void 0!==GLOBAL_CONFIG.Snackbar&&btf.snackbarShow(GLOBAL_CONFIG.Snackbar.day_to_night,!1,2e3)):(activateLightMode(),saveToLocal.set("theme","light",2),void 0!==GLOBAL_CONFIG.Snackbar&&btf.snackbarShow(GLOBAL_CONFIG.Snackbar.night_to_day,!1,2e3)),"function"==typeof utterancesTheme&&utterancesTheme(),"object"===("undefined"==typeof FB?"undefined":_typeof(FB))&&window.loadFBComment(),window.DISQUS&&document.getElementById("disqus_thread").children.length&&setTimeout(function(){return window.disqusReset()},200);var e,t="light"===document.documentElement.getAttribute("data-theme")?"#363636":"#F7F7FA";document.getElementById("posts-chart")&&((e=postsOption).textStyle.color=t,e.title.textStyle.color=t,e.xAxis.axisLine.lineStyle.color=t,e.yAxis.axisLine.lineStyle.color=t,postsChart.setOption(e)),document.getElementById("tags-chart")&&((e=tagsOption).textStyle.color=t,e.title.textStyle.color=t,e.xAxis.axisLine.lineStyle.color=t,e.yAxis.axisLine.lineStyle.color=t,tagsChart.setOption(e)),document.getElementById("categories-chart")&&((e=categoriesOption).textStyle.color=t,e.title.textStyle.color=t,e.legend.textStyle.color=t,categoriesChart.setOption(e))}};function musicBindEvent(){document.querySelector("#nav-music .aplayer-music").addEventListener("click",function(){anzhiyu.musicTelescopic()}),document.querySelector("#nav-music .aplayer-button").addEventListener("click",function(){anzhiyu.musicToggle(!1)})}function dogePlayerInit(e){new DogePlayer({container:document.getElementById(e.container),userId:e.userId||4945,vcode:e.vcode,autoPlay:!1})}function hasMobile(){var e=!1;return navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)&&(e=!0),e=document.body.clientWidth<800?!0:e}
"use strict";function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function owoBig(){var e=1,o="",r=document.createElement("div"),c=(r.id="owo-big",document.querySelector("body"));c.appendChild(r),document.getElementById("post-comment").addEventListener("DOMNodeInserted",function(t){t.target.classList&&"OwO-body"==t.target.classList.value&&((t=t.target).addEventListener("contextmenu",function(t){return t.preventDefault()}),t.addEventListener("mouseover",function(i){"IMG"==i.target.tagName&&e&&(e=0,o=setTimeout(function(){var t=3*i.path[0].clientHeight,e=3*i.path[0].clientWidth,o=i.x-i.offsetX-(e-i.path[0].clientWidth)/2,n=(o+e>c.clientWidth&&(o-=o+e-c.clientWidth+10),o<0&&(o=10),i.y-i.offsetY);r.style.height=t+"px",r.style.width=e+"px",r.style.left=o+"px",r.style.top=n+"px",r.style.display="flex",r.innerHTML='<img src="'.concat(i.target.src,'">')},300))}),t.addEventListener("mouseout",function(t){r.style.display="none",e=1,clearTimeout(o)}))})}function isInViewPortOfOne(t){var e;if(t)return e=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,t.offsetTop-document.documentElement.scrollTop<=e}document.getElementById("post-comment")&&owoBig(),window.scrollPercent=btf.throttle(percent,48),window.addEventListener("scroll",scrollPercent);var scrollBottomFirstFlag=!1,musicDom=document.getElementById("nav-music"),footerDom=document.getElementById("footer"),waterfallDom=document.getElementById("waterfall"),percentBtn=document.getElementById("percent"),pageBottomDomFlag=document.getElementById("post-comment")||document.getElementById("footer");function percent(){footerDom&&musicDom&&768<document.body.clientWidth&&(musicDom.style.bottom=isInViewPortOfOne(footerDom)?"-10px":"20px",musicDom.style.opacity=isInViewPortOfOne(footerDom)?"0":"1");var t=document.documentElement.scrollTop||window.pageYOffset,e=Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)-document.documentElement.clientHeight,e=Math.round(t/e*100);e=0<=(e=e<=99?e:99)?e:0,isInViewPortOfOne(pageBottomDomFlag)||90<e?(document.getElementById("nav-totop").classList.add("long"),percentBtn.innerHTML="返回顶部",scrollBottomFirstFlag=!0):(document.getElementById("nav-totop").classList.remove("long"),percentBtn.innerHTML=e),waterfallDom&&(t=t%document.documentElement.clientHeight,!scrollBottomFirstFlag&&100+t>=document.documentElement.clientHeight?(console.info(t,document.documentElement.clientHeight),setTimeout(function(){waterfall("#waterfall")},500)):setTimeout(function(){waterfallDom&&waterfall("#waterfall")},500)),scrollBottomFirstFlag&&0!==e||!anzhiyu.is_Post()||anzhiyu.initThemeColor()}function totraveling(){btf.snackbarShow("即将跳转到「开往」项目的成员博客,不保证跳转网站的安全性和可用性",!1,5e3),setTimeout(function(){window.open("https://travellings.link/")},"5000")}function replaceAll(t,e,o){return t.split(e).join(o)}window.onkeydown=function(t){123===t.keyCode&&btf.snackbarShow("开发者模式已打开,请遵循GPL协议",!1)};var navFn={switchDarkMode:function(){"light"==("dark"===document.documentElement.getAttribute("data-theme")?"dark":"light")?(activateDarkMode(),saveToLocal.set("theme","dark",2),void 0!==GLOBAL_CONFIG.Snackbar&&btf.snackbarShow(GLOBAL_CONFIG.Snackbar.day_to_night,!1,2e3)):(activateLightMode(),saveToLocal.set("theme","light",2),void 0!==GLOBAL_CONFIG.Snackbar&&btf.snackbarShow(GLOBAL_CONFIG.Snackbar.night_to_day,!1,2e3)),"function"==typeof utterancesTheme&&utterancesTheme(),"object"===("undefined"==typeof FB?"undefined":_typeof(FB))&&window.loadFBComment(),window.DISQUS&&document.getElementById("disqus_thread").children.length&&setTimeout(function(){return window.disqusReset()},200);var t,e="light"===document.documentElement.getAttribute("data-theme")?"#363636":"#F7F7FA";document.getElementById("posts-chart")&&((t=postsOption).textStyle.color=e,t.title.textStyle.color=e,t.xAxis.axisLine.lineStyle.color=e,t.yAxis.axisLine.lineStyle.color=e,postsChart.setOption(t)),document.getElementById("tags-chart")&&((t=tagsOption).textStyle.color=e,t.title.textStyle.color=e,t.xAxis.axisLine.lineStyle.color=e,t.yAxis.axisLine.lineStyle.color=e,tagsChart.setOption(t)),document.getElementById("categories-chart")&&((t=categoriesOption).textStyle.color=e,t.title.textStyle.color=e,t.legend.textStyle.color=e,categoriesChart.setOption(t))}};function musicBindEvent(){document.querySelector("#nav-music .aplayer-music").addEventListener("click",function(){anzhiyu.musicTelescopic()}),document.querySelector("#nav-music .aplayer-button").addEventListener("click",function(){anzhiyu.musicToggle(!1)})}function dogePlayerInit(t){new DogePlayer({container:document.getElementById(t.container),userId:t.userId||4945,vcode:t.vcode,autoPlay:!1})}function hasMobile(){var t=!1;return navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)&&(t=!0),t=document.body.clientWidth<800?!0:t}function coverColor(){var o,t=null==(t=document.getElementById("post-top-bg"))?void 0:t.src,n=document.querySelector(":root");void 0!==t?((o=new XMLHttpRequest).open("GET",t+"?imageAve",!0),o.send(),o.onreadystatechange=function(){if(4==o.readyState&&200==o.status){var t=o.responseText;try{var e=JSON.parse(t,function(t,e){return e}).RGB;"light"==getContrastYIQ(e="#"+e.slice(2))&&(e=LightenDarkenColor(colorHex(e),-40)),n.style.setProperty("--anzhiyu-bar-background",e),anzhiyu.initThemeColor(e)}catch(t){n.style.setProperty("--anzhiyu-bar-background","var(--anzhiyu-main)"),anzhiyu.initThemeColor(e)}}}):n.style.setProperty("--anzhiyu-bar-background","var(--anzhiyu-meta-theme-color)")}function colorHex(t){if(/^(rgb|RGB)/.test(t)){for(var e=t.replace(/(?:\(|\)|rgb|RGB)*/g,"").split(","),o="#",n=0;n<e.length;n++){var i=Number(e[n]).toString(16);"0"===i&&(i+=i),o+=i}return o=7!==o.length?t:o}if(!/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(t))return t;var r=t.replace(/#/,"").split("");if(6===r.length)return t;if(3===r.length){for(var c="#",n=0;n<r.length;n+=1)c+=r[n]+r[n];return c}}function colorRgb(t){var e=t.toLowerCase();if(e&&/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(e)){if(4===e.length){for(var o="#",n=1;n<4;n+=1)o+=e.slice(n,n+1).concat(e.slice(n,n+1));e=o}for(var i=[],n=1;n<7;n+=2)i.push(parseInt("0x"+e.slice(n,n+2)));return"rgb("+i.join(",")+")"}return e}function LightenDarkenColor(t,e){var o=!1,t=("#"==t[0]&&(t=t.slice(1),o=!0),parseInt(t,16)),n=(t>>16)+e,i=(255<n?n=255:n<0&&(n=0),(t>>8&255)+e),t=(255<i?i=255:i<0&&(i=0),(255&t)+e);return 255<t?t=255:t<0&&(t=0),(o?"#":"")+String("000000"+(t|i<<8|n<<16).toString(16)).slice(-6)}function getContrastYIQ(t){t=colorRgb(t).match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/),t=299*t[1]+587*t[2]+114*t[3];return.5<=(t/=255e3)?"light":"dark"}

@@ -1,1 +0,1 @@

"use strict";function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,r){var a;if(e)return"string"==typeof e?_arrayLikeToArray(e,r):"Map"===(a="Object"===(a=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:a)||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?_arrayLikeToArray(e,r):void 0}function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayLikeToArray(e,r){(null==r||r>e.length)&&(r=e.length);for(var a=0,t=new Array(r);a<r;a++)t[a]=e[a];return t}var commentBarrageConfig={maxBarrage:1,barrageTime:4e3,twikooUrl:"https://twikoo.anzhiy.cn/",accessToken:"2d3491da257a46b78951ffcdbde89f2e",pageUrl:window.location.pathname,barrageTimer:[],barrageList:[],barrageIndex:0,dom:document.querySelector(".comment-barrage")},commentInterval=null,hoverOnCommentBarrage=!1;function initCommentBarrage(){var e,r;commentBarrageConfig.dom&&(e=JSON.stringify({event:"COMMENT_GET","commentBarrageConfig.accessToken":commentBarrageConfig.accessToken,url:commentBarrageConfig.pageUrl}),(r=new XMLHttpRequest).withCredentials=!0,r.addEventListener("readystatechange",function(){4===this.readyState&&(commentBarrageConfig.barrageList=commentLinkFilter(JSON.parse(this.responseText).data),commentBarrageConfig.dom.innerHTML="")}),r.open("POST",commentBarrageConfig.twikooUrl),r.setRequestHeader("Content-Type","application/json"),r.send(e),clearInterval(commentInterval),commentInterval=null,commentInterval=setInterval(function(){commentBarrageConfig.barrageList.length&&!hoverOnCommentBarrage&&(popCommentBarrage(commentBarrageConfig.barrageList[commentBarrageConfig.barrageIndex]),commentBarrageConfig.barrageIndex+=1,commentBarrageConfig.barrageIndex%=commentBarrageConfig.barrageList.length),commentBarrageConfig.barrageTimer.length>(commentBarrageConfig.barrageList.length>commentBarrageConfig.maxBarrage?commentBarrageConfig.maxBarrage:commentBarrageConfig.barrageList.length)&&!hoverOnCommentBarrage&&removeCommentBarrage(commentBarrageConfig.barrageTimer.shift())},commentBarrageConfig.barrageTime))}function commentLinkFilter(e){e.sort(function(e,r){return e.created-r.created});var r=[];return e.forEach(function(e){r.push.apply(r,_toConsumableArray(getCommentReplies(e)))}),r}function getCommentReplies(e){var r;return e.replies?(r=[e],e.replies.forEach(function(e){r.push.apply(r,_toConsumableArray(getCommentReplies(e)))}),r):[]}function popCommentBarrage(e){var r=document.createElement("div");commentBarrageConfig.dom.clientWidth,commentBarrageConfig.dom.clientHeight;r.className="comment-barrage-item",r.innerHTML='\n <div class="barrageHead">\n <a class="barrageTitle" href="javascript:anzhiyu.scrollTo(\'#post-comment\')"">热评</a>\n <div class="barrageNick">'.concat(e.nick,'</div>\n <img class="barrageAvatar" src="https://cravatar.cn/avatar/').concat(e.mailMd5,'"/>\n <a class="comment-barrage-close" href="javascript:anzhiyu.switchCommentBarrage()"><i class="fa-solid fa-xmark"></i></a>\n </div>\n <a class="barrageContent" href="#').concat(e.id,'">').concat(e.comment,"</a>\n "),commentBarrageConfig.barrageTimer.push(r),commentBarrageConfig.dom.append(r)}function removeCommentBarrage(e){e.className="comment-barrage-item out",setTimeout(function(){commentBarrageConfig.dom.removeChild(e)},1e3)}$(".comment-barrage").hover(function(){hoverOnCommentBarrage=!0,console.log("热评悬浮")},function(){hoverOnCommentBarrage=!1,console.log("停止悬浮")}),document.addEventListener("scroll",btf.throttle(function(){window.scrollY;var e=document.querySelector(".comment-barrage"),r=document.getElementById("post-comment");r&&e&&768<document.body.clientWidth&&(e.style.bottom=isInViewPortOfOne(r)?"-200px":"0")},200),{passive:!0}),initCommentBarrage(),"false"!==localStorage.getItem("commentBarrageSwitch")?($(".comment-barrage").show(),$(".menu-commentBarrage-text").text("关闭热评")):($(".comment-barrage").hide(),$(".menu-commentBarrage-text").text("显示热评")),document.addEventListener("pjax:send",function(){clearInterval(commentInterval)});
"use strict";function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,r){var a;if(e)return"string"==typeof e?_arrayLikeToArray(e,r):"Map"===(a="Object"===(a=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:a)||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?_arrayLikeToArray(e,r):void 0}function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayLikeToArray(e,r){(null==r||r>e.length)&&(r=e.length);for(var a=0,t=new Array(r);a<r;a++)t[a]=e[a];return t}var commentBarrageConfig={maxBarrage:1,barrageTime:4e3,twikooUrl:"https://twikoo.anzhiy.cn/",accessToken:"2d3491da257a46b78951ffcdbde89f2e",pageUrl:window.location.pathname,barrageTimer:[],barrageList:[],barrageIndex:0,dom:document.querySelector(".comment-barrage")},commentInterval=null,hoverOnCommentBarrage=!1;function initCommentBarrage(){var e,r;commentBarrageConfig.dom&&(e=JSON.stringify({event:"COMMENT_GET","commentBarrageConfig.accessToken":commentBarrageConfig.accessToken,url:commentBarrageConfig.pageUrl}),(r=new XMLHttpRequest).withCredentials=!0,r.addEventListener("readystatechange",function(){4===this.readyState&&(commentBarrageConfig.barrageList=commentLinkFilter(JSON.parse(this.responseText).data),commentBarrageConfig.dom.innerHTML="")}),r.open("POST",commentBarrageConfig.twikooUrl),r.setRequestHeader("Content-Type","application/json"),r.send(e),clearInterval(commentInterval),commentInterval=null,commentInterval=setInterval(function(){commentBarrageConfig.barrageList.length&&!hoverOnCommentBarrage&&(popCommentBarrage(commentBarrageConfig.barrageList[commentBarrageConfig.barrageIndex]),commentBarrageConfig.barrageIndex+=1,commentBarrageConfig.barrageIndex%=commentBarrageConfig.barrageList.length),commentBarrageConfig.barrageTimer.length>(commentBarrageConfig.barrageList.length>commentBarrageConfig.maxBarrage?commentBarrageConfig.maxBarrage:commentBarrageConfig.barrageList.length)&&!hoverOnCommentBarrage&&removeCommentBarrage(commentBarrageConfig.barrageTimer.shift())},commentBarrageConfig.barrageTime))}function commentLinkFilter(e){e.sort(function(e,r){return e.created-r.created});var r=[];return e.forEach(function(e){r.push.apply(r,_toConsumableArray(getCommentReplies(e)))}),r}function getCommentReplies(e){var r;return e.replies?(r=[e],e.replies.forEach(function(e){r.push.apply(r,_toConsumableArray(getCommentReplies(e)))}),r):[]}function popCommentBarrage(e){var r=document.createElement("div");commentBarrageConfig.dom.clientWidth,commentBarrageConfig.dom.clientHeight;r.className="comment-barrage-item",r.innerHTML='\n <div class="barrageHead">\n <a class="barrageTitle" href="javascript:anzhiyu.scrollTo(\'#post-comment\')"">热评</a>\n <div class="barrageNick">'.concat(e.nick,'</div>\n <img class="barrageAvatar" src="https://cravatar.cn/avatar/').concat(e.mailMd5,'"/>\n <a class="comment-barrage-close" href="javascript:anzhiyu.switchCommentBarrage()"><i class="fa-solid fa-xmark"></i></a>\n </div>\n <a class="barrageContent" href="#').concat(e.id,'">').concat(e.comment,"</a>\n "),commentBarrageConfig.barrageTimer.push(r),commentBarrageConfig.dom.append(r)}function removeCommentBarrage(e){e.className="comment-barrage-item out",setTimeout(function(){commentBarrageConfig.dom&&commentBarrageConfig.dom.removeChild(e)},1e3)}$(".comment-barrage").hover(function(){hoverOnCommentBarrage=!0,console.log("热评悬浮")},function(){hoverOnCommentBarrage=!1,console.log("停止悬浮")}),document.addEventListener("scroll",btf.throttle(function(){window.scrollY;var e=document.querySelector(".comment-barrage"),r=document.getElementById("post-comment");r&&e&&768<document.body.clientWidth&&(e.style.bottom=isInViewPortOfOne(r)?"-200px":"0")},200),{passive:!0}),initCommentBarrage(),"false"!==localStorage.getItem("commentBarrageSwitch")?($(".comment-barrage").show(),$(".menu-commentBarrage-text").text("关闭热评")):($(".comment-barrage").hide(),$(".menu-commentBarrage-text").text("显示热评")),document.addEventListener("pjax:send",function(){clearInterval(commentInterval)});

@@ -1,1 +0,1 @@

"use strict";var now=new Date;function createtime(){var e=new Date("04/01/2021 00:00:00");now.setTime(now.getTime()+250);var t=Math.floor((now-e)/1e3/60/60/24),n=Math.floor((now-e)/1e3/60/60-24*t),a=(1==String(n).length&&(n="0"+n),(now-e)/1e3/60-1440*t-60*n),a=Math.floor(a),e=(1==String(a).length&&(a="0"+a),(now-e)/1e3-86400*t-3600*n-60*a),e=Math.round(e),o=(1==String(e).length&&(e="0"+e),""),o=(n<18&&9<=n?"<img class='boardsign' src='https://npm.elemecdn.com/anzhiyu-blog@2.0.4/img/badge/安知鱼-上班摸鱼中.svg' title='距离月入25k也就还差一个大佬带我~'><span class='textTip'> <br> 本站居然运行了 ":"<img class='boardsign' src='https://npm.elemecdn.com/anzhiyu-blog@2.0.4/img/badge/安知鱼-下班啦.svg' title='下班了就该开开心心的玩耍,嘿嘿~'><span class='textTip'> <br> 本站居然运行了 ").concat(t," 天</span><span id='runtime'> ").concat(n," 小时 ").concat(a," 分 ").concat(e," 秒 </span> <i class='fas fa-heartbeat' style='color:red'></i>");document.getElementById("workboard")&&(document.getElementById("workboard").innerHTML=o)}setInterval(function(){createtime()},250);
"use strict";!function(){var n,a,o,r,c=new Date("04/01/2021 00:00:00");new Date;setInterval(function(){var t,e;r=new Date,n=Math.floor((r-c)/1e3/60/60/24),e=(r-c)/1e3/60/60-24*n,a=Math.floor(e),1==String(a).length&&(a="0"+a),e=(r-c)/1e3/60-1440*n-60*a,o=Math.floor(e),1==String(o).length&&(o="0"+o),e=(r-c)/1e3-86400*n-3600*a-60*o,r=Math.round(e),1==String(r).length&&(r="0"+r),e="",a<18&&9<=a||((t=document.querySelector("#workboard .workSituationImg")).src="https://npm.elemecdn.com/anzhiyu-blog@2.0.4/img/badge/安知鱼-下班啦.svg",t.title="下班了就该开开心心的玩耍,嘿嘿~",t.alt="下班了就该开开心心的玩耍,嘿嘿~"),e="本站居然运行了 ".concat(n," 天<span id='runtime'> ").concat(a," 小时 ").concat(o," 分 ").concat(r," 秒 </span><i class='fas fa-heartbeat' style='color:red'></i>"),document.getElementById("runtimeTextTip")&&(document.getElementById("runtimeTextTip").innerHTML=e)},1e3)}();

@@ -1,1 +0,1 @@

"use strict";function _slicedToArray(t,e){return _arrayWithHoles(t)||_iterableToArrayLimit(t,e)||_unsupportedIterableToArray(t,e)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArrayLimit(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,a=[],i=!0,l=!1;try{for(n=n.call(t);!(i=(r=n.next()).done)&&(a.push(r.value),!e||a.length!==e);i=!0);}catch(t){l=!0,o=t}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return a}}function _arrayWithHoles(t){if(Array.isArray(t))return t}function _toConsumableArray(t){return _arrayWithoutHoles(t)||_iterableToArray(t)||_unsupportedIterableToArray(t)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(t,e){var n;if(t)return"string"==typeof t?_arrayLikeToArray(t,e):"Map"===(n="Object"===(n=Object.prototype.toString.call(t).slice(8,-1))&&t.constructor?t.constructor.name:n)||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(t,e):void 0}function _iterableToArray(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function _arrayWithoutHoles(t){if(Array.isArray(t))return _arrayLikeToArray(t)}function _arrayLikeToArray(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var btf={debounce:function(r,o,a){var i;return function(){var t=this,e=arguments,n=a&&!i;clearTimeout(i),i=setTimeout(function(){i=null,a||r.apply(t,e)},o),n&&r.apply(t,e)}},throttle:function(n,r,o){function a(){s=!1===o.leading?0:(new Date).getTime(),i=null,n.apply(l,u),i||(l=u=null)}var i,l,u,s=0;o=o||{};return function(){var t=(new Date).getTime(),e=(s||!1!==o.leading||(s=t),r-(t-s));l=this,u=arguments,e<=0||r<e?(i&&(clearTimeout(i),i=null),s=t,n.apply(l,u),i||(l=u=null)):i||!1===o.trailing||(i=setTimeout(a,e))}},sidebarPaddingR:function(){var t=window.innerWidth,e=document.body.clientWidth;t!==e&&(document.body.style.paddingRight=t-e+"px")},snackbarShow:function(t){var e=1<arguments.length&&void 0!==arguments[1]&&arguments[1],n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:2e3,r=GLOBAL_CONFIG.Snackbar,o=r.position,a=r.bgLight,r=r.bgDark,a="light"===document.documentElement.getAttribute("data-theme")?a:r;document.styleSheets[0].addRule?document.styleSheets[0].addRule(":root","--anzhiyu-snackbar-time: "+n+"ms !important"):document.styleSheets[0].insertRule(":root {--anzhiyu-snackbar-time: "+n+"ms !important}"),Snackbar.show({text:t,backgroundColor:a,showAction:e,duration:n,pos:o,customClass:"snackbar-css"})},diffDate:function(t){var e,n,r,o=1<arguments.length&&void 0!==arguments[1]&&arguments[1],a=new Date,t=new Date(t),a=a.getTime()-t.getTime();return o?(o=a/864e5,n=a/36e5,r=a/6e4,12<(e=a/2592e6)?t.toLocaleDateString().replace(/\//g,"-"):1<=e?parseInt(e)+" "+GLOBAL_CONFIG.date_suffix.month:1<=o?parseInt(o)+" "+GLOBAL_CONFIG.date_suffix.day:1<=n?parseInt(n)+" "+GLOBAL_CONFIG.date_suffix.hour:1<=r?parseInt(r)+" "+GLOBAL_CONFIG.date_suffix.min:GLOBAL_CONFIG.date_suffix.just):parseInt(a/864e5)},loadComment:function(t,e){var n;"IntersectionObserver"in window?(n=new IntersectionObserver(function(t){t[0].isIntersecting&&(e(),n.disconnect())},{threshold:[0]})).observe(t):e()},scrollToDest:function(n){var r,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:500,a=window.pageYOffset;n<a&&(n-=70),"scrollBehavior"in document.documentElement.style?window.scrollTo({top:n,behavior:"smooth"}):(r=null,n=+n,window.requestAnimationFrame(function t(e){e-=r=r||e;a<n?window.scrollTo(0,(n-a)*e/o+a):window.scrollTo(0,a-(a-n)*e/o),e<o?window.requestAnimationFrame(t):window.scrollTo(0,n)}))},animateIn:function(t,e){t.style.display="block",t.style.animation=e},animateOut:function(e,t){e.addEventListener("animationend",function t(){e.style.display="",e.style.animation="",e.removeEventListener("animationend",t)}),e.style.animation=t},getParents:function(t,e){for(;t&&t!==document;t=t.parentNode)if(t.matches(e))return t;return null},siblings:function(e,n){return _toConsumableArray(e.parentNode.children).filter(function(t){return n?t!==e&&t.matches(n):t!==e})},wrap:function(t,e,n){for(var r=document.createElement(e),o=0,a=Object.entries(n);o<a.length;o++){var i=_slicedToArray(a[o],2),l=i[0],i=i[1];r.setAttribute(l,i)}t.parentNode.insertBefore(r,t),r.appendChild(t)},unwrap:function(t){var e=t.parentNode;e!==document.body&&(e.parentNode.insertBefore(t,e),e.parentNode.removeChild(e))},isHidden:function(t){return 0===t.offsetHeight&&0===t.offsetWidth},getEleTop:function(t){for(var e=t.offsetTop,n=t.offsetParent;null!==n;)e+=n.offsetTop,n=n.offsetParent;return e},loadLightbox:function(t){var n,e=GLOBAL_CONFIG.lightbox;"mediumZoom"===e&&(n=mediumZoom(t)).on("open",function(t){var e="dark"===document.documentElement.getAttribute("data-theme")?"#121212":"#fff";n.update({background:e})}),"fancybox"===e&&(t.forEach(function(t){var e,n;"A"!==t.parentNode.tagName&&(e=t.dataset.lazySrc||t.src,n=t.title||t.alt||"",btf.wrap(t,"a",{href:e,"data-fancybox":"gallery","data-caption":n,"data-thumb":e}))}),window.fancyboxRun||(Fancybox.bind("[data-fancybox]",{Hash:!1,Thumbs:{autoStart:!1}}),window.fancyboxRun=!0))},initJustifiedGallery:function(t){t.forEach(function(t){btf.isHidden(t)||fjGallery(t,{itemSelector:".fj-gallery-item",rowHeight:220,gutter:4,onJustify:function(){this.$container.style.opacity="1"}})})},updateAnchor:function(t){var e;t!==window.location.hash&&(t=t||location.pathname,e=GLOBAL_CONFIG_SITE.title,window.history.replaceState({url:location.href,title:e},e,t))}};
"use strict";function _slicedToArray(t,e){return _arrayWithHoles(t)||_iterableToArrayLimit(t,e)||_unsupportedIterableToArray(t,e)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArrayLimit(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,a=[],i=!0,l=!1;try{for(n=n.call(t);!(i=(r=n.next()).done)&&(a.push(r.value),!e||a.length!==e);i=!0);}catch(t){l=!0,o=t}finally{try{i||null==n.return||n.return()}finally{if(l)throw o}}return a}}function _arrayWithHoles(t){if(Array.isArray(t))return t}function _toConsumableArray(t){return _arrayWithoutHoles(t)||_iterableToArray(t)||_unsupportedIterableToArray(t)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(t,e){var n;if(t)return"string"==typeof t?_arrayLikeToArray(t,e):"Map"===(n="Object"===(n=Object.prototype.toString.call(t).slice(8,-1))&&t.constructor?t.constructor.name:n)||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(t,e):void 0}function _iterableToArray(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function _arrayWithoutHoles(t){if(Array.isArray(t))return _arrayLikeToArray(t)}function _arrayLikeToArray(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var btf={debounce:function(r,o,a){var i;return function(){var t=this,e=arguments,n=a&&!i;clearTimeout(i),i=setTimeout(function(){i=null,a||r.apply(t,e)},o),n&&r.apply(t,e)}},throttle:function(n,r,o){function a(){c=!1===o.leading?0:(new Date).getTime(),i=null,n.apply(l,u),i||(l=u=null)}var i,l,u,c=0;o=o||{};return function(){var t=(new Date).getTime(),e=(c||!1!==o.leading||(c=t),r-(t-c));l=this,u=arguments,e<=0||r<e?(i&&(clearTimeout(i),i=null),c=t,n.apply(l,u),i||(l=u=null)):i||!1===o.trailing||(i=setTimeout(a,e))}},sidebarPaddingR:function(){var t=window.innerWidth,e=document.body.clientWidth;t!==e&&(document.body.style.paddingRight=t-e+"px")},snackbarShow:function(t){var e=1<arguments.length&&void 0!==arguments[1]&&arguments[1],n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:2e3,r=GLOBAL_CONFIG.Snackbar,o=r.position,a=r.bgLight,r=r.bgDark,a="light"===document.documentElement.getAttribute("data-theme")?a:r;document.querySelector(":root").style.setProperty("--anzhiyu-snackbar-time",n+"ms"),Snackbar.show({text:t,backgroundColor:a,showAction:e,duration:n,pos:o,customClass:"snackbar-css"})},diffDate:function(t){var e,n,r,o=1<arguments.length&&void 0!==arguments[1]&&arguments[1],a=new Date,t=new Date(t),a=a.getTime()-t.getTime();return o?(o=a/864e5,n=a/36e5,r=a/6e4,12<(e=a/2592e6)?t.toLocaleDateString().replace(/\//g,"-"):1<=e?parseInt(e)+" "+GLOBAL_CONFIG.date_suffix.month:1<=o?parseInt(o)+" "+GLOBAL_CONFIG.date_suffix.day:1<=n?parseInt(n)+" "+GLOBAL_CONFIG.date_suffix.hour:1<=r?parseInt(r)+" "+GLOBAL_CONFIG.date_suffix.min:GLOBAL_CONFIG.date_suffix.just):parseInt(a/864e5)},loadComment:function(t,e){var n;"IntersectionObserver"in window?(n=new IntersectionObserver(function(t){t[0].isIntersecting&&(e(),n.disconnect())},{threshold:[0]})).observe(t):e()},scrollToDest:function(n){var r,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:500,a=window.pageYOffset;n<a&&(n-=70),"scrollBehavior"in document.documentElement.style?window.scrollTo({top:n,behavior:"smooth"}):(r=null,n=+n,window.requestAnimationFrame(function t(e){e-=r=r||e;a<n?window.scrollTo(0,(n-a)*e/o+a):window.scrollTo(0,a-(a-n)*e/o),e<o?window.requestAnimationFrame(t):window.scrollTo(0,n)}))},animateIn:function(t,e){t.style.display="block",t.style.animation=e},animateOut:function(e,t){e.addEventListener("animationend",function t(){e.style.display="",e.style.animation="",e.removeEventListener("animationend",t)}),e.style.animation=t},getParents:function(t,e){for(;t&&t!==document;t=t.parentNode)if(t.matches(e))return t;return null},siblings:function(e,n){return _toConsumableArray(e.parentNode.children).filter(function(t){return n?t!==e&&t.matches(n):t!==e})},wrap:function(t,e,n){for(var r=document.createElement(e),o=0,a=Object.entries(n);o<a.length;o++){var i=_slicedToArray(a[o],2),l=i[0],i=i[1];r.setAttribute(l,i)}t.parentNode.insertBefore(r,t),r.appendChild(t)},unwrap:function(t){var e=t.parentNode;e!==document.body&&(e.parentNode.insertBefore(t,e),e.parentNode.removeChild(e))},isHidden:function(t){return 0===t.offsetHeight&&0===t.offsetWidth},getEleTop:function(t){for(var e=t.offsetTop,n=t.offsetParent;null!==n;)e+=n.offsetTop,n=n.offsetParent;return e},loadLightbox:function(t){var n,e=GLOBAL_CONFIG.lightbox;"mediumZoom"===e&&(n=mediumZoom(t)).on("open",function(t){var e="dark"===document.documentElement.getAttribute("data-theme")?"#121212":"#fff";n.update({background:e})}),"fancybox"===e&&(t.forEach(function(t){var e,n;"A"!==t.parentNode.tagName&&(e=t.dataset.lazySrc||t.src,n=t.title||t.alt||"",btf.wrap(t,"a",{href:e,"data-fancybox":"gallery","data-caption":n,"data-thumb":e}))}),window.fancyboxRun||(Fancybox.bind("[data-fancybox]",{Hash:!1,Thumbs:{autoStart:!1}}),window.fancyboxRun=!0))},initJustifiedGallery:function(t){t.forEach(function(t){btf.isHidden(t)||fjGallery(t,{itemSelector:".fj-gallery-item",rowHeight:220,gutter:4,onJustify:function(){this.$container.style.opacity="1"}})})},updateAnchor:function(t){var e;t!==window.location.hash&&(t=t||location.pathname,e=GLOBAL_CONFIG_SITE.title,window.history.replaceState({url:location.href,title:e},e,t))}};

@@ -1,1 +0,1 @@

{"name":"anzhiyu-blog","version":"2.1.4","description":"博客静态资源","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/anzhiyu-c/anzhiyu-c.github.io.git"},"keywords":["anzhiyu","blog"],"author":"anzhiyu","license":"ISC","bugs":{"url":"https://github.com/anzhiyu-c/anzhiyu-c.github.io/issues"},"homepage":"https://github.com/anzhiyu-c/anzhiyu-c.github.io#readme"}
{"name":"anzhiyu-blog","version":"2.1.5","description":"博客静态资源","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/anzhiyu-c/anzhiyu-c.github.io.git"},"keywords":["anzhiyu","blog"],"author":"anzhiyu","license":"ISC","bugs":{"url":"https://github.com/anzhiyu-c/anzhiyu-c.github.io/issues"},"homepage":"https://github.com/anzhiyu-c/anzhiyu-c.github.io#readme"}

@@ -1,1 +0,1 @@

"use strict";var workboxVersion="5.1.3";importScripts("https://storage.googleapis.com/workbox-cdn/releases/".concat(workboxVersion,"/workbox-sw.js")),workbox.core.setCacheNameDetails({prefix:"安知鱼"}),workbox.core.skipWaiting(),workbox.core.clientsClaim(),workbox.precaching.precacheAndRoute([{revision:"0f9612286ca8424d419e56336a0e66d5",url:"./404.html"},{revision:"6bf9a639c7fe328c5c2632b123380e41",url:"./index.html"},{revision:"38b232de3c9e5ab12a2adf764300733f",url:"./js/main.js"},{revision:"6422110cf393eeaadca8c0c6b9db7a2a",url:"./css/index.css"},{revision:"8190796a570d269ef04b777d93d44e6d",url:"./img/404.jpg"},{revision:"88450dd56ea1a00ba772424b30b7d34d",url:"./img/algolia.svg"},{revision:"c2d4a57cd6abff978d2c52ee974c74a9",url:"./img/avatar.jpg"},{revision:"8ae5a79610a0d180e897627550311181",url:"./img/avatar.webp"},{revision:"34a79bf208a1c3bee9d6e491a00cd369",url:"./img/comment_bg.png"},{revision:"d8499ef17be10a92728a69f02f2cf947",url:"./img/favicon.png"},{revision:"68af0be9d22722e74665ef44dd532ba8",url:"./img/friend_404.gif"},{revision:"2f4249413c1f598aadc57ac4c587c5bd",url:"./img/x1.cur"},{revision:"a08852037090515a0a193e7d54b18441",url:"./img/x2.cur"}],{directoryIndex:null}),workbox.precaching.cleanupOutdatedCaches(),workbox.routing.registerRoute(/\.(?:png|jpg|jpeg|gif|bmp|webp|svg|ico)$/,new workbox.strategies.CacheFirst({cacheName:"images",plugins:[new workbox.expiration.ExpirationPlugin({maxEntries:1e3,maxAgeSeconds:2592e3}),new workbox.cacheableResponse.CacheableResponsePlugin({statuses:[0,200]})]})),workbox.routing.registerRoute(/\.(?:eot|ttf|woff|woff2)$/,new workbox.strategies.CacheFirst({cacheName:"fonts",plugins:[new workbox.expiration.ExpirationPlugin({maxEntries:1e3,maxAgeSeconds:2592e3}),new workbox.cacheableResponse.CacheableResponsePlugin({statuses:[0,200]})]})),workbox.routing.registerRoute(/^https:\/\/fonts\.googleapis\.com/,new workbox.strategies.StaleWhileRevalidate({cacheName:"google-fonts-stylesheets"})),workbox.routing.registerRoute(/^https:\/\/fonts\.gstatic\.com/,new workbox.strategies.CacheFirst({cacheName:"google-fonts-webfonts",plugins:[new workbox.expiration.ExpirationPlugin({maxEntries:1e3,maxAgeSeconds:2592e3}),new workbox.cacheableResponse.CacheableResponsePlugin({statuses:[0,200]})]})),workbox.routing.registerRoute(/^https:\/\/npm\.elemecdn\.com\/anzhiyu-blog/,new workbox.strategies.CacheFirst({cacheName:"static-libs",plugins:[new workbox.expiration.ExpirationPlugin({maxEntries:1e3,maxAgeSeconds:2592e3}),new workbox.cacheableResponse.CacheableResponsePlugin({statuses:[0,200]})]})),workbox.routing.registerRoute(/^https:\/\/alist\.anzhiy\.cn/,new workbox.strategies.CacheFirst({cacheName:"alist-anzhiy-cn",plugins:[new workbox.expiration.ExpirationPlugin({maxEntries:1e3,maxAgeSeconds:2592e3}),new workbox.cacheableResponse.CacheableResponsePlugin({statuses:[0,200]})]})),workbox.googleAnalytics.initialize();
"use strict";var workboxVersion="5.1.3";importScripts("https://storage.googleapis.com/workbox-cdn/releases/".concat(workboxVersion,"/workbox-sw.js")),workbox.core.setCacheNameDetails({prefix:"安知鱼"}),workbox.core.skipWaiting(),workbox.core.clientsClaim(),workbox.precaching.precacheAndRoute([{revision:"b7d2aa9d8fe90f9079b4e39bea052b59",url:"./404.html"},{revision:"1bd4b4d57c4c068fe6298f130f43333b",url:"./index.html"},{revision:"38b232de3c9e5ab12a2adf764300733f",url:"./js/main.js"},{revision:"212962d8361cdb4e60d5846427881a5f",url:"./css/index.css"},{revision:"8190796a570d269ef04b777d93d44e6d",url:"./img/404.jpg"},{revision:"88450dd56ea1a00ba772424b30b7d34d",url:"./img/algolia.svg"},{revision:"c2d4a57cd6abff978d2c52ee974c74a9",url:"./img/avatar.jpg"},{revision:"8ae5a79610a0d180e897627550311181",url:"./img/avatar.webp"},{revision:"34a79bf208a1c3bee9d6e491a00cd369",url:"./img/comment_bg.png"},{revision:"463fd720116f4237a0dbf0330c144bf9",url:"./img/favicon.ico"},{revision:"d8499ef17be10a92728a69f02f2cf947",url:"./img/favicon.png"},{revision:"68af0be9d22722e74665ef44dd532ba8",url:"./img/friend_404.gif"},{revision:"2f4249413c1f598aadc57ac4c587c5bd",url:"./img/x1.cur"},{revision:"a08852037090515a0a193e7d54b18441",url:"./img/x2.cur"}],{directoryIndex:null}),workbox.precaching.cleanupOutdatedCaches(),workbox.routing.registerRoute(/\.(?:png|jpg|jpeg|gif|bmp|webp|svg|ico)$/,new workbox.strategies.CacheFirst({cacheName:"images",plugins:[new workbox.expiration.ExpirationPlugin({maxEntries:1e3,maxAgeSeconds:2592e3}),new workbox.cacheableResponse.CacheableResponsePlugin({statuses:[0,200]})]})),workbox.routing.registerRoute(/\.(?:eot|ttf|woff|woff2)$/,new workbox.strategies.CacheFirst({cacheName:"fonts",plugins:[new workbox.expiration.ExpirationPlugin({maxEntries:1e3,maxAgeSeconds:2592e3}),new workbox.cacheableResponse.CacheableResponsePlugin({statuses:[0,200]})]})),workbox.routing.registerRoute(/^https:\/\/fonts\.googleapis\.com/,new workbox.strategies.StaleWhileRevalidate({cacheName:"google-fonts-stylesheets"})),workbox.routing.registerRoute(/^https:\/\/fonts\.gstatic\.com/,new workbox.strategies.CacheFirst({cacheName:"google-fonts-webfonts",plugins:[new workbox.expiration.ExpirationPlugin({maxEntries:1e3,maxAgeSeconds:2592e3}),new workbox.cacheableResponse.CacheableResponsePlugin({statuses:[0,200]})]})),workbox.routing.registerRoute(/^https:\/\/npm\.elemecdn\.com\/anzhiyu-blog/,new workbox.strategies.CacheFirst({cacheName:"static-libs",plugins:[new workbox.expiration.ExpirationPlugin({maxEntries:1e3,maxAgeSeconds:2592e3}),new workbox.cacheableResponse.CacheableResponsePlugin({statuses:[0,200]})]})),workbox.routing.registerRoute(/^https:\/\/alist\.anzhiy\.cn/,new workbox.strategies.CacheFirst({cacheName:"alist-anzhiy-cn",plugins:[new workbox.expiration.ExpirationPlugin({maxEntries:1e3,maxAgeSeconds:2592e3}),new workbox.cacheableResponse.CacheableResponsePlugin({statuses:[0,200]})]})),workbox.googleAnalytics.initialize();

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc