"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6173],{77267:(t,e,i)=>{i.r(e),i.d(e,{default:()=>f});var s=i(12115),a=i(89312);let n=/vimeo\.com\/(?:video\/)?(\d+)(?:\/([\w-]+))?/;function o(t,e={}){let i={src:function(t,e){if(!t.src)return;let i=t.src.match(n),s=i&&i[1],a=i&&i[2],o={controls:""===t.controls?null:0,autoplay:t.autoplay,loop:t.loop,muted:t.muted,playsinline:t.playsinline,preload:t.preload??"metadata",transparent:!1,autopause:t.autopause,h:a,...e.config};return`https://player.vimeo.com/video/${s}?${String(new URLSearchParams(function(t){let e={};for(let i in t){let s=t[i];!0===s||""===s?e[i]=1:!1===s?e[i]=0:null!=s&&(e[i]=s)}return e}(o)))}`}(t,e),frameborder:0,width:"100%",height:"100%",allow:"accelerometer; fullscreen; autoplay; encrypted-media; gyroscope; picture-in-picture"};return e.config&&(i["data-config"]=JSON.stringify(e.config)),`
    <style>
      :host {
        display: inline-block;
        min-width: 300px;
        min-height: 150px;
        position: relative;
      }
      iframe {
        position: absolute;
        top: 0;
        left: 0;
      }
      :host(:not([controls])) {
        pointer-events: none;
      }
    </style>
    <iframe${function(t){let e="";for(let i in t){let s=t[i];""===s?e+=` ${l(i)}`:e+=` ${l(i)}="${l(`${s}`)}"`}return e}(i)}></iframe>
  `}class r extends(globalThis.HTMLElement??class{}){static getTemplateHTML=o;static shadowRootOptions={mode:"open"};static observedAttributes=["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src"];loadComplete=new u;#t;#e;#i;#s=0;#a=NaN;#n=!1;#o=!this.autoplay;#r=1;#l=0;#u=0;#h=!1;#d=1;#p=NaN;#c=NaN;#v=null;constructor(){super(),this.#g("config")}requestFullscreen(){var t,e;return null==(e=null==(t=this.api)?void 0:t.requestFullscreen)?void 0:e.call(t)}exitFullscreen(){var t,e;return null==(e=null==(t=this.api)?void 0:t.exitFullscreen)?void 0:e.call(t)}requestPictureInPicture(){var t,e;return null==(e=null==(t=this.api)?void 0:t.requestPictureInPicture)?void 0:e.call(t)}exitPictureInPicture(){var t,e;return null==(e=null==(t=this.api)?void 0:t.exitPictureInPicture)?void 0:e.call(t)}get config(){return this.#v}set config(t){this.#v=t}async load(){var t;if(this.#t)return;let e=!this.#e;this.#e&&(this.loadComplete=new u),this.#e=!0,await (this.#t=Promise.resolve()),this.#t=null,this.#s=0,this.#a=NaN,this.#n=!1,this.#o=!this.autoplay,this.#r=1,this.#l=0,this.#u=0,this.#h=!1,this.#d=1,this.#u=0,this.#p=NaN,this.#c=NaN,this.dispatchEvent(new Event("emptied"));let i=this.api;if(this.api=null,!this.src)return;this.dispatchEvent(new Event("loadstart"));let s={autoplay:this.autoplay,controls:this.controls,loop:this.loop,muted:this.defaultMuted,playsinline:this.playsInline,preload:this.preload??"metadata",transparent:!1,autopause:this.hasAttribute("autopause"),...this.#v},n=async()=>{this.#u=1,this.dispatchEvent(new Event("loadedmetadata")),this.api&&(this.#n=await this.api.getMuted(),this.#d=await this.api.getVolume(),this.dispatchEvent(new Event("volumechange")),this.#a=await this.api.getDuration(),this.dispatchEvent(new Event("durationchange"))),this.dispatchEvent(new Event("loadcomplete")),this.loadComplete.resolve()};if(this.#i){this.api=i,await this.api.loadVideo({...s,url:this.src}),await n(),await this.loadComplete;return}this.#i=!0;let r=null==(t=this.shadowRoot)?void 0:t.querySelector("iframe");e&&r&&(this.#v=JSON.parse(r.getAttribute("data-config")||"{}")),this.shadowRoot||(this.attachShadow({mode:"open"}),this.shadowRoot.innerHTML=o(function(t){let e={};for(let i of t)e[i.name]=i.value;return e}(this.attributes),this),r=this.shadowRoot.querySelector("iframe")),this.api=new a.A(r);let l=()=>{this.api.off("loaded",l),n()};this.api.on("loaded",l),this.api.on("bufferstart",()=>{this.#o&&(this.#o=!1,this.dispatchEvent(new Event("play"))),this.dispatchEvent(new Event("waiting"))}),this.api.on("play",()=>{this.#o&&(this.#o=!1,this.dispatchEvent(new Event("play")))}),this.api.on("playing",()=>{this.#u=3,this.#o=!1,this.dispatchEvent(new Event("playing"))}),this.api.on("seeking",()=>{this.#h=!0,this.dispatchEvent(new Event("seeking"))}),this.api.on("seeked",()=>{this.#h=!1,this.dispatchEvent(new Event("seeked"))}),this.api.on("pause",()=>{this.#o=!0,this.dispatchEvent(new Event("pause"))}),this.api.on("ended",()=>{this.#o=!0,this.dispatchEvent(new Event("ended"))}),this.api.on("ratechange",({playbackRate:t})=>{this.#r=t,this.dispatchEvent(new Event("ratechange"))}),this.api.on("volumechange",async({volume:t})=>{this.#d=t,this.api&&(this.#n=await this.api.getMuted()),this.dispatchEvent(new Event("volumechange"))}),this.api.on("durationchange",({duration:t})=>{this.#a=t,this.dispatchEvent(new Event("durationchange"))}),this.api.on("timeupdate",({seconds:t})=>{this.#s=t,this.dispatchEvent(new Event("timeupdate"))}),this.api.on("progress",({seconds:t})=>{this.#l=t,this.dispatchEvent(new Event("progress"))}),this.api.on("resize",({videoWidth:t,videoHeight:e})=>{this.#p=t,this.#c=e,this.dispatchEvent(new Event("resize"))}),await this.loadComplete}async attributeChangedCallback(t,e,i){if(e!==i){switch(t){case"autoplay":case"controls":case"src":return void this.load()}await this.loadComplete,"loop"===t&&this.api.setLoop(this.loop)}}async play(){var t;this.#o=!1,this.dispatchEvent(new Event("play")),await this.loadComplete;try{await (null==(t=this.api)?void 0:t.play())}catch(t){throw this.#o=!0,this.dispatchEvent(new Event("pause")),t}}async pause(){var t;return await this.loadComplete,null==(t=this.api)?void 0:t.pause()}get ended(){return this.#s>=this.#a}get seeking(){return this.#h}get readyState(){return this.#u}get videoWidth(){return this.#p}get videoHeight(){return this.#c}get src(){return this.getAttribute("src")}set src(t){this.src!=t&&this.setAttribute("src",t)}get paused(){return this.#o}get duration(){return this.#a}get autoplay(){return this.hasAttribute("autoplay")}set autoplay(t){this.autoplay!=t&&this.toggleAttribute("autoplay",!!t)}get buffered(){return this.#l>0?h(0,this.#l):h()}get controls(){return this.hasAttribute("controls")}set controls(t){this.controls!=t&&this.toggleAttribute("controls",!!t)}get currentTime(){return this.#s}set currentTime(t){this.currentTime!=t&&(this.#s=t,this.loadComplete.then(()=>{var e;null==(e=this.api)||e.setCurrentTime(t)}))}get defaultMuted(){return this.hasAttribute("muted")}set defaultMuted(t){this.defaultMuted!=t&&this.toggleAttribute("muted",!!t)}get loop(){return this.hasAttribute("loop")}set loop(t){this.loop!=t&&this.toggleAttribute("loop",!!t)}get muted(){return this.#n}set muted(t){this.muted!=t&&(this.#n=t,this.loadComplete.then(()=>{var e;null==(e=this.api)||e.setMuted(t)}))}get playbackRate(){return this.#r}set playbackRate(t){this.playbackRate!=t&&(this.#r=t,this.loadComplete.then(()=>{var e;null==(e=this.api)||e.setPlaybackRate(t)}))}get playsInline(){return this.hasAttribute("playsinline")}set playsInline(t){this.playsInline!=t&&this.toggleAttribute("playsinline",!!t)}get poster(){return this.getAttribute("poster")}set poster(t){this.poster!=t&&this.setAttribute("poster",`${t}`)}get volume(){return this.#d}set volume(t){this.volume!=t&&(this.#d=t,this.loadComplete.then(()=>{var e;null==(e=this.api)||e.setVolume(t)}))}#g(t){if(Object.prototype.hasOwnProperty.call(this,t)){let e=this[t];delete this[t],this[t]=e}}}function l(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/`/g,"&#x60;")}class u extends Promise{constructor(t=()=>{}){let e,i;super((s,a)=>{t(s,a),e=s,i=a}),this.resolve=e,this.reject=i}}function h(t,e){return Array.isArray(t)?d(t):null==t||null==e||0===t&&0===e?d([[0,0]]):d([[t,e]])}function d(t){return Object.defineProperties(t,{start:{value:e=>t[e][0]},end:{value:e=>t[e][1]}}),t}globalThis.customElements&&!globalThis.customElements.get("vimeo-video")&&globalThis.customElements.define("vimeo-video",r);var p=new Set(["style","children","ref","key","suppressContentEditableWarning","suppressHydrationWarning","dangerouslySetInnerHTML"]),c={className:"class",htmlFor:"for"};function v(t){return t.toLowerCase()}function g(t){return"boolean"==typeof t?t?"":void 0:"function"==typeof t?void 0:"object"!=typeof t||null===t?t:void 0}function m(t,e,i){var s,a;t[e]=i,null==i&&e in(null!=(a=null==(s=globalThis.HTMLElement)?void 0:s.prototype)?a:{})&&t.removeAttribute(e)}var f=function(t){let{react:e,tagName:i,elementClass:s,events:a,displayName:n,defaultProps:o,toAttributeName:r=v,toAttributeValue:l=g}=t,u=Number.parseInt(e.version)>=19,h=e.forwardRef((t,n)=>{var h,d,v,f,y;let w=e.useRef(null),E=e.useRef(new Map),b={},T={},k={},R={};for(let[e,i]of Object.entries(t)){if(p.has(e)){k[e]=i;continue}let t=r(null!=(v=c[e])?v:e);if(e in s.prototype&&!(e in(null!=(f=null==(h=globalThis.HTMLElement)?void 0:h.prototype)?f:{}))&&!(null==(d=s.observedAttributes)?void 0:d.some(e=>e===t))){R[e]=i;continue}if(e.startsWith("on")){b[e]=i;continue}let a=l(i);t&&null!=a&&(T[t]=String(a),u||(k[t]=a)),t&&u&&(a!==g(i)?k[t]=a:k[t]=i)}if("undefined"!=typeof window){for(let t in b){let i=b[t],s=t.endsWith("Capture"),n=(null!=(y=null==a?void 0:a[t])?y:t.slice(2).toLowerCase()).slice(0,s?-7:void 0);e.useLayoutEffect(()=>{let t=null==w?void 0:w.current;if(t&&"function"==typeof i)return t.addEventListener(n,i,s),()=>{t.removeEventListener(n,i,s)}},[null==w?void 0:w.current,i])}e.useLayoutEffect(()=>{if(null===w.current)return;let t=new Map;for(let e in R)m(w.current,e,R[e]),E.current.delete(e),t.set(e,R[e]);for(let[t,e]of E.current)m(w.current,t,void 0);E.current=t})}if("undefined"==typeof window&&(null==s?void 0:s.getTemplateHTML)&&(null==s?void 0:s.shadowRootOptions)){let{mode:i,delegatesFocus:a}=s.shadowRootOptions;k.children=[e.createElement("template",{shadowrootmode:i,shadowrootdelegatesfocus:a,dangerouslySetInnerHTML:{__html:s.getTemplateHTML(T,t)}}),k.children]}return e.createElement(i,{...o,...k,ref:e.useCallback(t=>{w.current=t,"function"==typeof n?n(t):null!==n&&(n.current=t)},[n])})});return h.displayName=null!=n?n:s.name,h}({react:s,tagName:"vimeo-video",elementClass:r})}}]);