/*! For license information please see axeptio.js.LICENSE.txt */(()=>{function n(){var t,o,i,r,u,h="function"==typeof Symbol?Symbol:{},a=h.iterator||"@@iterator",d=h.toStringTag||"@@toStringTag";function m(n,s,o,a){var d=s&&s.prototype instanceof c?s:c,l=Object.create(d.prototype);return e(l,"_invoke",function(e,n,s){var o,a,l,u=0,m=s||[],d=!1,c={p:0,n:0,v:i,a:h,f:h.bind(i,4),d:function(e,t){return l=e,o=0,a=i,c.n=t,r}};function h(e,n){for(o=e,a=n,t=0;!d&&u&&!l&&t<m.length;t++){var l,s=m[t],f=c.p,h=s[2];e>3?(l=h===n)&&(a=s[(o=s[4])?5:(o=3,3)],s[4]=s[5]=i):s[0]<=f&&((l=e<2&&f<s[1])?(o=0,c.v=n,c.n=s[1]):f<h&&(l=e<3||s[0]>n||n>h)&&(s[4]=e,s[5]=n,c.n=h,o=0))}if(l||e>1)return r;throw d=!0,n}return function(s,m,f){if(u>1)throw TypeError("Generator is already running");for(d&&1===m&&h(m,f),o=m,a=f;(t=o<2?i:a)||!d;){l||(o?o<3?(o>1&&(c.n=-1),h(o,a)):c.n=a:c.v=a);try{if(u=2,l){if(o||(s="next"),t=l[s]){if(!(t=t.call(l,a)))throw TypeError("iterator result is not an object");if(!t.done)return t;a=t.value,o<2&&(o=0)}else 1===o&&(t=l.return)&&t.call(l),o<2&&(a=TypeError("The iterator does not provide a '"+s+"' method"),o=1);l=i}else if((t=(d=c.n<0)?a:e.call(n,c))!==r)break}catch(e){l=i,o=1,a=e}finally{u=1}}return{value:t,done:d}}}(n,o,a),!0),l}r={};function c(){}function l(){}function s(){}t=Object.getPrototypeOf,u=[][a]?t(t([][a]())):(e(t={},a,function(){return this}),t),o=s.prototype=c.prototype=Object.create(u);function f(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,e(t,d,"GeneratorFunction")),t.prototype=Object.create(o),t}return l.prototype=s,e(o,"constructor",s),e(s,"constructor",l),l.displayName="GeneratorFunction",e(s,d,"GeneratorFunction"),e(o),e(o,d,"Generator"),e(o,a,function(){return this}),e(o,"toString",function(){return"[object Generator]"}),(n=function(){return{w:m,m:f}})()}function e(t,n,s,o){var i=Object.defineProperty;try{i({},"",{})}catch{i=0}e=function(t,n,s,o){function a(n,s){e(t,n,function(e){return this._invoke(n,s,e)})}n?i?i(t,n,{value:s,enumerable:!o,configurable:!o,writable:!o}):t[n]=s:(a("next",0),a("throw",1),a("return",2))},e(t,n,s,o)}function o(e,t,n,s,o,i,a){try{var r=e[i](a),c=r.value}catch(e){return void n(e)}r.done?t(c):Promise.resolve(c).then(s,o)}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(n=e==null?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"],n!=null){var n,o,a,r,c,i=[],s=!0,l=!1;try{if(c=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(a=c.call(n)).done)&&(i.push(a.value),i.length!==t);s=!0);}catch(e){l=!0,r=e}finally{try{if(!s&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n={}.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):0[0]}}(e,t)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function i(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,s=Array(t);n<t;n++)s[n]=e[n];return s}window.axeptioWordpressSteps=window.axeptioWordpressSteps||[],window.axeptioWordpressVendors=window.axeptioWordpressVendors||[],window.axeptioWpConsentCategories=window.axeptioWpConsentCategories||[],window.Axeptio_SDK=window.Axeptio_SDK||[],window._axcb=window._axcb||[],window.wp_consent_type="optin","function"==typeof window.wp_set_consent&&null!==(t=window.Axeptio_SDK)&&0[0]!==t&&null!==(t=t.googleConsentMode)&&0[0]!==t&&t.default&&Object.entries(window.Axeptio_SDK.googleConsentMode.default).forEach(function(e){var t=a(e,1)[0];window.wp_set_consent(t,"deny")});var t,r=new CustomEvent("wp_consent_type_defined");function s(){var e;return e=n().m(function e(t){var s,o,i,a;return n().w(function(e){for(;;)switch(e.n){case 0:return s=new TextEncoder,o=s.encode(t),e.n=1,crypto.subtle.digest("SHA-256",o);case 1:return i=e.v,a=Array.from(new Uint8Array(i)),e.a(2,a.map(function(e){return e.toString(16).padStart(2,"0")}).join(""))}},e)}),s=function(){var t=this,n=arguments;return new Promise(function(s,i){var r=e.apply(t,n);function a(e){o(r,s,i,a,c,"next",e)}function c(e){o(r,s,i,a,c,"throw",e)}a(0[0])})},s.apply(this,arguments)}document.dispatchEvent(r),window._axcb.push(function(e){function t(){return NodeFilter.FILTER_ACCEPT}e.on("ready",function(){var n=e.getCookiesConfig().identifier,s=e.config.cookies.find(function(e){return e.identifier===n}),t=s?.language||"en";e.config.cookies.forEach(function(s){if("1"===window.Axeptio_SDK.enableGoogleConsentMode){s.googleConsentMode={display:!0};var o,i,a,r=s==null||null===(o=s.steps)||0[0]===o?0[0]:o.some(function(e){return"como_v2"===e.layout});s!=null&&null!==(i=s.googleConsentMode)&&0[0]!==i&&i.display&&!r&&(a={name:"google_consent_mode_v2",layout:"como_v2",identifier:"google_consent_mode_v2_".concat(Math.random().toString(36).substring(7))},s==null||s.steps.splice(1,0,a))}s.identifier===n&&(window.axeptioWordpressVendors.forEach(function(e){if(e.step){var n=!1;if(s.steps.forEach(function(t){t.name!==e.step||"category"!==t.layout&&"info"!==t.layout||n||(n=!0,t.vendors=t.vendors||[],t.vendors.push(e))}),n)return;if(window.axeptioWordpressSteps.forEach(function(s){if(s.name===e.step&&!n){n=!0;var o,i,a=window.Axeptio_SDK["widget_title_".concat(t)]||window.Axeptio_SDK.widget_title,r=window.Axeptio_SDK["widget_subtitle_".concat(t)]||window.Axeptio_SDK.widget_subtitle,c=window.Axeptio_SDK["widget_description_".concat(t)]||window.Axeptio_SDK.widget_description;a&&(s.title=a),r&&(s.subTitle=r),c&&(s.message=c),s.image=null!==(o=window.Axeptio_SDK.image)&&0[0]!==o?o:"cookie-bienvenue",s.disablePaint=null!==(i=window.Axeptio_SDK.disablePaint)&&0[0]!==i&&i,s.vendors=s.vendors||[],s.vendors.push(e)}}),n)return;if(s.steps.forEach(function(t){"category"!==t.category||n||(n=!0,t.vendors.push(e))}),n)return;if(s.steps.forEach(function(t){"info"!==t.category||n||(n=!0,t.vendors.push(e))}),n)return;console.warn("Could not add the Axeptio Plugin Vendor to the configuration")}}),window.axeptioWordpressSteps.forEach(function(e){e.vendors&&e.vendors.length>0&&s.steps.push(e)}),document.querySelectorAll("[data-axeptio-consent]")&&document.querySelectorAll("[data-axeptio-consent]").forEach(function(t){t.addEventListener("click",function(){var n=t.getAttribute("data-axeptio-consent");e.requestConsent("wp_"+n)})}))})}),e.on("cookies:complete",function(e){var n;(function(){return s.apply(this,arguments)})((n=e,Object.keys(n).filter(function(e){return!0===n[e]}).join("_"))).then(function(e){!function(e,t,n){var s,o="";n&&(s=new Date,s.setTime(s.getTime()+24*n*60*60*1e3),o="; expires="+s.toUTCString()),document.cookie=e+"="+(t||"")+o+"; path=/"}("axeptio_cache_identifier",e,7)}),"function"==typeof window.wp_set_consent&&window.axeptioWpConsentCategories.forEach(function(t){var n="wp_consent_"+t.replace(/-/g,"_");0[0]!==e[n]&&window.wp_set_consent(t,e[n]?"allow":"deny")}),function(e){for(var n,s=[],o=document.createNodeIterator(e,NodeFilter.SHOW_COMMENT,t,!1);n=o.nextNode();)s.push(n);return s}(document.body).forEach(function(t){if(t.nodeValue.indexOf("axeptio_blocked")>-1){var s,o,i,a=t.nodeValue.match(/axeptio_blocked ([\w_-]+)/)[1],n=t.nodeValue.match(/data-axeptio-attributes="([^"]+)"/);if(!e["wp_"+a])return;if(s=t.previousElementSibling,s&&s.remove(),i=t.nodeValue.split(`
`).slice(1).join(`
`),o=document.createElement("div"),(o.innerHTML=i,n&&n[1])&&n[1].split(",").includes("forceReload"))return void window.location.reload();t.parentElement.replaceChild(o.childNodes[0],t)}})})})})()