1(function(d,q){d.Granite=d.Granite||{};d.Granite.HTTP=d.Granite.HTTP||{};var e=null;d.Granite.HTTP.externalize=d.Granite.HTTP.externalize||function(g){if(null===e)a:{var h=/^(?:http|https):\/\/[^\/]+(\/.*)\/(?:etc\.clientlibs|etc(\/.*)*\/clientlibs|libs(\/.*)*\/clientlibs|apps(\/.*)*\/clientlibs).*\.js(\?.*)?$/;try{if(d.CQURLInfo)e=CQURLInfo.contextPath||"";else{for(var l=document.getElementsByTagName("script"),k=0;k<l.length;k++){var m=h.exec(l[k].src);if(m){e=m[1];break a}}e=""}}catch(p){}}try{0=== 2g.indexOf("/")&&e&&0!==g.indexOf(e+"/")&&(g=e+g)}catch(p){}return g}})(this); 3(function(d){function q(){this._handler=[]}function e(a){var b="//"+document.location.host,c=document.location.protocol+b;return a===c||a.slice(0,c.length+1)===c+"/"||a===b||a.slice(0,b.length+1)===b+"/"||!/^(\/\/|http:|https:).*/.test(a)}function g(a){d.console&&console.warn("CSRF data not available;The data may be unavailable by design, such as during non-authenticated requests: "+a)}function h(){var a=new q;r=a;var b=new XMLHttpRequest;b.onreadystatechange=function(){if(4===b.readyState)try{f= 4JSON.parse(b.responseText).token,a.resolve(f)}catch(c){g(c),a.reject(b.responseText)}};b.open("GET",p,!0);b.send();return a}function l(){var a=new XMLHttpRequest;a.open("GET",p,!1);a.send();try{return f=JSON.parse(a.responseText).token}catch(b){g(b)}}function k(a){var b=a.getAttribute("action");"GET"===a.method.toUpperCase()||b&&!e(b)||(f||l(),f&&(b=a.querySelector("input[name\x3d':cq_csrf_token']"),b||(b=document.createElement("input"),b.setAttribute("type","hidden"),b.setAttribute("name",":cq_csrf_token"), 5a.appendChild(b)),b.setAttribute("value",f)))}function m(a){var b=function(c){c=c.target;"FORM"===c.nodeName&&k(c)};a.addEventListener?a.addEventListener("submit",b,!0):a.attachEvent&&a.attachEvent("submit",b)}d.Granite=d.Granite||{};if(!d.Granite.csrf){d.Granite.csrf={initialised:!1,refreshToken:h,_clearToken:function(){f=void 0;h()}};q.prototype={then:function(a,b){this._handler.push({resolve:a,reject:b})},resolve:function(){this._execute("resolve",arguments)},reject:function(){this._execute("reject", 6arguments)},_execute:function(a,b){if(null===this._handler)throw Error("Promise already completed.");for(var c=0,t=this._handler.length;c<t;c++)this._handler[c][a].apply(d,b);this.then=function(u,v){("resolve"===a?u:v).apply(d,b)};this._handler=null}};var p=Granite.HTTP.externalize("/libs/granite/csrf/token.json"),r,f;h();m(document);var w=XMLHttpRequest.prototype.open;XMLHttpRequest.prototype.open=function(a,b,c){e(b)&&"get"!==a.toLowerCase()&&(this._csrf=!0,this._async=c);return w.apply(this,arguments)}; 7var n=XMLHttpRequest.prototype.send;XMLHttpRequest.prototype.send=function(){if(this._csrf)if(f)this.setRequestHeader("CSRF-Token",f),n.apply(this,arguments);else if(!1===this._async)l(),f&&this.setRequestHeader("CSRF-Token",f),n.apply(this,arguments);else{var a=this,b=Array.prototype.slice.call(arguments);r.then(function(c){a.setRequestHeader("CSRF-Token",c);n.apply(a,b)},function(){n.apply(a,b)})}else n.apply(this,arguments)};var x=HTMLFormElement.prototype.submit;HTMLFormElement.prototype.submit= 8function(){k(this);return x.apply(this,arguments)};if(d.Node){var y=Node.prototype.appendChild;Node.prototype.appendChild=function(){var a=y.apply(this,arguments);if("IFRAME"===a.nodeName)try{a.contentWindow&&!a._csrf&&(a._csrf=!0,m(a.contentWindow.document))}catch(b){a.src&&a.src.length&&e(a.src)&&d.console&&console.error("Unable to attach CSRF token to an iframe element on the same origin")}return a}}setInterval(function(){h()},3E5)}})(window);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.