vendor: 3,105 bytes, line 1
1(()=>{function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,c=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(o=i.call(n)).done)&&(c.push(o.value),c.length!==t);u=!0);}catch(e){l=!0,r=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return c}}(e,t)||r(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=r(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,i=function(){};return{s:i,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,c=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return c=e.done,e},e:function(e){u=!0,a=e},f:function(){try{c||null==n.return||n.return()}finally{if(u)throw a}}}}function o(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||r(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){if(e){if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function a(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,u(o.key),o)}}function c(e,t,n){return(t=u(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(t){var n=function(t,n){if("object"!=e(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var r=o.call(t,n||"default");if("object"!=e(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"==e(n)?n:String(n)}var l=function(){function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),c(this,"ACCEPTED_STATE_ATTRIBUTE","data-cookie-consent-accepted"),
1c(this,"REJECTED_STATE_ATTRIBUTE","data-cookie-consent-rejected"),c(this,"COOKIE_NAME","september-cookie"),c(this,"inited",!1),this.consentValues=[],window.dataLayer=window.dataLayer||[],this.gtag=function(){dataLayer.push(arguments)},this.gtag("consent","default",{ad_storage:"denied",ad_user_data:"denied",ad_personalization:"denied",analytics_storage:"denied"}),document.addEventListener("DOMContentLoaded",(function(){t.acceptedCookies=[],t.elCookiebar=document.querySelector('[data-role="september-cookie-consent"]'),null!=t.elCookiebar&&(t.elCookieform=t.elCookiebar.querySelector("form"),null!=t.elCookieform&&(t.cookieInputs=t.elCookieform.querySelectorAll('input[type="checkbox"][name="cookie-consent"]'),null!=t.cookieInputs&&t.init()))})),document.addEventListener("bless",(function(e){return t.applySettingsToElement(e.target)}))}var r,i,u;return r=e,(i=[{key:"init",value:function(){var e=this;if(!this.inited){this.inited=!0;var t=!1;if(this.elCookiebar.querySelector("[data-accept-all]").addEventListener("click",(function(t){e.cookieInputs.forEach((function(e){e.checked=!0}))})),this.elCookieform.addEventListener("submit",(function(n){var r,i;n.preventDefault(),e.savePreferences();var a=o(e.cookieInputs).map((function(e){return{id:e.value,accepted:e.checked}})),c=(null===(r=window.WPURLS)||void 0===r?void 0:r.ajaxurl)||(null===(i=window.WPDATA)||void 0===i?void 0:i.ajaxurl);c&&fetch(c+"?action=cookie_saveSetting",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)}).then((function(e){return e.text()})).then((function(e){console.log(e)})),e.hideElement(e.elCookiebar),t&&location.reload()})),this.getCookie())this.applySettings(),this.setCheckboxes(),t=!0;else{console.log(this.elCookiebar),this.showElement(this.elCookiebar);var r,i=n(document.querySelectorAll("\n\t\t\t\t[".concat(this.REJECTED_STATE_ATTRIBUTE,"]\n\t\t\t")));try{for(i.s();!(r=i.n()).done;){var a=r.value;this.showElement(a)}}catch(e){i.e(e)}finally{i.f()}}}}},{key:"setCheckboxes",value:function(){var e=this.getCookie(),t=this.getConsentLookup(e);this.elCookiebar.querySelectorAll('[name="cookie-consent"]').forEach((function(e){t[e.value]&&(e.checked=!0)}))}},{key:"applySettingsToElement",value:function(e){var t=this;e.addEventListener("click",(function(e){var n;if(!e.target)return null;(null===(n=e.target)||void 0===n?void 0:n.closest("[data-open-cookiebar]"))&&(e.preventDefault(),t.showElement(t.elCookiebar))}))}},{key:"savePreferences",value:function(){var e=this;this.cookieInputs.forEach((function(t){e.consentValues.push({id:t.value,accepted:t.checked})}));var t=this.elCookiebar.dataset.cookieValidity||365;this.setCookie(this.COOKIE_NAME,this.consentValues,t),this.applySettings()}},{key:"applySettings",value:function(){var e=this.getCookie();this.pushCookiesToDataLayer(e);var t,o=this.getConsentLookup(e),r=n(document.querySelectorAll("\n\t\t\t[".concat(this.ACCEPTED_STATE_ATTRIBUTE,"],\n\t\t\t[").concat(this.REJECTED_STATE_ATTRIBUTE,"]\n\t\t")));try{for(r.s();!(t=r.n()).done;){var i=t.value,a=i.getAttribute(this.ACCEPTED_STATE_ATTRIBUTE),c=i.getAttribute(this.REJECTED_STATE_ATTRIBUTE);(!0===o[a]||!1===o[c])&&this.render(i),c&&!0===o[c]&&this.hideElement(i)}}catch(e){r.e(e)}finally{r.f()}}},{key:"getConsentLookup",value:function(e){var t=e||this.getCookie(),n={};return t.forEach((function(e){n[e.id]=e.accepted})),n}},{key:"render",value:function(e){var t;if(t=e.getAttribute("src")){var n=document.createElement("script");n.type="text/javascript",n.setAttribute("src",t),e.parentElement.appendChild(n)}else if(e.hasAttribute("data-cookie-script")){var o=document.createElement("script");o.type="text/javascript";var r=e.innerHTML;o.innerHTML=r,e.parentElement.appendChild(o)}else if(e.hasAttribute("data-src"))e.setAttribute("src",e.getAttribute("data-src"));else if(!e.hasAttribute(this.REJECTED_STATE_ATTRIBUTE)){var i=e.innerHTML;e.insertAdjacentHTML("afterend",i),e.remove()}e.removeAttribute("aria-hidden"),e.removeAttribute("hidden")}},{key:"getCookie",value:function(){var e,o=n(document.cookie.split(";"));try{for(o.s();!(e=o.n()).done;){var r=e.value;r.trim();var i=t(r.split("=",2),2),a=i[0],c=i[1];if(decodeURIComponent(a.trim())===this.COOKIE_NAME)return JSON.parse(decodeURIComponent(c))}}catch(e){o.e(e)}finally{o.f()}return null}},{key:"setCookie",value:function(e,t,n){var o=new Date;o.setTime(o.getTime()+24*n*60*60*1e3);var r="expires="+o.toUTCString();t=JSON.stringify(t),document.cookie=e+"="+t+";"+r+";path=/;domain="+this.getDomain()}},{key:"getDomain",value:function(){var e=window.location.hostname.split("."),t=e.length-2;return 2===e.length?window.location.hostname:e.slice(t).join(".")}},{key:"showElement",value:function(e){e.style.display="",e.removeAttribute("aria-hidden"),e.removeAttribute("hidden")}},{key:"hideElement",value:function(e){e.style.display="none",e.setAttribute("aria-hidden","true"),e.setAttribute("hidden","true")}}
1,{key:"pushCookiesToDataLayer",value:function(e){var t=e.filter((function(e){return e.accepted})).map((function(e){return e.id}));this.gtag("consent","update",{ad_storage:t.includes("marketing")?"granted":"denied",ad_user_data:t.includes("marketing")?"granted":"denied",ad_personalization:t.includes("marketing")?"granted":"denied",analytics_storage:t.includes("analytics")?"granted":"denied"});var n=window.dataLayer=window.dataLayer||[];t.forEach((function(e){n.push({event:"cookieConsent",cookieType:e})})),n.push({event:"cookieAcceptedConsent",cookies:t}),this.acceptedCookies=t}}])&&a(r.prototype,i),u&&a(r,u),Object.defineProperty(r,"prototype",{writable:!1}),e}();window.septemberCookieConsent=new l})();
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.