资料提交
142
document/Online Judge 是如何解决判题端安全性问题的? - 知乎.htm
Normal file
BIN
document/Online Judge 是如何解决判题端安全性问题的? - 知乎_files/2b4336ec5_l.jpg
Normal file
After Width: | Height: | Size: 44 KiB |
After Width: | Height: | Size: 46 KiB |
BIN
document/Online Judge 是如何解决判题端安全性问题的? - 知乎_files/a10724048_l.jpg
Normal file
After Width: | Height: | Size: 4.2 KiB |
After Width: | Height: | Size: 4.2 KiB |
BIN
document/Online Judge 是如何解决判题端安全性问题的? - 知乎_files/a277ac6ae_l.jpg
Normal file
After Width: | Height: | Size: 5.9 KiB |
After Width: | Height: | Size: 5.9 KiB |
BIN
document/Online Judge 是如何解决判题端安全性问题的? - 知乎_files/aadd7b895_l.jpg
Normal file
After Width: | Height: | Size: 15 KiB |
After Width: | Height: | Size: 11 KiB |
@ -0,0 +1 @@
|
||||
___baidu_union_callback("auto","83a2a5e3294b78efb0e4221c78b7538b",[],"","")
|
1
document/Online Judge 是如何解决判题端安全性问题的? - 知乎_files/cm.js
Normal file
87
document/Online Judge 是如何解决判题端安全性问题的? - 知乎_files/hm.js
Normal file
@ -0,0 +1,87 @@
|
||||
(function(){var h={},mt={},c={id:"98beee57fd2ef70ccdd5ca52b9740c49",dm:["zhihu.com"],js:"tongji.baidu.com/hm-web/js/",etrk:[],cetrk:[],cptrk:[],icon:'',ctrk:[],nv:-1,vdur:1800000,age:31536000000,rec:0,rp:[],trust:0,vcard:0,qiao:0,lxb:0,kbtrk:0,pt:0,spa:0,oc:0,aet:'',hca:'A16F2DDF19D3D6B9',conv:0,med:0,cvcc:'',cvcf:[],apps:''};var q=void 0,u=!0,w=null,x=!1;mt.cookie={};mt.cookie.set=function(a,b,g){var d;g.Q&&(d=new Date,d.setTime(d.getTime()+g.Q));document.cookie=a+"="+b+(g.domain?"; domain="+g.domain:"")+(g.path?"; path="+g.path:"")+(d?"; expires="+d.toGMTString():"")+(g.Jc?"; secure":"")};mt.cookie.get=function(a){return(a=RegExp("(^| )"+a+"=([^;]*)(;|$)").exec(document.cookie))?a[2]:w};
|
||||
mt.cookie.hc=function(a,b){try{var g="Hm_ck_"+ +new Date;mt.cookie.set(g,"is-cookie-enabled",{domain:a,path:b,Q:q});var d="is-cookie-enabled"===mt.cookie.get(g)?"1":"0";mt.cookie.set(g,"",{domain:a,path:b,Q:-1});return d}catch(e){return"0"}};mt.lang={};mt.lang.d=function(a,b){return"[object "+b+"]"==={}.toString.call(a)};mt.lang.Za=function(a){return mt.lang.d(a,"Number")&&isFinite(a)};mt.lang.H=function(a){return mt.lang.d(a,"String")};mt.lang.isArray=function(a){return mt.lang.d(a,"Array")};
|
||||
mt.lang.h=function(a){return a.replace?a.replace(/'/g,"'0").replace(/\*/g,"'1").replace(/!/g,"'2"):a};mt.lang.trim=function(a){return a.replace(/^\s+|\s+$/g,"")};mt.lang.G=function(a,b){var g=x;if(a==w||!mt.lang.d(a,"Array")||b===q)return g;if(Array.prototype.indexOf)g=-1!==a.indexOf(b);else for(var d=0;d<a.length;d++)if(a[d]===b){g=u;break}return g};mt.url={};mt.url.m=function(a,b){var g=a.match(RegExp("(^|&|\\?|#)("+b+")=([^&#]*)(&|$|#)",""));return g?g[3]:w};
|
||||
mt.url.Ec=function(a){return(a=a.match(/^(https?:)\/\//))?a[1]:w};mt.url.Mb=function(a){return(a=a.match(/^(https?:\/\/)?([^\/\?#]*)/))?a[2].replace(/.*@/,""):w};mt.url.L=function(a){return(a=mt.url.Mb(a))?a.replace(/:\d+$/,""):a};mt.url.wa=function(a){return(a=a.match(/^(https?:\/\/)?[^\/]*(.*)/))?a[2].replace(/[\?#].*/,"").replace(/^$/,"/"):w};
|
||||
(function(){var a=mt.lang,b=mt.url;mt.f={};mt.f.Ua=function(a){return document.getElementById(a)};mt.f.ua=function(a){if(!a)return w;try{a=String(a);if(0===a.indexOf("!HMCQ!"))return a;if(0===a.indexOf("!HMCC!"))return document.querySelector(a.substring(6,a.length));for(var d=a.split(">"),e=document.body,b=d.length-1;0<=b;b--)if(-1<d[b].indexOf("#")){var f=d[b].split("#")[1];(e=document.getElementById(f))||(e=document.getElementById(decodeURIComponent(f)));d=d.splice(b+1,d.length-(b+1));break}for(a=
|
||||
0;e&&a<d.length;){var l=String(d[a]).toLowerCase();if(!("html"===l||"body"===l)){var b=0,n=d[a].match(/\[(\d+)\]/i),f=[];if(n)b=n[1]-1,l=l.split("[")[0];else if(1!==e.childNodes.length){for(var p=0,s=0,t=e.childNodes.length;s<t;s++){var v=e.childNodes[s];1===v.nodeType&&v.nodeName.toLowerCase()===l&&p++;if(1<p)return w}if(1!==p)return w}for(p=0;p<e.childNodes.length;p++)1===e.childNodes[p].nodeType&&e.childNodes[p].nodeName.toLowerCase()===l&&f.push(e.childNodes[p]);if(!f[b])return w;e=f[b]}a++}return e}catch(k){return w}};
|
||||
mt.f.wa=function(a,d){var e=[],b=[];if(!a)return b;for(;a.parentNode!=w;){for(var f=0,l=0,n=a.parentNode.childNodes.length,p=0;p<n;p++){var s=a.parentNode.childNodes[p];if(s.nodeName===a.nodeName&&(f++,s===a&&(l=f),0<l&&1<f))break}if((n=""!==a.id)&&d){e.unshift("#"+encodeURIComponent(a.id));break}else n&&(n="#"+encodeURIComponent(a.id),n=0<e.length?n+">"+e.join(">"):n,b.push(n)),e.unshift(encodeURIComponent(String(a.nodeName).toLowerCase())+(1<f?"["+l+"]":""));a=a.parentNode}b.push(e.join(">"));return b};
|
||||
mt.f.xa=function(a){return(a=mt.f.wa(a,u))&&a.length?String(a[0]):""};mt.f.Qb=function(a){return mt.f.wa(a,x)};mt.f.Fb=function(a){var d;for(d="A";(a=a.parentNode)&&1==a.nodeType;)if(a.tagName==d)return a;return w};mt.f.Ib=function(a){return 9===a.nodeType?a:a.ownerDocument||a.document};mt.f.Ob=function(a){var d={top:0,left:0};if(!a)return d;var e=mt.f.Ib(a).documentElement;"undefined"!==typeof a.getBoundingClientRect&&(d=a.getBoundingClientRect());return{top:d.top+(window.pageYOffset||e.scrollTop)-
|
||||
(e.clientTop||0),left:d.left+(window.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}};mt.f.getAttribute=function(a,d){var e=a.getAttribute&&a.getAttribute(d)||w;if(!e&&a.attributes&&a.attributes.length)for(var b=a.attributes,f=b.length,l=0;l<f;l++)b[l].nodeName===d&&(e=b[l].nodeValue);return e};mt.f.T=function(a){var d="document";a.tagName!==q&&(d=a.tagName);return d.toLowerCase()};mt.f.Tb=function(b){var d="";b.textContent?d=a.trim(b.textContent):b.innerText&&(d=a.trim(b.innerText));d&&(d=d.replace(/\s+/g,
|
||||
" ").substring(0,255));return d};mt.f.S=function(g,d){var e;a.H(g)&&0===String(g).indexOf("!HMCQ!")?(e=String(g),e=b.m(document.location.href,e.substring(6,e.length))):a.H(g)||(e=mt.f.T(g),"input"===e&&d&&("button"===g.type||"submit"===g.type)?e=a.trim(g.value)||"":"input"===e&&!d&&"password"!==g.type?e=a.trim(g.value)||"":"img"===e?(e=mt.f.getAttribute,e=e(g,"alt")||e(g,"title")||e(g,"src")):e="body"===e||"html"===e?["(hm-default-content-for-",e,")"].join(""):mt.f.Tb(g));return String(e||"").substring(0,
|
||||
255)};(function(){(mt.f.gb=function(){function a(){if(!a.fa){a.fa=u;for(var d=0,b=r.length;d<b;d++)r[d]()}}function d(){try{document.documentElement.doScroll("left")}catch(b){setTimeout(d,1);return}a()}var b=x,r=[],f;document.addEventListener?f=function(){document.removeEventListener("DOMContentLoaded",f,x);a()}:document.attachEvent&&(f=function(){"complete"===document.readyState&&(document.detachEvent("onreadystatechange",f),a())});(function(){if(!b)if(b=u,"complete"===document.readyState)a.fa=u;
|
||||
else if(document.addEventListener)document.addEventListener("DOMContentLoaded",f,x),window.addEventListener("load",a,x);else if(document.attachEvent){document.attachEvent("onreadystatechange",f);window.attachEvent("onload",a);var l=x;try{l=window.frameElement==w}catch(n){}document.documentElement.doScroll&&l&&d()}})();return function(d){a.fa?d():r.push(d)}}()).fa=x})();return mt.f})();mt.event={};
|
||||
mt.event.e=function(a,b,g){a.attachEvent?a.attachEvent("on"+b,function(d){g.call(a,d)}):a.addEventListener&&a.addEventListener(b,g,x)};mt.event.preventDefault=function(a){a.preventDefault?a.preventDefault():a.returnValue=x};
|
||||
(function(){var a=mt.event;mt.g={};mt.g.Ca=/msie (\d+\.\d+)/i.test(navigator.userAgent);mt.g.Nb=function(){if(document.documentMode)return document.documentMode;var a=/msie (\d+\.\d+)/i.exec(navigator.userAgent);return a?+a[1]||0:0};mt.g.Gc=function(){try{return!!navigator.userAgent.match(/safari/i)&&!navigator.userAgent.match(/chrome/i)&&"undefined"!==typeof document.body.style.webkitFilter&&!window.chrome}catch(a){return x}};mt.g.cookieEnabled=navigator.cookieEnabled;mt.g.javaEnabled=navigator.javaEnabled();
|
||||
mt.g.language=navigator.language||navigator.browserLanguage||navigator.systemLanguage||navigator.userLanguage||"";mt.g.kc=(window.screen.width||0)+"x"+(window.screen.height||0);mt.g.colorDepth=window.screen.colorDepth||0;mt.g.U=function(){var a;a=a||document;return parseInt(window.pageYOffset||a.documentElement.scrollTop||a.body&&a.body.scrollTop||0,10)};mt.g.M=function(){var a=document;return parseInt(window.innerHeight||a.documentElement.clientHeight||a.body&&a.body.clientHeight||0,10)};mt.g.ob=
|
||||
0;mt.g.Vb=function(){var a=document;return parseInt(window.innerWidth||a.documentElement.clientWidth||a.body.offsetWidth||0,10)};mt.g.orientation=0;(function(){function b(){var a=0;window.orientation!==q&&(a=window.orientation);screen&&(screen.orientation&&screen.orientation.angle!==q)&&(a=screen.orientation.angle);mt.g.orientation=a;mt.g.ob=mt.g.Vb()}b();a.e(window,"orientationchange",b)})();return mt.g})();mt.s={};mt.s.parse=function(a){return(new Function("return ("+a+")"))()};
|
||||
mt.s.stringify=function(){function a(a){/["\\\x00-\x1f]/.test(a)&&(a=a.replace(/["\\\x00-\x1f]/g,function(a){var d=g[a];if(d)return d;d=a.charCodeAt();return"\\u00"+Math.floor(d/16).toString(16)+(d%16).toString(16)}));return'"'+a+'"'}function b(a){return 10>a?"0"+a:a}var g={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return function(d){switch(typeof d){case "undefined":return"undefined";case "number":return isFinite(d)?String(d):"null";case "string":return a(d);case "boolean":return String(d);
|
||||
default:if(d===w)return"null";if(d instanceof Array){var e=["["],g=d.length,f,l,n;for(l=0;l<g;l++)switch(n=d[l],typeof n){case "undefined":case "function":case "unknown":break;default:f&&e.push(","),e.push(mt.s.stringify(n)),f=1}e.push("]");return e.join("")}if(d instanceof Date)return'"'+d.getFullYear()+"-"+b(d.getMonth()+1)+"-"+b(d.getDate())+"T"+b(d.getHours())+":"+b(d.getMinutes())+":"+b(d.getSeconds())+'"';f=["{"];l=mt.s.stringify;for(g in d)if(Object.prototype.hasOwnProperty.call(d,g))switch(n=
|
||||
d[g],typeof n){case "undefined":case "unknown":case "function":break;default:e&&f.push(","),e=1,f.push(l(g)+":"+l(n))}f.push("}");return f.join("")}}}();mt.localStorage={};mt.localStorage.ma=function(){if(!mt.localStorage.l)try{mt.localStorage.l=document.createElement("input"),mt.localStorage.l.type="hidden",mt.localStorage.l.style.display="none",mt.localStorage.l.addBehavior("#default#userData"),document.getElementsByTagName("head")[0].appendChild(mt.localStorage.l)}catch(a){return x}return u};
|
||||
mt.localStorage.set=function(a,b,g){var d=new Date;d.setTime(d.getTime()+g||31536E6);try{window.localStorage?(b=d.getTime()+"|"+b,window.localStorage.setItem(a,b)):mt.localStorage.ma()&&(mt.localStorage.l.expires=d.toUTCString(),mt.localStorage.l.load(document.location.hostname),mt.localStorage.l.setAttribute(a,b),mt.localStorage.l.save(document.location.hostname))}catch(e){}};
|
||||
mt.localStorage.get=function(a){if(window.localStorage){if(a=window.localStorage.getItem(a)){var b=a.indexOf("|"),g=a.substring(0,b)-0;if(g&&g>(new Date).getTime())return a.substring(b+1)}}else if(mt.localStorage.ma())try{return mt.localStorage.l.load(document.location.hostname),mt.localStorage.l.getAttribute(a)}catch(d){}return w};
|
||||
mt.localStorage.remove=function(a){if(window.localStorage)window.localStorage.removeItem(a);else if(mt.localStorage.ma())try{mt.localStorage.l.load(document.location.hostname),mt.localStorage.l.removeAttribute(a),mt.localStorage.l.save(document.location.hostname)}catch(b){}};mt.sessionStorage={};mt.sessionStorage.set=function(a,b){try{window.sessionStorage&&window.sessionStorage.setItem(a,b)}catch(g){}};
|
||||
mt.sessionStorage.get=function(a){try{return window.sessionStorage?window.sessionStorage.getItem(a):w}catch(b){return w}};mt.sessionStorage.remove=function(a){try{window.sessionStorage&&window.sessionStorage.removeItem(a)}catch(b){}};mt.lb={};mt.lb.log=function(a,b){var g=new Image,d="mini_tangram_log_"+Math.floor(2147483648*Math.random()).toString(36);window[d]=g;g.onload=function(){g.onload=w;g=window[d]=w;b&&b(a)};g.src=a};mt.Ka={};
|
||||
mt.Ka.Ub=function(){var a="";if(navigator.plugins&&navigator.mimeTypes.length){var b=navigator.plugins["Shockwave Flash"];b&&b.description&&(a=b.description.replace(/^.*\s+(\S+)\s+\S+$/,"$1"))}else if(window.ActiveXObject)try{if(b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash"))(a=b.GetVariable("$version"))&&(a=a.replace(/^.*\s+(\d+),(\d+).*$/,"$1.$2"))}catch(g){}return a};
|
||||
mt.Ka.Dc=function(a,b,g,d,e){return'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" id="'+a+'" width="'+g+'" height="'+d+'"><param name="movie" value="'+b+'" /><param name="flashvars" value="'+(e||"")+'" /><param name="allowscriptaccess" value="always" /><embed type="application/x-shockwave-flash" name="'+a+'" width="'+g+'" height="'+d+'" src="'+b+'" flashvars="'+(e||"")+'" allowscriptaccess="always" /></object>'};
|
||||
h.D={Fc:"http://tongji.baidu.com/hm-web/welcome/ico",fb:"hm.baidu.com/hm.gif",vb:/^(tongji|hmcdn).baidu.com$/,nb:"tongji.baidu.com",Zb:"hmmd",$b:"hmpl",xc:"utm_medium",Yb:"hmkw",zc:"utm_term",Wb:"hmci",wc:"utm_content",ac:"hmsr",yc:"utm_source",Xb:"hmcu",vc:"utm_campaign",N:0,J:Math.round(+new Date/1E3),protocol:"https:"===document.location.protocol?"https:":"http:",Ea:"https:",Hc:0,Bc:6E5,Ic:6E5,lc:5E3,Cc:5,pa:1024,Ac:1,Ga:2147483647,mb:"hca kb cc cf ci ck cl cm cp cu cw ds vl ep et fl ja ln lo lt rnd si su v cv lv api sn r ww p ct u tt".split(" "),
|
||||
V:u,Ra:["a","input","button"],Oa:{id:"data-hm-id",aa:"data-hm-class",$:"data-hm-xpath",content:"data-hm-content",ia:"data-hm-tag",link:"data-hm-link"},Qa:"data-hm-enabled",Pa:"data-hm-disabled",ic:"https://hmcdn.baidu.com/static/tongji/plugins/",eb:["UrlChangeTracker","OcpcCbHm"]};(function(){var a={F:{},e:function(a,g){this.F[a]=this.F[a]||[];this.F[a].push(g)},K:function(a,g){this.F[a]=this.F[a]||[];for(var d=this.F[a].length,e=0;e<d;e++)this.F[a][e](g)}};return h.z=a})();
|
||||
(function(){var a=mt.lang,b=/^https?:\/\//,g={Hb:function(a){var e;try{e=JSON.parse(decodeURIComponent(a[0]))}catch(b){}return e},$a:function(a,e){var g=h.c&&h.c.b&&h.c.b.u||document.location.href;b.test(a)||(g=g.replace(b,""));a=a.replace(/\/$/,"");g=g.replace(/\/$/,"");e&&(g=g.replace(/^(https?:\/\/)?www\./,"$1"));return RegExp("^"+a.replace(/[?.+^${}()|[\]\\]/g,"\\$&").replace(/\*/g,".*")+"$").test(g)},ca:function(d,e){var b=g.Hb(d);if(!a.d(b,"Undefined")){if(a.d(b,"Array")){for(var f=0;f<b.length;f++)if(g.$a(b[f],
|
||||
e))return u;return x}if(a.d(b,"Object")){var f=[],l;for(l in b)b.hasOwnProperty(l)&&g.$a(l,e)&&(f=f.concat(b[l]));return f}}}};return h.ra=g})();
|
||||
(function(){function a(a,d){var e=document.createElement("script");e.charset="utf-8";b.d(d,"Function")&&(e.readyState?e.onreadystatechange=function(){if("loaded"===e.readyState||"complete"===e.readyState)e.onreadystatechange=w,d()}:e.onload=function(){d()});e.src=a;var r=document.getElementsByTagName("script")[0];r.parentNode.insertBefore(e,r)}var b=mt.lang;return h.load=a})();
|
||||
(function(){var a=mt.cookie,b=mt.localStorage,g=mt.sessionStorage,d={getData:function(d){try{return a.get(d)||g.get(d)||b.get(d)}catch(r){}},setData:function(e,r,f){try{a.set(e,r,{domain:d.R(),path:d.da(),Q:f}),f?b.set(e,r,f):g.set(e,r)}catch(l){}},removeData:function(e){try{a.set(e,"",{domain:d.R(),path:d.da(),Q:-1}),g.remove(e),b.remove(e)}catch(r){}},W:function(a,d){a="."+a.replace(/:\d+/,"");d="."+d.replace(/:\d+/,"");var b=a.indexOf(d);return-1<b&&b+d.length===a.length},ga:function(a,d){a=a.replace(/^https?:\/\//,
|
||||
"");return 0===a.indexOf(d)},R:function(){for(var a=document.location.hostname,b=0,f=c.dm.length;b<f;b++)if(d.W(a,c.dm[b]))return c.dm[b].replace(/(:\d+)?[/?#].*/,"");return a},da:function(){for(var a=0,b=c.dm.length;a<b;a++){var f=c.dm[a];if(-1<f.indexOf("/")&&d.ga(document.location.href,f))return f.replace(/^[^/]+(\/.*)/,"$1")+"/"}return"/"}};return h.qa=d})();
|
||||
(function(){var a=mt.lang,b=mt.s,g=h.qa,d={pageview:{},session:{},autoEventTracking:{},customEvent:{},user:{}},e={user:1,session:2,pageview:3,autoEventTracking:3,customEvent:3,others:3},r=["session","user"],f="Hm_up_"+c.id,l={init:function(){l.ec()},ec:function(){try{var e=b.parse(decodeURIComponent(g.getData(f)));a.d(e,"Object")&&(d.user=e)}catch(p){}},A:function(a){var b={};d[a]!==q&&(b=d[a]);a=this.ya();for(var e in b)b.hasOwnProperty(e)&&(a[e]=b[e]);return a},ya:function(){for(var a={},b,e=r.length-
|
||||
1;0<=e;e--){b=d[r[e]];for(var t in b)b.hasOwnProperty(t)&&(a[t]=b[t])}return a},setProperty:function(e,f,g){var t=d[e];if(a.d(t,"Object")&&a.d(f,"Object")){for(var v in f)if(f.hasOwnProperty(v)){var k=a.h(String(v));if(g||!/^_/.test(k)&&!/_$/.test(k)||/^(_iden|ei_|ec_|ex_|en_|et_|el_)$/.test(k)){var m=f[v];if(m==w)delete t[k];else{if(a.d(m,"Object")||a.d(m,"Array"))m=b.stringify(m);m=a.h(String(m));l.gc(e,k,m)&&(t[k]={value:m,scope:l.Wa(e)})}}}"user"===e&&l.Ia()}},o:function(b){b!==q&&("userId"===
|
||||
b&&a.d(d.user,"Object")?(delete d.user.uid_,l.Ia()):"user"===b&&a.d(d.user,"Object")?(b=d.user.uid_,d.user=b===q?{}:{uid_:b},l.Ia()):d[b]!==q&&(d[b]={}))},Ia:function(){try{g.setData(f,encodeURIComponent(b.stringify(d.user)),c.age)}catch(a){}},gc:function(a,b,e){var f=u,g=d[a];if(256<encodeURIComponent(String(b)).length||256<encodeURIComponent(String(e)).length)f=x;else{var k=g[b];g[b]={value:e,scope:l.Wa(a)};a=l.O(l.A(a));2048<encodeURIComponent(a).length&&(k!==q?g[b]=k:delete g[b],f=x)}return f},
|
||||
O:function(a){var b=[],d,e;for(e in a)a.hasOwnProperty(e)&&(d=[e,a[e].value],(1===a[e].scope||2===a[e].scope)&&d.push(a[e].scope),b.push(d.join("*")));return b.join("!")},Wa:function(a){a=e[a];return a!==q?a:e.others}};return h.P=l})();
|
||||
(function(){var a=mt.f,b=mt.lang,g=h.z,d=h.ra,e=h.P,r=e.O;if(b.isArray(c.cptrk)&&0<c.cptrk.length){var f={cb:{},ka:{},init:function(){for(var a,e=d.ca(c.cptrk)||[],g=0;g<e.length;g++)if(a=e[g],a.a!==q&&b.d(a.a,"Object")){a=a.a;for(var s in a)a.hasOwnProperty(s)&&(f.ka[s]=String(a[s]))}},bb:function(){var b,d,e;for(e in f.ka)if(f.ka.hasOwnProperty(e)&&f.cb[e]===q&&(b=f.ka[e],b=a.ua(b)))d=d===q?{}:d,d[e]=a.S(b,x),f.cb[e]=u;return d},Aa:function(){var a=f.bb();a&&f.nc(a)},dc:function(){"MutationObserver"in
|
||||
window?(new MutationObserver(f.Aa)).observe(document.body,{childList:u,subtree:u}):window.setInterval(f.Aa,15E3)},nc:function(a){if(b.d(a,"Object")){e.setProperty("pageview",a);a=h.c.b.p;var d=h.c.b.ep;h.c.b.et=9;h.c.b.ep="";h.c.b.p=r(e.A("pageview"));h.c.i();h.c.b.p=a;h.c.b.ep=d;e.o("pageview")}}};f.init();g.e("pv-b",function(){var a=f.bb();a&&e.setProperty("pageview",a)});f.dc();a.gb(f.Aa)}})();
|
||||
(function(){var a=mt.lang,b=mt.f,g=h.ra,d={ba:function(a,r){return function(f){var l=f.target||f.srcElement;if(l){var n=g.ca(r)||[],p=l.getAttribute(a.la);f=f.clientX+":"+f.clientY;if(p&&p===f)l.removeAttribute(a.la);else if(0<n.length&&(l=b.Qb(l))&&l.length)if(n=l.length,p=l[l.length-1],1E4>n*p.split(">").length)for(p=0;p<n;p++)d.jb(a,l[p]);else d.jb(a,p)}}},jb:function(b,d){for(var f={},g=String(d).split(">").length,n=0;n<g;n++)f[d]="",d=d.substring(0,d.lastIndexOf(">"));b&&(a.d(b,"Object")&&b.Sa)&&
|
||||
b.Sa(f)},jc:function(a,b){return function(d){(d.target||d.srcElement).setAttribute(a.la,d.clientX+":"+d.clientY);a&&a.w&&(b?a.w(b):a.w("#"+encodeURIComponent(this.id),d.type))}}};return h.ta=d})();
|
||||
(function(){var a=mt.f,b=mt.event,g=mt.lang,d=h.D,e=h.ra,r=h.ta,f=h.P,l=f.O,n={la:"HM_ce",pb:function(){if(c.cetrk&&0<c.cetrk.length){b.e(document,"click",r.ba(n,c.cetrk));for(var d=e.ca(c.cetrk)||[],f=0,g=d.length;f<g;f++){var v=d[f],k=v.p||"";-1===k.indexOf(">")&&(0===k.indexOf("#")&&(k=k.substring(1)),(k=a.Ua(k))&&b.e(k,"click",r.jc(n,v)))}}},Sa:function(a){for(var b=e.ca(c.cetrk)||[],d=0;d<b.length;d++){var f=b[d],k=n.Kb(f.p,a);k&&n.w(f,k)}},Kb:function(a,b){a=String(a);if(0<a.indexOf("*")){var d=
|
||||
RegExp("^"+a.replace(/\[/g,"\\[").replace(/\]/g,"\\]").replace(/\*/,"\\d+")+"$"),e;for(e in b)if(b.hasOwnProperty(e)&&d.test(e))return e;return w}return b.hasOwnProperty(a)?a:w},w:function(b,d){h.c.b.et=7;var e=b&&b.k||"",e=g.h(e),v={};if(b&&b.a&&g.d(b.a,"Object")){var k=b.a,m;for(m in k)if(k.hasOwnProperty(m)){var y=n.Rb(k[m]||"",d),y=y?a.S(y,x):"";v[m]=y}}v=n.Gb(v,d||b&&b.p);v._iden=e;f.setProperty("customEvent",v);h.c.b.ep="";h.c.b.p=l(f.A("customEvent"));h.c.i();h.c.b.p="";f.o("customEvent")},
|
||||
Gb:function(b,e){var f=a.ua(e),g=d.Oa;f&&(c.aet&&c.aet.length?(b.ei_=a.getAttribute(f,g.id)||a.getAttribute(f,"id")||"",b.ec_=a.getAttribute(f,g.aa)||a.getAttribute(f,"class")||"",b.ex_=a.getAttribute(f,g.$)||a.xa(f),b.en_=a.getAttribute(f,g.content)||a.S(f,u),b.et_=a.getAttribute(f,g.ia)||a.T(f),b.el_=a.getAttribute(f,g.link)||a.getAttribute(f,"href")||""):(b.ex_=a.getAttribute(f,g.$)||a.xa(f),b.en_=a.getAttribute(f,g.content)||a.S(f,u)));return b},Rb:function(b,d){b=String(b);d=String(d);if(0<b.indexOf("*")){var e=
|
||||
/.*\[(\d+)\]$/.exec(d);b=b.replace("*",e?e[1]:"1")}return a.ua(b)}};h.z.e("pv-b",n.pb);return n})();
|
||||
(function(){var a=mt.lang,b=mt.f,g=mt.event,d=mt.g,e=h.D,r=h.z,f=h.P,l=f.O,n=+new Date,p=[],s={ba:function(){return function(d){if(h.c&&h.c.V&&c.aet&&c.aet.length){var f=d.target||d.srcElement;if(f){var g=h.c.Ra,m=b.getAttribute(f,e.Qa)!=w?u:x;if(b.getAttribute(f,e.Pa)==w)if(m)s.na(s.va(f,d));else{var y=b.T(f);if(a.G(g,"*")||a.G(g,y))s.na(s.va(f,d));else for(;f.parentNode!=w;){var m=f.parentNode,y=b.T(m),z="a"===y&&a.G(g,"a")?u:x,y="button"===y&&a.G(g,"button")?u:x,A=b.getAttribute(m,e.Qa)!=w?u:x;
|
||||
if(b.getAttribute(m,e.Pa)==w&&(z||y||A)){s.na(s.va(m,d));break}f=f.parentNode}}}}}},va:function(f,g){var k={},m=e.Oa;k.id=b.getAttribute(f,m.id)||b.getAttribute(f,"id")||"";k.aa=b.getAttribute(f,m.aa)||b.getAttribute(f,"class")||"";k.$=b.getAttribute(f,m.$)||b.xa(f);k.content=b.getAttribute(f,m.content)||b.S(f,u);k.ia=b.getAttribute(f,m.ia)||b.T(f);k.link=b.getAttribute(f,m.link)||b.getAttribute(f,"href")||"";k.type=g.type||"click";m=a.Za(f.offsetTop)?f.offsetTop:0;"click"===g.type?m=d.Ca?g.clientY+
|
||||
Math.max(document.documentElement.scrollTop,document.body.scrollTop):g.pageY:"touchend"===g.type&&(g.ab&&g.ab.changedTouches)&&(m=g.ab.changedTouches[0].pageY);k.uc=m;m=this.Jb(g);k.Fa=m.Fa||0;k.Ha=m.Ha||0;k.Na=m.Na||0;k.za=m.za||0;k.La=m.La||"b";return k},Jb:function(e){var f=e.target||e.srcElement,g;if(d.Ca){var m=Math.max(document.documentElement.scrollTop,document.body.scrollTop);g=Math.max(document.documentElement.scrollLeft,document.body.scrollLeft);g=e.clientX+g;e=e.clientY+m}else g=e.pageX,
|
||||
e=e.pageY;var y=m=0,z=0,A=0;if(f&&(m=f.offsetWidth||f.clientWidth,y=f.offsetHeight||f.clientHeight,A=b.Ob(f),z=A.left,A=A.top,a.d(f.getBBox,"Function")&&(y=f.getBBox(),m=y.width,y=y.height),"html"===(f.tagName||"").toLowerCase()))m=Math.max(m,f.clientWidth),y=Math.max(y,f.clientHeight);return{Fa:Math.round(100*((g-z)/m)),Ha:Math.round(100*((e-A)/y)),Na:m,za:y,La:("a"===(f.tagName||"").toLowerCase()?f:b.Fb(f))?"a":"b"}},na:function(b){var d=a.h;b=[+new Date-(h.c.X!==q?h.c.X:n),d(b.id),d(b.aa),d(b.ia),
|
||||
d(b.$),d(b.link),d(b.content),b.type,b.uc,b.Fa,b.Ha,b.Na,b.za,b.La].join("*");s.oa(b);a.d(this.Z(),"Function")&&this.Z()()},oa:function(a){a.length>e.pa||(encodeURIComponent(p.join("!")+a).length>e.pa&&(s.w(p.join("!")),p=[]),p.push(a))},w:function(a){h.c.b.et=5;h.c.b.ep=a;h.c.b.p=l(f.A("autoEventTracking"));h.c.i();h.c.b.p=""},Z:function(){return function(){p&&p.length&&(s.w(p.join("!")),p=[])}}};a.H(c.aet)&&""!==c.aet&&r.e("pv-b",function(){g.e(document,"click",s.ba());"ontouchend"in document&&
|
||||
g.e(window,"touchend",s.ba());g.e(window,"unload",s.Z())});return s})();
|
||||
(function(){var a=mt.lang,b=mt.event,g=mt.g,d=h.D,e=h.z,r=+new Date,f=[],l=w,n={tb:function(){a.H(c.aet)&&""!==c.aet&&setInterval(n.ib,d.lc)},ib:function(){var a=g.U()+g.M();0<a-h.c.b.vl&&(h.c.b.vl=a)}},p={Bb:function(){return function(){h.c&&(h.c.V&&c.aet&&c.aet.length)&&(window.clearTimeout(l),l=window.setTimeout(function(){p.rb(g.U()+g.M())},150))}},rb:function(a){p.oa([+new Date-(h.c.X!==q?h.c.X:r),a].join("*"))},oa:function(a){if(encodeURIComponent(f.join("!")+a).length>d.pa||3<f.length)p.w(f.join("!")),
|
||||
f=[];f.push(a)},w:function(a){n.ib();h.c.b.et=6;h.c.b.vh=g.M();h.c.b.ep=a;h.c.i()},Z:function(){return function(){f&&f.length&&(p.w(f.join("!")),f=[])}}};a.H(c.aet)&&""!==c.aet&&e.e("pv-b",function(){b.e(window,"scroll",p.Bb());b.e(window,"unload",p.Z());n.tb()});return p})();
|
||||
(function(){function a(){return function(){h.c.b.nv=0;h.c.b.st=4;h.c.b.et=3;h.c.b.ep=h.sa.Pb()+","+h.sa.Lb();h.c.b.hca=c.hca;h.c.i()}}function b(){clearTimeout(z);var a;m&&(a="visible"==document[m]);y&&(a=!document[y]);l="undefined"==typeof a?u:a;if((!f||!n)&&l&&p)k=u,t=+new Date;else if(f&&n&&(!l||!p))k=x,v+=+new Date-t;f=l;n=p;z=setTimeout(b,100)}function g(a){var m=document,b="";if(a in m)b=a;else for(var d=["webkit","ms","moz","o"],f=0;f<d.length;f++){var e=d[f]+a.charAt(0).toUpperCase()+a.slice(1);
|
||||
if(e in m){b=e;break}}return b}function d(a){if(!("focus"==a.type||"blur"==a.type)||!(a.target&&a.target!=window))p="focus"==a.type||"focusin"==a.type?u:x,b()}var e=mt.event,r=h.z,f=u,l=u,n=u,p=u,s=+new Date,t=s,v=0,k=u,m=g("visibilityState"),y=g("hidden"),z;b();(function(){var a=m.replace(/[vV]isibilityState/,"visibilitychange");e.e(document,a,b);e.e(window,"pageshow",b);e.e(window,"pagehide",b);"object"==typeof document.onfocusin?(e.e(document,"focusin",d),e.e(document,"focusout",d)):(e.e(window,
|
||||
"focus",d),e.e(window,"blur",d))})();h.sa={Pb:function(){return+new Date-s},Lb:function(){return k?+new Date-t+v:v}};r.e("pv-b",function(){e.e(window,"unload",a())});r.e("duration-send",a());r.e("duration-done",function(){t=s=+new Date;v=0});return h.sa})();
|
||||
(function(){var a=mt.lang,b=h.D,g=h.load,d={bc:function(d){if((window._dxt===q||a.d(window._dxt,"Array"))&&"undefined"!==typeof h.c){var r=h.c.R();g([b.protocol,"//datax.baidu.com/x.js?si=",c.id,"&dm=",encodeURIComponent(r)].join(""),d)}},tc:function(b){if(a.d(b,"String")||a.d(b,"Number"))window._dxt=window._dxt||[],window._dxt.push(["_setUserId",b])}};return h.zb=d})();
|
||||
(function(){function a(a,b,d,f){if(!(a===q||b===q||f===q)){if(""===a)return[b,d,f].join("*");a=String(a).split("!");for(var e,g=x,k=0;k<a.length;k++)if(e=a[k].split("*"),String(b)===e[0]){e[1]=d;e[2]=f;a[k]=e.join("*");g=u;break}g||a.push([b,d,f].join("*"));return a.join("!")}}function b(a){for(var f in a)if({}.hasOwnProperty.call(a,f)){var e=a[f];d.d(e,"Object")||d.d(e,"Array")?b(e):a[f]=String(e)}}var g=mt.url,d=mt.lang,e=mt.s,r=mt.g,f=h.D,l=h.z,n=h.zb,p=h.load,s=h.qa,t=h.P,v=t.O,k={Y:[],ha:0,Da:x,
|
||||
C:{Ma:"",page:""},init:function(){k.j=0;t.init();l.e("pv-b",function(){k.Ab();k.Cb()});l.e("pv-d",function(){k.Db();k.C.page=""});l.e("stag-b",function(){h.c.b.api=k.j||k.ha?k.j+"_"+k.ha:"";h.c.b.ct=[decodeURIComponent(s.getData("Hm_ct_"+c.id)||""),k.C.Ma,k.C.page].join("!")});l.e("stag-d",function(){h.c.b.api=0;k.j=0;k.ha=0})},Ab:function(){var a=window._hmt||[];if(!a||d.d(a,"Array"))window._hmt={id:c.id,cmd:{},push:function(){for(var a=window._hmt,b=0;b<arguments.length;b++){var m=arguments[b];
|
||||
d.d(m,"Array")&&(a.cmd[a.id].push(m),"_setAccount"===m[0]&&(1<m.length&&/^[0-9a-f]{31,32}$/.test(m[1]))&&(m=m[1],a.id=m,a.cmd[m]=a.cmd[m]||[]))}}},window._hmt.cmd[c.id]=[],window._hmt.push.apply(window._hmt,a)},Cb:function(){var a=window._hmt;if(a&&a.cmd&&a.cmd[c.id])for(var b=a.cmd[c.id],d=/^_track(Event|MobConv|Order)$/,f=0,e=b.length;f<e;f++){var g=b[f];d.test(g[0])?k.Y.push(g):k.Ja(g)}a.cmd[c.id]={push:k.Ja}},Db:function(){if(0<k.Y.length)for(var a=0,b=k.Y.length;a<b;a++)k.Ja(k.Y[a]);k.Y=w},Ja:function(a){var b=
|
||||
a[0];if(k.hasOwnProperty(b)&&d.d(k[b],"Function"))k[b](a)},_setAccount:function(a){1<a.length&&/^[0-9a-f]{31,32}$/.test(a[1])&&(k.j|=1)},_setAutoPageview:function(a){if(1<a.length&&(a=a[1],x===a||u===a))k.j|=2,h.c.Xa=a},_trackPageview:function(a){1<a.length&&(a[1].charAt&&"/"===a[1].charAt(0))&&(k.j|=4,h.c.b.sn=h.c.Va(),h.c.b.et=0,h.c.b.ep="",h.c.b.vl=r.U()+r.M(),h.c.b.kb=0,h.c.Ba?(h.c.b.nv=0,h.c.b.st=4):h.c.Ba=u,k.Da||(h.c.b.su=h.c.b.u||document.location.href),h.c.b.u=f.protocol+"//"+document.location.host+
|
||||
a[1],h.c.b.p=v(t.A("pageview")),h.c.i(),h.c.b.p="",h.c.X=+new Date,t.o("pageview"))},_trackEvent:function(a){2<a.length&&(k.j|=8,h.c.b.nv=0,h.c.b.st=4,h.c.b.et=4,h.c.b.ep=d.h(a[1])+"*"+d.h(a[2])+(a[3]?"*"+d.h(a[3]):"")+(a[4]?"*"+d.h(a[4]):""),h.c.b.p=v(t.ya()),h.c.i(),h.c.b.p="")},_setCustomVar:function(a){if(!(4>a.length)){var b=a[1],f=a[4]||3;if(0<b&&6>b&&0<f&&4>f){k.ha++;for(var e=(h.c.b.cv||"*").split("!"),g=e.length;g<b-1;g++)e.push("*");e[b-1]=f+"*"+d.h(a[2])+"*"+d.h(a[3]);h.c.b.cv=e.join("!");
|
||||
a=h.c.b.cv.replace(/[^1](\*[^!]*){2}/g,"*").replace(/((^|!)\*)+$/g,"");""!==a?s.setData("Hm_cv_"+c.id,encodeURIComponent(a),c.age):s.removeData("Hm_cv_"+c.id)}}},_setUserTag:function(b){if(!(3>b.length)){var f=d.h(b[1]);b=d.h(b[2]);if(f!==q&&b!==q){var e=decodeURIComponent(s.getData("Hm_ct_"+c.id)||""),e=a(e,f,1,b);s.setData("Hm_ct_"+c.id,encodeURIComponent(e),c.age)}}},_setVisitTag:function(b){if(!(3>b.length)){var f=d.h(b[1]);b=d.h(b[2]);if(f!==q&&b!==q){var e=k.C.Ma,e=a(e,f,2,b);k.C.Ma=e}}},_setPageTag:function(b){if(!(3>
|
||||
b.length)){var f=d.h(b[1]);b=d.h(b[2]);if(f!==q&&b!==q){var e=k.C.page,e=a(e,f,3,b);k.C.page=e}}},_setReferrerOverride:function(a){1<a.length&&(a=a[1],d.d(a,"String")?(h.c.b.su="/"===a.charAt(0)?f.protocol+"//"+window.location.host+a:a,k.Da=u):k.Da=x)},_trackOrder:function(a){a=a[1];d.d(a,"Object")&&(b(a),k.j|=16,h.c.b.nv=0,h.c.b.st=4,h.c.b.et=94,h.c.b.ep=e.stringify(a),h.c.b.p=v(t.ya()),h.c.i(),h.c.b.p="")},_trackMobConv:function(a){if(a={webim:1,tel:2,map:3,sms:4,callback:5,share:6}[a[1]])k.j|=
|
||||
32,h.c.b.et=93,h.c.b.ep=a,h.c.i()},_setDataxId:function(a){a=a[1];n.bc();n.tc(a)},_setUserId:function(a){a=a[1];if(a!==q&&(d.H(a)||d.Za(a))){var b=t.A("user").uid_;if(!(b&&b.value===d.h(String(a)))){var b=h.c.b.p,f=h.c.b.ep;h.c.b.et=8;h.c.b.ep="";h.c.b.p="uid_*"+d.h(String(a));h.c.i();var e={};e.uid_=a;t.setProperty("user",e,u);h.c.b.p=b;h.c.b.ep=f}}},_clearUserId:function(a){1<a.length&&u===a[1]&&t.o("userId")},_setUserProperty:function(a){a=a[1];d.d(a,"Object")&&t.setProperty("user",a)},_clearUserProperty:function(a){1<
|
||||
a.length&&u===a[1]&&t.o("user")},_setSessionProperty:function(a){a=a[1];d.d(a,"Object")&&t.setProperty("session",a)},_clearSessionProperty:function(a){1<a.length&&u===a[1]&&t.o("session")},_setPageviewProperty:function(a){a=a[1];d.d(a,"Object")&&t.setProperty("pageview",a)},_clearPageviewProperty:function(a){1<a.length&&u===a[1]&&t.o("pageview")},_setAutoEventTrackingProperty:function(a){a=a[1];d.d(a,"Object")&&t.setProperty("autoEventTracking",a)},_clearAutoEventTrackingProperty:function(a){1<a.length&&
|
||||
u===a[1]&&t.o("autoEventTracking")},_setAutoTracking:function(a){if(1<a.length&&(a=a[1],x===a||u===a))h.c.Ya=a},_setAutoEventTracking:function(a){if(1<a.length&&(a=a[1],x===a||u===a))h.c.V=a},_trackPageDuration:function(a){1<a.length?(a=a[1],2===String(a).split(",").length&&(h.c.b.et=3,h.c.b.ep=a,h.c.i())):l.K("duration-send");l.K("duration-done")},_require:function(a){1<a.length&&(a=a[1],f.vb.test(g.L(a))&&p(a))},_providePlugin:function(a){if(1<a.length){var b=window._hmt,e=a[1];a=a[2];if(d.G(f.eb,
|
||||
e)&&d.d(a,"Function")&&(b.plugins=b.plugins||{},b.I=b.I||{},b.plugins[e]=a,b.B=b.B||[],a=b.B.slice(),e&&a.length&&a[0][1]===e))for(var g=0,k=a.length;g<k;g++){var l=a[g][2]||{};if(b.plugins[e]&&!b.I[e])b.I[e]=new b.plugins[e](l),b.B.shift();else break}}},_requirePlugin:function(a){if(1<a.length){var b=window._hmt,e=a[1],g=a[2]||{};if(d.G(f.eb,e))if(b.plugins=b.plugins||{},b.I=b.I||{},b.plugins[e]&&!b.I[e])b.I[e]=new b.plugins[e](g);else{b.B=b.B||[];for(var g=0,l=b.B.length;g<l;g++)if(b.B[g][1]===
|
||||
e)return;b.B.push(a);k._require([w,f.ic+e+".js"])}}},_trackCustomEvent:function(a){if(1<a.length){var b=a[1];a=a[2];d.d(a,"Object")||(a={});a._iden=b;t.setProperty("customEvent",a);h.c.b.et=7;h.c.b.ep="";h.c.b.p=v(t.A("customEvent"));h.c.i();h.c.b.p="";t.o("customEvent")}}};k.init();h.wb=k;return h.wb})();
|
||||
(function(){var a=h.z;c.spa!==q&&"1"===String(c.spa)&&(window._hmt=window._hmt||[],window._hmt.push(["_requirePlugin","UrlChangeTracker"]),a.e("pv-b",function(){""!==window.location.hash&&(h.c.b.u=window.location.href)}))})();
|
||||
(function(){function a(){"undefined"===typeof window["_bdhm_loaded_"+c.id]&&(window["_bdhm_loaded_"+c.id]=u,this.b={},this.Ya=this.Xa=u,this.V=k.V,this.Ra=e.H(c.aet)&&0<c.aet.length?c.aet.split(","):"",this.Ba=x,this.init())}var b=mt.url,g=mt.lb,d=mt.Ka,e=mt.lang,r=mt.cookie,f=mt.g,l=mt.sessionStorage,n=mt.s,p=mt.event,s=h.qa,t=h.P,v=t.O,k=h.D,m=h.load,y=h.z;a.prototype={W:function(a,b){a="."+a.replace(/:\d+/,"");b="."+b.replace(/:\d+/,"");var d=a.indexOf(b);return-1<d&&d+b.length===a.length},ga:function(a,
|
||||
b){a=a.replace(/^https?:\/\//,"");return 0===a.indexOf(b)},ea:function(a){for(var d=0;d<c.dm.length;d++)if(-1<c.dm[d].indexOf("/")){if(this.ga(a,c.dm[d]))return u}else{var e=b.L(a);if(e&&this.W(e,c.dm[d]))return u}return x},R:function(){for(var a=document.location.hostname,b=0,d=c.dm.length;b<d;b++)if(this.W(a,c.dm[b]))return c.dm[b].replace(/(:\d+)?[/?#].*/,"");return a},da:function(){for(var a=0,b=c.dm.length;a<b;a++){var d=c.dm[a];if(-1<d.indexOf("/")&&this.ga(document.location.href,d))return d.replace(/^[^/]+(\/.*)/,
|
||||
"$1")+"/"}return"/"},Sb:function(){if(!document.referrer)return k.J-k.N>c.vdur?1:4;var a=x;this.ea(document.referrer)&&this.ea(document.location.href)?a=u:(a=b.L(document.referrer),a=this.W(a||"",document.location.hostname));return a?k.J-k.N>c.vdur?1:4:3},rc:function(){var a,b,d,e,f,g;k.N=s.getData("Hm_lpvt_"+c.id)||0;13===k.N.length&&(k.N=Math.round(k.N/1E3));b=this.Sb();a=4!==b?1:0;if(g=s.getData("Hm_lvt_"+c.id)){e=g.split(",");for(f=e.length-1;0<=f;f--)13===e[f].length&&(e[f]=""+Math.round(e[f]/
|
||||
1E3));for(;2592E3<k.J-e[0];)e.shift();f=4>e.length?2:3;for(1===a&&e.push(k.J);4<e.length;)e.shift();g=e.join(",");e=e[e.length-1]}else g=k.J,e="",f=1;this.fc()?(s.setData("Hm_lvt_"+c.id,g,c.age),s.setData("Hm_lpvt_"+c.id,k.J),d=r.hc(this.R(),this.da())):this.Eb();if(0===c.nv&&this.ea(document.location.href)&&(""===document.referrer||this.ea(document.referrer)))a=0,b=4;this.b.nv=a;this.b.st=b;this.b.cc=d;this.b.lt=e;this.b.lv=f},fc:function(){var a=b.L(document.location.href);return!e.G("sjh.baidu.com isite.baidu.com ls.wejianzhan.com bs.wejianzhan.com product.weijianzhan.com qianhu.weijianzhan.com aisite.wejianzhan.com".split(" "),
|
||||
a)},Eb:function(){for(var a=document.cookie.split(";"),b=0;b<a.length;b++){var d=a[b].split("=");d.length&&/Hm_(up|ct|cv|lp?vt)_[0-9a-f]{31}/.test(String(d[0]))&&s.removeData(d[0]);d.length&&/Hm_ck_[0-9]{13}/.test(String(d[0]))&&s.removeData(d[0])}},qc:function(){for(var a=[],b=this.b.et,d=0,e=k.mb.length;d<e;d++){var f=k.mb[d],g=this.b[f];"undefined"!==typeof g&&""!==g&&("tt"!==f||"tt"===f&&0===b)&&("ct"!==f||"ct"===f&&0===b)&&a.push(f+"="+encodeURIComponent(g))}return a.join("&")},sc:function(){this.rc();
|
||||
this.b.si=c.id;this.b.sn=this.Va();this.b.su=document.referrer;this.b.ds=f.kc;this.b.cl=f.colorDepth+"-bit";this.b.ln=String(f.language).toLowerCase();this.b.ja=f.javaEnabled?1:0;this.b.ck=f.cookieEnabled?1:0;this.b.lo="number"===typeof _bdhm_top?1:0;this.b.fl=d.Ub();this.b.v="1.2.80";this.b.cv=decodeURIComponent(s.getData("Hm_cv_"+c.id)||"");this.b.tt=document.title||"";this.b.vl=f.U()+f.M();var a=document.location.href;this.b.cm=b.m(a,k.Zb)||"";this.b.cp=b.m(a,k.$b)||b.m(a,k.xc)||"";this.b.cw=b.m(a,
|
||||
k.Yb)||b.m(a,k.zc)||"";this.b.ci=b.m(a,k.Wb)||b.m(a,k.wc)||"";this.b.cf=b.m(a,k.ac)||b.m(a,k.yc)||"";this.b.cu=b.m(a,k.Xb)||b.m(a,k.vc)||"";/https?:/.test(document.location.protocol)&&(this.b.u=a)},init:function(){try{this.sc(),0===this.b.nv?this.pc():this.Ta(),h.c=this,this.yb(),this.xb(),y.K("pv-b"),this.mc()}catch(a){var b=[];b.push("si="+c.id);b.push("n="+encodeURIComponent(a.name));b.push("m="+encodeURIComponent(a.message));b.push("r="+encodeURIComponent(document.referrer));g.log(k.Ea+"//"+k.fb+
|
||||
"?"+b.join("&"))}},mc:function(){function a(){y.K("pv-d")}this.Xa?(this.Ba=u,this.b.et=0,this.b.ep="",this.b.p=v(t.A("pageview")),this.b.vl=f.U()+f.M(),this.i(a),this.b.p=""):a();this.X=+new Date;t.o("pageview")},i:function(a){if(this.Ya){var b=this;b.b.rnd=Math.round(Math.random()*k.Ga);b.b.r=f.orientation;b.b.ww=f.ob;y.K("stag-b");var d=k.Ea+"//"+k.fb+"?"+b.qc();y.K("stag-d");b.ub(d);g.log(d,function(d){b.hb(d);e.d(a,"Function")&&a.call(b)})}},yb:function(){var a=document.location.hash.substring(1),
|
||||
d=RegExp(c.id),e=b.L(document.referrer)===k.nb?1:0,f=b.m(a,"jn"),g=/^select$/.test(f);a&&(d.test(a)&&e&&g)&&(this.b.rnd=Math.round(Math.random()*k.Ga),a=document.createElement("script"),a.setAttribute("type","text/javascript"),a.setAttribute("charset","utf-8"),a.setAttribute("src",k.protocol+"//"+c.js+f+".js?"+this.b.rnd),f=document.getElementsByTagName("script")[0],f.parentNode.insertBefore(a,f))},xb:function(){try{if(window.postMessage&&window.self!==window.parent){var a=this;p.e(window,"message",
|
||||
function(d){if(b.L(d.origin)===k.nb){d=d.data||{};var e=d.jn||"",f=/^customevent$|^heatmap$|^pageclick$/.test(e);if(RegExp(c.id).test(d.sd||"")&&f)a.b.rnd=Math.round(Math.random()*k.Ga),m(k.protocol+"//"+c.js+e+".js?"+a.b.rnd)}});window.parent.postMessage({id:c.id,url:document.location.href,status:"__Messenger__hmLoaded"},"*")}}catch(d){}},ub:function(a){var b;try{b=n.parse(l.get("Hm_unsent_"+c.id)||"[]")}catch(d){b=[]}var e=this.b.u?"":"&u="+encodeURIComponent(document.location.href);b.push(a.replace(/^https?:\/\//,
|
||||
"")+e);l.set("Hm_unsent_"+c.id,n.stringify(b))},hb:function(a){var b;try{b=n.parse(l.get("Hm_unsent_"+c.id)||"[]")}catch(d){b=[]}if(b.length){a=a.replace(/^https?:\/\//,"");for(var e=0;e<b.length;e++)if(a.replace(/&u=[^&]*/,"")===b[e].replace(/&u=[^&]*/,"")){b.splice(e,1);break}b.length?l.set("Hm_unsent_"+c.id,n.stringify(b)):this.Ta()}},Ta:function(){l.remove("Hm_unsent_"+c.id)},pc:function(){var a=this,b;try{b=n.parse(l.get("Hm_unsent_"+c.id)||"[]")}catch(d){b=[]}if(b.length)for(var e=function(b){g.log(k.Ea+
|
||||
"//"+b,function(b){a.hb(b)})},f=0;f<b.length;f++)e(b[f])},Va:function(){return Math.round(+new Date/1E3)%65535}};return new a})();var B=h.D,C=h.load;c.pt&&C([B.protocol,"//ada.baidu.com/phone-tracker/insert_bdtj?sid=",c.pt].join(""));
|
||||
(function(){var a=mt.g,b=mt.lang,g=mt.event,d=mt.s;if("undefined"!==typeof h.c&&(c.med||(!a.Ca||7<a.Nb())&&c.cvcc)){var e,r,f,l,n=function(a){if(a.item){for(var b=a.length,d=Array(b);b--;)d[b]=a[b];return d}return[].slice.call(a)},p=function(a,b){for(var d in a)if(a.hasOwnProperty(d)&&b.call(a,d,a[d])===x)return x},s=function(a,g){var k={};k.n=e;k.t="clk";k.v=a;if(g){var l=g.getAttribute("href"),n=g.getAttribute("onclick")?""+g.getAttribute("onclick"):w,p=g.getAttribute("id")||"";f.test(l)?(k.sn=
|
||||
"mediate",k.snv=l):b.d(n,"String")&&f.test(n)&&(k.sn="wrap",k.snv=n);k.id=p}h.c.b.et=86;h.c.b.ep=d.stringify(k);h.c.i();for(k=+new Date;400>=+new Date-k;);};if(c.med)r="/zoosnet",e="swt",f=/swt|zixun|call|chat|zoos|business|talk|kefu|openkf|online|\/LR\/Chatpre\.aspx/i,l={click:function(){for(var a=[],b=n(document.getElementsByTagName("a")),b=[].concat.apply(b,n(document.getElementsByTagName("area"))),b=[].concat.apply(b,n(document.getElementsByTagName("img"))),d,e,g=0,k=b.length;g<k;g++)d=b[g],e=
|
||||
d.getAttribute("onclick"),d=d.getAttribute("href"),(f.test(e)||f.test(d))&&a.push(b[g]);return a}};else if(c.cvcc){r="/other-comm";e="other";f=c.cvcc.q||q;var t=c.cvcc.id||q;l={click:function(){for(var a=[],b=n(document.getElementsByTagName("a")),b=[].concat.apply(b,n(document.getElementsByTagName("area"))),b=[].concat.apply(b,n(document.getElementsByTagName("img"))),d,e,g,k=0,l=b.length;k<l;k++)d=b[k],f!==q?(e=d.getAttribute("onclick"),g=d.getAttribute("href"),t?(d=d.getAttribute("id"),(f.test(e)||
|
||||
f.test(g)||t.test(d))&&a.push(b[k])):(f.test(e)||f.test(g))&&a.push(b[k])):t!==q&&(d=d.getAttribute("id"),t.test(d)&&a.push(b[k]));return a}}}if("undefined"!==typeof l&&"undefined"!==typeof f){var v;r+=/\/$/.test(r)?"":"/";var k=function(a,d){if(v===d)return s(r+a,d),x;if(b.d(d,"Array")||b.d(d,"NodeList"))for(var e=0,f=d.length;e<f;e++)if(v===d[e])return s(r+a+"/"+(e+1),d[e]),x};g.e(document,"mousedown",function(a){a=a||window.event;v=a.target||a.srcElement;var d={};for(p(l,function(a,e){d[a]=b.d(e,
|
||||
"Function")?e():document.getElementById(e)});v&&v!==document&&p(d,k)!==x;)v=v.parentNode})}}})();(function(){var a=mt.f,b=mt.lang,g=mt.event,d=mt.s;if("undefined"!==typeof h.c&&b.d(c.cvcf,"Array")&&0<c.cvcf.length){var e={qb:function(){for(var b=c.cvcf.length,d,l=0;l<b;l++)(d=a.Ua(decodeURIComponent(c.cvcf[l])))&&g.e(d,"click",e.ta())},ta:function(){return function(){h.c.b.et=86;var a={n:"form",t:"clk"};a.id=this.id;h.c.b.ep=d.stringify(a);h.c.i()}}};a.gb(function(){e.qb()})}})();
|
||||
(function(){var a=mt.event,b=mt.s;if(c.med&&"undefined"!==typeof h.c){var g={n:"anti",sb:0,kb:0,clk:0},d=function(){h.c.b.et=86;h.c.b.ep=b.stringify(g);h.c.i()};a.e(document,"click",function(){g.clk++});a.e(document,"keyup",function(){g.kb=1});a.e(window,"scroll",function(){g.sb++});a.e(window,"load",function(){setTimeout(d,5E3)})}})();c.oc!==q&&"1"===String(c.oc)&&(window._hmt=window._hmt||[],window._hmt.push(["_requirePlugin","OcpcCbHm"]));})();
|
1
document/Online Judge 是如何解决判题端安全性问题的? - 知乎_files/init.js
Normal file
2
document/Online Judge 是如何解决判题端安全性问题的? - 知乎_files/main.js
Normal file
46
document/Online Judge 是如何解决判题端安全性问题的? - 知乎_files/main_005.js
Normal file
47
document/Online Judge 是如何解决判题端安全性问题的? - 知乎_files/main_006.js
Normal file
@ -0,0 +1,2 @@
|
||||
.RecognizerListModal{padding:20px}.RecognizerListModal .ContentItem{padding:10px}.RecognizerListModal-header{height:74px;width:100%;font-size:15px;border-bottom:1px solid #f6f6f6}html[data-theme=dark] .RecognizerListModal-header{border-bottom:1px solid #1b1b1b}.RecognizerListModal-headerDescription,html[data-theme=dark] .RecognizerListModal-headerDescription{color:#8590a6}.Body--Mobile .RecognizerListModal .ContentItem-meta{display:-webkit-box;text-overflow:ellipsis;overflow:hidden;-webkit-line-clamp:1;-webkit-box-orient:vertical}
|
||||
/*# sourceMappingURL=main.Labels.216a26f4.7d19d2afdc588e36471f.css.map */
|
40
document/Online Judge 是如何解决判题端安全性问题的? - 知乎_files/main_009.js
Normal file
104
document/Online Judge 是如何解决判题端安全性问题的? - 知乎_files/mckm.htm
Normal file
After Width: | Height: | Size: 133 KiB |
After Width: | Height: | Size: 24 KiB |
After Width: | Height: | Size: 49 B |
@ -0,0 +1 @@
|
||||
.logo-container{display:block;position:absolute;right:0;bottom:0;z-index:65534;font-size:0;height:16px;background:#b2b2b2;padding:0 1px;background:rgba(0,0,0,.3);opacity:.5}.logo-container a{font-size:0;background:#666;background:rgba(102,102,102,.6)}.logo-container a img{position:static;border:0}.logo-container .gap{display:inline-block;*display:inline;*zoom:1;width:1px;height:16px;background-color:#fff;opacity:.45;filter:alpha(opacity=45)}.logo-link{display:inline-block;*display:inline;*zoom:1;width:33px;height:10px;margin:3px 4px}.logo-close-img{display:inline-block;*display:inline;*zoom:1;width:8px;height:8px;margin:4px}.logo-mobile-container .logo-link{width:33px;margin:3px 4px}.feedback-container{display:none;position:absolute;z-index:65535;top:0;right:0;bottom:0;left:0;height:100%;background:#fcfcfc;font-size:12px;color:#666}.feedback-container a{font-size:12px}.feedback-container .intro{font-size:14px}.feedback-container .bk-logo{position:absolute;z-index:-1;right:10px;bottom:10px;width:68px;height:22px;background:url(../images/logo-fb-big.png);_background:0;_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod="image",src="../images/logo-fb-big.png")}.feedback-container.fd-small .bk-logo{right:5px;bottom:5px;width:50px;height:16px;background:url(../images/logo-fb-small.png);_background:0;_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod="image",src="../images/logo-fb-small.png")}.feedback-container.fd-small .closed-content{padding:5px;font-size:14px;font-weight:400}.reason-content{margin:0 auto}.reason-item{display:inline-block;*display:inline;*zoom:1;width:48px;border:1px solid #dbdbdb;line-height:2;text-align:center;padding:0 10px;margin:5px 10px 0 0;text-decoration:none;color:#666}.reason-item:hover{background-color:#eee}.fb-btn-cancel{display:block;margin-top:10px;text-decoration:none;color:#3389e3}.thx-content{display:none;margin-top:10px;text-align:center}.thx-content h5{font-size:16px;margin:0}.thx-content p{margin-top:5px;font-size:12px;text-align:center}.closed-content{display:none;padding:20px 0 0 20px;font-size:16px;font-weight:700}
|
After Width: | Height: | Size: 38 KiB |
1
document/Online Judge 是如何解决判题端安全性问题的? - 知乎_files/push.js
Normal file
@ -0,0 +1 @@
|
||||
!function(){var e=/([http|https]:\/\/[a-zA-Z0-9\_\.]+\.baidu\.com)/gi,r=window.location.href,t=document.referrer;if(!e.test(r)){var o="https://sp0.baidu.com/9_Q4simg2RQJ8t7jm9iCKT-xh_/s.gif";t?(o+="?r="+encodeURIComponent(document.referrer),r&&(o+="&l="+r)):r&&(o+="?l="+r);var i=new Image;i.src=o}}(window);
|
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 29 KiB |
After Width: | Height: | Size: 5.4 KiB |
After Width: | Height: | Size: 34 KiB |
After Width: | Height: | Size: 2.5 KiB |
After Width: | Height: | Size: 2.5 KiB |
After Width: | Height: | Size: 12 KiB |
After Width: | Height: | Size: 236 KiB |
After Width: | Height: | Size: 12 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 17 KiB |
56
document/Online Judge 是如何解决判题端安全性问题的? - 知乎_files/vendor.js
Normal file
2
document/Online Judge 是如何解决判题端安全性问题的? - 知乎_files/zap.js
Normal file
2
document/新建文本文档.txt
Normal file
@ -0,0 +1,2 @@
|
||||
https://www.imwxz.com/crack_0day/55.html
|
||||
https://www.zhihu.com/question/23067497
|
1453
document/某OJ系统恶意代码执行漏洞 - Matrix.html
Normal file
BIN
document/某OJ系统恶意代码执行漏洞 - Matrix_files/1.jpg
Normal file
After Width: | Height: | Size: 4.2 KiB |
BIN
document/某OJ系统恶意代码执行漏洞 - Matrix_files/10.jpg
Normal file
After Width: | Height: | Size: 4.5 KiB |
BIN
document/某OJ系统恶意代码执行漏洞 - Matrix_files/16629013858937311.jpg
Normal file
After Width: | Height: | Size: 45 KiB |
BIN
document/某OJ系统恶意代码执行漏洞 - Matrix_files/2.jpg
Normal file
After Width: | Height: | Size: 3.7 KiB |
BIN
document/某OJ系统恶意代码执行漏洞 - Matrix_files/3.jpg
Normal file
After Width: | Height: | Size: 3.7 KiB |
BIN
document/某OJ系统恶意代码执行漏洞 - Matrix_files/4.jpg
Normal file
After Width: | Height: | Size: 4.3 KiB |
BIN
document/某OJ系统恶意代码执行漏洞 - Matrix_files/GetCode.png
Normal file
After Width: | Height: | Size: 444 B |
94
document/某OJ系统恶意代码执行漏洞 - Matrix_files/analytics.js
Normal file
@ -0,0 +1,94 @@
|
||||
(function(){/*
|
||||
|
||||
Copyright The Closure Library Authors.
|
||||
SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
var n=this||self,p=function(a,b){a=a.split(".");var c=n;a[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||void 0===b?c=c[d]&&c[d]!==Object.prototype[d]?c[d]:c[d]={}:c[d]=b};var q={},r=function(){q.TAGGING=q.TAGGING||[];q.TAGGING[1]=!0};var t=function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])},v=function(a){for(var b in a)if(a.hasOwnProperty(b))return!0;return!1};var x=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i;var y=window,z=document,A=function(a,b){z.addEventListener?z.addEventListener(a,b,!1):z.attachEvent&&z.attachEvent("on"+a,b)};var B=/:[0-9]+$/,C=function(a,b,c){a=a.split("&");for(var d=0;d<a.length;d++){var e=a[d].split("=");if(decodeURIComponent(e[0]).replace(/\+/g," ")===b)return b=e.slice(1).join("="),c?b:decodeURIComponent(b).replace(/\+/g," ")}},F=function(a,b){b&&(b=String(b).toLowerCase());if("protocol"===b||"port"===b)a.protocol=D(a.protocol)||D(y.location.protocol);"port"===b?a.port=String(Number(a.hostname?a.port:y.location.port)||("http"==a.protocol?80:"https"==a.protocol?443:"")):"host"===b&&(a.hostname=(a.hostname||
|
||||
y.location.hostname).replace(B,"").toLowerCase());return E(a,b,void 0,void 0,void 0)},E=function(a,b,c,d,e){var f=D(a.protocol);b&&(b=String(b).toLowerCase());switch(b){case "url_no_fragment":d="";a&&a.href&&(d=a.href.indexOf("#"),d=0>d?a.href:a.href.substr(0,d));a=d;break;case "protocol":a=f;break;case "host":a=a.hostname.replace(B,"").toLowerCase();c&&(d=/^www\d*\./.exec(a))&&d[0]&&(a=a.substr(d[0].length));break;case "port":a=String(Number(a.port)||("http"==f?80:"https"==f?443:""));break;case "path":a.pathname||
|
||||
a.hostname||r();a="/"==a.pathname.substr(0,1)?a.pathname:"/"+a.pathname;a=a.split("/");a:if(d=d||[],c=a[a.length-1],Array.prototype.indexOf)d=d.indexOf(c),d="number"==typeof d?d:-1;else{for(e=0;e<d.length;e++)if(d[e]===c){d=e;break a}d=-1}0<=d&&(a[a.length-1]="");a=a.join("/");break;case "query":a=a.search.replace("?","");e&&(a=C(a,e,void 0));break;case "extension":a=a.pathname.split(".");a=1<a.length?a[a.length-1]:"";a=a.split("/")[0];break;case "fragment":a=a.hash.replace("#","");break;default:a=
|
||||
a&&a.href}return a},D=function(a){return a?a.replace(":","").toLowerCase():""},G=function(a){var b=z.createElement("a");a&&(b.href=a);var c=b.pathname;"/"!==c[0]&&(a||r(),c="/"+c);a=b.hostname.replace(B,"");return{href:b.href,protocol:b.protocol,host:b.host,hostname:a,pathname:c,search:b.search,hash:b.hash,port:b.port}};function H(){for(var a=I,b={},c=0;c<a.length;++c)b[a[c]]=c;return b}function J(){var a="ABCDEFGHIJKLMNOPQRSTUVWXYZ";a+=a.toLowerCase()+"0123456789-_";return a+"."}var I,K;
|
||||
function aa(a){function b(k){for(;d<a.length;){var m=a.charAt(d++),l=K[m];if(null!=l)return l;if(!/^[\s\xa0]*$/.test(m))throw Error("Unknown base64 encoding at char: "+m);}return k}I=I||J();K=K||H();for(var c="",d=0;;){var e=b(-1),f=b(0),g=b(64),h=b(64);if(64===h&&-1===e)return c;c+=String.fromCharCode(e<<2|f>>4);64!=g&&(c+=String.fromCharCode(f<<4&240|g>>2),64!=h&&(c+=String.fromCharCode(g<<6&192|h)))}};var L;var N=function(){var a=ba,b=ca,c=M(),d=function(g){a(g.target||g.srcElement||{})},e=function(g){b(g.target||g.srcElement||{})};if(!c.init){A("mousedown",d);A("keyup",d);A("submit",e);var f=HTMLFormElement.prototype.submit;HTMLFormElement.prototype.submit=function(){b(this);f.call(this)};c.init=!0}},O=function(a,b,c,d,e){a={callback:a,domains:b,fragment:2===c,placement:c,forms:d,sameHost:e};M().decorators.push(a)},P=function(a,b,c){for(var d=M().decorators,e={},f=0;f<d.length;++f){var g=d[f],h;if(h=
|
||||
!c||g.forms)a:{h=g.domains;var k=a,m=!!g.sameHost;if(h&&(m||k!==z.location.hostname))for(var l=0;l<h.length;l++)if(h[l]instanceof RegExp){if(h[l].test(k)){h=!0;break a}}else if(0<=k.indexOf(h[l])||m&&0<=h[l].indexOf(k)){h=!0;break a}h=!1}h&&(h=g.placement,void 0==h&&(h=g.fragment?2:1),h===b&&t(e,g.callback()))}return e},M=function(){var a={};var b=y.google_tag_data;y.google_tag_data=void 0===b?a:b;a=y.google_tag_data;b=a.gl;b&&b.decorators||(b={decorators:[]},a.gl=b);return b};var da=/(.*?)\*(.*?)\*(.*)/,ea=/([^?#]+)(\?[^#]*)?(#.*)?/;function Q(a){return new RegExp("(.*?)(^|&)"+a+"=([^&]*)&?(.*)")}
|
||||
var S=function(a){var b=[],c;for(c in a)if(a.hasOwnProperty(c)){var d=a[c];if(void 0!==d&&d===d&&null!==d&&"[object Object]"!==d.toString()){b.push(c);var e=b,f=e.push;d=String(d);I=I||J();K=K||H();for(var g=[],h=0;h<d.length;h+=3){var k=h+1<d.length,m=h+2<d.length,l=d.charCodeAt(h),u=k?d.charCodeAt(h+1):0,w=m?d.charCodeAt(h+2):0,fa=l>>2;l=(l&3)<<4|u>>4;u=(u&15)<<2|w>>6;w&=63;m||(w=64,k||(u=64));g.push(I[fa],I[l],I[u],I[w])}f.call(e,g.join(""))}}a=b.join("*");return["1",R(a),a].join("*")},R=function(a,
|
||||
b){a=[window.navigator.userAgent,(new Date).getTimezoneOffset(),window.navigator.userLanguage||window.navigator.language,Math.floor((new Date).getTime()/60/1E3)-(void 0===b?0:b),a].join("*");if(!(b=L)){b=Array(256);for(var c=0;256>c;c++){for(var d=c,e=0;8>e;e++)d=d&1?d>>>1^3988292384:d>>>1;b[c]=d}}L=b;b=4294967295;for(c=0;c<a.length;c++)b=b>>>8^L[(b^a.charCodeAt(c))&255];return((b^-1)>>>0).toString(36)},ia=function(a){return function(b){var c=G(y.location.href),d=c.search.replace("?","");var e=C(d,
|
||||
"_gl",!0);b.query=T(e||"")||{};e=F(c,"fragment");var f=e.match(Q("_gl"));b.fragment=T(f&&f[3]||"")||{};a&&ha(c,d,e)}};function U(a,b){if(a=Q(a).exec(b)){var c=a[2],d=a[4];b=a[1];d&&(b=b+c+d)}return b}
|
||||
var ha=function(a,b,c){function d(f,g){f=U("_gl",f);f.length&&(f=g+f);return f}if(y.history&&y.history.replaceState){var e=Q("_gl");if(e.test(b)||e.test(c))a=F(a,"path"),b=d(b,"?"),c=d(c,"#"),y.history.replaceState({},void 0,""+a+b+c)}},T=function(a){var b=void 0===b?3:b;try{if(a){a:{for(var c=0;3>c;++c){var d=da.exec(a);if(d){var e=d;break a}a=decodeURIComponent(a)}e=void 0}if(e&&"1"===e[1]){var f=e[2],g=e[3];a:{for(e=0;e<b;++e)if(f===R(g,e)){var h=!0;break a}h=!1}if(h){b={};var k=g?g.split("*"):
|
||||
[];for(g=0;g<k.length;g+=2)b[k[g]]=aa(k[g+1]);return b}}}}catch(m){}};function V(a,b,c,d){function e(k){k=U(a,k);var m=k.charAt(k.length-1);k&&"&"!==m&&(k+="&");return k+h}d=void 0===d?!1:d;var f=ea.exec(c);if(!f)return"";c=f[1];var g=f[2]||"";f=f[3]||"";var h=a+"="+b;d?f="#"+e(f.substring(1)):g="?"+e(g.substring(1));return""+c+g+f}
|
||||
function W(a,b){var c="FORM"===(a.tagName||"").toUpperCase(),d=P(b,1,c),e=P(b,2,c);b=P(b,3,c);v(d)&&(d=S(d),c?X("_gl",d,a):Y("_gl",d,a,!1));!c&&v(e)&&(c=S(e),Y("_gl",c,a,!0));for(var f in b)b.hasOwnProperty(f)&&Z(f,b[f],a)}function Z(a,b,c,d){if(c.tagName){if("a"===c.tagName.toLowerCase())return Y(a,b,c,d);if("form"===c.tagName.toLowerCase())return X(a,b,c)}if("string"==typeof c)return V(a,b,c,d)}function Y(a,b,c,d){c.href&&(a=V(a,b,c.href,void 0===d?!1:d),x.test(a)&&(c.href=a))}
|
||||
function X(a,b,c){if(c&&c.action){var d=(c.method||"").toLowerCase();if("get"===d){d=c.childNodes||[];for(var e=!1,f=0;f<d.length;f++){var g=d[f];if(g.name===a){g.setAttribute("value",b);e=!0;break}}e||(d=z.createElement("input"),d.setAttribute("type","hidden"),d.setAttribute("name",a),d.setAttribute("value",b),c.appendChild(d))}else"post"===d&&(a=V(a,b,c.action),x.test(a)&&(c.action=a))}}
|
||||
var ba=function(a){try{a:{for(var b=100;a&&0<b;){if(a.href&&a.nodeName.match(/^a(?:rea)?$/i)){var c=a;break a}a=a.parentNode;b--}c=null}if(c){var d=c.protocol;"http:"!==d&&"https:"!==d||W(c,c.hostname)}}catch(e){}},ca=function(a){try{if(a.action){var b=F(G(a.action),"host");W(a,b)}}catch(c){}};p("google_tag_data.glBridge.auto",function(a,b,c,d){N();O(a,b,"fragment"===c?2:1,!!d,!1)});p("google_tag_data.glBridge.passthrough",function(a,b,c){N();O(a,[E(y.location,"host",!0)],b,!!c,!0)});p("google_tag_data.glBridge.decorate",function(a,b,c){a=S(a);return Z("_gl",a,b,!!c)});p("google_tag_data.glBridge.generate",S);p("google_tag_data.glBridge.get",function(a,b){var c=ia(!!b);b=M();b.data||(b.data={query:{},fragment:{}},c(b.data));c={};if(b=b.data)t(c,b.query),a&&t(c,b.fragment);return c});})(window);
|
||||
(function(){function La(a){var b=1,c;if(a)for(b=0,c=a.length-1;0<=c;c--){var d=a.charCodeAt(c);b=(b<<6&268435455)+d+(d<<14);d=b&266338304;b=0!=d?b^d>>21:b}return b};/*
|
||||
|
||||
Copyright The Closure Library Authors.
|
||||
SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
var $c=function(a){this.C=a||[]};$c.prototype.set=function(a){this.C[a]=!0};$c.prototype.encode=function(){for(var a=[],b=0;b<this.C.length;b++)this.C[b]&&(a[Math.floor(b/6)]^=1<<b%6);for(b=0;b<a.length;b++)a[b]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(a[b]||0);return a.join("")+"~"};var ha=window.GoogleAnalyticsObject,wa;if(wa=void 0!=ha)wa=-1<(ha.constructor+"").indexOf("String");var ya;if(ya=wa){var fc=window.GoogleAnalyticsObject;ya=fc?fc.replace(/^[\s\xa0]+|[\s\xa0]+$/g,""):""}var gb=ya||"ga",jd=/^(?:utma\.)?\d+\.\d+$/,kd=/^amp-[\w.-]{22,64}$/,Ba=!1;var vd=new $c;function J(a){vd.set(a)}var Td=function(a){a=Dd(a);a=new $c(a);for(var b=vd.C.slice(),c=0;c<a.C.length;c++)b[c]=b[c]||a.C[c];return(new $c(b)).encode()},Dd=function(a){a=a.get(Gd);ka(a)||(a=[]);return a};var ea=function(a){return"function"==typeof a},ka=function(a){return"[object Array]"==Object.prototype.toString.call(Object(a))},qa=function(a){return void 0!=a&&-1<(a.constructor+"").indexOf("String")},D=function(a,b){return 0==a.indexOf(b)},sa=function(a){return a?a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,""):""},ra=function(){for(var a=O.navigator.userAgent+(M.cookie?M.cookie:"")+(M.referrer?M.referrer:""),b=a.length,c=O.history.length;0<c;)a+=c--^b++;return[hd()^La(a)&2147483647,Math.round((new Date).getTime()/
|
||||
1E3)].join(".")},ta=function(a){var b=M.createElement("img");b.width=1;b.height=1;b.src=a;return b},ua=function(){},K=function(a){if(encodeURIComponent instanceof Function)return encodeURIComponent(a);J(28);return a},L=function(a,b,c,d){try{a.addEventListener?a.addEventListener(b,c,!!d):a.attachEvent&&a.attachEvent("on"+b,c)}catch(e){J(27)}},f=/^[\w\-:/.?=&%!\[\]]+$/,Nd=/^[\w+/_-]+[=]{0,2}$/,ff=null,Id=function(a,b,c,d,e){if(!ff){ff={createScriptURL:function(ca){return ca},createHTML:function(ca){return ca}};
|
||||
try{ff=window.trustedTypes.createPolicy("google-analytics",ff)}catch(ca){}}if(a){var g=M.querySelector&&M.querySelector("script[nonce]")||null;g=g?g.nonce||g.getAttribute&&g.getAttribute("nonce")||"":"";c?(e=d="",b&&f.test(b)&&(d=' id="'+b+'"'),g&&Nd.test(g)&&(e=' nonce="'+g+'"'),f.test(a)&&M.write(ff.createHTML("<script"+d+e+' src="'+a+'">\x3c/script>'))):(c=M.createElement("script"),c.type="text/javascript",c.async=!0,c.src=ff.createScriptURL(a),d&&(c.onload=d),e&&(c.onerror=e),b&&(c.id=b),g&&c.setAttribute("nonce",
|
||||
g),a=M.getElementsByTagName("script")[0],a.parentNode.insertBefore(c,a))}},be=function(a,b){return E(M.location[b?"href":"search"],a)},E=function(a,b){return(a=a.match("(?:&|#|\\?)"+K(b).replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1")+"=([^&#]*)"))&&2==a.length?a[1]:""},xa=function(){var a=""+M.location.hostname;return 0==a.indexOf("www.")?a.substring(4):a},de=function(a,b){var c=a.indexOf(b);if(5==c||6==c)if(a=a.charAt(c+b.length),"/"==a||"?"==a||""==a||":"==a)return!0;return!1},za=function(a,b){if(1==
|
||||
b.length&&null!=b[0]&&"object"===typeof b[0])return b[0];for(var c={},d=Math.min(a.length+1,b.length),e=0;e<d;e++)if("object"===typeof b[e]){for(var g in b[e])b[e].hasOwnProperty(g)&&(c[g]=b[e][g]);break}else e<a.length&&(c[a[e]]=b[e]);return c},Ee=function(a,b){for(var c=0;c<a.length;c++)if(b==a[c])return!0;return!1};var ee=function(){this.oa=[];this.ea={};this.m={}};ee.prototype.set=function(a,b,c){this.oa.push(a);c?this.m[":"+a]=b:this.ea[":"+a]=b};ee.prototype.get=function(a){return this.m.hasOwnProperty(":"+a)?this.m[":"+a]:this.ea[":"+a]};ee.prototype.map=function(a){for(var b=0;b<this.oa.length;b++){var c=this.oa[b],d=this.get(c);d&&a(c,d)}};var O=window,M=document,va=function(a,b){return setTimeout(a,b)};var Qa=window,Za=document,G=function(a){var b=Qa._gaUserPrefs;if(b&&b.ioo&&b.ioo()||a&&!0===Qa["ga-disable-"+a])return!0;try{var c=Qa.external;if(c&&c._gaUserPrefs&&"oo"==c._gaUserPrefs)return!0}catch(g){}a=[];b=String(Za.cookie).split(";");for(c=0;c<b.length;c++){var d=b[c].split("="),e=d[0].replace(/^\s*|\s*$/g,"");e&&"AMP_TOKEN"==e&&((d=d.slice(1).join("=").replace(/^\s*|\s*$/g,""))&&(d=decodeURIComponent(d)),a.push(d))}for(b=0;b<a.length;b++)if("$OPT_OUT"==a[b])return!0;return Za.getElementById("__gaOptOutExtension")?
|
||||
!0:!1};var Ca=function(a){var b=[],c=M.cookie.split(";");a=new RegExp("^\\s*"+a+"=\\s*(.*?)\\s*$");for(var d=0;d<c.length;d++){var e=c[d].match(a);e&&b.push(e[1])}return b},zc=function(a,b,c,d,e,g,ca){e=G(e)?!1:eb.test(M.location.hostname)||"/"==c&&vc.test(d)?!1:!0;if(!e)return!1;b&&1200<b.length&&(b=b.substring(0,1200));c=a+"="+b+"; path="+c+"; ";g&&(c+="expires="+(new Date((new Date).getTime()+g)).toGMTString()+"; ");d&&"none"!==d&&(c+="domain="+d+";");ca&&(c+=ca+";");d=M.cookie;M.cookie=c;if(!(d=d!=M.cookie))a:{a=
|
||||
Ca(a);for(d=0;d<a.length;d++)if(b==a[d]){d=!0;break a}d=!1}return d},Cc=function(a){return encodeURIComponent?encodeURIComponent(a).replace(/\(/g,"%28").replace(/\)/g,"%29"):a},vc=/^(www\.)?google(\.com?)?(\.[a-z]{2})?$/,eb=/(^|\.)doubleclick\.net$/i;var Oe=function(a){var b=[],c=M.cookie.split(";");a=new RegExp("^\\s*"+(a||"_gac")+"_(UA-\\d+-\\d+)=\\s*(.+?)\\s*$");for(var d=0;d<c.length;d++){var e=c[d].match(a);e&&b.push({ja:e[1],value:e[2],timestamp:Number(e[2].split(".")[1])||0})}b.sort(function(g,ca){return ca.timestamp-g.timestamp});return b};
|
||||
function df(a,b,c){b=Oe(b);var d={};if(!b||!b.length)return d;for(var e=0;e<b.length;e++){var g=b[e].value.split(".");if("1"!==g[0]||c&&3>g.length||!c&&3!==g.length)a&&(a.na=!0);else if(Number(g[1])){d[b[e].ja]?a&&(a.pa=!0):d[b[e].ja]=[];var ca={version:g[0],timestamp:1E3*Number(g[1]),qa:g[2]};c&&3<g.length&&(ca.labels=g.slice(3));d[b[e].ja].push(ca)}}return d};var Fa,Ga,fb,Ab,ja=/^https?:\/\/[^/]*cdn\.ampproject\.org\//,Ue=/^(?:www\.|m\.|amp\.)+/,Ub=[],da=function(a){if(ye(a[Kd])){if(void 0===Ab){var b;if(b=(b=De.get())&&b._ga||void 0)Ab=b,J(81)}if(void 0!==Ab)return a[Q]||(a[Q]=Ab),!1}if(a[Kd]){J(67);if(a[ac]&&"cookie"!=a[ac])return!1;if(void 0!==Ab)a[Q]||(a[Q]=Ab);else{a:{b=String(a[W]||xa());var c=String(a[Yb]||"/"),d=Ca(String(a[U]||"_ga"));b=na(d,b,c);if(!b||jd.test(b))b=!0;else if(b=Ca("AMP_TOKEN"),0==b.length)b=!0;else{if(1==b.length&&(b=decodeURIComponent(b[0]),
|
||||
"$RETRIEVING"==b||"$OPT_OUT"==b||"$ERROR"==b||"$NOT_FOUND"==b)){b=!0;break a}b=!1}}if(b&&tc(ic,String(a[Na])))return!0}}return!1},ic=function(){Z.D([ua])},tc=function(a,b){var c=Ca("AMP_TOKEN");if(1<c.length)return J(55),!1;c=decodeURIComponent(c[0]||"");if("$OPT_OUT"==c||"$ERROR"==c||G(b))return J(62),!1;if(!ja.test(M.referrer)&&"$NOT_FOUND"==c)return J(68),!1;if(void 0!==Ab)return J(56),va(function(){a(Ab)},0),!0;if(Fa)return Ub.push(a),!0;if("$RETRIEVING"==c)return J(57),va(function(){tc(a,b)},
|
||||
1E4),!0;Fa=!0;c&&"$"!=c[0]||(xc("$RETRIEVING",3E4),setTimeout(Mc,3E4),c="");return Pc(c,b)?(Ub.push(a),!0):!1},Pc=function(a,b,c){if(!window.JSON)return J(58),!1;var d=O.XMLHttpRequest;if(!d)return J(59),!1;var e=new d;if(!("withCredentials"in e))return J(60),!1;e.open("POST",(c||"https://ampcid.google.com/v1/publisher:getClientId")+"?key=AIzaSyA65lEHUEizIsNtlbNo-l2K18dT680nsaM",!0);e.withCredentials=!0;e.setRequestHeader("Content-Type","text/plain");e.onload=function(){Fa=!1;if(4==e.readyState){try{200!=
|
||||
e.status&&(J(61),Qc("","$ERROR",3E4));var g=JSON.parse(e.responseText);g.optOut?(J(63),Qc("","$OPT_OUT",31536E6)):g.clientId?Qc(g.clientId,g.securityToken,31536E6):!c&&g.alternateUrl?(Ga&&clearTimeout(Ga),Fa=!0,Pc(a,b,g.alternateUrl)):(J(64),Qc("","$NOT_FOUND",36E5))}catch(ca){J(65),Qc("","$ERROR",3E4)}e=null}};d={originScope:"AMP_ECID_GOOGLE"};a&&(d.securityToken=a);e.send(JSON.stringify(d));Ga=va(function(){J(66);Qc("","$ERROR",3E4)},1E4);return!0},Mc=function(){Fa=!1},xc=function(a,b){if(void 0===
|
||||
fb){fb="";for(var c=id(),d=0;d<c.length;d++){var e=c[d];if(zc("AMP_TOKEN",encodeURIComponent(a),"/",e,"",b)){fb=e;return}}}zc("AMP_TOKEN",encodeURIComponent(a),"/",fb,"",b)},Qc=function(a,b,c){Ga&&clearTimeout(Ga);b&&xc(b,c);Ab=a;b=Ub;Ub=[];for(c=0;c<b.length;c++)b[c](a)},ye=function(a){a:{if(ja.test(M.referrer)){var b=M.location.hostname.replace(Ue,"");b:{var c=M.referrer;c=c.replace(/^https?:\/\//,"");var d=c.replace(/^[^/]+/,"").split("/"),e=d[2];d=(d="s"==e?d[3]:e)?decodeURIComponent(d):d;if(!d){if(0==
|
||||
c.indexOf("xn--")){c="";break b}(c=c.match(/(.*)\.cdn\.ampproject\.org\/?$/))&&2==c.length&&(d=c[1].replace(/-/g,".").replace(/\.\./g,"-"))}c=d?d.replace(Ue,""):""}(d=b===c)||(c="."+c,d=b.substring(b.length-c.length,b.length)===c);if(d){b=!0;break a}else J(78)}b=!1}return b&&!1!==a};var bd=function(a){return(a?"https:":Ba||"https:"==M.location.protocol?"https:":"http:")+"//www.google-analytics.com"},Ge=function(a){switch(a){default:case 1:return"https://www.google-analytics.com/gtm/js?id=";case 2:return"https://www.googletagmanager.com/gtag/js?id="}},Da=function(a){this.name="len";this.message=a+"-8192"},ba=function(a,b,c){c=c||ua;if(2036>=b.length)wc(a,b,c);else if(8192>=b.length)x(a,b,c)||wd(a,b,c)||wc(a,b,c);else throw ge("len",b.length),new Da(b.length);},pe=function(a,b,
|
||||
c,d){d=d||ua;wd(a+"?"+b,"",d,c)},wc=function(a,b,c){var d=ta(a+"?"+b);d.onload=d.onerror=function(){d.onload=null;d.onerror=null;c()}},wd=function(a,b,c,d){var e=O.XMLHttpRequest;if(!e)return!1;var g=new e;if(!("withCredentials"in g))return!1;a=a.replace(/^http:/,"https:");g.open("POST",a,!0);g.withCredentials=!0;g.setRequestHeader("Content-Type","text/plain");g.onreadystatechange=function(){if(4==g.readyState){if(d&&"text/plain"===g.getResponseHeader("Content-Type"))try{Ea(d,g.responseText,c)}catch(ca){ge("xhr",
|
||||
"rsp"),c()}else c();g=null}};g.send(b);return!0},Ea=function(a,b,c){if(1>b.length)ge("xhr","ver","0"),c();else if(3<a.count++)ge("xhr","tmr",""+a.count),c();else{var d=b.charAt(0);if("1"===d)oc(a,b.substring(1),c);else if(a.V&&"2"===d){var e=b.substring(1).split(","),g=0;b=function(){++g===e.length&&c()};for(d=0;d<e.length;d++)oc(a,e[d],b)}else ge("xhr","ver",String(b.length)),c()}},oc=function(a,b,c){if(0===b.length)c();else{var d=b.charAt(0);switch(d){case "d":pe("https://stats.g.doubleclick.net/j/collect",
|
||||
a.U,a,c);break;case "g":wc("https://www.google.%/ads/ga-audiences".replace("%","com"),a.google,c);(b=b.substring(1))&&(/^[a-z.]{1,6}$/.test(b)?wc("https://www.google.%/ads/ga-audiences".replace("%",b),a.google,ua):ge("tld","bcc",b));break;case "G":if(a.V){a.V("G-"+b.substring(1));c();break}case "x":if(a.V){a.V();c();break}default:ge("xhr","brc",d),c()}}},x=function(a,b,c){return O.navigator.sendBeacon?O.navigator.sendBeacon(a,b)?(c(),!0):!1:!1},ge=function(a,b,c){1<=100*Math.random()||G("?")||(a=
|
||||
["t=error","_e="+a,"_v=j91","sr=1"],b&&a.push("_f="+b),c&&a.push("_m="+K(c.substring(0,100))),a.push("aip=1"),a.push("z="+hd()),wc(bd(!0)+"/u/d",a.join("&"),ua))};var qc=function(){return O.gaData=O.gaData||{}},h=function(a){var b=qc();return b[a]=b[a]||{}};var Ha=function(){this.M=[]};Ha.prototype.add=function(a){this.M.push(a)};Ha.prototype.D=function(a){try{for(var b=0;b<this.M.length;b++){var c=a.get(this.M[b]);c&&ea(c)&&c.call(O,a)}}catch(d){}b=a.get(Ia);b!=ua&&ea(b)&&(a.set(Ia,ua,!0),setTimeout(b,10))};function Ja(a){if(100!=a.get(Ka)&&La(P(a,Q))%1E4>=100*R(a,Ka))throw"abort";}function Ma(a){if(G(P(a,Na)))throw"abort";}function Oa(){var a=M.location.protocol;if("http:"!=a&&"https:"!=a)throw"abort";}
|
||||
function Pa(a){try{O.navigator.sendBeacon?J(42):O.XMLHttpRequest&&"withCredentials"in new O.XMLHttpRequest&&J(40)}catch(c){}a.set(ld,Td(a),!0);a.set(Ac,R(a,Ac)+1);var b=[];ue.map(function(c,d){d.F&&(c=a.get(c),void 0!=c&&c!=d.defaultValue&&("boolean"==typeof c&&(c*=1),b.push(d.F+"="+K(""+c))))});!1===a.get(xe)&&b.push("npa=1");b.push("z="+Bd());a.set(Ra,b.join("&"),!0)}
|
||||
function Sa(a){var b=P(a,fa);!b&&a.get(Vd)&&(b="beacon");var c=P(a,gd),d=P(a,oe),e=c||(d||bd(!1)+"")+"/collect";switch(P(a,ad)){case "d":e=c||(d||bd(!1)+"")+"/j/collect";b=a.get(qe)||void 0;pe(e,P(a,Ra),b,a.Z(Ia));break;default:b?(c=P(a,Ra),d=(d=a.Z(Ia))||ua,"image"==b?wc(e,c,d):"xhr"==b&&wd(e,c,d)||"beacon"==b&&x(e,c,d)||ba(e,c,d)):ba(e,P(a,Ra),a.Z(Ia))}e=P(a,Na);e=h(e);b=e.hitcount;e.hitcount=b?b+1:1;e.first_hit||(e.first_hit=(new Date).getTime());e=P(a,Na);delete h(e).pending_experiments;a.set(Ia,
|
||||
ua,!0)}function Hc(a){qc().expId&&a.set(Nc,qc().expId);qc().expVar&&a.set(Oc,qc().expVar);var b=P(a,Na);if(b=h(b).pending_experiments){var c=[];for(d in b)b.hasOwnProperty(d)&&b[d]&&c.push(encodeURIComponent(d)+"."+encodeURIComponent(b[d]));var d=c.join("!")}else d=void 0;d&&((b=a.get(m))&&(d=b+"!"+d),a.set(m,d,!0))}function cd(){if(O.navigator&&"preview"==O.navigator.loadPurpose)throw"abort";}
|
||||
function yd(a){var b=O.gaDevIds||[];if(ka(b)){var c=a.get("&did");qa(c)&&0<c.length&&(b=b.concat(c.split(",")));c=[];for(var d=0;d<b.length;d++)Ee(c,b[d])||c.push(b[d]);0!=c.length&&a.set("&did",c.join(","),!0)}}function vb(a){if(!a.get(Na))throw"abort";}
|
||||
function Pe(a){try{if(!a.get(Qe)&&(a.set(Qe,!0),!a.get(">m"))){var b=!1,c=O.location.search.split("?")[1];c&&Ee(c.split("&"),"gtm_debug=x")&&(b=!0);!b&&D(M.referrer,"https://tagassistant.google.com/")&&(b=!0);!b&&Ee(M.cookie.split("; "),"__TAG_ASSISTANT=x")&&(b=!0);!b&&O.__TAG_ASSISTANT_API&&(b=!0);if(b){O["google.tagmanager.debugui2.queue"]||(O["google.tagmanager.debugui2.queue"]=[],Id("https://www.google-analytics.com/debug/bootstrap"));var d=M.currentScript;O["google.tagmanager.debugui2.queue"].push({messageType:"LEGACY_CONTAINER_STARTING",
|
||||
data:{id:a.get(Na),scriptSource:d&&d.src||""}})}}}catch(e){}};var hd=function(){return Math.round(2147483647*Math.random())},Bd=function(){try{var a=new Uint32Array(1);O.crypto.getRandomValues(a);return a[0]&2147483647}catch(b){return hd()}};function Ta(a){var b=R(a,Ua);500<=b&&J(15);var c=P(a,Va);if("transaction"!=c&&"item"!=c){c=R(a,Wa);var d=(new Date).getTime(),e=R(a,Xa);0==e&&a.set(Xa,d);e=Math.round(2*(d-e)/1E3);0<e&&(c=Math.min(c+e,20),a.set(Xa,d));if(0>=c)throw"abort";a.set(Wa,--c)}a.set(Ua,++b)};var Ya=function(){this.data=new ee};Ya.prototype.get=function(a){var b=$a(a),c=this.data.get(a);b&&void 0==c&&(c=ea(b.defaultValue)?b.defaultValue():b.defaultValue);return b&&b.Z?b.Z(this,a,c):c};var P=function(a,b){a=a.get(b);return void 0==a?"":""+a},R=function(a,b){a=a.get(b);return void 0==a||""===a?0:Number(a)};Ya.prototype.Z=function(a){return(a=this.get(a))&&ea(a)?a:ua};
|
||||
Ya.prototype.set=function(a,b,c){if(a)if("object"==typeof a)for(var d in a)a.hasOwnProperty(d)&&ab(this,d,a[d],c);else ab(this,a,b,c)};var ab=function(a,b,c,d){if(void 0!=c)switch(b){case Na:wb.test(c)}var e=$a(b);e&&e.o?e.o(a,b,c,d):a.data.set(b,c,d)};var ue=new ee,ve=[],bb=function(a,b,c,d,e){this.name=a;this.F=b;this.Z=d;this.o=e;this.defaultValue=c},$a=function(a){var b=ue.get(a);if(!b)for(var c=0;c<ve.length;c++){var d=ve[c],e=d[0].exec(a);if(e){b=d[1](e);ue.set(b.name,b);break}}return b},yc=function(a){var b;ue.map(function(c,d){d.F==a&&(b=d)});return b&&b.name},S=function(a,b,c,d,e){a=new bb(a,b,c,d,e);ue.set(a.name,a);return a.name},cb=function(a,b){ve.push([new RegExp("^"+a+"$"),b])},T=function(a,b,c){return S(a,b,c,void 0,db)},db=function(){};var hb=T("apiVersion","v"),ib=T("clientVersion","_v");S("anonymizeIp","aip");var jb=S("adSenseId","a"),Va=S("hitType","t"),Ia=S("hitCallback"),Ra=S("hitPayload");S("nonInteraction","ni");S("currencyCode","cu");S("dataSource","ds");var Vd=S("useBeacon",void 0,!1),fa=S("transport");S("sessionControl","sc","");S("sessionGroup","sg");S("queueTime","qt");var Ac=S("_s","_s");S("screenName","cd");var kb=S("location","dl",""),lb=S("referrer","dr"),mb=S("page","dp","");S("hostname","dh");
|
||||
var nb=S("language","ul"),ob=S("encoding","de");S("title","dt",function(){return M.title||void 0});cb("contentGroup([0-9]+)",function(a){return new bb(a[0],"cg"+a[1])});var pb=S("screenColors","sd"),qb=S("screenResolution","sr"),rb=S("viewportSize","vp"),sb=S("javaEnabled","je"),tb=S("flashVersion","fl");S("campaignId","ci");S("campaignName","cn");S("campaignSource","cs");S("campaignMedium","cm");S("campaignKeyword","ck");S("campaignContent","cc");
|
||||
var ub=S("eventCategory","ec"),xb=S("eventAction","ea"),yb=S("eventLabel","el"),zb=S("eventValue","ev"),Bb=S("socialNetwork","sn"),Cb=S("socialAction","sa"),Db=S("socialTarget","st"),Eb=S("l1","plt"),Fb=S("l2","pdt"),Gb=S("l3","dns"),Hb=S("l4","rrt"),Ib=S("l5","srt"),Jb=S("l6","tcp"),Kb=S("l7","dit"),Lb=S("l8","clt"),Ve=S("l9","_gst"),We=S("l10","_gbt"),Xe=S("l11","_cst"),Ye=S("l12","_cbt"),Mb=S("timingCategory","utc"),Nb=S("timingVar","utv"),Ob=S("timingLabel","utl"),Pb=S("timingValue","utt");
|
||||
S("appName","an");S("appVersion","av","");S("appId","aid","");S("appInstallerId","aiid","");S("exDescription","exd");S("exFatal","exf");var Nc=S("expId","xid"),Oc=S("expVar","xvar"),m=S("exp","exp"),Rc=S("_utma","_utma"),Sc=S("_utmz","_utmz"),Tc=S("_utmht","_utmht"),Ua=S("_hc",void 0,0),Xa=S("_ti",void 0,0),Wa=S("_to",void 0,20);cb("dimension([0-9]+)",function(a){return new bb(a[0],"cd"+a[1])});cb("metric([0-9]+)",function(a){return new bb(a[0],"cm"+a[1])});S("linkerParam",void 0,void 0,Bc,db);
|
||||
var Ze=T("_cd2l",void 0,!1),ld=S("usage","_u"),Gd=S("_um");S("forceSSL",void 0,void 0,function(){return Ba},function(a,b,c){J(34);Ba=!!c});var ed=S("_j1","jid"),ia=S("_j2","gjid");cb("\\&(.*)",function(a){var b=new bb(a[0],a[1]),c=yc(a[0].substring(1));c&&(b.Z=function(d){return d.get(c)},b.o=function(d,e,g,ca){d.set(c,g,ca)},b.F=void 0);return b});
|
||||
var Qb=T("_oot"),dd=S("previewTask"),Rb=S("checkProtocolTask"),md=S("validationTask"),Sb=S("checkStorageTask"),Uc=S("historyImportTask"),Tb=S("samplerTask"),Vb=S("_rlt"),Wb=S("buildHitTask"),Xb=S("sendHitTask"),Vc=S("ceTask"),zd=S("devIdTask"),Cd=S("timingTask"),Ld=S("displayFeaturesTask"),oa=S("customTask"),ze=S("fpsCrossDomainTask"),Re=T("_cta"),V=T("name"),Q=T("clientId","cid"),n=T("clientIdTime"),xd=T("storedClientId"),Ad=S("userId","uid"),Na=T("trackingId","tid"),U=T("cookieName",void 0,"_ga"),
|
||||
W=T("cookieDomain"),Yb=T("cookiePath",void 0,"/"),Zb=T("cookieExpires",void 0,63072E3),Hd=T("cookieUpdate",void 0,!0),Be=T("cookieFlags",void 0,""),$b=T("legacyCookieDomain"),Wc=T("legacyHistoryImport",void 0,!0),ac=T("storage",void 0,"cookie"),bc=T("allowLinker",void 0,!1),cc=T("allowAnchor",void 0,!0),Ka=T("sampleRate","sf",100),dc=T("siteSpeedSampleRate",void 0,1),ec=T("alwaysSendReferrer",void 0,!1),I=T("_gid","_gid"),la=T("_gcn"),Kd=T("useAmpClientId"),ce=T("_gclid"),fe=T("_gt"),he=T("_ge",void 0,
|
||||
7776E6),ie=T("_gclsrc"),je=T("storeGac",void 0,!0),oe=S("_x_19"),Ae=S("_fplc","_fplc"),F=T("_cs"),Je=T("_useUp",void 0,!1),Le=S("up","up"),Qe=S("_tac",void 0,!1),Se=T("_gbraid"),Te=T("_gbt"),bf=T("_gbe",void 0,7776E6),gd=S("transportUrl"),Md=S("_r","_r"),Od=S("_slc","_slc"),qe=S("_dp"),ad=S("_jt",void 0,"n"),Ud=S("allowAdFeatures",void 0,!0),xe=S("allowAdPersonalizationSignals",void 0,!0);
|
||||
function X(a,b,c,d){b[a]=function(){try{return d&&J(d),c.apply(this,arguments)}catch(e){throw ge("exc",a,e&&e.name),e;}}};var Ed=function(a){if("cookie"==a.get(ac))return a=Ca("FPLC"),0<a.length?a[0]:void 0},Fe=function(a){var b;if(b=P(a,oe)&&a.get(Ze))b=De.get(a.get(cc)),b=!(b&&b._fplc);b&&a.set(Ae,Ed(a)||"0")};var aa=function(a){var b=Math.min(R(a,dc),100);return La(P(a,Q))%100>=b?!1:!0},gc=function(a){var b={};if(Ec(b)||Fc(b)){var c=b[Eb];void 0==c||Infinity==c||isNaN(c)||(0<c?(Y(b,Gb),Y(b,Jb),Y(b,Ib),Y(b,Fb),Y(b,Hb),Y(b,Kb),Y(b,Lb),Y(b,Ve),Y(b,We),Y(b,Xe),Y(b,Ye),va(function(){a(b)},10)):L(O,"load",function(){gc(a)},!1))}},Ec=function(a){var b=O.performance||O.webkitPerformance;b=b&&b.timing;if(!b)return!1;var c=b.navigationStart;if(0==c)return!1;a[Eb]=b.loadEventStart-c;a[Gb]=b.domainLookupEnd-b.domainLookupStart;
|
||||
a[Jb]=b.connectEnd-b.connectStart;a[Ib]=b.responseStart-b.requestStart;a[Fb]=b.responseEnd-b.responseStart;a[Hb]=b.fetchStart-c;a[Kb]=b.domInteractive-c;a[Lb]=b.domContentLoadedEventStart-c;a[Ve]=N.L-c;a[We]=N.ya-c;O.google_tag_manager&&O.google_tag_manager._li&&(b=O.google_tag_manager._li,a[Xe]=b.cst,a[Ye]=b.cbt);return!0},Fc=function(a){if(O.top!=O)return!1;var b=O.external,c=b&&b.onloadT;b&&!b.isValidLoadTime&&(c=void 0);2147483648<c&&(c=void 0);0<c&&b.setPageReadyTime();if(void 0==c)return!1;
|
||||
a[Eb]=c;return!0},Y=function(a,b){var c=a[b];if(isNaN(c)||Infinity==c||0>c)a[b]=void 0},Fd=function(a){return function(b){if("pageview"==b.get(Va)&&!a.I){a.I=!0;var c=aa(b),d=0<E(P(b,kb),"gclid").length,e=0<E(P(b,kb),"wbraid").length;(c||d||e)&&gc(function(g){c&&a.send("timing",g);(d||e)&&a.send("adtiming",g)})}}};var hc=!1,mc=function(a){if("cookie"==P(a,ac)){if(a.get(Hd)||P(a,xd)!=P(a,Q)){var b=1E3*R(a,Zb);ma(a,Q,U,b);a.data.set(xd,P(a,Q))}(a.get(Hd)||uc(a)!=P(a,I))&&ma(a,I,la,864E5);if(a.get(je)){if(b=P(a,ce)){var c=Math.min(R(a,he),1E3*R(a,Zb));c=0===c?0:Math.min(c,1E3*R(a,fe)+c-(new Date).getTime());a.data.set(he,c);var d={},e=P(a,fe),g=P(a,ie),ca=kc(P(a,Yb)),l=lc(P(a,W)),k=P(a,Na),w=P(a,Be);g&&"aw.ds"!=g?d&&(d.ua=!0):(b=["1",e,Cc(b)].join("."),0<=c&&(d&&(d.ta=!0),zc("_gac_"+Cc(k),b,ca,l,k,c,w)));le(d)}}else J(75);
|
||||
a.get(je)&&(b=P(a,Se))&&(c=Math.min(R(a,bf),1E3*R(a,Zb)),c=0===c?0:Math.min(c,1E3*R(a,Te)+c-(new Date).getTime()),a.data.set(bf,c),d={},w=P(a,Te),ca=kc(P(a,Yb)),l=lc(P(a,W)),k=P(a,Na),a=P(a,Be),b=["1",w,Cc(b)].join("."),0<=c&&(d&&(d.ta=!0),zc("_gac_gb_"+Cc(k),b,ca,l,k,c,a)),ef(d))}},ma=function(a,b,c,d){var e=nd(a,b);if(e){c=P(a,c);var g=kc(P(a,Yb)),ca=lc(P(a,W)),l=P(a,Be),k=P(a,Na);if("auto"!=ca)zc(c,e,g,ca,k,d,l)&&(hc=!0);else{J(32);for(var w=id(),Ce=0;Ce<w.length;Ce++)if(ca=w[Ce],a.data.set(W,
|
||||
ca),e=nd(a,b),zc(c,e,g,ca,k,d,l)){hc=!0;return}a.data.set(W,"auto")}}},uc=function(a){var b=Ca(P(a,la));return Xd(a,b)},nc=function(a){if("cookie"==P(a,ac)&&!hc&&(mc(a),!hc))throw"abort";},Yc=function(a){if(a.get(Wc)){var b=P(a,W),c=P(a,$b)||xa(),d=Xc("__utma",c,b);d&&(J(19),a.set(Tc,(new Date).getTime(),!0),a.set(Rc,d.R),(b=Xc("__utmz",c,b))&&d.hash==b.hash&&a.set(Sc,b.R))}},nd=function(a,b){b=Cc(P(a,b));var c=lc(P(a,W)).split(".").length;a=jc(P(a,Yb));1<a&&(c+="-"+a);return b?["GA1",c,b].join("."):
|
||||
""},Xd=function(a,b){return na(b,P(a,W),P(a,Yb))},na=function(a,b,c){if(!a||1>a.length)J(12);else{for(var d=[],e=0;e<a.length;e++){var g=a[e];var ca=g.split(".");var l=ca.shift();("GA1"==l||"1"==l)&&1<ca.length?(g=ca.shift().split("-"),1==g.length&&(g[1]="1"),g[0]*=1,g[1]*=1,ca={H:g,s:ca.join(".")}):ca=kd.test(g)?{H:[0,0],s:g}:void 0;ca&&d.push(ca)}if(1==d.length)return J(13),d[0].s;if(0==d.length)J(12);else{J(14);d=Gc(d,lc(b).split(".").length,0);if(1==d.length)return d[0].s;d=Gc(d,jc(c),1);1<d.length&&
|
||||
J(41);return d[0]&&d[0].s}}},Gc=function(a,b,c){for(var d=[],e=[],g,ca=0;ca<a.length;ca++){var l=a[ca];l.H[c]==b?d.push(l):void 0==g||l.H[c]<g?(e=[l],g=l.H[c]):l.H[c]==g&&e.push(l)}return 0<d.length?d:e},lc=function(a){return 0==a.indexOf(".")?a.substr(1):a},id=function(){var a=[],b=xa().split(".");if(4==b.length){var c=b[b.length-1];if(parseInt(c,10)==c)return["none"]}for(c=b.length-2;0<=c;c--)a.push(b.slice(c).join("."));b=M.location.hostname;eb.test(b)||vc.test(b)||a.push("none");return a},kc=
|
||||
function(a){if(!a)return"/";1<a.length&&a.lastIndexOf("/")==a.length-1&&(a=a.substr(0,a.length-1));0!=a.indexOf("/")&&(a="/"+a);return a},jc=function(a){a=kc(a);return"/"==a?1:a.split("/").length},le=function(a){a.ta&&J(77);a.na&&J(74);a.pa&&J(73);a.ua&&J(69)},ef=function(a){a.ta&&J(85);a.na&&J(86);a.pa&&J(87)};function Xc(a,b,c){"none"==b&&(b="");var d=[],e=Ca(a);a="__utma"==a?6:2;for(var g=0;g<e.length;g++){var ca=(""+e[g]).split(".");ca.length>=a&&d.push({hash:ca[0],R:e[g],O:ca})}if(0!=d.length)return 1==d.length?d[0]:Zc(b,d)||Zc(c,d)||Zc(null,d)||d[0]}function Zc(a,b){if(null==a)var c=a=1;else c=La(a),a=La(D(a,".")?a.substring(1):"."+a);for(var d=0;d<b.length;d++)if(b[d].hash==c||b[d].hash==a)return b[d]};var Jc=new RegExp(/^https?:\/\/([^\/:]+)/),De=O.google_tag_data.glBridge,Kc=/(.*)([?&#])(?:_ga=[^&#]*)(?:&?)(.*)/,od=/(.*)([?&#])(?:_gac=[^&#]*)(?:&?)(.*)/;function Bc(a){if(a.get(Ze))return J(35),De.generate($e(a));var b=P(a,Q),c=P(a,I)||"";b="_ga=2."+K(pa(c+b,0)+"."+c+"-"+b);(a=af(a))?(J(44),a="&_gac=1."+K([pa(a.qa,0),a.timestamp,a.qa].join("."))):a="";return b+a}
|
||||
function Ic(a,b){var c=new Date,d=O.navigator,e=d.plugins||[];a=[a,d.userAgent,c.getTimezoneOffset(),c.getYear(),c.getDate(),c.getHours(),c.getMinutes()+b];for(b=0;b<e.length;++b)a.push(e[b].description);return La(a.join("."))}function pa(a,b){var c=new Date,d=O.navigator,e=c.getHours()+Math.floor((c.getMinutes()+b)/60);return La([a,d.userAgent,d.language||"",c.getTimezoneOffset(),c.getYear(),c.getDate()+Math.floor(e/24),(24+e)%24,(60+c.getMinutes()+b)%60].join("."))}
|
||||
var Dc=function(a){J(48);this.target=a;this.T=!1};Dc.prototype.ca=function(a,b){if(a){if(this.target.get(Ze))return De.decorate($e(this.target),a,b);if(a.tagName){if("a"==a.tagName.toLowerCase()){a.href&&(a.href=qd(this,a.href,b));return}if("form"==a.tagName.toLowerCase())return rd(this,a)}if("string"==typeof a)return qd(this,a,b)}};
|
||||
var qd=function(a,b,c){var d=Kc.exec(b);d&&3<=d.length&&(b=d[1]+(d[3]?d[2]+d[3]:""));(d=od.exec(b))&&3<=d.length&&(b=d[1]+(d[3]?d[2]+d[3]:""));a=a.target.get("linkerParam");d=b.indexOf("?");var e=b.indexOf("#");b=c?b+((-1==e?"#":"&")+a):-1==e?b+((-1===d?"?":"&")+a):b.substring(0,e)+(-1===d||d>e?"?":"&")+a+b.substring(e);b=b.replace(/&+_ga=/,"&_ga=");return b=b.replace(/&+_gac=/,"&_gac=")},rd=function(a,b){if(b&&b.action)if("get"==b.method.toLowerCase()){a=a.target.get("linkerParam").split("&");for(var c=
|
||||
0;c<a.length;c++){var d=a[c].split("="),e=d[1];d=d[0];for(var g=b.childNodes||[],ca=!1,l=0;l<g.length;l++)if(g[l].name==d){g[l].setAttribute("value",e);ca=!0;break}ca||(g=M.createElement("input"),g.setAttribute("type","hidden"),g.setAttribute("name",d),g.setAttribute("value",e),b.appendChild(g))}}else"post"==b.method.toLowerCase()&&(b.action=qd(a,b.action))};
|
||||
Dc.prototype.S=function(a,b,c){function d(g){try{g=g||O.event;a:{var ca=g.target||g.srcElement;for(g=100;ca&&0<g;){if(ca.href&&ca.nodeName.match(/^a(?:rea)?$/i)){var l=ca;break a}ca=ca.parentNode;g--}l={}}("http:"==l.protocol||"https:"==l.protocol)&&sd(a,l.hostname||"")&&l.href&&(l.href=qd(e,l.href,b))}catch(k){J(26)}}var e=this;this.target.get(Ze)?De.auto(function(){return $e(e.target)},a,b?"fragment":"",c):(this.T||(this.T=!0,L(M,"mousedown",d,!1),L(M,"keyup",d,!1)),c&&L(M,"submit",function(g){g=
|
||||
g||O.event;if((g=g.target||g.srcElement)&&g.action){var ca=g.action.match(Jc);ca&&sd(a,ca[1])&&rd(e,g)}}))};Dc.prototype.$=function(a){if(a){var b=this,c=b.target.get(F);void 0!==c&&De.passthrough(function(){if(c("analytics_storage"))return{};var d={};return d._ga=b.target.get(Q),d._up="1",d},1,!0)}};function sd(a,b){if(b==M.location.hostname)return!1;for(var c=0;c<a.length;c++)if(a[c]instanceof RegExp){if(a[c].test(b))return!0}else if(0<=b.indexOf(a[c]))return!0;return!1}
|
||||
function ke(a,b){return b!=Ic(a,0)&&b!=Ic(a,-1)&&b!=Ic(a,-2)&&b!=pa(a,0)&&b!=pa(a,-1)&&b!=pa(a,-2)}function $e(a){var b=af(a),c={};c._ga=a.get(Q);c._gid=a.get(I)||void 0;c._gac=b?[b.qa,b.timestamp].join("."):void 0;b=a.get(Ae);a=Ed(a);return c._fplc=b&&"0"!==b?b:a,c}function af(a){function b(e){return void 0==e||""===e?0:Number(e)}var c=a.get(ce);if(c&&a.get(je)){var d=b(a.get(fe));if(1E3*d+b(a.get(he))<=(new Date).getTime())J(76);else return{timestamp:d,qa:c}}};var p=/^(GTM|OPT)-[A-Z0-9]+$/,Ie=/^G-[A-Z0-9]+$/,q=/;_gaexp=[^;]*/g,r=/;((__utma=)|([^;=]+=GAX?\d+\.))[^;]*/g,Aa=/^https?:\/\/[\w\-.]+\.google.com(:\d+)?\/optimize\/opt-launch\.html\?.*$/,t=function(a){function b(d,e){e&&(c+="&"+d+"="+K(e))}var c=Ge(a.type)+K(a.id);"dataLayer"!=a.B&&b("l",a.B);b("cx",a.context);b("t",a.target);b("cid",a.clientId);b("cidt",a.ka);b("gac",a.la);b("aip",a.ia);a.sync&&b("m","sync");b("cycle",a.G);a.qa&&b("gclid",a.qa);Aa.test(M.referrer)&&b("cb",String(hd()));return c},
|
||||
He=function(a,b){var c=(new Date).getTime();O[a.B]=O[a.B]||[];c={"gtm.start":c};a.sync||(c.event="gtm.js");O[a.B].push(c);2===a.type&&function(d,e,g){O[a.B].push(arguments)}("config",a.id,b)},Ke=function(a,b,c,d){c=c||{};var e=1;Ie.test(b)&&(e=2);var g={id:b,type:e,B:c.dataLayer||"dataLayer",G:!1},ca=void 0;a.get(">m")==b&&(g.G=!0);1===e?(g.ia=!!a.get("anonymizeIp"),g.sync=d,b=String(a.get("name")),"t0"!=b&&(g.target=b),G(String(a.get("trackingId")))||(g.clientId=String(a.get(Q)),g.ka=Number(a.get(n)),
|
||||
c=c.palindrome?r:q,c=(c=M.cookie.replace(/^|(; +)/g,";").match(c))?c.sort().join("").substring(1):void 0,g.la=c,g.qa=E(P(a,kb),"gclid"))):2===e&&(g.context="c",ca={allow_google_signals:a.get(Ud),allow_ad_personalization_signals:a.get(xe)});He(g,ca);return t(g)};var H={},Jd=function(a,b){b||(b=(b=P(a,V))&&"t0"!=b?Wd.test(b)?"_gat_"+Cc(P(a,Na)):"_gat_"+Cc(b):"_gat");this.Y=b},Rd=function(a,b){var c=b.get(Wb);b.set(Wb,function(e){Pd(a,e,ed);Pd(a,e,ia);var g=c(e);Qd(a,e);return g});var d=b.get(Xb);b.set(Xb,function(e){var g=d(e);if(se(e)){J(80);var ca={U:re(e,1),google:re(e,2),count:0};pe("https://stats.g.doubleclick.net/j/collect",ca.U,ca);e.set(ed,"",!0)}return g})},Pd=function(a,b,c){!1===b.get(Ud)||b.get(c)||("1"==Ca(a.Y)[0]?b.set(c,"",!0):b.set(c,""+hd(),
|
||||
!0))},Qd=function(a,b){se(b)&&zc(a.Y,"1",P(b,Yb),P(b,W),P(b,Na),6E4,P(b,Be))},se=function(a){return!!a.get(ed)&&!1!==a.get(Ud)},Ne=function(a){return!H[P(a,Na)]&&void 0===a.get(">m")&&void 0===a.get(fa)&&void 0===a.get(gd)&&void 0===a.get(oe)},re=function(a,b){var c=new ee,d=function(g){$a(g).F&&c.set($a(g).F,a.get(g))};d(hb);d(ib);d(Na);d(Q);d(ed);1==b&&(d(Ad),d(ia),d(I));!1===a.get(xe)&&c.set("npa","1");c.set($a(ld).F,Td(a));var e="";c.map(function(g,ca){e+=K(g)+"=";e+=K(""+ca)+"&"});e+="z="+
|
||||
hd();1==b?e="t=dc&aip=1&_r=3&"+e:2==b&&(e="t=sr&aip=1&_r=4&slf_rd=1&"+e);return e},Me=function(a){if(Ne(a))return H[P(a,Na)]=!0,function(b){if(b&&!H[b]){var c=Ke(a,b);Id(c);H[b]=!0}}},Wd=/^gtm\d+$/;var fd=function(a,b){a=a.model;if(!a.get("dcLoaded")){var c=new $c(Dd(a));c.set(29);a.set(Gd,c.C);b=b||{};var d;b[U]&&(d=Cc(b[U]));b=new Jd(a,d);Rd(b,a);a.set("dcLoaded",!0)}};var Sd=function(a){if(!a.get("dcLoaded")&&"cookie"==a.get(ac)){var b=new Jd(a);Pd(b,a,ed);Pd(b,a,ia);Qd(b,a);b=se(a);var c=Ne(a);b&&a.set(Md,1,!0);c&&a.set(Od,1,!0);if(b||c)a.set(ad,"d",!0),J(79),a.set(qe,{U:re(a,1),google:re(a,2),V:Me(a),count:0},!0)}};var Lc=function(){var a=O.gaGlobal=O.gaGlobal||{};return a.hid=a.hid||hd()};var wb=/^(UA|YT|MO|GP)-(\d+)-(\d+)$/,pc=function(a){function b(e,g){d.model.data.set(e,g)}function c(e,g){b(e,g);d.filters.add(e)}var d=this;this.model=new Ya;this.filters=new Ha;b(V,a[V]);b(Na,sa(a[Na]));b(U,a[U]);b(W,a[W]||xa());b(Yb,a[Yb]);b(Zb,a[Zb]);b(Hd,a[Hd]);b(Be,a[Be]);b($b,a[$b]);b(Wc,a[Wc]);b(bc,a[bc]);b(cc,a[cc]);b(Ka,a[Ka]);b(dc,a[dc]);b(ec,a[ec]);b(ac,a[ac]);b(Ad,a[Ad]);b(n,a[n]);b(Kd,a[Kd]);b(je,a[je]);b(Ze,a[Ze]);b(oe,a[oe]);b(Je,a[Je]);b(F,a[F]);b(hb,1);b(ib,"j91");c(Re,Pe);c(Qb,
|
||||
Ma);c(oa,ua);c(dd,cd);c(Rb,Oa);c(md,vb);c(Sb,nc);c(Uc,Yc);c(Tb,Ja);c(Vb,Ta);c(Vc,Hc);c(zd,yd);c(Ld,Sd);c(ze,Fe);c(Wb,Pa);c(Xb,Sa);c(Cd,Fd(this));pd(this.model);td(this.model,a[Q]);this.model.set(jb,Lc())};pc.prototype.get=function(a){return this.model.get(a)};pc.prototype.set=function(a,b){this.model.set(a,b)};
|
||||
pc.prototype.send=function(a){if(!(1>arguments.length)){if("string"===typeof arguments[0]){var b=arguments[0];var c=[].slice.call(arguments,1)}else b=arguments[0]&&arguments[0][Va],c=arguments;b&&(c=za(me[b]||[],c),c[Va]=b,this.model.set(c,void 0,!0),this.filters.D(this.model),this.model.data.m={})}};pc.prototype.ma=function(a,b){var c=this;u(a,c,b)||(v(a,function(){u(a,c,b)}),y(String(c.get(V)),a,void 0,b,!0))};
|
||||
var td=function(a,b){var c=P(a,U);a.data.set(la,"_ga"==c?"_gid":c+"_gid");if("cookie"==P(a,ac)){hc=!1;c=Ca(P(a,U));c=Xd(a,c);if(!c){c=P(a,W);var d=P(a,$b)||xa();c=Xc("__utma",d,c);void 0!=c?(J(10),c=c.O[1]+"."+c.O[2]):c=void 0}c&&(hc=!0);if(d=c&&!a.get(Hd))if(d=c.split("."),2!=d.length)d=!1;else if(d=Number(d[1])){var e=R(a,Zb);d=d+e<(new Date).getTime()/1E3}else d=!1;d&&(c=void 0);c&&(a.data.set(xd,c),a.data.set(Q,c),(c=uc(a))&&a.data.set(I,c));a.get(je)&&(c=a.get(ce),d=a.get(ie),!c||d&&"aw.ds"!=
|
||||
d)&&(c={},d=(M?df(c):{})[P(a,Na)],le(c),d&&0!=d.length&&(c=d[0],a.data.set(fe,c.timestamp/1E3),a.data.set(ce,c.qa)));a.get(je)&&!a.get(Se)&&(c={},d=(M?df(c,"_gac_gb",!0):{})[P(a,Na)],ef(c),d&&0!=d.length&&(c=d[0],d=c.qa,c.labels&&c.labels.length&&(d+="."+c.labels.join(".")),a.data.set(Te,c.timestamp/1E3),a.data.set(Se,d)))}if(a.get(Hd)){c=be("_ga",!!a.get(cc));var g=be("_gl",!!a.get(cc));d=De.get(a.get(cc));e=d._ga;g&&0<g.indexOf("_ga*")&&!e&&J(30);if(b||!a.get(Je))g=!1;else if(g=a.get(F),void 0===
|
||||
g||g("analytics_storage"))g=!1;else{J(84);a.data.set(Le,1);if(g=d._up)if(g=Jc.exec(M.referrer)){g=g[1];var ca=M.location.hostname;g=ca===g||0<=ca.indexOf("."+g)||0<=g.indexOf("."+ca)?!0:!1}else g=!1;g=g?!0:!1}ca=d.gclid;var l=d._gac;if(c||e||ca||l)if(c&&e&&J(36),a.get(bc)||ye(a.get(Kd))||g){e&&(J(38),a.data.set(Q,e),d._gid&&(J(51),a.data.set(I,d._gid)));ca?(J(82),a.data.set(ce,ca),d.gclsrc&&a.data.set(ie,d.gclsrc)):l&&(e=l.split("."))&&2===e.length&&(J(37),a.data.set(ce,e[0]),a.data.set(fe,e[1]));
|
||||
if(d=d._fplc)J(83),a.data.set(Ae,d);if(c)b:if(d=c.indexOf("."),-1==d)J(22);else{e=c.substring(0,d);g=c.substring(d+1);d=g.indexOf(".");c=g.substring(0,d);g=g.substring(d+1);if("1"==e){if(d=g,ke(d,c)){J(23);break b}}else if("2"==e){d=g.indexOf("-");e="";0<d?(e=g.substring(0,d),d=g.substring(d+1)):d=g.substring(1);if(ke(e+d,c)){J(53);break b}e&&(J(2),a.data.set(I,e))}else{J(22);break b}J(11);a.data.set(Q,d);if(c=be("_gac",!!a.get(cc)))c=c.split("."),"1"!=c[0]||4!=c.length?J(72):ke(c[3],c[1])?J(71):
|
||||
(a.data.set(ce,c[3]),a.data.set(fe,c[2]),J(70))}}else J(21)}b&&(J(9),a.data.set(Q,K(b)));a.get(Q)||(b=(b=O.gaGlobal)&&b.from_cookie&&"cookie"!==P(a,ac)?void 0:(b=b&&b.vid)&&-1!==b.search(jd)?b:void 0,b?(J(17),a.data.set(Q,b)):(J(8),a.data.set(Q,ra())));a.get(I)||(J(3),a.data.set(I,ra()));mc(a);b=O.gaGlobal=O.gaGlobal||{};c=P(a,Q);a=c===P(a,xd);if(void 0==b.vid||a&&!b.from_cookie)b.vid=c,b.from_cookie=a},pd=function(a){var b=O.navigator,c=O.screen,d=M.location,e=a.set;a:{var g=!!a.get(ec),ca=!!a.get(Kd);
|
||||
var l=M.referrer;if(/^(https?|android-app):\/\//i.test(l)){if(g)break a;g="//"+M.location.hostname;if(!de(l,g)){if(ca&&(ca=g.replace(/\./g,"-")+".cdn.ampproject.org",de(l,ca))){l=void 0;break a}break a}}l=void 0}e.call(a,lb,l);d&&(e=d.pathname||"","/"!=e.charAt(0)&&(J(31),e="/"+e),a.set(kb,d.protocol+"//"+d.hostname+e+d.search));c&&a.set(qb,c.width+"x"+c.height);c&&a.set(pb,c.colorDepth+"-bit");c=M.documentElement;l=(e=M.body)&&e.clientWidth&&e.clientHeight;ca=[];c&&c.clientWidth&&c.clientHeight&&
|
||||
("CSS1Compat"===M.compatMode||!l)?ca=[c.clientWidth,c.clientHeight]:l&&(ca=[e.clientWidth,e.clientHeight]);c=0>=ca[0]||0>=ca[1]?"":ca.join("x");a.set(rb,c);c=a.set;var k;if((e=(e=O.navigator)?e.plugins:null)&&e.length)for(l=0;l<e.length&&!k;l++)ca=e[l],-1<ca.name.indexOf("Shockwave Flash")&&(k=ca.description);if(!k)try{var w=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");k=w.GetVariable("$version")}catch(Ce){}if(!k)try{w=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"),k="WIN 6,0,21,0",
|
||||
w.AllowScriptAccess="always",k=w.GetVariable("$version")}catch(Ce){}if(!k)try{w=new ActiveXObject("ShockwaveFlash.ShockwaveFlash"),k=w.GetVariable("$version")}catch(Ce){}k&&(w=k.match(/[\d]+/g))&&3<=w.length&&(k=w[0]+"."+w[1]+" r"+w[2]);c.call(a,tb,k||void 0);a.set(ob,M.characterSet||M.charset);a.set(sb,b&&"function"===typeof b.javaEnabled&&b.javaEnabled()||!1);a.set(nb,(b&&(b.language||b.browserLanguage)||"").toLowerCase());a.data.set(ce,be("gclid",!0));a.data.set(ie,be("gclsrc",!0));a.data.set(fe,
|
||||
Math.round((new Date).getTime()/1E3));a.get(ce)||(a.data.set(Se,be("wbraid",!0)),a.data.set(Te,Math.round((new Date).getTime()/1E3)));if(d&&a.get(cc)&&(b=M.location.hash)){b=b.split(/[?&#]+/);d=[];for(k=0;k<b.length;++k)(D(b[k],"utm_id")||D(b[k],"utm_campaign")||D(b[k],"utm_source")||D(b[k],"utm_medium")||D(b[k],"utm_term")||D(b[k],"utm_content")||D(b[k],"gclid")||D(b[k],"dclid")||D(b[k],"gclsrc")||D(b[k],"wbraid"))&&d.push(b[k]);0<d.length&&(b="#"+d.join("&"),a.set(kb,a.get(kb)+b))}},me={pageview:[mb],
|
||||
event:[ub,xb,yb,zb],social:[Bb,Cb,Db],timing:[Mb,Nb,Pb,Ob]};var rc=function(a){if("prerender"==M.visibilityState)return!1;a();return!0},z=function(a){if(!rc(a)){J(16);var b=!1,c=function(){if(!b&&rc(a)){b=!0;var d=c,e=M;e.removeEventListener?e.removeEventListener("visibilitychange",d,!1):e.detachEvent&&e.detachEvent("onvisibilitychange",d)}};L(M,"visibilitychange",c)}};var te=/^(?:(\w+)\.)?(?:(\w+):)?(\w+)$/,sc=function(a){if(ea(a[0]))this.u=a[0];else{var b=te.exec(a[0]);null!=b&&4==b.length&&(this.da=b[1]||"t0",this.K=b[2]||"",this.methodName=b[3],this.aa=[].slice.call(a,1),this.K||(this.A="create"==this.methodName,this.i="require"==this.methodName,this.g="provide"==this.methodName,this.ba="remove"==this.methodName),this.i&&(3<=this.aa.length?(this.X=this.aa[1],this.W=this.aa[2]):this.aa[1]&&(qa(this.aa[1])?this.X=this.aa[1]:this.W=this.aa[1])));b=a[1];a=a[2];
|
||||
if(!this.methodName)throw"abort";if(this.i&&(!qa(b)||""==b))throw"abort";if(this.g&&(!qa(b)||""==b||!ea(a)))throw"abort";if(ud(this.da)||ud(this.K))throw"abort";if(this.g&&"t0"!=this.da)throw"abort";}};function ud(a){return 0<=a.indexOf(".")||0<=a.indexOf(":")};var Yd,Zd,$d,A;Yd=new ee;$d=new ee;A=new ee;Zd={ec:45,ecommerce:46,linkid:47};
|
||||
var u=function(a,b,c){b==N||b.get(V);var d=Yd.get(a);if(!ea(d))return!1;b.plugins_=b.plugins_||new ee;if(b.plugins_.get(a))return!0;b.plugins_.set(a,new d(b,c||{}));return!0},y=function(a,b,c,d,e){if(!ea(Yd.get(b))&&!$d.get(b)){Zd.hasOwnProperty(b)&&J(Zd[b]);a=N.j(a);var g=void 0;if(p.test(b)){J(52);if(!a)return!0;c=Ke(a.model,b,d,e);g=function(){Z.D(["provide",b,function(){}]);var l=O[d&&d.dataLayer||"dataLayer"];l&&l.hide&&ea(l.hide.end)&&l.hide[b]&&(l.hide.end(),l.hide.end=void 0)}}!c&&Zd.hasOwnProperty(b)?
|
||||
(J(39),c=b+".js"):J(43);if(c){if(a){var ca=a.get(oe);qa(ca)||(ca=void 0)}a=ae(cf(c,ca));a=!ca||ne(a.protocol)&&B(a)?a:ae(cf(c));ne(a.protocol)&&B(a)&&(Id(a.url,void 0,e,void 0,g),$d.set(b,!0))}}},v=function(a,b){var c=A.get(a)||[];c.push(b);A.set(a,c)},C=function(a,b){Yd.set(a,b);b=A.get(a)||[];for(var c=0;c<b.length;c++)b[c]();A.set(a,[])},B=function(a){var b=ae(M.location.href);if(D(a.url,Ge(1))||D(a.url,Ge(2)))return!0;if(a.query||0<=a.url.indexOf("?")||0<=a.path.indexOf("://"))return!1;if(a.host==
|
||||
b.host&&a.port==b.port)return!0;b="http:"==a.protocol?80:443;return"www.google-analytics.com"==a.host&&(a.port||b)==b&&D(a.path,"/plugins/")?!0:!1},ne=function(a){var b=M.location.protocol;return"https:"==a||a==b?!0:"http:"!=a?!1:"http:"==b},ae=function(a){function b(l){var k=l.hostname||"",w=0<=k.indexOf("]");k=k.split(w?"]":":")[0].toLowerCase();w&&(k+="]");w=(l.protocol||"").toLowerCase();w=1*l.port||("http:"==w?80:"https:"==w?443:"");l=l.pathname||"";D(l,"/")||(l="/"+l);return[k,""+w,l]}var c=
|
||||
M.createElement("a");c.href=M.location.href;var d=(c.protocol||"").toLowerCase(),e=b(c),g=c.search||"",ca=d+"//"+e[0]+(e[1]?":"+e[1]:"");D(a,"//")?a=d+a:D(a,"/")?a=ca+a:!a||D(a,"?")?a=ca+e[2]+(a||g):0>a.split("/")[0].indexOf(":")&&(a=ca+e[2].substring(0,e[2].lastIndexOf("/"))+"/"+a);c.href=a;d=b(c);return{protocol:(c.protocol||"").toLowerCase(),host:d[0],port:d[1],path:d[2],query:c.search||"",url:a||""}},cf=function(a,b){return a&&0<=a.indexOf("/")?a:(b||bd(!1))+"/plugins/ua/"+a};var Z={ga:function(){Z.fa=[]}};Z.ga();Z.D=function(a){var b=Z.J.apply(Z,arguments);b=Z.fa.concat(b);for(Z.fa=[];0<b.length&&!Z.v(b[0])&&!(b.shift(),0<Z.fa.length););Z.fa=Z.fa.concat(b)};Z.J=function(a){for(var b=[],c=0;c<arguments.length;c++)try{var d=new sc(arguments[c]);d.g?C(d.aa[0],d.aa[1]):(d.i&&(d.ha=y(d.da,d.aa[0],d.X,d.W)),b.push(d))}catch(e){}return b};
|
||||
Z.v=function(a){try{if(a.u)a.u.call(O,N.j("t0"));else{var b=a.da==gb?N:N.j(a.da);if(a.A){if("t0"==a.da&&(b=N.create.apply(N,a.aa),null===b))return!0}else if(a.ba)N.remove(a.da);else if(b)if(a.i){if(a.ha&&(a.ha=y(a.da,a.aa[0],a.X,a.W)),!u(a.aa[0],b,a.W))return!0}else if(a.K){var c=a.methodName,d=a.aa,e=b.plugins_.get(a.K);e[c].apply(e,d)}else b[a.methodName].apply(b,a.aa)}}catch(g){}};var N=function(a){J(1);Z.D.apply(Z,[arguments])};N.h={};N.P=[];N.L=0;N.ya=0;N.answer=42;var we=[Na,W,V];N.create=function(a){var b=za(we,[].slice.call(arguments));b[V]||(b[V]="t0");var c=""+b[V];if(N.h[c])return N.h[c];if(da(b))return null;b=new pc(b);N.h[c]=b;N.P.push(b);c=qc().tracker_created;if(ea(c))try{c(b)}catch(d){}return b};N.remove=function(a){for(var b=0;b<N.P.length;b++)if(N.P[b].get(V)==a){N.P.splice(b,1);N.h[a]=null;break}};N.j=function(a){return N.h[a]};N.getAll=function(){return N.P.slice(0)};
|
||||
N.N=function(){"ga"!=gb&&J(49);var a=O[gb];if(!a||42!=a.answer){N.L=a&&a.l;N.ya=1*new Date;N.loaded=!0;var b=O[gb]=N;X("create",b,b.create);X("remove",b,b.remove);X("getByName",b,b.j,5);X("getAll",b,b.getAll,6);b=pc.prototype;X("get",b,b.get,7);X("set",b,b.set,4);X("send",b,b.send);X("requireSync",b,b.ma);b=Ya.prototype;X("get",b,b.get);X("set",b,b.set);if("https:"!=M.location.protocol&&!Ba){a:{b=M.getElementsByTagName("script");for(var c=0;c<b.length&&100>c;c++){var d=b[c].src;if(d&&0==d.indexOf(bd(!0)+
|
||||
"/analytics")){b=!0;break a}}b=!1}b&&(Ba=!0)}(O.gaplugins=O.gaplugins||{}).Linker=Dc;b=Dc.prototype;C("linker",Dc);X("decorate",b,b.ca,20);X("autoLink",b,b.S,25);X("passthrough",b,b.$,25);C("displayfeatures",fd);C("adfeatures",fd);a=a&&a.q;ka(a)?Z.D.apply(N,a):J(50)}};var gf=N.N,hf=O[gb];hf&&hf.r?gf():z(gf);z(function(){Z.D(["provide","render",ua])});})(window);
|
BIN
document/某OJ系统恶意代码执行漏洞 - Matrix_files/anonymous.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
5
document/某OJ系统恶意代码执行漏洞 - Matrix_files/bootstrap.css
vendored
Normal file
4
document/某OJ系统恶意代码执行漏洞 - Matrix_files/core.js
Normal file
4
document/某OJ系统恶意代码执行漏洞 - Matrix_files/font-awesome.css
vendored
Normal file
21
document/某OJ系统恶意代码执行漏洞 - Matrix_files/font.css
Normal file
@ -0,0 +1,21 @@
|
||||
@font-face {
|
||||
font-family: 'Source Sans Pro';
|
||||
font-style: normal;
|
||||
font-weight: 300;
|
||||
font-display: swap;
|
||||
src: local('Source Sans Pro Light'), local('SourceSansPro-Light'), url('../../fonts/sourcesanspro/sourcesanspro-light.woff') format('woff');
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Source Sans Pro';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-display: swap;
|
||||
src: local('Source Sans Pro'), local('SourceSansPro-Regular'), url('../../fonts/sourcesanspro/sourcesanspro.woff') format('woff');
|
||||
}
|
||||
/*@font-face {*/
|
||||
/* font-family: 'Source Sans Pro';*/
|
||||
/* font-style: normal;*/
|
||||
/* font-weight: 700;*/
|
||||
/* font-display: swap;*/
|
||||
/* src: local('Source Sans Pro Bold'), local('SourceSansPro-Bold'), url('../../fonts/sourcesanspro/sourcesanspro-bold.woff') format('woff');*/
|
||||
/*}*/
|
6
document/某OJ系统恶意代码执行漏洞 - Matrix_files/function.css
Normal file
10
document/某OJ系统恶意代码执行漏洞 - Matrix_files/function.js
Normal file
1
document/某OJ系统恶意代码执行漏洞 - Matrix_files/handsome.css
Normal file
BIN
document/某OJ系统恶意代码执行漏洞 - Matrix_files/headimg.png
Normal file
After Width: | Height: | Size: 8.3 KiB |
2
document/某OJ系统恶意代码执行漏洞 - Matrix_files/highlight.js
Normal file
3531
document/某OJ系统恶意代码执行漏洞 - Matrix_files/html2canvas.js
Normal file
5
document/某OJ系统恶意代码执行漏洞 - Matrix_files/jquery.js
vendored
Normal file
903
document/某OJ系统恶意代码执行漏洞 - Matrix_files/jquery_002.js
vendored
Normal file
@ -0,0 +1,903 @@
|
||||
/*!
|
||||
* Copyright 2012, Chris Wanstrath
|
||||
* Released under the MIT License
|
||||
* https://github.com/defunkt/jquery-pjax
|
||||
*/
|
||||
|
||||
(function($){
|
||||
|
||||
// When called on a container with a selector, fetches the href with
|
||||
// ajax into the container or with the data-pjax attribute on the link
|
||||
// itself.
|
||||
//
|
||||
// Tries to make sure the back button and ctrl+click work the way
|
||||
// you'd expect.
|
||||
//
|
||||
// Exported as $.fn.pjax
|
||||
//
|
||||
// Accepts a jQuery ajax options object that may include these
|
||||
// pjax specific options:
|
||||
//
|
||||
//
|
||||
// container - String selector for the element where to place the response body.
|
||||
// push - Whether to pushState the URL. Defaults to true (of course).
|
||||
// replace - Want to use replaceState instead? That's cool.
|
||||
//
|
||||
// For convenience the second parameter can be either the container or
|
||||
// the options object.
|
||||
//
|
||||
// Returns the jQuery object
|
||||
function fnPjax(selector, container, options) {
|
||||
options = optionsFor(container, options)
|
||||
return this.on('click.pjax', selector, function(event) {
|
||||
var opts = options
|
||||
if (!opts.container) {
|
||||
opts = $.extend({}, options)
|
||||
opts.container = $(this).attr('data-pjax')
|
||||
}
|
||||
handleClick(event, opts)
|
||||
})
|
||||
}
|
||||
|
||||
// Public: pjax on click handler
|
||||
//
|
||||
// Exported as $.pjax.click.
|
||||
//
|
||||
// event - "click" jQuery.Event
|
||||
// options - pjax options
|
||||
//
|
||||
// Examples
|
||||
//
|
||||
// $(document).on('click', 'a', $.pjax.click)
|
||||
// // is the same as
|
||||
// $(document).pjax('a')
|
||||
//
|
||||
// Returns nothing.
|
||||
function handleClick(event, container, options) {
|
||||
options = optionsFor(container, options)
|
||||
|
||||
var link = event.currentTarget
|
||||
var $link = $(link)
|
||||
|
||||
if (link.tagName.toUpperCase() !== 'A')
|
||||
throw "$.fn.pjax or $.pjax.click requires an anchor element"
|
||||
|
||||
// Middle click, cmd click, and ctrl click should open
|
||||
// links in a new tab as normal.
|
||||
if ( event.which > 1 || event.metaKey || event.ctrlKey || event.shiftKey || event.altKey )
|
||||
return
|
||||
|
||||
// Ignore cross origin links
|
||||
if ( location.protocol !== link.protocol || location.hostname !== link.hostname )
|
||||
return
|
||||
|
||||
// Ignore case when a hash is being tacked on the current URL
|
||||
if ( link.href.indexOf('#') > -1 && stripHash(link) == stripHash(location) )
|
||||
return
|
||||
|
||||
// Ignore event with default prevented
|
||||
if (event.isDefaultPrevented())
|
||||
return
|
||||
|
||||
var defaults = {
|
||||
url: link.href,
|
||||
container: $link.attr('data-pjax'),
|
||||
target: link
|
||||
}
|
||||
|
||||
var opts = $.extend({}, defaults, options)
|
||||
var clickEvent = $.Event('pjax:click')
|
||||
$link.trigger(clickEvent, [opts])
|
||||
|
||||
if (!clickEvent.isDefaultPrevented()) {
|
||||
pjax(opts)
|
||||
event.preventDefault()
|
||||
$link.trigger('pjax:clicked', [opts])
|
||||
}
|
||||
}
|
||||
|
||||
// Public: pjax on form submit handler
|
||||
//
|
||||
// Exported as $.pjax.submit
|
||||
//
|
||||
// event - "click" jQuery.Event
|
||||
// options - pjax options
|
||||
//
|
||||
// Examples
|
||||
//
|
||||
// $(document).on('submit', 'form', function(event) {
|
||||
// $.pjax.submit(event, '[data-pjax-container]')
|
||||
// })
|
||||
//
|
||||
// Returns nothing.
|
||||
function handleSubmit(event, container, options) {
|
||||
options = optionsFor(container, options)
|
||||
|
||||
var form = event.currentTarget
|
||||
var $form = $(form)
|
||||
|
||||
if (form.tagName.toUpperCase() !== 'FORM')
|
||||
throw "$.pjax.submit requires a form element"
|
||||
|
||||
var defaults = {
|
||||
type: ($form.attr('method') || 'GET').toUpperCase(),
|
||||
url: $form.attr('action'),
|
||||
container: $form.attr('data-pjax'),
|
||||
target: form
|
||||
}
|
||||
|
||||
if (defaults.type !== 'GET' && window.FormData !== undefined) {
|
||||
defaults.data = new FormData(form)
|
||||
defaults.processData = false
|
||||
defaults.contentType = false
|
||||
} else {
|
||||
// Can't handle file uploads, exit
|
||||
if ($form.find(':file').length) {
|
||||
return
|
||||
}
|
||||
|
||||
// Fallback to manually serializing the fields
|
||||
defaults.data = $form.serializeArray()
|
||||
}
|
||||
|
||||
pjax($.extend({}, defaults, options))
|
||||
|
||||
event.preventDefault()
|
||||
}
|
||||
|
||||
// Loads a URL with ajax, puts the response body inside a container,
|
||||
// then pushState()'s the loaded URL.
|
||||
//
|
||||
// Works just like $.ajax in that it accepts a jQuery ajax
|
||||
// settings object (with keys like url, type, data, etc).
|
||||
//
|
||||
// Accepts these extra keys:
|
||||
//
|
||||
// container - String selector for where to stick the response body.
|
||||
// push - Whether to pushState the URL. Defaults to true (of course).
|
||||
// replace - Want to use replaceState instead? That's cool.
|
||||
//
|
||||
// Use it just like $.ajax:
|
||||
//
|
||||
// var xhr = $.pjax({ url: this.href, container: '#main' })
|
||||
// console.log( xhr.readyState )
|
||||
//
|
||||
// Returns whatever $.ajax returns.
|
||||
function pjax(options) {
|
||||
options = $.extend(true, {}, $.ajaxSettings, pjax.defaults, options)
|
||||
|
||||
if ($.isFunction(options.url)) {
|
||||
options.url = options.url()
|
||||
}
|
||||
|
||||
var hash = parseURL(options.url).hash
|
||||
|
||||
var containerType = $.type(options.container)
|
||||
if (containerType !== 'string') {
|
||||
throw "expected string value for 'container' option; got " + containerType
|
||||
}
|
||||
var context = options.context = $(options.container)
|
||||
if (!context.length) {
|
||||
throw "the container selector '" + options.container + "' did not match anything"
|
||||
}
|
||||
|
||||
// We want the browser to maintain two separate internal caches: one
|
||||
// for pjax'd partial page loads and one for normal page loads.
|
||||
// Without adding this secret parameter, some browsers will often
|
||||
// confuse the two.
|
||||
if (!options.data) options.data = {}
|
||||
if ($.isArray(options.data)) {
|
||||
options.data.push({name: '_pjax', value: options.container})
|
||||
} else {
|
||||
options.data._pjax = options.container
|
||||
}
|
||||
|
||||
function fire(type, args, props) {
|
||||
if (!props) props = {}
|
||||
props.relatedTarget = options.target
|
||||
var event = $.Event(type, props)
|
||||
context.trigger(event, args)
|
||||
return !event.isDefaultPrevented()
|
||||
}
|
||||
|
||||
var timeoutTimer
|
||||
|
||||
options.beforeSend = function(xhr, settings) {
|
||||
// No timeout for non-GET requests
|
||||
// Its not safe to request the resource again with a fallback method.
|
||||
if (settings.type !== 'GET') {
|
||||
settings.timeout = 0
|
||||
}
|
||||
|
||||
xhr.setRequestHeader('X-PJAX', 'true')
|
||||
xhr.setRequestHeader('X-PJAX-Container', options.container)
|
||||
|
||||
if (!fire('pjax:beforeSend', [xhr, settings]))
|
||||
return false
|
||||
|
||||
if (settings.timeout > 0) {
|
||||
timeoutTimer = setTimeout(function() {
|
||||
if (fire('pjax:timeout', [xhr, options]))
|
||||
xhr.abort('timeout')
|
||||
}, settings.timeout)
|
||||
|
||||
// Clear timeout setting so jquerys internal timeout isn't invoked
|
||||
settings.timeout = 0
|
||||
}
|
||||
|
||||
var url = parseURL(settings.url)
|
||||
if (hash) url.hash = hash
|
||||
options.requestUrl = stripInternalParams(url)
|
||||
}
|
||||
|
||||
options.complete = function(xhr, textStatus) {
|
||||
if (timeoutTimer)
|
||||
clearTimeout(timeoutTimer)
|
||||
|
||||
fire('pjax:complete', [xhr, textStatus, options])
|
||||
|
||||
fire('pjax:end', [xhr, options])
|
||||
}
|
||||
|
||||
options.error = function(xhr, textStatus, errorThrown) {
|
||||
var container = extractContainer("", xhr, options)
|
||||
|
||||
var allowed = fire('pjax:error', [xhr, textStatus, errorThrown, options])
|
||||
if (options.type == 'GET' && textStatus !== 'abort' && allowed) {
|
||||
locationReplace(container.url)
|
||||
}
|
||||
}
|
||||
|
||||
options.success = function(data, status, xhr) {
|
||||
var previousState = pjax.state
|
||||
|
||||
// If $.pjax.defaults.version is a function, invoke it first.
|
||||
// Otherwise it can be a static string.
|
||||
var currentVersion = typeof $.pjax.defaults.version === 'function' ?
|
||||
$.pjax.defaults.version() :
|
||||
$.pjax.defaults.version
|
||||
|
||||
var latestVersion = xhr.getResponseHeader('X-PJAX-Version')
|
||||
|
||||
var container = extractContainer(data, xhr, options)
|
||||
|
||||
var url = parseURL(container.url)
|
||||
if (hash) {
|
||||
url.hash = hash
|
||||
container.url = url.href
|
||||
}
|
||||
|
||||
// If there is a layout version mismatch, hard load the new url
|
||||
if (currentVersion && latestVersion && currentVersion !== latestVersion) {
|
||||
locationReplace(container.url)
|
||||
return
|
||||
}
|
||||
|
||||
// If the new response is missing a body, hard load the page
|
||||
if (!container.contents) {
|
||||
locationReplace(container.url)
|
||||
return
|
||||
}
|
||||
|
||||
pjax.state = {
|
||||
id: options.id || uniqueId(),
|
||||
url: container.url,
|
||||
title: container.title,
|
||||
container: options.container,
|
||||
fragment: options.fragment,
|
||||
timeout: options.timeout
|
||||
}
|
||||
|
||||
if (options.push || options.replace) {
|
||||
window.history.replaceState(pjax.state, container.title, container.url)
|
||||
}
|
||||
|
||||
// Only blur the focus if the focused element is within the container.
|
||||
var blurFocus = $.contains(context, document.activeElement)
|
||||
|
||||
// Clear out any focused controls before inserting new page contents.
|
||||
if (blurFocus) {
|
||||
try {
|
||||
document.activeElement.blur()
|
||||
} catch (e) { /* ignore */ }
|
||||
}
|
||||
|
||||
if (container.title) document.title = container.title
|
||||
|
||||
fire('pjax:beforeReplace', [container.contents, options], {
|
||||
state: pjax.state,
|
||||
previousState: previousState
|
||||
})
|
||||
context.html(container.contents)
|
||||
|
||||
// FF bug: Won't autofocus fields that are inserted via JS.
|
||||
// This behavior is incorrect. So if theres no current focus, autofocus
|
||||
// the last field.
|
||||
//
|
||||
// http://www.w3.org/html/wg/drafts/html/master/forms.html
|
||||
var autofocusEl = context.find('input[autofocus], textarea[autofocus]').last()[0]
|
||||
if (autofocusEl && document.activeElement !== autofocusEl) {
|
||||
autofocusEl.focus()
|
||||
}
|
||||
|
||||
executeScriptTags(container.scripts)
|
||||
|
||||
var scrollTo = options.scrollTo
|
||||
|
||||
// Ensure browser scrolls to the element referenced by the URL anchor
|
||||
if (hash) {
|
||||
var name = decodeURIComponent(hash.slice(1))
|
||||
var target = document.getElementById(name) || document.getElementsByName(name)[0]
|
||||
if (target) scrollTo = $(target).offset().top
|
||||
}
|
||||
|
||||
if (typeof scrollTo == 'number') $(window).scrollTop(scrollTo)
|
||||
|
||||
fire('pjax:success', [data, status, xhr, options])
|
||||
}
|
||||
|
||||
|
||||
// Initialize pjax.state for the initial page load. Assume we're
|
||||
// using the container and options of the link we're loading for the
|
||||
// back button to the initial page. This ensures good back button
|
||||
// behavior.
|
||||
if (!pjax.state) {
|
||||
pjax.state = {
|
||||
id: uniqueId(),
|
||||
url: window.location.href,
|
||||
title: document.title,
|
||||
container: options.container,
|
||||
fragment: options.fragment,
|
||||
timeout: options.timeout
|
||||
}
|
||||
window.history.replaceState(pjax.state, document.title)
|
||||
}
|
||||
|
||||
// Cancel the current request if we're already pjaxing
|
||||
abortXHR(pjax.xhr)
|
||||
|
||||
pjax.options = options
|
||||
var xhr = pjax.xhr = $.ajax(options)
|
||||
|
||||
if (xhr.readyState > 0) {
|
||||
if (options.push && !options.replace) {
|
||||
// Cache current container element before replacing it
|
||||
cachePush(pjax.state.id, [options.container, cloneContents(context)])
|
||||
|
||||
window.history.pushState(null, "", options.requestUrl)
|
||||
}
|
||||
|
||||
fire('pjax:start', [xhr, options])
|
||||
fire('pjax:send', [xhr, options])
|
||||
}
|
||||
|
||||
return pjax.xhr
|
||||
}
|
||||
|
||||
// Public: Reload current page with pjax.
|
||||
//
|
||||
// Returns whatever $.pjax returns.
|
||||
function pjaxReload(container, options) {
|
||||
var defaults = {
|
||||
url: window.location.href,
|
||||
push: false,
|
||||
replace: true,
|
||||
scrollTo: false
|
||||
}
|
||||
|
||||
return pjax($.extend(defaults, optionsFor(container, options)))
|
||||
}
|
||||
|
||||
// Internal: Hard replace current state with url.
|
||||
//
|
||||
// Work for around WebKit
|
||||
// https://bugs.webkit.org/show_bug.cgi?id=93506
|
||||
//
|
||||
// Returns nothing.
|
||||
function locationReplace(url) {
|
||||
window.history.replaceState(null, "", pjax.state.url)
|
||||
window.location.replace(url)
|
||||
}
|
||||
|
||||
|
||||
var initialPop = true
|
||||
var initialURL = window.location.href
|
||||
var initialState = window.history.state
|
||||
|
||||
// Initialize $.pjax.state if possible
|
||||
// Happens when reloading a page and coming forward from a different
|
||||
// session history.
|
||||
if (initialState && initialState.container) {
|
||||
pjax.state = initialState
|
||||
}
|
||||
|
||||
// Non-webkit browsers don't fire an initial popstate event
|
||||
if ('state' in window.history) {
|
||||
initialPop = false
|
||||
}
|
||||
|
||||
// popstate handler takes care of the back and forward buttons
|
||||
//
|
||||
// You probably shouldn't use pjax on pages with other pushState
|
||||
// stuff yet.
|
||||
function onPjaxPopstate(event) {
|
||||
|
||||
// Hitting back or forward should override any pending PJAX request.
|
||||
if (!initialPop) {
|
||||
abortXHR(pjax.xhr)
|
||||
}
|
||||
|
||||
var previousState = pjax.state
|
||||
var state = event.state
|
||||
var direction
|
||||
|
||||
if (state && state.container) {
|
||||
// When coming forward from a separate history session, will get an
|
||||
// initial pop with a state we are already at. Skip reloading the current
|
||||
// page.
|
||||
if (initialPop && initialURL == state.url) return
|
||||
|
||||
if (previousState) {
|
||||
// If popping back to the same state, just skip.
|
||||
// Could be clicking back from hashchange rather than a pushState.
|
||||
if (previousState.id === state.id) return
|
||||
|
||||
// Since state IDs always increase, we can deduce the navigation direction
|
||||
direction = previousState.id < state.id ? 'forward' : 'back'
|
||||
}
|
||||
|
||||
var cache = cacheMapping[state.id] || []
|
||||
var containerSelector = cache[0] || state.container
|
||||
var container = $(containerSelector), contents = cache[1]
|
||||
|
||||
if (container.length) {
|
||||
if (previousState) {
|
||||
// Cache current container before replacement and inform the
|
||||
// cache which direction the history shifted.
|
||||
cachePop(direction, previousState.id, [containerSelector, cloneContents(container)])
|
||||
}
|
||||
|
||||
var popstateEvent = $.Event('pjax:popstate', {
|
||||
state: state,
|
||||
direction: direction
|
||||
})
|
||||
container.trigger(popstateEvent)
|
||||
|
||||
var options = {
|
||||
id: state.id,
|
||||
url: state.url,
|
||||
container: containerSelector,
|
||||
push: false,
|
||||
fragment: state.fragment,
|
||||
timeout: state.timeout,
|
||||
scrollTo: false
|
||||
}
|
||||
|
||||
if (contents) {
|
||||
container.trigger('pjax:start', [null, options])
|
||||
|
||||
pjax.state = state
|
||||
if (state.title) document.title = state.title
|
||||
var beforeReplaceEvent = $.Event('pjax:beforeReplace', {
|
||||
state: state,
|
||||
previousState: previousState
|
||||
})
|
||||
container.trigger(beforeReplaceEvent, [contents, options])
|
||||
container.html(contents)
|
||||
|
||||
container.trigger('pjax:end', [null, options])
|
||||
} else {
|
||||
pjax(options)
|
||||
}
|
||||
|
||||
// Force reflow/relayout before the browser tries to restore the
|
||||
// scroll position.
|
||||
container[0].offsetHeight // eslint-disable-line no-unused-expressions
|
||||
} else {
|
||||
locationReplace(location.href)
|
||||
}
|
||||
}
|
||||
initialPop = false
|
||||
}
|
||||
|
||||
// Fallback version of main pjax function for browsers that don't
|
||||
// support pushState.
|
||||
//
|
||||
// Returns nothing since it retriggers a hard form submission.
|
||||
function fallbackPjax(options) {
|
||||
var url = $.isFunction(options.url) ? options.url() : options.url,
|
||||
method = options.type ? options.type.toUpperCase() : 'GET'
|
||||
|
||||
var form = $('<form>', {
|
||||
method: method === 'GET' ? 'GET' : 'POST',
|
||||
action: url,
|
||||
style: 'display:none'
|
||||
})
|
||||
|
||||
if (method !== 'GET' && method !== 'POST') {
|
||||
form.append($('<input>', {
|
||||
type: 'hidden',
|
||||
name: '_method',
|
||||
value: method.toLowerCase()
|
||||
}))
|
||||
}
|
||||
|
||||
var data = options.data
|
||||
if (typeof data === 'string') {
|
||||
$.each(data.split('&'), function(index, value) {
|
||||
var pair = value.split('=')
|
||||
form.append($('<input>', {type: 'hidden', name: pair[0], value: pair[1]}))
|
||||
})
|
||||
} else if ($.isArray(data)) {
|
||||
$.each(data, function(index, value) {
|
||||
form.append($('<input>', {type: 'hidden', name: value.name, value: value.value}))
|
||||
})
|
||||
} else if (typeof data === 'object') {
|
||||
var key
|
||||
for (key in data)
|
||||
form.append($('<input>', {type: 'hidden', name: key, value: data[key]}))
|
||||
}
|
||||
|
||||
$(document.body).append(form)
|
||||
form.submit()
|
||||
}
|
||||
|
||||
// Internal: Abort an XmlHttpRequest if it hasn't been completed,
|
||||
// also removing its event handlers.
|
||||
function abortXHR(xhr) {
|
||||
if ( xhr && xhr.readyState < 4) {
|
||||
xhr.onreadystatechange = $.noop
|
||||
xhr.abort()
|
||||
}
|
||||
}
|
||||
|
||||
// Internal: Generate unique id for state object.
|
||||
//
|
||||
// Use a timestamp instead of a counter since ids should still be
|
||||
// unique across page loads.
|
||||
//
|
||||
// Returns Number.
|
||||
function uniqueId() {
|
||||
return (new Date).getTime()
|
||||
}
|
||||
|
||||
function cloneContents(container) {
|
||||
var cloned = container.clone()
|
||||
// Unmark script tags as already being eval'd so they can get executed again
|
||||
// when restored from cache. HAXX: Uses jQuery internal method.
|
||||
cloned.find('script').each(function(){
|
||||
if (!this.src) $._data(this, 'globalEval', false)
|
||||
})
|
||||
return cloned.contents()
|
||||
}
|
||||
|
||||
// Internal: Strip internal query params from parsed URL.
|
||||
//
|
||||
// Returns sanitized url.href String.
|
||||
function stripInternalParams(url) {
|
||||
url.search = url.search.replace(/([?&])(_pjax|_)=[^&]*/g, '').replace(/^&/, '')
|
||||
return url.href.replace(/\?($|#)/, '$1')
|
||||
}
|
||||
|
||||
// Internal: Parse URL components and returns a Locationish object.
|
||||
//
|
||||
// url - String URL
|
||||
//
|
||||
// Returns HTMLAnchorElement that acts like Location.
|
||||
function parseURL(url) {
|
||||
var a = document.createElement('a')
|
||||
a.href = url
|
||||
return a
|
||||
}
|
||||
|
||||
// Internal: Return the `href` component of given URL object with the hash
|
||||
// portion removed.
|
||||
//
|
||||
// location - Location or HTMLAnchorElement
|
||||
//
|
||||
// Returns String
|
||||
function stripHash(location) {
|
||||
return location.href.replace(/#.*/, '')
|
||||
}
|
||||
|
||||
// Internal: Build options Object for arguments.
|
||||
//
|
||||
// For convenience the first parameter can be either the container or
|
||||
// the options object.
|
||||
//
|
||||
// Examples
|
||||
//
|
||||
// optionsFor('#container')
|
||||
// // => {container: '#container'}
|
||||
//
|
||||
// optionsFor('#container', {push: true})
|
||||
// // => {container: '#container', push: true}
|
||||
//
|
||||
// optionsFor({container: '#container', push: true})
|
||||
// // => {container: '#container', push: true}
|
||||
//
|
||||
// Returns options Object.
|
||||
function optionsFor(container, options) {
|
||||
if (container && options) {
|
||||
options = $.extend({}, options)
|
||||
options.container = container
|
||||
return options
|
||||
} else if ($.isPlainObject(container)) {
|
||||
return container
|
||||
} else {
|
||||
return {container: container}
|
||||
}
|
||||
}
|
||||
|
||||
// Internal: Filter and find all elements matching the selector.
|
||||
//
|
||||
// Where $.fn.find only matches descendants, findAll will test all the
|
||||
// top level elements in the jQuery object as well.
|
||||
//
|
||||
// elems - jQuery object of Elements
|
||||
// selector - String selector to match
|
||||
//
|
||||
// Returns a jQuery object.
|
||||
function findAll(elems, selector) {
|
||||
return elems.filter(selector).add(elems.find(selector))
|
||||
}
|
||||
|
||||
function parseHTML(html) {
|
||||
return $.parseHTML(html, document, true)
|
||||
}
|
||||
|
||||
// Internal: Extracts container and metadata from response.
|
||||
//
|
||||
// 1. Extracts X-PJAX-URL header if set
|
||||
// 2. Extracts inline <title> tags
|
||||
// 3. Builds response Element and extracts fragment if set
|
||||
//
|
||||
// data - String response data
|
||||
// xhr - XHR response
|
||||
// options - pjax options Object
|
||||
//
|
||||
// Returns an Object with url, title, and contents keys.
|
||||
function extractContainer(data, xhr, options) {
|
||||
var obj = {}, fullDocument = /<html/i.test(data)
|
||||
|
||||
// Prefer X-PJAX-URL header if it was set, otherwise fallback to
|
||||
// using the original requested url.
|
||||
var serverUrl = xhr.getResponseHeader('X-PJAX-URL')
|
||||
obj.url = serverUrl ? stripInternalParams(parseURL(serverUrl)) : options.requestUrl
|
||||
|
||||
var $head, $body
|
||||
// Attempt to parse response html into elements
|
||||
if (fullDocument) {
|
||||
$body = $(parseHTML(data.match(/<body[^>]*>([\s\S.]*)<\/body>/i)[0]))
|
||||
var head = data.match(/<head[^>]*>([\s\S.]*)<\/head>/i)
|
||||
$head = head != null ? $(parseHTML(head[0])) : $body
|
||||
} else {
|
||||
$head = $body = $(parseHTML(data))
|
||||
}
|
||||
|
||||
// If response data is empty, return fast
|
||||
if ($body.length === 0)
|
||||
return obj
|
||||
|
||||
// If there's a <title> tag in the header, use it as
|
||||
// the page's title.
|
||||
obj.title = findAll($head, 'title').last().text()
|
||||
|
||||
if (options.fragment) {
|
||||
var $fragment = $body
|
||||
// If they specified a fragment, look for it in the response
|
||||
// and pull it out.
|
||||
if (options.fragment !== 'body') {
|
||||
$fragment = findAll($fragment, options.fragment).first()
|
||||
}
|
||||
|
||||
if ($fragment.length) {
|
||||
obj.contents = options.fragment === 'body' ? $fragment : $fragment.contents()
|
||||
|
||||
// If there's no title, look for data-title and title attributes
|
||||
// on the fragment
|
||||
if (!obj.title)
|
||||
obj.title = $fragment.attr('title') || $fragment.data('title')
|
||||
}
|
||||
|
||||
} else if (!fullDocument) {
|
||||
obj.contents = $body
|
||||
}
|
||||
|
||||
// Clean up any <title> tags
|
||||
if (obj.contents) {
|
||||
// Remove any parent title elements
|
||||
obj.contents = obj.contents.not(function() { return $(this).is('title') })
|
||||
|
||||
// Then scrub any titles from their descendants
|
||||
obj.contents.find('title').remove()
|
||||
|
||||
// Gather all script[src] elements
|
||||
obj.scripts = findAll(obj.contents, 'script[src]').remove()
|
||||
obj.contents = obj.contents.not(obj.scripts)
|
||||
}
|
||||
|
||||
// Trim any whitespace off the title
|
||||
if (obj.title) obj.title = $.trim(obj.title)
|
||||
|
||||
return obj
|
||||
}
|
||||
|
||||
// Load an execute scripts using standard script request.
|
||||
//
|
||||
// Avoids jQuery's traditional $.getScript which does a XHR request and
|
||||
// globalEval.
|
||||
//
|
||||
// scripts - jQuery object of script Elements
|
||||
//
|
||||
// Returns nothing.
|
||||
function executeScriptTags(scripts) {
|
||||
if (!scripts) return
|
||||
|
||||
var existingScripts = $('script[src]')
|
||||
|
||||
scripts.each(function() {
|
||||
var src = this.src
|
||||
var matchedScripts = existingScripts.filter(function() {
|
||||
return this.src === src
|
||||
})
|
||||
if (matchedScripts.length) return
|
||||
|
||||
var script = document.createElement('script')
|
||||
var type = $(this).attr('type')
|
||||
if (type) script.type = type
|
||||
script.src = $(this).attr('src')
|
||||
document.head.appendChild(script)
|
||||
})
|
||||
}
|
||||
|
||||
// Internal: History DOM caching class.
|
||||
var cacheMapping = {}
|
||||
var cacheForwardStack = []
|
||||
var cacheBackStack = []
|
||||
|
||||
// Push previous state id and container contents into the history
|
||||
// cache. Should be called in conjunction with `pushState` to save the
|
||||
// previous container contents.
|
||||
//
|
||||
// id - State ID Number
|
||||
// value - DOM Element to cache
|
||||
//
|
||||
// Returns nothing.
|
||||
function cachePush(id, value) {
|
||||
cacheMapping[id] = value
|
||||
cacheBackStack.push(id)
|
||||
|
||||
// Remove all entries in forward history stack after pushing a new page.
|
||||
trimCacheStack(cacheForwardStack, 0)
|
||||
|
||||
// Trim back history stack to max cache length.
|
||||
trimCacheStack(cacheBackStack, pjax.defaults.maxCacheLength)
|
||||
}
|
||||
|
||||
// Shifts cache from directional history cache. Should be
|
||||
// called on `popstate` with the previous state id and container
|
||||
// contents.
|
||||
//
|
||||
// direction - "forward" or "back" String
|
||||
// id - State ID Number
|
||||
// value - DOM Element to cache
|
||||
//
|
||||
// Returns nothing.
|
||||
function cachePop(direction, id, value) {
|
||||
var pushStack, popStack
|
||||
cacheMapping[id] = value
|
||||
|
||||
if (direction === 'forward') {
|
||||
pushStack = cacheBackStack
|
||||
popStack = cacheForwardStack
|
||||
} else {
|
||||
pushStack = cacheForwardStack
|
||||
popStack = cacheBackStack
|
||||
}
|
||||
|
||||
pushStack.push(id)
|
||||
id = popStack.pop()
|
||||
if (id) delete cacheMapping[id]
|
||||
|
||||
// Trim whichever stack we just pushed to to max cache length.
|
||||
trimCacheStack(pushStack, pjax.defaults.maxCacheLength)
|
||||
}
|
||||
|
||||
// Trim a cache stack (either cacheBackStack or cacheForwardStack) to be no
|
||||
// longer than the specified length, deleting cached DOM elements as necessary.
|
||||
//
|
||||
// stack - Array of state IDs
|
||||
// length - Maximum length to trim to
|
||||
//
|
||||
// Returns nothing.
|
||||
function trimCacheStack(stack, length) {
|
||||
while (stack.length > length)
|
||||
delete cacheMapping[stack.shift()]
|
||||
}
|
||||
|
||||
// Public: Find version identifier for the initial page load.
|
||||
//
|
||||
// Returns String version or undefined.
|
||||
function findVersion() {
|
||||
return $('meta').filter(function() {
|
||||
var name = $(this).attr('http-equiv')
|
||||
return name && name.toUpperCase() === 'X-PJAX-VERSION'
|
||||
}).attr('content')
|
||||
}
|
||||
|
||||
// Install pjax functions on $.pjax to enable pushState behavior.
|
||||
//
|
||||
// Does nothing if already enabled.
|
||||
//
|
||||
// Examples
|
||||
//
|
||||
// $.pjax.enable()
|
||||
//
|
||||
// Returns nothing.
|
||||
function enable() {
|
||||
$.fn.pjax = fnPjax
|
||||
$.pjax = pjax
|
||||
$.pjax.enable = $.noop
|
||||
$.pjax.disable = disable
|
||||
$.pjax.click = handleClick
|
||||
$.pjax.submit = handleSubmit
|
||||
$.pjax.reload = pjaxReload
|
||||
$.pjax.defaults = {
|
||||
timeout: 650,
|
||||
push: true,
|
||||
replace: false,
|
||||
type: 'GET',
|
||||
dataType: 'html',
|
||||
scrollTo: 0,
|
||||
maxCacheLength: 20,
|
||||
version: findVersion
|
||||
}
|
||||
$(window).on('popstate.pjax', onPjaxPopstate)
|
||||
}
|
||||
|
||||
// Disable pushState behavior.
|
||||
//
|
||||
// This is the case when a browser doesn't support pushState. It is
|
||||
// sometimes useful to disable pushState for debugging on a modern
|
||||
// browser.
|
||||
//
|
||||
// Examples
|
||||
//
|
||||
// $.pjax.disable()
|
||||
//
|
||||
// Returns nothing.
|
||||
function disable() {
|
||||
$.fn.pjax = function() { return this }
|
||||
$.pjax = fallbackPjax
|
||||
$.pjax.enable = enable
|
||||
$.pjax.disable = $.noop
|
||||
$.pjax.click = $.noop
|
||||
$.pjax.submit = $.noop
|
||||
$.pjax.reload = function() { window.location.reload() }
|
||||
|
||||
$(window).off('popstate.pjax', onPjaxPopstate)
|
||||
}
|
||||
|
||||
|
||||
// Add the state property to jQuery's event object so we can use it in
|
||||
// $(window).bind('popstate')
|
||||
if ($.event.props && $.inArray('state', $.event.props) < 0) {
|
||||
$.event.props.push('state')
|
||||
} else if (!('state' in $.Event.prototype)) {
|
||||
$.event.addProp('state')
|
||||
}
|
||||
|
||||
// Is pjax supported by this browser?
|
||||
$.support.pjax =
|
||||
window.history && window.history.pushState && window.history.replaceState &&
|
||||
// pushState isn't reliable on iOS until 5.
|
||||
!navigator.userAgent.match(/((iPod|iPhone|iPad).+\bOS\s+[1-4]\D|WebApps\/.+CFNetwork)/)
|
||||
|
||||
if ($.support.pjax) {
|
||||
enable()
|
||||
} else {
|
||||
disable()
|
||||
}
|
||||
|
||||
})(jQuery)
|
254
document/某OJ系统恶意代码执行漏洞 - Matrix_files/js
Normal file
@ -0,0 +1,254 @@
|
||||
|
||||
// Copyright 2012 Google Inc. All rights reserved.
|
||||
(function(){
|
||||
|
||||
var data = {
|
||||
"resource": {
|
||||
"version":"1",
|
||||
|
||||
"macros":[{
|
||||
"function":"__e"
|
||||
},{
|
||||
"function":"__cid"
|
||||
}],
|
||||
"tags":[{
|
||||
"function":"__rep",
|
||||
"once_per_event":true,
|
||||
"vtp_containerId":["macro",1],
|
||||
"tag_id":1
|
||||
}],
|
||||
"predicates":[{
|
||||
"function":"_eq",
|
||||
"arg0":["macro",0],
|
||||
"arg1":"gtm.js"
|
||||
}],
|
||||
"rules":[
|
||||
[["if",0],["add",0]]]
|
||||
},
|
||||
"runtime":[]
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
/*
|
||||
|
||||
Copyright The Closure Library Authors.
|
||||
SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
var ca,da=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}},ea=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:da(a)}},fa="function"==typeof Object.create?Object.create:function(a){var b=function(){};b.prototype=a;return new b},ha;
|
||||
if("function"==typeof Object.setPrototypeOf)ha=Object.setPrototypeOf;else{var ia;a:{var ja={a:!0},la={};try{la.__proto__=ja;ia=la.a;break a}catch(a){}ia=!1}ha=ia?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}
|
||||
var ma=ha,pa=function(a,b){a.prototype=fa(b.prototype);a.prototype.constructor=a;if(ma)ma(a,b);else for(var c in b)if("prototype"!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.Mi=b.prototype},qa=this||self,ra=function(a){return a};var sa={},ta=function(a,b){sa[a]=sa[a]||[];sa[a][b]=!0},ua=function(a){for(var b=[],c=sa[a]||[],d=0;d<c.length;d++)c[d]&&(b[Math.floor(d/6)]^=1<<d%6);for(var e=0;e<b.length;e++)b[e]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(b[e]||0);return b.join("")};var va=function(){},wa=function(a){return"function"==typeof a},ya=function(a){return"string"==typeof a},za=function(a){return"number"==typeof a&&!isNaN(a)},Aa=function(a){var b="[object Array]"==Object.prototype.toString.call(Object(a));Array.isArray?Array.isArray(a)!==b&&ta("TAGGING",4):ta("TAGGING",5);return b},Ca=function(a,b){if(Array.prototype.indexOf){var c=a.indexOf(b);return"number"==typeof c?c:-1}for(var d=0;d<a.length;d++)if(a[d]===b)return d;return-1},Ea=function(a,b){if(a&&Aa(a))for(var c=
|
||||
0;c<a.length;c++)if(a[c]&&b(a[c]))return a[c]},Ga=function(a,b){if(!za(a)||!za(b)||a>b)a=0,b=2147483647;return Math.floor(Math.random()*(b-a+1)+a)},Ia=function(a,b){for(var c=new Ha,d=0;d<a.length;d++)c.set(a[d],!0);for(var e=0;e<b.length;e++)if(c.get(b[e]))return!0;return!1},Ja=function(a,b){for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b(c,a[c])},Ka=function(a){return!!a&&("[object Arguments]"==Object.prototype.toString.call(a)||Object.prototype.hasOwnProperty.call(a,"callee"))},La=
|
||||
function(a){return Math.round(Number(a))||0},Ma=function(a){return"false"==String(a).toLowerCase()?!1:!!a},Na=function(a){var b=[];if(Aa(a))for(var c=0;c<a.length;c++)b.push(String(a[c]));return b},Oa=function(a){return a?a.replace(/^\s+|\s+$/g,""):""},Ra=function(){return new Date(Date.now())},g=function(){return Ra().getTime()},Ha=function(){this.prefix="gtm.";this.values={}};Ha.prototype.set=function(a,b){this.values[this.prefix+a]=b};
|
||||
Ha.prototype.get=function(a){return this.values[this.prefix+a]};
|
||||
var Ta=function(a,b,c){return a&&a.hasOwnProperty(b)?a[b]:c},Ua=function(a){var b=a;return function(){if(b){var c=b;b=void 0;try{c()}catch(d){}}}},Va=function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])},Wa=function(a){for(var b in a)if(a.hasOwnProperty(b))return!0;return!1},Xa=function(a,b){for(var c=[],d=0;d<a.length;d++)c.push(a[d]),c.push.apply(c,b[a[d]]||[]);return c},$a=function(a,b){for(var c={},d=c,e=a.split("."),f=0;f<e.length-1;f++)d=d[e[f]]={};d[e[e.length-1]]=b;return c},ab=/^\w{1,9}$/,
|
||||
bb=function(a){var b=[];Ja(a,function(c,d){ab.test(c)&&d&&b.push(c)});return b.join(",")};var cb,db=function(){if(void 0===cb){var a=null,b=qa.trustedTypes;if(b&&b.createPolicy){try{a=b.createPolicy("goog#html",{createHTML:ra,createScript:ra,createScriptURL:ra})}catch(c){qa.console&&qa.console.error(c.message)}cb=a}else cb=a}return cb};var gb=function(a,b){this.o=b===fb?a:""};gb.prototype.toString=function(){return this.o+""};var fb={};var hb=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i;var ib;a:{var kb=qa.navigator;if(kb){var lb=kb.userAgent;if(lb){ib=lb;break a}}ib=""}var mb=function(a){return-1!=ib.indexOf(a)};var ob=function(a,b,c){this.o=c===nb?a:""};ob.prototype.toString=function(){return this.o.toString()};var pb=function(a){return a instanceof ob&&a.constructor===ob?a.o:"type_error:SafeHtml"},nb={},qb=function(a){var b=db(),c=b?b.createHTML(a):a;return new ob(c,null,nb)},rb=new ob(qa.trustedTypes&&qa.trustedTypes.emptyHTML||"",0,nb);var sb=function(a,b){var c=function(){};c.prototype=a.prototype;var d=new c;a.apply(d,Array.prototype.slice.call(arguments,1));return d},tb=function(a){var b=a;return function(){if(b){var c=b;b=null;c()}}};var ub=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}}(function(){var a=document.createElement("div"),b=document.createElement("div");b.appendChild(document.createElement("div"));a.appendChild(b);var c=a.firstChild.firstChild;a.innerHTML=pb(rb);return!c.parentElement}),vb=function(a,b){if(ub())for(;a.lastChild;)a.removeChild(a.lastChild);a.innerHTML=pb(b)};var m=window,B=document,wb=navigator,xb=B.currentScript&&B.currentScript.src,Cb=function(a,b){var c=m[a];m[a]=void 0===c?b:c;return m[a]},Db=function(a,b){b&&(a.addEventListener?a.onload=b:a.onreadystatechange=function(){a.readyState in{loaded:1,complete:1}&&(a.onreadystatechange=null,b())})},Eb=function(a,b,c){var d=B.createElement("script");d.type="text/javascript";d.async=!0;var e,f=db(),h=f?f.createScriptURL(a):a;e=new gb(h,fb);d.src=e instanceof gb&&e.constructor===gb?e.o:"type_error:TrustedResourceUrl";
|
||||
var k,l,n=(d.ownerDocument&&d.ownerDocument.defaultView||window).document,q=null===(l=n.querySelector)||void 0===l?void 0:l.call(n,"script[nonce]");(k=q?q.nonce||q.getAttribute("nonce")||"":"")&&d.setAttribute("nonce",k);Db(d,b);c&&(d.onerror=c);var p=B.getElementsByTagName("script")[0]||B.body||B.head;p.parentNode.insertBefore(d,p);return d},Fb=function(){if(xb){var a=xb.toLowerCase();if(0===a.indexOf("https://"))return 2;if(0===a.indexOf("http://"))return 3}return 1},Gb=function(a,b){var c=B.createElement("iframe");
|
||||
c.height="0";c.width="0";c.style.display="none";c.style.visibility="hidden";var d=B.body&&B.body.lastChild||B.body||B.head;d.parentNode.insertBefore(c,d);Db(c,b);void 0!==a&&(c.src=a);return c},Hb=function(a,b,c){var d=new Image(1,1);d.onload=function(){d.onload=null;b&&b()};d.onerror=function(){d.onerror=null;c&&c()};d.src=a;return d},Ib=function(a,b,c,d){a.addEventListener?a.addEventListener(b,c,!!d):a.attachEvent&&a.attachEvent("on"+b,c)},Jb=function(a,b,c){a.removeEventListener?a.removeEventListener(b,
|
||||
c,!1):a.detachEvent&&a.detachEvent("on"+b,c)},E=function(a){m.setTimeout(a,0)},Kb=function(a,b){return a&&b&&a.attributes&&a.attributes[b]?a.attributes[b].value:null},Lb=function(a){var b=a.innerText||a.textContent||"";b&&" "!=b&&(b=b.replace(/^[\s\xa0]+|[\s\xa0]+$/g,""));b&&(b=b.replace(/(\xa0+|\s{2,}|\n|\r\t)/g," "));return b},Nb=function(a){var b=B.createElement("div"),c=qb("A<div>"+a+"</div>");vb(b,c);b=b.lastChild;for(var d=[];b.firstChild;)d.push(b.removeChild(b.firstChild));return d},Ob=function(a,
|
||||
b,c){c=c||100;for(var d={},e=0;e<b.length;e++)d[b[e]]=!0;for(var f=a,h=0;f&&h<=c;h++){if(d[String(f.tagName).toLowerCase()])return f;f=f.parentElement}return null},Pb=function(a){wb.sendBeacon&&wb.sendBeacon(a)||Hb(a)},Qb=function(a,b){var c=a[b];c&&"string"===typeof c.animVal&&(c=c.animVal);return c};/*
|
||||
jQuery v1.9.1 (c) 2005, 2012 jQuery Foundation, Inc. jquery.org/license. */
|
||||
var Rb=/\[object (Boolean|Number|String|Function|Array|Date|RegExp)\]/,Sb=function(a){if(null==a)return String(a);var b=Rb.exec(Object.prototype.toString.call(Object(a)));return b?b[1].toLowerCase():"object"},Tb=function(a,b){return Object.prototype.hasOwnProperty.call(Object(a),b)},Ub=function(a){if(!a||"object"!=Sb(a)||a.nodeType||a==a.window)return!1;try{if(a.constructor&&!Tb(a,"constructor")&&!Tb(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}for(var b in a);return void 0===
|
||||
b||Tb(a,b)},G=function(a,b){var c=b||("array"==Sb(a)?[]:{}),d;for(d in a)if(Tb(a,d)){var e=a[d];"array"==Sb(e)?("array"!=Sb(c[d])&&(c[d]=[]),c[d]=G(e,c[d])):Ub(e)?(Ub(c[d])||(c[d]={}),c[d]=G(e,c[d])):c[d]=e}return c};var Vb=function(a){if(void 0===a||Aa(a)||Ub(a))return!0;switch(typeof a){case "boolean":case "number":case "string":case "function":return!0}return!1};var Wb=function(){var a=function(b){return{toString:function(){return b}}};return{kg:a("consent"),lg:a("consent_always_fire"),De:a("convert_case_to"),Ee:a("convert_false_to"),Fe:a("convert_null_to"),Ge:a("convert_true_to"),He:a("convert_undefined_to"),vi:a("debug_mode_metadata"),ab:a("function"),Xg:a("instance_name"),Zg:a("live_only"),$g:a("malware_disabled"),ah:a("metadata"),yi:a("original_activity_id"),zi:a("original_vendor_template_id"),dh:a("once_per_event"),kf:a("once_per_load"),Bi:a("priority_override"),
|
||||
Ci:a("respected_consent_types"),rf:a("setup_tags"),tf:a("tag_id"),uf:a("teardown_tags")}}();var vc;
|
||||
var wc=[],xc=[],yc=[],zc=[],Ac=[],Bc={},Cc,Dc,Ec,Fc=function(a,b){var c=a["function"];if(!c)throw Error("Error: No function name given for function call.");var d=Bc[c],e={},f;for(f in a)if(a.hasOwnProperty(f))if(0===f.indexOf("vtp_"))d&&b&&b.Cf&&b.Cf(a[f]),e[void 0!==d?f:f.substr(4)]=a[f];else if(f===Wb.lg.toString()&&a[f]){}
|
||||
d&&b&&b.Bf&&(e.vtp_gtmCachedValues=b.Bf);return void 0!==d?d(e):vc(c,e,b)},Hc=function(a,b,c){c=c||[];var d={},e;for(e in a)a.hasOwnProperty(e)&&(d[e]=Gc(a[e],b,c));return d},Gc=function(a,b,c){if(Aa(a)){var d;switch(a[0]){case "function_id":return a[1];case "list":d=[];for(var e=1;e<a.length;e++)d.push(Gc(a[e],b,c));return d;case "macro":var f=a[1];if(c[f])return;var h=wc[f];if(!h||b.de(h))return;c[f]=!0;try{var k=Hc(h,b,c);k.vtp_gtmEventId=b.id;
|
||||
d=Fc(k,b);Ec&&(d=Ec.sh(d,k))}catch(z){b.Of&&b.Of(z,Number(f)),d=!1}c[f]=!1;return d;case "map":d={};for(var l=1;l<a.length;l+=2)d[Gc(a[l],b,c)]=Gc(a[l+1],b,c);return d;case "template":d=[];for(var n=!1,q=1;q<a.length;q++){var p=Gc(a[q],b,c);Dc&&(n=n||p===Dc.Fc);d.push(p)}return Dc&&n?Dc.vh(d):d.join("");case "escape":d=Gc(a[1],b,c);if(Dc&&Aa(a[1])&&"macro"===a[1][0]&&Dc.Nh(a))return Dc.ai(d);d=String(d);for(var r=2;r<a.length;r++)Xb[a[r]]&&(d=Xb[a[r]](d));return d;case "tag":var t=a[1];if(!zc[t])throw Error("Unable to resolve tag reference "+
|
||||
t+".");return d={Jf:a[2],index:t};case "zb":var u={arg0:a[2],arg1:a[3],ignore_case:a[5]};u["function"]=a[1];var v=Ic(u,b,c),x=!!a[4];return x||2!==v?x!==(1===v):null;default:throw Error("Attempting to expand unknown Value type: "+a[0]+".");}}return a},Ic=function(a,b,c){try{return Cc(Hc(a,b,c))}catch(d){JSON.stringify(a)}return 2};var Lc=function(a){function b(r){for(var t=0;t<r.length;t++)d[r[t]]=!0}for(var c=[],d=[],e=Jc(a),f=0;f<xc.length;f++){var h=xc[f],k=Kc(h,e);if(k){for(var l=h.add||[],n=0;n<l.length;n++)c[l[n]]=!0;b(h.block||[])}else null===k&&b(h.block||[]);}for(var q=[],p=0;p<zc.length;p++)c[p]&&!d[p]&&(q[p]=!0);return q},Kc=function(a,b){for(var c=a["if"]||[],d=0;d<c.length;d++){var e=b(c[d]);if(0===e)return!1;if(2===e)return null}for(var f=
|
||||
a.unless||[],h=0;h<f.length;h++){var k=b(f[h]);if(2===k)return null;if(1===k)return!1}return!0},Jc=function(a){var b=[];return function(c){void 0===b[c]&&(b[c]=Ic(yc[c],a));return b[c]}};var Mc={sh:function(a,b){b[Wb.De]&&"string"===typeof a&&(a=1==b[Wb.De]?a.toLowerCase():a.toUpperCase());b.hasOwnProperty(Wb.Fe)&&null===a&&(a=b[Wb.Fe]);b.hasOwnProperty(Wb.He)&&void 0===a&&(a=b[Wb.He]);b.hasOwnProperty(Wb.Ge)&&!0===a&&(a=b[Wb.Ge]);b.hasOwnProperty(Wb.Ee)&&!1===a&&(a=b[Wb.Ee]);return a}};var I={Mb:"_ee",Lc:"_syn_or_mod",Di:"_uei",Ed:"_eu",Ai:"_pci",vd:"event_callback",sc:"event_timeout",sa:"gtag.config",Fa:"gtag.get",ia:"purchase",pb:"refund",Ua:"begin_checkout",nb:"add_to_cart",ob:"remove_from_cart",vg:"view_cart",Le:"add_to_wishlist",Ea:"view_item",Ke:"view_promotion",Je:"select_promotion",gd:"select_item",kc:"view_item_list",Ie:"add_payment_info",ug:"add_shipping_info",Qa:"value_key",Pa:"value_callback",va:"allow_ad_personalization_signals",Jb:"restricted_data_processing",Fb:"allow_google_signals",
|
||||
ya:"cookie_expires",Gb:"cookie_update",Lb:"session_duration",yc:"session_engaged_time",Ia:"user_properties",ka:"transport_url",O:"ads_data_redaction",ub:"user_data",Hb:"first_party_collection",D:"ad_storage",H:"analytics_storage",Be:"region",Ce:"wait_for_update",xa:"conversion_linker",wa:"conversion_cookie_prefix",aa:"value",Z:"currency",bf:"trip_type",V:"items",Ve:"passengers",hd:"allow_custom_scripts",tb:"session_id",$e:"quantity",$a:"transaction_id",Xa:"language",qc:"country",nc:"allow_enhanced_conversions",
|
||||
nd:"aw_merchant_id",ld:"aw_feed_country",md:"aw_feed_language",kd:"discount",Pe:"developer_id",Ac:"delivery_postal_code",ud:"estimated_delivery_date",rd:"shipping",Cd:"new_customer",od:"customer_lifetime_value",td:"enhanced_conversions"};
|
||||
I.Eb="page_view",I.Me="user_engagement",I.og="app_remove",I.pg="app_store_refund",I.qg="app_store_subscription_cancel",I.rg="app_store_subscription_convert",I.sg="app_store_subscription_renew",I.wg="first_open",I.xg="first_visit",I.yg="in_app_purchase",I.zg="session_start",I.Ag="user_data_login",I.Bg="user_data_logout",I.Cg="allow_display_features",I.Va="client_id",I.ca="cookie_domain",I.oc="cookie_name",I.Wa="cookie_path",I.Ga="cookie_flags",I.Oe="custom_map",I.zd="groups",I.wi="non_interaction",
|
||||
I.sb="page_location",I.Ue="page_path",I.Ra="page_referrer",I.Dd="page_title",I.Kb="send_page_view",I.Za="send_to",I.xc="session_engaged",I.vc="_logged_in_state",I.zc="session_number",I.Tg="tracking_id",I.za="linker",I.Ha="url_passthrough",I.Ya="accept_incoming",I.N="domains",I.rb="url_position",I.qb="decorate_forms",I.Ye="phone_conversion_number",I.We="phone_conversion_callback",I.Xe="phone_conversion_css_class",I.Ze="phone_conversion_options",I.Pg="phone_conversion_ids",I.Og="phone_conversion_country_code",
|
||||
I.Ne="aw_remarketing",I.jd="aw_remarketing_only",I.mc="gclid",I.Gg="affiliation",I.Te="tax",I.qd="list_name",I.Se="checkout_step",I.Re="checkout_option",I.Hg="coupon",I.Ig="promotions",I.vb="user_id",I.Qg="retoken",I.ja="cookie_prefix",I.Qe="disable_merchant_reported_purchases",I.Fg="dc_natural_search",I.Eg="dc_custom_params",I.Mg="method",I.Sg="search_term",I.Dg="content_type",I.Ng="optimize_id",I.Jg="experiments",I.Ib="google_signals",I.yd="google_tld",I.Bc="update",I.xd="firebase_id",I.uc="ga_restrict_domain",
|
||||
I.wd="event_settings",I.pd="dynamic_event_settings",I.cf="user_data_settings",I.Rg="screen_name",I.Lg="_x_19",I.sd="_ecid",I.Kg="_x_20",I.Bd="internal_traffic_results",I.af="traffic_type",I.wc="referral_exclusion_definition",I.Ad="ignore_referrer";I.ff=[I.ia,I.pb,I.Ua,I.nb,I.ob,I.vg,I.Le,I.Ea,I.Ke,I.Je,I.kc,I.gd,I.Ie,I.ug];I.ef=[I.va,I.Fb,I.Gb];I.hf=[I.ya,I.sc,I.Lb,I.yc];var nd=function(a){ta("GTM",a)};var od=function(a,b){this.o=a;this.defaultValue=void 0===b?!1:b};var pd=new od(1936,!0),xd=new od(1933),yd=new od(373442741);var Ad=function(){var a=zd;if(a.be&&a.hasOwnProperty("be"))return a.be;var b=new a;return a.be=b};var zd=function(){var a={};this.o=function(b,c){return null!=a[b]?a[b]:c};this.s=function(){a[xd.o]=!0}},Bd=function(a){return Ad().o(a.o,a.defaultValue)};var Cd=[];function Dd(){var a=Cb("google_tag_data",{});a.ics||(a.ics={entries:{},set:Ed,update:Fd,addListener:Gd,notifyListeners:Hd,active:!1,usedDefault:!1});return a.ics}
|
||||
function Ed(a,b,c,d,e,f){var h=Dd();h.active=!0;h.usedDefault=!0;if(void 0!=b){var k=h.entries,l=k[a]||{},n=l.region,q=c&&ya(c)?c.toUpperCase():void 0;d=d.toUpperCase();e=e.toUpperCase();if(""===d||q===e||(q===d?n!==e:!q&&!n)){var p=!!(f&&0<f&&void 0===l.update),r={region:q,initial:"granted"===b,update:l.update,quiet:p};if(""!==d||!1!==l.initial)k[a]=r;p&&m.setTimeout(function(){k[a]===r&&r.quiet&&(r.quiet=!1,Id(a),Hd(),ta("TAGGING",2))},f)}}}
|
||||
function Fd(a,b){var c=Dd();c.active=!0;if(void 0!=b){var d=Jd(a),e=c.entries,f=e[a]=e[a]||{};f.update="granted"===b;var h=Jd(a);f.quiet?(f.quiet=!1,Id(a)):h!==d&&Id(a)}}function Gd(a,b){Cd.push({Td:a,Dh:b})}function Id(a){for(var b=0;b<Cd.length;++b){var c=Cd[b];Aa(c.Td)&&-1!==c.Td.indexOf(a)&&(c.Rf=!0)}}function Hd(a){for(var b=0;b<Cd.length;++b){var c=Cd[b];if(c.Rf){c.Rf=!1;try{c.Dh({rh:a})}catch(d){}}}}
|
||||
var Jd=function(a){var b=Dd().entries[a]||{};return void 0!==b.update?b.update:b.initial},Kd=function(a){return(Dd().entries[a]||{}).initial},Ld=function(a){return!(Dd().entries[a]||{}).quiet},Md=function(){return Bd(xd)?Dd().active:!1},Nd=function(){return Dd().usedDefault},Od=function(a,b){Dd().addListener(a,b)},Pd=function(a){Dd().notifyListeners(a)},Qd=function(a,b){function c(){for(var e=0;e<b.length;e++)if(!Ld(b[e]))return!0;return!1}if(c()){var d=!1;Od(b,function(e){d||c()||(d=!0,a(e))})}else a({})},
|
||||
Rd=function(a,b){function c(){for(var f=[],h=0;h<d.length;h++){var k=d[h];!1===Jd(k)||e[k]||(f.push(k),e[k]=!0)}return f}var d=ya(b)?[b]:b,e={};c().length!==d.length&&Od(d,function(f){var h=c();0<h.length&&(f.Td=h,a(f))})};function Sd(a){for(var b=[],c=0;c<Td.length;c++){var d=a(Td[c]);b[c]=!0===d?"1":!1===d?"0":"-"}return b.join("")}
|
||||
var Td=[I.D,I.H],Ud=function(a){var b=a[I.Be];b&&nd(40);var c=a[I.Ce];c&&nd(41);for(var d=Aa(b)?b:[b],e={Ab:0};e.Ab<d.length;e={Ab:e.Ab},++e.Ab)Ja(a,function(f){return function(h,k){if(h!==I.Be&&h!==I.Ce){var l=d[f.Ab];Dd().set(h,k,l,"CN","CN-33",c)}}}(e))},Vd=function(a,b){Ja(a,function(c,d){Dd().update(c,d)});Pd(b)},K=function(a){var b=Jd(a);return void 0!=b?b:!0},Wd=function(){return"G1"+Sd(Jd)},Xd=function(a,b){Rd(a,b)},Yd=function(a,b){Qd(a,b)};var $d=function(a){return Zd?B.querySelectorAll(a):null},ae=function(a,b){if(!Zd)return null;if(Element.prototype.closest)try{return a.closest(b)}catch(e){return null}var c=Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector,d=a;if(!B.documentElement.contains(d))return null;do{try{if(c.call(d,b))return d}catch(e){break}d=d.parentElement||d.parentNode}while(null!==d&&1===d.nodeType);
|
||||
return null},be=!1;if(B.querySelectorAll)try{var ce=B.querySelectorAll(":root");ce&&1==ce.length&&ce[0]==B.documentElement&&(be=!0)}catch(a){}var Zd=be;var de=function(a){if(B.hidden)return!0;var b=a.getBoundingClientRect();if(b.top==b.bottom||b.left==b.right||!m.getComputedStyle)return!0;var c=m.getComputedStyle(a,null);if("hidden"===c.visibility)return!0;for(var d=a,e=c;d;){if("none"===e.display)return!0;var f=e.opacity,h=e.filter;if(h){var k=h.indexOf("opacity(");0<=k&&(h=h.substring(k+8,h.indexOf(")",k)),"%"==h.charAt(h.length-1)&&(h=h.substring(0,h.length-1)),f=Math.min(h,f))}if(void 0!==f&&0>=f)return!0;(d=d.parentElement)&&(e=m.getComputedStyle(d,
|
||||
null))}return!1};var me=/:[0-9]+$/,ne=function(a,b,c){for(var d=a.split("&"),e=0;e<d.length;e++){var f=d[e].split("=");if(decodeURIComponent(f[0]).replace(/\+/g," ")===b){var h=f.slice(1).join("=");return c?h:decodeURIComponent(h).replace(/\+/g," ")}}},qe=function(a,b,c,d,e){b&&(b=String(b).toLowerCase());if("protocol"===b||"port"===b)a.protocol=oe(a.protocol)||oe(m.location.protocol);"port"===b?a.port=String(Number(a.hostname?a.port:m.location.port)||("http"==a.protocol?80:"https"==a.protocol?443:"")):"host"===b&&
|
||||
(a.hostname=(a.hostname||m.location.hostname).replace(me,"").toLowerCase());return pe(a,b,c,d,e)},pe=function(a,b,c,d,e){var f,h=oe(a.protocol);b&&(b=String(b).toLowerCase());switch(b){case "url_no_fragment":f=re(a);break;case "protocol":f=h;break;case "host":f=a.hostname.replace(me,"").toLowerCase();if(c){var k=/^www\d*\./.exec(f);k&&k[0]&&(f=f.substr(k[0].length))}break;case "port":f=String(Number(a.port)||("http"==h?80:"https"==h?443:""));break;case "path":a.pathname||a.hostname||ta("TAGGING",
|
||||
1);f="/"==a.pathname.substr(0,1)?a.pathname:"/"+a.pathname;var l=f.split("/");0<=Ca(d||[],l[l.length-1])&&(l[l.length-1]="");f=l.join("/");break;case "query":f=a.search.replace("?","");e&&(f=ne(f,e,void 0));break;case "extension":var n=a.pathname.split(".");f=1<n.length?n[n.length-1]:"";f=f.split("/")[0];break;case "fragment":f=a.hash.replace("#","");break;default:f=a&&a.href}return f},oe=function(a){return a?a.replace(":","").toLowerCase():""},re=function(a){var b="";if(a&&a.href){var c=a.href.indexOf("#");
|
||||
b=0>c?a.href:a.href.substr(0,c)}return b},se=function(a){var b=B.createElement("a");a&&(b.href=a);var c=b.pathname;"/"!==c[0]&&(a||ta("TAGGING",1),c="/"+c);var d=b.hostname.replace(me,"");return{href:b.href,protocol:b.protocol,host:b.host,hostname:d,pathname:c,search:b.search,hash:b.hash,port:b.port}},te=function(a){function b(n){var q=n.split("=")[0];return 0>d.indexOf(q)?n:q+"=0"}function c(n){return n.split("&").map(b).filter(function(q){return void 0!=q}).join("&")}var d="gclid dclid gbraid wbraid gclaw gcldc gclha gclgf gclgb _gl".split(" "),
|
||||
e=se(a),f=a.split(/[?#]/)[0],h=e.search,k=e.hash;"?"===h[0]&&(h=h.substring(1));"#"===k[0]&&(k=k.substring(1));h=c(h);k=c(k);""!==h&&(h="?"+h);""!==k&&(k="#"+k);var l=""+f+h+k;"/"===l[l.length-1]&&(l=l.substring(0,l.length-1));return l};var ue={};var ve=new RegExp(/[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}/i),we=new RegExp(/@(gmail|googlemail)\./i),ye=new RegExp(/support|noreply/i),ze="SCRIPT STYLE IMG SVG PATH BR".split(" "),Ae=["BR"],Be={};
|
||||
function Ce(a){var b;if(a===B.body)b="body";else{var c;if(a.id)c="#"+a.id;else{var d;if(a.parentElement){var e;a:{var f=a.parentElement;if(f){for(var h=0;h<f.childElementCount;h++)if(f.children[h]===a){e=h+1;break a}e=-1}else e=1}d=Ce(a.parentElement)+">:nth-child("+e+")"}else d="";c=d}b=c}return b}function De(a,b){if(1>=a.length)return a;var c=a.filter(b);return 0==c.length?a:c}
|
||||
function Ee(a){if(0==a.length)return null;var b;b=De(a,function(c){return!ye.test(c.ra)});b=De(b,function(c){return"INPUT"===c.element.tagName.toUpperCase()});b=De(b,function(c){return!de(c.element)});return b[0]}
|
||||
var Fe=function(){var a=Be["true.true"];if(a&&200>g()-a.timestamp)return a.result;var b;var c=[],d=B.body;if(d){for(var e=d.querySelectorAll("*"),f=0;f<e.length&&1E4>f;f++){var h=e[f];if(!(0<=ze.indexOf(h.tagName.toUpperCase()))){for(var k=!1,l=0;l<h.childElementCount&&1E4>l;l++)if(!(0<=Ae.indexOf(h.children[l].tagName.toUpperCase()))){k=!0;break}k||c.push(h)}}b={elements:c,status:1E4<e.length?"2":"1"}}else b={elements:c,status:"4"};for(var n=b,q=n.elements,p=[],r=0;r<q.length;r++){var t=q[r],u=t.textContent;
|
||||
t.value&&(u=t.value);if(u){var v=u.match(ve);if(v){var x=v[0],z;if(m.location){var w=pe(m.location,"host",!0);z=0<=x.toLowerCase().indexOf(w)}else z=!1;z||p.push({element:t,ra:x})}}}var y=Ee(p),A=[];if(y){var C=y.element,F={ra:y.ra,tagName:C.tagName,type:1};F.querySelector=Ce(C);F.isVisible=!de(C);A.push(F)}var D={elements:A,status:10<p.length?"3":n.status};Be["true.true"]={timestamp:g(),result:D};return D},Ge=function(a){return a.tagName+":"+a.isVisible+":"+a.ra.length+":"+we.test(a.ra)};var Ze={},L=null,$e=Math.random();Ze.M="UA-116309121-1";Ze.Kc="6n0";Ze.xi="";Ze.ng="ChEI8KzwhgYQiqjNtMCLlfC2ARInAIM0oVBHlp0uuGorEBA2ZxvcHaN56gIaXpVlQkDCL2ScTAnDGBlTGgKB+A\x3d\x3d";var af={__cl:!0,__ecl:!0,__ehl:!0,__evl:!0,__fal:!0,__fil:!0,__fsl:!0,__hl:!0,__jel:!0,__lcl:!0,__sdl:!0,__tl:!0,__ytl:!0},bf={__paused:!0,__tg:!0},cf;for(cf in af)af.hasOwnProperty(cf)&&(bf[cf]=!0);var df="www.googletagmanager.com/gtm.js";df="www.googletagmanager.com/gtag/js";
|
||||
var ef=df,ff=Ma("true"),gf=null,hf=null,jf="https://www.googletagmanager.com/a?id="+Ze.M+"&cv=1",kf={},lf={},mf=function(){var a=L.sequence||1;L.sequence=a+1;return a};Ze.mg="";var nf={},of=new Ha,pf={},qf={},tf={name:"dataLayer",set:function(a,b){G($a(a,b),pf);rf()},get:function(a){return sf(a,2)},reset:function(){of=new Ha;pf={};rf()}},sf=function(a,b){return 2!=b?of.get(a):uf(a)},uf=function(a){var b,c=a.split(".");b=b||[];for(var d=pf,e=0;e<c.length;e++){if(null===d)return!1;if(void 0===d)break;d=d[c[e]];if(-1!==Ca(b,d))return}return d},vf=function(a,b){qf.hasOwnProperty(a)||(of.set(a,b),G($a(a,b),pf),rf())},rf=function(a){Ja(qf,function(b,c){of.set(b,c);G($a(b,
|
||||
void 0),pf);G($a(b,c),pf);a&&delete qf[b]})},xf=function(a,b,c){nf[a]=nf[a]||{};nf[a][b]=wf(b,c)},wf=function(a,b){var c,d=1!==(void 0===b?2:b)?uf(a):of.get(a);"array"===Sb(d)||"object"===Sb(d)?c=G(d):c=d;return c},yf=function(a,b){if(nf[a])return nf[a][b]},zf=function(a,b){nf[a]&&delete nf[a][b]};var Cf={},Df=function(a,b){if(m._gtmexpgrp&&m._gtmexpgrp.hasOwnProperty(a))return m._gtmexpgrp[a];void 0===Cf[a]&&(Cf[a]=Math.floor(Math.random()*b));return Cf[a]};function Ef(a,b,c){for(var d=[],e=b.split(";"),f=0;f<e.length;f++){var h=e[f].split("="),k=h[0].replace(/^\s*|\s*$/g,"");if(k&&k==a){var l=h.slice(1).join("=").replace(/^\s*|\s*$/g,"");l&&c&&(l=decodeURIComponent(l));d.push(l)}}return d};function Ff(a){return Bd(yd)&&!a.navigator.cookieEnabled?!1:"null"!==a.origin};var If=function(a,b,c,d){return Gf(d)?Ef(a,String(b||Hf()),c):[]},Lf=function(a,b,c,d,e){if(Gf(e)){var f=Jf(a,d,e);if(1===f.length)return f[0].id;if(0!==f.length){f=Kf(f,function(h){return h.Rc},b);if(1===f.length)return f[0].id;f=Kf(f,function(h){return h.Zb},c);return f[0]?f[0].id:void 0}}};function Mf(a,b,c,d){var e=Hf(),f=window;Ff(f)&&(f.document.cookie=a);var h=Hf();return e!=h||void 0!=c&&0<=If(b,h,!1,d).indexOf(c)}
|
||||
var Qf=function(a,b,c){function d(t,u,v){if(null==v)return delete h[u],t;h[u]=v;return t+"; "+u+"="+v}function e(t,u){if(null==u)return delete h[u],t;h[u]=!0;return t+"; "+u}if(!Gf(c.Na))return 2;var f;void 0==b?f=a+"=deleted; expires="+(new Date(0)).toUTCString():(c.encode&&(b=encodeURIComponent(b)),b=Nf(b),f=a+"="+b);var h={};f=d(f,"path",c.path);var k;c.expires instanceof Date?k=c.expires.toUTCString():null!=c.expires&&(k=""+c.expires);f=d(f,"expires",k);f=d(f,"max-age",c.Ji);f=d(f,"samesite",
|
||||
c.Ki);c.Li&&(f=e(f,"secure"));var l=c.domain;if("auto"===l){for(var n=Of(),q=0;q<n.length;++q){var p="none"!==n[q]?n[q]:void 0,r=d(f,"domain",p);r=e(r,c.flags);if(!Pf(p,c.path)&&Mf(r,a,b,c.Na))return 0}return 1}l&&"none"!==l&&(f=d(f,"domain",l));f=e(f,c.flags);return Pf(l,c.path)?1:Mf(f,a,b,c.Na)?0:1},Rf=function(a,b,c){null==c.path&&(c.path="/");c.domain||(c.domain="auto");return Qf(a,b,c)};
|
||||
function Kf(a,b,c){for(var d=[],e=[],f,h=0;h<a.length;h++){var k=a[h],l=b(k);l===c?d.push(k):void 0===f||l<f?(e=[k],f=l):l===f&&e.push(k)}return 0<d.length?d:e}function Jf(a,b,c){for(var d=[],e=If(a,void 0,void 0,c),f=0;f<e.length;f++){var h=e[f].split("."),k=h.shift();if(!b||-1!==b.indexOf(k)){var l=h.shift();l&&(l=l.split("-"),d.push({id:h.join("."),Rc:1*l[0]||1,Zb:1*l[1]||1}))}}return d}
|
||||
var Nf=function(a){a&&1200<a.length&&(a=a.substring(0,1200));return a},Sf=/^(www\.)?google(\.com?)?(\.[a-z]{2})?$/,Tf=/(^|\.)doubleclick\.net$/i,Pf=function(a,b){return Tf.test(window.document.location.hostname)||"/"===b&&Sf.test(a)},Hf=function(){return Ff(window)?window.document.cookie:""},Of=function(){var a=[],b=window.document.location.hostname.split(".");if(4===b.length){var c=b[b.length-1];if(parseInt(c,10).toString()===c)return["none"]}for(var d=b.length-2;0<=d;d--)a.push(b.slice(d).join("."));
|
||||
var e=window.document.location.hostname;Tf.test(e)||Sf.test(e)||a.push("none");return a},Gf=function(a){if(!Bd(xd)||!a||!Md())return!0;if(!Ld(a))return!1;var b=Jd(a);return null==b?!0:!!b};var Uf=function(){return[Math.round(2147483647*Math.random()),Math.round(g()/1E3)].join(".")},cg=function(a,b,c,d,e){var f=ag(b);return Lf(a,f,bg(c),d,e)},dg=function(a,b,c,d){var e=""+ag(c),f=bg(d);1<f&&(e+="-"+f);return[b,e,a].join(".")},ag=function(a){if(!a)return 1;a=0===a.indexOf(".")?a.substr(1):a;return a.split(".").length},bg=function(a){if(!a||"/"===a)return 1;"/"!==a[0]&&(a="/"+a);"/"!==a[a.length-1]&&(a+="/");return a.split("/").length-1};function eg(a,b,c){var d,e=Number(null!=a.fb?a.fb:void 0);0!==e&&(d=new Date((b||g())+1E3*(e||7776E3)));return{path:a.path,domain:a.domain,flags:a.flags,encode:!!c,expires:d}};var fg=["1"],gg={},kg=function(a){var b=hg(a.prefix);if(!gg[b]&&!ig(b,a.path,a.domain)){var c=Uf();if(0===jg(b,c,a)){var d=Cb("google_tag_data",{});d._gcl_au?ta("GTM",57):d._gcl_au=c}ig(b,a.path,a.domain)}};function jg(a,b,c){var d=dg(b,"1",c.domain,c.path),e=eg(c);e.Na="ad_storage";return Rf(a,d,e)}function ig(a,b,c){var d=cg(a,b,c,fg,"ad_storage");d&&(gg[a]=d);return d}function hg(a){return(a||"_gcl")+"_au"};var lg=function(a){for(var b=[],c=B.cookie.split(";"),d=new RegExp("^\\s*"+(a||"_gac")+"_(UA-\\d+-\\d+)=\\s*(.+?)\\s*$"),e=0;e<c.length;e++){var f=c[e].match(d);f&&b.push({ve:f[1],value:f[2],timestamp:Number(f[2].split(".")[1])||0})}b.sort(function(h,k){return k.timestamp-h.timestamp});return b};
|
||||
function mg(a,b){var c=lg(a),d={};if(!c||!c.length)return d;for(var e=0;e<c.length;e++){var f=c[e].value.split(".");if(!("1"!==f[0]||b&&3>f.length||!b&&3!==f.length)&&Number(f[1])){d[c[e].ve]||(d[c[e].ve]=[]);var h={version:f[0],timestamp:1E3*Number(f[1]),na:f[2]};b&&3<f.length&&(h.labels=f.slice(3));d[c[e].ve].push(h)}}return d};function ng(){for(var a=og,b={},c=0;c<a.length;++c)b[a[c]]=c;return b}function pg(){var a="ABCDEFGHIJKLMNOPQRSTUVWXYZ";a+=a.toLowerCase()+"0123456789-_";return a+"."}var og,qg;
|
||||
function rg(a){function b(l){for(;d<a.length;){var n=a.charAt(d++),q=qg[n];if(null!=q)return q;if(!/^[\s\xa0]*$/.test(n))throw Error("Unknown base64 encoding at char: "+n);}return l}og=og||pg();qg=qg||ng();for(var c="",d=0;;){var e=b(-1),f=b(0),h=b(64),k=b(64);if(64===k&&-1===e)return c;c+=String.fromCharCode(e<<2|f>>4);64!=h&&(c+=String.fromCharCode(f<<4&240|h>>2),64!=k&&(c+=String.fromCharCode(h<<6&192|k)))}};var sg;var wg=function(){var a=tg,b=ug,c=vg(),d=function(h){a(h.target||h.srcElement||{})},e=function(h){b(h.target||h.srcElement||{})};if(!c.init){Ib(B,"mousedown",d);Ib(B,"keyup",d);Ib(B,"submit",e);var f=HTMLFormElement.prototype.submit;HTMLFormElement.prototype.submit=function(){b(this);f.call(this)};c.init=!0}},xg=function(a,b,c,d,e){var f={callback:a,domains:b,fragment:2===c,placement:c,forms:d,sameHost:e};vg().decorators.push(f)},yg=function(a,b,c){for(var d=vg().decorators,e={},f=0;f<d.length;++f){var h=
|
||||
d[f],k;if(k=!c||h.forms)a:{var l=h.domains,n=a,q=!!h.sameHost;if(l&&(q||n!==B.location.hostname))for(var p=0;p<l.length;p++)if(l[p]instanceof RegExp){if(l[p].test(n)){k=!0;break a}}else if(0<=n.indexOf(l[p])||q&&0<=l[p].indexOf(n)){k=!0;break a}k=!1}if(k){var r=h.placement;void 0==r&&(r=h.fragment?2:1);r===b&&Va(e,h.callback())}}return e},vg=function(){var a=Cb("google_tag_data",{}),b=a.gl;b&&b.decorators||(b={decorators:[]},a.gl=b);return b};var zg=/(.*?)\*(.*?)\*(.*)/,Ag=/^https?:\/\/([^\/]*?)\.?cdn\.ampproject\.org\/?(.*)/,Bg=/^(?:www\.|m\.|amp\.)+/,Cg=/([^?#]+)(\?[^#]*)?(#.*)?/;function Dg(a){return new RegExp("(.*?)(^|&)"+a+"=([^&]*)&?(.*)")}
|
||||
var Fg=function(a){var b=[],c;for(c in a)if(a.hasOwnProperty(c)){var d=a[c];if(void 0!==d&&d===d&&null!==d&&"[object Object]"!==d.toString()){b.push(c);var e=b,f=e.push,h,k=String(d);og=og||pg();qg=qg||ng();for(var l=[],n=0;n<k.length;n+=3){var q=n+1<k.length,p=n+2<k.length,r=k.charCodeAt(n),t=q?k.charCodeAt(n+1):0,u=p?k.charCodeAt(n+2):0,v=r>>2,x=(r&3)<<4|t>>4,z=(t&15)<<2|u>>6,w=u&63;p||(w=64,q||(z=64));l.push(og[v],og[x],og[z],og[w])}h=l.join("");f.call(e,h)}}var y=b.join("*");return["1",Eg(y),
|
||||
y].join("*")},Eg=function(a,b){var c=[window.navigator.userAgent,(new Date).getTimezoneOffset(),window.navigator.userLanguage||window.navigator.language,Math.floor((new Date).getTime()/60/1E3)-(void 0===b?0:b),a].join("*"),d;if(!(d=sg)){for(var e=Array(256),f=0;256>f;f++){for(var h=f,k=0;8>k;k++)h=h&1?h>>>1^3988292384:h>>>1;e[f]=h}d=e}sg=d;for(var l=4294967295,n=0;n<c.length;n++)l=l>>>8^sg[(l^c.charCodeAt(n))&255];return((l^-1)>>>0).toString(36)},Hg=function(){return function(a){var b=se(m.location.href),
|
||||
c=b.search.replace("?",""),d=ne(c,"_gl",!0)||"";a.query=Gg(d)||{};var e=qe(b,"fragment").match(Dg("_gl"));a.fragment=Gg(e&&e[3]||"")||{}}},Ig=function(a){var b=Hg(),c=vg();c.data||(c.data={query:{},fragment:{}},b(c.data));var d={},e=c.data;e&&(Va(d,e.query),a&&Va(d,e.fragment));return d},Gg=function(a){var b;b=void 0===b?3:b;try{if(a){var c;a:{for(var d=a,e=0;3>e;++e){var f=zg.exec(d);if(f){c=f;break a}d=decodeURIComponent(d)}c=void 0}var h=c;if(h&&"1"===h[1]){var k=h[3],l;a:{for(var n=h[2],q=0;q<
|
||||
b;++q)if(n===Eg(k,q)){l=!0;break a}l=!1}if(l){for(var p={},r=k?k.split("*"):[],t=0;t<r.length;t+=2)p[r[t]]=rg(r[t+1]);return p}}}}catch(u){}};function Jg(a,b,c,d){function e(q){var p=q,r=Dg(a).exec(p),t=p;if(r){var u=r[2],v=r[4];t=r[1];v&&(t=t+u+v)}q=t;var x=q.charAt(q.length-1);q&&"&"!==x&&(q+="&");return q+n}d=void 0===d?!1:d;var f=Cg.exec(c);if(!f)return"";var h=f[1],k=f[2]||"",l=f[3]||"",n=a+"="+b;d?l="#"+e(l.substring(1)):k="?"+e(k.substring(1));return""+h+k+l}
|
||||
function Kg(a,b){var c="FORM"===(a.tagName||"").toUpperCase(),d=yg(b,1,c),e=yg(b,2,c),f=yg(b,3,c);if(Wa(d)){var h=Fg(d);c?Lg("_gl",h,a):Mg("_gl",h,a,!1)}if(!c&&Wa(e)){var k=Fg(e);Mg("_gl",k,a,!0)}for(var l in f)if(f.hasOwnProperty(l))a:{var n=l,q=f[l],p=a;if(p.tagName){if("a"===p.tagName.toLowerCase()){Mg(n,q,p,void 0);break a}if("form"===p.tagName.toLowerCase()){Lg(n,q,p);break a}}"string"==typeof p&&Jg(n,q,p,void 0)}}
|
||||
function Mg(a,b,c,d){if(c.href){var e=Jg(a,b,c.href,void 0===d?!1:d);hb.test(e)&&(c.href=e)}}
|
||||
function Lg(a,b,c){if(c&&c.action){var d=(c.method||"").toLowerCase();if("get"===d){for(var e=c.childNodes||[],f=!1,h=0;h<e.length;h++){var k=e[h];if(k.name===a){k.setAttribute("value",b);f=!0;break}}if(!f){var l=B.createElement("input");l.setAttribute("type","hidden");l.setAttribute("name",a);l.setAttribute("value",b);c.appendChild(l)}}else if("post"===d){var n=Jg(a,b,c.action);hb.test(n)&&(c.action=n)}}}
|
||||
var tg=function(a){try{var b;a:{for(var c=a,d=100;c&&0<d;){if(c.href&&c.nodeName.match(/^a(?:rea)?$/i)){b=c;break a}c=c.parentNode;d--}b=null}var e=b;if(e){var f=e.protocol;"http:"!==f&&"https:"!==f||Kg(e,e.hostname)}}catch(h){}},ug=function(a){try{if(a.action){var b=qe(se(a.action),"host");Kg(a,b)}}catch(c){}},Ng=function(a,b,c,d){wg();xg(a,b,"fragment"===c?2:1,!!d,!1)},Og=function(a,b){wg();xg(a,[pe(m.location,"host",!0)],b,!0,!0)},Pg=function(){var a=B.location.hostname,b=Ag.exec(B.referrer);if(!b)return!1;
|
||||
var c=b[2],d=b[1],e="";if(c){var f=c.split("/"),h=f[1];e="s"===h?decodeURIComponent(f[2]):decodeURIComponent(h)}else if(d){if(0===d.indexOf("xn--"))return!1;e=d.replace(/-/g,".").replace(/\.\./g,"-")}var k=a.replace(Bg,""),l=e.replace(Bg,""),n;if(!(n=k===l)){var q="."+l;n=k.substring(k.length-q.length,k.length)===q}return n},Qg=function(a,b){return!1===a?!1:a||b||Pg()};var Rg={};var Sg=/^\w+$/,Tg=/^[\w-]+$/,Ug={aw:"_aw",dc:"_dc",gf:"_gf",ha:"_ha",gp:"_gp",gb:"_gb"},Vg=function(){if(!Bd(xd)||!Md())return!0;var a=Jd("ad_storage");return null==a?!0:!!a},Wg=function(a,b){Ld("ad_storage")?Vg()?a():Rd(a,"ad_storage"):b?ta("TAGGING",3):Qd(function(){Wg(a,!0)},["ad_storage"])},Yg=function(a){return Xg(a).map(function(b){return b.na})},Xg=function(a){var b=[];if(!Ff(m)||!B.cookie)return b;var c=If(a,B.cookie,void 0,"ad_storage");if(!c||0==c.length)return b;for(var d={},e=0;e<c.length;d=
|
||||
{hc:d.hc},e++){var f=Zg(c[e]);if(null!=f){var h=f,k=h.version;d.hc=h.na;var l=h.timestamp,n=h.labels,q=Ea(b,function(p){return function(r){return r.na===p.hc}}(d));q?(q.timestamp=Math.max(q.timestamp,l),q.labels=$g(q.labels,n||[])):b.push({version:k,na:d.hc,timestamp:l,labels:n})}}b.sort(function(p,r){return r.timestamp-p.timestamp});return ah(b)};function $g(a,b){for(var c={},d=[],e=0;e<a.length;e++)c[a[e]]=!0,d.push(a[e]);for(var f=0;f<b.length;f++)c[b[f]]||d.push(b[f]);return d}
|
||||
function bh(a){return a&&"string"==typeof a&&a.match(Sg)?a:"_gcl"}
|
||||
var dh=function(){var a=se(m.location.href),b=qe(a,"query",!1,void 0,"gclid"),c=qe(a,"query",!1,void 0,"gclsrc"),d=qe(a,"query",!1,void 0,"wbraid"),e=qe(a,"query",!1,void 0,"dclid");if(!b||!c||!d){var f=a.hash.replace("#","");b=b||ne(f,"gclid",void 0);c=c||ne(f,"gclsrc",void 0);d=d||ne(f,"wbraid",void 0)}return ch(b,c,e,d)},ch=function(a,b,c,d){var e={},f=function(h,k){e[k]||(e[k]=[]);e[k].push(h)};e.gclid=a;e.gclsrc=b;e.dclid=c;void 0!==d&&Tg.test(d)&&(e.gbraid=d,f(d,"gb"));if(void 0!==a&&a.match(Tg))switch(b){case void 0:f(a,
|
||||
"aw");break;case "aw.ds":f(a,"aw");f(a,"dc");break;case "ds":f(a,"dc");break;case "3p.ds":f(a,"dc");break;case "gf":f(a,"gf");break;case "ha":f(a,"ha")}c&&f(c,"dc");return e},eh=function(a,b){switch(a){case void 0:case "aw":return"aw"===b;case "aw.ds":return"aw"===b||"dc"===b;case "ds":case "3p.ds":return"dc"===b;case "gf":return"gf"===b;case "ha":return"ha"===b}return!1},gh=function(a){var b=dh();Wg(function(){fh(b,a)})};
|
||||
function fh(a,b,c,d){function e(q,p){var r=hh(q,f);r&&(Rf(r,p,h),k=!0)}b=b||{};d=d||[];var f=bh(b.prefix);c=c||g();var h=eg(b,c,!0);h.Na="ad_storage";var k=!1,l=Math.round(c/1E3),n=function(q){var p=["GCL",l,q];0<d.length&&p.push(d.join("."));return p.join(".")};a.aw&&e("aw",n(a.aw[0]));a.dc&&e("dc",n(a.dc[0]));a.gf&&e("gf",n(a.gf[0]));a.ha&&e("ha",n(a.ha[0]));a.gp&&e("gp",n(a.gp[0]));(void 0==Rg.enable_gbraid_cookie_write?0:Rg.enable_gbraid_cookie_write)&&!k&&a.gb&&e("gb",n(a.gb[0]))}
|
||||
var jh=function(a,b){var c=Ig(!0);Wg(function(){for(var d=bh(b.prefix),e=0;e<a.length;++e){var f=a[e];if(void 0!==Ug[f]){var h=hh(f,d),k=c[h];if(k){var l=Math.min(ih(k),g()),n;b:{var q=l,p=h;if(Ff(m))for(var r=If(p,B.cookie,void 0,"ad_storage"),t=0;t<r.length;++t)if(ih(r[t])>q){n=!0;break b}n=!1}if(!n){var u=eg(b,l,!0);u.Na="ad_storage";Rf(h,k,u)}}}}fh(ch(c.gclid,c.gclsrc),b)})},hh=function(a,b){var c=Ug[a];if(void 0!==c)return b+c},ih=function(a){return 0!==kh(a.split(".")).length?1E3*(Number(a.split(".")[1])||
|
||||
0):0};function Zg(a){var b=kh(a.split("."));return 0===b.length?null:{version:b[0],na:b[2],timestamp:1E3*(Number(b[1])||0),labels:b.slice(3)}}function kh(a){return 3>a.length||"GCL"!==a[0]&&"1"!==a[0]||!/^\d+$/.test(a[1])||!Tg.test(a[2])?[]:a}
|
||||
var lh=function(a,b,c,d,e){if(Aa(b)&&Ff(m)){var f=bh(e),h=function(){for(var k={},l=0;l<a.length;++l){var n=hh(a[l],f);if(n){var q=If(n,B.cookie,void 0,"ad_storage");q.length&&(k[n]=q.sort()[q.length-1])}}return k};Wg(function(){Ng(h,b,c,d)})}},ah=function(a){return a.filter(function(b){return Tg.test(b.na)})},mh=function(a,b){if(Ff(m)){for(var c=bh(b.prefix),d={},e=0;e<a.length;e++)Ug[a[e]]&&(d[a[e]]=Ug[a[e]]);Wg(function(){Ja(d,function(f,h){var k=If(c+h,B.cookie,void 0,"ad_storage");k.sort(function(t,
|
||||
u){return ih(u)-ih(t)});if(k.length){var l=k[0],n=ih(l),q=0!==kh(l.split(".")).length?l.split(".").slice(3):[],p={},r;r=0!==kh(l.split(".")).length?l.split(".")[2]:void 0;p[f]=[r];fh(p,b,n,q)}})})}};function nh(a,b){for(var c=0;c<b.length;++c)if(a[b[c]])return!0;return!1}
|
||||
var oh=function(a){function b(e,f,h){h&&(e[f]=h)}if(Md()){var c=dh();if(nh(c,a)){var d={};b(d,"gclid",c.gclid);b(d,"dclid",c.dclid);b(d,"gclsrc",c.gclsrc);b(d,"wbraid",c.gbraid);Og(function(){return d},3);Og(function(){var e={};return e._up="1",e},1)}}};function ph(a,b){var c=bh(b),d=hh(a,c);if(!d)return 0;for(var e=Xg(d),f=0,h=0;h<e.length;h++)f=Math.max(f,e[h].timestamp);return f}
|
||||
function qh(a){var b=0,c;for(c in a)for(var d=a[c],e=0;e<d.length;e++)b=Math.max(b,Number(d[e].timestamp));return b};var rh=/^\d+\.fls\.doubleclick\.net$/;function sh(a,b){Ld(I.D)?K(I.D)?a():Rd(a,I.D):b?nd(42):Yd(function(){sh(a,!0)},[I.D])}function th(a){var b=se(m.location.href),c=qe(b,"host",!1);if(c&&c.match(rh)){var d=qe(b,"path").split(a+"=");if(1<d.length)return d[1].split(";")[0].split("?")[0]}}
|
||||
function uh(a,b,c){if("aw"===a||"dc"===a||"gb"===a){var d=th("gcl"+a);if(d)return d.split(".")}var e=bh(b);if("_gcl"==e){c=void 0===c?!0:c;var f=!K(I.D)&&c,h;h=dh()[a]||[];if(0<h.length)return f?["0"]:h}var k=hh(a,e);return k?Yg(k):[]}function vh(a){var b=[];Ja(a,function(c,d){d=ah(d);for(var e=[],f=0;f<d.length;f++)e.push(d[f].na);e.length&&b.push(c+":"+e.join(","))});return b.join(";")}
|
||||
var wh=function(a){var b=th("gac");return b?!K(I.D)&&a?"0":decodeURIComponent(b):vh(Vg()?mg():{})},xh=function(a){var b=th("gacgb");return b?!K(I.D)&&a?"0":decodeURIComponent(b):vh(Vg()?mg("_gac_gb",!0):{})},yh=function(a,b,c){var d=dh(),e=[],f=d.gclid,h=d.dclid,k=d.gclsrc||"aw";!f||"aw.ds"!==k&&"aw"!==k&&"ds"!==k||c&&!eh(k,c)||e.push({na:f,Xd:k});!h||c&&"dc"!==c||e.push({na:h,Xd:"ds"});sh(function(){kg(b);var l=gg[hg(b.prefix)],n=!1;if(l&&0<e.length)for(var q=L.joined_auid=L.joined_auid||{},p=0;p<e.length;p++){var r=e[p],t=r.na,u=r.Xd,v=(b.prefix||"_gcl")+"."+u+"."+t;if(!q[v]){var x="http://ad.doubleclick.net/pagead/regclk";x="gb"===u?x+"?gbraid="+t+"&auid="+l:x+"?gclid="+t+"&auid="+l+"&gclsrc="+u;Pb(x);n=q[v]=!0}}null==a&&(a=n);if(a&&
|
||||
l){var z=hg(b.prefix),w=gg[z];w&&jg(z,w,b)}})},zh=function(a){var b;if(th("gclaw")||th("gac")||0<(dh().aw||[]).length)b=!1;else{var c;if(0<(dh().gb||[]).length)c=!0;else{var d=Math.max(ph("aw",a),qh(Vg()?mg():{}));c=Math.max(ph("gb",a),qh(Vg()?mg("_gac_gb",!0):{}))>d}b=c}return b};var Ah=/[A-Z]+/,Bh=/\s/,Ch=function(a){if(ya(a)&&(a=Oa(a),!Bh.test(a))){var b=a.indexOf("-");if(!(0>b)){var c=a.substring(0,b);if(Ah.test(c)){for(var d=a.substring(b+1).split("/"),e=0;e<d.length;e++)if(!d[e])return;return{id:a,prefix:c,containerId:c+"-"+d[0],L:d}}}}},Eh=function(a){for(var b={},c=0;c<a.length;++c){var d=Ch(a[c]);d&&(b[d.id]=d)}Dh(b);var e=[];Ja(b,function(f,h){e.push(h)});return e};
|
||||
function Dh(a){var b=[],c;for(c in a)if(a.hasOwnProperty(c)){var d=a[c];"AW"===d.prefix&&d.L[1]&&b.push(d.containerId)}for(var e=0;e<b.length;++e)delete a[b[e]]};var Fh=function(){var a=!1;return a};var Hh=function(a,b,c,d){return(2===Gh()||d||"http:"!=m.location.protocol?a:b)+c},Gh=function(){var a=Fb(),b;if(1===a)a:{var c=ef;c=c.toLowerCase();for(var d="https://"+c,e="http://"+c,f=1,h=B.getElementsByTagName("script"),k=0;k<h.length&&100>k;k++){var l=h[k].src;if(l){l=l.toLowerCase();if(0===l.indexOf(e)){b=3;break a}1===f&&0===l.indexOf(d)&&(f=2)}}b=f}else b=a;return b};
|
||||
var Jh=function(a,b,c){if(m[a.functionName])return b.ie&&E(b.ie),m[a.functionName];var d=Ih();m[a.functionName]=d;if(a.Nc)for(var e=0;e<a.Nc.length;e++)m[a.Nc[e]]=m[a.Nc[e]]||Ih();a.Uc&&void 0===m[a.Uc]&&(m[a.Uc]=c);Eb(Hh("https://","http://",a.se),b.ie,b.Yh);return d},Ih=function(){var a=function(){a.q=a.q||[];a.q.push(arguments)};return a},Kh={functionName:"_googWcmImpl",Uc:"_googWcmAk",se:"www.gstatic.com/wcm/loader.js"},Lh={functionName:"_gaPhoneImpl",Uc:"ga_wpid",se:"www.gstatic.com/gaphone/loader.js"},
|
||||
Mh={jg:"",eh:"5"},Nh={functionName:"_googCallTrackingImpl",Nc:[Lh.functionName,Kh.functionName],se:"www.gstatic.com/call-tracking/call-tracking_"+(Mh.jg||Mh.eh)+".js"},Oh={},Ph=function(a,b,c,d){nd(22);if(c){d=d||{};var e=Jh(Kh,d,a),f={ak:a,cl:b};void 0===d.La&&(f.autoreplace=c);e(2,d.La,f,c,0,Ra(),d.options)}},Qh=function(a,b,c,d){nd(21);if(b&&c){d=d||{};for(var e={countryNameCode:c,destinationNumber:b,retrievalTime:Ra()},f=0;f<a.length;f++){var h=a[f];Oh[h.id]||
|
||||
(h&&"AW"===h.prefix&&!e.adData&&2<=h.L.length?(e.adData={ak:h.L[0],cl:h.L[1]},Oh[h.id]=!0):h&&"UA"===h.prefix&&!e.gaData&&(e.gaData={gaWpid:h.containerId},Oh[h.id]=!0))}(e.gaData||e.adData)&&Jh(Nh,d)(d.La,e,d.options)}},Rh=function(){var a=!1;return a},Sh=function(a,b){if(a)if(Fh()){}else{if(ya(a)){var c=
|
||||
Ch(a);if(!c)return;a=c}var d=void 0,e=!1,f=b.getWithConfig(I.Pg);if(f&&Aa(f)){d=[];for(var h=0;h<f.length;h++){var k=Ch(f[h]);k&&(d.push(k),(a.id===k.id||a.id===a.containerId&&a.containerId===k.containerId)&&(e=!0))}}if(!d||e){var l=b.getWithConfig(I.Ye),n;if(l){Aa(l)?n=l:n=[l];var q=b.getWithConfig(I.We),p=b.getWithConfig(I.Xe),r=b.getWithConfig(I.Ze),t=b.getWithConfig(I.Og),u=q||p,v=1;"UA"!==a.prefix||d||(v=5);for(var x=0;x<n.length;x++)if(x<v)if(d)Qh(d,n[x],t,{La:u,options:r});else if("AW"===a.prefix&&
|
||||
a.L[1])Rh()?Qh([a],n[x],t||"US",{La:u,options:r}):Ph(a.L[0],a.L[1],n[x],{La:u,options:r});else if("UA"===a.prefix)if(Rh())Qh([a],n[x],t||"US",{La:u});else{var z=a.containerId,w=n[x],y={La:u};nd(23);if(w){y=y||{};var A=Jh(Lh,y,z),C={};void 0!==y.La?C.receiver=y.La:C.replace=w;C.ga_wpid=z;C.destination=w;A(2,Ra(),C)}}}}}};
|
||||
var Uh=function(a){if(K(I.D))return a;a=a.replace(/&url=([^&#]+)/,function(b,c){var d=te(decodeURIComponent(c));return"&url="+encodeURIComponent(d)});a=a.replace(/&ref=([^&#]+)/,function(b,c){var d=te(decodeURIComponent(c));return"&ref="+encodeURIComponent(d)});return a},Vh=function(){var a;if(!(a=ff)){var b;if(!0===m._gtmdgs)b=!0;else{var c=wb&&wb.userAgent||"";b=0>c.indexOf("Safari")||/Chrome|Coast|Opera|Edg|Silk|Android/.test(c)||
|
||||
11>((/Version\/([\d]+)/.exec(c)||[])[1]||"")?!1:!0}a=!b}if(a)return-1;var d=La("1");return Df(1,100)<d?Df(2,2):-1},Wh=function(a){var b;if(!a||!a.length)return;for(var c=[],d=0;d<a.length;++d){var e=a[d];e&&e.estimated_delivery_date?c.push(""+e.estimated_delivery_date):c.push("")}b=c.join(",");return b};var Xh=new RegExp(/^(.*\.)?(google|youtube|blogger|withgoogle)(\.com?)?(\.[a-z]{2})?\.?$/),Yh={cl:["ecl"],customPixels:["nonGooglePixels"],ecl:["cl"],ehl:["hl"],hl:["ehl"],html:["customScripts","customPixels","nonGooglePixels","nonGoogleScripts","nonGoogleIframes"],customScripts:["html","customPixels","nonGooglePixels","nonGoogleScripts","nonGoogleIframes"],nonGooglePixels:[],nonGoogleScripts:["nonGooglePixels"],nonGoogleIframes:["nonGooglePixels"]},Zh={cl:["ecl"],customPixels:["customScripts","html"],
|
||||
ecl:["cl"],ehl:["hl"],hl:["ehl"],html:["customScripts"],customScripts:["html"],nonGooglePixels:["customPixels","customScripts","html","nonGoogleScripts","nonGoogleIframes"],nonGoogleScripts:["customScripts","html"],nonGoogleIframes:["customScripts","html","nonGoogleScripts"]},$h="google customPixels customScripts html nonGooglePixels nonGoogleScripts nonGoogleIframes".split(" ");
|
||||
var ai=function(){var a=!1;a=!0;return a},ci=function(a){var b=sf("gtm.allowlist")||sf("gtm.whitelist");b&&nd(9);ai()&&(b="google gtagfl lcl zone oid op".split(" "));var c=b&&Xa(Na(b),Yh),d=sf("gtm.blocklist")||
|
||||
sf("gtm.blacklist");d||(d=sf("tagTypeBlacklist"))&&nd(3);d?nd(8):d=[];bi()&&(d=Na(d),d.push("nonGooglePixels","nonGoogleScripts","sandboxedScripts"));0<=Ca(Na(d),"google")&&nd(2);var e=d&&Xa(Na(d),Zh),f={};return function(h){var k=h&&h[Wb.ab];if(!k||"string"!=typeof k)return!0;k=k.replace(/^_*/,"");if(void 0!==f[k])return f[k];var l=lf[k]||[],n=a(k,l);if(b){var q;if(q=
|
||||
n)a:{if(0>Ca(c,k))if(l&&0<l.length)for(var p=0;p<l.length;p++){if(0>Ca(c,l[p])){nd(11);q=!1;break a}}else{q=!1;break a}q=!0}n=q}var r=!1;if(d){var t=0<=Ca(e,k);if(t)r=t;else{var u=Ia(e,l||[]);u&&nd(10);r=u}}var v=!n||r;v||!(0<=Ca(l,"sandboxedScripts"))||c&&-1!==Ca(c,"sandboxedScripts")||(v=Ia(e,$h));return f[k]=v}},bi=function(){return Xh.test(m.location&&m.location.hostname)};var di={active:!0,isAllowed:function(){return!0}},ei=function(a){var b=L.zones;return b?b.checkState(Ze.M,a):di},fi=function(a){var b=L.zones;!b&&a&&(b=L.zones=a());return b};var gi=function(){},hi=function(){};var ii=!1,ji=0,ki=[];function li(a){if(!ii){var b=B.createEventObject,c="complete"==B.readyState,d="interactive"==B.readyState;if(!a||"readystatechange"!=a.type||c||!b&&d){ii=!0;for(var e=0;e<ki.length;e++)E(ki[e])}ki.push=function(){for(var f=0;f<arguments.length;f++)E(arguments[f]);return 0}}}function mi(){if(!ii&&140>ji){ji++;try{B.documentElement.doScroll("left"),li()}catch(a){m.setTimeout(mi,50)}}}var ni=function(a){ii?a():ki.push(a)};var pi=function(a,b){this.o=!1;this.F=[];this.T={tags:[]};this.Y=!1;this.s=this.C=0;oi(this,a,b)},qi=function(a,b,c,d){if(bf.hasOwnProperty(b)||"__zone"===b)return-1;var e={};Ub(d)&&(e=G(d,e));e.id=c;e.status="timeout";return a.T.tags.push(e)-1},ri=function(a,b,c,d){var e=a.T.tags[b];e&&(e.status=c,e.executionTime=d)},si=function(a){if(!a.o){for(var b=a.F,c=0;c<b.length;c++)b[c]();a.o=!0;a.F.length=0}},oi=function(a,b,c){wa(b)&&ti(a,b);c&&m.setTimeout(function(){return si(a)},Number(c))},ti=function(a,
|
||||
b){var c=Ua(function(){return E(function(){b(Ze.M,a.T)})});a.o?c():a.F.push(c)},ui=function(a){a.C++;return Ua(function(){a.s++;a.Y&&a.s>=a.C&&si(a)})};var vi=function(){function a(d){return!za(d)||0>d?0:d}if(!L._li&&m.performance&&m.performance.timing){var b=m.performance.timing.navigationStart,c=za(tf.get("gtm.start"))?tf.get("gtm.start"):0;L._li={cst:a(c-b),cbt:a(hf-b)}}},wi=function(a){m.performance&&m.performance.mark(Ze.M+"_"+a+"_start")},xi=function(a){if(m.performance){var b=Ze.M+"_"+a+"_start",c=Ze.M+"_"+a+"_duration";m.performance.measure(c,b);var d=m.performance.getEntriesByName(c)[0];m.performance.clearMarks(b);m.performance.clearMeasures(c);
|
||||
var e=L._p||{};void 0===e[a]&&(e[a]=d.duration,L._p=e);return d.duration}},yi=function(){if(m.performance&&m.performance.now){var a=L._p||{};a.PAGEVIEW=m.performance.now();L._p=a}};var zi={},Ai=function(){return m.GoogleAnalyticsObject&&m[m.GoogleAnalyticsObject]},Bi=!1;
|
||||
var Ci=function(a){m.GoogleAnalyticsObject||(m.GoogleAnalyticsObject=a||"ga");var b=m.GoogleAnalyticsObject;if(m[b])m.hasOwnProperty(b)||nd(12);else{var c=function(){c.q=c.q||[];c.q.push(arguments)};c.l=Number(Ra());m[b]=c}vi();return m[b]},Ii=function(a,b,c,d){b=String(b).replace(/\s+/g,"").split(",");var e=Ai();e(a+"require","linker");e(a+"linker:autoLink",b,c,d)},Ji=function(a){if(!Md())return;var b=Ai();b(a+"require","linker");b(a+"linker:passthrough",
|
||||
!0);};
|
||||
var Li=function(a){},Ki=function(){return m.GoogleAnalyticsObject||"ga"},Mi=function(a,b){return function(){var c=Ai(),d=c&&c.getByName&&c.getByName(a);if(d){var e=d.get("sendHitTask");d.set("sendHitTask",function(f){var h=f.get("hitPayload"),k=f.get("hitCallback"),l=0>h.indexOf("&tid="+b);l&&(f.set("hitPayload",h.replace(/&tid=UA-[0-9]+-[0-9]+/,"&tid="+
|
||||
b),!0),f.set("hitCallback",void 0,!0));e(f);l&&(f.set("hitPayload",h,!0),f.set("hitCallback",k,!0),f.set("_x_19",void 0,!0),e(f))})}}};
|
||||
var Ti=function(a){},Xi=function(a){},Yi=
|
||||
function(){return"&tc="+zc.filter(function(a){return a}).length},aj=function(){2022<=Zi().length&&$i()},cj=function(){bj||(bj=m.setTimeout($i,500))},$i=function(){bj&&(m.clearTimeout(bj),bj=void 0);void 0===dj||ej[dj]&&!fj&&!gj||(hj[dj]||ij.Oh()||0>=jj--?(nd(1),hj[dj]=!0):(ij.fi(),Hb(Zi(!0)),ej[dj]=!0,kj=lj=mj=gj=fj=""))},Zi=function(a){var b=dj;if(void 0===b)return"";var c=ua("GTM"),d=ua("TAGGING");return[nj,ej[b]?"":"&es=1",oj[b],Ti(b),c?"&u="+c:"",d?"&ut="+d:"",Yi(),fj,gj,mj,lj,Xi(a),kj,"&z=0"].join("")},
|
||||
qj=function(){nj=pj()},pj=function(){return[jf,"&v=3&t=t","&pid="+Ga(),"&rv="+Ze.Kc].join("")},Wi=["L","S","Y"],Si=["S","E"],rj={sampleRate:"0.005000",gg:"",fg:Number("5")},sj;if(!(sj=0<=B.location.search.indexOf("?gtm_latency=")||0<=B.location.search.indexOf(">m_latency="))){var tj=Math.random(),uj=rj.sampleRate;
|
||||
sj=tj<uj}var vj=sj,nj=pj(),ej={},fj="",gj="",kj="",lj="",Vi={},Ri={},Ui=!1,mj="",dj=void 0,oj={},hj={},bj=void 0,wj=2;0<rj.fg&&(wj=rj.fg);var ij=function(a,b){for(var c=0,d=[],e=0;e<a;++e)d.push(0);return{Oh:function(){return c<a?!1:g()-d[c%a]<b},fi:function(){var f=c++%a;d[f]=g()}}}(wj,1E3),jj=1E3,xj=function(a,b,c,d){if(vj&&!hj[a]&&b){a!==dj&&($i(),
|
||||
dj=a);var e,f=String(b[Wb.ab]||"").replace(/_/g,"");0===f.indexOf("cvt")&&(f="cvt");e=f;var h=c+e;fj=fj?fj+"."+h:"&tr="+h;var k=b["function"];if(!k)throw Error("Error: No function name given for function call.");var l=(Bc[k]?"1":"2")+e;kj=kj?kj+"."+l:"&ti="+
|
||||
l;cj();aj()}};var Aj=function(a,b,c){if(vj&&!hj[a]){a!==dj&&($i(),dj=a);var d=c+b;gj=gj?gj+"."+d:"&epr="+d;cj();aj()}},Bj=function(a,b,c){};function Cj(a,b,c,d){var e=zc[a],f=Dj(a,b,c,d);if(!f)return null;var h=Gc(e[Wb.rf],c,[]);if(h&&h.length){var k=h[0];f=Cj(k.index,{onSuccess:f,onFailure:1===k.Jf?b.terminate:f,terminate:b.terminate},c,d)}return f}
|
||||
function Dj(a,b,c,d){function e(){if(f[Wb.$g])k();else{var x=Hc(f,c,[]);var z=x[Wb.kg];if(null!=z)for(var w=0;w<z.length;w++)if(!K(z[w])){k();return}var y=qi(c.cb,String(f[Wb.ab]),Number(f[Wb.tf]),x[Wb.ah]),A=!1;x.vtp_gtmOnSuccess=function(){if(!A){A=!0;var D=g()-F;xj(c.id,zc[a],"5",D);ri(c.cb,y,"success",
|
||||
D);h()}};x.vtp_gtmOnFailure=function(){if(!A){A=!0;var D=g()-F;xj(c.id,zc[a],"6",D);ri(c.cb,y,"failure",D);k()}};x.vtp_gtmTagId=f.tag_id;x.vtp_gtmEventId=c.id;xj(c.id,f,"1");var C=function(){var D=g()-F;xj(c.id,f,"7",D);ri(c.cb,y,"exception",D);A||(A=!0,k())};var F=g();try{Fc(x,c)}catch(D){C(D)}}}var f=zc[a],h=b.onSuccess,k=b.onFailure,l=b.terminate;if(c.de(f))return null;var n=Gc(f[Wb.uf],c,[]);if(n&&n.length){var q=n[0],p=Cj(q.index,{onSuccess:h,onFailure:k,terminate:l},c,d);if(!p)return null;h=p;k=2===q.Jf?l:p}if(f[Wb.kf]||f[Wb.dh]){var r=f[Wb.kf]?Ac:
|
||||
c.ni,t=h,u=k;if(!r[a]){e=Ua(e);var v=Ej(a,r,e);h=v.onSuccess;k=v.onFailure}return function(){r[a](t,u)}}return e}function Ej(a,b,c){var d=[],e=[];b[a]=Fj(d,e,c);return{onSuccess:function(){b[a]=Gj;for(var f=0;f<d.length;f++)d[f]()},onFailure:function(){b[a]=Hj;for(var f=0;f<e.length;f++)e[f]()}}}function Fj(a,b,c){return function(d,e){a.push(d);b.push(e);c()}}function Gj(a){a()}function Hj(a,b){b()};var Kj=function(a,b){for(var c=[],d=0;d<zc.length;d++)if(a[d]){var e=zc[d];var f=ui(b.cb);try{var h=Cj(d,{onSuccess:f,onFailure:f,terminate:f},b,d);if(h){var k=c,l=k.push,n=d,q=e["function"];if(!q)throw"Error: No function name given for function call.";var p=Bc[q];l.call(k,{bg:n,Sf:p?p.priorityOverride||0:0,Ch:h})}else Ij(d,b),f()}catch(u){f()}}var r=b.cb;r.Y=!0;r.s>=r.C&&si(r);c.sort(Jj);for(var t=0;t<c.length;t++)c[t].Ch();
|
||||
return 0<c.length};function Jj(a,b){var c,d=b.Sf,e=a.Sf;c=d>e?1:d<e?-1:0;var f;if(0!==c)f=c;else{var h=a.bg,k=b.bg;f=h>k?1:h<k?-1:0}return f}function Ij(a,b){if(!vj)return;var c=function(d){var e=b.de(zc[d])?"3":"4",f=Gc(zc[d][Wb.rf],b,[]);f&&f.length&&c(f[0].index);xj(b.id,zc[d],e);var h=Gc(zc[d][Wb.uf],b,[]);h&&h.length&&c(h[0].index)};c(a);}
|
||||
var Lj=!1,Rj=function(a){var b=g(),c=a["gtm.uniqueEventId"],d=a.event;if("gtm.js"===d){if(Lj)return!1;Lj=!0;}var h=ei(c),k=!1;if(!h.active){if("gtm.js"!==d)return!1;k=!0;h=ei(Number.MAX_SAFE_INTEGER)}
|
||||
vj&&!hj[c]&&dj!==c&&($i(),dj=c,kj=fj="",oj[c]="&e="+(0===d.indexOf("gtm.")?encodeURIComponent(d):"*")+"&eid="+c,cj());var l=a.eventCallback,n=a.eventTimeout,q=l;var p={id:c,name:d,de:ci(h.isAllowed),ni:[],Of:function(){nd(6)},Cf:Mj(c),cb:new pi(q,
|
||||
n)};p.Bf=Nj();Oj(c,p.cb);var r=Lc(p);k&&(r=Pj(r));var t=Kj(r,p);"gtm.js"!==d&&"gtm.sync"!==d||Li(Ze.M);
|
||||
switch(d){case "gtm.init":t&&nd(20)}return Qj(r,t)};function Mj(a){return function(b){vj&&(Vb(b)||Bj(a,"input",b))}}function Oj(a,b){xf(a,"event",1);xf(a,"ecommerce",1);xf(a,"gtm");xf(a,"eventModel");}
|
||||
function Nj(){var a={};a.event=wf("event",1);a.ecommerce=wf("ecommerce",1);a.gtm=wf("gtm");a.eventModel=wf("eventModel");return a}function Pj(a){for(var b=[],c=0;c<a.length;c++)a[c]&&af[String(zc[c][Wb.ab])]&&(b[c]=!0);return b}function Qj(a,b){if(!b)return b;for(var c=0;c<a.length;c++)if(a[c]&&zc[c]&&!bf[String(zc[c][Wb.ab])])return!0;return!1}function Sj(a,b){if(a){var c=""+a;0!==c.indexOf("http://")&&0!==c.indexOf("https://")&&(c="https://"+c);"/"===c[c.length-1]&&(c=c.substring(0,c.length-1));return se(""+c+b).href}}function Tj(a,b){return Uj()?Sj(a,b):void 0}function Uj(){var a=!1;return a};var Vj=function(){this.eventModel={};this.targetConfig={};this.containerConfig={};this.remoteConfig={};this.globalConfig={};this.onSuccess=function(){};this.onFailure=function(){};this.setContainerTypeLoaded=function(){};this.getContainerTypeLoaded=function(){};this.eventId=void 0;this.isGtmEvent=!1},Wj=function(a){var b=new Vj;b.eventModel=a;return b},Xj=function(a,b){a.targetConfig=b;return a},Yj=function(a,b){a.containerConfig=b;return a},Zj=function(a,b){a.remoteConfig=b;return a},ak=function(a,
|
||||
b){a.globalConfig=b;return a},bk=function(a,b){a.onSuccess=b;return a},ck=function(a,b){a.setContainerTypeLoaded=b;return a},dk=function(a,b){a.getContainerTypeLoaded=b;return a},ek=function(a,b){a.onFailure=b;return a};
|
||||
Vj.prototype.getWithConfig=function(a){if(void 0!==this.eventModel[a])return this.eventModel[a];if(void 0!==this.targetConfig[a])return this.targetConfig[a];if(void 0!==this.containerConfig[a])return this.containerConfig[a];if(void 0!==this.remoteConfig[a])return this.remoteConfig[a];if(void 0!==this.globalConfig[a])return this.globalConfig[a]};
|
||||
var fk=function(a){function b(e){Ja(e,function(f){c[f]=null})}var c={};b(a.eventModel);b(a.targetConfig);b(a.containerConfig);b(a.globalConfig);var d=[];Ja(c,function(e){d.push(e)});return d},gk=function(a,b){function c(f){Ub(f)&&Ja(f,function(h,k){e=!0;d[h]=k})}var d={},e=!1;c(a.globalConfig[b]);c(a.remoteConfig[b]);c(a.containerConfig[b]);c(a.targetConfig[b]);c(a.eventModel[b]);return e?d:void 0};var hk;if(3===Ze.Kc.length)hk="g";else{var ik="G";ik="g";hk=ik}
|
||||
var jk={"":"n",UA:"u",AW:"a",DC:"d",G:"e",GF:"f",HA:"h",GTM:hk,OPT:"o"},kk=function(a){var b=Ze.M.split("-"),c=b[0].toUpperCase(),d=jk[c]||"i",e=a&&"GTM"===c?b[1]:"OPT"===c?b[1]:"",f;if(3===Ze.Kc.length){var h="w";h=Fh()?"s":"o";f="2"+h}else f="";return f+d+Ze.Kc+e};var lk=function(a,b){a.addEventListener&&a.addEventListener.call(a,"message",b,!1)};var mk=function(){return mb("iPhone")&&!mb("iPod")&&!mb("iPad")};mb("Opera");mb("Trident")||mb("MSIE");mb("Edge");!mb("Gecko")||-1!=ib.toLowerCase().indexOf("webkit")&&!mb("Edge")||mb("Trident")||mb("MSIE")||mb("Edge");-1!=ib.toLowerCase().indexOf("webkit")&&!mb("Edge")&&mb("Mobile");mb("Macintosh");mb("Windows");mb("Linux")||mb("CrOS");var nk=qa.navigator||null;nk&&(nk.appVersion||"").indexOf("X11");mb("Android");mk();mb("iPad");mb("iPod");mk()||mb("iPad")||mb("iPod");ib.toLowerCase().indexOf("kaios");var ok=function(a,b){for(var c=a,d=0;50>d;++d){var e;try{e=!(!c.frames||!c.frames[b])}catch(k){e=!1}if(e)return c;var f;a:{try{var h=c.parent;if(h&&h!=c){f=h;break a}}catch(k){}f=null}if(!(c=f))break}return null},pk=function(a){var b=B;b=void 0===b?window.document:b;if(!a||!b.head)return null;var c=document.createElement("meta");b.head.appendChild(c);c.httpEquiv="origin-trial";c.content=a;return c};var qk=function(){};var rk=function(a){void 0!==a.addtlConsent&&"string"!==typeof a.addtlConsent&&(a.addtlConsent=void 0);void 0!==a.gdprApplies&&"boolean"!==typeof a.gdprApplies&&(a.gdprApplies=void 0);return void 0!==a.tcString&&"string"!==typeof a.tcString||void 0!==a.listenerId&&"number"!==typeof a.listenerId?2:a.cmpStatus&&"error"!==a.cmpStatus?0:3},sk=function(a,b){this.s=a;this.o=null;this.F={};this.Y=0;this.T=void 0===b?500:b;this.C=null};pa(sk,qk);
|
||||
var uk=function(a){return"function"===typeof a.s.__tcfapi||null!=tk(a)};
|
||||
sk.prototype.addEventListener=function(a){var b={},c=tb(function(){return a(b)}),d=0;-1!==this.T&&(d=setTimeout(function(){b.tcString="tcunavailable";b.internalErrorState=1;c()},this.T));var e=function(f,h){clearTimeout(d);f?(b=f,b.internalErrorState=rk(b),h&&0===b.internalErrorState||(b.tcString="tcunavailable",h||(b.internalErrorState=3))):(b.tcString="tcunavailable",b.internalErrorState=3);a(b)};try{vk(this,"addEventListener",e)}catch(f){b.tcString="tcunavailable",b.internalErrorState=3,d&&(clearTimeout(d),
|
||||
d=0),c()}};sk.prototype.removeEventListener=function(a){a&&a.listenerId&&vk(this,"removeEventListener",null,a.listenerId)};
|
||||
var xk=function(a,b,c){var d;d=void 0===d?"755":d;var e;a:{if(a.publisher&&a.publisher.restrictions){var f=a.publisher.restrictions[b];if(void 0!==f){e=f[void 0===d?"755":d];break a}}e=void 0}var h=e;if(0===h)return!1;var k=c;2===c?(k=0,2===h&&(k=1)):3===c&&(k=1,1===h&&(k=0));var l;if(0===k)if(a.purpose&&a.vendor){var n=wk(a.vendor.consents,void 0===d?"755":d);l=n&&"1"===b&&a.purposeOneTreatment&&("DE"===a.publisherCC||Bd(pd)&&"CH"===a.publisherCC)?!0:n&&wk(a.purpose.consents,b)}else l=!0;else l=
|
||||
1===k?a.purpose&&a.vendor?wk(a.purpose.legitimateInterests,b)&&wk(a.vendor.legitimateInterests,void 0===d?"755":d):!0:!0;return l},wk=function(a,b){return!(!a||!a[b])},vk=function(a,b,c,d){c||(c=function(){});if("function"===typeof a.s.__tcfapi){var e=a.s.__tcfapi;e(b,2,c,d)}else if(tk(a)){yk(a);var f=++a.Y;a.F[f]=c;if(a.o){var h={};a.o.postMessage((h.__tcfapiCall={command:b,version:2,callId:f,parameter:d},h),"*")}}else c({},!1)},tk=function(a){if(a.o)return a.o;a.o=ok(a.s,"__tcfapiLocator");return a.o},
|
||||
yk=function(a){a.C||(a.C=function(b){try{var c;c=("string"===typeof b.data?JSON.parse(b.data):b.data).__tcfapiReturn;a.F[c.callId](c.returnValue,c.success)}catch(d){}},lk(a.s,a.C))};var zk=!0;zk=!1;var Ak={1:0,3:0,4:0,7:3,9:3,10:3};function Bk(a,b){if(""===a)return b;var c=Number(a);return isNaN(c)?b:c}var Ck=Bk("",550),Dk=Bk("",500);function Ek(){var a=L.tcf||{};return L.tcf=a}
|
||||
var Fk=function(a,b){this.C=a;this.o=b;this.s=g();},Gk=function(a){},Hk=function(a){},Nk=function(){var a=Ek(),b=new sk(m,zk?3E3:-1),c=new Fk(b,a);if((Ik()?!0===m.gtag_enable_tcf_support:!1!==m.gtag_enable_tcf_support)&&!a.active&&("function"===typeof m.__tcfapi||uk(b))){a.active=!0;a.$b={};Jk();var d=null;zk?d=m.setTimeout(function(){Kk(a);Lk(a);d=null},Dk):a.tcString="tcunavailable";try{b.addEventListener(function(e){d&&(clearTimeout(d),d=null);if(0!==e.internalErrorState)Kk(a),Lk(a),Gk(c);
|
||||
else{var f;a.gdprApplies=e.gdprApplies;if(!1===e.gdprApplies)f=Mk(),b.removeEventListener(e);else if("tcloaded"===e.eventStatus||"useractioncomplete"===e.eventStatus||"cmpuishown"===e.eventStatus){var h={},k;for(k in Ak)if(Ak.hasOwnProperty(k))if("1"===k){var l,n=e,q=!0;q=void 0===q?!1:q;var p;var r=n;!1===r.gdprApplies?p=!0:(void 0===r.internalErrorState&&(r.internalErrorState=rk(r)),p="error"===r.cmpStatus||0!==r.internalErrorState||"loaded"===r.cmpStatus&&("tcloaded"===r.eventStatus||"useractioncomplete"===
|
||||
r.eventStatus)?!0:!1);l=p?!1===n.gdprApplies||"tcunavailable"===n.tcString||void 0===n.gdprApplies&&!q||"string"!==typeof n.tcString||!n.tcString.length?!0:xk(n,"1",0):!1;h["1"]=l}else h[k]=xk(e,k,Ak[k]);f=h}f&&(a.tcString=e.tcString||"tcempty",a.$b=f,Lk(a),Gk(c))}}),Hk(c)}catch(e){d&&(clearTimeout(d),d=null),Kk(a),Lk(a)}}};function Kk(a){a.type="e";a.tcString="tcunavailable";zk&&(a.$b=Mk())}function Jk(){var a={},b=(a.ad_storage="denied",a.wait_for_update=Ck,a);Ud(b)}
|
||||
var Ik=function(){var a=!1;a=!0;return a};function Mk(){var a={},b;for(b in Ak)Ak.hasOwnProperty(b)&&(a[b]=!0);return a}function Lk(a){var b={},c=(b.ad_storage=a.$b["1"]?"granted":"denied",b);Ok();Vd(c,0)}
|
||||
var Pk=function(){var a=Ek();if(a.active&&void 0!==a.loadTime)return Number(a.loadTime)},Ok=function(){var a=Ek();return a.active?a.tcString||"":""},Qk=function(){var a=Ek();return a.active&&void 0!==a.gdprApplies?a.gdprApplies?"1":"0":""},Rk=function(a){if(!Ak.hasOwnProperty(String(a)))return!0;var b=Ek();return b.active&&b.$b?!!b.$b[String(a)]:!0};var Sk=!1;Sk=!0;function Tk(a){var b=String(m.location).split(/[?#]/)[0],c=Ze.ng||m._CONSENT_MODE_SALT,d;if(a){var e;if(c){var f=b+a+c,h=1,k,l,n;if(f)for(h=0,l=f.length-1;0<=l;l--)n=f.charCodeAt(l),h=(h<<6&268435455)+n+(n<<14),k=h&266338304,h=0!=k?h^k>>21:h;e=String(h)}else e="0";d=e}else d="";return d}
|
||||
function Uk(a){function b(u){var v;L.reported_gclid||(L.reported_gclid={});v=L.reported_gclid;var x;x=Sk&&h&&(!Md()||K(I.D))?l+"."+(f.prefix||"_gcl")+(u?"gcu":"gcs"):l+(u?"gcu":"gcs");if(!v[x]){v[x]=!0;var z=[],w={},y=function(N,Q){Q&&(z.push(N+"="+encodeURIComponent(Q)),w[N]=!0)},A="https://www.google.com";if(Md()){var C=K(I.D);y("gcs",Wd());u&&y("gcu","1");Nd()&&y("gcd","G1"+Sd(Kd));L.dedupe_gclid||
|
||||
(L.dedupe_gclid=""+Uf());y("rnd",L.dedupe_gclid);if((!l||n&&"aw.ds"!==n)&&K(I.D)){var F=Yg("_gcl_aw");y("gclaw",F.join("."))}y("url",String(m.location).split(/[?#]/)[0]);y("dclid",Vk(d,q));var D=!1;D=!0;C||!d&&!D||(A="https://pagead2.googlesyndication.com")}
|
||||
y("gdpr_consent",Ok()),y("gdpr",Qk());"1"===Ig(!1)._up&&y("gtm_up","1");y("gclid",Vk(d,l));y("gclsrc",n);if(!(w.gclid||w.dclid||w.gclaw)&&(y("gbraid",Vk(d,p)),!w.gbraid&&Md()&&K(I.D))){var H=Yg("_gcl_gb");y("gclgb",H.join("."))}y("gtm",kk(!e));Sk&&h&&K(I.D)&&(kg(f||{}),y("auid",gg[hg(f.prefix)]||""));
|
||||
a.Ff&&y("did",a.Ff);var O=A+"/pagead/landing?"+z.join("&");Pb(O)}}var c=!!a.Sd,d=!!a.oa,e=a.P,f=void 0===a.Pc?{}:a.Pc,h=void 0===a.Vc?!0:a.Vc,k=dh(),l=k.gclid||"",n=k.gclsrc,q=k.dclid||"",p=k.gbraid||"",r=!c&&((!l||n&&"aw.ds"!==n?!1:!0)||p),t=Md();if(r||t)t?Yd(function(){b();K(I.D)||Xd(function(u){return b(!0,u.rh)},I.D)},[I.D]):b()}function Vk(a,b){var c=a&&!K(I.D);return b&&c?"0":b}var Wl=function(){var a=!0;Rk(7)&&Rk(9)&&Rk(10)||(a=!1);var b=!0;b=!1;b&&!Vl()&&(a=!1);return a},Vl=function(){var a=!0;Rk(3)&&Rk(4)||(a=!1);return a};
|
||||
var $l=function(a,b){var c=b.getWithConfig(I.Qa),d=b.getWithConfig(I.Pa),e=b.getWithConfig(c);if(void 0===e){var f=void 0;Xl.hasOwnProperty(c)?f=Xl[c]:Yl.hasOwnProperty(c)&&(f=Yl[c]);1===f&&(f=Zl(c));ya(f)?Ai()(function(){var h=Ai().getByName(a).get(f);d(h)}):d(void 0)}else d(e);},cm=function(a,b,c){if(Md()){var d=!K(I.H),e=function(){var f=Ai(),h=am(a,b,"",c),k=void 0,l=h.Ja._useUp;if(bm(b,h.Ja)){f(function(){var n=f.getByName(b);n&&(k=n.get("clientId"));
|
||||
f.remove(b)});f("create",a,h.Ja);d&&K(I.H)&&(d=!1,f(function(){var n=f.getByName(b);!n||n.get("clientId")==k&&l||(h.Ca["&gcu"]="1",n.set(h.If),n.send("pageview",h.Ca))}));}};Rd(e,I.H);Rd(e,I.D)}},jm=function(a,b,c){var d="https://www.google-analytics.com/analytics.js",e=Ci();if(wa(e)){var f="gtag_"+a.split("-").join("_"),h=function(w){var y=[].slice.call(arguments,0);y[0]=f+"."+y[0];
|
||||
e.apply(window,y)},k=function(){var w=function(F,D){for(var H=0;D&&H<D.length;H++)h(F,D[H])},y=dm(b,c);if(y){var A=y.action;if("impressions"===A)w("ec:addImpression",y.Kh);else if("promo_click"===A||"promo_view"===A){var C=y.oe;w("ec:addPromo",y.oe);C&&0<C.length&&"promo_click"===A&&h("ec:setAction",A)}else w("ec:addProduct",y.yb),h("ec:setAction",A,y.Ob)}},l=function(){if(Fh()){}else{var w=c.getWithConfig(I.Ng);w&&
|
||||
(h("require",w,{dataLayer:"dataLayer"}),h("require","render"))}},n=am(a,f,b,c),q=function(w,y,A){A&&(y=""+y);n.Ca[w]=y};bm(f,n.Ja)&&(e(function(){Ai()&&Ai().remove(f)}),em[f]=!1);e("create",a,n.Ja);if(n.Ja._x_19){var p=Tj(n.Ja._x_19,"/analytics.js");p&&(d=p);n.Ja._x_20&&!em[f]&&(em[f]=!0,e(Mi(f,n.Ja._x_20)))}(function(){var w=c.getWithConfig("custom_map");e(function(){if(Ub(w)){var y=n.Ca,A=Ai().getByName(f),C;for(C in w)if(w.hasOwnProperty(C)&&/^(dimension|metric)\d+$/.test(C)&&void 0!=w[C]){var F=
|
||||
A.get(Zl(w[C]));fm(y,C,F)}}})})();(function(w){if(w){var y={};if(Ub(w))for(var A in gm)gm.hasOwnProperty(A)&&hm(gm[A],A,w[A],y);h("require","linkid",y)}})(n.linkAttribution);var r=n[I.za];if(r&&r[I.N]){var t=r[I.rb];Ii(f+".",r[I.N],void 0===t?!!r.use_anchor:"fragment"===t,!!r[I.qb])}h("set",n.If);b===I.Eb?(l(),h("send","pageview",n.Ca)):b===I.sa?(l(),Sh(a,c),c.getWithConfig(I.Ha)&&(oh(["aw","dc"]),Ji(f+".")),0!=n.sendPageView&&h("send","pageview",n.Ca),cm(a,f,c)):b===I.Fa?$l(f,c):"screen_view"===
|
||||
b?h("send","screenview",n.Ca):"timing_complete"===b?(q("timingCategory",n.eventCategory,!0),q("timingVar",n.name,!0),q("timingValue",La(n.value)),void 0!==n.eventLabel&&q("timingLabel",n.eventLabel,!0),h("send","timing",n.Ca)):"exception"===b?h("send","exception",n.Ca):"optimize.callback"!==b&&(0<=Ca([I.kc,"select_content",I.Ea,I.nb,I.ob,I.Ua,"set_checkout_option",I.ia,I.pb,"view_promotion","checkout_progress"],b)&&(h("require","ec","ec.js"),k()),q("eventCategory",n.eventCategory,!0),q("eventAction",
|
||||
n.eventAction||b,!0),void 0!==n.eventLabel&&q("eventLabel",n.eventLabel,!0),void 0!==n.value&&q("eventValue",La(n.value)),h("send","event",n.Ca));var u=!1;var v=im;u&&(v=c.getContainerTypeLoaded("UA"));if(!v){im=!0;u&&c.setContainerTypeLoaded("UA",!0);vi();var x=function(){u&&c.setContainerTypeLoaded("UA",!1);c.onFailure()},z=function(){Ai().loaded||
|
||||
x()};Fh()?E(z):Eb(d,z,x)}}else E(c.onFailure)},km=function(a,b,c,d){Yd(function(){jm(a,b,d)},[I.H,I.D])},lm=function(a){return K(a)},im,em={},Xl={client_id:1,client_storage:"storage",cookie_name:1,cookie_domain:1,cookie_expires:1,cookie_path:1,cookie_update:1,cookie_flags:1,sample_rate:1,site_speed_sample_rate:1,use_amp_client_id:1,store_gac:1,conversion_linker:"storeGac"},mm={anonymize_ip:1},Yl={app_id:1,app_installer_id:1,app_name:1,app_version:1,campaign:{name:"campaignName",source:"campaignSource",
|
||||
medium:"campaignMedium",term:"campaignKeyword",content:"campaignContent",id:"campaignId"},currency:"currencyCode",description:"exDescription",fatal:"exFatal",language:1,non_interaction:1,page_hostname:"hostname",page_referrer:"referrer",page_path:"page",page_location:"location",page_title:"title",screen_name:1,transport_type:"transport",user_id:1},nm={content_id:1,event_category:1,event_action:1,event_label:1,link_attribution:1,linker:1,method:1,name:1,send_page_view:1,value:1},om=["item_category",
|
||||
"item_category2","item_category3","item_category4","item_category5"],gm={cookie_name:1,cookie_expires:"duration",levels:1},pm={anonymize_ip:1,fatal:1,non_interaction:1,use_amp_client_id:1,send_page_view:1,store_gac:1,conversion_linker:1},hm=function(a,b,c,d){if(void 0!==c)if(pm[b]&&(c=Ma(c)),"anonymize_ip"!==b||c||(c=void 0),1===a)d[Zl(b)]=c;else if(ya(a))d[a]=c;else for(var e in a)a.hasOwnProperty(e)&&void 0!==c[e]&&(d[a[e]]=c[e])},Zl=function(a){return a&&ya(a)?a.replace(/(_[a-z])/g,function(b){return b[1].toUpperCase()}):
|
||||
a},qm=function(a){var b="general";0<=Ca([I.Ie,I.nb,I.Le,I.Ua,"checkout_progress",I.ia,I.pb,I.ob,"set_checkout_option"],a)?b="ecommerce":0<=Ca("generate_lead login search select_content share sign_up view_item view_item_list view_promotion view_search_results".split(" "),a)?b="engagement":"exception"===a&&(b="error");return b},fm=function(a,b,c){a.hasOwnProperty(b)||(a[b]=c)},rm=function(a){if(Aa(a)){for(var b=[],c=0;c<a.length;c++){var d=a[c];if(void 0!=d){var e=d.id,f=d.variant;void 0!=e&&void 0!=
|
||||
f&&b.push(String(e)+"."+String(f))}}return 0<b.length?b.join("!"):void 0}},am=function(a,b,c,d){function e(H,O){void 0!==O&&(l[H]=O)}var f=function(H){return d.getWithConfig(H)},h={},k={},l={},n={},q=rm(f(I.Jg));q&&fm(k,"exp",q);Md()&&(n._cs=lm);var p=f("custom_map");if(Ub(p))for(var r in p)if(p.hasOwnProperty(r)&&/^(dimension|metric)\d+$/.test(r)&&void 0!=p[r]){var t=f(String(p[r]));void 0!==t&&fm(k,r,t)}for(var u=fk(d),v=0;v<u.length;++v){var x=u[v],z="developer_id"!=x?f(x):gk(d,x);if(nm.hasOwnProperty(x))hm(nm[x],
|
||||
x,z,h);else if(mm.hasOwnProperty(x))hm(mm[x],x,z,l);else if(Yl.hasOwnProperty(x))hm(Yl[x],x,z,k);else if(Xl.hasOwnProperty(x))hm(Xl[x],x,z,n);else if(/^(dimension|metric|content_group)\d+$/.test(x))hm(1,x,z,k);else if("developer_id"===x){var w=bb(z);w&&(k["&did"]=w)}else x===I.ja&&0>Ca(u,I.oc)&&(n.cookieName=z+"_ga")}fm(n,"cookieDomain","auto");fm(l,"forceSSL",!0);fm(h,"eventCategory",qm(c));0<=Ca(["view_item","view_item_list","view_promotion","view_search_results"],c)&&fm(k,"nonInteraction",!0);
|
||||
"login"===c||"sign_up"===c||"share"===c?fm(h,"eventLabel",f(I.Mg)):"search"===c||"view_search_results"===c?fm(h,"eventLabel",f(I.Sg)):"select_content"===c&&fm(h,"eventLabel",f(I.Dg));var y=h[I.za]||{},A=y[I.Ya];A||0!=A&&y[I.N]?n.allowLinker=!0:!1===A&&fm(n,"useAmpClientId",!1);f(I.Ha)&&(n._useUp=!0);!1!==f(I.Cg)&&!1!==f(I.Fb)&&Wl()||(l.allowAdFeatures=!1);if(!1===f(I.va)||!Vl()){var C="allowAdFeatures";C="allowAdPersonalizationSignals";
|
||||
l[C]=!1}n.name=b;l[">m"]=kk(!0);k.hitCallback=d.onSuccess;Md()&&(l["&gcs"]=Wd(),K(I.H)||(n.storage="none"),K(I.D)||(l.allowAdFeatures=!1,n.storeGac=!1));var F=f(I.ka)||f(I.Lg)||sf("gtag.remote_config."+a+".url",2),D=f(I.Kg)||sf("gtag.remote_config."+a+".dualId",2);if(F){n._x_19=F;}D&&
|
||||
(n._x_20=D);h.Ca=k;h.If=l;h.Ja=n;return h},dm=function(a,b){function c(v){function x(w,y){for(var A=0;A<y.length;A++){var C=y[A];if(v[C]){z[w]=v[C];break}}}var z=G(v);x("listPosition",["list_position"]);x("creative",["creative_name"]);x("list",["list_name"]);x("position",["list_position","creative_slot"]);return z}function d(v){for(var x=[],z=0;v&&z<v.length;z++)v[z]&&x.push(c(v[z]));return x.length?x:void 0}function e(v){return{id:f(I.$a),affiliation:f(I.Gg),revenue:f(I.aa),tax:f(I.Te),
|
||||
shipping:f(I.rd),coupon:f(I.Hg),list:f(I.qd)||v}}for(var f=function(v){return b.getWithConfig(v)},h=f(I.V),k,l=0;h&&l<h.length&&!(k=h[l][I.qd]);l++);var n=f("custom_map");if(Ub(n))for(var q=0;h&&q<h.length;++q){var p=h[q],r;for(r in n)n.hasOwnProperty(r)&&/^(dimension|metric)\d+$/.test(r)&&void 0!=n[r]&&fm(p,r,p[n[r]])}var t=null,u=f(I.Ig);a===I.ia||a===I.pb?t={action:a,Ob:e(),yb:d(h)}:a===I.nb?t={action:"add",yb:d(h)}:a===I.ob?t={action:"remove",yb:d(h)}:a===I.Ea?t={action:"detail",Ob:e(k),yb:d(h)}:
|
||||
a===I.kc?t={action:"impressions",Kh:d(h)}:"view_promotion"===a?t={action:"promo_view",oe:d(u)}:"select_content"===a&&u&&0<u.length?t={action:"promo_click",oe:d(u)}:"select_content"===a?t={action:"click",Ob:{list:f(I.qd)||k},yb:d(h)}:a===I.Ua||"checkout_progress"===a?t={action:"checkout",yb:d(h),Ob:{step:a===I.Ua?1:f(I.Se),option:f(I.Re)}}:"set_checkout_option"===a&&(t={action:"checkout_option",Ob:{step:f(I.Se),option:f(I.Re)}});t&&(t.Gi=f(I.Z));return t},sm={},bm=function(a,b){var c=sm[a];sm[a]=G(b);
|
||||
if(!c)return!1;for(var d in b)if(b.hasOwnProperty(d)&&b[d]!==c[d])return!0;for(var e in c)if(c.hasOwnProperty(e)&&c[e]!==b[e])return!0;return!1};var tm=!1;function um(){var a=L;return a.gcq=a.gcq||new vm}
|
||||
var wm=function(a,b,c){um().register(a,b,c)},xm=function(a,b,c,d){um().push("event",[b,a],c,d)},ym=function(a,b){um().push("config",[a],b)},zm=function(a,b,c,d){um().push("get",[a,b],c,d)},Am={},Bm=function(){this.status=1;this.containerConfig={};this.targetConfig={};this.remoteConfig={};this.s={};this.C=null;this.o=!1},Cm=function(a,b,c,d,e){this.type=a;this.C=b;this.P=c||"";this.o=d;this.s=e},vm=function(){this.s={};this.C={};this.o=[];this.F={AW:!1,UA:!1};this.enableDeferrableCommandAfterConfig=
|
||||
tm},Dm=function(a,b){var c=Ch(b);return a.s[c.containerId]=a.s[c.containerId]||new Bm},Em=function(a,b,c){if(b){var d=Ch(b);if(d&&1===Dm(a,b).status){Dm(a,b).status=2;var e={};vj&&(e.timeoutId=m.setTimeout(function(){nd(38);cj()},3E3));a.push("require",[e],d.containerId);Am[d.containerId]=g();if(Fh()){}else{var h="/gtag/js?id="+encodeURIComponent(d.containerId)+"&l=dataLayer&cx=c",k=("http:"!=m.location.protocol?"https:":"http:")+("//www.googletagmanager.com"+h),l=Tj(c,h)||k;Eb(l)}}}},Fm=function(a,b,c,d){if(d.P){var e=Dm(a,d.P),f=e.C;if(f){var h=G(c),k=G(e.targetConfig[d.P]),l=G(e.containerConfig),n=G(e.remoteConfig),q=G(a.C),p=sf("gtm.uniqueEventId"),r=Ch(d.P).prefix,t=dk(ck(ek(bk(ak(Zj(Yj(Xj(Wj(h),k),l),n),q),function(){
|
||||
Aj(p,r,"2");}),function(){Aj(p,r,"3");}),function(u,v){a.F[u]=v}),function(u){return a.F[u]});try{Aj(p,r,"1");f(d.P,b,d.C,t)}catch(u){Aj(p,r,"4");}}}};
|
||||
vm.prototype.register=function(a,b,c){var d=Dm(this,a);if(3!==d.status){d.C=b;d.status=3;if(c){G(d.remoteConfig,c);d.remoteConfig=c}var e=Ch(a),f=Am[e.containerId];if(void 0!==f){var h=L[e.containerId].bootstrap,k=e.prefix.toUpperCase();L[e.containerId]._spx&&(k=k.toLowerCase());var l=sf("gtm.uniqueEventId"),n=k,q=g()-h;if(vj&&!hj[l]){l!==dj&&($i(),dj=l);var p=n+"."+Math.floor(h-
|
||||
f)+"."+Math.floor(q);lj=lj?lj+","+p:"&cl="+p}delete Am[e.containerId]}this.flush()}};vm.prototype.push=function(a,b,c,d){var e=Math.floor(g()/1E3);Em(this,c,b[0][I.ka]||this.C[I.ka]);tm&&c&&Dm(this,c).o&&(d=!1);this.o.push(new Cm(a,e,c,b,d));d||this.flush()};vm.prototype.insert=function(a,b,c){var d=Math.floor(g()/1E3);0<this.o.length?this.o.splice(1,0,new Cm(a,d,c,b,!1)):this.o.push(new Cm(a,d,c,b,!1))};
|
||||
vm.prototype.flush=function(a){for(var b=this,c=[],d=!1,e={};this.o.length;){var f=this.o[0];if(f.s)tm?!f.P||Dm(this,f.P).o?(f.s=!1,this.o.push(f)):c.push(f):(f.s=!1,this.o.push(f)),this.o.shift();else{switch(f.type){case "require":if(3!==Dm(this,f.P).status&&!a){tm&&this.o.push.apply(this.o,c);return}vj&&m.clearTimeout(f.o[0].timeoutId);break;case "set":Ja(f.o[0],function(r,t){G($a(r,t),b.C)});break;case "config":e.Da={};Ja(f.o[0],function(r){return function(t,u){G($a(t,u),r.Da)}}(e));var h=!!e.Da[I.Bc];
|
||||
delete e.Da[I.Bc];var k=Dm(this,f.P),l=Ch(f.P),n=l.containerId===l.id;h||(n?k.containerConfig={}:k.targetConfig[f.P]={});k.o&&h||Fm(this,I.sa,e.Da,f);k.o=!0;delete e.Da[I.Mb];n?G(e.Da,k.containerConfig):G(e.Da,k.targetConfig[f.P]);tm&&(d=!0);break;case "event":e.fc={};Ja(f.o[0],function(r){return function(t,u){G($a(t,u),r.fc)}}(e));Fm(this,f.o[1],e.fc,f);break;case "get":var q={},p=(q[I.Qa]=f.o[0],q[I.Pa]=f.o[1],q);Fm(this,I.Fa,p,f)}this.o.shift();Gm(this,f)}e={Da:e.Da,fc:e.fc}}tm&&(this.o.push.apply(this.o,
|
||||
c),d&&this.flush())};var Gm=function(a,b){if("require"!==b.type)if(b.P)for(var c=a.getCommandListeners(b.P)[b.type]||[],d=0;d<c.length;d++)c[d]();else for(var e in a.s)if(a.s.hasOwnProperty(e)){var f=a.s[e];if(f&&f.s)for(var h=f.s[b.type]||[],k=0;k<h.length;k++)h[k]()}};vm.prototype.getRemoteConfig=function(a){return Dm(this,a).remoteConfig};vm.prototype.getCommandListeners=function(a){return Dm(this,a).s};var Hm=function(a,b,c){var d={event:b,"gtm.element":a,"gtm.elementClasses":Qb(a,"className"),"gtm.elementId":a["for"]||Kb(a,"id")||"","gtm.elementTarget":a.formTarget||Qb(a,"target")||""};c&&(d["gtm.triggers"]=c.join(","));d["gtm.elementUrl"]=(a.attributes&&a.attributes.formaction?a.formAction:"")||a.action||Qb(a,"href")||a.src||a.code||a.codebase||"";return d},Im=function(a){L.hasOwnProperty("autoEventsSettings")||(L.autoEventsSettings={});var b=L.autoEventsSettings;b.hasOwnProperty(a)||(b[a]={});
|
||||
return b[a]},Jm=function(a,b,c){Im(a)[b]=c},Km=function(a,b,c,d){var e=Im(a),f=Ta(e,b,d);e[b]=c(f)},Lm=function(a,b,c){var d=Im(a);return Ta(d,b,c)};var Mm=["input","select","textarea"],Nm=["button","hidden","image","reset","submit"],Om=function(a){var b=a.tagName.toLowerCase();return!Ea(Mm,function(c){return c===b})||"input"===b&&Ea(Nm,function(c){return c===a.type.toLowerCase()})?!1:!0},Pm=function(a){return a.form?a.form.tagName?a.form:B.getElementById(a.form):Ob(a,["form"],100)},Qm=function(a,b,c){if(!a.elements)return 0;for(var d=b.dataset[c],e=0,f=1;e<a.elements.length;e++){var h=a.elements[e];if(Om(h)){if(h.dataset[c]===d)return f;f++}}return 0};var Rm=!!m.MutationObserver,Sm=void 0,Tm=function(a){if(!Sm){var b=function(){var c=B.body;if(c)if(Rm)(new MutationObserver(function(){for(var e=0;e<Sm.length;e++)E(Sm[e])})).observe(c,{childList:!0,subtree:!0});else{var d=!1;Ib(c,"DOMNodeInserted",function(){d||(d=!0,E(function(){d=!1;for(var e=0;e<Sm.length;e++)E(Sm[e])}))})}};Sm=[];B.body?b():E(b)}Sm.push(a)};var Vm=!1,Wm=[];function Xm(){if(!Vm){Vm=!0;for(var a=0;a<Wm.length;a++)E(Wm[a])}}var Ym=function(a){Vm?E(a):Wm.push(a)};Object.freeze({dl:1,id:1});var Zm="HA GF G UA AW DC".split(" "),$m=!1,an={},bn=!1;function cn(a,b){var c={event:a};b&&(c.eventModel=G(b),b[I.vd]&&(c.eventCallback=b[I.vd]),b[I.sc]&&(c.eventTimeout=b[I.sc]));return c}function dn(a){a.hasOwnProperty("gtm.uniqueEventId")||Object.defineProperty(a,"gtm.uniqueEventId",{value:mf()});return a["gtm.uniqueEventId"]}
|
||||
function en(){$m=$m||!L.gtagRegistered,L.gtagRegistered=!0,$m&&(L.addTargetToGroup=function(a){fn(a,"default")});return $m}var fn=function(a,b){b=b.toString().split(",");for(var c=0;c<b.length;c++)an[b[c]]=an[b[c]]||[],an[b[c]].push(a)},jn=function(a){Ja(an,function(b,c){var d=Ca(c,a);0<=d&&c.splice(d,1)})};
|
||||
var kn={config:function(a){var b,c;c=dn(a);void 0===c&&(c=mf());if(2>a.length||!ya(a[1]))return;var d={};if(2<a.length){if(void 0!=a[2]&&!Ub(a[2])||3<a.length)return;d=a[2]}var e=Ch(a[1]);if(!e)return;jn(e.id);fn(e.id,d[I.zd]||"default");delete d[I.zd];bn||nd(43);if(en()&&-1!==Ca(Zm,e.prefix)){"G"===e.prefix&&(d[I.Mb]=!0);ym(d,e.id);return}vf("gtag.targets."+
|
||||
e.id,void 0);vf("gtag.targets."+e.id,G(d));var f={};f[I.Za]=e.id;b=cn(I.sa,f);b["gtm.uniqueEventId"]=c;return b},consent:function(a){function b(){en()&&G(a[2],{subcommand:a[1]})}if(3===a.length){nd(39);var c=mf(),d=a[1];"default"===d?(b(),Ud(a[2])):"update"===d&&(b(),Vd(a[2],c))}},event:function(a){var b=a[1];if(!(2>a.length)&&ya(b)){var c;if(2<a.length){if(!Ub(a[2])&&
|
||||
void 0!=a[2]||3<a.length)return;c=a[2]}var d=cn(b,c),e=void 0;e=dn(a),d["gtm.uniqueEventId"]=e;void 0===e&&mf();var f;var h=c&&c[I.Za];void 0===h&&(h=sf(I.Za,2),void 0===h&&(h="default"));if(ya(h)||Aa(h)){for(var k=h.toString().replace(/\s+/g,"").split(","),l=[],n=0;n<k.length;n++)0<=k[n].indexOf("-")?l.push(k[n]):l=l.concat(an[k[n]]||[]);f=Eh(l)}else f=
|
||||
void 0;var q=f;if(!q)return;for(var p=en(),r=[],t=0;p&&t<q.length;t++){var u=q[t];if(-1!==Ca(Zm,u.prefix)){var v=G(c);"G"===u.prefix&&(v[I.Mb]=!0);xm(b,v,u.id)}r.push(u.id)}d.eventModel=d.eventModel||{};0<q.length?d.eventModel[I.Za]=r.join():delete d.eventModel[I.Za];bn||nd(43);return d}},get:function(a){nd(53);if(4!==a.length||!ya(a[1])||!ya(a[2])||!wa(a[3]))return;var b=Ch(a[1]),c=String(a[2]),d=a[3];if(!b)return;bn||nd(43);if(!en()||-1===
|
||||
Ca(Zm,b.prefix))return;mf();var e={};gi(G((e[I.Qa]=c,e[I.Pa]=d,e)));zm(c,function(f){E(function(){return d(f)})},b.id);},js:function(a){if(2==a.length&&a[1].getTime){bn=!0;en();var b={event:"gtm.js","gtm.start":a[1].getTime()};b["gtm.uniqueEventId"]=dn(a);return b}},policy:function(){},set:function(a){var b;2==a.length&&Ub(a[1])?b=G(a[1]):3==a.length&&
|
||||
ya(a[1])&&(b={},Ub(a[2])||Aa(a[2])?b[a[1]]=G(a[2]):b[a[1]]=a[2]);if(b){if(mf(),en()){G(b);var c=G(b);um().push("set",[c])}b._clear=!0;return b}}},ln={policy:!0};var mn=function(a,b){var c=a.hide;if(c&&void 0!==c[b]&&c.end){c[b]=!1;var d=!0,e;for(e in c)if(c.hasOwnProperty(e)&&!0===c[e]){d=!1;break}d&&(c.end(),c.end=null)}},on=function(a){var b=nn(),c=b&&b.hide;c&&c.end&&(c[a]=!0)};var Fn=function(a){if(En(a))return a;this.o=a};Fn.prototype.Ih=function(){return this.o};var En=function(a){return!a||"object"!==Sb(a)||Ub(a)?!1:"getUntrustedUpdateValue"in a};Fn.prototype.getUntrustedUpdateValue=Fn.prototype.Ih;var Gn=[],Hn=!1,In=!1,Jn=!1,Kn=function(a){return m["dataLayer"].push(a)},Ln=function(a){var b=L["dataLayer"],c=b?b.subscribers:1,d=0,e=a;return function(){++d===c&&(e(),e=null)}};
|
||||
function Mn(a){var b=a._clear;Ja(a,function(d,e){"_clear"!==d&&(b&&vf(d,void 0),vf(d,e))});gf||(gf=a["gtm.start"]);var c=a["gtm.uniqueEventId"];if(!a.event)return!1;c||(c=mf(),a["gtm.uniqueEventId"]=c,vf("gtm.uniqueEventId",c));return Rj(a)}function Nn(){var a=Gn[0];if(null==a||"object"!==typeof a)return!1;if(a.event)return!0;if(Ka(a)){var b=a[0];if("config"===b||"event"===b||"js"===b)return!0}return!1}
|
||||
function On(){for(var a=!1;!Jn&&0<Gn.length;){var b=!1;b=!0;b=!1;b=!0;if(b&&!In&&Nn()){var c={};Gn.unshift((c.event=
|
||||
"gtm.init",c));In=!0}var d=!1;d=!0;d=!1;d=!0;if(d&&!Hn&&Nn()){var e={};Gn.unshift((e.event="gtm.init_consent",e));Hn=!0}Jn=!0;delete pf.eventModel;rf();var f=Gn.shift();if(null!=f){var h=En(f);
|
||||
if(h){var k=f;f=En(k)?k.getUntrustedUpdateValue():void 0;for(var l=["gtm.allowlist","gtm.blocklist","gtm.whitelist","gtm.blacklist","tagTypeBlacklist"],n=0;n<l.length;n++){var q=l[n],p=sf(q,1);if(Aa(p)||Ub(p))p=G(p);qf[q]=p}}try{if(wa(f))try{f.call(tf)}catch(y){}else if(Aa(f)){var r=f;if(ya(r[0])){var t=r[0].split("."),u=t.pop(),v=r.slice(1),x=sf(t.join("."),2);if(void 0!==x&&null!==x)try{x[u].apply(x,v)}catch(y){}}}else{if(Ka(f)){a:{var z=f;if(z.length&&ya(z[0])){var w=kn[z[0]];if(w&&(!h||!ln[z[0]])){f=
|
||||
w(z);break a}}f=void 0}if(!f){Jn=!1;continue}}a=Mn(f)||a}}finally{h&&rf(!0)}}Jn=!1}return!a}
|
||||
function Pn(){var b=On();try{mn(m["dataLayer"],Ze.M)}catch(c){}return b}
|
||||
var Rn=function(){var a=Cb("dataLayer",[]),b=Cb("google_tag_manager",{});b=b["dataLayer"]=b["dataLayer"]||{};ni(function(){b.gtmDom||(b.gtmDom=!0,a.push({event:"gtm.dom"}))});Ym(function(){b.gtmLoad||(b.gtmLoad=!0,a.push({event:"gtm.load"}))});b.subscribers=(b.subscribers||0)+1;var c=a.push;a.push=function(){var e;if(0<L.SANDBOXED_JS_SEMAPHORE){e=[];for(var f=0;f<arguments.length;f++)e[f]=new Fn(arguments[f])}else e=[].slice.call(arguments,0);var h=c.apply(a,e);Gn.push.apply(Gn,e);if(300<
|
||||
this.length)for(nd(4);300<this.length;)this.shift();var k="boolean"!==typeof h||h;return On()&&k};var d=a.slice(0);Gn.push.apply(Gn,d);if(Qn()){E(Pn)}},Qn=function(){var a=!0;return a};var Sn={};Sn.Fc=new String("undefined");
|
||||
var Tn=function(a){this.o=function(b){for(var c=[],d=0;d<a.length;d++)c.push(a[d]===Sn.Fc?b:a[d]);return c.join("")}};Tn.prototype.toString=function(){return this.o("undefined")};Tn.prototype.valueOf=Tn.prototype.toString;Sn.fh=Tn;Sn.Od={};Sn.vh=function(a){return new Tn(a)};var Un={};Sn.gi=function(a,b){var c=mf();Un[c]=[a,b];return c};Sn.Ef=function(a){var b=a?0:1;return function(c){var d=Un[c];if(d&&"function"===typeof d[b])d[b]();Un[c]=void 0}};Sn.Nh=function(a){for(var b=!1,c=!1,d=2;d<a.length;d++)b=
|
||||
b||8===a[d],c=c||16===a[d];return b&&c};Sn.ai=function(a){if(a===Sn.Fc)return a;var b=mf();Sn.Od[b]=a;return'google_tag_manager["'+Ze.M+'"].macro('+b+")"};Sn.Xh=function(a,b,c){a instanceof Sn.fh&&(a=a.o(Sn.gi(b,c)),b=va);return{Jh:a,onSuccess:b}};var fo=m.clearTimeout,go=m.setTimeout,R=function(a,b,c){if(Fh()){b&&E(b)}else return Eb(a,b,c)},ho=function(){return new Date},io=function(){return m.location.href},jo=function(a){return qe(se(a),"fragment")},ko=function(a){return re(se(a))},lo=function(a,b){return sf(a,b||2)},mo=function(a,b,c){var d;b?(a.eventCallback=b,c&&(a.eventTimeout=c),d=Kn(a)):d=Kn(a);return d},no=function(a,b){m[a]=b},V=function(a,b,c){b&&
|
||||
(void 0===m[a]||c&&!m[a])&&(m[a]=b);return m[a]},oo=function(a,b,c){return If(a,b,void 0===c?!0:!!c)},po=function(a,b,c){return 0===Rf(a,b,c)},qo=function(a,b){if(Fh()){b&&E(b)}else Gb(a,b)},ro=function(a){return!!Lm(a,"init",!1)},so=function(a){Jm(a,"init",!0)},to=function(a){var b=ef+"?id="+encodeURIComponent(a)+"&l=dataLayer";R(Hh("https://","http://",b))},uo=function(a,b,c){vj&&(Vb(a)||Bj(c,b,a))};var vo=Sn.Xh;function So(a,b){a=String(a);b=String(b);var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c}var To=new Ha;function Uo(a,b,c){var d=c?"i":void 0;try{var e=String(b)+d,f=To.get(e);f||(f=new RegExp(b,d),To.set(e,f));return f.test(a)}catch(h){return!1}}
|
||||
function Vo(a,b){function c(h){var k=se(h),l=qe(k,"protocol"),n=qe(k,"host",!0),q=qe(k,"port"),p=qe(k,"path").toLowerCase().replace(/\/$/,"");if(void 0===l||"http"==l&&"80"==q||"https"==l&&"443"==q)l="web",q="default";return[l,n,q,p]}for(var d=c(String(a)),e=c(String(b)),f=0;f<d.length;f++)if(d[f]!==e[f])return!1;return!0}
|
||||
function Wo(a){return Xo(a)?1:0}
|
||||
function Xo(a){var b=a.arg0,c=a.arg1;if(a.any_of&&Aa(c)){for(var d=0;d<c.length;d++){var e=G(a,{});G({arg1:c[d],any_of:void 0},e);if(Wo(e))return!0}return!1}switch(a["function"]){case "_cn":return 0<=String(b).indexOf(String(c));case "_css":var f;a:{if(b){var h=["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"];try{for(var k=0;k<h.length;k++)if(b[h[k]]){f=b[h[k]](c);break a}}catch(n){}}f=!1}return f;case "_ew":return So(b,c);case "_eq":return String(b)==
|
||||
String(c);case "_ge":return Number(b)>=Number(c);case "_gt":return Number(b)>Number(c);case "_lc":var l;l=String(b).split(",");return 0<=Ca(l,String(c));case "_le":return Number(b)<=Number(c);case "_lt":return Number(b)<Number(c);case "_re":return Uo(b,c,a.ignore_case);case "_sw":return 0==String(b).indexOf(String(c));case "_um":return Vo(b,c)}return!1};var bp=encodeURI,Y=encodeURIComponent,cp=Hb;var dp=function(a,b){if(!a)return!1;var c=qe(se(a),"host");if(!c)return!1;for(var d=0;b&&d<b.length;d++){var e=b[d]&&b[d].toLowerCase();if(e){var f=c.length-e.length;0<f&&"."!=e.charAt(0)&&(f--,e="."+e);if(0<=f&&c.indexOf(e,f)==f)return!0}}return!1};
|
||||
var ep=function(a,b,c){for(var d={},e=!1,f=0;a&&f<a.length;f++)a[f]&&a[f].hasOwnProperty(b)&&a[f].hasOwnProperty(c)&&(d[a[f][b]]=a[f][c],e=!0);return e?d:null};function Mq(){return m.gaGlobal=m.gaGlobal||{}}var Nq=function(){var a=Mq();a.hid=a.hid||Ga();return a.hid},Oq=function(a,b){var c=Mq();if(void 0==c.vid||b&&!c.from_cookie)c.vid=a,c.from_cookie=b};var lr=function(){if(wa(m.__uspapi)){var a="";try{m.__uspapi("getUSPData",1,function(b,c){if(c&&b){var d=b.uspString;d&&/^[\da-zA-Z-]{1,20}$/.test(d)&&(a=d)}})}catch(b){}return a}};var Gr=window,Hr=document,Ir=function(a){var b=Gr._gaUserPrefs;if(b&&b.ioo&&b.ioo()||a&&!0===Gr["ga-disable-"+a])return!0;try{var c=Gr.external;if(c&&c._gaUserPrefs&&"oo"==c._gaUserPrefs)return!0}catch(f){}for(var d=Ef("AMP_TOKEN",String(Hr.cookie),!0),e=0;e<d.length;e++)if("$OPT_OUT"==d[e])return!0;return Hr.getElementById("__gaOptOutExtension")?!0:!1};var Jr={};function Mr(a){delete a.eventModel[I.Mb];Or(a.eventModel)}var Or=function(a){Ja(a,function(c){"_"===c.charAt(0)&&delete a[c]});var b=a[I.Ia]||{};Ja(b,function(c){"_"===c.charAt(0)&&delete b[c]})};var Rr=function(a,b,c){xm(b,c,a)},Sr=function(a,b,c){xm(b,c,a,!0)},Zr=function(a,b){};
|
||||
function Tr(a,b){}var Z={g:{}};
|
||||
|
||||
Z.g.e=["google"],function(){(function(a){Z.__e=a;Z.__e.h="e";Z.__e.m=!0;Z.__e.priorityOverride=0})(function(a){var b=String(yf(a.vtp_gtmEventId,"event"));a.vtp_gtmCachedValues&&(b=String(a.vtp_gtmCachedValues.event));return b})}();
|
||||
|
||||
Z.g.v=["google"],function(){(function(a){Z.__v=a;Z.__v.h="v";Z.__v.m=!0;Z.__v.priorityOverride=0})(function(a){var b=a.vtp_name;if(!b||!b.replace)return!1;var c=lo(b.replace(/\\\./g,"."),a.vtp_dataLayerVersion||1),d=void 0!==c?c:a.vtp_defaultValue;uo(d,"v",a.vtp_gtmEventId);return d})}();
|
||||
Z.g.rep=["google"],function(){(function(a){Z.__rep=a;Z.__rep.h="rep";Z.__rep.m=!0;Z.__rep.priorityOverride=0})(function(a){var b;switch(Ch(a.vtp_containerId).prefix){case "AW":b=rl;break;case "DC":b=Hl;break;case "GF":b=Ml;break;case "HA":b=Rl;break;case "UA":b=km;break;default:E(a.vtp_gtmOnFailure);return}E(a.vtp_gtmOnSuccess);wm(a.vtp_containerId,b,a.vtp_remoteConfig||{})})}();
|
||||
|
||||
|
||||
|
||||
Z.g.cid=["google"],function(){(function(a){Z.__cid=a;Z.__cid.h="cid";Z.__cid.m=!0;Z.__cid.priorityOverride=0})(function(){return Ze.M})}();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Z.g.get=["google"],function(){(function(a){Z.__get=a;Z.__get.h="get";Z.__get.m=!0;Z.__get.priorityOverride=0})(function(a){var b=a.vtp_settings;(a.vtp_deferrable?Sr:Rr)(String(b.streamId),String(a.vtp_eventName),b.eventParameters||{});a.vtp_gtmOnSuccess()})}();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Z.g.gtagua=["google"],function(){(function(a){Z.__gtagua=a;Z.__gtagua.h="gtagua";Z.__gtagua.m=!0;Z.__gtagua.priorityOverride=0})(function(a){E(a.vtp_gtmOnSuccess)})}();
|
||||
|
||||
|
||||
var $r={};$r.macro=function(a){if(Sn.Od.hasOwnProperty(a))return Sn.Od[a]},$r.onHtmlSuccess=Sn.Ef(!0),$r.onHtmlFailure=Sn.Ef(!1);$r.dataLayer=tf;$r.callback=function(a){kf.hasOwnProperty(a)&&wa(kf[a])&&kf[a]();delete kf[a]};$r.bootstrap=0;$r._spx=!1;function as(){L[Ze.M]=$r;Va(lf,Z.g);Dc=Dc||Sn;Ec=Mc}
|
||||
function bs(){var a=!1;a&&wi("INIT");Ad().s();L=m.google_tag_manager=m.google_tag_manager||{};Nk();
|
||||
Rg.enable_gbraid_cookie_write=!0;if(L[Ze.M]){var b=L.zones;b&&b.unregisterChild(Ze.M);}else{for(var c=data.resource||{},d=c.macros||[],e=0;e<d.length;e++)wc.push(d[e]);for(var f=c.tags||[],h=0;h<f.length;h++)zc.push(f[h]);for(var k=c.predicates||[],l=0;l<k.length;l++)yc.push(k[l]);for(var n=c.rules||[],q=0;q<n.length;q++){for(var p=n[q],r={},t=0;t<
|
||||
p.length;t++)r[p[t][0]]=Array.prototype.slice.call(p[t],1);xc.push(r)}Bc=Z;Cc=Wo;as();Rn();ii=!1;ji=0;if("interactive"==B.readyState&&!B.createEventObject||"complete"==B.readyState)li();else{Ib(B,"DOMContentLoaded",li);Ib(B,"readystatechange",li);if(B.createEventObject&&B.documentElement.doScroll){var u=!0;try{u=!m.frameElement}catch(y){}u&&mi()}Ib(m,"load",li)}Vm=!1;"complete"===B.readyState?Xm():Ib(m,"load",Xm);vj&&m.setInterval(qj,864E5);hf=(new Date).getTime();$r.bootstrap=
|
||||
hf;if(a){var w=xi("INIT");}}}
|
||||
(function(a){if(!m["__TAGGY_INSTALLED"]){var b=!1;if(B.referrer){var c=se(B.referrer);b="cct.google"===pe(c,"host")}if(!b){var d=If("googTaggyReferrer");b=d.length&&d[0].length}b&&(m["__TAGGY_INSTALLED"]=!0,Eb("https://cct.google/taggy/agent.js"))}var f=function(){var n=m["google.tagmanager.debugui2.queue"];n||(n=[],m["google.tagmanager.debugui2.queue"]=n,Eb("https://www.googletagmanager.com/debug/bootstrap"));var q={messageType:"CONTAINER_STARTING",data:{scriptSource:xb,containerProduct:"GTM",debug:!1}};q.data.resume=function(){a()};q.data.containerProduct=
|
||||
"OGT";Ze.mg&&(q.data.initialPublish=!0);n.push(q)},h="x"===qe(m.location,"query",!1,void 0,"gtm_debug");if(!h&&B.referrer){var k=se(B.referrer);h="tagassistant.google.com"===pe(k,"host")}if(!h){var l=If("__TAG_ASSISTANT");h=l.length&&l[0].length}m.__TAG_ASSISTANT_API&&(h=!0);h&&xb?f():a()})(bs);
|
||||
|
||||
})()
|
131
document/某OJ系统恶意代码执行漏洞 - Matrix_files/monokai.css
Normal file
@ -0,0 +1,131 @@
|
||||
/* Background */ .highlight-chroma { color: #f8f8f2; background-color: #272822 }
|
||||
/* Error */ .highlight-chroma .highlight-err { color: #960050; background-color: #1e0010 }
|
||||
/* LineTableTD */ .highlight-chroma .highlight-lntd { vertical-align: top; padding: 0; margin: 0; border: 0; }
|
||||
/* LineTable */ .highlight-chroma .highlight-lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; width: auto; overflow: auto; display: block; }
|
||||
/* LineHighlight */ .highlight-chroma .highlight-hl { display: block; width: 100%;background-color: #3c3d38 }
|
||||
/* LineNumbersTable */ .highlight-chroma .highlight-lnt { margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f }
|
||||
/* LineNumbers */ .highlight-chroma .highlight-ln { margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f }
|
||||
/* Keyword */ .highlight-chroma .highlight-k { color: #66d9ef }
|
||||
/* KeywordConstant */ .highlight-chroma .highlight-kc { color: #66d9ef }
|
||||
/* KeywordDeclaration */ .highlight-chroma .highlight-kd { color: #66d9ef }
|
||||
/* KeywordNamespace */ .highlight-chroma .highlight-kn { color: #f92672 }
|
||||
/* KeywordPseudo */ .highlight-chroma .highlight-kp { color: #66d9ef }
|
||||
/* KeywordReserved */ .highlight-chroma .highlight-kr { color: #66d9ef }
|
||||
/* KeywordType */ .highlight-chroma .highlight-kt { color: #66d9ef }
|
||||
/* NameAttribute */ .highlight-chroma .highlight-na { color: #a6e22e }
|
||||
/* NameClass */ .highlight-chroma .highlight-nc { color: #a6e22e }
|
||||
/* NameConstant */ .highlight-chroma .highlight-no { color: #66d9ef }
|
||||
/* NameDecorator */ .highlight-chroma .highlight-nd { color: #a6e22e }
|
||||
/* NameException */ .highlight-chroma .highlight-ne { color: #a6e22e }
|
||||
/* NameFunction */ .highlight-chroma .highlight-nf { color: #a6e22e }
|
||||
/* NameOther */ .highlight-chroma .highlight-nx { color: #a6e22e }
|
||||
/* NameTag */ .highlight-chroma .highlight-nt { color: #f92672 }
|
||||
/* Literal */ .highlight-chroma .highlight-l { color: #ae81ff }
|
||||
/* LiteralDate */ .highlight-chroma .highlight-ld { color: #e6db74 }
|
||||
/* LiteralString */ .highlight-chroma .highlight-s { color: #e6db74 }
|
||||
/* LiteralStringAffix */ .highlight-chroma .highlight-sa { color: #e6db74 }
|
||||
/* LiteralStringBacktick */ .highlight-chroma .highlight-sb { color: #e6db74 }
|
||||
/* LiteralStringChar */ .highlight-chroma .highlight-sc { color: #e6db74 }
|
||||
/* LiteralStringDelimiter */ .highlight-chroma .highlight-dl { color: #e6db74 }
|
||||
/* LiteralStringDoc */ .highlight-chroma .highlight-sd { color: #e6db74 }
|
||||
/* LiteralStringDouble */ .highlight-chroma .highlight-s2 { color: #e6db74 }
|
||||
/* LiteralStringEscape */ .highlight-chroma .highlight-se { color: #ae81ff }
|
||||
/* LiteralStringHeredoc */ .highlight-chroma .highlight-sh { color: #e6db74 }
|
||||
/* LiteralStringInterpol */ .highlight-chroma .highlight-si { color: #e6db74 }
|
||||
/* LiteralStringOther */ .highlight-chroma .highlight-sx { color: #e6db74 }
|
||||
/* LiteralStringRegex */ .highlight-chroma .highlight-sr { color: #e6db74 }
|
||||
/* LiteralStringSingle */ .highlight-chroma .highlight-s1 { color: #e6db74 }
|
||||
/* LiteralStringSymbol */ .highlight-chroma .highlight-ss { color: #e6db74 }
|
||||
/* LiteralNumber */ .highlight-chroma .highlight-m { color: #ae81ff }
|
||||
/* LiteralNumberBin */ .highlight-chroma .highlight-mb { color: #ae81ff }
|
||||
/* LiteralNumberFloat */ .highlight-chroma .highlight-mf { color: #ae81ff }
|
||||
/* LiteralNumberHex */ .highlight-chroma .highlight-mh { color: #ae81ff }
|
||||
/* LiteralNumberInteger */ .highlight-chroma .highlight-mi { color: #ae81ff }
|
||||
/* LiteralNumberIntegerLong */ .highlight-chroma .highlight-il { color: #ae81ff }
|
||||
/* LiteralNumberOct */ .highlight-chroma .highlight-mo { color: #ae81ff }
|
||||
/* Operator */ .highlight-chroma .highlight-o { color: #f92672 }
|
||||
/* OperatorWord */ .highlight-chroma .highlight-ow { color: #f92672 }
|
||||
/* Comment */ .highlight-chroma .highlight-c { color: #75715e }
|
||||
/* CommentHashbang */ .highlight-chroma .highlight-ch { color: #75715e }
|
||||
/* CommentMultiline */ .highlight-chroma .highlight-cm { color: #75715e }
|
||||
/* CommentSingle */ .highlight-chroma .highlight-c1 { color: #75715e }
|
||||
/* CommentSpecial */ .highlight-chroma .highlight-cs { color: #75715e }
|
||||
/* CommentPreproc */ .highlight-chroma .highlight-cp { color: #75715e }
|
||||
/* CommentPreprocFile */ .highlight-chroma .highlight-cpf { color: #75715e }
|
||||
/* GenericDeleted */ .highlight-chroma .highlight-gd { color: #f92672 }
|
||||
/* GenericEmph */ .highlight-chroma .highlight-ge { font-style: italic }
|
||||
/* GenericInserted */ .highlight-chroma .highlight-gi { color: #a6e22e }
|
||||
/* GenericStrong */ .highlight-chroma .highlight-gs { font-weight: bold }
|
||||
/* GenericSubheading */ .highlight-chroma .highlight-gu { color: #75715e }
|
||||
|
||||
/*
|
||||
Monokai style - ported by Luigi Maselli - http://grigio.org
|
||||
*/
|
||||
|
||||
.hljs {
|
||||
display: block;
|
||||
overflow-x: auto;
|
||||
padding: 0.5em;
|
||||
background: #272822; color: #ddd;
|
||||
}
|
||||
|
||||
.hljs-tag,
|
||||
.hljs-keyword,
|
||||
.hljs-selector-tag,
|
||||
.hljs-literal,
|
||||
.hljs-strong,
|
||||
.hljs-name {
|
||||
color: #f92672;
|
||||
}
|
||||
|
||||
.hljs-code {
|
||||
color: #66d9ef;
|
||||
}
|
||||
|
||||
.hljs-class .hljs-title {
|
||||
color: white;
|
||||
}
|
||||
|
||||
.hljs-attribute,
|
||||
.hljs-symbol,
|
||||
.hljs-regexp,
|
||||
.hljs-link {
|
||||
color: #bf79db;
|
||||
}
|
||||
|
||||
.hljs-string,
|
||||
.hljs-bullet,
|
||||
.hljs-subst,
|
||||
.hljs-title,
|
||||
.hljs-section,
|
||||
.hljs-emphasis,
|
||||
.hljs-type,
|
||||
.hljs-built_in,
|
||||
.hljs-builtin-name,
|
||||
.hljs-selector-attr,
|
||||
.hljs-selector-pseudo,
|
||||
.hljs-addition,
|
||||
.hljs-variable,
|
||||
.hljs-template-tag,
|
||||
.hljs-template-variable {
|
||||
color: #a6e22e;
|
||||
}
|
||||
|
||||
.hljs-comment,
|
||||
.hljs-quote,
|
||||
.hljs-deletion,
|
||||
.hljs-meta {
|
||||
color: #75715e;
|
||||
}
|
||||
|
||||
.hljs-keyword,
|
||||
.hljs-selector-tag,
|
||||
.hljs-literal,
|
||||
.hljs-doctag,
|
||||
.hljs-title,
|
||||
.hljs-section,
|
||||
.hljs-type,
|
||||
.hljs-selector-id {
|
||||
font-weight: bold;
|
||||
}
|
||||
|