(window.blocksyJsonP=window.blocksyJsonP||[]).push([[1],{27:function(e,n,t){var o,r,i;r=[n],void 0===(i="function"==typeof(o=function(e){"use strict";function n(e){if(Array.isArray(e)){for(var n=0,t=Array(e.length);n=0})).sort(f)},v=["button:enabled:not([readonly])","select:enabled:not([readonly])","textarea:enabled:not([readonly])","input:enabled:not([readonly])","a[href]","area[href]","iframe","object","embed","[tabindex]","[contenteditable]","[autofocus]"],m=v.join(","),y=m+", [data-focus-guard]",p=function(e,n){return e.reduce((function(e,t){return e.concat(r(t.querySelectorAll(n?y:m)),t.parentNode?r(t.parentNode.querySelectorAll(v.join(","))).filter((function(e){return e===t})):[])}),[])},b=function e(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.push(n),n.parentNode&&e(n.parentNode,t),t},h=function(e,n){for(var t=b(e),o=b(n),r=0;r=0)return i}return!1},g=function(e){return r(e).filter((function(e){return function e(n){return!n||n===document||n.nodeType===Node.DOCUMENT_NODE||!((t=window.getComputedStyle(n,null))&&t.getPropertyValue&&("none"===t.getPropertyValue("display")||"hidden"===t.getPropertyValue("visibility")))&&e(n.parentNode);var t}(e)})).filter((function(e){return function(e){return!(("INPUT"===e.tagName||"BUTTON"===e.tagName)&&("hidden"===e.type||e.disabled))}(e)}))},S=function(e,n){return s(g(p(e,n)),!0,n)},w=function(e){return g((n=e.querySelectorAll("[data-autofocus-inside]"),r(n).map((function(e){return p([e])})).reduce((function(e,n){return e.concat(n)}),[])));var n},O=function(e){return"INPUT"===e.tagName&&"radio"===e.type},E=function(e,n){return n.filter(O).filter((function(n){return n.name===e.name})).filter((function(e){return e.checked}))[0]||e},A=function(e,n){return e.length>1&&O(e[n])&&e[n].name?e.indexOf(E(e[n],e)):n},k=function(e){return e[0]&&e.length>1&&O(e[0])&&e[0].name?E(e[0],e):e[0]},x=function(e){return e&&e.dataset&&e.dataset.focusGuard},L=function(e){return!x(e)},q=function(e,n,t){var o=i(e),r=i(n),c=o[0],a=null;return r.filter(Boolean).forEach((function(e){a=h(a||e,e)||a,t.filter(Boolean).forEach((function(e){var n=h(c,e);n&&(a=!a||n.contains(a)?n:h(n,a))}))})),a},j=function(e,n){var t=document&&document.activeElement,o=u(e).filter(L),r=q(t||e,e,o),i=S(o).filter((function(e){var n=e.node;return L(n)}));if(i[0]||(i=(c=o,s(g(p(c)),!1)).filter((function(e){var n=e.node;return L(n)})))[0]){var c,a,l,d,f,v=S([r]).map((function(e){return e.node})),m=(a=v,l=i,d=new Map,l.forEach((function(e){return d.set(e.node,e)})),a.map((function(e){return d.get(e)})).filter(Boolean)),y=m.map((function(e){return e.node})),b=function(e,n,t,o,r){var i=e.length,c=e[0],a=e[i-1],u=x(t);if(!(e.indexOf(t)>=0)){var l=n.indexOf(t),d=n.indexOf(o||l),f=e.indexOf(o),s=l-d,v=n.indexOf(c),m=n.indexOf(a),y=A(e,0),p=A(e,i-1);return-1===l||-1===f?e.indexOf(r&&r.length?k(r):k(e)):!s&&f>=0?f:l<=v&&u&&Math.abs(s)>1?p:l>=v&&u&&Math.abs(s)>1?y:s&&Math.abs(s)>1?f:l<=v?p:l>m?y:s?Math.abs(s)>1?f:(i+f+s)%i:void 0}}(y,v,t,n,y.filter((f=function(e){return e.reduce((function(e,n){return e.concat(w(n))}),[])}(o),function(e){return!!e.autofocus||e.dataset&&!!e.dataset.autofocus||f.indexOf(e)>=0})));return void 0===b?b:m[b]}},P=0,T=!1,C=function(e,n){var t,o=j(e,n);if(!T&&o){if(P>2)return console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),T=!0,void setTimeout((function(){T=!1}),1);P++,(t=o.node).focus(),t.contentWindow&&t.contentWindow.focus(),P--}},B=0,I=null,N=function(){return document&&document.activeElement===document.body||c()},M=function(e){B=e,e&&function(){var e=!1;if(B){var n=B;N()||(n&&!d(n)&&(e=C(n,I)),I=document.activeElement)}}()},D=[],W=function(e){return!!M((n=D,n.filter((function(e){return e})).slice(-1)[0]))&&(e&&e.preventDefault(),!0);var n},G={on:function(e){0===D.length&&document.addEventListener("focusin",W),D.indexOf(e)<0&&(D.push(e),W())},off:function(e){D=D.filter((function(n){return n!==e})),W(),0===D.length&&document.removeEventListener("focusin",W)}},U=t(0),R=t.n(U);function V(e){return function(e){if(Array.isArray(e))return _(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,n){if(!e)return;if("string"==typeof e)return _(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return _(e,n)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,o=new Array(n);t-1?":left":e.container.dataset.behaviour.indexOf("right")>-1?":right":"")),e.container.addEventListener(e.container.dataset.behaviour.indexOf("side")>-1?"transitionend":"animationend",(function(){}),{once:!0}),e.forceOpen||document.addEventListener("keyup",(function(n){var t=n.keyCode;n.target;27===t&&(n.preventDefault(),document.body.hasAttribute("data-panel")&&K(e))}),{once:!0}),e.container&&e.container.querySelector(".close-button")&&e.container.querySelector(".close-button").addEventListener("click",(function(n){n.preventDefault(),K(e)}),{once:!0}),(e.scrollContainer||e.container.querySelector(".content-container"))&&(e.skipScrollLock||(n=e.scrollContainer||e.container.querySelector(".content-container"),Object(o.disableBodyScroll)(n,{reserveScrollBarGap:!0}),G.on(e.container.querySelector(".content-container")))),e.forceOpen||requestAnimationFrame((function(){return window.addEventListener("click",e.handleWindowClick)}))},K=function(e){if(e=H({onClose:function(){},container:null},e),!document.body.hasAttribute("data-panel"))return e.container.classList.remove("active"),void e.onClose();V(document.querySelectorAll('[href*="'.concat(e.container.id,'"]'))).map((function(e){e.classList.remove("active")})),e.container.classList.remove("active"),document.body.dataset.panel="out",e.container.addEventListener("transitionend",(function(){setTimeout((function(){var n;document.body.removeAttribute("data-panel"),R.a.trigger("ct:modal:closed",e.container),e.skipScrollLock||(n=e.scrollContainer||e.container.querySelector(".content-container"),Object(o.enableBodyScroll)(n,{reserveScrollBarGap:!0})),G.off(e.container.querySelector(".content-container"))}),300)}),{once:!0});window.removeEventListener("click",e.handleWindowClick),e.onClose()},$=function(e,n){if(e.preventDefault(),n=H({onClose:function(){},container:null,focus:!0,clickOutside:!1,isModal:!1,forceOpen:!1,scrollContainer:null,skipScrollLock:!1,handleWindowClick:function(e){n.container.contains(e.target)||e.target===document.body||document.body.hasAttribute("data-panel")&&K(n)}},n),document.body.hasAttribute("data-panel")&&!n.forceOpen)if(n.isModal&&!n.container.classList.contains("active")){var t=document.querySelector(".ct-header-trigger");t&&t.click(),setTimeout((function(){Y(n)}),600)}else K(n);else Y(n)};R.a.on("ct:offcanvas:force-close",(function(e){return K(e)}));var z=function(e){e.hasSearchEventListener||(e.hasSearchEventListener=!0,e.addEventListener("click",(function(n){$(n,{isModal:!0,container:document.querySelector(e.hash)})})))}}}]);