PageSourceSearch

https://creatant.com/reactPlayerVimeo.073b70b8cfa5e1d05ac6.js

js creatant.com collected 2026-10-05 08:36:29 UTC 49,562 bytes, 37 lines download raw bytes

vendor: 8,548 bytes, line 1
1"use strict";(()=>{(self.webpackChunk_creatantdev_browser_client=self.webpackChunk_creatantdev_browser_client||[]).push([[6173],{84183:((yt,fe,D)=>{D.r(fe),D.d(fe,{default:()=>gt});var Ie=D(96540),_e=D(74692),Fe=D(74692);/*! @vimeo/player v2.29.0 | (c) 2025 Vimeo | MIT License | https://github.com/vimeo/player.js */function he(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),t.push.apply(t,n)}return t}function de(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?he(Object(t),!0).forEach(function(n){K(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):he(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function j(){j=function(){return r};var r={},e=Object.prototype,t=e.hasOwnProperty,n=Object.defineProperty||function(c,l,d){c[l]=d.value},i=typeof Symbol=="function"?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function f(c,l,d){return Object.defineProperty(c,l,{value:d,enumerable:!0,configurable:!0,writable:!0}),c[l]}try{f({},"")}catch{f=function(l,d,M){return l[d]=M}}function u(c,l,d,M){var w=l&&l.prototype instanceof T?l:T,S=Object.create(w.prototype),N=new I(M||[]);return n(S,"_invoke",{value:v(c,d,N)}),S}function k(c,l,d){try{return{type:"normal",arg:c.call(l,d)}}catch(M){return{type:"throw",arg:M}}}r.wrap=u;var E={};function T(){}function P(){}function g(){}var A={};f(A,o,function(){return this});var O=Object.getPrototypeOf,R=O&&O(O(q([])));R&&R!==e&&t.call(R,o)&&(A=R);var m=g.prototype=T.prototype=Object.create(A);function p(c){["next","throw","return"].forEach(function(l){f(c,l,function(d){return this._invoke(l,d)})})}function h(c,l){function d(w,S,N,_){var F=k(c[w],c,S);if(F.type!=="throw"){var U=F.arg,X=U.value;return X&&typeof X=="object"&&t.call(X,"__await")?l.resolve(X.__await).then(function(x){d("next",x,N,_)},function(x){d("throw",x,N,_)}):l.resolve(X).then(function(x){U.value=x,N(U)},function(x){return d("throw",x,N,_)})}_(F.arg)}var M;n(this,"_invoke",{value:function(w,S){function N(){return new l(function(_,F){d(w,S,_,F)})}return M=M?M.then(N,N):N()}})}function v(c,l,d){var M="suspendedStart";return function(w,S){if(M==="executing")throw new Error("Generator is already running");if(M==="completed"){if(w==="throw")throw S;return ce()}for(d.method=w,d.arg=S;;){var N=d.delegate;if(N){var _=b(N,d);if(_){if(_===E)continue;return _}}if(d.method==="next")d.sent=d._sent=d.arg;else if(d.method==="throw"){if(M==="suspendedStart")throw M="completed",d.arg;d.dispatchException(d.arg)}else d.method==="return"&&d.abrupt("return",d.arg);M="executing";var F=k(c,l,d);if(F.type==="normal"){if(M=d.done?"completed":"suspendedYield",F.arg===E)continue;return{value:F.arg,done:d.done}}F.type==="throw"&&(M="completed",d.method="throw",d.arg=F.arg)}}}function b(c,l){var d=l.method,M=c.iterator[d];if(M===void 0)return l.delegate=null,d==="throw"&&c.iterator.return&&(l.method="return",l.arg=void 0,b(c,l),l.method==="throw")||d!=="return"&&(l.method="throw",l.arg=new TypeError("The iterator does not provide a '"+d+"' method")),E;var w=k(M,c.iterator,l.arg);if(w.type==="throw")return l.method="throw",l.arg=w.arg,l.delegate=null,E;var S=w.arg;return S?S.done?(l[c.resultName]=S.value,l.next=c.nextLoc,l.method!=="return"&&(l.method="next",l.arg=void 0),l.delegate=null,E):S:(l.method="throw",l.arg=new TypeError("iterator result is not an object"),l.delegate=null,E)}function C(c){var l={tryLoc:c[0]};1 in c&&(l.catchLoc=c[1]),2 in c&&(l.finallyLoc=c[2],l.afterLoc=c[3]),this.tryEntries.push(l)}function y(c){var l=c.completion||{};l.type="normal",delete l.arg,c.completion=l}function I(c){this.tryEntries=[{tryLoc:"root"}],c.forEach(C,this),this.reset(!0)}function q(c){if(c){var l=c[o];if(l)return l.call(c);if(typeof c.next=="function")return c;if(!isNaN(c.length)){var d=-1,M=function w(){for(;++d<c.length;)if(t.call(c,d))return w.value=c[d],w.done=!1,w;return w.value=void 0,w.done=!0,w};return M.next=M}}return{next:ce}}function ce(){return{value:void 0,done:!0}}return P.prototype=g,n(m,"constructor",{value:g,configurable:!0}),n(g,"constructor",{value:P,configurable:!0}),P.displayName=f(g,s,"GeneratorFunction"),r.isGeneratorFunction=function(c){var l=typeof c=="function"&&c.constructor;return!!l&&(l===P||(l.displayName||l.name)==="GeneratorFunction")},r.mark=function(c){return Object.setPrototypeOf?Object.setPrototypeOf(c,g):(c.__proto__=g,f(c,s,"GeneratorFunction")),c.prototype=Object.create(m),c},r.awrap=function(c){return{__await:c}},p(h.prototype),f(h.prototype,a,function(){return this}),r.AsyncIterator=h,r.async=function(c,l,d,M,w){w===void 0&&(w=Promise);var S=new h(u(c,l,d,M),w);return r.isGeneratorFunction(l)?S:S.next().then(function(N){return N.done?N.value:S.next()})},p(m),f(m,s,"Generator"),f(m,o,function(){return this}),f(m,"toString",function(){return"[object Generator]"}),r.keys=function(c){var l=Object(c),d=[];for(var M in l)d.push(M);return d.reverse(),function w(){for(;d.length;){var S=d.pop();if(S in l)return w.value=S,w.done=!1,w}return w.done=!0,w}},r.values=q,I.prototype={constructor:I,reset:function(c){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(y),!c)for(var l in this)l.charAt(0)==="t"&&t.call(this,l)&&!isNaN(+l.slice(1))&&(this[l]=void 0)},stop:function(){this.done=!0;var c=this.tryEntries[0].completion;if(c.type==="throw")throw c.arg;return this.rval},dispatchException:function(c){if(this.done)throw c;var l=this;function d(F,U){return S.type="throw",S.arg=c,l.next=F,U&&(l.method="next",l.arg=void 0),!!U}for(var M=this.tryEntries.length-1;M>=0;--M){var w=this.tryEntries[M],S=w.completion;if(w.tryLoc==="root")return d("end");if(w.tryLoc<=this.prev){var N=t.call(w,"catchLoc"),_=t.call(w,"finallyLoc");if(N&&_){if(this.prev<w.catchLoc)return d(w.catchLoc,!0);if(this.prev<w.finallyLoc)return d(w.finallyLoc)}else if(N){if(this.prev<w.catchLoc)return d(w.catchLoc,!0)}else{if(!_)throw new Error("try statement without catch or finally");if(this.prev<w.finallyLoc)return d(w.finallyLoc)}}}},abrupt:function(c,l){for(var d=this.tryEntries.length-1;d>=0;--d){var M=this.tryEntries[d];if(M.tryLoc<=this.prev&&t.call(M,"finallyLoc")&&this.prev<M.finallyLoc){var w=M;break}}w&&(c==="break"||c==="continue")&&w.tryLoc<=l&&l<=w.finallyLoc&&(w=null);var S=w?w.completion:{};return S.type=c,S.arg=l,w?(this.method="next",this.next=w.finallyLoc,E):this.complete(S)},complete:function(c,l){if(c.type==="throw")throw c.arg;return c.type==="break"||c.type==="continue"?this.next=c.arg:c.type==="return"?(this.rval=this.arg=c.arg,this.method="return",this.next="end"):c.type==="normal"&&l&&(this.next=l),E},finish:function(c){for(var l=this.tryEntries.length-1;l>=0;--l){var d=this.tryEntries[l];if(d.finallyLoc===c)return this.complete(d.completion,d.afterLoc),y(d),E}},catch:function(c){for(var l=this.tryEntries.length-1;l>=0;--l){var d=this.tryEntries[l];if(d.tryLoc===c){var M=d.completion;if(M.type==="throw"){var w=M.arg;y(d)}return w}}throw new Error("illegal catch attempt")},delegateYield:function(c,l,d){return this.delegate={iterator:q(c),resultName:l,nextLoc:d},this.method==="next"&&(this.arg=void 0),E}},r}function pe(r,e,t,n,i,o,a){try{var s=r[o](a),f=s.value}catch(u){t(u);return}s.done?e(f):Promise.resolve(f).then(n,i)}function W(r){return function(){var e=this,t=arguments;return new Promise(function(n,i){var o=r.apply(e,t);function a(f){pe(o,n,i,a,s,"next",f)}function s(f){pe(o,n,i,a,s,"throw",f)}a(void 0)})}}function ve(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function me(r,e){for(var t=0;t<e.length;t++){var n=e[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,we(n.key),n)}}function ge(r,e,t){return e&&me(r.prototype,e),t&&me(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}function K(r,e,t){return e=we(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function Ve(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&Y(r,e)}
1function Q(r){return Q=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Q(r)}function Y(r,e){return Y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Y(r,e)}function ye(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Z(r,e,t){return ye()?Z=Reflect.construct.bind():Z=function(i,o,a){var s=[null];s.push.apply(s,o);var f=Function.bind.apply(i,s),u=new f;return a&&Y(u,a.prototype),u},Z.apply(null,arguments)}function qe(r){return Function.toString.call(r).indexOf("[native code]")!==-1}function ie(r){var e=typeof Map=="function"?new Map:void 0;return ie=function(n){if(n===null||!qe(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(n))return e.get(n);e.set(n,i)}function i(){return Z(n,arguments,Q(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Y(i,n)},ie(r)}function ee(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function De(r,e){if(e&&(typeof e=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ee(r)}function $e(r){var e=ye();return function(){var n=Q(r),i;if(e){var o=Q(this).constructor;i=Reflect.construct(n,arguments,o)}else i=n.apply(this,arguments);return De(this,i)}}function We(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function we(r){var e=We(r,"string");return typeof e=="symbol"?e:String(e)}var be=typeof D.g<"u"&&{}.toString.call(D.g)==="[object global]";function Ee(r,e){return r.indexOf(e.toLowerCase())===0?r:"".concat(e.toLowerCase()).concat(r.substr(0,1).toUpperCase()).concat(r.substr(1))}function ze(r){return!!(r&&r.nodeType===1&&"nodeName"in r&&r.ownerDocument&&r.ownerDocument.defaultView)}function He(r){return!isNaN(parseFloat(r))&&isFinite(r)&&Math.floor(r)==r}function z(r){return/^(https?:)?\/\/((((player|www)\.)?vimeo\.com)|((player\.)?[a-zA-Z0-9-]+\.(videoji\.(hk|cn)|vimeo\.work)))(?=$|\/)/.test(r)}function ke(r){var e=/^https:\/\/player\.((vimeo\.com)|([a-zA-Z0-9-]+\.(videoji\.(hk|cn)|vimeo\.work)))\/video\/\d+/;return e.test(r)}function xe(r){for(var e=(r||"").match(/^(?:https?:)?(?:\/\/)?([^/?]+)/),t=(e&&e[1]||"").replace("player.",""),n=[".videoji.hk",".vimeo.work",".videoji.cn"],i=0,o=n;i<o.length;i++){var a=o[i];if(t.endsWith(a))return t}return"vimeo.com"}function Pe(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=r.id,t=r.url,n=e||t;if(!n)throw new Error("An id or url must be passed, either in an options object or as a data-vimeo-id or data-vimeo-url attribute.");if(He(n))return"https://vimeo.com/".concat(n);if(z(n))return n.replace("http:","https:");throw e?new TypeError("\u201C".concat(e,"\u201D is not a valid video id.")):new TypeError("\u201C".concat(n,"\u201D is not a vimeo.com url."))}var Te=function(e,t,n){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"addEventListener",o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"removeEventListener",a=typeof t=="string"?[t]:t;return a.forEach(function(s){e[i](s,n)}),{cancel:function(){return a.forEach(function(f){return e[o](f,n)})}}},Be=typeof Array.prototype.indexOf<"u",Ge=typeof window<"u"&&typeof window.postMessage<"u";if(!be&&(!Be||!Ge))throw new Error("Sorry, the Vimeo Player API is not available in this browser.");var B=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof D.g<"u"?D.g:typeof self<"u"?self:{};function Ue(r,e){return e={exports:{}},r(e,e.exports),e.exports}/*!
2 * weakmap-polyfill v2.0.4 - ECMAScript6 WeakMap polyfill
3 * https://github.com/polygonplanet/weakmap-polyfill
4 * Copyright (c) 2015-2021 polygonplanet <[email protected]>
5 * @license MIT
6 */(function(r){if(r.WeakMap)return;var e=Object.prototype.hasOwnProperty,t=Object.defineProperty&&(function(){try{return Object.defineProperty({},"x",{value:1}).x===1}catch{}})(),n=function(o,a,s){t?Object.defineProperty(o,a,{configurable:!0,writable:!0,value:s}):o[a]=s};r.WeakMap=(function(){function o(){if(this===void 0)throw new TypeError("Constructor WeakMap requires 'new'");if(n(this,"_id",s("_WeakMap")),arguments.length>0)throw new TypeError("WeakMap iterable is not supported")}n(o.prototype,"delete",function(u){if(a(this,"delete"),!i(u))return!1;var k=u[this._id];return k&&k[0]===u?(delete u[this._id],!0):!1}),n(o.prototype,"get",function(u){if(a(this,"get"),!!i(u)){var k=u[this._id];if(k&&k[0]===u)return k[1]}}),n(o.prototype,"has",function(u){if(a(this,"has"),!i(u))return!1;var k=u[this._id];return!!(k&&k[0]===u)}),n(o.prototype,"set",function(u,k){if(a(this,"set"),!i(u))throw new TypeError("Invalid value used as weak map key");var E=u[this._id];return E&&E[0]===u?(E[1]=k,this):(n(u,this._id,[u,k]),this)});function a(u,k){if(!i(u)||!e.call(u,"_id"))throw new TypeError(k+" method called on incompatible receiver "+typeof u)}function s(u){return u+"_"+f()+"."+f()}function f(){return Math.random().toString().substring(2)}return n(o,"_polyfill",!0),o})();function i(o){return Object(o)===o}})(typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:B);var V=Ue(function(r){/*! Native Promise Only
7    v0.8.1 (c) Kyle Simpson
8    MIT License: http://getify.mit-license.org
9*/(function(t,n,i){n[t]=n[t]||i(),r.exports&&(r.exports=n[t])})("Promise",B,function(){var t,n,i,o=Object.prototype.toString,a=typeof setImmediate<"u"?function(p){return setImmediate(p)}:setTimeout;try{Object.defineProperty({},"x",{}),t=function(p,h,v,b){return Object.defineProperty(p,h,{value:v,writable:!0,configurable:b!==!1})}}catch{t=function(h,v,b){return h[v]=b,h}
9}i=(function(){var p,h,v;function b(C,y){this.fn=C,this.self=y,this.next=void 0}return{add:function(y,I){v=new b(y,I),h?h.next=v:p=v,h=v,v=void 0},drain:function(){var y=p;for(p=h=n=void 0;y;)y.fn.call(y.self),y=y.next}}})();function s(m,p){i.add(m,p),n||(n=a(i.drain))}function f(m){var p,h=typeof m;return m!=null&&(h=="object"||h=="function")&&(p=m.then),typeof p=="function"?p:!1}function u(){for(var m=0;m<this.chain.length;m++)k(this,this.state===1?this.chain[m].success:this.chain[m].failure,this.chain[m]);this.chain.length=0}function k(m,p,h){var v,b;try{p===!1?h.reject(m.msg):(p===!0?v=m.msg:v=p.call(void 0,m.msg),v===h.promise?h.reject(TypeError("Promise-chain cycle")):(b=f(v))?b.call(v,h.resolve,h.reject):h.resolve(v))}catch(C){h.reject(C)}}function E(m){var p,h=this;if(!h.triggered){h.triggered=!0,h.def&&(h=h.def);try{(p=f(m))?s(function(){var v=new g(h);try{p.call(m,function(){E.apply(v,arguments)},function(){T.apply(v,arguments)})}catch(b){T.call(v,b)}}):(h.msg=m,h.state=1,h.chain.length>0&&s(u,h))}catch(v){T.call(new g(h),v)}}}function T(m){var p=this;p.triggered||(p.triggered=!0,p.def&&(p=p.def),p.msg=m,p.state=2,p.chain.length>0&&s(u,p))}function P(m,p,h,v){for(var b=0;b<p.length;b++)(function(y){m.resolve(p[y]).then(function(q){h(y,q)},v)})(b)}function g(m){this.def=m,this.triggered=!1}function A(m){this.promise=m,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function O(m){if(typeof m!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var p=new A(this);this.then=function(v,b){var C={success:typeof v=="function"?v:!0,failure:typeof b=="function"?b:!1};return C.promise=new this.constructor(function(I,q){if(typeof I!="function"||typeof q!="function")throw TypeError("Not a function");C.resolve=I,C.reject=q}),p.chain.push(C),p.state!==0&&s(u,p),C.promise},this.catch=function(v){return this.then(void 0,v)};try{m.call(void 0,function(v){E.call(p,v)},function(v){T.call(p,v)})}catch(h){T.call(p,h)}}var R=t({},"constructor",O,!1);return O.prototype=R,t(R,"__NPO__",0,!1),t(O,"resolve",function(p){var h=this;return p&&typeof p=="object"&&p.__NPO__===1?p:new h(function(b,C){if(typeof b!="function"||typeof C!="function")throw TypeError("Not a function");b(p)})}),t(O,"reject",function(p){return new this(function(v,b){if(typeof v!="function"||typeof b!="function")throw TypeError("Not a function");b(p)})}),t(O,"all",function(p){var h=this;return o.call(p)!="[object Array]"?h.reject(TypeError("Not an array")):p.length===0?h.resolve([]):new h(function(b,C){if(typeof b!="function"||typeof C!="function")throw TypeError("Not a function");var y=p.length,I=Array(y),q=0;P(h,p,function(c,l){I[c]=l,++q===y&&b(I)},C)})}),t(O,"race",function(p){var h=this;return o.call(p)!="[object Array]"?h.reject(TypeError("Not an array")):new h(function(b,C){if(typeof b!="function"||typeof C!="function")throw TypeError("Not a function");P(h,p,function(I,q){b(q)},C)})}),O})}),$=new WeakMap;function J(r,e,t){var n=$.get(r.element)||{};e in n||(n[e]=[]),n[e].push(t),$.set(r.element,n)}function te(r,e){var t=$.get(r.element)||{};return t[e]||[]}function re(r,e,t){var n=$.get(r.element)||{};if(!n[e])return!0;if(!t)return n[e]=[],$.set(r.element,n),!0;var i=n[e].indexOf(t);return i!==-1&&n[e].splice(i,1),$.set(r.element,n),n[e]&&n[e].length===0}function Qe(r,e){var t=te(r,e);if(t.length<1)return!1;var n=t.shift();return re(r,e,n),n}function Ye(r,e){var t=$.get(r);$.set(e,t),$.delete(r)}function ne(r){if(typeof r=="string")try{r=JSON.parse(r)}catch{return{}}return r}function H(r,e,t){if(!(!r.element.contentWindow||!r.element.contentWindow.postMessage)){var n={method:e};t!==void 0&&(n.value=t);var i=parseFloat(navigator.userAgent.toLowerCase().replace(/^.*msie (\d+).*$/,"$1"));i>=8&&i<10&&(n=JSON.stringify(n)),r.element.contentWindow.postMessage(n,r.origin)}}function Je(r,e){e=ne(e);var t=[],n;if(e.event){if(e.event==="error"){var i=te(r,e.data.method);i.forEach(function(a){var s=new Error(e.data.message);s.name=e.data.name,a.reject(s),re(r,e.data.method,a)})}t=te(r,"event:".concat(e.event)),n=e.data}else if(e.method){var o=Qe(r,e.method);o&&(t.push(o),n=e.value)}t.forEach(function(a){try{if(typeof a=="function"){a.call(r,n);return}a.resolve(n)}catch{}})}var Xe=["airplay","audio_tracks","audiotrack","autopause","autoplay","background","byline","cc","chapter_id","chapters","chromecast","color","colors","controls","dnt","end_time","fullscreen","height","id","initial_quality","interactive_params","keyboard","loop","maxheight","max_quality","maxwidth","min_quality","muted","play_button_position","playsinline","portrait","preload","progress_bar","quality","quality_selector","responsive","skipping_forward","speed","start_time","texttrack","thumbnail_id","title","transcript","transparent","unmute_button","url","vimeo_logo","volume","watch_full_video","width"];function Me(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Xe.reduce(function(t,n){var i=r.getAttribute("data-vimeo-".concat(n));return(i||i==="")&&(t[n]=i===""?1:i),t},e)}function oe(r,e){var t=r.html;if(!e)throw new TypeError("An element must be provided");
9if(e.getAttribute("data-vimeo-initialized")!==null)return e.querySelector("iframe");var n=document.createElement("div");return n.innerHTML=t,e.appendChild(n.firstChild),e.setAttribute("data-vimeo-initialized","true"),e.querySelector("iframe")}function Ce(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=arguments.length>2?arguments[2]:void 0;return new Promise(function(n,i){if(!z(r))throw new TypeError("\u201C".concat(r,"\u201D is not a vimeo.com url."));var o=xe(r),a="https://".concat(o,"/api/oembed.json?url=").concat(encodeURIComponent(r));for(var s in e)e.hasOwnProperty(s)&&(a+="&".concat(s,"=").concat(encodeURIComponent(e[s])));var f="XDomainRequest"in window?new XDomainRequest:new XMLHttpRequest;f.open("GET",a,!0),f.onload=function(){if(f.status===404){i(new Error("\u201C".concat(r,"\u201D was not found.")));return}if(f.status===403){i(new Error("\u201C".concat(r,"\u201D is not embeddable.")));return}try{var u=JSON.parse(f.responseText);if(u.domain_status_code===403){oe(u,t),i(new Error("\u201C".concat(r,"\u201D is not embeddable.")));return}n(u)}catch(k){i(k)}},f.onerror=function(){var u=f.status?" (".concat(f.status,")"):"";i(new Error("There was an error fetching the embed code from Vimeo".concat(u,".")))},f.send()})}function Ke(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document,e=[].slice.call(r.querySelectorAll("[data-vimeo-id], [data-vimeo-url]")),t=function(i){"console"in window};e.forEach(function(n){try{if(n.getAttribute("data-vimeo-defer")!==null)return;var i=Me(n),o=Pe(i);Ce(o,i,n).then(function(a){return oe(a,n)}).catch(t)}catch(a){t(a)}})}function Ze(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;if(!window.VimeoPlayerResizeEmbeds_){window.VimeoPlayerResizeEmbeds_=!0;var e=function(n){if(z(n.origin)&&!(!n.data||n.data.event!=="spacechange")){for(var i=r.querySelectorAll("iframe"),o=0;o<i.length;o++)if(i[o].contentWindow===n.source){var a=i[o].parentElement;a.style.paddingBottom="".concat(n.data.data[0].bottom,"px");break}}};window.addEventListener("message",e)}}function et(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;if(!window.VimeoSeoMetadataAppended){window.VimeoSeoMetadataAppended=!0;var e=function(n){if(z(n.origin)){var i=ne(n.data);if(!(!i||i.event!=="ready"))for(var o=r.querySelectorAll("iframe"),a=0;a<o.length;a++){var s=o[a],f=s.contentWindow===n.source;if(ke(s.src)&&f){var u=new ue(s);u.callMethod("appendVideoMetadata",window.location.href)}}}};window.addEventListener("message",e)}}function tt(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;if(!window.VimeoCheckedUrlTimeParam){window.VimeoCheckedUrlTimeParam
9=!0;var e=function(i){"console"in window},t=function(i){if(z(i.origin)){var o=ne(i.data);if(!(!o||o.event!=="ready"))for(var a=r.querySelectorAll("iframe"),s=function(){var k=a[f],E=k.contentWindow===i.source;if(ke(k.src)&&E){var T=new ue(k);T.getVideoId().then(function(P){var g=new RegExp("[?&]vimeo_t_".concat(P,"=([^&#]*)")).exec(window.location.href);if(g&&g[1]){var A=decodeURI(g[1]);T.setCurrentTime(A)}}).catch(e)}},f=0;f<a.length;f++)s()}};window.addEventListener("message",t)}}function rt(){var r=(function(){for(var n,i=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],o=0,a=i.length,s={};o<a;o++)if(n=i[o],n&&n[1]in document){for(o=0;o<n.length;o++)s[i[0][o]]=n[o];return s}return!1})(),e={fullscreenchange:r.fullscreenchange,fullscreenerror:r.fullscreenerror},t={request:function(i){return new Promise(function(o,a){var s=function u(){t.off("fullscreenchange",u),o()};t.on("fullscreenchange",s),i=i||document.documentElement;var f=i[r.requestFullscreen]();f instanceof Promise&&f.then(s).catch(a)})},exit:function(){return new Promise(function(i,o){if(!t.isFullscreen){i();return}var a=function f(){t.off("fullscreenchange",f),i()};t.on("fullscreenchange",a);var s=document[r.exitFullscreen]();s instanceof Promise&&s.then(a).catch(o)})},on:function(i,o){var a=e[i];a&&document.addEventListener(a,o)},off:function(i,o){var a=e[i];a&&document.removeEventListener(a,o)}};return Object.defineProperties(t,{isFullscreen:{get:function(){return!!document[r.fullscreenElement]}},element:{enumerable:!0,get:function(){return document[r.fullscreenElement]}},isEnabled:{enumerable:!0,get:function(){return!!document[r.fullscreenEnabled]}}}),t}var nt={role:"viewer",autoPlayMuted:!0,allowedDrift:.3,maxAllowedDrift:1,minCheckInterval:.1,maxRateAdjustment:.2,maxTimeToCatchUp:1},it=(function(r){Ve(t,r);var e=$e(t);function t(n,i){var o,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=arguments.length>3?arguments[3]:void 0;return ve(this,t),o=e.call(this),K(ee(o),"logger",void 0),K(ee(o),"speedAdjustment",0),K(ee(o),"adjustSpeed",(function(){var f=W(j().mark(function u(k,E){var T;return j().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:if(o.speedAdjustment!==E){g.next=2;break}return g.abrupt("return");case 2:return g.next=4,k.getPlaybackRate();case 4:return g.t0=g.sent,g.t1=o.speedAdjustment,g.t2=g.t0-g.t1,g.t3=E,T=g.t2+g.t3,o.log("New playbackRate:  ".concat(T)),g.next=12,k.setPlaybackRate(T);case 12:o.speedAdjustment=E;case 13:case"end":return g.stop()}},u)}));return function(u,k){return f.apply(this,arguments)}})()),o.logger=s,o.init(i,n,de(de({},nt),a)),o}return ge(t,[{key:"disconnect",value:function(){this.dispatchEvent(new Event("disconnect"))}},{key:"init",value:(function(){var n=W(j().mark(function o(a,s,f){var u=this,k,E,T;return j().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.next=2,this.waitForTOReadyState(a,"open");case 2:if(f.role!=="viewer"){g.next=10;break}return g.next=5,this.updatePlayer(a,s,f);case 5:k=Te(a,"change",function(){return u.updatePlayer(a,s,f)}),E=this.maintainPlaybackPosition(a,s,f),this.addEventListener("disconnect",function(){E.cancel(),k.cancel()}),g.next=14;break;case 10:return g.next=12,this.updateTimingObject(a,s);case 12:T=Te(s,["seeked","play","pause","ratechange"],function(){return u.updateTimingObject(a,s)},"on","off"),this.addEventListener("disconnect",function(){return T.cancel()});case 14:case"end":return g.stop()}},o,this)}));function i(o,a,s){return n.apply(this,arguments)}return i})()},{key:"updateTimingObject",value:(function(){var n=W(j().mark(function o(a,s){return j().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.t0=a,u.next=3,s.getCurrentTime();case 3:return u.t1=u.sent,u.next=6,s.getPaused();case 6:if(!u.sent){u.next=10;break}u.t2=0,u.next=13;break;case 10:return u.next=12,s.getPlaybackRate();case 12:u.t2=u.sent;case 13:u.t3=u.t2,u.t4={position:u.t1,velocity:u.t3},u.t0.update.call(u.t0,u.t4);case 16:case"end":return u.stop()}},o)}));function i(o,a){return n.apply(this,arguments)}return i})()},{key:"updatePlayer",value:(function(){var n=W(j().mark(function o(a,s,f){var u,k,E;return j().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:if(u=a.query(),k=u.position,E=u.velocity,typeof k=="number"&&s.setCurrentTime(k),typeof E!="number"){P.next=25;break}if(E!==0){P.next=11;break}return P.next=6,s.getPaused();case 6:if(P.t0=P.sent,P.t0!==!1){P.next=9;break}s.pause();case 9:P.next=25;break;case 11:if(!(E>0)){P.next=25;break}return P.next=14,s.getPaused();case 14:if(P.t1=P.sent,P.t1!==!0){P.next=19;break}return P.next=18,s.play().catch((function(){var g=W(j().mark(function A(O){return j().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:if(!(O.name==="NotAllowedError"&&f.autoPlayMuted)){m.next=5;break}return m.next=3,s.setMuted(!0);case 3:return m.next=5,s.play().catch(function(p){});case 5:case"end":return m.stop()}},A)}));return function(A){return g.apply(this,arguments)}})());case 18:this.updatePlayer(a,s,f);case 19:return P.next=21,s.getPlaybackRate();case 21:if(P.t2=P.sent,P.t3=E,P.t2===P.t3){P.next=25;break}s.setPlaybackRate(E);case 25:case"end":return P.stop()}},o,this)}));function i(o,a,s){return n.apply(this,arguments)}return i})()},{key:"maintainPlaybackPosition",value:function(i,o,a){var s=this,f=a.allowedDrift,u=a.maxAllowedDrift,k=a.minCheckInterval,E=a.maxRateAdjustment,T=a.maxTimeToCatchUp,P=Math.min(T,Math.max(k,u))*1e3,g=(function(){var O=W(j().mark(function R(){var m,p,h,v,b;return j().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:if(y.t0=i.query().velocity===0,y.t0){y.next=6;break}return y.next=4,o.getPaused();case 4:y.t1=y.sent,y.t0=y.t1===!0;case 6:if(!y.t0){y.next=8;break}return y.abrupt("return");case 8:return y.t2=i.query().position,y.next=11,o.getCurrentTime();case 11:if(y.t3=y.sent,m=y.t2-y.t3,p=Math.abs(m),s.log("Drift: ".concat(m)),!(p>u)){y.next=22;break}return y.next=18,s.adjustSpeed(o,0);case 18:o.setCurrentTime(i.query().position),s.log("Resync by currentTime"),y.next=29;break;case 22:if(!(p>f)){y.next=29;break}return h=p/T,v=E,b=h<v?(v-h)/2:v,y.next=28,s.adjustSpeed(o,b*Math.sign(m));case 28:s.log("Resync by playbackRate");case 29:case"end":return y.stop()}},R)}));return function(){return O.apply(this,arguments)}})(),A=setInterval(function(){return g()},P);return{cancel:function(){return clearInterval(A)}}}},{key:"log",value:function(i){var o;(o=this.logger)===null||o===void 0||o.call(this,"TimingSrcConnector: ".concat(i))}},{key:"waitForTOReadyState",value:function(i,o){return new Promise(function(a){var s=function f(){i.readyState===o?a():i.addEventListener("readystatechange",f,{once:!0})};s()})}}]),t})(ie(EventTarget)),G=new WeakMap,ae=new WeakMap,L={},ue=(function(){function r(e){var t=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(ve(this,r),_e&&e instanceof Fe&&(e.length>1&&window.console,e=e[0]),typeof document<"u"&&typeof e=="string"&&(e=document.getElementById(e)),!ze(e))throw new TypeError("You must pass either a valid element or a valid id.");if(e.nodeName!=="IFRAME"){var i=e.querySelector("iframe");
9i&&(e=i)}if(e.nodeName==="IFRAME"&&!z(e.getAttribute("src")||""))throw new Error("The player element passed isn\u2019t a Vimeo embed.");if(G.has(e))return G.get(e);this._window=e.ownerDocument.defaultView,this.element=e,this.origin="*";var o=new V(function(s,f){if(t._onMessage=function(E){if(!(!z(E.origin)||t.element.contentWindow!==E.source)){t.origin==="*"&&(t.origin=E.origin);var T=ne(E.data),P=T&&T.event==="error",g=P&&T.data&&T.data.method==="ready";if(g){var A=new Error(T.data.message);A.name=T.data.name,f(A);return}var O=T&&T.event==="ready",R=T&&T.method==="ping";if(O||R){t.element.setAttribute("data-ready","true"),s();return}Je(t,T)}},t._window.addEventListener("message",t._onMessage),t.element.nodeName!=="IFRAME"){var u=Me(e,n),k=Pe(u);Ce(k,u,e).then(function(E){var T=oe(E,e);return t.element=T,t._originalElement=e,Ye(e,T),G.set(t.element,t),E}).catch(f)}});if(ae.set(this,o),G.set(this.element,this),this.element.nodeName==="IFRAME"&&H(this,"ping"),L.isEnabled){var a=function(){return L.exit()};this.fullscreenchangeHandler=function(){L.isFullscreen?J(t,"event:exitFullscreen",a):re(t,"event:exitFullscreen",a),t.ready().then(function(){H(t,"fullscreenchange",L.isFullscreen)})},L.on("fullscreenchange",this.fullscreenchangeHandler)}return this}return ge(r,[{key:"callMethod",value:function(t){for(var n=this,i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];if(t==null)throw new TypeError("You must pass a method name.");return new V(function(s,f){return n.ready().then(function(){J(n,t,{resolve:s,reject:f}),H(n,t,o)}).catch(f)})}},{key:"get",value:function(t){var n=this;return new V(function(i,o){return t=Ee(t,"get"),n.ready().then(function(){J(n,t,{resolve:i,reject:o}),H(n,t)}).catch(o)})}},{key:"set",value:function(t,n){var i=this;return new V(function(o,a){if(t=Ee(t,"set"),n==null)throw new TypeError("There must be a value to set.");return i.ready().then(function(){J(i,t,{resolve:o,reject:a}),H(i,t,n)}).catch(a)})}},{key:"on",value:function(t,n){if(!t)throw new TypeError("You must pass an event name.");if(!n)throw new TypeError("You must pass a callback function.");if(typeof n!="function")throw new TypeError("The callback must be a function.");var i=te(this,"event:".concat(t));i.length===0&&this.callMethod("addEventListener",t).catch(function(){}),J(this,"event:".concat(t),n)}},{key:"off",value:function(t,n){if(!t)throw new TypeError("You must pass an event name.");if(n&&typeof n!="function")throw new TypeError("The callback must be a function.");var i=re(this,"event:".concat(t),n);i&&this.callMethod("removeEventListener",t).catch(function(o){})}},{key:"loadVideo",value:function(t){return this.callMethod("loadVideo",t)}},{key:"ready",value:function(){var t=ae.get(this)||new V(function(n,i){i(new Error("Unknown player. Probably unloaded."))});return V.resolve(t)}},{key:"addCuePoint",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.callMethod("addCuePoint",{time:t,data:n})}},{key:"removeCuePoint",value:function(t){return this.callMethod("removeCuePoint",t)}},{key:"enableTextTrack",value:function(t,n){if(!t)throw new TypeError("You must pass a language.");return this.callMethod("enableTextTrack",{language:t,kind:n})}},{key:"disableTextTrack",value:function(){return this.callMethod("disableTextTrack")}},{key:"pause",value:function(){return this.callMethod("pause")}},{key:"play",value:function(){return this.callMethod("play")}},{key:"requestFullscreen",value:function(){return L.isEnabled?L.request(this.element):this.callMethod("requestFullscreen")}},{key:"exitFullscreen",value:function(){return L.isEnabled?L.exit():this.callMethod("exitFullscreen")}},{key:"getFullscreen",value:function(){return L.isEnabled?V.resolve(L.isFullscreen):this.get("fullscreen")}},{key:"requestPictureInPicture",value:function(){return this.callMethod("requestPictureInPicture")}},{key:"exitPictureInPicture",value:function(){return this.callMethod("exitPictureInPicture")}},{key:"getPictureInPicture",value:function(){return this.get("pictureInPicture")}},{key:"remotePlaybackPrompt",value:function(){return this.callMethod("remotePlaybackPrompt")}},{key:"unload",value:function(){return this.callMethod("unload")}},{key:"destroy",value:function(){var t=this;return new V(function(n){if(ae.delete(t),G.delete(t.element),t._originalElement&&(G.delete(t._originalElement),t._originalElement.removeAttribute("data-vimeo-initialized")),t.element&&t.element.nodeName==="IFRAME"&&t.element.parentNode&&(t.element.parentNode.parentNode&&t._originalElement&&t._originalElement!==t.element.parentNode?t.element.parentNode.parentNode.removeChild(t.element.parentNode):t.element.parentNode.removeChild(t.element)),t.element&&t.element.nodeName==="DIV"&&t.element.parentNode){t.element.removeAttribute("data-vimeo-initialized");var i=t.element.querySelector("iframe");i&&i.parentNode&&(i.parentNode.parentNode&&t._originalElement&&t._originalElement!==i.parentNode?i.parentNode.parentNode.removeChild(i.parentNode):i.parentNode.removeChild(i))}t._window.removeEventListener("message",t._onMessage),L.isEnabled&&L.off("fullscreenchange",t.fullscreenchangeHandler),n()})}},{key:"getAutopause",value:function(){return this.get("autopause")}},{key:"setAutopause",value:function(t){return this.set("autopause",t)}},{key:"getBuffered",value:function(){return this.get("buffered")}},{key:"getCameraProps",value:function(){return this.get("cameraProps")}},{key:"setCameraProps",value:function(t){return this.set("cameraProps",t)}},{key:"getChapters",value:function(){return this.get("chapters")}},{key:"getCurrentChapter",value:function(){return this.get("currentChapter")}},{key:"getColor",value:function(){return this.get("color")}},{key:"getColors",value:function(){return V.all([this.get("colorOne"),this.get("colorTwo"),this.get("colorThree"),this.get("colorFour")])}},{key:"setColor",value:function(t){return this.set("color",t)}},{key:"setColors",value:function(t){if(!Array.isArray(t))return new V(function(o,a){return a(new TypeError("Argument must be an array."))});var n=new V(function(o){return o(null)}),i=[t[0]?this.set("colorOne",t[0]):n,t[1]?this.set("colorTwo",t[1]):n,t[2]?this.set("colorThree",t[2]):n,t[3]?this.set("colorFour",t[3]):n
9];return V.all(i)}},{key:"getCuePoints",value:function(){return this.get("cuePoints")}},{key:"getCurrentTime",value:function(){return this.get("currentTime")}},{key:"setCurrentTime",value:function(t){return this.set("currentTime",t)}},{key:"getDuration",value:function(){return this.get("duration")}},{key:"getEnded",value:function(){return this.get("ended")}},{key:"getLoop",value:function(){return this.get("loop")}},{key:"setLoop",value:function(t){return this.set("loop",t)}},{key:"setMuted",value:function(t){return this.set("muted",t)}},{key:"getMuted",value:function(){return this.get("muted")}},{key:"getPaused",value:function(){return this.get("paused")}},{key:"getPlaybackRate",value:function(){return this.get("playbackRate")}},{key:"setPlaybackRate",value:function(t){return this.set("playbackRate",t)}},{key:"getPlayed",value:function(){return this.get("played")}},{key:"getQualities",value:function(){return this.get("qualities")}},{key:"getQuality",value:function(){return this.get("quality")}},{key:"setQuality",value:function(t){return this.set("quality",t)}},{key:"getRemotePlaybackAvailability",value:function(){return this.get("remotePlaybackAvailability")}},{key:"getRemotePlaybackState",value:function(){return this.get("remotePlaybackState")}},{key:"getSeekable",value:function(){return this.get("seekable")}},{key:"getSeeking",value:function(){return this.get("seeking")}},{key:"getTextTracks",value:function(){return this.get("textTracks")}},{key:"getVideoEmbedCode",value:function(){return this.get("videoEmbedCode")}},{key:"getVideoId",value:function(){return this.get("videoId")}},{key:"getVideoTitle",value:function(){return this.get("videoTitle")}},{key:"getVideoWidth",value:function(){return this.get("videoWidth")}},{key:"getVideoHeight",value:function(){return this.get("videoHeight")}},{key:"getVideoUrl",value:function(){return this.get("videoUrl")}},{key:"getVolume",value:function(){return this.get("volume")}},{key:"setVolume",value:function(t){return this.set("volume",t)}},{key:"setTimingSrc",value:(function(){var e=W(j().mark(function n(i,o){var a=this,s;return j().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:if(i){u.next=2;break}throw new TypeError("A Timing Object must be provided.");case 2:return u.next=4,this.ready();case 4:return s=new it(this,i,o),H(this,"notifyTimingObjectConnect"),s.addEventListener("disconnect",function(){return H(a,"notifyTimingObjectDisconnect")}),u.abrupt("return",s);case 8:case"end":return u.stop()}},n,this)}));function t(n,i){return e.apply(this,arguments)}return t})()}]),r})();be||(L=rt(),Ke(),Ze(),et(),tt());const ot=ue,at="https://player.vimeo.com/video",ut=/vimeo\.com\/(?:video\/)?(\d+)(?:\/([\w-]+))?/;function Se(r,e={}){const t={src:st(r,e),frameborder:0,width:"100%",height:"100%",allow:"accelerometer; fullscreen; autoplay; encrypted-media; gyroscope; picture-in-picture"};return e.config&&(t["data-config"]=JSON.stringify(e.config)),`
10    <style>
11      :host {
12        display: inline-block;
13        min-width: 300px;
14        min-height: 150px;
15        position: relative;
16      }
17      iframe {
18        position: absolute;
19        top: 0;
20        left: 0;
21      }
22      :host(:not([controls])) {
23        pointer-events: none;
24      }
25    </style>
26    <iframe${lt(t)}></iframe>
27  `}function st(r,e){if(!r.src)return;const t=r.src.match(ut),n=t&&t[1],i=t&&t[2],o={controls:r.controls===""?null:0,autoplay:r.autoplay,loop:r.loop,muted:r.muted,playsinline:r.playsinline,preload:r.preload??"metadata",transparent:!1,autopause:r.autopause,h:i,...e.config};return`${at}/${n}?${ct(o)}`}class Oe extends(globalThis.HTMLElement??class{}){static getTemplateHTML=Se;static shadowRootOptions={mode:"open"};static observedAttributes=["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src"];loadComplete=new Ae;#c;#f;#p;#t=0;#r=NaN;#n=!1;#e=!this.autoplay;#a=1;#u=0;#i=0;#s=!1;#o=1;#h=NaN;#d=NaN;#l=null;constructor(){super(),this.#v("config")}requestFullscreen(){var e,t;return(t=(e=this.api)==null?void 0:e.requestFullscreen)==null?void 0:t.call(e)}exitFullscreen(){var e,t;return(t=(e=this.api)==null?void 0:e.exitFullscreen)==null?void 0:t.call(e)}requestPictureInPicture(){var e,t;return(t=(e=this.api)==null?void 0:e.requestPictureInPicture)==null?void 0:t.call(e)}exitPictureInPicture(){var e,t;return(t=(e=this.api)==null?void 0:e.exitPictureInPicture)==null?void 0:t.call(e)}get config(){return this.#l}set config(e){this.#l=e}async load(){var e;if(this.#c)return;const t=!this.#f;this.#f&&(this.loadComplete=new Ae),this.#f=!0,await(this.#c=Promise.resolve()),this.#c=null,this.#t=0,this.#r=NaN,this.#n=!1,this.#e=!this.autoplay,this.#a=1,this.#u=0,this.#i=0,this.#s=!1,this.#o=1,this.#i=0,this.#h=NaN,this.#d=NaN,this.dispatchEvent(new Event("emptied"));let n=this.api;if(this.api=null,!this.src)return;this.dispatchEvent(new Event("loadstart"));const i={autoplay:this.autoplay,controls:this.controls,loop:this.loop,muted:this.defaultMuted,playsinline:this.playsInl
27ine,preload:this.preload??"metadata",transparent:!1,autopause:this.hasAttribute("autopause"),...this.#l},o=async()=>{this.#i=1,this.dispatchEvent(new Event("loadedmetadata")),this.api&&(this.#n=await this.api.getMuted(),this.#o=await this.api.getVolume(),this.dispatchEvent(new Event("volumechange")),this.#r=await this.api.getDuration(),this.dispatchEvent(new Event("durationchange"))),this.dispatchEvent(new Event("loadcomplete")),this.loadComplete.resolve()};if(this.#p){this.api=n,await this.api.loadVideo({...i,url:this.src}),await o(),await this.loadComplete;return}this.#p=!0;let a=(e=this.shadowRoot)==null?void 0:e.querySelector("iframe");t&&a&&(this.#l=JSON.parse(a.getAttribute("data-config")||"{}")),this.shadowRoot||(this.attachShadow({mode:"open"}),this.shadowRoot.innerHTML=Se(ht(this.attributes),this),a=this.shadowRoot.querySelector("iframe")),this.api=new ot(a);const s=()=>{this.api.off("loaded",s),o()};this.api.on("loaded",s),this.api.on("bufferstart",()=>{this.#e&&(this.#e=!1,this.dispatchEvent(new Event("play"))),this.dispatchEvent(new Event("waiting"))}),this.api.on("play",()=>{this.#e&&(this.#e=!1,this.dispatchEvent(new Event("play")))}),this.api.on("playing",()=>{this.#i=3,this.#e=!1,this.dispatchEvent(new Event("playing"))}),this.api.on("seeking",()=>{this.#s=!0,this.dispatchEvent(new Event("seeking"))}),this.api.on("seeked",()=>{this.#s=!1,this.dispatchEvent(new Event("seeked"))}),this.api.on("pause",()=>{this.#e=!0,this.dispatchEvent(new Event("pause"))}),this.api.on("ended",()=>{this.#e=!0,this.dispatchEvent(new Event("ended"))}),this.api.on("ratechange",({playbackRate:f})=>{this.#a=f,this.dispatchEvent(new Event("ratechange"))}),this.api.on("volumechange",async({volume:f})=>{this.#o=f,this.api&&(this.#n=await this.api.getMuted()),this.dispatchEvent(new Event("volumechange"))}),this.api.on("durationchange",({duration:f})=>{this.#r=f,this.dispatchEvent(new Event("durationchange"))}),this.api.on("timeupdate",({seconds:f})=>{this.#t=f,this.dispatchEvent(new Event("timeupdate"))}),this.api.on("progress",({seconds:f})=>{this.#u=f,this.dispatchEvent(new Event("progress"))}),this.api.on("resize",({videoWidth:f,videoHeight:u})=>{this.#h=f,this.#d=u,this.dispatchEvent(new Event("resize"))}),await this.loadComplete}async attributeChangedCallback(e,t,n){if(t!==n){switch(e){case"autoplay":case"controls":case"src":{this.load();return}}await this.loadComplete,e==="loop"&&this.api.setLoop(this.loop)}}async play(){var e;this.#e=!1,this.dispatchEvent(new Event("play")),await this.loadComplete;try{await((e=this.api)==null?void 0:e.play())}catch(t){throw this.#e=!0,this.dispatchEvent(new Event("pause")),t}}async pause(){var e;return await this.loadComplete,(e=this.api)==null?void 0:e.pause()}get ended(){return this.#t>=this.#r}get seeking(){return this.#s}get readyState(){return this.#i}get videoWidth(){return this.#h}get videoHeight(){return this.#d}get src(){return this.getAttribute("src")}set src(e){this.src!=e&&this.setAttribute("src",e)}get paused(){return this.#e}get duration(){return this.#r}get autoplay(){return this.hasAttribute("autoplay")}set autoplay(e){this.autoplay!=e&&this.toggleAttribute("autoplay",!!e)}get buffered(){return this.#u>0?Ne(0,this.#u):Ne()}get controls(){return this.hasAttribute("controls")}set controls(e){this.controls!=e&&this.toggleAttribute("controls",!!e)}get currentTime(){return this.#t}set currentTime(e){this.currentTime!=e&&(this.#t=e,this.loadComplete.then(()=>{var t;(t=this.api)==null||t.setCurrentTime(e).catch(()=>{})}))}get defaultMuted(){return this.hasAttribute("muted")}set defaultMuted(e){this.defaultMuted!=e&&this.toggleAttribute("muted",!!e)}get loop(){return this.hasAttribute("loop")}set loop(e){this.loop!=e&&this.toggleAttribute("loop",!!e)}get muted(){return this.#n}set muted(e){this.muted!=e&&(this.#n=e,this.loadComplete.then(()=>{var t;(t=this.api)==null||t.setMuted(e).catch(()=>{})}))}get playbackRate(){return this.#a}set playbackRate(e){this.playbackRate!=e&&(this.#a=e,this.loadComplete.then(()=>{var t;(t=this.api)==null||t.setPlaybackRate(e).catch(()=>{})}))}
27get playsInline(){return this.hasAttribute("playsinline")}set playsInline(e){this.playsInline!=e&&this.toggleAttribute("playsinline",!!e)}get poster(){return this.getAttribute("poster")}set poster(e){this.poster!=e&&this.setAttribute("poster",`${e}`)}get volume(){return this.#o}set volume(e){this.volume!=e&&(this.#o=e,this.loadComplete.then(()=>{var t;(t=this.api)==null||t.setVolume(e).catch(()=>{})}))}#v(e){if(Object.prototype.hasOwnProperty.call(this,e)){const t=this[e];delete this[e],this[e]=t}}}function lt(r){let e="";for(const t in r){const n=r[t];n===""?e+=` ${se(t)}`:e+=` ${se(t)}="${se(`${n}`)}"`}return e}function se(r){return r.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/`/g,"&#x60;")}function ct(r){return String(new URLSearchParams(ft(r)))}function ft(r){let e={};for(let t in r){let n=r[t];n===!0||n===""?e[t]=1:n===!1?e[t]=0:n!=null&&(e[t]=n)}return e}function ht(r){let e={};for(let t of r)e[t.name]=t.value;return e}class Ae extends Promise{constructor(e=()=>{}){let t,n;super((i,o)=>{e(i,o),t=i,n=o}),this.resolve=t,this.reject=n}}function Ne(r,e){return Array.isArray(r)?le(r):r==null||e==null||r===0&&e===0?le([[0,0]]):le([[r,e]])}function le(r){return Object.defineProperties(r,{start:{value:e=>r[e][0]},end:{value:e=>r[e][1]}}),r}globalThis.customElements&&!globalThis.customElements.get("vimeo-video")&&globalThis.customElements.define("vimeo-video",Oe);var dt=Oe,pt=new Set(["style","children","ref","key","suppressContentEditableWarning","suppressHydrationWarning","dangerouslySetInnerHTML"]),vt={className:"class",htmlFor:"for"};function Re(r){return r.toLowerCase()}function je(r){if(typeof r=="boolean")return r?"":void 0;if(typeof r!="function"&&!(typeof r=="object"&&r!==null))return r}function mt({react:r,tagName:e,elementClass:t,events:n,displayName:i,defaultProps:o,toAttributeName:a=Re,toAttributeValue:s=je}){const f=Number.parseInt(r.version)>=19,u=r.forwardRef((k,E)=>{var T,P;const g=r.useRef(null),A=r.useRef(new Map),O={},R={},m={},p={};for(const[h,v]of Object.entries(k)){if(pt.has(h)){m[h]=v;continue}const b=a(vt[h]??h);if(t.prototype&&h in t.prototype&&!(h in(((T=globalThis.HTMLElement)==null?void 0:T.prototype)??{}))&&!((P=t.observedAttributes)!=null&&P.some(y=>y===b))){p[h]=v;continue}if(h.startsWith("on")){O[h]=v;continue}const C=s(v);if(b&&C!=null&&(R[b]=String(C),f||(m[b]=C)),b&&f){const y=je(v);C!==y?m[b]=C:m[b]=v}}if(typeof window<"u"){for(const h in O){const v=O[h],b=h.endsWith("Capture"),C=(n?.[h]??h.slice(2).toLowerCase()).slice(0,b?-7:void 0);r.useLayoutEffect(()=>{const y=g?.current;if(!(!y||typeof v!="function"))return y.addEventListener(C,v,b),()=>{y.removeEventListener(C,v,b)}},[g?.current,v])}r.useLayoutEffect(()=>{if(g.current===null)return;const h=new Map;for(const v in p)Le(g.current,v,p[v]),A.current.delete(v),h.set(v,p[v]);for(const[v,b]of A.current)Le(g.current,v,void 0);A.current=h})}if(typeof window>"u"&&t?.getTemplateHTML&&t?.shadowRootOptions){const{mode:h,delegatesFocus:v}=t.shadowRootOptions,b=r.createElement("template",{shadowrootmode:h,shadowrootdelegatesfocus:v,dangerouslySetInnerHTML:{__html:t.getTemplateHTML(R,k)}});m.children=[b,m.children]}return r.createElement(e,{...o,...m,ref:r.useCallback(h=>{g.current=h,typeof E=="function"?E(h):E!==null&&(E.current=h)},[E])})});return u.displayName=i??t.name,u}function Le(r,e,t){var n;r[e]=t,t==null&&e in(((n=globalThis.HTMLElement)==null?void 0:n.prototype)??{})&&r.removeAttribute(e)}var gt=mt({react:Ie,tagName:"vimeo-video",elementClass:dt,toAttributeName(r){return r==="muted"?"":r==="defaultMuted"?"muted":Re(r)}});/*! Bundled license information:
28
29ce-la-react/dist/ce-la-react.js:
30  (**
31   * @license
32   * Copyright 2018 Google LLC
33   * SPDX-License-Identifier: BSD-3-Clause
34   *
35   * Modified version of `@lit/react` for vanilla custom elements with support for SSR.
36   *)
37*/})}]);})();

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.