1(()=>{"use strict";const t="transitionend",e=t=>null==t?`${t}`:Object.prototype.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase(),i=t=>!(!t||"object"!=typeof t)&&(void 0!==t.jquery&&(t=t[0]),void 0!==t.nodeType),s=t=>{return i(t)?t?.jquery?t[0]:t:"string"==typeof t&&t.length>0?document.querySelector(((e=t)&&window.CSS&&window.CSS.escape&&(e=e.replace(/#([^\s"#']+)/g,(t,e)=>`#${CSS.escape(e)}`)),e)):null;var e},n=(e,i,s=!1)=>{if("function"==typeof e){if(s)return void e();const n=5,l=(t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:i}=window.getComputedStyle(t);const s=Number.parseFloat(e),n=Number.parseFloat(i);return s||n?(e=e.split(",")[0],i=i.split(",")[0],1e3*(Number.parseFloat(e)+Number.parseFloat(i))):0})(i)+n;let a=!1;const r=({target:s})=>{s===i&&(a=!0,i.removeEventListener(t,r),o(e))};i.addEventListener(t,r),setTimeout(()=>{a||i.dispatchEvent(new Event(t))},l)}},o=t=>{"function"==typeof t&&t()},l=t=>{t.offsetHeight},a=()=>"rtl"===document.documentElement.dir,r=(t,e)=>{var i;window.CBB=null!==(i=window?.CBB)&&void 0!==i?i:{},window.CBB={...window.CBB,[t]:e}},c=t=>{try{return JSON.parse(Object.assign(document.createElement("textarea"),{innerHTML:t||"{}"}).value)}catch{return{}}},d=t=>"loading"!==document.readyState?t():document.addEventListener("DOMContentLoaded",t),h=t=>{var i;"object"!==e(t)&&console.error("The parameter must be an object");let s=null!==(i=window?.CBB?.Util)&&void 0!==i&&i;s="object"===e(s)?{...s,...t}:t,r("Util",s)};h({toType:e,getUID:t=>{do{t+=Math.floor(1e6*Math.random())}while(document.getElementById(t));return t},noop:()=>{},isElement:i,executeAfterTransition:n,execute:o,reflow:l,isRTL:a,parseJSON:c,domReady:d,exposeComponent:r});const u={SHOW:"show.boldblocks",SHOWN:"shown.boldblocks",HIDE:"hide.boldblocks",HIDDEN:"hidden.boldblocks",INIT:"init.boldblocks"},g=(t,e,i={})=>{const s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:i});return t.dispatchEvent(s),s};function f(t){if("true"===t)return!0;if("false"===t)return!1;if(t===Number(t).toString())return Number(t);if(""===t||"null"===t)return null;if("string"!=typeof t)return t;try{return JSON.parse(decodeURIComponent(t))}catch{return t}}function m(t){return t.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function p(t,e){return f(t.getAttribute(`data-${m(e)}`))}h({EVENTS:u,triggerEvent:g}),r("Dataset",{normalizeData:f,normalizeDataKey:m,getDataAttributes:function(t,e=t=>t,i=t=>t){if(!t)return{};const s={},n=Object.keys(t.dataset).filter(e);for(const e of n){let n=i(e);n=n.charAt(0).toLowerCase()+n.slice(1,n.length),s[n]=f(t.dataset[e])}return s},getDataAttribute:p,setDataAttribute:function(t,e,i){t.setAttribute(`data-${m(e)}`,i)},removeDataAttribute:function(t,e){t.removeAttribute(`data-${m(e)}`)}});const y=new Map,b={set(t,e,i){y.has(t)||y.set(t,new Map);const s=y.get(t);s.has(e)||0===s.size?s.set(e,i):console.error(`Doesn't allow more than one instance per element. Bound instance: ${Array.from(s.keys())[0]}.`)},get:(t,e)=>y.has(t)&&y.get(t).get(e)||null,remove(t,e){if(!y.has(t))return;const i=y.get(t);i.delete(e),0===i.size&&y.delete(t)}};r("Data",b);class _{constructor(t,e){(t=s(t))&&(this._element=t,this._config=this._getConfig(e),b.set(this._element,this.constructor.DATA_KEY,this))}dispose(){b.remove(this._element,this.constructor.DATA_KEY)}_queueCallback(t,e,i=!1){n(t,e,i)}_getConfig(t,e=this._element){return this._mergeConfigObj(t,e)}_mergeConfigObj(t,e){const s=i(e)?p(e,"cbbConfig"):{};return{...this.defaultConfig(),..."object"==typeof s?s:{},..."object"==typeof t?t:{}}}_parseConfigObj(t){return{...this.constructor.Default,..."object"==typeof t?t:{}}}defaultConfig(){return{}}filterKey(t){return t}refineKey(t){return t}static getInstance(t){return b.get(s(t),this.DATA_KEY)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,"object"==typeof e?e:null)}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}static get DATA_KEY(){return`cbb.${this.NAME}`}}r("BaseComponent",_);class v{constructor(t={}){this._element=null,this._isAppended=!1;const e={isVisible:!0,rootElement:document.body,classBackdrop:"modal-backdrop fade",classShow:"show",clickCallback:null};this._config=Object.assign(e,t)}show(t){this._config.isVisible?(this._append(),l(this._getElement()),this._getElement().classList.add(this._config.classShow),n(t,this._getElement())):o(t)}hide(t){this._config.isVisible?(this._getElement().classList.remove(this._config.classShow),n(()=>{this.dispose(),t()},this._getElement())):o(t)}dispose(){this._isAppended&&(this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const t=document.createElement("div");t.className=this._config.classBackdrop,this._element=t}return this._element}_append(){this._isAppended||(this._config.rootElement.appendChild(this._getElement()),"function"==typeof this._config.clickCallback&&this._getElement().addEventListener("click",t=>{t.preventDefault(),this._config.clickCallback()}),this._isAppended=!0)}}r("Backdrop",v);const w="padding-right";class E{constructor(){this._element=document.body}getWidth(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){const t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,w,e=>e+t)}reset(){this._resetElementAttributes("overflow"),this._resetElementAttributes(w)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,e,i){const s=this.getWidth();this._applyManipulationCallback(t,t=>{if(window.innerWidth>t.clientWidth+s)return;this._saveInitialAttribute(t,e);const n=window.getComputedStyle(t).getPropertyValue(e);t.style.setProperty(e,`${i(Number.parseFloat(n))}px`)})}_saveInitialAttribute(t,e){const i=t.style.getPropertyValue(e);i&&t.setAttribute(`data-${e}`,i)}_resetElementAttributes(t){const e=this._element?.dataset?this._element.dataset[t]:null;this._element.removeAttribute(`data-${t}`),e?this._element.style.setProperty(t,e):this._element.style.removeProperty(t)}
1_applyManipulationCallback(t,e){e(t)}}r("ScrollBarHelper",E);const A=new class{constructor(){this.observedContainers=new WeakMap,this.pendingFrames=new WeakMap}update(t=document,e){g(document,"cbb.observer.updated",{container:t,args:e})}observe(t,e={}){if("string"==typeof t&&(t=document.querySelector(t)),!(t instanceof HTMLElement))return;if(this.observedContainers.has(t))return;const i=new MutationObserver(i=>{if(this.pendingFrames.has(t))return;const s=requestAnimationFrame(()=>{this.pendingFrames.delete(t),this.update(t,e)});this.pendingFrames.set(t,s)});i.observe(t,{childList:!0,subtree:!0}),this.observedContainers.set(t,i)}},x=t=>{document.addEventListener("cbb.observer.updated",e=>{const{detail:{container:i,args:s}}=e;i&&t(i,s,e)})};d(()=>{document.querySelectorAll(".wp-block-query").forEach(t=>{t?.hasAttribute("data-wp-interactive")&&A.observe(t)})});class S extends _{constructor(t,e={}){var i;if(super(t,e),!t)return;this.element=this._element;const{dataset:s={},datasetElement:n,triggerArray:o}=this._config;this._dataset=Object.assign({toggleStateShown:"shown"},s,null!==(i=n?.dataset)&&void 0!==i?i:{});const{toggleElement:l,transitionProperty:a="height",toggleState:r,toggleStateShown:c}=this._dataset;if(o)this._triggerArray=o;else{const t=l&&l.trim();this._triggerArray=t?Array.from(document.querySelectorAll(t)):[]}this.transitionProperty=a,this.calculatedTransitionProperty=-1!==["width","height"].indexOf(a)?`scroll${a[0].toUpperCase()+a.slice(1)}`:"",this.isOpen=r===c,this._isTransitioning=!1,this.init()}static get NAME(){return"collapse"}defaultConfig(){return{triggerArray:null,dataset:null,datasetElement:this._element,classTarget:"collapse",classTrigger:"",classShow:"show",classCollapsing:"collapsing",classToggledOn:"is-toggled-on",classToggledOff:"is-toggled-off",selectorText:".toggle__text",instanceIndex:0}}init(){this._setupClasses(),this._addAriaAndToggledClass(),this._attachClickHandler(),this.isOpen&&requestAnimationFrame(()=>{g(window,u.SHOWN,{target:this._element})}),g(window,u.INIT,{target:this._element})}_setupClasses(){const t=this._element,e=this._triggerArray,{classTrigger:i,classTarget:s,classShow:n,instanceIndex:o}=this._config;t.classList.add(`transition-${this.transitionProperty}`),t.classList.contains(s)||t.classList.add(s);const l=this.isOpen;t.classList.toggle(n,l);let a=t.getAttribute("id");if(a||(a=`bb-collapse-${o}`,t.setAttribute("id",a)),i&&e.length)for(const t of e)t.classList.contains(i)||t.classList.add(i),t.setAttribute("aria-controls",`#${a}`),"DIV"!==t.tagName.toUpperCase()||t?.role||t.setAttribute("role","button")}_attachClickHandler(){this.clickHandler=this.toggle.bind(this);const t=this._triggerArray;if(t?.length)for(const e of t)e.addEventListener("click",this.clickHandler),["BUTTON","INPUT"].includes(e.tagName)||e.addEventListener("keydown",t=>{13!==t.keyCode&&32!==t.keyCode||(t.preventDefault(),this.clickHandler())})}toggle(t){t&&t?.preventDefault&&t.preventDefault(),this.isOpen?this.hide():this.show()}show(){if(this.isOpen||this._isTransitioning)return;const t=this._element,{classCollapsing:e,classTarget:i}=this._config,s=this.transitionProperty;g(t,u.SHOW),this.isOpen=!0,this._setTransitioning(!0),this._addAriaAndToggledClass(),t.classList.remove(i),t.classList.add(e),t.style[s]=0,this._queueCallback(this._transitionEnd.bind(this),t),t.style[s]=`${t[this.calculatedTransitionProperty]}px`}hide(){if(!this.isOpen||this._isTransitioning)return;const t=this._element,{classCollapsing:e,classTarget:i,classShow:s}=this._config,n=this.transitionProperty;g(t,u.HIDE),this.isOpen=!1,this._setTransitioning(!0),this._addAriaAndToggledClass(),t.style[n]=`${t[this.calculatedTransitionProperty]}px`,l(t),t.classList.add(e),t.classList.remove(i,s),t.style[n]="",this._queueCallback(this._transitionEnd.bind(this),t)}_addAriaAndToggledClass(){const t=this.isOpen,e=this._triggerArray;if(e.length){const{classToggledOn:i,classToggledOff:s}=this._config;for(const n of e)n.classList.toggle(i,t),n.classList.toggle(s,!t),n.setAttribute("aria-expanded",t)}}_setTransitioning(t){this._isTransitioning=t}_transitionEnd(){this._setTransitioning(!1);const t=this._element,{classCollapsing:e,classTarget:i,classShow:s}=this._config,n=this.isOpen;t.classList.remove(e),n?(t.style[this.transitionProperty]="",t.classList.add(i,s),"true"===this._dataset?.toggleFocusFirstElement&&this._focusFirstFocusableElement(t),g(t,u.SHOWN),g(window,u.SHOWN,{target:t})):(t.classList.add(i),g(t,u.HIDDEN),g(window,u.HIDDEN,{target:t}))}_focusFirstFocusableElement(t){const e=t.querySelector('button, input
1:not([type="hidden"]), select, textarea');e&&e.focus()}dispose(){super.dispose();const t=this._triggerArray,{classToggledOn:e,classToggledOff:i,classShow:s}=this._config;if(t.length)for(const s of t)s.classList.remove(e),s.classList.remove(i),s.removeEventListener("click",this.clickHandler);this._element.classList.add(s)}}r("Collapse",S);const L=S;class T extends _{constructor(t,e={}){super(t,e),t&&(this.toggleElements=Array.from(t.querySelectorAll(".accordion-header")),this.toggleElements.length&&(this.collapseInstances=[],this.init()))}static get NAME(){return"accordion"}defaultConfig(){return{multipleOpens:"true"===this._element?.dataset?.multipleOpens}}init(){this.collapseInstances=this.toggleElements.map(t=>{const e=t.parentNode.querySelector(".accordion-collapse");return e.addEventListener(u.SHOW,()=>{t.classList.toggle("is-expanded",!0)}),e.addEventListener(u.HIDE,()=>{t.classList.toggle("is-expanded",!1)}),new L(e,{triggerArray:[t.querySelector(".accordion-link")],datasetElement:t})}),window.addEventListener(u.SHOWN,({detail:{target:t={}}={}}={})=>{t?.previousSibling?.classList&&t.previousSibling.classList.toggle("is-expanded",!0)}),this._config.multipleOpens||this.collapseInstances.forEach((t,e)=>t.element.addEventListener(u.SHOW,this.toggleOtherActiveElements.bind(this,e)))}toggleOtherActiveElements(t){this.collapseInstances.filter((e,i)=>e.isOpen&&t!==i).forEach(t=>t.hide())}dispose(){super.dispose(),this.collapseInstances.forEach(t=>t.dispose())}}r("Accordion",T);const C=T;d(()=>document.querySelectorAll(".is-accordion").forEach(t=>new C(t)));const O=Math.min,k=Math.max,D=Math.round,H=Math.floor,I=t=>({x:t,y:t}),M={left:"right",right:"left",bottom:"top",top:"bottom"};function N(t,e,i){return k(t,O(e,i))}function R(t,e){return"function"==typeof t?t(e):t}function B(t){return t.split("-")[0]}function F(t){return t.split("-")[1]}function q(t){return"x"===t?"y":"x"}function P(t){return"y"===t?"height":"width"}function $(t){const e=t[0];return"t"===e||"b"===e?"y":"x"}function W(t){return q($(t))}function j(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const z=["left","right"],V=["right","left"],U=["top","bottom"],Y=["bottom","top"];function K(t){const e=B(t);return M[e]+t.slice(e.length)}function J(t){const{x:e,y:i,width:s,height:n}=t;return{width:s,height:n,top:i,left:e,right:e+s,bottom:i+n,x:e,y:i}}function X(t,e,i){let{reference:s,floating:n}=t;const o=$(e),l=W(e),a=P(l),r=B(e),c="y"===o,d=s.x+s.width/2-n.width/2,h=s.y+s.height/2-n.height/2,u=s[a]/2-n[a]/2;let g;switch(r){case"top":g={x:d,y:s.y-n.height};break;case"bottom":g={x:d,y:s.y+s.height};break;case"right":g={x:s.x+s.width,y:h};break;case"left":g={x:s.x-n.width,y:h};break;default:g={x:s.x,y:s.y}}switch(F(e)){case"start":g[l]-=u*(i&&c?-1:1);break;case"end":g[l]+=u*(i&&c?-1:1)}return g}async function Z(t,e){var i;void 0===e&&(e={});const{x:s,y:n,platform:o,rects:l,elements:a,strategy:r}=t,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:h="floating",altBoundary:u=!1,padding:g=0}=R(e,t),f=function(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}(g),m=a[u?"floating"===h?"reference":"floating":h],p=J(await o.getClippingRect({element:null==(i=await(null==o.isElement?void 0:o.isElement(m)))||i?m:m.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(a.floating)),boundary:c,rootBoundary:d,strategy:r})),y="floating"===h?{x:s,y:n,width:l.floating.width,height:l.floating.height}:l.reference,b=await(null==o.getOffsetParent?void 0:o.getOffsetParent(a.floating)),_=await(null==o.isElement?void 0:o.isElement(b))&&await(null==o.getScale?void 0:o.getScale(b))||{x:1,y:1},v=J(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:b,strategy:r}):y);return{top:(p.top-v.top+f.top)/_.y,bottom:(v.bottom-p.bottom+f.bottom)/_.y,left:(p.left-v.left+f.left)/_.x,right:(v.right-p.right+f.right)/_.x}}function G(){return"undefined"!=typeof window}
vendor: 2,756 bytes, line 1
1function Q(t){return it(t)?(t.nodeName||"").toLowerCase():"#document"}function tt(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function et(t){var e;return null==(e=(it(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function it(t){return!!G()&&(t instanceof Node||t instanceof tt(t).Node)}function st(t){return!!G()&&(t instanceof Element||t instanceof tt(t).Element)}function nt(t){return!!G()&&(t instanceof HTMLElement||t instanceof tt(t).HTMLElement)}function ot(t){return!(!G()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof tt(t).ShadowRoot)}function lt(t){const{overflow:e,overflowX:i,overflowY:s,display:n}=pt(t);return/auto|scroll|overlay|hidden|clip/.test(e+s+i)&&"inline"!==n&&"contents"!==n}function at(t){return/^(table|td|th)$/.test(Q(t))}function rt(t){try{if(t.matches(":popover-open"))return!0}catch(t){}try{return t.matches(":modal")}catch(t){return!1}}const ct=/transform|translate|scale|rotate|perspective|filter/,dt=/paint|layout|strict|content/,ht=t=>!!t&&"none"!==t;let ut;function gt(t){const e=st(t)?pt(t):t;return ht(e.transform)||ht(e.translate)||ht(e.scale)||ht(e.rotate)||ht(e.perspective)||!ft()&&(ht(e.backdropFilter)||ht(e.filter))||ct.test(e.willChange||"")||dt.test(e.contain||"")}function ft(){return null==ut&&(ut="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),ut}function mt(t){return/^(html|body|#document)$/.test(Q(t))}function pt(t){return tt(t).getComputedStyle(t)}function yt(t){return st(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function bt(t){if("html"===Q(t))return t;const e=t.assignedSlot||t.parentNode||ot(t)&&t.host||et(t);return ot(e)?e.host:e}function _t(t){const e=bt(t);return mt(e)?t.ownerDocument?t.ownerDocument.body:t.body:nt(e)&<(e)?e:_t(e)}function vt(t,e,i){var s;void 0===e&&(e=[]),void 0===i&&(i=!0);const n=_t(t),o=n===(null==(s=t.ownerDocument)?void 0:s.body),l=tt(n);if(o){const t=wt(l);return e.concat(l,l.visualViewport||[],lt(n)?n:[],t&&i?vt(t):[])}return e.concat(n,vt(n,[],i))}function wt(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Et(t){const e=pt(t);let i=parseFloat(e.width)||0,s=parseFloat(e.height)||0;const n=nt(t),o=n?t.offsetWidth:i,l=n?t.offsetHeight:s,a=D(i)!==o||D(s)!==l;return a&&(i=o,s=l),{width:i,height:s,$:a}}function At(t){return st(t)?t:t.contextElement}function xt(t){const e=At(t);if(!nt(e))return I(1);const i=e.getBoundingClientRect(),{width:s,height:n,$:o}=Et(e);let l=(o?D(i.width):i.width)/s,a=(o?D(i.height):i.height)/n;return l&&Number.isFinite(l)||(l=1),a&&Number.isFinite(a)||(a=1),{x:l,y:a}}const St=I(0);function Lt(t){const e=tt(t);
vendor: 5,473 bytes, line 1
1return ft()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:St}function Tt(t,e,i,s){void 0===e&&(e=!1),void 0===i&&(i=!1);const n=t.getBoundingClientRect(),o=At(t);let l=I(1);e&&(s?st(s)&&(l=xt(s)):l=xt(t));const a=function(t,e,i){return void 0===e&&(e=!1),!(!i||e&&i!==tt(t))&&e}(o,i,s)?Lt(o):I(0);let r=(n.left+a.x)/l.x,c=(n.top+a.y)/l.y,d=n.width/l.x,h=n.height/l.y;if(o){const t=tt(o),e=s&&st(s)?tt(s):s;let i=t,n=wt(i);for(;n&&s&&e!==i;){const t=xt(n),e=n.getBoundingClientRect(),s=pt(n),o=e.left+(n.clientLeft+parseFloat(s.paddingLeft))*t.x,l=e.top+(n.clientTop+parseFloat(s.paddingTop))*t.y;r*=t.x,c*=t.y,d*=t.x,h*=t.y,r+=o,c+=l,i=tt(n),n=wt(i)}}return J({width:d,height:h,x:r,y:c})}function Ct(t,e){const i=yt(t).scrollLeft;return e?e.left+i:Tt(et(t)).left+i}function Ot(t,e){const i=t.getBoundingClientRect();return{x:i.left+e.scrollLeft-Ct(t,i),y:i.top+e.scrollTop}}function kt(t,e,i){let s;if("viewport"===e)s=function(t,e){const i=tt(t),s=et(t),n=i.visualViewport;let o=s.clientWidth,l=s.clientHeight,a=0,r=0;if(n){o=n.width,l=n.height;const t=ft();(!t||t&&"fixed"===e)&&(a=n.offsetLeft,r=n.offsetTop)}const c=Ct(s);if(c<=0){const t=s.ownerDocument,e=t.body,i=getComputedStyle(e),n="CSS1Compat"===t.compatMode&&parseFloat(i.marginLeft)+parseFloat(i.marginRight)||0,l=Math.abs(s.clientWidth-e.clientWidth-n);l<=25&&(o-=l)}else c<=25&&(o+=c);return{width:o,height:l,x:a,y:r}}(t,i);else if("document"===e)s=function(t){const e=et(t),i=yt(t),s=t.ownerDocument.body,n=k(e.scrollWidth,e.clientWidth,s.scrollWidth,s.clientWidth),o=k(e.scrollHeight,e.clientHeight,s.scrollHeight,s.clientHeight);let l=-i.scrollLeft+Ct(t);const a=-i.scrollTop;return"rtl"===pt(s).direction&&(l+=k(e.clientWidth,s.clientWidth)-n),{width:n,height:o,x:l,y:a}}(et(t));else if(st(e))s=function(t,e){const i=Tt(t,!0,"fixed"===e),s=i.top+t.clientTop,n=i.left+t.clientLeft,o=nt(t)?xt(t):I(1);return{width:t.clientWidth*o.x,height:t.clientHeight*o.y,x:n*o.x,y:s*o.y}}(e,i);else{const i=Lt(t);s={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return J(s)}function Dt(t,e){const i=bt(t);return!(i===e||!st(i)||mt(i))&&("fixed"===pt(i).position||Dt(i,e))}function Ht(t,e,i){const s=nt(e),n=et(e),o="fixed"===i,l=Tt(t,!0,o,e);let a={scrollLeft:0,scrollTop:0};const r=I(0);function c(){r.x=Ct(n)}if(s||!s&&!o)if(("body"!==Q(e)||lt(n))&&(a=yt(e)),s){const t=Tt(e,!0,o,e);r.x=t.x+e.clientLeft,r.y=t.y+e.clientTop}else n&&c();o&&!s&&n&&c();const d=!n||s||o?I(0):Ot(n,a);return{x:l.left+a.scrollLeft-r.x-d.x,y:l.top+a.scrollTop-r.y-d.y,width:l.width,height:l.height}}function It(t){return"static"===pt(t).position}function Mt(t,e){if(!nt(t)||"fixed"===pt(t).position)return null;if(e)return e(t);let i=t.offsetParent;return et(t)===i&&(i=i.ownerDocument.body),i}function Nt(t,e){const i=tt(t);if(rt(t))return i;if(!nt(t)){let e=bt(t);for(;e&&!mt(e);){if(st(e)&&!It(e))return e;e=bt(e)}return i}let s=Mt(t,e);for(;s&&at(s)&&It(s);)s=Mt(s,e);return s&&mt(s)&&It(s)&&!gt(s)?i:s||function(t){let e=bt(t);for(;nt(e)&&!mt(e);){if(gt(e))return e;if(rt(e))return null;e=bt(e)}return null}(t)||i}const Rt={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:i,offsetParent:s,strategy:n}=t;const o="fixed"===n,l=et(s),a=!!e&&rt(e.floating);if(s===l||a&&o)return i;let r={scrollLeft:0,scrollTop:0},c=I(1);const d=I(0),h=nt(s);if((h||!h&&!o)&&(("body"!==Q(s)||lt(l))&&(r=yt(s)),h)){const t=Tt(s);c=xt(s),d.x=t.x+s.clientLeft,d.y=t.y+s.clientTop}const u=!l||h||o?I(0):Ot(l,r);return{width:i.width*c.x,height:i.height*c.y,x:i.x*c.x-r.scrollLeft*c.x+d.x+u.x,y:i.y*c.y-r.scrollTop*c.y+d.y+u.y}},getDocumentElement:et,getClippingRect:function(t){let{element:e,boundary:i,rootBoundary:s,strategy:n}=t;const o=[..."clippingAncestors"===i?rt(e)?[]:function(t,e){const i=e.get(t);if(i)return i;let s=vt(t,[],!1).filter(t=>st(t)&&"body"!==Q(t)),n=null;const o="fixed"===pt(t).position;let l=o?bt(t):t;for(;st(l)&&!mt(l);){const e=pt(l),i=gt(l);i||"fixed"!==e.position||(n=null),(o?!i&&!n:!i&&"static"===e.position&&n&&("absolute"===n.position||"fixed"===n.position)||lt(l)&&!i&&Dt(t,l))?s=s.filter(t=>t!==l):n=e,l=bt(l)}return e.set(t,s),s}(e,this._c):[].concat(i),s],l=kt(e,o[0],n);let a=l.top,r=l.right,c=l.bottom,d=l.left;for(let t=1;t<o.length;t++){const i=kt(e,o[t],n);a=k(i.top,a),r=O(i.right,r),c=O(i.bottom,c),d=k(i.left,d)}return{width:r-d,height:c-a,x:d,y:a}},getOffsetParent:Nt,getElementRects:async function(t){const e=this.getOffsetParent||Nt,i=this.getDimensions,s=await i(t.floating);return{reference:Ht(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:i}=Et(t);return{width:e,height:i}},getScale:xt,isElement:st,isRTL:function(t){return"rtl"===pt(t).direction}};function Bt(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}const Ft=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var i,s;const{placement:n,middlewareData:o,rects:l,initialPlacement:a,platform:r,elements:c}=e,{mainAxis:d=!0,crossAxis:h=!0,fallbackPlacements:u,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:m=!0,...p}=R(t,e);if(null!=(i=o.arrow)&&i.alignmentOffset)return{};const y=B(n),b=$(a),_=B(a)===a,v=await(null==r.isRTL?void 0:r.isRTL(c.floating)),w=u||(_||!m?[K(a)]:function(t){const e=K(t);return[j(t),e,j(e)]}(a)),E="none"!==f;
1!u&&E&&w.push(...function(t,e,i,s){const n=F(t);let o=function(t,e,i){switch(t){case"top":case"bottom":return i?e?V:z:e?z:V;case"left":case"right":return e?U:Y;default:return[]}}(B(t),"start"===i,s);return n&&(o=o.map(t=>t+"-"+n),e&&(o=o.concat(o.map(j)))),o}(a,m,f,v));const A=[a,...w],x=await r.detectOverflow(e,p),S=[];let L=(null==(s=o.flip)?void 0:s.overflows)||[];if(d&&S.push(x[y]),h){const t=function(t,e,i){void 0===i&&(i=!1);const s=F(t),n=W(t),o=P(n);let l="x"===n?s===(i?"end":"start")?"right":"left":"start"===s?"bottom":"top";return e.reference[o]>e.floating[o]&&(l=K(l)),[l,K(l)]}(n,l,v);S.push(x[t[0]],x[t[1]])}if(L=[...L,{placement:n,overflows:S}],!S.every(t=>t<=0)){var T,C;const t=((null==(T=o.flip)?void 0:T.index)||0)+1,e=A[t];if(e&&("alignment"!==h||b===$(e)||L.every(t=>$(t.placement)!==b||t.overflows[0]>0)))return{data:{index:t,overflows:L},reset:{placement:e}};let i=null==(C=L.filter(t=>t.overflows[0]<=0).sort((t,e)=>t.overflows[1]-e.overflows[1])[0])?void 0:C.placement;if(!i)switch(g){case"bestFit":{var O;const t=null==(O=L.filter(t=>{if(E){const e=$(t.placement);return e===b||"y"===e}return!0}).map(t=>[t.placement,t.overflows.filter(t=>t>0).reduce((t,e)=>t+e,0)]).sort((t,e)=>t[1]-e[1])[0])?void 0:O[0];t&&(i=t);break}case"initialPlacement":i=a}if(n!==i)return{reset:{placement:i}}}return{}}}};class qt extends _{constructor(t,e={}){if(super(t,e),!t)return;const{modalType:i,dataset:s={},datasetElement:n,triggerArray:o}=this._config;this.isModal="modal"===i,this.isPopover="popover"===i,this.isOffcanvas="offcanvas"===i,this._dataset=Object.assign({toggleStateShown:"shown"},s,n?.dataset??{});const{modalSettings:l={},toggleElement:a,toggleState:r,toggleStateShown:c}=this._dataset;if(this._modalSettings=l,o)this._triggerArray=o;else{const t=a&&a.trim();this._triggerArray=t?Array.from(document.querySelectorAll(t)):[]}this._triggerElement=this._triggerArray?.length?this._triggerArray[0]:null,this.hasHover=this.isPopover&&this._modalSettings?.triggerOnHover&&this._triggerElement,this._isOpen=r===c,this._isTransitioning=!1,this._dialog=null,this._modal=this._getModalMar
1kup(),this._backdrop=this._initializeBackDrop(),this._scrollBar=this._initializeScrollbar(),this.init()}static get NAME(){return"modal"}defaultConfig(){return{modalType:"modal",triggerArray:null,dataset:null,datasetElement:this._element,rootElement:document.body,classModalInitialized:"bb-modal-initialized",classModalHeader:"bb-modal-header",classModalTitle:"bb-modal-title",classTarget:"bb-modal-body",classModal:"bb-modal",classModalDialog:"bb-modal-dialog",classModalContent:"bb-modal-content",classAnimation:"fade",classTrigger:"",classShow:"show",classToggledOn:"is-toggled-on",classToggledOff:"is-toggled-off",classRootOpen:"modal-open",classDismiss:"is-close-modal",classStatic:"is-modal-static",classAnimatedWaiting:"animate__waiting",classAnimating:"is-animating",selectorFocus:".is-focus-first",selectorText:".toggle__text",instanceIndex:0,cachePrefix:"bb-modal-"}}init(){this._setupClasses(),this._addAriaAndToggledClass(),this._attachClickHandler(),this._attachHoverHandler(),this._isOpen&&(this._isOpen=!1,this.show(),this._setTransitioning(!1)),this.handleCustomState(this._dataset?.toggleState),this._onEscape=this._closeOnEscapeKey.bind(this),g(window,u.INIT,{target:this._element,modal:this._modal})}_setupClasses(){const t=this._element,e=this._modal,i=this._triggerArray,{classTrigger:s,classTarget:n,instanceIndex:o}=this._config,{placement:l="start",popoverPlacement:a="bottom"}=this._modalSettings;t.classList.add(n);const r=`bb-modal-${o}`;if(t.setAttribute("id",r),this.isOffcanvas)e.classList.add(`placement-${l}`);else if(this.isPopover){const t=a.startsWith("top")||a.startsWith("bottom")?"y":"x";e.classList.add(`placement-${t}`)}if(s&&i?.length)for(const t of i)t.classList.contains(s)||(t.classList.add(s),t.setAttribute("aria-haspopup","dialog"),t.setAttribute("aria-controls",r),"DIV"!==t.tagName.toUpperCase()||t?.role||(t.setAttribute("role","button"),t.setAttribute("tabindex",0)))}_attachClickHandler(){this.clickHandler=this.toggle.bind(this);const t=this._triggerArray;if(t?.length)for(const e of t)e.addEventListener("click",this.clickHandler),["BUTTON","INPUT"].includes(e.tagName)||e.addEventListener("keydown",t=>{13!==t.keyCode&&32!==t.keyCode||(t.preventDefault(),this.clickHandler())})}_attachHoverHandler(){if(!this.hasHover)return;const t=this._triggerElement,e=this._modal;let i;const s=()=>{clearTimeout(i),i=setTimeout(()=>{this._isOpen&&this.hide(!0)},120)};t.addEventListener("pointerenter",()=>{clearTimeout(i),this._isOpen||this.show(!0)}),t.addEventListener("pointerleave",t=>{e.contains(t.relatedTarget)||s()}),e.addEventListener("pointerenter",()=>{clearTimeout(i)}),e.addEventListener("pointerleave",e=>{t.contains(e.relatedTarget)||s()})}_isOpenHovered(){return!!this.hasHover&&(this._triggerElement.matches(":hover")||this._modal.matches(":hover"))}handleCustomState(t){if("custom"===t){const{uniqueId:t,customState:e="delay",delayTime:i,scrollElement:s,minTimeOnPage:n,storedTime:o}=this._modalSettings,l=!!t&&`${this._config.cachePrefix}${t}`;if(l&&this.getClosedState(l))return;if("delay"===e?this.triggerByDelay(i):"scrollElement"===e?this.triggerByScrollToElement(s):"exitIntent"===e&&this.triggerByExitIntent(n),l){const t=o;t&&this._element.addEventListener(u.HIDDEN,()=>{this.setClosedState(l,t)})}}}triggerByDelay(t){let e=0;if(t){const i=parseInt(t,10);isNaN(i)||(e=i)}setTimeout(()=>{this.show()},1e3*e)}triggerByExitIntent(t){t=parseInt(t),isNaN(t)&&(t=5e3);const e=t=>{t.clientY<=0&&(this.show(),document.removeEventListener("mouseleave",e))};setTimeout(()=>{document.addEventListener("mouseleave",e)},1e3*t)}triggerByScrollToElement(t){if(!t)return;const e=document.querySelectorAll(t);if(!e.length)return;const i=new IntersectionObserver(t=>{for(const e of t)if(e.isIntersecting){this.show(),i.disconnect();break}},{root:null,threshold:0});e.forEach(t=>i.observe(t))}getClosedState(t){let e=localStorage.getItem(t);return e&&"permanent"!==e&&(e=parseFloat(e),!isNaN(e)&&(new Date).getTime()/864e5>e)?(localStorage.removeItem(t),null):e}setClosedState(t,e){if("permanent"===e)localStorage.setItem(t,e);else if(e=parseFloat(e),!isNaN(e)){const i=(new Date).getTime()/864e5;localStorage.setItem(t,i+e)}}toggle(t){if(t&&t?.preventDefault&&t.preventDefault(),this._triggerArray?.length>1&&i(t.target)){let e=null;const{classTrigger:i}=this._config;i&&(e=t.target.closest(`.${i}`)),e||(e=t.target),this._triggerElement=e}this._isOpenHovered()||(this._isOpen?this.hide():this.show())}show(t=!1){if(!t&&(this._isOpen||this._isTransitioning))return;g(this._element,u.SHOW);const{rootElement:e,classRootOpen:i}=this._config;this._isOpen=!0,this._setTransitioning(!0),this._addAriaAndToggledClass(),this.activeElement=this._triggerElement?this._triggerElement:document.activeElement,this._modalSettings?.disableBackdrop||
vendor: 2,400 bytes, line 1
1(this._scrollBar.hide(),this._adjustDialog()),e.classList.add(i),this._setEscapeEvent(),this._backdrop.show(this._showModal.bind(this))}_showModal(){const t=this._modal,e=this._triggerElement,i=this.isModal;if(i?t.style.display="flex":t.style.visibility="visible",t.removeAttribute("aria-hidden"),t.setAttribute("role","dialog"),t.setAttribute("aria-modal",!0),this.isPopover&&e){const i=this._modalSettings?.popoverPlacement??"bottom";!function(t,e,i,s){void 0===s&&(s={});const{ancestorScroll:n=!0,ancestorResize:o=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:r=!1}=s,c=At(t),d=n||o?[...c?vt(c):[],...e?vt(e):[]]:[];d.forEach(t=>{n&&t.addEventListener("scroll",i,{passive:!0}),o&&t.addEventListener("resize",i)});const h=c&&a?function(t,e){let i,s=null;const n=et(t);function o(){var t;clearTimeout(i),null==(t=s)||t.disconnect(),s=null}return function l(a,r){void 0===a&&(a=!1),void 0===r&&(r=1),o();const c=t.getBoundingClientRect(),{left:d,top:h,width:u,height:g}=c;if(a||e(),!u||!g)return;const f={rootMargin:-H(h)+"px "+-H(n.clientWidth-(d+u))+"px "+-H(n.clientHeight-(h+g))+"px "+-H(d)+"px",threshold:k(0,O(1,r))||1};let m=!0;function p(e){const s=e[0].intersectionRatio;if(s!==r){if(!m)return l();s?l(!1,s):i=setTimeout(()=>{l(!1,1e-7)},1e3)}1!==s||Bt(c,t.getBoundingClientRect())||l(),m=!1}try{s=new IntersectionObserver(p,{...f,root:n.ownerDocument})}catch(t){s=new IntersectionObserver(p,f)}s.observe(t)}(!0),o}(c,i):null;let u,g=-1,f=null;l&&(f=new ResizeObserver(t=>{let[s]=t;s&&s.target===c&&f&&e&&(f.unobserve(e),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var t;null==(t=f)||t.observe(e)})),i()}),c&&!r&&f.observe(c),e&&f.observe(e));let m=r?Tt(t):null;r&&function e(){const s=Tt(t);m&&!Bt(m,s)&&i(),m=s,u=requestAnimationFrame(e)}(),i()}(e,t,()=>{var s;((t,e,i)=>{const s=new Map,n={platform:Rt,...i},o={...n.platform,_c:s};return(async(t,e,i)=>{const{placement:s="bottom",strategy:n="absolute",middleware:o=[],platform:l}=i,a=l.detectOverflow?l:{...l,detectOverflow:Z},r=await(null==l.isRTL?void 0:l.isRTL(e));let c=await l.getElementRects({reference:t,floating:e,strategy:n}),{x:d,y:h}=X(c,s,r),u=s,g=0;const f={};for(let i=0;i<o.length;i++){const m=o[i];if(!m)continue;const{name:p,fn:y}=m,{x:b,y:_,data:v,reset:w}=await y({x:d,y:h,initialPlacement:s,placement:u,strategy:n,middlewareData:f,re
1cts:c,platform:a,elements:{reference:t,floating:e}});d=null!=b?b:d,h=null!=_?_:h,f[p]={...f[p],...v},w&&g<50&&(g++,"object"==typeof w&&(w.placement&&(u=w.placement),w.rects&&(c=!0===w.rects?await l.getElementRects({reference:t,floating:e,strategy:n}):w.rects),({x:d,y:h}=X(c,u,r))),i=-1)}return{x:d,y:h,placement:u,strategy:n,middlewareData:f}})(t,e,{...n,platform:o})})(e,t,{strategy:"fixed",placement:i,middleware:[Ft(),(void 0===s&&(s={}),{name:"shift",options:s,async fn(t){const{x:e,y:i,placement:n,platform:o}=t,{mainAxis:l=!0,crossAxis:a=!1,limiter:r={fn:t=>{let{x:e,y:i}=t;return{x:e,y:i}}},...c}=R(s,t),d={x:e,y:i},h=await o.detectOverflow(t,c),u=$(B(n)),g=q(u);let f=d[g],m=d[u];if(l){const t="y"===g?"bottom":"right";f=N(f+h["y"===g?"top":"left"],f,f-h[t])}if(a){const t="y"===u?"bottom":"right";m=N(m+h["y"===u?"top":"left"],m,m-h[t])}const p=r.fn({...t,[g]:f,[u]:m});return{...p,data:{x:p.x-e,y:p.y-i,enabled:{[g]:l,[u]:a}}}}})]}).then(({x:e,y:i})=>{Object.assign(t.style,{left:`${e}px`,top:`${i}px`})})})}l(t),t.classList.add(this._config.classShow),this._queueCallback(this._transitionEnd.bind(this),i?this._dialog:t)}hide(t=!1){const e=this._modal,{classShow:i,classAnimating:s}=this._config;(t||this._isOpen&&!this._isTransitioning&&!e.classList.contains(s))&&(g(this._element,u.HIDE),this._isOpen=!1,this._setTransitioning(!0),this._addAriaAndToggledClass(),e.classList.remove(i),this._setEscapeEvent(),this._queueCallback(this._hideModal.bind(this),this.isModal?this._dialog:e))}_hideModal(){if(this._isOpen)return;const t=this._modal;this.isModal?t.style.display="none":t.style.visibility="hidden",this._focusElement(this.activeElement),t.setAttribute("aria-hidden",!0),t.removeAttribute("aria-modal"),t.removeAttribute("role");const{classAnimation:e,classAnimatedWaiting:i}=this._config;"custom-animation"===e&&this._element.classList.add(i),this._backdrop.hide(this._transitionEnd.bind(this))}_getModalMarkup(){if(this?._modal)return this.modal;const t=this._element,{classTarget:e,classModal:i,classAnimation:s,classModalInitialized:n,modalType:o,instanceIndex:l,classModalDialog:a,classModalContent:r,classModalHeader:c,classModalTitle:d,classDismiss:h}=this._config;let u=t.classList.contains(e)?t.closest(`.${i}`):null,g=null,f=null;if(u)g=t.closest(`.${a}`),f=t.closest(`.${r}`);else{const e=this.isModal,{title:m,selector:p,modalPosition:y,cssText:b,cssTextModal:_,closeButtonColor:v,hideCloseButton:w}=this._modalSettings;u=document.createElement("div"),u.classList.add(i,s,n,`is-${o}`),u.setAttribute("tabindex",-1),m&&u.setAttribute("aria-labelledby",`bb-dialog-title-${l}`),p&&u.classList.add(p),e&&y&&u.classList.add("modal--custom-position"),g=document.createElement("div"),g.classList.add(...a.split(" ")),b&&(e?g.style.cssText=b:u.style.cssText=b),_&&e&&(u.style.cssText=_),f=document.createElement("div"),f.classList.add(r);const E=document.createElement("div");if(E.classList.add(c),m){const t=document.createElement("div");t.classList.add(d),t.textContent=m,t.setAttribute("id",`bb-dialog-title-${l}`),t.style.cssText="position: absolute;width: 1px;height: 1px;padding: 0;margin: -1px;overflow: hidden;clip: rect(0, 0, 0, 0);white-space: nowrap;border-width: 0;",E.appendChild(t),E.classList.add("has-title")}else E.classList.add("has-no-title");if(t.style.cssText){let e=t.style.cssText.split(";");e.length>0&&(e=e.filter(t=>-1!==t.trim().indexOf("--bb--margin-top")||-1!==t.trim().indexOf("--bb--margin-right")),e.length>0&&(E.style.cssText=e.join(";")))}if(!w){const t=document.createElement("button");t.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" class="btn-close__icon"><path d="m13 11.8 6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"/></svg>',t.setAttribute("type","button"),t.setAttribute("aria-label","Close"),t.classList.add("btn-close",h),v&&t.style.setProperty("color",v),E.appendChild(t)}f.appendChild(E),t.parentNode.insertBefore(u,t).appendChild(g).appendChild(f).appendChild(t),t.classList.remove("is-modal-body")}return u.addEventListener("click",t=>{f.contains(t.target)||(this._modalSettings?.forceCloseButtons?this._highlightModal():this.hide())}),f.querySelectorAll(`.${h}`).forEach(t=>{t.addEventListener("click",t=>{t.preventDefault(),this.hide()})}),this._dialog=g,this._modal=u,this._modal}_setEscapeEvent(){const t=this._modal,e=this._onEscape;this._isOpen?t.addEventListener("keydown",e):t.removeEventListener("keydown",e)}_closeOnEscapeKey(t){"Escape"===t.key&&(t.preventDefault(),this._modalSettings?.forceCloseButtons?this._highlightModal():this.hide())}_addAriaAndToggledClass(){const t=this._isOpen,e=this._triggerArray;
1if(e.length){const{classToggledOn:i,classToggledOff:s}=this._config;for(const n of e)n.classList.toggle(i,t),n.classList.toggle(s,!t),n.setAttribute("aria-expanded",t)}this.hasHover&&this._triggerElement.classList.toggle("is-hovered",t)}_setTransitioning(t){this._isTransitioning=t}_transitionEnd(){this._setTransitioning(!1);const t=this._element,e=this._modal,i=this._modalSettings,s=this._config;this._isOpen?(e.focus(),"true"===this._dataset?.toggleFocusFirstElement&&this._focusFirstFocusableElement(t),g(t,u.SHOWN),g(window,u.SHOWN,{target:t,modal:e,config:s,modalSettings:i})):(s.rootElement.classList.remove(s.classRootOpen),i?.disableBackdrop||(this._resetAdjustments(),this._scrollBar.reset()),g(t,u.HIDDEN),g(window,u.HIDDEN,{target:t,modal:e,config:s,modalSettings:i}))}_focusElement(t){if(!t||!document.contains(t))return;if("function"==typeof t.focus&&t.tabIndex>=0)return void t.focus();const e=t.querySelector('a[href], button:not([disabled]), [tabindex]:not([tabindex="-1"])');e?.focus()}_focusFirstFocusableElement(t){let e=t.querySelector(this._config.selectorFocus);e?"DIV"===e?.tagName&&e.classList.contains("wp-block-button")&&(e=e.querySelector("a")):e=t.querySelector('button, input:not([type="hidden"]), select, textarea, a[href]'),e&&requestAnimationFrame(()=>{e.focus()})}_adjustDialog(){const t=this._element,e=t.scrollHeight>document.documentElement.clientHeight,i=this._scrollBar.getWidth(),s=i>0;if(s&&!e){const e=a()?"paddingLeft":"paddingRight";t.style[e]=`${i}px`}if(!s&&e){const e=a()?"paddingRight":"paddingLeft";t.style[e]=`${i}px`}}_resetAdjustments(){const t=this._element;t.style.paddingLeft="",t.style.paddingRight=""}_initializeBackDrop(){const{disableBackdrop:t,forceCloseButtons:e}=this._modalSettings;return new v({isVisible:!t,clickCallback:e?this._highlightModal.bind(this):this.hide.bind(this),rootElement:this._config.rootElement})}_initializeScrollbar(){return this._modalSettings?.disableBackdrop?null:new E}_highlightModal(){const t=this._modal,e=t.style.overflowY,i=this._config,s=this.isModal,n=this._dialog;t.classList.contains(i.classStatic)||(t.classList.add(i.classStatic),t.style.overflowY="hidden",this._queueCallback(()=>{t.classList.remove(i.classStatic),this._queueCallback(()=>{t.style.overflowY=e},s?n:t)},s?n:t))}}r("Modal",qt);const Pt=qt;class $t{constructor(t=""){t||(t=window.location.href),this.parsedURL=new URL(t)}get(t,e=null){return this.parsedURL.searchParams.get(t)||e}set(t,e,i=!0){this.parsedURL.searchParams.set(t,e),i&&history.pushState&&history.pushState({},null,this.parsedURL.href)}delete(t,e=!0){this.parsedURL.searchParams.delete(t),e&&history.pushState&&history.pushState({},null,this.parsedURL.href)}reload(){history?.go?history.go():window.location.reload()}getHref(){return this.parsedURL.href}}window.addEventListener(u.HIDDEN,function({detail:{target:t,modal:e}={}}){t&&e&&t.querySelectorAll(".wp-block-embed-youtube, .wp-block-video, .wp-block-boldblocks-youtube-block").forEach(t=>{var e;t.classList.contains("wp-block-video")?(e=t.querySelector("video"))&&(e.pause(),e.currentTime=0):((t=>t.classList.contains("wp-block-embed-youtube"))(t)||(t=>t.classList.contains("wp-block-boldblocks-youtube-block"))(t))&&(t=>{const e=t.querySelector("iframe");e&&e.src&&e.contentWindow.postMessage('{"event":"command","func":"stopVideo","args":""}',"*")})(t)})}),window.addEventListener(u.SHOWN,function({detail:{target:t,modal:i}={}}){t&&i&&(t.querySelectorAll(".wp-block-embed-youtube").forEach(t=>{const e=t.querySelector("iframe");if(e&&e.src){const t=new $t(e.src);let i=!1;t.get("enablejsapi")||(t.set("enablejsapi",1,!1),i=!0),t.get("playsinline")||(t.set("playsinline",1,!1),i=!0),i&&e.setAttribute("src",t.getHref())}}),t.querySelectorAll(".wp-block-boldblocks-youtube-block .yb-player").forEach(t=>{let i=f(t.getAttribute("data-params"));"object"===e(i)?i.enablejsapi=1:i={enablejsapi:1},t.setAttribute("data-params",JSON.stringify(i))}))});const Wt=new WeakSet;let jt=0;function zt(t){if(Wt.has(t))return;Wt.add(t);let e=t.dataset??{};const i=jt++,s=e?.toggleType??"collapse",n=function(t){const e=t?.dataset?.toggleElement??"";if(e.includes(">>")){const[i,s]=e.split(">>").map(t=>t.trim());let n=i?t.closest(i):null;return n||(n=document),Array.from(n.querySelectorAll(s))}return null}(t);if("collapse"===s)new L(t,{triggerArray:n,classTrigger:"toggle-content-trigger",instanceIndex:i});else if(["modal","offcanvas","popover"].includes(s)){const o=e?e?.toggleModalSettings:null;o&&(e={...e,modalSettings:c(o)}),new Pt(t,{modalType:s,dataset:e,triggerArray:n,classTrigger:"toggle-content-trigger",classRootOpen:`${s}-open`,classAnimation:e?.revealAnimation?"custom-animation":"modal"===s?"fade":"translate",instanceIndex:i})}e?.dynamicContentContainer&&A.observe(e.dynamicContentContainer,{type:"toggle"})}function Vt(t=document){const e=Array.from(t.querySelectorAll(".is-toggle-content"));for(const t of e)zt(t)}d(()=>{Vt()}),x((t,{type:e})=>{e&&"toggle"!==e||Vt(t)});class Ut{constructor(t,e={}){t&&(this.element=t,this.options=Object.assign({root:window},e),this.root=this.options.root,this.isInFlow=t.classList.contains("is-in-flow"),this.isDetectingScroll=t.classList.contains("is-detecting-scroll"),this.resizeTicking=!1,this.scrollTicking=!1,this.init())}init(){this.eventBinding(),this.isDetectingScroll&&requestAnimationFrame(this.handleScroll.bind(this)),this.isInFlow&&requestAnimationFrame(this.calculateStyle.bind(this))}eventBinding(){this.isDetectingScroll&&this.root.addEventListener("scroll",this.updateOnScroll.bind(this)),this.isInFlow&&this.root.addEventListener("resize",this.updateOnResize.bind(this))}buildPlaceholderNode(){if(!this.placeholderNode){const t=document.createElement("div");t.classList.add("is-sticky-placeholder"),t.style.height=`${this.getOuterHeight()}px`,this.element.insertAdjacentElement("afterend",t),this.placeholderNode=t}}getOuterHeight(){return this.element.offsetHeight+parseFloat(this.elementStyle.marginTop)+parseFloat(this.elementStyle.marginBottom)}calculateStyle(){this.elementStyle||(this.elementStyle=getComputedStyle(this.element)),this.buildPlaceholderNode(),this.placeholderNode.style.height=`${this.getOuterHeight()}px`,this.resizeTicking=!1}updateOnResize(){this.resizeTicking||(requestAnimationFrame(this.calculateStyle.bind(this)),this.resizeTicking=!0)}handleScroll(){this.element.classList.toggle("has-scrolled",this.root.scrollY>0),this.scrollTicking=!1}updateOnScroll(){this.scrollTicking||(requestAnimationFrame(this.handleScroll.bind(this)),this.scrollTicking=!0)}}d(()=>document.querySelectorAll(".is-fixed.is-in-flow, .is-fixed.is-detecting-scroll").forEach(t=>new Ut(t)));const Yt=t=>
1{const e=t.querySelector("video"),i=t.querySelector(".cbb-video-play-pause");if(e&&i){const t=(t,e)=>{t.classList.toggle("is-paused",e),t.classList.toggle("is-playing",!e)};e.addEventListener("play",()=>{t(i,!1)}),e.addEventListener("pause",()=>{t(i,!0)}),i.addEventListener("click",()=>{e?.paused?e.play():e.pause()})}};d(()=>document.querySelectorAll(".cbb-has-video-controls").forEach(Yt));const Kt="is__animated",Jt="is__animating",Xt="animate__waiting",Zt=t=>(t._cbbAnimationData||(t._cbbAnimationData=c(t.dataset.revealAnimation)),t._cbbAnimationData),Gt=(t="")=>t.trim().split(" ")[0]??"";function Qt(t,{effectClass:e,animatingClass:i=Jt,animatedClass:s=Kt}={}){t.style.animation="",e&&t.classList.remove(e),t.classList.remove(i),s&&t.classList.remove(s)}function te(t,{waitingClass:e=Xt}={}){t.classList.add(e)}function ee(t,e={}){((t,{prefix:e="effect__",name:i,animation:s,multipleTimes:n,animatedClass:o=Kt,animatingClass:l=Jt,waitingClass:a=Xt,callback:r,forwards:c})=>{if(!i||!s)return;if(t.classList.contains(l))return;const d=i.split(",").map(t=>t.trim()),h=s.split(/,(?![^()]*\))/).map(t=>t.trim());let u=0,g=d[u]?`${e}${d[u]}`:"",f=Gt(h[u]);const m=Math.min(d.length,h.length);new Promise(i=>{t.classList.remove(a),t.style.animation&&(t.style.animation="",t.offsetWidth),t.style.animation=h[u],t.classList.add(l,o),g&&t.classList.add(g),t.addEventListener("animationend",function s(o){if(o.target===t){if(o.stopPropagation(),g&&t.classList.remove(g),u++,u<m){g=d[u]?`${e}${d[u]}`:"";const i=h[u]??"",s=Gt(i);return t.style.animation="",f===s&&t.offsetWidth,t.style.animation=i,g&&t.classList.add(g),void(f=s)}t.removeEventListener("animationend",s),t.classList.remove(l),n&&(c||Qt(t,{effectClass:g,animatedClass:""}),"function"==typeof r&&r()),i(`Animation ${u} ended`)}})})})(t,{...Zt(t),...e})}const ie=new class{constructor(t={}){this.options=Object.assign({root:null,rootMargin:"0px",animatingClass:Jt,animatedClass:Kt},t),this.observedElements=new WeakSet,this.observer=new IntersectionObserver(this.handleIntersect.bind(this),{root:this.options.root,rootMargin:this.options.rootMargin})}observe(t=[],e){Array.from(t).forEach(t=>{e&&(delete t._cbbAnimationData,Qt(t),te(t)),this.observedElements.has(t)?ee(t,this.options):(this.observedElements.add(t),this.observer.observe(t))})}handleIntersect(t){const{animatedClass:e,animatingClass:i}=this.options;t.forEach(t=>{const s=t.target;if(t.isIntersecting)return void(s.classList.contains(e)||ee(s,this.options));const n=Zt(s);if(n?.multipleTimes){if((n.name?.split(",").length??0)<=1)return Qt(s),void te(s);s.classList.contains(i)||(Qt(s),te(s))}})}};function se(t,e=!1){ie.observe(t,e)}r("doAnimation",se);const ne=(t=document)=>{let e=[].slice.call(t.querySelectorAll("[data-reveal-animation]"));e.length&&(e=e.filter(t=>!t.closest(".js-carousel-layout")&&!t.closest(".is-toggle-content")),se(e))};d(()=>{ne()}),x((t,{type:e})=>{e||ne(t)})})();
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.