!function(){"use strict";function t(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n;(n=console.warn||console.log).call.apply(n,[console,"[ROCKET LOADER] "].concat(t))}function e(t,e){var n=e.parentNode;n&&l(t,n,e)}function n(t){var e=t.parentNode;e&&e.removeChild(t)}function r(t){var e=t.namespaceURI===h?"xlink:href":"src";return t.getAttribute(e)}function o(t,e){var n=t.type.substr(e.length);return!(n&&!v[n.trim()]||y&&t.hasAttribute("nomodule")||!y&&"module"===n)}function i(t){return o(t,"")}function a(t,e){return function(n){if(e(),t)return t.call(this,n)}}function c(t,e){t.onload=a(t.onload,e),t.onerror=a(t.onerror,e)}function s(t){var e=document.createElementNS(t.namespaceURI,"script");e.async=t.hasAttribute("async"),e.textContent=t.textContent;for(var n=0;n<t.attributes.length;n++){var r=t.attributes[n];try{r.namespaceURI?e.setAttributeNS(r.namespaceURI,r.name,r.value):e.setAttribute(r.name,r.value)}catch(t){}}return e}function u(t,e){var n=new m(e);t.dispatchEvent(n)}function p(t){var e=t.namespaceURI===h,r="cf-marker-"+Math.random().toString().slice(2);t.setAttribute(r,"");var o=e?"<svg>"+t.outerHTML+"</svg>":t.outerHTML;b.call(document,o);var i=document.querySelector("["+r+"]");if(i){i.removeAttribute(r);var a=e&&i.parentNode;a&&n(a)}return i}function l(t,e,n){var r=n?function(t){return e.insertBefore(t,n)}:function(t){return e.appendChild(t)};Array.prototype.slice.call(t).forEach(r)}function d(t,e){function n(){this.constructor=t}S(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function f(t){var e=new x(t),n=new A(e);e.harvestScriptsInDocument();var r=new I(e,{nonce:t,blocking:!1,docWriteSimulator:n,callback:function(){window.__cfRLUnblockHandlers=!0,r.removePreloadHints(),function(t){var e=new P(t);k.simulateStateBeforeDeferScriptsActivation(),e.harvestDeferScriptsInDocument(),new I(e,{nonce:t,blocking:!1,callback:function(){k.simulateStateAfterDeferScriptsActivation(),D&&D()}}).run()}(t)}});r.insertPreloadHints(),k.runOnLoad((function(){r.run()}))}var h="http://www.w3.org/2000/svg",v={"application/ecmascript":!0,"application/javascript":!0,"application/x-ecmascript":!0,"application/x-javascript":!0,"text/ecmascript":!0,"text/javascript":!0,"text/javascript1.0":!0,"text/javascript1.1":!0,"text/javascript1.2":!0,"text/javascript1.3":!0,"text/javascript1.4":!0,"text/javascript1.5":!0,"text/jscript":!0,"text/livescript":!0,"text/x-ecmascript":!0,"text/x-javascript":!0,module:!0},y=void 0!==document.createElement("script").noModule,m=function(){var t=window;return t.__rocketLoaderEventCtor||Object.defineProperty(t,"__rocketLoaderEventCtor",{value:Event}),t.__rocketLoaderEventCtor}(),b=document.write,g=document.writeln,S=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},w=function(){function t(t){this.nonce=t,this.items=[]}return Object.defineProperty(t.prototype,"hasItems",{get:function(){return this.items.length>0},enumerable:!0,configurable:!0}),t.prototype.pop=function(){return this.items.pop()},t.prototype.forEach=function(t){this.items.forEach((function(e){var n=e.script;return t(n)}))},t.prototype.harvestScripts=function(t,e){var n=this,r=e.filter,o=e.mutate;Array.prototype.slice.call(t.querySelectorAll("script")).filter(r).reverse().forEach((function(t){o(t),n.pushScriptOnStack(t)}))},t.prototype.pushScriptOnStack=function(t){var e=t.parentNode,n=this.createPlaceholder(t),o=!!r(t);e.replaceChild(n,t),this.items.push({script:t,placeholder:n,external:o,async:o&&t.hasAttribute("async"),executable:i(t)})},t.prototype.hasNonce=function(t){return 0===(t.getAttribute("type")||"").indexOf(this.nonce)},t.prototype.removeNonce=function(t){t.type=t.type.substr(this.nonce.length)},t.prototype.makeNonExecutable=function(t){t.type=this.nonce+t.type},t.prototype.isPendingDeferScript=function(t){return t.hasAttribute("defer")||t.type===this.nonce+"module"&&!t.hasAttribute("async")},t}(),x=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return d(e,t),e.prototype.harvestScriptsInDocument=function(){var t=this;this.harvestScripts(document,{filter:function(e){return t.hasNonce(e)},mutate:function(e){t.isPendingDeferScript(e)||t.removeNonce(e)}})},e.prototype.harvestScriptsAfterDocWrite=function(t){var e=this;this.harvestScripts(t,{filter:i,mutate:function(t){e.isPendingDeferScript(t)&&e.makeNonExecutable(t)}})},e.prototype.createPlaceholder=function(t){return document.createComment(t.outerHTML)},e}(w),P=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return d(e,t),e.prototype.harvestDeferScriptsInDocument=function(){var t=this;this.harvestScripts(document,{filter:function(e){return t.hasNonce(e)&&t.isPendingDeferScript(e)},mutate:function(e){return t.removeNonce(e)}})},e.prototype.createPlaceholder=function(t){var e=s(t);return this.makeNonExecutable(e),e},e}(w),A=function(){function n(t){this.scriptStack=t}return n.prototype.enable=function(t){var e=this;this.insertionPointMarker=t,this.buffer="",document.write=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.write(t,!1)},document.writeln=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.write(t,!0)}},n.prototype.flushWrittenContentAndDisable=function(){document.write=b,document.writeln=g,this.buffer.length&&(document.contains(this.insertionPointMarker)?this.insertionPointMarker.parentNode===document.head?this.insertContentInHead():this.insertContentInBody():t("Insertion point marker for document.write was detached from document:","Markup will not be inserted"))},n.prototype.insertContentInHead=function(){var t=new DOMParser,n="<!DOCTYPE html><head>"+this.buffer+"</head>",r=t.parseFromString(n,"text/html");if(this.scriptStack.harvestScriptsAfterDocWrite(r),e(r.head.childNodes,this.insertionPointMarker),r.body.childNodes.length){for(var o=Array.prototype.slice.call(r.body.childNodes),i=this.insertionPointMarker.nextSibling;i;)o.push(i),i=i.nextSibling;document.body||b.call(document,"<body>"),function(t,e){l(t,e,e.childNodes[0])}(o,document.body)}},n.prototype.insertContentInBody=function(){var t=this.insertionPointMarker.parentElement,n=document.createElement(t.tagName);n.innerHTML=this.buffer,this.scriptStack.harvestScriptsAfterDocWrite(n),e(n.childNodes,this.insertionPointMarker)},n.prototype.write=function(t,e){var n,o=document.currentScript;o&&r(o)&&o.hasAttribute("async")?(n=e?g:b).call.apply(n,[document].concat(t)):this.buffer+=t.map(String).join(e?"\n":"")},n}(),E=function(){function t(){var t=this;this.simulatedReadyState="loading",this.bypassEventsInProxies=!1,this.nativeWindowAddEventListener=window.addEventListener;try{Object.defineProperty(document,"readyState",{get:function(){return t.simulatedReadyState}})}catch(t){}this.setupEventListenerProxy(),this.updateInlineHandlers()}return t.prototype.runOnLoad=function(t){var e=this;this.nativeWindowAddEventListener.call(window,"load",(function(n){if(!e.bypassEventsInProxies)return t(n)}))},t.prototype.updateInlineHandlers=function(){this.proxyInlineHandler(document,"onreadystatechange"),this.proxyInlineHandler(window,"onload"),document.body&&this.proxyInlineHandler(document.body,"onload")},t.prototype.simulateStateBeforeDeferScriptsActivation=function(){this.bypassEventsInProxies=!0,this.simulatedReadyState="interactive",u(document,"readystatechange"),this.bypassEventsInProxies=!1},t.prototype.simulateStateAfterDeferScriptsActivation=function(){var t=this;this.bypassEventsInProxies=!0,u(document,"DOMContentLoaded"),this.simulatedReadyState="complete",u(document,"readystatechange"),u(window,"load"),this.bypassEventsInProxies=!1,window.setTimeout((function(){return t.bypassEventsInProxies=!0}),0)},t.prototype.setupEventListenerProxy=function(){var t=this;("undefined"!=typeof EventTarget?[EventTarget.prototype]:[Node.prototype,Window.prototype]).forEach((function(e){return t.patchEventTargetMethods(e)}))},t.prototype.patchEventTargetMethods=function(t){var e=this,n=t.addEventListener,r=t.removeEventListener;t.addEventListener=function(t,r){for(var o=[],i=2;i<arguments.length;i++)o[i-2]=arguments[i];var a=function(t){return t instanceof Window?["load"]:t instanceof Document?["DOMContentLoaded","readystatechange"]:[]}(this),c=r&&r.__rocketLoaderProxiedHandler;if(!c){var s=function(t){if(t&&"handleEvent"in t){var e=t.handleEvent;return"function"==typeof e?e.bind(t):e}return t}(r);"function"==typeof s?(c=function(n){if(e.bypassEventsInProxies||a.indexOf(t)<0)return s.call(this,n)},Object.defineProperty(r,"__rocketLoaderProxiedHandler",{value:c})):c=r}n.call.apply(n,[this,t,c].concat(o))},t.removeEventListener=function(t,e){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];var i=e&&e.__rocketLoaderProxiedHandler||e;r.call.apply(r,[this,t,i].concat(n))}},t.prototype.proxyInlineHandler=function(t,e){try{var n=t[e];if(n&&!n.__rocketLoaderInlineHandlerProxy){var r=this;t[e]=function(t){if(r.bypassEventsInProxies)return n.call(this,t)},Object.defineProperty(t[e],"__rocketLoaderInlineHandlerProxy",{value:!0})}}catch(t){return void console.warn("encountered an error when accessing "+e+" handler:",t.message)}},t}(),k=function(){var t=window;return t.__rocketLoaderLoadProgressSimulator||Object.defineProperty(t,"__rocketLoaderLoadProgressSimulator",{value:new E}),t.__rocketLoaderLoadProgressSimulator}(),I=function(){function e(t,e){this.scriptStack=t,this.settings=e,this.preloadHints=[]}return e.prototype.insertPreloadHints=function(){var t=this;this.scriptStack.forEach((function(e){if(o(e,t.settings.nonce)){var n=r(e),i=/chrome/i.test(navigator.userAgent)&&/google/i.test(navigator.vendor)&&e.hasAttribute("integrity");if(n&&!i){var a=document.createElement("link");a.setAttribute("rel","preload"),a.setAttribute("as","script"),a.setAttribute("href",n),e.crossOrigin&&a.setAttribute("crossorigin",e.crossOrigin),document.head.appendChild(a),t.preloadHints.push(a)}}}))},e.prototype.removePreloadHints=function(){this.preloadHints.forEach((function(t){return n(t)}))},e.prototype.run=function(){for(var t=this,e=this;this.scriptStack.hasItems;){var n=function(){var n=e.settings.docWriteSimulator,r=e.scriptStack.pop();n&&!r.async&&n.enable(r.placeholder);var o=e.activateScript(r);return o?r.external&&r.executable&&!r.async?(c(o,(function(){t.finalizeActivation(r),t.run()})),{value:void 0}):void e.finalizeActivation(r):(n&&n.flushWrittenContentAndDisable(),"continue")}();if("object"==typeof n)return n.value}this.scriptStack.hasItems||this.settings.callback()},e.prototype.finalizeActivation=function(t){this.settings.docWriteSimulator&&!t.async&&this.settings.docWriteSimulator.flushWrittenContentAndDisable(),k.updateInlineHandlers(),n(t.placeholder)},e.prototype.activateScript=function(e){var n=e.script,r=e.placeholder,o=e.external,i=e.async,a=r.parentNode;if(!document.contains(r))return t("Placeholder for script \n"+n.outerHTML+"\n was detached from document.","Script will not be executed."),null;var c=this.settings.blocking&&o&&!i?p(n):s(n);return c?(a.insertBefore(c,r),c):(t("Failed to create activatable copy of script \n"+n.outerHTML+"\n","Script will not be executed."),null)},e}(),L="data-cf-settings",_="|",H="data-cf-modified-",D=void 0;!function(){var e=document.currentScript;if(e){var r=function(t){var e=t.getAttribute(L);if(!e)return null;var n=e.split(_);return{nonce:n[0],handlerPrefixLength:+n[1],bailout:!t.hasAttribute("defer")}}(e);r?(n(e),function(t){var e=H+t.nonce;Array.prototype.forEach.call(document.querySelectorAll("["+e+"]"),(function(n){n.removeAttribute(e),Array.prototype.forEach.call(n.attributes,(function(e){/^on/.test(e.name)&&"function"!=typeof n[e.name]&&n.setAttribute(e.name,e.value.substring(t.handlerPrefixLength))}))}))}(r),k.updateInlineHandlers(),r.bailout?function(t){var e=new x(t),n=new A(e);e.harvestScriptsInDocument(),new I(e,{nonce:t,blocking:!0,docWriteSimulator:n,callback:function(){}}).run()}(r.nonce):(function(){var t=window;"undefined"!=typeof Promise&&(t.__cfQR={done:new Promise((function(t){return D=t}))})}(),f(r.nonce))):t("Activator script doesn't have settings. No scripts will be executed.")}else t("Can't obtain activator script. No scripts will be executed.")}()}(); |