"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8055],{63100:function(t,e,i){i.r(e),i.d(e,{default:function(){return L}});var s,o,l=i(2265);let a=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting","waitingforkey","resize","enterpictureinpicture","leavepictureinpicture","webkitbeginfullscreen","webkitendfullscreen","webkitpresentationmodechanged"],n=globalThis.document?.createElement("template");n&&(n.innerHTML=`
    <style>
      :host {
        display: inline-block;
        line-height: 0;
      }

      video,
      audio {
        max-width: 100%;
        max-height: 100%;
        min-width: 100%;
        min-height: 100%;
      }
    </style>
    <slot></slot>
  `);let r=(t,{tag:e,is:i})=>{let s=globalThis.document?.createElement(e,{is:i}),o=s?d(s):[];return class l extends t{static Events=a;static template=n;static skipAttributes=[];static #t;static get observedAttributes(){return l.#e(),[...s?.constructor?.observedAttributes??[],"autopictureinpicture","disablepictureinpicture","disableremoteplayback","autoplay","controls","controlslist","crossorigin","loop","muted","playsinline","poster","preload","src"]}static #e(){if(this.#t)return;this.#t=!0;let t=new Set(this.observedAttributes);for(let e of(t.delete("muted"),o))if(!(e in this.prototype)){if("function"==typeof s[e])this.prototype[e]=function(...t){this.#i();let i=()=>this.call?this.call(e,...t):this.nativeEl[e].apply(this.nativeEl,t);return this.loadComplete&&!this.isLoaded?this.loadComplete.then(i):i()};else{let i={get(){this.#i();let i=e.toLowerCase();if(t.has(i)){let t=this.getAttribute(i);return null!==t&&(""===t||t)}return this.get?.(e)??this.nativeEl?.[e]??this.#s[e]}};e!==e.toUpperCase()&&(i.set=async function(i){this.#i();let s=e.toLowerCase();if(t.has(s)){!0===i||!1===i||null==i?this.toggleAttribute(s,!!i):this.setAttribute(s,i);return}if(this.loadComplete&&!this.isLoaded&&await this.loadComplete,this.set){this.set(e,i);return}this.nativeEl[e]=i}),Object.defineProperty(this.prototype,e,i)}}}#o;#l;#a=!1;#n=!1;#r;#s;constructor(){super(),this.shadowRoot||(this.attachShadow({mode:"open"}),this.shadowRoot.append(this.constructor.template.content.cloneNode(!0))),this.load!==l.prototype.load&&(this.loadComplete=new u)}get loadComplete(){return this.#l}set loadComplete(t){this.#n=!1,this.#l=t,t?.then(()=>{this.#n=!0})}get isLoaded(){return this.#n}get nativeEl(){return this.#r??this.shadowRoot.querySelector(e)??this.querySelector(e)}set nativeEl(t){this.#r=t}get defaultMuted(){return this.hasAttribute("muted")}set defaultMuted(t){this.toggleAttribute("muted",!!t)}get src(){return this.getAttribute("src")}set src(t){this.setAttribute("src",`${t}`)}get preload(){return this.getAttribute("preload")??this.nativeEl?.preload}set preload(t){this.setAttribute("preload",`${t}`)}async #i(){if(this.#o)return;for(let t of(this.#o=!0,this.#d(),this.#u(),o))this.#h(t);let t=new Map,e=this.shadowRoot.querySelector("slot:not([name])");for(let i of(e?.addEventListener("slotchange",()=>{let i=new Map(t);e.assignedElements().filter(t=>["track","source"].includes(t.localName)).forEach(async e=>{i.delete(e);let s=t.get(e);s||(s=e.cloneNode(),t.set(e,s)),this.loadComplete&&!this.isLoaded&&await this.loadComplete,this.nativeEl.append?.(s)}),i.forEach(t=>t.remove())}),this.constructor.Events))this.shadowRoot.addEventListener?.(i,t=>{t.target===this.nativeEl&&this.dispatchEvent(new CustomEvent(t.type,{detail:t.detail}))},!0)}#h(t){if(Object.prototype.hasOwnProperty.call(this,t)){let e=this[t];delete this[t],this[t]=e}}#d(){let t=document.createElement(e,{is:i});for(let{name:e,value:i}of(t.muted=this.hasAttribute("muted"),this.attributes))t.setAttribute(e,i);for(let e of(this.#s={},d(t)))this.#s[e]=t[e];t.removeAttribute("src"),t.load()}async #u(){if(this.loadComplete&&!this.isLoaded&&await this.loadComplete,!this.nativeEl){let t=document.createElement(e,{is:i});t.part=e,this.shadowRoot.append(t)}this.nativeEl.muted=this.hasAttribute("muted")}attributeChangedCallback(t,e,i){this.#i(),"src"===t&&this.load!==l.prototype.load&&this.#c(),this.#p(t,e,i)}async #c(){this.#a&&(this.loadComplete=new u),this.#a=!0,await Promise.resolve(),await this.load(),this.loadComplete?.resolve(),await this.loadComplete}async #p(t,e,i){this.loadComplete&&!this.isLoaded&&await this.loadComplete,["id","class",...this.constructor.skipAttributes].includes(t)||(null===i?this.nativeEl.removeAttribute?.(t):this.nativeEl.setAttribute?.(t,i))}connectedCallback(){this.#i()}}};function d(t){let e=[];for(let i=Object.getPrototypeOf(t);i&&i!==HTMLElement.prototype;i=Object.getPrototypeOf(i))e.push(...Object.getOwnPropertyNames(i));return e}class u extends Promise{constructor(t=()=>{}){let e,i;super((s,o)=>{t(s,o),e=s,i=o}),this.resolve=e,this.reject=i}}let h=globalThis.document?r(HTMLElement,{tag:"video"}):class{};globalThis.document&&r(HTMLElement,{tag:"audio"});let c=null==(s=globalThis.document)?void 0:s.createElement("template");c&&(c.innerHTML=`
  <div class="wistia_embed"></div>
  `);let p=null==(o=globalThis.document)?void 0:o.createElement("template");p&&(p.innerHTML=`
  <style>
    :host {
      display: inline-block;
      min-width: 300px;
      min-height: 150px;
      position: relative;
    }
    ::slotted(.wistia_embed) {
      position: absolute;
      width: 100%;
      height: 100%;
    }
  </style>
  <slot></slot>
  `);class m extends h{static template=p;static skipAttributes=["src"];get nativeEl(){var t;return(null==(t=this.api)?void 0:t.elem())??this.querySelector("video")}async load(){var t;if(null==(t=this.querySelector(".wistia_embed"))||t.remove(),!this.src)return;await new Promise(t=>setTimeout(t,50));let e=this.src.match(/(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/i)[1],i={autoPlay:this.autoplay,preload:this.preload??"metadata",playsinline:this.playsInline,endVideoBehavior:this.loop&&"loop",chromeless:!this.controls,playButton:this.controls,muted:this.defaultMuted};this.append(c.content.cloneNode(!0));let s=this.querySelector(".wistia_embed");s.id||(s.id=function(t){let e=++b;return`${t}${e}`}(e)),s.classList.add(`wistia_async_${e}`),await v("https://fast.wistia.com/assets/external/E-v1.js","Wistia"),this.api=await new Promise(t=>{globalThis._wq.push({id:s.id,onReady:t,options:i})})}async attributeChangedCallback(t,e,i){if("controls"===t){await this.loadComplete,"controls"===t&&(this.api.bigPlayButtonEnabled(this.controls),this.controls?this.api.releaseChromeless():this.api.requestChromeless());return}super.attributeChangedCallback(t,e,i)}get duration(){var t;return null==(t=this.api)?void 0:t.duration()}async play(){return await this.loadComplete,this.api.play(),new Promise(t=>this.addEventListener("playing",t))}}let f={};async function v(t,e){return e?f[t]?f[t]:self[e]?self[e]:f[t]=new Promise((i,s)=>{let o=document.createElement("script");o.defer=!0,o.src=t,o.onload=()=>i(self[e]),o.onerror=s,document.head.append(o)}):import(t)}let b=0;globalThis.customElements&&!globalThis.customElements.get("wistia-video")&&globalThis.customElements.define("wistia-video",m);var y=new Set(["style","children","ref","key","suppressContentEditableWarning","suppressHydrationWarning","dangerouslySetInnerHTML"]),g={className:"class",htmlFor:"for"};function w(t){return t.toLowerCase()}function E(t){return"boolean"==typeof t?t?"":void 0:"function"==typeof t?void 0:"object"!=typeof t||null===t?t:void 0}function C(t,e,i){var s,o;t[e]=i,null==i&&e in(null!==(o=null==(s=globalThis.HTMLElement)?void 0:s.prototype)&&void 0!==o?o:{})&&t.removeAttribute(e)}var L=function(t){let{react:e,tagName:i,elementClass:s,events:o,displayName:l,defaultProps:a,toAttributeName:n=w,toAttributeValue:r=E}=t,d=Number.parseInt(e.version)>=19,u=e.forwardRef((t,l)=>{var u,h,c,p,m;let f=e.useRef(null),v=e.useRef(new Map),b={},w={},L={},T={};for(let[e,i]of Object.entries(t)){if(y.has(e)){L[e]=i;continue}let t=n(null!==(c=g[e])&&void 0!==c?c:e);if(s.prototype&&e in s.prototype&&!(e in(null!==(p=null==(u=globalThis.HTMLElement)?void 0:u.prototype)&&void 0!==p?p:{}))&&!(null==(h=s.observedAttributes)?void 0:h.some(e=>e===t))){T[e]=i;continue}if(e.startsWith("on")){b[e]=i;continue}let o=r(i);t&&null!=o&&(w[t]=String(o),d||(L[t]=o)),t&&d&&(o!==E(i)?L[t]=o:L[t]=i)}if("undefined"!=typeof window){for(let t in b){let i=b[t],s=t.endsWith("Capture"),l=(null!==(m=null==o?void 0:o[t])&&void 0!==m?m:t.slice(2).toLowerCase()).slice(0,s?-7:void 0);e.useLayoutEffect(()=>{let t=null==f?void 0:f.current;if(t&&"function"==typeof i)return t.addEventListener(l,i,s),()=>{t.removeEventListener(l,i,s)}},[null==f?void 0:f.current,i])}e.useLayoutEffect(()=>{if(null===f.current)return;let t=new Map;for(let e in T)C(f.current,e,T[e]),v.current.delete(e),t.set(e,T[e]);for(let[t,e]of v.current)C(f.current,t,void 0);v.current=t})}if("undefined"==typeof window&&(null==s?void 0:s.getTemplateHTML)&&(null==s?void 0:s.shadowRootOptions)){let{mode:i,delegatesFocus:o}=s.shadowRootOptions,l=e.createElement("template",{shadowrootmode:i,shadowrootdelegatesfocus:o,dangerouslySetInnerHTML:{__html:s.getTemplateHTML(w,t)},key:"ce-la-react-ssr-template-shadow-root"});L.children=[l,L.children]}return e.createElement(i,{...a,...L,ref:e.useCallback(t=>{f.current=t,"function"==typeof l?l(t):null!==l&&(l.current=t)},[l])},L.children)});return u.displayName=null!=l?l:s.name,u}({react:l,tagName:"wistia-video",elementClass:m,toAttributeName:t=>"muted"===t?"":"defaultMuted"===t?"muted":w(t)})}}]);