@zeniai/web-cockpit-ui 2.2.55-dev → 2.2.56-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/CreditAgentRoutes-CWtniLRn.js +4 -0
- package/dist/assets/{Preview-5X9P7ZmI.js → Preview-DxnZ0G_9.js} +1 -1
- package/dist/assets/{ScreenRoutes-DdbAz88l.js → ScreenRoutes-DmtEuNk4.js} +8 -8
- package/dist/assets/SignInScreen-DUsSSHl_.js +1 -0
- package/dist/assets/{analytics-BHUwgbCp.js → analytics-D6nPZhvU.js} +1 -1
- package/dist/assets/{analyticsHelper-BguNWp-6.js → analyticsHelper-BGL92ghO.js} +1 -1
- package/dist/assets/{core-CjUOFtNP.js → core-Dwew_eJI.js} +1 -1
- package/dist/assets/{dash.all.min-BwyXoGmV.js → dash.all.min-DEQx_M4d.js} +1 -1
- package/dist/assets/{empty-CGqM-fQ6.js → empty-C9URe1wE.js} +1 -1
- package/dist/assets/{empty-DIiz3tVc.js → empty-CWKS44_T.js} +1 -1
- package/dist/assets/epic-DbBUeNum.js +2 -0
- package/dist/assets/{index-Cs6eGSj4.js → index-BQ1xq9Ax.js} +2 -2
- package/dist/assets/{index-DcGIrthm.css → index-Bd7ri422.css} +1 -1
- package/dist/assets/{index-BRCfM85b.js → index-BgQY9QEb.js} +1 -1
- package/dist/assets/{index-D0y-AHOf.js → index-Bitr7r5a.js} +1 -1
- package/dist/assets/{index-7-X9ZJj6.js → index-BssKJygd.js} +20406 -20541
- package/dist/assets/{index-CdOmOrCq.js → index-DG96zgnQ.js} +1 -1
- package/dist/assets/{index-CwQciV6W.js → index-DPOaVmXP.js} +1 -1
- package/dist/assets/{index-ibUWH8aZ.js → index-urN9o0mh.js} +1 -1
- package/dist/assets/{lexical-D0-Opw0M.js → lexical-CKIF0fv8.js} +1 -1
- package/dist/assets/{liveblocks-1rPyJrPS.js → liveblocks-bdH_HyD4.js} +1 -1
- package/dist/assets/{lottie-iG9PQglI.js → lottie-ODFW7XpP.js} +1 -1
- package/dist/assets/mui-Dpk20_cL.js +138 -0
- package/dist/assets/{react-D9Pa3CZP.js → react-5k8YSArH.js} +1 -1
- package/dist/assets/{react-D2PG85gs.js → react-B58oz63_.js} +2 -2
- package/dist/assets/{react-C1L68OAC.js → react-BVou-Xve.js} +1 -1
- package/dist/assets/{react-gS9tl2fa.js → react-BrwPLcTD.js} +1 -1
- package/dist/assets/{react-Dso6ZBjL.js → react-DxYnPaL4.js} +1 -1
- package/dist/assets/{react-eH9pn9yJ.js → react-K8PNfPlF.js} +1 -1
- package/dist/assets/{react-D-BQBnLA.js → react-NOoqN2L8.js} +1 -1
- package/dist/assets/{react-odCLUV4P.js → react-dvrCYrIU.js} +1 -1
- package/dist/assets/recharts-Cy2son-o.js +65 -0
- package/dist/assets/{sentry-DnKCIlp7.js → sentry-Dwm-tWfG.js} +1 -1
- package/dist/assets/{url-CyApCW3Z.js → url-DV3lGv0k.js} +1 -1
- package/dist/assets/{url-Bv6R7pEO.js → url-DwJCVbv4.js} +1 -1
- package/dist/assets/{utils-DmBc9W1c.js → utils-ByTJL3Oq.js} +1 -1
- package/dist/assets/{zeni-epic-state-BjcbtVhk.js → zeni-epic-state-BAX-zerj.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +4 -4
- package/dist/assets/CreditAgentRoutes-B9qoucdM.js +0 -4
- package/dist/assets/SignInScreen-B78SkdbK.js +0 -1
- package/dist/assets/epic-DgmV8wuj.js +0 -2
- package/dist/assets/mui-BRD3zvN1.js +0 -9
- package/dist/assets/recharts-CHQcl4ep.js +0 -65
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{R as D}from"./sentry-
|
|
1
|
+
import{R as D}from"./sentry-Dwm-tWfG.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new t.Error().stack;i&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[i]="89c8e16e-6976-4899-94c9-6ade1ad37ad9",t._sentryDebugIdIdentifier="sentry-dbid-89c8e16e-6976-4899-94c9-6ade1ad37ad9")}catch{}})();const W=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting","waitingforkey","resize","enterpictureinpicture","leavepictureinpicture","webkitbeginfullscreen","webkitendfullscreen","webkitpresentationmodechanged"],A=globalThis.document?.createElement("template");A&&(A.innerHTML=`
|
|
2
2
|
<style>
|
|
3
3
|
:host {
|
|
4
4
|
display: inline-block;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/dash.all.min-
|
|
2
|
-
import{R as D}from"./sentry-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/dash.all.min-DEQx_M4d.js","assets/zeni-epic-state-BAX-zerj.js","assets/sentry-Dwm-tWfG.js","assets/core-Dwew_eJI.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{R as D}from"./sentry-Dwm-tWfG.js";import{ba as N}from"./zeni-epic-state-BAX-zerj.js";import{M as A,C as k}from"./mixin-BPAPQfSE.js";import"./core-Dwew_eJI.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="1b2e823c-2c1e-4194-a463-ef972642785b",t._sentryDebugIdIdentifier="sentry-dbid-1b2e823c-2c1e-4194-a463-ef972642785b")}catch{}})();class L extends A(k){static shadowRootOptions={...k.shadowRootOptions};static getTemplateHTML=e=>{const{src:n,...o}=e;return k.getTemplateHTML(o)};#t;attributeChangedCallback(e,n,o){e!=="src"&&super.attributeChangedCallback(e,n,o),e==="src"&&n!=o&&this.load()}async _initThumbnails(e){const n=async(d,h)=>{const p=[],g=e.timescale||1,f=e.startNumber||1,w=e.presentationTimeOffset?e.presentationTimeOffset/g:0,_=e.segmentDuration;for(let l=0;l<d;l++){const T=C({thIndex:l,thduration:h,ttiles:d,tduration:_,startNumber:f,pto:w}),E=T+h,M=new Promise((m,y)=>{this.api.provideThumbnail(T,({url:a,width:s,height:c,x:b,y:v})=>{try{const R=new VTTCue(T,E,`${a}#xywh=${b},${v},${s},${c}`);m(R)}catch(R){y(R)}})});p.push(M)}return await Promise.all(p).catch(l=>console.error("Error processing thumbnails",l))},{totalThumbnails:o,thumbnailDuration:i}=$(e),u=await n(o,i);let r=this.nativeEl.querySelector('track[label="thumbnails"]');if(!r){r=O(),this.nativeEl.appendChild(r);const d=x(u);r.src=d,r.dispatchEvent(new Event("change"))}}async load(){if(this.#t){this.api.attachSource(this.src);return}this.#t=!0;const e=await N(()=>import("./dash.all.min-DEQx_M4d.js"),__vite__mapDeps([0,1,2,3]));this.api=e.MediaPlayer().create(),this.api.initialize(this.nativeEl,this.src,this.autoplay),this.api.on(e.MediaPlayer.events.STREAM_INITIALIZED,()=>{const n=this.api.getRepresentationsByType("video");let o=this.videoTracks.getTrackById("main");o||(o=this.addVideoTrack("main"),o.id="main",o.selected=!0),n.forEach(i=>{const u=i.bandwidth??i.bitrate??(Number.isFinite(i.bitrateInKbit)?i.bitrateInKbit*1e3:void 0),r=o.addRendition(i.id,i.width,i.height,i.mimeType??i.codec,u);r.id=i.id}),this.videoRenditions.addEventListener("change",()=>{const i=this.videoRenditions[this.videoRenditions.selectedIndex];i?.id?(this.api.updateSettings({streaming:{abr:{autoSwitchBitrate:{video:!1}}}}),this.api.setRepresentationForTypeById("video",i.id,!0)):this.api.updateSettings({streaming:{abr:{autoSwitchBitrate:{video:!0}}}})}),this.api.isDynamic()||this.api.getRepresentationsByType("image").forEach(async(u,r)=>{r>0||this._initThumbnails(u)})})}}function $(t){var e,n;const o=t.essentialProperties[0],[i,u]=o.value.split("x").map(Number),r=i*u,d=((n=(e=t.adaptation)==null?void 0:e.period)==null?void 0:n.duration)||null,h=t.segmentDuration,p=t.timescale||1,f=h/p/r;return{totalThumbnails:d!=null?Math.ceil(d/f):Math.ceil(h/f),thumbnailDuration:f}}function C({thIndex:t,tduration:e,thduration:n,ttiles:o,startNumber:i,pto:u}){const r=Math.floor(t/o)+i,d=t%o+1,h=(r-1)*e-u,p=(d-1)*n;return h+p}function O(){const t=document.createElement("track");return t.kind="metadata",t.label="thumbnails",t.srclang="en",t.mode="hidden",t.default=!0,t}function x(t){let e=`WEBVTT
|
|
3
3
|
|
|
4
4
|
`;for(const i of t)e+=`${o(i.startTime)} --> ${o(i.endTime)}
|
|
5
5
|
`,e+=`${i.text}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{R as O}from"./sentry-
|
|
1
|
+
import{R as O}from"./sentry-Dwm-tWfG.js";import{M as P,C as A}from"./mixin-BPAPQfSE.js";import{H as f}from"./hls-CK0vqtka.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},v=new t.Error().stack;v&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[v]="bad20c91-99d7-4241-8fd0-1a41dd1d37c3",t._sentryDebugIdIdentifier="sentry-dbid-bad20c91-99d7-4241-8fd0-1a41dd1d37c3")}catch{}})();const x=t=>class extends t{static shadowRootOptions={...t.shadowRootOptions};static getTemplateHTML=(e,s={})=>{const{src:h,...y}=e;return`
|
|
2
2
|
<script type="application/json" id="config">
|
|
3
3
|
${JSON.stringify(s.config||{})}
|
|
4
4
|
<\/script>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as U,R as Ie}from"./sentry-DnKCIlp7.js";(function(){try{var r=typeof window<"u"?window:typeof U<"u"?U:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new r.Error().stack;e&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[e]="a94fcb44-e563-4d1e-ac81-2b4e73490513",r._sentryDebugIdIdentifier="sentry-dbid-a94fcb44-e563-4d1e-ac81-2b4e73490513")}catch{}})();function fe(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),t.push.apply(t,n)}return t}function he(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?fe(Object(t),!0).forEach(function(n){K(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):fe(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function R(){R=function(){return r};var r={},e=Object.prototype,t=e.hasOwnProperty,n=Object.defineProperty||function(l,c,d){l[c]=d.value},i=typeof Symbol=="function"?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function h(l,c,d){return Object.defineProperty(l,c,{value:d,enumerable:!0,configurable:!0,writable:!0}),l[c]}try{h({},"")}catch{h=function(c,d,M){return c[d]=M}}function o(l,c,d,M){var w=c&&c.prototype instanceof T?c:T,C=Object.create(w.prototype),A=new L(M||[]);return n(C,"_invoke",{value:v(l,d,A)}),C}function b(l,c,d){try{return{type:"normal",arg:l.call(c,d)}}catch(M){return{type:"throw",arg:M}}}r.wrap=o;var k={};function T(){}function P(){}function g(){}var _={};h(_,a,function(){return this});var O=Object.getPrototypeOf,N=O&&O(O(q([])));N&&N!==e&&t.call(N,a)&&(_=N);var m=g.prototype=T.prototype=Object.create(_);function p(l){["next","throw","return"].forEach(function(c){h(l,c,function(d){return this._invoke(c,d)})})}function f(l,c){function d(w,C,A,j){var F=b(l[w],l,C);if(F.type!=="throw"){var H=F.arg,Q=H.value;return Q&&typeof Q=="object"&&t.call(Q,"__await")?c.resolve(Q.__await).then(function($){d("next",$,A,j)},function($){d("throw",$,A,j)}):c.resolve(Q).then(function($){H.value=$,A(H)},function($){return d("throw",$,A,j)})}j(F.arg)}var M;n(this,"_invoke",{value:function(w,C){function A(){return new c(function(j,F){d(w,C,j,F)})}return M=M?M.then(A,A):A()}})}function v(l,c,d){var M="suspendedStart";return function(w,C){if(M==="executing")throw new Error("Generator is already running");if(M==="completed"){if(w==="throw")throw C;return ie()}for(d.method=w,d.arg=C;;){var A=d.delegate;if(A){var j=E(A,d);if(j){if(j===k)continue;return j}}if(d.method==="next")d.sent=d._sent=d.arg;else if(d.method==="throw"){if(M==="suspendedStart")throw M="completed",d.arg;d.dispatchException(d.arg)}else d.method==="return"&&d.abrupt("return",d.arg);M="executing";var F=b(l,c,d);if(F.type==="normal"){if(M=d.done?"completed":"suspendedYield",F.arg===k)continue;return{value:F.arg,done:d.done}}F.type==="throw"&&(M="completed",d.method="throw",d.arg=F.arg)}}}function E(l,c){var d=c.method,M=l.iterator[d];if(M===void 0)return c.delegate=null,d==="throw"&&l.iterator.return&&(c.method="return",c.arg=void 0,E(l,c),c.method==="throw")||d!=="return"&&(c.method="throw",c.arg=new TypeError("The iterator does not provide a '"+d+"' method")),k;var w=b(M,l.iterator,c.arg);if(w.type==="throw")return c.method="throw",c.arg=w.arg,c.delegate=null,k;var C=w.arg;return C?C.done?(c[l.resultName]=C.value,c.next=l.nextLoc,c.method!=="return"&&(c.method="next",c.arg=void 0),c.delegate=null,k):C:(c.method="throw",c.arg=new TypeError("iterator result is not an object"),c.delegate=null,k)}function S(l){var c={tryLoc:l[0]};1 in l&&(c.catchLoc=l[1]),2 in l&&(c.finallyLoc=l[2],c.afterLoc=l[3]),this.tryEntries.push(c)}function y(l){var c=l.completion||{};c.type="normal",delete c.arg,l.completion=c}function L(l){this.tryEntries=[{tryLoc:"root"}],l.forEach(S,this),this.reset(!0)}function q(l){if(l){var c=l[a];if(c)return c.call(l);if(typeof l.next=="function")return l;if(!isNaN(l.length)){var d=-1,M=function w(){for(;++d<l.length;)if(t.call(l,d))return w.value=l[d],w.done=!1,w;return w.value=void 0,w.done=!0,w};return M.next=M}}return{next:ie}}function ie(){return{value:void 0,done:!0}}return P.prototype=g,n(m,"constructor",{value:g,configurable:!0}),n(g,"constructor",{value:P,configurable:!0}),P.displayName=h(g,s,"GeneratorFunction"),r.isGeneratorFunction=function(l){var c=typeof l=="function"&&l.constructor;return!!c&&(c===P||(c.displayName||c.name)==="GeneratorFunction")},r.mark=function(l){return Object.setPrototypeOf?Object.setPrototypeOf(l,g):(l.__proto__=g,h(l,s,"GeneratorFunction")),l.prototype=Object.create(m),l},r.awrap=function(l){return{__await:l}},p(f.prototype),h(f.prototype,u,function(){return this}),r.AsyncIterator=f,r.async=function(l,c,d,M,w){w===void 0&&(w=Promise);var C=new f(o(l,c,d,M),w);return r.isGeneratorFunction(c)?C:C.next().then(function(A){return A.done?A.value:C.next()})},p(m),h(m,s,"Generator"),h(m,a,function(){return this}),h(m,"toString",function(){return"[object Generator]"}),r.keys=function(l){var c=Object(l),d=[];for(var M in c)d.push(M);return d.reverse(),function w(){for(;d.length;){var C=d.pop();if(C in c)return w.value=C,w.done=!1,w}return w.done=!0,w}},r.values=q,L.prototype={constructor:L,reset:function(l){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(y),!l)for(var c in this)c.charAt(0)==="t"&&t.call(this,c)&&!isNaN(+c.slice(1))&&(this[c]=void 0)},stop:function(){this.done=!0;var l=this.tryEntries[0].completion;if(l.type==="throw")throw l.arg;return this.rval},dispatchException:function(l){if(this.done)throw l;var c=this;function d(F,H){return C.type="throw",C.arg=l,c.next=F,H&&(c.method="next",c.arg=void 0),!!H}for(var M=this.tryEntries.length-1;M>=0;--M){var w=this.tryEntries[M],C=w.completion;if(w.tryLoc==="root")return d("end");if(w.tryLoc<=this.prev){var A=t.call(w,"catchLoc"),j=t.call(w,"finallyLoc");if(A&&j){if(this.prev<w.catchLoc)return d(w.catchLoc,!0);if(this.prev<w.finallyLoc)return d(w.finallyLoc)}else if(A){if(this.prev<w.catchLoc)return d(w.catchLoc,!0)}else{if(!j)throw new Error("try statement without catch or finally");if(this.prev<w.finallyLoc)return d(w.finallyLoc)}}}},abrupt:function(l,c){for(var d=this.tryEntries.length-1;d>=0;--d){var M=this.tryEntries[d];if(M.tryLoc<=this.prev&&t.call(M,"finallyLoc")&&this.prev<M.finallyLoc){var w=M;break}}w&&(l==="break"||l==="continue")&&w.tryLoc<=c&&c<=w.finallyLoc&&(w=null);var C=w?w.completion:{};return C.type=l,C.arg=c,w?(this.method="next",this.next=w.finallyLoc,k):this.complete(C)},complete:function(l,c){if(l.type==="throw")throw l.arg;return l.type==="break"||l.type==="continue"?this.next=l.arg:l.type==="return"?(this.rval=this.arg=l.arg,this.method="return",this.next="end"):l.type==="normal"&&c&&(this.next=c),k},finish:function(l){for(var c=this.tryEntries.length-1;c>=0;--c){var d=this.tryEntries[c];if(d.finallyLoc===l)return this.complete(d.completion,d.afterLoc),y(d),k}},catch:function(l){for(var c=this.tryEntries.length-1;c>=0;--c){var d=this.tryEntries[c];if(d.tryLoc===l){var M=d.completion;if(M.type==="throw"){var w=M.arg;y(d)}return w}}throw new Error("illegal catch attempt")},delegateYield:function(l,c,d){return this.delegate={iterator:q(l),resultName:c,nextLoc:d},this.method==="next"&&(this.arg=void 0),k}},r}function de(r,e,t,n,i,a,u){try{var s=r[a](u),h=s.value}catch(o){t(o);return}s.done?e(h):Promise.resolve(h).then(n,i)}function W(r){return function(){var e=this,t=arguments;return new Promise(function(n,i){var a=r.apply(e,t);function u(h){de(a,n,i,u,s,"next",h)}function s(h){de(a,n,i,u,s,"throw",h)}u(void 0)})}}function ke(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function Le(r,e){for(var t=0;t<e.length;t++){var n=e[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,Me(n.key),n)}}function Pe(r,e,t){return e&&Le(r.prototype,e),Object.defineProperty(r,"prototype",{writable:!1}),r}function K(r,e,t){return e=Me(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function je(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&X(r,e)}function J(r){return J=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},J(r)}function X(r,e){return X=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},X(r,e)}function Te(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Z(r,e,t){return Te()?Z=Reflect.construct.bind():Z=function(i,a,u){var s=[null];s.push.apply(s,a);var h=Function.bind.apply(i,s),o=new h;return u&&X(o,u.prototype),o},Z.apply(null,arguments)}function Fe(r){return Function.toString.call(r).indexOf("[native code]")!==-1}function se(r){var e=typeof Map=="function"?new Map:void 0;return se=function(n){if(n===null||!Fe(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(n))return e.get(n);e.set(n,i)}function i(){return Z(n,arguments,J(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),X(i,n)},se(r)}function ee(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function qe(r,e){if(e&&(typeof e=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ee(r)}function De(r){var e=Te();return function(){var n=J(r),i;if(e){var a=J(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return qe(this,i)}}function Ve(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(r)}function Me(r){var e=Ve(r,"string");return typeof e=="symbol"?e:String(e)}var Se=typeof U<"u"&&{}.toString.call(U)==="[object global]";function pe(r,e){return r.indexOf(e.toLowerCase())===0?r:"".concat(e.toLowerCase()).concat(r.substr(0,1).toUpperCase()).concat(r.substr(1))}function $e(r){return!!(r&&r.nodeType===1&&"nodeName"in r&&r.ownerDocument&&r.ownerDocument.defaultView)}function xe(r){return!isNaN(parseFloat(r))&&isFinite(r)&&Math.floor(r)==r}function z(r){return/^(https?:)?\/\/((((player|www)\.)?vimeo\.com)|((player\.)?[a-zA-Z0-9-]+\.(videoji\.(hk|cn)|vimeo\.work)))(?=$|\/)/.test(r)}function Ce(r){var e=/^https:\/\/player\.((vimeo\.com)|([a-zA-Z0-9-]+\.(videoji\.(hk|cn)|vimeo\.work)))\/video\/\d+/;return e.test(r)}function We(r){for(var e=(r||"").match(/^(?:https?:)?(?:\/\/)?([^/?]+)/),t=(e&&e[1]||"").replace("player.",""),n=[".videoji.hk",".vimeo.work",".videoji.cn"],i=0,a=n;i<a.length;i++){var u=a[i];if(t.endsWith(u))return t}return"vimeo.com"}function Oe(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=r.id,t=r.url,n=e||t;if(!n)throw new Error("An id or url must be passed, either in an options object or as a data-vimeo-id or data-vimeo-url attribute.");if(xe(n))return"https://vimeo.com/".concat(n);if(z(n))return n.replace("http:","https:");throw e?new TypeError("“".concat(e,"” is not a valid video id.")):new TypeError("“".concat(n,"” is not a vimeo.com url."))}var ve=function(e,t,n){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"addEventListener",a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"removeEventListener",u=typeof t=="string"?[t]:t;return u.forEach(function(s){e[i](s,n)}),{cancel:function(){return u.forEach(function(h){return e[a](h,n)})}}},ze=typeof Array.prototype.indexOf<"u",He=typeof window<"u"&&typeof window.postMessage<"u";if(!Se&&(!ze||!He))throw new Error("Sorry, the Vimeo Player API is not available in this browser.");var G=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof U<"u"?U:typeof self<"u"?self:{};function Be(r,e){return e={exports:{}},r(e,e.exports),e.exports}(function(r){if(r.WeakMap)return;var e=Object.prototype.hasOwnProperty,t=Object.defineProperty&&(function(){try{return Object.defineProperty({},"x",{value:1}).x===1}catch{}})(),n=function(a,u,s){t?Object.defineProperty(a,u,{configurable:!0,writable:!0,value:s}):a[u]=s};r.WeakMap=(function(){function a(){if(this===void 0)throw new TypeError("Constructor WeakMap requires 'new'");if(n(this,"_id",s("_WeakMap")),arguments.length>0)throw new TypeError("WeakMap iterable is not supported")}n(a.prototype,"delete",function(o){if(u(this,"delete"),!i(o))return!1;var b=o[this._id];return b&&b[0]===o?(delete o[this._id],!0):!1}),n(a.prototype,"get",function(o){if(u(this,"get"),!!i(o)){var b=o[this._id];if(b&&b[0]===o)return b[1]}}),n(a.prototype,"has",function(o){if(u(this,"has"),!i(o))return!1;var b=o[this._id];return!!(b&&b[0]===o)}),n(a.prototype,"set",function(o,b){if(u(this,"set"),!i(o))throw new TypeError("Invalid value used as weak map key");var k=o[this._id];return k&&k[0]===o?(k[1]=b,this):(n(o,this._id,[o,b]),this)});function u(o,b){if(!i(o)||!e.call(o,"_id"))throw new TypeError(b+" method called on incompatible receiver "+typeof o)}function s(o){return o+"_"+h()+"."+h()}function h(){return Math.random().toString().substring(2)}return n(a,"_polyfill",!0),a})();function i(a){return Object(a)===a}})(typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:G);var D=Be(function(r){(function(t,n,i){n[t]=n[t]||i(),r.exports&&(r.exports=n[t])})("Promise",G,function(){var t,n,i,a=Object.prototype.toString,u=typeof setImmediate<"u"?function(p){return setImmediate(p)}:setTimeout;try{Object.defineProperty({},"x",{}),t=function(p,f,v,E){return Object.defineProperty(p,f,{value:v,writable:!0,configurable:E!==!1})}}catch{t=function(f,v,E){return f[v]=E,f}}i=(function(){var p,f,v;function E(S,y){this.fn=S,this.self=y,this.next=void 0}return{add:function(y,L){v=new E(y,L),f?f.next=v:p=v,f=v,v=void 0},drain:function(){var y=p;for(p=f=n=void 0;y;)y.fn.call(y.self),y=y.next}}})();function s(m,p){i.add(m,p),n||(n=u(i.drain))}function h(m){var p,f=typeof m;return m!=null&&(f=="object"||f=="function")&&(p=m.then),typeof p=="function"?p:!1}function o(){for(var m=0;m<this.chain.length;m++)b(this,this.state===1?this.chain[m].success:this.chain[m].failure,this.chain[m]);this.chain.length=0}function b(m,p,f){var v,E;try{p===!1?f.reject(m.msg):(p===!0?v=m.msg:v=p.call(void 0,m.msg),v===f.promise?f.reject(TypeError("Promise-chain cycle")):(E=h(v))?E.call(v,f.resolve,f.reject):f.resolve(v))}catch(S){f.reject(S)}}function k(m){var p,f=this;if(!f.triggered){f.triggered=!0,f.def&&(f=f.def);try{(p=h(m))?s(function(){var v=new g(f);try{p.call(m,function(){k.apply(v,arguments)},function(){T.apply(v,arguments)})}catch(E){T.call(v,E)}}):(f.msg=m,f.state=1,f.chain.length>0&&s(o,f))}catch(v){T.call(new g(f),v)}}}function T(m){var p=this;p.triggered||(p.triggered=!0,p.def&&(p=p.def),p.msg=m,p.state=2,p.chain.length>0&&s(o,p))}function P(m,p,f,v){for(var E=0;E<p.length;E++)(function(y){m.resolve(p[y]).then(function(q){f(y,q)},v)})(E)}function g(m){this.def=m,this.triggered=!1}function _(m){this.promise=m,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function O(m){if(typeof m!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var p=new _(this);this.then=function(v,E){var S={success:typeof v=="function"?v:!0,failure:typeof E=="function"?E:!1};return S.promise=new this.constructor(function(L,q){if(typeof L!="function"||typeof q!="function")throw TypeError("Not a function");S.resolve=L,S.reject=q}),p.chain.push(S),p.state!==0&&s(o,p),S.promise},this.catch=function(v){return this.then(void 0,v)};try{m.call(void 0,function(v){k.call(p,v)},function(v){T.call(p,v)})}catch(f){T.call(p,f)}}var N=t({},"constructor",O,!1);return O.prototype=N,t(N,"__NPO__",0,!1),t(O,"resolve",function(p){var f=this;return p&&typeof p=="object"&&p.__NPO__===1?p:new f(function(E,S){if(typeof E!="function"||typeof S!="function")throw TypeError("Not a function");E(p)})}),t(O,"reject",function(p){return new this(function(v,E){if(typeof v!="function"||typeof E!="function")throw TypeError("Not a function");E(p)})}),t(O,"all",function(p){var f=this;return a.call(p)!="[object Array]"?f.reject(TypeError("Not an array")):p.length===0?f.resolve([]):new f(function(E,S){if(typeof E!="function"||typeof S!="function")throw TypeError("Not a function");var y=p.length,L=Array(y),q=0;P(f,p,function(l,c){L[l]=c,++q===y&&E(L)},S)})}),t(O,"race",function(p){var f=this;return a.call(p)!="[object Array]"?f.reject(TypeError("Not an array")):new f(function(E,S){if(typeof E!="function"||typeof S!="function")throw TypeError("Not a function");P(f,p,function(L,q){E(q)},S)})}),O})}),V=new WeakMap;function Y(r,e,t){var n=V.get(r.element)||{};e in n||(n[e]=[]),n[e].push(t),V.set(r.element,n)}function te(r,e){var t=V.get(r.element)||{};return t[e]||[]}function re(r,e,t){var n=V.get(r.element)||{};if(!n[e])return!0;if(!t)return n[e]=[],V.set(r.element,n),!0;var i=n[e].indexOf(t);return i!==-1&&n[e].splice(i,1),V.set(r.element,n),n[e]&&n[e].length===0}function Ge(r,e){var t=te(r,e);if(t.length<1)return!1;var n=t.shift();return re(r,e,n),n}function Ue(r,e){var t=V.get(r);V.set(e,t),V.delete(r)}function ne(r){if(typeof r=="string")try{r=JSON.parse(r)}catch(e){return console.warn(e),{}}return r}function x(r,e,t){if(!(!r.element.contentWindow||!r.element.contentWindow.postMessage)){var n={method:e};t!==void 0&&(n.value=t);var i=parseFloat(navigator.userAgent.toLowerCase().replace(/^.*msie (\d+).*$/,"$1"));i>=8&&i<10&&(n=JSON.stringify(n)),r.element.contentWindow.postMessage(n,r.origin)}}function Qe(r,e){e=ne(e);var t=[],n;if(e.event){if(e.event==="error"){var i=te(r,e.data.method);i.forEach(function(u){var s=new Error(e.data.message);s.name=e.data.name,u.reject(s),re(r,e.data.method,u)})}t=te(r,"event:".concat(e.event)),n=e.data}else if(e.method){var a=Ge(r,e.method);a&&(t.push(a),n=e.value)}t.forEach(function(u){try{if(typeof u=="function"){u.call(r,n);return}u.resolve(n)}catch{}})}var Ye=["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 _e(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Ye.reduce(function(t,n){var i=r.getAttribute("data-vimeo-".concat(n));return(i||i==="")&&(t[n]=i===""?1:i),t},e)}function ce(r,e){var t=r.html;if(!e)throw new TypeError("An element must be provided");if(e.getAttribute("data-vimeo-initialized")!==null)return e.querySelector("iframe");var n=document.createElement("div");return n.innerHTML=t,e.appendChild(n.firstChild),e.setAttribute("data-vimeo-initialized","true"),e.querySelector("iframe")}function Ae(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=arguments.length>2?arguments[2]:void 0;return new Promise(function(n,i){if(!z(r))throw new TypeError("“".concat(r,"” is not a vimeo.com url."));var a=We(r),u="https://".concat(a,"/api/oembed.json?url=").concat(encodeURIComponent(r));for(var s in e)e.hasOwnProperty(s)&&(u+="&".concat(s,"=").concat(encodeURIComponent(e[s])));var h="XDomainRequest"in window?new XDomainRequest:new XMLHttpRequest;h.open("GET",u,!0),h.onload=function(){if(h.status===404){i(new Error("“".concat(r,"” was not found.")));return}if(h.status===403){i(new Error("“".concat(r,"” is not embeddable.")));return}try{var o=JSON.parse(h.responseText);if(o.domain_status_code===403){ce(o,t),i(new Error("“".concat(r,"” is not embeddable.")));return}n(o)}catch(b){i(b)}},h.onerror=function(){var o=h.status?" (".concat(h.status,")"):"";i(new Error("There was an error fetching the embed code from Vimeo".concat(o,".")))},h.send()})}function Je(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document,e=[].slice.call(r.querySelectorAll("[data-vimeo-id], [data-vimeo-url]")),t=function(i){"console"in window&&console.error&&console.error("There was an error creating an embed: ".concat(i))};e.forEach(function(n){try{if(n.getAttribute("data-vimeo-defer")!==null)return;var i=_e(n),a=Oe(i);Ae(a,i,n).then(function(u){return ce(u,n)}).catch(t)}catch(u){t(u)}})}function Xe(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;if(!window.VimeoPlayerResizeEmbeds_){window.VimeoPlayerResizeEmbeds_=!0;var e=function(n){if(z(n.origin)&&!(!n.data||n.data.event!=="spacechange")){for(var i=r.querySelectorAll("iframe"),a=0;a<i.length;a++)if(i[a].contentWindow===n.source){var u=i[a].parentElement;u.style.paddingBottom="".concat(n.data.data[0].bottom,"px");break}}};window.addEventListener("message",e)}}function Ke(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;if(!window.VimeoSeoMetadataAppended){window.VimeoSeoMetadataAppended=!0;var e=function(n){if(z(n.origin)){var i=ne(n.data);if(!(!i||i.event!=="ready"))for(var a=r.querySelectorAll("iframe"),u=0;u<a.length;u++){var s=a[u],h=s.contentWindow===n.source;if(Ce(s.src)&&h){var o=new le(s);o.callMethod("appendVideoMetadata",window.location.href)}}}};window.addEventListener("message",e)}}function Ze(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;if(!window.VimeoCheckedUrlTimeParam){window.VimeoCheckedUrlTimeParam=!0;var e=function(i){"console"in window&&console.error&&console.error("There was an error getting video Id: ".concat(i))},t=function(i){if(z(i.origin)){var a=ne(i.data);if(!(!a||a.event!=="ready"))for(var u=r.querySelectorAll("iframe"),s=function(){var b=u[h],k=b.contentWindow===i.source;if(Ce(b.src)&&k){var T=new le(b);T.getVideoId().then(function(P){var g=new RegExp("[?&]vimeo_t_".concat(P,"=([^&#]*)")).exec(window.location.href);if(g&&g[1]){var _=decodeURI(g[1]);T.setCurrentTime(_)}}).catch(e)}},h=0;h<u.length;h++)s()}};window.addEventListener("message",t)}}function et(){var r=(function(){for(var n,i=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],a=0,u=i.length,s={};a<u;a++)if(n=i[a],n&&n[1]in document){for(a=0;a<n.length;a++)s[i[0][a]]=n[a];return s}return!1})(),e={fullscreenchange:r.fullscreenchange,fullscreenerror:r.fullscreenerror},t={request:function(i){return new Promise(function(a,u){var s=function o(){t.off("fullscreenchange",o),a()};t.on("fullscreenchange",s),i=i||document.documentElement;var h=i[r.requestFullscreen]();h instanceof Promise&&h.then(s).catch(u)})},exit:function(){return new Promise(function(i,a){if(!t.isFullscreen){i();return}var u=function h(){t.off("fullscreenchange",h),i()};t.on("fullscreenchange",u);var s=document[r.exitFullscreen]();s instanceof Promise&&s.then(u).catch(a)})},on:function(i,a){var u=e[i];u&&document.addEventListener(u,a)},off:function(i,a){var u=e[i];u&&document.removeEventListener(u,a)}};return Object.defineProperties(t,{isFullscreen:{get:function(){return!!document[r.fullscreenElement]}},element:{enumerable:!0,get:function(){return document[r.fullscreenElement]}},isEnabled:{enumerable:!0,get:function(){return!!document[r.fullscreenEnabled]}}}),t}var tt={role:"viewer",autoPlayMuted:!0,allowedDrift:.3,maxAllowedDrift:1,minCheckInterval:.1,maxRateAdjustment:.2,maxTimeToCatchUp:1},rt=(function(r){je(t,r);var e=De(t);function t(n,i){var a,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=arguments.length>3?arguments[3]:void 0;return ke(this,t),a=e.call(this),K(ee(a),"logger",void 0),K(ee(a),"speedAdjustment",0),K(ee(a),"adjustSpeed",(function(){var h=W(R().mark(function o(b,k){var T;return R().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:if(a.speedAdjustment!==k){g.next=2;break}return g.abrupt("return");case 2:return g.next=4,b.getPlaybackRate();case 4:return g.t0=g.sent,g.t1=a.speedAdjustment,g.t2=g.t0-g.t1,g.t3=k,T=g.t2+g.t3,a.log("New playbackRate: ".concat(T)),g.next=12,b.setPlaybackRate(T);case 12:a.speedAdjustment=k;case 13:case"end":return g.stop()}},o)}));return function(o,b){return h.apply(this,arguments)}})()),a.logger=s,a.init(i,n,he(he({},tt),u)),a}return Pe(t,[{key:"disconnect",value:function(){this.dispatchEvent(new Event("disconnect"))}},{key:"init",value:(function(){var n=W(R().mark(function a(u,s,h){var o=this,b,k,T;return R().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.next=2,this.waitForTOReadyState(u,"open");case 2:if(h.role!=="viewer"){g.next=10;break}return g.next=5,this.updatePlayer(u,s,h);case 5:b=ve(u,"change",function(){return o.updatePlayer(u,s,h)}),k=this.maintainPlaybackPosition(u,s,h),this.addEventListener("disconnect",function(){k.cancel(),b.cancel()}),g.next=14;break;case 10:return g.next=12,this.updateTimingObject(u,s);case 12:T=ve(s,["seeked","play","pause","ratechange"],function(){return o.updateTimingObject(u,s)},"on","off"),this.addEventListener("disconnect",function(){return T.cancel()});case 14:case"end":return g.stop()}},a,this)}));function i(a,u,s){return n.apply(this,arguments)}return i})()},{key:"updateTimingObject",value:(function(){var n=W(R().mark(function a(u,s){return R().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.t0=u,o.next=3,s.getCurrentTime();case 3:return o.t1=o.sent,o.next=6,s.getPaused();case 6:if(!o.sent){o.next=10;break}o.t2=0,o.next=13;break;case 10:return o.next=12,s.getPlaybackRate();case 12:o.t2=o.sent;case 13:o.t3=o.t2,o.t4={position:o.t1,velocity:o.t3},o.t0.update.call(o.t0,o.t4);case 16:case"end":return o.stop()}},a)}));function i(a,u){return n.apply(this,arguments)}return i})()},{key:"updatePlayer",value:(function(){var n=W(R().mark(function a(u,s,h){var o,b,k;return R().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:if(o=u.query(),b=o.position,k=o.velocity,typeof b=="number"&&s.setCurrentTime(b),typeof k!="number"){P.next=25;break}if(k!==0){P.next=11;break}return P.next=6,s.getPaused();case 6:if(P.t0=P.sent,P.t0!==!1){P.next=9;break}s.pause();case 9:P.next=25;break;case 11:if(!(k>0)){P.next=25;break}return P.next=14,s.getPaused();case 14:if(P.t1=P.sent,P.t1!==!0){P.next=19;break}return P.next=18,s.play().catch((function(){var g=W(R().mark(function _(O){return R().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:if(!(O.name==="NotAllowedError"&&h.autoPlayMuted)){m.next=5;break}return m.next=3,s.setMuted(!0);case 3:return m.next=5,s.play().catch(function(p){return console.error("Couldn't play the video from TimingSrcConnector. Error:",p)});case 5:case"end":return m.stop()}},_)}));return function(_){return g.apply(this,arguments)}})());case 18:this.updatePlayer(u,s,h);case 19:return P.next=21,s.getPlaybackRate();case 21:if(P.t2=P.sent,P.t3=k,P.t2===P.t3){P.next=25;break}s.setPlaybackRate(k);case 25:case"end":return P.stop()}},a,this)}));function i(a,u,s){return n.apply(this,arguments)}return i})()},{key:"maintainPlaybackPosition",value:function(i,a,u){var s=this,h=u.allowedDrift,o=u.maxAllowedDrift,b=u.minCheckInterval,k=u.maxRateAdjustment,T=u.maxTimeToCatchUp,P=Math.min(T,Math.max(b,o))*1e3,g=(function(){var O=W(R().mark(function N(){var m,p,f,v,E;return R().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:if(y.t0=i.query().velocity===0,y.t0){y.next=6;break}return y.next=4,a.getPaused();case 4:y.t1=y.sent,y.t0=y.t1===!0;case 6:if(!y.t0){y.next=8;break}return y.abrupt("return");case 8:return y.t2=i.query().position,y.next=11,a.getCurrentTime();case 11:if(y.t3=y.sent,m=y.t2-y.t3,p=Math.abs(m),s.log("Drift: ".concat(m)),!(p>o)){y.next=22;break}return y.next=18,s.adjustSpeed(a,0);case 18:a.setCurrentTime(i.query().position),s.log("Resync by currentTime"),y.next=29;break;case 22:if(!(p>h)){y.next=29;break}return f=p/T,v=k,E=f<v?(v-f)/2:v,y.next=28,s.adjustSpeed(a,E*Math.sign(m));case 28:s.log("Resync by playbackRate");case 29:case"end":return y.stop()}},N)}));return function(){return O.apply(this,arguments)}})(),_=setInterval(function(){return g()},P);return{cancel:function(){return clearInterval(_)}}}},{key:"log",value:function(i){var a;(a=this.logger)===null||a===void 0||a.call(this,"TimingSrcConnector: ".concat(i))}},{key:"waitForTOReadyState",value:function(i,a){return new Promise(function(u){var s=function h(){i.readyState===a?u():i.addEventListener("readystatechange",h,{once:!0})};s()})}}]),t})(se(EventTarget)),B=new WeakMap,ae=new WeakMap,I={},le=(function(){function r(e){var t=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(ke(this,r),window.jQuery&&e instanceof jQuery&&(e.length>1&&window.console&&console.warn&&console.warn("A jQuery object with multiple elements was passed, using the first element."),e=e[0]),typeof document<"u"&&typeof e=="string"&&(e=document.getElementById(e)),!$e(e))throw new TypeError("You must pass either a valid element or a valid id.");if(e.nodeName!=="IFRAME"){var i=e.querySelector("iframe");i&&(e=i)}if(e.nodeName==="IFRAME"&&!z(e.getAttribute("src")||""))throw new Error("The player element passed isn’t a Vimeo embed.");if(B.has(e))return B.get(e);this._window=e.ownerDocument.defaultView,this.element=e,this.origin="*";var a=new D(function(s,h){if(t._onMessage=function(k){if(!(!z(k.origin)||t.element.contentWindow!==k.source)){t.origin==="*"&&(t.origin=k.origin);var T=ne(k.data),P=T&&T.event==="error",g=P&&T.data&&T.data.method==="ready";if(g){var _=new Error(T.data.message);_.name=T.data.name,h(_);return}var O=T&&T.event==="ready",N=T&&T.method==="ping";if(O||N){t.element.setAttribute("data-ready","true"),s();return}Qe(t,T)}},t._window.addEventListener("message",t._onMessage),t.element.nodeName!=="IFRAME"){var o=_e(e,n),b=Oe(o);Ae(b,o,e).then(function(k){var T=ce(k,e);return t.element=T,t._originalElement=e,Ue(e,T),B.set(t.element,t),k}).catch(h)}});if(ae.set(this,a),B.set(this.element,this),this.element.nodeName==="IFRAME"&&x(this,"ping"),I.isEnabled){var u=function(){return I.exit()};this.fullscreenchangeHandler=function(){I.isFullscreen?Y(t,"event:exitFullscreen",u):re(t,"event:exitFullscreen",u),t.ready().then(function(){x(t,"fullscreenchange",I.isFullscreen)})},I.on("fullscreenchange",this.fullscreenchangeHandler)}return this}return Pe(r,[{key:"callMethod",value:function(t){for(var n=this,i=arguments.length,a=new Array(i>1?i-1:0),u=1;u<i;u++)a[u-1]=arguments[u];if(t==null)throw new TypeError("You must pass a method name.");return new D(function(s,h){return n.ready().then(function(){Y(n,t,{resolve:s,reject:h}),x(n,t,a)}).catch(h)})}},{key:"get",value:function(t){var n=this;return new D(function(i,a){return t=pe(t,"get"),n.ready().then(function(){Y(n,t,{resolve:i,reject:a}),x(n,t)}).catch(a)})}},{key:"set",value:function(t,n){var i=this;return new D(function(a,u){if(t=pe(t,"set"),n==null)throw new TypeError("There must be a value to set.");return i.ready().then(function(){Y(i,t,{resolve:a,reject:u}),x(i,t,n)}).catch(u)})}},{key:"on",value:function(t,n){if(!t)throw new TypeError("You must pass an event name.");if(!n)throw new TypeError("You must pass a callback function.");if(typeof n!="function")throw new TypeError("The callback must be a function.");var i=te(this,"event:".concat(t));i.length===0&&this.callMethod("addEventListener",t).catch(function(){}),Y(this,"event:".concat(t),n)}},{key:"off",value:function(t,n){if(!t)throw new TypeError("You must pass an event name.");if(n&&typeof n!="function")throw new TypeError("The callback must be a function.");var i=re(this,"event:".concat(t),n);i&&this.callMethod("removeEventListener",t).catch(function(a){})}},{key:"loadVideo",value:function(t){return this.callMethod("loadVideo",t)}},{key:"ready",value:function(){var t=ae.get(this)||new D(function(n,i){i(new Error("Unknown player. Probably unloaded."))});return D.resolve(t)}},{key:"addCuePoint",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.callMethod("addCuePoint",{time:t,data:n})}},{key:"removeCuePoint",value:function(t){return this.callMethod("removeCuePoint",t)}},{key:"enableTextTrack",value:function(t,n){if(!t)throw new TypeError("You must pass a language.");return this.callMethod("enableTextTrack",{language:t,kind:n})}},{key:"disableTextTrack",value:function(){return this.callMethod("disableTextTrack")}},{key:"pause",value:function(){return this.callMethod("pause")}},{key:"play",value:function(){return this.callMethod("play")}},{key:"requestFullscreen",value:function(){return I.isEnabled?I.request(this.element):this.callMethod("requestFullscreen")}},{key:"exitFullscreen",value:function(){return I.isEnabled?I.exit():this.callMethod("exitFullscreen")}},{key:"getFullscreen",value:function(){return I.isEnabled?D.resolve(I.isFullscreen):this.get("fullscreen")}},{key:"requestPictureInPicture",value:function(){return this.callMethod("requestPictureInPicture")}},{key:"exitPictureInPicture",value:function(){return this.callMethod("exitPictureInPicture")}},{key:"getPictureInPicture",value:function(){return this.get("pictureInPicture")}},{key:"remotePlaybackPrompt",value:function(){return this.callMethod("remotePlaybackPrompt")}},{key:"unload",value:function(){return this.callMethod("unload")}},{key:"destroy",value:function(){var t=this;return new D(function(n){if(ae.delete(t),B.delete(t.element),t._originalElement&&(B.delete(t._originalElement),t._originalElement.removeAttribute("data-vimeo-initialized")),t.element&&t.element.nodeName==="IFRAME"&&t.element.parentNode&&(t.element.parentNode.parentNode&&t._originalElement&&t._originalElement!==t.element.parentNode?t.element.parentNode.parentNode.removeChild(t.element.parentNode):t.element.parentNode.removeChild(t.element)),t.element&&t.element.nodeName==="DIV"&&t.element.parentNode){t.element.removeAttribute("data-vimeo-initialized");var i=t.element.querySelector("iframe");i&&i.parentNode&&(i.parentNode.parentNode&&t._originalElement&&t._originalElement!==i.parentNode?i.parentNode.parentNode.removeChild(i.parentNode):i.parentNode.removeChild(i))}t._window.removeEventListener("message",t._onMessage),I.isEnabled&&I.off("fullscreenchange",t.fullscreenchangeHandler),n()})}},{key:"getAutopause",value:function(){return this.get("autopause")}},{key:"setAutopause",value:function(t){return this.set("autopause",t)}},{key:"getBuffered",value:function(){return this.get("buffered")}},{key:"getCameraProps",value:function(){return this.get("cameraProps")}},{key:"setCameraProps",value:function(t){return this.set("cameraProps",t)}},{key:"getChapters",value:function(){return this.get("chapters")}},{key:"getCurrentChapter",value:function(){return this.get("currentChapter")}},{key:"getColor",value:function(){return this.get("color")}},{key:"getColors",value:function(){return D.all([this.get("colorOne"),this.get("colorTwo"),this.get("colorThree"),this.get("colorFour")])}},{key:"setColor",value:function(t){return this.set("color",t)}},{key:"setColors",value:function(t){if(!Array.isArray(t))return new D(function(a,u){return u(new TypeError("Argument must be an array."))});var n=new D(function(a){return a(null)}),i=[t[0]?this.set("colorOne",t[0]):n,t[1]?this.set("colorTwo",t[1]):n,t[2]?this.set("colorThree",t[2]):n,t[3]?this.set("colorFour",t[3]):n];return D.all(i)}},{key:"getCuePoints",value:function(){return this.get("cuePoints")}},{key:"getCurrentTime",value:function(){return this.get("currentTime")}},{key:"setCurrentTime",value:function(t){return this.set("currentTime",t)}},{key:"getDuration",value:function(){return this.get("duration")}},{key:"getEnded",value:function(){return this.get("ended")}},{key:"getLoop",value:function(){return this.get("loop")}},{key:"setLoop",value:function(t){return this.set("loop",t)}},{key:"setMuted",value:function(t){return this.set("muted",t)}},{key:"getMuted",value:function(){return this.get("muted")}},{key:"getPaused",value:function(){return this.get("paused")}},{key:"getPlaybackRate",value:function(){return this.get("playbackRate")}},{key:"setPlaybackRate",value:function(t){return this.set("playbackRate",t)}},{key:"getPlayed",value:function(){return this.get("played")}},{key:"getQualities",value:function(){return this.get("qualities")}},{key:"getQuality",value:function(){return this.get("quality")}},{key:"setQuality",value:function(t){return this.set("quality",t)}},{key:"getRemotePlaybackAvailability",value:function(){return this.get("remotePlaybackAvailability")}},{key:"getRemotePlaybackState",value:function(){return this.get("remotePlaybackState")}},{key:"getSeekable",value:function(){return this.get("seekable")}},{key:"getSeeking",value:function(){return this.get("seeking")}},{key:"getTextTracks",value:function(){return this.get("textTracks")}},{key:"getVideoEmbedCode",value:function(){return this.get("videoEmbedCode")}},{key:"getVideoId",value:function(){return this.get("videoId")}},{key:"getVideoTitle",value:function(){return this.get("videoTitle")}},{key:"getVideoWidth",value:function(){return this.get("videoWidth")}},{key:"getVideoHeight",value:function(){return this.get("videoHeight")}},{key:"getVideoUrl",value:function(){return this.get("videoUrl")}},{key:"getVolume",value:function(){return this.get("volume")}},{key:"setVolume",value:function(t){return this.set("volume",t)}},{key:"setTimingSrc",value:(function(){var e=W(R().mark(function n(i,a){var u=this,s;return R().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(i){o.next=2;break}throw new TypeError("A Timing Object must be provided.");case 2:return o.next=4,this.ready();case 4:return s=new rt(this,i,a),x(this,"notifyTimingObjectConnect"),s.addEventListener("disconnect",function(){return x(u,"notifyTimingObjectDisconnect")}),o.abrupt("return",s);case 8:case"end":return o.stop()}},n,this)}));function t(n,i){return e.apply(this,arguments)}return t})()}]),r})();Se||(I=et(),Je(),Xe(),Ke(),Ze());const nt="https://player.vimeo.com/video",it="https://vimeo.com/event",at=/vimeo\.com\/(video\/|event\/)?(\d+)(?:\/([\w-]+))?/;function me(r,e={}){const t={src:ot(r,e),frameborder:0,width:"100%",height:"100%",allow:"accelerometer; fullscreen; autoplay; encrypted-media; gyroscope; picture-in-picture"};return e.config&&(t["data-config"]=JSON.stringify(e.config)),`
|
|
1
|
+
import{b as U,R as Ie}from"./sentry-Dwm-tWfG.js";(function(){try{var r=typeof window<"u"?window:typeof U<"u"?U:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new r.Error().stack;e&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[e]="a94fcb44-e563-4d1e-ac81-2b4e73490513",r._sentryDebugIdIdentifier="sentry-dbid-a94fcb44-e563-4d1e-ac81-2b4e73490513")}catch{}})();function fe(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),t.push.apply(t,n)}return t}function he(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?fe(Object(t),!0).forEach(function(n){K(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):fe(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function R(){R=function(){return r};var r={},e=Object.prototype,t=e.hasOwnProperty,n=Object.defineProperty||function(l,c,d){l[c]=d.value},i=typeof Symbol=="function"?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function h(l,c,d){return Object.defineProperty(l,c,{value:d,enumerable:!0,configurable:!0,writable:!0}),l[c]}try{h({},"")}catch{h=function(c,d,M){return c[d]=M}}function o(l,c,d,M){var w=c&&c.prototype instanceof T?c:T,C=Object.create(w.prototype),A=new L(M||[]);return n(C,"_invoke",{value:v(l,d,A)}),C}function b(l,c,d){try{return{type:"normal",arg:l.call(c,d)}}catch(M){return{type:"throw",arg:M}}}r.wrap=o;var k={};function T(){}function P(){}function g(){}var _={};h(_,a,function(){return this});var O=Object.getPrototypeOf,N=O&&O(O(q([])));N&&N!==e&&t.call(N,a)&&(_=N);var m=g.prototype=T.prototype=Object.create(_);function p(l){["next","throw","return"].forEach(function(c){h(l,c,function(d){return this._invoke(c,d)})})}function f(l,c){function d(w,C,A,j){var F=b(l[w],l,C);if(F.type!=="throw"){var H=F.arg,Q=H.value;return Q&&typeof Q=="object"&&t.call(Q,"__await")?c.resolve(Q.__await).then(function($){d("next",$,A,j)},function($){d("throw",$,A,j)}):c.resolve(Q).then(function($){H.value=$,A(H)},function($){return d("throw",$,A,j)})}j(F.arg)}var M;n(this,"_invoke",{value:function(w,C){function A(){return new c(function(j,F){d(w,C,j,F)})}return M=M?M.then(A,A):A()}})}function v(l,c,d){var M="suspendedStart";return function(w,C){if(M==="executing")throw new Error("Generator is already running");if(M==="completed"){if(w==="throw")throw C;return ie()}for(d.method=w,d.arg=C;;){var A=d.delegate;if(A){var j=E(A,d);if(j){if(j===k)continue;return j}}if(d.method==="next")d.sent=d._sent=d.arg;else if(d.method==="throw"){if(M==="suspendedStart")throw M="completed",d.arg;d.dispatchException(d.arg)}else d.method==="return"&&d.abrupt("return",d.arg);M="executing";var F=b(l,c,d);if(F.type==="normal"){if(M=d.done?"completed":"suspendedYield",F.arg===k)continue;return{value:F.arg,done:d.done}}F.type==="throw"&&(M="completed",d.method="throw",d.arg=F.arg)}}}function E(l,c){var d=c.method,M=l.iterator[d];if(M===void 0)return c.delegate=null,d==="throw"&&l.iterator.return&&(c.method="return",c.arg=void 0,E(l,c),c.method==="throw")||d!=="return"&&(c.method="throw",c.arg=new TypeError("The iterator does not provide a '"+d+"' method")),k;var w=b(M,l.iterator,c.arg);if(w.type==="throw")return c.method="throw",c.arg=w.arg,c.delegate=null,k;var C=w.arg;return C?C.done?(c[l.resultName]=C.value,c.next=l.nextLoc,c.method!=="return"&&(c.method="next",c.arg=void 0),c.delegate=null,k):C:(c.method="throw",c.arg=new TypeError("iterator result is not an object"),c.delegate=null,k)}function S(l){var c={tryLoc:l[0]};1 in l&&(c.catchLoc=l[1]),2 in l&&(c.finallyLoc=l[2],c.afterLoc=l[3]),this.tryEntries.push(c)}function y(l){var c=l.completion||{};c.type="normal",delete c.arg,l.completion=c}function L(l){this.tryEntries=[{tryLoc:"root"}],l.forEach(S,this),this.reset(!0)}function q(l){if(l){var c=l[a];if(c)return c.call(l);if(typeof l.next=="function")return l;if(!isNaN(l.length)){var d=-1,M=function w(){for(;++d<l.length;)if(t.call(l,d))return w.value=l[d],w.done=!1,w;return w.value=void 0,w.done=!0,w};return M.next=M}}return{next:ie}}function ie(){return{value:void 0,done:!0}}return P.prototype=g,n(m,"constructor",{value:g,configurable:!0}),n(g,"constructor",{value:P,configurable:!0}),P.displayName=h(g,s,"GeneratorFunction"),r.isGeneratorFunction=function(l){var c=typeof l=="function"&&l.constructor;return!!c&&(c===P||(c.displayName||c.name)==="GeneratorFunction")},r.mark=function(l){return Object.setPrototypeOf?Object.setPrototypeOf(l,g):(l.__proto__=g,h(l,s,"GeneratorFunction")),l.prototype=Object.create(m),l},r.awrap=function(l){return{__await:l}},p(f.prototype),h(f.prototype,u,function(){return this}),r.AsyncIterator=f,r.async=function(l,c,d,M,w){w===void 0&&(w=Promise);var C=new f(o(l,c,d,M),w);return r.isGeneratorFunction(c)?C:C.next().then(function(A){return A.done?A.value:C.next()})},p(m),h(m,s,"Generator"),h(m,a,function(){return this}),h(m,"toString",function(){return"[object Generator]"}),r.keys=function(l){var c=Object(l),d=[];for(var M in c)d.push(M);return d.reverse(),function w(){for(;d.length;){var C=d.pop();if(C in c)return w.value=C,w.done=!1,w}return w.done=!0,w}},r.values=q,L.prototype={constructor:L,reset:function(l){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(y),!l)for(var c in this)c.charAt(0)==="t"&&t.call(this,c)&&!isNaN(+c.slice(1))&&(this[c]=void 0)},stop:function(){this.done=!0;var l=this.tryEntries[0].completion;if(l.type==="throw")throw l.arg;return this.rval},dispatchException:function(l){if(this.done)throw l;var c=this;function d(F,H){return C.type="throw",C.arg=l,c.next=F,H&&(c.method="next",c.arg=void 0),!!H}for(var M=this.tryEntries.length-1;M>=0;--M){var w=this.tryEntries[M],C=w.completion;if(w.tryLoc==="root")return d("end");if(w.tryLoc<=this.prev){var A=t.call(w,"catchLoc"),j=t.call(w,"finallyLoc");if(A&&j){if(this.prev<w.catchLoc)return d(w.catchLoc,!0);if(this.prev<w.finallyLoc)return d(w.finallyLoc)}else if(A){if(this.prev<w.catchLoc)return d(w.catchLoc,!0)}else{if(!j)throw new Error("try statement without catch or finally");if(this.prev<w.finallyLoc)return d(w.finallyLoc)}}}},abrupt:function(l,c){for(var d=this.tryEntries.length-1;d>=0;--d){var M=this.tryEntries[d];if(M.tryLoc<=this.prev&&t.call(M,"finallyLoc")&&this.prev<M.finallyLoc){var w=M;break}}w&&(l==="break"||l==="continue")&&w.tryLoc<=c&&c<=w.finallyLoc&&(w=null);var C=w?w.completion:{};return C.type=l,C.arg=c,w?(this.method="next",this.next=w.finallyLoc,k):this.complete(C)},complete:function(l,c){if(l.type==="throw")throw l.arg;return l.type==="break"||l.type==="continue"?this.next=l.arg:l.type==="return"?(this.rval=this.arg=l.arg,this.method="return",this.next="end"):l.type==="normal"&&c&&(this.next=c),k},finish:function(l){for(var c=this.tryEntries.length-1;c>=0;--c){var d=this.tryEntries[c];if(d.finallyLoc===l)return this.complete(d.completion,d.afterLoc),y(d),k}},catch:function(l){for(var c=this.tryEntries.length-1;c>=0;--c){var d=this.tryEntries[c];if(d.tryLoc===l){var M=d.completion;if(M.type==="throw"){var w=M.arg;y(d)}return w}}throw new Error("illegal catch attempt")},delegateYield:function(l,c,d){return this.delegate={iterator:q(l),resultName:c,nextLoc:d},this.method==="next"&&(this.arg=void 0),k}},r}function de(r,e,t,n,i,a,u){try{var s=r[a](u),h=s.value}catch(o){t(o);return}s.done?e(h):Promise.resolve(h).then(n,i)}function W(r){return function(){var e=this,t=arguments;return new Promise(function(n,i){var a=r.apply(e,t);function u(h){de(a,n,i,u,s,"next",h)}function s(h){de(a,n,i,u,s,"throw",h)}u(void 0)})}}function ke(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function Le(r,e){for(var t=0;t<e.length;t++){var n=e[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,Me(n.key),n)}}function Pe(r,e,t){return e&&Le(r.prototype,e),Object.defineProperty(r,"prototype",{writable:!1}),r}function K(r,e,t){return e=Me(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function je(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&X(r,e)}function J(r){return J=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},J(r)}function X(r,e){return X=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},X(r,e)}function Te(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Z(r,e,t){return Te()?Z=Reflect.construct.bind():Z=function(i,a,u){var s=[null];s.push.apply(s,a);var h=Function.bind.apply(i,s),o=new h;return u&&X(o,u.prototype),o},Z.apply(null,arguments)}function Fe(r){return Function.toString.call(r).indexOf("[native code]")!==-1}function se(r){var e=typeof Map=="function"?new Map:void 0;return se=function(n){if(n===null||!Fe(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(n))return e.get(n);e.set(n,i)}function i(){return Z(n,arguments,J(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),X(i,n)},se(r)}function ee(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function qe(r,e){if(e&&(typeof e=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ee(r)}function De(r){var e=Te();return function(){var n=J(r),i;if(e){var a=J(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return qe(this,i)}}function Ve(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(r)}function Me(r){var e=Ve(r,"string");return typeof e=="symbol"?e:String(e)}var Se=typeof U<"u"&&{}.toString.call(U)==="[object global]";function pe(r,e){return r.indexOf(e.toLowerCase())===0?r:"".concat(e.toLowerCase()).concat(r.substr(0,1).toUpperCase()).concat(r.substr(1))}function $e(r){return!!(r&&r.nodeType===1&&"nodeName"in r&&r.ownerDocument&&r.ownerDocument.defaultView)}function xe(r){return!isNaN(parseFloat(r))&&isFinite(r)&&Math.floor(r)==r}function z(r){return/^(https?:)?\/\/((((player|www)\.)?vimeo\.com)|((player\.)?[a-zA-Z0-9-]+\.(videoji\.(hk|cn)|vimeo\.work)))(?=$|\/)/.test(r)}function Ce(r){var e=/^https:\/\/player\.((vimeo\.com)|([a-zA-Z0-9-]+\.(videoji\.(hk|cn)|vimeo\.work)))\/video\/\d+/;return e.test(r)}function We(r){for(var e=(r||"").match(/^(?:https?:)?(?:\/\/)?([^/?]+)/),t=(e&&e[1]||"").replace("player.",""),n=[".videoji.hk",".vimeo.work",".videoji.cn"],i=0,a=n;i<a.length;i++){var u=a[i];if(t.endsWith(u))return t}return"vimeo.com"}function Oe(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=r.id,t=r.url,n=e||t;if(!n)throw new Error("An id or url must be passed, either in an options object or as a data-vimeo-id or data-vimeo-url attribute.");if(xe(n))return"https://vimeo.com/".concat(n);if(z(n))return n.replace("http:","https:");throw e?new TypeError("“".concat(e,"” is not a valid video id.")):new TypeError("“".concat(n,"” is not a vimeo.com url."))}var ve=function(e,t,n){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"addEventListener",a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"removeEventListener",u=typeof t=="string"?[t]:t;return u.forEach(function(s){e[i](s,n)}),{cancel:function(){return u.forEach(function(h){return e[a](h,n)})}}},ze=typeof Array.prototype.indexOf<"u",He=typeof window<"u"&&typeof window.postMessage<"u";if(!Se&&(!ze||!He))throw new Error("Sorry, the Vimeo Player API is not available in this browser.");var G=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof U<"u"?U:typeof self<"u"?self:{};function Be(r,e){return e={exports:{}},r(e,e.exports),e.exports}(function(r){if(r.WeakMap)return;var e=Object.prototype.hasOwnProperty,t=Object.defineProperty&&(function(){try{return Object.defineProperty({},"x",{value:1}).x===1}catch{}})(),n=function(a,u,s){t?Object.defineProperty(a,u,{configurable:!0,writable:!0,value:s}):a[u]=s};r.WeakMap=(function(){function a(){if(this===void 0)throw new TypeError("Constructor WeakMap requires 'new'");if(n(this,"_id",s("_WeakMap")),arguments.length>0)throw new TypeError("WeakMap iterable is not supported")}n(a.prototype,"delete",function(o){if(u(this,"delete"),!i(o))return!1;var b=o[this._id];return b&&b[0]===o?(delete o[this._id],!0):!1}),n(a.prototype,"get",function(o){if(u(this,"get"),!!i(o)){var b=o[this._id];if(b&&b[0]===o)return b[1]}}),n(a.prototype,"has",function(o){if(u(this,"has"),!i(o))return!1;var b=o[this._id];return!!(b&&b[0]===o)}),n(a.prototype,"set",function(o,b){if(u(this,"set"),!i(o))throw new TypeError("Invalid value used as weak map key");var k=o[this._id];return k&&k[0]===o?(k[1]=b,this):(n(o,this._id,[o,b]),this)});function u(o,b){if(!i(o)||!e.call(o,"_id"))throw new TypeError(b+" method called on incompatible receiver "+typeof o)}function s(o){return o+"_"+h()+"."+h()}function h(){return Math.random().toString().substring(2)}return n(a,"_polyfill",!0),a})();function i(a){return Object(a)===a}})(typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:G);var D=Be(function(r){(function(t,n,i){n[t]=n[t]||i(),r.exports&&(r.exports=n[t])})("Promise",G,function(){var t,n,i,a=Object.prototype.toString,u=typeof setImmediate<"u"?function(p){return setImmediate(p)}:setTimeout;try{Object.defineProperty({},"x",{}),t=function(p,f,v,E){return Object.defineProperty(p,f,{value:v,writable:!0,configurable:E!==!1})}}catch{t=function(f,v,E){return f[v]=E,f}}i=(function(){var p,f,v;function E(S,y){this.fn=S,this.self=y,this.next=void 0}return{add:function(y,L){v=new E(y,L),f?f.next=v:p=v,f=v,v=void 0},drain:function(){var y=p;for(p=f=n=void 0;y;)y.fn.call(y.self),y=y.next}}})();function s(m,p){i.add(m,p),n||(n=u(i.drain))}function h(m){var p,f=typeof m;return m!=null&&(f=="object"||f=="function")&&(p=m.then),typeof p=="function"?p:!1}function o(){for(var m=0;m<this.chain.length;m++)b(this,this.state===1?this.chain[m].success:this.chain[m].failure,this.chain[m]);this.chain.length=0}function b(m,p,f){var v,E;try{p===!1?f.reject(m.msg):(p===!0?v=m.msg:v=p.call(void 0,m.msg),v===f.promise?f.reject(TypeError("Promise-chain cycle")):(E=h(v))?E.call(v,f.resolve,f.reject):f.resolve(v))}catch(S){f.reject(S)}}function k(m){var p,f=this;if(!f.triggered){f.triggered=!0,f.def&&(f=f.def);try{(p=h(m))?s(function(){var v=new g(f);try{p.call(m,function(){k.apply(v,arguments)},function(){T.apply(v,arguments)})}catch(E){T.call(v,E)}}):(f.msg=m,f.state=1,f.chain.length>0&&s(o,f))}catch(v){T.call(new g(f),v)}}}function T(m){var p=this;p.triggered||(p.triggered=!0,p.def&&(p=p.def),p.msg=m,p.state=2,p.chain.length>0&&s(o,p))}function P(m,p,f,v){for(var E=0;E<p.length;E++)(function(y){m.resolve(p[y]).then(function(q){f(y,q)},v)})(E)}function g(m){this.def=m,this.triggered=!1}function _(m){this.promise=m,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function O(m){if(typeof m!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var p=new _(this);this.then=function(v,E){var S={success:typeof v=="function"?v:!0,failure:typeof E=="function"?E:!1};return S.promise=new this.constructor(function(L,q){if(typeof L!="function"||typeof q!="function")throw TypeError("Not a function");S.resolve=L,S.reject=q}),p.chain.push(S),p.state!==0&&s(o,p),S.promise},this.catch=function(v){return this.then(void 0,v)};try{m.call(void 0,function(v){k.call(p,v)},function(v){T.call(p,v)})}catch(f){T.call(p,f)}}var N=t({},"constructor",O,!1);return O.prototype=N,t(N,"__NPO__",0,!1),t(O,"resolve",function(p){var f=this;return p&&typeof p=="object"&&p.__NPO__===1?p:new f(function(E,S){if(typeof E!="function"||typeof S!="function")throw TypeError("Not a function");E(p)})}),t(O,"reject",function(p){return new this(function(v,E){if(typeof v!="function"||typeof E!="function")throw TypeError("Not a function");E(p)})}),t(O,"all",function(p){var f=this;return a.call(p)!="[object Array]"?f.reject(TypeError("Not an array")):p.length===0?f.resolve([]):new f(function(E,S){if(typeof E!="function"||typeof S!="function")throw TypeError("Not a function");var y=p.length,L=Array(y),q=0;P(f,p,function(l,c){L[l]=c,++q===y&&E(L)},S)})}),t(O,"race",function(p){var f=this;return a.call(p)!="[object Array]"?f.reject(TypeError("Not an array")):new f(function(E,S){if(typeof E!="function"||typeof S!="function")throw TypeError("Not a function");P(f,p,function(L,q){E(q)},S)})}),O})}),V=new WeakMap;function Y(r,e,t){var n=V.get(r.element)||{};e in n||(n[e]=[]),n[e].push(t),V.set(r.element,n)}function te(r,e){var t=V.get(r.element)||{};return t[e]||[]}function re(r,e,t){var n=V.get(r.element)||{};if(!n[e])return!0;if(!t)return n[e]=[],V.set(r.element,n),!0;var i=n[e].indexOf(t);return i!==-1&&n[e].splice(i,1),V.set(r.element,n),n[e]&&n[e].length===0}function Ge(r,e){var t=te(r,e);if(t.length<1)return!1;var n=t.shift();return re(r,e,n),n}function Ue(r,e){var t=V.get(r);V.set(e,t),V.delete(r)}function ne(r){if(typeof r=="string")try{r=JSON.parse(r)}catch(e){return console.warn(e),{}}return r}function x(r,e,t){if(!(!r.element.contentWindow||!r.element.contentWindow.postMessage)){var n={method:e};t!==void 0&&(n.value=t);var i=parseFloat(navigator.userAgent.toLowerCase().replace(/^.*msie (\d+).*$/,"$1"));i>=8&&i<10&&(n=JSON.stringify(n)),r.element.contentWindow.postMessage(n,r.origin)}}function Qe(r,e){e=ne(e);var t=[],n;if(e.event){if(e.event==="error"){var i=te(r,e.data.method);i.forEach(function(u){var s=new Error(e.data.message);s.name=e.data.name,u.reject(s),re(r,e.data.method,u)})}t=te(r,"event:".concat(e.event)),n=e.data}else if(e.method){var a=Ge(r,e.method);a&&(t.push(a),n=e.value)}t.forEach(function(u){try{if(typeof u=="function"){u.call(r,n);return}u.resolve(n)}catch{}})}var Ye=["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 _e(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Ye.reduce(function(t,n){var i=r.getAttribute("data-vimeo-".concat(n));return(i||i==="")&&(t[n]=i===""?1:i),t},e)}function ce(r,e){var t=r.html;if(!e)throw new TypeError("An element must be provided");if(e.getAttribute("data-vimeo-initialized")!==null)return e.querySelector("iframe");var n=document.createElement("div");return n.innerHTML=t,e.appendChild(n.firstChild),e.setAttribute("data-vimeo-initialized","true"),e.querySelector("iframe")}function Ae(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=arguments.length>2?arguments[2]:void 0;return new Promise(function(n,i){if(!z(r))throw new TypeError("“".concat(r,"” is not a vimeo.com url."));var a=We(r),u="https://".concat(a,"/api/oembed.json?url=").concat(encodeURIComponent(r));for(var s in e)e.hasOwnProperty(s)&&(u+="&".concat(s,"=").concat(encodeURIComponent(e[s])));var h="XDomainRequest"in window?new XDomainRequest:new XMLHttpRequest;h.open("GET",u,!0),h.onload=function(){if(h.status===404){i(new Error("“".concat(r,"” was not found.")));return}if(h.status===403){i(new Error("“".concat(r,"” is not embeddable.")));return}try{var o=JSON.parse(h.responseText);if(o.domain_status_code===403){ce(o,t),i(new Error("“".concat(r,"” is not embeddable.")));return}n(o)}catch(b){i(b)}},h.onerror=function(){var o=h.status?" (".concat(h.status,")"):"";i(new Error("There was an error fetching the embed code from Vimeo".concat(o,".")))},h.send()})}function Je(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document,e=[].slice.call(r.querySelectorAll("[data-vimeo-id], [data-vimeo-url]")),t=function(i){"console"in window&&console.error&&console.error("There was an error creating an embed: ".concat(i))};e.forEach(function(n){try{if(n.getAttribute("data-vimeo-defer")!==null)return;var i=_e(n),a=Oe(i);Ae(a,i,n).then(function(u){return ce(u,n)}).catch(t)}catch(u){t(u)}})}function Xe(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;if(!window.VimeoPlayerResizeEmbeds_){window.VimeoPlayerResizeEmbeds_=!0;var e=function(n){if(z(n.origin)&&!(!n.data||n.data.event!=="spacechange")){for(var i=r.querySelectorAll("iframe"),a=0;a<i.length;a++)if(i[a].contentWindow===n.source){var u=i[a].parentElement;u.style.paddingBottom="".concat(n.data.data[0].bottom,"px");break}}};window.addEventListener("message",e)}}function Ke(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;if(!window.VimeoSeoMetadataAppended){window.VimeoSeoMetadataAppended=!0;var e=function(n){if(z(n.origin)){var i=ne(n.data);if(!(!i||i.event!=="ready"))for(var a=r.querySelectorAll("iframe"),u=0;u<a.length;u++){var s=a[u],h=s.contentWindow===n.source;if(Ce(s.src)&&h){var o=new le(s);o.callMethod("appendVideoMetadata",window.location.href)}}}};window.addEventListener("message",e)}}function Ze(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;if(!window.VimeoCheckedUrlTimeParam){window.VimeoCheckedUrlTimeParam=!0;var e=function(i){"console"in window&&console.error&&console.error("There was an error getting video Id: ".concat(i))},t=function(i){if(z(i.origin)){var a=ne(i.data);if(!(!a||a.event!=="ready"))for(var u=r.querySelectorAll("iframe"),s=function(){var b=u[h],k=b.contentWindow===i.source;if(Ce(b.src)&&k){var T=new le(b);T.getVideoId().then(function(P){var g=new RegExp("[?&]vimeo_t_".concat(P,"=([^&#]*)")).exec(window.location.href);if(g&&g[1]){var _=decodeURI(g[1]);T.setCurrentTime(_)}}).catch(e)}},h=0;h<u.length;h++)s()}};window.addEventListener("message",t)}}function et(){var r=(function(){for(var n,i=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],a=0,u=i.length,s={};a<u;a++)if(n=i[a],n&&n[1]in document){for(a=0;a<n.length;a++)s[i[0][a]]=n[a];return s}return!1})(),e={fullscreenchange:r.fullscreenchange,fullscreenerror:r.fullscreenerror},t={request:function(i){return new Promise(function(a,u){var s=function o(){t.off("fullscreenchange",o),a()};t.on("fullscreenchange",s),i=i||document.documentElement;var h=i[r.requestFullscreen]();h instanceof Promise&&h.then(s).catch(u)})},exit:function(){return new Promise(function(i,a){if(!t.isFullscreen){i();return}var u=function h(){t.off("fullscreenchange",h),i()};t.on("fullscreenchange",u);var s=document[r.exitFullscreen]();s instanceof Promise&&s.then(u).catch(a)})},on:function(i,a){var u=e[i];u&&document.addEventListener(u,a)},off:function(i,a){var u=e[i];u&&document.removeEventListener(u,a)}};return Object.defineProperties(t,{isFullscreen:{get:function(){return!!document[r.fullscreenElement]}},element:{enumerable:!0,get:function(){return document[r.fullscreenElement]}},isEnabled:{enumerable:!0,get:function(){return!!document[r.fullscreenEnabled]}}}),t}var tt={role:"viewer",autoPlayMuted:!0,allowedDrift:.3,maxAllowedDrift:1,minCheckInterval:.1,maxRateAdjustment:.2,maxTimeToCatchUp:1},rt=(function(r){je(t,r);var e=De(t);function t(n,i){var a,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=arguments.length>3?arguments[3]:void 0;return ke(this,t),a=e.call(this),K(ee(a),"logger",void 0),K(ee(a),"speedAdjustment",0),K(ee(a),"adjustSpeed",(function(){var h=W(R().mark(function o(b,k){var T;return R().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:if(a.speedAdjustment!==k){g.next=2;break}return g.abrupt("return");case 2:return g.next=4,b.getPlaybackRate();case 4:return g.t0=g.sent,g.t1=a.speedAdjustment,g.t2=g.t0-g.t1,g.t3=k,T=g.t2+g.t3,a.log("New playbackRate: ".concat(T)),g.next=12,b.setPlaybackRate(T);case 12:a.speedAdjustment=k;case 13:case"end":return g.stop()}},o)}));return function(o,b){return h.apply(this,arguments)}})()),a.logger=s,a.init(i,n,he(he({},tt),u)),a}return Pe(t,[{key:"disconnect",value:function(){this.dispatchEvent(new Event("disconnect"))}},{key:"init",value:(function(){var n=W(R().mark(function a(u,s,h){var o=this,b,k,T;return R().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.next=2,this.waitForTOReadyState(u,"open");case 2:if(h.role!=="viewer"){g.next=10;break}return g.next=5,this.updatePlayer(u,s,h);case 5:b=ve(u,"change",function(){return o.updatePlayer(u,s,h)}),k=this.maintainPlaybackPosition(u,s,h),this.addEventListener("disconnect",function(){k.cancel(),b.cancel()}),g.next=14;break;case 10:return g.next=12,this.updateTimingObject(u,s);case 12:T=ve(s,["seeked","play","pause","ratechange"],function(){return o.updateTimingObject(u,s)},"on","off"),this.addEventListener("disconnect",function(){return T.cancel()});case 14:case"end":return g.stop()}},a,this)}));function i(a,u,s){return n.apply(this,arguments)}return i})()},{key:"updateTimingObject",value:(function(){var n=W(R().mark(function a(u,s){return R().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.t0=u,o.next=3,s.getCurrentTime();case 3:return o.t1=o.sent,o.next=6,s.getPaused();case 6:if(!o.sent){o.next=10;break}o.t2=0,o.next=13;break;case 10:return o.next=12,s.getPlaybackRate();case 12:o.t2=o.sent;case 13:o.t3=o.t2,o.t4={position:o.t1,velocity:o.t3},o.t0.update.call(o.t0,o.t4);case 16:case"end":return o.stop()}},a)}));function i(a,u){return n.apply(this,arguments)}return i})()},{key:"updatePlayer",value:(function(){var n=W(R().mark(function a(u,s,h){var o,b,k;return R().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:if(o=u.query(),b=o.position,k=o.velocity,typeof b=="number"&&s.setCurrentTime(b),typeof k!="number"){P.next=25;break}if(k!==0){P.next=11;break}return P.next=6,s.getPaused();case 6:if(P.t0=P.sent,P.t0!==!1){P.next=9;break}s.pause();case 9:P.next=25;break;case 11:if(!(k>0)){P.next=25;break}return P.next=14,s.getPaused();case 14:if(P.t1=P.sent,P.t1!==!0){P.next=19;break}return P.next=18,s.play().catch((function(){var g=W(R().mark(function _(O){return R().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:if(!(O.name==="NotAllowedError"&&h.autoPlayMuted)){m.next=5;break}return m.next=3,s.setMuted(!0);case 3:return m.next=5,s.play().catch(function(p){return console.error("Couldn't play the video from TimingSrcConnector. Error:",p)});case 5:case"end":return m.stop()}},_)}));return function(_){return g.apply(this,arguments)}})());case 18:this.updatePlayer(u,s,h);case 19:return P.next=21,s.getPlaybackRate();case 21:if(P.t2=P.sent,P.t3=k,P.t2===P.t3){P.next=25;break}s.setPlaybackRate(k);case 25:case"end":return P.stop()}},a,this)}));function i(a,u,s){return n.apply(this,arguments)}return i})()},{key:"maintainPlaybackPosition",value:function(i,a,u){var s=this,h=u.allowedDrift,o=u.maxAllowedDrift,b=u.minCheckInterval,k=u.maxRateAdjustment,T=u.maxTimeToCatchUp,P=Math.min(T,Math.max(b,o))*1e3,g=(function(){var O=W(R().mark(function N(){var m,p,f,v,E;return R().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:if(y.t0=i.query().velocity===0,y.t0){y.next=6;break}return y.next=4,a.getPaused();case 4:y.t1=y.sent,y.t0=y.t1===!0;case 6:if(!y.t0){y.next=8;break}return y.abrupt("return");case 8:return y.t2=i.query().position,y.next=11,a.getCurrentTime();case 11:if(y.t3=y.sent,m=y.t2-y.t3,p=Math.abs(m),s.log("Drift: ".concat(m)),!(p>o)){y.next=22;break}return y.next=18,s.adjustSpeed(a,0);case 18:a.setCurrentTime(i.query().position),s.log("Resync by currentTime"),y.next=29;break;case 22:if(!(p>h)){y.next=29;break}return f=p/T,v=k,E=f<v?(v-f)/2:v,y.next=28,s.adjustSpeed(a,E*Math.sign(m));case 28:s.log("Resync by playbackRate");case 29:case"end":return y.stop()}},N)}));return function(){return O.apply(this,arguments)}})(),_=setInterval(function(){return g()},P);return{cancel:function(){return clearInterval(_)}}}},{key:"log",value:function(i){var a;(a=this.logger)===null||a===void 0||a.call(this,"TimingSrcConnector: ".concat(i))}},{key:"waitForTOReadyState",value:function(i,a){return new Promise(function(u){var s=function h(){i.readyState===a?u():i.addEventListener("readystatechange",h,{once:!0})};s()})}}]),t})(se(EventTarget)),B=new WeakMap,ae=new WeakMap,I={},le=(function(){function r(e){var t=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(ke(this,r),window.jQuery&&e instanceof jQuery&&(e.length>1&&window.console&&console.warn&&console.warn("A jQuery object with multiple elements was passed, using the first element."),e=e[0]),typeof document<"u"&&typeof e=="string"&&(e=document.getElementById(e)),!$e(e))throw new TypeError("You must pass either a valid element or a valid id.");if(e.nodeName!=="IFRAME"){var i=e.querySelector("iframe");i&&(e=i)}if(e.nodeName==="IFRAME"&&!z(e.getAttribute("src")||""))throw new Error("The player element passed isn’t a Vimeo embed.");if(B.has(e))return B.get(e);this._window=e.ownerDocument.defaultView,this.element=e,this.origin="*";var a=new D(function(s,h){if(t._onMessage=function(k){if(!(!z(k.origin)||t.element.contentWindow!==k.source)){t.origin==="*"&&(t.origin=k.origin);var T=ne(k.data),P=T&&T.event==="error",g=P&&T.data&&T.data.method==="ready";if(g){var _=new Error(T.data.message);_.name=T.data.name,h(_);return}var O=T&&T.event==="ready",N=T&&T.method==="ping";if(O||N){t.element.setAttribute("data-ready","true"),s();return}Qe(t,T)}},t._window.addEventListener("message",t._onMessage),t.element.nodeName!=="IFRAME"){var o=_e(e,n),b=Oe(o);Ae(b,o,e).then(function(k){var T=ce(k,e);return t.element=T,t._originalElement=e,Ue(e,T),B.set(t.element,t),k}).catch(h)}});if(ae.set(this,a),B.set(this.element,this),this.element.nodeName==="IFRAME"&&x(this,"ping"),I.isEnabled){var u=function(){return I.exit()};this.fullscreenchangeHandler=function(){I.isFullscreen?Y(t,"event:exitFullscreen",u):re(t,"event:exitFullscreen",u),t.ready().then(function(){x(t,"fullscreenchange",I.isFullscreen)})},I.on("fullscreenchange",this.fullscreenchangeHandler)}return this}return Pe(r,[{key:"callMethod",value:function(t){for(var n=this,i=arguments.length,a=new Array(i>1?i-1:0),u=1;u<i;u++)a[u-1]=arguments[u];if(t==null)throw new TypeError("You must pass a method name.");return new D(function(s,h){return n.ready().then(function(){Y(n,t,{resolve:s,reject:h}),x(n,t,a)}).catch(h)})}},{key:"get",value:function(t){var n=this;return new D(function(i,a){return t=pe(t,"get"),n.ready().then(function(){Y(n,t,{resolve:i,reject:a}),x(n,t)}).catch(a)})}},{key:"set",value:function(t,n){var i=this;return new D(function(a,u){if(t=pe(t,"set"),n==null)throw new TypeError("There must be a value to set.");return i.ready().then(function(){Y(i,t,{resolve:a,reject:u}),x(i,t,n)}).catch(u)})}},{key:"on",value:function(t,n){if(!t)throw new TypeError("You must pass an event name.");if(!n)throw new TypeError("You must pass a callback function.");if(typeof n!="function")throw new TypeError("The callback must be a function.");var i=te(this,"event:".concat(t));i.length===0&&this.callMethod("addEventListener",t).catch(function(){}),Y(this,"event:".concat(t),n)}},{key:"off",value:function(t,n){if(!t)throw new TypeError("You must pass an event name.");if(n&&typeof n!="function")throw new TypeError("The callback must be a function.");var i=re(this,"event:".concat(t),n);i&&this.callMethod("removeEventListener",t).catch(function(a){})}},{key:"loadVideo",value:function(t){return this.callMethod("loadVideo",t)}},{key:"ready",value:function(){var t=ae.get(this)||new D(function(n,i){i(new Error("Unknown player. Probably unloaded."))});return D.resolve(t)}},{key:"addCuePoint",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.callMethod("addCuePoint",{time:t,data:n})}},{key:"removeCuePoint",value:function(t){return this.callMethod("removeCuePoint",t)}},{key:"enableTextTrack",value:function(t,n){if(!t)throw new TypeError("You must pass a language.");return this.callMethod("enableTextTrack",{language:t,kind:n})}},{key:"disableTextTrack",value:function(){return this.callMethod("disableTextTrack")}},{key:"pause",value:function(){return this.callMethod("pause")}},{key:"play",value:function(){return this.callMethod("play")}},{key:"requestFullscreen",value:function(){return I.isEnabled?I.request(this.element):this.callMethod("requestFullscreen")}},{key:"exitFullscreen",value:function(){return I.isEnabled?I.exit():this.callMethod("exitFullscreen")}},{key:"getFullscreen",value:function(){return I.isEnabled?D.resolve(I.isFullscreen):this.get("fullscreen")}},{key:"requestPictureInPicture",value:function(){return this.callMethod("requestPictureInPicture")}},{key:"exitPictureInPicture",value:function(){return this.callMethod("exitPictureInPicture")}},{key:"getPictureInPicture",value:function(){return this.get("pictureInPicture")}},{key:"remotePlaybackPrompt",value:function(){return this.callMethod("remotePlaybackPrompt")}},{key:"unload",value:function(){return this.callMethod("unload")}},{key:"destroy",value:function(){var t=this;return new D(function(n){if(ae.delete(t),B.delete(t.element),t._originalElement&&(B.delete(t._originalElement),t._originalElement.removeAttribute("data-vimeo-initialized")),t.element&&t.element.nodeName==="IFRAME"&&t.element.parentNode&&(t.element.parentNode.parentNode&&t._originalElement&&t._originalElement!==t.element.parentNode?t.element.parentNode.parentNode.removeChild(t.element.parentNode):t.element.parentNode.removeChild(t.element)),t.element&&t.element.nodeName==="DIV"&&t.element.parentNode){t.element.removeAttribute("data-vimeo-initialized");var i=t.element.querySelector("iframe");i&&i.parentNode&&(i.parentNode.parentNode&&t._originalElement&&t._originalElement!==i.parentNode?i.parentNode.parentNode.removeChild(i.parentNode):i.parentNode.removeChild(i))}t._window.removeEventListener("message",t._onMessage),I.isEnabled&&I.off("fullscreenchange",t.fullscreenchangeHandler),n()})}},{key:"getAutopause",value:function(){return this.get("autopause")}},{key:"setAutopause",value:function(t){return this.set("autopause",t)}},{key:"getBuffered",value:function(){return this.get("buffered")}},{key:"getCameraProps",value:function(){return this.get("cameraProps")}},{key:"setCameraProps",value:function(t){return this.set("cameraProps",t)}},{key:"getChapters",value:function(){return this.get("chapters")}},{key:"getCurrentChapter",value:function(){return this.get("currentChapter")}},{key:"getColor",value:function(){return this.get("color")}},{key:"getColors",value:function(){return D.all([this.get("colorOne"),this.get("colorTwo"),this.get("colorThree"),this.get("colorFour")])}},{key:"setColor",value:function(t){return this.set("color",t)}},{key:"setColors",value:function(t){if(!Array.isArray(t))return new D(function(a,u){return u(new TypeError("Argument must be an array."))});var n=new D(function(a){return a(null)}),i=[t[0]?this.set("colorOne",t[0]):n,t[1]?this.set("colorTwo",t[1]):n,t[2]?this.set("colorThree",t[2]):n,t[3]?this.set("colorFour",t[3]):n];return D.all(i)}},{key:"getCuePoints",value:function(){return this.get("cuePoints")}},{key:"getCurrentTime",value:function(){return this.get("currentTime")}},{key:"setCurrentTime",value:function(t){return this.set("currentTime",t)}},{key:"getDuration",value:function(){return this.get("duration")}},{key:"getEnded",value:function(){return this.get("ended")}},{key:"getLoop",value:function(){return this.get("loop")}},{key:"setLoop",value:function(t){return this.set("loop",t)}},{key:"setMuted",value:function(t){return this.set("muted",t)}},{key:"getMuted",value:function(){return this.get("muted")}},{key:"getPaused",value:function(){return this.get("paused")}},{key:"getPlaybackRate",value:function(){return this.get("playbackRate")}},{key:"setPlaybackRate",value:function(t){return this.set("playbackRate",t)}},{key:"getPlayed",value:function(){return this.get("played")}},{key:"getQualities",value:function(){return this.get("qualities")}},{key:"getQuality",value:function(){return this.get("quality")}},{key:"setQuality",value:function(t){return this.set("quality",t)}},{key:"getRemotePlaybackAvailability",value:function(){return this.get("remotePlaybackAvailability")}},{key:"getRemotePlaybackState",value:function(){return this.get("remotePlaybackState")}},{key:"getSeekable",value:function(){return this.get("seekable")}},{key:"getSeeking",value:function(){return this.get("seeking")}},{key:"getTextTracks",value:function(){return this.get("textTracks")}},{key:"getVideoEmbedCode",value:function(){return this.get("videoEmbedCode")}},{key:"getVideoId",value:function(){return this.get("videoId")}},{key:"getVideoTitle",value:function(){return this.get("videoTitle")}},{key:"getVideoWidth",value:function(){return this.get("videoWidth")}},{key:"getVideoHeight",value:function(){return this.get("videoHeight")}},{key:"getVideoUrl",value:function(){return this.get("videoUrl")}},{key:"getVolume",value:function(){return this.get("volume")}},{key:"setVolume",value:function(t){return this.set("volume",t)}},{key:"setTimingSrc",value:(function(){var e=W(R().mark(function n(i,a){var u=this,s;return R().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(i){o.next=2;break}throw new TypeError("A Timing Object must be provided.");case 2:return o.next=4,this.ready();case 4:return s=new rt(this,i,a),x(this,"notifyTimingObjectConnect"),s.addEventListener("disconnect",function(){return x(u,"notifyTimingObjectDisconnect")}),o.abrupt("return",s);case 8:case"end":return o.stop()}},n,this)}));function t(n,i){return e.apply(this,arguments)}return t})()}]),r})();Se||(I=et(),Je(),Xe(),Ke(),Ze());const nt="https://player.vimeo.com/video",it="https://vimeo.com/event",at=/vimeo\.com\/(video\/|event\/)?(\d+)(?:\/([\w-]+))?/;function me(r,e={}){const t={src:ot(r,e),frameborder:0,width:"100%",height:"100%",allow:"accelerometer; fullscreen; autoplay; encrypted-media; gyroscope; picture-in-picture"};return e.config&&(t["data-config"]=JSON.stringify(e.config)),`
|
|
2
2
|
<style>
|
|
3
3
|
:host {
|
|
4
4
|
display: inline-block;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{R as H}from"./sentry-
|
|
1
|
+
import{R as H}from"./sentry-Dwm-tWfG.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="55e7cdc0-0f51-4440-b9ab-71436ee7cd90",t._sentryDebugIdIdentifier="sentry-dbid-55e7cdc0-0f51-4440-b9ab-71436ee7cd90")}catch{}})();const V="https://www.youtube.com/embed",$="https://www.youtube-nocookie.com/embed",j="https://www.youtube.com/iframe_api",Y="YT",F="onYouTubeIframeAPIReady",R=/(?:youtu\.be\/|youtube(?:-nocookie)?\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})/,G=/(?:youtu\.be\/|youtube(?:-nocookie)?\.com\/.*?[?&]list=)([\w_-]+)/;function C(t,e={}){var i;const n={src:x(t,e),frameborder:0,width:"100%",height:"100%",allow:"accelerometer; fullscreen; autoplay; encrypted-media; gyroscope; picture-in-picture"};return(i=e.config)!=null&&i.referrerpolicy&&(n.referrerpolicy=e.config.referrerpolicy),e.config&&(n["data-config"]=JSON.stringify(e.config)),`
|
|
2
2
|
<style>
|
|
3
3
|
:host {
|
|
4
4
|
display: inline-block;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{R as W}from"./sentry-
|
|
1
|
+
import{R as W}from"./sentry-Dwm-tWfG.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="4ca6e168-e194-4ee5-9646-e8bb04288986",e._sentryDebugIdIdentifier="sentry-dbid-4ca6e168-e194-4ee5-9646-e8bb04288986")}catch{}})();const L="https://player.twitch.tv",x=/(?:www\.|go\.)?twitch\.tv\/(?:videos?\/|\?video=)(\d+)($|\?)/,U=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/,k={IDLE:"Idle",ENDED:"Ended"},v={PAUSE:2,PLAY:3,SEEK:4,SET_MUTED:10,SET_VOLUME:11};function N(e,t={}){const i={src:C(e,t),frameborder:"0",width:"100%",height:"100%",allow:"accelerometer; fullscreen; autoplay; encrypted-media; picture-in-picture;",sandbox:"allow-modals allow-scripts allow-same-origin allow-popups allow-popups-to-escape-sandbox",scrolling:"no"};return t.config&&(i["data-config"]=JSON.stringify(t.config)),`
|
|
2
2
|
<style>
|
|
3
3
|
:host {
|
|
4
4
|
display: inline-block;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{R as D}from"./sentry-
|
|
1
|
+
import{R as D}from"./sentry-Dwm-tWfG.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="f31f0473-76cc-48b2-b014-3336c7f7e50a",t._sentryDebugIdIdentifier="sentry-dbid-f31f0473-76cc-48b2-b014-3336c7f7e50a")}catch{}})();const H="https://www.tiktok.com/player/v1",O=/tiktok\.com\/(?:player\/v1\/|share\/video\/|@[^/]+\/video\/)([0-9]+)/,d={INIT:-1,ENDED:0,PLAYING:1,PAUSED:2,BUFFERING:3},x={[d.INIT]:"emptied",[d.PAUSED]:"pause",[d.ENDED]:"ended",[d.PLAYING]:"play",[d.BUFFERING]:"waiting"};function N(t,e={}){const o={src:I(t,e),frameborder:0,width:"100%",height:"100%",allow:"accelerometer; autoplay; fullscreen; encrypted-media; gyroscope; picture-in-picture"};return e.config&&(o["data-config"]=JSON.stringify(e.config)),`
|
|
2
2
|
<style>
|
|
3
3
|
:host {
|
|
4
4
|
display:inline-block;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{R as N}from"./sentry-
|
|
1
|
+
import{R as N}from"./sentry-Dwm-tWfG.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="4dc2212e-42d6-42d6-b49f-9c8cdf32878f",e._sentryDebugIdIdentifier="sentry-dbid-4dc2212e-42d6-42d6-b49f-9c8cdf32878f")}catch{}})();const O="https://open.spotify.com",$=/open\.spotify\.com\/(\w+)\/(\w+)/i,B="https://open.spotify.com/embed-podcast/iframe-api/v1",D="SpotifyIframeApi",j="onSpotifyIframeApiReady";function L(e,t={}){const i={src:R(e,t),scrolling:"no",frameborder:0,width:"100%",height:"100%",allow:"accelerometer; fullscreen; autoplay; encrypted-media; gyroscope; picture-in-picture"};return`
|
|
2
2
|
<style>
|
|
3
3
|
:host {
|
|
4
4
|
display: inline-block;
|