PageSourceSearch

https://www.treew.com/en/scripts-PGZ5NP4M.js

js treew.com collected 2026-09-29 15:58:32 UTC 8,624 bytes, 2 lines download raw bytes

1/*! modernizr 3.6.0 (Custom Build) | MIT *
2 * https://modernizr.com/download/?-audio-cookies-cors-cssanimations-eventlistener-flexbox-hashchange-history-json-queryselector-svg-video-setclasses !*/(function(u,l,y){function r(e,t){return typeof e===t}function s(){var e,t,n,o,a,p,c;for(var g in b)if(b.hasOwnProperty(g)){if(e=[],t=b[g],t.name&&(e.push(t.name.toLowerCase()),t.options&&t.options.aliases&&t.options.aliases.length))for(n=0;n<t.options.aliases.length;n++)e.push(t.options.aliases[n].toLowerCase());for(o=r(t.fn,"function")?t.fn():t.fn,a=0;a<e.length;a++)p=e[a],c=p.split("."),c.length===1?i[c[0]]=o:(!i[c[0]]||i[c[0]]instanceof Boolean||(i[c[0]]=new Boolean(i[c[0]])),i[c[0]][c[1]]=o),k.push((o?"":"no-")+c.join("-"))}}function w(e){var t=T.className,n=i._config.classPrefix||"";if(C&&(t=t.baseVal),i._config.enableJSClass){var o=new RegExp("(^|\\s)"+n+"no-js(\\s|$)");t=t.replace(o,"$1"+n+"js$2")}i._config.enableClasses&&(t+=" "+n+e.join(" "+n),C?T.className.baseVal=t:T.className=t)}function f(){return typeof l.createElement!="function"?l.createElement(arguments[0]):C?l.createElementNS.call(l,"http://www.w3.org/2000/svg",arguments[0]):l.createElement.apply(l,arguments)}function x(e,t){return!!~(""+e).indexOf(t)}function M(e){return e.replace(/([a-z])-([a-z])/g,function(t,n,o){return n+o.toUpperCase()}).replace(/^-/,"")}function j(e,t){return function(){return e.apply(t,arguments)}}function R(e,t,n){var o;for(var a in e)if(e[a]in t)return n===!1?e[a]:(o=t[e[a]],r(o,"function")?j(o,n||t):o);return!1}function L(e){return e.replace(/([A-Z])/g,function(t,n){return"-"+n.toLowerCase()}).replace(/^ms-/,"-ms-")}function B(e,t,n){var o;if("getComputedStyle"in u){o=getComputedStyle.call(u,e,t);var a=u.console;if(o!==null)n&&(o=o.getPropertyValue(n));else if(a){var p=a.error?"error":"log";a[p].call(a,"getComputedStyle returning null, its possible modernizr test results are inaccurate")}}else o=!t&&e.currentStyle&&e.currentStyle[n];return o}function J(){var e=l.body;return e||(e=f(C?"svg":"body"),e.fake=!0),e}function H(e,t,n,o){var a,p,c,g,S="modernizr",d=f("div"),m=J();if(parseInt(n,10))for(;n--;)c=f("div"),c.id=o?o[n]:S+(n+1),d.appendChild(c);return a=f("style"),a.type="text/css",a.id="s"+S,(m.fake?m:d).appendChild(a),m.appendChild(d),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(l.createTextNode(e)),d.id=S,m.fake&&(m.style.background="",m.style.overflow="hidden",g=T.style.overflow,T.style.overflow="hidden",T.appendChild(m)),p=t(d,e),m.fake?(m.parentNode.removeChild(m),T.style.overflow=g,T.offsetHeight):d.parentNode.removeChild(d),!!p}function V(e,t){var n=e.length;if("CSS"in u&&"supports"in u.CSS){for(;n--;)if(u.CSS.supports(L(e[n]),t))return!0;return!1}if("CSSSupportsRule"in u){for(var o=[];n--;)o.push("("+L(e[n])+":"+t+")");return o=o.join(" or "),H("@supports ("+o+") { #modernizr { position: absolute; } }",function(a){return B(a,null,"position")=="absolute"})}return y}function U(e,t,n,o){function a(){c&&(delete h.style,delete h.modElem)}if(o=r(o,"undefined")?!1:o,!r(n,"undefined")){var p=V(e,n);if(!r(p,"undefined"))return p}for(var c,g,S,d,m,z=["modernizr","tspan","samp"];!h.style&&z.length;)c=!0,h.modElem=f(z.shift()),h.style=h.modElem.style;for(S=e.length,g=0;S>g;g++)if(d=e[g],m=h.style[d],x(d,"-")&&(d=M(d)),h.style[d]!==y){if(o||r(n,"undefined"))return a(),t=="pfx"?d:!0;try{h.style[d]=n}catch{}if(h.style[d]!=m)return a(),t=="pfx"?d:!0}return a(),!1}function _(e,t,n,o,a){var p=e.charAt(0).toUpperCase()+e.slice(1),c=(e+" "+$.join(p+" ")+p).split(" ");return r(t,"string")||r(t,"undefined")?U(c,t,o,a):(c=(e+" "+A.join(p+" ")+p).split(" "),R(c,t,n))}function E(e,t,n){return _(e,y,y,t,n)}var k=[],b=[],v={_version:"3.6.0",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(e,t){var n=this;setTimeout(function(){t(n[e])},0)},addTest:function(e,t,n){b.push({name:e,fn:t,options:n})},addAsyncTest:function(e){b.push({name:null,fn:e})}},i=function(){};i.prototype=v,i=new i,i.addTest("cookies",function(){try{l.cookie="cookietest=1";var e=l.cookie.indexOf("cookietest=")!=-1;return l.cookie="cookietest=1; expires=Thu, 01-Jan-1970 00:00:01 GMT",e}catch{return!1}}),i.addTest("cors","XMLHttpRequest"in u&&"withCredentials"in new XMLHttpRequest),i.addTest("eventlistener","addEventListener"in u),i.addTest("history",function(){var e=navigator.userAgent;return e.indexOf("Android 2.")===-1&&e.indexOf("Android 4.0")===-1||e.indexOf("Mobile Safari")===-1||e.indexOf("Chrome")!==-1||e.indexOf("Windows Phone")!==-1||location.protocol==="file:"?u.history&&"pushState"in u.history:!1}),i.addTest("json","JSON"in u&&"parse"in JSON&&"stringify"in JSON),i.addTest("queryselector","querySelector"in l&&"querySelectorAll"in l),i.addTest("svg",!!l.createElementNS&&!!l.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect);var T=l.documentElement,C=T.nodeName.toLowerCase()==="svg";i.addTest("audio",function(){var e=f("audio"),t=!1;try{t=!!e.canPlayType,t&&(t=new Boolean(t),t.ogg=e.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),t.mp3=e.canPlayType('audio/mpeg; codecs="mp3"').replace(/^no$/,""),t.opus=e.canPlayType('audio/ogg; codecs="opus"')||e.canPlayType('audio/webm; codecs="opus"').replace(/^no$/,""),t.wav=e.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),t.m4a=(e.canPlayType("audio/x-m4a;")||e.canPlayType("audio/aac;")).replace(/^no$/,""))}catch{}return t}),i.addTest("video",function(){var e=f("video"),t=!1;try{t=!!e.canPlayType,t&&(t=new Boolean(t),t.ogg=e.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),t.h264=e.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),t.webm=e.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,""),t.vp9=e.canPlayType('video/webm; codecs="vp9"').replace(/^no$/,""),t.hls=e.canPlayType('application/x-mpegURL; codecs="avc1.42E01E"').replace(/^no$/,""))}catch{}return t});var q=function(){function e(n,o){var a;return n?(o&&typeof o!="string"||(o=f(o||"div")),n="on"+n,a=n in o,!a&&t&&(o.setAttribute||(o=f("div")),o.setAttribute(n,""),a=typeof o[n]=="function",o[n]!==y&&(o[n]=y),o.removeAttribute(n)),a):!1}var t=!("onblur"in l.documentElement);return e}();v.hasEvent=q,i.addTest("hashchange",function(){return q("hashchange",u)===!1?!1:l.documentMode===y||l.documentMode>7});
2var N="Moz O ms Webkit",$=v._config.usePrefixes?N.split(" "):[];v._cssomPrefixes=$;var A=v._config.usePrefixes?N.toLowerCase().split(" "):[];v._domPrefixes=A;var O={elem:f("modernizr")};i._q.push(function(){delete O.elem});var h={style:O.elem.style};i._q.unshift(function(){delete h.style}),v.testAllProps=_,v.testAllProps=E,i.addTest("cssanimations",E("animationName","a",!0)),i.addTest("flexbox",E("flexBasis","1px",!0)),s(),w(k),delete v.addTest,delete v.addAsyncTest;for(var P=0;P<i._q.length;P++)i._q[P]();u.Modernizr=i})(window,document),function(){function u(r,s){s.dataset._tmout&&(clearTimeout(s.dataset._tmout),delete s.dataset._tmout),r.classList.remove("collapsed"),r.setAttribute("aria-expanded",!0),s.style.height=0,s.classList.add("collapsing"),s.classList.remove("collapse"),s.dataset._tmout=setTimeout(function(){delete s.dataset._tmout,s.style.height="",s.classList.add("show"),s.classList.add("collapse"),s.classList.remove("collapsing"),r.parentElement.parentElement.classList.add("opened")},400),s.style.height=`${s.scrollHeight}px`}function l(r,s){s.dataset._tmout&&(clearTimeout(s.dataset._tmout),delete s.dataset._tmout),r.classList.add("collapsed"),r.setAttribute("aria-expanded",!1),s.style.height=`${s.getBoundingClientRect().height}px`;const w=s.offsetHeight?"":" ";s.classList.remove("collapse"),s.classList.add("collapsing"),s.classList.remove("show"),r.parentElement.parentElement.classList.remove("opened"),s.dataset._tmout=setTimeout(function(){delete s.dataset._tmout,s.style.height="",s.classList.add("collapse"),s.classList.remove("collapsing")},400),s.style.height=w}function y(r){var s=r.dataset.target?document.querySelector(r.dataset.target):null;if(s){var w=s.dataset.parent?document.querySelector(s.dataset.parent):null;w&&w.querySelectorAll('[data-toggle="collapse"][aria-expanded="true"]').forEach(f=>{var x=f.dataset.target?document.querySelector(f.dataset.target):null;x&&x.matches(".show")&&l(f,x)}),s.matches(".collapsing")||(s.matches(".show")?l(r,s):u(r,s))}}document.addEventListener("readystatechange",()=>{document.readyState==="complete"&&document.querySelector("body").addEventListener("click",function(r){r.target.matches("[data-toggle=collapse]")?y(r.target):event.target.parentElement&&event.target.parentElement.matches("[data-toggle=collapse]")&&y(r.target.parentElement)})})}();

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.