/** * Minified by jsDelivr using Terser v5.39.0. * Original file: /npm/@flowbase-co/boosters-carousel-ticker@1.3.3/dist/carousel-ticker.js * * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files */ !function(){"use strict";var e=class{constructor(){this.max=1e3,this.map=new Map}get(e){const t=this.map.get(e);if(void 0!==t)return this.map.delete(e),this.map.set(e,t),t}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&void 0!==t){if(this.map.size>=this.max){const e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}};const t=Object.freeze({loose:!0}),r=Object.freeze({});var s=e=>e?"object"!=typeof e?t:e:r,i={exports:{}};var o={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},n="object"==typeof process&&{}.NODE_DEBUG&&/\bsemver\b/i.test({}.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};!function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:s,MAX_LENGTH:i}=o,a=n,l=(t=e.exports={}).re=[],h=t.safeRe=[],c=t.src=[],E=t.t={};let p=0;const u="[a-zA-Z0-9-]",d=[["\\s",1],["\\d",i],[u,s]],f=(e,t,r)=>{const s=(e=>{for(const[t,r]of d)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e})(t),i=p++;a(e,i,t),E[e]=i,c[i]=t,l[i]=new RegExp(t,r?"g":void 0),h[i]=new RegExp(s,r?"g":void 0)};f("NUMERICIDENTIFIER","0|[1-9]\\d*"),f("NUMERICIDENTIFIERLOOSE","\\d+"),f("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${u}*`),f("MAINVERSION",`(${c[E.NUMERICIDENTIFIER]})\\.(${c[E.NUMERICIDENTIFIER]})\\.(${c[E.NUMERICIDENTIFIER]})`),f("MAINVERSIONLOOSE",`(${c[E.NUMERICIDENTIFIERLOOSE]})\\.(${c[E.NUMERICIDENTIFIERLOOSE]})\\.(${c[E.NUMERICIDENTIFIERLOOSE]})`),f("PRERELEASEIDENTIFIER",`(?:${c[E.NUMERICIDENTIFIER]}|${c[E.NONNUMERICIDENTIFIER]})`),f("PRERELEASEIDENTIFIERLOOSE",`(?:${c[E.NUMERICIDENTIFIERLOOSE]}|${c[E.NONNUMERICIDENTIFIER]})`),f("PRERELEASE",`(?:-(${c[E.PRERELEASEIDENTIFIER]}(?:\\.${c[E.PRERELEASEIDENTIFIER]})*))`),f("PRERELEASELOOSE",`(?:-?(${c[E.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[E.PRERELEASEIDENTIFIERLOOSE]})*))`),f("BUILDIDENTIFIER",`${u}+`),f("BUILD",`(?:\\+(${c[E.BUILDIDENTIFIER]}(?:\\.${c[E.BUILDIDENTIFIER]})*))`),f("FULLPLAIN",`v?${c[E.MAINVERSION]}${c[E.PRERELEASE]}?${c[E.BUILD]}?`),f("FULL",`^${c[E.FULLPLAIN]}$`),f("LOOSEPLAIN",`[v=\\s]*${c[E.MAINVERSIONLOOSE]}${c[E.PRERELEASELOOSE]}?${c[E.BUILD]}?`),f("LOOSE",`^${c[E.LOOSEPLAIN]}$`),f("GTLT","((?:<|>)?=?)"),f("XRANGEIDENTIFIERLOOSE",`${c[E.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),f("XRANGEIDENTIFIER",`${c[E.NUMERICIDENTIFIER]}|x|X|\\*`),f("XRANGEPLAIN",`[v=\\s]*(${c[E.XRANGEIDENTIFIER]})(?:\\.(${c[E.XRANGEIDENTIFIER]})(?:\\.(${c[E.XRANGEIDENTIFIER]})(?:${c[E.PRERELEASE]})?${c[E.BUILD]}?)?)?`),f("XRANGEPLAINLOOSE",`[v=\\s]*(${c[E.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[E.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[E.XRANGEIDENTIFIERLOOSE]})(?:${c[E.PRERELEASELOOSE]})?${c[E.BUILD]}?)?)?`),f("XRANGE",`^${c[E.GTLT]}\\s*${c[E.XRANGEPLAIN]}$`),f("XRANGELOOSE",`^${c[E.GTLT]}\\s*${c[E.XRANGEPLAINLOOSE]}$`),f("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`),f("COERCE",`${c[E.COERCEPLAIN]}(?:$|[^\\d])`),f("COERCEFULL",c[E.COERCEPLAIN]+`(?:${c[E.PRERELEASE]})?(?:${c[E.BUILD]})?(?:$|[^\\d])`),f("COERCERTL",c[E.COERCE],!0),f("COERCERTLFULL",c[E.COERCEFULL],!0),f("LONETILDE","(?:~>?)"),f("TILDETRIM",`(\\s*)${c[E.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",f("TILDE",`^${c[E.LONETILDE]}${c[E.XRANGEPLAIN]}$`),f("TILDELOOSE",`^${c[E.LONETILDE]}${c[E.XRANGEPLAINLOOSE]}$`),f("LONECARET","(?:\\^)"),f("CARETTRIM",`(\\s*)${c[E.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",f("CARET",`^${c[E.LONECARET]}${c[E.XRANGEPLAIN]}$`),f("CARETLOOSE",`^${c[E.LONECARET]}${c[E.XRANGEPLAINLOOSE]}$`),f("COMPARATORLOOSE",`^${c[E.GTLT]}\\s*(${c[E.LOOSEPLAIN]})$|^$`),f("COMPARATOR",`^${c[E.GTLT]}\\s*(${c[E.FULLPLAIN]})$|^$`),f("COMPARATORTRIM",`(\\s*)${c[E.GTLT]}\\s*(${c[E.LOOSEPLAIN]}|${c[E.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",f("HYPHENRANGE",`^\\s*(${c[E.XRANGEPLAIN]})\\s+-\\s+(${c[E.XRANGEPLAIN]})\\s*$`),f("HYPHENRANGELOOSE",`^\\s*(${c[E.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[E.XRANGEPLAINLOOSE]})\\s*$`),f("STAR","(<|>)?=?\\s*\\*"),f("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),f("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(i,i.exports);var a=i.exports;const l=/^[0-9]+$/,h=(e,t)=>{const r=l.test(e),s=l.test(t);return r&&s&&(e=+e,t=+t),e===t?0:r&&!s?-1:s&&!r?1:eh(t,e)};const E=n,{MAX_LENGTH:p,MAX_SAFE_INTEGER:u}=o,{safeRe:d,t:f}=a,$=s,{compareIdentifiers:m}=c;var I=class e{constructor(t,r){if(r=$(r),t instanceof e){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease)return t;t=t.version}else if("string"!=typeof t)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>p)throw new TypeError(`version is longer than ${p} characters`);E("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;const s=t.trim().match(r.loose?d[f.LOOSE]:d[f.FULL]);if(!s)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+s[1],this.minor=+s[2],this.patch=+s[3],this.major>u||this.major<0)throw new TypeError("Invalid major version");if(this.minor>u||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>u||this.patch<0)throw new TypeError("Invalid patch version");s[4]?this.prerelease=s[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[s]&&(this.prerelease[s]++,s=-2);if(-1===s){if(t===this.prerelease.join(".")&&!1===r)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let s=[t,e];!1===r&&(s=[t]),0===m(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=s):this.prerelease=s}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};const R=I;var v=(e,t,r)=>new R(e,r).compare(new R(t,r));const N=v;const L=v;const g=v;const O=v;const A=v;const w=v;const T=(e,t,r)=>0===N(e,t,r),b=(e,t,r)=>0!==L(e,t,r),S=(e,t,r)=>g(e,t,r)>0,y=(e,t,r)=>O(e,t,r)>=0,P=(e,t,r)=>A(e,t,r)<0,C=(e,t,r)=>w(e,t,r)<=0;var F,D,G,M,X=(e,t,r,s)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return T(e,r,s);case"!=":return b(e,r,s);case">":return S(e,r,s);case">=":return y(e,r,s);case"<":return P(e,r,s);case"<=":return C(e,r,s);default:throw new TypeError(`Invalid operator: ${t}`)}};function U(){if(M)return G;M=1;const t=/\s+/g;class r{constructor(e,s){if(s=l(s),e instanceof r)return e.loose===!!s.loose&&e.includePrerelease===!!s.includePrerelease?e:new r(e.raw,s);if(e instanceof h)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=s,this.loose=!!s.loose,this.includePrerelease=!!s.includePrerelease,this.raw=e.trim().replace(t," "),this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!v(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&N(e[0])){this.set=[e];break}}this.formatted=void 0}get range(){if(void 0===this.formatted){this.formatted="";for(let e=0;e0&&(this.formatted+="||");const t=this.set[e];for(let e=0;e0&&(this.formatted+=" "),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){const t=((this.options.includePrerelease&&m)|(this.options.loose&&R))+":"+e,r=i.get(t);if(r)return r;const s=this.options.loose,o=s?p[u.HYPHENRANGELOOSE]:p[u.HYPHENRANGE];e=e.replace(o,j(this.options.includePrerelease)),c("hyphen replace",e),e=e.replace(p[u.COMPARATORTRIM],d),c("comparator trim",e),e=e.replace(p[u.TILDETRIM],f),c("tilde trim",e),e=e.replace(p[u.CARETTRIM],$),c("caret trim",e);let n=e.split(" ").map((e=>g(e,this.options))).join(" ").split(/\s+/).map((e=>C(e,this.options)));s&&(n=n.filter((e=>(c("loose invalid filter",e,this.options),!!e.match(p[u.COMPARATORLOOSE]))))),c("range list",n);const a=new Map,l=n.map((e=>new h(e,this.options)));for(const e of l){if(v(e))return[e];a.set(e.value,e)}a.size>1&&a.has("")&&a.delete("");const E=[...a.values()];return i.set(t,E),E}intersects(e,t){if(!(e instanceof r))throw new TypeError("a Range is required");return this.set.some((r=>L(r,t)&&e.set.some((e=>L(e,t)&&r.every((r=>e.every((e=>r.intersects(e,t)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new E(e,this.options)}catch{return!1}for(let t=0;t")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||l(this.semver,"<",e.semver,s)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||l(this.semver,">",e.semver,s)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}}F=t;const r=s,{safeRe:i,t:o}=a,l=X,h=n,c=I,E=U();return F}(),c=n,E=I,{safeRe:p,t:u,comparatorTrimReplace:d,tildeTrimReplace:f,caretTrimReplace:$}=a,{FLAG_INCLUDE_PRERELEASE:m,FLAG_LOOSE:R}=o,v=e=>"<0.0.0-0"===e.value,N=e=>""===e.value,L=(e,t)=>{let r=!0;const s=e.slice();let i=s.pop();for(;r&&s.length;)r=s.every((e=>i.intersects(e,t))),i=s.pop();return r},g=(e,t)=>(c("comp",e,t),e=T(e,t),c("caret",e),e=A(e,t),c("tildes",e),e=S(e,t),c("xrange",e),e=P(e,t),c("stars",e),e),O=e=>!e||"x"===e.toLowerCase()||"*"===e,A=(e,t)=>e.trim().split(/\s+/).map((e=>w(e,t))).join(" "),w=(e,t)=>{const r=t.loose?p[u.TILDELOOSE]:p[u.TILDE];return e.replace(r,((t,r,s,i,o)=>{let n;return c("tilde",e,t,r,s,i,o),O(r)?n="":O(s)?n=`>=${r}.0.0 <${+r+1}.0.0-0`:O(i)?n=`>=${r}.${s}.0 <${r}.${+s+1}.0-0`:o?(c("replaceTilde pr",o),n=`>=${r}.${s}.${i}-${o} <${r}.${+s+1}.0-0`):n=`>=${r}.${s}.${i} <${r}.${+s+1}.0-0`,c("tilde return",n),n}))},T=(e,t)=>e.trim().split(/\s+/).map((e=>b(e,t))).join(" "),b=(e,t)=>{c("caret",e,t);const r=t.loose?p[u.CARETLOOSE]:p[u.CARET],s=t.includePrerelease?"-0":"";return e.replace(r,((t,r,i,o,n)=>{let a;return c("caret",e,t,r,i,o,n),O(r)?a="":O(i)?a=`>=${r}.0.0${s} <${+r+1}.0.0-0`:O(o)?a="0"===r?`>=${r}.${i}.0${s} <${r}.${+i+1}.0-0`:`>=${r}.${i}.0${s} <${+r+1}.0.0-0`:n?(c("replaceCaret pr",n),a="0"===r?"0"===i?`>=${r}.${i}.${o}-${n} <${r}.${i}.${+o+1}-0`:`>=${r}.${i}.${o}-${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${o}-${n} <${+r+1}.0.0-0`):(c("no pr"),a="0"===r?"0"===i?`>=${r}.${i}.${o}${s} <${r}.${i}.${+o+1}-0`:`>=${r}.${i}.${o}${s} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${o} <${+r+1}.0.0-0`),c("caret return",a),a}))},S=(e,t)=>(c("replaceXRanges",e,t),e.split(/\s+/).map((e=>y(e,t))).join(" ")),y=(e,t)=>{e=e.trim();const r=t.loose?p[u.XRANGELOOSE]:p[u.XRANGE];return e.replace(r,((r,s,i,o,n,a)=>{c("xRange",e,r,s,i,o,n,a);const l=O(i),h=l||O(o),E=h||O(n),p=E;return"="===s&&p&&(s=""),a=t.includePrerelease?"-0":"",l?r=">"===s||"<"===s?"<0.0.0-0":"*":s&&p?(h&&(o=0),n=0,">"===s?(s=">=",h?(i=+i+1,o=0,n=0):(o=+o+1,n=0)):"<="===s&&(s="<",h?i=+i+1:o=+o+1),"<"===s&&(a="-0"),r=`${s+i}.${o}.${n}${a}`):h?r=`>=${i}.0.0${a} <${+i+1}.0.0-0`:E&&(r=`>=${i}.${o}.0${a} <${i}.${+o+1}.0-0`),c("xRange return",r),r}))},P=(e,t)=>(c("replaceStars",e,t),e.trim().replace(p[u.STAR],"")),C=(e,t)=>(c("replaceGTE0",e,t),e.trim().replace(p[t.includePrerelease?u.GTE0PRE:u.GTE0],"")),j=e=>(t,r,s,i,o,n,a,l,h,c,E,p)=>`${r=O(s)?"":O(i)?`>=${s}.0.0${e?"-0":""}`:O(o)?`>=${s}.${i}.0${e?"-0":""}`:n?`>=${r}`:`>=${r}${e?"-0":""}`} ${l=O(h)?"":O(c)?`<${+h+1}.0.0-0`:O(E)?`<${h}.${+c+1}.0-0`:p?`<=${h}.${c}.${E}-${p}`:e?`<${h}.${c}.${+E+1}-0`:`<=${l}`}`.trim(),B=(e,t,r)=>{for(let r=0;r0){const s=e[r].semver;if(s.major===t.major&&s.minor===t.minor&&s.patch===t.patch)return!0}return!1}return!0};return G}const j=U();const B=(x=(e,t,r)=>{try{t=new j(t,r)}catch{return!1}return t.test(e)})&&x.__esModule&&Object.prototype.hasOwnProperty.call(x,"default")?x.default:x;var x;class _{constructor(){this.dependencies=[],this.await=[]}static init(){return window.hasOwnProperty("FlowbaseBoosters")||(window.FlowbaseBoosters={}),window.FlowbaseBoosters.hasOwnProperty("deps")||(window.FlowbaseBoosters.deps=new _),window.FlowbaseBoosters.deps}register(e){this.dependencies.push(e);const t=e.get();for(const r of this.await)r.name===e.name&&B(e.version,r.version)&&r.resolve(t)}get(e,t){return new Promise(((r,s)=>{const i=this.dependencies.find((r=>e===r.name&&B(r.version,t)));if(!i){const i={name:e,version:t,resolve:e=>r(e)};setTimeout((()=>{s(),this.await.splice(this.await.indexOf(i),1)}),1e4),this.await.push(i)}i&&r(i.get())}))}}class V{constructor(){this.data={}}set(e,t){this.data[e]=t}get(e){return this.data[e]}}const k="fb-booster-initialized",H={Dependencies:_,Booster:class{constructor(e){this.options=e}log(e,t){const r=[`%c[${this.options.title}] ${e}. Link to documentation ${this.options.documentationLink}`,"\n display: inline-block;\n padding: 4px 6px;\n border-radius: 4px;\n line-height: 1.5em;\n color: #282735;\n background: linear-gradient(45deg,\n rgba(185, 205, 255, 0.4) 0%,\n rgba(201, 182, 255, 0.4) 33%,\n rgba(239, 184, 255, 0.4) 66%,\n rgba(255, 210, 177, 0.4) 100%);\n "];t?(console.group(...r),Array.isArray(t)?console.log(...t):console.log(t),console.groupEnd()):console.log(...r)}validate(e,t,r){if(!e.validate)return!0;if("function"==typeof e.validate){if(!e.validate(r))return this.log(`Invalid value "${r}" for attribute "${t}"`),!1}else if(!e.validate.includes(r))return this.log(`Invalid value "${r}" for attribute "${t}"`,["%cPossible values:%c\n"+e.validate.map((e=>`• ${e}`)).join("\n"),"font-weight: 700;","font-weight: initial;"]),!1;return!0}parse(e){const t=new V;for(const r in this.options.attributes){const s=this.options.attributes[r],i=e.getAttribute(r);if(!i||!this.validate(s,r,i)){t.set(r,s.defaultValue);continue}let o=i;s.parse&&(o=s.parse(i)??s.defaultValue),t.set(r,o)}this.options.apply.call(this,e,t)}getElements(){return document.querySelectorAll(`[${this.options.name}]`)}init(){this.getElements().forEach((e=>{e.hasAttribute(k)||(e.setAttribute(k,"true"),this.parse(e))}))}},parse:{stringToBoolean:e=>"false"!==e},validation:{isValidCSSPropertyValue:(e,t)=>!["auto","initial","inherit","unset"].includes(t)&&CSS.supports(e,t),isValidType:(e,t)=>t.includes(e),isBoolean:e=>/^(true|false)$/.test(e),isNumber:e=>!isNaN(Number(e))}};var W=(e=>(e.Left="left",e.Right="right",e.Top="top",e.Bottom="bottom",e))(W||{}),z=(e=>(e.InView="in-view",e.OnLoad="on-load",e))(z||{});function Y(){if(window.Webflow)try{const e=window.Webflow.require("ix2");e&&(e.init(),document.dispatchEvent(new Event("readystatechange")))}catch(e){this.log("Failed to initialize Webflow interactions",{error:e})}}const q=new H.Booster({name:"fb-carousel",attributes:{"fb-carousel-delay":{defaultValue:0,validate:H.validation.isNumber,parse:Number},"fb-carousel-direction":{defaultValue:"left",validate:Object.values(W)},"fb-carousel-overflow":{defaultValue:!1,validate:H.validation.isBoolean,parse:H.parse.stringToBoolean},"fb-carousel-overflow-size":{defaultValue:0,validate:H.validation.isNumber,parse:Number},"fb-carousel-pauseable":{defaultValue:!1,validate:H.validation.isBoolean,parse:H.parse.stringToBoolean},"fb-carousel-speed":{defaultValue:1e4,validate:H.validation.isNumber,parse:Number},"fb-carousel-trigger":{defaultValue:"on-load",validate:Object.values(z)},"fb-carousel-ignore-interactions":{defaultValue:!1,validate:H.validation.isBoolean,parse:H.parse.stringToBoolean}},apply(e,t){const r=e.querySelector("[fb-carousel-content]");if(!r)return this.log("Required attribute is missing");const s=[];for(const e of Array.from(r.childNodes))e instanceof HTMLElement?(e.style.flexShrink="0",e.style.flexGrow="0",e.style.willChange="transform",s.push(e)):r.removeChild(e);if(!s.length)return;const i=t.get("fb-carousel-ignore-interactions"),o=t.get("fb-carousel-direction"),n="top"===o||"bottom"===o;e.style.overflow=t.get("fb-carousel-overflow")?"visible":"hidden",r.style.position="relative",r.style.display="flex",r.style.width="100%",r.style.height="100%",r.style.margin="0",r.style.padding="0",r.style.overflow="visible",r.style.willChange="transform",r.style.flexDirection=n?"column":"row";const a=(()=>{const e=()=>{const e=document.createElement("div");return e.style.width="0",e.style.height="0",e.setAttribute("aria-hidden","true"),e},t=e(),s=e();r.prepend(t),r.append(s);const i=t.getBoundingClientRect()[n?"top":"left"];t.remove();const o=s.getBoundingClientRect()[n?"top":"left"]-i;return s.remove(),Number(o.toFixed(2))})(),l=e.getBoundingClientRect(),h=Number(l.width.toFixed(2)),c=Number(l.height.toFixed(2)),E=t.get("fb-carousel-overflow-size");let p=0;if(E){p=Math.ceil(E/a);const e=a*p*-1+"px";n?r.style.top=e:r.style.left=e}const u=()=>{const{width:t,height:r}=e.getBoundingClientRect();return Math.ceil((n?r:t)/a)+2*p};let d=u();const f=e=>{const t=Array.from({length:e},(()=>s.map((e=>{const t=e.cloneNode(!0);return t.setAttribute("aria-hidden","true"),t}))));for(const e of t.flat())r.appendChild(e)};f(d),i||Y.call(this);const $=e.getBoundingClientRect(),m=Number($.width.toFixed(2)),I=Number($.height.toFixed(2));n?I&&I>c&&(e.style.height=c+"px"):m&&m>h&&(e.style.width=h+"px");const R=n?"Y":"X",v="bottom"===o||"right"===o,N=new KeyframeEffect(r,[{transform:`translate${R}(0px)`},{transform:`translate${R}(${-1*a}px)`}],{delay:t.get("fb-carousel-delay"),duration:t.get("fb-carousel-speed"),direction:v?"reverse":"normal",easing:"linear",iterations:1/0}),L=new Animation(N);if(t.get("fb-carousel-pauseable")){const t=()=>L.pause(),r=()=>L.play();e.addEventListener("mouseenter",t,{passive:!0}),e.addEventListener("mouseleave",r,{passive:!0}),e.addEventListener("touchstart",t,{passive:!0}),e.addEventListener("touchend",r,{passive:!0}),e.addEventListener("touchcancel",r,{passive:!0})}if("in-view"===t.get("fb-carousel-trigger")){const t=new IntersectionObserver((e=>{for(const r of e)if(r.isIntersecting){L.play(),t.disconnect();break}}),{threshold:n?.5:1});t.observe(e)}else L.play();new ResizeObserver((()=>{const e=u();if(e!==d){if(eq.init();"complete"===document.readyState?Z():window.addEventListener("load",Z)}(); //# sourceMappingURL=/sm/b470ce46649958836d21e0a9f5aba9ed33ee81473180b8f3afbf8607ce1b63ea.map