PageSourceSearch

https://www.buildersclubnorth.com/static/js/reactPlayerVimeo.c26861f9.chunk.js

js buildersclubnorth.com collected 2026-10-08 04:16:42 UTC 55,824 bytes, 3 lines download raw bytes

1/*! For license information please see reactPlayerVimeo.c26861f9.chunk.js.LICENSE.txt */
2"use strict";(self.webpackChunkbcn2020=self.webpackChunkbcn2020||[]).push([[3743],{27468:(e,t,n)=>{function r(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}n.d(t,{Z:()=>r})},90864:(e,t,n)=>{function r(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}n.d(t,{Z:()=>r})},60003:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(27468);function i(e,t){return e.get((0,r.Z)(e,t))}},72346:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(90864);function i(e,t,n){(0,r.Z)(e,t),t.set(e,n)}},15395:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(27468);function i(e,t,n){return e.set((0,r.Z)(e,t),n),n}},40101:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(90864);function i(e,t){(0,r.Z)(e,t),t.add(e)}},67438:(e,t,n)=>{n.d(t,{W:()=>o});var r=n(1413),i=n(4942);function o(e){return class extends e{constructor(){super(...arguments),(0,i.Z)(this,"_playedRanges",[]),(0,i.Z)(this,"_currentPlayedRange",null),(0,i.Z)(this,"_RANGE_EPSILON",.5),(0,i.Z)(this,"_seeking",!1)}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this.addEventListener("play",()=>this.onPlaybackStart({time:this.currentTime})),this.addEventListener("pause",()=>this.onPlaybackStop({time:this.currentTime})),this.addEventListener("ended",()=>this.onPlaybackStop({time:this.currentTime})),this.addEventListener("seeking",()=>this.onSeeking()),this.addEventListener("seeked",()=>this.onSeeked({time:this.currentTime}))}onPlaybackStart(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._seeking=!1;const t=e.time,n="number"===typeof t?t:this.currentTime;this._currentPlayedRange||(this._currentPlayedRange={start:n,end:n})}onSeeking(){this._seeking=!0,this._commitCurrentRange()}onSeeked(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._seeking=!1;const t=e.time,n="number"===typeof t?t:this.currentTime;this._currentPlayedRange={start:n,end:n}}onPlaybackStop(){const e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).time,t="number"===typeof e?e:this.currentTime;this._commitCurrentRange(t)}_commitCurrentRange(e){if(!this._currentPlayedRange)return;"number"===typeof e&&(this._currentPlayedRange.end=e);const t=this._currentPlayedRange,n=t.start,r=t.end;this._currentPlayedRange=null,this.addPlayedRange(n,r)}addPlayedRange(e,t){if(e>=t)return;const n=this._RANGE_EPSILON,i=[...this._playedRanges,{start:e,end:t}];i.sort((e,t)=>e.start-t.start);const o=[];for(const a of i){if(!o.length){o.push((0,r.Z)({},a));continue}const e=o[o.length-1];a.start<=e.end+n?(e.start=Math.min(e.start,a.start),e.end=Math.max(e.end,a.end)):o.push((0,r.Z)({},a))}this._playedRanges=o}get played(){const e=this.currentTime;return this.paused||this._currentPlayedRange||"number"!==typeof e||(this._currentPlayedRange={start:e,end:e}),this._currentPlayedRange&&"number"===typeof e&&(e>this._currentPlayedRange.end&&(this._currentPlayedRange.end=e),this.addPlayedRange(this._currentPlayedRange.start,this._currentPlayedRange.end)),this._playedRanges.length?a(this._playedRanges.map(e=>[e.start,e.end])):a([[0,0]])}}}function a(e){return Object.defineProperties(e,{start:{value:t=>e[t][0]},end:{value:t=>e[t][1]}}),e}},89614:(e,t,n)=>{n.r(t),n.d(t,{default:()=>De});var r=n(1413),i=n(29439),o=n(72791),a=n(40101),s=n(72346),u=n(4942),c=n(15395),l=n(60003),h=n(27468),d=n(67438);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach(function(t){k(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function v(){v=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(M){u=function(e,t,n){return e[t]=n}}function c(e,t,n,i){var o=t&&t.prototype instanceof d?t:d,a=Object.create(o.prototype),s=new Z(i||[]);return r(a,"_invoke",{value:E(e,n,s)}),a}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(M){return{type:"throw",arg:M}}}e.wrap=c;var h={};function d(){}function f(){}function p(){}var y={};u(y,o,function(){return this});
vendor: 4,918 bytes, line 2
2var m=Object.getPrototypeOf,g=m&&m(m(_([])));g&&g!==t&&n.call(g,o)&&(y=g);var w=p.prototype=d.prototype=Object.create(y);function b(e){["next","throw","return"].forEach(function(t){u(e,t,function(e){return this._invoke(t,e)})})}function k(e,t){function i(r,o,a,s){var u=l(e[r],e,o);if("throw"!==u.type){var c=u.arg,h=c.value;return h&&"object"==typeof h&&n.call(h,"__await")?t.resolve(h.__await).then(function(e){i("next",e,a,s)},function(e){i("throw",e,a,s)}):t.resolve(h).then(function(e){c.value=e,a(c)},function(e){return i("throw",e,a,s)})}s(u.arg)}var o;r(this,"_invoke",{value:function(e,n){function r(){return new t(function(t,r){i(e,n,t,r)})}return o=o?o.then(r,r):r()}})}function E(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return j()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=P(a,n);if(s){if(s===h)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=l(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function P(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,P(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var i=l(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,h;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,h):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function Z(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function _(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:j}}function j(){return{value:void 0,done:!0}}return f.prototype=p,r(w,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:f,configurable:!0}),f.displayName=u(p,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,u(e,s,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},b(k.prototype),u(k.prototype,a,function(){return this}),e.AsyncIterator=k,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new k(c(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then(function(e){return e.done?e.value:a.next()})},b(w),u(w,s,"Generator"),u(w,o,function(){return this}),u(w,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=_,Z.prototype={constructor:Z,reset:function(e){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(x),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);
2var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,h):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),x(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;x(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:_(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},e}function y(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(c){return void n(c)}s.done?t(u):Promise.resolve(u).then(r,i)}function m(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(e){y(o,r,i,a,s,"next",e)}function s(e){y(o,r,i,a,s,"throw",e)}a(void 0)})}}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,M(r.key),r)}}function b(e,t,n){return t&&w(e.prototype,t),n&&w(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function k(e,t,n){return(t=M(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},E(e)}function P(e,t){return P=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},P(e,t)}function T(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function x(e,t,n){return x=T()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&P(i,n.prototype),i},x.apply(null,arguments)}function Z(e){var t="function"===typeof Map?new Map:void 0;return Z=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return x(e,arguments,E(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),P(r,e)},Z(e)}function _(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function j(e){var t=T();return function(){var n,r=E(e);if(t){var i=E(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===typeof t||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _(e)}(this,n)}}function M(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}var O="undefined"!==typeof n.g&&"[object global]"==={}.toString.call(n.g);function C(e,t){return 0===e.indexOf(t.toLowerCase())?e:"".concat(t.toLowerCase()).concat(e.substr(0,1).toUpperCase()).concat(e.substr(1))}function R(e){return/^(https?:)?\/\/((((player|www)\.)?vimeo\.com)|((player\.)?[a-zA-Z0-9-]+\.(videoji\.(hk|cn)|vimeo\.work)))(?=$|\/)/.test(e)}function S(e){return/^https:\/\/player\.((vimeo\.com)|([a-zA-Z0-9-]+\.(videoji\.(hk|cn)|vimeo\.work)))\/video\/\d+/.test(e)}function N(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.id,r=t.url,i=n||r;if(!i)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(e=i,!isNaN(parseFloat(e))&&isFinite(e)&&Math.floor(e)==e)return"https://vimeo.com/".concat(i);if(R(i))return i.replace("http:","https:");if(n)throw new TypeError("\u201c".concat(n,"\u201d is not a valid video id."));throw new TypeError("\u201c".concat(i,"\u201d is not a vimeo.com url."))}var A=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"addEventListener",i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"removeEventListener",o="str
2ing"===typeof t?[t]:t;return o.forEach(function(t){e[r](t,n)}),{cancel:function(){return o.forEach(function(t){return e[i](t,n)})}}},L="undefined"!==typeof Array.prototype.indexOf,F="undefined"!==typeof window&&"undefined"!==typeof window.postMessage;if(!O&&(!L||!F))throw new Error("Sorry, the Vimeo Player API is not available in this browser.");var I="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:"undefined"!==typeof self?self:{};!function(e){if(!e.WeakMap){var t=Object.prototype.hasOwnProperty,n=Object.defineProperty&&function(){try{return 1===Object.defineProperty({},"x",{value:1}).x}catch(e){}}(),r=function(e,t,r){n?Object.defineProperty(e,t,{configurable:!0,writable:!0,value:r}):e[t]=r};e.WeakMap=function(){function e(){if(void 0===this)throw new TypeError("Constructor WeakMap requires 'new'");if(r(this,"_id","_WeakMap"+"_"+o()+"."+o()),arguments.length>0)throw new TypeError("WeakMap iterable is not supported")}function n(e,n){if(!i(e)||!t.call(e,"_id"))throw new TypeError(n+" method called on incompatible receiver "+typeof e)}function o(){return Math.random().toString().substring(2)}return r(e.prototype,"delete",function(e){if(n(this,"delete"),!i(e))return!1;var t=e[this._id];return!(!t||t[0]!==e)&&(delete e[this._id],!0)}),r(e.prototype,"get",function(e){if(n(this,"get"),i(e)){var t=e[this._id];return t&&t[0]===e?t[1]:void 0}}),r(e.prototype,"has",function(e){if(n(this,"has"),!i(e))return!1;var t=e[this._id];return!(!t||t[0]!==e)}),r(e.prototype,"set",function(e,t){if(n(this,"set"),!i(e))throw new TypeError("Invalid value used as weak map key");var o=e[this._id];return o&&o[0]===e?(o[1]=t,this):(r(e,this._id,[e,t]),this)}),r(e,"_polyfill",!0),e}()}function i(e){return Object(e)===e}}("undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:I);var W,q,V=(W=function(e){var t,n,r;r=function(){var e,t,n,r=Object.prototype.toString,i="undefined"!=typeof setImmediate?function(e){return setImmediate(e)}:setTimeout;try{Object.defineProperty({},"x",{}),e=function(e,t,n,r){return Object.defineProperty(e,t,{value:n,writable:!0,configurable:!1!==r})}}catch(y){e=function(e,t,n){return e[t]=n,e}}function o(e,r){n.add(e,r),t||(t=i(n.drain))}function a(e){var t,n=typeof e;return null==e||"object"!=n&&"function"!=n||(t=e.then),"function"==typeof t&&t}function s(){for(var e=0;e<this.chain.length;e++)u(this,1===this.state?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function u(e,t,n){var r,i;try{!1===t?n.reject(e.msg):(r=!0===t?e.msg:t.call(void 0,e.msg))===n.promise?n.reject(TypeError("Promise-chain cycle")):(i=a(r))?i.call(r,n.resolve,n.reject):n.resolve(r)}catch(y){n.reject(y)}}function c(e){var t,n=this;if(!n.triggered){n.triggered=!0,n.def&&(n=n.def);try{(t=a(e))?o(function(){var r=new d(n);try{t.call(e,function(){c.apply(r,arguments)},function(){l.apply(r,arguments)})}catch(y){l.call(r,y)}}):(n.msg=e,n.state=1,n.chain.length>0&&o(s,n))}catch(y){l.call(new d(n),y)}}}function l(e){var t=this;t.triggered||(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&o(s,t))}function h(e,t,n,r){for(var i=0;i<t.length;i++)(function(i){e.resolve(t[i]).then(function(e){n(i,e)},r)})(i)}function d(e){this.def=e,this.triggered=!1}function f(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function p(e){if("function"!=typeof e)throw TypeError("Not a function");if(0!==this.__NPO__)throw TypeError("Not a promise");this.__NPO__=1;var t=new f(this);this.then=function(e,n){var r={success:"function"!=typeof e||e,failure:"function"==typeof n&&n};return r.promise=new this.constructor(function(e,t){if("function"!=typeof e||"function"!=typeof t)throw TypeError("Not a function");r.resolve=e,r.reject=t}),t.chain.push(r),0!==t.state&&o(s,t),r.promise},this.catch=function(e){return this.then(void 0,e)};try{e.call(void 0,function(e){c.call(t,e)},function(e){l.call(t,e)})}catch(y){l.call(t,y)}}n=function(){var e,n,r;function i(e,t){this.fn=e,this.self=t,this.next=void 0}return{add:function(t,o){r=new i(t,o),n?n.next=r:e=r,n=r,r=void 0},drain:function(){var r=e;for(e=n=t=void 0;r;)r.fn.call(r.self),r=r.next}}}();var v=e({},"constructor",p,!1);return p.prototype=v,e(v,"__NPO__",0,!1),e(p,"resolve",function(e){return e&&"object"==typeof e&&1===e.__NPO__?e:new this(function(t,n){if("function"!=typeof t||"function"!=typeof n)throw TypeError("Not a function");t(e)})}),e(p,"reject",function(e){return new this(function(t,n){if("function"!=typeof t||"function"!=typeof n)throw TypeError("Not a function");n(e)})}),e(p,"all",function(e){var t=this;return"[object Array]"!=r.call(e)?t.reject(TypeError("Not an array")):0===e.length?t.resolve([]):new t(function(n,r){if("function"!=typeof n||"function"!=typeof r)throw TypeError("Not a function");var i=e.length,o=Array(i),a=0;h(t,e,function(e,t){o[e]=t,++a===i&&n(o)},r)})}),e(p,"race",function(e){var t=this;return"[object Array]"!=r.call(e)?t.reject(TypeError("Not an array")):new t(function(n,r){if("function"!=typeof n||"function"!=typeof r)throw TypeError("Not a function");h(t,e,function(e,t){n(t)},r)})}),p},(n=I)[t="Promise"]=n[t]||r(),e.exports&&(e.exports=n[t])},W(q={exports:{}},q.exports),q.exports),D=new WeakMap;function H(e,t,n){var r=D.get(e.element)||{};t in r||(r[t]=[]),r[t].push(n),D.set(e.element,r)}function z(e,t){return(D.get(e.element)||{})[t]||[]}function B(e,t,n){var r=D.get(e.element)||{};if(!r[t])return!0;
2if(!n)return r[t]=[],D.set(e.element,r),!0;var i=r[t].indexOf(n);return-1!==i&&r[t].splice(i,1),D.set(e.element,r),r[t]&&0===r[t].length}function U(e){if("string"===typeof e)try{e=JSON.parse(e)}catch(t){return console.warn(t),{}}return e}function G(e,t,n){if(e.element.contentWindow&&e.element.contentWindow.postMessage){var r={method:t};void 0!==n&&(r.value=n);var i=parseFloat(navigator.userAgent.toLowerCase().replace(/^.*msie (\d+).*$/,"$1"));i>=8&&i<10&&(r=JSON.stringify(r)),e.element.contentWindow.postMessage(r,e.origin)}}function Y(e,t){var n,r=[];if((t=U(t)).event){if("error"===t.event)z(e,t.data.method).forEach(function(n){var r=new Error(t.data.message);r.name=t.data.name,n.reject(r),B(e,t.data.method,n)});r=z(e,"event:".concat(t.event)),n=t.data}else if(t.method){var i=function(e,t){var n=z(e,t);if(n.length<1)return!1;var r=n.shift();return B(e,t,r),r}(e,t.method);i&&(r.push(i),n=t.value)}r.forEach(function(t){try{if("function"===typeof t)return void t.call(e,n);t.resolve(n)}catch(r){}})}var J=["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 Q(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return J.reduce(function(t,n){var r=e.getAttribute("data-vimeo-".concat(n));return(r||""===r)&&(t[n]=""===r?1:r),t},t)}function X(e,t){var n=e.html;if(!t)throw new TypeError("An element must be provided");if(null!==t.getAttribute("data-vimeo-initialized"))return t.querySelector("iframe");var r=document.createElement("div");return r.innerHTML=n,t.appendChild(r.firstChild),t.setAttribute("data-vimeo-initialized","true"),t.querySelector("iframe")}function $(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return new Promise(function(r,i){if(!R(e))throw new TypeError("\u201c".concat(e,"\u201d is not a vimeo.com url."));var o=function(e){for(var t=(e||"").match(/^(?:https?:)?(?:\/\/)?([^/?]+)/),n=(t&&t[1]||"").replace("player.",""),r=0,i=[".videoji.hk",".vimeo.work",".videoji.cn"];r<i.length;r++){var o=i[r];if(n.endsWith(o))return n}return"vimeo.com"}(e),a="https://".concat(o,"/api/oembed.json?url=").concat(encodeURIComponent(e));for(var s in t)t.hasOwnProperty(s)&&(a+="&".concat(s,"=").concat(encodeURIComponent(t[s])));var u="XDomainRequest"in window?new XDomainRequest:new XMLHttpRequest;u.open("GET",a,!0),u.onload=function(){if(404!==u.status)if(403!==u.status)try{var t=JSON.parse(u.responseText);if(403===t.domain_status_code)return X(t,n),void i(new Error("\u201c".concat(e,"\u201d is not embeddable.")));r(t)}catch(o){i(o)}else i(new Error("\u201c".concat(e,"\u201d is not embeddable.")));else i(new Error("\u201c".concat(e,"\u201d was not found.")))},u.onerror=function(){var e=u.status?" (".concat(u.status,")"):"";i(new Error("There was an error fetching the embed code from Vimeo".concat(e,".")))},u.send()})}var K={role:"viewer",autoPlayMuted:!0,allowedDrift:.3,maxAllowedDrift:1,minCheckInterval:.1,maxRateAdjustment:.2,maxTimeToCatchUp:1},ee=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&P(e,t)}(n,e);var t=j(n);function n(e,r){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0;return g(this,n),k(_(i=t.call(this)),"logger",void 0),k(_(i),"speedAdjustment",0),k(_(i),"adjustSpeed",function(){var e=m(v().mark(function e(t,n){var r;return v().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(i.speedAdjustment!==n){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,t.getPlaybackRate();case 4:return e.t0=e.sent,e.t1=i.speedAdjustment,e.t2=e.t0-e.t1,e.t3=n,r=e.t2+e.t3,i.log("New playbackRate:  ".concat(r)),e.next=12,t.setPlaybackRate(r);case 12:i.speedAdjustment=n;case 13:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}()),i.logger=a,i.init(r,e,p(p({},K),o)),i}return b(n,[{key:"disconnect",value:function(){this.dispatchEvent(new Event("disconnect"))}},{key:"init",value:function(){var e=m(v().mark(function e(t,n,r){var i,o,a,s=this;return v().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.waitForTOReadyState(t,"open");case 2:if("viewer"!==r.role){e.next=10;break}return e.next=5,this.updatePlayer(t,n,r);case 5:i=A(t,"change",function(){return s.updatePlayer(t,n,r)}),o=this.maintainPlaybackPosition(t,n,r),this.addEventListener("disconnect",function(){o.cancel(),i.cancel()}),e.next=14;break;case 10:return e.next=12,this.updateTimingObject(t,n);case 12:a=A(n,["seeked","play","pause","ratechange"],function(){return s.updateTimingObject(t,n)},"on","off"),this.addEventListener("disconnect",function(){return a.cancel()});case 14:case"end":return e.stop()}},e,this)}));return function(t,n,r){return e.apply(this,arguments)}}()},{key:"updateTimingObject",value:function(){var e=m(v().mark(function e(t,n){return v().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=t,e.next=3,n.getCurrentTime();case 3:return e.t1=e.sent,e.next=6,n.getPaused();case 6:if(!e.sent){e.next=10;break}e.t2=0,e.next=13;break;case 10:return e.next=12,n.getPlaybackRate();case 12:e.t2=e.sent;case 13:e.t3=e.t2,e.t4={position:e.t1,velocity:e.t3},e.t0.update.call(e.t0,e.t4);case 16:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}()},{key:"updatePlayer",value:function(){var e=m(v().mark(function e(t,n,r){var i,o,a;return v().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(i=t.query(),o=i.position,a=i.velocity,"number"===typeof o&&n.setCurrentTime(o),"number"!==typeof a){e.next=25;break}if(0!==a){e.next=11;break}return e.next=6,n.getPaused();case 6:if(e.t0=e.sent,!1!==e.t0){e.next=9;break}n.pause();case 9:e.next=25;break;case 11:if(!(a>0)){e.next=25;break}return e.next=14,n.getPaused();case 14:if(e.t1=e.sent,!0!==e.t1){e.next=19;break}return e.next=18,n.play().catch(function(){var e=m(v().mark(function e(t){return v().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if("NotAllowedError"!==t.name||!r.autoPlayMuted){e.next=5;break}return e.next=3,n.setMuted(!0);case 3:return e.next=5,n.play().catch(function(e){return console.error("Couldn't play the video from TimingSrcConnector. Error:",e)});case 5:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}());case 18:this.updatePlayer(t,n,r);case 19:return e.next=21,n.getPlaybackRate();case 21:if(e.t2=e.sent,e.t3=a,e.t2===e.t3){e.next=25;break}n.setPlaybackRate(a);case 25:case"end":return e.stop()}},e,this)}));return function(t,n,r){return e.apply(this,arguments)}}()},{key:"maintainPlaybackPosition",value:function(e,t,n){var r=this,i=n.allowedDrift,o=n.maxAllowedDrift,a=n.minCheckInterval,s=n.maxRateAdjustment,u=n.maxTimeToCatchUp,c=1e3*Math.min(u,Math.max(a,o)),l=function(){var n=m(v().mark(function n(){var a,c,l,h,d;return v().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(n.t0=0===e.query().velocity,n.t0){n.next=6;break}return n.next=4,t.getPaused();case 4:n.t1=n.sent,n.t0=!0===n.t1;case 6:if(!n.t0){n.next=8;break}return n.abrupt("return");case 8:return n.t2=e.query().position,n.next=11,t.getCurrentTime();case 11:if(n.t3=n.sent,a=n.t2-n.t3,c=Math.abs(a),r.log("Drift: ".concat(a)),!(c>o)){n.next=22;break}return n.next=18,r.adjustSpeed(t,0);case 18:t.setCurrentTime(e.query().position),r.log("Resync by currentTime"),n.next=29;break;case 22:if(!(c>i)){n.next=29;break}return d=(l=c/u)<(h=s)?(h-l)/2:h,n.next=28,r.adjustSpeed(t,d*Math.sign(a));case 28:r.log("Resync by playbackRate");case 29:case"end":return n.stop()}},n)}));return function(){return n.apply(this,arguments)}}(),h=setInterval(function(){return l()},c);return{cancel:function(){return clearInterval(h)}}}},{key:"log",value:function(e){var t;null===(t=this.logger)||void 0===t||t.call(this,"TimingSrcConnector: ".concat(e))}},{key:"waitForTOReadyState",value:function(e,t){return new Promise(function(n){!function r(){e.readyState===t?n():e.addEventListener("readystatechange",r,{once:!0})}()})}}]),n}(Z(EventTarget)),te=new WeakMap,ne=new WeakMap,re={},ie=function(){function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(g(this,e),window.jQuery&&t instanceof jQuery&&(t.length>1&&window.console&&console.warn&&console.warn("A jQuery object with multiple elements was passed, using the first element."),t=t[0]),"undefined"!==typeof document&&"string"===typeof t&&(t=document.getElementById(t)),!function(e){return Boolean(e&&1===e.nodeType&&"nodeName"in e&&e.ownerDocument&&e.ownerDocument.defaultView)}(t))throw new TypeError("You must pass either a valid element or a valid id.");
2if("IFRAME"!==t.nodeName){var i=t.querySelector("iframe");i&&(t=i)}if("IFRAME"===t.nodeName&&!R(t.getAttribute("src")||""))throw new Error("The player element passed isn\u2019t a Vimeo embed.");if(te.has(t))return te.get(t);this._window=t.ownerDocument.defaultView,this.element=t,this.origin="*";var o=new V(function(e,i){if(n._onMessage=function(t){if(R(t.origin)&&n.element.contentWindow===t.source){"*"===n.origin&&(n.origin=t.origin);var r=U(t.data);if(r&&"error"===r.event&&r.data&&"ready"===r.data.method){var o=new Error(r.data.message);return o.name=r.data.name,void i(o)}var a=r&&"ready"===r.event,s=r&&"ping"===r.method;if(a||s)return n.element.setAttribute("data-ready","true"),void e();Y(n,r)}},n._window.addEventListener("message",n._onMessage),"IFRAME"!==n.element.nodeName){var o=Q(t,r);$(N(o),o,t).then(function(e){var r=X(e,t);return n.element=r,n._originalElement=t,function(e,t){var n=D.get(e);D.set(t,n),D.delete(e)}(t,r),te.set(n.element,n),e}).catch(i)}});if(ne.set(this,o),te.set(this.element,this),"IFRAME"===this.element.nodeName&&G(this,"ping"),re.isEnabled){var a=function(){return re.exit()};this.fullscreenchangeHandler=function(){re.isFullscreen?H(n,"event:exitFullscreen",a):B(n,"event:exitFullscreen",a),n.ready().then(function(){G(n,"fullscreenchange",re.isFullscreen)})},re.on("fullscreenchange",this.fullscreenchangeHandler)}return this}return b(e,[{key:"callMethod",value:function(e){for(var t=this,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];if(void 0===e||null===e)throw new TypeError("You must pass a method name.");return new V(function(n,i){return t.ready().then(function(){H(t,e,{resolve:n,reject:i}),G(t,e,r)}).catch(i)})}},{key:"get",value:function(e){var t=this;return new V(function(n,r){return e=C(e,"get"),t.ready().then(function(){H(t,e,{resolve:n,reject:r}),G(t,e)}).catch(r)})}},{key:"set",value:function(e,t){var n=this;return new V(function(r,i){if(e=C(e,"set"),void 0===t||null===t)throw new TypeError("There must be a value to set.");return n.ready().then(function(){H(n,e,{resolve:r,reject:i}),G(n,e,t)}).catch(i)})}},{key:"on",value:function(e,t){if(!e)throw new TypeError("You must pass an event name.");if(!t)throw new TypeError("You must pass a callback function.");if("function"!==typeof t)throw new TypeError("The callback must be a function.");0===z(this,"event:".concat(e)).length&&this.callMethod("addEventListener",e).catch(function(){}),H(this,"event:".concat(e),t)}},{key:"off",value:function(e,t){if(!e)throw new TypeError("You must pass an event name.");if(t&&"function"!==typeof t)throw new TypeError("The callback must be a function.");B(this,"event:".concat(e),t)&&this.callMethod("removeEventListener",e).catch(function(e){})}},{key:"loadVideo",value:function(e){return this.callMethod("loadVideo",e)}},{key:"ready",value:function(){var e=ne.get(this)||new V(function(e,t){t(new Error("Unknown player. Probably unloaded."))});return V.resolve(e)}},{key:"addCuePoint",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.callMethod("addCuePoint",{time:e,data:t})}},{key:"removeCuePoint",value:function(e){return this.callMethod("removeCuePoint",e)}},{key:"enableTextTrack",value:function(e,t){if(!e)throw new TypeError("You must pass a language.");return this.callMethod("enableTextTrack",{language:e,kind:t})}},{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 re.isEnabled?re.request(this.element):this.callMethod("requestFullscreen")}},{key:"exitFullscreen",value:function(){return re.isEnabled?re.exit():this.callMethod("exitFullscreen")}},{key:"getFullscreen",value:function(){return re.isEnabled?V.resolve(re.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 e=this;return new V(function(t){if(ne.delete(e),te.delete(e.element),e._originalElement&&(te.delete(e._originalElement),e._originalElement.removeAttribute("data-vimeo-initialized")),e.element&&"IFRAME"===e.element.nodeName&&e.element.parentNode&&(e.element.parentNode.parentNode&&e._originalElement&&e._originalElement!==e.element.parentNode?e.element.parentNode.parentNode.removeChild(e.element.parentNode):e.element.parentNode.removeChild(e.element)),e.element&&"DIV"===e.element.nodeName&&e.element.parentNode){e.element.removeAttribute("data-vimeo-initialized");var n=e.element.querySelector("iframe");n&&n.parentNode&&(n.parentNode.parentNode&&e._originalElement&&e._originalElement!==n.parentNode?n.parentNode.parentNode.removeChild(n.parentNode):n.parentNode.removeChild(n))}e._window.removeEventListener("message",e._onMessage),re.isEnabled&&re.off("fullscreenchange",e.fullscreenchangeHandler),t()})}},{key:"getAutopause",value:function(){return this.get("autopause")}},{key:"setAutopause",value:function(e){return this.set("autopause",e)}},{key:"getBuffered",value:function(){return this.get("buffered")}},{key:"getCameraProps",value:function(){return this.get("cameraProps")}},{key:"setCameraProps",value:function(e){return this.set("cameraProps",e)}},{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(e){return this.set("color",e)}},{key:"setColors",value:function(e){if(!Array.isArray(e))return new V(function(e,t){return t(new TypeError("Argument must be an array."))});var t=new V(function(e){return e(null)}),n=[e[0]?this.set("colorOne",e[0]):t,e[1]?this.set("colorTwo",e[1]):t,e[2]?this.set("colorThree",e[2]):t,e[3]?this.set("colorFour",e[3]):t];return V.all(n)}},{key:"getCuePoints",value:function(){return this.get("cuePoints")}},{key:"getCurrentTime",value:function(){return this.get("currentTime")}},{key:"setCurrentTime",value:function(e){return this.set("currentTime",e)}
2},{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(e){return this.set("loop",e)}},{key:"setMuted",value:function(e){return this.set("muted",e)}},{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(e){return this.set("playbackRate",e)}},{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(e){return this.set("quality",e)}},{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(e){return this.set("volume",e)}},{key:"setTimingSrc",value:function(){var e=m(v().mark(function e(t,n){var r,i=this;return v().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}throw new TypeError("A Timing Object must be provided.");case 2:return e.next=4,this.ready();case 4:return r=new ee(this,t,n),G(this,"notifyTimingObjectConnect"),r.addEventListener("disconnect",function(){return G(i,"notifyTimingObjectDisconnect")}),e.abrupt("return",r);case 8:case"end":return e.stop()}},e,this)}));return function(t,n){return e.apply(this,arguments)}}()}]),e}();O||(re=function(){var e=function(){for(var e,t=[["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"]],n=0,r=t.length,i={};n<r;n++)if((e=t[n])&&e[1]in document){for(n=0;n<e.length;n++)i[t[0][n]]=e[n];return i}return!1}(),t={fullscreenchange:e.fullscreenchange,fullscreenerror:e.fullscreenerror},n={request:function(t){return new Promise(function(r,i){var o=function e(){n.off("fullscreenchange",e),r()};n.on("fullscreenchange",o);var a=(t=t||document.documentElement)[e.requestFullscreen]();a instanceof Promise&&a.then(o).catch(i)})},exit:function(){return new Promise(function(t,r){if(n.isFullscreen){var i=function e(){n.off("fullscreenchange",e),t()};n.on("fullscreenchange",i);var o=document[e.exitFullscreen]();o instanceof Promise&&o.then(i).catch(r)}else t()})},on:function(e,n){var r=t[e];r&&document.addEventListener(r,n)},off:function(e,n){var r=t[e];r&&document.removeEventListener(r,n)}};return Object.defineProperties(n,{isFullscreen:{get:function(){return Boolean(document[e.fullscreenElement])}},element:{enumerable:!0,get:function(){return document[e.fullscreenElement]}},isEnabled:{enumerable:!0,get:function(){return Boolean(document[e.fullscreenEnabled])}}}),n}(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,t=[].slice.call(e.querySelectorAll("[data-vimeo-id], [data-vimeo-url]")),n=function(e){"console"in window&&console.error&&console.error("There was an error creating an embed: ".concat(e))};t.forEach(function(e){try{if(null!==e.getAttribute("data-vimeo-defer"))return;var t=Q(e);$(N(t),t,e).then(function(t){return X(t,e)}).catch(n)}catch(r){n(r)}})}(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;window.VimeoPlayerResizeEmbeds_||(window.VimeoPlayerResizeEmbeds_=!0,window.addEventListener("message",function(t){if(R(t.origin)&&t.data&&"spacechange"===t.data.event)for(var n=e.querySelectorAll("iframe"),r=0;r<n.length;r++)if(n[r].contentWindow===t.source){n[r].parentElement.style.paddingBottom="".concat(t.data.data[0].bottom,"px");break}}
2))}(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;window.VimeoSeoMetadataAppended||(window.VimeoSeoMetadataAppended=!0,window.addEventListener("message",function(t){if(R(t.origin)){var n=U(t.data);if(n&&"ready"===n.event)for(var r=e.querySelectorAll("iframe"),i=0;i<r.length;i++){var o=r[i],a=o.contentWindow===t.source;S(o.src)&&a&&new ie(o).callMethod("appendVideoMetadata",window.location.href)}}}))}(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;if(!window.VimeoCheckedUrlTimeParam){window.VimeoCheckedUrlTimeParam=!0;var t=function(e){"console"in window&&console.error&&console.error("There was an error getting video Id: ".concat(e))};window.addEventListener("message",function(n){if(R(n.origin)){var r=U(n.data);if(r&&"ready"===r.event)for(var i=e.querySelectorAll("iframe"),o=function(){var e=i[a],r=e.contentWindow===n.source;if(S(e.src)&&r){var o=new ie(e);o.getVideoId().then(function(e){var t=new RegExp("[?&]vimeo_t_".concat(e,"=([^&#]*)")).exec(window.location.href);if(t&&t[1]){var n=decodeURI(t[1]);o.setCurrentTime(n)}}).catch(t)}},a=0;a<i.length;a++)o()}})}}());const oe=ie;var ae;const se=/vimeo\.com\/(video\/|event\/)?(\d+)(?:\/([\w-]+))?/;function ue(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var n;const r={src:ce(e,t),frameborder:0,width:"100%",height:"100%",allow:"accelerometer; fullscreen; autoplay; encrypted-media; gyroscope; picture-in-picture"};return t.config&&(r["data-config"]=JSON.stringify(t.config)),(null==(n=t.config)?void 0:n.referrerpolicy)&&(r.referrerpolicy=t.config.referrerpolicy),"\n    <style>\n      :host {\n        display: inline-block;\n        min-width: 300px;\n        min-height: 150px;\n        position: relative;\n      }\n      iframe {\n        position: absolute;\n        top: 0;\n        left: 0;\n      }\n      :host(:not([controls])) {\n        pointer-events: none;\n      }\n    </style>\n    <iframe".concat(function(e){let t="";for(const n in e){const r=e[n];t+=""===r?" ".concat(Ce(n)):" ".concat(Ce(n),'="').concat(Ce("".concat(r)),'"')}return t}(r),"></iframe>\n  ")}function ce(e,t){var n;if(!e.src)return;let i=new URL(e.src);const o=e.src.match(se),a=null==o?void 0:o[1],s=null==o?void 0:o[2],u=i.searchParams.get("h")||(null==o?void 0:o[3]),c=(0,r.Z)({controls:""===e.controls?null:0,autoplay:e.autoplay,loop:e.loop,muted:e.muted,playsinline:e.playsinline,preload:null!==(n=e.preload)&&void 0!==n?n:"metadata",transparent:!1,autopause:e.autopause,h:u},t.config);if("event/"===a){const e=u?"/".concat(u):"";return delete c.h,"".concat("https://vimeo.com/event","/").concat(s,"/embed").concat(e,"?").concat(Re(c))}return"".concat("https://player.vimeo.com/video","/").concat(s,"?").concat(Re(c))}var le=new WeakMap,he=new WeakMap,de=new WeakMap,fe=new WeakMap,pe=new WeakMap,ve=new WeakMap,ye=new WeakMap,me=new WeakMap,ge=new WeakMap,we=new WeakMap,be=new WeakMap,ke=new WeakMap,Ee=new WeakMap,Pe=new WeakMap,Te=new WeakMap,xe=new WeakMap,Ze=new WeakMap,_e=new WeakSet;class je extends((0,d.W)(null!==(ae=globalThis.HTMLElement)&&void 0!==ae?ae:class{})){constructor(){super(),(0,a.Z)(this,_e),(0,u.Z)(this,"loadComplete",new Se),(0,s.Z)(this,le,void 0),(0,s.Z)(this,he,void 0),(0,s.Z)(this,de,void 0),(0,s.Z)(this,fe,0),(0,s.Z)(this,pe,NaN),(0,s.Z)(this,ve,!1),(0,s.Z)(this,ye,!this.autoplay),(0,s.Z)(this,me,1),(0,s.Z)(this,ge,0),(0,s.Z)(this,we,0),(0,s.Z)(this,be,!1),(0,s.Z)(this,ke,1),(0,s.Z)(this,Ee,NaN),(0,s.Z)(this,Pe,NaN),(0,s.Z)(this,Te,null),(0,s.Z)(this,xe,!1),(0,s.Z)(this,Ze,async()=>{(0,c.Z)(we,this,1),this.dispatchEvent(new Event("loadedmetadata")),this.api&&((0,c.Z)(ve,this,await this.api.getMuted()),(0,c.Z)(ke,this,await this.api.getVolume()),this.dispatchEvent(new Event("volumechange")),(0,c.Z)(pe,this,await this.api.getDuration()),this.dispatchEvent(new Event("durationchange"))),this.dispatchEvent(new Event("loadcomplete")),this.loadComplete.resolve()}),(0,h.Z)(_e,this,Oe).call(this,"config")}requestFullscreen(){var e,t;return null==(t=null==(e=this.api)?void 0:e.requestFullscreen)?void 0:t.call(e)}exitFullscreen(){var e,t;return null==(t=null==(e=this.api)?void 0:e.exitFullscreen)?void 0:t.call(e)}requestPictureInPicture(){var e,t;return null==(t=null==(e=this.api)?void 0:e.requestPictureInPicture)?void 0:t.call(e)}exitPictureInPicture(){var e,t;return null==(t=null==(e=this.api)?void 0:e.exitPictureInPicture)?void 0:t.call(e)}get config(){return(0,l.Z)(Te,this)}set config(e){JSON.stringify((0,l.Z)(Te,this))!==JSON.stringify(e)&&((0,c.Z)(Te,this,e),this.load())}async load(){var e,t;if((0,l.Z)(le,this))return;await(0,c.Z)(le,this,Promise.resolve()),(0,c.Z)(le,this,null),(0,c.Z)(fe,this,0),(0,c.Z)(pe,this,NaN),(0,c.Z)(ve,this,!1),(0,c.Z)(ye,this,!this.autoplay),(0,c.Z)(me,this,1),(0,c.Z)(ge,this,0),(0,c.Z)(we,this,0),(0,c.Z)(be,this,
2!1),(0,c.Z)(ke,this,1),(0,c.Z)(we,this,0),(0,c.Z)(Ee,this,NaN),(0,c.Z)(Pe,this,NaN),this.dispatchEvent(new Event("emptied"));let n=this.api;if(this.api=null,!this.src)return;(0,l.Z)(he,this)&&(this.loadComplete=new Se),(0,c.Z)(he,this,!0),this.dispatchEvent(new Event("loadstart"));const i=(0,r.Z)({autoplay:this.autoplay,controls:this.controls,loop:this.loop,muted:this.defaultMuted,playsinline:this.playsInline,preload:null!==(e=this.preload)&&void 0!==e?e:"metadata",transparent:!1,autopause:this.hasAttribute("autopause")},(0,l.Z)(Te,this));if((0,l.Z)(de,this))return this.api=n,await this.api.loadVideo((0,r.Z)((0,r.Z)({},i),{},{url:this.src})),await(0,l.Z)(Ze,this).call(this),void await this.loadComplete;(0,c.Z)(de,this,!0),this.shadowRoot||this.attachShadow({mode:"open"});const o=this.shadowRoot.querySelector("iframe");o&&!(0,l.Z)(xe,this)?(0,l.Z)(Te,this)||(0,c.Z)(Te,this,JSON.parse(o.getAttribute("data-config")||"{}")):this.shadowRoot.innerHTML=ue(function(e){let t={};for(let n of e)t[n.name]=n.value;return t}(this.attributes),this),(0,c.Z)(xe,this,!1),null==(t=null==n?void 0:n.destroy)||t.call(n);const a=this.shadowRoot.querySelector("iframe");this.api=new oe(a),(0,h.Z)(_e,this,Me).call(this),await this.loadComplete}connectedCallback(){var e;(0,l.Z)(xe,this)&&this.load(),null==(e=super.connectedCallback)||e.call(this)}disconnectedCallback(){var e,t,n;(0,c.Z)(xe,this,!0),(0,c.Z)(le,this,null),(0,c.Z)(he,this,null),(0,c.Z)(de,this,null),this.loadComplete=new Se,null==(t=null==(e=this.api)?void 0:e.destroy)||t.call(e),this.api=null,null==(n=super.disconnectedCallback)||n.call(this)}async attributeChangedCallback(e,t,n){if(t!==n){switch(e){case"autoplay":case"controls":case"src":return void this.load()}if(await this.loadComplete,"loop"===e)this.api.setLoop(this.loop)}}async play(){var e;(0,c.Z)(ye,this,!1),this.dispatchEvent(new Event("play")),await this.loadComplete;try{await(null==(e=this.api)?void 0:e.play())}catch(t){throw(0,c.Z)(ye,this,!0),this.dispatchEvent(new Event("pause")),t}}async pause(){var e;return await this.loadComplete,null==(e=this.api)?void 0:e.pause()}get ended(){return(0,l.Z)(fe,this)>=(0,l.Z)(pe,this)}get seeking(){return(0,l.Z)(be,this)}get readyState(){return(0,l.Z)(we,this)}get videoWidth(){return(0,l.Z)(Ee,this)}get videoHeight(){return(0,l.Z)(Pe,this)}get src(){return this.getAttribute("src")}set src(e){this.src!=e&&this.setAttribute("src",e)}get paused(){return(0,l.Z)(ye,this)}get duration(){return(0,l.Z)(pe,this)}get autoplay(){return this.hasAttribute("autoplay")}set autoplay(e){this.autoplay!=e&&this.toggleAttribute("autoplay",Boolean(e))}get buffered(){return(0,l.Z)(ge,this)>0?Ne(0,(0,l.Z)(ge,this)):Ne()}get controls(){return this.hasAttribute("controls")}set controls(e){this.controls!=e&&this.toggleAttribute("controls",Boolean(e))}get currentTime(){return(0,l.Z)(fe,this)}set currentTime(e){this.currentTime!=e&&((0,c.Z)(fe,this,e),this.loadComplete.then(()=>{var t;null==(t=this.api)||t.setCurrentTime(e).catch(()=>{})}))}get defaultMuted(){return this.hasAttribute("muted")}set defaultMuted(e){this.defaultMuted!=e&&this.toggleAttribute("muted",Boolean(e))}get loop(){return this.hasAttribute("loop")}set loop(e){this.loop!=e&&this.toggleAttribute("loop",Boolean(e))}get muted(){return(0,l.Z)(ve,this)}set muted(e){this.muted!=e&&((0,c.Z)(ve,this,e),this.loadComplete.then(()=>{var t;null==(t=this.api)||t.setMuted(e).catch(()=>{})}))}get playbackRate(){return(0,l.Z)(me,this)}set playbackRate(e){this.playbackRate!=e&&((0,c.Z)(me,this,e),this.loadComplete.then(()=>{var t;null==(t=this.api)||t.setPlaybackRate(e).catch(()=>{})}))}get playsInline(){return this.hasAttribute("playsinline")}set playsInline(e){this.playsInline!=e&&this.toggleAttribute("playsinline",Boolean(e))}get poster(){return this.getAttribute("poster")}set poster(e){this.poster!=e&&this.setAttribute("poster","".concat(e))}get volume(){return(0,l.Z)(ke,this)}set volume(e){this.volume!=e&&((0,c.Z)(ke,this,e),this.loadComplete.then(()=>{var t;null==(t=this.api)||t.setVolume(e).catch(()=>{})}))}}function Me(){const e=document.createElement("video");this.textTracks=e.textTracks,this.api.getTextTracks().then(t=>{t.forEach(t=>{e.addTextTrack(t.kind,t.label,t.language)})}),this.textTracks.addEventListener("change",()=>{const e=Array.from(this.textTracks).find(e=>"showing"===e.mode);e?this.api.enableTextTrack(e.language,e.kind):this.api.disableTextTrack()});const t=()=>{this.api.off("loaded",t),(0,l.Z)(Ze,this).call(this)};this.api.on("loaded",t),this.api.on("bufferstart",()=>{(0,l.Z)(ye,this)&&((0,c.Z)(ye,this,!1),this.dispatchEvent(new Event("play"))),this.dispatchEvent(new Event("waiting"))}),this.api.on("play",()=>{(0,l.Z)(ye,this)&&((0,c.Z)(ye,this,!1),this.dispatchEvent(new Event("play")))}),this.api.on("playing",()=>{(0,c.Z)(we,this,3),(0,c.Z)(ye,this,!1),this.dispatchEvent(new Event("playing"))}),this.api.on("seeking",()=>
2{(0,c.Z)(be,this,!0),this.onSeeking(),this.dispatchEvent(new Event("seeking"))}),this.api.on("seeked",async()=>{(0,c.Z)(be,this,!1),(0,c.Z)(fe,this,await this.api.getCurrentTime().catch(()=>(0,l.Z)(fe,this))),this.dispatchEvent(new Event("seeked"))}),this.api.on("pause",()=>{(0,c.Z)(ye,this,!0),this.dispatchEvent(new Event("pause"))}),this.api.on("ended",()=>{(0,c.Z)(ye,this,!0),this.dispatchEvent(new Event("ended"))}),this.api.on("ratechange",e=>{let t=e.playbackRate;(0,c.Z)(me,this,t),this.dispatchEvent(new Event("ratechange"))}),this.api.on("volumechange",async e=>{let t=e.volume;(0,c.Z)(ke,this,t),this.api&&(0,c.Z)(ve,this,await this.api.getMuted()),this.dispatchEvent(new Event("volumechange"))}),this.api.on("durationchange",e=>{let t=e.duration;(0,c.Z)(pe,this,t),this.dispatchEvent(new Event("durationchange"))}),this.api.on("timeupdate",e=>{let t=e.seconds;const n=Math.round(100*t)/100;(0,c.Z)(fe,this,n),this.dispatchEvent(new Event("timeupdate"))}),this.api.on("progress",e=>{let t=e.seconds;(0,c.Z)(ge,this,t),this.dispatchEvent(new Event("progress"))}),this.api.on("resize",e=>{let t=e.videoWidth,n=e.videoHeight;(0,c.Z)(Ee,this,t),(0,c.Z)(Pe,this,n),this.dispatchEvent(new Event("resize"))})}function Oe(e){if(Object.prototype.hasOwnProperty.call(this,e)){const t=this[e];delete this[e],this[e]=t}}function Ce(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/`/g,"&#x60;")}function Re(e){return String(new URLSearchParams(function(e){let t={};for(let n in e){let r=e[n];
2!0===r||""===r?t[n]=1:!1===r?t[n]=0:null!=r&&(t[n]=r)}return t}(e)))}(0,u.Z)(je,"getTemplateHTML",ue),(0,u.Z)(je,"shadowRootOptions",{mode:"open"}),(0,u.Z)(je,"observedAttributes",["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src"]);class Se extends Promise{constructor(){let e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:()=>{};super((r,i)=>{n(r,i),e=r,t=i}),this.resolve=e,this.reject=t}}function Ne(e,t){return Array.isArray(e)?Ae(e):Ae(null==e||null==t||0===e&&0===t?[[0,0]]:[[e,t]])}function Ae(e){return Object.defineProperties(e,{start:{value:t=>e[t][0]},end:{value:t=>e[t][1]}}),e}globalThis.customElements&&!globalThis.customElements.get("vimeo-video")&&globalThis.customElements.define("vimeo-video",je);var Le=je,Fe=new Set(["style","children","ref","key","suppressContentEditableWarning","suppressHydrationWarning","dangerouslySetInnerHTML"]),Ie={className:"class",htmlFor:"for"};function We(e){return e.toLowerCase()}function qe(e){return"boolean"===typeof e?e?"":void 0:"function"===typeof e||"object"===typeof e&&null!==e?void 0:e}function Ve(e,t,n){var r,i;e[t]=n,null==n&&t in(null!==(r=null==(i=globalThis.HTMLElement)?void 0:i.prototype)&&void 0!==r?r:{})&&e.removeAttribute(t)}var De=function(e){let t=e.react,n=e.tagName,o=e.elementClass,a=e.events,s=e.displayName,u=e.defaultProps,c=e.toAttributeName,l=void 0===c?We:c,h=e.toAttributeValue,d=void 0===h?qe:h;const f=Number.parseInt(t.version)>=19,p=t.forwardRef((e,s)=>{var c,h;const p=t.useRef(null),v=t.useRef(new Map),y={},m={},g={},w={};for(const t of Object.entries(e)){var b,k,E=(0,i.Z)(t,2);const e=E[0],n=E[1];if(Fe.has(e)){g[e]=n;continue}const r=l(null!==(b=Ie[e])&&void 0!==b?b:e);if(o.prototype&&e in o.prototype&&!(e in(null!==(k=null==(c=globalThis.HTMLElement)?void 0:c.prototype)&&void 0!==k?k:{}))&&!(null==(h=o.observedAttributes)?void 0:h.some(e=>e===r))){w[e]=n;continue}if(e.startsWith("on")){y[e]=n;continue}const a=d(n);if(r&&null!=a&&(m[r]=String(a),f||(g[r]=a)),r&&f){const e=qe(n);g[r]=a!==e?a:n}}if("undefined"!==typeof window){for(const e in y){var P;const n=y[e],r=e.endsWith("Capture"),i=(null!==(P=null==a?void 0:a[e])&&void 0!==P?P:e.slice(2).toLowerCase()).slice(0,r?-7:void 0);t.useLayoutEffect(()=>{const e=null==p?void 0:p.current;if(e&&"function"===typeof n)return e.addEventListener(i,n,r),()=>{e.removeEventListener(i,n,r)}},[null==p?void 0:p.current,n])}t.useLayoutEffect(()=>{if(null===p.current)return;const e=new Map;for(const n in w)Ve(p.current,n,w[n]),v.current.delete(n),e.set(n,w[n]);for(const n of v.current){var t=(0,i.Z)(n,2);const e=t[0];t[1];Ve(p.current,e,void 0)}v.current=e})}if("undefined"===typeof window&&(null==o?void 0:o.getTemplateHTML)&&(null==o?void 0:o.shadowRootOptions)){const n=o.shadowRootOptions,r=n.mode,i=n.delegatesFocus,a=t.createElement("template",{shadowrootmode:r,shadowrootdelegatesfocus:i,dangerouslySetInnerHTML:{__html:o.getTemplateHTML(m,e)},key:"ce-la-react-ssr-template-shadow-root"});g.children=[a,g.children]}return t.createElement(n,(0,r.Z)((0,r.Z)((0,r.Z)({},u),g),{},{ref:t.useCallback(e=>{p.current=e,"function"===typeof s?s(e):null!==s&&(s.current=e)},[s])}),g.children)});return p.displayName=null!==s&&void 0!==s?s:o.name,p}({react:o,tagName:"vimeo-video",elementClass:Le,toAttributeName:e=>"muted"===e?"":"defaultMuted"===e?"muted":We(e)})}}]);
3//# sourceMappingURL=reactPlayerVimeo.c26861f9.chunk.js.map

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.