1/*! For license information please see reactPlayerWistia.7e9c3116.chunk.js.LICENSE.txt */ 2"use strict";(globalThis.webpackChunkfidibo_web=globalThis.webpackChunkfidibo_web||[]).push([[9340],{26562(t,e,i){function o(t,e,i){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:i;throw new TypeError("Private element is not present on this object")}i.d(e,{A:()=>o})},8195(t,e,i){function o(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}i.d(e,{A:()=>o})},38458(t,e,i){i.d(e,{A:()=>n});var o=i(26562);function n(t,e){return t.get((0,o.A)(t,e))}},55149(t,e,i){i.d(e,{A:()=>n});var o=i(8195);function n(t,e,i){(0,o.A)(t,e),e.set(t,i)}},24558(t,e,i){i.d(e,{A:()=>n});var o=i(26562);function n(t,e,i){return t.set((0,o.A)(t,e),i),i}},39790(t,e,i){i.d(e,{A:()=>n});var o=i(8195);function n(t,e){(0,o.A)(t,e),e.add(t)}},54705(t,e,i){function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function n(t){var e=function(t,e){if("object"!=o(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==o(e)?e:e+""}function s(t,e,i){return(e=n(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}i.d(e,{A:()=>s})},58057(t,e,i){i.r(e),i.d(e,{default:()=>j});var o,n=i(9950),s=i(39790),l=i(55149),a=i(54705),r=i(24558),d=i(38458),u=i(26562);const c=["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"],h=null===(o=globalThis.document)||void 0===o?void 0:o.createElement("template");h&&(h.innerHTML="\n <style>\n :host {\n display: inline-block;\n line-height: 0;\n }\n\n video,\n audio {\n max-width: 100%;\n max-height: 100%;\n min-width: 100%;\n min-height: 100%;\n }\n </style>\n <slot></slot>\n ");const p=(t,e)=>{var i,o,n,p,v,b,y,w,g,A;let{tag:E,is:C}=e;const T=null===(i=globalThis.document)||void 0===i?void 0:i.createElement(E,{is:C}),k=T?m(T):[];return n=new WeakMap,p=new WeakMap,v=new WeakMap,b=new WeakMap,y=new WeakMap,w=new WeakMap,g=new WeakSet,o=class e extends t{static get observedAttributes(){var t;(0,u.A)(o,e,L).call(e);return[...(null===T||void 0===T||null===(t=T.constructor)||void 0===t?void 0:t.observedAttributes)??[],"autopictureinpicture","disablepictureinpicture","disableremoteplayback","autoplay","controls","controlslist","crossorigin","loop","muted","playsinline","poster","preload","src"]}constructor(){super(),(0,s.A)(this,g),(0,l.A)(this,n,void 0),(0,l.A)(this,p,void 0),(0,l.A)(this,v,!1),(0,l.A)(this,b,!1),(0,l.A)(this,y,void 0),(0,l.A)(this,w,void 0),this.shadowRoot||(this.attachShadow({mode:"open"}),this.shadowRoot.append(this.constructor.template.content.cloneNode(!0))),this.load!==e.prototype.load&&(this.loadComplete=new f)}get loadComplete(){return(0,d.A)(p,this)}
2set loadComplete(t){(0,r.A)(b,this,!1),(0,r.A)(p,this,t),null===t||void 0===t||t.then(()=>{(0,r.A)(b,this,!0)})}get isLoaded(){return(0,d.A)(b,this)}get nativeEl(){return(0,d.A)(y,this)??this.shadowRoot.querySelector(E)??this.querySelector(E)}set nativeEl(t){(0,r.A)(y,this,t)}get defaultMuted(){return this.hasAttribute("muted")}set defaultMuted(t){this.toggleAttribute("muted",Boolean(t))}get src(){return this.getAttribute("src")}set src(t){this.setAttribute("src",`${t}`)}get preload(){var t;return this.getAttribute("preload")??(null===(t=this.nativeEl)||void 0===t?void 0:t.preload)}set preload(t){this.setAttribute("preload",`${t}`)}attributeChangedCallback(t,i,o){(0,u.A)(g,this,M).call(this),"src"===t&&this.load!==e.prototype.load&&(0,u.A)(g,this,N).call(this),(0,u.A)(g,this,_).call(this,t,i,o)}connectedCallback(){(0,u.A)(g,this,M).call(this)}},(0,a.A)(o,"Events",c),(0,a.A)(o,"template",h),(0,a.A)(o,"skipAttributes",[]),A={_:void 0},o;function L(){if((0,u.A)(o,this,A)._)return;A._=(0,u.A)(o,this,!0);const t=new Set(this.observedAttributes);t.delete("muted");for(let e of k){if(e in this.prototype)continue;if("function"==typeof T[e])this.prototype[e]=function(){for(var t=arguments.length,i=new Array(t),o=0;o<t;o++)i[o]=arguments[o];(0,u.A)(g,this,M).call(this);const n=()=>this.call?this.call(e,...i):this.nativeEl[e].apply(this.nativeEl,i);return this.loadComplete&&!this.isLoaded?this.loadComplete.then(n):n()};else{let i={get(){var i,o;(0,u.A)(g,this,M).call(this);let n=e.toLowerCase();if(t.has(n)){const t=this.getAttribute(n);return null!==t&&(""===t||t)}return(null===(i=this.get)||void 0===i?void 0:i.call(this,e))??(null===(o=this.nativeEl)||void 0===o?void 0:o[e])??(0,d.A)(w,this)[e]}};e!==e.toUpperCase()&&(i.set=async function(i){(0,u.A)(g,this,M).call(this);let o=e.toLowerCase();t.has(o)?!0===i||!1===i||null==i?this.toggleAttribute(o,Boolean(i)):this.setAttribute(o,i):(this.loadComplete&&!this.isLoaded&&await this.loadComplete,this.set?this.set(e,i):this.nativeEl[e]=i)}),Object.defineProperty(this.prototype,e,i)}}}async function M(){if((0,d.A)(n,this))return;(0,r.A)(n,this,!0),(0,u.A)(g,this,P).call(this),(0,u.A)(g,this,j).call(this);for(let n of k)(0,u.A)(g,this,S).call(this,n);const t=new Map,e=this.shadowRoot.querySelector("slot:not([name])");null===e||void 0===e||e.addEventListener("slotchange",()=>{const i=new Map(t);e.assignedElements().filter(t=>["track","source"].includes(t.localName)).forEach(async e=>{var o,n;i.delete(e);let s=t.get(e);s||(s=e.cloneNode(),t.set(e,s)),this.loadComplete&&!this.isLoaded&&await this.loadComplete,null===(o=(n=this.nativeEl).append)||void 0===o||o.call(n,s)}
2),i.forEach(t=>t.remove())});for(let n of this.constructor.Events){var i,o;null===(i=(o=this.shadowRoot).addEventListener)||void 0===i||i.call(o,n,t=>{t.target===this.nativeEl&&this.dispatchEvent(new CustomEvent(t.type,{detail:t.detail}))},!0)}}function S(t){if(Object.prototype.hasOwnProperty.call(this,t)){const e=this[t];delete this[t],this[t]=e}}function P(){const t=document.createElement(E,{is:C});t.muted=this.hasAttribute("muted");for(let{name:e,value:i}of this.attributes)t.setAttribute(e,i);(0,r.A)(w,this,{});for(let e of m(t))(0,d.A)(w,this)[e]=t[e];t.removeAttribute("src"),t.load()}async function j(){if(this.loadComplete&&!this.isLoaded&&await this.loadComplete,!this.nativeEl){const t=document.createElement(E,{is:C});t.part=E,this.shadowRoot.append(t)}this.nativeEl.muted=this.hasAttribute("muted")}async function N(){var t;(0,d.A)(v,this)&&(this.loadComplete=new f),(0,r.A)(v,this,!0),await Promise.resolve(),await this.load(),null===(t=this.loadComplete)||void 0===t||t.resolve(),await this.loadComplete}async function _(t,e,i){var o,n,s,l;(this.loadComplete&&!this.isLoaded&&await this.loadComplete,["id","class",...this.constructor.skipAttributes].includes(t))||(null===i?null===(o=(n=this.nativeEl).removeAttribute)||void 0===o||o.call(n,t):null===(s=(l=this.nativeEl).setAttribute)||void 0===s||s.call(l,t,i))}};function m(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 f extends Promise{constructor(){let t,e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:()=>{};super((o,n)=>{i(o,n),t=o,e=n}),this.resolve=t,this.reject=e}}const v=globalThis.document?p(HTMLElement,{tag:"video"}):class{};globalThis.document&&p(HTMLElement,{tag:"audio"});var b,y;const w=null==(b=globalThis.document)?void 0:b.createElement("template");w&&(w.innerHTML='\n <div class="wistia_embed"></div>\n ');const g=null==(y=globalThis.document)?void 0:y.createElement("template");
2g&&(g.innerHTML="\n <style>\n :host {\n display: inline-block;\n min-width: 300px;\n min-height: 150px;\n position: relative;\n }\n ::slotted(.wistia_embed) {\n position: absolute;\n width: 100%;\n height: 100%;\n }\n </style>\n <slot></slot>\n ");class A extends v{static template=(()=>g)();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));const 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(w.content.cloneNode(!0));const o=this.querySelector(".wistia_embed");o.id||(o.id=function(t){const e=++C;return`${t}${e}`}(e)),o.classList.add(`wistia_async_${e}`);await async function(t,e){return e?E[t]?E[t]:self[e]?self[e]:E[t]=new Promise((i,o)=>{const n=document.createElement("script");n.defer=!0,n.src=t,n.onload=()=>i(self[e]),n.onerror=o,document.head.append(n)}):import(t)}("https://fast.wistia.com/assets/external/E-v1.js","Wistia"),this.api=await new Promise(t=>{globalThis._wq.push({id:o.id,onReady:t,options:i})})}async attributeChangedCallback(t,e,i){if("controls"!==t)super.attributeChangedCallback(t,e,i);else if(await this.loadComplete,"controls"===t)this.api.bigPlayButtonEnabled(this.controls),this.controls?this.api.releaseChromeless():this.api.requestChromeless()}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))}}const E={};let C=0;globalThis.customElements&&!globalThis.customElements.get("wistia-video")&&globalThis.customElements.define("wistia-video",A);var T=A,k=new Set(["style","children","ref","key","suppressContentEditableWarning","suppressHydrationWarning","dangerouslySetInnerHTML"]),L={className:"class",htmlFor:"for"};function M(t){return t.toLowerCase()}function S(t){return"boolean"===typeof t?t?"":void 0:"function"===typeof t||"object"===typeof t&&null!==t?void 0:t}function P(t,e,i){var o;t[e]=i,null==i&&e in((null==(o=globalThis.HTMLElement)?void 0:o.prototype)??{})&&t.removeAttribute(e)}var j=function(t){let{react:e,tagName:i,elementClass:o,events:n,displayName:s,defaultProps:l,toAttributeName:a=M,toAttributeValue:r=S}=t;const d=Number.parseInt(e.version)>=19,u=e.forwardRef((t,s)=>{var u,c;const h=e.useRef(null),p=e.useRef(new Map),m={},f={},v={},b={};for(const[e,i]of Object.entries(t)){if(k.has(e)){v[e]=i;continue}const t=a(L[e]??e);if(o.prototype&&e in o.prototype&&!(e in((null==(u=globalThis.HTMLElement)?void 0:u.prototype)??{}))&&!(null==(c=o.observedAttributes)?void 0:c.some(e=>e===t))){b[e]=i;continue}if(e.startsWith("on")){m[e]=i;continue}const n=r(i);if(t&&null!=n&&(f[t]=String(n),d||(v[t]=n)),t&&d){const e=S(i);v[t]=n!==e?n:i}}if("undefined"!==typeof window){for(const t in m){const i=m[t],o=t.endsWith("Capture"),s=((null==n?void 0:n[t])??t.slice(2).toLowerCase()).slice(0,o?-7:void 0);e.useLayoutEffect(()=>{const t=null==h?void 0:h.current;if(t&&"function"===typeof i)return t.addEventListener(s,i,o),()=>{t.removeEventListener(s,i,o)}},[null==h?void 0:h.current,i])}e.useLayoutEffect(()=>{if(null===h.current)return;const t=new Map;for(const e in b)P(h.current,e,b[e]),p.current.delete(e),t.set(e,b[e]);for(const[e,i]of p.current)P(h.current,e,void 0);p.current=t})}if("undefined"===typeof window&&(null==o?void 0:o.getTemplateHTML)&&(null==o?void 0:o.shadowRootOptions)){const{mode:i,delegatesFocus:n}=o.shadowRootOptions,s=e.createElement("template",{shadowrootmode:i,shadowrootdelegatesfocus:n,dangerouslySetInnerHTML:{__html:o.getTemplateHTML(f,t)},key:"ce-la-react-ssr-template-shadow-root"});v.children=[s,v.children]}return e.createElement(i,{...l,...v,ref:e.useCallback(t=>{h.current=t,"function"===typeof s?s(t):null!==s&&(s.current=t)},[s])},v.children)});return u.displayName=s??o.name,u}({react:n,tagName:"wistia-video",elementClass:T,toAttributeName:t=>
2"muted"===t?"":"defaultMuted"===t?"muted":M(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.