websiteComponents.loader.define("website.components.horizontalrule.visitor",[],()=>(()=>{"use strict";var e={d:(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{Visitor:()=>R,default:()=>L});let n=!1,r=!1,o=!1,i=!1;"undefined"!=typeof window&&"CSS"in window&&"function"==typeof CSS.supports&&(n="Animation"in window,"ViewTimeline"in window&&CSS.supports("animation-range","entry 0% exit 100%"),o="registerProperty"in CSS,CSS.supports("animation-timing-function","linear(0, 0.25 75%, 1)"));const s=n&&o,a=()=>window.__sqsAnimationRuntime;function c(e){return"__proto__"===e}function u(e){if(!e||"object"!=typeof e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t))&&"[object Object]"===Object.prototype.toString.call(e)}function f(e,t,n){const r=Object.keys(t);for(let o=0;oObject.prototype.propertyIsEnumerable.call(e,t))}function d(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const p="[object String]",b="[object Number]",h="[object Boolean]",y="[object Arguments]",g="[object Object]";function m(e){return null==e||"object"!=typeof e&&"function"!=typeof e}function j(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function w(e,t,n,r=new Map,o=void 0){const i=o?.(e,t,n,r);if(void 0!==i)return i;if(m(e))return e;if(r.has(e))return r.get(e);if(Array.isArray(e)){const t=new Array(e.length);r.set(e,t);for(let i=0;i{const s=t?.(n,r,o,i);if(void 0!==s)return s;if("object"==typeof e){if(d(e)===g&&"function"!=typeof e.constructor){const t={};return i.set(e,t),O(t,e,o,i),t}switch(Object.prototype.toString.call(e)){case b:case p:case h:{const t=new e.constructor(e?.valueOf());return O(t,e),t}case y:{const t={};return O(t,e),t.length=e.length,t[Symbol.iterator]=e[Symbol.iterator],t}default:return}}})}(e)}function k(e){return null!==e&&"object"==typeof e&&"[object Arguments]"===d(e)}function v(e){return"object"==typeof e&&null!==e}function B(e){return v(e)&&function(e){return null!=e&&"function"!=typeof e&&function(e){return Number.isSafeInteger(e)&&e>=0}(e.length)}(e)}function S(e){if("object"!=typeof e)return!1;if(null==e)return!1;if(null===Object.getPrototypeOf(e))return!0;if("[object Object]"!==Object.prototype.toString.call(e)){const t=e[Symbol.toStringTag];return null!=t&&(!!Object.getOwnPropertyDescriptor(e,Symbol.toStringTag)?.writable&&e.toString()===`[object ${t}]`)}let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function D(e){return j(e)}function V(e,t,n,r){if(m(e)&&(e=Object(e)),null==t||"object"!=typeof t)return e;if(r.has(t))return function(e){if(m(e))return e;if(Array.isArray(e)||j(e)||e instanceof ArrayBuffer||"undefined"!=typeof SharedArrayBuffer&&e instanceof SharedArrayBuffer)return e.slice(0);const t=Object.getPrototypeOf(e);if(null==t)return Object.assign(Object.create(t),e);const n=t.constructor;if(e instanceof Date||e instanceof Map||e instanceof Set)return new n(e);if(e instanceof RegExp){const t=new n(e);return t.lastIndex=e.lastIndex,t}if(e instanceof DataView)return new n(e.buffer.slice(0));if(e instanceof Error){let t;return t=e instanceof AggregateError?new n(e.errors,e.message,{cause:e.cause}):new n(e.message,{cause:e.cause}),t.stack=e.stack,Object.assign(t,e),t}if("undefined"!=typeof File&&e instanceof File)return new n([e],e.name,{type:e.type,lastModified:e.lastModified});if("object"==typeof e){const n=Object.create(t);return Object.assign(n,e)}return e}(r.get(t));if(r.set(t,e),Array.isArray(t)){t=t.slice();for(let e=0;e(e.maxWidth?parseInt(e.maxWidth):1/0)-(t.maxWidth?parseInt(t.maxWidth):1/0)),n=document.documentElement.clientWidth;return t.find(e=>{if((e?.maxWidth?parseInt(e.maxWidth):Number.MAX_SAFE_INTEGER)>n)return e})??e[0]??null}function I(e,t,n){if(!t||!e?.breakpointOverrides)return e;const r=e.breakpointOverrides[t.id];return r?n?f(w(o=e,void 0,o,new Map,void 0),r,(e,t,r,o,i)=>n({baseValue:e,overrideValue:t,key:r,base:o,override:i})):function(e,...t){return function(e,...t){const n=t.slice(0,-1),r=t[t.length-1];let o=e;for(let e=0;e1&&void 0!==arguments[1]&&arguments[1];if(this.root=e,this.root=e,!s)return void this.removePrerender();this.componentId=this.root.closest("[data-website-component-id]")?.dataset.websiteComponentId??"";const n=this.root.parentElement?.classList.contains("pseudo-engine__block");t||n||(this.prefersReducedMotionUnsub=a()?.registerReducedMotionChangeHandler?.(this.handlePrefersReducedMotionChange),window.matchMedia("(prefers-reduced-motion: reduce)").matches||this.attachResizeListener())}processBreakpointOverrideValue(){this.websiteBreakpoints||this.parseBlockData();const e=this.websiteBreakpoints;if(!e)return;const t=x(e);this.processedValue=I(this.blockData,t)}removePrerender(){this.root.querySelector("style[data-block-animations-prerender]")?.remove()}handlePrefersReducedMotionChange=e=>{e?(this.destroyAnimations(),this.detachResizeListener()):(this.parseBlockData(),this.attachResizeListener(),this.createAnimations())};parseBlockData(){const e=this.root.querySelector(`script[data-block-animations="${this.componentId||""}"]`);if(!e)return this.blockData={animations:[],transforms:{},componentId:this.componentId},void(this.websiteBreakpoints=void 0);const t=JSON.parse(String(e.textContent)),{websitesBreakpoints:n,...r}=t;this.websiteBreakpoints=n,this.blockData=r,this.processBreakpointOverrideValue()}attachResizeListener(){if(this.resizeListener)return;this.blockData||this.parseBlockData();const e=this.websiteBreakpoints;e&&(this.previousBreakpoint?.id||(this.previousBreakpoint=x(e)),this.resizeListener=()=>{const t=x(e);if(this.previousBreakpoint?.id!==t?.id){if(this.previousBreakpoint=t,this.processBreakpointOverrideValue(),!this.root.isConnected)return;this.destroyAnimationTriggers(),this.createAnimations()}},window.addEventListener("resize",this.resizeListener))}detachResizeListener(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null,this.previousBreakpoint=null)}createAnimations(){s&&this.blockData&&(this.processBreakpointOverrideValue(),this.processedValue?a()?.createAnimationTriggers(this.processedValue):a()?.createAnimationTriggers(this.blockData))}destroyAnimationTriggers(){const e=a();this.processedValue?e?.destroyAnimationTriggers(this.processedValue):e?.destroyAnimationTriggers(this.blockData)}destroyAnimations(){this.prefersReducedMotionUnsub?.(),this.blockData&&this.destroyAnimationTriggers()}updateBlockData(e,t){e&&(this.blockData||this.parseBlockData(),this.blockData={...this.blockData||{},...e},this.websiteBreakpoints=t,this.processBreakpointOverrideValue())}getBlockData(){return this.blockData||this.parseBlockData(),this.processBreakpointOverrideValue(),this.processedValue?this.processedValue:this.blockData}}class R{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.root=e,this.animationVisitor=new M(e,t)}}const L=function(e){return new R(e,arguments.length>1&&void 0!==arguments[1]&&arguments[1])};return t})());