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