/* VimeoPlayer - v3.7.4 - 2018-12-12 - https://player.vimeo.com/NOTICE.txt */ var VimeoPlayer=function(){"use strict";var Ge="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function t(e,t){return e(t={exports:{}},t.exports),t.exports}var ze=t(function(i){!function(e,t,n){t[e]=t[e]||n(),i.exports&&(i.exports=t[e])}("Promise",Ge,function(){var t,a,n,e=Object.prototype.toString,i="undefined"!=typeof setImmediate?function(e){return setImmediate(e)}:setTimeout;try{Object.defineProperty({},"x",{}),t=function(e,t,n,i){return Object.defineProperty(e,t,{value:n,writable:!0,configurable:!1!==i})}}catch(e){t=function(e,t,n){return e[t]=n,e}}function o(e,t){n.add(e,t),a||(a=i(n.drain))}function s(e){var t,n=typeof e;return null==e||"object"!=n&&"function"!=n||(t=e.then),"function"==typeof t&&t}function c(){for(var e=0;e>>0,i=arguments[1],r=0;r>>0,i=arguments[1],r=0;r>>0;if(0===i)return!1;var r=0|t,o=Math.max(0<=r?r:i-Math.abs(r),0);function a(e,t){return e===t||"number"==typeof e&&"number"==typeof t&&isNaN(e)&&isNaN(t)}for(;othis.length)&&-1!==this.indexOf(e,t)});var r,o,a,s,c={object:!0,symbol:!0},u=function(e){return null!=e},l=Object.keys,d=function(){try{return!0}catch(e){return!1}}()?Object.keys:function(e){return l(u(e)?Object(e):e)},f=Math.max,h=function(){var e,t=Object.assign;return"function"==typeof t&&(t(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}()?Object.assign:function(t,n){var i,e,r,o=f(arguments.length,2);for(t=Object(function(e){if(!u(e))throw new TypeError("Cannot use null or undefined");return e}(t)),r=function(e){try{t[e]=n[e]}catch(e){i||(i=e)}},e=1;e.");e!==this._videoElement&&(this.addVideoEventListeners(e),this._videoElement=e,this._videoElement.setAttribute("x-webkit-airplay","allow"))}}]),AirPlayExternalDisplay}(),Re=window.WeakMap||function(){var i=Object.defineProperty,e=Date.now()%1e9,t=function(){this.name="__st"+(1e9*Math.random()>>>0)+e+++"__"};return t.prototype.set=function(e,t){if("object"!==F(e)&&"function"!=typeof e)throw new TypeError("Invalid value used as weak map key");var n=e[this.name];return n&&n[0]===e?n[1]=t:i(e,this.name,{value:[e,t],writable:!0}),this},t.prototype.get=function(e){var t;return(t=e[this.name])&&t[0]===e?t[1]:void 0},t.prototype.delete=function(e){var t=e[this.name];return!(!t||t[0]!==e)&&(t[0]=t[1]=void 0,!0)},t.prototype.has=function(e){var t=e[this.name];return!!t&&t[0]===e},t}();Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){for(var t=Object(this),n=t.length>>>0,i=arguments[1],r=0;r>e)/4).toString(16)})}function be(e){return function(e){for(var t=window.atob(e),n=t.length,i=new Uint8Array(n),r=0;r=this.duration)throw new TypeError("Time must be a positive number less than the duration of the video.");var i=new Me(e,n);return this._cuePointTrack.addCue(i.vttCue),i}},{key:"removeCuePoint",value:function(e){if(!e)throw new TelecineError("InvalidCuePoint","The specified cue point is not valid.");return this._cuePointTrack.removeCue(e.vttCue),!0}},{key:"removeAllCuePoints",value:function(){var t=this;return this._cuePointTrack&&this._cuePointTrack.length&&xe(this._cuePointTrack.cues).forEach(function(e){t._cuePointTrack.removeCue(e)}),!0}},{key:"onerror",value:function(){if(!this._video.error)return!1;switch(this._video.error.code){case this._video.error.MEDIA_ERR_SRC_NOT_SUPPORTED:return this.fire(Ce.ERROR,new TelecineError("MediaSrcNotSupportedError","The media was not suitable.")),this._switchToNextFile(),!1;case this._video.error.MEDIA_ERR_DECODE:return this.fire(Ce.ERROR,new TelecineError("MediaDecodeError","The media could not be decoded.")),this._switchToNextFile(),!1;case this._video.error.MEDIA_ERR_NETWORK:return this.fire(Ce.ERROR,new TelecineError("MediaNetworkError","A network error ocurred while fetching the media.")),!1;case this._video.error.MEDIA_ERR_ABORTED:return this.fire(Ce.ERROR,new TelecineError("MediaAbortedError","The user agent aborted the fetching of the media.")),!1;default:return this.fire(Ce.ERROR,new TelecineError("MediaUnknownError","An unknown error occurred.")),!1}}},{key:"onended",value:function(){if(this._video.paused||this._video.pause(),this.currentTime=e)return!0;return!1}},{key:"seekToTime",value:function(i){var r=this;return this.canSeekTo(i)?(this._video.currentTime=i,ze.resolve(this._video.currentTime)):new ze(function(e,t){var n=function n(){r.canSeekTo(i)&&(Object.keys(Ce).forEach(function(e){var t=Ce[e];r._video.removeEventListener(t,n)}),r._video.currentTime=i,e(r._video.currentTime))};Object.keys(Ce).forEach(function(e){var t=Ce[e];r._video.addEventListener(t,n)})})}},{key:"takeSnapshot",value:function(){var e=this._element.querySelector("[telecine-snapshot]");e||((e=document.createElement("canvas")).setAttribute("telecine-snapshot",""),this._element.appendChild(e)),e.setAttribute("width","".concat(this._element.clientWidth,"px")),e.setAttribute("height","".concat(this._element.clientHeight,"px")),e.style.display="";var t=we(this._video.clientWidth,this._video.clientHeight,this._video.videoWidth,this._video.videoHeight),n=t.width,i=t.height,r=t.left,o=t.top;e.style.cssText="position:absolute;width:".concat(n,"px;height:").concat(i,"px;left:").concat(r,"px;top:").concat(o,"px");var a=e.getContext("2d");0=e.length?e[i]:e[i]*(1-o)+e[r]*o}($e.slice(-e),t)}},{key:"getAverageSpeed",value:function(){var e=0a;a++)i.push(n.length-a);return We(n,i)}},{key:"getFailedSegments",value:function(){return Xe}},{key:"getSuccessfulSegments",value:function(){return Je}},{key:"getTime",value:function(){return"undefined"!=typeof performance?performance.now():(new Date).getTime()}},{key:"calculateExponentialBackoff",value:function(e){return 500*Math.pow(2,e)+Math.round(1e3*Math.random())}}]),M(m,[{key:"add",value:function(e,t,n){return this._addSegmentToQueue(e,t,n),this._running&&!this._processingQueue&&this._processQueue(),this}},{key:"start",value:function(){return this._running||(this._running=!0,this._processQueue()),this}},{key:"stop",value:function(){return this._running=!1,this}},{key:"abort",value:function(){var n=this,t=0e.priority)break}this._queue.splice(n,0,[e,t])}},{key:"_initializeMux",value:function(){return new ze(function(e,t){window.muxjs?e():document.getElementById("muxjs").onload=function(){e()}})}},{key:"_initialize",value:function(){var e=this;this._pendingFetchMap=new Re,Ye(this),window.addEventListener("online",function(){e.start()}),window.addEventListener("offline",function(){e.stop(),e.abort()})}},{key:"_addSegmentToQueue",value:function(e,t,n){e.hasOwnProperty("priority")?this._insertAtPosition(e,t):this._queue[n?"unshift":"push"]([e,t])}},{key:"_processQueue",value:function(){if(this._running){this._processingQueue=!0;for(var e=this._parallel-this._activeXhrRequests.size,t=0;tthis._retryCount)this._handleDownloadError(n,e.status,e.data.url,e.data.duration);else{var a=m.calculateExponentialBackoff(this._retries.get(r));setTimeout(function(){i.add(r,o,!0)},a)}}},{key:"_handleXHRResponse",value:function(e,t,n,i){var r=this;if(500<=e.status&&e.status<600)this._retry(e,t,n);else if(400<=e.status&&e.status<500)this._handleDownloadError(n,e.status,e.data.url,e.data.duration);else if(this.fire("downloadend",n,{headers:function(e){return e?e.split("\n").reduce(function(e,t){var n=t.indexOf(":"),i=t.substring(0,n),r=t.substring(n+1);return void 0!==i&&void 0!==r&&(e[i.trim().toLowerCase()]=r.trim()),e},{}):{}}(e.getAllResponseHeaders()),xhr:e}),Je.push({url:e.data.url,status:e.status,duration:e.data.duration}),e.data.url&&e.data.url.match(".ts$")){var o=new Uint8Array(e.response);this._transmuxer?this._feedMuxer.bind(this)(e,o,i):this._initializeMux().then(function(){r._transmuxer=new window.muxjs.Transmuxer({}),r._feedMuxer.bind(r)(e,o,i)}).catch(console.error)}else i.call(this,new Uint8Array(e.response))}},{key:"_feedMuxer",value:function(t,e,n){var i=this;this._transmuxer.on("data",function(e){i._transmuxer.off("data"),n.call(i,new Uint8Array(t.data.isInitSegmentRequest?e.initSegment:e.data.buffer))}),this._transmuxer.push(e),this._transmuxer.flush()}},{key:"_handleDownloadError",value:function(e,t,n,i){Xe.push({url:n,status:t,duration:i}),this.fire("downloaderror",e,t)}},{key:"_getSegmentInfoFromData",value:function(e){var t=e[1],n=e[0],i=n;return n.id&&(i=n.id),[n.url,n.byteRange,n.isInitSegmentRequest,i,t]}},{key:"_continueProcessingQueue",value:function(){0!==this._activeXhrRequests.size||0!==this._queue.length?this._activeXhrRequests.size=e){t=n.buffered.end(i);break}return t-e}},{key:"getTimeEstimateToLoad",value:function(e,t){if(null===t)return 3;var n=t.segments[e],i=n.end-n.start,r=this.getCurrentSpeed();return 1.3*(i*(t.bitrate+t.audioBitrate)/r)}},{key:"canPlayFromTimeInStream",value:function(e,t){if(!this.isTimeInBuffer(e))return!1;if(!t)return!1;var n=this.getSegmentsToLoad(!1,"video",t);if(0===n.length)return!0;var i=this.getDistanceFromBuffer(e);return this.getTimeEstimateToLoad(n[0],t)a)){var h=r>=f.start&&r=f.start&&o.push(d))}}return o}},{key:"blacklist",value:function(e){this.blacklisted[e]=1}},{key:"lock",value:function(){var e=0n[r].bitrate+n[r].audioBitrate&&(i=r);return i}},{key:"_getVisibleDimensions",value:function(e,t,n,i){var r=n/i,o=e-t*r,a=t-e/r,s=e-o,c=t-a;return 0u[v-1]&&d<=u[v]||d>=u[v]&&dt.stream)return h.sorcerer.video.switchTo(n,!1),h._streams.audio.length&&h.sorcerer.audio.switchTo(h._getAudioIndexFromVideo(n),!1),void s(!(u=0))}var i=h._getCurrentStream(d).segments[0].end,r=h._getDuration(!0);h.currentTime>=r&&(h.currentTime=r),h.currentTime>i&&(h.sorcerer.clear(),h._waitingOnSet=new Set),h.sorcerer.video.switchTo(d,!1),h._streams.audio.length&&h.sorcerer.audio.switchTo(h._getAudioIndexFromVideo(d),!1),h.sorcerer.off("bufferqueueadd",e),h._ready=!0,o()}}),s()})),this._preloadStream}},{key:"loadManifest",value:function(o){var a=this;return new ze(function(e,n){var i=null,r=new XMLHttpRequest;r.open("GET",o,!0),r.timeout=1e4,r.onload=function(){var t=Date.now()-i;if(400<=r.status)return a.manifestLoadDurations.push({url:o,status:r.status,duration:t}),a.reset(),410===r.status?void a.fire(Pe.MEDIA_URL_EXPIRED):void n("JSON manifest failed to load.");"responseURL"in r&&r.responseURL!==o&&r.responseURL.indexOf("live-archive")&&(a._baseUrl=r.responseURL.split("/").slice(0,-2).join("/"));try{e(JSON.parse(r.response)),a.manifestLoadDurations.push({url:o,status:r.status,duration:t}),a.fire(Pe.MANIFEST_LOADED)}catch(e){a.manifestLoadDurations.push({url:o,status:r.status,duration:t}),n()}},r.onerror=function(){var e=Date.now()-i;a.manifestLoadDurations.push({url:o,status:r.status,duration:e}),a.reset(),n("JSON manifest failed to load.")},r.ontimeout=function(){var e=Date.now()-i;a.manifestLoadDurations.push({url:o,status:r.status,duration:e}),a.reset(),a.fire(Pe.MANIFEST_TIMEOUT),n("JSON manifest ".concat(o," timed out in ").concat(e,"ms."))},i=Date.now(),r.send()})}},{key:"setVideoSrc",value:function(t,e){var n=this;if((!(2=this._clearBufferAtTime){this.sorcerer.removeBuffer(0,this._clearBufferAtTime-2),this._clearBufferAtTime=!1}this._loadSegments();var t=this.sorcerer.getDroppedFrameTotal();this.fire(Pe.DROPPED_FRAMES,t);var n=this.sorcerer.getResponseSpeeds(),i=this._streams[st][this.sorcerer.video.activeStreamIndex],r=this._options.tests&&this._options.tests.download_bitrate;if((!r||!r.group)&&i){var o={speed:this._brain.getCurrentSpeed(),bitrate:i.bitrate,speeds:n};this.fire(Pe.BANDWIDTH,o)}var a=this._video.buffered.length;if(!a)return!0;var s=this._video.buffered.end(a-1);if(Math.ceil(s)===Math.ceil(this._video.duration))return!0;return Math.abs(this.currentTime-s)<.2?!this._ranIntoBuffer&&(this.fire(Pe.STREAM_BUFFER_START,{hasLowerStreamIndex:0=this._video.duration)||(this._video.currentTime=this._video.duration-.001,!1)}},{key:"onerror",value:function(){return!!this._video.error&&(this._video.error.code===this._video.error.MEDIA_ERR_DECODE?(this.fire(Pe.SCANNER_ERROR,{reason:"encountered media decode error"}),!1):q(N(i.prototype),"onerror",this).call(this))}},{key:"pause",value:function(){q(N(i.prototype),"pause",this).call(this)}},{key:"play",value:function(){var e=this;return q(N(i.prototype),"play",this).call(this,function(){return e._resolveStartPreload&&e._resolveStartPreload(),e._reloadingExistingVideo||e._ready||"auto"===e._preload||(e._onReady=e._addCallbackToPromise(e._onReady,e.preloadStream.bind(e))),e._onReady.then(function(){return ze.resolve(e._seekInProgressPromise)})})}},{key:"onpause",value:function(){return this._ignorePauseEvent?this._ignorePauseEvent=!1:(q(N(i.prototype),"onpause",this).call(this),!0)}},{key:"onplay",value:function(){return!this._ignorePlayEvent||(this._ignorePlayEvent=!1)}},{key:"_getAudioIndexFromVideo",value:function(e){return 0!==this._streams.audio.length&&(1this.sorcerer[t].activeStreamIndex,this._switching[t]=!0,this.sorcerer[t].switchTo(n).then(function(){e._switching[t]=!1}).catch(console.error));for(var r=this._brain.getSegmentsToLoad(i,t,this._getCurrentStream()),o=this.sorcerer[t].activeStreamIndex,a=0;athis._lastStreamIndex&&0e[r].bandwidth&&(i=e[r].index);this._clearConsecutiveStreamIndexes(i),this.consecutiveStreamIndex[i]++;var o=1.5*this.scanner.segmentLength;return this.scanner.duration-this.scanner.currentTimet.index?1:0}),o=0,a=0;athis.buffered.length-1&&(this._bufferedIndex=this.buffered.length-1),this._video.currentTimethis._bufferedIndex&&(this._bufferedIndex++,this._video.currentTime=this._video.buffered.start(this._bufferedIndex)))}},{key:"_atDurationEnd",value:function(){return!!(this._video.buffered&&this._video.buffered.length&&this._video.currentTime+.5>this._video.buffered.end(this._video.buffered.length-1))}},{key:"setVideoSrc",value:function(e){var t=this;ae.iOS?this._onReady=this._loadNativeHls(e).then(function(){t._video.src=e}):this._onReady=this._loadManifestInit(e).then(function(){t._video.src=URL.createObjectURL(t._sorcerer.mediaSource)})}},{key:"getBitrateAtTime",value:function(e,t){if(!this._sorcerer)return 0;var n=this._sorcerer.streamIndexAtTime(e,t);return this._streams[t][n]?this._streams[t][n].bandwidth:0}},{key:"_timeSince",value:function(e){return Date.now()-e}},{key:"_sortStreams",value:function(e){var t=e.slice(0);return t.sort(function(e,t){return e.width*e.height*e.bandwidth-t.width*t.height*t.bandwidth}),t.forEach(function(e,t){e.index=t}),t}},{key:"onprogress",value:function(){this._isNativeHLS()||this._checkForPlaybackGap(),this._isNativeHLS()&&this._hlsAvailabilityCheckTimeout&&(clearTimeout(this._hlsAvailabilityCheckTimeout),this._hlsAvailabilityCheckTimeout=null,this._livePoller.unforcePolling())}},{key:"ondurationchange",value:function(){this._checkForPlaybackGap()}},{key:"ontimeupdate",value:function(){if(this._sorcerer){if(this.fire(Pe.DROPPED_FRAMES,this._sorcerer.getDroppedFrameTotal()),!this._options.tests.download_bitrate||this._options.tests.download_bitrate&&!this._options.tests.download_bitrate.group){var e=this._sorcerer[vt].activeStreamIndex;if(e){var t={speed:this._sorcerer.getCurrentSpeed({type:"average",howMany:3,weights:[1,2,5]}),bitrate:this._streams[vt][e].bitrate,speeds:this._sorcerer.getResponseSpeeds()};this.fire(Pe.BANDWIDTH,t)}}!this._isOnline&&this._atDurationEnd()&&this.fire(Oe.STREAM_OFFLINE),this._timeSince(this._timeSinceLastStreamSwitchCheck)>this.STREAM_SWITCH_CHECK_INTERVAL&&(this._checkForStreamSwitch(),this._timeSinceLastStreamSwitchCheck=Date.now())}}},{key:"onstalled",value:function(){this._checkHlsAvailability(3e4)}},{key:"onwaiting",value:function(){this._isNativeHLS()&&this._checkHlsAvailability(3e4)}},{key:"seekToTime",value:function(){}},{key:"onpause",value:function(){this._isNativeHLS()||this._clearManifestRefreshTimeout()}},{key:"pause",value:function(){q(N(i.prototype),"pause",this).call(this),this._isNativeHLS()||this._clearManifestRefreshTimeout()}},{key:"play",value:function(){var t=this;return q(N(i.prototype),"play",this).call(this,function(){if(!t._playInitiated||t._manifestRefreshTimeout||t._isNativeHLS()||(t._onReady=t._refreshManifest(t._manifestUrl)),t._sorcerer&&t._playInitiated){var e=t._video.buffered;e&&e.length?t.currentTime=e.end(0)+.1:isNaN(t.duration)||(t.currentTime=t.duration),t._sorcerer.removeBuffer()}return t._onReady.then(function(){t._playInitiated=!0})})}},{key:"restrictedStreamIndexes",get:function(){return this._restrictedStreamIndexes},set:function(){var e=0"===t.substr(0,5)&&""===t.substr(-6)&&(t=t.slice(5,-6)),new Uint8Array(atob(t).split("").map(function(e){return e.charCodeAt(0)}))}},{key:"_unpackPlayReadyRequest",value:function(e){for(var t=String.fromCharCode.apply(null,new Uint16Array(e)),n=(new DOMParser).parseFromString(t,"application/xml"),i={},r=n.getElementsByTagName("HttpHeader"),o=0;o=t.start(n)&&e+.125<=t.end(n))return;i._isBuffering=!0,i.fire(Pe.BUFFER_STARTED)}(i.playInitiated&&i._isBuffering&&e>i._lastBufferCheckVideoTime+.125||i._options.liveEvent&&!i._isLiveStreamOnline&&i._isBuffering)&&(i._isBuffering=!1,i.fire(Pe.BUFFER_ENDED)),i._lastBufferCheckVideoTime=e},250)}},{key:"userPlayState",get:function(){return this._userPlayState},set:function(e){(this._userPlayState=e)||this._endBuffering()}}]),i}();function It(){var t,n;function i(){t.preload="";var e=t.play();return void 0===e&&(e=new ze(function(e){t.addEventListener("playing",e)})),e}function r(){n&&(n.resolve(),n=null)}function o(e){n&&(n.reject(e),n=null)}return{set video(e){t=e},get active(){return!!n},start:function(){var e=0this._video.clientHeight?90:0),e=e?THREE.Math.degToRad(e):0,t=t?THREE.Math.degToRad(t):0,n=n?THREE.Math.degToRad(n):0;var a=o?THREE.Math.degToRad(o):0,s=new THREE.Vector3(0,0,1),c=new THREE.Euler,u=new THREE.Quaternion,l=new THREE.Quaternion(-Math.sqrt(.5),0,0,Math.sqrt(.5));c.set(t,e,-n,"YXZ"),r.setFromEuler(c),r.multiply(l),r.multiply(u.setFromAxisAngle(s,-a)),this._gyroVector=(new THREE.Euler).setFromQuaternion(r,"YXZ"),this._rotation=this._gyroVector.z,this.isUserInteracting||this._movingAutomatically||this._updateViewpoint(THREE.Math.radToDeg(this._gyroVector.x)-this._offset.lat,-THREE.Math.radToDeg(this._gyroVector.y)+this._offset.long),this._deviceMotionHasOccurred||(this.snapToCenter(),this._telecine.fire(K.MOTION_START),this._deviceMotionHasOccurred=!0)}},{key:"releaseContact",value:function(e){if(this._offset.lat=THREE.Math.radToDeg(this._gyroVector.x)-this._coordinates.lat,this._offset.long=THREE.Math.radToDeg(this._gyroVector.y)+this._coordinates.long,this.isUserInteracting=!1,this._motionStart&&!e){var t=Math.hypot(this._coordinates.long-this._motionStart.long,this._coordinates.lat-this._motionStart.lat);this._moveDueToMomentum(t)}}},{key:"abandonMotion",value:function(){this.isUserInteracting=!1,this._motionStart=null}},{key:"keyPress",value:function(e){this._keyIsDown()||(this.isUserInteracting=!0,this._motionTimeouts&&this._motionTimeouts.forEach(function(e){return clearTimeout(e)})),this._keysPressed[e]||(this._keysPressed[e]=!0)}},{key:"keyUp",value:function(e){this._keysPressed[e]=!1,this._keyIsDown()||(this.isUserInteracting=!1,this._moveDueToMomentum(1/0))}},{key:"_moveFromKeyPress",value:function(){var t=this;Object.keys(this._keysPressed).forEach(function(e){if(t._keysPressed[e])switch(e){case"up":t._updateViewpoint(t._coordinates.lat+2,t._coordinates.long);break;case"down":t._updateViewpoint(t._coordinates.lat-2,t._coordinates.long);break;case"left":t._updateViewpoint(t._coordinates.lat,t._coordinates.long-2);break;case"right":t._updateViewpoint(t._coordinates.lat,t._coordinates.long+2)}})}},{key:"_keyIsDown",value:function(){var t=this;return Object.keys(this._keysPressed).map(function(e){return t._keysPressed[e]}).some(function(e){return e})}},{key:"_moveDueToMomentum",value:function(i){var r=this;20<=i&&function(){var n={long:r._coordinates.long-r._previousCoordinates.long,lat:r._coordinates.lat-r._previousCoordinates.lat};i===1/0&&(n.long/=2,n.lat/=2);for(var e=function(t){r._motionTimeouts.push(setTimeout(function(){1===t&&(r._movingAutomatically=!0),49===t&&(r._movingAutomatically=!1,r._maxTimeBetweenWrites=1e3/r._writeSpeeds.videoFps);var e=2/Math.pow(t,1.5);r._offset.lat=THREE.Math.radToDeg(r._gyroVector.x)+r._coordinates.lat+n.lat,r._offset.long=THREE.Math.radToDeg(r._gyroVector.y)+r._coordinates.long+n.long,r._updateViewpoint(r._coordinates.lat+n.lat*e,r._coordinates.long+n.long*e)},t*r._maxTimeBetweenWrites))},t=1;t<50;t++)e(t)}()}},{key:"onseeked",value:function(){this._activated&&this._update()}},{key:"onresize",value:function(){this.adjustRenderSize(),this.isUserInteracting=!1}},{key:"_update",value:function(){this._phi=THREE.Math.degToRad(90+this._coordinates.lat),this._theta=THREE.Math.degToRad(this._coordinates.long),this._camera.position.x=this._distance*Math.sin(this._phi)*Math.cos(this._theta),this._camera.position.y=this._distance*Math.cos(this._phi),this._camera.position.z=this._distance*Math.sin(this._phi)*Math.sin(this._theta),this._camera.lookAt(this._camera.target),this._camera.rotation.z+=this._rotation,this._stereo?this._renderStereoScene():this._renderer.render(this._scene,this._camera),this._telecine.fire(K.CAMERA_UPDATE,{lon:this._coordinates.long,lat:this._coordinates.lat})}},{key:"adjustRenderSize",value:function(){this._camera.aspect=Math.max(1/3,Math.min(3,this._video.clientWidth/this._video.clientHeight)),this._distance=Math.min(250,this._options.dimensions.width/this._options.dimensions.height/this._camera.aspect*Dt/2);var e=we(this._video.clientWidth,this._video.clientHeight,this._camera.aspect,1);this._camera.aspect=e.width/e.height,this._camera.updateProjectionMatrix(),this._renderer.setSize(e.width,e.height),this._output.style.paddingTop="".concat(e.top,"px"),this._renderer.render(this._scene,this._camera)}},{key:"getRendererSize",value:function(){return{height:this._renderer.domElement.clientHeight,width:this._renderer.domElement.clientWidth}}},{key:"_startRendering",value:function(){var e=this;this._interval&&window.clearInterval(this._interval),this.adjustRenderSize();this._interval=window.setInterval(function(){e._renderFrame(),e._keyIsDown()&&e._moveFromKeyPress()},1e3/60)}},{key:"_stopRendering",value:function(){this._interval&&(window.clearInterval(this._interval),this._interval=null),this._motionTimeouts&&this._motionTimeouts.forEach(function(e){return clearTimeout(e)})}},{key:"_renderFrame",value:function(){this._requestRenderAnimationFrame()}},{key:"_requestRenderAnimationFrame",value:function(){var e=this;this._animationFrame&&window.cancelAnimationFrame(this._animationFrame);var t=this._movingAutomatically||this.isUserInteracting||this._updateFromGyroscopePending||this._keyIsDown();this._animationFrame=window.requestAnimationFrame(function(){(!e._telecine._currentScanner.paused&&!e._telecine._currentScanner._ranIntoBuffer||t)&&(e._update(),e._updateFromGyroscopePending=!1)})}},{key:"_showOutput",value:function(){this._styleOutput({backgroundColor:"#000",display:"block"})}},{key:"_hideOutput",value:function(){this._styleOutput({backgroundColor:"#000",display:"none"})}},{key:"_styleOutput",value:function(){var e=0=arguments.length)?r=s[i]:(r=arguments[t],t+=1),mn(e[i]=r)||(n-=1),i+=1}return n<=0?c.apply(this,e):pn(n,o(a,e,c))}}(e,[],t))}(2,function(e,t){return e(t),t});function Tn(t,e){return e.find(function(e){return e.id===parseInt(t,10)})}function An(e){return kn(e,3)}function xn(r){return function(i){for(var e=arguments.length,t=new Array(1>>0,i=arguments[1],r=0;ri.video.duration+1)||(i.video.duration=t))}function y(e){if(!u&&a.buffered&&0=t){n=i;break}return n}(a.buffered,e),n=a.buffered.end(t),i=n/a.duration,r=a.duration;if(o.fire(Ce.PROGRESS,{loaded:n,duration:r,loadProgress:i}),c&&s&&n===a.duration)return void(s&&a.paused&&a.play().catch(vi.captureException))}}function _(e){y()}function b(e,t){t||(t=(a.duration||i.video.duration)*fn(0,1,e)),t=fn(0,a.duration||i.video.duration,t),a.currentTime=t}function w(){y();var e=a.currentTime,t=a.duration,n=e/t;o.fire(Ce.SEEKED,{currentTime:e,duration:t,timeProgress:n})}function E(t){if(a.video.currentFile.mime===rn.dash||r.isStarted)S(t);else{var e=ti(i.video.file_codecs),n=xe(a.video.files).filter(Zn(e)).filter(function(e){return e.metadata.quality===t});n.sort(ai()),0"),text:i[o].text}));s.fire(Xt,n,r)}function u(e){var t=e.target,n=i.querySelector("video");Wn.iOS&&function(e){var t=[document.fullscreenElement,document.webkitFullscreenElement,document.webkitCurrentFullScreenElement,document.mozFullScreenElement,document.msFullscreenElement].find(function(e){return void 0!==e});return void 0!==t?!!t:e.webkitDisplayingFullscreen}(n)&&"showing"===t.mode&&s.fire(Jt,t)}s.on(zt,e),s.on(Ut,n),s.on(Vt,a)}function bi(e,o,a,r){var s,t,c=o.liveEvent;function n(e){var t=e.index,n=e.streams,i=n[t],r=Tn(i.id,o.request.files.dash.streams);void 0!==r?(i.profile=r.profile,i.quality=r.quality,i.fps=r.fps):(i.profile=null,i.quality="".concat(i.height,"p"),i.fps=i.framerate),vi.captureBreadcrumb("Stream changed",i,"video"),a.fire(Pe.STREAM_CHANGE,i,t,n)}function i(e){var t=e.index,n=e.streams,i=n[t],r=Tn(i.id,o.request.files.dash.streams);void 0!==r&&(i.profile=r.profile,i.quality=r.quality,i.fps=r.fps),a.fire(Pe.STREAM_TARGET_CHANGE,i,t,n)}function u(e){o.request.files.dash.streams=e.video.map(function(e){return{quality:"".concat(e.height,"p")}}),a.fire(Oe.REPRESENTATIONS_AVAILABLE,e)}function l(e){a.fire(Ce.ENDED)}function d(){if(!(c.isPending||c.isActive||c.isEnded&&!c.isArchived)&&(!c.isStarted||!s.video||o.isNewVideo())){var e=c.isStarted||c.isArchived?ci(o):Jn(o),t=di(o);!s.video||o.isNewVideo()?function(e,t){var n=r.getBoundingClientRect(),i=c.isStarted?ui(o):function(e){var t=e.request.files;if(t.hls){var n=t.hls.default_cdn,i=t.hls.cdns[n].url;return t.hls.cdns[n].captions&&(i=t.hls.cdns[n].captions),{src:i,mime:rn.hls,metadata:{cdn:t.hls.cdn,origin:t.hls.origin,quality:"sd"}}}return null}(o);s.video={id:o.video.id,title:o.video.title,subtitle:"from ".concat(o.video.owner.name),files:e,textTracks:t,externalDisplayFiles:{AirPlay:i},metadata:{thumbnail:o.video.thumbs[640],useHls:o.request.drm&&Wn.browser.safari,drm:o.request.drm,percentShown:Nt.frustumSurfaceArea(o.video.spatial.fov,n.width,n.height)}},a.fire(zt)}(e,t):function(e,t){e.forEach(function(e){var t=s.video.files.getFileById(e.id);t&&(t.src=e.src)}),t.forEach(function(e){var t=s.video.textTracks.getTrackById(e.id);t&&(t.src=e.src)})}(e,t)}}function f(){c.exists&&s.initLiveEvent(li(o)),d()}return(s=new Mt(r,[ut,mt,He],{externalDisplays:[AirPlayExternalDisplay],mediaSourceScanner:{shouldUseBBA:o.request.ab_tests.bba.group,droppedFrameSwitchPercent:function(e){return Wn.spatialPlayback&&e.video.spatial?35:50}(o)},liveEvent:li(o),tests:o.request.ab_tests,fileCodecs:o.video.file_codecs})).hide=function(){r.classList.add("invisible")},s.show=function(){r.classList.remove("invisible")},function(e){for(var t=Object.keys(e),n=t.length,i=[],r=0;ro.video.duration)throw new wi("Seconds must be a positive number less than the duration of the video (".concat(An(o.video.duration),")."),"RangeError","setCurrentTime");c.fire(Ft,null,e)},get duration(){return An(o.video.duration)},get ended(){return i.ended},get enabledTextTrack(){return u},get loop(){return i.loop},set loop(e){i.loop=e},get preload(){return i.preload},set preload(e){i.preload=e},loadVideo:function(e){return o.reset(e),o=a(o),this},unload:function(){return c.fire(Bt),this},on:function(e,t){return c.on(e,t),this},once:function(e,t){return c.once(e,t),this},off:function(e,t){return c.off(e,t),this},enableTextTrack:function(e){var t,n,i=1ln.high)throw new wi("Playback rate should be a number between ".concat(ln.low," and ").concat(ln.high,"."),"RangeError","setPlaybackRate");i.playbackRate=e,i.defaultPlaybackRate=e},get presentationMode(){return i.presentationMode},set presentationMode(e){"picture-in-picture"===e?c.fire(qt):c.fire(Ht)},supportsPresentationMode:function(e){return i.supportsPresentationMode(e)},get supportsTextTracks(){return i.supportsTextTracks},get textTracks(){return i.video?i.video.textTracks:[]},get supportsSettingVolume(){return i.supportsSettingVolume},get volume(){return i?i.volume:An(o.request.cookie.volume)},set volume(e){if(e=parseFloat(e),isNaN(e)||e<0||1 ".length;n&&r++<5&&!("html"===(t=s(n))||1 ")},t.htmlElementAsString=s,t.parseUrl=function(e){if(!e)return{};var t=e.match(/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};var n=t[6]||"",i=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],relative:t[5]+n+i}},t.getEventDescription=function(e){if(e.message)return e.message;if(e.exception&&e.exception.values&&e.exception.values[0]){var t=e.exception.values[0];return t.type&&t.value?t.type+": "+t.value:t.type||t.value||e.event_id||""}return e.event_id||""}});e(Xa);Xa.getGlobalObject,Xa.uuid4,Xa.htmlTreeAsString,Xa.htmlElementAsString,Xa.parseUrl,Xa.getEventDescription;var Ja=t(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Xa.getGlobalObject(),i=new(function(){function e(){this.console=n.console,this.disabled=!0}return e.prototype.disable=function(){this.disabled=!0},e.prototype.enable=function(){this.disabled=!1},e.prototype.log=function(e){this.disabled||this.console.log("Sentry Logger [Log]: "+e)},e.prototype.warn=function(e){this.disabled||this.console.warn("Sentry Logger [Warn]: "+e)},e.prototype.error=function(e){this.disabled||this.console.error("Sentry Logger [Error]: "+e)},e}());t.logger=i});e(Ja);Ja.logger;var Qa=t(function(e,t){var l=Ge&&Ge.__assign||function(){return(l=Object.assign||function(e){for(var t,n=1,i=arguments.length;na[0]&&t[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}},n=Ge&&Ge.__read||function(e,t){var n="function"==typeof Yn&&e[Yn.iterator];if(!n)return e;var i,r,o=n.call(e),a=[];try{for(;(void 0===t||0i?e(t,n-1):r},t.serializeKeysToEventMessage=function(e,t){if(void 0===t&&(t=40),!e.length)return"[object has no keys]";if(e[0].length>=t)return e[0];for(var n=e.length;0t))return n===e.length?i:i+"…"}return""}});e(ns);ns.serialize,ns.deserialize,ns.clone,ns.fill,ns.urlEncode,ns.serializeObject,ns.limitObjectDepthToSize,ns.serializeKeysToEventMessage;var is=t(function(e,t){var n=Ge&&Ge.__extends||function(){var i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};return function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=function(i){function e(e){var t=this.constructor,n=i.call(this,e)||this;return n.message=e,n.name=t.prototype.constructor.name,Object.setPrototypeOf(n,t.prototype),n}return n(e,i),e}(Error);t.SentryError=i});e(is);is.SentryError;var rs=t(function(e,t){var h=Ge&&Ge.__read||function(e,t){var n="function"==typeof Yn&&e[Yn.iterator];if(!n)return e;var i,r,o=n.call(e),a=[];try{for(;(void 0===t||0=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}};Object.defineProperty(t,"__esModule",{value:!0});var v=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w\.-]+)(?::(\d+))?\/(.+)/,n=function(){function e(e){"string"==typeof e?this.fromString(e):this.fromComponents(e),this.validate()}return e.prototype.toString=function(e){void 0===e&&(e=!1);var t=this.host,n=this.path,i=this.pass,r=this.port,o=this.projectId;return this.protocol+"://"+this.user+(e&&i?":"+i:"")+"@"+t+(r?":"+r:"")+"/"+(n?n+"/":n)+o},e.prototype.fromString=function(e){var t=v.exec(e);if(!t)throw new is.SentryError("Invalid Dsn");var n=h(t.slice(1),6),i=n[0],r=n[1],o=n[2],a=void 0===o?"":o,s=n[3],c=n[4],u=void 0===c?"":c,l="",d=n[5],f=d.split("/");1a[0]&&t[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}};Object.defineProperty(t,"__esModule",{value:!0}),t.truncate=function(e,t){return void 0===t&&(t=0),0!==t&&$a.isString(e)?e.length<=t?e:e.substr(0,t)+"…":e},t.snipLine=function(e,t){var n=e,i=n.length;if(i<=150)return n;ia[0]&&t[1]Math.random()?[2,{status:as.Status.Skipped}]:[4,this.prepareEvent(c,d,l)]):[2,{status:as.Status.Skipped}];case 1:if(null===(r=e.sent()))return[2,{status:as.Status.Skipped}];o=r,e.label=2;case 2:return e.trys.push([2,5,,6]),l&&l.data&&!0===l.data.__sentry__||!n?[3,4]:[4,n(r,l)];case 3:o=e.sent(),e.label=4;case 4:return[3,6];case 5:return a=e.sent(),ss.forget(this.captureException(a,{data:{__sentry__:!0},originalException:a})),[2,{reason:"Event processing in beforeSend method threw an exception",status:as.Status.Invalid}];case 6:return null===o?[2,{reason:"Event dropped due to being discarded by beforeSend method",status:as.Status.Skipped}]:[4,u(o)];case 7:return(s=e.sent()).event=o,s.status,as.Status.RateLimit,[2,s]}})})},e.prototype.close=function(t){return p(this,void 0,void 0,function(){return m(this,function(e){return[2,this.getBackend().getBuffer().drain(t)]})})},e}();t.BaseClient=n});e(us);us.BaseClient;var ls=t(function(e,t){var r=Ge&&Ge.__awaiter||function(o,a,s,c){return new(s||(s=ze))(function(e,t){function n(e){try{r(c.next(e))}catch(e){t(e)}}function i(e){try{r(c.throw(e))}catch(e){t(e)}}function r(t){t.done?e(t.value):new s(function(e){e(t.value)}).then(n,i)}r((c=c.apply(o,a||[])).next())})},o=Ge&&Ge.__generator||function(n,i){var r,o,a,e,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return e={next:t(0),throw:t(1),return:t(2)},"function"==typeof Yn&&(e[Yn.iterator]=function(){return this}),e;function t(t){return function(e){return function(t){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,o&&(a=2&t[0]?o.return:t[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,t[1])).done)return a;switch(o=0,a&&(t=[2&t[0],a.value]),t[0]){case 0:case 1:a=t;break;case 4:return s.label++,{value:t[1],done:!1};case 5:s.label++,o=t[1],t=[0];continue;case 7:t=s.ops.pop(),s.trys.pop();continue;default:if(!(a=0<(a=s.trys).length&&a[a.length-1])&&(6===t[0]||2===t[0])){s=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]a[0]&&t[1]a[0]&&t[1]a[0]&&t[1]a[0]&&t[1]a[0]&&t[1] ".length;n&&r++<5&&!("html"===(t=s(n))||1 ")},t.htmlElementAsString=s,t.parseUrl=function(e){if(!e)return{};var t=e.match(/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};var n=t[6]||"",i=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],relative:t[5]+n+i}},t.getEventDescription=function(e){if(e.message)return e.message;if(e.exception&&e.exception.values&&e.exception.values[0]){var t=e.exception.values[0];return t.type&&t.value?t.type+": "+t.value:t.type||t.value||e.event_id||""}return e.event_id||""}}));u(S);var k=S.getGlobalObject,A=(S.uuid4,S.htmlTreeAsString),x=(S.htmlElementAsString,S.parseUrl),L=S.getEventDescription,C=l(function(e,t){function n(){if(!("fetch"in S.getGlobalObject()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(e){return!1}}Object.defineProperty(t,"__esModule",{value:!0}),t.supportsErrorEvent=function(){try{return new ErrorEvent(""),!0}catch(e){return!1}},t.supportsDOMError=function(){try{return new DOMError(""),!0}catch(e){return!1}},t.supportsDOMException=function(){try{return new DOMException(""),!0}catch(e){return!1}},t.supportsFetch=n,t.supportsNativeFetch=function(){return!!n()&&-1!==S.getGlobalObject().fetch.toString().indexOf("native")},t.supportsBeacon=function(){var e=S.getGlobalObject();return"navigator"in e&&"sendBeacon"in e.navigator},t.supportsReportingObserver=function(){return"ReportingObserver"in S.getGlobalObject()},t.supportsReferrerPolicy=function(){if(!n())return!1;try{return new Request("pickleRick",{referrerPolicy:"origin"}),!0}catch(e){return!1}},t.supportsHistory=function(){var e=S.getGlobalObject(),t=e.chrome,n=t&&t.app&&t.app.runtime,i="history"in e&&!!e.history.pushState&&!!e.history.replaceState;return!n&&i}});u(C);C.supportsErrorEvent,C.supportsDOMError,C.supportsDOMException;var P=C.supportsFetch,O=C.supportsNativeFetch,R=C.supportsBeacon,I=C.supportsReportingObserver,M=C.supportsReferrerPolicy,D=C.supportsHistory,N=l(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var a="[NaN]",s="[undefined]";function n(){var r=[],o=[];return function(e,t){var n=t;if(Number.isNaN(t)?n=a:p.isUndefined(t)&&(n=s),0i?e(t,n-1):r},t.serializeKeysToEventMessage=function(e,t){if(void 0===t&&(t=40),!e.length)return"[object has no keys]";if(e[0].length>=t)return e[0];for(var n=e.length;0t))return n===e.length?i:i+"…"}return""}});u(N);var F=N.serialize,B=N.deserialize,j=(N.clone,N.fill),U=(N.urlEncode,N.serializeObject),V=N.limitObjectDepthToSize,q=N.serializeKeysToEventMessage,H=l(function(e){!function(){var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n={rotl:function(e,t){return e<>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&n.rotl(e,8)|4278255360&n.rotl(e,24);for(var t=0;t>>5]|=e[n]<<24-i%32;return t},wordsToBytes:function(e){for(var t=[],n=0;n<32*e.length;n+=8)t.push(e[n>>>5]>>>24-n%32&255);return t},bytesToHex:function(e){for(var t=[],n=0;n>>4).toString(16)),t.push((15&e[n]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],n=0;n>>6*(3-r)&63)):t.push("=");return t.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var t=[],n=0,i=0;n>>6-2*i);return t}};e.exports=n}()}),W={utf8:{stringToBytes:function(e){return W.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(W.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n>>24)|4278255360&(n[c]<<24|n[c]>>>8);n[i>>>5]|=128<>>9<<4)]=i;var u=w._ff,l=w._gg,d=w._hh,f=w._ii;for(c=0;c>>0,o=o+v>>>0,a=a+p>>>0,s=s+m>>>0}return g.endian([r,o,a,s])};w._ff=function(e,t,n,i,r,o,a){var s=e+(t&n|~t&i)+(r>>>0)+a;return(s<>>32-o)+t},w._gg=function(e,t,n,i,r,o,a){var s=e+(t&i|n&~i)+(r>>>0)+a;return(s<>>32-o)+t},w._hh=function(e,t,n,i,r,o,a){var s=e+(t^n^i)+(r>>>0)+a;return(s<>>32-o)+t},w._ii=function(e,t,n,i,r,o,a){var s=e+(n^(t|~i))+(r>>>0)+a;return(s<>>32-o)+t},w._blocksize=16,w._digestsize=16,e.exports=function(e,t){if(null==e)throw new Error("Illegal argument "+e);var n=g.wordsToBytes(w(e,t));return t&&t.asBytes?n:t&&t.asString?b.bytesToString(n):g.bytesToHex(n)}}()}),$=Object.freeze({default:Y,__moduleExports:Y}),X=k(),J={wrap:function(){return function(){}},report:!1,collectWindowErrors:!1,computeStackTrace:!1,remoteFetching:!1,linesOfContext:!1,extendToAsynchronousCallbacks:!1},Q=[].slice,Z=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/;function ee(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function te(){return"undefined"==typeof document||null==document.location?"":document.location.href}J.wrap=function(e){return function(){try{return e.apply(this,arguments)}catch(e){throw J.report(e),e}}},J.report=function(){var u,n,i,r,o=[],a=null,l=null;function d(e,t,n){var i=null;if(!t||J.collectWindowErrors){for(var r in o)if(ee(o,r))try{o[r](e,t,n)}catch(e){i=e}if(i)throw i}}function e(e,t,n,i,r){if(r=g(r)?r.error:r,e=g(e)?e.message:e,l)J.computeStackTrace.augmentStackTraceWithInitialElement(l,t,n,e),f();else if(r&&m(r))d(J.computeStackTrace(r),!0,r);else{var o,a={url:t,line:n,column:i},s=e;if("[object String]"==={}.toString.call(e)){var c=e.match(Z);c&&(o=c[1],s=c[2])}a.func=J.computeStackTrace.guessFunctionName(a.url,a.line),a.context=J.computeStackTrace.gatherContext(a.url,a.line),d({name:o,message:s,mode:"onerror",stack:[h({},a,{url:a.url||te()})]},!0,null)}return!!u&&u.apply(this,arguments)}function t(e){var t=e&&(e.detail?e.detail.reason:e.reason)||e;d(J.computeStackTrace(t),!0,t)}function f(){var e=l,t=a;a=l=null,d(e,!1,t)}function s(e){if(l){if(a===e)return;f()}var t=J.computeStackTrace(e);throw l=t,a=e,setTimeout(function(){a===e&&f()},t.incomplete?2e3:0),e}return s.subscribe=function(e){o.push(e)},s.unsubscribe=function(e){for(var t=o.length-1;0<=t;--t)o[t]===e&&o.splice(t,1);0===o.length&&(n&&(X.onerror=u,n=!1),r&&(X.onerror=i,r=!1))},s.installGlobalHandler=function(){!0!==n&&(u=X.onerror,X.onerror=e,n=!0)},s.installGlobalUnhandledRejectionHandler=function(){!0!==r&&(i=X.onunhandledrejection,X.onunhandledrejection=t,r=!0)},s}(),J.computeStackTrace=function(){var r={};function b(e){if("string"!=typeof e)return[];if(!ee(r,e)){var t="",n="";try{n=X.document.domain}catch(e){}var i=/(.*)\:\/\/([^:\/]+)([:\d]*)\/{0,1}([\s\S]*)/.exec(e);i&&i[2]===n&&(t=function(e){if(!J.remoteFetching)return"";try{var t=function(){try{return new X.XMLHttpRequest}catch(e){return new X.ActiveXObject("Microsoft.XMLHTTP")}}();return t.open("GET",e,!1),t.send(""),t.responseText}catch(e){return""}}(e)),r[e]=t?t.split("\n"):[]}return r[e]}function w(e,t){var n,i=/function ([^(]*)\(([^)]*)\)/,r=/['"]?([0-9A-Za-z$_]+)['"]?\s*[:=]\s*(function|eval|new Function)/,o="",a=b(e);if(!a.length)return"?";for(var s=0;s<10;++s)if(o=a[t-s]+o,!T(o)){if(n=r.exec(o))return n[1];if(n=i.exec(o))return n[1]}return"?"}function E(e,t){var n=b(e);if(!n.length)return null;var i=[],r=Math.floor(J.linesOfContext/2),o=r+J.linesOfContext%2,a=Math.max(0,t-r-1),s=Math.min(n.length,t+o-1);t-=1;for(var c=a;c","(?:>|>)").replace("&","(?:&|&)").replace('"','(?:"|")').replace(/\s+/g,"\\s+")}function k(e,t){for(var n,i,r=0,o=t.length;rn&&(i=o.exec(r[n]))?i.index:null}function f(e){if(!T(X&&X.document)){for(var t,n,i,r,o=[te()],a=X.document.getElementsByTagName("script"),s=""+e,c=0;c|[a-z]:|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,o=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,a=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,s=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,c=/\((\S*)(?::(\d+))(?::(\d+))\)/,u=e.stack.split("\n"),l=[],d=/^(.*) is undefined$/.exec(e.message),f=0,h=u.length;f eval")&&(t=s.exec(n[3]))?n[3]=t[1]:0!==f||n[5]||T(e.columnNumber)||(l[0].column=e.columnNumber+1),i={url:n[3],func:n[1]||"?",args:n[2]?n[2].split(","):[],line:n[4]?+n[4]:null,column:n[5]?+n[5]:null}}if(!i.func&&i.line&&(i.func=w(i.url,i.line)),J.remoteFetching&&i.url&&"blob:"===i.url.substr(0,5)){var p=new XMLHttpRequest;if(p.open("GET",i.url,!1),p.send(""),200===p.status){var m=p.responseText||"",g=(m=m.slice(-300)).match(/\/\/# sourceMappingURL=(.*)$/);if(g){var y=g[1];"~"===y.charAt(0)&&(y=("undefined"==typeof document||null==document.location?"":document.location.origin?document.location.origin:document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:""))+y.slice(1)),i.url=y.slice(0,-4)}}}i.context=i.line?E(i.url,i.line):null,l.push(i)}return l.length?(l[0]&&l[0].line&&!l[0].column&&d&&(l[0].column=_(d[1],l[0].url,l[0].line)),{mode:"stack",name:e.name,message:e.message,stack:l}):null}function v(e,t,n,i){var r={url:t,line:n};if(r.url&&r.line){e.incomplete=!1,r.func||(r.func=w(r.url,r.line)),r.context||(r.context=E(r.url,r.line));var o=/ '([^']+)' /.exec(i);if(o&&(r.column=_(o[1],r.url,r.line)),0]+)>|([^\)]+))\((.*)\))? in (.*):\s*$/i,o=t.split("\n"),a=[],s=0;s"}}function le(e){if(!e||!e.length)return[];var t=e,n=t[0].func||"";return(n.includes("captureMessage")||n.includes("captureException"))&&(t=t.slice(1)),t.map(function(e){return{colno:e.column,filename:e.url||t[0].url,function:e.func||"?",in_app:!0,lineno:e.line}}).slice(0,se).reverse()}var de,fe,he=function(){function e(e){this.options=e,this.url=new bs.API(this.options.dsn).getStoreEndpointWithUrlEncodedAuth()}return e.prototype.captureEvent=function(e){return s(this,void 0,void 0,function(){return c(this,function(e){throw new bs.SentryError("Transport Class has to implement `captureEvent` method")})})},e}(),ve=k(),pe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.captureEvent=function(i){return s(this,void 0,void 0,function(){var t,n;return c(this,function(e){switch(e.label){case 0:return t={body:F(i),method:"POST",referrerPolicy:M()?"origin":""},[4,ve.fetch(this.url,t)];case 1:return n=e.sent(),[2,{status:v.fromHttpCode(n.status)}]}})})},t}(he),me=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.captureEvent=function(r){return s(this,void 0,void 0,function(){var i=this;return c(this,function(e){return[2,new ze(function(e,t){var n=new XMLHttpRequest;n.onreadystatechange=function(){4===n.readyState&&(200===n.status&&e({status:v.fromHttpCode(n.status)}),t(n))},n.open("POST",i.url),n.send(F(r))})]})})},t}(he),ge=k(),ye=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.captureEvent=function(n){return s(this,void 0,void 0,function(){var t;return c(this,function(e){return t=F(n),[2,{status:ge.navigator.sendBeacon(this.url,t)?v.Success:v.Failed}]})})},t}(he),_e=Object.freeze({BaseTransport:he,FetchTransport:pe,XHRTransport:me,BeaconTransport:ye}),be=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.install=function(){if(!this.options.dsn)throw new bs.SentryError("Invariant exception: install() must not be called when disabled");return Error.stackTraceLimit=50,!0},t.prototype.eventFromException=function(o,a){return s(this,void 0,void 0,function(){var t,n,i,r;return c(this,function(e){switch(e.label){case 0:return g(o)&&o.error?(o=(r=o).error,t=ue(oe(o)),[3,7]):[3,1];case 1:return y(o)||_(o)?(n=(r=o).name||(y(r)?"DOMError":"DOMException"),i=r.message?n+": "+r.message:n,[4,this.eventFromMessage(i,void 0,a)]):[3,3];case 2:return t=e.sent(),[3,7];case 3:return m(o)?(t=ue(oe(o)),[3,7]):[3,4];case 4:return E(o)&&a&&a.syntheticException?(t=function(e,t){var n=Object.keys(e).sort(),i={extra:{__serialized__:V(e)},fingerprint:[ae(n.join(""))],message:"Non-Error exception captured with keys: "+q(n)};if(t){var r=le(oe(t).stack);i.stacktrace={frames:r}}return i}(r=o,a.syntheticException),[3,7]):[3,5];case 5:return r=o,[4,this.eventFromMessage(r,void 0,a)];case 6:t=e.sent(),e.label=7;case 7:return[2,t=h({},t,{event_id:a&&a.event_id,exception:h({},t.exception,{mechanism:{handled:!0,type:"generic"}})})]}})})},t.prototype.eventFromMessage=function(r,o,a){return void 0===o&&(o=f.Info),s(this,void 0,void 0,function(){var t,n,i;return c(this,function(e){return t={event_id:a&&a.event_id,fingerprint:[r],level:o,message:r},this.options.attachStacktrace&&a&&a.syntheticException&&(n=oe(a.syntheticException),i=le(n.stack),t.stacktrace={frames:i}),[2,t]})})},t.prototype.sendEvent=function(n){return s(this,void 0,void 0,function(){var t;return c(this,function(e){return this.options.dsn?(this.transport||(t=this.options.transportOptions?this.options.transportOptions:{dsn:this.options.dsn},this.options.transport?this.transport=new this.options.transport({dsn:this.options.dsn}):R()?this.transport=new ye(t):P()?this.transport=new pe(t):this.transport=new me(t)),[2,this.transport.captureEvent(n)]):(bs.logger.warn("Event has been skipped because no Dsn is configured."),[2,{status:v.Skipped,reason:"Event has been skipped because no Dsn is configured."}])})})},t}(bs.BaseBackend),we="sentry.javascript.browser",Ee=function(r){function e(e){return r.call(this,be,e)||this}return n(e,r),e.prototype.prepareEvent=function(t,n,i){return s(this,void 0,void 0,function(){return c(this,function(e){return t.platform=t.platform||"javascript",t.sdk=h({},t.sdk,{name:we,packages:a(t.sdk&&t.sdk.packages||[],[{name:"npm:@sentry/browser",version:"4.0.6"}]),version:"4.0.6"}),[2,r.prototype.prepareEvent.call(this,t,n,i)]})})},e.prototype.showReportDialog=function(e){void 0===e&&(e={});var t=k().document;if(t){var n=e.dsn||this.getDsn();if(!e.eventId)throw new bs.SentryError("Missing `eventId` option in showReportDialog call");if(!n)throw new bs.SentryError("Missing `Dsn` option in showReportDialog call");var i=t.createElement("script");i.async=!0,i.src=new bs.API(n).getReportDialogEndpoint(e),(t.head||t.body).appendChild(i)}},e}(bs.BaseClient),Se=0;function ke(n,o,i){if(void 0===o&&(o={}),!b(n))return n;try{if(n.__sentry__)return n;if(n.__sentry_wrapped__)return n.__sentry_wrapped__}catch(e){return n}var e=function(){var e=this;i&&b(i)&&i.apply(this,arguments);var r=Array.prototype.slice.call(arguments);try{var t=r.map(function(e){return ke(e,o)});return n.handleEvent?n.handleEvent.apply(this,t):n.apply(this,t)}catch(i){throw Se+=1,setTimeout(function(){Se-=1}),bs.withScope(function(n){return s(e,void 0,void 0,function(){var t=this;return c(this,function(e){return n.addEventProcessor(function(n){return s(t,void 0,void 0,function(){var t;return c(this,function(e){return t=h({},n),o.mechanism&&(t.exception=t.exception||{},t.exception.mechanism=o.mechanism),t.extra=h({},t.extra,{arguments:U(r,2)}),[2,t]})})}),bs.getCurrentHub().captureException(i,{originalException:i}),[2]})})}),i}};try{for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])}catch(e){}return e.prototype=n.prototype,(n.__sentry_wrapped__=e).__sentry__=!0,e.__sentry_original__=n,e}function Te(n){return function(e){if(de=void 0,fe!==e){var t;fe=e;try{t=A(e.target)}catch(e){t=""}bs.getCurrentHub().addBreadcrumb({category:"ui."+n,message:t},{event:e,name:n})}}}function Ae(){return function(e){var t;try{t=e.target}catch(e){return}var n=t&&t.tagName;n&&("INPUT"===n||"TEXTAREA"===n||t.isContentEditable)&&(de||Te("input")(e),clearTimeout(de),de=setTimeout(function(){de=void 0},1e3))}}var xe=function(){function e(e){this.name="GlobalHandlers",this.options=h({onerror:!0,onunhandledrejection:!0},e)}return e.prototype.install=function(){var i=this;ne(function(e,t,n){0"},handled:!0,type:"instrument"}}),i.apply(this,e)}},e.prototype.wrapRAF=function(t){return function(e){return t(ke(e,{mechanism:{data:{function:"requestAnimationFrame",handler:t&&t.name||""},handled:!0,type:"instrument"}}))}},e.prototype.wrapEventTarget=function(s){var e=k(),t=e[s]&&e[s].prototype;t&&t.hasOwnProperty&&t.hasOwnProperty("addEventListener")&&(j(t,"addEventListener",function(a){return function(e,t,n){try{t.handleEvent=ke(t.handleEvent.bind(t),{mechanism:{data:{function:"handleEvent",handler:t&&t.name||"",target:s},handled:!0,type:"instrument"}})}catch(e){}var i,r,o;return"EventTarget"!==s&&"Node"!==s||(r=Te("click"),o=Ae(),i=function(e){if(e){var t;try{t=e.type}catch(e){return}return"click"===t?r(e):"keypress"===t?o(e):void 0}}),a.call(this,e,ke(t,{mechanism:{data:{function:"addEventListener",handler:t&&t.name||"",target:s},handled:!0,type:"instrument"}},i),n)}}),j(t,"removeEventListener",function(r){return function(e,t,n){var i=t;try{i=i&&(i.__sentry_wrapped__||i)}catch(e){}return r.call(this,e,i,n)}}))},e.prototype.install=function(){this.ignoreOnError=this.ignoreOnError;var e=k();j(e,"setTimeout",this.wrapTimeFunction.bind(this)),j(e,"setInterval",this.wrapTimeFunction.bind(this)),j(e,"requestAnimationFrame",this.wrapRAF.bind(this)),["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"].forEach(this.wrapEventTarget.bind(this))},e}(),Ce=l(function(e,t){var c=o&&o.__values||function(e){var t="function"==typeof Yn&&e[Yn.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}};Object.defineProperty(t,"__esModule",{value:!0}),t.truncate=function(e,t){return void 0===t&&(t=0),0!==t&&p.isString(e)?e.length<=t?e:e.substr(0,t)+"…":e},t.snipLine=function(e,t){var n=e,i=n.length;if(i<=150)return n;i"},handled:!0,type:"instrument"}})})}(e,n)}),"onreadystatechange"in n&&b(n.onreadystatechange)?j(n,"onreadystatechange",function(e){return ke(e,{mechanism:{data:{function:"onreadystatechange",handler:e&&e.name||""},handled:!0,type:"instrument"}},i)}):n.onreadystatechange=i,r.apply(this,e)}})}},e.prototype.install=function(e){void 0===e&&(e={});var t=e.dsn&&new bs.API(e.dsn).getStoreEndpoint();this.options.console&&this.instrumentConsole(),this.options.dom&&this.instrumentDOM(),this.options.xhr&&this.instrumentXHR({filterUrl:t}),this.options.fetch&&this.instrumentFetch({filterUrl:t}),this.options.beacon&&this.instrumentBeacon({filterUrl:t}),this.options.history&&this.instrumentHistory()},e}(),Ne=function(){function e(e){void 0===e&&(e={}),this.name="LinkedErrors",this.key=e.key||"cause",this.limit=e.limit||5}return e.prototype.install=function(){var t=this;bs.configureScope(function(e){return e.addEventProcessor(t.handler.bind(t))})},e.prototype.handler=function(e,t){if(!(e.exception&&e.exception.values&&t&&t.originalException instanceof Error))return e;var n=this.walkErrorTree(t.originalException,this.key);return e.exception.values=a(e.exception.values,n),e},e.prototype.walkErrorTree=function(e,t,n){if(void 0===n&&(n=[]),!(e[t]instanceof Error)||n.length>=this.limit)return n;var i=ce(oe(e[t]));return this.walkErrorTree(e[t],t,a(n,[i]))},e}();!function(e){e.Crash="crash",e.Deprecation="deprecation",e.Intervention="intervention"}(Me||(Me={}));var Fe=function(){function e(e){void 0===e&&(e={types:[Me.Crash,Me.Deprecation,Me.Intervention]}),this.options=e,this.name="ReportingObserver"}return e.prototype.install=function(){I()&&new(k().ReportingObserver)(this.handler.bind(this),{buffered:!0,types:this.options.types}).observe()},e.prototype.handler=function(e){var t,n,i=function(a){bs.withScope(function(e){e.setExtra("url",a.url);var t="ReportingObserver ["+a.type+"]",n="No details available";if(a.body){var i,r={};for(var o in a.body)r[o]=a.body[o];if(e.setExtra("body",r),a.type===Me.Crash)n=[(i=a.body).crashId||"",i.reason||""].join(" ").trim()||n;else n=(i=a.body).message||n}bs.captureMessage(t+": "+n)})};try{for(var r=function(e){var t="function"==typeof Yn&&e[Yn.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}(e),o=r.next();!o.done;o=r.next()){i(o.value)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}},e}(),Be=k(),je=function(){function e(){this.name="UserAgent"}return e.prototype.install=function(){var t=this;bs.configureScope(function(e){e.addEventProcessor(function(n){return s(t,void 0,void 0,function(){var t;return c(this,function(e){return Be.navigator&&Be.location?((t=n.request||{}).url=t.url||Be.location.href,t.headers=t.headers||{},t.headers["User-Agent"]=Be.navigator.userAgent,[2,h({},n,{request:t})]):[2,n]})})})})},e}(),Ue=function(){function e(e){void 0===e&&(e={}),this.name="Ember",this.Ember=e.Ember||k().Ember}return e.prototype.install=function(){var n=this;if(this.Ember){var e=this.Ember.onerror;this.Ember.onerror=function(t){bs.withScope(function(e){n.addIntegrationToSdkInfo(e),bs.getCurrentHub().captureException(t,{originalException:t})}),"function"==typeof e&&e.call(n.Ember,t)},this.Ember.RSVP.on("error",function(e){var t=bs.getCurrentHub().pushScope();e instanceof Error?(t.setExtra("context","Unhandled Promise error detected"),n.addIntegrationToSdkInfo(t),bs.getCurrentHub().captureException(e,{originalException:e})):(t.setExtra("reason",e),n.addIntegrationToSdkInfo(t),bs.captureMessage("Unhandled Promise error detected")),bs.getCurrentHub().popScope()})}},e.prototype.addIntegrationToSdkInfo=function(e){var t=this;e.addEventProcessor(function(n){return s(t,void 0,void 0,function(){var t;return c(this,function(e){return n.sdk&&(t=n.sdk.integrations||[],n.sdk=h({},n.sdk,{integrations:a(t,["ember"])})),[2,n]})})})},e}(),Ve=function(){function e(e){void 0===e&&(e={}),this.name="Vue",this.Vue=e.Vue||k().Vue}return e.prototype.formatComponentName=function(e){if(e.$root===e)return"root instance";var t=e._isVue?e.$options.name||e.$options._componentTag:e.name;return(t?"component <"+t+">":"anonymous component")+(e._isVue&&e.$options.__file?" at "+e.$options.__file:"")},e.prototype.install=function(){var r=this;if(this.Vue&&this.Vue.config){var o=this.Vue.config.errorHandler;this.Vue.config.errorHandler=function(e,t,n){var i={};E(t)&&(i.componentName=r.formatComponentName(t),i.propsData=t.$options.propsData),T(n)||(i.lifecycleHook=n),bs.withScope(function(t){Object.keys(i).forEach(function(e){t.setExtra(e,i[e])}),t.addEventProcessor(function(n){return s(r,void 0,void 0,function(){var t;return c(this,function(e){return n.sdk&&(t=n.sdk.integrations||[],n.sdk=h({},n.sdk,{integrations:a(t,["vue"])})),[2,n]})})}),bs.getCurrentHub().captureException(e,{originalException:e})}),"function"==typeof o&&o.call(r.Vue,e,t,n)}}},e}(),qe=Object.freeze({GlobalHandlers:xe,TryCatch:Le,Breadcrumbs:De,LinkedErrors:Ne,ReportingObserver:Fe,UserAgent:je,Ember:Ue,Vue:Ve}),He=[new bs.Integrations.Dedupe,new bs.Integrations.InboundFilters,new bs.Integrations.FunctionToString,new Le,new De,new xe,new Fe,new Ne,new je];var We=h({},bs.Integrations,qe);t.addBreadcrumb=bs.addBreadcrumb,t.captureException=bs.captureException,t.captureEvent=bs.captureEvent,t.captureMessage=bs.captureMessage,t.configureScope=bs.configureScope,t.withScope=bs.withScope,t.getHubFromCarrier=bs.getHubFromCarrier,t.getCurrentHub=bs.getCurrentHub,t.Hub=bs.Hub,t.Scope=bs.Scope,t.Integrations=We,t.Transports=_e,t.Severity=f,t.Status=v,t.BrowserBackend=be,t.BrowserClient=Ee,t.defaultIntegrations=He,t.forceLoad=function(){},t.init=function(e){bs.initAndBind(Ee,e,He)},t.lastEventId=function(){return bs.getCurrentHub().lastEventId()},t.onLoad=function(e){e()},t.showReportDialog=function(e){void 0===e&&(e={}),e.eventId||(e.eventId=bs.getCurrentHub().lastEventId()),bs.getCurrentHub().getClient().showReportDialog(e)},t.SDK_NAME=we,t.SDK_VERSION="4.0.6"});e(ws);var Es=ws.addBreadcrumb,Ss=ws.captureException,ks=(ws.captureEvent,ws.captureMessage),Ts=ws.configureScope,As=(ws.withScope,ws.getHubFromCarrier,ws.getCurrentHub,ws.Hub,ws.Scope,ws.Integrations),xs=(ws.Transports,ws.Severity,ws.Status,ws.BrowserBackend,ws.BrowserClient,ws.defaultIntegrations,ws.forceLoad,ws.init),Ls=ws.lastEventId;ws.onLoad,ws.showReportDialog,ws.SDK_NAME,ws.SDK_VERSION;function Cs(e){Di.iOS&&"onpagehide"in window?window.addEventListener("pagehide",e,!1):window.addEventListener("beforeunload",e,!1)}var Ps={setUp:function(r){if(r.request.sentry)try{var e="dev"===r.request.build.js?"dev":"production",t=[new As.Breadcrumbs({console:!1})];xs({dsn:r.request.sentry.url,release:r.request.build.js,sampleRate:.01,environment:e,integrations:t,ignoreErrors:["NotAllowedError","AbortError","PlayInterrupted"],beforeSend:function(e){return r.request?e.message&&0===e.message.indexOf("ReportingObserver")&&.01=e.length?e.apply(t,r):function(){for(var e=arguments.length,t=new Array(e),n=0;nHelp Center.',deferred:!0,final:!0}},DRMFailure:function(){return{id:"drm-failure",title:"Rights issue",message:"We’re having trouble authorizing playback for this video. ",final:!0}},FilesNotPlayable:function(){return{id:"not-supported",title:"Player error",message:"The player is having trouble. We’ll have it back up and running as soon as possible.",deferred:!0,final:!0}},MediaSrcNotSupportedError:function(){return{id:"not-supported",final:!1}},MediaDecodeError:function(){return{id:"decode",final:!1}},MediaNetworkError:function(){return{id:"network",title:"Network error",message:'A network hiccup interrupted playback. Please reload the player and try again.',final:!0}},MediaUnknownError:function(){return{id:"unknown",title:"Browser error",message:'We’re having trouble playing this video file. Please reload the player and try again.',final:!0}},FileError:function(){return{id:"telecine-file-error",final:!1}},DownloadError:function(){return{id:"telecine-download-error",final:!1}},MediaUrlExpired:function(){return{id:"media-url-expired",title:"Playback error",message:'We’re having trouble playing this video. Please reload the player and try again.',final:!1}},ScannerError:function(){return{id:"scanner-error",final:!1}},PlayerError:$c}),Jc="app.vimeo.com/",Qc="key_live_jpj6Duy53e6MhounkriNljdgsBhGbf0d";function Zc(e,t){return function(e){var t,n={feature:1pl(e)},_l=function(e){var t=pl(e),n=ml(e);if(yl(e))return t<225;var i=hl(e.embed.settings.customLogo)&&t<300||n<169,r=!hl(e.embed.settings.customLogo)&&(t<338||n<190);return i||r},bl=function(e){var t=pl(e);if(yl(e))return t<300;var n=hl(e.embed.settings.customLogo)&&t<375,i=!hl(e.embed.settings.customLogo)&&t<450;return n||i},wl=function(e){var t=pl(e);return vl.xxs<=t&&t":">",'"':""","'":"'","/":"/"},escape:function(e){return e.replace(/[&<>"'\/]/g,function(e){return n.map[e]})},helpers:{}};n.templates.stream_studder=function(e){var t="

";return t+=this.render("icon_warning")||"",t+=' Having issues? for smoother streaming.

'},n.templates.warning_alert=function(e){var t="

";return t+=this.render("icon_warning")||"",t+=" "+e.strings.text+"

"},n.templates.badge=function(e){var t="";return e.badge&&(e.badge.link&&(t+=' ',e.badge.link&&(t+=""),t+=""),t+=""},n.templates.buffer_pattern=function(e){return''},n.templates.card=function(e){var t='
'),t+='
',e.image&&(t+='
'),t+='

',t+=this.escape(e.headline)||"",t+=" ",e.url&&(t+=this.render("icon_card_arrow")||""),t+="

",e.teaser&&(t+='

',t+=this.escape(e.teaser)||"",t+="

"),t+="
",e.url&&(t+=""),t+="
"},n.templates.compass=function(e){var t=' ';return 1==e.version?t+=' ':t+=' ',t+=""},n.templates.controlbar_trailer=function(e){var t='",e.vimeoLogo.show&&(t+=' "),t+="",e.customLogo&&(t+='
',e.customLogo.showLink&&(t+=''),t+=' ',e.customLogo.showLink&&(t+=""),t+="
"),t+=""},n.templates.controlbar=function(e){var t='
',t+=this.render("live_status")||"",t+=this.render("live_viewer_count")||"",t+='
",e.volume&&(t+='
'),e.castButton&&(t+=' '),e.ccButton&&(t+=' "),e.prefsButton&&(t+=' "),e.airplayButton&&(t+=' "),e.stereoscopicButton&&(t+=' "),t+=' ",e.vimeoLogo.show&&(t+=' "),t+="
",e.customLogo&&(t+='
',e.customLogo.showLink&&(t+=''),t+=' ',e.customLogo.showLink&&(t+=""),t+="
"),t+='
'},n.templates.debug_panel=function(e){var t="
";return t+=this.render("debug_values",e)||"",t+="
",e.hideCloseButton||(t+='"),t+='',e.isCopyDisabled||(t+=''),t+=""},n.templates.debug_values=function(e){var t='

Clip ID:'+e.clipId+'

Delivery:'+e.delivery+"

";return e.resolution&&(t+='

Playing:'+e.resolution+"

"),t+='

Embed size:'+e.embedSize+"

",e.isDash&&(t+='

Separate AV:'+e.separateAudioVideo+"

"),t+="",(e.isDash||e.isLive)&&(t+='

Dropped frames:'+e.droppedFrames+" / "+e.totalFrames+" - "+e.droppedFramesPercent+"

"),t+="",(e.isDash||e.isLive)&&(t+='

Bandwidth:'+e.bandwidthKbps+' ('+e.bandwidthMinKbps+''+e.bandwidthMaxKbps+')

'+e.bandwidthSeriesSvg+"
"),t+="",e.displayBufferOccupancy&&(t+='

Buffer Occupancy:'+e.bufferOccupancyPercent+'

'+e.bufferOccupancySvg+"
"),t+="",e.sessionId&&(t+='

Debug Key:
'+e.sessionId+"

"),t},n.templates.icon_airplay=function(e){return''},n.templates.icon_back=function(e){return''},n.templates.icon_broken_heart=function(e){return''},n.templates.icon_card_arrow=function(e){return''},n.templates.icon_cc=function(e){return''},n.templates.icon_check=function(e){return''},n.templates.icon_clock=function(e){return''},n.templates.icon_close_new=function(e){return''},n.templates.icon_close=function(e){return''},n.templates.icon_collections=function(e){return''},n.templates.icon_embed=function(e){return''},n.templates.icon_facebook=function(e){return''},n.templates.icon_follow=function(e){return''},n.templates.icon_fullscreen=function(e){return''},n.templates.icon_gear=function(e){return''},n.templates.icon_heart=function(e){return''},n.templates.icon_line_arrow=function(e){return''},n.templates.icon_live_viewers=function(e){return''},n.templates.icon_lock=function(e){return''},n.templates.icon_mail=function(e){return''},n.templates.icon_muted=function(e){return''},n.templates.icon_pause=function(e){return''},n.templates.icon_pip=function(e){return''},n.templates.icon_play=function(e){return''},n.templates.icon_prev=function(e){return''},n.templates.icon_replay=function(e){return''},n.templates.icon_share=function(e){return''},n.templates.icon_spin=function(e){return''},n.templates.icon_stereoscopic=function(e){return''},n.templates.icon_tumblr=function(e){return''},n.templates.icon_twitter=function(e){return''},n.templates.icon_unfullscreen=function(e){return''},n.templates.icon_vod_download=function(e){return''},n.templates.icon_vod_rent=function(e){return''},n.templates.icon_vod_subscribe=function(e){return''},n.templates.icon_vod=function(e){return''},n.templates.icon_warning=function(e){return''},n.templates.live_status=function(e){return'
LIVE
'},n.templates.live_viewer_count=function(e){var t='
';return t+=this.render("icon_live_viewers")||"",t+='
0
'},n.templates.logo=function(e){return'Vimeo'},n.templates.menu_list_panel=function(e){var t='
    ';for(var n=0;n ";return t+='
'},n.templates.menu=function(e){var t='"},n.templates.outer=function(e){var t='
';return t+=this.render("icon_spin")||"",t+='
'},n.templates.sidedock=function(e){var t="";return e.vodButton&&(t+='
'),e.likeButton&&(t+='
"),e.watchLaterButton&&(t+='
"),e.collectionsButton&&(t+='
"),e.shareButton&&(t+='
"),e.vodButton&&(t+="
"),t+=""},n.templates.app_redirect=function(e){var t='
';return e.strings.title&&(t+='
'+e.strings.title+"
"),e.hideRedirectButton||(t+='
"),e.strings.ignoreText&&(t+='
'+e.strings.ignoreText+"
"),e.strings.bottomText&&(t+='
'+e.strings.bottomText+"
"),t+="
"},n.templates.email_capture=function(e){var t='"},n.templates.outro_vod=function(e){var t='"},n.templates.password=function(e){return'

'+e.strings.title+'

'+e.strings.subtitle+'

'},n.templates.private_locked=function(e){return'"},n.templates.private_unlocked=function(e){return'

'+e.strings.title+'

'+e.strings.subtitle+'

"},n.templates.share=function(e){var t='

'+e.strings.share+'

",e.embed&&(t+=' "),e.url&&(t+=' "),t+="
",e.embed&&(t+='

'+e.strings.embedTitle+'

'+e.strings.embedSubtitle+'

'+e.strings.copy+" "),t+="
",e.customizeEmbed&&(t+='

'+e.strings.customize+"

"),t+="
"),t+="
"},n.templates.threesixty_reminder=function(e){var t='
';return e.showArrows&&(t+='
'),t+="
"+e.text+"
"},n.templates.time_series_graph=function(e){return' '+e.markers+" "},n.templates.title_byline_badge=function(e){var t="";return e.displayBadge&&(t+=" ",e.link&&(t+=''+e.cssClass+"",e.link&&(t+=""),t+=""),t+=""},n.templates.title_owner_byline=function(e){var t="";return e.linkToOwner?(t+='"):(t+='',t+=this.escape(e.owner)||"",t+=""),t+=""},n.templates.title=function(e){var t='
';return e.showPortrait&&(t+=' "),t+='
"},n.templates.unmute_button=function(e){var t='"},e.exports?e.exports=n:window.Aftershave=n}()}),Vl={id:"7742C69E",name:"prod"},ql="urn:x-cast:com.vimeo.cast.media",Hl={connected:"chromecast-connected",disconnected:"chromecast-disconnected",playing:"chromecast-playing",paused:"chromecast-paused",buffering:"chromecast-buffering",idle:"chromecast-idle",ended:"chromecast-ended",sessionStateChanged:"chromecast-session-state-changed",timeUpdated:"chromecast-time-updated",mediaLoadedSuccess:"chromecast-media-loaded-success",mediaLoadedFailed:"chromecast-media-loaded-failed",error:"chromecast-error"},Wl=function(){function n(e){for(var t in R(this,n),e=e||this,console)"function"==typeof console[t]&&(this[t]=function(){})}return M(n,[{key:"toString",value:function(){return"Console"}}]),n}(),Gl=function(){function t(e){R(this,t),this.alertTextElement=e.querySelector(".vp-text-alert-wrapper"),this.alertContentElement=this.alertTextElement.querySelector(".vp-alert-text")}return M(t,[{key:"show",value:function(e){this.alertContentElement.innerHTML=e,this.alertContentElement.classList.remove("hidden"),this.alertTextElement.classList.remove("hidden")}},{key:"hide",value:function(){this.alertContentElement.classList.add("hidden"),this.alertTextElement.classList.add("hidden")}}]),t}(),zl=t(function(e,t){function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function i(e,t){return e(t={exports:{}},t.exports),t.exports}Object.defineProperty(t,"__esModule",{value:!0});var r=Math.ceil,o=Math.floor,c=function(e){return isNaN(e=+e)?0:(0r;)A(i,n=t[r++])&&(~Y(o,n)||o.push(n));return o},J="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),Q=Object.keys||function(e){return X(e,J)},Z=s?Object.defineProperties:function(e,t){v(e);for(var n,i=Q(t),r=i.length,o=0;odocument.F=Object<\/script>"),e.close(),oe=e.F;n--;)delete oe[re][J[n]];return oe()},ae=Object.create||function(e,t){var n;return null!==e?(ie[re]=v(e),n=new ie,ie[re]=null,n[ne]=e):n=oe(),void 0===t?n:Z(n,t)},se=i(function(e){var t=q("wks"),n=p.Symbol,i="function"==typeof n;(e.exports=function(e){return t[e]||(t[e]=i&&n[e]||(i?n:G)("Symbol."+e))}).store=t}),ce=E.f,ue=se("toStringTag"),le=function(e,t,n){e&&!A(e=n?e:e.prototype,ue)&&ce(e,ue,{configurable:!0,value:t})},de={};k(de,se("iterator"),function(){return this});var fe=function(e){return Object(u(e))},he=K("IE_PROTO"),ve=Object.prototype,pe=Object.getPrototypeOf||function(e){return e=fe(e),A(e,he)?e[he]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?ve:null},me=se("iterator"),ge=!([].keys&&"next"in[].keys()),ye="values",_e=function(){return this},be=function(e,t,n,i,r,o,a){!function(e,t,n){e.prototype=ae(de,{next:S(1,n)}),le(e,t+" Iterator")}(n,t,i);var s,c,u,l=function(e){if(!ge&&e in v)return v[e];switch(e){case"keys":case ye:return function(){return new n(this,e)}}return function(){return new n(this,e)}},d=t+" Iterator",f=r==ye,h=!1,v=e.prototype,p=v[me]||v["@@iterator"]||r&&v[r],m=p||l(r),g=r?f?l("entries"):m:void 0,y="Array"==t&&v.entries||p;if(y&&(u=pe(y.call(new e)))!==Object.prototype&&u.next&&le(u,d,!0),f&&p&&p.name!==ye&&(h=!0,m=function(){return p.call(this)}),a&&(ge||h||!v[me])&&k(v,me,m),O[t]=m,O[d]=_e,r)if(s={values:f?m:l(ye),keys:o?m:l("keys"),entries:g},a)for(c in s)c in v||P(v,c,s[c]);else C(C.P+C.F*(ge||h),t,s);return s},we=function(s){return function(e,t){var n,i,r=String(u(e)),o=c(t),a=r.length;return o<0||a<=o?s?"":void 0:(n=r.charCodeAt(o))<55296||56319=t.length?{value:void 0,done:!0}:(e=we(t,n),this._i+=e.length,{value:e,done:!1})});var Ee=function(e,t){return{value:t,done:!!e}};be(Array,"Array",function(e,t){this._t=D(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,Ee(1)):Ee(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values");O.Arguments=O.Array;for(var Se=se("toStringTag"),ke="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),Te=0;Tea;)o.call(e,i=r[a++])&&t.push(i);return t}(t=D(t)),r=0,o=i.length;rr;)A(rt,t=n[r++])||t==et||t==ze||i.push(t);return i},yt=function(e){for(var t,n=e===at,i=$e(n?ot:D(e)),r=[],o=0;i.length>o;)!A(rt,t=i[o++])||n&&!A(at,t)||r.push(rt[t]);return r};st||(P((Xe=function(){if(this instanceof Xe)throw TypeError("Symbol is not a constructor!");var t=G(0bt;)se(_t[bt++]);for(var wt=Q(se.store),Et=0;wt.length>Et;)Me(wt[Et++]);C(C.S+C.F*!st,"Symbol",{for:function(e){return A(it,e+="")?it[e]:it[e]=Xe(e)},keyFor:function(e){if(!ft(e))throw TypeError(e+" is not a symbol!");for(var t in it)if(it[t]===e)return t},useSetter:function(){ut=!0},useSimple:function(){ut=!1}}),C(C.S+C.F*!st,"Object",{create:function(e,t){return void 0===t?ae(e):vt(ae(e),t)},defineProperty:ht,defineProperties:vt,getOwnPropertyDescriptor:mt,getOwnPropertyNames:gt,getOwnPropertySymbols:yt}),Je&&C(C.S+C.F*(!st||d(function(){var e=Xe();return"[null]"!=Qe([e])||"{}"!=Qe({a:e})||"{}"!=Qe(Object(e))})),"JSON",{stringify:function(e){for(var t,n,i=[e],r=1;arguments.length>r;)i.push(arguments[r++]);if(n=t=i[1],(l(t)||void 0!==e)&&!ft(e))return Fe(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!ft(t))return t}),i[1]=t,Qe.apply(Je,i)}}),Xe[Ze][tt]||k(Xe[Ze],tt,Xe[Ze].valueOf),le(Xe,"Symbol"),le(Math,"Math",!0),le(p.JSON,"JSON",!0),Me("asyncIterator"),Me("observable");var St=m.Symbol,kt=i(function(e){e.exports={default:St,__esModule:!0}});n(kt);var Tt=n(i(function(e,t){t.__esModule=!0;var n=o(Oe),i=o(kt),r="function"==typeof i.default&&"symbol"==typeof n.default?function(e){return typeof e}:function(e){return e&&"function"==typeof i.default&&e.constructor===i.default&&e!==i.default.prototype?"symbol":typeof e};function o(e){return e&&e.__esModule?e:{default:e}}t.default="function"==typeof i.default&&"symbol"===r(n.default)?function(e){return void 0===e?"undefined":r(e)}:function(e){return e&&"function"==typeof i.default&&e.constructor===i.default&&e!==i.default.prototype?"symbol":void 0===e?"undefined":r(e)}}));!function(e,t){var n=(m.Object||{})[e]||Object[e],i={};i[e]=t(n),C(C.S+C.F*d(function(){n(1)}),"Object",i)}("keys",function(){return function(e){return Q(fe(e))}});var At,xt,Lt,Ct=m.Object.keys,Pt=n(i(function(e){e.exports={default:Ct,__esModule:!0}})),Ot=se("toStringTag"),Rt="Arguments"==I(function(){return arguments}()),It=function(e){var t,n,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),Ot))?n:Rt?I(t):"Object"==(i=I(t))&&"function"==typeof t.callee?"Arguments":i},Mt=function(t,e,n,i){try{return i?e(v(n)[0],n[1]):e(n)}catch(e){var r=t.return;throw void 0!==r&&v(r.call(t)),e}},Dt=se("iterator"),Nt=Array.prototype,Ft=se("iterator"),Bt=m.getIteratorMethod=function(e){if(null!=e)return e[Ft]||e["@@iterator"]||O[It(e)]},jt=i(function(e){var f={},h={},t=e.exports=function(e,t,n,i,r){var o,a,s,c,u=r?function(){return e}:Bt(e),l=g(n,i,t?2:1),d=0;if("function"!=typeof u)throw TypeError(e+" is not iterable!");if(function(e){return void 0!==e&&(O.Array===e||Nt[Dt]===e)}(u)){for(o=F(e.length);dn;)t.push(arguments[n++]);return Yt[++Kt]=function(){!function(e,t,n){var i=void 0===n;switch(t.length){case 0:return i?e():e.call(n);case 1:return i?e(t[0]):e.call(n,t[0]);case 2:return i?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return i?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return i?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}e.apply(n,t)}("function"==typeof e?e:Function(e),t)},At(Kt),Kt},Wt=function(e){delete Yt[e]},"process"==I(qt)?At=function(e){qt.nextTick(g(Xt,e,1))}:zt&&zt.now?At=function(e){zt.now(g(Xt,e,1))}:Gt?(Lt=(xt=new Gt).port2,xt.port1.onmessage=Jt,At=g(Lt.postMessage,Lt,1)):p.addEventListener&&"function"==typeof postMessage&&!p.importScripts?(At=function(e){p.postMessage(e+"","*")},p.addEventListener("message",Jt,!1)):At=$t in y("script")?function(e){te.appendChild(y("script"))[$t]=function(){te.removeChild(this),Xt.call(e)}}:function(e){setTimeout(g(Xt,e,1),0)});var Qt={set:Ht,clear:Wt},Zt=Qt.set,en=p.MutationObserver||p.WebKitMutationObserver,tn=p.process,nn=p.Promise,rn="process"==I(tn);function on(e){var n,i;this.promise=new e(function(e,t){if(void 0!==n||void 0!==i)throw TypeError("Bad Promise constructor");n=e,i=t}),this.resolve=a(n),this.reject=a(i)}var an={f:function(e){return new on(e)}},sn=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}},cn=function(e,t){if(v(e),l(t)&&t.constructor===e)return t;var n=an.f(e);return(0,n.resolve)(t),n.promise},un=se("species"),ln=se("iterator"),dn=!1;try{[7][ln]().return=function(){dn=!0}}catch(e){}var fn,hn,vn,pn,mn=Qt.set,gn=function(){var n,i,r,e=function(){var e,t;for(rn&&(e=tn.domain)&&e.exit();n;){t=n.fn,n=n.next;try{t()}catch(e){throw n?r():i=void 0,e}}i=void 0,e&&e.enter()};if(rn)r=function(){tn.nextTick(e)};else if(!en||p.navigator&&p.navigator.standalone)if(nn&&nn.resolve){var t=nn.resolve();r=function(){t.then(e)}}else r=function(){Zt.call(p,e)};else{var o=!0,a=document.createTextNode("");new en(e).observe(a,{characterData:!0}),r=function(){a.data=o=!o}}return function(e){var t={fn:e,next:void 0};i&&(i.next=t),n||(n=t,r()),i=t}}(),yn="Promise",_n=p.TypeError,bn=p.process,wn=p[yn],En="process"==It(bn),Sn=function(){},kn=hn=an.f,Tn=!!function(){try{var e=wn.resolve(1),t=(e.constructor={})[se("species")]=function(e){e(Sn,Sn)};return(En||"function"==typeof PromiseRejectionEvent)&&e.then(Sn)instanceof t}catch(e){}}(),An=function(e){var t;return!(!l(e)||"function"!=typeof(t=e.then))&&t},xn=function(l,n){if(!l._n){l._n=!0;var i=l._c;gn(function(){for(var c=l._v,u=1==l._s,e=0,t=function(e){var t,n,i,r=u?e.ok:e.fail,o=e.resolve,a=e.reject,s=e.domain;try{r?(u||(2==l._h&&Pn(l),l._h=1),!0===r?t=c:(s&&s.enter(),t=r(c),s&&(s.exit(),i=!0)),t===e.promise?a(_n("Promise-chain cycle")):(n=An(t))?n.call(t,o,a):o(t)):a(c)}catch(e){s&&!i&&s.exit(),a(e)}};i.length>e;)t(i[e++]);l._c=[],l._n=!1,n&&!l._h&&Ln(l)})}},Ln=function(o){mn.call(p,function(){var e,t,n,i=o._v,r=Cn(o);if(r&&(e=sn(function(){En?bn.emit("unhandledRejection",i,o):(t=p.onunhandledrejection)?t({promise:o,reason:i}):(n=p.console)&&n.error&&n.error("Unhandled promise rejection",i)}),o._h=En||Cn(o)?2:1),o._a=void 0,r&&e.e)throw e.v})},Cn=function(e){return 1!==e._h&&0===(e._a||e._c).length},Pn=function(t){mn.call(p,function(){var e;En?bn.emit("rejectionHandled",t):(e=p.onrejectionhandled)&&e({promise:t,reason:t._v})})},On=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),xn(t,!0))},Rn=function(e){var n,i=this;if(!i._d){i._d=!0,i=i._w||i;try{if(i===e)throw _n("Promise can't be resolved itself");(n=An(e))?gn(function(){var t={_w:i,_d:!1};try{n.call(e,g(Rn,t,1),g(On,t,1))}catch(e){On.call(t,e)}}):(i._v=e,i._s=1,xn(i,!1))}catch(e){On.call({_w:i,_d:!1},e)}}};Tn||(wn=function(e){!function(e,t,n,i){if(!(e instanceof t)||void 0!==i&&i in e)throw TypeError(n+": incorrect invocation!")}(this,wn,yn,"_h"),a(e),fn.call(this);try{e(g(Rn,this,1),g(On,this,1))}catch(e){On.call(this,e)}},(fn=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=function(e,t,n){for(var i in t)n&&e[i]?e[i]=t[i]:k(e,i,t[i]);return e}(wn.prototype,{then:function(e,t){var n=kn(Vt(this,wn));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=En?bn.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&xn(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),vn=function(){var e=new fn;this.promise=e,this.resolve=g(Rn,e,1),this.reject=g(On,e,1)},an.f=kn=function(e){return e===wn||e===pn?new vn(e):hn(e)}),C(C.G+C.W+C.F*!Tn,{Promise:wn}),le(wn,yn),function(e){var t="function"==typeof m[e]?m[e]:p[e];s&&t&&!t[un]&&E.f(t,un,{configurable:!0,get:function(){return this}})}(yn),pn=m[yn],C(C.S+C.F*!Tn,yn,{reject:function(e){var t=kn(this);return(0,t.reject)(e),t.promise}}),C(C.S+!0*C.F,yn,{resolve:function(e){return cn(this===pn?wn:this,e)}}),C(C.S+C.F*!(Tn&&function(e,t){if(!t&&!dn)return!1;var n=!1;try{var i=[7],r=i[ln]();r.next=function(){return{done:n=!0}},i[ln]=function(){return r},e(i)}catch(e){}return n}(function(e){wn.all(e).catch(Sn)})),yn,{all:function(e){var a=this,t=kn(a),s=t.resolve,c=t.reject,n=sn(function(){var i=[],r=0,o=1;jt(e,!1,function(e){var t=r++,n=!1;i.push(void 0),o++,a.resolve(e).then(function(e){n||(n=!0,i[t]=e,--o||s(i))},c)}),--o||s(i)});return n.e&&c(n.v),t.promise},race:function(e){var t=this,n=kn(t),i=n.reject,r=sn(function(){jt(e,!1,function(e){t.resolve(e).then(n.resolve,i)})});return r.e&&i(r.v),n.promise}}),C(C.P+C.R,"Promise",{finally:function(t){var n=Vt(this,m.Promise||p.Promise),e="function"==typeof t;return this.then(e?function(e){return cn(n,t()).then(function(){return e})}:t,e?function(e){return cn(n,t()).then(function(){throw e})}:t)}}),C(C.S,"Promise",{try:function(e){var t=an.f(this),n=sn(e);return(n.e?t.reject:t.resolve)(n.v),t.promise}});var In=m.Promise,Mn=n(i(function(e){e.exports={default:In,__esModule:!0}})),Dn=Object.assign,Nn=!Dn||d(function(){var e={},t={},n=Yn(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach(function(e){t[e]=e}),7!=Dn({},e)[n]||Object.keys(Dn({},t)).join("")!=i})?function(e,t){for(var n=fe(e),i=arguments.length,r=1,o=De.f,a=Ne.f;r=this.duration}},{key:"isOutroRendered",get:function(){return this._isOutroRendered||!1}},{key:"isLooped",get:function(){return this.player.config.embed.loop}},{key:"isEndOfVideo",get:function(){return this._isEndOfVideo||!1}},{key:"currentTime",set:function(e){$l.remotePlayer&&$l.remotePlayerController&&($l.remotePlayer.currentTime=e,$l.remotePlayerController.seek(),this._lastCurrentTime=e)}},{key:"volumeLevel",set:function(e){$l.remotePlayer&&$l.remotePlayerController&&($l.remotePlayer.volumeLevel=e,$l.remotePlayerController.setVolumeLevel())}},{key:"duration",get:function(){return this.player.config.video.duration}},{key:"isPlayingOrPaused",get:function(){return $l.remotePlayer?$l.remotePlayer.playerState===$l.PlayerState.PLAYING||$l.remotePlayer.playerState===$l.PlayerState.PAUSED:null}},{key:"isIdle",get:function(){return $l.remotePlayer?null===$l.remotePlayer.playerState||$l.remotePlayer.playerState===$l.PlayerState.IDLE:null}}]),r}();function Ql(e,t){var n,i=600,r=e.querySelector(".vp-shade"),o=e.querySelector(".vp-spin");function a(){clearTimeout(n),n=setTimeout(function(){r.classList.remove("vp-shade-invisible"),o.classList.remove("vp-spin-invisible")},i)}function s(){clearTimeout(n),r.classList.add("vp-shade-invisible"),o.classList.add("vp-spin-invisible")}return t.on(Pe.BUFFER_STARTED,a),t.on([Pe.BUFFER_ENDED,Da.paused],s),$l.on(Hl.buffering,function(){o.classList.remove("vp-spin-invisible")}),$l.on([Hl.playing,Hl.paused],function(){clearTimeout(n),o.classList.add("vp-spin-invisible")}),$l.on(Hl.connected,function(){r.classList.remove("vp-shade-invisible")}),$l.on(Hl.disconnected,function(){s()}),{}}var Zl=function(r){return function(i){for(var e=arguments.length,t=new Array(1=e?t.apply(n,r):function(){for(var e=arguments.length,t=new Array(e),n=0;no.config.video.duration)throw new Rd("Cue point time must be positive number less than the duration of the video (".concat(qs(o.config.video.duration),")."),"RangeError","addCuePoint");try{var n=o.backbone.addCuePoint(e,t);return setTimeout(function(){o.events.fire(Da.cuePointAdded,n)},0),n.id}catch(e){if("CuePointsNotSupported"===e.name)throw new Rd("Cue points are not supported in the current player.","UnsupportedError","addCuePoint");throw new Rd("Unable to add cue point","InvalidCuePoint","addCuePoint")}},removeCuePoint:function(t){var e=o.backbone.telecine.cuePoints.filter(function(e){return e.id===t})[0];if(!e)throw new Rd("Cue point “".concat(t,"” was not found."),"InvalidCuePoint","removeCuePoint");o.backbone.removeCuePoint(e),setTimeout(function(){o.events.fire(Da.cuePointRemoved,e)},0)},enableTextTrack:function(t){var e=1o.config.video.duration)throw new Rd("Seconds must be a positive number less than the duration of the video (".concat(qs(o.config.video.duration),")."),"RangeError","setCurrentTime");return o.events.fire(Ia.seek,null,e),o.events.fire(Da.mousedOver),a<3?null:new ze(function(n,e){o.events.once(Ce.SEEKED,function(e){var t=e.currentTime;n(t)})})},get duration(){return qs(o.config.video.duration)},get ended(){return!!o.backbone.ended},get loop(){return!!o.config.embed.loop},set loop(e){o.events.fire(Ia.changeLoop,e)},get paused(){return!(o.backbone&&"paused"in o.backbone)||!!o.backbone.paused},get playbackRate(){return o.backbone?o.backbone.playbackRate:1},set playbackRate(e){if(!o.config.embed.settings.speed)throw new Rd("Setting the playback rate is not enabled for this video.","Error","setPlaybackRate");if(isNaN(e)||eqa.high)throw new Rd("Playback rate should be a number between ".concat(qa.low," and ").concat(qa.high,"."),"RangeError","setPlaybackRate");o.events.fire(Ia.changePlaybackRate,e)},get textTracks(){return(o.telecine?o.telecine.video.textTracks:[]).map(function(e){return{label:e.label,language:e.language,kind:e.kind,mode:e===d?"showing":"disabled"}})},get videoEmbedCode(){return o.config.video.embed_code},get videoHeight(){return o.telecine.videoHeight||o.config.video.height},get videoId(){return o.config.video.id},get videoTitle(){return o.config.video.title},get videoWidth(){return o.telecine.videoWidth||o.config.video.width},get videoUrl(){if(!o.config.video.url)throw new Rd("The URL is not available because of the video’s privacy settings.","PrivacyError","getVideoUrl");return o.config.video.url},get volume(){var e=qs(o.config.request.cookie.volume);return 1===a?Math.round(100*e):e},set volume(e){if(e=parseFloat(e),1===a&&(e/=100),isNaN(e)||e<0||1t&&e.height>n&&(t/e.width<.4?a=i:t/e.width<1?a=r:1d[t]?e:t})){case"satisfied":return 1;case"tolerable":return.5;case"frustrated":return 0}return null}return c.addEventListener($d.PLAYING,function(){-1===o&&(a=zd())}),c.addEventListener($d.PROGRESS,function(){-1===o&&(s=zd(),o=Kd(a)),f()}),{startupTimeScore:v,rebufferScore:p,failureScore:h,videoQualityScore:m,overallScore:function(){return Math.min(h(),v(),p(),m())},trackBufferStart:function(){-1!==o&&(e++,t=zd())},trackBufferEnd:function(){-1!==o&&(n+=Kd(t))},onError:function(e){e.final&&(r=!0)}}}Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){for(var t=Object(this),n=t.length>>>0,i=arguments[1],r=0;ru?S+=1:k+=1),p[i].push({start:r}),y[i]={bitrate:n[t].bitrate,width:n[t].width,height:n[t].height},O.log(yf.VIDEO_STREAM_CHANGE,{previous_audio_bitrate:l,previous_video_bitrate:u,previous_profile_id:String(c)}),c=i,u=n[t].bitrate,l=n[t].audioBitrate}function X(e){w=e}function J(e){var t=e.dropped/e.total*100;T=Math.round(100*t)/100,A=e.dropped}function Q(e){var t=e.speed;m.push(t),500>e/4).toString(16)});i.classList.add("player-".concat(l)),i.classList.add("loading"),i.id||(i.id="player".concat(l)),i.innerHTML=Ul.render("outer",{strings:{back:"Back",close:"Close overlay"}});var d=i.querySelector(".vp-telecine");if(Di.iOS){var f=document.createElement("video");d.appendChild(f);try{f.setAttribute("muted",""),f.setAttribute("playsinline",""),f.load()}catch(e){Ps.captureException(e)}}var h,v=null,m=null,g=null,y=null,_=null,b=null,w=null,E={},S=new ze(function(e,t){h=e}).then(function(){return u.fire(Da.ready),null}),k={get config(){return p.config},set config(e){p.config=e},get delegate(){return o},set delegate(e){o=e},ready:function(e){if(!e)return S;S.then(function(){return e()}).catch(function(e){Ps.captureException(e)})},get sessionId(){return p.config.request.session}};function T(e){var t=e.old,n=e.loaded;if(function(e,t){if(e)s&&"".concat(s," ")}(!t),window.parent!==window){var i="Private Video on Vimeo";n.view!==Wa.main&&n.view!==Wa.privateUnlocked||(i="".concat(n.video.title," from ").concat(n.video.owner.name," on Vimeo")),document.title=i,history&&history.replaceState&&n.video&&t&&history.replaceState({id:n.video.id},"","/video/".concat(n.video.id).concat(window.location.search))}if(n.view!==Wa.main&&n.view!==Wa.privateUnlocked)throw new Error("Config not authorized: ".concat(n.view));t&&t.embed&&t.embed.color!==n.embed.color&&u.fire(Ia.changeColor,n.embed.color),y&&y.reset();var r=!t||!t.video||t.video.id!==n.video.id||t.video.version.current!==n.video.version.current;return _=null,u.fire(Ia.reset),c.dispatch(Bc(n)),u.fire(Da.configChanged,r,n),e}function A(e){if("opacity"===e.propertyName){var t=document.querySelector(".vp-placeholder");t&&(tu(t).off("transitionend",A),t.parentNode.removeChild(t))}}function x(){window.requestAnimationFrame(function(){!function(){var e=document.querySelector(".vp-placeholder");e&&(tu(e).on("transitionend",A),e.classList.add("vp-placeholder-fadeout"))}(),i.classList.remove("loading")}),h()}function L(e){return r.then(function(){if(O(e),m&&m.resetThumbnail(),"function"!=typeof E.authorizationHandler)throw new Error("Config was not authorized.");return E.authorizationHandler(x)}).then(function(e){p.config=e;return _=null,c.dispatch(Bc(p.config)),u.fire(Ia.reset),u.fire(Da.configChanged,!0,p.config),e})}function C(){var e=document.location.hash,t=function(e){var t=e.match(/\ba?t=([0-9hms:]+)/);null!==t&&(e=t[1]);var n=!1,i=0,r=0,o=0;if((t=e.match(/^([0-9]+)$/))&&t.length&&(n=!0,o=t[1]),!1===n&&null!==(t=e.match(/^(?:([0-9]+)h)?(?:([0-9]+)m)?(?:([0-9]+)s)?/))&&""!==t[0]){n=!0;var a=Le(t,4),s=a[1];i=void 0===s?0:s;var c=a[2];r=void 0===c?0:c;var u=a[3];o=void 0===u?0:u}if(!1===n&&null!==(t=e.match(/^([0-9:]+)/))){n=!0;var l=Le(e.split(":").reverse(),3);o=l[0];var d=l[1];r=void 0===d?0:d;var f=l[2];i=void 0===f?0:f}return n?60*parseInt(i,10)*60+60*parseInt(r,10)+parseInt(o,10):null}(e);null!==t&&(p.config.embed.time=Bs(t,0,p.config.video.duration),-1!==e.indexOf("at=")&&history&&history.replaceState&&history.replaceState("","",window.location.pathname+window.location.search))}function P(e){C(),u.on(Da.userLogIn,function(t){p.reload().then(function(e){if(!p.config.user.logged_in)return u.fire(Da.loginFailure),e;switch(u.fire(Da.userLoggedIn,t),t){case"like":p.config.user.liked&&u.fire(Da.liked);break;case"watch-later":p.config.user.watch_later&&u.fire(Da.addedToWatchLater);break;case"private":u.fire(Da.privateUnlocked)}return e}).catch(function(e){Ps.captureException(e)})}),u.on(Da.userLoggedOut,function(){p.reload().catch(function(e){Ps.captureException(e)})}),function(e){new Od(e,c,i),m=new Ec(e,c,i.querySelector(".vp-preview")),u.on([Pe.BUFFER_ENDED,Ce.PLAYING],function(){m.hide()}),v=new Si(d,p.config),new eu(e,c,i.querySelector(".vp-video-wrapper")),new jl(e,c,i.querySelector(".vp-captions")),new Ql(i,u),e.doNotTrackEnabled||(new xf(e,i,c,p.config.request.urls.fresnel),new du(e,c));y=new xc(e),e.config.request.ab_tests&&e.config.request.ab_tests.chromecast&&e.config.request.ab_tests.chromecast.group&&function(e){if(e.config.video.spatial||"stock"===e.config.video.privacy)return;var t=new Jl({textAlert:new Gl(i),player:e});$l.init({chromecastPlayer:t}),$l.on([Hl.error,Hl.mediaLoadedFailed],function(e){Ps.captureException(e)})}(e);O(e)}(e)}function O(e){g||(g=new Gd(e),Zl(k,g),Vd.set(Ps))}var R={get store(){return c},get config(){return p.config},get element(){return i},get events(){return u},get uuid(){return l},get expose(){return k},get backbone(){return v},get telecine(){return v&&v.telecine},get preview(){return m},get doNotTrackEnabled(){return p.config.embed.dnt||p.config.request.flags.dnt},get playLoggingEnabled(){return p.config.embed.log_plays&&p.config.request.flags.plays},init:function(e,t){return b||(E=t,b=p.load(e).then(T).catch(function(e){return L(R)}).then(function(){return Ps.setUp(p.config),null}).then(function(){return"function"==typeof E.initializationHandler?ze.resolve(t.initializationHandler()):null}).then(function(){return P(R),"function"==typeof E.postInitializationHandler?ze.resolve(t.postInitializationHandler()):null}).then(function(){return ze.all([m.thumbnailPromise,r])}).then(x).catch(function(e){Ps.captureException(e)}))},loadVideo:function(e,t){if(w===e&&_)return _;if(t&&t.video_version){var n=p.config.video.version.available;if(!n||!Array.isArray(n))return ze.reject("No available video versions");if(-1===(n=n.map(function(e){return e.id})).indexOf(t.video_version))return ze.reject("Invalid version id specified")}return u.fire(Da.loadVideo),w=e,i.classList.add("loading"),_=p.load(e,t).then(T).catch(function(e){return Ps.captureException(e),L(R)}).then(function(e){var t=m.loadThumbnail();return ze.resolve(t)}).then(x)},performDelegateAction:function(e){var t,n,i=1=.15*Math.abs(u.y-d.y))return e.preventDefault(),o=!0,c.fire("touchMove"),a=Date.now(),void w(u.x);s(!1),y(h(u.x))}function g(e){if(e.stopImmediatePropagation(),s(!1),o){e.preventDefault();var t=u.x-d.x,n=Date.now()-a+1;return u.x+=50*t/n,y(h(u.x)),void c.fire("touchEnded")}!function(e){e.preventDefault();var t=Gs(e.target,r.children);if(-1!==t){if(t!==i)return y(t);c.fire("tap",t)}}(e)}function y(e){b(e),c.fire("slide",e)}function _(){b(i,"0ms")}function b(e){var t=1=h.config.embed.time)&&(V=!1),c||se(n,t)}),h.events.on(Da.scrubbingStarted,function(e){c=!0,u=e}),h.events.on(Da.scrubbingEnded,function(){u=c=!1}),h.events.on(Ce.SEEKED,function(e){var t=e.timeProgress;u&&se(t)}),f.get(Uc)&&!f.get(Wc)||(tu(v).on(Di.pointerEvents?"pointerdown":["touchstart","mousedown"],".vp-progress",function(e){if(!e.button||2!==e.button){h.element.classList.add("scrubbing"),h.events.fire(Da.scrubbingStarted);var t=e.type;if("pointerdown"===t||"MSPointerDown"===t){o=e.pointerId;try{e.target.msSetPointerCapture?e.target.msSetPointerCapture(o):e.target.setPointerCapture(o)}catch(e){}tu(v).on("pointermove",".vp-progress",a).on("pointerup",".vp-progress",s)}else"touchstart"===t?tu(v).on("touchmove",a).on("touchend",s):tu(document).on("mousemove",a).on("mouseup",s);var n=e.clientX;e.targetTouches&&0re()+10&&!x.contains(document.elementFromPoint(t.clientX,t.clientY))&&d()})}}function d(){T&&(T.classList.add("invisible"),x.classList.add("invisible")),U=!1,tu(g).off("click",t)}f.get(Uc)&&!f.get(Wc)||tu(v).on("mouseenter",".vp-progress",function(e){U||j||(T.classList.remove("hidden"),U=!0,n(e),window.requestAnimationFrame(function(){window.requestAnimationFrame(function(){T.classList.remove("invisible")})}),h.config.request.thumb_preview&&c&&u().then(l).catch(function(){}),tu(g).on("click",t))}).on("mousemove",".play-bar",n).on("mouseleave",".play-bar",d),tu(v).on("transitionend",".ghost-timecode",function(e){"opacity"===e.propertyName&&"0"===window.getComputedStyle(this,"").opacity&&(T.classList.add("hidden"),x.classList.add("hidden"))},!1),h.events.on(Da.mousedOut,d),h.events.on(Da.configChanged,function(){e=null})}(),function(){var r;function o(e){var t=e.clientX;e.targetTouches&&(t=e.targetTouches[0].clientX,e.preventDefault());var n=s(t);h.events.fire(Ia.changeVolume,n),be(n)}function a(e){j=!1,h.events.fire(Da.volumeScrubbingEnded),h.element.classList.remove("scrubbing");var t=e.type;"pointerup"===t||"MSPointerUp"===t?tu(v).off("pointermove",".volume",o).off("pointerup",".volume",a):"touchend"===e.type?tu(document).off("touchmove",o).off("touchend",a):tu(document).off("mousemove",o).off("mouseup",a),C.setAttribute("tabindex",C.getAttribute("data-tabindex")),C.removeAttribute("data-tabindex")}function s(e){var t=Ds(C).left;return Bs((e-t)/(Ds(C).right-t),0,1)}tu(v).on("mousemove",".volume",function(e){var t=e.srcElement;if(-1===P.indexOf(t)){var n=Ds(C),i=e.clientX,r=n.bottom-2;if(t=document.elementFromPoint(i,r),-1===P.indexOf(t))return}t.classList.add("hover"),window.requestAnimationFrame(function(){window.requestAnimationFrame(function(){t.classList.remove("hover"),t.classList.add("animate")})})}),tu(v).on("transitionend",".volume div",function(e){"height"===e.propertyName&&this.classList.remove("animate")}),tu(document).on("contextmenu",".volume",function(){this.blur()}),tu(v).on(Di.pointerEvents?"pointerdown":["touchstart","mousedown"],".volume",function(e){if(1===e.which){C.setAttribute("data-tabindex",C.getAttribute("tabindex")),C.removeAttribute("tabindex"),j=!0,h.element.classList.add("scrubbing"),h.events.fire(Da.volumeScrubbingStarted);var t=e.type;if("pointerdown"===t||"MSPointerDown"===t){r=e.pointerId;try{e.target.msSetPointerCapture?e.target.msSetPointerCapture(r):e.target.setPointerCapture(r)}catch(e){}tu(v).on("pointermove",".volume",o).on("pointerup",".volume",a)}else"touchstart"===t?tu(document).on("touchmove",o).on("touchend",a):tu(document).on("mousemove",o).on("mouseup",a);var n=e.clientX;e.targetTouches&&(n=e.targetTouches[0].clientX);var i=s(n);h.events.fire(Ia.changeVolume,i),be(i)}}),h.events.on(Da.volumeChanged,function(e){!j&&P&&be(e)}).on([Ia.enableVolume,Ia.disableVolume],function(){we()})}(),Pf(v,".cc",function(){h.events.fire(Da.ccButtonPressed)}),h.events.on(Da.ccButtonPressed,function(e){t?t.toggle(e):(t=ye(function(e){var i=[];"text_tracks"in h.config.request&&(h.config.request.text_tracks.forEach(function(e){var t="CC"===e.label.substring(e.label.length-2),n="captions"!==e.kind||t?"":" CC";i.push({label:e.label+n,id:"".concat(e.id),active:Y==="".concat(e.id)})}),i.push({label:"None",id:"off",active:null===Y}));var t=new If(h,{items:i,id:"cc",title:"Closed Captions"});return t.on("select",function(e){"off"!==e?h.events.fire(Ia.turnCaptionsOn,e):h.events.fire(Ia.turnCaptionsOff)}),new Of(h,e,[t])}(R))).show(e)}),h.events.on(Da.captionsChanged,function(e){e?function(e){Y=e,t&&t.getPanel("cc")&&(t.getPanel("cc").setActiveItem(e),setTimeout(function(){t.hide()},100)),R&&(R.classList.add("on"),R.classList.remove("off"))}(e.id):(Y=null,t&&t.getPanel("cc")&&(t.getPanel("cc").setActiveItem("off"),setTimeout(function(){t.hide()},100)),R&&(R.classList.add("off"),R.classList.remove("on")))}).on(Da.controlBarVisibilityChanged,function(e){e||t&&t.hide()}).on([Ia.enableCaptions,Ia.disableCaptions],function(){we()}),function(){var i,s,c=null;function u(){if(h.telecine.video.currentFile.mime===Ra.dash){var e=h.config.request.files.dash.streams,t=xe(e).sort(Tf()).filter(Ef(e)).filter(Sf(Q)).map(function(e){var t=bf(e);return{id:t,label:Af(e),active:i===t}});return t.unshift({id:"auto",label:"Auto",active:!i||"auto"===i}),t}var n=h.telecine.video.files;return xe(n).filter(function(t){return function(e){return Ba[e.mime]===t}}("progressive")).filter(Ef(n)).sort(Tf()).filter(Sf(Q)).map(function(e){return{label:bf(e),id:bf(e),active:i===e.metadata.quality}})}Pf(v,".js-prefs",function(){h.events.fire(Da.prefsButtonPressed)}),h.events.on(Da.prefsButtonPressed,function(e){if(O){if(!K)return void(K=ye(function(){var e=[],t=new If(h,{id:"quality",title:"Quality",items:c||u()});if(t.on("select",function(e){h.events.fire(Ia.changeQuality,e)}),s&&t.setTitleStat(s),t.pinTitle(),e.push(t),h.telecine.supportsPlaybackRate&&h.config.embed.settings.speed){var n=te.map(function(e){return e.active=e.id===h.telecine.playbackRate,e}),i=new If(h,{id:"speed",title:"Speed",items:n});i.on("select",function(e){h.events.fire(Ia.changePlaybackRate,e)}),i.pinTitle(),e.push(i)}var r=new Of(h,O,e);function o(e){r.element.classList.toggle("vp-menu-center",e),h.events.fire(Da.menuCentered,r.isCentered(),r)}function a(e){r.element.classList.toggle("vp-menu-carousel",e),r.setPanelModes()}return f.watch("ui.controlbar.isPrefsMenuCentered",o),f.watch("ui.controlbar.hasPrefsMenuCarousel",a),o(f.get("ui.controlbar.isPrefsMenuCentered")),a(f.get("ui.controlbar.hasPrefsMenuCarousel")),r}())).show(e);K.toggle(e)}}),h.events.on(Da.qualityChanged,function(e){i=e,K&&K.getPanel("quality")&&K.getPanel("quality").setActiveItem(e)}),h.events.on(Pe.STREAM_CHANGE,function(e){var t=e.quality||"".concat(e.height,"p");s=t,K&&K.getPanel("quality")&&K.getPanel("quality").setTitleStat(Af(e))}),h.events.on(Da.playbackRateChanged,function(e){K&&K.getPanel("speed")&&K.getPanel("speed").setActiveItem(e)}),h.events.on(Oe.REPRESENTATIONS_AVAILABLE,function(e){var t=e.video.map(function(e){return e.height.toString()});i=null,c=function(e){var t=e.sort(Tf()).map(function(e){var t="".concat(e,"p");return{id:t,label:t,active:i===t}});return t.unshift({id:"auto",label:"Auto",active:!i||"auto"===i}),t}(t),K&&(_e(K),K=null)}),h.events.on(Da.hevcRestrictedStreams,function(e){Q=e})}(),Pf(v,".pip",function(){"picture-in-picture"!==h.telecine.presentationMode?h.events.fire(Ia.activatePictureInPicture):h.events.fire(Ia.deactivatePictureInPicture)}),h.events.on(Zt,function(){I&&(I.classList.remove("hidden"),I.hidden=!1,ne())}).on(en,function(){I&&(I.classList.add("hidden"),I.hidden=!0,ne())}).on(tn,function(){X=!0,I&&(I.classList.add("return"),I.classList.remove("enter"),I.setAttribute("title",I.getAttribute("data-title-return")))}).on(nn,function(){X=!1,I&&(I.classList.add("enter"),I.classList.remove("return"),I.setAttribute("title",I.getAttribute("data-title-enter")))}),Di.airPlay&&(Pf(v,".airplay",function(){h.events.fire(Da.airPlayButtonPressed)}),h.events.on(Da.airPlayAvailable,function(){M&&(M.classList.remove("hidden"),M.hidden=!1,ne())}).on(Da.airPlayNotAvailable,function(){M&&(M.classList.add("hidden"),M.hidden=!0,ne())}).on(Da.airPlayActivated,function(){$=!0,M&&(M.classList.remove("off"),M.classList.add("on"),M.setAttribute("title",M.getAttribute("data-title-on"))),ge()}).on(Da.airPlayDeactivated,function(){$=!1,M&&(M.classList.remove("on"),M.classList.add("off"),M.setAttribute("title",M.getAttribute("data-title-off")))})),Pf(v,".fullscreen",function(){h.events.fire(Da.fullscreenButtonPressed)}),h.events.on(Da.didEnterFullscreen,function(){i=!1,v.classList.remove("tiny"),N&&N.setAttribute("title",N.getAttribute("data-title-unfullscreen"))}),h.events.on(Da.didExitFullscreen,function(e){if(N){var t=N.cloneNode(!0);N.parentNode.replaceChild(t,N),(N=t).setAttribute("title",N.getAttribute("data-title-fullscreen"))}e||(i=!0),n&&v.classList.add("tiny")}),h.events.on([Da.mousedOver,Da.scrubbingStarted,Ia.changeVolume],ge).on([Da.mousedOut,Da.mouseTimeout],me).on(Da.willEnterFullscreen,function(){B=!1,me()}).on(Da.willExitFullscreen,function(){B=!1}).on(Da.targetTimeReached,function(){a=!0,me()}).on(Ia.changeVolume,function(e,t){t||ge()}),tu(v).on(["pointerenter","pointerleave","mouseenter","mouseleave"],[".play",".play-bar",".custom-logo",".vp-menu"],function(e){"pointerType"in e?"mouse"!==e.pointerType&&e.pointerType!==e.MSPOINTER_TYPE_MOUSE||(B="pointerenter"===e.type||"MSPointerEnter"===e.type):Di.touch||(B="mouseover"===e.type)}),tu(v).on("transitionend",function(e){this===v&&"opacity"===e.propertyName&&v.classList.contains("invisible")&&(v.classList.add("hidden"),v.setAttribute("hidden",""))}),h.events.on(Ia.overrideControlbarBehavior,function(e){(r=e)?h.events.on(Ia.setControlsVisibility,function(e){e?pe():ve()}):h.events.off(Ia.setControlsVisibility)}),h.events.on(Da.overlayOpened,function(e){if("not-supported"!==e&&"private-unlocked"!==e&&"help"!==e)o=!0,me();else for(var t=v.querySelectorAll("a, button, input, [tabindex]"),n=0,i=t.length;nd.element.clientHeight-qf,a=n>d.element.clientWidth-Hf&&i\n ".concat(e.title,'\n \n ')}).join("")}},{key:"_copySessionId",value:function(){var e=this;if(!this.isCopied){var t=this.element.querySelector(".vp-copy-label"),n=document.createElement("textarea");if(n.value=this.player.config.request.session,this.element.appendChild(n),n.select(),document.execCommand("copy")){t.innerHTML="Copied",this.element.removeChild(n),this.isCopied=!0;var i=setTimeout(function(){t.innerHTML="Copy Debug Key",clearTimeout(i),e.isCopied=!1},2e3)}else this.element.querySelector(".js-copySessionButton").style.display="none",this.element.removeChild(n),this.sessionId=this.player.config.request.session,this.updateDebugValues()}}}]),i}(),vh=function(){function t(e){R(this,t),this.alertTextElement=e.querySelector(".vp-text-alert-wrapper"),this.alertContentTitle=this.alertTextElement.querySelector(".vp-live-start-time-title"),this.alertContentTime=this.alertTextElement.querySelector(".vp-live-start-time-body"),this.alertContentFooter=this.alertTextElement.querySelector(".vp-live-start-time-footer")}return M(t,[{key:"show",value:function(e,t,n){this.alertContentTitle.innerHTML=e,this.alertContentTime.innerHTML=t,this.alertContentFooter.innerHTML=n,this.alertContentTitle.classList.remove("hidden"),this.alertContentTime.classList.remove("hidden"),this.alertContentFooter.classList.remove("hidden"),this.alertTextElement.classList.remove("hidden")}},{key:"hide",value:function(){this.alertContentTitle.classList.add("hidden"),this.alertContentTime.classList.add("hidden"),this.alertContentFooter.classList.add("hidden"),this.alertTextElement.classList.add("hidden")}}]),t}(),ph=function(){function i(e,t,n){R(this,i),this.textAlert=new Gl(e),this.timeAlert=new vh(e),this.player=t,this.store=n,this.startTime=new Date(this.store.get(cu,null)),this._disabled=!1,this._setUpLiveEvents(),this._checkStatus()}return M(i,[{key:"disable",value:function(){this.hide(),this._disabled=!0}},{key:"hide",value:function(){this.textAlert.hide(),this.timeAlert.hide()}},{key:"_checkStatus",value:function(){(this.store.get(Vc)||this.store.get(qc))&&this._onLiveEventActive(),this.store.get(Wc)&&this._onLiveStreamEnded()}},{key:"_setUpLiveEvents",value:function(){this.player.events.on(Oe.EVENT_ACTIVE,this._onLiveEventActive.bind(this)),this.player.events.on(Oe.STREAM_ONLINE,this._onLiveStreamOnline.bind(this)),this.player.events.on(Oe.STREAM_OFFLINE,this._onLiveStreamOffline.bind(this)),this.player.events.once(Oe.EVENT_ENDED,this._onLiveStreamEnded.bind(this))}},{key:"_onLiveEventActive",value:function(){6e4r.clientWidth&&(n=r.clientWidth),{height:Math.round(n*t),width:Math.round(n*t*1.6)}}(e),i="width:"+n.width+"px;height:"+n.height+"px";a.style.cssText=i,a.innerHTML=t,"watchlater"!==e&&"unwatchlater"!==e||function(e,t){var n=e.querySelector(".hour-hand"),i=e.querySelector(".minute-hand");if(n&&i){var r=t?1:-1,o=new Date,a=Math.abs(o.getHours()-12),s=o.getMinutes(),c=s/60*360-135,u=a/12*360+s/60*5,l=u+45*r,d=c+540*r;n.style[Di.transformProperty]="rotate("+u+"deg)",i.style[Di.transformProperty]="rotate("+c+"deg)",window.requestAnimationFrame(function(){e.classList.add("animate"),Di.browser.firefox||Di.browser.opera||window.requestAnimationFrame(function(){n.style[Di.transformProperty]="rotate("+l+"deg)",i.style[Di.transformProperty]="rotate("+d+"deg)"})})}}(a,"watchlater"===e),clearTimeout(o),r.classList.remove("animate"),window.requestAnimationFrame(function(){r.classList.remove("invisible"),o=setTimeout(s,750)})}}function s(){r.classList.add("animate"),r.classList.add("invisible")}function n(){r.classList.remove("animate"),r.classList.remove("invisible"),r.classList.add("hidden"),r.setAttribute("hidden",""),r.removeAttribute("data-name"),a.innerHTML="",a.classList.remove("filled"),a.classList.remove("animate"),e.events.fire(Da.notificationHidden)}return tu(r).on("transitionend",function(e){a.contains(e.target)&&"height"===e.propertyName?setTimeout(s,100):e.target===r&&"opacity"===e.propertyName&&window.requestAnimationFrame(n)}),e.events.on(Da.liked,function(e){e||t("like",Ul.render("icon_heart"))}),e.events.on(Da.unliked,function(e){e||t("unlike",Ul.render("icon_broken_heart"))}),e.events.on(Da.addedToWatchLater,function(e){e||t("watchlater",Ul.render("icon_clock"))}),e.events.on(Da.removedFromWatchLater,function(e){e||t("unwatchlater",Ul.render("icon_clock"))}),e.events.fire(Da.notificationModuleReady),{}}var gh="Expected a function";function yh(e,t,n){var i=!0,r=!0;if("function"!=typeof e)throw new TypeError(gh);return or(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),pc(e,t,{leading:i,maxWait:t,trailing:r})}var _h=function(t){return function(e){return null==t?void 0:t[e]}}({"&":"&","<":"<",">":">",'"':""","'":"'"}),bh=/[&<>"']/g,wh=RegExp(bh.source);function Eh(o,a){var n=H(),s=!1;function t(e){js(e,"facebook",{width:580,height:400})}function i(e){js(e,"twitter",{width:550,height:420})}function r(e){js(e,"tumblr",{width:540,height:600})}var e={get events(){return n},setup:function(){a.classList.remove("vp-share-embed-active","vp-share-embed-only"),o.config.embed.settings.share&&o.config.embed.settings.share.embed_only&&a.classList.add("vp-share-embed-only");var e=a.querySelector(".js-embedCopy");e&&(e.style.width=function(e,t){var n=2')+"Customize this embed on Vimeo"}}),o.config.embed.settings.share&&o.config.embed.settings.share.embed_only&&(e.wrapperClass="embed-only"),e},showShareView:function(){a.querySelector(".js-share-screen").classList.remove("cloaked"),a.classList.remove("vp-share-embed-active"),n.fire(Da.shareViewShown)},showEmbedView:function(){o.config.embed.settings.share.embed_only||(a.querySelector(".js-embed-screen").classList.remove("cloaked"),a.classList.add("vp-share-embed-active")),n.fire(Da.embedViewShown)}};return function(){var t;function r(){o.events.fire(Da.embedCodeCopied);var e=a.querySelector(".js-embedCopy");e.innerHTML=e.getAttribute("data-success-label"),clearTimeout(t),t=setTimeout(function(){e.innerHTML=e.getAttribute("data-label")},2e3)}tu(a).on("transitionend",".js-share-screen",function(e){"opacity"===e.propertyName&&"0"===window.getComputedStyle(this,"").opacity&&(n.fire(Da.embedViewEnd),this.classList.add("cloaked"))}).on("transitionend",".js-embed-screen",function(e){"opacity"===e.propertyName&&"0"===window.getComputedStyle(this,"").opacity&&(n.fire(Da.shareViewEnd),this.classList.add("cloaked"),Vs(a))}).on("copy","input[name=embed_code]",function(){o.events.fire(Da.embedCodeCopied)}),Pf(a,".js-facebook",function(){return o.events.fire(Da.facebookButtonPressed,this.href),Ms(),!1}),Pf(a,".js-twitter",function(){return o.events.fire(Da.twitterButtonPressed,this.href),Ms(),!1}),Pf(a,".js-tumblr",function(){return o.events.fire(Da.tumblrButtonPressed,this.href),Ms(),!1}),Pf(a,".js-email",function(){return o.events.fire(Da.emailButtonPressed),window.top.location=this.href,Ms(),!1}),Pf(a,".js-embed",function(){return o.events.fire(Da.embedButtonPressed),e.showEmbedView(),Ms(),!1}),Pf(a,".js-embedCopy",function(){if(s){a.querySelector("input[name=embed_code]").select();try{document.execCommand("copy")&&r()}catch(e){}return document.activeElement.blur(),!1}}),Di.touch?tu(a).on("focus","input[name=embed_code]",function(){var e=this;setTimeout(function(){e.setSelectionRange(0,9999),e.setAttribute("readonly","readonly")},0)}).on("blur","input",function(){this.removeAttribute("readonly")}):tu(a).on("click","input[name=embed_code]",function(){this.setSelectionRange(0,9999)}),n.on(Da.embedViewShown,function(){function e(){var e=a.querySelector(".js-embedCopy");new ZeroClipboard(e,{moviePath:o.config.request.urls.zeroclip_swf,trustedDomains:["*"],allowScriptAccess:"always"}).on("complete",r)}if(!s&&Di.flash.installed){var t="zc_script_loaded";if(!document.getElementById(t)){var n,i=document.createElement("script");return i.setAttribute("id",t),i.setAttribute("src",o.config.request.urls.zeroclip_js),i.onreadystatechange=i.onload=function(){n||e(),n=!0},void document.getElementsByTagName("head")[0].appendChild(i)}e()}})}(),e}function Sh(a,s){var n,e=H();function c(e){if("yes"===e.form.getAttribute("data-bubble")){e.form.setAttribute("data-bubble","no");var t=s.querySelector(".vp-validation-bubble");t.querySelector(".vp-validation-bubble-message").innerHTML=e.validationMessage||"There is an error with this input.";var n=Ds(e),i=Ds(e.form);t.style.left=n.left-i.left+"px",t.style.top=n.height+1+"px",t.classList.remove("hidden"),e.focus(),window.requestAnimationFrame(function(){t.classList.add("vp-validation-bubble-animate")}),r()}}function r(e){var t=s.querySelector(".vp-validation-bubble");if(t){if(e)return clearTimeout(n),void t.classList.remove("vp-validation-bubble-animate");clearTimeout(n),n=setTimeout(function(){t.classList.remove("vp-validation-bubble-animate")},5e3)}}function u(){var e=(0t}e&&"before"===e.position&&!g&&D()}function D(){e.get("ui.overlay.isEmailCaptureVisible")?u.events.fire(Ia.showOverlay,"email-capture"):t=!0}function N(e){var t=e.currentTime,n=void 0===t?0:t,i=u.config.embed.email||{};i&&"during"===i.position&&(n=i.timecode&&!g&&(g=!0,D()))}function F(){k(),E()}return u.events.on(Ia.hideOverlay,function(){(0=this.time&&et?this._binarySearch(e,t,n,r-1):e[r]n.end)return n}return null}(e.currentTime);t!==i&&(!t&&r||(r=!1,g(),(i=t)&&"title-card"===i.id?a.get("ui.cards.isCarouselVisible")&&p(i,!0):p(i,!0)))}function p(e,t){e&&(t?e.element.classList.add("card-animating"):e.element.classList.remove("card-animating"),e.element.classList.add("card-active"),tu(e.element.childNodes[1]).on("mouseover",function(){r=!0}),tu(e.element.childNodes[1]).on("mouseout",function(){r=!1}),n.show(e.element),o.events.fire(Da.cardDisplayed,e.id,e.data))}function m(e){r||e.classList.remove("card-active")}function g(){xe(t.querySelectorAll(".card-active")).forEach(m)}function y(e){var t=c.values()[e];t.data.url&&"title-card"!==t.id&&(o.events.fire(Da.cardPressed,t.id,t.data),o.telecine.paused||o.events.fire(Da.pauseButtonPressed),window.open(t.data.url))}function _(e){e.preventDefault();var t=Gs(e.target,s.children),n=c.values()[t];n.data.url&&"title-card"!==n.id&&(o.events.fire(Da.cardPressed,n.id,n.data),o.telecine.paused||o.events.fire(Da.pauseButtonPressed),window.open(n.data.url))}function b(e){var t=c.values()[e];"title-card"!==t.id&&o.events.fire(Da.cardDisplayed,t.id,t.data),o.events.fire(Ia.setTime,t.time)}function w(e){var t=l(e.timecode,e);g(),p(t)}function E(e){g();var t=c.get(e.timecode).element;t.parentNode.removeChild(t),c.delete(e.timecode)}return n=new Rf(s),a.watch("ui.cards.size",d),a.watch("ui.cards.isCarouselVisible",h),a.watch("ui.cards.isCardsThumbVisible",f),h(a.get("ui.cards.isCarouselVisible")),o.events.on(Da.configChanged,u),o.events.on(Ia.addCard,w),o.events.on(Ia.removeCard,E),n.on("slide",e(b)),n.on("tap",e(y)),o.events.on(Ce.TIME_UPDATE,e(v)),o.events.on(Da.ended,e(g)),Pf(document,".player-cardsCorner .card",e(_)),u(),{}}var uv=.05,lv={16:"shift",27:"esc",32:"space",37:"left",38:"up",39:"right",40:"down"};function dv(r,o,e){var i,t=!!r.config.embed.on_site,a=e.querySelector(".volume"),s=!1,c=!1,u=r.config.video.fps/5,l=Math.max(u,.618*r.config.video.duration),d=100,f=u,h=0,v=!1,p=yh(w,80);function m(){return!t&&(r.config.view===Wa.main||r.config.view===Wa.privateUnlocked)}function g(){s&&"help"===i&&r.events.fire(Da.overlayCloseButtonPressed)}function y(e){return"number"!=typeof e.which&&(e.which=e.keyCode),e}function _(e){if("keypress"===e.type){var t=String.fromCharCode(e.which);return e.shiftKey||(t=t.toLowerCase()),t}return e.which in lv?lv[e.which]:String.fromCharCode(e.which).toLowerCase()}function b(e){if(r.config.embed.settings.background)return!0;var t=e.target||e.srcElement;return"INPUT"===t.tagName||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable}function w(e,t){if(!o.get(Uc)){if(!v){t&&!r.telecine.paused&&r.events.fire(Da.pauseButtonPressed);r.events.fire(Da.scrubbingStarted,!0),v=!0}!function(e){var t=e,n=Math.ceil(u),i=Math.ceil(l-u);f=function(e,t,n,i){return e/=i,n*(--e*e*e+1)+t}(t,n,i,d)}(h),1===++h&&(f=r.config.video.fps);var n=t?1:f,i="right"===e?n:-n;!function(e){var t=e/r.config.video.fps;r.events.fire(Ia.seek,null,t)}(Math["right"===e?"ceil":"floor"](r.telecine.currentTime*r.config.video.fps)+i)}}function E(e){var t=c.getTabindexItems(),n=t.indexOf(document.activeElement),i="up"===e?n-1:n+1,r=null;return!(r=i>=t.length?t[0]:i<0?t[t.length-1]:t[i])||(r.focus(),!1)}function S(){return!!c||(!(!o.get(Uc)||o.get(Hc))||(document.activeElement&&document.activeElement!==document.body?void 0:(r.events.fire(Da[r.telecine.paused?"playButtonPressed":"pauseButtonPressed"]),g(),!1)))}function k(){return c?(c.element.contains(document.activeElement)&&c.button.focus(),c.hide(),!1):document.activeElement&&e.contains(document.activeElement)?(Ms(),!0):s?(r.events.fire(Da.overlayCloseButtonPressed),!1):void 0}function T(){if(c)return!c.element.contains(document.activeElement)||E("up");if(Di.spatialPlayback&&r.config.video.spatial)return r.telecine.getEffectByName("ThreeSixtyEffect").keyPress("up"),!1;if(r.config.embed.on_site&&document.activeElement&&!e.contains(document.activeElement))return!0;g();return r.events.fire(Ia.changeVolume,uv,!1,!0),!1}function A(){if(c)return!c.element.contains(document.activeElement)||E("down");if(Di.spatialPlayback&&r.config.video.spatial)return r.telecine.getEffectByName("ThreeSixtyEffect").keyPress("down"),!1;if(r.config.embed.on_site&&document.activeElement&&!e.contains(document.activeElement))return!0;g();return r.events.fire(Ia.changeVolume,-uv,!1,!0),!1}function x(e,t){if(c)return!c.element.contains(document.activeElement)||E("left"===t?"up":"down");if(g(),Di.spatialPlayback&&r.config.video.spatial)return r.telecine.getEffectByName("ThreeSixtyEffect").keyPress(t),!1;if(document.activeElement&&document.activeElement===a){var n="left"===t?-uv:uv;return r.events.fire(Ia.changeVolume,n,!1,!0),!1}e.shiftKey||0===h?w(t,e.shiftKey):p(t,e.shiftKey)}return r.events.on(Da.overlayOpened,function(e){s=!0,"not-supported"===(i=e)&&(t=!0)}),r.events.on(Da.overlayClosed,function(){s=!1,i=null}),r.events.on(Da.menuVisibilityChanged,function(e,t){c=!!e&&t}),r.events.on(Da.configChanged,function(e){e&&(t=!1)}),function(){var n={l:Da.likeButtonPressed,w:Da.watchLaterButtonPressed,s:Da.shareButtonPressed,c:[Da.ccButtonPressed,!0],h:[Da.prefsButtonPressed,!0],f:Da.fullscreenButtonPressed,d:Da.debugButtonPressed,space:S,up:T,down:A,left:x,right:x,esc:k,"?":[Ia.showOverlay,"help"]};function e(e){if(y(e),function(e){return!(e.ctrlKey||e.metaKey||e.altKey)&&(e.which in lv?"keydown"===e.type:"keypress"===e.type)}(e)&&!b(e)&&m()){var t=_(e);if(t in n){if("function"==typeof n[t])return void(!1===n[t](e,t)&&(e.preventDefault(),e.stopPropagation()));!1===function(e){if(e=Array.isArray(e)?e:[e],s&&"help"===i){if(r.events.fire(Da.overlayCloseButtonPressed),e[0]===Ia.showOverlay&&"help"===e[1])return!1;if(e[0]!==Ia.openVimeo)return setTimeout(function(){r.events.fire.apply(null,e)},250),!1}return r.events.fire.apply(null,e),!1}(n[t])&&(e.preventDefault(),e.stopPropagation())}}}r.config.embed.on_site||(n.v=Ia.openVimeo),document.addEventListener("keydown",e,!1),document.addEventListener("keypress",e,!1),document.addEventListener("keyup",function(e){if(y(e),!b(e)&&m()){var t=_(e);!Di.spatialPlayback||!r.config.video.spatial||"left"!==t&&"right"!==t&&"up"!==t&&"down"!==t?o.get(Uc)||"left"!==t&&"right"!==t||function(e){f=u,h=0;var t=e.shiftKey;r.events.fire(Da.scrubbingEnded,t),v=!1}(e):r.telecine.getEffectByName("ThreeSixtyEffect").keyUp(t)}},!1)}(),r.events.on(Da.becameActive,function(){t=!1}).on(Da.becameInactive,function(){t=!0}),r.config.embed.on_site&&document.querySelector(".player")===e&&(t=!1),function(){var t,n=!1;document.body.addEventListener("keydown",function(e){9!==e.which||document.body.classList.contains("showfocus")?27===e.which?document.body.classList.remove("showfocus"):32!==e.which&&13!==e.which||(n=!0,clearTimeout(t),t=setTimeout(function(){n=!1},200)):document.body.classList.add("showfocus")}),document.body.addEventListener("click",function(e){n||document.body.classList.remove("showfocus")})}(),{pause:function(){t=!0},unpause:function(){t=!1}}}var fv=function(){function s(e){var t=1list of browsers that support 360 viewing.'}})}}},{key:"_showSpatialFailureAlert",value:function(e){if(!e){this.showAlert("warning_alert",{strings:{text:'Looking to watch a 360 video? See supported browsers and settings.'}})}}},{key:"showAlert",value:function(e){var t=1