1var e=(e,t)=>{if(!e)return null;let n=document.createElement(t);n.innerHTML=e.innerHTML;for(let t=0;t<e.attributes.length;t++){let r=e.attributes[t];r&&n.setAttribute(r.name,r.value)}return e.parentNode&&e.parentNode.replaceChild(n,e),n},t=(e,t=5e3)=>new Promise(n=>{let r=Date.now(),i=setInterval(()=>{let a=document.querySelectorAll(e),o=a.length>0,s=a.length===1;o?(clearInterval(i),n(s?a[0]??null:a)):Date.now()-r>=t&&(clearInterval(i),n(null))},100)}),n=e=>{let t=e.map(e=>new Promise(t=>{let n=setInterval(()=>{let r=window.getComputedStyle(e);r.visibility!==`hidden`&&r.display!==`none`&&r.height!==`0px`&&r.width!==`0px`&&(t(),clearInterval(n))},5)}));return Promise.all(t)},r=(...e)=>{window.dataLayer.push(e)},i=e=>e.split(`; `).reduce((e,t)=>{let[n,r]=t.split(`=`);return n&&(e[n]=r??``),e},{}),a=e=>e.split(`,`).reduce((e,t)=>{let[n,r]=t.split(`:`).map(e=>e.trim());return n&&(e[n]=r??``),e},{}),o=(e,t)=>{let n=[];return new Set([...Object.keys(e),...Object.keys(t)]).forEach(r=>{let i=e[r],a=t[r];i!==a&&n.push({category:r,oldValue:i,newValue:a})}),n},s=()=>{let e=document.cookie,t=`_cookie`,n=Object.getOwnPropertyDescriptor(Document.prototype,`cookie`);Object.defineProperty(Document.prototype,t,n||{}),Object.defineProperty(Document.prototype,"cookie",{enumerable:!0,configurable:!0,get(){return this[t]},set(n){this[t]=n;let i=this[t];if(i!==e)try{let t={oldValue:e,newValue:i};this.dispatchEvent(new CustomEvent(`cookiechange`,{detail:t})),r.postMessage(t)}finally{e=i}}});let r=new BroadcastChannel(`cookie-channel`);r.onmessage=t=>{e=t.data.newValue,document.dispatchEvent(new CustomEvent(`cookiechange`,{detail:t.data}))}},c=class{consentMapping={ad_storage:`advertisement`,ad_user_data:`advertisement`,ad_personalization:`advertisement`,analytics_storage:`analytics`,functionality_storage:`functional`,personalization_storage:`functional`,security_storage:`necessary`};constructor(){s(),this.setupDefaultGtagConsent(),this.initialPageLoad(),this.laterCookieChange()}setupDefaultGtagConsent(){window.dataLayer=window.dataLayer||[],r(`consent`,`default`,{ad_storage:`denied`,ad_user_data:`denied`,ad_personalization:`denied`,analytics_storage:`denied`,functionality_storage:`denied`,personalization_storage:`denied`,security_storage:`granted`}),r(`set`,`ads_data_redaction`,!0),r(`set`,`url_passthrough`,!0)}dataLayerWrapper(e){window.dataLayer||(window.dataLayer=window.dataLayer||[]),window.dataLayer.push(e)}updateConsentAndPush(e,t){Object.entries(e).forEach(([e,t])=>{window[`${e}_yard`]=t});let n={...e,event:`gtm_consent_update_yard`};t===!1&&(r(`set`,`ads_data_redaction`,!1),n={...n,ads_data_redaction:!1}),r(`consent`,`update`,e),this.dataLayerWrapper(n)}initialPageLoad(){let e=i(document.cookie)[`cookieyes-consent`];if(!e)return;let t=a(e);if(!t.action)return;let n=this.matchCookieYesConsentToGtag(t),r=t.advertisement!==`yes`;this.updateConsentAndPush(n,r)}laterCookieChange(){document.addEventListener(`cookiechange`,e=>{let{oldValue:t,newValue:n}=e.detail,r=i(t)[`cookieyes-consent`],s=i(n)[`cookieyes-consent`];if(!r||!s)return;let c=o(a(r),a(s));c.length>0&&(c[0]?.category.match(/^(action|consent)$/)||this.updateSpecificGtagConsent(c))})}updateSpecificGtagConsent(e){e.forEach(e=>{let t=this.matchCookieYesConsentToGtag({[e.category]:e.newValue??``}),n=e.category!==`advertisement`||e.newValue!==`yes`;this.updateConsentAndPush(t,n)})}matchCookieYesConsentToGtag(e){let t={};return Object.entries(e).forEach(([e,n])=>{Object.keys(this.consentMapping).filter(t=>this.consentMapping[t]===e).forEach(e=>{t[e]=n===`yes`?`granted`:`denied`})}),t}},l=[`input:not([inert]):not([inert] *)`,`select:not([inert]):not([inert] *)`,`textarea:not([inert]):not([inert] *)`,`a[href]:not([inert]):not([inert] *)`,`button:not([inert]):not([inert] *)`,`[tabindex]:not(slot):not([inert]):not([inert] *)`,`audio[controls]:not([inert]):not([inert] *)`,`video[controls]:not([inert]):not([inert] *)`,`[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)`,`details>summary:first-of-type:not([inert]):not([inert] *)`,`details:not([inert]):not([inert] *)`],u=l.join(`,`),d=typeof Element>`u`,f=d?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,p=!d&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)==null?void 0:t.call(e)}:function(e){return e?.ownerDocument},m=function(e,t){var n;t===void 0&&(t=!0);var r=e==null||(n=e.getAttribute)==null?void 0:n.call(e,`inert`);return r===``||r===`true`||t&&e&&(typeof e.closest==`function`?e.closest(`[inert]`):m(e.parentNode))},h=function(e){var t,n=e==null||(t=e.getAttribute)==null?void 0:t.call(e,`contenteditable`);return n===``||n===`true`},g=function(e,t,n){if(m(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(u));return t&&f.call(e,u)&&r.unshift(e),r=r.filter(n),r},_=function(e,t,n){for(var r=[],i=Array.from(e);i.length;){var a=i.shift();if(!m(a,!1)){if(a.tagName===`SLOT`){var o=a.assignedElements(),s=_(o.length?o:a.children,!0,n);
vendor: 14,893 bytes, lines 1-3
1n.flatten?r.push.apply(r,s):r.push({scopeParent:a,candidates:s})}else{f.call(a,u)&&n.filter(a)&&(t||!e.includes(a))&&r.push(a);var c=a.shadowRoot||typeof n.getShadowRoot==`function`&&n.getShadowRoot(a),l=!m(c,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(a));if(c&&l){var d=_(c===!0?a.children:c.children,!0,n);n.flatten?r.push.apply(r,d):r.push({scopeParent:a,candidates:d})}else i.unshift.apply(i,a.children)}}}return r},v=function(e){return!isNaN(parseInt(e.getAttribute(`tabindex`),10))},y=function(e){if(!e)throw Error(`No node provided`);return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||h(e))&&!v(e)?0:e.tabIndex},b=function(e,t){var n=y(e);return n<0&&t&&!v(e)?0:n},x=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},S=function(e){return e.tagName===`INPUT`},C=function(e){return S(e)&&e.type===`hidden`},w=function(e){return e.tagName===`DETAILS`&&Array.prototype.slice.apply(e.children).some(function(e){return e.tagName===`SUMMARY`})},T=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]},E=function(e){if(!e.name)return!0;var t=e.form||p(e),n=function(e){return t.querySelectorAll(`input[type="radio"][name="`+e+`"]`)},r;if(typeof window<`u`&&typeof window.CSS<`u`&&typeof window.CSS.escape==`function`)r=n(window.CSS.escape(e.name));else try{r=n(e.name)}catch(e){return console.error(`Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s`,e.message),!1}var i=T(r,e.form);return!i||i===e},D=function(e){return S(e)&&e.type===`radio`},ee=function(e){return D(e)&&!E(e)},te=function(e){var t=e&&p(e),n=t?.host,r=!1;if(t&&t!==e){var i,a,o;for(r=!!((i=n)!=null&&(a=i.ownerDocument)!=null&&a.contains(n)||e!=null&&(o=e.ownerDocument)!=null&&o.contains(e));!r&&n;){var s,c;t=p(n),n=t?.host,r=!!((s=n)!=null&&(c=s.ownerDocument)!=null&&c.contains(n))}}return r},ne=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return n===0&&r===0},re=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if(n===`full-native`&&`checkVisibility`in e)return!e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});if(getComputedStyle(e).visibility===`hidden`)return!0;var i=f.call(e,`details>summary:first-of-type`)?e.parentElement:e;if(f.call(i,`details:not([open]) *`))return!0;if(!n||n===`full`||n===`full-native`||n===`legacy-full`){if(typeof r==`function`){for(var a=e;e;){var o=e.parentElement,s=p(e);if(o&&!o.shadowRoot&&r(o)===!0)return ne(e);e=e.assignedSlot?e.assignedSlot:!o&&s!==e.ownerDocument?s.host:o}e=a}if(te(e))return!e.getClientRects().length;if(n!==`legacy-full`)return!0}else if(n===`non-zero-area`)return ne(e);return!1},ie=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName===`FIELDSET`&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if(r.tagName===`LEGEND`)return f.call(t,`fieldset[disabled] *`)?!0:!r.contains(e)}return!0}t=t.parentElement}return!1},ae=function(e,t){return!(t.disabled||C(t)||re(t,e)||w(t)||ie(t))},oe=function(e,t){return!(ee(t)||y(t)<0||!ae(e,t))},se=function(e){var t=parseInt(e.getAttribute(`tabindex`),10);return!!(isNaN(t)||t>=0)},ce=function(e){var t=[],n=[];return e.forEach(function(e,r){var i=!!e.scopeParent,a=i?e.scopeParent:e,o=b(a,i),s=i?ce(e.candidates):a;o===0?i?t.push.apply(t,s):t.push(a):n.push({documentOrder:r,tabIndex:o,item:e,isScope:i,content:s})}),n.sort(x).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(t)},le=function(e,t){return t||={},ce(t.getShadowRoot?_([e],t.includeContainer,{filter:oe.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:se}):g(e,t.includeContainer,oe.bind(null,t)))},ue=function(e,t){return t||={},t.getShadowRoot?_([e],t.includeContainer,{filter:ae.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):g(e,t.includeContainer,ae.bind(null,t))},O=function(e,t){if(t||={},!e)throw Error(`No node provided`);return f.call(e,u)!==!1&&oe(t,e)},de=l.concat(`iframe:not([inert]):not([inert] *)`).join(`,`),fe=function(e,t){if(t||={},!e)throw Error(`No node provided`);return f.call(e,de)!==!1&&ae(t,e)};function pe(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function me(e){if(Array.isArray(e))return pe(e)}function he(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(!n){if(Array.isArray(e)||(n=we(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError(`Invalid attempt to iterate non-iterable instance. 2In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw a}}}}function ge(e,t,n){return(t=Ce(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _e(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function ve(){throw TypeError(`Invalid attempt to spread non-iterable instance. 3In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ye(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function be(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?ye(Object(n),!0).forEach(function(t){ge(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ye(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function xe(e){return me(e)||_e(e)||we(e)||ve()}function Se(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Ce(e){var t=Se(e,`string`);return typeof t==`symbol`?t:t+``}function we(e,t){if(e){if(typeof e==`string`)return pe(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pe(e,t):void 0}}var k={getActiveTrap:function(e){return e?.length>0?e[e.length-1]:null},activateTrap:function(e,t){t!==k.getActiveTrap(e)&&k.pauseTrap(e);var n=e.indexOf(t);n===-1||e.splice(n,1),e.push(t)},deactivateTrap:function(e,t){var n=e.indexOf(t);n!==-1&&e.splice(n,1),k.unpauseTrap(e)},pauseTrap:function(e){k.getActiveTrap(e)?._setPausedState(!0)},unpauseTrap:function(e){var t=k.getActiveTrap(e);t&&!t._isManuallyPaused()&&t._setPausedState(!1)}},Te=function(e){return e.tagName&&e.tagName.toLowerCase()===`input`&&typeof e.select==`function`},Ee=function(e){return e?.key===`Escape`||e?.key===`Esc`||e?.keyCode===27},A=function(e){return e?.key===`Tab`||e?.keyCode===9},De=function(e){return A(e)&&!e.shiftKey},Oe=function(e){return A(e)&&e.shiftKey},ke=function(e){return setTimeout(e,0)},j=function(e){var t=[...arguments].slice(1);return typeof e==`function`?e.apply(void 0,t):e},Ae=function(e){return e.target.shadowRoot&&typeof e.composedPath==`function`?e.composedPath()[0]:e.target},je=[],Me=function(e,t){var n=t?.document||document,r=t?.trapStack||je,i=be({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isolateSubtrees:!1,isKeyForward:De,isKeyBackward:Oe},t),a={containers:[],containerGroups:[],tabbableGroups:[],adjacentElements:new Set,alreadySilent:new Set,nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},o,s=function(e,t,n){return e&&e[t]!==void 0?e[t]:i[n||t]},c=function(e,t){var n=typeof t?.composedPath==`function`?t.composedPath():void 0;return a.containerGroups.findIndex(function(t){var r=t.container,i=t.tabbableNodes;return r.contains(e)||n?.includes(r)||i.find(function(t){return t===e})})},l=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.hasFallback,a=r!==void 0&&r,o=t.params,s=o===void 0?[]:o,c=i[e];if(typeof c==`function`&&(c=c.apply(void 0,xe(s))),c===!0&&(c=void 0),!c){if(c===void 0||c===!1)return c;throw Error(`\`${e}\` was specified but was not a node, or did not return a node`)}var l=c;if(typeof c==`string`){try{l=n.querySelector(c)}catch(t){throw Error(`\`${e}\` appears to be an invalid selector; error="${t.message}"`)}if(!l&&!a)throw Error(`\`${e}\` as selector refers to no known node`)}return l},u=function(){var e=l(`initialFocus`,{hasFallback:!0});if(e===!1)return!1;if(e===void 0||e&&!fe(e,i.tabbableOptions)){if(c(n.activeElement)>=0)e=n.activeElement;else{var t=a.tabbableGroups[0];e=t&&t.firstTabbableNode||l(`fallbackFocus`)}}else e===null&&(e=l(`fallbackFocus`));if(!e)throw Error(`Your focus-trap needs to have at least one focusable element`);return e},d=function(){if(a.containerGroups=a.containers.map(function(e){var t=le(e,i.tabbableOptions),n=ue(e,i.tabbableOptions),r=t.length>0?t[0]:void 0,a=t.length>0?t[t.length-1]:void 0,o=n.find(function(e){return O(e)}),s=n.slice().reverse().find(function(e){return O(e)});return{container:e,tabbableNodes:t,focusableNodes:n,posTabIndexesFound:!!t.find(function(e){return y(e)>0}),firstTabbableNode:r,lastTabbableNode:a,firstDomTabbableNode:o,lastDomTabbableNode:s,nextTabbableNode:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,i=t.indexOf(e);return i<0?r?n.slice(n.indexOf(e)+1).find(function(e){return O(e)}):n.slice(0,n.indexOf(e)).reverse().find(function(e){return O(e)}):t[i+(r?1:-1)]}}}),a.tabbableGroups=a.containerGroups.filter(function(e){return e.tabbableNodes.length>0}),a.tabbableGroups.length<=0&&!l(`fallbackFocus`))throw Error(`Your focus-trap must have at least one container with at least one tabbable node in it at all times`);if(a.containerGroups.find(function(e){return e.posTabIndexesFound})&&a.containerGroups.length>1)throw Error(`At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.`)},f=function(e){var t=e.activeElement;if(t)return t.shadowRoot&&t.shadowRoot.activeElement!==null?f(t.shadowRoot):t},p=function(e){if(e!==!1&&e!==f(document)){if(!e||!e.focus){p(u());return}e.focus({preventScroll:!!i.preventScroll}),a.mostRecentlyFocusedNode=e,Te(e)&&e.select()}},m=function(e){var t=l(`setReturnFocus`,{params:[e]});return t||t!==!1&&e},h=function(e){var t=e.target,n=e.event,r=e.isBackward,o=r!==void 0&&r;t||=Ae(n),d();var s=null;if(a.tabbableGroups.length>0){var u=c(t,n),f=u>=0?a.containerGroups[u]:void 0;if(u<0)s=o?a.tabbableGroups[a.tabbableGroups.length-1].lastTabbableNode:a.tabbableGroups[0].firstTabbableNode;else if(o){var p=a.tabbableGroups.findIndex(function(e){var n=e.firstTabbableNode;return t===n});if(p<0&&(f.container===t||fe(t,i.tabbableOptions)&&!O(t,i.tabbableOptions)&&!f.nextTabbableNode(t,!1))&&(p=u),p>=0){var m=p===0?a.tabbableGroups.length-1:p-1,h=a.tabbableGroups[m];s=y(t)>=0?h.lastTabbableNode:h.lastDomTabbableNode}else A(n)||(s=f.nextTabbableNode(t,!1))}else{var g=a.tabbableGroups.findIndex(function(e){var n=e.lastTabbableNode;return t===n});if(g<0&&(f.container===t||fe(t,i.tabbableOptions)&&!O(t,i.tabbableOptions)&&!f.nextTabbableNode(t))&&(g=u),g>=0){var _=g===a.tabbableGroups.length-1?0:g+1,v=a.tabbableGroups[_];s=y(t)>=0?v.firstTabbableNode:v.firstDomTabbableNode}else A(n)||(s=f.nextTabbableNode(t))}}else s=l(`fallbackFocus`);return s},g=function(e){if(!(c(Ae(e),e)>=0)){if(j(i.clickOutsideDeactivates,e)){o.deactivate({returnFocus:i.returnFocusOnDeactivate});return}j(i.allowOutsideClick,e)||e.preventDefault()}},_=function(e){var t=Ae(e),n=c(t,e)>=0;if(n||t instanceof Document)n&&(a.mostRecentlyFocusedNode=t);else{e.stopImmediatePropagation();var r,o=!0;if(a.mostRecentlyFocusedNode){if(y(a.mostRecentlyFocusedNode)>0){var s=c(a.mostRecentlyFocusedNode),l=a.containerGroups[s].tabbableNodes;if(l.length>0){var d=l.findIndex(function(e){return e===a.mostRecentlyFocusedNode});d>=0&&(i.isKeyForward(a.recentNavEvent)?d+1<l.length&&(r=l[d+1],o=!1):d-1>=0&&(r=l[d-1],o=!1))}}else a.containerGroups.some(function(e){return e.tabbableNodes.some(function(e){return y(e)>0})})||(o=!1)}else o=!1;o&&(r=h({target:a.mostRecentlyFocusedNode,isBackward:i.isKeyBackward(a.recentNavEvent)})),p(r||a.mostRecentlyFocusedNode||u())}a.recentNavEvent=void 0},v=function(e){var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1];a.recentNavEvent=e;var n=h({event:e,isBackward:t});n&&(A(e)&&e.preventDefault(),p(n))},b=function(e){(i.isKeyForward(e)||i.isKeyBackward(e))&&v(e,i.isKeyBackward(e))},x=function(e){Ee(e)&&j(i.escapeDeactivates,e)!==!1&&(e.preventDefault(),o.deactivate())},S=function(e){c(Ae(e),e)>=0||j(i.clickOutsideDeactivates,e)||j(i.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},C=function(){if(a.active)return k.activateTrap(r,o),a.delayInitialFocusTimer=i.delayInitialFocus?ke(function(){p(u())}):p(u()),n.addEventListener(`focusin`,_,!0),n.addEventListener(`mousedown`,g,{capture:!0,passive:!1}),n.addEventListener(`touchstart`,g,{capture:!0,passive:!1}),n.addEventListener(`click`,S,{capture:!0,passive:!1}),n.addEventListener(`keydown`,b,{capture:!0,passive:!1}),n.addEventListener(`keydown`,x),o},w=function(e){a.active&&!a.paused&&o._setSubtreeIsolation(!1),a.adjacentElements.clear(),a.alreadySilent.clear();var t=new Set,n=new Set,r=he(e),i;try{for(r.s();!(i=r.n()).done;){var s=i.value;t.add(s);for(var c=typeof ShadowRoot<`u`&&s.getRootNode()instanceof ShadowRoot,l=s;l;){t.add(l);var u=l.parentElement,d=[];u?d=u.children:!u&&c&&(d=l.getRootNode().children,u=l.getRootNode().host,c=typeof ShadowRoot<`u`&&u.getRootNode()instanceof ShadowRoot);var f=he(d),p;try{for(f.s();!(p=f.n()).done;){var m=p.value;n.add(m)}}catch(e){f.e(e)}finally{f.f()}l=u}}}catch(e){r.e(e)}finally{r.f()}t.forEach(function(e){n.delete(e)}),a.adjacentElements=n},T=function(){if(a.active)return n.removeEventListener(`focusin`,_,!0),n.removeEventListener(`mousedown`,g,!0),n.removeEventListener(`touchstart`,g,!0),n.removeEventListener(`click`,S,!0),n.removeEventListener(`keydown`,b,!0),n.removeEventListener(`keydown`,x),o},E=typeof window<`u`&&`MutationObserver`in window?new MutationObserver(function(e){e.some(function(e){return Array.from(e.removedNodes).some(function(e){return e===a.mostRecentlyFocusedNode})})&&p(u())}
3):void 0,D=function(){E&&(E.disconnect(),a.active&&!a.paused&&a.containers.map(function(e){E.observe(e,{subtree:!0,childList:!0})}))};return o={get active(){return a.active},get paused(){return a.paused},activate:function(e){if(a.active)return this;var t=s(e,`onActivate`),c=s(e,`onPostActivate`),l=s(e,`checkCanFocusTrap`),u=k.getActiveTrap(r),p=!1;if(u&&!u.paused){var m;(m=u._setSubtreeIsolation)==null||m.call(u,!1),p=!0}try{l||d(),a.active=!0,a.paused=!1,a.nodeFocusedBeforeActivation=f(n),t?.();var h=function(){l&&d(),C(),D(),i.isolateSubtrees&&o._setSubtreeIsolation(!0),c?.()};if(l)return l(a.containers.concat()).then(h,h),this;h()}catch(e){if(u===k.getActiveTrap(r)&&p){var g;(g=u._setSubtreeIsolation)==null||g.call(u,!0)}throw e}return this},deactivate:function(e){if(!a.active)return this;var t=be({onDeactivate:i.onDeactivate,onPostDeactivate:i.onPostDeactivate,checkCanReturnFocus:i.checkCanReturnFocus},e);clearTimeout(a.delayInitialFocusTimer),a.delayInitialFocusTimer=void 0,a.paused||o._setSubtreeIsolation(!1),a.alreadySilent.clear(),T(),a.active=!1,a.paused=!1,D(),k.deactivateTrap(r,o);var n=s(t,`onDeactivate`),c=s(t,`onPostDeactivate`),l=s(t,`checkCanReturnFocus`),u=s(t,`returnFocus`,`returnFocusOnDeactivate`);n?.();var d=function(){ke(function(){u&&p(m(a.nodeFocusedBeforeActivation)),c?.()})};return u&&l?(l(m(a.nodeFocusedBeforeActivation)).then(d,d),this):(d(),this)},pause:function(e){return a.active?(a.manuallyPaused=!0,this._setPausedState(!0,e)):this},unpause:function(e){return a.active?(a.manuallyPaused=!1,r[r.length-1]===this?this._setPausedState(!1,e):this):this},updateContainerElements:function(e){return a.containers=[].concat(e).filter(
3Boolean).map(function(e){return typeof e==`string`?n.querySelector(e):e}),i.isolateSubtrees&&w(a.containers),a.active&&(d(),i.isolateSubtrees&&!a.paused&&o._setSubtreeIsolation(!0)),D(),this}},Object.defineProperties(o,{_isManuallyPaused:{value:function(){return a.manuallyPaused}},_setPausedState:{value:function(e,t){if(a.paused===e)return this;if(a.paused=e,e){var n=s(t,`onPause`),r=s(t,`onPostPause`);n?.(),T(),D(),o._setSubtreeIsolation(!1),r?.()}else{var i=s(t,`onUnpause`),c=s(t,`onPostUnpause`);i?.(),o._setSubtreeIsolation(!0),d(),C(),D(),c?.()}return this}},_setSubtreeIsolation:{value:function(e){i.isolateSubtrees&&a.adjacentElements.forEach(function(t){e?i.isolateSubtrees===`aria-hidden`?((t.ariaHidden===`true`||t.getAttribute(`aria-hidden`)?.toLowerCase()===`true`)&&a.alreadySilent.add(t),t.setAttribute(`aria-hidden`,`true`)):((t.inert||t.hasAttribute(`inert`))&&a.alreadySilent.add(t),t.setAttribute(`inert`,!0)):a.alreadySilent.has(t)||(i.isolateSubtrees===`aria-hidden`?t.removeAttribute(`aria-hidden`):t.removeAttribute(`inert`))})}}}),o.updateContainerElements(e),o},Ne=class r{static instance=new r;options={googleConsentMode:!1};REVISIT_BTN_WRAPPER_CSS=`.cky-btn-revisit-wrapper`;EMBED_BLOCKER_NEW_CLASS_CSS=`.cky-banner-element`;EMBED_BLOCKER_BUTTON_CSS=`[data-cky-tag="placeholder-title"]`;COOKIE_YES_HIDDEN_CSS=`.cky-hide`;BANNER_TITLE_ID=`yard-cky-title`;BANNER_TITLE_CSS=`.cky-title`;BANNER_BTN_CLOSE_CSS=`.cky-banner-btn-close`;MODAL_OPEN_CSS=`.cky-modal-open`;MODAL_BTN_CLOSE_CSS=`.cky-modal .cky-btn-close`;MODAL_BTN_CLOSE_ARIA_LABEL=`Sluit`;MODAL_CONTENT_WRAPPER_CLASS=`.cky-preference-content-wrapper`;MODAL_CONTENT_ID=`a11y-cookie-yes-description-content`;MODAL_CONTENT_TOGGLE_BUTTON_CLASSES=`.cky-show-desc-btn, .cky-hide-desc-btn`;MODAL_TITLE_ID=`yard-cky-modal-title`;MODAL_TITLE_CSS=`.cky-preference-title`;MODAL_ACCORDION_CSS=`.cky-accordion`;MODAL_ACCORDION_BTN_CSS=`.cky-accordion-btn`;MODAL_ACCORDION_OPEN_CSS=`.cky-accordion-active`;MODAL_CHECKBOXES_CSS=`.cky-switch input[type="checkbox"]`;COOKIE_BANNER_CSS=`.cky-consent-container`;COOKIE_MODAL_CSS=`.cky-modal`;cookieModal;cookieBanner;focusTrapBanner;focusTrapModal;focusTrapBannerOptions;focusTrapModalOptions;focusTrapOptions={allowOutsideClick:!0,clickOutsideDeactivates:!0,checkCanFocusTrap:n};constructor(e){return r.instance?r.instance.options={...r.instance.options,...e}:(r.instance=this,this.options={...this.options,...e},this.init()),r.instance}static getInstance(){return r.instance||new r}async init(){return this.cookieBanner=await t(this.COOKIE_BANNER_CSS),this.cookieModal=await t(this.COOKIE_MODAL_CSS),this.options.googleConsentMode===!0&&new c,!this.cookieBanner||!this.cookieModal?!1:(this.initFocusTrapOptions(),this.focusTrapBanner=Me(this.cookieBanner,this.focusTrapBannerOptions),this.focusTrapModal=Me(this.cookieModal,this.focusTrapModalOptions),this.moveRevisitButtonToFooter(),this.emptyRevisitButtonAltText(),this.observeBanner(),this.changeBanner(),this.changeBannerTitleToH2(),this.closeBannerOnEscapeKey(),this.observeModal(),this.changeModal(),this.observeShowMoreLessDescription(),this.observeAccordions(),this.changeModalTitleToH2(),this.changeModalCloseBtnAriaLabel(),this.changeModelButtonsToH3(),this.addCheckboxRoleSwitch(),this.changeCheckboxAriaLabel(),this.changeEmbedText(),this)}closeCookieYes=e=>{let t=document.querySelector(e);!t||t.closest(this.COOKIE_YES_HIDDEN_CSS)||t.click()};initFocusTrapOptions(){this.focusTrapBannerOptions={...this.focusTrapOptions,onDeactivate:()=>this.closeCookieYes(this.BANNER_BTN_CLOSE_CSS)},this.focusTrapModalOptions={...this.focusTrapOptions,onDeactivate:()=>this.closeCookieYes(this.MODAL_BTN_CLOSE_CSS)}}moveRevisitButtonToFooter(){let e=document.querySelector(this.REVISIT_BTN_WRAPPER_CSS),t=document.querySelector(`footer`);e&&t&&t.appendChild(e)}emptyRevisitButtonAltText(){let e=document.querySelector(this.REVISIT_BTN_WRAPPER_CSS)?.querySelector(`img`);e&&e.setAttribute(`alt`,``)}observeBanner(){if(this.cookieBanner?.classList.contains(this.COOKIE_YES_HIDDEN_CSS.substring(1))){this.focusTrapBanner?.deactivate();return}this.focusTrapBanner?.activate(),new MutationObserver(e=>
3{e.forEach(e=>{let t=e.target.classList.contains(this.COOKIE_YES_HIDDEN_CSS.substring(1));e.attributeName===`class`&&t?this.focusTrapBanner?.deactivate():this.focusTrapBanner?.activate()})}).observe(this.cookieBanner,{attributes:!0})}changeBanner(){this.cookieBanner?.setAttribute(`role`,`dialog`),this.cookieBanner?.setAttribute(`aria-labelledby`,this.BANNER_TITLE_ID)}changeBannerTitleToH2(){let t=document.querySelector(this.BANNER_TITLE_CSS);if(!t)return;let n=e(t,`h2`);n.hasAttribute(`role`)&&n.removeAttribute(`role`),n.hasAttribute(`aria-level`)&&n.removeAttribute(`aria-level`),n.id=this.BANNER_TITLE_ID}closeBannerOnEscapeKey(){this.cookieBanner&&this.cookieBanner.addEventListener(`keydown`,e=>{if(e.key===`Escape`||e.key===`Esc`){if(!this.cookieBanner)return;this.cookieBanner.classList.add(this.COOKIE_YES_HIDDEN_CSS.substring(1)),this.focusTrapBanner?.deactivate(),this.closeCookieYes(this.BANNER_BTN_CLOSE_CSS)}})}observeModal(){this.cookieModal&&new MutationObserver(e=>{e.forEach(e=>{let t=e.target;e.attributeName===`class`&&(e.attributeName===`class`&&t.classList.contains(this.MODAL_OPEN_CSS.substring(1))&&setTimeout(()=>{this.focusTrapModal.activate()},200),e.attributeName===`class`&&!t.classList.contains(this.MODAL_OPEN_CSS.substring(1))&&this.focusTrapModal?.deactivate())})}).observe(this.cookieModal,{attributes:!0})}changeModal(){this.cookieModal?.setAttribute(`role`,`dialog`),this.cookieModal?.setAttribute(`aria-labelledby`,this.MODAL_TITLE_ID)}observeShowMoreLessDescription(){let e=document.querySelector(this.MODAL_CONTENT_WRAPPER_CLASS);if(!e)return;e.id||=this.MODAL_CONTENT_ID;let t=()=>{let t=e.querySelector(this.MODAL_CONTENT_TOGGLE_BUTTON_CLASSES);t&&t.setAttribute(`aria-controls`,e.id)};t(),new MutationObserver(t).observe(e,{childList:!0,subtree:!0})}observeAccordions(){document.querySelectorAll(this.MODAL_ACCORDION_CSS)?.forEach(e=>{let t=e.querySelector(this.MODAL_ACCORDION_BTN_CSS);t?.setAttribute(`aria-expanded`,`false`),new MutationObserver(n=>{n.forEach(n=>{let r=e?.classList.contains(this.MODAL_ACCORDION_OPEN_CSS.substring(1)).toString();n.type===`attributes`&&t?.setAttribute(`aria-expanded`,r)})}).observe(e,{attributes:!0})})}changeModalTitleToH2(){let t=document.querySelector(this.MODAL_TITLE_CSS);if(!t)return;let n=e(t,`h2`);n.hasAttribute(`role`)&&n.removeAttribute(`role`),n.hasAttribute(`aria-level`)&&n.removeAttribute(`aria-level`),n.id=this.MODAL_TITLE_ID}changeModalCloseBtnAriaLabel(){let e=document.querySelector(this.MODAL_BTN_CLOSE_CSS);e&&e.setAttribute(`aria-label`,this.MODAL_BTN_CLOSE_ARIA_LABEL)}changeModelButtonsToH3(){document.querySelectorAll(this.MODAL_ACCORDION_BTN_CSS)?.forEach(e=>{if(!e.parentElement)return;let t=document.createElement(`h3`);t.classList.add(`cky-preference-title`),e.parentElement.insertBefore(t,e),t.appendChild(e)})}addCheckboxRoleSwitch(){document.querySelectorAll(this.MODAL_CHECKBOXES_CSS)?.forEach(e=>{e.hasAttribute(`role`)&&e.removeAttribute(`role`),e.setAttribute(`role`,`switch`)})}changeCheckboxAriaLabel(){document.querySelectorAll(this.MODAL_ACCORDION_CSS)?.forEach(e=>{let t=e.querySelector(this.MODAL_ACCORDION_BTN_CSS),n=e.querySelector(this.MODAL_CHECKBOXES_CSS);!t||!n||(this.syncAriaLabel(t,n),n.addEventListener(`change`,()=>{this.syncAriaLabel(t,n)}))})}syncAriaLabel(e,t){let n=e.getAttribute(`aria-label`)||e.textContent?.trim()||`Categorie`,r=t.checked?`${n} ingeschakeld, zet ${n.toLowerCase()} uit`:`${n} uitgeschakeld, zet ${n.toLowerCase()} aan`;t.setAttribute(`aria-label`,r)}changeEmbedText(){document.querySelectorAll(this.EMBED_BLOCKER_BUTTON_CSS)?.forEach(t=>{let n=e(t,`button`);n&&n.classList.add(this.EMBED_BLOCKER_NEW_CLASS_CSS.substring(1))})}};function Pe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)r!==`__proto__`&&(e[r]=n[r])}return e}var Fe={read:function(e){return e[0]===`"`&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function Ie(e,t){function n(n,r,i){if(!(typeof document>`u`)){i=Pe({},t,i),typeof i.expires==`number`&&(i.expires=new Date(Date.now()+i.expires*864e5)),i.expires&&(i.expires=i.expires.toUTCString()),n=encodeURIComponent(n).replace(/%(2[346B]|5E|60|7C)/g,decode
3URIComponent).replace(/[()]/g,escape);var a=``;for(var o in i)i[o]&&(a+=`; `+o,i[o]!==!0&&(a+=`=`+i[o].split(`;`)[0]));return document.cookie=n+`=`+e.write(r,n)+a}}function r(t){if(!(typeof document>`u`||arguments.length&&!t)){for(var n=document.cookie?document.cookie.split(`; `):[],r={},i=0;i<n.length;i++){var a=n[i].split(`=`),o=a.slice(1).join(`=`);try{var s=decodeURIComponent(a[0]);if(s in r||(r[s]=e.read(o,s)),t===s)break}catch{}}return t?r[t]:r}}return Object.create({set:n,get:r,remove:function(e,t){n(e,``,Pe({},t,{expires:-1}))},withAttributes:function(e){return Ie(this.converter,Pe({},this.attributes,e))},withConverter:function(e){return Ie(Pe({},this.converter,e),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var M=Ie(Fe,{path:`/`}),N={CONTRAST:`a11y-toolbar-contrast`,TEXT_SIZE:`a11y-toolbar-text-size`,OPEN_DYSLEXIC:`a11y-toolbar-open-dyslexic`},P=(e,t,n,r)=>{let i=document.createElement(`button`);if(i.id=`js-a11y-toolbar-`+e,i.classList.add(`a11y-toolbar__button`),i.classList.add(`a11y-toolbar__button--${e}`),i.setAttribute(`aria-label`,t),i.setAttribute(`title`,t),n!==void 0&&n!==``){let e=Le(n);i.appendChild(e)}if(r!==void 0&&r!==``){let e=Be(r);i.appendChild(e)}else i.setAttribute(`aria-label`,t);return i},Le=e=>e.startsWith(`<svg`)?ze(e):Re(e),Re=e=>{let t=document.createElement(`i`);return t.classList.add(`a11y-toolbar__icon`),t.classList.add(...e.split(` `)),t.setAttribute(`aria-hidden`,`true`),t},ze=e=>{let t=document.createElement(`span`);return t.classList.add(`a11y-toolbar__icon`),t.classList.add(`a11y-toolbar__icon--svg`),t.innerHTML=e,t.setAttribute(`aria-hidden`,`true`),t},Be=e=>{let t=document.createElement(`span`);return t.textContent=e,t.classList.add(`a11y-toolbar__button-text-after`),t},Ve=(e,t)=>{let n=`a11y-toolbar--contrast`,r,i,a,o,s=()=>{if(!t||!t.showContrastButton)return;r=t.iconOptions?.contrastIcon||``,i=t.textAfterOptions?.contrastTextAfter||``,a=t.labelOptions?.contrastIncreaseLabel||``,o=t.labelOptions?.contrastDecreaseLabel||``;let n=P(`contrast`,a,r,i);e.appendChild(n),c(),l(n),u(n)},c=()=>{d()&&!document.body.classList.contains(n)&&document.body.classList.toggle(n)},l=e=>{let t=d();f(e,t)},u=e=>{e.addEventListener(`click`,()=>{let t=!d();M.set(N.CONTRAST,t.toString(),{expires:90}),f(e,t),document.body.classList.toggle(n)})},d=()=>M.get(N.CONTRAST)===`true`,f=(e,t)=>{e.setAttribute(`aria-pressed`,t.toString()),e.setAttribute(`aria-label`,t?o:a),e.setAttribute(`title`,t?o:a)};s()},He=(e,t)=>{(()=>{if(!t)return;let n=typeof t.customButton==`function`?t.customButton():null;n&&e.appendChild(n)})()}
3,Ue=[`input:not([inert]):not([inert] *)`,`select:not([inert]):not([inert] *)`,`textarea:not([inert]):not([inert] *)`,`a[href]:not([inert]):not([inert] *)`,`area[href]:not([inert]):not([inert] *)`,`button:not([inert]):not([inert] *)`,`[tabindex]:not(slot):not([inert]):not([inert] *)`,`audio[controls]:not([inert]):not([inert] *)`,`video[controls]:not([inert]):not([inert] *)`,`[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)`,`details>summary:first-of-type:not([inert]):not([inert] *)`,`details:not([inert]):not([inert] *)`],We=Ue.join(`,`),Ge=typeof Element>`u`,F=Ge?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Ke=!Ge&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)==null?void 0:t.call(e)}:function(e){return e?.ownerDocument},qe=function(e,t){var n;t===void 0&&(t=!0);var r=e==null||(n=e.getAttribute)==null?void 0:n.call(e,`inert`);return r===``||r===`true`||t&&e&&(typeof e.closest==`function`?e.closest(`[inert]`):qe(e.parentNode))},Je=function(e){var t,n=e==null||(t=e.getAttribute)==null?void 0:t.call(e,`contenteditable`);return n===``||n===`true`},Ye=function(e,t,n){if(qe(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(We));return t&&F.call(e,We)&&r.unshift(e),r=r.filter(n),r},Xe=function(e,t,n){for(var r=[],i=Array.from(e);i.length;){var a=i.shift();if(!qe(a,!1)){if(a.tagName===`SLOT`){var o=a.assignedElements(),s=Xe(o.length?o:a.children,!0,n);
vendor: 4,592 bytes, line 3
3n.flatten?r.push.apply(r,s):r.push({scopeParent:a,candidates:s})}else{F.call(a,We)&&n.filter(a)&&(t||!e.includes(a))&&r.push(a);var c=a.shadowRoot||typeof n.getShadowRoot==`function`&&n.getShadowRoot(a),l=!qe(c,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(a));if(c&&l){var u=Xe(c===!0?a.children:c.children,!0,n);n.flatten?r.push.apply(r,u):r.push({scopeParent:a,candidates:u})}else i.unshift.apply(i,a.children)}}}return r},Ze=function(e){return!isNaN(parseInt(e.getAttribute(`tabindex`),10))},I=function(e){if(!e)throw Error(`No node provided`);return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||Je(e))&&!Ze(e)?0:e.tabIndex},Qe=function(e,t){var n=I(e);return n<0&&t&&!Ze(e)?0:n},$e=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},et=function(e){return e.tagName===`INPUT`},tt=function(e){return et(e)&&e.type===`hidden`},nt=function(e){return e.tagName===`DETAILS`&&Array.prototype.slice.apply(e.children).some(function(e){return e.tagName===`SUMMARY`})},rt=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]},it=function(e){if(!e.name)return!0;var t=e.form||Ke(e),n=function(e){return t.querySelectorAll(`input[type="radio"][name="`+e+`"]`)},r;if(typeof window<`u`&&typeof window.CSS<`u`&&typeof window.CSS.escape==`function`)r=n(window.CSS.escape(e.name));else try{r=n(e.name)}catch(e){return console.error(`Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s`,e.message),!1}var i=rt(r,e.form);return!i||i===e},at=function(e){return et(e)&&e.type===`radio`},ot=function(e){return at(e)&&!it(e)},st=function(e){var t=e&&Ke(e),n=t?.host,r=!1;if(t&&t!==e){var i,a,o;for(r=!!((i=n)!=null&&(a=i.ownerDocument)!=null&&a.contains(n)||e!=null&&(o=e.ownerDocument)!=null&&o.contains(e));!r&&n;){var s,c;t=Ke(n),n=t?.host,r=!!((s=n)!=null&&(c=s.ownerDocument)!=null&&c.contains(n))}}return r},ct=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return n===0&&r===0},lt=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if(n===`full-native`&&`checkVisibility`in e)return!e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});var i=getComputedStyle(e).visibility;if(i===`hidden`||i===`collapse`)return!0;var a=F.call(e,`details>summary:first-of-type`)?e.parentElement:e;if(F.call(a,`details:not([open]) *`))return!0;if(!n||n===`full`||n===`full-native`||n===`legacy-full`){if(typeof r==`function`){for(var o=e;e;){var s=e.parentElement,c=Ke(e);if(s&&!s.shadowRoot&&r(s)===!0)return ct(e);e=e.assignedSlot?e.assignedSlot:!s&&c!==e.ownerDocument?c.host:s}e=o}if(st(e))return!e.getClientRects().length;if(n!==`legacy-full`)return!0}else if(n===`non-zero-area`)return ct(e);return!1},ut=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName===`FIELDSET`&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if(r.tagName===`LEGEND`)return F.call(t,`fieldset[disabled] *`)?!0:!r.contains(e)}return!0}t=t.parentElement}return!1},dt=function(e,t){return!(t.disabled||tt(t)||lt(t,e)||nt(t)||ut(t))},ft=function(e,t){return!(ot(t)||I(t)<0||!dt(e,t))},pt=function(e){var t=parseInt(e.getAttribute(`tabindex`),10);return!!(isNaN(t)||t>=0)},mt=function(e){var t=[],n=[];return e.forEach(function(e,r){var i=!!e.scopeParent,a=i?e.scopeParent:e,o=Qe(a,i),s=i?mt(e.candidates):a;o===0?i?t.push.apply(t,s):t.push(a):n.push({documentOrder:r,tabIndex:o,item:e,isScope:i,content:s})}),n.sort($e).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(t)},ht=function(e,t){return t||={},mt(t.getShadowRoot?Xe([e],t.includeContainer,{filter:ft.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:pt}):Ye(e,t.includeContainer,ft.bind(null,t)))},gt=function(e,t){return t||={},t.getShadowRoot?Xe([e],t.includeContainer,{filter:dt.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):Ye(e,t.includeContainer,dt.bind(null,t))},L=function(e,t){if(t||={},!e)throw Error(`No node provided`);return F.call(e,We)!==!1&&ft(t,e)},_t=Ue.concat(`iframe:not([inert]):not([inert] *)`).join(`,`),vt=function(e,t){if(t||={},!e)throw Error(`No node provided`);return F.call(e,_t)!==!1&&dt(t,e)};function yt(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function bt(e){if(Array.isArray(e))return yt(e)}function xt(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];
vendor: 10,359 bytes, lines 3-5
3if(!n){if(Array.isArray(e)||(n=At(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError(`Invalid attempt to iterate non-iterable instance. 4In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw a}}}}function St(e,t,n){return(t=kt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ct(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function wt(){throw TypeError(`Invalid attempt to spread non-iterable instance. 5In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Tt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Et(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Tt(Object(n),!0).forEach(function(t){St(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Dt(e){return bt(e)||Ct(e)||At(e)||wt()}function Ot(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function kt(e){var t=Ot(e,`string`);return typeof t==`symbol`?t:t+``}function At(e,t){if(e){if(typeof e==`string`)return yt(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?yt(e,t):void 0}}var R={getActiveTrap:function(e){return e?.length>0?e[e.length-1]:null},activateTrap:function(e,t){t!==R.getActiveTrap(e)&&R.pauseTrap(e);var n=e.indexOf(t);n===-1||e.splice(n,1),e.push(t)},deactivateTrap:function(e,t){var n=e.indexOf(t);n!==-1&&e.splice(n,1),R.unpauseTrap(e)},pauseTrap:function(e){R.getActiveTrap(e)?._setPausedState(!0)},unpauseTrap:function(e){var t=R.getActiveTrap(e);t&&!t._isManuallyPaused()&&t._setPausedState(!1)}},jt=function(e){return e.tagName&&e.tagName.toLowerCase()===`input`&&typeof e.select==`function`},Mt=function(e){return e?.key===`Escape`||e?.key===`Esc`||e?.keyCode===27},z=function(e){return e?.key===`Tab`||e?.keyCode===9},Nt=function(e){return z(e)&&!e.shiftKey},Pt=function(e){return z(e)&&e.shiftKey},Ft=function(e){return setTimeout(e,0)},B=function(e){var t=[...arguments].slice(1);return typeof e==`function`?e.apply(void 0,t):e},It=function(e){return e.target.shadowRoot&&typeof e.composedPath==`function`?e.composedPath()[0]:e.target},Lt=[],Rt=function(e,t){var n=t?.document||document,r=t?.trapStack||Lt,i=Et({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isolateSubtrees:!1,isKeyForward:Nt,isKeyBackward:Pt},t),a={containers:[],containerGroups:[],tabbableGroups:[],adjacentElements:new Set,alreadySilent:new Set,nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},o,s=function(e,t,n){return e&&e[t]!==void 0?e[t]:i[n||t]},c=function(e,t){var n=typeof t?.composedPath==`function`?t.composedPath():void 0;return a.containerGroups.findIndex(function(t){var r=t.container,i=t.tabbableNodes;return r.contains(e)||n?.includes(r)||i.find(function(t){return t===e})})},l=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.hasFallback,a=r!==void 0&&r,o=t.params,s=o===void 0?[]:o,c=i[e];if(typeof c==`function`&&(c=c.apply(void 0,Dt(s))),c===!0&&(c=void 0),!c){if(c===void 0||c===!1)return c;throw Error(`\`${e}\` was specified but was not a node, or did not return a node`)}var l=c;if(typeof c==`string`){try{l=n.querySelector(c)}catch(t){throw Error(`\`${e}\` appears to be an invalid selector; error="${t.message}"`)}if(!l&&!a)throw Error(`\`${e}\` as selector refers to no known node`)}return l},u=function(){var e=l(`initialFocus`,{hasFallback:!0});if(e===!1)return!1;if(e===void 0||e&&!vt(e,i.tabbableOptions)){if(c(n.activeElement)>=0)e=n.activeElement;else{var t=a.tabbableGroups[0];e=t&&t.firstTabbableNode||l(`fallbackFocus`)}}else e===null&&(e=l(`fallbackFocus`));if(!e)throw Error(`Your focus-trap needs to have at least one focusable element`);return e},d=function(){if(a.containerGroups=a.containers.map(function(e){var t=ht(e,i.tabbableOptions),n=gt(e,i.tabbableOptions),r=t.length>0?t[0]:void 0,a=t.length>0?t[t.length-1]:void 0,o=n.find(function(e){return L(e)}),s=n.slice().reverse().find(function(e){return L(e)});return{container:e,tabbableNodes:t,focusableNodes:n,posTabIndexesFound:!!t.find(function(e){return I(e)>0}),firstTabbableNode:r,lastTabbableNode:a,firstDomTabbableNode:o,lastDomTabbableNode:s,nextTabbableNode:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,i=t.indexOf(e);return i<0?r?n.slice(n.indexOf(e)+1).find(function(e){return L(e)}):n.slice(0,n.indexOf(e)).reverse().find(function(e){return L(e)}):t[i+(r?1:-1)]}}}),a.tabbableGroups=a.containerGroups.filter(function(e){return e.tabbableNodes.length>0}),a.tabbableGroups.length<=0&&!l(`fallbackFocus`))throw Error(`Your focus-trap must have at least one container with at least one tabbable node in it at all times`);if(a.containerGroups.find(function(e){return e.posTabIndexesFound})&&a.containerGroups.length>1)throw Error(`At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.`)},f=function(e){var t=e.activeElement;if(t)return t.shadowRoot&&t.shadowRoot.activeElement!==null?f(t.shadowRoot):t},p=function(e){if(e!==!1&&e!==f(document)){if(!e||!e.focus){p(u());return}e.focus({preventScroll:!!i.preventScroll}),a.mostRecentlyFocusedNode=e,jt(e)&&e.select()}},m=function(e){var t=l(`setReturnFocus`,{params:[e]});return t||t!==!1&&e},h=function(e){var t=e.target,n=e.event,r=e.isBackward,o=r!==void 0&&r;t||=It(n),d();var s=null;if(a.tabbableGroups.length>0){var u=c(t,n),f=u>=0?a.containerGroups[u]:void 0;if(u<0)s=o?a.tabbableGroups[a.tabbableGroups.length-1].lastTabbableNode:a.tabbableGroups[0].firstTabbableNode;else if(o){var p=a.tabbableGroups.findIndex(function(e){var n=e.firstTabbableNode;return t===n});if(p<0&&(f.container===t||vt(t,i.tabbableOptions)&&!L(t,i.tabbableOptions)&&!f.nextTabbableNode(t,!1))&&(p=u),p>=0){var m=p===0?a.tabbableGroups.length-1:p-1,h=a.tabbableGroups[m];s=I(t)>=0?h.lastTabbableNode:h.lastDomTabbableNode}else z(n)||(s=f.nextTabbableNode(t,!1))}else{var g=a.tabbableGroups.findIndex(function(e){var n=e.lastTabbableNode;return t===n});if(g<0&&(f.container===t||vt(t,i.tabbableOptions)&&!L(t,i.tabbableOptions)&&!f.nextTabbableNode(t))&&(g=u),g>=0){var _=g===a.tabbableGroups.length-1?0:g+1,v=a.tabbableGroups[_];s=I(t)>=0?v.firstTabbableNode:v.firstDomTabbableNode}else z(n)||(s=f.nextTabbableNode(t))}}else s=l(`fallbackFocus`);return s},g=function(e){if(!(c(It(e),e)>=0)){if(B(i.clickOutsideDeactivates,e)){o.deactivate({returnFocus:i.returnFocusOnDeactivate});return}B(i.allowOutsideClick,e)||e.preventDefault()}},_=function(e){var t=It(e),n=c(t,e)>=0;if(n||t instanceof Document)n&&(a.mostRecentlyFocusedNode=t);else{e.stopImmediatePropagation();var r,o=!0;if(a.mostRecentlyFocusedNode){if(I(a.mostRecentlyFocusedNode)>0){var s=c(a.mostRecentlyFocusedNode),l=a.containerGroups[s].tabbableNodes;if(l.length>0){var d=l.findIndex(function(e){return e===a.mostRecentlyFocusedNode});d>=0&&(i.isKeyForward(a.recentNavEvent)?d+1<l.length&&(r=l[d+1],o=!1):d-1>=0&&(r=l[d-1],o=!1))}}else a.containerGroups.some(function(e){return e.tabbableNodes.some(function(e){return I(e)>0})})||(o=!1)}else o=!1;o&&(r=h({target:a.mostRecentlyFocusedNode,isBackward:i.isKeyBackward(a.recentNavEvent)})),p(r||a.mostRecentlyFocusedNode||u())}a.recentNavEvent=void 0},v=function(e){var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1];a.recentNavEvent=e;var n=h({event:e,isBackward:t});n&&(z(e)&&e.preventDefault(),p(n))},y=function(e){(i.isKeyForward(e)||i.isKeyBackward(e))&&v(e,i.isKeyBackward(e))},b=function(e){Mt(e)&&B(i.escapeDeactivates,e)!==!1&&(e.preventDefault(),o.deactivate())},x=function(e){c(It(e),e)>=0||B(i.clickOutsideDeactivates,e)||B(i.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},S=function(){if(a.active)return R.activateTrap(r,o),a.delayInitialFocusTimer=i.delayInitialFocus?Ft(function(){p(u())}):p(u()),n.addEventListener(`focusin`,_,!0),n.addEventListener(`mousedown`,g,{capture:!0,passive:!1}),n.addEventListener(`touchstart`,g,{capture:!0,passive:!1}),n.addEventListener(`click`,x,{capture:!0,passive:!1}),n.addEventListener(`keydown`,y,{capture:!0,passive:!1}),n.addEventListener(`keydown`,b),o},C=function(e){a.active&&!a.paused&&o._setSubtreeIsolation(!1),a.adjacentElements.clear(),a.alreadySilent.clear();var t=new Set,n=new Set,r=xt(e),i;try{for(r.s();!(i=r.n()).done;){var s=i.value;t.add(s);for(var c=typeof ShadowRoot<`u`&&s.getRootNode()instanceof ShadowRoot,l=s;l;){t.add(l);var u=l.parentElement,d=[];u?d=u.children:!u&&c&&(d=l.getRootNode().children,u=l.getRootNode().host,c=typeof ShadowRoot<`u`&&u.getRootNode()instanceof ShadowRoot);var f=xt(d),p;try{for(f.s();!(p=f.n()).done;){var m=p.value;n.add(m)}}catch(e){f.e(e)}finally{f.f()}l=u}}}catch(e){r.e(e)}finally{r.f()}t.forEach(function(e){n.delete(e)}),a.adjacentElements=n},w=function(){if(a.active)return n.removeEventListener(`focusin`,_,!0),n.removeEventListener(`mousedown`,g,!0),n.removeEventListener(`touchstart`,g,!0),n.removeEventListener(`click`,x,!0),n.removeEventListener(`keydown`,y,!0),n.removeEventListener(`keydown`,b),o},T=typeof window<`u`&&`MutationObserver`in window?new MutationObserver(function(e){e.some(function(e){return Array.from(e.removedNodes).some(function(e){return e===a.mostRecentlyFocusedNode})})&&p(u())}
5):void 0,E=function(){T&&(T.disconnect(),a.active&&!a.paused&&a.containers.map(function(e){T.observe(e,{subtree:!0,childList:!0})}))};return o={get active(){return a.active},get paused(){return a.paused},activate:function(e){if(a.active)return this;var t=s(e,`onActivate`),c=s(e,`onPostActivate`),l=s(e,`checkCanFocusTrap`),u=R.getActiveTrap(r),p=!1;if(u&&!u.paused){var m;(m=u._setSubtreeIsolation)==null||m.call(u,!1),p=!0}try{l||d(),a.active=!0,a.paused=!1,a.nodeFocusedBeforeActivation=f(n),t?.();var h=function(){l&&d(),S(),E(),i.isolateSubtrees&&o._setSubtreeIsolation(!0),c?.()};if(l)return l(a.containers.concat()).then(h,h),this;h()}catch(e){if(u===R.getActiveTrap(r)&&p){var g;(g=u._setSubtreeIsolation)==null||g.call(u,!0)}throw e}return this},deactivate:function(e){if(!a.active)return this;var t=Et({onDeactivate:i.onDeactivate,onPostDeactivate:i.onPostDeactivate,checkCanReturnFocus:i.checkCanReturnFocus},e);clearTimeout(a.delayInitialFocusTimer),a.delayInitialFocusTimer=void 0,a.paused||o._setSubtreeIsolation(!1),a.alreadySilent.clear(),w(),a.active=!1,a.paused=!1,E(),R.deactivateTrap(r,o);var n=s(t,`onDeactivate`),c=s(t,`onPostDeactivate`),l=s(t,`checkCanReturnFocus`),u=s(t,`returnFocus`,`returnFocusOnDeactivate`);n?.();var d=function(){Ft(function(){u&&p(m(a.nodeFocusedBeforeActivation)),c?.()})};return u&&l?(l(m(a.nodeFocusedBeforeActivation)).then(d,d),this):(d(),this)},pause:function(e){return a.active?(a.manuallyPaused=!0,this._setPausedState(!0,e)):this},unpause:function(e){return a.active?(a.manuallyPaused=!1,r[r.length-1]===this?this._setPausedState(!1,e):this):this},updateContainerElements:function(e){return a.containers=[].concat(e).filter(
5Boolean).map(function(e){return typeof e==`string`?n.querySelector(e):e}),i.isolateSubtrees&&C(a.containers),a.active&&(d(),i.isolateSubtrees&&!a.paused&&o._setSubtreeIsolation(!0)),E(),this}},Object.defineProperties(o,{_isManuallyPaused:{value:function(){return a.manuallyPaused}},_setPausedState:{value:function(e,t){if(a.paused===e)return this;if(a.paused=e,e){var n=s(t,`onPause`),r=s(t,`onPostPause`);n?.(),w(),E(),o._setSubtreeIsolation(!1),r?.()}else{var i=s(t,`onUnpause`),c=s(t,`onPostUnpause`);i?.(),o._setSubtreeIsolation(!0),d(),S(),E(),c?.()}return this}},_setSubtreeIsolation:{value:function(e){i.isolateSubtrees&&a.adjacentElements.forEach(function(t){e?i.isolateSubtrees===`aria-hidden`?((t.ariaHidden===`true`||t.getAttribute(`aria-hidden`)?.toLowerCase()===`true`)&&a.alreadySilent.add(t),t.setAttribute(`aria-hidden`,`true`)):((t.inert||t.hasAttribute(`inert`))&&a.alreadySilent.add(t),t.setAttribute(`inert`,!0)):a.alreadySilent.has(t)||(i.isolateSubtrees===`aria-hidden`?t.removeAttribute(`aria-hidden`):t.removeAttribute(`inert`))})}}}),o.updateContainerElements(e),o},zt=e=>{let t=e.map(e=>new Promise(t=>{let n=setInterval(()=>{getComputedStyle(e).visibility!==`hidden`&&(t(),clearInterval(n))},5)}));return Promise.all(t)},Bt=(e,t)=>{let n=`a11y-toolbar--translate-is-open`,r={allowOutsideClick:!0,clickOutsideDeactivates:!0,checkCanFocusTrap:zt,onActivate:()=>{document.body.classList.add(n)},onDeactivate:()=>{document.body.classList.remove(n)}},i,a,o,s,c,l=new Map,u=()=>{if(!t||!t.showDeepLButton)return;a=t.iconOptions?.languageIcon||``,o=t.textAfterOptions?.languageTextAfter||``,s=t.labelOptions?.languageLabel||``,c=t.disclaimerOptions?.languageDisclaimer||`Use DeepL to translate this website. We take no responsibility for the accuracy of the translation.`;let n=P(`language-button`,s,a,o);e.appendChild(n);let r=h();e.appendChild(r),n.addEventListener(`click`,()=>f()),d();let i=window.sessionStorage.getItem(`DeepLSelectedLanguage`)??``;i!==`NL`&&i&&y(i)},d=()=>{l.size>0||document.querySelectorAll(`div, p, span, h1, h2, h3, h4, h5, h6, li, button, blockquote, a, label, details, summary, strong, em, figcaption, code, pre, th, td, textarea, time, input[type="button"], input[type="submit"], input[type="reset"]`).forEach(e=>{e instanceof HTMLElement&&Array.from(e.childNodes).forEach(e=>{if(e.nodeType!==Node.TEXT_NODE)return;let t=e,n=(t.textContent??``).trim().replace(/\s\s+/g,` `);if(!n||n.length<=2)return;let r={node:t,originalText:t.textContent??``},i=l.get(n);i?i.push(r):l.set(n,[r])})})},f=()=>{document.body.classList.contains(n)?p():m()},p=()=>{document.body.classList.contains(n)&&i.deactivate()},m=()=>{i=Rt(`.a11y-toolbar__translate-dropdown`,r),i.activate()},h=()=>{let e=document.createElement(`div`);e.classList.add(`a11y-toolbar__translate-dropdown`),e.setAttribute(`lang`,`en`);let t=document.createElement(`h3`);t.textContent=`Translate`;let n=document.createElement(`button`);n.classList.add(`a11y-toolbar__translate-close-button`),n.setAttribute(`aria-label`,`Close translate modal`),n.addEventListener(`click`,()=>p());let r=document.createElement(`i`);r.classList.add(`fal`,`fa-times`),n.appendChild(r),e.appendChild(t),e.appendChild(n);let i=document.createElement(`p`);i.classList.add(`a11y-toolbar__translate-description-deepl`),i.innerHTML=c,e.appendChild(i);let a=g();return e.appendChild(a),e},g=()=>{if(!window.ydpl||!window.ydpl.ydpl_supported_languages){let e=document.createElement(`p`);if(e.style.color=`red`,e.textContent=`The DeepL API is not available. Check the console for more information.`,!window.ydpl)throw Error(`window.ydpl global is not available or there is no window.ydpl.ydpl_supported_languages. Make sure the Yard DeepL plugin is configured properly.`);return e}let e=document.createElement(`label`);e.classList.add(`a11y-toolbar__translate-label`),e.textContent=`Select language:`,e.setAttribute(`for`,`a11y-toolbar__translate-select`);let t=document.createElement(`select`);t.id=`a11y-toolbar__translate-select`,t.classList.add(`a11y-toolbar__translate-select`),t.addEventListener(`change`,()=>_(t));let n=document.createElement(`option`);n.value=`NL`,n.textContent=`Nederlands (standaard)`,t.appendChild(n);let r=[...window.ydpl.ydpl_supported_languages.filter(e=>e.iso_alpha2!==`NL`)].sort((e,t)=>
5e.name.localeCompare(t.name)),i=window.sessionStorage.getItem(`DeepLSelectedLanguage`)||`NL`;r.forEach(e=>{let n=document.createElement(`option`);n.value=e.iso_alpha2,n.textContent=e.name,n.value===i&&(n.selected=!0),t.appendChild(n)});let a=document.createElement(`div`);return a.classList.add(`a11y-toolbar__translate-select-container`),a.appendChild(e),a.appendChild(t),a},_=e=>{let t=e.value;window.sessionStorage.setItem(`DeepLSelectedLanguage`,t),t===`NL`?v():y(t)},v=()=>{l.forEach(e=>{e.forEach(({node:e,originalText:t})=>{e.textContent=t})}),w(!1),b(`NL`)},y=async e=>{let t=Array.from(new Set(l.keys()));await x(t,e),b(e)},b=e=>{document.documentElement.lang=e},x=async(e,t)=>{let n=window.ydpl.ydpl_rest_translate_url,r={"Content-Type":`application/json`,"X-WP-Nonce":window.ydpl.ydpl_api_request_nonce},i={text:e,target_lang:t,object_id:window.ydpl.ydpl_translate_post_id},a=await fetch(n,{method:`POST`,headers:r,credentials:`include`,body:JSON.stringify(i)});if(!a.ok)throw S(),Error(`Request failed with status: ${a.status}, ${a.status}`);let o=await a.json();C(o)},S=()=>{let e=document.createElement(`p`);e.classList.add(`a11y-toolbar__translate-error`),e.style.color=`red`,e.style.lineHeight=`1.4`,e.textContent=`Something went wrong. Please try again later.`,document.querySelector(`.a11y-toolbar__translate-dropdown`)?.appendChild(e)},C=e=>{e.forEach(e=>{let t=l.get(e.text);t&&t.forEach(({node:t})=>{t.textContent=T(t,t.textContent??``,e.translation)})}),w(!0)},w=e=>{let t=document.querySelector(`.a11y-toolbar__button--language-button .a11y-toolbar__icon`),n=ze(a),r=ze(`<svg xmlns="http://www.w3.org/2000/svg" width="25.17" height="17.975" viewBox="0 0 25.17 17.975"><path id="check-sharp-light" d="M25.17,97.247l-.623.646L9.751,113.3l-.646.674-.646-.674L.623,105.145,0,104.493l1.3-1.247.623.646,7.184,7.488L23.255,96.646,23.873,96Z" transform="translate(0 -96)"/></svg>`);r.style.width=`25px`,e?t?.replaceWith(r):t?.replaceWith(n)},T=(e,t,n)=>{let r=t.match(/^\s*/)?.[0]||``,i=t.match(/\s*$/)?.[0]||``,a=`${r}${n}${i}`,o=e.nextSibling instanceof HTMLElement?e.nextSibling:null;return!i&&o?.tagName===`A`&&!/\s$/.test(a)&&(a=`${a} `),a};u()},Vt=e=>{let t=performance.getEntriesByType(`resource`).filter(e=>e.initiatorType===`script`);for(let n of t)if(n.name.includes(e)&&n.duration>0)return!0;return!1},Ht=(e,t)=>{let n=`a11y-toolbar--translate-is-open`,r=`a11y-toolbar__translate-label`,i={allowOutsideClick:!0,clickOutsideDeactivates:!0,checkCanFocusTrap:zt,onActivate:()=>{document.body.classList.add(n)},onDeactivate:()=>{document.body.classList.remove(n)}},a,o,s,c,l,u=()=>{if(!t||!t.showLanguageButton)return;o=t.iconOptions?.languageIcon||``,s=t.textAfterOptions?.languageTextAfter||``,c=t.labelOptions?.languageLabel||``,l=t.translateIncludedLanguages||``,d(l);let n=P(`language-button`,c,o,s);e.appendChild(n);let r=h();e.appendChild(r),n.addEventListener(`click`,()=>f())},d=e=>{let t=`https://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit`;if(Vt(t))return;let n=document.createElement(`script`);n.type=`text/javascript`,n.src=t;let r=document.createElement(`script`);r.type=`text/javascript`,r.innerHTML=` 6 function googleTranslateElementInit() { 7 new google.translate.TranslateElement({ 8 pageLanguage: 'nl', 9 includedLanguages: '${e}', 10 }, 'google_translate_element'); 11 } 12 `,document.head.appendChild(n),document.head.appendChild(r)},f=()=>{g(),document.body.classList.contains(n)?p():m()},p=()=>{document.body.classList.contains(n)&&a.deactivate()},m=()=>{a=Rt(`.a11y-toolbar__translate-dropdown`,i),a.activate()},h=()=>{let e=document.createElement(`div`);e.classList.add(`a11y-toolbar__translate-dropdown`),e.setAttribute(`lang`,`en`);let t=document.createElement(`h3`);t.textContent=`Translate`;let n=document.createElement(`button`);n.classList.add(`a11y-toolbar__translate-close-button`),n.setAttribute(`aria-label`,`Close translate modal`),n.addEventListener(`click`,()=>p());let r=document.createElement(`i`);r.classList.add(`fal`,`fa-times`),n.appendChild(r),e.appendChild(t),e.appendChild(n);let i=document.createElement(`p`);i.classList.add(`a11y-toolbar__translate-description`),i.textContent=`Use Google to translate this website. We take no responsibility for the accuracy of the translation.`,e.appendChild(i);let a=document.createElement(`div`);
12a.id=`google_translate_element`,a.setAttribute(`lang`,`nl`),e.appendChild(a);let o=document.createElement(`div`);return o.classList.add(`a11y-toolbar__translate-error`),o.textContent=`Unable to load Google Translate. Accept cookies and refresh the page, or try again later.`,e.appendChild(o),e},g=()=>{let e=document.querySelector(`.goog-te-combo`),t=document.querySelector(`.${r}`);if(!e||t)return;e.setAttribute(`id`,`google-translate-select`),e.removeAttribute(`aria-label`);let n=document.createElement(`label`);n.classList.add(r),n.htmlFor=`google-translate-select`,n.textContent=`Selecteer een taal:`;let i=document.querySelector(`#google_translate_element`);i?.parentElement?.insertBefore(n,i)};u()},Ut=(e,t)=>{let n=`a11y-toolbar--open-dyslexic`,r,i,a,o,s=()=>{if(!t||!t.showOpenDyslexicButton)return;r=t.iconOptions?.openDyslexicIcon||``,i=t.textAfterOptions?.openDyslexicTextAfter||``,a=t.labelOptions?.openDyslexicActivateLabel||``,o=t.labelOptions?.openDyslexicDeactivateLabel||``;let n=P(`openDyslexic`,a,r,i);e.appendChild(n),c(),l(n),u(n),f()&&d()},c=()=>{f()&&!document.body.classList.contains(n)&&document.body.classList.add(n)},l=e=>{let t=f();p(e,t)},u=e=>{e.addEventListener(`click`,()=>{let t=!f();M.set(N.OPEN_DYSLEXIC,t.toString(),{expires:90}),p(e,t),t?(d(),document.body.classList.add(n)):document.body.classList.remove(n)})},d=()=>{if(document.getElementById(`open-dyslexic-font`))return;let e=document.createElement(`style`);e.textContent=` 13 @font-face { 14 font-family: 'OpenDyslexic'; 15 src: url('https://cdn.jsdelivr.net/gh/antijingoist/open-dyslexic@master/woff/OpenDyslexic-Regular.woff') format('woff2'); 16 font-weight: 300; 17 font-style: normal; 18 } 19 @font-face { 20 font-family: 'OpenDyslexic'; 21 src: url('https://cdn.jsdelivr.net/gh/antijingoist/open-dyslexic@master/woff/OpenDyslexic-Regular.woff') format('woff2'); 22 font-weight: 400; 23 font-style: normal; 24 } 25 @font-face { 26 font-family: 'OpenDyslexic'; 27 src: url('https://cdn.jsdelivr.net/gh/antijingoist/open-dyslexic@master/woff/OpenDyslexic-Bold.woff') format('woff2'); 28 font-weight: 500; 29 font-style: normal; 30 } 31 @font-face { 32 font-family: 'OpenDyslexic'; 33 src: url('https://cdn.jsdelivr.net/gh/antijingoist/open-dyslexic@master/woff/OpenDyslexic-Bold.woff') format('woff2'); 34 font-weight: 600; 35 font-style: normal; 36 } 37 @font-face { 38 font-family: 'OpenDyslexic'; 39 src: url('https://cdn.jsdelivr.net/gh/antijingoist/open-dyslexic@master/woff/OpenDyslexic-Bold.woff') format('woff2'); 40 font-weight: 700; 41 font-style: normal; 42 }`,document.head.appendChild(e);let t=document.createElement(`style`);t.id=`open-dyslexic-font`,t.textContent=` 43 body.${n} { 44 font-family: 'OpenDyslexic', sans-serif !important; 45 font-size: 1rem; 46 } 47 body.${n} *:not(i) { 48 font-family: 'OpenDyslexic', sans-serif !important; 49 } 50 `,document.head.appendChild(t)},f=()=>M.get(N.OPEN_DYSLEXIC)===`true`,p=(e,t)=>{e.setAttribute(`aria-pressed`,t.toString()),e.setAttribute(`aria-label`,t?o:a),e.setAttribute(`title`,t?o:a)};s()},Wt=(e,t)=>{let n,r,i;(()=>{if(!t||!t.showPrintButton)return;n=t.iconOptions?.printIcon||``,r=t.textAfterOptions?.printTextAfter||``,i=t.labelOptions?.printLabel||``;let a=P(`print`,i,n,r);e.appendChild(a),a.addEventListener(`click`,()=>{window.print()})})()},Gt=(e,t)=>{let n,r,i,a,o,s,c=()=>{if(!t||!t.showReadSpeakerButton||!t.readSpeakerCustomerID||!t.readSpeakerContentID)return;window.rsConf={general:{usePost:!0}},n=t.readSpeakerCustomerID||``,r=t.readSpeakerContentID||``,i=t.readSpeakerDisable||``,a=t.iconOptions?.readSpeakerIcon||``,o=t.textAfterOptions?.readSpeakerTextAfter||``,s=t.labelOptions?.readSpeakerLabel||``,l(n,i);let c=u(n,r,a,o,s);e.appendChild(c)},l=(e,t)=>{let n=document.createElement(`script`);n.type=`text/javascript`,n.crossOrigin=`anonymous`,n.id=`rs_req_Init`,n.src=`https://cdn-eu.readspeaker.com/script/${e}/webReader/webReader.js?pids=wr&&disable=${t}`,document.head.appendChild(n)},u=(e,t,n,r,i)=>{let a=document.createElement(`div`);a.id=`readspeaker_button1`,a.classList.add(`rs_skip`,`rsbtn`,`rs_preserve`);let o=document.createElement(`a`);if(o.setAttribute(`role`,`button`),o.classList.add(`rsbtn_play`,`a11y-toolbar__button`,`a11y-toolbar__button--readspeaker`),o.setAttribute(`accesskey`,`L`),o.setAttribute(`aria-label`,i),o.setAttribute(`title`,i),o.href=`//app-eu.readspeaker.com/cgi-bin/rsent?customerid=${e}&lang=nl_nl&readid=${t}&url=${window.location.href}`,n!==void 0&&n!==``){let e=Le(n);o.appendChild(e)}if(r!==void 0&&r!==``){let e=Be(r);o.appendChild(e)}return o.addEventListener(`click`,()=>{setTimeout(()=>{document.querySelector(`.rs-controlpanel-playpause`)?.focus()},200)}),a.appendChild(o),a};c()},Kt=(e,t)=>
50{let n=`a11y-toolbar--text-size`,r,i,a,o,s=()=>{if(!t||!t.showTextSizeButton)return;r=t.iconOptions?.textSizeIcon||``,i=t.textAfterOptions?.textSizeTextAfter||``,a=t.labelOptions?.textSizeIncreaseLabel||``,o=t.labelOptions?.textSizeDecreaseLabel||``;let n=P(`text-size`,a,r,i);e.appendChild(n),c(),l(n),u(n)},c=()=>{d()&&!document.body.classList.contains(n)&&document.body.classList.toggle(n)},l=e=>{let t=d();f(e,t)},u=e=>{e.addEventListener(`click`,()=>{let t=!d();M.set(N.TEXT_SIZE,t.toString(),{expires:90}),f(e,t),document.body.classList.toggle(n)})},d=()=>M.get(N.TEXT_SIZE)===`true`,f=(e,t)=>{e.setAttribute(`aria-pressed`,t.toString()),e.setAttribute(`aria-label`,t?o:a),e.setAttribute(`title`,t?o:a)};s()},qt=(e,t)=>{let n,r,i=()=>{if(!t||!t.showTolkieTranslateButton)return;n=t.iconOptions?.tolkieTranslateIcon||`flag`,r=t.textAfterOptions?.tolkieTranslateTextAfter||`Vertalen`;let i=a();e.appendChild(i)},a=()=>{let e=document.createElement(`button`);if(e.classList.add(`tolkie-translate-button`,`a11y-toolbar__button`,`a11y-toolbar__button--tolkie-translate`),e.setAttribute(`type`,`button`),e.setAttribute(`aria-label`,r),e.setAttribute(`title`,r),n===`flag`){let t=document.createElement(`div`);t.classList.add(`tolkie-translate-button-flag`),e.appendChild(t)}else{let t=Re(n);e.appendChild(t)}if(r){let t=Be(r);t.classList.add(`tolkie-translate-button-text`),e.appendChild(t)}return e};i()},Jt={showReadSpeakerButton:!0,showTextSizeButton:!0,showContrastButton:!0,showPrintButton:!0,showLanguageButton:!0,showDeepLButton:!1,showTolkieTranslateButton:!1,customButton:null,translateIncludedLanguages:`en`,readSpeakerCustomerID:`9999`,readSpeakerContentID:`readspeakers`,readSpeakerDisable:`settings,clicklisten,voicesettings,readhover,enlarge,textmode,pagemask,download,help,dictionary,translation`,disclaimerOptions:{languageDisclaimer:``},iconOptions:{toggleIcon:`fa-regular fa-universal-access`,readSpeakerIcon:`fa-light fa-volume`,textSizeIcon:`fa-light fa-text-height`,contrastIcon:`fa-light fa-adjust`,printIcon:`fa-light fa-print`,languageIcon:`<svg xmlns="http://www.w3.org/2000/svg" fill="none" aria-hidden="true" class="a11y-toolbar__flag" viewBox="0 0 20 15"> <mask id="mask0" width="20" height="15" x="0" y="0" mask-type="alpha" maskUnits="userSpaceOnUse"> <path fill="#fff" d="M0 0h20v15H0z"/> </mask> <g mask="url(#mask0)"> <path fill="#F7FCFF" fill-rule="evenodd" d="M0 0v15h20V0H0Z" clip-rule="evenodd"/> <mask id="mask1" width="20" height="15" x="0" y="0" mask-type="alpha" maskUnits="userSpaceOnUse"> <path fill="#fff" fill-rule="evenodd" d="M0 0v15h20V0H0Z" clip-rule="evenodd"/> </mask> <g fill-rule="evenodd" clip-rule="evenodd" mask="url(#mask1)"> <path fill="#E31D1C" d="M0 0v5h20V0H0Z"/> <path fill="#3D58DB" d="M0 10v5h20v-5H0Z"/> </g> </g> </svg>`,openDyslexicIcon:`fa-light fa-book-font`,tolkieTranslateIcon:`flag`},textAfterOptions:{readSpeakerTextAfter:``,textSizeTextAfter:``,contrastTextAfter:``,printTextAfter:``,languageTextAfter:`Translate`,openDyslexicTextAfter:`Dyslexie`,tolkieTranslateTextAfter:`Vertalen`},labelOptions:{readSpeakerLabel:`Laat de tekst voorlezen met ReadSpeaker webReader`,textSizeIncreaseLabel:`Vergroot schermtekst`,textSizeDecreaseLabel:`Verklein schermtekst`,contrastIncreaseLabel:`Vergroot schermcontrast`,contrastDecreaseLabel:`Verklein schermcontrast`,printLabel:`Print pagina`,languageLabel:`Translate`,openDyslexicActivateLabel:`Activeer OpenDyslexic lettertype`,openDyslexicDeactivateLabel:`Deactiveer OpenDyslexic lettertype`}},Yt=e=>e===Object(e)&&!Array.isArray(e)&&typeof e!=`function`,Xt=(e,...t)=>{if(!t.length)return e;let n=e;if(Yt(n)){let e=t.length;for(let r=0;r<e;r+=1){let e=t[r];if(Yt(e))for(let t in e)e.hasOwnProperty(t)&&(Yt(e[t])?((!n[t]||!Yt(n[t]))&&(n[t]={}),Xt(n[t],e[t])):n[t]=Array.isArray(n[t])&&Array.isArray(e[t])?Array.from(new Set(n[t].concat(e[t]))):e[t])}}return n},Zt=`a11y-toolbar--is-open`,Qt=class{options;selector;toolbar=null;constructor(e,t){this.selector=e,this.options=Xt(Jt,t||{})}init(){this.toolbar=this.createToolbar();let e=this.createToggleButton();Gt(this.toolbar,this.options),Kt(this.toolbar,this.options),Ve(this.toolbar,this.options),Wt(this.toolbar,this.options),Ut(this.toolbar,this.options),Ht(this.toolbar,this.options),Bt(this.toolbar,this.options),qt(this.toolbar,this.options),He(this.toolbar,this.options);let t=document.querySelector(this.selector);return t?.appendChild(this.toolbar),t?.insertBefore(e,this.toolbar),this}createToolbar(){let e=document.createElement(`div`);return e.id=`js-a11y-toolbar`,e.classList.add(`a11y-toolbar`),e}createToggleButton(){let e=document.createElement(`button`);e.classList.add(`a11y-toolbar__toggle-button`),e.setAttribute(`aria-expanded`,`false`),e.setAttribute(`aria-controls`,`a11y-toolbar`),e.setAttribute(`aria-label`,`Open toegankelijkheid toolbar`);let t=document.createElement(`i`),n=this.options.iconOptions?.toggleIcon||``;return t.classList.add(...n.split(` `)),e.appendChild(t),e.addEventListener(`click`,()=>this.toggleToolbar(e)),e}toggleToolbar(e){let t=document.body.classList.toggle(Zt);
50e.setAttribute(`aria-expanded`,t.toString()),t?(document.addEventListener(`click`,this.handleOutsideClick),document.addEventListener(`keydown`,this.handleEscapeKey),this.toolbar?.addEventListener(`focusout`,this.handleFocusOut.bind(this))):(document.removeEventListener(`click`,this.handleOutsideClick),document.removeEventListener(`keydown`,this.handleEscapeKey),this.toolbar?.removeEventListener(`focusout`,this.handleFocusOut.bind(this)))}handleOutsideClick=e=>{let t=e.target;this.toolbar&&!this.toolbar.contains(t)&&!t.closest(`.a11y-toolbar__toggle-button`)&&this.closeToolbar()};handleEscapeKey=e=>{if(e.key!==`Escape`)return;let t=e.target;this.toolbar&&this.toolbar.contains(t)&&!t.closest(`.a11y-toolbar__translate-dropdown`)&&this.closeToolbar(!0)};handleFocusOut(e){let t=e.relatedTarget;!this.toolbar?.contains(t)&&!t.closest(`.a11y-toolbar__toggle-button`)&&this.closeToolbar()}closeToolbar(e=!1){document.body.classList.remove(Zt),document.removeEventListener(`click`,this.handleOutsideClick),document.removeEventListener(`keydown`,this.handleEscapeKey),this.toolbar?.removeEventListener(`focusout`,this.handleFocusOut.bind(this));let t=document.querySelector(`.a11y-toolbar__toggle-button`);t&&t.setAttribute(`aria-expanded`,`false`),t&&e&&t.focus()}},$t=`.wp-block-group.is-variation-card`,en={link:`a`,heading:`.wp-block-heading`},tn={buttonLink:`wp-block-button__link`},nn=class{selector;constructor(e={}){this.selector=e.selector||$t,this.init()}init(){let e=document.querySelectorAll(this.selector);e.length!==0&&e.forEach(this.findLinks.bind(this))}findLinks(e){let t=e.querySelectorAll(en.link);if(t.length===0||t.length>1)return;let n=t[0];n&&n.getAttribute(`href`)&&n.classList.contains(tn.buttonLink)&&this.a11yMoveLinkToHeading(n,e)}a11yMoveLinkToHeading(e,t){let n=t.querySelector(en.heading);if(!n||n.querySelector(en.link))return;let r=document.createElement(`a`);r.href=e.href,e.target&&(r.target=e.target),e.rel&&(r.rel=e.rel),r.innerHTML=n.innerHTML,n.innerHTML=``,n.appendChild(r),this.a11yHideLink(e)}a11yHideLink(e){e.setAttribute(`aria-hidden`,`true`),e.setAttribute(`tabindex`,`-1`)}},rn=e=>{let t=e.querySelectorAll(`button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])`);return Array.from(t).filter(e=>!e.hasAttribute(`disabled`)&&!e.getAttribute(`aria-hidden`)&&e.style.display!==`none`)},an=e=>rn(e)[0]??null,V={search:`.facetwp-search`,pager:`.facetwp-pager`,page:`.facetwp-page`,pageWithHref:`.facetwp-page[href]`,pageWithData:`.facetwp-page[data-page]`,pageActive:`.facetwp-page.active`,selectionValue:`.facetwp-selection-value`,toggle:`.facetwp-toggle:not(.facetwp-hidden)`,fieldset:`fieldset`,legend:`legend`,facet:`.facetwp-facet`,fSelectWrap:`.fs-wrap`},on={loading:`loading`,hidden:`hidden`},sn=`-facetwp-template-view`,cn=class{selectorPrefix;scrollToTopOffset;refreshedFselectFacet=null;constructor(e={}){this.selectorPrefix=e.selectorPrefix||`js-brave`,this.scrollToTopOffset=e.scrollToTopOffset||150,this.init()}init(){this.bindEvents()}bindEvents(){document.addEventListener(`facetwp-refresh`,()=>this.onFacetRefresh()),document.addEventListener(`facetwp-loaded`,e=>this.onFacetLoad(e)),document.addEventListener(`click`,e=>{let t=e.target;t instanceof Element&&t.closest(V.pageWithHref)&&e.preventDefault()}),window.FWP&&window.FWP.loaded&&this.onFacetLoad()}onFacetRefresh(){let e=document.getElementById(this.selectorPrefix+sn);e&&(this.captureFselectFocus(e),e.classList.add(on.loading))}onFacetLoad(e){let t=document.getElementById(this.selectorPrefix+sn);t&&(t.classList.remove(on.loading),e&&e.preventDefault(),this.scrollToElementTop(t.getBoundingClientRect().top),this.restoreFselectFocus(t),this.addAriaLabelToSearch(),this.changeTabFocusPager(),this.toggleFilterLabelAndButton(),this.updateShowMoreLabels(),setTimeout(()=>{this.removeRoleNavigationFromPager(),this.enhancePagerLinks(),this.addAriaCurrentToPager(),this.changeAriaLabelSelections()},1))}scrollToElementTop(e){if(!window.FWP?.loaded)return;let t=e+window.scrollY-this.scrollToTopOffset;window.scrollY<t||window.scrollTo({top:t,behavior:`smooth`})}captureFselectFocus(e){let t=e.ownerDocument.activeElement?.closest(V.facet);this.refreshedFselectFacet=t?.querySelector(V.fSelectWrap)instanceof Element?t.getAttribute(`data-name`):null}restoreFselectFocus(e){if(!this.refreshedFselectFacet)return;let t=e.ownerDocument;if(t.activeElement!==t.body){this.refreshedFselectFacet=null;return}t.querySelector(`${V.facet}[data-name="${this.refreshedFselectFacet}"] ${V.fSelectWrap}`)?.focus(),this.refreshedFselectFacet=null}addAriaLabelToSearch(){let e=document.querySelector(V.search);if(!e)return;let t=e.getAttribute(`placeholder`);t&&(t||t!==``?e.setAttribute(`aria-label`,t):e.setAttribute(`aria-label`,`Zoek op trefwoord`))}removeRoleNavigationFromPager(){let e=document.querySelector(V.pager);e&&e.parentElement?.tagName.toLowerCase()===`nav`&&e.removeAttribute(`role`)}enhancePagerLinks(){document.querySelectorAll(V.pageWithData).forEac
50h(e=>{let t=e.getAttribute(`data-page`);t&&(e.setAttribute(`href`,this.buildPagerHref(t)),e.removeAttribute(`role`),e.removeAttribute(`tabindex`))})}buildPagerHref(e){let t=`${window.FWP_JSON?.prefix??`_`}paged`,n=new URL(window.location.href);return Number(e)>1?n.searchParams.set(t,e):n.searchParams.delete(t),`${n.pathname}${n.search}${n.hash}`}addAriaCurrentToPager(){let e=document.querySelector(V.pageActive);e&&e.setAttribute(`aria-current`,`page`)}changeAriaLabelSelections(){let e=document.querySelectorAll(V.selectionValue);e.length!==0&&e.forEach(e=>{let t=e.getAttribute(`aria-label`);e.setAttribute(`aria-label`,t+`, verwijder deze selectie`)})}changeTabFocusPager(){let e=document.querySelectorAll(V.page);e.length!==0&&e.forEach(e=>{e.addEventListener(`keyup`,e=>{e.key===`Enter`&&this.changeTabFocusToTemplate()})})}changeTabFocusToTemplate(){setTimeout(()=>{let e=document.getElementById(this.selectorPrefix+sn);e&&an(e)?.focus()},500)}toggleFilterLabelAndButton(){let e=document.querySelectorAll(`.${this.selectorPrefix}-facetwp-filter-label, .${this.selectorPrefix}-facetwp-btn-reset`);if(e.length===0)return;let t=window.FWP?.buildQueryString(),n=t&&!/^_paged=\d+$|s=[^&]*&_paged=\d+$|s=[^&]*$/.test(t);e.forEach(e=>{e.classList.toggle(on.hidden,!n)})}updateShowMoreLabels(){document.querySelectorAll(V.toggle).forEach(e=>{let t=e.textContent.match(/^Toon (\d+) meer$/i);if(t){let n=e.closest(V.fieldset)?.querySelector(V.legend);if(!n)return;let r=n.textContent.trim().toLowerCase().replace(/['â]/g,``),i=`Toon ${t[1]} meer${r?` `+r:``}`;e.textContent=i,e.setAttribute(`aria-label`,i)}})}},H={dateFacet:`.facetwp-type-date_range`,dateMin:`.facetwp-date-min[type="text"]`,dateMax:`.facetwp-date-max[type="text"]`,datePicker:`.fdate-wrap`},ln={minFocused:`facetwp-date-min-is-focused`,maxFocused:`facetwp-date-max-is-focused`},un=class{MOBILE_BREAKPOINT;resizeRafId=null;resizeObserver=null;constructor(e={}){this.MOBILE_BREAKPOINT=e.mobileBreakpoint??960,this.init()}init(){this.bindEvents()}bindEvents(){if(document.addEventListener(`focusin`,this.handleDateInputFocus),document.addEventListener(`facetwp-loaded`,this.syncDatePickerToFocusedInput),`ResizeObserver`in globalThis){this.resizeObserver=new ResizeObserver(()=>this.handleViewportResize()),this.resizeObserver.observe(document.documentElement);return}window.addEventListener(`resize`,this.handleViewportResize)}destroy(){document.removeEventListener(`focusin`,this.handleDateInputFocus),document.removeEventListener(`facetwp-loaded`,this.syncDatePickerToFocusedInput),window.removeEventListener(`resize`,this.handleViewportResize),this.resizeObserver&&=(this.resizeObserver.disconnect(),null),this.resizeRafId!==null&&(cancelAnimationFrame(this.resizeRafId),this.resizeRafId=null)}handleDateInputFocus=e=>{let t=e.target;if(!this.isDateInput(t))return;let n=t.closest(H.dateFacet);n&&(this.moveDatePicker(n),this.setDatePickerState(t))};isDateInput(e){return!e||!(e instanceof HTMLElement)?!1:e.matches(H.dateMin)||e.matches(H.dateMax)}syncDatePickerToFocusedInput=()=>{let e=document.documentElement.ownerDocument.activeElement;if(!this.isDateInput(e))return;let t=e.closest(H.dateFacet);t&&(this.moveDatePicker(t),this.setDatePickerState(e))};handleViewportResize=()=>{this.resizeRafId!==null&&cancelAnimationFrame(this.resizeRafId),this.resizeRafId=requestAnimationFrame(()=>{this.resizeRafId=null,this.syncDatePickerToFocusedInput()})};moveDatePicker(e){let t=document.querySelector(H.datePicker);if(t){if(window.innerWidth>this.MOBILE_BREAKPOINT){document.body.appendChild(t);return}e.appendChild(t)}}setDatePickerState(e){let t=document.querySelector(H.datePicker);t&&(t.classList.toggle(ln.minFocused,e.matches(H.dateMin)),t.classList.toggle(ln.maxFocused,e.matches(H.dateMax)))}};function dn(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var fn=!1;if(typeof window<`u`){var pn={get passive(){fn=!0}};window.addEventListener(`testPassive`,null,pn),window.removeEventListener(`testPassive`,null,pn)}var mn=typeof window<`u`&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||window.navigator.platform===`MacIntel`&&window.navigator.maxTouchPoints>1),U=[],hn=!1,gn=-1,W=void 0,G=void 0,_n=void 0,vn=function(e){return U.some(function(t){return!!(t.options.allowTouchMove&&t.options.allowTouchMove(e))})},yn=function(e){var t=e||window.event;return vn(t.target)||t.touches.length>1?!0:(t.preventDefault&&t.preventDefault(),!1)},bn=function(e){_n===void 0&&window.innerWidth-document.documentElement.clientWidth,W===void 0&&(W=document.body.style.overflow,document.body.style.overflow=`hidden`)},xn=function(){_n!==void 0&&(document.body.style.paddingRight=_n,_n=void 0),W!==void 0&&(document.body.style.overflow=W,W=void 0)},Sn=function(){return window.requestAnimationFrame(function(){if(G===void 0){G={position:document.body.style.position,top:document.body.style.top,left
50:document.body.style.left};var e=window,t=e.scrollY,n=e.scrollX,r=e.innerHeight;document.body.style.position=`fixed`,document.body.style.top=-t,document.body.style.left=-n,setTimeout(function(){return window.requestAnimationFrame(function(){var e=r-window.innerHeight;e&&t>=r&&(document.body.style.top=-(t+e))})},300)}})},Cn=function(){if(G!==void 0){var e=-parseInt(document.body.style.top,10),t=-parseInt(document.body.style.left,10);document.body.style.position=G.position,document.body.style.top=G.top,document.body.style.left=G.left,window.scrollTo(t,e),G=void 0}},wn=function(e){return e?e.scrollHeight-e.scrollTop<=e.clientHeight:!1},Tn=function(e,t){var n=e.targetTouches[0].clientY-gn;return vn(e.target)?!1:t&&t.scrollTop===0&&n>0||wn(t)&&n<0?yn(e):(e.stopPropagation(),!0)},En=function(e,t){if(!e){console.error(`disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.`);return}if(!U.some(function(t){return t.targetElement===e})){var n={targetElement:e,options:{}};U=[].concat(dn(U),[n]),mn?Sn():bn(),mn&&(e.ontouchstart=function(e){e.targetTouches.length===1&&(gn=e.targetTouches[0].clientY)},e.ontouchmove=function(t){t.targetTouches.length===1&&Tn(t,e)},hn||=(document.addEventListener(`touchmove`,yn,fn?{passive:!1}:void 0),!0))}},Dn=function(e){if(!e){console.error(`enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.`);return}U=U.filter(function(t){return t.targetElement!==e}),mn&&(e.ontouchstart=null,e.ontouchmove=null,hn&&U.length===0&&(document.removeEventListener(`touchmove`,yn,fn?{passive:!1}:void 0),hn=!1)),mn?Cn():xn()},On=[`input:not([inert]):not([inert] *)`,`select:not([inert]):not([inert] *)`,`textarea:not([inert]):not([inert] *)`,`a[href]:not([inert]):not([inert] *)`,`button:not([inert]):not([inert] *)`,`[tabindex]:not(slot):not([inert]):not([inert] *)`,`audio[controls]:not([inert]):not([inert] *)`,`video[controls]:not([inert]):not([inert] *)`,`[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)`,`details>summary:first-of-type:not([inert]):not([inert] *)`,`details:not([inert]):not([inert] *)`],kn=On.join(`,`),An=typeof Element>`u`,K=An?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,jn=!An&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)==null?void 0:t.call(e)}:function(e){return e?.ownerDocument},Mn=function(e,t){var n;t===void 0&&(t=!0);var r=e==null||(n=e.getAttribute)==null?void 0:n.call(e,`inert`);return r===``||r===`true`||t&&e&&(typeof e.closest==`function`?e.closest(`[inert]`):Mn(e.parentNode))},Nn=function(e){var t,n=e==null||(t=e.getAttribute)==null?void 0:t.call(e,`contenteditable`);return n===``||n===`true`},Pn=function(e,t,n){if(Mn(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(kn));return t&&K.call(e,kn)&&r.unshift(e),r=r.filter(n),r},Fn=function(e,t,n){for(var r=[],i=Array.from(e);i.length;){var a=i.shift();if(!Mn(a,!1)){if(a.tagName===`SLOT`){var o=a.assignedElements(),s=Fn(o.length?o:a.children,!0,n);
vendor: 14,927 bytes, lines 50-52
50n.flatten?r.push.apply(r,s):r.push({scopeParent:a,candidates:s})}else{K.call(a,kn)&&n.filter(a)&&(t||!e.includes(a))&&r.push(a);var c=a.shadowRoot||typeof n.getShadowRoot==`function`&&n.getShadowRoot(a),l=!Mn(c,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(a));if(c&&l){var u=Fn(c===!0?a.children:c.children,!0,n);n.flatten?r.push.apply(r,u):r.push({scopeParent:a,candidates:u})}else i.unshift.apply(i,a.children)}}}return r},In=function(e){return!isNaN(parseInt(e.getAttribute(`tabindex`),10))},q=function(e){if(!e)throw Error(`No node provided`);return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||Nn(e))&&!In(e)?0:e.tabIndex},Ln=function(e,t){var n=q(e);return n<0&&t&&!In(e)?0:n},Rn=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},zn=function(e){return e.tagName===`INPUT`},Bn=function(e){return zn(e)&&e.type===`hidden`},Vn=function(e){return e.tagName===`DETAILS`&&Array.prototype.slice.apply(e.children).some(function(e){return e.tagName===`SUMMARY`})},Hn=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]},Un=function(e){if(!e.name)return!0;var t=e.form||jn(e),n=function(e){return t.querySelectorAll(`input[type="radio"][name="`+e+`"]`)},r;if(typeof window<`u`&&typeof window.CSS<`u`&&typeof window.CSS.escape==`function`)r=n(window.CSS.escape(e.name));else try{r=n(e.name)}catch(e){return console.error(`Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s`,e.message),!1}var i=Hn(r,e.form);return!i||i===e},Wn=function(e){return zn(e)&&e.type===`radio`},Gn=function(e){return Wn(e)&&!Un(e)},Kn=function(e){var t=e&&jn(e),n=t?.host,r=!1;if(t&&t!==e){var i,a,o;for(r=!!((i=n)!=null&&(a=i.ownerDocument)!=null&&a.contains(n)||e!=null&&(o=e.ownerDocument)!=null&&o.contains(e));!r&&n;){var s,c;t=jn(n),n=t?.host,r=!!((s=n)!=null&&(c=s.ownerDocument)!=null&&c.contains(n))}}return r},qn=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return n===0&&r===0},Jn=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if(n===`full-native`&&`checkVisibility`in e)return!e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});if(getComputedStyle(e).visibility===`hidden`)return!0;var i=K.call(e,`details>summary:first-of-type`)?e.parentElement:e;if(K.call(i,`details:not([open]) *`))return!0;if(!n||n===`full`||n===`full-native`||n===`legacy-full`){if(typeof r==`function`){for(var a=e;e;){var o=e.parentElement,s=jn(e);if(o&&!o.shadowRoot&&r(o)===!0)return qn(e);e=e.assignedSlot?e.assignedSlot:!o&&s!==e.ownerDocument?s.host:o}e=a}if(Kn(e))return!e.getClientRects().length;if(n!==`legacy-full`)return!0}else if(n===`non-zero-area`)return qn(e);return!1},Yn=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName===`FIELDSET`&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if(r.tagName===`LEGEND`)return K.call(t,`fieldset[disabled] *`)?!0:!r.contains(e)}return!0}t=t.parentElement}return!1},Xn=function(e,t){return!(t.disabled||Bn(t)||Jn(t,e)||Vn(t)||Yn(t))},Zn=function(e,t){return!(Gn(t)||q(t)<0||!Xn(e,t))},Qn=function(e){var t=parseInt(e.getAttribute(`tabindex`),10);return!!(isNaN(t)||t>=0)},$n=function(e){var t=[],n=[];return e.forEach(function(e,r){var i=!!e.scopeParent,a=i?e.scopeParent:e,o=Ln(a,i),s=i?$n(e.candidates):a;o===0?i?t.push.apply(t,s):t.push(a):n.push({documentOrder:r,tabIndex:o,item:e,isScope:i,content:s})}),n.sort(Rn).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(t)},er=function(e,t){return t||={},$n(t.getShadowRoot?Fn([e],t.includeContainer,{filter:Zn.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:Qn}):Pn(e,t.includeContainer,Zn.bind(null,t)))},tr=function(e,t){return t||={},t.getShadowRoot?Fn([e],t.includeContainer,{filter:Xn.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):Pn(e,t.includeContainer,Xn.bind(null,t))},J=function(e,t){if(t||={},!e)throw Error(`No node provided`);return K.call(e,kn)!==!1&&Zn(t,e)},nr=On.concat(`iframe:not([inert]):not([inert] *)`).join(`,`),rr=function(e,t){if(t||={},!e)throw Error(`No node provided`);return K.call(e,nr)!==!1&&Xn(t,e)};function ir(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ar(e){if(Array.isArray(e))return ir(e)}function or(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(!n){if(Array.isArray(e)||(n=hr(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError(`Invalid attempt to iterate non-iterable instance. 51In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw a}}}}function sr(e,t,n){return(t=mr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cr(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function lr(){throw TypeError(`Invalid attempt to spread non-iterable instance. 52In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ur(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function dr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?ur(Object(n),!0).forEach(function(t){sr(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ur(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function fr(e){return ar(e)||cr(e)||hr(e)||lr()}function pr(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function mr(e){var t=pr(e,`string`);return typeof t==`symbol`?t:t+``}function hr(e,t){if(e){if(typeof e==`string`)return ir(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ir(e,t):void 0}}var Y={getActiveTrap:function(e){return e?.length>0?e[e.length-1]:null},activateTrap:function(e,t){t!==Y.getActiveTrap(e)&&Y.pauseTrap(e);var n=e.indexOf(t);n===-1||e.splice(n,1),e.push(t)},deactivateTrap:function(e,t){var n=e.indexOf(t);n!==-1&&e.splice(n,1),Y.unpauseTrap(e)},pauseTrap:function(e){Y.getActiveTrap(e)?._setPausedState(!0)},unpauseTrap:function(e){var t=Y.getActiveTrap(e);t&&!t._isManuallyPaused()&&t._setPausedState(!1)}},gr=function(e){return e.tagName&&e.tagName.toLowerCase()===`input`&&typeof e.select==`function`},_r=function(e){return e?.key===`Escape`||e?.key===`Esc`||e?.keyCode===27},X=function(e){return e?.key===`Tab`||e?.keyCode===9},vr=function(e){return X(e)&&!e.shiftKey},yr=function(e){return X(e)&&e.shiftKey},br=function(e){return setTimeout(e,0)},Z=function(e){var t=[...arguments].slice(1);return typeof e==`function`?e.apply(void 0,t):e},xr=function(e){return e.target.shadowRoot&&typeof e.composedPath==`function`?e.composedPath()[0]:e.target},Sr=[],Cr=function(e,t){var n=t?.document||document,r=t?.trapStack||Sr,i=dr({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isolateSubtrees:!1,isKeyForward:vr,isKeyBackward:yr},t),a={containers:[],containerGroups:[],tabbableGroups:[],adjacentElements:new Set,alreadySilent:new Set,nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},o,s=function(e,t,n){return e&&e[t]!==void 0?e[t]:i[n||t]},c=function(e,t){var n=typeof t?.composedPath==`function`?t.composedPath():void 0;return a.containerGroups.findIndex(function(t){var r=t.container,i=t.tabbableNodes;return r.contains(e)||n?.includes(r)||i.find(function(t){return t===e})})},l=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.hasFallback,a=r!==void 0&&r,o=t.params,s=o===void 0?[]:o,c=i[e];if(typeof c==`function`&&(c=c.apply(void 0,fr(s))),c===!0&&(c=void 0),!c){if(c===void 0||c===!1)return c;throw Error(`\`${e}\` was specified but was not a node, or did not return a node`)}var l=c;if(typeof c==`string`){try{l=n.querySelector(c)}catch(t){throw Error(`\`${e}\` appears to be an invalid selector; error="${t.message}"`)}if(!l&&!a)throw Error(`\`${e}\` as selector refers to no known node`)}return l},u=function(){var e=l(`initialFocus`,{hasFallback:!0});if(e===!1)return!1;if(e===void 0||e&&!rr(e,i.tabbableOptions)){if(c(n.activeElement)>=0)e=n.activeElement;else{var t=a.tabbableGroups[0];e=t&&t.firstTabbableNode||l(`fallbackFocus`)}}else e===null&&(e=l(`fallbackFocus`));if(!e)throw Error(`Your focus-trap needs to have at least one focusable element`);return e},d=function(){if(a.containerGroups=a.containers.map(function(e){var t=er(e,i.tabbableOptions),n=tr(e,i.tabbableOptions),r=t.length>0?t[0]:void 0,a=t.length>0?t[t.length-1]:void 0,o=n.find(function(e){return J(e)}),s=n.slice().reverse().find(function(e){return J(e)});return{container:e,tabbableNodes:t,focusableNodes:n,posTabIndexesFound:!!t.find(function(e){return q(e)>0}),firstTabbableNode:r,lastTabbableNode:a,firstDomTabbableNode:o,lastDomTabbableNode:s,nextTabbableNode:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,i=t.indexOf(e);return i<0?r?n.slice(n.indexOf(e)+1).find(function(e){return J(e)}):n.slice(0,n.indexOf(e)).reverse().find(function(e){return J(e)}):t[i+(r?1:-1)]}}}),a.tabbableGroups=a.containerGroups.filter(function(e){return e.tabbableNodes.length>0}),a.tabbableGroups.length<=0&&!l(`fallbackFocus`))throw Error(`Your focus-trap must have at least one container with at least one tabbable node in it at all times`);if(a.containerGroups.find(function(e){return e.posTabIndexesFound})&&a.containerGroups.length>1)throw Error(`At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.`)},f=function(e){var t=e.activeElement;if(t)return t.shadowRoot&&t.shadowRoot.activeElement!==null?f(t.shadowRoot):t},p=function(e){if(e!==!1&&e!==f(document)){if(!e||!e.focus){p(u());return}e.focus({preventScroll:!!i.preventScroll}),a.mostRecentlyFocusedNode=e,gr(e)&&e.select()}},m=function(e){var t=l(`setReturnFocus`,{params:[e]});return t||t!==!1&&e},h=function(e){var t=e.target,n=e.event,r=e.isBackward,o=r!==void 0&&r;t||=xr(n),d();var s=null;if(a.tabbableGroups.length>0){var u=c(t,n),f=u>=0?a.containerGroups[u]:void 0;if(u<0)s=o?a.tabbableGroups[a.tabbableGroups.length-1].lastTabbableNode:a.tabbableGroups[0].firstTabbableNode;else if(o){var p=a.tabbableGroups.findIndex(function(e){var n=e.firstTabbableNode;return t===n});if(p<0&&(f.container===t||rr(t,i.tabbableOptions)&&!J(t,i.tabbableOptions)&&!f.nextTabbableNode(t,!1))&&(p=u),p>=0){var m=p===0?a.tabbableGroups.length-1:p-1,h=a.tabbableGroups[m];s=q(t)>=0?h.lastTabbableNode:h.lastDomTabbableNode}else X(n)||(s=f.nextTabbableNode(t,!1))}else{var g=a.tabbableGroups.findIndex(function(e){var n=e.lastTabbableNode;return t===n});if(g<0&&(f.container===t||rr(t,i.tabbableOptions)&&!J(t,i.tabbableOptions)&&!f.nextTabbableNode(t))&&(g=u),g>=0){var _=g===a.tabbableGroups.length-1?0:g+1,v=a.tabbableGroups[_];s=q(t)>=0?v.firstTabbableNode:v.firstDomTabbableNode}else X(n)||(s=f.nextTabbableNode(t))}}else s=l(`fallbackFocus`);return s},g=function(e){if(!(c(xr(e),e)>=0)){if(Z(i.clickOutsideDeactivates,e)){o.deactivate({returnFocus:i.returnFocusOnDeactivate});return}Z(i.allowOutsideClick,e)||e.preventDefault()}},_=function(e){var t=xr(e),n=c(t,e)>=0;if(n||t instanceof Document)n&&(a.mostRecentlyFocusedNode=t);else{e.stopImmediatePropagation();var r,o=!0;if(a.mostRecentlyFocusedNode){if(q(a.mostRecentlyFocusedNode)>0){var s=c(a.mostRecentlyFocusedNode),l=a.containerGroups[s].tabbableNodes;if(l.length>0){var d=l.findIndex(function(e){return e===a.mostRecentlyFocusedNode});d>=0&&(i.isKeyForward(a.recentNavEvent)?d+1<l.length&&(r=l[d+1],o=!1):d-1>=0&&(r=l[d-1],o=!1))}}else a.containerGroups.some(function(e){return e.tabbableNodes.some(function(e){return q(e)>0})})||(o=!1)}else o=!1;o&&(r=h({target:a.mostRecentlyFocusedNode,isBackward:i.isKeyBackward(a.recentNavEvent)})),p(r||a.mostRecentlyFocusedNode||u())}a.recentNavEvent=void 0},v=function(e){var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1];a.recentNavEvent=e;var n=h({event:e,isBackward:t});n&&(X(e)&&e.preventDefault(),p(n))},y=function(e){(i.isKeyForward(e)||i.isKeyBackward(e))&&v(e,i.isKeyBackward(e))},b=function(e){_r(e)&&Z(i.escapeDeactivates,e)!==!1&&(e.preventDefault(),o.deactivate())},x=function(e){c(xr(e),e)>=0||Z(i.clickOutsideDeactivates,e)||Z(i.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},S=function(){if(a.active)return Y.activateTrap(r,o),a.delayInitialFocusTimer=i.delayInitialFocus?br(function(){p(u())}):p(u()),n.addEventListener(`focusin`,_,!0),n.addEventListener(`mousedown`,g,{capture:!0,passive:!1}),n.addEventListener(`touchstart`,g,{capture:!0,passive:!1}),n.addEventListener(`click`,x,{capture:!0,passive:!1}),n.addEventListener(`keydown`,y,{capture:!0,passive:!1}),n.addEventListener(`keydown`,b),o},C=function(e){a.active&&!a.paused&&o._setSubtreeIsolation(!1),a.adjacentElements.clear(),a.alreadySilent.clear();var t=new Set,n=new Set,r=or(e),i;try{for(r.s();!(i=r.n()).done;){var s=i.value;t.add(s);for(var c=typeof ShadowRoot<`u`&&s.getRootNode()instanceof ShadowRoot,l=s;l;){t.add(l);var u=l.parentElement,d=[];u?d=u.children:!u&&c&&(d=l.getRootNode().children,u=l.getRootNode().host,c=typeof ShadowRoot<`u`&&u.getRootNode()instanceof ShadowRoot);var f=or(d),p;try{for(f.s();!(p=f.n()).done;){var m=p.value;n.add(m)}}catch(e){f.e(e)}finally{f.f()}l=u}}}catch(e){r.e(e)}finally{r.f()}t.forEach(function(e){n.delete(e)}),a.adjacentElements=n},w=function(){if(a.active)return n.removeEventListener(`focusin`,_,!0),n.removeEventListener(`mousedown`,g,!0),n.removeEventListener(`touchstart`,g,!0),n.removeEventListener(`click`,x,!0),n.removeEventListener(`keydown`,y,!0),n.removeEventListener(`keydown`,b),o},T=typeof window<`u`&&`MutationObserver`in window?new MutationObserver(function(e){e.some(function(e){return Array.from(e.removedNodes).some(function(e){return e===a.mostRecentlyFocusedNode})})&&p(u())}
52):void 0,E=function(){T&&(T.disconnect(),a.active&&!a.paused&&a.containers.map(function(e){T.observe(e,{subtree:!0,childList:!0})}))};return o={get active(){return a.active},get paused(){return a.paused},activate:function(e){if(a.active)return this;var t=s(e,`onActivate`),c=s(e,`onPostActivate`),l=s(e,`checkCanFocusTrap`),u=Y.getActiveTrap(r),p=!1;if(u&&!u.paused){var m;(m=u._setSubtreeIsolation)==null||m.call(u,!1),p=!0}try{l||d(),a.active=!0,a.paused=!1,a.nodeFocusedBeforeActivation=f(n),t?.();var h=function(){l&&d(),S(),E(),i.isolateSubtrees&&o._setSubtreeIsolation(!0),c?.()};if(l)return l(a.containers.concat()).then(h,h),this;h()}catch(e){if(u===Y.getActiveTrap(r)&&p){var g;(g=u._setSubtreeIsolation)==null||g.call(u,!0)}throw e}return this},deactivate:function(e){if(!a.active)return this;var t=dr({onDeactivate:i.onDeactivate,onPostDeactivate:i.onPostDeactivate,checkCanReturnFocus:i.checkCanReturnFocus},e);clearTimeout(a.delayInitialFocusTimer),a.delayInitialFocusTimer=void 0,a.paused||o._setSubtreeIsolation(!1),a.alreadySilent.clear(),w(),a.active=!1,a.paused=!1,E(),Y.deactivateTrap(r,o);var n=s(t,`onDeactivate`),c=s(t,`onPostDeactivate`),l=s(t,`checkCanReturnFocus`),u=s(t,`returnFocus`,`returnFocusOnDeactivate`);n?.();var d=function(){br(function(){u&&p(m(a.nodeFocusedBeforeActivation)),c?.()})};return u&&l?(l(m(a.nodeFocusedBeforeActivation)).then(d,d),this):(d(),this)},pause:function(e){return a.active?(a.manuallyPaused=!0,this._setPausedState(!0,e)):this},unpause:function(e){return a.active?(a.manuallyPaused=!1,r[r.length-1]===this?this._setPausedState(!1,e):this):this},updateContainerElements:function(e){return a.containers=[].concat(e).filter(
52Boolean).map(function(e){return typeof e==`string`?n.querySelector(e):e}),i.isolateSubtrees&&C(a.containers),a.active&&(d(),i.isolateSubtrees&&!a.paused&&o._setSubtreeIsolation(!0)),E(),this}},Object.defineProperties(o,{_isManuallyPaused:{value:function(){return a.manuallyPaused}},_setPausedState:{value:function(e,t){if(a.paused===e)return this;if(a.paused=e,e){var n=s(t,`onPause`),r=s(t,`onPostPause`);n?.(),w(),E(),o._setSubtreeIsolation(!1),r?.()}else{var i=s(t,`onUnpause`),c=s(t,`onPostUnpause`);i?.(),o._setSubtreeIsolation(!0),d(),S(),E(),c?.()}return this}},_setSubtreeIsolation:{value:function(e){i.isolateSubtrees&&a.adjacentElements.forEach(function(t){e?i.isolateSubtrees===`aria-hidden`?((t.ariaHidden===`true`||t.getAttribute(`aria-hidden`)?.toLowerCase()===`true`)&&a.alreadySilent.add(t),t.setAttribute(`aria-hidden`,`true`)):((t.inert||t.hasAttribute(`inert`))&&a.alreadySilent.add(t),t.setAttribute(`inert`,!0)):a.alreadySilent.has(t)||(i.isolateSubtrees===`aria-hidden`?t.removeAttribute(`aria-hidden`):t.removeAttribute(`inert`))})}}}),o.updateContainerElements(e),o},wr=async(e,t=5)=>{let n=e.map(e=>new Promise(n=>{let r=setInterval(()=>{getComputedStyle(e).visibility!==`hidden`&&(n(),clearInterval(r))},t)}));await Promise.all(n)};function Tr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}var Er={exports:{}},Dr;function Or(){return Dr||(Dr=1,(function(e){(function(t){let n=0,r=function(e,t){let i=`js-enabled`,a=this,o=!1;if(Array.isArray(e))return!!e.length&&e.map((e=>new r(e,t)));let s={init(){this.options=Object.assign({duration:500,ariaEnabled:!0,collapse:!0,showMultiple:!1,onlyChildNodes:!0,openOnInit:[],elementClass:`ac`,triggerClass:`ac-trigger`,panelClass:`ac-panel`,activeClass:`is-active`,beforeOpen:()=>{},onOpen:()=>{},beforeClose:()=>{},onClose:()=>{}},t);let n=typeof e==`string`;this.container=n?document.querySelector(e):e,this.createDefinitions(),a.attachEvents()},createDefinitions(){let{elementClass:e,openOnInit:t,onlyChildNodes:r}=this.options,a=r?this.container.childNodes:this.container.querySelectorAll(c(e));this.elements=Array.from(a).filter((t=>t.classList&&t.classList.contains(e))),this.firstElement=this.elements[0],this.lastElement=this.elements[this.elements.length-1],this.elements.filter((e=>!e.classList.contains(i))).forEach((e=>{e.classList.add(i),this.generateIDs(e),this.setARIA(e),this.setTransition(e);let r=this.elements.indexOf(e);n++,t.includes(r)?this.showElement(e,!1):this.closeElement(e,!1)}))},setTransition(e){let t=arguments.length>1&&arguments[1]!==void 0&&arguments[1],{duration:n,panelClass:r}=this.options;e.querySelector(c(r)).style.transitionDuration=t?null:`${n}ms`},generateIDs(e){let{triggerClass:t,panelClass:r}=this.options,i=e.querySelector(c(t)),a=e.querySelector(c(r));e.setAttribute(`id`,e.id||`ac-${n}`),i.setAttribute(`id`,i.id||`ac-trigger-${n}`),a.setAttribute(`id`,a.id||`ac-panel-${n}`)},removeIDs(e){let{triggerClass:t,panelClass:n}=this.options,r=e.querySelector(c(t)),i=e.querySelector(c(n));e.id.startsWith(`ac-`)&&e.removeAttribute(`id`),r.id.startsWith(`ac-`)&&r.removeAttribute(`id`),i.id.startsWith(`ac-`)&&i.removeAttribute(`id`)},setARIA(e){let{ariaEnabled:t,triggerClass:n,panelClass:r}=this.options;if(!t)return;let i=e.querySelector(c(n)),a=e.querySelector(c(r));i.setAttribute(`role`,`button`),i.setAttribute(`aria-controls`,a.id),i.setAttribute(`aria-disabled`,!1),i.setAttribute(`aria-expanded`,!1),a.setAttribute(`role`,`region`),a.setAttribute(`aria-labelledby`,i.id)},updateARIA(e,t){let{ariaExpanded:n,ariaDisabled:r}=t,{ariaEnabled:i,triggerClass:a}=this.options;if(!i)return;let o=e.querySelector(c(a));o.setAttribute(`aria-expanded`,n),o.setAttribute(`aria-disabled`,r)},removeARIA(e){let{ariaEnabled:t,triggerClass:n,panelClass:r}=this.options;if(!t)return;let i=e.querySelector(c(n)),a=e.querySelector(c(r));i.removeAttribute(`role`),i.removeAttribute(`aria-controls`),i.removeAttribute(`aria-disabled`),i.removeAttribute(`aria-expanded`),a.removeAttribute(`role`),a.removeAttribute(`aria-labelledby`)},focus(e,t){e.preventDefault();let{triggerClass:n}=this.options;t.querySelector(c(n)).focus()},focusFirstElement(e){this.focus(e,this.firstElement),this.currFocusedIdx=0},focusLastElement(e){this.focus(e,this.lastElement),this.currFocusedIdx=this.elements.length-1},focusNextElement(e){let t=this.currFocusedIdx+1;if(t>this.elements.length-1)return this.focusFirstElement(e);this.focus(e,this.elements[t]),this.currFocusedIdx=t},focusPrevElement(e){let t=this.currFocusedIdx-1;if(t<0)return this.focusLastElement(e);this.focus(e,this.elements[t]),this.currFocusedIdx=t},showElement(e){let t=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],{panelClass:n,activeClass:r,collapse:i,beforeOpen:a}=this.options;t&&a(e);let o=e.querySelector(c(n)),s=o.scrollHeight;e.classList.add(r),requestAnimationFrame((()=>{requestAnimationFrame((()=>{o.style.height=t?`${s}px`:`auto`}))})),this.updateARIA(e,{ariaExpanded:!0,ariaDisabled:!i})},closeElement(e){let t=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],{panelClass:n,activeClass:r,beforeClose:i}=this.options,a=e.querySelector(c(n)),o=a.scrollHeight;e.classList.remove(r),t?(i(e),requestAnimationFrame((()=>{a.style.height=`${o}px`,requestAnimationFrame((()=>{a.style.height=0}))}))):a.style.height=0,this.updateARIA(e,{ariaExpanded:!1,ariaDisabled:!1})},toggleElement(e){let{activeClass:t,collapse:n}=this.options,r=e.classList.contains(t);if(!r||n)return r?this.closeElement(e):this.showElement(e)},closeElements(){let{activeClass:e,showMultiple:t}=this.options;
52t||this.elements.forEach(((t,n)=>{t.classList.contains(e)&&n!==this.currFocusedIdx&&this.closeElement(t)}))},handleClick(e){let t=e.currentTarget;this.elements.forEach(((n,r)=>{n.contains(t)&&e.target.nodeName!==`A`&&(this.currFocusedIdx=r,this.closeElements(),this.focus(e,n),this.toggleElement(n))}))},handleKeydown(e){switch(e.key){case`ArrowUp`:return this.focusPrevElement(e);case`ArrowDown`:return this.focusNextElement(e);case`Home`:return this.focusFirstElement(e);case`End`:return this.focusLastElement(e);default:return null}},handleFocus(e){let t=e.currentTarget,n=this.elements.find((e=>e.contains(t)));this.currFocusedIdx=this.elements.indexOf(n)},handleTransitionEnd(e){if(e.stopPropagation(),e.propertyName!==`height`)return;let{onOpen:t,onClose:n}=this.options,r=e.currentTarget,i=parseInt(r.style.height),a=this.elements.find((e=>e.contains(r)));i>0?(r.style.height=`auto`,t(a)):n(a)}};this.attachEvents=()=>{if(o)return;let{triggerClass:e,panelClass:t}=s.options;s.handleClick=s.handleClick.bind(s),s.handleKeydown=s.handleKeydown.bind(s),s.handleFocus=s.handleFocus.bind(s),s.handleTransitionEnd=s.handleTransitionEnd.bind(s),s.elements.forEach((n=>{let r=n.querySelector(c(e)),i=n.querySelector(c(t));r.addEventListener(`click`,s.handleClick),r.addEventListener(`keydown`,s.handleKeydown),r.addEventListener(`focus`,s.handleFocus),i.addEventListener(`transitionend`,s.handleTransitionEnd)})),o=!0},this.detachEvents=()=>{if(!o)return;let{triggerClass:e,panelClass:t}=s.options;s.elements.forEach((n=>{let r=n.querySelector(c(e)),i=n.querySelector(c(t));r.removeEventListener(`click`,s.handleClick),r.removeEventListener(`keydown`,s.handleKeydown),r.removeEventListener(`focus`,s.handleFocus),i.removeEventListener(`transitionend`,s.handleTransitionEnd)})),o=!1},this.toggle=e=>{let t=s.elements[e];t&&s.toggleElement(t)},this.open=e=>{let t=s.elements[e];t&&s.showElement(t)},this.openAll=()=>{let{activeClass:e,onOpen:t}=s.options;s.elements.forEach((n=>{n.classList.contains(e)||(s.showElement(n,!1),t(n))}))},this.close=e=>{let t=s.elements[e];t&&s.closeElement(t)},this.closeAll=()=>{let{activeClass:e,onClose:t}=s.options;s.elements.forEach((n=>{n.classList.contains(e)&&(s.closeElement(n,!1),t(n))}))},this.destroy=()=>{this.detachEvents(),this.openAll(),s.elements.forEach((e=>{s.removeIDs(e),s.removeARIA(e),s.setTransition(e,!0),e.classList.remove(i)})),o=!0},this.update=()=>{s.createDefinitions(),this.detachEvents(),this.attachEvents()};let c=e=>`.${CSS.escape(e)}`;s.init()};e.exports===void 0?t.Accordion=r:e.exports=r})(window)})(Er)),Er.exports}var kr=Tr(Or()),Q={wrapper:`.accordion-wrapper`,item:`.ac`,panel:`.ac-panel`},Ar={defaultOpen:`is-open`,hidden:`hidden`},jr=class{constructor(){let e=this.getAccordionWrappers();e.length!==0&&e.forEach(this.initAccordion,this)}initAccordion(e){let t=this.getAccordionItems(e);if(!t||t.length===0)return;let n=this.getDefaultOpenItemIndexes(t);t.forEach((e,t)=>{n.includes(t)||e.querySelector(Q.panel)?.classList.add(Ar.hidden)}
52),new kr(e,{showMultiple:e.dataset.multiple===`true`,openOnInit:n,ariaEnabled:!0,duration:400,beforeOpen:e=>{e.querySelector(Q.panel)?.classList.remove(Ar.hidden)},onClose:e=>{e.querySelector(Q.panel)?.classList.add(Ar.hidden)}})}getAccordionWrappers(){let e=document.querySelectorAll(Q.wrapper);return Array.from(e)}getAccordionItems(e){let t=e.querySelectorAll(Q.item);return Array.from(t)}getDefaultOpenItemIndexes(e){return e.flatMap((e,t)=>e.classList.contains(Ar.defaultOpen)?[t]:[])}},Mr=class{constructor(e){this.dialog=e,this.useShow=this.usesShow();let t={clickOutsideDeactivates:!0,checkCanFocusTrap:wr,onActivate:()=>{this.useShow?this.dialog.show():(this.dialog.showModal(),En(this.dialog))},onDeactivate:()=>{this.dialog.close(),this.useShow||Dn(this.dialog)}};this.focusTrap=Cr(this.dialog,t),this.initTriggers()}dialog;focusTrap;useShow;usesShow(){return this.dialog.hasAttribute(`data-use-show`)&&this.dialog.getAttribute(`data-use-show`)!==`false`}initTriggers(){document.querySelectorAll(`[data-dialog-id="${this.dialog.id}"]`).forEach(e=>{e.addEventListener(`click`,()=>this.toggle())})}isActive(){return this.focusTrap.active}open(){this.isActive()||this.focusTrap.activate()}close(){this.isActive()&&this.focusTrap.deactivate()}toggle(){this.isActive()?this.close():this.open()}},Nr=`.js-brave-dialog`,Pr=class{selector;dialogs=new Map;constructor(e={}){this.selector=e.selector||Nr,document.querySelectorAll(this.selector).forEach(e=>{e.id&&this.dialogs.set(e.id,new Mr(e))})}has(e){return this.dialogs.has(e)}get(e){return this.dialogs.get(e)}open(e){this.has(e)&&this.get(e).open()}
52close(e){this.has(e)&&this.get(e).close()}toggle(e){this.has(e)&&this.get(e).toggle()}closeAll(){this.dialogs.forEach(e=>e.close())}},$={dropdown:`.brave-nav-dropdown`,navItem:`.brave-nav-item`,link:`.brave-nav-link`,linkHasChildren:`.brave-nav-link-has-children`},Fr=`brave-nav-toggle-`,Ir=`brave-nav-dropdown-`,Lr=class e{static uid=0;mode;activeDropdownToggleLinks=new Set;container;dropdownToggleLinks;constructor(e){this.container=e,this.dropdownToggleLinks=[...this.container.querySelectorAll($.linkHasChildren)],this.mode=this.detectMode(),this.bindEvents()}detectMode(){return this.container.querySelector($.dropdown)?.dataset.mode===`hover`?`hover`:`click`}bindEvents(){this.dropdownToggleLinks.length&&(this.initExpandableMenuItems(),this.container.addEventListener(`click`,this.onContainerClick),this.container.addEventListener(`keydown`,this.onKeyDown),this.mode===`hover`&&this.initHoverEvents())}initExpandableMenuItems(){this.dropdownToggleLinks.forEach(e=>{this.setupAccessibility(e)})}initHoverEvents(){this.dropdownToggleLinks.forEach(e=>{let t=e.closest($.navItem);t&&(t.addEventListener(`mouseenter`,()=>this.openDropdown(e)),t.addEventListener(`mouseleave`,()=>{this.activeDropdownToggleLinks.has(e)||this.closeDropdown(e)}))})}setupAccessibility(t){t.setAttribute(`aria-expanded`,`false`);let n=t.closest($.navItem)?.querySelector($.dropdown);n&&(e.uid+=1,t.id||=Fr+e.uid,n.id||=Ir+e.uid,n.setAttribute(`aria-labelledby`,t.id),t.setAttribute(`aria-controls`,n.id))}onContainerClick=e=>{let t=e.target.closest($.linkHasChildren);!t||!this.container.contains(t)||this.onClickToggle(e,t)};onClickToggle(e,t){let n=t.getAttribute(`aria-expanded`)===`true`;if(this.mode===`click`){e.preventDefault(),e.stopPropagation(),n?this.closeDropdown(t):(this.closeAllDropdowns(),this.openDropdown(t));return}this.mode===`hover`&&(e.stopPropagation(),n?(this.activeDropdownToggleLinks.delete(t),this.closeDropdown(t)):(this.activeDropdownToggleLinks.add(t),this.openDropdown(t)))}onKeyDown=e=>{if(e.altKey||e.ctrlKey||e.metaKey||e.shiftKey)return;let t=e.target?.closest($.link);if(!t)return;let n=this.linksAround(t),r=this.nextLink(e.key,n,n.indexOf(t),this.firstExpandedLink(t));r&&(e.preventDefault(),r.focus())};linksAround(e){let t=e.closest($.dropdown);return[...this.container.querySelectorAll($.link)].filter(e=>e.closest($.dropdown)===t)}firstExpandedLink(e){if(e.getAttribute(`aria-expanded`)!==`true`)return null;let t=e.getAttribute(`aria-controls`);return t?document.getElementById(t)?.querySelector($.link)??null:null}nextLink(e,t,n,r){switch(e){case`ArrowDown`:case`ArrowRight`:return r??t[Math.min(n+1,t.length-1)];case`ArrowUp`:case`ArrowLeft`:return t[Math.max(n-1,0)];case`Home`:return t[0];case`End`:return t[t.length-1];default:return}}openDropdown(e){e.setAttribute(`aria-expanded`,`true`)}closeDropdown(e){e.setAttribute(`aria-expanded`,`false`)}closeAllDropdowns(){this.activeDropdownToggleLinks.clear(),this.dropdownToggleLinks.forEach(e=>{this.closeDropdown(e)})}onKeyUp(e){if(e.key!==`Escape`)return;this.closeAllDropdowns();let t=e.target;if(!t)return;let n=t.closest($.dropdown);if(!n)return;let r=n.closest($.navItem);r&&r.querySelector($.linkHasChildren)?.focus()}onClickDocument(e){let t=e.target;this.container.contains(t)||this.closeAllDropdowns()}onFocusIn(e){let t=e.target;t instanceof Element&&(this.mode===`click`&&this.container.contains(t)||this.mode===`hover`&&t.closest($.dropdown)||this.closeAllDropdowns())}},Rr=`.brave-nav`,zr=class{navigations=[];constructor(){this.init(),this.bindGlobalEvents()}init(){document.querySelectorAll(Rr).forEach(e=>{this.navigations.push(new Lr(e))})}bindGlobalEvents(){document.addEventListener(`keyup`,this.onKeyUp),document.addEventListener(`click`,this.onDocumentClick),document.addEventListener(`focusin`,this.onFocusIn)}onKeyUp=e=>{this.navigations.forEach(t=>{t.onKeyUp(e)})};onDocumentClick=e=>{this.navigations.forEach(t=>{t.onClickDocument(e)})};onFocusIn=e=>{this.navigations.forEach(t=>{t.onFocusIn(e)})}},Br=class{selector;excludedClasses;excludedUrlKeywords;icon;insertIconBeforeText;constructor(e={}
52){this.selector=e.selector||``,this.excludedClasses=e.excludedClasses||[],this.excludedUrlKeywords=e.excludedUrlKeywords||[],this.icon=e.icon||null,this.insertIconBeforeText=e.insertIconBeforeText||!1}shouldIgnore(e,t){return!t||t===`#`||this.isRelativePath(t)?!0:this.excludedClasses.some(t=>e.classList.contains(t))||this.excludedUrlKeywords.some(e=>t.includes(e))}insertIcon(e){if(this.icon){if(typeof this.icon==`string`){let t=document.createElement(`span`);t.innerHTML=this.icon;let n=t.firstElementChild;n&&(this.insertIconBeforeText?e.prepend(n):e.append(n))}typeof this.icon!=`string`&&(this.insertIconBeforeText?e.prepend(this.icon.cloneNode(!0)):e.append(this.icon.cloneNode(!0)))}}isRelativePath(e){return!e.includes(`://`)}},Vr=`sr-only`,Hr=class extends Br{constructor(e={}){super(e),this.init()}init(){document.querySelectorAll(this.selector).forEach(e=>{let t=e.getAttribute(`href`);if(t&&!this.shouldIgnore(e,t))try{new URL(t).hostname!==window.location.hostname&&(this.insertIcon(e),this.insertSrOnlyText(e,` (externe link)`))}catch{}})}insertSrOnlyText(e,t){let n=document.createElement(`span`);n.classList.add(Vr),n.textContent=t,this.insertIconBeforeText?e.prepend(n):e.append(n)}},Ur=e=>{let t=[`B`,`KB`,`MB`,`GB`,`TB`,`PB`],n=0;for(;e>=1024&&n<t.length-1;)e/=1024,n++;return`${e.toFixed(0)} ${t[n]}`},Wr=`js-enhance-pdf-link-file-size`,Gr=class extends Br{showFileSize;fileSizeClass;createFileSizeElementFn;constructor(e={}){super(e),this.showFileSize=e.showFileSize??!0,this.fileSizeClass=e.fileSizeClass||Wr,this.createFileSizeElementFn=e.createFileSizeElement,this.init()}init(){document.querySelectorAll(this.selector).forEach(e=>{let t=e.getAttribute(`href`);!t||!t.endsWith(`.pdf`)||this.shouldIgnore(e,t)||!this.checkIfSameDomain(t)||(this.showFileSize?this.appendPdfFileSize(e):this.insertIcon(e))})}checkIfSameDomain(e){try{return new URL(e,window.location.href).hostname===window.location.hostname}catch{return!1}}appendPdfFileSize(e){let t=new XMLHttpRequest;t.open(`HEAD`,e.href,!0),t.onreadystatechange=()=>{if(t.readyState!==4||t.status!==200||t.getResponseHeader(`Content-Type`)!==`application/pdf`)return;let n=t.getResponseHeader(`Content-Length`);if(!n)return;let r=this.createFileSizeElement(parseInt(n,10));e.appendChild(r),this.insertIcon(e)},t.send()}createFileSizeElement(e){if(this.createFileSizeElementFn)return this.createFileSizeElementFn(e);let t=document.createElement(`span`);return t.classList.add(...this.fileSizeClass.split(` `)),t.innerHTML=` (pdf, ${Ur(e)})`,t}},Kr=`js-user-is-tabbing`,qr=class{bodyClass;isUsingKeyboard;constructor(e={}){this.bodyClass=e.bodyClass||Kr,this.isUsingKeyboard=!1,this.init()}init(){this.bindEvents()}bindEvents(){document.addEventListener(`keydown`,this.handleKeyDown),document.addEventListener(`mousedown`,this.handleMouseDown)}handleKeyDown=e=>{e.key!==`Tab`||this.isUsingKeyboard||(this.isUsingKeyboard=!0,document.body.classList.add(this.bodyClass))};handleMouseDown=()=>{this.isUsingKeyboard&&(this.isUsingKeyboard=!1,document.body.classList.remove(this.bodyClass))}},Jr={exports:{}},Yr=Jr.exports,Xr;function Zr(){return Xr||(Xr=1,(function(e,t){(function(t,n){e.exports=n()})(Yr,function(){function e(){return typeof window<`u`}function t(){var e=!1;try{var t={get passive(){e=!0}};window.addEventListener(`test`,t,t),window.removeEventListener(`test`,t,t)}catch{e=!1}return e}function n(){return!!(e()&&function(){}.bind&&`classList`in document.documentElement&&Object.assign&&Object.keys&&requestAnimationFrame)}function r(e){return e.nodeType===9}function i(e){return e&&e.document&&r(e.document)}function a(e){var t=e.document,n=t.body,r=t.documentElement;return{scrollHeight:function(){return Math.max(n.scrollHeight,r.scrollHeight,n.offsetHeight,r.offsetHeight,n.clientHeight,r.clientHeight)},height:function(){return e.innerHeight||r.clientHeight||n.clientHeight},scrollY:function(){return e.pageYOffset===void 0?(r||n.parentNode||n).scrollTop:e.pageYOffset}}}function o(e){return{scrollHeight:function(){return Math.max(e.scrollHeight,e.offsetHeight,e.clientHeight)},height:function(){return Math.max(e.offsetHeight,e.clientHeight)},scrollY:function(){return e.scrollTop}}}function s(e){return i(e)?a(e):o(e)}function c(e,n,r){var i=t(),a,o=!1,c=s(e),l=c.scrollY(),u={};function d(){var e=Math.round(c.scrollY()),t=c.height(),i=c.scrollHeight();u.scrollY=e,u.lastScrollY=l,u.direction=e>l?`down`:`up`,u.distance=Math.abs(e-l),u.isOutOfBounds=e<0||e+t>i,u.top=e<=n.offset[u.direction],u.bottom=e+t>=i,u.toleranceExceeded=u.distance>n.tolerance[u.direction],r(u),l=e,o=!1}function f(){o||(o=!0,a=requestAnimationFrame(d))}var p=i?{passive:!0,capture:!1}:!1;return e.addEventListener(`scroll`,f,p),d(),{destroy:function(){cancelAnimationFrame(a),e.removeEventListener(`scroll`,f,p)}}}function l(e){return e===Object(e)?e:{down:e,up:e}}function u(e,t){t||={},Object.assign(this,u.options,t),this.classes=Object.assign({},u.options.classes,t.classes),this.elem=e,this.tolerance=l(this.tolerance),this.offset=l(this.offset),this.initialised=!1,this.frozen=!1}return u.prototype={constructor:u,init:function(){return u.cutsTheMustard&&!this.initialised&&(this.addClass(`initial`),this.initialised=!0,setTimeout(function(e){e.scrollTracker=c(e.scroller,{offset:e.offset,tolerance:e.tolerance},e.update.bind(e))},100,this)),this},destroy:function(){this.initialised=!1,Object.keys(this.classes).forEac
52h(this.removeClass,this),this.scrollTracker.destroy()},unpin:function(){(this.hasClass(`pinned`)||!this.hasClass(`unpinned`))&&(this.addClass(`unpinned`),this.removeClass(`pinned`),this.onUnpin&&this.onUnpin.call(this))},pin:function(){this.hasClass(`unpinned`)&&(this.addClass(`pinned`),this.removeClass(`unpinned`),this.onPin&&this.onPin.call(this))},freeze:function(){this.frozen=!0,this.addClass(`frozen`)},unfreeze:function(){this.frozen=!1,this.removeClass(`frozen`)},top:function(){this.hasClass(`top`)||(this.addClass(`top`),this.removeClass(`notTop`),this.onTop&&this.onTop.call(this))},notTop:function(){this.hasClass(`notTop`)||(this.addClass(`notTop`),this.removeClass(`top`),this.onNotTop&&this.onNotTop.call(this))},bottom:function(){this.hasClass(`bottom`)||(this.addClass(`bottom`),this.removeClass(`notBottom`),this.onBottom&&this.onBottom.call(this))},notBottom:function(){this.hasClass(`notBottom`)||(this.addClass(`notBottom`),this.removeClass(`bottom`),this.onNotBottom&&this.onNotBottom.call(this))},shouldUnpin:function(e){return e.direction===`down`&&!e.top&&e.toleranceExceeded},shouldPin:function(e){return e.direction===`up`&&e.toleranceExceeded||e.top},addClass:function(e){this.elem.classList.add.apply(this.elem.classList,this.classes[e].split(` `))},removeClass:function(e){this.elem.classList.remove.apply(this.elem.classList,this.classes[e].split(` `))},hasClass:function(e){return this.classes[e].split(` `).every(function(e){return this.classList.contains(e)},this.elem)},update:function(e){e.isOutOfBounds||this.frozen!==!0&&(e.top?this.top():this.notTop(),e.bottom?this.bottom():this.notBottom(),this.shouldUnpin(e)?this.unpin():this.shouldPin(e)&&this.pin())}},u.options={tolerance:{up:0,down:0},offset:0,scroller:e()?window:null,classes:{frozen:`headroom--frozen`,pinned:`headroom--pinned`,unpinned:`headroom--unpinned`,top:`headroom--top`,notTop:`headroom--not-top`,bottom:`headroom--bottom`,notBottom:`headroom--not-bottom`,initial:`headroom`}},u.cutsTheMustard=n(),u})})(Jr)),Jr.exports}var Qr=Tr(Zr()),$r=`#js-brave-header`,ei=class{header;headroomOptions;selectorHeader;constructor(e={}){this.headroomOptions=e.headroomOptions||{tolerance:{up:10,down:30}},this.selectorHeader=e.selectorHeader||$r,this.header=document.querySelector(this.selectorHeader),this.bindEvents()}bindEvents(){this.header&&new Qr(this.header,this.headroomOptions).init()}},ti=`.js-web-share-api`,ni=class{selector;constructor(e={}){this.selector=e.selector||ti,this.init()}init(){let e=document.querySelectorAll(this.selector);if(e.length!==0){if(!navigator.share)return this.hideButtons(e);e.forEach(e=>{e.addEventListener(`click`,()=>this.handleShareButtonClick(e))})}}hideButtons(e){e.forEach(e=>e.style.display=`none`)}handleShareButtonClick(e){let t=e.getAttribute(`data-title`)||document.title,n=e.getAttribute(`data-text`)||document.title,r=e.getAttribute(`data-url`)||window.location.href;navigator.share({title:t,text:n,url:r})}},ri=class e{static WRAPPER=`accordion-wrapper`;static WRAPPER_BOUND=`accordion-wrapper-is-bound`;static TRIGGER=`.ac-trigger`;constructor(){document.addEventListener(`facetwp-loaded`,()=>this.reinitialise())}reinitialise(){let t=this.wrappers(),n=t.filter(e=>this.isBound(e));n.length!==t.length&&(n.forEach(t=>t.classList.replace(e.WRAPPER,e.WRAPPER_BOUND)),new jr,n.forEach(t=>t.classList.replace(e.WRAPPER_BOUND,e.WRAPPER)))}wrappers(){return Array.from(document.querySelectorAll(`.${e.WRAPPER}`))}isBound(t){return!!t.querySelector(e.TRIGGER)?.hasAttribute(`aria-expanded`)}},ii=class e{static VISIBLE_COUNT=4;static SELECTOR_LIST=`.is-variation-card .is-style-link-icon-right`;static SELECTOR_CARD=`.is-variation-card`;static CLASS_ACCORDION_WRAPPER=`accordion-wrapper`;static CLASS_AC=`ac`;static CLASS_PANEL=`ac-panel hidden overflow-hidden`;static CLASS_LIST=`is-style-link-icon-right`;static CLASS_TRIGGER=`ac-trigger hocus:text-primary-700 text-primary group relative cursor-pointer pt-8 pb-4`;static LABEL_SHOW_MORE=`Bekijk meer`;static LABEL_SHOW_LESS=`Bekijk minder`;static ICON_DOWN=`fa-regular fa-chevron-down`;static ICON_UP=`fa-regular fa-chevron-up`;constructor(){let t=document.querySelectorAll(e.SELECTOR_LIST);t.length&&t.forEach((e,t)=>this.initList(e,t))}initList(t,n){let r=Array.from(t.querySelectorAll(`:scope > li`));if(r.length<=e.VISIBLE_COUNT)return;let i=this.extractOverflowItems(t,r);this.enableAccordionOnCard(t),this.appendAccordion(t,n,i)}extractOverflowItems(t,n){let r=n.slice(e.VISIBLE_COUNT);
52return r.forEach(e=>t.removeChild(e)),r}enableAccordionOnCard(t){t.closest(e.SELECTOR_CARD)?.classList.add(e.CLASS_ACCORDION_WRAPPER)}appendAccordion(t,n,r){let i=`ac-card-panel-${n}`,a=`ac-card-trigger-${n}`,o=document.createElement(`div`);o.className=e.CLASS_AC,o.id=`ac-card-${n}`,o.appendChild(this.createPanel(i,a,r)),o.appendChild(this.createTrigger(a,i)),t.insertAdjacentElement(`afterend`,o)}createPanel(t,n,r){let i=document.createElement(`ul`);i.className=e.CLASS_LIST,r.forEach(e=>i.appendChild(e));let a=document.createElement(`div`);return a.className=e.CLASS_PANEL,a.id=t,a.setAttribute(`role`,`region`),a.setAttribute(`aria-labelledby`,n),a.appendChild(i),a}createTrigger(t,n){let r=document.createElement(`button`);return r.className=e.CLASS_TRIGGER,r.id=t,r.type=`button`,r.setAttribute(`aria-controls`,n),r.setAttribute(`aria-disabled`,`false`),r.setAttribute(`aria-expanded`,`false`),r.innerHTML=` 53 <span class="block group-aria-expanded:hidden"> 54 <span>${e.LABEL_SHOW_MORE}</span> 55 <i class="${e.ICON_DOWN}" aria-hidden="true"></i> 56 </span> 57 <span class="hidden group-aria-expanded:block"> 58 <span>${e.LABEL_SHOW_LESS}</span> 59 <i class="${e.ICON_UP}" aria-hidden="true"></i> 60 </span> 61 `,r}};(class e{static SELECTOR_EVENT=`.fc-event`;static SELECTOR_KEYBOARD_USER=`.js-user-is-tabbing`;static LIVE_REGION_ID=`hycal-a11y-live`;static LABEL_FALLBACK=`Details van deze periode`;static TRANSLATIONS={'aria-label="Close"':`aria-label="Sluiten"`,"All Day":`Hele dag`,">Map<":`>Bekijk op de kaart<`,"Download (.ics)":`Download agendabestand (.ics)`};static register(){if(!window.hycalHooks)return null;let t=new e,n=window.hycalHooks;return n.addAction(`hycal.eventDidMount`,e=>t.describeEvent(e)),n.addAction(`hycal.tooltipShow`,e=>t.openDialog(e)),n.addAction(`hycal.tooltipHide`,e=>
61t.closeDialog(e)),n.addAction(`hycal.afterRender`,e=>t.watchViewChanges(e)),n.addFilter(`hycal.tooltipContent`,e=>t.translate(e)),document.addEventListener(`keydown`,e=>t.handleKeydown(e)),t}constructor(){this.dateFormat=new Intl.DateTimeFormat(`nl-NL`,{day:`numeric`,month:`long`,year:`numeric`})}describeEvent(e){let t=e?.el;t&&(t.setAttribute(`role`,`button`),t.setAttribute(`aria-haspopup`,`dialog`),t.setAttribute(`aria-expanded`,`false`),t.setAttribute(`aria-label`,this.buildLabel(e.event)))}buildLabel(t){if(!t)return e.LABEL_FALLBACK;let n=[t.title,this.formatPeriod(t)],r=t.extendedProps?.location;return r&&n.push(`locatie ${r}`),n.filter(Boolean).join(`, `)}formatPeriod(e){let t=e.start;if(!t)return``;let n=this.lastVisibleDay(e);return!n||n.getTime()<=t.getTime()?this.dateFormat.format(t):`van ${this.dateFormat.format(t)} tot en met ${this.dateFormat.format(n)}`}lastVisibleDay(e){if(!e.end)return null;let t=new Date(e.end.getTime());return e.allDay&&t.setDate(t.getDate()-1),t}translate(t){return Object.entries(e.TRANSLATIONS).reduce((e,[t,n])=>e.replaceAll(t,n),t)}handleKeydown(t){if(t.key===`Escape`){this.dismissOpenDialog();return}if(t.key!==`Enter`&&t.key!==` `)return;let n=t.target.closest?.(e.SELECTOR_EVENT);n&&(t.preventDefault(),n.click())}dismissOpenDialog(){document.querySelector(`${e.SELECTOR_EVENT}[aria-expanded="true"]`)?._tippy?.hide()}openDialog(t){let n=t?.popper?.querySelector(`.tippy-box`),r=t?.reference;n&&r&&(n.setAttribute(`role`,`dialog`),n.setAttribute(`aria-modal`,`false`),n.setAttribute(`aria-label`,r.getAttribute(`aria-label`)||e.LABEL_FALLBACK),n.setAttribute(`tabindex`,`-1`),r.setAttribute(`aria-expanded`,`true`),document.querySelector(e.SELECTOR_KEYBOARD_USER)&&this.focusWhenVisible(n))}focusWhenVisible(e){if(e.dataset.state===`visible`){e.focus();return}let t=new MutationObserver(()=>{e.dataset.state===`visible`&&(t.disconnect(),e.focus())});t.observe(e,{attributes:!0,attributeFilter:[`data-state`]})}closeDialog(e){let t=e?.reference,n=e?.popper;t&&(t.setAttribute(`aria-expanded`,`false`),n?.contains(document.activeElement)&&t.focus())}watchViewChanges(e){e?.on&&e.on(`datesSet`,e=>{this.liveRegion().textContent=e?.view?.title??``})}liveRegion(){let t=document.getElementById(e.LIVE_REGION_ID);if(t)return t;let n=document.createElement(`div`);return n.id=e.LIVE_REGION_ID,n.className=`sr-only`,n.setAttribute(`aria-live`,`polite`),n.setAttribute(`aria-atomic`,`true`),document.body.appendChild(n),n}}).register(),window.addEventListener(`DOMContentLoaded`,()=>{new ii,new nn,Ne.getInstance(),new cn,new Qt(`.js-a11y-toolbar`,{showReadSpeakerButton:!1,showLanguageButton:!1,showDeepLButton:(window.ydpl&&window.ydpl.ydpl_supported_languages)??!1}).init(),new jr,new ri,new zr,new ei,new Pr,new Hr({selector:`.main a`,icon:`<i class="js-enhance-external-link-icon fa-regular fa-arrow-up-right-from-square" aria-hidden="true"></i>`,excludedClasses:[`social-icon`,`wp-block-social-link-anchor`,`rsbtn_play`]}),new Gr({selector:`.main a`,icon:`<i class="js-enhance-pdf-link-icon fa-regular fa-file-pdf" aria-hidden="true"></i>`,fileSizeClass:`js-enhance-pdf-link-file-size text-xs`,excludedClasses:[`social-icon`,`wp-block-social-link-anchor`]}),new un,new qr,new ni});
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.