1function Debouncer(e){this.callback=e,this.ticking=!1}window.requestAnimationFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame,Matery.utils={normalizePagePath:function(e){let t=e||window.location.pathname;const n=window.WIKI_CONFIG||{},o=n.langs||[n.default_lang||"zh-cn"],i=t.split("/").filter(Boolean);return i.length&&o.indexOf(i[0])>=0&&i.shift(),"/"+i.join("/")},setCookie:function(e,t,n){const o=new Date;o.setTime(o.getTime()+864e5*n),document.cookie=`${e}=${t};expires=${o.toUTCString()};path=/`},getCookie:function(e){return document.cookie.split(";").map(e=>e.trim()).find(t=>t.startsWith(`${e}=`))?.split("=")[1]||null},setLS:function(e,t){try{localStorage.setItem(e,JSON.stringify(t))}catch(e){console.error("localStorage åå
¥å¤±è´¥:",e)}},removeLS:function(e){try{localStorage.removeItem(e)}catch(e){console.error("localStorage å é¤å¤±è´¥:",e)}},getBgActive:function(e){var t=localStorage.getItem("matery.bg");return null===t?e:t},getLS:function(e){try{const t=localStorage.getItem(e);return t?JSON.parse(t):null}catch(e){return console.error("localStorage 读å失败:",e),null}},listenScroll:function(e){var t=new Debouncer(e,100);return window.addEventListener("scroll",t,!1),t.handleEvent(),function(){window.removeEventListener("scroll",t)}},unlistenScroll:function(e){"function"==typeof e?e():e&&window.removeEventListener("scroll",e)},listenDOMLoaded(e){"loading"!==document.readyState?e():document.addEventListener("DOMContentLoaded",function(){e()})},scrollToElement:function(e,t){var n="string"==typeof e?document.querySelector(e):e;n&&window.scrollTo({top:n.getBoundingClientRect().top+window.pageYOffset+(t||0),behavior:"smooth"})},throttle:function(e,t){var n=arguments.length<=1||void 0===arguments[1]?100:t,o=null;return function(){for(var t=this,i=arguments.length,r=Array(i),a=0;a<i;a++)r[a]=arguments[a];null===o&&(o=setTimeout(function(){e.apply(t,r),o=null},n))}},elementVisible:function(e,t){t=t&&t>=0?t:0;var n=e.getBoundingClientRect();const o=(window.innerHeight||document.documentElement.clientHeight)*(1+t),i=(window.innerWidth||document.documentElement.clientWidth)*(1+t);return n.top<o||n.bottom>0||n.left<i||n.right>0},waitElementVisible:function(e,t,n){var o="undefined"!=typeof window,i=o&&!("onscroll"in window)||"undefined"!=typeof navigator&&/(gle|ing|ro|msn)bot|crawl|spider|yand|duckgo/i.test(navigator.userAgent);if(o)if(i)Matery.utils.listenDOMLoaded(function(){t()});else{n=Number(n)||0,n=Math.max(n,0);var r=Matery.utils.throttle(t,200),a=new Map;"string"==typeof e?this.waitElementLoaded(e,function(e){c(e)}):c(e)}function c(e){Matery.utils.listenDOMLoaded(function(){if(e.classList.contains("loaded"))r();else if(Matery.utils.elementVisible(e,n))r();else if("IntersectionObserver"in window){var t=function(e){if(!a.has(e)){var t=new IntersectionObserver(function(e){e.forEach(function(e){e.isIntersecting&&(t.unobserve(e.target),r())})},{threshold:.001,rootMargin:"0px 0px "+e+" 0px"});a.set(e,t)}return a.get(e)}(Math.round((window.innerHeight||document.documentElement.clientHeight)*n)+"px");t.observe(e)}else var o=Matery.utils.listenScroll(function(){Matery.utils.elementVisible(e,n)&&(Matery.utils.unlistenScroll(o),r())})})}},waitElementLoaded:function(e,t){var n="undefined"!=typeof window,o=n&&!("onscroll"in window)||"undefined"!=typeof navigator&&/(gle|ing|ro|msn)bot|crawl|spider|yand|duckgo/i.test(navigator.userAgent);n&&!o&&("MutationObserver"in window?new MutationObserver(function(n,o){var i=document.querySelector(e);i&&(t(i),o.disconnect())}).observe(document,{childList:!0,subtree:!0}):Matery.utils.listenDOMLoaded(function(){var n=function(){var o=document.querySelector(e);o?t(o):setTimeout(n,100)};n()}))},createScript:function(e,t){var n=document.createElement("script");n.setAttribute("src",e),n.setAttribute("type","text/javascript"),n.setAttribute("charset","UTF-8"),n.async=!1,"function"==typeof t&&(window.attachEvent?n.onreadystatechange=function(){var e=n.readyState;"loaded"!==e&&"complete"!==e||(n.onreadystatechange=null,t())}:n.onload=t);var o=document.getElementsByTagName("script"),i=o.length>0?o[o.length-1]:document.head||document.documentElement;i.parentNode.insertBefore(n,i.nextSibling)},createAsyncScript:function(e,t,n){var o=document.createElement("script");o.setAttribute("src",e),o.setAttribute("type","text/javascript"),o.setAttribute("charset","UTF-8"),o.async=t,"function"==typeof n&&(window.attachEvent?o.onreadystatechange=function(){var e=o.readyState;"loaded"!==e&&"complete"!==e||(o.onreadystatechange=null,n())}:o.onload=n);var i=document.getElementsByTagName("script"),r=i.length>0?i[i.length-1]:document.head||document.documentElement;r.parentNode.insertBefore(o,r.nextSibling)},createCssLink:function(e){var t=document.createElement("link");t.setAttribute("rel","stylesheet"),t.setAttribute("type","text/css"),t.setAttribute("href",e);var n=document.getElementsByTagName("link")[0]||document.getElementsByTagName("head")[0]||document.head||document.documentElement;n.parentNode.insertBefore(t,n)},loadComments:function(e,t){var n=document.querySelector("#comments[lazyload]");if(n){Matery.utils.waitElementVisible(e,function(){t(),n.removeAttribute("lazyload")},CONFIG.lazyload.offset_factor)}else t()},hideLoading:function(e){var t=document.getElementById(e||"loading_data");t&&t.style.setProperty("display","none","important")}
1,getBackgroundLightness(e){var t=e;"string"==typeof e&&(t=document.querySelector(e));var n=t.ownerDocument.defaultView;n||(n=window);var o=n.getComputedStyle(t).backgroundColor.replace(/rgba*\(/,"").replace(")","").split(/,\s*/);if(o.length<3)return 0;var i=.213*o[0]+.715*o[1]+.072*o[2];return 0===i||i>127.5?1:-1},retry(e,t,n){if(!(n<=0)){var o=function(){--n>=0&&!e()&&setTimeout(o,t)};setTimeout(o,t)}},whenReady(e,t){if(e())t();else{var n=0,o=function(){n++>=100||(e()?t():setTimeout(o,100))};setTimeout(o,100)}}},Debouncer.prototype={constructor:Debouncer,update:function(){this.callback&&this.callback(),this.ticking=!1},requestTick:function(){this.ticking||(requestAnimationFrame(this.rafCallback||(this.rafCallback=this.update.bind(this))),this.ticking=!0)},handleEvent:function(){this.requestTick()}};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.