HEX
Server: nginx/1.28.3
System: Linux VM-0-7-opencloudos 6.6.117-45.oc9.x86_64 #1 SMP Thu Dec 4 10:26:39 CST 2025 x86_64
User: www (1000)
PHP: 8.2.28
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: /www/wwwroot/www.213n.cn/wp-content/themes/rk-blogger/js/base.js
(()=>{"use strict";const e=/mobile/i.test(navigator.userAgent),t=(/android/i.test(navigator.userAgent),/iPhone|iPad|iPod/i.test(navigator.userAgent),/MicroMessenger/i.test(navigator.userAgent),(...e)=>{let t=e;3===t.length&&(t=[[document.documentElement],...t]),"String"===t[0].constructor.name?t[0]=[...document.querySelectorAll(t[0])]:t[0].forEach?t[0]=[...t[0]]:t[0]=[t[0]],"String"!==t[2].constructor.name&&(t[2].forEach?t[2]=[...t[2]]:t[2]=[t[2]]);const[r,n,o,a]=t,i=n.split(" "),c=e=>{let t;"String"===o.constructor.name?t=e.target.closest(o):[t]=o.filter((t=>t===e.target||t.contains(e.target))),t&&(e.relatedElements=r,a.call(t,e,t))};return r.forEach((e=>{i.forEach((t=>{e.addEventListener(t,c,!0)}))})),c}),r={style:(e,t)=>window.getComputedStyle(e)[t],isVisible:e=>!!e&&!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length),getQueryString(e){const t=new RegExp("(^|&)"+e+"=([^&]*)(&|$)","i"),r=window.location.href.split("?");let n=r&&r[1]?r[1].match(t):null;return null!==n?decodeURIComponent(n[2]):null},inViewport(e,t){let r,n,o,a,i;return r=e.getBoundingClientRect(),a=t||1,n=window.innerWidth,o=window.innerHeight*a,i=r.bottom>=0&&r.right>=0&&r.top<=o&&r.left<=n,i},Browser:{isMobile:/mobile/i.test(navigator.userAgent),isAndriod:/android/i.test(navigator.userAgent),isiOS:/iPhone|iPad|iPod/i.test(navigator.userAgent),isWeiXin:/MicroMessenger/i.test(navigator.userAgent)},getLocalStorage(e,t=!1){const r=localStorage.getItem(e);if(!r)return!1;try{return t?JSON.parse(r):JSON.parse(r).data}catch(t){localStorage.removeItem(e)}},setLocalStorage(e,t){console.log("setLocalStorage",e,t);const r={ver:(new Date).getTime(),data:t},n=JSON.stringify(r);localStorage.setItem(e,n)},updateLocalStorageChecker(e=0,t=3600){const r=(new Date).getTime(),n=(r-e)/1e3;return console.log("diff",n,n>t),(r-e)/1e3>t},getSessionStorage(e,t=!1){const r=sessionStorage.getItem(e);if(!r)return!1;try{return t?JSON.parse(r):JSON.parse(r).data}catch(t){console.log("getSessionStorage: ",t),sessionStorage.removeItem(e)}},setSessionStorage(e,t){const r={ver:(new Date).getTime(),data:t},n=JSON.stringify(r);sessionStorage.setItem(e,n)},copy(e,t,r){let n=e||document.querySelector("#WBCOPY");t&&(n.value=t),n.select(),document.execCommand("Copy"),r&&r()},showMask(e){!document.querySelector(".wb-mask")&&document.querySelector("body").insertAdjacentHTML("beforeend",'<div class="wb-mask"></div>');const t=document.querySelector(".wb-mask"),r=setTimeout((function(){t.classList.add("mask-active"),clearTimeout(r)}),10);e&&e(t)},hideMask(e){const t=document.querySelector(".wb-mask");if(!t)return!1;t.classList.remove("mask-active");const r=setTimeout((function(){t.remove(),clearTimeout(r)}),300);e&&e()},next(e,t){let r=e.nextElementSibling;for(;r;){if(r.matches(t))return[r];r=r.nextElementSibling}return[]},closest(e,t){let r=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;for(;e&&!r.call(e,t);)e=e.parentElement;return e},getCookie(e){const t=new RegExp("(^| )"+e+"=([^;]*)(;|$)"),r=document.cookie.match(t);return r?decodeURI(r[2]):null},setCookie(e,t,r=365){const n=new Date;n.setTime(n.getTime()+24*r*60*60*1e3),document.cookie=e+"="+encodeURI(t)+";expires="+n.toGMTString()+";path=/"},setCampaign:(e,t)=>e?(e+=e.match("[?]")?"&":"?",e+="utm_source="+t,e+="&utm_media=link",e+="&utm_campaign=recommend"):""},{setLocalStorage:n,getLocalStorage:o,setSessionStorage:a,getSessionStorage:i,inViewport:c,closest:s,getQueryString:l,getCookie:u,setCookie:d,next:f}=r,m=()=>{if((()=>{const e=navigator.userAgent,t=e.indexOf("compatible")>-1&&e.indexOf("MSIE")>-1,r=e.indexOf("Edge")>-1&&!t,n=e.indexOf("Trident")>-1&&e.indexOf("rv:11.0")>-1;if(t){new RegExp("MSIE (\\d+\\.\\d+)").test(e);const t=parseFloat(RegExp.$1);return 7==t?7:8==t?8:9==t?9:10==t?10:6}return r?"edge":n?11:-1})()<0||localStorage.getItem("WB_IE_ALERT"))return!1;document.querySelector("body").insertAdjacentHTML("beforeend",'<div id="WBBSV" style="position: fixed;top:0;left:0;right:0;bottom:0;background-color: rgba(0,0,0,.8);text-align: center;z-index: 1000;">\n  <div style="width: 320px; padding: 20px; font-size: 14px;margin:auto; margin-top: 300px;background-color: #fff;">\n    <p class="mgb">为获得更好的浏览体验,建议使用其他现代浏览器,例如<a class="link" href="https://www.inpandora.com/google-chrome.html?ref=wbpd_ie" target="_blank" rel="nofollow">谷歌浏览器(Google Chrome)</a></p>\n  </div>\n  </div>'),document.querySelector("#WBBSV").addEventListener("click",(()=>{document.querySelector("#WBBSV").style.display="none",localStorage.setItem("WB_IE_ALERT","TRUE")}))};var h={st:0,rst:0,init:function(){var t=this;null!=window.wb_base&&(e=>{const{theme_url:t,theme_name:r,assets_ver:n}=e,o=n,a=t+"/images/wb_svg.html?v="+o,i=r?"wbInlineSVGdata_"+r:"wbInlineSVGdata",c=r?"wbInlineSVGrev_"+r:"wbInlineSVGrev";if(!document.createElementNS||!document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect)return!0;const s="localStorage"in window&&null!==window.localStorage;let l,u;const d=()=>{document.body.insertAdjacentHTML("afterbegin",u)},f=()=>{document.body?d():document.addEventListener("DOMContentLoaded",d)};if(s&&localStorage.getItem(c)===o&&(u=localStorage.getItem(i),u))return f(),!0;try{l=new XMLHttpRequest,l.open("GET",a,!0),l.onload=()=>{l.status>=200&&l.status<400&&(u='<div style="display:none;position:absolute;z-index:-1;">'+l.responseText+"</div>",f(),s&&(localStorage.setItem(i,u),localStorage.setItem(c,o)))},l.send()}catch(e){console.log("load svg icon: ",e)}})(window.wb_base),t.footerPWB(),m(),document.querySelector("#J_backTop")&&t.backTop(document.querySelector("#J_backTop")),document.querySelector("#searchform")&&t.search(document.querySelector("#searchform")),document.querySelector("#searchform-b")&&t.search(document.querySelector("#searchform-b")),document.querySelector("#J_topNav")&&t.navTop();var r,n=window.innerWidth;if(window.addEventListener("resize",(function(){clearTimeout(t.rst),t.rst=setTimeout((function(){r=window.innerWidth,n<768&&r>n&&window.location.reload(),t.navTop(),n=r,clearTimeout(t.rst)}),1e3)})),e){var o=document.querySelector("body");t.mobile.mobileNav(),window.addEventListener("scroll",(function(){clearTimeout(t.sct),o.classList.add("wb-scrolling"),t.sct=setTimeout((function(){o.classList.remove("wb-scrolling")}),30)}))}document.addEventListener("touchstart",(function(){}),!1)},mobile:{mobileNav:function(){var e=0,n=document.querySelector("#J_btnNavMb"),o=document.querySelector("#J_topNavMb"),a=document.querySelector("body");n&&t("click",".j-btn-nav-m",(function(){e=document.body.scrollTop,a.classList.add("display-nav-m"),r.showMask((function(t){t.addEventListener("click",(function(){r.hideMask(),a.classList.remove("display-nav-m"),window.scrollTo(0,e)}))}))})),t("click","#J_closeNav",(function(){r.hideMask(),a.classList.remove("display-nav-m"),window.scrollTo(0,e)})),o&&t(o,"click",".nav-arrow",(function(e,t){t.classList.toggle("active-submenu")}))},mainMenuActive:function(){document.querySelector("body").toggleClass("display-nav-m")}},backTop:function(e){e&&e.addEventListener("click",(function(){window.scrollTo(0,0)}))},search:function(e){var t=e||document.querySelector("#searchform"),r=t.querySelector(".btn-search"),n=t.querySelector(".form-control");n.addEventListener("focus",(function(){t.classList.add("active")})),n.addEventListener("blur",(function(){""===n.value&&t.classList.remove("active")})),r.addEventListener("click",(function(){""!==n.value?t.submit():(n.focus(),n.setAttribute("placeholder","请输入关键词"))}))},footerPWB:function(){var e=document.querySelector(".footer .pwb");if(e){var t=e.getAttribute("data-theme-code");e.innerHTML='Design by <a href="https://www.wbolt.com?ref='+t+'" target="_blank">闪电博</a>',e.removeAttribute("data-theme-code")}},navTop:function(e,t){var n=e||document.querySelector("#J_topNav");if(!n)return!1;var o=n.children,a=o.length,i=t,c="",s=!1;if(!t){var l=[].filter.call(o,(function(e,t){return r.isVisible(e)&&!e.classList.contains("more-items")}));i=l.length}if(a<=i)return!1;[].forEach.call(o,(function(e,t){if(t>=i&&!e.classList.contains("more-items")){var r=e.querySelectorAll(".lv-0"),n=e.querySelectorAll(".lv-1");r&&[].forEach.call(r,(function(e){e.classList.remove("lv-0"),e.classList.add("lv-1")})),n&&[].forEach.call(n,(function(e){e.remove()})),c+=e.outerHTML,e.remove()}})),n.querySelector("#J_moreItemsWp")||s||(s=!0,n.classList.add("has-more-items"),n.insertAdjacentHTML("beforeend",'<li class="more-items"><a><em></em><em></em><em></em></a><div class="sub-menu lv-0" id="J_moreItemsWp"><ul></ul></div></li>')),n.querySelector("#J_moreItemsWp ul").insertAdjacentHTML("beforeend",c)},updateContHeight:function(){var e=document.querySelector(".main"),t=e.offsetHeight(),r=document.querySelector(".sidebar").offsetHeight();t<r&&(e.style.minHeigh=r+"px")}};function v(e,t,r,n,o,a,i){try{var c=e[a](i),s=c.value}catch(e){return void r(e)}c.done?t(s):Promise.resolve(s).then(n,o)}function p(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var a=e.apply(t,r);function i(e){v(a,n,o,i,c,"next",e)}function c(e){v(a,n,o,i,c,"throw",e)}i(void 0)}))}}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,c=[],s=!0,l=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(c.push(n.value),c.length!==t);s=!0);}catch(e){l=!0,o=e}finally{try{if(!s&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(l)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return g(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?g(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}const b={ajaxurl:window.wb_base&&window.wb_base.ajax_url?window.wb_base.ajax_url:"/wp-admin/admin-ajax.php",baseUrl:{dev:window.wb_base&&window.wb_base.ajax_url?window.wb_base.ajax_url:"/wp-admin/admin-ajax.php",process:window.wb_base&&window.wb_base.ajax_url?window.wb_base.ajax_url:"/wp-admin/admin-ajax.php"},i18n:{searchPlaceHolder:"请输入关键词"}};function S(){S=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function l(e,t,r,o){var a=t&&t.prototype instanceof f?t:f,i=Object.create(a.prototype),c=new k(o||[]);return n(i,"_invoke",{value:x(e,r,c)}),i}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d={};function f(){}function m(){}function h(){}var v={};s(v,a,(function(){return this}));var p=Object.getPrototypeOf,g=p&&p(p(O([])));g&&g!==t&&r.call(g,a)&&(v=g);var y=h.prototype=f.prototype=Object.create(v);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function L(e,t){function o(n,a,i,c){var s=u(e[n],e,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==w(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){o("next",e,i,c)}),(function(e){o("throw",e,i,c)})):t.resolve(d).then((function(e){l.value=e,i(l)}),(function(e){return o("throw",e,i,c)}))}c(s.arg)}var a;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){o(e,r,t,n)}))}return a=a?a.then(n,n):n()}})}function x(e,t,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return q()}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=_(i,r);if(c){if(c===d)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=u(e,t,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===d)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function _(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var o=u(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var a=o.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function O(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:q}}function q(){return{value:void 0,done:!0}}return m.prototype=h,n(y,"constructor",{value:h,configurable:!0}),n(h,"constructor",{value:m,configurable:!0}),m.displayName=s(h,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(L.prototype),s(L.prototype,i,(function(){return this})),e.AsyncIterator=L,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new L(l(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},b(y),s(y,c,"Generator"),s(y,a,(function(){return this})),s(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=O,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(T),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return i.type="throw",i.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,d):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),T(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;T(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:O(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}var L={stringify:function(e){if("object"!=w(e))return"";var t=[];return Object.entries(e).forEach((function(e){var r=y(e,2),n=r[0],o=r[1];t.push("".concat(n,"=").concat(o))})),t.join("&")},getData:function(e){return p(S().mark((function t(){var r,n;return S().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r={method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:L.stringify(e)},t.prev=1,t.next=4,fetch(b.ajaxurl,r);case 4:return n=t.sent,t.abrupt("return",n.json());case 8:t.prev=8,t.t0=t.catch(1),Promise.reject(t.t0);case 11:case"end":return t.stop()}}),t,null,[[1,8]])})))()},getList:function(e){return p(S().mark((function t(){var r,n;return S().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r={method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:L.stringify(e)},t.prev=1,t.next=4,fetch(b.ajaxurl,r);case 4:return n=t.sent,t.abrupt("return",n.text());case 8:t.prev=8,t.t0=t.catch(1),Promise.reject(t.t0);case 11:case"end":return t.stop()}}),t,null,[[1,8]])})))()},saveData:function(e){return p(S().mark((function t(){var r,n;return S().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r={method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:L.stringify(e)},t.prev=1,t.next=4,fetch(b.ajaxurl,r);case 4:return n=t.sent,t.abrupt("return",n.json());case 8:t.prev=8,t.t0=t.catch(1),Promise.reject(t.t0);case 11:case"end":return t.stop()}}),t,null,[[1,8]])})))()},getListData:function(e){return p(S().mark((function t(){var r;return S().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,fetch(e);case 3:return r=t.sent,t.abrupt("return",r.text());case 7:t.prev=7,t.t0=t.catch(0),Promise.reject(t.t0);case 10:case"end":return t.stop()}}),t,null,[[0,7]])})))()}},x=(L.getData,L.getList,L.getListData),_={sct:0,st:0,autoLoadOpt:{curLoaded:0,loading:!1,loadedAll:!1},init:function(){var t=this;h.init();var r=document.querySelector(".tabs");r&&this.tabs(r);var n=document.querySelector("#J_switchListModeBtns");n&&this.listModeSwitch(n);var o=document.querySelector("#J_postList"),a=o&&t.next(o,".wb-navigation")[0],i=null!=window.wb_auto_load_max&&window.wb_auto_load_max>0,c=new IntersectionObserver((function(e){e[0].intersectionRatio<=0||(t.autoLoadOpt.loadedAll&&c.unobserve(a),!t.autoLoadOpt.loading&&!t.autoLoadOpt.loadedAll&&t.listAutoLoad(o))}));i&&o&&a&&c.observe(a),e&&o&&t.mbLoadMore(o)},listModeSwitch:function(e){var r=this,n=document.querySelector("#J_postList");n&&e&&t(e,"click",".ctrl-item",(function(t,o){var a=o.dataset.mode;e.querySelector(".current").classList.remove("current"),o.classList.add("current"),n.classList.remove("list-mode-a","list-mode-b"),n.classList.add("list-mode-"+a),r.setCookie("WB_LIST_MODE",a)}))},tabs:function(e){var r=e.querySelector(".tab-nav"),n=e.querySelector(".tab-conts");t(r,"mouseover",".nav-item",(function(e,t){var o=1*t.dataset.index,a=r.querySelector(".current"),i=n.querySelector(".tab-cont.current");a&&a.classList.remove("current"),i&&i.classList.remove("current"),n.querySelectorAll(".tab-cont")[o].classList.add("current"),t.classList.add("current")}))},listAutoLoad:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{navigation:".wb-navigation",loading:".loading-bar"},r=this,n=t.navigation,o=t.loading,a=window.wb_auto_load_max?window.wb_auto_load_max:3,i=r.next(e,n)[0],c=i&&i.querySelector(".next"),s=r.next(e,o)[0];if(!(r.autoLoadOpt.curLoaded>=a)){if(!c)return s.style.display="none",i.style.display="block",void(r.autoLoadOpt.loadedAll=!0);var l=c.getAttribute("href");if(l&&!r.autoLoadOpt.loading){var u=e.getAttribute("id")?"#"+e.getAttribute("id"):"."+e.getAttribute("class");r.autoLoadOpt.loading=!0,s.style.display="block",i.style.display="none",x(l).then((function(o){var a=(new DOMParser).parseFromString(o,"text/html");e.insertAdjacentHTML("beforeend",a.querySelector(u).innerHTML),i.innerHTML=a.querySelector(n).outerHTML,r.autoLoadOpt.curLoaded++,s.style.display="none",i.style.display="block",r.autoLoadOpt.loading=!1,t.cb&&t.cb()}))}}},mbLoadMore:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{navigation:".wb-navigation",loading:".loading-bar",morebtn:".btn-load-more"},r=this,n=e.getAttribute("id")?"#"+e.getAttribute("id"):"."+e.getAttribute("class"),o=t.navigation,a=t.loading,i=t.morebtn,c=r.next(e,o)[0],s=r.next(e,a)[0],l=r.next(e,i)[0];c&&(c.style.display="none"),l&&l.addEventListener("click",(function(){var t=c&&c.querySelector(".next");if(!r.autoLoadOpt.loading&&t){var a=t.getAttribute("href");s&&(s.style.display="block"),r.autoLoadOpt.loading=!0,x(a).then((function(t){var a=(new DOMParser).parseFromString(t,"text/html");e.insertAdjacentHTML("beforeend",a.querySelector(n).innerHTML),c.innerHTML=a.querySelector(o).outerHTML,r.autoLoadOpt.curLoaded++,c.querySelector(".next")?l.style.display="block":(l.style.display="none",s.style.display="none",e.insertAdjacentHTML("afterend",'<div class="loaded-all-tips">---这是底线---</div>')),s.style.display="none",r.autoLoadOpt.loading=!1}))}}))},next:function(e,t){for(var r=e.nextElementSibling;r;){if(r.matches(t))return[r];r=r.nextElementSibling}return[]},setCookie:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:365,n=new Date;n.setTime(n.getTime()+24*r*60*60*1e3),document.cookie=e+"="+encodeURI(t)+";expires="+n.toGMTString()+";path=/"}};document.addEventListener("DOMContentLoaded",(function(){_.init()}))})();