mycpen-blog 0.0.0-ejbnwsbmci → 0.0.0-ejdvaidezs
Sign up to get free protection for your applications and to get access to all the features.
- package/css/index.css +1 -1
- package/js/APlayer.js +1 -1
- package/js/Meting.js +1 -1
- package/js/ali_font.js +1 -1
- package/js/custom.js +1 -1
- package/js/fcircle.js +1 -1
- package/js/fcircle_manage_panel.js +4 -6
- package/js/home_page_swiper.js +1 -1
- package/js/main.js +1 -1
- package/js/people.js +1 -1
- package/js/random.js +1 -1
- package/js/random_friends_post.js +1 -1
- package/js/search/algolia.js +1 -1
- package/js/search/local-search.js +1 -1
- package/js/tianli_gpt.js +1 -1
- package/js/tw_cn.js +1 -1
- package/js/ua_parser.js +1 -1
- package/js/utils.js +1 -1
- package/js/waterfall.js +1 -1
- package/json/friend.json +1 -1
- package/json/link.json +1 -1
- package/lib/hbe.js +1 -1
- package/manifest.json +1 -1
- package/music1/js/APlayer.min.js +1 -1
- package/music1/js/Meting2.min.js +1 -1
- package/music1/js/main.js +1 -1
- package/music1/main.css +1 -1
- package/music1/manifest.json +2 -2
- package/package.json +1 -1
- package/search.xml +47 -47
- package/sitemap.xml +82 -82
- package/wechatOA/main.css +1 -1
- package/wechatOA/main.js +1 -1
package/js/home_page_swiper.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
function butterfly_swiper_injector_config(){document.getElementById("recent-posts").insertAdjacentHTML("afterbegin",'<div class="recent-post-item swiper_container_card" style="height: auto;width: 100%"><div class="blog-slider swiper-container-fade swiper-container-horizontal" id="swiper_container"><div class="blog-slider__wrp swiper-wrapper" style="transition-duration: 0ms;"><div class="blog-slider__item swiper-slide" style="width: 750px; opacity: 1; transform: translate3d(0px, 0px, 0px); transition-duration: 0ms;"><a class="blog-slider__img" onclick="pjax.loadUrl("posts/16589f92.html");" href="javascript:void(0);" alt=""><img class="nolazyload" width="48" height="48" src="https://cdn.jsdmirror.com/npm/mycpen-image-bed@0.0.0-fyunetadxq/image/blog/logo/zhuanzai160px.png" alt="" onerror="this.onerror=null,this.src="/img/404.jpg""/></a><div class="blog-slider__content"><span class="blog-slider__code">2022-12-03</span><a class="blog-slider__title" onclick="pjax.loadUrl("posts/16589f92.html");" href="javascript:void(0);" alt="">01_转载-图床搭建 Backblaze B2 + Cloudflare CDN</a><div class="blog-slider__text">文章转载</div><a class="blog-slider__button" onclick="pjax.loadUrl("posts/16589f92.html");" href="javascript:void(0);" alt="">详情 </a></div></div><div class="blog-slider__item swiper-slide" style="width: 750px; opacity: 1; transform: translate3d(0px, 0px, 0px); transition-duration: 0ms;"><a class="blog-slider__img" onclick="pjax.loadUrl("posts/88a726.html");" href="javascript:void(0);" alt=""><img class="nolazyload" width="48" height="48" src="https://cdn.jsdmirror.com/npm/mycpen-image-bed@0.0.0-fyunetadxq/image/blog/logo/other-logo2.png" alt="" onerror="this.onerror=null,this.src="/img/404.jpg""/></a><div class="blog-slider__content"><span class="blog-slider__code">2022-10-10</span><a class="blog-slider__title" onclick="pjax.loadUrl("posts/88a726.html");" href="javascript:void(0);" alt="">01_Other-Supervisor管理进程-Twikoo版本升级</a><div class="blog-slider__text">其他分类</div><a class="blog-slider__button" onclick="pjax.loadUrl("posts/88a726.html");" href="javascript:void(0);" alt="">详情 </a></div></div><div class="blog-slider__item swiper-slide" style="width: 750px; opacity: 1; transform: translate3d(0px, 0px, 0px); transition-duration: 0ms;"><a class="blog-slider__img" onclick="pjax.loadUrl("posts/5552.html");" href="javascript:void(0);" alt=""><img class="nolazyload" width="48" height="48" src="https://cdn.jsdmirror.com/npm/mycpen-image-bed@0.0.0-fyunetadxq/image/blog/logo/error-logo2.png" alt="" onerror="this.onerror=null,this.src="/img/404.jpg""/></a><div class="blog-slider__content"><span class="blog-slider__code">2022-10-09</span><a class="blog-slider__title" onclick="pjax.loadUrl("posts/5552.html");" href="javascript:void(0);" alt="">01_Error-Nginx 反代后端接口报错</a><div class="blog-slider__text">Troubleshooting</div><a class="blog-slider__button" onclick="pjax.loadUrl("posts/5552.html");" href="javascript:void(0);" alt="">详情 </a></div></div><div class="blog-slider__item swiper-slide" style="width: 750px; opacity: 1; transform: translate3d(0px, 0px, 0px); transition-duration: 0ms;"><a class="blog-slider__img" onclick="pjax.loadUrl("posts/63259.html");" href="javascript:void(0);" alt=""><img class="nolazyload" width="48" height="48" src="https://cdn.jsdmirror.com/npm/mycpen-image-bed@0.0.0-fyunetadxq/image/blog/logo/php-logo2.png" alt="" onerror="this.onerror=null,this.src="/img/404.jpg""/></a><div class="blog-slider__content"><span class="blog-slider__code">2022-10-08</span><a class="blog-slider__title" onclick="pjax.loadUrl("posts/63259.html");" href="javascript:void(0);" alt="">01_PHP-CentOS8.2 编译安装 PHP8.1.10</a><div class="blog-slider__text">一种开源的通用计算机脚本语言</div><a class="blog-slider__button" onclick="pjax.loadUrl("posts/63259.html");" href="javascript:void(0);" alt="">详情 </a></div></div><div class="blog-slider__item swiper-slide" style="width: 750px; opacity: 1; transform: translate3d(0px, 0px, 0px); transition-duration: 0ms;"><a class="blog-slider__img" onclick="pjax.loadUrl("posts/16756.html");" href="javascript:void(0);" alt=""><img class="nolazyload" width="48" height="48" src="https://cdn.jsdmirror.com/npm/mycpen-image-bed@0.0.0-fyunetadxq/image/blog/logo/python-logo3.png" alt="" onerror="this.onerror=null,this.src="/img/404.jpg""/></a><div class="blog-slider__content"><span class="blog-slider__code">2022-09-28</span><a class="blog-slider__title" onclick="pjax.loadUrl("posts/16756.html");" href="javascript:void(0);" alt="">01_Python-CSDN_环境搭建</a><div class="blog-slider__text">一种广泛使用的解释型、高级和通用的编程语言</div><a class="blog-slider__button" onclick="pjax.loadUrl("posts/16756.html");" href="javascript:void(0);" alt="">详情 </a></div></div><div class="blog-slider__item swiper-slide" style="width: 750px; opacity: 1; transform: translate3d(0px, 0px, 0px); transition-duration: 0ms;"><a class="blog-slider__img" onclick="pjax.loadUrl("posts/14763.html");" href="javascript:void(0);" alt=""><img class="nolazyload" width="48" height="48" src="https://cdn.jsdmirror.com/npm/mycpen-image-bed@0.0.0-fyunetadxq/image/blog/logo/django-logo2.png" alt="" onerror="this.onerror=null,this.src="/img/404.jpg""/></a><div class="blog-slider__content"><span class="blog-slider__code">2022-09-24</span><a class="blog-slider__title" onclick="pjax.loadUrl("posts/14763.html");" href="javascript:void(0);" alt="">01_Django-介绍-项目结构-URL和视图函数</a><div class="blog-slider__text">一个开放源代码的 Web 应用框架</div><a class="blog-slider__button" onclick="pjax.loadUrl("posts/14763.html");" href="javascript:void(0);" alt="">详情 </a></div></div><div class="blog-slider__item swiper-slide" style="width: 750px; opacity: 1; transform: translate3d(0px, 0px, 0px); transition-duration: 0ms;"><a class="blog-slider__img" onclick="pjax.loadUrl("posts/12907.html");" href="javascript:void(0);" alt=""><img class="nolazyload" width="48" height="48" src="https://cdn.jsdmirror.com/npm/mycpen-image-bed@0.0.0-fyunetadxq/image/blog/logo/java-logo3.png" alt="" onerror="this.onerror=null,this.src="/img/404.jpg""/></a><div class="blog-slider__content"><span class="blog-slider__code">2022-09-21</span><a class="blog-slider__title" onclick="pjax.loadUrl("posts/12907.html");" href="javascript:void(0);" alt="">01_Java-特性-jdk-运行机制-转义字符-注释-代码规范</a><div class="blog-slider__text">一种广泛使用的计算机编程语言</div><a class="blog-slider__button" onclick="pjax.loadUrl("posts/12907.html");" href="javascript:void(0);" alt="">详情 </a></div></div><div class="blog-slider__item swiper-slide" style="width: 750px; opacity: 1; transform: translate3d(0px, 0px, 0px); transition-duration: 0ms;"><a class="blog-slider__img" onclick="pjax.loadUrl("posts/8236.html");" href="javascript:void(0);" alt=""><img class="nolazyload" width="48" height="48" src="https://cdn.jsdmirror.com/npm/mycpen-image-bed@0.0.0-fyunetadxq/image/blog/logo/hexo-logo2.png" alt="" onerror="this.onerror=null,this.src="/img/404.jpg""/></a><div class="blog-slider__content"><span class="blog-slider__code">2022-09-20</span><a class="blog-slider__title" onclick="pjax.loadUrl("posts/8236.html");" href="javascript:void(0);" alt="">01_Hexo-Hexo + Pure搭建博客-自定义</a><div class="blog-slider__text">一个快速、简洁且高效的博客框架</div><a class="blog-slider__button" onclick="pjax.loadUrl("posts/8236.html");" href="javascript:void(0);" alt="">详情 </a></div></div><div class="blog-slider__item swiper-slide" style="width: 750px; opacity: 1; transform: translate3d(0px, 0px, 0px); transition-duration: 0ms;"><a class="blog-slider__img" onclick="pjax.loadUrl("posts/48860.html");" href="javascript:void(0);" alt=""><img class="nolazyload" width="48" height="48" src="https://cdn.jsdmirror.com/npm/mycpen-image-bed@0.0.0-fyunetadxq/image/blog/logo/linux-logo2.png" alt="" onerror="this.onerror=null,this.src="/img/404.jpg""/></a><div class="blog-slider__content"><span class="blog-slider__code">2022-08-28</span><a class="blog-slider__title" onclick="pjax.loadUrl("posts/48860.html");" href="javascript:void(0);" alt="">01_Linux基础-部署-VMware-Xshell-Xftp-内核-安迪比尔定理</a><div class="blog-slider__text">一种自由和开放源码的类 UNIX 操作系统</div><a class="blog-slider__button" onclick="pjax.loadUrl("posts/48860.html");" href="javascript:void(0);" alt="">详情 </a></div></div></div><div class="blog-slider__pagination swiper-pagination-clickable swiper-pagination-bullets"></div></div><div id="random"><div id="random-banner"><canvas id="peoplecanvas"></canvas></div><a id="random-hover" style="width:100%;height:auto;" href="javascript:toRandomPost()" rel="external nofollow noreferrer" one-link-mark="yes"><i class="fa fa-paper-plane" style="margin-left:13px"></i><div style="margin-left:13px;-webkit-line-clamp: 1;overflow: hidden;-webkit-box-orient: vertical;display: -webkit-box;word-break: break-all;">随便逛逛</div><i class="fa-solid fa-arrow-right" style="margin-left:107px"></i></a></div></div>')}function whenDOMReadyHomePageSwiper(){for(var l="undefined".split(","),t=location.pathname,o=0;o<l.length;o++)t.includes(l[o])&&0;document.getElementById("mycpen1-home-first-page-tag")&&butterfly_swiper_injector_config();var a=new Swiper(".blog-slider",{passiveListeners:!0,spaceBetween:30,effect:"fade",loop:!0,autoplay:{disableOnInteraction:!0,delay:3e3},mousewheel:!0,pagination:{el:".blog-slider__pagination",clickable:!0}}),s=document.getElementById("swiper_container");null!==s&&(s.onmouseenter=function(){a.autoplay.stop()},s.onmouseleave=function(){a.autoplay.start()})}whenDOMReadyHomePageSwiper(),document.addEventListener("pjax:complete",whenDOMReadyHomePageSwiper);
|
1
|
+
var _0x2e82ed=_0x37e2;(function(_0xf18938,_0x588038){var _0x160be4=_0x37e2,_0x5eee86=_0xf18938();while(!![]){try{var _0x4234aa=-parseInt(_0x160be4(0x1d3))/0x1*(-parseInt(_0x160be4(0x1e9))/0x2)+-parseInt(_0x160be4(0x1eb))/0x3*(parseInt(_0x160be4(0x1e6))/0x4)+parseInt(_0x160be4(0x1dd))/0x5*(-parseInt(_0x160be4(0x1e2))/0x6)+parseInt(_0x160be4(0x1ec))/0x7*(-parseInt(_0x160be4(0x1d9))/0x8)+-parseInt(_0x160be4(0x1d2))/0x9+-parseInt(_0x160be4(0x1d5))/0xa+-parseInt(_0x160be4(0x1e1))/0xb*(-parseInt(_0x160be4(0x1d8))/0xc);if(_0x4234aa===_0x588038)break;else _0x5eee86['push'](_0x5eee86['shift']());}catch(_0x4074d1){_0x5eee86['push'](_0x5eee86['shift']());}}}(_0x3247,0x47e41));function _0x37e2(_0x46984e,_0x54bbdb){var _0x324783=_0x3247();return _0x37e2=function(_0x37e2f0,_0x487c43){_0x37e2f0=_0x37e2f0-0x1d1;var _0x1a3b6f=_0x324783[_0x37e2f0];return _0x1a3b6f;},_0x37e2(_0x46984e,_0x54bbdb);}function butterfly_swiper_injector_config(){var _0xbc2c57=_0x37e2,_0x27435e=document['getElementById'](_0xbc2c57(0x1e4)),_0x5cad10=_0xbc2c57(0x1da);_0x27435e[_0xbc2c57(0x1d6)]('afterbegin',_0x5cad10);}function whenDOMReadyHomePageSwiper(){var _0x3e3f60=_0x37e2,_0x45cc6a=_0x3e3f60(0x1de)[_0x3e3f60(0x1d4)](','),_0x40539c=location['pathname'],_0x125bdf='/',_0x1ee833=0x0;for(var _0x80a91d=0x0;_0x80a91d<_0x45cc6a['length'];_0x80a91d++){_0x40539c['includes'](_0x45cc6a[_0x80a91d])&&_0x1ee833++;}document[_0x3e3f60(0x1df)](_0x3e3f60(0x1dc))&&butterfly_swiper_injector_config();var _0x4459f3=new Swiper('.blog-slider',{'passiveListeners':!0x0,'spaceBetween':0x1e,'effect':_0x3e3f60(0x1e8),'loop':!0x0,'autoplay':{'disableOnInteraction':!0x0,'delay':0xbb8},'mousewheel':!0x0,'pagination':{'el':'.blog-slider__pagination','clickable':!0x0}}),_0x366824=document[_0x3e3f60(0x1df)](_0x3e3f60(0x1d1));null!==_0x366824&&(_0x366824[_0x3e3f60(0x1e3)]=function(){var _0x1858d4=_0x3e3f60;_0x4459f3[_0x1858d4(0x1db)][_0x1858d4(0x1e5)]();},_0x366824[_0x3e3f60(0x1d7)]=function(){var _0x382e9d=_0x3e3f60;_0x4459f3[_0x382e9d(0x1db)][_0x382e9d(0x1e0)]();});}function _0x3247(){var _0x4658b9=['3715PPMDZe','undefined','getElementById','start','93203nKdGnT','3576dCRNdO','onmouseenter','recent-posts','stop','772UAcixD','pjax:complete','fade','26WkzqXp','addEventListener','5790tbMQpX','28jLagvf','swiper_container','4540545kqjzmo','37273qQrNmx','split','3434270FsHaqi','insertAdjacentHTML','onmouseleave','2328kBbpGQ','341192ZWdDrc','<div\x20class=\x22recent-post-item\x20swiper_container_card\x22\x20style=\x22height:\x20auto;width:\x20100%\x22><div\x20class=\x22blog-slider\x20swiper-container-fade\x20swiper-container-horizontal\x22\x20id=\x22swiper_container\x22><div\x20class=\x22blog-slider__wrp\x20swiper-wrapper\x22\x20style=\x22transition-duration:\x200ms;\x22><div\x20class=\x22blog-slider__item\x20swiper-slide\x22\x20style=\x22width:\x20750px;\x20opacity:\x201;\x20transform:\x20translate3d(0px,\x200px,\x200px);\x20transition-duration:\x200ms;\x22><a\x20class=\x22blog-slider__img\x22\x20onclick=\x22pjax.loadUrl("posts/16589f92.html");\x22\x20href=\x22javascript:void(0);\x22\x20alt=\x22\x22><img\x20class=\x22nolazyload\x22\x20width=\x2248\x22\x20height=\x2248\x22\x20src=\x22https://cdn.cbd.int/mycpen-image-bed@0.0.0-fyvcuicfgn/image/blog/logo/zhuanzai160px.png\x22\x20alt=\x22\x22\x20onerror=\x22this.onerror=null,this.src="/img/404.jpg"\x22/></a><div\x20class=\x22blog-slider__content\x22><span\x20class=\x22blog-slider__code\x22>2022-12-03</span><a\x20class=\x22blog-slider__title\x22\x20onclick=\x22pjax.loadUrl("posts/16589f92.html");\x22\x20href=\x22javascript:void(0);\x22\x20alt=\x22\x22>01_转载-图床搭建\x20Backblaze\x20B2\x20+\x20Cloudflare\x20CDN</a><div\x20class=\x22blog-slider__text\x22>文章转载</div><a\x20class=\x22blog-slider__button\x22\x20onclick=\x22pjax.loadUrl("posts/16589f92.html");\x22\x20href=\x22javascript:void(0);\x22\x20alt=\x22\x22>详情\x20\x20\x20\x20\x20\x20\x20</a></div></div><div\x20class=\x22blog-slider__item\x20swiper-slide\x22\x20style=\x22width:\x20750px;\x20opacity:\x201;\x20transform:\x20translate3d(0px,\x200px,\x200px);\x20transition-duration:\x200ms;\x22><a\x20class=\x22blog-slider__img\x22\x20onclick=\x22pjax.loadUrl("posts/88a726.html");\x22\x20href=\x22javascript:void(0);\x22\x20alt=\x22\x22><img\x20class=\x22nolazyload\x22\x20width=\x2248\x22\x20height=\x2248\x22\x20src=\x22https://cdn.cbd.int/mycpen-image-bed@0.0.0-fyvcuicfgn/image/blog/logo/other-logo2.png\x22\x20alt=\x22\x22\x20onerror=\x22this.onerror=null,this.src="/img/404.jpg"\x22/></a><div\x20class=\x22blog-slider__content\x22><span\x20class=\x22blog-slider__code\x22>2022-10-10</span><a\x20class=\x22blog-slider__title\x22\x20onclick=\x22pjax.loadUrl("posts/88a726.html");\x22\x20href=\x22javascript:void(0);\x22\x20alt=\x22\x22>01_Other-Supervisor管理进程-Twikoo版本升级</a><div\x20class=\x22blog-slider__text\x22>其他分类</div><a\x20class=\x22blog-slider__button\x22\x20onclick=\x22pjax.loadUrl("posts/88a726.html");\x22\x20href=\x22javascript:void(0);\x22\x20alt=\x22\x22>详情\x20\x20\x20\x20\x20\x20\x20</a></div></div><div\x20class=\x22blog-slider__item\x20swiper-slide\x22\x20style=\x22width:\x20750px;\x20opacity:\x201;\x20transform:\x20translate3d(0px,\x200px,\x200px);\x20transition-duration:\x200ms;\x22><a\x20class=\x22blog-slider__img\x22\x20onclick=\x22pjax.loadUrl("posts/5552.html");\x22\x20href=\x22javascript:void(0);\x22\x20alt=\x22\x22><img\x20class=\x22nolazyload\x22\x20width=\x2248\x22\x20height=\x2248\x22\x20src=\x22https://cdn.cbd.int/mycpen-image-bed@0.0.0-fyvcuicfgn/image/blog/logo/error-logo2.png\x22\x20alt=\x22\x22\x20onerror=\x22this.onerror=null,this.src="/img/404.jpg"\x22/></a><div\x20class=\x22blog-slider__content\x22><span\x20class=\x22blog-slider__code\x22>2022-10-09</span><a\x20class=\x22blog-slider__title\x22\x20onclick=\x22pjax.loadUrl("posts/5552.html");\x22\x20href=\x22javascript:void(0);\x22\x20alt=\x22\x22>01_Error-Nginx\x20反代后端接口报错</a><div\x20class=\x22blog-slider__text\x22>Troubleshooting</div><a\x20class=\x22blog-slider__button\x22\x20onclick=\x22pjax.loadUrl("posts/5552.html");\x22\x20href=\x22javascript:void(0);\x22\x20alt=\x22\x22>详情\x20\x20\x20\x20\x20\x20\x20</a></div></div><div\x20class=\x22blog-slider__item\x20swiper-slide\x22\x20style=\x22width:\x20750px;\x20opacity:\x201;\x20transform:\x20translate3d(0px,\x200px,\x200px);\x20transition-duration:\x200ms;\x22><a\x20class=\x22blog-slider__img\x22\x20onclick=\x22pjax.loadUrl("posts/63259.html");\x22\x20href=\x22javascript:void(0);\x22\x20alt=\x22\x22><img\x20class=\x22nolazyload\x22\x20width=\x2248\x22\x20height=\x2248\x22\x20src=\x22https://cdn.cbd.int/mycpen-image-bed@0.0.0-fyvcuicfgn/image/blog/logo/php-logo2.png\x22\x20alt=\x22\x22\x20onerror=\x22this.onerror=null,this.src="/img/404.jpg"\x22/></a><div\x20class=\x22blog-slider__content\x22><span\x20class=\x22blog-slider__code\x22>2022-10-08</span><a\x20class=\x22blog-slider__title\x22\x20onclick=\x22pjax.loadUrl("posts/63259.html");\x22\x20href=\x22javascript:void(0);\x22\x20alt=\x22\x22>01_PHP-CentOS8.2\x20编译安装\x20PHP8.1.10</a><div\x20class=\x22blog-slider__text\x22>一种开源的通用计算机脚本语言</div><a\x20class=\x22blog-slider__button\x22\x20onclick=\x22pjax.loadUrl("posts/63259.html");\x22\x20href=\x22javascript:void(0);\x22\x20alt=\x22\x22>详情\x20\x20\x20\x20\x20\x20\x20</a></div></div><div\x20class=\x22blog-slider__item\x20swiper-slide\x22\x20style=\x22width:\x20750px;\x20opacity:\x201;\x20transform:\x20translate3d(0px,\x200px,\x200px);\x20transition-duration:\x200ms;\x22><a\x20class=\x22blog-slider__img\x22\x20onclick=\x22pjax.loadUrl("posts/16756.html");\x22\x20href=\x22javascript:void(0);\x22\x20alt=\x22\x22><img\x20class=\x22nolazyload\x22\x20width=\x2248\x22\x20height=\x2248\x22\x20src=\x22https://cdn.cbd.int/mycpen-image-bed@0.0.0-fyvcuicfgn/image/blog/logo/python-logo3.png\x22\x20alt=\x22\x22\x20onerror=\x22this.onerror=null,this.src="/img/404.jpg"\x22/></a><div\x20class=\x22blog-slider__content\x22><span\x20class=\x22blog-slider__code\x22>2022-09-28</span><a\x20class=\x22blog-slider__title\x22\x20onclick=\x22pjax.loadUrl("posts/16756.html");\x22\x20href=\x22javascript:void(0);\x22\x20alt=\x22\x22>01_Python-CSDN_环境搭建</a><div\x20class=\x22blog-slider__text\x22>一种广泛使用的解释型、高级和通用的编程语言</div><a\x20class=\x22blog-slider__button\x22\x20onclick=\x22pjax.loadUrl("posts/16756.html");\x22\x20href=\x22javascript:void(0);\x22\x20alt=\x22\x22>详情\x20\x20\x20\x20\x20\x20\x20</a></div></div><div\x20class=\x22blog-slider__item\x20swiper-slide\x22\x20style=\x22width:\x20750px;\x20opacity:\x201;\x20transform:\x20translate3d(0px,\x200px,\x200px);\x20transition-duration:\x200ms;\x22><a\x20class=\x22blog-slider__img\x22\x20onclick=\x22pjax.loadUrl("posts/14763.html");\x22\x20href=\x22javascript:void(0);\x22\x20alt=\x22\x22><img\x20class=\x22nolazyload\x22\x20width=\x2248\x22\x20height=\x2248\x22\x20src=\x22https://cdn.cbd.int/mycpen-image-bed@0.0.0-fyvcuicfgn/image/blog/logo/django-logo2.png\x22\x20alt=\x22\x22\x20onerror=\x22this.onerror=null,this.src="/img/404.jpg"\x22/></a><div\x20class=\x22blog-slider__content\x22><span\x20class=\x22blog-slider__code\x22>2022-09-24</span><a\x20class=\x22blog-slider__title\x22\x20onclick=\x22pjax.loadUrl("posts/14763.html");\x22\x20href=\x22javascript:void(0);\x22\x20alt=\x22\x22>01_Django-介绍-项目结构-URL和视图函数</a><div\x20class=\x22blog-slider__text\x22>一个开放源代码的\x20Web\x20应用框架</div><a\x20class=\x22blog-slider__button\x22\x20onclick=\x22pjax.loadUrl("posts/14763.html");\x22\x20href=\x22javascript:void(0);\x22\x20alt=\x22\x22>详情\x20\x20\x20\x20\x20\x20\x20</a></div></div><div\x20class=\x22blog-slider__item\x20swiper-slide\x22\x20style=\x22width:\x20750px;\x20opacity:\x201;\x20transform:\x20translate3d(0px,\x200px,\x200px);\x20transition-duration:\x200ms;\x22><a\x20class=\x22blog-slider__img\x22\x20onclick=\x22pjax.loadUrl("posts/12907.html");\x22\x20href=\x22javascript:void(0);\x22\x20alt=\x22\x22><img\x20class=\x22nolazyload\x22\x20width=\x2248\x22\x20height=\x2248\x22\x20src=\x22https://cdn.cbd.int/mycpen-image-bed@0.0.0-fyvcuicfgn/image/blog/logo/java-logo3.png\x22\x20alt=\x22\x22\x20onerror=\x22this.onerror=null,this.src="/img/404.jpg"\x22/></a><div\x20class=\x22blog-slider__content\x22><span\x20class=\x22blog-slider__code\x22>2022-09-21</span><a\x20class=\x22blog-slider__title\x22\x20onclick=\x22pjax.loadUrl("posts/12907.html");\x22\x20href=\x22javascript:void(0);\x22\x20alt=\x22\x22>01_Java-特性-jdk-运行机制-转义字符-注释-代码规范</a><div\x20class=\x22blog-slider__text\x22>一种广泛使用的计算机编程语言</div><a\x20class=\x22blog-slider__button\x22\x20onclick=\x22pjax.loadUrl("posts/12907.html");\x22\x20href=\x22javascript:void(0);\x22\x20alt=\x22\x22>详情\x20\x20\x20\x20\x20\x20\x20</a></div></div><div\x20class=\x22blog-slider__item\x20swiper-slide\x22\x20style=\x22width:\x20750px;\x20opacity:\x201;\x20transform:\x20translate3d(0px,\x200px,\x200px);\x20transition-duration:\x200ms;\x22><a\x20class=\x22blog-slider__img\x22\x20onclick=\x22pjax.loadUrl("posts/8236.html");\x22\x20href=\x22javascript:void(0);\x22\x20alt=\x22\x22><img\x20class=\x22nolazyload\x22\x20width=\x2248\x22\x20height=\x2248\x22\x20src=\x22https://cdn.cbd.int/mycpen-image-bed@0.0.0-fyvcuicfgn/image/blog/logo/hexo-logo2.png\x22\x20alt=\x22\x22\x20onerror=\x22this.onerror=null,this.src="/img/404.jpg"\x22/></a><div\x20class=\x22blog-slider__content\x22><span\x20class=\x22blog-slider__code\x22>2022-09-20</span><a\x20class=\x22blog-slider__title\x22\x20onclick=\x22pjax.loadUrl("posts/8236.html");\x22\x20href=\x22javascript:void(0);\x22\x20alt=\x22\x22>01_Hexo-Hexo\x20+\x20Pure搭建博客-自定义</a><div\x20class=\x22blog-slider__text\x22>一个快速、简洁且高效的博客框架</div><a\x20class=\x22blog-slider__button\x22\x20onclick=\x22pjax.loadUrl("posts/8236.html");\x22\x20href=\x22javascript:void(0);\x22\x20alt=\x22\x22>详情\x20\x20\x20\x20\x20\x20\x20</a></div></div><div\x20class=\x22blog-slider__item\x20swiper-slide\x22\x20style=\x22width:\x20750px;\x20opacity:\x201;\x20transform:\x20translate3d(0px,\x200px,\x200px);\x20transition-duration:\x200ms;\x22><a\x20class=\x22blog-slider__img\x22\x20onclick=\x22pjax.loadUrl("posts/48860.html");\x22\x20href=\x22javascript:void(0);\x22\x20alt=\x22\x22><img\x20class=\x22nolazyload\x22\x20width=\x2248\x22\x20height=\x2248\x22\x20src=\x22https://cdn.cbd.int/mycpen-image-bed@0.0.0-fyvcuicfgn/image/blog/logo/linux-logo2.png\x22\x20alt=\x22\x22\x20onerror=\x22this.onerror=null,this.src="/img/404.jpg"\x22/></a><div\x20class=\x22blog-slider__content\x22><span\x20class=\x22blog-slider__code\x22>2022-08-28</span><a\x20class=\x22blog-slider__title\x22\x20onclick=\x22pjax.loadUrl("posts/48860.html");\x22\x20href=\x22javascript:void(0);\x22\x20alt=\x22\x22>01_Linux基础-部署-VMware-Xshell-Xftp-内核-安迪比尔定理</a><div\x20class=\x22blog-slider__text\x22>一种自由和开放源码的类\x20UNIX\x20操作系统</div><a\x20class=\x22blog-slider__button\x22\x20onclick=\x22pjax.loadUrl("posts/48860.html");\x22\x20href=\x22javascript:void(0);\x22\x20alt=\x22\x22>详情\x20\x20\x20\x20\x20\x20\x20</a></div></div></div><div\x20class=\x22blog-slider__pagination\x20swiper-pagination-clickable\x20swiper-pagination-bullets\x22></div></div><div\x20id=\x22random\x22><div\x20id=\x22random-banner\x22><canvas\x20id=\x22peoplecanvas\x22></canvas></div><a\x20id=\x22random-hover\x22\x20style=\x22width:100%;height:auto;\x22\x20href=\x22javascript:toRandomPost()\x22\x20rel=\x22external\x20nofollow\x20noreferrer\x22\x20one-link-mark=\x22yes\x22><i\x20class=\x22fa\x20fa-paper-plane\x22\x20style=\x22margin-left:13px\x22></i><div\x20style=\x22margin-left:13px;-webkit-line-clamp:\x201;overflow:\x20hidden;-webkit-box-orient:\x20vertical;display:\x20-webkit-box;word-break:\x20break-all;\x22>随便逛逛</div><i\x20class=\x22fa-solid\x20fa-arrow-right\x22\x20style=\x22margin-left:107px\x22></i></a></div></div>','autoplay','mycpen1-home-first-page-tag'];_0x3247=function(){return _0x4658b9;};return _0x3247();}whenDOMReadyHomePageSwiper(),document[_0x2e82ed(0x1ea)](_0x2e82ed(0x1e7),whenDOMReadyHomePageSwiper);
|
package/js/main.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
document.addEventListener("DOMContentLoaded",(function(){let e,t,n=!1;const o=n=>{const o=e=>Array.from(e).reduce(((e,t)=>e+t.offsetWidth),0);if(n){const n=o(document.querySelector("#blog-info > a").children),s=o(document.getElementById("menus").children);e=n+s,t=document.getElementById("nav")}const s=window.innerWidth<=768||e>t.offsetWidth-120;t.classList.toggle("hide-menu",s)},s=()=>{btf.sidebarPaddingR(),document.body.style.overflow="hidden",btf.animateIn(document.getElementById("menu-mask"),"to_show 0.5s"),document.getElementById("sidebar-menus").classList.add("open"),n=!0},i=()=>{const e=document.body;e.style.overflow="",e.style.paddingRight="",btf.animateOut(document.getElementById("menu-mask"),"to_hide 0.5s"),document.getElementById("sidebar-menus").classList.remove("open"),n=!1},c=()=>{const e=GLOBAL_CONFIG.highlight;if(!e)return;const{highlightCopy:t,highlightLang:n,highlightHeightLimit:o,plugin:s}=e,i=GLOBAL_CONFIG_SITE.isHighlightShrink,c=t||n||void 0!==i,a="highlight.js"===s?document.querySelectorAll("figure.highlight"):document.querySelectorAll('pre[class*="language-"]');if(!c&&!o||!a.length)return;const l="prismjs"===s,d=!0===i?"closed":"",r=void 0!==i?'<i class="fas fa-angle-down expand"></i>':"",u=t?'<div class="copy-notice"></div><i class="fas fa-paste copy-button"></i>':"",m=(e,t)=>{if(void 0!==GLOBAL_CONFIG.Snackbar)btf.snackbarShow(t);else{const n=e.previousElementSibling;n.textContent=t,n.style.opacity=1,setTimeout((()=>{n.style.opacity=0}),800)}},g=e=>{const t=e.parentNode;t.classList.add("copy-true");const n=window.getSelection(),o=document.createRange(),s=l?"pre code":"table .code pre";var i;o.selectNodeContents(t.querySelectorAll(`${s}`)[0]),n.removeAllRanges(),n.addRange(o),i=e.lastChild,document.queryCommandSupported&&document.queryCommandSupported("copy")?(document.execCommand("copy"),m(i,GLOBAL_CONFIG.copy.success)):m(i,GLOBAL_CONFIG.copy.noSupport),n.removeAllRanges(),t.classList.remove("copy-true")},h=function(e){const t=e.target.classList;t.contains("expand")?this.classList.toggle("closed"):t.contains("copy-button")&&g(this)},f=function(){this.classList.toggle("expand-done")},L=(e,t,n)=>{const s=document.createDocumentFragment();if(c){const t=document.createElement("div");t.className=`highlight-tools ${d}`,t.innerHTML=r+e+u,btf.addEventListenerPjax(t,"click",h),s.appendChild(t)}if(o&&t.offsetHeight>o+30){const e=document.createElement("div");e.className="code-expand-btn",e.innerHTML='<i class="fas fa-angle-double-down"></i>',btf.addEventListenerPjax(e,"click",f),s.appendChild(e)}"hl"===n?t.insertBefore(s,t.firstChild):t.parentNode.insertBefore(s,t)};l?a.forEach((e=>{if(n){const t=`<div class="code-lang">${e.getAttribute("data-language")||"Code"}</div>`;btf.wrap(e,"figure",{class:"highlight"}),L(t,e)}else btf.wrap(e,"figure",{class:"highlight"}),L("",e)})):a.forEach((e=>{if(n){let t=e.getAttribute("class").split(" ")[1];"plain"!==t&&void 0!==t||(t="Code");L(`<div class="code-lang">${t}</div>`,e,"hl")}else L("",e,"hl")}))},a=async e=>{const t=await fetch(e);return await t.json()},l=(e,t,n=!1,o)=>{const s=t.length,i=new InfiniteGrid.JustifiedInfiniteGrid(e,{gap:5,isConstantSize:!0,sizeRange:[150,600],useResizeObserver:!0,observeChildren:!0,useTransform:!0});o&&btf.addGlobalFn("igOfTabs",(()=>{i.destroy()}),!1,o);const c=e=>e.replace(/"/g,"""),a=GLOBAL_CONFIG.infinitegrid.buttonText,l=(e,n)=>{i.append(((e,n)=>{const o=[],i=(e-1)*n;for(let e=0;e<n;++e){const n=i+e;if(n>=s)break;const a=t[n],l=a.alt?`alt="${c(a.alt)}"`:"",d=a.title?`title="${c(a.title)}"`:"";o.push(`<div class="item ">\n <img src="${a.url}" data-grid-maintained-target="true" ${l+d} />\n </div>`)}return o})(e,n),e)},d=Math.ceil(s/10),r=t=>{const{updated:o,isResize:s,mounted:c}=t;if(o.length&&c.length&&!s){if(btf.loadLightbox(e.querySelectorAll("img:not(.medium-zoom-image)")),i.getGroups().length===d)return btf.setLoading.remove(e),void i.off("renderComplete",r);n&&(btf.setLoading.remove(e),(e=>{const t=document.createElement("button");t.textContent=a;const n=t=>{t.target.removeEventListener("click",n),t.target.remove(),btf.setLoading.add(e),l(i.getGroups().length+1,10)};t.addEventListener("click",n),e.insertAdjacentElement("afterend",t)})(e))}},u=btf.debounce((e=>{const t=(+e.groupKey||0)+1;l(t,10),t===d&&i.off("requestAppend",u)}),300);btf.setLoading.add(e),i.on("renderComplete",r),n?l(1,10):(i.on("requestAppend",u),i.renderItems()),btf.addGlobalFn("justifiedGallery",(()=>{i.destroy()}))},d=async(e,t=!1)=>{const n=async()=>{for(const n of e){if(btf.isHidden(n))continue;if(t&&n.classList.contains("loaded")){n.querySelector(".gallery-items").innerHTML="";const e=n.querySelector(":scope > button"),t=n.querySelector(":scope > .loading-container");e&&e.remove(),t&&t.remove()}const e="true"===n.getAttribute("data-button"),o=n.firstElementChild.textContent;n.classList.add("loaded");const s="url"===n.getAttribute("data-type")?await a(o):JSON.parse(o);l(n.lastElementChild,s,e,t)}};"function"==typeof InfiniteGrid||await getScript(`${GLOBAL_CONFIG.infinitegrid.js}`),n()},r=()=>{const e=document.getElementById("rightside"),t=window.innerHeight+56;let n=0;const o=document.getElementById("page-header"),s="undefined"!=typeof chatBtn,i=GLOBAL_CONFIG.percent.rightside;if(document.body.scrollHeight<=t)return void e.classList.add("rightside-show");let c="";const a=btf.throttle((()=>{const a=window.scrollY||document.documentElement.scrollTop,l=(e=>{const t=e>n;return n=e,t})(a);a>56?(o.classList.add("is-top-bar"),""===c&&(o.classList.add("nav-fixed"),e.classList.add("rightside-show")),l?"down"!==c&&(o.classList.remove("nav-visible"),s&&window.chatBtn.hide(),c="down"):"up"!==c&&(o.classList.add("nav-visible"),s&&window.chatBtn.show(),c="up")):(c="",0===a&&(o.classList.remove("is-top-bar"),o.classList.remove("nav-fixed","nav-visible")),e.classList.remove("rightside-show")),i&&(e=>{const t=btf.getScrollPercent(e,document.body),n=document.getElementById("go-up");t<95?(n.classList.add("show-percent"),n.querySelector(".scroll-percent").textContent=t):n.classList.remove("show-percent")})(a),document.body.scrollHeight<=t&&e.classList.add("rightside-show")}),50);btf.addEventListenerPjax(window,"scroll",a,{passive:!0})},u=()=>{const e=GLOBAL_CONFIG_SITE.isToc,t=GLOBAL_CONFIG.isAnchor,n=document.getElementById("article-container");if(!n||!e&&!t)return;let o,s,i,c,a;if(e){const e=document.getElementById("card-toc");s=e.querySelector(".toc-content"),o=s.querySelectorAll(".toc-link"),c=e.querySelector(".toc-percentage"),a=s.classList.contains("is-expand");const t=t=>{const n=t.target.closest(".toc-link");n&&(t.preventDefault(),btf.scrollToDest(btf.getEleTop(document.getElementById(decodeURI(n.getAttribute("href")).replace("#",""))),300),window.innerWidth<900&&e.classList.remove("open"))};btf.addEventListenerPjax(s,"click",t),i=e=>{const t=e.getBoundingClientRect().top,n=s.scrollTop;t>document.documentElement.clientHeight-100&&(s.scrollTop=n+150),t<100&&(s.scrollTop=n-150)}}const l=n.querySelectorAll("h1,h2,h3,h4,h5,h6");let d="";const r=btf.throttle((()=>{const r=window.scrollY||document.documentElement.scrollTop;e&&GLOBAL_CONFIG.percent.toc&&(c.textContent=btf.getScrollPercent(r,n)),(n=>{if(0===n)return!1;let c="",r="";if(l.forEach(((e,t)=>{if(n>btf.getEleTop(e)-80){const n=e.id;c=n?"#"+encodeURI(n):"",r=t}})),d!==r&&(t&&btf.updateAnchor(c),d=r,e)){if(s.querySelectorAll(".active").forEach((e=>{e.classList.remove("active")})),""===c)return;const e=o[r];if(e.classList.add("active"),setTimeout((()=>{i(e)}),0),a)return;let t=e.parentNode;for(;!t.matches(".toc");t=t.parentNode)t.matches("li")&&t.classList.add("active")}})(r)}),50);btf.addEventListenerPjax(window,"scroll",r,{passive:!0})},m=e=>{const t=(window.globalFn||{}).themeChange||{};t&&Object.keys(t).forEach((n=>{const o=t[n];["disqus","disqusjs"].includes(n)?setTimeout((()=>o(e)),300):o(e)}))},g={readmode:()=>{const e=document.body;e.classList.add("read-mode");const t=document.createElement("button");t.type="button",t.className="fas fa-sign-out-alt exit-readmode",e.appendChild(t);const n=()=>{e.classList.remove("read-mode"),t.remove(),t.removeEventListener("click",n)};t.addEventListener("click",n)},darkmode:()=>{const e="dark"===document.documentElement.getAttribute("data-theme")?"light":"dark";"dark"===e?(activateDarkMode(),void 0!==GLOBAL_CONFIG.Snackbar&&btf.snackbarShow(GLOBAL_CONFIG.Snackbar.day_to_night)):(activateLightMode(),void 0!==GLOBAL_CONFIG.Snackbar&&btf.snackbarShow(GLOBAL_CONFIG.Snackbar.night_to_day)),saveToLocal.set("theme",e,2),m(e)},"rightside-config":e=>{const t=e.firstElementChild;t.classList.contains("show")&&(t.classList.add("status"),setTimeout((()=>{t.classList.remove("status")}),300)),t.classList.toggle("show")},"go-up":()=>{btf.scrollToDest(0,500)},"hide-aside-btn":()=>{const e=document.documentElement.classList,t=e.contains("hide-aside")?"show":"hide";saveToLocal.set("aside-status",t,2),e.toggle("hide-aside")},"mobile-toc-button":e=>{const t=document.getElementById("card-toc");t.style.transition="transform 0.3s ease-in-out",t.classList.toggle("open"),t.addEventListener("transitionend",(()=>{t.style.transition=""}),{once:!0})},"chat-btn":()=>{window.chatBtnFn()},translateLink:()=>{window.translateFn.translatePage()}};document.getElementById("rightside").addEventListener("click",(function(e){const t=e.target.closest("[id]");t&&g[t.id]&&g[t.id](this)}));const h=()=>{const e=document.querySelectorAll("#article-container .hide-button");if(!e.length)return;const t=function(e){this.classList.add("open");const t=this.nextElementSibling.querySelectorAll(".gallery-container");t.length&&d(t)};e.forEach((e=>{e.addEventListener("click",t,{once:!0})}))},f=()=>{const e=document.querySelectorAll("#article-container .tabs");if(!e.length)return;const t=(e,t)=>{Array.from(e).forEach((e=>{e.classList.remove("active"),e!==t&&e.id!==t||e.classList.add("active")}))},n=(e,n)=>{btf.addEventListenerPjax(e.firstElementChild,"click",(function(e){const o=e.target.closest("button");if(o.classList.contains("active"))return;t(this.children,o),this.classList.remove("no-default");const s=o.getAttribute("data-href"),i=this.nextElementSibling;if(t(i.children,s),n){btf.removeGlobalFnEvent("igOfTabs",this);const e=i.querySelectorAll(`:scope > #${s} .gallery-container`);e.length&&d(e,this)}}))};e.forEach((e=>{const t=!!e.querySelectorAll(".gallery-container");n(e,t),(e=>{btf.addEventListenerPjax(e.lastElementChild,"click",(t=>{t.target.closest("button")&&btf.scrollToDest(btf.getEleTop(e),300)}))})(e)}))},L=function(e){e.forEach((e=>{const t=e.getAttribute("datetime");e.textContent=btf.diffDate(t,!0),e.style.display="inline"}))};window.refreshFn=function(){o(!0),t.classList.add("show"),GLOBAL_CONFIG_SITE.isPost?(void 0!==GLOBAL_CONFIG.noticeOutdate&&(()=>{const{limitDay:e,messagePrev:t,messageNext:n,position:o}=GLOBAL_CONFIG.noticeOutdate,s=btf.diffDate(GLOBAL_CONFIG_SITE.postUpdate);if(s>=e){const e=document.createElement("div");e.className="post-outdate-notice",e.textContent=`${t} ${s} ${n}`;const i=document.getElementById("article-container");"top"===o?i.insertBefore(e,i.firstChild):i.appendChild(e)}})(),GLOBAL_CONFIG.relativeDate.post&&L(document.querySelectorAll("#post-meta time"))):(GLOBAL_CONFIG.relativeDate.homepage&&L(document.querySelectorAll("#recent-posts time")),GLOBAL_CONFIG.runtime&&(()=>{const e=document.getElementById("runtimeshow");if(e){const t=e.getAttribute("data-publishDate");e.textContent=`${btf.diffDate(t)} ${GLOBAL_CONFIG.runtime}`}})(),(()=>{const e=document.getElementById("last-push-date");if(e){const t=e.getAttribute("data-lastPushDate");e.textContent=btf.diffDate(t,!0)}})(),(()=>{const e=document.querySelector("#aside-cat-list.expandBtn");if(!e)return;btf.addEventListenerPjax(e,"click",(e=>{const t=e.target;"I"===t.nodeName&&(e.preventDefault(),t.parentNode.classList.toggle("expand"))}),!0)})()),u(),GLOBAL_CONFIG_SITE.isHome&&(()=>{const e=document.getElementById("scroll-down");e&&btf.addEventListenerPjax(e,"click",(()=>{btf.scrollToDest(document.getElementById("content-inner").offsetTop,300)}))})(),c(),GLOBAL_CONFIG.isPhotoFigcaption&&document.querySelectorAll("#article-container img").forEach((e=>{const t=e.title||e.alt;if(!t)return;const n=document.createElement("div");n.className="img-alt is-center",n.textContent=t,e.insertAdjacentElement("afterend",n)})),r(),btf.removeGlobalFnEvent("justifiedGallery");const e=document.querySelectorAll("#article-container .gallery-container");e.length&&d(e),btf.loadLightbox(document.querySelectorAll("#article-container img:not(.no-lightbox)")),(()=>{const e=document.querySelectorAll("#article-container table");e.length&&e.forEach((e=>{e.closest(".highlight")||btf.wrap(e,"div",{class:"table-wrap"})}))})(),h(),f(),(()=>{const e=document.getElementById("switch-btn");if(!e)return;let t=!1;const n=document.getElementById("post-comment");btf.addEventListenerPjax(e,"click",(()=>{n.classList.toggle("move"),t||"function"!=typeof loadOtherComment||(t=!0,loadOtherComment())}))})(),btf.addEventListenerPjax(document.getElementById("toggle-menu"),"click",(()=>{s()}))},refreshFn(),window.addEventListener("resize",(()=>{o(!1),n&&btf.isHidden(document.getElementById("toggle-menu"))&&i()})),document.getElementById("menu-mask").addEventListener("click",(e=>{i()})),document.querySelector("#sidebar-menus .menus_items").addEventListener("click",(e=>{const t=e.target.closest(".site-page.group");t&&t.classList.toggle("hide")})),GLOBAL_CONFIG.islazyload&&(window.lazyLoadInstance=new LazyLoad({elements_selector:"img",threshold:0,data_src:"lazy-src"})),void 0!==GLOBAL_CONFIG.copyright&&(()=>{const{limitCount:e,languages:t}=GLOBAL_CONFIG.copyright;document.body.addEventListener("copy",(n=>{n.preventDefault();const o=window.getSelection(0).toString();let s=o;return o.length>e&&(s=`${o}\n\n\n${t.author}\n${t.link}${window.location.href}\n${t.source}\n${t.info}`),n.clipboardData?n.clipboardData.setData("text",s):window.clipboardData.setData("text",s)}))})(),GLOBAL_CONFIG.autoDarkmode&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",(e=>{void 0===saveToLocal.get("theme")&&(e.matches?m("dark"):m("light"))}))}));
|
1
|
+
const _0x514d1c=_0x2ecf;function _0x2ecf(_0x191bcc,_0x54c5ee){const _0x2c7c7f=_0x2c7c();return _0x2ecf=function(_0x2ecf1c,_0x1b3beb){_0x2ecf1c=_0x2ecf1c-0x17a;let _0x206255=_0x2c7c7f[_0x2ecf1c];return _0x206255;},_0x2ecf(_0x191bcc,_0x54c5ee);}function _0x2c7c(){const _0x5f3534=['globalFn','postUpdate','.gallery-container','relativeDate','throttle','length','matchMedia','reduce','offsetHeight','<div\x20class=\x22item\x20\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<img\x20src=\x22','parse','getGroups','show-percent','isPhotoFigcaption','\x20.gallery-container','is-expand','addRange','selectNodeContents','active','down','off','noSupport','percent','justifiedGallery','setLoading','target','expand','.toc-content','toString','data-href','documentElement','isToc','addEventListener','pre\x20code','read-mode','json','queryCommandSupported','text','10ijPtNm','matches','chatBtn','Code','nav-visible','#blog-info\x20>\x20a','ceil','paddingRight','chatBtnFn','append',':scope\x20>\x20button','previousElementSibling','querySelectorAll','status','expand-done','sidebarPaddingR','dark','getScrollPercent','menu-mask','fas\x20fa-sign-out-alt\x20exit-readmode','(prefers-color-scheme:\x20dark)','autoDarkmode','Snackbar','renderComplete','no-default','addEventListenerPjax','table\x20.code\x20pre','alt','afterend','80UYMjlH','#article-container\x20img','insertAdjacentElement','getAttribute','DOMContentLoaded','info','offsetWidth','copyright','1469069dMlTmS','\x0a\x0a\x0a','diffDate','createRange','true','location','innerHTML','getElementById','move','post-outdate-notice','#aside-cat-list.expandBtn','igOfTabs','noticeOutdate','innerWidth','getSelection','createDocumentFragment','\x22\x20data-grid-maintained-target=\x22true\x22\x20','author','85595TJfMcS','lastElementChild','firstElementChild','contains','plain','runtime','replace','style','add','removeGlobalFnEvent','toggle-menu','nextElementSibling','#article-container\x20img:not(.no-lightbox)','scroll-down','getBoundingClientRect','insertBefore','.toc-link','rightside-show','show','change','nodeName','closest','loadLightbox','data-theme','translateFn','lazyLoadInstance','getEleTop','<i\x20class=\x22fas\x20fa-angle-down\x20expand\x22></i>','isHighlightShrink','img-alt\x20is-center','theme','open','body','hide-aside','buttonText','removeEventListener','lastChild','.highlight','img','title','class','remove','className','alt=\x22','updateAnchor','renderItems','rightside','clipboardData','8oGSIqP','hidden','menus','highlight','offsetTop','function','38LYaYpn','children','figure.highlight','light','4519361wtRyIN','199200bhQyzv','wrap','#sidebar-menus\x20.menus_items','refreshFn','debounce','overflow','isHidden','highlight-tools\x20','scrollToDest','parentNode','translatePage','nav-fixed','prismjs','createElement','is-top-bar','snackbarShow','aside-status','close','lazy-src','nav','push','h1,h2,h3,h4,h5,h6','scrollY','datetime','#recent-posts\x20time','copy','title=\x22','to_hide\x200.5s','#article-container\x20.tabs','table-wrap','1207338uJUBhQ','scrollTop','islazyload','.toc','innerHeight','includes','querySelector','url','split','button','destroy','appendChild','homepage','5205pJRxEX','forEach','infinitegrid','<div\x20class=\x22code-lang\x22>','2890449cKLmfL','sidebar-menus','setData','click','classList','toggle','resize','img:not(.medium-zoom-image)','preventDefault','addGlobalFn','card-toc','transition','opacity','article-container','runtimeshow','requestAppend','figure','removeAllRanges','from','data-type','#article-container\x20.gallery-container','copy-true','highlight.js','textContent','scrollHeight','display','JustifiedInfiniteGrid','scroll','set','type','groupKey','closed','hide','</div>','div','animateIn'];_0x2c7c=function(){return _0x5f3534;};return _0x2c7c();}(function(_0x4d375a,_0x3f0181){const _0x33502f=_0x2ecf,_0x2c9955=_0x4d375a();while(!![]){try{const _0x2cf8ec=parseInt(_0x33502f(0x23d))/0x1*(parseInt(_0x33502f(0x20d))/0x2)+-parseInt(_0x33502f(0x212))/0x3+parseInt(_0x33502f(0x1bd))/0x4*(-parseInt(_0x33502f(0x1d7))/0x5)+parseInt(_0x33502f(0x230))/0x6+-parseInt(_0x33502f(0x1c5))/0x7*(-parseInt(_0x33502f(0x207))/0x8)+parseInt(_0x33502f(0x241))/0x9*(-parseInt(_0x33502f(0x1a0))/0xa)+parseInt(_0x33502f(0x211))/0xb;if(_0x2cf8ec===_0x3f0181)break;else _0x2c9955['push'](_0x2c9955['shift']());}catch(_0x14cd31){_0x2c9955['push'](_0x2c9955['shift']());}}}(_0x2c7c,0x2e9af),document[_0x514d1c(0x19a)](_0x514d1c(0x1c1),function(){const _0x512206=_0x514d1c;let _0x46de99,_0x53afa7,_0x5cf18a=![];const _0x3218f3=_0x5741bd=>{const _0x2de70d=_0x2ecf,_0x54bb7d=_0x98f37e=>{const _0xa3470d=_0x2ecf;return Array[_0xa3470d(0x253)](_0x98f37e)[_0xa3470d(0x181)]((_0xfdbcbc,_0x501776)=>_0xfdbcbc+_0x501776[_0xa3470d(0x1c3)],0x0);};if(_0x5741bd){const _0x36350b=_0x54bb7d(document[_0x2de70d(0x236)](_0x2de70d(0x1a5))['children']),_0x3eb139=_0x54bb7d(document[_0x2de70d(0x1cc)](_0x2de70d(0x209))[_0x2de70d(0x20e)]);_0x46de99=_0x36350b+_0x3eb139,_0x53afa7=document[_0x2de70d(0x1cc)](_0x2de70d(0x225));}const _0x2a8ecc=window[_0x2de70d(0x1d2)]<=0x300||_0x46de99>_0x53afa7[_0x2de70d(0x1c3)]-0x78;_0x53afa7[_0x2de70d(0x245)][_0x2de70d(0x246)]('hide-menu',_0x2a8ecc);},_0x29f519=()=>{const _0x13d287=_0x2ecf;_0x3218f3(!![]),_0x53afa7[_0x13d287(0x245)][_0x13d287(0x1df)](_0x13d287(0x1e9));},_0x1e80ea={'open':()=>{const _0xa585ff=_0x2ecf;btf[_0xa585ff(0x1af)](),document[_0xa585ff(0x1f7)][_0xa585ff(0x1de)][_0xa585ff(0x217)]=_0xa585ff(0x208),btf[_0xa585ff(0x264)](document[_0xa585ff(0x1cc)](_0xa585ff(0x1b2)),'to_show\x200.5s'),document['getElementById'](_0xa585ff(0x242))[_0xa585ff(0x245)][_0xa585ff(0x1df)](_0xa585ff(0x1f6)),_0x5cf18a=!![];},'close':()=>{const _0x5b188d=_0x2ecf,_0x521398=document[_0x5b188d(0x1f7)];_0x521398[_0x5b188d(0x1de)][_0x5b188d(0x217)]='',_0x521398['style'][_0x5b188d(0x1a7)]='',btf['animateOut'](document[_0x5b188d(0x1cc)](_0x5b188d(0x1b2)),_0x5b188d(0x22d)),document[_0x5b188d(0x1cc)](_0x5b188d(0x242))['classList'][_0x5b188d(0x200)](_0x5b188d(0x1f6)),_0x5cf18a=![];}},_0x27c482=()=>{const _0x169bf8=_0x2ecf,_0x21d0cd=()=>{const _0x1aeeb1=_0x2ecf;btf[_0x1aeeb1(0x21a)](document[_0x1aeeb1(0x1cc)]('content-inner')[_0x1aeeb1(0x20b)],0x12c);},_0x405fa9=document[_0x169bf8(0x1cc)](_0x169bf8(0x1e4));_0x405fa9&&btf[_0x169bf8(0x1b9)](_0x405fa9,_0x169bf8(0x244),_0x21d0cd);},_0x165f27=()=>{const _0x5ac55d=_0x2ecf,_0x2d559f=GLOBAL_CONFIG[_0x5ac55d(0x20a)];if(!_0x2d559f)return;const {highlightCopy:_0x309e68,highlightLang:_0x2c8df6,highlightHeightLimit:_0x4029d0,plugin:_0x10a081}=_0x2d559f,_0x4342da=GLOBAL_CONFIG_SITE[_0x5ac55d(0x1f3)],_0x4b2708=_0x309e68||_0x2c8df6||_0x4342da!==undefined,_0x13bcd0=_0x10a081===_0x5ac55d(0x257)?document[_0x5ac55d(0x1ac)](_0x5ac55d(0x20f)):document['querySelectorAll']('pre[class*=\x22language-\x22]');if(!((_0x4b2708||_0x4029d0)&&_0x13bcd0[_0x5ac55d(0x17f)]))return;const _0x247177=_0x10a081===_0x5ac55d(0x21e),_0x102446=_0x4342da===!![]?_0x5ac55d(0x260):'',_0xda02c=_0x4342da!==undefined?_0x5ac55d(0x1f2):'',_0x16cdf1=_0x309e68?'<div\x20class=\x22copy-notice\x22></div><i\x20class=\x22fas\x20fa-paste\x20copy-button\x22></i>':'',_0x4c9e05=(_0x48f541,_0x199147)=>{const _0xce9d08=_0x5ac55d;if(GLOBAL_CONFIG[_0xce9d08(0x1b6)]!==undefined)btf['snackbarShow'](_0x199147);else{const _0x5eb5c2=_0x48f541[_0xce9d08(0x1ab)];_0x5eb5c2[_0xce9d08(0x258)]=_0x199147,_0x5eb5c2[_0xce9d08(0x1de)][_0xce9d08(0x24d)]=0x1,setTimeout(()=>{const _0x325e79=_0xce9d08;_0x5eb5c2[_0x325e79(0x1de)][_0x325e79(0x24d)]=0x0;},0x320);}},_0x1cbfad=_0x3219f2=>{const _0x3755b4=_0x5ac55d;document[_0x3755b4(0x19e)]&&document[_0x3755b4(0x19e)](_0x3755b4(0x22b))?(document['execCommand'](_0x3755b4(0x22b)),_0x4c9e05(_0x3219f2,GLOBAL_CONFIG[_0x3755b4(0x22b)]['success'])):_0x4c9e05(_0x3219f2,GLOBAL_CONFIG['copy'][_0x3755b4(0x18f)]);},_0x50b083=_0x4e92f7=>{const _0x5c4e75=_0x5ac55d,_0x5cca30=_0x4e92f7[_0x5c4e75(0x21b)];_0x5cca30[_0x5c4e75(0x245)][_0x5c4e75(0x1df)](_0x5c4e75(0x256));const _0x6a4add=window[_0x5c4e75(0x1d3)](),_0x479f7f=document[_0x5c4e75(0x1c8)](),_0x1e5227=_0x247177?_0x5c4e75(0x19b):_0x5c4e75(0x1ba);_0x479f7f[_0x5c4e75(0x18b)](_0x5cca30['querySelectorAll'](''+_0x1e5227)[0x0]),_0x6a4add[_0x5c4e75(0x252)](),_0x6a4add[_0x5c4e75(0x18a)](_0x479f7f),_0x1cbfad(_0x4e92f7[_0x5c4e75(0x1fb)]),_0x6a4add[_0x5c4e75(0x252)](),_0x5cca30['classList'][_0x5c4e75(0x200)](_0x5c4e75(0x256));},_0x44b550=_0x238129=>{const _0x3a317d=_0x5ac55d;_0x238129[_0x3a317d(0x245)]['toggle'](_0x3a317d(0x260));},_0x19bf08=function(_0x68f115){const _0x137cb6=_0x5ac55d,_0x1cf406=_0x68f115['target'][_0x137cb6(0x245)];if(_0x1cf406[_0x137cb6(0x1da)](_0x137cb6(0x194)))_0x44b550(this);else{if(_0x1cf406[_0x137cb6(0x1da)]('copy-button'))_0x50b083(this);}},_0x3e6919=function(){const _0x6e0afd=_0x5ac55d;this[_0x6e0afd(0x245)][_0x6e0afd(0x246)](_0x6e0afd(0x1ae));},_0x3641c0=(_0x5887bf,_0x2aafa4,_0x146bba)=>{const _0x5e125f=_0x5ac55d,_0x19b1b9=document[_0x5e125f(0x1d4)]();if(_0x4b2708){const _0x56c5e3=document[_0x5e125f(0x21f)]('div');_0x56c5e3[_0x5e125f(0x201)]=_0x5e125f(0x219)+_0x102446,_0x56c5e3[_0x5e125f(0x1cb)]=_0xda02c+_0x5887bf+_0x16cdf1,btf[_0x5e125f(0x1b9)](_0x56c5e3,_0x5e125f(0x244),_0x19bf08),_0x19b1b9['appendChild'](_0x56c5e3);}if(_0x4029d0&&_0x2aafa4[_0x5e125f(0x182)]>_0x4029d0+0x1e){const _0x1f0416=document[_0x5e125f(0x21f)](_0x5e125f(0x263));_0x1f0416[_0x5e125f(0x201)]='code-expand-btn',_0x1f0416[_0x5e125f(0x1cb)]='<i\x20class=\x22fas\x20fa-angle-double-down\x22></i>',btf[_0x5e125f(0x1b9)](_0x1f0416,_0x5e125f(0x244),_0x3e6919),_0x19b1b9[_0x5e125f(0x23b)](_0x1f0416);}_0x146bba==='hl'?_0x2aafa4[_0x5e125f(0x1e6)](_0x19b1b9,_0x2aafa4['firstChild']):_0x2aafa4['parentNode'][_0x5e125f(0x1e6)](_0x19b1b9,_0x2aafa4);};_0x247177?_0x13bcd0[_0x5ac55d(0x23e)](_0x2c4af5=>{const _0x1ecd6c=_0x5ac55d;if(_0x2c8df6){const _0x573bf7=_0x2c4af5['getAttribute']('data-language')||'Code',_0x7d6299='<div\x20class=\x22code-lang\x22>'+_0x573bf7+_0x1ecd6c(0x262);btf[_0x1ecd6c(0x213)](_0x2c4af5,_0x1ecd6c(0x251),{'class':_0x1ecd6c(0x20a)}),_0x3641c0(_0x7d6299,_0x2c4af5);}else btf[_0x1ecd6c(0x213)](_0x2c4af5,_0x1ecd6c(0x251),{'class':_0x1ecd6c(0x20a)}),_0x3641c0('',_0x2c4af5);}):_0x13bcd0['forEach'](_0x4e352d=>{const _0x24aa45=_0x5ac55d;if(_0x2c8df6){let _0x4bb8bd=_0x4e352d[_0x24aa45(0x1c0)](_0x24aa45(0x1ff))[_0x24aa45(0x238)]('\x20')[0x1];if(_0x4bb8bd===_0x24aa45(0x1db)||_0x4bb8bd===undefined)_0x4bb8bd=_0x24aa45(0x1a3);const _0x4f37ad=_0x24aa45(0x240)+_0x4bb8bd+_0x24aa45(0x262);_0x3641c0(_0x4f37ad,_0x4e352d,'hl');}else _0x3641c0('',_0x4e352d,'hl');});},_0x3d0084=()=>{const _0x204803=_0x2ecf;document[_0x204803(0x1ac)](_0x204803(0x1be))[_0x204803(0x23e)](_0x13af8d=>{const _0x24f7cc=_0x204803,_0x1e155c=_0x13af8d[_0x24f7cc(0x1fe)]||_0x13af8d[_0x24f7cc(0x1bb)];if(!_0x1e155c)return;const _0x107254=document[_0x24f7cc(0x21f)](_0x24f7cc(0x263));_0x107254[_0x24f7cc(0x201)]=_0x24f7cc(0x1f4),_0x107254[_0x24f7cc(0x258)]=_0x1e155c,_0x13af8d[_0x24f7cc(0x1bf)](_0x24f7cc(0x1bc),_0x107254);});},_0x1b363e=()=>{const _0xdcf95c=_0x2ecf;btf[_0xdcf95c(0x1ed)](document[_0xdcf95c(0x1ac)](_0xdcf95c(0x1e3)));},_0x36a4ee=async _0x144791=>{const _0x3ace84=_0x2ecf,_0x5b6d02=await fetch(_0x144791);return await _0x5b6d02[_0x3ace84(0x19d)]();},_0x484913=(_0x116999,_0x19d192,_0x22f114=![],_0x1e0796)=>{const _0x4b6c6=_0x2ecf,_0x454295=_0x19d192[_0x4b6c6(0x17f)],_0xe126fe=new InfiniteGrid[(_0x4b6c6(0x25b))](_0x116999,{'gap':0x5,'isConstantSize':!![],'sizeRange':[0x96,0x258],'useResizeObserver':!![],'observeChildren':!![],'useTransform':!![]});_0x1e0796&&btf[_0x4b6c6(0x24a)]('igOfTabs',()=>{const _0x1362f4=_0x4b6c6;_0xe126fe[_0x1362f4(0x23a)]();},![],_0x1e0796);const _0x2b18f7=_0x54a675=>_0x54a675[_0x4b6c6(0x1dd)](/"/g,'"'),_0x3a96e7=(_0x1d09d2,_0x71ccd)=>{const _0x2db446=_0x4b6c6,_0x136308=[],_0x36284e=(_0x1d09d2-0x1)*_0x71ccd;for(let _0x2ba079=0x0;_0x2ba079<_0x71ccd;++_0x2ba079){const _0x426469=_0x36284e+_0x2ba079;if(_0x426469>=_0x454295)break;const _0x259df6=_0x19d192[_0x426469],_0x45efc2=_0x259df6[_0x2db446(0x1bb)]?_0x2db446(0x202)+_0x2b18f7(_0x259df6['alt'])+'\x22':'',_0x5ad9ae=_0x259df6[_0x2db446(0x1fe)]?_0x2db446(0x22c)+_0x2b18f7(_0x259df6[_0x2db446(0x1fe)])+'\x22':'';_0x136308[_0x2db446(0x226)](_0x2db446(0x183)+_0x259df6['url']+_0x2db446(0x1d5)+(_0x45efc2+_0x5ad9ae)+'\x20/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>');}return _0x136308;},_0x5f3d4d=GLOBAL_CONFIG[_0x4b6c6(0x23f)][_0x4b6c6(0x1f9)],_0x2aebb1=_0x38f93e=>{const _0xf166a7=_0x4b6c6,_0x5e9cdc=document[_0xf166a7(0x21f)](_0xf166a7(0x239));_0x5e9cdc[_0xf166a7(0x258)]=_0x5f3d4d;const _0x23b6ca=_0x4e4b14=>{const _0x4c0570=_0xf166a7;_0x4e4b14[_0x4c0570(0x193)]['removeEventListener'](_0x4c0570(0x244),_0x23b6ca),_0x4e4b14[_0x4c0570(0x193)][_0x4c0570(0x200)](),btf['setLoading'][_0x4c0570(0x1df)](_0x38f93e),_0x5bf115(_0xe126fe[_0x4c0570(0x185)]()[_0x4c0570(0x17f)]+0x1,0xa);};_0x5e9cdc[_0xf166a7(0x19a)]('click',_0x23b6ca),_0x38f93e[_0xf166a7(0x1bf)](_0xf166a7(0x1bc),_0x5e9cdc);},_0x5bf115=(_0x3c95e2,_0x4f3a5d)=>{const _0xebbc3b=_0x4b6c6;_0xe126fe[_0xebbc3b(0x1a9)](_0x3a96e7(_0x3c95e2,_0x4f3a5d),_0x3c95e2);},_0x1df736=Math[_0x4b6c6(0x1a6)](_0x454295/0xa),_0x8f805e=_0x221070=>{const _0x48d221=_0x4b6c6,{updated:_0x46358a,isResize:_0x3af57f,mounted:_0x4fde33}=_0x221070;if(!_0x46358a['length']||!_0x4fde33[_0x48d221(0x17f)]||_0x3af57f)return;btf[_0x48d221(0x1ed)](_0x116999[_0x48d221(0x1ac)](_0x48d221(0x248)));if(_0xe126fe[_0x48d221(0x185)]()[_0x48d221(0x17f)]===_0x1df736){btf['setLoading'][_0x48d221(0x200)](_0x116999),_0xe126fe['off'](_0x48d221(0x1b7),_0x8f805e);return;}_0x22f114&&(btf[_0x48d221(0x192)][_0x48d221(0x200)](_0x116999),_0x2aebb1(_0x116999));},_0x1f665e=btf[_0x4b6c6(0x216)](_0x3b8686=>{const _0x5a7a9d=_0x4b6c6,_0x5b5b48=(+_0x3b8686[_0x5a7a9d(0x25f)]||0x0)+0x1;_0x5bf115(_0x5b5b48,0xa),_0x5b5b48===_0x1df736&&_0xe126fe[_0x5a7a9d(0x18e)](_0x5a7a9d(0x250),_0x1f665e);},0x12c);btf[_0x4b6c6(0x192)][_0x4b6c6(0x1df)](_0x116999),_0xe126fe['on']('renderComplete',_0x8f805e),_0x22f114?_0x5bf115(0x1,0xa):(_0xe126fe['on']('requestAppend',_0x1f665e),_0xe126fe[_0x4b6c6(0x204)]()),btf[_0x4b6c6(0x24a)](_0x4b6c6(0x191),()=>{const _0x44477e=_0x4b6c6;_0xe126fe[_0x44477e(0x23a)]();});},_0x4129e6=async(_0x2b96d1,_0x5d1039=![])=>{const _0x1d7da0=_0x2ecf,_0x170540=async()=>{const _0xcb9b23=_0x2ecf;for(const _0x2de440 of _0x2b96d1){if(btf[_0xcb9b23(0x218)](_0x2de440))continue;if(_0x5d1039&&_0x2de440[_0xcb9b23(0x245)]['contains']('loaded')){_0x2de440[_0xcb9b23(0x236)]('.gallery-items')[_0xcb9b23(0x1cb)]='';const _0x5971c1=_0x2de440[_0xcb9b23(0x236)](_0xcb9b23(0x1aa)),_0x46ca2d=_0x2de440[_0xcb9b23(0x236)](':scope\x20>\x20.loading-container');_0x5971c1&&_0x5971c1[_0xcb9b23(0x200)](),_0x46ca2d&&_0x46ca2d[_0xcb9b23(0x200)]();}const _0x1bb447=_0x2de440[_0xcb9b23(0x1c0)]('data-button')===_0xcb9b23(0x1c9),_0x3f9e41=_0x2de440[_0xcb9b23(0x1d9)][_0xcb9b23(0x258)];_0x2de440['classList'][_0xcb9b23(0x1df)]('loaded');const _0x354838=_0x2de440['getAttribute'](_0xcb9b23(0x254))===_0xcb9b23(0x237)?await _0x36a4ee(_0x3f9e41):JSON[_0xcb9b23(0x184)](_0x3f9e41);_0x484913(_0x2de440[_0xcb9b23(0x1d8)],_0x354838,_0x1bb447,_0x5d1039);}};typeof InfiniteGrid===_0x1d7da0(0x20c)?_0x170540():(await getScript(''+GLOBAL_CONFIG['infinitegrid']['js']),_0x170540());},_0x1f915d=_0x337674=>{const _0x5c3156=_0x2ecf,_0x3bacad=btf[_0x5c3156(0x1b1)](_0x337674,document[_0x5c3156(0x1f7)]),_0x46bbbb=document[_0x5c3156(0x1cc)]('go-up');_0x3bacad<0x5f?(_0x46bbbb[_0x5c3156(0x245)][_0x5c3156(0x1df)](_0x5c3156(0x186)),_0x46bbbb[_0x5c3156(0x236)]('.scroll-percent')[_0x5c3156(0x258)]=_0x3bacad):_0x46bbbb[_0x5c3156(0x245)]['remove'](_0x5c3156(0x186));},_0x108e2d=()=>{const _0x23fd42=_0x2ecf,_0x3630c1=document[_0x23fd42(0x1cc)](_0x23fd42(0x205)),_0x16f8d1=window[_0x23fd42(0x234)]+0x38;let _0x5378ee=0x0;const _0x4c9cdf=document[_0x23fd42(0x1cc)]('page-header'),_0x37a13d=typeof chatBtn!=='undefined',_0x23195f=GLOBAL_CONFIG[_0x23fd42(0x190)]['rightside'];if(document[_0x23fd42(0x1f7)][_0x23fd42(0x259)]<=_0x16f8d1){_0x3630c1[_0x23fd42(0x245)][_0x23fd42(0x1df)](_0x23fd42(0x1e8));return;}const _0x2ed2cd=_0x5ab539=>{const _0x52fc59=_0x5ab539>_0x5378ee;return _0x5378ee=_0x5ab539,_0x52fc59;};let _0x316fd2='';const _0x238346=btf[_0x23fd42(0x17e)](()=>{const _0x4e191c=_0x23fd42,_0x1a9b7f=window[_0x4e191c(0x228)]||document[_0x4e191c(0x198)][_0x4e191c(0x231)],_0x2e3173=_0x2ed2cd(_0x1a9b7f);_0x1a9b7f>0x38?(_0x4c9cdf[_0x4e191c(0x245)][_0x4e191c(0x1df)](_0x4e191c(0x220)),_0x316fd2===''&&(_0x4c9cdf['classList']['add']('nav-fixed'),_0x3630c1['classList'][_0x4e191c(0x1df)](_0x4e191c(0x1e8))),_0x2e3173?_0x316fd2!==_0x4e191c(0x18d)&&(_0x4c9cdf[_0x4e191c(0x245)][_0x4e191c(0x200)](_0x4e191c(0x1a4)),_0x37a13d&&window[_0x4e191c(0x1a2)][_0x4e191c(0x261)](),_0x316fd2=_0x4e191c(0x18d)):_0x316fd2!=='up'&&(_0x4c9cdf[_0x4e191c(0x245)][_0x4e191c(0x1df)](_0x4e191c(0x1a4)),_0x37a13d&&window[_0x4e191c(0x1a2)][_0x4e191c(0x1e9)](),_0x316fd2='up')):(_0x316fd2='',_0x1a9b7f===0x0&&(_0x4c9cdf[_0x4e191c(0x245)][_0x4e191c(0x200)]('is-top-bar'),_0x4c9cdf[_0x4e191c(0x245)][_0x4e191c(0x200)](_0x4e191c(0x21d),_0x4e191c(0x1a4))),_0x3630c1[_0x4e191c(0x245)][_0x4e191c(0x200)](_0x4e191c(0x1e8))),_0x23195f&&_0x1f915d(_0x1a9b7f),document['body']['scrollHeight']<=_0x16f8d1&&_0x3630c1[_0x4e191c(0x245)][_0x4e191c(0x1df)](_0x4e191c(0x1e8));},0x32);btf[_0x23fd42(0x1b9)](window,_0x23fd42(0x25c),_0x238346,{'passive':!![]});},_0x1d99bf=()=>{const _0x467410=_0x2ecf,_0x1ce137=GLOBAL_CONFIG_SITE[_0x467410(0x199)],_0x1819e9=GLOBAL_CONFIG['isAnchor'],_0x55d2a5=document['getElementById'](_0x467410(0x24e));if(!(_0x55d2a5&&(_0x1ce137||_0x1819e9)))return;let _0x5f4d90,_0x112776,_0x42576f,_0x58f458,_0x1eb710;if(_0x1ce137){const _0x52d1b8=document[_0x467410(0x1cc)](_0x467410(0x24b));_0x112776=_0x52d1b8[_0x467410(0x236)](_0x467410(0x195)),_0x5f4d90=_0x112776[_0x467410(0x1ac)](_0x467410(0x1e7)),_0x58f458=_0x52d1b8[_0x467410(0x236)]('.toc-percentage'),_0x1eb710=_0x112776[_0x467410(0x245)][_0x467410(0x1da)](_0x467410(0x189));const _0x3e4fff=_0x3d0900=>{const _0x579dc2=_0x467410,_0xc84be=_0x3d0900[_0x579dc2(0x193)][_0x579dc2(0x1ec)](_0x579dc2(0x1e7));if(!_0xc84be)return;_0x3d0900[_0x579dc2(0x249)](),btf[_0x579dc2(0x21a)](btf[_0x579dc2(0x1f1)](document[_0x579dc2(0x1cc)](decodeURI(_0xc84be[_0x579dc2(0x1c0)]('href'))[_0x579dc2(0x1dd)]('#',''))),0x12c),window[_0x579dc2(0x1d2)]<0x384&&_0x52d1b8[_0x579dc2(0x245)]['remove'](_0x579dc2(0x1f6));};btf[_0x467410(0x1b9)](_0x112776,_0x467410(0x244),_0x3e4fff),_0x42576f=_0x219494=>{const _0x548f02=_0x467410,_0x364e15=_0x219494[_0x548f02(0x1e5)]()['top'],_0x3bf79d=_0x112776[_0x548f02(0x231)];_0x364e15>document['documentElement']['clientHeight']-0x64&&(_0x112776['scrollTop']=_0x3bf79d+0x96),_0x364e15<0x64&&(_0x112776[_0x548f02(0x231)]=_0x3bf79d-0x96);};}const _0x2755c0=_0x55d2a5['querySelectorAll'](_0x467410(0x227));let _0x54c5ac='';const _0x2b443f=_0x519660=>{const _0x5bec66=_0x467410;if(_0x519660===0x0)return![];let _0x344b8f='',_0x444c3f='';_0x2755c0[_0x5bec66(0x23e)]((_0x43676c,_0x59cb9e)=>{const _0x23069c=_0x5bec66;if(_0x519660>btf[_0x23069c(0x1f1)](_0x43676c)-0x50){const _0x22fae1=_0x43676c['id'];_0x344b8f=_0x22fae1?'#'+encodeURI(_0x22fae1):'',_0x444c3f=_0x59cb9e;}});if(_0x54c5ac===_0x444c3f)return;if(_0x1819e9)btf[_0x5bec66(0x203)](_0x344b8f);_0x54c5ac=_0x444c3f;if(_0x1ce137){_0x112776[_0x5bec66(0x1ac)]('.active')['forEach'](_0x1b6392=>{const _0x3bed0b=_0x5bec66;_0x1b6392[_0x3bed0b(0x245)]['remove']('active');});if(_0x344b8f==='')return;const _0x2b5685=_0x5f4d90[_0x444c3f];_0x2b5685[_0x5bec66(0x245)][_0x5bec66(0x1df)](_0x5bec66(0x18c)),setTimeout(()=>{_0x42576f(_0x2b5685);},0x0);if(_0x1eb710)return;let _0x701062=_0x2b5685[_0x5bec66(0x21b)];for(;!_0x701062[_0x5bec66(0x1a1)](_0x5bec66(0x233));_0x701062=_0x701062[_0x5bec66(0x21b)]){if(_0x701062['matches']('li'))_0x701062[_0x5bec66(0x245)]['add'](_0x5bec66(0x18c));}}},_0x644367=btf[_0x467410(0x17e)](()=>{const _0xe624aa=_0x467410,_0x3bcfc8=window[_0xe624aa(0x228)]||document[_0xe624aa(0x198)][_0xe624aa(0x231)];_0x1ce137&&GLOBAL_CONFIG[_0xe624aa(0x190)]['toc']&&(_0x58f458['textContent']=btf[_0xe624aa(0x1b1)](_0x3bcfc8,_0x55d2a5)),_0x2b443f(_0x3bcfc8);},0x32);btf['addEventListenerPjax'](window,_0x467410(0x25c),_0x644367,{'passive':!![]});},_0x54c418=_0x168144=>{const _0x27d814=_0x2ecf,_0x29cf7f=window[_0x27d814(0x17a)]||{},_0x417d18=_0x29cf7f['themeChange']||{};if(!_0x417d18)return;Object['keys'](_0x417d18)[_0x27d814(0x23e)](_0x6b6705=>{const _0x76881d=_0x27d814,_0x454d2c=_0x417d18[_0x6b6705];['disqus','disqusjs'][_0x76881d(0x235)](_0x6b6705)?setTimeout(()=>_0x454d2c(_0x168144),0x12c):_0x454d2c(_0x168144);});},_0xde274={'readmode':()=>{const _0x17933e=_0x2ecf,_0x2cf750=document[_0x17933e(0x1f7)];_0x2cf750['classList'][_0x17933e(0x1df)](_0x17933e(0x19c));const _0x28f349=document['createElement'](_0x17933e(0x239));_0x28f349[_0x17933e(0x25e)]=_0x17933e(0x239),_0x28f349[_0x17933e(0x201)]=_0x17933e(0x1b3),_0x2cf750['appendChild'](_0x28f349);const _0x499113=()=>{const _0x5c7996=_0x17933e;_0x2cf750['classList'][_0x5c7996(0x200)](_0x5c7996(0x19c)),_0x28f349[_0x5c7996(0x200)](),_0x28f349[_0x5c7996(0x1fa)](_0x5c7996(0x244),_0x499113);};_0x28f349[_0x17933e(0x19a)](_0x17933e(0x244),_0x499113);},'darkmode':()=>{const _0x1fa43c=_0x2ecf,_0x33e2d8=document[_0x1fa43c(0x198)][_0x1fa43c(0x1c0)](_0x1fa43c(0x1ee))===_0x1fa43c(0x1b0)?'light':'dark';_0x33e2d8===_0x1fa43c(0x1b0)?(activateDarkMode(),GLOBAL_CONFIG[_0x1fa43c(0x1b6)]!==undefined&&btf['snackbarShow'](GLOBAL_CONFIG['Snackbar']['day_to_night'])):(activateLightMode(),GLOBAL_CONFIG[_0x1fa43c(0x1b6)]!==undefined&&btf[_0x1fa43c(0x221)](GLOBAL_CONFIG[_0x1fa43c(0x1b6)]['night_to_day'])),saveToLocal['set'](_0x1fa43c(0x1f5),_0x33e2d8,0x2),_0x54c418(_0x33e2d8);},'rightside-config':_0x10c5cf=>{const _0x423c5e=_0x2ecf,_0x62047=_0x10c5cf[_0x423c5e(0x1d9)];_0x62047[_0x423c5e(0x245)]['contains'](_0x423c5e(0x1e9))&&(_0x62047[_0x423c5e(0x245)][_0x423c5e(0x1df)](_0x423c5e(0x1ad)),setTimeout(()=>{const _0x4403ac=_0x423c5e;_0x62047[_0x4403ac(0x245)][_0x4403ac(0x200)](_0x4403ac(0x1ad));},0x12c)),_0x62047['classList'][_0x423c5e(0x246)]('show');},'go-up':()=>{const _0x2f5c5e=_0x2ecf;btf[_0x2f5c5e(0x21a)](0x0,0x1f4);},'hide-aside-btn':()=>{const _0x304b4b=_0x2ecf,_0x65e130=document[_0x304b4b(0x198)][_0x304b4b(0x245)],_0x5e00aa=_0x65e130[_0x304b4b(0x1da)](_0x304b4b(0x1f8))?_0x304b4b(0x1e9):'hide';saveToLocal[_0x304b4b(0x25d)](_0x304b4b(0x222),_0x5e00aa,0x2),_0x65e130[_0x304b4b(0x246)](_0x304b4b(0x1f8));},'mobile-toc-button':_0x4dfcf0=>{const _0x3e946a=_0x2ecf,_0x1fc92a=document[_0x3e946a(0x1cc)](_0x3e946a(0x24b));_0x1fc92a[_0x3e946a(0x1de)]['transition']='transform\x200.3s\x20ease-in-out',_0x1fc92a[_0x3e946a(0x245)][_0x3e946a(0x246)]('open'),_0x1fc92a[_0x3e946a(0x19a)]('transitionend',()=>{const _0x21b7ea=_0x3e946a;_0x1fc92a[_0x21b7ea(0x1de)][_0x21b7ea(0x24c)]='';},{'once':!![]});},'chat-btn':()=>{const _0x4349cf=_0x2ecf;window[_0x4349cf(0x1a8)]();},'translateLink':()=>{const _0x73f30f=_0x2ecf;window[_0x73f30f(0x1ef)][_0x73f30f(0x21c)]();}};document[_0x512206(0x1cc)](_0x512206(0x205))[_0x512206(0x19a)](_0x512206(0x244),function(_0x5b5c08){const _0x146ac1=_0x512206,_0x502344=_0x5b5c08[_0x146ac1(0x193)][_0x146ac1(0x1ec)]('[id]');_0x502344&&_0xde274[_0x502344['id']]&&_0xde274[_0x502344['id']](this);});const _0x214a88=()=>{const _0x5a0c12=_0x512206,_0xa6435=_0x28cc4f=>{const _0x578acb=_0x2ecf,_0x309eec=_0x28cc4f[_0x578acb(0x193)][_0x578acb(0x1ec)]('.site-page.group');if(!_0x309eec)return;_0x309eec[_0x578acb(0x245)]['toggle']('hide');};document[_0x5a0c12(0x236)](_0x5a0c12(0x214))[_0x5a0c12(0x19a)](_0x5a0c12(0x244),_0xa6435);},_0x56b3ea=()=>{const _0x44bcc7=_0x512206,_0x2f2001=()=>{_0x1e80ea['open']();};btf[_0x44bcc7(0x1b9)](document[_0x44bcc7(0x1cc)](_0x44bcc7(0x1e1)),_0x44bcc7(0x244),_0x2f2001);},_0x519e01=()=>{const _0x4497ea=_0x512206,{limitCount:_0x5ad6a2,languages:_0x3963bf}=GLOBAL_CONFIG['copyright'],_0x4b4d74=_0x204c32=>{const _0x52215c=_0x2ecf;_0x204c32[_0x52215c(0x249)]();const _0x58663b=window['getSelection'](0x0)[_0x52215c(0x196)]();let _0x218a0c=_0x58663b;return _0x58663b[_0x52215c(0x17f)]>_0x5ad6a2&&(_0x218a0c=_0x58663b+_0x52215c(0x1c6)+_0x3963bf[_0x52215c(0x1d6)]+'\x0a'+_0x3963bf['link']+window[_0x52215c(0x1ca)]['href']+'\x0a'+_0x3963bf['source']+'\x0a'+_0x3963bf[_0x52215c(0x1c2)]),_0x204c32[_0x52215c(0x206)]?_0x204c32[_0x52215c(0x206)][_0x52215c(0x243)](_0x52215c(0x19f),_0x218a0c):window[_0x52215c(0x206)][_0x52215c(0x243)](_0x52215c(0x19f),_0x218a0c);};document['body'][_0x4497ea(0x19a)](_0x4497ea(0x22b),_0x4b4d74);},_0x5f1ae9=()=>{const _0x41599b=_0x512206,_0x332a61=document[_0x41599b(0x1cc)](_0x41599b(0x24f));if(_0x332a61){const _0x369817=_0x332a61[_0x41599b(0x1c0)]('data-publishDate');_0x332a61['textContent']=btf['diffDate'](_0x369817)+'\x20'+GLOBAL_CONFIG['runtime'];}},_0xc7a962=()=>{const _0x459037=_0x512206,_0x482603=document[_0x459037(0x1cc)]('last-push-date');if(_0x482603){const _0x22818a=_0x482603[_0x459037(0x1c0)]('data-lastPushDate');_0x482603[_0x459037(0x258)]=btf[_0x459037(0x1c7)](_0x22818a,!![]);}},_0x13fd87=()=>{const _0x4bc415=_0x512206,_0x331e30=document[_0x4bc415(0x1ac)]('#article-container\x20table');if(!_0x331e30[_0x4bc415(0x17f)])return;_0x331e30[_0x4bc415(0x23e)](_0x5aff1e=>{const _0x47c898=_0x4bc415;!_0x5aff1e[_0x47c898(0x1ec)](_0x47c898(0x1fc))&&btf['wrap'](_0x5aff1e,_0x47c898(0x263),{'class':_0x47c898(0x22f)});});},_0x55b8c1=()=>{const _0x34f0b8=_0x512206,_0x4b5d95=document[_0x34f0b8(0x1ac)]('#article-container\x20.hide-button');if(!_0x4b5d95[_0x34f0b8(0x17f)])return;const _0x2593cd=function(_0x441b38){const _0x211e32=_0x34f0b8,_0x5a87f0=this;_0x5a87f0['classList'][_0x211e32(0x1df)]('open');const _0x17258c=_0x5a87f0[_0x211e32(0x1e2)][_0x211e32(0x1ac)](_0x211e32(0x17c));_0x17258c[_0x211e32(0x17f)]&&_0x4129e6(_0x17258c);};_0x4b5d95[_0x34f0b8(0x23e)](_0x5b9e4c=>{const _0x50e1f3=_0x34f0b8;_0x5b9e4c['addEventListener'](_0x50e1f3(0x244),_0x2593cd,{'once':!![]});});},_0x268a13=()=>{const _0x7e3a32=_0x512206,_0x4a13ea=document[_0x7e3a32(0x1ac)](_0x7e3a32(0x22e));if(!_0x4a13ea[_0x7e3a32(0x17f)])return;const _0x20fb4d=(_0x50a4d5,_0x287ae7)=>{const _0x45972c=_0x7e3a32;Array[_0x45972c(0x253)](_0x50a4d5)[_0x45972c(0x23e)](_0x543121=>{const _0x5869a2=_0x45972c;_0x543121['classList']['remove'](_0x5869a2(0x18c)),(_0x543121===_0x287ae7||_0x543121['id']===_0x287ae7)&&_0x543121[_0x5869a2(0x245)][_0x5869a2(0x1df)]('active');});},_0x549a38=(_0x1b1cb3,_0x3beb26)=>{const _0x5830f6=_0x7e3a32,_0x6a4fb6=function(_0xc66ae4){const _0x195875=_0x2ecf,_0x44ae13=_0xc66ae4[_0x195875(0x193)]['closest'](_0x195875(0x239));if(_0x44ae13[_0x195875(0x245)][_0x195875(0x1da)]('active'))return;_0x20fb4d(this['children'],_0x44ae13),this[_0x195875(0x245)][_0x195875(0x200)](_0x195875(0x1b8));const _0x3c33f0=_0x44ae13[_0x195875(0x1c0)](_0x195875(0x197)),_0x40ea9f=this[_0x195875(0x1e2)];_0x20fb4d(_0x40ea9f[_0x195875(0x20e)],_0x3c33f0);if(_0x3beb26){btf['removeGlobalFnEvent'](_0x195875(0x1d0),this);const _0x7fa79c=_0x40ea9f['querySelectorAll'](':scope\x20>\x20#'+_0x3c33f0+_0x195875(0x188));_0x7fa79c[_0x195875(0x17f)]&&_0x4129e6(_0x7fa79c,this);}};btf['addEventListenerPjax'](_0x1b1cb3[_0x5830f6(0x1d9)],_0x5830f6(0x244),_0x6a4fb6);},_0x1df78a=_0xa8a4d6=>{const _0xe68789=_0x7e3a32,_0x378017=_0x4fc11b=>{const _0x44c3b2=_0x2ecf,_0x19c6f8=_0x4fc11b[_0x44c3b2(0x193)][_0x44c3b2(0x1ec)](_0x44c3b2(0x239));if(!_0x19c6f8)return;btf[_0x44c3b2(0x21a)](btf['getEleTop'](_0xa8a4d6),0x12c);};btf[_0xe68789(0x1b9)](_0xa8a4d6['lastElementChild'],_0xe68789(0x244),_0x378017);};_0x4a13ea[_0x7e3a32(0x23e)](_0x473749=>{const _0x375fbf=_0x7e3a32,_0x30f7fc=!!_0x473749[_0x375fbf(0x1ac)](_0x375fbf(0x17c));_0x549a38(_0x473749,_0x30f7fc),_0x1df78a(_0x473749);});},_0x1da352=()=>{const _0x38ff84=_0x512206,_0x427a42=document['querySelector'](_0x38ff84(0x1cf));if(!_0x427a42)return;const _0x3a7858=_0x5f5c7d=>{const _0x389aa1=_0x38ff84,_0x375073=_0x5f5c7d['target'];_0x375073[_0x389aa1(0x1eb)]==='I'&&(_0x5f5c7d[_0x389aa1(0x249)](),_0x375073[_0x389aa1(0x21b)][_0x389aa1(0x245)][_0x389aa1(0x246)](_0x389aa1(0x194)));};btf['addEventListenerPjax'](_0x427a42,_0x38ff84(0x244),_0x3a7858,!![]);},_0x1e0be5=()=>{const _0x59626b=_0x512206,_0x2a622e=document[_0x59626b(0x1cc)]('switch-btn');if(!_0x2a622e)return;let _0x38d5c0=![];const _0x41364b=document['getElementById']('post-comment'),_0x52ffeb=()=>{const _0x2ac09e=_0x59626b;_0x41364b['classList'][_0x2ac09e(0x246)](_0x2ac09e(0x1cd)),!_0x38d5c0&&typeof loadOtherComment===_0x2ac09e(0x20c)&&(_0x38d5c0=!![],loadOtherComment());};btf[_0x59626b(0x1b9)](_0x2a622e,_0x59626b(0x244),_0x52ffeb);},_0x103693=()=>{const _0x54998f=_0x512206,{limitDay:_0xdaff6e,messagePrev:_0x28b752,messageNext:_0x10dbcc,position:_0x17e560}=GLOBAL_CONFIG['noticeOutdate'],_0x20cc7f=btf['diffDate'](GLOBAL_CONFIG_SITE[_0x54998f(0x17b)]);if(_0x20cc7f>=_0xdaff6e){const _0x454b41=document[_0x54998f(0x21f)](_0x54998f(0x263));_0x454b41['className']=_0x54998f(0x1ce),_0x454b41[_0x54998f(0x258)]=_0x28b752+'\x20'+_0x20cc7f+'\x20'+_0x10dbcc;const _0xa95d9d=document[_0x54998f(0x1cc)]('article-container');_0x17e560==='top'?_0xa95d9d[_0x54998f(0x1e6)](_0x454b41,_0xa95d9d['firstChild']):_0xa95d9d['appendChild'](_0x454b41);}},_0x1c8e89=()=>{const _0x18da4c=_0x512206;window[_0x18da4c(0x1f0)]=new LazyLoad({'elements_selector':_0x18da4c(0x1fd),'threshold':0x0,'data_src':_0x18da4c(0x224)});},_0x17e21e=function(_0x35cc31){_0x35cc31['forEach'](_0x292d0a=>{const _0x1b2c16=_0x2ecf,_0x17c798=_0x292d0a[_0x1b2c16(0x1c0)](_0x1b2c16(0x229));_0x292d0a[_0x1b2c16(0x258)]=btf[_0x1b2c16(0x1c7)](_0x17c798,!![]),_0x292d0a[_0x1b2c16(0x1de)][_0x1b2c16(0x25a)]='inline';});},_0x48b534=function(){const _0x3dd705=_0x512206;window[_0x3dd705(0x19a)](_0x3dd705(0x247),()=>{const _0x20e0dc=_0x3dd705;_0x3218f3(![]),_0x5cf18a&&btf[_0x20e0dc(0x218)](document[_0x20e0dc(0x1cc)]('toggle-menu'))&&_0x1e80ea[_0x20e0dc(0x223)]();}),document[_0x3dd705(0x1cc)](_0x3dd705(0x1b2))[_0x3dd705(0x19a)](_0x3dd705(0x244),_0x4814cf=>{const _0x325e19=_0x3dd705;_0x1e80ea[_0x325e19(0x223)]();}),_0x214a88(),GLOBAL_CONFIG[_0x3dd705(0x232)]&&_0x1c8e89(),GLOBAL_CONFIG[_0x3dd705(0x1c4)]!==undefined&&_0x519e01(),GLOBAL_CONFIG[_0x3dd705(0x1b5)]&&window[_0x3dd705(0x180)](_0x3dd705(0x1b4))[_0x3dd705(0x19a)](_0x3dd705(0x1ea),_0x506599=>{const _0xf6ba26=_0x3dd705;if(saveToLocal['get'](_0xf6ba26(0x1f5))!==undefined)return;_0x506599[_0xf6ba26(0x1a1)]?_0x54c418('dark'):_0x54c418(_0xf6ba26(0x210));});};window[_0x512206(0x215)]=function(){const _0x230a4e=_0x512206;_0x29f519();GLOBAL_CONFIG_SITE['isPost']?(GLOBAL_CONFIG[_0x230a4e(0x1d1)]!==undefined&&_0x103693(),GLOBAL_CONFIG[_0x230a4e(0x17d)]['post']&&_0x17e21e(document[_0x230a4e(0x1ac)]('#post-meta\x20time'))):(GLOBAL_CONFIG[_0x230a4e(0x17d)][_0x230a4e(0x23c)]&&_0x17e21e(document[_0x230a4e(0x1ac)](_0x230a4e(0x22a))),GLOBAL_CONFIG[_0x230a4e(0x1dc)]&&_0x5f1ae9(),_0xc7a962(),_0x1da352());_0x1d99bf(),GLOBAL_CONFIG_SITE['isHome']&&_0x27c482(),_0x165f27(),GLOBAL_CONFIG[_0x230a4e(0x187)]&&_0x3d0084(),_0x108e2d(),btf[_0x230a4e(0x1e0)]('justifiedGallery');const _0xe81a23=document['querySelectorAll'](_0x230a4e(0x255));_0xe81a23[_0x230a4e(0x17f)]&&_0x4129e6(_0xe81a23),_0x1b363e(),_0x13fd87(),_0x55b8c1(),_0x268a13(),_0x1e0be5(),_0x56b3ea();},refreshFn(),_0x48b534();}));
|
package/js/people.js
CHANGED
@@ -1 +1 @@
|
|
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){if(e){if("string"==typeof e)return _arrayLikeToArray(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_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 t=0,a=new Array(r);t<r;t++)a[t]=e[t];return a}function _classCallCheck(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var a=r[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),e}var peoplejs_mycpen1_config={src:"https://cdn.jsdmirror.com/npm/mycpen-blog@0.0.0-ejbnwsbmci/img/open-peeps-sheet.png",rows:15,cols:7},randomRange=function(e,r){return e+Math.random()*(r-e)},randomIndex=function(e){return 0|randomRange(0,e.length)},removeFromArray=function(e,r){return e.splice(r,1)[0]},removeItemFromArray=function(e,r){return removeFromArray(e,e.indexOf(r))},removeRandomFromArray=function(e){return removeFromArray(e,randomIndex(e))},getRandomFromArray=function(e){return e[0|randomIndex(e)]},resetPeep=function(e){var r,t,a=e.stage,n=e.peep,o=.5<Math.random()?1:-1,i=100-250*gsap.parseEase("power2.in")(Math.random()),s=a.height-n.height+i;return 1==o?(r=-n.width,t=a.width,n.scaleX=1):(r=a.width+n.width,t=0,n.scaleX=-1),n.x=r,n.y=s,{startX:r,startY:n.anchorY=s,endX:t}},normalWalk=function(e){var r=e.peep,t=e.props,a=(t.startX,t.startY),n=t.endX,o=gsap.timeline();return o.timeScale(randomRange(.5,1.5)),o.to(r,{duration:10,x:n,ease:"none"},0),o.to(r,{duration:.25,repeat:40,yoyo:!0,y:a-10},0),o},walks=[normalWalk],Peep=function(){function e(r){var t=r.image,a=r.rect;_classCallCheck(this,e),this.image=t,this.setRect(a),this.x=0,this.y=0,this.anchorY=0,this.scaleX=1,this.walk=null}return _createClass(e,[{key:"setRect",value:function(e){this.rect=e,this.width=e[2],this.height=e[3],this.drawArgs=[this.image].concat(_toConsumableArray(e),[0,0,this.width,this.height])}},{key:"render",value:function(e){e.save(),e.translate(this.x,this.y),e.scale(this.scaleX,1),e.drawImage.apply(e,_toConsumableArray(this.drawArgs)),e.restore()}}]),e}(),img=document.createElement("img");img.onload=init,img.src=peoplejs_mycpen1_config.src;let canvas=document.querySelector("#peoplecanvas"),ctx=canvas?canvas.getContext("2d"):void 0,stage={width:0,height:0},allPeeps=[],availablePeeps=[],crowd=[];function init(){canvas&&(createPeeps(),resize(),gsap.ticker.add(render),window.addEventListener("resize",resize))}function createPeeps(){for(var e=peoplejs_mycpen1_config.rows,r=peoplejs_mycpen1_config.cols,t=e*r,a=img.naturalWidth/e,n=img.naturalHeight/r,o=0;o<t;o++)allPeeps.push(new Peep({image:img,rect:[o%e*a,(o/e|0)*n,a,n]}))}function resize(){canvas&&0!=canvas.clientWidth&&(stage.width=canvas.clientWidth,stage.height=canvas.clientHeight,canvas.width=stage.width*devicePixelRatio,canvas.height=stage.height*devicePixelRatio,crowd.forEach((function(e){e.walk.kill()})),crowd.length=0,availablePeeps.length=0,availablePeeps.push.apply(availablePeeps,allPeeps),initCrowd())}function initCrowd(){for(;availablePeeps.length;)addPeepToCrowd().walk.progress(Math.random())}function addPeepToCrowd(){var e=removeRandomFromArray(availablePeeps),r=getRandomFromArray(walks)({peep:e,props:resetPeep({peep:e,stage:stage})}).eventCallback("onComplete",(function(){removePeepFromCrowd(e),addPeepToCrowd()}));return e.walk=r,crowd.push(e),crowd.sort((function(e,r){return e.anchorY-r.anchorY})),e}function removePeepFromCrowd(e){removeItemFromArray(crowd,e),availablePeeps.push(e)}function render(){canvas&&(canvas.width=canvas.width,ctx.save(),ctx.scale(devicePixelRatio,devicePixelRatio),crowd.forEach((function(e){e.render(ctx)})),ctx.restore())}document.addEventListener("pjax:success",(e=>{canvas=document.querySelector("#peoplecanvas"),ctx=canvas?canvas.getContext("2d"):void 0,window.removeEventListener("resize",resize),gsap.ticker.remove(render),setTimeout((()=>{init()}),300)}));
|
1
|
+
'use strict';var _0x12161e=_0x5daf;(function(_0x5770a5,_0x1c7a07){var _0x1b3500=_0x5daf,_0x4c459c=_0x5770a5();while(!![]){try{var _0x34d975=parseInt(_0x1b3500(0xae))/0x1*(-parseInt(_0x1b3500(0x92))/0x2)+-parseInt(_0x1b3500(0x84))/0x3+-parseInt(_0x1b3500(0xa2))/0x4*(parseInt(_0x1b3500(0xa8))/0x5)+parseInt(_0x1b3500(0x68))/0x6*(parseInt(_0x1b3500(0x95))/0x7)+parseInt(_0x1b3500(0xb2))/0x8*(parseInt(_0x1b3500(0xbb))/0x9)+parseInt(_0x1b3500(0x77))/0xa+parseInt(_0x1b3500(0xa1))/0xb;if(_0x34d975===_0x1c7a07)break;else _0x4c459c['push'](_0x4c459c['shift']());}catch(_0x1f4132){_0x4c459c['push'](_0x4c459c['shift']());}}}(_0x28e3,0x7764d));function _toConsumableArray(_0x46893f){return _arrayWithoutHoles(_0x46893f)||_iterableToArray(_0x46893f)||_unsupportedIterableToArray(_0x46893f)||_nonIterableSpread();}function _nonIterableSpread(){var _0x746d34=_0x5daf;throw new TypeError(_0x746d34(0x8d));}function _unsupportedIterableToArray(_0x2b14f1,_0x446063){var _0x22723a=_0x5daf;if(_0x2b14f1){if(_0x22723a(0x80)==typeof _0x2b14f1)return _arrayLikeToArray(_0x2b14f1,_0x446063);var _0xc85c8d=Object['prototype'][_0x22723a(0x91)][_0x22723a(0x8a)](_0x2b14f1)[_0x22723a(0x78)](0x8,-0x1);return _0x22723a(0x6d)===_0xc85c8d&&_0x2b14f1[_0x22723a(0x9e)]&&(_0xc85c8d=_0x2b14f1[_0x22723a(0x9e)]['name']),_0x22723a(0xab)===_0xc85c8d||_0x22723a(0x73)===_0xc85c8d?Array[_0x22723a(0x70)](_0x2b14f1):_0x22723a(0x8e)===_0xc85c8d||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/['test'](_0xc85c8d)?_arrayLikeToArray(_0x2b14f1,_0x446063):void 0x0;}}function _iterableToArray(_0x19a1b5){var _0x2d5c6f=_0x5daf;if(_0x2d5c6f(0x88)!=typeof Symbol&&null!=_0x19a1b5[Symbol[_0x2d5c6f(0x8f)]]||null!=_0x19a1b5[_0x2d5c6f(0xac)])return Array['from'](_0x19a1b5);}function _arrayWithoutHoles(_0x2ca605){var _0x47235d=_0x5daf;if(Array[_0x47235d(0x8b)](_0x2ca605))return _arrayLikeToArray(_0x2ca605);}function _arrayLikeToArray(_0x47a148,_0x52b822){var _0x426740=_0x5daf;(null==_0x52b822||_0x52b822>_0x47a148['length'])&&(_0x52b822=_0x47a148[_0x426740(0xa4)]);for(var _0x2b66c8=0x0,_0x3033e6=new Array(_0x52b822);_0x2b66c8<_0x52b822;_0x2b66c8++)_0x3033e6[_0x2b66c8]=_0x47a148[_0x2b66c8];return _0x3033e6;}function _0x28e3(){var _0x43c930=['kill','rows','ticker','random','key','9BdHDIz','78zPXZWI','configurable','cols','push','img','Object','render','setRect','from','forEach','power2.in','Set','scale','splice','drawImage','2860430NncUGj','slice','add','Cannot\x20call\x20a\x20class\x20as\x20a\x20function','timeline','progress','none','src','addEventListener','string','querySelector','getContext','resize','1834296PDyBun','peep','save','defineProperty','undefined','drawArgs','call','isArray','width','Invalid\x20attempt\x20to\x20spread\x20non-iterable\x20instance.\x0aIn\x20order\x20to\x20be\x20iterable,\x20non-array\x20objects\x20must\x20have\x20a\x20[Symbol.iterator]()\x20method.','Arguments','iterator','walk','toString','1751642MJmQRa','rect','restore','78519cjZsNJ','endX','remove','anchorY','onComplete','concat','height','scaleX','indexOf','constructor','value','naturalWidth','24709553WYPxGd','60KVbrsQ','clientHeight','length','prototype','props','clientWidth','245135Ezlhnh','timeScale','startY','Map','@@iterator','removeEventListener','1rrfWgY','eventCallback','onload','image','268064BBqKdR','stage','startX','parseEase'];_0x28e3=function(){return _0x43c930;};return _0x28e3();}function _classCallCheck(_0x7409b0,_0x154698){var _0x218614=_0x5daf;if(!(_0x7409b0 instanceof _0x154698))throw new TypeError(_0x218614(0x7a));}function _defineProperties(_0x573702,_0x12795b){var _0x218a76=_0x5daf;for(var _0x5d06b9=0x0;_0x5d06b9<_0x12795b[_0x218a76(0xa4)];_0x5d06b9++){var _0x51a5fb=_0x12795b[_0x5d06b9];_0x51a5fb['enumerable']=_0x51a5fb['enumerable']||!0x1,_0x51a5fb[_0x218a76(0x69)]=!0x0,_0x218a76(0x9f)in _0x51a5fb&&(_0x51a5fb['writable']=!0x0),Object[_0x218a76(0x87)](_0x573702,_0x51a5fb[_0x218a76(0xba)],_0x51a5fb);}}function _createClass(_0x4dd12f,_0x28e312,_0x3e17d1){var _0x5a4f90=_0x5daf;return _0x28e312&&_defineProperties(_0x4dd12f[_0x5a4f90(0xa5)],_0x28e312),_0x3e17d1&&_defineProperties(_0x4dd12f,_0x3e17d1),_0x4dd12f;}var peoplejs_mycpen1_config={'src':'https://cdn.cbd.int/mycpen-blog@0.0.0-ejdvaidezs/img/open-peeps-sheet.png','rows':0xf,'cols':0x7},randomRange=function(_0xfc803d,_0x3a2ddb){return _0xfc803d+Math['random']()*(_0x3a2ddb-_0xfc803d);},randomIndex=function(_0x4775c1){return 0x0|randomRange(0x0,_0x4775c1['length']);},removeFromArray=function(_0x4baac7,_0x4a75b5){var _0x46da5e=_0x5daf;return _0x4baac7[_0x46da5e(0x75)](_0x4a75b5,0x1)[0x0];},removeItemFromArray=function(_0x5c7cb7,_0x7763ed){var _0x3f2ff6=_0x5daf;return removeFromArray(_0x5c7cb7,_0x5c7cb7[_0x3f2ff6(0x9d)](_0x7763ed));},removeRandomFromArray=function(_0xcdc7c9){return removeFromArray(_0xcdc7c9,randomIndex(_0xcdc7c9));},getRandomFromArray=function(_0x93d509){return _0x93d509[0x0|randomIndex(_0x93d509)];},resetPeep=function(_0x38e2d2){var _0x8f695=_0x5daf,_0x4d434e,_0xbb3000,_0x3518a2=_0x38e2d2[_0x8f695(0xb3)],_0x45c8c8=_0x38e2d2[_0x8f695(0x85)],_0x4f577b=0.5<Math['random']()?0x1:-0x1,_0x2cd210=0x64-0xfa*gsap[_0x8f695(0xb5)](_0x8f695(0x72))(Math[_0x8f695(0xb9)]()),_0x1ed29a=_0x3518a2[_0x8f695(0x9b)]-_0x45c8c8[_0x8f695(0x9b)]+_0x2cd210;return 0x1==_0x4f577b?(_0x4d434e=-_0x45c8c8[_0x8f695(0x8c)],_0xbb3000=_0x3518a2[_0x8f695(0x8c)],_0x45c8c8['scaleX']=0x1):(_0x4d434e=_0x3518a2['width']+_0x45c8c8[_0x8f695(0x8c)],_0xbb3000=0x0,_0x45c8c8[_0x8f695(0x9c)]=-0x1),_0x45c8c8['x']=_0x4d434e,_0x45c8c8['y']=_0x1ed29a,{'startX':_0x4d434e,'startY':_0x45c8c8['anchorY']=_0x1ed29a,'endX':_0xbb3000};},normalWalk=function(_0x26331e){var _0x4dded4=_0x5daf,_0x53b81e=_0x26331e[_0x4dded4(0x85)],_0x48d0bd=_0x26331e[_0x4dded4(0xa6)],_0x468072=(_0x48d0bd[_0x4dded4(0xb4)],_0x48d0bd[_0x4dded4(0xaa)]),_0x39b257=_0x48d0bd[_0x4dded4(0x96)],_0x5cbd74=gsap[_0x4dded4(0x7b)]();return _0x5cbd74[_0x4dded4(0xa9)](randomRange(0.5,1.5)),_0x5cbd74['to'](_0x53b81e,{'duration':0xa,'x':_0x39b257,'ease':_0x4dded4(0x7d)},0x0),_0x5cbd74['to'](_0x53b81e,{'duration':0.25,'repeat':0x28,'yoyo':!0x0,'y':_0x468072-0xa},0x0),_0x5cbd74;},walks=[normalWalk],Peep=(function(){var _0xe15052=_0x5daf;function _0x38da47(_0x51482d){var _0x5c0678=_0x5daf,_0x597e9b=_0x51482d[_0x5c0678(0xb1)],_0x375780=_0x51482d['rect'];_classCallCheck(this,_0x38da47),this['image']=_0x597e9b,this[_0x5c0678(0x6f)](_0x375780),this['x']=0x0,this['y']=0x0,this[_0x5c0678(0x98)]=0x0,this[_0x5c0678(0x9c)]=0x1,this[_0x5c0678(0x90)]=null;}return _createClass(_0x38da47,[{'key':'setRect','value':function(_0x216c19){var _0x4ac2c4=_0x5daf;this[_0x4ac2c4(0x93)]=_0x216c19,this['width']=_0x216c19[0x2],this[_0x4ac2c4(0x9b)]=_0x216c19[0x3],this[_0x4ac2c4(0x89)]=[this[_0x4ac2c4(0xb1)]][_0x4ac2c4(0x9a)](_toConsumableArray(_0x216c19),[0x0,0x0,this[_0x4ac2c4(0x8c)],this[_0x4ac2c4(0x9b)]]);}},{'key':_0xe15052(0x6e),'value':function(_0x5a3402){var _0x3c16b1=_0xe15052;_0x5a3402[_0x3c16b1(0x86)](),_0x5a3402['translate'](this['x'],this['y']),_0x5a3402['scale'](this[_0x3c16b1(0x9c)],0x1),_0x5a3402[_0x3c16b1(0x76)]['apply'](_0x5a3402,_toConsumableArray(this['drawArgs'])),_0x5a3402[_0x3c16b1(0x94)]();}}]),_0x38da47;}()),img=document['createElement'](_0x12161e(0x6c));img[_0x12161e(0xb0)]=init,img[_0x12161e(0x7e)]=peoplejs_mycpen1_config[_0x12161e(0x7e)];let canvas=document[_0x12161e(0x81)]('#peoplecanvas'),ctx=canvas?canvas[_0x12161e(0x82)]('2d'):void 0x0,stage={'width':0x0,'height':0x0},allPeeps=[],availablePeeps=[],crowd=[];function init(){var _0x518fba=_0x12161e;canvas&&(createPeeps(),resize(),gsap[_0x518fba(0xb8)][_0x518fba(0x79)](render),window['addEventListener'](_0x518fba(0x83),resize));}function createPeeps(){var _0x3a885b=_0x12161e;for(var _0x81178d=peoplejs_mycpen1_config[_0x3a885b(0xb7)],_0x58604f=peoplejs_mycpen1_config[_0x3a885b(0x6a)],_0x23a2c4=_0x81178d*_0x58604f,_0x3b86ea=img[_0x3a885b(0xa0)]/_0x81178d,_0x3133a1=img['naturalHeight']/_0x58604f,_0x4daa2b=0x0;_0x4daa2b<_0x23a2c4;_0x4daa2b++)allPeeps['push'](new Peep({'image':img,'rect':[_0x4daa2b%_0x81178d*_0x3b86ea,(_0x4daa2b/_0x81178d|0x0)*_0x3133a1,_0x3b86ea,_0x3133a1]}));}function resize(){var _0x2ce6c9=_0x12161e;canvas&&0x0!=canvas['clientWidth']&&(stage[_0x2ce6c9(0x8c)]=canvas[_0x2ce6c9(0xa7)],stage[_0x2ce6c9(0x9b)]=canvas[_0x2ce6c9(0xa3)],canvas[_0x2ce6c9(0x8c)]=stage['width']*devicePixelRatio,canvas['height']=stage[_0x2ce6c9(0x9b)]*devicePixelRatio,crowd[_0x2ce6c9(0x71)](function(_0x1e4cd5){var _0x23a013=_0x2ce6c9;_0x1e4cd5[_0x23a013(0x90)][_0x23a013(0xb6)]();}),crowd[_0x2ce6c9(0xa4)]=0x0,availablePeeps[_0x2ce6c9(0xa4)]=0x0,availablePeeps[_0x2ce6c9(0x6b)]['apply'](availablePeeps,allPeeps),initCrowd());}function initCrowd(){var _0x3107ab=_0x12161e;for(;availablePeeps[_0x3107ab(0xa4)];)addPeepToCrowd()[_0x3107ab(0x90)][_0x3107ab(0x7c)](Math[_0x3107ab(0xb9)]());}function addPeepToCrowd(){var _0x559d89=_0x12161e,_0x34b018=removeRandomFromArray(availablePeeps),_0x11f970=getRandomFromArray(walks)({'peep':_0x34b018,'props':resetPeep({'peep':_0x34b018,'stage':stage})})[_0x559d89(0xaf)](_0x559d89(0x99),function(){removePeepFromCrowd(_0x34b018),addPeepToCrowd();});return _0x34b018[_0x559d89(0x90)]=_0x11f970,crowd[_0x559d89(0x6b)](_0x34b018),crowd['sort'](function(_0x4b8ea8,_0x274c05){var _0x3420f2=_0x559d89;return _0x4b8ea8[_0x3420f2(0x98)]-_0x274c05['anchorY'];}),_0x34b018;}function removePeepFromCrowd(_0x17ca2b){removeItemFromArray(crowd,_0x17ca2b),availablePeeps['push'](_0x17ca2b);}function render(){var _0x1481cf=_0x12161e;canvas&&(canvas[_0x1481cf(0x8c)]=canvas[_0x1481cf(0x8c)],ctx[_0x1481cf(0x86)](),ctx[_0x1481cf(0x74)](devicePixelRatio,devicePixelRatio),crowd[_0x1481cf(0x71)](function(_0x490210){var _0x1f65e1=_0x1481cf;_0x490210[_0x1f65e1(0x6e)](ctx);}),ctx['restore']());}function _0x5daf(_0x2ab6cd,_0x4233c4){var _0x28e3e4=_0x28e3();return _0x5daf=function(_0x5daf02,_0x53c9b2){_0x5daf02=_0x5daf02-0x68;var _0x52b8e2=_0x28e3e4[_0x5daf02];return _0x52b8e2;},_0x5daf(_0x2ab6cd,_0x4233c4);}document[_0x12161e(0x7f)]('pjax:success',_0x40adbd=>{var _0xdecadc=_0x12161e;canvas=document[_0xdecadc(0x81)]('#peoplecanvas'),ctx=canvas?canvas['getContext']('2d'):void 0x0,window[_0xdecadc(0xad)](_0xdecadc(0x83),resize),gsap[_0xdecadc(0xb8)][_0xdecadc(0x97)](render),setTimeout(()=>{init();},0x12c);});
|
package/js/random.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
var posts=[
|
1
|
+
function _0x154d(_0x20d8e1,_0x56c8e9){var _0x268822=_0x2688();return _0x154d=function(_0x154d2d,_0x2d6d9e){_0x154d2d=_0x154d2d-0x17b;var _0x28425b=_0x268822[_0x154d2d];return _0x28425b;},_0x154d(_0x20d8e1,_0x56c8e9);}var _0x1e3d83=_0x154d;(function(_0x1dac68,_0x23ba6c){var _0x3a0a42=_0x154d,_0x2c25c1=_0x1dac68();while(!![]){try{var _0x1c0464=parseInt(_0x3a0a42(0x1c1))/0x1+-parseInt(_0x3a0a42(0x193))/0x2*(-parseInt(_0x3a0a42(0x185))/0x3)+parseInt(_0x3a0a42(0x19e))/0x4+-parseInt(_0x3a0a42(0x196))/0x5*(parseInt(_0x3a0a42(0x1bd))/0x6)+-parseInt(_0x3a0a42(0x1be))/0x7+parseInt(_0x3a0a42(0x17f))/0x8*(parseInt(_0x3a0a42(0x191))/0x9)+-parseInt(_0x3a0a42(0x1b6))/0xa;if(_0x1c0464===_0x23ba6c)break;else _0x2c25c1['push'](_0x2c25c1['shift']());}catch(_0x3478d1){_0x2c25c1['push'](_0x2c25c1['shift']());}}}(_0x2688,0x3265f));var posts=[_0x1e3d83(0x1bb),_0x1e3d83(0x1ab),_0x1e3d83(0x1c2),_0x1e3d83(0x18a),'posts/5552.html','posts/cb0ae693.html','posts/fe8dbc73.html',_0x1e3d83(0x1b9),'posts/5162.html',_0x1e3d83(0x19d),_0x1e3d83(0x187),_0x1e3d83(0x180),_0x1e3d83(0x1ac),_0x1e3d83(0x1ad),_0x1e3d83(0x1c0),_0x1e3d83(0x17e),_0x1e3d83(0x1a2),_0x1e3d83(0x1a6),_0x1e3d83(0x182),_0x1e3d83(0x1a8),_0x1e3d83(0x1b4),_0x1e3d83(0x186),_0x1e3d83(0x18f),'posts/34556.html',_0x1e3d83(0x1b7),_0x1e3d83(0x1b8),_0x1e3d83(0x19f),'posts/10149.html',_0x1e3d83(0x1a4),'posts/33007.html',_0x1e3d83(0x1b1),_0x1e3d83(0x1aa),_0x1e3d83(0x18b),_0x1e3d83(0x1b0),_0x1e3d83(0x18e),_0x1e3d83(0x1bf),'posts/43746.html','posts/5637.html',_0x1e3d83(0x197),'posts/57976.html',_0x1e3d83(0x18c),_0x1e3d83(0x183),'posts/57744.html',_0x1e3d83(0x17b),_0x1e3d83(0x1ae),_0x1e3d83(0x184),_0x1e3d83(0x1ba),_0x1e3d83(0x1a1),'posts/45562d6f.html',_0x1e3d83(0x1a9),_0x1e3d83(0x188),_0x1e3d83(0x1a3),'posts/88a726.html',_0x1e3d83(0x19b),'posts/583c5c34.html',_0x1e3d83(0x19a),_0x1e3d83(0x1b5),_0x1e3d83(0x1c3),_0x1e3d83(0x1a5),_0x1e3d83(0x189),_0x1e3d83(0x190),_0x1e3d83(0x19c),_0x1e3d83(0x195),'posts/37069.html',_0x1e3d83(0x1a0),_0x1e3d83(0x181),_0x1e3d83(0x17c),_0x1e3d83(0x192),_0x1e3d83(0x1af),_0x1e3d83(0x1b3),'posts/62975.html',_0x1e3d83(0x1a7),'posts/10d5063.html',_0x1e3d83(0x198),_0x1e3d83(0x17d),_0x1e3d83(0x18d),_0x1e3d83(0x1bc)];function toRandomPost(){var _0x43e5b9=_0x1e3d83;pjax[_0x43e5b9(0x1b2)]('/'+posts[Math['floor'](Math[_0x43e5b9(0x199)]()*posts[_0x43e5b9(0x194)])]);}function _0x2688(){var _0x14c0d0=['posts/4979.html','12470QYjCjn','posts/14777.html','posts/3e42a4ef.html','random','posts/4f5c6419.html','posts/6a2caa19.html','posts/16756.html','posts/43907.html','1178492UtFAFM','posts/43579.html','posts/33188.html','posts/dd4b1092.html','posts/6f7759e0.html','posts/4cb758ea.html','posts/29955.html','posts/cee83196.html','posts/8b765f7a.html','posts/16589f92.html','posts/12907.html','posts/29e2641c.html','posts/30664.html','posts/57095.html','posts/9b5a2768.html','posts/4c16ee73.html','posts/b0a8892b.html','posts/13683.html','posts/61496.html','posts/5276.html','loadUrl','posts/9186.html','posts/47697.html','posts/3ffec809.html','3380020nLiEZr','posts/43225.html','posts/62964.html','posts/8236.html','posts/317b0311.html','posts/14763.html','posts/85a8374a.html','552sQspPI','973112asOHwH','posts/10588.html','posts/df249111.html','43247UfAYBR','posts/42935.html','posts/b7f58a40.html','posts/22091.html','posts/314.html','posts/beb8baf2.html','posts/27addd89.html','8lEpdfR','posts/51a9ee30.html','posts/49827.html','posts/8d01af11.html','posts/46092.html','posts/ecc378ee.html','173898FeUGdi','posts/62652.html','posts/38874.html','posts/3ae7567f.html','posts/acb8c062.html','posts/65154.html','posts/35184.html','posts/33033.html','posts/285c50ae.html','posts/9132.html','posts/48860.html','posts/63259.html','2566773sufaMn','posts/46.html','10kYTGWl','length'];_0x2688=function(){return _0x14c0d0;};return _0x2688();};
|
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
'use strict';var _0x3abc1a=_0x1d90;(function(_0x255151,_0x905924){var _0x53e174=_0x1d90,_0x59e80f=_0x255151();while(!![]){try{var _0x334705=parseInt(_0x53e174(0x172))/0x1*(parseInt(_0x53e174(0x187))/0x2)+-parseInt(_0x53e174(0x178))/0x3*(parseInt(_0x53e174(0x167))/0x4)+parseInt(_0x53e174(0x182))/0x5+-parseInt(_0x53e174(0x165))/0x6*(-parseInt(_0x53e174(0x168))/0x7)+parseInt(_0x53e174(0x123))/0x8+parseInt(_0x53e174(0x134))/0x9*(parseInt(_0x53e174(0x130))/0xa)+parseInt(_0x53e174(0x141))/0xb;if(_0x334705===_0x905924)break;else _0x59e80f['push'](_0x59e80f['shift']());}catch(_0x36c3d2){_0x59e80f['push'](_0x59e80f['shift']());}}}(_0x4019,0x77700));var frdata={'apiurl':_0x3abc1a(0x13c),'defaultFish':0x64,'hungryFish':0x64};if('undefined'!=typeof frdataUser){for(var key in frdataUser)frdataUser[key]&&(frdata[key]=frdataUser[key]);}var randomPostTimes=0x0,randomPostWorking=!0x1,randomPostTips=[_0x3abc1a(0x128),'在河边打了个喷嚏,吓跑了','你和小伙伴抢夺着','你击败了巨龙,在巢穴中发现了',_0x3abc1a(0x140),_0x3abc1a(0x179),_0x3abc1a(0x13d),_0x3abc1a(0x155),'考古学家近日发现了',_0x3abc1a(0x177),'从图书馆顶层的隐秘角落里发现了闪着金光的',_0x3abc1a(0x129),_0x3abc1a(0x135),'隔壁家的孩子数学考了满分,都是因为看了',_0x3abc1a(0x160),'小米研发了全新一代MIX手机,据说灵感','修炼渡劫成功,还好提前看了',_0x3abc1a(0x16a),'阿里巴巴大喊芝麻开门,映入眼帘的就是','师傅说练武要先炼心,然后让我好生研读',_0x3abc1a(0x144),_0x3abc1a(0x159),_0x3abc1a(0x12a),_0x3abc1a(0x184),'新版语文书拟增加一篇熟读并背诵的','经调查,99%的受访者都没有背诵过','今年的高考满分作文是','唐僧揭开了佛祖压在五指山上的','科学家发现能够解决衰老的秘密,就是每日研读',_0x3abc1a(0x16f),_0x3abc1a(0x137),'今年亩产突破了八千万斤,多亏了',_0x3abc1a(0x120),'黑钻风跟白钻风说道,吃了唐僧肉能长生不老,他知道是因为看了',_0x3abc1a(0x15e),_0x3abc1a(0x166),_0x3abc1a(0x14f),_0x3abc1a(0x13a),'今日双色球中了两千万,预测全靠','因为卷子上没写名字,老师罚抄',_0x3abc1a(0x145),'在艺术大街上被贴满了相同的纸,走近一看是',_0x3abc1a(0x14c),_0x3abc1a(0x143),_0x3abc1a(0x148),_0x3abc1a(0x17c),_0x3abc1a(0x174),_0x3abc1a(0x16d),_0x3abc1a(0x17e),_0x3abc1a(0x126),_0x3abc1a(0x139),_0x3abc1a(0x12b),_0x3abc1a(0x142),_0x3abc1a(0x183),'庆氏三千年根基差点竟被你小子毁于一旦,能够被我拯救全是因为我看了',_0x3abc1a(0x162),'我就是神奇宝贝大师!我这只小火龙可是',_0x3abc1a(0x12d),'我就是神奇宝贝大师!我这只杰尼龟可是',_0x3abc1a(0x127),'奶奶的,玩阴的是吧,我就是双料特工代号穿山甲,',_0x3abc1a(0x16b),_0x3abc1a(0x185),'我真的栓Q了,我真的会谢如果你看',_0x3abc1a(0x164),_0x3abc1a(0x12f),_0x3abc1a(0x16e),_0x3abc1a(0x15d),_0x3abc1a(0x17f),'你抽到了金色稀有文章,它是',_0x3abc1a(0x17d),'哇!金色传说!你抽到了金色传说文章,它是',_0x3abc1a(0x14b),_0x3abc1a(0x138),'请问你的梦想是什么?我的梦想是能读到',_0x3abc1a(0x17a),_0x3abc1a(0x176),_0x3abc1a(0x131),_0x3abc1a(0x169),_0x3abc1a(0x170)],randomPostClick=0x0;function fetchRandomPost(){var _0x585a06=_0x3abc1a;if(document['getElementById'](_0x585a06(0x136))){var _0xf10c8,_0x32e8aa,_0x257a1f,_0x405db5;0x0==randomPostWorking&&document[_0x585a06(0x16c)](_0x585a06(0x12c))&&(randomPostWorking=!0x0,_0xf10c8=randomPostTips[Math['floor'](Math[_0x585a06(0x133)]()*randomPostTips['length'])],_0x32e8aa='',_0x32e8aa=0x2710<randomPostTimes?_0x585a06(0x180):0x3e8<randomPostTimes?_0x585a06(0x157):0x3e8<randomPostTimes?_0x585a06(0x14e):0x64<randomPostTimes?_0x585a06(0x156):0x4b<randomPostTimes?_0x585a06(0x125):0x32<randomPostTimes?'钓鱼宗师':0x14<randomPostTimes?_0x585a06(0x14d):0x5<randomPostTimes?_0x585a06(0x150):'钓鱼新手',document[_0x585a06(0x16c)](_0x585a06(0x12c))[_0x585a06(0x173)]=0x5<=randomPostTimes?_0x585a06(0x151)+randomPostTimes+'\x20当前称号:'+_0x32e8aa+')':_0x585a06(0x13e),_0x257a1f=randomNum(0x3e8,0xbb8),0x0==randomPostTimes&&(_0x257a1f=0x0),document[_0x585a06(0x132)](_0x585a06(0x121))['style']['opacity']=_0x585a06(0x17b),randomPostWorking=(randomPostClick*frdata[_0x585a06(0x147)]+frdata[_0x585a06(0x15c)]<randomPostTimes&&0x0==Math[_0x585a06(0x13f)](Math[_0x585a06(0x133)]())?document[_0x585a06(0x16c)]('random-post')[_0x585a06(0x173)]='因为只钓鱼不吃鱼,过分饥饿导致本次钓鱼失败...(点击任意一篇钓鱼获得的文章即可恢复)':(_0x405db5=frdata['apiurl']+_0x585a06(0x186),fetch(_0x405db5)[_0x585a06(0x14a)](function(_0x39d044){return _0x39d044['json']();})[_0x585a06(0x14a)](function(_0x17b93e){var _0x452dce=_0x585a06,_0x1e5eb7=_0x17b93e['title'],_0xcea3e3=_0x17b93e[_0x452dce(0x158)],_0x2d1533=_0x17b93e['author'];document[_0x452dce(0x132)](_0x452dce(0x146))&&window[_0x452dce(0x15b)](function(){var _0x2bacc8=_0x452dce;document[_0x2bacc8(0x16c)]('random-post')['innerHTML']=_0xf10c8+_0x2bacc8(0x181)+_0x2d1533+_0x2bacc8(0x122)+_0xcea3e3+_0x2bacc8(0x153)+_0x1e5eb7+_0x2bacc8(0x175),randomPostTimes+=0x1,localStorage[_0x2bacc8(0x154)](_0x2bacc8(0x149),randomPostTimes),document[_0x2bacc8(0x132)](_0x2bacc8(0x121))[_0x2bacc8(0x161)][_0x2bacc8(0x171)]='1';},_0x257a1f);})),!0x1));}}function _0x4019(){var _0x559fdd=['我就是神奇宝贝大师!我这只可达鸭可是','deg)','人生无常大肠包小肠,小肠包住了','39090fUpLZp','你要尽全力保护你的梦想。那些嘲笑你的人,他们必定会失败,他们想把你变成和他们一样的人。如果你有梦想的话,就要努力去读','querySelector','random','261efhcTQ','在大山中唱山歌,隔壁的阿妹跑来了,带着','mycpen1-fcircle-page-tag','新的iPhone产能很足,新的进货渠道是','芷莲姑娘大摆擂台,谁若是能读完此书,便可娶了她。然后从背后掏出了','你真正是谁并不重要,重要的是你看没看过','踏破铁血无觅处,得来全靠','0.3s','https://www.cpen.top:8002/','从学校班主任那拿来了孩子上课偷偷看的','随机筛选...','round','挖掘秦始皇坟时找到了','2402444uhgVNS','上百祖境高手在天威湖大战三天三夜为了抢夺','今日被一篇文章顶上了微博热搜,它是','科考队在南极大陆发现了被冰封的','为了抗议世间的不公,割破手指写下了','#random-post','hungryFish','你送给乞丐一个暴富秘籍,它是','randomPostTimes','then','报告!侦察兵说在前往300米有一个男子在偷偷看一本书,上面赫然写着','这区区迷阵岂能难得住我?其实能走出来多亏了','钓鱼专家','超越神了','三十年河东,三十年河西,莫欺我没有看过','钓鱼高手','随机筛选...\x20(Lv.','addEventListener','\x22\x20rel=\x22external\x20nofollow\x22>','setItem','你的同桌无情的从你的语文书中撕下了那篇你最喜欢的','绝世渔夫','俯览天下','link','飞机窗户似乎被一张纸糊上了,仔细一看是','length','setTimeout','defaultFish','你收到了稀有文章,它是','上卫生间没带纸,直接提裤跑路也不愿意玷污手中','randomPostClick','隔壁家的孩子英语考了满分,都是因为看了','style','我就是神奇宝贝大师!我这只皮卡丘可是','transitionDuration','你已经习得退退退神功,接下来的心法已经被记录在','9768NxarmS','种下一篇文章就会产生很多很多文章,我种下了','1640572dRvGDg','210OlUism','走人生的路就像爬山一样,看起来走了许多冤枉的路,崎岖的路,但终究需要读完','库克坐上了苹果CEO的宝座,因为他面试的时候看了','你的背景太假了,我的就逼真多了,学到这个技术全是因为看了','getElementById','如果你有梦想的话,就要努力去看','你抽到了普通文章,它是','英特尔发布了全新的至强处理器,其芯片的制造原理都是','游戏的规则就是这么的简单,你听懂了吗?管你听没听懂,快去看','opacity','277rURUBN','innerHTML','科学家解刨了第一个感染丧尸病毒的人,发现丧尸抗体存在于','</a>','纳兰嫣然掏出了退婚书,可是发现出门带错了,结果拿出了一本','外星人降临地球学习地球文化,落地时被你塞了','6ROBmpT','在路边闲逛的时候随手买了一个','读什么才能增智慧?当然是读','0.2','UZI一个走A拿下五杀,在事后采访时说他当时回想起了','你抽到了传说文章!它是','决定我们成为什么样人的,不是我们的能力,而是是否看过','你抽到了金色普通文章,它是','愿者上钩','来自友链\x20<b>','2582100wzFKZA','这化仙池水乃上古真仙对后人的考校,要求熟读并背诵','十几年前的录音机似乎还能够使用,插上电发现正在播的是','我是云南的,云南怒江的,怒江芦水市,芦水市六库,六库傈僳族,傈僳族是','randompost','1204xcNzHc','陆隐一统天上宗,在无数祖境高手的目光下宣读了','.random-post-start','</b>\x20的文章:<a\x20class=\x22random-friends-post\x22\x20onclick=\x22randomClickLink()\x22\x20target=\x22_blank\x22\x20href=\x22','1965784HECWHT','transform','钓鱼王者','有信心不一定会成功,没信心就去看','上古遗迹中写道,只要习得此书,便得成功。你定睛一看,原来是','钓到了绝世好文!','徒弟修炼走火入魔,为师立刻掏出了','历史上满写的仁义道德四个字,透过字缝里却全是','玄天境重要的是锻体,为师赠你此书,好好修炼去吧,这是','random-post'];_0x4019=function(){return _0x559fdd;};return _0x4019();}function initRandomPost(){var _0x49c134=_0x3abc1a;document[_0x49c134(0x132)]('.random-post-start')&&localStorage['randomPostTimes']&&(randomPostTimes=parseInt(localStorage['randomPostTimes']),randomPostClick=parseInt(localStorage[_0x49c134(0x15f)]),document[_0x49c134(0x132)](_0x49c134(0x121))[_0x49c134(0x161)][_0x49c134(0x163)]=_0x49c134(0x13b),document[_0x49c134(0x132)](_0x49c134(0x121))[_0x49c134(0x161)][_0x49c134(0x124)]='rotate('+0x168*randomPostTimes+_0x49c134(0x12e)),fetchRandomPost();}function randomClickLink(){var _0x1ec213=_0x3abc1a;randomPostClick+=0x1,localStorage[_0x1ec213(0x154)](_0x1ec213(0x15f),randomPostClick);}function randomNum(_0x2c408c,_0x72e0bc){var _0x183a01=_0x3abc1a;switch(arguments[_0x183a01(0x15a)]){case 0x1:return parseInt(Math[_0x183a01(0x133)]()*_0x2c408c+0x1,0xa);case 0x2:return parseInt(Math[_0x183a01(0x133)]()*(_0x72e0bc-_0x2c408c+0x1)+_0x2c408c,0xa);default:return 0x0;}}function whenDOMReadyRandomFriendsPostJS(){var _0x5779c8=_0x3abc1a;document[_0x5779c8(0x16c)]('mycpen1-fcircle-page-tag')&&initRandomPost();}function _0x1d90(_0x398fe6,_0x12a0fe){var _0x4019c4=_0x4019();return _0x1d90=function(_0x1d90c8,_0x264c51){_0x1d90c8=_0x1d90c8-0x120;var _0x223d9a=_0x4019c4[_0x1d90c8];return _0x223d9a;},_0x1d90(_0x398fe6,_0x12a0fe);}whenDOMReadyRandomFriendsPostJS(),document[_0x3abc1a(0x152)]('pjax:complete',whenDOMReadyRandomFriendsPostJS);
|
package/js/search/algolia.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
function _0x26ab(_0x494bbf,_0x131bc1){const _0xd7a1f3=_0xd7a1();return _0x26ab=function(_0x26ab12,_0x3430dd){_0x26ab12=_0x26ab12-0x1d5;let _0x118337=_0xd7a1f3[_0x26ab12];return _0x118337;},_0x26ab(_0x494bbf,_0x131bc1);}function _0xd7a1(){const _0x76a9ad=['Algolia\x20setting\x20is\x20invalid!','value','679445SfDsor','#algolia-hits','removeEventListener','hidden','isHidden','replace','_highlightResult','contentStripTruncate','1995679vgLgRh','<hr>','<i\x20class=\x22fas\x20fa-angle-double-right\x22></i>','start','<i\x20class=\x22fas\x20fa-angle-right\x22></i>','state','code','body','<div\x20id=\x22algolia-hits-empty\x22>','overflow','pjax','search_close\x20.5s','134lJyDsU','indexOf','pagination','focus','100%','permalink','<mark>','pjax:complete','innerWidth','getElementById','#algolia-info\x20>\x20.algolia-stats','addEventListenerPjax','<i\x20class=\x22fas\x20fa-angle-left\x22></i>','innerHeight','to_hide\x200.5s','resize','...','#search-button\x20>\x20.search','addEventListener','query','searchBox','531390ELhVnF','#algolia-info\x20>\x20.algolia-poweredBy','root','setProperty','querySelector','nbHits','#algolia-search\x20.ais-SearchBox-input','Escape','apiKey','refresh','titleScale\x200.5s','appId','1248516BikSar','1992448UNgIab','style','processingTimeMS','#algolia-search\x20.search-close-button','content','click','animateOut','search','keydown','configure','\x22\x20class=\x22algolia-hit-item-link\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22algolia-hits-item-title\x22>','error','width','contentStrip','languages','1481992YaBPjy','algolia','length','widgets','#algolia-search-input','hits_empty','algolia-hits','hits','no-title','4398wVMYgq','title','to_show\x200.5s'];_0xd7a1=function(){return _0x76a9ad;};return _0xd7a1();}(function(_0x129add,_0x5b5572){const _0xab6d8f=_0x26ab,_0x24eadc=_0x129add();while(!![]){try{const _0x4ed82e=parseInt(_0xab6d8f(0x1fa))/0x1*(-parseInt(_0xab6d8f(0x1e1))/0x2)+-parseInt(_0xab6d8f(0x20f))/0x3+parseInt(_0xab6d8f(0x1d8))/0x4+parseInt(_0xab6d8f(0x1e6))/0x5+parseInt(_0xab6d8f(0x21b))/0x6+parseInt(_0xab6d8f(0x1ee))/0x7+-parseInt(_0xab6d8f(0x21c))/0x8;if(_0x4ed82e===_0x5b5572)break;else _0x24eadc['push'](_0x24eadc['shift']());}catch(_0x46e69d){_0x24eadc['push'](_0x24eadc['shift']());}}}(_0xd7a1,0x440be),window['addEventListener']('load',()=>{const _0x1a50f1=_0x26ab,_0x14a278=document[_0x1a50f1(0x203)]('search-mask'),_0x45a066=document[_0x1a50f1(0x213)]('#algolia-search\x20.search-dialog'),_0x2df962=()=>{const _0x1c8dd0=_0x1a50f1,_0x5a58ef=document[_0x1c8dd0(0x1f5)][_0x1c8dd0(0x21d)];_0x5a58ef[_0x1c8dd0(0x1d5)]=_0x1c8dd0(0x1fe),_0x5a58ef[_0x1c8dd0(0x1f7)]=_0x1c8dd0(0x1e9),btf['animateIn'](_0x14a278,_0x1c8dd0(0x1e3)),btf['animateIn'](_0x45a066,_0x1c8dd0(0x219)),setTimeout(()=>{const _0x245a5a=_0x1c8dd0;document[_0x245a5a(0x213)](_0x245a5a(0x215))[_0x245a5a(0x1fd)]();},0x64),document[_0x1c8dd0(0x20c)](_0x1c8dd0(0x224),function _0x2ea5be(_0x3a57e9){const _0x367fac=_0x1c8dd0;_0x3a57e9[_0x367fac(0x1f4)]===_0x367fac(0x216)&&(_0x5b63d0(),document['removeEventListener'](_0x367fac(0x224),_0x2ea5be));}),_0x446a3d(),window[_0x1c8dd0(0x20c)]('resize',_0x446a3d);},_0x5b63d0=()=>{const _0x428142=_0x1a50f1,_0x2ea483=document[_0x428142(0x1f5)]['style'];_0x2ea483['width']='',_0x2ea483[_0x428142(0x1f7)]='',btf[_0x428142(0x222)](_0x45a066,_0x428142(0x1f9)),btf[_0x428142(0x222)](_0x14a278,_0x428142(0x208)),window[_0x428142(0x1e8)](_0x428142(0x209),_0x446a3d);},_0x446a3d=()=>{const _0x3b1e4d=_0x1a50f1;window[_0x3b1e4d(0x202)]<0x300&&_0x45a066['style'][_0x3b1e4d(0x212)]('--search-height',window[_0x3b1e4d(0x207)]+'px');},_0x2dabf6=()=>{const _0x206c35=_0x1a50f1;btf[_0x206c35(0x205)](document[_0x206c35(0x213)](_0x206c35(0x20b)),'click',_0x2df962);},_0x34134e=()=>{const _0x5e15a9=_0x1a50f1;_0x14a278['addEventListener'](_0x5e15a9(0x221),_0x5b63d0),document['querySelector'](_0x5e15a9(0x21f))[_0x5e15a9(0x20c)]('click',_0x5b63d0);},_0x47618f=_0x192b14=>{const _0x5437e4=_0x1a50f1;if(_0x192b14==='')return'';const _0x894266=_0x192b14[_0x5437e4(0x1fb)](_0x5437e4(0x200));let _0x97ecf0=_0x894266-0x1e,_0x359e43=_0x894266+0x78,_0x1511dc='',_0x3784a2='';_0x97ecf0<=0x0?(_0x97ecf0=0x0,_0x359e43=0x8c):_0x1511dc=_0x5437e4(0x20a);_0x359e43>_0x192b14[_0x5437e4(0x1da)]?_0x359e43=_0x192b14[_0x5437e4(0x1da)]:_0x3784a2='...';const _0x1a049e=_0x1511dc+_0x192b14['substring'](_0x97ecf0,_0x359e43)+_0x3784a2;return _0x1a049e;},_0x22dd23=GLOBAL_CONFIG['algolia'],_0x1da709=_0x22dd23[_0x1a50f1(0x21a)]&&_0x22dd23[_0x1a50f1(0x217)]&&_0x22dd23['indexName'];if(!_0x1da709)return console[_0x1a50f1(0x227)](_0x1a50f1(0x1e4));const _0x4bcb07=instantsearch({'indexName':_0x22dd23['indexName'],'searchClient':algoliasearch(_0x22dd23[_0x1a50f1(0x21a)],_0x22dd23[_0x1a50f1(0x217)]),'searchFunction'(_0x28cb63){const _0x53ce12=_0x1a50f1;_0x28cb63[_0x53ce12(0x1f3)][_0x53ce12(0x20d)]&&_0x28cb63[_0x53ce12(0x223)]();}}),_0x2c73b5=instantsearch[_0x1a50f1(0x1db)][_0x1a50f1(0x225)]({'hitsPerPage':0x5}),_0x35fccb=instantsearch[_0x1a50f1(0x1db)][_0x1a50f1(0x20e)]({'container':_0x1a50f1(0x1dc),'showReset':![],'showSubmit':![],'placeholder':GLOBAL_CONFIG['algolia'][_0x1a50f1(0x1d7)]['input_placeholder'],'showLoadingIndicator':!![]}),_0x3778be=instantsearch[_0x1a50f1(0x1db)][_0x1a50f1(0x1df)]({'container':_0x1a50f1(0x1e7),'templates':{'item'(_0x30424f){const _0x1c1569=_0x1a50f1,_0x181d89=_0x30424f[_0x1c1569(0x1ff)]?_0x30424f[_0x1c1569(0x1ff)]:GLOBAL_CONFIG[_0x1c1569(0x211)]+_0x30424f['path'],_0x39b0cd=_0x30424f[_0x1c1569(0x1ec)],_0x296c11=_0x39b0cd[_0x1c1569(0x1ed)]?_0x47618f(_0x39b0cd['contentStripTruncate'][_0x1c1569(0x1e5)]):_0x39b0cd[_0x1c1569(0x1d6)]?_0x47618f(_0x39b0cd[_0x1c1569(0x1d6)][_0x1c1569(0x1e5)]):_0x39b0cd[_0x1c1569(0x220)]?_0x47618f(_0x39b0cd['content'][_0x1c1569(0x1e5)]):'';return'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<a\x20href=\x22'+_0x181d89+_0x1c1569(0x226)+(_0x39b0cd[_0x1c1569(0x1e2)][_0x1c1569(0x1e5)]||_0x1c1569(0x1e0))+'</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<p\x20class=\x22algolia-hit-item-content\x22>'+_0x296c11+'</p>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</a>';},'empty':function(_0x24b7e5){const _0x12f4a3=_0x1a50f1;return _0x12f4a3(0x1f6)+GLOBAL_CONFIG[_0x12f4a3(0x1d9)][_0x12f4a3(0x1d7)][_0x12f4a3(0x1dd)][_0x12f4a3(0x1eb)](/\$\{query}/,_0x24b7e5['query'])+'</div>';}}}),_0x22ffe0=instantsearch['widgets']['stats']({'container':_0x1a50f1(0x204),'templates':{'text':function(_0x16e917){const _0x1fdd41=_0x1a50f1,_0x3e50bb=GLOBAL_CONFIG[_0x1fdd41(0x1d9)][_0x1fdd41(0x1d7)]['hits_stats'][_0x1fdd41(0x1eb)](/\$\{hits}/,_0x16e917[_0x1fdd41(0x214)])[_0x1fdd41(0x1eb)](/\$\{time}/,_0x16e917[_0x1fdd41(0x21e)]);return _0x1fdd41(0x1ef)+_0x3e50bb;}}}),_0x12edd3=instantsearch[_0x1a50f1(0x1db)]['poweredBy']({'container':_0x1a50f1(0x210)}),_0xfeff1f=instantsearch[_0x1a50f1(0x1db)][_0x1a50f1(0x1fc)]({'container':'#algolia-pagination','totalPages':0x5,'templates':{'first':'<i\x20class=\x22fas\x20fa-angle-double-left\x22></i>','last':_0x1a50f1(0x1f0),'previous':_0x1a50f1(0x206),'next':_0x1a50f1(0x1f2)}});_0x4bcb07['addWidgets']([_0x2c73b5,_0x35fccb,_0x3778be,_0x22ffe0,_0x12edd3,_0xfeff1f]),_0x4bcb07[_0x1a50f1(0x1f1)](),_0x2dabf6(),_0x34134e(),window[_0x1a50f1(0x20c)](_0x1a50f1(0x201),()=>{const _0x31141e=_0x1a50f1;!btf[_0x31141e(0x1ea)](_0x14a278)&&_0x5b63d0(),_0x2dabf6();}),window[_0x1a50f1(0x1f8)]&&_0x4bcb07['on']('render',()=>{const _0x4db3cb=_0x1a50f1;window[_0x4db3cb(0x1f8)][_0x4db3cb(0x218)](document['getElementById'](_0x4db3cb(0x1de)));});}));
|
@@ -1 +1 @@
|
|
1
|
-
class LocalSearch{constructor({path:e="",unescape:t=!1,top_n_per_article:n=1}){this.path=e,this.unescape=t,this.top_n_per_article=n,this.isfetched=!1,this.datas=null}getIndexByWord(e,t,n=!1){const s=[],o=new Set;return n||(t=t.toLowerCase()),e.forEach((e=>{if(this.unescape){const t=document.createElement("div");t.innerText=e,e=t.innerHTML}const i=e.length;if(0===i)return;let r=0,a=-1;for(n||(e=e.toLowerCase());(a=t.indexOf(e,r))>-1;)s.push({position:a,word:e}),o.add(e),r=a+i})),s.sort(((e,t)=>e.position!==t.position?e.position-t.position:t.word.length-e.word.length)),[s,o]}mergeIntoSlice(e,t,n){let s=n[0],{position:o,word:i}=s;const r=[],a=new Set;for(;o+i.length<=t&&0!==n.length;){a.add(i),r.push({position:o,length:i.length});const e=o+i.length;for(n.shift();0!==n.length&&(s=n[0],o=s.position,i=s.word,e>o);)n.shift()}return{hits:r,start:e,end:t,count:a.size}}highlightKeyword(e,t){let n="",s=t.start;for(const{position:o,length:i}of t.hits)n+=e.substring(s,o),s=o+i,n+=`<mark class="search-keyword">${e.substr(o,i)}</mark>`;return n+=e.substring(s,t.end),n}getResultItems(e){const t=[];return this.datas.forEach((({title:n,content:s,url:o})=>{const[i,r]=this.getIndexByWord(e,n),[a,c]=this.getIndexByWord(e,s),l=new Set([...r,...c]).size,h=i.length+a.length;if(0===h)return;const d=[];0!==i.length&&d.push(this.mergeIntoSlice(0,n.length,i));let u=[];for(;0!==a.length;){const e=a[0],{position:t}=e,n=Math.max(0,t-20),o=Math.min(s.length,t+100);u.push(this.mergeIntoSlice(n,o,a))}u.sort(((e,t)=>e.count!==t.count?t.count-e.count:e.hits.length!==t.hits.length?t.hits.length-e.hits.length:e.start-t.start));const g=parseInt(this.top_n_per_article,10);g>=0&&(u=u.slice(0,g));let p="";(o=new URL(o,location.origin)).searchParams.append("highlight",e.join(" ")),0!==d.length?p+=`<div class="local-search-hit-item"><a href="${o.href}"><span class="search-result-title">${this.highlightKeyword(n,d[0])}</span>`:p+=`<div class="local-search-hit-item"><a href="${o.href}"><span class="search-result-title">${n}</span>`,u.forEach((e=>{p+=`<p class="search-result">${this.highlightKeyword(s,e)}...</p></a>`})),p+="</div>",t.push({item:p,id:t.length,hitCount:h,includedCount:l})})),t}fetchData(){const e=!this.path.endsWith("json");fetch(this.path).then((e=>e.text())).then((t=>{this.isfetched=!0,this.datas=e?[...(new DOMParser).parseFromString(t,"text/xml").querySelectorAll("entry")].map((e=>({title:e.querySelector("title").textContent,content:e.querySelector("content").textContent,url:e.querySelector("url").textContent}))):JSON.parse(t),this.datas=this.datas.filter((e=>e.title)).map((e=>(e.title=e.title.trim(),e.content=e.content?e.content.trim().replace(/<[^>]+>/g,""):"",e.url=decodeURIComponent(e.url).replace(/\/{2,}/g,"/"),e))),window.dispatchEvent(new Event("search:loaded"))}))}highlightText(e,t,n){const s=e.nodeValue;let o=t.start;const i=[];for(const{position:e,length:r}of t.hits){const t=document.createTextNode(s.substring(o,e));o=e+r;const a=document.createElement("mark");a.className=n,a.appendChild(document.createTextNode(s.substr(e,r))),i.push(t,a)}e.nodeValue=s.substring(o,t.end),i.forEach((t=>{e.parentNode.insertBefore(t,e)}))}highlightSearchWords(e){const t=new URL(location.href).searchParams.get("highlight"),n=t?t.split(" "):[];if(!n.length||!e)return;const s=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null),o=[];for(;s.nextNode();)s.currentNode.parentNode.matches("button, select, textarea, .mermaid")||o.push(s.currentNode);o.forEach((e=>{const[t]=this.getIndexByWord(n,e.nodeValue);if(!t.length)return;const s=this.mergeIntoSlice(0,e.nodeValue.length,t);this.highlightText(e,s,"search-keyword")}))}}window.addEventListener("load",(()=>{const{path:e,top_n_per_article:t,unescape:n,languages:s}=GLOBAL_CONFIG.localSearch,o=new LocalSearch({path:e,top_n_per_article:t,unescape:n}),i=document.querySelector("#local-search-input input"),r=document.getElementById("local-search-stats-wrap"),a=document.getElementById("loading-status"),c=!e.endsWith("json"),l=()=>{if(!o.isfetched)return;let e=i.value.trim().toLowerCase();c&&(e=e.replace(/</g,"<").replace(/>/g,">")),""!==e&&(a.innerHTML='<i class="fas fa-spinner fa-pulse"></i>');const t=e.split(/[-\s]+/),n=document.getElementById("local-search-results");let l=[];if(e.length>0&&(l=o.getResultItems(t)),1===t.length&&""===t[0])n.textContent="",r.textContent="";else if(0===l.length){n.textContent="";const t=document.createElement("div");t.className="search-result-stats",t.textContent=s.hits_empty.replace(/\$\{query}/,e),r.innerHTML=t.outerHTML}else{l.sort(((e,t)=>e.includedCount!==t.includedCount?t.includedCount-e.includedCount:e.hitCount!==t.hitCount?t.hitCount-e.hitCount:t.id-e.id));const e=s.hits_stats.replace(/\$\{hits}/,l.length);n.innerHTML=`<div class="search-result-list">${l.map((e=>e.item)).join("")}</div>`,r.innerHTML=`<hr><div class="search-result-stats">${e}</div>`,window.pjax&&window.pjax.refresh(n)}a.textContent=""};let h=!1;const d=document.getElementById("search-mask"),u=document.querySelector("#local-search .search-dialog"),g=()=>{window.innerWidth<768&&u.style.setProperty("--search-height",window.innerHeight+"px")},p=()=>{const e=document.body.style;e.width="100%",e.overflow="hidden",btf.animateIn(d,"to_show 0.5s"),btf.animateIn(u,"titleScale 0.5s"),setTimeout((()=>{i.focus()}),300),h||(!o.isfetched&&o.fetchData(),i.addEventListener("input",l),h=!0),document.addEventListener("keydown",(function e(t){"Escape"===t.code&&(m(),document.removeEventListener("keydown",e))})),g(),window.addEventListener("resize",g)},m=()=>{const e=document.body.style;e.width="",e.overflow="",btf.animateOut(u,"search_close .5s"),btf.animateOut(d,"to_hide 0.5s"),window.removeEventListener("resize",g)},f=()=>{btf.addEventListenerPjax(document.querySelector("#search-button > .search"),"click",p)};window.addEventListener("search:loaded",(()=>{const e=document.getElementById("loading-database");e.nextElementSibling.style.display="block",e.remove()})),f(),document.querySelector("#local-search .search-close-button").addEventListener("click",m),d.addEventListener("click",m),GLOBAL_CONFIG.localSearch.preload&&o.fetchData(),o.highlightSearchWords(document.getElementById("article-container")),window.addEventListener("pjax:complete",(()=>{!btf.isHidden(d)&&m(),o.highlightSearchWords(document.getElementById("article-container")),f()}))}));
|
1
|
+
const _0x297a0d=_0x5125;(function(_0x4eebaf,_0x1d1ff5){const _0x1568e6=_0x5125,_0x1eb558=_0x4eebaf();while(!![]){try{const _0x544c99=-parseInt(_0x1568e6(0x1f4))/0x1*(-parseInt(_0x1568e6(0x1f6))/0x2)+-parseInt(_0x1568e6(0x1ee))/0x3*(-parseInt(_0x1568e6(0x1b0))/0x4)+parseInt(_0x1568e6(0x1a7))/0x5*(-parseInt(_0x1568e6(0x1c9))/0x6)+-parseInt(_0x1568e6(0x184))/0x7+-parseInt(_0x1568e6(0x1dd))/0x8+-parseInt(_0x1568e6(0x195))/0x9*(-parseInt(_0x1568e6(0x185))/0xa)+-parseInt(_0x1568e6(0x192))/0xb*(-parseInt(_0x1568e6(0x1a5))/0xc);if(_0x544c99===_0x1d1ff5)break;else _0x1eb558['push'](_0x1eb558['shift']());}catch(_0x56e862){_0x1eb558['push'](_0x1eb558['shift']());}}}(_0x52a5,0x2f30d));class LocalSearch{constructor({path:path='',unescape:unescape=![],top_n_per_article:top_n_per_article=0x1}){const _0x3d7224=_0x5125;this[_0x3d7224(0x1d2)]=path,this[_0x3d7224(0x1ef)]=unescape,this[_0x3d7224(0x18c)]=top_n_per_article,this[_0x3d7224(0x1d1)]=![],this[_0x3d7224(0x17e)]=null;}['getIndexByWord'](_0x32ccbb,_0x4b89d1,_0x5741cc=![]){const _0x1686a8=_0x5125,_0x5c4099=[],_0x3476ad=new Set();return!_0x5741cc&&(_0x4b89d1=_0x4b89d1['toLowerCase']()),_0x32ccbb[_0x1686a8(0x1ae)](_0x5b8454=>{const _0x53e7e7=_0x1686a8;if(this[_0x53e7e7(0x1ef)]){const _0x4e0e6a=document[_0x53e7e7(0x1d3)](_0x53e7e7(0x1cb));_0x4e0e6a[_0x53e7e7(0x1f0)]=_0x5b8454,_0x5b8454=_0x4e0e6a[_0x53e7e7(0x1bf)];}const _0x570f2a=_0x5b8454[_0x53e7e7(0x18f)];if(_0x570f2a===0x0)return;let _0x89ba9f=0x0,_0x1e0910=-0x1;!_0x5741cc&&(_0x5b8454=_0x5b8454[_0x53e7e7(0x186)]());while((_0x1e0910=_0x4b89d1[_0x53e7e7(0x1d6)](_0x5b8454,_0x89ba9f))>-0x1){_0x5c4099[_0x53e7e7(0x1a6)]({'position':_0x1e0910,'word':_0x5b8454}),_0x3476ad[_0x53e7e7(0x1a0)](_0x5b8454),_0x89ba9f=_0x1e0910+_0x570f2a;}}),_0x5c4099[_0x1686a8(0x1e2)]((_0x4f6a00,_0x5c26ce)=>{const _0x1714a6=_0x1686a8;if(_0x4f6a00['position']!==_0x5c26ce['position'])return _0x4f6a00['position']-_0x5c26ce[_0x1714a6(0x1cd)];return _0x5c26ce['word'][_0x1714a6(0x18f)]-_0x4f6a00[_0x1714a6(0x1b1)]['length'];}),[_0x5c4099,_0x3476ad];}['mergeIntoSlice'](_0x485f83,_0x8dbca0,_0x2aff0c){const _0x4a58f3=_0x5125;let _0x265c5e=_0x2aff0c[0x0],{position:_0xb9469a,word:_0x298b74}=_0x265c5e;const _0x6069a2=[],_0x52c5cb=new Set();while(_0xb9469a+_0x298b74[_0x4a58f3(0x18f)]<=_0x8dbca0&&_0x2aff0c[_0x4a58f3(0x18f)]!==0x0){_0x52c5cb['add'](_0x298b74),_0x6069a2['push']({'position':_0xb9469a,'length':_0x298b74[_0x4a58f3(0x18f)]});const _0x151e4e=_0xb9469a+_0x298b74[_0x4a58f3(0x18f)];_0x2aff0c[_0x4a58f3(0x1e4)]();while(_0x2aff0c[_0x4a58f3(0x18f)]!==0x0){_0x265c5e=_0x2aff0c[0x0],_0xb9469a=_0x265c5e[_0x4a58f3(0x1cd)],_0x298b74=_0x265c5e[_0x4a58f3(0x1b1)];if(_0x151e4e>_0xb9469a)_0x2aff0c[_0x4a58f3(0x1e4)]();else break;}}return{'hits':_0x6069a2,'start':_0x485f83,'end':_0x8dbca0,'count':_0x52c5cb[_0x4a58f3(0x1eb)]};}[_0x297a0d(0x193)](_0x3b6176,_0x20baf8){const _0x26e4e4=_0x297a0d;let _0x119cfe='',_0x2d3087=_0x20baf8[_0x26e4e4(0x1c1)];for(const {position:_0x1659f0,length:_0xef0dba}of _0x20baf8[_0x26e4e4(0x1c2)]){_0x119cfe+=_0x3b6176[_0x26e4e4(0x1ff)](_0x2d3087,_0x1659f0),_0x2d3087=_0x1659f0+_0xef0dba,_0x119cfe+='<mark\x20class=\x22search-keyword\x22>'+_0x3b6176[_0x26e4e4(0x189)](_0x1659f0,_0xef0dba)+_0x26e4e4(0x1df);}return _0x119cfe+=_0x3b6176[_0x26e4e4(0x1ff)](_0x2d3087,_0x20baf8[_0x26e4e4(0x1de)]),_0x119cfe;}['getResultItems'](_0x12054c){const _0x4d5f4f=_0x297a0d,_0x4b1cfd=[];return this['datas'][_0x4d5f4f(0x1ae)](({title:_0x516d79,content:_0x21c2c3,url:_0xe6fe05})=>{const _0x50b13c=_0x4d5f4f,[_0x4919d6,_0x2564f6]=this[_0x50b13c(0x17f)](_0x12054c,_0x516d79),[_0x2ad4f2,_0x44ba22]=this[_0x50b13c(0x17f)](_0x12054c,_0x21c2c3),_0x4865b1=new Set([..._0x2564f6,..._0x44ba22])[_0x50b13c(0x1eb)],_0x4c06a8=_0x4919d6[_0x50b13c(0x18f)]+_0x2ad4f2[_0x50b13c(0x18f)];if(_0x4c06a8===0x0)return;const _0x30bffd=[];_0x4919d6[_0x50b13c(0x18f)]!==0x0&&_0x30bffd[_0x50b13c(0x1a6)](this[_0x50b13c(0x1bb)](0x0,_0x516d79[_0x50b13c(0x18f)],_0x4919d6));let _0x394598=[];while(_0x2ad4f2[_0x50b13c(0x18f)]!==0x0){const _0x401f87=_0x2ad4f2[0x0],{position:_0x443262}=_0x401f87,_0x35b15d=Math[_0x50b13c(0x1c0)](0x0,_0x443262-0x14),_0x5c9cb1=Math['min'](_0x21c2c3[_0x50b13c(0x18f)],_0x443262+0x64);_0x394598[_0x50b13c(0x1a6)](this[_0x50b13c(0x1bb)](_0x35b15d,_0x5c9cb1,_0x2ad4f2));}_0x394598[_0x50b13c(0x1e2)]((_0x4b489e,_0x49d88f)=>{const _0x563f88=_0x50b13c;if(_0x4b489e[_0x563f88(0x1f1)]!==_0x49d88f[_0x563f88(0x1f1)])return _0x49d88f[_0x563f88(0x1f1)]-_0x4b489e['count'];else{if(_0x4b489e[_0x563f88(0x1c2)][_0x563f88(0x18f)]!==_0x49d88f[_0x563f88(0x1c2)][_0x563f88(0x18f)])return _0x49d88f[_0x563f88(0x1c2)][_0x563f88(0x18f)]-_0x4b489e[_0x563f88(0x1c2)][_0x563f88(0x18f)];}return _0x4b489e[_0x563f88(0x1c1)]-_0x49d88f[_0x563f88(0x1c1)];});const _0x24cee9=parseInt(this[_0x50b13c(0x18c)],0xa);_0x24cee9>=0x0&&(_0x394598=_0x394598[_0x50b13c(0x188)](0x0,_0x24cee9));let _0x2cf24f='';_0xe6fe05=new URL(_0xe6fe05,location[_0x50b13c(0x1ce)]),_0xe6fe05[_0x50b13c(0x1db)][_0x50b13c(0x198)](_0x50b13c(0x1e0),_0x12054c['join']('\x20')),_0x30bffd[_0x50b13c(0x18f)]!==0x0?_0x2cf24f+=_0x50b13c(0x1af)+_0xe6fe05['href']+_0x50b13c(0x1d7)+this[_0x50b13c(0x193)](_0x516d79,_0x30bffd[0x0])+_0x50b13c(0x1ba):_0x2cf24f+=_0x50b13c(0x1af)+_0xe6fe05[_0x50b13c(0x187)]+_0x50b13c(0x1d7)+_0x516d79+_0x50b13c(0x1ba),_0x394598[_0x50b13c(0x1ae)](_0x1290fc=>{const _0x48e1a3=_0x50b13c;_0x2cf24f+='<p\x20class=\x22search-result\x22>'+this['highlightKeyword'](_0x21c2c3,_0x1290fc)+_0x48e1a3(0x1d5);}),_0x2cf24f+='</div>',_0x4b1cfd['push']({'item':_0x2cf24f,'id':_0x4b1cfd[_0x50b13c(0x18f)],'hitCount':_0x4c06a8,'includedCount':_0x4865b1});}),_0x4b1cfd;}[_0x297a0d(0x1da)](){const _0x9a34ab=_0x297a0d,_0x31c5c8=!this[_0x9a34ab(0x1d2)][_0x9a34ab(0x1b8)](_0x9a34ab(0x1b7));fetch(this[_0x9a34ab(0x1d2)])[_0x9a34ab(0x194)](_0x4d56f0=>_0x4d56f0['text']())[_0x9a34ab(0x194)](_0x9ec7a3=>{const _0x2588f2=_0x9a34ab;this[_0x2588f2(0x1d1)]=!![],this[_0x2588f2(0x17e)]=_0x31c5c8?[...new DOMParser()['parseFromString'](_0x9ec7a3,_0x2588f2(0x1ca))[_0x2588f2(0x1f9)](_0x2588f2(0x19c))]['map'](_0x34759b=>({'title':_0x34759b[_0x2588f2(0x197)](_0x2588f2(0x1ad))[_0x2588f2(0x1e8)],'content':_0x34759b[_0x2588f2(0x197)](_0x2588f2(0x181))['textContent'],'url':_0x34759b[_0x2588f2(0x197)](_0x2588f2(0x1a9))[_0x2588f2(0x1e8)]})):JSON['parse'](_0x9ec7a3),this[_0x2588f2(0x17e)]=this[_0x2588f2(0x17e)]['filter'](_0x1adb76=>_0x1adb76[_0x2588f2(0x1ad)])[_0x2588f2(0x1c7)](_0x57e5ac=>{const _0x1b70c2=_0x2588f2;return _0x57e5ac['title']=_0x57e5ac[_0x1b70c2(0x1ad)][_0x1b70c2(0x18e)](),_0x57e5ac[_0x1b70c2(0x181)]=_0x57e5ac[_0x1b70c2(0x181)]?_0x57e5ac[_0x1b70c2(0x181)][_0x1b70c2(0x18e)]()['replace'](/<[^>]+>/g,''):'',_0x57e5ac[_0x1b70c2(0x1a9)]=decodeURIComponent(_0x57e5ac[_0x1b70c2(0x1a9)])[_0x1b70c2(0x1a2)](/\/{2,}/g,'/'),_0x57e5ac;}),window[_0x2588f2(0x1b5)](new Event(_0x2588f2(0x1a3)));});}[_0x297a0d(0x1ec)](_0x5eed3d,_0x54bdee,_0x15eb80){const _0x1a3e27=_0x297a0d,_0x1b5100=_0x5eed3d[_0x1a3e27(0x18b)];let _0x28e764=_0x54bdee[_0x1a3e27(0x1c1)];const _0xddc2f9=[];for(const {position:_0x4d59f3,length:_0x1d8ac2}of _0x54bdee[_0x1a3e27(0x1c2)]){const _0x2df7d4=document[_0x1a3e27(0x1b2)](_0x1b5100['substring'](_0x28e764,_0x4d59f3));_0x28e764=_0x4d59f3+_0x1d8ac2;const _0x57bf3c=document[_0x1a3e27(0x1d3)]('mark');_0x57bf3c[_0x1a3e27(0x19d)]=_0x15eb80,_0x57bf3c[_0x1a3e27(0x1cc)](document[_0x1a3e27(0x1b2)](_0x1b5100['substr'](_0x4d59f3,_0x1d8ac2))),_0xddc2f9['push'](_0x2df7d4,_0x57bf3c);}_0x5eed3d[_0x1a3e27(0x18b)]=_0x1b5100[_0x1a3e27(0x1ff)](_0x28e764,_0x54bdee['end']),_0xddc2f9[_0x1a3e27(0x1ae)](_0x163dc8=>{const _0x5b2d08=_0x1a3e27;_0x5eed3d[_0x5b2d08(0x18d)][_0x5b2d08(0x1ea)](_0x163dc8,_0x5eed3d);});}[_0x297a0d(0x1e5)](_0x5aec4b){const _0x2913c6=_0x297a0d,_0x3564c4=new URL(location[_0x2913c6(0x187)])[_0x2913c6(0x1db)][_0x2913c6(0x19e)](_0x2913c6(0x1e0)),_0x3b79e6=_0x3564c4?_0x3564c4[_0x2913c6(0x1be)]('\x20'):[];if(!_0x3b79e6[_0x2913c6(0x18f)]||!_0x5aec4b)return;const _0x27a518=document[_0x2913c6(0x1fd)](_0x5aec4b,NodeFilter[_0x2913c6(0x1d9)],null),_0x41fbcd=[];while(_0x27a518[_0x2913c6(0x1aa)]()){if(!_0x27a518[_0x2913c6(0x1a4)][_0x2913c6(0x18d)][_0x2913c6(0x1f7)](_0x2913c6(0x1c5)))_0x41fbcd['push'](_0x27a518[_0x2913c6(0x1a4)]);}_0x41fbcd['forEach'](_0x3fcf51=>{const _0x3c5ca6=_0x2913c6,[_0x17fc6e]=this['getIndexByWord'](_0x3b79e6,_0x3fcf51['nodeValue']);if(!_0x17fc6e[_0x3c5ca6(0x18f)])return;const _0x34c2b7=this['mergeIntoSlice'](0x0,_0x3fcf51[_0x3c5ca6(0x18b)][_0x3c5ca6(0x18f)],_0x17fc6e);this[_0x3c5ca6(0x1ec)](_0x3fcf51,_0x34c2b7,_0x3c5ca6(0x1fe));});}}function _0x5125(_0x20c680,_0x31e12f){const _0x52a575=_0x52a5();return _0x5125=function(_0x5125ef,_0x177d68){_0x5125ef=_0x5125ef-0x17b;let _0x3bd7af=_0x52a575[_0x5125ef];return _0x3bd7af;},_0x5125(_0x20c680,_0x31e12f);}function _0x52a5(){const _0x2666c7=['parentNode','trim','length','value','search_close\x20.5s','2825339bCSEqC','highlightKeyword','then','79983AvNeZN','hidden','querySelector','append','<','local-search-stats-wrap','</div>','entry','className','get','hitCount','add','style','replace','search:loaded','currentNode','12rrlavR','push','1945FKBFTT','search-result-stats','url','nextNode','addEventListener','addEventListenerPjax','title','forEach','<div\x20class=\x22local-search-hit-item\x22><a\x20href=\x22','772fhkAtF','word','createTextNode','preload','pjax','dispatchEvent','resize','json','endsWith','<div\x20class=\x22search-result-list\x22>','</span>','mergeIntoSlice','body','overflow','split','innerHTML','max','start','hits','remove','pjax:complete','button,\x20select,\x20textarea,\x20.mermaid','localSearch','map','<hr><div\x20class=\x22search-result-stats\x22>','3096KfOrXM','text/xml','div','appendChild','position','origin','to_show\x200.5s','local-search-results','isfetched','path','createElement','animateIn','...</p></a>','indexOf','\x22><span\x20class=\x22search-result-title\x22>','display','SHOW_TEXT','fetchData','searchParams','setProperty','2003968ZUyqKb','end','</mark>','highlight','loading-status','sort','hits_empty','shift','highlightSearchWords','width','search-mask','textContent','animateOut','insertBefore','size','highlightText','refresh','888LwCiOR','unescape','innerText','count','#local-search\x20.search-dialog','#local-search\x20.search-close-button','467UyZTXd','#search-button\x20>\x20.search','1570UsSAiy','matches','input','querySelectorAll','article-container','click','<i\x20class=\x22fas\x20fa-spinner\x20fa-pulse\x22></i>','createTreeWalker','search-keyword','substring','item','includedCount','load','#local-search-input\x20input','datas','getIndexByWord','getElementById','content','keydown','removeEventListener','1496593PTUJOm','200NqYtUy','toLowerCase','href','slice','substr','titleScale\x200.5s','nodeValue','top_n_per_article'];_0x52a5=function(){return _0x2666c7;};return _0x52a5();}window[_0x297a0d(0x1ab)](_0x297a0d(0x17c),()=>{const _0x2fca83=_0x297a0d,{path:_0x75cfb3,top_n_per_article:_0x515f94,unescape:_0x27f0d2,languages:_0x294e24}=GLOBAL_CONFIG[_0x2fca83(0x1c6)],_0x4e27da=new LocalSearch({'path':_0x75cfb3,'top_n_per_article':_0x515f94,'unescape':_0x27f0d2}),_0x2b631b=document[_0x2fca83(0x197)](_0x2fca83(0x17d)),_0x80bd67=document['getElementById'](_0x2fca83(0x19a)),_0x30ec50=document['getElementById'](_0x2fca83(0x1e1)),_0x1916ec=!_0x75cfb3[_0x2fca83(0x1b8)](_0x2fca83(0x1b7)),_0x43b04b=()=>{const _0x1c746c=_0x2fca83;if(!_0x4e27da[_0x1c746c(0x1d1)])return;let _0x3f83b4=_0x2b631b[_0x1c746c(0x190)][_0x1c746c(0x18e)]()[_0x1c746c(0x186)]();_0x1916ec&&(_0x3f83b4=_0x3f83b4[_0x1c746c(0x1a2)](/</g,_0x1c746c(0x199))[_0x1c746c(0x1a2)](/>/g,'>'));if(_0x3f83b4!=='')_0x30ec50[_0x1c746c(0x1bf)]=_0x1c746c(0x1fc);const _0x228717=_0x3f83b4[_0x1c746c(0x1be)](/[-\s]+/),_0x110d5b=document[_0x1c746c(0x180)](_0x1c746c(0x1d0));let _0x2ceb62=[];_0x3f83b4[_0x1c746c(0x18f)]>0x0&&(_0x2ceb62=_0x4e27da['getResultItems'](_0x228717));if(_0x228717[_0x1c746c(0x18f)]===0x1&&_0x228717[0x0]==='')_0x110d5b[_0x1c746c(0x1e8)]='',_0x80bd67[_0x1c746c(0x1e8)]='';else{if(_0x2ceb62[_0x1c746c(0x18f)]===0x0){_0x110d5b[_0x1c746c(0x1e8)]='';const _0x145405=document[_0x1c746c(0x1d3)]('div');_0x145405['className']=_0x1c746c(0x1a8),_0x145405[_0x1c746c(0x1e8)]=_0x294e24[_0x1c746c(0x1e3)]['replace'](/\$\{query}/,_0x3f83b4),_0x80bd67[_0x1c746c(0x1bf)]=_0x145405['outerHTML'];}else{_0x2ceb62[_0x1c746c(0x1e2)]((_0x4d0d1a,_0x48df59)=>{const _0x45abf5=_0x1c746c;if(_0x4d0d1a[_0x45abf5(0x17b)]!==_0x48df59['includedCount'])return _0x48df59[_0x45abf5(0x17b)]-_0x4d0d1a[_0x45abf5(0x17b)];else{if(_0x4d0d1a['hitCount']!==_0x48df59[_0x45abf5(0x19f)])return _0x48df59[_0x45abf5(0x19f)]-_0x4d0d1a[_0x45abf5(0x19f)];}return _0x48df59['id']-_0x4d0d1a['id'];});const _0x84b2b=_0x294e24['hits_stats'][_0x1c746c(0x1a2)](/\$\{hits}/,_0x2ceb62[_0x1c746c(0x18f)]);_0x110d5b[_0x1c746c(0x1bf)]=_0x1c746c(0x1b9)+_0x2ceb62[_0x1c746c(0x1c7)](_0x4d06d8=>_0x4d06d8[_0x1c746c(0x200)])['join']('')+_0x1c746c(0x19b),_0x80bd67[_0x1c746c(0x1bf)]=_0x1c746c(0x1c8)+_0x84b2b+_0x1c746c(0x19b),window[_0x1c746c(0x1b4)]&&window[_0x1c746c(0x1b4)][_0x1c746c(0x1ed)](_0x110d5b);}}_0x30ec50[_0x1c746c(0x1e8)]='';};let _0x3c9fa7=![];const _0x213a04=document[_0x2fca83(0x180)](_0x2fca83(0x1e7)),_0x1b62d6=document[_0x2fca83(0x197)](_0x2fca83(0x1f2)),_0x4d0edb=()=>{const _0x118778=_0x2fca83;window['innerWidth']<0x300&&_0x1b62d6[_0x118778(0x1a1)][_0x118778(0x1dc)]('--search-height',window['innerHeight']+'px');},_0x154e06=()=>{const _0x5017d8=_0x2fca83,_0x49a9d4=document['body']['style'];_0x49a9d4['width']='100%',_0x49a9d4[_0x5017d8(0x1bd)]=_0x5017d8(0x196),btf['animateIn'](_0x213a04,_0x5017d8(0x1cf)),btf[_0x5017d8(0x1d4)](_0x1b62d6,_0x5017d8(0x18a)),setTimeout(()=>{_0x2b631b['focus']();},0x12c),!_0x3c9fa7&&(!_0x4e27da[_0x5017d8(0x1d1)]&&_0x4e27da['fetchData'](),_0x2b631b[_0x5017d8(0x1ab)](_0x5017d8(0x1f8),_0x43b04b),_0x3c9fa7=!![]),document['addEventListener'](_0x5017d8(0x182),function _0x5c1c25(_0x3c7fc2){const _0x3b7b9f=_0x5017d8;_0x3c7fc2['code']==='Escape'&&(_0x4217b2(),document[_0x3b7b9f(0x183)]('keydown',_0x5c1c25));}),_0x4d0edb(),window[_0x5017d8(0x1ab)]('resize',_0x4d0edb);},_0x4217b2=()=>{const _0x4909bb=_0x2fca83,_0x5f4c4a=document[_0x4909bb(0x1bc)][_0x4909bb(0x1a1)];_0x5f4c4a[_0x4909bb(0x1e6)]='',_0x5f4c4a['overflow']='',btf[_0x4909bb(0x1e9)](_0x1b62d6,_0x4909bb(0x191)),btf[_0x4909bb(0x1e9)](_0x213a04,'to_hide\x200.5s'),window['removeEventListener'](_0x4909bb(0x1b6),_0x4d0edb);},_0xcf4501=()=>{const _0x4e4785=_0x2fca83;btf[_0x4e4785(0x1ac)](document[_0x4e4785(0x197)](_0x4e4785(0x1f5)),_0x4e4785(0x1fb),_0x154e06);},_0x5617ba=()=>{const _0x29e9f4=_0x2fca83;document[_0x29e9f4(0x197)](_0x29e9f4(0x1f3))[_0x29e9f4(0x1ab)](_0x29e9f4(0x1fb),_0x4217b2),_0x213a04[_0x29e9f4(0x1ab)]('click',_0x4217b2),GLOBAL_CONFIG[_0x29e9f4(0x1c6)][_0x29e9f4(0x1b3)]&&_0x4e27da[_0x29e9f4(0x1da)](),_0x4e27da['highlightSearchWords'](document[_0x29e9f4(0x180)]('article-container'));};window[_0x2fca83(0x1ab)]('search:loaded',()=>{const _0xa9d3db=_0x2fca83,_0x46316b=document['getElementById']('loading-database');_0x46316b['nextElementSibling'][_0xa9d3db(0x1a1)][_0xa9d3db(0x1d8)]='block',_0x46316b[_0xa9d3db(0x1c3)]();}),_0xcf4501(),_0x5617ba(),window[_0x2fca83(0x1ab)](_0x2fca83(0x1c4),()=>{const _0x406551=_0x2fca83;!btf['isHidden'](_0x213a04)&&_0x4217b2(),_0x4e27da[_0x406551(0x1e5)](document['getElementById'](_0x406551(0x1fa))),_0xcf4501();});});
|
package/js/tianli_gpt.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
function whenDOMReadyTianliGPT(){function t(t){!function(){const t=document.querySelector(".post-TianliGPT");t&&t.parentElement.removeChild(t)}();const n=document.querySelector(t);if(!n)return;const e=document.createElement("div");e.className="post-TianliGPT";const i=document.createElement("div");i.className="tianliGPT-title",e.appendChild(i);const o=document.createElement("i");o.className="tianliGPT-title-icon",i.appendChild(o),o.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="48px" height="48px" viewBox="0 0 48 48">\n <title>机器人</title>\n <g id="机器人" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <path d="M34.717885,5.03561087 C36.12744,5.27055371 37.079755,6.60373651 36.84481,8.0132786 L35.7944,14.3153359 L38.375,14.3153359 C43.138415,14.3153359 47,18.1768855 47,22.9402569 L47,34.4401516 C47,39.203523 43.138415,43.0650727 38.375,43.0650727 L9.625,43.0650727 C4.861585,43.0650727 1,39.203523 1,34.4401516 L1,22.9402569 C1,18.1768855 4.861585,14.3153359 9.625,14.3153359 L12.2056,14.3153359 L11.15519,8.0132786 C10.920245,6.60373651 11.87256,5.27055371 13.282115,5.03561087 C14.69167,4.80066802 16.024865,5.7529743 16.25981,7.16251639 L17.40981,14.0624532 C17.423955,14.1470924 17.43373,14.2315017 17.43948,14.3153359 L30.56052,14.3153359 C30.56627,14.2313867 30.576045,14.1470924 30.59019,14.0624532 L31.74019,7.16251639 C31.975135,5.7529743 33.30833,4.80066802 34.717885,5.03561087 Z M38.375,19.4902885 L9.625,19.4902885 C7.719565,19.4902885 6.175,21.0348394 6.175,22.9402569 L6.175,34.4401516 C6.175,36.3455692 7.719565,37.89012 9.625,37.89012 L38.375,37.89012 C40.280435,37.89012 41.825,36.3455692 41.825,34.4401516 L41.825,22.9402569 C41.825,21.0348394 40.280435,19.4902885 38.375,19.4902885 Z M14.8575,23.802749 C16.28649,23.802749 17.445,24.9612484 17.445,26.3902253 L17.445,28.6902043 C17.445,30.1191812 16.28649,31.2776806 14.8575,31.2776806 C13.42851,31.2776806 12.27,30.1191812 12.27,28.6902043 L12.27,26.3902253 C12.27,24.9612484 13.42851,23.802749 14.8575,23.802749 Z M33.1425,23.802749 C34.57149,23.802749 35.73,24.9612484 35.73,26.3902253 L35.73,28.6902043 C35.73,30.1191812 34.57149,31.2776806 33.1425,31.2776806 C31.71351,31.2776806 30.555,30.1191812 30.555,28.6902043 L30.555,26.3902253 C30.555,24.9612484 31.71351,23.802749 33.1425,23.802749 Z" id="形状结合" fill="#444444" fill-rule="nonzero"></path>\n </g>\n </svg>';const l=document.createElement("div");l.className="tianliGPT-title-text",l.textContent="文章摘要",i.appendChild(l);const a=document.createElement("div");a.className="tianliGPT-tag",a.id="tianliGPT-tag",a.textContent="TianliGPT",i.appendChild(a);const s=document.createElement("div");s.className="tianliGPT-explanation",s.innerHTML='生成中...<span class="blinking-cursor"></span>',e.appendChild(s),n.insertBefore(e,n.firstChild)}tianliGPT_postSelector="#post #article-container",tianliGPT_key_list=["6NnrHU4xKAPwwYxZr8WB","FbXpqokdh8qY61bdJEme","PKgVCDRcgwtP4X7bIBBB","OVWfZmDbf1jqsE0OXW4C","WF6NSQdXy7nBmc6BaiFo"],tianliGPT_randomIndex=Math.floor(Math.random()*tianliGPT_key_list.length),tianliGPT_key=tianliGPT_key_list[tianliGPT_randomIndex],tianliGPTIsRunning=!1,tianliGPT_postURL="*/posts/*",tianliGPT_typingAnimate=!1;var n={getTitleAndContent:function(){try{const t=document.title,n=document.querySelector(tianliGPT_postSelector);if(!n)return console.warn("TianliGPT:找不到文章容器。请尝试将引入的代码放入到文章容器之后。如果本身没有打算使用摘要功能可以忽略此提示。"),"";const e=n.getElementsByTagName("p"),i=n.querySelectorAll("h1, h2, h3, h4, h5");let o="";for(let t of i)o+=t.innerText+" ";for(let t of e){o+=t.innerText.replace(/https?:\/\/[^\s]+/g,"")}let l=1e3;"undefined"!=typeof tianliGPT_wordLimit&&(l=tianliGPT_wordLimit);return(t+" "+o).slice(0,l)}catch(t){return console.error("TianliGPT错误:可能由于一个或多个错误导致没有正常运行,原因出在获取文章容器中的内容失败,或者可能是在文章转换过程中失败。",t),""}},fetchTianliGPT:async function(t){if("blog.cpen.top"!==window.location.host)return"获取文章摘要失败,请访问 blog.cpen.top";if(!tianliGPT_key)return"没有获取到key,代码可能没有安装正确。如果你需要在tianli_gpt文件引用前定义tianliGPT_key变量。详细请查看文档。";if("5Q5mpqRK5DkwT1X9Gi5e"===tianliGPT_key)return"请购买 key 使用,如果你能看到此条内容,则说明代码安装正确。";var n=window.location.href;const e=document.title,i=`https://summary.tianli0.top/?content=${encodeURIComponent(t)}&key=${encodeURIComponent(tianliGPT_key)}&url=${encodeURIComponent(n)}&title=${encodeURIComponent(e)}`;try{const t=new AbortController,n=(setTimeout((()=>t.abort()),2e4),await fetch(i,{signal:t.signal}));if(n.ok){return(await n.json()).summary}throw 402===n.status&&document.querySelectorAll(".post-TianliGPT").forEach((t=>{t.style.display="none"})),new Error("TianliGPT:余额不足,请充值后请求新的文章")}catch(t){return"AbortError"===t.name?"localhost"===window.location.hostname?(console.warn("警告:请勿在本地主机上测试 API 密钥。"),"获取文章摘要超时。请勿在本地主机上测试 API 密钥。"):(console.error("请求超时"),"获取文章摘要超时。当你出现这个问题时,可能是key或者绑定的域名不正确。也可能是因为文章过长导致的 AI 运算量过大,你可以稍等一下然后刷新页面重试。"):(console.error("请求失败:",t),"获取文章摘要失败,请稍后再试。")}},aiShowAnimation:function(t){const n=document.querySelector(".tianliGPT-explanation");if(!n)return;if(tianliGPTIsRunning)return;if("undefined"!=typeof tianliGPT_typingAnimate&&!tianliGPT_typingAnimate)return void(n.innerHTML=t);tianliGPTIsRunning=!0;n.style.display="block",n.innerHTML='生成中...<span class="blinking-cursor"></span>';let e=!0,i=0,o=performance.now();const l=()=>{if(i<t.length&&e){const e=performance.now(),s=e-o,r=t.slice(i,i+1);s>=(/[,。!、?,.!?]/.test(r)?150:25)&&(n.innerText=t.slice(0,i+1),o=e,i++,i<t.length?n.innerHTML=t.slice(0,i)+'<span class="blinking-cursor"></span>':(n.innerHTML=t,n.style.display="block",tianliGPTIsRunning=!1,a.disconnect())),requestAnimationFrame(l)}},a=new IntersectionObserver((t=>{let n=t[0].isIntersecting;e=n,e&&setTimeout((()=>{requestAnimationFrame(l)}),200)}),{threshold:0});let s=document.querySelector(".post-TianliGPT");a.observe(s)}};function e(){t(tianliGPT_postSelector);const e=n.getTitleAndContent();postUrlIsContained=null,tianligptJsonData&&(postHref=window.location.href,postRegex=/\/+posts\/+([\w-]+)(\.html)?/,postMatch=postHref.match(postRegex),postFilteredValue=postMatch?postMatch[1]:null,postUrl="https://blog.cpen.top/posts/"+postFilteredValue+".html",postUrlIsContained=postsUrls.includes(postUrl)),postUrlIsContained?(postMatchedSummary=tianligptJsonData.summaries.find((t=>t.url===postUrl)),postSummary=postMatchedSummary.summary,n.aiShowAnimation(postSummary)):n.fetchTianliGPT(e).then((t=>{n.aiShowAnimation(t)}))}!function(){if("undefined"!=typeof tianliGPT_postURL)try{const t=t=>new RegExp("^"+t.split(/\*+/).map(n).join(".*")+"$"),n=t=>t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&"),i=t(tianliGPT_postURL),o=window.location.href;i.test(o)&&e()}catch(t){console.error("TianliGPT:我没有看懂你编写的自定义链接规则,所以我决定不执行摘要功能",t)}else e()}()}if(xhr=new XMLHttpRequest,xhr.open("GET","https://cdn.jsdmirror.com/npm/mycpen-blog@0.0.0-ejbnwsbmci/json/tianli_gpt.json",!1),xhr.send(),200===xhr.status)try{tianligptJsonData=JSON.parse(xhr.responseText),postsUrls=tianligptJsonData.summaries.map((t=>t.url))}catch(t){console.error("解析JSON数据出错:",t),tianligptJsonData=null}else console.error("加载文件失败:",xhr.statusText),tianligptJsonData=null;whenDOMReadyTianliGPT(),document.addEventListener("pjax:complete",whenDOMReadyTianliGPT);
|
1
|
+
const _0x556d03=_0x29b4;function _0x3dce(){const _0x1d983a=['firstChild','WF6NSQdXy7nBmc6BaiFo','&url=','href','location','map','find','.tianliGPT-explanation','open','summary','#post\x20#article-container','then','tianliGPT-title-text','statusText','tianliGPT-title','test','TianliGPT:我没有看懂你编写的自定义链接规则,所以我决定不执行摘要功能','random','fetchTianliGPT','hostname','removeChild','OVWfZmDbf1jqsE0OXW4C','url','textContent','5HwAvQC','aiShowAnimation','querySelector','host','appendChild','tianliGPT-title-icon','slice','innerHTML','请求超时','getElementsByTagName','获取文章摘要超时。当你出现这个问题时,可能是key或者绑定的域名不正确。也可能是因为文章过长导致的\x20AI\x20运算量过大,你可以稍等一下然后刷新页面重试。','\x5c$&','7YSNVen','<span\x20class=\x22blinking-cursor\x22></span>','TianliGPT:找不到文章容器。请尝试将引入的代码放入到文章容器之后。如果本身没有打算使用摘要功能可以忽略此提示。','display','parse','signal','没有获取到key,代码可能没有安装正确。如果你需要在tianli_gpt文件引用前定义tianliGPT_key变量。详细请查看文档。','disconnect','now','5143016caskSw','warn','div','json','5747409rzeWrN','/json/tianli_gpt.json','innerText','createElement','FbXpqokdh8qY61bdJEme','abort','19626mLgMpj','1585884SzUkIK','observe','post-TianliGPT','h1,\x20h2,\x20h3,\x20h4,\x20h5','20NtlzGJ','288662QbpoYs','forEach','title','获取文章摘要超时。请勿在本地主机上测试\x20API\x20密钥。','localhost','posts/','block','请求失败:','tianliGPT-tag','317840QZCasA','PKgVCDRcgwtP4X7bIBBB','GET','5Q5mpqRK5DkwT1X9Gi5e','undefined','2919584oAlBMg','responseText','style','生成中...','警告:请勿在本地主机上测试\x20API\x20密钥。','error','https://summary.tianli0.top/?content=','parentElement','*/posts/*','TianliGPT错误:可能由于一个或多个错误导致没有正常运行,原因出在获取文章容器中的内容失败,或者可能是在文章转换过程中失败。','className','getTitleAndContent','none','length','.html','<svg\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22\x20width=\x2248px\x22\x20height=\x2248px\x22\x20viewBox=\x220\x200\x2048\x2048\x22>\x0a\x20\x20\x20\x20<title>机器人</title>\x0a\x20\x20\x20\x20<g\x20id=\x22机器人\x22\x20stroke=\x22none\x22\x20stroke-width=\x221\x22\x20fill=\x22none\x22\x20fill-rule=\x22evenodd\x22>\x0a\x20\x20\x20\x20\x20\x20<path\x20d=\x22M34.717885,5.03561087\x20C36.12744,5.27055371\x2037.079755,6.60373651\x2036.84481,8.0132786\x20L35.7944,14.3153359\x20L38.375,14.3153359\x20C43.138415,14.3153359\x2047,18.1768855\x2047,22.9402569\x20L47,34.4401516\x20C47,39.203523\x2043.138415,43.0650727\x2038.375,43.0650727\x20L9.625,43.0650727\x20C4.861585,43.0650727\x201,39.203523\x201,34.4401516\x20L1,22.9402569\x20C1,18.1768855\x204.861585,14.3153359\x209.625,14.3153359\x20L12.2056,14.3153359\x20L11.15519,8.0132786\x20C10.920245,6.60373651\x2011.87256,5.27055371\x2013.282115,5.03561087\x20C14.69167,4.80066802\x2016.024865,5.7529743\x2016.25981,7.16251639\x20L17.40981,14.0624532\x20C17.423955,14.1470924\x2017.43373,14.2315017\x2017.43948,14.3153359\x20L30.56052,14.3153359\x20C30.56627,14.2313867\x2030.576045,14.1470924\x2030.59019,14.0624532\x20L31.74019,7.16251639\x20C31.975135,5.7529743\x2033.30833,4.80066802\x2034.717885,5.03561087\x20Z\x20M38.375,19.4902885\x20L9.625,19.4902885\x20C7.719565,19.4902885\x206.175,21.0348394\x206.175,22.9402569\x20L6.175,34.4401516\x20C6.175,36.3455692\x207.719565,37.89012\x209.625,37.89012\x20L38.375,37.89012\x20C40.280435,37.89012\x2041.825,36.3455692\x2041.825,34.4401516\x20L41.825,22.9402569\x20C41.825,21.0348394\x2040.280435,19.4902885\x2038.375,19.4902885\x20Z\x20M14.8575,23.802749\x20C16.28649,23.802749\x2017.445,24.9612484\x2017.445,26.3902253\x20L17.445,28.6902043\x20C17.445,30.1191812\x2016.28649,31.2776806\x2014.8575,31.2776806\x20C13.42851,31.2776806\x2012.27,30.1191812\x2012.27,28.6902043\x20L12.27,26.3902253\x20C12.27,24.9612484\x2013.42851,23.802749\x2014.8575,23.802749\x20Z\x20M33.1425,23.802749\x20C34.57149,23.802749\x2035.73,24.9612484\x2035.73,26.3902253\x20L35.73,28.6902043\x20C35.73,30.1191812\x2034.57149,31.2776806\x2033.1425,31.2776806\x20C31.71351,31.2776806\x2030.555,30.1191812\x2030.555,28.6902043\x20L30.555,26.3902253\x20C30.555,24.9612484\x2031.71351,23.802749\x2033.1425,23.802749\x20Z\x22\x20id=\x22形状结合\x22\x20fill=\x22#444444\x22\x20fill-rule=\x22nonzero\x22></path>\x0a\x20\x20\x20\x20</g>\x0a\x20\x20\x20\x20</svg>','AbortError','summaries','status','获取文章摘要失败,请稍后再试。','获取文章摘要失败,请访问\x20blog.cpen.top','isIntersecting','.post-TianliGPT','解析JSON数据出错:','floor','&key=','3xkBEtU','includes','253oifBHx','addEventListener','https://blog.cpen.top/','TianliGPT:余额不足,请充值后请求新的文章'];_0x3dce=function(){return _0x1d983a;};return _0x3dce();}function _0x29b4(_0x31ea44,_0x54f531){const _0x3dce24=_0x3dce();return _0x29b4=function(_0x29b48d,_0x1dc54f){_0x29b48d=_0x29b48d-0x96;let _0x46e6a4=_0x3dce24[_0x29b48d];return _0x46e6a4;},_0x29b4(_0x31ea44,_0x54f531);}(function(_0x2a143a,_0x1819b4){const _0x1649df=_0x29b4,_0x103e7d=_0x2a143a();while(!![]){try{const _0x448cef=-parseInt(_0x1649df(0xba))/0x1*(-parseInt(_0x1649df(0xdf))/0x2)+parseInt(_0x1649df(0x9c))/0x3*(-parseInt(_0x1649df(0xed))/0x4)+-parseInt(_0x1649df(0xde))/0x5*(parseInt(_0x1649df(0xd9))/0x6)+-parseInt(_0x1649df(0xc6))/0x7*(-parseInt(_0x1649df(0xcf))/0x8)+parseInt(_0x1649df(0xd3))/0x9+parseInt(_0x1649df(0xe8))/0xa*(-parseInt(_0x1649df(0x9e))/0xb)+parseInt(_0x1649df(0xda))/0xc;if(_0x448cef===_0x1819b4)break;else _0x103e7d['push'](_0x103e7d['shift']());}catch(_0x38e51c){_0x103e7d['push'](_0x103e7d['shift']());}}}(_0x3dce,0xa171e));function whenDOMReadyTianliGPT(){const _0x49f17a=_0x29b4;tianliGPT_postSelector=_0x49f17a(0xac),tianliGPT_key_list=['6NnrHU4xKAPwwYxZr8WB',_0x49f17a(0xd7),_0x49f17a(0xe9),_0x49f17a(0xb7),_0x49f17a(0xa3)],tianliGPT_randomIndex=Math[_0x49f17a(0x9a)](Math[_0x49f17a(0xb3)]()*tianliGPT_key_list[_0x49f17a(0xfa)]),tianliGPT_key=tianliGPT_key_list[tianliGPT_randomIndex],tianliGPTIsRunning=![],tianliGPT_postURL=_0x49f17a(0xf5),tianliGPT_typingAnimate=![];function _0x5dafa9(_0x53f3ee){const _0x25a78d=_0x49f17a;_0x3f664c();const _0x224cb0=document[_0x25a78d(0xbc)](_0x53f3ee);if(!_0x224cb0)return;const _0x5572d4=document[_0x25a78d(0xd6)](_0x25a78d(0xd1));_0x5572d4[_0x25a78d(0xf7)]=_0x25a78d(0xdc);const _0x1e2bd0=document[_0x25a78d(0xd6)](_0x25a78d(0xd1));_0x1e2bd0[_0x25a78d(0xf7)]=_0x25a78d(0xb0),_0x5572d4[_0x25a78d(0xbe)](_0x1e2bd0);const _0x29ce2e=document[_0x25a78d(0xd6)]('i');_0x29ce2e[_0x25a78d(0xf7)]=_0x25a78d(0xbf),_0x1e2bd0[_0x25a78d(0xbe)](_0x29ce2e),_0x29ce2e[_0x25a78d(0xc1)]=_0x25a78d(0xfc);const _0x10dd65=document['createElement']('div');_0x10dd65['className']=_0x25a78d(0xae),_0x10dd65[_0x25a78d(0xb9)]='文章摘要',_0x1e2bd0['appendChild'](_0x10dd65);const _0x3afd3a=document[_0x25a78d(0xd6)](_0x25a78d(0xd1));_0x3afd3a[_0x25a78d(0xf7)]='tianliGPT-tag',_0x3afd3a['id']=_0x25a78d(0xe7),_0x3afd3a[_0x25a78d(0xb9)]='TianliGPT',_0x1e2bd0[_0x25a78d(0xbe)](_0x3afd3a);const _0x2bb744=document[_0x25a78d(0xd6)](_0x25a78d(0xd1));_0x2bb744[_0x25a78d(0xf7)]='tianliGPT-explanation',_0x2bb744[_0x25a78d(0xc1)]=_0x25a78d(0xf0)+_0x25a78d(0xc7),_0x5572d4[_0x25a78d(0xbe)](_0x2bb744),_0x224cb0['insertBefore'](_0x5572d4,_0x224cb0[_0x25a78d(0xa2)]);}function _0x3f664c(){const _0x13c2cb=_0x49f17a,_0x7d8969=document[_0x13c2cb(0xbc)]('.post-TianliGPT');_0x7d8969&&_0x7d8969[_0x13c2cb(0xf4)][_0x13c2cb(0xb6)](_0x7d8969);}var _0x203143={'getTitleAndContent':function(){const _0x514ae3=_0x49f17a;try{const _0x13a3ad=document[_0x514ae3(0xe1)],_0x24c05a=document[_0x514ae3(0xbc)](tianliGPT_postSelector);if(!_0x24c05a)return console[_0x514ae3(0xd0)](_0x514ae3(0xc8)),'';const _0x281277=_0x24c05a[_0x514ae3(0xc3)]('p'),_0x10b111=_0x24c05a['querySelectorAll'](_0x514ae3(0xdd));let _0x39dbc1='';for(let _0x54de5a of _0x10b111){_0x39dbc1+=_0x54de5a[_0x514ae3(0xd5)]+'\x20';}for(let _0x358a13 of _0x281277){const _0x419357=_0x358a13['innerText']['replace'](/https?:\/\/[^\s]+/g,'');_0x39dbc1+=_0x419357;}const _0x459fdf=_0x13a3ad+'\x20'+_0x39dbc1;let _0x45bbde=0x3e8;typeof tianliGPT_wordLimit!==_0x514ae3(0xec)&&(_0x45bbde=tianliGPT_wordLimit);const _0x4aa96f=_0x459fdf['slice'](0x0,_0x45bbde);return _0x4aa96f;}catch(_0x3d08a2){return console[_0x514ae3(0xf2)](_0x514ae3(0xf6),_0x3d08a2),'';}},'fetchTianliGPT':async function(_0x1ace82){const _0x13e9de=_0x49f17a;if(window[_0x13e9de(0xa6)][_0x13e9de(0xbd)]!=='blog.cpen.top')return _0x13e9de(0x96);if(!tianliGPT_key)return _0x13e9de(0xcc);if(tianliGPT_key===_0x13e9de(0xeb))return'请购买\x20key\x20使用,如果你能看到此条内容,则说明代码安装正确。';var _0x1d6163=window['location'][_0x13e9de(0xa5)];const _0x585517=document[_0x13e9de(0xe1)],_0x26ab18=_0x13e9de(0xf3)+encodeURIComponent(_0x1ace82)+_0x13e9de(0x9b)+encodeURIComponent(tianliGPT_key)+_0x13e9de(0xa4)+encodeURIComponent(_0x1d6163)+'&title='+encodeURIComponent(_0x585517),_0x39df4f=0x4e20;try{const _0x1232b8=new AbortController(),_0x36c3e7=setTimeout(()=>_0x1232b8[_0x13e9de(0xd8)](),_0x39df4f),_0x439eb9=await fetch(_0x26ab18,{'signal':_0x1232b8[_0x13e9de(0xcb)]});if(_0x439eb9['ok']){const _0x49661c=await _0x439eb9[_0x13e9de(0xd2)]();return _0x49661c[_0x13e9de(0xab)];}else{_0x439eb9[_0x13e9de(0xff)]===0x192&&document['querySelectorAll'](_0x13e9de(0x98))[_0x13e9de(0xe0)](_0x5e139e=>{const _0x3e2f6c=_0x13e9de;_0x5e139e[_0x3e2f6c(0xef)][_0x3e2f6c(0xc9)]=_0x3e2f6c(0xf9);});throw new Error(_0x13e9de(0xa1));}}catch(_0x448f09){return _0x448f09['name']===_0x13e9de(0xfd)?window['location'][_0x13e9de(0xb5)]===_0x13e9de(0xe3)?(console['warn'](_0x13e9de(0xf1)),_0x13e9de(0xe2)):(console['error'](_0x13e9de(0xc2)),_0x13e9de(0xc4)):(console[_0x13e9de(0xf2)](_0x13e9de(0xe6),_0x448f09),_0x13e9de(0x100));}},'aiShowAnimation':function(_0xc707fd){const _0x4f159d=_0x49f17a,_0x300882=document[_0x4f159d(0xbc)](_0x4f159d(0xa9));if(!_0x300882)return;if(tianliGPTIsRunning)return;if(typeof tianliGPT_typingAnimate!==_0x4f159d(0xec)&&!tianliGPT_typingAnimate){_0x300882[_0x4f159d(0xc1)]=_0xc707fd;return;}tianliGPTIsRunning=!![];const _0x2cc9f0=0x19,_0x2a19c4=0x3e8,_0x528084=0x6;_0x300882['style'][_0x4f159d(0xc9)]=_0x4f159d(0xe5),_0x300882[_0x4f159d(0xc1)]=_0x4f159d(0xf0)+_0x4f159d(0xc7);let _0x8a4611=!![],_0x54acd4=0x0,_0x6c37d9=!![],_0x53ff6c=performance[_0x4f159d(0xce)]();const _0x13a117=()=>{const _0x2e803c=_0x4f159d;if(_0x54acd4<_0xc707fd[_0x2e803c(0xfa)]&&_0x8a4611){const _0x38b4a4=performance[_0x2e803c(0xce)](),_0x31eb02=_0x38b4a4-_0x53ff6c,_0xfde104=_0xc707fd[_0x2e803c(0xc0)](_0x54acd4,_0x54acd4+0x1),_0x40f304=/[,。!、?,.!?]/[_0x2e803c(0xb1)](_0xfde104),_0x561125=_0x40f304?_0x2cc9f0*_0x528084:_0x2cc9f0;_0x31eb02>=_0x561125&&(_0x300882[_0x2e803c(0xd5)]=_0xc707fd[_0x2e803c(0xc0)](0x0,_0x54acd4+0x1),_0x53ff6c=_0x38b4a4,_0x54acd4++,_0x54acd4<_0xc707fd['length']?_0x300882[_0x2e803c(0xc1)]=_0xc707fd['slice'](0x0,_0x54acd4)+_0x2e803c(0xc7):(_0x300882[_0x2e803c(0xc1)]=_0xc707fd,_0x300882['style'][_0x2e803c(0xc9)]=_0x2e803c(0xe5),tianliGPTIsRunning=![],_0xdec5f4[_0x2e803c(0xcd)]())),requestAnimationFrame(_0x13a117);}},_0xdec5f4=new IntersectionObserver(_0x1b32be=>{const _0x4098a3=_0x4f159d;let _0x3b58f1=_0x1b32be[0x0][_0x4098a3(0x97)];_0x8a4611=_0x3b58f1,_0x8a4611&&_0x6c37d9&&setTimeout(()=>{requestAnimationFrame(_0x13a117);},0xc8);},{'threshold':0x0});let _0x135ae7=document['querySelector'](_0x4f159d(0x98));_0xdec5f4[_0x4f159d(0xdb)](_0x135ae7);}};function _0x57abba(){const _0x284aa8=_0x49f17a;_0x5dafa9(tianliGPT_postSelector);const _0x1702da=_0x203143[_0x284aa8(0xf8)]();if(_0x1702da){}postUrlIsContained=null,tianligptJsonData&&(postHref=window[_0x284aa8(0xa6)]['href'],postRegex=/\/+posts\/+([\w-]+)(\.html)?/,postMatch=postHref['match'](postRegex),postFilteredValue=postMatch?postMatch[0x1]:null,postUrl=_0x284aa8(0xa0)+_0x284aa8(0xe4)+postFilteredValue+_0x284aa8(0xfb),postUrlIsContained=postsUrls[_0x284aa8(0x9d)](postUrl)),postUrlIsContained?(postMatchedSummary=tianligptJsonData['summaries'][_0x284aa8(0xa8)](_0x4e3a17=>_0x4e3a17[_0x284aa8(0xb8)]===postUrl),postSummary=postMatchedSummary['summary'],_0x203143[_0x284aa8(0xbb)](postSummary)):_0x203143[_0x284aa8(0xb4)](_0x1702da)[_0x284aa8(0xad)](_0x29c687=>{const _0x2c0f48=_0x284aa8;_0x203143[_0x2c0f48(0xbb)](_0x29c687);});}function _0x10f1c5(){const _0x52365c=_0x49f17a;if(typeof tianliGPT_postURL===_0x52365c(0xec)){_0x57abba();return;}try{const _0x58433e=_0x30614a=>{return new RegExp('^'+_0x30614a['split'](/\*+/)['map'](_0x3c9996)['join']('.*')+'$');},_0x3c9996=_0x522012=>{const _0x28ff32=_0x52365c;return _0x522012['replace'](/[|\\{}()[\]^$+*?.]/g,_0x28ff32(0xc5));},_0x64681f=_0x58433e(tianliGPT_postURL),_0x50723d=window['location']['href'];if(_0x64681f[_0x52365c(0xb1)](_0x50723d))_0x57abba();else{}}catch(_0x4c12be){console[_0x52365c(0xf2)](_0x52365c(0xb2),_0x4c12be);}}_0x10f1c5();}xhr=new XMLHttpRequest(),xhr[_0x556d03(0xaa)](_0x556d03(0xea),_0x556d03(0xd4),![]),xhr['send']();if(xhr['status']===0xc8)try{tianligptJsonData=JSON[_0x556d03(0xca)](xhr[_0x556d03(0xee)]),postsUrls=tianligptJsonData[_0x556d03(0xfe)][_0x556d03(0xa7)](_0x147392=>_0x147392[_0x556d03(0xb8)]);}catch(_0x517903){console['error'](_0x556d03(0x99),_0x517903),tianligptJsonData=null;}else console[_0x556d03(0xf2)]('加载文件失败:',xhr[_0x556d03(0xaf)]),tianligptJsonData=null;whenDOMReadyTianliGPT(),document[_0x556d03(0x9f)]('pjax:complete',whenDOMReadyTianliGPT);
|